@snack-kit/core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/liujia/%E5%B7%A5%E4%BD%9C/snack/core/dist/cjs/index.js"],"names":["__create","Object","create","__defProp","defineProperty","__hasOwnProp","prototype","hasOwnProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getProtoOf","getPrototypeOf","__export","target","all","name","get","__copyProps","to","from","except","desc","call","key","enumerable","__getOwnPropNames","mod","isNodeMode","__esModule","value","__toCommonJS","src_exports","Core","DisplayModule","GetDefaultEvents","GetParamsDetails","Loading","ParamsDetails","Snack","SnackSDK","SnackSetting","default","src_default","enParamsDetails","replaceVars","import_lib2","require","import_react","__toESM","import_lib","i18nIntl","sdk","ops","i18nData","params","lang","defI18nData","locale2","getLocale","text2","data","localeDefault","replaceStrTemplateVars","localeMapping","GetLanguage","obj","path","defaultValue","pathArr","replace","split","result","str","vars","strTemplateReg","parts","isJsx","valArr","map","part","match","val","length","join","createElement","Fragment","isEmptyObject","import_react2","http","utils","types","inFormatJS","outFormatJS","verifyJS","eventJS","onCreateBefore","defTypes","evalJS_default","type","code","$field","$this","M","formAttr","field","$fields","$verify","$message","console","error","evalArgs","args","param","i","$children","push","$defaultData","__defaultvalue","getModule","show","disable","err","$val","child","verify","$forceUpdate","$display","D","style","display","__display__","__disabled__","disabled","$disable","monaco","event","_ParamsDetails","list","l","item","filterEvents","indexOf","events","label","insertText","detail","kind","documentation","languages","CompletionItemKind","window","evalFunc","isSync","Array","AsyncFunction","keys","VerRegx","srcData","traversalObject","replaceValue","strArr","matched","nv","$$typeof","jsx","index","children","traversaled","defData","$name","$i18nMap","$forceUpdateId","Math","random","isBasic","isContainer","isDrop","isTemplate","isForm","settingMode","$lastUpdateId","parent","moduleMaps","$id","$i18n","DeepClone","runtime","props","cloneData","recursiveParseJson","getExprArgv","isArray","s2","JSON","stringify","parse","clone","FC","import_react3","useState","update","setUpdate","$forceUpdateHook","isDrag","$component","JSX","reload","e","warn","$style","forEach","css","$destroy","$language","$lang","localStorage","getItem","$getI18n","external","$i18nMapExternal","$intl","b","_this","$parent","$page","childrenMaps","cloneDeep","re","snack_default","parsePath","tokens","m","exec","normalized","token","safeGet","reduce","acc","safeSet","lastKey","pop","arguments","main","model","$normal","$model","parseExpr","change","exports","processTemplateString","_default","global","_instanceof","left","right","importMaps","Symbol","hasInstance","_typeof","_typeof2","obj2","commentReplace","singlePrefix","isFunction","it","ary","func","each","eachReverse","hasOwn","prop","hasProp","mixin","source","force","deepStringMixin","eachProp","bind","fn","apply","scripts","document","getElementsByTagName","defaultOnError","getGlobal","g","makeError","id","Error","msg","requireModules","requireType","originalError","requirejs","cfg","newContext","contextName","inCheckLoaded","Module","context","handlers","checkLoadedTimeoutId","_config","waitSeconds","baseUrl","paths","config","registry","enabledRegistry","undefEvents","defQueue","_defined","urlFetched","bundlesMap","requireCounter","unnormalizedCounter","splice","normalize","baseName","applyMap","pkgMain","mapValue","nameParts","j","nameSegment","lastIndex","foundMap","foundI","foundStarMap","starI","normalizedBaseParts","baseParts","starMap","nodeIdCompat","jsSuffixRegExp","test","charAt","slice","concat","trimDots","outerLoop","getOwn","pkgs","removeScript","isBrowser","scriptNode","getAttribute","parentNode","removeChild","pathConfig","shift","undef","makeRequire","skipMap","prefix","substring","makeModuleMap","url","pluginModule","parentModuleMap","suffix","isNormalized","parentName","isDefine","originalName","normalizedName","splitPrefix","name2","parentMap","unnormalized","depMap","on","defineEmitComplete","onError","errback","ids","notified","require2","exports2","usingExports","uri","cleanRegistry","breakCycle","traced","processed","dep","depMatched","depId","defineDep","check","modId","inited","expired","hasPathFallback","noLoads","needCycleCheck","usingPathFallback","stillLoading","fetched","isWebWorker","reqCalls","checkLoaded","Module2","shim","depExports","depMaps","factory","options","enabled","depCount","enable","fetch","enableBuildCallback","deps","load","enabling","cjsModule","emit","req","module","requireMap","ignore","resLoadMaps","normalizedMap","onResourceLoad","defined","defining","callPlugin","pluginMap","plugin","normalizedMod","bundleId","localRequire","init","textAlt","useInteractive","moduleMap","moduleName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,GAAAA;;;6EAERtI,QAAQI,MAAM,CAACmI,WAAW,GAAGvI,QAAQI,MAAM,CAACnB,GAAG;;;;;;wDACjD,GAAA,CAAA,QAAA,YAAA;;;;;;;;mDACA,IAAI,mBAAA,QAAA,WAAA","sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n Core: () => Core,\n DisplayModule: () => DisplayModule,\n Error: () => Error2,\n GetDefaultEvents: () => GetDefaultEvents,\n GetParamsDetails: () => GetParamsDetails,\n Loading: () => Loading,\n ParamsDetails: () => ParamsDetails,\n Snack: () => Snack,\n SnackSDK: () => SnackSDK,\n SnackSetting: () => SnackSetting,\n default: () => src_default,\n enParamsDetails: () => enParamsDetails,\n evalFunc: () => evalFunc,\n replaceVars: () => replaceVars\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/class/snack.tsx\nvar import_react3 = __toESM(require(\"react\"));\nvar import_lib2 = require(\"@paraview/lib\");\n\n// src/utils/common.tsx\nvar import_react = __toESM(require(\"react\"));\nvar import_lib = require(\"@paraview/lib\");\nfunction i18nIntl(sdk, ops, i18nData, params, lang, defI18nData) {\n let locale2 = getLocale(sdk, lang);\n let text2, key;\n if (typeof ops === \"string\") {\n key = ops;\n } else if (typeof ops === \"object\") {\n if (typeof ops.id !== \"string\") return 'i18n intl object \"id\" is missing';\n key = ops.id;\n }\n if (key !== void 0) {\n const data = i18nData[locale2] || i18nData[sdk.localeDefault];\n if (typeof data === \"object\")\n text2 = data[key];\n if (text2 === void 0 && defI18nData) {\n text2 = defI18nData[locale2]?.[key] || defI18nData[sdk.localeDefault]?.[key];\n }\n }\n if (typeof text2 !== \"string\")\n return `{${key}}`;\n return replaceStrTemplateVars(text2, params);\n}\nfunction getLocale(sdk, lang) {\n const localeMapping = sdk?.localeMapping;\n let locale2 = lang || (0, import_lib.GetLanguage)();\n if (!localeMapping) return locale2;\n if (localeMapping[locale2] !== void 0)\n return localeMapping[locale2];\n return locale2;\n}\nvar get = (obj, path, defaultValue) => {\n const pathArr = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n let result = obj;\n for (const p of pathArr) {\n result = Object(result)[p];\n if (result === void 0) {\n return defaultValue;\n }\n }\n return result;\n};\nvar replaceStrTemplateVars = (str, vars) => {\n if (!vars) return str;\n str = str.replace(/\\\"/g, '\\\\\"');\n const strTemplateReg = /({[^{}]+})/g;\n const parts = str.split(strTemplateReg);\n let isJsx = false;\n const valArr = parts.map((part) => {\n if (part.match(strTemplateReg)) {\n const key = part.replace(/({|})/g, \"\");\n const val = get(vars, key);\n if (val && val.$$typeof) isJsx = true;\n return val === void 0 ? key : val;\n }\n return part;\n });\n if (valArr.length && isJsx) return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, valArr);\n return valArr.join(\"\");\n};\nvar isEmptyObject = (value) => {\n if (value && typeof value === \"object\") {\n try {\n const val = JSON.stringify(value);\n if (val === \"[]\" || val === \"{}\") return true;\n } catch (e) {\n }\n }\n return false;\n};\n\n// src/utils/evalJS.ts\nvar import_react2 = __toESM(require(\"react\"));\nvar http = __toESM(require(\"@paraview/lib/http\"));\nvar utils = __toESM(require(\"@paraview/lib/utils\"));\nvar types = {\n // 自定义入参转换脚本参数\n inFormatJS: [\"$verify\"],\n // 自定义出参转换脚本参数\n outFormatJS: [\"$verify\"],\n // 自定义校验脚本参数\n verifyJS: [\"$cb\"],\n // 自定义事件脚本\n eventJS: [\"$verify\"],\n // 初始化之前事件\n onCreateBefore: [\"$defaultStyle\", \"$defaultDisplay\", \"$defaultModuleData\"]\n};\nvar defTypes = [\n \"$this\",\n \"$key\",\n \"$field\",\n \"$fields\",\n \"$children\",\n \"$value\",\n \"$defaultValue\",\n \"$defaultData\",\n \"$val\",\n \"$getData\",\n \"$display\",\n \"$disable\",\n \"$http\",\n \"$utils\",\n \"$message\"\n];\nfunction evalJS_default(type, code, data) {\n try {\n const M = data.$this;\n const $field = M?.data?.formAttr?.field;\n const $fields = data.$fields;\n const $verify = data.$verify;\n const $children = data.$children;\n const $message = data.$message;\n const params = types[type];\n if (!params)\n return console.error(`SnackCore: the type(${type}) is unrealized`);\n const evalArgs = [...params, ...defTypes];\n let evalFunc2 = new Function(\n ...evalArgs,\n ` with (${evalArgs.join(\", \")}) {\n ${code}\n }`\n );\n const args = [];\n for (let i = 0, l = params.length; i < l; i++) {\n const param = params[i];\n args[i] = data[param] || null;\n }\n const getModule = (key) => {\n return $fields[key] || $children[key];\n };\n args.push(M);\n args.push($field && $fields[$field]?.D?.data?.key);\n args.push($field);\n args.push($fields);\n args.push($children);\n args.push(M?.data?.value);\n args.push(M?.data?.__defaultvalue);\n args.push(data.$defaultData);\n args.push(\n (key, value) => $val(getModule(key), value, $verify)\n );\n args.push((key) => getModule(key)?.M?.data);\n args.push(\n (key, show = true) => $display(getModule(key), show)\n );\n args.push(\n (key, disable = true) => $disable(getModule(key), disable)\n );\n args.push(http);\n args.push(utils);\n args.push($message);\n return evalFunc2.apply(window, args);\n } catch (err) {\n console.error(\"`SnackCore: run js error\", err);\n }\n return null;\n}\nfunction $val(child, value, verify) {\n if (!child) return void 0;\n const M = child.M;\n if (value === void 0) return M.data.value;\n if (M.data.value === value) return M.data.value;\n M.data.value = value;\n M.$forceUpdate();\n if (verify) verify(M.data?.formAttr?.field);\n return value;\n}\nfunction $display(child, show = true) {\n if (!child) return child;\n if (show) {\n if (child.D.data.style.display !== \"none\") return child;\n if (child.D.__display__ !== void 0) {\n child.D.data.style.display = child.D.__display__;\n delete child.D.__display__;\n } else child.D.data.style.display = \"block\";\n if (child.M.__disabled__ !== void 0) {\n child.M.data.formAttr.disabled = child.M.__disabled__;\n delete child.M.__disabled__;\n } else if (child.M.data.formAttr) child.M.data.formAttr.disabled = false;\n } else {\n if (child.D.data.style.display === \"none\") return child;\n child.D.__display__ = child.D.data.style.display;\n child.D.data.style.display = \"none\";\n if (child.M.data.formAttr && child.M.data.formAttr.disabled !== void 0) {\n child.M.__disabled__ = child.M.data.formAttr.disabled;\n child.M.data.formAttr.disabled = true;\n }\n }\n child.D.$forceUpdate();\n return child;\n}\nvar DisplayModule = $display;\nfunction $disable(child, disabled = false) {\n if (!child) return child;\n if (child.M?.data?.formAttr) {\n child.M.data.formAttr.disabled = disabled;\n child.M.$forceUpdate();\n }\n return child;\n}\nvar GetParamsDetails = (monaco, event, locale2) => {\n const _ParamsDetails = locale2 === \"en-US\" ? enParamsDetails : ParamsDetails;\n const list = [];\n for (let i = 0, l = _ParamsDetails.length; i < l; i++) {\n const item = _ParamsDetails[i];\n if (event) {\n if (item.filterEvents && item.filterEvents.indexOf(event) !== -1)\n continue;\n if (item.events && item.events.indexOf(event) === -1) continue;\n }\n list.push({\n label: item.label,\n insertText: item.insertText,\n detail: item.detail,\n documentation: item.documentation,\n kind: monaco?.languages?.CompletionItemKind?.[\"Keyword\"]\n });\n }\n return list;\n};\nwindow.GetParamsDetails = GetParamsDetails;\nvar ParamsDetails = [\n {\n label: \"$this\",\n insertText: \"$this\",\n detail: \"\\u5F53\\u524D\\u9009\\u4E2D\\u7684\\u7EC4\\u4EF6\\u5BF9\\u8C61,\\uFF08\\u5F53\\u5728onCreateBefore\\u4E8B\\u4EF6\\u65F6\\uFF0C\\u8BE5\\u5BF9\\u8C61\\u4EC5\\u53EA\\u6709\\u5165\\u53C2\\u6570\\u636E\\uFF0C\\u5E76\\u4E0D\\u662F\\u4E00\\u4E2A\\u7EC4\\u4EF6\\u5B9E\\u4F8B\\uFF09\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$key\",\n insertText: \"$key\",\n detail: \"\\u5F53\\u524D\\u9009\\u4E2D\\u7EC4\\u4EF6\\u7684\\u552F\\u4E00key\\u503C\"\n },\n {\n label: \"$field\",\n insertText: \"$field\",\n detail: \"\\u5F53\\u524D\\u9009\\u4E2D\\u7EC4\\u4EF6\\u6240\\u7ED1\\u5B9A\\u5B57\\u6BB5\\u540D\"\n },\n {\n label: \"$fields\",\n insertText: \"$fields\",\n detail: \"\\u5F53\\u524D\\u8868\\u5355\\u6240\\u6709\\u5B57\\u6BB5\\u4E0E\\u7EC4\\u4EF6\\u5BF9\\u8C61\\u7684\\u952E\\u503C\\u5BF9\"\n },\n {\n label: \"$children\",\n insertText: \"$children\",\n detail: \"\\u5F53\\u524D\\u9875\\u9762\\u6240\\u6709\\u5143\\u7D20\\u7684\\u5BF9\\u8C61\\u952E\\u503C\\u5BF9\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$verify\",\n insertText: '$verify(\"\")',\n detail: '\\u5B57\\u6BB5\\u6821\\u9A8C\\u65B9\\u6CD5\\uFF0C\\u6307\\u5B9A\\u6821\\u9A8C\\u67D0\\u4E2A\\u5B57\\u6BB5\\uFF1A$verify(\"$field\")\\uFF0C\\u5426\\u5219\\u5168\\u91CF\\u5B57\\u6BB5\\u6821\\u9A8C\\uFF08\\u81EA\\u5B9A\\u4E49\\u6821\\u9A8C\\u811A\\u672C\\u8BE5\\u65B9\\u6CD5\\u65E0\\u6548\\uFF09'\n },\n {\n events: [\"verifyJS\"],\n label: \"$cb\",\n insertText: '$cb({error: true, helperText: \"error msg\"})',\n detail: \"\\u6821\\u9A8C\\u5B8C\\u6210\\u7684\\u56DE\\u8C03\\u51FD\\u6570\\uFF08\\u4EC5\\u81EA\\u5B9A\\u6821\\u9A8C\\u811A\\u672C\\u6709\\u6548\\uFF09\"\n },\n {\n label: \"$value\",\n insertText: \"$value\",\n detail: \"\\u5F53\\u524D\\u7EC4\\u4EF6\\u7684value\\u503C\"\n },\n {\n label: \"$defaultValue\",\n insertText: \"$defaultValue\",\n detail: \"\\u5F53\\u524D\\u7EC4\\u4EF6\\u521D\\u59CB\\u7684value\\u503C\"\n },\n {\n label: \"$defaultData\",\n insertText: \"$defaultData\",\n detail: \"\\u5F53\\u524D\\u8868\\u5355\\u521D\\u59CB\\u4F20\\u5165\\u7684data\\u6570\\u636E\\u586B\\u5145\\u5BF9\\u8C61\"\n },\n {\n label: \"$val\",\n insertText: '$val(\"\")',\n detail: \"\\u6307\\u5B9A\\u83B7\\u53D6\\u7EC4\\u4EF6\\u6216\\u8BBE\\u7F6E\\u7EC4\\u4EF6\\u7684value\\u503C\",\n documentation: \"\\u83B7\\u53D6\\u7EC4\\u4EF6\\u503C\\uFF1A $val(key)\\uFF1B\\u8BBE\\u7F6E\\u7EC4\\u4EF6\\u503C\\uFF1A$val(key, value);\"\n },\n {\n label: \"$getData\",\n insertText: '$getData(\"\")',\n detail: \"\\u83B7\\u53D6\\u6307\\u5B9A\\u5B57\\u6BB5\\u7EC4\\u4EF6\\u7684data\\u5BF9\\u8C61\",\n documentation: \"$val(key, value)\"\n },\n {\n label: \"$display\",\n insertText: '$display(\"\", true);',\n detail: \"\\u6307\\u5B9A\\u5B57\\u6BB5\\u7684\\u7EC4\\u4EF6\\u662F\\u5426\\u663E\\u793A\",\n documentation: \"\\u663E\\u793A\\u7EC4\\u4EF6\\uFF1A$display(key, true)\\uFF1B\\u9690\\u85CF\\u7EC4\\u4EF6\\uFF1A$display(key, false)\"\n },\n {\n label: \"$disable\",\n insertText: '$disable(\"\", true);',\n detail: \"\\u6307\\u5B9A\\u8BBE\\u7F6E\\u652F\\u6301\\u7981\\u7528\\u529F\\u80FD\\u7684\\u7EC4\\u4EF6\\u72B6\\u6001\",\n documentation: \"\\u7981\\u7528\\u7EC4\\u4EF6\\uFF1A$disable(key, true)\\uFF1B\\u53D6\\u6D88\\u7981\\u7528\\uFF1A$disable(key, false)\"\n },\n {\n label: \"$http\",\n insertText: \"$http\",\n detail: \"paralib http\\u8BF7\\u6C42\\u6A21\\u5757\"\n },\n {\n label: \"$utils\",\n insertText: \"$utils\",\n detail: \"paralib \\u5DE5\\u5177\\u65B9\\u6CD5\\u6A21\\u5757\"\n },\n {\n label: \"$message\",\n insertText: \"$message\",\n detail: \"paraUi message\\u63D0\\u793A\\u7EC4\\u4EF6,\\u9700\\u5728\\u521D\\u59CB\\u5316sdk\\u65F6\\u4F20\\u5165message\\u5BF9\\u8C61\\u65B9\\u53EF\\u4F7F\\u7528\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultModuleData\",\n insertText: \"$defaultModuleData\",\n detail: \"\\u9ED8\\u8BA4\\u5F53\\u524D\\u7EC4\\u4EF6\\u521D\\u59CB\\u5316\\u53C2\\u6570\\u5BF9\\u8C61\\uFF0C\\u4EC5onCreateBefore\\u4E8B\\u4EF6\\u6709\\u6548\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultStyle\",\n insertText: \"$defaultStyle\",\n detail: \"\\u9ED8\\u8BA4\\u5F53\\u524D\\u7EC4\\u4EF6\\u6E32\\u67D3\\u6837\\u5F0F\\u5BF9\\u8C61\\uFF0C\\u4EC5onCreateBefore\\u4E8B\\u4EF6\\u6709\\u6548\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultDisplay\",\n insertText: \"$defaultDisplay(true);\",\n detail: \"\\u9ED8\\u8BA4\\u5F53\\u524D\\u7EC4\\u4EF6\\u663E\\u793A\\u6216\\u5F71\\u85CF\\u72B6\\u6001\\u8BBE\\u7F6E\\uFF0C\\u4EC5onCreateBefore\\u4E8B\\u4EF6\\u6709\\u6548\",\n documentation: \"\\u9ED8\\u8BA4\\u663E\\u793A\\u7EC4\\u4EF6\\uFF1A$defaultDisplay(true)\\uFF1B\\u9690\\u85CF\\u7EC4\\u4EF6\\uFF1A$defaultDisplay(false);\"\n }\n];\nvar enParamsDetails = [\n {\n label: \"$this\",\n insertText: \"$this\",\n detail: \"current component object, (when in onCreateBefore event, this object only has input data, not a component instance)\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$key\",\n insertText: \"$key\",\n detail: \"unique key of current component\"\n },\n {\n label: \"$field\",\n insertText: \"$field\",\n detail: \"The name of the field bound to the currently selected component\"\n },\n {\n label: \"$fields\",\n insertText: \"$fields\",\n detail: \"field name bound to current component\"\n },\n {\n label: \"$children\",\n insertText: \"$children\",\n detail: \"key-value pairs of all elements in current page\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$verify\",\n insertText: '$verify(\"\")',\n detail: 'field validation method, specify validation for a field: $verify(\"$field\"), otherwise validate all fields (custom validation script invalid for this method)'\n },\n {\n events: [\"verifyJS\"],\n label: \"$cb\",\n insertText: '$cb({error: true, helperText: \"error msg\"})',\n detail: \"Verified callback function (only custom verification scripts are valid)\"\n },\n {\n label: \"$value\",\n insertText: \"$value\",\n detail: \"The value of the current component\"\n },\n {\n label: \"$defaultValue\",\n insertText: \"$defaultValue\",\n detail: \"The initial value of the current component\"\n },\n {\n label: \"$defaultData\",\n insertText: \"$defaultData\",\n detail: \"The data data that is initially passed in to fill the object of the current form\"\n },\n {\n label: \"$val\",\n insertText: '$val(\"\")',\n detail: \"Specify the value of the component to be obtained or set\",\n documentation: \"Get component value: $val (key); Set component value: $val (key, value);\"\n },\n {\n label: \"$getData\",\n insertText: '$getData(\"\")',\n detail: \"Obtain the data object of the specified field component\",\n documentation: \"$val(key, value)\"\n },\n {\n label: \"$display\",\n insertText: '$display(\"\", true);',\n detail: \"Specifies whether the portlet of the field is displayed\",\n documentation: \"Display component: $display (key, true); Hidden component: $display (key, false)\"\n },\n {\n label: \"$disable\",\n insertText: '$disable(\"\", true);',\n detail: \"Specifies the status of the component that sets the support for disabling the feature\",\n documentation: \"Disable component: $disable(key, true); Disable: $disable (key, false)\"\n },\n {\n label: \"$http\",\n insertText: \"$http\",\n detail: \"paralib http request module\"\n },\n {\n label: \"$utils\",\n insertText: \"$utils\",\n detail: \"paralib tool method module\"\n },\n {\n label: \"$message\",\n insertText: \"$message\",\n detail: \"paraUi message components,You need to pass in a message object when initializing the SDK to use it\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultModuleData\",\n insertText: \"$defaultModuleData\",\n detail: \"By default, the current component initializes the parameter object, and only the onCreateBefore event is valid\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultStyle\",\n insertText: \"$defaultStyle\",\n detail: \"By default, the current component renders the style object, and only the onCreateBefore event is valid\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultDisplay\",\n insertText: \"$defaultDisplay(true);\",\n detail: \"By default, the current component display or shadow status is set, and only the onCreateBefore event is valid\",\n documentation: \"Default display component: $defaultDisplay (true); Hidden component: $defaultDisplay (false);\"\n }\n];\nvar evalFunc = function(args, code, isSync = false) {\n if (args instanceof Array) args = `{ ${args.join(\",\")} }`;\n if (isSync) {\n const AsyncFunction = Object.getPrototypeOf(\n async function() {\n }\n ).constructor;\n return new AsyncFunction(args, code);\n } else {\n return new Function(args, code);\n }\n};\nvar VerRegx = /(\\{\\{\\s*.*?\\s*\\}\\})/;\nvar replaceVars = function(data, srcData) {\n if (!data || typeof data !== \"object\") return srcData;\n const vars = Object.keys(data);\n const ops = { vars, data };\n if (typeof srcData === \"object\") {\n traversalObject(ops, srcData, [srcData]);\n return srcData;\n } else if (typeof srcData === \"string\") return replaceValue(ops, srcData);\n else return srcData;\n};\nfunction replaceValue(ops, value) {\n try {\n if (!VerRegx.test(value)) return value;\n const { vars, data } = ops;\n let strArr = value.split(VerRegx);\n let jsx = false;\n if (strArr instanceof Array && strArr.length > 0) {\n for (let i = 0; i < strArr.length; i++) {\n const item = strArr[i];\n if (!item || typeof item !== \"string\") continue;\n const matched = item.match(/\\{\\{\\s*(.*?)\\s*\\}\\}/);\n if (matched && matched[1]) {\n const nv = evalFunc(\n vars,\n `try {return ${matched[1]}} catch (err) { console.error('SnackCore replace vars error: ', \"${matched[0]}\", err); return }`\n )(data);\n if (nv !== void 0) {\n if (nv && nv.$$typeof) jsx = true;\n strArr[i] = nv;\n } else {\n console.error(`SnackCore replace vars \"${value}\" is undefined`);\n }\n }\n }\n }\n if (jsx) {\n const children = strArr.map((item, index) => {\n if (typeof item === \"string\") return item;\n return import_react2.default.createElement(import_react2.default.Fragment, { key: index }, item);\n });\n return import_react2.default.createElement(import_react2.default.Fragment, null, children);\n } else return strArr.join(\"\");\n } catch (err) {\n console.error(`SnackCore replace vars(\"${value}\") error:`, err);\n return value;\n }\n}\nfunction traversalObject(ops, obj = null, traversaled = []) {\n try {\n if (!obj || obj.$$typeof) return;\n for (var key in obj) {\n const value = obj[key];\n if (typeof value == \"object\") {\n if (traversaled.indexOf(value) !== -1)\n continue;\n traversaled.push(value);\n traversalObject(ops, value, traversaled);\n } else if (typeof value === \"string\") {\n obj[key] = replaceValue(ops, value);\n }\n }\n } catch (err) {\n console.error(`SnackCore replace vars traversal error:`, err);\n }\n}\n\n// src/class/snack.tsx\nvar Snack = class {\n /**\n *\n * @param data 统一数据管理对象\n * @param defData data默认值\n */\n constructor(data, defData) {\n this.data = data;\n /**\n * 当前模块名称\n */\n this.$name = \"\";\n // 页面事件对象\n /**\n * 当前模块唯一id,每次实例化随机生成\n */\n this.$id = \"snack_\" + String(Math.random() * 1e7 | 0);\n // 模块实例唯一id 每次new都随机生成\n /**\n * 国际化语言map集合\n */\n this.$i18nMap = {};\n /**\n * 重绘id\n */\n this.$forceUpdateId = Math.random();\n /**\n * 是否基础模块\n */\n this.isBasic = false;\n /**\n * 是否容器\n */\n this.isContainer = false;\n /**\n * 是否放置容器\n */\n this.isDrop = false;\n /**\n * 是否拖拽容器\n */\n this.isDrag = false;\n /**\n * 是否页面模版容器\n */\n this.isTemplate = false;\n /**\n * 是否form组件\n */\n this.isForm = false;\n /**\n * 设置模式\n */\n this.settingMode = false;\n /**\n * React组件方法\n * @param data 统一数据管理对象(解构覆盖构造函数data参数)\n * @return FunctionComponent\n */\n this.$lastUpdateId = 0;\n if (data) {\n if (data[\"$snackSDK\"]) {\n this.sdk = data[\"$snackSDK\"];\n delete data[\"$snackSDK\"];\n } else\n this.sdk = data.parent && data.parent.sdk ? data.parent.sdk : window.SnackSDK;\n if (this.sdk) {\n this.sdk.moduleMaps[this.$id] = this;\n }\n if (typeof data[\"$i18n\"] === \"object\") {\n this.$i18nMapExternal = data[\"$i18n\"];\n delete data[\"$i18n\"];\n }\n if (defData && typeof defData[\"$i18n\"] === \"object\") {\n this.$i18n = defData[\"$i18n\"];\n delete defData[\"$i18n\"];\n }\n if (typeof defData === \"object\")\n this.data = { ...defData, ...this.data };\n } else if (typeof defData === \"object\")\n this.data = (0, import_lib2.DeepClone)(defData);\n else\n this.data = {};\n if (this.sdk?.runtime === false) {\n this.props = this.cloneData(this.data);\n this.sdk?.recursiveParseJson(this.props, this.sdk?.getExprArgv({}), true);\n }\n }\n cloneData(obj) {\n if (Array.isArray(obj)) {\n try {\n const s2 = JSON.stringify(obj);\n return JSON.parse(s2);\n } catch {\n return obj;\n }\n }\n let clone = {};\n let prototype = {};\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n try {\n const s2 = JSON.stringify(obj[key]);\n clone[key] = JSON.parse(s2);\n } catch {\n prototype[key] = obj[key];\n }\n }\n return { ...clone, ...prototype };\n }\n // 上次更新id\n FC(data) {\n const [update, setUpdate] = (0, import_react3.useState)(0);\n this.$forceUpdateHook = setUpdate;\n if (this.$lastUpdateId !== update) {\n if (typeof data === \"object\") {\n this.data = { ...data, ...this.data };\n if (this.sdk?.runtime === false)\n this.props = { ...data, ...this.props };\n }\n this.$lastUpdateId = update;\n } else if (typeof data === \"object\") {\n this.data = { ...this.data, ...data };\n if (this.sdk?.runtime === false)\n this.props = { ...this.props, ...data };\n }\n let props;\n if (this.sdk?.runtime === false) {\n if (this.props && this.data && (this.isDrop || this.isDrag)) {\n if (this.data.parent)\n this.props.parent = this.data.parent;\n if (this.data.children)\n this.props.children = this.data.children;\n if (this.isDrag && this.data.content)\n this.props.content = this.data.content;\n }\n props = this.props;\n } else {\n props = this.data;\n }\n return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, { key: this.$forceUpdateId }, this.$component.call(this, props));\n }\n $component(data) {\n if (typeof this.JSX === \"function\") return /* @__PURE__ */ import_react3.default.createElement(\"h2\", null, \" JSX \\u65B9\\u6CD5\\u5DF2\\u7ECF\\u5E9F\\u5F03\\uFF0C\\u8BF7\\u4F7F\\u7528\\u65B0\\u65B9\\u6CD5 $component \\u4EE3\\u66FFJSX\");\n return this.data?.jsx || /* @__PURE__ */ import_react3.default.createElement(\"div\", null, \"no data\");\n }\n /**\n * 强制渲染JSX内容\n * @param reload 是否强制重绘\n */\n $forceUpdate(reload = false) {\n try {\n if (typeof this.$forceUpdateHook !== \"function\") return;\n if (reload) this.$forceUpdateId = Math.random();\n this.$forceUpdateHook(Math.random());\n } catch (e) {\n console.warn(\"Snack forceUpdate Error\", e);\n }\n }\n /**\n * this.style 样式赋值方法,同时渲染页面\n * @param key\n * @param value\n */\n $style(key, value) {\n if (!this.data) return {};\n let style = this.data.style || {};\n if (key) {\n if (typeof key === \"object\") {\n Object.keys(key).forEach((css) => {\n style[css] = key[css];\n });\n this.$forceUpdate();\n } else if (typeof key === \"string\" && value) {\n style[key] = value;\n this.$forceUpdate();\n } else\n return style[key];\n }\n return style;\n }\n /**\n * 外部复写,统一销毁方法\n */\n $destroy() {\n if (!this.sdk) return;\n delete this.sdk.moduleMaps[this.$id];\n }\n /**\n * 国际化切换方法\n * @param lang 语言\n */\n $language(lang) {\n this.$lang = lang;\n if (this.isDrop || this.isDrag || this.isTemplate) return;\n this.$forceUpdate(true);\n }\n get $lang() {\n if (!this.sdk) return window.localStorage.getItem(\"language\") || \"zh\";\n return getLocale(this.sdk);\n }\n set $lang(lang) {\n window.localStorage.setItem(\"language\", lang);\n }\n /**\n * 国际化语言包返回\n */\n get $i18n() {\n return this.$i18nMap;\n }\n /**\n * 国际化语言包设置\n * @param map 语言包对象\n */\n set $i18n(map) {\n if (!map) return;\n this.$i18nMap = map;\n }\n /**\n * 返回外部导入与默认国际化数据\n */\n $getI18n() {\n return {\n external: this.$i18nMapExternal || null,\n default: this.$i18nMap || null\n };\n }\n /**\n * 国际化语言获取\n * @param ops 语言变量\n */\n $intl(ops, params) {\n return i18nIntl(this.sdk, ops, this.$i18nMapExternal || this.$i18n, params, this.$lang, this.$i18n);\n }\n $display(b) {\n let _this = this.isDrag ? this : this.$parent;\n if (!_this || !_this.$page || !_this.data?.key) return;\n const child = _this.$page.childrenMaps[_this.data.key];\n if (!child) return;\n return DisplayModule(child, b);\n }\n cloneDeep(data, re) {\n if (!data) return re || null;\n try {\n return JSON.parse(JSON.stringify(data));\n } catch (e) {\n return data || re;\n }\n }\n};\nvar snack_default = Snack;\n\n// src/utils/pathAccess.ts\nfunction parsePath(path) {\n const tokens = [];\n const normalized = path.replace(/\\[/g, \".[\");\n const re = /([^.[\\]'\"]+)|['\"]([^'\"]*)['\"]/g;\n let m;\n while ((m = re.exec(normalized)) !== null) {\n const token = m[1] ?? m[2];\n if (token !== void 0 && token !== \"\") tokens.push(token);\n }\n return tokens;\n}\nfunction safeGet(obj, path) {\n return parsePath(path).reduce((acc, key) => acc?.[key], obj);\n}\nfunction safeSet(obj, path, value) {\n const keys = parsePath(path);\n if (!keys.length) return false;\n const lastKey = keys.pop();\n const target = keys.reduce((acc, key) => acc?.[key], obj);\n if (target == null || typeof target !== \"object\") return false;\n target[lastKey] = value;\n return true;\n}\n\n// src/class/snackSetting.tsx\nvar SnackSetting = class extends snack_default {\n constructor() {\n super(...arguments);\n // 继承类实体\n /**\n * 设置模块用,快速配置页面生成模块\n */\n this.model = {};\n // 属性模型\n /**\n * 是否将当前设置按照普通模式渲染,为true则不以弹窗模式渲染\n */\n this.$normal = false;\n }\n $model() {\n const data = this.main.data;\n if (!this.main || !data) return null;\n Object.keys(this.model).forEach((key) => {\n if (data[key] !== void 0)\n this.model[key].value = data[key];\n });\n return this.cloneDeep(this.model, {});\n }\n /**\n * this.data 数据赋值,同时渲染页面\n * @param field 字段名字,支持 . 操作符\n * @param value\n * @param isRefresh\n */\n $setData(field, value, isRefresh = true) {\n if (!this.main || !this.main.data) return false;\n if (this.sdk && this.sdk.runtime) {\n this.sdk.runtime = false;\n this.main.props = this.cloneData(this.main.data);\n }\n if (value === void 0) {\n const data = this.cloneDeep(this.main.data, {});\n return data[field];\n } else {\n const ok1 = this.setFieldValue(this.main.data, field, value);\n if (this.main.props)\n this.setFieldValue(this.main.props, field, value, true);\n if (!ok1) return false;\n if (isRefresh) {\n this.main.$forceUpdate();\n }\n this.$forceUpdate();\n }\n return true;\n }\n /**\n * 支持 . 操作符设置对象数据\n * @param data\n * @param field\n * @param value\n * @param parseExpr\t是否解析表达式\n * @private\n */\n setFieldValue(data, field, value, parseExpr = false) {\n if (field.indexOf(\";\") !== -1) {\n console.warn(`SnackCore: \"${field}\"\\u5B57\\u6BB5\\u5B58\\u5728\\u975E\\u6CD5\\u5B57\\u7B26\";\",\\u65E0\\u6CD5\\u6B63\\u5E38\\u901A\\u8FC7\\u89E3\\u6790\\u3002`);\n return false;\n }\n let change;\n if (parseExpr) {\n if (typeof value === \"object\")\n change = this.sdk?.recursiveParseJson(this.cloneData(value), this.sdk?.getExprArgv({}));\n else if (typeof value === \"string\")\n change = this.sdk?.processTemplateString(value, this.sdk?.getExprArgv({}));\n }\n if (field.indexOf(\".\") === -1 || data[field] !== void 0) {\n data[field] = change || value;\n return true;\n }\n return safeSet(data, field, change || value);\n }\n};\n\n// src/lib/require.js\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction _default(global, importMaps) {\n function _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n }\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof2(obj2) {\n return typeof obj2;\n };\n } else {\n _typeof = function _typeof2(obj2) {\n return obj2 && typeof Symbol === \"function\" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? \"symbol\" : typeof obj2;\n };\n }\n return _typeof(obj);\n }\n var requirejs, require, define;\n var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, version = \"2.3.6\", commentRegExp = /\\/\\*[\\s\\S]*?\\*\\/|([^:\"'=]|^)\\/\\/.*$/mg, cjsRequireRegExp = /[^.]\\s*require\\s*\\(\\s*[\"']([^'\"\\s]+)[\"']\\s*\\)/g, jsSuffixRegExp = /\\.js$/, currDirRegExp = /^\\.\\//, op = Object.prototype, ostring = op.toString, hasOwn = op.hasOwnProperty, isBrowser = !!(typeof window !== \"undefined\" && typeof navigator !== \"undefined\" && window.document), isWebWorker = !isBrowser && typeof importScripts !== \"undefined\", readyRegExp = isBrowser && navigator.platform === \"PLAYSTATION 3\" ? /^complete$/ : /^(complete|loaded)$/, defContextName = \"_\", isOpera = typeof opera !== \"undefined\" && opera.toString() === \"[object Opera]\", contexts = {}, cfg = {}, globalDefQueue = [], useInteractive = false;\n function commentReplace(match, singlePrefix) {\n return singlePrefix || \"\";\n }\n function isFunction(it) {\n return ostring.call(it) === \"[object Function]\";\n }\n function isArray(it) {\n return ostring.call(it) === \"[object Array]\";\n }\n function each(ary, func) {\n if (ary) {\n var i;\n for (i = 0; i < ary.length; i += 1) {\n if (ary[i] && func(ary[i], i, ary)) {\n break;\n }\n }\n }\n }\n function eachReverse(ary, func) {\n if (ary) {\n var i;\n for (i = ary.length - 1; i > -1; i -= 1) {\n if (ary[i] && func(ary[i], i, ary)) {\n break;\n }\n }\n }\n }\n function hasProp(obj, prop) {\n return hasOwn.call(obj, prop);\n }\n function getOwn(obj, prop) {\n return hasProp(obj, prop) && obj[prop];\n }\n function eachProp(obj, func) {\n var prop;\n for (prop in obj) {\n if (hasProp(obj, prop)) {\n if (func(obj[prop], prop)) {\n break;\n }\n }\n }\n }\n function mixin(target, source, force, deepStringMixin) {\n if (source) {\n eachProp(source, function(value, prop) {\n if (force || !hasProp(target, prop)) {\n if (deepStringMixin && _typeof(value) === \"object\" && value && !isArray(value) && !isFunction(value) && !_instanceof(value, RegExp)) {\n if (!target[prop]) {\n target[prop] = {};\n }\n mixin(target[prop], value, force, deepStringMixin);\n } else {\n target[prop] = value;\n }\n }\n });\n }\n return target;\n }\n function bind(obj, fn) {\n return function() {\n return fn.apply(obj, arguments);\n };\n }\n function scripts() {\n return document.getElementsByTagName(\"script\");\n }\n function defaultOnError(err) {\n throw err;\n }\n function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split(\".\"), function(part) {\n g = g[part];\n });\n return g;\n }\n function makeError(id, msg, err, requireModules) {\n var e = new Error(msg + id);\n e.requireType = id;\n e.requireModules = requireModules;\n if (err) {\n e.originalError = err;\n }\n return e;\n }\n if (typeof define !== \"undefined\") {\n return;\n }\n if (typeof requirejs !== \"undefined\") {\n if (isFunction(requirejs)) {\n return;\n }\n cfg = requirejs;\n requirejs = void 0;\n }\n if (typeof require !== \"undefined\" && !isFunction(require)) {\n cfg = require;\n require = void 0;\n }\n function newContext(contextName) {\n var inCheckLoaded, Module, context, handlers, checkLoadedTimeoutId, _config = {\n //Defaults. Do not set a default for map\n //config to speed up normalize(), which\n //will run faster if there is no default.\n waitSeconds: 50,\n baseUrl: \"./\",\n paths: {},\n bundles: {},\n pkgs: {},\n shim: {},\n config: {}\n }, registry = {}, enabledRegistry = {}, undefEvents = {}, defQueue = [], _defined = {}, urlFetched = {}, bundlesMap = {}, requireCounter = 1, unnormalizedCounter = 1;\n function trimDots(ary) {\n var i, part;\n for (i = 0; i < ary.length; i++) {\n part = ary[i];\n if (part === \".\") {\n ary.splice(i, 1);\n i -= 1;\n } else if (part === \"..\") {\n if (i === 0 || i === 1 && ary[2] === \"..\" || ary[i - 1] === \"..\") {\n continue;\n } else if (i > 0) {\n ary.splice(i - 1, 2);\n i -= 2;\n }\n }\n }\n }\n function normalize(name, baseName, applyMap) {\n var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex, foundMap, foundI, foundStarMap, starI, normalizedBaseParts, baseParts = baseName && baseName.split(\"/\"), map = _config.map, starMap = map && map[\"*\"];\n if (name) {\n name = name.split(\"/\");\n lastIndex = name.length - 1;\n if (_config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {\n name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, \"\");\n }\n if (name[0].charAt(0) === \".\" && baseParts) {\n normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);\n name = normalizedBaseParts.concat(name);\n }\n trimDots(name);\n name = name.join(\"/\");\n }\n if (applyMap && map && (baseParts || starMap)) {\n nameParts = name.split(\"/\");\n outerLoop: for (i = nameParts.length; i > 0; i -= 1) {\n nameSegment = nameParts.slice(0, i).join(\"/\");\n if (baseParts) {\n for (j = baseParts.length; j > 0; j -= 1) {\n mapValue = getOwn(map, baseParts.slice(0, j).join(\"/\"));\n if (mapValue) {\n mapValue = getOwn(mapValue, nameSegment);\n if (mapValue) {\n foundMap = mapValue;\n foundI = i;\n break outerLoop;\n }\n }\n }\n }\n if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {\n foundStarMap = getOwn(starMap, nameSegment);\n starI = i;\n }\n }\n if (!foundMap && foundStarMap) {\n foundMap = foundStarMap;\n foundI = starI;\n }\n if (foundMap) {\n nameParts.splice(0, foundI, foundMap);\n name = nameParts.join(\"/\");\n }\n }\n pkgMain = getOwn(_config.pkgs, name);\n return pkgMain ? pkgMain : name;\n }\n function removeScript(name) {\n if (isBrowser) {\n each(scripts(), function(scriptNode) {\n if (scriptNode.getAttribute(\"data-requiremodule\") === name && scriptNode.getAttribute(\"data-requirecontext\") === context.contextName) {\n scriptNode.parentNode.removeChild(scriptNode);\n return true;\n }\n });\n }\n }\n function hasPathFallback(id) {\n var pathConfig = getOwn(_config.paths, id);\n if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {\n pathConfig.shift();\n context.require.undef(id);\n context.makeRequire(null, {\n skipMap: true\n })([id]);\n return true;\n }\n }\n function splitPrefix(name) {\n var prefix, index = name ? name.indexOf(\"!\") : -1;\n if (index > -1) {\n prefix = name.substring(0, index);\n name = name.substring(index + 1, name.length);\n }\n return [prefix, name];\n }\n function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {\n var url, pluginModule, suffix, nameParts, prefix = null, parentName = parentModuleMap ? parentModuleMap.name : null, originalName = name, isDefine = true, normalizedName = \"\";\n if (!name) {\n isDefine = false;\n name = \"_@r\" + (requireCounter += 1);\n }\n nameParts = splitPrefix(name);\n prefix = nameParts[0];\n name = nameParts[1];\n if (prefix) {\n prefix = normalize(prefix, parentName, applyMap);\n pluginModule = getOwn(_defined, prefix);\n }\n if (name) {\n if (prefix) {\n if (isNormalized) {\n normalizedName = name;\n } else if (pluginModule && pluginModule.normalize) {\n normalizedName = pluginModule.normalize(name, function(name2) {\n return normalize(name2, parentName, applyMap);\n });\n } else {\n normalizedName = name.indexOf(\"!\") === -1 ? normalize(name, parentName, applyMap) : name;\n }\n } else {\n normalizedName = normalize(name, parentName, applyMap);\n nameParts = splitPrefix(normalizedName);\n prefix = nameParts[0];\n normalizedName = nameParts[1];\n isNormalized = true;\n url = context.nameToUrl(normalizedName);\n }\n }\n suffix = prefix && !pluginModule && !isNormalized ? \"_unnormalized\" + (unnormalizedCounter += 1) : \"\";\n return {\n prefix,\n name: normalizedName,\n parentMap: parentModuleMap,\n unnormalized: !!suffix,\n url,\n originalName,\n isDefine,\n id: (prefix ? prefix + \"!\" + normalizedName : normalizedName) + suffix\n };\n }\n function getModule(depMap) {\n var id = depMap.id, mod = getOwn(registry, id);\n if (!mod) {\n mod = registry[id] = new context.Module(depMap);\n }\n return mod;\n }\n function on(depMap, name, fn) {\n var id = depMap.id, mod = getOwn(registry, id);\n if (hasProp(_defined, id) && (!mod || mod.defineEmitComplete)) {\n if (name === \"defined\") {\n fn(_defined[id]);\n }\n } else {\n mod = getModule(depMap);\n if (mod.error && name === \"error\") {\n fn(mod.error);\n } else {\n mod.on(name, fn);\n }\n }\n }\n function onError(err, errback) {\n var ids = err.requireModules, notified = false;\n if (errback) {\n errback(err);\n } else {\n each(ids, function(id) {\n var mod = getOwn(registry, id);\n if (mod) {\n mod.error = err;\n if (mod.events.error) {\n notified = true;\n mod.emit(\"error\", err);\n }\n }\n });\n if (!notified) {\n req.onError(err);\n }\n }\n }\n function takeGlobalQueue() {\n if (globalDefQueue.length) {\n each(globalDefQueue, function(queueItem) {\n var id = queueItem[0];\n if (typeof id === \"string\") {\n context.defQueueMap[id] = true;\n }\n defQueue.push(queueItem);\n });\n globalDefQueue = [];\n }\n }\n handlers = {\n \"require\": function require2(mod) {\n if (mod.require) {\n return mod.require;\n } else {\n return mod.require = context.makeRequire(mod.map);\n }\n },\n \"exports\": function exports2(mod) {\n mod.usingExports = true;\n if (mod.map.isDefine) {\n if (mod.exports) {\n return _defined[mod.map.id] = mod.exports;\n } else {\n return mod.exports = _defined[mod.map.id] = {};\n }\n }\n },\n \"module\": function module2(mod) {\n if (mod.module) {\n return mod.module;\n } else {\n return mod.module = {\n id: mod.map.id,\n uri: mod.map.url,\n config: function config() {\n return getOwn(_config.config, mod.map.id) || {};\n },\n exports: mod.exports || (mod.exports = {})\n };\n }\n }\n };\n function cleanRegistry(id) {\n delete registry[id];\n delete enabledRegistry[id];\n }\n function breakCycle(mod, traced, processed) {\n var id = mod.map.id;\n if (mod.error) {\n mod.emit(\"error\", mod.error);\n } else {\n traced[id] = true;\n each(mod.depMaps, function(depMap, i) {\n var depId = depMap.id, dep = getOwn(registry, depId);\n if (dep && !mod.depMatched[i] && !processed[depId]) {\n if (getOwn(traced, depId)) {\n mod.defineDep(i, _defined[depId]);\n mod.check();\n } else {\n breakCycle(dep, traced, processed);\n }\n }\n });\n processed[id] = true;\n }\n }\n function checkLoaded(moduleName) {\n var err, usingPathFallback, waitInterval = _config.waitSeconds * 1e3, expired = waitInterval && context.startTime + waitInterval < (/* @__PURE__ */ new Date()).getTime(), noLoads = [], reqCalls = [], stillLoading = false, needCycleCheck = true;\n if (inCheckLoaded) {\n return;\n }\n inCheckLoaded = true;\n eachProp(enabledRegistry, function(mod) {\n var map = mod.map, modId = map.id;\n if (!mod.enabled) {\n return;\n }\n if (!map.isDefine) {\n reqCalls.push(mod);\n }\n if (!mod.error) {\n if (!mod.inited && expired) {\n if (hasPathFallback(modId)) {\n usingPathFallback = true;\n stillLoading = true;\n } else {\n noLoads.push(modId);\n removeScript(modId);\n }\n } else if (!mod.inited && mod.fetched && map.isDefine) {\n stillLoading = true;\n if (!map.prefix) {\n return needCycleCheck = false;\n }\n }\n }\n });\n if (expired && noLoads.length) {\n err = makeError(\"timeout\", \"Load timeout for modules: \" + noLoads, null, noLoads);\n err.contextName = context.contextName;\n return onError(err);\n }\n if (needCycleCheck) {\n each(reqCalls, function(mod) {\n breakCycle(mod, {}, {});\n });\n }\n if ((!expired || usingPathFallback) && stillLoading) {\n if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {\n checkLoadedTimeoutId = setTimeout(function() {\n checkLoadedTimeoutId = 0;\n checkLoaded();\n }, 50);\n }\n }\n inCheckLoaded = false;\n }\n Module = function Module2(map) {\n this.events = getOwn(undefEvents, map.id) || {};\n this.map = map;\n this.shim = getOwn(_config.shim, map.id);\n this.depExports = [];\n this.depMaps = [];\n this.depMatched = [];\n this.pluginMaps = {};\n this.depCount = 0;\n };\n Module.prototype = {\n init: function init(depMaps, factory, errback, options) {\n options = options || {};\n if (this.inited) {\n return;\n }\n this.factory = factory;\n if (errback) {\n this.on(\"error\", errback);\n } else if (this.events.error) {\n errback = bind(this, function(err) {\n this.emit(\"error\", err);\n });\n }\n this.depMaps = depMaps && depMaps.slice(0);\n this.errback = errback;\n this.inited = true;\n this.ignore = options.ignore;\n if (options.enabled || this.enabled) {\n this.enable();\n } else {\n this.check();\n }\n },\n defineDep: function defineDep(i, depExports) {\n if (!this.depMatched[i]) {\n this.depMatched[i] = true;\n this.depCount -= 1;\n this.depExports[i] = depExports;\n }\n },\n fetch: function fetch() {\n if (this.fetched) {\n return;\n }\n this.fetched = true;\n context.startTime = (/* @__PURE__ */ new Date()).getTime();\n var map = this.map;\n if (this.shim) {\n context.makeRequire(this.map, {\n enableBuildCallback: true\n })(this.shim.deps || [], bind(this, function() {\n return map.prefix ? this.callPlugin() : this.load();\n }));\n } else {\n return map.prefix ? this.callPlugin() : this.load();\n }\n },\n load: function load() {\n var url = this.map.url;\n if (!urlFetched[url]) {\n urlFetched[url] = true;\n context.load(this.map.id, url);\n }\n },\n /**\n * Checks if the module is ready to define itself, and if so,\n * define it.\n */\n check: function check() {\n if (!this.enabled || this.enabling) {\n return;\n }\n var err, cjsModule, id = this.map.id, depExports = this.depExports, exports2 = this.exports, factory = this.factory;\n if (!this.inited) {\n if (!hasProp(context.defQueueMap, id)) {\n this.fetch();\n }\n } else if (this.error) {\n this.emit(\"error\", this.error);\n } else if (!this.defining) {\n this.defining = true;\n if (this.depCount < 1 && !this.defined) {\n if (isFunction(factory)) {\n if (this.events.error && this.map.isDefine || req.onError !== defaultOnError) {\n try {\n exports2 = context.execCb(id, factory, depExports, exports2);\n } catch (e) {\n err = e;\n }\n } else {\n exports2 = context.execCb(id, factory, depExports, exports2);\n }\n if (this.map.isDefine && exports2 === void 0) {\n cjsModule = this.module;\n if (cjsModule) {\n exports2 = cjsModule.exports;\n } else if (this.usingExports) {\n exports2 = this.exports;\n }\n }\n if (err) {\n err.requireMap = this.map;\n err.requireModules = this.map.isDefine ? [this.map.id] : null;\n err.requireType = this.map.isDefine ? \"define\" : \"require\";\n return onError(this.error = err);\n }\n } else {\n exports2 = factory;\n }\n this.exports = exports2;\n if (this.map.isDefine && !this.ignore) {\n _defined[id] = exports2;\n if (req.onResourceLoad) {\n var resLoadMaps = [];\n each(this.depMaps, function(depMap) {\n resLoadMaps.push(depMap.normalizedMap || depMap);\n });\n req.onResourceLoad(context, this.map, resLoadMaps);\n }\n }\n cleanRegistry(id);\n this.defined = true;\n }\n this.defining = false;\n if (this.defined && !this.defineEmitted) {\n this.defineEmitted = true;\n this.emit(\"defined\", this.exports);\n this.defineEmitComplete = true;\n }\n }\n },\n callPlugin: function callPlugin() {\n var map = this.map, id = map.id, pluginMap = makeModuleMap(map.prefix);\n this.depMaps.push(pluginMap);\n on(pluginMap, \"defined\", bind(this, function(plugin) {\n var load, normalizedMap, normalizedMod, bundleId = getOwn(bundlesMap, this.map.id), name = this.map.name, parentName = this.map.parentMap ? this.map.parentMap.name : null, localRequire = context.makeRequire(map.parentMap, {\n enableBuildCallback: true\n });\n if (this.map.unnormalized) {\n if (plugin.normalize) {\n name = plugin.normalize(name, function(name2) {\n return normalize(name2, parentName, true);\n }) || \"\";\n }\n normalizedMap = makeModuleMap(map.prefix + \"!\" + name, this.map.parentMap, true);\n on(normalizedMap, \"defined\", bind(this, function(value) {\n this.map.normalizedMap = normalizedMap;\n this.init([], function() {\n return value;\n }, null, {\n enabled: true,\n ignore: true\n });\n }));\n normalizedMod = getOwn(registry, normalizedMap.id);\n if (normalizedMod) {\n this.depMaps.push(normalizedMap);\n if (this.events.error) {\n normalizedMod.on(\"error\", bind(this, function(err) {\n this.emit(\"error\", err);\n }));\n }\n normalizedMod.enable();\n }\n return;\n }\n if (bundleId) {\n this.map.url = context.nameToUrl(bundleId);\n this.load();\n return;\n }\n load = bind(this, function(value) {\n this.init([], function() {\n return value;\n }, null, {\n enabled: true\n });\n });\n load.error = bind(this, function(err) {\n this.inited = true;\n this.error = err;\n err.requireModules = [id];\n eachProp(registry, function(mod) {\n if (mod.map.id.indexOf(id + \"_unnormalized\") === 0) {\n cleanRegistry(mod.map.id);\n }\n });\n onError(err);\n });\n load.fromText = bind(this, function(text2, textAlt) {\n var moduleName = map.name, moduleMap = makeModuleMap(moduleName), hasInteractive = useInteractive;\n if (textAlt) {\n text2 = textAlt;\n }\n if (hasInteractive) {\n useInteractive = false;\n }\n getModule(moduleMap);\n if (hasProp(_config.config, id)) {\n _config.config[moduleName] = _config.config[id];\n }\n try {\n req.exec(text2);\n } catch (e) {\n return onError(makeError(\"fromtexteval\", \"fromText eval for \" + id + \" failed: \" + e, e, [id]));\n }\n if (hasInteractive) {\n useInteractive = true;\n }\n this.depMaps.push(moduleMap);\n context.completeLoad(moduleName);\n localRequire([moduleName], load);\n });\n plugin.load(map.name, localRequire, load, _config);\n }));\n context.enable(pluginMap, this);\n this.pluginMaps[pluginMap.id] = pluginMap;\n },\n enable: function enable() {\n enabledRegistry[this.map.id] = this;\n this.enabled = true;\n this.enabling = true;\n each(this.depMaps, bind(this, function(depMap, i) {\n var id, mod, handler;\n if (typeof depMap === \"string\") {\n depMap = makeModuleMap(depMap, this.map.isDefine ? this.map : this.map.parentMap, false, !this.skipMap);\n this.depMaps[i] = depMap;\n handler = getOwn(handlers, depMap.id);\n if (handler) {\n this.depExports[i] = handler(this);\n return;\n }\n this.depCount += 1;\n on(depMap, \"defined\", bind(this, function(depExports) {\n if (this.undefed) {\n return;\n }\n this.defineDep(i, depExports);\n this.check();\n }));\n if (this.errback) {\n on(depMap, \"error\", bind(this, this.errback));\n } else if (this.events.error) {\n on(depMap, \"error\", bind(this, function(err) {\n this.emit(\"error\", err);\n }));\n }\n }\n id = depMap.id;\n mod = registry[id];\n if (!hasProp(handlers, id) && mod && !mod.enabled) {\n context.enable(depMap, this);\n }\n }));\n eachProp(this.pluginMaps, bind(this, function(pluginMap) {\n var mod = getOwn(registry, pluginMap.id);\n if (mod && !mod.enabled) {\n context.enable(pluginMap, this);\n }\n }));\n this.enabling = false;\n this.check();\n },\n on: function on2(name, cb) {\n var cbs = this.events[name];\n if (!cbs) {\n cbs = this.events[name] = [];\n }\n cbs.push(cb);\n },\n emit: function emit(name, evt) {\n each(this.events[name], function(cb) {\n cb(evt);\n });\n if (name === \"error\") {\n delete this.events[name];\n }\n }\n };\n function callGetModule(args) {\n if (!hasProp(_defined, args[0])) {\n getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);\n }\n }\n function removeListener(node, func, name, ieName) {\n if (node.detachEvent && !isOpera) {\n if (ieName) {\n node.detachEvent(ieName, func);\n }\n } else {\n node.removeEventListener(name, func, false);\n }\n }\n function getScriptData(evt) {\n var node = evt.currentTarget || evt.srcElement;\n removeListener(node, context.onScriptLoad, \"load\", \"onreadystatechange\");\n removeListener(node, context.onScriptError, \"error\");\n return {\n node,\n id: node && node.getAttribute(\"data-requiremodule\")\n };\n }\n function intakeDefines() {\n var args;\n takeGlobalQueue();\n while (defQueue.length) {\n args = defQueue.shift();\n if (args[0] === null) {\n return onError(makeError(\"mismatch\", \"Mismatched anonymous define() module: \" + args[args.length - 1]));\n } else {\n callGetModule(args);\n }\n }\n context.defQueueMap = {};\n }\n context = {\n config: _config,\n contextName,\n registry,\n defined: _defined,\n urlFetched,\n defQueue,\n defQueueMap: {},\n Module,\n makeModuleMap,\n nextTick: req.nextTick,\n onError,\n /**\n * Set a configuration for the context.\n * @param {Object} cfg config object to integrate.\n */\n configure: function configure(cfg2) {\n if (cfg2.baseUrl) {\n if (cfg2.baseUrl.charAt(cfg2.baseUrl.length - 1) !== \"/\") {\n cfg2.baseUrl += \"/\";\n }\n }\n if (typeof cfg2.urlArgs === \"string\") {\n var urlArgs = cfg2.urlArgs;\n cfg2.urlArgs = function(id, url) {\n return (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + urlArgs;\n };\n }\n var shim = _config.shim, objs = {\n paths: true,\n bundles: true,\n config: true,\n map: true\n };\n eachProp(cfg2, function(value, prop) {\n if (objs[prop]) {\n if (!_config[prop]) {\n _config[prop] = {};\n }\n mixin(_config[prop], value, true, true);\n } else {\n _config[prop] = value;\n }\n });\n if (cfg2.bundles) {\n eachProp(cfg2.bundles, function(value, prop) {\n each(value, function(v) {\n if (v !== prop) {\n bundlesMap[v] = prop;\n }\n });\n });\n }\n if (cfg2.shim) {\n eachProp(cfg2.shim, function(value, id) {\n if (isArray(value)) {\n value = {\n deps: value\n };\n }\n if ((value.exports || value.init) && !value.exportsFn) {\n value.exportsFn = context.makeShimExports(value);\n }\n shim[id] = value;\n });\n _config.shim = shim;\n }\n if (cfg2.packages) {\n each(cfg2.packages, function(pkgObj) {\n var location, name;\n pkgObj = typeof pkgObj === \"string\" ? {\n name: pkgObj\n } : pkgObj;\n name = pkgObj.name;\n location = pkgObj.location;\n if (location) {\n _config.paths[name] = pkgObj.location;\n }\n _config.pkgs[name] = pkgObj.name + \"/\" + (pkgObj.main || \"main\").replace(currDirRegExp, \"\").replace(jsSuffixRegExp, \"\");\n });\n }\n eachProp(registry, function(mod, id) {\n if (!mod.inited && !mod.map.unnormalized) {\n mod.map = makeModuleMap(id, null, true);\n }\n });\n if (cfg2.deps || cfg2.callback) {\n context.require(cfg2.deps || [], cfg2.callback);\n }\n },\n makeShimExports: function makeShimExports(value) {\n function fn() {\n var ret;\n if (value.init) {\n ret = value.init.apply(global, arguments);\n }\n return ret || value.exports && getGlobal(value.exports);\n }\n return fn;\n },\n makeRequire: function makeRequire(relMap, options) {\n options = options || {};\n function localRequire(deps, callback, errback) {\n var id, map, requireMod;\n if (options.enableBuildCallback && callback && isFunction(callback)) {\n callback.__requireJsBuild = true;\n }\n if (typeof deps === \"string\") {\n if (isFunction(callback)) {\n return onError(makeError(\"requireargs\", \"Invalid require call\"), errback);\n }\n if (relMap && hasProp(handlers, deps)) {\n return handlers[deps](registry[relMap.id]);\n }\n if (req.get) {\n return req.get(context, deps, relMap, localRequire);\n }\n map = makeModuleMap(deps, relMap, false, true);\n id = map.id;\n if (!hasProp(_defined, id)) {\n return onError(makeError(\"notloaded\", 'Module name \"' + id + '\" has not been loaded yet for context: ' + contextName + (relMap ? \"\" : \". Use require([])\")));\n }\n return _defined[id];\n }\n intakeDefines();\n context.nextTick(function() {\n intakeDefines();\n requireMod = getModule(makeModuleMap(null, relMap));\n requireMod.skipMap = options.skipMap;\n requireMod.init(deps, callback, errback, {\n enabled: true\n });\n checkLoaded();\n });\n return localRequire;\n }\n mixin(localRequire, {\n isBrowser,\n /**\n * Converts a module name + .extension into an URL path.\n * *Requires* the use of a module name. It does not support using\n * plain URLs like nameToUrl.\n */\n toUrl: function toUrl(moduleNamePlusExt) {\n var ext, index = moduleNamePlusExt.lastIndexOf(\".\"), segment = moduleNamePlusExt.split(\"/\")[0], isRelative = segment === \".\" || segment === \"..\";\n if (index !== -1 && (!isRelative || index > 1)) {\n ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);\n moduleNamePlusExt = moduleNamePlusExt.substring(0, index);\n }\n return context.nameToUrl(normalize(moduleNamePlusExt, relMap && relMap.id, true), ext, true);\n },\n defined: function defined(id) {\n return hasProp(_defined, makeModuleMap(id, relMap, false, true).id);\n },\n specified: function specified(id) {\n id = makeModuleMap(id, relMap, false, true).id;\n return hasProp(_defined, id) || hasProp(registry, id);\n }\n });\n if (!relMap) {\n localRequire.undef = function(id) {\n takeGlobalQueue();\n var map = makeModuleMap(id, relMap, true), mod = getOwn(registry, id);\n mod.undefed = true;\n removeScript(id);\n delete _defined[id];\n delete urlFetched[map.url];\n delete undefEvents[id];\n eachReverse(defQueue, function(args, i) {\n if (args[0] === id) {\n defQueue.splice(i, 1);\n }\n });\n delete context.defQueueMap[id];\n if (mod) {\n if (mod.events.defined) {\n undefEvents[id] = mod.events;\n }\n cleanRegistry(id);\n }\n };\n }\n return localRequire;\n },\n /**\n * Called to enable a module if it is still in the registry\n * awaiting enablement. A second arg, parent, the parent module,\n * is passed in for context, when this method is overridden by\n * the optimizer. Not shown here to keep code compact.\n */\n enable: function enable(depMap) {\n var mod = getOwn(registry, depMap.id);\n if (mod) {\n getModule(depMap).enable();\n }\n },\n /**\n * Internal method used by environment adapters to complete a load event.\n * A load event could be a script load or just a load pass from a synchronous\n * load call.\n * @param {String} moduleName the name of the module to potentially complete.\n */\n completeLoad: function completeLoad(moduleName) {\n var found, args, mod, shim = getOwn(_config.shim, moduleName) || {}, shExports = shim.exports;\n takeGlobalQueue();\n while (defQueue.length) {\n args = defQueue.shift();\n if (args[0] === null) {\n args[0] = moduleName;\n if (found) {\n break;\n }\n found = true;\n } else if (args[0] === moduleName) {\n found = true;\n }\n callGetModule(args);\n }\n context.defQueueMap = {};\n mod = getOwn(registry, moduleName);\n if (!found && !hasProp(_defined, moduleName) && mod && !mod.inited) {\n if (_config.enforceDefine && (!shExports || !getGlobal(shExports))) {\n if (hasPathFallback(moduleName)) {\n return;\n } else {\n return onError(makeError(\"nodefine\", \"No define call for \" + moduleName, null, [moduleName]));\n }\n } else {\n callGetModule([moduleName, shim.deps || [], shim.exportsFn]);\n }\n }\n checkLoaded(moduleName);\n },\n /**\n * Converts a module name to a file path. Supports cases where\n * moduleName may actually be just an URL.\n * Note that it **does not** call normalize on the moduleName,\n * it is assumed to have already been normalized. This is an\n * internal API, not a public one. Use toUrl for the public API.\n */\n nameToUrl: function nameToUrl(moduleName, ext, skipExt) {\n var paths, syms, i, parentModule, url, parentPath, bundleId, pkgMain = getOwn(_config.pkgs, moduleName);\n if (pkgMain) {\n moduleName = pkgMain;\n }\n bundleId = getOwn(bundlesMap, moduleName);\n if (bundleId) {\n return context.nameToUrl(bundleId, ext, skipExt);\n }\n if (req.jsExtRegExp.test(moduleName)) {\n url = moduleName + (ext || \"\");\n } else {\n paths = _config.paths;\n syms = moduleName.split(\"/\");\n for (i = syms.length; i > 0; i -= 1) {\n parentModule = syms.slice(0, i).join(\"/\");\n parentPath = getOwn(paths, parentModule);\n if (parentPath) {\n if (isArray(parentPath)) {\n parentPath = parentPath[0];\n }\n syms.splice(0, i, parentPath);\n break;\n }\n }\n url = syms.join(\"/\");\n url += ext || (/^data\\:|^blob\\:|\\?/.test(url) || skipExt ? \"\" : \".js\");\n url = (url.charAt(0) === \"/\" || url.match(/^[\\w\\+\\.\\-]+:/) ? \"\" : _config.baseUrl) + url;\n }\n return _config.urlArgs && !/^blob\\:/.test(url) ? url + _config.urlArgs(moduleName, url) : url;\n },\n //Delegates to req.load. Broken out as a separate function to\n //allow overriding in the optimizer.\n load: function load(id, url) {\n req.load(context, id, url);\n },\n /**\n * Executes a module callback function. Broken out as a separate function\n * solely to allow the build system to sequence the files in the built\n * layer in the right sequence.\n *\n * @private\n */\n execCb: function execCb(name, callback, args, exports2, maps) {\n return callback.apply(exports2, args);\n },\n /**\n * callback for script loads, used to check status of loading.\n *\n * @param {Event} evt the event from the browser for the script\n * that was loaded.\n */\n onScriptLoad: function onScriptLoad(evt) {\n if (evt.type === \"noload\") {\n context.completeLoad(evt.id);\n return;\n }\n if (evt.type === \"load\" || readyRegExp.test((evt.currentTarget || evt.srcElement).readyState)) {\n interactiveScript = null;\n var data = getScriptData(evt);\n context.completeLoad(data.id);\n }\n },\n /**\n * Callback for script errors.\n */\n onScriptError: function onScriptError(evt) {\n var data = getScriptData(evt);\n if (!hasPathFallback(data.id)) {\n var parents = [];\n eachProp(registry, function(value, key) {\n if (key.indexOf(\"_@r\") !== 0) {\n each(value.depMaps, function(depMap) {\n if (depMap.id === data.id) {\n parents.push(key);\n return true;\n }\n });\n }\n });\n return onError(makeError(\"scripterror\", 'Script error for \"' + data.id + (parents.length ? '\", needed by: ' + parents.join(\", \") : '\"'), evt, [data.id]));\n }\n }\n };\n context.require = context.makeRequire();\n return context;\n }\n req = requirejs = function requirejs2(deps, callback, errback, optional) {\n var context, config, contextName = defContextName;\n if (!isArray(deps) && typeof deps !== \"string\") {\n config = deps;\n if (isArray(callback)) {\n deps = callback;\n callback = errback;\n errback = optional;\n } else {\n deps = [];\n }\n }\n if (config && config.context) {\n contextName = config.context;\n }\n context = getOwn(contexts, contextName);\n if (!context) {\n context = contexts[contextName] = req.s.newContext(contextName);\n }\n if (config) {\n context.configure(config);\n }\n return context.require(deps, callback, errback);\n };\n req.config = function(config) {\n return req(config);\n };\n req.nextTick = typeof setTimeout !== \"undefined\" ? function(fn) {\n setTimeout(fn, 4);\n } : function(fn) {\n fn();\n };\n if (!require) {\n require = req;\n }\n req.version = version;\n req.jsExtRegExp = /^\\/|:|\\?|\\.js$/;\n req.isBrowser = isBrowser;\n s = req.s = {\n contexts,\n newContext\n };\n req({});\n each([\"toUrl\", \"undef\", \"defined\", \"specified\"], function(prop) {\n req[prop] = function() {\n var ctx = contexts[defContextName];\n return ctx.require[prop].apply(ctx, arguments);\n };\n });\n if (isBrowser) {\n head = s.head = document.getElementsByTagName(\"head\")[0];\n baseElement = document.getElementsByTagName(\"base\")[0];\n if (baseElement) {\n head = s.head = baseElement.parentNode;\n }\n }\n req.onError = defaultOnError;\n req.createNode = function(config, moduleName, url) {\n var node = config.xhtml ? document.createElementNS(\"http://www.w3.org/1999/xhtml\", \"html:script\") : document.createElement(\"script\");\n node.type = config.scriptType || \"text/javascript\";\n node.charset = \"utf-8\";\n node.async = true;\n return node;\n };\n req.load = function(context, moduleName, url) {\n var config = context && context.config || {}, node;\n if (isBrowser) {\n node = req.createNode(config, moduleName, url);\n node.setAttribute(\"data-requirecontext\", context.contextName);\n node.setAttribute(\"data-requiremodule\", moduleName);\n if (node.attachEvent && //Check if node.attachEvent is artificially added by custom script or\n //natively supported by browser\n //read https://github.com/requirejs/requirejs/issues/187\n //if we can NOT find [native code] then it must NOT natively supported.\n //in IE8, node.attachEvent does not have toString()\n //Note the test for \"[native code\" with no closing brace, see:\n //https://github.com/requirejs/requirejs/issues/273\n !(node.attachEvent.toString && node.attachEvent.toString().indexOf(\"[native code\") < 0) && !isOpera) {\n useInteractive = true;\n node.attachEvent(\"onreadystatechange\", context.onScriptLoad);\n } else {\n node.addEventListener(\"load\", context.onScriptLoad, false);\n node.addEventListener(\"error\", context.onScriptError, false);\n }\n if (importMaps[moduleName]) {\n context.onScriptLoad({ id: moduleName, node: req.createNode(config, moduleName, url), type: \"noload\" });\n } else\n node.src = url;\n if (config.onNodeCreated) {\n config.onNodeCreated(node, config, moduleName, url);\n }\n currentlyAddingScript = node;\n if (baseElement) {\n head.insertBefore(node, baseElement);\n } else {\n head.appendChild(node);\n }\n currentlyAddingScript = null;\n return node;\n } else if (isWebWorker) {\n try {\n setTimeout(function() {\n }, 0);\n importScripts(url);\n context.completeLoad(moduleName);\n } catch (e) {\n context.onError(makeError(\"importscripts\", \"importScripts failed for \" + moduleName + \" at \" + url, e, [moduleName]));\n }\n }\n };\n function getInteractiveScript() {\n if (interactiveScript && interactiveScript.readyState === \"interactive\") {\n return interactiveScript;\n }\n eachReverse(scripts(), function(script) {\n if (script.readyState === \"interactive\") {\n return interactiveScript = script;\n }\n });\n return interactiveScript;\n }\n if (isBrowser && !cfg.skipDataMain) {\n eachReverse(scripts(), function(script) {\n if (!head) {\n head = script.parentNode;\n }\n dataMain = script.getAttribute(\"data-main\");\n if (dataMain) {\n mainScript = dataMain;\n if (!cfg.baseUrl && mainScript.indexOf(\"!\") === -1) {\n src = mainScript.split(\"/\");\n mainScript = src.pop();\n subPath = src.length ? src.join(\"/\") + \"/\" : \"./\";\n cfg.baseUrl = subPath;\n }\n mainScript = mainScript.replace(jsSuffixRegExp, \"\");\n if (req.jsExtRegExp.test(mainScript)) {\n mainScript = dataMain;\n }\n cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];\n return true;\n }\n });\n }\n define = function define2(name, re, callback) {\n var _deps = function deps() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _deps.forEach(function(k, i) {\n if (importMaps[k]) {\n var r = importMaps[k];\n args[i] = r;\n }\n });\n return re.apply(this, args);\n };\n var node, context;\n if (typeof name !== \"string\") {\n callback = _deps;\n _deps = name;\n name = null;\n }\n if (!isArray(_deps)) {\n callback = _deps;\n _deps = null;\n }\n if (!_deps && isFunction(callback)) {\n _deps = [];\n if (callback.length) {\n callback.toString().replace(commentRegExp, commentReplace).replace(cjsRequireRegExp, function(match, dep) {\n _deps.push(dep);\n });\n _deps = (callback.length === 1 ? [\"require\"] : [\"require\", \"exports\", \"module\"]).concat(_deps);\n }\n }\n if (useInteractive) {\n node = currentlyAddingScript || getInteractiveScript();\n if (node) {\n if (!name) {\n name = node.getAttribute(\"data-requiremodule\");\n }\n context = contexts[node.getAttribute(\"data-requirecontext\")];\n }\n }\n if (context) {\n context.defQueue.push([name, _deps, callback]);\n context.defQueueMap[name] = true;\n } else {\n globalDefQueue.push([name, _deps, callback]);\n }\n };\n define.amd = {\n jQuery: true\n };\n req.exec = function(text) {\n return eval(text);\n };\n req(cfg);\n return {\n requirejs,\n require,\n define\n };\n}\n\n// src/utils/i18n.ts\nvar locale = {\n zh: {\n require: \"{label}\\u4E0D\\u80FD\\u4E3A\\u7A7A\",\n noErrorMsg: \"\\u672A\\u8BBE\\u7F6E\\u9519\\u8BEF\\u63D0\\u793A\"\n },\n en: {\n require: \"{label} is required\",\n noErrorMsg: \"Error message not set\"\n }\n};\nlocale.zh_CN = locale.zh;\nlocale.en_US = locale.en;\nlocale[\"zh-CN\"] = locale.zh;\nlocale[\"en-US\"] = locale.en;\nvar i18n_default = locale;\n\n// src/core/index.ts\nvar Core = class {\n /**\n * Core初始化构造函数\n * @param {CoreConfig}\n * @param importMaps 依赖对象导入\n */\n constructor({\n runtime,\n runtimeMapping,\n service,\n cdnUrl,\n cdnPath,\n modUrl,\n modPath,\n pageUrl,\n pagePath,\n staticUrl,\n importMaps: importMaps2,\n basicsType,\n defaultFormAttr,\n importModules,\n i18n,\n localeMapping,\n localeDefault,\n message = {},\n argv\n }) {\n // 全局配置\n this.runtime = true;\n this.runtimeMapping = {\n drop: \"dropruntime\",\n drag: \"dragruntime\"\n };\n this.service = \"\";\n this.cdnPath = \"/lib\";\n this.modPath = \"/package\";\n this.pageUrl = \"\";\n this.pagePath = \"/page\";\n this.importMaps = {};\n // 基础模块分类名\n this.basicsType = \"basics\";\n // 全局组件map对象,同一个core实例加载的snack模块都将在此对象中\n this.moduleMaps = {};\n // 全局公共存储对象,不同组件内可共享数据\n this.global = {};\n this.message = {};\n // 国际化数据\n this.i18n = i18n_default;\n // 全局默认配置\n this.defaultFormAttr = {\n passwordFlag: true,\n hideNoSubmit: true,\n verifyOnEvents: [\"onChange\", \"onBlur\"],\n verifyASTime: 300\n };\n // 本地缓存snack模块class\n this.importModules = {};\n // 国际化转换关系\n this.localeMapping = {};\n this.localeDefault = \"zh\";\n this.argv = {};\n /**\n * 事件存储对象\n * @private\n */\n this.eventList = {};\n this.loadingPromises = /* @__PURE__ */ new Map();\n /**\n * 全局Snack模块语言切换方法\n * @param l 语言,默认 'zh'\n */\n this.language = (l = window.localStorage.getItem(\"language\") || \"zh\") => {\n Object.values(this.moduleMaps).forEach((item) => item?.$language(l));\n };\n this.exprRegx = /{{(.*?)}}/g;\n if (runtime !== void 0)\n this.runtime = runtime;\n if (runtimeMapping !== void 0)\n this.runtimeMapping = runtimeMapping;\n if (service !== void 0)\n this.service = service;\n if (cdnPath !== void 0)\n this.cdnPath = cdnPath;\n if (modPath !== void 0)\n this.modPath = modPath;\n if (pagePath !== void 0)\n this.pagePath = pagePath;\n if (defaultFormAttr !== void 0)\n this.defaultFormAttr = {\n ...this.defaultFormAttr,\n ...defaultFormAttr\n };\n this.pageUrl = pageUrl || this.service + this.pagePath;\n this.staticUrl = staticUrl;\n if (importMaps2)\n this.importMaps = importMaps2;\n if (basicsType !== void 0)\n this.basicsType = basicsType;\n if (typeof importModules === \"object\")\n this.importModules = importModules;\n if (typeof i18n === \"object\")\n this.setI18n(i18n);\n if (typeof localeMapping === \"object\")\n this.localeMapping = localeMapping;\n if (typeof localeDefault === \"string\")\n this.localeDefault = localeDefault;\n if (typeof localeMapping === \"object\")\n this.message = message;\n if (typeof argv === \"object\")\n this.argv = argv;\n const { require: require2, define: define2 } = _default(this, importMaps2);\n this.require = require2;\n this.define = define2;\n window.snackdefine = define2;\n }\n /**\n * 注册事件\n * @param eventName 事件名称\n * @param cb 事件回调函数\n */\n addEvent(eventName, cb) {\n if (!this.eventList[eventName]) this.eventList[eventName] = [];\n if (this.eventList[eventName].indexOf(cb) === -1) {\n this.eventList[eventName].push(cb);\n return true;\n }\n return false;\n }\n /**\n * 移除事件\n * @param eventName 事件名称\n * @param cb 解除绑定的事件回调\n */\n removeEvent(eventName, cb) {\n if (!this.eventList[eventName]) return false;\n if (!cb) delete this.eventList[eventName];\n const index = this.eventList[eventName].indexOf(cb);\n if (index === -1) return false;\n this.eventList[eventName].splice(index, 1);\n return true;\n }\n /**\n * 发送事件\n * @param eventName 事件名称\n * @param args 事件方法参数\n */\n sendEvent(eventName, args) {\n if (this.eventList[eventName] instanceof Array) {\n this.eventList[eventName].forEach((event) => {\n event.apply(this, args);\n return true;\n });\n }\n return false;\n }\n /**\n * 按模块名称加载模块\n * @param {LoadModuleConfig}\n * @param callback 回调方法,存在该参数则Promises失效\n * @return Snack 模块键值对 {snackName:snackClass}\n */\n async module({\n module: module2,\n service = this.service,\n cdnUrl,\n cdnPath = this.cdnPath,\n modUrl,\n modPath = this.modPath,\n staticUrl = this.staticUrl,\n importMaps: importMaps2,\n config = {}\n }, callback) {\n if (!(module2 instanceof Array) && typeof module2 === \"object\")\n module2 = [module2];\n if (cdnUrl === void 0)\n cdnUrl = this.cdnUrl ?? service + cdnPath;\n if (modUrl === void 0)\n modUrl = this.modUrl ?? service + modPath;\n if (modUrl === void 0) return console.error('SnackCore: param \"modUrl\" is missing');\n if (cdnUrl !== void 0)\n config.baseUrl = cdnUrl;\n if (staticUrl !== void 0)\n config.staticUrl = staticUrl;\n let snack = {};\n for (let i = 0, l = module2.length; i < l; i++) {\n let { type = \"\", name, setting, config: modConfig } = module2[i];\n name = name.toLowerCase();\n const cache = this.importModules[type]?.[name];\n if (cache) {\n snack[name] = cache;\n if (setting) {\n const cacheSetting = this.importModules[type]?.[name + \"setting\"];\n if (cacheSetting)\n snack[name + \"setting\"] = cacheSetting;\n }\n } else {\n if (type && typeof type === \"string\")\n type = `/${type}`;\n if (modConfig)\n modConfig = { ...config, ...modConfig };\n else\n modConfig = config;\n const mods = await this.load({\n url: `${modUrl}${type || \"\"}/${this.runtime ? this.runtimeMapping[name] || name : name}${setting ? \"/setting\" : \"\"}/index.js`,\n config: modConfig,\n importMaps: importMaps2\n });\n if (mods instanceof Error)\n continue;\n snack = this.addSnack(snack, mods);\n }\n }\n if (callback) callback(snack);\n return snack;\n }\n /**\n * 按模块地址加载模块\n * @param {LoadModuleURLConfig}\n * @param callback 回调方法,存在该参数则Promises失效\n * @return Snack 模块键值对 {snackName:snackClass}\n */\n async moduleURL({\n urls,\n cdnUrl,\n staticUrl = this.staticUrl,\n importMaps: importMaps2,\n config = {}\n }, callback) {\n if (typeof urls === \"string\") urls = [urls];\n if (cdnUrl === void 0)\n cdnUrl = this.cdnUrl ?? this.service + this.cdnPath;\n if (cdnUrl !== void 0)\n config.baseUrl = cdnUrl;\n if (staticUrl !== void 0)\n config.staticUrl = staticUrl;\n let snack = {};\n for (let i = 0, l = urls.length; i < l; i++) {\n const url = urls[i];\n const mods = await this.load({ url, config, importMaps: importMaps2 });\n if (mods instanceof Error)\n return null;\n snack = this.addSnack(snack, mods);\n }\n if (callback) callback(snack);\n return snack;\n }\n // 合并模块类对象,所有模块key均为小写\n addSnack(snack, e) {\n Object.keys(e).forEach((name) => {\n if (name === \"default\") return true;\n const key = name.toLowerCase();\n if (snack[key]) {\n console.warn(`Warn Snack-Core Module: ${name} has existed `);\n return true;\n }\n snack[key] = e[name];\n });\n return snack;\n }\n /**\n * umd模块加载方法\n * @param {LoadConfig} snack模块js地址\n * @return Snack 模块类对象\n */\n load({ url, config, importMaps: importMaps2 }) {\n const cacheKey = url;\n if (this.loadingPromises.has(cacheKey)) {\n return this.loadingPromises.get(cacheKey);\n }\n const promise = new Promise((callback) => {\n try {\n let require2;\n if (importMaps2) {\n const newRequire = _default(this, this.importMaps);\n require2 = newRequire.require;\n } else\n require2 = this.require;\n if (config)\n require2.config(config);\n const pathArr = url.split(\"/\");\n pathArr.pop();\n if (/setting\\/index.js$/.test(url)) pathArr.pop();\n const modName = pathArr.pop();\n const modType = pathArr.pop();\n window[`__snack_static_${modType}__`] = config?.staticUrl || `${pathArr.join(\"/\")}/${modType}/`;\n require2([url], (e) => {\n if (!e)\n console.error(`SnackCore load module fail: `, url);\n callback(e);\n }, (err) => {\n console.error(`SnackCore load module error: `, err);\n callback(err);\n });\n } catch (e) {\n callback({});\n }\n }).finally(() => {\n this.loadingPromises.delete(cacheKey);\n });\n this.loadingPromises.set(cacheKey, promise);\n return promise;\n }\n /**\n * 移除模块\n * @param id snack模块的 $id\n * @param forceUpdate 是否调用$forceUpdate\n */\n remove(id, forceUpdate = true) {\n if (!id || !this.moduleMaps[id]) return false;\n const parent = this.moduleMaps[id]?.data?.parent;\n if (this.moduleMaps[id]) {\n this.moduleMaps[id]?.$destroy();\n this.moduleMaps[id] = null;\n delete this.moduleMaps[id];\n }\n if (parent) {\n parent.removeChild?.(id);\n if (forceUpdate)\n parent.$forceUpdate?.();\n }\n this.sendEvent(\"onRemove\", [id]);\n }\n /**\n * 清空挂载在sdk内的所有模块\n * @param forceUpdate 是否调用$forceUpdate\n */\n empty(forceUpdate = true) {\n Object.keys(this.moduleMaps).forEach((id) => {\n this.remove(id, forceUpdate);\n });\n }\n /**\n * 国际化数据导入\n * @param data\n */\n setI18n(data) {\n Object.keys(data).forEach((lang) => {\n if (!this.i18n[lang])\n this.i18n[lang] = data[lang];\n else\n this.i18n[lang] = {\n ...this.i18n[lang],\n ...data[lang]\n };\n });\n }\n /**\n * 获取国际化文本\n * @param ops\n * @param params\n */\n intl(ops, params) {\n return i18nIntl(this, ops, this.i18n, params, void 0, this.i18n);\n }\n /**\n * 组件数据解析表达式\n * @param data\n */\n exprParseByData(data) {\n if (!data) return data;\n if (data?.data?.D) {\n const { expr, data: D } = this.checkHasExpr(data.data.D);\n if (expr) {\n this.recursiveParseJson(D, this.getExprArgv(data.data.D.style));\n data.data.D = D;\n }\n }\n if (data?.data?.M) {\n const { expr, data: M } = this.checkHasExpr(data.data.M);\n if (expr) {\n this.recursiveParseJson(M, this.getExprArgv(data.data.M));\n data.data.M = M;\n }\n }\n return data;\n }\n checkHasExpr(data) {\n if (typeof data !== \"object\") return { expr: false, data };\n try {\n const str = JSON.stringify(data);\n if (this.exprRegx.test(str)) return { expr: true, data: JSON.parse(str) };\n } catch {\n }\n return { expr: false, data };\n }\n evaluateExpression(expression, context) {\n try {\n return new Function(\"$\", `var data = $.data; return ${expression}`)(context);\n } catch (error) {\n console.error(`Error evaluating expression: ${expression}`, error);\n return `${expression}:${error.message}`;\n }\n }\n processTemplateString(template, context) {\n const regex = this.exprRegx;\n return template.replace(regex, (_, expr) => {\n const result = this.evaluateExpression(expr.trim(), context);\n return result !== void 0 ? result : \"\";\n });\n }\n recursiveParseJson(obj, context, filterPrototype = false) {\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n if (filterPrototype) {\n try {\n JSON.stringify(obj[key]);\n } catch {\n continue;\n }\n }\n if (typeof obj[key] === \"object\" && obj[key] !== null) {\n this.recursiveParseJson(obj[key], context, filterPrototype);\n } else if (typeof obj[key] === \"string\") {\n try {\n obj[key] = this.processTemplateString(obj[key], context);\n } catch {\n }\n }\n }\n }\n return obj;\n }\n /**\n * 表达式入参\n */\n getExprArgv(data) {\n return {\n argv: this.argv,\n sdk: this,\n data\n };\n }\n};\nvar core_default = Core;\n\n// src/sdk/index.tsx\nvar import_react5 = __toESM(require(\"react\"));\nvar import_lib3 = require(\"@paraview/lib\");\n\n// src/sdk/renderSnack.tsx\nvar renderSnackPage = (props, formatData, onComplete) => {\n let {\n root,\n filter,\n drop,\n sdk,\n content\n } = props;\n const {\n rootProps,\n rules,\n data,\n snackPageEvent\n } = props.config;\n if (!root) {\n const props2 = rootProps || {};\n if (!props2.$snackSDK)\n props2.$snackSDK = sdk;\n if (props2.style && content?.module?.data?.M?.style) {\n props2.style = {\n ...props2.style,\n ...content?.module?.data?.M?.style\n };\n } else\n props2.style = content?.module?.data?.M?.style;\n root = new drop(props2);\n }\n const children = [];\n const childrenMaps = {};\n const fields = {};\n const completeEvent = {\n fields,\n children,\n childrenMaps\n };\n if (!content) {\n setTimeout(() => onComplete && onComplete(completeEvent), 0);\n return null;\n }\n let childCount = 0;\n const loopRender = async (parentObj, arr) => {\n if (!arr || arr.length === 0) return;\n for (let i = 0, l = arr.length; i < l; i++) {\n const item = arr[i];\n let formAttr = item.module?.data?.M.formAttr;\n if (sdk.defaultFormAttr && formAttr) {\n item.module.data.M.formAttr = formAttr = {\n ...sdk.defaultFormAttr,\n ...formAttr\n };\n }\n if (formAttr) {\n const { field } = formAttr;\n if (filter && filter.indexOf(String(formAttr.field)) !== -1) {\n if (childCount === 0) {\n onComplete && onComplete(completeEvent);\n }\n continue;\n }\n if (rules && field && rules[field] !== void 0) {\n const rule = rules[field];\n if (rule.hide === true) continue;\n if (rule.disabled === true)\n formAttr.disabled = true;\n }\n }\n let moduleData = formatData ? formatData(item.module, fields) || item.module : item.module;\n childCount++;\n if (!moduleData.data)\n moduleData.data = { D: {}, M: {} };\n if (!moduleData.data.D)\n moduleData.data.D = {};\n moduleData.data.D.key = item.key;\n if (sdk.runtime) {\n const exprParseData = sdk.exprParseByData(moduleData);\n if (exprParseData)\n moduleData = exprParseData;\n }\n const onCreateBeforeEvent = moduleData.data?.M.eventScripts?.onCreateBefore;\n if (onCreateBeforeEvent && sdk.runtime && moduleData.data) {\n evalJS_default.call(\n sdk,\n \"onCreateBefore\",\n onCreateBeforeEvent.script,\n {\n $this: { data: moduleData.data.M },\n $fields: snackPageEvent?.fields,\n $children: snackPageEvent?.childrenMaps,\n $verify: snackPageEvent?.verify,\n $defaultData: data,\n $defaultModuleData: moduleData.data.M,\n $defaultStyle: moduleData.data.D?.style || {},\n $defaultDisplay: (b = true) => {\n if (!moduleData.data) return;\n if (!b) {\n moduleData.data.D.style.display = \"none\";\n if (moduleData.data.M?.formAttr)\n moduleData.data.M.formAttr.disabled = true;\n } else {\n moduleData.data.D.style.display = \"\";\n if (moduleData.data.M?.formAttr)\n moduleData.data.M.formAttr.disabled = false;\n }\n },\n $message: sdk.message\n }\n );\n }\n await parentObj.append(moduleData, (child) => {\n if (!child || !child.M) return console.error(\"SnackCore render module error\");\n const { formAttr: formAttr2 } = child.M.data;\n child.M.$parent = child.D;\n child.M.$page = snackPageEvent;\n child.D.$page = snackPageEvent;\n childCount--;\n children.push(child);\n const key = child.D?.data?.key;\n if (key)\n childrenMaps[key] = child;\n if (formAttr2 && formAttr2.field)\n fields[formAttr2.field] = child;\n if (item.isContainer) {\n const parentBoxArr = child?.M?.children || [];\n const boxConfig = item.children || [];\n for (let j = 0, k = parentBoxArr.length; j < k; j++) {\n const parentBoxDetail = parentBoxArr[j];\n const boxConfigDetail = boxConfig[j];\n if (boxConfigDetail.children && boxConfigDetail.children.length > 0)\n loopRender(parentBoxDetail, boxConfigDetail.children);\n else if (childCount === 0) {\n onComplete && onComplete(completeEvent);\n }\n }\n } else if (childCount === 0) {\n onComplete && onComplete(completeEvent);\n }\n });\n }\n parentObj.$forceUpdate();\n };\n setTimeout(async () => {\n if (root) {\n const children2 = content && content.children;\n if (!children2 || children2.length === 0) {\n return onComplete && onComplete(completeEvent);\n }\n loopRender(root, children2);\n }\n }, 0);\n return root;\n};\n\n// src/utils/verifyJS.tsx\nasync function verifyJS_default(formatAargs, M) {\n const sdk = this;\n const { fields, defaultData, childrenMaps } = formatAargs;\n if (M.data.error) {\n M.data.error = false;\n M.data.helperText = \"\";\n M.$forceUpdate();\n }\n let { value } = M.data || {};\n let {\n verifyRules,\n // 正则校验\n verifyJS,\n // 自定义js脚本校验\n required,\n // 是否必填\n notEmptyObject,\n // 非空对象\n disabled,\n // 是否禁用\n trimValue,\n // 是否trim value\n skipRegx = false\n } = M.data.formAttr || {};\n if (typeof value === \"string\" && trimValue !== false)\n value = value.trim();\n if (disabled === true) return true;\n const locale2 = getLocale(sdk);\n let label = \"\";\n const field = M.data?.formAttr?.field;\n switch (typeof M.data.label) {\n case \"object\":\n label = M.data.label[locale2] || M.data.label[\"zh\"] || M.data.label[\"zh-CN\"];\n if (!label) {\n const values = Object.values(M.data.label);\n if (values.length === 1 && typeof values[0] === \"string\")\n label = values[0];\n else if (field)\n label = field;\n else {\n label = \"\";\n console.warn(\"SnackCore: \\u6821\\u9A8C\\u5B57\\u6BB5\\u56FD\\u9645\\u5316\\u6807\\u9898\\u672A\\u5339\\u914D\\u5230\\u53EF\\u7528\\u7684\\u6587\\u672C\", M.data);\n }\n }\n break;\n case \"string\":\n label = M.data.label;\n break;\n }\n let isEmpty = value === void 0 || value === null || value === \"\";\n if (required === true) {\n if (!isEmpty && notEmptyObject) isEmpty = isEmptyObject(value);\n if (isEmpty) {\n const requireText = sdk.intl({ id: \"require\" }, { label });\n M.data.error = true;\n M.data.helperText = requireText;\n M.$forceUpdate();\n return false;\n }\n }\n if (!isEmpty && !skipRegx && verifyRules && verifyRules.length > 0) {\n let passCount = 0;\n const errorTexts = [];\n const mustMatchErrorTexts = [];\n for (let i = 0, l = verifyRules.length; i < l; i++) {\n const rule = verifyRules[i];\n let error = false;\n if (rule.regExp) {\n try {\n error = !new RegExp(rule.regExp).test(value);\n } catch (err) {\n console.error(`SnackCore: verify 'rule.regExp' is Error\\uFF1A`, rule);\n }\n }\n if (error) {\n const baseLocale = locale2?.split(\"-\")[0];\n const errorText = typeof rule.erorText === \"object\" ? rule.erorText[locale2] || rule.erorText[baseLocale] || rule.erorText[\"zh\"] || \"\" : rule.erorText || sdk.intl(\"noErrorMsg\");\n if (rule.mustMatch)\n mustMatchErrorTexts.push(errorText);\n else\n errorTexts.push(errorText);\n } else if (!rule.mustMatch)\n passCount++;\n }\n if (mustMatchErrorTexts.length > 0) {\n M.data.error = true;\n M.data.helperText = mustMatchErrorTexts.join(\"\\u3001\");\n M.$forceUpdate();\n return false;\n }\n if (passCount === 0 && errorTexts.length > 0) {\n M.data.error = true;\n M.data.helperText = errorTexts.join(\"\\u3001\");\n M.$forceUpdate();\n return false;\n }\n }\n if (verifyJS && typeof verifyJS === \"string\") {\n const e = await new Promise(($cb) => {\n evalJS_default.call(\n sdk,\n \"verifyJS\",\n String(verifyJS),\n // 脚本参数\n {\n $cb,\n $this: M,\n $fields: fields,\n $children: childrenMaps,\n $defaultData: defaultData,\n $message: sdk.message\n }\n );\n });\n if (typeof e === \"boolean\") {\n if (!e) {\n M.data.error = true;\n M.data.helperText = \"\";\n M.$forceUpdate();\n }\n return e;\n }\n if (typeof e === \"object\" && e.error !== void 0) {\n M.data.error = e.error;\n M.data.helperText = e.helperText || \"\";\n M.$forceUpdate();\n return !e.error;\n }\n }\n return true;\n}\n\n// src/components/error/index.tsx\nvar import_react4 = __toESM(require(\"react\"));\nvar icon = /* @__PURE__ */ import_react4.default.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"45\", height: \"45\", viewBox: \"0 0 60 60\" }, /* @__PURE__ */ import_react4.default.createElement(\"g\", { id: \"\\u7EC4_6340\", \"data-name\": \"\\u7EC4 6340\", transform: \"translate(-148.761 -452.761)\" }, /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4067\",\n \"data-name\": \"\\u8DEF\\u5F84 4067\",\n d: \"M215.4,636.518s7.916-2.192,8.4,4.872-6.516,9.073-1.035,10.474\",\n transform: \"translate(-65.631 -152.87)\",\n fill: \"none\",\n stroke: \"#1890ff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4068\",\n \"data-name\": \"\\u8DEF\\u5F84 4068\",\n d: \"M341,354.932s25.071-4.858,26.613,10.8-20.635,20.106-3.278,23.21\",\n transform: \"translate(-161.052 113.005)\",\n fill: \"none\",\n stroke: \"#1890ff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\"g\", { id: \"\\u7EC4_6339\", \"data-name\": \"\\u7EC4 6339\", transform: \"translate(152.898 457.351)\" }, /* @__PURE__ */ import_react4.default.createElement(\n \"circle\",\n {\n id: \"\\u692D\\u5706_122\",\n \"data-name\": \"\\u692D\\u5706 122\",\n cx: \"20.43\",\n cy: \"20.43\",\n r: \"20.43\",\n transform: \"translate(6.239 4.274)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"rect\",\n {\n id: \"\\u77E9\\u5F62_19572\",\n \"data-name\": \"\\u77E9\\u5F62 19572\",\n width: \"6.207\",\n height: \"11.12\",\n transform: \"translate(17.359 37.479)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"rect\",\n {\n id: \"\\u77E9\\u5F62_19573\",\n \"data-name\": \"\\u77E9\\u5F62 19573\",\n width: \"6.207\",\n height: \"11.12\",\n transform: \"translate(29.773 37.479)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_123\",\n \"data-name\": \"\\u692D\\u5706 123\",\n cx: \"5.172\",\n cy: \"1.94\",\n rx: \"5.172\",\n ry: \"1.94\",\n transform: \"translate(17.359 46.789)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_124\",\n \"data-name\": \"\\u692D\\u5706 124\",\n cx: \"5.172\",\n cy: \"1.94\",\n rx: \"5.172\",\n ry: \"1.94\",\n transform: \"translate(29.773 46.53)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"circle\",\n {\n id: \"\\u692D\\u5706_125\",\n \"data-name\": \"\\u692D\\u5706 125\",\n cx: \"6.983\",\n cy: \"6.983\",\n r: \"6.983\",\n transform: \"translate(20.204 12.55)\",\n fill: \"#fff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"circle\",\n {\n id: \"\\u692D\\u5706_126\",\n \"data-name\": \"\\u692D\\u5706 126\",\n cx: \"2.328\",\n cy: \"2.328\",\n r: \"2.328\",\n transform: \"translate(24.859 17.205)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4065\",\n \"data-name\": \"\\u8DEF\\u5F84 4065\",\n d: \"M.151,8.554c-.826-3.7,1.815-7.44,5.9-8.352s8.066,1.349,8.892,5.049-1.881,5.066-5.966,5.978S.978,12.255.151,8.554Z\",\n transform: \"matrix(0.978, -0.208, 0.208, 0.978, 7.651, 3.138)\",\n fill: \"#1890ff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_127\",\n \"data-name\": \"\\u692D\\u5706 127\",\n cx: \"10.215\",\n cy: \"3.207\",\n rx: \"10.215\",\n ry: \"3.207\",\n transform: \"translate(33.916 18.752) rotate(-23.171)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_128\",\n \"data-name\": \"\\u692D\\u5706 128\",\n cx: \"7.845\",\n cy: \"3.207\",\n rx: \"7.845\",\n ry: \"3.207\",\n transform: \"translate(0 30.593) rotate(-23.171)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4070\",\n \"data-name\": \"\\u8DEF\\u5F84 4070\",\n d: \"M6158.75,270.307s2.22-3.117,7.245-1.386\",\n transform: \"translate(-6131.563 -236.834)\",\n fill: \"none\",\n stroke: \"#fff\"\n }\n)), /* @__PURE__ */ import_react4.default.createElement(\n \"rect\",\n {\n id: \"\\u77E9\\u5F62_19576\",\n \"data-name\": \"\\u77E9\\u5F62 19576\",\n width: \"60\",\n height: \"60\",\n transform: \"translate(148.761 452.761)\",\n fill: \"none\"\n }\n)));\nvar Error2 = (props) => {\n return /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error\" }, /* @__PURE__ */ import_react4.default.createElement(\"span\", { className: \"snack-core-error-icon\" }, icon), /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error-content\" }, /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error-msg\" }, props.content || \"\\u62B1\\u6B49\\uFF0C\\u9875\\u9762\\u6216\\u6A21\\u5757\\u6E32\\u67D3\\u51FA\\u73B0\\u4E86\\u9519\\u8BEF\"), props.sub ? /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error-sub\" }, props.sub) : null));\n};\nvar error_default = Error2;\n\n// src/sdk/index.tsx\nvar import_client = require(\"react-dom/client\");\nvar SnackSDK = class extends core_default {\n constructor(config) {\n super(config);\n this.verifyTimeout = {};\n }\n /**\n * 创建Snack模块实例\n * @param snackClass Snack模块Class\n * @param main 如果创建的是setting模块则需要传入main主模块Snack对象\n * @param data\n */\n async createModule({ main, name, type, setting = false }, data = {}) {\n const e = await this.module({\n module: [{ name, type, setting }]\n });\n if (setting) name += \"setting\";\n if (!e[name]) return null;\n if (!data.$snackSDK) data.$snackSDK = this;\n let mod;\n if (setting || main) mod = new e[name](main, data);\n else mod = new e[name](data);\n return mod;\n }\n /**\n * 渲染设计器页面\n * @param params {SnackPageParams | SnackPageData} 页面加载参数 参数非法则创建空容器\n * @param config {RenderPageConfig} 页面渲染参数\n * @param root 根容器\n * @param filter 过滤渲染组件列表\n * @private\n */\n async createPage(params, config = {}, root, filter) {\n let pageData;\n let pageContent;\n const { drop } = await this.module({\n module: [{ name: \"drop\", type: this.basicsType }]\n });\n if (params) {\n if (params.content) {\n pageData = this.pageContentDecode(params);\n } else if (params.id) {\n pageData = await this.getPage(params);\n if (pageData) pageData = this.pageContentDecode(pageData);\n else {\n pageData = { content: { children: [] }, id: \"err\", name: \"err page\" };\n console.error(\n \"SnackCore\\uFF1A\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25\\uFF0Cid:\",\n params.id,\n \"type:\",\n params.type\n );\n }\n }\n if (pageData) pageContent = pageData.content;\n }\n const ops = {\n root,\n config,\n filter,\n drop,\n sdk: this,\n content: pageContent\n };\n const content = renderSnackPage(\n ops,\n (moduleData, fields) => {\n return config.data && this.formatData(config.data, moduleData, fields);\n },\n config.onComplete\n );\n if (!content && params)\n return {\n content: {\n FC: () => /* @__PURE__ */ import_react5.default.createElement(\n error_default,\n {\n content: \"\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25\\u4E86\",\n sub: `id: ${params?.id} type: ${params?.type}`\n }\n )\n }\n };\n return { content, pageData };\n }\n // 校验限流计时器\n /**\n * 渲染多个页面,当页面为表单时会过滤相同字段的表单组件\n * @param params\n * @param config\n */\n async renderPage(params, config = {}) {\n const pages = params instanceof Array ? params : [params];\n let i = 0;\n let event = {\n children: [],\n fields: {},\n childrenMaps: {}\n };\n let root = null;\n const loadPage = async (filter) => {\n const param = pages[i];\n const { content, pageData } = await this.createPage(\n param,\n {\n snackPageEvent: event,\n ...config,\n onComplete: (e) => {\n event.pageData = pageData;\n event.children = [...event.children, ...e.children];\n event.fields = { ...event.fields, ...e.fields };\n event.childrenMaps = { ...event.childrenMaps, ...e.childrenMaps };\n i++;\n if (pages[i]) {\n loadPage(Object.keys(e.fields));\n } else {\n const formatArag = {\n rules: config.rules,\n fields: event.fields,\n childrenMaps: event.childrenMaps,\n defaultData: config.data,\n verify: (key) => this.formVerify(formatArag, key, pageData)\n };\n event.setData = (key, value) => this.formSetData(formatArag, key, value);\n event.getData = (key) => this.formGetData(formatArag, key);\n event.verify = formatArag.verify;\n event.empty = () => this.formEmpty(event.children);\n setTimeout(() => {\n this.sendEvent(\"onComplete\", [content, params]);\n }, 50);\n event.snackEventCallback = (e2) => {\n const parentKey = e2.target.$parent?.data?.key;\n if (!event.childrenMaps[parentKey]) return;\n const eventScripts = e2.target.data?.eventScripts;\n if (eventScripts && eventScripts[e2.name]) {\n const { script } = eventScripts[e2.name];\n evalJS_default.call(this, \"eventJS\", script, {\n $this: e2.target,\n $fields: event.fields,\n $children: event.childrenMaps,\n $verify: event.verify,\n $defaultData: config.data,\n $message: this.message\n });\n }\n const { field, verifyOnEvents, verifyASTime } = e2.target.data?.formAttr || {};\n if (!field || !event.verify) return;\n if (verifyOnEvents.indexOf(e2.name) !== -1) {\n if (this.verifyTimeout[e2.target.$id])\n clearTimeout(this.verifyTimeout[e2.target.$id]);\n this.verifyTimeout[e2.target.$id] = setTimeout(() => {\n event?.verify?.(field);\n delete this.verifyTimeout[e2.target.$id];\n }, verifyASTime || 300);\n }\n };\n event.destroy = () => this.destroy(event, content);\n this.addEvent(\"snack-event\", event.snackEventCallback);\n if (this.runtime) {\n for (let i2 = 0, l = event.children.length; i2 < l; i2++) {\n const child = event.children[i2];\n if (child.M) {\n this.sendEvent(\"snack-event\", [\n {\n name: \"onCreate\",\n target: child.M,\n value: child.M?.data?.value\n }\n ]);\n }\n }\n }\n config.onComplete?.(event, params);\n }\n }\n },\n root,\n filter\n );\n if (!root) root = content;\n return root;\n };\n return await loadPage();\n }\n /**\n * 卸载页面\n * @private\n */\n destroy(event, root) {\n if (!event) return;\n Object.keys(this.verifyTimeout).forEach((key) => clearTimeout(this.verifyTimeout[key]));\n this.verifyTimeout = {};\n if (event.snackEventCallback)\n this.removeEvent(\"snack-event\", event.snackEventCallback);\n Object.keys(event.childrenMaps).forEach((id) => {\n if (!event) return true;\n const child = event.childrenMaps[id];\n if (child.D) {\n this.remove(child.D.$id, false);\n child.D = null;\n child.DFC = null;\n }\n if (child.M) {\n this.remove(child.M.$id, false);\n child.M = null;\n child.MFC = null;\n }\n if (child.S) {\n this.remove(child.S.$id);\n child.S = null;\n child.SFC = null;\n }\n delete event.childrenMaps[id];\n });\n if (!root) return;\n this.remove(root.$id, false);\n root.data.children = [];\n root.$forceUpdate();\n event = null;\n root = null;\n }\n /**\n * 设置表单字段数据\n * @param formatArag\n * @param kv 所要设置的字段名,当value为空,key为对象则覆盖整个data对象\n * @param value 所要设置的字段值\n * @private\n */\n formSetData(formatArag, kv, value) {\n const { fields } = formatArag;\n const setValue = (f, value2) => {\n if (!kv || !fields[f]) return;\n const M = fields[f].M;\n M.data.value = value2;\n M.data.value = this.formFormatValue(M, formatArag);\n M.$forceUpdate();\n };\n if (typeof kv === \"object\") {\n Object.keys(fields).forEach((field) => {\n const val = kv[field];\n if (val !== void 0) setValue(field, val);\n });\n } else if (typeof kv === \"string\") setValue(kv, value);\n return true;\n }\n /**\n * 表单入参转换\n * @param M\n * @param verify\n * @param fields\n * @param defaultData\n * @param childrenMaps\n * @private\n */\n formFormatValue(M, { verify, fields, defaultData = {}, childrenMaps }) {\n let { formAttr, value } = M.data || {};\n const { inFormatJS } = formAttr || {};\n if (inFormatJS)\n value = evalJS_default.call(this, \"inFormatJS\", inFormatJS, {\n $this: M,\n $fields: fields,\n $verify: verify,\n $children: childrenMaps,\n $defaultData: defaultData,\n $message: this.message\n });\n return value;\n }\n /**\n * 获取表单数据\n * @param verify\n * @param childrenMaps\n * @param fields 表单字段对象\n * @param defaultData\n * @param key 指定获取字段值\n * @private\n */\n formGetData({ verify, childrenMaps, fields, defaultData = {} }, key) {\n const getValue = (f) => {\n const M = fields[f].M;\n let { formAttr, value } = M.data || {};\n const { field, noSubmit, outFormatJS } = formAttr || {};\n if (noSubmit || !field) return true;\n if (outFormatJS)\n value = evalJS_default.call(this, \"outFormatJS\", outFormatJS, {\n $this: M,\n $fields: fields,\n $verify: verify,\n $children: childrenMaps,\n $defaultData: defaultData,\n $message: this.message\n });\n if (typeof value === \"string\" && formAttr.trimValue !== false)\n value = value.trim();\n return value;\n };\n if (key) return getValue(key);\n const keys = Object.keys(fields);\n const newFormData = {};\n const password = [];\n keys.forEach((f) => {\n const { M, D } = fields[f] || {};\n if (!M || !D) return true;\n const { noSubmit, passwordFlag, hideNoSubmit } = M.data?.formAttr || {};\n if (noSubmit === true) return true;\n const isHide = D.data.style.display === \"none\";\n if (isHide && hideNoSubmit) return true;\n const value = getValue(f);\n if (passwordFlag === true && typeof value === \"string\" && fields[f].M?.data?.type === \"password\")\n password.push(f);\n if (f.indexOf(\".\") !== -1) {\n const farr = f.split(\".\");\n let last = newFormData;\n farr.forEach((f1, index) => {\n const isEnd = index === farr.length - 1;\n if (typeof last === \"object\" && !(last instanceof Array)) {\n if (last[f1] === void 0 || last[f1] === null) last[f1] = {};\n if (isEnd) last[f1] = value;\n else last = last[f1];\n }\n });\n } else newFormData[f] = value;\n });\n if (password.length > 0)\n newFormData[\"@password\"] = password;\n return newFormData;\n }\n /**\n * 表单校验\n * @private\n * @param formatArag\n * @param key\n * @param pageData\n */\n async formVerify(formatArag, key, pageData) {\n const { fields } = formatArag;\n const verify = async (f) => {\n const { M, D } = fields[f];\n const { hideNoSubmit } = M.data.formAttr || {};\n const isHide = D.data.style.display === \"none\";\n if (isHide && hideNoSubmit === true) return true;\n if (!M.data.formAttr) {\n console.error(\n `SnackCore: the SnackModule 'data.formAttr' is undefind`,\n M\n );\n return true;\n }\n return await verifyJS_default.call(this, formatArag, M);\n };\n if (key) return await verify(key);\n let pass = true;\n const keys = Object.keys(fields);\n for (let i = 0, l = keys.length; i < l; i++) {\n const check = await verify(keys[i]);\n if (!check) pass = false;\n }\n return pass;\n }\n /**\n * 清空表单填充数据\n * @param children\n * @private\n */\n formEmpty(children) {\n for (let i = 0, l = children.length; i < l; i++) {\n try {\n const child = children[i];\n let value;\n switch (typeof child.M.data.value) {\n case \"string\":\n value = \"\";\n break;\n case \"number\":\n value = 0;\n break;\n case \"object\":\n if (child.M.data.value instanceof Array) value = [];\n else value = {};\n break;\n case \"boolean\":\n value = false;\n break;\n default:\n value = null;\n }\n child.M.data.value = value;\n child.M.$forceUpdate();\n } catch (e) {\n console.warn(\"SnackCore empty form error\", e);\n return false;\n }\n }\n return true;\n }\n /**\n * 格式化Form入参数据\n * @param defaultData\n * @param moduleData 组件初始化入参\n * @param fields\n * @private\n */\n formatData(defaultData, moduleData, fields) {\n const field = moduleData.data?.M?.formAttr?.field;\n if (field !== void 0) {\n let value;\n if (field.indexOf(\".\") === -1) value = defaultData[field];\n else\n value = safeGet(defaultData, field);\n if (value !== void 0 && moduleData.data) {\n const defaultValue = value === \"object\" ? (0, import_lib3.DeepClone)(value) : value;\n moduleData.data.M.__defaultvalue = defaultValue;\n moduleData.data.M.value = value;\n moduleData.data.M.value = this.formFormatValue(\n { data: moduleData.data?.M },\n {\n fields,\n defaultData,\n childrenMaps: {}\n }\n );\n }\n }\n return moduleData;\n }\n /**\n * 解码页面内容base64\n * @param data\n */\n pageContentDecode(data) {\n if (typeof data.content === \"string\")\n data.content = (0, import_lib3.ToObject)(import_lib3.Base64.decode(data.content, true), null);\n return data;\n }\n /**\n * 获取页面数据\n */\n async getPage(params) {\n const { err, data } = await (0, import_lib3.Get)({\n url: `${this.pageUrl}/${params.type || \"_\"}/${params.id}.json`,\n global: true\n });\n if (err) {\n console.error(`Snack SDK: Get Page Data Error `, err);\n return null;\n }\n return data;\n }\n /**\n * 渲染设计器页面 - React FC组件\n * @param params {SnackPageConfig}\n * @param config {RenderPageConfig}\n */\n async createPageComponent(params, config = {}) {\n const root = await this.renderPage(\n params,\n config\n );\n if (!root) {\n console.error(\"SnackSDK: Create Page Error\", params);\n return () => /* @__PURE__ */ import_react5.default.createElement(\n error_default,\n {\n content: \"\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25\",\n info: JSON.stringify(params, null, 4)\n }\n );\n }\n return ((e) => root.FC(e));\n }\n /**\n * 渲染页面到dom元素内\n * @param el\n * @param params\n * @param config\n */\n async createPageForElement(el, params, config = {}) {\n const root = await this.renderPage(\n params,\n config\n );\n if (!root) {\n console.error(\"SnackSDK: Create Page Error\", params);\n el.innerHTML = \"<div>\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25</div>\";\n return null;\n }\n const Page = (e) => root.FC(e);\n const parent = (0, import_client.createRoot)(el);\n parent.render(/* @__PURE__ */ import_react5.default.createElement(Page, null));\n return Page;\n }\n /**\n * 渲染模块 - React FC组件\n * @param args 模块装载参数\n * @param data 模块初始数据\n */\n async createModuleComponent(args, data) {\n const mod = await this.createModule(args, data);\n if (!mod) {\n console.error(\"SnackSDK: Create Page Error\", args);\n return () => /* @__PURE__ */ import_react5.default.createElement(error_default, { content: \"\\u6A21\\u5757\\u6E32\\u67D3\\u5931\\u8D25\", info: JSON.stringify(args, null, 4) });\n }\n return ((e) => mod.FC(e));\n }\n /**\n * 渲染模块到dom元素内\n * @param el 所要渲染模块的容器\n * @param args 模块装载参数\n * @param data 模块初始数据\n */\n async createModuleForElement(el, args, data) {\n const mod = await this.createModule(args, data);\n if (!mod) {\n console.error(\"SnackSDK: Create Page Error\", args);\n el.innerHTML = \"<div>\\u6A21\\u5757\\u6E32\\u67D3\\u5931\\u8D25</div>\";\n return null;\n }\n const Module = (e) => mod.FC(e);\n const parent = (0, import_client.createRoot)(el);\n parent.render(/* @__PURE__ */ import_react5.default.createElement(Module, null));\n return mod;\n }\n /**\n * 通过模块Class渲染模块\n * @param SnackClass sanck 模块 Class\n * @param data snack对象参数\n * @param main 如果为设置模块,传入主模块对象\n */\n createClassModule(SnackClass, data, main) {\n if (data && !data.$snackSDK) data.$snackSDK = this;\n else if (!data) {\n data = { $snackSDK: this };\n }\n let mod;\n if (main !== void 0) mod = new SnackClass(main, data);\n else mod = new SnackClass(data);\n return mod;\n }\n /**\n * 通过模块Class渲染模块\n * @param SnackClass snack 模块 Class\n * @param data snack对象参数\n * @param main 如果为设置模块,传入主模块对象\n */\n createClassModuleComponent(SnackClass, data, main) {\n const mod = this.createClassModule(SnackClass, data, main);\n return ((e) => mod.FC(e));\n }\n};\nvar GetDefaultEvents = (language) => {\n return [\n {\n name: \"onCreateBefore\",\n label: language === \"en-US\" ? \"Before the component is initialized\" : \"\\u7EC4\\u4EF6\\u521D\\u59CB\\u5316\\u4E4B\\u524D\",\n default: true,\n verify: false\n },\n {\n name: \"onCreate\",\n label: language === \"en-US\" ? \"Component initialization\" : \"\\u7EC4\\u4EF6\\u521D\\u59CB\\u5316\",\n default: true\n },\n {\n name: \"onClick\",\n label: language === \"en-US\" ? \"click\" : \"\\u70B9\\u51FB\"\n },\n {\n name: \"onChange\",\n label: language === \"en-US\" ? \"Numeric changes\" : \"\\u6570\\u503C\\u53D8\\u66F4\"\n },\n {\n name: \"onFocus\",\n label: language === \"en-US\" ? \"Get focused\" : \"\\u83B7\\u5F97\\u7126\\u70B9\"\n },\n {\n name: \"onBlur\",\n label: language === \"en-US\" ? \"Loss of focus\" : \"\\u5931\\u53BB\\u7126\\u70B9\"\n },\n {\n name: \"onEnter\",\n label: language === \"en-US\" ? \"Enter\" : \"\\u56DE\\u8F66\"\n }\n ];\n};\n\n// src/components/loading/index.tsx\nvar import_react6 = __toESM(require(\"react\"));\nvar Loading = (props) => {\n const ref = import_react6.default.useRef(null);\n const [opacity, setOpacity] = import_react6.default.useState(0);\n import_react6.default.useEffect(() => {\n const timeout = setTimeout(() => {\n setOpacity(1);\n }, 500);\n return () => clearTimeout(timeout);\n }, []);\n return /* @__PURE__ */ import_react6.default.createElement(\"div\", { className: `snack-core-loading ${props.className || \"\"}`, ref, style: { opacity } }, /* @__PURE__ */ import_react6.default.createElement(\"div\", { className: \"spinner\" }));\n};\n\n// package.json\nvar package_default = {\n name: \"@snack-kit/core\",\n version: \"0.1.0\",\n main: \"dist/cjs/index.js\",\n module: \"dist/es/index.js\",\n typings: \"dist/types/index.d.ts\",\n exports: {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n import: \"./dist/es/index.js\",\n require: \"./dist/cjs/index.js\"\n }\n },\n description: \"Snack by Para FED\",\n scripts: {\n build: \"tsup\",\n \"build:watch\": \"tsup --watch\",\n test: \"vitest run\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage\",\n docs: \"typedoc\",\n lint: \"tsc --noEmit\",\n \"ver++\": \"node ver++.js\",\n clean: \"rimraf ./dist\",\n prepublishOnly: \"npm run build\"\n },\n snack: {},\n files: [\n \"dist\",\n \"package.json\"\n ],\n author: \"\",\n license: \"ISC\",\n dependencies: {\n \"@paraview/lib\": \"^3.0.0\",\n react: \"^19.2.0\",\n \"react-dom\": \"^19.2.0\"\n },\n devDependencies: {\n \"@swc/core\": \"^1.15.18\",\n \"@types/react\": \"^19.2.7\",\n \"@types/react-dom\": \"^19.2.3\",\n \"@vitest/coverage-v8\": \"^2.0.0\",\n jsdom: \"^24.0.0\",\n rimraf: \"^5.0.0\",\n tsup: \"^8.0.0\",\n typedoc: \"^0.26.0\",\n typescript: \"^5.0.0\",\n vitest: \"^2.0.0\"\n }\n};\n\n// src/index.ts\nvar version2 = package_default.version;\nvar src_default = {\n version: version2\n};\nconsole.log(`\n ____ __ _______ __ __\n / __/__ ___ _____/ /__ / __/ _ \\\\/ //_/\n _\\\\ \\\\/ _ \\\\/ _ \\`/ __/ '_/_\\\\ \\\\/ // / ,< \n/___/_//_/\\\\_,_/\\\\__/_/\\\\_\\\\/___/____/_/|_| v.${version2}\n \n`);\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n Core,\n DisplayModule,\n Error,\n GetDefaultEvents,\n GetParamsDetails,\n Loading,\n ParamsDetails,\n Snack,\n SnackSDK,\n SnackSetting,\n enParamsDetails,\n evalFunc,\n replaceVars\n});\n/**\n * @license Snack RequireJS 2.3.6\n */\n"]}
1
+ {"version":3,"sources":["/Users/liujia/%E5%B7%A5%E4%BD%9C/snack/core/dist/cjs/index.js"],"names":[],"mappings":"","sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n Core: () => Core,\n DisplayModule: () => DisplayModule,\n Error: () => Error2,\n GetDefaultEvents: () => GetDefaultEvents,\n GetParamsDetails: () => GetParamsDetails,\n Loading: () => Loading,\n ParamsDetails: () => ParamsDetails,\n Snack: () => Snack,\n SnackSDK: () => SnackSDK,\n SnackSetting: () => SnackSetting,\n default: () => src_default,\n enParamsDetails: () => enParamsDetails,\n evalFunc: () => evalFunc,\n replaceVars: () => replaceVars\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/class/snack.tsx\nvar import_react3 = __toESM(require(\"react\"));\nvar import_lib2 = require(\"@paraview/lib\");\n\n// src/utils/common.tsx\nvar import_react = __toESM(require(\"react\"));\nvar import_lib = require(\"@paraview/lib\");\nfunction i18nIntl(sdk, ops, i18nData, params, lang, defI18nData) {\n let locale2 = getLocale(sdk, lang);\n let text2, key;\n if (typeof ops === \"string\") {\n key = ops;\n } else if (typeof ops === \"object\") {\n if (typeof ops.id !== \"string\") return 'i18n intl object \"id\" is missing';\n key = ops.id;\n }\n if (key !== void 0) {\n const data = i18nData[locale2] || i18nData[sdk.localeDefault];\n if (typeof data === \"object\")\n text2 = data[key];\n if (text2 === void 0 && defI18nData) {\n text2 = defI18nData[locale2]?.[key] || defI18nData[sdk.localeDefault]?.[key];\n }\n }\n if (typeof text2 !== \"string\")\n return `{${key}}`;\n return replaceStrTemplateVars(text2, params);\n}\nfunction getLocale(sdk, lang) {\n const localeMapping = sdk?.localeMapping;\n let locale2 = lang || (0, import_lib.GetLanguage)();\n if (!localeMapping) return locale2;\n if (localeMapping[locale2] !== void 0)\n return localeMapping[locale2];\n return locale2;\n}\nvar get = (obj, path, defaultValue) => {\n const pathArr = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n let result = obj;\n for (const p of pathArr) {\n result = Object(result)[p];\n if (result === void 0) {\n return defaultValue;\n }\n }\n return result;\n};\nvar replaceStrTemplateVars = (str, vars) => {\n if (!vars) return str;\n str = str.replace(/\\\"/g, '\\\\\"');\n const strTemplateReg = /({[^{}]+})/g;\n const parts = str.split(strTemplateReg);\n let isJsx = false;\n const valArr = parts.map((part) => {\n if (part.match(strTemplateReg)) {\n const key = part.replace(/({|})/g, \"\");\n const val = get(vars, key);\n if (val && val.$$typeof) isJsx = true;\n return val === void 0 ? key : val;\n }\n return part;\n });\n if (valArr.length && isJsx) return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, valArr);\n return valArr.join(\"\");\n};\nvar isEmptyObject = (value) => {\n if (value && typeof value === \"object\") {\n try {\n const val = JSON.stringify(value);\n if (val === \"[]\" || val === \"{}\") return true;\n } catch (e) {\n }\n }\n return false;\n};\n\n// src/utils/evalJS.ts\nvar import_react2 = __toESM(require(\"react\"));\nvar http = __toESM(require(\"@paraview/lib/http\"));\nvar utils = __toESM(require(\"@paraview/lib/utils\"));\nvar types = {\n // 自定义入参转换脚本参数\n inFormatJS: [\"$verify\"],\n // 自定义出参转换脚本参数\n outFormatJS: [\"$verify\"],\n // 自定义校验脚本参数\n verifyJS: [\"$cb\"],\n // 自定义事件脚本\n eventJS: [\"$verify\"],\n // 初始化之前事件\n onCreateBefore: [\"$defaultStyle\", \"$defaultDisplay\", \"$defaultModuleData\"]\n};\nvar defTypes = [\n \"$this\",\n \"$key\",\n \"$field\",\n \"$fields\",\n \"$children\",\n \"$value\",\n \"$defaultValue\",\n \"$defaultData\",\n \"$val\",\n \"$getData\",\n \"$display\",\n \"$disable\",\n \"$http\",\n \"$utils\",\n \"$message\"\n];\nfunction evalJS_default(type, code, data) {\n try {\n const M = data.$this;\n const $field = M?.data?.formAttr?.field;\n const $fields = data.$fields;\n const $verify = data.$verify;\n const $children = data.$children;\n const $message = data.$message;\n const params = types[type];\n if (!params)\n return console.error(`SnackCore: the type(${type}) is unrealized`);\n const evalArgs = [...params, ...defTypes];\n let evalFunc2 = new Function(\n ...evalArgs,\n ` with (${evalArgs.join(\", \")}) {\n ${code}\n }`\n );\n const args = [];\n for (let i = 0, l = params.length; i < l; i++) {\n const param = params[i];\n args[i] = data[param] || null;\n }\n const getModule = (key) => {\n return $fields[key] || $children[key];\n };\n args.push(M);\n args.push($field && $fields[$field]?.D?.data?.key);\n args.push($field);\n args.push($fields);\n args.push($children);\n args.push(M?.data?.value);\n args.push(M?.data?.__defaultvalue);\n args.push(data.$defaultData);\n args.push(\n (key, value) => $val(getModule(key), value, $verify)\n );\n args.push((key) => getModule(key)?.M?.data);\n args.push(\n (key, show = true) => $display(getModule(key), show)\n );\n args.push(\n (key, disable = true) => $disable(getModule(key), disable)\n );\n args.push(http);\n args.push(utils);\n args.push($message);\n return evalFunc2.apply(window, args);\n } catch (err) {\n console.error(\"`SnackCore: run js error\", err);\n }\n return null;\n}\nfunction $val(child, value, verify) {\n if (!child) return void 0;\n const M = child.M;\n if (value === void 0) return M.data.value;\n if (M.data.value === value) return M.data.value;\n M.data.value = value;\n M.$forceUpdate();\n if (verify) verify(M.data?.formAttr?.field);\n return value;\n}\nfunction $display(child, show = true) {\n if (!child) return child;\n if (show) {\n if (child.D.data.style.display !== \"none\") return child;\n if (child.D.__display__ !== void 0) {\n child.D.data.style.display = child.D.__display__;\n delete child.D.__display__;\n } else child.D.data.style.display = \"block\";\n if (child.M.__disabled__ !== void 0) {\n child.M.data.formAttr.disabled = child.M.__disabled__;\n delete child.M.__disabled__;\n } else if (child.M.data.formAttr) child.M.data.formAttr.disabled = false;\n } else {\n if (child.D.data.style.display === \"none\") return child;\n child.D.__display__ = child.D.data.style.display;\n child.D.data.style.display = \"none\";\n if (child.M.data.formAttr && child.M.data.formAttr.disabled !== void 0) {\n child.M.__disabled__ = child.M.data.formAttr.disabled;\n child.M.data.formAttr.disabled = true;\n }\n }\n child.D.$forceUpdate();\n return child;\n}\nvar DisplayModule = $display;\nfunction $disable(child, disabled = false) {\n if (!child) return child;\n if (child.M?.data?.formAttr) {\n child.M.data.formAttr.disabled = disabled;\n child.M.$forceUpdate();\n }\n return child;\n}\nvar GetParamsDetails = (monaco, event, locale2) => {\n const _ParamsDetails = locale2 === \"en-US\" ? enParamsDetails : ParamsDetails;\n const list = [];\n for (let i = 0, l = _ParamsDetails.length; i < l; i++) {\n const item = _ParamsDetails[i];\n if (event) {\n if (item.filterEvents && item.filterEvents.indexOf(event) !== -1)\n continue;\n if (item.events && item.events.indexOf(event) === -1) continue;\n }\n list.push({\n label: item.label,\n insertText: item.insertText,\n detail: item.detail,\n documentation: item.documentation,\n kind: monaco?.languages?.CompletionItemKind?.[\"Keyword\"]\n });\n }\n return list;\n};\nwindow.GetParamsDetails = GetParamsDetails;\nvar ParamsDetails = [\n {\n label: \"$this\",\n insertText: \"$this\",\n detail: \"\\u5F53\\u524D\\u9009\\u4E2D\\u7684\\u7EC4\\u4EF6\\u5BF9\\u8C61,\\uFF08\\u5F53\\u5728onCreateBefore\\u4E8B\\u4EF6\\u65F6\\uFF0C\\u8BE5\\u5BF9\\u8C61\\u4EC5\\u53EA\\u6709\\u5165\\u53C2\\u6570\\u636E\\uFF0C\\u5E76\\u4E0D\\u662F\\u4E00\\u4E2A\\u7EC4\\u4EF6\\u5B9E\\u4F8B\\uFF09\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$key\",\n insertText: \"$key\",\n detail: \"\\u5F53\\u524D\\u9009\\u4E2D\\u7EC4\\u4EF6\\u7684\\u552F\\u4E00key\\u503C\"\n },\n {\n label: \"$field\",\n insertText: \"$field\",\n detail: \"\\u5F53\\u524D\\u9009\\u4E2D\\u7EC4\\u4EF6\\u6240\\u7ED1\\u5B9A\\u5B57\\u6BB5\\u540D\"\n },\n {\n label: \"$fields\",\n insertText: \"$fields\",\n detail: \"\\u5F53\\u524D\\u8868\\u5355\\u6240\\u6709\\u5B57\\u6BB5\\u4E0E\\u7EC4\\u4EF6\\u5BF9\\u8C61\\u7684\\u952E\\u503C\\u5BF9\"\n },\n {\n label: \"$children\",\n insertText: \"$children\",\n detail: \"\\u5F53\\u524D\\u9875\\u9762\\u6240\\u6709\\u5143\\u7D20\\u7684\\u5BF9\\u8C61\\u952E\\u503C\\u5BF9\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$verify\",\n insertText: '$verify(\"\")',\n detail: '\\u5B57\\u6BB5\\u6821\\u9A8C\\u65B9\\u6CD5\\uFF0C\\u6307\\u5B9A\\u6821\\u9A8C\\u67D0\\u4E2A\\u5B57\\u6BB5\\uFF1A$verify(\"$field\")\\uFF0C\\u5426\\u5219\\u5168\\u91CF\\u5B57\\u6BB5\\u6821\\u9A8C\\uFF08\\u81EA\\u5B9A\\u4E49\\u6821\\u9A8C\\u811A\\u672C\\u8BE5\\u65B9\\u6CD5\\u65E0\\u6548\\uFF09'\n },\n {\n events: [\"verifyJS\"],\n label: \"$cb\",\n insertText: '$cb({error: true, helperText: \"error msg\"})',\n detail: \"\\u6821\\u9A8C\\u5B8C\\u6210\\u7684\\u56DE\\u8C03\\u51FD\\u6570\\uFF08\\u4EC5\\u81EA\\u5B9A\\u6821\\u9A8C\\u811A\\u672C\\u6709\\u6548\\uFF09\"\n },\n {\n label: \"$value\",\n insertText: \"$value\",\n detail: \"\\u5F53\\u524D\\u7EC4\\u4EF6\\u7684value\\u503C\"\n },\n {\n label: \"$defaultValue\",\n insertText: \"$defaultValue\",\n detail: \"\\u5F53\\u524D\\u7EC4\\u4EF6\\u521D\\u59CB\\u7684value\\u503C\"\n },\n {\n label: \"$defaultData\",\n insertText: \"$defaultData\",\n detail: \"\\u5F53\\u524D\\u8868\\u5355\\u521D\\u59CB\\u4F20\\u5165\\u7684data\\u6570\\u636E\\u586B\\u5145\\u5BF9\\u8C61\"\n },\n {\n label: \"$val\",\n insertText: '$val(\"\")',\n detail: \"\\u6307\\u5B9A\\u83B7\\u53D6\\u7EC4\\u4EF6\\u6216\\u8BBE\\u7F6E\\u7EC4\\u4EF6\\u7684value\\u503C\",\n documentation: \"\\u83B7\\u53D6\\u7EC4\\u4EF6\\u503C\\uFF1A $val(key)\\uFF1B\\u8BBE\\u7F6E\\u7EC4\\u4EF6\\u503C\\uFF1A$val(key, value);\"\n },\n {\n label: \"$getData\",\n insertText: '$getData(\"\")',\n detail: \"\\u83B7\\u53D6\\u6307\\u5B9A\\u5B57\\u6BB5\\u7EC4\\u4EF6\\u7684data\\u5BF9\\u8C61\",\n documentation: \"$val(key, value)\"\n },\n {\n label: \"$display\",\n insertText: '$display(\"\", true);',\n detail: \"\\u6307\\u5B9A\\u5B57\\u6BB5\\u7684\\u7EC4\\u4EF6\\u662F\\u5426\\u663E\\u793A\",\n documentation: \"\\u663E\\u793A\\u7EC4\\u4EF6\\uFF1A$display(key, true)\\uFF1B\\u9690\\u85CF\\u7EC4\\u4EF6\\uFF1A$display(key, false)\"\n },\n {\n label: \"$disable\",\n insertText: '$disable(\"\", true);',\n detail: \"\\u6307\\u5B9A\\u8BBE\\u7F6E\\u652F\\u6301\\u7981\\u7528\\u529F\\u80FD\\u7684\\u7EC4\\u4EF6\\u72B6\\u6001\",\n documentation: \"\\u7981\\u7528\\u7EC4\\u4EF6\\uFF1A$disable(key, true)\\uFF1B\\u53D6\\u6D88\\u7981\\u7528\\uFF1A$disable(key, false)\"\n },\n {\n label: \"$http\",\n insertText: \"$http\",\n detail: \"paralib http\\u8BF7\\u6C42\\u6A21\\u5757\"\n },\n {\n label: \"$utils\",\n insertText: \"$utils\",\n detail: \"paralib \\u5DE5\\u5177\\u65B9\\u6CD5\\u6A21\\u5757\"\n },\n {\n label: \"$message\",\n insertText: \"$message\",\n detail: \"paraUi message\\u63D0\\u793A\\u7EC4\\u4EF6,\\u9700\\u5728\\u521D\\u59CB\\u5316sdk\\u65F6\\u4F20\\u5165message\\u5BF9\\u8C61\\u65B9\\u53EF\\u4F7F\\u7528\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultModuleData\",\n insertText: \"$defaultModuleData\",\n detail: \"\\u9ED8\\u8BA4\\u5F53\\u524D\\u7EC4\\u4EF6\\u521D\\u59CB\\u5316\\u53C2\\u6570\\u5BF9\\u8C61\\uFF0C\\u4EC5onCreateBefore\\u4E8B\\u4EF6\\u6709\\u6548\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultStyle\",\n insertText: \"$defaultStyle\",\n detail: \"\\u9ED8\\u8BA4\\u5F53\\u524D\\u7EC4\\u4EF6\\u6E32\\u67D3\\u6837\\u5F0F\\u5BF9\\u8C61\\uFF0C\\u4EC5onCreateBefore\\u4E8B\\u4EF6\\u6709\\u6548\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultDisplay\",\n insertText: \"$defaultDisplay(true);\",\n detail: \"\\u9ED8\\u8BA4\\u5F53\\u524D\\u7EC4\\u4EF6\\u663E\\u793A\\u6216\\u5F71\\u85CF\\u72B6\\u6001\\u8BBE\\u7F6E\\uFF0C\\u4EC5onCreateBefore\\u4E8B\\u4EF6\\u6709\\u6548\",\n documentation: \"\\u9ED8\\u8BA4\\u663E\\u793A\\u7EC4\\u4EF6\\uFF1A$defaultDisplay(true)\\uFF1B\\u9690\\u85CF\\u7EC4\\u4EF6\\uFF1A$defaultDisplay(false);\"\n }\n];\nvar enParamsDetails = [\n {\n label: \"$this\",\n insertText: \"$this\",\n detail: \"current component object, (when in onCreateBefore event, this object only has input data, not a component instance)\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$key\",\n insertText: \"$key\",\n detail: \"unique key of current component\"\n },\n {\n label: \"$field\",\n insertText: \"$field\",\n detail: \"The name of the field bound to the currently selected component\"\n },\n {\n label: \"$fields\",\n insertText: \"$fields\",\n detail: \"field name bound to current component\"\n },\n {\n label: \"$children\",\n insertText: \"$children\",\n detail: \"key-value pairs of all elements in current page\"\n },\n {\n filterEvents: [\"onCreateBefore\"],\n label: \"$verify\",\n insertText: '$verify(\"\")',\n detail: 'field validation method, specify validation for a field: $verify(\"$field\"), otherwise validate all fields (custom validation script invalid for this method)'\n },\n {\n events: [\"verifyJS\"],\n label: \"$cb\",\n insertText: '$cb({error: true, helperText: \"error msg\"})',\n detail: \"Verified callback function (only custom verification scripts are valid)\"\n },\n {\n label: \"$value\",\n insertText: \"$value\",\n detail: \"The value of the current component\"\n },\n {\n label: \"$defaultValue\",\n insertText: \"$defaultValue\",\n detail: \"The initial value of the current component\"\n },\n {\n label: \"$defaultData\",\n insertText: \"$defaultData\",\n detail: \"The data data that is initially passed in to fill the object of the current form\"\n },\n {\n label: \"$val\",\n insertText: '$val(\"\")',\n detail: \"Specify the value of the component to be obtained or set\",\n documentation: \"Get component value: $val (key); Set component value: $val (key, value);\"\n },\n {\n label: \"$getData\",\n insertText: '$getData(\"\")',\n detail: \"Obtain the data object of the specified field component\",\n documentation: \"$val(key, value)\"\n },\n {\n label: \"$display\",\n insertText: '$display(\"\", true);',\n detail: \"Specifies whether the portlet of the field is displayed\",\n documentation: \"Display component: $display (key, true); Hidden component: $display (key, false)\"\n },\n {\n label: \"$disable\",\n insertText: '$disable(\"\", true);',\n detail: \"Specifies the status of the component that sets the support for disabling the feature\",\n documentation: \"Disable component: $disable(key, true); Disable: $disable (key, false)\"\n },\n {\n label: \"$http\",\n insertText: \"$http\",\n detail: \"paralib http request module\"\n },\n {\n label: \"$utils\",\n insertText: \"$utils\",\n detail: \"paralib tool method module\"\n },\n {\n label: \"$message\",\n insertText: \"$message\",\n detail: \"paraUi message components,You need to pass in a message object when initializing the SDK to use it\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultModuleData\",\n insertText: \"$defaultModuleData\",\n detail: \"By default, the current component initializes the parameter object, and only the onCreateBefore event is valid\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultStyle\",\n insertText: \"$defaultStyle\",\n detail: \"By default, the current component renders the style object, and only the onCreateBefore event is valid\"\n },\n {\n events: [\"onCreateBefore\"],\n label: \"$defaultDisplay\",\n insertText: \"$defaultDisplay(true);\",\n detail: \"By default, the current component display or shadow status is set, and only the onCreateBefore event is valid\",\n documentation: \"Default display component: $defaultDisplay (true); Hidden component: $defaultDisplay (false);\"\n }\n];\nvar evalFunc = function(args, code, isSync = false) {\n if (args instanceof Array) args = `{ ${args.join(\",\")} }`;\n if (isSync) {\n const AsyncFunction = Object.getPrototypeOf(\n async function() {\n }\n ).constructor;\n return new AsyncFunction(args, code);\n } else {\n return new Function(args, code);\n }\n};\nvar VerRegx = /(\\{\\{\\s*.*?\\s*\\}\\})/;\nvar replaceVars = function(data, srcData) {\n if (!data || typeof data !== \"object\") return srcData;\n const vars = Object.keys(data);\n const ops = { vars, data };\n if (typeof srcData === \"object\") {\n traversalObject(ops, srcData, [srcData]);\n return srcData;\n } else if (typeof srcData === \"string\") return replaceValue(ops, srcData);\n else return srcData;\n};\nfunction replaceValue(ops, value) {\n try {\n if (!VerRegx.test(value)) return value;\n const { vars, data } = ops;\n let strArr = value.split(VerRegx);\n let jsx = false;\n if (strArr instanceof Array && strArr.length > 0) {\n for (let i = 0; i < strArr.length; i++) {\n const item = strArr[i];\n if (!item || typeof item !== \"string\") continue;\n const matched = item.match(/\\{\\{\\s*(.*?)\\s*\\}\\}/);\n if (matched && matched[1]) {\n const nv = evalFunc(\n vars,\n `try {return ${matched[1]}} catch (err) { console.error('SnackCore replace vars error: ', \"${matched[0]}\", err); return }`\n )(data);\n if (nv !== void 0) {\n if (nv && nv.$$typeof) jsx = true;\n strArr[i] = nv;\n } else {\n console.error(`SnackCore replace vars \"${value}\" is undefined`);\n }\n }\n }\n }\n if (jsx) {\n const children = strArr.map((item, index) => {\n if (typeof item === \"string\") return item;\n return import_react2.default.createElement(import_react2.default.Fragment, { key: index }, item);\n });\n return import_react2.default.createElement(import_react2.default.Fragment, null, children);\n } else return strArr.join(\"\");\n } catch (err) {\n console.error(`SnackCore replace vars(\"${value}\") error:`, err);\n return value;\n }\n}\nfunction traversalObject(ops, obj = null, traversaled = []) {\n try {\n if (!obj || obj.$$typeof) return;\n for (var key in obj) {\n const value = obj[key];\n if (typeof value == \"object\") {\n if (traversaled.indexOf(value) !== -1)\n continue;\n traversaled.push(value);\n traversalObject(ops, value, traversaled);\n } else if (typeof value === \"string\") {\n obj[key] = replaceValue(ops, value);\n }\n }\n } catch (err) {\n console.error(`SnackCore replace vars traversal error:`, err);\n }\n}\n\n// src/class/snack.tsx\nvar Snack = class {\n /**\n *\n * @param data 统一数据管理对象\n * @param defData data默认值\n */\n constructor(data, defData) {\n this.data = data;\n /**\n * 当前模块名称\n */\n this.$name = \"\";\n // 页面事件对象\n /**\n * 当前模块唯一id,每次实例化随机生成\n */\n this.$id = \"snack_\" + String(Math.random() * 1e7 | 0);\n // 模块实例唯一id 每次new都随机生成\n /**\n * 国际化语言map集合\n */\n this.$i18nMap = {};\n /**\n * 重绘id\n */\n this.$forceUpdateId = Math.random();\n /**\n * 是否基础模块\n */\n this.isBasic = false;\n /**\n * 是否容器\n */\n this.isContainer = false;\n /**\n * 是否放置容器\n */\n this.isDrop = false;\n /**\n * 是否拖拽容器\n */\n this.isDrag = false;\n /**\n * 是否页面模版容器\n */\n this.isTemplate = false;\n /**\n * 是否form组件\n */\n this.isForm = false;\n /**\n * 设置模式\n */\n this.settingMode = false;\n /**\n * React组件方法\n * @param data 统一数据管理对象(解构覆盖构造函数data参数)\n * @return FunctionComponent\n */\n this.$lastUpdateId = 0;\n if (data) {\n if (data[\"$snackSDK\"]) {\n this.sdk = data[\"$snackSDK\"];\n delete data[\"$snackSDK\"];\n } else\n this.sdk = data.parent && data.parent.sdk ? data.parent.sdk : window.SnackSDK;\n if (this.sdk) {\n this.sdk.moduleMaps[this.$id] = this;\n }\n if (typeof data[\"$i18n\"] === \"object\") {\n this.$i18nMapExternal = data[\"$i18n\"];\n delete data[\"$i18n\"];\n }\n if (defData && typeof defData[\"$i18n\"] === \"object\") {\n this.$i18n = defData[\"$i18n\"];\n delete defData[\"$i18n\"];\n }\n if (typeof defData === \"object\")\n this.data = { ...defData, ...this.data };\n } else if (typeof defData === \"object\")\n this.data = (0, import_lib2.DeepClone)(defData);\n else\n this.data = {};\n if (this.sdk?.runtime === false) {\n this.props = this.cloneData(this.data);\n this.sdk?.recursiveParseJson(this.props, this.sdk?.getExprArgv({}), true);\n }\n }\n cloneData(obj) {\n if (Array.isArray(obj)) {\n try {\n const s2 = JSON.stringify(obj);\n return JSON.parse(s2);\n } catch {\n return obj;\n }\n }\n let clone = {};\n let prototype = {};\n const keys = Object.keys(obj);\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n try {\n const s2 = JSON.stringify(obj[key]);\n clone[key] = JSON.parse(s2);\n } catch {\n prototype[key] = obj[key];\n }\n }\n return { ...clone, ...prototype };\n }\n // 上次更新id\n FC(data) {\n const [update, setUpdate] = (0, import_react3.useState)(0);\n this.$forceUpdateHook = setUpdate;\n if (this.$lastUpdateId !== update) {\n if (typeof data === \"object\") {\n this.data = { ...data, ...this.data };\n if (this.sdk?.runtime === false)\n this.props = { ...data, ...this.props };\n }\n this.$lastUpdateId = update;\n } else if (typeof data === \"object\") {\n this.data = { ...this.data, ...data };\n if (this.sdk?.runtime === false)\n this.props = { ...this.props, ...data };\n }\n let props;\n if (this.sdk?.runtime === false) {\n if (this.props && this.data && (this.isDrop || this.isDrag)) {\n if (this.data.parent)\n this.props.parent = this.data.parent;\n if (this.data.children)\n this.props.children = this.data.children;\n if (this.isDrag && this.data.content)\n this.props.content = this.data.content;\n }\n props = this.props;\n } else {\n props = this.data;\n }\n return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, { key: this.$forceUpdateId }, this.$component.call(this, props));\n }\n $component(data) {\n if (typeof this.JSX === \"function\") return /* @__PURE__ */ import_react3.default.createElement(\"h2\", null, \" JSX \\u65B9\\u6CD5\\u5DF2\\u7ECF\\u5E9F\\u5F03\\uFF0C\\u8BF7\\u4F7F\\u7528\\u65B0\\u65B9\\u6CD5 $component \\u4EE3\\u66FFJSX\");\n return this.data?.jsx || /* @__PURE__ */ import_react3.default.createElement(\"div\", null, \"no data\");\n }\n /**\n * 强制渲染JSX内容\n * @param reload 是否强制重绘\n */\n $forceUpdate(reload = false) {\n try {\n if (typeof this.$forceUpdateHook !== \"function\") return;\n if (reload) this.$forceUpdateId = Math.random();\n this.$forceUpdateHook(Math.random());\n } catch (e) {\n console.warn(\"Snack forceUpdate Error\", e);\n }\n }\n /**\n * this.style 样式赋值方法,同时渲染页面\n * @param key\n * @param value\n */\n $style(key, value) {\n if (!this.data) return {};\n let style = this.data.style || {};\n if (key) {\n if (typeof key === \"object\") {\n Object.keys(key).forEach((css) => {\n style[css] = key[css];\n });\n this.$forceUpdate();\n } else if (typeof key === \"string\" && value) {\n style[key] = value;\n this.$forceUpdate();\n } else\n return style[key];\n }\n return style;\n }\n /**\n * 外部复写,统一销毁方法\n */\n $destroy() {\n if (!this.sdk) return;\n delete this.sdk.moduleMaps[this.$id];\n }\n /**\n * 国际化切换方法\n * @param lang 语言\n */\n $language(lang) {\n this.$lang = lang;\n if (this.isDrop || this.isDrag || this.isTemplate) return;\n this.$forceUpdate(true);\n }\n get $lang() {\n if (!this.sdk) return window.localStorage.getItem(\"language\") || \"zh\";\n return getLocale(this.sdk);\n }\n set $lang(lang) {\n window.localStorage.setItem(\"language\", lang);\n }\n /**\n * 国际化语言包返回\n */\n get $i18n() {\n return this.$i18nMap;\n }\n /**\n * 国际化语言包设置\n * @param map 语言包对象\n */\n set $i18n(map) {\n if (!map) return;\n this.$i18nMap = map;\n }\n /**\n * 返回外部导入与默认国际化数据\n */\n $getI18n() {\n return {\n external: this.$i18nMapExternal || null,\n default: this.$i18nMap || null\n };\n }\n /**\n * 国际化语言获取\n * @param ops 语言变量\n */\n $intl(ops, params) {\n return i18nIntl(this.sdk, ops, this.$i18nMapExternal || this.$i18n, params, this.$lang, this.$i18n);\n }\n $display(b) {\n let _this = this.isDrag ? this : this.$parent;\n if (!_this || !_this.$page || !_this.data?.key) return;\n const child = _this.$page.childrenMaps[_this.data.key];\n if (!child) return;\n return DisplayModule(child, b);\n }\n cloneDeep(data, re) {\n if (!data) return re || null;\n try {\n return JSON.parse(JSON.stringify(data));\n } catch (e) {\n return data || re;\n }\n }\n};\nvar snack_default = Snack;\n\n// src/utils/pathAccess.ts\nfunction parsePath(path) {\n const tokens = [];\n const normalized = path.replace(/\\[/g, \".[\");\n const re = /([^.[\\]'\"]+)|['\"]([^'\"]*)['\"]/g;\n let m;\n while ((m = re.exec(normalized)) !== null) {\n const token = m[1] ?? m[2];\n if (token !== void 0 && token !== \"\") tokens.push(token);\n }\n return tokens;\n}\nfunction safeGet(obj, path) {\n return parsePath(path).reduce((acc, key) => acc?.[key], obj);\n}\nfunction safeSet(obj, path, value) {\n const keys = parsePath(path);\n if (!keys.length) return false;\n const lastKey = keys.pop();\n const target = keys.reduce((acc, key) => acc?.[key], obj);\n if (target == null || typeof target !== \"object\") return false;\n target[lastKey] = value;\n return true;\n}\n\n// src/class/snackSetting.tsx\nvar SnackSetting = class extends snack_default {\n constructor() {\n super(...arguments);\n // 继承类实体\n /**\n * 设置模块用,快速配置页面生成模块\n */\n this.model = {};\n // 属性模型\n /**\n * 是否将当前设置按照普通模式渲染,为true则不以弹窗模式渲染\n */\n this.$normal = false;\n }\n $model() {\n const data = this.main.data;\n if (!this.main || !data) return null;\n Object.keys(this.model).forEach((key) => {\n if (data[key] !== void 0)\n this.model[key].value = data[key];\n });\n return this.cloneDeep(this.model, {});\n }\n /**\n * this.data 数据赋值,同时渲染页面\n * @param field 字段名字,支持 . 操作符\n * @param value\n * @param isRefresh\n */\n $setData(field, value, isRefresh = true) {\n if (!this.main || !this.main.data) return false;\n if (this.sdk && this.sdk.runtime) {\n this.sdk.runtime = false;\n this.main.props = this.cloneData(this.main.data);\n }\n if (value === void 0) {\n const data = this.cloneDeep(this.main.data, {});\n return data[field];\n } else {\n const ok1 = this.setFieldValue(this.main.data, field, value);\n if (this.main.props)\n this.setFieldValue(this.main.props, field, value, true);\n if (!ok1) return false;\n if (isRefresh) {\n this.main.$forceUpdate();\n }\n this.$forceUpdate();\n }\n return true;\n }\n /**\n * 支持 . 操作符设置对象数据\n * @param data\n * @param field\n * @param value\n * @param parseExpr\t是否解析表达式\n * @private\n */\n setFieldValue(data, field, value, parseExpr = false) {\n if (field.indexOf(\";\") !== -1) {\n console.warn(`SnackCore: \"${field}\"\\u5B57\\u6BB5\\u5B58\\u5728\\u975E\\u6CD5\\u5B57\\u7B26\";\",\\u65E0\\u6CD5\\u6B63\\u5E38\\u901A\\u8FC7\\u89E3\\u6790\\u3002`);\n return false;\n }\n let change;\n if (parseExpr) {\n if (typeof value === \"object\")\n change = this.sdk?.recursiveParseJson(this.cloneData(value), this.sdk?.getExprArgv({}));\n else if (typeof value === \"string\")\n change = this.sdk?.processTemplateString(value, this.sdk?.getExprArgv({}));\n }\n if (field.indexOf(\".\") === -1 || data[field] !== void 0) {\n data[field] = change || value;\n return true;\n }\n return safeSet(data, field, change || value);\n }\n};\n\n// src/lib/require.js\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction _default(global, importMaps) {\n function _instanceof(left, right) {\n if (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) {\n return !!right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n }\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof2(obj2) {\n return typeof obj2;\n };\n } else {\n _typeof = function _typeof2(obj2) {\n return obj2 && typeof Symbol === \"function\" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? \"symbol\" : typeof obj2;\n };\n }\n return _typeof(obj);\n }\n var requirejs, require, define;\n var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, version = \"2.3.6\", commentRegExp = /\\/\\*[\\s\\S]*?\\*\\/|([^:\"'=]|^)\\/\\/.*$/mg, cjsRequireRegExp = /[^.]\\s*require\\s*\\(\\s*[\"']([^'\"\\s]+)[\"']\\s*\\)/g, jsSuffixRegExp = /\\.js$/, currDirRegExp = /^\\.\\//, op = Object.prototype, ostring = op.toString, hasOwn = op.hasOwnProperty, isBrowser = !!(typeof window !== \"undefined\" && typeof navigator !== \"undefined\" && window.document), isWebWorker = !isBrowser && typeof importScripts !== \"undefined\", readyRegExp = isBrowser && navigator.platform === \"PLAYSTATION 3\" ? /^complete$/ : /^(complete|loaded)$/, defContextName = \"_\", isOpera = typeof opera !== \"undefined\" && opera.toString() === \"[object Opera]\", contexts = {}, cfg = {}, globalDefQueue = [], useInteractive = false;\n function commentReplace(match, singlePrefix) {\n return singlePrefix || \"\";\n }\n function isFunction(it) {\n return ostring.call(it) === \"[object Function]\";\n }\n function isArray(it) {\n return ostring.call(it) === \"[object Array]\";\n }\n function each(ary, func) {\n if (ary) {\n var i;\n for (i = 0; i < ary.length; i += 1) {\n if (ary[i] && func(ary[i], i, ary)) {\n break;\n }\n }\n }\n }\n function eachReverse(ary, func) {\n if (ary) {\n var i;\n for (i = ary.length - 1; i > -1; i -= 1) {\n if (ary[i] && func(ary[i], i, ary)) {\n break;\n }\n }\n }\n }\n function hasProp(obj, prop) {\n return hasOwn.call(obj, prop);\n }\n function getOwn(obj, prop) {\n return hasProp(obj, prop) && obj[prop];\n }\n function eachProp(obj, func) {\n var prop;\n for (prop in obj) {\n if (hasProp(obj, prop)) {\n if (func(obj[prop], prop)) {\n break;\n }\n }\n }\n }\n function mixin(target, source, force, deepStringMixin) {\n if (source) {\n eachProp(source, function(value, prop) {\n if (force || !hasProp(target, prop)) {\n if (deepStringMixin && _typeof(value) === \"object\" && value && !isArray(value) && !isFunction(value) && !_instanceof(value, RegExp)) {\n if (!target[prop]) {\n target[prop] = {};\n }\n mixin(target[prop], value, force, deepStringMixin);\n } else {\n target[prop] = value;\n }\n }\n });\n }\n return target;\n }\n function bind(obj, fn) {\n return function() {\n return fn.apply(obj, arguments);\n };\n }\n function scripts() {\n return document.getElementsByTagName(\"script\");\n }\n function defaultOnError(err) {\n throw err;\n }\n function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split(\".\"), function(part) {\n g = g[part];\n });\n return g;\n }\n function makeError(id, msg, err, requireModules) {\n var e = new Error(msg + id);\n e.requireType = id;\n e.requireModules = requireModules;\n if (err) {\n e.originalError = err;\n }\n return e;\n }\n if (typeof define !== \"undefined\") {\n return;\n }\n if (typeof requirejs !== \"undefined\") {\n if (isFunction(requirejs)) {\n return;\n }\n cfg = requirejs;\n requirejs = void 0;\n }\n if (typeof require !== \"undefined\" && !isFunction(require)) {\n cfg = require;\n require = void 0;\n }\n function newContext(contextName) {\n var inCheckLoaded, Module, context, handlers, checkLoadedTimeoutId, _config = {\n //Defaults. Do not set a default for map\n //config to speed up normalize(), which\n //will run faster if there is no default.\n waitSeconds: 50,\n baseUrl: \"./\",\n paths: {},\n bundles: {},\n pkgs: {},\n shim: {},\n config: {}\n }, registry = {}, enabledRegistry = {}, undefEvents = {}, defQueue = [], _defined = {}, urlFetched = {}, bundlesMap = {}, requireCounter = 1, unnormalizedCounter = 1;\n function trimDots(ary) {\n var i, part;\n for (i = 0; i < ary.length; i++) {\n part = ary[i];\n if (part === \".\") {\n ary.splice(i, 1);\n i -= 1;\n } else if (part === \"..\") {\n if (i === 0 || i === 1 && ary[2] === \"..\" || ary[i - 1] === \"..\") {\n continue;\n } else if (i > 0) {\n ary.splice(i - 1, 2);\n i -= 2;\n }\n }\n }\n }\n function normalize(name, baseName, applyMap) {\n var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex, foundMap, foundI, foundStarMap, starI, normalizedBaseParts, baseParts = baseName && baseName.split(\"/\"), map = _config.map, starMap = map && map[\"*\"];\n if (name) {\n name = name.split(\"/\");\n lastIndex = name.length - 1;\n if (_config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {\n name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, \"\");\n }\n if (name[0].charAt(0) === \".\" && baseParts) {\n normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);\n name = normalizedBaseParts.concat(name);\n }\n trimDots(name);\n name = name.join(\"/\");\n }\n if (applyMap && map && (baseParts || starMap)) {\n nameParts = name.split(\"/\");\n outerLoop: for (i = nameParts.length; i > 0; i -= 1) {\n nameSegment = nameParts.slice(0, i).join(\"/\");\n if (baseParts) {\n for (j = baseParts.length; j > 0; j -= 1) {\n mapValue = getOwn(map, baseParts.slice(0, j).join(\"/\"));\n if (mapValue) {\n mapValue = getOwn(mapValue, nameSegment);\n if (mapValue) {\n foundMap = mapValue;\n foundI = i;\n break outerLoop;\n }\n }\n }\n }\n if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {\n foundStarMap = getOwn(starMap, nameSegment);\n starI = i;\n }\n }\n if (!foundMap && foundStarMap) {\n foundMap = foundStarMap;\n foundI = starI;\n }\n if (foundMap) {\n nameParts.splice(0, foundI, foundMap);\n name = nameParts.join(\"/\");\n }\n }\n pkgMain = getOwn(_config.pkgs, name);\n return pkgMain ? pkgMain : name;\n }\n function removeScript(name) {\n if (isBrowser) {\n each(scripts(), function(scriptNode) {\n if (scriptNode.getAttribute(\"data-requiremodule\") === name && scriptNode.getAttribute(\"data-requirecontext\") === context.contextName) {\n scriptNode.parentNode.removeChild(scriptNode);\n return true;\n }\n });\n }\n }\n function hasPathFallback(id) {\n var pathConfig = getOwn(_config.paths, id);\n if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {\n pathConfig.shift();\n context.require.undef(id);\n context.makeRequire(null, {\n skipMap: true\n })([id]);\n return true;\n }\n }\n function splitPrefix(name) {\n var prefix, index = name ? name.indexOf(\"!\") : -1;\n if (index > -1) {\n prefix = name.substring(0, index);\n name = name.substring(index + 1, name.length);\n }\n return [prefix, name];\n }\n function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {\n var url, pluginModule, suffix, nameParts, prefix = null, parentName = parentModuleMap ? parentModuleMap.name : null, originalName = name, isDefine = true, normalizedName = \"\";\n if (!name) {\n isDefine = false;\n name = \"_@r\" + (requireCounter += 1);\n }\n nameParts = splitPrefix(name);\n prefix = nameParts[0];\n name = nameParts[1];\n if (prefix) {\n prefix = normalize(prefix, parentName, applyMap);\n pluginModule = getOwn(_defined, prefix);\n }\n if (name) {\n if (prefix) {\n if (isNormalized) {\n normalizedName = name;\n } else if (pluginModule && pluginModule.normalize) {\n normalizedName = pluginModule.normalize(name, function(name2) {\n return normalize(name2, parentName, applyMap);\n });\n } else {\n normalizedName = name.indexOf(\"!\") === -1 ? normalize(name, parentName, applyMap) : name;\n }\n } else {\n normalizedName = normalize(name, parentName, applyMap);\n nameParts = splitPrefix(normalizedName);\n prefix = nameParts[0];\n normalizedName = nameParts[1];\n isNormalized = true;\n url = context.nameToUrl(normalizedName);\n }\n }\n suffix = prefix && !pluginModule && !isNormalized ? \"_unnormalized\" + (unnormalizedCounter += 1) : \"\";\n return {\n prefix,\n name: normalizedName,\n parentMap: parentModuleMap,\n unnormalized: !!suffix,\n url,\n originalName,\n isDefine,\n id: (prefix ? prefix + \"!\" + normalizedName : normalizedName) + suffix\n };\n }\n function getModule(depMap) {\n var id = depMap.id, mod = getOwn(registry, id);\n if (!mod) {\n mod = registry[id] = new context.Module(depMap);\n }\n return mod;\n }\n function on(depMap, name, fn) {\n var id = depMap.id, mod = getOwn(registry, id);\n if (hasProp(_defined, id) && (!mod || mod.defineEmitComplete)) {\n if (name === \"defined\") {\n fn(_defined[id]);\n }\n } else {\n mod = getModule(depMap);\n if (mod.error && name === \"error\") {\n fn(mod.error);\n } else {\n mod.on(name, fn);\n }\n }\n }\n function onError(err, errback) {\n var ids = err.requireModules, notified = false;\n if (errback) {\n errback(err);\n } else {\n each(ids, function(id) {\n var mod = getOwn(registry, id);\n if (mod) {\n mod.error = err;\n if (mod.events.error) {\n notified = true;\n mod.emit(\"error\", err);\n }\n }\n });\n if (!notified) {\n req.onError(err);\n }\n }\n }\n function takeGlobalQueue() {\n if (globalDefQueue.length) {\n each(globalDefQueue, function(queueItem) {\n var id = queueItem[0];\n if (typeof id === \"string\") {\n context.defQueueMap[id] = true;\n }\n defQueue.push(queueItem);\n });\n globalDefQueue = [];\n }\n }\n handlers = {\n \"require\": function require2(mod) {\n if (mod.require) {\n return mod.require;\n } else {\n return mod.require = context.makeRequire(mod.map);\n }\n },\n \"exports\": function exports2(mod) {\n mod.usingExports = true;\n if (mod.map.isDefine) {\n if (mod.exports) {\n return _defined[mod.map.id] = mod.exports;\n } else {\n return mod.exports = _defined[mod.map.id] = {};\n }\n }\n },\n \"module\": function module2(mod) {\n if (mod.module) {\n return mod.module;\n } else {\n return mod.module = {\n id: mod.map.id,\n uri: mod.map.url,\n config: function config() {\n return getOwn(_config.config, mod.map.id) || {};\n },\n exports: mod.exports || (mod.exports = {})\n };\n }\n }\n };\n function cleanRegistry(id) {\n delete registry[id];\n delete enabledRegistry[id];\n }\n function breakCycle(mod, traced, processed) {\n var id = mod.map.id;\n if (mod.error) {\n mod.emit(\"error\", mod.error);\n } else {\n traced[id] = true;\n each(mod.depMaps, function(depMap, i) {\n var depId = depMap.id, dep = getOwn(registry, depId);\n if (dep && !mod.depMatched[i] && !processed[depId]) {\n if (getOwn(traced, depId)) {\n mod.defineDep(i, _defined[depId]);\n mod.check();\n } else {\n breakCycle(dep, traced, processed);\n }\n }\n });\n processed[id] = true;\n }\n }\n function checkLoaded(moduleName) {\n var err, usingPathFallback, waitInterval = _config.waitSeconds * 1e3, expired = waitInterval && context.startTime + waitInterval < (/* @__PURE__ */ new Date()).getTime(), noLoads = [], reqCalls = [], stillLoading = false, needCycleCheck = true;\n if (inCheckLoaded) {\n return;\n }\n inCheckLoaded = true;\n eachProp(enabledRegistry, function(mod) {\n var map = mod.map, modId = map.id;\n if (!mod.enabled) {\n return;\n }\n if (!map.isDefine) {\n reqCalls.push(mod);\n }\n if (!mod.error) {\n if (!mod.inited && expired) {\n if (hasPathFallback(modId)) {\n usingPathFallback = true;\n stillLoading = true;\n } else {\n noLoads.push(modId);\n removeScript(modId);\n }\n } else if (!mod.inited && mod.fetched && map.isDefine) {\n stillLoading = true;\n if (!map.prefix) {\n return needCycleCheck = false;\n }\n }\n }\n });\n if (expired && noLoads.length) {\n err = makeError(\"timeout\", \"Load timeout for modules: \" + noLoads, null, noLoads);\n err.contextName = context.contextName;\n return onError(err);\n }\n if (needCycleCheck) {\n each(reqCalls, function(mod) {\n breakCycle(mod, {}, {});\n });\n }\n if ((!expired || usingPathFallback) && stillLoading) {\n if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {\n checkLoadedTimeoutId = setTimeout(function() {\n checkLoadedTimeoutId = 0;\n checkLoaded();\n }, 50);\n }\n }\n inCheckLoaded = false;\n }\n Module = function Module2(map) {\n this.events = getOwn(undefEvents, map.id) || {};\n this.map = map;\n this.shim = getOwn(_config.shim, map.id);\n this.depExports = [];\n this.depMaps = [];\n this.depMatched = [];\n this.pluginMaps = {};\n this.depCount = 0;\n };\n Module.prototype = {\n init: function init(depMaps, factory, errback, options) {\n options = options || {};\n if (this.inited) {\n return;\n }\n this.factory = factory;\n if (errback) {\n this.on(\"error\", errback);\n } else if (this.events.error) {\n errback = bind(this, function(err) {\n this.emit(\"error\", err);\n });\n }\n this.depMaps = depMaps && depMaps.slice(0);\n this.errback = errback;\n this.inited = true;\n this.ignore = options.ignore;\n if (options.enabled || this.enabled) {\n this.enable();\n } else {\n this.check();\n }\n },\n defineDep: function defineDep(i, depExports) {\n if (!this.depMatched[i]) {\n this.depMatched[i] = true;\n this.depCount -= 1;\n this.depExports[i] = depExports;\n }\n },\n fetch: function fetch() {\n if (this.fetched) {\n return;\n }\n this.fetched = true;\n context.startTime = (/* @__PURE__ */ new Date()).getTime();\n var map = this.map;\n if (this.shim) {\n context.makeRequire(this.map, {\n enableBuildCallback: true\n })(this.shim.deps || [], bind(this, function() {\n return map.prefix ? this.callPlugin() : this.load();\n }));\n } else {\n return map.prefix ? this.callPlugin() : this.load();\n }\n },\n load: function load() {\n var url = this.map.url;\n if (!urlFetched[url]) {\n urlFetched[url] = true;\n context.load(this.map.id, url);\n }\n },\n /**\n * Checks if the module is ready to define itself, and if so,\n * define it.\n */\n check: function check() {\n if (!this.enabled || this.enabling) {\n return;\n }\n var err, cjsModule, id = this.map.id, depExports = this.depExports, exports2 = this.exports, factory = this.factory;\n if (!this.inited) {\n if (!hasProp(context.defQueueMap, id)) {\n this.fetch();\n }\n } else if (this.error) {\n this.emit(\"error\", this.error);\n } else if (!this.defining) {\n this.defining = true;\n if (this.depCount < 1 && !this.defined) {\n if (isFunction(factory)) {\n if (this.events.error && this.map.isDefine || req.onError !== defaultOnError) {\n try {\n exports2 = context.execCb(id, factory, depExports, exports2);\n } catch (e) {\n err = e;\n }\n } else {\n exports2 = context.execCb(id, factory, depExports, exports2);\n }\n if (this.map.isDefine && exports2 === void 0) {\n cjsModule = this.module;\n if (cjsModule) {\n exports2 = cjsModule.exports;\n } else if (this.usingExports) {\n exports2 = this.exports;\n }\n }\n if (err) {\n err.requireMap = this.map;\n err.requireModules = this.map.isDefine ? [this.map.id] : null;\n err.requireType = this.map.isDefine ? \"define\" : \"require\";\n return onError(this.error = err);\n }\n } else {\n exports2 = factory;\n }\n this.exports = exports2;\n if (this.map.isDefine && !this.ignore) {\n _defined[id] = exports2;\n if (req.onResourceLoad) {\n var resLoadMaps = [];\n each(this.depMaps, function(depMap) {\n resLoadMaps.push(depMap.normalizedMap || depMap);\n });\n req.onResourceLoad(context, this.map, resLoadMaps);\n }\n }\n cleanRegistry(id);\n this.defined = true;\n }\n this.defining = false;\n if (this.defined && !this.defineEmitted) {\n this.defineEmitted = true;\n this.emit(\"defined\", this.exports);\n this.defineEmitComplete = true;\n }\n }\n },\n callPlugin: function callPlugin() {\n var map = this.map, id = map.id, pluginMap = makeModuleMap(map.prefix);\n this.depMaps.push(pluginMap);\n on(pluginMap, \"defined\", bind(this, function(plugin) {\n var load, normalizedMap, normalizedMod, bundleId = getOwn(bundlesMap, this.map.id), name = this.map.name, parentName = this.map.parentMap ? this.map.parentMap.name : null, localRequire = context.makeRequire(map.parentMap, {\n enableBuildCallback: true\n });\n if (this.map.unnormalized) {\n if (plugin.normalize) {\n name = plugin.normalize(name, function(name2) {\n return normalize(name2, parentName, true);\n }) || \"\";\n }\n normalizedMap = makeModuleMap(map.prefix + \"!\" + name, this.map.parentMap, true);\n on(normalizedMap, \"defined\", bind(this, function(value) {\n this.map.normalizedMap = normalizedMap;\n this.init([], function() {\n return value;\n }, null, {\n enabled: true,\n ignore: true\n });\n }));\n normalizedMod = getOwn(registry, normalizedMap.id);\n if (normalizedMod) {\n this.depMaps.push(normalizedMap);\n if (this.events.error) {\n normalizedMod.on(\"error\", bind(this, function(err) {\n this.emit(\"error\", err);\n }));\n }\n normalizedMod.enable();\n }\n return;\n }\n if (bundleId) {\n this.map.url = context.nameToUrl(bundleId);\n this.load();\n return;\n }\n load = bind(this, function(value) {\n this.init([], function() {\n return value;\n }, null, {\n enabled: true\n });\n });\n load.error = bind(this, function(err) {\n this.inited = true;\n this.error = err;\n err.requireModules = [id];\n eachProp(registry, function(mod) {\n if (mod.map.id.indexOf(id + \"_unnormalized\") === 0) {\n cleanRegistry(mod.map.id);\n }\n });\n onError(err);\n });\n load.fromText = bind(this, function(text2, textAlt) {\n var moduleName = map.name, moduleMap = makeModuleMap(moduleName), hasInteractive = useInteractive;\n if (textAlt) {\n text2 = textAlt;\n }\n if (hasInteractive) {\n useInteractive = false;\n }\n getModule(moduleMap);\n if (hasProp(_config.config, id)) {\n _config.config[moduleName] = _config.config[id];\n }\n try {\n req.exec(text2);\n } catch (e) {\n return onError(makeError(\"fromtexteval\", \"fromText eval for \" + id + \" failed: \" + e, e, [id]));\n }\n if (hasInteractive) {\n useInteractive = true;\n }\n this.depMaps.push(moduleMap);\n context.completeLoad(moduleName);\n localRequire([moduleName], load);\n });\n plugin.load(map.name, localRequire, load, _config);\n }));\n context.enable(pluginMap, this);\n this.pluginMaps[pluginMap.id] = pluginMap;\n },\n enable: function enable() {\n enabledRegistry[this.map.id] = this;\n this.enabled = true;\n this.enabling = true;\n each(this.depMaps, bind(this, function(depMap, i) {\n var id, mod, handler;\n if (typeof depMap === \"string\") {\n depMap = makeModuleMap(depMap, this.map.isDefine ? this.map : this.map.parentMap, false, !this.skipMap);\n this.depMaps[i] = depMap;\n handler = getOwn(handlers, depMap.id);\n if (handler) {\n this.depExports[i] = handler(this);\n return;\n }\n this.depCount += 1;\n on(depMap, \"defined\", bind(this, function(depExports) {\n if (this.undefed) {\n return;\n }\n this.defineDep(i, depExports);\n this.check();\n }));\n if (this.errback) {\n on(depMap, \"error\", bind(this, this.errback));\n } else if (this.events.error) {\n on(depMap, \"error\", bind(this, function(err) {\n this.emit(\"error\", err);\n }));\n }\n }\n id = depMap.id;\n mod = registry[id];\n if (!hasProp(handlers, id) && mod && !mod.enabled) {\n context.enable(depMap, this);\n }\n }));\n eachProp(this.pluginMaps, bind(this, function(pluginMap) {\n var mod = getOwn(registry, pluginMap.id);\n if (mod && !mod.enabled) {\n context.enable(pluginMap, this);\n }\n }));\n this.enabling = false;\n this.check();\n },\n on: function on2(name, cb) {\n var cbs = this.events[name];\n if (!cbs) {\n cbs = this.events[name] = [];\n }\n cbs.push(cb);\n },\n emit: function emit(name, evt) {\n each(this.events[name], function(cb) {\n cb(evt);\n });\n if (name === \"error\") {\n delete this.events[name];\n }\n }\n };\n function callGetModule(args) {\n if (!hasProp(_defined, args[0])) {\n getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);\n }\n }\n function removeListener(node, func, name, ieName) {\n if (node.detachEvent && !isOpera) {\n if (ieName) {\n node.detachEvent(ieName, func);\n }\n } else {\n node.removeEventListener(name, func, false);\n }\n }\n function getScriptData(evt) {\n var node = evt.currentTarget || evt.srcElement;\n removeListener(node, context.onScriptLoad, \"load\", \"onreadystatechange\");\n removeListener(node, context.onScriptError, \"error\");\n return {\n node,\n id: node && node.getAttribute(\"data-requiremodule\")\n };\n }\n function intakeDefines() {\n var args;\n takeGlobalQueue();\n while (defQueue.length) {\n args = defQueue.shift();\n if (args[0] === null) {\n return onError(makeError(\"mismatch\", \"Mismatched anonymous define() module: \" + args[args.length - 1]));\n } else {\n callGetModule(args);\n }\n }\n context.defQueueMap = {};\n }\n context = {\n config: _config,\n contextName,\n registry,\n defined: _defined,\n urlFetched,\n defQueue,\n defQueueMap: {},\n Module,\n makeModuleMap,\n nextTick: req.nextTick,\n onError,\n /**\n * Set a configuration for the context.\n * @param {Object} cfg config object to integrate.\n */\n configure: function configure(cfg2) {\n if (cfg2.baseUrl) {\n if (cfg2.baseUrl.charAt(cfg2.baseUrl.length - 1) !== \"/\") {\n cfg2.baseUrl += \"/\";\n }\n }\n if (typeof cfg2.urlArgs === \"string\") {\n var urlArgs = cfg2.urlArgs;\n cfg2.urlArgs = function(id, url) {\n return (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + urlArgs;\n };\n }\n var shim = _config.shim, objs = {\n paths: true,\n bundles: true,\n config: true,\n map: true\n };\n eachProp(cfg2, function(value, prop) {\n if (objs[prop]) {\n if (!_config[prop]) {\n _config[prop] = {};\n }\n mixin(_config[prop], value, true, true);\n } else {\n _config[prop] = value;\n }\n });\n if (cfg2.bundles) {\n eachProp(cfg2.bundles, function(value, prop) {\n each(value, function(v) {\n if (v !== prop) {\n bundlesMap[v] = prop;\n }\n });\n });\n }\n if (cfg2.shim) {\n eachProp(cfg2.shim, function(value, id) {\n if (isArray(value)) {\n value = {\n deps: value\n };\n }\n if ((value.exports || value.init) && !value.exportsFn) {\n value.exportsFn = context.makeShimExports(value);\n }\n shim[id] = value;\n });\n _config.shim = shim;\n }\n if (cfg2.packages) {\n each(cfg2.packages, function(pkgObj) {\n var location, name;\n pkgObj = typeof pkgObj === \"string\" ? {\n name: pkgObj\n } : pkgObj;\n name = pkgObj.name;\n location = pkgObj.location;\n if (location) {\n _config.paths[name] = pkgObj.location;\n }\n _config.pkgs[name] = pkgObj.name + \"/\" + (pkgObj.main || \"main\").replace(currDirRegExp, \"\").replace(jsSuffixRegExp, \"\");\n });\n }\n eachProp(registry, function(mod, id) {\n if (!mod.inited && !mod.map.unnormalized) {\n mod.map = makeModuleMap(id, null, true);\n }\n });\n if (cfg2.deps || cfg2.callback) {\n context.require(cfg2.deps || [], cfg2.callback);\n }\n },\n makeShimExports: function makeShimExports(value) {\n function fn() {\n var ret;\n if (value.init) {\n ret = value.init.apply(global, arguments);\n }\n return ret || value.exports && getGlobal(value.exports);\n }\n return fn;\n },\n makeRequire: function makeRequire(relMap, options) {\n options = options || {};\n function localRequire(deps, callback, errback) {\n var id, map, requireMod;\n if (options.enableBuildCallback && callback && isFunction(callback)) {\n callback.__requireJsBuild = true;\n }\n if (typeof deps === \"string\") {\n if (isFunction(callback)) {\n return onError(makeError(\"requireargs\", \"Invalid require call\"), errback);\n }\n if (relMap && hasProp(handlers, deps)) {\n return handlers[deps](registry[relMap.id]);\n }\n if (req.get) {\n return req.get(context, deps, relMap, localRequire);\n }\n map = makeModuleMap(deps, relMap, false, true);\n id = map.id;\n if (!hasProp(_defined, id)) {\n return onError(makeError(\"notloaded\", 'Module name \"' + id + '\" has not been loaded yet for context: ' + contextName + (relMap ? \"\" : \". Use require([])\")));\n }\n return _defined[id];\n }\n intakeDefines();\n context.nextTick(function() {\n intakeDefines();\n requireMod = getModule(makeModuleMap(null, relMap));\n requireMod.skipMap = options.skipMap;\n requireMod.init(deps, callback, errback, {\n enabled: true\n });\n checkLoaded();\n });\n return localRequire;\n }\n mixin(localRequire, {\n isBrowser,\n /**\n * Converts a module name + .extension into an URL path.\n * *Requires* the use of a module name. It does not support using\n * plain URLs like nameToUrl.\n */\n toUrl: function toUrl(moduleNamePlusExt) {\n var ext, index = moduleNamePlusExt.lastIndexOf(\".\"), segment = moduleNamePlusExt.split(\"/\")[0], isRelative = segment === \".\" || segment === \"..\";\n if (index !== -1 && (!isRelative || index > 1)) {\n ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);\n moduleNamePlusExt = moduleNamePlusExt.substring(0, index);\n }\n return context.nameToUrl(normalize(moduleNamePlusExt, relMap && relMap.id, true), ext, true);\n },\n defined: function defined(id) {\n return hasProp(_defined, makeModuleMap(id, relMap, false, true).id);\n },\n specified: function specified(id) {\n id = makeModuleMap(id, relMap, false, true).id;\n return hasProp(_defined, id) || hasProp(registry, id);\n }\n });\n if (!relMap) {\n localRequire.undef = function(id) {\n takeGlobalQueue();\n var map = makeModuleMap(id, relMap, true), mod = getOwn(registry, id);\n mod.undefed = true;\n removeScript(id);\n delete _defined[id];\n delete urlFetched[map.url];\n delete undefEvents[id];\n eachReverse(defQueue, function(args, i) {\n if (args[0] === id) {\n defQueue.splice(i, 1);\n }\n });\n delete context.defQueueMap[id];\n if (mod) {\n if (mod.events.defined) {\n undefEvents[id] = mod.events;\n }\n cleanRegistry(id);\n }\n };\n }\n return localRequire;\n },\n /**\n * Called to enable a module if it is still in the registry\n * awaiting enablement. A second arg, parent, the parent module,\n * is passed in for context, when this method is overridden by\n * the optimizer. Not shown here to keep code compact.\n */\n enable: function enable(depMap) {\n var mod = getOwn(registry, depMap.id);\n if (mod) {\n getModule(depMap).enable();\n }\n },\n /**\n * Internal method used by environment adapters to complete a load event.\n * A load event could be a script load or just a load pass from a synchronous\n * load call.\n * @param {String} moduleName the name of the module to potentially complete.\n */\n completeLoad: function completeLoad(moduleName) {\n var found, args, mod, shim = getOwn(_config.shim, moduleName) || {}, shExports = shim.exports;\n takeGlobalQueue();\n while (defQueue.length) {\n args = defQueue.shift();\n if (args[0] === null) {\n args[0] = moduleName;\n if (found) {\n break;\n }\n found = true;\n } else if (args[0] === moduleName) {\n found = true;\n }\n callGetModule(args);\n }\n context.defQueueMap = {};\n mod = getOwn(registry, moduleName);\n if (!found && !hasProp(_defined, moduleName) && mod && !mod.inited) {\n if (_config.enforceDefine && (!shExports || !getGlobal(shExports))) {\n if (hasPathFallback(moduleName)) {\n return;\n } else {\n return onError(makeError(\"nodefine\", \"No define call for \" + moduleName, null, [moduleName]));\n }\n } else {\n callGetModule([moduleName, shim.deps || [], shim.exportsFn]);\n }\n }\n checkLoaded(moduleName);\n },\n /**\n * Converts a module name to a file path. Supports cases where\n * moduleName may actually be just an URL.\n * Note that it **does not** call normalize on the moduleName,\n * it is assumed to have already been normalized. This is an\n * internal API, not a public one. Use toUrl for the public API.\n */\n nameToUrl: function nameToUrl(moduleName, ext, skipExt) {\n var paths, syms, i, parentModule, url, parentPath, bundleId, pkgMain = getOwn(_config.pkgs, moduleName);\n if (pkgMain) {\n moduleName = pkgMain;\n }\n bundleId = getOwn(bundlesMap, moduleName);\n if (bundleId) {\n return context.nameToUrl(bundleId, ext, skipExt);\n }\n if (req.jsExtRegExp.test(moduleName)) {\n url = moduleName + (ext || \"\");\n } else {\n paths = _config.paths;\n syms = moduleName.split(\"/\");\n for (i = syms.length; i > 0; i -= 1) {\n parentModule = syms.slice(0, i).join(\"/\");\n parentPath = getOwn(paths, parentModule);\n if (parentPath) {\n if (isArray(parentPath)) {\n parentPath = parentPath[0];\n }\n syms.splice(0, i, parentPath);\n break;\n }\n }\n url = syms.join(\"/\");\n url += ext || (/^data\\:|^blob\\:|\\?/.test(url) || skipExt ? \"\" : \".js\");\n url = (url.charAt(0) === \"/\" || url.match(/^[\\w\\+\\.\\-]+:/) ? \"\" : _config.baseUrl) + url;\n }\n return _config.urlArgs && !/^blob\\:/.test(url) ? url + _config.urlArgs(moduleName, url) : url;\n },\n //Delegates to req.load. Broken out as a separate function to\n //allow overriding in the optimizer.\n load: function load(id, url) {\n req.load(context, id, url);\n },\n /**\n * Executes a module callback function. Broken out as a separate function\n * solely to allow the build system to sequence the files in the built\n * layer in the right sequence.\n *\n * @private\n */\n execCb: function execCb(name, callback, args, exports2, maps) {\n return callback.apply(exports2, args);\n },\n /**\n * callback for script loads, used to check status of loading.\n *\n * @param {Event} evt the event from the browser for the script\n * that was loaded.\n */\n onScriptLoad: function onScriptLoad(evt) {\n if (evt.type === \"noload\") {\n context.completeLoad(evt.id);\n return;\n }\n if (evt.type === \"load\" || readyRegExp.test((evt.currentTarget || evt.srcElement).readyState)) {\n interactiveScript = null;\n var data = getScriptData(evt);\n context.completeLoad(data.id);\n }\n },\n /**\n * Callback for script errors.\n */\n onScriptError: function onScriptError(evt) {\n var data = getScriptData(evt);\n if (!hasPathFallback(data.id)) {\n var parents = [];\n eachProp(registry, function(value, key) {\n if (key.indexOf(\"_@r\") !== 0) {\n each(value.depMaps, function(depMap) {\n if (depMap.id === data.id) {\n parents.push(key);\n return true;\n }\n });\n }\n });\n return onError(makeError(\"scripterror\", 'Script error for \"' + data.id + (parents.length ? '\", needed by: ' + parents.join(\", \") : '\"'), evt, [data.id]));\n }\n }\n };\n context.require = context.makeRequire();\n return context;\n }\n req = requirejs = function requirejs2(deps, callback, errback, optional) {\n var context, config, contextName = defContextName;\n if (!isArray(deps) && typeof deps !== \"string\") {\n config = deps;\n if (isArray(callback)) {\n deps = callback;\n callback = errback;\n errback = optional;\n } else {\n deps = [];\n }\n }\n if (config && config.context) {\n contextName = config.context;\n }\n context = getOwn(contexts, contextName);\n if (!context) {\n context = contexts[contextName] = req.s.newContext(contextName);\n }\n if (config) {\n context.configure(config);\n }\n return context.require(deps, callback, errback);\n };\n req.config = function(config) {\n return req(config);\n };\n req.nextTick = typeof setTimeout !== \"undefined\" ? function(fn) {\n setTimeout(fn, 4);\n } : function(fn) {\n fn();\n };\n if (!require) {\n require = req;\n }\n req.version = version;\n req.jsExtRegExp = /^\\/|:|\\?|\\.js$/;\n req.isBrowser = isBrowser;\n s = req.s = {\n contexts,\n newContext\n };\n req({});\n each([\"toUrl\", \"undef\", \"defined\", \"specified\"], function(prop) {\n req[prop] = function() {\n var ctx = contexts[defContextName];\n return ctx.require[prop].apply(ctx, arguments);\n };\n });\n if (isBrowser) {\n head = s.head = document.getElementsByTagName(\"head\")[0];\n baseElement = document.getElementsByTagName(\"base\")[0];\n if (baseElement) {\n head = s.head = baseElement.parentNode;\n }\n }\n req.onError = defaultOnError;\n req.createNode = function(config, moduleName, url) {\n var node = config.xhtml ? document.createElementNS(\"http://www.w3.org/1999/xhtml\", \"html:script\") : document.createElement(\"script\");\n node.type = config.scriptType || \"text/javascript\";\n node.charset = \"utf-8\";\n node.async = true;\n return node;\n };\n req.load = function(context, moduleName, url) {\n var config = context && context.config || {}, node;\n if (isBrowser) {\n node = req.createNode(config, moduleName, url);\n node.setAttribute(\"data-requirecontext\", context.contextName);\n node.setAttribute(\"data-requiremodule\", moduleName);\n if (node.attachEvent && //Check if node.attachEvent is artificially added by custom script or\n //natively supported by browser\n //read https://github.com/requirejs/requirejs/issues/187\n //if we can NOT find [native code] then it must NOT natively supported.\n //in IE8, node.attachEvent does not have toString()\n //Note the test for \"[native code\" with no closing brace, see:\n //https://github.com/requirejs/requirejs/issues/273\n !(node.attachEvent.toString && node.attachEvent.toString().indexOf(\"[native code\") < 0) && !isOpera) {\n useInteractive = true;\n node.attachEvent(\"onreadystatechange\", context.onScriptLoad);\n } else {\n node.addEventListener(\"load\", context.onScriptLoad, false);\n node.addEventListener(\"error\", context.onScriptError, false);\n }\n if (importMaps[moduleName]) {\n context.onScriptLoad({ id: moduleName, node: req.createNode(config, moduleName, url), type: \"noload\" });\n } else\n node.src = url;\n if (config.onNodeCreated) {\n config.onNodeCreated(node, config, moduleName, url);\n }\n currentlyAddingScript = node;\n if (baseElement) {\n head.insertBefore(node, baseElement);\n } else {\n head.appendChild(node);\n }\n currentlyAddingScript = null;\n return node;\n } else if (isWebWorker) {\n try {\n setTimeout(function() {\n }, 0);\n importScripts(url);\n context.completeLoad(moduleName);\n } catch (e) {\n context.onError(makeError(\"importscripts\", \"importScripts failed for \" + moduleName + \" at \" + url, e, [moduleName]));\n }\n }\n };\n function getInteractiveScript() {\n if (interactiveScript && interactiveScript.readyState === \"interactive\") {\n return interactiveScript;\n }\n eachReverse(scripts(), function(script) {\n if (script.readyState === \"interactive\") {\n return interactiveScript = script;\n }\n });\n return interactiveScript;\n }\n if (isBrowser && !cfg.skipDataMain) {\n eachReverse(scripts(), function(script) {\n if (!head) {\n head = script.parentNode;\n }\n dataMain = script.getAttribute(\"data-main\");\n if (dataMain) {\n mainScript = dataMain;\n if (!cfg.baseUrl && mainScript.indexOf(\"!\") === -1) {\n src = mainScript.split(\"/\");\n mainScript = src.pop();\n subPath = src.length ? src.join(\"/\") + \"/\" : \"./\";\n cfg.baseUrl = subPath;\n }\n mainScript = mainScript.replace(jsSuffixRegExp, \"\");\n if (req.jsExtRegExp.test(mainScript)) {\n mainScript = dataMain;\n }\n cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];\n return true;\n }\n });\n }\n define = function define2(name, re, callback) {\n var _deps = function deps() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _deps.forEach(function(k, i) {\n if (importMaps[k]) {\n var r = importMaps[k];\n args[i] = r;\n }\n });\n return re.apply(this, args);\n };\n var node, context;\n if (typeof name !== \"string\") {\n callback = _deps;\n _deps = name;\n name = null;\n }\n if (!isArray(_deps)) {\n callback = _deps;\n _deps = null;\n }\n if (!_deps && isFunction(callback)) {\n _deps = [];\n if (callback.length) {\n callback.toString().replace(commentRegExp, commentReplace).replace(cjsRequireRegExp, function(match, dep) {\n _deps.push(dep);\n });\n _deps = (callback.length === 1 ? [\"require\"] : [\"require\", \"exports\", \"module\"]).concat(_deps);\n }\n }\n if (useInteractive) {\n node = currentlyAddingScript || getInteractiveScript();\n if (node) {\n if (!name) {\n name = node.getAttribute(\"data-requiremodule\");\n }\n context = contexts[node.getAttribute(\"data-requirecontext\")];\n }\n }\n if (context) {\n context.defQueue.push([name, _deps, callback]);\n context.defQueueMap[name] = true;\n } else {\n globalDefQueue.push([name, _deps, callback]);\n }\n };\n define.amd = {\n jQuery: true\n };\n req.exec = function(text) {\n return eval(text);\n };\n req(cfg);\n return {\n requirejs,\n require,\n define\n };\n}\n\n// src/utils/i18n.ts\nvar locale = {\n zh: {\n require: \"{label}\\u4E0D\\u80FD\\u4E3A\\u7A7A\",\n noErrorMsg: \"\\u672A\\u8BBE\\u7F6E\\u9519\\u8BEF\\u63D0\\u793A\"\n },\n en: {\n require: \"{label} is required\",\n noErrorMsg: \"Error message not set\"\n }\n};\nlocale.zh_CN = locale.zh;\nlocale.en_US = locale.en;\nlocale[\"zh-CN\"] = locale.zh;\nlocale[\"en-US\"] = locale.en;\nvar i18n_default = locale;\n\n// src/core/index.ts\nvar Core = class {\n /**\n * Core初始化构造函数\n * @param {CoreConfig}\n * @param importMaps 依赖对象导入\n */\n constructor({\n runtime,\n runtimeMapping,\n service,\n cdnUrl,\n cdnPath,\n modUrl,\n modPath,\n pageUrl,\n pagePath,\n staticUrl,\n importMaps: importMaps2,\n basicsType,\n defaultFormAttr,\n importModules,\n i18n,\n localeMapping,\n localeDefault,\n message = {},\n argv\n }) {\n // 全局配置\n this.runtime = true;\n this.runtimeMapping = {\n drop: \"dropruntime\",\n drag: \"dragruntime\"\n };\n this.service = \"\";\n this.cdnPath = \"/lib\";\n this.modPath = \"/package\";\n this.pageUrl = \"\";\n this.pagePath = \"/page\";\n this.importMaps = {};\n // 基础模块分类名\n this.basicsType = \"basics\";\n // 全局组件map对象,同一个core实例加载的snack模块都将在此对象中\n this.moduleMaps = {};\n // 全局公共存储对象,不同组件内可共享数据\n this.global = {};\n this.message = {};\n // 国际化数据\n this.i18n = i18n_default;\n // 全局默认配置\n this.defaultFormAttr = {\n passwordFlag: true,\n hideNoSubmit: true,\n verifyOnEvents: [\"onChange\", \"onBlur\"],\n verifyASTime: 300\n };\n // 本地缓存snack模块class\n this.importModules = {};\n // 国际化转换关系\n this.localeMapping = {};\n this.localeDefault = \"zh\";\n this.argv = {};\n /**\n * 事件存储对象\n * @private\n */\n this.eventList = {};\n this.loadingPromises = /* @__PURE__ */ new Map();\n /**\n * 全局Snack模块语言切换方法\n * @param l 语言,默认 'zh'\n */\n this.language = (l = window.localStorage.getItem(\"language\") || \"zh\") => {\n Object.values(this.moduleMaps).forEach((item) => item?.$language(l));\n };\n this.exprRegx = /{{(.*?)}}/g;\n if (runtime !== void 0)\n this.runtime = runtime;\n if (runtimeMapping !== void 0)\n this.runtimeMapping = runtimeMapping;\n if (service !== void 0)\n this.service = service;\n if (cdnPath !== void 0)\n this.cdnPath = cdnPath;\n if (modPath !== void 0)\n this.modPath = modPath;\n if (pagePath !== void 0)\n this.pagePath = pagePath;\n if (defaultFormAttr !== void 0)\n this.defaultFormAttr = {\n ...this.defaultFormAttr,\n ...defaultFormAttr\n };\n this.pageUrl = pageUrl || this.service + this.pagePath;\n this.staticUrl = staticUrl;\n if (importMaps2)\n this.importMaps = importMaps2;\n if (basicsType !== void 0)\n this.basicsType = basicsType;\n if (typeof importModules === \"object\")\n this.importModules = importModules;\n if (typeof i18n === \"object\")\n this.setI18n(i18n);\n if (typeof localeMapping === \"object\")\n this.localeMapping = localeMapping;\n if (typeof localeDefault === \"string\")\n this.localeDefault = localeDefault;\n if (typeof localeMapping === \"object\")\n this.message = message;\n if (typeof argv === \"object\")\n this.argv = argv;\n const { require: require2, define: define2 } = _default(this, importMaps2);\n this.require = require2;\n this.define = define2;\n window.snackdefine = define2;\n }\n /**\n * 注册事件\n * @param eventName 事件名称\n * @param cb 事件回调函数\n */\n addEvent(eventName, cb) {\n if (!this.eventList[eventName]) this.eventList[eventName] = [];\n if (this.eventList[eventName].indexOf(cb) === -1) {\n this.eventList[eventName].push(cb);\n return true;\n }\n return false;\n }\n /**\n * 移除事件\n * @param eventName 事件名称\n * @param cb 解除绑定的事件回调\n */\n removeEvent(eventName, cb) {\n if (!this.eventList[eventName]) return false;\n if (!cb) delete this.eventList[eventName];\n const index = this.eventList[eventName].indexOf(cb);\n if (index === -1) return false;\n this.eventList[eventName].splice(index, 1);\n return true;\n }\n /**\n * 发送事件\n * @param eventName 事件名称\n * @param args 事件方法参数\n */\n sendEvent(eventName, args) {\n if (this.eventList[eventName] instanceof Array) {\n this.eventList[eventName].forEach((event) => {\n event.apply(this, args);\n return true;\n });\n }\n return false;\n }\n /**\n * 按模块名称加载模块\n * @param {LoadModuleConfig}\n * @param callback 回调方法,存在该参数则Promises失效\n * @return Snack 模块键值对 {snackName:snackClass}\n */\n async module({\n module: module2,\n service = this.service,\n cdnUrl,\n cdnPath = this.cdnPath,\n modUrl,\n modPath = this.modPath,\n staticUrl = this.staticUrl,\n importMaps: importMaps2,\n config = {}\n }, callback) {\n if (!(module2 instanceof Array) && typeof module2 === \"object\")\n module2 = [module2];\n if (cdnUrl === void 0)\n cdnUrl = this.cdnUrl ?? service + cdnPath;\n if (modUrl === void 0)\n modUrl = this.modUrl ?? service + modPath;\n if (modUrl === void 0) return console.error('SnackCore: param \"modUrl\" is missing');\n if (cdnUrl !== void 0)\n config.baseUrl = cdnUrl;\n if (staticUrl !== void 0)\n config.staticUrl = staticUrl;\n let snack = {};\n for (let i = 0, l = module2.length; i < l; i++) {\n let { type = \"\", name, setting, config: modConfig } = module2[i];\n name = name.toLowerCase();\n const cache = this.importModules[type]?.[name];\n if (cache) {\n snack[name] = cache;\n if (setting) {\n const cacheSetting = this.importModules[type]?.[name + \"setting\"];\n if (cacheSetting)\n snack[name + \"setting\"] = cacheSetting;\n }\n } else {\n if (type && typeof type === \"string\")\n type = `/${type}`;\n if (modConfig)\n modConfig = { ...config, ...modConfig };\n else\n modConfig = config;\n const mods = await this.load({\n url: `${modUrl}${type || \"\"}/${this.runtime ? this.runtimeMapping[name] || name : name}${setting ? \"/setting\" : \"\"}/index.js`,\n config: modConfig,\n importMaps: importMaps2\n });\n if (mods instanceof Error)\n continue;\n snack = this.addSnack(snack, mods);\n }\n }\n if (callback) callback(snack);\n return snack;\n }\n /**\n * 按模块地址加载模块\n * @param {LoadModuleURLConfig}\n * @param callback 回调方法,存在该参数则Promises失效\n * @return Snack 模块键值对 {snackName:snackClass}\n */\n async moduleURL({\n urls,\n cdnUrl,\n staticUrl = this.staticUrl,\n importMaps: importMaps2,\n config = {}\n }, callback) {\n if (typeof urls === \"string\") urls = [urls];\n if (cdnUrl === void 0)\n cdnUrl = this.cdnUrl ?? this.service + this.cdnPath;\n if (cdnUrl !== void 0)\n config.baseUrl = cdnUrl;\n if (staticUrl !== void 0)\n config.staticUrl = staticUrl;\n let snack = {};\n for (let i = 0, l = urls.length; i < l; i++) {\n const url = urls[i];\n const mods = await this.load({ url, config, importMaps: importMaps2 });\n if (mods instanceof Error)\n return null;\n snack = this.addSnack(snack, mods);\n }\n if (callback) callback(snack);\n return snack;\n }\n // 合并模块类对象,所有模块key均为小写\n addSnack(snack, e) {\n Object.keys(e).forEach((name) => {\n if (name === \"default\") return true;\n const key = name.toLowerCase();\n if (snack[key]) {\n console.warn(`Warn Snack-Core Module: ${name} has existed `);\n return true;\n }\n snack[key] = e[name];\n });\n return snack;\n }\n /**\n * umd模块加载方法\n * @param {LoadConfig} snack模块js地址\n * @return Snack 模块类对象\n */\n load({ url, config, importMaps: importMaps2 }) {\n const cacheKey = url;\n if (this.loadingPromises.has(cacheKey)) {\n return this.loadingPromises.get(cacheKey);\n }\n const promise = new Promise((callback) => {\n try {\n let require2;\n if (importMaps2) {\n const newRequire = _default(this, this.importMaps);\n require2 = newRequire.require;\n } else\n require2 = this.require;\n if (config)\n require2.config(config);\n const pathArr = url.split(\"/\");\n pathArr.pop();\n if (/setting\\/index.js$/.test(url)) pathArr.pop();\n const modName = pathArr.pop();\n const modType = pathArr.pop();\n window[`__snack_static_${modType}__`] = config?.staticUrl || `${pathArr.join(\"/\")}/${modType}/`;\n require2([url], (e) => {\n if (!e)\n console.error(`SnackCore load module fail: `, url);\n callback(e);\n }, (err) => {\n console.error(`SnackCore load module error: `, err);\n callback(err);\n });\n } catch (e) {\n callback({});\n }\n }).finally(() => {\n this.loadingPromises.delete(cacheKey);\n });\n this.loadingPromises.set(cacheKey, promise);\n return promise;\n }\n /**\n * 移除模块\n * @param id snack模块的 $id\n * @param forceUpdate 是否调用$forceUpdate\n */\n remove(id, forceUpdate = true) {\n if (!id || !this.moduleMaps[id]) return false;\n const parent = this.moduleMaps[id]?.data?.parent;\n if (this.moduleMaps[id]) {\n this.moduleMaps[id]?.$destroy();\n this.moduleMaps[id] = null;\n delete this.moduleMaps[id];\n }\n if (parent) {\n parent.removeChild?.(id);\n if (forceUpdate)\n parent.$forceUpdate?.();\n }\n this.sendEvent(\"onRemove\", [id]);\n }\n /**\n * 清空挂载在sdk内的所有模块\n * @param forceUpdate 是否调用$forceUpdate\n */\n empty(forceUpdate = true) {\n Object.keys(this.moduleMaps).forEach((id) => {\n this.remove(id, forceUpdate);\n });\n }\n /**\n * 国际化数据导入\n * @param data\n */\n setI18n(data) {\n Object.keys(data).forEach((lang) => {\n if (!this.i18n[lang])\n this.i18n[lang] = data[lang];\n else\n this.i18n[lang] = {\n ...this.i18n[lang],\n ...data[lang]\n };\n });\n }\n /**\n * 获取国际化文本\n * @param ops\n * @param params\n */\n intl(ops, params) {\n return i18nIntl(this, ops, this.i18n, params, void 0, this.i18n);\n }\n /**\n * 组件数据解析表达式\n * @param data\n */\n exprParseByData(data) {\n if (!data) return data;\n if (data?.data?.D) {\n const { expr, data: D } = this.checkHasExpr(data.data.D);\n if (expr) {\n this.recursiveParseJson(D, this.getExprArgv(data.data.D.style));\n data.data.D = D;\n }\n }\n if (data?.data?.M) {\n const { expr, data: M } = this.checkHasExpr(data.data.M);\n if (expr) {\n this.recursiveParseJson(M, this.getExprArgv(data.data.M));\n data.data.M = M;\n }\n }\n return data;\n }\n checkHasExpr(data) {\n if (typeof data !== \"object\") return { expr: false, data };\n try {\n const str = JSON.stringify(data);\n if (this.exprRegx.test(str)) return { expr: true, data: JSON.parse(str) };\n } catch {\n }\n return { expr: false, data };\n }\n evaluateExpression(expression, context) {\n try {\n return new Function(\"$\", `var data = $.data; return ${expression}`)(context);\n } catch (error) {\n console.error(`Error evaluating expression: ${expression}`, error);\n return `${expression}:${error.message}`;\n }\n }\n processTemplateString(template, context) {\n const regex = this.exprRegx;\n return template.replace(regex, (_, expr) => {\n const result = this.evaluateExpression(expr.trim(), context);\n return result !== void 0 ? result : \"\";\n });\n }\n recursiveParseJson(obj, context, filterPrototype = false) {\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n if (filterPrototype) {\n try {\n JSON.stringify(obj[key]);\n } catch {\n continue;\n }\n }\n if (typeof obj[key] === \"object\" && obj[key] !== null) {\n this.recursiveParseJson(obj[key], context, filterPrototype);\n } else if (typeof obj[key] === \"string\") {\n try {\n obj[key] = this.processTemplateString(obj[key], context);\n } catch {\n }\n }\n }\n }\n return obj;\n }\n /**\n * 表达式入参\n */\n getExprArgv(data) {\n return {\n argv: this.argv,\n sdk: this,\n data\n };\n }\n};\nvar core_default = Core;\n\n// src/sdk/index.tsx\nvar import_react5 = __toESM(require(\"react\"));\nvar import_lib3 = require(\"@paraview/lib\");\n\n// src/sdk/renderSnack.tsx\nvar renderSnackPage = (props, formatData, onComplete) => {\n let {\n root,\n filter,\n drop,\n sdk,\n content\n } = props;\n const {\n rootProps,\n rules,\n data,\n snackPageEvent\n } = props.config;\n if (!root) {\n const props2 = rootProps || {};\n if (!props2.$snackSDK)\n props2.$snackSDK = sdk;\n if (props2.style && content?.module?.data?.M?.style) {\n props2.style = {\n ...props2.style,\n ...content?.module?.data?.M?.style\n };\n } else\n props2.style = content?.module?.data?.M?.style;\n root = new drop(props2);\n }\n const children = [];\n const childrenMaps = {};\n const fields = {};\n const completeEvent = {\n fields,\n children,\n childrenMaps\n };\n if (!content) {\n setTimeout(() => onComplete && onComplete(completeEvent), 0);\n return null;\n }\n let childCount = 0;\n const loopRender = async (parentObj, arr) => {\n if (!arr || arr.length === 0) return;\n for (let i = 0, l = arr.length; i < l; i++) {\n const item = arr[i];\n let formAttr = item.module?.data?.M.formAttr;\n if (sdk.defaultFormAttr && formAttr) {\n item.module.data.M.formAttr = formAttr = {\n ...sdk.defaultFormAttr,\n ...formAttr\n };\n }\n if (formAttr) {\n const { field } = formAttr;\n if (filter && filter.indexOf(String(formAttr.field)) !== -1) {\n if (childCount === 0) {\n onComplete && onComplete(completeEvent);\n }\n continue;\n }\n if (rules && field && rules[field] !== void 0) {\n const rule = rules[field];\n if (rule.hide === true) continue;\n if (rule.disabled === true)\n formAttr.disabled = true;\n }\n }\n let moduleData = formatData ? formatData(item.module, fields) || item.module : item.module;\n childCount++;\n if (!moduleData.data)\n moduleData.data = { D: {}, M: {} };\n if (!moduleData.data.D)\n moduleData.data.D = {};\n moduleData.data.D.key = item.key;\n if (sdk.runtime) {\n const exprParseData = sdk.exprParseByData(moduleData);\n if (exprParseData)\n moduleData = exprParseData;\n }\n const onCreateBeforeEvent = moduleData.data?.M.eventScripts?.onCreateBefore;\n if (onCreateBeforeEvent && sdk.runtime && moduleData.data) {\n evalJS_default.call(\n sdk,\n \"onCreateBefore\",\n onCreateBeforeEvent.script,\n {\n $this: { data: moduleData.data.M },\n $fields: snackPageEvent?.fields,\n $children: snackPageEvent?.childrenMaps,\n $verify: snackPageEvent?.verify,\n $defaultData: data,\n $defaultModuleData: moduleData.data.M,\n $defaultStyle: moduleData.data.D?.style || {},\n $defaultDisplay: (b = true) => {\n if (!moduleData.data) return;\n if (!b) {\n moduleData.data.D.style.display = \"none\";\n if (moduleData.data.M?.formAttr)\n moduleData.data.M.formAttr.disabled = true;\n } else {\n moduleData.data.D.style.display = \"\";\n if (moduleData.data.M?.formAttr)\n moduleData.data.M.formAttr.disabled = false;\n }\n },\n $message: sdk.message\n }\n );\n }\n await parentObj.append(moduleData, (child) => {\n if (!child || !child.M) return console.error(\"SnackCore render module error\");\n const { formAttr: formAttr2 } = child.M.data;\n child.M.$parent = child.D;\n child.M.$page = snackPageEvent;\n child.D.$page = snackPageEvent;\n childCount--;\n children.push(child);\n const key = child.D?.data?.key;\n if (key)\n childrenMaps[key] = child;\n if (formAttr2 && formAttr2.field)\n fields[formAttr2.field] = child;\n if (item.isContainer) {\n const parentBoxArr = child?.M?.children || [];\n const boxConfig = item.children || [];\n for (let j = 0, k = parentBoxArr.length; j < k; j++) {\n const parentBoxDetail = parentBoxArr[j];\n const boxConfigDetail = boxConfig[j];\n if (boxConfigDetail.children && boxConfigDetail.children.length > 0)\n loopRender(parentBoxDetail, boxConfigDetail.children);\n else if (childCount === 0) {\n onComplete && onComplete(completeEvent);\n }\n }\n } else if (childCount === 0) {\n onComplete && onComplete(completeEvent);\n }\n });\n }\n parentObj.$forceUpdate();\n };\n setTimeout(async () => {\n if (root) {\n const children2 = content && content.children;\n if (!children2 || children2.length === 0) {\n return onComplete && onComplete(completeEvent);\n }\n loopRender(root, children2);\n }\n }, 0);\n return root;\n};\n\n// src/utils/verifyJS.tsx\nasync function verifyJS_default(formatAargs, M) {\n const sdk = this;\n const { fields, defaultData, childrenMaps } = formatAargs;\n if (M.data.error) {\n M.data.error = false;\n M.data.helperText = \"\";\n M.$forceUpdate();\n }\n let { value } = M.data || {};\n let {\n verifyRules,\n // 正则校验\n verifyJS,\n // 自定义js脚本校验\n required,\n // 是否必填\n notEmptyObject,\n // 非空对象\n disabled,\n // 是否禁用\n trimValue,\n // 是否trim value\n skipRegx = false\n } = M.data.formAttr || {};\n if (typeof value === \"string\" && trimValue !== false)\n value = value.trim();\n if (disabled === true) return true;\n const locale2 = getLocale(sdk);\n let label = \"\";\n const field = M.data?.formAttr?.field;\n switch (typeof M.data.label) {\n case \"object\":\n label = M.data.label[locale2] || M.data.label[\"zh\"] || M.data.label[\"zh-CN\"];\n if (!label) {\n const values = Object.values(M.data.label);\n if (values.length === 1 && typeof values[0] === \"string\")\n label = values[0];\n else if (field)\n label = field;\n else {\n label = \"\";\n console.warn(\"SnackCore: \\u6821\\u9A8C\\u5B57\\u6BB5\\u56FD\\u9645\\u5316\\u6807\\u9898\\u672A\\u5339\\u914D\\u5230\\u53EF\\u7528\\u7684\\u6587\\u672C\", M.data);\n }\n }\n break;\n case \"string\":\n label = M.data.label;\n break;\n }\n let isEmpty = value === void 0 || value === null || value === \"\";\n if (required === true) {\n if (!isEmpty && notEmptyObject) isEmpty = isEmptyObject(value);\n if (isEmpty) {\n const requireText = sdk.intl({ id: \"require\" }, { label });\n M.data.error = true;\n M.data.helperText = requireText;\n M.$forceUpdate();\n return false;\n }\n }\n if (!isEmpty && !skipRegx && verifyRules && verifyRules.length > 0) {\n let passCount = 0;\n const errorTexts = [];\n const mustMatchErrorTexts = [];\n for (let i = 0, l = verifyRules.length; i < l; i++) {\n const rule = verifyRules[i];\n let error = false;\n if (rule.regExp) {\n try {\n error = !new RegExp(rule.regExp).test(value);\n } catch (err) {\n console.error(`SnackCore: verify 'rule.regExp' is Error\\uFF1A`, rule);\n }\n }\n if (error) {\n const baseLocale = locale2?.split(\"-\")[0];\n const errorText = typeof rule.erorText === \"object\" ? rule.erorText[locale2] || rule.erorText[baseLocale] || rule.erorText[\"zh\"] || \"\" : rule.erorText || sdk.intl(\"noErrorMsg\");\n if (rule.mustMatch)\n mustMatchErrorTexts.push(errorText);\n else\n errorTexts.push(errorText);\n } else if (!rule.mustMatch)\n passCount++;\n }\n if (mustMatchErrorTexts.length > 0) {\n M.data.error = true;\n M.data.helperText = mustMatchErrorTexts.join(\"\\u3001\");\n M.$forceUpdate();\n return false;\n }\n if (passCount === 0 && errorTexts.length > 0) {\n M.data.error = true;\n M.data.helperText = errorTexts.join(\"\\u3001\");\n M.$forceUpdate();\n return false;\n }\n }\n if (verifyJS && typeof verifyJS === \"string\") {\n const e = await new Promise(($cb) => {\n evalJS_default.call(\n sdk,\n \"verifyJS\",\n String(verifyJS),\n // 脚本参数\n {\n $cb,\n $this: M,\n $fields: fields,\n $children: childrenMaps,\n $defaultData: defaultData,\n $message: sdk.message\n }\n );\n });\n if (typeof e === \"boolean\") {\n if (!e) {\n M.data.error = true;\n M.data.helperText = \"\";\n M.$forceUpdate();\n }\n return e;\n }\n if (typeof e === \"object\" && e.error !== void 0) {\n M.data.error = e.error;\n M.data.helperText = e.helperText || \"\";\n M.$forceUpdate();\n return !e.error;\n }\n }\n return true;\n}\n\n// src/components/error/index.tsx\nvar import_react4 = __toESM(require(\"react\"));\nvar icon = /* @__PURE__ */ import_react4.default.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"45\", height: \"45\", viewBox: \"0 0 60 60\" }, /* @__PURE__ */ import_react4.default.createElement(\"g\", { id: \"\\u7EC4_6340\", \"data-name\": \"\\u7EC4 6340\", transform: \"translate(-148.761 -452.761)\" }, /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4067\",\n \"data-name\": \"\\u8DEF\\u5F84 4067\",\n d: \"M215.4,636.518s7.916-2.192,8.4,4.872-6.516,9.073-1.035,10.474\",\n transform: \"translate(-65.631 -152.87)\",\n fill: \"none\",\n stroke: \"#1890ff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4068\",\n \"data-name\": \"\\u8DEF\\u5F84 4068\",\n d: \"M341,354.932s25.071-4.858,26.613,10.8-20.635,20.106-3.278,23.21\",\n transform: \"translate(-161.052 113.005)\",\n fill: \"none\",\n stroke: \"#1890ff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\"g\", { id: \"\\u7EC4_6339\", \"data-name\": \"\\u7EC4 6339\", transform: \"translate(152.898 457.351)\" }, /* @__PURE__ */ import_react4.default.createElement(\n \"circle\",\n {\n id: \"\\u692D\\u5706_122\",\n \"data-name\": \"\\u692D\\u5706 122\",\n cx: \"20.43\",\n cy: \"20.43\",\n r: \"20.43\",\n transform: \"translate(6.239 4.274)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"rect\",\n {\n id: \"\\u77E9\\u5F62_19572\",\n \"data-name\": \"\\u77E9\\u5F62 19572\",\n width: \"6.207\",\n height: \"11.12\",\n transform: \"translate(17.359 37.479)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"rect\",\n {\n id: \"\\u77E9\\u5F62_19573\",\n \"data-name\": \"\\u77E9\\u5F62 19573\",\n width: \"6.207\",\n height: \"11.12\",\n transform: \"translate(29.773 37.479)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_123\",\n \"data-name\": \"\\u692D\\u5706 123\",\n cx: \"5.172\",\n cy: \"1.94\",\n rx: \"5.172\",\n ry: \"1.94\",\n transform: \"translate(17.359 46.789)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_124\",\n \"data-name\": \"\\u692D\\u5706 124\",\n cx: \"5.172\",\n cy: \"1.94\",\n rx: \"5.172\",\n ry: \"1.94\",\n transform: \"translate(29.773 46.53)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"circle\",\n {\n id: \"\\u692D\\u5706_125\",\n \"data-name\": \"\\u692D\\u5706 125\",\n cx: \"6.983\",\n cy: \"6.983\",\n r: \"6.983\",\n transform: \"translate(20.204 12.55)\",\n fill: \"#fff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"circle\",\n {\n id: \"\\u692D\\u5706_126\",\n \"data-name\": \"\\u692D\\u5706 126\",\n cx: \"2.328\",\n cy: \"2.328\",\n r: \"2.328\",\n transform: \"translate(24.859 17.205)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4065\",\n \"data-name\": \"\\u8DEF\\u5F84 4065\",\n d: \"M.151,8.554c-.826-3.7,1.815-7.44,5.9-8.352s8.066,1.349,8.892,5.049-1.881,5.066-5.966,5.978S.978,12.255.151,8.554Z\",\n transform: \"matrix(0.978, -0.208, 0.208, 0.978, 7.651, 3.138)\",\n fill: \"#1890ff\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_127\",\n \"data-name\": \"\\u692D\\u5706 127\",\n cx: \"10.215\",\n cy: \"3.207\",\n rx: \"10.215\",\n ry: \"3.207\",\n transform: \"translate(33.916 18.752) rotate(-23.171)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"ellipse\",\n {\n id: \"\\u692D\\u5706_128\",\n \"data-name\": \"\\u692D\\u5706 128\",\n cx: \"7.845\",\n cy: \"3.207\",\n rx: \"7.845\",\n ry: \"3.207\",\n transform: \"translate(0 30.593) rotate(-23.171)\",\n fill: \"#2f2e43\"\n }\n), /* @__PURE__ */ import_react4.default.createElement(\n \"path\",\n {\n id: \"\\u8DEF\\u5F84_4070\",\n \"data-name\": \"\\u8DEF\\u5F84 4070\",\n d: \"M6158.75,270.307s2.22-3.117,7.245-1.386\",\n transform: \"translate(-6131.563 -236.834)\",\n fill: \"none\",\n stroke: \"#fff\"\n }\n)), /* @__PURE__ */ import_react4.default.createElement(\n \"rect\",\n {\n id: \"\\u77E9\\u5F62_19576\",\n \"data-name\": \"\\u77E9\\u5F62 19576\",\n width: \"60\",\n height: \"60\",\n transform: \"translate(148.761 452.761)\",\n fill: \"none\"\n }\n)));\nvar Error2 = (props) => {\n return /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error\" }, /* @__PURE__ */ import_react4.default.createElement(\"span\", { className: \"snack-core-error-icon\" }, icon), /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error-content\" }, /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error-msg\" }, props.content || \"\\u62B1\\u6B49\\uFF0C\\u9875\\u9762\\u6216\\u6A21\\u5757\\u6E32\\u67D3\\u51FA\\u73B0\\u4E86\\u9519\\u8BEF\"), props.sub ? /* @__PURE__ */ import_react4.default.createElement(\"div\", { className: \"snack-core-error-sub\" }, props.sub) : null));\n};\nvar error_default = Error2;\n\n// src/sdk/index.tsx\nvar import_client = require(\"react-dom/client\");\nvar SnackSDK = class extends core_default {\n constructor(config) {\n super(config);\n this.verifyTimeout = {};\n }\n /**\n * 创建Snack模块实例\n * @param snackClass Snack模块Class\n * @param main 如果创建的是setting模块则需要传入main主模块Snack对象\n * @param data\n */\n async createModule({ main, name, type, setting = false }, data = {}) {\n const e = await this.module({\n module: [{ name, type, setting }]\n });\n if (setting) name += \"setting\";\n if (!e[name]) return null;\n if (!data.$snackSDK) data.$snackSDK = this;\n let mod;\n if (setting || main) mod = new e[name](main, data);\n else mod = new e[name](data);\n return mod;\n }\n /**\n * 渲染设计器页面\n * @param params {SnackPageParams | SnackPageData} 页面加载参数 参数非法则创建空容器\n * @param config {RenderPageConfig} 页面渲染参数\n * @param root 根容器\n * @param filter 过滤渲染组件列表\n * @private\n */\n async createPage(params, config = {}, root, filter) {\n let pageData;\n let pageContent;\n const { drop } = await this.module({\n module: [{ name: \"drop\", type: this.basicsType }]\n });\n if (params) {\n if (params.content) {\n pageData = this.pageContentDecode(params);\n } else if (params.id) {\n pageData = await this.getPage(params);\n if (pageData) pageData = this.pageContentDecode(pageData);\n else {\n pageData = { content: { children: [] }, id: \"err\", name: \"err page\" };\n console.error(\n \"SnackCore\\uFF1A\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25\\uFF0Cid:\",\n params.id,\n \"type:\",\n params.type\n );\n }\n }\n if (pageData) pageContent = pageData.content;\n }\n const ops = {\n root,\n config,\n filter,\n drop,\n sdk: this,\n content: pageContent\n };\n const content = renderSnackPage(\n ops,\n (moduleData, fields) => {\n return config.data && this.formatData(config.data, moduleData, fields);\n },\n config.onComplete\n );\n if (!content && params)\n return {\n content: {\n FC: () => /* @__PURE__ */ import_react5.default.createElement(\n error_default,\n {\n content: \"\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25\\u4E86\",\n sub: `id: ${params?.id} type: ${params?.type}`\n }\n )\n }\n };\n return { content, pageData };\n }\n // 校验限流计时器\n /**\n * 渲染多个页面,当页面为表单时会过滤相同字段的表单组件\n * @param params\n * @param config\n */\n async renderPage(params, config = {}) {\n const pages = params instanceof Array ? params : [params];\n let i = 0;\n let event = {\n children: [],\n fields: {},\n childrenMaps: {}\n };\n let root = null;\n const loadPage = async (filter) => {\n const param = pages[i];\n const { content, pageData } = await this.createPage(\n param,\n {\n snackPageEvent: event,\n ...config,\n onComplete: (e) => {\n event.pageData = pageData;\n event.children = [...event.children, ...e.children];\n event.fields = { ...event.fields, ...e.fields };\n event.childrenMaps = { ...event.childrenMaps, ...e.childrenMaps };\n i++;\n if (pages[i]) {\n loadPage(Object.keys(e.fields));\n } else {\n const formatArag = {\n rules: config.rules,\n fields: event.fields,\n childrenMaps: event.childrenMaps,\n defaultData: config.data,\n verify: (key) => this.formVerify(formatArag, key, pageData)\n };\n event.setData = (key, value) => this.formSetData(formatArag, key, value);\n event.getData = (key) => this.formGetData(formatArag, key);\n event.verify = formatArag.verify;\n event.empty = () => this.formEmpty(event.children);\n setTimeout(() => {\n this.sendEvent(\"onComplete\", [content, params]);\n }, 50);\n event.snackEventCallback = (e2) => {\n const parentKey = e2.target.$parent?.data?.key;\n if (!event.childrenMaps[parentKey]) return;\n const eventScripts = e2.target.data?.eventScripts;\n if (eventScripts && eventScripts[e2.name]) {\n const { script } = eventScripts[e2.name];\n evalJS_default.call(this, \"eventJS\", script, {\n $this: e2.target,\n $fields: event.fields,\n $children: event.childrenMaps,\n $verify: event.verify,\n $defaultData: config.data,\n $message: this.message\n });\n }\n const { field, verifyOnEvents, verifyASTime } = e2.target.data?.formAttr || {};\n if (!field || !event.verify) return;\n if (verifyOnEvents.indexOf(e2.name) !== -1) {\n if (this.verifyTimeout[e2.target.$id])\n clearTimeout(this.verifyTimeout[e2.target.$id]);\n this.verifyTimeout[e2.target.$id] = setTimeout(() => {\n event?.verify?.(field);\n delete this.verifyTimeout[e2.target.$id];\n }, verifyASTime || 300);\n }\n };\n event.destroy = () => this.destroy(event, content);\n this.addEvent(\"snack-event\", event.snackEventCallback);\n if (this.runtime) {\n for (let i2 = 0, l = event.children.length; i2 < l; i2++) {\n const child = event.children[i2];\n if (child.M) {\n this.sendEvent(\"snack-event\", [\n {\n name: \"onCreate\",\n target: child.M,\n value: child.M?.data?.value\n }\n ]);\n }\n }\n }\n config.onComplete?.(event, params);\n }\n }\n },\n root,\n filter\n );\n if (!root) root = content;\n return root;\n };\n return await loadPage();\n }\n /**\n * 卸载页面\n * @private\n */\n destroy(event, root) {\n if (!event) return;\n Object.keys(this.verifyTimeout).forEach((key) => clearTimeout(this.verifyTimeout[key]));\n this.verifyTimeout = {};\n if (event.snackEventCallback)\n this.removeEvent(\"snack-event\", event.snackEventCallback);\n Object.keys(event.childrenMaps).forEach((id) => {\n if (!event) return true;\n const child = event.childrenMaps[id];\n if (child.D) {\n this.remove(child.D.$id, false);\n child.D = null;\n child.DFC = null;\n }\n if (child.M) {\n this.remove(child.M.$id, false);\n child.M = null;\n child.MFC = null;\n }\n if (child.S) {\n this.remove(child.S.$id);\n child.S = null;\n child.SFC = null;\n }\n delete event.childrenMaps[id];\n });\n if (!root) return;\n this.remove(root.$id, false);\n root.data.children = [];\n root.$forceUpdate();\n event = null;\n root = null;\n }\n /**\n * 设置表单字段数据\n * @param formatArag\n * @param kv 所要设置的字段名,当value为空,key为对象则覆盖整个data对象\n * @param value 所要设置的字段值\n * @private\n */\n formSetData(formatArag, kv, value) {\n const { fields } = formatArag;\n const setValue = (f, value2) => {\n if (!kv || !fields[f]) return;\n const M = fields[f].M;\n M.data.value = value2;\n M.data.value = this.formFormatValue(M, formatArag);\n M.$forceUpdate();\n };\n if (typeof kv === \"object\") {\n Object.keys(fields).forEach((field) => {\n const val = kv[field];\n if (val !== void 0) setValue(field, val);\n });\n } else if (typeof kv === \"string\") setValue(kv, value);\n return true;\n }\n /**\n * 表单入参转换\n * @param M\n * @param verify\n * @param fields\n * @param defaultData\n * @param childrenMaps\n * @private\n */\n formFormatValue(M, { verify, fields, defaultData = {}, childrenMaps }) {\n let { formAttr, value } = M.data || {};\n const { inFormatJS } = formAttr || {};\n if (inFormatJS)\n value = evalJS_default.call(this, \"inFormatJS\", inFormatJS, {\n $this: M,\n $fields: fields,\n $verify: verify,\n $children: childrenMaps,\n $defaultData: defaultData,\n $message: this.message\n });\n return value;\n }\n /**\n * 获取表单数据\n * @param verify\n * @param childrenMaps\n * @param fields 表单字段对象\n * @param defaultData\n * @param key 指定获取字段值\n * @private\n */\n formGetData({ verify, childrenMaps, fields, defaultData = {} }, key) {\n const getValue = (f) => {\n const M = fields[f].M;\n let { formAttr, value } = M.data || {};\n const { field, noSubmit, outFormatJS } = formAttr || {};\n if (noSubmit || !field) return true;\n if (outFormatJS)\n value = evalJS_default.call(this, \"outFormatJS\", outFormatJS, {\n $this: M,\n $fields: fields,\n $verify: verify,\n $children: childrenMaps,\n $defaultData: defaultData,\n $message: this.message\n });\n if (typeof value === \"string\" && formAttr.trimValue !== false)\n value = value.trim();\n return value;\n };\n if (key) return getValue(key);\n const keys = Object.keys(fields);\n const newFormData = {};\n const password = [];\n keys.forEach((f) => {\n const { M, D } = fields[f] || {};\n if (!M || !D) return true;\n const { noSubmit, passwordFlag, hideNoSubmit } = M.data?.formAttr || {};\n if (noSubmit === true) return true;\n const isHide = D.data.style.display === \"none\";\n if (isHide && hideNoSubmit) return true;\n const value = getValue(f);\n if (passwordFlag === true && typeof value === \"string\" && fields[f].M?.data?.type === \"password\")\n password.push(f);\n if (f.indexOf(\".\") !== -1) {\n const farr = f.split(\".\");\n let last = newFormData;\n farr.forEach((f1, index) => {\n const isEnd = index === farr.length - 1;\n if (typeof last === \"object\" && !(last instanceof Array)) {\n if (last[f1] === void 0 || last[f1] === null) last[f1] = {};\n if (isEnd) last[f1] = value;\n else last = last[f1];\n }\n });\n } else newFormData[f] = value;\n });\n if (password.length > 0)\n newFormData[\"@password\"] = password;\n return newFormData;\n }\n /**\n * 表单校验\n * @private\n * @param formatArag\n * @param key\n * @param pageData\n */\n async formVerify(formatArag, key, pageData) {\n const { fields } = formatArag;\n const verify = async (f) => {\n const { M, D } = fields[f];\n const { hideNoSubmit } = M.data.formAttr || {};\n const isHide = D.data.style.display === \"none\";\n if (isHide && hideNoSubmit === true) return true;\n if (!M.data.formAttr) {\n console.error(\n `SnackCore: the SnackModule 'data.formAttr' is undefind`,\n M\n );\n return true;\n }\n return await verifyJS_default.call(this, formatArag, M);\n };\n if (key) return await verify(key);\n let pass = true;\n const keys = Object.keys(fields);\n for (let i = 0, l = keys.length; i < l; i++) {\n const check = await verify(keys[i]);\n if (!check) pass = false;\n }\n return pass;\n }\n /**\n * 清空表单填充数据\n * @param children\n * @private\n */\n formEmpty(children) {\n for (let i = 0, l = children.length; i < l; i++) {\n try {\n const child = children[i];\n let value;\n switch (typeof child.M.data.value) {\n case \"string\":\n value = \"\";\n break;\n case \"number\":\n value = 0;\n break;\n case \"object\":\n if (child.M.data.value instanceof Array) value = [];\n else value = {};\n break;\n case \"boolean\":\n value = false;\n break;\n default:\n value = null;\n }\n child.M.data.value = value;\n child.M.$forceUpdate();\n } catch (e) {\n console.warn(\"SnackCore empty form error\", e);\n return false;\n }\n }\n return true;\n }\n /**\n * 格式化Form入参数据\n * @param defaultData\n * @param moduleData 组件初始化入参\n * @param fields\n * @private\n */\n formatData(defaultData, moduleData, fields) {\n const field = moduleData.data?.M?.formAttr?.field;\n if (field !== void 0) {\n let value;\n if (field.indexOf(\".\") === -1) value = defaultData[field];\n else\n value = safeGet(defaultData, field);\n if (value !== void 0 && moduleData.data) {\n const defaultValue = value === \"object\" ? (0, import_lib3.DeepClone)(value) : value;\n moduleData.data.M.__defaultvalue = defaultValue;\n moduleData.data.M.value = value;\n moduleData.data.M.value = this.formFormatValue(\n { data: moduleData.data?.M },\n {\n fields,\n defaultData,\n childrenMaps: {}\n }\n );\n }\n }\n return moduleData;\n }\n /**\n * 解码页面内容base64\n * @param data\n */\n pageContentDecode(data) {\n if (typeof data.content === \"string\")\n data.content = (0, import_lib3.ToObject)(import_lib3.Base64.decode(data.content, true), null);\n return data;\n }\n /**\n * 获取页面数据\n */\n async getPage(params) {\n const { err, data } = await (0, import_lib3.Get)({\n url: `${this.pageUrl}/${params.type || \"_\"}/${params.id}.json`,\n global: true\n });\n if (err) {\n console.error(`Snack SDK: Get Page Data Error `, err);\n return null;\n }\n return data;\n }\n /**\n * 渲染设计器页面 - React FC组件\n * @param params {SnackPageConfig}\n * @param config {RenderPageConfig}\n */\n async createPageComponent(params, config = {}) {\n const root = await this.renderPage(\n params,\n config\n );\n if (!root) {\n console.error(\"SnackSDK: Create Page Error\", params);\n return () => /* @__PURE__ */ import_react5.default.createElement(\n error_default,\n {\n content: \"\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25\",\n info: JSON.stringify(params, null, 4)\n }\n );\n }\n return ((e) => root.FC(e));\n }\n /**\n * 渲染页面到dom元素内\n * @param el\n * @param params\n * @param config\n */\n async createPageForElement(el, params, config = {}) {\n const root = await this.renderPage(\n params,\n config\n );\n if (!root) {\n console.error(\"SnackSDK: Create Page Error\", params);\n el.innerHTML = \"<div>\\u9875\\u9762\\u6E32\\u67D3\\u5931\\u8D25</div>\";\n return null;\n }\n const Page = (e) => root.FC(e);\n const parent = (0, import_client.createRoot)(el);\n parent.render(/* @__PURE__ */ import_react5.default.createElement(Page, null));\n return Page;\n }\n /**\n * 渲染模块 - React FC组件\n * @param args 模块装载参数\n * @param data 模块初始数据\n */\n async createModuleComponent(args, data) {\n const mod = await this.createModule(args, data);\n if (!mod) {\n console.error(\"SnackSDK: Create Page Error\", args);\n return () => /* @__PURE__ */ import_react5.default.createElement(error_default, { content: \"\\u6A21\\u5757\\u6E32\\u67D3\\u5931\\u8D25\", info: JSON.stringify(args, null, 4) });\n }\n return ((e) => mod.FC(e));\n }\n /**\n * 渲染模块到dom元素内\n * @param el 所要渲染模块的容器\n * @param args 模块装载参数\n * @param data 模块初始数据\n */\n async createModuleForElement(el, args, data) {\n const mod = await this.createModule(args, data);\n if (!mod) {\n console.error(\"SnackSDK: Create Page Error\", args);\n el.innerHTML = \"<div>\\u6A21\\u5757\\u6E32\\u67D3\\u5931\\u8D25</div>\";\n return null;\n }\n const Module = (e) => mod.FC(e);\n const parent = (0, import_client.createRoot)(el);\n parent.render(/* @__PURE__ */ import_react5.default.createElement(Module, null));\n return mod;\n }\n /**\n * 通过模块Class渲染模块\n * @param SnackClass sanck 模块 Class\n * @param data snack对象参数\n * @param main 如果为设置模块,传入主模块对象\n */\n createClassModule(SnackClass, data, main) {\n if (data && !data.$snackSDK) data.$snackSDK = this;\n else if (!data) {\n data = { $snackSDK: this };\n }\n let mod;\n if (main !== void 0) mod = new SnackClass(main, data);\n else mod = new SnackClass(data);\n return mod;\n }\n /**\n * 通过模块Class渲染模块\n * @param SnackClass snack 模块 Class\n * @param data snack对象参数\n * @param main 如果为设置模块,传入主模块对象\n */\n createClassModuleComponent(SnackClass, data, main) {\n const mod = this.createClassModule(SnackClass, data, main);\n return ((e) => mod.FC(e));\n }\n};\nvar GetDefaultEvents = (language) => {\n return [\n {\n name: \"onCreateBefore\",\n label: language === \"en-US\" ? \"Before the component is initialized\" : \"\\u7EC4\\u4EF6\\u521D\\u59CB\\u5316\\u4E4B\\u524D\",\n default: true,\n verify: false\n },\n {\n name: \"onCreate\",\n label: language === \"en-US\" ? \"Component initialization\" : \"\\u7EC4\\u4EF6\\u521D\\u59CB\\u5316\",\n default: true\n },\n {\n name: \"onClick\",\n label: language === \"en-US\" ? \"click\" : \"\\u70B9\\u51FB\"\n },\n {\n name: \"onChange\",\n label: language === \"en-US\" ? \"Numeric changes\" : \"\\u6570\\u503C\\u53D8\\u66F4\"\n },\n {\n name: \"onFocus\",\n label: language === \"en-US\" ? \"Get focused\" : \"\\u83B7\\u5F97\\u7126\\u70B9\"\n },\n {\n name: \"onBlur\",\n label: language === \"en-US\" ? \"Loss of focus\" : \"\\u5931\\u53BB\\u7126\\u70B9\"\n },\n {\n name: \"onEnter\",\n label: language === \"en-US\" ? \"Enter\" : \"\\u56DE\\u8F66\"\n }\n ];\n};\n\n// src/components/loading/index.tsx\nvar import_react6 = __toESM(require(\"react\"));\nvar Loading = (props) => {\n const ref = import_react6.default.useRef(null);\n const [opacity, setOpacity] = import_react6.default.useState(0);\n import_react6.default.useEffect(() => {\n const timeout = setTimeout(() => {\n setOpacity(1);\n }, 500);\n return () => clearTimeout(timeout);\n }, []);\n return /* @__PURE__ */ import_react6.default.createElement(\"div\", { className: `snack-core-loading ${props.className || \"\"}`, ref, style: { opacity } }, /* @__PURE__ */ import_react6.default.createElement(\"div\", { className: \"spinner\" }));\n};\n\n// package.json\nvar package_default = {\n name: \"@snack-kit/core\",\n version: \"0.1.0\",\n main: \"dist/cjs/index.js\",\n module: \"dist/es/index.js\",\n typings: \"dist/types/index.d.ts\",\n exports: {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n import: \"./dist/es/index.js\",\n require: \"./dist/cjs/index.js\"\n }\n },\n description: \"Snack by Para FED\",\n scripts: {\n build: \"tsup\",\n \"build:watch\": \"tsup --watch\",\n test: \"vitest run\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage\",\n docs: \"typedoc\",\n lint: \"tsc --noEmit\",\n \"ver++\": \"node ver++.js\",\n clean: \"rimraf ./dist\",\n prepublishOnly: \"npm run build\"\n },\n snack: {},\n files: [\n \"dist\",\n \"package.json\"\n ],\n author: \"\",\n license: \"ISC\",\n dependencies: {\n \"@paraview/lib\": \"^3.0.0\",\n react: \"^19.2.0\",\n \"react-dom\": \"^19.2.0\"\n },\n devDependencies: {\n \"@swc/core\": \"^1.15.18\",\n \"@types/react\": \"^19.2.7\",\n \"@types/react-dom\": \"^19.2.3\",\n \"@vitest/coverage-v8\": \"^2.0.0\",\n jsdom: \"^24.0.0\",\n rimraf: \"^5.0.0\",\n tsup: \"^8.0.0\",\n typedoc: \"^0.26.0\",\n typescript: \"^5.0.0\",\n vitest: \"^2.0.0\"\n }\n};\n\n// src/index.ts\nvar version2 = package_default.version;\nvar src_default = {\n version: version2\n};\nconsole.log(`\n ____ __ _______ __ __\n / __/__ ___ _____/ /__ / __/ _ \\\\/ //_/\n _\\\\ \\\\/ _ \\\\/ _ \\`/ __/ '_/_\\\\ \\\\/ // / ,< \n/___/_//_/\\\\_,_/\\\\__/_/\\\\_\\\\/___/____/_/|_| v.${version2}\n \n`);\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n Core,\n DisplayModule,\n Error,\n GetDefaultEvents,\n GetParamsDetails,\n Loading,\n ParamsDetails,\n Snack,\n SnackSDK,\n SnackSetting,\n enParamsDetails,\n evalFunc,\n replaceVars\n});\n/**\n * @license Snack RequireJS 2.3.6\n */\n"]}