hlrender 0.0.166 → 0.0.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_pdf-30e94bac.js → _pdf-581c0c3f.js} +10 -10
- package/{_txt-fc349928.js → _txt-f9865f4b.js} +10 -10
- package/{_unsupport-b526be92.js → _unsupport-ae181fb3.js} +1 -1
- package/{affix-widget-04e965e9.js → affix-widget-e3027b1d.js} +15 -15
- package/{alert-widget-5798b846.js → alert-widget-c499f185.js} +15 -15
- package/{anchor-widget-691b2694.js → anchor-widget-c3b260f3.js} +12 -12
- package/{auto-complete-widget-38c7f506.js → auto-complete-widget-89ae2398.js} +15 -15
- package/{avatar-widget-fab8eccc.js → avatar-widget-edb5bb9c.js} +15 -15
- package/{backtop-widget-06e431d4.js → backtop-widget-c8bbcd03.js} +15 -15
- package/{badge-widget-1e2f6cb2.js → badge-widget-6b4e676f.js} +15 -15
- package/{barcode-widget-8a236767.js → barcode-widget-496a60b9.js} +12 -12
- package/{baseImp-fdfd665b.js → baseImp-589c5d77.js} +5 -5
- package/{breadcrumb-widget-0887e026.js → breadcrumb-widget-d42e0f04.js} +12 -12
- package/{button-widget-3bb53e7e.js → button-widget-db283dc5.js} +15 -15
- package/{cache-widget-3c1273a9.js → cache-widget-27edf560.js} +14 -14
- package/{card-widget-83ae831c.js → card-widget-01ef1d92.js} +13 -13
- package/{carousel-widget-22a1de9b.js → carousel-widget-439f3e9c.js} +13 -13
- package/{cascader-widget-c19a69af.js → cascader-widget-7d983564.js} +14 -14
- package/{chart-widget-18bc02a2.js → chart-widget-7b45d329.js} +12 -12
- package/{checkbox-widget-b84516c3.js → checkbox-widget-22a89ec6.js} +14 -14
- package/{collapse-widget-aa805223.js → collapse-widget-4e6311c5.js} +13 -13
- package/{color-picker-widget-caef44a7.js → color-picker-widget-4a3ddf0a.js} +14 -14
- package/{cont-cell-widget-86a37c1a.js → cont-cell-widget-f4d7dfbe.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a6a95456.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-fc77fa13.js} +5 -5
- package/{cont-widget-ba43f9b7.js → cont-widget-dcb9132f.js} +5 -5
- package/{content-wrapper-41b3afce.js → content-wrapper-ec886c6e.js} +6 -6
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-5383d2db.js → content-wrapper.vue_vue_type_script_setup_true_lang-18a85405.js} +3 -3
- package/{date-picker-range-widget-985f52ae.js → date-picker-range-widget-5ea64743.js} +14 -14
- package/{date-picker-widget-da96a88f.js → date-picker-widget-24811d39.js} +14 -14
- package/default-slot-widget-43b7c6b0.js +26 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e249fd6c.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-edc0a2b9.js} +7 -7
- package/{descriptions-widget-fc0305fe.js → descriptions-widget-2558b775.js} +13 -13
- package/{dialog-edac4003.js → dialog-9bad7794.js} +2 -2
- package/{dialog-widget-41e1ae0f.js → dialog-widget-078fd4ee.js} +14 -14
- package/{divider-widget-d506f724.js → divider-widget-bbb7d4c0.js} +15 -15
- package/{drag-wrapper-41b59bcb.js → drag-wrapper-cb2e890a.js} +6 -6
- package/{drawer-widget-7e621600.js → drawer-widget-eeeae9bc.js} +14 -14
- package/{dropdown-widget-80a45901.js → dropdown-widget-db29c949.js} +13 -13
- package/{empty-widget-d3f81fb7.js → empty-widget-916fcc1e.js} +15 -15
- package/{enum-type-d852f5f2.js → enum-type-46fc6f54.js} +26 -20
- package/{enum-type-75d54e07.js → enum-type-74cbdac0.js} +1 -1
- package/{expression-360ca7b2.js → expression-b19104dd.js} +491 -473
- package/feedback-widget-e8f27910.js +26 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-26c22df3.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ae8386b1.js} +5 -5
- package/{fieldobj-a43dc7ab.js → fieldobj-ce482f93.js} +1 -1
- package/{file-upload-widget-309d8972.js → file-upload-widget-99da6bb9.js} +19 -19
- package/{form-item-wrapper-cd42380b.js → form-item-wrapper-00c894a5.js} +10 -10
- package/{form-widget-4796b836.js → form-widget-a9ebf9b3.js} +10 -10
- package/{grid-col-widget-b2fd3bfe.js → grid-col-widget-ad27afd3.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-3e7f8a17.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2c4e629e.js} +5 -5
- package/{grid-widget-c1cf3c0b.js → grid-widget-084d647d.js} +5 -5
- package/{html-text-widget-5748fe74.js → html-text-widget-cee6a2e1.js} +13 -13
- package/{icon-widget-573b215f.js → icon-widget-a9e2a2df.js} +12 -12
- package/{iframe-widget-a4cbb575.js → iframe-widget-491e33c8.js} +12 -12
- package/{image-widget-8e5783ef.js → image-widget-54892f8b.js} +12 -12
- package/{index-e5cbfd73.js → index-3c99ed20.js} +612 -598
- package/{index-b354f498.js → index-4f846058.js} +1 -1
- package/{index-981e51e1.js → index-6f51bce6.js} +3 -3
- package/{input-number-widget-29e0bf32.js → input-number-widget-6b57a47f.js} +14 -14
- package/{input-widget-3f60e0bc.js → input-widget-eb1c8a42.js} +15 -15
- package/{label-wrapper-4beda6f8.js → label-wrapper-a17a68a7.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-ed32b100.js → label-wrapper.vue_vue_type_style_index_0_lang-3623bf69.js} +3 -3
- package/{link-widget-f6c3386b.js → link-widget-1b18a5a5.js} +15 -15
- package/{ltable-col-widget-11242efe.js → ltable-col-widget-c02d6aaa.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-47819ab7.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-355525a9.js} +9 -9
- package/{ltable-widget-1fb79edd.js → ltable-widget-e05340ff.js} +5 -5
- package/{menu-widget-34a7c5b2.js → menu-widget-ea55105e.js} +13 -13
- package/{model-widget-f89e4488.js → model-widget-a1fbce2a.js} +12 -12
- package/{multirow-7d15d536.js → multirow-8213913b.js} +5 -5
- package/{multirow-widget-94fef599.js → multirow-widget-95c15306.js} +14 -14
- package/package.json +1 -1
- package/{pagination-widget-4d4ba564.js → pagination-widget-a0b2a16a.js} +12 -12
- package/{picture-upload-widget-31524330.js → picture-upload-widget-ed7e91e3.js} +15 -15
- package/{progress-widget-a07ce189.js → progress-widget-3b0df091.js} +13 -13
- package/{propresult-5f59b002.js → propresult-8253e5ad.js} +1 -1
- package/{qrcode-widget-14ff3ae1.js → qrcode-widget-bc885a6f.js} +12 -12
- package/{radio-widget-66837f8b.js → radio-widget-7f51581c.js} +14 -14
- package/{range-widget-29dc84a7.js → range-widget-9d695351.js} +15 -15
- package/{rate-widget-9c183f6d.js → rate-widget-f378596e.js} +14 -14
- package/render.es.js +31 -31
- package/render.umd.js +546 -452
- package/{result-widget-36443a0e.js → result-widget-5ba21b53.js} +13 -13
- package/{rich-editor-widget-a4578bf4.js → rich-editor-widget-14261e33.js} +14 -14
- package/{router-widget-45fe053a.js → router-widget-4c4b26e6.js} +12 -12
- package/{select-widget-37f255e3.js → select-widget-f7c30dd8.js} +14 -14
- package/{sfc-a33dd6bb.js → sfc-b4c6eb33.js} +7 -7
- package/{sfcview-f4137ace.js → sfcview-6f4ce810.js} +6 -6
- package/{share-field-8fd11dcd.js → share-field-14095fd7.js} +7 -7
- package/{share-file-d729146e.js → share-file-5d4fbac2.js} +5 -5
- package/{slider-widget-913fb89b.js → slider-widget-59abb6e8.js} +14 -14
- package/{slot-41affdaf.js → slot-8c6681c7.js} +3 -3
- package/{static-text-widget-459420f8.js → static-text-widget-7c818531.js} +13 -13
- package/{steps-widget-266241d7.js → steps-widget-f9ac962e.js} +12 -12
- package/{subMenu-widget-33e45601.js → subMenu-widget-f4e23cbe.js} +7 -7
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-eca57f0e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-4c66ce73.js} +3 -3
- package/{switch-widget-d4db6b3b.js → switch-widget-f03ff33f.js} +14 -14
- package/{tab-pane-widget-79984d74.js → tab-pane-widget-5f4ecdb1.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e11ea085.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-62c5cae7.js} +5 -5
- package/{table-col-widget-569924fc.js → table-col-widget-ba201857.js} +10 -10
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d00e5c80.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7ce5f9c3.js} +5 -5
- package/table-widget-1b68be23.js +16469 -0
- package/{tabs-widget-85a9b7af.js → tabs-widget-0acd8b5e.js} +7 -7
- package/{tag-widget-03611797.js → tag-widget-af533994.js} +15 -15
- package/{text-widget-e7821929.js → text-widget-8c5cead6.js} +15 -15
- package/{textarea-widget-8f86fff5.js → textarea-widget-0d3b8b8d.js} +14 -14
- package/{time-picker-range-widget-3f1e497a.js → time-picker-range-widget-88d604d2.js} +14 -14
- package/{time-picker-widget-42e3afef.js → time-picker-widget-7731a2d6.js} +14 -14
- package/{time-select-widget-ce327458.js → time-select-widget-1e30583f.js} +14 -14
- package/{tmpl-widget-cbb8763d.js → tmpl-widget-1b111087.js} +13 -13
- package/{tree-select-widget-fed582db.js → tree-select-widget-38fa042e.js} +14 -14
- package/{tree-widget-8a56e7be.js → tree-widget-3c393b36.js} +12 -12
- package/{verifycode-widget-9e408e4f.js → verifycode-widget-acba77b9.js} +12 -12
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-5fd7daa1.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-4598eb85.js} +7 -7
- package/{wrapper-widget-02cd1f55.js → wrapper-widget-ceb8f2ae.js} +6 -6
- package/default-slot-widget-dc127d22.js +0 -26
- package/feedback-widget-c005dad5.js +0 -26
- package/table-widget-94417a27.js +0 -170
|
@@ -2,11 +2,11 @@ var wr = Object.defineProperty;
|
|
|
2
2
|
var Mr = (e, t, r) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ge = (e, t, r) => (Mr(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
4
|
import { r as xr } from "./source-map-b04aec4a.js";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as At, i as ze, N as Or, m as Ge, e as i, k as Zt, O as oe, B as l, A as Ce, P as Lr, n as Hr, j as _t, h as Br, f as Vt, c as $t, E as er, t as Wt, z as Fr } from "./enum-type-46fc6f54.js";
|
|
6
6
|
import { e as tr, f as rr, h as Ie, d as kt, i as Ur, j as Te, k as Gr, l as Wr } from "./uuid-4999945f.js";
|
|
7
7
|
import { c as Yt } from "./_commonjsHelpers-e7ea1525.js";
|
|
8
8
|
import { a as J } from "./esprima-e8d15055.js";
|
|
9
|
-
var Yr = /* @__PURE__ */ ((e) => (e.VFormRender = "VFormRender", e.VFormDesigner = "VFormDesigner", e.FieldWidget = "FieldWidget", e.ContainerWidget = "ContainerWidget", e.SettingPanel = "SettingPanel", e.PropertyEditor = "PropertyEditor", e))(Yr || {}), qr = /* @__PURE__ */ ((e) => (e.page = "page", e.cssCode = "cssCode", e.functions = "functions", e.pageCssUpdated = "page-css-updated", e.pageJsonImported = "page-json-imported", e[e.pageJsonVersion = 20240724] = "pageJsonVersion", e))(qr || {}), Kr = /* @__PURE__ */ ((e) => (e.editHandler = "editHandler", e.tooltipHandler = "tooltipHandler", e.popOverHandler = "popOverHandler", e.drawerHandler = "drawerHandler", e.designFormHandler = "designFormHandler", e.setFormData = "setFormData", e.reloadOptionItems = "reloadOptionItems", e.formChange = "formChange", e.v_form_ref = "v_form_ref", e.renderComplete = "renderComplete", e))(Kr || {}), jr = /* @__PURE__ */ ((e) => (e.fieldSelected = "field-selected", e.fieldValueChanged = "field-value-changed", e.fieldChange = "fieldChange", e.fieldRuleChange = "fieldRuleChange", e.fieldValidation = "fieldValidation", e.defaultValue = "defaultValue", e.defaultTime = "defaultTime", e.multiple = "multiple", e.externalArgs = "ctx", e.valueKey = "valueKey", e.labelKey = "labelKey", e.isdefaultKey = "isDefaultKey", e.onChange = "change", e.onChangeFn = "onChange", e.onClick = "click", e.onInput = "input", e.buttonClick = "buttonClick", e.onValidate = "validate", e.validFunc = "func", e.beforeUpload = "beforeUpload", e.onSuccess = "onSuccess", e.onError = "onError", e.onRemove = "onRemove", e.onBuildUrl = "onBuildUrl", e.onDownload = "onDownload", e.onPreview = "onPreview", e.isUploadSuccess = "isUploadSuccess", e.allowDelete = "allowDelete", e.allowPreview = "allowPreview", e.allowDownload = "allowDownload", e.beforeRemove = "beforeRemove", e.getHeaders = "getHeaders", e.getData = "getData", e.popperOptions = "popperOptions", e.shortcuts = "shortcuts", e.fitFetch = "fitFetch", e.errorFetch = "errorFetch", e.didFetch = "didFetch", e.willFetch = "willFetch", e.chartOption = "chartOption", e.lazyLoad = "lazyLoad", e.data = "data", e.formDataLoaded = "formDataLoaded", e.setQueryFn = "setQueryFn", e.afterFetch = "afterFetch", e.beforeFetch = "beforeFetch", e.isActiveItem = "isActiveItem", e))(jr || {}), Xr = /* @__PURE__ */ ((e) => (e.pageConfig = "pageConfig", e.widgetList = "widgetList", e.allRefList = "allRefList", e.refList = "refList", e.sfRefList = "sfRefList", e.globalModel = "globalModel", e.getPageConfig = "getPageConfig", e.staticDataModel = "staticDataModel", e.getDesignerConfig = "getDesignerConfig", e.getBannedWidgets = "getBannedWidgets", e.getPageTemplates = "getPageTemplates", e.getExampleCode = "getExampleCode", e.serverFieldList = "serverFieldList", e.urlParams = "urlParams", e.compParams = "compParams", e.globalForm = "globalForm", e.globalPage = "globalPage", e.rowScope = "rowScope", e.globalConfig = "globalConfig", e.isRenderComplete = "isRenderComplete", e))(Xr || {}), Jr = /* @__PURE__ */ ((e) => (e.optionItems = "optionItems", e.options = "options", e.schema = "schema", e.tabs = "tabs", e.cols = "cols", e.params = "params", e.headers = "headers", e.id = "id", e.name = "name", e.content = "content", e.width = "width", e.ctrlWidth = "ctrlWidth", e.ctrlHeight = "ctrlHeight", e.value = "value", e.children = "children", e.option = "option", e.isdefault = "isdefault", e.state = "state", e.slotable = "slotable", e.readonly = "readonly", e.disabled = "disabled", e.isLeaf = "isLeaf", e.class = "class", e.css = "css", e.label = "label", e.labelWidth = "labelWidth", e.labelHidden = "labelHidden", e.labelAlign = "labelAlign", e.labelTooltip = "labelTooltip", e.labelIconClass = "labelIconClass", e.labelIconPosition = "labelIconPosition", e.labelSuffix = "labelSuffix", e.requireAsteriskPosition = "requireAsteriskPosition", e.required = "required", e.displayLayout = "displayLayout", e.size = "size", e.customClass = "customClass", e.componentWrapperClass = "componentWrapperClass", e.componentRootClass = "componentRootClass", e.hidden = "hidden", e.widgetList = "widgetList", e.handlerLayout = "handlerLayout", e.relate = "relate", e.newDataSource = "newDataSource", e.editDataSource = "editDataSource", e.data = "data", e))(Jr || {}), zr = /* @__PURE__ */ ((e) => (e.default = "default", e.tip = "tip", e.header = "header", e))(zr || {}),
|
|
9
|
+
var Yr = /* @__PURE__ */ ((e) => (e.VFormRender = "VFormRender", e.VFormDesigner = "VFormDesigner", e.FieldWidget = "FieldWidget", e.ContainerWidget = "ContainerWidget", e.SettingPanel = "SettingPanel", e.PropertyEditor = "PropertyEditor", e))(Yr || {}), qr = /* @__PURE__ */ ((e) => (e.page = "page", e.cssCode = "cssCode", e.functions = "functions", e.pageCssUpdated = "page-css-updated", e.pageJsonImported = "page-json-imported", e[e.pageJsonVersion = 20240724] = "pageJsonVersion", e))(qr || {}), Kr = /* @__PURE__ */ ((e) => (e.editHandler = "editHandler", e.tooltipHandler = "tooltipHandler", e.popOverHandler = "popOverHandler", e.drawerHandler = "drawerHandler", e.designFormHandler = "designFormHandler", e.setFormData = "setFormData", e.reloadOptionItems = "reloadOptionItems", e.formChange = "formChange", e.v_form_ref = "v_form_ref", e.renderComplete = "renderComplete", e))(Kr || {}), jr = /* @__PURE__ */ ((e) => (e.fieldSelected = "field-selected", e.fieldValueChanged = "field-value-changed", e.fieldChange = "fieldChange", e.fieldRuleChange = "fieldRuleChange", e.fieldValidation = "fieldValidation", e.defaultValue = "defaultValue", e.defaultTime = "defaultTime", e.multiple = "multiple", e.externalArgs = "ctx", e.valueKey = "valueKey", e.labelKey = "labelKey", e.isdefaultKey = "isDefaultKey", e.onChange = "change", e.onChangeFn = "onChange", e.onClick = "click", e.onInput = "input", e.buttonClick = "buttonClick", e.onValidate = "validate", e.validFunc = "func", e.beforeUpload = "beforeUpload", e.onSuccess = "onSuccess", e.onError = "onError", e.onRemove = "onRemove", e.onBuildUrl = "onBuildUrl", e.onDownload = "onDownload", e.onPreview = "onPreview", e.isUploadSuccess = "isUploadSuccess", e.allowDelete = "allowDelete", e.allowPreview = "allowPreview", e.allowDownload = "allowDownload", e.beforeRemove = "beforeRemove", e.getHeaders = "getHeaders", e.getData = "getData", e.popperOptions = "popperOptions", e.shortcuts = "shortcuts", e.fitFetch = "fitFetch", e.errorFetch = "errorFetch", e.didFetch = "didFetch", e.willFetch = "willFetch", e.chartOption = "chartOption", e.lazyLoad = "lazyLoad", e.data = "data", e.formDataLoaded = "formDataLoaded", e.setQueryFn = "setQueryFn", e.afterFetch = "afterFetch", e.beforeFetch = "beforeFetch", e.isActiveItem = "isActiveItem", e))(jr || {}), Xr = /* @__PURE__ */ ((e) => (e.pageConfig = "pageConfig", e.widgetList = "widgetList", e.allRefList = "allRefList", e.refList = "refList", e.sfRefList = "sfRefList", e.globalModel = "globalModel", e.getPageConfig = "getPageConfig", e.staticDataModel = "staticDataModel", e.getDesignerConfig = "getDesignerConfig", e.getBannedWidgets = "getBannedWidgets", e.getPageTemplates = "getPageTemplates", e.getExampleCode = "getExampleCode", e.serverFieldList = "serverFieldList", e.urlParams = "urlParams", e.compParams = "compParams", e.globalForm = "globalForm", e.globalPage = "globalPage", e.rowScope = "rowScope", e.globalConfig = "globalConfig", e.isRenderComplete = "isRenderComplete", e))(Xr || {}), Jr = /* @__PURE__ */ ((e) => (e.optionItems = "optionItems", e.options = "options", e.schema = "schema", e.tabs = "tabs", e.cols = "cols", e.params = "params", e.headers = "headers", e.id = "id", e.name = "name", e.content = "content", e.width = "width", e.ctrlWidth = "ctrlWidth", e.ctrlHeight = "ctrlHeight", e.value = "value", e.children = "children", e.option = "option", e.isdefault = "isdefault", e.state = "state", e.slotable = "slotable", e.readonly = "readonly", e.disabled = "disabled", e.isLeaf = "isLeaf", e.class = "class", e.css = "css", e.label = "label", e.labelWidth = "labelWidth", e.labelHidden = "labelHidden", e.labelAlign = "labelAlign", e.labelTooltip = "labelTooltip", e.labelIconClass = "labelIconClass", e.labelIconPosition = "labelIconPosition", e.labelSuffix = "labelSuffix", e.requireAsteriskPosition = "requireAsteriskPosition", e.required = "required", e.displayLayout = "displayLayout", e.size = "size", e.customClass = "customClass", e.componentWrapperClass = "componentWrapperClass", e.componentRootClass = "componentRootClass", e.hidden = "hidden", e.widgetList = "widgetList", e.handlerLayout = "handlerLayout", e.relate = "relate", e.newDataSource = "newDataSource", e.editDataSource = "editDataSource", e.data = "data", e))(Jr || {}), zr = /* @__PURE__ */ ((e) => (e.default = "default", e.tip = "tip", e.header = "header", e))(zr || {}), Ke = /* @__PURE__ */ ((e) => (e.copyItem = "___copy", e.checkedOptions = "___cked", e.optionText = "_text", e.optionCode = "_code", e.optionLabelName = "_name", e))(Ke || {}), Qr = /* @__PURE__ */ ((e) => (e.formItemTarget = "formItemTarget", e))(Qr || {}), Zr = /* @__PURE__ */ ((e) => (e.color1 = "#1976D2", e))(Zr || {});
|
|
10
10
|
const ks = (e, t, r = ":") => t ? e ? [e, t].join(r) : t : "", Ts = (e, t = "") => {
|
|
11
11
|
var r = e == null ? void 0 : e.filter((n) => !!n);
|
|
12
12
|
return !r || r.length <= 0 ? "" : r.join(t);
|
|
@@ -20,19 +20,19 @@ const ks = (e, t, r = ":") => t ? e ? [e, t].join(r) : t : "", Ts = (e, t = "")
|
|
|
20
20
|
return "";
|
|
21
21
|
var n = "", s = "", h = t == null ? void 0 : t.lastIndexOf(".");
|
|
22
22
|
h == -1 ? n = t : (n = t == null ? void 0 : t.substring(0, h), s = t == null ? void 0 : t.substring(h + 1, t == null ? void 0 : t.length));
|
|
23
|
-
var
|
|
23
|
+
var p = "", c = "", u = r.lastIndexOf(".");
|
|
24
24
|
if (u == -1)
|
|
25
|
-
var
|
|
25
|
+
var p = r;
|
|
26
26
|
else
|
|
27
|
-
var
|
|
28
|
-
for (var d = new Array(), g = n.indexOf("#,###"), E = 1, a =
|
|
29
|
-
d.unshift(
|
|
27
|
+
var p = r.substring(0, u), c = r.substring(u + 1, r.length);
|
|
28
|
+
for (var d = new Array(), g = n.indexOf("#,###"), E = 1, a = p.length, f = a; f > 0; f--)
|
|
29
|
+
d.unshift(p.charAt(f - 1)), g != -1 && E % 3 == 0 && E != a && d.unshift(","), E++;
|
|
30
30
|
h != -1 && d.push(".");
|
|
31
|
-
for (var
|
|
32
|
-
s.charAt(
|
|
31
|
+
for (var f = 0; f < s.length; f++)
|
|
32
|
+
s.charAt(f) && c.charAt(f) ? d.push(c.charAt(f)) : d.push("0");
|
|
33
33
|
return d.join("");
|
|
34
34
|
}, Vr = (e) => e == null ? void 0 : e.replace(/[\r\n]+/g, ""), Ns = (e, t, r, n, s) => {
|
|
35
|
-
n || (n = (
|
|
35
|
+
n || (n = (p) => !!Vr(p));
|
|
36
36
|
const h = s ? `
|
|
37
37
|
` : "";
|
|
38
38
|
return n(e) ? `${t || ""}${h}${e || ""}${h}${r || ""}` : e || "";
|
|
@@ -41,10 +41,10 @@ const ks = (e, t, r = ":") => t ? e ? [e, t].join(r) : t : "", Ts = (e, t = "")
|
|
|
41
41
|
return t;
|
|
42
42
|
{
|
|
43
43
|
let s = String(e);
|
|
44
|
-
const h = s.substring(0, r),
|
|
45
|
-
return s = `${h}${t}${
|
|
44
|
+
const h = s.substring(0, r), p = s.substring(n || r);
|
|
45
|
+
return s = `${h}${t}${p}`, s;
|
|
46
46
|
}
|
|
47
|
-
}, $r = (e, ...t) => e.replace(/{(\d+)}/g, (r, n) => typeof t[n] < "u" ? t[n] : r), en = (e, t, r) => !
|
|
47
|
+
}, $r = (e, ...t) => e.replace(/{(\d+)}/g, (r, n) => typeof t[n] < "u" ? t[n] : r), en = (e, t, r) => !At(e) || !t ? e || "" : e == null ? void 0 : e.replace(new RegExp(t, "gi"), r), tn = (e) => {
|
|
48
48
|
var t, r, n;
|
|
49
49
|
return (n = (r = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.expression) == null ? void 0 : r.callee) == null ? void 0 : n.name;
|
|
50
50
|
}, ir = (e) => {
|
|
@@ -53,35 +53,37 @@ const ks = (e, t, r = ":") => t ? e ? [e, t].join(r) : t : "", Ts = (e, t = "")
|
|
|
53
53
|
try {
|
|
54
54
|
return J.parseScript(e);
|
|
55
55
|
} catch (t) {
|
|
56
|
-
return
|
|
56
|
+
return Ge.error("astTree", t, { script: e }), null;
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
function rn(e) {
|
|
60
|
-
return
|
|
60
|
+
return ze(e) || !At(e) ? null : ir(en(e, "return", " "));
|
|
61
61
|
}
|
|
62
62
|
function nn(e) {
|
|
63
63
|
const t = [], r = rn(e);
|
|
64
|
-
function n(
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
64
|
+
function n(p) {
|
|
65
|
+
if (p) {
|
|
66
|
+
if ((p == null ? void 0 : p.type) === J.Syntax.MemberExpression) {
|
|
67
|
+
const c = {
|
|
68
|
+
root: "",
|
|
69
|
+
properties: []
|
|
70
|
+
};
|
|
71
|
+
s(p, c), c.root && t.push(c);
|
|
72
|
+
} else
|
|
73
|
+
(p == null ? void 0 : p.type) === J.Syntax.CallExpression && h(p, t);
|
|
74
|
+
for (const c in p) {
|
|
75
|
+
const u = p[c];
|
|
76
|
+
Array.isArray(u) ? u.forEach((d) => d && n(d)) : u && typeof u == "object" && n(u);
|
|
77
|
+
}
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
|
-
function s(
|
|
79
|
-
var u =
|
|
80
|
+
function s(p, c) {
|
|
81
|
+
var u = p.object, d = p.property;
|
|
80
82
|
u.type === J.Syntax.MemberExpression ? s(u, c) : u.type === J.Syntax.Identifier && (c.root = u.name), d.type === J.Syntax.Identifier ? c.properties.push(d.name) : (d.type === J.Syntax.Literal && typeof d.value == "string" || d.type === J.Syntax.Literal && typeof d.value == "number") && c.properties.push(d.value);
|
|
81
83
|
}
|
|
82
|
-
function h(
|
|
84
|
+
function h(p, c) {
|
|
83
85
|
var u;
|
|
84
|
-
(u =
|
|
86
|
+
(u = p.arguments) == null || u.forEach((d) => {
|
|
85
87
|
if (d.type === J.Syntax.Identifier) {
|
|
86
88
|
const g = {
|
|
87
89
|
root: d.name,
|
|
@@ -101,20 +103,20 @@ function an() {
|
|
|
101
103
|
const e = () => new Promise((r, n) => {
|
|
102
104
|
import("./escodegen-b74ed816.js").then((s) => s.e).then((s) => {
|
|
103
105
|
import("./estraverse-f6bb16b1.js").then((h) => h.e).then((h) => {
|
|
104
|
-
import("./esprima-e8d15055.js").then((
|
|
105
|
-
r({ escodegen: s, estraverse: h, esprima:
|
|
106
|
+
import("./esprima-e8d15055.js").then((p) => p.e).then((p) => {
|
|
107
|
+
r({ escodegen: s, estraverse: h, esprima: p });
|
|
106
108
|
});
|
|
107
109
|
});
|
|
108
110
|
});
|
|
109
111
|
});
|
|
110
112
|
function t(r, n, s, h) {
|
|
111
113
|
try {
|
|
112
|
-
const
|
|
113
|
-
return r == null || r.estraverse.traverse(
|
|
114
|
+
const p = r == null ? void 0 : r.esprima.parseScript(n);
|
|
115
|
+
return r == null || r.estraverse.traverse(p, {
|
|
114
116
|
enter(c) {
|
|
115
117
|
c = s(c, h);
|
|
116
118
|
}
|
|
117
|
-
}), r == null ? void 0 : r.escodegen.generate(
|
|
119
|
+
}), r == null ? void 0 : r.escodegen.generate(p);
|
|
118
120
|
} catch {
|
|
119
121
|
return n;
|
|
120
122
|
}
|
|
@@ -182,11 +184,11 @@ class on {
|
|
|
182
184
|
}
|
|
183
185
|
// 第五步 出生日期校验
|
|
184
186
|
_checkBirthday(t, r = {}) {
|
|
185
|
-
const n = /^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/, s = t.match(n), h = parseInt(s[2]),
|
|
187
|
+
const n = /^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/, s = t.match(n), h = parseInt(s[2]), p = parseInt(s[3]), c = parseInt(s[4]), u = new Date(h + "/" + (p < 10 ? "0" + p : p) + "/" + (c < 10 ? "0" + c : c));
|
|
186
188
|
if (u.getFullYear() != 0 && (u.getMonth() < 0 || !u.getDate()))
|
|
187
189
|
return !1;
|
|
188
190
|
const d = new Date(), g = tr(u, d);
|
|
189
|
-
return r.birthday = u, r.birthdayText = h + "-" +
|
|
191
|
+
return r.birthday = u, r.birthdayText = h + "-" + p + "-" + c, r.age = g == null ? void 0 : g.years, r.dateDiff = g, u <= d;
|
|
190
192
|
}
|
|
191
193
|
/**
|
|
192
194
|
* 校验性别
|
|
@@ -196,7 +198,7 @@ class on {
|
|
|
196
198
|
*/
|
|
197
199
|
_checkSexCode(t, r = {}) {
|
|
198
200
|
var n = t == null ? void 0 : t.substring(16, 17);
|
|
199
|
-
if (
|
|
201
|
+
if (ze(n))
|
|
200
202
|
return !1;
|
|
201
203
|
const s = parseInt(n) % 2 == 0;
|
|
202
204
|
return r.sexCode = s ? "2" : "1", r.sexName = s ? "女" : "男", !0;
|
|
@@ -229,8 +231,8 @@ class we {
|
|
|
229
231
|
return t;
|
|
230
232
|
var r = t.substring(0, 6) + "19" + t.substring(6), n = 0;
|
|
231
233
|
const s = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], h = r == null ? void 0 : r.split("");
|
|
232
|
-
for (var
|
|
233
|
-
n += (h[
|
|
234
|
+
for (var p = 0; p < h.length; p++)
|
|
235
|
+
n += (h[p].charCodeAt(0) - "0".charCodeAt(0)) * s[p];
|
|
234
236
|
var c = n % 11, u = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"];
|
|
235
237
|
return r + u[c];
|
|
236
238
|
}
|
|
@@ -260,12 +262,12 @@ var xe = {}, un = {
|
|
|
260
262
|
set exports(e) {
|
|
261
263
|
xe = e;
|
|
262
264
|
}
|
|
263
|
-
},
|
|
265
|
+
}, Qe = {}, ln = {
|
|
264
266
|
get exports() {
|
|
265
|
-
return
|
|
267
|
+
return Qe;
|
|
266
268
|
},
|
|
267
269
|
set exports(e) {
|
|
268
|
-
|
|
270
|
+
Qe = e;
|
|
269
271
|
}
|
|
270
272
|
}, ie = {}, Y = {};
|
|
271
273
|
Y.__esModule = !0;
|
|
@@ -296,13 +298,13 @@ function sr(e) {
|
|
|
296
298
|
}
|
|
297
299
|
var Tt = Object.prototype.toString;
|
|
298
300
|
Y.toString = Tt;
|
|
299
|
-
var
|
|
301
|
+
var Et = function(t) {
|
|
300
302
|
return typeof t == "function";
|
|
301
303
|
};
|
|
302
|
-
|
|
304
|
+
Et(/x/) && (Y.isFunction = Et = function(e) {
|
|
303
305
|
return typeof e == "function" && Tt.call(e) === "[object Function]";
|
|
304
306
|
});
|
|
305
|
-
Y.isFunction =
|
|
307
|
+
Y.isFunction = Et;
|
|
306
308
|
var ar = Array.isArray || function(e) {
|
|
307
309
|
return e && typeof e == "object" ? Tt.call(e) === "[object Array]" : !1;
|
|
308
310
|
};
|
|
@@ -350,13 +352,13 @@ var re = {}, yn = {
|
|
|
350
352
|
t.__esModule = !0;
|
|
351
353
|
var r = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
|
|
352
354
|
function n(s, h) {
|
|
353
|
-
var
|
|
354
|
-
|
|
355
|
+
var p = h && h.loc, c = void 0, u = void 0, d = void 0, g = void 0;
|
|
356
|
+
p && (c = p.start.line, u = p.end.line, d = p.start.column, g = p.end.column, s += " - " + c + ":" + d);
|
|
355
357
|
for (var E = Error.prototype.constructor.call(this, s), a = 0; a < r.length; a++)
|
|
356
358
|
this[r[a]] = E[r[a]];
|
|
357
359
|
Error.captureStackTrace && Error.captureStackTrace(this, n);
|
|
358
360
|
try {
|
|
359
|
-
|
|
361
|
+
p && (this.lineNumber = c, this.endLineNumber = u, Object.defineProperty ? (Object.defineProperty(this, "column", {
|
|
360
362
|
value: d,
|
|
361
363
|
enumerable: !0
|
|
362
364
|
}), Object.defineProperty(this, "endColumn", {
|
|
@@ -368,12 +370,12 @@ var re = {}, yn = {
|
|
|
368
370
|
}
|
|
369
371
|
n.prototype = new Error(), t.default = n, e.exports = t.default;
|
|
370
372
|
})(yn, re);
|
|
371
|
-
var
|
|
373
|
+
var We = {}, Ze = {}, Sn = {
|
|
372
374
|
get exports() {
|
|
373
|
-
return
|
|
375
|
+
return Ze;
|
|
374
376
|
},
|
|
375
377
|
set exports(e) {
|
|
376
|
-
|
|
378
|
+
Ze = e;
|
|
377
379
|
}
|
|
378
380
|
};
|
|
379
381
|
(function(e, t) {
|
|
@@ -381,13 +383,13 @@ var Ge = {}, Qe = {}, Sn = {
|
|
|
381
383
|
var r = Y;
|
|
382
384
|
t.default = function(n) {
|
|
383
385
|
n.registerHelper("blockHelperMissing", function(s, h) {
|
|
384
|
-
var
|
|
386
|
+
var p = h.inverse, c = h.fn;
|
|
385
387
|
if (s === !0)
|
|
386
388
|
return c(this);
|
|
387
389
|
if (s === !1 || s == null)
|
|
388
|
-
return
|
|
390
|
+
return p(this);
|
|
389
391
|
if (r.isArray(s))
|
|
390
|
-
return s.length > 0 ? (h.ids && (h.ids = [h.name]), n.helpers.each(s, h)) :
|
|
392
|
+
return s.length > 0 ? (h.ids && (h.ids = [h.name]), n.helpers.each(s, h)) : p(this);
|
|
391
393
|
if (h.data && h.ids) {
|
|
392
394
|
var u = r.createFrame(h.data);
|
|
393
395
|
u.contextPath = r.appendContextPath(h.data.contextPath, h.name), h = { data: u };
|
|
@@ -395,30 +397,30 @@ var Ge = {}, Qe = {}, Sn = {
|
|
|
395
397
|
return c(s, h);
|
|
396
398
|
});
|
|
397
399
|
}, e.exports = t.default;
|
|
398
|
-
})(Sn,
|
|
399
|
-
var
|
|
400
|
+
})(Sn, Ze);
|
|
401
|
+
var Ve = {}, bn = {
|
|
400
402
|
get exports() {
|
|
401
|
-
return
|
|
403
|
+
return Ve;
|
|
402
404
|
},
|
|
403
405
|
set exports(e) {
|
|
404
|
-
|
|
406
|
+
Ve = e;
|
|
405
407
|
}
|
|
406
408
|
};
|
|
407
409
|
(function(e, t) {
|
|
408
410
|
t.__esModule = !0;
|
|
409
|
-
function r(
|
|
410
|
-
return
|
|
411
|
+
function r(p) {
|
|
412
|
+
return p && p.__esModule ? p : { default: p };
|
|
411
413
|
}
|
|
412
414
|
var n = Y, s = re, h = r(s);
|
|
413
|
-
t.default = function(
|
|
414
|
-
|
|
415
|
+
t.default = function(p) {
|
|
416
|
+
p.registerHelper("each", function(c, u) {
|
|
415
417
|
if (!u)
|
|
416
418
|
throw new h.default("Must pass iterator to #each");
|
|
417
|
-
var d = u.fn, g = u.inverse, E = 0, a = "",
|
|
418
|
-
u.data && u.ids && (o = n.appendContextPath(u.data.contextPath, u.ids[0]) + "."), n.isFunction(c) && (c = c.call(this)), u.data && (
|
|
419
|
+
var d = u.fn, g = u.inverse, E = 0, a = "", f = void 0, o = void 0;
|
|
420
|
+
u.data && u.ids && (o = n.appendContextPath(u.data.contextPath, u.ids[0]) + "."), n.isFunction(c) && (c = c.call(this)), u.data && (f = n.createFrame(u.data));
|
|
419
421
|
function y(w, L, Z) {
|
|
420
|
-
|
|
421
|
-
data:
|
|
422
|
+
f && (f.key = w, f.index = L, f.first = L === 0, f.last = !!Z, o && (f.contextPath = o + w)), a = a + d(c[w], {
|
|
423
|
+
data: f,
|
|
422
424
|
blockParams: n.blockParams([c[w], w], [o + w, null])
|
|
423
425
|
});
|
|
424
426
|
}
|
|
@@ -442,13 +444,13 @@ var Ze = {}, bn = {
|
|
|
442
444
|
return E === 0 && (a = g(this)), a;
|
|
443
445
|
});
|
|
444
446
|
}, e.exports = t.default;
|
|
445
|
-
})(bn,
|
|
446
|
-
var
|
|
447
|
+
})(bn, Ve);
|
|
448
|
+
var $e = {}, Pn = {
|
|
447
449
|
get exports() {
|
|
448
|
-
return
|
|
450
|
+
return $e;
|
|
449
451
|
},
|
|
450
452
|
set exports(e) {
|
|
451
|
-
|
|
453
|
+
$e = e;
|
|
452
454
|
}
|
|
453
455
|
};
|
|
454
456
|
(function(e, t) {
|
|
@@ -463,43 +465,43 @@ var Ve = {}, Pn = {
|
|
|
463
465
|
throw new s.default('Missing helper: "' + arguments[arguments.length - 1].name + '"');
|
|
464
466
|
});
|
|
465
467
|
}, e.exports = t.default;
|
|
466
|
-
})(Pn,
|
|
467
|
-
var
|
|
468
|
+
})(Pn, $e);
|
|
469
|
+
var et = {}, An = {
|
|
468
470
|
get exports() {
|
|
469
|
-
return
|
|
471
|
+
return et;
|
|
470
472
|
},
|
|
471
473
|
set exports(e) {
|
|
472
|
-
|
|
474
|
+
et = e;
|
|
473
475
|
}
|
|
474
476
|
};
|
|
475
477
|
(function(e, t) {
|
|
476
478
|
t.__esModule = !0;
|
|
477
|
-
function r(
|
|
478
|
-
return
|
|
479
|
+
function r(p) {
|
|
480
|
+
return p && p.__esModule ? p : { default: p };
|
|
479
481
|
}
|
|
480
482
|
var n = Y, s = re, h = r(s);
|
|
481
|
-
t.default = function(
|
|
482
|
-
|
|
483
|
+
t.default = function(p) {
|
|
484
|
+
p.registerHelper("if", function(c, u) {
|
|
483
485
|
if (arguments.length != 2)
|
|
484
486
|
throw new h.default("#if requires exactly one argument");
|
|
485
487
|
return n.isFunction(c) && (c = c.call(this)), !u.hash.includeZero && !c || n.isEmpty(c) ? u.inverse(this) : u.fn(this);
|
|
486
|
-
}),
|
|
488
|
+
}), p.registerHelper("unless", function(c, u) {
|
|
487
489
|
if (arguments.length != 2)
|
|
488
490
|
throw new h.default("#unless requires exactly one argument");
|
|
489
|
-
return
|
|
491
|
+
return p.helpers.if.call(this, c, {
|
|
490
492
|
fn: u.inverse,
|
|
491
493
|
inverse: u.fn,
|
|
492
494
|
hash: u.hash
|
|
493
495
|
});
|
|
494
496
|
});
|
|
495
497
|
}, e.exports = t.default;
|
|
496
|
-
})(An,
|
|
497
|
-
var
|
|
498
|
+
})(An, et);
|
|
499
|
+
var tt = {}, kn = {
|
|
498
500
|
get exports() {
|
|
499
|
-
return
|
|
501
|
+
return tt;
|
|
500
502
|
},
|
|
501
503
|
set exports(e) {
|
|
502
|
-
|
|
504
|
+
tt = e;
|
|
503
505
|
}
|
|
504
506
|
};
|
|
505
507
|
(function(e, t) {
|
|
@@ -507,17 +509,17 @@ var et = {}, kn = {
|
|
|
507
509
|
r.registerHelper("log", function() {
|
|
508
510
|
for (var n = [void 0], s = arguments[arguments.length - 1], h = 0; h < arguments.length - 1; h++)
|
|
509
511
|
n.push(arguments[h]);
|
|
510
|
-
var
|
|
511
|
-
s.hash.level != null ?
|
|
512
|
+
var p = 1;
|
|
513
|
+
s.hash.level != null ? p = s.hash.level : s.data && s.data.level != null && (p = s.data.level), n[0] = p, r.log.apply(r, n);
|
|
512
514
|
});
|
|
513
515
|
}, e.exports = t.default;
|
|
514
|
-
})(kn,
|
|
515
|
-
var
|
|
516
|
+
})(kn, tt);
|
|
517
|
+
var rt = {}, Tn = {
|
|
516
518
|
get exports() {
|
|
517
|
-
return
|
|
519
|
+
return rt;
|
|
518
520
|
},
|
|
519
521
|
set exports(e) {
|
|
520
|
-
|
|
522
|
+
rt = e;
|
|
521
523
|
}
|
|
522
524
|
};
|
|
523
525
|
(function(e, t) {
|
|
@@ -526,23 +528,23 @@ var tt = {}, Tn = {
|
|
|
526
528
|
return n && h.lookupProperty(n, s);
|
|
527
529
|
});
|
|
528
530
|
}, e.exports = t.default;
|
|
529
|
-
})(Tn,
|
|
530
|
-
var
|
|
531
|
+
})(Tn, rt);
|
|
532
|
+
var nt = {}, Cn = {
|
|
531
533
|
get exports() {
|
|
532
|
-
return
|
|
534
|
+
return nt;
|
|
533
535
|
},
|
|
534
536
|
set exports(e) {
|
|
535
|
-
|
|
537
|
+
nt = e;
|
|
536
538
|
}
|
|
537
539
|
};
|
|
538
540
|
(function(e, t) {
|
|
539
541
|
t.__esModule = !0;
|
|
540
|
-
function r(
|
|
541
|
-
return
|
|
542
|
+
function r(p) {
|
|
543
|
+
return p && p.__esModule ? p : { default: p };
|
|
542
544
|
}
|
|
543
545
|
var n = Y, s = re, h = r(s);
|
|
544
|
-
t.default = function(
|
|
545
|
-
|
|
546
|
+
t.default = function(p) {
|
|
547
|
+
p.registerHelper("with", function(c, u) {
|
|
546
548
|
if (arguments.length != 2)
|
|
547
549
|
throw new h.default("#with requires exactly one argument");
|
|
548
550
|
n.isFunction(c) && (c = c.call(this));
|
|
@@ -556,49 +558,49 @@ var rt = {}, Cn = {
|
|
|
556
558
|
});
|
|
557
559
|
});
|
|
558
560
|
}, e.exports = t.default;
|
|
559
|
-
})(Cn,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
})(Cn, nt);
|
|
562
|
+
We.__esModule = !0;
|
|
563
|
+
We.registerDefaultHelpers = Wn;
|
|
564
|
+
We.moveHelperToHooks = Yn;
|
|
563
565
|
function Se(e) {
|
|
564
566
|
return e && e.__esModule ? e : { default: e };
|
|
565
567
|
}
|
|
566
|
-
var Nn =
|
|
568
|
+
var Nn = Ze, Rn = Se(Nn), In = Ve, Dn = Se(In), wn = $e, Mn = Se(wn), xn = et, On = Se(xn), Ln = tt, Hn = Se(Ln), Bn = rt, Fn = Se(Bn), Un = nt, Gn = Se(Un);
|
|
567
569
|
function Wn(e) {
|
|
568
570
|
Rn.default(e), Dn.default(e), Mn.default(e), On.default(e), Hn.default(e), Fn.default(e), Gn.default(e);
|
|
569
571
|
}
|
|
570
572
|
function Yn(e, t, r) {
|
|
571
573
|
e.helpers[t] && (e.hooks[t] = e.helpers[t], r || delete e.helpers[t]);
|
|
572
574
|
}
|
|
573
|
-
var Ct = {},
|
|
575
|
+
var Ct = {}, it = {}, qn = {
|
|
574
576
|
get exports() {
|
|
575
|
-
return
|
|
577
|
+
return it;
|
|
576
578
|
},
|
|
577
579
|
set exports(e) {
|
|
578
|
-
|
|
580
|
+
it = e;
|
|
579
581
|
}
|
|
580
582
|
};
|
|
581
583
|
(function(e, t) {
|
|
582
584
|
t.__esModule = !0;
|
|
583
585
|
var r = Y;
|
|
584
586
|
t.default = function(n) {
|
|
585
|
-
n.registerDecorator("inline", function(s, h,
|
|
587
|
+
n.registerDecorator("inline", function(s, h, p, c) {
|
|
586
588
|
var u = s;
|
|
587
589
|
return h.partials || (h.partials = {}, u = function(d, g) {
|
|
588
|
-
var E =
|
|
589
|
-
|
|
590
|
+
var E = p.partials;
|
|
591
|
+
p.partials = r.extend({}, E, h.partials);
|
|
590
592
|
var a = s(d, g);
|
|
591
|
-
return
|
|
593
|
+
return p.partials = E, a;
|
|
592
594
|
}), h.partials[c.args[0]] = c.fn, u;
|
|
593
595
|
});
|
|
594
596
|
}, e.exports = t.default;
|
|
595
|
-
})(qn,
|
|
597
|
+
})(qn, it);
|
|
596
598
|
Ct.__esModule = !0;
|
|
597
599
|
Ct.registerDefaultDecorators = Jn;
|
|
598
600
|
function Kn(e) {
|
|
599
601
|
return e && e.__esModule ? e : { default: e };
|
|
600
602
|
}
|
|
601
|
-
var jn =
|
|
603
|
+
var jn = it, Xn = Kn(jn);
|
|
602
604
|
function Jn(e) {
|
|
603
605
|
Xn.default(e);
|
|
604
606
|
}
|
|
@@ -618,19 +620,19 @@ var Oe = {}, zn = {
|
|
|
618
620
|
// Maps a given level value to the `methodMap` indexes above.
|
|
619
621
|
lookupLevel: function(h) {
|
|
620
622
|
if (typeof h == "string") {
|
|
621
|
-
var
|
|
622
|
-
|
|
623
|
+
var p = r.indexOf(n.methodMap, h.toLowerCase());
|
|
624
|
+
p >= 0 ? h = p : h = parseInt(h, 10);
|
|
623
625
|
}
|
|
624
626
|
return h;
|
|
625
627
|
},
|
|
626
628
|
// Can be overridden in the host environment
|
|
627
629
|
log: function(h) {
|
|
628
630
|
if (h = n.lookupLevel(h), typeof console < "u" && n.lookupLevel(n.level) <= h) {
|
|
629
|
-
var
|
|
630
|
-
console[
|
|
631
|
+
var p = n.methodMap[h];
|
|
632
|
+
console[p] || (p = "log");
|
|
631
633
|
for (var c = arguments.length, u = Array(c > 1 ? c - 1 : 0), d = 1; d < c; d++)
|
|
632
634
|
u[d - 1] = arguments[d];
|
|
633
|
-
console[
|
|
635
|
+
console[p].apply(console, u);
|
|
634
636
|
}
|
|
635
637
|
}
|
|
636
638
|
};
|
|
@@ -652,7 +654,7 @@ Ne.resetLoggedProperties = ii;
|
|
|
652
654
|
function Vn(e) {
|
|
653
655
|
return e && e.__esModule ? e : { default: e };
|
|
654
656
|
}
|
|
655
|
-
var qt = Nt, $n = Oe, ei = Vn($n),
|
|
657
|
+
var qt = Nt, $n = Oe, ei = Vn($n), st = /* @__PURE__ */ Object.create(null);
|
|
656
658
|
function ti(e) {
|
|
657
659
|
var t = /* @__PURE__ */ Object.create(null);
|
|
658
660
|
t.constructor = !1, t.__defineGetter__ = !1, t.__defineSetter__ = !1, t.__lookupGetter__ = !1;
|
|
@@ -675,21 +677,21 @@ function Kt(e, t) {
|
|
|
675
677
|
return e.whitelist[t] !== void 0 ? e.whitelist[t] === !0 : e.defaultValue !== void 0 ? e.defaultValue : (ni(t), !1);
|
|
676
678
|
}
|
|
677
679
|
function ni(e) {
|
|
678
|
-
|
|
680
|
+
st[e] !== !0 && (st[e] = !0, ei.default.log("error", 'Handlebars: Access has been denied to resolve the property "' + e + `" because it is not an "own property" of its parent.
|
|
679
681
|
You can add a runtime option to disable the check or this warning:
|
|
680
682
|
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`));
|
|
681
683
|
}
|
|
682
684
|
function ii() {
|
|
683
|
-
Object.keys(
|
|
684
|
-
delete
|
|
685
|
+
Object.keys(st).forEach(function(e) {
|
|
686
|
+
delete st[e];
|
|
685
687
|
});
|
|
686
688
|
}
|
|
687
689
|
ie.__esModule = !0;
|
|
688
|
-
ie.HandlebarsEnvironment =
|
|
690
|
+
ie.HandlebarsEnvironment = yt;
|
|
689
691
|
function or(e) {
|
|
690
692
|
return e && e.__esModule ? e : { default: e };
|
|
691
693
|
}
|
|
692
|
-
var ye = Y, si = re,
|
|
694
|
+
var ye = Y, si = re, gt = or(si), ai = We, oi = Ct, ui = Oe, at = or(ui), li = Ne, ci = "4.7.8";
|
|
693
695
|
ie.VERSION = ci;
|
|
694
696
|
var hi = 8;
|
|
695
697
|
ie.COMPILER_REVISION = hi;
|
|
@@ -707,18 +709,18 @@ var fi = {
|
|
|
707
709
|
8: ">= 4.3.0"
|
|
708
710
|
};
|
|
709
711
|
ie.REVISION_CHANGES = fi;
|
|
710
|
-
var
|
|
711
|
-
function
|
|
712
|
+
var mt = "[object Object]";
|
|
713
|
+
function yt(e, t, r) {
|
|
712
714
|
this.helpers = e || {}, this.partials = t || {}, this.decorators = r || {}, ai.registerDefaultHelpers(this), oi.registerDefaultDecorators(this);
|
|
713
715
|
}
|
|
714
|
-
|
|
715
|
-
constructor:
|
|
716
|
-
logger:
|
|
717
|
-
log:
|
|
716
|
+
yt.prototype = {
|
|
717
|
+
constructor: yt,
|
|
718
|
+
logger: at.default,
|
|
719
|
+
log: at.default.log,
|
|
718
720
|
registerHelper: function(t, r) {
|
|
719
|
-
if (ye.toString.call(t) ===
|
|
721
|
+
if (ye.toString.call(t) === mt) {
|
|
720
722
|
if (r)
|
|
721
|
-
throw new
|
|
723
|
+
throw new gt.default("Arg not supported with multiple helpers");
|
|
722
724
|
ye.extend(this.helpers, t);
|
|
723
725
|
} else
|
|
724
726
|
this.helpers[t] = r;
|
|
@@ -727,11 +729,11 @@ Et.prototype = {
|
|
|
727
729
|
delete this.helpers[t];
|
|
728
730
|
},
|
|
729
731
|
registerPartial: function(t, r) {
|
|
730
|
-
if (ye.toString.call(t) ===
|
|
732
|
+
if (ye.toString.call(t) === mt)
|
|
731
733
|
ye.extend(this.partials, t);
|
|
732
734
|
else {
|
|
733
735
|
if (typeof r > "u")
|
|
734
|
-
throw new
|
|
736
|
+
throw new gt.default('Attempting to register a partial called "' + t + '" as undefined');
|
|
735
737
|
this.partials[t] = r;
|
|
736
738
|
}
|
|
737
739
|
},
|
|
@@ -739,9 +741,9 @@ Et.prototype = {
|
|
|
739
741
|
delete this.partials[t];
|
|
740
742
|
},
|
|
741
743
|
registerDecorator: function(t, r) {
|
|
742
|
-
if (ye.toString.call(t) ===
|
|
744
|
+
if (ye.toString.call(t) === mt) {
|
|
743
745
|
if (r)
|
|
744
|
-
throw new
|
|
746
|
+
throw new gt.default("Arg not supported with multiple decorators");
|
|
745
747
|
ye.extend(this.decorators, t);
|
|
746
748
|
} else
|
|
747
749
|
this.decorators[t] = r;
|
|
@@ -757,16 +759,16 @@ Et.prototype = {
|
|
|
757
759
|
li.resetLoggedProperties();
|
|
758
760
|
}
|
|
759
761
|
};
|
|
760
|
-
var di =
|
|
762
|
+
var di = at.default.log;
|
|
761
763
|
ie.log = di;
|
|
762
764
|
ie.createFrame = ye.createFrame;
|
|
763
|
-
ie.logger =
|
|
764
|
-
var
|
|
765
|
+
ie.logger = at.default;
|
|
766
|
+
var ot = {}, gi = {
|
|
765
767
|
get exports() {
|
|
766
|
-
return
|
|
768
|
+
return ot;
|
|
767
769
|
},
|
|
768
770
|
set exports(e) {
|
|
769
|
-
|
|
771
|
+
ot = e;
|
|
770
772
|
}
|
|
771
773
|
};
|
|
772
774
|
(function(e, t) {
|
|
@@ -777,7 +779,7 @@ var at = {}, gi = {
|
|
|
777
779
|
r.prototype.toString = r.prototype.toHTML = function() {
|
|
778
780
|
return "" + this.string;
|
|
779
781
|
}, t.default = r, e.exports = t.default;
|
|
780
|
-
})(gi,
|
|
782
|
+
})(gi, ot);
|
|
781
783
|
var ve = {}, Rt = {};
|
|
782
784
|
Rt.__esModule = !0;
|
|
783
785
|
Rt.wrapHelper = mi;
|
|
@@ -793,7 +795,7 @@ function mi(e, t) {
|
|
|
793
795
|
ve.__esModule = !0;
|
|
794
796
|
ve.checkRevision = bi;
|
|
795
797
|
ve.template = Pi;
|
|
796
|
-
ve.wrapProgram =
|
|
798
|
+
ve.wrapProgram = je;
|
|
797
799
|
ve.resolvePartial = Ai;
|
|
798
800
|
ve.invokePartial = ki;
|
|
799
801
|
ve.noop = ur;
|
|
@@ -809,7 +811,7 @@ function _i(e) {
|
|
|
809
811
|
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
810
812
|
return t.default = e, t;
|
|
811
813
|
}
|
|
812
|
-
var Ei = Y, he = _i(Ei), yi = re, pe = vi(yi), fe = ie, jt =
|
|
814
|
+
var Ei = Y, he = _i(Ei), yi = re, pe = vi(yi), fe = ie, jt = We, Si = Rt, Xt = Ne;
|
|
813
815
|
function bi(e) {
|
|
814
816
|
var t = e && e[0] || 1, r = fe.COMPILER_REVISION;
|
|
815
817
|
if (!(t >= fe.LAST_COMPATIBLE_COMPILER_REVISION && t <= fe.COMPILER_REVISION))
|
|
@@ -826,16 +828,16 @@ function Pi(e, t) {
|
|
|
826
828
|
throw new pe.default("Unknown template object: " + typeof e);
|
|
827
829
|
e.main.decorator = e.main_d, t.VM.checkRevision(e.compiler);
|
|
828
830
|
var r = e.compiler && e.compiler[0] === 7;
|
|
829
|
-
function n(
|
|
830
|
-
u.hash && (c = he.extend({}, c, u.hash), u.ids && (u.ids[0] = !0)),
|
|
831
|
+
function n(p, c, u) {
|
|
832
|
+
u.hash && (c = he.extend({}, c, u.hash), u.ids && (u.ids[0] = !0)), p = t.VM.resolvePartial.call(this, p, c, u);
|
|
831
833
|
var d = he.extend({}, u, {
|
|
832
834
|
hooks: this.hooks,
|
|
833
835
|
protoAccessControl: this.protoAccessControl
|
|
834
|
-
}), g = t.VM.invokePartial.call(this,
|
|
835
|
-
if (g == null && t.compile && (u.partials[u.name] = t.compile(
|
|
836
|
+
}), g = t.VM.invokePartial.call(this, p, c, d);
|
|
837
|
+
if (g == null && t.compile && (u.partials[u.name] = t.compile(p, e.compilerOptions, t), g = u.partials[u.name](c, d)), g != null) {
|
|
836
838
|
if (u.indent) {
|
|
837
839
|
for (var E = g.split(`
|
|
838
|
-
`), a = 0,
|
|
840
|
+
`), a = 0, f = E.length; a < f && !(!E[a] && a + 1 === f); a++)
|
|
839
841
|
E[a] = u.indent + E[a];
|
|
840
842
|
g = E.join(`
|
|
841
843
|
`);
|
|
@@ -875,8 +877,8 @@ function Pi(e, t) {
|
|
|
875
877
|
},
|
|
876
878
|
programs: [],
|
|
877
879
|
program: function(c, u, d, g, E) {
|
|
878
|
-
var a = this.programs[c],
|
|
879
|
-
return u || E || g || d ? a =
|
|
880
|
+
var a = this.programs[c], f = this.fn(c);
|
|
881
|
+
return u || E || g || d ? a = je(this, c, f, u, d, g, E) : a || (a = this.programs[c] = je(this, c, f)), a;
|
|
880
882
|
},
|
|
881
883
|
data: function(c, u) {
|
|
882
884
|
for (; c && u--; )
|
|
@@ -892,39 +894,39 @@ function Pi(e, t) {
|
|
|
892
894
|
noop: t.VM.noop,
|
|
893
895
|
compilerInfo: e.compiler
|
|
894
896
|
};
|
|
895
|
-
function h(
|
|
897
|
+
function h(p) {
|
|
896
898
|
var c = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], u = c.data;
|
|
897
|
-
h._setup(c), !c.partial && e.useData && (u = Ti(
|
|
899
|
+
h._setup(c), !c.partial && e.useData && (u = Ti(p, u));
|
|
898
900
|
var d = void 0, g = e.useBlockParams ? [] : void 0;
|
|
899
|
-
e.useDepths && (c.depths ? d =
|
|
901
|
+
e.useDepths && (c.depths ? d = p != c.depths[0] ? [p].concat(c.depths) : c.depths : d = [p]);
|
|
900
902
|
function E(a) {
|
|
901
903
|
return "" + e.main(s, a, s.helpers, s.partials, u, g, d);
|
|
902
904
|
}
|
|
903
|
-
return E = lr(e.main, E, s, c.depths || [], u, g), E(
|
|
905
|
+
return E = lr(e.main, E, s, c.depths || [], u, g), E(p, c);
|
|
904
906
|
}
|
|
905
|
-
return h.isTop = !0, h._setup = function(
|
|
906
|
-
if (
|
|
907
|
-
s.protoAccessControl =
|
|
907
|
+
return h.isTop = !0, h._setup = function(p) {
|
|
908
|
+
if (p.partial)
|
|
909
|
+
s.protoAccessControl = p.protoAccessControl, s.helpers = p.helpers, s.partials = p.partials, s.decorators = p.decorators, s.hooks = p.hooks;
|
|
908
910
|
else {
|
|
909
|
-
var c = he.extend({}, t.helpers,
|
|
910
|
-
Ci(c, s), s.helpers = c, e.usePartial && (s.partials = s.mergeIfNeeded(
|
|
911
|
-
var u =
|
|
911
|
+
var c = he.extend({}, t.helpers, p.helpers);
|
|
912
|
+
Ci(c, s), s.helpers = c, e.usePartial && (s.partials = s.mergeIfNeeded(p.partials, t.partials)), (e.usePartial || e.useDecorators) && (s.decorators = he.extend({}, t.decorators, p.decorators)), s.hooks = {}, s.protoAccessControl = Xt.createProtoAccessControl(p);
|
|
913
|
+
var u = p.allowCallsToHelperMissing || r;
|
|
912
914
|
jt.moveHelperToHooks(s, "helperMissing", u), jt.moveHelperToHooks(s, "blockHelperMissing", u);
|
|
913
915
|
}
|
|
914
|
-
}, h._child = function(
|
|
916
|
+
}, h._child = function(p, c, u, d) {
|
|
915
917
|
if (e.useBlockParams && !u)
|
|
916
918
|
throw new pe.default("must pass block params");
|
|
917
919
|
if (e.useDepths && !d)
|
|
918
920
|
throw new pe.default("must pass parent depths");
|
|
919
|
-
return
|
|
921
|
+
return je(s, p, e[p], c, 0, u, d);
|
|
920
922
|
}, h;
|
|
921
923
|
}
|
|
922
|
-
function
|
|
924
|
+
function je(e, t, r, n, s, h, p) {
|
|
923
925
|
function c(u) {
|
|
924
|
-
var d = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], g =
|
|
925
|
-
return
|
|
926
|
+
var d = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], g = p;
|
|
927
|
+
return p && u != p[0] && !(u === e.nullContext && p[0] === null) && (g = [u].concat(p)), r(e, u, e.helpers, e.partials, d.data || n, h && [d.blockParams].concat(h), g);
|
|
926
928
|
}
|
|
927
|
-
return c = lr(r, c, e,
|
|
929
|
+
return c = lr(r, c, e, p, n, h), c.program = t, c.depth = p ? p.length : 0, c.blockParams = s || 0, c;
|
|
928
930
|
}
|
|
929
931
|
function Ai(e, t, r) {
|
|
930
932
|
return e ? !e.call && !r.name && (r.name = e, e = r.partials[e]) : r.name === "@partial-block" ? e = r.data["partial-block"] : e = r.partials[r.name], e;
|
|
@@ -953,8 +955,8 @@ function Ti(e, t) {
|
|
|
953
955
|
}
|
|
954
956
|
function lr(e, t, r, n, s, h) {
|
|
955
957
|
if (e.decorator) {
|
|
956
|
-
var
|
|
957
|
-
t = e.decorator(t,
|
|
958
|
+
var p = {};
|
|
959
|
+
t = e.decorator(t, p, r, n && n[0], s, h, n), he.extend(t, p);
|
|
958
960
|
}
|
|
959
961
|
return t;
|
|
960
962
|
}
|
|
@@ -1005,16 +1007,16 @@ var Le = {}, Ri = {
|
|
|
1005
1007
|
Object.prototype.hasOwnProperty.call(A, w) && (M[w] = A[w]);
|
|
1006
1008
|
return M.default = A, M;
|
|
1007
1009
|
}
|
|
1008
|
-
var s = ie, h = n(s),
|
|
1010
|
+
var s = ie, h = n(s), p = ot, c = r(p), u = re, d = r(u), g = Y, E = n(g), a = ve, f = n(a), o = Le, y = r(o);
|
|
1009
1011
|
function S() {
|
|
1010
1012
|
var A = new h.HandlebarsEnvironment();
|
|
1011
|
-
return E.extend(A, h), A.SafeString = c.default, A.Exception = d.default, A.Utils = E, A.escapeExpression = E.escapeExpression, A.VM =
|
|
1012
|
-
return
|
|
1013
|
+
return E.extend(A, h), A.SafeString = c.default, A.Exception = d.default, A.Utils = E, A.escapeExpression = E.escapeExpression, A.VM = f, A.template = function(M) {
|
|
1014
|
+
return f.template(M, A);
|
|
1013
1015
|
}, A;
|
|
1014
1016
|
}
|
|
1015
1017
|
var I = S();
|
|
1016
1018
|
I.create = S, y.default(I), I.default = I, t.default = I, e.exports = t.default;
|
|
1017
|
-
})(ln,
|
|
1019
|
+
})(ln, Qe);
|
|
1018
1020
|
var He = {}, Ii = {
|
|
1019
1021
|
get exports() {
|
|
1020
1022
|
return He;
|
|
@@ -1046,12 +1048,12 @@ var He = {}, Ii = {
|
|
|
1046
1048
|
};
|
|
1047
1049
|
t.default = r, e.exports = t.default;
|
|
1048
1050
|
})(Ii, He);
|
|
1049
|
-
var
|
|
1051
|
+
var Ye = {}, ut = {}, Di = {
|
|
1050
1052
|
get exports() {
|
|
1051
|
-
return
|
|
1053
|
+
return ut;
|
|
1052
1054
|
},
|
|
1053
1055
|
set exports(e) {
|
|
1054
|
-
|
|
1056
|
+
ut = e;
|
|
1055
1057
|
}
|
|
1056
1058
|
};
|
|
1057
1059
|
(function(e, t) {
|
|
@@ -1064,7 +1066,7 @@ var We = {}, ot = {}, Di = {
|
|
|
1064
1066
|
symbols_: { error: 2, root: 3, program: 4, EOF: 5, program_repetition0: 6, statement: 7, mustache: 8, block: 9, rawBlock: 10, partial: 11, partialBlock: 12, content: 13, COMMENT: 14, CONTENT: 15, openRawBlock: 16, rawBlock_repetition0: 17, END_RAW_BLOCK: 18, OPEN_RAW_BLOCK: 19, helperName: 20, openRawBlock_repetition0: 21, openRawBlock_option0: 22, CLOSE_RAW_BLOCK: 23, openBlock: 24, block_option0: 25, closeBlock: 26, openInverse: 27, block_option1: 28, OPEN_BLOCK: 29, openBlock_repetition0: 30, openBlock_option0: 31, openBlock_option1: 32, CLOSE: 33, OPEN_INVERSE: 34, openInverse_repetition0: 35, openInverse_option0: 36, openInverse_option1: 37, openInverseChain: 38, OPEN_INVERSE_CHAIN: 39, openInverseChain_repetition0: 40, openInverseChain_option0: 41, openInverseChain_option1: 42, inverseAndProgram: 43, INVERSE: 44, inverseChain: 45, inverseChain_option0: 46, OPEN_ENDBLOCK: 47, OPEN: 48, mustache_repetition0: 49, mustache_option0: 50, OPEN_UNESCAPED: 51, mustache_repetition1: 52, mustache_option1: 53, CLOSE_UNESCAPED: 54, OPEN_PARTIAL: 55, partialName: 56, partial_repetition0: 57, partial_option0: 58, openPartialBlock: 59, OPEN_PARTIAL_BLOCK: 60, openPartialBlock_repetition0: 61, openPartialBlock_option0: 62, param: 63, sexpr: 64, OPEN_SEXPR: 65, sexpr_repetition0: 66, sexpr_option0: 67, CLOSE_SEXPR: 68, hash: 69, hash_repetition_plus0: 70, hashSegment: 71, ID: 72, EQUALS: 73, blockParams: 74, OPEN_BLOCK_PARAMS: 75, blockParams_repetition_plus0: 76, CLOSE_BLOCK_PARAMS: 77, path: 78, dataName: 79, STRING: 80, NUMBER: 81, BOOLEAN: 82, UNDEFINED: 83, NULL: 84, DATA: 85, pathSegments: 86, SEP: 87, $accept: 0, $end: 1 },
|
|
1065
1067
|
terminals_: { 2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP" },
|
|
1066
1068
|
productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]],
|
|
1067
|
-
performAction: function(c, u, d, g, E, a,
|
|
1069
|
+
performAction: function(c, u, d, g, E, a, f) {
|
|
1068
1070
|
var o = a.length - 1;
|
|
1069
1071
|
switch (E) {
|
|
1070
1072
|
case 1:
|
|
@@ -1312,7 +1314,7 @@ var We = {}, ot = {}, Di = {
|
|
|
1312
1314
|
throw new Error(c);
|
|
1313
1315
|
},
|
|
1314
1316
|
parse: function(c) {
|
|
1315
|
-
var u = this, d = [0], g = [null], E = [], a = this.table,
|
|
1317
|
+
var u = this, d = [0], g = [null], E = [], a = this.table, f = "", o = 0, y = 0;
|
|
1316
1318
|
this.lexer.setInput(c), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
|
|
1317
1319
|
var S = this.lexer.yylloc;
|
|
1318
1320
|
E.push(S);
|
|
@@ -1338,10 +1340,10 @@ Expecting ` + Pe.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ue =
|
|
|
1338
1340
|
throw new Error("Parse Error: multiple actions possible at state: " + w + ", token: " + M);
|
|
1339
1341
|
switch (L[0]) {
|
|
1340
1342
|
case 1:
|
|
1341
|
-
d.push(M), g.push(this.lexer.yytext), E.push(this.lexer.yylloc), d.push(L[1]), M = null, y = this.lexer.yyleng,
|
|
1343
|
+
d.push(M), g.push(this.lexer.yytext), E.push(this.lexer.yylloc), d.push(L[1]), M = null, y = this.lexer.yyleng, f = this.lexer.yytext, o = this.lexer.yylineno, S = this.lexer.yylloc;
|
|
1342
1344
|
break;
|
|
1343
1345
|
case 2:
|
|
1344
|
-
if ($ = this.productions_[L[1]][1], F.$ = g[g.length - $], F._$ = { first_line: E[E.length - ($ || 1)].first_line, last_line: E[E.length - 1].last_line, first_column: E[E.length - ($ || 1)].first_column, last_column: E[E.length - 1].last_column }, I && (F._$.range = [E[E.length - ($ || 1)].range[0], E[E.length - 1].range[1]]), Z = this.performAction.call(F,
|
|
1346
|
+
if ($ = this.productions_[L[1]][1], F.$ = g[g.length - $], F._$ = { first_line: E[E.length - ($ || 1)].first_line, last_line: E[E.length - 1].last_line, first_column: E[E.length - ($ || 1)].first_column, last_column: E[E.length - 1].last_column }, I && (F._$.range = [E[E.length - ($ || 1)].range[0], E[E.length - 1].range[1]]), Z = this.performAction.call(F, f, y, o, this.yy, L[1], g, E), typeof Z < "u")
|
|
1345
1347
|
return Z;
|
|
1346
1348
|
$ && (d = d.slice(0, -1 * $ * 2), g = g.slice(0, -1 * $), E = E.slice(0, -1 * $)), d.push(this.productions_[L[1]][0]), g.push(F.$), E.push(F._$), _e = a[d[d.length - 2]][d[d.length - 1]], d.push(_e);
|
|
1347
1349
|
break;
|
|
@@ -1352,7 +1354,7 @@ Expecting ` + Pe.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ue =
|
|
|
1352
1354
|
return !0;
|
|
1353
1355
|
}
|
|
1354
1356
|
}, s = function() {
|
|
1355
|
-
var
|
|
1357
|
+
var p = {
|
|
1356
1358
|
EOF: 1,
|
|
1357
1359
|
parseError: function(u, d) {
|
|
1358
1360
|
if (this.yy.parser)
|
|
@@ -1407,14 +1409,14 @@ Expecting ` + Pe.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ue =
|
|
|
1407
1409
|
this._input || (this.done = !0);
|
|
1408
1410
|
var u, d, g, E, a;
|
|
1409
1411
|
this._more || (this.yytext = "", this.match = "");
|
|
1410
|
-
for (var
|
|
1412
|
+
for (var f = this._currentRules(), o = 0; o < f.length && (g = this._input.match(this.rules[f[o]]), !(g && (!d || g[0].length > d[0].length) && (d = g, E = o, !this.options.flex))); o++)
|
|
1411
1413
|
;
|
|
1412
1414
|
return d ? (a = d[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
|
|
1413
1415
|
first_line: this.yylloc.last_line,
|
|
1414
1416
|
last_line: this.yylineno + 1,
|
|
1415
1417
|
first_column: this.yylloc.last_column,
|
|
1416
1418
|
last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length
|
|
1417
|
-
}, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._input = this._input.slice(d[0].length), this.matched += d[0], u = this.performAction.call(this, this.yy, this,
|
|
1419
|
+
}, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._input = this._input.slice(d[0].length), this.matched += d[0], u = this.performAction.call(this, this.yy, this, f[E], this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u || void 0) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
1418
1420
|
` + this.showPosition(), { text: "", token: null, line: this.yylineno });
|
|
1419
1421
|
},
|
|
1420
1422
|
lex: function() {
|
|
@@ -1437,9 +1439,9 @@ Expecting ` + Pe.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ue =
|
|
|
1437
1439
|
this.begin(u);
|
|
1438
1440
|
}
|
|
1439
1441
|
};
|
|
1440
|
-
return
|
|
1441
|
-
function a(
|
|
1442
|
-
return d.yytext = d.yytext.substring(
|
|
1442
|
+
return p.options = {}, p.performAction = function(u, d, g, E) {
|
|
1443
|
+
function a(f, o) {
|
|
1444
|
+
return d.yytext = d.yytext.substring(f, d.yyleng - o + f);
|
|
1443
1445
|
}
|
|
1444
1446
|
switch (g) {
|
|
1445
1447
|
case 0:
|
|
@@ -1536,7 +1538,7 @@ Expecting ` + Pe.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ue =
|
|
|
1536
1538
|
case 44:
|
|
1537
1539
|
return 5;
|
|
1538
1540
|
}
|
|
1539
|
-
},
|
|
1541
|
+
}, p.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], p.conditions = { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: !1 }, emu: { rules: [2], inclusive: !1 }, com: { rules: [6], inclusive: !1 }, raw: { rules: [3, 4, 5], inclusive: !1 }, INITIAL: { rules: [0, 1, 44], inclusive: !0 } }, p;
|
|
1540
1542
|
}();
|
|
1541
1543
|
n.lexer = s;
|
|
1542
1544
|
function h() {
|
|
@@ -1545,13 +1547,13 @@ Expecting ` + Pe.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ue =
|
|
|
1545
1547
|
return h.prototype = n, n.Parser = h, new h();
|
|
1546
1548
|
}();
|
|
1547
1549
|
t.default = r, e.exports = t.default;
|
|
1548
|
-
})(Di,
|
|
1549
|
-
var
|
|
1550
|
+
})(Di, ut);
|
|
1551
|
+
var lt = {}, wi = {
|
|
1550
1552
|
get exports() {
|
|
1551
|
-
return
|
|
1553
|
+
return lt;
|
|
1552
1554
|
},
|
|
1553
1555
|
set exports(e) {
|
|
1554
|
-
|
|
1556
|
+
lt = e;
|
|
1555
1557
|
}
|
|
1556
1558
|
}, Be = {}, Mi = {
|
|
1557
1559
|
get exports() {
|
|
@@ -1609,8 +1611,8 @@ var ut = {}, wi = {
|
|
|
1609
1611
|
Program: function(g) {
|
|
1610
1612
|
this.acceptArray(g.body);
|
|
1611
1613
|
},
|
|
1612
|
-
MustacheStatement:
|
|
1613
|
-
Decorator:
|
|
1614
|
+
MustacheStatement: p,
|
|
1615
|
+
Decorator: p,
|
|
1614
1616
|
BlockStatement: c,
|
|
1615
1617
|
DecoratorBlock: c,
|
|
1616
1618
|
PartialStatement: u,
|
|
@@ -1621,7 +1623,7 @@ var ut = {}, wi = {
|
|
|
1621
1623
|
},
|
|
1622
1624
|
CommentStatement: function() {
|
|
1623
1625
|
},
|
|
1624
|
-
SubExpression:
|
|
1626
|
+
SubExpression: p,
|
|
1625
1627
|
PathExpression: function() {
|
|
1626
1628
|
},
|
|
1627
1629
|
StringLiteral: function() {
|
|
@@ -1641,11 +1643,11 @@ var ut = {}, wi = {
|
|
|
1641
1643
|
this.acceptRequired(g, "value");
|
|
1642
1644
|
}
|
|
1643
1645
|
};
|
|
1644
|
-
function
|
|
1646
|
+
function p(d) {
|
|
1645
1647
|
this.acceptRequired(d, "path"), this.acceptArray(d.params), this.acceptKey(d, "hash");
|
|
1646
1648
|
}
|
|
1647
1649
|
function c(d) {
|
|
1648
|
-
|
|
1650
|
+
p.call(this, d), this.acceptKey(d, "program"), this.acceptKey(d, "inverse");
|
|
1649
1651
|
}
|
|
1650
1652
|
function u(d) {
|
|
1651
1653
|
this.acceptRequired(d, "name"), this.acceptArray(d.params), this.acceptKey(d, "hash");
|
|
@@ -1665,19 +1667,19 @@ var ut = {}, wi = {
|
|
|
1665
1667
|
h.prototype = new s.default(), h.prototype.Program = function(g) {
|
|
1666
1668
|
var E = !this.options.ignoreStandalone, a = !this.isRootSeen;
|
|
1667
1669
|
this.isRootSeen = !0;
|
|
1668
|
-
for (var
|
|
1669
|
-
var S =
|
|
1670
|
+
for (var f = g.body, o = 0, y = f.length; o < y; o++) {
|
|
1671
|
+
var S = f[o], I = this.accept(S);
|
|
1670
1672
|
if (I) {
|
|
1671
|
-
var A = f
|
|
1672
|
-
I.close && u(
|
|
1673
|
+
var A = p(f, o, a), M = c(f, o, a), w = I.openStandalone && A, L = I.closeStandalone && M, Z = I.inlineStandalone && A && M;
|
|
1674
|
+
I.close && u(f, o, !0), I.open && d(f, o, !0), E && Z && (u(f, o), d(f, o) && S.type === "PartialStatement" && (S.indent = /([ \t]+$)/.exec(f[o - 1].original)[1])), E && w && (u((S.program || S.inverse).body), d(f, o)), E && L && (u(f, o), d((S.inverse || S.program).body));
|
|
1673
1675
|
}
|
|
1674
1676
|
}
|
|
1675
1677
|
return g;
|
|
1676
1678
|
}, h.prototype.BlockStatement = h.prototype.DecoratorBlock = h.prototype.PartialBlockStatement = function(g) {
|
|
1677
1679
|
this.accept(g.program), this.accept(g.inverse);
|
|
1678
|
-
var E = g.program || g.inverse, a = g.program && g.inverse,
|
|
1680
|
+
var E = g.program || g.inverse, a = g.program && g.inverse, f = a, o = a;
|
|
1679
1681
|
if (a && a.chained)
|
|
1680
|
-
for (
|
|
1682
|
+
for (f = a.body[0].program; o.chained; )
|
|
1681
1683
|
o = o.body[o.body.length - 1].program;
|
|
1682
1684
|
var y = {
|
|
1683
1685
|
open: g.openStrip.open,
|
|
@@ -1685,11 +1687,11 @@ var ut = {}, wi = {
|
|
|
1685
1687
|
// Determine the standalone candiacy. Basically flag our content as being possibly standalone
|
|
1686
1688
|
// so our parent can determine if we actually are standalone
|
|
1687
1689
|
openStandalone: c(E.body),
|
|
1688
|
-
closeStandalone:
|
|
1690
|
+
closeStandalone: p((f || E).body)
|
|
1689
1691
|
};
|
|
1690
1692
|
if (g.openStrip.close && u(E.body, null, !0), a) {
|
|
1691
1693
|
var S = g.inverseStrip;
|
|
1692
|
-
S.open && d(E.body, null, !0), S.close && u(
|
|
1694
|
+
S.open && d(E.body, null, !0), S.close && u(f.body, null, !0), g.closeStrip.open && d(o.body, null, !0), !this.options.ignoreStandalone && p(E.body) && c(f.body) && (d(E.body), u(f.body));
|
|
1693
1695
|
} else
|
|
1694
1696
|
g.closeStrip.open && d(E.body, null, !0);
|
|
1695
1697
|
return y;
|
|
@@ -1703,38 +1705,38 @@ var ut = {}, wi = {
|
|
|
1703
1705
|
close: E.close
|
|
1704
1706
|
};
|
|
1705
1707
|
};
|
|
1706
|
-
function
|
|
1708
|
+
function p(g, E, a) {
|
|
1707
1709
|
E === void 0 && (E = g.length);
|
|
1708
|
-
var
|
|
1709
|
-
if (!
|
|
1710
|
+
var f = g[E - 1], o = g[E - 2];
|
|
1711
|
+
if (!f)
|
|
1710
1712
|
return a;
|
|
1711
|
-
if (
|
|
1712
|
-
return (o || !a ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(
|
|
1713
|
+
if (f.type === "ContentStatement")
|
|
1714
|
+
return (o || !a ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(f.original);
|
|
1713
1715
|
}
|
|
1714
1716
|
function c(g, E, a) {
|
|
1715
1717
|
E === void 0 && (E = -1);
|
|
1716
|
-
var
|
|
1717
|
-
if (!
|
|
1718
|
+
var f = g[E + 1], o = g[E + 2];
|
|
1719
|
+
if (!f)
|
|
1718
1720
|
return a;
|
|
1719
|
-
if (
|
|
1720
|
-
return (o || !a ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(
|
|
1721
|
+
if (f.type === "ContentStatement")
|
|
1722
|
+
return (o || !a ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(f.original);
|
|
1721
1723
|
}
|
|
1722
1724
|
function u(g, E, a) {
|
|
1723
|
-
var
|
|
1724
|
-
if (!(!
|
|
1725
|
-
var o =
|
|
1726
|
-
|
|
1725
|
+
var f = g[E == null ? 0 : E + 1];
|
|
1726
|
+
if (!(!f || f.type !== "ContentStatement" || !a && f.rightStripped)) {
|
|
1727
|
+
var o = f.value;
|
|
1728
|
+
f.value = f.value.replace(a ? /^\s+/ : /^[ \t]*\r?\n?/, ""), f.rightStripped = f.value !== o;
|
|
1727
1729
|
}
|
|
1728
1730
|
}
|
|
1729
1731
|
function d(g, E, a) {
|
|
1730
|
-
var
|
|
1731
|
-
if (!(!
|
|
1732
|
-
var o =
|
|
1733
|
-
return
|
|
1732
|
+
var f = g[E == null ? g.length - 1 : E - 1];
|
|
1733
|
+
if (!(!f || f.type !== "ContentStatement" || !a && f.leftStripped)) {
|
|
1734
|
+
var o = f.value;
|
|
1735
|
+
return f.value = f.value.replace(a ? /\s+$/ : /[ \t]+$/, ""), f.leftStripped = f.value !== o, f.leftStripped;
|
|
1734
1736
|
}
|
|
1735
1737
|
}
|
|
1736
1738
|
t.default = h, e.exports = t.default;
|
|
1737
|
-
})(wi,
|
|
1739
|
+
})(wi, lt);
|
|
1738
1740
|
var se = {};
|
|
1739
1741
|
se.__esModule = !0;
|
|
1740
1742
|
se.SourceLocation = Li;
|
|
@@ -1780,9 +1782,9 @@ function Fi(e) {
|
|
|
1780
1782
|
}
|
|
1781
1783
|
function Ui(e, t, r) {
|
|
1782
1784
|
r = this.locInfo(r);
|
|
1783
|
-
for (var n = e ? "@" : "", s = [], h = 0,
|
|
1784
|
-
var u = t[
|
|
1785
|
-
if (n += (t[
|
|
1785
|
+
for (var n = e ? "@" : "", s = [], h = 0, p = 0, c = t.length; p < c; p++) {
|
|
1786
|
+
var u = t[p].part, d = t[p].original !== u;
|
|
1787
|
+
if (n += (t[p].separator || "") + u, !d && (u === ".." || u === "." || u === "this")) {
|
|
1786
1788
|
if (s.length > 0)
|
|
1787
1789
|
throw new It.default("Invalid path: " + n, { loc: r });
|
|
1788
1790
|
u === ".." && h++;
|
|
@@ -1799,7 +1801,7 @@ function Ui(e, t, r) {
|
|
|
1799
1801
|
};
|
|
1800
1802
|
}
|
|
1801
1803
|
function Gi(e, t, r, n, s, h) {
|
|
1802
|
-
var
|
|
1804
|
+
var p = n.charAt(3) || n.charAt(2), c = p !== "{" && p !== "&", u = /\*/.test(n);
|
|
1803
1805
|
return {
|
|
1804
1806
|
type: u ? "Decorator" : "MustacheStatement",
|
|
1805
1807
|
path: e,
|
|
@@ -1832,16 +1834,16 @@ function Wi(e, t, r, n) {
|
|
|
1832
1834
|
}
|
|
1833
1835
|
function Yi(e, t, r, n, s, h) {
|
|
1834
1836
|
n && n.path && Dt(e, n);
|
|
1835
|
-
var
|
|
1837
|
+
var p = /\*/.test(e.open);
|
|
1836
1838
|
t.blockParams = e.blockParams;
|
|
1837
1839
|
var c = void 0, u = void 0;
|
|
1838
1840
|
if (r) {
|
|
1839
|
-
if (
|
|
1841
|
+
if (p)
|
|
1840
1842
|
throw new It.default("Unexpected inverse block on decorator", r);
|
|
1841
1843
|
r.chain && (r.program.body[0].closeStrip = n.strip), u = r.strip, c = r.program;
|
|
1842
1844
|
}
|
|
1843
1845
|
return s && (s = c, c = t, t = s), {
|
|
1844
|
-
type:
|
|
1846
|
+
type: p ? "DecoratorBlock" : "BlockStatement",
|
|
1845
1847
|
path: e.path,
|
|
1846
1848
|
params: e.params,
|
|
1847
1849
|
hash: e.hash,
|
|
@@ -1887,9 +1889,9 @@ function Ki(e, t, r, n) {
|
|
|
1887
1889
|
loc: this.locInfo(n)
|
|
1888
1890
|
};
|
|
1889
1891
|
}
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1892
|
+
Ye.__esModule = !0;
|
|
1893
|
+
Ye.parseWithoutProcessing = hr;
|
|
1894
|
+
Ye.parse = $i;
|
|
1893
1895
|
function ji(e) {
|
|
1894
1896
|
if (e && e.__esModule)
|
|
1895
1897
|
return e;
|
|
@@ -1902,36 +1904,36 @@ function ji(e) {
|
|
|
1902
1904
|
function cr(e) {
|
|
1903
1905
|
return e && e.__esModule ? e : { default: e };
|
|
1904
1906
|
}
|
|
1905
|
-
var Xi =
|
|
1906
|
-
|
|
1907
|
-
var
|
|
1908
|
-
Vi.extend(
|
|
1907
|
+
var Xi = ut, St = cr(Xi), Ji = lt, zi = cr(Ji), Qi = se, Zi = ji(Qi), Vi = Y;
|
|
1908
|
+
Ye.parser = St.default;
|
|
1909
|
+
var Xe = {};
|
|
1910
|
+
Vi.extend(Xe, Zi);
|
|
1909
1911
|
function hr(e, t) {
|
|
1910
1912
|
if (e.type === "Program")
|
|
1911
1913
|
return e;
|
|
1912
|
-
|
|
1913
|
-
return new
|
|
1914
|
+
St.default.yy = Xe, Xe.locInfo = function(n) {
|
|
1915
|
+
return new Xe.SourceLocation(t && t.srcName, n);
|
|
1914
1916
|
};
|
|
1915
|
-
var r =
|
|
1917
|
+
var r = St.default.parse(e);
|
|
1916
1918
|
return r;
|
|
1917
1919
|
}
|
|
1918
1920
|
function $i(e, t) {
|
|
1919
1921
|
var r = hr(e, t), n = new zi.default(t);
|
|
1920
1922
|
return n.accept(r);
|
|
1921
1923
|
}
|
|
1922
|
-
var
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1924
|
+
var qe = {};
|
|
1925
|
+
qe.__esModule = !0;
|
|
1926
|
+
qe.Compiler = bt;
|
|
1927
|
+
qe.precompile = ns;
|
|
1928
|
+
qe.compile = is;
|
|
1927
1929
|
function pr(e) {
|
|
1928
1930
|
return e && e.__esModule ? e : { default: e };
|
|
1929
1931
|
}
|
|
1930
1932
|
var es = re, Me = pr(es), Fe = Y, ts = He, Re = pr(ts), rs = [].slice;
|
|
1931
|
-
function
|
|
1933
|
+
function bt() {
|
|
1932
1934
|
}
|
|
1933
|
-
|
|
1934
|
-
compiler:
|
|
1935
|
+
bt.prototype = {
|
|
1936
|
+
compiler: bt,
|
|
1935
1937
|
equals: function(t) {
|
|
1936
1938
|
var r = this.opcodes.length;
|
|
1937
1939
|
if (t.opcodes.length !== r)
|
|
@@ -1998,8 +2000,8 @@ St.prototype = {
|
|
|
1998
2000
|
n.length || (this.options.explicitPartialContext ? this.opcode("pushLiteral", "undefined") : n.push({ type: "PathExpression", parts: [], depth: 0 }));
|
|
1999
2001
|
var s = t.name.original, h = t.name.type === "SubExpression";
|
|
2000
2002
|
h && this.accept(t.name), this.setupFullMustacheParams(t, r, void 0, !0);
|
|
2001
|
-
var
|
|
2002
|
-
this.options.preventIndent &&
|
|
2003
|
+
var p = t.indent || "";
|
|
2004
|
+
this.options.preventIndent && p && (this.opcode("appendContent", p), p = ""), this.opcode("invokePartial", h, s, p), this.opcode("append");
|
|
2003
2005
|
},
|
|
2004
2006
|
PartialBlockStatement: function(t) {
|
|
2005
2007
|
this.PartialStatement(t);
|
|
@@ -2021,20 +2023,20 @@ St.prototype = {
|
|
|
2021
2023
|
r === "simple" ? this.simpleSexpr(t) : r === "helper" ? this.helperSexpr(t) : this.ambiguousSexpr(t);
|
|
2022
2024
|
},
|
|
2023
2025
|
ambiguousSexpr: function(t, r, n) {
|
|
2024
|
-
var s = t.path, h = s.parts[0],
|
|
2025
|
-
this.opcode("getContext", s.depth), this.opcode("pushProgram", r), this.opcode("pushProgram", n), s.strict = !0, this.accept(s), this.opcode("invokeAmbiguous", h,
|
|
2026
|
+
var s = t.path, h = s.parts[0], p = r != null || n != null;
|
|
2027
|
+
this.opcode("getContext", s.depth), this.opcode("pushProgram", r), this.opcode("pushProgram", n), s.strict = !0, this.accept(s), this.opcode("invokeAmbiguous", h, p);
|
|
2026
2028
|
},
|
|
2027
2029
|
simpleSexpr: function(t) {
|
|
2028
2030
|
var r = t.path;
|
|
2029
2031
|
r.strict = !0, this.accept(r), this.opcode("resolvePossibleLambda");
|
|
2030
2032
|
},
|
|
2031
2033
|
helperSexpr: function(t, r, n) {
|
|
2032
|
-
var s = this.setupFullMustacheParams(t, r, n), h = t.path,
|
|
2033
|
-
if (this.options.knownHelpers[
|
|
2034
|
-
this.opcode("invokeKnownHelper", s.length,
|
|
2034
|
+
var s = this.setupFullMustacheParams(t, r, n), h = t.path, p = h.parts[0];
|
|
2035
|
+
if (this.options.knownHelpers[p])
|
|
2036
|
+
this.opcode("invokeKnownHelper", s.length, p);
|
|
2035
2037
|
else {
|
|
2036
2038
|
if (this.options.knownHelpersOnly)
|
|
2037
|
-
throw new Me.default("You specified knownHelpersOnly, but used the unknown helper " +
|
|
2039
|
+
throw new Me.default("You specified knownHelpersOnly, but used the unknown helper " + p, t);
|
|
2038
2040
|
h.strict = !0, h.falsy = !0, this.accept(h), this.opcode("invokeHelper", s.length, h.original, Re.default.helpers.simpleId(h));
|
|
2039
2041
|
}
|
|
2040
2042
|
},
|
|
@@ -2080,8 +2082,8 @@ St.prototype = {
|
|
|
2080
2082
|
classifySexpr: function(t) {
|
|
2081
2083
|
var r = Re.default.helpers.simpleId(t.path), n = r && !!this.blockParamIndex(t.path.parts[0]), s = !n && Re.default.helpers.helperExpression(t), h = !n && (s || r);
|
|
2082
2084
|
if (h && !s) {
|
|
2083
|
-
var
|
|
2084
|
-
c.knownHelpers[
|
|
2085
|
+
var p = t.path.parts[0], c = this.options;
|
|
2086
|
+
c.knownHelpers[p] ? s = !0 : c.knownHelpersOnly && (h = !1);
|
|
2085
2087
|
}
|
|
2086
2088
|
return s ? "helper" : h ? "ambiguous" : "simple";
|
|
2087
2089
|
},
|
|
@@ -2130,16 +2132,16 @@ function is(e, t, r) {
|
|
|
2130
2132
|
t = Fe.extend({}, t), "data" in t || (t.data = !0), t.compat && (t.useDepths = !0);
|
|
2131
2133
|
var n = void 0;
|
|
2132
2134
|
function s() {
|
|
2133
|
-
var
|
|
2135
|
+
var p = r.parse(e, t), c = new r.Compiler().compile(p, t), u = new r.JavaScriptCompiler().compile(c, t, void 0, !0);
|
|
2134
2136
|
return r.template(u);
|
|
2135
2137
|
}
|
|
2136
|
-
function h(
|
|
2137
|
-
return n || (n = s()), n.call(this,
|
|
2138
|
+
function h(p, c) {
|
|
2139
|
+
return n || (n = s()), n.call(this, p, c);
|
|
2138
2140
|
}
|
|
2139
|
-
return h._setup = function(
|
|
2140
|
-
return n || (n = s()), n._setup(
|
|
2141
|
-
}, h._child = function(
|
|
2142
|
-
return n || (n = s()), n._child(
|
|
2141
|
+
return h._setup = function(p) {
|
|
2142
|
+
return n || (n = s()), n._setup(p);
|
|
2143
|
+
}, h._child = function(p, c, u, d) {
|
|
2144
|
+
return n || (n = s()), n._child(p, c, u, d);
|
|
2143
2145
|
}, h;
|
|
2144
2146
|
}
|
|
2145
2147
|
function fr(e, t) {
|
|
@@ -2165,19 +2167,19 @@ function Jt(e) {
|
|
|
2165
2167
|
};
|
|
2166
2168
|
}
|
|
2167
2169
|
}
|
|
2168
|
-
var
|
|
2170
|
+
var ct = {}, ss = {
|
|
2169
2171
|
get exports() {
|
|
2170
|
-
return
|
|
2172
|
+
return ct;
|
|
2171
2173
|
},
|
|
2172
2174
|
set exports(e) {
|
|
2173
|
-
|
|
2175
|
+
ct = e;
|
|
2174
2176
|
}
|
|
2175
|
-
},
|
|
2177
|
+
}, ht = {}, as = {
|
|
2176
2178
|
get exports() {
|
|
2177
|
-
return
|
|
2179
|
+
return ht;
|
|
2178
2180
|
},
|
|
2179
2181
|
set exports(e) {
|
|
2180
|
-
|
|
2182
|
+
ht = e;
|
|
2181
2183
|
}
|
|
2182
2184
|
};
|
|
2183
2185
|
(function(e, t) {
|
|
@@ -2213,10 +2215,10 @@ var lt = {}, ss = {
|
|
|
2213
2215
|
return c + "";
|
|
2214
2216
|
return c;
|
|
2215
2217
|
}
|
|
2216
|
-
function
|
|
2218
|
+
function p(c) {
|
|
2217
2219
|
this.srcFile = c, this.source = [];
|
|
2218
2220
|
}
|
|
2219
|
-
|
|
2221
|
+
p.prototype = {
|
|
2220
2222
|
isEmpty: function() {
|
|
2221
2223
|
return !this.source.length;
|
|
2222
2224
|
},
|
|
@@ -2254,8 +2256,8 @@ var lt = {}, ss = {
|
|
|
2254
2256
|
objectLiteral: function(u) {
|
|
2255
2257
|
var d = this, g = [];
|
|
2256
2258
|
Object.keys(u).forEach(function(a) {
|
|
2257
|
-
var
|
|
2258
|
-
|
|
2259
|
+
var f = h(u[a], d);
|
|
2260
|
+
f !== "undefined" && g.push([d.quotedString(a), ":", f]);
|
|
2259
2261
|
});
|
|
2260
2262
|
var E = this.generateList(g);
|
|
2261
2263
|
return E.prepend("{"), E.add("}"), E;
|
|
@@ -2269,14 +2271,14 @@ var lt = {}, ss = {
|
|
|
2269
2271
|
var d = this.generateList(u);
|
|
2270
2272
|
return d.prepend("["), d.add("]"), d;
|
|
2271
2273
|
}
|
|
2272
|
-
}, t.default =
|
|
2273
|
-
})(as,
|
|
2274
|
+
}, t.default = p, e.exports = t.default;
|
|
2275
|
+
})(as, ht);
|
|
2274
2276
|
(function(e, t) {
|
|
2275
2277
|
t.__esModule = !0;
|
|
2276
2278
|
function r(a) {
|
|
2277
2279
|
return a && a.__esModule ? a : { default: a };
|
|
2278
2280
|
}
|
|
2279
|
-
var n = ie, s = re, h = r(s),
|
|
2281
|
+
var n = ie, s = re, h = r(s), p = Y, c = ht, u = r(c);
|
|
2280
2282
|
function d(a) {
|
|
2281
2283
|
this.value = a;
|
|
2282
2284
|
}
|
|
@@ -2285,34 +2287,34 @@ var lt = {}, ss = {
|
|
|
2285
2287
|
g.prototype = {
|
|
2286
2288
|
// PUBLIC API: You can override these methods in a subclass to provide
|
|
2287
2289
|
// alternative compiled forms for name lookup and buffering semantics
|
|
2288
|
-
nameLookup: function(
|
|
2289
|
-
return this.internalNameLookup(
|
|
2290
|
+
nameLookup: function(f, o) {
|
|
2291
|
+
return this.internalNameLookup(f, o);
|
|
2290
2292
|
},
|
|
2291
|
-
depthedLookup: function(
|
|
2292
|
-
return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(
|
|
2293
|
+
depthedLookup: function(f) {
|
|
2294
|
+
return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(f), ")"];
|
|
2293
2295
|
},
|
|
2294
2296
|
compilerInfo: function() {
|
|
2295
|
-
var
|
|
2296
|
-
return [
|
|
2297
|
+
var f = n.COMPILER_REVISION, o = n.REVISION_CHANGES[f];
|
|
2298
|
+
return [f, o];
|
|
2297
2299
|
},
|
|
2298
|
-
appendToBuffer: function(
|
|
2299
|
-
return
|
|
2300
|
+
appendToBuffer: function(f, o, y) {
|
|
2301
|
+
return p.isArray(f) || (f = [f]), f = this.source.wrap(f, o), this.environment.isSimple ? ["return ", f, ";"] : y ? ["buffer += ", f, ";"] : (f.appendToBuffer = !0, f);
|
|
2300
2302
|
},
|
|
2301
2303
|
initializeBuffer: function() {
|
|
2302
2304
|
return this.quotedString("");
|
|
2303
2305
|
},
|
|
2304
2306
|
// END PUBLIC API
|
|
2305
|
-
internalNameLookup: function(
|
|
2306
|
-
return this.lookupPropertyFunctionIsUsed = !0, ["lookupProperty(",
|
|
2307
|
+
internalNameLookup: function(f, o) {
|
|
2308
|
+
return this.lookupPropertyFunctionIsUsed = !0, ["lookupProperty(", f, ",", JSON.stringify(o), ")"];
|
|
2307
2309
|
},
|
|
2308
2310
|
lookupPropertyFunctionIsUsed: !1,
|
|
2309
|
-
compile: function(
|
|
2310
|
-
this.environment =
|
|
2311
|
+
compile: function(f, o, y, S) {
|
|
2312
|
+
this.environment = f, this.options = o, this.stringParams = this.options.stringParams, this.trackIds = this.options.trackIds, this.precompile = !S, this.name = this.environment.name, this.isChild = !!y, this.context = y || {
|
|
2311
2313
|
decorators: [],
|
|
2312
2314
|
programs: [],
|
|
2313
2315
|
environments: []
|
|
2314
|
-
}, this.preamble(), this.stackSlot = 0, this.stackVars = [], this.aliases = {}, this.registers = { list: [] }, this.hashes = [], this.compileStack = [], this.inlineStack = [], this.blockParams = [], this.compileChildren(
|
|
2315
|
-
var I =
|
|
2316
|
+
}, this.preamble(), this.stackSlot = 0, this.stackVars = [], this.aliases = {}, this.registers = { list: [] }, this.hashes = [], this.compileStack = [], this.inlineStack = [], this.blockParams = [], this.compileChildren(f, o), this.useDepths = this.useDepths || f.useDepths || f.useDecorators || this.options.compat, this.useBlockParams = this.useBlockParams || f.useBlockParams;
|
|
2317
|
+
var I = f.opcodes, A = void 0, M = void 0, w = void 0, L = void 0;
|
|
2316
2318
|
for (w = 0, L = I.length; w < L; w++)
|
|
2317
2319
|
A = I[w], this.source.currentLocation = A.loc, M = M || A.loc, this[A.opcode].apply(this, A.args);
|
|
2318
2320
|
if (this.source.currentLocation = M, this.pushSource(""), this.stackSlot || this.inlineStack.length || this.compileStack.length)
|
|
@@ -2337,7 +2339,7 @@ var lt = {}, ss = {
|
|
|
2337
2339
|
preamble: function() {
|
|
2338
2340
|
this.lastContext = 0, this.source = new u.default(this.options.srcName), this.decorators = new u.default(this.options.srcName);
|
|
2339
2341
|
},
|
|
2340
|
-
createFunctionContext: function(
|
|
2342
|
+
createFunctionContext: function(f) {
|
|
2341
2343
|
var o = this, y = "", S = this.stackVars.concat(this.registers.list);
|
|
2342
2344
|
S.length > 0 && (y += ", " + S.join(", "));
|
|
2343
2345
|
var I = 0;
|
|
@@ -2348,14 +2350,14 @@ var lt = {}, ss = {
|
|
|
2348
2350
|
var A = ["container", "depth0", "helpers", "partials", "data"];
|
|
2349
2351
|
(this.useBlockParams || this.useDepths) && A.push("blockParams"), this.useDepths && A.push("depths");
|
|
2350
2352
|
var M = this.mergeSource(y);
|
|
2351
|
-
return
|
|
2353
|
+
return f ? (A.push(M), Function.apply(this, A)) : this.source.wrap(["function(", A.join(","), `) {
|
|
2352
2354
|
`, M, "}"]);
|
|
2353
2355
|
},
|
|
2354
|
-
mergeSource: function(
|
|
2356
|
+
mergeSource: function(f) {
|
|
2355
2357
|
var o = this.environment.isSimple, y = !this.forceBuffer, S = void 0, I = void 0, A = void 0, M = void 0;
|
|
2356
2358
|
return this.source.each(function(w) {
|
|
2357
2359
|
w.appendToBuffer ? (A ? w.prepend(" + ") : A = w, M = w) : (A && (I ? A.prepend("buffer += ") : S = !0, M.add(";"), A = M = void 0), I = !0, o || (y = !1));
|
|
2358
|
-
}), y ? A ? (A.prepend("return "), M.add(";")) : I || this.source.push('return "";') : (
|
|
2360
|
+
}), y ? A ? (A.prepend("return "), M.add(";")) : I || this.source.push('return "";') : (f += ", buffer = " + (S ? "" : this.initializeBuffer()), A ? (A.prepend("return buffer + "), M.add(";")) : this.source.push("return buffer;")), f && this.source.prepend("var " + f.substring(2) + (S ? "" : `;
|
|
2359
2361
|
`)), this.source.merge();
|
|
2360
2362
|
},
|
|
2361
2363
|
lookupPropertyFunctionVarDeclaration: function() {
|
|
@@ -2377,9 +2379,9 @@ var lt = {}, ss = {
|
|
|
2377
2379
|
// `{{#this.foo}}...{{/this.foo}}`, resolve the value of `foo`, and
|
|
2378
2380
|
// replace it on the stack with the result of properly
|
|
2379
2381
|
// invoking blockHelperMissing.
|
|
2380
|
-
blockValue: function(
|
|
2382
|
+
blockValue: function(f) {
|
|
2381
2383
|
var o = this.aliasable("container.hooks.blockHelperMissing"), y = [this.contextName(0)];
|
|
2382
|
-
this.setupHelperArgs(
|
|
2384
|
+
this.setupHelperArgs(f, 0, y);
|
|
2383
2385
|
var S = this.popStack();
|
|
2384
2386
|
y.splice(1, 0, S), this.push(this.source.functionCall(o, "call", y));
|
|
2385
2387
|
},
|
|
@@ -2390,10 +2392,10 @@ var lt = {}, ss = {
|
|
|
2390
2392
|
// On stack, after, if no lastHelper: same as [blockValue]
|
|
2391
2393
|
// On stack, after, if lastHelper: value
|
|
2392
2394
|
ambiguousBlockValue: function() {
|
|
2393
|
-
var
|
|
2395
|
+
var f = this.aliasable("container.hooks.blockHelperMissing"), o = [this.contextName(0)];
|
|
2394
2396
|
this.setupHelperArgs("", 0, o, !0), this.flushInline();
|
|
2395
2397
|
var y = this.topStack();
|
|
2396
|
-
o.splice(1, 0, y), this.pushSource(["if (!", this.lastHelper, ") { ", y, " = ", this.source.functionCall(
|
|
2398
|
+
o.splice(1, 0, y), this.pushSource(["if (!", this.lastHelper, ") { ", y, " = ", this.source.functionCall(f, "call", o), "}"]);
|
|
2397
2399
|
},
|
|
2398
2400
|
// [appendContent]
|
|
2399
2401
|
//
|
|
@@ -2401,8 +2403,8 @@ var lt = {}, ss = {
|
|
|
2401
2403
|
// On stack, after: ...
|
|
2402
2404
|
//
|
|
2403
2405
|
// Appends the string value of `content` to the current buffer
|
|
2404
|
-
appendContent: function(
|
|
2405
|
-
this.pendingContent ?
|
|
2406
|
+
appendContent: function(f) {
|
|
2407
|
+
this.pendingContent ? f = this.pendingContent + f : this.pendingLocation = this.source.currentLocation, this.pendingContent = f;
|
|
2406
2408
|
},
|
|
2407
2409
|
// [append]
|
|
2408
2410
|
//
|
|
@@ -2419,8 +2421,8 @@ var lt = {}, ss = {
|
|
|
2419
2421
|
return [" != null ? ", o, ' : ""'];
|
|
2420
2422
|
}), this.pushSource(this.appendToBuffer(this.popStack()));
|
|
2421
2423
|
else {
|
|
2422
|
-
var
|
|
2423
|
-
this.pushSource(["if (",
|
|
2424
|
+
var f = this.popStack();
|
|
2425
|
+
this.pushSource(["if (", f, " != null) { ", this.appendToBuffer(f, void 0, !0), " }"]), this.environment.isSimple && this.pushSource(["else { ", this.appendToBuffer("''", void 0, !0), " }"]);
|
|
2424
2426
|
}
|
|
2425
2427
|
},
|
|
2426
2428
|
// [appendEscaped]
|
|
@@ -2439,8 +2441,8 @@ var lt = {}, ss = {
|
|
|
2439
2441
|
// Compiler value, after: lastContext=depth
|
|
2440
2442
|
//
|
|
2441
2443
|
// Set the value of the `lastContext` compiler value to the depth
|
|
2442
|
-
getContext: function(
|
|
2443
|
-
this.lastContext =
|
|
2444
|
+
getContext: function(f) {
|
|
2445
|
+
this.lastContext = f;
|
|
2444
2446
|
},
|
|
2445
2447
|
// [pushContext]
|
|
2446
2448
|
//
|
|
@@ -2458,9 +2460,9 @@ var lt = {}, ss = {
|
|
|
2458
2460
|
//
|
|
2459
2461
|
// Looks up the value of `name` on the current context and pushes
|
|
2460
2462
|
// it onto the stack.
|
|
2461
|
-
lookupOnContext: function(
|
|
2463
|
+
lookupOnContext: function(f, o, y, S) {
|
|
2462
2464
|
var I = 0;
|
|
2463
|
-
!S && this.options.compat && !this.lastContext ? this.push(this.depthedLookup(
|
|
2465
|
+
!S && this.options.compat && !this.lastContext ? this.push(this.depthedLookup(f[I++])) : this.pushContext(), this.resolvePath("context", f, I, o, y);
|
|
2464
2466
|
},
|
|
2465
2467
|
// [lookupBlockParam]
|
|
2466
2468
|
//
|
|
@@ -2469,8 +2471,8 @@ var lt = {}, ss = {
|
|
|
2469
2471
|
//
|
|
2470
2472
|
// Looks up the value of `parts` on the given block param and pushes
|
|
2471
2473
|
// it onto the stack.
|
|
2472
|
-
lookupBlockParam: function(
|
|
2473
|
-
this.useBlockParams = !0, this.push(["blockParams[",
|
|
2474
|
+
lookupBlockParam: function(f, o) {
|
|
2475
|
+
this.useBlockParams = !0, this.push(["blockParams[", f[0], "][", f[1], "]"]), this.resolvePath("context", o, 1);
|
|
2474
2476
|
},
|
|
2475
2477
|
// [lookupData]
|
|
2476
2478
|
//
|
|
@@ -2478,18 +2480,18 @@ var lt = {}, ss = {
|
|
|
2478
2480
|
// On stack, after: data, ...
|
|
2479
2481
|
//
|
|
2480
2482
|
// Push the data lookup operator
|
|
2481
|
-
lookupData: function(
|
|
2482
|
-
|
|
2483
|
+
lookupData: function(f, o, y) {
|
|
2484
|
+
f ? this.pushStackLiteral("container.data(data, " + f + ")") : this.pushStackLiteral("data"), this.resolvePath("data", o, 0, !0, y);
|
|
2483
2485
|
},
|
|
2484
|
-
resolvePath: function(
|
|
2486
|
+
resolvePath: function(f, o, y, S, I) {
|
|
2485
2487
|
var A = this;
|
|
2486
2488
|
if (this.options.strict || this.options.assumeObjects) {
|
|
2487
|
-
this.push(E(this.options.strict && I, this, o, y,
|
|
2489
|
+
this.push(E(this.options.strict && I, this, o, y, f));
|
|
2488
2490
|
return;
|
|
2489
2491
|
}
|
|
2490
2492
|
for (var M = o.length; y < M; y++)
|
|
2491
2493
|
this.replaceStack(function(w) {
|
|
2492
|
-
var L = A.nameLookup(w, o[y],
|
|
2494
|
+
var L = A.nameLookup(w, o[y], f);
|
|
2493
2495
|
return S ? [" && ", L] : [" != null ? ", L, " : ", w];
|
|
2494
2496
|
});
|
|
2495
2497
|
},
|
|
@@ -2511,18 +2513,18 @@ var lt = {}, ss = {
|
|
|
2511
2513
|
// This opcode is designed for use in string mode, which
|
|
2512
2514
|
// provides the string value of a parameter along with its
|
|
2513
2515
|
// depth rather than resolving it immediately.
|
|
2514
|
-
pushStringParam: function(
|
|
2515
|
-
this.pushContext(), this.pushString(o), o !== "SubExpression" && (typeof
|
|
2516
|
+
pushStringParam: function(f, o) {
|
|
2517
|
+
this.pushContext(), this.pushString(o), o !== "SubExpression" && (typeof f == "string" ? this.pushString(f) : this.pushStackLiteral(f));
|
|
2516
2518
|
},
|
|
2517
|
-
emptyHash: function(
|
|
2518
|
-
this.trackIds && this.push("{}"), this.stringParams && (this.push("{}"), this.push("{}")), this.pushStackLiteral(
|
|
2519
|
+
emptyHash: function(f) {
|
|
2520
|
+
this.trackIds && this.push("{}"), this.stringParams && (this.push("{}"), this.push("{}")), this.pushStackLiteral(f ? "undefined" : "{}");
|
|
2519
2521
|
},
|
|
2520
2522
|
pushHash: function() {
|
|
2521
2523
|
this.hash && this.hashes.push(this.hash), this.hash = { values: {}, types: [], contexts: [], ids: [] };
|
|
2522
2524
|
},
|
|
2523
2525
|
popHash: function() {
|
|
2524
|
-
var
|
|
2525
|
-
this.hash = this.hashes.pop(), this.trackIds && this.push(this.objectLiteral(
|
|
2526
|
+
var f = this.hash;
|
|
2527
|
+
this.hash = this.hashes.pop(), this.trackIds && this.push(this.objectLiteral(f.ids)), this.stringParams && (this.push(this.objectLiteral(f.contexts)), this.push(this.objectLiteral(f.types))), this.push(this.objectLiteral(f.values));
|
|
2526
2528
|
},
|
|
2527
2529
|
// [pushString]
|
|
2528
2530
|
//
|
|
@@ -2530,8 +2532,8 @@ var lt = {}, ss = {
|
|
|
2530
2532
|
// On stack, after: quotedString(string), ...
|
|
2531
2533
|
//
|
|
2532
2534
|
// Push a quoted version of `string` onto the stack
|
|
2533
|
-
pushString: function(
|
|
2534
|
-
this.pushStackLiteral(this.quotedString(
|
|
2535
|
+
pushString: function(f) {
|
|
2536
|
+
this.pushStackLiteral(this.quotedString(f));
|
|
2535
2537
|
},
|
|
2536
2538
|
// [pushLiteral]
|
|
2537
2539
|
//
|
|
@@ -2541,8 +2543,8 @@ var lt = {}, ss = {
|
|
|
2541
2543
|
// Pushes a value onto the stack. This operation prevents
|
|
2542
2544
|
// the compiler from creating a temporary variable to hold
|
|
2543
2545
|
// it.
|
|
2544
|
-
pushLiteral: function(
|
|
2545
|
-
this.pushStackLiteral(
|
|
2546
|
+
pushLiteral: function(f) {
|
|
2547
|
+
this.pushStackLiteral(f);
|
|
2546
2548
|
},
|
|
2547
2549
|
// [pushProgram]
|
|
2548
2550
|
//
|
|
@@ -2552,8 +2554,8 @@ var lt = {}, ss = {
|
|
|
2552
2554
|
// Push a program expression onto the stack. This takes
|
|
2553
2555
|
// a compile-time guid and converts it into a runtime-accessible
|
|
2554
2556
|
// expression.
|
|
2555
|
-
pushProgram: function(
|
|
2556
|
-
|
|
2557
|
+
pushProgram: function(f) {
|
|
2558
|
+
f != null ? this.pushStackLiteral(this.programExpression(f)) : this.pushStackLiteral(null);
|
|
2557
2559
|
},
|
|
2558
2560
|
// [registerDecorator]
|
|
2559
2561
|
//
|
|
@@ -2562,8 +2564,8 @@ var lt = {}, ss = {
|
|
|
2562
2564
|
//
|
|
2563
2565
|
// Pops off the decorator's parameters, invokes the decorator,
|
|
2564
2566
|
// and inserts the decorator into the decorators list.
|
|
2565
|
-
registerDecorator: function(
|
|
2566
|
-
var y = this.nameLookup("decorators", o, "decorator"), S = this.setupHelperArgs(o,
|
|
2567
|
+
registerDecorator: function(f, o) {
|
|
2568
|
+
var y = this.nameLookup("decorators", o, "decorator"), S = this.setupHelperArgs(o, f);
|
|
2567
2569
|
this.decorators.push(["fn = ", this.decorators.functionCall(y, "", ["fn", "props", "container", S]), " || fn;"]);
|
|
2568
2570
|
},
|
|
2569
2571
|
// [invokeHelper]
|
|
@@ -2575,17 +2577,17 @@ var lt = {}, ss = {
|
|
|
2575
2577
|
// and pushes the helper's return value onto the stack.
|
|
2576
2578
|
//
|
|
2577
2579
|
// If the helper is not found, `helperMissing` is called.
|
|
2578
|
-
invokeHelper: function(
|
|
2579
|
-
var S = this.popStack(), I = this.setupHelper(
|
|
2580
|
+
invokeHelper: function(f, o, y) {
|
|
2581
|
+
var S = this.popStack(), I = this.setupHelper(f, o), A = [];
|
|
2580
2582
|
y && A.push(I.name), A.push(S), this.options.strict || A.push(this.aliasable("container.hooks.helperMissing"));
|
|
2581
2583
|
var M = ["(", this.itemsSeparatedBy(A, "||"), ")"], w = this.source.functionCall(M, "call", I.callParams);
|
|
2582
2584
|
this.push(w);
|
|
2583
2585
|
},
|
|
2584
|
-
itemsSeparatedBy: function(
|
|
2586
|
+
itemsSeparatedBy: function(f, o) {
|
|
2585
2587
|
var y = [];
|
|
2586
|
-
y.push(
|
|
2587
|
-
for (var S = 1; S <
|
|
2588
|
-
y.push(o,
|
|
2588
|
+
y.push(f[0]);
|
|
2589
|
+
for (var S = 1; S < f.length; S++)
|
|
2590
|
+
y.push(o, f[S]);
|
|
2589
2591
|
return y;
|
|
2590
2592
|
},
|
|
2591
2593
|
// [invokeKnownHelper]
|
|
@@ -2595,8 +2597,8 @@ var lt = {}, ss = {
|
|
|
2595
2597
|
//
|
|
2596
2598
|
// This operation is used when the helper is known to exist,
|
|
2597
2599
|
// so a `helperMissing` fallback is not required.
|
|
2598
|
-
invokeKnownHelper: function(
|
|
2599
|
-
var y = this.setupHelper(
|
|
2600
|
+
invokeKnownHelper: function(f, o) {
|
|
2601
|
+
var y = this.setupHelper(f, o);
|
|
2600
2602
|
this.push(this.source.functionCall(y.name, "call", y.callParams));
|
|
2601
2603
|
},
|
|
2602
2604
|
// [invokeAmbiguous]
|
|
@@ -2611,11 +2613,11 @@ var lt = {}, ss = {
|
|
|
2611
2613
|
// This operation emits more code than the other options,
|
|
2612
2614
|
// and can be avoided by passing the `knownHelpers` and
|
|
2613
2615
|
// `knownHelpersOnly` flags at compile-time.
|
|
2614
|
-
invokeAmbiguous: function(
|
|
2616
|
+
invokeAmbiguous: function(f, o) {
|
|
2615
2617
|
this.useRegister("helper");
|
|
2616
2618
|
var y = this.popStack();
|
|
2617
2619
|
this.emptyHash();
|
|
2618
|
-
var S = this.setupHelper(0,
|
|
2620
|
+
var S = this.setupHelper(0, f, o), I = this.lastHelper = this.nameLookup("helpers", f, "helper"), A = ["(", "(helper = ", I, " || ", y, ")"];
|
|
2619
2621
|
this.options.strict || (A[0] = "(helper = ", A.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing"))), this.push(["(", A, S.paramsInit ? ["),(", S.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", S.callParams), " : helper))"]);
|
|
2620
2622
|
},
|
|
2621
2623
|
// [invokePartial]
|
|
@@ -2625,9 +2627,9 @@ var lt = {}, ss = {
|
|
|
2625
2627
|
//
|
|
2626
2628
|
// This operation pops off a context, invokes a partial with that context,
|
|
2627
2629
|
// and pushes the result of the invocation back.
|
|
2628
|
-
invokePartial: function(
|
|
2630
|
+
invokePartial: function(f, o, y) {
|
|
2629
2631
|
var S = [], I = this.setupParams(o, 1, S);
|
|
2630
|
-
|
|
2632
|
+
f && (o = this.popStack(), delete I.name), y && (I.indent = JSON.stringify(y)), I.helpers = "helpers", I.partials = "partials", I.decorators = "container.decorators", f ? S.unshift(o) : S.unshift(this.nameLookup("partials", o, "partial")), this.options.compat && (I.depths = "depths"), I = this.objectLiteral(I), S.push(I), this.push(this.source.functionCall("container.invokePartial", "", S));
|
|
2631
2633
|
},
|
|
2632
2634
|
// [assignToHash]
|
|
2633
2635
|
//
|
|
@@ -2635,19 +2637,19 @@ var lt = {}, ss = {
|
|
|
2635
2637
|
// On stack, after: ..., hash, ...
|
|
2636
2638
|
//
|
|
2637
2639
|
// Pops a value off the stack and assigns it to the current hash
|
|
2638
|
-
assignToHash: function(
|
|
2640
|
+
assignToHash: function(f) {
|
|
2639
2641
|
var o = this.popStack(), y = void 0, S = void 0, I = void 0;
|
|
2640
2642
|
this.trackIds && (I = this.popStack()), this.stringParams && (S = this.popStack(), y = this.popStack());
|
|
2641
2643
|
var A = this.hash;
|
|
2642
|
-
y && (A.contexts[
|
|
2644
|
+
y && (A.contexts[f] = y), S && (A.types[f] = S), I && (A.ids[f] = I), A.values[f] = o;
|
|
2643
2645
|
},
|
|
2644
|
-
pushId: function(
|
|
2645
|
-
|
|
2646
|
+
pushId: function(f, o, y) {
|
|
2647
|
+
f === "BlockParam" ? this.pushStackLiteral("blockParams[" + o[0] + "].path[" + o[1] + "]" + (y ? " + " + JSON.stringify("." + y) : "")) : f === "PathExpression" ? this.pushString(o) : f === "SubExpression" ? this.pushStackLiteral("true") : this.pushStackLiteral("null");
|
|
2646
2648
|
},
|
|
2647
2649
|
// HELPERS
|
|
2648
2650
|
compiler: g,
|
|
2649
|
-
compileChildren: function(
|
|
2650
|
-
for (var y =
|
|
2651
|
+
compileChildren: function(f, o) {
|
|
2652
|
+
for (var y = f.children, S = void 0, I = void 0, A = 0, M = y.length; A < M; A++) {
|
|
2651
2653
|
S = y[A], I = new this.compiler();
|
|
2652
2654
|
var w = this.matchExistingProgram(S);
|
|
2653
2655
|
if (w == null) {
|
|
@@ -2658,30 +2660,30 @@ var lt = {}, ss = {
|
|
|
2658
2660
|
S.index = w.index, S.name = "program" + w.index, this.useDepths = this.useDepths || w.useDepths, this.useBlockParams = this.useBlockParams || w.useBlockParams;
|
|
2659
2661
|
}
|
|
2660
2662
|
},
|
|
2661
|
-
matchExistingProgram: function(
|
|
2663
|
+
matchExistingProgram: function(f) {
|
|
2662
2664
|
for (var o = 0, y = this.context.environments.length; o < y; o++) {
|
|
2663
2665
|
var S = this.context.environments[o];
|
|
2664
|
-
if (S && S.equals(
|
|
2666
|
+
if (S && S.equals(f))
|
|
2665
2667
|
return S;
|
|
2666
2668
|
}
|
|
2667
2669
|
},
|
|
2668
|
-
programExpression: function(
|
|
2669
|
-
var o = this.environment.children[
|
|
2670
|
+
programExpression: function(f) {
|
|
2671
|
+
var o = this.environment.children[f], y = [o.index, "data", o.blockParams];
|
|
2670
2672
|
return (this.useBlockParams || this.useDepths) && y.push("blockParams"), this.useDepths && y.push("depths"), "container.program(" + y.join(", ") + ")";
|
|
2671
2673
|
},
|
|
2672
|
-
useRegister: function(
|
|
2673
|
-
this.registers[
|
|
2674
|
+
useRegister: function(f) {
|
|
2675
|
+
this.registers[f] || (this.registers[f] = !0, this.registers.list.push(f));
|
|
2674
2676
|
},
|
|
2675
|
-
push: function(
|
|
2676
|
-
return
|
|
2677
|
+
push: function(f) {
|
|
2678
|
+
return f instanceof d || (f = this.source.wrap(f)), this.inlineStack.push(f), f;
|
|
2677
2679
|
},
|
|
2678
|
-
pushStackLiteral: function(
|
|
2679
|
-
this.push(new d(
|
|
2680
|
+
pushStackLiteral: function(f) {
|
|
2681
|
+
this.push(new d(f));
|
|
2680
2682
|
},
|
|
2681
|
-
pushSource: function(
|
|
2682
|
-
this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), this.pendingContent = void 0),
|
|
2683
|
+
pushSource: function(f) {
|
|
2684
|
+
this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), this.pendingContent = void 0), f && this.source.push(f);
|
|
2683
2685
|
},
|
|
2684
|
-
replaceStack: function(
|
|
2686
|
+
replaceStack: function(f) {
|
|
2685
2687
|
var o = ["("], y = void 0, S = void 0, I = void 0;
|
|
2686
2688
|
if (!this.isInline())
|
|
2687
2689
|
throw new h.default("replaceStack on non-inline");
|
|
@@ -2693,7 +2695,7 @@ var lt = {}, ss = {
|
|
|
2693
2695
|
var M = this.incrStack();
|
|
2694
2696
|
o = ["((", this.push(M), " = ", A, ")"], y = this.topStack();
|
|
2695
2697
|
}
|
|
2696
|
-
var w =
|
|
2698
|
+
var w = f.call(this, y);
|
|
2697
2699
|
I || this.popStack(), S && this.stackSlot--, this.push(o.concat(w, ")"));
|
|
2698
2700
|
},
|
|
2699
2701
|
incrStack: function() {
|
|
@@ -2703,10 +2705,10 @@ var lt = {}, ss = {
|
|
|
2703
2705
|
return "stack" + this.stackSlot;
|
|
2704
2706
|
},
|
|
2705
2707
|
flushInline: function() {
|
|
2706
|
-
var
|
|
2708
|
+
var f = this.inlineStack;
|
|
2707
2709
|
this.inlineStack = [];
|
|
2708
|
-
for (var o = 0, y =
|
|
2709
|
-
var S =
|
|
2710
|
+
for (var o = 0, y = f.length; o < y; o++) {
|
|
2711
|
+
var S = f[o];
|
|
2710
2712
|
if (S instanceof d)
|
|
2711
2713
|
this.compileStack.push(S);
|
|
2712
2714
|
else {
|
|
@@ -2718,9 +2720,9 @@ var lt = {}, ss = {
|
|
|
2718
2720
|
isInline: function() {
|
|
2719
2721
|
return this.inlineStack.length;
|
|
2720
2722
|
},
|
|
2721
|
-
popStack: function(
|
|
2723
|
+
popStack: function(f) {
|
|
2722
2724
|
var o = this.isInline(), y = (o ? this.inlineStack : this.compileStack).pop();
|
|
2723
|
-
if (!
|
|
2725
|
+
if (!f && y instanceof d)
|
|
2724
2726
|
return y.value;
|
|
2725
2727
|
if (!o) {
|
|
2726
2728
|
if (!this.stackSlot)
|
|
@@ -2730,24 +2732,24 @@ var lt = {}, ss = {
|
|
|
2730
2732
|
return y;
|
|
2731
2733
|
},
|
|
2732
2734
|
topStack: function() {
|
|
2733
|
-
var
|
|
2735
|
+
var f = this.isInline() ? this.inlineStack : this.compileStack, o = f[f.length - 1];
|
|
2734
2736
|
return o instanceof d ? o.value : o;
|
|
2735
2737
|
},
|
|
2736
|
-
contextName: function(
|
|
2737
|
-
return this.useDepths &&
|
|
2738
|
+
contextName: function(f) {
|
|
2739
|
+
return this.useDepths && f ? "depths[" + f + "]" : "depth" + f;
|
|
2738
2740
|
},
|
|
2739
|
-
quotedString: function(
|
|
2740
|
-
return this.source.quotedString(
|
|
2741
|
+
quotedString: function(f) {
|
|
2742
|
+
return this.source.quotedString(f);
|
|
2741
2743
|
},
|
|
2742
|
-
objectLiteral: function(
|
|
2743
|
-
return this.source.objectLiteral(
|
|
2744
|
+
objectLiteral: function(f) {
|
|
2745
|
+
return this.source.objectLiteral(f);
|
|
2744
2746
|
},
|
|
2745
|
-
aliasable: function(
|
|
2746
|
-
var o = this.aliases[
|
|
2747
|
-
return o ? (o.referenceCount++, o) : (o = this.aliases[
|
|
2747
|
+
aliasable: function(f) {
|
|
2748
|
+
var o = this.aliases[f];
|
|
2749
|
+
return o ? (o.referenceCount++, o) : (o = this.aliases[f] = this.source.wrap(f), o.aliasable = !0, o.referenceCount = 1, o);
|
|
2748
2750
|
},
|
|
2749
|
-
setupHelper: function(
|
|
2750
|
-
var S = [], I = this.setupHelperArgs(o,
|
|
2751
|
+
setupHelper: function(f, o, y) {
|
|
2752
|
+
var S = [], I = this.setupHelperArgs(o, f, S, y), A = this.nameLookup("helpers", o, "helper"), M = this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})");
|
|
2751
2753
|
return {
|
|
2752
2754
|
params: S,
|
|
2753
2755
|
paramsInit: I,
|
|
@@ -2755,46 +2757,46 @@ var lt = {}, ss = {
|
|
|
2755
2757
|
callParams: [M].concat(S)
|
|
2756
2758
|
};
|
|
2757
2759
|
},
|
|
2758
|
-
setupParams: function(
|
|
2760
|
+
setupParams: function(f, o, y) {
|
|
2759
2761
|
var S = {}, I = [], A = [], M = [], w = !y, L = void 0;
|
|
2760
|
-
w && (y = []), S.name = this.quotedString(
|
|
2762
|
+
w && (y = []), S.name = this.quotedString(f), S.hash = this.popStack(), this.trackIds && (S.hashIds = this.popStack()), this.stringParams && (S.hashTypes = this.popStack(), S.hashContexts = this.popStack());
|
|
2761
2763
|
var Z = this.popStack(), F = this.popStack();
|
|
2762
2764
|
(F || Z) && (S.fn = F || "container.noop", S.inverse = Z || "container.noop");
|
|
2763
2765
|
for (var V = o; V--; )
|
|
2764
2766
|
L = this.popStack(), y[V] = L, this.trackIds && (M[V] = this.popStack()), this.stringParams && (A[V] = this.popStack(), I[V] = this.popStack());
|
|
2765
2767
|
return w && (S.args = this.source.generateArray(y)), this.trackIds && (S.ids = this.source.generateArray(M)), this.stringParams && (S.types = this.source.generateArray(A), S.contexts = this.source.generateArray(I)), this.options.data && (S.data = "data"), this.useBlockParams && (S.blockParams = "blockParams"), S;
|
|
2766
2768
|
},
|
|
2767
|
-
setupHelperArgs: function(
|
|
2768
|
-
var I = this.setupParams(
|
|
2769
|
+
setupHelperArgs: function(f, o, y, S) {
|
|
2770
|
+
var I = this.setupParams(f, o, y);
|
|
2769
2771
|
return I.loc = JSON.stringify(this.source.currentLocation), I = this.objectLiteral(I), S ? (this.useRegister("options"), y.push("options"), ["options=", I]) : y ? (y.push(I), "") : I;
|
|
2770
2772
|
}
|
|
2771
2773
|
}, function() {
|
|
2772
|
-
for (var a = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),
|
|
2773
|
-
|
|
2774
|
+
for (var a = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), f = g.RESERVED_WORDS = {}, o = 0, y = a.length; o < y; o++)
|
|
2775
|
+
f[a[o]] = !0;
|
|
2774
2776
|
}(), g.isValidJavaScriptVariableName = function(a) {
|
|
2775
2777
|
return !g.RESERVED_WORDS[a] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a);
|
|
2776
2778
|
};
|
|
2777
|
-
function E(a,
|
|
2778
|
-
var I =
|
|
2779
|
+
function E(a, f, o, y, S) {
|
|
2780
|
+
var I = f.popStack(), A = o.length;
|
|
2779
2781
|
for (a && A--; y < A; y++)
|
|
2780
|
-
I =
|
|
2781
|
-
return a ? [
|
|
2782
|
+
I = f.nameLookup(I, o[y], S);
|
|
2783
|
+
return a ? [f.aliasable("container.strict"), "(", I, ", ", f.quotedString(o[y]), ", ", JSON.stringify(f.source.currentLocation), " )"] : I;
|
|
2782
2784
|
}
|
|
2783
2785
|
t.default = g, e.exports = t.default;
|
|
2784
|
-
})(ss,
|
|
2786
|
+
})(ss, ct);
|
|
2785
2787
|
(function(e, t) {
|
|
2786
2788
|
t.__esModule = !0;
|
|
2787
2789
|
function r(A) {
|
|
2788
2790
|
return A && A.__esModule ? A : { default: A };
|
|
2789
2791
|
}
|
|
2790
|
-
var n =
|
|
2792
|
+
var n = Qe, s = r(n), h = He, p = r(h), c = Ye, u = qe, d = ct, g = r(d), E = Be, a = r(E), f = Le, o = r(f), y = s.default.create;
|
|
2791
2793
|
function S() {
|
|
2792
2794
|
var A = y();
|
|
2793
2795
|
return A.compile = function(M, w) {
|
|
2794
2796
|
return u.compile(M, w, A);
|
|
2795
2797
|
}, A.precompile = function(M, w) {
|
|
2796
2798
|
return u.precompile(M, w, A);
|
|
2797
|
-
}, A.AST =
|
|
2799
|
+
}, A.AST = p.default, A.Compiler = u.Compiler, A.JavaScriptCompiler = g.default, A.Parser = c.parser, A.parse = c.parse, A.parseWithoutProcessing = c.parseWithoutProcessing, A;
|
|
2798
2800
|
}
|
|
2799
2801
|
var I = S();
|
|
2800
2802
|
I.create = S, o.default(I), I.Visitor = a.default, I.default = I, t.default = I, e.exports = t.default;
|
|
@@ -2818,20 +2820,20 @@ var zt;
|
|
|
2818
2820
|
(function(t) {
|
|
2819
2821
|
var r = typeof Yt == "object" ? Yt : typeof self == "object" ? self : typeof this == "object" ? this : Function("return this;")(), n = s(e);
|
|
2820
2822
|
typeof r.Reflect > "u" ? r.Reflect = e : n = s(r.Reflect, n), t(n);
|
|
2821
|
-
function s(h,
|
|
2823
|
+
function s(h, p) {
|
|
2822
2824
|
return function(c, u) {
|
|
2823
|
-
typeof h[c] != "function" && Object.defineProperty(h, c, { configurable: !0, writable: !0, value: u }),
|
|
2825
|
+
typeof h[c] != "function" && Object.defineProperty(h, c, { configurable: !0, writable: !0, value: u }), p && p(c, u);
|
|
2824
2826
|
};
|
|
2825
2827
|
}
|
|
2826
2828
|
})(function(t) {
|
|
2827
|
-
var r = Object.prototype.hasOwnProperty, n = typeof Symbol == "function", s = n && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", h = n && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator",
|
|
2829
|
+
var r = Object.prototype.hasOwnProperty, n = typeof Symbol == "function", s = n && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", h = n && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", p = typeof Object.create == "function", c = { __proto__: [] } instanceof Array, u = !p && !c, d = {
|
|
2828
2830
|
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
|
|
2829
|
-
create:
|
|
2830
|
-
return
|
|
2831
|
+
create: p ? function() {
|
|
2832
|
+
return dt(/* @__PURE__ */ Object.create(null));
|
|
2831
2833
|
} : c ? function() {
|
|
2832
|
-
return
|
|
2834
|
+
return dt({ __proto__: null });
|
|
2833
2835
|
} : function() {
|
|
2834
|
-
return
|
|
2836
|
+
return dt({});
|
|
2835
2837
|
},
|
|
2836
2838
|
has: u ? function(_, b) {
|
|
2837
2839
|
return r.call(_, b);
|
|
@@ -2843,7 +2845,7 @@ var zt;
|
|
|
2843
2845
|
} : function(_, b) {
|
|
2844
2846
|
return _[b];
|
|
2845
2847
|
}
|
|
2846
|
-
}, g = Object.getPrototypeOf(Function), E = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", a = !E && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Rr(),
|
|
2848
|
+
}, g = Object.getPrototypeOf(Function), E = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", a = !E && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Rr(), f = !E && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Ir(), o = !E && typeof WeakMap == "function" ? WeakMap : Dr(), y = new o();
|
|
2847
2849
|
function S(_, b, R, D) {
|
|
2848
2850
|
if (j(R)) {
|
|
2849
2851
|
if (!Bt(_))
|
|
@@ -2888,7 +2890,7 @@ var zt;
|
|
|
2888
2890
|
function w(_, b, R) {
|
|
2889
2891
|
if (!X(b))
|
|
2890
2892
|
throw new TypeError();
|
|
2891
|
-
return j(R) || (R = ce(R)),
|
|
2893
|
+
return j(R) || (R = ce(R)), pt(_, b, R);
|
|
2892
2894
|
}
|
|
2893
2895
|
t("hasOwnMetadata", w);
|
|
2894
2896
|
function L(_, b, R) {
|
|
@@ -2971,13 +2973,13 @@ var zt;
|
|
|
2971
2973
|
return x;
|
|
2972
2974
|
}
|
|
2973
2975
|
function le(_, b, R) {
|
|
2974
|
-
var D =
|
|
2976
|
+
var D = pt(_, b, R);
|
|
2975
2977
|
if (D)
|
|
2976
2978
|
return !0;
|
|
2977
|
-
var x =
|
|
2979
|
+
var x = ft(b);
|
|
2978
2980
|
return Ae(x) ? !1 : le(_, x, R);
|
|
2979
2981
|
}
|
|
2980
|
-
function
|
|
2982
|
+
function pt(_, b, R) {
|
|
2981
2983
|
var D = ue(
|
|
2982
2984
|
b,
|
|
2983
2985
|
R,
|
|
@@ -2987,10 +2989,10 @@ var zt;
|
|
|
2987
2989
|
return j(D) ? !1 : br(D.has(_));
|
|
2988
2990
|
}
|
|
2989
2991
|
function wt(_, b, R) {
|
|
2990
|
-
var D =
|
|
2992
|
+
var D = pt(_, b, R);
|
|
2991
2993
|
if (D)
|
|
2992
2994
|
return Mt(_, b, R);
|
|
2993
|
-
var x =
|
|
2995
|
+
var x = ft(b);
|
|
2994
2996
|
if (!Ae(x))
|
|
2995
2997
|
return wt(_, x, R);
|
|
2996
2998
|
}
|
|
@@ -3014,7 +3016,7 @@ var zt;
|
|
|
3014
3016
|
x.set(_, b);
|
|
3015
3017
|
}
|
|
3016
3018
|
function Ot(_, b) {
|
|
3017
|
-
var R = Lt(_, b), D =
|
|
3019
|
+
var R = Lt(_, b), D = ft(_);
|
|
3018
3020
|
if (D === null)
|
|
3019
3021
|
return R;
|
|
3020
3022
|
var x = Ot(D, b);
|
|
@@ -3022,7 +3024,7 @@ var zt;
|
|
|
3022
3024
|
return R;
|
|
3023
3025
|
if (R.length <= 0)
|
|
3024
3026
|
return x;
|
|
3025
|
-
for (var z = new
|
|
3027
|
+
for (var z = new f(), H = [], B = 0, O = R; B < O.length; B++) {
|
|
3026
3028
|
var U = O[B], G = z.has(U);
|
|
3027
3029
|
G || (z.add(U), H.push(U));
|
|
3028
3030
|
}
|
|
@@ -3205,7 +3207,7 @@ var zt;
|
|
|
3205
3207
|
var b = _.return;
|
|
3206
3208
|
b && b.call(_);
|
|
3207
3209
|
}
|
|
3208
|
-
function
|
|
3210
|
+
function ft(_) {
|
|
3209
3211
|
var b = Object.getPrototypeOf(_);
|
|
3210
3212
|
if (typeof _ != "function" || _ === g || b !== g)
|
|
3211
3213
|
return b;
|
|
@@ -3408,46 +3410,46 @@ var zt;
|
|
|
3408
3410
|
return U;
|
|
3409
3411
|
}
|
|
3410
3412
|
}
|
|
3411
|
-
function
|
|
3413
|
+
function dt(_) {
|
|
3412
3414
|
return _.__ = void 0, delete _.__, _;
|
|
3413
3415
|
}
|
|
3414
3416
|
});
|
|
3415
3417
|
})(zt || (zt = {}));
|
|
3416
|
-
const
|
|
3418
|
+
const Pt = Symbol("design:className"), dr = Symbol("design:comment"), gr = Symbol("design:caller"), Ue = Symbol("design:params"), mr = Symbol("design:returns"), os = (e, t) => {
|
|
3417
3419
|
try {
|
|
3418
3420
|
if ((e == null ? void 0 : e.length) <= 0)
|
|
3419
3421
|
return [];
|
|
3420
3422
|
var r = e == null ? void 0 : e[e.length - 1], n = [...e];
|
|
3421
3423
|
return r == null || !Object.hasOwn(r, "lookupProperty") || (r == null ? void 0 : r.name) !== t ? n : Array.prototype.slice.call(e, 0, -1);
|
|
3422
3424
|
} catch (s) {
|
|
3423
|
-
return
|
|
3425
|
+
return Ge.error("filterArgs", s, { args: e, keyName: t }), [];
|
|
3424
3426
|
}
|
|
3425
3427
|
}, us = (e, t) => {
|
|
3426
3428
|
var r = [], n = !0;
|
|
3427
3429
|
return (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((s) => {
|
|
3428
|
-
var
|
|
3429
|
-
var h = (
|
|
3430
|
+
var p;
|
|
3431
|
+
var h = (p = Array.from(e)) == null ? void 0 : p[s.index];
|
|
3430
3432
|
s.required && Zt(h) && (r.push(`${s.index} required`), n = !1);
|
|
3431
3433
|
})), { msg: r, pass: n };
|
|
3432
3434
|
};
|
|
3433
3435
|
function be(e) {
|
|
3434
3436
|
return (t) => {
|
|
3435
|
-
Reflect.defineMetadata(
|
|
3437
|
+
Reflect.defineMetadata(Pt, { name: e }, t);
|
|
3436
3438
|
};
|
|
3437
3439
|
}
|
|
3438
3440
|
function k(e) {
|
|
3439
3441
|
return (t, r, n) => {
|
|
3440
|
-
var
|
|
3442
|
+
var p;
|
|
3441
3443
|
var s = [];
|
|
3442
3444
|
const h = Reflect.getMetadata(Ue, t, r);
|
|
3443
|
-
s.push(`${i.i18nt("designer.expression.comment")}:${e}`), s.push(`${i.i18nt("designer.expression.useMethod")}:${r}(${((
|
|
3445
|
+
s.push(`${i.i18nt("designer.expression.comment")}:${e}`), s.push(`${i.i18nt("designer.expression.useMethod")}:${r}(${((p = h == null ? void 0 : h.slice().reverse()) == null ? void 0 : p.map((c) => c.comment).join(",")) || ""})`), Reflect.defineMetadata(dr, s.join(`
|
|
3444
3446
|
`), t, r);
|
|
3445
3447
|
};
|
|
3446
3448
|
}
|
|
3447
3449
|
function T() {
|
|
3448
3450
|
return (e, t, r) => {
|
|
3449
3451
|
var h;
|
|
3450
|
-
const n = Reflect.getMetadata(Ue, e, t), s = `${t}(${((h = n == null ? void 0 : n.slice().reverse()) == null ? void 0 : h.map((
|
|
3452
|
+
const n = Reflect.getMetadata(Ue, e, t), s = `${t}(${((h = n == null ? void 0 : n.slice().reverse()) == null ? void 0 : h.map((p) => p.name).join(",")) || ""})`;
|
|
3451
3453
|
Reflect.defineMetadata(gr, s, e, t);
|
|
3452
3454
|
};
|
|
3453
3455
|
}
|
|
@@ -3456,17 +3458,17 @@ function N() {
|
|
|
3456
3458
|
const n = Reflect.getMetadata(Ue, e, t), s = r.value;
|
|
3457
3459
|
return r.value = function(h) {
|
|
3458
3460
|
var u;
|
|
3459
|
-
var
|
|
3461
|
+
var p = os(arguments, t), c = us(p, n);
|
|
3460
3462
|
if (c && !c.pass)
|
|
3461
3463
|
throw new Error(`Parameter ${(u = c.msg) == null ? void 0 : u.join(",")} `);
|
|
3462
|
-
return s == null ? void 0 : s.apply(this,
|
|
3464
|
+
return s == null ? void 0 : s.apply(this, p);
|
|
3463
3465
|
}, r;
|
|
3464
3466
|
};
|
|
3465
3467
|
}
|
|
3466
3468
|
function m(e = !1, t = "", r = "", n) {
|
|
3467
|
-
return (s, h,
|
|
3469
|
+
return (s, h, p) => {
|
|
3468
3470
|
var c = Reflect.getMetadata(Ue, s, h + "") || [];
|
|
3469
|
-
c.push({ index:
|
|
3471
|
+
c.push({ index: p || 0, required: e, comment: t, name: r, dataType: n }), Reflect.defineMetadata(Ue, c, s, h + "");
|
|
3470
3472
|
};
|
|
3471
3473
|
}
|
|
3472
3474
|
function C(e = "", t) {
|
|
@@ -3616,27 +3618,27 @@ class ls {
|
|
|
3616
3618
|
"yellow",
|
|
3617
3619
|
"zebra"
|
|
3618
3620
|
], s = [];
|
|
3619
|
-
for (let
|
|
3621
|
+
for (let p = 0; p < t; p++) {
|
|
3620
3622
|
const c = Math.floor(Math.random() * n.length);
|
|
3621
3623
|
s.push(n[c]);
|
|
3622
3624
|
}
|
|
3623
3625
|
const h = s.map(
|
|
3624
|
-
(
|
|
3626
|
+
(p) => Math.random() > 0.5 ? p.charAt(0).toUpperCase() + p.slice(1) : p
|
|
3625
3627
|
);
|
|
3626
3628
|
if (Math.random() > 0.3) {
|
|
3627
|
-
const
|
|
3628
|
-
h.splice(c, 0,
|
|
3629
|
+
const p = Math.floor(Math.random() * 100), c = Math.floor(Math.random() * (h.length + 1));
|
|
3630
|
+
h.splice(c, 0, p.toString());
|
|
3629
3631
|
}
|
|
3630
3632
|
if (Math.random() > 0.5) {
|
|
3631
|
-
const
|
|
3633
|
+
const p = this.filterCharacters(this.config.customSpecialChars), c = this.getRandomChar(p);
|
|
3632
3634
|
h.push(c);
|
|
3633
3635
|
}
|
|
3634
3636
|
return h.join(r);
|
|
3635
3637
|
}
|
|
3636
3638
|
}
|
|
3637
3639
|
var cs = Object.defineProperty, hs = Object.getOwnPropertyDescriptor, P = (e, t, r, n) => {
|
|
3638
|
-
for (var s = n > 1 ? void 0 : n ? hs(t, r) : t, h = e.length - 1,
|
|
3639
|
-
(
|
|
3640
|
+
for (var s = n > 1 ? void 0 : n ? hs(t, r) : t, h = e.length - 1, p; h >= 0; h--)
|
|
3641
|
+
(p = e[h]) && (s = (n ? p(t, r, s) : p(s)) || s);
|
|
3640
3642
|
return n && s && cs(t, r, s), s;
|
|
3641
3643
|
}, v = (e, t) => (r, n) => t(r, n, e);
|
|
3642
3644
|
class ae {
|
|
@@ -3656,7 +3658,7 @@ class ae {
|
|
|
3656
3658
|
let ne = class {
|
|
3657
3659
|
static INCLUDES(e, t) {
|
|
3658
3660
|
const r = /* @__PURE__ */ new Set();
|
|
3659
|
-
return e.forEach((n) => r.add(n)), Array.from(r).includes(t);
|
|
3661
|
+
return e == null || e.forEach((n) => r.add(n)), Array.from(r).includes(t);
|
|
3660
3662
|
}
|
|
3661
3663
|
static INTERSECTIONSET(e, t) {
|
|
3662
3664
|
const r = /* @__PURE__ */ new Set();
|
|
@@ -4259,8 +4261,8 @@ let q = class {
|
|
|
4259
4261
|
var s = this.LEN(e);
|
|
4260
4262
|
if (s <= 0)
|
|
4261
4263
|
return "";
|
|
4262
|
-
var h = this.LEFT(e, t),
|
|
4263
|
-
return [h,
|
|
4264
|
+
var h = this.LEFT(e, t), p = _t(n) ? "" : n, c = this.RIGHT(e, s - t - r);
|
|
4265
|
+
return [h, p, c].join("");
|
|
4264
4266
|
}
|
|
4265
4267
|
static REPT(e, t) {
|
|
4266
4268
|
var r;
|
|
@@ -4288,7 +4290,7 @@ let q = class {
|
|
|
4288
4290
|
return Ur();
|
|
4289
4291
|
}
|
|
4290
4292
|
static ISNULL(e) {
|
|
4291
|
-
return
|
|
4293
|
+
return ze(e);
|
|
4292
4294
|
}
|
|
4293
4295
|
static GENERATESTRING(e = 8) {
|
|
4294
4296
|
return new ls({
|
|
@@ -4306,7 +4308,7 @@ let q = class {
|
|
|
4306
4308
|
}).generate();
|
|
4307
4309
|
}
|
|
4308
4310
|
static ISEMPTY(e) {
|
|
4309
|
-
return
|
|
4311
|
+
return ze(e) || _t(e);
|
|
4310
4312
|
}
|
|
4311
4313
|
static PRINT(e) {
|
|
4312
4314
|
return e;
|
|
@@ -4539,7 +4541,7 @@ let W = class {
|
|
|
4539
4541
|
}
|
|
4540
4542
|
static DATEADD(e, t, r = Te.day) {
|
|
4541
4543
|
var n = rr(e, t, r);
|
|
4542
|
-
return
|
|
4544
|
+
return At(e) ? ae.dateToString(n) : n;
|
|
4543
4545
|
}
|
|
4544
4546
|
static DATEDIFF(e, t, r = Te.day) {
|
|
4545
4547
|
return Ie(e, t, r);
|
|
@@ -4576,8 +4578,8 @@ let W = class {
|
|
|
4576
4578
|
}
|
|
4577
4579
|
static WEEKNUM(e, t = 1) {
|
|
4578
4580
|
const r = new Date(e), n = new Date(r.getFullYear(), 0, 1);
|
|
4579
|
-
var s = 24 * 60 * 60 * 1e3, h = 7 * s,
|
|
4580
|
-
return Math.ceil((r.getTime() - n.getTime() -
|
|
4581
|
+
var s = 24 * 60 * 60 * 1e3, h = 7 * s, p = (7 - n.getDay()) * s;
|
|
4582
|
+
return Math.ceil((r.getTime() - n.getTime() - p) / h) + t;
|
|
4581
4583
|
}
|
|
4582
4584
|
static ISOWEEKNUM(e) {
|
|
4583
4585
|
return this.WEEKNUM(e, void 0);
|
|
@@ -4898,23 +4900,39 @@ ee = P([
|
|
|
4898
4900
|
const Is = function(e = "", t = "", r = "vform-custom-css") {
|
|
4899
4901
|
if (!e)
|
|
4900
4902
|
return;
|
|
4901
|
-
let n = document.getElementsByTagName("head")[0]
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4903
|
+
let n = document.getElementsByTagName("head")[0];
|
|
4904
|
+
if (n)
|
|
4905
|
+
try {
|
|
4906
|
+
let s = document.getElementById(r);
|
|
4907
|
+
s && n.removeChild(s), t && (s = document.getElementById(r + "-" + t), s && n.removeChild(s));
|
|
4908
|
+
let h = document.createElement("style");
|
|
4909
|
+
if (!h)
|
|
4910
|
+
return;
|
|
4911
|
+
h.type = "text/css", h.id = t ? r + "-" + t : r;
|
|
4912
|
+
try {
|
|
4913
|
+
h.appendChild(document.createTextNode(e.toString()));
|
|
4914
|
+
} catch {
|
|
4915
|
+
h.innerHTML = e.toString();
|
|
4916
|
+
}
|
|
4917
|
+
n.appendChild(h);
|
|
4918
|
+
} catch (s) {
|
|
4919
|
+
Ge.error("insert css to head fail", s);
|
|
4920
|
+
}
|
|
4921
|
+
}, Ds = function(e, t = "") {
|
|
4905
4922
|
try {
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4923
|
+
let n = document.getElementsByTagName("body")[0];
|
|
4924
|
+
if (!n)
|
|
4925
|
+
return;
|
|
4926
|
+
var r = "v_form_global_functions";
|
|
4927
|
+
let s = document.getElementById(r);
|
|
4928
|
+
s && n.removeChild(s), t && (s = document.getElementById(r + "-" + t), s && n.removeChild(s));
|
|
4929
|
+
let h = document.createElement("script");
|
|
4930
|
+
if (!h)
|
|
4931
|
+
return;
|
|
4932
|
+
h.id = t ? r + "-" + t : r, h.type = "text/javascript", h.innerHTML = e.toString(), n.appendChild(h);
|
|
4933
|
+
} catch (n) {
|
|
4934
|
+
Ge.error("insert js to head fail", n);
|
|
4909
4935
|
}
|
|
4910
|
-
n.appendChild(h);
|
|
4911
|
-
}, Ds = function(e, t = "") {
|
|
4912
|
-
let r = document.getElementsByTagName("body")[0];
|
|
4913
|
-
var n = "v_form_global_functions";
|
|
4914
|
-
let s = document.getElementById(n);
|
|
4915
|
-
s && r.removeChild(s), t && (s = document.getElementById(n + "-" + t), s && r.removeChild(s));
|
|
4916
|
-
let h = document.createElement("script");
|
|
4917
|
-
h.id = t ? n + "-" + t : n, h.type = "text/javascript", h.innerHTML = e.toString(), r.appendChild(h);
|
|
4918
4936
|
}, ws = (e) => {
|
|
4919
4937
|
var r;
|
|
4920
4938
|
var t = (r = er(e)) == null ? void 0 : r.toString();
|
|
@@ -4934,12 +4952,12 @@ const fs = () => {
|
|
|
4934
4952
|
return vr.forEach((t) => {
|
|
4935
4953
|
var n, s;
|
|
4936
4954
|
var r = Object.getOwnPropertyNames(t).filter((h) => ["length", "name", "prototype"].indexOf(h) === -1).map((h) => {
|
|
4937
|
-
var
|
|
4938
|
-
return xe.registerHelper(h,
|
|
4955
|
+
var p = Object.getOwnPropertyDescriptor(t, h);
|
|
4956
|
+
return xe.registerHelper(h, p == null ? void 0 : p.value), h;
|
|
4939
4957
|
});
|
|
4940
4958
|
e.push({
|
|
4941
|
-
label: (n = Reflect.getMetadata(
|
|
4942
|
-
comment: (s = Reflect.getMetadata(
|
|
4959
|
+
label: (n = Reflect.getMetadata(Pt, t)) == null ? void 0 : n.name,
|
|
4960
|
+
comment: (s = Reflect.getMetadata(Pt, t)) == null ? void 0 : s.comment,
|
|
4943
4961
|
children: r.map((h) => ({
|
|
4944
4962
|
label: h,
|
|
4945
4963
|
comment: Reflect.getMetadata(dr, t, h),
|
|
@@ -4963,7 +4981,7 @@ const fs = () => {
|
|
|
4963
4981
|
var s = n(t);
|
|
4964
4982
|
return gs(ps(s), r);
|
|
4965
4983
|
} catch (h) {
|
|
4966
|
-
throw
|
|
4984
|
+
throw Ge.error("expression compile", h, {
|
|
4967
4985
|
tmpl: e,
|
|
4968
4986
|
data: t,
|
|
4969
4987
|
funcName: r
|
|
@@ -4974,11 +4992,11 @@ const fs = () => {
|
|
|
4974
4992
|
if (!t)
|
|
4975
4993
|
return e;
|
|
4976
4994
|
let r, n;
|
|
4977
|
-
return
|
|
4995
|
+
return vt == null || vt.forEach((s) => {
|
|
4978
4996
|
var h;
|
|
4979
|
-
(h = Array.from(s == null ? void 0 : s.children)) == null || h.forEach((
|
|
4997
|
+
(h = Array.from(s == null ? void 0 : s.children)) == null || h.forEach((p) => {
|
|
4980
4998
|
var c;
|
|
4981
|
-
(
|
|
4999
|
+
(p == null ? void 0 : p.label) === t && (r = $t((c = p == null ? void 0 : p.returnType) == null ? void 0 : c.dataType), n = ms(e, r));
|
|
4982
5000
|
});
|
|
4983
5001
|
}), n;
|
|
4984
5002
|
}, ms = (e, t) => {
|
|
@@ -4995,9 +5013,9 @@ const fs = () => {
|
|
|
4995
5013
|
default:
|
|
4996
5014
|
return e;
|
|
4997
5015
|
}
|
|
4998
|
-
},
|
|
5016
|
+
}, vt = fs(), Je = (e, t = !1, r = " ") => e == null ? void 0 : e.map((n) => De(n, t)).join(r), Qt = (e, t) => t ? `(FROMJSON '${e}')` : e, De = (e, t = !1) => {
|
|
4999
5017
|
var r;
|
|
5000
|
-
return (e == null ? void 0 : e.type) === J.Syntax.Literal ? e.raw : (e == null ? void 0 : e.type) === J.Syntax.Identifier ? e.name : e.type === J.Syntax.ExpressionStatement ? De(e.expression, void 0) : (e == null ? void 0 : e.type) === J.Syntax.CallExpression ? `(${(r = e.callee) == null ? void 0 : r.name} ${
|
|
5018
|
+
return (e == null ? void 0 : e.type) === J.Syntax.Literal ? e.raw : (e == null ? void 0 : e.type) === J.Syntax.Identifier ? e.name : e.type === J.Syntax.ExpressionStatement ? De(e.expression, void 0) : (e == null ? void 0 : e.type) === J.Syntax.CallExpression ? `(${(r = e.callee) == null ? void 0 : r.name} ${Je(e.arguments, !0)})` : (e == null ? void 0 : e.type) === J.Syntax.UnaryExpression ? `${e.operator}${De(e == null ? void 0 : e.argument)}` : (e == null ? void 0 : e.type) === J.Syntax.ObjectExpression ? Qt(`{${Je(e == null ? void 0 : e.properties, t, ",")}}`, t) : (e == null ? void 0 : e.type) === J.Syntax.ArrayExpression ? Qt(`[${Je(e.elements, t, ",")}]`, t) : (e == null ? void 0 : e.type) === J.Syntax.Property ? `${De(e == null ? void 0 : e.key)}:${De(e == null ? void 0 : e.value)}` : "";
|
|
5001
5019
|
};
|
|
5002
5020
|
function _r() {
|
|
5003
5021
|
var e = ["GETCHECKEDNAMES", "GETCHECKEDNAME"];
|
|
@@ -5005,31 +5023,31 @@ function _r() {
|
|
|
5005
5023
|
specialFuncNames: e,
|
|
5006
5024
|
matchSpecialNode: (n) => e.some((s) => n == null ? void 0 : n.includes(s)),
|
|
5007
5025
|
specialNode: (n, s) => {
|
|
5008
|
-
var h,
|
|
5026
|
+
var h, p, c, u, d, g, E, a;
|
|
5009
5027
|
if (n.type === J.Syntax.CallExpression) {
|
|
5010
|
-
let
|
|
5028
|
+
let f = er(n.arguments);
|
|
5011
5029
|
if (e.includes((h = n.callee) == null ? void 0 : h.name)) {
|
|
5012
|
-
const o = (
|
|
5013
|
-
(s == null ? void 0 : s[`${o.name}${
|
|
5030
|
+
const o = (p = n.arguments) == null ? void 0 : p[0];
|
|
5031
|
+
(s == null ? void 0 : s[`${o.name}${Ke.checkedOptions}`]) != null && (f[0].name = `${o.name}${Ke.checkedOptions}`);
|
|
5014
5032
|
}
|
|
5015
5033
|
if (e.includes((u = (c = n.callee) == null ? void 0 : c.property) == null ? void 0 : u.name)) {
|
|
5016
5034
|
const o = (d = n.arguments) == null ? void 0 : d[0];
|
|
5017
|
-
let y = `${(g = o == null ? void 0 : o.property) == null ? void 0 : g.name}${
|
|
5018
|
-
S ? ((a = s == null ? void 0 : s[S]) == null ? void 0 : a[y]) != null && (
|
|
5035
|
+
let y = `${(g = o == null ? void 0 : o.property) == null ? void 0 : g.name}${Ke.checkedOptions}`, S = (E = o == null ? void 0 : o.object) == null ? void 0 : E.name;
|
|
5036
|
+
S ? ((a = s == null ? void 0 : s[S]) == null ? void 0 : a[y]) != null && (f[0].property.name = y) : (s == null ? void 0 : s[y]) != null && (f[0].property.name = y);
|
|
5019
5037
|
}
|
|
5020
|
-
n.arguments =
|
|
5038
|
+
n.arguments = f;
|
|
5021
5039
|
}
|
|
5022
5040
|
return n;
|
|
5023
5041
|
}
|
|
5024
5042
|
};
|
|
5025
5043
|
}
|
|
5026
5044
|
const vs = (e) => {
|
|
5027
|
-
var t = ir(e), r =
|
|
5045
|
+
var t = ir(e), r = Je(t.body);
|
|
5028
5046
|
r.startsWith("(") && (r = r.substring(1)), r.endsWith(")") && (r = r.substring(0, r.length - 1));
|
|
5029
5047
|
var n = tn(t.body);
|
|
5030
5048
|
return { expression: r, funcname: n };
|
|
5031
5049
|
}, _s = (e, t) => new Promise((r, n) => {
|
|
5032
|
-
if (!e ||
|
|
5050
|
+
if (!e || _t(e)) {
|
|
5033
5051
|
r(null);
|
|
5034
5052
|
return;
|
|
5035
5053
|
}
|
|
@@ -5042,8 +5060,8 @@ const vs = (e) => {
|
|
|
5042
5060
|
var d = vs(c);
|
|
5043
5061
|
return ds(`{{${d.expression}}}`, t, d.funcname);
|
|
5044
5062
|
}
|
|
5045
|
-
}, { specialNode: h, matchSpecialNode:
|
|
5046
|
-
if (
|
|
5063
|
+
}, { specialNode: h, matchSpecialNode: p } = _r();
|
|
5064
|
+
if (p(e)) {
|
|
5047
5065
|
const { init: c, replaceVariableName: u } = an();
|
|
5048
5066
|
c().then((d) => {
|
|
5049
5067
|
e = u(d, e, h, t), r(s(e));
|
|
@@ -5068,7 +5086,7 @@ export {
|
|
|
5068
5086
|
Is as i,
|
|
5069
5087
|
an as j,
|
|
5070
5088
|
ks as k,
|
|
5071
|
-
|
|
5089
|
+
Ke as l,
|
|
5072
5090
|
Rs as m,
|
|
5073
5091
|
Qr as n,
|
|
5074
5092
|
Ns as o,
|