resolver-egretimp-plus 0.1.132 → 0.1.133

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/h5/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- import*as __WEBPACK_EXTERNAL_MODULE_vue__ from"vue";import*as __WEBPACK_EXTERNAL_MODULE_vue_router_6389ad97__ from"vue-router";import*as __WEBPACK_EXTERNAL_MODULE_cmid_lib_toast_0476b361__ from"cmid/lib/toast";import*as __WEBPACK_EXTERNAL_MODULE_cmid_lib_fullloading_919da29e__ from"cmid/lib/fullloading";var __webpack_modules__={89932:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(53474),_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(53811),vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(75286),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(76918),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(44114),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(23288),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(26099),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27495),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(90906),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(38781),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(86226),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(56255),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11393),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(73363),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(64007),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(385),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(61240),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(50697),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_15__),_utils_index_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17427),_hooks_index_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(70846),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9318),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(19022),vue_router__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(11292),_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(44026),_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(30604),_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(82826);function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,vue__WEBPACK_IMPORTED_MODULE_0__.isVNode)(e)}const __WEBPACK_DEFAULT_EXPORT__={name:"AnalysisComponent",inheritAttrs:!1,props:{config:{type:Object,default:function(){return{}}},modelValue:{default:null},component:{type:[Function,Object,String],default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:"operate"},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function setup(props,_ref){var _context4,emit=_ref.emit,attrs=_ref.attrs,currentAttrs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e=(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},attrs);return delete e.onClick,e}));(0,_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__.S)(props.config);var formContextKey=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_formContextKey"),formContext=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(formContextKey,{}),_isH5=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_isH5"),configsSet=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_configsSet"),ruleExecuter=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_ruleExecuter"),dialogReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_dialogReq",{}),requestTraceId=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("requestTraceId"),polyfillConfigs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_polyfillConfigs",{}),buttonActions=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("buttonActions",{}),router=(0,vue_router__WEBPACK_IMPORTED_MODULE_20__.useRouter)(),route=(0,vue_router__WEBPACK_IMPORTED_MODULE_20__.useRoute)(),routeQuery=null==route?void 0:route.query,hireRelatMapRules=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("hireRelatMapRules"),components=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("components"),dataLoad=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dataLoad"),rootForm=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootForm"),_axiosInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_axiosInstance"),confirmInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_confirmInstance"),openChildDialogInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_openChildDialogInstance"),messageCb=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageCb"),messageInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageInstance"),builtPolyfillReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_builtPolyfillReq"),rootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootValue"),validate=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_validate"),lang=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("lang"),OPEN_DATA_RULES=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("OPEN_DATA_RULES"),selects=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("selects"),_parentRootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentRootValue"),_parentDynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentDynamicMapComp");(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_lang",lang),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rootValue",rootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"router",router),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"route",route),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_validate",validate),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rowScope",props.rowScope),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_selects",selects),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_parentRootValue",_parentRootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_parentDynamicMapComp",_parentDynamicMapComp);var instance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(),appContext=null==instance?void 0:instance.appContext;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"wrapVm",instance);var refFn=function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"vm",e)},onVnodeMounted=function onVnodeMounted(e){var _props$config,_penddingRules$hireRe,_ruleExecuter$penddin,_props$config2;if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"vmIsBind",!0),props.config.onVnodeMounted&&"function"==typeof props.config.onVnodeMounted){var context={dataLoad};try{props.config.onVnodeMounted.call(context,props,e,selects)}catch(e){console.error("onVnodeMounted error,",e,props.config)}}if(props.config.onMounted){var onMounted=props.config.onMounted;if("string"==typeof onMounted)try{onMounted=eval("(function({props, e, selects}) {\n try {\n ".concat(props.config.onMounted,"\n } catch (error) {\n console.error('onMounted error===:', props, error)\n }\n })"))}catch(e){console.error("parse onMounted error===:",props,e)}"function"==typeof onMounted&&onMounted({props,e,selects})}var hireRelat=null===(_props$config=props.config)||void 0===_props$config?void 0:_props$config.hireRelat,_context,_context2;if(null!==(_penddingRules$hireRe=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat])&&void 0!==_penddingRules$hireRe&&_penddingRules$hireRe.length&&(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(_context=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat]).call(_context,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__.Ay.call(e,t,!1,OPEN_DATA_RULES)}),0)})),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat]=null),null!=ruleExecuter&&null!==(_ruleExecuter$penddin=ruleExecuter.penddingRules)&&void 0!==_ruleExecuter$penddin&&null!==(_ruleExecuter$penddin=_ruleExecuter$penddin[hireRelat])&&void 0!==_ruleExecuter$penddin&&_ruleExecuter$penddin.length&&(null==ruleExecuter||_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(_context2=ruleExecuter.penddingRules[hireRelat]).call(_context2,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){null==ruleExecuter||ruleExecuter.run(e,t)}),0)})),ruleExecuter.penddingRules[hireRelat]=null),null!==(_props$config2=props.config)&&void 0!==_props$config2&&_props$config2.immediateClickEvent)var unWatch=(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(dataLoad,(function(e){e&&_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){executeClickEvents(),unWatch&&unWatch()}),100)}),{immediate:!0})},onVnodeUnmounted=function(){if(props.config.vmIsBind=!1,props.config.onVnodeUnmounted&&"function"==typeof props.config.onVnodeUnmounted)try{props.config.onVnodeUnmounted(props)}catch(e){console.error("onVnodeUnmounted error,",e,props.config)}},_useVmodels=(0,_hooks_index_js__WEBPACK_IMPORTED_MODULE_17__.K)(props,emit,OPEN_DATA_RULES),vModelObjs=_useVmodels.vModelObjs,initVmodels=_useVmodels.initVmodels,modelValue=_useVmodels.modelValue;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"refValue",modelValue);var fnComponentkeys=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]),_props$component,_props$component2,_props$component3;function getFncomponentProps(){var e,t={};return _babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(e=fnComponentkeys.value).call(e,(function(e){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(props.config,e)){var n=props.config;_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.lb.test(e)&&"function"==typeof n[e]?t[e]=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n[e].apply(n,_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(r).call(r,[vm]))}:t[e]=n[e]}})),t}"function"==typeof props.component?null===(_props$component=props.component())||void 0===_props$component||_props$component.then((function(e){var t,n;null!=e&&null!==(t=e.default)&&void 0!==t&&t.emits&&initVmodels(null==e||null===(n=e.default)||void 0===n?void 0:n.emits),fnComponentkeys.value=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.SK)((null==e?void 0:e.default)||e)})):null!==(_props$component2=props.component)&&void 0!==_props$component2&&_props$component2.emits&&initVmodels(null===(_props$component3=props.component)||void 0===_props$component3?void 0:_props$component3.emits);var currentComponent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return"function"==typeof props.component?(0,vue__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent)({loader:props.component,loadingComponent:_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_22__.A,delay:0}):props.component})),parent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("parent",null),dynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dynamicMapComp"),configLinks=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context4=[parent]).call(_context4,(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_25__.A)(props.additionConfigs),[props.config]);_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default()(configLinks).call(configLinks,(function(e,t){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicMapComp",dynamicMapComp),!OPEN_DATA_RULES){if(null==t||!t.dynamicHireRelat_bak||null!=configsSet&&configsSet.has(t)){var n,r,i=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(n=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(r="".concat(null==e?void 0:e.dynamicHireRelat)).call(r,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(n,t.metaCode||""):t.metaCode;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",i),t.dynamicHireRelat_bak=i}else{var o;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(o="".concat(t.dynamicHireRelat_bak,"__@__")).call(o,props.mode,"__"))}null==configsSet||configsSet.add(t),t.dynamicHireRelat&&(dynamicMapComp[t.dynamicHireRelat]=t)}return t})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("parent",props.config),OPEN_DATA_RULES?null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){var t,n;null!==(t=props.config)&&void 0!==t&&t._formFields||(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_formFields",[]),null===(n=props.config)||void 0===n||null===(n=n._formFields)||void 0===n||n.push(e),formContext.addField(e)},removeField:function(e){var t,n=null===(t=props.config)||void 0===t?void 0:t._formFields;if(e.prop&&n){var r=_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(n).call(n,e);-1!==r&&_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default()(n).call(n,r,1)}formContext.removeField(e)}}))):null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){if(e.validate&&(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.kL)(e.validate)){var t=e.validate;e.validate=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=t.apply(this,r);return _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default().resolve().catch,(null==o||null===(e=o.then((function(e){return e})))||void 0===e?void 0:e.catch((function(e){var t;return(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Qd)(e)&&_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(t=_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_15___default()(e)).call(t,(function(t){e[props.config.dynamicHireRelat]=e[t],delete e[t]})),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_14___default().reject(e)})))||!0}}formContext.addField(e)}})));var _onClick=function(e,t){var n,r,i,o={props,dynamicMapComp,hireRelatMapRules,components,selects,rootValue:null==rootValue?void 0:rootValue.value,dataLoad,rootForm,routeQuery,appContext};null==attrs||null===(n=attrs.onClick)||void 0===n||n.call(o,e),-1!==(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Tn)(_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.UP,(null===(r=props.config)||void 0===r?void 0:r.renderby)||(null===(i=props.config)||void 0===i?void 0:i.metaType))&&executeClickEvents(t)};function executeClickEvents(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Qd)(e)||(e={}),(0,_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__.bt)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},e),{},{builtPolyfillReq,components,props,requestTraceId:null==requestTraceId?void 0:requestTraceId.value,axiosInstance:null==_axiosInstance?void 0:_axiosInstance.value,polyfillConfigs,rootValue:null==rootValue?void 0:rootValue.value,confirmInstance:null==confirmInstance?void 0:confirmInstance.value,dynamicMapComp,openChildDialog:null==openChildDialogInstance?void 0:openChildDialogInstance.value,messageInstance:null==messageInstance?void 0:messageInstance.value,messageCb,buttonActions,lang:null==lang?void 0:lang.value,dialogReq,appContext}))}return(0,vue__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured)((function(e,t,n){var r,i,o,s;console.error("component render failer",(null==lang||null===(r=lang.value)||void 0===r?void 0:_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(r).call(r,"zh"))>-1?null===(i=props.config)||void 0===i?void 0:i.metaNameZh:null===(o=props.config)||void 0===o?void 0:o.metaNameEn,null===(s=props.config)||void 0===s?void 0:s.metaCode,e,t,n)})),function(){var e,t=getFncomponentProps(),n=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.qg)({config:props.config,props,component:props.component,modelValue,selects,lang:lang.value,vm:instance.proxy}),r=null==n?void 0:n.onClick;return delete n.onClick,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.M9)(props.config,lang.value,n,null==_isH5?void 0:_isH5.value,{lang,rootValue,dynamicMapComp,props,messageInstance:null==messageInstance?void 0:messageInstance.value,OPEN_DATA_RULES})((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(currentComponent.value,(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({key:props.config.metaCode,ref:refFn,onVnodeMounted,onVnodeUnmounted},currentAttrs.value,{onClick:function(e,t){_onClick(e,t),null==r||r(e)}},t,n,vModelObjs),_isSlot(e=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.yo)({config:props.config}))?e:{default:function(){return[e]}}))}}}},76693:(e,t,n)=>{n.d(t,{Tl:()=>l,UU:()=>o,Wb:()=>i,aZ:()=>s,dL:()=>a,xx:()=>r});var r="/sa-lcp/api/v1/pageConfig/queryPageConfigData",i="/sa-lcp/login",o="/sa-lcp/api/v1/sysparam/getSysParamCache",s="/sa-lcp/changePwd/refreshToken",a="/sa-lcp/api/v1/validate/dataValidRuleExecute",l="/sa-lcp/api/v1/fileopertate/findFileAndContentById"},35169:(e,t,n)=>{n.d(t,{dW:()=>$,Wg:()=>H});var r,i,o=n(7252),s=n(53811),a=n(37891),l=n(34963),u=n(39653),c=n(56213),p=n(49859),d=(n(44114),n(94870)),f=n.n(d),h=n(64007),m=n.n(h),y=n(8628),g=n.n(y),v=n(61240),b=n.n(v),_=n(56255),E=n.n(_),x=n(71426),S=n.n(x),T=n(26327),P=n.n(T),A=n(385),w=n.n(A),C=(n(16280),n(76918),n(23288),n(26099),n(27495),n(38781),n(25440),n(86226)),O=n.n(C),I=n(11393),M=n.n(I),D=function(){function e(t,n){var r=this;(0,u.A)(this,e),(0,p.A)(this,"context",null),(0,p.A)(this,"msgSdkInstance",null),(0,p.A)(this,"createComponentUUID",(function(e){var t,n="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return M()(t="".concat(e,"_")).call(t,n,"_from_message")})),(0,p.A)(this,"getContext",(function(){return r.context})),n&&(this.context=(0,s.A)({subComponents:[]},n)),this.msgSdkInstance=t}return(0,c.A)(e,[{key:"insertComponent",value:function(e,t){var n=this;try{var o;O()(e).call(e,(function(e){var t,r,i=e.getContext();null===(t=i.props)||void 0===t||null===(t=t.customEvents)||void 0===t||O()(t).call(t,(function(e){n.msgSdkInstance.registerComponentCustomEvents((0,s.A)({id:i.id},e)),delete e.func})),null===(r=n.context.subComponents)||void 0===r||r.push(e.getContext())})),null===(o=this.msgSdkInstance)||void 0===o||o.postMessage({type:r.callMethod,methodName:i.insertComponent,methodConfig:t,data:this.context})}catch(e){console.error(e)}}},{key:"changeLayoutMaskStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:i.changeLayoutMaskStatus,data:e})}},{key:"changeLayoutAreaStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:i.changeLayoutAreaStatus,data:e})}},{key:"createComponent",value:function(t){return t.isContract=!0,t.isCreateByMessage=!0,t.id=t.id?t.id:this.createComponentUUID(t.type),new e(this.msgSdkInstance,t)}}])}(),k="__SEEYON_UDC__";!function(e){e.callMethod="callMethod",e.message="message",e.callEvent="callEvent"}(r||(r={})),function(e){e.ready="ready",e.insertComponent="insertComponent",e.changeLayoutMaskStatus="changeLayoutMaskStatus",e.changeLayoutAreaStatus="changeLayoutAreaStatus"}(i||(i={}));var N=function(){return(0,c.A)((function e(){var t=this;(0,u.A)(this,e),(0,p.A)(this,"_identifying",k),(0,p.A)(this,"_nameSpaceId",void 0),(0,p.A)(this,"_is_ready",!1),(0,p.A)(this,"_customEvents",{}),(0,p.A)(this,"_eventListener",(function(e,n){try{var r=e.data;if(!t._msgValidator(r))return;t._readyCallBack(r,n),t._callEvent(r)}catch(e){console.error(e)}})),(0,p.A)(this,"_eventListenerHandler",(function(){})),(0,p.A)(this,"contractComponent",(function(e,n){return new D(t,{type:e,id:null==n?void 0:n.id,isContract:!0})})),(0,p.A)(this,"createComponent",(function(e){return new D(t).createComponent(e)})),(0,p.A)(this,"registerComponentCustomEvents",(function(e){var n=e.id,r=e.type,i=e.func;t._customEvents[n]||(t._customEvents[n]={}),t._customEvents[n][r]=i})),(0,p.A)(this,"_customization",{CMI:{insertBtnForToolbar:function(e){var n=e.position,r=e.btns,i=e.id,o=t.contractComponent("UdcToolBar",{id:i}),s=[];null==r||O()(r).call(r,(function(e){s.push(t.createComponent({type:"UdcButton",props:e}))})),o.insertComponent(s,{position:n})},changeLayoutMaskStatus:function(e){var n=e.status,r=e.bgColor;t.contractComponent("UdcLayoutMask").changeLayoutMaskStatus({status:n,bgColor:r})},changeLayoutAreaStatus:function(e){var n=e.hiddenArea;t.contractComponent("UdcLayoutArea").changeLayoutAreaStatus({hiddenArea:n})}}}),(0,p.A)(this,"getCustomApi",(function(){var e=R.baseInfo.tenant||"CMI",n=t._customization[e];if(n)return n;console.error(e?"该tenant未定制过API":"缺少tenant信息")})),this._nameSpaceId=this._uuid()}),[{key:"_uuid",value:function(){var e="xxx_xxxx_xxxx_yxxx_xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return"x".concat(e)}},{key:"_msgValidator",value:function(e){return!("[object Object]"!==Object.prototype.toString.call(e)||e._identifying!==k||!r[e.type]||e._nameSpaceId!==this._nameSpaceId)}},{key:"_readyCallBack",value:function(e,t){var n,i,o;null===(n=e.data)||void 0===n||n.signatureMethods,null===(i=e.data)||void 0===i||i.version,e.type!==r.message||"ready"!==(null===(o=e.data)||void 0===o?void 0:o.status)||this._is_ready||(this._is_ready=!0,t&&t(this,{parentRuntimeContext:null,runtimeContext:null}))}},{key:"_registerEventListener",value:function(e){var t=this;this._eventListenerHandler=function(n){t._eventListener(n,e)},window.addEventListener("message",this._eventListenerHandler)}},{key:"_callEvent",value:function(e){var t=this;if(e.type===r.callEvent){var n=e.callEvents;null==n||O()(n).call(n,(function(e){var n,r,i=e.id,o=e.type;null===(n=t._customEvents[i])||void 0===n||null===(r=n[o])||void 0===r||r.call(n)}))}}},{key:"destory",value:function(){window.removeEventListener("message",this._eventListenerHandler)}},{key:"postMessage",value:function(e){(e.type==r.callMethod&&e.methodName==i.ready||this._is_ready)&&window.parent.postMessage((0,s.A)((0,s.A)({},e),{},{_identifying:this._identifying,_nameSpaceId:this._nameSpaceId}),"*")}},{key:"ready",value:function(e){this.postMessage({type:r.callMethod,methodName:i.ready}),this._registerEventListener(e)}}])}(),j=new N,L={getUdcAppInfo:function(e){throw Error("getUdcAppInfo ONLY work under UDC app")},getUdcPageInParams:function(e){throw Error("getUdcPageInParams ONLY work under UDC app")},getUdcPageInfo:function(e){throw Error("getUdcPageInfo ONLY work under UDC app")},getUdcPageRuntimeVariable:function(e){throw Error("getUdcPageRuntimeVariable ONLY work under UDC app")},getUdcPageSignature:function(e){throw Error("getUdcPageSignature ONLY work under UDC app")},getUdcPageVariables:function(e,t){throw Error("getUdcPageVariables ONLY work under UDC app")},setUdcPageRuntimeVariable:function(e,t){throw Error("setUdcPageRuntimeVariable ONLY work under UDC app")},setUdcPageVariables:function(e,t,n){throw Error("setUdcPageVariables ONLY work under UDC app")},getUdcComponentInfo:function(e){throw Error("getUdcComponentInfo ONLY work under UDC app")},getUdcComponentSignature:function(e){throw Error("getUdcComponentSignature ONLY work under UDC app")},getUdcComponentValue:function(e,t){throw Error("getUdcComponentValue ONLY work under UDC app")},getUdcComponentViewState:function(e,t){throw Error("getUdcComponentViewState ONLY work under UDC app")},setUdcComponentValue:function(e,t,n){throw Error("setUdcComponentValue ONLY work under UDC app")},setUdcComponentViewState:function(e,t,n){throw Error("setUdcComponentViewState ONLY work under UDC app")},getUdcParentComponentInfo:function(e){throw Error("getUdcParentComponentInfo ONLY work under UDC app")},getUdcDataContainerComponentInfo:function(e){throw Error("getUdcDataContainerComponentInfo ONLY work under UDC app")},getComponentValueFromUiModelNode:function(e,t){throw Error("getComponentValueFromUiModelNode ONLY work under UDC app")},setComponentValueFromUiModelNode:function(e,t,n,r){throw Error("setComponentValueFromUiModelNode ONLY work under UDC app")},getUdcSubComponentViewState:function(e){throw Error("getUdcSubComponentViewState ONLY work under UDC app")},setUdcSubComponentViewState:function(e,t){throw Error("setUdcSubComponentViewState ONLY work under UDC app")},getUdcDatasouceMetaInfo:function(e,t){throw Error("getUdcDatasouceMetaInfo ONLY work under UDC app")},queryUdcDatasourceDetail:function(e,t){throw Error("queryUdcDatasourceDetail ONLY work under UDC app")},queryUdcDatasourceList:function(e,t){throw Error("queryUdcDatasourceList ONLY work under UDC app")},queryUdcDatasourceListSummary:function(e,t){throw Error("queryUdcDatasourceListSummary ONLY work under UDC app")},saveUdcDatasourceData:function(e,t){throw Error("saveUdcDatasourceData ONLY work under UDC app")},saveUdcDatasourceListData:function(e,t){throw Error("saveUdcDatasourceListData ONLY work under UDC app")},deleteAndSaveUdcDatasourceData:function(e,t,n){throw Error("deleteAndSaveUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceData:function(e,t){throw Error("createUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceDataFromSelectRows:function(e,t){throw Error("createUdcDatasourceDataFromSelectRows ONLY work under UDC app")},deleteUdcDatasourceData:function(e,t,n){throw Error("deleteUdcDatasourceData ONLY work under UDC app")},getUdcDatasourceData:function(e,t){throw Error("getUdcDatasourceData ONLY work under UDC app")},execParseUdcExpression:function(e,t){throw Error("parseUdcExpression ONLY work under UDC app")},callUdcPresetFunc:function(e,t,n){throw Error("execPresetFunctor ONLY work under UDC app")},callUdcPresetEventAction:function(e,t){throw Error("callUdcPresetEventAction ONLY work under UDC app")},i18n:function(e,t){throw Error("i18n ONLY work under UDC app")},getUdcComponent:function(e,t){throw Error("getUdcComponent ONLY work under UDC app")},getUdcProfile:function(e,t,n){throw Error("getUdcProfile ONLY work under UDC app")},getApiUrlByUdcAppInfo:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},transformCtpEnumCode:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},getUdcSdkForIframe:function(){return j},baseInfo:{tenant:null}},R=L;window.__UDC_OPEN_SDK__||(window.__UDC_OPEN_SDK__={default:L});var B=function(e,t){var n=function(e){var t=window.__UDC_OPEN_SDK__.default;return e in window.__UDC_OPEN_SDK__&&(t=window.__UDC_OPEN_SDK__[e]),t}(e);n.baseInfo=t},F="SEND",U="SUBMIT",V="AGREE",W="DRAFT_HANDLE",q="GET_FORM_DATA",$=null,K=function(){return(0,c.A)((function e(t,n,r,i){(0,u.A)(this,e),(0,p.A)(this,"commonActionKey","common"),(0,p.A)(this,"showCopyModalCb",null),(0,p.A)(this,"params",{}),(0,p.A)(this,"bpmConfigs",{}),(0,p.A)(this,"eventData",null),(0,p.A)(this,"postOptions",null),(0,p.A)(this,"sdkInstance",null),(0,p.A)(this,"postMessageData",null),(0,p.A)(this,"actions",{}),(0,p.A)(this,"nativeMethods",{}),(0,p.A)(this,"saveResponse",null),this.postMessageData=t,this.actions=n,this.bpmConfigs=r||{},this.params=i||{},this.setNativeMethods(),this.init()}),[{key:"init",value:function(){var e;window.parent!==window&&window.parent.postMessage({hasListener:!0},"*"),window.addEventListener("message",f()(e=this.messageListener).call(e,this))}},{key:"setNativeMethods",value:function(){var e=this,t=this.params,n=t.validate,r=t.dynamicMapComp,i=t.bpmSubmitBtn,o=t.toExecuteLoadServices,s=(t.messageInstance,this.bpmConfigs),u=s.getDetailReq,c=s.customValidate,p=s.saveValidate,d=function(){var t=(0,l.A)((0,a.A)().mark((function t(n){var o,s;return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p||"function"!=typeof p){t.next=6;break}return t.next=3,p();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:return o=r[i],s=function(t){return function(){var r=(0,l.A)((0,a.A)().mark((function r(i){var o,s,u,c,p,d,f;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.bpmConfigs.saveAfter,e.saveResponse=i,s=e.params,u=s.copyModal,c=s.lang,p=s.calcShowCopyModal,r.prev=3,(d=p(i,n))&&(f=n.submitType,e.showCopyModalCb=function(){var t,n,r,i=(null==c||null===(t=c.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"提交成功":"Submit Success",o=(null==c||null===(n=c.value)||void 0===n?void 0:m()(n).call(n,"zh"))>-1?"保存成功":"Save Success",s=g()(r=[F,U,V]).call(r,f)?i:o;return e.showCopyModalCb=null,new(b())((function(e){var t,n;null==u||u({lang:null==c?void 0:c.value,type:"check",showcopy:!0,copytype:(null==c||null===(t=c.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"申请单号":"Application No.",copymsg:d,showCancle:!1,msg:s,handleOk:(n=(0,l.A)((0,a.A)().mark((function t(){return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(!0);case 1:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})}))}),r.next=8,null==o?void 0:o(i,n);case 8:r.next=13;break;case 10:r.prev=10,r.t0=r.catch(3),console.error("saveAfter error, error:",r.t0);case 13:E()((function(){null==t||t(i)}),0);case 14:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(e){return r.apply(this,arguments)}}()},t.abrupt("return",new(b())((function(e){var t,n=s((function(t){e(t)}));o?null==o||null===(t=o.vm)||void 0===t||t.click({afterRequestService:n}):(console.log("no set bpmSubmitBtn, or bpmSubmitBtn is invalid."),n({data:{success:!0}}))})));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=function(){var e=(0,l.A)((0,a.A)().mark((function e(t){return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new(b())((function(e){n((function(t){e(t)}))}));case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(!c||"function"!=typeof c){e.next=7;break}return e.abrupt("return",c(t));case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();this.nativeMethods={nativeValidate:n,customValidate:c,validate:f,toSave:d,getDetail:function(){var t=null==u?void 0:u(e.saveResponse);o(!0,!0,{params:t})}}}},{key:"messageListener",value:function(e){console.log("message event===:",e);var t=e.data||{};if(null!=t&&t.isFromBPM){var n=this.postOptions;this.postOptions=null,this.eventData=t,this.handleMessage&&this.handleMessage(e,n)}}},{key:"handleMessage",value:(n=(0,l.A)((0,a.A)().mark((function e(t,n){var r,i,o,s,l,u,c,p,d,f,h,m,y,v,b,_,E,x;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.eventData||{},o=i.messageType,s=i.submitType,l=null==i||null===(r=i.bpmInfo)||void 0===r?void 0:r.actionType,console.log("messageType==:",o),console.log("submitType==:",s),console.log("actionType==:",l),q!==o){e.next=25;break}if((p=null===(u=this.actions)||void 0===u||null===(u=u[s])||void 0===u?void 0:u.formAction)||(p=null===(d=this.actions)||void 0===d||null===(d=d[this.commonActionKey])||void 0===d?void 0:d.formAction),p||(p=this.getDefaultAction(i)),!p){e.next=16;break}return e.next=13,null===(f=p)||void 0===f?void 0:f({eventData:this.eventData,nativeMethods:this.nativeMethods});case 13:if(!1!==e.sent){e.next=16;break}return e.abrupt("return");case 16:if((h=null===(c=this.actions)||void 0===c||null===(c=c[s])||void 0===c?void 0:c.postMessageData)||(h=this.postMessageData),"function"!=typeof h){e.next=22;break}return e.next=21,h({eventData:this.eventData});case 21:h=e.sent;case 22:this.postMessage(h),e.next=38;break;case 25:if("PROCESS_ACTION_SUCCESS"!==o){e.next=38;break}return b=!0,b=!g()(m=["PROCESS_SHOW","BACK",W]).call(m,s),e.next=30,null===(y=this.showCopyModalCb)||void 0===y?void 0:y.call(this);case 30:if((_=null===(v=this.actions)||void 0===v||null===(v=v[s])||void 0===v?void 0:v.successAction)||(_=null===(E=this.actions)||void 0===E||null===(E=E[this.commonActionKey])||void 0===E?void 0:E.successAction),_||(_=this.getDefaultAction(i)),!_){e.next=37;break}return e.next=36,null===(x=_)||void 0===x?void 0:x({eventData:this.eventData,originCloseFlag:b,nativeMethods:this.nativeMethods});case 36:b=e.sent;case 37:this.postMessage(null,{closeFlag:!!b});case 38:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"setSaveMessage",value:function(){this.eventData={submitType:"DRAFT_HANDLE",messageType:"GET_FORM_DATA",url:"*"}}},{key:"postMessage",value:(t=(0,l.A)((0,a.A)().mark((function e(){var t,n,r,i,o,l,u,c,p,d=arguments;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=d.length>0&&void 0!==d[0]?d[0]:{},n=d.length>1?d[1]:void 0,console.log("postmessage formData ===:",t,n),this.postOptions=n,(null==n?void 0:n.closeFlag)?(console.log("走进判断关闭页面===="),window.parent!==window&&window.parent.postMessage({messageType:"CLOSE_WINDOW"},"*")):(o=!g()(r=["BACK"]).call(r,null===(i=this.eventData)||void 0===i?void 0:i.submitType),console.log("eventData==:",this.eventData),window.parent!==window&&(p={success:!0,submitType:null===(l=this.eventData)||void 0===l?void 0:l.submitType,messageType:null===(u=this.eventData)||void 0===u?void 0:u.messageType,actionInfo:{preventClose:o},formData:(0,s.A)({},t)},console.log("url==:",this.eventData.url),console.log("postData==:",p),window.parent.postMessage(p,null===(c=this.eventData)||void 0===c?void 0:c.url)));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getDefaultAction",value:function(e){var t=this,n=e.messageType,r=e.submitType;if(q===n)switch(r){case F:case U:case V:return(0,l.A)((0,a.A)().mark((function n(){var r,i,o,s,l,u;return(0,a.A)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.nativeMethods,i=r.validate,o=r.toSave,s=r.getDetail,n.next=3,i(e);case 3:if(!n.sent){n.next=16;break}return n.next=7,o(e);case 7:if(null==(u=n.sent)||null===(l=u.data)||void 0===l||!l.success){n.next=13;break}return s(),n.abrupt("return",!0);case 13:case 16:return n.abrupt("return",!1);case 14:n.next=17;break;case 17:case"end":return n.stop()}}),n)})));case"NOTICE":case"GIVE":case W:case"MULTI_COOPERATE":return(0,l.A)((0,a.A)().mark((function n(){var r,i,o,s,l,u,c;return(0,a.A)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=null==e||null===(r=e.bpmInfo)||void 0===r?void 0:r.actionType,o=t.nativeMethods,s=o.toSave,l=o.getDetail,i){n.next=14;break}return n.next=5,s(e);case 5:if(null==(c=n.sent)||null===(u=c.data)||void 0===u||!u.success){n.next=11;break}return l(),n.abrupt("return",!0);case 11:return n.abrupt("return",!1);case 12:n.next=15;break;case 14:return n.abrupt("return",!0);case 15:case"end":return n.stop()}}),n)})))}}},{key:"on",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]);S()(n).call(n,(function(e){return e===t}))||null==n||n.push(t)}},{key:"remove",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]),r=P()(n).call(n,(function(e){return e===t}));-1!==r&&(null==n||w()(n).call(n,r,1))}},{key:"getSdkInstance",value:(e=(0,l.A)((0,a.A)().mark((function e(){var t=this;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("to get sdk===="),!this.sdkInstance){e.next=5;break}return e.abrupt("return",this.sdkInstance);case 5:return e.abrupt("return",new(b())((function(e){var n,r;r=function(n){console.log("instance===:",n),t.sdkInstance=n,e(n)},"iframe"===(n={mode:"iframe",tenant:"CMI"}).mode?(B(n.version,{tenant:n.tenant}),L.getUdcSdkForIframe().ready(r)):console.error("SDK当前仅支持iframe模式")})));case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"changeSlide",value:function(e){this.getSdkInstance().then((function(t){var n;console.log("切换致远弹框===:",!0),null==t||null===(n=t.getCustomApi())||void 0===n||n.changeLayoutAreaStatus({hiddenArea:e?[]:["header","left","right","footer"]})}))}},{key:"insertBtn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;this.getSdkInstance().then((function(n){var r;console.log("insert btns==:",e,t),null==n||null===(r=n.getCustomApi())||void 0===r||r.insertBtnForToolbar({position:t,btns:e})}))}},{key:"destroy",value:function(){window.removeEventListener("message",this.messageListener),this.sdkInstance=null}}]);var e,t,n}();function H(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $=(0,o.A)(K,t)}},71143:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(64007),i=n.n(r),o=(n(2892),n(75286)),s=["labelWidth"],a={slot:"label",class:"custom-label--formItem"},l={class:"custom-label-content"},u={key:0,class:"label-required"},c={class:"label-text"};const p={__name:"index",props:{messageInstance:{type:[Object,Function],default:function(){return null}},config:{type:Object,default:function(){return{}}},lang:{type:String,default:"zh"},labelWidth:[String,Number]},setup:function(e){var t=e,n=(0,o.useAttrs)(),r=(0,o.computed)((function(){var e;return"1"==t.config.labelHidden||0==t.config.labelWidth||"0"==t.config.labelWidth?"":(i()(e=t.lang).call(e,"zh")>-1?t.config.metaNameZh:t.config.metaNameEn)||""})),p=(0,o.computed)((function(){return t.config.labelPosition?t.config.labelPosition:"left"}));function d(){var e,n;null===(e=messageInstance)||void 0===e||e.text(i()(n=t.lang).call(n,"zh")>-1?t.config.hintContentZh:t.config.hintContentEn)}return function(e,i){return(0,o.openBlock)(),(0,o.createElementBlock)("cmi-form-item",(0,o.mergeProps)((0,o.unref)(n),{class:["custom-form-item-h5",[{"--required":"1"==t.config.requiredFlag,"--label-hide":!p.value,"--label-text-left":"left"===e.labelPosition,"--label-text-right":"right"===e.labelPosition},e.customClass]],labelWidth:t.labelWidth}),[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",l,["1"==t.config.requiredFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",u,"*")):(0,o.createCommentVNode)("v-if",!0),(0,o.createElementVNode)("span",c,(0,o.toDisplayString)(r.value),1),"1"==t.config.hintFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:"label-tip",onClick:d},i[0]||(i[0]=[(0,o.createElementVNode)("cmi-icon-question-circle",{size:"14"},null,-1)]))):(0,o.createCommentVNode)("v-if",!0)])]),(0,o.renderSlot)(e.$slots,"default")],16,s)}}};n(38709);const d=(0,n(66262).A)(p,[["__scopeId","data-v-d2c369a2"]])},44026:(e,t,n)=>{n.d(t,{bt:()=>$});var r=n(37891),i=n(53811),o=n(34963),s=(n(48598),n(44114),n(27495),n(71761),n(73363)),a=n.n(s),l=n(64007),u=n.n(l),c=n(86226),p=n.n(c),d=n(48079),f=n.n(d),h=n(14166),m=n.n(h),y=n(50697),g=n.n(y),v=n(71426),b=n.n(v),_=n(56255),E=n.n(_),x=n(61240),S=n.n(x),T=n(36586),P=n.n(T),A=n(12935),w=n(76693),C=n(19022),O=n(157),I=n(17427),M=n(52644),D=n(35169);function k(e){return N.apply(this,arguments)}function N(){return(N=(0,o.A)((0,r.A)().mark((function e(t){var n,i,o,s,a,l,u,c,p,d,f,h,m,y,v,_,E;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.serviceList,i=void 0===n?[]:n,o=t.requestTraceId,s=t.axiosInstance,a=t.dialogReq,l=t.dynamicMapComp,u=t.rootValue,c=t.dynamicHireRelat,p=t.messageCb,d=t.compConfig,f=t.messageInstance,h=t.lang,m=t.beforeRequestService,y=t.afterRequestService,v=g()(l),_=b()(i).call(i,(function(e){return"1"==e.serviceType})),E=0;E<i.length;E++)j(i[E],{dynamicMapComp:l,requestTraceId:o,dialogReq:a,mixinServiceConfig:_,rootValue:u,dynamicMapCompKeys:v,dynamicHireRelat:c,axiosInstance:s,messageCb:p,compConfig:d,messageInstance:f,lang:h,beforeRequestService:m,afterRequestService:y});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,t){return L.apply(this,arguments)}function L(){return L=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,u,c,p,d,f,h,m,y,g,v,b,_,x;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return x=(0,o.A)((0,r.A)().mark((function e(){var n,b,_,x,T,w,C,M,D,k,N,j,L,U,V,W,q,$,K,H,z,G,Y,X,J,Q,Z,ee,te,ne,re,ie,oe=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b=!(oe.length>0&&void 0!==oe[0])||oe[0],_=u||{},x=null,T=(0,I.Ho)({extendAttr:t.extendAttr}),w=null,C=null,((M=null==h?void 0:h.beforeRequestService)||g)&&(w=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return g&&(t=null==g?void 0:g.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!M){e.next=12;break}return e.abrupt("return",null==M?void 0:M.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((D=null==h?void 0:h.afterRequestService)||v)&&(C=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),i=0;i<t;i++)n[i]=o[i];return e.next=3,null==v?void 0:v.apply(void 0,n);case 3:return e.next=5,null==D?void 0:D.apply(void 0,n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),"1"==t.transactionType&&(_=R(t.inParamMappingList||[],{emptyUpdate:!0,dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p}),x=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p}),null!==(k=x)&&void 0!==k&&k.vm&&(b&&((0,I.Ts)(x,"serviceCurrentChangeLoad",!0),x.vm.page.pageNum=1,E()((function(){(0,I.Ts)(x,"serviceCurrentChangeLoad",!1)}),200)),(0,A.b0)(null===(N=x.vm.page)||void 0===N?void 0:N.pageNum)||(0,A.kZ)(null===(j=x.vm.page)||void 0===j?void 0:j.pageNum)||(0,I.oY)(_,t.pageNum||"pageNum",null===(V=x.vm.page)||void 0===V?void 0:V.pageNum),(0,A.b0)(null===(L=x.vm.page)||void 0===L?void 0:L.pageSize)||(0,A.kZ)(null===(U=x.vm.page)||void 0===U?void 0:U.pageSize)||(0,I.oY)(_,t.pageSize||"pageSize",null===(W=x.vm.page)||void 0===W?void 0:W.pageSize)),_=(0,i.A)({},_)),q=t.serviceCode,$=t.httpMethod||"post",K={aid_language:y,requestTraceId:a,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==l?void 0:l.mainServiceCode}},(null==T?void 0:T.notDefaultParmas)&&(K={}),H=(0,I.Vv)(K,_),K=H,z=!0,w&&(z=w({dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:u,dynamicHireRelat:p,compConfig:h,service:t,reqData:K})),e.next=22,z;case 22:if(!1!==e.sent){e.next=25;break}return e.abrupt("return");case 25:return G={url:q,method:$,data:K},"get"===$.toLocaleLowerCase()&&(G.params=K,delete G.data),e.next=29,d&&d(G);case 29:if(Y=e.sent,!C){e.next=33;break}return e.next=33,C(Y,{dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:u,dynamicHireRelat:p,compConfig:h,service:t,reqData:K});case 33:if(X="get"===$.toLocaleLowerCase()||"1"==t.transactionType||(null==T?void 0:T.noSuccessIip),J={messageCb:f,service:t,compConfig:h,noSuccessIip:X},T.resultCodeKey&&(J.resultCodeKey=T.resultCodeKey),(0,O.N)(null==Y?void 0:Y.data,m,J)){e.next=40;break}return e.next=39,S().reject();case 39:return e.abrupt("return");case 40:B(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p,outResult:Y.data}),null!==(n=x)&&void 0!==n&&n.vm&&(ee=null===(Q=Y.data)||void 0===Q?void 0:Q.result,te=t.pageTotalCount,ne=/^_deep:(.+)$/,(re=null===(Z=t.pageTotalCount)||void 0===Z?void 0:Z.match(ne))&&(ee=Y.data,te=re[1]),ie=P()((0,I.V9)(ee||{},te||"pageCount")),x.vm.page.total=ie);case 42:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)},_=function(){return x.apply(this,arguments)},s=n.dynamicMapComp,a=n.requestTraceId,n.dialogReq,l=n.mixinServiceConfig,u=n.rootValue,c=n.dynamicMapCompKeys,p=n.dynamicHireRelat,d=n.axiosInstance,f=n.messageCb,h=n.compConfig,m=n.messageInstance,y=n.lang,g=n.beforeRequestService,v=n.afterRequestService,"1"==t.transactionType&&(b=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p}))&&((0,I.Ts)(b,"serviceSizeChange",(function(e,t,n){_()})),(0,I.Ts)(b,"serviceCurrentChange",(function(e,t,n){_(!1)}))),_();case 5:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.emptyUpdate,r=t.dynamicMapComp,i=t.dynamicMapCompKeys,o=t.dynamicHireRelat;return a()(e).call(e,(function(e,t){var s,a=t.orignParam,l=void 0===a?"":a,c=t.destParam,p=void 0===c?"":c,d=(0,C.qK)(i,l,o);d.length>1&&console.error("search arg muti",t,d);var f,h=d[0],m=null==r||null===(s=r[h])||void 0===s?void 0:s.refValue;return(((0,A.b0)(m)||(0,A.kZ)(m))&&n||!(0,A.b0)(m)&&!(0,A.kZ)(m))&&(f=-1!==(null==p?void 0:u()(p).call(p,"->"))?(null==p?void 0:p.split("->"))||[]:(null==p?void 0:p.split("."))||[],(0,I.oY)(e,f,(0,A.b0)(m)||(0,A.kZ)(m)?"":m)),e}),{})}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=t.outResult,s=void 0===o?{}:o;p()(e).call(e,(function(e){var t=e.orignParam,o=void 0===t?"":t,l=e.destParam,u=void 0===l?"":l,c=e.isList,p=void 0!==c&&c,d=e.primaryKeys,h=void 0===d?[]:d,y=(0,C.qK)(r,u,i);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=n[g];if(v){var b=o?null==o?void 0:o.split("."):[],_=a()(b).call(b,(function(e,t){if(e)return e[t]}),s);p&&((0,A.cy)(_)?(0,A.cy)(v.refValue)&&(0,A.cy)(_)&&(_=(0,I.q2)(v.refValue,_,(function(e,t){var n;return!(!h||!h.length)&&(null===(n=f()(h).call(h,(function(n){return((0,A.sw)(e[n])||(0,A.sw)(t[n]))&&e[n]==t[n]})))||void 0===n?void 0:m()(n).call(n,(function(e){return e})))}))):_=(0,A.cy)(v.refValue)?v.refValue:[]),v.refValue=_}}))}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=0;o<e.length;o++){var s=e[o],a=s.destParam,l=void 0===a?"":a,u=(0,C.qK)(r,l,i);u.length>1&&console.error("search arg muti",s,u);var c=u[0];if(c){var p=n[c];if("CustomComponentTable"===p.metaType||"CustomComponentTableH5"===p.metaType)return p}}}function U(e){var t,n=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,u=e.components,c=e.rootValue,d=e.polyfillConfigs,h=e.pagePopupMap,m=e.axiosInstance,y=e.dynamicMapComp,v=e.dynamicHireRelat,b=e.lang,_=e.buttonActions,E=e.openChildDialog,x=e.appContext,S=e.compConfig,T=(0,I.Ho)({extendAttr:h.extendAttr}),P=h.popupBusiIdentityId,A=g()(y),w=R(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v}),C="1"==(null==h?void 0:h.objOrList),O=(null==h||null===(t=h.outParamMappingList)||void 0===t?void 0:f()(t).call(t,(function(e){var t=e.orignParam?e.orignParam.split("->"):[],n=e.orignParam?"1"!=(null==T?void 0:T.bindFormData)||C?t[t.length-1]:t.join("."):"";return(0,i.A)((0,i.A)({},e),{},{orignParam:n})})))||[],M={},k={};if(C){var N,j=[];M=null===(N=O)||void 0===N?void 0:a()(N).call(N,(function(e,t){var n=t.orignParam,r=t.destParam,i=t.primaryKeyFlag,o=void 0===i?"":i,s=r?r.split("->"):[];return e[r?s[s.length-1]:""]=n,"1"==o&&j.push(n),e}),{});var L=F(O=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:j,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v});k.selections=(null==L?void 0:L.refValue)||[],k.primaryKeys=j}var U={},V={},W=null,q={};h.outDisplayTrigger&&(q[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=U.tableSelectedInfo;C&&(t=null===(e=U.tableSelectedInfo)||void 0===e?void 0:f()(e).call(e,(function(e){var t,n=(0,i.A)({},e);return p()(t=g()(M)).call(t,(function(t){M[t]&&(n[t]=e[M[t]])})),n}))),"1"!=(null==T?void 0:T.bindFormData)||C||(t=V);var n=null==S?void 0:S.middleOpenDialog,s=l;(n||s)&&(l=function(){var e=(0,o.A)((0,r.A)().mark((function e(t){var o,a;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null,s&&(o=null==s?void 0:s(t)),!o){e.next=7;break}return e.next=5,o;case 5:return a=e.sent,e.abrupt("return",null==n?void 0:n((0,i.A)((0,i.A)({},t),{},{outputParams:a})));case 7:return e.abrupt("return",null==n?void 0:n(t));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var a=t;function u(e){var t;B(O,{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v,outResult:e}),null===(t=W)||void 0===t||t(),z(e)}l&&(a=l({dynamicMapComp:y,rootValue:c,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:w,outputParams:t})||a),(0,I.yL)(a)?a.then((function(e){u(e)})):u(a)}}}),h.closedTrigger&&(q[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=W)||void 0===e||e(),z()}}});var $=null==S?void 0:S.beforeOpenDialog,K=n;n=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s,a=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(t=D.dW.changeSlide)||void 0===t||t.call(D.dW,!1),n=!0,i=a.length,o=new Array(i),s=0;s<i;s++)o[s]=a[s];return K&&(n=null==K?void 0:K.apply(void 0,o)),e.next=6,n;case 6:if(!1!==e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:if(!$){e.next=13;break}return e.abrupt("return",null==$?void 0:$.apply(void 0,o));case 13:return e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();var H=!0;function z(e){var t=null==S?void 0:S.afterOpenDialog,n=s;s=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var i,o,s,a,l=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(i=D.dW.changeSlide)||void 0===i||i.call(D.dW,!0),o=l.length,s=new Array(o),a=0;a<o;a++)s[a]=l[a];null==n||n.apply(void 0,s),null==t||t.apply(void 0,s);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s&&s({dynamicMapComp:y,rootValue:c,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:w,outputParams:e})}function G(){W=E({buttonActions:_,dialogProps:(0,i.A)((0,i.A)({},T||{}),{},{beforeClose:function(){z()}}),parentRootValue:c,parentDynamicMapComp:y,selectionsObj:k,busiIdentityId:P,axiosInstance:m,lang:b,loadEvnetsReq:w,initData:w,components:u,parentSelects:null==S?void 0:S._selects,polyfillConfigs:(0,i.A)((0,i.A)({},q),d||{}),rootStoreChange:function(e){U=e},rootDataChange:function(e){V=e}},x)}n&&(H=n({dynamicMapComp:y,rootValue:c,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:w})),null!=H?(0,I.yL)(H)?H.then((function(e){!1!==e&&G()})):H&&G():G()}function V(e,t){return W.apply(this,arguments)}function W(){return W=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,c,p,d,f,h,m,y,g,v,b,_,E,x,T,P,A,C,I,D,k,N,j,L;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.beforeDataValidRequestService,c=n.afterDataValidRequestService,p=n.confirmInstance,d=n.dynamicMapComp,f=n.requestTraceId,h=n.compConfig,m=n.mixinServiceConfig,y=n.rootValue,g=n.builtPolyfillReq,n.axiosInstance,v=n.lang,b=y||{},_=w.dL,((T=null==h?void 0:h.beforeDataValidRequestService)||l)&&(E=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return l&&(t=null==l?void 0:l.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!T){e.next=12;break}return e.abrupt("return",null==T?void 0:T.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((P=null==h?void 0:h.afterDataValidRequestService)||c)&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==c||c.apply(void 0,t),null==P||P.apply(void 0,t)}),A=!0,E&&(A=E({dynamicMapComp:d,requestTraceId:f,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,A;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,M.ZW)(_,(0,i.A)((0,i.A)((0,i.A)({aid_language:v,requestTraceId:f,busiIdentityId:t.busiIdentityId},b),g||{}),{},{pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==m?void 0:m.mainServiceCode}}),{method:"post"});case 16:if(C=e.sent,I=C.data||{},null!==(s=C.data)&&void 0!==s&&s.baseResponse&&(I=null===(D=C.data)||void 0===D?void 0:D.baseResponse),k=I.resultCode,N=(null===(a=I)||void 0===a?void 0:a.resultMessage)||"",j="",L=!1,O.O.SUCCESS===k){e.next=40;break}e.t0=k,e.next=e.t0===O.O.WARNING?27:e.t0===O.O.ERROR?30:e.t0===O.O.INFO?33:e.t0===O.O.OTHER?35:37;break;case 27:return j="warning",L=!0,e.abrupt("break",39);case 30:return j="error",L=!1,e.abrupt("break",39);case 33:return j="info",e.abrupt("break",39);case 35:case 37:return j="error",e.abrupt("break",39);case 39:return e.abrupt("return",new(S())((function(e,t){p(N,(null==v?void 0:u()(v).call(v,"zh"))>-1?"提示":"Hint",{type:j,showCancelButton:L}).then((function(){L?(x&&x(C,{valid:!0}),e(!0)):(x&&x(C,{valid:!1}),e(!1))})).catch((function(){x&&x(C,{valid:!1}),t(!1)}))})));case 40:return x&&x(C,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function q(e){if("1"==(null==e?void 0:e.closedType)){var t=window.top;null==t||t.close()}else{var n;null===(n=window)||void 0===n||null===(n=n.history)||void 0===n||n.back()}}function $(){return K.apply(this,arguments)}function K(){return K=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s,a,l,u,c,p,d,f,h,m,y,g,v,_,E,x,S,T,P,A,w,C,O,I,M,D,N,j,L,R,B,F=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=F.length>0&&void 0!==F[0]?F[0]:{}).beforeDataValidRequestService,o=n.afterDataValidRequestService,s=n.beforeRequestService,a=n.afterRequestService,l=n.beforeOpenDialog,u=n.afterOpenDialog,c=n.middleOpenDialog,p=n.components,d=n.props,f=n.requestTraceId,h=n.axiosInstance,m=n.polyfillConfigs,y=n.buttonActions,g=n.rootValue,v=n.confirmInstance,_=n.dialogReq,E=n.dynamicMapComp,x=n.messageInstance,S=n.openChildDialog,T=n.messageCb,P=n.lang,A=n.builtPolyfillReq,w=n.appContext,C=d.config.lcpPageServiceMapVOList||[],O=b()(C).call(C,(function(e){return"1"==e.serviceType})),null==(I=(null===(t=d.config)||void 0===t?void 0:t.lcpPageRuleVOList)||[])||!I.length){e.next=11;break}return M=I[0],e.next=8,V(M,{dynamicMapComp:E,requestTraceId:f,rootValue:g,axiosInstance:h,mixinServiceConfig:O,compConfig:d.config,confirmInstance:v,builtPolyfillReq:A,beforeDataValidRequestService:i,afterDataValidRequestService:o,lang:P});case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:null!=C&&C.length&&(N=null===(D=d.config)||void 0===D?void 0:D.dynamicHireRelat,k({serviceList:C,axiosInstance:h,requestTraceId:f,rootValue:g,dynamicMapComp:E,dynamicHireRelat:N,messageInstance:x,messageCb:T,compConfig:d.config,dialogReq:_,lang:P,beforeRequestService:s,afterRequestService:a})),(j=d.config.lcpPagePopupMapVO)&&(R=null===(L=d.config)||void 0===L?void 0:L.dynamicHireRelat,U({beforeOpenDialog:l,afterOpenDialog:u,middleOpenDialog:c,components:p,rootValue:g,polyfillConfigs:m,pagePopupMap:j,axiosInstance:h,dynamicMapComp:E,dynamicHireRelat:R,appContext:w,lang:P,messageCb:T,buttonActions:y,openChildDialog:S,compConfig:d.config})),(B=d.config.lcpPageClosedMapVO)&&q(B);case 16:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}},84667:(e,t,n)=>{n.d(t,{W:()=>h,A:()=>l});var r=n(75286),i=n(56255),o=n.n(i),s=n(86226),a=n.n(s);n(2892),n(42710);const l={inheritAttrs:!1,name:"LazyLoadComponent",emits:["beforeInit","init","before-enter","before-leave","after-enter","after-leave"],props:{config:Object,timeout:{type:Number},tagName:{type:String,default:""},viewport:{type:"undefined"!=typeof window?window.HTMLElement:Object,default:function(){return null}},threshold:{type:String,default:"0px"},direction:{type:String,default:"vertical"},maxWaitingTime:{type:Number,default:50}},setup:function(e,t){var n=t.slots,i=t.emit,s=(t.attrs,Math.random()),l=(0,r.ref)(null),u=null,c=(0,r.reactive)({isInit:!1,timer:null,io:null,loading:!1});function p(e){null==e||a()(e).call(e,(function(e){var t;(e.isIntersecting||e.intersectionRatio)&&(d(),null===(t=u)||void 0===t||t.unobserve(l.value))}))}function d(){var t;i("beforeInit"),c.loading=!0,t=function(){c.isInit=!0,i("init")},o()((function(){c.isInit||t()}),e.maxWaitingTime),(window.requestAnimationFrame||function(e){return o()(e,1e3/60)})(t)}function f(t){t&&(u&&l.value&&u.unobserve(l.value),l.value=t,c.isInit||function(){if(!e.timeout){var t;switch(e.direction){case"vertical":t="".concat(e.threshold," 0px");break;case"horizontal":t="0px ".concat(e.threshold)}try{(u=new window.IntersectionObserver(p,{rootMargin:t,root:e.viewport,threshold:[0,Number.MIN_VALUE,.01,.25,.5,.75,1]})).observe(l.value)}catch(e){d()}}}())}return e.timeout&&o()((function(){d()}),e.timeout),(0,r.onBeforeUnmount)((function(){var t;u&&(console.log("props.config=:",e.config),null===(t=u)||void 0===t||t.disconnect())})),function(){return(0,r.createVNode)(r.Fragment,null,[c.isInit?null==n?void 0:n.default(c.loading):(0,r.createVNode)("div",{style:"width: 100%",key:s,ref:f},[null!=n&&n.skeleton?null==n?void 0:n.skeleton():null])])}}};var u=n(29544),c=n.n(u),p=n(8628),d=n.n(p);const f=c()({name:"LazyLoadSkeleton"},{__name:"LazyLoadSkeleton",props:{type:{type:String,default:"text",validator:function(e){var t;return d()(t=["text","avatar","image","button"]).call(t,e)}},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:null},animated:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup:function(e){var t=e,n=(0,r.computed)((function(){var e={};return t.width&&(e.width=isNaN(t.width)?t.width:"".concat(t.width,"px")),t.height&&(e.height=isNaN(t.height)?t.height:"".concat(t.height,"px")),t.round&&(e.borderRadius="50%"),e}));return function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["skeleton-item","skeleton-".concat(e.type),e.animated&&"skeleton-animated"]),style:(0,r.normalizeStyle)(n.value)},[(0,r.renderSlot)(t.$slots,"default")],6)}}});n(87128);const h=(0,n(66262).A)(f,[["__scopeId","data-v-5517e618"]])},29915:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(49859),i=(n(2892),n(29544)),o=n.n(i),s=n(36586),a=n.n(s),l=n(75286),u={class:"simple-form-item-content el-form-item__content"};const c=o()({inheritAttrs:!1,name:"SimpleFormItemPc"},{__name:"index",props:{label:String,labelWidth:[String,Number],labelPosition:String},setup:function(e){var t=(0,l.useAttrs)(),n=e,i=(0,l.inject)("_formContextKey"),o=(0,l.inject)(i,void 0),s=(0,l.computed)((function(){if("top"===(null==o?void 0:o.labelPosition)||"top"===(null==n?void 0:n.labelPosition))return{};var e=n.labelWidth||(null==o?void 0:o.labelWidth)||"";return e?{width:"".concat(a()(e),"px")}:{}})),c=(0,l.computed)((function(){return[t.class||"",(0,r.A)({},"label-position__".concat(n.labelPosition||"right"),!0)]}));return function(e,n){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["simple-form-item el-form-item",c.value]),style:(0,l.normalizeStyle)((0,l.unref)(t).style)},[(0,l.createElementVNode)("label",{class:"simple-form-item-label el-form-item__label",style:(0,l.normalizeStyle)(s.value)},[(0,l.renderSlot)(e.$slots,"label")],4),(0,l.createElementVNode)("div",u,[(0,l.renderSlot)(e.$slots,"default")])],6)}}});n(76446);const p=c},82826:(e,t,n)=>{n.d(t,{S:()=>c});var r=n(16781),i=n.n(r),o=n(14166),s=n.n(o),a=n(17427),l=n(75286),u=i()(),c=function(e){var t=(0,l.inject)(u);(0,l.provide)(u,(function(n){var r=e.multiPmPageMetaList,i=e.pmPageMetaList;if(r&&r.length){var o=s()(r).call(r,(function(e){return s()(e).call(e,(function(e){return e._componentLoad}))}));o&&(e._componentLoad=!0,null==t||t(e))}else{var a=s()(i).call(i,(function(e){return e._componentLoad}));a&&(e._componentLoad=!0,null==t||t(e))}})),(0,l.onMounted)((function(){var n=e.multiPmPageMetaList,r=e.pmPageMetaList;(n&&0!==n.length||r&&0!==r.length)&&!e.renderby&&-1===(0,a.Tn)(a.jK,e.metaType)||(e._componentLoad=!0,null==t||t(e))}))}},70846:(e,t,n)=>{n.d(t,{K:()=>_});var r=n(22204),i=n(49859),o=n(56255),s=n.n(o),a=n(66615),l=n.n(a),u=n(50697),c=n.n(u),p=n(96319),d=n.n(p),f=n(86226),h=n.n(f),m=(n(27495),n(71761),n(25440),n(75286)),y=n(9318),g=n(71835),v=n(17427);function b(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"update:modelValue",a=this.OPEN_DATA_RULES,l=this.hireRelatMapRules,u=this.messageInstance,c=this.rootValue,p=this.ruleExecuter,d=this.dataLoad,f=this.dynamicMapComp,h=this.lang,b=this._mapComp,_=l.value[e.hireRelat],E=e.metaCode;if("update:modelValue"!==o){var x=o.match(/^update:(\w+)$/);if(!x)return;E=x[1];var S=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(E));e=f[S]}return(0,m.computed)({get:function(){var n,r;if(e){var i=null!==(n=E?null===(r=t.modelValue)||void 0===r?void 0:r[E]:t.modelValue)&&void 0!==n?n:null;return"update:modelValue"===o&&null==i&&(0,g.A)(e),e&&(e.bindValue=i),e&&(!d.value||e.eventInit||e.notInit||s()((function(){null==p||p.run({rootValue:c,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:u,_mapComp:b,isInit:!0}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:u},_,!0,a),(0,v.Ts)(e,"eventInit",!0)}),0)),i}},set:function(o){if(e){var l=t.modelValue,d=E;if(l){var g,x=null==l?void 0:l[d];if(null!==(g=e)&&void 0!==g&&g.frameSet&&(d||(x=l),x&&("object"!==(0,r.A)(x)&&"object"!==(0,r.A)(o)||(o=(0,v.Vv)(x,o)))),(0,v.vr)(x)&&(0,v.vr)(o)&&x===o)return;try{d?t.modelValue[d]=o:t.modelValue=o}catch(t){console.log("config",e,d)}}else{e.parent&&(e.parent.frameSet=!0),(0,m.nextTick)((function(){e.parent&&(e.parent.frameSet=!1)}));var S=(0,i.A)({},d,o);d||(S=o),n("update:modelValue",S)}e&&s()((function(){null==p||p.run({rootValue:c,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:u,_mapComp:b}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:u},_,!1,a)}),0)}}})}function _(e,t,n){var r=(0,m.inject)("hireRelatMapRules"),i=(0,m.inject)("dataLoad"),o=(0,m.inject)("dynamicMapComp"),s=(0,m.inject)("lang"),a=(0,m.inject)("_mapComp"),u=(0,m.inject)("rootValue"),p=(0,m.inject)("_ruleExecuter"),f=(0,m.inject)("_messageInstance"),y={OPEN_DATA_RULES:n,hireRelatMapRules:r,dataLoad:i,dynamicMapComp:o,lang:s,rootValue:u,_mapComp:a,ruleExecuter:p,messageInstance:null==f?void 0:f.value},g=(0,m.reactive)({}),v=b.call(y,e.config,e,t);return g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v,{modelValue:v,vModelObjs:g,initVmodels:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(n)||(n=c()(n)),n=d()(n).call(n,(function(e){return e.match(/^update:(\w+)$/)})),h()(n).call(n,(function(n){if("string"==typeof n){var r=b.call(y,e.config,e,t,n);if(r){var i=n.match(/^update:(\w+)$/);g["onUpdate:".concat(i[1])]=function(e){r.value=e},g[i[1]]=r}}})),g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v}}}},68999:(e,t,n)=>{n.d(t,{K:()=>o}),n(56255),n(27495),n(71761),n(25440);var r=n(75286),i=(n(9318),n(71835),n(17427));function o(e){return{modelValue:(0,r.computed)({get:function(){var t=e._rootValue,n=e.dynamicHireRelat;return(0,i.V9)((0,r.unref)(t),n,"->")},set:function(t){var n=e._rootValue,r=e.dynamicHireRelat;return(0,i.oY)(n,r,t,"->")}})}}},50510:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(75286),i=n(66615),o=n.n(i),s=n(48079),a=n.n(s),l=n(11393),u=n.n(l),c=n(17427),p=n(89932);const d={name:"Renderer",inheritAttrs:!1,props:{config:{type:[Object,Array],default:function(){return null}},modelValue:{default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:""},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,i=t.attrs,s=(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),l=(0,r.inject)("_messageInstance"),d=(0,r.inject)("_getNativeComps"),f=(0,r.inject)("_loadModuleCache"),h=(0,r.inject)("_isH5"),m=(0,r.inject)("injectMode",""),y=(0,r.inject)("OPEN_DATA_RULES"),g=e.mode||m;(0,r.provide)("injectMode",g);var v=(0,r.inject)("indectModeRef",(0,r.ref)("")),b=(0,r.computed)((function(){return e.mode||v.value}));return(0,r.provide)("indectModeRef",b),function(){var t=o()(e.config)?e.config:[e.config];return t&&t.length?a()(t).call(t,(function(t){if((null==t?void 0:t.displayType)==c.Op)return null;if((0,c.n_)(t,y))return null;var n,o=(0,c.AP)(t,b.value),a=(0,c.fw)({messageInstance:null==l?void 0:l.value,config:t,disabled:o,getNativeComps:d,isH5:null==h?void 0:h.value,loadModuleCache:f});return a?(0,c.ZB)(t,o,null==h?void 0:h.value)((0,r.createVNode)(p.A,(0,r.mergeProps)({additionConfigs:e.additionConfigs,key:u()(n="".concat(t.metaId,"-")).call(n,t.rowIndex),component:a,config:t},i,{mode:b.value,rowScope:e.rowScope,modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e}}),null)):void 0})):null}}}},19022:(e,t,n)=>{n.d(t,{Ct:()=>M,MM:()=>N,NR:()=>B,Vf:()=>R,Vr:()=>I,Xe:()=>j,cv:()=>D,qK:()=>F});var r=n(53474),i=n(53811),o=(n(48598),n(44114),n(2892),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(86226)),s=n.n(o),a=n(31721),l=n.n(a),u=n(48079),c=n.n(u),p=n(36586),d=n.n(p),f=n(18979),h=n.n(f),m=n(11393),y=n.n(m),g=n(96319),v=n.n(g),b=n(71426),_=n.n(b),E=n(8628),x=n.n(E),S=(n(66615),n(385)),T=n.n(S),P=n(73363),A=n.n(P),w=n(17427),C=n(71835),O=["setShow","setHidden"],I={};function M(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!n)return"";var i=this.config,o=(this.dynamicMapComp,i.hireRelat),s=void 0===o?"":o;if(i.dynamicHireRelat,s===n)return i.bindValue;var a=k.call(this,n,i);return 1!==a.length?null:r?null===(e=a[0])||void 0===e?void 0:e.refValue:null===(t=a[0])||void 0===t?void 0:t.bindValue}function D(e,t){var n=this;if(e)if((0,w.Qd)(e))(0,w.$3)(e,"refValue")&&(e.refValue=t);else{var r=this.config,i=k.call(this,e,r);s()(i).call(i,(function(e){if((0,w.$3)(e,"refValue"))"ElSelect"===e.metaType&&(t=(0,C.l)({config:e,val:t,isActive:!0})),e.refValue=t;else{var r,i,o=n._mapComp;null!=o&&null!==(r=o.value)&&void 0!==r&&r[e.hireRelat]&&(I[e.hireRelat]||(I[e.hireRelat]=[]),l()(i=I[e.hireRelat]).call(i,(function(e){return(null==e?void 0:e.rules)===(null==n?void 0:n.rules)&&(null==e?void 0:e.config)===(null==n?void 0:n.config)}))||I[e.hireRelat].push(n))}}))}}function k(e,t,n){var r,i,o,a,u=this,p=t.dynamicHireRelat,f=void 0===p?"":p,m=f,g="",b=/(__@__[^(->)]*__)$/,E=null==f?void 0:f.match(b);E&&(g=E[1],m=null===(a=m)||void 0===a?void 0:a.replace(b,""));for(var S=c()(r=m.split("->")).call(r,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?{idx:d()(t[2]),code:t[1]}:{idx:-1,code:e}})),T=-1,P=e.split("->"),A=0;A<P.length;A++){var w=P[A];if(S[A].code!==w){T=A;break}}var C=h()(P).call(P,T),M=c()(i=h()(S).call(S,0,T)).call(i,(function(e){var t,n=e.idx,r=e.code;return-1!==n?y()(t="".concat(r,"[")).call(t,n,"]"):r})).join("->"),D=M,k=null,N=M.match(/^([\w\W]*)\[(\d*)\]$/);N&&(D=N[1],k=N[2]);var j=this.dynamicMapComp,L=this._mapComp,R=[];if(D){var B;R=[j[y()(B="".concat(D)).call(B,g)]]}else{var F,U=C.shift();R=[j[y()(F="".concat(U)).call(F,g)]]}for(var V,W=function(){var e=C.shift(),t=[];s()(R).call(R,(function(r){if(r.multiPmPageMetaList)if(null!==k){var i=r.multiPmPageMetaList[k],o=i&&_()(i).call(i,(function(t){return t.metaCode===e}));if(!o)return;t.push(o),k=null}else{var a;if(x()(O).call(O,n)){var l,u=null==r||null===(l=r.pmPageMetaList)||void 0===l?void 0:_()(l).call(l,(function(t){return t.metaCode===e}));if(!u)return;t.push(u)}s()(a=r.multiPmPageMetaList).call(a,(function(n){var r=_()(n).call(n,(function(t){return t.metaCode===e}));r&&t.push(r)}))}else{var c,p=null==r||null===(c=r.pmPageMetaList)||void 0===c?void 0:_()(c).call(c,(function(t){return t.metaCode===e}));if(!p)return;t.push(p)}})),R=t};C.length;)W();return null!=L&&null!==(o=L.value)&&void 0!==o&&o[e]&&!v()(R).call(R,(function(e){return e.vmIsBind})).length&&(I[e]||(I[e]=[]),l()(V=I[e]).call(V,(function(e){return(null==e?void 0:e.rules)===(null==u?void 0:u.rules)&&(null==e?void 0:e.config)===(null==u?void 0:u.config)}))||I[e].push(this)),R}function N(e,t){var n=L(e),r=L(t);return n&&r?Number(e)>Number(t):e+"">t+""}function j(e,t){var n=L(e),r=L(t);return n&&r?Number(e)<Number(t):e+""<t+""}function L(e){return!isNaN(Number(e))}function R(e,t){if(!e)return null;var n=this.config;return k.call(this,e,n,t)}function B(e){if(!e)return[];var t=[],n=e.pmRuleDefVoList,o=e.pmRuleDefVOList,a=n||(null==o?void 0:v()(o).call(o,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var n=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],o=c()(n).call(n,(function(t){return(0,i.A)((0,i.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,r.A)(o))})),t}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t?t.split("->"):[],i=n?n.split("->"):[],o=-1,s=0;-1===o&&s<r.length&&s<i.length;){var a=r[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),u=i[s];l.test(u)?(T()(r).call(r,s,1,u),s++):o=s}var c=A()(r).call(r,(function(e,t){var n=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(n,"(\\[\\d+\\])?"):"".concat(n,"(\\[\\d+\\])?"))}),""),p=new RegExp("^".concat(c,"$"));return v()(e).call(e,(function(e){return p.test(e)}))}},9318:(e,t,n)=>{n.d(t,{Ay:()=>X,Zt:()=>k});var r=n(38008),i=(n(44114),n(84864),n(57465),n(27495),n(87745),n(38781),n(71761),n(25440),n(86226)),o=n.n(i),s=n(11393),a=n.n(s),l=n(56255),u=n.n(l),c=n(50697),p=n.n(c),d=n(96319),f=n.n(d),h=n(48079),m=n.n(h),y=n(36586),g=n.n(y),v=n(22204),b=n(49859),_=(n(23288),n(2892),n(79432),n(90906),n(66615)),E=n.n(_),x=n(64007),S=n.n(x),T=n(8628),P=n.n(T),A=n(31721),w=n.n(A),C=n(19022),O=n(17427),I={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},M=(0,b.A)((0,b.A)((0,b.A)((0,b.A)((0,b.A)({},I.COMPONENT,(function(e){var t,n=e.tabpanelCode,r=e.value;return C.Ct.call(this,a()(t="".concat(n?n+"->":"")).call(t,r))})),I.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case N.currentDate:return(0,O.Yq)(new Date,"yyyy-MM-dd");case N.currentTimestamp:return(new Date).getTime();case N.CurrentYear:return(0,O.Yq)(new Date,"yyyy");case N.CurrentMonth:return(0,O.Yq)(new Date,"MM");case N.CurrentDay:return(0,O.Yq)(new Date,"dd");case N.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,O.Yq)(t,"yyyy-MM-dd");case N.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,O.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),I.SELF,(function(e){return e.value})),I.COMPONENT_ENMU,(function(e){return e.value})),I.NULL,(function(){return null}));function D(e){var t=this,n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.ruleType,n.tabpanelCode);if(!r)return!1;var o=JSON.parse(r),s=o.relation,l=o.conditions;return m()(l).call(l,(function(e){var n,r=e.refType,o=e.refValue,s=e.targetType,l=e.targetValue;if(I.COMPONENT==r){var u,c=C.Vf.call(t,a()(u="".concat(i?i+"->":"")).call(u,o));if(!c||1!==c.length)return!1}if(!M[r])return!1;var p=M[r].call(t,{tabpanelCode:i,value:o});if(I.COMPONENT==s){var d,f=C.Vf.call(t,a()(d="".concat(i?i+"->":"")).call(d,l));if(!f||1!==f.length)return!1}if(!M[s])return!1;var h=M[s].call(t,{tabpanelCode:i,value:l}),m=p=null==p?"":p,y=h=null==h?"":h;switch(p==Number(p)&&h==Number(h)&&(m=Number(p),y=Number(h)),e.symbol){case 1:return m>y;case 2:return m>=y;case 3:return m<y;case 4:return m<=y;case 5:return p==h||!h&&(0,O.cy)(p)&&!p.length;case 6:return p!=h;case 7:return"number"==typeof p&&(p="".concat(p)),!(!E()(p)&&"string"!=typeof p)&&S()(p).call(p,h)>-1;case 8:return!!P()(n=["string","number"]).call(n,(0,v.A)(h))&&new RegExp(h).test(p);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function k(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return o()(e).call(e,(function(e){var n=function(e){var t=[],n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.tabpanelCode);if(!r)return!1;var s=JSON.parse(r).conditions,l=void 0===s?[]:s;return o()(l).call(l,(function(n){var r,o;n.refType!=I.COMPONENT&&n.targetType!=I.COMPONENT||(n.refType==I.COMPONENT&&t.push({key:i?a()(r="".concat(i,"->")).call(r,n.refCode||n.refValue):n.refCode||n.refValue,rules:[e]}),n.targetType==I.COMPONENT&&t.push({key:i?a()(o="".concat(i,"->")).call(o,n.targetValue):n.targetValue,rules:[e]}))})),t}(e);n&&n.length&&o()(n).call(n,(function(e){var n=e.key,r=void 0===n?"":n,i=e.rules,s=void 0===i?[]:i;t[r]?o()(s).call(s,(function(e){var n;null!==(n=t[r])&&void 0!==n&&w()(n).call(n,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[r].push(e)})):t[r]=s}))})),t}((0,C.NR)(e))}var N={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var j=n(53474),L=n(85569),R=n.n(L),B=n(38048),F=n.n(B),U=n(9665),V=n.n(U),W=n(85352),q=(0,j.A)(W.Lu),$=[],K={0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"},H={setDefaultValue:function(e,t,n){var r,i=e.targetObj,o=e.targetObjVal;if(i){var s,l=this.config,u=this.dynamicMapComp,c=a()(r="".concat(n?n+"->":"")).call(r,i),p=/^_replace:/.test(o);p&&(o=function(e,t){var n=t.config,r=t.dynamicMapComp;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,i){var o,s,a,l=null,u=null===(o=t)||void 0===o||null===(s=o.match)||void 0===s?void 0:s.call(o,/^_absoluteTarget:(.+)$/);if(t===W.DE.REF_VAL)t=null!==(a=null==n?void 0:n.bindValue)&&void 0!==a?a:"";else if(t===W.DE.CURRENT_DATE)t=(0,O.Yq)(new Date,"yyyy-MM-dd");else if(l=t.match(/^_route:(.*)$/)){var c,p=l[1],d=null==n||null===(c=n.route)||void 0===c?void 0:c.query;t=null==d?void 0:d[p]}else if("string"==typeof t&&/^_lang$/.test(t))t=null==n?void 0:n._lang;else if(null!=u&&u[1]){var f=null==r?void 0:r[u[1]];t=(null==f?void 0:f.bindValue)||""}else{var h,m,y=null===(h=t)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_assgin:(.*)$/);t=y?null==y?void 0:y[1]:""}return t}))}(null===(s=o)||void 0===s?void 0:s.replace(/^_replace:/,""),{config:l,dynamicMapComp:u}));var d="";try{d=JSON.parse(o)}catch(e){d=o||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===W.DE.REF_VAL){var f;d=null!==(f=null==l?void 0:l.bindValue)&&void 0!==f?f:""}else if(d===W.DE.CURRENT_DATE)d=(0,O.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v,b=y[1],_=null==l||null===(v=l.route)||void 0===v?void 0:v.query;d=null==_?void 0:_[b]}else if("string"==typeof d&&/^_lang$/.test(d))d=null==l?void 0:l._lang;else if("string"==typeof d&&null!=g&&g[1]){var E=null==u?void 0:u[g[1]];d=(null==E?void 0:E.bindValue)||""}else{var x,S,T=null===(x=d)||void 0===x||null===(S=x.match)||void 0===S?void 0:S.call(x,/^_assgin:(.*)$/);if(T)d=null==T?void 0:T[1];else{var P=C.Ct.call(this,c,!0);(P||"0"==P)&&(d=P)}}}C.cv.call(this,c,d)}},setClear:function(e,t,n){var r;if(!t){var i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);o()(l).call(l,(function(e){if(e){var t="";P()(q).call(q,e.metaType||e.labelType)&&(t=[]),P()($).call($,e.metaType||e.labelType)&&(t=!1),(0,O.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);return o()(l).call(l,(function(e){e&&(e.editFlag="0")})),function(){o()(l).call(l,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.editFlag;u.push(t),e&&(e.editFlag="0")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.editFlag=n)}))}}},setRequired:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);return o()(l).call(l,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e){e&&(e.requiredFlag="0"),e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.requiredFlag;u.push(t),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.requiredFlag=n),e&&e.refConfig&&(e.refConfig.requiredFlag=n)}))}}},setHidden:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s,"setHidden");return o()(l).call(l,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){o()(l).call(l,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e,t,n,r){var i,s=e.targetObj;if(s){var l=a()(i="".concat(n?n+"->":"")).call(i,s),c=C.Vf.call(this,l,"setShow");return o()(c).call(c,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){return u()((function(){o()(c).call(c,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0)}}},setNoRequired:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){e&&"0"!=e.requiredFlag&&(e&&(e.requiredFlag="0"),u.push((function(){e&&(e.requiredFlag="1")})))})),function(){o()(u).call(u,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.requiredFlag;u.push(t),e&&(e.requiredFlag="0")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.requiredFlag=n)}))}}},setNoDisable:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);return o()(l).call(l,(function(e){e&&(e.editFlag="1")})),function(){o()(l).call(l,(function(e){e&&(e.editFlag="0")}))}}},setNoDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.editFlag;u.push(t),e&&(e.editFlag="1")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.editFlag=n)}))}}},limitDataRange:function(e,t,n){var r,i=this,s=e.targetObj,l=e.targetObjVal,u=void 0===l?"":l;if(s){var c,d=a()(r="".concat(n?n+"->":"")).call(r,s);if((c=(null==u?void 0:S()(u).call(u,"~"))>-1?u.split("~"):u.split(","))&&c.length){var f=[],h=C.Vf.call(this,d);return o()(h).call(h,(function(t){var n=!1,r={};if(f.push(r),t){var s=i.config,a="";if(-1!==(0,O.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var l=c[0],u=c[1];try{a=(0,O.Ho)({extendAttr:R()({min:l,max:u}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}else{if(-1===(0,O.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var h=C.Ct.call(i,d,!0);return min&&(0,C.Xe)(h,min)&&C.cv.call(i,t,min),void(max&&(0,C.MM)(h,max)&&C.cv.call(i,t,max))}try{console.log("event==:",e),a=(0,O.Ho)({extendAttr:R()({rangeOptions:c}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}if(delete a.metaCode,(0,O.Qd)(a)){var m,y,g=p()(a);o()(g).call(g,(function(e){if(r[e]=t[e],(0,O.$3)(t,e)||(n=!0),"string"==typeof a[e]){var o=i.config,s=null==o?void 0:o.bindValue;t[e]=a[e].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return F()(n=V()(t).call(t)).call(n)===W.DE.REF_VAL?s:F()(r=V()(t).call(t)).call(r)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=a[e]})),n&&(null==t||null===(m=t.wrapVm)||void 0===m||null===(m=m.proxy)||void 0===m||null===(y=m.$forceUpdate)||void 0===y||y.call(m))}}})),function(){o()(h).call(h,(function(e,t){var n=f[t];if(e){var r=p()(n);o()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e,t,n){var r,i=e.targetMsg,o=e.targetMsgEn,s=S()(r=this.lang.value).call(r,"zh")>-1?i:o;this.messageInstance.warning(s,"",{showCancelButton:!1})},openThePage:function(e,t,n){var r=e.targetObjVal;r&&window.open(r,"_blank")},setProps:function(e,t,n,r){var i,s=this,l=e.targetObj,u=e.targetObjVal;if(l){var c=a()(i="".concat(n?n+"->":"")).call(i,l),d=this.config,f="";try{f=(0,O.Ho)({extendAttr:u,metaCode:"event setPorps code:".concat(d.metaCode)},null==d?void 0:d.bindValue)}catch(e){f=""}if(delete f.metaCode,(0,O.Qd)(f)){var h=C.Vf.call(this,c),m=[],y=p()(f);return o()(h).call(h,(function(e){var t,n,r=!1,i={};e&&(o()(y).call(y,(function(t){if(i[t]=e[t],(0,O.$3)(e,t)||(r=!0),"string"==typeof f[t]){var n=s.config,o=null==n?void 0:n.bindValue;e[t]=f[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return F()(n=V()(t).call(t)).call(n)===W.DE.REF_VAL?o:F()(r=V()(t).call(t)).call(r)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=f[t]})),m.push(i),r&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(n=t.$forceUpdate)||void 0===n||n.call(t)))})),function(){o()(h).call(h,(function(e,t){var n=m[t];e&&o()(y).call(y,(function(t){e[t]=n[t]}))}))}}}}};function z(e,t,n,r){var i=this;return e=e||[],m()(e).call(e,(function(e){var o=e.eventId,s=K[o];return console.log("evnet===:",s,e),H[s]&&H[s].call(i,e,t,n,r)}))}var G={},Y={};function X(e,t,n){var i=this;if(!n){e=e||[],this.rules=e;var s=this.config,l=s.dynamicHireRelat,c=s.columnId,d=s.id;s.metaCode,e&&e.length&&o()(e).call(e,(function(e){var n,s,h;if(e){var m=e.pmRuleTargetEventVoList,y=e.pmRuleTargetEventVOList,g=e.relId,v=e.tabpanelCode,b=a()(n=a()(s=a()(h="".concat(g,"__")).call(h,c||"")).call(s,d||"","__")).call(n,l);if(D.call(i,e))u()((function(){var n,r;G[b]&&o()(n=G[b]).call(n,(function(e){if(e){var t=null==e?void 0:e();t&&(Y[b]||(Y[b]=[]),Y[b].push(t))}})),Y[b]&&(null===(r=Y[b])||void 0===r||o()(r).call(r,(function(e){return e&&clearTimeout(e)})));var s=z.call(i,m||y,t,v,e);G[b]=s}),0);else{var _=p()(G),E=f()(_).call(_,(function(e){var t=e.split("__"),n=(0,r.A)(t,3),i=n[0],o=(n[1],n[2]);if(i==g){if(o===l)return!0;for(var s=J(o).codes,a=J(l).codes,u=0;u<a.length;u++){var c=a[u],p=s[u];if(!p||c.code!==p.code)return!1;if(c.idx!==p.idx)return!1}return!0}return!1}));o()(E).call(E,(function(e){var t;G[e]&&o()(t=G[e]).call(t,(function(t){if(t){var n=t();n&&(Y[e]||(Y[e]=[]),Y[e].push(n))}})),delete G[e]}))}}}))}}function J(e){var t,n="",r=m()(t=e.split("->")).call(t,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?(n+=n?"->".concat(t[1]):t[1],{idx:g()(t[2]),code:t[1]}):(n+=n?"->".concat(e):e,{idx:-1,code:e})}));return{nativeRelat:n,codes:r}}},70392:(e,t,n)=>{n.d(t,{K9:()=>k,jA:()=>M});var r=n(53474),i=n(86226),o=n.n(i),s=n(26327),a=n.n(s),l=n(14166),u=n.n(l),c=n(64007),p=n.n(c),d=n(85569),f=n.n(d),h=n(50697),m=n.n(h),y=n(38048),g=n.n(y),v=n(9665),b=n.n(v),_=n(48079),E=n.n(_),x=n(11393),S=n.n(x),T=n(385),P=n.n(T),A=(n(44114),n(23288),n(79432),n(27495),n(90906),n(71761),n(25440),n(30679)),w=n(85352),C=n(17427),O=n(75286),I=((0,r.A)(w.Lu),{0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"}),M={},D={setDefaultValue:function(e){var t=e.event,n=e.rootValue,r=e.mapComp,i=e.route,o=e.lang,s=e.currentPath,a=(e.isInit,t.targetObj),l=t.targetObjVal;if(a){var u,c="".concat(a),p=/^_replace:/.test(l);p&&(l=function(e,t){var n=t.currentPath,r=t.rootValue,i=t.lang,o=t.route;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,s){var a,l,u=null,c=null===(a=t)||void 0===a||null===(l=a.match)||void 0===l?void 0:l.call(a,/^_absoluteTarget:(.+)$/);if(t===w.DE.REF_VAL){var p=(0,C.V9)((0,O.unref)(r),n,"->");t=null!=p?p:""}else if(t===w.DE.CURRENT_DATE)t=(0,C.Yq)(new Date,"yyyy-MM-dd");else if(u=t.match(/^_route:(.*)$/)){var d=u[1],f=null==o?void 0:o.query;t=null==f?void 0:f[d]}else if("string"==typeof t&&/^_lang$/.test(t))t=i;else if(null!=c&&c[1])t=(0,C.V9)((0,O.unref)(r),c[1],"->")||"";else{var h,m,y=null===(h=t)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_assgin:(.*)$/);t=y?null==y?void 0:y[1]:""}return t}))}(null===(u=l)||void 0===u?void 0:u.replace(/^_replace:/,""),{currentPath:s,rootValue:n,lang:o,route:i,dynamicMapComp}));var d="";try{d=JSON.parse(l)}catch(e){d=l||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===w.DE.REF_VAL){var f=(0,C.V9)((0,O.unref)(n),s,"->");d=null!=f?f:""}else if(d===w.DE.CURRENT_DATE)d=(0,C.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v=y[1],b=null==i?void 0:i.query;d=null==b?void 0:b[v]}else if("string"==typeof d&&/^_lang$/.test(d))d=o;else if("string"==typeof d&&null!=g&&g[1])d=(0,C.V9)((0,O.unref)(n),g[1],"->")||"";else{var _,E,x=null===(_=d)||void 0===_||null===(E=_.match)||void 0===E?void 0:E.call(_,/^_assgin:(.*)$/);if(x)d=null==x?void 0:x[1];else{var S=(0,A.Ct)((0,O.unref)(n),c,s);(S||"0"==S)&&(d=S)}}}(0,A.cv)(c,d,r,n,s)}},setClear:function(e){var t=e.event,n=e.rootValue,r=e.mapComp,i=e.currentPath;if(!e.isInit){var o=t.targetObj;if(o){var s="".concat(o);(0,A.cv)(s,"",r,n,i)}}},setDisable:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s,a="".concat(i);return s=(0,A.Vf)({codesStr:a,dynamicMapComp:n,currentPath:r}),o()(s).call(s,(function(e){e&&(e.editFlag="0")})),function(){o()(s).call(s,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="0")})),function(){o()(a).call(a,(function(e,t){e&&(e.editFlag=e._originEditFlag)}))}}},setRequired:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(l).call(l,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e){if(e&&(e.requiredFlag="0"),e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(l).call(l,(function(e){(0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e,t){if(e&&(e.requiredFlag=e._originRequiredFlag),e.isColumn){if("0"==e._originRequiredFlag){var n,r,i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],s=null==i?void 0:a()(i).call(i,(function(t){return t.metaCode===e.metaCode}));null!=o&&u()(o).call(o,(function(e){var t;return"0"==(null===(t=e[s])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}}else"0"==e._originRequiredFlag&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}}},setHidden:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,e.relIdKey,t.targetObj);if(i){var s,a="".concat(i);return s=(0,A.Vf)({codesStr:a,dynamicMapComp:n,currentPath:r}),o()(s).call(s,(function(e){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){o()(s).call(s,(function(e,t){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(a).call(a,(function(e){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){o()(a).call(a,(function(e,t){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}}},setNoRequired:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),c=[];return o()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if(e&&(e.requiredFlag="0"),e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");c.push((function(){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")}))}})),function(){o()(c).call(c,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),c=[];return o()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if((0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="0"),e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");c.push((function(){if(e&&(e.requiredFlag=e._originRequiredFlag),"0"==e._originRequiredFlag)if(e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag);else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}})),function(){o()(c).call(c,(function(e){return e()}))}}},setNoDisable:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),l=[];return o()(a).call(a,(function(e){"1"!=(null==e?void 0:e.editFlag)&&(e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag="0")})))})),function(){o()(l).call(l,(function(e){return e()}))}}},setNoDisableNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),l=[];return o()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag=e._originEditFlag)}))})),function(){o()(l).call(l,(function(e){return e()}))}}},limitDataRange:function(e){var t=e.event,n=e.rootValue,r=(e.mapComp,e.dynamicMapComp),i=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal,l=void 0===a?"":a;if(s){var u,c="".concat(s),d=[];if((l=l||"")&&(d=(null===(u=l)||void 0===u?void 0:p()(u).call(u,"~"))>-1?l.split("~"):l.split(",")),d&&d.length){var h=(0,A.Vf)({codesStr:c,dynamicMapComp:r,currentPath:i});return o()(h).call(h,(function(e){var r=!1,s={};if(e._eventLimitDataRageCbProps=s,e){var a="";if(-1!==(0,C.Tn)(["ElDatePicker"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var l=d[0],u=d[1];try{a=(0,C.Ho)({extendAttr:f()({min:l,max:u}),metaCode:"event setPorps code, target path: ".concat(i)},(0,C.V9)((0,O.unref)(n),i,"->"))}catch(e){a=""}}else{if(-1===(0,C.Tn)(["ElSelect"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var c=(0,C.V9)((0,O.unref)(n),e.dynamicHireRelat,"->");return min&&(0,A.Xe)(c,min)&&(0,C.oY)(n,e.dynamicHireRelat,min,"->"),void(max&&(0,A.MM)(c,max)&&(0,C.oY)(n,e.dynamicHireRelat,max,"->"))}try{console.log("event==:",t),a=(0,C.Ho)({extendAttr:f()({rangeOptions:d}),metaCode:"event setPorps code, target path: ".concat(i)},(0,C.V9)((0,O.unref)(n),i,"->"))}catch(e){a=""}}if(delete a.metaCode,(0,C.Qd)(a)){var p,h,y=m()(a);o()(y).call(y,(function(t){if(s[t]=e[t],(0,C.$3)(e,t)||(r=!0),"string"==typeof a[t]){var o=(0,C.V9)((0,O.unref)(n),i,"->");e[t]=a[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return g()(n=b()(t).call(t)).call(n)===w.DE.REF_VAL?o:g()(r=b()(t).call(t)).call(r)===w.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=a[t]})),r&&(null==e||null===(p=e.wrapVm)||void 0===p||null===(p=p.proxy)||void 0===p||null===(h=p.$forceUpdate)||void 0===h||h.call(p))}}})),function(){o()(h).call(h,(function(e,t){var n=e._eventLimitDataRageCbProps;if(e){var r=m()(n);o()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e){var t=e.event,n=(e.rootValue,e.lang),r=(e.mapComp,e.dynamicMapComp,e.currentPath,e.isInit,t.targetMsg),i=t.targetMsgEn,o=(null==n?void 0:p()(n).call(n,"zh"))>-1?r:i;messageInstance.warning(o,"",{showCancelButton:!1})},openThePage:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp,e.currentPath,e.messageInstance,e.isInit,t.targetObjVal);n&&window.open(n,"_blank")},setProps:function(e){var t=e.event,n=e.rootValue,r=(e.mapComp,e.dynamicMapComp),i=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal;if(s){var l="".concat(s),u=(0,A.Vf)({codesStr:l,dynamicMapComp:r,currentPath:i}),c="";try{c=(0,C.Ho)({extendAttr:a,metaCode:"event setPorps code, target path: ".concat(i)},(0,C.V9)((0,O.unref)(n),i,"->"))}catch(e){c=""}if(delete c.metaCode,(0,C.Qd)(c)){var p=m()(c);return o()(u).call(u,(function(e){var t,r,s=!1,a={};e._eventSetPropsCbProps=a,e&&(o()(p).call(p,(function(t){if(a[t]=e[t],(0,C.$3)(e,t)||(s=!0),"string"==typeof c[t]){var r=(0,C.V9)((0,O.unref)(n),i,"->");e[t]=c[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,i;return g()(n=b()(t).call(t)).call(n)===w.DE.REF_VAL?r:g()(i=b()(t).call(t)).call(i)===w.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=c[t]})),s&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(r=t.$forceUpdate)||void 0===r||r.call(t)))})),function(){o()(u).call(u,(function(e,t){var n=e._eventSetPropsCbProps;e&&o()(p).call(p,(function(t){e[t]=n[t]}))}))}}}}};function k(e){var t=e.events,n=e.rootValue,r=e.mapComp,i=e.dynamicMapComp,o=e.route,s=e.lang,l=e.currentPath,u=e.isInit,c=e.rule,p=e.messageInstance,d=e.relIdKey;return t=t||[],E()(t).call(t,(function(e){var t=e.eventId,f=I[t],h=D[f]&&D[f]({event:e,rootValue:n,mapComp:r,dynamicMapComp:i,route:o,lang:s,currentPath:l,isInit:u,rule:c,messageInstance:p,relIdKey:d}),m={recoverCb:null};if(h){var y,g,v=e.targetObj;!M[v]&&(M[v]=[]);var b,_=S()(y="".concat(d,"_")).call(y,f),E=a()(g=M[v]).call(g,(function(e){return e.id===_}));E>-1&&P()(b=M[v]).call(b,E,1),M[v].push({id:_,currentPath:l,action:function(){h=D[f]&&D[f]({event:e,rootValue:n,mapComp:r,dynamicMapComp:i,route:o,lang:s,currentPath:l,isInit:u,rule:c,messageInstance:p,relIdKey:d})}}),m.recoverCb=function(){var e,t;null===(e=h)||void 0===e||e();var n,r=a()(t=M[v]).call(t,(function(e){return e.id===_}));r>-1&&P()(n=M[v]).call(n,r,1)}}else m.recoverCb=h;return m}))}},30679:(e,t,n)=>{n.d(t,{Ct:()=>v,MM:()=>E,Vf:()=>T,Xe:()=>x,cv:()=>b});var r=n(385),i=n.n(r),o=n(18979),s=n.n(o),a=n(48079),l=n.n(a),u=(n(36586),n(11393)),c=n.n(u),p=(n(31721),n(86226),n(71426),n(8628),n(73363)),d=n.n(p),f=n(96319),h=n.n(f),m=n(50697),y=n.n(m),g=(n(66615),n(48598),n(44114),n(13609),n(2892),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(17427));function v(e,t,n){if(t===n)return(0,g.V9)(e,t,"->");var r,o=n,s=/(__@__[^(->)]*__)$/,a=null==n?void 0:n.match(s);a&&(a[1],o=null===(r=o)||void 0===r?void 0:r.replace(s,""));for(var l=o?o.split("->"):[],u=t?t.split("->"):[],c=-1,p=0;-1===c&&p<u.length&&p<l.length;){var d=u[p],f=new RegExp("^".concat(d,"(\\[\\d+\\])?$")),h=l[p];f.test(h)?(i()(u).call(u,p,1,h),p++):c=p}var m=u.join("->");return(0,g.V9)(e,m,"->")}function b(e,t,n,r,o){if(e){for(var a=[],l=e;l;){var u=n[l];if(u){a.unshift(u);var c=l.replace(/->\w*$/,"");l=c===l?"":c}else a=[],l=""}if(a&&a.length){for(var p=o?o.split("->"):[],d=e?e.split("->"):[],f=-1,h=0;-1===f&&h<d.length&&h<p.length;){var m=d[h],y=new RegExp("^".concat(m,"(\\[\\d+\\])?$")),v=p[h];y.test(v)?(i()(d).call(d,h,1,v),h++):f=h}var b=null;(b=-1!==f?_(s()(a).call(a,f),0,s()(d).call(d,0,f).join("->")):d.join("->"))&&(0,g.oY)(r,b,t,"->")}}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e||!e.length)return null;var r=e[t];if(n+=n?"->".concat(r.metaCode):r.metaCode,e.length===t+1)return n;var i=n;return(0,g.jG)(r)&&(i="".concat(n,"[_all]")),_(e,++t,i)}function E(e,t){var n=S(e),r=S(t);return n&&r?Number(e)>Number(t):e+"">t+""}function x(e,t){var n=S(e),r=S(t);return n&&r?Number(e)<Number(t):e+""<t+""}function S(e){return!isNaN(Number(e))}function T(e){var t=e.codesStr,n=e.dynamicMapComp,r=e.currentPath;if(!t)return null;var o=function(e){var t=e.codesStr,n=e.dynamicMapComp,r=e.currentPath,o=t,s=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=o,a="",l=/(__@__[^(->)]*__)$/,u=null==o?void 0:o.match(l);u&&(a=u[1],s=null===(t=s)||void 0===t?void 0:t.replace(l,""));for(var p=s?s.split("->"):[],f=r?r.split("->"):[],m=-1,y=0;-1===m&&y<f.length&&y<p.length;){var g=f[y],v=new RegExp("^".concat(g,"(\\[\\d+\\])?$")),b=p[y];v.test(b)?(i()(f).call(f,y,1,b),y++):m=y}var _=d()(f).call(f,(function(e,t){var n=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(n,"(\\[\\d+\\])?"):"".concat(n,"(\\[\\d+\\])?"))}),""),E=new RegExp(c()(e="^".concat(_)).call(e,a,"$"));return h()(n).call(n,(function(e){return E.test(e)}))}(y()(n||{}),o,r);return s}({codesStr:t,dynamicMapComp:n,currentPath:r});return l()(o).call(o,(function(e){return n[e]}))}n(71835)},48618:(e,t,n)=>{n.d(t,{$3:()=>ae,$N:()=>pe,Dg:()=>Ee,E1:()=>ne,Ij:()=>ge,M6:()=>X,Oe:()=>he,Qd:()=>le,Tn:()=>te,Ts:()=>_e,V9:()=>Se,Vv:()=>de,X$:()=>fe,YJ:()=>ve,Yq:()=>ue,bO:()=>ie,ej:()=>ce,fN:()=>be,fz:()=>re,mg:()=>V.A,oY:()=>Pe,pp:()=>ye,q2:()=>W.A,ro:()=>oe,vr:()=>J,yL:()=>me});var r=n(53811),i=n(7252),o=n(53474),s=n(22204),a=(n(16280),n(76918),n(48598),n(44114),n(54743),n(11745),n(38309),n(16573),n(78100),n(77936),n(23288),n(2892),n(9868),n(79432),n(26099),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(90744),n(50375),n(21489),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(27681)),l=n.n(a),u=n(71426),c=n.n(u),p=n(27124),d=n.n(p),f=n(36586),h=n.n(f),m=n(18979),y=n.n(m),g=n(73363),v=n.n(g),b=n(86226),_=n.n(b),E=n(50697),x=n.n(E),S=n(43981),T=n.n(S),P=n(11393),A=n.n(P),w=n(66615),C=n.n(w),O=(n(11265),n(48079)),I=n.n(O),M=n(53930),D=n.n(M),k=n(87842),N=n.n(k),j=n(59261),L=n.n(j),R=n(74707),B=n.n(R),F=(n(165),n(78010),n(82895)),U=n.n(F),V=(n(80668),n(88592)),W=n(14835),q=n(36380),$=n(92049),K=n(46996),H=n(10565),z=n(12935),G=n(75286);function Y(e){var t=l()(null);return function(n){return t[n]||(t[n]=e(n))}}function X(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var n=["px","%","vh","vw","rem","em"],r=c()(n).call(n,(function(t){return null==e?void 0:d()(e).call(e,t)}));return r?h()(e)+r:null}return t+"px"}function J(e){var t=(0,s.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}var Q=/-(\w)/g,Z=Y((function(e){return e.replace(Q,(function(e,t){return t?t.toUpperCase():""}))})),ee=Y((function(e){return e.charAt(0).toUpperCase()+y()(e).call(e,1)}));function te(e,t){var n=re(v()(e).call(e,(function(e,t,n){return e[t]=n,e}),{}),t);return null==n?-1:n}function ne(e,t){return-1!==te(e,null==t?void 0:t.renderby)||-1!==te(e,null==t?void 0:t.metaType)}function re(e,t){if("string"!=typeof t)return null;var n=e;if(void 0!==n[t]&&null!==n[t])return n[t];var r=Z(t);if(void 0!==n[r]&&null!==n[r])return n[r];var i=ee(r);return void 0!==n[i]&&null!==n[i]?n[i]:null}function ie(e){return"string"!=typeof e?e:ee(Z(e))}function oe(e,t){return"string"==typeof e&&"string"==typeof t&&ee(Z(e))===ee(Z(t))}var se=Object.prototype.hasOwnProperty;function ae(e,t){return se.call(e,t)}function le(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function ue(e,t){var n;if(!e)return"";(0,z.$P)(e)||(e=new Date(e)),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,"".concat(e.getFullYear()).substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};return _()(n=x()(r)).call(n,(function(e){var n="".concat(r[e]);new RegExp("(".concat(e,")")).test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n:function(e){return"00".concat(e).substr(e.length)}(n)))})),t}var ce=function(e,t){if(!t)return e;if("string"!=typeof e&&"number"!=typeof e)return e;var n=le(t)?t:{decimals:2,isThousandth:!0},r=String(e).replace(/[^\d\.\-\e\E]/g,"");(null!=n&&n.decimals||0==(null==n?void 0:n.decimals))&&(r=T()(r).toFixed(n.decimals).toString());var i=r.split(".");return null!=n&&n.isThousandth&&i[0]&&(i[0]=i[0].replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")),i.join(".")};function pe(e,t,n){if(!t)return e;if(!e)return t;var r=(0,q.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,$.A)(t)&&(0,$.A)(e))switch(n){case"union":return(0,W.A)(e,t,K.A);case"intersection":return(0,H.A)(e,t,K.A);case"concat":return A()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}return le(t)&&le(e)?pe(e,t,n):t}));if(C()(e)&&r&&!C()(r)){var i,o=[];_()(i=x()(r)).call(i,(function(e){o[e]=r[e]})),r=o}return r}function de(e,t){var n=t;if("object"===(0,s.A)(e)&&"object"===(0,s.A)(t)&&(n=(0,q.A)(e,t,(function(e,t){if((0,$.A)(e)&&(0,$.A)(t)){for(var n=[],r=0;r<e.length&&r<t.length;r++)n.push(de(e[r],t[r]));return r<e.length?n.push.apply(n,(0,o.A)(y()(e).call(e,r))):n.push.apply(n,(0,o.A)(y()(t).call(t,r))),n}return le(t)&&le(e)?de(e,t):t}))),C()(e)&&n&&!C()(n)){var r,i=[];_()(r=x()(n)).call(r,(function(e){i[e]=n[e]})),n=i}return n}function fe(e,t,n){for(var r in t)n&&ae(e,r)||(e[r]=t[r]);return e}function he(e){return/^\s*(?:function\s*(?:\w+\s*)?\([^()]*\)\s*\{[\s\S]*?\})\s*$/.test(e)||/^\s*\((?:\s*\w+(?:\s*=\s*\w+)?\s*(?:,\s*)?)*\)\s*=>\s*(?:\{[\s\S]*?\}|[\s\S]+?)\s*$/.test(e)}function me(e){return e&&"function"==typeof e.then}function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.A)(Date,t)}function ge(){var e;return A()(e="".concat(ue(new Date,"yyyy-MM-dd hh:mm:ss"),"-")).call(e,ve())}function ve(){if("object"===("undefined"==typeof crypto?"undefined":(0,s.A)(crypto))){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues&&"function"==typeof Uint8Array)return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){var t=Number(e);return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function be(e,t){var n,r,i,o=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=I()(l=JSON.parse((null==e?void 0:e.optionItems)||"[]")).call(l,(function(e){return{columnValue:e.value,columnDesc_zh:e.label,columnDesc:e.label_en||e.label,columnStatus:e.columnStatus}}))}catch(e){a=[]}var u=(null==t?void 0:t.value)&&(null==t||null===(n=t.value)||void 0===n?void 0:n[s])||(null==t?void 0:t.value)&&(null==t||null===(r=t.value)||void 0===r?void 0:r["".concat(e.metaCode,"ListValue")])||(null==t?void 0:t.value)&&(null==t||null===(i=t.value)||void 0===i?void 0:i[o])||a||[];return(null==e?void 0:e.priOptions)||u}function _e(e,t,n,i){e[t]=n;var o=i||{};D()(e,t,(0,r.A)({value:n,writable:!0,enumerable:!1,configurable:!0},o))}function Ee(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(N());if(null===e||"object"!==(0,s.A)(e))switch((0,s.A)(e)){case"string":case"number":return"";default:return null}if(r.has(e))return r.get(e);if(C()(e))t=[],r.set(e,t),(n=t).push.apply(n,(0,o.A)(I()(e).call(e,(function(e){return Ee(e,r)}))));else if(e instanceof Date)t=null;else if(e instanceof L())t=new(L());else if(e instanceof B())t=new(B());else{t={},r.set(e,t);for(var i=0,a=x()(e);i<a.length;i++){var l=a[i],u=Ee(e[l],r);null!=u&&(t[l]=u)}}return t}var xe=/^([-\w]+)\[(\d+)\]/;function Se(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=n;return"string"==typeof n&&(i=n.split(r)),null!==(e=v()(i).call(i,(function(e,t){if(e){var n,r=t.match(xe);return r?null===(n=e[r[1]])||void 0===n?void 0:n[r[2]]:e[t]}return null}),t))&&void 0!==e?e:""}var Te=/^([-\w]+)\[(_all|\d+)\]/;function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";if(t&&e){var i=e;(0,G.isRef)(e)&&(i=e.value);var o=t;if("string"==typeof o&&(o=t.split(r)),o&&o.length){for(var s=i,a=function(e){var t=o[e];if(e===o.length-1)s[t]=n;else{var r=t,i=!1,a=t.match(Te);a&&(r=a[1],i=!0),!s[r]&&(s[r]=i?[]:{});var l=s[r];if(a){var u;if("_all"===a[2])return null===(u=l)||void 0===u||_()(u).call(u,(function(t){Pe(t,y()(o).call(o,e+1),n)})),1;var c=h()(a[2]);U()(c)||(!l[c]&&(l[c]={}),l=l[c])}s=l}},l=0;l<o.length&&!a(l);l++);(0,G.isRef)(e)&&(e.value=i)}}}},85352:(e,t,n)=>{n.d(t,{AP:()=>D,DE:()=>u,E0:()=>v,K4:()=>c,LX:()=>b,Lu:()=>_,MD:()=>x,Op:()=>A,R_:()=>m,UP:()=>y,V6:()=>E,Xj:()=>O,aX:()=>T,dK:()=>M,fH:()=>P,g:()=>l,jK:()=>p,jf:()=>g,of:()=>h,pL:()=>S,s1:()=>k,ue:()=>C,un:()=>f,yD:()=>w,yz:()=>I});var r=n(64007),i=n.n(r),o=n(11393),s=n.n(o),a=(n(2892),n(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},u={CURRENT_DATE:"_currentDate",CURRENT_DATE_EXCLUDE:"_currentDateExclude",CURRENT_DATE_TIME:"_currentDateTime",REF_VAL:"_refVal"},c={LIST:"list",OBJECT:"object",STRING:"string"},p=["CustomComponentTableH5"],d=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],f="CustomComponentFormLayout",h="CustomComponentFormLayoutH5",m=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentDialog","ElButton","CustomComponentTable","CustomComponentRow","CustomComponentCol","CustomComponentCycle","CustomComponentCardH5","CustomComponentCollapseH5","CustomComponentTabsH5","CustomComponentTabPaneH5","CustomComponentTableH5","cmi-cell","cmi-button","cmi-link","cmi-dropdown-menu","cmi-divider"],y=["ElInput","ElButton","CmiInput","CmiButton","ElText"],g=["CmiInput","CmiSelect","CmiPicker"],v=["CustomComponentCycle","CustomComponentCycleTabPane","CustomComponentTable"],b=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],_=["CustomComponentTable"],E=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],x="el-",S="t-",T="cmi-",P="H5-",A="0",w=["ElText"],C=["ElInput","ElDatePicker","ElInputNumber"],O=["ElSelect"],I={compInfo:{type:Object,getValue:function(e,t,n){return e}},modelValue:{type:[String,Number,Object,Array,Boolean,void 0,null],getValue:function(e,t,n){return n.value}},config:{type:Object,getValue:function(e,t,n){return e}},refValue:{type:[Object,Number,String],default:"",getValue:function(e,t,n){return n}},disabled:{type:Boolean,default:!1,getValue:function(e,t,n){return D(e,t.mode)}},clearable:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.clearableFlag}},required:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.requiredFlag}},hidden:{type:Boolean,default:!1,getValue:function(e,t,n){return M({config:e})}},onlyRequiredFlag:{type:[Boolean,String,Number],default:!1,getValue:function(e,t,n){return e.onlyRequiredFlag}},tableData:{type:Array,default:function(){return[]},getValue:function(e,t,n){return t.tableData}},rowScope:{type:Object,getValue:function(e,t,n){return t.rowScope}},width:{type:[String,Number],default:"",getValue:function(e,t,n){return e.width?(0,a.M6)(e.width):null}},mode:{type:[String],default:"",getValue:function(e,t){return t.mode}},options:{type:Array,default:function(){return[]},getValue:function(e,t,n,r){return(0,a.fN)(e,r)}},placeholder:{type:String,default:function(){return""},getValue:function(e,t,n,r,o){return((null==o?void 0:i()(o).call(o,"zh"))>-1?e.defPlacehold:e.defPlaceholdEn)||""}},placeholderEn:{type:String,default:function(){return""},getValue:function(e,t,n,r,i){return e.defPlaceholdEn}}};function M(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function D(e,t){var n,r;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(n=[f]).call(n,d),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(r=[f]).call(r,d),e)||"0"==e.editFlag)}var k={row:"CustomComponentRow",grid:"CustomComponentRow","grid-col":"CustomComponentCol",table:"CustomComponentTable","checkbox-table":"CustomComponentTable",tab:"CustomComponentTabs","tab-pane":"CustomComponentTabPane",collapse:"CustomComponentCollapse",card:"CustomComponentCollapse",cycle:"CustomComponentCycle",input:"ElInput",textarea:"ElInput",button:"ElButton","static-text":"ElText",number:"ElInputNumber",radio:"ElRadio",checkbox:"ElCheckbox",select:"ElSelect",time:"ElTimePicker","time-range":"ElTimePicker",date:"ElDatePicker","date-range":"ElDatePicker",cascader:"ElCascader","select-employees":"CustomComponentSelectEmployees","rich-editor":"CustomComponentEditor",pagination:"ElPagination",tree:"CustomComponentTree",steps:"CustomComponentSteps","mail-send":"CustomComponentSendMail","file-import":"CustomComponentFileImport","file-export":"CustomComponentFileExport","cmi-card":"CustomComponentCardH5","cmi-collapse":"CustomComponentCollapseH5","cmi-tab":"CustomComponentTabsH5","cmi-tab-pane":"CustomComponentTabPaneH5","cmi-table":"CustomComponentTableH5","cmi-datetime":"CmiDatetimePicker"};window&&(!window["resolver-egretimp-plus"]&&(window["resolver-egretimp-plus"]={}),window["resolver-egretimp-plus"].componentPropsType=I)},71835:(e,t,n)=>{n.d(t,{A:()=>b,l:()=>_}),n(48598),n(23288),n(79432),n(27495),n(90906),n(71761),n(90744);var r=n(11265),i=n.n(r),o=n(8628),s=n.n(o),a=n(11393),l=n.n(a),u=n(57119),c=n.n(u),p=n(73363),d=n.n(p),f=n(75286),h=n(48618),m=n(85352),y=n(12935),g=n(74353),v=n.n(g);function b(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue&&(!(0,y.cy)(e.bindValue)||!e.bindValue.length)){var t=e.defaultVal||e.defaultValue,n=null;try{var r,o;if("string"==typeof t){var a=i()(t).call(t),u=null;if(u=a.match(/^_route:(.*)$/)){var c,p=u[1],d=null==e||null===(c=e.route)||void 0===c?void 0:c.query;n=null==d?void 0:d[p]}else if(u=a.match(/^_native:(.*)$/))n=u[1];else if(/^_lang$/.test(a))n=null==e?void 0:e._lang;else if(/^{[\w\W]*}$/.test(a)||/^\[[\w\W]*\]$/.test(a))n=JSON.parse(a);else{var g,b,E=[m.DE.CURRENT_DATE,"currentDate",m.DE.CURRENT_DATE_TIME,m.DE.CURRENT_DATE_EXCLUDE];n=s()(E).call(E,i()(g=a||"").call(g))?a===m.DE.CURRENT_DATE_TIME?(0,h.Yq)(new Date,"yyyy-MM-dd hh:mm:ss"):a===m.DE.CURRENT_DATE_EXCLUDE?v()(new Date).add(1,"day").format("YYYY-MM-DD"):(0,h.Yq)(new Date,"yyyy-MM-dd"):s()(b=["true","false"]).call(b,a)?"true"==a:a}}else n=(0,f.toRaw)(t);"ElSelect"===e.metaType&&(n=_({config:e,val:n})),console.log(l()(r=l()(o="".concat(e.dynamicHireRelat,",")).call(o,e.hireRelat," to set defaultValue, ")).call(r,n)),e.refValue=n}catch(t){console.log("set default val fail, config",e,t)}}}function _(e){var t=e.config,n=e.val,r=e.isActive,i=void 0!==r&&r,o=n;if(!(0,m.dK)({config:t})||i){var s,a,l=null==t?void 0:t.valueType,u=null==t?void 0:t.separator;if(l!==m.K4.LIST&&l!==m.K4.OBJECT){if((0,h.Qd)(n)||(0,y.cy)(n))try{o=c()(n).join(u)}catch(e){o=n}}else(n&&(0,y.Kg)(n)||(0,y.Et)(n))&&(o=null===(s="".concat(n))||void 0===s?void 0:s.split(u),l==m.K4.OBJECT&&(o=null===(a=o)||void 0===a?void 0:d()(a).call(a,(function(e,t,n){return e[n]=t,e}),{})))}return o}},17427:(e,t,n)=>{n.d(t,{$3:()=>r.$3,$N:()=>r.$N,AP:()=>o.AP,Ch:()=>i.Ch,Dg:()=>r.Dg,Ho:()=>i.Ho,KK:()=>i.KK,M9:()=>i.M9,Op:()=>o.Op,Qd:()=>r.Qd,SK:()=>i.SK,Tn:()=>r.Tn,Ts:()=>r.Ts,UP:()=>o.UP,V9:()=>r.V9,Vv:()=>r.Vv,YJ:()=>r.YJ,Yq:()=>r.Yq,ZB:()=>i.ZB,cy:()=>s.cy,ej:()=>r.ej,fN:()=>r.fN,fw:()=>i.fw,jG:()=>i.jG,jK:()=>o.jK,kL:()=>s.Tn,lb:()=>i.lb,n_:()=>i.n_,oY:()=>r.oY,q2:()=>r.q2,qg:()=>i.qg,vr:()=>r.vr,yL:()=>r.yL,yo:()=>i.yo,yz:()=>o.yz});var r=n(48618),i=n(8069),o=n(85352),s=n(12935)},12935:(e,t,n)=>{n.d(t,{$P:()=>o.A,Et:()=>a.A,Kg:()=>u.A,Tn:()=>s.A,b0:()=>c.A,cy:()=>d,kZ:()=>l.A,sw:()=>f,yr:()=>p.A});var r=n(66615),i=n.n(r),o=(n(76918),n(23288),n(26099),n(27495),n(90906),n(38781),n(22922)),s=n(89610),a=n(21879),l=n(21395),u=n(32084),c=n(69592),p=n(429);function d(e){return e&&i()(e)}function f(e){return null!=e}Object.prototype.toString},20807:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(37891),i=n(34963),o=(n(79432),n(74707)),s=n.n(o),a=n(29544),l=n.n(a),u=n(86226),c=n.n(u),p=n(50697),d=n.n(p),f=n(75286),h=[(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return V.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}});var i=n(348),o=n(349),s=n(350),a=n(362),l=n(363);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var u=n(364),c=n(365),p=n(366),d=n(4);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(368);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=n(369);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(27),y=n(370),g=n(371),v=n(372),b=n(373),_=n(374),E=n(172),x=n(173),S=n(174),T=n(175),P=n(176),A=n(375),w=n(376);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var C=n(26);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var O=n(377),I=n(378),M=n(177),D=n(379),k=n(380),N=n(178),j=n(381),L=n(382),R=n(383),B=n(9);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var F=n(384),U=n(385),V=n(386),W=n(181),q=n(179),$=n(171),K=n(60),H=n(387),z=n(388);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var G=n(180),Y=n(96),X=n(42),J=n(389),Q=n(390),Z=n(391),ee=n(182),te=n(170),ne=n(392),re=n(168),ie=n(393),oe=n(394),se=n(395),ae=n(98),le=n(396),ue=n(43),ce=n(397),pe=n(165),de=n(97),fe=n(164),he=n(2);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(58);t.react={isReactComponent:i.default,isCompatTag:o.default,buildChildren:s.default},t.toSequenceExpression=n(398).default},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createConfigItem",{enumerable:!0,get:function(){return p.createConfigItem}}),Object.defineProperty(t,"createConfigItemAsync",{enumerable:!0,get:function(){return p.createConfigItemAsync}}),Object.defineProperty(t,"createConfigItemSync",{enumerable:!0,get:function(){return p.createConfigItemSync}}),Object.defineProperty(t,"getEnv",{enumerable:!0,get:function(){return s.getEnv}}),Object.defineProperty(t,"loadOptions",{enumerable:!0,get:function(){return p.loadOptions}}),Object.defineProperty(t,"loadOptionsAsync",{enumerable:!0,get:function(){return p.loadOptionsAsync}}),Object.defineProperty(t,"loadOptionsSync",{enumerable:!0,get:function(){return p.loadOptionsSync}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return p.loadPartialConfig}}),Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:!0,get:function(){return p.loadPartialConfigAsync}}),Object.defineProperty(t,"loadPartialConfigSync",{enumerable:!0,get:function(){return p.loadPartialConfigSync}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return m.parseAsync}}),Object.defineProperty(t,"parseSync",{enumerable:!0,get:function(){return m.parseSync}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return o.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return o.resolvePreset}}),Object.defineProperty(t,"template",{enumerable:!0,get:function(){return c().default}}),Object.defineProperty(t,"tokTypes",{enumerable:!0,get:function(){return l().tokTypes}}),Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return d.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return d.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return f.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return f.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return f.transformFileSync}}),Object.defineProperty(t,"transformFromAst",{enumerable:!0,get:function(){return h.transformFromAst}}),Object.defineProperty(t,"transformFromAstAsync",{enumerable:!0,get:function(){return h.transformFromAstAsync}}),Object.defineProperty(t,"transformFromAstSync",{enumerable:!0,get:function(){return h.transformFromAstSync}}),Object.defineProperty(t,"transformSync",{enumerable:!0,get:function(){return d.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return u().default}}),t.version=t.types=void 0;var r=n(95),i=n(453),o=n(81),s=n(278);function a(){const e=n(0);return a=function(){return e},e}function l(){const e=n(21);return l=function(){return e},e}function u(){const e=n(14);return u=function(){return e},e}function c(){const e=n(37);return c=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return a()}});var p=n(82),d=n(475),f=n(488),h=n(489),m=n(490);n(1),t.version="7.23.9",t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]),t.OptionManager=class{init(e){return(0,p.loadOptionsSync)(e)}},t.Plugin=function(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=o,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),o(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=n(96),i=n(58);function o(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},(e,t,n)=>{const r=n(48),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(47),{safeRe:s,t:a}=n(34),l=n(75),{compareIdentifiers:u}=n(128);class c{constructor(e,t){if(t=l(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,r.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,r.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null})},t.assignmentExpression=function(e,t,n){return(0,r.default)({type:"AssignmentExpression",operator:e,left:t,right:n})},t.assignmentPattern=function(e,t){return(0,r.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,r.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,r.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,n){return(0,r.default)({type:"BinaryExpression",operator:e,left:t,right:n})},t.bindExpression=function(e,t){return(0,r.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,r.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,r.default)({type:"BooleanLiteralTypeAnnotation",value:e})},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,r.default)({type:"CallExpression",callee:e,arguments:t})},t.catchClause=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.classBody=function(e){return(0,r.default)({type:"ClassBody",body:e})},t.classDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:i})},t.classExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:i})},t.classImplements=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ClassImplements",id:e,typeParameters:t})},t.classMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return(0,r.default)({type:"ClassMethod",kind:e,key:t,params:n,body:i,computed:o,static:s,generator:a,async:l})},t.classPrivateMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:i,static:o})},t.classPrivateProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:i})},t.classProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.conditionalExpression=function(e,t,n){return(0,r.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:n})},t.continueStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,r.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:i})},t.declareExportAllDeclaration=function(e){return(0,r.default)({type:"DeclareExportAllDeclaration",source:e})},t.declareExportDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n})},t.declareFunction=function(e){return(0,r.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:i})},t.declareModule=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareModule",id:e,body:t,kind:n})},t.declareModuleExports=function(e){return(0,r.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n})},t.declareTypeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:n})},t.declareVariable=function(e){return(0,r.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,r.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,r.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,r.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,r.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,r.default)({type:"DoWhileStatement",test:e,body:t})},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){return(0,r.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,r.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,r.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,r.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,r.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,r.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,r.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,r.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,r.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,r.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,r.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,r.default)({type:"ExportDefaultSpecifier",exported:e})},t.exportNamedDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n})},t.exportNamespaceSpecifier=function(e){return(0,r.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,r.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,r.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"File",program:e,comments:t,tokens:n})},t.forInStatement=function(e,t,n){return(0,r.default)({type:"ForInStatement",left:e,right:t,body:n})},t.forOfStatement=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:i})},t.forStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:i})},t.functionDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:i,async:o})},t.functionExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:i,async:o})},t.functionTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:i})},t.functionTypeParam=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})},t.genericTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,r.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"IfStatement",test:e,consequent:t,alternate:n})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,r.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,r.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,r.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,r.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,r.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,r.default)({type:"IndexedAccessType",objectType:e,indexType:t})},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.interfaceExtends=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"InterfaceExtends",id:e,typeParameters:t})},t.interfaceTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,r.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,r.default)({type:"IntersectionTypeAnnotation",types:e})},t.jSXAttribute=t.jsxAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,r.default)({type:"JSXClosingElement",name:e})},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:i})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,r.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,n){return(0,r.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:n})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,r.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,r.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,r.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,r.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,r.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,r.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,r.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,n){return(0,r.default)({type:"LogicalExpression",operator:e,left:t,right:n})},t.memberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:i})},t.metaProperty=function(e,t){return(0,r.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,r.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,r.default)({type:"NewExpression",callee:e,arguments:t})},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){return(0,r.default)({type:"NullableTypeAnnotation",typeAnnotation:e})},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),o(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=o,t.objectExpression=function(e){return(0,r.default)({type:"ObjectExpression",properties:e})},t.objectMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,r.default)({type:"ObjectMethod",kind:e,key:t,params:n,body:i,computed:o,generator:s,async:a})},t.objectPattern=function(e){return(0,r.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:i,decorators:o})},t.objectTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:i,exact:o})},t.objectTypeCallProperty=function(e){return(0,r.default)({type:"ObjectTypeCallProperty",value:e,static:null})},t.objectTypeIndexer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:i,static:null})},t.objectTypeInternalSlot=function(e,t,n,i,o){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:i,method:o})},t.objectTypeProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,r.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:i})},t.optionalCallExpression=function(e,t,n){return(0,r.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:n})},t.optionalIndexedAccessType=function(e,t){return(0,r.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:i})},t.parenthesizedExpression=function(e){return(0,r.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,r.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,r.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,r.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,r.default)({type:"PrivateName",id:e})},t.program=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:i,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,r.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,r.default)({type:"RecordExpression",properties:e})},t.regExpLiteral=s,t.regexLiteral=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=a,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),a(e)},t.returnStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,r.default)({type:"SequenceExpression",expressions:e})},t.spreadElement=l,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),l(e)},t.staticBlock=function(e){return(0,r.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,r.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,r.default)({type:"StringLiteralTypeAnnotation",value:e})},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,r.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,r.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,r.default)({type:"TemplateLiteral",quasis:e,expressions:t})},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){return(0,r.default)({type:"ThrowStatement",argument:e})},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TryStatement",block:e,handler:t,finalizer:n})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,r.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,r.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConditionalType=t.tsConditionalType=function(e,t,n,i){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:i})},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConstructorType=t.tsConstructorType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSDeclareFunction=t.tsDeclareFunction=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:i})},t.tSDeclareMethod=t.tsDeclareMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:i,returnType:o})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,r.default)({type:"TSEnumDeclaration",id:e,members:t})},t.tSEnumMember=t.tsEnumMember=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,r.default)({type:"TSExportAssignment",expression:e})},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,r.default)({type:"TSExternalModuleReference",expression:e})},t.tSFunctionType=t.tsFunctionType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,r.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})},t.tSImportType=t.tsImportType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:n})},t.tSIndexSignature=t.tsIndexSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,r.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,r.default)({type:"TSInferType",typeParameter:e})},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,r.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,r.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,r.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n})},t.tSMethodSignature=t.tsMethodSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:i,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,r.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,r.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:n})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,r.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,r.default)({type:"TSNonNullExpression",expression:e})},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){return(0,r.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,r.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,r.default)({type:"TSParenthesizedType",typeAnnotation:e})},t.tSPropertySignature=t.tsPropertySignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,r.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,r.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,r.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){return(0,r.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,r.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,r.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,r.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,r.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})},t.tSTypeParameter=t.tsTypeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeParameter",constraint:e,default:t,name:n})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,r.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,r.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n})},t.tSTypeQuery=t.tsTypeQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})},t.tSTypeReference=t.tsTypeReference=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,r.default)({type:"TSUnionType",types:e})},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,r.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TypeAlias",id:e,typeParameters:t,right:n})},t.typeAnnotation=function(e){return(0,r.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,r.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})},t.typeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TypeParameter",bound:e,default:t,variance:n,name:null})},t.typeParameterDeclaration=function(e){return(0,r.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,r.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,r.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.default)({type:"UnaryExpression",operator:e,argument:t,prefix:n})},t.unionTypeAnnotation=function(e){return(0,r.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"UpdateExpression",operator:e,argument:t,prefix:n})},t.v8IntrinsicIdentifier=function(e){return(0,r.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,r.default)({type:"VariableDeclaration",kind:e,declarations:t})},t.variableDeclarator=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,r.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,r.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,r.default)({type:"WithStatement",object:e,body:t})},t.yieldExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"YieldExpression",argument:e,delegate:t})};var r=n(352),i=n(58);function o(e){return(0,r.default)({type:"NumericLiteral",value:e})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)({type:"RegExpLiteral",pattern:e,flags:t})}function a(e){return(0,r.default)({type:"RestElement",argument:e})}function l(e){return(0,r.default)({type:"SpreadElement",argument:e})}},function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,n)=>{const r=n(3);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];e=e.replace(o,O(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[c.COMPARATORTRIM],p),a("comparator trim",e),e=e.replace(u[c.TILDETRIM],d),a("tilde trim",e),e=e.replace(u[c.CARETTRIM],f),a("caret trim",e);let l=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));r&&(l=l.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[c.COMPARATORLOOSE]))))),a("range list",l);const g=new Map,v=l.map((e=>new s(e,this.options)));for(const e of v){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const _=[...g.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>v(n,t)&&e.set.some((e=>v(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(132))({max:1e3}),o=n(75),s=n(50),a=n(48),l=n(3),{safeRe:u,t:c,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=n(34),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=n(47),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=E(e,t),a("tildes",e),e=P(e,t),a("xrange",e),e=w(e,t),a("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?u[c.TILDELOOSE]:u[c.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),_(n)?s="":_(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>T(e,t))).join(" "),T=(e,t)=>{a("caret",e,t);const n=t.loose?u[c.CARETLOOSE]:u[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),_(n)?l="":_(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l}))},P=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const n=t.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return e.replace(n,((n,r,i,o,s,l)=>{a("xRange",e,n,r,i,o,s,l);const u=_(i),c=u||_(o),p=c||_(s),d=p;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):c?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},w=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[c.STAR],"")),C=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),O=e=>(t,n,r,i,o,s,a,l,u,c,p,d,f)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=_(u)?"":_(c)?`<${+u+1}.0.0-0`:_(p)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${p}-${d}`:e?`<${u}.${c}.${+p+1}-0`:`<=${l}`}`.trim(),I=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return i.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return i.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return i.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return i.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return i.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return i.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return o.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return i.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var i=n(18),o=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{i.FLIPPED_ALIAS_KEYS[e]=i.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),r(i.VISITOR_KEYS),r(i.ALIAS_KEYS),r(i.FLIPPED_ALIAS_KEYS),r(i.NODE_FIELDS),r(i.BUILDER_KEYS),r(i.DEPRECATED_KEYS),r(o.PLACEHOLDERS_ALIAS),r(o.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(i.VISITOR_KEYS),Object.keys(i.FLIPPED_ALIAS_KEYS),Object.keys(i.DEPRECATED_KEYS))},(e,t,n)=>{var r=n(17);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var s={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=r.cwd()),a=e),i(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,u=o<l?o:l,c=-1,p=0;p<=u;++p){if(p===u){if(l>u){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else o>u&&(47===e.charCodeAt(n+p)?c=p:0===p&&(c=0));break}var d=e.charCodeAt(n+p);if(d!==t.charCodeAt(a+p))break;47===d&&(c=p)}var f="";for(p=n+c+1;p<=r;++p)p!==r&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){r=s;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(u===t.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,u=!0,c=e.length-1,p=0;c>=n;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===r?-1===s?s=c:1!==p&&(p=1):-1!==s&&(p=-1);else if(!u){a=c+1;break}return-1===s||-1===l||0===p||1===p&&s===l-1&&s===a+1?-1!==l&&(t.base=t.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(a,s),t.base=e.slice(a,l)),t.ext=e.slice(s,l)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,n)=>{var r=n(5),i=n(66),o=n(206),s=n(218),a=n(221),l=n(63),u=n(11),c=r.RangeError,p=r.Int8Array,d=p&&p.prototype,f=d&&d.set,h=o.aTypedArray,m=o.exportTypedArrayMethod,y=!u((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(y)return i(f,this,n,t);var r=this.length,o=s(n),u=0;if(o+t>r)throw new c("Wrong length");for(;u<o;)this[t+u]=n[u++]}),!y||g)},e=>{const t=Symbol.for("gensync:v1:start"),n=Symbol.for("gensync:v1:suspend"),r="GENSYNC_EXPECTED_START",i="GENSYNC_EXPECTED_SUSPEND",o="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,n,r){if(typeof n===e||r&&void 0===n)return;let i;throw i=r?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,l(i,o)}function l(e,t){return Object.assign(new Error(e),{code:t})}function u(e){let{name:r,arity:i,sync:o,async:s}=e;return m(r,i,(function*(){const e=yield t;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(!e)return o.call(this,i);let l;try{s.call(this,i,(t=>{l||(l={value:t},e())}),(t=>{l||(l={err:t},e())}))}catch(t){l={err:t},e()}if(yield n,l.hasOwnProperty("err"))throw l.err;return l.value}))}function c(e){let t;for(;!({value:t}=e.next()).done;)d(t,e);return t}function p(e,t,n){!function r(){try{let n;for(;!({value:n}=e.next()).done;){d(n,e);let t=!0,i=!1;const o=e.next((()=>{t?i=!0:r()}));if(t=!1,f(o,e),!i)return}return t(n)}catch(e){return n(e)}}()}function d(e,n){e!==t&&h(n,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,r))}function f(e,t){let{value:r,done:o}=e;(o||r!==n)&&h(t,l(o?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(r)}. If you get this, it is probably a gensync bug.`,i))}function h(e,t){throw e.throw&&e.throw(t),t}function m(e,t,n){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(n,"name");t&&!t.configurable||Object.defineProperty(n,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(n,"length");e&&!e.configurable||Object.defineProperty(n,"length",Object.assign(e||{},{configurable:!0,value:t}))}return n}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function(e){let{name:t,arity:n,sync:r,async:i,errback:s}=e;if(a("string","name",t,!0),a("number","arity",n,!0),a("function","sync",r),a("function","async",i,!0),a("function","errback",s,!0),i&&s)throw l("Expected one of either opts.async or opts.errback, but got _both_.",o);if("string"!=typeof t){let e;s&&s.name&&"errback"!==s.name&&(e=s.name),i&&i.name&&"async"!==i.name&&(e=i.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(e=r.name.replace(/Sync$/,"")),"string"==typeof e&&(t=e)}return"number"!=typeof n&&(n=r.length),u({name:t,arity:n,sync:function(e){return r.apply(this,e)},async:function(e,t,n){i?i.apply(this,e).then(t,n):s?s.call(this,...e,((e,r)=>{null==e?t(r):n(e)})):t(r.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}))}(e),Object.assign(t,function(e){const t={sync:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e.apply(this,n))},async:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(((t,r)=>{p(e.apply(this,n),t,r)}))},errback:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.pop();if("function"!=typeof i)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let o;try{o=e.apply(this,n)}catch(e){return void i(e)}p(o,(e=>i(void 0,e)),(e=>i(e)))}};return t}(t))}),{all:u({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((e=>c(e)))},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)return void Promise.resolve().then((()=>t([])));let i=0;const o=r.map((()=>{}));r.forEach(((e,r)=>{p(e,(e=>{o[r]=e,i+=1,i===o.length&&t(o)}),n)}))}}),race:u({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw l("Must race at least 1 item",s);return c(t[0])},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)throw l("Must race at least 1 item",s);for(const e of r)p(e,t,n)}})})},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0;var r=n(57);t.visitors=r;var i=n(0),o=n(35),s=n(100),a=n(28),l=n(183),u=n(444);const{VISITOR_KEYS:c,removeProperties:p,traverseFast:d}=i;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!o&&a)throw new Error("visitSelf can only be used when providing a NodePath.");c[e.type]&&(r.explode(t),(0,s.traverseNode)(e,t,n,i,o,null,a))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=f,f.visitors=r,f.verify=r.verify,f.explode=r.explode,f.cheap=function(e,t){d(e,t)},f.node=function(e,t,n,r,i,o){(0,s.traverseNode)(e,t,n,r,i,o)},f.clearNode=function(e,t){p(e,t)},f.removeProperties=function(e,t){return d(e,f.clearNode,t),e},f.hasType=function(e,t,n){if(null!=n&&n.includes(e.type))return!1;if(e.type===t)return!0;const r={has:!1,type:t};return f(e,{noScope:!0,denylist:n,enter:h},null,r),r.has},f.cache=o},(e,t,n)=>{var r=n(11);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.declare=r,t.declarePreset=void 0;const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const n=Error.stackTraceLimit;let r;throw"number"==typeof n&&n<25&&(Error.stackTraceLimit=25),r="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),"number"==typeof n&&(Error.stackTraceLimit=n),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function r(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(n))t[e]||(null!=a||(a=o(t)),a[e]=n[e](a));return e(null!=(s=a)?s:t,r||{},i)}}Object.assign(n,{targets:()=>()=>({}),assumption:()=>()=>{}});const i=r;function o(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||s(t,"version")&&s(t,"transform")&&s(t,"template")&&s(t,"types")||(t=null)),Object.assign({},t,e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.declarePreset=i},e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],u=!1,c=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c<t;)a&&a[c].run();c=-1,t=l.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=g,t.assertNodeOrValueType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if(d(o)===s||(0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeOrValueTypes=t,o},t.assertNodeType=v,t.assertOneOf=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(e,n,r){if(t.indexOf(r)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(r)}`)}return r.oneOf=t,r},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){function t(t,n,r){const o=[];for(const n of Object.keys(e))try{(0,i.validateField)(t,n,r[n],e[n])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${o.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=T,t.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.aliases;var i;r||(n.inherits&&(r=null==(i=S[n.inherits].aliases)?void 0:i.slice()),null!=r||(r=[]),n.aliases=r);const o=t.filter((e=>!r.includes(e)));r.unshift(...o),T(e,n)}},t.typeIs=h,t.validate=f,t.validateArrayOfType=function(e){return f(y(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:h(e),optional:!0}},t.validateType=function(e){return f(h(e))};var r=n(42),i=n(97);const o=t.VISITOR_KEYS={},s=t.ALIAS_KEYS={},a=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},u=t.BUILDER_KEYS={},c=t.DEPRECATED_KEYS={},p=t.NODE_PARENT_VALIDATIONS={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(e){return{validate:e}}function h(e){return"string"==typeof e?v(e):v(...e)}function m(e){return _(b("array"),g(e))}function y(e){return m(h(e))}function g(e){function t(t,n,r){if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=`${n}[${i}]`,s=r[i];e(t,o,s)}}return t.each=e,t}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if((0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeTypes=t,o}function b(e){function t(t,n,r){if(d(r)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(const e of t)e(...arguments)}if(r.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return r}const E=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],S={};function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.inherits&&S[t.inherits]||{};let r=t.fields;if(!r&&(r={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],f=t.aliases||n.aliases||[],h=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(-1===E.indexOf(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(c[t.deprecatedAlias]=e);for(const e of i.concat(h))r[e]=r[e]||{};for(const t of Object.keys(r)){const n=r[t];void 0!==n.default&&-1===h.indexOf(t)&&(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=b(d(n.default)));for(const r of Object.keys(n))if(-1===x.indexOf(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}o[e]=t.visitor=i,u[e]=t.builder=h,l[e]=t.fields=r,s[e]=t.aliases=f,f.forEach((t=>{a[t]=a[t]||[],a[t].push(e)})),t.validate&&(p[e]=t.validate),S[e]=t}},(e,t,n)=>{var r=n(104),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},(e,t,n)=>{var r=n(6);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(44),Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class o{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function s(e,t){const{line:n,column:r,index:o}=e;return new i(n,r+t,o+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var l={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const u={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},c=e=>{let{type:t,prefix:n}=e;return"UpdateExpression"===t?u.UpdateExpression[String(n)]:u[t]};var p={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:e=>{let{phase:t}=e;return`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:n}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${n}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${c(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${c(t)}.`},InvalidLhsOptionalChaining:e=>{let{ancestor:t}=e;return`Invalid optional chaining in the left-hand side of ${c(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:n}=e;return`Unexpected token${n?` '${n}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:n}=e;return`The only valid meta property for ${t} is ${t}.${n}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const d=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var f={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${c({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const h=["toMessage"],m=["message"];function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g(e){let{toMessage:t}=e,n=r(e,h);return function e(r,o){const s=new SyntaxError;return Object.assign(s,n,{loc:r,pos:r.index}),"missingPlugin"in o&&Object.assign(s,{missingPlugin:o.missingPlugin}),y(s,"clone",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;const{line:s,column:a,index:l}=null!=(n=t.loc)?n:r;return e(new i(s,a,l),Object.assign({},o,t.details))})),y(s,"details",o),Object.defineProperty(s,"message",{configurable:!0,get(){const e=`${t(o)} (${r.line}:${r.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),s}}function v(e,t){if(Array.isArray(e))return t=>v(t,e[0]);const n={};for(const i of Object.keys(e)){const o=e[i],s="string"==typeof o?{message:()=>o}:"function"==typeof o?{message:o}:o,{message:a}=s,l=r(s,m),u="string"==typeof a?()=>a:a;n[i]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:u},t?{syntaxPlugin:t}:{},l))}return n}const b=Object.assign({},v(l),v(p),v({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),v`pipelineOperator`(f)),{defineProperty:_}=Object,E=(e,t)=>_(e,t,{enumerable:!1,value:e[t]});function x(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e.loc.end,"index"),e}class S{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const T={brace:new S("{"),j_oTag:new S("<tag"),j_cTag:new S("</tag"),j_expr:new S("<tag>...</tag>",!0)};T.template=new S("`",!0);const P=!0,A=!0,w=!0,C=!0,O=!0;class I{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const M=new Map;function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;const n=V(e,t);return M.set(e,n),n}function k(e,t){return V(e,{beforeExpr:P,binop:t})}let N=-1;const j=[],L=[],R=[],B=[],F=[],U=[];function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++N,L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),F.push(null!=(i=t.startsExpr)&&i),U.push(null!=(o=t.prefix)&&o),j.push(new I(e,t)),N}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++N,M.set(e,N),L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),F.push(null!=(i=t.startsExpr)&&i),U.push(null!=(o=t.prefix)&&o),j.push(new I("name",t)),N}const q={bracketL:V("[",{beforeExpr:P,startsExpr:A}),bracketHashL:V("#[",{beforeExpr:P,startsExpr:A}),bracketBarL:V("[|",{beforeExpr:P,startsExpr:A}),bracketR:V("]"),bracketBarR:V("|]"),braceL:V("{",{beforeExpr:P,startsExpr:A}),braceBarL:V("{|",{beforeExpr:P,startsExpr:A}),braceHashL:V("#{",{beforeExpr:P,startsExpr:A}),braceR:V("}"),braceBarR:V("|}"),parenL:V("(",{beforeExpr:P,startsExpr:A}),parenR:V(")"),comma:V(",",{beforeExpr:P}),semi:V(";",{beforeExpr:P}),colon:V(":",{beforeExpr:P}),doubleColon:V("::",{beforeExpr:P}),dot:V("."),question:V("?",{beforeExpr:P}),questionDot:V("?."),arrow:V("=>",{beforeExpr:P}),template:V("template"),ellipsis:V("...",{beforeExpr:P}),backQuote:V("`",{startsExpr:A}),dollarBraceL:V("${",{beforeExpr:P,startsExpr:A}),templateTail:V("...`",{startsExpr:A}),templateNonTail:V("...${",{beforeExpr:P,startsExpr:A}),at:V("@"),hash:V("#",{startsExpr:A}),interpreterDirective:V("#!..."),eq:V("=",{beforeExpr:P,isAssign:C}),assign:V("_=",{beforeExpr:P,isAssign:C}),slashAssign:V("_=",{beforeExpr:P,isAssign:C}),xorAssign:V("_=",{beforeExpr:P,isAssign:C}),moduloAssign:V("_=",{beforeExpr:P,isAssign:C}),incDec:V("++/--",{prefix:O,postfix:!0,startsExpr:A}),bang:V("!",{beforeExpr:P,prefix:O,startsExpr:A}),tilde:V("~",{beforeExpr:P,prefix:O,startsExpr:A}),doubleCaret:V("^^",{startsExpr:A}),doubleAt:V("@@",{startsExpr:A}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("</>/<=/>=",7),gt:k("</>/<=/>=",7),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),bitShiftL:k("<</>>/>>>",8),bitShiftR:k("<</>>/>>>",8),plusMin:V("+/-",{beforeExpr:P,binop:9,prefix:O,startsExpr:A}),modulo:V("%",{binop:10,startsExpr:A}),star:V("*",{binop:10}),slash:k("/",10),exponent:V("**",{beforeExpr:P,binop:11,rightAssociative:!0}),_in:D("in",{beforeExpr:P,binop:7}),_instanceof:D("instanceof",{beforeExpr:P,binop:7}),_break:D("break"),_case:D("case",{beforeExpr:P}),_catch:D("catch"),_continue:D("continue"),_debugger:D("debugger"),_default:D("default",{beforeExpr:P}),_else:D("else",{beforeExpr:P}),_finally:D("finally"),_function:D("function",{startsExpr:A}),_if:D("if"),_return:D("return",{beforeExpr:P}),_switch:D("switch"),_throw:D("throw",{beforeExpr:P,prefix:O,startsExpr:A}),_try:D("try"),_var:D("var"),_const:D("const"),_with:D("with"),_new:D("new",{beforeExpr:P,startsExpr:A}),_this:D("this",{startsExpr:A}),_super:D("super",{startsExpr:A}),_class:D("class",{startsExpr:A}),_extends:D("extends",{beforeExpr:P}),_export:D("export"),_import:D("import",{startsExpr:A}),_null:D("null",{startsExpr:A}),_true:D("true",{startsExpr:A}),_false:D("false",{startsExpr:A}),_typeof:D("typeof",{beforeExpr:P,prefix:O,startsExpr:A}),_void:D("void",{beforeExpr:P,prefix:O,startsExpr:A}),_delete:D("delete",{beforeExpr:P,prefix:O,startsExpr:A}),_do:D("do",{isLoop:w,beforeExpr:P}),_for:D("for",{isLoop:w}),_while:D("while",{isLoop:w}),_as:W("as",{startsExpr:A}),_assert:W("assert",{startsExpr:A}),_async:W("async",{startsExpr:A}),_await:W("await",{startsExpr:A}),_defer:W("defer",{startsExpr:A}),_from:W("from",{startsExpr:A}),_get:W("get",{startsExpr:A}),_let:W("let",{startsExpr:A}),_meta:W("meta",{startsExpr:A}),_of:W("of",{startsExpr:A}),_sent:W("sent",{startsExpr:A}),_set:W("set",{startsExpr:A}),_source:W("source",{startsExpr:A}),_static:W("static",{startsExpr:A}),_using:W("using",{startsExpr:A}),_yield:W("yield",{startsExpr:A}),_asserts:W("asserts",{startsExpr:A}),_checks:W("checks",{startsExpr:A}),_exports:W("exports",{startsExpr:A}),_global:W("global",{startsExpr:A}),_implements:W("implements",{startsExpr:A}),_intrinsic:W("intrinsic",{startsExpr:A}),_infer:W("infer",{startsExpr:A}),_is:W("is",{startsExpr:A}),_mixins:W("mixins",{startsExpr:A}),_proto:W("proto",{startsExpr:A}),_require:W("require",{startsExpr:A}),_satisfies:W("satisfies",{startsExpr:A}),_keyof:W("keyof",{startsExpr:A}),_readonly:W("readonly",{startsExpr:A}),_unique:W("unique",{startsExpr:A}),_abstract:W("abstract",{startsExpr:A}),_declare:W("declare",{startsExpr:A}),_enum:W("enum",{startsExpr:A}),_module:W("module",{startsExpr:A}),_namespace:W("namespace",{startsExpr:A}),_interface:W("interface",{startsExpr:A}),_type:W("type",{startsExpr:A}),_opaque:W("opaque",{startsExpr:A}),name:V("name",{startsExpr:A}),string:V("string",{startsExpr:A}),num:V("num",{startsExpr:A}),bigint:V("bigint",{startsExpr:A}),decimal:V("decimal",{startsExpr:A}),regexp:V("regexp",{startsExpr:A}),privateName:V("#name",{startsExpr:A}),eof:V("eof"),jsxName:V("jsxName"),jsxText:V("jsxText",{beforeExpr:!0}),jsxTagStart:V("jsxTagStart",{startsExpr:!0}),jsxTagEnd:V("jsxTagEnd"),placeholder:V("%%",{startsExpr:!0})};function $(e){return e>=93&&e<=132}function K(e){return e>=58&&e<=132}function H(e){return e>=58&&e<=136}function z(e){return F[e]}function G(e){return e>=129&&e<=131}function Y(e){return e>=58&&e<=92}function X(e){return L[e]}function J(e){return R[e]}function Q(e){return e>=24&&e<=25}function Z(e){return j[e]}j[8].updateContext=e=>{e.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=e=>{e.push(T.brace)},j[22].updateContext=e=>{e[e.length-1]===T.template?e.pop():e.push(T.template)},j[142].updateContext=e=>{e.push(T.j_expr,T.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ne=new RegExp("["+ee+"]"),re=new RegExp("["+ee+te+"]");ee=te=null;const ie=[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,68,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,349,41,7,1,79,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,159,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,264,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,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,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,757,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],oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function se(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):se(e,ie)))}function le(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&re.test(String.fromCharCode(e)):se(e,ie)||se(e,oe))))}const ue=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ce=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),pe=new Set(["eval","arguments"]);function de(e,t){return t&&"await"===e||"enum"===e}function fe(e,t){return de(e,t)||ce.has(e)}function he(e){return pe.has(e)}function me(e,t){return fe(e,t)||he(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class ge{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ve{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ge(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(b.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const r=e.names.get(t);return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}}class be extends ge{constructor(){super(...arguments),this.declareFunctions=new Set}}class _e extends ve{createScope(e){return new be(e)}declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}class Ee{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(n))if((null==r?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function xe(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Se(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Te(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?Se(e,n.comments):xe(r,n.comments)}class Pe extends Ee{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let r=n-1;const i=t[r];i.start===e.end&&(i.leadingNode=e,r--);const{start:o}=e;for(;r>=0;r--){const n=t[r],i=n.end;if(!(i>o)){i===o&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(r,1)}}finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&xe(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{const{containingNode:n,start:r}=e;if(44===this.input.charCodeAt(r-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Te(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Te(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Te(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Te(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Te(n,n.specifiers,e);break;default:Se(n,t)}else Se(n,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:n}=t;if(0===n)return;const r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:n}=t;0!==n&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let o=i-1;for(;o>=0;o--){const i=r[o],s=i.end;if(i.start===n)i.leadingNode=e;else if(s===t)i.trailingNode=e;else if(s<t)break}}}const Ae=/\r\n?|[\n\u2028\u2029]/,we=new RegExp(Ae.source,"g");function Ce(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ie=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Me=new RegExp("(?=("+Ie.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function De(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class ke{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[T.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(e){let{strictMode:t,sourceType:n,startLine:r,startColumn:o}=e;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-o,this.startLoc=this.endLoc=new i(r,o,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new ke;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Ne=function(e){return e>=48&&e<=57};const je={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Le={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Re(e,t,n,r,i,o){const s=n,a=r,l=i;let u="",c=null,p=n;const{length:d}=t;for(;;){if(n>=d){o.unterminated(s,a,l),u+=t.slice(p,n);break}const f=t.charCodeAt(n);if(Be(e,f,t,n)){u+=t.slice(p,n);break}if(92===f){u+=t.slice(p,n);const s=Fe(t,n,r,i,"template"===e,o);null!==s.ch||c?u+=s.ch:c={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=s),p=n}else 8232===f||8233===f?(++i,r=++n):10===f||13===f?"template"===e?(u+=t.slice(p,n)+"\n",++n,13===f&&10===t.charCodeAt(n)&&++n,++i,p=r=n):o.unterminated(s,a,l):++n}return{pos:n,str:u,firstInvalidLoc:c,lineStart:r,curLine:i,containsInvalid:!!c}}function Be(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function Fe(e,t,n,r,i,o){const s=!i;t++;const a=e=>({pos:t,ch:e,lineStart:n,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let i;return({code:i,pos:t}=Ue(e,t,n,r,2,!1,s,o)),a(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=We(e,t,n,r,s,o)),a(null===i?null:String.fromCodePoint(i))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return a("");case 56:case 57:if(i)return a(null);o.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){const s=t-1;let l=e.slice(s,t+2).match(/^[0-7]+/)[0],u=parseInt(l,8);u>255&&(l=l.slice(0,-1),u=parseInt(l,8)),t+=l.length-1;const c=e.charCodeAt(t);if("0"!==l||56===c||57===c){if(i)return a(null);o.strictNumericEscape(s,n,r)}return a(String.fromCharCode(u))}return a(String.fromCharCode(l))}}function Ue(e,t,n,r,i,o,s,a){const l=t;let u;return({n:u,pos:t}=Ve(e,t,n,r,16,i,o,!1,a,!s)),null===u&&(s?a.invalidEscapeSequence(l,n,r):t=l-1),{code:u,pos:t}}function Ve(e,t,n,r,i,o,s,a,l,u){const c=t,p=16===i?je.hex:je.decBinOct,d=16===i?Le.hex:10===i?Le.dec:8===i?Le.oct:Le.bin;let f=!1,h=0;for(let c=0,m=null==o?1/0:o;c<m;++c){const o=e.charCodeAt(t);let c;if(95!==o||"bail"===a){if(c=o>=97?o-97+10:o>=65?o-65+10:Ne(o)?o-48:1/0,c>=i){if(c<=9&&u)return{n:null,pos:t};if(c<=9&&l.invalidDigit(t,n,r,i))c=0;else{if(!s)break;c=0,f=!0}}++t,h=h*i+c}else{const i=e.charCodeAt(t-1),o=e.charCodeAt(t+1);if(a){if(Number.isNaN(o)||!d(o)||p.has(i)||p.has(o)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t}}return t===c||null!=o&&t-c!==o||f?{n:null,pos:t}:{n:h,pos:t}}function We(e,t,n,r,i,o){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Ue(e,t,n,r,e.indexOf("}",t)-t,!0,i,o)),++t,null!==s&&s>1114111){if(!i)return{code:null,pos:t};o.invalidCodePoint(t,n,r)}}else({code:s,pos:t}=Ue(e,t,n,r,4,!1,i,o));return{code:s,pos:t}}function qe(e,t,n){return new i(n,e-t,e)}const $e=new Set([103,109,115,105,121,117,100,118]);class Ke{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new o(e.startLoc,e.endLoc)}}class He extends Pe{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>!!this.options.errorRecovery&&(this.raise(b.InvalidDigit,qe(e,t,n),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(b.StrictNumericEscape,qe(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedString,qe(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedTemplate,qe(e,t,n))}}),this.state=new ke,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ke(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ie.lastIndex=e,Ie.test(this.input)?Ie.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,n]=e;return this.raise(t,n)})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,we.lastIndex=n+2;we.test(this.input)&&we.lastIndex<=r;)++this.state.curLine,this.state.lineStart=we.lastIndex;if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new o(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ce(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,i),start:t,end:i,loc:new o(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(De(n))++this.state.pos;else if(45===n&&!this.inModule&&this.options.annexB){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==n||this.inModule||!this.options.annexB)break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){const n={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ae(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Ce(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ae(e))return void this.readWord(e)}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(b.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(i);if(Ce(t))throw this.raise(b.UnterminatedRegExp,s(e,1));if(n)n=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;n=92===t}}const o=this.input.slice(t,i);++i;let a="";const l=()=>s(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if($e.has(e))118===e?a.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):117===e&&a.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),a.includes(t)&&this.raise(b.DuplicateRegExpFlags,l());else{if(!le(e)&&92!==e)break;this.raise(b.MalformedRegExpFlags,l())}++i,a+=t}this.state.pos=i,this.finishToken(137,{pattern:o,flags:a})}readInt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i,pos:o}=Ve(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=o,i}readRadixNumber(e){const t=this.state.curPosition();let n=!1;this.state.pos+=2;const r=this.readInt(e);null==r&&this.raise(b.InvalidDigit,s(t,2),{radix:e});const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,n=!0;else if(109===i)throw this.raise(b.InvalidDecimal,t);if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(n){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,r)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=!1,i=!1,o=!1,a=!1,l=!1;e||null!==this.readInt(10)||this.raise(b.InvalidNumber,this.state.curPosition());const u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(b.ZeroDigitNumericSeparator,s(n,t))}l=u&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||l||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||l||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(b.InvalidOrMissingExponent,n),r=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||u)&&this.raise(b.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===c&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(b.InvalidDecimal,n),++this.state.pos,o=!0),ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());const p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(135,p);if(o)return void this.finishToken(136,p);const d=l?parseInt(p,8):parseFloat(p);this.finishToken(134,d)}readCodePoint(e){const{code:t,pos:n}=We(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=Re(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:r,curLine:o,lineStart:s}=Re("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=o,n&&(this.state.firstInvalidTemplateEscapePos=new i(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(r)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(le(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===n?ae:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const o=this.readCodePoint(!0);null!==o&&(i(o)||this.raise(b.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(o)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}readWord(e){const t=this.readWord1(e),n=M.get(t);void 0!==n?this.finishToken(n,X(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;Y(e)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X(e)})}raise(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e(t instanceof i?t:t.loc.start,n);if(!this.options.errorRecovery)throw r;return this.isLookahead||this.state.errors.push(r),r}raiseOverwrite(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t instanceof i?t:t.loc.start,o=r.index,s=this.state.errors;for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.loc.index===o)return s[t]=e(r,n);if(i.loc.index<o)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(b.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?X(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(b.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,qe(t,n,r))}}}class ze{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ge{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ze)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(b.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:o}=this.current();let s=r.has(e);if(3&t){const n=s&&i.get(e);n?(s=(3&n)==(3&t)||(4&n)!=(4&t),s||i.delete(e)):s||i.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),o.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(b.InvalidPrivateFieldResolution,t,{identifierName:e})}}class Ye{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Xe extends Ye{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class Je{constructor(e){this.parser=void 0,this.stack=[new Ye],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:r}=this;let i=r.length-1,o=r[i];for(;!o.isCertainlyParameterDeclaration();){if(!o.canBeArrowParameterDeclaration())return;o.recordDeclarationError(e,n),o=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(b.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[n,r]=t;this.parser.raise(n,r);let i=e.length-2,o=e[i];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(r.index),o=e[--i]}))}}function Qe(){return new Ye}class Ze{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function et(e,t){return(e?2:0)|(t?1:0)}class tt extends He{addExtra(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;const i=e.extra=e.extra||{};r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)===t){const e=this.input.charCodeAt(n);return!(le(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ae.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Me.lastIndex=this.state.end,Me.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone();const n={node:null};try{const r=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw n.node=e,n}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:o}=e;if(!t)return!!(n||r||o||i);null!=n&&this.raise(b.InvalidCoverInitializedName,n),null!=r&&this.raise(b.DuplicateProto,r),null!=i&&this.raise(b.UnexpectedPrivateField,i),null!=o&&this.unexpected(o)}isLiteralPropertyName(){return H(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType;const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const i=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);const s=this.prodParam;this.prodParam=new Ze;const a=this.classScope;this.classScope=new Ge(this);const l=this.expressionScope;return this.expressionScope=new Je(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=s,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class nt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class rt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new o(n),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const it=rt.prototype;function ot(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s,name:a}=e,l=Object.create(it);return l.type=t,l.start=n,l.end=r,l.loc=i,l.range=o,l.extra=s,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}it.__clone=function(){const e=new rt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){const r=t[n];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class st extends tt{startNode(){const e=this.state.startLoc;return new rt(this,e.index,e)}startNodeAt(e){return new rt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const at=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),lt=v`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:n}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${n}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:n}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${n}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:n}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${n}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:n,explicitType:r}=e;return`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${n}\` needs to be a ${r} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:n}=e;return`Symbol enum members cannot be initialized. Use \`${n},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:n}=e;return`The enum member initializer for \`${n}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:n,suggestion:r}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${n}\`, consider using \`${r}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:n}=e;return`Number enum members need to be initialized, e.g. \`${n} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitialized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:n}=e;return`\`declare export ${t}\` is not supported. Use \`${n}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ut(e){return"type"===e.importKind||"typeof"===e.importKind}const ct={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},pt=/\*?\s*@((?:no)?flow)\b/,dt={__proto__:null,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:"♦"},ft=v`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:n}=e;return`Unexpected token \`${t}\`. Did you mean \`${n}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ht(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function mt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return mt(e.object)+"."+mt(e.property);throw new Error("Node had unexpected type: "+e.type)}class yt extends ge{constructor(){super(...arguments),this.tsNames=new Map}}class gt extends ve{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new yt(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(b.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let i=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const r=e.tsNames.get(t);return(2&r)>0?!(256&n)||!!(512&n)!=(4&r)>0:128&n&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&r)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}const vt=e=>"ParenthesizedExpression"===e.type?vt(e.expression):e;class bt extends st{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=vt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(b.InvalidParenthesizedAssignment,e):this.raise(b.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let n=0,r=e.properties.length,i=r-1;n<r;n++){var o;const r=e.properties[n],s=n===i;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&null!=(o=e.extra)&&o.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(b.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?b.PatternHasAccessor:b.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const r=e.length-1;for(let i=0;i<=r;i++){const o=e[i];if(o){if("SpreadElement"===o.type){o.type="RestElement";const e=o.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(o,n);"RestElement"===o.type&&(i<r?this.raise(b.RestTrailingComma,o):t&&this.raise(b.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){const r=1&n,i=[];let o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:n}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",n),this.classScope.usePrivateName(this.state.value,n),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,n,!1,!1,!0,!1))}parseAssignableListItem(e,t){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,e);const r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var n;if(null!=e||(e=this.state.startLoc),t=null!=(n=t)?n:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,n){return r={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},i=e,Object.hasOwnProperty.call(r,i)&&r[i];var r,i}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:n,binding:r=64,checkClashes:i=!1,strictModeChanged:o=!1,hasParenthesizedAncestor:s=!1}=t;var a;const l=e.type;if(this.isObjectMethod(e))return;const u=this.isOptionalMemberExpression(e);if(u||"MemberExpression"===l)return u&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==n.type&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:n})),void(64!==r&&this.raise(b.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,r,o);const{name:t}=e;return void(i&&(i.has(t)?this.raise(b.ParamDupe,e):i.add(t)))}const c=this.isValidLVal(l,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===n.type,r);if(!0===c)return;if(!1===c){const t=64===r?b.InvalidLhs:b.InvalidLhsBinding;return void this.raise(t,e,{ancestor:n})}const[p,d]=Array.isArray(c)?c:[c,"ParenthesizedExpression"===l],f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:n;for(const t of[].concat(e[p]))t&&this.checkLVal(t,{in:f,binding:r,checkClashes:i,strictModeChanged:o,hasParenthesizedAncestor:d})}checkIdentifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?me(e.name,this.inModule):he(e.name))&&(64===t?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(b.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0)}}function _t(e){if(!e)throw new Error("Assert fail")}const Et=v`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function xt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function Tt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&wt(e.object)}function Pt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!At(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:r}=e;if("-"===n&&At(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!Tt(e)}function At(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function wt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&wt(e.object)}const Ct=v`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ot(e,t){const[n,r]="string"==typeof t?[t,{}]:t,i=Object.keys(r),o=0===i.length;return e.some((e=>{if("string"==typeof e)return o&&e===n;{const[t,o]=e;if(t!==n)return!1;for(const e of i)if(o[e]!==r[e])return!1;return!0}}))}function It(e,t,n){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return r&&Array.isArray(r)&&r.length>1?r[1][n]:null}const Mt=["minimal","fsharp","hack","smart"],Dt=["^^","@@","^","%","#"],kt=["hash","bar"],Nt={estree:e=>class extends e{parse(){const e=x(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(x)),e}parseRegExpLiteral(e){let{pattern:t,flags:n}=e,r=null;try{r=new RegExp(t,n)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=e;return n.type="ExpressionStatement",n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);const o=e.directives.map((e=>this.directiveToStmt(e)));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,o){this.parseMethod(t,n,r,i,o,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,n,r,i,o,s),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===o&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){const e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(){const e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(e,t,n,r,i){const o=super.parseObjectMethod(e,t,n,r,i);return o&&(o.type="Property","method"===o.kind&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,t,n,r){const i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,n){return"Property"===e?"value":super.isValidLVal(e,t,n)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"get"===e.kind||"set"===e.kind?this.raise(b.PatternHasAccessor,e.key):e.method?this.raise(b.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r,i;return"Import"===n.callee.type&&(n.type="ImportExpression",n.source=n.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null),delete n.arguments,delete n.callee),n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){const i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),r.stop){const e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,n){return x(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),x(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),x(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ft.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Ce(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Ce(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=dt[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(le(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(140)?e.name=this.state.value:Y(this.state.type)?e.name=X(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(T.brace),this.next(),e=this.jsxParseExpressionContainer(e,T.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(ft.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ft.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(T.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(T.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(T.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e);let i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 141:n.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(T.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,T.j_expr));break}default:this.unexpected()}ht(r)&&!ht(i)&&null!==i?this.raise(ft.MissingClosingTagFragment,i):!ht(r)&&ht(i)?this.raise(ft.MissingClosingTagElement,i,{openingTagName:mt(r.name)}):ht(r)||ht(i)||mt(i.name)!==mt(r.name)&&this.raise(ft.MissingClosingTagElement,i,{openingTagName:mt(r.name)})}if(ht(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(ft.UnwrappedAdjacentJSXElements,this.state.startLoc);return ht(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==T.j_expr){if(t===T.j_oTag||t===T.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===T.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:n}=this.state;if(56===n&&142===e)t.splice(-2,2,T.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)t.push(T.j_oTag);else if(143===n){const n=t[t.length-1];n===T.j_oTag&&56===e||n===T.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===T.j_expr):(this.setContext(T.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[n]}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return _e}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=pt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(lt.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(lt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(lt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,lt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,i=!1;return n.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(lt.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="ES")})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(lt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:ct[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(lt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){at.has(e)&&this.raise(n?lt.AssignReservedType:lt.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(lt.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:n,allowSpread:r,allowProto:i,allowInexact:o}=e;const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let l,u;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let c=!1;for(n&&this.match(6)?(this.expect(6),l=9,u=!0):(this.expect(5),l=8,u=!1),a.exact=u;!this.match(l);){let e=!1,n=null,s=null;const l=this.startNode();if(i&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),n=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const p=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(p&&this.unexpected(p.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(l,e))):a.indexers.push(this.flowParseObjectTypeIndexer(l,e,p));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),p&&this.unexpected(p.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(l,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&H(this.lookahead().type)&&(t=this.state.value,this.next());const i=this.flowParseObjectTypeProperty(l,e,n,p,t,r,null!=o?o:!u);null===i?(c=!0,s=this.state.lastTokStartLoc):a.properties.push(i)}this.flowObjectTypeSemicolon(),!s||this.match(8)||this.match(9)||this.raise(lt.UnexpectedExplicitInexactInObject,s)}this.expect(l),r&&(a.inexact=c);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,n,r,i,o,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?s||this.raise(lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(lt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(lt.InexactVariance,r),null):(o||this.raise(lt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),r&&this.raise(lt.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let s=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!o&&"constructor"===e.key.name&&e.value.this&&this.raise(lt.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?lt.GetterMayNotHaveThisParam:lt.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(b.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null;const i=this.startNode(),o=this.lookahead(),s=78===this.state.type;return 14===o.type||17===o.type?(s&&!e&&this.raise(lt.ThisParamMustBeFirst,i),t=this.parseIdentifier(s),this.eat(17)&&(n=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,r,i=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=o,r;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if($(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(lt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Y(this.state.type)){const e=X(this.state.type);return this.next(),super.createIdentifier(t,e)}if($(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,n))):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(K(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||$(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if($(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(t);let{consequent:s,failed:a}=this.tryParseConditionalConsequent(),[l,u]=this.getArrowLikeExpressions(s);if(a||u.length>0){const e=[...i];if(u.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<u.length;t++)e.push(u[t].start);({consequent:s,failed:a}=this.tryParseConditionalConsequent()),[l,u]=this.getArrowLikeExpressions(s)}a&&l.length>1&&this.raise(lt.AmbiguousConditionalArrow,r.startLoc),a&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,({consequent:s,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=s,o.alternate=this.forwardNoArrowParamsConversionAt(o,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i])?n:r).push(e[i]);return[n,r]}(r,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(lt.DeclareClassElement,r):t.value&&this.raise(lt.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&ae(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;const i=e[r];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return"TypeCastExpression"===e||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,o){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,o),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(lt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(lt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,o,s){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!o&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,i,o,s);return a&&((l.value||l).typeParameters=a),l}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(lt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(lt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(lt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(lt.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(lt.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(lt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=ut(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,r,i){const o=e.imported;let s=null;"Identifier"===o.type&&("type"===o.name?s="type":"typeof"===o.name&&(s="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===s||K(this.state.type)?(e.imported=o,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=s,e.local=ot(t))}else{if(null!==s&&K(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=s;else{if(t)throw this.raise(b.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=ot(e.imported))}const l=ut(e);return n&&l&&this.raise(lt.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||n||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!r.error)return r.node;const{context:n}=this.state,o=n[n.length-1];o!==T.j_oTag&&o!==T.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var o,s;let n;i=i||this.state.clone();const a=this.tryParse((r=>{var i;n=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(i=o.extra)&&i.parenthesized&&r();const s=this.maybeUnwrapTypeCastExpression(o);return"ArrowFunctionExpression"!==s.type&&r(),s.typeParameters=n,this.resetStartLocationFromNode(s,n),o}),i);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(lt.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),a.node;l=a.node}if(null!=(o=r)&&o.node)return this.state=r.failState,r.node;if(l)return this.state=a.failState,l;if(null!=(s=r)&&s.thrown)throw r.error;if(a.thrown)throw a.error;throw this.raise(lt.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(lt.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!i.error&&!i.aborted)return i.node;const o=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(lt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(lt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:n,memberName:r}=t;this.raise(lt.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:n})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?lt.EnumInvalidMemberInitializerSymbolType:lt.EnumInvalidMemberInitializerPrimaryType:lt.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(lt.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(lt.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 133:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:n}=e;const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let o=!1;for(;!this.match(8);){if(this.eat(21)){o=!0;break}const e=this.startNode(),{id:s,init:a}=this.flowEnumMemberRaw(),l=s.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(lt.EnumInvalidMemberName,s,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),r.has(l)&&this.raise(lt.EnumDuplicateMemberName,s,{memberName:l,enumName:t}),r.add(l);const u={enumName:t,explicitType:n,memberName:l};switch(e.id=s,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"boolean"),e.init=a.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"number"),e.init=a.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"string"),e.init=a.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,u);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,u);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:o}}flowEnumStringMembers(e,t,n){let{enumName:r}=n;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(102))return null;if(!$(this.state.type))throw this.raise(lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:n}=this.state;return this.next(),"boolean"!==n&&"number"!==n&&"string"!==n&&"symbol"!==n&&this.raise(lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:n}),n}flowEnumBody(e,t){const n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:o,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=s,i){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=o.booleanMembers.length,s=o.numberMembers.length,a=o.stringMembers.length,l=o.defaultedMembers.length;if(i||s||a||l){if(i||s){if(!s&&!a&&i>=l){for(const e of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=l){for(const e of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Et.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter})}getScopeHandler(){return gt}tsIsIdentifier(){return $(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!$(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(-1!==e.indexOf(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers(e,t){let{allowedModifiers:n,disallowedModifiers:r,stopOnStartOfClassStaticBlock:i,errorTemplate:o=Et.InvalidModifierOnTypeMember}=e;const s=(e,n,r,i)=>{n===r&&t[i]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,i]})},a=(e,n,r,i)=>{(t[r]&&n===i||t[i]&&n===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,i]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(n.concat(null!=r?r:[]),i);if(!l)break;xt(l)?t.accessibility?this.raise(Et.DuplicateAccessibilityModifier,e,{modifier:l}):(s(e,l,l,"override"),s(e,l,l,"static"),s(e,l,l,"readonly"),t.accessibility=l):St(l)?(t[l]&&this.raise(Et.DuplicateModifier,e,{modifier:l}),t[l]=!0,s(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(Et.DuplicateModifier,e,{modifier:l}):(s(e,l,"static","readonly"),s(e,l,"static","override"),s(e,l,"override","readonly"),s(e,l,"abstract","override"),a(e,l,"declare","override"),a(e,l,"static","abstract")),t[l]=!0),null!=r&&r.includes(l)&&this.raise(o,e,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){const i=[];let o=-1;for(;!this.tsIsListTerminator(e);){o=-1;const r=t();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}o=this.state.lastTokStartLoc.index}return r&&(r.value=o),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));const o=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),o}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Et.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(Et.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!$(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const n=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const r=n;r.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const i="parameters",o="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=r[i][0];this.isThisParam(e)&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Et.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Et.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(Et.SetAccesorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const e=n;t&&(e.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let n,r,i,o;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===s){i=!0;const e=this.state.startLoc,t=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),o=this.tsParseType()):(n=!1,o=s,this.expect(17))}else o=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(o),e.optional=i,this.raise(Et.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(o);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,n))),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if($(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Et.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,n){const r=this.startNode(),i=this.eat(n),o=[];do{o.push(t())}while(this.eat(n));return 1!==o.length||i?(r.types=o,this.finishNode(r,e)):o[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if($(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const o=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=r,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!$(this.state.type)&&!this.match(78)||(e&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){_t(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Et.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return n.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),$(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Et.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(Et.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.state.type;return this.isContextual(100)&&(n=74,t="let"),this.tsInAmbientContext((()=>{switch(n){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if($(n))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||$(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if($(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&$(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&$(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==T.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,o=r.override,s=r.readonly;4&e||!(i||s||o)||this.raise(Et.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(i||s||o){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),s&&(e.readonly=s),o&&(e.override=o),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Et.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Et.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Et.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let o;const s=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}const s=this.tsParseTypeArgumentsInExpression();if(!s)return;if(i&&!this.match(10))return void(o=this.state.curPosition());if(Q(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=s,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=s,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&z(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=s,this.finishNode(l,"TSInstantiationExpression")}));if(o&&this.unexpected(o,10),s)return"TSInstantiationExpression"===s.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Et.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),s}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(J(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Et.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if($(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Et.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(const{id:e,init:n}of i.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,n):Pt(n,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>xt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(Et.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Et.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Et.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Et.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Et.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Et.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Et.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);const r=this.tryParse((()=>super.parseConditional(e,t)));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=$(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(Et.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Et.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Et.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Et.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Et.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,o){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(Et.ConstructorHasTypeParameters,s);const{declare:a=!1,kind:l}=t;!a||"get"!==l&&"set"!==l||this.raise(Et.DeclareAccessor,t,{kind:l}),s&&(t.typeParameters=s),super.pushClassMethod(e,t,n,r,i,o)}pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,r,i,o,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,i,o,s)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,o,s;let a,l,u,c;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error)return l.node;const{context:n}=this.state,r=n[n.length-1];r!==T.j_oTag&&r!==T.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((n=>{var r,i;c=this.tsParseTypeParameters(this.tsParseConstModifier);const o=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==o.type||null!=(r=o.extra)&&r.parenthesized)&&n(),0!==(null==(i=c)?void 0:i.params.length)&&this.resetStartLocationFromNode(o,c),o.typeParameters=c,o}),a);if(!p.error&&!p.aborted)return c&&this.reportReservedArrowTypeParam(c),p.node;if(!l&&(_t(!this.hasPlugin("jsx")),u=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!u.error))return u.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,c&&this.reportReservedArrowTypeParam(c),p.node;if(null!=(i=u)&&i.node)return this.state=u.failState,u.node;throw(null==(o=l)?void 0:o.error)||p.error||(null==(s=u)?void 0:s.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(Et.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Et.UnexpectedTypeCastInParameter,e):this.raise(Et.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){return r={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==n||!t)&&["expression",!0],TSSatisfiesExpression:(64!==n||!t)&&["expression",!0],TSTypeAssertion:(64!==n||!t)&&["expression",!0]},i=e,Object.hasOwnProperty.call(r,i)&&r[i]||super.isValidLVal(e,t,n);var r,i}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TSTypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Et.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,o,s){const a=super.parseMethod(e,t,n,r,i,o,s);if(a.abstract&&(this.hasPlugin("estree")?a.value.body:a.body)){const{key:e}=a;this.raise(Et.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i=t?"local":"exported";let o,s=e[r],a=!1,l=!0;const u=s.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();K(this.state.type)?(a=!0,s=e,o=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(o=n,l=!1)}else K(this.state.type)?(l=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,s=e)}else K(this.state.type)&&(a=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());a&&n&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,u),e[r]=s,e[i]=o,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=ot(e[r])),t&&this.checkIdentifier(e[i],a?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),$(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const n=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,n?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n){return"Placeholder"===e||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!super.chStartsBindingIdentifier(e,t)||144===this.lookahead().type}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ct.ClassNameIsRequired,this.state.startLoc)}e.id=o}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(X(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ct.UnexpectedSpace,this.state.lastTokEndLoc)}}},jt=Object.keys(Nt),Lt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Rt extends bt{checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(b.RecordNoProto,i);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(b.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new nt,r=!0);const{type:i}=this.state;(10===i||$(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;const r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,{in:this.finishNode(t,"AssignmentExpression")}),t}var s;return r&&this.checkExpressionErrors(e,!0),o}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=J(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=J(r);if(i>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;const s=41===r||42===r,a=40===r;if(a&&(i=J(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(r,i);const l=this.finishNode(o,s||a?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(a&&(41===u||42===u)||s&&40===u)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(b.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!d.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(b.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),o=this.startNode();if(s=this.state.type,U[s]){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=o.argument;"Identifier"===e.type?this.raise(b.StrictDelete,o):this.hasPropertyAsPrivateName(e)&&this.raise(b.DeletePrivateField,o)}if(!i)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var s;const a=this.parseUpdate(o,i,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?z(e):z(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(b.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const r=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,r);if(Q(i))return this.parseTaggedTemplateExpression(e,t,r);let o=!1;if(18===i){if(n&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=o=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,o);{const n=this.eat(0);return n||o||this.eat(16)?this.parseMember(e,t,r,n,o):(r.stop=!0,e)}}parseMember(e,t,n,r,i){const o=this.startNodeAt(t);return o.object=e,o.computed=r,r?(o.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(b.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),n.optionalChainMember?(o.optional=i,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArrowParameters;let o=null;this.state.maybeInArrowParameters=!0,this.next();const s=this.startNodeAt(t);s.callee=e;const{maybeAsyncArrow:a,optionalChainMember:l}=n;a&&(this.expressionScope.enter(new Xe(2)),o=new nt),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,o);let u=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u)):(a&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=i,u}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(b.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(b.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n,r,i){const o=[];let s=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(b.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}o.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=a,o}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Se(e,t.innerComments),t.callee.trailingComments&&Se(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(b.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(b.UnsupportedBind,e)}case 138:return this.raise(b.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());ae(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if($(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if($(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=s(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){const r="smart"===n?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===n?b.PrimaryTopicNotAllowed:b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:X(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(n)}]);case"smart":return 27===n;default:throw this.raise(b.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(et(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(b.UnexpectedSuper,e):this.raise(b.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(b.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(b.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(b.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new Xe(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const o=this.state.startLoc,s=[],a=new nt;let l,u,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,s.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else s.push(this.parseMaybeAssignAllowIn(a,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(s)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,s,!1),d):(this.expressionScope.exit(),s.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(s,!0),s.length>1?(n=this.startNodeAt(o),n.expressions=s,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=s[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(b.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(b.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:r,value:i}=this.state,o=t+1,a=this.startNodeAt(s(n,1));null===i&&(e||this.raise(b.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),u=l?-1:-2,c=r+u;a.value={raw:this.input.slice(o,c).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,u)},a.tail=l,this.next();const p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,s(this.state.lastTokEndLoc,u)),p}parseTemplate(e){const t=this.startNode();t.expressions=[];let n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(n=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=Object.create(null);let s=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,o,r)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(b.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let r,i=!1,o=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let s=this.eat(55);this.parsePropertyNamePrefixOperator(n);const a=this.state.containsEsc,l=this.parsePropertyName(n,e);if(!s&&!a&&this.maybeAsyncOrAccessorProp(n)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(o=!0,this.resetPreviousNodeTrailingComments(l),n.kind=e,this.match(55)&&(s=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,s,i,!1,o,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,ot(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,ot(e.key))}else e.value=ot(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,n,r,i,o,s){const a=this.parseObjectMethod(e,n,r,i,o)||this.parseObjectProperty(e,t,i,s);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:r}=this.state;let i;if(K(n))i=this.parseIdentifier(!0);else switch(n){case 134:i=this.parseNumericLiteral(r);break;case 133:i=this.parseStringLiteral(r);break;case 135:i=this.parseBigIntLiteral(r);break;case 136:i=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(b.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,138!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,n),e.generator=t,this.scope.enter(18|(s?64:0)|(i?32:0)),this.prodParam.enter(et(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!n,r,o),this.state.inFSharpPipelineDirectBody=i,this.finishNode(o,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=et(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const o=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t&&!this.match(5);if(this.expressionScope.enter(Qe()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const o=!this.isSimpleParamList(e.params);i&&o&&this.raise(b.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const s=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||o),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=!t&&new Set,o={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:o,binding:5,checkClashes:i,strictModeChanged:r})}parseExprList(e,t,n,r){const i=[];let o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){const e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),r=this.finishNode(e,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:n,type:r}=this.state;K(r)?t=this.state.value:this.unexpected();const i=r<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(n&&function(e){return ue.has(e)}(e))this.raise(b.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?me:fe:de)(e,this.inModule))this.raise(b.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(b.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(b.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(b.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(b.ArgumentsInClass,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||Q(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(b.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(b.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const Bt={kind:1},Ft={kind:2},Ut=/[\uD800-\uDFFF]/u,Vt=/in(?:stanceof)?/y;class Wt extends Rt{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],{type:i}=r;if("number"==typeof i){if(138===i){const{loc:t,start:i,value:o,end:a}=r,l=i+1,u=s(t.start,1);e.splice(n,1,new Ke({type:Z(27),value:"#",start:i,end:l,startLoc:t.start,endLoc:u}),new Ke({type:Z(132),value:o,start:l,end:a,startLoc:u,endLoc:t.end})),n++;continue}if(Q(i)){const{loc:o,start:a,value:l,end:u}=r,c=a+1,p=s(o.start,1);let d,f,h,m,y;d=96===t.charCodeAt(a)?new Ke({type:Z(22),value:"`",start:a,end:c,startLoc:o.start,endLoc:p}):new Ke({type:Z(8),value:"}",start:a,end:c,startLoc:o.start,endLoc:p}),24===i?(h=u-1,m=s(o.end,-1),f=null===l?null:l.slice(1,-1),y=new Ke({type:Z(22),value:"`",start:h,end:u,startLoc:m,endLoc:o.end})):(h=u-2,m=s(o.end,-2),f=null===l?null:l.slice(1,-2),y=new Ke({type:Z(23),value:"${",start:h,end:u,startLoc:m,endLoc:o.end})),e.splice(n,1,d,new Ke({type:Z(20),value:f,start:c,end:h,startLoc:p,endLoc:m}),y),n+=2;continue}r.type=Z(i)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:139,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,n),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,t,{localName:e});return t=139===n?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",s(this.state.startLoc,-1)),t}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const n=t.value,r=n.value,i=this.input.slice(n.start,n.end),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),this.addExtra(n,"expressionValue",r),n.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(ae(e)){if(Vt.lastIndex=t,Vt.test(this.input)){const e=this.codePointAtPos(Vt.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&($(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,r=this.startNode(),i=!!(2&e),o=!!(4&e),s=1&e;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return o||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&o);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(b.UnexpectedLexicalDeclaration,r):this.raise(b.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||s||this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?(e=this.parseImport(r),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&o)}const a=this.state.value,l=this.parseExpression();return $(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,a,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(b.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(b.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const r=this.state.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Bt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Bt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),o=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||o){const n=this.startNode();let o;r?(o="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):o=this.state.value,this.next(),this.parseVar(n,!0,o);const s=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&i&&this.raise(b.ForInUsing,s),(a||this.isContextual(102))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}}const r=this.isContextual(95),i=new nt,o=this.parseExpression(!0,i),s=this.isContextual(102);if(s&&(n&&this.raise(b.ForOfLet,o),null===t&&r&&"Identifier"===o.type&&this.raise(b.ForOfAsync,o)),s||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(o,!0);const n=s?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:n}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(b.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Ft),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(b.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Bt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(b.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,r){for(const e of this.state.labels)e.name===t&&this.raise(b.LabelRedeclaration,n,{labelName:t});const i=(o=this.state.type)>=90&&o<=92?1:this.match(71)?2:null;var o;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.state.start,n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){const o=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(o,t?s:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){const o=this.state.strict;let s=!1,a=!1;for(;!this.match(r);){const r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),s||"use strict"!==e.value.value||(s=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(r)}null==i||i.call(this,s),o||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const r=this.match(58);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(b.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n||this.match(58)||this.isContextual(102)||this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=2&t,r=!!(1&t),i=r&&!(4&t),o=!!(8&t);this.initFunction(e,o),this.match(55)&&(n&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));const s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(o,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||$(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new Ye(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(b.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){const i=t,o=t,s=t,a=t,l=t,u=i,c=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";const t=this.match(138);return this.parseClassElementName(u),t?void this.pushClassPrivateMethod(e,o,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const p=$(this.state.type)&&!this.state.containsEsc,d=this.match(138),f=this.parseClassElementName(t),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(u.kind="method",d)return void this.pushClassPrivateMethod(e,o,!1,!1);const r=this.isNonstaticConstructor(i);let s=!1;r&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,f),r&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,f),n.hadConstructor=!0,s=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,s)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s);else if(p&&"async"===f.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);c.optional&&this.unexpected(h),u.kind="method";const n=this.match(138);this.parseClassElementName(u),this.parsePostMemberNameModifiers(c),n?this.pushClassPrivateMethod(e,o,t,!0):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==f.name&&"set"!==f.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===f.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);const t=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(f),u.kind=f.name;const t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==n||this.raise(b.StaticPrototype,this.state.startLoc),138===t){"constructor"===n&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var n;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(b.DecoratorStaticBlock,t)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(b.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){if(!n&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(b.ConstructorClassField,e)}const r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,o){e.body.push(this.parseMethod(t,n,r,i,o,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const o="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,o)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Qe()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if($(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(b.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),o=i&&this.eatExportStar(e),s=o&&this.maybeParseExportNamespaceSpecifier(e),a=i&&(!s||this.eat(12)),l=r||o;if(o&&!s){if(r&&this.unexpected(),t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}const u=this.maybeParseExportNamedSpecifiers(e);let c;if(r&&i&&!o&&!u&&this.unexpected(null,5),s&&a&&this.unexpected(null,98),l||u){if(c=!1,t)throw this.raise(b.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else c=this.maybeParseExportDeclaration(e);if(l||u||c){var p;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(p=n.declaration)?void 0:p.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(b.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if($(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const{type:e}=this.lookahead();if($(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||$(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var o;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(o=t.extra)&&o.parenthesized||this.raise(b.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(b.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(const t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(b.DuplicateDefaultExport,e):this.raise(b.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(133),o=this.startNode();o.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(o,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s}=e;if("Placeholder"===t)return function(e){return ot(e)}(e);const a=Object.create(it);return a.type=t,a.start=n,a.end=r,a.loc=i,a.range=o,void 0!==e.raw?a.raw=e.raw:a.extra=s,a.value=e.value,a}(e.local):e.exported||(e.exported=ot(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(Ut);return t&&this.raise(b.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:n}=e;return"json"===n.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(b.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(b.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.parseIdentifier(!0),{type:r}=this.state;return(K(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return $(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:n}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(b.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!K(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),r=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();const o=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=ot(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class qt extends Wt{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Lt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const r of Object.keys(Lt)){var n;t[r]=null!=(n=e[r])?n:Lt[r]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const n of e){const[e,r]=Array.isArray(n)?n:[n,{}];t.has(e)||t.set(e,r||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return ve}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const $t=function(e){const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}(q);function Kt(e,t){let n=qt;return null!=e&&e.plugins&&(function(e){if(Ot(e,"decorators")){if(Ot(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=It(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=It(e,"decorators","allowCallParenthesized");if(null!=n&&"boolean"!=typeof n)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ot(e,"flow")&&Ot(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ot(e,"placeholders")&&Ot(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ot(e,"pipelineOperator")){const t=It(e,"pipelineOperator","proposal");if(!Mt.includes(t)){const e=Mt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const n=Ot(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ot(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ot(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=It(e,"pipelineOperator","topicToken");if(!Dt.includes(t)){const e=Dt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ot(e,"moduleAttributes")){if(Ot(e,"importAssertions")||Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==It(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ot(e,"importAssertions")&&Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ot(e,"recordAndTuple")&&null!=It(e,"recordAndTuple","syntaxType")&&!kt.includes(It(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+kt.map((e=>`'${e}'`)).join(", "));if(Ot(e,"asyncDoExpressions")&&!Ot(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ot(e,"optionalChainingAssign")&&"2023-07"!==It(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),n=function(e){const t=jt.filter((t=>Ot(e,t))),n=t.join("/");let r=Ht[n];if(!r){r=qt;for(const e of t)r=Nt[e](r);Ht[n]=r}return r}(e.plugins)),new n(e,t)}const Ht={};t.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Kt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Kt(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(n){try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){const n=Kt(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=$t},(e,t,n)=>{var r;n(12);var i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new s},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,p=n(230)(),d=n(231)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&f&&(n=f(i.prototype))}return y[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(71),E=n(233),x=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),T=_.call(Function.call,String.prototype.replace),P=_.call(Function.call,String.prototype.slice),A=_.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(e,t){var n,r=e;if(E(b,r)&&(r="%"+(n=b[r])[0]+"%"),E(y,r)){var o=y[r];if(o===h&&(o=v(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,w,(function(e,t,n,i){r[r.length]=n?T(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),a=o.name,u=o.value,c=!1,p=o.alias;p&&(r=p[0],S(n,x([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=P(h,0,1),g=P(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),E(y,a="%"+(r+="."+h)+"%"))u=y[a];else if(null!=u){if(!(h in u)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else f=E(u,h),u=u[h];f&&!c&&(y[a]=u)}}return u}},(e,t,n)=>{const r=n(34),i=n(47),o=n(3),s=n(128),a=n(30),l=n(253),u=n(254),c=n(255),p=n(256),d=n(257),f=n(258),h=n(259),m=n(260),y=n(7),g=n(261),v=n(262),b=n(76),_=n(263),E=n(264),x=n(49),S=n(77),T=n(129),P=n(130),A=n(78),w=n(79),C=n(131),O=n(265),I=n(50),M=n(8),D=n(51),k=n(268),N=n(269),j=n(270),L=n(271),R=n(272),B=n(80),F=n(273),U=n(274),V=n(275),W=n(276),q=n(277);e.exports={parse:a,valid:l,clean:u,inc:c,diff:p,major:d,minor:f,patch:h,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:_,rsort:E,gt:x,lt:S,eq:T,neq:P,gte:A,lte:w,cmp:C,coerce:O,Comparator:I,Range:M,satisfies:D,toComparators:k,maxSatisfying:N,minSatisfying:j,minVersion:L,validRange:R,outside:B,gtr:F,ltr:U,intersects:V,simplifyRange:W,subset:q,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,n)=>{let r,i,o,s,{isClean:a,my:l}=n(145),u=n(52),c=n(56),p=n(53);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{append(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e[t](...r.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)))}:"every"===t||"some"===t?n=>e[t]((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n(e.toProxy(),...r)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=d(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new u(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}h.registerParse=e=>{r=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,u.prototype):"comment"===e.type?Object.setPrototypeOf(e,c.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},(e,t,n)=>{var r=n(17);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,s,a=n(227).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,p=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,f=n(241),h=n(32).inspect,m=n(32).types,y=m.isPromise,g=m.isRegExp,v=n(242)(),b=n(74)(),_=n(38)("RegExp.prototype.test");function E(){var e=n(245);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,S=e.exports=w,T={};function P(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new f({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[w,t.length].concat(t))}S.fail=function e(t,n,i,o,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(i=t,t=void 0):(!1===x&&(x=!0,(r.emitWarning?r.emitWarning:void 0)("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(o="!=")),i instanceof Error)throw i;var u={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==i&&(u.message=i);var c=new f(u);throw a&&(c.message=a,c.generatedMessage=!0),c},S.AssertionError=f,S.ok=w,S.equal=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t!=n&&P({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},S.notEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t==n&&P({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),o(t,n)||P({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),o(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),s(t,n)||P({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),s(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");b(t,n)||P({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");b(t,n)&&P({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&_(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function O(e,t,n,r){if("function"!=typeof t){if(g(t))return _(t,e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var a=new f({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw a.operator=r.name,a}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)throw new c("error",t,"may not be an empty object");return void 0===o&&E(),l.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&_(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new C(e,i),l=new C(t,i,e),u=new f({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}P({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,l,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return T}function M(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!M(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!M(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return T})).catch((function(e){return e}))}))}function k(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new u("error",["Object","Error","Function","RegExp"],n);if(t===T){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var s="rejects"===e.name?"rejection":"exception";P({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:e})}if(n&&!O(t,n,r,e))throw t}function N(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||O(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";P({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function j(e,t,n,r,o){if(!g(t))throw new u("regexp","RegExp",t);var s="match"===o;if("string"!=typeof e||_(t,e)!==s){if(n instanceof Error)throw n;var a=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(h(e),")"):(s?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(h(t),". Input:\n\n").concat(h(e),"\n"));var l=new f({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[L,t.length].concat(t))}S.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];k.apply(void 0,[e,I(t)].concat(r))},S.rejects=function e(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 D(t).then((function(t){return k.apply(void 0,[e,t].concat(r))}))},S.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];N.apply(void 0,[e,I(t)].concat(r))},S.doesNotReject=function e(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 D(t).then((function(t){return N.apply(void 0,[e,t].concat(r))}))},S.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=h(t);var r=new f({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=r.stack.split("\n"),l=0;l<s.length;l++){var u=a.indexOf(s[l]);if(-1!==u){a=a.slice(0,u);break}}r.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw r}},S.match=function e(t,n,r){j(t,n,r,e,"match")},S.doesNotMatch=function e(t,n,r){j(t,n,r,e,"doesNotMatch")},S.strict=v(L,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],o=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],s=t.BOOLEAN_BINARY_OPERATORS=[...o,...r],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...s,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...n.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),u=t.NUMBER_UNARY_OPERATORS=["+","-","~"],c=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...u,...c],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],new Map)};var r=n(9),i=n(2);const o=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function a(e,t,n,r){return Array.isArray(e)?e.map((e=>s(e,t,n,r))):s(e,t,n,r)}function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;if(!e)return e;const{type:l}=e,c={type:e.type};if((0,i.isIdentifier)(e))c.name=e.name,o(e,"optional")&&"boolean"==typeof e.optional&&(c.optional=e.optional),o(e,"typeAnnotation")&&(c.typeAnnotation=t?a(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!o(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))o(e,p)&&(c[p]=t?(0,i.isFile)(e)&&"comments"===p?u(e.comments,t,n,s):a(e[p],!0,n,s):e[p])}return o(e,"loc")&&(c.loc=n?null:e.loc),o(e,"leadingComments")&&(c.leadingComments=u(e.leadingComments,t,n,s)),o(e,"innerComments")&&(c.innerComments=u(e.innerComments,t,n,s)),o(e,"trailingComments")&&(c.trailingComments=u(e.trailingComments,t,n,s)),o(e,"extra")&&(c.extra=Object.assign({},e.extra)),c}function u(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:i,value:o,loc:s}=e,a={type:i,value:o,loc:s};return n&&(a.loc=null),r.set(e,a),a})):e}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=n(162),i=n(61),o=n(14),s=n(183),a=n(0),l=a,u=n(35),c=n(101),p=n(423),d=n(424),f=n(427),h=n(430),m=n(431),y=n(436),g=n(437),v=n(438),b=n(440),_=n(442),E=n(443),x=n(163);const{validate:S}=a,T=i("babel"),P=t.REMOVED=1,A=t.SHOULD_STOP=2,w=t.SHOULD_SKIP=4;class C{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}static get(e){let{hub:t,parentPath:n,parent:r,container:i,listKey:o,key:s}=e;if(!t&&n&&(t=n.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[s],l=u.getOrCreateCachedPaths(t,r);let c=l.get(a);return c||(c=new C(t,r),a&&l.set(a,c)),c.setup(n,i,o,s),c}getScope(e){return this.isScope()?new s.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,o.default)(this.node,e,this.scope,t,this)}set(e,t){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){T.enabled&&T(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,c.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&w)}set shouldSkip(e){e?this._traverseFlags|=w:this._traverseFlags&=~w}get shouldStop(){return!!(this._traverseFlags&A)}set shouldStop(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}get removed(){return!!(this._traverseFlags&P)}set removed(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}}Object.assign(C.prototype,p,d,f,h,m,y,g,v,b,_,E),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;for(const e of l.TYPES){const t=`is${e}`,n=l[t];C.prototype[t]=function(e){return n(this.node,e)},C.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(C.prototype,x);for(const e of Object.keys(r))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e));t.default=C},(e,t,n)=>{var r=n(19),i=n(63),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,n)=>{const r=n(3);e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},(e,t,n)=>{n(12);const r=n(417),i=n(418),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.a=l,t.b=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return c(e),a(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(X(r))return s;e[n+s]=r}return s}function E(e,t,n,r){return G(H(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return G(z(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=w));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.b;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<a;++e)if(u[e]!==c[e]){o=u[e],s=c[e];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const w=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=J[e[r]];return i}function M(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function j(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const F={};function U(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},(e,t,n)=>{var r=n(17),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])y(a)||!E(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation,i=!0}return e.apply(this,arguments)}};var s={},a=/^$/;function l(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),p(r,e,r.depth)}function u(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function c(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=p(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return d(n)}var u,c="",E=!1,P=["{","}"];return h(n)&&(E=!0,P=["[","]"]),T(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(c=" "+RegExp.prototype.toString.call(n)),x(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+d(n)),0!==s.length||E&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=E?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return f(e,n,r,a,t,E)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,P)):P[0]+c+P[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===P(e)}function E(e){return"object"==typeof e&&null!==e}function x(e){return E(e)&&"[object Date]"===P(e)}function S(e){return E(e)&&("[object Error]"===P(e)||e instanceof Error)}function T(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(a.test(e)?(r.pid,s[e]=function(){t.format.apply(t,arguments)}):s[e]=function(){}),s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=x,t.types.isDate=x,t.isError=S,t.types.isNativeError=S,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(240),t.log=function(){},t.inherits=n(158),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var w="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(w&&e[w]){var t;if("function"!=typeof(t=e[w]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),w&&Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=w,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(s.bind(null,null,e))}),(function(e){r.nextTick(C.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},(e,t)=>{function n(e){const{context:t,node:n}=e;if(n.computed&&t.maybeQueue(e.get("key")),n.decorators)for(const n of e.get("decorators"))t.maybeQueue(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=n,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var r={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&n(e))},Property(e){e.isObjectProperty()||(e.skip(),n(e))}};t.default=r},(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(47),s=n(48),a=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.t={};let p=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;s(e,i,t),c[e]=i,u[i]=t,a[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),h("FULL",`^${u[c.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),h("LOOSE",`^${u[c.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),h("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",u[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),o()},t.clearPath=i,t.clearScope=o,t.getCachedPaths=function(e,t){var r;return null==(r=n.get(s))?void 0:r.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=n.get(s);r||n.set(s,r=new WeakMap);let i=r.get(t);return i||r.set(t,i=new Map),i},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function o(){t.scope=r=new WeakMap}const s=Object.freeze({})},(e,t,n)=>{var r=n(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=c,t.default=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!l){l=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";r.emitWarning?r.emitWarning(e,"DeprecationWarning"):new Error(e).name="DeprecationWarning"}return c(e,{start:{column:n=Math.max(n,0),line:t}},i)};var i=n(428),o=function(e){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s(!0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let a,l=!1;const u=/\r\n|[\n\r\u2028\u2029]/;function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(n.highlightCode||n.forceColor)&&(0,i.shouldHighlight)(n),s=n.forceColor?(null!=a||(a=new o.default.constructor({enabled:!0,level:1})),a):o.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),c=(e,t)=>r?e(t):t,p=e.split(u),{start:d,end:f,markerLines:h}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,l=r.column,u=i.line,c=i.column;let p=Math.max(a-(o+1),0),d=Math.min(t.length,u+s);-1===a&&(p=0),-1===u&&(d=t.length);const f=u-a,h={};if(f)for(let e=0;e<=f;e++){const n=e+a;if(l)if(0===e){const e=t[n-1].length;h[n]=[l,e-l+1]}else if(e===f)h[n]=[0,c];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=l===c?!l||[l,0]:[l,c-l];return{start:p,end:d,markerLines:h}}(t,p,n),m=t.start&&"number"==typeof t.start.column,y=String(f).length;let g=(r?(0,i.default)(e,n):e).split(u,f).slice(d,f).map(((e,t)=>{const r=d+1+t,i=` ${` ${r}`.slice(-y)} |`,o=h[r],s=!h[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),a=o[1]||1;t=["\n ",c(l.gutter,i.replace(/\d/g," "))," ",r,c(l.marker,"^").repeat(a)].join(""),s&&n.message&&(t+=" "+c(l.message,n.message))}return[c(l.marker,">"),c(l.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${c(l.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!m&&(g=`${" ".repeat(y+1)}${n.message}\n${g}`),r?s.reset(g):g}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(432),i=n(433);const o=(0,i.default)(r.smart);t.smart=o;const s=(0,i.default)(r.statement);t.statement=s;const a=(0,i.default)(r.statements);t.statements=a;const l=(0,i.default)(r.expression);t.expression=l;const u=(0,i.default)(r.program);t.program=u;var c=Object.assign(o.bind(void 0),{smart:o,statement:s,statements:a,expression:l,program:u,ast:o.ast});t.default=c},(e,t,n)=>{var r=n(22),i=n(41),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return i?Object.defineProperty((function(){return u(),e(...arguments)}),"name",{value:s}):e},t.endHiddenCallStack=function(e){return i?Object.defineProperty((function(){return e(...arguments)}),"name",{value:o}):e},t.expectedError=function(e){if(i)return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!i)return;let n=l.get(e);return n||l.set(e,n=[]),n.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const r=Function.call.bind(Error.prototype.toString),i=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),o="startHiding - secret - don't use this - v1",s="stopHiding - secret - don't use this - v1",a=new WeakSet,l=new WeakMap;function u(){u=()=>{};const{prepareStackTrace:e=c}=Error;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(t,n){let r=[],i=a.has(t)?"hiding":"unknown";for(let e=0;e<n.length;e++){const a=n[e].getFunctionName();if(a===o)i="hiding";else if(a===s){if("hiding"===i)i="showing",l.has(t)&&r.unshift(...l.get(t));else if("unknown"===i){r=n;break}}else"hiding"!==i&&r.push(n[e])}return e(t,r)}}function c(e,t){return 0===t.length?r(e):`${r(e)}\n at ${t.join("\n at ")}`}},(e,t,n)=>{let r,i,o=n(24);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},(e,t,n)=>{var r=n(71),i=n(22),o=n(234),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,a),c=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(r,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(r,a,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,o.default)(t.expectedNode,e))};var r=n(96),i=n(98),o=n(168),s=n(9)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e)};var r=n(59)},(e,t,n)=>{var r=n(5),i=n(15),o=n(102),s=n(204),a=n(11),l=r.RegExp,u=l.prototype;i&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(o.hasIndices="d"),o)i(s,o[s]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&o(u,"flags",{configurable:!0,get:s})},(e,t,n)=>{var r=n(5),i=n(116),o=n(29),s=n(67),a=n(113),l=n(112),u=r.Symbol,c=i("wks"),p=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:p("Symbol."+e)),c[e]}},(e,t,n)=>{var r=n(123),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(121),l=n(72)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?a(e,t,n,!0):a(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)u(e,o[a],t[o[a]],n[o[a]])};c.supportsDescriptors=!!l,e.exports=c},e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},(e,t,n)=>{var r=n(17);const i=("object"==typeof r&&r.env,()=>{});e.exports=i},(e,t,n)=>{const r=n(7);e.exports=(e,t,n)=>r(e,t,n)>0},(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(75),{safeRe:s,t:a}=n(34),l=n(131),u=n(48),c=n(3),p=n(8)},(e,t,n)=>{const r=n(8);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},(e,t,n)=>{let{isClean:r,my:i}=n(145),o=n(87),s=n(146),a=n(54);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new s).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){let r=this,i=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t)e===this?i=!0:i?(this.parent.insertAfter(r,e),r=e):this.parent.insertBefore(r,e);i||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=u,u.default=u},(e,t,n)=>{let r=n(146);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},(e,t,n)=>{let{SourceMapConsumer:r,SourceMapGenerator:i}=n(149),{fileURLToPath:o,pathToFileURL:s}=n(318),{isAbsolute:a,resolve:l}=n(150),{nanoid:u}=n(319),c=n(317),p=n(87),d=n(151),f=Symbol("fromOffsetCache"),h=Boolean(r&&i),m=Boolean(l&&a);class y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=l(t.from)),m&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);i=e.line,o=e.col}else i=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,i,o);return r=l?new p(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):new p(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:o,line:i},this.css,this.file,a.plugin),r.input={column:n,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[f]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,l,u=this.map.consumer(),c=u.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof n&&(i=u.originalPositionFor({column:r,line:n})),l=a(c.source)?s(c.source):new URL(c.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={column:c.column,endColumn:i&&i.column,endLine:i&&i.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(l)}let d=u.sourceContentFor(c.source);return d&&(p.source=d),p}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=y,y.default=y,c&&c.registerInput&&c.registerInput(y)},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.explode=d,t.isExplodedVisitor=p,t.merge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const r={};for(let i=0;i<e.length;i++){const o=d(e[i]),s=t[i];let a=o;(s||n)&&(a=m(a,s,n)),b(r,a);for(const e of Object.keys(o)){if(v(e))continue;let t=o[e];(s||n)&&(t=m(t,s,n)),b(r[e]||(r[e]={}),t)}}return r},t.verify=f;var r=n(162),i=n(163),o=n(0);const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:l,TYPES:u,__internal__deprecationWarning:c}=o;function p(e){return null==e?void 0:e._exploded}function d(e){if(p(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(v(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}f(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(v(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),y(e);for(const t of Object.keys(e)){if(v(t))continue;if(!(t in r))continue;const n=e[t];for(const e of Object.keys(n))n[e]=g(t,n[e]);delete e[t];const i=r[t];if(null!==i)for(const t of i)e[t]?b(e[t],n):e[t]=n;else b(e,n)}for(const t of Object.keys(e)){if(v(t))continue;let n=l[t];if(t in s){const e=s[t];c(t,e,"Visitor "),n=[e]}else if(t in a){const e=a[t];c(t,e,"Visitor "),n=l[e]}if(!n)continue;const r=e[t];delete e[t];for(const t of n){const n=e[t];n?b(n,r):e[t]=Object.assign({},r)}}for(const t of Object.keys(e))v(t)||y(e[t]);return e}function f(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||h(t,e[t]),v(t))continue;if(u.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);h(`${t}.${e}`,n[e])}}e._verified=!0}}function h(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function m(e,t,n){const r={};for(const i of["enter","exit"]){let o=e[i];Array.isArray(o)&&(o=o.map((function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(null==t?void 0:t.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[i]=o)}return r}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function g(e,t){const n=i[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}function v(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function b(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(n.has(e))return;n.add(e);const{internal:r,trace:i}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const r=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map((e=>` at ${e}`)).join("\n")}}()};const n=new Set},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(353),i=n(354)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(2);function i(e,t,n,o){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(o&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)))continue;const l=i.keys[e.type];if((0,r.isIdentifier)(e))t?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;else if(!(0,r.isExportDeclaration)(e)||(0,r.isExportAllDeclaration)(e)){if(n){if((0,r.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?s.push(...n):s.push(n))}}else(0,r.isDeclaration)(e.declaration)&&s.push(e.declaration)}return a}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},e=>{e.exports=function(){return function(){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){const t=e.get("declaration"),n=t.isFunctionDeclaration()||t.isClassDeclaration(),r=t.isFunctionExpression()||t.isClassExpression(),c=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,d=!1;p?r&&c.hasBinding(p.name)&&(d=!0,p=c.generateUidIdentifier(p.name)):(d=!0,p=c.generateUidIdentifier("default"),(n||r)&&(t.node.id=i(p)));const f=n?t.node:l("var",[u(i(p),t.node)]),h=o(null,[s(i(p),a("default"))]);return e.insertAfter(h),e.replaceWith(f),d&&c.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.get("declaration"),n=t.getOuterBindingIdentifiers(),r=Object.keys(n).map((e=>s(a(e),a(e)))),c=o(null,r);return e.insertAfter(c),e.replaceWith(t.node),e};var r=n(0);const{cloneNode:i,exportNamedDeclaration:o,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:u}=r},(e,t,n)=>{var r=n(187),i=Object;e.exports=function(e){return i(r(e))}},(e,t,n)=>{var r=n(5),i=n(106),o="__core-js_shared__",s=r[o]||i(o,{});e.exports=s},(e,t,n)=>{var r=n(20),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},(e,t,n)=>{var r=n(104),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},(e,t,n)=>{var r=n(19),i=0,o=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return c.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.wrapReference;var o;const s=[],a=v(t.name);for(const e of t.importsNamespace)e!==t.name&&s.push(i.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:h(a)}));const l=null!=(o=r(a,t.wrap))?o:a;n&&s.push(...A(e,t,!0,r));for(const n of t.reexportNamespace)s.push((i.types.isIdentifier(l)?i.template.statement`EXPORTS.NAME = NAMESPACE;`:i.template.statement`
2
+ import*as __WEBPACK_EXTERNAL_MODULE_vue__ from"vue";import*as __WEBPACK_EXTERNAL_MODULE_vue_router_6389ad97__ from"vue-router";import*as __WEBPACK_EXTERNAL_MODULE_cmid_lib_toast_0476b361__ from"cmid/lib/toast";import*as __WEBPACK_EXTERNAL_MODULE_cmid_lib_fullloading_919da29e__ from"cmid/lib/fullloading";var __webpack_modules__={89932:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(53474),_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(53811),vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(75286),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(76918),core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_error_to_string_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(44114),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(23288),core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(26099),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(27495),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(90906),core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(38781),core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(86226),_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(56255),_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11393),_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(73363),_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(64007),_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(385),_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(50697),_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(61240),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15__),_utils_index_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17427),_hooks_index_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(70846),_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9318),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(19022),vue_router__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(11292),_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(44026),_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(30604),_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(82826);function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,vue__WEBPACK_IMPORTED_MODULE_0__.isVNode)(e)}const __WEBPACK_DEFAULT_EXPORT__={name:"AnalysisComponent",inheritAttrs:!1,props:{config:{type:Object,default:function(){return{}}},modelValue:{default:null},component:{type:[Function,Object,String],default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:"operate"},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function setup(props,_ref){var _context4,emit=_ref.emit,attrs=_ref.attrs,currentAttrs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e=(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},attrs);return delete e.onClick,e}));(0,_hooks_configLoad_js__WEBPACK_IMPORTED_MODULE_23__.S)(props.config);var formContextKey=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_formContextKey"),formContext=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(formContextKey,{}),_isH5=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_isH5"),configsSet=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_configsSet"),ruleExecuter=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_ruleExecuter"),dialogReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_dialogReq",{}),requestTraceId=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("requestTraceId"),polyfillConfigs=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_polyfillConfigs",{}),buttonActions=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("buttonActions",{}),router=(0,vue_router__WEBPACK_IMPORTED_MODULE_20__.useRouter)(),route=(0,vue_router__WEBPACK_IMPORTED_MODULE_20__.useRoute)(),routeQuery=null==route?void 0:route.query,hireRelatMapRules=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("hireRelatMapRules"),components=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("components"),dataLoad=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dataLoad"),rootForm=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootForm"),_axiosInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_axiosInstance"),confirmInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_confirmInstance"),openChildDialogInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_openChildDialogInstance"),messageCb=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageCb"),messageInstance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_messageInstance"),builtPolyfillReq=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_builtPolyfillReq"),rootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("rootValue"),validate=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_validate"),lang=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("lang"),OPEN_DATA_RULES=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("OPEN_DATA_RULES"),selects=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("selects"),_parentRootValue=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentRootValue"),_parentDynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("_parentDynamicMapComp");(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_lang",lang),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rootValue",rootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"router",router),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"route",route),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_validate",validate),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_rowScope",props.rowScope),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_selects",selects),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_parentRootValue",_parentRootValue),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_parentDynamicMapComp",_parentDynamicMapComp);var instance=(0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(),appContext=null==instance?void 0:instance.appContext;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"wrapVm",instance);var refFn=function(e){(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"vm",e)},onVnodeMounted=function onVnodeMounted(e){var _props$config,_penddingRules$hireRe,_ruleExecuter$penddin,_props$config2;if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"vmIsBind",!0),props.config.onVnodeMounted&&"function"==typeof props.config.onVnodeMounted){var context={dataLoad};try{props.config.onVnodeMounted.call(context,props,e,selects)}catch(e){console.error("onVnodeMounted error,",e,props.config)}}if(props.config.onMounted){var onMounted=props.config.onMounted;if("string"==typeof onMounted)try{onMounted=eval("(function({props, e, selects}) {\n try {\n ".concat(props.config.onMounted,"\n } catch (error) {\n console.error('onMounted error===:', props, error)\n }\n })"))}catch(e){console.error("parse onMounted error===:",props,e)}"function"==typeof onMounted&&onMounted({props,e,selects})}var hireRelat=null===(_props$config=props.config)||void 0===_props$config?void 0:_props$config.hireRelat,_context,_context2;if(null!==(_penddingRules$hireRe=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat])&&void 0!==_penddingRules$hireRe&&_penddingRules$hireRe.length&&(_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(_context=_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat]).call(_context,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){_rules_rulesDriver__WEBPACK_IMPORTED_MODULE_18__.Ay.call(e,t,!1,OPEN_DATA_RULES)}),0)})),_rules_ruleUtils_js__WEBPACK_IMPORTED_MODULE_19__.Vr[hireRelat]=null),null!=ruleExecuter&&null!==(_ruleExecuter$penddin=ruleExecuter.penddingRules)&&void 0!==_ruleExecuter$penddin&&null!==(_ruleExecuter$penddin=_ruleExecuter$penddin[hireRelat])&&void 0!==_ruleExecuter$penddin&&_ruleExecuter$penddin.length&&(null==ruleExecuter||_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(_context2=ruleExecuter.penddingRules[hireRelat]).call(_context2,(function(e){var t=e.rules;delete e.rules,_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){null==ruleExecuter||ruleExecuter.run(e,t)}),0)})),ruleExecuter.penddingRules[hireRelat]=null),null!==(_props$config2=props.config)&&void 0!==_props$config2&&_props$config2.immediateClickEvent)var unWatch=(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(dataLoad,(function(e){e&&_babel_runtime_corejs3_core_js_stable_set_timeout__WEBPACK_IMPORTED_MODULE_9___default()((function(){executeClickEvents(),unWatch&&unWatch()}),100)}),{immediate:!0})},onVnodeUnmounted=function(){if(props.config.vmIsBind=!1,props.config.onVnodeUnmounted&&"function"==typeof props.config.onVnodeUnmounted)try{props.config.onVnodeUnmounted(props)}catch(e){console.error("onVnodeUnmounted error,",e,props.config)}},_useVmodels=(0,_hooks_index_js__WEBPACK_IMPORTED_MODULE_17__.K)(props,emit,OPEN_DATA_RULES),vModelObjs=_useVmodels.vModelObjs,initVmodels=_useVmodels.initVmodels,modelValue=_useVmodels.modelValue;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"refValue",modelValue);var fnComponentkeys=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]),_props$component,_props$component2,_props$component3;function getFncomponentProps(){var e,t={};return _babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(e=fnComponentkeys.value).call(e,(function(e){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(props.config,e)){var n=props.config;_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.lb.test(e)&&"function"==typeof n[e]?t[e]=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n[e].apply(n,_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(r).call(r,[vm]))}:t[e]=n[e]}})),t}"function"==typeof props.component?null===(_props$component=props.component())||void 0===_props$component||_props$component.then((function(e){var t,n;null!=e&&null!==(t=e.default)&&void 0!==t&&t.emits&&initVmodels(null==e||null===(n=e.default)||void 0===n?void 0:n.emits),fnComponentkeys.value=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.SK)((null==e?void 0:e.default)||e)})):null!==(_props$component2=props.component)&&void 0!==_props$component2&&_props$component2.emits&&initVmodels(null===(_props$component3=props.component)||void 0===_props$component3?void 0:_props$component3.emits);var currentComponent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return"function"==typeof props.component?(0,vue__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent)({loader:props.component,loadingComponent:_components_loadingComponent_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_22__.A,delay:0}):props.component})),parent=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("parent",null),dynamicMapComp=(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dynamicMapComp"),configLinks=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context4=[parent]).call(_context4,(0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_25__.A)(props.additionConfigs),[props.config]);_babel_runtime_corejs3_core_js_stable_instance_reduce__WEBPACK_IMPORTED_MODULE_11___default()(configLinks).call(configLinks,(function(e,t){if((0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"parent",e),(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicMapComp",dynamicMapComp),!OPEN_DATA_RULES){if(null==t||!t.dynamicHireRelat_bak||null!=configsSet&&configsSet.has(t)){var n,r,i=null!=e&&e.dynamicHireRelat?_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(n=_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(r="".concat(null==e?void 0:e.dynamicHireRelat)).call(r,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.$3)(t,"rowIndex")?"[".concat(t.rowIndex,"]"):"","->")).call(n,t.metaCode||""):t.metaCode;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",i),t.dynamicHireRelat_bak=i}else{var o;(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(t,"dynamicHireRelat",_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(o="".concat(t.dynamicHireRelat_bak,"__@__")).call(o,props.mode,"__"))}null==configsSet||configsSet.add(t),t.dynamicHireRelat&&(dynamicMapComp[t.dynamicHireRelat]=t)}return t})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("parent",props.config),OPEN_DATA_RULES?null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){var t,n;null!==(t=props.config)&&void 0!==t&&t._formFields||(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Ts)(props.config,"_formFields",[]),null===(n=props.config)||void 0===n||null===(n=n._formFields)||void 0===n||n.push(e),formContext.addField(e)},removeField:function(e){var t,n=null===(t=props.config)||void 0===t?void 0:t._formFields;if(e.prop&&n){var r=_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(n).call(n,e);-1!==r&&_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default()(n).call(n,r,1)}formContext.removeField(e)}}))):null!=_isH5&&_isH5.value||!props.config.renderby||(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formContextKey,(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},formContext),{},{addField:function(e){if(e.validate&&(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.kL)(e.validate)){var t=e.validate;e.validate=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=t.apply(this,r);return(null==o||null===(e=o.then((function(e){return e})))||void 0===e?void 0:e.catch((function(e){var t;return(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Qd)(e)&&_babel_runtime_corejs3_core_js_stable_instance_for_each__WEBPACK_IMPORTED_MODULE_8___default()(t=_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_14___default()(e)).call(t,(function(t){var n=e[t];delete e[t],e[props.config.dynamicHireRelat]=n})),_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_15___default().reject(e)})))||!0}}formContext.addField(e)}})));var _onClick=function(e,t){var n,r,i,o={props,dynamicMapComp,hireRelatMapRules,components,selects,rootValue:null==rootValue?void 0:rootValue.value,dataLoad,rootForm,routeQuery,appContext};null==attrs||null===(n=attrs.onClick)||void 0===n||n.call(o,e),-1!==(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Tn)(_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.UP,(null===(r=props.config)||void 0===r?void 0:r.renderby)||(null===(i=props.config)||void 0===i?void 0:i.metaType))&&executeClickEvents(t)};function executeClickEvents(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.Qd)(e)||(e={}),(0,_components_helper_eventOrchestration_js__WEBPACK_IMPORTED_MODULE_21__.bt)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)((0,_Users_caowenbin_asia_xm_code_new_web_sa_egretimp_resolver_node_modules_babel_runtime_corejs3_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_24__.A)({},e),{},{builtPolyfillReq,components,props,requestTraceId:null==requestTraceId?void 0:requestTraceId.value,axiosInstance:null==_axiosInstance?void 0:_axiosInstance.value,polyfillConfigs,rootValue:null==rootValue?void 0:rootValue.value,confirmInstance:null==confirmInstance?void 0:confirmInstance.value,dynamicMapComp,openChildDialog:null==openChildDialogInstance?void 0:openChildDialogInstance.value,messageInstance:null==messageInstance?void 0:messageInstance.value,messageCb,buttonActions,lang:null==lang?void 0:lang.value,dialogReq,appContext}))}return(0,vue__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured)((function(e,t,n){var r,i,o,s;console.error("component render failer",(null==lang||null===(r=lang.value)||void 0===r?void 0:_babel_runtime_corejs3_core_js_stable_instance_index_of__WEBPACK_IMPORTED_MODULE_12___default()(r).call(r,"zh"))>-1?null===(i=props.config)||void 0===i?void 0:i.metaNameZh:null===(o=props.config)||void 0===o?void 0:o.metaNameEn,null===(s=props.config)||void 0===s?void 0:s.metaCode,e,t,n)})),function(){var e,t=getFncomponentProps(),n=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.qg)({config:props.config,props,component:props.component,modelValue,selects,lang:lang.value,vm:instance.proxy}),r=null==n?void 0:n.onClick;return delete n.onClick,(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.M9)(props.config,lang.value,n,null==_isH5?void 0:_isH5.value,{lang,rootValue,dynamicMapComp,props,messageInstance:null==messageInstance?void 0:messageInstance.value,OPEN_DATA_RULES})((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(currentComponent.value,(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({key:props.config.metaCode,ref:refFn,onVnodeMounted,onVnodeUnmounted},currentAttrs.value,{onClick:function(e,t){_onClick(e,t),null==r||r(e)}},t,n,vModelObjs),_isSlot(e=(0,_utils_index_js__WEBPACK_IMPORTED_MODULE_16__.yo)({config:props.config}))?e:{default:function(){return[e]}}))}}}},76693:(e,t,n)=>{n.d(t,{Tl:()=>l,UU:()=>o,Wb:()=>i,aZ:()=>s,dL:()=>a,xx:()=>r});var r="/sa-lcp/api/v1/pageConfig/queryPageConfigData",i="/sa-lcp/login",o="/sa-lcp/api/v1/sysparam/getSysParamCache",s="/sa-lcp/changePwd/refreshToken",a="/sa-lcp/api/v1/validate/dataValidRuleExecute",l="/sa-lcp/api/v1/fileopertate/findFileAndContentById"},35169:(e,t,n)=>{n.d(t,{dW:()=>$,Wg:()=>H});var r,i,o=n(7252),s=n(53811),a=n(37891),l=n(34963),u=n(39653),c=n(56213),p=n(49859),d=(n(44114),n(94870)),f=n.n(d),h=n(64007),m=n.n(h),y=n(8628),g=n.n(y),v=n(61240),b=n.n(v),_=n(56255),E=n.n(_),x=n(71426),S=n.n(x),T=n(26327),P=n.n(T),A=n(385),w=n.n(A),C=(n(16280),n(76918),n(23288),n(26099),n(27495),n(38781),n(25440),n(86226)),O=n.n(C),I=n(11393),M=n.n(I),D=function(){function e(t,n){var r=this;(0,u.A)(this,e),(0,p.A)(this,"context",null),(0,p.A)(this,"msgSdkInstance",null),(0,p.A)(this,"createComponentUUID",(function(e){var t,n="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return M()(t="".concat(e,"_")).call(t,n,"_from_message")})),(0,p.A)(this,"getContext",(function(){return r.context})),n&&(this.context=(0,s.A)({subComponents:[]},n)),this.msgSdkInstance=t}return(0,c.A)(e,[{key:"insertComponent",value:function(e,t){var n=this;try{var o;O()(e).call(e,(function(e){var t,r,i=e.getContext();null===(t=i.props)||void 0===t||null===(t=t.customEvents)||void 0===t||O()(t).call(t,(function(e){n.msgSdkInstance.registerComponentCustomEvents((0,s.A)({id:i.id},e)),delete e.func})),null===(r=n.context.subComponents)||void 0===r||r.push(e.getContext())})),null===(o=this.msgSdkInstance)||void 0===o||o.postMessage({type:r.callMethod,methodName:i.insertComponent,methodConfig:t,data:this.context})}catch(e){console.error(e)}}},{key:"changeLayoutMaskStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:i.changeLayoutMaskStatus,data:e})}},{key:"changeLayoutAreaStatus",value:function(e){var t;null===(t=this.msgSdkInstance)||void 0===t||t.postMessage({type:r.callMethod,methodName:i.changeLayoutAreaStatus,data:e})}},{key:"createComponent",value:function(t){return t.isContract=!0,t.isCreateByMessage=!0,t.id=t.id?t.id:this.createComponentUUID(t.type),new e(this.msgSdkInstance,t)}}])}(),k="__SEEYON_UDC__";!function(e){e.callMethod="callMethod",e.message="message",e.callEvent="callEvent"}(r||(r={})),function(e){e.ready="ready",e.insertComponent="insertComponent",e.changeLayoutMaskStatus="changeLayoutMaskStatus",e.changeLayoutAreaStatus="changeLayoutAreaStatus"}(i||(i={}));var N=function(){return(0,c.A)((function e(){var t=this;(0,u.A)(this,e),(0,p.A)(this,"_identifying",k),(0,p.A)(this,"_nameSpaceId",void 0),(0,p.A)(this,"_is_ready",!1),(0,p.A)(this,"_customEvents",{}),(0,p.A)(this,"_eventListener",(function(e,n){try{var r=e.data;if(!t._msgValidator(r))return;t._readyCallBack(r,n),t._callEvent(r)}catch(e){console.error(e)}})),(0,p.A)(this,"_eventListenerHandler",(function(){})),(0,p.A)(this,"contractComponent",(function(e,n){return new D(t,{type:e,id:null==n?void 0:n.id,isContract:!0})})),(0,p.A)(this,"createComponent",(function(e){return new D(t).createComponent(e)})),(0,p.A)(this,"registerComponentCustomEvents",(function(e){var n=e.id,r=e.type,i=e.func;t._customEvents[n]||(t._customEvents[n]={}),t._customEvents[n][r]=i})),(0,p.A)(this,"_customization",{CMI:{insertBtnForToolbar:function(e){var n=e.position,r=e.btns,i=e.id,o=t.contractComponent("UdcToolBar",{id:i}),s=[];null==r||O()(r).call(r,(function(e){s.push(t.createComponent({type:"UdcButton",props:e}))})),o.insertComponent(s,{position:n})},changeLayoutMaskStatus:function(e){var n=e.status,r=e.bgColor;t.contractComponent("UdcLayoutMask").changeLayoutMaskStatus({status:n,bgColor:r})},changeLayoutAreaStatus:function(e){var n=e.hiddenArea;t.contractComponent("UdcLayoutArea").changeLayoutAreaStatus({hiddenArea:n})}}}),(0,p.A)(this,"getCustomApi",(function(){var e=R.baseInfo.tenant||"CMI",n=t._customization[e];if(n)return n;console.error(e?"该tenant未定制过API":"缺少tenant信息")})),this._nameSpaceId=this._uuid()}),[{key:"_uuid",value:function(){var e="xxx_xxxx_xxxx_yxxx_xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return"".concat(("x"===e?t:3&t|8).toString(16))}));return"x".concat(e)}},{key:"_msgValidator",value:function(e){return!("[object Object]"!==Object.prototype.toString.call(e)||e._identifying!==k||!r[e.type]||e._nameSpaceId!==this._nameSpaceId)}},{key:"_readyCallBack",value:function(e,t){var n,i,o;null===(n=e.data)||void 0===n||n.signatureMethods,null===(i=e.data)||void 0===i||i.version,e.type!==r.message||"ready"!==(null===(o=e.data)||void 0===o?void 0:o.status)||this._is_ready||(this._is_ready=!0,t&&t(this,{parentRuntimeContext:null,runtimeContext:null}))}},{key:"_registerEventListener",value:function(e){var t=this;this._eventListenerHandler=function(n){t._eventListener(n,e)},window.addEventListener("message",this._eventListenerHandler)}},{key:"_callEvent",value:function(e){var t=this;if(e.type===r.callEvent){var n=e.callEvents;null==n||O()(n).call(n,(function(e){var n,r,i=e.id,o=e.type;null===(n=t._customEvents[i])||void 0===n||null===(r=n[o])||void 0===r||r.call(n)}))}}},{key:"destory",value:function(){window.removeEventListener("message",this._eventListenerHandler)}},{key:"postMessage",value:function(e){(e.type==r.callMethod&&e.methodName==i.ready||this._is_ready)&&window.parent.postMessage((0,s.A)((0,s.A)({},e),{},{_identifying:this._identifying,_nameSpaceId:this._nameSpaceId}),"*")}},{key:"ready",value:function(e){this.postMessage({type:r.callMethod,methodName:i.ready}),this._registerEventListener(e)}}])}(),j=new N,L={getUdcAppInfo:function(e){throw Error("getUdcAppInfo ONLY work under UDC app")},getUdcPageInParams:function(e){throw Error("getUdcPageInParams ONLY work under UDC app")},getUdcPageInfo:function(e){throw Error("getUdcPageInfo ONLY work under UDC app")},getUdcPageRuntimeVariable:function(e){throw Error("getUdcPageRuntimeVariable ONLY work under UDC app")},getUdcPageSignature:function(e){throw Error("getUdcPageSignature ONLY work under UDC app")},getUdcPageVariables:function(e,t){throw Error("getUdcPageVariables ONLY work under UDC app")},setUdcPageRuntimeVariable:function(e,t){throw Error("setUdcPageRuntimeVariable ONLY work under UDC app")},setUdcPageVariables:function(e,t,n){throw Error("setUdcPageVariables ONLY work under UDC app")},getUdcComponentInfo:function(e){throw Error("getUdcComponentInfo ONLY work under UDC app")},getUdcComponentSignature:function(e){throw Error("getUdcComponentSignature ONLY work under UDC app")},getUdcComponentValue:function(e,t){throw Error("getUdcComponentValue ONLY work under UDC app")},getUdcComponentViewState:function(e,t){throw Error("getUdcComponentViewState ONLY work under UDC app")},setUdcComponentValue:function(e,t,n){throw Error("setUdcComponentValue ONLY work under UDC app")},setUdcComponentViewState:function(e,t,n){throw Error("setUdcComponentViewState ONLY work under UDC app")},getUdcParentComponentInfo:function(e){throw Error("getUdcParentComponentInfo ONLY work under UDC app")},getUdcDataContainerComponentInfo:function(e){throw Error("getUdcDataContainerComponentInfo ONLY work under UDC app")},getComponentValueFromUiModelNode:function(e,t){throw Error("getComponentValueFromUiModelNode ONLY work under UDC app")},setComponentValueFromUiModelNode:function(e,t,n,r){throw Error("setComponentValueFromUiModelNode ONLY work under UDC app")},getUdcSubComponentViewState:function(e){throw Error("getUdcSubComponentViewState ONLY work under UDC app")},setUdcSubComponentViewState:function(e,t){throw Error("setUdcSubComponentViewState ONLY work under UDC app")},getUdcDatasouceMetaInfo:function(e,t){throw Error("getUdcDatasouceMetaInfo ONLY work under UDC app")},queryUdcDatasourceDetail:function(e,t){throw Error("queryUdcDatasourceDetail ONLY work under UDC app")},queryUdcDatasourceList:function(e,t){throw Error("queryUdcDatasourceList ONLY work under UDC app")},queryUdcDatasourceListSummary:function(e,t){throw Error("queryUdcDatasourceListSummary ONLY work under UDC app")},saveUdcDatasourceData:function(e,t){throw Error("saveUdcDatasourceData ONLY work under UDC app")},saveUdcDatasourceListData:function(e,t){throw Error("saveUdcDatasourceListData ONLY work under UDC app")},deleteAndSaveUdcDatasourceData:function(e,t,n){throw Error("deleteAndSaveUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceData:function(e,t){throw Error("createUdcDatasourceData ONLY work under UDC app")},createUdcDatasourceDataFromSelectRows:function(e,t){throw Error("createUdcDatasourceDataFromSelectRows ONLY work under UDC app")},deleteUdcDatasourceData:function(e,t,n){throw Error("deleteUdcDatasourceData ONLY work under UDC app")},getUdcDatasourceData:function(e,t){throw Error("getUdcDatasourceData ONLY work under UDC app")},execParseUdcExpression:function(e,t){throw Error("parseUdcExpression ONLY work under UDC app")},callUdcPresetFunc:function(e,t,n){throw Error("execPresetFunctor ONLY work under UDC app")},callUdcPresetEventAction:function(e,t){throw Error("callUdcPresetEventAction ONLY work under UDC app")},i18n:function(e,t){throw Error("i18n ONLY work under UDC app")},getUdcComponent:function(e,t){throw Error("getUdcComponent ONLY work under UDC app")},getUdcProfile:function(e,t,n){throw Error("getUdcProfile ONLY work under UDC app")},getApiUrlByUdcAppInfo:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},transformCtpEnumCode:function(e,t){throw Error("getApiUrlByAppInfo ONLY work under UDC app")},getUdcSdkForIframe:function(){return j},baseInfo:{tenant:null}},R=L;window.__UDC_OPEN_SDK__||(window.__UDC_OPEN_SDK__={default:L});var B=function(e,t){var n=function(e){var t=window.__UDC_OPEN_SDK__.default;return e in window.__UDC_OPEN_SDK__&&(t=window.__UDC_OPEN_SDK__[e]),t}(e);n.baseInfo=t},F="SEND",U="SUBMIT",V="AGREE",W="DRAFT_HANDLE",q="GET_FORM_DATA",$=null,K=function(){return(0,c.A)((function e(t,n,r,i){(0,u.A)(this,e),(0,p.A)(this,"commonActionKey","common"),(0,p.A)(this,"showCopyModalCb",null),(0,p.A)(this,"params",{}),(0,p.A)(this,"bpmConfigs",{}),(0,p.A)(this,"eventData",null),(0,p.A)(this,"postOptions",null),(0,p.A)(this,"sdkInstance",null),(0,p.A)(this,"postMessageData",null),(0,p.A)(this,"actions",{}),(0,p.A)(this,"nativeMethods",{}),(0,p.A)(this,"saveResponse",null),this.postMessageData=t,this.actions=n,this.bpmConfigs=r||{},this.params=i||{},this.setNativeMethods(),this.init()}),[{key:"init",value:function(){var e;window.parent!==window&&window.parent.postMessage({hasListener:!0},"*"),window.addEventListener("message",f()(e=this.messageListener).call(e,this))}},{key:"setNativeMethods",value:function(){var e=this,t=this.params,n=t.validate,r=t.dynamicMapComp,i=t.bpmSubmitBtn,o=t.toExecuteLoadServices,s=(t.messageInstance,this.bpmConfigs),u=s.getDetailReq,c=s.customValidate,p=s.saveValidate,d=function(){var t=(0,l.A)((0,a.A)().mark((function t(n){var o,s;return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p||"function"!=typeof p){t.next=6;break}return t.next=3,p();case 3:if(t.sent){t.next=6;break}return t.abrupt("return");case 6:return o=r[i],s=function(t){return function(){var r=(0,l.A)((0,a.A)().mark((function r(i){var o,s,u,c,p,d,f;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=e.bpmConfigs.saveAfter,e.saveResponse=i,s=e.params,u=s.copyModal,c=s.lang,p=s.calcShowCopyModal,r.prev=3,(d=p(i,n))&&(f=n.submitType,e.showCopyModalCb=function(){var t,n,r,i=(null==c||null===(t=c.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"提交成功":"Submit Success",o=(null==c||null===(n=c.value)||void 0===n?void 0:m()(n).call(n,"zh"))>-1?"保存成功":"Save Success",s=g()(r=[F,U,V]).call(r,f)?i:o;return e.showCopyModalCb=null,new(b())((function(e){var t,n;null==u||u({lang:null==c?void 0:c.value,type:"check",showcopy:!0,copytype:(null==c||null===(t=c.value)||void 0===t?void 0:m()(t).call(t,"zh"))>-1?"申请单号":"Application No.",copymsg:d,showCancle:!1,msg:s,handleOk:(n=(0,l.A)((0,a.A)().mark((function t(){return(0,a.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(!0);case 1:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})}))}),r.next=8,null==o?void 0:o(i,n);case 8:r.next=13;break;case 10:r.prev=10,r.t0=r.catch(3),console.error("saveAfter error, error:",r.t0);case 13:E()((function(){null==t||t(i)}),0);case 14:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(e){return r.apply(this,arguments)}}()},t.abrupt("return",new(b())((function(e){var t,n=s((function(t){e(t)}));o?null==o||null===(t=o.vm)||void 0===t||t.click({afterRequestService:n}):(console.log("no set bpmSubmitBtn, or bpmSubmitBtn is invalid."),n({data:{success:!0}}))})));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),f=function(){var e=(0,l.A)((0,a.A)().mark((function e(t){return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new(b())((function(e){n((function(t){e(t)}))}));case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(!c||"function"!=typeof c){e.next=7;break}return e.abrupt("return",c(t));case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();this.nativeMethods={nativeValidate:n,customValidate:c,validate:f,toSave:d,getDetail:function(){var t=null==u?void 0:u(e.saveResponse);o(!0,!0,{params:t})}}}},{key:"messageListener",value:function(e){console.log("message event===:",e);var t=e.data||{};if(null!=t&&t.isFromBPM){var n=this.postOptions;this.postOptions=null,this.eventData=t,this.handleMessage&&this.handleMessage(e,n)}}},{key:"handleMessage",value:(n=(0,l.A)((0,a.A)().mark((function e(t,n){var r,i,o,s,l,u,c,p,d,f,h,m,y,v,b,_,E,x;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.eventData||{},o=i.messageType,s=i.submitType,l=null==i||null===(r=i.bpmInfo)||void 0===r?void 0:r.actionType,console.log("messageType==:",o),console.log("submitType==:",s),console.log("actionType==:",l),q!==o){e.next=25;break}if((p=null===(u=this.actions)||void 0===u||null===(u=u[s])||void 0===u?void 0:u.formAction)||(p=null===(d=this.actions)||void 0===d||null===(d=d[this.commonActionKey])||void 0===d?void 0:d.formAction),p||(p=this.getDefaultAction(i)),!p){e.next=16;break}return e.next=13,null===(f=p)||void 0===f?void 0:f({eventData:this.eventData,nativeMethods:this.nativeMethods});case 13:if(!1!==e.sent){e.next=16;break}return e.abrupt("return");case 16:if((h=null===(c=this.actions)||void 0===c||null===(c=c[s])||void 0===c?void 0:c.postMessageData)||(h=this.postMessageData),"function"!=typeof h){e.next=22;break}return e.next=21,h({eventData:this.eventData});case 21:h=e.sent;case 22:this.postMessage(h),e.next=38;break;case 25:if("PROCESS_ACTION_SUCCESS"!==o){e.next=38;break}return b=!0,b=!g()(m=["PROCESS_SHOW","BACK",W]).call(m,s),e.next=30,null===(y=this.showCopyModalCb)||void 0===y?void 0:y.call(this);case 30:if((_=null===(v=this.actions)||void 0===v||null===(v=v[s])||void 0===v?void 0:v.successAction)||(_=null===(E=this.actions)||void 0===E||null===(E=E[this.commonActionKey])||void 0===E?void 0:E.successAction),_||(_=this.getDefaultAction(i)),!_){e.next=37;break}return e.next=36,null===(x=_)||void 0===x?void 0:x({eventData:this.eventData,originCloseFlag:b,nativeMethods:this.nativeMethods});case 36:b=e.sent;case 37:this.postMessage(null,{closeFlag:!!b});case 38:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"setSaveMessage",value:function(){this.eventData={submitType:"DRAFT_HANDLE",messageType:"GET_FORM_DATA",url:"*"}}},{key:"postMessage",value:(t=(0,l.A)((0,a.A)().mark((function e(){var t,n,r,i,o,l,u,c,p,d=arguments;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=d.length>0&&void 0!==d[0]?d[0]:{},n=d.length>1?d[1]:void 0,console.log("postmessage formData ===:",t,n),this.postOptions=n,(null==n?void 0:n.closeFlag)?(console.log("走进判断关闭页面===="),window.parent!==window&&window.parent.postMessage({messageType:"CLOSE_WINDOW"},"*")):(o=!g()(r=["BACK"]).call(r,null===(i=this.eventData)||void 0===i?void 0:i.submitType),console.log("eventData==:",this.eventData),window.parent!==window&&(p={success:!0,submitType:null===(l=this.eventData)||void 0===l?void 0:l.submitType,messageType:null===(u=this.eventData)||void 0===u?void 0:u.messageType,actionInfo:{preventClose:o},formData:(0,s.A)({},t)},console.log("url==:",this.eventData.url),console.log("postData==:",p),window.parent.postMessage(p,null===(c=this.eventData)||void 0===c?void 0:c.url)));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getDefaultAction",value:function(e){var t=this,n=e.messageType,r=e.submitType;if(q===n)switch(r){case F:case U:case V:return(0,l.A)((0,a.A)().mark((function n(){var r,i,o,s,l,u;return(0,a.A)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.nativeMethods,i=r.validate,o=r.toSave,s=r.getDetail,n.next=3,i(e);case 3:if(!n.sent){n.next=16;break}return n.next=7,o(e);case 7:if(null==(u=n.sent)||null===(l=u.data)||void 0===l||!l.success){n.next=13;break}return s(),n.abrupt("return",!0);case 13:case 16:return n.abrupt("return",!1);case 14:n.next=17;break;case 17:case"end":return n.stop()}}),n)})));case"NOTICE":case"GIVE":case W:case"MULTI_COOPERATE":return(0,l.A)((0,a.A)().mark((function n(){var r,i,o,s,l,u,c;return(0,a.A)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=null==e||null===(r=e.bpmInfo)||void 0===r?void 0:r.actionType,o=t.nativeMethods,s=o.toSave,l=o.getDetail,i){n.next=14;break}return n.next=5,s(e);case 5:if(null==(c=n.sent)||null===(u=c.data)||void 0===u||!u.success){n.next=11;break}return l(),n.abrupt("return",!0);case 11:return n.abrupt("return",!1);case 12:n.next=15;break;case 14:return n.abrupt("return",!0);case 15:case"end":return n.stop()}}),n)})))}}},{key:"on",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]);S()(n).call(n,(function(e){return e===t}))||null==n||n.push(t)}},{key:"remove",value:function(e,t){var n=this.actions[e]||(this.actions[e]=[]),r=P()(n).call(n,(function(e){return e===t}));-1!==r&&(null==n||w()(n).call(n,r,1))}},{key:"getSdkInstance",value:(e=(0,l.A)((0,a.A)().mark((function e(){var t=this;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("to get sdk===="),!this.sdkInstance){e.next=5;break}return e.abrupt("return",this.sdkInstance);case 5:return e.abrupt("return",new(b())((function(e){var n,r;r=function(n){console.log("instance===:",n),t.sdkInstance=n,e(n)},"iframe"===(n={mode:"iframe",tenant:"CMI"}).mode?(B(n.version,{tenant:n.tenant}),L.getUdcSdkForIframe().ready(r)):console.error("SDK当前仅支持iframe模式")})));case 6:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"changeSlide",value:function(e){this.getSdkInstance().then((function(t){var n;console.log("切换致远弹框===:",!0),null==t||null===(n=t.getCustomApi())||void 0===n||n.changeLayoutAreaStatus({hiddenArea:e?[]:["header","left","right","footer"]})}))}},{key:"insertBtn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;this.getSdkInstance().then((function(n){var r;console.log("insert btns==:",e,t),null==n||null===(r=n.getCustomApi())||void 0===r||r.insertBtnForToolbar({position:t,btns:e})}))}},{key:"destroy",value:function(){window.removeEventListener("message",this.messageListener),this.sdkInstance=null}}]);var e,t,n}();function H(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $=(0,o.A)(K,t)}},71143:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(64007),i=n.n(r),o=(n(2892),n(75286)),s=["labelWidth"],a={slot:"label",class:"custom-label--formItem"},l={class:"custom-label-content"},u={key:0,class:"label-required"},c={class:"label-text"};const p={__name:"index",props:{messageInstance:{type:[Object,Function],default:function(){return null}},config:{type:Object,default:function(){return{}}},lang:{type:String,default:"zh"},labelWidth:[String,Number]},setup:function(e){var t=e,n=(0,o.useAttrs)(),r=(0,o.computed)((function(){var e;return"1"==t.config.labelHidden||0==t.config.labelWidth||"0"==t.config.labelWidth?"":(i()(e=t.lang).call(e,"zh")>-1?t.config.metaNameZh:t.config.metaNameEn)||""})),p=(0,o.computed)((function(){return t.config.labelPosition?t.config.labelPosition:"left"}));function d(){var e,n;null===(e=messageInstance)||void 0===e||e.text(i()(n=t.lang).call(n,"zh")>-1?t.config.hintContentZh:t.config.hintContentEn)}return function(e,i){return(0,o.openBlock)(),(0,o.createElementBlock)("cmi-form-item",(0,o.mergeProps)((0,o.unref)(n),{class:["custom-form-item-h5",[{"--required":"1"==t.config.requiredFlag,"--label-hide":!p.value,"--label-text-left":"left"===e.labelPosition,"--label-text-right":"right"===e.labelPosition},e.customClass]],labelWidth:t.labelWidth}),[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",l,["1"==t.config.requiredFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",u,"*")):(0,o.createCommentVNode)("v-if",!0),(0,o.createElementVNode)("span",c,(0,o.toDisplayString)(r.value),1),"1"==t.config.hintFlag?((0,o.openBlock)(),(0,o.createElementBlock)("span",{key:1,class:"label-tip",onClick:d},i[0]||(i[0]=[(0,o.createElementVNode)("cmi-icon-question-circle",{size:"14"},null,-1)]))):(0,o.createCommentVNode)("v-if",!0)])]),(0,o.renderSlot)(e.$slots,"default")],16,s)}}};n(38709);const d=(0,n(66262).A)(p,[["__scopeId","data-v-d2c369a2"]])},44026:(e,t,n)=>{n.d(t,{bt:()=>$});var r=n(37891),i=n(53811),o=n(34963),s=(n(48598),n(44114),n(27495),n(71761),n(73363)),a=n.n(s),l=n(64007),u=n.n(l),c=n(86226),p=n.n(c),d=n(48079),f=n.n(d),h=n(14166),m=n.n(h),y=n(50697),g=n.n(y),v=n(71426),b=n.n(v),_=n(56255),E=n.n(_),x=n(61240),S=n.n(x),T=n(36586),P=n.n(T),A=n(12935),w=n(76693),C=n(19022),O=n(157),I=n(17427),M=n(52644),D=n(35169);function k(e){return N.apply(this,arguments)}function N(){return(N=(0,o.A)((0,r.A)().mark((function e(t){var n,i,o,s,a,l,u,c,p,d,f,h,m,y,v,_,E;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.serviceList,i=void 0===n?[]:n,o=t.requestTraceId,s=t.axiosInstance,a=t.dialogReq,l=t.dynamicMapComp,u=t.rootValue,c=t.dynamicHireRelat,p=t.messageCb,d=t.compConfig,f=t.messageInstance,h=t.lang,m=t.beforeRequestService,y=t.afterRequestService,v=g()(l),_=b()(i).call(i,(function(e){return"1"==e.serviceType})),E=0;E<i.length;E++)j(i[E],{dynamicMapComp:l,requestTraceId:o,dialogReq:a,mixinServiceConfig:_,rootValue:u,dynamicMapCompKeys:v,dynamicHireRelat:c,axiosInstance:s,messageCb:p,compConfig:d,messageInstance:f,lang:h,beforeRequestService:m,afterRequestService:y});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,t){return L.apply(this,arguments)}function L(){return L=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,u,c,p,d,f,h,m,y,g,v,b,_,x;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x=function(){return x=(0,o.A)((0,r.A)().mark((function e(){var n,b,_,x,T,w,C,M,D,k,N,j,L,U,V,W,q,$,K,H,z,G,Y,X,J,Q,Z,ee,te,ne,re,ie,oe=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b=!(oe.length>0&&void 0!==oe[0])||oe[0],_=u||{},x=null,T=(0,I.Ho)({extendAttr:t.extendAttr}),w=null,C=null,((M=null==h?void 0:h.beforeRequestService)||g)&&(w=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return g&&(t=null==g?void 0:g.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!M){e.next=12;break}return e.abrupt("return",null==M?void 0:M.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((D=null==h?void 0:h.afterRequestService)||v)&&(C=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=o.length,n=new Array(t),i=0;i<t;i++)n[i]=o[i];return e.next=3,null==v?void 0:v.apply(void 0,n);case 3:return e.next=5,null==D?void 0:D.apply(void 0,n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),"1"==t.transactionType&&(_=R(t.inParamMappingList||[],{emptyUpdate:!0,dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p}),x=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p}),null!==(k=x)&&void 0!==k&&k.vm&&(b&&((0,I.Ts)(x,"serviceCurrentChangeLoad",!0),x.vm.page.pageNum=1,E()((function(){(0,I.Ts)(x,"serviceCurrentChangeLoad",!1)}),200)),(0,A.b0)(null===(N=x.vm.page)||void 0===N?void 0:N.pageNum)||(0,A.kZ)(null===(j=x.vm.page)||void 0===j?void 0:j.pageNum)||(0,I.oY)(_,t.pageNum||"pageNum",null===(V=x.vm.page)||void 0===V?void 0:V.pageNum),(0,A.b0)(null===(L=x.vm.page)||void 0===L?void 0:L.pageSize)||(0,A.kZ)(null===(U=x.vm.page)||void 0===U?void 0:U.pageSize)||(0,I.oY)(_,t.pageSize||"pageSize",null===(W=x.vm.page)||void 0===W?void 0:W.pageSize)),_=(0,i.A)({},_)),q=t.serviceCode,$=t.httpMethod||"post",K={aid_language:y,requestTraceId:a,pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==l?void 0:l.mainServiceCode}},(null==T?void 0:T.notDefaultParmas)&&(K={}),H=(0,I.Vv)(K,_),K=H,z=!0,w&&(z=w({dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:u,dynamicHireRelat:p,compConfig:h,service:t,reqData:K})),e.next=22,z;case 22:if(!1!==e.sent){e.next=25;break}return e.abrupt("return");case 25:return G={url:q,method:$,data:K},"get"===$.toLocaleLowerCase()&&(G.params=K,delete G.data),e.next=29,d&&d(G);case 29:if(Y=e.sent,!C){e.next=33;break}return e.next=33,C(Y,{dynamicMapComp:s,requestTraceId:a,mixinServiceConfig:l,rootValue:u,dynamicHireRelat:p,compConfig:h,service:t,reqData:K});case 33:if(X="get"===$.toLocaleLowerCase()||"1"==t.transactionType||(null==T?void 0:T.noSuccessIip),J={messageCb:f,service:t,compConfig:h,noSuccessIip:X},T.resultCodeKey&&(J.resultCodeKey=T.resultCodeKey),(0,O.N)(null==Y?void 0:Y.data,m,J)){e.next=40;break}return e.next=39,S().reject();case 39:return e.abrupt("return");case 40:B(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p,outResult:Y.data}),null!==(n=x)&&void 0!==n&&n.vm&&(ee=null===(Q=Y.data)||void 0===Q?void 0:Q.result,te=t.pageTotalCount,ne=/^_deep:(.+)$/,(re=null===(Z=t.pageTotalCount)||void 0===Z?void 0:Z.match(ne))&&(ee=Y.data,te=re[1]),ie=P()((0,I.V9)(ee||{},te||"pageCount")),x.vm.page.total=ie);case 42:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)},_=function(){return x.apply(this,arguments)},s=n.dynamicMapComp,a=n.requestTraceId,n.dialogReq,l=n.mixinServiceConfig,u=n.rootValue,c=n.dynamicMapCompKeys,p=n.dynamicHireRelat,d=n.axiosInstance,f=n.messageCb,h=n.compConfig,m=n.messageInstance,y=n.lang,g=n.beforeRequestService,v=n.afterRequestService,"1"==t.transactionType&&(b=F(t.outParamMappingList,{dynamicMapComp:s,dynamicMapCompKeys:c,dynamicHireRelat:p}))&&((0,I.Ts)(b,"serviceSizeChange",(function(e,t,n){_()})),(0,I.Ts)(b,"serviceCurrentChange",(function(e,t,n){_(!1)}))),_();case 5:case"end":return e.stop()}}),e)}))),L.apply(this,arguments)}function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.emptyUpdate,r=t.dynamicMapComp,i=t.dynamicMapCompKeys,o=t.dynamicHireRelat;return a()(e).call(e,(function(e,t){var s,a=t.orignParam,l=void 0===a?"":a,c=t.destParam,p=void 0===c?"":c,d=(0,C.qK)(i,l,o);d.length>1&&console.error("search arg muti",t,d);var f,h=d[0],m=null==r||null===(s=r[h])||void 0===s?void 0:s.refValue;return(((0,A.b0)(m)||(0,A.kZ)(m))&&n||!(0,A.b0)(m)&&!(0,A.kZ)(m))&&(f=-1!==(null==p?void 0:u()(p).call(p,"->"))?(null==p?void 0:p.split("->"))||[]:(null==p?void 0:p.split("."))||[],(0,I.oY)(e,f,(0,A.b0)(m)||(0,A.kZ)(m)?"":m)),e}),{})}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=t.outResult,s=void 0===o?{}:o;p()(e).call(e,(function(e){var t=e.orignParam,o=void 0===t?"":t,l=e.destParam,u=void 0===l?"":l,c=e.isList,p=void 0!==c&&c,d=e.primaryKeys,h=void 0===d?[]:d,y=(0,C.qK)(r,u,i);y.length>1&&console.error("search arg muti",e,y);var g=y[0],v=n[g];if(v){var b=o?null==o?void 0:o.split("."):[],_=a()(b).call(b,(function(e,t){if(e)return e[t]}),s);p&&((0,A.cy)(_)?(0,A.cy)(v.refValue)&&(0,A.cy)(_)&&(_=(0,I.q2)(v.refValue,_,(function(e,t){var n;return!(!h||!h.length)&&(null===(n=f()(h).call(h,(function(n){return((0,A.sw)(e[n])||(0,A.sw)(t[n]))&&e[n]==t[n]})))||void 0===n?void 0:m()(n).call(n,(function(e){return e})))}))):_=(0,A.cy)(v.refValue)?v.refValue:[]),v.refValue=_}}))}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.dynamicMapComp,r=t.dynamicMapCompKeys,i=t.dynamicHireRelat,o=0;o<e.length;o++){var s=e[o],a=s.destParam,l=void 0===a?"":a,u=(0,C.qK)(r,l,i);u.length>1&&console.error("search arg muti",s,u);var c=u[0];if(c){var p=n[c];if("CustomComponentTable"===p.metaType||"CustomComponentTableH5"===p.metaType)return p}}}function U(e){var t,n=e.beforeOpenDialog,s=e.afterOpenDialog,l=e.middleOpenDialog,u=e.components,c=e.rootValue,d=e.polyfillConfigs,h=e.pagePopupMap,m=e.axiosInstance,y=e.dynamicMapComp,v=e.dynamicHireRelat,b=e.lang,_=e.buttonActions,E=e.openChildDialog,x=e.appContext,S=e.compConfig,T=(0,I.Ho)({extendAttr:h.extendAttr}),P=h.popupBusiIdentityId,A=g()(y),w=R(h.inParamMappingList||[],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v}),C="1"==(null==h?void 0:h.objOrList),O=(null==h||null===(t=h.outParamMappingList)||void 0===t?void 0:f()(t).call(t,(function(e){var t=e.orignParam?e.orignParam.split("->"):[],n=e.orignParam?"1"!=(null==T?void 0:T.bindFormData)||C?t[t.length-1]:t.join("."):"";return(0,i.A)((0,i.A)({},e),{},{orignParam:n})})))||[],M={},k={};if(C){var N,j=[];M=null===(N=O)||void 0===N?void 0:a()(N).call(N,(function(e,t){var n=t.orignParam,r=t.destParam,i=t.primaryKeyFlag,o=void 0===i?"":i,s=r?r.split("->"):[];return e[r?s[s.length-1]:""]=n,"1"==o&&j.push(n),e}),{});var L=F(O=[{orignParam:"",destParam:h.parentTable||"",primaryKeys:j,isList:!0}],{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v});k.selections=(null==L?void 0:L.refValue)||[],k.primaryKeys=j}var U={},V={},W=null,q={};h.outDisplayTrigger&&(q[h.outDisplayTrigger]=function(e){return{onClick:function(){var e,t=U.tableSelectedInfo;C&&(t=null===(e=U.tableSelectedInfo)||void 0===e?void 0:f()(e).call(e,(function(e){var t,n=(0,i.A)({},e);return p()(t=g()(M)).call(t,(function(t){M[t]&&(n[t]=e[M[t]])})),n}))),"1"!=(null==T?void 0:T.bindFormData)||C||(t=V);var n=null==S?void 0:S.middleOpenDialog,s=l;(n||s)&&(l=function(){var e=(0,o.A)((0,r.A)().mark((function e(t){var o,a;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null,s&&(o=null==s?void 0:s(t)),!o){e.next=7;break}return e.next=5,o;case 5:return a=e.sent,e.abrupt("return",null==n?void 0:n((0,i.A)((0,i.A)({},t),{},{outputParams:a})));case 7:return e.abrupt("return",null==n?void 0:n(t));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var a=t;function u(e){var t;B(O,{dynamicMapComp:y,dynamicMapCompKeys:A,dynamicHireRelat:v,outResult:e}),null===(t=W)||void 0===t||t(),z(e)}l&&(a=l({dynamicMapComp:y,rootValue:c,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:w,outputParams:t})||a),(0,I.yL)(a)?a.then((function(e){u(e)})):u(a)}}}),h.closedTrigger&&(q[h.closedTrigger]=function(e){return{onClick:function(){var e;null===(e=W)||void 0===e||e(),z()}}});var $=null==S?void 0:S.beforeOpenDialog,K=n;n=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s,a=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(t=D.dW.changeSlide)||void 0===t||t.call(D.dW,!1),n=!0,i=a.length,o=new Array(i),s=0;s<i;s++)o[s]=a[s];return K&&(n=null==K?void 0:K.apply(void 0,o)),e.next=6,n;case 6:if(!1!==e.sent){e.next=9;break}return e.abrupt("return",!1);case 9:if(!$){e.next=13;break}return e.abrupt("return",null==$?void 0:$.apply(void 0,o));case 13:return e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();var H=!0;function z(e){var t=null==S?void 0:S.afterOpenDialog,n=s;s=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var i,o,s,a,l=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(null===D.dW||void 0===D.dW||null===(i=D.dW.changeSlide)||void 0===i||i.call(D.dW,!0),o=l.length,s=new Array(o),a=0;a<o;a++)s[a]=l[a];null==n||n.apply(void 0,s),null==t||t.apply(void 0,s);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s&&s({dynamicMapComp:y,rootValue:c,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:w,outputParams:e})}function G(){W=E({buttonActions:_,dialogProps:(0,i.A)((0,i.A)({},T||{}),{},{beforeClose:function(){z()}}),parentRootValue:c,parentDynamicMapComp:y,selectionsObj:k,busiIdentityId:P,axiosInstance:m,lang:b,loadEvnetsReq:w,initData:w,components:u,parentSelects:null==S?void 0:S._selects,polyfillConfigs:(0,i.A)((0,i.A)({},q),d||{}),rootStoreChange:function(e){U=e},rootDataChange:function(e){V=e}},x)}n&&(H=n({dynamicMapComp:y,rootValue:c,dynamicHireRelat:v,compConfig:S,pagePopupMap:h,inputParams:w})),null!=H?(0,I.yL)(H)?H.then((function(e){!1!==e&&G()})):H&&G():G()}function V(e,t){return W.apply(this,arguments)}function W(){return W=(0,o.A)((0,r.A)().mark((function e(t,n){var s,a,l,c,p,d,f,h,m,y,g,v,b,_,E,x,T,P,A,C,I,D,k,N,j,L;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=n.beforeDataValidRequestService,c=n.afterDataValidRequestService,p=n.confirmInstance,d=n.dynamicMapComp,f=n.requestTraceId,h=n.compConfig,m=n.mixinServiceConfig,y=n.rootValue,g=n.builtPolyfillReq,n.axiosInstance,v=n.lang,b=y||{},_=w.dL,((T=null==h?void 0:h.beforeDataValidRequestService)||l)&&(E=function(){var e=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=!0,n=s.length,i=new Array(n),o=0;o<n;o++)i[o]=s[o];return l&&(t=null==l?void 0:l.apply(void 0,i)),e.next=5,t;case 5:if(!1!==e.sent){e.next=8;break}return e.abrupt("return",!1);case 8:if(!T){e.next=12;break}return e.abrupt("return",null==T?void 0:T.apply(void 0,i));case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),((P=null==h?void 0:h.afterDataValidRequestService)||c)&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==c||c.apply(void 0,t),null==P||P.apply(void 0,t)}),A=!0,E&&(A=E({dynamicMapComp:d,requestTraceId:f,mixinServiceConfig:m,rootValue:y,compConfig:h,service:t,reqData:b})),e.next=11,A;case 11:if(!1!==e.sent){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,(0,M.ZW)(_,(0,i.A)((0,i.A)((0,i.A)({aid_language:v,requestTraceId:f,busiIdentityId:t.busiIdentityId},b),g||{}),{},{pmHandleBusinessIdentity:{busiIdentityId:t.busiIdentityId,pageMetaId:t.pageMetaId,tenantId:t.tenantId,mainServiceCode:null==m?void 0:m.mainServiceCode}}),{method:"post"});case 16:if(C=e.sent,I=C.data||{},null!==(s=C.data)&&void 0!==s&&s.baseResponse&&(I=null===(D=C.data)||void 0===D?void 0:D.baseResponse),k=I.resultCode,N=(null===(a=I)||void 0===a?void 0:a.resultMessage)||"",j="",L=!1,O.O.SUCCESS===k){e.next=40;break}e.t0=k,e.next=e.t0===O.O.WARNING?27:e.t0===O.O.ERROR?30:e.t0===O.O.INFO?33:e.t0===O.O.OTHER?35:37;break;case 27:return j="warning",L=!0,e.abrupt("break",39);case 30:return j="error",L=!1,e.abrupt("break",39);case 33:return j="info",e.abrupt("break",39);case 35:case 37:return j="error",e.abrupt("break",39);case 39:return e.abrupt("return",new(S())((function(e,t){p(N,(null==v?void 0:u()(v).call(v,"zh"))>-1?"提示":"Hint",{type:j,showCancelButton:L}).then((function(){L?(x&&x(C,{valid:!0}),e(!0)):(x&&x(C,{valid:!1}),e(!1))})).catch((function(){x&&x(C,{valid:!1}),t(!1)}))})));case 40:return x&&x(C,{valid:!0}),e.abrupt("return",!0);case 42:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}function q(e){if("1"==(null==e?void 0:e.closedType)){var t=window.top;null==t||t.close()}else{var n;null===(n=window)||void 0===n||null===(n=n.history)||void 0===n||n.back()}}function $(){return K.apply(this,arguments)}function K(){return K=(0,o.A)((0,r.A)().mark((function e(){var t,n,i,o,s,a,l,u,c,p,d,f,h,m,y,g,v,_,E,x,S,T,P,A,w,C,O,I,M,D,N,j,L,R,B,F=arguments;return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=F.length>0&&void 0!==F[0]?F[0]:{}).beforeDataValidRequestService,o=n.afterDataValidRequestService,s=n.beforeRequestService,a=n.afterRequestService,l=n.beforeOpenDialog,u=n.afterOpenDialog,c=n.middleOpenDialog,p=n.components,d=n.props,f=n.requestTraceId,h=n.axiosInstance,m=n.polyfillConfigs,y=n.buttonActions,g=n.rootValue,v=n.confirmInstance,_=n.dialogReq,E=n.dynamicMapComp,x=n.messageInstance,S=n.openChildDialog,T=n.messageCb,P=n.lang,A=n.builtPolyfillReq,w=n.appContext,C=d.config.lcpPageServiceMapVOList||[],O=b()(C).call(C,(function(e){return"1"==e.serviceType})),null==(I=(null===(t=d.config)||void 0===t?void 0:t.lcpPageRuleVOList)||[])||!I.length){e.next=11;break}return M=I[0],e.next=8,V(M,{dynamicMapComp:E,requestTraceId:f,rootValue:g,axiosInstance:h,mixinServiceConfig:O,compConfig:d.config,confirmInstance:v,builtPolyfillReq:A,beforeDataValidRequestService:i,afterDataValidRequestService:o,lang:P});case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:null!=C&&C.length&&(N=null===(D=d.config)||void 0===D?void 0:D.dynamicHireRelat,k({serviceList:C,axiosInstance:h,requestTraceId:f,rootValue:g,dynamicMapComp:E,dynamicHireRelat:N,messageInstance:x,messageCb:T,compConfig:d.config,dialogReq:_,lang:P,beforeRequestService:s,afterRequestService:a})),(j=d.config.lcpPagePopupMapVO)&&(R=null===(L=d.config)||void 0===L?void 0:L.dynamicHireRelat,U({beforeOpenDialog:l,afterOpenDialog:u,middleOpenDialog:c,components:p,rootValue:g,polyfillConfigs:m,pagePopupMap:j,axiosInstance:h,dynamicMapComp:E,dynamicHireRelat:R,appContext:w,lang:P,messageCb:T,buttonActions:y,openChildDialog:S,compConfig:d.config})),(B=d.config.lcpPageClosedMapVO)&&q(B);case 16:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}},84667:(e,t,n)=>{n.d(t,{W:()=>h,A:()=>l});var r=n(75286),i=n(56255),o=n.n(i),s=n(86226),a=n.n(s);n(2892),n(42710);const l={inheritAttrs:!1,name:"LazyLoadComponent",emits:["beforeInit","init","before-enter","before-leave","after-enter","after-leave"],props:{config:Object,timeout:{type:Number},tagName:{type:String,default:""},viewport:{type:"undefined"!=typeof window?window.HTMLElement:Object,default:function(){return null}},threshold:{type:String,default:"0px"},direction:{type:String,default:"vertical"},maxWaitingTime:{type:Number,default:50}},setup:function(e,t){var n=t.slots,i=t.emit,s=(t.attrs,Math.random()),l=(0,r.ref)(null),u=null,c=(0,r.reactive)({isInit:!1,timer:null,io:null,loading:!1});function p(e){null==e||a()(e).call(e,(function(e){var t;(e.isIntersecting||e.intersectionRatio)&&(d(),null===(t=u)||void 0===t||t.unobserve(l.value))}))}function d(){var t;i("beforeInit"),c.loading=!0,t=function(){c.isInit=!0,i("init")},o()((function(){c.isInit||t()}),e.maxWaitingTime),(window.requestAnimationFrame||function(e){return o()(e,1e3/60)})(t)}function f(t){t&&(u&&l.value&&u.unobserve(l.value),l.value=t,c.isInit||function(){if(!e.timeout){var t;switch(e.direction){case"vertical":t="".concat(e.threshold," 0px");break;case"horizontal":t="0px ".concat(e.threshold)}try{(u=new window.IntersectionObserver(p,{rootMargin:t,root:e.viewport,threshold:[0,Number.MIN_VALUE,.01,.25,.5,.75,1]})).observe(l.value)}catch(e){d()}}}())}return e.timeout&&o()((function(){d()}),e.timeout),(0,r.onBeforeUnmount)((function(){var t;u&&(console.log("props.config=:",e.config),null===(t=u)||void 0===t||t.disconnect())})),function(){return(0,r.createVNode)(r.Fragment,null,[c.isInit?null==n?void 0:n.default(c.loading):(0,r.createVNode)("div",{style:"width: 100%",key:s,ref:f},[null!=n&&n.skeleton?null==n?void 0:n.skeleton():null])])}}};var u=n(29544),c=n.n(u),p=n(8628),d=n.n(p);const f=c()({name:"LazyLoadSkeleton"},{__name:"LazyLoadSkeleton",props:{type:{type:String,default:"text",validator:function(e){var t;return d()(t=["text","avatar","image","button"]).call(t,e)}},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:null},animated:{type:Boolean,default:!0},round:{type:Boolean,default:!1}},setup:function(e){var t=e,n=(0,r.computed)((function(){var e={};return t.width&&(e.width=isNaN(t.width)?t.width:"".concat(t.width,"px")),t.height&&(e.height=isNaN(t.height)?t.height:"".concat(t.height,"px")),t.round&&(e.borderRadius="50%"),e}));return function(t,i){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["skeleton-item","skeleton-".concat(e.type),e.animated&&"skeleton-animated"]),style:(0,r.normalizeStyle)(n.value)},[(0,r.renderSlot)(t.$slots,"default")],6)}}});n(87128);const h=(0,n(66262).A)(f,[["__scopeId","data-v-5517e618"]])},29915:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(49859),i=(n(2892),n(29544)),o=n.n(i),s=n(36586),a=n.n(s),l=n(75286),u={class:"simple-form-item-content el-form-item__content"};const c=o()({inheritAttrs:!1,name:"SimpleFormItemPc"},{__name:"index",props:{label:String,labelWidth:[String,Number],labelPosition:String},setup:function(e){var t=(0,l.useAttrs)(),n=e,i=(0,l.inject)("_formContextKey"),o=(0,l.inject)(i,void 0),s=(0,l.computed)((function(){if("top"===(null==o?void 0:o.labelPosition)||"top"===(null==n?void 0:n.labelPosition))return{};var e=n.labelWidth||(null==o?void 0:o.labelWidth)||"";return e?{width:"".concat(a()(e),"px")}:{}})),c=(0,l.computed)((function(){return[t.class||"",(0,r.A)({},"label-position__".concat(n.labelPosition||"right"),!0)]}));return function(e,n){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["simple-form-item el-form-item",c.value]),style:(0,l.normalizeStyle)((0,l.unref)(t).style)},[(0,l.createElementVNode)("label",{class:"simple-form-item-label el-form-item__label",style:(0,l.normalizeStyle)(s.value)},[(0,l.renderSlot)(e.$slots,"label")],4),(0,l.createElementVNode)("div",u,[(0,l.renderSlot)(e.$slots,"default")])],6)}}});n(76446);const p=c},82826:(e,t,n)=>{n.d(t,{S:()=>c});var r=n(16781),i=n.n(r),o=n(14166),s=n.n(o),a=n(17427),l=n(75286),u=i()(),c=function(e){var t=(0,l.inject)(u);(0,l.provide)(u,(function(n){var r=e.multiPmPageMetaList,i=e.pmPageMetaList;if(r&&r.length){var o=s()(r).call(r,(function(e){return s()(e).call(e,(function(e){return e._componentLoad}))}));o&&(e._componentLoad=!0,null==t||t(e))}else{var a=s()(i).call(i,(function(e){return e._componentLoad}));a&&(e._componentLoad=!0,null==t||t(e))}})),(0,l.onMounted)((function(){var n=e.multiPmPageMetaList,r=e.pmPageMetaList;(n&&0!==n.length||r&&0!==r.length)&&!e.renderby&&-1===(0,a.Tn)(a.jK,e.metaType)||(e._componentLoad=!0,null==t||t(e))}))}},70846:(e,t,n)=>{n.d(t,{K:()=>_});var r=n(22204),i=n(49859),o=n(56255),s=n.n(o),a=n(66615),l=n.n(a),u=n(50697),c=n.n(u),p=n(96319),d=n.n(p),f=n(86226),h=n.n(f),m=(n(27495),n(71761),n(25440),n(75286)),y=n(9318),g=n(71835),v=n(17427);function b(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"update:modelValue",a=this.OPEN_DATA_RULES,l=this.hireRelatMapRules,u=this.messageInstance,c=this.rootValue,p=this.ruleExecuter,d=this.dataLoad,f=this.dynamicMapComp,h=this.lang,b=this._mapComp,_=l.value[e.hireRelat],E=e.metaCode;if("update:modelValue"!==o){var x=o.match(/^update:(\w+)$/);if(!x)return;E=x[1];var S=e.dynamicHireRelat.replace(/->\w+$/,"->".concat(E));e=f[S]}return(0,m.computed)({get:function(){var n,r;if(e){var i=null!==(n=E?null===(r=t.modelValue)||void 0===r?void 0:r[E]:t.modelValue)&&void 0!==n?n:null;return"update:modelValue"===o&&null==i&&(0,g.A)(e),e&&(e.bindValue=i),e&&(!d.value||e.eventInit||e.notInit||s()((function(){null==p||p.run({rootValue:c,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:u,_mapComp:b,isInit:!0}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:u},_,!0,a),(0,v.Ts)(e,"eventInit",!0)}),0)),i}},set:function(o){if(e){var l=t.modelValue,d=E;if(l){var g,x=null==l?void 0:l[d];if(null!==(g=e)&&void 0!==g&&g.frameSet&&(d||(x=l),x&&("object"!==(0,r.A)(x)&&"object"!==(0,r.A)(o)||(o=(0,v.Vv)(x,o)))),(0,v.vr)(x)&&(0,v.vr)(o)&&x===o)return;try{d?t.modelValue[d]=o:t.modelValue=o}catch(t){console.log("config",e,d)}}else{e.parent&&(e.parent.frameSet=!0),(0,m.nextTick)((function(){e.parent&&(e.parent.frameSet=!1)}));var S=(0,i.A)({},d,o);d||(S=o),n("update:modelValue",S)}e&&s()((function(){null==p||p.run({rootValue:c,rules:_,config:e,dynamicMapComp:f,lang:h,messageInstance:u,_mapComp:b}),y.Ay.call({config:e,dynamicMapComp:f,lang:h,_mapComp:b,messageInstance:u},_,!1,a)}),0)}}})}function _(e,t,n){var r=(0,m.inject)("hireRelatMapRules"),i=(0,m.inject)("dataLoad"),o=(0,m.inject)("dynamicMapComp"),s=(0,m.inject)("lang"),a=(0,m.inject)("_mapComp"),u=(0,m.inject)("rootValue"),p=(0,m.inject)("_ruleExecuter"),f=(0,m.inject)("_messageInstance"),y={OPEN_DATA_RULES:n,hireRelatMapRules:r,dataLoad:i,dynamicMapComp:o,lang:s,rootValue:u,_mapComp:a,ruleExecuter:p,messageInstance:null==f?void 0:f.value},g=(0,m.reactive)({}),v=b.call(y,e.config,e,t);return g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v,{modelValue:v,vModelObjs:g,initVmodels:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l()(n)||(n=c()(n)),n=d()(n).call(n,(function(e){return e.match(/^update:(\w+)$/)})),h()(n).call(n,(function(n){if("string"==typeof n){var r=b.call(y,e.config,e,t,n);if(r){var i=n.match(/^update:(\w+)$/);g["onUpdate:".concat(i[1])]=function(e){r.value=e},g[i[1]]=r}}})),g["onUpdate:modelValue"]=function(e){v.value=e},g.modelValue=v}}}},68999:(e,t,n)=>{n.d(t,{K:()=>o}),n(56255),n(27495),n(71761),n(25440);var r=n(75286),i=(n(9318),n(71835),n(17427));function o(e){return{modelValue:(0,r.computed)({get:function(){var t=e._rootValue,n=e.dynamicHireRelat;return(0,i.V9)((0,r.unref)(t),n,"->")},set:function(t){var n=e._rootValue,r=e.dynamicHireRelat;return(0,i.oY)(n,r,t,"->")}})}}},50510:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(75286),i=n(66615),o=n.n(i),s=n(48079),a=n.n(s),l=n(11393),u=n.n(l),c=n(17427),p=n(89932);const d={name:"Renderer",inheritAttrs:!1,props:{config:{type:[Object,Array],default:function(){return null}},modelValue:{default:null},rowScope:{type:[Object],default:function(){return null}},mode:{type:String,default:""},additionConfigs:{type:Array,default:function(){return[]}}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,i=t.attrs,s=(0,r.computed)({get:function(){return e.modelValue},set:function(e){n("update:modelValue",e)}}),l=(0,r.inject)("_messageInstance"),d=(0,r.inject)("_getNativeComps"),f=(0,r.inject)("_loadModuleCache"),h=(0,r.inject)("_isH5"),m=(0,r.inject)("injectMode",""),y=(0,r.inject)("OPEN_DATA_RULES"),g=e.mode||m;(0,r.provide)("injectMode",g);var v=(0,r.inject)("indectModeRef",(0,r.ref)("")),b=(0,r.computed)((function(){return e.mode||v.value}));return(0,r.provide)("indectModeRef",b),function(){var t=o()(e.config)?e.config:[e.config];return t&&t.length?a()(t).call(t,(function(t){if((null==t?void 0:t.displayType)==c.Op)return null;if((0,c.n_)(t,y))return null;var n,o=(0,c.AP)(t,b.value),a=(0,c.fw)({messageInstance:null==l?void 0:l.value,config:t,disabled:o,getNativeComps:d,isH5:null==h?void 0:h.value,loadModuleCache:f});return a?(0,c.ZB)(t,o,null==h?void 0:h.value)((0,r.createVNode)(p.A,(0,r.mergeProps)({additionConfigs:e.additionConfigs,key:u()(n="".concat(t.metaId,"-")).call(n,t.rowIndex),component:a,config:t},i,{mode:b.value,rowScope:e.rowScope,modelValue:s.value,"onUpdate:modelValue":function(e){return s.value=e}}),null)):void 0})):null}}}},19022:(e,t,n)=>{n.d(t,{Ct:()=>M,MM:()=>N,NR:()=>B,Vf:()=>R,Vr:()=>I,Xe:()=>j,cv:()=>D,qK:()=>F});var r=n(53474),i=n(53811),o=(n(48598),n(44114),n(2892),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(86226)),s=n.n(o),a=n(31721),l=n.n(a),u=n(48079),c=n.n(u),p=n(36586),d=n.n(p),f=n(18979),h=n.n(f),m=n(11393),y=n.n(m),g=n(96319),v=n.n(g),b=n(71426),_=n.n(b),E=n(8628),x=n.n(E),S=(n(66615),n(385)),T=n.n(S),P=n(73363),A=n.n(P),w=n(17427),C=n(71835),O=["setShow","setHidden"],I={};function M(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;if(!n)return"";var i=this.config,o=(this.dynamicMapComp,i.hireRelat),s=void 0===o?"":o;if(i.dynamicHireRelat,s===n)return i.bindValue;var a=k.call(this,n,i);return 1!==a.length?null:r?null===(e=a[0])||void 0===e?void 0:e.refValue:null===(t=a[0])||void 0===t?void 0:t.bindValue}function D(e,t){var n=this;if(e)if((0,w.Qd)(e))(0,w.$3)(e,"refValue")&&(e.refValue=t);else{var r=this.config,i=k.call(this,e,r);s()(i).call(i,(function(e){if((0,w.$3)(e,"refValue"))"ElSelect"===e.metaType&&(t=(0,C.l)({config:e,val:t,isActive:!0})),e.refValue=t;else{var r,i,o=n._mapComp;null!=o&&null!==(r=o.value)&&void 0!==r&&r[e.hireRelat]&&(I[e.hireRelat]||(I[e.hireRelat]=[]),l()(i=I[e.hireRelat]).call(i,(function(e){return(null==e?void 0:e.rules)===(null==n?void 0:n.rules)&&(null==e?void 0:e.config)===(null==n?void 0:n.config)}))||I[e.hireRelat].push(n))}}))}}function k(e,t,n){var r,i,o,a,u=this,p=t.dynamicHireRelat,f=void 0===p?"":p,m=f,g="",b=/(__@__[^(->)]*__)$/,E=null==f?void 0:f.match(b);E&&(g=E[1],m=null===(a=m)||void 0===a?void 0:a.replace(b,""));for(var S=c()(r=m.split("->")).call(r,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?{idx:d()(t[2]),code:t[1]}:{idx:-1,code:e}})),T=-1,P=e.split("->"),A=0;A<P.length;A++){var w=P[A];if(S[A].code!==w){T=A;break}}var C=h()(P).call(P,T),M=c()(i=h()(S).call(S,0,T)).call(i,(function(e){var t,n=e.idx,r=e.code;return-1!==n?y()(t="".concat(r,"[")).call(t,n,"]"):r})).join("->"),D=M,k=null,N=M.match(/^([\w\W]*)\[(\d*)\]$/);N&&(D=N[1],k=N[2]);var j=this.dynamicMapComp,L=this._mapComp,R=[];if(D){var B;R=[j[y()(B="".concat(D)).call(B,g)]]}else{var F,U=C.shift();R=[j[y()(F="".concat(U)).call(F,g)]]}for(var V,W=function(){var e=C.shift(),t=[];s()(R).call(R,(function(r){if(r.multiPmPageMetaList)if(null!==k){var i=r.multiPmPageMetaList[k],o=i&&_()(i).call(i,(function(t){return t.metaCode===e}));if(!o)return;t.push(o),k=null}else{var a;if(x()(O).call(O,n)){var l,u=null==r||null===(l=r.pmPageMetaList)||void 0===l?void 0:_()(l).call(l,(function(t){return t.metaCode===e}));if(!u)return;t.push(u)}s()(a=r.multiPmPageMetaList).call(a,(function(n){var r=_()(n).call(n,(function(t){return t.metaCode===e}));r&&t.push(r)}))}else{var c,p=null==r||null===(c=r.pmPageMetaList)||void 0===c?void 0:_()(c).call(c,(function(t){return t.metaCode===e}));if(!p)return;t.push(p)}})),R=t};C.length;)W();return null!=L&&null!==(o=L.value)&&void 0!==o&&o[e]&&!v()(R).call(R,(function(e){return e.vmIsBind})).length&&(I[e]||(I[e]=[]),l()(V=I[e]).call(V,(function(e){return(null==e?void 0:e.rules)===(null==u?void 0:u.rules)&&(null==e?void 0:e.config)===(null==u?void 0:u.config)}))||I[e].push(this)),R}function N(e,t){var n=L(e),r=L(t);return n&&r?Number(e)>Number(t):e+"">t+""}function j(e,t){var n=L(e),r=L(t);return n&&r?Number(e)<Number(t):e+""<t+""}function L(e){return!isNaN(Number(e))}function R(e,t){if(!e)return null;var n=this.config;return k.call(this,e,n,t)}function B(e){if(!e)return[];var t=[],n=e.pmRuleDefVoList,o=e.pmRuleDefVOList,a=n||(null==o?void 0:v()(o).call(o,(function(e){return"1"==(null==e?void 0:e.ruleType)})))||[];return s()(a).call(a,(function(e){var n=e.pmRuleEventRelVOList||e.pmRuleEventRelVoList||[],o=c()(n).call(n,(function(t){return(0,i.A)((0,i.A)({},t),{},{ruleType:e.ruleType})}));t.push.apply(t,(0,r.A)(o))})),t}function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=t?t.split("->"):[],i=n?n.split("->"):[],o=-1,s=0;-1===o&&s<r.length&&s<i.length;){var a=r[s],l=new RegExp("^".concat(a,"(\\[\\d+\\])?$")),u=i[s];l.test(u)?(T()(r).call(r,s,1,u),s++):o=s}var c=A()(r).call(r,(function(e,t){var n=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(n,"(\\[\\d+\\])?"):"".concat(n,"(\\[\\d+\\])?"))}),""),p=new RegExp("^".concat(c,"$"));return v()(e).call(e,(function(e){return p.test(e)}))}},9318:(e,t,n)=>{n.d(t,{Ay:()=>X,Zt:()=>k});var r=n(38008),i=(n(44114),n(84864),n(57465),n(27495),n(87745),n(38781),n(71761),n(25440),n(86226)),o=n.n(i),s=n(11393),a=n.n(s),l=n(56255),u=n.n(l),c=n(50697),p=n.n(c),d=n(96319),f=n.n(d),h=n(48079),m=n.n(h),y=n(36586),g=n.n(y),v=n(22204),b=n(49859),_=(n(23288),n(2892),n(79432),n(90906),n(66615)),E=n.n(_),x=n(64007),S=n.n(x),T=n(8628),P=n.n(T),A=n(31721),w=n.n(A),C=n(19022),O=n(17427),I={COMPONENT:1,SYSTEM:2,SELF:3,COMPONENT_ENMU:4,NULL:5},M=(0,b.A)((0,b.A)((0,b.A)((0,b.A)((0,b.A)({},I.COMPONENT,(function(e){var t,n=e.tabpanelCode,r=e.value;return C.Ct.call(this,a()(t="".concat(n?n+"->":"")).call(t,r))})),I.SYSTEM,(function(e){return function(e){var t=new Date;switch(e){case N.currentDate:return(0,O.Yq)(new Date,"yyyy-MM-dd");case N.currentTimestamp:return(new Date).getTime();case N.CurrentYear:return(0,O.Yq)(new Date,"yyyy");case N.CurrentMonth:return(0,O.Yq)(new Date,"MM");case N.CurrentDay:return(0,O.Yq)(new Date,"dd");case N.CurrentAfter30Day:return t.setDate(t.getDate()+30),(0,O.Yq)(t,"yyyy-MM-dd");case N.CurrentBefore30Day:return t.setDate(t.getDate()-30),(0,O.Yq)(t,"yyyy-MM-dd");default:return e}}(e.value)})),I.SELF,(function(e){return e.value})),I.COMPONENT_ENMU,(function(e){return e.value})),I.NULL,(function(){return null}));function D(e){var t=this,n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.ruleType,n.tabpanelCode);if(!r)return!1;var o=JSON.parse(r),s=o.relation,l=o.conditions;return m()(l).call(l,(function(e){var n,r=e.refType,o=e.refValue,s=e.targetType,l=e.targetValue;if(I.COMPONENT==r){var u,c=C.Vf.call(t,a()(u="".concat(i?i+"->":"")).call(u,o));if(!c||1!==c.length)return!1}if(!M[r])return!1;var p=M[r].call(t,{tabpanelCode:i,value:o});if(I.COMPONENT==s){var d,f=C.Vf.call(t,a()(d="".concat(i?i+"->":"")).call(d,l));if(!f||1!==f.length)return!1}if(!M[s])return!1;var h=M[s].call(t,{tabpanelCode:i,value:l}),m=p=null==p?"":p,y=h=null==h?"":h;switch(p==Number(p)&&h==Number(h)&&(m=Number(p),y=Number(h)),e.symbol){case 1:return m>y;case 2:return m>=y;case 3:return m<y;case 4:return m<=y;case 5:return p==h||!h&&(0,O.cy)(p)&&!p.length;case 6:return p!=h;case 7:return"number"==typeof p&&(p="".concat(p)),!(!E()(p)&&"string"!=typeof p)&&S()(p).call(p,h)>-1;case 8:return!!P()(n=["string","number"]).call(n,(0,v.A)(h))&&new RegExp(h).test(p);default:return!1}}))[1==s?"every":"some"]((function(e){return e}))}function k(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return o()(e).call(e,(function(e){var n=function(e){var t=[],n=e||{},r=n.eventExpress,i=(n.pmRuleTargetEventVoList,n.tabpanelCode);if(!r)return!1;var s=JSON.parse(r).conditions,l=void 0===s?[]:s;return o()(l).call(l,(function(n){var r,o;n.refType!=I.COMPONENT&&n.targetType!=I.COMPONENT||(n.refType==I.COMPONENT&&t.push({key:i?a()(r="".concat(i,"->")).call(r,n.refCode||n.refValue):n.refCode||n.refValue,rules:[e]}),n.targetType==I.COMPONENT&&t.push({key:i?a()(o="".concat(i,"->")).call(o,n.targetValue):n.targetValue,rules:[e]}))})),t}(e);n&&n.length&&o()(n).call(n,(function(e){var n=e.key,r=void 0===n?"":n,i=e.rules,s=void 0===i?[]:i;t[r]?o()(s).call(s,(function(e){var n;null!==(n=t[r])&&void 0!==n&&w()(n).call(n,(function(t){return(null==t?void 0:t.relId)===(null==e?void 0:e.relId)}))||t[r].push(e)})):t[r]=s}))})),t}((0,C.NR)(e))}var N={currentDate:"1",currentTimestamp:"2",CurrentYear:"3",CurrentMonth:"4",CurrentDay:"5",CurrentAfter30Day:"6",CurrentBefore30Day:"7"};var j=n(53474),L=n(85569),R=n.n(L),B=n(38048),F=n.n(B),U=n(9665),V=n.n(U),W=n(85352),q=(0,j.A)(W.Lu),$=[],K={0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"},H={setDefaultValue:function(e,t,n){var r,i=e.targetObj,o=e.targetObjVal;if(i){var s,l=this.config,u=this.dynamicMapComp,c=a()(r="".concat(n?n+"->":"")).call(r,i),p=/^_replace:/.test(o);p&&(o=function(e,t){var n=t.config,r=t.dynamicMapComp;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,i){var o,s,a,l=null,u=null===(o=t)||void 0===o||null===(s=o.match)||void 0===s?void 0:s.call(o,/^_absoluteTarget:(.+)$/);if(t===W.DE.REF_VAL)t=null!==(a=null==n?void 0:n.bindValue)&&void 0!==a?a:"";else if(t===W.DE.CURRENT_DATE)t=(0,O.Yq)(new Date,"yyyy-MM-dd");else if(l=t.match(/^_route:(.*)$/)){var c,p=l[1],d=null==n||null===(c=n.route)||void 0===c?void 0:c.query;t=null==d?void 0:d[p]}else if("string"==typeof t&&/^_lang$/.test(t))t=null==n?void 0:n._lang;else if(null!=u&&u[1]){var f=null==r?void 0:r[u[1]];t=(null==f?void 0:f.bindValue)||""}else{var h,m,y=null===(h=t)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_assgin:(.*)$/);t=y?null==y?void 0:y[1]:""}return t}))}(null===(s=o)||void 0===s?void 0:s.replace(/^_replace:/,""),{config:l,dynamicMapComp:u}));var d="";try{d=JSON.parse(o)}catch(e){d=o||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===W.DE.REF_VAL){var f;d=null!==(f=null==l?void 0:l.bindValue)&&void 0!==f?f:""}else if(d===W.DE.CURRENT_DATE)d=(0,O.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v,b=y[1],_=null==l||null===(v=l.route)||void 0===v?void 0:v.query;d=null==_?void 0:_[b]}else if("string"==typeof d&&/^_lang$/.test(d))d=null==l?void 0:l._lang;else if("string"==typeof d&&null!=g&&g[1]){var E=null==u?void 0:u[g[1]];d=(null==E?void 0:E.bindValue)||""}else{var x,S,T=null===(x=d)||void 0===x||null===(S=x.match)||void 0===S?void 0:S.call(x,/^_assgin:(.*)$/);if(T)d=null==T?void 0:T[1];else{var P=C.Ct.call(this,c,!0);(P||"0"==P)&&(d=P)}}}C.cv.call(this,c,d)}},setClear:function(e,t,n){var r;if(!t){var i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);o()(l).call(l,(function(e){if(e){var t="";P()(q).call(q,e.metaType||e.labelType)&&(t=[]),P()($).call($,e.metaType||e.labelType)&&(t=!1),(0,O.$3)(e,"refValue")&&(e.refValue=t)}}))}}},setDisable:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);return o()(l).call(l,(function(e){e&&(e.editFlag="0")})),function(){o()(l).call(l,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.editFlag;u.push(t),e&&(e.editFlag="0")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.editFlag=n)}))}}},setRequired:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);return o()(l).call(l,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e){e&&(e.requiredFlag="0"),e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.requiredFlag;u.push(t),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.requiredFlag=n),e&&e.refConfig&&(e.refConfig.requiredFlag=n)}))}}},setHidden:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s,"setHidden");return o()(l).call(l,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){o()(l).call(l,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e,t,n,r){var i,s=e.targetObj;if(s){var l=a()(i="".concat(n?n+"->":"")).call(i,s),c=C.Vf.call(this,l,"setShow");return o()(c).call(c,(function(e){e&&/^\d+$/.test(e.displayType)&&(e.displayType="1"),e&&(e.hidden="0"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="1"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){return u()((function(){o()(c).call(c,(function(e,t){e&&/^\d+$/.test(e.displayType)&&(e.displayType="0"),e&&(e.hidden="1"),e&&e.refConfig&&/^\d+$/.test(e.refConfig.displayType)&&(e.refConfig.displayType="0"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}),0)}}},setNoRequired:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){e&&"0"!=e.requiredFlag&&(e&&(e.requiredFlag="0"),u.push((function(){e&&(e.requiredFlag="1")})))})),function(){o()(u).call(u,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.requiredFlag;u.push(t),e&&(e.requiredFlag="0")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.requiredFlag=n)}))}}},setNoDisable:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s);return o()(l).call(l,(function(e){e&&(e.editFlag="1")})),function(){o()(l).call(l,(function(e){e&&(e.editFlag="0")}))}}},setNoDisableNotEffect:function(e,t,n){var r,i=e.targetObj;if(i){var s=a()(r="".concat(n?n+"->":"")).call(r,i),l=C.Vf.call(this,s),u=[];return o()(l).call(l,(function(e){var t=e&&e.editFlag;u.push(t),e&&(e.editFlag="1")})),function(){o()(l).call(l,(function(e,t){var n=u[t];e&&(e.editFlag=n)}))}}},limitDataRange:function(e,t,n){var r,i=this,s=e.targetObj,l=e.targetObjVal,u=void 0===l?"":l;if(s){var c,d=a()(r="".concat(n?n+"->":"")).call(r,s);if((c=(null==u?void 0:S()(u).call(u,"~"))>-1?u.split("~"):u.split(","))&&c.length){var f=[],h=C.Vf.call(this,d);return o()(h).call(h,(function(t){var n=!1,r={};if(f.push(r),t){var s=i.config,a="";if(-1!==(0,O.Tn)(["ElDatePicker"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var l=c[0],u=c[1];try{a=(0,O.Ho)({extendAttr:R()({min:l,max:u}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}else{if(-1===(0,O.Tn)(["ElSelect"],(null==t?void 0:t.renderby)||(null==t?void 0:t.metaType))){var h=C.Ct.call(i,d,!0);return min&&(0,C.Xe)(h,min)&&C.cv.call(i,t,min),void(max&&(0,C.MM)(h,max)&&C.cv.call(i,t,max))}try{console.log("event==:",e),a=(0,O.Ho)({extendAttr:R()({rangeOptions:c}),metaCode:"event limitDataRange code:".concat(t.metaCode)},null==s?void 0:s.bindValue)}catch(e){a=""}}if(delete a.metaCode,(0,O.Qd)(a)){var m,y,g=p()(a);o()(g).call(g,(function(e){if(r[e]=t[e],(0,O.$3)(t,e)||(n=!0),"string"==typeof a[e]){var o=i.config,s=null==o?void 0:o.bindValue;t[e]=a[e].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return F()(n=V()(t).call(t)).call(n)===W.DE.REF_VAL?s:F()(r=V()(t).call(t)).call(r)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else t[e]=a[e]})),n&&(null==t||null===(m=t.wrapVm)||void 0===m||null===(m=m.proxy)||void 0===m||null===(y=m.$forceUpdate)||void 0===y||y.call(m))}}})),function(){o()(h).call(h,(function(e,t){var n=f[t];if(e){var r=p()(n);o()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e,t,n){var r,i=e.targetMsg,o=e.targetMsgEn,s=S()(r=this.lang.value).call(r,"zh")>-1?i:o;this.messageInstance.warning(s,"",{showCancelButton:!1})},openThePage:function(e,t,n){var r=e.targetObjVal;r&&window.open(r,"_blank")},setProps:function(e,t,n,r){var i,s=this,l=e.targetObj,u=e.targetObjVal;if(l){var c=a()(i="".concat(n?n+"->":"")).call(i,l),d=this.config,f="";try{f=(0,O.Ho)({extendAttr:u,metaCode:"event setPorps code:".concat(d.metaCode)},null==d?void 0:d.bindValue)}catch(e){f=""}if(delete f.metaCode,(0,O.Qd)(f)){var h=C.Vf.call(this,c),m=[],y=p()(f);return o()(h).call(h,(function(e){var t,n,r=!1,i={};e&&(o()(y).call(y,(function(t){if(i[t]=e[t],(0,O.$3)(e,t)||(r=!0),"string"==typeof f[t]){var n=s.config,o=null==n?void 0:n.bindValue;e[t]=f[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return F()(n=V()(t).call(t)).call(n)===W.DE.REF_VAL?o:F()(r=V()(t).call(t)).call(r)===W.DE.CURRENT_DATE?(0,O.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=f[t]})),m.push(i),r&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(n=t.$forceUpdate)||void 0===n||n.call(t)))})),function(){o()(h).call(h,(function(e,t){var n=m[t];e&&o()(y).call(y,(function(t){e[t]=n[t]}))}))}}}}};function z(e,t,n,r){var i=this;return e=e||[],m()(e).call(e,(function(e){var o=e.eventId,s=K[o];return console.log("evnet===:",s,e),H[s]&&H[s].call(i,e,t,n,r)}))}var G={},Y={};function X(e,t,n){var i=this;if(!n){e=e||[],this.rules=e;var s=this.config,l=s.dynamicHireRelat,c=s.columnId,d=s.id;s.metaCode,e&&e.length&&o()(e).call(e,(function(e){var n,s,h;if(e){var m=e.pmRuleTargetEventVoList,y=e.pmRuleTargetEventVOList,g=e.relId,v=e.tabpanelCode,b=a()(n=a()(s=a()(h="".concat(g,"__")).call(h,c||"")).call(s,d||"","__")).call(n,l);if(D.call(i,e))u()((function(){var n,r;G[b]&&o()(n=G[b]).call(n,(function(e){if(e){var t=null==e?void 0:e();t&&(Y[b]||(Y[b]=[]),Y[b].push(t))}})),Y[b]&&(null===(r=Y[b])||void 0===r||o()(r).call(r,(function(e){return e&&clearTimeout(e)})));var s=z.call(i,m||y,t,v,e);G[b]=s}),0);else{var _=p()(G),E=f()(_).call(_,(function(e){var t=e.split("__"),n=(0,r.A)(t,3),i=n[0],o=(n[1],n[2]);if(i==g){if(o===l)return!0;for(var s=J(o).codes,a=J(l).codes,u=0;u<a.length;u++){var c=a[u],p=s[u];if(!p||c.code!==p.code)return!1;if(c.idx!==p.idx)return!1}return!0}return!1}));o()(E).call(E,(function(e){var t;G[e]&&o()(t=G[e]).call(t,(function(t){if(t){var n=t();n&&(Y[e]||(Y[e]=[]),Y[e].push(n))}})),delete G[e]}))}}}))}}function J(e){var t,n="",r=m()(t=e.split("->")).call(t,(function(e){var t=null==e?void 0:e.match(/^(\w+)\[(\d+)\]$/);return t?(n+=n?"->".concat(t[1]):t[1],{idx:g()(t[2]),code:t[1]}):(n+=n?"->".concat(e):e,{idx:-1,code:e})}));return{nativeRelat:n,codes:r}}},70392:(e,t,n)=>{n.d(t,{K9:()=>k,jA:()=>M});var r=n(53474),i=n(86226),o=n.n(i),s=n(26327),a=n.n(s),l=n(14166),u=n.n(l),c=n(64007),p=n.n(c),d=n(85569),f=n.n(d),h=n(50697),m=n.n(h),y=n(38048),g=n.n(y),v=n(9665),b=n.n(v),_=n(48079),E=n.n(_),x=n(11393),S=n.n(x),T=n(385),P=n.n(T),A=(n(44114),n(23288),n(79432),n(27495),n(90906),n(71761),n(25440),n(30679)),w=n(85352),C=n(17427),O=n(75286),I=((0,r.A)(w.Lu),{0:"setHidden",1:"setRequired",2:"setDisable",3:"setClear",4:"setDefaultValue",5:"limitDataRange",6:"setPopup",7:"openThePage",8:"setShow",9:"setNoRequired",10:"setNoDisable",11:"setDisableNotEffect",12:"setRequiredNotEffect",13:"setNoRequiredNotEffect",14:"setNoDisableNotEffect",16:"setProps"}),M={},D={setDefaultValue:function(e){var t=e.event,n=e.rootValue,r=e.mapComp,i=e.route,o=e.lang,s=e.currentPath,a=(e.isInit,t.targetObj),l=t.targetObjVal;if(a){var u,c="".concat(a),p=/^_replace:/.test(l);p&&(l=function(e,t){var n=t.currentPath,r=t.rootValue,i=t.lang,o=t.route;return null==e?void 0:e.replace(/\$\{([^}]+)\}/g,(function(e,t,s){var a,l,u=null,c=null===(a=t)||void 0===a||null===(l=a.match)||void 0===l?void 0:l.call(a,/^_absoluteTarget:(.+)$/);if(t===w.DE.REF_VAL){var p=(0,C.V9)((0,O.unref)(r),n,"->");t=null!=p?p:""}else if(t===w.DE.CURRENT_DATE)t=(0,C.Yq)(new Date,"yyyy-MM-dd");else if(u=t.match(/^_route:(.*)$/)){var d=u[1],f=null==o?void 0:o.query;t=null==f?void 0:f[d]}else if("string"==typeof t&&/^_lang$/.test(t))t=i;else if(null!=c&&c[1])t=(0,C.V9)((0,O.unref)(r),c[1],"->")||"";else{var h,m,y=null===(h=t)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_assgin:(.*)$/);t=y?null==y?void 0:y[1]:""}return t}))}(null===(u=l)||void 0===u?void 0:u.replace(/^_replace:/,""),{currentPath:s,rootValue:n,lang:o,route:i,dynamicMapComp}));var d="";try{d=JSON.parse(l)}catch(e){d=l||""}if("number"==typeof d&&(d="".concat(d)),p);else if(d===w.DE.REF_VAL){var f=(0,C.V9)((0,O.unref)(n),s,"->");d=null!=f?f:""}else if(d===w.DE.CURRENT_DATE)d=(0,C.Yq)(new Date,"yyyy-MM-dd");else{var h,m,y=null,g=null===(h=d)||void 0===h||null===(m=h.match)||void 0===m?void 0:m.call(h,/^_absoluteTarget:(.+)$/);if("string"==typeof d&&(y=d.match(/^_route:(.*)$/))){var v=y[1],b=null==i?void 0:i.query;d=null==b?void 0:b[v]}else if("string"==typeof d&&/^_lang$/.test(d))d=o;else if("string"==typeof d&&null!=g&&g[1])d=(0,C.V9)((0,O.unref)(n),g[1],"->")||"";else{var _,E,x=null===(_=d)||void 0===_||null===(E=_.match)||void 0===E?void 0:E.call(_,/^_assgin:(.*)$/);if(x)d=null==x?void 0:x[1];else{var S=(0,A.Ct)((0,O.unref)(n),c,s);(S||"0"==S)&&(d=S)}}}(0,A.cv)(c,d,r,n,s)}},setClear:function(e){var t=e.event,n=e.rootValue,r=e.mapComp,i=e.currentPath;if(!e.isInit){var o=t.targetObj;if(o){var s="".concat(o);(0,A.cv)(s,"",r,n,i)}}},setDisable:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s,a="".concat(i);return s=(0,A.Vf)({codesStr:a,dynamicMapComp:n,currentPath:r}),o()(s).call(s,(function(e){e&&(e.editFlag="0")})),function(){o()(s).call(s,(function(e){e&&(e.editFlag="1")}))}}},setDisableNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="0")})),function(){o()(a).call(a,(function(e,t){e&&(e.editFlag=e._originEditFlag)}))}}},setRequired:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(l).call(l,(function(e){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e){if(e&&(e.requiredFlag="0"),e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0")}))}}},setRequiredNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(l).call(l,(function(e){(0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")})),function(){o()(l).call(l,(function(e,t){if(e&&(e.requiredFlag=e._originRequiredFlag),e.isColumn){if("0"==e._originRequiredFlag){var n,r,i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.pmPageMetaList)||[],o=(null==e||null===(r=e.parent)||void 0===r?void 0:r.multiPmPageMetaList)||[],s=null==i?void 0:a()(i).call(i,(function(t){return t.metaCode===e.metaCode}));null!=o&&u()(o).call(o,(function(e){var t;return"0"==(null===(t=e[s])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}}else"0"==e._originRequiredFlag&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}}},setHidden:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,e.relIdKey,t.targetObj);if(i){var s,a="".concat(i);return s=(0,A.Vf)({codesStr:a,dynamicMapComp:n,currentPath:r}),o()(s).call(s,(function(e){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")})),function(){o()(s).call(s,(function(e,t){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")}))}}},setShow:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r});return o()(a).call(a,(function(e){e&&(e.hidden="0"),e&&e.refConfig&&(e.refConfig.hidden="0")})),function(){o()(a).call(a,(function(e,t){e&&(e.hidden="1"),e&&e.refConfig&&(e.refConfig.hidden="1")}))}}},setNoRequired:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),c=[];return o()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if(e&&(e.requiredFlag="0"),e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");c.push((function(){e&&(e.requiredFlag="1"),e&&e.refConfig&&(e.refConfig.requiredFlag="1")}))}})),function(){o()(c).call(c,(function(e){return e()}))}}},setNoRequiredNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),l=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),c=[];return o()(l).call(l,(function(e){if(e&&"0"!=e.requiredFlag){if((0,C.$3)(e,"_originRequiredFlag")||(e._originRequiredFlag=e.requiredFlag),e&&(e.requiredFlag="0"),e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag="0")}else e&&e.refConfig&&(e.refConfig.requiredFlag="0");c.push((function(){if(e&&(e.requiredFlag=e._originRequiredFlag),"0"==e._originRequiredFlag)if(e.isColumn){var t,n,r=(null==e||null===(t=e.parent)||void 0===t?void 0:t.pmPageMetaList)||[],i=(null==e||null===(n=e.parent)||void 0===n?void 0:n.multiPmPageMetaList)||[],o=null==r?void 0:a()(r).call(r,(function(t){return t.metaCode===e.metaCode}));null!=i&&u()(i).call(i,(function(e){var t;return"0"==(null===(t=e[o])||void 0===t?void 0:t.requiredFlag)}))&&e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag);else e&&e.refConfig&&(e.refConfig.requiredFlag=e._originRequiredFlag)}))}})),function(){o()(c).call(c,(function(e){return e()}))}}},setNoDisable:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),l=[];return o()(a).call(a,(function(e){"1"!=(null==e?void 0:e.editFlag)&&(e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag="0")})))})),function(){o()(l).call(l,(function(e){return e()}))}}},setNoDisableNotEffect:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp),r=e.currentPath,i=(e.isInit,t.targetObj);if(i){var s="".concat(i),a=(0,A.Vf)({codesStr:s,dynamicMapComp:n,currentPath:r}),l=[];return o()(a).call(a,(function(e){(0,C.$3)(e,"_originEditFlag")||(e._originEditFlag=e.editFlag),e&&(e.editFlag="1"),l.push((function(){e&&(e.editFlag=e._originEditFlag)}))})),function(){o()(l).call(l,(function(e){return e()}))}}},limitDataRange:function(e){var t=e.event,n=e.rootValue,r=(e.mapComp,e.dynamicMapComp),i=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal,l=void 0===a?"":a;if(s){var u,c="".concat(s),d=[];if((l=l||"")&&(d=(null===(u=l)||void 0===u?void 0:p()(u).call(u,"~"))>-1?l.split("~"):l.split(",")),d&&d.length){var h=(0,A.Vf)({codesStr:c,dynamicMapComp:r,currentPath:i});return o()(h).call(h,(function(e){var r=!1,s={};if(e._eventLimitDataRageCbProps=s,e){var a="";if(-1!==(0,C.Tn)(["ElDatePicker"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var l=d[0],u=d[1];try{a=(0,C.Ho)({extendAttr:f()({min:l,max:u}),metaCode:"event setPorps code, target path: ".concat(i)},(0,C.V9)((0,O.unref)(n),i,"->"))}catch(e){a=""}}else{if(-1===(0,C.Tn)(["ElSelect"],(null==e?void 0:e.renderby)||(null==e?void 0:e.metaType))){var c=(0,C.V9)((0,O.unref)(n),e.dynamicHireRelat,"->");return min&&(0,A.Xe)(c,min)&&(0,C.oY)(n,e.dynamicHireRelat,min,"->"),void(max&&(0,A.MM)(c,max)&&(0,C.oY)(n,e.dynamicHireRelat,max,"->"))}try{console.log("event==:",t),a=(0,C.Ho)({extendAttr:f()({rangeOptions:d}),metaCode:"event setPorps code, target path: ".concat(i)},(0,C.V9)((0,O.unref)(n),i,"->"))}catch(e){a=""}}if(delete a.metaCode,(0,C.Qd)(a)){var p,h,y=m()(a);o()(y).call(y,(function(t){if(s[t]=e[t],(0,C.$3)(e,t)||(r=!0),"string"==typeof a[t]){var o=(0,C.V9)((0,O.unref)(n),i,"->");e[t]=a[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,r;return g()(n=b()(t).call(t)).call(n)===w.DE.REF_VAL?o:g()(r=b()(t).call(t)).call(r)===w.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=a[t]})),r&&(null==e||null===(p=e.wrapVm)||void 0===p||null===(p=p.proxy)||void 0===p||null===(h=p.$forceUpdate)||void 0===h||h.call(p))}}})),function(){o()(h).call(h,(function(e,t){var n=e._eventLimitDataRageCbProps;if(e){var r=m()(n);o()(r).call(r,(function(t){e[t]=n[t]}))}}))}}}},setPopup:function(e){var t=e.event,n=(e.rootValue,e.lang),r=(e.mapComp,e.dynamicMapComp,e.currentPath,e.isInit,t.targetMsg),i=t.targetMsgEn,o=(null==n?void 0:p()(n).call(n,"zh"))>-1?r:i;messageInstance.warning(o,"",{showCancelButton:!1})},openThePage:function(e){var t=e.event,n=(e.rootValue,e.mapComp,e.dynamicMapComp,e.currentPath,e.messageInstance,e.isInit,t.targetObjVal);n&&window.open(n,"_blank")},setProps:function(e){var t=e.event,n=e.rootValue,r=(e.mapComp,e.dynamicMapComp),i=e.currentPath,s=(e.messageInstance,e.isInit,t.targetObj),a=t.targetObjVal;if(s){var l="".concat(s),u=(0,A.Vf)({codesStr:l,dynamicMapComp:r,currentPath:i}),c="";try{c=(0,C.Ho)({extendAttr:a,metaCode:"event setPorps code, target path: ".concat(i)},(0,C.V9)((0,O.unref)(n),i,"->"))}catch(e){c=""}if(delete c.metaCode,(0,C.Qd)(c)){var p=m()(c);return o()(u).call(u,(function(e){var t,r,s=!1,a={};e._eventSetPropsCbProps=a,e&&(o()(p).call(p,(function(t){if(a[t]=e[t],(0,C.$3)(e,t)||(s=!0),"string"==typeof c[t]){var r=(0,C.V9)((0,O.unref)(n),i,"->");e[t]=c[t].replace(/\{([^}]+)\}/g,(function(e,t){var n,i;return g()(n=b()(t).call(t)).call(n)===w.DE.REF_VAL?r:g()(i=b()(t).call(t)).call(i)===w.DE.CURRENT_DATE?(0,C.Yq)(new Date,"yyyy-MM-dd"):e}))}else e[t]=c[t]})),s&&(null==e||null===(t=e.wrapVm)||void 0===t||null===(t=t.proxy)||void 0===t||null===(r=t.$forceUpdate)||void 0===r||r.call(t)))})),function(){o()(u).call(u,(function(e,t){var n=e._eventSetPropsCbProps;e&&o()(p).call(p,(function(t){e[t]=n[t]}))}))}}}}};function k(e){var t=e.events,n=e.rootValue,r=e.mapComp,i=e.dynamicMapComp,o=e.route,s=e.lang,l=e.currentPath,u=e.isInit,c=e.rule,p=e.messageInstance,d=e.relIdKey;return t=t||[],E()(t).call(t,(function(e){var t=e.eventId,f=I[t],h=D[f]&&D[f]({event:e,rootValue:n,mapComp:r,dynamicMapComp:i,route:o,lang:s,currentPath:l,isInit:u,rule:c,messageInstance:p,relIdKey:d}),m={recoverCb:null};if(h){var y,g,v=e.targetObj;!M[v]&&(M[v]=[]);var b,_=S()(y="".concat(d,"_")).call(y,f),E=a()(g=M[v]).call(g,(function(e){return e.id===_}));E>-1&&P()(b=M[v]).call(b,E,1),M[v].push({id:_,currentPath:l,action:function(){h=D[f]&&D[f]({event:e,rootValue:n,mapComp:r,dynamicMapComp:i,route:o,lang:s,currentPath:l,isInit:u,rule:c,messageInstance:p,relIdKey:d})}}),m.recoverCb=function(){var e,t;null===(e=h)||void 0===e||e();var n,r=a()(t=M[v]).call(t,(function(e){return e.id===_}));r>-1&&P()(n=M[v]).call(n,r,1)}}else m.recoverCb=h;return m}))}},30679:(e,t,n)=>{n.d(t,{Ct:()=>v,MM:()=>E,Vf:()=>T,Xe:()=>x,cv:()=>b});var r=n(385),i=n.n(r),o=n(18979),s=n.n(o),a=n(48079),l=n.n(a),u=(n(36586),n(11393)),c=n.n(u),p=(n(31721),n(86226),n(71426),n(8628),n(73363)),d=n.n(p),f=n(96319),h=n.n(f),m=n(50697),y=n.n(m),g=(n(66615),n(48598),n(44114),n(13609),n(2892),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(17427));function v(e,t,n){if(t===n)return(0,g.V9)(e,t,"->");var r,o=n,s=/(__@__[^(->)]*__)$/,a=null==n?void 0:n.match(s);a&&(a[1],o=null===(r=o)||void 0===r?void 0:r.replace(s,""));for(var l=o?o.split("->"):[],u=t?t.split("->"):[],c=-1,p=0;-1===c&&p<u.length&&p<l.length;){var d=u[p],f=new RegExp("^".concat(d,"(\\[\\d+\\])?$")),h=l[p];f.test(h)?(i()(u).call(u,p,1,h),p++):c=p}var m=u.join("->");return(0,g.V9)(e,m,"->")}function b(e,t,n,r,o){if(e){for(var a=[],l=e;l;){var u=n[l];if(u){a.unshift(u);var c=l.replace(/->\w*$/,"");l=c===l?"":c}else a=[],l=""}if(a&&a.length){for(var p=o?o.split("->"):[],d=e?e.split("->"):[],f=-1,h=0;-1===f&&h<d.length&&h<p.length;){var m=d[h],y=new RegExp("^".concat(m,"(\\[\\d+\\])?$")),v=p[h];y.test(v)?(i()(d).call(d,h,1,v),h++):f=h}var b=null;(b=-1!==f?_(s()(a).call(a,f),0,s()(d).call(d,0,f).join("->")):d.join("->"))&&(0,g.oY)(r,b,t,"->")}}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e||!e.length)return null;var r=e[t];if(n+=n?"->".concat(r.metaCode):r.metaCode,e.length===t+1)return n;var i=n;return(0,g.jG)(r)&&(i="".concat(n,"[_all]")),_(e,++t,i)}function E(e,t){var n=S(e),r=S(t);return n&&r?Number(e)>Number(t):e+"">t+""}function x(e,t){var n=S(e),r=S(t);return n&&r?Number(e)<Number(t):e+""<t+""}function S(e){return!isNaN(Number(e))}function T(e){var t=e.codesStr,n=e.dynamicMapComp,r=e.currentPath;if(!t)return null;var o=function(e){var t=e.codesStr,n=e.dynamicMapComp,r=e.currentPath,o=t,s=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=o,a="",l=/(__@__[^(->)]*__)$/,u=null==o?void 0:o.match(l);u&&(a=u[1],s=null===(t=s)||void 0===t?void 0:t.replace(l,""));for(var p=s?s.split("->"):[],f=r?r.split("->"):[],m=-1,y=0;-1===m&&y<f.length&&y<p.length;){var g=f[y],v=new RegExp("^".concat(g,"(\\[\\d+\\])?$")),b=p[y];v.test(b)?(i()(f).call(f,y,1,b),y++):m=y}var _=d()(f).call(f,(function(e,t){var n=t.replace(/([\[\]]{1})/g,(function(e,t){return"\\".concat(t)}));return e+(e?"->".concat(n,"(\\[\\d+\\])?"):"".concat(n,"(\\[\\d+\\])?"))}),""),E=new RegExp(c()(e="^".concat(_)).call(e,a,"$"));return h()(n).call(n,(function(e){return E.test(e)}))}(y()(n||{}),o,r);return s}({codesStr:t,dynamicMapComp:n,currentPath:r});return l()(o).call(o,(function(e){return n[e]}))}n(71835)},48618:(e,t,n)=>{n.d(t,{$3:()=>ae,$N:()=>pe,Dg:()=>Ee,E1:()=>ne,Ij:()=>ge,M6:()=>X,Oe:()=>he,Qd:()=>le,Tn:()=>te,Ts:()=>_e,V9:()=>Se,Vv:()=>de,X$:()=>fe,YJ:()=>ve,Yq:()=>ue,bO:()=>ie,ej:()=>ce,fN:()=>be,fz:()=>re,mg:()=>V.A,oY:()=>Pe,pp:()=>ye,q2:()=>W.A,ro:()=>oe,vr:()=>J,yL:()=>me});var r=n(53811),i=n(7252),o=n(53474),s=n(22204),a=(n(16280),n(76918),n(48598),n(44114),n(54743),n(11745),n(38309),n(16573),n(78100),n(77936),n(23288),n(2892),n(9868),n(79432),n(26099),n(84864),n(57465),n(27495),n(87745),n(90906),n(38781),n(71761),n(25440),n(90744),n(50375),n(21489),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(21903),n(91134),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(27681)),l=n.n(a),u=n(71426),c=n.n(u),p=n(27124),d=n.n(p),f=n(36586),h=n.n(f),m=n(18979),y=n.n(m),g=n(73363),v=n.n(g),b=n(86226),_=n.n(b),E=n(50697),x=n.n(E),S=n(43981),T=n.n(S),P=n(11393),A=n.n(P),w=n(66615),C=n.n(w),O=(n(11265),n(48079)),I=n.n(O),M=n(53930),D=n.n(M),k=n(87842),N=n.n(k),j=n(59261),L=n.n(j),R=n(74707),B=n.n(R),F=(n(165),n(78010),n(82895)),U=n.n(F),V=(n(80668),n(88592)),W=n(14835),q=n(36380),$=n(92049),K=n(46996),H=n(10565),z=n(12935),G=n(75286);function Y(e){var t=l()(null);return function(n){return t[n]||(t[n]=e(n))}}function X(e){if(!e)return null;var t=Number(e);if(isNaN(t)){var n=["px","%","vh","vw","rem","em"],r=c()(n).call(n,(function(t){return null==e?void 0:d()(e).call(e,t)}));return r?h()(e)+r:null}return t+"px"}function J(e){var t=(0,s.A)(e);return"undefined"===t||"boolean"===t||"number"===t||"string"===t||"symbol"===t||"bigint"===t}var Q=/-(\w)/g,Z=Y((function(e){return e.replace(Q,(function(e,t){return t?t.toUpperCase():""}))})),ee=Y((function(e){return e.charAt(0).toUpperCase()+y()(e).call(e,1)}));function te(e,t){var n=re(v()(e).call(e,(function(e,t,n){return e[t]=n,e}),{}),t);return null==n?-1:n}function ne(e,t){return-1!==te(e,null==t?void 0:t.renderby)||-1!==te(e,null==t?void 0:t.metaType)}function re(e,t){if("string"!=typeof t)return null;var n=e;if(void 0!==n[t]&&null!==n[t])return n[t];var r=Z(t);if(void 0!==n[r]&&null!==n[r])return n[r];var i=ee(r);return void 0!==n[i]&&null!==n[i]?n[i]:null}function ie(e){return"string"!=typeof e?e:ee(Z(e))}function oe(e,t){return"string"==typeof e&&"string"==typeof t&&ee(Z(e))===ee(Z(t))}var se=Object.prototype.hasOwnProperty;function ae(e,t){return se.call(e,t)}function le(e){return"[object Object]"===Object.prototype.toString.call(e)&&null!=e}function ue(e,t){var n;if(!e)return"";(0,z.$P)(e)||(e=new Date(e)),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,"".concat(e.getFullYear()).substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};return _()(n=x()(r)).call(n,(function(e){var n="".concat(r[e]);new RegExp("(".concat(e,")")).test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n:function(e){return"00".concat(e).substr(e.length)}(n)))})),t}var ce=function(e,t){if(!t)return e;if("string"!=typeof e&&"number"!=typeof e)return e;var n=le(t)?t:{decimals:2,isThousandth:!0},r=String(e).replace(/[^\d\.\-\e\E]/g,"");(null!=n&&n.decimals||0==(null==n?void 0:n.decimals))&&(r=T()(r).toFixed(n.decimals).toString());var i=r.split(".");return null!=n&&n.isThousandth&&i[0]&&(i[0]=i[0].replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")),i.join(".")};function pe(e,t,n){if(!t)return e;if(!e)return t;var r=(0,q.A)(e,t,(function(e,t){if(!t)return e;if(!e)return t;if((0,$.A)(t)&&(0,$.A)(e))switch(n){case"union":return(0,W.A)(e,t,K.A);case"intersection":return(0,H.A)(e,t,K.A);case"concat":return A()(e).call(e,t);case"replace":return t;default:throw new Error("Unknown merge array strategy: ".concat(n))}return le(t)&&le(e)?pe(e,t,n):t}));if(C()(e)&&r&&!C()(r)){var i,o=[];_()(i=x()(r)).call(i,(function(e){o[e]=r[e]})),r=o}return r}function de(e,t){var n=t;if("object"===(0,s.A)(e)&&"object"===(0,s.A)(t)&&(n=(0,q.A)(e,t,(function(e,t){if((0,$.A)(e)&&(0,$.A)(t)){for(var n=[],r=0;r<e.length&&r<t.length;r++)n.push(de(e[r],t[r]));return r<e.length?n.push.apply(n,(0,o.A)(y()(e).call(e,r))):n.push.apply(n,(0,o.A)(y()(t).call(t,r))),n}return le(t)&&le(e)?de(e,t):t}))),C()(e)&&n&&!C()(n)){var r,i=[];_()(r=x()(n)).call(r,(function(e){i[e]=n[e]})),n=i}return n}function fe(e,t,n){for(var r in t)n&&ae(e,r)||(e[r]=t[r]);return e}function he(e){return/^\s*(?:function\s*(?:\w+\s*)?\([^()]*\)\s*\{[\s\S]*?\})\s*$/.test(e)||/^\s*\((?:\s*\w+(?:\s*=\s*\w+)?\s*(?:,\s*)?)*\)\s*=>\s*(?:\{[\s\S]*?\}|[\s\S]+?)\s*$/.test(e)}function me(e){return e&&"function"==typeof e.then}function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.A)(Date,t)}function ge(){var e;return A()(e="".concat(ue(new Date,"yyyy-MM-dd hh:mm:ss"),"-")).call(e,ve())}function ve(){if("object"===("undefined"==typeof crypto?"undefined":(0,s.A)(crypto))){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();if("function"==typeof crypto.getRandomValues&&"function"==typeof Uint8Array)return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){var t=Number(e);return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function be(e,t){var n,r,i,o=e.referenceOptions,s=e.selectKey,a=[];try{var l;a=I()(l=JSON.parse((null==e?void 0:e.optionItems)||"[]")).call(l,(function(e){return{columnValue:e.value,columnDesc_zh:e.label,columnDesc:e.label_en||e.label,columnStatus:e.columnStatus}}))}catch(e){a=[]}var u=(null==t?void 0:t.value)&&(null==t||null===(n=t.value)||void 0===n?void 0:n[s])||(null==t?void 0:t.value)&&(null==t||null===(r=t.value)||void 0===r?void 0:r["".concat(e.metaCode,"ListValue")])||(null==t?void 0:t.value)&&(null==t||null===(i=t.value)||void 0===i?void 0:i[o])||a||[];return(null==e?void 0:e.priOptions)||u}function _e(e,t,n,i){e[t]=n;var o=i||{};D()(e,t,(0,r.A)({value:n,writable:!0,enumerable:!1,configurable:!0},o))}function Ee(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new(N());if(null===e||"object"!==(0,s.A)(e))switch((0,s.A)(e)){case"string":case"number":return"";default:return null}if(r.has(e))return r.get(e);if(C()(e))t=[],r.set(e,t),(n=t).push.apply(n,(0,o.A)(I()(e).call(e,(function(e){return Ee(e,r)}))));else if(e instanceof Date)t=null;else if(e instanceof L())t=new(L());else if(e instanceof B())t=new(B());else{t={},r.set(e,t);for(var i=0,a=x()(e);i<a.length;i++){var l=a[i],u=Ee(e[l],r);null!=u&&(t[l]=u)}}return t}var xe=/^([-\w]+)\[(\d+)\]/;function Se(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=n;return"string"==typeof n&&(i=n.split(r)),null!==(e=v()(i).call(i,(function(e,t){if(e){var n,r=t.match(xe);return r?null===(n=e[r[1]])||void 0===n?void 0:n[r[2]]:e[t]}return null}),t))&&void 0!==e?e:""}var Te=/^([-\w]+)\[(_all|\d+)\]/;function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";if(t&&e){var i=e;(0,G.isRef)(e)&&(i=e.value);var o=t;if("string"==typeof o&&(o=t.split(r)),o&&o.length){for(var s=i,a=function(e){var t=o[e];if(e===o.length-1)s[t]=n;else{var r=t,i=!1,a=t.match(Te);a&&(r=a[1],i=!0),!s[r]&&(s[r]=i?[]:{});var l=s[r];if(a){var u;if("_all"===a[2])return null===(u=l)||void 0===u||_()(u).call(u,(function(t){Pe(t,y()(o).call(o,e+1),n)})),1;var c=h()(a[2]);U()(c)||(!l[c]&&(l[c]={}),l=l[c])}s=l}},l=0;l<o.length&&!a(l);l++);(0,G.isRef)(e)&&(e.value=i)}}}},85352:(e,t,n)=>{n.d(t,{AP:()=>D,DE:()=>u,E0:()=>v,K4:()=>c,LX:()=>b,Lu:()=>_,MD:()=>x,Op:()=>A,R_:()=>m,UP:()=>y,V6:()=>E,Xj:()=>O,aX:()=>T,dK:()=>M,fH:()=>P,g:()=>l,jK:()=>p,jf:()=>g,of:()=>h,pL:()=>S,s1:()=>k,ue:()=>C,un:()=>f,yD:()=>w,yz:()=>I});var r=n(64007),i=n.n(r),o=n(11393),s=n.n(o),a=(n(2892),n(48618)),l={OPERATE:"operate",DETAIL:"detail",LOG:"log"},u={CURRENT_DATE:"_currentDate",CURRENT_DATE_EXCLUDE:"_currentDateExclude",CURRENT_DATE_TIME:"_currentDateTime",REF_VAL:"_refVal"},c={LIST:"list",OBJECT:"object",STRING:"string"},p=["CustomComponentTableH5"],d=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentTabPaneH5"],f="CustomComponentFormLayout",h="CustomComponentFormLayoutH5",m=["CustomComponentTabs","CustomComponentTabPane","CustomComponentCycleTabPane","CustomComponentCollapse","CustomComponentDialog","ElButton","CustomComponentTable","CustomComponentRow","CustomComponentCol","CustomComponentCycle","CustomComponentCardH5","CustomComponentCollapseH5","CustomComponentTabsH5","CustomComponentTabPaneH5","CustomComponentTableH5","cmi-cell","cmi-button","cmi-link","cmi-dropdown-menu","cmi-divider"],y=["ElInput","ElButton","CmiInput","CmiButton","ElText"],g=["CmiInput","CmiSelect","CmiPicker"],v=["CustomComponentCycle","CustomComponentCycleTabPane","CustomComponentTable"],b=["CustomComponentTabPane","CustomComponentDialog","CustomComponentCol","CustomComponentTabPaneH5"],_=["CustomComponentTable"],E=["el-select","el-date-picker","el-time-picker","el-time-select","el-cascader","el-input-number","CustomComponentTree","CustomComponentSteps"],x="el-",S="t-",T="cmi-",P="H5-",A="0",w=["ElText"],C=["ElInput","ElDatePicker","ElInputNumber"],O=["ElSelect"],I={compInfo:{type:Object,getValue:function(e,t,n){return e}},modelValue:{type:[String,Number,Object,Array,Boolean,void 0,null],getValue:function(e,t,n){return n.value}},config:{type:Object,getValue:function(e,t,n){return e}},refValue:{type:[Object,Number,String],default:"",getValue:function(e,t,n){return n}},disabled:{type:Boolean,default:!1,getValue:function(e,t,n){return D(e,t.mode)}},clearable:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.clearableFlag}},required:{type:Boolean,default:!1,getValue:function(e,t,n){return"1"==e.requiredFlag}},hidden:{type:Boolean,default:!1,getValue:function(e,t,n){return M({config:e})}},onlyRequiredFlag:{type:[Boolean,String,Number],default:!1,getValue:function(e,t,n){return e.onlyRequiredFlag}},tableData:{type:Array,default:function(){return[]},getValue:function(e,t,n){return t.tableData}},rowScope:{type:Object,getValue:function(e,t,n){return t.rowScope}},width:{type:[String,Number],default:"",getValue:function(e,t,n){return e.width?(0,a.M6)(e.width):null}},mode:{type:[String],default:"",getValue:function(e,t){return t.mode}},options:{type:Array,default:function(){return[]},getValue:function(e,t,n,r){return(0,a.fN)(e,r)}},placeholder:{type:String,default:function(){return""},getValue:function(e,t,n,r,o){return((null==o?void 0:i()(o).call(o,"zh"))>-1?e.defPlacehold:e.defPlaceholdEn)||""}},placeholderEn:{type:String,default:function(){return""},getValue:function(e,t,n,r,i){return e.defPlaceholdEn}}};function M(e){var t=e.config;return"boolean"==typeof t.hidden&&t.hidden||"1"==t.hidden||"1"==t.collapseHidden}function D(e,t){var n,r;return!(0,a.E1)(["CustomComponentTabs"],e)&&(t===l.LOG?!e.logAlong&&!(0,a.E1)(s()(n=[f]).call(n,d),e)||"0"==e.editFlag:t===l.DETAIL&&!e.detailAlong&&!(0,a.E1)(s()(r=[f]).call(r,d),e)||"0"==e.editFlag)}var k={row:"CustomComponentRow",grid:"CustomComponentRow","grid-col":"CustomComponentCol",table:"CustomComponentTable","checkbox-table":"CustomComponentTable",tab:"CustomComponentTabs","tab-pane":"CustomComponentTabPane",collapse:"CustomComponentCollapse",card:"CustomComponentCollapse",cycle:"CustomComponentCycle",input:"ElInput",textarea:"ElInput",button:"ElButton","static-text":"ElText",number:"ElInputNumber",radio:"ElRadio",checkbox:"ElCheckbox",select:"ElSelect",time:"ElTimePicker","time-range":"ElTimePicker",date:"ElDatePicker","date-range":"ElDatePicker",cascader:"ElCascader","select-employees":"CustomComponentSelectEmployees","rich-editor":"CustomComponentEditor",pagination:"ElPagination",tree:"CustomComponentTree",steps:"CustomComponentSteps","mail-send":"CustomComponentSendMail","file-import":"CustomComponentFileImport","file-export":"CustomComponentFileExport","cmi-card":"CustomComponentCardH5","cmi-collapse":"CustomComponentCollapseH5","cmi-tab":"CustomComponentTabsH5","cmi-tab-pane":"CustomComponentTabPaneH5","cmi-table":"CustomComponentTableH5","cmi-datetime":"CmiDatetimePicker"};window&&(!window["resolver-egretimp-plus"]&&(window["resolver-egretimp-plus"]={}),window["resolver-egretimp-plus"].componentPropsType=I)},71835:(e,t,n)=>{n.d(t,{A:()=>b,l:()=>_}),n(48598),n(23288),n(79432),n(27495),n(90906),n(71761),n(90744);var r=n(11265),i=n.n(r),o=n(8628),s=n.n(o),a=n(11393),l=n.n(a),u=n(57119),c=n.n(u),p=n(73363),d=n.n(p),f=n(75286),h=n(48618),m=n(85352),y=n(12935),g=n(74353),v=n.n(g);function b(e){if((e.defaultVal||e.defaultValue)&&!e.bindValue&&0!==e.bindValue&&(!(0,y.cy)(e.bindValue)||!e.bindValue.length)){var t=e.defaultVal||e.defaultValue,n=null;try{var r,o;if("string"==typeof t){var a=i()(t).call(t),u=null;if(u=a.match(/^_route:(.*)$/)){var c,p=u[1],d=null==e||null===(c=e.route)||void 0===c?void 0:c.query;n=null==d?void 0:d[p]}else if(u=a.match(/^_native:(.*)$/))n=u[1];else if(/^_lang$/.test(a))n=null==e?void 0:e._lang;else if(/^{[\w\W]*}$/.test(a)||/^\[[\w\W]*\]$/.test(a))n=JSON.parse(a);else{var g,b,E=[m.DE.CURRENT_DATE,"currentDate",m.DE.CURRENT_DATE_TIME,m.DE.CURRENT_DATE_EXCLUDE];n=s()(E).call(E,i()(g=a||"").call(g))?a===m.DE.CURRENT_DATE_TIME?(0,h.Yq)(new Date,"yyyy-MM-dd hh:mm:ss"):a===m.DE.CURRENT_DATE_EXCLUDE?v()(new Date).add(1,"day").format("YYYY-MM-DD"):(0,h.Yq)(new Date,"yyyy-MM-dd"):s()(b=["true","false"]).call(b,a)?"true"==a:a}}else n=(0,f.toRaw)(t);"ElSelect"===e.metaType&&(n=_({config:e,val:n})),console.log(l()(r=l()(o="".concat(e.dynamicHireRelat,",")).call(o,e.hireRelat," to set defaultValue, ")).call(r,n)),e.refValue=n}catch(t){console.log("set default val fail, config",e,t)}}}function _(e){var t=e.config,n=e.val,r=e.isActive,i=void 0!==r&&r,o=n;if(!(0,m.dK)({config:t})||i){var s,a,l=null==t?void 0:t.valueType,u=null==t?void 0:t.separator;if(l!==m.K4.LIST&&l!==m.K4.OBJECT){if((0,h.Qd)(n)||(0,y.cy)(n))try{o=c()(n).join(u)}catch(e){o=n}}else(n&&(0,y.Kg)(n)||(0,y.Et)(n))&&(o=null===(s="".concat(n))||void 0===s?void 0:s.split(u),l==m.K4.OBJECT&&(o=null===(a=o)||void 0===a?void 0:d()(a).call(a,(function(e,t,n){return e[n]=t,e}),{})))}return o}},17427:(e,t,n)=>{n.d(t,{$3:()=>r.$3,$N:()=>r.$N,AP:()=>o.AP,Ch:()=>i.Ch,Dg:()=>r.Dg,Ho:()=>i.Ho,KK:()=>i.KK,M9:()=>i.M9,Op:()=>o.Op,Qd:()=>r.Qd,SK:()=>i.SK,Tn:()=>r.Tn,Ts:()=>r.Ts,UP:()=>o.UP,V9:()=>r.V9,Vv:()=>r.Vv,YJ:()=>r.YJ,Yq:()=>r.Yq,ZB:()=>i.ZB,cy:()=>s.cy,ej:()=>r.ej,fN:()=>r.fN,fw:()=>i.fw,jG:()=>i.jG,jK:()=>o.jK,kL:()=>s.Tn,lb:()=>i.lb,n_:()=>i.n_,oY:()=>r.oY,q2:()=>r.q2,qg:()=>i.qg,vr:()=>r.vr,yL:()=>r.yL,yo:()=>i.yo,yz:()=>o.yz});var r=n(48618),i=n(8069),o=n(85352),s=n(12935)},12935:(e,t,n)=>{n.d(t,{$P:()=>o.A,Et:()=>a.A,Kg:()=>u.A,Tn:()=>s.A,b0:()=>c.A,cy:()=>d,kZ:()=>l.A,sw:()=>f,yr:()=>p.A});var r=n(66615),i=n.n(r),o=(n(76918),n(23288),n(26099),n(27495),n(90906),n(38781),n(22922)),s=n(89610),a=n(21879),l=n(21395),u=n(32084),c=n(69592),p=n(429);function d(e){return e&&i()(e)}function f(e){return null!=e}Object.prototype.toString},20807:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(37891),i=n(34963),o=(n(79432),n(74707)),s=n.n(o),a=n(29544),l=n.n(a),u=n(86226),c=n.n(u),p=n(50697),d=n.n(p),f=n(75286),h=[(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return V.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return R.default}});var i=n(348),o=n(349),s=n(350),a=n(362),l=n(363);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var u=n(364),c=n(365),p=n(366),d=n(4);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(368);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var h=n(369);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(27),y=n(370),g=n(371),v=n(372),b=n(373),_=n(374),E=n(172),x=n(173),S=n(174),T=n(175),P=n(176),A=n(375),w=n(376);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var C=n(26);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var O=n(377),I=n(378),M=n(177),D=n(379),k=n(380),N=n(178),j=n(381),L=n(382),R=n(383),B=n(9);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var F=n(384),U=n(385),V=n(386),W=n(181),q=n(179),$=n(171),K=n(60),H=n(387),z=n(388);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var G=n(180),Y=n(96),X=n(42),J=n(389),Q=n(390),Z=n(391),ee=n(182),te=n(170),ne=n(392),re=n(168),ie=n(393),oe=n(394),se=n(395),ae=n(98),le=n(396),ue=n(43),ce=n(397),pe=n(165),de=n(97),fe=n(164),he=n(2);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(58);t.react={isReactComponent:i.default,isCompatTag:o.default,buildChildren:s.default},t.toSequenceExpression=n(398).default},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_EXTENSIONS=void 0,Object.defineProperty(t,"File",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"buildExternalHelpers",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createConfigItem",{enumerable:!0,get:function(){return p.createConfigItem}}),Object.defineProperty(t,"createConfigItemAsync",{enumerable:!0,get:function(){return p.createConfigItemAsync}}),Object.defineProperty(t,"createConfigItemSync",{enumerable:!0,get:function(){return p.createConfigItemSync}}),Object.defineProperty(t,"getEnv",{enumerable:!0,get:function(){return s.getEnv}}),Object.defineProperty(t,"loadOptions",{enumerable:!0,get:function(){return p.loadOptions}}),Object.defineProperty(t,"loadOptionsAsync",{enumerable:!0,get:function(){return p.loadOptionsAsync}}),Object.defineProperty(t,"loadOptionsSync",{enumerable:!0,get:function(){return p.loadOptionsSync}}),Object.defineProperty(t,"loadPartialConfig",{enumerable:!0,get:function(){return p.loadPartialConfig}}),Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:!0,get:function(){return p.loadPartialConfigAsync}}),Object.defineProperty(t,"loadPartialConfigSync",{enumerable:!0,get:function(){return p.loadPartialConfigSync}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return m.parseAsync}}),Object.defineProperty(t,"parseSync",{enumerable:!0,get:function(){return m.parseSync}}),Object.defineProperty(t,"resolvePlugin",{enumerable:!0,get:function(){return o.resolvePlugin}}),Object.defineProperty(t,"resolvePreset",{enumerable:!0,get:function(){return o.resolvePreset}}),Object.defineProperty(t,"template",{enumerable:!0,get:function(){return c().default}}),Object.defineProperty(t,"tokTypes",{enumerable:!0,get:function(){return l().tokTypes}}),Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return d.transform}}),Object.defineProperty(t,"transformAsync",{enumerable:!0,get:function(){return d.transformAsync}}),Object.defineProperty(t,"transformFile",{enumerable:!0,get:function(){return f.transformFile}}),Object.defineProperty(t,"transformFileAsync",{enumerable:!0,get:function(){return f.transformFileAsync}}),Object.defineProperty(t,"transformFileSync",{enumerable:!0,get:function(){return f.transformFileSync}}),Object.defineProperty(t,"transformFromAst",{enumerable:!0,get:function(){return h.transformFromAst}}),Object.defineProperty(t,"transformFromAstAsync",{enumerable:!0,get:function(){return h.transformFromAstAsync}}),Object.defineProperty(t,"transformFromAstSync",{enumerable:!0,get:function(){return h.transformFromAstSync}}),Object.defineProperty(t,"transformSync",{enumerable:!0,get:function(){return d.transformSync}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return u().default}}),t.version=t.types=void 0;var r=n(95),i=n(453),o=n(81),s=n(278);function a(){const e=n(0);return a=function(){return e},e}function l(){const e=n(21);return l=function(){return e},e}function u(){const e=n(14);return u=function(){return e},e}function c(){const e=n(37);return c=function(){return e},e}Object.defineProperty(t,"types",{enumerable:!0,get:function(){return a()}});var p=n(82),d=n(475),f=n(488),h=n(489),m=n(490);n(1),t.version="7.23.9",t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]),t.OptionManager=class{init(e){return(0,p.loadOptionsSync)(e)}},t.Plugin=function(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=o,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,i.default)("isModuleDeclaration","isImportOrExportDeclaration"),o(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,i.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,i.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,i.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,i.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=n(96),i=n(58);function o(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},(e,t,n)=>{const r=n(48),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(47),{safeRe:s,t:a}=n(34),l=n(75),{compareIdentifiers:u}=n(128);class c{constructor(e,t){if(t=l(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return u(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,r.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,r.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null})},t.assignmentExpression=function(e,t,n){return(0,r.default)({type:"AssignmentExpression",operator:e,left:t,right:n})},t.assignmentPattern=function(e,t){return(0,r.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,r.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,r.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,n){return(0,r.default)({type:"BinaryExpression",operator:e,left:t,right:n})},t.bindExpression=function(e,t){return(0,r.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,r.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,r.default)({type:"BooleanLiteralTypeAnnotation",value:e})},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,r.default)({type:"CallExpression",callee:e,arguments:t})},t.catchClause=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.classBody=function(e){return(0,r.default)({type:"ClassBody",body:e})},t.classDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:i})},t.classExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:i})},t.classImplements=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ClassImplements",id:e,typeParameters:t})},t.classMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return(0,r.default)({type:"ClassMethod",kind:e,key:t,params:n,body:i,computed:o,static:s,generator:a,async:l})},t.classPrivateMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:i,static:o})},t.classPrivateProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:i})},t.classProperty=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:o,static:s})},t.conditionalExpression=function(e,t,n){return(0,r.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:n})},t.continueStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,r.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:i})},t.declareExportAllDeclaration=function(e){return(0,r.default)({type:"DeclareExportAllDeclaration",source:e})},t.declareExportDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n})},t.declareFunction=function(e){return(0,r.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:i})},t.declareModule=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareModule",id:e,body:t,kind:n})},t.declareModuleExports=function(e){return(0,r.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n})},t.declareTypeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:n})},t.declareVariable=function(e){return(0,r.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,r.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,r.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,r.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,r.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,r.default)({type:"DoWhileStatement",test:e,body:t})},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){return(0,r.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,r.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,r.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,r.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,r.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,r.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,r.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,r.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,r.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,r.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,r.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,r.default)({type:"ExportDefaultSpecifier",exported:e})},t.exportNamedDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n})},t.exportNamespaceSpecifier=function(e){return(0,r.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,r.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,r.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"File",program:e,comments:t,tokens:n})},t.forInStatement=function(e,t,n){return(0,r.default)({type:"ForInStatement",left:e,right:t,body:n})},t.forOfStatement=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:i})},t.forStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:i})},t.functionDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:i,async:o})},t.functionExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:i,async:o})},t.functionTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:i})},t.functionTypeParam=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})},t.genericTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,r.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"IfStatement",test:e,consequent:t,alternate:n})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,r.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,r.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,r.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,r.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,r.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,r.default)({type:"IndexedAccessType",objectType:e,indexType:t})},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.interfaceExtends=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"InterfaceExtends",id:e,typeParameters:t})},t.interfaceTypeAnnotation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,r.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,r.default)({type:"IntersectionTypeAnnotation",types:e})},t.jSXAttribute=t.jsxAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,r.default)({type:"JSXClosingElement",name:e})},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:i})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,r.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,n){return(0,r.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:n})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,r.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,r.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,r.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,r.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,r.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,r.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,r.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,n){return(0,r.default)({type:"LogicalExpression",operator:e,left:t,right:n})},t.memberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:i})},t.metaProperty=function(e,t){return(0,r.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,r.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,r.default)({type:"NewExpression",callee:e,arguments:t})},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){return(0,r.default)({type:"NullableTypeAnnotation",typeAnnotation:e})},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),o(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=o,t.objectExpression=function(e){return(0,r.default)({type:"ObjectExpression",properties:e})},t.objectMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,r.default)({type:"ObjectMethod",kind:e,key:t,params:n,body:i,computed:o,generator:s,async:a})},t.objectPattern=function(e){return(0,r.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:i,decorators:o})},t.objectTypeAnnotation=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:i,exact:o})},t.objectTypeCallProperty=function(e){return(0,r.default)({type:"ObjectTypeCallProperty",value:e,static:null})},t.objectTypeIndexer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:i,static:null})},t.objectTypeInternalSlot=function(e,t,n,i,o){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:i,method:o})},t.objectTypeProperty=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,r.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:i})},t.optionalCallExpression=function(e,t,n){return(0,r.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:n})},t.optionalIndexedAccessType=function(e,t){return(0,r.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:i})},t.parenthesizedExpression=function(e){return(0,r.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,r.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,r.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,r.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,r.default)({type:"PrivateName",id:e})},t.program=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:i,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,r.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,r.default)({type:"RecordExpression",properties:e})},t.regExpLiteral=s,t.regexLiteral=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=a,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),a(e)},t.returnStatement=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,r.default)({type:"SequenceExpression",expressions:e})},t.spreadElement=l,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),l(e)},t.staticBlock=function(e){return(0,r.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,r.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,r.default)({type:"StringLiteralTypeAnnotation",value:e})},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,r.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,r.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,r.default)({type:"TemplateLiteral",quasis:e,expressions:t})},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){return(0,r.default)({type:"ThrowStatement",argument:e})},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TryStatement",block:e,handler:t,finalizer:n})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,r.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,r.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConditionalType=t.tsConditionalType=function(e,t,n,i){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:i})},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConstructorType=t.tsConstructorType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSDeclareFunction=t.tsDeclareFunction=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:i})},t.tSDeclareMethod=t.tsDeclareMethod=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:i,returnType:o})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,r.default)({type:"TSEnumDeclaration",id:e,members:t})},t.tSEnumMember=t.tsEnumMember=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,r.default)({type:"TSExportAssignment",expression:e})},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,r.default)({type:"TSExternalModuleReference",expression:e})},t.tSFunctionType=t.tsFunctionType=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,r.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})},t.tSImportType=t.tsImportType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:n})},t.tSIndexSignature=t.tsIndexSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,r.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,r.default)({type:"TSInferType",typeParameter:e})},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,r.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,r.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,r.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n})},t.tSMethodSignature=t.tsMethodSignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:i,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,r.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,r.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:n})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,r.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,r.default)({type:"TSNonNullExpression",expression:e})},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){return(0,r.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,r.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,r.default)({type:"TSParenthesizedType",typeAnnotation:e})},t.tSPropertySignature=t.tsPropertySignature=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,r.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,r.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,r.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){return(0,r.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,r.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,r.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,r.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,r.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})},t.tSTypeParameter=t.tsTypeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeParameter",constraint:e,default:t,name:n})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,r.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,r.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n})},t.tSTypeQuery=t.tsTypeQuery=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})},t.tSTypeReference=t.tsTypeReference=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,r.default)({type:"TSUnionType",types:e})},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,r.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TypeAlias",id:e,typeParameters:t,right:n})},t.typeAnnotation=function(e){return(0,r.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,r.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})},t.typeParameter=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TypeParameter",bound:e,default:t,variance:n,name:null})},t.typeParameterDeclaration=function(e){return(0,r.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,r.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,r.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.default)({type:"UnaryExpression",operator:e,argument:t,prefix:n})},t.unionTypeAnnotation=function(e){return(0,r.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"UpdateExpression",operator:e,argument:t,prefix:n})},t.v8IntrinsicIdentifier=function(e){return(0,r.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,r.default)({type:"VariableDeclaration",kind:e,declarations:t})},t.variableDeclarator=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,r.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,r.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,r.default)({type:"WithStatement",object:e,body:t})},t.yieldExpression=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"YieldExpression",argument:e,delegate:t})};var r=n(352),i=n(58);function o(e){return(0,r.default)({type:"NumericLiteral",value:e})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)({type:"RegExpLiteral",pattern:e,flags:t})}function a(e){return(0,r.default)({type:"RestElement",argument:e})}function l(e){return(0,r.default)({type:"SpreadElement",argument:e})}},function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},e=>{var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},(e,t,n)=>{const r=n(3);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];e=e.replace(o,O(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[c.COMPARATORTRIM],p),a("comparator trim",e),e=e.replace(u[c.TILDETRIM],d),a("tilde trim",e),e=e.replace(u[c.CARETTRIM],f),a("caret trim",e);let l=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));r&&(l=l.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[c.COMPARATORLOOSE]))))),a("range list",l);const g=new Map,v=l.map((e=>new s(e,this.options)));for(const e of v){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const _=[...g.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>v(n,t)&&e.set.some((e=>v(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(132))({max:1e3}),o=n(75),s=n(50),a=n(48),l=n(3),{safeRe:u,t:c,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=n(34),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=n(47),y=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,v=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=E(e,t),a("tildes",e),e=P(e,t),a("xrange",e),e=w(e,t),a("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?u[c.TILDELOOSE]:u[c.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),_(n)?s="":_(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>T(e,t))).join(" "),T=(e,t)=>{a("caret",e,t);const n=t.loose?u[c.CARETLOOSE]:u[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),_(n)?l="":_(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l}))},P=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const n=t.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return e.replace(n,((n,r,i,o,s,l)=>{a("xRange",e,n,r,i,o,s,l);const u=_(i),c=u||_(o),p=c||_(s),d=p;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):c?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},w=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[c.STAR],"")),C=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),O=e=>(t,n,r,i,o,s,a,l,u,c,p,d,f)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=_(u)?"":_(c)?`<${+u+1}.0.0-0`:_(p)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${p}-${d}`:e?`<${u}.${c}.${+p+1}-0`:`<=${l}`}`.trim(),I=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return i.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return i.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return i.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return i.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return i.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return i.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return o.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return o.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return i.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var i=n(18),o=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{i.FLIPPED_ALIAS_KEYS[e]=i.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]})),r(i.VISITOR_KEYS),r(i.ALIAS_KEYS),r(i.FLIPPED_ALIAS_KEYS),r(i.NODE_FIELDS),r(i.BUILDER_KEYS),r(i.DEPRECATED_KEYS),r(o.PLACEHOLDERS_ALIAS),r(o.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(i.VISITOR_KEYS),Object.keys(i.FLIPPED_ALIAS_KEYS),Object.keys(i.DEPRECATED_KEYS))},(e,t,n)=>{var r=n(17);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var s={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=r.cwd()),a=e),i(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];i(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,o=r-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,u=o<l?o:l,c=-1,p=0;p<=u;++p){if(p===u){if(l>u){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else o>u&&(47===e.charCodeAt(n+p)?c=p:0===p&&(c=0));break}var d=e.charCodeAt(n+p);if(d!==t.charCodeAt(a+p))break;47===d&&(c=p)}var f="";for(p=n+c+1;p<=r;++p)p!==r&&47!==e.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){r=s;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(u===t.charCodeAt(a)?-1==--a&&(o=n):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(o=!1,r=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,u=!0,c=e.length-1,p=0;c>=n;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===r?-1===s?s=c:1!==p&&(p=1):-1!==s&&(p=-1);else if(!u){a=c+1;break}return-1===s||-1===l||0===p||1===p&&s===l-1&&s===a+1?-1!==l&&(t.base=t.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(a,s),t.base=e.slice(a,l)),t.ext=e.slice(s,l)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,n)=>{var r=n(5),i=n(66),o=n(206),s=n(218),a=n(221),l=n(63),u=n(11),c=r.RangeError,p=r.Int8Array,d=p&&p.prototype,f=d&&d.set,h=o.aTypedArray,m=o.exportTypedArrayMethod,y=!u((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(y)return i(f,this,n,t);var r=this.length,o=s(n),u=0;if(o+t>r)throw new c("Wrong length");for(;u<o;)this[t+u]=n[u++]}),!y||g)},e=>{const t=Symbol.for("gensync:v1:start"),n=Symbol.for("gensync:v1:suspend"),r="GENSYNC_EXPECTED_START",i="GENSYNC_EXPECTED_SUSPEND",o="GENSYNC_OPTIONS_ERROR",s="GENSYNC_RACE_NONEMPTY";function a(e,t,n,r){if(typeof n===e||r&&void 0===n)return;let i;throw i=r?`Expected opts.${t} to be either a ${e}, or undefined.`:`Expected opts.${t} to be a ${e}.`,l(i,o)}function l(e,t){return Object.assign(new Error(e),{code:t})}function u(e){let{name:r,arity:i,sync:o,async:s}=e;return m(r,i,(function*(){const e=yield t;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];if(!e)return o.call(this,i);let l;try{s.call(this,i,(t=>{l||(l={value:t},e())}),(t=>{l||(l={err:t},e())}))}catch(t){l={err:t},e()}if(yield n,l.hasOwnProperty("err"))throw l.err;return l.value}))}function c(e){let t;for(;!({value:t}=e.next()).done;)d(t,e);return t}function p(e,t,n){!function r(){try{let n;for(;!({value:n}=e.next()).done;){d(n,e);let t=!0,i=!1;const o=e.next((()=>{t?i=!0:r()}));if(t=!1,f(o,e),!i)return}return t(n)}catch(e){return n(e)}}()}function d(e,n){e!==t&&h(n,l(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,r))}function f(e,t){let{value:r,done:o}=e;(o||r!==n)&&h(t,l(o?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(r)}. If you get this, it is probably a gensync bug.`,i))}function h(e,t){throw e.throw&&e.throw(t),t}function m(e,t,n){if("string"==typeof e){const t=Object.getOwnPropertyDescriptor(n,"name");t&&!t.configurable||Object.defineProperty(n,"name",Object.assign(t||{},{configurable:!0,value:e}))}if("number"==typeof t){const e=Object.getOwnPropertyDescriptor(n,"length");e&&!e.configurable||Object.defineProperty(n,"length",Object.assign(e||{},{configurable:!0,value:t}))}return n}e.exports=Object.assign((function(e){let t=e;return t="function"!=typeof e?function(e){let{name:t,arity:n,sync:r,async:i,errback:s}=e;if(a("string","name",t,!0),a("number","arity",n,!0),a("function","sync",r),a("function","async",i,!0),a("function","errback",s,!0),i&&s)throw l("Expected one of either opts.async or opts.errback, but got _both_.",o);if("string"!=typeof t){let e;s&&s.name&&"errback"!==s.name&&(e=s.name),i&&i.name&&"async"!==i.name&&(e=i.name.replace(/Async$/,"")),r&&r.name&&"sync"!==r.name&&(e=r.name.replace(/Sync$/,"")),"string"==typeof e&&(t=e)}return"number"!=typeof n&&(n=r.length),u({name:t,arity:n,sync:function(e){return r.apply(this,e)},async:function(e,t,n){i?i.apply(this,e).then(t,n):s?s.call(this,...e,((e,r)=>{null==e?t(r):n(e)})):t(r.apply(this,e))}})}(e):function(e){return m(e.name,e.length,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}))}(e),Object.assign(t,function(e){const t={sync:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(e.apply(this,n))},async:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new Promise(((t,r)=>{p(e.apply(this,n),t,r)}))},errback:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.pop();if("function"!=typeof i)throw l("Asynchronous function called without callback","GENSYNC_ERRBACK_NO_CALLBACK");let o;try{o=e.apply(this,n)}catch(e){return void i(e)}p(o,(e=>i(void 0,e)),(e=>i(e)))}};return t}(t))}),{all:u({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map((e=>c(e)))},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)return void Promise.resolve().then((()=>t([])));let i=0;const o=r.map((()=>{}));r.forEach(((e,r)=>{p(e,(e=>{o[r]=e,i+=1,i===o.length&&t(o)}),n)}))}}),race:u({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(0===t.length)throw l("Must race at least 1 item",s);return c(t[0])},async:function(e,t,n){const r=Array.from(e[0]);if(0===r.length)throw l("Must race at least 1 item",s);for(const e of r)p(e,t,n)}})})},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return l.default}}),t.visitors=t.default=void 0;var r=n(57);t.visitors=r;var i=n(0),o=n(35),s=n(100),a=n(28),l=n(183),u=n(444);const{VISITOR_KEYS:c,removeProperties:p,traverseFast:d}=i;function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!o&&a)throw new Error("visitSelf can only be used when providing a NodePath.");c[e.type]&&(r.explode(t),(0,s.traverseNode)(e,t,n,i,o,null,a))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=f,f.visitors=r,f.verify=r.verify,f.explode=r.explode,f.cheap=function(e,t){d(e,t)},f.node=function(e,t,n,r,i,o){(0,s.traverseNode)(e,t,n,r,i,o)},f.clearNode=function(e,t){p(e,t)},f.removeProperties=function(e,t){return d(e,f.clearNode,t),e},f.hasType=function(e,t,n){if(null!=n&&n.includes(e.type))return!1;if(e.type===t)return!0;const r={has:!1,type:t};return f(e,{noScope:!0,denylist:n,enter:h},null,r),r.has},f.cache=o},(e,t,n)=>{var r=n(11);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.declare=r,t.declarePreset=void 0;const n={assertVersion:e=>t=>{!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if("string"!=typeof e)throw new Error("Expected string or integer value.");const n=Error.stackTraceLimit;let r;throw"number"==typeof n&&n<25&&(Error.stackTraceLimit=25),r="7."===t.slice(0,2)?new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),"number"==typeof n&&(Error.stackTraceLimit=n),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}};function r(e){return(t,r,i)=>{var s;let a;for(const e of Object.keys(n))t[e]||(null!=a||(a=o(t)),a[e]=n[e](a));return e(null!=(s=a)?s:t,r||{},i)}}Object.assign(n,{targets:()=>()=>({}),assumption:()=>()=>{}});const i=r;function o(e){let t=null;return"string"==typeof e.version&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),!t||s(t,"version")&&s(t,"transform")&&s(t,"template")&&s(t,"types")||(t=null)),Object.assign({},t,e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.declarePreset=i},e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],u=!1,c=-1;function p(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c<t;)a&&a[c].run();c=-1,t=l.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||s(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=g,t.assertNodeOrValueType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if(d(o)===s||(0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeOrValueTypes=t,o},t.assertNodeType=v,t.assertOneOf=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(e,n,r){if(t.indexOf(r)<0)throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(r)}`)}return r.oneOf=t,r},t.assertOptionalChainStart=function(){return function(e){var t;let n=e;for(;e;){const{type:e}=n;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(n.optional)return;n=n.object}else{if(n.optional)return;n=n.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=n)?void 0:t.type}`)}},t.assertShape=function(e){function t(t,n,r){const o=[];for(const n of Object.keys(e))try{(0,i.validateField)(t,n,r[n],e[n])}catch(e){if(e instanceof TypeError){o.push(e.message);continue}throw e}if(o.length)throw new TypeError(`Property ${n} of ${t.type} expected to have the following:\n${o.join("\n")}`)}return t.shapeOf=e,t},t.assertValueType=b,t.chain=_,t.default=T,t.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.aliases;var i;r||(n.inherits&&(r=null==(i=S[n.inherits].aliases)?void 0:i.slice()),null!=r||(r=[]),n.aliases=r);const o=t.filter((e=>!r.includes(e)));r.unshift(...o),T(e,n)}},t.typeIs=h,t.validate=f,t.validateArrayOfType=function(e){return f(y(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:h(e),optional:!0}},t.validateType=function(e){return f(h(e))};var r=n(42),i=n(97);const o=t.VISITOR_KEYS={},s=t.ALIAS_KEYS={},a=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},u=t.BUILDER_KEYS={},c=t.DEPRECATED_KEYS={},p=t.NODE_PARENT_VALIDATIONS={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(e){return{validate:e}}function h(e){return"string"==typeof e?v(e):v(...e)}function m(e){return _(b("array"),g(e))}function y(e){return m(h(e))}function g(e){function t(t,n,r){if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=`${n}[${i}]`,s=r[i];e(t,o,s)}}return t.each=e,t}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function o(e,n,o){for(const s of t)if((0,r.default)(s,o))return void(0,i.validateChild)(e,n,o);throw new TypeError(`Property ${n} of ${e.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(null==o?void 0:o.type)}`)}return o.oneOfNodeTypes=t,o}function b(e){function t(t,n,r){if(d(r)!==e)throw new TypeError(`Property ${n} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(const e of t)e(...arguments)}if(r.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return r}const E=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],S={};function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.inherits&&S[t.inherits]||{};let r=t.fields;if(!r&&(r={},n.fields)){const e=Object.getOwnPropertyNames(n.fields);for(const t of e){const e=n.fields[t],i=e.default;if(Array.isArray(i)?i.length>0:i&&"object"==typeof i)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(i)?[]:i,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const i=t.visitor||n.visitor||[],f=t.aliases||n.aliases||[],h=t.builder||n.builder||t.visitor||[];for(const n of Object.keys(t))if(-1===E.indexOf(n))throw new Error(`Unknown type option "${n}" on ${e}`);t.deprecatedAlias&&(c[t.deprecatedAlias]=e);for(const e of i.concat(h))r[e]=r[e]||{};for(const t of Object.keys(r)){const n=r[t];void 0!==n.default&&-1===h.indexOf(t)&&(n.optional=!0),void 0===n.default?n.default=null:n.validate||null==n.default||(n.validate=b(d(n.default)));for(const r of Object.keys(n))if(-1===x.indexOf(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}o[e]=t.visitor=i,u[e]=t.builder=h,l[e]=t.fields=r,s[e]=t.aliases=f,f.forEach((t=>{a[t]=a[t]||[],a[t].push(e)})),t.validate&&(p[e]=t.validate),S[e]=t}},(e,t,n)=>{var r=n(104),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},(e,t,n)=>{var r=n(6);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(44),Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class o{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function s(e,t){const{line:n,column:r,index:o}=e;return new i(n,r+t,o+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var l={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const u={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},c=e=>{let{type:t,prefix:n}=e;return"UpdateExpression"===t?u.UpdateExpression[String(n)]:u[t]};var p={AccessorIsGenerator:e=>{let{kind:t}=e;return`A ${t}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{let{kind:t}=e;return`Missing initializer in ${t} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{let{exportName:t}=e;return`\`${t}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:e=>{let{phase:t}=e;return`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{let{localName:t,exportName:n}=e;return`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${n}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{let{type:t}=e;return`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:e=>{let{type:t}=e;return`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:e=>{let{importName:t}=e;return`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:e=>{let{maxArgumentCount:t}=e;return`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{let{radix:t}=e;return`Expected number in radix ${t}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{let{reservedWord:t}=e;return`Escape sequence in keyword ${t}.`},InvalidIdentifier:e=>{let{identifierName:t}=e;return`Invalid identifier ${t}.`},InvalidLhs:e=>{let{ancestor:t}=e;return`Invalid left-hand side in ${c(t)}.`},InvalidLhsBinding:e=>{let{ancestor:t}=e;return`Binding invalid left-hand side in ${c(t)}.`},InvalidLhsOptionalChaining:e=>{let{ancestor:t}=e;return`Invalid optional chaining in the left-hand side of ${c(t)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{let{unexpected:t}=e;return`Unexpected character '${t}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{let{identifierName:t}=e;return`Private name #${t} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:e=>{let{labelName:t}=e;return`Label '${t}' is already declared.`},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling the parser plugin: ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingOneOfPlugins:e=>{let{missingPlugin:t}=e;return`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((e=>JSON.stringify(e))).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{let{key:t}=e;return`Duplicate key "${t}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:e=>{let{surrogateCharCode:t}=e;return`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`},ModuleExportUndefined:e=>{let{localName:t}=e;return`Export '${t}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:e=>{let{identifierName:t}=e;return`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`},PrivateNameRedeclaration:e=>{let{identifierName:t}=e;return`Duplicate private name #${t}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:e=>{let{keyword:t}=e;return`Unexpected keyword '${t}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:e=>{let{reservedWord:t}=e;return`Unexpected reserved word '${t}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{let{expected:t,unexpected:n}=e;return`Unexpected token${n?` '${n}'.`:""}${t?`, expected "${t}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:e=>{let{target:t,onlyValidPropertyName:n}=e;return`The only valid meta property for ${t} is ${t}.${n}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:e=>{let{identifierName:t}=e;return`Identifier '${t}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const d=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var f={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:e=>{let{token:t}=e;return`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{let{type:t}=e;return`Hack-style pipe body cannot be an unparenthesized ${c({type:t})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const h=["toMessage"],m=["message"];function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g(e){let{toMessage:t}=e,n=r(e,h);return function e(r,o){const s=new SyntaxError;return Object.assign(s,n,{loc:r,pos:r.index}),"missingPlugin"in o&&Object.assign(s,{missingPlugin:o.missingPlugin}),y(s,"clone",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;const{line:s,column:a,index:l}=null!=(n=t.loc)?n:r;return e(new i(s,a,l),Object.assign({},o,t.details))})),y(s,"details",o),Object.defineProperty(s,"message",{configurable:!0,get(){const e=`${t(o)} (${r.line}:${r.column})`;return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),s}}function v(e,t){if(Array.isArray(e))return t=>v(t,e[0]);const n={};for(const i of Object.keys(e)){const o=e[i],s="string"==typeof o?{message:()=>o}:"function"==typeof o?{message:o}:o,{message:a}=s,l=r(s,m),u="string"==typeof a?()=>a:a;n[i]=g(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:u},t?{syntaxPlugin:t}:{},l))}return n}const b=Object.assign({},v(l),v(p),v({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{let{referenceName:t}=e;return`Assigning to '${t}' in strict mode.`},StrictEvalArgumentsBinding:e=>{let{bindingName:t}=e;return`Binding '${t}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),v`pipelineOperator`(f)),{defineProperty:_}=Object,E=(e,t)=>_(e,t,{enumerable:!1,value:e[t]});function x(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e.loc.end,"index"),e}class S{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const T={brace:new S("{"),j_oTag:new S("<tag"),j_cTag:new S("</tag"),j_expr:new S("<tag>...</tag>",!0)};T.template=new S("`",!0);const P=!0,A=!0,w=!0,C=!0,O=!0;class I{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const M=new Map;function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;const n=V(e,t);return M.set(e,n),n}function k(e,t){return V(e,{beforeExpr:P,binop:t})}let N=-1;const j=[],L=[],R=[],B=[],F=[],U=[];function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++N,L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),F.push(null!=(i=t.startsExpr)&&i),U.push(null!=(o=t.prefix)&&o),j.push(new I(e,t)),N}function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r,i,o;return++N,M.set(e,N),L.push(e),R.push(null!=(n=t.binop)?n:-1),B.push(null!=(r=t.beforeExpr)&&r),F.push(null!=(i=t.startsExpr)&&i),U.push(null!=(o=t.prefix)&&o),j.push(new I("name",t)),N}const q={bracketL:V("[",{beforeExpr:P,startsExpr:A}),bracketHashL:V("#[",{beforeExpr:P,startsExpr:A}),bracketBarL:V("[|",{beforeExpr:P,startsExpr:A}),bracketR:V("]"),bracketBarR:V("|]"),braceL:V("{",{beforeExpr:P,startsExpr:A}),braceBarL:V("{|",{beforeExpr:P,startsExpr:A}),braceHashL:V("#{",{beforeExpr:P,startsExpr:A}),braceR:V("}"),braceBarR:V("|}"),parenL:V("(",{beforeExpr:P,startsExpr:A}),parenR:V(")"),comma:V(",",{beforeExpr:P}),semi:V(";",{beforeExpr:P}),colon:V(":",{beforeExpr:P}),doubleColon:V("::",{beforeExpr:P}),dot:V("."),question:V("?",{beforeExpr:P}),questionDot:V("?."),arrow:V("=>",{beforeExpr:P}),template:V("template"),ellipsis:V("...",{beforeExpr:P}),backQuote:V("`",{startsExpr:A}),dollarBraceL:V("${",{beforeExpr:P,startsExpr:A}),templateTail:V("...`",{startsExpr:A}),templateNonTail:V("...${",{beforeExpr:P,startsExpr:A}),at:V("@"),hash:V("#",{startsExpr:A}),interpreterDirective:V("#!..."),eq:V("=",{beforeExpr:P,isAssign:C}),assign:V("_=",{beforeExpr:P,isAssign:C}),slashAssign:V("_=",{beforeExpr:P,isAssign:C}),xorAssign:V("_=",{beforeExpr:P,isAssign:C}),moduloAssign:V("_=",{beforeExpr:P,isAssign:C}),incDec:V("++/--",{prefix:O,postfix:!0,startsExpr:A}),bang:V("!",{beforeExpr:P,prefix:O,startsExpr:A}),tilde:V("~",{beforeExpr:P,prefix:O,startsExpr:A}),doubleCaret:V("^^",{startsExpr:A}),doubleAt:V("@@",{startsExpr:A}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("</>/<=/>=",7),gt:k("</>/<=/>=",7),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),bitShiftL:k("<</>>/>>>",8),bitShiftR:k("<</>>/>>>",8),plusMin:V("+/-",{beforeExpr:P,binop:9,prefix:O,startsExpr:A}),modulo:V("%",{binop:10,startsExpr:A}),star:V("*",{binop:10}),slash:k("/",10),exponent:V("**",{beforeExpr:P,binop:11,rightAssociative:!0}),_in:D("in",{beforeExpr:P,binop:7}),_instanceof:D("instanceof",{beforeExpr:P,binop:7}),_break:D("break"),_case:D("case",{beforeExpr:P}),_catch:D("catch"),_continue:D("continue"),_debugger:D("debugger"),_default:D("default",{beforeExpr:P}),_else:D("else",{beforeExpr:P}),_finally:D("finally"),_function:D("function",{startsExpr:A}),_if:D("if"),_return:D("return",{beforeExpr:P}),_switch:D("switch"),_throw:D("throw",{beforeExpr:P,prefix:O,startsExpr:A}),_try:D("try"),_var:D("var"),_const:D("const"),_with:D("with"),_new:D("new",{beforeExpr:P,startsExpr:A}),_this:D("this",{startsExpr:A}),_super:D("super",{startsExpr:A}),_class:D("class",{startsExpr:A}),_extends:D("extends",{beforeExpr:P}),_export:D("export"),_import:D("import",{startsExpr:A}),_null:D("null",{startsExpr:A}),_true:D("true",{startsExpr:A}),_false:D("false",{startsExpr:A}),_typeof:D("typeof",{beforeExpr:P,prefix:O,startsExpr:A}),_void:D("void",{beforeExpr:P,prefix:O,startsExpr:A}),_delete:D("delete",{beforeExpr:P,prefix:O,startsExpr:A}),_do:D("do",{isLoop:w,beforeExpr:P}),_for:D("for",{isLoop:w}),_while:D("while",{isLoop:w}),_as:W("as",{startsExpr:A}),_assert:W("assert",{startsExpr:A}),_async:W("async",{startsExpr:A}),_await:W("await",{startsExpr:A}),_defer:W("defer",{startsExpr:A}),_from:W("from",{startsExpr:A}),_get:W("get",{startsExpr:A}),_let:W("let",{startsExpr:A}),_meta:W("meta",{startsExpr:A}),_of:W("of",{startsExpr:A}),_sent:W("sent",{startsExpr:A}),_set:W("set",{startsExpr:A}),_source:W("source",{startsExpr:A}),_static:W("static",{startsExpr:A}),_using:W("using",{startsExpr:A}),_yield:W("yield",{startsExpr:A}),_asserts:W("asserts",{startsExpr:A}),_checks:W("checks",{startsExpr:A}),_exports:W("exports",{startsExpr:A}),_global:W("global",{startsExpr:A}),_implements:W("implements",{startsExpr:A}),_intrinsic:W("intrinsic",{startsExpr:A}),_infer:W("infer",{startsExpr:A}),_is:W("is",{startsExpr:A}),_mixins:W("mixins",{startsExpr:A}),_proto:W("proto",{startsExpr:A}),_require:W("require",{startsExpr:A}),_satisfies:W("satisfies",{startsExpr:A}),_keyof:W("keyof",{startsExpr:A}),_readonly:W("readonly",{startsExpr:A}),_unique:W("unique",{startsExpr:A}),_abstract:W("abstract",{startsExpr:A}),_declare:W("declare",{startsExpr:A}),_enum:W("enum",{startsExpr:A}),_module:W("module",{startsExpr:A}),_namespace:W("namespace",{startsExpr:A}),_interface:W("interface",{startsExpr:A}),_type:W("type",{startsExpr:A}),_opaque:W("opaque",{startsExpr:A}),name:V("name",{startsExpr:A}),string:V("string",{startsExpr:A}),num:V("num",{startsExpr:A}),bigint:V("bigint",{startsExpr:A}),decimal:V("decimal",{startsExpr:A}),regexp:V("regexp",{startsExpr:A}),privateName:V("#name",{startsExpr:A}),eof:V("eof"),jsxName:V("jsxName"),jsxText:V("jsxText",{beforeExpr:!0}),jsxTagStart:V("jsxTagStart",{startsExpr:!0}),jsxTagEnd:V("jsxTagEnd"),placeholder:V("%%",{startsExpr:!0})};function $(e){return e>=93&&e<=132}function K(e){return e>=58&&e<=132}function H(e){return e>=58&&e<=136}function z(e){return F[e]}function G(e){return e>=129&&e<=131}function Y(e){return e>=58&&e<=92}function X(e){return L[e]}function J(e){return R[e]}function Q(e){return e>=24&&e<=25}function Z(e){return j[e]}j[8].updateContext=e=>{e.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=e=>{e.push(T.brace)},j[22].updateContext=e=>{e[e.length-1]===T.template?e.pop():e.push(T.template)},j[142].updateContext=e=>{e.push(T.j_expr,T.j_oTag)};let ee="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",te="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ne=new RegExp("["+ee+"]"),re=new RegExp("["+ee+te+"]");ee=te=null;const ie=[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,68,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,349,41,7,1,79,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,159,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,264,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,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,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,757,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],oe=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function se(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):se(e,ie)))}function le(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&re.test(String.fromCharCode(e)):se(e,ie)||se(e,oe))))}const ue=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ce=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),pe=new Set(["eval","arguments"]);function de(e,t){return t&&"await"===e||"enum"===e}function fe(e,t){return de(e,t)||ce.has(e)}function he(e){return pe.has(e)}function me(e,t){return fe(e,t)||he(e)}const ye=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class ge{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class ve{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(451&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ge(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(b.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const r=e.names.get(t);return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(387&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(451&t&&!(4&t))return t}}}class be extends ge{constructor(){super(...arguments),this.declareFunctions=new Set}}class _e extends ve{createScope(e){return new be(e)}declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}class Ee{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(n))if((null==r?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function xe(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Se(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Te(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?Se(e,n.comments):xe(r,n.comments)}class Pe extends Ee{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let r=n-1;const i=t[r];i.start===e.end&&(i.leadingNode=e,r--);const{start:o}=e;for(;r>=0;r--){const n=t[r],i=n.end;if(!(i>o)){i===o&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(r,1)}}finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&xe(e.leadingNode,t),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,t);else{const{containingNode:n,start:r}=e;if(44===this.input.charCodeAt(r-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Te(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Te(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Te(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Te(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Te(n,n.specifiers,e);break;default:Se(n,t)}else Se(n,t)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:n}=t;if(0===n)return;const r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state,{length:n}=t;0!==n&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let o=i-1;for(;o>=0;o--){const i=r[o],s=i.end;if(i.start===n)i.leadingNode=e;else if(s===t)i.trailingNode=e;else if(s<t)break}}}const Ae=/\r\n?|[\n\u2028\u2029]/,we=new RegExp(Ae.source,"g");function Ce(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ie=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Me=new RegExp("(?=("+Ie.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function De(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class ke{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[T.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(e){let{strictMode:t,sourceType:n,startLine:r,startColumn:o}=e;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-o,this.startLoc=this.endLoc=new i(r,o,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new i(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const e=new ke;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Ne=function(e){return e>=48&&e<=57};const je={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Le={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Re(e,t,n,r,i,o){const s=n,a=r,l=i;let u="",c=null,p=n;const{length:d}=t;for(;;){if(n>=d){o.unterminated(s,a,l),u+=t.slice(p,n);break}const f=t.charCodeAt(n);if(Be(e,f,t,n)){u+=t.slice(p,n);break}if(92===f){u+=t.slice(p,n);const s=Fe(t,n,r,i,"template"===e,o);null!==s.ch||c?u+=s.ch:c={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=s),p=n}else 8232===f||8233===f?(++i,r=++n):10===f||13===f?"template"===e?(u+=t.slice(p,n)+"\n",++n,13===f&&10===t.charCodeAt(n)&&++n,++i,p=r=n):o.unterminated(s,a,l):++n}return{pos:n,str:u,firstInvalidLoc:c,lineStart:r,curLine:i,containsInvalid:!!c}}function Be(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function Fe(e,t,n,r,i,o){const s=!i;t++;const a=e=>({pos:t,ch:e,lineStart:n,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return a("\n");case 114:return a("\r");case 120:{let i;return({code:i,pos:t}=Ue(e,t,n,r,2,!1,s,o)),a(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=We(e,t,n,r,s,o)),a(null===i?null:String.fromCodePoint(i))}case 116:return a("\t");case 98:return a("\b");case 118:return a("\v");case 102:return a("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return a("");case 56:case 57:if(i)return a(null);o.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){const s=t-1;let l=e.slice(s,t+2).match(/^[0-7]+/)[0],u=parseInt(l,8);u>255&&(l=l.slice(0,-1),u=parseInt(l,8)),t+=l.length-1;const c=e.charCodeAt(t);if("0"!==l||56===c||57===c){if(i)return a(null);o.strictNumericEscape(s,n,r)}return a(String.fromCharCode(u))}return a(String.fromCharCode(l))}}function Ue(e,t,n,r,i,o,s,a){const l=t;let u;return({n:u,pos:t}=Ve(e,t,n,r,16,i,o,!1,a,!s)),null===u&&(s?a.invalidEscapeSequence(l,n,r):t=l-1),{code:u,pos:t}}function Ve(e,t,n,r,i,o,s,a,l,u){const c=t,p=16===i?je.hex:je.decBinOct,d=16===i?Le.hex:10===i?Le.dec:8===i?Le.oct:Le.bin;let f=!1,h=0;for(let c=0,m=null==o?1/0:o;c<m;++c){const o=e.charCodeAt(t);let c;if(95!==o||"bail"===a){if(c=o>=97?o-97+10:o>=65?o-65+10:Ne(o)?o-48:1/0,c>=i){if(c<=9&&u)return{n:null,pos:t};if(c<=9&&l.invalidDigit(t,n,r,i))c=0;else{if(!s)break;c=0,f=!0}}++t,h=h*i+c}else{const i=e.charCodeAt(t-1),o=e.charCodeAt(t+1);if(a){if(Number.isNaN(o)||!d(o)||p.has(i)||p.has(o)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t}}return t===c||null!=o&&t-c!==o||f?{n:null,pos:t}:{n:h,pos:t}}function We(e,t,n,r,i,o){let s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=Ue(e,t,n,r,e.indexOf("}",t)-t,!0,i,o)),++t,null!==s&&s>1114111){if(!i)return{code:null,pos:t};o.invalidCodePoint(t,n,r)}}else({code:s,pos:t}=Ue(e,t,n,r,4,!1,i,o));return{code:s,pos:t}}function qe(e,t,n){return new i(n,e-t,e)}const $e=new Set([103,109,115,105,121,117,100,118]);class Ke{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new o(e.startLoc,e.endLoc)}}class He extends Pe{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>!!this.options.errorRecovery&&(this.raise(b.InvalidDigit,qe(e,t,n),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(b.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(b.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(b.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(b.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(b.StrictNumericEscape,qe(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedString,qe(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(b.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(b.UnterminatedTemplate,qe(e,t,n))}}),this.state=new ke,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ke(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ie.lastIndex=e,Ie.test(this.input)?Ie.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const n=this.input.charCodeAt(e);56320==(64512&n)&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{let[t,n]=e;return this.raise(t,n)})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(b.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,we.lastIndex=n+2;we.test(this.input)&&we.lastIndex<=r;)++this.state.curLine,this.state.lineStart=we.lastIndex;if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new o(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ce(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,s={type:"CommentLine",value:this.input.slice(t+e,i),start:t,end:i,loc:new o(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(s),s}skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){const n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(De(n))++this.state.pos;else if(45===n&&!this.inModule&&this.options.annexB){const n=this.state.pos;if(45!==this.input.charCodeAt(n+1)||62!==this.input.charCodeAt(n+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}else{if(60!==n||this.inModule||!this.options.annexB)break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),this.options.attachComment&&t.push(e))}}}}}if(t.length>0){const n={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(b.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ae(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Ce(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=42===e?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(n++,t=37===e?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(b.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ae(e))return void this.readWord(e)}throw this.raise(b.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,r,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(b.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(i);if(Ce(t))throw this.raise(b.UnterminatedRegExp,s(e,1));if(n)n=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;n=92===t}}const o=this.input.slice(t,i);++i;let a="";const l=()=>s(e,i+2-t);for(;i<this.length;){const e=this.codePointAtPos(i),t=String.fromCharCode(e);if($e.has(e))118===e?a.includes("u")&&this.raise(b.IncompatibleRegExpUVFlags,l()):117===e&&a.includes("v")&&this.raise(b.IncompatibleRegExpUVFlags,l()),a.includes(t)&&this.raise(b.DuplicateRegExpFlags,l());else{if(!le(e)&&92!==e)break;this.raise(b.MalformedRegExpFlags,l())}++i,a+=t}this.state.pos=i,this.finishToken(137,{pattern:o,flags:a})}readInt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const{n:i,pos:o}=Ve(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=o,i}readRadixNumber(e){const t=this.state.curPosition();let n=!1;this.state.pos+=2;const r=this.readInt(e);null==r&&this.raise(b.InvalidDigit,s(t,2),{radix:e});const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,n=!0;else if(109===i)throw this.raise(b.InvalidDecimal,t);if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());if(n){const e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,e)}else this.finishToken(134,r)}readNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=!1,i=!1,o=!1,a=!1,l=!1;e||null!==this.readInt(10)||this.raise(b.InvalidNumber,this.state.curPosition());const u=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(u){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(b.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(b.ZeroDigitNumericSeparator,s(n,t))}l=u&&!/[89]/.test(e)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||l||(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||l||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(b.InvalidOrMissingExponent,n),r=!0,a=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||u)&&this.raise(b.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===c&&(this.expectPlugin("decimal",this.state.curPosition()),(a||u)&&this.raise(b.InvalidDecimal,n),++this.state.pos,o=!0),ae(this.codePointAtPos(this.state.pos)))throw this.raise(b.NumberIdentifier,this.state.curPosition());const p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)return void this.finishToken(135,p);if(o)return void this.finishToken(136,p);const d=l?parseInt(p,8):parseFloat(p);this.finishToken(134,d)}readCodePoint(e){const{code:t,pos:n}=We(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=Re(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:r,curLine:o,lineStart:s}=Re("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=o,n&&(this.state.firstInvalidTemplateEscapePos=new i(n.curLine,n.pos-n.lineStart,n.pos)),96===this.input.codePointAt(r)?this.finishToken(24,n?null:e+t+"`"):(this.state.pos++,this.finishToken(25,n?null:e+t+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(le(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const e=this.state.curPosition(),i=this.state.pos===n?ae:le;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(b.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const o=this.readCodePoint(!0);null!==o&&(i(o)||this.raise(b.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(o)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}readWord(e){const t=this.readWord1(e),n=M.get(t);void 0!==n?this.finishToken(n,X(n)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;Y(e)&&this.state.containsEsc&&this.raise(b.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:X(e)})}raise(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=e(t instanceof i?t:t.loc.start,n);if(!this.options.errorRecovery)throw r;return this.isLookahead||this.state.errors.push(r),r}raiseOverwrite(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t instanceof i?t:t.loc.start,o=r.index,s=this.state.errors;for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.loc.index===o)return s[t]=e(r,n);if(i.loc.index<o)break}return this.raise(e,t,n)}updateContext(e){}unexpected(e,t){throw this.raise(b.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?X(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(b.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(b.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,qe(t,n,r))}}}class ze{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ge{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ze)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(b.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:o}=this.current();let s=r.has(e);if(3&t){const n=s&&i.get(e);n?(s=(3&n)==(3&t)||(4&n)!=(4&t),s||i.delete(e)):s||i.set(e,t)}s&&this.parser.raise(b.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),o.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(b.InvalidPrivateFieldResolution,t,{identifierName:e})}}class Ye{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class Xe extends Ye{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class Je{constructor(e){this.parser=void 0,this.stack=[new Ye],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:r}=this;let i=r.length-1,o=r[i];for(;!o.isCertainlyParameterDeclaration();){if(!o.canBeArrowParameterDeclaration())return;o.recordDeclarationError(e,n),o=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(b.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{let[n,r]=t;this.parser.raise(n,r);let i=e.length-2,o=e[i];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(r.index),o=e[--i]}))}}function Qe(){return new Ye}class Ze{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function et(e,t){return(e?2:0)|(t?1:0)}class tt extends He{addExtra(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return;const i=e.extra=e.extra||{};r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)===t){const e=this.input.charCodeAt(n);return!(le(e)||55296==(64512&e))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Ae.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Me.lastIndex=this.state.end,Me.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(b.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone();const n={node:null};try{const r=e((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw n.node=e,n}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:o}=e;if(!t)return!!(n||r||o||i);null!=n&&this.raise(b.InvalidCoverInitializedName,n),null!=r&&this.raise(b.DuplicateProto,r),null!=i&&this.raise(b.UnexpectedPrivateField,i),null!=o&&this.unexpected(o)}isLiteralPropertyName(){return H(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType;const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const i=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);const s=this.prodParam;this.prodParam=new Ze;const a=this.classScope;this.classScope=new Ge(this);const l=this.expressionScope;return this.expressionScope=new Je(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=s,this.classScope=a,this.expressionScope=l}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class nt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class rt{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new o(n),null!=e&&e.options.ranges&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const it=rt.prototype;function ot(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s,name:a}=e,l=Object.create(it);return l.type=t,l.start=n,l.end=r,l.loc=i,l.range=o,l.extra=s,l.name=a,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}it.__clone=function(){const e=new rt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){const r=t[n];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class st extends tt{startNode(){const e=this.state.startLoc;return new rt(this,e.index,e)}startNodeAt(e){return new rt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const at=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),lt=v`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:e=>{let{reservedType:t}=e;return`Cannot overwrite reserved type ${t}.`},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:e=>{let{memberName:t,enumName:n}=e;return`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${n}\`.`},EnumDuplicateMemberName:e=>{let{memberName:t,enumName:n}=e;return`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${n}\`.`},EnumInconsistentMemberValues:e=>{let{enumName:t}=e;return`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`},EnumInvalidExplicitType:e=>{let{invalidEnumType:t,enumName:n}=e;return`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${n}\`.`},EnumInvalidExplicitTypeUnknownSupplied:e=>{let{enumName:t}=e;return`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`},EnumInvalidMemberInitializerPrimaryType:e=>{let{enumName:t,memberName:n,explicitType:r}=e;return`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${n}\` needs to be a ${r} literal.`},EnumInvalidMemberInitializerSymbolType:e=>{let{enumName:t,memberName:n}=e;return`Symbol enum members cannot be initialized. Use \`${n},\` in enum \`${t}\`.`},EnumInvalidMemberInitializerUnknownType:e=>{let{enumName:t,memberName:n}=e;return`The enum member initializer for \`${n}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`},EnumInvalidMemberName:e=>{let{enumName:t,memberName:n,suggestion:r}=e;return`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${n}\`, consider using \`${r}\`, in enum \`${t}\`.`},EnumNumberMemberNotInitialized:e=>{let{enumName:t,memberName:n}=e;return`Number enum members need to be initialized, e.g. \`${n} = 1\` in enum \`${t}\`.`},EnumStringMemberInconsistentlyInitialized:e=>{let{enumName:t}=e;return`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:e=>{let{reservedType:t}=e;return`Unexpected reserved type ${t}.`},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:e=>{let{unsupportedExportKind:t,suggestion:n}=e;return`\`declare export ${t}\` is not supported. Use \`${n}\` instead.`},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ut(e){return"type"===e.importKind||"typeof"===e.importKind}const ct={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},pt=/\*?\s*@((?:no)?flow)\b/,dt={__proto__:null,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:"♦"},ft=v`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{let{openingTagName:t}=e;return`Expected corresponding JSX closing tag for <${t}>.`},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:e=>{let{unexpected:t,HTMLEntity:n}=e;return`Unexpected token \`${t}\`. Did you mean \`${n}\` or \`{'${t}'}\`?`},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ht(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function mt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return mt(e.object)+"."+mt(e.property);throw new Error("Node had unexpected type: "+e.type)}class yt extends ge{constructor(){super(...arguments),this.tsNames=new Map}}class gt extends ve{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new yt(e)}enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(b.VarRedeclaration,n,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let i=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|i);super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){const r=e.tsNames.get(t);return(2&r)>0?!(256&n)||!!(512&n)!=(4&r)>0:128&n&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&r)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}const vt=e=>"ParenthesizedExpression"===e.type?vt(e.expression):e;class bt extends st{toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=vt(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(b.InvalidParenthesizedAssignment,e):"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(b.InvalidParenthesizedAssignment,e):this.raise(b.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let n=0,r=e.properties.length,i=r-1;n<r;n++){var o;const r=e.properties[n],s=n===i;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&null!=(o=e.extra)&&o.trailingCommaLoc&&this.raise(b.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(b.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?b.PatternHasAccessor:b.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(b.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){const r=e.length-1;for(let i=0;i<=r;i++){const o=e[i];if(o){if("SpreadElement"===o.type){o.type="RestElement";const e=o.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(o,n);"RestElement"===o.type&&(i<r?this.raise(b.RestTrailingComma,o):t&&this.raise(b.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){const r=1&n,i=[];let o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(b.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:n}=this.state;return 21===t?this.parseBindingRestProperty(e):(138===t?(this.expectPlugin("destructuringPrivate",n),this.classScope.usePrivateName(this.state.value,n),e.key=this.parsePrivateName()):this.parsePropertyName(e),e.method=!1,this.parseObjPropValue(e,n,!1,!1,!0,!1))}parseAssignableListItem(e,t){const n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,e);const r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){var n;if(null!=e||(e=this.state.startLoc),t=null!=(n=t)?n:this.parseBindingAtom(),!this.eat(29))return t;const r=this.startNodeAt(e);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,n){return r={AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},i=e,Object.hasOwnProperty.call(r,i)&&r[i];var r,i}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){let{in:n,binding:r=64,checkClashes:i=!1,strictModeChanged:o=!1,hasParenthesizedAncestor:s=!1}=t;var a;const l=e.type;if(this.isObjectMethod(e))return;const u=this.isOptionalMemberExpression(e);if(u||"MemberExpression"===l)return u&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==n.type&&this.raise(b.InvalidLhsOptionalChaining,e,{ancestor:n})),void(64!==r&&this.raise(b.InvalidPropertyBindingPattern,e));if("Identifier"===l){this.checkIdentifier(e,r,o);const{name:t}=e;return void(i&&(i.has(t)?this.raise(b.ParamDupe,e):i.add(t)))}const c=this.isValidLVal(l,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===n.type,r);if(!0===c)return;if(!1===c){const t=64===r?b.InvalidLhs:b.InvalidLhsBinding;return void this.raise(t,e,{ancestor:n})}const[p,d]=Array.isArray(c)?c:[c,"ParenthesizedExpression"===l],f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:n;for(const t of[].concat(e[p]))t&&this.checkLVal(t,{in:f,binding:r,checkClashes:i,strictModeChanged:o,hasParenthesizedAncestor:d})}checkIdentifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?me(e.name,this.inModule):he(e.name))&&(64===t?this.raise(b.StrictEvalArguments,e,{referenceName:e.name}):this.raise(b.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(b.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(b.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?b.RestTrailingComma:b.ElementAfterRest,this.state.startLoc),!0)}}function _t(e){if(!e)throw new Error("Assert fail")}const Et=v`typescript`({AbstractMethodHasImplementation:e=>{let{methodName:t}=e;return`Method '${t}' cannot have an implementation because it is marked abstract.`},AbstractPropertyHasInitializer:e=>{let{propertyName:t}=e;return`Property '${t}' cannot have an initializer because it is marked abstract.`},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:e=>{let{kind:t}=e;return`'declare' is not allowed in ${t}ters.`},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{let{modifier:t}=e;return"Accessibility modifier already seen."},DuplicateModifier:e=>{let{modifier:t}=e;return`Duplicate modifier: '${t}'.`},EmptyHeritageClauseType:e=>{let{token:t}=e;return`'${t}' list cannot be empty.`},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:e=>{let{modifiers:t}=e;return`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{let{modifier:t}=e;return`Index signatures cannot have an accessibility modifier ('${t}').`},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type member.`},InvalidModifierOnTypeParameter:e=>{let{modifier:t}=e;return`'${t}' modifier cannot appear on a type parameter.`},InvalidModifierOnTypeParameterPositions:e=>{let{modifier:t}=e;return`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`},InvalidModifiersOrder:e=>{let{orderedModifiers:t}=e;return`'${t[0]}' modifier must precede '${t[1]}' modifier.`},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:e=>{let{modifier:t}=e;return`Private elements cannot have an accessibility modifier ('${t}').`},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:e=>{let{typeParameterName:t}=e;return`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:e=>{let{type:t}=e;return`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`}});function xt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function Tt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&wt(e.object)}function Pt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!At(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:r}=e;if("-"===n&&At(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!Tt(e)}function At(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function wt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&wt(e.object)}const Ct=v`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function Ot(e,t){const[n,r]="string"==typeof t?[t,{}]:t,i=Object.keys(r),o=0===i.length;return e.some((e=>{if("string"==typeof e)return o&&e===n;{const[t,o]=e;if(t!==n)return!1;for(const e of i)if(o[e]!==r[e])return!1;return!0}}))}function It(e,t,n){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));return r&&Array.isArray(r)&&r.length>1?r[1][n]:null}const Mt=["minimal","fsharp","hack","smart"],Dt=["^^","@@","^","%","#"],kt=["hash","bar"],Nt={estree:e=>class extends e{parse(){const e=x(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(x)),e}parseRegExpLiteral(e){let{pattern:t,flags:n}=e,r=null;try{r=new RegExp(t,n)}catch(e){}const i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=e;return n.type="ExpressionStatement",n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);const o=e.directives.map((e=>this.directiveToStmt(e)));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,o){this.parseMethod(t,n,r,i,o,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,e.type="PrivateIdentifier",e}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=this.startNode();return a.kind=e.kind,a=super.parseMethod(a,t,n,r,i,o,s),a.type="FunctionExpression",delete a.kind,e.value=a,"ClassPrivateMethod"===o&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}parseClassProperty(){const e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(){const e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(e,t,n,r,i){const o=super.parseObjectMethod(e,t,n,r,i);return o&&(o.type="Property","method"===o.kind&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(e,t,n,r){const i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",i.type="Property"),i}isValidLVal(e,t,n){return"Property"===e?"value":super.isValidLVal(e,t,n)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"get"===e.kind||"set"===e.kind?this.raise(b.PatternHasAccessor,e.key):e.method?this.raise(b.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r,i;return"Import"===n.callee.type&&(n.type="ImportExpression",n.source=n.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null),delete n.arguments,delete n.callee),n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(r.type="ExportAllDeclaration",r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}parseSubscript(e,t,n,r){const i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),r.stop){const e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}finishNodeAt(e,t,n){return x(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),x(e)}resetEndLocation(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),x(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ft.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:Ce(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(b.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):Ce(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59==this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){const t=this.input.slice(e,this.state.pos),n=dt[t];if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(le(e)||45===e);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(140)?e.name=this.state.value:Y(this.state.type)?e.name=X(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(T.brace),this.next(),e=this.jsxParseExpressionContainer(e,T.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(ft.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ft.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(T.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(T.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(T.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e);let i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 141:n.push(this.parseExprAtom());break;case 5:{const e=this.startNode();this.setContext(T.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,T.j_expr));break}default:this.unexpected()}ht(r)&&!ht(i)&&null!==i?this.raise(ft.MissingClosingTagFragment,i):!ht(r)&&ht(i)?this.raise(ft.MissingClosingTagElement,i,{openingTagName:mt(r.name)}):ht(r)||ht(i)||mt(i.name)!==mt(r.name)&&this.raise(ft.MissingClosingTagElement,i,{openingTagName:mt(r.name)})}if(ht(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(ft.UnwrappedAdjacentJSXElements,this.state.startLoc);return ht(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(141)?this.parseLiteral(this.state.value,"JSXText"):this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t!==T.j_expr){if(t===T.j_oTag||t===T.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(143);if((34===e||39===e)&&t===T.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){const{context:t,type:n}=this.state;if(56===n&&142===e)t.splice(-2,2,T.j_cTag),this.state.canStartJSXElement=!1;else if(142===n)t.push(T.j_oTag);else if(143===n){const n=t[t.length-1];n===T.j_oTag&&56===e||n===T.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===T.j_expr):(this.setContext(T.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=B[n]}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return _e}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){133!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=pt.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(lt.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(lt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(lt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,lt.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,i=!1;return n.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(lt.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(lt.AmbiguousDeclareModuleKind,e),r="ES")})),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(lt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:ct[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(lt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){at.has(e)&&this.raise(n?lt.AssignReservedType:lt.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(lt.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);const n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){let{allowStatic:t,allowExact:n,allowSpread:r,allowProto:i,allowInexact:o}=e;const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let l,u;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let c=!1;for(n&&this.match(6)?(this.expect(6),l=9,u=!0):(this.expect(5),l=8,u=!1),a.exact=u;!this.match(l);){let e=!1,n=null,s=null;const l=this.startNode();if(i&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),n=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const p=this.flowParseVariance();if(this.eat(0))null!=n&&this.unexpected(n),this.eat(0)?(p&&this.unexpected(p.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(l,e))):a.indexers.push(this.flowParseObjectTypeIndexer(l,e,p));else if(this.match(10)||this.match(47))null!=n&&this.unexpected(n),p&&this.unexpected(p.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(l,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&H(this.lookahead().type)&&(t=this.state.value,this.next());const i=this.flowParseObjectTypeProperty(l,e,n,p,t,r,null!=o?o:!u);null===i?(c=!0,s=this.state.lastTokStartLoc):a.properties.push(i)}this.flowObjectTypeSemicolon(),!s||this.match(8)||this.match(9)||this.raise(lt.UnexpectedExplicitInexactInObject,s)}this.expect(l),r&&(a.inexact=c);const p=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,p}flowParseObjectTypeProperty(e,t,n,r,i,o,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?s||this.raise(lt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(lt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(lt.InexactVariance,r),null):(o||this.raise(lt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),r&&this.raise(lt.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let s=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!o&&"constructor"===e.key.name&&e.value.this&&this.raise(lt.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(s=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=s,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?lt.GetterMayNotHaveThisParam:lt.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(b.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null;const i=this.startNode(),o=this.lookahead(),s=78===this.state.type;return 14===o.type||17===o.type?(s&&!e&&this.raise(lt.ThisParamMustBeFirst,i),t=this.parseIdentifier(s),this.eat(17)&&(n=!0,s&&this.raise(lt.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let n,r,i=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=o,r;case 47:return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if($(this.state.type)||this.match(78)){const e=this.lookahead().type;i=17!==e&&14!==e}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),t.params=n.params,t.rest=n.rest,t.this=n._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(lt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Y(this.state.type)){const e=X(this.state.type);return this.next(),super.createIdentifier(t,e)}if($(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,n))):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(K(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||$(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if($(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return G(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(t);let{consequent:s,failed:a}=this.tryParseConditionalConsequent(),[l,u]=this.getArrowLikeExpressions(s);if(a||u.length>0){const e=[...i];if(u.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<u.length;t++)e.push(u[t].start);({consequent:s,failed:a}=this.tryParseConditionalConsequent()),[l,u]=this.getArrowLikeExpressions(s)}a&&l.length>1&&this.raise(lt.AmbiguousConditionalArrow,r.startLoc),a&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,({consequent:s,failed:a}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(s,!0),this.state.noArrowAt=i,this.expect(14),o.test=e,o.consequent=s,o.alternate=this.forwardNoArrowParamsConversionAt(o,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i])?n:r).push(e[i]);return[n,r]}(r,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(lt.DeclareClassElement,r):t.value&&this.raise(lt.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(b.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&ae(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;const i=e[r];!i||"TypeCastExpression"!==i.type||null!=(n=i.extra)&&n.parenthesized||!(e.length>1)&&t||this.raise(lt.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return"TypeCastExpression"===e||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,o){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,o),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(lt.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(lt.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(lt.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,o,s){let a;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!o&&(a=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,n,r,i,o,s);return a&&((l.value||l).typeParameters=a),l}parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(lt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(lt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(lt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(lt.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(lt.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(lt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=ut(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind="type"===n?n:"value"}else"type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value"}parseImportSpecifier(e,t,n,r,i){const o=e.imported;let s=null;"Identifier"===o.type&&("type"===o.name?s="type":"typeof"===o.name&&(s="typeof"));let a=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===s||K(this.state.type)?(e.imported=o,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=s,e.local=ot(t))}else{if(null!==s&&K(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=s;else{if(t)throw this.raise(b.ImportBindingIsString,e,{importName:o.value});e.imported=o,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(a=!0,e.local=ot(e.imported))}const l=ut(e);return n&&l&&this.raise(lt.ImportTypeShorthandOnlyInPureImport,e),(n||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!a||n||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r,i=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(i=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),i),!r.error)return r.node;const{context:n}=this.state,o=n[n.length-1];o!==T.j_oTag&&o!==T.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var o,s;let n;i=i||this.state.clone();const a=this.tryParse((r=>{var i;n=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(n,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r}));null!=(i=o.extra)&&i.parenthesized&&r();const s=this.maybeUnwrapTypeCastExpression(o);return"ArrowFunctionExpression"!==s.type&&r(),s.typeParameters=n,this.resetStartLocationFromNode(s,n),o}),i);let l=null;if(a.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(a.node).type){if(!a.error&&!a.aborted)return a.node.async&&this.raise(lt.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),a.node;l=a.node}if(null!=(o=r)&&o.node)return this.state=r.failState,r.node;if(l)return this.state=a.failState,l;if(null!=(s=r)&&s.thrown)throw r.error;if(a.thrown)throw a.error;throw this.raise(lt.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionAt.indexOf(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!n||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(lt.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!i.error&&!i.aborted)return i.node;const o=this.tryParse((()=>super.parseSubscripts(e,t,n)),r);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse((()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(lt.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(lt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(b.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){let{enumName:n,memberName:r}=t;this.raise(lt.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:n})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?lt.EnumInvalidMemberInitializerSymbolType:lt.EnumInvalidMemberInitializerPrimaryType:lt.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(lt.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(lt.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 133:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){let{enumName:t,explicitType:n}=e;const r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let o=!1;for(;!this.match(8);){if(this.eat(21)){o=!0;break}const e=this.startNode(),{id:s,init:a}=this.flowEnumMemberRaw(),l=s.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(lt.EnumInvalidMemberName,s,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),r.has(l)&&this.raise(lt.EnumDuplicateMemberName,s,{memberName:l,enumName:t}),r.add(l);const u={enumName:t,explicitType:n,memberName:l};switch(e.id=s,a.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"boolean"),e.init=a.value,i.booleanMembers.push(this.finishNode(e,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"number"),e.init=a.value,i.numberMembers.push(this.finishNode(e,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(a.loc,u,"string"),e.init=a.value,i.stringMembers.push(this.finishNode(e,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(a.loc,u);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(a.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(a.loc,u);break;default:i.defaultedMembers.push(this.finishNode(e,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:o}}flowEnumStringMembers(e,t,n){let{enumName:r}=n;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}flowEnumParseExplicitType(e){let{enumName:t}=e;if(!this.eatContextual(102))return null;if(!$(this.state.type))throw this.raise(lt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:n}=this.state;return this.next(),"boolean"!==n&&"number"!==n&&"string"!==n&&"symbol"!==n&&this.raise(lt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:n}),n}flowEnumBody(e,t){const n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:o,hasUnknownMembers:s}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=s,i){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=o.booleanMembers.length,s=o.numberMembers.length,a=o.stringMembers.length,l=o.defaultedMembers.length;if(i||s||a||l){if(i||s){if(!s&&!a&&i>=l){for(const e of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!a&&s>=l){for(const e of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(lt.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Et.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Et.InvalidModifierOnTypeParameter})}getScopeHandler(){return gt}tsIsIdentifier(){return $(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!$(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const n=this.state.value;if(-1!==e.indexOf(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers(e,t){let{allowedModifiers:n,disallowedModifiers:r,stopOnStartOfClassStaticBlock:i,errorTemplate:o=Et.InvalidModifierOnTypeMember}=e;const s=(e,n,r,i)=>{n===r&&t[i]&&this.raise(Et.InvalidModifiersOrder,e,{orderedModifiers:[r,i]})},a=(e,n,r,i)=>{(t[r]&&n===i||t[i]&&n===r)&&this.raise(Et.IncompatibleModifiers,e,{modifiers:[r,i]})};for(;;){const{startLoc:e}=this.state,l=this.tsParseModifier(n.concat(null!=r?r:[]),i);if(!l)break;xt(l)?t.accessibility?this.raise(Et.DuplicateAccessibilityModifier,e,{modifier:l}):(s(e,l,l,"override"),s(e,l,l,"static"),s(e,l,l,"readonly"),t.accessibility=l):St(l)?(t[l]&&this.raise(Et.DuplicateModifier,e,{modifier:l}),t[l]=!0,s(e,l,"in","out")):(Object.hasOwnProperty.call(t,l)?this.raise(Et.DuplicateModifier,e,{modifier:l}):(s(e,l,"static","readonly"),s(e,l,"static","override"),s(e,l,"override","readonly"),s(e,l,"abstract","override"),a(e,l,"declare","override"),a(e,l,"static","abstract")),t[l]=!0),null!=r&&r.includes(l)&&this.raise(o,e,{modifier:l})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){const i=[];let o=-1;for(;!this.tsIsListTerminator(e);){o=-1;const r=t();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}o=this.state.lastTokStartLoc.index}return r&&(r.value=o),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));const o=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),o}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Et.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseEntityName(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(Et.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(Et.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!$(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);const n=e;if(this.match(10)||this.match(47)){t&&this.raise(Et.ReadonlyForMethodSignature,e);const r=n;r.kind&&this.match(47)&&this.raise(Et.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();const i="parameters",o="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(b.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(b.BadSetterArity,this.state.curPosition());else{const e=r[i][0];this.isThisParam(e)&&this.raise(Et.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(Et.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(Et.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[o]&&this.raise(Et.SetAccesorCannotHaveReturnType,r[o])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}{const e=n;t&&(e.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(Et.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);let n,r,i,o;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===s){i=!0;const e=this.state.startLoc,t=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),o=this.tsParseType()):(n=!1,o=s,this.expect(17))}else o=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(Et.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(o),e.optional=i,this.raise(Et.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(o);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,n))),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if($(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,"TSIndexedAccessType")}return e}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Et.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,n){const r=this.startNode(),i=this.eat(n),o=[];do{o.push(t())}while(this.eat(n));return 1!==o.length||i?(r.types=o,this.finishNode(r,e)):o[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if($(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const o=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=r,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!$(this.state.type)&&!this.match(78)||(e&&this.raise(b.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){_t(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Et.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return n.length||this.raise(Et.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),$(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Et.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(Et.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.state.type;return this.isContextual(100)&&(n=74,t="let"),this.tsInAmbientContext((()=>{switch(n){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,t||this.state.value,!0));case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if($(n))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||$(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if($(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&$(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&$(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(Et.EmptyTypeArguments,e):this.state.inType||this.curContext()!==T.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,o=r.override,s=r.readonly;4&e||!(i||s||o)||this.raise(Et.UnexpectedParameterModifier,n);const a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a,e);const l=this.parseMaybeDefault(a.loc.start,a);if(i||s||o){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),s&&(e.readonly=s),o&&(e.override=o),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(Et.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(a.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(Et.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(Et.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(Et.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let o;const s=this.tsTryParseAndCatch((()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}const s=this.tsParseTypeArgumentsInExpression();if(!s)return;if(i&&!this.match(10))return void(o=this.state.curPosition());if(Q(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=s,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=s,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}const a=this.state.type;if(48===a||52===a||10!==a&&z(a)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=s,this.finishNode(l,"TSInstantiationExpression")}));if(o&&this.unexpected(o,10),s)return"TSInstantiationExpression"===s.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Et.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),s}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(J(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(b.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(Et.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(133))return e.importKind="value",super.parseImport(e);let t;if($(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(Et.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?t=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,t,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(const{id:e,init:n}of i.declarations)n&&("const"!==t||e.typeAnnotation?this.raise(Et.InitializerNotAllowedInAmbientContext,n):Pt(n,this.hasPlugin("estree"))||this.raise(Et.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>xt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Et.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(Et.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(Et.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(Et.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(Et.IndexSignatureHasDeclare,t),void(t.override&&this.raise(Et.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(Et.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(Et.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Et.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Et.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);const r=this.tryParse((()=>super.parseConditional(e,t)));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Et.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=$(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(Et.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(Et.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(Et.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Et.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Et.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,o){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&i&&this.raise(Et.ConstructorHasTypeParameters,s);const{declare:a=!1,kind:l}=t;!a||"get"!==l&&"set"!==l||this.raise(Et.DeclareAccessor,t,{kind:l}),s&&(t.typeParameters=s),super.pushClassMethod(e,t,n,r,i,o)}pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,r,i,o,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);return a&&(e.typeParameters=a),super.parseObjPropValue(e,t,n,r,i,o,s)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,o,s;let a,l,u,c;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(a=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!l.error)return l.node;const{context:n}=this.state,r=n[n.length-1];r!==T.j_oTag&&r!==T.j_expr||n.pop()}if(!(null!=(n=l)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);a&&a!==this.state||(a=this.state.clone());const p=this.tryParse((n=>{var r,i;c=this.tsParseTypeParameters(this.tsParseConstModifier);const o=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==o.type||null!=(r=o.extra)&&r.parenthesized)&&n(),0!==(null==(i=c)?void 0:i.params.length)&&this.resetStartLocationFromNode(o,c),o.typeParameters=c,o}),a);if(!p.error&&!p.aborted)return c&&this.reportReservedArrowTypeParam(c),p.node;if(!l&&(_t(!this.hasPlugin("jsx")),u=this.tryParse((()=>super.parseMaybeAssign(e,t)),a),!u.error))return u.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(p.node)return this.state=p.failState,c&&this.reportReservedArrowTypeParam(c),p.node;if(null!=(i=u)&&i.node)return this.state=u.failState,u.node;throw(null==(o=l)?void 0:o.error)||p.error||(null==(s=u)?void 0:s.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(Et.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(Et.UnexpectedTypeCastInParameter,e):this.raise(Et.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){return r={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==n||!t)&&["expression",!0],TSSatisfiesExpression:(64!==n||!t)&&["expression",!0],TSTypeAssertion:(64!==n||!t)&&["expression",!0]},i=e,Object.hasOwnProperty.call(r,i)&&r[i]||super.isValidLVal(e,t,n);var r,i}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Et.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TSTypeCastExpression"===(null==n?void 0:n.type)&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Et.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,o,s){const a=super.parseMethod(e,t,n,r,i,o,s);if(a.abstract&&(this.hasPlugin("estree")?a.value.body:a.body)){const{key:e}=a;this.raise(Et.AbstractMethodHasImplementation,a,{methodName:"Identifier"!==e.type||a.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return a}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i=t?"local":"exported";let o,s=e[r],a=!1,l=!0;const u=s.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();K(this.state.type)?(a=!0,s=e,o=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(o=n,l=!1)}else K(this.state.type)?(l=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(a=!0,s=e)}else K(this.state.type)&&(a=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());a&&n&&this.raise(t?Et.TypeModifierIsUsedInTypeImports:Et.TypeModifierIsUsedInTypeExports,u),e[r]=s,e[i]=o,e[t?"importKind":"exportKind"]=a?"type":"value",l&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=ot(e[r])),t&&this.checkIdentifier(e[i],a?4098:4096)}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),$(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(144)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const n=!(!e.expectedNode||"Placeholder"!==e.type);return e.expectedNode=t,n?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n){return"Placeholder"===e||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!super.chStartsBindingIdentifier(e,t)||144===this.lookahead().type}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}return this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o){if(!(this.match(81)||this.match(144)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(e,r);throw this.raise(Ct.ClassNameIsRequired,this.state.startLoc)}e.id=o}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(X(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Ct.UnexpectedSpace,this.state.lastTokEndLoc)}}},jt=Object.keys(Nt),Lt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Rt extends bt{checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return;const i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(b.RecordNoProto,i);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(b.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();const e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new nt,r=!0);const{type:i}=this.state;(10===i||$(i))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;const r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,{in:this.finishNode(t,"AssignmentExpression")}),t}var s;return r&&this.checkExpressionErrors(e,!0),o}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=J(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(b.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=J(r);if(i>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;const s=41===r||42===r,a=40===r;if(a&&(i=J(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(b.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(r,i);const l=this.finishNode(o,s||a?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(a&&(41===u||42===u)||s&&40===u)throw this.raise(b.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(b.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!d.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(b.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(b.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),o=this.startNode();if(s=this.state.type,U[s]){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=o.argument;"Identifier"===e.type?this.raise(b.StrictDelete,o):this.hasPropertyAsPrivateName(e)&&this.raise(b.DeletePrivateField,o)}if(!i)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var s;const a=this.parseUpdate(o,i,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?z(e):z(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(b.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,"UpdateExpression")}),e}const r=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,"UpdateExpression")})}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,r);if(Q(i))return this.parseTaggedTemplateExpression(e,t,r);let o=!1;if(18===i){if(n&&(this.raise(b.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=o=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,o);{const n=this.eat(0);return n||o||this.eat(16)?this.parseMember(e,t,r,n,o):(r.stop=!0,e)}}parseMember(e,t,n,r,i){const o=this.startNodeAt(t);return o.object=e,o.computed=r,r?(o.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(b.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),n.optionalChainMember?(o.optional=i,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArrowParameters;let o=null;this.state.maybeInArrowParameters=!0,this.next();const s=this.startNodeAt(t);s.callee=e;const{maybeAsyncArrow:a,optionalChainMember:l}=n;a&&(this.expressionScope.enter(new Xe(2)),o=new nt),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,o);let u=this.finishCallExpression(s,l);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u)):(a&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=i,u}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(b.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(b.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(b.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n,r,i){const o=[];let s=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(b.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}o.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=a,o}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Se(e,t.innerComments),t.callee.trailingComments&&Se(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(b.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(b.UnsupportedBind,e)}case 138:return this.raise(b.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());ae(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if($(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if($(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===e)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=s(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){const r="smart"===n?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===n?b.PrimaryTopicNotAllowed:b.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}throw this.raise(b.PipeTopicUnconfiguredToken,t,{token:X(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:X(n)}]);case"smart":return 27===n;default:throw this.raise(b.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(et(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(b.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(b.UnexpectedSuper,e):this.raise(b.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(b.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(b.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(b.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(b.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new Xe(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const o=this.state.startLoc,s=[],a=new nt;let l,u,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===a.optionalParametersLoc?null:a.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,s.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else s.push(this.parseMaybeAssignAllowIn(a,this.parseParenItem))}const p=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let d=this.startNodeAt(t);return e&&this.shouldParseArrow(s)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,s,!1),d):(this.expressionScope.exit(),s.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(a,!0),this.toReferencedListDeep(s,!0),s.length>1?(n=this.startNodeAt(o),n.expressions=s,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,p)):n=s[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(b.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(b.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:r,value:i}=this.state,o=t+1,a=this.startNodeAt(s(n,1));null===i&&(e||this.raise(b.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),u=l?-1:-2,c=r+u;a.value={raw:this.input.slice(o,c).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,u)},a.tail=l,this.next();const p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,s(this.state.lastTokEndLoc,u)),p}parseTemplate(e){const t=this.startNode();t.expressions=[];let n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(n=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=Object.create(null);let s=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(a);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,o,r)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(b.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";return t?l="ObjectPattern":n&&(l="RecordExpression"),this.finishNode(a,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(b.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let r,i=!1,o=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let s=this.eat(55);this.parsePropertyNamePrefixOperator(n);const a=this.state.containsEsc,l=this.parsePropertyName(n,e);if(!s&&!a&&this.maybeAsyncOrAccessorProp(n)){const e=l.name;"async"!==e||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(n)),"get"!==e&&"set"!==e||(o=!0,this.resetPreviousNodeTrailingComments(l),n.kind=e,this.match(55)&&(s=!0,this.raise(b.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,s,i,!1,o,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?b.BadGetterArity:b.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(b.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,ot(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(b.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,ot(e.key))}else e.value=ot(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,n,r,i,o,s){const a=this.parseObjectMethod(e,n,r,i,o)||this.parseObjectProperty(e,t,i,s);return a||this.unexpected(),a}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:r}=this.state;let i;if(K(n))i=this.parseIdentifier(!0);else switch(n){case 134:i=this.parseNumericLiteral(r);break;case 133:i=this.parseStringLiteral(r);break;case 135:i=this.parseBigIntLiteral(r);break;case 136:i=this.parseDecimalLiteral(r);break;case 138:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(b.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,138!==n&&(e.computed=!1)}return e.key}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,n),e.generator=t,this.scope.enter(18|(s?64:0)|(i?32:0)),this.prodParam.enter(et(n,e.generator)),this.parseFunctionParams(e,r);const a=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),a}parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!n,r,o),this.state.inFSharpPipelineDirectBody=i,this.finishNode(o,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=et(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const o=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=t&&!this.match(5);if(this.expressionScope.enter(Qe()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{const o=!this.isSimpleParamList(e.params);i&&o&&this.raise(b.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const s=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||o),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=!t&&new Set,o={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,{in:o,binding:5,checkClashes:i,strictModeChanged:r})}parseExprList(e,t,n,r){const i=[];let o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(b.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){const e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(b.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),r=this.finishNode(e,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:n,type:r}=this.state;K(r)?t=this.state.value:this.unexpected();const i=r<=92;return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&function(e){return ye.has(e)}(e))if(n&&function(e){return ue.has(e)}(e))this.raise(b.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?me:fe:de)(e,this.inModule))this.raise(b.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(b.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(b.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(b.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(b.ArgumentsInClass,t)}isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(b.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(b.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||Q(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(b.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(b.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(b.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(b.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const Bt={kind:1},Ft={kind:2},Ut=/[\uD800-\uDFFF]/u,Vt=/in(?:stanceof)?/y;class Wt extends Rt{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],{type:i}=r;if("number"==typeof i){if(138===i){const{loc:t,start:i,value:o,end:a}=r,l=i+1,u=s(t.start,1);e.splice(n,1,new Ke({type:Z(27),value:"#",start:i,end:l,startLoc:t.start,endLoc:u}),new Ke({type:Z(132),value:o,start:l,end:a,startLoc:u,endLoc:t.end})),n++;continue}if(Q(i)){const{loc:o,start:a,value:l,end:u}=r,c=a+1,p=s(o.start,1);let d,f,h,m,y;d=96===t.charCodeAt(a)?new Ke({type:Z(22),value:"`",start:a,end:c,startLoc:o.start,endLoc:p}):new Ke({type:Z(8),value:"}",start:a,end:c,startLoc:o.start,endLoc:p}),24===i?(h=u-1,m=s(o.end,-1),f=null===l?null:l.slice(1,-1),y=new Ke({type:Z(22),value:"`",start:h,end:u,startLoc:m,endLoc:o.end})):(h=u-2,m=s(o.end,-2),f=null===l?null:l.slice(1,-2),y=new Ke({type:Z(23),value:"${",start:h,end:u,startLoc:m,endLoc:o.end})),e.splice(n,1,d,new Ke({type:Z(20),value:f,start:c,end:h,startLoc:p,endLoc:m}),y),n+=2;continue}r.type=Z(i)}}return e}(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:139,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,n),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(b.ModuleExportUndefined,t,{localName:e});return t=139===n?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",s(this.state.startLoc,-1)),t}stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,delete t.expression;const n=t.value,r=n.value,i=this.input.slice(n.start,n.end),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),this.addExtra(n,"expressionValue",r),n.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(ae(e)){if(Vt.lastIndex=t,Vt.test(this.input)){const e=this.codePointAtPos(Vt.lastIndex);if(!le(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return!(102===e&&!t)&&($(e)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,r=this.startNode(),i=!!(2&e),o=!!(4&e),s=1&e;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return o||this.raise(this.state.strict?b.StrictFunction:this.options.annexB?b.SloppyFunctionAnnexB:b.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&o);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(b.UnexpectedLexicalDeclaration,r):this.raise(b.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(b.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(b.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return this.options.allowImportExportEverywhere||s||this.raise(b.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?(e=this.parseImport(r),"ImportDeclaration"!==e.type||e.importKind&&"value"!==e.importKind||(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),("ExportNamedDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||e.exportKind&&"value"!==e.exportKind)&&"ExportDefaultDeclaration"!==e.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(b.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&o)}const a=this.state.value,l=this.parseExpression();return $(n)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,a,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(b.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(b.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(b.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(b.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){const r=this.state.labels[n];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(n===this.state.labels.length){const n=t?"BreakStatement":"ContinueStatement";this.raise(b.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Bt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Bt);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),o=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||o){const n=this.startNode();let o;r?(o="await using",this.isAwaitAllowed()||this.raise(b.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):o=this.state.value,this.next(),this.parseVar(n,!0,o);const s=this.finishNode(n,"VariableDeclaration"),a=this.match(58);return a&&i&&this.raise(b.ForInUsing,s),(a||this.isContextual(102))&&1===s.declarations.length?this.parseForIn(e,s,t):(null!==t&&this.unexpected(t),this.parseFor(e,s))}}const r=this.isContextual(95),i=new nt,o=this.parseExpression(!0,i),s=this.isContextual(102);if(s&&(n&&this.raise(b.ForOfLet,o),null===t&&r&&"Identifier"===o.type&&this.raise(b.ForOfAsync,o)),s||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(o,!0);const n=s?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:n}}),this.parseForIn(e,o,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,o)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(b.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Ft),this.scope.enter(0);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(b.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(b.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(b.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Bt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(b.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,r){for(const e of this.state.labels)e.name===t&&this.raise(b.LabelRedeclaration,n,{labelName:t});const i=(o=this.state.type)>=90&&o<=92?1:this.match(71)?2:null;var o;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.state.start,n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){const o=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(o,t?s:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){const o=this.state.strict;let s=!1,a=!1;for(;!this.match(r);){const r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!a){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),s||"use strict"!==e.value.value||(s=!0,this.setStrict(!0));continue}a=!0,this.state.strictErrors.clear()}e.push(r)}null==i||i.call(this,s),o||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const r=this.match(58);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(b.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(b.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n||this.match(58)||this.isContextual(102)||this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(b.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=2&t,r=!!(1&t),i=r&&!(4&t),o=!!(8&t);this.initFunction(e,o),this.match(55)&&(n&&this.raise(b.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));const s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(et(o,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||$(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new Ye(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(b.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(b.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(b.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){const i=t,o=t,s=t,a=t,l=t,u=i,c=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";const t=this.match(138);return this.parseClassElementName(u),t?void this.pushClassPrivateMethod(e,o,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const p=$(this.state.type)&&!this.state.containsEsc,d=this.match(138),f=this.parseClassElementName(t),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(u.kind="method",d)return void this.pushClassPrivateMethod(e,o,!1,!1);const r=this.isNonstaticConstructor(i);let s=!1;r&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(b.DuplicateConstructor,f),r&&this.hasPlugin("typescript")&&t.override&&this.raise(b.OverrideOnConstructor,f),n.hadConstructor=!0,s=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,s)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s);else if(p&&"async"===f.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);c.optional&&this.unexpected(h),u.kind="method";const n=this.match(138);this.parseClassElementName(u),this.parsePostMemberNameModifiers(c),n?this.pushClassPrivateMethod(e,o,t,!0):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if(!p||"get"!==f.name&&"set"!==f.name||this.match(55)&&this.isLineTerminator())if(p&&"accessor"===f.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(f);const t=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,t)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,a):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(f),u.kind=f.name;const t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(b.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&133!==t||!e.static||"prototype"!==n||this.raise(b.StaticPrototype,this.state.startLoc),138===t){"constructor"===n&&this.raise(b.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e)}parseClassStaticBlock(e,t){var n;this.scope.enter(208);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(b.DecoratorStaticBlock,t)}pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(b.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){if(!n&&!t.computed){const e=t.key;"constructor"!==e.name&&"constructor"!==e.value||this.raise(b.ConstructorClassField,e)}const r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,o){e.body.push(this.parseMethod(t,n,r,i,o,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const o="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,o)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Qe()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if($(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(b.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),o=i&&this.eatExportStar(e),s=o&&this.maybeParseExportNamespaceSpecifier(e),a=i&&(!s||this.eat(12)),l=r||o;if(o&&!s){if(r&&this.unexpected(),t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}const u=this.maybeParseExportNamedSpecifiers(e);let c;if(r&&i&&!o&&!u&&this.unexpected(null,5),s&&a&&this.unexpected(null,98),l||u){if(c=!1,t)throw this.raise(b.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else c=this.maybeParseExportDeclaration(e);if(l||u||c){var p;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(p=n.declaration)?void 0:p.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(b.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);const t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);const t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(b.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if($(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const{type:e}=this.lookahead();if($(e)&&98!==e||5===e)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||$(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(b.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var o;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(o=t.extra)&&o.parenthesized||this.raise(b.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(b.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if("VariableDeclaration"===e.declaration.type)for(const t of e.declaration.declarations)this.checkDeclaration(t.id)}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(b.DuplicateDefaultExport,e):this.raise(b.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(133),o=this.startNode();o.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(o,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){const{type:t,start:n,end:r,loc:i,range:o,extra:s}=e;if("Placeholder"===t)return function(e){return ot(e)}(e);const a=Object.create(it);return a.type=t,a.start=n,a.end=r,a.loc=i,a.range=o,void 0!==e.raw?a.raw=e.raw:a.extra=s,a.value=e.value,a}(e.local):e.exported||(e.exported=ot(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const e=this.parseStringLiteral(this.state.value),t=e.value.match(Ut);return t&&this.raise(b.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{let{key:t,value:n}=e;return"json"===n.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(b.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(b.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(b.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(b.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==e&&this.raise(b.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.parseIdentifier(!0),{type:r}=this.state;return(K(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){const{type:t}=this.state;return $(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:n}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(b.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(b.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(b.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(b.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(b.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!K(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(b.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),r=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();const o=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(b.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=ot(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class qt extends Wt{constructor(e,t){super(e=function(e){if(null==e)return Object.assign({},Lt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");const t={};for(const r of Object.keys(Lt)){var n;t[r]=null!=(n=e[r])?n:Lt[r]}return t}(e),t),this.options=e,this.initializeScopes(),this.plugins=function(e){const t=new Map;for(const n of e){const[e,r]=Array.isArray(n)?n:[n,{}];t.has(e)||t.set(e,r||{})}return t}(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return ve}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}const $t=function(e){const t={};for(const n of Object.keys(e))t[n]=Z(e[n]);return t}(q);function Kt(e,t){let n=qt;return null!=e&&e.plugins&&(function(e){if(Ot(e,"decorators")){if(Ot(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=It(e,"decorators","decoratorsBeforeExport");if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=It(e,"decorators","allowCallParenthesized");if(null!=n&&"boolean"!=typeof n)throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ot(e,"flow")&&Ot(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ot(e,"placeholders")&&Ot(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ot(e,"pipelineOperator")){const t=It(e,"pipelineOperator","proposal");if(!Mt.includes(t)){const e=Mt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const n=Ot(e,["recordAndTuple",{syntaxType:"hash"}]);if("hack"===t){if(Ot(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ot(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=It(e,"pipelineOperator","topicToken");if(!Dt.includes(t)){const e=Dt.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if("smart"===t&&n)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(Ot(e,"moduleAttributes")){if(Ot(e,"importAssertions")||Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==It(e,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ot(e,"importAssertions")&&Ot(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ot(e,"recordAndTuple")&&null!=It(e,"recordAndTuple","syntaxType")&&!kt.includes(It(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+kt.map((e=>`'${e}'`)).join(", "));if(Ot(e,"asyncDoExpressions")&&!Ot(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ot(e,"optionalChainingAssign")&&"2023-07"!==It(e,"optionalChainingAssign","version"))throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(e.plugins),n=function(e){const t=jt.filter((t=>Ot(e,t))),n=t.join("/");let r=Ht[n];if(!r){r=qt;for(const e of t)r=Nt[e](r);Ht[n]=r}return r}(e.plugins)),new n(e,t)}const Ht={};t.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Kt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Kt(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(n){try{return t.sourceType="script",Kt(t,e).parse()}catch(e){}throw n}},t.parseExpression=function(e,t){const n=Kt(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},t.tokTypes=$t},(e,t,n)=>{var r;n(12);var i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new s},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,p=n(230)(),d=n(231)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,y={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&f&&(n=f(i.prototype))}return y[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(71),E=n(233),x=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),T=_.call(Function.call,String.prototype.replace),P=_.call(Function.call,String.prototype.slice),A=_.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(e,t){var n,r=e;if(E(b,r)&&(r="%"+(n=b[r])[0]+"%"),E(y,r)){var o=y[r];if(o===h&&(o=v(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,w,(function(e,t,n,i){r[r.length]=n?T(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=O("%"+r+"%",t),a=o.name,u=o.value,c=!1,p=o.alias;p&&(r=p[0],S(n,x([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=P(h,0,1),g=P(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&f||(c=!0),E(y,a="%"+(r+="."+h)+"%"))u=y[a];else if(null!=u){if(!(h in u)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(u,h);u=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[h]}else f=E(u,h),u=u[h];f&&!c&&(y[a]=u)}}return u}},(e,t,n)=>{const r=n(34),i=n(47),o=n(3),s=n(128),a=n(30),l=n(253),u=n(254),c=n(255),p=n(256),d=n(257),f=n(258),h=n(259),m=n(260),y=n(7),g=n(261),v=n(262),b=n(76),_=n(263),E=n(264),x=n(49),S=n(77),T=n(129),P=n(130),A=n(78),w=n(79),C=n(131),O=n(265),I=n(50),M=n(8),D=n(51),k=n(268),N=n(269),j=n(270),L=n(271),R=n(272),B=n(80),F=n(273),U=n(274),V=n(275),W=n(276),q=n(277);e.exports={parse:a,valid:l,clean:u,inc:c,diff:p,major:d,minor:f,patch:h,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:b,sort:_,rsort:E,gt:x,lt:S,eq:T,neq:P,gte:A,lte:w,cmp:C,coerce:O,Comparator:I,Range:M,satisfies:D,toComparators:k,maxSatisfying:N,minSatisfying:j,minVersion:L,validRange:R,outside:B,gtr:F,ltr:U,intersects:V,simplifyRange:W,subset:q,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},(e,t,n)=>{let r,i,o,s,{isClean:a,my:l}=n(145),u=n(52),c=n(56),p=n(53);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{append(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e[t](...r.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)))}:"every"===t||"some"===t?n=>e[t]((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return n(e.toProxy(),...r)})):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=d(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new u(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}h.registerParse=e=>{r=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,u.prototype):"comment"===e.type?Object.setPrototypeOf(e,c.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},(e,t,n)=>{var r=n(17);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,s,a=n(227).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,p=a.ERR_INVALID_RETURN_VALUE,d=a.ERR_MISSING_ARGS,f=n(241),h=n(32).inspect,m=n(32).types,y=m.isPromise,g=m.isRegExp,v=n(242)(),b=n(74)(),_=n(38)("RegExp.prototype.test");function E(){var e=n(245);o=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var x=!1,S=e.exports=w,T={};function P(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new f({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[w,t.length].concat(t))}S.fail=function e(t,n,i,o,s){var a,l=arguments.length;if(0===l?a="Failed":1===l?(i=t,t=void 0):(!1===x&&(x=!0,(r.emitWarning?r.emitWarning:void 0)("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(o="!=")),i instanceof Error)throw i;var u={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||e};void 0!==i&&(u.message=i);var c=new f(u);throw a&&(c.message=a,c.generatedMessage=!0),c},S.AssertionError=f,S.ok=w,S.equal=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t!=n&&P({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},S.notEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t==n&&P({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},S.deepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),o(t,n)||P({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},S.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),o(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},S.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),s(t,n)||P({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},S.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&E(),s(t,n)&&P({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},S.strictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");b(t,n)||P({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},S.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");b(t,n)&&P({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var C=function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&g(t[e])&&_(t[e],r[e])?i[e]=r[e]:i[e]=t[e])}))}));function O(e,t,n,r){if("function"!=typeof t){if(g(t))return _(t,e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var a=new f({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw a.operator=r.name,a}var l=Object.keys(t);if(t instanceof Error)l.push("name","message");else if(0===l.length)throw new c("error",t,"may not be an empty object");return void 0===o&&E(),l.forEach((function(i){"string"==typeof e[i]&&g(t[i])&&_(t[i],e[i])||function(e,t,n,r,i,o){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new C(e,i),l=new C(t,i,e),u=new f({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}P({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,l,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return T}function M(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function D(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!M(t=e()))throw new p("instance of Promise","promiseFn",t)}else{if(!M(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return T})).catch((function(e){return e}))}))}function k(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new u("error",["Object","Error","Function","RegExp"],n);if(t===T){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var s="rejects"===e.name?"rejection":"exception";P({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:e})}if(n&&!O(t,n,r,e))throw t}function N(e,t,n,r){if(t!==T){if("string"==typeof n&&(r=n,n=void 0),!n||O(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";P({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function j(e,t,n,r,o){if(!g(t))throw new u("regexp","RegExp",t);var s="match"===o;if("string"!=typeof e||_(t,e)!==s){if(n instanceof Error)throw n;var a=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(h(e),")"):(s?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(h(t),". Input:\n\n").concat(h(e),"\n"));var l=new f({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=a,l}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];A.apply(void 0,[L,t.length].concat(t))}S.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];k.apply(void 0,[e,I(t)].concat(r))},S.rejects=function e(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 D(t).then((function(t){return k.apply(void 0,[e,t].concat(r))}))},S.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];N.apply(void 0,[e,I(t)].concat(r))},S.doesNotReject=function e(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 D(t).then((function(t){return N.apply(void 0,[e,t].concat(r))}))},S.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=h(t);var r=new f({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=r.stack.split("\n"),l=0;l<s.length;l++){var u=a.indexOf(s[l]);if(-1!==u){a=a.slice(0,u);break}}r.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw r}},S.match=function e(t,n,r){j(t,n,r,e,"match")},S.doesNotMatch=function e(t,n,r){j(t,n,r,e,"doesNotMatch")},S.strict=v(L,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.NOT_LOCAL_BINDING=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BLOCK_SCOPED_SYMBOL=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const n=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],o=t.COMPARISON_BINARY_OPERATORS=[...i,"in","instanceof"],s=t.BOOLEAN_BINARY_OPERATORS=[...o,...r],a=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...a,...s,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...n.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),u=t.NUMBER_UNARY_OPERATORS=["+","-","~"],c=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...u,...c],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],new Map)};var r=n(9),i=n(2);const o=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function a(e,t,n,r){return Array.isArray(e)?e.map((e=>s(e,t,n,r))):s(e,t,n,r)}function l(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;if(!e)return e;const{type:l}=e,c={type:e.type};if((0,i.isIdentifier)(e))c.name=e.name,o(e,"optional")&&"boolean"==typeof e.optional&&(c.optional=e.optional),o(e,"typeAnnotation")&&(c.typeAnnotation=t?a(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!o(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const p of Object.keys(r.NODE_FIELDS[l]))o(e,p)&&(c[p]=t?(0,i.isFile)(e)&&"comments"===p?u(e.comments,t,n,s):a(e[p],!0,n,s):e[p])}return o(e,"loc")&&(c.loc=n?null:e.loc),o(e,"leadingComments")&&(c.leadingComments=u(e.leadingComments,t,n,s)),o(e,"innerComments")&&(c.innerComments=u(e.innerComments,t,n,s)),o(e,"trailingComments")&&(c.trailingComments=u(e.trailingComments,t,n,s)),o(e,"extra")&&(c.extra=Object.assign({},e.extra)),c}function u(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:i,value:o,loc:s}=e,a={type:i,value:o,loc:s};return n&&(a.loc=null),r.set(e,a),a})):e}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var r=n(162),i=n(61),o=n(14),s=n(183),a=n(0),l=a,u=n(35),c=n(101),p=n(423),d=n(424),f=n(427),h=n(430),m=n(431),y=n(436),g=n(437),v=n(438),b=n(440),_=n(442),E=n(443),x=n(163);const{validate:S}=a,T=i("babel"),P=t.REMOVED=1,A=t.SHOULD_STOP=2,w=t.SHOULD_SKIP=4;class C{constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}static get(e){let{hub:t,parentPath:n,parent:r,container:i,listKey:o,key:s}=e;if(!t&&n&&(t=n.hub),!r)throw new Error("To get a node path the parent needs to exist");const a=i[s],l=u.getOrCreateCachedPaths(t,r);let c=l.get(a);return c||(c=new C(t,r),a&&l.set(a,c)),c.setup(n,i,o,s),c}getScope(e){return this.isScope()?new s.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,o.default)(this.node,e,this.scope,t,this)}set(e,t){S(this.node,e,t),this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath);return e.join(".")}debug(e){T.enabled&&T(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,c.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&w)}set shouldSkip(e){e?this._traverseFlags|=w:this._traverseFlags&=~w}get shouldStop(){return!!(this._traverseFlags&A)}set shouldStop(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}get removed(){return!!(this._traverseFlags&P)}set removed(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}}Object.assign(C.prototype,p,d,f,h,m,y,g,v,b,_,E),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;for(const e of l.TYPES){const t=`is${e}`,n=l[t];C.prototype[t]=function(e){return n(this.node,e)},C.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(C.prototype,x);for(const e of Object.keys(r))"_"!==e[0]&&(l.TYPES.includes(e)||l.TYPES.push(e));t.default=C},(e,t,n)=>{var r=n(19),i=n(63),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},(e,t,n)=>{const r=n(3);e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},(e,t,n)=>{n(12);const r=n(417),i=n(418),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.a=l,t.b=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=a(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return c(e),a(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(X(r))return s;e[n+s]=r}return s}function E(e,t,n,r){return G(H(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return G(z(t),e,n,r)}function T(e,t,n,r){return G(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=w));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.b;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<a;++e)if(u[e]!==c[e]){o=u[e],s=c[e];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const w=4096;function C(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=J[e[r]];return i}function M(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function j(e,t,n,r,i){W(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return t=+t,n>>>=0,o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||$(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e){return N(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const F={};function U(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function W(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||$(t,e.length-(n+1))}(r,i,o)}function q(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},(e,t,n)=>{var r=n(17),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])y(a)||!E(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation,i=!0}return e.apply(this,arguments)}};var s={},a=/^$/;function l(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),p(r,e,r.depth)}function u(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function c(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return v(i)||(i=p(e,i,r)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return d(n)}var u,c="",E=!1,P=["{","}"];return h(n)&&(E=!0,P=["[","]"]),T(n)&&(c=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(c=" "+RegExp.prototype.toString.call(n)),x(n)&&(c=" "+Date.prototype.toUTCString.call(n)),S(n)&&(c=" "+d(n)),0!==s.length||E&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=E?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return f(e,n,r,a,t,E)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,c,P)):P[0]+c+P[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===P(e)}function E(e){return"object"==typeof e&&null!==e}function x(e){return E(e)&&"[object Date]"===P(e)}function S(e){return E(e)&&("[object Error]"===P(e)||e instanceof Error)}function T(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(a.test(e)?(r.pid,s[e]=function(){t.format.apply(t,arguments)}):s[e]=function(){}),s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=x,t.types.isDate=x,t.isError=S,t.types.isNativeError=S,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(240),t.log=function(){},t.inherits=n(158),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var w="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(w&&e[w]){var t;if("function"!=typeof(t=e[w]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),w&&Object.defineProperty(t,w,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=w,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(s.bind(null,null,e))}),(function(e){r.nextTick(C.bind(null,e,s))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},(e,t)=>{function n(e){const{context:t,node:n}=e;if(n.computed&&t.maybeQueue(e.get("key")),n.decorators)for(const n of e.get("decorators"))t.maybeQueue(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=n,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var r={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&n(e))},Property(e){e.isObjectProperty()||(e.skip(),n(e))}};t.default=r},(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(47),s=n(48),a=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.t={};let p=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;s(e,i,t),c[e]=i,u[i]=t,a[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),h("FULL",`^${u[c.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),h("LOOSE",`^${u[c.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),h("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",u[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){i(),o()},t.clearPath=i,t.clearScope=o,t.getCachedPaths=function(e,t){var r;return null==(r=n.get(s))?void 0:r.get(t)},t.getOrCreateCachedPaths=function(e,t){let r=n.get(s);r||n.set(s,r=new WeakMap);let i=r.get(t);return i||r.set(t,i=new Map),i},t.scope=t.path=void 0;let n=t.path=new WeakMap,r=t.scope=new WeakMap;function i(){t.path=n=new WeakMap}function o(){t.scope=r=new WeakMap}const s=Object.freeze({})},(e,t,n)=>{var r=n(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=c,t.default=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!l){l=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";r.emitWarning?r.emitWarning(e,"DeprecationWarning"):new Error(e).name="DeprecationWarning"}return c(e,{start:{column:n=Math.max(n,0),line:t}},i)};var i=n(428),o=function(e){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=s(!0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}let a,l=!1;const u=/\r\n|[\n\r\u2028\u2029]/;function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(n.highlightCode||n.forceColor)&&(0,i.shouldHighlight)(n),s=n.forceColor?(null!=a||(a=new o.default.constructor({enabled:!0,level:1})),a):o.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),c=(e,t)=>r?e(t):t,p=e.split(u),{start:d,end:f,markerLines:h}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,l=r.column,u=i.line,c=i.column;let p=Math.max(a-(o+1),0),d=Math.min(t.length,u+s);-1===a&&(p=0),-1===u&&(d=t.length);const f=u-a,h={};if(f)for(let e=0;e<=f;e++){const n=e+a;if(l)if(0===e){const e=t[n-1].length;h[n]=[l,e-l+1]}else if(e===f)h[n]=[0,c];else{const r=t[n-e].length;h[n]=[0,r]}else h[n]=!0}else h[a]=l===c?!l||[l,0]:[l,c-l];return{start:p,end:d,markerLines:h}}(t,p,n),m=t.start&&"number"==typeof t.start.column,y=String(f).length;let g=(r?(0,i.default)(e,n):e).split(u,f).slice(d,f).map(((e,t)=>{const r=d+1+t,i=` ${` ${r}`.slice(-y)} |`,o=h[r],s=!h[r+1];if(o){let t="";if(Array.isArray(o)){const r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),a=o[1]||1;t=["\n ",c(l.gutter,i.replace(/\d/g," "))," ",r,c(l.marker,"^").repeat(a)].join(""),s&&n.message&&(t+=" "+c(l.message,n.message))}return[c(l.marker,">"),c(l.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${c(l.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!m&&(g=`${" ".repeat(y+1)}${n.message}\n${g}`),r?s.reset(g):g}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(432),i=n(433);const o=(0,i.default)(r.smart);t.smart=o;const s=(0,i.default)(r.statement);t.statement=s;const a=(0,i.default)(r.statements);t.statements=a;const l=(0,i.default)(r.expression);t.expression=l;const u=(0,i.default)(r.program);t.program=u;var c=Object.assign(o.bind(void 0),{smart:o,statement:s,statements:a,expression:l,program:u,ast:o.ast});t.default=c},(e,t,n)=>{var r=n(22),i=n(41),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return i?Object.defineProperty((function(){return u(),e(...arguments)}),"name",{value:s}):e},t.endHiddenCallStack=function(e){return i?Object.defineProperty((function(){return e(...arguments)}),"name",{value:o}):e},t.expectedError=function(e){if(i)return a.add(e),e},t.injectVirtualStackFrame=function(e,t){if(!i)return;let n=l.get(e);return n||l.set(e,n=[]),n.push(function(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}(t)),e};const r=Function.call.bind(Error.prototype.toString),i=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),o="startHiding - secret - don't use this - v1",s="stopHiding - secret - don't use this - v1",a=new WeakSet,l=new WeakMap;function u(){u=()=>{};const{prepareStackTrace:e=c}=Error;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(t,n){let r=[],i=a.has(t)?"hiding":"unknown";for(let e=0;e<n.length;e++){const a=n[e].getFunctionName();if(a===o)i="hiding";else if(a===s){if("hiding"===i)i="showing",l.has(t)&&r.unshift(...l.get(t));else if("unknown"===i){r=n;break}}else"hiding"!==i&&r.push(n[e])}return e(t,r)}}function c(e,t){return 0===t.length?r(e):`${r(e)}\n at ${t.join("\n at ")}`}},(e,t,n)=>{let r,i,o=n(24);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},(e,t,n)=>{var r=n(71),i=n(22),o=n(234),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,a),c=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(r,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(r,a,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,o.default)(t.expectedNode,e))};var r=n(96),i=n(98),o=n(168),s=n(9)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e)};var r=n(59)},(e,t,n)=>{var r=n(5),i=n(15),o=n(102),s=n(204),a=n(11),l=r.RegExp,u=l.prototype;i&&a((function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(o.hasIndices="d"),o)i(s,o[s]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&o(u,"flags",{configurable:!0,get:s})},(e,t,n)=>{var r=n(5),i=n(116),o=n(29),s=n(67),a=n(113),l=n(112),u=r.Symbol,c=i("wks"),p=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return o(c,e)||(c[e]=a&&o(u,e)?u[e]:p("Symbol."+e)),c[e]}},(e,t,n)=>{var r=n(123),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=n(121),l=n(72)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;l?a(e,t,n,!0):a(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a<o.length;a+=1)u(e,o[a],t[o[a]],n[o[a]])};c.supportsDescriptors=!!l,e.exports=c},e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},(e,t,n)=>{var r=n(17);const i=("object"==typeof r&&r.env,()=>{});e.exports=i},(e,t,n)=>{const r=n(7);e.exports=(e,t,n)=>r(e,t,n)>0},(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(75),{safeRe:s,t:a}=n(34),l=n(131),u=n(48),c=n(3),p=n(8)},(e,t,n)=>{const r=n(8);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},(e,t,n)=>{let{isClean:r,my:i}=n(145),o=n(87),s=n(146),a=n(54);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new s).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(){if(this.parent){let r=this,i=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t)e===this?i=!0:i?(this.parent.insertAfter(r,e),r=e):this.parent.insertBefore(r,e);i||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}e.exports=u,u.default=u},(e,t,n)=>{let r=n(146);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},(e,t,n)=>{let{SourceMapConsumer:r,SourceMapGenerator:i}=n(149),{fileURLToPath:o,pathToFileURL:s}=n(318),{isAbsolute:a,resolve:l}=n(150),{nanoid:u}=n(319),c=n(317),p=n(87),d=n(151),f=Symbol("fromOffsetCache"),h=Boolean(r&&i),m=Boolean(l&&a);class y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=l(t.from)),m&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n){let r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);i=e.line,o=e.col}else i=r.line,o=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,i,o);return r=l?new p(e,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):new p(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:o,line:i},this.css,this.file,a.plugin),r.input={column:n,endColumn:o,endLine:i,line:t,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[f])n=this[f];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[f]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,l,u=this.map.consumer(),c=u.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof n&&(i=u.originalPositionFor({column:r,line:n})),l=a(c.source)?s(c.source):new URL(c.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={column:c.column,endColumn:i&&i.column,endLine:i&&i.line,line:c.line,url:l.toString()};if("file:"===l.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(l)}let d=u.sourceContentFor(c.source);return d&&(p.source=d),p}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=y,y.default=y,c&&c.registerInput&&c.registerInput(y)},(e,t,n)=>{let r=n(53);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.explode=d,t.isExplodedVisitor=p,t.merge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const r={};for(let i=0;i<e.length;i++){const o=d(e[i]),s=t[i];let a=o;(s||n)&&(a=m(a,s,n)),b(r,a);for(const e of Object.keys(o)){if(v(e))continue;let t=o[e];(s||n)&&(t=m(t,s,n)),b(r[e]||(r[e]={}),t)}}return r},t.verify=f;var r=n(162),i=n(163),o=n(0);const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:l,TYPES:u,__internal__deprecationWarning:c}=o;function p(e){return null==e?void 0:e._exploded}function d(e){if(p(e))return e;e._exploded=!0;for(const t of Object.keys(e)){if(v(t))continue;const n=t.split("|");if(1===n.length)continue;const r=e[t];delete e[t];for(const t of n)e[t]=r}f(e),delete e.__esModule,function(e){for(const t of Object.keys(e)){if(v(t))continue;const n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),y(e);for(const t of Object.keys(e)){if(v(t))continue;if(!(t in r))continue;const n=e[t];for(const e of Object.keys(n))n[e]=g(t,n[e]);delete e[t];const i=r[t];if(null!==i)for(const t of i)e[t]?b(e[t],n):e[t]=n;else b(e,n)}for(const t of Object.keys(e)){if(v(t))continue;let n=l[t];if(t in s){const e=s[t];c(t,e,"Visitor "),n=[e]}else if(t in a){const e=a[t];c(t,e,"Visitor "),n=l[e]}if(!n)continue;const r=e[t];delete e[t];for(const t of n){const n=e[t];n?b(n,r):e[t]=Object.assign({},r)}}for(const t of Object.keys(e))v(t)||y(e[t]);return e}function f(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const t of Object.keys(e)){if("enter"!==t&&"exit"!==t||h(t,e[t]),v(t))continue;if(u.indexOf(t)<0)throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type`);const n=e[t];if("object"==typeof n)for(const e of Object.keys(n)){if("enter"!==e&&"exit"!==e)throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`);h(`${t}.${e}`,n[e])}}e._verified=!0}}function h(e,t){const n=[].concat(t);for(const t of n)if("function"!=typeof t)throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}function m(e,t,n){const r={};for(const i of["enter","exit"]){let o=e[i];Array.isArray(o)&&(o=o.map((function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(null==t?void 0:t.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r})),r[i]=o)}return r}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function g(e,t){const n=i[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}function v(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e}function b(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(n.has(e))return;n.add(e);const{internal:r,trace:i}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let n;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){n=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!n)return{internal:!1,trace:""};const r=n.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map((e=>` at ${e}`)).join("\n")}}()};const n=new Set},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(353),i=n(354)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r=n(2);function i(e,t,n,o){const s=[].concat(e),a=Object.create(null);for(;s.length;){const e=s.shift();if(!e)continue;if(o&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)))continue;const l=i.keys[e.type];if((0,r.isIdentifier)(e))t?(a[e.name]=a[e.name]||[]).push(e):a[e.name]=e;else if(!(0,r.isExportDeclaration)(e)||(0,r.isExportAllDeclaration)(e)){if(n){if((0,r.isFunctionDeclaration)(e)){s.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}if(l)for(let t=0;t<l.length;t++){const n=e[l[t]];n&&(Array.isArray(n)?s.push(...n):s.push(n))}}else(0,r.isDeclaration)(e.declaration)&&s.push(e.declaration)}return a}i.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}},e=>{e.exports=function(){return function(){}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){const t=e.get("declaration"),n=t.isFunctionDeclaration()||t.isClassDeclaration(),r=t.isFunctionExpression()||t.isClassExpression(),c=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,d=!1;p?r&&c.hasBinding(p.name)&&(d=!0,p=c.generateUidIdentifier(p.name)):(d=!0,p=c.generateUidIdentifier("default"),(n||r)&&(t.node.id=i(p)));const f=n?t.node:l("var",[u(i(p),t.node)]),h=o(null,[s(i(p),a("default"))]);return e.insertAfter(h),e.replaceWith(f),d&&c.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.get("declaration"),n=t.getOuterBindingIdentifiers(),r=Object.keys(n).map((e=>s(a(e),a(e)))),c=o(null,r);return e.insertAfter(c),e.replaceWith(t.node),e};var r=n(0);const{cloneNode:i,exportNamedDeclaration:o,exportSpecifier:s,identifier:a,variableDeclaration:l,variableDeclarator:u}=r},(e,t,n)=>{var r=n(187),i=Object;e.exports=function(e){return i(r(e))}},(e,t,n)=>{var r=n(5),i=n(106),o="__core-js_shared__",s=r[o]||i(o,{});e.exports=s},(e,t,n)=>{var r=n(20),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},(e,t,n)=>{var r=n(104),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},(e,t,n)=>{var r=n(19),i=0,o=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return c.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.wrapReference;var o;const s=[],a=v(t.name);for(const e of t.importsNamespace)e!==t.name&&s.push(i.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:h(a)}));const l=null!=(o=r(a,t.wrap))?o:a;n&&s.push(...A(e,t,!0,r));for(const n of t.reexportNamespace)s.push((i.types.isIdentifier(l)?i.template.statement`EXPORTS.NAME = NAMESPACE;`:i.template.statement`
3
3
  Object.defineProperty(EXPORTS, "NAME", {
4
4
  enumerable: true,
5
5
  get: function() {