form-imagining 0.0.8 → 0.0.9
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/README.md +13 -10
- package/dist/{cssMode-0bcb1554.js → cssMode-258e5ba7.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +4 -4
- package/dist/{freemarker2-4d8e8e55.js → freemarker2-12493398.js} +1 -1
- package/dist/{handlebars-c43672f7.js → handlebars-def84c12.js} +1 -1
- package/dist/{html-c6099a2e.js → html-280a7ed3.js} +1 -1
- package/dist/{htmlMode-31c10440.js → htmlMode-b76e0bdc.js} +1 -1
- package/dist/{index-a3197e12.js → index-4404fc7a.js} +557 -550
- package/dist/{javascript-ac2b4ae2.js → javascript-3df96c77.js} +2 -2
- package/dist/{jsonMode-36333022.js → jsonMode-09c5cef8.js} +1 -1
- package/dist/{liquid-b5021331.js → liquid-c70595aa.js} +1 -1
- package/dist/{mdx-bbae5f86.js → mdx-1a6f1fd5.js} +1 -1
- package/dist/{python-fc373d9f.js → python-3b635c55.js} +1 -1
- package/dist/{razor-1e9d135a.js → razor-eb9ede61.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tsMode-ea3b05db.js → tsMode-57e6691d.js} +1 -1
- package/dist/{typescript-b2ef5e0f.js → typescript-a7a35ee2.js} +1 -1
- package/dist/{xml-579a5775.js → xml-8871547f.js} +1 -1
- package/dist/{yaml-c31c56b7.js → yaml-bba498d2.js} +1 -1
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ This will fail in production.`);X=activePinia,X._s.has(H)||(G?createSetupStore(H
|
|
|
74
74
|
}
|
|
75
75
|
`,cssInjectedFlag=!1,useInsertStyles=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles;vue.nextTick(function(){cssInjectedFlag||(typeof window<"u"&&window.document&&window.document.documentElement&&insertCss(C,{prepend:!0}),cssInjectedFlag=!0)})},_excluded$4=["icon","primaryColor","secondaryColor"];function _objectWithoutProperties$2(K,C){if(K==null)return{};var W=_objectWithoutPropertiesLoose$2(K,C),H,U;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(K);for(U=0;U<G.length;U++)H=G[U],!(C.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(K,H)&&(W[H]=K[H])}return W}function _objectWithoutPropertiesLoose$2(K,C){if(K==null)return{};var W={},H=Object.keys(K),U,G;for(G=0;G<H.length;G++)U=H[G],!(C.indexOf(U)>=0)&&(W[U]=K[U]);return W}function _objectSpread$o(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$p(K,U,W[U])})}return K}function _defineProperty$p(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(K){var C=K.primaryColor,W=K.secondaryColor;twoToneColorPalette.primaryColor=C,twoToneColorPalette.secondaryColor=W||getSecondaryColor(C),twoToneColorPalette.calculated=!!W}function getTwoToneColors(){return _objectSpread$o({},twoToneColorPalette)}var IconBase=function(C,W){var H=_objectSpread$o({},C,W.attrs),U=H.icon,G=H.primaryColor,Z=H.secondaryColor,X=_objectWithoutProperties$2(H,_excluded$4),Q=twoToneColorPalette;if(G&&(Q={primaryColor:G,secondaryColor:Z||getSecondaryColor(G)}),useInsertStyles(),warning$2(isIconDefinition(U),"icon should be icon definiton, but got ".concat(U)),!isIconDefinition(U))return null;var ee=U;return ee&&typeof ee.icon=="function"&&(ee=_objectSpread$o({},ee,{icon:ee.icon(Q.primaryColor,Q.secondaryColor)})),generate$1(ee.icon,"svg-".concat(ee.name),_objectSpread$o({},X,{"data-icon":ee.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};IconBase.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},IconBase.inheritAttrs=!1,IconBase.displayName="IconBase",IconBase.getTwoToneColors=getTwoToneColors,IconBase.setTwoToneColors=setTwoToneColors;const VueIcon=IconBase;function _slicedToArray$2(K,C){return _arrayWithHoles$2(K)||_iterableToArrayLimit$2(K,C)||_unsupportedIterableToArray$2(K,C)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
76
76
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(K,C){if(K){if(typeof K=="string")return _arrayLikeToArray$2(K,C);var W=Object.prototype.toString.call(K).slice(8,-1);if(W==="Object"&&K.constructor&&(W=K.constructor.name),W==="Map"||W==="Set")return Array.from(K);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return _arrayLikeToArray$2(K,C)}}function _arrayLikeToArray$2(K,C){(C==null||C>K.length)&&(C=K.length);for(var W=0,H=new Array(C);W<C;W++)H[W]=K[W];return H}function _iterableToArrayLimit$2(K,C){var W=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(W!=null){var H=[],U=!0,G=!1,Z,X;try{for(W=W.call(K);!(U=(Z=W.next()).done)&&(H.push(Z.value),!(C&&H.length===C));U=!0);}catch(Q){G=!0,X=Q}finally{try{!U&&W.return!=null&&W.return()}finally{if(G)throw X}}return H}}function _arrayWithHoles$2(K){if(Array.isArray(K))return K}function setTwoToneColor(K){var C=normalizeTwoToneColors(K),W=_slicedToArray$2(C,2),H=W[0],U=W[1];return VueIcon.setTwoToneColors({primaryColor:H,secondaryColor:U})}function getTwoToneColor(){var K=VueIcon.getTwoToneColors();return K.calculated?[K.primaryColor,K.secondaryColor]:K.primaryColor}var _excluded$3=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _slicedToArray$1(K,C){return _arrayWithHoles$1(K)||_iterableToArrayLimit$1(K,C)||_unsupportedIterableToArray$1(K,C)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(K,C){if(K){if(typeof K=="string")return _arrayLikeToArray$1(K,C);var W=Object.prototype.toString.call(K).slice(8,-1);if(W==="Object"&&K.constructor&&(W=K.constructor.name),W==="Map"||W==="Set")return Array.from(K);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return _arrayLikeToArray$1(K,C)}}function _arrayLikeToArray$1(K,C){(C==null||C>K.length)&&(C=K.length);for(var W=0,H=new Array(C);W<C;W++)H[W]=K[W];return H}function _iterableToArrayLimit$1(K,C){var W=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(W!=null){var H=[],U=!0,G=!1,Z,X;try{for(W=W.call(K);!(U=(Z=W.next()).done)&&(H.push(Z.value),!(C&&H.length===C));U=!0);}catch(Q){G=!0,X=Q}finally{try{!U&&W.return!=null&&W.return()}finally{if(G)throw X}}return H}}function _arrayWithHoles$1(K){if(Array.isArray(K))return K}function _objectSpread$n(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$o(K,U,W[U])})}return K}function _defineProperty$o(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}function _objectWithoutProperties$1(K,C){if(K==null)return{};var W=_objectWithoutPropertiesLoose$1(K,C),H,U;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(K);for(U=0;U<G.length;U++)H=G[U],!(C.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(K,H)&&(W[H]=K[H])}return W}function _objectWithoutPropertiesLoose$1(K,C){if(K==null)return{};var W={},H=Object.keys(K),U,G;for(G=0;G<H.length;G++)U=H[G],!(C.indexOf(U)>=0)&&(W[U]=K[U]);return W}setTwoToneColor("#1890ff");var Icon=function(C,W){var H,U=_objectSpread$n({},C,W.attrs),G=U.class,Z=U.icon,X=U.spin,Q=U.rotate,ee=U.tabindex,te=U.twoToneColor,ie=U.onClick,ne=_objectWithoutProperties$1(U,_excluded$3),oe=(H={anticon:!0},_defineProperty$o(H,"anticon-".concat(Z.name),!!Z.name),_defineProperty$o(H,G,G),H),re=X===""||X||Z.name==="loading"?"anticon-spin":"",se=ee;se===void 0&&ie&&(se=-1,ne.tabindex=se);var ae=Q?{msTransform:"rotate(".concat(Q,"deg)"),transform:"rotate(".concat(Q,"deg)")}:void 0,ce=normalizeTwoToneColors(te),le=_slicedToArray$1(ce,2),de=le[0],ue=le[1];return vue.createVNode("span",_objectSpread$n({role:"img","aria-label":Z.name},ne,{onClick:ie,class:oe}),[vue.createVNode(VueIcon,{class:re,icon:Z,primaryColor:de,secondaryColor:ue,style:ae},null)])};Icon.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon.displayName="AntdIcon",Icon.inheritAttrs=!1,Icon.getTwoToneColor=getTwoToneColor,Icon.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon;var AppstoreFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"};const AppstoreFilledSvg=AppstoreFilled$2;function _objectSpread$m(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$n(K,U,W[U])})}return K}function _defineProperty$n(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var AppstoreFilled=function(C,W){var H=_objectSpread$m({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$m({},H,{icon:AppstoreFilledSvg}),null)};AppstoreFilled.displayName="AppstoreFilled",AppstoreFilled.inheritAttrs=!1;const AppstoreFilled$1=AppstoreFilled;var CaretDownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const CaretDownOutlinedSvg=CaretDownOutlined$2;function _objectSpread$l(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$m(K,U,W[U])})}return K}function _defineProperty$m(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CaretDownOutlined=function(C,W){var H=_objectSpread$l({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$l({},H,{icon:CaretDownOutlinedSvg}),null)};CaretDownOutlined.displayName="CaretDownOutlined",CaretDownOutlined.inheritAttrs=!1;const CaretDownOutlined$1=CaretDownOutlined;var CaretRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const CaretRightOutlinedSvg=CaretRightOutlined$2;function _objectSpread$k(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$l(K,U,W[U])})}return K}function _defineProperty$l(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CaretRightOutlined=function(C,W){var H=_objectSpread$k({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$k({},H,{icon:CaretRightOutlinedSvg}),null)};CaretRightOutlined.displayName="CaretRightOutlined",CaretRightOutlined.inheritAttrs=!1;const CaretRightOutlined$1=CaretRightOutlined;var CheckCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const CheckCircleFilledSvg=CheckCircleFilled$2;function _objectSpread$j(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$k(K,U,W[U])})}return K}function _defineProperty$k(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CheckCircleFilled=function(C,W){var H=_objectSpread$j({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$j({},H,{icon:CheckCircleFilledSvg}),null)};CheckCircleFilled.displayName="CheckCircleFilled",CheckCircleFilled.inheritAttrs=!1;const CheckCircleFilled$1=CheckCircleFilled;var CheckCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const CheckCircleOutlinedSvg=CheckCircleOutlined$2;function _objectSpread$i(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$j(K,U,W[U])})}return K}function _defineProperty$j(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CheckCircleOutlined=function(C,W){var H=_objectSpread$i({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$i({},H,{icon:CheckCircleOutlinedSvg}),null)};CheckCircleOutlined.displayName="CheckCircleOutlined",CheckCircleOutlined.inheritAttrs=!1;const CheckCircleOutlined$1=CheckCircleOutlined;var CheckCircleTwoTone$2={icon:function(C,W){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:C}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:W}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:C}}]}},name:"check-circle",theme:"twotone"};const CheckCircleTwoToneSvg=CheckCircleTwoTone$2;function _objectSpread$h(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$i(K,U,W[U])})}return K}function _defineProperty$i(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CheckCircleTwoTone=function(C,W){var H=_objectSpread$h({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$h({},H,{icon:CheckCircleTwoToneSvg}),null)};CheckCircleTwoTone.displayName="CheckCircleTwoTone",CheckCircleTwoTone.inheritAttrs=!1;const CheckCircleTwoTone$1=CheckCircleTwoTone;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$g(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$h(K,U,W[U])})}return K}function _defineProperty$h(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CloseCircleFilled=function(C,W){var H=_objectSpread$g({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$g({},H,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseCircleOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const CloseCircleOutlinedSvg=CloseCircleOutlined$2;function _objectSpread$f(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$g(K,U,W[U])})}return K}function _defineProperty$g(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CloseCircleOutlined=function(C,W){var H=_objectSpread$f({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$f({},H,{icon:CloseCircleOutlinedSvg}),null)};CloseCircleOutlined.displayName="CloseCircleOutlined",CloseCircleOutlined.inheritAttrs=!1;const CloseCircleOutlined$1=CloseCircleOutlined;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$e(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$f(K,U,W[U])})}return K}function _defineProperty$f(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CloseOutlined=function(C,W){var H=_objectSpread$e({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$e({},H,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var CopyOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const CopyOutlinedSvg=CopyOutlined$2;function _objectSpread$d(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$e(K,U,W[U])})}return K}function _defineProperty$e(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CopyOutlined=function(C,W){var H=_objectSpread$d({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$d({},H,{icon:CopyOutlinedSvg}),null)};CopyOutlined.displayName="CopyOutlined",CopyOutlined.inheritAttrs=!1;const CopyOutlined$1=CopyOutlined;var DatabaseFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"}}]},name:"database",theme:"filled"};const DatabaseFilledSvg=DatabaseFilled$2;function _objectSpread$c(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$d(K,U,W[U])})}return K}function _defineProperty$d(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var DatabaseFilled=function(C,W){var H=_objectSpread$c({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$c({},H,{icon:DatabaseFilledSvg}),null)};DatabaseFilled.displayName="DatabaseFilled",DatabaseFilled.inheritAttrs=!1;const DatabaseFilled$1=DatabaseFilled;var DeleteOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const DeleteOutlinedSvg=DeleteOutlined$2;function _objectSpread$b(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$c(K,U,W[U])})}return K}function _defineProperty$c(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var DeleteOutlined=function(C,W){var H=_objectSpread$b({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$b({},H,{icon:DeleteOutlinedSvg}),null)};DeleteOutlined.displayName="DeleteOutlined",DeleteOutlined.inheritAttrs=!1;const DeleteOutlined$1=DeleteOutlined;var DragOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};const DragOutlinedSvg=DragOutlined$2;function _objectSpread$a(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$b(K,U,W[U])})}return K}function _defineProperty$b(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var DragOutlined=function(C,W){var H=_objectSpread$a({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$a({},H,{icon:DragOutlinedSvg}),null)};DragOutlined.displayName="DragOutlined",DragOutlined.inheritAttrs=!1;const DragOutlined$1=DragOutlined;var ExclamationCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const ExclamationCircleFilledSvg=ExclamationCircleFilled$2;function _objectSpread$9(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$a(K,U,W[U])})}return K}function _defineProperty$a(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var ExclamationCircleFilled=function(C,W){var H=_objectSpread$9({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$9({},H,{icon:ExclamationCircleFilledSvg}),null)};ExclamationCircleFilled.displayName="ExclamationCircleFilled",ExclamationCircleFilled.inheritAttrs=!1;const ExclamationCircleFilled$1=ExclamationCircleFilled;var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;function _objectSpread$8(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$9(K,U,W[U])})}return K}function _defineProperty$9(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var ExclamationCircleOutlined=function(C,W){var H=_objectSpread$8({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$8({},H,{icon:ExclamationCircleOutlinedSvg}),null)};ExclamationCircleOutlined.displayName="ExclamationCircleOutlined",ExclamationCircleOutlined.inheritAttrs=!1;const ExclamationCircleOutlined$1=ExclamationCircleOutlined;var FormOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const FormOutlinedSvg=FormOutlined$2;function _objectSpread$7(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$8(K,U,W[U])})}return K}function _defineProperty$8(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var FormOutlined=function(C,W){var H=_objectSpread$7({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$7({},H,{icon:FormOutlinedSvg}),null)};FormOutlined.displayName="FormOutlined",FormOutlined.inheritAttrs=!1;const FormOutlined$1=FormOutlined;var InfoCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const InfoCircleFilledSvg=InfoCircleFilled$2;function _objectSpread$6(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$7(K,U,W[U])})}return K}function _defineProperty$7(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var InfoCircleFilled=function(C,W){var H=_objectSpread$6({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$6({},H,{icon:InfoCircleFilledSvg}),null)};InfoCircleFilled.displayName="InfoCircleFilled",InfoCircleFilled.inheritAttrs=!1;const InfoCircleFilled$1=InfoCircleFilled;var InfoCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const InfoCircleOutlinedSvg=InfoCircleOutlined$2;function _objectSpread$5(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$6(K,U,W[U])})}return K}function _defineProperty$6(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var InfoCircleOutlined=function(C,W){var H=_objectSpread$5({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},H,{icon:InfoCircleOutlinedSvg}),null)};InfoCircleOutlined.displayName="InfoCircleOutlined",InfoCircleOutlined.inheritAttrs=!1;const InfoCircleOutlined$1=InfoCircleOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$4(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$5(K,U,W[U])})}return K}function _defineProperty$5(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var LoadingOutlined=function(C,W){var H=_objectSpread$4({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},H,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var MinusCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const MinusCircleFilledSvg=MinusCircleFilled$2;function _objectSpread$3(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$4(K,U,W[U])})}return K}function _defineProperty$4(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var MinusCircleFilled=function(C,W){var H=_objectSpread$3({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},H,{icon:MinusCircleFilledSvg}),null)};MinusCircleFilled.displayName="MinusCircleFilled",MinusCircleFilled.inheritAttrs=!1;const MinusCircleFilled$1=MinusCircleFilled;var MinusCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const MinusCircleOutlinedSvg=MinusCircleOutlined$2;function _objectSpread$2(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$3(K,U,W[U])})}return K}function _defineProperty$3(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var MinusCircleOutlined=function(C,W){var H=_objectSpread$2({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},H,{icon:MinusCircleOutlinedSvg}),null)};MinusCircleOutlined.displayName="MinusCircleOutlined",MinusCircleOutlined.inheritAttrs=!1;const MinusCircleOutlined$1=MinusCircleOutlined;var PlusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const PlusOutlinedSvg=PlusOutlined$2;function _objectSpread$1(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$2(K,U,W[U])})}return K}function _defineProperty$2(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var PlusOutlined=function(C,W){var H=_objectSpread$1({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},H,{icon:PlusOutlinedSvg}),null)};PlusOutlined.displayName="PlusOutlined",PlusOutlined.inheritAttrs=!1;const PlusOutlined$1=PlusOutlined;var SaveOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const SaveOutlinedSvg=SaveOutlined$2;function _objectSpread(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$1(K,U,W[U])})}return K}function _defineProperty$1(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var SaveOutlined=function(C,W){var H=_objectSpread({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread({},H,{icon:SaveOutlinedSvg}),null)};SaveOutlined.displayName="SaveOutlined",SaveOutlined.inheritAttrs=!1;const SaveOutlined$1=SaveOutlined,_hoisted_1$e={style:{"text-align":"left"}},_hoisted_2$a={class:"move"},_hoisted_3$8={key:0,class:"widget-view-drag"},_hoisted_4$6={class:"item-model"},_hoisted_5$5={key:12,class:"item-action"},_sfc_main$l=vue.defineComponent({__name:"FormInput",props:{data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},setup(K){const C=K,W=useFormStore(),{formData:H}=W;function U(G){const Z=C.activeIndex+"";if(Z.indexOf("-")>-1){const X=Z.split("-"),Q=Number.parseInt(X[0]),ee=Number.parseInt(X[1]),te=Number.parseInt(X[2]);H.list[Q].columns[ee].list.splice(te,1)}else{let X=H.list.indexOf(G);H.list.splice(X,1)}}return(G,Z)=>{const X=vue.resolveComponent("a-form-item"),Q=vue.resolveComponent("a-input"),ee=vue.resolveComponent("a-textarea"),te=vue.resolveComponent("a-date-picker"),ie=vue.resolveComponent("a-range-picker"),ne=vue.resolveComponent("a-switch"),oe=vue.resolveComponent("a-button"),re=vue.resolveComponent("a-select"),se=vue.resolveComponent("a-radio-group"),ae=vue.resolveComponent("a-checkbox-group"),ce=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,[vue.createElementVNode("div",_hoisted_2$a,[K.activeIndex==K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0)]),K.data.type=="label"?(vue.openBlock(),vue.createBlock(X,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle([{fontSize:K.data.font+"px",textAlign:K.data.align,color:K.data.color},K.data.cssextended])},vue.toDisplayString(K.data.name),5)]),_:1})):vue.createCommentVNode("",!0),K.data.type=="header"?(vue.openBlock(),vue.createBlock(X,{key:1},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(K.data.classname),style:vue.normalizeStyle(K.data.cssextended)},vue.toDisplayString(K.data.name),7)]),_:1})):K.data.type=="input"?(vue.openBlock(),vue.createBlock(X,{key:2,label:K.data.name,rules:[{required:K.data.required,message:"请输入"+K.data.name}]},{default:vue.withCtx(()=>[vue.createVNode(Q,{value:K.data.defaultValue,"onUpdate:value":Z[0]||(Z[0]=le=>K.data.defaultValue=le),defaultValue:K.data.defaultValue,style:vue.normalizeStyle({width:K.data.width}),prefix:K.data.prefix,suffix:K.data.suffix},null,8,["value","defaultValue","style","prefix","suffix"])]),_:1},8,["label","rules"])):K.data.type=="textarea"?(vue.openBlock(),vue.createBlock(X,{key:3,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ee,{value:K.data.defaultValue,"onUpdate:value":Z[1]||(Z[1]=le=>K.data.defaultValue=le),placeholder:"",rows:2,style:vue.normalizeStyle({width:K.data.width})},null,8,["value","style"])]),_:1},8,["label"])):K.data.type=="datepicker"?(vue.openBlock(),vue.createBlock(X,{key:4,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(te,{value:K.data.defaultValue,"onUpdate:value":Z[2]||(Z[2]=le=>K.data.defaultValue=le),disabled:"",style:vue.normalizeStyle({width:K.data.width})},null,8,["value","style"])]),_:1},8,["label"])):K.data.type=="rangepicker"?(vue.openBlock(),vue.createBlock(X,{key:5,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ie,{value:K.data.defaultValue,"onUpdate:value":Z[3]||(Z[3]=le=>K.data.defaultValue=le),disabled:"",style:vue.normalizeStyle({width:K.data.width})},null,8,["value","style"])]),_:1},8,["label"])):K.data.type=="switch"?(vue.openBlock(),vue.createBlock(X,{key:6,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ne,{checked:K.data.defaultValue,"onUpdate:checked":Z[4]||(Z[4]=le=>K.data.defaultValue=le)},null,8,["checked"])]),_:1},8,["label"])):K.data.type=="button"?(vue.openBlock(),vue.createBlock(oe,{key:7,type:K.data.buttonType},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(K.data.name),1)]),_:1},8,["type"])):K.data.type=="select"?(vue.openBlock(),vue.createBlock(X,{key:8,label:K.data.name,rules:[{required:K.data.required,message:"请输入"+K.data.name}]},{default:vue.withCtx(()=>[vue.createVNode(re,{style:vue.normalizeStyle([K.data.cssextended,{width:K.data.width}]),disabled:""},null,8,["style"])]),_:1},8,["label","rules"])):K.data.type=="radio"?(vue.openBlock(),vue.createBlock(X,{key:9,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(se,{value:K.data.defaultValue,"onUpdate:value":Z[5]||(Z[5]=le=>K.data.defaultValue=le),options:K.data.options},null,8,["value","options"])]),_:1},8,["label"])):K.data.type=="checkbox"?(vue.openBlock(),vue.createBlock(X,{key:10,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ae,{value:K.data.defaultValue,"onUpdate:value":Z[6]||(Z[6]=le=>K.data.defaultValue=le),options:K.data.options},null,8,["value","options"])]),_:1},8,["label"])):K.data.type=="treeselect"?(vue.openBlock(),vue.createBlock(X,{key:11,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:K.data.defaultValue,"onUpdate:value":Z[7]||(Z[7]=le=>K.data.defaultValue=le),disabled:""},null,8,["value"])]),_:1},8,["label"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$6,vue.toDisplayString(K.data.model),1),K.activeIndex===K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$5,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"}}),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:Z[8]||(Z[8]=le=>U(K.data))})])):vue.createCommentVNode("",!0)])}}}),FormInput_vue_vue_type_style_index_0_scoped_a1672db9_lang="",FormInput=_export_sfc(_sfc_main$l,[["__scopeId","data-v-a1672db9"]]),_hoisted_1$d={class:"move"},_hoisted_2$9={key:0,class:"widget-view-drag"},_hoisted_3$7=["onMousedown"],_hoisted_4$5={key:0,class:"item-action"},_sfc_main$k=vue.defineComponent({__name:"FormGrid",props:{data:{type:Object,default:null},activeIndex:{type:String,default:""},index:{type:String,default:""}},emits:["childConfig","index"],setup(K,{emit:C}){const W=K,H=useFormStore(),{formData:U}=H,G=vue.ref("-1");vue.watch(()=>W.activeIndex,(ie,ne)=>{G.value=ie});function Z(ie,ne,oe){G.value=ne,C("childConfig",ie),C("index",G.value),oe.stopPropagation(),oe.preventDefault()}function X(){debugger;G.value="-1",console.log("开始拖拽")}function Q(ie,ne){debugger;ie.to.className=="widget-col-list"?G.value=W.index+"-"+ne+"-"+ie.newIndex:G.value=ie.newIndex,C("index",G.value)}function ee(ie){const ne=JSON.parse(JSON.stringify(ie)),oe=Number.parseInt(W.index);U.list[oe].columns.push(ne)}function te(ie){}return(ie,ne)=>{const oe=vue.resolveComponent("a-col"),re=vue.resolveComponent("a-row"),se=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("div",_hoisted_1$d,[K.activeIndex==K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0)]),vue.createVNode(se,{"label-col":{style:{width:"100px"}},labelWrap:!0},{default:vue.withCtx(()=>[vue.createVNode(re,{gutter:[K.data.options.gutter,8],tyle:"flex",style:vue.normalizeStyle({marginLeft:-K.data.options.gutter/2+"px",marginRight:-K.data.options.gutter/2+"px"})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.data.columns,(ae,ce)=>(vue.openBlock(),vue.createBlock(oe,{class:vue.normalizeClass(["widget-col-item",{active:G.value=="col"+ce}]),span:ae.options.span,offset:ae.options.offset,onMousedown:le=>Z(ae,"col"+ce,le)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VueDraggableNext),{class:"widget-col-list",style:{"min-height":"50px"},"ghost-class":"ghost",list:ae.list,"force-fallback":!0,"chosen-class":"chosenClass2","drag-class":"dragClass1",onStart:X,onEnd:le=>Q(le,ce),group:"itxst",sort:!1,animation:"300",handle:".move",itemKey:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ae.list,(le,de)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["widget-view",{active:G.value==K.index+"-"+ce+"-"+de}]),onMousedown:ue=>Z(le,K.index+"-"+ce+"-"+de,ue)},[vue.createVNode(FormInput,{data:le,activeIndex:G.value,index:K.index+"-"+ce+"-"+de},null,8,["data","activeIndex","index"])],42,_hoisted_3$7))),256))]),_:2},1032,["list","onEnd"]),K.activeIndex==="col"+ce?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$5,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"},onClick:le=>ee(ae)},null,8,["onClick"]),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:ne[0]||(ne[0]=le=>(K.data,void 0))})])):vue.createCommentVNode("",!0)]),_:2},1032,["span","class","offset","onMousedown"]))),256))]),_:1},8,["gutter","style"])]),_:1})])}}}),FormGrid_vue_vue_type_style_index_0_scoped_236360af_lang="",FormGrid=_export_sfc(_sfc_main$k,[["__scopeId","data-v-236360af"]]),_hoisted_1$c={id:"table-css"},_hoisted_2$8={style:{"text-align":"left","padding-left":"50px"}},_hoisted_3$6=["onClick"],_sfc_main$j=vue.defineComponent({__name:"FormTable",props:{data:{type:Object,default:null},activeIndex:{type:String,default:""},index:{type:Number,default:""}},setup(K){const C=K,W=useFormStore(),{formData:H}=storeToRefs(W);let U=vue.ref(null),G=vue.ref(!1);function Z(te){U.value!=null&&(U.value.className=""),U.value=te,G.value=!0,te.className="tableClass"}let X=0;function Q(){H.value.list[C.index].tableColumns.push({title:"自定义列"+X,dataIndex:"code"}),X++}function ee(){U.value.children==null&&Reflect.set(U.value,"children",[]),U.value.children.push({title:"自定义列"+X,dataIndex:"code",key:"code"}),X++}return(te,ie)=>{const ne=vue.resolveComponent("a-input"),oe=vue.resolveComponent("a-table");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",_hoisted_2$8,[vue.createElementVNode("a",{onClick:Q},"添加列"),vue.createTextVNode(" "),vue.unref(G)?(vue.openBlock(),vue.createElementBlock("a",{key:0,onClick:ee},"分组『"+vue.toDisplayString(vue.unref(U).title)+"』添加列",1)):vue.createCommentVNode("",!0)]),vue.createVNode(oe,{columns:vue.unref(H).list[K.index].tableColumns,bordered:"",size:"middle",scroll:{y:240}},{headerCell:vue.withCtx(({column:re})=>[vue.createElementVNode("div",{onClick:se=>Z(re)},[vue.createVNode(ne,{value:re.title,"onUpdate:value":se=>re.title=se},null,8,["value","onUpdate:value"])],8,_hoisted_3$6)]),_:1},8,["columns"])])}}}),FormTable_vue_vue_type_style_index_0_scoped_4208a59b_lang="",FormTable=_export_sfc(_sfc_main$j,[["__scopeId","data-v-4208a59b"]]),_hoisted_1$b={id:"report-css"},_hoisted_2$7={class:"report-table-css"},_hoisted_3$5=["onClick"],_sfc_main$i=vue.defineComponent({__name:"FormReport",props:{data:{type:Object,default:null},activeIndex:{type:String,default:""},index:{type:Number,default:""}},setup(K){const C=useFormStore(),{formData:W}=storeToRefs(C);let H=vue.ref(null),U=vue.ref(!1);function G(Q,ee){H.value!=null&&(H.value.className=""),H.value=Q,U.value=!0}function Z(){}function X(){H.value.columns.push({type:"td",options:{customClass:"",colspan:1,rowspan:1,align:"left",valign:"top",width:"",height:""},list:[],key:"fuzps6zb",rules:[]})}return(Q,ee)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[vue.createElementVNode("div",{style:{"text-align":"left","padding-left":"50px"}},[vue.createElementVNode("a",{onClick:Z},"添加行"),vue.createTextVNode(" "),vue.createElementVNode("a",{onClick:X},"添加列")]),vue.createElementVNode("table",_hoisted_2$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(W).list[K.index].rows,(te,ie)=>(vue.openBlock(),vue.createElementBlock("tr",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(te.columns,(ne,oe)=>(vue.openBlock(),vue.createElementBlock("td",{class:"report-table-item",onClick:re=>G(te)}," fdfd ",8,_hoisted_3$5))),256))]))),256))])]))}}),FormReport_vue_vue_type_style_index_0_scoped_9eb302b9_lang="",FormReport=_export_sfc(_sfc_main$i,[["__scopeId","data-v-9eb302b9"]]),_hoisted_1$a={class:""},_hoisted_2$6=["onMousedown"],_sfc_main$h=vue.defineComponent({__name:"index",emits:["controlConfig"],setup(K,{emit:C}){const W=useFormStore();let{formData:H}=storeToRefs(W);const U={style:{width:"100px"}},G=vue.ref("-1");function Z(ne,oe,re){C("controlConfig",ne),G.value=oe,re.stopPropagation(),re.preventDefault()}function X(ne){C("controlConfig",ne)}function Q(ne){G.value=ne}function ee(){G.value="-1",console.log("开始拖拽")}function te(ne){ne.to.className=="widget-col-list"?G.value="base"+ne.newIndex:G.value=ne.newIndex}function ie(ne){}return(ne,oe)=>{const re=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(re,{class:"form-container","label-col":U},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VueDraggableNext),{class:vue.normalizeClass(vue.unref(H).list.length>0?"widget-form-list":"widgt-empty"),list:vue.unref(H).list,"ghost-class":"ghost",handle:".move","force-fallback":!0,"chosen-class":"chosenClass1","drag-class":"dragClass1",animation:"300",onStart:ee,onEnd:te,group:"itxst","fallback-class":!0,"fallback-on-body":!0,"touch-start-threshold":50,"fallback-tolerance":50,move:ie,itemKey:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(H).list,(se,ae)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-col widget-view",{active:G.value==ae.toString()}]),onMousedown:ce=>Z(se,ae.toString(),ce)},[se.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:0,data:se,activeIndex:G.value,onChildConfig:X,onIndex:Q,index:ae.toString()},null,8,["data","activeIndex","index"])):se.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:se,activeIndex:G.value,index:ae},null,8,["data","activeIndex","index"])):se.type=="report"?(vue.openBlock(),vue.createBlock(FormReport,{key:2,data:se,activeIndex:G.value,index:ae},null,8,["data","activeIndex","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:3,data:se,activeIndex:G.value,index:ae.toString()},null,8,["data","activeIndex","index"]))],42,_hoisted_2$6)]))),256))]),_:1},8,["class","list"])]),_:1})}}}),index_vue_vue_type_style_index_0_scoped_aa78c39f_lang="",FormDesign=_export_sfc(_sfc_main$h,[["__scopeId","data-v-aa78c39f"]]),_sfc_main$g=vue.defineComponent({__name:"Grid",props:{configData:{type:Object,default:{}}},setup(K){return(C,W)=>{const H=vue.resolveComponent("a-input"),U=vue.resolveComponent("a-form-item"),G=vue.resolveComponent("a-input-number"),Z=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(Z,{layout:"vertical",model:K.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(U,{label:"字段标识",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(H,{value:K.configData.model,"onUpdate:value":W[0]||(W[0]=X=>K.configData.model=X)},null,8,["value"])]),_:1}),vue.createVNode(U,{label:"栅格间距"},{default:vue.withCtx(()=>[vue.createVNode(G,{value:K.configData.options.gutter,"onUpdate:value":W[1]||(W[1]=X=>K.configData.options.gutter=X),min:1,max:30,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),_sfc_main$f=vue.defineComponent({__name:"Col",props:{configData:{type:Object,default:{}}},setup(K){return(C,W)=>{const H=vue.resolveComponent("a-input-number"),U=vue.resolveComponent("a-form-item"),G=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(G,{layout:"vertical",model:K.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(U,{label:"栅格占据的列数"},{default:vue.withCtx(()=>[vue.createVNode(H,{value:K.configData.options.span,"onUpdate:value":W[0]||(W[0]=Z=>K.configData.options.span=Z),min:4,max:24,style:{width:"100%"}},null,8,["value"])]),_:1}),vue.createVNode(U,{label:"栅格左侧的间隔格数"},{default:vue.withCtx(()=>[vue.createVNode(H,{value:K.configData.options.offset,"onUpdate:value":W[1]||(W[1]=Z=>K.configData.options.offset=Z),min:0,max:10,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),useDataStore=defineStore({id:"dataStore",state:()=>({selectList:[],updateList:[],delList:[],selectTables:[]}),getters:{getSelectData(K){return K.selectList},getSelectTables(K){return K.selectTables},getUpdateData(K){return K.updateList}},actions:{addSelectData(K){this.selectList.push(...K)},setSelectData(K){this.selectList=K},setUpdateData(K){this.updateList=K},addUpdateData(K){this.updateList.push(...K)},addSelectTable(K){this.selectTables.push(K)},setSelectTables(K){this.selectTables=K}}});function _typeof$1(K){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$1(K)}function _toPrimitive(K,C){if(_typeof$1(K)!=="object"||K===null)return K;var W=K[Symbol.toPrimitive];if(W!==void 0){var H=W.call(K,C||"default");if(_typeof$1(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(K)}function _toPropertyKey(K){var C=_toPrimitive(K,"string");return _typeof$1(C)==="symbol"?C:String(C)}function _defineProperty(K,C,W){return C=_toPropertyKey(C),C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}function ownKeys(K,C){var W=Object.keys(K);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(K);C&&(H=H.filter(function(U){return Object.getOwnPropertyDescriptor(K,U).enumerable})),W.push.apply(W,H)}return W}function _objectSpread2(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?arguments[C]:{};C%2?ownKeys(Object(W),!0).forEach(function(H){_defineProperty(K,H,W[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(W)):ownKeys(Object(W)).forEach(function(H){Object.defineProperty(K,H,Object.getOwnPropertyDescriptor(W,H))})}return K}function _extends(){return _extends=Object.assign?Object.assign.bind():function(K){for(var C=1;C<arguments.length;C++){var W=arguments[C];for(var H in W)Object.prototype.hasOwnProperty.call(W,H)&&(K[H]=W[H])}return K},_extends.apply(this,arguments)}var isArray$3=Array.isArray,isString$4=function(C){return typeof C=="string"},isObject$3=function(C){return C!==null&&_typeof$1(C)==="object"};function renderHelper(K){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=arguments.length>2?arguments[2]:void 0;return typeof K=="function"?K(C):K??W}function classNames(){for(var K=[],C=0;C<arguments.length;C++){var W=C<0||arguments.length<=C?void 0:arguments[C];if(W){if(isString$4(W))K.push(W);else if(isArray$3(W))for(var H=0;H<W.length;H++){var U=classNames(W[H]);U&&K.push(U)}else if(isObject$3(W))for(var G in W)W[G]&&K.push(G)}}return K.join(" ")}function _arrayWithHoles(K){if(Array.isArray(K))return K}function _iterableToArrayLimit(K,C){var W=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(W!=null){var H,U,G,Z,X=[],Q=!0,ee=!1;try{if(G=(W=W.call(K)).next,C===0){if(Object(W)!==W)return;Q=!1}else for(;!(Q=(H=G.call(W)).done)&&(X.push(H.value),X.length!==C);Q=!0);}catch(te){ee=!0,U=te}finally{try{if(!Q&&W.return!=null&&(Z=W.return(),Object(Z)!==Z))return}finally{if(ee)throw U}}return X}}function _arrayLikeToArray(K,C){(C==null||C>K.length)&&(C=K.length);for(var W=0,H=new Array(C);W<C;W++)H[W]=K[W];return H}function _unsupportedIterableToArray(K,C){if(K){if(typeof K=="string")return _arrayLikeToArray(K,C);var W=Object.prototype.toString.call(K).slice(8,-1);if(W==="Object"&&K.constructor&&(W=K.constructor.name),W==="Map"||W==="Set")return Array.from(K);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return _arrayLikeToArray(K,C)}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(K,C){if(K){if(typeof K=="string")return _arrayLikeToArray$1(K,C);var W=Object.prototype.toString.call(K).slice(8,-1);if(W==="Object"&&K.constructor&&(W=K.constructor.name),W==="Map"||W==="Set")return Array.from(K);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return _arrayLikeToArray$1(K,C)}}function _arrayLikeToArray$1(K,C){(C==null||C>K.length)&&(C=K.length);for(var W=0,H=new Array(C);W<C;W++)H[W]=K[W];return H}function _iterableToArrayLimit$1(K,C){var W=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(W!=null){var H=[],U=!0,G=!1,Z,X;try{for(W=W.call(K);!(U=(Z=W.next()).done)&&(H.push(Z.value),!(C&&H.length===C));U=!0);}catch(Q){G=!0,X=Q}finally{try{!U&&W.return!=null&&W.return()}finally{if(G)throw X}}return H}}function _arrayWithHoles$1(K){if(Array.isArray(K))return K}function _objectSpread$n(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$o(K,U,W[U])})}return K}function _defineProperty$o(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}function _objectWithoutProperties$1(K,C){if(K==null)return{};var W=_objectWithoutPropertiesLoose$1(K,C),H,U;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(K);for(U=0;U<G.length;U++)H=G[U],!(C.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(K,H)&&(W[H]=K[H])}return W}function _objectWithoutPropertiesLoose$1(K,C){if(K==null)return{};var W={},H=Object.keys(K),U,G;for(G=0;G<H.length;G++)U=H[G],!(C.indexOf(U)>=0)&&(W[U]=K[U]);return W}setTwoToneColor("#1890ff");var Icon=function(C,W){var H,U=_objectSpread$n({},C,W.attrs),G=U.class,Z=U.icon,X=U.spin,Q=U.rotate,ee=U.tabindex,te=U.twoToneColor,ie=U.onClick,ne=_objectWithoutProperties$1(U,_excluded$3),oe=(H={anticon:!0},_defineProperty$o(H,"anticon-".concat(Z.name),!!Z.name),_defineProperty$o(H,G,G),H),re=X===""||X||Z.name==="loading"?"anticon-spin":"",se=ee;se===void 0&&ie&&(se=-1,ne.tabindex=se);var ae=Q?{msTransform:"rotate(".concat(Q,"deg)"),transform:"rotate(".concat(Q,"deg)")}:void 0,ce=normalizeTwoToneColors(te),le=_slicedToArray$1(ce,2),de=le[0],ue=le[1];return vue.createVNode("span",_objectSpread$n({role:"img","aria-label":Z.name},ne,{onClick:ie,class:oe}),[vue.createVNode(VueIcon,{class:re,icon:Z,primaryColor:de,secondaryColor:ue,style:ae},null)])};Icon.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon.displayName="AntdIcon",Icon.inheritAttrs=!1,Icon.getTwoToneColor=getTwoToneColor,Icon.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon;var AppstoreFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"};const AppstoreFilledSvg=AppstoreFilled$2;function _objectSpread$m(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$n(K,U,W[U])})}return K}function _defineProperty$n(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var AppstoreFilled=function(C,W){var H=_objectSpread$m({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$m({},H,{icon:AppstoreFilledSvg}),null)};AppstoreFilled.displayName="AppstoreFilled",AppstoreFilled.inheritAttrs=!1;const AppstoreFilled$1=AppstoreFilled;var CaretDownOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const CaretDownOutlinedSvg=CaretDownOutlined$2;function _objectSpread$l(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$m(K,U,W[U])})}return K}function _defineProperty$m(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CaretDownOutlined=function(C,W){var H=_objectSpread$l({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$l({},H,{icon:CaretDownOutlinedSvg}),null)};CaretDownOutlined.displayName="CaretDownOutlined",CaretDownOutlined.inheritAttrs=!1;const CaretDownOutlined$1=CaretDownOutlined;var CaretRightOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const CaretRightOutlinedSvg=CaretRightOutlined$2;function _objectSpread$k(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$l(K,U,W[U])})}return K}function _defineProperty$l(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CaretRightOutlined=function(C,W){var H=_objectSpread$k({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$k({},H,{icon:CaretRightOutlinedSvg}),null)};CaretRightOutlined.displayName="CaretRightOutlined",CaretRightOutlined.inheritAttrs=!1;const CaretRightOutlined$1=CaretRightOutlined;var CheckCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const CheckCircleFilledSvg=CheckCircleFilled$2;function _objectSpread$j(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$k(K,U,W[U])})}return K}function _defineProperty$k(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CheckCircleFilled=function(C,W){var H=_objectSpread$j({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$j({},H,{icon:CheckCircleFilledSvg}),null)};CheckCircleFilled.displayName="CheckCircleFilled",CheckCircleFilled.inheritAttrs=!1;const CheckCircleFilled$1=CheckCircleFilled;var CheckCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const CheckCircleOutlinedSvg=CheckCircleOutlined$2;function _objectSpread$i(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$j(K,U,W[U])})}return K}function _defineProperty$j(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CheckCircleOutlined=function(C,W){var H=_objectSpread$i({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$i({},H,{icon:CheckCircleOutlinedSvg}),null)};CheckCircleOutlined.displayName="CheckCircleOutlined",CheckCircleOutlined.inheritAttrs=!1;const CheckCircleOutlined$1=CheckCircleOutlined;var CheckCircleTwoTone$2={icon:function(C,W){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:C}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:W}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:C}}]}},name:"check-circle",theme:"twotone"};const CheckCircleTwoToneSvg=CheckCircleTwoTone$2;function _objectSpread$h(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$i(K,U,W[U])})}return K}function _defineProperty$i(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CheckCircleTwoTone=function(C,W){var H=_objectSpread$h({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$h({},H,{icon:CheckCircleTwoToneSvg}),null)};CheckCircleTwoTone.displayName="CheckCircleTwoTone",CheckCircleTwoTone.inheritAttrs=!1;const CheckCircleTwoTone$1=CheckCircleTwoTone;var CloseCircleFilled$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const CloseCircleFilledSvg=CloseCircleFilled$2;function _objectSpread$g(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$h(K,U,W[U])})}return K}function _defineProperty$h(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CloseCircleFilled=function(C,W){var H=_objectSpread$g({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$g({},H,{icon:CloseCircleFilledSvg}),null)};CloseCircleFilled.displayName="CloseCircleFilled",CloseCircleFilled.inheritAttrs=!1;const CloseCircleFilled$1=CloseCircleFilled;var CloseCircleOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const CloseCircleOutlinedSvg=CloseCircleOutlined$2;function _objectSpread$f(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$g(K,U,W[U])})}return K}function _defineProperty$g(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CloseCircleOutlined=function(C,W){var H=_objectSpread$f({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$f({},H,{icon:CloseCircleOutlinedSvg}),null)};CloseCircleOutlined.displayName="CloseCircleOutlined",CloseCircleOutlined.inheritAttrs=!1;const CloseCircleOutlined$1=CloseCircleOutlined;var CloseOutlined$2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const CloseOutlinedSvg=CloseOutlined$2;function _objectSpread$e(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$f(K,U,W[U])})}return K}function _defineProperty$f(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CloseOutlined=function(C,W){var H=_objectSpread$e({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$e({},H,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;var CopyOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const CopyOutlinedSvg=CopyOutlined$2;function _objectSpread$d(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$e(K,U,W[U])})}return K}function _defineProperty$e(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var CopyOutlined=function(C,W){var H=_objectSpread$d({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$d({},H,{icon:CopyOutlinedSvg}),null)};CopyOutlined.displayName="CopyOutlined",CopyOutlined.inheritAttrs=!1;const CopyOutlined$1=CopyOutlined;var DatabaseFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"}}]},name:"database",theme:"filled"};const DatabaseFilledSvg=DatabaseFilled$2;function _objectSpread$c(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$d(K,U,W[U])})}return K}function _defineProperty$d(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var DatabaseFilled=function(C,W){var H=_objectSpread$c({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$c({},H,{icon:DatabaseFilledSvg}),null)};DatabaseFilled.displayName="DatabaseFilled",DatabaseFilled.inheritAttrs=!1;const DatabaseFilled$1=DatabaseFilled;var DeleteOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const DeleteOutlinedSvg=DeleteOutlined$2;function _objectSpread$b(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$c(K,U,W[U])})}return K}function _defineProperty$c(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var DeleteOutlined=function(C,W){var H=_objectSpread$b({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$b({},H,{icon:DeleteOutlinedSvg}),null)};DeleteOutlined.displayName="DeleteOutlined",DeleteOutlined.inheritAttrs=!1;const DeleteOutlined$1=DeleteOutlined;var DragOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};const DragOutlinedSvg=DragOutlined$2;function _objectSpread$a(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$b(K,U,W[U])})}return K}function _defineProperty$b(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var DragOutlined=function(C,W){var H=_objectSpread$a({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$a({},H,{icon:DragOutlinedSvg}),null)};DragOutlined.displayName="DragOutlined",DragOutlined.inheritAttrs=!1;const DragOutlined$1=DragOutlined;var ExclamationCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const ExclamationCircleFilledSvg=ExclamationCircleFilled$2;function _objectSpread$9(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$a(K,U,W[U])})}return K}function _defineProperty$a(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var ExclamationCircleFilled=function(C,W){var H=_objectSpread$9({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$9({},H,{icon:ExclamationCircleFilledSvg}),null)};ExclamationCircleFilled.displayName="ExclamationCircleFilled",ExclamationCircleFilled.inheritAttrs=!1;const ExclamationCircleFilled$1=ExclamationCircleFilled;var ExclamationCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;function _objectSpread$8(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$9(K,U,W[U])})}return K}function _defineProperty$9(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var ExclamationCircleOutlined=function(C,W){var H=_objectSpread$8({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$8({},H,{icon:ExclamationCircleOutlinedSvg}),null)};ExclamationCircleOutlined.displayName="ExclamationCircleOutlined",ExclamationCircleOutlined.inheritAttrs=!1;const ExclamationCircleOutlined$1=ExclamationCircleOutlined;var FormOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"};const FormOutlinedSvg=FormOutlined$2;function _objectSpread$7(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$8(K,U,W[U])})}return K}function _defineProperty$8(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var FormOutlined=function(C,W){var H=_objectSpread$7({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$7({},H,{icon:FormOutlinedSvg}),null)};FormOutlined.displayName="FormOutlined",FormOutlined.inheritAttrs=!1;const FormOutlined$1=FormOutlined;var InfoCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const InfoCircleFilledSvg=InfoCircleFilled$2;function _objectSpread$6(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$7(K,U,W[U])})}return K}function _defineProperty$7(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var InfoCircleFilled=function(C,W){var H=_objectSpread$6({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$6({},H,{icon:InfoCircleFilledSvg}),null)};InfoCircleFilled.displayName="InfoCircleFilled",InfoCircleFilled.inheritAttrs=!1;const InfoCircleFilled$1=InfoCircleFilled;var InfoCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const InfoCircleOutlinedSvg=InfoCircleOutlined$2;function _objectSpread$5(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$6(K,U,W[U])})}return K}function _defineProperty$6(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var InfoCircleOutlined=function(C,W){var H=_objectSpread$5({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$5({},H,{icon:InfoCircleOutlinedSvg}),null)};InfoCircleOutlined.displayName="InfoCircleOutlined",InfoCircleOutlined.inheritAttrs=!1;const InfoCircleOutlined$1=InfoCircleOutlined;var LoadingOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const LoadingOutlinedSvg=LoadingOutlined$2;function _objectSpread$4(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$5(K,U,W[U])})}return K}function _defineProperty$5(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var LoadingOutlined=function(C,W){var H=_objectSpread$4({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$4({},H,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined;var MinusCircleFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const MinusCircleFilledSvg=MinusCircleFilled$2;function _objectSpread$3(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$4(K,U,W[U])})}return K}function _defineProperty$4(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var MinusCircleFilled=function(C,W){var H=_objectSpread$3({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$3({},H,{icon:MinusCircleFilledSvg}),null)};MinusCircleFilled.displayName="MinusCircleFilled",MinusCircleFilled.inheritAttrs=!1;const MinusCircleFilled$1=MinusCircleFilled;var MinusCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const MinusCircleOutlinedSvg=MinusCircleOutlined$2;function _objectSpread$2(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$3(K,U,W[U])})}return K}function _defineProperty$3(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var MinusCircleOutlined=function(C,W){var H=_objectSpread$2({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$2({},H,{icon:MinusCircleOutlinedSvg}),null)};MinusCircleOutlined.displayName="MinusCircleOutlined",MinusCircleOutlined.inheritAttrs=!1;const MinusCircleOutlined$1=MinusCircleOutlined;var PlusOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const PlusOutlinedSvg=PlusOutlined$2;function _objectSpread$1(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$2(K,U,W[U])})}return K}function _defineProperty$2(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var PlusOutlined=function(C,W){var H=_objectSpread$1({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},H,{icon:PlusOutlinedSvg}),null)};PlusOutlined.displayName="PlusOutlined",PlusOutlined.inheritAttrs=!1;const PlusOutlined$1=PlusOutlined;var SaveOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const SaveOutlinedSvg=SaveOutlined$2;function _objectSpread(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?Object(arguments[C]):{},H=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(H=H.concat(Object.getOwnPropertySymbols(W).filter(function(U){return Object.getOwnPropertyDescriptor(W,U).enumerable}))),H.forEach(function(U){_defineProperty$1(K,U,W[U])})}return K}function _defineProperty$1(K,C,W){return C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}var SaveOutlined=function(C,W){var H=_objectSpread({},C,W.attrs);return vue.createVNode(AntdIcon,_objectSpread({},H,{icon:SaveOutlinedSvg}),null)};SaveOutlined.displayName="SaveOutlined",SaveOutlined.inheritAttrs=!1;const SaveOutlined$1=SaveOutlined,_hoisted_1$e={style:{"text-align":"left"}},_hoisted_2$a={class:"move"},_hoisted_3$8={key:0,class:"widget-view-drag"},_hoisted_4$6={class:"item-model"},_hoisted_5$6={key:12,class:"item-action"},_sfc_main$l=vue.defineComponent({__name:"FormInput",props:{data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},setup(K){const C=K,W=useFormStore(),{formData:H}=W;function U(G){const Z=C.activeIndex+"";if(Z.indexOf("-")>-1){const X=Z.split("-"),Q=Number.parseInt(X[0]),ee=Number.parseInt(X[1]),te=Number.parseInt(X[2]);H.list[Q].columns[ee].list.splice(te,1)}else{let X=H.list.indexOf(G);H.list.splice(X,1)}}return(G,Z)=>{const X=vue.resolveComponent("a-form-item"),Q=vue.resolveComponent("a-input"),ee=vue.resolveComponent("a-textarea"),te=vue.resolveComponent("a-date-picker"),ie=vue.resolveComponent("a-range-picker"),ne=vue.resolveComponent("a-switch"),oe=vue.resolveComponent("a-button"),re=vue.resolveComponent("a-select"),se=vue.resolveComponent("a-radio-group"),ae=vue.resolveComponent("a-checkbox-group"),ce=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,[vue.createElementVNode("div",_hoisted_2$a,[K.activeIndex==K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0)]),K.data.type=="label"?(vue.openBlock(),vue.createBlock(X,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle([{fontSize:K.data.font+"px",textAlign:K.data.align,color:K.data.color},K.data.cssextended])},vue.toDisplayString(K.data.name),5)]),_:1})):vue.createCommentVNode("",!0),K.data.type=="header"?(vue.openBlock(),vue.createBlock(X,{key:1},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(K.data.classname),style:vue.normalizeStyle(K.data.cssextended)},vue.toDisplayString(K.data.name),7)]),_:1})):K.data.type=="input"?(vue.openBlock(),vue.createBlock(X,{key:2,label:K.data.name,rules:[{required:K.data.required,message:"请输入"+K.data.name}]},{default:vue.withCtx(()=>[vue.createVNode(Q,{value:K.data.defaultValue,"onUpdate:value":Z[0]||(Z[0]=le=>K.data.defaultValue=le),defaultValue:K.data.defaultValue,style:vue.normalizeStyle({width:K.data.width}),prefix:K.data.prefix,suffix:K.data.suffix},null,8,["value","defaultValue","style","prefix","suffix"])]),_:1},8,["label","rules"])):K.data.type=="textarea"?(vue.openBlock(),vue.createBlock(X,{key:3,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ee,{value:K.data.defaultValue,"onUpdate:value":Z[1]||(Z[1]=le=>K.data.defaultValue=le),placeholder:"",rows:2,style:vue.normalizeStyle({width:K.data.width})},null,8,["value","style"])]),_:1},8,["label"])):K.data.type=="datepicker"?(vue.openBlock(),vue.createBlock(X,{key:4,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(te,{value:K.data.defaultValue,"onUpdate:value":Z[2]||(Z[2]=le=>K.data.defaultValue=le),disabled:"",style:vue.normalizeStyle({width:K.data.width})},null,8,["value","style"])]),_:1},8,["label"])):K.data.type=="rangepicker"?(vue.openBlock(),vue.createBlock(X,{key:5,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ie,{value:K.data.defaultValue,"onUpdate:value":Z[3]||(Z[3]=le=>K.data.defaultValue=le),disabled:"",style:vue.normalizeStyle({width:K.data.width})},null,8,["value","style"])]),_:1},8,["label"])):K.data.type=="switch"?(vue.openBlock(),vue.createBlock(X,{key:6,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ne,{checked:K.data.defaultValue,"onUpdate:checked":Z[4]||(Z[4]=le=>K.data.defaultValue=le)},null,8,["checked"])]),_:1},8,["label"])):K.data.type=="button"?(vue.openBlock(),vue.createBlock(oe,{key:7,type:K.data.buttonType},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(K.data.name),1)]),_:1},8,["type"])):K.data.type=="select"?(vue.openBlock(),vue.createBlock(X,{key:8,label:K.data.name,rules:[{required:K.data.required,message:"请输入"+K.data.name}]},{default:vue.withCtx(()=>[vue.createVNode(re,{style:vue.normalizeStyle([K.data.cssextended,{width:K.data.width}]),disabled:""},null,8,["style"])]),_:1},8,["label","rules"])):K.data.type=="radio"?(vue.openBlock(),vue.createBlock(X,{key:9,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(se,{value:K.data.defaultValue,"onUpdate:value":Z[5]||(Z[5]=le=>K.data.defaultValue=le),options:K.data.options},null,8,["value","options"])]),_:1},8,["label"])):K.data.type=="checkbox"?(vue.openBlock(),vue.createBlock(X,{key:10,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ae,{value:K.data.defaultValue,"onUpdate:value":Z[6]||(Z[6]=le=>K.data.defaultValue=le),options:K.data.options},null,8,["value","options"])]),_:1},8,["label"])):K.data.type=="treeselect"?(vue.openBlock(),vue.createBlock(X,{key:11,label:K.data.name},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:K.data.defaultValue,"onUpdate:value":Z[7]||(Z[7]=le=>K.data.defaultValue=le),disabled:""},null,8,["value"])]),_:1},8,["label"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$6,vue.toDisplayString(K.data.model),1),K.activeIndex===K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$6,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"}}),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:Z[8]||(Z[8]=le=>U(K.data))})])):vue.createCommentVNode("",!0)])}}}),FormInput_vue_vue_type_style_index_0_scoped_a1672db9_lang="",FormInput=_export_sfc(_sfc_main$l,[["__scopeId","data-v-a1672db9"]]);function _typeof$1(K){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof$1(K)}function _toPrimitive(K,C){if(_typeof$1(K)!=="object"||K===null)return K;var W=K[Symbol.toPrimitive];if(W!==void 0){var H=W.call(K,C||"default");if(_typeof$1(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(K)}function _toPropertyKey(K){var C=_toPrimitive(K,"string");return _typeof$1(C)==="symbol"?C:String(C)}function _defineProperty(K,C,W){return C=_toPropertyKey(C),C in K?Object.defineProperty(K,C,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[C]=W,K}function ownKeys(K,C){var W=Object.keys(K);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(K);C&&(H=H.filter(function(U){return Object.getOwnPropertyDescriptor(K,U).enumerable})),W.push.apply(W,H)}return W}function _objectSpread2(K){for(var C=1;C<arguments.length;C++){var W=arguments[C]!=null?arguments[C]:{};C%2?ownKeys(Object(W),!0).forEach(function(H){_defineProperty(K,H,W[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(W)):ownKeys(Object(W)).forEach(function(H){Object.defineProperty(K,H,Object.getOwnPropertyDescriptor(W,H))})}return K}function _extends(){return _extends=Object.assign?Object.assign.bind():function(K){for(var C=1;C<arguments.length;C++){var W=arguments[C];for(var H in W)Object.prototype.hasOwnProperty.call(W,H)&&(K[H]=W[H])}return K},_extends.apply(this,arguments)}var isArray$3=Array.isArray,isString$4=function(C){return typeof C=="string"},isObject$3=function(C){return C!==null&&_typeof$1(C)==="object"};function renderHelper(K){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=arguments.length>2?arguments[2]:void 0;return typeof K=="function"?K(C):K??W}function classNames(){for(var K=[],C=0;C<arguments.length;C++){var W=C<0||arguments.length<=C?void 0:arguments[C];if(W){if(isString$4(W))K.push(W);else if(isArray$3(W))for(var H=0;H<W.length;H++){var U=classNames(W[H]);U&&K.push(U)}else if(isObject$3(W))for(var G in W)W[G]&&K.push(G)}}return K.join(" ")}function _arrayWithHoles(K){if(Array.isArray(K))return K}function _iterableToArrayLimit(K,C){var W=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(W!=null){var H,U,G,Z,X=[],Q=!0,ee=!1;try{if(G=(W=W.call(K)).next,C===0){if(Object(W)!==W)return;Q=!1}else for(;!(Q=(H=G.call(W)).done)&&(X.push(H.value),X.length!==C);Q=!0);}catch(te){ee=!0,U=te}finally{try{if(!Q&&W.return!=null&&(Z=W.return(),Object(Z)!==Z))return}finally{if(ee)throw U}}return X}}function _arrayLikeToArray(K,C){(C==null||C>K.length)&&(C=K.length);for(var W=0,H=new Array(C);W<C;W++)H[W]=K[W];return H}function _unsupportedIterableToArray(K,C){if(K){if(typeof K=="string")return _arrayLikeToArray(K,C);var W=Object.prototype.toString.call(K).slice(8,-1);if(W==="Object"&&K.constructor&&(W=K.constructor.name),W==="Map"||W==="Set")return Array.from(K);if(W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return _arrayLikeToArray(K,C)}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
78
78
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(K,C){return _arrayWithHoles(K)||_iterableToArrayLimit(K,C)||_unsupportedIterableToArray(K,C)||_nonIterableRest()}function _arrayWithoutHoles(K){if(Array.isArray(K))return _arrayLikeToArray(K)}function _iterableToArray(K){if(typeof Symbol<"u"&&K[Symbol.iterator]!=null||K["@@iterator"]!=null)return Array.from(K)}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
79
79
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(K){return _arrayWithoutHoles(K)||_iterableToArray(K)||_unsupportedIterableToArray(K)||_nonIterableSpread()}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(K){var C=hasOwnProperty$c.call(K,symToStringTag$1),W=K[symToStringTag$1];try{K[symToStringTag$1]=void 0;var H=!0}catch{}var U=nativeObjectToString$1.call(K);return H&&(C?K[symToStringTag$1]=W:delete K[symToStringTag$1]),U}var objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString(K){return nativeObjectToString.call(K)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(K){return K==null?K===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(K)?getRawTag(K):objectToString(K)}function overArg(K,C){return function(W){return K(C(W))}}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;function isObjectLike(K){return K!=null&&typeof K=="object"}var isValid$1=function(C){return C!=null&&C!==""};const isValid$2=isValid$1;var initDefaultProps=function(C,W){var H=_objectSpread2({},C);return Object.keys(W).forEach(function(U){var G=H[U];if(G)G.type||G.default?G.default=W[U]:G.def?G.def(W[U]):H[U]={type:G,default:W[U]};else throw new Error("not have ".concat(U," prop"))}),H};const initDefaultProps$1=initDefaultProps;var flattenChildren=function K(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,H=Array.isArray(C)?C:[C],U=[];return H.forEach(function(G){Array.isArray(G)?U.push.apply(U,_toConsumableArray(K(G,W))):G&&G.type===vue.Fragment?U.push.apply(U,_toConsumableArray(K(G.children,W))):G&&vue.isVNode(G)?W&&!isEmptyElement(G)?U.push(G):W||U.push(G):isValid$2(G)&&U.push(G)}),U},findDOMNode=function(C){for(var W,H=(C==null||(W=C.vnode)===null||W===void 0?void 0:W.el)||C&&(C.$el||C);H&&!H.tagName;)H=H.nextSibling;return H};function isEmptyElement(K){return K&&(K.type===vue.Comment||K.type===vue.Fragment&&K.children.length===0||K.type===vue.Text&&K.children.trim()==="")}function filterEmpty(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=[];return K.forEach(function(W){Array.isArray(W)?C.push.apply(C,_toConsumableArray(W)):(W==null?void 0:W.type)===vue.Fragment?C.push.apply(C,_toConsumableArray(filterEmpty(W.children))):C.push(W)}),C.filter(function(W){return!isEmptyElement(W)})}var raf=function(C){return setTimeout(C,16)},caf=function(C){return clearTimeout(C)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf=function(C){return window.requestAnimationFrame(C)},caf=function(C){return window.cancelAnimationFrame(C)});var rafUUID=0,rafIds=new Map;function cleanup(K){rafIds.delete(K)}function wrapperRaf(K){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var W=rafUUID;function H(U){if(U===0)cleanup(W),K();else{var G=raf(function(){H(U-1)});rafIds.set(W,G)}}return H(C),W}wrapperRaf.cancel=function(K){var C=rafIds.get(K);return cleanup(C),caf(C)};var tuple=function(){for(var C=arguments.length,W=new Array(C),H=0;H<C;H++)W[H]=arguments[H];return W},withInstall=function(C){var W=C;return W.install=function(H){H.component(W.displayName||W.name,C)},C},supportsPassive=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){supportsPassive=!0}});window.addEventListener("testPassive",null,opts),window.removeEventListener("testPassive",null,opts)}catch(K){}const supportsPassive$1=supportsPassive;function addEventListenerWrap(K,C,W,H){if(K&&K.addEventListener){var U=H;U===void 0&&supportsPassive$1&&(C==="touchstart"||C==="touchmove"||C==="wheel")&&(U={passive:!1}),K.addEventListener(C,W,U)}return{remove:function(){K&&K.removeEventListener&&K.removeEventListener(C,W)}}}function _objectWithoutPropertiesLoose(K,C){if(K==null)return{};var W={},H=Object.keys(K),U,G;for(G=0;G<H.length;G++)U=H[G],!(C.indexOf(U)>=0)&&(W[U]=K[U]);return W}function _objectWithoutProperties(K,C){if(K==null)return{};var W=_objectWithoutPropertiesLoose(K,C),H,U;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(K);for(U=0;U<G.length;U++)H=G[U],!(C.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(K,H)&&(W[H]=K[H])}return W}const enUS$1={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};var locale$2={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const CalendarLocale=locale$2;var locale$1={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};const TimePicker=locale$1;var locale={lang:_objectSpread2({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},CalendarLocale),timePickerLocale:_objectSpread2({},TimePicker)};const enUS=locale;var typeTemplate="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:enUS$1,DatePicker:enUS,TimePicker,Calendar:enUS,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const defaultLocale=localeValues,LocaleReceiver=vue.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(C,W){var H=W.slots,U=vue.inject("localeData",{}),G=vue.computed(function(){var X=C.componentName,Q=X===void 0?"global":X,ee=C.defaultLocale,te=ee||defaultLocale[Q||"global"],ie=U.antLocale,ne=Q&&ie?ie[Q]:{};return _objectSpread2(_objectSpread2({},typeof te=="function"?te():te),ne||{})}),Z=vue.computed(function(){var X=U.antLocale,Q=X&&X.locale;return X&&X.exist&&!Q?defaultLocale.locale:Q});return function(){var X=C.children||H.default,Q=U.antLocale;return X==null?void 0:X(G.value,Z.value,Q)}}});function useLocaleReceiver(K,C,W){var H=vue.inject("localeData",{}),U=vue.computed(function(){var G=H.antLocale,Z=vue.unref(C)||defaultLocale[K||"global"],X=K&&G?G[K]:{};return _objectSpread2(_objectSpread2(_objectSpread2({},typeof Z=="function"?Z():Z),X||{}),vue.unref(W)||{})});return[U]}var Empty$2=function(){var C=useConfigInject("empty",{}),W=C.getPrefixCls,H=W("empty-img-default");return vue.createVNode("svg",{class:H,width:"184",height:"152",viewBox:"0 0 184 152"},[vue.createVNode("g",{fill:"none","fill-rule":"evenodd"},[vue.createVNode("g",{transform:"translate(24 31.67)"},[vue.createVNode("ellipse",{class:"".concat(H,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),vue.createVNode("path",{class:"".concat(H,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),vue.createVNode("path",{class:"".concat(H,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),vue.createVNode("path",{class:"".concat(H,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),vue.createVNode("path",{class:"".concat(H,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),vue.createVNode("path",{class:"".concat(H,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),vue.createVNode("g",{class:"".concat(H,"-g"),transform:"translate(149.65 15.383)"},[vue.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),vue.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};Empty$2.PRESENTED_IMAGE_DEFAULT=!0;const DefaultEmptyImg=Empty$2;var Simple=function(){var C=useConfigInject("empty",{}),W=C.getPrefixCls,H=W("empty-img-simple");return vue.createVNode("svg",{class:H,width:"64",height:"41",viewBox:"0 0 64 41"},[vue.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[vue.createVNode("ellipse",{class:"".concat(H,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),vue.createVNode("g",{class:"".concat(H,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[vue.createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),vue.createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(H,"-path")},null)])])])};Simple.PRESENTED_IMAGE_SIMPLE=!0;const SimpleEmptyImg=Simple;function e(K,C){for(var W=0;W<C.length;W++){var H=C[W];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(K,H.key,H)}}function t(K,C,W){return C&&e(K.prototype,C),W&&e(K,W),K}function n(){return(n=Object.assign||function(K){for(var C=1;C<arguments.length;C++){var W=arguments[C];for(var H in W)Object.prototype.hasOwnProperty.call(W,H)&&(K[H]=W[H])}return K}).apply(this,arguments)}function r$1(K,C){K.prototype=Object.create(C.prototype),K.prototype.constructor=K,K.__proto__=C}function i(K,C){if(K==null)return{};var W,H,U={},G=Object.keys(K);for(H=0;H<G.length;H++)C.indexOf(W=G[H])>=0||(U[W]=K[W]);return U}function o(K){return((C=K)!=null&&typeof C=="object"&&Array.isArray(C)===!1)==1&&Object.prototype.toString.call(K)==="[object Object]";var C}var u=Object.prototype,a=u.toString,f=u.hasOwnProperty,c=/^\s*function (\w+)/;function l(K){var C,W=(C=K==null?void 0:K.type)!==null&&C!==void 0?C:K;if(W){var H=W.toString().match(c);return H?H[1]:""}return""}var s=function(K){var C,W;return o(K)!==!1&&typeof(C=K.constructor)=="function"&&o(W=C.prototype)!==!1&&W.hasOwnProperty("isPrototypeOf")!==!1},v=function(K){return K},y=v;if(process.env.NODE_ENV!=="production"){var p=typeof console<"u";y=p?function(K){console.warn("[VueTypes warn]: "+K)}:v}var d=function(K,C){return f.call(K,C)},h$1=Number.isInteger||function(K){return typeof K=="number"&&isFinite(K)&&Math.floor(K)===K},b=Array.isArray||function(K){return a.call(K)==="[object Array]"},O=function(K){return a.call(K)==="[object Function]"},g=function(K){return s(K)&&d(K,"_vueTypes_name")},m=function(K){return s(K)&&(d(K,"type")||["_vueTypes_name","validator","default","required"].some(function(C){return d(K,C)}))};function j(K,C){return Object.defineProperty(K.bind(C),"__original",{value:K})}function _(K,C,W){var H;W===void 0&&(W=!1);var U=!0,G="";H=s(K)?K:{type:K};var Z=g(H)?H._vueTypes_name+" - ":"";if(m(H)&&H.type!==null){if(H.type===void 0||H.type===!0||!H.required&&C===void 0)return U;b(H.type)?(U=H.type.some(function(ie){return _(ie,C,!0)===!0}),G=H.type.map(function(ie){return l(ie)}).join(" or ")):U=(G=l(H))==="Array"?b(C):G==="Object"?s(C):G==="String"||G==="Number"||G==="Boolean"||G==="Function"?function(ie){if(ie==null)return"";var ne=ie.constructor.toString().match(c);return ne?ne[1]:""}(C)===G:C instanceof H.type}if(!U){var X=Z+'value "'+C+'" should be of type "'+G+'"';return W===!1?(y(X),!1):X}if(d(H,"validator")&&O(H.validator)){var Q=y,ee=[];if(y=function(ie){ee.push(ie)},U=H.validator(C),y=Q,!U){var te=(ee.length>1?"* ":"")+ee.join(`
|
|
80
80
|
* `);return ee.length=0,W===!1?(y(te),U):te}}return U}function T(K,C){var W=Object.defineProperties(C,{_vueTypes_name:{value:K,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(U){return U!==void 0||this.default?O(U)||_(this,U,!0)===!0?(this.default=b(U)?function(){return[].concat(U)}:s(U)?function(){return Object.assign({},U)}:U,this):(y(this._vueTypes_name+' - invalid default value: "'+U+'"'),this):this}}}),H=W.validator;return O(H)&&(W.validator=j(H,W)),W}function w(K,C){var W=T(K,C);return Object.defineProperty(W,"validate",{value:function(H){return O(this.validator)&&y(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
@@ -108,7 +108,7 @@ summary tabindex target title type usemap value width wmode wrap`,eventsName=`on
|
|
|
108
108
|
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match$1(K,C){return K.indexOf(C)===0}function pickAttrs(K){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W;C===!1?W={aria:!0,data:!0,attr:!0}:C===!0?W={aria:!0}:W=_objectSpread2({},C);var H={};return Object.keys(K).forEach(function(U){(W.aria&&(U==="role"||match$1(U,ariaPrefix))||W.data&&match$1(U,dataPrefix)||W.attr&&(propList.includes(U)||propList.includes(U.toLowerCase())))&&(H[U]=K[U])}),H}var START_EVENT_NAME_MAP={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},END_EVENT_NAME_MAP={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},startEvents=[],endEvents=[];function detectEvents(){var K=document.createElement("div"),C=K.style;"AnimationEvent"in window||(delete START_EVENT_NAME_MAP.animationstart.animation,delete END_EVENT_NAME_MAP.animationend.animation),"TransitionEvent"in window||(delete START_EVENT_NAME_MAP.transitionstart.transition,delete END_EVENT_NAME_MAP.transitionend.transition);function W(H,U){for(var G in H)if(H.hasOwnProperty(G)){var Z=H[G];for(var X in Z)if(X in C){U.push(Z[X]);break}}}W(START_EVENT_NAME_MAP,startEvents),W(END_EVENT_NAME_MAP,endEvents)}typeof window<"u"&&typeof document<"u"&&detectEvents();function addEventListener(K,C,W){K.addEventListener(C,W,!1)}function removeEventListener(K,C,W){K.removeEventListener(C,W,!1)}var TransitionEvents={startEvents,addStartEventListener:function(C,W){if(startEvents.length===0){setTimeout(W,0);return}startEvents.forEach(function(H){addEventListener(C,H,W)})},removeStartEventListener:function(C,W){startEvents.length!==0&&startEvents.forEach(function(H){removeEventListener(C,H,W)})},endEvents,addEndEventListener:function(C,W){if(endEvents.length===0){setTimeout(W,0);return}endEvents.forEach(function(H){addEventListener(C,H,W)})},removeEndEventListener:function(C,W){endEvents.length!==0&&endEvents.forEach(function(H){removeEventListener(C,H,W)})}};const TransitionEvents$1=TransitionEvents;var styleForPesudo;function isHidden(K){return process.env.NODE_ENV==="test"?!1:!K||K.offsetParent===null}function isNotGrey(K){var C=(K||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return C&&C[1]&&C[2]&&C[3]?!(C[1]===C[2]&&C[2]===C[3]):!0}const Wave=vue.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(C,W){var H=W.slots,U=W.expose,G=vue.getCurrentInstance(),Z=useConfigInject("",C),X=Z.csp,Q=Z.prefixCls;U({csp:X});var ee=null,te=null,ie=null,ne=!1,oe=null,re=!1,se=function(fe){if(!re){var ge=findDOMNode(G);!fe||fe.target!==ge||ne||de(ge)}},ae=function(fe){!fe||fe.animationName!=="fadeEffect"||de(fe.target)},ce=function(){var fe=C.insertExtraNode;return fe?"".concat(Q.value,"-click-animating"):"".concat(Q.value,"-click-animating-without-extra-node")},le=function(fe,ge){var me=C.insertExtraNode,pe=C.disabled;if(!(pe||!fe||isHidden(fe)||fe.className.indexOf("-leave")>=0)){oe=document.createElement("div"),oe.className="".concat(Q.value,"-click-animating-node");var ve=ce();if(fe.removeAttribute(ve),fe.setAttribute(ve,"true"),styleForPesudo=styleForPesudo||document.createElement("style"),ge&&ge!=="#ffffff"&&ge!=="rgb(255, 255, 255)"&&isNotGrey(ge)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(ge)&&ge!=="transparent"){var we;(we=X.value)!==null&&we!==void 0&&we.nonce&&(styleForPesudo.nonce=X.value.nonce),oe.style.borderColor=ge,styleForPesudo.innerHTML=`
|
|
109
109
|
[`.concat(Q.value,"-click-animating-without-extra-node='true']::after, .").concat(Q.value,`-click-animating-node {
|
|
110
110
|
--antd-wave-shadow-color: `).concat(ge,`;
|
|
111
|
-
}`),document.body.contains(styleForPesudo)||document.body.appendChild(styleForPesudo)}me&&fe.appendChild(oe),TransitionEvents$1.addStartEventListener(fe,se),TransitionEvents$1.addEndEventListener(fe,ae)}},de=function(fe){if(!(!fe||fe===oe||!(fe instanceof Element))){var ge=C.insertExtraNode,me=ce();fe.setAttribute(me,"false"),styleForPesudo&&(styleForPesudo.innerHTML=""),ge&&oe&&fe.contains(oe)&&fe.removeChild(oe),TransitionEvents$1.removeStartEventListener(fe,se),TransitionEvents$1.removeEndEventListener(fe,ae)}},ue=function(fe){if(!(!fe||!fe.getAttribute||fe.getAttribute("disabled")||fe.className.indexOf("disabled")>=0)){var ge=function(pe){if(!(pe.target.tagName==="INPUT"||isHidden(pe.target))){de(fe);var ve=getComputedStyle(fe).getPropertyValue("border-top-color")||getComputedStyle(fe).getPropertyValue("border-color")||getComputedStyle(fe).getPropertyValue("background-color");te=setTimeout(function(){return le(fe,ve)},0),wrapperRaf.cancel(ie),ne=!0,ie=wrapperRaf(function(){ne=!1},10)}};return fe.addEventListener("click",ge,!0),{cancel:function(){fe.removeEventListener("click",ge,!0)}}}};return vue.onMounted(function(){vue.nextTick(function(){var he=findDOMNode(G);he.nodeType===1&&(ee=ue(he))})}),vue.onBeforeUnmount(function(){ee&&ee.cancel(),clearTimeout(te),re=!0}),function(){var he;return(he=H.default)===null||he===void 0?void 0:he.call(H)[0]}}});function convertLegacyProps(K){return K==="danger"?{danger:!0}:{type:K}}var buttonProps=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:PropTypes$1.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const buttonTypes=buttonProps;var getCollapsedWidth=function(C){C&&(C.style.width="0px",C.style.opacity="0",C.style.transform="scale(0)")},getRealWidth=function(C){vue.nextTick(function(){C&&(C.style.width="".concat(C.scrollWidth,"px"),C.style.opacity="1",C.style.transform="scale(1)")})},resetStyle=function(C){C&&C.style&&(C.style.width=null,C.style.opacity=null,C.style.transform=null)};const LoadingIcon=vue.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(C){return function(){var W=C.existIcon,H=C.prefixCls,U=C.loading;if(W)return vue.createVNode("span",{class:"".concat(H,"-loading-icon")},[vue.createVNode(LoadingOutlined$1,null,null)]);var G=!!U;return vue.createVNode(vue.Transition,{name:"".concat(H,"-loading-icon-motion"),onBeforeEnter:getCollapsedWidth,onEnter:getRealWidth,onAfterEnter:resetStyle,onBeforeLeave:getRealWidth,onLeave:function(X){setTimeout(function(){getCollapsedWidth(X)})},onAfterLeave:resetStyle},{default:function(){return[G?vue.createVNode("span",{class:"".concat(H,"-loading-icon")},[vue.createVNode(LoadingOutlined$1,null,null)]):null]}})}}});var rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function isUnborderedButtonType(K){return K==="text"||K==="link"}const Button$1=vue.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:initDefaultProps$1(buttonTypes(),{type:"default"}),slots:["icon"],setup:function(C,W){var H=W.slots,U=W.attrs,G=W.emit,Z=W.expose,X=useConfigInject("btn",C),Q=X.prefixCls,ee=X.autoInsertSpaceInButton,te=X.direction,ie=X.size,ne=vue.ref(null),oe=vue.ref(void 0),re=!1,se=vue.ref(!1),ae=vue.ref(!1),ce=vue.computed(function(){return ee.value!==!1}),le=vue.computed(function(){return _typeof$1(C.loading)==="object"&&C.loading.delay?C.loading.delay||!0:!!C.loading});vue.watch(le,function(pe){clearTimeout(oe.value),typeof le.value=="number"?oe.value=setTimeout(function(){se.value=pe},le.value):se.value=pe},{immediate:!0});var de=vue.computed(function(){var pe,ve=C.type,we=C.shape,Ce=we===void 0?"default":we,xe=C.ghost,ye=C.block,Ie=C.danger,Ee=Q.value,Oe={large:"lg",small:"sm",middle:void 0},We=ie.value,Te=We&&Oe[We]||"";return pe={},_defineProperty(pe,"".concat(Ee),!0),_defineProperty(pe,"".concat(Ee,"-").concat(ve),ve),_defineProperty(pe,"".concat(Ee,"-").concat(Ce),Ce!=="default"&&Ce),_defineProperty(pe,"".concat(Ee,"-").concat(Te),Te),_defineProperty(pe,"".concat(Ee,"-loading"),se.value),_defineProperty(pe,"".concat(Ee,"-background-ghost"),xe&&!isUnborderedButtonType(ve)),_defineProperty(pe,"".concat(Ee,"-two-chinese-chars"),ae.value&&ce.value),_defineProperty(pe,"".concat(Ee,"-block"),ye),_defineProperty(pe,"".concat(Ee,"-dangerous"),!!Ie),_defineProperty(pe,"".concat(Ee,"-rtl"),te.value==="rtl"),pe}),ue=function(){var ve=ne.value;if(!(!ve||ee.value===!1)){var we=ve.textContent;re&&isTwoCNChar(we)?ae.value||(ae.value=!0):ae.value&&(ae.value=!1)}},he=function(ve){if(se.value||C.disabled){ve.preventDefault();return}G("click",ve)},fe=function(ve,we){var Ce=we?" ":"";if(ve.type===vue.Text){var xe=ve.children.trim();return isTwoCNChar(xe)&&(xe=xe.split("").join(Ce)),vue.createVNode("span",null,[xe])}return ve};vue.watchEffect(function(){devWarning(!(C.ghost&&isUnborderedButtonType(C.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),vue.onMounted(ue),vue.onUpdated(ue),vue.onBeforeUnmount(function(){oe.value&&clearTimeout(oe.value)});var ge=function(){var ve;(ve=ne.value)===null||ve===void 0||ve.focus()},me=function(){var ve;(ve=ne.value)===null||ve===void 0||ve.blur()};return Z({focus:ge,blur:me}),function(){var pe,ve,we=C.icon,Ce=we===void 0?(pe=H.icon)===null||pe===void 0?void 0:pe.call(H):we,xe=flattenChildren((ve=H.default)===null||ve===void 0?void 0:ve.call(H));re=xe.length===1&&!Ce&&!isUnborderedButtonType(C.type);var ye=C.type,Ie=C.htmlType,Ee=C.disabled,Oe=C.href,We=C.title,Te=C.target,Ae=C.onMousedown,Pe=se.value?"loading":Ce,$e=_objectSpread2(_objectSpread2({},U),{},{title:We,disabled:Ee,class:[de.value,U.class,_defineProperty({},"".concat(Q.value,"-icon-only"),xe.length===0&&!!Pe)],onClick:he,onMousedown:Ae});Ee||delete $e.disabled;var Re=Ce&&!se.value?Ce:vue.createVNode(LoadingIcon,{existIcon:!!Ce,prefixCls:Q.value,loading:!!se.value},null),ze=xe.map(function(Ke){return fe(Ke,re&&ce.value)});if(Oe!==void 0)return vue.createVNode("a",_objectSpread2(_objectSpread2({},$e),{},{href:Oe,target:Te,ref:ne}),[Re,ze]);var Je=vue.createVNode("button",_objectSpread2(_objectSpread2({},$e),{},{ref:ne,type:Ie}),[Re,ze]);return isUnborderedButtonType(ye)?Je:vue.createVNode(Wave,{ref:"wave",disabled:!!se.value},{default:function(){return[Je]}})}}});function _defineProperties(K,C){for(var W=0;W<C.length;W++){var H=C[W];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(K,_toPropertyKey(H.key),H)}}function _createClass(K,C,W){return C&&_defineProperties(K.prototype,C),W&&_defineProperties(K,W),Object.defineProperty(K,"prototype",{writable:!1}),K}function _classCallCheck(K,C){if(!(K instanceof C))throw new TypeError("Cannot call a class as a function")}var UnreachableException=_createClass(function K(C){_classCallCheck(this,K),this.error=new Error("unreachable case: ".concat(JSON.stringify(C)))}),buttonGroupProps=function(){return{prefixCls:String,size:{type:String}}};const ButtonGroup=vue.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:buttonGroupProps(),setup:function(C,W){var H=W.slots,U=useConfigInject("btn-group",C),G=U.prefixCls,Z=U.direction,X=vue.computed(function(){var Q,ee=C.size,te="";switch(ee){case"large":te="lg";break;case"small":te="sm";break;case"middle":case void 0:break;default:console.warn(new UnreachableException(ee).error)}return Q={},_defineProperty(Q,"".concat(G.value),!0),_defineProperty(Q,"".concat(G.value,"-").concat(te),te),_defineProperty(Q,"".concat(G.value,"-rtl"),Z.value==="rtl"),Q});return function(){var Q;return vue.createVNode("div",{class:X.value},[flattenChildren((Q=H.default)===null||Q===void 0?void 0:Q.call(H))])}}});Button$1.Group=ButtonGroup,Button$1.install=function(K){return K.component(Button$1.name,Button$1),K.component(ButtonGroup.name,ButtonGroup),K};var defineProperty=function(){try{var K=getNative(Object,"defineProperty");return K({},"",{}),K}catch{}}();const defineProperty$1=defineProperty;function baseAssignValue(K,C,W){C=="__proto__"&&defineProperty$1?defineProperty$1(K,C,{configurable:!0,enumerable:!0,value:W,writable:!0}):K[C]=W}var objectProto$2=Object.prototype,hasOwnProperty$5=objectProto$2.hasOwnProperty;function assignValue(K,C,W){var H=K[C];(!(hasOwnProperty$5.call(K,C)&&eq(H,W))||W===void 0&&!(C in K))&&baseAssignValue(K,C,W)}var canUseDocElement=function(){return canUseDom()&&window.document.documentElement};function arrayEach(K,C){for(var W=-1,H=K==null?0:K.length;++W<H&&C(K[W],W,K)!==!1;);return K}function copyObject(K,C,W,H){var U=!W;W||(W={});for(var G=-1,Z=C.length;++G<Z;){var X=C[G],Q=H?H(W[X],K[X],X,W,K):void 0;Q===void 0&&(Q=K[X]),U?baseAssignValue(W,X,Q):assignValue(W,X,Q)}return W}function baseAssign(K,C){return K&©Object(C,keys(C),K)}function nativeKeysIn(K){var C=[];if(K!=null)for(var W in Object(K))C.push(W);return C}var objectProto$1=Object.prototype,hasOwnProperty$4=objectProto$1.hasOwnProperty;function baseKeysIn(K){if(!isObject$2(K))return nativeKeysIn(K);var C=isPrototype(K),W=[];for(var H in K)H=="constructor"&&(C||!hasOwnProperty$4.call(K,H))||W.push(H);return W}function keysIn(K){return isArrayLike(K)?arrayLikeKeys(K,!0):baseKeysIn(K)}function baseAssignIn(K,C){return K&©Object(C,keysIn(C),K)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(K,C){if(C)return K.slice();var W=K.length,H=allocUnsafe?allocUnsafe(W):new K.constructor(W);return K.copy(H),H}function copyArray(K,C){var W=-1,H=K.length;for(C||(C=Array(H));++W<H;)C[W]=K[W];return C}function copySymbols(K,C){return copyObject(K,getSymbols$1(K),C)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(K){for(var C=[];K;)arrayPush$1(C,getSymbols$1(K)),K=getPrototype$1(K);return C}:stubArray;const getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(K,C){return copyObject(K,getSymbolsIn$1(K),C)}function getAllKeysIn(K){return baseGetAllKeys(K,keysIn,getSymbolsIn$1)}var objectProto=Object.prototype,hasOwnProperty$3=objectProto.hasOwnProperty;function initCloneArray(K){var C=K.length,W=new K.constructor(C);return C&&typeof K[0]=="string"&&hasOwnProperty$3.call(K,"index")&&(W.index=K.index,W.input=K.input),W}function cloneArrayBuffer(K){var C=new K.constructor(K.byteLength);return new Uint8Array$2(C).set(new Uint8Array$2(K)),C}function cloneDataView(K,C){var W=C?cloneArrayBuffer(K.buffer):K.buffer;return new K.constructor(W,K.byteOffset,K.byteLength)}var reFlags=/\w*$/;function cloneRegExp(K){var C=new K.constructor(K.source,reFlags.exec(K));return C.lastIndex=K.lastIndex,C}var symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol(K){return symbolValueOf?Object(symbolValueOf.call(K)):{}}function cloneTypedArray(K,C){var W=C?cloneArrayBuffer(K.buffer):K.buffer;return new K.constructor(W,K.byteOffset,K.length)}var boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$2="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(K,C,W){var H=K.constructor;switch(C){case arrayBufferTag$1:return cloneArrayBuffer(K);case boolTag$1:case dateTag$1:return new H(+K);case dataViewTag$1:return cloneDataView(K,W);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(K,W);case mapTag$2:return new H;case numberTag$1:case stringTag$2:return new H(K);case regexpTag$1:return cloneRegExp(K);case setTag$2:return new H;case symbolTag$1:return cloneSymbol(K)}}var objectCreate=Object.create,baseCreate=function(){function K(){}return function(C){if(!isObject$2(C))return{};if(objectCreate)return objectCreate(C);K.prototype=C;var W=new K;return K.prototype=void 0,W}}();const baseCreate$1=baseCreate;function initCloneObject(K){return typeof K.constructor=="function"&&!isPrototype(K)?baseCreate$1(getPrototype$1(K)):{}}var mapTag$1="[object Map]";function baseIsMap(K){return isObjectLike(K)&&getTag$1(K)==mapTag$1}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;const isMap$1=isMap;var setTag$1="[object Set]";function baseIsSet(K){return isObjectLike(K)&&getTag$1(K)==setTag$1}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;const isSet$1=isSet;var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag$1]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(K,C,W,H,U,G){var Z,X=C&CLONE_DEEP_FLAG$1,Q=C&CLONE_FLAT_FLAG,ee=C&CLONE_SYMBOLS_FLAG$1;if(W&&(Z=U?W(K,H,U,G):W(K)),Z!==void 0)return Z;if(!isObject$2(K))return K;var te=isArray$2(K);if(te){if(Z=initCloneArray(K),!X)return copyArray(K,Z)}else{var ie=getTag$1(K),ne=ie==funcTag||ie==genTag;if(isBuffer$2(K))return cloneBuffer(K,X);if(ie==objectTag||ie==argsTag||ne&&!U){if(Z=Q||ne?{}:initCloneObject(K),!X)return Q?copySymbolsIn(K,baseAssignIn(Z,K)):copySymbols(K,baseAssign(Z,K))}else{if(!cloneableTags[ie])return U?K:{};Z=initCloneByTag(K,ie,X)}}G||(G=new Stack$1);var oe=G.get(K);if(oe)return oe;G.set(K,Z),isSet$1(K)?K.forEach(function(ae){Z.add(baseClone(ae,C,W,ae,K,G))}):isMap$1(K)&&K.forEach(function(ae,ce){Z.set(ce,baseClone(ae,C,W,ce,K,G))});var re=ee?Q?getAllKeysIn:getAllKeys:Q?keysIn:keys,se=te?void 0:re(K);return arrayEach(se||K,function(ae,ce){se&&(ce=ae,ae=K[ce]),assignValue(Z,ce,baseClone(ae,C,W,ce,K,G))}),Z}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(K){return baseClone(K,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cached;function getScrollBarSize(K){if(typeof document>"u")return 0;if(K||cached===void 0){var C=document.createElement("div");C.style.width="100%",C.style.height="200px";var W=document.createElement("div"),H=W.style;H.position="absolute",H.top="0",H.left="0",H.pointerEvents="none",H.visibility="hidden",H.width="200px",H.height="150px",H.overflow="hidden",W.appendChild(C),document.body.appendChild(W);var U=C.offsetWidth;W.style.overflow="scroll";var G=C.offsetWidth;U===G&&(G=W.clientWidth),document.body.removeChild(W),cached=U-G}return cached}function setStyle(K){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=C.element,H=W===void 0?document.body:W,U={},G=Object.keys(K);return G.forEach(function(Z){U[Z]=H.style[Z]}),G.forEach(function(Z){H.style[Z]=K[Z]}),U}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cacheStyle$1={};const switchScrollingEffect=function(K){if(!(!isBodyOverflowing()&&!K)){var C="ant-scrolling-effect",W=new RegExp("".concat(C),"g"),H=document.body.className;if(K){if(!W.test(H))return;setStyle(cacheStyle$1),cacheStyle$1={},document.body.className=H.replace(W,"").trim();return}var U=getScrollBarSize();if(U&&(cacheStyle$1=setStyle({position:"relative",width:"calc(100% - ".concat(U,"px)")}),!W.test(H))){var G="".concat(H," ").concat(C);document.body.className=G.trim()}}};var locks=[],scrollingEffectClassName="ant-scrolling-effect",scrollingEffectClassNameReg=new RegExp("".concat(scrollingEffectClassName),"g"),uuid$1=0,cacheStyle=new Map,ScrollLocker=_createClass(function K(C){var W=this;_classCallCheck(this,K),_defineProperty(this,"getContainer",function(){var H;return(H=W.options)===null||H===void 0?void 0:H.container}),_defineProperty(this,"reLock",function(H){var U=locks.find(function(G){var Z=G.target;return Z===W.lockTarget});U&&W.unLock(),W.options=H,U&&(U.options=H,W.lock())}),_defineProperty(this,"lock",function(){var H;if(!locks.some(function(Q){var ee=Q.target;return ee===W.lockTarget})){if(locks.some(function(Q){var ee,te=Q.options;return(te==null?void 0:te.container)===((ee=W.options)===null||ee===void 0?void 0:ee.container)})){locks=[].concat(_toConsumableArray(locks),[{target:W.lockTarget,options:W.options}]);return}var U=0,G=((H=W.options)===null||H===void 0?void 0:H.container)||document.body;(G===document.body&&window.innerWidth-document.documentElement.clientWidth>0||G.scrollHeight>G.clientHeight)&&(U=getScrollBarSize());var Z=G.className;if(locks.filter(function(Q){var ee,te=Q.options;return(te==null?void 0:te.container)===((ee=W.options)===null||ee===void 0?void 0:ee.container)}).length===0&&cacheStyle.set(G,setStyle({width:U!==0?"calc(100% - ".concat(U,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:G})),!scrollingEffectClassNameReg.test(Z)){var X="".concat(Z," ").concat(scrollingEffectClassName);G.className=X.trim()}locks=[].concat(_toConsumableArray(locks),[{target:W.lockTarget,options:W.options}])}}),_defineProperty(this,"unLock",function(){var H,U=locks.find(function(X){var Q=X.target;return Q===W.lockTarget});if(locks=locks.filter(function(X){var Q=X.target;return Q!==W.lockTarget}),!(!U||locks.some(function(X){var Q,ee=X.options;return(ee==null?void 0:ee.container)===((Q=U.options)===null||Q===void 0?void 0:Q.container)}))){var G=((H=W.options)===null||H===void 0?void 0:H.container)||document.body,Z=G.className;scrollingEffectClassNameReg.test(Z)&&(setStyle(cacheStyle.get(G),{element:G}),cacheStyle.delete(G),G.className=G.className.replace(scrollingEffectClassNameReg,"").trim())}}),this.lockTarget=uuid$1++,this.options=C}),openCount=0,supportDom=canUseDom(),cacheOverflow={},getParent=function(C){if(!supportDom)return null;if(C){if(typeof C=="string")return document.querySelectorAll(C)[0];if(typeof C=="function")return C();if(_typeof$1(C)==="object"&&C instanceof window.HTMLElement)return C}return document.body};const Portal=vue.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:PropTypes$1.any,visible:{type:Boolean,default:void 0}},setup:function(C,W){var H=W.slots,U=vue.ref(),G=vue.ref(),Z=vue.ref(),X=new ScrollLocker({container:getParent(C.getContainer)}),Q=function(){var se,ae;(se=U.value)===null||se===void 0||(ae=se.parentNode)===null||ae===void 0||ae.removeChild(U.value)},ee=function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(se||U.value&&!U.value.parentNode){var ae=getParent(C.getContainer);return ae?(ae.appendChild(U.value),!0):!1}return!0},te=function(){return supportDom?(U.value||(U.value=document.createElement("div"),ee(!0)),ie(),U.value):null},ie=function(){var se=C.wrapperClassName;U.value&&se&&se!==U.value.className&&(U.value.className=se)};vue.onUpdated(function(){ie(),ee()});var ne=function(){openCount===1&&!Object.keys(cacheOverflow).length?(switchScrollingEffect(),cacheOverflow=setStyle({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):openCount||(setStyle(cacheOverflow),cacheOverflow={},switchScrollingEffect(!0))},oe=vue.getCurrentInstance();return vue.onMounted(function(){var re=!1;vue.watch([function(){return C.visible},function(){return C.getContainer}],function(se,ae){var ce=_slicedToArray(se,2),le=ce[0],de=ce[1],ue=_slicedToArray(ae,2),he=ue[0],fe=ue[1];if(supportDom&&getParent(C.getContainer)===document.body&&(le&&!he?openCount+=1:re&&(openCount-=1)),re){var ge=typeof de=="function"&&typeof fe=="function";(ge?de.toString()!==fe.toString():de!==fe)&&Q(),le&&le!==he&&supportDom&&getParent(de)!==X.getContainer()&&X.reLock({container:getParent(de)})}re=!0},{immediate:!0,flush:"post"}),vue.nextTick(function(){ee()||(Z.value=wrapperRaf(function(){oe.update()}))})}),vue.onBeforeUnmount(function(){var re=C.visible,se=C.getContainer;supportDom&&getParent(se)===document.body&&(openCount=re&&openCount?openCount-1:openCount),Q(),wrapperRaf.cancel(Z.value)}),function(){var re=C.forceRender,se=C.visible,ae=null,ce={getOpenCount:function(){return openCount},getContainer:te,switchScrollingEffect:ne,scrollLocker:X};return(re||se||G.value)&&(ae=vue.createVNode(Portal$1,{getContainer:te,ref:G},{default:function(){var de;return(de=H.default)===null||de===void 0?void 0:de.call(H,ce)}})),ae}}});function dialogPropTypes(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:PropTypes$1.shape({x:Number,y:Number}).loose,title:PropTypes$1.any,footer:PropTypes$1.any,transitionName:String,maskTransitionName:String,animation:PropTypes$1.any,maskAnimation:PropTypes$1.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:PropTypes$1.any,maskProps:PropTypes$1.any,wrapProps:PropTypes$1.any,getContainer:PropTypes$1.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:PropTypes$1.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function getMotionName(K,C,W){var H=C;return!H&&W&&(H="".concat(K,"-").concat(W)),H}var uuid=-1;function getUUID(){return uuid+=1,uuid}function getScroll(K,C){var W=K["page".concat(C?"Y":"X","Offset")],H="scroll".concat(C?"Top":"Left");if(typeof W!="number"){var U=K.document;W=U.documentElement[H],typeof W!="number"&&(W=U.body[H])}return W}function offset(K){var C=K.getBoundingClientRect(),W={left:C.left,top:C.top},H=K.ownerDocument,U=H.defaultView||H.parentWindow;return W.left+=getScroll(U),W.top+=getScroll(U,!0),W}var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"};const Content=vue.defineComponent({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:_objectSpread2(_objectSpread2({},dialogPropTypes()),{},{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup:function(C,W){var H=W.expose,U=W.slots,G=W.attrs,Z=vue.ref(),X=vue.ref(),Q=vue.ref();H({focus:function(){var re;(re=Z.value)===null||re===void 0||re.focus()},changeActive:function(re){var se=document,ae=se.activeElement;re&&ae===X.value?Z.value.focus():!re&&ae===Z.value&&X.value.focus()}});var ee=vue.ref(),te=vue.computed(function(){var oe=C.width,re=C.height,se={};return oe!==void 0&&(se.width=typeof oe=="number"?"".concat(oe,"px"):oe),re!==void 0&&(se.height=typeof re=="number"?"".concat(re,"px"):re),ee.value&&(se.transformOrigin=ee.value),se}),ie=function(){vue.nextTick(function(){if(Q.value){var re=offset(Q.value);ee.value=C.mousePosition?"".concat(C.mousePosition.x-re.left,"px ").concat(C.mousePosition.y-re.top,"px"):""}})},ne=function(re){C.onVisibleChanged(re)};return function(){var oe,re,se,ae,ce=C.prefixCls,le=C.footer,de=le===void 0?(oe=U.footer)===null||oe===void 0?void 0:oe.call(U):le,ue=C.title,he=ue===void 0?(re=U.title)===null||re===void 0?void 0:re.call(U):ue,fe=C.ariaId,ge=C.closable,me=C.closeIcon,pe=me===void 0?(se=U.closeIcon)===null||se===void 0?void 0:se.call(U):me,ve=C.onClose,we=C.bodyStyle,Ce=C.bodyProps,xe=C.onMousedown,ye=C.onMouseup,Ie=C.visible,Ee=C.modalRender,Oe=Ee===void 0?U.modalRender:Ee,We=C.destroyOnClose,Te=C.motionName,Ae;de&&(Ae=vue.createVNode("div",{class:"".concat(ce,"-footer")},[de]));var Pe;he&&(Pe=vue.createVNode("div",{class:"".concat(ce,"-header")},[vue.createVNode("div",{class:"".concat(ce,"-title"),id:fe},[he])]));var $e;ge&&($e=vue.createVNode("button",{type:"button",onClick:ve,"aria-label":"Close",class:"".concat(ce,"-close")},[pe||vue.createVNode("span",{class:"".concat(ce,"-close-x")},null)]));var Re=vue.createVNode("div",{class:"".concat(ce,"-content")},[$e,Pe,vue.createVNode("div",_objectSpread2({class:"".concat(ce,"-body"),style:we},Ce),[(ae=U.default)===null||ae===void 0?void 0:ae.call(U)]),Ae]),ze=getTransitionProps(Te);return vue.createVNode(vue.Transition,_objectSpread2(_objectSpread2({},ze),{},{onBeforeEnter:ie,onAfterEnter:function(){return ne(!0)},onAfterLeave:function(){return ne(!1)}}),{default:function(){return[Ie||!We?vue.withDirectives(vue.createVNode("div",_objectSpread2(_objectSpread2({},G),{},{ref:Q,key:"dialog-element",role:"document",style:[te.value,G.style],class:[ce,G.class],onMousedown:xe,onMouseup:ye}),[vue.createVNode("div",{tabindex:0,ref:Z,style:sentinelStyle,"aria-hidden":"true"},null),Oe?Oe({originVNode:Re}):Re,vue.createVNode("div",{tabindex:0,ref:X,style:sentinelStyle,"aria-hidden":"true"},null)]),[[vue.vShow,Ie]]):null]}})}}});function _objectDestructuringEmpty(K){if(K==null)throw new TypeError("Cannot destructure "+K)}const Mask=vue.defineComponent({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:function(C,W){return _objectDestructuringEmpty(W),function(){var H=C.prefixCls,U=C.visible,G=C.maskProps,Z=C.motionName,X=getTransitionProps(Z);return vue.createVNode(vue.Transition,X,{default:function(){return[vue.withDirectives(vue.createVNode("div",_objectSpread2({class:"".concat(H,"-mask")},G),null),[[vue.vShow,U]])]}})}}}),Dialog=vue.defineComponent({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:initDefaultProps$1(_objectSpread2(_objectSpread2({},dialogPropTypes()),{},{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),setup:function(C,W){var H=W.attrs,U=W.slots,G=vue.ref(),Z=vue.ref(),X=vue.ref(),Q=vue.ref(C.visible),ee=vue.ref("vcDialogTitle".concat(getUUID())),te=function(de){if(de){if(!contains(Z.value,document.activeElement)){var ue;G.value=document.activeElement,(ue=X.value)===null||ue===void 0||ue.focus()}}else{var he=Q.value;if(Q.value=!1,C.mask&&G.value&&C.focusTriggerAfterClose){try{G.value.focus({preventScroll:!0})}catch{}G.value=null}if(he){var fe;(fe=C.afterClose)===null||fe===void 0||fe.call(C)}}},ie=function(de){var ue;(ue=C.onClose)===null||ue===void 0||ue.call(C,de)},ne=vue.ref(!1),oe=vue.ref(),re=function(){clearTimeout(oe.value),ne.value=!0},se=function(){oe.value=setTimeout(function(){ne.value=!1})},ae=function(de){if(!C.maskClosable)return null;ne.value?ne.value=!1:Z.value===de.target&&ie(de)},ce=function(de){if(C.keyboard&&de.keyCode===KeyCode$3.ESC){de.stopPropagation(),ie(de);return}C.visible&&de.keyCode===KeyCode$3.TAB&&X.value.changeActive(!de.shiftKey)};return vue.watch(function(){return C.visible},function(){C.visible&&(Q.value=!0)},{flush:"post"}),vue.onBeforeUnmount(function(){var le;clearTimeout(oe.value),(le=C.scrollLocker)===null||le===void 0||le.unLock()}),vue.watchEffect(function(){var le;if((le=C.scrollLocker)===null||le===void 0||le.unLock(),Q.value){var de;(de=C.scrollLocker)===null||de===void 0||de.lock()}}),function(){var le=C.prefixCls,de=C.mask,ue=C.visible,he=C.maskTransitionName,fe=C.maskAnimation,ge=C.zIndex,me=C.wrapClassName,pe=C.rootClassName,ve=C.wrapStyle,we=C.closable,Ce=C.maskProps,xe=C.maskStyle,ye=C.transitionName,Ie=C.animation,Ee=C.wrapProps,Oe=C.title,We=Oe===void 0?U.title:Oe,Te=H.style,Ae=H.class;return vue.createVNode("div",_objectSpread2({class:["".concat(le,"-root"),pe]},pickAttrs(C,{data:!0})),[vue.createVNode(Mask,{prefixCls:le,visible:de&&ue,motionName:getMotionName(le,he,fe),style:_objectSpread2({zIndex:ge},xe),maskProps:Ce},null),vue.createVNode("div",_objectSpread2({tabIndex:-1,onKeydown:ce,class:classNames("".concat(le,"-wrap"),me),ref:Z,onClick:ae,role:"dialog","aria-labelledby":We?ee.value:null,style:_objectSpread2(_objectSpread2({zIndex:ge},ve),{},{display:Q.value?null:"none"})},Ee),[vue.createVNode(Content,_objectSpread2(_objectSpread2({},omit(C,["scrollLocker"])),{},{style:Te,class:Ae,onMousedown:re,onMouseup:se,ref:X,closable:we,ariaId:ee.value,prefixCls:le,visible:ue,onClose:ie,onVisibleChanged:te,motionName:getMotionName(le,ye,Ie)}),U)])])}}});var IDialogPropTypes=dialogPropTypes(),DialogWrap=vue.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:initDefaultProps$1(IDialogPropTypes,{visible:!1}),setup:function(C,W){var H=W.attrs,U=W.slots,G=vue.ref(C.visible);return useProvidePortal({},{inTriggerContext:!1}),vue.watch(function(){return C.visible},function(){C.visible&&(G.value=!0)},{flush:"post"}),function(){var Z=C.visible,X=C.getContainer,Q=C.forceRender,ee=C.destroyOnClose,te=ee===void 0?!1:ee,ie=C.afterClose,ne=_objectSpread2(_objectSpread2(_objectSpread2({},C),H),{},{ref:"_component",key:"dialog"});return X===!1?vue.createVNode(Dialog,_objectSpread2(_objectSpread2({},ne),{},{getOpenCount:function(){return 2}}),U):!Q&&te&&!G.value?null:vue.createVNode(Portal,{visible:Z,forceRender:Q,getContainer:X},{default:function(re){return ne=_objectSpread2(_objectSpread2(_objectSpread2({},ne),re),{},{afterClose:function(){ie==null||ie(),G.value=!1}}),vue.createVNode(Dialog,ne,U)}})}}});const DialogWrap$1=DialogWrap;var _excluded=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],mousePosition=null,getClickPosition=function(C){mousePosition={x:C.pageX,y:C.pageY},setTimeout(function(){return mousePosition=null},100)};canUseDocElement()&&addEventListenerWrap(document.documentElement,"click",getClickPosition,!0);var modalProps=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:PropTypes$1.any,closable:{type:Boolean,default:void 0},closeIcon:PropTypes$1.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:PropTypes$1.any,okText:PropTypes$1.any,okType:String,cancelText:PropTypes$1.any,icon:PropTypes$1.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},destroyFns=[];const Modal=vue.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:initDefaultProps$1(modalProps(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(C,W){var H=W.emit,U=W.slots,G=W.attrs,Z=useLocaleReceiver("Modal"),X=_slicedToArray(Z,1),Q=X[0],ee=useConfigInject("modal",C),te=ee.prefixCls,ie=ee.rootPrefixCls,ne=ee.direction,oe=ee.getPopupContainer,re=function(le){H("update:visible",!1),H("cancel",le),H("change",!1)},se=function(le){H("ok",le)},ae=function(){var le,de,ue=C.okText,he=ue===void 0?(le=U.okText)===null||le===void 0?void 0:le.call(U):ue,fe=C.okType,ge=C.cancelText,me=ge===void 0?(de=U.cancelText)===null||de===void 0?void 0:de.call(U):ge,pe=C.confirmLoading;return vue.createVNode(vue.Fragment,null,[vue.createVNode(Button$1,_objectSpread2({onClick:re},C.cancelButtonProps),{default:function(){return[me||Q.value.cancelText]}}),vue.createVNode(Button$1,_objectSpread2(_objectSpread2({},convertLegacyProps(fe)),{},{loading:pe,onClick:se},C.okButtonProps),{default:function(){return[he||Q.value.okText]}})])};return function(){var ce,le;C.prefixCls;var de=C.visible,ue=C.wrapClassName,he=C.centered,fe=C.getContainer,ge=C.closeIcon,me=ge===void 0?(ce=U.closeIcon)===null||ce===void 0?void 0:ce.call(U):ge,pe=C.focusTriggerAfterClose,ve=pe===void 0?!0:pe,we=_objectWithoutProperties(C,_excluded),Ce=classNames(ue,(le={},_defineProperty(le,"".concat(te.value,"-centered"),!!he),_defineProperty(le,"".concat(te.value,"-wrap-rtl"),ne.value==="rtl"),le));return vue.createVNode(DialogWrap$1,_objectSpread2(_objectSpread2(_objectSpread2({},we),G),{},{getContainer:fe||oe.value,prefixCls:te.value,wrapClassName:Ce,visible:de,mousePosition,onClose:re,focusTriggerAfterClose:ve,transitionName:getTransitionName(ie.value,"zoom",C.transitionName),maskTransitionName:getTransitionName(ie.value,"fade",C.maskTransitionName)}),_objectSpread2(_objectSpread2({},U),{},{footer:U.footer||ae,closeIcon:function(){return vue.createVNode("span",{class:"".concat(te.value,"-close-x")},[me||vue.createVNode(CloseOutlined$1,{class:"".concat(te.value,"-close-icon")},null)])}}))}}});var useDestroyed=function(){var C=vue.ref(!1);return vue.onBeforeUnmount(function(){C.value=!0}),C};const useDestroyed$1=useDestroyed;var actionButtonProps={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function isThenable$3(K){return!!(K&&K.then)}const ActionButton=vue.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:actionButtonProps,setup:function(C,W){var H=W.slots,U=vue.ref(!1),G=vue.ref(),Z=vue.ref(!1),X,Q=useDestroyed$1();vue.onMounted(function(){C.autofocus&&(X=setTimeout(function(){var ie;return(ie=G.value.$el)===null||ie===void 0?void 0:ie.focus()}))}),vue.onBeforeUnmount(function(){clearTimeout(X)});var ee=function(ne){var oe=C.close;isThenable$3(ne)&&(Z.value=!0,ne.then(function(){Q.value||(Z.value=!1),oe.apply(void 0,arguments),U.value=!1},function(re){console.error(re),Q.value||(Z.value=!1),U.value=!1}))},te=function(ne){var oe=C.actionFn,re=C.close,se=re===void 0?function(){}:re;if(!U.value){if(U.value=!0,!oe){se();return}var ae;if(C.emitEvent){if(ae=oe(ne),C.quitOnNullishReturnValue&&!isThenable$3(ae)){U.value=!1,se(ne);return}}else if(oe.length)ae=oe(se),U.value=!1;else if(ae=oe(),!ae){se();return}ee(ae)}};return function(){var ie=C.type,ne=C.prefixCls,oe=C.buttonProps;return vue.createVNode(Button$1,_objectSpread2(_objectSpread2(_objectSpread2({},convertLegacyProps(ie)),{},{onClick:te,loading:Z.value,prefixCls:ne},oe),{},{ref:G}),H)}}});function renderSomeContent(K){return typeof K=="function"?K():K}const ConfirmDialog=vue.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(C,W){var H=W.attrs,U=useLocaleReceiver("Modal"),G=_slicedToArray(U,1),Z=G[0];return function(){var X=C.icon,Q=C.onCancel,ee=C.onOk,te=C.close,ie=C.closable,ne=ie===void 0?!1:ie,oe=C.zIndex,re=C.afterClose,se=C.visible,ae=C.keyboard,ce=C.centered,le=C.getContainer,de=C.maskStyle,ue=C.okButtonProps,he=C.cancelButtonProps,fe=C.okCancel,ge=fe===void 0?!0:fe,me=C.width,pe=me===void 0?416:me,ve=C.mask,we=ve===void 0?!0:ve,Ce=C.maskClosable,xe=Ce===void 0?!1:Ce,ye=C.type,Ie=C.title,Ee=C.content,Oe=C.direction,We=C.closeIcon,Te=C.modalRender,Ae=C.focusTriggerAfterClose,Pe=C.rootPrefixCls,$e=C.bodyStyle,Re=C.wrapClassName,ze=C.okType||"primary",Je=C.prefixCls||"ant-modal",Ke="".concat(Je,"-confirm"),Xe=H.style||{},rt=renderSomeContent(C.okText)||(ge?Z.value.okText:Z.value.justOkText),ht=renderSomeContent(C.cancelText)||Z.value.cancelText,at=C.autoFocusButton===null?!1:C.autoFocusButton||"ok",Ze=classNames(Ke,"".concat(Ke,"-").concat(ye),"".concat(Je,"-").concat(ye),_defineProperty({},"".concat(Ke,"-rtl"),Oe==="rtl"),H.class),_t=ge&&vue.createVNode(ActionButton,{actionFn:Q,close:te,autofocus:at==="cancel",buttonProps:he,prefixCls:"".concat(Pe,"-btn")},{default:function(){return[ht]}});return vue.createVNode(Modal,{prefixCls:Je,class:Ze,wrapClassName:classNames(_defineProperty({},"".concat(Ke,"-centered"),!!ce),Re),onCancel:function(bt){return te({triggerCancel:!0},bt)},visible:se,title:"",footer:"",transitionName:getTransitionName(Pe,"zoom",C.transitionName),maskTransitionName:getTransitionName(Pe,"fade",C.maskTransitionName),mask:we,maskClosable:xe,maskStyle:de,style:Xe,bodyStyle:$e,width:pe,zIndex:oe,afterClose:re,keyboard:ae,centered:ce,getContainer:le,closable:ne,closeIcon:We,modalRender:Te,focusTriggerAfterClose:Ae},{default:function(){return[vue.createVNode("div",{class:"".concat(Ke,"-body-wrapper")},[vue.createVNode("div",{class:"".concat(Ke,"-body")},[renderSomeContent(X),Ie===void 0?null:vue.createVNode("span",{class:"".concat(Ke,"-title")},[renderSomeContent(Ie)]),vue.createVNode("div",{class:"".concat(Ke,"-content")},[renderSomeContent(Ee)])]),vue.createVNode("div",{class:"".concat(Ke,"-btns")},[_t,vue.createVNode(ActionButton,{type:ze,actionFn:ee,close:te,autofocus:at==="ok",buttonProps:ue,prefixCls:"".concat(Pe,"-btn")},{default:function(){return[rt]}})])])]}})}}});var confirm=function(C){var W=document.createDocumentFragment(),H=_objectSpread2(_objectSpread2({},omit(C,["parentContext","appContext"])),{},{close:Z,visible:!0}),U=null;function G(){U&&(vue.render(null,W),U.component.update(),U=null);for(var te=arguments.length,ie=new Array(te),ne=0;ne<te;ne++)ie[ne]=arguments[ne];var oe=ie.some(function(ae){return ae&&ae.triggerCancel});C.onCancel&&oe&&C.onCancel.apply(C,ie);for(var re=0;re<destroyFns.length;re++){var se=destroyFns[re];if(se===Z){destroyFns.splice(re,1);break}}}function Z(){for(var te=this,ie=arguments.length,ne=new Array(ie),oe=0;oe<ie;oe++)ne[oe]=arguments[oe];H=_objectSpread2(_objectSpread2({},H),{},{visible:!1,afterClose:function(){typeof C.afterClose=="function"&&C.afterClose(),G.apply(te,ne)}}),X(H)}function X(te){typeof te=="function"?H=te(H):H=_objectSpread2(_objectSpread2({},H),te),U&&(_extends(U.component.props,H),U.component.update())}var Q=function(ie){var ne=globalConfigForApi,oe=ne.prefixCls,re=ie.prefixCls||"".concat(oe,"-modal");return vue.createVNode(ConfigProvider,_objectSpread2(_objectSpread2({},ne),{},{notUpdateGlobalConfig:!0,prefixCls:oe}),{default:function(){return[vue.createVNode(ConfirmDialog,_objectSpread2(_objectSpread2({},ie),{},{rootPrefixCls:oe,prefixCls:re}),null)]}})};function ee(te){var ie=vue.createVNode(Q,_objectSpread2({},te));return ie.appContext=C.parentContext||C.appContext||ie.appContext,vue.render(ie,W),ie}return U=ee(H),destroyFns.push(Z),{destroy:Z,update:X}};const confirm$1=confirm;function withWarn(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(ExclamationCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"warning"})}function withInfo(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(InfoCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"info"})}function withSuccess(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(CheckCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"success"})}function withError(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(CloseCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"error"})}function withConfirm(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(ExclamationCircleOutlined$1,null,null)},okCancel:!0},K),{},{type:"confirm"})}function modalWarn(K){return confirm$1(withWarn(K))}Modal.info=function(C){return confirm$1(withInfo(C))},Modal.success=function(C){return confirm$1(withSuccess(C))},Modal.error=function(C){return confirm$1(withError(C))},Modal.warning=modalWarn,Modal.warn=modalWarn,Modal.confirm=function(C){return confirm$1(withConfirm(C))},Modal.destroyAll=function(){for(;destroyFns.length;){var C=destroyFns.pop();C&&C()}},Modal.install=function(K){return K.component(Modal.name,Modal),K};const _hoisted_1$9={class:"table-column-setting"},_hoisted_2$5={class:"left"},_hoisted_3$4={class:"left-content"},_hoisted_4$4={class:"treeItem"},_hoisted_5$4={class:"title"},_hoisted_6$4={class:"right"},_hoisted_7$3={class:"right-content"},_sfc_main$e=vue.defineComponent({__name:"TableColumn",props:{tableColumns:{type:Object,default:[]}},emits:["update:tableColumns","ok"],setup(K,{expose:C,emit:W}){const H=K,U=Empty$1.PRESENTED_IMAGE_SIMPLE;let G=vue.ref(!1),Z=vue.ref([]),X=vue.ref([]);const Q={children:"children",title:"title",key:"id"};let ee=vue.ref(),te=vue.ref([]),ie=vue.ref([]),ne=vue.ref([]),oe={title:[{required:!0,message:"请填写标题",trigger:"change"}],width:[{pattern:/(^\d+((px)|%)?$)|(^auto$)/,message:"请填写正确的格式",trigger:"change"}]},re=vue.ref();vue.watch(()=>H.tableColumns,ye=>{Z.value=se(JSON.parse(JSON.stringify(ye))),Z.value.length>0&&(re.value=Z.value[0],te.value=[re.value.id],ie.value=te.value)},{deep:!0,immediate:!0}),vue.watch(()=>Z.value,(ye,Ie)=>{X.value=ae(JSON.parse(JSON.stringify(ye)))},{deep:!0,immediate:!0}),vue.watch(()=>G.value,ye=>{ye?we():xe()}),C({show:ce});function se(ye){return ye.map(Ee=>(Ee.id||(Ee.id="column-"+guid()),Ee.options?Ee.options.hidden==null&&(Ee.options.hidden=!1):Ee.options={hidden:!1},Ee.children&&(Ee.children=se(Ee.children)),Ee))}function ae(ye,Ie){return ye.map(Oe=>{Ie?Oe.fPid=Ie:Oe.fPid&&delete Oe.fPid;let We=Ie||Oe.id;return Oe.children&&(Oe.children=ae(Oe.children,We)),Oe})}function ce(){G.value=!0}function le(ye,Ie){re.value?ee.value.validate().then(()=>{re.value=Ie.selected?Ie.node.dataRef:void 0,ie.value=ye}).catch(Ee=>{te.value=ie.value}):(re.value=Ie.selected?Ie.node.dataRef:void 0,ie.value=ye)}function de(ye){if(ye.node.dataRef){let Ie=JSON.parse(JSON.stringify(ne.value));Ie.push(ye.node.dataRef.id),ne.value=Array.from(new Set(Ie))}}function ue(ye){const Ie=ye.node.id,Ee=ye.dragNode.id,Oe=ye.node.pos.split("-"),We=ye.dropPosition-Number(Oe[Oe.length-1]),Te=($e,Re,ze)=>{$e.forEach((Je,Ke)=>{if(Je.id===Re)return ze(Je,Ke,$e);if(Je.children)return Te(Je.children,Re,ze)})},Ae=[...Z.value];let Pe;if(Te(Ae,Ee,($e,Re,ze)=>{ze.splice(Re,1),Pe=$e}),!ye.dropToGap)Te(Ae,Ie,$e=>{$e.children=$e.children||[],$e.children.unshift(Pe)});else if((ye.node.children||[]).length>0&&ye.node.expanded&&We===1)Te(Ae,Ie,$e=>{$e.children=$e.children||[],$e.children.unshift(Pe)});else{let $e=[],Re=0;Te(Ae,Ie,(ze,Je,Ke)=>{$e=Ke,Re=Je}),We===-1?$e.splice(Re,0,Pe):$e.splice(Re+1,0,Pe)}Z.value=Ae}function he(ye,Ie){for(let Ee=0;Ee<ye.length;Ee++){let Oe=ye[Ee];if(Oe.id===Ie)return Oe;if(Oe.children&&Oe.children.length>0){let We=he(Oe.children,Ie);if(We)return We}}return null}function fe(ye,Ie){for(let Ee=0;Ee<ye.length;Ee++){if(ye[Ee].id==Ie){ye[Ee+1]?re.value=ye[Ee+1]:ye[Ee-1]?re.value=ye[Ee-1]:re.value=void 0,te.value=re.value?[re.value.id]:[],ie.value=te.value,ye.splice(Ee,1);return}ye[Ee].children&&ye[Ee].children.length>0&&fe(ye[Ee].children,Ie)}}function ge(){let ye="newColumn";if(re.value){ye=re.value.dataIndex;let Ee=he(X.value,re.value.id);if(Ee.fPid){let Oe=he(X.value,Ee.fPid);Oe&&(ye=Oe.dataIndex)}}let Ie={id:"column-"+guid(),title:"新增列名",dataIndex:ye,width:"auto",options:{hidden:!1}};if(re.value){let Ee=he(Z.value,re.value.id);Ee.children?Ee.children.push(Ie):Ee.children=[Ie];let Oe=JSON.parse(JSON.stringify(ne.value));Oe.push(re.value.id),ne.value=Array.from(new Set(Oe))}else Z.value.push(Ie);re.value=Ie,te.value=[Ie.id],ie.value=te.value}function me(ye){fe(Z.value,ye.id)}function pe(){re.value&&ee.value.validate().then(()=>{W("update:tableColumns",ve(Z.value)),W("ok"),G.value=!1}).catch(ye=>{console.log("error",ye)})}function ve(ye,Ie){return ye.map(Oe=>(Ie&&Ie.options.hidden||Oe.options.hidden?Oe.colSpan=0:Oe.colSpan!=null&&delete Oe.colSpan,typeof Oe.width=="string"&&(Oe.width=Number(Oe.width)?Number(Oe.width):Oe.width),Oe.children&&(Oe.children=ve(Oe.children,Oe)),Oe))}function we(){document.onkeydown=ye=>{if(re.value){let Ie=ye||event||window.event||arguments.callee.caller.arguments[0],Ee=0;Ie&&Ie.keyCode==40?Ee=Ee+1:Ie&&Ie.keyCode==38&&(Ee=Ee-1),(Ee==1||Ee==-1)&&Ce(Z.value,Ee)}}}function Ce(ye,Ie){for(let Ee=0;Ee<ye.length;Ee++){if(ye[Ee].id==re.value.id){ye[Ee+Ie]&&(re.value=ye[Ee+Ie],te.value=[re.value.id],ie.value=te.value);return}ye[Ee].children&&ye[Ee].children.length>0&&Ce(ye[Ee].children,Ie)}}function xe(){document.onkeydown=null}return(ye,Ie)=>{const Ee=vue.resolveComponent("a-button"),Oe=vue.resolveComponent("a-popconfirm"),We=vue.resolveComponent("a-tree"),Te=vue.resolveComponent("a-input"),Ae=vue.resolveComponent("a-form-item"),Pe=vue.resolveComponent("a-radio"),$e=vue.resolveComponent("a-radio-group"),Re=vue.resolveComponent("a-form"),ze=vue.resolveComponent("a-empty"),Je=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Je,{visible:vue.unref(G),"onUpdate:visible":Ie[7]||(Ie[7]=Ke=>vue.isRef(G)?G.value=Ke:G=Ke),title:"列配置",width:"850px",onOk:pe},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$9,[vue.createElementVNode("div",_hoisted_2$5,[vue.createElementVNode("div",_hoisted_3$4,[vue.createVNode(Ee,{style:{"margin-bottom":"10px"},onClick:ge},{default:vue.withCtx(()=>[vue.createTextVNode("添加")]),_:1}),vue.createVNode(We,{"expanded-keys":vue.unref(ne),"onUpdate:expandedKeys":Ie[1]||(Ie[1]=Ke=>vue.isRef(ne)?ne.value=Ke:ne=Ke),"selected-keys":vue.unref(te),"onUpdate:selectedKeys":Ie[2]||(Ie[2]=Ke=>vue.isRef(te)?te.value=Ke:te=Ke),fieldNames:Q,"tree-data":vue.unref(Z),blockNode:"",draggable:"",onDragenter:de,onDrop:ue,onSelect:le},{title:vue.withCtx(Ke=>[vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(Ke.title),1),vue.createVNode(Oe,{"cancel-text":"否","ok-text":"是",title:"确定要删除吗?这将会删除所有子节点",onConfirm:Xe=>me(Ke)},{default:vue.withCtx(()=>[vue.unref(re)&&Ke.id==vue.unref(re).id?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"operate",onClick:Ie[0]||(Ie[0]=vue.withModifiers(()=>{},["stop"]))},[vue.createVNode(vue.unref(CloseCircleOutlined$1),{style:{color:"#ff3030"}})])):vue.createCommentVNode("",!0)]),_:2},1032,["onConfirm"])])]),_:1},8,["expanded-keys","selected-keys","tree-data"])])]),vue.createElementVNode("div",_hoisted_6$4,[vue.createElementVNode("div",_hoisted_7$3,[vue.unref(re)!==void 0?(vue.openBlock(),vue.createBlock(Re,{key:0,ref_key:"formRef",ref:ee,"label-col":{span:4},model:vue.unref(re),rules:vue.unref(oe),"wrapper-col":{span:19}},{default:vue.withCtx(()=>[vue.createVNode(Ae,{label:"标题",name:"title"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(re).title,"onUpdate:value":Ie[3]||(Ie[3]=Ke=>vue.unref(re).title=Ke)},null,8,["value"])]),_:1}),!vue.unref(re).children||!vue.unref(re).children.length?(vue.openBlock(),vue.createBlock(Ae,{key:0,label:"绑定字段",name:"dataIndex"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(re).dataIndex,"onUpdate:value":Ie[4]||(Ie[4]=Ke=>vue.unref(re).dataIndex=Ke)},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Ae,{label:"宽度",name:"width"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(re).width,"onUpdate:value":Ie[5]||(Ie[5]=Ke=>vue.unref(re).width=Ke)},null,8,["value"])]),_:1}),vue.createVNode(Ae,{label:"隐藏"},{default:vue.withCtx(()=>[vue.createVNode($e,{value:vue.unref(re).options.hidden,"onUpdate:value":Ie[6]||(Ie[6]=Ke=>vue.unref(re).options.hidden=Ke)},{default:vue.withCtx(()=>[vue.createVNode(Pe,{value:!0},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(Pe,{value:!1},{default:vue.withCtx(()=>[vue.createTextVNode("否")]),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model","rules"])):(vue.openBlock(),vue.createBlock(ze,{key:1,image:vue.unref(U)},null,8,["image"]))])])])]),_:1},8,["visible"])}}}),TableColumn_vue_vue_type_style_index_0_scoped_87834679_lang="",TableColumn=_export_sfc(_sfc_main$e,[["__scopeId","data-v-87834679"]]),_hoisted_1$8={key:0},_hoisted_2$4={key:1},_sfc_main$d=vue.defineComponent({__name:"Table",props:{configData:{type:Object,default:{}}},setup(K){const C=K,W=useFormStore(),H=useDataStore();let U=vue.ref(),G=vue.ref([]),Z=vue.ref(C.configData.action);const X=()=>{Z.value.push({title:"",oper:""})};function Q(ne){let oe=Z.value.indexOf(ne);oe!==-1&&Z.value.splice(oe,1)}function ee(ne){let se=H.getSelectData.filter(ae=>ae.value.split(".")[0]==ne).map(ae=>ae.value.split(".")[1]).map(ae=>({id:"column-"+guid(),title:ae,dataIndex:ae,width:"auto",options:{hidden:!1}}));C.configData.tableColumns=se}function te(){G.value=JSON.parse(JSON.stringify(C.configData.tableColumns,null," ")),U.value.show()}function ie(){const ne=W.formData.list.indexOf(C.configData);W.formData.list[ne].tableColumns=G.value}return(ne,oe)=>{const re=vue.resolveComponent("a-select"),se=vue.resolveComponent("a-form-item"),ae=vue.resolveComponent("a-button"),ce=vue.resolveComponent("a-switch"),le=vue.resolveComponent("a-input"),de=vue.resolveComponent("a-col"),ue=vue.resolveComponent("a-row"),he=vue.resolveComponent("a-input-number"),fe=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(fe,{layout:"vertical",model:K.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(se,{label:"数据源",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(re,{value:K.configData.model,"onUpdate:value":oe[0]||(oe[0]=ge=>K.configData.model=ge),options:vue.unref(H).getSelectTables,onChange:ee},null,8,["value","options"])]),_:1}),vue.createVNode(se,{label:"列配置"},{default:vue.withCtx(()=>[vue.createVNode(ae,{onClick:te,block:""},{default:vue.withCtx(()=>[vue.createTextVNode("属性配置")]),_:1})]),_:1}),vue.createVNode(se,{label:"显示操作列"},{default:vue.withCtx(()=>[vue.createVNode(ce,{checked:K.configData.options.showAction,"onUpdate:checked":oe[1]||(oe[1]=ge=>K.configData.options.showAction=ge)},null,8,["checked"])]),_:1}),K.configData.options.showAction?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.configData.action,(ge,me)=>(vue.openBlock(),vue.createBlock(ue,{style:{"padding-bottom":"5px"}},{default:vue.withCtx(()=>[vue.createVNode(de,{span:9},{default:vue.withCtx(()=>[vue.createVNode(le,{value:ge.title,"onUpdate:value":pe=>ge.title=pe,placeholder:"按钮名称"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(de,{span:9,offset:1},{default:vue.withCtx(()=>[vue.createVNode(le,{value:ge.oper,"onUpdate:value":pe=>ge.oper=pe,placeholder:"事件"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(de,{span:3,offset:1,style:{"line-height":"30px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:pe=>Q(ge),style:{"font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4"}},null,8,["onClick"])]),_:2},1024)]),_:2},1024))),256)),vue.createVNode(se,null,{default:vue.withCtx(()=>[vue.createVNode(ae,{type:"dashed",style:{width:"100%"},onClick:X},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1)),vue.createTextVNode(" 添加自定义操作按钮 ")]),_:1})]),_:1})])):vue.createCommentVNode("",!0),vue.createVNode(se,{label:"是否分页"},{default:vue.withCtx(()=>[vue.createVNode(ce,{checked:K.configData.options.pagination,"onUpdate:checked":oe[2]||(oe[2]=ge=>K.configData.options.pagination=ge)},null,8,["checked"])]),_:1}),K.configData.options.pagination?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$4,[vue.createVNode(se,{label:"每页显示数目"},{default:vue.withCtx(()=>[vue.createVNode(he,{value:K.configData.options.pageSize,"onUpdate:value":oe[3]||(oe[3]=ge=>K.configData.options.pageSize=ge),min:5,max:100,defaultValue:5,style:{width:"100%"}},null,8,["value"])]),_:1})])):vue.createCommentVNode("",!0)]),_:1},8,["model"]),vue.createVNode(TableColumn,{ref_key:"settingRef",ref:U,tableColumns:vue.unref(G),"onUpdate:tableColumns":oe[4]||(oe[4]=ge=>vue.isRef(G)?G.value=ge:G=ge),onOk:ie},null,8,["tableColumns"])],64)}}}),_withScopeId$1=K=>(vue.pushScopeId("data-v-12ada039"),K=K(),vue.popScopeId(),K),_hoisted_1$7={style:{height:"40px"}},_hoisted_2$3={style:{float:"right"}},_hoisted_3$3={style:{height:"500px"}},_hoisted_4$3={style:{width:"20%",height:"100%",border:"1px solid #e4e7ed",float:"left"}},_hoisted_5$3=["onClick"],_hoisted_6$3={style:{color:"#67c23a",width:"30px",display:"inline-block"}},_hoisted_7$2={style:{width:"80%",height:"100%",float:"left"}},_hoisted_8$2={class:"content"},_hoisted_9$2=_withScopeId$1(()=>vue.createElementVNode("span",{style:{color:"blue","font-size":"12px"}},"// 默认直接返回响应数据 res,可以在下方对数据进行处理 (res) => { ",-1)),_hoisted_10$2=_withScopeId$1(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_11$2=_withScopeId$1(()=>vue.createElementVNode("span",{style:{color:"blue","font-size":"12px"}}," }",-1)),_sfc_main$c=vue.defineComponent({__name:"DataSource",setup(K){vue.ref({ywh:"22",hell0:"rere"});const C=useFormStore(),W=ee=>{let te=X.value.params.indexOf(ee);te!==-1&&X.value.params.splice(te,1)},H=()=>{X.value.params.push({key:"",value:""})};let U=vue.ref(C.formData.config.dataSource);function G(){const ee={key:"fun1",name:"getData",url:"http://",method:"post",auto:!1,params:[],headers:[],responseFunc:"return res;",requestFunc:"return config;",errorFunc:"",args:[]};U.value.push(ee)}let Z=vue.ref(-1),X=vue.ref({});function Q(ee){Z.value=ee,X.value=U.value[ee]}return(ee,te)=>{const ie=vue.resolveComponent("a-button"),ne=vue.resolveComponent("a-input"),oe=vue.resolveComponent("a-form-item"),re=vue.resolveComponent("a-textarea"),se=vue.resolveComponent("a-radio-button"),ae=vue.resolveComponent("a-radio-group"),ce=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$7,[vue.createVNode(ie,{type:"link",primary:"",onClick:G},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode("新增数据源")]),_:1}),vue.createElementVNode("div",_hoisted_2$3,[vue.createVNode(ie,{type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(ie,{style:{"margin-left":"8px"}},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})])]),vue.createElementVNode("div",_hoisted_3$3,[vue.createElementVNode("div",_hoisted_4$3,[vue.createElementVNode("ul",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U),(le,de)=>(vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["menu-item",{active:vue.unref(Z)==de}]),onClick:ue=>Q(de)},[vue.createElementVNode("span",_hoisted_6$3,vue.toDisplayString(le.method),1),vue.createTextVNode(" "+vue.toDisplayString(le.name),1)],10,_hoisted_5$3))),256))])]),vue.createElementVNode("div",_hoisted_7$2,[vue.createElementVNode("div",_hoisted_8$2,[vue.createVNode(ce,{"label-col":{span:4},"wrapper-col":{span:20}},{default:vue.withCtx(()=>[vue.createVNode(oe,{label:"名称",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:vue.unref(X).name,"onUpdate:value":te[0]||(te[0]=le=>vue.unref(X).name=le)},null,8,["value"])]),_:1}),vue.createVNode(oe,{label:"请求地址",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(re,{value:vue.unref(X).url,"onUpdate:value":te[1]||(te[1]=le=>vue.unref(X).url=le),placeholder:"",rows:1},null,8,["value"])]),_:1}),vue.createVNode(oe,{label:"请求方法"},{default:vue.withCtx(()=>[vue.createVNode(ae,{value:vue.unref(X).method,"onUpdate:value":te[2]||(te[2]=le=>vue.unref(X).method=le)},{default:vue.withCtx(()=>[vue.createVNode(se,{value:"get"},{default:vue.withCtx(()=>[vue.createTextVNode("GET")]),_:1}),vue.createVNode(se,{value:"post"},{default:vue.withCtx(()=>[vue.createTextVNode("POST")]),_:1})]),_:1},8,["value"])]),_:1}),vue.createVNode(oe,{label:"请求参数"},{default:vue.withCtx(()=>[vue.createVNode(ce,{"label-col":{span:1},"wrapper-col":{span:23}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(X).params,(le,de)=>(vue.openBlock(),vue.createBlock(oe,null,{default:vue.withCtx(()=>[vue.createVNode(ne,{style:{width:"170px","margin-right":"8px"},value:le.key,"onUpdate:value":ue=>le.key=ue},null,8,["value","onUpdate:value"]),vue.createVNode(ne,{style:{width:"170px","margin-right":"8px"},value:le.value,"onUpdate:value":ue=>le.value=ue},null,8,["value","onUpdate:value"]),vue.createVNode(vue.unref(MinusCircleOutlined$1),{onClick:ue=>W(le)},null,8,["onClick"])]),_:2},1024))),256)),vue.createVNode(oe,null,{default:vue.withCtx(()=>[vue.createVNode(ie,{type:"dashed",style:{width:"60%"},onClick:H},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1)),vue.createTextVNode(" 添加参数 ")]),_:1})]),_:1})]),_:1})]),_:1}),vue.createVNode(oe,{label:"数据处理"},{default:vue.withCtx(()=>[_hoisted_9$2,_hoisted_10$2,vue.createVNode(re,{value:vue.unref(X).requestFunc,"onUpdate:value":te[3]||(te[3]=le=>vue.unref(X).requestFunc=le),placeholder:"",rows:4,defaultValue:"return res;"},null,8,["value"]),_hoisted_11$2]),_:1})]),_:1})])])])],64)}}}),DataSource_vue_vue_type_style_index_0_scoped_12ada039_lang="",DataSource$1=_export_sfc(_sfc_main$c,[["__scopeId","data-v-12ada039"]]),editorProps={modelValue:{type:String,default:null},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},language:{type:String,default:"javascript"},theme:{type:String,validator(K){return["vs","hc-black","vs-dark"].includes(K)},default:"vs-dark"},options:{type:Object,default:function(){return{automaticLayout:!0,foldingStrategy:"indentation",renderLineHighlight:"all",selectOnLineNumbers:!0,minimap:{enabled:!0},readOnly:!1,fontSize:16,scrollBeyondLastLine:!1,overviewRulerBorder:!1}}}};function tail(K,C=0){return K[K.length-(1+C)]}function tail2(K){if(K.length===0)throw new Error("Invalid tail call");return[K.slice(0,K.length-1),K[K.length-1]]}function equals$2(K,C,W=(H,U)=>H===U){if(K===C)return!0;if(!K||!C||K.length!==C.length)return!1;for(let H=0,U=K.length;H<U;H++)if(!W(K[H],C[H]))return!1;return!0}function removeFastWithoutKeepingOrder(K,C){const W=K.length-1;C<W&&(K[C]=K[W]),K.pop()}function binarySearch(K,C,W){return binarySearch2(K.length,H=>W(K[H],C))}function binarySearch2(K,C){let W=0,H=K-1;for(;W<=H;){const U=(W+H)/2|0,G=C(U);if(G<0)W=U+1;else if(G>0)H=U-1;else return U}return-(W+1)}function quickSelect(K,C,W){if(K=K|0,K>=C.length)throw new TypeError("invalid index");const H=C[Math.floor(C.length*Math.random())],U=[],G=[],Z=[];for(const X of C){const Q=W(X,H);Q<0?U.push(X):Q>0?G.push(X):Z.push(X)}return K<U.length?quickSelect(K,U,W):K<U.length+Z.length?Z[0]:quickSelect(K-(U.length+Z.length),G,W)}function groupBy(K,C){const W=[];let H;for(const U of K.slice(0).sort(C))!H||C(H[0],U)!==0?(H=[U],W.push(H)):H.push(U);return W}function*groupAdjacentBy(K,C){let W,H;for(const U of K)H!==void 0&&C(H,U)?W.push(U):(W&&(yield W),W=[U]),H=U;W&&(yield W)}function forEachAdjacent(K,C){for(let W=0;W<=K.length;W++)C(W===0?void 0:K[W-1],W===K.length?void 0:K[W])}function forEachWithNeighbors(K,C){for(let W=0;W<K.length;W++)C(W===0?void 0:K[W-1],K[W],W+1===K.length?void 0:K[W+1])}function coalesce(K){return K.filter(C=>!!C)}function coalesceInPlace(K){let C=0;for(let W=0;W<K.length;W++)K[W]&&(K[C]=K[W],C+=1);K.length=C}function isFalsyOrEmpty(K){return!Array.isArray(K)||K.length===0}function isNonEmptyArray(K){return Array.isArray(K)&&K.length>0}function distinct(K,C=W=>W){const W=new Set;return K.filter(H=>{const U=C(H);return W.has(U)?!1:(W.add(U),!0)})}function firstOrDefault(K,C){return K.length>0?K[0]:C}function range(K,C){let W=typeof C=="number"?K:0;typeof C=="number"?W=K:(W=0,C=K);const H=[];if(W<=C)for(let U=W;U<C;U++)H.push(U);else for(let U=W;U>C;U--)H.push(U);return H}function arrayInsert(K,C,W){const H=K.slice(0,C),U=K.slice(C);return H.concat(W,U)}function pushToStart(K,C){const W=K.indexOf(C);W>-1&&(K.splice(W,1),K.unshift(C))}function pushToEnd(K,C){const W=K.indexOf(C);W>-1&&(K.splice(W,1),K.push(C))}function pushMany(K,C){for(const W of C)K.push(W)}function asArray(K){return Array.isArray(K)?K:[K]}function insertInto(K,C,W){const H=getActualStartIndex(K,C),U=K.length,G=W.length;K.length=U+G;for(let Z=U-1;Z>=H;Z--)K[Z+G]=K[Z];for(let Z=0;Z<G;Z++)K[Z+H]=W[Z]}function splice$1(K,C,W,H){const U=getActualStartIndex(K,C);let G=K.splice(U,W);return G===void 0&&(G=[]),insertInto(K,U,H),G}function getActualStartIndex(K,C){return C<0?Math.max(C+K.length,0):Math.min(C,K.length)}var CompareResult;(function(K){function C(G){return G<0}K.isLessThan=C;function W(G){return G<=0}K.isLessThanOrEqual=W;function H(G){return G>0}K.isGreaterThan=H;function U(G){return G===0}K.isNeitherLessOrGreaterThan=U,K.greaterThan=1,K.lessThan=-1,K.neitherLessOrGreaterThan=0})(CompareResult||(CompareResult={}));function compareBy(K,C){return(W,H)=>C(K(W),K(H))}function tieBreakComparators(...K){return(C,W)=>{for(const H of K){const U=H(C,W);if(!CompareResult.isNeitherLessOrGreaterThan(U))return U}return CompareResult.neitherLessOrGreaterThan}}const numberComparator=(K,C)=>K-C,booleanComparator=(K,C)=>numberComparator(K?1:0,C?1:0);function reverseOrder(K){return(C,W)=>-K(C,W)}class ArrayQueue{constructor(C){this.items=C,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(C){let W=this.firstIdx;for(;W<this.items.length&&C(this.items[W]);)W++;const H=W===this.firstIdx?null:this.items.slice(this.firstIdx,W);return this.firstIdx=W,H}takeFromEndWhile(C){let W=this.lastIdx;for(;W>=0&&C(this.items[W]);)W--;const H=W===this.lastIdx?null:this.items.slice(W+1,this.lastIdx+1);return this.lastIdx=W,H}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const C=this.items[this.firstIdx];return this.firstIdx++,C}takeCount(C){const W=this.items.slice(this.firstIdx,this.firstIdx+C);return this.firstIdx+=C,W}}class CallbackIterable{constructor(C){this.iterate=C}toArray(){const C=[];return this.iterate(W=>(C.push(W),!0)),C}filter(C){return new CallbackIterable(W=>this.iterate(H=>C(H)?W(H):!0))}map(C){return new CallbackIterable(W=>this.iterate(H=>W(C(H))))}findLast(C){let W;return this.iterate(H=>(C(H)&&(W=H),!0)),W}findLastMaxBy(C){let W,H=!0;return this.iterate(U=>((H||CompareResult.isGreaterThan(C(U,W)))&&(H=!1,W=U),!0)),W}}CallbackIterable.empty=new CallbackIterable(K=>{});function isString$3(K){return typeof K=="string"}function isObject$1(K){return typeof K=="object"&&K!==null&&!Array.isArray(K)&&!(K instanceof RegExp)&&!(K instanceof Date)}function isTypedArray$1(K){const C=Object.getPrototypeOf(Uint8Array);return typeof K=="object"&&K instanceof C}function isNumber$2(K){return typeof K=="number"&&!isNaN(K)}function isIterable(K){return!!K&&typeof K[Symbol.iterator]=="function"}function isBoolean$1(K){return K===!0||K===!1}function isUndefined$1(K){return typeof K>"u"}function isDefined(K){return!isUndefinedOrNull(K)}function isUndefinedOrNull(K){return isUndefined$1(K)||K===null}function assertType(K,C){if(!K)throw new Error(C?`Unexpected type, expected '${C}'`:"Unexpected type")}function assertIsDefined(K){if(isUndefinedOrNull(K))throw new Error("Assertion Failed: argument is undefined or null");return K}function isFunction$1(K){return typeof K=="function"}function validateConstraints(K,C){const W=Math.min(K.length,C.length);for(let H=0;H<W;H++)validateConstraint(K[H],C[H])}function validateConstraint(K,C){if(isString$3(C)){if(typeof K!==C)throw new Error(`argument does not match constraint: typeof ${C}`)}else if(isFunction$1(C)){try{if(K instanceof C)return}catch{}if(!isUndefinedOrNull(K)&&K.constructor===C||C.length===1&&C.call(void 0,K)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function deepClone(K){if(!K||typeof K!="object"||K instanceof RegExp)return K;const C=Array.isArray(K)?[]:{};return Object.entries(K).forEach(([W,H])=>{C[W]=H&&typeof H=="object"?deepClone(H):H}),C}function deepFreeze(K){if(!K||typeof K!="object")return K;const C=[K];for(;C.length>0;){const W=C.shift();Object.freeze(W);for(const H in W)if(_hasOwnProperty.call(W,H)){const U=W[H];typeof U=="object"&&!Object.isFrozen(U)&&!isTypedArray$1(U)&&C.push(U)}}return K}const _hasOwnProperty=Object.prototype.hasOwnProperty;function cloneAndChange(K,C){return _cloneAndChange(K,C,new Set)}function _cloneAndChange(K,C,W){if(isUndefinedOrNull(K))return K;const H=C(K);if(typeof H<"u")return H;if(Array.isArray(K)){const U=[];for(const G of K)U.push(_cloneAndChange(G,C,W));return U}if(isObject$1(K)){if(W.has(K))throw new Error("Cannot clone recursive data-structure");W.add(K);const U={};for(const G in K)_hasOwnProperty.call(K,G)&&(U[G]=_cloneAndChange(K[G],C,W));return W.delete(K),U}return K}function mixin(K,C,W=!0){return isObject$1(K)?(isObject$1(C)&&Object.keys(C).forEach(H=>{H in K?W&&(isObject$1(K[H])&&isObject$1(C[H])?mixin(K[H],C[H],W):K[H]=C[H]):K[H]=C[H]}),K):C}function equals$1(K,C){if(K===C)return!0;if(K==null||C===null||C===void 0||typeof K!=typeof C||typeof K!="object"||Array.isArray(K)!==Array.isArray(C))return!1;let W,H;if(Array.isArray(K)){if(K.length!==C.length)return!1;for(W=0;W<K.length;W++)if(!equals$1(K[W],C[W]))return!1}else{const U=[];for(H in K)U.push(H);U.sort();const G=[];for(H in C)G.push(H);if(G.sort(),!equals$1(U,G))return!1;for(W=0;W<U.length;W++)if(!equals$1(K[U[W]],C[U[W]]))return!1}return!0}function getAllPropertyNames(K){let C=[];for(;Object.prototype!==K;)C=C.concat(Object.getOwnPropertyNames(K)),K=Object.getPrototypeOf(K);return C}function getAllMethodNames(K){const C=[];for(const W of getAllPropertyNames(K))typeof K[W]=="function"&&C.push(W);return C}function createProxyObject$1(K,C){const W=U=>function(){const G=Array.prototype.slice.call(arguments,0);return C(U,G)},H={};for(const U of K)H[U]=W(U);return H}globalThis&&globalThis.__awaiter;let isPseudo=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _format$1(K,C){let W;return C.length===0?W=K:W=K.replace(/\{(\d+)\}/g,(H,U)=>{const G=U[0],Z=C[G];let X=H;return typeof Z=="string"?X=Z:(typeof Z=="number"||typeof Z=="boolean"||Z===void 0||Z===null)&&(X=String(Z)),X}),isPseudo&&(W="["+W.replace(/[aouei]/g,"$&$&")+"]"),W}function localize(K,C,...W){return _format$1(C,W)}function getConfiguredDefaultLocale(K){}var _a$4;const LANGUAGE_DEFAULT="en";let _isWindows=!1,_isMacintosh=!1,_isLinux=!1,_isNative=!1,_isWeb=!1,_isIOS=!1,_isMobile=!1,_locale,_language=LANGUAGE_DEFAULT,_platformLocale=LANGUAGE_DEFAULT,_translationsConfigFile,_userAgent;const globals=typeof self=="object"?self:typeof global=="object"?global:{};let nodeProcess;typeof globals.vscode<"u"&&typeof globals.vscode.process<"u"?nodeProcess=globals.vscode.process:typeof process<"u"&&(nodeProcess=process);const isElectronProcess=typeof((_a$4=nodeProcess==null?void 0:nodeProcess.versions)===null||_a$4===void 0?void 0:_a$4.electron)=="string",isElectronRenderer=isElectronProcess&&(nodeProcess==null?void 0:nodeProcess.type)==="renderer";if(typeof navigator=="object"&&!isElectronRenderer)_userAgent=navigator.userAgent,_isWindows=_userAgent.indexOf("Windows")>=0,_isMacintosh=_userAgent.indexOf("Macintosh")>=0,_isIOS=(_userAgent.indexOf("Macintosh")>=0||_userAgent.indexOf("iPad")>=0||_userAgent.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,_isLinux=_userAgent.indexOf("Linux")>=0,_isMobile=(_userAgent==null?void 0:_userAgent.indexOf("Mobi"))>=0,_isWeb=!0,localize({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),_locale=LANGUAGE_DEFAULT,_language=_locale,_platformLocale=navigator.language;else if(typeof nodeProcess=="object"){_isWindows=nodeProcess.platform==="win32",_isMacintosh=nodeProcess.platform==="darwin",_isLinux=nodeProcess.platform==="linux",_isLinux&&nodeProcess.env.SNAP&&nodeProcess.env.SNAP_REVISION,nodeProcess.env.CI||nodeProcess.env.BUILD_ARTIFACTSTAGINGDIRECTORY,_locale=LANGUAGE_DEFAULT,_language=LANGUAGE_DEFAULT;const K=nodeProcess.env.VSCODE_NLS_CONFIG;if(K)try{const C=JSON.parse(K),W=C.availableLanguages["*"];_locale=C.locale,_platformLocale=C.osLocale,_language=W||LANGUAGE_DEFAULT,_translationsConfigFile=C._translationsConfigFile}catch{}_isNative=!0}else console.error("Unable to resolve platform.");const isWindows=_isWindows,isMacintosh=_isMacintosh,isLinux=_isLinux,isNative=_isNative,isWeb=_isWeb,isWebWorker=_isWeb&&typeof globals.importScripts=="function",isIOS=_isIOS,isMobile=_isMobile,userAgent$1=_userAgent,language$1f=_language,setTimeout0IsFaster=typeof globals.postMessage=="function"&&!globals.importScripts,setTimeout0=(()=>{if(setTimeout0IsFaster){const K=[];globals.addEventListener("message",W=>{if(W.data&&W.data.vscodeScheduleAsyncWork)for(let H=0,U=K.length;H<U;H++){const G=K[H];if(G.id===W.data.vscodeScheduleAsyncWork){K.splice(H,1),G.callback();return}}});let C=0;return W=>{const H=++C;K.push({id:H,callback:W}),globals.postMessage({vscodeScheduleAsyncWork:H},"*")}}return K=>setTimeout(K)})(),OS=_isMacintosh||_isIOS?2:_isWindows?1:3;let _isLittleEndian=!0,_isLittleEndianComputed=!1;function isLittleEndian(){if(!_isLittleEndianComputed){_isLittleEndianComputed=!0;const K=new Uint8Array(2);K[0]=1,K[1]=2,_isLittleEndian=new Uint16Array(K.buffer)[0]===512+1}return _isLittleEndian}const isChrome$1=!!(userAgent$1&&userAgent$1.indexOf("Chrome")>=0),isFirefox$1=!!(userAgent$1&&userAgent$1.indexOf("Firefox")>=0),isSafari$1=!!(!isChrome$1&&userAgent$1&&userAgent$1.indexOf("Safari")>=0),isEdge=!!(userAgent$1&&userAgent$1.indexOf("Edg/")>=0);userAgent$1&&userAgent$1.indexOf("Android")>=0;const EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Iterable;(function(K){function C(le){return le&&typeof le=="object"&&typeof le[Symbol.iterator]=="function"}K.is=C;const W=Object.freeze([]);function H(){return W}K.empty=H;function*U(le){yield le}K.single=U;function G(le){return C(le)?le:U(le)}K.wrap=G;function Z(le){return le||W}K.from=Z;function*X(le){for(let de=le.length-1;de>=0;de--)yield le[de]}K.reverse=X;function Q(le){return!le||le[Symbol.iterator]().next().done===!0}K.isEmpty=Q;function ee(le){return le[Symbol.iterator]().next().value}K.first=ee;function te(le,de){for(const ue of le)if(de(ue))return!0;return!1}K.some=te;function ie(le,de){for(const ue of le)if(de(ue))return ue}K.find=ie;function*ne(le,de){for(const ue of le)de(ue)&&(yield ue)}K.filter=ne;function*oe(le,de){let ue=0;for(const he of le)yield de(he,ue++)}K.map=oe;function*re(...le){for(const de of le)for(const ue of de)yield ue}K.concat=re;function se(le,de,ue){let he=ue;for(const fe of le)he=de(he,fe);return he}K.reduce=se;function*ae(le,de,ue=le.length){for(de<0&&(de+=le.length),ue<0?ue+=le.length:ue>le.length&&(ue=le.length);de<ue;de++)yield le[de]}K.slice=ae;function ce(le,de=Number.POSITIVE_INFINITY){const ue=[];if(de===0)return[ue,le];const he=le[Symbol.iterator]();for(let fe=0;fe<de;fe++){const ge=he.next();if(ge.done)return[ue,K.empty()];ue.push(ge.value)}return[ue,{[Symbol.iterator](){return he}}]}K.consume=ce})(Iterable||(Iterable={}));let Node$2=class Xt{constructor(C){this.element=C,this.next=Xt.Undefined,this.prev=Xt.Undefined}};Node$2.Undefined=new Node$2(void 0);class LinkedList{constructor(){this._first=Node$2.Undefined,this._last=Node$2.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Node$2.Undefined}clear(){let C=this._first;for(;C!==Node$2.Undefined;){const W=C.next;C.prev=Node$2.Undefined,C.next=Node$2.Undefined,C=W}this._first=Node$2.Undefined,this._last=Node$2.Undefined,this._size=0}unshift(C){return this._insert(C,!1)}push(C){return this._insert(C,!0)}_insert(C,W){const H=new Node$2(C);if(this._first===Node$2.Undefined)this._first=H,this._last=H;else if(W){const G=this._last;this._last=H,H.prev=G,G.next=H}else{const G=this._first;this._first=H,H.next=G,G.prev=H}this._size+=1;let U=!1;return()=>{U||(U=!0,this._remove(H))}}shift(){if(this._first!==Node$2.Undefined){const C=this._first.element;return this._remove(this._first),C}}pop(){if(this._last!==Node$2.Undefined){const C=this._last.element;return this._remove(this._last),C}}_remove(C){if(C.prev!==Node$2.Undefined&&C.next!==Node$2.Undefined){const W=C.prev;W.next=C.next,C.next.prev=W}else C.prev===Node$2.Undefined&&C.next===Node$2.Undefined?(this._first=Node$2.Undefined,this._last=Node$2.Undefined):C.next===Node$2.Undefined?(this._last=this._last.prev,this._last.next=Node$2.Undefined):C.prev===Node$2.Undefined&&(this._first=this._first.next,this._first.prev=Node$2.Undefined);this._size-=1}*[Symbol.iterator](){let C=this._first;for(;C!==Node$2.Undefined;)yield C.element,C=C.next}}const USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function createWordRegExp(K=""){let C="(-?\\d*\\.\\d\\w*)|([^";for(const W of USUAL_WORD_SEPARATORS)K.indexOf(W)>=0||(C+="\\"+W);return C+="\\s]+)",new RegExp(C,"g")}const DEFAULT_WORD_REGEXP=createWordRegExp();function ensureValidWordDefinition(K){let C=DEFAULT_WORD_REGEXP;if(K&&K instanceof RegExp)if(K.global)C=K;else{let W="g";K.ignoreCase&&(W+="i"),K.multiline&&(W+="m"),K.unicode&&(W+="u"),C=new RegExp(K.source,W)}return C.lastIndex=0,C}const _defaultConfig=new LinkedList;_defaultConfig.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function getWordAtText(K,C,W,H,U){if(U||(U=Iterable.first(_defaultConfig)),W.length>U.maxLen){let ee=K-U.maxLen/2;return ee<0?ee=0:H+=ee,W=W.substring(ee,K+U.maxLen/2),getWordAtText(K,C,W,H,U)}const G=Date.now(),Z=K-1-H;let X=-1,Q=null;for(let ee=1;!(Date.now()-G>=U.timeBudget);ee++){const te=Z-U.windowSize*ee;C.lastIndex=Math.max(0,te);const ie=_findRegexMatchEnclosingPosition(C,W,Z,X);if(!ie&&Q||(Q=ie,te<=0))break;X=te}if(Q){const ee={word:Q[0],startColumn:H+1+Q.index,endColumn:H+1+Q.index+Q[0].length};return C.lastIndex=0,ee}return null}function _findRegexMatchEnclosingPosition(K,C,W,H){let U;for(;U=K.exec(C);){const G=U.index||0;if(G<=W&&K.lastIndex>=W)return U;if(H>0&&G>H)return null}return null}const MINIMAP_GUTTER_WIDTH=8;class ConfigurationChangedEvent{constructor(C){this._values=C}hasChanged(C){return this._values[C]}}class ComputeOptionsMemory{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class BaseEditorOption{constructor(C,W,H,U){this.id=C,this.name=W,this.defaultValue=H,this.schema=U}applyUpdate(C,W){return applyUpdate(C,W)}compute(C,W,H){return H}}class ApplyUpdateResult{constructor(C,W){this.newValue=C,this.didChange=W}}function applyUpdate(K,C){if(typeof K!="object"||typeof C!="object"||!K||!C)return new ApplyUpdateResult(C,K!==C);if(Array.isArray(K)||Array.isArray(C)){const H=Array.isArray(K)&&Array.isArray(C)&&equals$2(K,C);return new ApplyUpdateResult(C,!H)}let W=!1;for(const H in C)if(C.hasOwnProperty(H)){const U=applyUpdate(K[H],C[H]);U.didChange&&(K[H]=U.newValue,W=!0)}return new ApplyUpdateResult(K,W)}class ComputedEditorOption{constructor(C){this.schema=void 0,this.id=C,this.name="_never_",this.defaultValue=void 0}applyUpdate(C,W){return applyUpdate(C,W)}validate(C){return this.defaultValue}}class SimpleEditorOption{constructor(C,W,H,U){this.id=C,this.name=W,this.defaultValue=H,this.schema=U}applyUpdate(C,W){return applyUpdate(C,W)}validate(C){return typeof C>"u"?this.defaultValue:C}compute(C,W,H){return H}}function boolean(K,C){return typeof K>"u"?C:K==="false"?!1:!!K}class EditorBooleanOption extends SimpleEditorOption{constructor(C,W,H,U=void 0){typeof U<"u"&&(U.type="boolean",U.default=H),super(C,W,H,U)}validate(C){return boolean(C,this.defaultValue)}}function clampedInt(K,C,W,H){if(typeof K>"u")return C;let U=parseInt(K,10);return isNaN(U)?C:(U=Math.max(W,U),U=Math.min(H,U),U|0)}class EditorIntOption extends SimpleEditorOption{static clampedInt(C,W,H,U){return clampedInt(C,W,H,U)}constructor(C,W,H,U,G,Z=void 0){typeof Z<"u"&&(Z.type="integer",Z.default=H,Z.minimum=U,Z.maximum=G),super(C,W,H,Z),this.minimum=U,this.maximum=G}validate(C){return EditorIntOption.clampedInt(C,this.defaultValue,this.minimum,this.maximum)}}function clampedFloat(K,C,W,H){if(typeof K>"u")return C;const U=EditorFloatOption.float(K,C);return EditorFloatOption.clamp(U,W,H)}class EditorFloatOption extends SimpleEditorOption{static clamp(C,W,H){return C<W?W:C>H?H:C}static float(C,W){if(typeof C=="number")return C;if(typeof C>"u")return W;const H=parseFloat(C);return isNaN(H)?W:H}constructor(C,W,H,U,G){typeof G<"u"&&(G.type="number",G.default=H),super(C,W,H,G),this.validationFn=U}validate(C){return this.validationFn(EditorFloatOption.float(C,this.defaultValue))}}class EditorStringOption extends SimpleEditorOption{static string(C,W){return typeof C!="string"?W:C}constructor(C,W,H,U=void 0){typeof U<"u"&&(U.type="string",U.default=H),super(C,W,H,U)}validate(C){return EditorStringOption.string(C,this.defaultValue)}}function stringSet(K,C,W,H){return typeof K!="string"?C:H&&K in H?H[K]:W.indexOf(K)===-1?C:K}class EditorStringEnumOption extends SimpleEditorOption{constructor(C,W,H,U,G=void 0){typeof G<"u"&&(G.type="string",G.enum=U,G.default=H),super(C,W,H,G),this._allowedValues=U}validate(C){return stringSet(C,this.defaultValue,this._allowedValues)}}class EditorEnumOption extends BaseEditorOption{constructor(C,W,H,U,G,Z,X=void 0){typeof X<"u"&&(X.type="string",X.enum=G,X.default=U),super(C,W,H,X),this._allowedValues=G,this._convert=Z}validate(C){return typeof C!="string"?this.defaultValue:this._allowedValues.indexOf(C)===-1?this.defaultValue:this._convert(C)}}function _autoIndentFromString(K){switch(K){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class EditorAccessibilitySupport extends BaseEditorOption{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[localize("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),localize("accessibilitySupport.on","Optimize for usage with a Screen Reader"),localize("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:localize("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(C){switch(C){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(C,W,H){return H===0?C.accessibilitySupport:H}}class EditorComments extends BaseEditorOption{constructor(){const C={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",C,{"editor.comments.insertSpace":{type:"boolean",default:C.insertSpace,description:localize("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:C.ignoreEmptyLines,description:localize("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{insertSpace:boolean(W.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:boolean(W.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _cursorBlinkingStyleFromString(K){switch(K){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var TextEditorCursorStyle$1;(function(K){K[K.Line=1]="Line",K[K.Block=2]="Block",K[K.Underline=3]="Underline",K[K.LineThin=4]="LineThin",K[K.BlockOutline=5]="BlockOutline",K[K.UnderlineThin=6]="UnderlineThin"})(TextEditorCursorStyle$1||(TextEditorCursorStyle$1={}));function _cursorStyleFromString(K){switch(K){case"line":return TextEditorCursorStyle$1.Line;case"block":return TextEditorCursorStyle$1.Block;case"underline":return TextEditorCursorStyle$1.Underline;case"line-thin":return TextEditorCursorStyle$1.LineThin;case"block-outline":return TextEditorCursorStyle$1.BlockOutline;case"underline-thin":return TextEditorCursorStyle$1.UnderlineThin}}class EditorClassName extends ComputedEditorOption{constructor(){super(140)}compute(C,W,H){const U=["monaco-editor"];return W.get(39)&&U.push(W.get(39)),C.extraEditorClassName&&U.push(C.extraEditorClassName),W.get(73)==="default"?U.push("mouse-default"):W.get(73)==="copy"&&U.push("mouse-copy"),W.get(110)&&U.push("showUnused"),W.get(138)&&U.push("showDeprecated"),U.join(" ")}}class EditorEmptySelectionClipboard extends EditorBooleanOption{constructor(){super(37,"emptySelectionClipboard",!0,{description:localize("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(C,W,H){return H&&C.emptySelectionClipboard}}class EditorFind extends BaseEditorOption{constructor(){const C={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",C,{"editor.find.cursorMoveOnType":{type:"boolean",default:C.cursorMoveOnType,description:localize("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:C.seedSearchStringFromSelection,enumDescriptions:[localize("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),localize("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),localize("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:localize("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:C.autoFindInSelection,enumDescriptions:[localize("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),localize("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),localize("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:localize("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:C.globalFindClipboard,description:localize("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:C.addExtraSpaceOnTop,description:localize("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:C.loop,description:localize("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{cursorMoveOnType:boolean(W.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof C.seedSearchStringFromSelection=="boolean"?C.seedSearchStringFromSelection?"always":"never":stringSet(W.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof C.autoFindInSelection=="boolean"?C.autoFindInSelection?"always":"never":stringSet(W.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:boolean(W.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:boolean(W.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:boolean(W.loop,this.defaultValue.loop)}}}class EditorFontLigatures extends BaseEditorOption{constructor(){super(51,"fontLigatures",EditorFontLigatures.OFF,{anyOf:[{type:"boolean",description:localize("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:localize("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:localize("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(C){return typeof C>"u"?this.defaultValue:typeof C=="string"?C==="false"?EditorFontLigatures.OFF:C==="true"?EditorFontLigatures.ON:C:C?EditorFontLigatures.ON:EditorFontLigatures.OFF}}EditorFontLigatures.OFF='"liga" off, "calt" off',EditorFontLigatures.ON='"liga" on, "calt" on';class EditorFontVariations extends BaseEditorOption{constructor(){super(54,"fontVariations",EditorFontVariations.OFF,{anyOf:[{type:"boolean",description:localize("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:localize("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:localize("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(C){return typeof C>"u"?this.defaultValue:typeof C=="string"?C==="false"?EditorFontVariations.OFF:C==="true"?EditorFontVariations.TRANSLATE:C:C?EditorFontVariations.TRANSLATE:EditorFontVariations.OFF}compute(C,W,H){return C.fontInfo.fontVariationSettings}}EditorFontVariations.OFF="normal",EditorFontVariations.TRANSLATE="translate";class EditorFontInfo extends ComputedEditorOption{constructor(){super(50)}compute(C,W,H){return C.fontInfo}}class EditorFontSize extends SimpleEditorOption{constructor(){super(52,"fontSize",EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:EDITOR_FONT_DEFAULTS.fontSize,description:localize("fontSize","Controls the font size in pixels.")})}validate(C){const W=EditorFloatOption.float(C,this.defaultValue);return W===0?EDITOR_FONT_DEFAULTS.fontSize:EditorFloatOption.clamp(W,6,100)}compute(C,W,H){return C.fontInfo.fontSize}}class EditorFontWeight extends BaseEditorOption{constructor(){super(53,"fontWeight",EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:EditorFontWeight.MINIMUM_VALUE,maximum:EditorFontWeight.MAXIMUM_VALUE,errorMessage:localize("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:EditorFontWeight.SUGGESTION_VALUES}],default:EDITOR_FONT_DEFAULTS.fontWeight,description:localize("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(C){return C==="normal"||C==="bold"?C:String(EditorIntOption.clampedInt(C,EDITOR_FONT_DEFAULTS.fontWeight,EditorFontWeight.MINIMUM_VALUE,EditorFontWeight.MAXIMUM_VALUE))}}EditorFontWeight.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],EditorFontWeight.MINIMUM_VALUE=1,EditorFontWeight.MAXIMUM_VALUE=1e3;class EditorGoToLocation extends BaseEditorOption{constructor(){const C={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},W={type:"string",enum:["peek","gotoAndPeek","goto"],default:C.multiple,enumDescriptions:[localize("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),localize("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),localize("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},H=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",C,{"editor.gotoLocation.multiple":{deprecationMessage:localize("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:localize("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:localize("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleDeclarations":Object.assign({description:localize("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleImplementations":Object.assign({description:localize("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleReferences":Object.assign({description:localize("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},W),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:C.alternativeDefinitionCommand,enum:H,description:localize("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:C.alternativeTypeDefinitionCommand,enum:H,description:localize("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:C.alternativeDeclarationCommand,enum:H,description:localize("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:C.alternativeImplementationCommand,enum:H,description:localize("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:C.alternativeReferenceCommand,enum:H,description:localize("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(C){var W,H,U,G,Z;if(!C||typeof C!="object")return this.defaultValue;const X=C;return{multiple:stringSet(X.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(W=X.multipleDefinitions)!==null&&W!==void 0?W:stringSet(X.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(H=X.multipleTypeDefinitions)!==null&&H!==void 0?H:stringSet(X.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(U=X.multipleDeclarations)!==null&&U!==void 0?U:stringSet(X.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(G=X.multipleImplementations)!==null&&G!==void 0?G:stringSet(X.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Z=X.multipleReferences)!==null&&Z!==void 0?Z:stringSet(X.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:EditorStringOption.string(X.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:EditorStringOption.string(X.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:EditorStringOption.string(X.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:EditorStringOption.string(X.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:EditorStringOption.string(X.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class EditorHover extends BaseEditorOption{constructor(){const C={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",C,{"editor.hover.enabled":{type:"boolean",default:C.enabled,description:localize("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:C.delay,minimum:0,maximum:1e4,description:localize("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:C.sticky,description:localize("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:C.hidingDelay,description:localize("hover.hidingDelay","Controls the delay in milliseconds after thich the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:C.above,description:localize("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),delay:EditorIntOption.clampedInt(W.delay,this.defaultValue.delay,0,1e4),sticky:boolean(W.sticky,this.defaultValue.sticky),hidingDelay:EditorIntOption.clampedInt(W.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:boolean(W.above,this.defaultValue.above)}}}class EditorLayoutInfoComputer extends ComputedEditorOption{constructor(){super(143)}compute(C,W,H){return EditorLayoutInfoComputer.computeLayout(W,{memory:C.memory,outerWidth:C.outerWidth,outerHeight:C.outerHeight,isDominatedByLongLines:C.isDominatedByLongLines,lineHeight:C.fontInfo.lineHeight,viewLineCount:C.viewLineCount,lineNumbersDigitCount:C.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:C.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:C.fontInfo.maxDigitWidth,pixelRatio:C.pixelRatio,glyphMarginDecorationLaneCount:C.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(C){const W=C.height/C.lineHeight,H=Math.floor(C.paddingTop/C.lineHeight);let U=Math.floor(C.paddingBottom/C.lineHeight);C.scrollBeyondLastLine&&(U=Math.max(U,W-1));const G=(H+C.viewLineCount+U)/(C.pixelRatio*C.height),Z=Math.floor(C.viewLineCount/G);return{typicalViewportLineCount:W,extraLinesBeforeFirstLine:H,extraLinesBeyondLastLine:U,desiredRatio:G,minimapLineCount:Z}}static _computeMinimapLayout(C,W){const H=C.outerWidth,U=C.outerHeight,G=C.pixelRatio;if(!C.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(G*U),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:U};const Z=W.stableMinimapLayoutInput,X=Z&&C.outerHeight===Z.outerHeight&&C.lineHeight===Z.lineHeight&&C.typicalHalfwidthCharacterWidth===Z.typicalHalfwidthCharacterWidth&&C.pixelRatio===Z.pixelRatio&&C.scrollBeyondLastLine===Z.scrollBeyondLastLine&&C.paddingTop===Z.paddingTop&&C.paddingBottom===Z.paddingBottom&&C.minimap.enabled===Z.minimap.enabled&&C.minimap.side===Z.minimap.side&&C.minimap.size===Z.minimap.size&&C.minimap.showSlider===Z.minimap.showSlider&&C.minimap.renderCharacters===Z.minimap.renderCharacters&&C.minimap.maxColumn===Z.minimap.maxColumn&&C.minimap.scale===Z.minimap.scale&&C.verticalScrollbarWidth===Z.verticalScrollbarWidth&&C.isViewportWrapping===Z.isViewportWrapping,Q=C.lineHeight,ee=C.typicalHalfwidthCharacterWidth,te=C.scrollBeyondLastLine,ie=C.minimap.renderCharacters;let ne=G>=2?Math.round(C.minimap.scale*2):C.minimap.scale;const oe=C.minimap.maxColumn,re=C.minimap.size,se=C.minimap.side,ae=C.verticalScrollbarWidth,ce=C.viewLineCount,le=C.remainingWidth,de=C.isViewportWrapping,ue=ie?2:3;let he=Math.floor(G*U);const fe=he/G;let ge=!1,me=!1,pe=ue*ne,ve=ne/G,we=1;if(re==="fill"||re==="fit"){const{typicalViewportLineCount:We,extraLinesBeforeFirstLine:Te,extraLinesBeyondLastLine:Ae,desiredRatio:Pe,minimapLineCount:$e}=EditorLayoutInfoComputer.computeContainedMinimapLineCount({viewLineCount:ce,scrollBeyondLastLine:te,paddingTop:C.paddingTop,paddingBottom:C.paddingBottom,height:U,lineHeight:Q,pixelRatio:G});if(ce/$e>1)ge=!0,me=!0,ne=1,pe=1,ve=ne/G;else{let ze=!1,Je=ne+1;if(re==="fit"){const Ke=Math.ceil((Te+ce+Ae)*pe);de&&X&&le<=W.stableFitRemainingWidth?(ze=!0,Je=W.stableFitMaxMinimapScale):ze=Ke>he}if(re==="fill"||ze){ge=!0;const Ke=ne;pe=Math.min(Q*G,Math.max(1,Math.floor(1/Pe))),de&&X&&le<=W.stableFitRemainingWidth&&(Je=W.stableFitMaxMinimapScale),ne=Math.min(Je,Math.max(1,Math.floor(pe/ue))),ne>Ke&&(we=Math.min(2,ne/Ke)),ve=ne/G/we,he=Math.ceil(Math.max(We,Te+ce+Ae)*pe),de?(W.stableMinimapLayoutInput=C,W.stableFitRemainingWidth=le,W.stableFitMaxMinimapScale=ne):(W.stableMinimapLayoutInput=null,W.stableFitRemainingWidth=0)}}}const Ce=Math.floor(oe*ve),xe=Math.min(Ce,Math.max(0,Math.floor((le-ae-2)*ve/(ee+ve)))+MINIMAP_GUTTER_WIDTH);let ye=Math.floor(G*xe);const Ie=ye/G;ye=Math.floor(ye*we);const Ee=ie?1:2,Oe=se==="left"?0:H-xe-ae;return{renderMinimap:Ee,minimapLeft:Oe,minimapWidth:xe,minimapHeightIsEditorHeight:ge,minimapIsSampling:me,minimapScale:ne,minimapLineHeight:pe,minimapCanvasInnerWidth:ye,minimapCanvasInnerHeight:he,minimapCanvasOuterWidth:Ie,minimapCanvasOuterHeight:fe}}static computeLayout(C,W){const H=W.outerWidth|0,U=W.outerHeight|0,G=W.lineHeight|0,Z=W.lineNumbersDigitCount|0,X=W.typicalHalfwidthCharacterWidth,Q=W.maxDigitWidth,ee=W.pixelRatio,te=W.viewLineCount,ie=C.get(135),ne=ie==="inherit"?C.get(134):ie,oe=ne==="inherit"?C.get(130):ne,re=C.get(133),se=W.isDominatedByLongLines,ae=C.get(57),ce=C.get(67).renderType!==0,le=C.get(68),de=C.get(104),ue=C.get(83),he=C.get(72),fe=C.get(102),ge=fe.verticalScrollbarSize,me=fe.verticalHasArrows,pe=fe.arrowSize,ve=fe.horizontalScrollbarSize,we=C.get(43),Ce=C.get(109)!=="never";let xe=C.get(65);we&&Ce&&(xe+=16);let ye=0;if(ce){const rt=Math.max(Z,le);ye=Math.round(rt*Q)}let Ie=0;ae&&(Ie=G*W.glyphMarginDecorationLaneCount);let Ee=0,Oe=Ee+Ie,We=Oe+ye,Te=We+xe;const Ae=H-Ie-ye-xe;let Pe=!1,$e=!1,Re=-1;ne==="inherit"&&se?(Pe=!0,$e=!0):oe==="on"||oe==="bounded"?$e=!0:oe==="wordWrapColumn"&&(Re=re);const ze=EditorLayoutInfoComputer._computeMinimapLayout({outerWidth:H,outerHeight:U,lineHeight:G,typicalHalfwidthCharacterWidth:X,pixelRatio:ee,scrollBeyondLastLine:de,paddingTop:ue.top,paddingBottom:ue.bottom,minimap:he,verticalScrollbarWidth:ge,viewLineCount:te,remainingWidth:Ae,isViewportWrapping:$e},W.memory||new ComputeOptionsMemory);ze.renderMinimap!==0&&ze.minimapLeft===0&&(Ee+=ze.minimapWidth,Oe+=ze.minimapWidth,We+=ze.minimapWidth,Te+=ze.minimapWidth);const Je=Ae-ze.minimapWidth,Ke=Math.max(1,Math.floor((Je-ge-2)/X)),Xe=me?pe:0;return $e&&(Re=Math.max(1,Ke),oe==="bounded"&&(Re=Math.min(Re,re))),{width:H,height:U,glyphMarginLeft:Ee,glyphMarginWidth:Ie,glyphMarginDecorationLaneCount:W.glyphMarginDecorationLaneCount,lineNumbersLeft:Oe,lineNumbersWidth:ye,decorationsLeft:We,decorationsWidth:xe,contentLeft:Te,contentWidth:Je,minimap:ze,viewportColumn:Ke,isWordWrapMinified:Pe,isViewportWrapping:$e,wrappingColumn:Re,verticalScrollbarWidth:ge,horizontalScrollbarHeight:ve,overviewRuler:{top:Xe,width:ge,height:U-2*Xe,right:0}}}}class WrappingStrategy extends BaseEditorOption{constructor(){super(137,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[localize("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),localize("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:localize("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(C){return stringSet(C,"simple",["simple","advanced"])}compute(C,W,H){return W.get(2)===2?"advanced":H}}class EditorLightbulb extends BaseEditorOption{constructor(){const C={enabled:!0};super(64,"lightbulb",C,{"editor.lightbulb.enabled":{type:"boolean",default:C.enabled,description:localize("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(C){return!C||typeof C!="object"?this.defaultValue:{enabled:boolean(C.enabled,this.defaultValue.enabled)}}}class EditorStickyScroll extends BaseEditorOption{constructor(){const C={enabled:!1,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(114,"stickyScroll",C,{"editor.stickyScroll.enabled":{type:"boolean",default:C.enabled,description:localize("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:C.maxLineCount,minimum:1,maximum:10,description:localize("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:C.defaultModel,description:localize("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:C.scrollWithEditor,description:localize("editor.stickyScroll.scrollWithEditor","Enable scrolling of the sticky scroll widget with the editor's horizontal scrollbar.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),maxLineCount:EditorIntOption.clampedInt(W.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:stringSet(W.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:boolean(W.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class EditorInlayHints extends BaseEditorOption{constructor(){const C={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(139,"inlayHints",C,{"editor.inlayHints.enabled":{type:"string",default:C.enabled,description:localize("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[localize("editor.inlayHints.on","Inlay hints are enabled"),localize("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",isMacintosh?"Ctrl+Option":"Ctrl+Alt"),localize("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",isMacintosh?"Ctrl+Option":"Ctrl+Alt"),localize("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:C.fontSize,markdownDescription:localize("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:C.fontFamily,markdownDescription:localize("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:C.padding,description:localize("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return typeof W.enabled=="boolean"&&(W.enabled=W.enabled?"on":"off"),{enabled:stringSet(W.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:EditorIntOption.clampedInt(W.fontSize,this.defaultValue.fontSize,0,100),fontFamily:EditorStringOption.string(W.fontFamily,this.defaultValue.fontFamily),padding:boolean(W.padding,this.defaultValue.padding)}}}class EditorLineDecorationsWidth extends BaseEditorOption{constructor(){super(65,"lineDecorationsWidth",10)}validate(C){return typeof C=="string"&&/^\d+(\.\d+)?ch$/.test(C)?-parseFloat(C.substring(0,C.length-2)):EditorIntOption.clampedInt(C,this.defaultValue,0,1e3)}compute(C,W,H){return H<0?EditorIntOption.clampedInt(-H*C.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):H}}class EditorLineHeight extends EditorFloatOption{constructor(){super(66,"lineHeight",EDITOR_FONT_DEFAULTS.lineHeight,C=>EditorFloatOption.clamp(C,0,150),{markdownDescription:localize("lineHeight",`Controls the line height.
|
|
111
|
+
}`),document.body.contains(styleForPesudo)||document.body.appendChild(styleForPesudo)}me&&fe.appendChild(oe),TransitionEvents$1.addStartEventListener(fe,se),TransitionEvents$1.addEndEventListener(fe,ae)}},de=function(fe){if(!(!fe||fe===oe||!(fe instanceof Element))){var ge=C.insertExtraNode,me=ce();fe.setAttribute(me,"false"),styleForPesudo&&(styleForPesudo.innerHTML=""),ge&&oe&&fe.contains(oe)&&fe.removeChild(oe),TransitionEvents$1.removeStartEventListener(fe,se),TransitionEvents$1.removeEndEventListener(fe,ae)}},ue=function(fe){if(!(!fe||!fe.getAttribute||fe.getAttribute("disabled")||fe.className.indexOf("disabled")>=0)){var ge=function(pe){if(!(pe.target.tagName==="INPUT"||isHidden(pe.target))){de(fe);var ve=getComputedStyle(fe).getPropertyValue("border-top-color")||getComputedStyle(fe).getPropertyValue("border-color")||getComputedStyle(fe).getPropertyValue("background-color");te=setTimeout(function(){return le(fe,ve)},0),wrapperRaf.cancel(ie),ne=!0,ie=wrapperRaf(function(){ne=!1},10)}};return fe.addEventListener("click",ge,!0),{cancel:function(){fe.removeEventListener("click",ge,!0)}}}};return vue.onMounted(function(){vue.nextTick(function(){var he=findDOMNode(G);he.nodeType===1&&(ee=ue(he))})}),vue.onBeforeUnmount(function(){ee&&ee.cancel(),clearTimeout(te),re=!0}),function(){var he;return(he=H.default)===null||he===void 0?void 0:he.call(H)[0]}}});function convertLegacyProps(K){return K==="danger"?{danger:!0}:{type:K}}var buttonProps=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:PropTypes$1.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}};const buttonTypes=buttonProps;var getCollapsedWidth=function(C){C&&(C.style.width="0px",C.style.opacity="0",C.style.transform="scale(0)")},getRealWidth=function(C){vue.nextTick(function(){C&&(C.style.width="".concat(C.scrollWidth,"px"),C.style.opacity="1",C.style.transform="scale(1)")})},resetStyle=function(C){C&&C.style&&(C.style.width=null,C.style.opacity=null,C.style.transform=null)};const LoadingIcon=vue.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(C){return function(){var W=C.existIcon,H=C.prefixCls,U=C.loading;if(W)return vue.createVNode("span",{class:"".concat(H,"-loading-icon")},[vue.createVNode(LoadingOutlined$1,null,null)]);var G=!!U;return vue.createVNode(vue.Transition,{name:"".concat(H,"-loading-icon-motion"),onBeforeEnter:getCollapsedWidth,onEnter:getRealWidth,onAfterEnter:resetStyle,onBeforeLeave:getRealWidth,onLeave:function(X){setTimeout(function(){getCollapsedWidth(X)})},onAfterLeave:resetStyle},{default:function(){return[G?vue.createVNode("span",{class:"".concat(H,"-loading-icon")},[vue.createVNode(LoadingOutlined$1,null,null)]):null]}})}}});var rxTwoCNChar=/^[\u4e00-\u9fa5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function isUnborderedButtonType(K){return K==="text"||K==="link"}const Button$1=vue.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:initDefaultProps$1(buttonTypes(),{type:"default"}),slots:["icon"],setup:function(C,W){var H=W.slots,U=W.attrs,G=W.emit,Z=W.expose,X=useConfigInject("btn",C),Q=X.prefixCls,ee=X.autoInsertSpaceInButton,te=X.direction,ie=X.size,ne=vue.ref(null),oe=vue.ref(void 0),re=!1,se=vue.ref(!1),ae=vue.ref(!1),ce=vue.computed(function(){return ee.value!==!1}),le=vue.computed(function(){return _typeof$1(C.loading)==="object"&&C.loading.delay?C.loading.delay||!0:!!C.loading});vue.watch(le,function(pe){clearTimeout(oe.value),typeof le.value=="number"?oe.value=setTimeout(function(){se.value=pe},le.value):se.value=pe},{immediate:!0});var de=vue.computed(function(){var pe,ve=C.type,we=C.shape,Ce=we===void 0?"default":we,xe=C.ghost,ye=C.block,Ie=C.danger,Ee=Q.value,Oe={large:"lg",small:"sm",middle:void 0},We=ie.value,Te=We&&Oe[We]||"";return pe={},_defineProperty(pe,"".concat(Ee),!0),_defineProperty(pe,"".concat(Ee,"-").concat(ve),ve),_defineProperty(pe,"".concat(Ee,"-").concat(Ce),Ce!=="default"&&Ce),_defineProperty(pe,"".concat(Ee,"-").concat(Te),Te),_defineProperty(pe,"".concat(Ee,"-loading"),se.value),_defineProperty(pe,"".concat(Ee,"-background-ghost"),xe&&!isUnborderedButtonType(ve)),_defineProperty(pe,"".concat(Ee,"-two-chinese-chars"),ae.value&&ce.value),_defineProperty(pe,"".concat(Ee,"-block"),ye),_defineProperty(pe,"".concat(Ee,"-dangerous"),!!Ie),_defineProperty(pe,"".concat(Ee,"-rtl"),te.value==="rtl"),pe}),ue=function(){var ve=ne.value;if(!(!ve||ee.value===!1)){var we=ve.textContent;re&&isTwoCNChar(we)?ae.value||(ae.value=!0):ae.value&&(ae.value=!1)}},he=function(ve){if(se.value||C.disabled){ve.preventDefault();return}G("click",ve)},fe=function(ve,we){var Ce=we?" ":"";if(ve.type===vue.Text){var xe=ve.children.trim();return isTwoCNChar(xe)&&(xe=xe.split("").join(Ce)),vue.createVNode("span",null,[xe])}return ve};vue.watchEffect(function(){devWarning(!(C.ghost&&isUnborderedButtonType(C.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),vue.onMounted(ue),vue.onUpdated(ue),vue.onBeforeUnmount(function(){oe.value&&clearTimeout(oe.value)});var ge=function(){var ve;(ve=ne.value)===null||ve===void 0||ve.focus()},me=function(){var ve;(ve=ne.value)===null||ve===void 0||ve.blur()};return Z({focus:ge,blur:me}),function(){var pe,ve,we=C.icon,Ce=we===void 0?(pe=H.icon)===null||pe===void 0?void 0:pe.call(H):we,xe=flattenChildren((ve=H.default)===null||ve===void 0?void 0:ve.call(H));re=xe.length===1&&!Ce&&!isUnborderedButtonType(C.type);var ye=C.type,Ie=C.htmlType,Ee=C.disabled,Oe=C.href,We=C.title,Te=C.target,Ae=C.onMousedown,Pe=se.value?"loading":Ce,$e=_objectSpread2(_objectSpread2({},U),{},{title:We,disabled:Ee,class:[de.value,U.class,_defineProperty({},"".concat(Q.value,"-icon-only"),xe.length===0&&!!Pe)],onClick:he,onMousedown:Ae});Ee||delete $e.disabled;var Re=Ce&&!se.value?Ce:vue.createVNode(LoadingIcon,{existIcon:!!Ce,prefixCls:Q.value,loading:!!se.value},null),ze=xe.map(function(Ke){return fe(Ke,re&&ce.value)});if(Oe!==void 0)return vue.createVNode("a",_objectSpread2(_objectSpread2({},$e),{},{href:Oe,target:Te,ref:ne}),[Re,ze]);var Je=vue.createVNode("button",_objectSpread2(_objectSpread2({},$e),{},{ref:ne,type:Ie}),[Re,ze]);return isUnborderedButtonType(ye)?Je:vue.createVNode(Wave,{ref:"wave",disabled:!!se.value},{default:function(){return[Je]}})}}});function _defineProperties(K,C){for(var W=0;W<C.length;W++){var H=C[W];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(K,_toPropertyKey(H.key),H)}}function _createClass(K,C,W){return C&&_defineProperties(K.prototype,C),W&&_defineProperties(K,W),Object.defineProperty(K,"prototype",{writable:!1}),K}function _classCallCheck(K,C){if(!(K instanceof C))throw new TypeError("Cannot call a class as a function")}var UnreachableException=_createClass(function K(C){_classCallCheck(this,K),this.error=new Error("unreachable case: ".concat(JSON.stringify(C)))}),buttonGroupProps=function(){return{prefixCls:String,size:{type:String}}};const ButtonGroup=vue.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:buttonGroupProps(),setup:function(C,W){var H=W.slots,U=useConfigInject("btn-group",C),G=U.prefixCls,Z=U.direction,X=vue.computed(function(){var Q,ee=C.size,te="";switch(ee){case"large":te="lg";break;case"small":te="sm";break;case"middle":case void 0:break;default:console.warn(new UnreachableException(ee).error)}return Q={},_defineProperty(Q,"".concat(G.value),!0),_defineProperty(Q,"".concat(G.value,"-").concat(te),te),_defineProperty(Q,"".concat(G.value,"-rtl"),Z.value==="rtl"),Q});return function(){var Q;return vue.createVNode("div",{class:X.value},[flattenChildren((Q=H.default)===null||Q===void 0?void 0:Q.call(H))])}}});Button$1.Group=ButtonGroup,Button$1.install=function(K){return K.component(Button$1.name,Button$1),K.component(ButtonGroup.name,ButtonGroup),K};var defineProperty=function(){try{var K=getNative(Object,"defineProperty");return K({},"",{}),K}catch{}}();const defineProperty$1=defineProperty;function baseAssignValue(K,C,W){C=="__proto__"&&defineProperty$1?defineProperty$1(K,C,{configurable:!0,enumerable:!0,value:W,writable:!0}):K[C]=W}var objectProto$2=Object.prototype,hasOwnProperty$5=objectProto$2.hasOwnProperty;function assignValue(K,C,W){var H=K[C];(!(hasOwnProperty$5.call(K,C)&&eq(H,W))||W===void 0&&!(C in K))&&baseAssignValue(K,C,W)}var canUseDocElement=function(){return canUseDom()&&window.document.documentElement};function arrayEach(K,C){for(var W=-1,H=K==null?0:K.length;++W<H&&C(K[W],W,K)!==!1;);return K}function copyObject(K,C,W,H){var U=!W;W||(W={});for(var G=-1,Z=C.length;++G<Z;){var X=C[G],Q=H?H(W[X],K[X],X,W,K):void 0;Q===void 0&&(Q=K[X]),U?baseAssignValue(W,X,Q):assignValue(W,X,Q)}return W}function baseAssign(K,C){return K&©Object(C,keys(C),K)}function nativeKeysIn(K){var C=[];if(K!=null)for(var W in Object(K))C.push(W);return C}var objectProto$1=Object.prototype,hasOwnProperty$4=objectProto$1.hasOwnProperty;function baseKeysIn(K){if(!isObject$2(K))return nativeKeysIn(K);var C=isPrototype(K),W=[];for(var H in K)H=="constructor"&&(C||!hasOwnProperty$4.call(K,H))||W.push(H);return W}function keysIn(K){return isArrayLike(K)?arrayLikeKeys(K,!0):baseKeysIn(K)}function baseAssignIn(K,C){return K&©Object(C,keysIn(C),K)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(K,C){if(C)return K.slice();var W=K.length,H=allocUnsafe?allocUnsafe(W):new K.constructor(W);return K.copy(H),H}function copyArray(K,C){var W=-1,H=K.length;for(C||(C=Array(H));++W<H;)C[W]=K[W];return C}function copySymbols(K,C){return copyObject(K,getSymbols$1(K),C)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(K){for(var C=[];K;)arrayPush$1(C,getSymbols$1(K)),K=getPrototype$1(K);return C}:stubArray;const getSymbolsIn$1=getSymbolsIn;function copySymbolsIn(K,C){return copyObject(K,getSymbolsIn$1(K),C)}function getAllKeysIn(K){return baseGetAllKeys(K,keysIn,getSymbolsIn$1)}var objectProto=Object.prototype,hasOwnProperty$3=objectProto.hasOwnProperty;function initCloneArray(K){var C=K.length,W=new K.constructor(C);return C&&typeof K[0]=="string"&&hasOwnProperty$3.call(K,"index")&&(W.index=K.index,W.input=K.input),W}function cloneArrayBuffer(K){var C=new K.constructor(K.byteLength);return new Uint8Array$2(C).set(new Uint8Array$2(K)),C}function cloneDataView(K,C){var W=C?cloneArrayBuffer(K.buffer):K.buffer;return new K.constructor(W,K.byteOffset,K.byteLength)}var reFlags=/\w*$/;function cloneRegExp(K){var C=new K.constructor(K.source,reFlags.exec(K));return C.lastIndex=K.lastIndex,C}var symbolProto=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function cloneSymbol(K){return symbolValueOf?Object(symbolValueOf.call(K)):{}}function cloneTypedArray(K,C){var W=C?cloneArrayBuffer(K.buffer):K.buffer;return new K.constructor(W,K.byteOffset,K.length)}var boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$2="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(K,C,W){var H=K.constructor;switch(C){case arrayBufferTag$1:return cloneArrayBuffer(K);case boolTag$1:case dateTag$1:return new H(+K);case dataViewTag$1:return cloneDataView(K,W);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(K,W);case mapTag$2:return new H;case numberTag$1:case stringTag$2:return new H(K);case regexpTag$1:return cloneRegExp(K);case setTag$2:return new H;case symbolTag$1:return cloneSymbol(K)}}var objectCreate=Object.create,baseCreate=function(){function K(){}return function(C){if(!isObject$2(C))return{};if(objectCreate)return objectCreate(C);K.prototype=C;var W=new K;return K.prototype=void 0,W}}();const baseCreate$1=baseCreate;function initCloneObject(K){return typeof K.constructor=="function"&&!isPrototype(K)?baseCreate$1(getPrototype$1(K)):{}}var mapTag$1="[object Map]";function baseIsMap(K){return isObjectLike(K)&&getTag$1(K)==mapTag$1}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;const isMap$1=isMap;var setTag$1="[object Set]";function baseIsSet(K){return isObjectLike(K)&&getTag$1(K)==setTag$1}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;const isSet$1=isSet;var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag$1]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(K,C,W,H,U,G){var Z,X=C&CLONE_DEEP_FLAG$1,Q=C&CLONE_FLAT_FLAG,ee=C&CLONE_SYMBOLS_FLAG$1;if(W&&(Z=U?W(K,H,U,G):W(K)),Z!==void 0)return Z;if(!isObject$2(K))return K;var te=isArray$2(K);if(te){if(Z=initCloneArray(K),!X)return copyArray(K,Z)}else{var ie=getTag$1(K),ne=ie==funcTag||ie==genTag;if(isBuffer$2(K))return cloneBuffer(K,X);if(ie==objectTag||ie==argsTag||ne&&!U){if(Z=Q||ne?{}:initCloneObject(K),!X)return Q?copySymbolsIn(K,baseAssignIn(Z,K)):copySymbols(K,baseAssign(Z,K))}else{if(!cloneableTags[ie])return U?K:{};Z=initCloneByTag(K,ie,X)}}G||(G=new Stack$1);var oe=G.get(K);if(oe)return oe;G.set(K,Z),isSet$1(K)?K.forEach(function(ae){Z.add(baseClone(ae,C,W,ae,K,G))}):isMap$1(K)&&K.forEach(function(ae,ce){Z.set(ce,baseClone(ae,C,W,ce,K,G))});var re=ee?Q?getAllKeysIn:getAllKeys:Q?keysIn:keys,se=te?void 0:re(K);return arrayEach(se||K,function(ae,ce){se&&(ce=ae,ae=K[ce]),assignValue(Z,ce,baseClone(ae,C,W,ce,K,G))}),Z}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(K){return baseClone(K,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cached;function getScrollBarSize(K){if(typeof document>"u")return 0;if(K||cached===void 0){var C=document.createElement("div");C.style.width="100%",C.style.height="200px";var W=document.createElement("div"),H=W.style;H.position="absolute",H.top="0",H.left="0",H.pointerEvents="none",H.visibility="hidden",H.width="200px",H.height="150px",H.overflow="hidden",W.appendChild(C),document.body.appendChild(W);var U=C.offsetWidth;W.style.overflow="scroll";var G=C.offsetWidth;U===G&&(G=W.clientWidth),document.body.removeChild(W),cached=U-G}return cached}function setStyle(K){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=C.element,H=W===void 0?document.body:W,U={},G=Object.keys(K);return G.forEach(function(Z){U[Z]=H.style[Z]}),G.forEach(function(Z){H.style[Z]=K[Z]}),U}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cacheStyle$1={};const switchScrollingEffect=function(K){if(!(!isBodyOverflowing()&&!K)){var C="ant-scrolling-effect",W=new RegExp("".concat(C),"g"),H=document.body.className;if(K){if(!W.test(H))return;setStyle(cacheStyle$1),cacheStyle$1={},document.body.className=H.replace(W,"").trim();return}var U=getScrollBarSize();if(U&&(cacheStyle$1=setStyle({position:"relative",width:"calc(100% - ".concat(U,"px)")}),!W.test(H))){var G="".concat(H," ").concat(C);document.body.className=G.trim()}}};var locks=[],scrollingEffectClassName="ant-scrolling-effect",scrollingEffectClassNameReg=new RegExp("".concat(scrollingEffectClassName),"g"),uuid$1=0,cacheStyle=new Map,ScrollLocker=_createClass(function K(C){var W=this;_classCallCheck(this,K),_defineProperty(this,"getContainer",function(){var H;return(H=W.options)===null||H===void 0?void 0:H.container}),_defineProperty(this,"reLock",function(H){var U=locks.find(function(G){var Z=G.target;return Z===W.lockTarget});U&&W.unLock(),W.options=H,U&&(U.options=H,W.lock())}),_defineProperty(this,"lock",function(){var H;if(!locks.some(function(Q){var ee=Q.target;return ee===W.lockTarget})){if(locks.some(function(Q){var ee,te=Q.options;return(te==null?void 0:te.container)===((ee=W.options)===null||ee===void 0?void 0:ee.container)})){locks=[].concat(_toConsumableArray(locks),[{target:W.lockTarget,options:W.options}]);return}var U=0,G=((H=W.options)===null||H===void 0?void 0:H.container)||document.body;(G===document.body&&window.innerWidth-document.documentElement.clientWidth>0||G.scrollHeight>G.clientHeight)&&(U=getScrollBarSize());var Z=G.className;if(locks.filter(function(Q){var ee,te=Q.options;return(te==null?void 0:te.container)===((ee=W.options)===null||ee===void 0?void 0:ee.container)}).length===0&&cacheStyle.set(G,setStyle({width:U!==0?"calc(100% - ".concat(U,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:G})),!scrollingEffectClassNameReg.test(Z)){var X="".concat(Z," ").concat(scrollingEffectClassName);G.className=X.trim()}locks=[].concat(_toConsumableArray(locks),[{target:W.lockTarget,options:W.options}])}}),_defineProperty(this,"unLock",function(){var H,U=locks.find(function(X){var Q=X.target;return Q===W.lockTarget});if(locks=locks.filter(function(X){var Q=X.target;return Q!==W.lockTarget}),!(!U||locks.some(function(X){var Q,ee=X.options;return(ee==null?void 0:ee.container)===((Q=U.options)===null||Q===void 0?void 0:Q.container)}))){var G=((H=W.options)===null||H===void 0?void 0:H.container)||document.body,Z=G.className;scrollingEffectClassNameReg.test(Z)&&(setStyle(cacheStyle.get(G),{element:G}),cacheStyle.delete(G),G.className=G.className.replace(scrollingEffectClassNameReg,"").trim())}}),this.lockTarget=uuid$1++,this.options=C}),openCount=0,supportDom=canUseDom(),cacheOverflow={},getParent=function(C){if(!supportDom)return null;if(C){if(typeof C=="string")return document.querySelectorAll(C)[0];if(typeof C=="function")return C();if(_typeof$1(C)==="object"&&C instanceof window.HTMLElement)return C}return document.body};const Portal=vue.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:PropTypes$1.any,visible:{type:Boolean,default:void 0}},setup:function(C,W){var H=W.slots,U=vue.ref(),G=vue.ref(),Z=vue.ref(),X=new ScrollLocker({container:getParent(C.getContainer)}),Q=function(){var se,ae;(se=U.value)===null||se===void 0||(ae=se.parentNode)===null||ae===void 0||ae.removeChild(U.value)},ee=function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(se||U.value&&!U.value.parentNode){var ae=getParent(C.getContainer);return ae?(ae.appendChild(U.value),!0):!1}return!0},te=function(){return supportDom?(U.value||(U.value=document.createElement("div"),ee(!0)),ie(),U.value):null},ie=function(){var se=C.wrapperClassName;U.value&&se&&se!==U.value.className&&(U.value.className=se)};vue.onUpdated(function(){ie(),ee()});var ne=function(){openCount===1&&!Object.keys(cacheOverflow).length?(switchScrollingEffect(),cacheOverflow=setStyle({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"})):openCount||(setStyle(cacheOverflow),cacheOverflow={},switchScrollingEffect(!0))},oe=vue.getCurrentInstance();return vue.onMounted(function(){var re=!1;vue.watch([function(){return C.visible},function(){return C.getContainer}],function(se,ae){var ce=_slicedToArray(se,2),le=ce[0],de=ce[1],ue=_slicedToArray(ae,2),he=ue[0],fe=ue[1];if(supportDom&&getParent(C.getContainer)===document.body&&(le&&!he?openCount+=1:re&&(openCount-=1)),re){var ge=typeof de=="function"&&typeof fe=="function";(ge?de.toString()!==fe.toString():de!==fe)&&Q(),le&&le!==he&&supportDom&&getParent(de)!==X.getContainer()&&X.reLock({container:getParent(de)})}re=!0},{immediate:!0,flush:"post"}),vue.nextTick(function(){ee()||(Z.value=wrapperRaf(function(){oe.update()}))})}),vue.onBeforeUnmount(function(){var re=C.visible,se=C.getContainer;supportDom&&getParent(se)===document.body&&(openCount=re&&openCount?openCount-1:openCount),Q(),wrapperRaf.cancel(Z.value)}),function(){var re=C.forceRender,se=C.visible,ae=null,ce={getOpenCount:function(){return openCount},getContainer:te,switchScrollingEffect:ne,scrollLocker:X};return(re||se||G.value)&&(ae=vue.createVNode(Portal$1,{getContainer:te,ref:G},{default:function(){var de;return(de=H.default)===null||de===void 0?void 0:de.call(H,ce)}})),ae}}});function dialogPropTypes(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:PropTypes$1.shape({x:Number,y:Number}).loose,title:PropTypes$1.any,footer:PropTypes$1.any,transitionName:String,maskTransitionName:String,animation:PropTypes$1.any,maskAnimation:PropTypes$1.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:PropTypes$1.any,maskProps:PropTypes$1.any,wrapProps:PropTypes$1.any,getContainer:PropTypes$1.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:PropTypes$1.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function getMotionName(K,C,W){var H=C;return!H&&W&&(H="".concat(K,"-").concat(W)),H}var uuid=-1;function getUUID(){return uuid+=1,uuid}function getScroll(K,C){var W=K["page".concat(C?"Y":"X","Offset")],H="scroll".concat(C?"Top":"Left");if(typeof W!="number"){var U=K.document;W=U.documentElement[H],typeof W!="number"&&(W=U.body[H])}return W}function offset(K){var C=K.getBoundingClientRect(),W={left:C.left,top:C.top},H=K.ownerDocument,U=H.defaultView||H.parentWindow;return W.left+=getScroll(U),W.top+=getScroll(U,!0),W}var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none"};const Content=vue.defineComponent({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:_objectSpread2(_objectSpread2({},dialogPropTypes()),{},{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup:function(C,W){var H=W.expose,U=W.slots,G=W.attrs,Z=vue.ref(),X=vue.ref(),Q=vue.ref();H({focus:function(){var re;(re=Z.value)===null||re===void 0||re.focus()},changeActive:function(re){var se=document,ae=se.activeElement;re&&ae===X.value?Z.value.focus():!re&&ae===Z.value&&X.value.focus()}});var ee=vue.ref(),te=vue.computed(function(){var oe=C.width,re=C.height,se={};return oe!==void 0&&(se.width=typeof oe=="number"?"".concat(oe,"px"):oe),re!==void 0&&(se.height=typeof re=="number"?"".concat(re,"px"):re),ee.value&&(se.transformOrigin=ee.value),se}),ie=function(){vue.nextTick(function(){if(Q.value){var re=offset(Q.value);ee.value=C.mousePosition?"".concat(C.mousePosition.x-re.left,"px ").concat(C.mousePosition.y-re.top,"px"):""}})},ne=function(re){C.onVisibleChanged(re)};return function(){var oe,re,se,ae,ce=C.prefixCls,le=C.footer,de=le===void 0?(oe=U.footer)===null||oe===void 0?void 0:oe.call(U):le,ue=C.title,he=ue===void 0?(re=U.title)===null||re===void 0?void 0:re.call(U):ue,fe=C.ariaId,ge=C.closable,me=C.closeIcon,pe=me===void 0?(se=U.closeIcon)===null||se===void 0?void 0:se.call(U):me,ve=C.onClose,we=C.bodyStyle,Ce=C.bodyProps,xe=C.onMousedown,ye=C.onMouseup,Ie=C.visible,Ee=C.modalRender,Oe=Ee===void 0?U.modalRender:Ee,We=C.destroyOnClose,Te=C.motionName,Ae;de&&(Ae=vue.createVNode("div",{class:"".concat(ce,"-footer")},[de]));var Pe;he&&(Pe=vue.createVNode("div",{class:"".concat(ce,"-header")},[vue.createVNode("div",{class:"".concat(ce,"-title"),id:fe},[he])]));var $e;ge&&($e=vue.createVNode("button",{type:"button",onClick:ve,"aria-label":"Close",class:"".concat(ce,"-close")},[pe||vue.createVNode("span",{class:"".concat(ce,"-close-x")},null)]));var Re=vue.createVNode("div",{class:"".concat(ce,"-content")},[$e,Pe,vue.createVNode("div",_objectSpread2({class:"".concat(ce,"-body"),style:we},Ce),[(ae=U.default)===null||ae===void 0?void 0:ae.call(U)]),Ae]),ze=getTransitionProps(Te);return vue.createVNode(vue.Transition,_objectSpread2(_objectSpread2({},ze),{},{onBeforeEnter:ie,onAfterEnter:function(){return ne(!0)},onAfterLeave:function(){return ne(!1)}}),{default:function(){return[Ie||!We?vue.withDirectives(vue.createVNode("div",_objectSpread2(_objectSpread2({},G),{},{ref:Q,key:"dialog-element",role:"document",style:[te.value,G.style],class:[ce,G.class],onMousedown:xe,onMouseup:ye}),[vue.createVNode("div",{tabindex:0,ref:Z,style:sentinelStyle,"aria-hidden":"true"},null),Oe?Oe({originVNode:Re}):Re,vue.createVNode("div",{tabindex:0,ref:X,style:sentinelStyle,"aria-hidden":"true"},null)]),[[vue.vShow,Ie]]):null]}})}}});function _objectDestructuringEmpty(K){if(K==null)throw new TypeError("Cannot destructure "+K)}const Mask=vue.defineComponent({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:function(C,W){return _objectDestructuringEmpty(W),function(){var H=C.prefixCls,U=C.visible,G=C.maskProps,Z=C.motionName,X=getTransitionProps(Z);return vue.createVNode(vue.Transition,X,{default:function(){return[vue.withDirectives(vue.createVNode("div",_objectSpread2({class:"".concat(H,"-mask")},G),null),[[vue.vShow,U]])]}})}}}),Dialog=vue.defineComponent({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:initDefaultProps$1(_objectSpread2(_objectSpread2({},dialogPropTypes()),{},{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),setup:function(C,W){var H=W.attrs,U=W.slots,G=vue.ref(),Z=vue.ref(),X=vue.ref(),Q=vue.ref(C.visible),ee=vue.ref("vcDialogTitle".concat(getUUID())),te=function(de){if(de){if(!contains(Z.value,document.activeElement)){var ue;G.value=document.activeElement,(ue=X.value)===null||ue===void 0||ue.focus()}}else{var he=Q.value;if(Q.value=!1,C.mask&&G.value&&C.focusTriggerAfterClose){try{G.value.focus({preventScroll:!0})}catch{}G.value=null}if(he){var fe;(fe=C.afterClose)===null||fe===void 0||fe.call(C)}}},ie=function(de){var ue;(ue=C.onClose)===null||ue===void 0||ue.call(C,de)},ne=vue.ref(!1),oe=vue.ref(),re=function(){clearTimeout(oe.value),ne.value=!0},se=function(){oe.value=setTimeout(function(){ne.value=!1})},ae=function(de){if(!C.maskClosable)return null;ne.value?ne.value=!1:Z.value===de.target&&ie(de)},ce=function(de){if(C.keyboard&&de.keyCode===KeyCode$3.ESC){de.stopPropagation(),ie(de);return}C.visible&&de.keyCode===KeyCode$3.TAB&&X.value.changeActive(!de.shiftKey)};return vue.watch(function(){return C.visible},function(){C.visible&&(Q.value=!0)},{flush:"post"}),vue.onBeforeUnmount(function(){var le;clearTimeout(oe.value),(le=C.scrollLocker)===null||le===void 0||le.unLock()}),vue.watchEffect(function(){var le;if((le=C.scrollLocker)===null||le===void 0||le.unLock(),Q.value){var de;(de=C.scrollLocker)===null||de===void 0||de.lock()}}),function(){var le=C.prefixCls,de=C.mask,ue=C.visible,he=C.maskTransitionName,fe=C.maskAnimation,ge=C.zIndex,me=C.wrapClassName,pe=C.rootClassName,ve=C.wrapStyle,we=C.closable,Ce=C.maskProps,xe=C.maskStyle,ye=C.transitionName,Ie=C.animation,Ee=C.wrapProps,Oe=C.title,We=Oe===void 0?U.title:Oe,Te=H.style,Ae=H.class;return vue.createVNode("div",_objectSpread2({class:["".concat(le,"-root"),pe]},pickAttrs(C,{data:!0})),[vue.createVNode(Mask,{prefixCls:le,visible:de&&ue,motionName:getMotionName(le,he,fe),style:_objectSpread2({zIndex:ge},xe),maskProps:Ce},null),vue.createVNode("div",_objectSpread2({tabIndex:-1,onKeydown:ce,class:classNames("".concat(le,"-wrap"),me),ref:Z,onClick:ae,role:"dialog","aria-labelledby":We?ee.value:null,style:_objectSpread2(_objectSpread2({zIndex:ge},ve),{},{display:Q.value?null:"none"})},Ee),[vue.createVNode(Content,_objectSpread2(_objectSpread2({},omit(C,["scrollLocker"])),{},{style:Te,class:Ae,onMousedown:re,onMouseup:se,ref:X,closable:we,ariaId:ee.value,prefixCls:le,visible:ue,onClose:ie,onVisibleChanged:te,motionName:getMotionName(le,ye,Ie)}),U)])])}}});var IDialogPropTypes=dialogPropTypes(),DialogWrap=vue.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:initDefaultProps$1(IDialogPropTypes,{visible:!1}),setup:function(C,W){var H=W.attrs,U=W.slots,G=vue.ref(C.visible);return useProvidePortal({},{inTriggerContext:!1}),vue.watch(function(){return C.visible},function(){C.visible&&(G.value=!0)},{flush:"post"}),function(){var Z=C.visible,X=C.getContainer,Q=C.forceRender,ee=C.destroyOnClose,te=ee===void 0?!1:ee,ie=C.afterClose,ne=_objectSpread2(_objectSpread2(_objectSpread2({},C),H),{},{ref:"_component",key:"dialog"});return X===!1?vue.createVNode(Dialog,_objectSpread2(_objectSpread2({},ne),{},{getOpenCount:function(){return 2}}),U):!Q&&te&&!G.value?null:vue.createVNode(Portal,{visible:Z,forceRender:Q,getContainer:X},{default:function(re){return ne=_objectSpread2(_objectSpread2(_objectSpread2({},ne),re),{},{afterClose:function(){ie==null||ie(),G.value=!1}}),vue.createVNode(Dialog,ne,U)}})}}});const DialogWrap$1=DialogWrap;var _excluded=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],mousePosition=null,getClickPosition=function(C){mousePosition={x:C.pageX,y:C.pageY},setTimeout(function(){return mousePosition=null},100)};canUseDocElement()&&addEventListenerWrap(document.documentElement,"click",getClickPosition,!0);var modalProps=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:PropTypes$1.any,closable:{type:Boolean,default:void 0},closeIcon:PropTypes$1.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:PropTypes$1.any,okText:PropTypes$1.any,okType:String,cancelText:PropTypes$1.any,icon:PropTypes$1.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},destroyFns=[];const Modal=vue.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:initDefaultProps$1(modalProps(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(C,W){var H=W.emit,U=W.slots,G=W.attrs,Z=useLocaleReceiver("Modal"),X=_slicedToArray(Z,1),Q=X[0],ee=useConfigInject("modal",C),te=ee.prefixCls,ie=ee.rootPrefixCls,ne=ee.direction,oe=ee.getPopupContainer,re=function(le){H("update:visible",!1),H("cancel",le),H("change",!1)},se=function(le){H("ok",le)},ae=function(){var le,de,ue=C.okText,he=ue===void 0?(le=U.okText)===null||le===void 0?void 0:le.call(U):ue,fe=C.okType,ge=C.cancelText,me=ge===void 0?(de=U.cancelText)===null||de===void 0?void 0:de.call(U):ge,pe=C.confirmLoading;return vue.createVNode(vue.Fragment,null,[vue.createVNode(Button$1,_objectSpread2({onClick:re},C.cancelButtonProps),{default:function(){return[me||Q.value.cancelText]}}),vue.createVNode(Button$1,_objectSpread2(_objectSpread2({},convertLegacyProps(fe)),{},{loading:pe,onClick:se},C.okButtonProps),{default:function(){return[he||Q.value.okText]}})])};return function(){var ce,le;C.prefixCls;var de=C.visible,ue=C.wrapClassName,he=C.centered,fe=C.getContainer,ge=C.closeIcon,me=ge===void 0?(ce=U.closeIcon)===null||ce===void 0?void 0:ce.call(U):ge,pe=C.focusTriggerAfterClose,ve=pe===void 0?!0:pe,we=_objectWithoutProperties(C,_excluded),Ce=classNames(ue,(le={},_defineProperty(le,"".concat(te.value,"-centered"),!!he),_defineProperty(le,"".concat(te.value,"-wrap-rtl"),ne.value==="rtl"),le));return vue.createVNode(DialogWrap$1,_objectSpread2(_objectSpread2(_objectSpread2({},we),G),{},{getContainer:fe||oe.value,prefixCls:te.value,wrapClassName:Ce,visible:de,mousePosition,onClose:re,focusTriggerAfterClose:ve,transitionName:getTransitionName(ie.value,"zoom",C.transitionName),maskTransitionName:getTransitionName(ie.value,"fade",C.maskTransitionName)}),_objectSpread2(_objectSpread2({},U),{},{footer:U.footer||ae,closeIcon:function(){return vue.createVNode("span",{class:"".concat(te.value,"-close-x")},[me||vue.createVNode(CloseOutlined$1,{class:"".concat(te.value,"-close-icon")},null)])}}))}}});var useDestroyed=function(){var C=vue.ref(!1);return vue.onBeforeUnmount(function(){C.value=!0}),C};const useDestroyed$1=useDestroyed;var actionButtonProps={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function isThenable$3(K){return!!(K&&K.then)}const ActionButton=vue.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:actionButtonProps,setup:function(C,W){var H=W.slots,U=vue.ref(!1),G=vue.ref(),Z=vue.ref(!1),X,Q=useDestroyed$1();vue.onMounted(function(){C.autofocus&&(X=setTimeout(function(){var ie;return(ie=G.value.$el)===null||ie===void 0?void 0:ie.focus()}))}),vue.onBeforeUnmount(function(){clearTimeout(X)});var ee=function(ne){var oe=C.close;isThenable$3(ne)&&(Z.value=!0,ne.then(function(){Q.value||(Z.value=!1),oe.apply(void 0,arguments),U.value=!1},function(re){console.error(re),Q.value||(Z.value=!1),U.value=!1}))},te=function(ne){var oe=C.actionFn,re=C.close,se=re===void 0?function(){}:re;if(!U.value){if(U.value=!0,!oe){se();return}var ae;if(C.emitEvent){if(ae=oe(ne),C.quitOnNullishReturnValue&&!isThenable$3(ae)){U.value=!1,se(ne);return}}else if(oe.length)ae=oe(se),U.value=!1;else if(ae=oe(),!ae){se();return}ee(ae)}};return function(){var ie=C.type,ne=C.prefixCls,oe=C.buttonProps;return vue.createVNode(Button$1,_objectSpread2(_objectSpread2(_objectSpread2({},convertLegacyProps(ie)),{},{onClick:te,loading:Z.value,prefixCls:ne},oe),{},{ref:G}),H)}}});function renderSomeContent(K){return typeof K=="function"?K():K}const ConfirmDialog=vue.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(C,W){var H=W.attrs,U=useLocaleReceiver("Modal"),G=_slicedToArray(U,1),Z=G[0];return function(){var X=C.icon,Q=C.onCancel,ee=C.onOk,te=C.close,ie=C.closable,ne=ie===void 0?!1:ie,oe=C.zIndex,re=C.afterClose,se=C.visible,ae=C.keyboard,ce=C.centered,le=C.getContainer,de=C.maskStyle,ue=C.okButtonProps,he=C.cancelButtonProps,fe=C.okCancel,ge=fe===void 0?!0:fe,me=C.width,pe=me===void 0?416:me,ve=C.mask,we=ve===void 0?!0:ve,Ce=C.maskClosable,xe=Ce===void 0?!1:Ce,ye=C.type,Ie=C.title,Ee=C.content,Oe=C.direction,We=C.closeIcon,Te=C.modalRender,Ae=C.focusTriggerAfterClose,Pe=C.rootPrefixCls,$e=C.bodyStyle,Re=C.wrapClassName,ze=C.okType||"primary",Je=C.prefixCls||"ant-modal",Ke="".concat(Je,"-confirm"),Xe=H.style||{},rt=renderSomeContent(C.okText)||(ge?Z.value.okText:Z.value.justOkText),ht=renderSomeContent(C.cancelText)||Z.value.cancelText,at=C.autoFocusButton===null?!1:C.autoFocusButton||"ok",Ze=classNames(Ke,"".concat(Ke,"-").concat(ye),"".concat(Je,"-").concat(ye),_defineProperty({},"".concat(Ke,"-rtl"),Oe==="rtl"),H.class),_t=ge&&vue.createVNode(ActionButton,{actionFn:Q,close:te,autofocus:at==="cancel",buttonProps:he,prefixCls:"".concat(Pe,"-btn")},{default:function(){return[ht]}});return vue.createVNode(Modal,{prefixCls:Je,class:Ze,wrapClassName:classNames(_defineProperty({},"".concat(Ke,"-centered"),!!ce),Re),onCancel:function(bt){return te({triggerCancel:!0},bt)},visible:se,title:"",footer:"",transitionName:getTransitionName(Pe,"zoom",C.transitionName),maskTransitionName:getTransitionName(Pe,"fade",C.maskTransitionName),mask:we,maskClosable:xe,maskStyle:de,style:Xe,bodyStyle:$e,width:pe,zIndex:oe,afterClose:re,keyboard:ae,centered:ce,getContainer:le,closable:ne,closeIcon:We,modalRender:Te,focusTriggerAfterClose:Ae},{default:function(){return[vue.createVNode("div",{class:"".concat(Ke,"-body-wrapper")},[vue.createVNode("div",{class:"".concat(Ke,"-body")},[renderSomeContent(X),Ie===void 0?null:vue.createVNode("span",{class:"".concat(Ke,"-title")},[renderSomeContent(Ie)]),vue.createVNode("div",{class:"".concat(Ke,"-content")},[renderSomeContent(Ee)])]),vue.createVNode("div",{class:"".concat(Ke,"-btns")},[_t,vue.createVNode(ActionButton,{type:ze,actionFn:ee,close:te,autofocus:at==="ok",buttonProps:ue,prefixCls:"".concat(Pe,"-btn")},{default:function(){return[rt]}})])])]}})}}});var confirm=function(C){var W=document.createDocumentFragment(),H=_objectSpread2(_objectSpread2({},omit(C,["parentContext","appContext"])),{},{close:Z,visible:!0}),U=null;function G(){U&&(vue.render(null,W),U.component.update(),U=null);for(var te=arguments.length,ie=new Array(te),ne=0;ne<te;ne++)ie[ne]=arguments[ne];var oe=ie.some(function(ae){return ae&&ae.triggerCancel});C.onCancel&&oe&&C.onCancel.apply(C,ie);for(var re=0;re<destroyFns.length;re++){var se=destroyFns[re];if(se===Z){destroyFns.splice(re,1);break}}}function Z(){for(var te=this,ie=arguments.length,ne=new Array(ie),oe=0;oe<ie;oe++)ne[oe]=arguments[oe];H=_objectSpread2(_objectSpread2({},H),{},{visible:!1,afterClose:function(){typeof C.afterClose=="function"&&C.afterClose(),G.apply(te,ne)}}),X(H)}function X(te){typeof te=="function"?H=te(H):H=_objectSpread2(_objectSpread2({},H),te),U&&(_extends(U.component.props,H),U.component.update())}var Q=function(ie){var ne=globalConfigForApi,oe=ne.prefixCls,re=ie.prefixCls||"".concat(oe,"-modal");return vue.createVNode(ConfigProvider,_objectSpread2(_objectSpread2({},ne),{},{notUpdateGlobalConfig:!0,prefixCls:oe}),{default:function(){return[vue.createVNode(ConfirmDialog,_objectSpread2(_objectSpread2({},ie),{},{rootPrefixCls:oe,prefixCls:re}),null)]}})};function ee(te){var ie=vue.createVNode(Q,_objectSpread2({},te));return ie.appContext=C.parentContext||C.appContext||ie.appContext,vue.render(ie,W),ie}return U=ee(H),destroyFns.push(Z),{destroy:Z,update:X}};const confirm$1=confirm;function withWarn(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(ExclamationCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"warning"})}function withInfo(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(InfoCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"info"})}function withSuccess(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(CheckCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"success"})}function withError(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(CloseCircleOutlined$1,null,null)},okCancel:!1},K),{},{type:"error"})}function withConfirm(K){return _objectSpread2(_objectSpread2({icon:function(){return vue.createVNode(ExclamationCircleOutlined$1,null,null)},okCancel:!0},K),{},{type:"confirm"})}function modalWarn(K){return confirm$1(withWarn(K))}Modal.info=function(C){return confirm$1(withInfo(C))},Modal.success=function(C){return confirm$1(withSuccess(C))},Modal.error=function(C){return confirm$1(withError(C))},Modal.warning=modalWarn,Modal.warn=modalWarn,Modal.confirm=function(C){return confirm$1(withConfirm(C))},Modal.destroyAll=function(){for(;destroyFns.length;){var C=destroyFns.pop();C&&C()}},Modal.install=function(K){return K.component(Modal.name,Modal),K};const _hoisted_1$d={class:"move"},_hoisted_2$9={key:0,class:"widget-view-drag"},_hoisted_3$7=["onMousedown"],_hoisted_4$5={key:0,class:"item-action"},_hoisted_5$5={key:0,class:"item-action"},_sfc_main$k=vue.defineComponent({__name:"FormGrid",props:{data:{type:Object,default:null},activeIndex:{type:String,default:""},index:{type:String,default:""}},emits:["childConfig","index"],setup(K,{emit:C}){const W=K,H=useFormStore(),{formData:U}=H,G=vue.ref("-1");vue.watch(()=>W.activeIndex,(ne,oe)=>{G.value=ne});function Z(ne,oe,re){G.value=oe,C("childConfig",ne),C("index",G.value),re.stopPropagation(),re.preventDefault()}function X(){debugger;G.value="-1",console.log("开始拖拽")}function Q(ne,oe){debugger;ne.to.className=="widget-col-list"?G.value=W.index+"-"+oe+"-"+ne.newIndex:G.value=ne.newIndex,C("index",G.value)}function ee(ne){const oe=JSON.parse(JSON.stringify(ne)),re=Number.parseInt(W.index);U.list[re].columns.push(oe)}function te(ne){let oe=W.data.columns.indexOf(ne);W.data.columns.splice(oe,1)}function ie(){if(W.data.columns.length>0)Modal.confirm({title:"确定要删除该栅格布局吗?",content:"如果该布局存在表单,将会一并删除",onOk(){const ne=U.list.indexOf(W.data);U.list.splice(ne,1)},onCancel(){}});else{const ne=U.list.indexOf(W.data);U.list.splice(ne,1)}}return(ne,oe)=>{const re=vue.resolveComponent("a-col"),se=vue.resolveComponent("a-row"),ae=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("div",_hoisted_1$d,[K.activeIndex==K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$9,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0)]),vue.createVNode(ae,{"label-col":{style:{width:"100px"}},labelWrap:!0},{default:vue.withCtx(()=>[vue.createVNode(se,{gutter:[K.data.options.gutter,8],tyle:"flex",style:vue.normalizeStyle({marginLeft:-K.data.options.gutter/2+"px",marginRight:-K.data.options.gutter/2+"px"})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.data.columns,(ce,le)=>(vue.openBlock(),vue.createBlock(re,{class:vue.normalizeClass(["widget-col-item",{active:G.value=="col"+le}]),span:ce.options.span,offset:ce.options.offset,onMousedown:de=>Z(ce,"col"+le,de)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VueDraggableNext),{class:"widget-col-list",style:{"min-height":"50px"},"ghost-class":"ghost",list:ce.list,"force-fallback":!0,"chosen-class":"chosenClass2","drag-class":"dragClass1",onStart:X,onEnd:de=>Q(de,le),group:"itxst",sort:!1,animation:"300",handle:".move",itemKey:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ce.list,(de,ue)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["widget-view",{active:G.value==K.index+"-"+le+"-"+ue}]),onMousedown:he=>Z(de,K.index+"-"+le+"-"+ue,he)},[vue.createVNode(FormInput,{data:de,activeIndex:G.value,index:K.index+"-"+le+"-"+ue},null,8,["data","activeIndex","index"])],42,_hoisted_3$7))),256))]),_:2},1032,["list","onEnd"]),K.activeIndex==="col"+le?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$5,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"},onClick:de=>ee(ce)},null,8,["onClick"]),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:de=>te(ce)},null,8,["onClick"])])):vue.createCommentVNode("",!0)]),_:2},1032,["span","class","offset","onMousedown"]))),256)),K.activeIndex===K.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$5,[vue.createVNode(vue.unref(DeleteOutlined$1),{style:{padding:"3px 5px",color:"#fff"},onClick:oe[0]||(oe[0]=ce=>ie())})])):vue.createCommentVNode("",!0)]),_:1},8,["gutter","style"])]),_:1})])}}}),FormGrid_vue_vue_type_style_index_0_scoped_7e7b2094_lang="",FormGrid=_export_sfc(_sfc_main$k,[["__scopeId","data-v-7e7b2094"]]),_hoisted_1$c={id:"table-css"},_hoisted_2$8={style:{"text-align":"left","padding-left":"50px"}},_hoisted_3$6=["onClick"],_sfc_main$j=vue.defineComponent({__name:"FormTable",props:{data:{type:Object,default:null},activeIndex:{type:String,default:""},index:{type:Number,default:""}},setup(K){const C=K,W=useFormStore(),{formData:H}=storeToRefs(W);let U=vue.ref(null),G=vue.ref(!1);function Z(te){U.value!=null&&(U.value.className=""),U.value=te,G.value=!0,te.className="tableClass"}let X=0;function Q(){H.value.list[C.index].tableColumns.push({title:"自定义列"+X,dataIndex:"code"}),X++}function ee(){U.value.children==null&&Reflect.set(U.value,"children",[]),U.value.children.push({title:"自定义列"+X,dataIndex:"code",key:"code"}),X++}return(te,ie)=>{const ne=vue.resolveComponent("a-input"),oe=vue.resolveComponent("a-table");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",_hoisted_2$8,[vue.createElementVNode("a",{onClick:Q},"添加列"),vue.createTextVNode(" "),vue.unref(G)?(vue.openBlock(),vue.createElementBlock("a",{key:0,onClick:ee},"分组『"+vue.toDisplayString(vue.unref(U).title)+"』添加列",1)):vue.createCommentVNode("",!0)]),vue.createVNode(oe,{columns:vue.unref(H).list[K.index].tableColumns,bordered:"",size:"middle",scroll:{y:240}},{headerCell:vue.withCtx(({column:re})=>[vue.createElementVNode("div",{onClick:se=>Z(re)},[vue.createVNode(ne,{value:re.title,"onUpdate:value":se=>re.title=se},null,8,["value","onUpdate:value"])],8,_hoisted_3$6)]),_:1},8,["columns"])])}}}),FormTable_vue_vue_type_style_index_0_scoped_4208a59b_lang="",FormTable=_export_sfc(_sfc_main$j,[["__scopeId","data-v-4208a59b"]]),_hoisted_1$b={id:"report-css"},_hoisted_2$7={class:"report-table-css"},_hoisted_3$5=["onClick"],_sfc_main$i=vue.defineComponent({__name:"FormReport",props:{data:{type:Object,default:null},activeIndex:{type:String,default:""},index:{type:Number,default:""}},setup(K){const C=useFormStore(),{formData:W}=storeToRefs(C);let H=vue.ref(null),U=vue.ref(!1);function G(Q,ee){H.value!=null&&(H.value.className=""),H.value=Q,U.value=!0}function Z(){}function X(){H.value.columns.push({type:"td",options:{customClass:"",colspan:1,rowspan:1,align:"left",valign:"top",width:"",height:""},list:[],key:"fuzps6zb",rules:[]})}return(Q,ee)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$b,[vue.createElementVNode("div",{style:{"text-align":"left","padding-left":"50px"}},[vue.createElementVNode("a",{onClick:Z},"添加行"),vue.createTextVNode(" "),vue.createElementVNode("a",{onClick:X},"添加列")]),vue.createElementVNode("table",_hoisted_2$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(W).list[K.index].rows,(te,ie)=>(vue.openBlock(),vue.createElementBlock("tr",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(te.columns,(ne,oe)=>(vue.openBlock(),vue.createElementBlock("td",{class:"report-table-item",onClick:re=>G(te)}," fdfd ",8,_hoisted_3$5))),256))]))),256))])]))}}),FormReport_vue_vue_type_style_index_0_scoped_9eb302b9_lang="",FormReport=_export_sfc(_sfc_main$i,[["__scopeId","data-v-9eb302b9"]]),_hoisted_1$a={class:""},_hoisted_2$6=["onMousedown"],_sfc_main$h=vue.defineComponent({__name:"index",emits:["controlConfig"],setup(K,{emit:C}){const W=useFormStore();let{formData:H}=storeToRefs(W);const U={style:{width:"100px"}},G=vue.ref("-1");function Z(ne,oe,re){C("controlConfig",ne),G.value=oe,re.stopPropagation(),re.preventDefault()}function X(ne){C("controlConfig",ne)}function Q(ne){G.value=ne}function ee(){G.value="-1",console.log("开始拖拽")}function te(ne){ne.to.className=="widget-col-list"?G.value="base"+ne.newIndex:G.value=ne.newIndex}function ie(ne){}return(ne,oe)=>{const re=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(re,{class:"form-container","label-col":U},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VueDraggableNext),{class:vue.normalizeClass(vue.unref(H).list.length>0?"widget-form-list":"widgt-empty"),list:vue.unref(H).list,"ghost-class":"ghost",handle:".move","force-fallback":!0,"chosen-class":"chosenClass1","drag-class":"dragClass1",animation:"300",onStart:ee,onEnd:te,group:"itxst","fallback-class":!0,"fallback-on-body":!0,"touch-start-threshold":50,"fallback-tolerance":50,move:ie,itemKey:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(H).list,(se,ae)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$a,[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-col widget-view",{active:G.value==ae.toString()}]),onMousedown:ce=>Z(se,ae.toString(),ce)},[se.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:0,data:se,activeIndex:G.value,onChildConfig:X,onIndex:Q,index:ae.toString()},null,8,["data","activeIndex","index"])):se.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:se,activeIndex:G.value,index:ae},null,8,["data","activeIndex","index"])):se.type=="report"?(vue.openBlock(),vue.createBlock(FormReport,{key:2,data:se,activeIndex:G.value,index:ae},null,8,["data","activeIndex","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:3,data:se,activeIndex:G.value,index:ae.toString()},null,8,["data","activeIndex","index"]))],42,_hoisted_2$6)]))),256))]),_:1},8,["class","list"])]),_:1})}}}),index_vue_vue_type_style_index_0_scoped_aa78c39f_lang="",FormDesign=_export_sfc(_sfc_main$h,[["__scopeId","data-v-aa78c39f"]]),_sfc_main$g=vue.defineComponent({__name:"Grid",props:{configData:{type:Object,default:{}}},setup(K){return(C,W)=>{const H=vue.resolveComponent("a-input"),U=vue.resolveComponent("a-form-item"),G=vue.resolveComponent("a-input-number"),Z=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(Z,{layout:"vertical",model:K.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(U,{label:"字段标识",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(H,{value:K.configData.model,"onUpdate:value":W[0]||(W[0]=X=>K.configData.model=X)},null,8,["value"])]),_:1}),vue.createVNode(U,{label:"栅格间距"},{default:vue.withCtx(()=>[vue.createVNode(G,{value:K.configData.options.gutter,"onUpdate:value":W[1]||(W[1]=X=>K.configData.options.gutter=X),min:1,max:30,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),_sfc_main$f=vue.defineComponent({__name:"Col",props:{configData:{type:Object,default:{}}},setup(K){return(C,W)=>{const H=vue.resolveComponent("a-input-number"),U=vue.resolveComponent("a-form-item"),G=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(G,{layout:"vertical",model:K.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(U,{label:"栅格占据的列数"},{default:vue.withCtx(()=>[vue.createVNode(H,{value:K.configData.options.span,"onUpdate:value":W[0]||(W[0]=Z=>K.configData.options.span=Z),min:4,max:24,style:{width:"100%"}},null,8,["value"])]),_:1}),vue.createVNode(U,{label:"栅格左侧的间隔格数"},{default:vue.withCtx(()=>[vue.createVNode(H,{value:K.configData.options.offset,"onUpdate:value":W[1]||(W[1]=Z=>K.configData.options.offset=Z),min:0,max:10,style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),useDataStore=defineStore({id:"dataStore",state:()=>({selectList:[],updateList:[],delList:[],selectTables:[]}),getters:{getSelectData(K){return K.selectList},getSelectTables(K){return K.selectTables},getUpdateData(K){return K.updateList}},actions:{addSelectData(K){this.selectList.push(...K)},setSelectData(K){this.selectList=K},setUpdateData(K){this.updateList=K},addUpdateData(K){this.updateList.push(...K)},addSelectTable(K){this.selectTables.push(K)},setSelectTables(K){this.selectTables=K}}}),_hoisted_1$9={class:"table-column-setting"},_hoisted_2$5={class:"left"},_hoisted_3$4={class:"left-content"},_hoisted_4$4={class:"treeItem"},_hoisted_5$4={class:"title"},_hoisted_6$4={class:"right"},_hoisted_7$3={class:"right-content"},_sfc_main$e=vue.defineComponent({__name:"TableColumn",props:{tableColumns:{type:Object,default:[]}},emits:["update:tableColumns","ok"],setup(K,{expose:C,emit:W}){const H=K,U=Empty$1.PRESENTED_IMAGE_SIMPLE;let G=vue.ref(!1),Z=vue.ref([]),X=vue.ref([]);const Q={children:"children",title:"title",key:"id"};let ee=vue.ref(),te=vue.ref([]),ie=vue.ref([]),ne=vue.ref([]),oe={title:[{required:!0,message:"请填写标题",trigger:"change"}],width:[{pattern:/(^\d+((px)|%)?$)|(^auto$)/,message:"请填写正确的格式",trigger:"change"}]},re=vue.ref();vue.watch(()=>H.tableColumns,ye=>{Z.value=se(JSON.parse(JSON.stringify(ye))),Z.value.length>0&&(re.value=Z.value[0],te.value=[re.value.id],ie.value=te.value)},{deep:!0,immediate:!0}),vue.watch(()=>Z.value,(ye,Ie)=>{X.value=ae(JSON.parse(JSON.stringify(ye)))},{deep:!0,immediate:!0}),vue.watch(()=>G.value,ye=>{ye?we():xe()}),C({show:ce});function se(ye){return ye.map(Ee=>(Ee.id||(Ee.id="column-"+guid()),Ee.options?Ee.options.hidden==null&&(Ee.options.hidden=!1):Ee.options={hidden:!1},Ee.children&&(Ee.children=se(Ee.children)),Ee))}function ae(ye,Ie){return ye.map(Oe=>{Ie?Oe.fPid=Ie:Oe.fPid&&delete Oe.fPid;let We=Ie||Oe.id;return Oe.children&&(Oe.children=ae(Oe.children,We)),Oe})}function ce(){G.value=!0}function le(ye,Ie){re.value?ee.value.validate().then(()=>{re.value=Ie.selected?Ie.node.dataRef:void 0,ie.value=ye}).catch(Ee=>{te.value=ie.value}):(re.value=Ie.selected?Ie.node.dataRef:void 0,ie.value=ye)}function de(ye){if(ye.node.dataRef){let Ie=JSON.parse(JSON.stringify(ne.value));Ie.push(ye.node.dataRef.id),ne.value=Array.from(new Set(Ie))}}function ue(ye){const Ie=ye.node.id,Ee=ye.dragNode.id,Oe=ye.node.pos.split("-"),We=ye.dropPosition-Number(Oe[Oe.length-1]),Te=($e,Re,ze)=>{$e.forEach((Je,Ke)=>{if(Je.id===Re)return ze(Je,Ke,$e);if(Je.children)return Te(Je.children,Re,ze)})},Ae=[...Z.value];let Pe;if(Te(Ae,Ee,($e,Re,ze)=>{ze.splice(Re,1),Pe=$e}),!ye.dropToGap)Te(Ae,Ie,$e=>{$e.children=$e.children||[],$e.children.unshift(Pe)});else if((ye.node.children||[]).length>0&&ye.node.expanded&&We===1)Te(Ae,Ie,$e=>{$e.children=$e.children||[],$e.children.unshift(Pe)});else{let $e=[],Re=0;Te(Ae,Ie,(ze,Je,Ke)=>{$e=Ke,Re=Je}),We===-1?$e.splice(Re,0,Pe):$e.splice(Re+1,0,Pe)}Z.value=Ae}function he(ye,Ie){for(let Ee=0;Ee<ye.length;Ee++){let Oe=ye[Ee];if(Oe.id===Ie)return Oe;if(Oe.children&&Oe.children.length>0){let We=he(Oe.children,Ie);if(We)return We}}return null}function fe(ye,Ie){for(let Ee=0;Ee<ye.length;Ee++){if(ye[Ee].id==Ie){ye[Ee+1]?re.value=ye[Ee+1]:ye[Ee-1]?re.value=ye[Ee-1]:re.value=void 0,te.value=re.value?[re.value.id]:[],ie.value=te.value,ye.splice(Ee,1);return}ye[Ee].children&&ye[Ee].children.length>0&&fe(ye[Ee].children,Ie)}}function ge(){let ye="newColumn";if(re.value){ye=re.value.dataIndex;let Ee=he(X.value,re.value.id);if(Ee.fPid){let Oe=he(X.value,Ee.fPid);Oe&&(ye=Oe.dataIndex)}}let Ie={id:"column-"+guid(),title:"新增列名",dataIndex:ye,width:"auto",options:{hidden:!1}};if(re.value){let Ee=he(Z.value,re.value.id);Ee.children?Ee.children.push(Ie):Ee.children=[Ie];let Oe=JSON.parse(JSON.stringify(ne.value));Oe.push(re.value.id),ne.value=Array.from(new Set(Oe))}else Z.value.push(Ie);re.value=Ie,te.value=[Ie.id],ie.value=te.value}function me(ye){fe(Z.value,ye.id)}function pe(){re.value&&ee.value.validate().then(()=>{W("update:tableColumns",ve(Z.value)),W("ok"),G.value=!1}).catch(ye=>{console.log("error",ye)})}function ve(ye,Ie){return ye.map(Oe=>(Ie&&Ie.options.hidden||Oe.options.hidden?Oe.colSpan=0:Oe.colSpan!=null&&delete Oe.colSpan,typeof Oe.width=="string"&&(Oe.width=Number(Oe.width)?Number(Oe.width):Oe.width),Oe.children&&(Oe.children=ve(Oe.children,Oe)),Oe))}function we(){document.onkeydown=ye=>{if(re.value){let Ie=ye||event||window.event||arguments.callee.caller.arguments[0],Ee=0;Ie&&Ie.keyCode==40?Ee=Ee+1:Ie&&Ie.keyCode==38&&(Ee=Ee-1),(Ee==1||Ee==-1)&&Ce(Z.value,Ee)}}}function Ce(ye,Ie){for(let Ee=0;Ee<ye.length;Ee++){if(ye[Ee].id==re.value.id){ye[Ee+Ie]&&(re.value=ye[Ee+Ie],te.value=[re.value.id],ie.value=te.value);return}ye[Ee].children&&ye[Ee].children.length>0&&Ce(ye[Ee].children,Ie)}}function xe(){document.onkeydown=null}return(ye,Ie)=>{const Ee=vue.resolveComponent("a-button"),Oe=vue.resolveComponent("a-popconfirm"),We=vue.resolveComponent("a-tree"),Te=vue.resolveComponent("a-input"),Ae=vue.resolveComponent("a-form-item"),Pe=vue.resolveComponent("a-radio"),$e=vue.resolveComponent("a-radio-group"),Re=vue.resolveComponent("a-form"),ze=vue.resolveComponent("a-empty"),Je=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Je,{visible:vue.unref(G),"onUpdate:visible":Ie[7]||(Ie[7]=Ke=>vue.isRef(G)?G.value=Ke:G=Ke),title:"列配置",width:"850px",onOk:pe},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$9,[vue.createElementVNode("div",_hoisted_2$5,[vue.createElementVNode("div",_hoisted_3$4,[vue.createVNode(Ee,{style:{"margin-bottom":"10px"},onClick:ge},{default:vue.withCtx(()=>[vue.createTextVNode("添加")]),_:1}),vue.createVNode(We,{"expanded-keys":vue.unref(ne),"onUpdate:expandedKeys":Ie[1]||(Ie[1]=Ke=>vue.isRef(ne)?ne.value=Ke:ne=Ke),"selected-keys":vue.unref(te),"onUpdate:selectedKeys":Ie[2]||(Ie[2]=Ke=>vue.isRef(te)?te.value=Ke:te=Ke),fieldNames:Q,"tree-data":vue.unref(Z),blockNode:"",draggable:"",onDragenter:de,onDrop:ue,onSelect:le},{title:vue.withCtx(Ke=>[vue.createElementVNode("div",_hoisted_4$4,[vue.createElementVNode("div",_hoisted_5$4,vue.toDisplayString(Ke.title),1),vue.createVNode(Oe,{"cancel-text":"否","ok-text":"是",title:"确定要删除吗?这将会删除所有子节点",onConfirm:Xe=>me(Ke)},{default:vue.withCtx(()=>[vue.unref(re)&&Ke.id==vue.unref(re).id?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"operate",onClick:Ie[0]||(Ie[0]=vue.withModifiers(()=>{},["stop"]))},[vue.createVNode(vue.unref(CloseCircleOutlined$1),{style:{color:"#ff3030"}})])):vue.createCommentVNode("",!0)]),_:2},1032,["onConfirm"])])]),_:1},8,["expanded-keys","selected-keys","tree-data"])])]),vue.createElementVNode("div",_hoisted_6$4,[vue.createElementVNode("div",_hoisted_7$3,[vue.unref(re)!==void 0?(vue.openBlock(),vue.createBlock(Re,{key:0,ref_key:"formRef",ref:ee,"label-col":{span:4},model:vue.unref(re),rules:vue.unref(oe),"wrapper-col":{span:19}},{default:vue.withCtx(()=>[vue.createVNode(Ae,{label:"标题",name:"title"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(re).title,"onUpdate:value":Ie[3]||(Ie[3]=Ke=>vue.unref(re).title=Ke)},null,8,["value"])]),_:1}),!vue.unref(re).children||!vue.unref(re).children.length?(vue.openBlock(),vue.createBlock(Ae,{key:0,label:"绑定字段",name:"dataIndex"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(re).dataIndex,"onUpdate:value":Ie[4]||(Ie[4]=Ke=>vue.unref(re).dataIndex=Ke)},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Ae,{label:"宽度",name:"width"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(re).width,"onUpdate:value":Ie[5]||(Ie[5]=Ke=>vue.unref(re).width=Ke)},null,8,["value"])]),_:1}),vue.createVNode(Ae,{label:"隐藏"},{default:vue.withCtx(()=>[vue.createVNode($e,{value:vue.unref(re).options.hidden,"onUpdate:value":Ie[6]||(Ie[6]=Ke=>vue.unref(re).options.hidden=Ke)},{default:vue.withCtx(()=>[vue.createVNode(Pe,{value:!0},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(Pe,{value:!1},{default:vue.withCtx(()=>[vue.createTextVNode("否")]),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model","rules"])):(vue.openBlock(),vue.createBlock(ze,{key:1,image:vue.unref(U)},null,8,["image"]))])])])]),_:1},8,["visible"])}}}),TableColumn_vue_vue_type_style_index_0_scoped_87834679_lang="",TableColumn=_export_sfc(_sfc_main$e,[["__scopeId","data-v-87834679"]]),_hoisted_1$8={key:0},_hoisted_2$4={key:1},_sfc_main$d=vue.defineComponent({__name:"Table",props:{configData:{type:Object,default:{}}},setup(K){const C=K,W=useFormStore(),H=useDataStore();let U=vue.ref(),G=vue.ref([]),Z=vue.ref(C.configData.action);const X=()=>{Z.value.push({title:"",oper:""})};function Q(ne){let oe=Z.value.indexOf(ne);oe!==-1&&Z.value.splice(oe,1)}function ee(ne){let se=H.getSelectData.filter(ae=>ae.value.split(".")[0]==ne).map(ae=>ae.value.split(".")[1]).map(ae=>({id:"column-"+guid(),title:ae,dataIndex:ae,width:"auto",options:{hidden:!1}}));C.configData.tableColumns=se}function te(){G.value=JSON.parse(JSON.stringify(C.configData.tableColumns,null," ")),U.value.show()}function ie(){const ne=W.formData.list.indexOf(C.configData);W.formData.list[ne].tableColumns=G.value}return(ne,oe)=>{const re=vue.resolveComponent("a-select"),se=vue.resolveComponent("a-form-item"),ae=vue.resolveComponent("a-button"),ce=vue.resolveComponent("a-switch"),le=vue.resolveComponent("a-input"),de=vue.resolveComponent("a-col"),ue=vue.resolveComponent("a-row"),he=vue.resolveComponent("a-input-number"),fe=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(fe,{layout:"vertical",model:K.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(se,{label:"数据源",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(re,{value:K.configData.model,"onUpdate:value":oe[0]||(oe[0]=ge=>K.configData.model=ge),options:vue.unref(H).getSelectTables,onChange:ee},null,8,["value","options"])]),_:1}),vue.createVNode(se,{label:"列配置"},{default:vue.withCtx(()=>[vue.createVNode(ae,{onClick:te,block:""},{default:vue.withCtx(()=>[vue.createTextVNode("属性配置")]),_:1})]),_:1}),vue.createVNode(se,{label:"显示操作列"},{default:vue.withCtx(()=>[vue.createVNode(ce,{checked:K.configData.options.showAction,"onUpdate:checked":oe[1]||(oe[1]=ge=>K.configData.options.showAction=ge)},null,8,["checked"])]),_:1}),K.configData.options.showAction?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.configData.action,(ge,me)=>(vue.openBlock(),vue.createBlock(ue,{style:{"padding-bottom":"5px"}},{default:vue.withCtx(()=>[vue.createVNode(de,{span:9},{default:vue.withCtx(()=>[vue.createVNode(le,{value:ge.title,"onUpdate:value":pe=>ge.title=pe,placeholder:"按钮名称"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(de,{span:9,offset:1},{default:vue.withCtx(()=>[vue.createVNode(le,{value:ge.oper,"onUpdate:value":pe=>ge.oper=pe,placeholder:"事件"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(de,{span:3,offset:1,style:{"line-height":"30px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:pe=>Q(ge),style:{"font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4"}},null,8,["onClick"])]),_:2},1024)]),_:2},1024))),256)),vue.createVNode(se,null,{default:vue.withCtx(()=>[vue.createVNode(ae,{type:"dashed",style:{width:"100%"},onClick:X},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1)),vue.createTextVNode(" 添加自定义操作按钮 ")]),_:1})]),_:1})])):vue.createCommentVNode("",!0),vue.createVNode(se,{label:"是否分页"},{default:vue.withCtx(()=>[vue.createVNode(ce,{checked:K.configData.options.pagination,"onUpdate:checked":oe[2]||(oe[2]=ge=>K.configData.options.pagination=ge)},null,8,["checked"])]),_:1}),K.configData.options.pagination?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$4,[vue.createVNode(se,{label:"每页显示数目"},{default:vue.withCtx(()=>[vue.createVNode(he,{value:K.configData.options.pageSize,"onUpdate:value":oe[3]||(oe[3]=ge=>K.configData.options.pageSize=ge),min:5,max:100,defaultValue:5,style:{width:"100%"}},null,8,["value"])]),_:1})])):vue.createCommentVNode("",!0)]),_:1},8,["model"]),vue.createVNode(TableColumn,{ref_key:"settingRef",ref:U,tableColumns:vue.unref(G),"onUpdate:tableColumns":oe[4]||(oe[4]=ge=>vue.isRef(G)?G.value=ge:G=ge),onOk:ie},null,8,["tableColumns"])],64)}}}),_withScopeId$1=K=>(vue.pushScopeId("data-v-12ada039"),K=K(),vue.popScopeId(),K),_hoisted_1$7={style:{height:"40px"}},_hoisted_2$3={style:{float:"right"}},_hoisted_3$3={style:{height:"500px"}},_hoisted_4$3={style:{width:"20%",height:"100%",border:"1px solid #e4e7ed",float:"left"}},_hoisted_5$3=["onClick"],_hoisted_6$3={style:{color:"#67c23a",width:"30px",display:"inline-block"}},_hoisted_7$2={style:{width:"80%",height:"100%",float:"left"}},_hoisted_8$2={class:"content"},_hoisted_9$2=_withScopeId$1(()=>vue.createElementVNode("span",{style:{color:"blue","font-size":"12px"}},"// 默认直接返回响应数据 res,可以在下方对数据进行处理 (res) => { ",-1)),_hoisted_10$2=_withScopeId$1(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_11$2=_withScopeId$1(()=>vue.createElementVNode("span",{style:{color:"blue","font-size":"12px"}}," }",-1)),_sfc_main$c=vue.defineComponent({__name:"DataSource",setup(K){vue.ref({ywh:"22",hell0:"rere"});const C=useFormStore(),W=ee=>{let te=X.value.params.indexOf(ee);te!==-1&&X.value.params.splice(te,1)},H=()=>{X.value.params.push({key:"",value:""})};let U=vue.ref(C.formData.config.dataSource);function G(){const ee={key:"fun1",name:"getData",url:"http://",method:"post",auto:!1,params:[],headers:[],responseFunc:"return res;",requestFunc:"return config;",errorFunc:"",args:[]};U.value.push(ee)}let Z=vue.ref(-1),X=vue.ref({});function Q(ee){Z.value=ee,X.value=U.value[ee]}return(ee,te)=>{const ie=vue.resolveComponent("a-button"),ne=vue.resolveComponent("a-input"),oe=vue.resolveComponent("a-form-item"),re=vue.resolveComponent("a-textarea"),se=vue.resolveComponent("a-radio-button"),ae=vue.resolveComponent("a-radio-group"),ce=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$7,[vue.createVNode(ie,{type:"link",primary:"",onClick:G},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode("新增数据源")]),_:1}),vue.createElementVNode("div",_hoisted_2$3,[vue.createVNode(ie,{type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(ie,{style:{"margin-left":"8px"}},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})])]),vue.createElementVNode("div",_hoisted_3$3,[vue.createElementVNode("div",_hoisted_4$3,[vue.createElementVNode("ul",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U),(le,de)=>(vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["menu-item",{active:vue.unref(Z)==de}]),onClick:ue=>Q(de)},[vue.createElementVNode("span",_hoisted_6$3,vue.toDisplayString(le.method),1),vue.createTextVNode(" "+vue.toDisplayString(le.name),1)],10,_hoisted_5$3))),256))])]),vue.createElementVNode("div",_hoisted_7$2,[vue.createElementVNode("div",_hoisted_8$2,[vue.createVNode(ce,{"label-col":{span:4},"wrapper-col":{span:20}},{default:vue.withCtx(()=>[vue.createVNode(oe,{label:"名称",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:vue.unref(X).name,"onUpdate:value":te[0]||(te[0]=le=>vue.unref(X).name=le)},null,8,["value"])]),_:1}),vue.createVNode(oe,{label:"请求地址",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(re,{value:vue.unref(X).url,"onUpdate:value":te[1]||(te[1]=le=>vue.unref(X).url=le),placeholder:"",rows:1},null,8,["value"])]),_:1}),vue.createVNode(oe,{label:"请求方法"},{default:vue.withCtx(()=>[vue.createVNode(ae,{value:vue.unref(X).method,"onUpdate:value":te[2]||(te[2]=le=>vue.unref(X).method=le)},{default:vue.withCtx(()=>[vue.createVNode(se,{value:"get"},{default:vue.withCtx(()=>[vue.createTextVNode("GET")]),_:1}),vue.createVNode(se,{value:"post"},{default:vue.withCtx(()=>[vue.createTextVNode("POST")]),_:1})]),_:1},8,["value"])]),_:1}),vue.createVNode(oe,{label:"请求参数"},{default:vue.withCtx(()=>[vue.createVNode(ce,{"label-col":{span:1},"wrapper-col":{span:23}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(X).params,(le,de)=>(vue.openBlock(),vue.createBlock(oe,null,{default:vue.withCtx(()=>[vue.createVNode(ne,{style:{width:"170px","margin-right":"8px"},value:le.key,"onUpdate:value":ue=>le.key=ue},null,8,["value","onUpdate:value"]),vue.createVNode(ne,{style:{width:"170px","margin-right":"8px"},value:le.value,"onUpdate:value":ue=>le.value=ue},null,8,["value","onUpdate:value"]),vue.createVNode(vue.unref(MinusCircleOutlined$1),{onClick:ue=>W(le)},null,8,["onClick"])]),_:2},1024))),256)),vue.createVNode(oe,null,{default:vue.withCtx(()=>[vue.createVNode(ie,{type:"dashed",style:{width:"60%"},onClick:H},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1)),vue.createTextVNode(" 添加参数 ")]),_:1})]),_:1})]),_:1})]),_:1}),vue.createVNode(oe,{label:"数据处理"},{default:vue.withCtx(()=>[_hoisted_9$2,_hoisted_10$2,vue.createVNode(re,{value:vue.unref(X).requestFunc,"onUpdate:value":te[3]||(te[3]=le=>vue.unref(X).requestFunc=le),placeholder:"",rows:4,defaultValue:"return res;"},null,8,["value"]),_hoisted_11$2]),_:1})]),_:1})])])])],64)}}}),DataSource_vue_vue_type_style_index_0_scoped_12ada039_lang="",DataSource$1=_export_sfc(_sfc_main$c,[["__scopeId","data-v-12ada039"]]),editorProps={modelValue:{type:String,default:null},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},language:{type:String,default:"javascript"},theme:{type:String,validator(K){return["vs","hc-black","vs-dark"].includes(K)},default:"vs-dark"},options:{type:Object,default:function(){return{automaticLayout:!0,foldingStrategy:"indentation",renderLineHighlight:"all",selectOnLineNumbers:!0,minimap:{enabled:!0},readOnly:!1,fontSize:16,scrollBeyondLastLine:!1,overviewRulerBorder:!1}}}};function tail(K,C=0){return K[K.length-(1+C)]}function tail2(K){if(K.length===0)throw new Error("Invalid tail call");return[K.slice(0,K.length-1),K[K.length-1]]}function equals$2(K,C,W=(H,U)=>H===U){if(K===C)return!0;if(!K||!C||K.length!==C.length)return!1;for(let H=0,U=K.length;H<U;H++)if(!W(K[H],C[H]))return!1;return!0}function removeFastWithoutKeepingOrder(K,C){const W=K.length-1;C<W&&(K[C]=K[W]),K.pop()}function binarySearch(K,C,W){return binarySearch2(K.length,H=>W(K[H],C))}function binarySearch2(K,C){let W=0,H=K-1;for(;W<=H;){const U=(W+H)/2|0,G=C(U);if(G<0)W=U+1;else if(G>0)H=U-1;else return U}return-(W+1)}function quickSelect(K,C,W){if(K=K|0,K>=C.length)throw new TypeError("invalid index");const H=C[Math.floor(C.length*Math.random())],U=[],G=[],Z=[];for(const X of C){const Q=W(X,H);Q<0?U.push(X):Q>0?G.push(X):Z.push(X)}return K<U.length?quickSelect(K,U,W):K<U.length+Z.length?Z[0]:quickSelect(K-(U.length+Z.length),G,W)}function groupBy(K,C){const W=[];let H;for(const U of K.slice(0).sort(C))!H||C(H[0],U)!==0?(H=[U],W.push(H)):H.push(U);return W}function*groupAdjacentBy(K,C){let W,H;for(const U of K)H!==void 0&&C(H,U)?W.push(U):(W&&(yield W),W=[U]),H=U;W&&(yield W)}function forEachAdjacent(K,C){for(let W=0;W<=K.length;W++)C(W===0?void 0:K[W-1],W===K.length?void 0:K[W])}function forEachWithNeighbors(K,C){for(let W=0;W<K.length;W++)C(W===0?void 0:K[W-1],K[W],W+1===K.length?void 0:K[W+1])}function coalesce(K){return K.filter(C=>!!C)}function coalesceInPlace(K){let C=0;for(let W=0;W<K.length;W++)K[W]&&(K[C]=K[W],C+=1);K.length=C}function isFalsyOrEmpty(K){return!Array.isArray(K)||K.length===0}function isNonEmptyArray(K){return Array.isArray(K)&&K.length>0}function distinct(K,C=W=>W){const W=new Set;return K.filter(H=>{const U=C(H);return W.has(U)?!1:(W.add(U),!0)})}function firstOrDefault(K,C){return K.length>0?K[0]:C}function range(K,C){let W=typeof C=="number"?K:0;typeof C=="number"?W=K:(W=0,C=K);const H=[];if(W<=C)for(let U=W;U<C;U++)H.push(U);else for(let U=W;U>C;U--)H.push(U);return H}function arrayInsert(K,C,W){const H=K.slice(0,C),U=K.slice(C);return H.concat(W,U)}function pushToStart(K,C){const W=K.indexOf(C);W>-1&&(K.splice(W,1),K.unshift(C))}function pushToEnd(K,C){const W=K.indexOf(C);W>-1&&(K.splice(W,1),K.push(C))}function pushMany(K,C){for(const W of C)K.push(W)}function asArray(K){return Array.isArray(K)?K:[K]}function insertInto(K,C,W){const H=getActualStartIndex(K,C),U=K.length,G=W.length;K.length=U+G;for(let Z=U-1;Z>=H;Z--)K[Z+G]=K[Z];for(let Z=0;Z<G;Z++)K[Z+H]=W[Z]}function splice$1(K,C,W,H){const U=getActualStartIndex(K,C);let G=K.splice(U,W);return G===void 0&&(G=[]),insertInto(K,U,H),G}function getActualStartIndex(K,C){return C<0?Math.max(C+K.length,0):Math.min(C,K.length)}var CompareResult;(function(K){function C(G){return G<0}K.isLessThan=C;function W(G){return G<=0}K.isLessThanOrEqual=W;function H(G){return G>0}K.isGreaterThan=H;function U(G){return G===0}K.isNeitherLessOrGreaterThan=U,K.greaterThan=1,K.lessThan=-1,K.neitherLessOrGreaterThan=0})(CompareResult||(CompareResult={}));function compareBy(K,C){return(W,H)=>C(K(W),K(H))}function tieBreakComparators(...K){return(C,W)=>{for(const H of K){const U=H(C,W);if(!CompareResult.isNeitherLessOrGreaterThan(U))return U}return CompareResult.neitherLessOrGreaterThan}}const numberComparator=(K,C)=>K-C,booleanComparator=(K,C)=>numberComparator(K?1:0,C?1:0);function reverseOrder(K){return(C,W)=>-K(C,W)}class ArrayQueue{constructor(C){this.items=C,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(C){let W=this.firstIdx;for(;W<this.items.length&&C(this.items[W]);)W++;const H=W===this.firstIdx?null:this.items.slice(this.firstIdx,W);return this.firstIdx=W,H}takeFromEndWhile(C){let W=this.lastIdx;for(;W>=0&&C(this.items[W]);)W--;const H=W===this.lastIdx?null:this.items.slice(W+1,this.lastIdx+1);return this.lastIdx=W,H}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const C=this.items[this.firstIdx];return this.firstIdx++,C}takeCount(C){const W=this.items.slice(this.firstIdx,this.firstIdx+C);return this.firstIdx+=C,W}}class CallbackIterable{constructor(C){this.iterate=C}toArray(){const C=[];return this.iterate(W=>(C.push(W),!0)),C}filter(C){return new CallbackIterable(W=>this.iterate(H=>C(H)?W(H):!0))}map(C){return new CallbackIterable(W=>this.iterate(H=>W(C(H))))}findLast(C){let W;return this.iterate(H=>(C(H)&&(W=H),!0)),W}findLastMaxBy(C){let W,H=!0;return this.iterate(U=>((H||CompareResult.isGreaterThan(C(U,W)))&&(H=!1,W=U),!0)),W}}CallbackIterable.empty=new CallbackIterable(K=>{});function isString$3(K){return typeof K=="string"}function isObject$1(K){return typeof K=="object"&&K!==null&&!Array.isArray(K)&&!(K instanceof RegExp)&&!(K instanceof Date)}function isTypedArray$1(K){const C=Object.getPrototypeOf(Uint8Array);return typeof K=="object"&&K instanceof C}function isNumber$2(K){return typeof K=="number"&&!isNaN(K)}function isIterable(K){return!!K&&typeof K[Symbol.iterator]=="function"}function isBoolean$1(K){return K===!0||K===!1}function isUndefined$1(K){return typeof K>"u"}function isDefined(K){return!isUndefinedOrNull(K)}function isUndefinedOrNull(K){return isUndefined$1(K)||K===null}function assertType(K,C){if(!K)throw new Error(C?`Unexpected type, expected '${C}'`:"Unexpected type")}function assertIsDefined(K){if(isUndefinedOrNull(K))throw new Error("Assertion Failed: argument is undefined or null");return K}function isFunction$1(K){return typeof K=="function"}function validateConstraints(K,C){const W=Math.min(K.length,C.length);for(let H=0;H<W;H++)validateConstraint(K[H],C[H])}function validateConstraint(K,C){if(isString$3(C)){if(typeof K!==C)throw new Error(`argument does not match constraint: typeof ${C}`)}else if(isFunction$1(C)){try{if(K instanceof C)return}catch{}if(!isUndefinedOrNull(K)&&K.constructor===C||C.length===1&&C.call(void 0,K)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function deepClone(K){if(!K||typeof K!="object"||K instanceof RegExp)return K;const C=Array.isArray(K)?[]:{};return Object.entries(K).forEach(([W,H])=>{C[W]=H&&typeof H=="object"?deepClone(H):H}),C}function deepFreeze(K){if(!K||typeof K!="object")return K;const C=[K];for(;C.length>0;){const W=C.shift();Object.freeze(W);for(const H in W)if(_hasOwnProperty.call(W,H)){const U=W[H];typeof U=="object"&&!Object.isFrozen(U)&&!isTypedArray$1(U)&&C.push(U)}}return K}const _hasOwnProperty=Object.prototype.hasOwnProperty;function cloneAndChange(K,C){return _cloneAndChange(K,C,new Set)}function _cloneAndChange(K,C,W){if(isUndefinedOrNull(K))return K;const H=C(K);if(typeof H<"u")return H;if(Array.isArray(K)){const U=[];for(const G of K)U.push(_cloneAndChange(G,C,W));return U}if(isObject$1(K)){if(W.has(K))throw new Error("Cannot clone recursive data-structure");W.add(K);const U={};for(const G in K)_hasOwnProperty.call(K,G)&&(U[G]=_cloneAndChange(K[G],C,W));return W.delete(K),U}return K}function mixin(K,C,W=!0){return isObject$1(K)?(isObject$1(C)&&Object.keys(C).forEach(H=>{H in K?W&&(isObject$1(K[H])&&isObject$1(C[H])?mixin(K[H],C[H],W):K[H]=C[H]):K[H]=C[H]}),K):C}function equals$1(K,C){if(K===C)return!0;if(K==null||C===null||C===void 0||typeof K!=typeof C||typeof K!="object"||Array.isArray(K)!==Array.isArray(C))return!1;let W,H;if(Array.isArray(K)){if(K.length!==C.length)return!1;for(W=0;W<K.length;W++)if(!equals$1(K[W],C[W]))return!1}else{const U=[];for(H in K)U.push(H);U.sort();const G=[];for(H in C)G.push(H);if(G.sort(),!equals$1(U,G))return!1;for(W=0;W<U.length;W++)if(!equals$1(K[U[W]],C[U[W]]))return!1}return!0}function getAllPropertyNames(K){let C=[];for(;Object.prototype!==K;)C=C.concat(Object.getOwnPropertyNames(K)),K=Object.getPrototypeOf(K);return C}function getAllMethodNames(K){const C=[];for(const W of getAllPropertyNames(K))typeof K[W]=="function"&&C.push(W);return C}function createProxyObject$1(K,C){const W=U=>function(){const G=Array.prototype.slice.call(arguments,0);return C(U,G)},H={};for(const U of K)H[U]=W(U);return H}globalThis&&globalThis.__awaiter;let isPseudo=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _format$1(K,C){let W;return C.length===0?W=K:W=K.replace(/\{(\d+)\}/g,(H,U)=>{const G=U[0],Z=C[G];let X=H;return typeof Z=="string"?X=Z:(typeof Z=="number"||typeof Z=="boolean"||Z===void 0||Z===null)&&(X=String(Z)),X}),isPseudo&&(W="["+W.replace(/[aouei]/g,"$&$&")+"]"),W}function localize(K,C,...W){return _format$1(C,W)}function getConfiguredDefaultLocale(K){}var _a$4;const LANGUAGE_DEFAULT="en";let _isWindows=!1,_isMacintosh=!1,_isLinux=!1,_isNative=!1,_isWeb=!1,_isIOS=!1,_isMobile=!1,_locale,_language=LANGUAGE_DEFAULT,_platformLocale=LANGUAGE_DEFAULT,_translationsConfigFile,_userAgent;const globals=typeof self=="object"?self:typeof global=="object"?global:{};let nodeProcess;typeof globals.vscode<"u"&&typeof globals.vscode.process<"u"?nodeProcess=globals.vscode.process:typeof process<"u"&&(nodeProcess=process);const isElectronProcess=typeof((_a$4=nodeProcess==null?void 0:nodeProcess.versions)===null||_a$4===void 0?void 0:_a$4.electron)=="string",isElectronRenderer=isElectronProcess&&(nodeProcess==null?void 0:nodeProcess.type)==="renderer";if(typeof navigator=="object"&&!isElectronRenderer)_userAgent=navigator.userAgent,_isWindows=_userAgent.indexOf("Windows")>=0,_isMacintosh=_userAgent.indexOf("Macintosh")>=0,_isIOS=(_userAgent.indexOf("Macintosh")>=0||_userAgent.indexOf("iPad")>=0||_userAgent.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,_isLinux=_userAgent.indexOf("Linux")>=0,_isMobile=(_userAgent==null?void 0:_userAgent.indexOf("Mobi"))>=0,_isWeb=!0,localize({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),_locale=LANGUAGE_DEFAULT,_language=_locale,_platformLocale=navigator.language;else if(typeof nodeProcess=="object"){_isWindows=nodeProcess.platform==="win32",_isMacintosh=nodeProcess.platform==="darwin",_isLinux=nodeProcess.platform==="linux",_isLinux&&nodeProcess.env.SNAP&&nodeProcess.env.SNAP_REVISION,nodeProcess.env.CI||nodeProcess.env.BUILD_ARTIFACTSTAGINGDIRECTORY,_locale=LANGUAGE_DEFAULT,_language=LANGUAGE_DEFAULT;const K=nodeProcess.env.VSCODE_NLS_CONFIG;if(K)try{const C=JSON.parse(K),W=C.availableLanguages["*"];_locale=C.locale,_platformLocale=C.osLocale,_language=W||LANGUAGE_DEFAULT,_translationsConfigFile=C._translationsConfigFile}catch{}_isNative=!0}else console.error("Unable to resolve platform.");const isWindows=_isWindows,isMacintosh=_isMacintosh,isLinux=_isLinux,isNative=_isNative,isWeb=_isWeb,isWebWorker=_isWeb&&typeof globals.importScripts=="function",isIOS=_isIOS,isMobile=_isMobile,userAgent$1=_userAgent,language$1f=_language,setTimeout0IsFaster=typeof globals.postMessage=="function"&&!globals.importScripts,setTimeout0=(()=>{if(setTimeout0IsFaster){const K=[];globals.addEventListener("message",W=>{if(W.data&&W.data.vscodeScheduleAsyncWork)for(let H=0,U=K.length;H<U;H++){const G=K[H];if(G.id===W.data.vscodeScheduleAsyncWork){K.splice(H,1),G.callback();return}}});let C=0;return W=>{const H=++C;K.push({id:H,callback:W}),globals.postMessage({vscodeScheduleAsyncWork:H},"*")}}return K=>setTimeout(K)})(),OS=_isMacintosh||_isIOS?2:_isWindows?1:3;let _isLittleEndian=!0,_isLittleEndianComputed=!1;function isLittleEndian(){if(!_isLittleEndianComputed){_isLittleEndianComputed=!0;const K=new Uint8Array(2);K[0]=1,K[1]=2,_isLittleEndian=new Uint16Array(K.buffer)[0]===512+1}return _isLittleEndian}const isChrome$1=!!(userAgent$1&&userAgent$1.indexOf("Chrome")>=0),isFirefox$1=!!(userAgent$1&&userAgent$1.indexOf("Firefox")>=0),isSafari$1=!!(!isChrome$1&&userAgent$1&&userAgent$1.indexOf("Safari")>=0),isEdge=!!(userAgent$1&&userAgent$1.indexOf("Edg/")>=0);userAgent$1&&userAgent$1.indexOf("Android")>=0;const EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var Iterable;(function(K){function C(le){return le&&typeof le=="object"&&typeof le[Symbol.iterator]=="function"}K.is=C;const W=Object.freeze([]);function H(){return W}K.empty=H;function*U(le){yield le}K.single=U;function G(le){return C(le)?le:U(le)}K.wrap=G;function Z(le){return le||W}K.from=Z;function*X(le){for(let de=le.length-1;de>=0;de--)yield le[de]}K.reverse=X;function Q(le){return!le||le[Symbol.iterator]().next().done===!0}K.isEmpty=Q;function ee(le){return le[Symbol.iterator]().next().value}K.first=ee;function te(le,de){for(const ue of le)if(de(ue))return!0;return!1}K.some=te;function ie(le,de){for(const ue of le)if(de(ue))return ue}K.find=ie;function*ne(le,de){for(const ue of le)de(ue)&&(yield ue)}K.filter=ne;function*oe(le,de){let ue=0;for(const he of le)yield de(he,ue++)}K.map=oe;function*re(...le){for(const de of le)for(const ue of de)yield ue}K.concat=re;function se(le,de,ue){let he=ue;for(const fe of le)he=de(he,fe);return he}K.reduce=se;function*ae(le,de,ue=le.length){for(de<0&&(de+=le.length),ue<0?ue+=le.length:ue>le.length&&(ue=le.length);de<ue;de++)yield le[de]}K.slice=ae;function ce(le,de=Number.POSITIVE_INFINITY){const ue=[];if(de===0)return[ue,le];const he=le[Symbol.iterator]();for(let fe=0;fe<de;fe++){const ge=he.next();if(ge.done)return[ue,K.empty()];ue.push(ge.value)}return[ue,{[Symbol.iterator](){return he}}]}K.consume=ce})(Iterable||(Iterable={}));let Node$2=class Xt{constructor(C){this.element=C,this.next=Xt.Undefined,this.prev=Xt.Undefined}};Node$2.Undefined=new Node$2(void 0);class LinkedList{constructor(){this._first=Node$2.Undefined,this._last=Node$2.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Node$2.Undefined}clear(){let C=this._first;for(;C!==Node$2.Undefined;){const W=C.next;C.prev=Node$2.Undefined,C.next=Node$2.Undefined,C=W}this._first=Node$2.Undefined,this._last=Node$2.Undefined,this._size=0}unshift(C){return this._insert(C,!1)}push(C){return this._insert(C,!0)}_insert(C,W){const H=new Node$2(C);if(this._first===Node$2.Undefined)this._first=H,this._last=H;else if(W){const G=this._last;this._last=H,H.prev=G,G.next=H}else{const G=this._first;this._first=H,H.next=G,G.prev=H}this._size+=1;let U=!1;return()=>{U||(U=!0,this._remove(H))}}shift(){if(this._first!==Node$2.Undefined){const C=this._first.element;return this._remove(this._first),C}}pop(){if(this._last!==Node$2.Undefined){const C=this._last.element;return this._remove(this._last),C}}_remove(C){if(C.prev!==Node$2.Undefined&&C.next!==Node$2.Undefined){const W=C.prev;W.next=C.next,C.next.prev=W}else C.prev===Node$2.Undefined&&C.next===Node$2.Undefined?(this._first=Node$2.Undefined,this._last=Node$2.Undefined):C.next===Node$2.Undefined?(this._last=this._last.prev,this._last.next=Node$2.Undefined):C.prev===Node$2.Undefined&&(this._first=this._first.next,this._first.prev=Node$2.Undefined);this._size-=1}*[Symbol.iterator](){let C=this._first;for(;C!==Node$2.Undefined;)yield C.element,C=C.next}}const USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function createWordRegExp(K=""){let C="(-?\\d*\\.\\d\\w*)|([^";for(const W of USUAL_WORD_SEPARATORS)K.indexOf(W)>=0||(C+="\\"+W);return C+="\\s]+)",new RegExp(C,"g")}const DEFAULT_WORD_REGEXP=createWordRegExp();function ensureValidWordDefinition(K){let C=DEFAULT_WORD_REGEXP;if(K&&K instanceof RegExp)if(K.global)C=K;else{let W="g";K.ignoreCase&&(W+="i"),K.multiline&&(W+="m"),K.unicode&&(W+="u"),C=new RegExp(K.source,W)}return C.lastIndex=0,C}const _defaultConfig=new LinkedList;_defaultConfig.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function getWordAtText(K,C,W,H,U){if(U||(U=Iterable.first(_defaultConfig)),W.length>U.maxLen){let ee=K-U.maxLen/2;return ee<0?ee=0:H+=ee,W=W.substring(ee,K+U.maxLen/2),getWordAtText(K,C,W,H,U)}const G=Date.now(),Z=K-1-H;let X=-1,Q=null;for(let ee=1;!(Date.now()-G>=U.timeBudget);ee++){const te=Z-U.windowSize*ee;C.lastIndex=Math.max(0,te);const ie=_findRegexMatchEnclosingPosition(C,W,Z,X);if(!ie&&Q||(Q=ie,te<=0))break;X=te}if(Q){const ee={word:Q[0],startColumn:H+1+Q.index,endColumn:H+1+Q.index+Q[0].length};return C.lastIndex=0,ee}return null}function _findRegexMatchEnclosingPosition(K,C,W,H){let U;for(;U=K.exec(C);){const G=U.index||0;if(G<=W&&K.lastIndex>=W)return U;if(H>0&&G>H)return null}return null}const MINIMAP_GUTTER_WIDTH=8;class ConfigurationChangedEvent{constructor(C){this._values=C}hasChanged(C){return this._values[C]}}class ComputeOptionsMemory{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class BaseEditorOption{constructor(C,W,H,U){this.id=C,this.name=W,this.defaultValue=H,this.schema=U}applyUpdate(C,W){return applyUpdate(C,W)}compute(C,W,H){return H}}class ApplyUpdateResult{constructor(C,W){this.newValue=C,this.didChange=W}}function applyUpdate(K,C){if(typeof K!="object"||typeof C!="object"||!K||!C)return new ApplyUpdateResult(C,K!==C);if(Array.isArray(K)||Array.isArray(C)){const H=Array.isArray(K)&&Array.isArray(C)&&equals$2(K,C);return new ApplyUpdateResult(C,!H)}let W=!1;for(const H in C)if(C.hasOwnProperty(H)){const U=applyUpdate(K[H],C[H]);U.didChange&&(K[H]=U.newValue,W=!0)}return new ApplyUpdateResult(K,W)}class ComputedEditorOption{constructor(C){this.schema=void 0,this.id=C,this.name="_never_",this.defaultValue=void 0}applyUpdate(C,W){return applyUpdate(C,W)}validate(C){return this.defaultValue}}class SimpleEditorOption{constructor(C,W,H,U){this.id=C,this.name=W,this.defaultValue=H,this.schema=U}applyUpdate(C,W){return applyUpdate(C,W)}validate(C){return typeof C>"u"?this.defaultValue:C}compute(C,W,H){return H}}function boolean(K,C){return typeof K>"u"?C:K==="false"?!1:!!K}class EditorBooleanOption extends SimpleEditorOption{constructor(C,W,H,U=void 0){typeof U<"u"&&(U.type="boolean",U.default=H),super(C,W,H,U)}validate(C){return boolean(C,this.defaultValue)}}function clampedInt(K,C,W,H){if(typeof K>"u")return C;let U=parseInt(K,10);return isNaN(U)?C:(U=Math.max(W,U),U=Math.min(H,U),U|0)}class EditorIntOption extends SimpleEditorOption{static clampedInt(C,W,H,U){return clampedInt(C,W,H,U)}constructor(C,W,H,U,G,Z=void 0){typeof Z<"u"&&(Z.type="integer",Z.default=H,Z.minimum=U,Z.maximum=G),super(C,W,H,Z),this.minimum=U,this.maximum=G}validate(C){return EditorIntOption.clampedInt(C,this.defaultValue,this.minimum,this.maximum)}}function clampedFloat(K,C,W,H){if(typeof K>"u")return C;const U=EditorFloatOption.float(K,C);return EditorFloatOption.clamp(U,W,H)}class EditorFloatOption extends SimpleEditorOption{static clamp(C,W,H){return C<W?W:C>H?H:C}static float(C,W){if(typeof C=="number")return C;if(typeof C>"u")return W;const H=parseFloat(C);return isNaN(H)?W:H}constructor(C,W,H,U,G){typeof G<"u"&&(G.type="number",G.default=H),super(C,W,H,G),this.validationFn=U}validate(C){return this.validationFn(EditorFloatOption.float(C,this.defaultValue))}}class EditorStringOption extends SimpleEditorOption{static string(C,W){return typeof C!="string"?W:C}constructor(C,W,H,U=void 0){typeof U<"u"&&(U.type="string",U.default=H),super(C,W,H,U)}validate(C){return EditorStringOption.string(C,this.defaultValue)}}function stringSet(K,C,W,H){return typeof K!="string"?C:H&&K in H?H[K]:W.indexOf(K)===-1?C:K}class EditorStringEnumOption extends SimpleEditorOption{constructor(C,W,H,U,G=void 0){typeof G<"u"&&(G.type="string",G.enum=U,G.default=H),super(C,W,H,G),this._allowedValues=U}validate(C){return stringSet(C,this.defaultValue,this._allowedValues)}}class EditorEnumOption extends BaseEditorOption{constructor(C,W,H,U,G,Z,X=void 0){typeof X<"u"&&(X.type="string",X.enum=G,X.default=U),super(C,W,H,X),this._allowedValues=G,this._convert=Z}validate(C){return typeof C!="string"?this.defaultValue:this._allowedValues.indexOf(C)===-1?this.defaultValue:this._convert(C)}}function _autoIndentFromString(K){switch(K){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class EditorAccessibilitySupport extends BaseEditorOption{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[localize("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),localize("accessibilitySupport.on","Optimize for usage with a Screen Reader"),localize("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:localize("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(C){switch(C){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(C,W,H){return H===0?C.accessibilitySupport:H}}class EditorComments extends BaseEditorOption{constructor(){const C={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",C,{"editor.comments.insertSpace":{type:"boolean",default:C.insertSpace,description:localize("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:C.ignoreEmptyLines,description:localize("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{insertSpace:boolean(W.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:boolean(W.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function _cursorBlinkingStyleFromString(K){switch(K){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var TextEditorCursorStyle$1;(function(K){K[K.Line=1]="Line",K[K.Block=2]="Block",K[K.Underline=3]="Underline",K[K.LineThin=4]="LineThin",K[K.BlockOutline=5]="BlockOutline",K[K.UnderlineThin=6]="UnderlineThin"})(TextEditorCursorStyle$1||(TextEditorCursorStyle$1={}));function _cursorStyleFromString(K){switch(K){case"line":return TextEditorCursorStyle$1.Line;case"block":return TextEditorCursorStyle$1.Block;case"underline":return TextEditorCursorStyle$1.Underline;case"line-thin":return TextEditorCursorStyle$1.LineThin;case"block-outline":return TextEditorCursorStyle$1.BlockOutline;case"underline-thin":return TextEditorCursorStyle$1.UnderlineThin}}class EditorClassName extends ComputedEditorOption{constructor(){super(140)}compute(C,W,H){const U=["monaco-editor"];return W.get(39)&&U.push(W.get(39)),C.extraEditorClassName&&U.push(C.extraEditorClassName),W.get(73)==="default"?U.push("mouse-default"):W.get(73)==="copy"&&U.push("mouse-copy"),W.get(110)&&U.push("showUnused"),W.get(138)&&U.push("showDeprecated"),U.join(" ")}}class EditorEmptySelectionClipboard extends EditorBooleanOption{constructor(){super(37,"emptySelectionClipboard",!0,{description:localize("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(C,W,H){return H&&C.emptySelectionClipboard}}class EditorFind extends BaseEditorOption{constructor(){const C={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",C,{"editor.find.cursorMoveOnType":{type:"boolean",default:C.cursorMoveOnType,description:localize("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:C.seedSearchStringFromSelection,enumDescriptions:[localize("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),localize("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),localize("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:localize("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:C.autoFindInSelection,enumDescriptions:[localize("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),localize("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),localize("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:localize("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:C.globalFindClipboard,description:localize("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:C.addExtraSpaceOnTop,description:localize("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:C.loop,description:localize("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{cursorMoveOnType:boolean(W.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof C.seedSearchStringFromSelection=="boolean"?C.seedSearchStringFromSelection?"always":"never":stringSet(W.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof C.autoFindInSelection=="boolean"?C.autoFindInSelection?"always":"never":stringSet(W.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:boolean(W.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:boolean(W.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:boolean(W.loop,this.defaultValue.loop)}}}class EditorFontLigatures extends BaseEditorOption{constructor(){super(51,"fontLigatures",EditorFontLigatures.OFF,{anyOf:[{type:"boolean",description:localize("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:localize("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:localize("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(C){return typeof C>"u"?this.defaultValue:typeof C=="string"?C==="false"?EditorFontLigatures.OFF:C==="true"?EditorFontLigatures.ON:C:C?EditorFontLigatures.ON:EditorFontLigatures.OFF}}EditorFontLigatures.OFF='"liga" off, "calt" off',EditorFontLigatures.ON='"liga" on, "calt" on';class EditorFontVariations extends BaseEditorOption{constructor(){super(54,"fontVariations",EditorFontVariations.OFF,{anyOf:[{type:"boolean",description:localize("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:localize("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:localize("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(C){return typeof C>"u"?this.defaultValue:typeof C=="string"?C==="false"?EditorFontVariations.OFF:C==="true"?EditorFontVariations.TRANSLATE:C:C?EditorFontVariations.TRANSLATE:EditorFontVariations.OFF}compute(C,W,H){return C.fontInfo.fontVariationSettings}}EditorFontVariations.OFF="normal",EditorFontVariations.TRANSLATE="translate";class EditorFontInfo extends ComputedEditorOption{constructor(){super(50)}compute(C,W,H){return C.fontInfo}}class EditorFontSize extends SimpleEditorOption{constructor(){super(52,"fontSize",EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:EDITOR_FONT_DEFAULTS.fontSize,description:localize("fontSize","Controls the font size in pixels.")})}validate(C){const W=EditorFloatOption.float(C,this.defaultValue);return W===0?EDITOR_FONT_DEFAULTS.fontSize:EditorFloatOption.clamp(W,6,100)}compute(C,W,H){return C.fontInfo.fontSize}}class EditorFontWeight extends BaseEditorOption{constructor(){super(53,"fontWeight",EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:EditorFontWeight.MINIMUM_VALUE,maximum:EditorFontWeight.MAXIMUM_VALUE,errorMessage:localize("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:EditorFontWeight.SUGGESTION_VALUES}],default:EDITOR_FONT_DEFAULTS.fontWeight,description:localize("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(C){return C==="normal"||C==="bold"?C:String(EditorIntOption.clampedInt(C,EDITOR_FONT_DEFAULTS.fontWeight,EditorFontWeight.MINIMUM_VALUE,EditorFontWeight.MAXIMUM_VALUE))}}EditorFontWeight.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],EditorFontWeight.MINIMUM_VALUE=1,EditorFontWeight.MAXIMUM_VALUE=1e3;class EditorGoToLocation extends BaseEditorOption{constructor(){const C={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},W={type:"string",enum:["peek","gotoAndPeek","goto"],default:C.multiple,enumDescriptions:[localize("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),localize("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),localize("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},H=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",C,{"editor.gotoLocation.multiple":{deprecationMessage:localize("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:localize("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:localize("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleDeclarations":Object.assign({description:localize("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleImplementations":Object.assign({description:localize("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},W),"editor.gotoLocation.multipleReferences":Object.assign({description:localize("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},W),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:C.alternativeDefinitionCommand,enum:H,description:localize("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:C.alternativeTypeDefinitionCommand,enum:H,description:localize("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:C.alternativeDeclarationCommand,enum:H,description:localize("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:C.alternativeImplementationCommand,enum:H,description:localize("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:C.alternativeReferenceCommand,enum:H,description:localize("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(C){var W,H,U,G,Z;if(!C||typeof C!="object")return this.defaultValue;const X=C;return{multiple:stringSet(X.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(W=X.multipleDefinitions)!==null&&W!==void 0?W:stringSet(X.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(H=X.multipleTypeDefinitions)!==null&&H!==void 0?H:stringSet(X.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(U=X.multipleDeclarations)!==null&&U!==void 0?U:stringSet(X.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(G=X.multipleImplementations)!==null&&G!==void 0?G:stringSet(X.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Z=X.multipleReferences)!==null&&Z!==void 0?Z:stringSet(X.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:EditorStringOption.string(X.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:EditorStringOption.string(X.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:EditorStringOption.string(X.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:EditorStringOption.string(X.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:EditorStringOption.string(X.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class EditorHover extends BaseEditorOption{constructor(){const C={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",C,{"editor.hover.enabled":{type:"boolean",default:C.enabled,description:localize("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:C.delay,minimum:0,maximum:1e4,description:localize("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:C.sticky,description:localize("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:C.hidingDelay,description:localize("hover.hidingDelay","Controls the delay in milliseconds after thich the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:C.above,description:localize("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),delay:EditorIntOption.clampedInt(W.delay,this.defaultValue.delay,0,1e4),sticky:boolean(W.sticky,this.defaultValue.sticky),hidingDelay:EditorIntOption.clampedInt(W.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:boolean(W.above,this.defaultValue.above)}}}class EditorLayoutInfoComputer extends ComputedEditorOption{constructor(){super(143)}compute(C,W,H){return EditorLayoutInfoComputer.computeLayout(W,{memory:C.memory,outerWidth:C.outerWidth,outerHeight:C.outerHeight,isDominatedByLongLines:C.isDominatedByLongLines,lineHeight:C.fontInfo.lineHeight,viewLineCount:C.viewLineCount,lineNumbersDigitCount:C.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:C.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:C.fontInfo.maxDigitWidth,pixelRatio:C.pixelRatio,glyphMarginDecorationLaneCount:C.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(C){const W=C.height/C.lineHeight,H=Math.floor(C.paddingTop/C.lineHeight);let U=Math.floor(C.paddingBottom/C.lineHeight);C.scrollBeyondLastLine&&(U=Math.max(U,W-1));const G=(H+C.viewLineCount+U)/(C.pixelRatio*C.height),Z=Math.floor(C.viewLineCount/G);return{typicalViewportLineCount:W,extraLinesBeforeFirstLine:H,extraLinesBeyondLastLine:U,desiredRatio:G,minimapLineCount:Z}}static _computeMinimapLayout(C,W){const H=C.outerWidth,U=C.outerHeight,G=C.pixelRatio;if(!C.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(G*U),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:U};const Z=W.stableMinimapLayoutInput,X=Z&&C.outerHeight===Z.outerHeight&&C.lineHeight===Z.lineHeight&&C.typicalHalfwidthCharacterWidth===Z.typicalHalfwidthCharacterWidth&&C.pixelRatio===Z.pixelRatio&&C.scrollBeyondLastLine===Z.scrollBeyondLastLine&&C.paddingTop===Z.paddingTop&&C.paddingBottom===Z.paddingBottom&&C.minimap.enabled===Z.minimap.enabled&&C.minimap.side===Z.minimap.side&&C.minimap.size===Z.minimap.size&&C.minimap.showSlider===Z.minimap.showSlider&&C.minimap.renderCharacters===Z.minimap.renderCharacters&&C.minimap.maxColumn===Z.minimap.maxColumn&&C.minimap.scale===Z.minimap.scale&&C.verticalScrollbarWidth===Z.verticalScrollbarWidth&&C.isViewportWrapping===Z.isViewportWrapping,Q=C.lineHeight,ee=C.typicalHalfwidthCharacterWidth,te=C.scrollBeyondLastLine,ie=C.minimap.renderCharacters;let ne=G>=2?Math.round(C.minimap.scale*2):C.minimap.scale;const oe=C.minimap.maxColumn,re=C.minimap.size,se=C.minimap.side,ae=C.verticalScrollbarWidth,ce=C.viewLineCount,le=C.remainingWidth,de=C.isViewportWrapping,ue=ie?2:3;let he=Math.floor(G*U);const fe=he/G;let ge=!1,me=!1,pe=ue*ne,ve=ne/G,we=1;if(re==="fill"||re==="fit"){const{typicalViewportLineCount:We,extraLinesBeforeFirstLine:Te,extraLinesBeyondLastLine:Ae,desiredRatio:Pe,minimapLineCount:$e}=EditorLayoutInfoComputer.computeContainedMinimapLineCount({viewLineCount:ce,scrollBeyondLastLine:te,paddingTop:C.paddingTop,paddingBottom:C.paddingBottom,height:U,lineHeight:Q,pixelRatio:G});if(ce/$e>1)ge=!0,me=!0,ne=1,pe=1,ve=ne/G;else{let ze=!1,Je=ne+1;if(re==="fit"){const Ke=Math.ceil((Te+ce+Ae)*pe);de&&X&&le<=W.stableFitRemainingWidth?(ze=!0,Je=W.stableFitMaxMinimapScale):ze=Ke>he}if(re==="fill"||ze){ge=!0;const Ke=ne;pe=Math.min(Q*G,Math.max(1,Math.floor(1/Pe))),de&&X&&le<=W.stableFitRemainingWidth&&(Je=W.stableFitMaxMinimapScale),ne=Math.min(Je,Math.max(1,Math.floor(pe/ue))),ne>Ke&&(we=Math.min(2,ne/Ke)),ve=ne/G/we,he=Math.ceil(Math.max(We,Te+ce+Ae)*pe),de?(W.stableMinimapLayoutInput=C,W.stableFitRemainingWidth=le,W.stableFitMaxMinimapScale=ne):(W.stableMinimapLayoutInput=null,W.stableFitRemainingWidth=0)}}}const Ce=Math.floor(oe*ve),xe=Math.min(Ce,Math.max(0,Math.floor((le-ae-2)*ve/(ee+ve)))+MINIMAP_GUTTER_WIDTH);let ye=Math.floor(G*xe);const Ie=ye/G;ye=Math.floor(ye*we);const Ee=ie?1:2,Oe=se==="left"?0:H-xe-ae;return{renderMinimap:Ee,minimapLeft:Oe,minimapWidth:xe,minimapHeightIsEditorHeight:ge,minimapIsSampling:me,minimapScale:ne,minimapLineHeight:pe,minimapCanvasInnerWidth:ye,minimapCanvasInnerHeight:he,minimapCanvasOuterWidth:Ie,minimapCanvasOuterHeight:fe}}static computeLayout(C,W){const H=W.outerWidth|0,U=W.outerHeight|0,G=W.lineHeight|0,Z=W.lineNumbersDigitCount|0,X=W.typicalHalfwidthCharacterWidth,Q=W.maxDigitWidth,ee=W.pixelRatio,te=W.viewLineCount,ie=C.get(135),ne=ie==="inherit"?C.get(134):ie,oe=ne==="inherit"?C.get(130):ne,re=C.get(133),se=W.isDominatedByLongLines,ae=C.get(57),ce=C.get(67).renderType!==0,le=C.get(68),de=C.get(104),ue=C.get(83),he=C.get(72),fe=C.get(102),ge=fe.verticalScrollbarSize,me=fe.verticalHasArrows,pe=fe.arrowSize,ve=fe.horizontalScrollbarSize,we=C.get(43),Ce=C.get(109)!=="never";let xe=C.get(65);we&&Ce&&(xe+=16);let ye=0;if(ce){const rt=Math.max(Z,le);ye=Math.round(rt*Q)}let Ie=0;ae&&(Ie=G*W.glyphMarginDecorationLaneCount);let Ee=0,Oe=Ee+Ie,We=Oe+ye,Te=We+xe;const Ae=H-Ie-ye-xe;let Pe=!1,$e=!1,Re=-1;ne==="inherit"&&se?(Pe=!0,$e=!0):oe==="on"||oe==="bounded"?$e=!0:oe==="wordWrapColumn"&&(Re=re);const ze=EditorLayoutInfoComputer._computeMinimapLayout({outerWidth:H,outerHeight:U,lineHeight:G,typicalHalfwidthCharacterWidth:X,pixelRatio:ee,scrollBeyondLastLine:de,paddingTop:ue.top,paddingBottom:ue.bottom,minimap:he,verticalScrollbarWidth:ge,viewLineCount:te,remainingWidth:Ae,isViewportWrapping:$e},W.memory||new ComputeOptionsMemory);ze.renderMinimap!==0&&ze.minimapLeft===0&&(Ee+=ze.minimapWidth,Oe+=ze.minimapWidth,We+=ze.minimapWidth,Te+=ze.minimapWidth);const Je=Ae-ze.minimapWidth,Ke=Math.max(1,Math.floor((Je-ge-2)/X)),Xe=me?pe:0;return $e&&(Re=Math.max(1,Ke),oe==="bounded"&&(Re=Math.min(Re,re))),{width:H,height:U,glyphMarginLeft:Ee,glyphMarginWidth:Ie,glyphMarginDecorationLaneCount:W.glyphMarginDecorationLaneCount,lineNumbersLeft:Oe,lineNumbersWidth:ye,decorationsLeft:We,decorationsWidth:xe,contentLeft:Te,contentWidth:Je,minimap:ze,viewportColumn:Ke,isWordWrapMinified:Pe,isViewportWrapping:$e,wrappingColumn:Re,verticalScrollbarWidth:ge,horizontalScrollbarHeight:ve,overviewRuler:{top:Xe,width:ge,height:U-2*Xe,right:0}}}}class WrappingStrategy extends BaseEditorOption{constructor(){super(137,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[localize("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),localize("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:localize("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(C){return stringSet(C,"simple",["simple","advanced"])}compute(C,W,H){return W.get(2)===2?"advanced":H}}class EditorLightbulb extends BaseEditorOption{constructor(){const C={enabled:!0};super(64,"lightbulb",C,{"editor.lightbulb.enabled":{type:"boolean",default:C.enabled,description:localize("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(C){return!C||typeof C!="object"?this.defaultValue:{enabled:boolean(C.enabled,this.defaultValue.enabled)}}}class EditorStickyScroll extends BaseEditorOption{constructor(){const C={enabled:!1,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(114,"stickyScroll",C,{"editor.stickyScroll.enabled":{type:"boolean",default:C.enabled,description:localize("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:C.maxLineCount,minimum:1,maximum:10,description:localize("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:C.defaultModel,description:localize("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:C.scrollWithEditor,description:localize("editor.stickyScroll.scrollWithEditor","Enable scrolling of the sticky scroll widget with the editor's horizontal scrollbar.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),maxLineCount:EditorIntOption.clampedInt(W.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:stringSet(W.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:boolean(W.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class EditorInlayHints extends BaseEditorOption{constructor(){const C={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(139,"inlayHints",C,{"editor.inlayHints.enabled":{type:"string",default:C.enabled,description:localize("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[localize("editor.inlayHints.on","Inlay hints are enabled"),localize("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",isMacintosh?"Ctrl+Option":"Ctrl+Alt"),localize("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",isMacintosh?"Ctrl+Option":"Ctrl+Alt"),localize("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:C.fontSize,markdownDescription:localize("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:C.fontFamily,markdownDescription:localize("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:C.padding,description:localize("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return typeof W.enabled=="boolean"&&(W.enabled=W.enabled?"on":"off"),{enabled:stringSet(W.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:EditorIntOption.clampedInt(W.fontSize,this.defaultValue.fontSize,0,100),fontFamily:EditorStringOption.string(W.fontFamily,this.defaultValue.fontFamily),padding:boolean(W.padding,this.defaultValue.padding)}}}class EditorLineDecorationsWidth extends BaseEditorOption{constructor(){super(65,"lineDecorationsWidth",10)}validate(C){return typeof C=="string"&&/^\d+(\.\d+)?ch$/.test(C)?-parseFloat(C.substring(0,C.length-2)):EditorIntOption.clampedInt(C,this.defaultValue,0,1e3)}compute(C,W,H){return H<0?EditorIntOption.clampedInt(-H*C.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):H}}class EditorLineHeight extends EditorFloatOption{constructor(){super(66,"lineHeight",EDITOR_FONT_DEFAULTS.lineHeight,C=>EditorFloatOption.clamp(C,0,150),{markdownDescription:localize("lineHeight",`Controls the line height.
|
|
112
112
|
- Use 0 to automatically compute the line height from the font size.
|
|
113
113
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
114
114
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(C,W,H){return C.fontInfo.lineHeight}}class EditorMinimap extends BaseEditorOption{constructor(){const C={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(72,"minimap",C,{"editor.minimap.enabled":{type:"boolean",default:C.enabled,description:localize("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:C.autohide,description:localize("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[localize("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),localize("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),localize("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:C.size,description:localize("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:C.side,description:localize("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:C.showSlider,description:localize("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:C.scale,minimum:1,maximum:3,enum:[1,2,3],description:localize("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:C.renderCharacters,description:localize("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:C.maxColumn,description:localize("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),autohide:boolean(W.autohide,this.defaultValue.autohide),size:stringSet(W.size,this.defaultValue.size,["proportional","fill","fit"]),side:stringSet(W.side,this.defaultValue.side,["right","left"]),showSlider:stringSet(W.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:boolean(W.renderCharacters,this.defaultValue.renderCharacters),scale:EditorIntOption.clampedInt(W.scale,1,1,3),maxColumn:EditorIntOption.clampedInt(W.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function _multiCursorModifierFromString(K){return K==="ctrlCmd"?isMacintosh?"metaKey":"ctrlKey":"altKey"}class EditorPadding extends BaseEditorOption{constructor(){super(83,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:localize("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:localize("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{top:EditorIntOption.clampedInt(W.top,0,0,1e3),bottom:EditorIntOption.clampedInt(W.bottom,0,0,1e3)}}}class EditorParameterHints extends BaseEditorOption{constructor(){const C={enabled:!0,cycle:!0};super(85,"parameterHints",C,{"editor.parameterHints.enabled":{type:"boolean",default:C.enabled,description:localize("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:C.cycle,description:localize("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),cycle:boolean(W.cycle,this.defaultValue.cycle)}}}class EditorPixelRatio extends ComputedEditorOption{constructor(){super(141)}compute(C,W,H){return C.pixelRatio}}class EditorQuickSuggestions extends BaseEditorOption{constructor(){const C={other:"on",comments:"off",strings:"off"},W=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[localize("on","Quick suggestions show inside the suggest widget"),localize("inline","Quick suggestions show as ghost text"),localize("off","Quick suggestions are disabled")]}];super(88,"quickSuggestions",C,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:W,default:C.strings,description:localize("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:W,default:C.comments,description:localize("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:W,default:C.other,description:localize("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:C,markdownDescription:localize("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=C}validate(C){if(typeof C=="boolean"){const ee=C?"on":"off";return{comments:ee,strings:ee,other:ee}}if(!C||typeof C!="object")return this.defaultValue;const{other:W,comments:H,strings:U}=C,G=["on","inline","off"];let Z,X,Q;return typeof W=="boolean"?Z=W?"on":"off":Z=stringSet(W,this.defaultValue.other,G),typeof H=="boolean"?X=H?"on":"off":X=stringSet(H,this.defaultValue.comments,G),typeof U=="boolean"?Q=U?"on":"off":Q=stringSet(U,this.defaultValue.strings,G),{other:Z,comments:X,strings:Q}}}class EditorRenderLineNumbersOption extends BaseEditorOption{constructor(){super(67,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[localize("lineNumbers.off","Line numbers are not rendered."),localize("lineNumbers.on","Line numbers are rendered as absolute number."),localize("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),localize("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:localize("lineNumbers","Controls the display of line numbers.")})}validate(C){let W=this.defaultValue.renderType,H=this.defaultValue.renderFn;return typeof C<"u"&&(typeof C=="function"?(W=4,H=C):C==="interval"?W=3:C==="relative"?W=2:C==="on"?W=1:W=0),{renderType:W,renderFn:H}}}function filterValidationDecorations(K){const C=K.get(97);return C==="editable"?K.get(90):C!=="on"}class EditorRulers extends BaseEditorOption{constructor(){const C=[],W={type:"number",description:localize("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(101,"rulers",C,{type:"array",items:{anyOf:[W,{type:["object"],properties:{column:W,color:{type:"string",description:localize("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:C,description:localize("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(C){if(Array.isArray(C)){const W=[];for(const H of C)if(typeof H=="number")W.push({column:EditorIntOption.clampedInt(H,0,0,1e4),color:null});else if(H&&typeof H=="object"){const U=H;W.push({column:EditorIntOption.clampedInt(U.column,0,0,1e4),color:U.color})}return W.sort((H,U)=>H.column-U.column),W}return this.defaultValue}}class ReadonlyMessage extends BaseEditorOption{constructor(){super(91,"readOnlyMessage",void 0)}validate(C){return!C||typeof C!="object"?this.defaultValue:C}}function _scrollbarVisibilityFromString(K,C){if(typeof K!="string")return C;switch(K){case"hidden":return 2;case"visible":return 3;default:return 1}}let EditorScrollbar$1=class extends BaseEditorOption{constructor(){const C={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(102,"scrollbar",C,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[localize("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),localize("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),localize("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:localize("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[localize("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),localize("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),localize("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:localize("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:C.verticalScrollbarSize,description:localize("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:C.horizontalScrollbarSize,description:localize("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:C.scrollByPage,description:localize("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C,H=EditorIntOption.clampedInt(W.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),U=EditorIntOption.clampedInt(W.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:EditorIntOption.clampedInt(W.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:_scrollbarVisibilityFromString(W.vertical,this.defaultValue.vertical),horizontal:_scrollbarVisibilityFromString(W.horizontal,this.defaultValue.horizontal),useShadows:boolean(W.useShadows,this.defaultValue.useShadows),verticalHasArrows:boolean(W.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:boolean(W.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:boolean(W.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:boolean(W.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:H,horizontalSliderSize:EditorIntOption.clampedInt(W.horizontalSliderSize,H,0,1e3),verticalScrollbarSize:U,verticalSliderSize:EditorIntOption.clampedInt(W.verticalSliderSize,U,0,1e3),scrollByPage:boolean(W.scrollByPage,this.defaultValue.scrollByPage)}}};const inUntrustedWorkspace="inUntrustedWorkspace",unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class UnicodeHighlight extends BaseEditorOption{constructor(){const C={nonBasicASCII:inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(124,"unicodeHighlight",C,{[unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,inUntrustedWorkspace],default:C.nonBasicASCII,description:localize("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:C.invisibleCharacters,description:localize("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:C.ambiguousCharacters,description:localize("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,inUntrustedWorkspace],default:C.includeComments,description:localize("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,inUntrustedWorkspace],default:C.includeStrings,description:localize("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:C.allowedCharacters,description:localize("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:C.allowedLocales,description:localize("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(C,W){let H=!1;W.allowedCharacters&&C&&(equals$1(C.allowedCharacters,W.allowedCharacters)||(C=Object.assign(Object.assign({},C),{allowedCharacters:W.allowedCharacters}),H=!0)),W.allowedLocales&&C&&(equals$1(C.allowedLocales,W.allowedLocales)||(C=Object.assign(Object.assign({},C),{allowedLocales:W.allowedLocales}),H=!0));const U=super.applyUpdate(C,W);return H?new ApplyUpdateResult(U.newValue,!0):U}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{nonBasicASCII:primitiveSet(W.nonBasicASCII,inUntrustedWorkspace,[!0,!1,inUntrustedWorkspace]),invisibleCharacters:boolean(W.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:boolean(W.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:primitiveSet(W.includeComments,inUntrustedWorkspace,[!0,!1,inUntrustedWorkspace]),includeStrings:primitiveSet(W.includeStrings,inUntrustedWorkspace,[!0,!1,inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(C.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(C.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(C,W){if(typeof C!="object"||!C)return W;const H={};for(const[U,G]of Object.entries(C))G===!0&&(H[U]=!0);return H}}class InlineEditorSuggest extends BaseEditorOption{constructor(){const C={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1};super(62,"inlineSuggest",C,{"editor.inlineSuggest.enabled":{type:"boolean",default:C.enabled,description:localize("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:C.showToolbar,enum:["always","onHover"],enumDescriptions:[localize("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),localize("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:localize("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:C.suppressSuggestions,description:localize("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),mode:stringSet(W.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:stringSet(W.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:boolean(W.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:boolean(W.keepOnBlur,this.defaultValue.keepOnBlur)}}}class BracketPairColorization extends BaseEditorOption{constructor(){const C={enabled:EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",C,{"editor.bracketPairColorization.enabled":{type:"boolean",default:C.enabled,markdownDescription:localize("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:C.independentColorPoolPerBracketType,description:localize("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:boolean(W.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class GuideOptions extends BaseEditorOption{constructor(){const C={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",C,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[localize("editor.guides.bracketPairs.true","Enables bracket pair guides."),localize("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),localize("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:C.bracketPairs,description:localize("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[localize("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),localize("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),localize("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:C.bracketPairsHorizontal,description:localize("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:C.highlightActiveBracketPair,description:localize("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:C.indentation,description:localize("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[localize("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),localize("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),localize("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:C.highlightActiveIndentation,description:localize("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{bracketPairs:primitiveSet(W.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:primitiveSet(W.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:boolean(W.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:boolean(W.indentation,this.defaultValue.indentation),highlightActiveIndentation:primitiveSet(W.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function primitiveSet(K,C,W){const H=W.indexOf(K);return H===-1?C:W[H]}class EditorSuggest extends BaseEditorOption{constructor(){const C={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(117,"suggest",C,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[localize("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),localize("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:C.insertMode,description:localize("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:C.filterGraceful,description:localize("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:C.localityBonus,description:localize("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:C.shareSuggestSelections,markdownDescription:localize("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[localize("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),localize("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),localize("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),localize("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:C.selectionMode,markdownDescription:localize("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:C.snippetsPreventQuickSuggestions,description:localize("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:C.showIcons,description:localize("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:C.showStatusBar,description:localize("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:C.preview,description:localize("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:C.showInlineDetails,description:localize("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:localize("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:localize("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:localize("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{insertMode:stringSet(W.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:boolean(W.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:boolean(W.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:boolean(W.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:boolean(W.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:stringSet(W.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:boolean(W.showIcons,this.defaultValue.showIcons),showStatusBar:boolean(W.showStatusBar,this.defaultValue.showStatusBar),preview:boolean(W.preview,this.defaultValue.preview),previewMode:stringSet(W.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:boolean(W.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:boolean(W.showMethods,this.defaultValue.showMethods),showFunctions:boolean(W.showFunctions,this.defaultValue.showFunctions),showConstructors:boolean(W.showConstructors,this.defaultValue.showConstructors),showDeprecated:boolean(W.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:boolean(W.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:boolean(W.showFields,this.defaultValue.showFields),showVariables:boolean(W.showVariables,this.defaultValue.showVariables),showClasses:boolean(W.showClasses,this.defaultValue.showClasses),showStructs:boolean(W.showStructs,this.defaultValue.showStructs),showInterfaces:boolean(W.showInterfaces,this.defaultValue.showInterfaces),showModules:boolean(W.showModules,this.defaultValue.showModules),showProperties:boolean(W.showProperties,this.defaultValue.showProperties),showEvents:boolean(W.showEvents,this.defaultValue.showEvents),showOperators:boolean(W.showOperators,this.defaultValue.showOperators),showUnits:boolean(W.showUnits,this.defaultValue.showUnits),showValues:boolean(W.showValues,this.defaultValue.showValues),showConstants:boolean(W.showConstants,this.defaultValue.showConstants),showEnums:boolean(W.showEnums,this.defaultValue.showEnums),showEnumMembers:boolean(W.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:boolean(W.showKeywords,this.defaultValue.showKeywords),showWords:boolean(W.showWords,this.defaultValue.showWords),showColors:boolean(W.showColors,this.defaultValue.showColors),showFiles:boolean(W.showFiles,this.defaultValue.showFiles),showReferences:boolean(W.showReferences,this.defaultValue.showReferences),showFolders:boolean(W.showFolders,this.defaultValue.showFolders),showTypeParameters:boolean(W.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:boolean(W.showSnippets,this.defaultValue.showSnippets),showUsers:boolean(W.showUsers,this.defaultValue.showUsers),showIssues:boolean(W.showIssues,this.defaultValue.showIssues)}}}class SmartSelect extends BaseEditorOption{constructor(){super(112,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:localize("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:localize("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(C){return!C||typeof C!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:boolean(C.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:boolean(C.selectSubwords,this.defaultValue.selectSubwords)}}}class WrappingIndentOption extends BaseEditorOption{constructor(){super(136,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[localize("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),localize("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),localize("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),localize("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:localize("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(C){switch(C){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(C,W,H){return W.get(2)===2?0:H}}class EditorWrappingInfoComputer extends ComputedEditorOption{constructor(){super(144)}compute(C,W,H){const U=W.get(143);return{isDominatedByLongLines:C.isDominatedByLongLines,isWordWrapMinified:U.isWordWrapMinified,isViewportWrapping:U.isViewportWrapping,wrappingColumn:U.wrappingColumn}}}class EditorDropIntoEditor extends BaseEditorOption{constructor(){const C={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",C,{"editor.dropIntoEditor.enabled":{type:"boolean",default:C.enabled,markdownDescription:localize("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:localize("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[localize("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),localize("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),showDropSelector:stringSet(W.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class EditorPasteAs extends BaseEditorOption{constructor(){const C={enabled:!0,showPasteSelector:"afterPaste"};super(84,"pasteAs",C,{"editor.pasteAs.enabled":{type:"boolean",default:C.enabled,markdownDescription:localize("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:localize("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[localize("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),localize("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(C){if(!C||typeof C!="object")return this.defaultValue;const W=C;return{enabled:boolean(W.enabled,this.defaultValue.enabled),showPasteSelector:stringSet(W.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const DEFAULT_WINDOWS_FONT_FAMILY="Consolas, 'Courier New', monospace",DEFAULT_MAC_FONT_FAMILY="Menlo, Monaco, 'Courier New', monospace",DEFAULT_LINUX_FONT_FAMILY="'Droid Sans Mono', 'monospace', monospace",EDITOR_FONT_DEFAULTS={fontFamily:isMacintosh?DEFAULT_MAC_FONT_FAMILY:isLinux?DEFAULT_LINUX_FONT_FAMILY:DEFAULT_WINDOWS_FONT_FAMILY,fontWeight:"normal",fontSize:isMacintosh?12:14,lineHeight:0,letterSpacing:0},editorOptionsRegistry=[];function register$2(K){return editorOptionsRegistry[K.id]=K,K}const EditorOptions={acceptSuggestionOnCommitCharacter:register$2(new EditorBooleanOption(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:localize("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:register$2(new EditorStringEnumOption(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",localize("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:localize("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:register$2(new EditorAccessibilitySupport),accessibilityPageSize:register$2(new EditorIntOption(3,"accessibilityPageSize",10,1,1073741824,{description:localize("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:register$2(new EditorStringOption(4,"ariaLabel",localize("editorViewAccessibleLabel","Editor content"))),ariaRequired:register$2(new EditorBooleanOption(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:register$2(new EditorBooleanOption(8,"screenReaderAnnounceInlineSuggestion",!0,{description:localize("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:register$2(new EditorStringEnumOption(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",localize("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),localize("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:localize("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:register$2(new EditorStringEnumOption(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",localize("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),localize("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:localize("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:register$2(new EditorStringEnumOption(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",localize("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:localize("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:register$2(new EditorStringEnumOption(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",localize("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:localize("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:register$2(new EditorStringEnumOption(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",localize("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),localize("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:localize("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:register$2(new EditorEnumOption(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],_autoIndentFromString,{enumDescriptions:[localize("editor.autoIndent.none","The editor will not insert indentation automatically."),localize("editor.autoIndent.keep","The editor will keep the current line's indentation."),localize("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),localize("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),localize("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:localize("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:register$2(new EditorBooleanOption(13,"automaticLayout",!1)),autoSurround:register$2(new EditorStringEnumOption(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[localize("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),localize("editor.autoSurround.quotes","Surround with quotes but not brackets."),localize("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:localize("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:register$2(new BracketPairColorization),bracketPairGuides:register$2(new GuideOptions),stickyTabStops:register$2(new EditorBooleanOption(115,"stickyTabStops",!1,{description:localize("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:register$2(new EditorBooleanOption(17,"codeLens",!0,{description:localize("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:register$2(new EditorStringOption(18,"codeLensFontFamily","",{description:localize("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:register$2(new EditorIntOption(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:localize("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:register$2(new EditorBooleanOption(20,"colorDecorators",!0,{description:localize("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:register$2(new EditorStringEnumOption(146,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[localize("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),localize("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),localize("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:localize("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:register$2(new EditorIntOption(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:localize("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:register$2(new EditorBooleanOption(22,"columnSelection",!1,{description:localize("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:register$2(new EditorComments),contextmenu:register$2(new EditorBooleanOption(24,"contextmenu",!0)),copyWithSyntaxHighlighting:register$2(new EditorBooleanOption(25,"copyWithSyntaxHighlighting",!0,{description:localize("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:register$2(new EditorEnumOption(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],_cursorBlinkingStyleFromString,{description:localize("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:register$2(new EditorStringEnumOption(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[localize("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),localize("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),localize("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:localize("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:register$2(new EditorEnumOption(28,"cursorStyle",TextEditorCursorStyle$1.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],_cursorStyleFromString,{description:localize("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:register$2(new EditorIntOption(29,"cursorSurroundingLines",0,0,1073741824,{description:localize("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:register$2(new EditorStringEnumOption(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[localize("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),localize("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:localize("cursorSurroundingLinesStyle","Controls when `#cursorSurroundingLines#` should be enforced.")})),cursorWidth:register$2(new EditorIntOption(31,"cursorWidth",0,0,1073741824,{markdownDescription:localize("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:register$2(new EditorBooleanOption(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:register$2(new EditorBooleanOption(33,"disableMonospaceOptimizations",!1)),domReadOnly:register$2(new EditorBooleanOption(34,"domReadOnly",!1)),dragAndDrop:register$2(new EditorBooleanOption(35,"dragAndDrop",!0,{description:localize("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:register$2(new EditorEmptySelectionClipboard),dropIntoEditor:register$2(new EditorDropIntoEditor),stickyScroll:register$2(new EditorStickyScroll),experimentalWhitespaceRendering:register$2(new EditorStringEnumOption(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[localize("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),localize("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),localize("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:localize("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:register$2(new EditorStringOption(39,"extraEditorClassName","")),fastScrollSensitivity:register$2(new EditorFloatOption(40,"fastScrollSensitivity",5,K=>K<=0?5:K,{markdownDescription:localize("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:register$2(new EditorFind),fixedOverflowWidgets:register$2(new EditorBooleanOption(42,"fixedOverflowWidgets",!1)),folding:register$2(new EditorBooleanOption(43,"folding",!0,{description:localize("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:register$2(new EditorStringEnumOption(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[localize("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),localize("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:localize("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:register$2(new EditorBooleanOption(45,"foldingHighlight",!0,{description:localize("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:register$2(new EditorBooleanOption(46,"foldingImportsByDefault",!1,{description:localize("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:register$2(new EditorIntOption(47,"foldingMaximumRegions",5e3,10,65e3,{description:localize("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:register$2(new EditorBooleanOption(48,"unfoldOnClickAfterEndOfLine",!1,{description:localize("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:register$2(new EditorStringOption(49,"fontFamily",EDITOR_FONT_DEFAULTS.fontFamily,{description:localize("fontFamily","Controls the font family.")})),fontInfo:register$2(new EditorFontInfo),fontLigatures2:register$2(new EditorFontLigatures),fontSize:register$2(new EditorFontSize),fontWeight:register$2(new EditorFontWeight),fontVariations:register$2(new EditorFontVariations),formatOnPaste:register$2(new EditorBooleanOption(55,"formatOnPaste",!1,{description:localize("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:register$2(new EditorBooleanOption(56,"formatOnType",!1,{description:localize("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:register$2(new EditorBooleanOption(57,"glyphMargin",!0,{description:localize("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:register$2(new EditorGoToLocation),hideCursorInOverviewRuler:register$2(new EditorBooleanOption(59,"hideCursorInOverviewRuler",!1,{description:localize("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:register$2(new EditorHover),inDiffEditor:register$2(new EditorBooleanOption(61,"inDiffEditor",!1)),letterSpacing:register$2(new EditorFloatOption(63,"letterSpacing",EDITOR_FONT_DEFAULTS.letterSpacing,K=>EditorFloatOption.clamp(K,-5,20),{description:localize("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:register$2(new EditorLightbulb),lineDecorationsWidth:register$2(new EditorLineDecorationsWidth),lineHeight:register$2(new EditorLineHeight),lineNumbers:register$2(new EditorRenderLineNumbersOption),lineNumbersMinChars:register$2(new EditorIntOption(68,"lineNumbersMinChars",5,1,300)),linkedEditing:register$2(new EditorBooleanOption(69,"linkedEditing",!1,{description:localize("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:register$2(new EditorBooleanOption(70,"links",!0,{description:localize("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:register$2(new EditorStringEnumOption(71,"matchBrackets","always",["always","near","never"],{description:localize("matchBrackets","Highlight matching brackets.")})),minimap:register$2(new EditorMinimap),mouseStyle:register$2(new EditorStringEnumOption(73,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:register$2(new EditorFloatOption(74,"mouseWheelScrollSensitivity",1,K=>K===0?1:K,{markdownDescription:localize("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:register$2(new EditorBooleanOption(75,"mouseWheelZoom",!1,{markdownDescription:localize("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:register$2(new EditorBooleanOption(76,"multiCursorMergeOverlapping",!0,{description:localize("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:register$2(new EditorEnumOption(77,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],_multiCursorModifierFromString,{markdownEnumDescriptions:[localize("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),localize("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:localize({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:register$2(new EditorStringEnumOption(78,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[localize("multiCursorPaste.spread","Each cursor pastes a single line of the text."),localize("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:localize("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:register$2(new EditorIntOption(79,"multiCursorLimit",1e4,1,1e5,{markdownDescription:localize("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:register$2(new EditorBooleanOption(80,"occurrencesHighlight",!0,{description:localize("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:register$2(new EditorBooleanOption(81,"overviewRulerBorder",!0,{description:localize("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:register$2(new EditorIntOption(82,"overviewRulerLanes",3,0,3)),padding:register$2(new EditorPadding),pasteAs:register$2(new EditorPasteAs),parameterHints:register$2(new EditorParameterHints),peekWidgetDefaultFocus:register$2(new EditorStringEnumOption(86,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[localize("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),localize("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:localize("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:register$2(new EditorBooleanOption(87,"definitionLinkOpensInPeek",!1,{description:localize("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:register$2(new EditorQuickSuggestions),quickSuggestionsDelay:register$2(new EditorIntOption(89,"quickSuggestionsDelay",10,0,1073741824,{description:localize("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:register$2(new EditorBooleanOption(90,"readOnly",!1)),readOnlyMessage:register$2(new ReadonlyMessage),renameOnType:register$2(new EditorBooleanOption(92,"renameOnType",!1,{description:localize("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:localize("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:register$2(new EditorBooleanOption(93,"renderControlCharacters",!0,{description:localize("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:register$2(new EditorStringEnumOption(94,"renderFinalNewline",isLinux?"dimmed":"on",["off","on","dimmed"],{description:localize("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:register$2(new EditorStringEnumOption(95,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",localize("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:localize("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:register$2(new EditorBooleanOption(96,"renderLineHighlightOnlyWhenFocus",!1,{description:localize("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:register$2(new EditorStringEnumOption(97,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:register$2(new EditorStringEnumOption(98,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",localize("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),localize("renderWhitespace.selection","Render whitespace characters only on selected text."),localize("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:localize("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:register$2(new EditorIntOption(99,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:register$2(new EditorBooleanOption(100,"roundedSelection",!0,{description:localize("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:register$2(new EditorRulers),scrollbar:register$2(new EditorScrollbar$1),scrollBeyondLastColumn:register$2(new EditorIntOption(103,"scrollBeyondLastColumn",4,0,1073741824,{description:localize("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:register$2(new EditorBooleanOption(104,"scrollBeyondLastLine",!0,{description:localize("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:register$2(new EditorBooleanOption(105,"scrollPredominantAxis",!0,{description:localize("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:register$2(new EditorBooleanOption(106,"selectionClipboard",!0,{description:localize("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:isLinux})),selectionHighlight:register$2(new EditorBooleanOption(107,"selectionHighlight",!0,{description:localize("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:register$2(new EditorBooleanOption(108,"selectOnLineNumbers",!0)),showFoldingControls:register$2(new EditorStringEnumOption(109,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[localize("showFoldingControls.always","Always show the folding controls."),localize("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),localize("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:localize("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:register$2(new EditorBooleanOption(110,"showUnused",!0,{description:localize("showUnused","Controls fading out of unused code.")})),showDeprecated:register$2(new EditorBooleanOption(138,"showDeprecated",!0,{description:localize("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:register$2(new EditorInlayHints),snippetSuggestions:register$2(new EditorStringEnumOption(111,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[localize("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),localize("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),localize("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),localize("snippetSuggestions.none","Do not show snippet suggestions.")],description:localize("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:register$2(new SmartSelect),smoothScrolling:register$2(new EditorBooleanOption(113,"smoothScrolling",!1,{description:localize("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:register$2(new EditorIntOption(116,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:register$2(new EditorSuggest),inlineSuggest:register$2(new InlineEditorSuggest),inlineCompletionsAccessibilityVerbose:register$2(new EditorBooleanOption(147,"inlineCompletionsAccessibilityVerbose",!1,{description:localize("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:register$2(new EditorIntOption(118,"suggestFontSize",0,0,1e3,{markdownDescription:localize("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:register$2(new EditorIntOption(119,"suggestLineHeight",0,0,1e3,{markdownDescription:localize("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:register$2(new EditorBooleanOption(120,"suggestOnTriggerCharacters",!0,{description:localize("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:register$2(new EditorStringEnumOption(121,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[localize("suggestSelection.first","Always select the first suggestion."),localize("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),localize("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:localize("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:register$2(new EditorStringEnumOption(122,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[localize("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),localize("tabCompletion.off","Disable tab completions."),localize("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:localize("tabCompletion","Enables tab completions.")})),tabIndex:register$2(new EditorIntOption(123,"tabIndex",0,-1,1073741824)),unicodeHighlight:register$2(new UnicodeHighlight),unusualLineTerminators:register$2(new EditorStringEnumOption(125,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[localize("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),localize("unusualLineTerminators.off","Unusual line terminators are ignored."),localize("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:localize("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:register$2(new EditorBooleanOption(126,"useShadowDOM",!0)),useTabStops:register$2(new EditorBooleanOption(127,"useTabStops",!0,{description:localize("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:register$2(new EditorStringEnumOption(128,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[localize("wordBreak.normal","Use the default line break rule."),localize("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:localize("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:register$2(new EditorStringOption(129,"wordSeparators",USUAL_WORD_SEPARATORS,{description:localize("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:register$2(new EditorStringEnumOption(130,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[localize("wordWrap.off","Lines will never wrap."),localize("wordWrap.on","Lines will wrap at the viewport width."),localize({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),localize({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:localize({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:register$2(new EditorStringOption(131,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:register$2(new EditorStringOption(132,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:register$2(new EditorIntOption(133,"wordWrapColumn",80,1,1073741824,{markdownDescription:localize({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:register$2(new EditorStringEnumOption(134,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:register$2(new EditorStringEnumOption(135,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:register$2(new EditorClassName),defaultColorDecorators:register$2(new EditorBooleanOption(145,"defaultColorDecorators",!1,{markdownDescription:localize("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:register$2(new EditorPixelRatio),tabFocusMode:register$2(new EditorBooleanOption(142,"tabFocusMode",!1,{markdownDescription:localize("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:register$2(new EditorLayoutInfoComputer),wrappingInfo:register$2(new EditorWrappingInfoComputer),wrappingIndent:register$2(new WrappingIndentOption),wrappingStrategy:register$2(new WrappingStrategy)};class ErrorHandler{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(C){setTimeout(()=>{throw C.stack?ErrorNoTelemetry.isErrorNoTelemetry(C)?new ErrorNoTelemetry(C.message+`
|
|
@@ -1232,7 +1232,7 @@ The flag will not be saved for the future.
|
|
|
1232
1232
|
`):void 0}:{range:Range$5.fromPositions(this.position),text:"",rejectReason:W.length>0?W.join(`
|
|
1233
1233
|
`):void 0}})}provideRenameEdits(C,W){return __awaiter$e(this,void 0,void 0,function*(){return this._provideRenameEdits(C,this._providerRenameIdx,[],W)})}_provideRenameEdits(C,W,H,U){return __awaiter$e(this,void 0,void 0,function*(){const G=this._providers[W];if(!G)return{edits:[],rejectReason:H.join(`
|
|
1234
1234
|
`)};const Z=yield G.provideRenameEdits(this.model,this.position,C,U);if(Z){if(Z.rejectReason)return this._provideRenameEdits(C,W+1,H.concat(Z.rejectReason),U)}else return this._provideRenameEdits(C,W+1,H.concat(localize("no result","No result.")),U);return Z})}}function rename(K,C,W,H){return __awaiter$e(this,void 0,void 0,function*(){const U=new RenameSkeleton(C,W,K),G=yield U.resolveRenameLocation(CancellationToken.None);return G!=null&&G.rejectReason?{edits:[],rejectReason:G.rejectReason}:U.provideRenameEdits(H,CancellationToken.None)})}let RenameController=RenameController_1=class{static get(C){return C.getContribution(RenameController_1.ID)}constructor(C,W,H,U,G,Z,X,Q){this.editor=C,this._instaService=W,this._notificationService=H,this._bulkEditService=U,this._progressService=G,this._logService=Z,this._configService=X,this._languageFeaturesService=Q,this._disposableStore=new DisposableStore,this._cts=new CancellationTokenSource$1,this._renameInputField=this._disposableStore.add(this._instaService.createInstance(RenameInputField,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var C,W;return __awaiter$e(this,void 0,void 0,function*(){if(this._cts.dispose(!0),this._cts=new CancellationTokenSource$1,!this.editor.hasModel())return;const H=this.editor.getPosition(),U=new RenameSkeleton(this.editor.getModel(),H,this._languageFeaturesService.renameProvider);if(!U.hasProvider())return;const G=new EditorStateCancellationTokenSource(this.editor,5,void 0,this._cts.token);let Z;try{const re=U.resolveRenameLocation(G.token);this._progressService.showWhile(re,250),Z=yield re}catch(re){(C=MessageController.get(this.editor))===null||C===void 0||C.showMessage(re||localize("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),H);return}finally{G.dispose()}if(!Z)return;if(Z.rejectReason){(W=MessageController.get(this.editor))===null||W===void 0||W.showMessage(Z.rejectReason,H);return}if(G.token.isCancellationRequested)return;const X=new EditorStateCancellationTokenSource(this.editor,5,Z.range,this._cts.token),Q=this.editor.getSelection();let ee=0,te=Z.text.length;!Range$5.isEmpty(Q)&&!Range$5.spansMultipleLines(Q)&&Range$5.containsRange(Z.range,Q)&&(ee=Math.max(0,Q.startColumn-Z.range.startColumn),te=Math.min(Z.range.endColumn,Q.endColumn)-Z.range.startColumn);const ie=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),ne=yield this._renameInputField.getInput(Z.range,Z.text,ee,te,ie,X.token);if(typeof ne=="boolean"){ne&&this.editor.focus(),X.dispose();return}this.editor.focus();const oe=raceCancellation(U.provideRenameEdits(ne.newName,X.token),X.token).then(re=>__awaiter$e(this,void 0,void 0,function*(){if(!(!re||!this.editor.hasModel())){if(re.rejectReason){this._notificationService.info(re.rejectReason);return}this.editor.setSelection(Range$5.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(re,{editor:this.editor,showPreview:ne.wantsPreview,label:localize("label","Renaming '{0}' to '{1}'",Z==null?void 0:Z.text,ne.newName),code:"undoredo.rename",quotableLabel:localize("quotableLabel","Renaming {0} to {1}",Z==null?void 0:Z.text,ne.newName),respectAutoSaveConfig:!0}).then(se=>{se.ariaSummary&&alert(localize("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",Z.text,ne.newName,se.ariaSummary))}).catch(se=>{this._notificationService.error(localize("rename.failedApply","Rename failed to apply edits")),this._logService.error(se)})}}),re=>{this._notificationService.error(localize("rename.failed","Rename failed to compute edits")),this._logService.error(re)}).finally(()=>{X.dispose()});return this._progressService.showWhile(oe,250),oe})}acceptRenameInput(C){this._renameInputField.acceptInput(C)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};RenameController.ID="editor.contrib.renameController",RenameController=RenameController_1=__decorate$k([__param$k(1,IInstantiationService),__param$k(2,INotificationService),__param$k(3,IBulkEditService),__param$k(4,IEditorProgressService),__param$k(5,ILogService),__param$k(6,ITextResourceConfigurationService),__param$k(7,ILanguageFeaturesService)],RenameController);class RenameAction extends EditorAction{constructor(){super({id:"editor.action.rename",label:localize("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:ContextKeyExpr.and(EditorContextKeys.writable,EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:EditorContextKeys.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(C,W){const H=C.get(ICodeEditorService),[U,G]=Array.isArray(W)&&W||[void 0,void 0];return URI.isUri(U)&&Position$4.isIPosition(G)?H.openCodeEditor({resource:U},H.getActiveCodeEditor()).then(Z=>{Z&&(Z.setPosition(G),Z.invokeWithinContext(X=>(this.reportTelemetry(X,Z),this.run(X,Z))))},onUnexpectedError):super.runCommand(C,W)}run(C,W){const H=RenameController.get(W);return H?H.run():Promise.resolve()}}registerEditorContribution(RenameController.ID,RenameController,4),registerEditorAction(RenameAction);const RenameCommand=EditorCommand.bindToContribution(RenameController.get);registerEditorCommand(new RenameCommand({id:"acceptRenameInput",precondition:CONTEXT_RENAME_INPUT_VISIBLE,handler:K=>K.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:ContextKeyExpr.and(EditorContextKeys.focus,ContextKeyExpr.not("isComposing")),primary:3}})),registerEditorCommand(new RenameCommand({id:"acceptRenameInputWithPreview",precondition:ContextKeyExpr.and(CONTEXT_RENAME_INPUT_VISIBLE,ContextKeyExpr.has("config.editor.rename.enablePreview")),handler:K=>K.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:ContextKeyExpr.and(EditorContextKeys.focus,ContextKeyExpr.not("isComposing")),primary:1024+3}})),registerEditorCommand(new RenameCommand({id:"cancelRenameInput",precondition:CONTEXT_RENAME_INPUT_VISIBLE,handler:K=>K.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:EditorContextKeys.focus,primary:9,secondary:[1033]}})),registerModelAndPositionCommand("_executeDocumentRenameProvider",function(K,C,W,...H){const[U]=H;assertType(typeof U=="string");const{renameProvider:G}=K.get(ILanguageFeaturesService);return rename(G,C,W,U)}),registerModelAndPositionCommand("_executePrepareRename",function(K,C,W){return __awaiter$e(this,void 0,void 0,function*(){const{renameProvider:H}=K.get(ILanguageFeaturesService),G=yield new RenameSkeleton(C,W,H).resolveRenameLocation(CancellationToken.None);if(G!=null&&G.rejectReason)throw new Error(G.rejectReason);return G})}),Registry.as(Extensions$6.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:localize("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});function reverseEndianness(K){for(let C=0,W=K.length;C<W;C+=4){const H=K[C+0],U=K[C+1],G=K[C+2],Z=K[C+3];K[C+0]=Z,K[C+1]=G,K[C+2]=U,K[C+3]=H}}function toLittleEndianBuffer(K){const C=new Uint8Array(K.buffer,K.byteOffset,K.length*4);return isLittleEndian()||reverseEndianness(C),VSBuffer.wrap(C)}function encodeSemanticTokensDto(K){const C=new Uint32Array(encodeSemanticTokensDtoSize(K));let W=0;if(C[W++]=K.id,K.type==="full")C[W++]=1,C[W++]=K.data.length,C.set(K.data,W),W+=K.data.length;else{C[W++]=2,C[W++]=K.deltas.length;for(const H of K.deltas)C[W++]=H.start,C[W++]=H.deleteCount,H.data?(C[W++]=H.data.length,C.set(H.data,W),W+=H.data.length):C[W++]=0}return toLittleEndianBuffer(C)}function encodeSemanticTokensDtoSize(K){let C=0;if(C+=1+1,K.type==="full")C+=1+K.data.length;else{C+=1,C+=(1+1+1)*K.deltas.length;for(const W of K.deltas)W.data&&(C+=W.data.length)}return C}var __awaiter$d=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};function isSemanticTokens(K){return K&&!!K.data}function isSemanticTokensEdits(K){return K&&Array.isArray(K.edits)}class DocumentSemanticTokensResult{constructor(C,W,H){this.provider=C,this.tokens=W,this.error=H}}function hasDocumentSemanticTokensProvider(K,C){return K.has(C)}function getDocumentSemanticTokensProviders(K,C){const W=K.orderedGroups(C);return W.length>0?W[0]:[]}function getDocumentSemanticTokens(K,C,W,H,U){return __awaiter$d(this,void 0,void 0,function*(){const G=getDocumentSemanticTokensProviders(K,C),Z=yield Promise.all(G.map(X=>__awaiter$d(this,void 0,void 0,function*(){let Q,ee=null;try{Q=yield X.provideDocumentSemanticTokens(C,X===W?H:null,U)}catch(te){ee=te,Q=null}return(!Q||!isSemanticTokens(Q)&&!isSemanticTokensEdits(Q))&&(Q=null),new DocumentSemanticTokensResult(X,Q,ee)})));for(const X of Z){if(X.error)throw X.error;if(X.tokens)return X}return Z.length>0?Z[0]:null})}function _getDocumentSemanticTokensProviderHighestGroup(K,C){const W=K.orderedGroups(C);return W.length>0?W[0]:null}class DocumentRangeSemanticTokensResult{constructor(C,W){this.provider=C,this.tokens=W}}function hasDocumentRangeSemanticTokensProvider(K,C){return K.has(C)}function getDocumentRangeSemanticTokensProviders(K,C){const W=K.orderedGroups(C);return W.length>0?W[0]:[]}function getDocumentRangeSemanticTokens(K,C,W,H){return __awaiter$d(this,void 0,void 0,function*(){const U=getDocumentRangeSemanticTokensProviders(K,C),G=yield Promise.all(U.map(Z=>__awaiter$d(this,void 0,void 0,function*(){let X;try{X=yield Z.provideDocumentRangeSemanticTokens(C,W,H)}catch(Q){onUnexpectedExternalError(Q),X=null}return(!X||!isSemanticTokens(X))&&(X=null),new DocumentRangeSemanticTokensResult(Z,X)})));for(const Z of G)if(Z.tokens)return Z;return G.length>0?G[0]:null})}CommandsRegistry.registerCommand("_provideDocumentSemanticTokensLegend",(K,...C)=>__awaiter$d(void 0,void 0,void 0,function*(){const[W]=C;assertType(W instanceof URI);const H=K.get(IModelService).getModel(W);if(!H)return;const{documentSemanticTokensProvider:U}=K.get(ILanguageFeaturesService),G=_getDocumentSemanticTokensProviderHighestGroup(U,H);return G?G[0].getLegend():K.get(ICommandService).executeCommand("_provideDocumentRangeSemanticTokensLegend",W)})),CommandsRegistry.registerCommand("_provideDocumentSemanticTokens",(K,...C)=>__awaiter$d(void 0,void 0,void 0,function*(){const[W]=C;assertType(W instanceof URI);const H=K.get(IModelService).getModel(W);if(!H)return;const{documentSemanticTokensProvider:U}=K.get(ILanguageFeaturesService);if(!hasDocumentSemanticTokensProvider(U,H))return K.get(ICommandService).executeCommand("_provideDocumentRangeSemanticTokens",W,H.getFullModelRange());const G=yield getDocumentSemanticTokens(U,H,null,null,CancellationToken.None);if(!G)return;const{provider:Z,tokens:X}=G;if(!X||!isSemanticTokens(X))return;const Q=encodeSemanticTokensDto({id:0,type:"full",data:X.data});return X.resultId&&Z.releaseDocumentSemanticTokens(X.resultId),Q})),CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokensLegend",(K,...C)=>__awaiter$d(void 0,void 0,void 0,function*(){const[W,H]=C;assertType(W instanceof URI);const U=K.get(IModelService).getModel(W);if(!U)return;const{documentRangeSemanticTokensProvider:G}=K.get(ILanguageFeaturesService),Z=getDocumentRangeSemanticTokensProviders(G,U);if(Z.length===0)return;if(Z.length===1)return Z[0].getLegend();if(!H||!Range$5.isIRange(H))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),Z[0].getLegend();const X=yield getDocumentRangeSemanticTokens(G,U,Range$5.lift(H),CancellationToken.None);if(X)return X.provider.getLegend()})),CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokens",(K,...C)=>__awaiter$d(void 0,void 0,void 0,function*(){const[W,H]=C;assertType(W instanceof URI),assertType(Range$5.isIRange(H));const U=K.get(IModelService).getModel(W);if(!U)return;const{documentRangeSemanticTokensProvider:G}=K.get(ILanguageFeaturesService),Z=yield getDocumentRangeSemanticTokens(G,U,Range$5.lift(H),CancellationToken.None);if(!(!Z||!Z.tokens))return encodeSemanticTokensDto({id:0,type:"full",data:Z.tokens.data})}));const SEMANTIC_HIGHLIGHTING_SETTING_ID="editor.semanticHighlighting";function isSemanticColoringEnabled(K,C,W){var H;const U=(H=W.getValue(SEMANTIC_HIGHLIGHTING_SETTING_ID,{overrideIdentifier:K.getLanguageId(),resource:K.uri}))===null||H===void 0?void 0:H.enabled;return typeof U=="boolean"?U:C.getColorTheme().semanticHighlighting}var __decorate$j=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$j=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},ModelSemanticColoring_1;let DocumentSemanticTokensFeature=class extends Disposable{constructor(C,W,H,U,G,Z){super(),this._watchers=Object.create(null);const X=te=>{this._watchers[te.uri.toString()]=new ModelSemanticColoring(te,C,H,G,Z)},Q=(te,ie)=>{ie.dispose(),delete this._watchers[te.uri.toString()]},ee=()=>{for(const te of W.getModels()){const ie=this._watchers[te.uri.toString()];isSemanticColoringEnabled(te,H,U)?ie||X(te):ie&&Q(te,ie)}};this._register(W.onModelAdded(te=>{isSemanticColoringEnabled(te,H,U)&&X(te)})),this._register(W.onModelRemoved(te=>{const ie=this._watchers[te.uri.toString()];ie&&Q(te,ie)})),this._register(U.onDidChangeConfiguration(te=>{te.affectsConfiguration(SEMANTIC_HIGHLIGHTING_SETTING_ID)&&ee()})),this._register(H.onDidColorThemeChange(ee))}dispose(){for(const C of Object.values(this._watchers))C.dispose();super.dispose()}};DocumentSemanticTokensFeature=__decorate$j([__param$j(0,ISemanticTokensStylingService),__param$j(1,IModelService),__param$j(2,IThemeService),__param$j(3,IConfigurationService),__param$j(4,ILanguageFeatureDebounceService),__param$j(5,ILanguageFeaturesService)],DocumentSemanticTokensFeature);let ModelSemanticColoring=ModelSemanticColoring_1=class extends Disposable{constructor(C,W,H,U,G){super(),this._semanticTokensStylingService=W,this._isDisposed=!1,this._model=C,this._provider=G.documentSemanticTokensProvider,this._debounceInformation=U.for(this._provider,"DocumentSemanticTokens",{min:ModelSemanticColoring_1.REQUEST_MIN_DELAY,max:ModelSemanticColoring_1.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new RunOnceScheduler(()=>this._fetchDocumentSemanticTokensNow(),ModelSemanticColoring_1.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const Z=()=>{dispose(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const X of this._provider.all(C))typeof X.onDidChange=="function"&&this._documentProvidersChangeListeners.push(X.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};Z(),this._register(this._provider.onDidChange(()=>{Z(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(H.onDidColorThemeChange(X=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),dispose(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!hasDocumentSemanticTokensProvider(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;const C=new CancellationTokenSource$1,W=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,H=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,U=getDocumentSemanticTokens(this._provider,this._model,W,H,C.token);this._currentDocumentRequestCancellationTokenSource=C,this._providersChangedDuringRequest=!1;const G=[],Z=this._model.onDidChangeContent(Q=>{G.push(Q)}),X=new StopWatch(!1);U.then(Q=>{if(this._debounceInformation.update(this._model,X.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,Z.dispose(),!Q)this._setDocumentSemanticTokens(null,null,null,G);else{const{provider:ee,tokens:te}=Q,ie=this._semanticTokensStylingService.getStyling(ee);this._setDocumentSemanticTokens(ee,te||null,ie,G)}},Q=>{Q&&(isCancellationError(Q)||typeof Q.message=="string"&&Q.message.indexOf("busy")!==-1)||onUnexpectedError(Q),this._currentDocumentRequestCancellationTokenSource=null,Z.dispose(),(G.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(C,W,H,U,G){G=Math.min(G,H.length-U,C.length-W);for(let Z=0;Z<G;Z++)H[U+Z]=C[W+Z]}_setDocumentSemanticTokens(C,W,H,U){const G=this._currentDocumentResponse,Z=()=>{(U.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){C&&W&&C.releaseDocumentSemanticTokens(W.resultId);return}if(!C||!H){this._model.tokenization.setSemanticTokens(null,!1);return}if(!W){this._model.tokenization.setSemanticTokens(null,!0),Z();return}if(isSemanticTokensEdits(W)){if(!G){this._model.tokenization.setSemanticTokens(null,!0);return}if(W.edits.length===0)W={resultId:W.resultId,data:G.data};else{let X=0;for(const ne of W.edits)X+=(ne.data?ne.data.length:0)-ne.deleteCount;const Q=G.data,ee=new Uint32Array(Q.length+X);let te=Q.length,ie=ee.length;for(let ne=W.edits.length-1;ne>=0;ne--){const oe=W.edits[ne];if(oe.start>Q.length){H.warnInvalidEditStart(G.resultId,W.resultId,ne,oe.start,Q.length),this._model.tokenization.setSemanticTokens(null,!0);return}const re=te-(oe.start+oe.deleteCount);re>0&&(ModelSemanticColoring_1._copy(Q,te-re,ee,ie-re,re),ie-=re),oe.data&&(ModelSemanticColoring_1._copy(oe.data,0,ee,ie-oe.data.length,oe.data.length),ie-=oe.data.length),te=oe.start}te>0&&ModelSemanticColoring_1._copy(Q,0,ee,0,te),W={resultId:W.resultId,data:ee}}}if(isSemanticTokens(W)){this._currentDocumentResponse=new SemanticTokensResponse(C,W.resultId,W.data);const X=toMultilineTokens2(W,H,this._model.getLanguageId());if(U.length>0)for(const Q of U)for(const ee of X)for(const te of Q.changes)ee.applyEdit(te.range,te.text);this._model.tokenization.setSemanticTokens(X,!0)}else this._model.tokenization.setSemanticTokens(null,!0);Z()}};ModelSemanticColoring.REQUEST_MIN_DELAY=300,ModelSemanticColoring.REQUEST_MAX_DELAY=2e3,ModelSemanticColoring=ModelSemanticColoring_1=__decorate$j([__param$j(1,ISemanticTokensStylingService),__param$j(2,IThemeService),__param$j(3,ILanguageFeatureDebounceService),__param$j(4,ILanguageFeaturesService)],ModelSemanticColoring);class SemanticTokensResponse{constructor(C,W,H){this.provider=C,this.resultId=W,this.data=H}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}registerEditorFeature(DocumentSemanticTokensFeature);var __decorate$i=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$i=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};let ViewportSemanticTokensContribution=class extends Disposable{constructor(C,W,H,U,G,Z){super(),this._semanticTokensStylingService=W,this._themeService=H,this._configurationService=U,this._editor=C,this._provider=Z.documentRangeSemanticTokensProvider,this._debounceInformation=G.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new RunOnceScheduler(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const X=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{X()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),X()})),this._register(this._editor.onDidChangeModelContent(Q=>{this._cancelAll(),X()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),X()})),this._register(this._configurationService.onDidChangeConfiguration(Q=>{Q.affectsConfiguration(SEMANTIC_HIGHLIGHTING_SETTING_ID)&&(this._cancelAll(),X())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),X()})),X()}_cancelAll(){for(const C of this._outstandingRequests)C.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(C){for(let W=0,H=this._outstandingRequests.length;W<H;W++)if(this._outstandingRequests[W]===C){this._outstandingRequests.splice(W,1);return}}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const C=this._editor.getModel();if(C.tokenization.hasCompleteSemanticTokens())return;if(!isSemanticColoringEnabled(C,this._themeService,this._configurationService)){C.tokenization.hasSomeSemanticTokens()&&C.tokenization.setSemanticTokens(null,!1);return}if(!hasDocumentRangeSemanticTokensProvider(this._provider,C)){C.tokenization.hasSomeSemanticTokens()&&C.tokenization.setSemanticTokens(null,!1);return}const W=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(W.map(H=>this._requestRange(C,H)))}_requestRange(C,W){const H=C.getVersionId(),U=createCancelablePromise(Z=>Promise.resolve(getDocumentRangeSemanticTokens(this._provider,C,W,Z))),G=new StopWatch(!1);return U.then(Z=>{if(this._debounceInformation.update(C,G.elapsed()),!Z||!Z.tokens||C.isDisposed()||C.getVersionId()!==H)return;const{provider:X,tokens:Q}=Z,ee=this._semanticTokensStylingService.getStyling(X);C.tokenization.setPartialSemanticTokens(W,toMultilineTokens2(Q,ee,C.getLanguageId()))}).then(()=>this._removeOutstandingRequest(U),()=>this._removeOutstandingRequest(U)),U}};ViewportSemanticTokensContribution.ID="editor.contrib.viewportSemanticTokens",ViewportSemanticTokensContribution=__decorate$i([__param$i(1,ISemanticTokensStylingService),__param$i(2,IThemeService),__param$i(3,IConfigurationService),__param$i(4,ILanguageFeatureDebounceService),__param$i(5,ILanguageFeaturesService)],ViewportSemanticTokensContribution),registerEditorContribution(ViewportSemanticTokensContribution.ID,ViewportSemanticTokensContribution,1);class WordSelectionRangeProvider{constructor(C=!0){this.selectSubwords=C}provideSelectionRanges(C,W){const H=[];for(const U of W){const G=[];H.push(G),this.selectSubwords&&this._addInWordRanges(G,C,U),this._addWordRanges(G,C,U),this._addWhitespaceLine(G,C,U),G.push({range:C.getFullModelRange()})}return H}_addInWordRanges(C,W,H){const U=W.getWordAtPosition(H);if(!U)return;const{word:G,startColumn:Z}=U,X=H.column-Z;let Q=X,ee=X,te=0;for(;Q>=0;Q--){const ie=G.charCodeAt(Q);if(Q!==X&&(ie===95||ie===45))break;if(isLowerAsciiLetter(ie)&&isUpperAsciiLetter(te))break;te=ie}for(Q+=1;ee<G.length;ee++){const ie=G.charCodeAt(ee);if(isUpperAsciiLetter(ie)&&isLowerAsciiLetter(te))break;if(ie===95||ie===45)break;te=ie}Q<ee&&C.push({range:new Range$5(H.lineNumber,Z+Q,H.lineNumber,Z+ee)})}_addWordRanges(C,W,H){const U=W.getWordAtPosition(H);U&&C.push({range:new Range$5(H.lineNumber,U.startColumn,H.lineNumber,U.endColumn)})}_addWhitespaceLine(C,W,H){W.getLineLength(H.lineNumber)>0&&W.getLineFirstNonWhitespaceColumn(H.lineNumber)===0&&W.getLineLastNonWhitespaceColumn(H.lineNumber)===0&&C.push({range:new Range$5(H.lineNumber,1,H.lineNumber,W.getLineMaxColumn(H.lineNumber))})}}var __decorate$h=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$h=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$c=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},SmartSelectController_1;class SelectionRanges{constructor(C,W){this.index=C,this.ranges=W}mov(C){const W=this.index+(C?1:-1);if(W<0||W>=this.ranges.length)return this;const H=new SelectionRanges(W,this.ranges);return H.ranges[W].equalsRange(this.ranges[this.index])?H.mov(C):H}}let SmartSelectController=SmartSelectController_1=class{static get(C){return C.getContribution(SmartSelectController_1.ID)}constructor(C,W){this._editor=C,this._languageFeaturesService=W,this._ignoreSelection=!1}dispose(){var C;(C=this._selectionListener)===null||C===void 0||C.dispose()}run(C){return __awaiter$c(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const W=this._editor.getSelections(),H=this._editor.getModel();if(this._state||(yield provideSelectionRanges(this._languageFeaturesService.selectionRangeProvider,H,W.map(G=>G.getPosition()),this._editor.getOption(112),CancellationToken.None).then(G=>{var Z;if(!(!isNonEmptyArray(G)||G.length!==W.length)&&!(!this._editor.hasModel()||!equals$2(this._editor.getSelections(),W,(X,Q)=>X.equalsSelection(Q)))){for(let X=0;X<G.length;X++)G[X]=G[X].filter(Q=>Q.containsPosition(W[X].getStartPosition())&&Q.containsPosition(W[X].getEndPosition())),G[X].unshift(W[X]);this._state=G.map(X=>new SelectionRanges(0,X)),(Z=this._selectionListener)===null||Z===void 0||Z.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var X;this._ignoreSelection||((X=this._selectionListener)===null||X===void 0||X.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(G=>G.mov(C));const U=this._state.map(G=>Selection$1.fromPositions(G.ranges[G.index].getStartPosition(),G.ranges[G.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(U)}finally{this._ignoreSelection=!1}})}};SmartSelectController.ID="editor.contrib.smartSelectController",SmartSelectController=SmartSelectController_1=__decorate$h([__param$h(1,ILanguageFeaturesService)],SmartSelectController);class AbstractSmartSelect extends EditorAction{constructor(C,W){super(W),this._forward=C}run(C,W){return __awaiter$c(this,void 0,void 0,function*(){const H=SmartSelectController.get(W);H&&(yield H.run(this._forward))})}}class GrowSelectionAction extends AbstractSmartSelect{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:localize("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:MenuId.MenubarSelectionMenu,group:"1_basic",title:localize({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}CommandsRegistry.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class ShrinkSelectionAction extends AbstractSmartSelect{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:localize("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:MenuId.MenubarSelectionMenu,group:"1_basic",title:localize({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}registerEditorContribution(SmartSelectController.ID,SmartSelectController,4),registerEditorAction(GrowSelectionAction),registerEditorAction(ShrinkSelectionAction);function provideSelectionRanges(K,C,W,H,U){return __awaiter$c(this,void 0,void 0,function*(){const G=K.all(C).concat(new WordSelectionRangeProvider(H.selectSubwords));G.length===1&&G.unshift(new BracketSelectionRangeProvider);const Z=[],X=[];for(const Q of G)Z.push(Promise.resolve(Q.provideSelectionRanges(C,W,U)).then(ee=>{if(isNonEmptyArray(ee)&&ee.length===W.length)for(let te=0;te<W.length;te++){X[te]||(X[te]=[]);for(const ie of ee[te])Range$5.isIRange(ie.range)&&Range$5.containsPosition(ie.range,W[te])&&X[te].push(Range$5.lift(ie.range))}},onUnexpectedExternalError));return yield Promise.all(Z),X.map(Q=>{if(Q.length===0)return[];Q.sort((ne,oe)=>Position$4.isBefore(ne.getStartPosition(),oe.getStartPosition())?1:Position$4.isBefore(oe.getStartPosition(),ne.getStartPosition())||Position$4.isBefore(ne.getEndPosition(),oe.getEndPosition())?-1:Position$4.isBefore(oe.getEndPosition(),ne.getEndPosition())?1:0);const ee=[];let te;for(const ne of Q)(!te||Range$5.containsRange(ne,te)&&!Range$5.equalsRange(ne,te))&&(ee.push(ne),te=ne);if(!H.selectLeadingAndTrailingWhitespace)return ee;const ie=[ee[0]];for(let ne=1;ne<ee.length;ne++){const oe=ee[ne-1],re=ee[ne];if(re.startLineNumber!==oe.startLineNumber||re.endLineNumber!==oe.endLineNumber){const se=new Range$5(oe.startLineNumber,C.getLineFirstNonWhitespaceColumn(oe.startLineNumber),oe.endLineNumber,C.getLineLastNonWhitespaceColumn(oe.endLineNumber));se.containsRange(oe)&&!se.equalsRange(oe)&&re.containsRange(se)&&!re.equalsRange(se)&&ie.push(se);const ae=new Range$5(oe.startLineNumber,1,oe.endLineNumber,C.getLineMaxColumn(oe.endLineNumber));ae.containsRange(oe)&&!ae.equalsRange(se)&&re.containsRange(ae)&&!re.equalsRange(ae)&&ie.push(ae)}ie.push(re)}return ie})})}CommandsRegistry.registerCommand("_executeSelectionRangeProvider",function(K,...C){return __awaiter$c(this,void 0,void 0,function*(){const[W,H]=C;assertType(URI.isUri(W));const U=K.get(ILanguageFeaturesService).selectionRangeProvider,G=yield K.get(ITextModelService).createModelReference(W);try{return provideSelectionRanges(U,G.object.textEditorModel,H,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},CancellationToken.None)}finally{G.dispose()}})});const Categories=Object.freeze({View:{value:localize("view","View"),original:"View"},Help:{value:localize("help","Help"),original:"Help"},Test:{value:localize("test","Test"),original:"Test"},File:{value:localize("file","File"),original:"File"},Preferences:{value:localize("preferences","Preferences"),original:"Preferences"},Developer:{value:localize({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}}),stickyScroll="";var __awaiter$b=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};class StickyScrollWidgetState{constructor(C,W,H,U=null){this.startLineNumbers=C,this.endLineNumbers=W,this.lastLineRelativePosition=H,this.showEndForLine=U}equals(C){return!!C&&this.lastLineRelativePosition===C.lastLineRelativePosition&&this.showEndForLine===C.showEndForLine&&equals$2(this.startLineNumbers,C.startLineNumbers)&&equals$2(this.endLineNumbers,C.endLineNumbers)}}const _ttPolicy=createTrustedTypesPolicy("stickyScrollViewLayer",{createHTML:K=>K}),STICKY_INDEX_ATTR="data-sticky-line-index",STICKY_IS_LINE_ATTR="data-sticky-is-line",STICKY_IS_LINE_NUMBER_ATTR="data-sticky-is-line-number",STICKY_IS_FOLDING_ICON_ATTR="data-sticky-is-folding-icon";class StickyScrollWidget extends Disposable{constructor(C){super(),this._editor=C,this._foldingIconStore=new DisposableStore,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(66),this._stickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",C instanceof EmbeddedCodeEditorWidget),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const W=()=>{this._linesDomNode.style.left=this._editor.getOption(114).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(H=>{H.hasChanged(114)&&W(),H.hasChanged(66)&&(this._lineHeight=this._editor.getOption(66))})),this._register(this._editor.onDidScrollChange(H=>{H.scrollLeftChanged&&W(),H.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{W(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),W(),this._register(this._editor.onDidLayoutChange(H=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getStickyLineForLine(C){return this._stickyLines.find(W=>W.lineNumber===C)}getCurrentLines(){return this._lineNumbers}setState(C,W,H=1/0){if((!this._previousState&&!C||this._previousState&&this._previousState.equals(C))&&H===1/0)return;this._previousState=C;const U=this._stickyLines;if(this._clearStickyWidget(),!C||!this._editor._getViewModel())return;if(C.startLineNumbers.length*this._lineHeight+C.lastLineRelativePosition>0){this._lastLineRelativePosition=C.lastLineRelativePosition;const Z=[...C.startLineNumbers];C.showEndForLine!==null&&(Z[C.showEndForLine]=C.endLineNumbers[C.showEndForLine]),this._lineNumbers=Z}else this._lastLineRelativePosition=0,this._lineNumbers=[];this._renderRootNode(U,W,H)}_updateWidgetWidth(){const C=this._editor.getLayoutInfo(),W=C.contentLeft;this._lineNumbersDomNode.style.width=`${W}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-C.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${C.width-C.verticalScrollbarWidth}px`}_clearStickyWidget(){this._stickyLines=[],this._foldingIconStore.clear(),clearNode(this._lineNumbersDomNode),clearNode(this._linesDomNode),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(C){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${C?.5:0}s`)}_setFoldingIconsVisibility(C){for(const W of this._stickyLines){const H=W.foldingIcon;H&&H.setVisible(C?!0:H.isCollapsed)}}_renderRootNode(C,W,H=1/0){return __awaiter$b(this,void 0,void 0,function*(){const U=this._editor.getLayoutInfo();for(const[Z,X]of this._lineNumbers.entries()){const Q=C[Z],ee=X>=H||(Q==null?void 0:Q.lineNumber)!==X?this._renderChildNode(Z,X,W,U):this._updateTopAndZIndexOfStickyLine(Q);ee&&(this._linesDomNode.appendChild(ee.lineDomNode),this._lineNumbersDomNode.appendChild(ee.lineNumberDomNode),this._stickyLines.push(ee))}W&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const G=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;if(G===0){this._clearStickyWidget();return}this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${G}px`,this._linesDomNodeScrollable.style.height=`${G}px`,this._rootDomNode.style.height=`${G}px`,this._rootDomNode.style.marginLeft="0px",this._updateMinContentWidth(),this._editor.layoutOverlayWidget(this)})}_setFoldingHoverListeners(){this._editor.getOption(109)==="mouseover"&&(this._foldingIconStore.add(addDisposableListener(this._lineNumbersDomNode,EventType$1.MOUSE_ENTER,W=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(addDisposableListener(this._lineNumbersDomNode,EventType$1.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(C,W,H,U){const G=this._editor._getViewModel();if(!G)return;const Z=G.coordinatesConverter.convertModelPositionToViewPosition(new Position$4(W,1)).lineNumber,X=G.getViewLineRenderingData(Z),Q=this._editor.getOption(67);let ee;try{ee=LineDecoration.filter(X.inlineDecorations,Z,X.minColumn,X.maxColumn)}catch{ee=[]}const te=new RenderLineInput(!0,!0,X.content,X.continuesWithWrappedLine,X.isBasicASCII,X.containsRTL,0,X.tokens,ee,X.tabSize,X.startVisibleColumn,1,1,1,500,"none",!0,!0,null),ie=new StringBuilder(2e3),ne=renderViewLine(te,ie);let oe;_ttPolicy?oe=_ttPolicy.createHTML(ie.build()):oe=ie.build();const re=document.createElement("span");re.setAttribute(STICKY_INDEX_ATTR,String(C)),re.setAttribute(STICKY_IS_LINE_ATTR,""),re.setAttribute("role","listitem"),re.tabIndex=0,re.className="sticky-line-content",re.classList.add(`stickyLine${W}`),re.style.lineHeight=`${this._lineHeight}px`,re.innerHTML=oe;const se=document.createElement("span");se.setAttribute(STICKY_INDEX_ATTR,String(C)),se.setAttribute(STICKY_IS_LINE_NUMBER_ATTR,""),se.className="sticky-line-number",se.style.lineHeight=`${this._lineHeight}px`;const ae=U.contentLeft;se.style.width=`${ae}px`;const ce=document.createElement("span");Q.renderType===1||Q.renderType===3&&W%10===0?ce.innerText=W.toString():Q.renderType===2&&(ce.innerText=Math.abs(W-this._editor.getPosition().lineNumber).toString()),ce.className="sticky-line-number-inner",ce.style.lineHeight=`${this._lineHeight}px`,ce.style.width=`${U.lineNumbersWidth}px`,ce.style.paddingLeft=`${U.lineNumbersLeft}px`,se.appendChild(ce);const le=this._renderFoldingIconForLine(H,W);le&&se.appendChild(le.domNode),this._editor.applyFontInfo(re),this._editor.applyFontInfo(ce),se.style.lineHeight=`${this._lineHeight}px`,re.style.lineHeight=`${this._lineHeight}px`,se.style.height=`${this._lineHeight}px`,re.style.height=`${this._lineHeight}px`;const de=new RenderedStickyLine(C,W,re,se,le,ne.characterMapping);return this._updateTopAndZIndexOfStickyLine(de)}_updateTopAndZIndexOfStickyLine(C){var W;const H=C.index,U=C.lineDomNode,G=C.lineNumberDomNode,Z=H===this._lineNumbers.length-1,X="0",Q="1";U.style.zIndex=Z?X:Q,G.style.zIndex=Z?X:Q;const ee=`${H*this._lineHeight+this._lastLineRelativePosition+(!((W=C.foldingIcon)===null||W===void 0)&&W.isCollapsed?1:0)}px`,te=`${H*this._lineHeight}px`;return U.style.top=Z?ee:te,G.style.top=Z?ee:te,C}_renderFoldingIconForLine(C,W){const H=this._editor.getOption(109);if(!C||H==="never")return;const U=C.regions,G=U.findRange(W),Z=U.getStartLineNumber(G);if(!(W===Z))return;const Q=U.isCollapsed(G),ee=new StickyFoldingIcon(Q,Z,U.getEndLineNumber(G),this._lineHeight);return ee.setVisible(this._isOnGlyphMargin?!0:Q||H==="always"),ee.domNode.setAttribute(STICKY_IS_FOLDING_ICON_ATTR,""),ee}_updateMinContentWidth(){this._minContentWidthInPx=0;for(const C of this._stickyLines)C.lineDomNode.scrollWidth>this._minContentWidthInPx&&(this._minContentWidthInPx=C.lineDomNode.scrollWidth);this._minContentWidthInPx+=this._editor.getLayoutInfo().verticalScrollbarWidth}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(C){0<=C&&C<this._stickyLines.length&&this._stickyLines[C].lineDomNode.focus()}getEditorPositionFromNode(C){if(!C||C.children.length>0)return null;const W=this._getRenderedStickyLineFromChildDomNode(C);if(!W)return null;const H=getColumnOfNodeOffset(W.characterMapping,C,0);return new Position$4(W.lineNumber,H)}getLineNumberFromChildDomNode(C){var W,H;return(H=(W=this._getRenderedStickyLineFromChildDomNode(C))===null||W===void 0?void 0:W.lineNumber)!==null&&H!==void 0?H:null}_getRenderedStickyLineFromChildDomNode(C){const W=this.getLineIndexFromChildDomNode(C);return W===null||W<0||W>=this._stickyLines.length?null:this._stickyLines[W]}getLineIndexFromChildDomNode(C){const W=this._getAttributeValue(C,STICKY_INDEX_ATTR);return W?parseInt(W,10):null}isInStickyLine(C){return this._getAttributeValue(C,STICKY_IS_LINE_ATTR)!==void 0}isInFoldingIconDomNode(C){return this._getAttributeValue(C,STICKY_IS_FOLDING_ICON_ATTR)!==void 0}_getAttributeValue(C,W){for(;C&&C!==this._rootDomNode;){const H=C.getAttribute(W);if(H!==null)return H;C=C.parentElement}}}class RenderedStickyLine{constructor(C,W,H,U,G,Z){this.index=C,this.lineNumber=W,this.lineDomNode=H,this.lineNumberDomNode=U,this.foldingIcon=G,this.characterMapping=Z}}class StickyFoldingIcon{constructor(C,W,H,U){this.isCollapsed=C,this.foldingStartLine=W,this.foldingEndLine=H,this.dimension=U,this.domNode=document.createElement("div"),this.domNode.style.width=`${U}px`,this.domNode.style.height=`${U}px`,this.domNode.className=ThemeIcon.asClassName(C?foldingCollapsedIcon:foldingExpandedIcon)}setVisible(C){this.domNode.style.cursor=C?"pointer":"default",this.domNode.style.opacity=C?"1":"0"}}class StickyRange{constructor(C,W){this.startLineNumber=C,this.endLineNumber=W}}class StickyElement{constructor(C,W,H){this.range=C,this.children=W,this.parent=H}}class StickyModel{constructor(C,W,H,U){this.uri=C,this.version=W,this.element=H,this.outlineProviderId=U}}var __decorate$g=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$g=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$a=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},ModelProvider;(function(K){K.OUTLINE_MODEL="outlineModel",K.FOLDING_PROVIDER_MODEL="foldingProviderModel",K.INDENTATION_MODEL="indentationModel"})(ModelProvider||(ModelProvider={}));var Status;(function(K){K[K.VALID=0]="VALID",K[K.INVALID=1]="INVALID",K[K.CANCELED=2]="CANCELED"})(Status||(Status={}));let StickyModelProvider=class extends Disposable{constructor(C,W,H,U){super(),this._editor=C,this._languageConfigurationService=W,this._languageFeaturesService=H,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new Delayer(300)),this._updateOperation=this._register(new DisposableStore);const G=new StickyModelFromCandidateOutlineProvider(H),Z=new StickyModelFromCandidateSyntaxFoldingProvider(this._editor,H),X=new StickyModelFromCandidateIndentationFoldingProvider(this._editor,W);switch(U){case ModelProvider.OUTLINE_MODEL:this._modelProviders.push(G),this._modelProviders.push(Z),this._modelProviders.push(X);break;case ModelProvider.FOLDING_PROVIDER_MODEL:this._modelProviders.push(Z),this._modelProviders.push(X);break;case ModelProvider.INDENTATION_MODEL:this._modelProviders.push(X);break}}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(C,W,H){return __awaiter$a(this,void 0,void 0,function*(){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger(()=>__awaiter$a(this,void 0,void 0,function*(){for(const U of this._modelProviders){const{statusPromise:G,modelPromise:Z}=U.computeStickyModel(C,W,H);this._modelPromise=Z;const X=yield G;if(this._modelPromise!==Z)return null;switch(X){case Status.CANCELED:return this._updateOperation.clear(),null;case Status.VALID:return U.stickyModel}}return null})).catch(U=>(onUnexpectedError(U),null))})}};StickyModelProvider=__decorate$g([__param$g(1,ILanguageConfigurationService),__param$g(2,ILanguageFeaturesService)],StickyModelProvider);class StickyModelCandidateProvider{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Status.INVALID}computeStickyModel(C,W,H){if(H.isCancellationRequested||!this.isProviderValid(C))return{statusPromise:this._invalid(),modelPromise:null};const U=createCancelablePromise(G=>this.createModelFromProvider(C,W,G));return{statusPromise:U.then(G=>this.isModelValid(G)?H.isCancellationRequested?Status.CANCELED:(this._stickyModel=this.createStickyModel(C,W,H,G),Status.VALID):this._invalid()).then(void 0,G=>(onUnexpectedError(G),Status.CANCELED)),modelPromise:U}}isModelValid(C){return!0}isProviderValid(C){return!0}}let StickyModelFromCandidateOutlineProvider=class extends StickyModelCandidateProvider{constructor(C){super(),this._languageFeaturesService=C}createModelFromProvider(C,W,H){return OutlineModel.create(this._languageFeaturesService.documentSymbolProvider,C,H)}createStickyModel(C,W,H,U){var G;const{stickyOutlineElement:Z,providerID:X}=this._stickyModelFromOutlineModel(U,(G=this._stickyModel)===null||G===void 0?void 0:G.outlineProviderId);return new StickyModel(C.uri,W,Z,X)}isModelValid(C){return C&&C.children.size>0}_stickyModelFromOutlineModel(C,W){let H;if(Iterable.first(C.children.values())instanceof OutlineGroup){const X=Iterable.find(C.children.values(),Q=>Q.id===W);if(X)H=X.children;else{let Q="",ee=-1,te;for(const[ie,ne]of C.children.entries()){const oe=this._findSumOfRangesOfGroup(ne);oe>ee&&(te=ne,ee=oe,Q=ne.id)}W=Q,H=te.children}}else H=C.children;const U=[],G=Array.from(H.values()).sort((X,Q)=>{const ee=new StickyRange(X.symbol.range.startLineNumber,X.symbol.range.endLineNumber),te=new StickyRange(Q.symbol.range.startLineNumber,Q.symbol.range.endLineNumber);return this._comparator(ee,te)});for(const X of G)U.push(this._stickyModelFromOutlineElement(X,X.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new StickyElement(void 0,U,void 0),providerID:W}}_stickyModelFromOutlineElement(C,W){const H=[];for(const G of C.children.values())if(G.symbol.selectionRange.startLineNumber!==G.symbol.range.endLineNumber)if(G.symbol.selectionRange.startLineNumber!==W)H.push(this._stickyModelFromOutlineElement(G,G.symbol.selectionRange.startLineNumber));else for(const Z of G.children.values())H.push(this._stickyModelFromOutlineElement(Z,G.symbol.selectionRange.startLineNumber));H.sort((G,Z)=>this._comparator(G.range,Z.range));const U=new StickyRange(C.symbol.selectionRange.startLineNumber,C.symbol.range.endLineNumber);return new StickyElement(U,H,void 0)}_comparator(C,W){return C.startLineNumber!==W.startLineNumber?C.startLineNumber-W.startLineNumber:W.endLineNumber-C.endLineNumber}_findSumOfRangesOfGroup(C){let W=0;for(const H of C.children.values())W+=this._findSumOfRangesOfGroup(H);return C instanceof OutlineElement?W+C.symbol.range.endLineNumber-C.symbol.selectionRange.startLineNumber:W}};StickyModelFromCandidateOutlineProvider=__decorate$g([__param$g(0,ILanguageFeaturesService)],StickyModelFromCandidateOutlineProvider);class StickyModelFromCandidateFoldingProvider extends StickyModelCandidateProvider{constructor(C){super(),this._foldingLimitReporter=new RangesLimitReporter(C)}createStickyModel(C,W,H,U){const G=this._fromFoldingRegions(U);return new StickyModel(C.uri,W,G,void 0)}isModelValid(C){return C!==null}_fromFoldingRegions(C){const W=C.length,H=[],U=new StickyElement(void 0,[],void 0);for(let G=0;G<W;G++){const Z=C.getParentIndex(G);let X;Z!==-1?X=H[Z]:X=U;const Q=new StickyElement(new StickyRange(C.getStartLineNumber(G),C.getEndLineNumber(G)+1),[],X);X.children.push(Q),H.push(Q)}return U}}let StickyModelFromCandidateIndentationFoldingProvider=class extends StickyModelFromCandidateFoldingProvider{constructor(C,W){super(C),this._languageConfigurationService=W}createModelFromProvider(C,W,H){return new IndentRangeProvider(C,this._languageConfigurationService,this._foldingLimitReporter).compute(H)}};StickyModelFromCandidateIndentationFoldingProvider=__decorate$g([__param$g(1,ILanguageConfigurationService)],StickyModelFromCandidateIndentationFoldingProvider);let StickyModelFromCandidateSyntaxFoldingProvider=class extends StickyModelFromCandidateFoldingProvider{constructor(C,W){super(C),this._languageFeaturesService=W}isProviderValid(C){return FoldingController.getFoldingRangeProviders(this._languageFeaturesService,C).length>0}createModelFromProvider(C,W,H){const U=FoldingController.getFoldingRangeProviders(this._languageFeaturesService,C);return new SyntaxRangeProvider(C,U,()=>this.createModelFromProvider(C,W,H),this._foldingLimitReporter,void 0).compute(H)}};StickyModelFromCandidateSyntaxFoldingProvider=__decorate$g([__param$g(1,ILanguageFeaturesService)],StickyModelFromCandidateSyntaxFoldingProvider);var __decorate$f=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$f=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$9=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};class StickyLineCandidate{constructor(C,W,H){this.startLineNumber=C,this.endLineNumber=W,this.nestingDepth=H}}let StickyLineCandidateProvider=class extends Disposable{constructor(C,W,H){super(),this._languageFeaturesService=W,this._languageConfigurationService=H,this._onDidChangeStickyScroll=this._register(new Emitter$1),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=C,this._sessionStore=this._register(new DisposableStore),this._updateSoon=this._register(new RunOnceScheduler(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(U=>{U.hasChanged(114)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._stickyModelProvider=null,this._sessionStore.clear(),this._options=this._editor.getOption(114),this._options.enabled&&(this._stickyModelProvider=this._sessionStore.add(new StickyModelProvider(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel)),this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this.update())}getVersionId(){var C;return(C=this._model)===null||C===void 0?void 0:C.version}update(){var C;return __awaiter$9(this,void 0,void 0,function*(){(C=this._cts)===null||C===void 0||C.dispose(!0),this._cts=new CancellationTokenSource$1,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()})}updateStickyModel(C){return __awaiter$9(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization()){this._model=null;return}const W=this._editor.getModel(),H=W.getVersionId(),U=yield this._stickyModelProvider.update(W,H,C);C.isCancellationRequested||(this._model=U)})}updateIndex(C){return C===-1?C=0:C<0&&(C=-C-2),C}getCandidateStickyLinesIntersectingFromStickyModel(C,W,H,U,G){if(W.children.length===0)return;let Z=G;const X=[];for(let te=0;te<W.children.length;te++){const ie=W.children[te];ie.range&&X.push(ie.range.startLineNumber)}const Q=this.updateIndex(binarySearch(X,C.startLineNumber,(te,ie)=>te-ie)),ee=this.updateIndex(binarySearch(X,C.startLineNumber+U,(te,ie)=>te-ie));for(let te=Q;te<=ee;te++){const ie=W.children[te];if(!ie)return;if(ie.range){const ne=ie.range.startLineNumber,oe=ie.range.endLineNumber;C.startLineNumber<=oe+1&&ne-1<=C.endLineNumber&&ne!==Z&&(Z=ne,H.push(new StickyLineCandidate(ne,oe-1,U+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(C,ie,H,U+1,ne))}else this.getCandidateStickyLinesIntersectingFromStickyModel(C,ie,H,U,G)}}getCandidateStickyLinesIntersecting(C){var W,H;if(!(!((W=this._model)===null||W===void 0)&&W.element))return[];let U=[];this.getCandidateStickyLinesIntersectingFromStickyModel(C,this._model.element,U,0,-1);const G=(H=this._editor._getViewModel())===null||H===void 0?void 0:H.getHiddenAreas();if(G)for(const Z of G)U=U.filter(X=>!(X.startLineNumber>=Z.startLineNumber&&X.endLineNumber<=Z.endLineNumber+1));return U}};StickyLineCandidateProvider=__decorate$f([__param$f(1,ILanguageFeaturesService),__param$f(2,ILanguageConfigurationService)],StickyLineCandidateProvider);var __decorate$e=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$e=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$8=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},StickyScrollController_1;let StickyScrollController=StickyScrollController_1=class extends Disposable{constructor(C,W,H,U,G,Z,X){super(),this._editor=C,this._contextMenuService=W,this._languageFeaturesService=H,this._instaService=U,this._contextKeyService=X,this._sessionStore=new DisposableStore,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new StickyScrollWidget(this._editor),this._stickyLineCandidateProvider=new StickyLineCandidateProvider(this._editor,H,G),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new StickyScrollWidgetState([],[],0),this._readConfiguration();const Q=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(te=>{(te.hasChanged(114)||te.hasChanged(72)||te.hasChanged(66)||te.hasChanged(109))&&this._readConfiguration()})),this._register(addDisposableListener(Q,EventType$1.CONTEXT_MENU,te=>__awaiter$8(this,void 0,void 0,function*(){this._onContextMenu(te)}))),this._stickyScrollFocusedContextKey=EditorContextKeys.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=EditorContextKeys.stickyScrollVisible.bindTo(this._contextKeyService);const ee=this._register(trackFocus(Q));this._register(ee.onDidBlur(te=>{this._positionRevealed===!1&&Q.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(ee.onDidFocus(te=>{this.focus()})),this._registerMouseListeners(),this._register(addDisposableListener(Q,EventType$1.MOUSE_DOWN,te=>{this._onMouseDown=!0}))}static get(C){return C.getContribution(StickyScrollController_1.ID)}_disposeFocusStickyScrollStore(){var C;this._stickyScrollFocusedContextKey.set(!1),(C=this._focusDisposableStore)===null||C===void 0||C.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new DisposableStore,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(C){this._focusedStickyElementIndex=C?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const C=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:C[this._focusedStickyElementIndex],column:1})}_revealPosition(C){this._reveaInEditor(C,()=>this._editor.revealPosition(C))}_revealLineInCenterIfOutsideViewport(C){this._reveaInEditor(C,()=>this._editor.revealLineInCenterIfOutsideViewport(C.lineNumber,0))}_reveaInEditor(C,W){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,W(),this._editor.setSelection(Range$5.fromPositions(C)),this._editor.focus()}_registerMouseListeners(){const C=this._register(new DisposableStore),W=this._register(new ClickLinkGesture(this._editor,{extractLineNumberFromMouseEvent:G=>{const Z=this._stickyScrollWidget.getEditorPositionFromNode(G.target.element);return Z?Z.lineNumber:0}})),H=G=>{if(!this._editor.hasModel()||G.target.type!==12||G.target.detail!==this._stickyScrollWidget.getId())return null;const Z=G.target.element;if(!Z||Z.innerText!==Z.innerHTML)return null;const X=this._stickyScrollWidget.getEditorPositionFromNode(Z);return X?{range:new Range$5(X.lineNumber,X.column,X.lineNumber,X.column+Z.innerText.length),textElement:Z}:null},U=this._stickyScrollWidget.getDomNode();this._register(addStandardDisposableListener(U,EventType$1.CLICK,G=>{if(G.ctrlKey||G.altKey||G.metaKey||!G.leftButton)return;if(G.shiftKey){const ee=this._stickyScrollWidget.getLineIndexFromChildDomNode(G.target);if(ee===null)return;const te=new Position$4(this._endLineNumbers[ee],1);this._revealLineInCenterIfOutsideViewport(te);return}if(this._stickyScrollWidget.isInFoldingIconDomNode(G.target)){const ee=this._stickyScrollWidget.getLineNumberFromChildDomNode(G.target);this._toggleFoldingRegionForLine(ee);return}if(!this._stickyScrollWidget.isInStickyLine(G.target))return;let Q=this._stickyScrollWidget.getEditorPositionFromNode(G.target);if(!Q){const ee=this._stickyScrollWidget.getLineNumberFromChildDomNode(G.target);if(ee===null)return;Q=new Position$4(ee,1)}this._revealPosition(Q)})),this._register(addStandardDisposableListener(U,EventType$1.MOUSE_MOVE,G=>{if(G.shiftKey){const Z=this._stickyScrollWidget.getLineIndexFromChildDomNode(G.target);if(Z===null||this._showEndForLine!==null&&this._showEndForLine===Z)return;this._showEndForLine=Z,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(addDisposableListener(U,EventType$1.MOUSE_LEAVE,G=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(W.onMouseMoveOrRelevantKeyDown(([G,Z])=>{const X=H(G);if(!X||!G.hasTriggerModifier||!this._editor.hasModel()){C.clear();return}const{range:Q,textElement:ee}=X;if(!Q.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=Q,C.clear();else if(ee.style.textDecoration==="underline")return;const te=new CancellationTokenSource$1;C.add(toDisposable(()=>te.dispose(!0)));let ie;getDefinitionsAtPosition(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new Position$4(Q.startLineNumber,Q.startColumn+1),te.token).then(ne=>{if(!te.token.isCancellationRequested)if(ne.length!==0){this._candidateDefinitionsLength=ne.length;const oe=ee;ie!==oe?(C.clear(),ie=oe,ie.style.textDecoration="underline",C.add(toDisposable(()=>{ie.style.textDecoration="none"}))):ie||(ie=oe,ie.style.textDecoration="underline",C.add(toDisposable(()=>{ie.style.textDecoration="none"})))}else C.clear()})})),this._register(W.onCancel(()=>{C.clear()})),this._register(W.onExecute(G=>__awaiter$8(this,void 0,void 0,function*(){if(G.target.type!==12||G.target.detail!==this._stickyScrollWidget.getId())return;const Z=this._stickyScrollWidget.getEditorPositionFromNode(G.target.element);Z&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:Z.lineNumber,column:1})),this._instaService.invokeFunction(goToDefinitionWithLocation,G,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(C){const W=new StandardMouseEvent(C);this._contextMenuService.showContextMenu({menuId:MenuId.StickyScrollContext,getAnchor:()=>W})}_toggleFoldingRegionForLine(C){if(!this._foldingModel||C===null)return;const W=this._stickyScrollWidget.getStickyLineForLine(C),H=W==null?void 0:W.foldingIcon;if(!H)return;toggleCollapseState(this._foldingModel,Number.MAX_VALUE,[C]),H.isCollapsed=!H.isCollapsed;const U=(H.isCollapsed?this._editor.getTopForLineNumber(H.foldingEndLine):this._editor.getTopForLineNumber(H.foldingStartLine))-this._editor.getOption(66)*W.index+1;this._editor.setScrollTop(U),this._renderStickyScroll(C)}_readConfiguration(){const C=this._editor.getOption(114);if(C.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else C.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(H=>{H.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(H=>this._onTokensChange(H))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(67).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll()}))}_needsUpdate(C){const W=this._stickyScrollWidget.getCurrentLines();for(const H of W)for(const U of C.ranges)if(H>=U.fromLineNumber&&H<=U.toLineNumber)return!0;return!1}_onTokensChange(C){this._needsUpdate(C)&&this._renderStickyScroll(-1)}_onDidResize(){const W=this._editor.getLayoutInfo().height/this._editor.getOption(66);this._maxStickyLines=Math.round(W*.25)}_renderStickyScroll(C=1/0){var W,H;return __awaiter$8(this,void 0,void 0,function*(){const U=this._editor.getModel();if(!U||U.isTooLargeForTokenization()){this._foldingModel=null,this._stickyScrollWidget.setState(void 0,null,C);return}const G=this._stickyLineCandidateProvider.getVersionId();if(G===void 0||G===U.getVersionId())if(this._foldingModel=(H=yield(W=FoldingController.get(this._editor))===null||W===void 0?void 0:W.getFoldingModel())!==null&&H!==void 0?H:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,C);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,C),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const Z=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,C),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(Z)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}})}findScrollWidgetState(){const C=this._editor.getOption(66),W=Math.min(this._maxStickyLines,this._editor.getOption(114).maxLineCount),H=this._editor.getScrollTop();let U=0;const G=[],Z=[],X=this._editor.getVisibleRanges();if(X.length!==0){const Q=new StickyRange(X[0].startLineNumber,X[X.length-1].endLineNumber),ee=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(Q);for(const te of ee){const ie=te.startLineNumber,ne=te.endLineNumber,oe=te.nestingDepth;if(ne-ie>0){const re=(oe-1)*C,se=oe*C,ae=this._editor.getBottomForLineNumber(ie)-H,ce=this._editor.getTopForLineNumber(ne)-H,le=this._editor.getBottomForLineNumber(ne)-H;if(re>ce&&re<=le){G.push(ie),Z.push(ne+1),U=le-se;break}else se>ae&&se<=le&&(G.push(ie),Z.push(ne+1));if(G.length===W)break}}}return this._endLineNumbers=Z,new StickyScrollWidgetState(G,Z,U,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};StickyScrollController.ID="store.contrib.stickyScrollController",StickyScrollController=StickyScrollController_1=__decorate$e([__param$e(1,IContextMenuService),__param$e(2,ILanguageFeaturesService),__param$e(3,IInstantiationService),__param$e(4,ILanguageConfigurationService),__param$e(5,ILanguageFeatureDebounceService),__param$e(6,IContextKeyService)],StickyScrollController);var __awaiter$7=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};class ToggleStickyScroll extends Action2{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:localize("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:localize({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:Categories.View,toggled:{condition:ContextKeyExpr.equals("config.editor.stickyScroll.enabled",!0),title:localize("stickyScroll","Sticky Scroll"),mnemonicTitle:localize({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:MenuId.CommandPalette},{id:MenuId.MenubarAppearanceMenu,group:"4_editor",order:3},{id:MenuId.StickyScrollContext}]})}run(C){return __awaiter$7(this,void 0,void 0,function*(){const W=C.get(IConfigurationService),H=!W.getValue("editor.stickyScroll.enabled");return W.updateValue("editor.stickyScroll.enabled",H)})}}const weight=100;class FocusStickyScroll extends EditorAction2{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:localize("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:localize({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:ContextKeyExpr.and(ContextKeyExpr.has("config.editor.stickyScroll.enabled"),EditorContextKeys.stickyScrollVisible),menu:[{id:MenuId.CommandPalette}]})}runEditorCommand(C,W){var H;(H=StickyScrollController.get(W))===null||H===void 0||H.focus()}}class SelectNextStickyScrollLine extends EditorAction2{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:localize("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight,primary:18}})}runEditorCommand(C,W){var H;(H=StickyScrollController.get(W))===null||H===void 0||H.focusNext()}}class SelectPreviousStickyScrollLine extends EditorAction2{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:localize("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight,primary:16}})}runEditorCommand(C,W){var H;(H=StickyScrollController.get(W))===null||H===void 0||H.focusPrevious()}}class GoToStickyScrollLine extends EditorAction2{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:localize("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight,primary:3}})}runEditorCommand(C,W){var H;(H=StickyScrollController.get(W))===null||H===void 0||H.goToFocused()}}class SelectEditor extends EditorAction2{constructor(){super({id:"editor.action.selectEditor",title:{value:localize("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:EditorContextKeys.stickyScrollFocused.isEqualTo(!0),keybinding:{weight,primary:9}})}runEditorCommand(C,W){var H;(H=StickyScrollController.get(W))===null||H===void 0||H.selectEditor()}}registerEditorContribution(StickyScrollController.ID,StickyScrollController,1),registerAction2(ToggleStickyScroll),registerAction2(FocusStickyScroll),registerAction2(SelectPreviousStickyScrollLine),registerAction2(SelectNextStickyScrollLine),registerAction2(GoToStickyScrollLine),registerAction2(SelectEditor);var __decorate$d=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$d=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$6=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},EditorContribution_1;class SuggestInlineCompletion{constructor(C,W,H,U,G,Z){this.range=C,this.insertText=W,this.filterText=H,this.additionalTextEdits=U,this.command=G,this.completion=Z}}let InlineCompletionResults=class extends RefCountedDisposable{constructor(C,W,H,U,G,Z){super(G.disposable),this.model=C,this.line=W,this.word=H,this.completionModel=U,this._suggestMemoryService=Z}canBeReused(C,W,H){return this.model===C&&this.line===W&&this.word.word.length>0&&this.word.startColumn===H.startColumn&&this.word.endColumn<H.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){var C;const W=[],{items:H}=this.completionModel,U=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},H),G=Iterable.slice(H,U),Z=Iterable.slice(H,0,U);let X=5;for(const Q of Iterable.concat(G,Z)){if(Q.score===FuzzyScore.Default)continue;const ee=new Range$5(Q.editStart.lineNumber,Q.editStart.column,Q.editInsertEnd.lineNumber,Q.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),te=Q.completion.insertTextRules&&Q.completion.insertTextRules&4?{snippet:Q.completion.insertText}:Q.completion.insertText;W.push(new SuggestInlineCompletion(ee,te,(C=Q.filterTextLow)!==null&&C!==void 0?C:Q.labelLow,Q.completion.additionalTextEdits,Q.completion.command,Q)),X-->=0&&Q.resolve(CancellationToken.None)}return W}};InlineCompletionResults=__decorate$d([__param$d(5,ISuggestMemoryService)],InlineCompletionResults);let SuggestInlineCompletions=class{constructor(C,W,H,U){this._getEditorOption=C,this._languageFeatureService=W,this._clipboardService=H,this._suggestMemoryService=U}provideInlineCompletions(C,W,H,U){var G;return __awaiter$6(this,void 0,void 0,function*(){if(H.selectedSuggestionInfo)return;const Z=this._getEditorOption(88,C);if(QuickSuggestionsOptions.isAllOff(Z))return;C.tokenization.tokenizeIfCheap(W.lineNumber);const X=C.tokenization.getLineTokens(W.lineNumber),Q=X.getStandardTokenType(X.findTokenIndexAtOffset(Math.max(W.column-1-1,0)));if(QuickSuggestionsOptions.valueFor(Z,Q)!=="inline")return;let ee=C.getWordAtPosition(W),te;if(ee!=null&&ee.word||(te=this._getTriggerCharacterInfo(C,W)),!(ee!=null&&ee.word)&&!te||(ee||(ee=C.getWordUntilPosition(W)),ee.endColumn!==W.column))return;let ie;const ne=C.getValueInRange(new Range$5(W.lineNumber,1,W.lineNumber,W.column));if(!te&&(!((G=this._lastResult)===null||G===void 0)&&G.canBeReused(C,W.lineNumber,ee))){const oe=new LineContext$1(ne,W.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=oe,this._lastResult.acquire(),ie=this._lastResult}else{const oe=yield provideSuggestionItems(this._languageFeatureService.completionProvider,C,W,new CompletionOptions(void 0,void 0,te==null?void 0:te.providers),te&&{triggerKind:1,triggerCharacter:te.ch},U);let re;oe.needsClipboard&&(re=yield this._clipboardService.readText());const se=new CompletionModel(oe.items,W.column,new LineContext$1(ne,0),WordDistance.None,this._getEditorOption(117,C),this._getEditorOption(111,C),{boostFullMatch:!1,firstMatchCanBeWeak:!1},re);ie=new InlineCompletionResults(C,W.lineNumber,ee,se,oe,this._suggestMemoryService)}return this._lastResult=ie,ie})}handleItemDidShow(C,W){W.completion.resolve(CancellationToken.None)}freeInlineCompletions(C){C.release()}_getTriggerCharacterInfo(C,W){var H;const U=C.getValueInRange(Range$5.fromPositions({lineNumber:W.lineNumber,column:W.column-1},W)),G=new Set;for(const Z of this._languageFeatureService.completionProvider.all(C))!((H=Z.triggerCharacters)===null||H===void 0)&&H.includes(U)&&G.add(Z);if(G.size!==0)return{providers:G,ch:U}}};SuggestInlineCompletions=__decorate$d([__param$d(1,ILanguageFeaturesService),__param$d(2,IClipboardService),__param$d(3,ISuggestMemoryService)],SuggestInlineCompletions);let EditorContribution=EditorContribution_1=class{constructor(C,W,H,U){if(++EditorContribution_1._counter===1){const G=U.createInstance(SuggestInlineCompletions,(Z,X)=>{var Q;return((Q=H.listCodeEditors().find(te=>te.getModel()===X))!==null&&Q!==void 0?Q:C).getOption(Z)});EditorContribution_1._disposable=W.inlineCompletionsProvider.register("*",G)}}dispose(){var C;--EditorContribution_1._counter===0&&((C=EditorContribution_1._disposable)===null||C===void 0||C.dispose(),EditorContribution_1._disposable=void 0)}};EditorContribution._counter=0,EditorContribution=EditorContribution_1=__decorate$d([__param$d(1,ILanguageFeaturesService),__param$d(2,ICodeEditorService),__param$d(3,IInstantiationService)],EditorContribution),registerEditorContribution("suggest.inlineCompletionsProvider",EditorContribution,0);class ForceRetokenizeAction extends EditorAction{constructor(){super({id:"editor.action.forceRetokenize",label:localize("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(C,W){if(!W.hasModel())return;const H=W.getModel();H.tokenization.resetTokenization();const U=new StopWatch;H.tokenization.forceTokenization(H.getLineCount()),U.stop(),console.log(`tokenization took ${U.elapsed()}`)}}registerEditorAction(ForceRetokenizeAction);class ToggleTabFocusModeAction extends Action2{constructor(){super({id:ToggleTabFocusModeAction.ID,title:{value:localize({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(){const W=!TabFocus.getTabFocusMode();TabFocus.setTabFocusMode(W),alert(W?localize("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):localize("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}ToggleTabFocusModeAction.ID="editor.action.toggleTabFocusMode",registerAction2(ToggleTabFocusModeAction);const unicodeHighlighter="",bannerController="",link="";var __decorate$c=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$c=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};let Link=class extends Disposable{get enabled(){return this._enabled}set enabled(C){C?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=C}constructor(C,W,H={},U){var G;super(),this._link=W,this._enabled=!0,this.el=append$1(C,$$d("a.monaco-link",{tabIndex:(G=W.tabIndex)!==null&&G!==void 0?G:0,href:W.href,title:W.title},W.label)),this.el.setAttribute("role","button");const Z=this._register(new DomEmitter(this.el,"click")),X=this._register(new DomEmitter(this.el,"keypress")),Q=Event.chain(X.event,ie=>ie.map(ne=>new StandardKeyboardEvent(ne)).filter(ne=>ne.keyCode===3)),ee=this._register(new DomEmitter(this.el,EventType.Tap)).event;this._register(Gesture.addTarget(this.el));const te=Event.any(Z.event,Q,ee);this._register(te(ie=>{this.enabled&&(EventHelper.stop(ie,!0),H!=null&&H.opener?H.opener(this._link.href):U.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}};Link=__decorate$c([__param$c(3,IOpenerService)],Link);var __decorate$b=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$b=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};const BANNER_ELEMENT_HEIGHT=26;let BannerController=class extends Disposable{constructor(C,W){super(),this._editor=C,this.instantiationService=W,this.banner=this._register(this.instantiationService.createInstance(Banner))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(C){this.banner.show(Object.assign(Object.assign({},C),{onClose:()=>{var W;this.hide(),(W=C.onClose)===null||W===void 0||W.call(C)}})),this._editor.setBanner(this.banner.element,BANNER_ELEMENT_HEIGHT)}};BannerController=__decorate$b([__param$b(1,IInstantiationService)],BannerController);let Banner=class extends Disposable{constructor(C){super(),this.instantiationService=C,this.markdownRenderer=this.instantiationService.createInstance(MarkdownRenderer,{}),this.element=$$d("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(C){if(C.ariaLabel)return C.ariaLabel;if(typeof C.message=="string")return C.message}getBannerMessage(C){if(typeof C=="string"){const W=$$d("span");return W.innerText=C,W}return this.markdownRenderer.render(C).element}clear(){clearNode(this.element)}show(C){clearNode(this.element);const W=this.getAriaLabel(C);W&&this.element.setAttribute("aria-label",W);const H=append$1(this.element,$$d("div.icon-container"));H.setAttribute("aria-hidden","true"),C.icon&&H.appendChild($$d(`div${ThemeIcon.asCSSSelector(C.icon)}`));const U=append$1(this.element,$$d("div.message-container"));if(U.setAttribute("aria-hidden","true"),U.appendChild(this.getBannerMessage(C.message)),this.messageActionsContainer=append$1(this.element,$$d("div.message-actions-container")),C.actions)for(const Z of C.actions)this._register(this.instantiationService.createInstance(Link,this.messageActionsContainer,Object.assign(Object.assign({},Z),{tabIndex:-1}),{}));const G=append$1(this.element,$$d("div.action-container"));this.actionBar=this._register(new ActionBar(G)),this.actionBar.push(this._register(new Action("banner.close","Close Banner",ThemeIcon.asClassName(widgetClose),!0,()=>{typeof C.onClose=="function"&&C.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};Banner=__decorate$b([__param$b(0,IInstantiationService)],Banner);var __decorate$a=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$a=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$5=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};const warningIcon=registerIcon("extensions-warning-message",Codicon.warning,localize("warningIcon","Icon shown with a warning message in the extensions editor."));let UnicodeHighlighter=class extends Disposable{constructor(C,W,H,U){super(),this._editor=C,this._editorWorkerService=W,this._workspaceTrustService=H,this._highlighter=null,this._bannerClosed=!1,this._updateState=G=>{if(G&&G.hasMore){if(this._bannerClosed)return;const Z=Math.max(G.ambiguousCharacterCount,G.nonBasicAsciiCharacterCount,G.invisibleCharacterCount);let X;if(G.nonBasicAsciiCharacterCount>=Z)X={message:localize("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new DisableHighlightingOfNonBasicAsciiCharactersAction};else if(G.ambiguousCharacterCount>=Z)X={message:localize("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new DisableHighlightingOfAmbiguousCharactersAction};else if(G.invisibleCharacterCount>=Z)X={message:localize("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new DisableHighlightingOfInvisibleCharactersAction};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:X.message,icon:warningIcon,actions:[{label:X.command.shortLabel,href:`command:${X.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(U.createInstance(BannerController,C)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=C.getOption(124),this._register(H.onDidChangeTrust(G=>{this._updateHighlighter()})),this._register(C.onDidChangeConfiguration(G=>{G.hasChanged(124)&&(this._options=C.getOption(124),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const C=resolveOptions(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([C.nonBasicASCII,C.ambiguousCharacters,C.invisibleCharacters].every(H=>H===!1))return;const W={nonBasicASCII:C.nonBasicASCII,ambiguousCharacters:C.ambiguousCharacters,invisibleCharacters:C.invisibleCharacters,includeComments:C.includeComments,includeStrings:C.includeStrings,allowedCodePoints:Object.keys(C.allowedCharacters).map(H=>H.codePointAt(0)),allowedLocales:Object.keys(C.allowedLocales).map(H=>H==="_os"?new Intl.NumberFormat().resolvedOptions().locale:H==="_vscode"?language$1f:H)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new DocumentUnicodeHighlighter(this._editor,W,this._updateState,this._editorWorkerService):this._highlighter=new ViewportUnicodeHighlighter(this._editor,W,this._updateState)}getDecorationInfo(C){return this._highlighter?this._highlighter.getDecorationInfo(C):null}};UnicodeHighlighter.ID="editor.contrib.unicodeHighlighter",UnicodeHighlighter=__decorate$a([__param$a(1,IEditorWorkerService),__param$a(2,IWorkspaceTrustManagementService),__param$a(3,IInstantiationService)],UnicodeHighlighter);function resolveOptions(K,C){return{nonBasicASCII:C.nonBasicASCII===inUntrustedWorkspace?!K:C.nonBasicASCII,ambiguousCharacters:C.ambiguousCharacters,invisibleCharacters:C.invisibleCharacters,includeComments:C.includeComments===inUntrustedWorkspace?!K:C.includeComments,includeStrings:C.includeStrings===inUntrustedWorkspace?!K:C.includeStrings,allowedCharacters:C.allowedCharacters,allowedLocales:C.allowedLocales}}let DocumentUnicodeHighlighter=class extends Disposable{constructor(C,W,H,U){super(),this._editor=C,this._options=W,this._updateState=H,this._editorWorkerService=U,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new RunOnceScheduler(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const C=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(W=>{if(this._model.isDisposed()||this._model.getVersionId()!==C)return;this._updateState(W);const H=[];if(!W.hasMore)for(const U of W.ranges)H.push({range:U,options:Decorations.instance.getDecorationFromOptions(this._options)});this._decorations.set(H)})}getDecorationInfo(C){if(!this._decorations.has(C))return null;const W=this._editor.getModel();if(!isModelDecorationVisible(W,C))return null;const H=W.getValueInRange(C.range);return{reason:computeReason(H,this._options),inComment:isModelDecorationInComment(W,C),inString:isModelDecorationInString(W,C)}}};DocumentUnicodeHighlighter=__decorate$a([__param$a(3,IEditorWorkerService)],DocumentUnicodeHighlighter);class ViewportUnicodeHighlighter extends Disposable{constructor(C,W,H){super(),this._editor=C,this._options=W,this._updateState=H,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new RunOnceScheduler(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const C=this._editor.getVisibleRanges(),W=[],H={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const U of C){const G=UnicodeTextModelHighlighter.computeUnicodeHighlights(this._model,this._options,U);for(const Z of G.ranges)H.ranges.push(Z);H.ambiguousCharacterCount+=H.ambiguousCharacterCount,H.invisibleCharacterCount+=H.invisibleCharacterCount,H.nonBasicAsciiCharacterCount+=H.nonBasicAsciiCharacterCount,H.hasMore=H.hasMore||G.hasMore}if(!H.hasMore)for(const U of H.ranges)W.push({range:U,options:Decorations.instance.getDecorationFromOptions(this._options)});this._updateState(H),this._decorations.set(W)}getDecorationInfo(C){if(!this._decorations.has(C))return null;const W=this._editor.getModel(),H=W.getValueInRange(C.range);return isModelDecorationVisible(W,C)?{reason:computeReason(H,this._options),inComment:isModelDecorationInComment(W,C),inString:isModelDecorationInString(W,C)}:null}}let UnicodeHighlighterHoverParticipant=class{constructor(C,W,H){this._editor=C,this._languageService=W,this._openerService=H,this.hoverOrdinal=5}computeSync(C,W){if(!this._editor.hasModel()||C.type!==1)return[];const H=this._editor.getModel(),U=this._editor.getContribution(UnicodeHighlighter.ID);if(!U)return[];const G=[],Z=new Set;let X=300;for(const Q of W){const ee=U.getDecorationInfo(Q);if(!ee)continue;const ie=H.getValueInRange(Q.range).codePointAt(0),ne=formatCodePointMarkdown(ie);let oe;switch(ee.reason.kind){case 0:{isBasicASCII(ee.reason.confusableWith)?oe=localize("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",ne,formatCodePointMarkdown(ee.reason.confusableWith.codePointAt(0))):oe=localize("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",ne,formatCodePointMarkdown(ee.reason.confusableWith.codePointAt(0)));break}case 1:oe=localize("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",ne);break;case 2:oe=localize("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",ne);break}if(Z.has(oe))continue;Z.add(oe);const re={codePoint:ie,reason:ee.reason,inComment:ee.inComment,inString:ee.inString},se=localize("unicodeHighlight.adjustSettings","Adjust settings"),ae=`command:${ShowExcludeOptions.ID}?${encodeURIComponent(JSON.stringify(re))}`,ce=new MarkdownString("",!0).appendMarkdown(oe).appendText(" ").appendLink(ae,se);G.push(new MarkdownHover(this,Q.range,[ce],!1,X++))}return G}renderHoverParts(C,W){return renderMarkdownHovers(C,W,this._editor,this._languageService,this._openerService)}};UnicodeHighlighterHoverParticipant=__decorate$a([__param$a(1,ILanguageService),__param$a(2,IOpenerService)],UnicodeHighlighterHoverParticipant);function codePointToHex(K){return`U+${K.toString(16).padStart(4,"0")}`}function formatCodePointMarkdown(K){let C=`\`${codePointToHex(K)}\``;return InvisibleCharacters.isInvisibleCharacter(K)||(C+=` "${`${renderCodePointAsInlineCode(K)}`}"`),C}function renderCodePointAsInlineCode(K){return K===96?"`` ` ``":"`"+String.fromCodePoint(K)+"`"}function computeReason(K,C){return UnicodeTextModelHighlighter.computeUnicodeHighlightReason(K,C)}class Decorations{constructor(){this.map=new Map}getDecorationFromOptions(C){return this.getDecoration(!C.includeComments,!C.includeStrings)}getDecoration(C,W){const H=`${C}${W}`;let U=this.map.get(H);return U||(U=ModelDecorationOptions.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:C,hideInStringTokens:W}),this.map.set(H,U)),U}}Decorations.instance=new Decorations;class DisableHighlightingInCommentsAction extends EditorAction{constructor(){super({id:DisableHighlightingOfAmbiguousCharactersAction.ID,label:localize("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=localize("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(C,W,H){return __awaiter$5(this,void 0,void 0,function*(){const U=C==null?void 0:C.get(IConfigurationService);U&&this.runAction(U)})}runAction(C){return __awaiter$5(this,void 0,void 0,function*(){yield C.updateValue(unicodeHighlightConfigKeys.includeComments,!1,2)})}}class DisableHighlightingInStringsAction extends EditorAction{constructor(){super({id:DisableHighlightingOfAmbiguousCharactersAction.ID,label:localize("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=localize("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(C,W,H){return __awaiter$5(this,void 0,void 0,function*(){const U=C==null?void 0:C.get(IConfigurationService);U&&this.runAction(U)})}runAction(C){return __awaiter$5(this,void 0,void 0,function*(){yield C.updateValue(unicodeHighlightConfigKeys.includeStrings,!1,2)})}}class DisableHighlightingOfAmbiguousCharactersAction extends EditorAction{constructor(){super({id:DisableHighlightingOfAmbiguousCharactersAction.ID,label:localize("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=localize("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(C,W,H){return __awaiter$5(this,void 0,void 0,function*(){const U=C==null?void 0:C.get(IConfigurationService);U&&this.runAction(U)})}runAction(C){return __awaiter$5(this,void 0,void 0,function*(){yield C.updateValue(unicodeHighlightConfigKeys.ambiguousCharacters,!1,2)})}}DisableHighlightingOfAmbiguousCharactersAction.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class DisableHighlightingOfInvisibleCharactersAction extends EditorAction{constructor(){super({id:DisableHighlightingOfInvisibleCharactersAction.ID,label:localize("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=localize("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(C,W,H){return __awaiter$5(this,void 0,void 0,function*(){const U=C==null?void 0:C.get(IConfigurationService);U&&this.runAction(U)})}runAction(C){return __awaiter$5(this,void 0,void 0,function*(){yield C.updateValue(unicodeHighlightConfigKeys.invisibleCharacters,!1,2)})}}DisableHighlightingOfInvisibleCharactersAction.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class DisableHighlightingOfNonBasicAsciiCharactersAction extends EditorAction{constructor(){super({id:DisableHighlightingOfNonBasicAsciiCharactersAction.ID,label:localize("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=localize("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(C,W,H){return __awaiter$5(this,void 0,void 0,function*(){const U=C==null?void 0:C.get(IConfigurationService);U&&this.runAction(U)})}runAction(C){return __awaiter$5(this,void 0,void 0,function*(){yield C.updateValue(unicodeHighlightConfigKeys.nonBasicASCII,!1,2)})}}DisableHighlightingOfNonBasicAsciiCharactersAction.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class ShowExcludeOptions extends EditorAction{constructor(){super({id:ShowExcludeOptions.ID,label:localize("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(C,W,H){return __awaiter$5(this,void 0,void 0,function*(){const{codePoint:U,reason:G,inString:Z,inComment:X}=H,Q=String.fromCodePoint(U),ee=C.get(IQuickInputService),te=C.get(IConfigurationService);function ie(re){return InvisibleCharacters.isInvisibleCharacter(re)?localize("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",codePointToHex(re)):localize("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${codePointToHex(re)} "${Q}"`)}const ne=[];if(G.kind===0)for(const re of G.notAmbiguousInLocales)ne.push({label:localize("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',re),run:()=>__awaiter$5(this,void 0,void 0,function*(){excludeLocaleFromBeingHighlighted(te,[re])})});if(ne.push({label:ie(U),run:()=>excludeCharFromBeingHighlighted(te,[U])}),X){const re=new DisableHighlightingInCommentsAction;ne.push({label:re.label,run:()=>__awaiter$5(this,void 0,void 0,function*(){return re.runAction(te)})})}else if(Z){const re=new DisableHighlightingInStringsAction;ne.push({label:re.label,run:()=>__awaiter$5(this,void 0,void 0,function*(){return re.runAction(te)})})}if(G.kind===0){const re=new DisableHighlightingOfAmbiguousCharactersAction;ne.push({label:re.label,run:()=>__awaiter$5(this,void 0,void 0,function*(){return re.runAction(te)})})}else if(G.kind===1){const re=new DisableHighlightingOfInvisibleCharactersAction;ne.push({label:re.label,run:()=>__awaiter$5(this,void 0,void 0,function*(){return re.runAction(te)})})}else if(G.kind===2){const re=new DisableHighlightingOfNonBasicAsciiCharactersAction;ne.push({label:re.label,run:()=>__awaiter$5(this,void 0,void 0,function*(){return re.runAction(te)})})}else expectNever(G);const oe=yield ee.pick(ne,{title:localize("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});oe&&(yield oe.run())})}}ShowExcludeOptions.ID="editor.action.unicodeHighlight.showExcludeOptions";function excludeCharFromBeingHighlighted(K,C){return __awaiter$5(this,void 0,void 0,function*(){const W=K.getValue(unicodeHighlightConfigKeys.allowedCharacters);let H;typeof W=="object"&&W?H=W:H={};for(const U of C)H[String.fromCodePoint(U)]=!0;yield K.updateValue(unicodeHighlightConfigKeys.allowedCharacters,H,2)})}function excludeLocaleFromBeingHighlighted(K,C){var W;return __awaiter$5(this,void 0,void 0,function*(){const H=(W=K.inspect(unicodeHighlightConfigKeys.allowedLocales).user)===null||W===void 0?void 0:W.value;let U;typeof H=="object"&&H?U=Object.assign({},H):U={};for(const G of C)U[G]=!0;yield K.updateValue(unicodeHighlightConfigKeys.allowedLocales,U,2)})}function expectNever(K){throw new Error(`Unexpected value: ${K}`)}registerEditorAction(DisableHighlightingOfAmbiguousCharactersAction),registerEditorAction(DisableHighlightingOfInvisibleCharactersAction),registerEditorAction(DisableHighlightingOfNonBasicAsciiCharactersAction),registerEditorAction(ShowExcludeOptions),registerEditorContribution(UnicodeHighlighter.ID,UnicodeHighlighter,1),HoverParticipantRegistry.register(UnicodeHighlighterHoverParticipant);var __decorate$9=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$9=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$4=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};const ignoreUnusualLineTerminators="ignoreUnusualLineTerminators";function writeIgnoreState(K,C,W){K.setModelProperty(C.uri,ignoreUnusualLineTerminators,W)}function readIgnoreState(K,C){return K.getModelProperty(C.uri,ignoreUnusualLineTerminators)}let UnusualLineTerminatorsDetector=class extends Disposable{constructor(C,W,H){super(),this._editor=C,this._dialogService=W,this._codeEditorService=H,this._isPresentingDialog=!1,this._config=this._editor.getOption(125),this._register(this._editor.onDidChangeConfiguration(U=>{U.hasChanged(125)&&(this._config=this._editor.getOption(125),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(U=>{U.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return __awaiter$4(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const C=this._editor.getModel();if(!C.mightContainUnusualLineTerminators()||readIgnoreState(this._codeEditorService,C)===!0||this._editor.getOption(90))return;if(this._config==="auto"){C.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let H;try{this._isPresentingDialog=!0,H=yield this._dialogService.confirm({title:localize("unusualLineTerminators.title","Unusual Line Terminators"),message:localize("unusualLineTerminators.message","Detected unusual line terminators"),detail:localize("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",basename(C.uri)),primaryButton:localize({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:localize("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!H.confirmed){writeIgnoreState(this._codeEditorService,C,!0);return}C.removeUnusualLineTerminators(this._editor.getSelections())})}};UnusualLineTerminatorsDetector.ID="editor.contrib.unusualLineTerminatorsDetector",UnusualLineTerminatorsDetector=__decorate$9([__param$9(1,IDialogService),__param$9(2,ICodeEditorService)],UnusualLineTerminatorsDetector),registerEditorContribution(UnusualLineTerminatorsDetector.ID,UnusualLineTerminatorsDetector,1);var __decorate$8=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$8=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},WordHighlighterContribution_1;const ctxHasWordHighlights=new RawContextKey("hasWordHighlights",!1);function getOccurrencesAtPosition(K,C,W,H){const U=K.ordered(C);return first(U.map(G=>()=>Promise.resolve(G.provideDocumentHighlights(C,W,H)).then(void 0,onUnexpectedExternalError)),isNonEmptyArray)}class OccurenceAtPositionRequest{constructor(C,W,H){this._model=C,this._selection=W,this._wordSeparators=H,this._wordRange=this._getCurrentWordRange(C,W),this._result=null}get result(){return this._result||(this._result=createCancelablePromise(C=>this._compute(this._model,this._selection,this._wordSeparators,C))),this._result}_getCurrentWordRange(C,W){const H=C.getWordAtPosition(W.getPosition());return H?new Range$5(W.startLineNumber,H.startColumn,W.startLineNumber,H.endColumn):null}isValid(C,W,H){const U=W.startLineNumber,G=W.startColumn,Z=W.endColumn,X=this._getCurrentWordRange(C,W);let Q=!!(this._wordRange&&this._wordRange.equalsRange(X));for(let ee=0,te=H.length;!Q&&ee<te;ee++){const ie=H.getRange(ee);ie&&ie.startLineNumber===U&&ie.startColumn<=G&&ie.endColumn>=Z&&(Q=!0)}return Q}cancel(){this.result.cancel()}}class SemanticOccurenceAtPositionRequest extends OccurenceAtPositionRequest{constructor(C,W,H,U){super(C,W,H),this._providers=U}_compute(C,W,H,U){return getOccurrencesAtPosition(this._providers,C,W.getPosition(),U).then(G=>G||[])}}class TextualOccurenceAtPositionRequest extends OccurenceAtPositionRequest{constructor(C,W,H){super(C,W,H),this._selectionIsEmpty=W.isEmpty()}_compute(C,W,H,U){return timeout(250,U).then(()=>{if(!W.isEmpty())return[];const G=C.getWordAtPosition(W.getPosition());return!G||G.word.length>1e3?[]:C.findMatches(G.word,!0,!1,!0,H,!1).map(X=>({range:X.range,kind:DocumentHighlightKind$4.Text}))})}isValid(C,W,H){const U=W.isEmpty();return this._selectionIsEmpty!==U?!1:super.isValid(C,W,H)}}function computeOccurencesAtPosition(K,C,W,H){return K.has(C)?new SemanticOccurenceAtPositionRequest(C,W,H,K):new TextualOccurenceAtPositionRequest(C,W,H)}registerModelAndPositionCommand("_executeDocumentHighlights",(K,C,W)=>{const H=K.get(ILanguageFeaturesService);return getOccurrencesAtPosition(H.documentHighlightProvider,C,W,CancellationToken.None)});class WordHighlighter{constructor(C,W,H,U){this.toUnhook=new DisposableStore,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=C,this.providers=W,this.linkedHighlighters=H,this._hasWordHighlights=ctxHasWordHighlights.bindTo(U),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(80),this.model=this.editor.getModel(),this.toUnhook.add(C.onDidChangeCursorPosition(G=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(G)})),this.toUnhook.add(C.onDidChangeModelContent(G=>{this._stopAll()})),this.toUnhook.add(C.onDidChangeConfiguration(G=>{const Z=this.editor.getOption(80);this.occurrencesHighlight!==Z&&(this.occurrencesHighlight=Z,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(Range$5.compareRangesUsingStarts)}moveNext(){const C=this._getSortedHighlights(),H=(C.findIndex(G=>G.containsPosition(this.editor.getPosition()))+1)%C.length,U=C[H];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(U.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(U);const G=this._getWord();if(G){const Z=this.editor.getModel().getLineContent(U.startLineNumber);alert(`${Z}, ${H+1} of ${C.length} for '${G.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const C=this._getSortedHighlights(),H=(C.findIndex(G=>G.containsPosition(this.editor.getPosition()))-1+C.length)%C.length,U=C[H];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(U.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(U);const G=this._getWord();if(G){const Z=this.editor.getModel().getLineContent(U.startLineNumber);alert(`${Z}, ${H+1} of ${C.length} for '${G.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(C){if(!this.occurrencesHighlight){this._stopAll();return}if(C.reason!==3){this._stopAll();return}this._run()}_getWord(){const C=this.editor.getSelection(),W=C.startLineNumber,H=C.startColumn;return this.model.getWordAtPosition({lineNumber:W,column:H})}_run(){const C=this.editor.getSelection();if(C.startLineNumber!==C.endLineNumber){this._stopAll();return}const W=C.startColumn,H=C.endColumn,U=this._getWord();if(!U||U.startColumn>W||U.endColumn<H){this._stopAll();return}const G=this.workerRequest&&this.workerRequest.isValid(this.model,C,this.decorations);if(this.lastCursorPositionChangeTime=new Date().getTime(),G)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const Z=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=computeOccurencesAtPosition(this.providers,this.model,this.editor.getSelection(),this.editor.getOption(129)),this.workerRequest.result.then(X=>{Z===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=X||[],this._beginRenderDecorations())},onUnexpectedError)}}_beginRenderDecorations(){const C=new Date().getTime(),W=this.lastCursorPositionChangeTime+250;C>=W?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},W-C)}renderDecorations(){this.renderDecorationsTimer=-1;const C=[];for(const W of this.workerRequestValue)W.range&&C.push({range:W.range,options:getHighlightDecorationOptions(W.kind)});this.decorations.set(C),this._hasWordHighlights.set(this.hasDecorations());for(const W of this.linkedHighlighters())(W==null?void 0:W.editor.getModel())===this.editor.getModel()&&(W._stopAll(),W.decorations.set(C),W._hasWordHighlights.set(W.hasDecorations()))}dispose(){this._stopAll(),this.toUnhook.dispose()}}let WordHighlighterContribution=WordHighlighterContribution_1=class extends Disposable{static get(C){return C.getContribution(WordHighlighterContribution_1.ID)}constructor(C,W,H){super(),this.wordHighlighter=null,this.linkedContributions=new Set;const U=()=>{C.hasModel()&&!C.getModel().isTooLargeForTokenization()&&(this.wordHighlighter=new WordHighlighter(C,H.documentHighlightProvider,()=>Iterable.map(this.linkedContributions,G=>G.wordHighlighter),W))};this._register(C.onDidChangeModel(G=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),U()})),U()}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){var C;(C=this.wordHighlighter)===null||C===void 0||C.moveNext()}moveBack(){var C;(C=this.wordHighlighter)===null||C===void 0||C.moveBack()}restoreViewState(C){this.wordHighlighter&&C&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};WordHighlighterContribution.ID="editor.contrib.wordHighlighter",WordHighlighterContribution=WordHighlighterContribution_1=__decorate$8([__param$8(1,IContextKeyService),__param$8(2,ILanguageFeaturesService)],WordHighlighterContribution);class WordHighlightNavigationAction extends EditorAction{constructor(C,W){super(W),this._isNext=C}run(C,W){const H=WordHighlighterContribution.get(W);H&&(this._isNext?H.moveNext():H.moveBack())}}class NextWordHighlightAction extends WordHighlightNavigationAction{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:localize("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:ctxHasWordHighlights,kbOpts:{kbExpr:EditorContextKeys.editorTextFocus,primary:65,weight:100}})}}class PrevWordHighlightAction extends WordHighlightNavigationAction{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:localize("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:ctxHasWordHighlights,kbOpts:{kbExpr:EditorContextKeys.editorTextFocus,primary:1089,weight:100}})}}class TriggerWordHighlightAction extends EditorAction{constructor(){super({id:"editor.action.wordHighlight.trigger",label:localize("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:ctxHasWordHighlights.toNegated(),kbOpts:{kbExpr:EditorContextKeys.editorTextFocus,primary:0,weight:100}})}run(C,W,H){const U=WordHighlighterContribution.get(W);U&&U.restoreViewState(!0)}}registerEditorContribution(WordHighlighterContribution.ID,WordHighlighterContribution,0),registerEditorAction(NextWordHighlightAction),registerEditorAction(PrevWordHighlightAction),registerEditorAction(TriggerWordHighlightAction);class MoveWordCommand extends EditorCommand{constructor(C){super(C),this._inSelectionMode=C.inSelectionMode,this._wordNavigationType=C.wordNavigationType}runEditorCommand(C,W,H){if(!W.hasModel())return;const U=getMapForWordSeparators(W.getOption(129)),G=W.getModel(),X=W.getSelections().map(Q=>{const ee=new Position$4(Q.positionLineNumber,Q.positionColumn),te=this._move(U,G,ee,this._wordNavigationType);return this._moveTo(Q,te,this._inSelectionMode)});if(G.pushStackElement(),W._getViewModel().setCursorStates("moveWordCommand",3,X.map(Q=>CursorState$1.fromModelSelection(Q))),X.length===1){const Q=new Position$4(X[0].positionLineNumber,X[0].positionColumn);W.revealPosition(Q,0)}}_moveTo(C,W,H){return H?new Selection$1(C.selectionStartLineNumber,C.selectionStartColumn,W.lineNumber,W.column):new Selection$1(W.lineNumber,W.column,W.lineNumber,W.column)}}class WordLeftCommand extends MoveWordCommand{_move(C,W,H,U){return WordOperations.moveWordLeft(C,W,H,U)}}class WordRightCommand extends MoveWordCommand{_move(C,W,H,U){return WordOperations.moveWordRight(C,W,H,U)}}class CursorWordStartLeft extends WordLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class CursorWordEndLeft extends WordLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class CursorWordLeft extends WordLeftCommand{constructor(){var C;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:ContextKeyExpr.and(EditorContextKeys.textInputFocus,(C=ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED,IsWindowsContext))===null||C===void 0?void 0:C.negate()),primary:2063,mac:{primary:527},weight:100}})}}class CursorWordStartLeftSelect extends WordLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class CursorWordEndLeftSelect extends WordLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class CursorWordLeftSelect extends WordLeftCommand{constructor(){var C;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:ContextKeyExpr.and(EditorContextKeys.textInputFocus,(C=ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED,IsWindowsContext))===null||C===void 0?void 0:C.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class CursorWordAccessibilityLeft extends WordLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(C,W,H,U){return super._move(getMapForWordSeparators(EditorOptions.wordSeparators.defaultValue),W,H,U)}}class CursorWordAccessibilityLeftSelect extends WordLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(C,W,H,U){return super._move(getMapForWordSeparators(EditorOptions.wordSeparators.defaultValue),W,H,U)}}class CursorWordStartRight extends WordRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class CursorWordEndRight extends WordRightCommand{constructor(){var C;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:ContextKeyExpr.and(EditorContextKeys.textInputFocus,(C=ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED,IsWindowsContext))===null||C===void 0?void 0:C.negate()),primary:2065,mac:{primary:529},weight:100}})}}class CursorWordRight extends WordRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class CursorWordStartRightSelect extends WordRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class CursorWordEndRightSelect extends WordRightCommand{constructor(){var C;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:ContextKeyExpr.and(EditorContextKeys.textInputFocus,(C=ContextKeyExpr.and(CONTEXT_ACCESSIBILITY_MODE_ENABLED,IsWindowsContext))===null||C===void 0?void 0:C.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class CursorWordRightSelect extends WordRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class CursorWordAccessibilityRight extends WordRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(C,W,H,U){return super._move(getMapForWordSeparators(EditorOptions.wordSeparators.defaultValue),W,H,U)}}class CursorWordAccessibilityRightSelect extends WordRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(C,W,H,U){return super._move(getMapForWordSeparators(EditorOptions.wordSeparators.defaultValue),W,H,U)}}class DeleteWordCommand extends EditorCommand{constructor(C){super(C),this._whitespaceHeuristics=C.whitespaceHeuristics,this._wordNavigationType=C.wordNavigationType}runEditorCommand(C,W,H){const U=C.get(ILanguageConfigurationService);if(!W.hasModel())return;const G=getMapForWordSeparators(W.getOption(129)),Z=W.getModel(),X=W.getSelections(),Q=W.getOption(6),ee=W.getOption(11),te=U.getLanguageConfiguration(Z.getLanguageId()).getAutoClosingPairs(),ie=W._getViewModel(),ne=X.map(oe=>{const re=this._delete({wordSeparators:G,model:Z,selection:oe,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:W.getOption(9),autoClosingBrackets:Q,autoClosingQuotes:ee,autoClosingPairs:te,autoClosedCharacters:ie.getCursorAutoClosedCharacters()},this._wordNavigationType);return new ReplaceCommand(re,"")});W.pushUndoStop(),W.executeCommands(this.id,ne),W.pushUndoStop()}}class DeleteWordLeftCommand extends DeleteWordCommand{_delete(C,W){const H=WordOperations.deleteWordLeft(C,W);return H||new Range$5(1,1,1,1)}}class DeleteWordRightCommand extends DeleteWordCommand{_delete(C,W){const H=WordOperations.deleteWordRight(C,W);if(H)return H;const U=C.model.getLineCount(),G=C.model.getLineMaxColumn(U);return new Range$5(U,G,U,G)}}class DeleteWordStartLeft extends DeleteWordLeftCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:EditorContextKeys.writable})}}class DeleteWordEndLeft extends DeleteWordLeftCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:EditorContextKeys.writable})}}class DeleteWordLeft extends DeleteWordLeftCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:EditorContextKeys.writable,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class DeleteWordStartRight extends DeleteWordRightCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:EditorContextKeys.writable})}}class DeleteWordEndRight extends DeleteWordRightCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:EditorContextKeys.writable})}}class DeleteWordRight extends DeleteWordRightCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:EditorContextKeys.writable,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class DeleteInsideWord extends EditorAction{constructor(){super({id:"deleteInsideWord",precondition:EditorContextKeys.writable,label:localize("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(C,W,H){if(!W.hasModel())return;const U=getMapForWordSeparators(W.getOption(129)),G=W.getModel(),X=W.getSelections().map(Q=>{const ee=WordOperations.deleteInsideWord(U,G,Q);return new ReplaceCommand(ee,"")});W.pushUndoStop(),W.executeCommands(this.id,X),W.pushUndoStop()}}registerEditorCommand(new CursorWordStartLeft),registerEditorCommand(new CursorWordEndLeft),registerEditorCommand(new CursorWordLeft),registerEditorCommand(new CursorWordStartLeftSelect),registerEditorCommand(new CursorWordEndLeftSelect),registerEditorCommand(new CursorWordLeftSelect),registerEditorCommand(new CursorWordStartRight),registerEditorCommand(new CursorWordEndRight),registerEditorCommand(new CursorWordRight),registerEditorCommand(new CursorWordStartRightSelect),registerEditorCommand(new CursorWordEndRightSelect),registerEditorCommand(new CursorWordRightSelect),registerEditorCommand(new CursorWordAccessibilityLeft),registerEditorCommand(new CursorWordAccessibilityLeftSelect),registerEditorCommand(new CursorWordAccessibilityRight),registerEditorCommand(new CursorWordAccessibilityRightSelect),registerEditorCommand(new DeleteWordStartLeft),registerEditorCommand(new DeleteWordEndLeft),registerEditorCommand(new DeleteWordLeft),registerEditorCommand(new DeleteWordStartRight),registerEditorCommand(new DeleteWordEndRight),registerEditorCommand(new DeleteWordRight),registerEditorAction(DeleteInsideWord);class DeleteWordPartLeft extends DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:EditorContextKeys.writable,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(C,W){const H=WordPartOperations.deleteWordPartLeft(C);return H||new Range$5(1,1,1,1)}}class DeleteWordPartRight extends DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:EditorContextKeys.writable,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(C,W){const H=WordPartOperations.deleteWordPartRight(C);if(H)return H;const U=C.model.getLineCount(),G=C.model.getLineMaxColumn(U);return new Range$5(U,G,U,G)}}class WordPartLeftCommand extends MoveWordCommand{_move(C,W,H,U){return WordPartOperations.moveWordPartLeft(C,W,H)}}class CursorWordPartLeft extends WordPartLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}CommandsRegistry.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class CursorWordPartLeftSelect extends WordPartLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}CommandsRegistry.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class WordPartRightCommand extends MoveWordCommand{_move(C,W,H,U){return WordPartOperations.moveWordPartRight(C,W,H)}}class CursorWordPartRight extends WordPartRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class CursorWordPartRightSelect extends WordPartRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}registerEditorCommand(new DeleteWordPartLeft),registerEditorCommand(new DeleteWordPartRight),registerEditorCommand(new CursorWordPartLeft),registerEditorCommand(new CursorWordPartLeftSelect),registerEditorCommand(new CursorWordPartRight),registerEditorCommand(new CursorWordPartRightSelect);class ReadOnlyMessageController extends Disposable{constructor(C){super(),this.editor=C,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const C=MessageController.get(this.editor);if(C&&this.editor.hasModel()){let W=this.editor.getOptions().get(91);W||(this.editor.isSimpleWidget?W=new MarkdownString(localize("editor.simple.readonly","Cannot edit in read-only input")):W=new MarkdownString(localize("editor.readonly","Cannot edit in read-only editor"))),C.showMessage(W,this.editor.getPosition())}}}ReadOnlyMessageController.ID="editor.contrib.readOnlyMessageController",registerEditorContribution(ReadOnlyMessageController.ID,ReadOnlyMessageController,2);const iPadShowKeyboard="";class IPadShowKeyboard extends Disposable{constructor(C){super(),this.editor=C,this.widget=null,isIOS&&(this._register(C.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const C=!this.editor.getOption(90);!this.widget&&C?this.widget=new ShowKeyboardWidget(this.editor):this.widget&&!C&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}IPadShowKeyboard.ID="editor.contrib.iPadShowKeyboard";class ShowKeyboardWidget extends Disposable{constructor(C){super(),this.editor=C,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(addDisposableListener(this._domNode,"touchstart",W=>{this.editor.focus()})),this._register(addDisposableListener(this._domNode,"focus",W=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return ShowKeyboardWidget.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}ShowKeyboardWidget.ID="editor.contrib.ShowKeyboardWidget",registerEditorContribution(IPadShowKeyboard.ID,IPadShowKeyboard,3);const inspectTokens="";var __decorate$7=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$7=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},InspectTokensController_1;let InspectTokensController=InspectTokensController_1=class extends Disposable{static get(C){return C.getContribution(InspectTokensController_1.ID)}constructor(C,W,H){super(),this._editor=C,this._languageService=H,this._widget=null,this._register(this._editor.onDidChangeModel(U=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(U=>this.stop())),this._register(TokenizationRegistry.onDidChange(U=>this.stop())),this._register(this._editor.onKeyUp(U=>U.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new InspectTokensWidget(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};InspectTokensController.ID="editor.contrib.inspectTokens",InspectTokensController=InspectTokensController_1=__decorate$7([__param$7(1,IStandaloneThemeService),__param$7(2,ILanguageService)],InspectTokensController);class InspectTokens extends EditorAction{constructor(){super({id:"editor.action.inspectTokens",label:InspectTokensNLS.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(C,W){const H=InspectTokensController.get(W);H==null||H.launch()}}function renderTokenText(K){let C="";for(let W=0,H=K.length;W<H;W++){const U=K.charCodeAt(W);switch(U){case 9:C+="→";break;case 32:C+="·";break;default:C+=String.fromCharCode(U)}}return C}function getSafeTokenizationSupport(K,C){const W=TokenizationRegistry.get(C);if(W)return W;const H=K.encodeLanguageId(C);return{getInitialState:()=>NullState,tokenize:(U,G,Z)=>nullTokenize(C,Z),tokenizeEncoded:(U,G,Z)=>nullTokenizeEncoded(H,Z)}}class InspectTokensWidget extends Disposable{constructor(C,W){super(),this.allowEditorOverflow=!0,this._editor=C,this._languageService=W,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=getSafeTokenizationSupport(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(H=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return InspectTokensWidget._ID}_compute(C){const W=this._getTokensAtLine(C.lineNumber);let H=0;for(let Q=W.tokens1.length-1;Q>=0;Q--){const ee=W.tokens1[Q];if(C.column-1>=ee.offset){H=Q;break}}let U=0;for(let Q=W.tokens2.length>>>1;Q>=0;Q--)if(C.column-1>=W.tokens2[Q<<1]){U=Q;break}const G=this._model.getLineContent(C.lineNumber);let Z="";if(H<W.tokens1.length){const Q=W.tokens1[H].offset,ee=H+1<W.tokens1.length?W.tokens1[H+1].offset:G.length;Z=G.substring(Q,ee)}reset(this._domNode,$$d("h2.tm-token",void 0,renderTokenText(Z),$$d("span.tm-token-length",void 0,`${Z.length} ${Z.length===1?"char":"chars"}`))),append$1(this._domNode,$$d("hr.tokens-inspect-separator",{style:"clear:both"}));const X=(U<<1)+1<W.tokens2.length?this._decodeMetadata(W.tokens2[(U<<1)+1]):null;append$1(this._domNode,$$d("table.tm-metadata-table",void 0,$$d("tbody",void 0,$$d("tr",void 0,$$d("td.tm-metadata-key",void 0,"language"),$$d("td.tm-metadata-value",void 0,`${X?X.languageId:"-?-"}`)),$$d("tr",void 0,$$d("td.tm-metadata-key",void 0,"token type"),$$d("td.tm-metadata-value",void 0,`${X?this._tokenTypeToString(X.tokenType):"-?-"}`)),$$d("tr",void 0,$$d("td.tm-metadata-key",void 0,"font style"),$$d("td.tm-metadata-value",void 0,`${X?this._fontStyleToString(X.fontStyle):"-?-"}`)),$$d("tr",void 0,$$d("td.tm-metadata-key",void 0,"foreground"),$$d("td.tm-metadata-value",void 0,`${X?Color$3.Format.CSS.formatHex(X.foreground):"-?-"}`)),$$d("tr",void 0,$$d("td.tm-metadata-key",void 0,"background"),$$d("td.tm-metadata-value",void 0,`${X?Color$3.Format.CSS.formatHex(X.background):"-?-"}`))))),append$1(this._domNode,$$d("hr.tokens-inspect-separator")),H<W.tokens1.length&&append$1(this._domNode,$$d("span.tm-token-type",void 0,W.tokens1[H].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(C){const W=TokenizationRegistry.getColorMap(),H=TokenMetadata.getLanguageId(C),U=TokenMetadata.getTokenType(C),G=TokenMetadata.getFontStyle(C),Z=TokenMetadata.getForeground(C),X=TokenMetadata.getBackground(C);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(H),tokenType:U,fontStyle:G,foreground:W[Z],background:W[X]}}_tokenTypeToString(C){switch(C){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(C){let W="";return C&1&&(W+="italic "),C&2&&(W+="bold "),C&4&&(W+="underline "),C&8&&(W+="strikethrough "),W.length===0&&(W="---"),W}_getTokensAtLine(C){const W=this._getStateBeforeLine(C),H=this._tokenizationSupport.tokenize(this._model.getLineContent(C),!0,W),U=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(C),!0,W);return{startState:W,tokens1:H.tokens,tokens2:U.tokens,endState:H.endState}}_getStateBeforeLine(C){let W=this._tokenizationSupport.getInitialState();for(let H=1;H<C;H++)W=this._tokenizationSupport.tokenize(this._model.getLineContent(H),!0,W).endState;return W}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}InspectTokensWidget._ID="editor.contrib.inspectTokensWidget",registerEditorContribution(InspectTokensController.ID,InspectTokensController,4),registerEditorAction(InspectTokens);var __decorate$6=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$6=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},HelpQuickAccessProvider_1;let HelpQuickAccessProvider=HelpQuickAccessProvider_1=class{constructor(C,W){this.quickInputService=C,this.keybindingService=W,this.registry=Registry.as(Extensions$2.Quickaccess)}provide(C){const W=new DisposableStore;return W.add(C.onDidAccept(()=>{const[H]=C.selectedItems;H&&this.quickInputService.quickAccess.show(H.prefix,{preserveValue:!0})})),W.add(C.onDidChangeValue(H=>{const U=this.registry.getQuickAccessProvider(H.substr(HelpQuickAccessProvider_1.PREFIX.length));U&&U.prefix&&U.prefix!==HelpQuickAccessProvider_1.PREFIX&&this.quickInputService.quickAccess.show(U.prefix,{preserveValue:!0})})),C.items=this.getQuickAccessProviders().filter(H=>H.prefix!==HelpQuickAccessProvider_1.PREFIX),W}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((W,H)=>W.prefix.localeCompare(H.prefix)).flatMap(W=>this.createPicks(W))}createPicks(C){return C.helpEntries.map(W=>{const H=W.prefix||C.prefix,U=H||"…";return{prefix:H,label:U,keybinding:W.commandId?this.keybindingService.lookupKeybinding(W.commandId):void 0,ariaLabel:localize("helpPickAriaLabel","{0}, {1}",U,W.description),description:W.description}})}};HelpQuickAccessProvider.PREFIX="?",HelpQuickAccessProvider=HelpQuickAccessProvider_1=__decorate$6([__param$6(0,IQuickInputService),__param$6(1,IKeybindingService)],HelpQuickAccessProvider),Registry.as(Extensions$2.Quickaccess).registerQuickAccessProvider({ctor:HelpQuickAccessProvider,prefix:"",helpEntries:[{description:QuickHelpNLS.helpQuickAccessActionLabel}]});class AbstractEditorNavigationQuickAccessProvider{constructor(C){this.options=C,this.rangeHighlightDecorationId=void 0}provide(C,W){var H;const U=new DisposableStore;C.canAcceptInBackground=!!(!((H=this.options)===null||H===void 0)&&H.canAcceptInBackground),C.matchOnLabel=C.matchOnDescription=C.matchOnDetail=C.sortByLabel=!1;const G=U.add(new MutableDisposable);return G.value=this.doProvide(C,W),U.add(this.onDidActiveTextEditorControlChange(()=>{G.value=void 0,G.value=this.doProvide(C,W)})),U}doProvide(C,W){var H;const U=new DisposableStore,G=this.activeTextEditorControl;if(G&&this.canProvideWithTextEditor(G)){const Z={editor:G},X=getCodeEditor(G);if(X){let Q=(H=G.saveViewState())!==null&&H!==void 0?H:void 0;U.add(X.onDidChangeCursorPosition(()=>{var ee;Q=(ee=G.saveViewState())!==null&&ee!==void 0?ee:void 0})),Z.restoreViewState=()=>{Q&&G===this.activeTextEditorControl&&G.restoreViewState(Q)},U.add(createSingleCallFunction(W.onCancellationRequested)(()=>{var ee;return(ee=Z.restoreViewState)===null||ee===void 0?void 0:ee.call(Z)}))}U.add(toDisposable(()=>this.clearDecorations(G))),U.add(this.provideWithTextEditor(Z,C,W))}else U.add(this.provideWithoutTextEditor(C,W));return U}canProvideWithTextEditor(C){return!0}gotoLocation({editor:C},W){C.setSelection(W.range),C.revealRangeInCenter(W.range,0),W.preserveFocus||C.focus();const H=C.getModel();H&&"getLineContent"in H&&status(`${H.getLineContent(W.range.startLineNumber)}`)}getModel(C){var W;return isDiffEditor(C)?(W=C.getModel())===null||W===void 0?void 0:W.modified:C.getModel()}addDecorations(C,W){C.changeDecorations(H=>{const U=[];this.rangeHighlightDecorationId&&(U.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),U.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const G=[{range:W,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:W,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:themeColorFromId(overviewRulerRangeHighlight),position:OverviewRulerLane.Full}}}],[Z,X]=H.deltaDecorations(U,G);this.rangeHighlightDecorationId={rangeHighlightId:Z,overviewRulerDecorationId:X}})}clearDecorations(C){const W=this.rangeHighlightDecorationId;W&&(C.changeDecorations(H=>{H.deltaDecorations([W.overviewRulerDecorationId,W.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigationQuickAccessProvider{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(C){const W=localize("cannotRunGotoLine","Open a text editor first to go to a line.");return C.items=[{label:W}],C.ariaLabel=W,Disposable.None}provideWithTextEditor(C,W,H){const U=C.editor,G=new DisposableStore;G.add(W.onDidAccept(Q=>{const[ee]=W.selectedItems;if(ee){if(!this.isValidLineNumber(U,ee.lineNumber))return;this.gotoLocation(C,{range:this.toRange(ee.lineNumber,ee.column),keyMods:W.keyMods,preserveFocus:Q.inBackground}),Q.inBackground||W.hide()}}));const Z=()=>{const Q=this.parsePosition(U,W.value.trim().substr(AbstractGotoLineQuickAccessProvider.PREFIX.length)),ee=this.getPickLabel(U,Q.lineNumber,Q.column);if(W.items=[{lineNumber:Q.lineNumber,column:Q.column,label:ee}],W.ariaLabel=ee,!this.isValidLineNumber(U,Q.lineNumber)){this.clearDecorations(U);return}const te=this.toRange(Q.lineNumber,Q.column);U.revealRangeInCenter(te,0),this.addDecorations(U,te)};Z(),G.add(W.onDidChangeValue(()=>Z()));const X=getCodeEditor(U);return X&&X.getOptions().get(67).renderType===2&&(X.updateOptions({lineNumbers:"on"}),G.add(toDisposable(()=>X.updateOptions({lineNumbers:"relative"})))),G}toRange(C=1,W=1){return{startLineNumber:C,startColumn:W,endLineNumber:C,endColumn:W}}parsePosition(C,W){const H=W.split(/,|:|#/).map(G=>parseInt(G,10)).filter(G=>!isNaN(G)),U=this.lineCount(C)+1;return{lineNumber:H[0]>0?H[0]:U+H[0],column:H[1]}}getPickLabel(C,W,H){if(this.isValidLineNumber(C,W))return this.isValidColumn(C,W,H)?localize("gotoLineColumnLabel","Go to line {0} and character {1}.",W,H):localize("gotoLineLabel","Go to line {0}.",W);const U=C.getPosition()||{lineNumber:1,column:1},G=this.lineCount(C);return G>1?localize("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",U.lineNumber,U.column,G):localize("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",U.lineNumber,U.column)}isValidLineNumber(C,W){return!W||typeof W!="number"?!1:W>0&&W<=this.lineCount(C)}isValidColumn(C,W,H){if(!H||typeof H!="number")return!1;const U=this.getModel(C);if(!U)return!1;const G={lineNumber:W,column:H};return U.validatePosition(G).equals(G)}lineCount(C){var W,H;return(H=(W=this.getModel(C))===null||W===void 0?void 0:W.getLineCount())!==null&&H!==void 0?H:0}}AbstractGotoLineQuickAccessProvider.PREFIX=":";var __decorate$5=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$5=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};let StandaloneGotoLineQuickAccessProvider=class extends AbstractGotoLineQuickAccessProvider{constructor(C){super(),this.editorService=C,this.onDidActiveTextEditorControlChange=Event.None}get activeTextEditorControl(){var C;return(C=this.editorService.getFocusedCodeEditor())!==null&&C!==void 0?C:void 0}};StandaloneGotoLineQuickAccessProvider=__decorate$5([__param$5(0,ICodeEditorService)],StandaloneGotoLineQuickAccessProvider);let GotoLineAction$1=class ai extends EditorAction{constructor(){super({id:ai.ID,label:GoToLineNLS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})}run(C){C.get(IQuickInputService).quickAccess.show(StandaloneGotoLineQuickAccessProvider.PREFIX)}};GotoLineAction$1.ID="editor.action.gotoLine",registerEditorAction(GotoLineAction$1),Registry.as(Extensions$2.Quickaccess).registerQuickAccessProvider({ctor:StandaloneGotoLineQuickAccessProvider,prefix:StandaloneGotoLineQuickAccessProvider.PREFIX,helpEntries:[{description:GoToLineNLS.gotoLineActionLabel,commandId:GotoLineAction$1.ID}]});const NO_SCORE2=[void 0,[]];function scoreFuzzy2(K,C,W=0,H=0){const U=C;return U.values&&U.values.length>1?doScoreFuzzy2Multiple(K,U.values,W,H):doScoreFuzzy2Single(K,C,W,H)}function doScoreFuzzy2Multiple(K,C,W,H){let U=0;const G=[];for(const Z of C){const[X,Q]=doScoreFuzzy2Single(K,Z,W,H);if(typeof X!="number")return NO_SCORE2;U+=X,G.push(...Q)}return[U,normalizeMatches(G)]}function doScoreFuzzy2Single(K,C,W,H){const U=fuzzyScore(C.original,C.originalLowercase,W,K,K.toLowerCase(),H,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return U?[U[0],createMatches(U)]:NO_SCORE2}function normalizeMatches(K){const C=K.sort((U,G)=>U.start-G.start),W=[];let H;for(const U of C)!H||!matchOverlaps(H,U)?(H=U,W.push(U)):(H.start=Math.min(H.start,U.start),H.end=Math.max(H.end,U.end));return W}function matchOverlaps(K,C){return!(K.end<C.start||C.end<K.start)}function queryExpectsExactMatch(K){return K.startsWith('"')&&K.endsWith('"')}const MULTIPLE_QUERY_VALUES_SEPARATOR=" ";function prepareQuery(K){typeof K!="string"&&(K="");const C=K.toLowerCase(),{pathNormalized:W,normalized:H,normalizedLowercase:U}=normalizeQuery(K),G=W.indexOf(sep)>=0,Z=queryExpectsExactMatch(K);let X;const Q=K.split(MULTIPLE_QUERY_VALUES_SEPARATOR);if(Q.length>1)for(const ee of Q){const te=queryExpectsExactMatch(ee),{pathNormalized:ie,normalized:ne,normalizedLowercase:oe}=normalizeQuery(ee);ne&&(X||(X=[]),X.push({original:ee,originalLowercase:ee.toLowerCase(),pathNormalized:ie,normalized:ne,normalizedLowercase:oe,expectContiguousMatch:te}))}return{original:K,originalLowercase:C,pathNormalized:W,normalized:H,normalizedLowercase:U,values:X,containsPathSeparator:G,expectContiguousMatch:Z}}function normalizeQuery(K){let C;isWindows?C=K.replace(/\//g,sep):C=K.replace(/\\/g,sep);const W=stripWildcards(C).replace(/\s|"/g,"");return{pathNormalized:C,normalized:W,normalizedLowercase:W.toLowerCase()}}function pieceToQuery(K){return Array.isArray(K)?prepareQuery(K.map(C=>C.original).join(MULTIPLE_QUERY_VALUES_SEPARATOR)):prepareQuery(K.original)}var __decorate$4=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$4=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$3=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},AbstractGotoSymbolQuickAccessProvider_1;let AbstractGotoSymbolQuickAccessProvider=AbstractGotoSymbolQuickAccessProvider_1=class extends AbstractEditorNavigationQuickAccessProvider{constructor(C,W,H=Object.create(null)){super(H),this._languageFeaturesService=C,this._outlineModelService=W,this.options=H,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(C){return this.provideLabelPick(C,localize("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),Disposable.None}provideWithTextEditor(C,W,H){const U=C.editor,G=this.getModel(U);return G?this._languageFeaturesService.documentSymbolProvider.has(G)?this.doProvideWithEditorSymbols(C,G,W,H):this.doProvideWithoutEditorSymbols(C,G,W,H):Disposable.None}doProvideWithoutEditorSymbols(C,W,H,U){const G=new DisposableStore;return this.provideLabelPick(H,localize("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),__awaiter$3(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(W,G))||U.isCancellationRequested||G.add(this.doProvideWithEditorSymbols(C,W,H,U))}),G}provideLabelPick(C,W){C.items=[{label:W,index:0,kind:14}],C.ariaLabel=W}waitForLanguageSymbolRegistry(C,W){return __awaiter$3(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(C))return!0;const H=new DeferredPromise,U=W.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(C)&&(U.dispose(),H.complete(!0))}));return W.add(toDisposable(()=>H.complete(!1))),H.p})}doProvideWithEditorSymbols(C,W,H,U){var G;const Z=C.editor,X=new DisposableStore;X.add(H.onDidAccept(ie=>{const[ne]=H.selectedItems;ne&&ne.range&&(this.gotoLocation(C,{range:ne.range.selection,keyMods:H.keyMods,preserveFocus:ie.inBackground}),ie.inBackground||H.hide())})),X.add(H.onDidTriggerItemButton(({item:ie})=>{ie&&ie.range&&(this.gotoLocation(C,{range:ie.range.selection,keyMods:H.keyMods,forceSideBySide:!0}),H.hide())}));const Q=this.getDocumentSymbols(W,U);let ee;const te=ie=>__awaiter$3(this,void 0,void 0,function*(){ee==null||ee.dispose(!0),H.busy=!1,ee=new CancellationTokenSource$1(U),H.busy=!0;try{const ne=prepareQuery(H.value.substr(AbstractGotoSymbolQuickAccessProvider_1.PREFIX.length).trim()),oe=yield this.doGetSymbolPicks(Q,ne,void 0,ee.token);if(U.isCancellationRequested)return;if(oe.length>0){if(H.items=oe,ie&&ne.original.length===0){const re=findLast(oe,se=>!!(se.type!=="separator"&&se.range&&Range$5.containsPosition(se.range.decoration,ie)));re&&(H.activeItems=[re])}}else ne.original.length>0?this.provideLabelPick(H,localize("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(H,localize("noSymbolResults","No editor symbols"))}finally{U.isCancellationRequested||(H.busy=!1)}});return X.add(H.onDidChangeValue(()=>te(void 0))),te((G=Z.getSelection())===null||G===void 0?void 0:G.getPosition()),X.add(H.onDidChangeActive(()=>{const[ie]=H.activeItems;ie&&ie.range&&(Z.revealRangeInCenter(ie.range.selection,0),this.addDecorations(Z,ie.range.decoration))})),X}doGetSymbolPicks(C,W,H,U){var G,Z;return __awaiter$3(this,void 0,void 0,function*(){const X=yield C;if(U.isCancellationRequested)return[];const Q=W.original.indexOf(AbstractGotoSymbolQuickAccessProvider_1.SCOPE_PREFIX)===0,ee=Q?1:0;let te,ie;W.values&&W.values.length>1?(te=pieceToQuery(W.values[0]),ie=pieceToQuery(W.values.slice(1))):te=W;let ne;const oe=(Z=(G=this.options)===null||G===void 0?void 0:G.openSideBySideDirection)===null||Z===void 0?void 0:Z.call(G);oe&&(ne=[{iconClass:oe==="right"?ThemeIcon.asClassName(Codicon.splitHorizontal):ThemeIcon.asClassName(Codicon.splitVertical),tooltip:oe==="right"?localize("openToSide","Open to the Side"):localize("openToBottom","Open to the Bottom")}]);const re=[];for(let ce=0;ce<X.length;ce++){const le=X[ce],de=trim$1(le.name),ue=`$(${SymbolKinds.toIcon(le.kind).id}) ${de}`,he=ue.length-de.length;let fe=le.containerName;H!=null&&H.extraContainerLabel&&(fe?fe=`${H.extraContainerLabel} • ${fe}`:fe=H.extraContainerLabel);let ge,me,pe,ve;if(W.original.length>ee){let Ce=!1;if(te!==W&&([ge,me]=scoreFuzzy2(ue,Object.assign(Object.assign({},W),{values:void 0}),ee,he),typeof ge=="number"&&(Ce=!0)),typeof ge!="number"&&([ge,me]=scoreFuzzy2(ue,te,ee,he),typeof ge!="number"))continue;if(!Ce&&ie){if(fe&&ie.original.length>0&&([pe,ve]=scoreFuzzy2(fe,ie)),typeof pe!="number")continue;typeof ge=="number"&&(ge+=pe)}}const we=le.tags&&le.tags.indexOf(1)>=0;re.push({index:ce,kind:le.kind,score:ge,label:ue,ariaLabel:getAriaLabelForSymbol(le.name,le.kind),description:fe,highlights:we?void 0:{label:me,description:ve},range:{selection:Range$5.collapseToStart(le.selectionRange),decoration:le.range},strikethrough:we,buttons:ne})}const se=re.sort((ce,le)=>Q?this.compareByKindAndScore(ce,le):this.compareByScore(ce,le));let ae=[];if(Q){let ue=function(){le&&typeof ce=="number"&&de>0&&(le.label=format(NLS_SYMBOL_KIND_CACHE[ce]||FALLBACK_NLS_SYMBOL_KIND,de))},ce,le,de=0;for(const he of se)ce!==he.kind?(ue(),ce=he.kind,de=1,le={type:"separator"},ae.push(le)):de++,ae.push(he);ue()}else se.length>0&&(ae=[{label:localize("symbols","symbols ({0})",re.length),type:"separator"},...se]);return ae})}compareByScore(C,W){if(typeof C.score!="number"&&typeof W.score=="number")return 1;if(typeof C.score=="number"&&typeof W.score!="number")return-1;if(typeof C.score=="number"&&typeof W.score=="number"){if(C.score>W.score)return-1;if(C.score<W.score)return 1}return C.index<W.index?-1:C.index>W.index?1:0}compareByKindAndScore(C,W){const H=NLS_SYMBOL_KIND_CACHE[C.kind]||FALLBACK_NLS_SYMBOL_KIND,U=NLS_SYMBOL_KIND_CACHE[W.kind]||FALLBACK_NLS_SYMBOL_KIND,G=H.localeCompare(U);return G===0?this.compareByScore(C,W):G}getDocumentSymbols(C,W){return __awaiter$3(this,void 0,void 0,function*(){const H=yield this._outlineModelService.getOrCreate(C,W);return W.isCancellationRequested?[]:H.asListOfDocumentSymbols()})}};AbstractGotoSymbolQuickAccessProvider.PREFIX="@",AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX=":",AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY=`${AbstractGotoSymbolQuickAccessProvider_1.PREFIX}${AbstractGotoSymbolQuickAccessProvider_1.SCOPE_PREFIX}`,AbstractGotoSymbolQuickAccessProvider=AbstractGotoSymbolQuickAccessProvider_1=__decorate$4([__param$4(0,ILanguageFeaturesService),__param$4(1,IOutlineModelService)],AbstractGotoSymbolQuickAccessProvider);const FALLBACK_NLS_SYMBOL_KIND=localize("property","properties ({0})"),NLS_SYMBOL_KIND_CACHE={5:localize("method","methods ({0})"),11:localize("function","functions ({0})"),8:localize("_constructor","constructors ({0})"),12:localize("variable","variables ({0})"),4:localize("class","classes ({0})"),22:localize("struct","structs ({0})"),23:localize("event","events ({0})"),24:localize("operator","operators ({0})"),10:localize("interface","interfaces ({0})"),2:localize("namespace","namespaces ({0})"),3:localize("package","packages ({0})"),25:localize("typeParameter","type parameters ({0})"),1:localize("modules","modules ({0})"),6:localize("property","properties ({0})"),9:localize("enum","enumerations ({0})"),21:localize("enumMember","enumeration members ({0})"),14:localize("string","strings ({0})"),0:localize("file","files ({0})"),17:localize("array","arrays ({0})"),15:localize("number","numbers ({0})"),16:localize("boolean","booleans ({0})"),18:localize("object","objects ({0})"),19:localize("key","keys ({0})"),7:localize("field","fields ({0})"),13:localize("constant","constants ({0})")};var __decorate$3=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$3=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};let StandaloneGotoSymbolQuickAccessProvider=class extends AbstractGotoSymbolQuickAccessProvider{constructor(C,W,H){super(W,H),this.editorService=C,this.onDidActiveTextEditorControlChange=Event.None}get activeTextEditorControl(){var C;return(C=this.editorService.getFocusedCodeEditor())!==null&&C!==void 0?C:void 0}};StandaloneGotoSymbolQuickAccessProvider=__decorate$3([__param$3(0,ICodeEditorService),__param$3(1,ILanguageFeaturesService),__param$3(2,IOutlineModelService)],StandaloneGotoSymbolQuickAccessProvider);class GotoSymbolAction extends EditorAction{constructor(){super({id:GotoSymbolAction.ID,label:QuickOutlineNLS.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:EditorContextKeys.hasDocumentSymbolProvider,kbOpts:{kbExpr:EditorContextKeys.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(C){C.get(IQuickInputService).quickAccess.show(AbstractGotoSymbolQuickAccessProvider.PREFIX,{itemActivation:ItemActivation.NONE})}}GotoSymbolAction.ID="editor.action.quickOutline",registerEditorAction(GotoSymbolAction),Registry.as(Extensions$2.Quickaccess).registerQuickAccessProvider({ctor:StandaloneGotoSymbolQuickAccessProvider,prefix:AbstractGotoSymbolQuickAccessProvider.PREFIX,helpEntries:[{description:QuickOutlineNLS.quickOutlineActionLabel,prefix:AbstractGotoSymbolQuickAccessProvider.PREFIX,commandId:GotoSymbolAction.ID},{description:QuickOutlineNLS.quickOutlineByCategoryActionLabel,prefix:AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY}]});function exceptionToErrorMessage(K,C){return C&&(K.stack||K.stacktrace)?localize("stackTrace.format","{0}: {1}",detectSystemErrorMessage(K),stackToString(K.stack)||stackToString(K.stacktrace)):detectSystemErrorMessage(K)}function stackToString(K){return Array.isArray(K)?K.join(`
|
|
1235
|
-
`):K}function detectSystemErrorMessage(K){return K.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${K.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof K.code=="string"&&typeof K.errno=="number"&&typeof K.syscall=="string"?localize("nodeExceptionMessage","A system error occurred ({0})",K.message):K.message||localize("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function toErrorMessage(K=null,C=!1){if(!K)return localize("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(K)){const W=coalesce(K),H=toErrorMessage(W[0],C);return W.length>1?localize("error.moreErrors","{0} ({1} errors in total)",H,W.length):H}if(isString$3(K))return K;if(K.detail){const W=K.detail;if(W.error)return exceptionToErrorMessage(W.error,C);if(W.exception)return exceptionToErrorMessage(W.exception,C)}return K.stack?exceptionToErrorMessage(K,C):K.message?K.message:localize("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function countMapFrom(K){var C;const W=new Map;for(const H of K)W.set(H,((C=W.get(H))!==null&&C!==void 0?C:0)+1);return W}class TfIdfCalculator{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(C,W){const H=this.computeEmbedding(C),U=new Map,G=[];for(const[Z,X]of this.documents){if(W.isCancellationRequested)return[];for(const Q of X.chunks){const ee=this.computeSimilarityScore(Q,H,U);ee>0&&G.push({key:Z,score:ee})}}return G}static termFrequencies(C){return countMapFrom(TfIdfCalculator.splitTerms(C))}static*splitTerms(C){const W=H=>H.toLowerCase();for(const[H]of C.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield W(H);const U=H.split(new RegExp("(?<=[a-z])(?=[A-Z])","g"));if(U.length>1)for(const G of U)G.length>2&&/\p{Letter}{3,}/gu.test(G)&&(yield W(G))}}updateDocuments(C){var W;for(const{key:H}of C)this.deleteDocument(H);for(const H of C){const U=[];for(const G of H.textChunks){const Z=TfIdfCalculator.termFrequencies(G);for(const X of Z.keys())this.chunkOccurrences.set(X,((W=this.chunkOccurrences.get(X))!==null&&W!==void 0?W:0)+1);U.push({text:G,tf:Z})}this.chunkCount+=U.length,this.documents.set(H.key,{chunks:U})}return this}deleteDocument(C){const W=this.documents.get(C);if(W){this.documents.delete(C),this.chunkCount-=W.chunks.length;for(const H of W.chunks)for(const U of H.tf.keys()){const G=this.chunkOccurrences.get(U);if(typeof G=="number"){const Z=G-1;Z<=0?this.chunkOccurrences.delete(U):this.chunkOccurrences.set(U,Z)}}}}computeSimilarityScore(C,W,H){let U=0;for(const[G,Z]of Object.entries(W)){const X=C.tf.get(G);if(!X)continue;let Q=H.get(G);typeof Q!="number"&&(Q=this.computeIdf(G),H.set(G,Q));const ee=X*Q;U+=ee*Z}return U}computeEmbedding(C){const W=TfIdfCalculator.termFrequencies(C);return this.computeTfidf(W)}computeIdf(C){var W;const H=(W=this.chunkOccurrences.get(C))!==null&&W!==void 0?W:0;return H>0?Math.log((this.chunkCount+1)/H):0}computeTfidf(C){const W=Object.create(null);for(const[H,U]of C){const G=this.computeIdf(H);G>0&&(W[H]=U*G)}return W}}function normalizeTfIdfScores(K){var C,W;const H=K.slice(0);H.sort((G,Z)=>Z.score-G.score);const U=(W=(C=H[0])===null||C===void 0?void 0:C.score)!==null&&W!==void 0?W:0;if(U>0)for(const G of H)G.score/=U;return H}var __awaiter$2=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},TriggerAction;(function(K){K[K.NO_ACTION=0]="NO_ACTION",K[K.CLOSE_PICKER=1]="CLOSE_PICKER",K[K.REFRESH_PICKER=2]="REFRESH_PICKER",K[K.REMOVE_ITEM=3]="REMOVE_ITEM"})(TriggerAction||(TriggerAction={}));function isPicksWithActive(K){const C=K;return Array.isArray(C.items)}function isFastAndSlowPicks(K){const C=K;return!!C.picks&&C.additionalPicks instanceof Promise}class PickerQuickAccessProvider extends Disposable{constructor(C,W){super(),this.prefix=C,this.options=W}provide(C,W,H){var U;const G=new DisposableStore;C.canAcceptInBackground=!!(!((U=this.options)===null||U===void 0)&&U.canAcceptInBackground),C.matchOnLabel=C.matchOnDescription=C.matchOnDetail=C.sortByLabel=!1;let Z;const X=G.add(new MutableDisposable),Q=()=>__awaiter$2(this,void 0,void 0,function*(){const ee=X.value=new DisposableStore;Z==null||Z.dispose(!0),C.busy=!1,Z=new CancellationTokenSource$1(W);const te=Z.token,ie=C.value.substr(this.prefix.length).trim(),ne=this._getPicks(ie,ee,te,H),oe=(se,ae)=>{var ce;let le,de;if(isPicksWithActive(se)?(le=se.items,de=se.active):le=se,le.length===0){if(ae)return!1;(ie.length>0||C.hideInput)&&(!((ce=this.options)===null||ce===void 0)&&ce.noResultsPick)&&(isFunction$1(this.options.noResultsPick)?le=[this.options.noResultsPick(ie)]:le=[this.options.noResultsPick])}return C.items=le,de&&(C.activeItems=[de]),!0},re=se=>__awaiter$2(this,void 0,void 0,function*(){let ae=!1,ce=!1;yield Promise.all([(()=>__awaiter$2(this,void 0,void 0,function*(){typeof se.mergeDelay=="number"&&(yield timeout(se.mergeDelay),te.isCancellationRequested)||ce||(ae=oe(se.picks,!0))}))(),(()=>__awaiter$2(this,void 0,void 0,function*(){C.busy=!0;try{const le=yield se.additionalPicks;if(te.isCancellationRequested)return;let de,ue;isPicksWithActive(se.picks)?(de=se.picks.items,ue=se.picks.active):de=se.picks;let he,fe;if(isPicksWithActive(le)?(he=le.items,fe=le.active):he=le,he.length>0||!ae){let ge;if(!ue&&!fe){const me=C.activeItems[0];me&&de.indexOf(me)!==-1&&(ge=me)}oe({items:[...de,...he],active:ue||fe||ge})}}finally{te.isCancellationRequested||(C.busy=!1),ce=!0}}))()])});if(ne!==null)if(isFastAndSlowPicks(ne))yield re(ne);else if(!(ne instanceof Promise))oe(ne);else{C.busy=!0;try{const se=yield ne;if(te.isCancellationRequested)return;isFastAndSlowPicks(se)?yield re(se):oe(se)}finally{te.isCancellationRequested||(C.busy=!1)}}});return G.add(C.onDidChangeValue(()=>Q())),Q(),G.add(C.onDidAccept(ee=>{const[te]=C.selectedItems;typeof(te==null?void 0:te.accept)=="function"&&(ee.inBackground||C.hide(),te.accept(C.keyMods,ee))})),G.add(C.onDidTriggerItemButton(({button:ee,item:te})=>__awaiter$2(this,void 0,void 0,function*(){var ie,ne;if(typeof te.trigger=="function"){const oe=(ne=(ie=te.buttons)===null||ie===void 0?void 0:ie.indexOf(ee))!==null&&ne!==void 0?ne:-1;if(oe>=0){const re=te.trigger(oe,C.keyMods),se=typeof re=="number"?re:yield re;if(W.isCancellationRequested)return;switch(se){case TriggerAction.NO_ACTION:break;case TriggerAction.CLOSE_PICKER:C.hide();break;case TriggerAction.REFRESH_PICKER:Q();break;case TriggerAction.REMOVE_ITEM:{const ae=C.items.indexOf(te);if(ae!==-1){const ce=C.items.slice(),le=ce.splice(ae,1),de=C.activeItems.filter(he=>he!==le[0]),ue=C.keepScrollPosition;C.keepScrollPosition=!0,C.items=ce,de&&(C.activeItems=de),C.keepScrollPosition=ue}break}}}}}))),G}}var __decorate$2=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$2=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$1=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},AbstractCommandsQuickAccessProvider_1,CommandsHistory_1;let AbstractCommandsQuickAccessProvider=AbstractCommandsQuickAccessProvider_1=class extends PickerQuickAccessProvider{constructor(C,W,H,U,G,Z){super(AbstractCommandsQuickAccessProvider_1.PREFIX,C),this.instantiationService=W,this.keybindingService=H,this.commandService=U,this.telemetryService=G,this.dialogService=Z,this.commandsHistory=this._register(this.instantiationService.createInstance(CommandsHistory)),this.options=C}_getPicks(C,W,H,U){var G,Z,X,Q;return __awaiter$1(this,void 0,void 0,function*(){const ee=yield this.getCommandPicks(H);if(H.isCancellationRequested)return[];const te=createSingleCallFunction(()=>{const ce=new TfIdfCalculator;ce.updateDocuments(ee.map(de=>({key:de.commandId,textChunks:[de.label+(de.commandAlias?` ${de.commandAlias}`:"")]})));const le=ce.calculateScores(C,H);return normalizeTfIdfScores(le).filter(de=>de.score>AbstractCommandsQuickAccessProvider_1.TFIDF_THRESHOLD).slice(0,AbstractCommandsQuickAccessProvider_1.TFIDF_MAX_RESULTS)}),ie=[];for(const ce of ee){const le=(G=AbstractCommandsQuickAccessProvider_1.WORD_FILTER(C,ce.label))!==null&&G!==void 0?G:void 0,de=ce.commandAlias&&(Z=AbstractCommandsQuickAccessProvider_1.WORD_FILTER(C,ce.commandAlias))!==null&&Z!==void 0?Z:void 0;if(le||de)ce.highlights={label:le,detail:this.options.showAlias?de:void 0},ie.push(ce);else if(C===ce.commandId)ie.push(ce);else if(C.length>=3){const ue=te();if(H.isCancellationRequested)return[];const he=ue.find(fe=>fe.key===ce.commandId);he&&(ce.tfIdfScore=he.score,ie.push(ce))}}const ne=new Map;for(const ce of ie){const le=ne.get(ce.label);le?(ce.description=ce.commandId,le.description=le.commandId):ne.set(ce.label,ce)}ie.sort((ce,le)=>{if(ce.tfIdfScore&&le.tfIdfScore)return ce.tfIdfScore===le.tfIdfScore?ce.label.localeCompare(le.label):le.tfIdfScore-ce.tfIdfScore;if(ce.tfIdfScore)return 1;if(le.tfIdfScore)return-1;const de=this.commandsHistory.peek(ce.commandId),ue=this.commandsHistory.peek(le.commandId);if(de&&ue)return de>ue?-1:1;if(de)return-1;if(ue)return 1;if(this.options.suggestedCommandIds){const he=this.options.suggestedCommandIds.has(ce.commandId),fe=this.options.suggestedCommandIds.has(le.commandId);if(he&&fe)return 0;if(he)return-1;if(fe)return 1}return ce.label.localeCompare(le.label)});const oe=[];let re=!1,se=!0,ae=!!this.options.suggestedCommandIds;for(let ce=0;ce<ie.length;ce++){const le=ie[ce];ce===0&&this.commandsHistory.peek(le.commandId)&&(oe.push({type:"separator",label:localize("recentlyUsed","recently used")}),re=!0),se&&le.tfIdfScore!==void 0&&(oe.push({type:"separator",label:localize("suggested","similar commands")}),se=!1),ae&&le.tfIdfScore===void 0&&!this.commandsHistory.peek(le.commandId)&&(!((X=this.options.suggestedCommandIds)===null||X===void 0)&&X.has(le.commandId))&&(oe.push({type:"separator",label:localize("commonlyUsed","commonly used")}),re=!0,ae=!1),re&&le.tfIdfScore===void 0&&!this.commandsHistory.peek(le.commandId)&&!(!((Q=this.options.suggestedCommandIds)===null||Q===void 0)&&Q.has(le.commandId))&&(oe.push({type:"separator",label:localize("morecCommands","other commands")}),re=!1),oe.push(this.toCommandPick(le,U))}return this.hasAdditionalCommandPicks(C,H)?{picks:oe,additionalPicks:(()=>__awaiter$1(this,void 0,void 0,function*(){var ce;const le=yield this.getAdditionalCommandPicks(ee,ie,C,H);if(H.isCancellationRequested)return[];const de=le.map(ue=>this.toCommandPick(ue,U));return se&&((ce=de[0])===null||ce===void 0?void 0:ce.type)!=="separator"&&de.unshift({type:"separator",label:localize("suggested","similar commands")}),de}))()}:oe})}toCommandPick(C,W){if(C.type==="separator")return C;const H=this.keybindingService.lookupKeybinding(C.commandId),U=H?localize("commandPickAriaLabelWithKeybinding","{0}, {1}",C.label,H.getAriaLabel()):C.label;return Object.assign(Object.assign({},C),{ariaLabel:U,detail:this.options.showAlias&&C.commandAlias!==C.label?C.commandAlias:void 0,keybinding:H,accept:()=>__awaiter$1(this,void 0,void 0,function*(){var G,Z;this.commandsHistory.push(C.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:C.commandId,from:(G=W==null?void 0:W.from)!==null&&G!==void 0?G:"quick open"});try{!((Z=C.args)===null||Z===void 0)&&Z.length?yield this.commandService.executeCommand(C.commandId,...C.args):yield this.commandService.executeCommand(C.commandId)}catch(X){isCancellationError(X)||this.dialogService.error(localize("canNotRun","Command '{0}' resulted in an error",C.label),toErrorMessage(X))}})})}};AbstractCommandsQuickAccessProvider.PREFIX=">",AbstractCommandsQuickAccessProvider.TFIDF_THRESHOLD=.5,AbstractCommandsQuickAccessProvider.TFIDF_MAX_RESULTS=5,AbstractCommandsQuickAccessProvider.WORD_FILTER=or(matchesPrefix,matchesWords,matchesContiguousSubString),AbstractCommandsQuickAccessProvider=AbstractCommandsQuickAccessProvider_1=__decorate$2([__param$2(1,IInstantiationService),__param$2(2,IKeybindingService),__param$2(3,ICommandService),__param$2(4,ITelemetryService),__param$2(5,IDialogService)],AbstractCommandsQuickAccessProvider);let CommandsHistory=CommandsHistory_1=class extends Disposable{constructor(C,W){super(),this.storageService=C,this.configurationService=W,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(C=>this.updateConfiguration(C)))}updateConfiguration(C){C&&!C.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=CommandsHistory_1.getConfiguredCommandHistoryLength(this.configurationService),CommandsHistory_1.cache&&CommandsHistory_1.cache.limit!==this.configuredCommandsHistoryLength&&(CommandsHistory_1.cache.limit=this.configuredCommandsHistoryLength,CommandsHistory_1.saveState(this.storageService)))}load(){const C=this.storageService.get(CommandsHistory_1.PREF_KEY_CACHE,0);let W;if(C)try{W=JSON.parse(C)}catch{}const H=CommandsHistory_1.cache=new LRUCache(this.configuredCommandsHistoryLength,1);if(W){let U;W.usesLRU?U=W.entries:U=W.entries.sort((G,Z)=>G.value-Z.value),U.forEach(G=>H.set(G.key,G.value))}CommandsHistory_1.counter=this.storageService.getNumber(CommandsHistory_1.PREF_KEY_COUNTER,0,CommandsHistory_1.counter)}push(C){CommandsHistory_1.cache&&(CommandsHistory_1.cache.set(C,CommandsHistory_1.counter++),CommandsHistory_1.saveState(this.storageService))}peek(C){var W;return(W=CommandsHistory_1.cache)===null||W===void 0?void 0:W.peek(C)}static saveState(C){if(!CommandsHistory_1.cache)return;const W={usesLRU:!0,entries:[]};CommandsHistory_1.cache.forEach((H,U)=>W.entries.push({key:U,value:H})),C.store(CommandsHistory_1.PREF_KEY_CACHE,JSON.stringify(W),0,0),C.store(CommandsHistory_1.PREF_KEY_COUNTER,CommandsHistory_1.counter,0,0)}static getConfiguredCommandHistoryLength(C){var W,H;const G=(H=(W=C.getValue().workbench)===null||W===void 0?void 0:W.commandPalette)===null||H===void 0?void 0:H.history;return typeof G=="number"?G:CommandsHistory_1.DEFAULT_COMMANDS_HISTORY_LENGTH}};CommandsHistory.DEFAULT_COMMANDS_HISTORY_LENGTH=50,CommandsHistory.PREF_KEY_CACHE="commandPalette.mru.cache",CommandsHistory.PREF_KEY_COUNTER="commandPalette.mru.counter",CommandsHistory.counter=1,CommandsHistory=CommandsHistory_1=__decorate$2([__param$2(0,IStorageService),__param$2(1,IConfigurationService)],CommandsHistory);class AbstractEditorCommandsQuickAccessProvider extends AbstractCommandsQuickAccessProvider{constructor(C,W,H,U,G,Z){super(C,W,H,U,G,Z)}getCodeEditorCommandPicks(){const C=this.activeTextEditorControl;if(!C)return[];const W=[];for(const H of C.getSupportedActions())W.push({commandId:H.id,commandAlias:H.alias,label:stripIcons(H.label)||H.id});return W}}var __decorate$1=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$1=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};let StandaloneCommandsQuickAccessProvider=class extends AbstractEditorCommandsQuickAccessProvider{get activeTextEditorControl(){var C;return(C=this.codeEditorService.getFocusedCodeEditor())!==null&&C!==void 0?C:void 0}constructor(C,W,H,U,G,Z){super({showAlias:!1},C,H,U,G,Z),this.codeEditorService=W}getCommandPicks(){return __awaiter(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return __awaiter(this,void 0,void 0,function*(){return[]})}};StandaloneCommandsQuickAccessProvider=__decorate$1([__param$1(0,IInstantiationService),__param$1(1,ICodeEditorService),__param$1(2,IKeybindingService),__param$1(3,ICommandService),__param$1(4,ITelemetryService),__param$1(5,IDialogService)],StandaloneCommandsQuickAccessProvider);class GotoLineAction extends EditorAction{constructor(){super({id:GotoLineAction.ID,label:QuickCommandNLS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(C){C.get(IQuickInputService).quickAccess.show(StandaloneCommandsQuickAccessProvider.PREFIX)}}GotoLineAction.ID="editor.action.quickCommand",registerEditorAction(GotoLineAction),Registry.as(Extensions$2.Quickaccess).registerQuickAccessProvider({ctor:StandaloneCommandsQuickAccessProvider,prefix:StandaloneCommandsQuickAccessProvider.PREFIX,helpEntries:[{description:QuickCommandNLS.quickCommandHelp,commandId:GotoLineAction.ID}]});var __decorate=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};let StandaloneReferencesController=class extends ReferencesController{constructor(C,W,H,U,G,Z,X){super(!0,C,W,H,U,G,Z,X)}};StandaloneReferencesController=__decorate([__param(1,IContextKeyService),__param(2,ICodeEditorService),__param(3,INotificationService),__param(4,IInstantiationService),__param(5,IStorageService),__param(6,IConfigurationService)],StandaloneReferencesController),registerEditorContribution(ReferencesController.ID,StandaloneReferencesController,4);class ToggleHighContrast extends EditorAction{constructor(){super({id:"editor.action.toggleHighContrast",label:ToggleHighContrastNLS.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(C,W){const H=C.get(IStandaloneThemeService),U=H.getColorTheme();isHighContrast(U.type)?(H.setTheme(this._originalThemeName||(isDark(U.type)?VS_DARK_THEME_NAME:VS_LIGHT_THEME_NAME)),this._originalThemeName=null):(H.setTheme(isDark(U.type)?HC_BLACK_THEME_NAME:HC_LIGHT_THEME_NAME),this._originalThemeName=U.themeName)}}registerEditorAction(ToggleHighContrast);function WorkerWrapper$4(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/json.worker-8dd963f3.js").href:new URL("assets/json.worker-8dd963f3.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper$3(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/css.worker-c3850ceb.js").href:new URL("assets/css.worker-c3850ceb.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper$2(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/html.worker-88b237e1.js").href:new URL("assets/html.worker-88b237e1.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper$1(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/ts.worker-184cdfdf.js").href:new URL("assets/ts.worker-184cdfdf.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-94ffd778.js").href:new URL("assets/editor.worker-94ffd778.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}const _sfc_main$b=vue.defineComponent({__name:"monacoEditor",props:{...editorProps},emits:["update:modelValue","change","editor-mounted"],setup(K,{emit:C}){const W=K;vue.useCssVars(X=>({"0d1d1f04":X.width,"7cb7c7a9":X.height})),self.MonacoEnvironment={getWorker(X,Q){return Q==="json"?new WorkerWrapper$4:["css","less"].includes(Q)?new WorkerWrapper$3:["html","handlebars","razor"].includes(Q)?new WorkerWrapper$2:["typescript","javascript"].includes(Q)?new WorkerWrapper$1:new WorkerWrapper}};let H;const U=vue.ref(),G=()=>{languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!1}),languages.typescript.javascriptDefaults.setCompilerOptions({target:languages.typescript.ScriptTarget.ES2020,allowNonTsExtensions:!0}),H=editor.create(U.value,{value:W.modelValue,language:W.language,theme:W.theme,...W.options}),H.getAction("editor.action.formatDocument").run(),H.onDidChangeModelContent(()=>{const X=H.getValue();C("update:modelValue",X),C("change",X)}),C("editor-mounted",H)},Z=X=>{let Q=H.getModel();Q&&editor.setModelLanguage(Q,X)};return vue.watch(()=>W.language,X=>{H&&Z(X)}),vue.watch(()=>W.modelValue,X=>{if(H){const Q=H.getValue();X!==Q&&(H.getAction("editor.action.formatDocument").run(),H.setValue(X))}}),vue.onMounted(()=>{G()}),(X,Q)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"codeEditBox",ref:U,class:"codeEditBox"},null,512))}}),monacoEditor_vue_vue_type_style_index_0_scoped_79270ea1_lang="",monacoEditor=_export_sfc(_sfc_main$b,[["__scopeId","data-v-79270ea1"]]),_withScopeId=K=>(vue.pushScopeId("data-v-4cd0bd4d"),K=K(),vue.popScopeId(),K),_hoisted_1$6={style:{height:"40px"}},_hoisted_2$2={style:{float:"right"}},_hoisted_3$2={style:{height:"500px",width:"100%"}},_hoisted_4$2={style:{width:"300px",height:"100%",border:"1px solid #e4e7ed",float:"left"}},_hoisted_5$2=["onClick"],_hoisted_6$2=_withScopeId(()=>vue.createElementVNode("span",{style:{color:"#67c23a"}},"Function",-1)),_hoisted_7$1=["onClick"],_hoisted_8$1={key:0,style:{width:"calc(100% - 310px)",height:"100%",float:"left"}},_hoisted_9$1={class:"content"},_hoisted_10$1={key:0},_hoisted_11$1=_withScopeId(()=>vue.createElementVNode("div",{style:{color:"blue","font-size":"12px"}}," Function(){ ",-1)),_hoisted_12={key:1,style:{color:"blue","font-size":"12px"}},_sfc_main$a=vue.defineComponent({__name:"TypeScript",setup(K){const C=useFormStore();let W=vue.ref(-1),H=vue.ref({key:"",name:"",func:"",param:""}),U=vue.ref(C.formData.config.eventScript);H.value=U.value[0];function G(){const ee={key:"12323",name:"fun1",func:"console.info('new fun')",param:""};U.value.push(ee)}function Z(ee){debugger;U.value.splice(ee,1);const te=ee-1;W.value=te,H.value=U.value[te]}function X(){message.success("保存成功")}function Q(ee){W.value=ee,H.value=U.value[ee]}return(ee,te)=>{const ie=vue.resolveComponent("a-button"),ne=vue.resolveComponent("a-input"),oe=vue.resolveComponent("a-form-item"),re=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$6,[vue.createVNode(ie,{type:"link",primary:"",onClick:G},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode("Function")]),_:1}),vue.createElementVNode("div",_hoisted_2$2,[vue.createVNode(ie,{type:"primary",onClick:X},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})])]),vue.createElementVNode("div",_hoisted_3$2,[vue.createElementVNode("div",_hoisted_4$2,[vue.createElementVNode("ul",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U),(se,ae)=>(vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["menu-item",{active:vue.unref(W)==ae}])},[vue.createElementVNode("div",null,[vue.createElementVNode("div",{style:{"padding-left":"5px",display:"inline-block",width:"230px"},onClick:ce=>Q(ae)},[_hoisted_6$2,vue.createTextVNode(" "+vue.toDisplayString(se.name),1)],8,_hoisted_5$2),vue.createElementVNode("div",{style:{display:"inline-block",right:"5px",cursor:"pointer"},onClick:ce=>Z(ae)},[vue.createVNode(vue.unref(DeleteOutlined$1))],8,_hoisted_7$1)])],2))),256))])]),vue.unref(H)!=null?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$1,[vue.createElementVNode("div",_hoisted_9$1,[vue.createVNode(re,{"label-col":{span:6},"wrapper-col":{span:18}},{default:vue.withCtx(()=>[vue.unref(H).name!="全局变量定义"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$1,[vue.createVNode(oe,{label:"Function Name",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:vue.unref(H).name,"onUpdate:value":te[0]||(te[0]=se=>vue.unref(H).name=se)},null,8,["value"])]),_:1}),vue.unref(H).name!="全局变量定义"?(vue.openBlock(),vue.createBlock(oe,{key:0,label:"参数"},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:vue.unref(H).param,"onUpdate:value":te[1]||(te[1]=se=>vue.unref(H).param=se)},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),_hoisted_11$1])):vue.createCommentVNode("",!0),vue.createVNode(monacoEditor,{modelValue:vue.unref(H).func,"onUpdate:modelValue":te[2]||(te[2]=se=>vue.unref(H).func=se),language:"typescript",style:{width:"100%"},height:"350px","update:modelValue":"eventScript.func"},null,8,["modelValue"]),vue.unref(H).name!="全局变量定义"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12," } ")):vue.createCommentVNode("",!0)]),_:1})])])):vue.createCommentVNode("",!0)])],64)}}}),TypeScript_vue_vue_type_style_index_0_scoped_4cd0bd4d_lang="",TypeScript=_export_sfc(_sfc_main$a,[["__scopeId","data-v-4cd0bd4d"]]),_sfc_main$9=vue.defineComponent({__name:"Form",setup(K){const C=useFormStore(),W=vue.ref(!1),H=vue.ref(""),U=vue.ref("");function G(Z){U.value=Z,Z=="datasource"?H.value="数据源":Z=="ts"?H.value="脚本":Z=="basets"&&(H.value=""),W.value=!0}return(Z,X)=>{const Q=vue.resolveComponent("a-button"),ee=vue.resolveComponent("a-form-item"),te=vue.resolveComponent("a-form"),ie=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(te,{layout:"vertical",autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(ee,{label:"脚本"},{default:vue.withCtx(()=>[vue.createVNode(Q,{onClick:X[0]||(X[0]=ne=>G("ts")),block:""},{default:vue.withCtx(()=>[vue.createTextVNode(" + ")]),_:1})]),_:1})]),_:1}),vue.createVNode(ie,{visible:W.value,"onUpdate:visible":X[2]||(X[2]=ne=>W.value=ne),title:H.value,width:"1000px"},{footer:vue.withCtx(()=>[]),default:vue.withCtx(()=>[W.value&&U.value=="datasource"?(vue.openBlock(),vue.createBlock(DataSource$1,{key:0})):vue.createCommentVNode("",!0),W.value&&U.value=="ts"?(vue.openBlock(),vue.createBlock(TypeScript,{key:1})):vue.createCommentVNode("",!0),W.value&&U.value=="basets"?(vue.openBlock(),vue.createBlock(monacoEditor,{key:2,modelValue:vue.unref(C).formData.config.baseScript,"onUpdate:modelValue":X[1]||(X[1]=ne=>vue.unref(C).formData.config.baseScript=ne),"update:modelValue":"formStore.formData.config.baseScript",language:"typescript",style:{width:"100%","padding-top":"20px"},height:"500px"},null,8,["modelValue"])):vue.createCommentVNode("",!0)]),_:1},8,["visible","title"])],64)}}}),headerProperties=[{title:"标题",bind:"name",type:"input",placeholder:""},{title:"样式",bind:"classname",type:"dic",placeholder:"",code:"class"}],labelProperties=[{title:"标题",bind:"name",type:"input",placeholder:""},{title:"是否必填",bind:"required",type:"switch",placeholder:""},{title:"大小",bind:"font",type:"inputnumber",placeholder:""},{title:"颜色",bind:"color",type:"input",placeholder:""},{title:"位置",bind:"align",type:"radiogroup",children:[{title:"居左",value:"left"},{title:"居中",value:"center"},{title:"居右",value:"right"}]},{title:"样式扩展",bind:"cssextended",type:"textarea",placeholder:"",rows:3}],selectProperties=[{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"校验",bind:"guize",type:"guize",placeholder:"",mode:"simple"},{title:"数据字典",bind:"dic",type:"dicall",placeholder:""}],baseProperties=[{title:"默认值",bind:"defaultValue",type:"input",placeholder:""},{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"校验",bind:"guize",type:"guize",placeholder:"",mode:"pro"},{title:"其它扩展",bind:"extended",type:"textarea",placeholder:"",rows:3}],radioProperties=[{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"选项",bind:"defaultValue",type:"radio",placeholder:""}],checkProperties=[{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"选项",bind:"defaultValue",type:"checkbox",placeholder:""}],inputProperties=[...baseProperties,{title:"前缀",bind:"prefix",type:"input",placeholder:""},{title:"后缀",bind:"suffix",type:"input",placeholder:""}],dicts=[{code:"xb",value:"性别",options:[{code:"1",value:"男"},{code:"2",value:"女"}]},{code:"bpm_status",value:"流程状态",options:[{code:"1",value:"待提交"},{code:"2",value:"处理中"},{code:"3",value:"已完成"},{code:"4",value:"已作废"},{code:"5",value:"已挂起"}]},{code:"class",value:"样式",options:[{code:"title-css1",value:"标题1"},{code:"title-css2",value:"标题2"},{code:"title-css3",value:"标题3"}]}],getDictItemsByCode=K=>dicts.filter(C=>C.code==K)[0].options,getRuleList=()=>[{value:"string",label:"字符串"},{value:"email",label:"邮箱地址"}],_hoisted_1$5={key:6},_hoisted_2$1={key:7},_hoisted_3$1=vue.createElementVNode("br",null,null,-1),_hoisted_4$1={key:8},_hoisted_5$1={key:11},_hoisted_6$1=vue.createElementVNode("span",{style:{color:"#1890ff"}},"必填",-1),_hoisted_7=vue.createElementVNode("br",null,null,-1),_hoisted_8=vue.createElementVNode("br",null,null,-1),_hoisted_9={key:0},_hoisted_10=vue.createElementVNode("br",null,null,-1),_hoisted_11=vue.createElementVNode("br",null,null,-1),_sfc_main$8=vue.defineComponent({__name:"Properties",props:{configData:{type:Object,default:{}}},setup(K){const C=K,W=getRuleList(),H=useDataStore();function U(){const se=vue.reactive({value:C.configData.model});H.getUpdateData.indexOf(se)>0&&(C.configData.writeField=[C.configData.model])}function G(se){let ae=C.configData.options.indexOf(se);ae!==-1&&C.configData.options.splice(ae,1)}vue.ref(!1);let Z=vue.ref([]);switch(C.configData.type){case"label":Z.value=labelProperties;break;case"header":Z.value=headerProperties;break;case"select":Z.value=selectProperties;break;case"radio":Z.value=radioProperties;break;case"checkbox":Z.value=checkProperties;break;case"input":Z.value=inputProperties;break;default:Z.value=baseProperties;break}let Q=vue.ref("");function ee(se){Q.value=se}vue.ref(C.configData.rules);function te(se,ae){C.configData.rules.push({type:se,message:"必须填写此项"})}let ie=vue.reactive({type:null,required:null});vue.watch(()=>C.configData.dataTypeCheck,(se,ae)=>{se||(ie.type=null),ne()}),vue.watch(()=>C.configData.dataTypeMessage,(se,ae)=>{ie.type={type:C.configData.dataType,message:se},ne()}),vue.watch(()=>C.configData.dataType,(se,ae)=>{ie.type={type:se,message:C.configData.dataTypeMessage},ne()}),vue.watch(()=>C.configData.required,(se,ae)=>{se?ie.required={type:"required",message:"不能为空"}:ie.required=null,ne()});function ne(){C.configData.rules=[],Object.keys(ie).forEach(se=>{ie[se]&&C.configData.rules.push(ie[se])})}function oe(){C.configData.options.push({label:"新选项",value:"新选项"})}function re(se,ae){C.configData.options[ae].label=se.value}return(se,ae)=>{const ce=vue.resolveComponent("a-input"),le=vue.resolveComponent("a-form-item"),de=vue.resolveComponent("a-select"),ue=vue.resolveComponent("a-textarea"),he=vue.resolveComponent("a-input-number"),fe=vue.resolveComponent("a-radio-button"),ge=vue.resolveComponent("a-radio-group"),me=vue.resolveComponent("a-switch"),pe=vue.resolveComponent("a-radio"),ve=vue.resolveComponent("a-checkbox"),we=vue.resolveComponent("a-checkbox-group"),Ce=vue.resolveComponent("a-select-option"),xe=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(xe,{layout:"vertical",autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(le,{label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:K.configData.name,"onUpdate:value":ae[0]||(ae[0]=ye=>K.configData.name=ye)},null,8,["value"])]),_:1}),vue.createVNode(le,{label:"绑定查询",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(de,{"show-search":"",value:K.configData.model,"onUpdate:value":ae[1]||(ae[1]=ye=>K.configData.model=ye),options:vue.unref(H).getSelectData,onChange:U},null,8,["value","options"])]),_:1}),vue.createVNode(le,{label:"绑定更新",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(de,{value:K.configData.writeField,"onUpdate:value":ae[2]||(ae[2]=ye=>K.configData.writeField=ye),options:vue.unref(H).getUpdateData,mode:"tags"},null,8,["value","options"])]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z),(ye,Ie)=>(vue.openBlock(),vue.createBlock(le,{label:ye.title,rules:[{required:ye.required}]},{default:vue.withCtx(()=>[ye.type=="input"?(vue.openBlock(),vue.createBlock(ce,{key:0,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},null,8,["value","onUpdate:value"])):ye.type=="textarea"?(vue.openBlock(),vue.createBlock(ue,{key:1,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,placeholder:"",rows:ye.rows},null,8,["value","onUpdate:value","rows"])):ye.type=="inputnumber"?(vue.openBlock(),vue.createBlock(he,{key:2,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,min:12,max:80},null,8,["value","onUpdate:value"])):ye.type=="radiogroup"?(vue.openBlock(),vue.createBlock(ge,{key:3,value:K.configData.align,"onUpdate:value":ae[3]||(ae[3]=Ee=>K.configData.align=Ee)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ye.children,(Ee,Oe)=>(vue.openBlock(),vue.createBlock(fe,{value:Ee.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.title),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value"])):ye.type=="switch"?(vue.openBlock(),vue.createBlock(me,{key:4,checked:K.configData[ye.bind],"onUpdate:checked":Ee=>K.configData[ye.bind]=Ee},null,8,["checked","onUpdate:checked"])):ye.type=="select"?(vue.openBlock(),vue.createBlock(de,{key:5,checked:K.configData[ye.bind],"onUpdate:checked":Ee=>K.configData[ye.bind]=Ee},null,8,["checked","onUpdate:checked"])):ye.type=="radio"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[vue.createVNode(ge,{value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.configData.options,(Ee,Oe)=>(vue.openBlock(),vue.createBlock(pe,{value:Ee.value,style:{"padding-bottom":"8px"}},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:Ee.value,"onUpdate:value":We=>Ee.value=We,placeholder:"选项名称",style:{width:"60%"},onChange:We=>re(Ee,Oe)},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:We=>G(Ee),style:{"font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4","padding-left":"10px"}},null,8,["onClick"])]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"]),vue.createElementVNode("a",{onClick:oe},"添加选项")])):ye.type=="checkbox"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(we,{value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.configData.options,(Ee,Oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(ve,{checked:Ee.value,"onUpdate:checked":We=>Ee.value=We,style:{"padding-bottom":"8px"}},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:Ee.value,"onUpdate:value":We=>Ee.value=We,placeholder:"选项名称",style:{width:"60%"},onChange:We=>re(Ee,Oe)},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:We=>G(Ee),style:{"font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4","padding-left":"10px"}},null,8,["onClick"])]),_:2},1032,["checked","onUpdate:checked"]),_hoisted_3$1],64))),256))]),_:2},1032,["value","onUpdate:value"]),vue.createElementVNode("a",{onClick:oe},"添加选项")])):ye.type=="dicall"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createVNode(de,{value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,onChange:ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dicts),(Ee,Oe)=>(vue.openBlock(),vue.createBlock(Ce,{value:Ee.code},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.value+"("+Ee.code+")"),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"]),vue.unref(Q)!=""?(vue.openBlock(),vue.createBlock(le,{key:0,label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(de,{checked:K.configData[ye.bind],"onUpdate:checked":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(getDictItemsByCode)(vue.unref(Q)),(Ee,Oe)=>(vue.openBlock(),vue.createBlock(Ce,{value:Ee.code},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.value),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["checked","onUpdate:checked"])]),_:2},1024)):vue.createCommentVNode("",!0)])):ye.type=="dic"?(vue.openBlock(),vue.createBlock(de,{key:9,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(getDictItemsByCode)(ye.code),(Ee,Oe)=>(vue.openBlock(),vue.createBlock(Ce,{value:Ee.code},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.value),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):ye.type=="data"?(vue.openBlock(),vue.createBlock(de,{key:10,mode:ye.mode,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,options:vue.unref(H).getSelectData},null,8,["mode","value","onUpdate:value","options"])):ye.type=="guize"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createVNode(ve,{checked:K.configData.required,"onUpdate:checked":ae[4]||(ae[4]=Ee=>K.configData.required=Ee)},{default:vue.withCtx(()=>[_hoisted_6$1]),_:1},8,["checked"]),vue.createTextVNode(),_hoisted_7,vue.createTextVNode(),_hoisted_8,ye.mode=="pro"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9,[vue.createVNode(ve,{checked:K.configData.dataTypeCheck,"onUpdate:checked":ae[5]||(ae[5]=Ee=>K.configData.dataTypeCheck=Ee)},null,8,["checked"]),vue.createVNode(de,{value:K.configData.dataType,"onUpdate:value":ae[6]||(ae[6]=Ee=>K.configData.dataType=Ee),onChange:te,options:vue.unref(W),style:{width:"80%","margin-left":"8px"},placeholder:"请选择",disabled:!K.configData.dataTypeCheck},null,8,["value","options","disabled"]),_hoisted_10,_hoisted_11,K.configData.dataTypeCheck?(vue.openBlock(),vue.createBlock(ce,{key:0,value:K.configData.dataTypeMessage,"onUpdate:value":ae[7]||(ae[7]=Ee=>K.configData.dataTypeMessage=Ee),placeholder:"自定义错误提示",style:{width:"80%","margin-left":"24px"}},null,8,["value"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:2},1032,["label","rules"]))),256))]),_:1})}}}),_hoisted_1$4={key:0},_sfc_main$7=vue.defineComponent({__name:"index",props:{configData:{type:Object,default:[]}},setup(K){const C=K;let W=vue.ref("1");return(H,U)=>{const G=vue.resolveComponent("a-button"),Z=vue.resolveComponent("a-tab-pane"),X=vue.resolveComponent("a-tabs");return vue.openBlock(),vue.createBlock(X,{activeKey:vue.unref(W),"onUpdate:activeKey":U[0]||(U[0]=Q=>vue.isRef(W)?W.value=Q:W=Q),style:{height:"100%","overflow-y":"auto"}},{default:vue.withCtx(()=>[vue.createVNode(Z,{key:"1",tab:"字段属性"},{default:vue.withCtx(()=>[C.configData.length!=0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.createVNode(G,{class:"btn-type-css",size:"small"},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(CheckCircleTwoTone$1),{"two-tone-color":"#1890ff"})]),default:vue.withCtx(()=>[vue.createTextVNode(" "+vue.toDisplayString(K.configData.type),1)]),_:1}),K.configData.type=="grid"?(vue.openBlock(),vue.createBlock(_sfc_main$g,{key:0,configData:K.configData},null,8,["configData"])):K.configData.type=="table"?(vue.openBlock(),vue.createBlock(_sfc_main$d,{key:1,configData:K.configData},null,8,["configData"])):K.configData.type=="col"?(vue.openBlock(),vue.createBlock(_sfc_main$f,{key:2,configData:K.configData},null,8,["configData"])):(vue.openBlock(),vue.createBlock(_sfc_main$8,{configData:K.configData,key:K.configData.type},null,8,["configData"]))])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(Z,{key:"2",tab:"表单属性","force-render":""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$9)]),_:1})]),_:1},8,["activeKey"])}}}),index_vue_vue_type_style_index_0_scoped_7c3a19c6_lang="",formConfig=_export_sfc(_sfc_main$7,[["__scopeId","data-v-7c3a19c6"]]),_hoisted_1$3={class:"container"},_sfc_main$6=vue.defineComponent({__name:"Code",props:{code:{type:String,default:""},language:{type:String,default:""}},setup(K){const C=K,W=useFormStore();let H=vue.ref("");return vue.onMounted(()=>{C.code!=null?H.value=C.code:H.value=JSON.stringify([W.formData],null," ")}),(U,G)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createVNode(monacoEditor,{modelValue:vue.unref(H),"onUpdate:modelValue":G[0]||(G[0]=Z=>vue.isRef(H)?H.value=Z:H=Z),language:K.language,height:"500px"},null,8,["modelValue","language"])]))}});function generate(){const K=useFormStore();let C=`
|
|
1235
|
+
`):K}function detectSystemErrorMessage(K){return K.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${K.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof K.code=="string"&&typeof K.errno=="number"&&typeof K.syscall=="string"?localize("nodeExceptionMessage","A system error occurred ({0})",K.message):K.message||localize("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function toErrorMessage(K=null,C=!1){if(!K)return localize("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(K)){const W=coalesce(K),H=toErrorMessage(W[0],C);return W.length>1?localize("error.moreErrors","{0} ({1} errors in total)",H,W.length):H}if(isString$3(K))return K;if(K.detail){const W=K.detail;if(W.error)return exceptionToErrorMessage(W.error,C);if(W.exception)return exceptionToErrorMessage(W.exception,C)}return K.stack?exceptionToErrorMessage(K,C):K.message?K.message:localize("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function countMapFrom(K){var C;const W=new Map;for(const H of K)W.set(H,((C=W.get(H))!==null&&C!==void 0?C:0)+1);return W}class TfIdfCalculator{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(C,W){const H=this.computeEmbedding(C),U=new Map,G=[];for(const[Z,X]of this.documents){if(W.isCancellationRequested)return[];for(const Q of X.chunks){const ee=this.computeSimilarityScore(Q,H,U);ee>0&&G.push({key:Z,score:ee})}}return G}static termFrequencies(C){return countMapFrom(TfIdfCalculator.splitTerms(C))}static*splitTerms(C){const W=H=>H.toLowerCase();for(const[H]of C.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield W(H);const U=H.split(new RegExp("(?<=[a-z])(?=[A-Z])","g"));if(U.length>1)for(const G of U)G.length>2&&/\p{Letter}{3,}/gu.test(G)&&(yield W(G))}}updateDocuments(C){var W;for(const{key:H}of C)this.deleteDocument(H);for(const H of C){const U=[];for(const G of H.textChunks){const Z=TfIdfCalculator.termFrequencies(G);for(const X of Z.keys())this.chunkOccurrences.set(X,((W=this.chunkOccurrences.get(X))!==null&&W!==void 0?W:0)+1);U.push({text:G,tf:Z})}this.chunkCount+=U.length,this.documents.set(H.key,{chunks:U})}return this}deleteDocument(C){const W=this.documents.get(C);if(W){this.documents.delete(C),this.chunkCount-=W.chunks.length;for(const H of W.chunks)for(const U of H.tf.keys()){const G=this.chunkOccurrences.get(U);if(typeof G=="number"){const Z=G-1;Z<=0?this.chunkOccurrences.delete(U):this.chunkOccurrences.set(U,Z)}}}}computeSimilarityScore(C,W,H){let U=0;for(const[G,Z]of Object.entries(W)){const X=C.tf.get(G);if(!X)continue;let Q=H.get(G);typeof Q!="number"&&(Q=this.computeIdf(G),H.set(G,Q));const ee=X*Q;U+=ee*Z}return U}computeEmbedding(C){const W=TfIdfCalculator.termFrequencies(C);return this.computeTfidf(W)}computeIdf(C){var W;const H=(W=this.chunkOccurrences.get(C))!==null&&W!==void 0?W:0;return H>0?Math.log((this.chunkCount+1)/H):0}computeTfidf(C){const W=Object.create(null);for(const[H,U]of C){const G=this.computeIdf(H);G>0&&(W[H]=U*G)}return W}}function normalizeTfIdfScores(K){var C,W;const H=K.slice(0);H.sort((G,Z)=>Z.score-G.score);const U=(W=(C=H[0])===null||C===void 0?void 0:C.score)!==null&&W!==void 0?W:0;if(U>0)for(const G of H)G.score/=U;return H}var __awaiter$2=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},TriggerAction;(function(K){K[K.NO_ACTION=0]="NO_ACTION",K[K.CLOSE_PICKER=1]="CLOSE_PICKER",K[K.REFRESH_PICKER=2]="REFRESH_PICKER",K[K.REMOVE_ITEM=3]="REMOVE_ITEM"})(TriggerAction||(TriggerAction={}));function isPicksWithActive(K){const C=K;return Array.isArray(C.items)}function isFastAndSlowPicks(K){const C=K;return!!C.picks&&C.additionalPicks instanceof Promise}class PickerQuickAccessProvider extends Disposable{constructor(C,W){super(),this.prefix=C,this.options=W}provide(C,W,H){var U;const G=new DisposableStore;C.canAcceptInBackground=!!(!((U=this.options)===null||U===void 0)&&U.canAcceptInBackground),C.matchOnLabel=C.matchOnDescription=C.matchOnDetail=C.sortByLabel=!1;let Z;const X=G.add(new MutableDisposable),Q=()=>__awaiter$2(this,void 0,void 0,function*(){const ee=X.value=new DisposableStore;Z==null||Z.dispose(!0),C.busy=!1,Z=new CancellationTokenSource$1(W);const te=Z.token,ie=C.value.substr(this.prefix.length).trim(),ne=this._getPicks(ie,ee,te,H),oe=(se,ae)=>{var ce;let le,de;if(isPicksWithActive(se)?(le=se.items,de=se.active):le=se,le.length===0){if(ae)return!1;(ie.length>0||C.hideInput)&&(!((ce=this.options)===null||ce===void 0)&&ce.noResultsPick)&&(isFunction$1(this.options.noResultsPick)?le=[this.options.noResultsPick(ie)]:le=[this.options.noResultsPick])}return C.items=le,de&&(C.activeItems=[de]),!0},re=se=>__awaiter$2(this,void 0,void 0,function*(){let ae=!1,ce=!1;yield Promise.all([(()=>__awaiter$2(this,void 0,void 0,function*(){typeof se.mergeDelay=="number"&&(yield timeout(se.mergeDelay),te.isCancellationRequested)||ce||(ae=oe(se.picks,!0))}))(),(()=>__awaiter$2(this,void 0,void 0,function*(){C.busy=!0;try{const le=yield se.additionalPicks;if(te.isCancellationRequested)return;let de,ue;isPicksWithActive(se.picks)?(de=se.picks.items,ue=se.picks.active):de=se.picks;let he,fe;if(isPicksWithActive(le)?(he=le.items,fe=le.active):he=le,he.length>0||!ae){let ge;if(!ue&&!fe){const me=C.activeItems[0];me&&de.indexOf(me)!==-1&&(ge=me)}oe({items:[...de,...he],active:ue||fe||ge})}}finally{te.isCancellationRequested||(C.busy=!1),ce=!0}}))()])});if(ne!==null)if(isFastAndSlowPicks(ne))yield re(ne);else if(!(ne instanceof Promise))oe(ne);else{C.busy=!0;try{const se=yield ne;if(te.isCancellationRequested)return;isFastAndSlowPicks(se)?yield re(se):oe(se)}finally{te.isCancellationRequested||(C.busy=!1)}}});return G.add(C.onDidChangeValue(()=>Q())),Q(),G.add(C.onDidAccept(ee=>{const[te]=C.selectedItems;typeof(te==null?void 0:te.accept)=="function"&&(ee.inBackground||C.hide(),te.accept(C.keyMods,ee))})),G.add(C.onDidTriggerItemButton(({button:ee,item:te})=>__awaiter$2(this,void 0,void 0,function*(){var ie,ne;if(typeof te.trigger=="function"){const oe=(ne=(ie=te.buttons)===null||ie===void 0?void 0:ie.indexOf(ee))!==null&&ne!==void 0?ne:-1;if(oe>=0){const re=te.trigger(oe,C.keyMods),se=typeof re=="number"?re:yield re;if(W.isCancellationRequested)return;switch(se){case TriggerAction.NO_ACTION:break;case TriggerAction.CLOSE_PICKER:C.hide();break;case TriggerAction.REFRESH_PICKER:Q();break;case TriggerAction.REMOVE_ITEM:{const ae=C.items.indexOf(te);if(ae!==-1){const ce=C.items.slice(),le=ce.splice(ae,1),de=C.activeItems.filter(he=>he!==le[0]),ue=C.keepScrollPosition;C.keepScrollPosition=!0,C.items=ce,de&&(C.activeItems=de),C.keepScrollPosition=ue}break}}}}}))),G}}var __decorate$2=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$2=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter$1=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})},AbstractCommandsQuickAccessProvider_1,CommandsHistory_1;let AbstractCommandsQuickAccessProvider=AbstractCommandsQuickAccessProvider_1=class extends PickerQuickAccessProvider{constructor(C,W,H,U,G,Z){super(AbstractCommandsQuickAccessProvider_1.PREFIX,C),this.instantiationService=W,this.keybindingService=H,this.commandService=U,this.telemetryService=G,this.dialogService=Z,this.commandsHistory=this._register(this.instantiationService.createInstance(CommandsHistory)),this.options=C}_getPicks(C,W,H,U){var G,Z,X,Q;return __awaiter$1(this,void 0,void 0,function*(){const ee=yield this.getCommandPicks(H);if(H.isCancellationRequested)return[];const te=createSingleCallFunction(()=>{const ce=new TfIdfCalculator;ce.updateDocuments(ee.map(de=>({key:de.commandId,textChunks:[de.label+(de.commandAlias?` ${de.commandAlias}`:"")]})));const le=ce.calculateScores(C,H);return normalizeTfIdfScores(le).filter(de=>de.score>AbstractCommandsQuickAccessProvider_1.TFIDF_THRESHOLD).slice(0,AbstractCommandsQuickAccessProvider_1.TFIDF_MAX_RESULTS)}),ie=[];for(const ce of ee){const le=(G=AbstractCommandsQuickAccessProvider_1.WORD_FILTER(C,ce.label))!==null&&G!==void 0?G:void 0,de=ce.commandAlias&&(Z=AbstractCommandsQuickAccessProvider_1.WORD_FILTER(C,ce.commandAlias))!==null&&Z!==void 0?Z:void 0;if(le||de)ce.highlights={label:le,detail:this.options.showAlias?de:void 0},ie.push(ce);else if(C===ce.commandId)ie.push(ce);else if(C.length>=3){const ue=te();if(H.isCancellationRequested)return[];const he=ue.find(fe=>fe.key===ce.commandId);he&&(ce.tfIdfScore=he.score,ie.push(ce))}}const ne=new Map;for(const ce of ie){const le=ne.get(ce.label);le?(ce.description=ce.commandId,le.description=le.commandId):ne.set(ce.label,ce)}ie.sort((ce,le)=>{if(ce.tfIdfScore&&le.tfIdfScore)return ce.tfIdfScore===le.tfIdfScore?ce.label.localeCompare(le.label):le.tfIdfScore-ce.tfIdfScore;if(ce.tfIdfScore)return 1;if(le.tfIdfScore)return-1;const de=this.commandsHistory.peek(ce.commandId),ue=this.commandsHistory.peek(le.commandId);if(de&&ue)return de>ue?-1:1;if(de)return-1;if(ue)return 1;if(this.options.suggestedCommandIds){const he=this.options.suggestedCommandIds.has(ce.commandId),fe=this.options.suggestedCommandIds.has(le.commandId);if(he&&fe)return 0;if(he)return-1;if(fe)return 1}return ce.label.localeCompare(le.label)});const oe=[];let re=!1,se=!0,ae=!!this.options.suggestedCommandIds;for(let ce=0;ce<ie.length;ce++){const le=ie[ce];ce===0&&this.commandsHistory.peek(le.commandId)&&(oe.push({type:"separator",label:localize("recentlyUsed","recently used")}),re=!0),se&&le.tfIdfScore!==void 0&&(oe.push({type:"separator",label:localize("suggested","similar commands")}),se=!1),ae&&le.tfIdfScore===void 0&&!this.commandsHistory.peek(le.commandId)&&(!((X=this.options.suggestedCommandIds)===null||X===void 0)&&X.has(le.commandId))&&(oe.push({type:"separator",label:localize("commonlyUsed","commonly used")}),re=!0,ae=!1),re&&le.tfIdfScore===void 0&&!this.commandsHistory.peek(le.commandId)&&!(!((Q=this.options.suggestedCommandIds)===null||Q===void 0)&&Q.has(le.commandId))&&(oe.push({type:"separator",label:localize("morecCommands","other commands")}),re=!1),oe.push(this.toCommandPick(le,U))}return this.hasAdditionalCommandPicks(C,H)?{picks:oe,additionalPicks:(()=>__awaiter$1(this,void 0,void 0,function*(){var ce;const le=yield this.getAdditionalCommandPicks(ee,ie,C,H);if(H.isCancellationRequested)return[];const de=le.map(ue=>this.toCommandPick(ue,U));return se&&((ce=de[0])===null||ce===void 0?void 0:ce.type)!=="separator"&&de.unshift({type:"separator",label:localize("suggested","similar commands")}),de}))()}:oe})}toCommandPick(C,W){if(C.type==="separator")return C;const H=this.keybindingService.lookupKeybinding(C.commandId),U=H?localize("commandPickAriaLabelWithKeybinding","{0}, {1}",C.label,H.getAriaLabel()):C.label;return Object.assign(Object.assign({},C),{ariaLabel:U,detail:this.options.showAlias&&C.commandAlias!==C.label?C.commandAlias:void 0,keybinding:H,accept:()=>__awaiter$1(this,void 0,void 0,function*(){var G,Z;this.commandsHistory.push(C.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:C.commandId,from:(G=W==null?void 0:W.from)!==null&&G!==void 0?G:"quick open"});try{!((Z=C.args)===null||Z===void 0)&&Z.length?yield this.commandService.executeCommand(C.commandId,...C.args):yield this.commandService.executeCommand(C.commandId)}catch(X){isCancellationError(X)||this.dialogService.error(localize("canNotRun","Command '{0}' resulted in an error",C.label),toErrorMessage(X))}})})}};AbstractCommandsQuickAccessProvider.PREFIX=">",AbstractCommandsQuickAccessProvider.TFIDF_THRESHOLD=.5,AbstractCommandsQuickAccessProvider.TFIDF_MAX_RESULTS=5,AbstractCommandsQuickAccessProvider.WORD_FILTER=or(matchesPrefix,matchesWords,matchesContiguousSubString),AbstractCommandsQuickAccessProvider=AbstractCommandsQuickAccessProvider_1=__decorate$2([__param$2(1,IInstantiationService),__param$2(2,IKeybindingService),__param$2(3,ICommandService),__param$2(4,ITelemetryService),__param$2(5,IDialogService)],AbstractCommandsQuickAccessProvider);let CommandsHistory=CommandsHistory_1=class extends Disposable{constructor(C,W){super(),this.storageService=C,this.configurationService=W,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(C=>this.updateConfiguration(C)))}updateConfiguration(C){C&&!C.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=CommandsHistory_1.getConfiguredCommandHistoryLength(this.configurationService),CommandsHistory_1.cache&&CommandsHistory_1.cache.limit!==this.configuredCommandsHistoryLength&&(CommandsHistory_1.cache.limit=this.configuredCommandsHistoryLength,CommandsHistory_1.saveState(this.storageService)))}load(){const C=this.storageService.get(CommandsHistory_1.PREF_KEY_CACHE,0);let W;if(C)try{W=JSON.parse(C)}catch{}const H=CommandsHistory_1.cache=new LRUCache(this.configuredCommandsHistoryLength,1);if(W){let U;W.usesLRU?U=W.entries:U=W.entries.sort((G,Z)=>G.value-Z.value),U.forEach(G=>H.set(G.key,G.value))}CommandsHistory_1.counter=this.storageService.getNumber(CommandsHistory_1.PREF_KEY_COUNTER,0,CommandsHistory_1.counter)}push(C){CommandsHistory_1.cache&&(CommandsHistory_1.cache.set(C,CommandsHistory_1.counter++),CommandsHistory_1.saveState(this.storageService))}peek(C){var W;return(W=CommandsHistory_1.cache)===null||W===void 0?void 0:W.peek(C)}static saveState(C){if(!CommandsHistory_1.cache)return;const W={usesLRU:!0,entries:[]};CommandsHistory_1.cache.forEach((H,U)=>W.entries.push({key:U,value:H})),C.store(CommandsHistory_1.PREF_KEY_CACHE,JSON.stringify(W),0,0),C.store(CommandsHistory_1.PREF_KEY_COUNTER,CommandsHistory_1.counter,0,0)}static getConfiguredCommandHistoryLength(C){var W,H;const G=(H=(W=C.getValue().workbench)===null||W===void 0?void 0:W.commandPalette)===null||H===void 0?void 0:H.history;return typeof G=="number"?G:CommandsHistory_1.DEFAULT_COMMANDS_HISTORY_LENGTH}};CommandsHistory.DEFAULT_COMMANDS_HISTORY_LENGTH=50,CommandsHistory.PREF_KEY_CACHE="commandPalette.mru.cache",CommandsHistory.PREF_KEY_COUNTER="commandPalette.mru.counter",CommandsHistory.counter=1,CommandsHistory=CommandsHistory_1=__decorate$2([__param$2(0,IStorageService),__param$2(1,IConfigurationService)],CommandsHistory);class AbstractEditorCommandsQuickAccessProvider extends AbstractCommandsQuickAccessProvider{constructor(C,W,H,U,G,Z){super(C,W,H,U,G,Z)}getCodeEditorCommandPicks(){const C=this.activeTextEditorControl;if(!C)return[];const W=[];for(const H of C.getSupportedActions())W.push({commandId:H.id,commandAlias:H.alias,label:stripIcons(H.label)||H.id});return W}}var __decorate$1=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param$1=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}},__awaiter=globalThis&&globalThis.__awaiter||function(K,C,W,H){function U(G){return G instanceof W?G:new W(function(Z){Z(G)})}return new(W||(W=Promise))(function(G,Z){function X(te){try{ee(H.next(te))}catch(ie){Z(ie)}}function Q(te){try{ee(H.throw(te))}catch(ie){Z(ie)}}function ee(te){te.done?G(te.value):U(te.value).then(X,Q)}ee((H=H.apply(K,C||[])).next())})};let StandaloneCommandsQuickAccessProvider=class extends AbstractEditorCommandsQuickAccessProvider{get activeTextEditorControl(){var C;return(C=this.codeEditorService.getFocusedCodeEditor())!==null&&C!==void 0?C:void 0}constructor(C,W,H,U,G,Z){super({showAlias:!1},C,H,U,G,Z),this.codeEditorService=W}getCommandPicks(){return __awaiter(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return __awaiter(this,void 0,void 0,function*(){return[]})}};StandaloneCommandsQuickAccessProvider=__decorate$1([__param$1(0,IInstantiationService),__param$1(1,ICodeEditorService),__param$1(2,IKeybindingService),__param$1(3,ICommandService),__param$1(4,ITelemetryService),__param$1(5,IDialogService)],StandaloneCommandsQuickAccessProvider);class GotoLineAction extends EditorAction{constructor(){super({id:GotoLineAction.ID,label:QuickCommandNLS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:EditorContextKeys.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(C){C.get(IQuickInputService).quickAccess.show(StandaloneCommandsQuickAccessProvider.PREFIX)}}GotoLineAction.ID="editor.action.quickCommand",registerEditorAction(GotoLineAction),Registry.as(Extensions$2.Quickaccess).registerQuickAccessProvider({ctor:StandaloneCommandsQuickAccessProvider,prefix:StandaloneCommandsQuickAccessProvider.PREFIX,helpEntries:[{description:QuickCommandNLS.quickCommandHelp,commandId:GotoLineAction.ID}]});var __decorate=globalThis&&globalThis.__decorate||function(K,C,W,H){var U=arguments.length,G=U<3?C:H===null?H=Object.getOwnPropertyDescriptor(C,W):H,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(K,C,W,H);else for(var X=K.length-1;X>=0;X--)(Z=K[X])&&(G=(U<3?Z(G):U>3?Z(C,W,G):Z(C,W))||G);return U>3&&G&&Object.defineProperty(C,W,G),G},__param=globalThis&&globalThis.__param||function(K,C){return function(W,H){C(W,H,K)}};let StandaloneReferencesController=class extends ReferencesController{constructor(C,W,H,U,G,Z,X){super(!0,C,W,H,U,G,Z,X)}};StandaloneReferencesController=__decorate([__param(1,IContextKeyService),__param(2,ICodeEditorService),__param(3,INotificationService),__param(4,IInstantiationService),__param(5,IStorageService),__param(6,IConfigurationService)],StandaloneReferencesController),registerEditorContribution(ReferencesController.ID,StandaloneReferencesController,4);class ToggleHighContrast extends EditorAction{constructor(){super({id:"editor.action.toggleHighContrast",label:ToggleHighContrastNLS.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(C,W){const H=C.get(IStandaloneThemeService),U=H.getColorTheme();isHighContrast(U.type)?(H.setTheme(this._originalThemeName||(isDark(U.type)?VS_DARK_THEME_NAME:VS_LIGHT_THEME_NAME)),this._originalThemeName=null):(H.setTheme(isDark(U.type)?HC_BLACK_THEME_NAME:HC_LIGHT_THEME_NAME),this._originalThemeName=U.themeName)}}registerEditorAction(ToggleHighContrast);function WorkerWrapper$4(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/json.worker-8dd963f3.js").href:new URL("assets/json.worker-8dd963f3.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper$3(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/css.worker-c3850ceb.js").href:new URL("assets/css.worker-c3850ceb.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper$2(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/html.worker-88b237e1.js").href:new URL("assets/html.worker-88b237e1.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper$1(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/ts.worker-184cdfdf.js").href:new URL("assets/ts.worker-184cdfdf.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}function WorkerWrapper(){return new Worker(""+(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__dirname+"/assets/editor.worker-94ffd778.js").href:new URL("assets/editor.worker-94ffd778.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href))}const _sfc_main$b=vue.defineComponent({__name:"monacoEditor",props:{...editorProps},emits:["update:modelValue","change","editor-mounted"],setup(K,{emit:C}){const W=K;vue.useCssVars(X=>({"0d1d1f04":X.width,"7cb7c7a9":X.height})),self.MonacoEnvironment={getWorker(X,Q){return Q==="json"?new WorkerWrapper$4:["css","less"].includes(Q)?new WorkerWrapper$3:["html","handlebars","razor"].includes(Q)?new WorkerWrapper$2:["typescript","javascript"].includes(Q)?new WorkerWrapper$1:new WorkerWrapper}};let H;const U=vue.ref(),G=()=>{languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!1}),languages.typescript.javascriptDefaults.setCompilerOptions({target:languages.typescript.ScriptTarget.ES2020,allowNonTsExtensions:!0}),H=editor.create(U.value,{value:W.modelValue,language:W.language,theme:W.theme,...W.options}),H.getAction("editor.action.formatDocument").run(),H.onDidChangeModelContent(()=>{const X=H.getValue();C("update:modelValue",X),C("change",X)}),C("editor-mounted",H)},Z=X=>{let Q=H.getModel();Q&&editor.setModelLanguage(Q,X)};return vue.watch(()=>W.language,X=>{H&&Z(X)}),vue.watch(()=>W.modelValue,X=>{if(H){const Q=H.getValue();X!==Q&&(H.getAction("editor.action.formatDocument").run(),H.setValue(X))}}),vue.onMounted(()=>{G()}),(X,Q)=>(vue.openBlock(),vue.createElementBlock("div",{ref_key:"codeEditBox",ref:U,class:"codeEditBox"},null,512))}}),monacoEditor_vue_vue_type_style_index_0_scoped_79270ea1_lang="",monacoEditor=_export_sfc(_sfc_main$b,[["__scopeId","data-v-79270ea1"]]),_withScopeId=K=>(vue.pushScopeId("data-v-4cd0bd4d"),K=K(),vue.popScopeId(),K),_hoisted_1$6={style:{height:"40px"}},_hoisted_2$2={style:{float:"right"}},_hoisted_3$2={style:{height:"500px",width:"100%"}},_hoisted_4$2={style:{width:"300px",height:"100%",border:"1px solid #e4e7ed",float:"left"}},_hoisted_5$2=["onClick"],_hoisted_6$2=_withScopeId(()=>vue.createElementVNode("span",{style:{color:"#67c23a"}},"Function",-1)),_hoisted_7$1=["onClick"],_hoisted_8$1={key:0,style:{width:"calc(100% - 310px)",height:"100%",float:"left"}},_hoisted_9$1={class:"content"},_hoisted_10$1={key:0},_hoisted_11$1=_withScopeId(()=>vue.createElementVNode("div",{style:{color:"blue","font-size":"12px"}}," Function(){ ",-1)),_hoisted_12={key:1,style:{color:"blue","font-size":"12px"}},_sfc_main$a=vue.defineComponent({__name:"TypeScript",setup(K){const C=useFormStore();let W=vue.ref(-1),H=vue.ref({key:"",name:"",func:"",param:""}),U=vue.ref(C.formData.config.eventScript);H.value=U.value[0];function G(){const ee={key:"12323",name:"fun1",func:"console.info('new fun')",param:""};U.value.push(ee)}function Z(ee){debugger;U.value.splice(ee,1);const te=ee-1;W.value=te,H.value=U.value[te]}function X(){message.success("保存成功")}function Q(ee){W.value=ee,H.value=U.value[ee]}return(ee,te)=>{const ie=vue.resolveComponent("a-button"),ne=vue.resolveComponent("a-input"),oe=vue.resolveComponent("a-form-item"),re=vue.resolveComponent("a-form");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$6,[vue.createVNode(ie,{type:"link",primary:"",onClick:G},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode("Function")]),_:1}),vue.createElementVNode("div",_hoisted_2$2,[vue.createVNode(ie,{type:"primary",onClick:X},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})])]),vue.createElementVNode("div",_hoisted_3$2,[vue.createElementVNode("div",_hoisted_4$2,[vue.createElementVNode("ul",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U),(se,ae)=>(vue.openBlock(),vue.createElementBlock("li",{class:vue.normalizeClass(["menu-item",{active:vue.unref(W)==ae}])},[vue.createElementVNode("div",null,[vue.createElementVNode("div",{style:{"padding-left":"5px",display:"inline-block",width:"230px"},onClick:ce=>Q(ae)},[_hoisted_6$2,vue.createTextVNode(" "+vue.toDisplayString(se.name),1)],8,_hoisted_5$2),vue.createElementVNode("div",{style:{display:"inline-block",right:"5px",cursor:"pointer"},onClick:ce=>Z(ae)},[vue.createVNode(vue.unref(DeleteOutlined$1))],8,_hoisted_7$1)])],2))),256))])]),vue.unref(H)!=null?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$1,[vue.createElementVNode("div",_hoisted_9$1,[vue.createVNode(re,{"label-col":{span:6},"wrapper-col":{span:18}},{default:vue.withCtx(()=>[vue.unref(H).name!="全局变量定义"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10$1,[vue.createVNode(oe,{label:"Function Name",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:vue.unref(H).name,"onUpdate:value":te[0]||(te[0]=se=>vue.unref(H).name=se)},null,8,["value"])]),_:1}),vue.unref(H).name!="全局变量定义"?(vue.openBlock(),vue.createBlock(oe,{key:0,label:"参数"},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:vue.unref(H).param,"onUpdate:value":te[1]||(te[1]=se=>vue.unref(H).param=se)},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),_hoisted_11$1])):vue.createCommentVNode("",!0),vue.createVNode(monacoEditor,{modelValue:vue.unref(H).func,"onUpdate:modelValue":te[2]||(te[2]=se=>vue.unref(H).func=se),language:"typescript",style:{width:"100%"},height:"350px","update:modelValue":"eventScript.func"},null,8,["modelValue"]),vue.unref(H).name!="全局变量定义"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12," } ")):vue.createCommentVNode("",!0)]),_:1})])])):vue.createCommentVNode("",!0)])],64)}}}),TypeScript_vue_vue_type_style_index_0_scoped_4cd0bd4d_lang="",TypeScript=_export_sfc(_sfc_main$a,[["__scopeId","data-v-4cd0bd4d"]]),_sfc_main$9=vue.defineComponent({__name:"Form",setup(K){const C=useFormStore(),W=vue.ref(!1),H=vue.ref(""),U=vue.ref("");function G(Z){U.value=Z,Z=="datasource"?H.value="数据源":Z=="ts"?H.value="脚本":Z=="basets"&&(H.value=""),W.value=!0}return(Z,X)=>{const Q=vue.resolveComponent("a-button"),ee=vue.resolveComponent("a-form-item"),te=vue.resolveComponent("a-form"),ie=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(te,{layout:"vertical",autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(ee,{label:"脚本"},{default:vue.withCtx(()=>[vue.createVNode(Q,{onClick:X[0]||(X[0]=ne=>G("ts")),block:""},{default:vue.withCtx(()=>[vue.createTextVNode(" + ")]),_:1})]),_:1})]),_:1}),vue.createVNode(ie,{visible:W.value,"onUpdate:visible":X[2]||(X[2]=ne=>W.value=ne),title:H.value,width:"1000px"},{footer:vue.withCtx(()=>[]),default:vue.withCtx(()=>[W.value&&U.value=="datasource"?(vue.openBlock(),vue.createBlock(DataSource$1,{key:0})):vue.createCommentVNode("",!0),W.value&&U.value=="ts"?(vue.openBlock(),vue.createBlock(TypeScript,{key:1})):vue.createCommentVNode("",!0),W.value&&U.value=="basets"?(vue.openBlock(),vue.createBlock(monacoEditor,{key:2,modelValue:vue.unref(C).formData.config.baseScript,"onUpdate:modelValue":X[1]||(X[1]=ne=>vue.unref(C).formData.config.baseScript=ne),"update:modelValue":"formStore.formData.config.baseScript",language:"typescript",style:{width:"100%","padding-top":"20px"},height:"500px"},null,8,["modelValue"])):vue.createCommentVNode("",!0)]),_:1},8,["visible","title"])],64)}}}),headerProperties=[{title:"样式",bind:"classname",type:"dic",placeholder:"",code:"class"}],labelProperties=[{title:"标题",bind:"name",type:"input",placeholder:""},{title:"是否必填",bind:"required",type:"switch",placeholder:""},{title:"大小",bind:"font",type:"inputnumber",placeholder:""},{title:"颜色",bind:"color",type:"input",placeholder:""},{title:"位置",bind:"align",type:"radiogroup",children:[{title:"居左",value:"left"},{title:"居中",value:"center"},{title:"居右",value:"right"}]},{title:"样式扩展",bind:"cssextended",type:"textarea",placeholder:"",rows:3}],selectProperties=[{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"校验",bind:"guize",type:"guize",placeholder:"",mode:"simple"},{title:"数据字典",bind:"dic",type:"dicall",placeholder:""}],baseProperties=[{title:"绑定查询",bind:"model",type:"dataselect",placeholder:"",required:!0},{title:"绑定更新",bind:"writeField",type:"dataupdate",placeholder:"",required:!0,mode:"tags"},{title:"默认值",bind:"defaultValue",type:"input",placeholder:""},{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"校验",bind:"guize",type:"guize",placeholder:"",mode:"pro"},{title:"其它扩展",bind:"extended",type:"textarea",placeholder:"",rows:3}],radioProperties=[{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"选项",bind:"defaultValue",type:"radio",placeholder:""}],checkProperties=[{title:"宽度",bind:"width",type:"input",placeholder:""},{title:"选项",bind:"defaultValue",type:"checkbox",placeholder:""}],inputProperties=[...baseProperties,{title:"前缀",bind:"prefix",type:"input",placeholder:""},{title:"后缀",bind:"suffix",type:"input",placeholder:""}],dicts=[{code:"xb",value:"性别",options:[{code:"1",value:"男"},{code:"2",value:"女"}]},{code:"bpm_status",value:"流程状态",options:[{code:"1",value:"待提交"},{code:"2",value:"处理中"},{code:"3",value:"已完成"},{code:"4",value:"已作废"},{code:"5",value:"已挂起"}]},{code:"class",value:"样式",options:[{code:"title-css1",value:"标题1"},{code:"title-css2",value:"标题2"},{code:"title-css3",value:"标题3"}]}],getDictItemsByCode=K=>dicts.filter(C=>C.code==K)[0].options,getRuleList=()=>[{value:"string",label:"字符串"},{value:"email",label:"邮箱地址"}],_hoisted_1$5={key:6},_hoisted_2$1={key:7},_hoisted_3$1=vue.createElementVNode("br",null,null,-1),_hoisted_4$1={key:8},_hoisted_5$1={key:12},_hoisted_6$1=vue.createElementVNode("span",{style:{color:"#1890ff"}},"必填",-1),_hoisted_7=vue.createElementVNode("br",null,null,-1),_hoisted_8=vue.createElementVNode("br",null,null,-1),_hoisted_9={key:0},_hoisted_10=vue.createElementVNode("br",null,null,-1),_hoisted_11=vue.createElementVNode("br",null,null,-1),_sfc_main$8=vue.defineComponent({__name:"Properties",props:{configData:{type:Object,default:{}}},setup(K){const C=K,W=getRuleList(),H=useDataStore();function U(){const se=vue.reactive({value:C.configData.model});H.getUpdateData.indexOf(se)>0&&(C.configData.writeField=[C.configData.model])}function G(se){let ae=C.configData.options.indexOf(se);ae!==-1&&C.configData.options.splice(ae,1)}vue.ref(!1);let Z=vue.ref([]);switch(C.configData.type){case"label":Z.value=labelProperties;break;case"header":Z.value=headerProperties;break;case"select":Z.value=selectProperties;break;case"radio":Z.value=radioProperties;break;case"checkbox":Z.value=checkProperties;break;case"input":Z.value=inputProperties;break;default:Z.value=baseProperties;break}let Q=vue.ref("");function ee(se){Q.value=se}vue.ref(C.configData.rules);function te(se,ae){C.configData.rules.push({type:se,message:"必须填写此项"})}let ie=vue.reactive({type:null,required:null});vue.watch(()=>C.configData.dataTypeCheck,(se,ae)=>{se||(ie.type=null),ne()}),vue.watch(()=>C.configData.dataTypeMessage,(se,ae)=>{ie.type={type:C.configData.dataType,message:se},ne()}),vue.watch(()=>C.configData.dataType,(se,ae)=>{ie.type={type:se,message:C.configData.dataTypeMessage},ne()}),vue.watch(()=>C.configData.required,(se,ae)=>{se?ie.required={type:"required",message:"不能为空"}:ie.required=null,ne()});function ne(){C.configData.rules=[],Object.keys(ie).forEach(se=>{ie[se]&&C.configData.rules.push(ie[se])})}function oe(){C.configData.options.push({label:"新选项",value:"新选项"})}function re(se,ae){C.configData.options[ae].label=se.value}return(se,ae)=>{const ce=vue.resolveComponent("a-input"),le=vue.resolveComponent("a-form-item"),de=vue.resolveComponent("a-textarea"),ue=vue.resolveComponent("a-input-number"),he=vue.resolveComponent("a-radio-button"),fe=vue.resolveComponent("a-radio-group"),ge=vue.resolveComponent("a-switch"),me=vue.resolveComponent("a-select"),pe=vue.resolveComponent("a-radio"),ve=vue.resolveComponent("a-checkbox"),we=vue.resolveComponent("a-checkbox-group"),Ce=vue.resolveComponent("a-select-option"),xe=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(xe,{layout:"vertical",autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(le,{label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:K.configData.name,"onUpdate:value":ae[0]||(ae[0]=ye=>K.configData.name=ye)},null,8,["value"])]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z),(ye,Ie)=>(vue.openBlock(),vue.createBlock(le,{label:ye.title,rules:[{required:ye.required}]},{default:vue.withCtx(()=>[ye.type=="input"?(vue.openBlock(),vue.createBlock(ce,{key:0,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},null,8,["value","onUpdate:value"])):ye.type=="textarea"?(vue.openBlock(),vue.createBlock(de,{key:1,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,placeholder:"",rows:ye.rows},null,8,["value","onUpdate:value","rows"])):ye.type=="inputnumber"?(vue.openBlock(),vue.createBlock(ue,{key:2,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,min:12,max:80},null,8,["value","onUpdate:value"])):ye.type=="radiogroup"?(vue.openBlock(),vue.createBlock(fe,{key:3,value:K.configData.align,"onUpdate:value":ae[1]||(ae[1]=Ee=>K.configData.align=Ee)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ye.children,(Ee,Oe)=>(vue.openBlock(),vue.createBlock(he,{value:Ee.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.title),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value"])):ye.type=="switch"?(vue.openBlock(),vue.createBlock(ge,{key:4,checked:K.configData[ye.bind],"onUpdate:checked":Ee=>K.configData[ye.bind]=Ee},null,8,["checked","onUpdate:checked"])):ye.type=="select"?(vue.openBlock(),vue.createBlock(me,{key:5,checked:K.configData[ye.bind],"onUpdate:checked":Ee=>K.configData[ye.bind]=Ee},null,8,["checked","onUpdate:checked"])):ye.type=="radio"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$5,[vue.createVNode(fe,{value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.configData.options,(Ee,Oe)=>(vue.openBlock(),vue.createBlock(pe,{value:Ee.value,style:{"padding-bottom":"8px"}},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:Ee.value,"onUpdate:value":We=>Ee.value=We,placeholder:"选项名称",style:{width:"60%"},onChange:We=>re(Ee,Oe)},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:We=>G(Ee),style:{"font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4","padding-left":"10px"}},null,8,["onClick"])]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"]),vue.createElementVNode("a",{onClick:oe},"添加选项")])):ye.type=="checkbox"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(we,{value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(K.configData.options,(Ee,Oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(ve,{checked:Ee.value,"onUpdate:checked":We=>Ee.value=We,style:{"padding-bottom":"8px"}},{default:vue.withCtx(()=>[vue.createVNode(ce,{value:Ee.value,"onUpdate:value":We=>Ee.value=We,placeholder:"选项名称",style:{width:"60%"},onChange:We=>re(Ee,Oe)},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:We=>G(Ee),style:{"font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4","padding-left":"10px"}},null,8,["onClick"])]),_:2},1032,["checked","onUpdate:checked"]),_hoisted_3$1],64))),256))]),_:2},1032,["value","onUpdate:value"]),vue.createElementVNode("a",{onClick:oe},"添加选项")])):ye.type=="dicall"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$1,[vue.createVNode(me,{value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,onChange:ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dicts),(Ee,Oe)=>(vue.openBlock(),vue.createBlock(Ce,{value:Ee.code},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.value+"("+Ee.code+")"),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"]),vue.unref(Q)!=""?(vue.openBlock(),vue.createBlock(le,{key:0,label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(me,{checked:K.configData[ye.bind],"onUpdate:checked":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(getDictItemsByCode)(vue.unref(Q)),(Ee,Oe)=>(vue.openBlock(),vue.createBlock(Ce,{value:Ee.code},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.value),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["checked","onUpdate:checked"])]),_:2},1024)):vue.createCommentVNode("",!0)])):ye.type=="dic"?(vue.openBlock(),vue.createBlock(me,{key:9,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(getDictItemsByCode)(ye.code),(Ee,Oe)=>(vue.openBlock(),vue.createBlock(Ce,{value:Ee.code},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ee.value),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):ye.type=="dataselect"?(vue.openBlock(),vue.createBlock(me,{key:10,mode:ye.mode,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,options:vue.unref(H).getSelectData,onChange:U},null,8,["mode","value","onUpdate:value","options"])):ye.type=="dataupdate"?(vue.openBlock(),vue.createBlock(me,{key:11,mode:ye.mode,value:K.configData[ye.bind],"onUpdate:value":Ee=>K.configData[ye.bind]=Ee,options:vue.unref(H).getUpdateData},null,8,["mode","value","onUpdate:value","options"])):ye.type=="guize"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$1,[vue.createVNode(ve,{checked:K.configData.required,"onUpdate:checked":ae[2]||(ae[2]=Ee=>K.configData.required=Ee)},{default:vue.withCtx(()=>[_hoisted_6$1]),_:1},8,["checked"]),vue.createTextVNode(),_hoisted_7,vue.createTextVNode(),_hoisted_8,ye.mode=="pro"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9,[vue.createVNode(ve,{checked:K.configData.dataTypeCheck,"onUpdate:checked":ae[3]||(ae[3]=Ee=>K.configData.dataTypeCheck=Ee)},null,8,["checked"]),vue.createVNode(me,{value:K.configData.dataType,"onUpdate:value":ae[4]||(ae[4]=Ee=>K.configData.dataType=Ee),onChange:te,options:vue.unref(W),style:{width:"80%","margin-left":"8px"},placeholder:"请选择",disabled:!K.configData.dataTypeCheck},null,8,["value","options","disabled"]),_hoisted_10,_hoisted_11,K.configData.dataTypeCheck?(vue.openBlock(),vue.createBlock(ce,{key:0,value:K.configData.dataTypeMessage,"onUpdate:value":ae[5]||(ae[5]=Ee=>K.configData.dataTypeMessage=Ee),placeholder:"自定义错误提示",style:{width:"80%","margin-left":"24px"}},null,8,["value"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),_:2},1032,["label","rules"]))),256))]),_:1})}}}),_hoisted_1$4={key:0},_sfc_main$7=vue.defineComponent({__name:"index",props:{configData:{type:Object,default:[]}},setup(K){const C=K;let W=vue.ref("1");return(H,U)=>{const G=vue.resolveComponent("a-button"),Z=vue.resolveComponent("a-tab-pane"),X=vue.resolveComponent("a-tabs");return vue.openBlock(),vue.createBlock(X,{activeKey:vue.unref(W),"onUpdate:activeKey":U[0]||(U[0]=Q=>vue.isRef(W)?W.value=Q:W=Q),style:{height:"100%","overflow-y":"auto"}},{default:vue.withCtx(()=>[vue.createVNode(Z,{key:"1",tab:"字段属性"},{default:vue.withCtx(()=>[C.configData.length!=0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.createVNode(G,{class:"btn-type-css",size:"small"},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(CheckCircleTwoTone$1),{"two-tone-color":"#1890ff"})]),default:vue.withCtx(()=>[vue.createTextVNode(" "+vue.toDisplayString(K.configData.type),1)]),_:1}),K.configData.type=="grid"?(vue.openBlock(),vue.createBlock(_sfc_main$g,{key:0,configData:K.configData},null,8,["configData"])):K.configData.type=="table"?(vue.openBlock(),vue.createBlock(_sfc_main$d,{key:1,configData:K.configData},null,8,["configData"])):K.configData.type=="col"?(vue.openBlock(),vue.createBlock(_sfc_main$f,{key:2,configData:K.configData},null,8,["configData"])):(vue.openBlock(),vue.createBlock(_sfc_main$8,{configData:K.configData,key:K.configData.type},null,8,["configData"]))])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(Z,{key:"2",tab:"表单属性","force-render":""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$9)]),_:1})]),_:1},8,["activeKey"])}}}),index_vue_vue_type_style_index_0_scoped_7c3a19c6_lang="",formConfig=_export_sfc(_sfc_main$7,[["__scopeId","data-v-7c3a19c6"]]),_hoisted_1$3={class:"container"},_sfc_main$6=vue.defineComponent({__name:"Code",props:{code:{type:String,default:""},language:{type:String,default:""}},setup(K){const C=K,W=useFormStore();let H=vue.ref("");return vue.onMounted(()=>{C.code!=null?H.value=C.code:H.value=JSON.stringify([W.formData],null," ")}),(U,G)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createVNode(monacoEditor,{modelValue:vue.unref(H),"onUpdate:modelValue":G[0]||(G[0]=Z=>vue.isRef(H)?H.value=Z:H=Z),language:K.language,height:"500px"},null,8,["modelValue","language"])]))}});function generate(){const K=useFormStore();let C=`
|
|
1236
1236
|
\r`,W=`
|
|
1237
1237
|
`,H=generateHtml(K.formData.list),U=H.html;H.columns,C=generateTs(K.formData.config,H.columns);let G={body:U,script:C,style:W};return"<template>"+G.body+`</template>
|
|
1238
1238
|
\r<script lang="ts" setup>`+G.script+generateData.value.pagScript+`<\/script>
|
|
@@ -1317,7 +1317,7 @@ defineExpose({
|
|
|
1317
1317
|
`).forEach(function(Z){U=Z.indexOf(":"),W=Z.substring(0,U).trim().toLowerCase(),H=Z.substring(U+1).trim(),!(!W||C[W]&&ignoreDuplicateOf[W])&&(W==="set-cookie"?C[W]?C[W].push(H):C[W]=[H]:C[W]=C[W]?C[W]+", "+H:H)}),C},$internals=Symbol("internals");function normalizeHeader(K){return K&&String(K).trim().toLowerCase()}function normalizeValue(K){return K===!1||K==null?K:utils.isArray(K)?K.map(normalizeValue):String(K)}function parseTokens(K){const C=Object.create(null),W=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let H;for(;H=W.exec(K);)C[H[1]]=H[2];return C}const isValidHeaderName=K=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(K.trim());function matchHeaderValue(K,C,W,H,U){if(utils.isFunction(H))return H.call(this,C,W);if(U&&(C=W),!!utils.isString(C)){if(utils.isString(H))return C.indexOf(H)!==-1;if(utils.isRegExp(H))return H.test(C)}}function formatHeader(K){return K.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(C,W,H)=>W.toUpperCase()+H)}function buildAccessors(K,C){const W=utils.toCamelCase(" "+C);["get","set","has"].forEach(H=>{Object.defineProperty(K,H+W,{value:function(U,G,Z){return this[H].call(this,C,U,G,Z)},configurable:!0})})}class AxiosHeaders{constructor(C){C&&this.set(C)}set(C,W,H){const U=this;function G(X,Q,ee){const te=normalizeHeader(Q);if(!te)throw new Error("header name must be a non-empty string");const ie=utils.findKey(U,te);(!ie||U[ie]===void 0||ee===!0||ee===void 0&&U[ie]!==!1)&&(U[ie||Q]=normalizeValue(X))}const Z=(X,Q)=>utils.forEach(X,(ee,te)=>G(ee,te,Q));return utils.isPlainObject(C)||C instanceof this.constructor?Z(C,W):utils.isString(C)&&(C=C.trim())&&!isValidHeaderName(C)?Z(parseHeaders(C),W):C!=null&&G(W,C,H),this}get(C,W){if(C=normalizeHeader(C),C){const H=utils.findKey(this,C);if(H){const U=this[H];if(!W)return U;if(W===!0)return parseTokens(U);if(utils.isFunction(W))return W.call(this,U,H);if(utils.isRegExp(W))return W.exec(U);throw new TypeError("parser must be boolean|regexp|function")}}}has(C,W){if(C=normalizeHeader(C),C){const H=utils.findKey(this,C);return!!(H&&this[H]!==void 0&&(!W||matchHeaderValue(this,this[H],H,W)))}return!1}delete(C,W){const H=this;let U=!1;function G(Z){if(Z=normalizeHeader(Z),Z){const X=utils.findKey(H,Z);X&&(!W||matchHeaderValue(H,H[X],X,W))&&(delete H[X],U=!0)}}return utils.isArray(C)?C.forEach(G):G(C),U}clear(C){const W=Object.keys(this);let H=W.length,U=!1;for(;H--;){const G=W[H];(!C||matchHeaderValue(this,this[G],G,C,!0))&&(delete this[G],U=!0)}return U}normalize(C){const W=this,H={};return utils.forEach(this,(U,G)=>{const Z=utils.findKey(H,G);if(Z){W[Z]=normalizeValue(U),delete W[G];return}const X=C?formatHeader(G):String(G).trim();X!==G&&delete W[G],W[X]=normalizeValue(U),H[X]=!0}),this}concat(...C){return this.constructor.concat(this,...C)}toJSON(C){const W=Object.create(null);return utils.forEach(this,(H,U)=>{H!=null&&H!==!1&&(W[U]=C&&utils.isArray(H)?H.join(", "):H)}),W}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([C,W])=>C+": "+W).join(`
|
|
1318
1318
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(C){return C instanceof this?C:new this(C)}static concat(C,...W){const H=new this(C);return W.forEach(U=>H.set(U)),H}static accessor(C){const H=(this[$internals]=this[$internals]={accessors:{}}).accessors,U=this.prototype;function G(Z){const X=normalizeHeader(Z);H[X]||(buildAccessors(U,Z),H[X]=!0)}return utils.isArray(C)?C.forEach(G):G(C),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils.reduceDescriptors(AxiosHeaders.prototype,({value:K},C)=>{let W=C[0].toUpperCase()+C.slice(1);return{get:()=>K,set(H){this[W]=H}}}),utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(K,C){const W=this||defaults$1,H=C||W,U=AxiosHeaders$1.from(H.headers);let G=H.data;return utils.forEach(K,function(X){G=X.call(W,G,U.normalize(),C?C.status:void 0)}),U.normalize(),G}function isCancel(K){return!!(K&&K.__CANCEL__)}function CanceledError(K,C,W){AxiosError.call(this,K??"canceled",AxiosError.ERR_CANCELED,C,W),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(K,C,W){const H=W.config.validateStatus;!W.status||!H||H(W.status)?K(W):C(new AxiosError("Request failed with status code "+W.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(W.status/100)-4],W.config,W.request,W))}const cookies=platform.isStandardBrowserEnv?function(){return{write:function(W,H,U,G,Z,X){const Q=[];Q.push(W+"="+encodeURIComponent(H)),utils.isNumber(U)&&Q.push("expires="+new Date(U).toGMTString()),utils.isString(G)&&Q.push("path="+G),utils.isString(Z)&&Q.push("domain="+Z),X===!0&&Q.push("secure"),document.cookie=Q.join("; ")},read:function(W){const H=document.cookie.match(new RegExp("(^|;\\s*)("+W+")=([^;]*)"));return H?decodeURIComponent(H[3]):null},remove:function(W){this.write(W,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(K){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(K)}function combineURLs(K,C){return C?K.replace(/\/+$/,"")+"/"+C.replace(/^\/+/,""):K}function buildFullPath(K,C){return K&&!isAbsoluteURL(C)?combineURLs(K,C):C}const isURLSameOrigin=platform.isStandardBrowserEnv?function(){const C=/(msie|trident)/i.test(navigator.userAgent),W=document.createElement("a");let H;function U(G){let Z=G;return C&&(W.setAttribute("href",Z),Z=W.href),W.setAttribute("href",Z),{href:W.href,protocol:W.protocol?W.protocol.replace(/:$/,""):"",host:W.host,search:W.search?W.search.replace(/^\?/,""):"",hash:W.hash?W.hash.replace(/^#/,""):"",hostname:W.hostname,port:W.port,pathname:W.pathname.charAt(0)==="/"?W.pathname:"/"+W.pathname}}return H=U(window.location.href),function(Z){const X=utils.isString(Z)?U(Z):Z;return X.protocol===H.protocol&&X.host===H.host}}():function(){return function(){return!0}}();function parseProtocol(K){const C=/^([-+\w]{1,25})(:?\/\/|:)/.exec(K);return C&&C[1]||""}function speedometer(K,C){K=K||10;const W=new Array(K),H=new Array(K);let U=0,G=0,Z;return C=C!==void 0?C:1e3,function(Q){const ee=Date.now(),te=H[G];Z||(Z=ee),W[U]=Q,H[U]=ee;let ie=G,ne=0;for(;ie!==U;)ne+=W[ie++],ie=ie%K;if(U=(U+1)%K,U===G&&(G=(G+1)%K),ee-Z<C)return;const oe=te&&ee-te;return oe?Math.round(ne*1e3/oe):void 0}}function progressEventReducer(K,C){let W=0;const H=speedometer(50,250);return U=>{const G=U.loaded,Z=U.lengthComputable?U.total:void 0,X=G-W,Q=H(X),ee=G<=Z;W=G;const te={loaded:G,total:Z,progress:Z?G/Z:void 0,bytes:X,rate:Q||void 0,estimated:Q&&Z&&ee?(Z-G)/Q:void 0,event:U};te[C?"download":"upload"]=!0,K(te)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(K){return new Promise(function(W,H){let U=K.data;const G=AxiosHeaders$1.from(K.headers).normalize(),Z=K.responseType;let X;function Q(){K.cancelToken&&K.cancelToken.unsubscribe(X),K.signal&&K.signal.removeEventListener("abort",X)}let ee;utils.isFormData(U)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv?G.setContentType(!1):G.getContentType(/^\s*multipart\/form-data/)?utils.isString(ee=G.getContentType())&&G.setContentType(ee.replace(/^\s*(multipart\/form-data);+/,"$1")):G.setContentType("multipart/form-data"));let te=new XMLHttpRequest;if(K.auth){const re=K.auth.username||"",se=K.auth.password?unescape(encodeURIComponent(K.auth.password)):"";G.set("Authorization","Basic "+btoa(re+":"+se))}const ie=buildFullPath(K.baseURL,K.url);te.open(K.method.toUpperCase(),buildURL(ie,K.params,K.paramsSerializer),!0),te.timeout=K.timeout;function ne(){if(!te)return;const re=AxiosHeaders$1.from("getAllResponseHeaders"in te&&te.getAllResponseHeaders()),ae={data:!Z||Z==="text"||Z==="json"?te.responseText:te.response,status:te.status,statusText:te.statusText,headers:re,config:K,request:te};settle(function(le){W(le),Q()},function(le){H(le),Q()},ae),te=null}if("onloadend"in te?te.onloadend=ne:te.onreadystatechange=function(){!te||te.readyState!==4||te.status===0&&!(te.responseURL&&te.responseURL.indexOf("file:")===0)||setTimeout(ne)},te.onabort=function(){te&&(H(new AxiosError("Request aborted",AxiosError.ECONNABORTED,K,te)),te=null)},te.onerror=function(){H(new AxiosError("Network Error",AxiosError.ERR_NETWORK,K,te)),te=null},te.ontimeout=function(){let se=K.timeout?"timeout of "+K.timeout+"ms exceeded":"timeout exceeded";const ae=K.transitional||transitionalDefaults;K.timeoutErrorMessage&&(se=K.timeoutErrorMessage),H(new AxiosError(se,ae.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,K,te)),te=null},platform.isStandardBrowserEnv){const re=(K.withCredentials||isURLSameOrigin(ie))&&K.xsrfCookieName&&cookies.read(K.xsrfCookieName);re&&G.set(K.xsrfHeaderName,re)}U===void 0&&G.setContentType(null),"setRequestHeader"in te&&utils.forEach(G.toJSON(),function(se,ae){te.setRequestHeader(ae,se)}),utils.isUndefined(K.withCredentials)||(te.withCredentials=!!K.withCredentials),Z&&Z!=="json"&&(te.responseType=K.responseType),typeof K.onDownloadProgress=="function"&&te.addEventListener("progress",progressEventReducer(K.onDownloadProgress,!0)),typeof K.onUploadProgress=="function"&&te.upload&&te.upload.addEventListener("progress",progressEventReducer(K.onUploadProgress)),(K.cancelToken||K.signal)&&(X=re=>{te&&(H(!re||re.type?new CanceledError(null,K,te):re),te.abort(),te=null)},K.cancelToken&&K.cancelToken.subscribe(X),K.signal&&(K.signal.aborted?X():K.signal.addEventListener("abort",X)));const oe=parseProtocol(ie);if(oe&&platform.protocols.indexOf(oe)===-1){H(new AxiosError("Unsupported protocol "+oe+":",AxiosError.ERR_BAD_REQUEST,K));return}te.send(U||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils.forEach(knownAdapters,(K,C)=>{if(K){try{Object.defineProperty(K,"name",{value:C})}catch{}Object.defineProperty(K,"adapterName",{value:C})}});const renderReason=K=>`- ${K}`,isResolvedHandle=K=>utils.isFunction(K)||K===null||K===!1,adapters={getAdapter:K=>{K=utils.isArray(K)?K:[K];const{length:C}=K;let W,H;const U={};for(let G=0;G<C;G++){W=K[G];let Z;if(H=W,!isResolvedHandle(W)&&(H=knownAdapters[(Z=String(W)).toLowerCase()],H===void 0))throw new AxiosError(`Unknown adapter '${Z}'`);if(H)break;U[Z||"#"+G]=H}if(!H){const G=Object.entries(U).map(([X,Q])=>`adapter ${X} `+(Q===!1?"is not supported by the environment":"is not available in the build"));let Z=C?G.length>1?`since :
|
|
1319
1319
|
`+G.map(renderReason).join(`
|
|
1320
|
-
`):" "+renderReason(G[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+Z,"ERR_NOT_SUPPORT")}return H},adapters:knownAdapters};function throwIfCancellationRequested(K){if(K.cancelToken&&K.cancelToken.throwIfRequested(),K.signal&&K.signal.aborted)throw new CanceledError(null,K)}function dispatchRequest(K){return throwIfCancellationRequested(K),K.headers=AxiosHeaders$1.from(K.headers),K.data=transformData.call(K,K.transformRequest),["post","put","patch"].indexOf(K.method)!==-1&&K.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(K.adapter||defaults$1.adapter)(K).then(function(H){return throwIfCancellationRequested(K),H.data=transformData.call(K,K.transformResponse,H),H.headers=AxiosHeaders$1.from(H.headers),H},function(H){return isCancel(H)||(throwIfCancellationRequested(K),H&&H.response&&(H.response.data=transformData.call(K,K.transformResponse,H.response),H.response.headers=AxiosHeaders$1.from(H.response.headers))),Promise.reject(H)})}const headersToObject=K=>K instanceof AxiosHeaders$1?K.toJSON():K;function mergeConfig(K,C){C=C||{};const W={};function H(ee,te,ie){return utils.isPlainObject(ee)&&utils.isPlainObject(te)?utils.merge.call({caseless:ie},ee,te):utils.isPlainObject(te)?utils.merge({},te):utils.isArray(te)?te.slice():te}function U(ee,te,ie){if(utils.isUndefined(te)){if(!utils.isUndefined(ee))return H(void 0,ee,ie)}else return H(ee,te,ie)}function G(ee,te){if(!utils.isUndefined(te))return H(void 0,te)}function Z(ee,te){if(utils.isUndefined(te)){if(!utils.isUndefined(ee))return H(void 0,ee)}else return H(void 0,te)}function X(ee,te,ie){if(ie in C)return H(ee,te);if(ie in K)return H(void 0,ee)}const Q={url:G,method:G,data:G,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,responseEncoding:Z,validateStatus:X,headers:(ee,te)=>U(headersToObject(ee),headersToObject(te),!0)};return utils.forEach(Object.keys(Object.assign({},K,C)),function(te){const ie=Q[te]||U,ne=ie(K[te],C[te],te);utils.isUndefined(ne)&&ie!==X||(W[te]=ne)}),W}const VERSION="1.5.1",validators$1={};["object","boolean","number","function","string","symbol"].forEach((K,C)=>{validators$1[K]=function(H){return typeof H===K||"a"+(C<1?"n ":" ")+K}});const deprecatedWarnings={};validators$1.transitional=function(C,W,H){function U(G,Z){return"[Axios v"+VERSION+"] Transitional option '"+G+"'"+Z+(H?". "+H:"")}return(G,Z,X)=>{if(C===!1)throw new AxiosError(U(Z," has been removed"+(W?" in "+W:"")),AxiosError.ERR_DEPRECATED);return W&&!deprecatedWarnings[Z]&&(deprecatedWarnings[Z]=!0,console.warn(U(Z," has been deprecated since v"+W+" and will be removed in the near future"))),C?C(G,Z,X):!0}};function assertOptions(K,C,W){if(typeof K!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const H=Object.keys(K);let U=H.length;for(;U-- >0;){const G=H[U],Z=C[G];if(Z){const X=K[G],Q=X===void 0||Z(X,G,K);if(Q!==!0)throw new AxiosError("option "+G+" must be "+Q,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(W!==!0)throw new AxiosError("Unknown option "+G,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(C){this.defaults=C,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(C,W){typeof C=="string"?(W=W||{},W.url=C):W=C||{},W=mergeConfig(this.defaults,W);const{transitional:H,paramsSerializer:U,headers:G}=W;H!==void 0&&validator.assertOptions(H,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),U!=null&&(utils.isFunction(U)?W.paramsSerializer={serialize:U}:validator.assertOptions(U,{encode:validators.function,serialize:validators.function},!0)),W.method=(W.method||this.defaults.method||"get").toLowerCase();let Z=G&&utils.merge(G.common,G[W.method]);G&&utils.forEach(["delete","get","head","post","put","patch","common"],re=>{delete G[re]}),W.headers=AxiosHeaders$1.concat(Z,G);const X=[];let Q=!0;this.interceptors.request.forEach(function(se){typeof se.runWhen=="function"&&se.runWhen(W)===!1||(Q=Q&&se.synchronous,X.unshift(se.fulfilled,se.rejected))});const ee=[];this.interceptors.response.forEach(function(se){ee.push(se.fulfilled,se.rejected)});let te,ie=0,ne;if(!Q){const re=[dispatchRequest.bind(this),void 0];for(re.unshift.apply(re,X),re.push.apply(re,ee),ne=re.length,te=Promise.resolve(W);ie<ne;)te=te.then(re[ie++],re[ie++]);return te}ne=X.length;let oe=W;for(ie=0;ie<ne;){const re=X[ie++],se=X[ie++];try{oe=re(oe)}catch(ae){se.call(this,ae);break}}try{te=dispatchRequest.call(this,oe)}catch(re){return Promise.reject(re)}for(ie=0,ne=ee.length;ie<ne;)te=te.then(ee[ie++],ee[ie++]);return te}getUri(C){C=mergeConfig(this.defaults,C);const W=buildFullPath(C.baseURL,C.url);return buildURL(W,C.params,C.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function(C){Axios.prototype[C]=function(W,H){return this.request(mergeConfig(H||{},{method:C,url:W,data:(H||{}).data}))}}),utils.forEach(["post","put","patch"],function(C){function W(H){return function(G,Z,X){return this.request(mergeConfig(X||{},{method:C,headers:H?{"Content-Type":"multipart/form-data"}:{},url:G,data:Z}))}}Axios.prototype[C]=W(),Axios.prototype[C+"Form"]=W(!0)});const Axios$1=Axios;class CancelToken{constructor(C){if(typeof C!="function")throw new TypeError("executor must be a function.");let W;this.promise=new Promise(function(G){W=G});const H=this;this.promise.then(U=>{if(!H._listeners)return;let G=H._listeners.length;for(;G-- >0;)H._listeners[G](U);H._listeners=null}),this.promise.then=U=>{let G;const Z=new Promise(X=>{H.subscribe(X),G=X}).then(U);return Z.cancel=function(){H.unsubscribe(G)},Z},C(function(G,Z,X){H.reason||(H.reason=new CanceledError(G,Z,X),W(H.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(C){if(this.reason){C(this.reason);return}this._listeners?this._listeners.push(C):this._listeners=[C]}unsubscribe(C){if(!this._listeners)return;const W=this._listeners.indexOf(C);W!==-1&&this._listeners.splice(W,1)}static source(){let C;return{token:new CancelToken(function(U){C=U}),cancel:C}}}const CancelToken$1=CancelToken;function spread(K){return function(W){return K.apply(null,W)}}function isAxiosError(K){return utils.isObject(K)&&K.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([K,C])=>{HttpStatusCode[C]=K});const HttpStatusCode$1=HttpStatusCode;function createInstance(K){const C=new Axios$1(K),W=bind(Axios$1.prototype.request,C);return utils.extend(W,Axios$1.prototype,C,{allOwnKeys:!0}),utils.extend(W,C,null,{allOwnKeys:!0}),W.create=function(U){return createInstance(mergeConfig(K,U))},W}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(C){return Promise.all(C)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=K=>formDataToJSON(utils.isHTMLForm(K)?new FormData(K):K),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const axios$1=axios;var stringTag="[object String]";function isString(K){return typeof K=="string"||!isArray$2(K)&&isObjectLike(K)&&baseGetTag(K)==stringTag}var RequestEnum=(K=>(K.GET="GET",K.POST="POST",K.PUT="PUT",K.DELETE="DELETE",K))(RequestEnum||{}),ContentTypeEnum=(K=>(K.JSON="application/json;charset=UTF-8",K.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",K.FORM_DATA="multipart/form-data;charset=UTF-8",K))(ContentTypeEnum||{});class RequestHttp{constructor(C){Ge(this,"axiosInstance");Ge(this,"options");this.options=C,this.axiosInstance=axios$1.create(C),this.setupInterceptors()}createAxios(C){this.axiosInstance=axios$1.create(C)}setupInterceptors(){this.axiosInstance.interceptors.request.use(C=>(C=this.beforeRequest(C),this.requestInterceptors(C)),C=>Promise.reject(C)),this.axiosInstance.interceptors.response.use(C=>{if(C.status==200)return Promise.resolve(C);this.handleErrorData(C.data)},C=>{this.handleErrorData(C)})}beforeRequest(C){var U;const W=C.params||{},H=C.data||!1;return((U=C.method)==null?void 0:U.toUpperCase())==RequestEnum.GET?isString(W)&&(C.url=C.url+W,C.params=void 0):isString(W)?(C.data=W,C.params=void 0):C.data?C.data=H:C.data=W,C}requestInterceptors(C){var W;if((W=C.requestOptions)!=null&&W.withToken){const H="";C&&C.headers&&(C.headers.Authorization||(C.headers.Authorization=H))}return C}handleErrorData(C){switch(C.response.status){case 400:break;case 401:break;case 500:break;case 402:return}}goLogin(){}request(C,W){let H=cloneDeep(C);return this.options,H.requestOptions=W,new Promise((U,G)=>{this.axiosInstance.request(H).then(Z=>{try{const{data:X}=Z;X.data==null?U(X):U(X.data);return}catch(X){G(X)}}).catch(Z=>{G(Z)})})}get(C,W){return this.request({...C,method:RequestEnum.GET},W)}post(C,W){return this.request({...C,method:RequestEnum.POST},W)}}function createAxios(){const K="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ3b3Jrc3BhY2VfaWQiOiJlM2RlYTBmNS0zN2YyLTRkNzktYWU1OC00OTBhZjMyMjgwNjkiLCJzdWIiOiJDbG91ZEFwaVNhbXBsZSIsInVzZXJfdHlwZSI6IjEiLCJuYmYiOjE2NzU5MDk5NzMsImxvZyI6IkxvZ2dlcltjb20uZGppLnNhbXBsZS5jb21tb24ubW9kZWwuQ3VzdG9tQ2xhaW1dIiwiaXNzIjoiREpJIiwiaWQiOiJhMTU1OWU3Yy04ZGQ4LTQ3ODAtYjk1Mi0xMDBjYzQ3OTdkYTIiLCJleHAiOjE2NzU5OTYzNzMsImlhdCI6MTY3NTkwOTk3MywidXNlcm5hbWUiOiJhZG1pblBDIn0.3Bp-cnfrvwkxXYeOoZXIrhZmffoyCtIFrvw9uWGwiec";return new RequestHttp({timeout:10*1e3,headers:{"Content-Type":ContentTypeEnum.JSON,"x-auth-token":K}})}const defHttp=createAxios();function validateRequired(K,C){if(K!==void 0){if(typeof K=="string"){if(K.match(/^\s*$/))return C}else if(Array.isArray(K))return K.filter(H=>H&&H.trim()).length?"":C;return""}else return C}function validateReg(K,C,W){let H,U=!0;switch(K){case"number":H=/^-?\d+(\.?\d+|\d?)$/;break;case"email":H=/^([\w]+\.*)([\w]+)@[\w]+\.\w{3}(\.\w{2}|)$/;break;case"lxdh":H=/^1(3|4|5|7|8)\d{9}$|^(0\d{2}-\d{8}(-\d{1,4})?)|(0\d{3}-\d{7,8}(-\d{1,4})?)$/;break}return H&&!W.match(H)&&(U=!1),U?"":C}let validateInfos=vue.reactive({});async function getData(K){const C="/imaginform/zrzy-form/generate/select";await defHttp.post({url:C,data:{formId:14,param:{code:"ceshi_ws"}}},{withToken:!1}).then(W=>{K.value=W.result})}function saveFormData(K){let C=[];for(let W=0;W<K.length;W++){let H=K[W].onSubmit();H&&C.push(H)}C.length==K.length?(console.log("校验成功!!"),console.log("res!!",C)):message.warning("请检查填写")}function onSubmitForm(K){debugger;let C,W=K.querySelectorAll("[write-field]");console.log("formDom",W);for(let H=0;H<W.length;H++)validateFun(W[H]);if(C=isValidateSuccess(),C){console.log("校验成功");let H={};return H=getUpdateData(W),H}else return!1}function getUpdateData(K){let C={};for(let W=0;W<K.length;W++){let H=getDomValue(K[W]);const G=getDomAttribute(K[W],"write-field").split(";");for(let Z=0;Z<G.length;Z++){const X=G[Z].split("."),Q=X[0];C[Q]=C[Q]?C[Q]:{},C[Q][X[1]]=H}}return C}function getDomValue(K,C,W){let H;if(W)H=W;else if(C)H=K.target.value;else{let U=K.classList;if(U.contains("ant-select"))H=K.__vueParentComponent.parent.props.value;else if(U.contains("ant-checkbox-group")||U.contains("ant-radio-group"))H=K.__vueParentComponent.props.value;else if(U.contains("ant-picker-range-custom")){let G=Array.from(K.childNodes).find(X=>X.classList&&X.classList.contains("ant-picker-range"));H=Array.from(G.childNodes).filter(X=>X.classList&&X.classList.contains("ant-picker-input")).map(X=>X.childNodes[0].value)}else if(U.contains("ant-picker-custom")){let G=Array.from(K.childNodes).find(X=>X.classList&&X.classList.contains("ant-picker"));H=Array.from(G.childNodes).find(X=>X.classList&&X.classList.contains("ant-picker-input")).childNodes[0].value}else H=K.value}return H}function getDomAttribute(K,C,W){let H;if(W){let U=K.target.classList,G=K.target.parentNode.classList;U.contains("ant-select-selection-search-input")||G.contains("ant-picker-input")?H=K.target.parentNode.parentNode.parentNode.__vnode.props[C]:H=K.target.__vnode.props[C]}else H=K.target?K.target.__vnode.props[C]:K.__vnode.props[C];return H}function validateFun(K,C,W){let H=getDomValue(K,C,W),U=getDomAttribute(K,"rules",C),G=getDomAttribute(K,"write-field",C),Z="";if(U&&G){for(let X=0;X<U.length;X++)U[X].type=="required"&&(Z+=validateRequired(H,U[X].msg)),Z.length==0&&(Z+=validateReg(U[X].type,U[X].msg,H));validateInfos[G]||(validateInfos[G]={}),Z.length>0?(validateInfos[G].validateStatus="error",validateInfos[G].help=Z):(validateInfos[G].validateStatus="validating",validateInfos[G].help="")}}function isValidateSuccess(){let K=!0;for(const C in validateInfos)if(validateInfos[C].validateStatus=="error"){K=!1;break}return K}const _sfc_main$5=vue.defineComponent({__name:"GenerateForm",setup(__props){const formStore=useFormStore();let list=vue.ref(formStore.formData.config.eventScript);const generateData=generateHtml(formStore.formData.list),columns=[...generateData.columns];let _viewData=getViewData(),viewData=vue.ref(_viewData),demoRefs=[];vue.onBeforeUpdate(()=>{demoRefs=[]});const setRef=K=>{K&&demoRefs.push(K)};function saveData(){saveFormData(demoRefs)}const generateVue3=vue.defineComponent({template:generateData.html,props:{message:String},setup(){let formData=vue.ref([]),datalist=vue.ref([]),formRef=vue.ref();function onSubmit(){return onSubmitForm(formRef.value)}getData(viewData);const tableData=formStore.formData.list.filter(K=>K.type=="table"),ilength=tableData.length;let pagination;ilength>0&&tableData[0].options.pagination&&(pagination=vue.ref({total:0,current:1,pageSize:tableData[0].options.pageSize}));const events={};return generateTs(),{formData,onSubmit,formRef,validateFun,validateInfos,pagination,datalist,columns,viewData,...events,defHttp,onChange};function onChange(K,C){pagination.value=K,C()}function generateTs(){for(let K=0;K<list.value.length;K++){const C=list.value[K];events[C.name]=newFunction(C)}}function newFunction(_data){return _data.param!=""?_params=>{eval(_data.func)}:()=>{eval(_data.func)}}}});return(K,C)=>{const W=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(generateVue3),{ref:setRef}),vue.createVNode(W,{type:"Default",onClick:saveData},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})],64)}}}),GenerateForm_vue_vue_type_style_index_0_lang="",testjson=[{list:[{id:"bb80da45-5fe1-c4c5-f2e5-ceef1b42057e",type:"header",name:"规划选址信息",icon:"header",required:!1,extended:"",font:"14",align:"left",color:"#000",cssextended:"",classname:"title-css3",key:"3d4b810e-6a4e-9b55-036c-dfd6c5fc0629"},{type:"grid",icon:"grid",columns:[{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ccbfb594-9c37-f739-825f-6e075e0e9151",type:"input",name:"预审选址意见书编号",icon:"input",required:!0,width:"100%",extended:"",key:"61365b91-4265-ac85-b415-a2829ad803b9"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"06dc21cb-2332-3bf4-18bd-e2be587e8382",type:"input",name:"项目名称",icon:"input",required:!1,width:"100%",extended:"",key:"ee7d71e2-b039-96dd-8b16-19701c27a628"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"7678a185-6f16-75fa-c690-6c9397cb8c6d",type:"input",name:"项目代码",icon:"input",required:!1,width:"100%",extended:"",key:"b5cf50c2-6a90-3f69-57d2-055542c5a82f"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"申请单位",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:16,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"建设单位名称(发改立项)",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"批准类型",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"385800a7-3fee-7020-ad91-d4f0e9d23e86",type:"input",name:"项目建设依据",icon:"input",required:!1,width:"100%",extended:"",key:"57585e89-b95c-46b0-9ea9-ba8444384095"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"审批/核准/备案批准单位",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"b6664f6e-d862-7054-3679-32b03d90bb56",type:"input",name:"依据文件名",icon:"input",required:!1,width:"100%",extended:"",key:"3432c0b7-6b17-2189-8bc9-f47854523637"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"是否已核查涉密数据",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"2661e1c4-b873-40f3-acbd-24c41b56f7f8",type:"input",name:"依据文号",icon:"input",required:!1,width:"100%",extended:"",key:"39adf257-def7-2472-e070-9b8f72c58347"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"所在区域",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:16,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"项目拟选址",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"规划用地性质",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"规划用地性质代码",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"作废旧选址编号",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:24,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"拟建设规模",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"土地用途名称(只选主用途)",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"1dc21a02-5803-23fe-3cd5-ebbaa200e5c7",type:"input",name:"计划永久基本农田面积",icon:"input",required:!1,width:"100%",extended:"",key:"a197bd03-e331-950b-0dee-fe38ee8514fe"},{id:"f1b7220c-55ca-8ad7-cc7f-d2aa00d7016c",type:"input",name:"占用水田面积",icon:"input",required:!1,width:"100%",extended:"",key:"5e29f05c-9d9f-8fa0-fe8b-bd296a58918e"},{id:"80ec0c50-7350-b10b-9a71-6cba2790bf65",type:"input",name:"电子监管号",icon:"input",required:!1,width:"100%",extended:"",key:"381bbb28-dbbc-188f-01ce-c2e35e041ee3"},{id:"04b903dc-2edb-6d53-e7f9-b5d3b213eb37",type:"input",name:"国民经济行业分类",icon:"input",required:!1,width:"100%",extended:"",key:"25306973-aea5-d114-1c2a-3487b998fe13"},{id:"c497e027-b00e-33b2-e94d-d791f8272c9d",type:"input",name:"项目资金属性",icon:"input",required:!1,width:"100%",extended:"",key:"5dd80671-9695-7e92-c415-80ab78514041"},{id:"f245b738-848a-3fa4-a042-ccad6e3aff54",type:"input",name:"业务办理类型",icon:"input",required:!1,width:"100%",extended:"",key:"d0a04ae7-be43-fd1c-b367-e0ec58cfcff0"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"土地用途名称(只选主用途)",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"占用永久基本农田面积",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"a1d36bce-c42e-f4fa-4e18-e9ae9d778e74",type:"input",name:"建设单位统一信用代码",icon:"input",required:!1,width:"100%",extended:"",key:"bb0d1d32-6ad3-42d4-a73f-14abb35c0470"},{id:"3d24c0c6-7dba-db3d-d9c9-4c8b459495d9",type:"input",name:"是否跨区标识",icon:"input",required:!1,width:"100%",extended:"",key:"ed0879b4-37df-73b9-86b7-29c402cd625f"},{id:"efb55902-7d9a-cc4a-c920-e1e89641d74a",type:"input",name:"国民经济行业分类代码",icon:"input",required:!1,width:"100%",extended:"",key:"e1c4981a-62ad-d413-ac98-e8931f9d7d63"},{id:"591e9234-b1df-18d4-d7dc-19f91e973aa4",type:"input",name:"建设性质",icon:"input",required:!1,width:"100%",extended:"",key:"2acbf76b-501d-9c96-5a51-3954c67d9d7b"},{id:"cb65fbdc-66b3-7561-5d67-1d4a4f4011b3",type:"input",name:"备注栏",icon:"input",required:!1,width:"100%",extended:"",key:"c463cbb2-1f57-a17f-b6ad-e791cb889a1c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"项目建设依据1",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"4f060692-1036-66ea-690c-07d5ea18f691",type:"input",name:"占用生态保护线面积",icon:"input",required:!1,width:"100%",extended:"",key:"8725bde2-1e61-73f6-3f91-50339343be53"},{id:"da601264-b06f-b017-922f-aceb59b14c53",type:"input",name:"建设单位统一信用代码",icon:"input",required:!1,width:"100%",extended:"",key:"e0e86b5d-fecb-d5ce-16bc-9625e22f3234"},{id:"d0bb1bc6-06c8-589a-90ff-1dcb256a37a1",type:"radio",name:"该建设项目使用地质灾害区域评估成果",icon:"radio",required:!1,extended:"",options:[{label:"是",value:"是"},{label:"否",value:"否"}],key:"b9d77f53-31bb-37ac-3652-314b5d62740d",defaultValue:"是"},{id:"31f438d4-6d50-1c2e-8782-995fbc24b299",type:"input",name:"是否重点项目",icon:"input",required:!1,width:"100%",extended:"",key:"12847c29-ee42-3901-da7a-dba255b0bced"},{id:"86b8de93-8c88-08cc-8eb7-e7eab59339ab",type:"input",name:"选址许可级别",icon:"input",required:!1,width:"100%",extended:"",key:"f7b991d4-17fb-3e84-c73c-8d2b407076dd"},{id:"8197fa13-fc31-7529-52e0-5b300f22a974",type:"input",name:"证件类型",icon:"input",required:!1,width:"100%",extended:"",key:"31043cd5-80f2-9b61-a461-5782a29b92f0"}]},{type:"col",key:"",options:{span:24,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"50e2cb61-895c-9438-63c1-2153609be9e3",type:"input",name:"证件号码",icon:"input",required:!1,width:"100%",extended:"",key:"3e81948b-351c-1530-c264-9bd342859582"},{id:"f1037d69-b0a2-ef96-35bd-5057d34fdc6b",type:"input",name:"能源需求量及供应方式",icon:"input",required:!1,width:"100%",extended:"",key:"bf170b81-41e6-81d6-e73d-014ff3f0354d"},{id:"777f63e2-9bc9-9945-49f2-752cf08bb07b",type:"input",name:"运输量及运输方式",icon:"input",required:!1,width:"100%",extended:"",key:"8fd77711-0fb4-a21d-9d69-84d9dfb7c6de"},{id:"c72ba21f-eb90-5a39-1a9a-6b419576b3a1",type:"input",name:"“三废”排放量及运输方式",icon:"input",required:!1,width:"100%",extended:"",key:"c583df60-df07-cf24-9d71-8a5d5d25823b"},{id:"a9dc4619-1dad-eb40-fcc0-24215b301040",type:"textarea",name:"变更(延期)原因",icon:"textarea",required:!1,width:"100%",extended:"",rows:"2",key:"4ce04292-f7b7-ad9a-f50f-07f809071973"}]}],options:{gutter:0,justify:"start",align:"top",customClass:"",hidden:!1,flex:!0,responsive:!0,remoteFunc:"",remoteOption:"",tableColumn:!1,subform:!1},name:"栅格布局",key:"fa0a97bc-eefe-ef44-3f64-c0abbae3ce6e",model:"",id:"d55ff071-4835-331b-9c97-801e66601d75"},{id:"0d48a24b-3a07-9f4c-d05b-f31f782b55b6",type:"header",name:"土地利用现状信息",icon:"header",required:!1,extended:"",font:"14",align:"left",color:"#000",cssextended:"",classname:"title-css3",key:"bc0c010b-6ef3-0fe4-c506-8508d55ab081"},{type:"grid",icon:"grid",columns:[{type:"col",key:"",options:{span:24,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"594f2d23-31a0-15d5-4b43-efcb1443a7f9",type:"input",name:"调查现状年份",icon:"input",required:!1,width:"100%",extended:"",key:"755bbf4d-4968-1aea-a756-5091787f204b"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ea912697-2e24-7001-f9a2-ebb37ba1744d",type:"input",name:"拟用地总面积",icon:"input",required:!1,width:"100%",extended:"",key:"80fb71d2-6288-c2d9-f872-ad79ee9b3f96",prefix:"",suffix:"㎡"},{id:"a013e65a-1943-8fa8-5f1b-972a94343aac",type:"input",name:"园地",icon:"input",required:!1,width:"100%",extended:"",key:"6f212cb1-51e4-eff6-1dba-36aaa84dfba6",suffix:"㎡"},{id:"b0aa9dbd-246a-0100-6855-cd2b81a6ada9",type:"input",name:"建设用地",icon:"input",required:!1,width:"100%",extended:"",key:"193d586e-acf7-4204-9ce0-8052a1d31ce6",suffix:"㎡"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"6cfdc614-a369-ce4f-a883-3c1a6f4e70e7",type:"input",name:"其中农用地",icon:"input",required:!1,width:"100%",extended:"",key:"33e78e68-8ef6-758f-dff8-fce05091b8af",suffix:"㎡"},{id:"9d430b52-2c95-4ee9-1df7-eb3b254c09ba",type:"input",name:"农用地",icon:"input",required:!1,width:"100%",extended:"",key:"ed4c1f83-4741-d8b6-1b7b-f8157b172169",suffix:"㎡"},{id:"75c26878-363f-3847-ac54-ec43f237de50",type:"input",name:"未利用地",icon:"input",required:!1,width:"100%",extended:"",key:"d0e1c73f-ebbe-03bd-8b6c-2318af312c32",suffix:"㎡"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"fbdce3ad-d806-3329-d9ef-6fafd95c4d23",type:"input",name:"其中耕地",icon:"input",required:!1,width:"100%",extended:"",key:"1cd9cde3-792a-0de6-9b00-839bffc54c54",suffix:"㎡"},{id:"f02daa8d-5bc6-4783-fe18-fb34b2ecc4a7",type:"input",name:"其他农用地",icon:"input",required:!1,width:"100%",extended:"",key:"7cf118eb-b8e2-9287-1634-d87313d19537",suffix:"㎡"},{id:"8cdfb92d-f810-8356-5646-36bbe2529feb",type:"input",name:"围填海",icon:"input",required:!1,width:"100%",extended:"",key:"d231d4e4-1422-9466-1294-ddf2fdabc6b6",suffix:"㎡"}]}],options:{gutter:0,justify:"start",align:"top",customClass:"",hidden:!1,flex:!0,responsive:!0,remoteFunc:"",remoteOption:"",tableColumn:!1,subform:!1},name:"栅格布局",key:"c555b2e7-3d98-e300-df3a-59bbfdf8d90c",model:"",id:"8918cdc9-6583-5cda-4d6e-187b3a81c770"}],config:{layout:"horizontal",baseScript:"",dataSource:[],eventScript:[{key:"base",name:"全局变量定义",func:"// const a=1",param:""},{key:"mounted002",name:"mounted",func:"console.info('new fun')",param:""}]}}],_hoisted_1$2={class:"flex-div"},_sfc_main$4=vue.defineComponent({__name:"Header",props:{formId:{type:Number,default:14}},setup(K){const C=K,W=useFormStore();storeToRefs(W);const H=vue.ref(!1),U=vue.ref(!1),G=()=>{H.value=!0},Z=[{icon:"preview",title:"预览",type:"preview"},{icon:"json",title:"json",type:"json"},{icon:"ing",title:"测试数据",type:"ceshi"},{icon:"clear",title:"清除",type:"clear"},{icon:"code",title:"代码",type:"code"},{icon:"save",title:"保存",type:"save"}];let X=vue.ref(),Q=vue.ref("json");function ee(se){switch(se){case"json":X.value=null,Q.value="json",G();break;case"code":Q.value="html",ne();break;case"preview":U.value=!0;break;case"clear":te();break;case"save":re();break;default:ie();break}}const te=()=>{Modal.confirm({title:"确定清除当前表单吗?",icon:vue.createVNode(ExclamationCircleOutlined$1),content:"清除后将不能找回",onOk(){W.formData.list=[]},onCancel(){}})};function ie(){const se=testjson[0];W.setFormData1(se)}function ne(){X.value=generate(),vue.createVNode("h1",{class:"hello"},"HelloWorld"),H.value=!0}const oe=se=>{H.value=!1},re=()=>{const se="/magicapi/zrzy-form/magic/form/form/edit";defHttp.post({url:se,data:{id:C.formId,content:JSON.stringify(W.formData)}},{withToken:!1}).then(ae=>{ae==1&&message.success("保存成功")})};return(se,ae)=>{const ce=vue.resolveComponent("svg-icon"),le=vue.resolveComponent("a-button"),de=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$2,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(Z,ue=>vue.createVNode(le,{type:"text",style:{margin:"auto 5px",color:"rgba(35,46,60,.7)"},onClick:he=>ee(ue.type)},{icon:vue.withCtx(()=>[vue.createVNode(ce,{name:ue.icon,class:"toolbar-css",title:ue.title},null,8,["name","title"]),vue.createTextVNode(" ")]),default:vue.withCtx(()=>[vue.createTextVNode(" "+vue.toDisplayString(ue.title),1)]),_:2},1032,["onClick"])),64))]),vue.createElementVNode("div",null,[vue.createVNode(de,{visible:H.value,"onUpdate:visible":ae[0]||(ae[0]=ue=>H.value=ue),title:"代码",width:"1000px",onOk:oe},{default:vue.withCtx(()=>[H.value?(vue.openBlock(),vue.createBlock(_sfc_main$6,{key:0,code:vue.unref(X),language:vue.unref(Q)},null,8,["code","language"])):vue.createCommentVNode("",!0)]),_:1},8,["visible"]),vue.createVNode(de,{visible:U.value,"onUpdate:visible":ae[1]||(ae[1]=ue=>U.value=ue),title:"预览",width:"1000px",onOk:oe},{default:vue.withCtx(()=>[U.value?(vue.openBlock(),vue.createBlock(_sfc_main$5,{key:0})):vue.createCommentVNode("",!0)]),_:1},8,["visible"])])],64)}}}),Header_vue_vue_type_style_index_0_scoped_02441d5c_lang="",formHeader=_export_sfc(_sfc_main$4,[["__scopeId","data-v-02441d5c"]]),_sfc_main$3=vue.defineComponent({__name:"SqlModule",props:{formId:{type:Number,default:14,required:!0},selectList:{type:Object,default:[]}},emits:["update:selectList"],setup(__props,{expose:__expose,emit}){const props=__props,dataStore=useDataStore();let modalTitle=vue.ref("预览"),visible=vue.ref(!1),currentSelectObj=vue.ref({}),confirmLoading=vue.ref(!1),selectList=vue.ref(props.selectList);vue.watch(()=>props.selectList,K=>{selectList.value=K}),vue.onMounted(()=>{});function edit(K){modalTitle.value="编辑",K.queryType||(K.queryType="sql"),currentSelectObj.value={...K},visible.value=!0}function add(K){currentSelectObj.value={type:K,queryType:"sql",body:"",isList:"0"},modalTitle.value="新增"+(K=="select"?"查询":K=="update"?"编辑":"删除"),visible.value=!0}function handleModalOk(){confirmLoading.value=!0,dataAnalysis().then(K=>{let C=[...selectList.value];currentSelectObj.value.id?C.some(G=>{if(G.id==currentSelectObj.value.id)return G.body=currentSelectObj.value.body,G.name=currentSelectObj.value.name,G.fields=K,G.type=currentSelectObj.value.type,G.queryType=currentSelectObj.value.queryType,G.isList=currentSelectObj.value.isList,!0}):C.push({id:getId(selectList.value),body:currentSelectObj.value.body,name:currentSelectObj.value.name,fields:K,type:currentSelectObj.value.type,queryType:currentSelectObj.value.queryType,isList:currentSelectObj.value.isList});let H=Array.from(C).map(G=>{const{show:Z,...X}=G;return X}),U={id:props.formId,sourceFields:JSON.stringify({data:H})};defHttp.post({url:"/magicapi/zrzy-form/magic/form/form/edit",data:U},{withToken:!0}).then(G=>{if(G.message)message.error("保存失败"+G.message);else{selectList.value=C,message.success("保存成功"),visible.value=!1,emit("update:selectList",selectList.value);let Z=[];if(!currentSelectObj.value.id)K.forEach(X=>{Z.push({value:`${currentSelectObj.value.name}.${X}`})}),currentSelectObj.value.type=="select"?(dataStore.addSelectData(Z),dataStore.addSelectTable({value:`${currentSelectObj.value.name}`})):currentSelectObj.value.type=="update"&&dataStore.addUpdateData(Z);else{let X=C.filter(Q=>Q.type==currentSelectObj.value.type);debugger;X.forEach(Q=>{Q.fields.forEach(ee=>{Z.push({value:`${Q.name}.${ee}`})})}),currentSelectObj.value.type=="select"?(dataStore.setSelectData(Z),dataStore.setSelectData({value:`${currentSelectObj.value.name}`})):currentSelectObj.value.type=="update"&&dataStore.setUpdateData(Z)}console.log(dataStore.$state)}}).catch(G=>{message.error("保存失败"+G)}).finally(()=>{confirmLoading.value=!1})}).catch(K=>{message.info(K),confirmLoading.value=!1})}function dataAnalysis(){return new Promise(async(resolve,reject)=>{if(currentSelectObj.value.queryType=="sql")currentSelectObj.value.type=="delete"?resolve([]):defHttp.post({url:"/magicapi/zrzy-form/sql/fileds",headers:{},data:{sql:currentSelectObj.value.body}},{withToken:!1}).then(K=>{K&&!K.message?resolve(K.result):reject(K.message)});else{if(currentSelectObj.value.type=="select"){let res=await eval(currentSelectObj.value.body);res&&typeof res=="object"&&res.length>0&&resolve(Object.keys(res[0]))}resolve([])}})}function getId(K){return K.length?K.length==1?Number(K[0].id)+1:(K.sort((C,W)=>C.id-W.id),Number(K[K.length-1].id)+1):1}return __expose({add,edit}),(K,C)=>{const W=vue.resolveComponent("a-input"),H=vue.resolveComponent("a-form-item"),U=vue.resolveComponent("a-radio"),G=vue.resolveComponent("a-radio-group"),Z=vue.resolveComponent("a-button"),X=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(X,{visible:vue.unref(visible),"onUpdate:visible":C[5]||(C[5]=Q=>vue.isRef(visible)?visible.value=Q:visible=Q),title:vue.unref(modalTitle),width:"1000px",maskClosable:!1},{footer:vue.withCtx(()=>[vue.createVNode(Z,{key:"back",onClick:C[4]||(C[4]=Q=>vue.isRef(visible)?visible.value=!1:visible=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("关闭")]),_:1}),vue.createVNode(Z,{key:"submit",type:"primary",loading:vue.unref(confirmLoading),onClick:handleModalOk},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(SaveOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode(" 保存 ")]),_:1},8,["loading"])]),default:vue.withCtx(()=>[vue.createVNode(H,{label:"名称"},{default:vue.withCtx(()=>[vue.createVNode(W,{value:vue.unref(currentSelectObj).name,"onUpdate:value":C[0]||(C[0]=Q=>vue.unref(currentSelectObj).name=Q)},null,8,["value"])]),_:1}),vue.createVNode(H,{label:"类型"},{default:vue.withCtx(()=>[vue.createVNode(G,{value:vue.unref(currentSelectObj).queryType,"onUpdate:value":C[1]||(C[1]=Q=>vue.unref(currentSelectObj).queryType=Q)},{default:vue.withCtx(()=>[vue.createVNode(U,{value:"sql"},{default:vue.withCtx(()=>[vue.createTextVNode("table")]),_:1}),vue.createVNode(U,{value:"javascript"},{default:vue.withCtx(()=>[vue.createTextVNode("接口")]),_:1})]),_:1},8,["value"])]),_:1}),vue.createVNode(H,{label:"是否列表"},{default:vue.withCtx(()=>[vue.createVNode(G,{value:vue.unref(currentSelectObj).isList,"onUpdate:value":C[2]||(C[2]=Q=>vue.unref(currentSelectObj).isList=Q)},{default:vue.withCtx(()=>[vue.createVNode(U,{value:"1"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(U,{value:"0"},{default:vue.withCtx(()=>[vue.createTextVNode("否")]),_:1})]),_:1},8,["value"])]),_:1}),vue.createVNode(monacoEditor,{modelValue:vue.unref(currentSelectObj).body,"onUpdate:modelValue":C[3]||(C[3]=Q=>vue.unref(currentSelectObj).body=Q),language:vue.unref(currentSelectObj).queryType,height:"500px"},null,8,["modelValue","language"])]),_:1},8,["visible","title"])}}}),_hoisted_1$1=["onClick"],_hoisted_2=["onClick"],_hoisted_3={key:0,class:"title_icon"},_hoisted_4=["title"],_hoisted_5={key:0,class:"fields_content"},_hoisted_6={class:"fields_items"},_sfc_main$2=vue.defineComponent({__name:"index",props:{formId:{type:Number,default:14},data:{type:Object,default:[]}},setup(K){const C=K;vue.watch(()=>C.data,(ne,oe)=>{te(ne)});const W=useDataStore(),H=[{title:"我的查询",key:"select"},{title:"我的修改",key:"update"},{title:"我的删除",key:"delete"}];let U=vue.ref(),G=vue.ref(["0"]),Z=vue.ref([]);const X=vue.computed(()=>(ne,oe)=>ne.filter(re=>re.type==oe)),Q=ne=>{U.value.add(ne)};function ee(ne){U.value.edit(ne)}function te(ne){let oe=[],re=[],se=[];if(ne!=null){Z.value=ne.data;let ae=Z.value.filter(le=>le.type=="select"),ce=Z.value.filter(le=>le.type=="update");ae.forEach(le=>{se.push({value:`${le.name}`}),le.fields.forEach(de=>{oe.push({value:`${le.name}.${de}`})})}),ce.forEach(le=>{le.fields.forEach(de=>{re.push({value:`${le.name}.${de}`})})})}W.setSelectData(oe),W.setUpdateData(re),W.setSelectTables(se)}function ie(ne){let oe=Z.value.filter(se=>se.id!==ne.id),re={id:C.formId,sourceFields:JSON.stringify({data:oe})};defHttp.post({url:"/magicapi/zrzy-form/magic/form/form/edit",data:re},{withToken:!0}).then(se=>{se.message?message.error("删除失败"+se.message):message.success("删除成功"),Z.value=oe;let ae=[];oe.filter(le=>le.type==ne.type).forEach(le=>{le.fields.forEach(de=>{ae.push({value:`${le.name}.${de}`})})}),ne.type=="select"?W.setSelectData(ae):ne.type=="update"&&W.setUpdateData(ae),console.log(W.$state)}).catch(se=>{message.error("删除失败")})}return(ne,oe)=>{const re=vue.resolveComponent("a-popconfirm"),se=vue.resolveComponent("a-list-item-meta"),ae=vue.resolveComponent("a-list-item"),ce=vue.resolveComponent("a-list"),le=vue.resolveComponent("a-collapse-panel"),de=vue.resolveComponent("a-collapse");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(de,{activeKey:vue.unref(G),"onUpdate:activeKey":oe[0]||(oe[0]=ue=>vue.isRef(G)?G.value=ue:G=ue)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(H,(ue,he)=>vue.createVNode(le,{key:he,header:ue.title},{extra:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1),{onClick:vue.withModifiers(fe=>Q(ue.key),["stop"])},null,8,["onClick"])]),default:vue.withCtx(()=>[vue.createVNode(ce,{"item-layout":"vertical","data-source":X.value(vue.unref(Z),ue.key)},{renderItem:vue.withCtx(({item:fe})=>[vue.createVNode(ae,null,vue.createSlots({default:vue.withCtx(()=>[vue.createVNode(se,{description:fe.content},{title:vue.withCtx(()=>[vue.createElementVNode("div",{onClick:ge=>fe.show=!fe.show,class:"title_class"},[fe.fields&&fe.fields.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[fe.show?(vue.openBlock(),vue.createBlock(vue.unref(CaretDownOutlined$1),{key:1})):(vue.openBlock(),vue.createBlock(vue.unref(CaretRightOutlined$1),{key:0}))])):vue.createCommentVNode("",!0),vue.createElementVNode("a",{title:fe.name},vue.toDisplayString(fe.name),9,_hoisted_4)],8,_hoisted_2),fe.show&&fe.fields&&fe.fields.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.fields,ge=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,vue.toDisplayString(ge),1))),256))])):vue.createCommentVNode("",!0)]),_:2},1032,["description"])]),_:2},[fe.id?{name:"extra",fn:vue.withCtx(()=>[vue.createElementVNode("a",{onClick:ge=>ee(fe),style:{"margin-right":"5px"}},[vue.createVNode(vue.unref(FormOutlined$1)),vue.createTextVNode("编辑")],8,_hoisted_1$1),vue.createVNode(re,{title:"是否确定删除该项?","ok-text":"确定","cancel-text":"取消",onConfirm:ge=>ie(fe)},{default:vue.withCtx(()=>[vue.createElementVNode("a",null,[vue.createVNode(vue.unref(DeleteOutlined$1)),vue.createTextVNode("删除")])]),_:2},1032,["onConfirm"])]),key:"0"}:void 0]),1024)]),_:2},1032,["data-source"])]),_:2},1032,["header"])),64))]),_:1},8,["activeKey"]),vue.createVNode(_sfc_main$3,{ref_key:"moduleRef",ref:U,selectList:vue.unref(Z),"onUpdate:selectList":oe[1]||(oe[1]=ue=>vue.isRef(Z)?Z.value=ue:Z=ue),formId:K.formId},null,8,["selectList","formId"])],64)}}}),index_vue_vue_type_style_index_0_scoped_897842f3_lang="",CDataIndex=_export_sfc(_sfc_main$2,[["__scopeId","data-v-897842f3"]]),_hoisted_1={style:{background:"#fff",textAlign:"center",height:"99%"}},_sfc_main$1=vue.defineComponent({__name:"index",props:{id:{type:Number,default:14}},setup(K){const C=K,W=useFormStore();let H=vue.ref([]),U=vue.ref();G();function G(){const Q="/magicapi/zrzy-form/magic/form/form/list";defHttp.post({url:Q,params:{id:C.id}},{withToken:!0}).then(ee=>{const te=ee.list[0];te.content!=""&&W.setFormData(JSON.parse(te.content)),te.sourceFields!=""&&(H.value=JSON.parse(te.sourceFields))})}const Z=vue.ref("1");function X(Q){U.value=Q}return(Q,ee)=>{const te=vue.resolveComponent("a-tab-pane"),ie=vue.resolveComponent("a-tabs"),ne=vue.resolveComponent("a-layout-sider"),oe=vue.resolveComponent("a-layout-header"),re=vue.resolveComponent("a-layout-content"),se=vue.resolveComponent("a-layout");return vue.openBlock(),vue.createBlock(se,{style:{height:"100%",padding:"5px 5px"}},{default:vue.withCtx(()=>[vue.createVNode(ne,{width:"310",style:{left:0,top:0,bottom:0}},{default:vue.withCtx(()=>[vue.createVNode(ie,{activeKey:Z.value,"onUpdate:activeKey":ee[0]||(ee[0]=ae=>Z.value=ae)},{default:vue.withCtx(()=>[vue.createVNode(te,{key:"1"},{tab:vue.withCtx(()=>[vue.createElementVNode("span",null,[vue.createVNode(vue.unref(DatabaseFilled$1)),vue.createTextVNode(" 数据 ")])]),default:vue.withCtx(()=>[vue.createVNode(CDataIndex,{formId:K.id,data:vue.unref(H)},null,8,["formId","data"])]),_:1}),vue.createVNode(te,{key:"2"},{tab:vue.withCtx(()=>[vue.createElementVNode("span",null,[vue.createVNode(vue.unref(AppstoreFilled$1)),vue.createTextVNode(" 组件 ")])]),default:vue.withCtx(()=>[vue.createVNode(FormTool)]),_:1})]),_:1},8,["activeKey"])]),_:1}),vue.createVNode(se,{style:{margin:"0px 5px"}},{default:vue.withCtx(()=>[vue.createVNode(oe,{style:{background:"#fff",border:"1px solid #e4e7ed",borderBottom:"0px"}},{default:vue.withCtx(()=>[vue.createVNode(formHeader,{formId:K.id},null,8,["formId"])]),_:1}),vue.createVNode(re,{style:{overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1,[vue.createVNode(FormDesign,{onControlConfig:X})])]),_:1})]),_:1}),vue.createVNode(ne,{width:"250",style:{right:0,top:0,bottom:0}},{default:vue.withCtx(()=>[vue.createVNode(formConfig,{configData:vue.unref(U)},null,8,["configData"])]),_:1})]),_:1})}}}),index_vue_vue_type_style_index_0_scoped_a59f6200_lang="",CImaginForm=_export_sfc(_sfc_main$1,[["__scopeId","data-v-a59f6200"]]),_sfc_main=vue.defineComponent({__name:"FormPublic",props:{data:{type:Object,default:[]}},setup(__props){const props=__props;let list=vue.ref(props.data.config.eventScript);const generateData=generateHtml(props.data.list),columns=[...generateData.columns];let viewData=vue.ref({}),demoRefs=[];vue.onBeforeUpdate(()=>{demoRefs=[]});const setRef=K=>{K&&demoRefs.push(K)};function saveData(){saveFormData(demoRefs)}const generateVue3=vue.defineComponent({template:generateData.html,props:{message:String},setup(){let formData=vue.ref([]),datalist=vue.ref([]),formRef=vue.ref();function onSubmit(){return onSubmitForm(formRef.value)}viewData.value=getData();const tableData=props.data.list.filter(K=>K.type=="table"),ilength=tableData.length;let pagination;ilength>0&&tableData[0].options.pagination&&(pagination=vue.ref({total:0,current:1,pageSize:tableData[0].options.pageSize}));const events={};return generateTs(),{formData,onSubmit,formRef,validateFun,validateInfos,pagination,datalist,columns,viewData,...events,defHttp,onChange};function onChange(K,C){pagination.value=K,C()}function generateTs(){for(let K=0;K<list.value.length;K++){const C=list.value[K];events[C.name]=newFunction(C)}}function newFunction(_data){return _data.param!=""?_params=>{eval(_data.func)}:()=>{eval(_data.func)}}}});return(K,C)=>{const W=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(generateVue3),{ref:setRef}),vue.createVNode(W,{type:"Default",onClick:saveData},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})],64)}}}),FormPublic_vue_vue_type_style_index_0_lang="",antd="",index={install:K=>{setupStore(K),K.component("CHelloWorld",CHelloWorld),K.component("CImaginForm",CImaginForm),K.component("CGenerateForm",_sfc_main$5),K.component("CGenerateList",_sfc_main)}};/*!-----------------------------------------------------------------------------
|
|
1320
|
+
`):" "+renderReason(G[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+Z,"ERR_NOT_SUPPORT")}return H},adapters:knownAdapters};function throwIfCancellationRequested(K){if(K.cancelToken&&K.cancelToken.throwIfRequested(),K.signal&&K.signal.aborted)throw new CanceledError(null,K)}function dispatchRequest(K){return throwIfCancellationRequested(K),K.headers=AxiosHeaders$1.from(K.headers),K.data=transformData.call(K,K.transformRequest),["post","put","patch"].indexOf(K.method)!==-1&&K.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(K.adapter||defaults$1.adapter)(K).then(function(H){return throwIfCancellationRequested(K),H.data=transformData.call(K,K.transformResponse,H),H.headers=AxiosHeaders$1.from(H.headers),H},function(H){return isCancel(H)||(throwIfCancellationRequested(K),H&&H.response&&(H.response.data=transformData.call(K,K.transformResponse,H.response),H.response.headers=AxiosHeaders$1.from(H.response.headers))),Promise.reject(H)})}const headersToObject=K=>K instanceof AxiosHeaders$1?K.toJSON():K;function mergeConfig(K,C){C=C||{};const W={};function H(ee,te,ie){return utils.isPlainObject(ee)&&utils.isPlainObject(te)?utils.merge.call({caseless:ie},ee,te):utils.isPlainObject(te)?utils.merge({},te):utils.isArray(te)?te.slice():te}function U(ee,te,ie){if(utils.isUndefined(te)){if(!utils.isUndefined(ee))return H(void 0,ee,ie)}else return H(ee,te,ie)}function G(ee,te){if(!utils.isUndefined(te))return H(void 0,te)}function Z(ee,te){if(utils.isUndefined(te)){if(!utils.isUndefined(ee))return H(void 0,ee)}else return H(void 0,te)}function X(ee,te,ie){if(ie in C)return H(ee,te);if(ie in K)return H(void 0,ee)}const Q={url:G,method:G,data:G,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,responseEncoding:Z,validateStatus:X,headers:(ee,te)=>U(headersToObject(ee),headersToObject(te),!0)};return utils.forEach(Object.keys(Object.assign({},K,C)),function(te){const ie=Q[te]||U,ne=ie(K[te],C[te],te);utils.isUndefined(ne)&&ie!==X||(W[te]=ne)}),W}const VERSION="1.5.1",validators$1={};["object","boolean","number","function","string","symbol"].forEach((K,C)=>{validators$1[K]=function(H){return typeof H===K||"a"+(C<1?"n ":" ")+K}});const deprecatedWarnings={};validators$1.transitional=function(C,W,H){function U(G,Z){return"[Axios v"+VERSION+"] Transitional option '"+G+"'"+Z+(H?". "+H:"")}return(G,Z,X)=>{if(C===!1)throw new AxiosError(U(Z," has been removed"+(W?" in "+W:"")),AxiosError.ERR_DEPRECATED);return W&&!deprecatedWarnings[Z]&&(deprecatedWarnings[Z]=!0,console.warn(U(Z," has been deprecated since v"+W+" and will be removed in the near future"))),C?C(G,Z,X):!0}};function assertOptions(K,C,W){if(typeof K!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const H=Object.keys(K);let U=H.length;for(;U-- >0;){const G=H[U],Z=C[G];if(Z){const X=K[G],Q=X===void 0||Z(X,G,K);if(Q!==!0)throw new AxiosError("option "+G+" must be "+Q,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(W!==!0)throw new AxiosError("Unknown option "+G,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(C){this.defaults=C,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(C,W){typeof C=="string"?(W=W||{},W.url=C):W=C||{},W=mergeConfig(this.defaults,W);const{transitional:H,paramsSerializer:U,headers:G}=W;H!==void 0&&validator.assertOptions(H,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),U!=null&&(utils.isFunction(U)?W.paramsSerializer={serialize:U}:validator.assertOptions(U,{encode:validators.function,serialize:validators.function},!0)),W.method=(W.method||this.defaults.method||"get").toLowerCase();let Z=G&&utils.merge(G.common,G[W.method]);G&&utils.forEach(["delete","get","head","post","put","patch","common"],re=>{delete G[re]}),W.headers=AxiosHeaders$1.concat(Z,G);const X=[];let Q=!0;this.interceptors.request.forEach(function(se){typeof se.runWhen=="function"&&se.runWhen(W)===!1||(Q=Q&&se.synchronous,X.unshift(se.fulfilled,se.rejected))});const ee=[];this.interceptors.response.forEach(function(se){ee.push(se.fulfilled,se.rejected)});let te,ie=0,ne;if(!Q){const re=[dispatchRequest.bind(this),void 0];for(re.unshift.apply(re,X),re.push.apply(re,ee),ne=re.length,te=Promise.resolve(W);ie<ne;)te=te.then(re[ie++],re[ie++]);return te}ne=X.length;let oe=W;for(ie=0;ie<ne;){const re=X[ie++],se=X[ie++];try{oe=re(oe)}catch(ae){se.call(this,ae);break}}try{te=dispatchRequest.call(this,oe)}catch(re){return Promise.reject(re)}for(ie=0,ne=ee.length;ie<ne;)te=te.then(ee[ie++],ee[ie++]);return te}getUri(C){C=mergeConfig(this.defaults,C);const W=buildFullPath(C.baseURL,C.url);return buildURL(W,C.params,C.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function(C){Axios.prototype[C]=function(W,H){return this.request(mergeConfig(H||{},{method:C,url:W,data:(H||{}).data}))}}),utils.forEach(["post","put","patch"],function(C){function W(H){return function(G,Z,X){return this.request(mergeConfig(X||{},{method:C,headers:H?{"Content-Type":"multipart/form-data"}:{},url:G,data:Z}))}}Axios.prototype[C]=W(),Axios.prototype[C+"Form"]=W(!0)});const Axios$1=Axios;class CancelToken{constructor(C){if(typeof C!="function")throw new TypeError("executor must be a function.");let W;this.promise=new Promise(function(G){W=G});const H=this;this.promise.then(U=>{if(!H._listeners)return;let G=H._listeners.length;for(;G-- >0;)H._listeners[G](U);H._listeners=null}),this.promise.then=U=>{let G;const Z=new Promise(X=>{H.subscribe(X),G=X}).then(U);return Z.cancel=function(){H.unsubscribe(G)},Z},C(function(G,Z,X){H.reason||(H.reason=new CanceledError(G,Z,X),W(H.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(C){if(this.reason){C(this.reason);return}this._listeners?this._listeners.push(C):this._listeners=[C]}unsubscribe(C){if(!this._listeners)return;const W=this._listeners.indexOf(C);W!==-1&&this._listeners.splice(W,1)}static source(){let C;return{token:new CancelToken(function(U){C=U}),cancel:C}}}const CancelToken$1=CancelToken;function spread(K){return function(W){return K.apply(null,W)}}function isAxiosError(K){return utils.isObject(K)&&K.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([K,C])=>{HttpStatusCode[C]=K});const HttpStatusCode$1=HttpStatusCode;function createInstance(K){const C=new Axios$1(K),W=bind(Axios$1.prototype.request,C);return utils.extend(W,Axios$1.prototype,C,{allOwnKeys:!0}),utils.extend(W,C,null,{allOwnKeys:!0}),W.create=function(U){return createInstance(mergeConfig(K,U))},W}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(C){return Promise.all(C)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=K=>formDataToJSON(utils.isHTMLForm(K)?new FormData(K):K),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const axios$1=axios;var stringTag="[object String]";function isString(K){return typeof K=="string"||!isArray$2(K)&&isObjectLike(K)&&baseGetTag(K)==stringTag}var RequestEnum=(K=>(K.GET="GET",K.POST="POST",K.PUT="PUT",K.DELETE="DELETE",K))(RequestEnum||{}),ContentTypeEnum=(K=>(K.JSON="application/json;charset=UTF-8",K.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",K.FORM_DATA="multipart/form-data;charset=UTF-8",K))(ContentTypeEnum||{});class RequestHttp{constructor(C){Ge(this,"axiosInstance");Ge(this,"options");this.options=C,this.axiosInstance=axios$1.create(C),this.setupInterceptors()}createAxios(C){this.axiosInstance=axios$1.create(C)}setupInterceptors(){this.axiosInstance.interceptors.request.use(C=>(C=this.beforeRequest(C),this.requestInterceptors(C)),C=>Promise.reject(C)),this.axiosInstance.interceptors.response.use(C=>{if(C.status==200)return Promise.resolve(C);this.handleErrorData(C.data)},C=>{this.handleErrorData(C)})}beforeRequest(C){var U;const W=C.params||{},H=C.data||!1;return((U=C.method)==null?void 0:U.toUpperCase())==RequestEnum.GET?isString(W)&&(C.url=C.url+W,C.params=void 0):isString(W)?(C.data=W,C.params=void 0):C.data?C.data=H:C.data=W,C}requestInterceptors(C){var W;if((W=C.requestOptions)!=null&&W.withToken){const H="";C&&C.headers&&(C.headers.Authorization||(C.headers.Authorization=H))}return C}handleErrorData(C){switch(C.response.status){case 400:break;case 401:break;case 500:break;case 402:return}}goLogin(){}request(C,W){let H=cloneDeep(C);return this.options,H.requestOptions=W,new Promise((U,G)=>{this.axiosInstance.request(H).then(Z=>{try{const{data:X}=Z;X.data==null?U(X):U(X.data);return}catch(X){G(X)}}).catch(Z=>{G(Z)})})}get(C,W){return this.request({...C,method:RequestEnum.GET},W)}post(C,W){return this.request({...C,method:RequestEnum.POST},W)}}function createAxios(){const K="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ3b3Jrc3BhY2VfaWQiOiJlM2RlYTBmNS0zN2YyLTRkNzktYWU1OC00OTBhZjMyMjgwNjkiLCJzdWIiOiJDbG91ZEFwaVNhbXBsZSIsInVzZXJfdHlwZSI6IjEiLCJuYmYiOjE2NzU5MDk5NzMsImxvZyI6IkxvZ2dlcltjb20uZGppLnNhbXBsZS5jb21tb24ubW9kZWwuQ3VzdG9tQ2xhaW1dIiwiaXNzIjoiREpJIiwiaWQiOiJhMTU1OWU3Yy04ZGQ4LTQ3ODAtYjk1Mi0xMDBjYzQ3OTdkYTIiLCJleHAiOjE2NzU5OTYzNzMsImlhdCI6MTY3NTkwOTk3MywidXNlcm5hbWUiOiJhZG1pblBDIn0.3Bp-cnfrvwkxXYeOoZXIrhZmffoyCtIFrvw9uWGwiec";return new RequestHttp({timeout:10*1e3,headers:{"Content-Type":ContentTypeEnum.JSON,"x-auth-token":K}})}const defHttp=createAxios();function validateRequired(K,C){if(K!==void 0){if(typeof K=="string"){if(K.match(/^\s*$/))return C}else if(Array.isArray(K))return K.filter(H=>H&&H.trim()).length?"":C;return""}else return C}function validateReg(K,C,W){let H,U=!0;switch(K){case"number":H=/^-?\d+(\.?\d+|\d?)$/;break;case"email":H=/^([\w]+\.*)([\w]+)@[\w]+\.\w{3}(\.\w{2}|)$/;break;case"lxdh":H=/^1(3|4|5|7|8)\d{9}$|^(0\d{2}-\d{8}(-\d{1,4})?)|(0\d{3}-\d{7,8}(-\d{1,4})?)$/;break}return H&&!W.match(H)&&(U=!1),U?"":C}let validateInfos=vue.reactive({});async function getData(K){const C="/imaginform/zrzy-form/generate/select";await defHttp.post({url:C,data:{formId:14,param:{code:"ceshi_ws"}}},{withToken:!1}).then(W=>{K.value=W.result})}function saveFormData(K){let C=[];for(let W=0;W<K.length;W++){let H=K[W].onSubmit();H&&C.push(H)}C.length==K.length?(console.log("校验成功!!"),console.log("res!!",C)):message.warning("请检查填写")}function onSubmitForm(K){debugger;let C,W=K.querySelectorAll("[write-field]");console.log("formDom",W);for(let H=0;H<W.length;H++)validateFun(W[H]);if(C=isValidateSuccess(),C){console.log("校验成功");let H={};return H=getUpdateData(W),H}else return!1}function getUpdateData(K){let C={};for(let W=0;W<K.length;W++){let H=getDomValue(K[W]);const G=getDomAttribute(K[W],"write-field").split(";");for(let Z=0;Z<G.length;Z++){const X=G[Z].split("."),Q=X[0];C[Q]=C[Q]?C[Q]:{},C[Q][X[1]]=H}}return C}function getDomValue(K,C,W){let H;if(W)H=W;else if(C)H=K.target.value;else{let U=K.classList;if(U.contains("ant-select"))H=K.__vueParentComponent.parent.props.value;else if(U.contains("ant-checkbox-group")||U.contains("ant-radio-group"))H=K.__vueParentComponent.props.value;else if(U.contains("ant-picker-range-custom")){let G=Array.from(K.childNodes).find(X=>X.classList&&X.classList.contains("ant-picker-range"));H=Array.from(G.childNodes).filter(X=>X.classList&&X.classList.contains("ant-picker-input")).map(X=>X.childNodes[0].value)}else if(U.contains("ant-picker-custom")){let G=Array.from(K.childNodes).find(X=>X.classList&&X.classList.contains("ant-picker"));H=Array.from(G.childNodes).find(X=>X.classList&&X.classList.contains("ant-picker-input")).childNodes[0].value}else H=K.value}return H}function getDomAttribute(K,C,W){let H;if(W){let U=K.target.classList,G=K.target.parentNode.classList;U.contains("ant-select-selection-search-input")||G.contains("ant-picker-input")?H=K.target.parentNode.parentNode.parentNode.__vnode.props[C]:H=K.target.__vnode.props[C]}else H=K.target?K.target.__vnode.props[C]:K.__vnode.props[C];return H}function validateFun(K,C,W){let H=getDomValue(K,C,W),U=getDomAttribute(K,"rules",C),G=getDomAttribute(K,"write-field",C),Z="";if(U&&G){for(let X=0;X<U.length;X++)U[X].type=="required"&&(Z+=validateRequired(H,U[X].msg)),Z.length==0&&(Z+=validateReg(U[X].type,U[X].msg,H));validateInfos[G]||(validateInfos[G]={}),Z.length>0?(validateInfos[G].validateStatus="error",validateInfos[G].help=Z):(validateInfos[G].validateStatus="validating",validateInfos[G].help="")}}function isValidateSuccess(){let K=!0;for(const C in validateInfos)if(validateInfos[C].validateStatus=="error"){K=!1;break}return K}const _sfc_main$5=vue.defineComponent({__name:"GenerateForm",setup(__props){const formStore=useFormStore();let list=vue.ref(formStore.formData.config.eventScript);const generateData=generateHtml(formStore.formData.list),columns=[...generateData.columns];let _viewData=getViewData(),viewData=vue.ref(_viewData),demoRefs=[];vue.onBeforeUpdate(()=>{demoRefs=[]});const setRef=K=>{K&&demoRefs.push(K)};function saveData(){saveFormData(demoRefs)}const generateVue3=vue.defineComponent({template:generateData.html,props:{message:String},setup(){let formData=vue.ref([]),datalist=vue.ref([]),formRef=vue.ref();function onSubmit(){return onSubmitForm(formRef.value)}getData(viewData);const tableData=formStore.formData.list.filter(K=>K.type=="table"),ilength=tableData.length;let pagination;ilength>0&&tableData[0].options.pagination&&(pagination=vue.ref({total:0,current:1,pageSize:tableData[0].options.pageSize}));const events={};return generateTs(),{formData,onSubmit,formRef,validateFun,validateInfos,pagination,datalist,columns,viewData,...events,defHttp,onChange};function onChange(K,C){pagination.value=K,C()}function generateTs(){for(let K=0;K<list.value.length;K++){const C=list.value[K];events[C.name]=newFunction(C)}}function newFunction(_data){return _data.param!=""?_params=>{eval(_data.func)}:()=>{eval(_data.func)}}}});return(K,C)=>{const W=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(generateVue3),{ref:setRef}),vue.createVNode(W,{type:"Default",onClick:saveData},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})],64)}}}),GenerateForm_vue_vue_type_style_index_0_lang="",testjson=[{list:[{id:"bb80da45-5fe1-c4c5-f2e5-ceef1b42057e",type:"header",name:"规划选址信息",icon:"header",required:!1,extended:"",font:"14",align:"left",color:"#000",cssextended:"",classname:"title-css3",key:"3d4b810e-6a4e-9b55-036c-dfd6c5fc0629"},{type:"grid",icon:"grid",columns:[{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ccbfb594-9c37-f739-825f-6e075e0e9151",type:"input",name:"预审选址意见书编号",icon:"input",required:!0,width:"100%",extended:"",key:"61365b91-4265-ac85-b415-a2829ad803b9"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"06dc21cb-2332-3bf4-18bd-e2be587e8382",type:"input",name:"项目名称",icon:"input",required:!1,width:"100%",extended:"",key:"ee7d71e2-b039-96dd-8b16-19701c27a628"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"7678a185-6f16-75fa-c690-6c9397cb8c6d",type:"input",name:"项目代码",icon:"input",required:!1,width:"100%",extended:"",key:"b5cf50c2-6a90-3f69-57d2-055542c5a82f"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"申请单位",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:16,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"建设单位名称(发改立项)",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"批准类型",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"385800a7-3fee-7020-ad91-d4f0e9d23e86",type:"input",name:"项目建设依据",icon:"input",required:!1,width:"100%",extended:"",key:"57585e89-b95c-46b0-9ea9-ba8444384095"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"审批/核准/备案批准单位",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"b6664f6e-d862-7054-3679-32b03d90bb56",type:"input",name:"依据文件名",icon:"input",required:!1,width:"100%",extended:"",key:"3432c0b7-6b17-2189-8bc9-f47854523637"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"是否已核查涉密数据",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"2661e1c4-b873-40f3-acbd-24c41b56f7f8",type:"input",name:"依据文号",icon:"input",required:!1,width:"100%",extended:"",key:"39adf257-def7-2472-e070-9b8f72c58347"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"所在区域",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:16,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"项目拟选址",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"规划用地性质",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"规划用地性质代码",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"作废旧选址编号",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"}]},{type:"col",key:"",options:{span:24,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ae2319c9-e01c-3b7e-2d47-3d3ff0494658",type:"input",name:"拟建设规模",icon:"input",required:!1,width:"100%",extended:"",key:"600f98bc-f40a-595c-d3af-2a404881410c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"土地用途名称(只选主用途)",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"1dc21a02-5803-23fe-3cd5-ebbaa200e5c7",type:"input",name:"计划永久基本农田面积",icon:"input",required:!1,width:"100%",extended:"",key:"a197bd03-e331-950b-0dee-fe38ee8514fe"},{id:"f1b7220c-55ca-8ad7-cc7f-d2aa00d7016c",type:"input",name:"占用水田面积",icon:"input",required:!1,width:"100%",extended:"",key:"5e29f05c-9d9f-8fa0-fe8b-bd296a58918e"},{id:"80ec0c50-7350-b10b-9a71-6cba2790bf65",type:"input",name:"电子监管号",icon:"input",required:!1,width:"100%",extended:"",key:"381bbb28-dbbc-188f-01ce-c2e35e041ee3"},{id:"04b903dc-2edb-6d53-e7f9-b5d3b213eb37",type:"input",name:"国民经济行业分类",icon:"input",required:!1,width:"100%",extended:"",key:"25306973-aea5-d114-1c2a-3487b998fe13"},{id:"c497e027-b00e-33b2-e94d-d791f8272c9d",type:"input",name:"项目资金属性",icon:"input",required:!1,width:"100%",extended:"",key:"5dd80671-9695-7e92-c415-80ab78514041"},{id:"f245b738-848a-3fa4-a042-ccad6e3aff54",type:"input",name:"业务办理类型",icon:"input",required:!1,width:"100%",extended:"",key:"d0a04ae7-be43-fd1c-b367-e0ec58cfcff0"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"土地用途名称(只选主用途)",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"占用永久基本农田面积",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"a1d36bce-c42e-f4fa-4e18-e9ae9d778e74",type:"input",name:"建设单位统一信用代码",icon:"input",required:!1,width:"100%",extended:"",key:"bb0d1d32-6ad3-42d4-a73f-14abb35c0470"},{id:"3d24c0c6-7dba-db3d-d9c9-4c8b459495d9",type:"input",name:"是否跨区标识",icon:"input",required:!1,width:"100%",extended:"",key:"ed0879b4-37df-73b9-86b7-29c402cd625f"},{id:"efb55902-7d9a-cc4a-c920-e1e89641d74a",type:"input",name:"国民经济行业分类代码",icon:"input",required:!1,width:"100%",extended:"",key:"e1c4981a-62ad-d413-ac98-e8931f9d7d63"},{id:"591e9234-b1df-18d4-d7dc-19f91e973aa4",type:"input",name:"建设性质",icon:"input",required:!1,width:"100%",extended:"",key:"2acbf76b-501d-9c96-5a51-3954c67d9d7b"},{id:"cb65fbdc-66b3-7561-5d67-1d4a4f4011b3",type:"input",name:"备注栏",icon:"input",required:!1,width:"100%",extended:"",key:"c463cbb2-1f57-a17f-b6ad-e791cb889a1c"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"b05e18b5-0904-cc10-5bd3-82faa9f66fb0",type:"input",name:"项目建设依据1",icon:"input",required:!1,width:"100%",extended:"",key:"de129e60-5cf0-2aa2-c997-3ab2fa5e096e"},{id:"4f060692-1036-66ea-690c-07d5ea18f691",type:"input",name:"占用生态保护线面积",icon:"input",required:!1,width:"100%",extended:"",key:"8725bde2-1e61-73f6-3f91-50339343be53"},{id:"da601264-b06f-b017-922f-aceb59b14c53",type:"input",name:"建设单位统一信用代码",icon:"input",required:!1,width:"100%",extended:"",key:"e0e86b5d-fecb-d5ce-16bc-9625e22f3234"},{id:"d0bb1bc6-06c8-589a-90ff-1dcb256a37a1",type:"radio",name:"该建设项目使用地质灾害区域评估成果",icon:"radio",required:!1,extended:"",options:[{label:"是",value:"是"},{label:"否",value:"否"}],key:"b9d77f53-31bb-37ac-3652-314b5d62740d",defaultValue:"是"},{id:"31f438d4-6d50-1c2e-8782-995fbc24b299",type:"input",name:"是否重点项目",icon:"input",required:!1,width:"100%",extended:"",key:"12847c29-ee42-3901-da7a-dba255b0bced"},{id:"86b8de93-8c88-08cc-8eb7-e7eab59339ab",type:"input",name:"选址许可级别",icon:"input",required:!1,width:"100%",extended:"",key:"f7b991d4-17fb-3e84-c73c-8d2b407076dd"},{id:"8197fa13-fc31-7529-52e0-5b300f22a974",type:"input",name:"证件类型",icon:"input",required:!1,width:"100%",extended:"",key:"31043cd5-80f2-9b61-a461-5782a29b92f0"}]},{type:"col",key:"",options:{span:24,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"50e2cb61-895c-9438-63c1-2153609be9e3",type:"input",name:"证件号码",icon:"input",required:!1,width:"100%",extended:"",key:"3e81948b-351c-1530-c264-9bd342859582"},{id:"f1037d69-b0a2-ef96-35bd-5057d34fdc6b",type:"input",name:"能源需求量及供应方式",icon:"input",required:!1,width:"100%",extended:"",key:"bf170b81-41e6-81d6-e73d-014ff3f0354d"},{id:"777f63e2-9bc9-9945-49f2-752cf08bb07b",type:"input",name:"运输量及运输方式",icon:"input",required:!1,width:"100%",extended:"",key:"8fd77711-0fb4-a21d-9d69-84d9dfb7c6de"},{id:"c72ba21f-eb90-5a39-1a9a-6b419576b3a1",type:"input",name:"“三废”排放量及运输方式",icon:"input",required:!1,width:"100%",extended:"",key:"c583df60-df07-cf24-9d71-8a5d5d25823b"},{id:"a9dc4619-1dad-eb40-fcc0-24215b301040",type:"textarea",name:"变更(延期)原因",icon:"textarea",required:!1,width:"100%",extended:"",rows:"2",key:"4ce04292-f7b7-ad9a-f50f-07f809071973"}]}],options:{gutter:0,justify:"start",align:"top",customClass:"",hidden:!1,flex:!0,responsive:!0,remoteFunc:"",remoteOption:"",tableColumn:!1,subform:!1},name:"栅格布局",key:"fa0a97bc-eefe-ef44-3f64-c0abbae3ce6e",model:"",id:"d55ff071-4835-331b-9c97-801e66601d75"},{id:"0d48a24b-3a07-9f4c-d05b-f31f782b55b6",type:"header",name:"土地利用现状信息",icon:"header",required:!1,extended:"",font:"14",align:"left",color:"#000",cssextended:"",classname:"title-css3",key:"bc0c010b-6ef3-0fe4-c506-8508d55ab081"},{type:"grid",icon:"grid",columns:[{type:"col",key:"",options:{span:24,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"594f2d23-31a0-15d5-4b43-efcb1443a7f9",type:"input",name:"调查现状年份",icon:"input",required:!1,width:"100%",extended:"",key:"755bbf4d-4968-1aea-a756-5091787f204b"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"ea912697-2e24-7001-f9a2-ebb37ba1744d",type:"input",name:"拟用地总面积",icon:"input",required:!1,width:"100%",extended:"",key:"80fb71d2-6288-c2d9-f872-ad79ee9b3f96",prefix:"",suffix:"㎡"},{id:"a013e65a-1943-8fa8-5f1b-972a94343aac",type:"input",name:"园地",icon:"input",required:!1,width:"100%",extended:"",key:"6f212cb1-51e4-eff6-1dba-36aaa84dfba6",suffix:"㎡"},{id:"b0aa9dbd-246a-0100-6855-cd2b81a6ada9",type:"input",name:"建设用地",icon:"input",required:!1,width:"100%",extended:"",key:"193d586e-acf7-4204-9ce0-8052a1d31ce6",suffix:"㎡"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"6cfdc614-a369-ce4f-a883-3c1a6f4e70e7",type:"input",name:"其中农用地",icon:"input",required:!1,width:"100%",extended:"",key:"33e78e68-8ef6-758f-dff8-fce05091b8af",suffix:"㎡"},{id:"9d430b52-2c95-4ee9-1df7-eb3b254c09ba",type:"input",name:"农用地",icon:"input",required:!1,width:"100%",extended:"",key:"ed4c1f83-4741-d8b6-1b7b-f8157b172169",suffix:"㎡"},{id:"75c26878-363f-3847-ac54-ec43f237de50",type:"input",name:"未利用地",icon:"input",required:!1,width:"100%",extended:"",key:"d0e1c73f-ebbe-03bd-8b6c-2318af312c32",suffix:"㎡"}]},{type:"col",key:"",options:{span:8,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[{id:"fbdce3ad-d806-3329-d9ef-6fafd95c4d23",type:"input",name:"其中耕地",icon:"input",required:!1,width:"100%",extended:"",key:"1cd9cde3-792a-0de6-9b00-839bffc54c54",suffix:"㎡"},{id:"f02daa8d-5bc6-4783-fe18-fb34b2ecc4a7",type:"input",name:"其他农用地",icon:"input",required:!1,width:"100%",extended:"",key:"7cf118eb-b8e2-9287-1634-d87313d19537",suffix:"㎡"},{id:"8cdfb92d-f810-8356-5646-36bbe2529feb",type:"input",name:"围填海",icon:"input",required:!1,width:"100%",extended:"",key:"d231d4e4-1422-9466-1294-ddf2fdabc6b6",suffix:"㎡"}]}],options:{gutter:0,justify:"start",align:"top",customClass:"",hidden:!1,flex:!0,responsive:!0,remoteFunc:"",remoteOption:"",tableColumn:!1,subform:!1},name:"栅格布局",key:"c555b2e7-3d98-e300-df3a-59bbfdf8d90c",model:"",id:"8918cdc9-6583-5cda-4d6e-187b3a81c770"}],config:{layout:"horizontal",baseScript:"",dataSource:[],eventScript:[{key:"base",name:"全局变量定义",func:"// const a=1",param:""},{key:"mounted002",name:"mounted",func:"console.info('new fun')",param:""}]}}],_hoisted_1$2={class:"flex-div"},_sfc_main$4=vue.defineComponent({__name:"Header",props:{formId:{type:Number,default:14}},setup(K){const C=K,W=useFormStore();storeToRefs(W);const H=vue.ref(!1),U=vue.ref(!1),G=()=>{H.value=!0},Z=[{icon:"preview",title:"预览",type:"preview"},{icon:"json",title:"json",type:"json"},{icon:"ing",title:"测试数据",type:"ceshi"},{icon:"clear",title:"清除",type:"clear"},{icon:"code",title:"代码",type:"code"},{icon:"save",title:"保存",type:"save"}];let X=vue.ref(),Q=vue.ref("json");function ee(se){switch(se){case"json":X.value=null,Q.value="json",G();break;case"code":Q.value="html",ne();break;case"preview":U.value=!0;break;case"clear":te();break;case"save":re();break;default:ie();break}}const te=()=>{Modal.confirm({title:"确定清除当前表单吗?",icon:vue.createVNode(ExclamationCircleOutlined$1),content:"清除后将不能找回",onOk(){W.formData.list=[]},onCancel(){}})};function ie(){const se=testjson[0];W.setFormData1(se)}function ne(){X.value=generate(),vue.createVNode("h1",{class:"hello"},"HelloWorld"),H.value=!0}const oe=se=>{H.value=!1},re=()=>{const se="/magicapi/zrzy-form/magic/form/form/edit";defHttp.post({url:se,data:{id:C.formId,content:JSON.stringify(W.formData)}},{withToken:!1}).then(ae=>{ae==1&&message.success("保存成功")})};return(se,ae)=>{const ce=vue.resolveComponent("svg-icon"),le=vue.resolveComponent("a-button"),de=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$2,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(Z,ue=>vue.createVNode(le,{type:"text",style:{margin:"auto 5px",color:"rgba(35,46,60,.7)"},onClick:he=>ee(ue.type)},{icon:vue.withCtx(()=>[vue.createVNode(ce,{name:ue.icon,class:"toolbar-css",title:ue.title},null,8,["name","title"]),vue.createTextVNode(" ")]),default:vue.withCtx(()=>[vue.createTextVNode(" "+vue.toDisplayString(ue.title),1)]),_:2},1032,["onClick"])),64))]),vue.createElementVNode("div",null,[vue.createVNode(de,{visible:H.value,"onUpdate:visible":ae[0]||(ae[0]=ue=>H.value=ue),title:"代码",width:"1000px",onOk:oe},{default:vue.withCtx(()=>[H.value?(vue.openBlock(),vue.createBlock(_sfc_main$6,{key:0,code:vue.unref(X),language:vue.unref(Q)},null,8,["code","language"])):vue.createCommentVNode("",!0)]),_:1},8,["visible"]),vue.createVNode(de,{visible:U.value,"onUpdate:visible":ae[1]||(ae[1]=ue=>U.value=ue),title:"预览",width:"1000px",onOk:oe},{default:vue.withCtx(()=>[U.value?(vue.openBlock(),vue.createBlock(_sfc_main$5,{key:0})):vue.createCommentVNode("",!0)]),_:1},8,["visible"])])],64)}}}),Header_vue_vue_type_style_index_0_scoped_02441d5c_lang="",formHeader=_export_sfc(_sfc_main$4,[["__scopeId","data-v-02441d5c"]]),_sfc_main$3=vue.defineComponent({__name:"SqlModule",props:{formId:{type:Number,default:14,required:!0},selectList:{type:Object,default:[]}},emits:["update:selectList"],setup(__props,{expose:__expose,emit}){const props=__props,dataStore=useDataStore();let modalTitle=vue.ref("预览"),visible=vue.ref(!1),currentSelectObj=vue.ref({}),confirmLoading=vue.ref(!1),selectList=vue.ref(props.selectList);vue.watch(()=>props.selectList,K=>{selectList.value=K}),vue.onMounted(()=>{});function edit(K){modalTitle.value="编辑",K.queryType||(K.queryType="sql"),currentSelectObj.value={...K},visible.value=!0}function add(K){currentSelectObj.value={type:K,queryType:"sql",body:"",isList:"0"},modalTitle.value="新增"+(K=="select"?"查询":K=="update"?"编辑":"删除"),visible.value=!0}function handleModalOk(){confirmLoading.value=!0,dataAnalysis().then(K=>{let C=[...selectList.value];currentSelectObj.value.id?C.some(G=>{if(G.id==currentSelectObj.value.id)return G.body=currentSelectObj.value.body,G.name=currentSelectObj.value.name,G.fields=K,G.type=currentSelectObj.value.type,G.queryType=currentSelectObj.value.queryType,G.isList=currentSelectObj.value.isList,!0}):C.push({id:getId(selectList.value),body:currentSelectObj.value.body,name:currentSelectObj.value.name,fields:K,type:currentSelectObj.value.type,queryType:currentSelectObj.value.queryType,isList:currentSelectObj.value.isList});let H=Array.from(C).map(G=>{const{show:Z,...X}=G;return X}),U={id:props.formId,sourceFields:JSON.stringify({data:H})};defHttp.post({url:"/magicapi/zrzy-form/magic/form/form/edit",data:U},{withToken:!0}).then(G=>{if(G.message)message.error("保存失败"+G.message);else{selectList.value=C,message.success("保存成功"),visible.value=!1,emit("update:selectList",selectList.value);let Z=[];if(!currentSelectObj.value.id)K.forEach(X=>{Z.push({value:`${currentSelectObj.value.name}.${X}`})}),currentSelectObj.value.type=="select"?(dataStore.addSelectData(Z),dataStore.addSelectTable({value:`${currentSelectObj.value.name}`})):currentSelectObj.value.type=="update"&&dataStore.addUpdateData(Z);else{let X=C.filter(Q=>Q.type==currentSelectObj.value.type);debugger;X.forEach(Q=>{Q.fields.forEach(ee=>{Z.push({value:`${Q.name}.${ee}`})})}),currentSelectObj.value.type=="select"?(dataStore.setSelectData(Z),dataStore.setSelectData({value:`${currentSelectObj.value.name}`})):currentSelectObj.value.type=="update"&&dataStore.setUpdateData(Z)}console.log(dataStore.$state)}}).catch(G=>{message.error("保存失败"+G)}).finally(()=>{confirmLoading.value=!1})}).catch(K=>{message.info(K),confirmLoading.value=!1})}function dataAnalysis(){return new Promise(async(resolve,reject)=>{if(currentSelectObj.value.queryType=="sql")currentSelectObj.value.type=="delete"?resolve([]):defHttp.post({url:"/magicapi/zrzy-form/sql/fileds",headers:{},data:{sql:currentSelectObj.value.body}},{withToken:!1}).then(K=>{K&&!K.message?resolve(K.result):reject(K.message)});else{if(currentSelectObj.value.type=="select"){let res=await eval(currentSelectObj.value.body);res&&typeof res=="object"&&res.length>0&&resolve(Object.keys(res[0]))}resolve([])}})}function getId(K){return K.length?K.length==1?Number(K[0].id)+1:(K.sort((C,W)=>C.id-W.id),Number(K[K.length-1].id)+1):1}return __expose({add,edit}),(K,C)=>{const W=vue.resolveComponent("a-input"),H=vue.resolveComponent("a-form-item"),U=vue.resolveComponent("a-radio"),G=vue.resolveComponent("a-radio-group"),Z=vue.resolveComponent("a-button"),X=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(X,{visible:vue.unref(visible),"onUpdate:visible":C[5]||(C[5]=Q=>vue.isRef(visible)?visible.value=Q:visible=Q),title:vue.unref(modalTitle),width:"1000px",maskClosable:!1},{footer:vue.withCtx(()=>[vue.createVNode(Z,{key:"back",onClick:C[4]||(C[4]=Q=>vue.isRef(visible)?visible.value=!1:visible=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("关闭")]),_:1}),vue.createVNode(Z,{key:"submit",type:"primary",loading:vue.unref(confirmLoading),onClick:handleModalOk},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(SaveOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode(" 保存 ")]),_:1},8,["loading"])]),default:vue.withCtx(()=>[vue.createVNode(H,{label:"名称"},{default:vue.withCtx(()=>[vue.createVNode(W,{value:vue.unref(currentSelectObj).name,"onUpdate:value":C[0]||(C[0]=Q=>vue.unref(currentSelectObj).name=Q)},null,8,["value"])]),_:1}),vue.createVNode(H,{label:"类型"},{default:vue.withCtx(()=>[vue.createVNode(G,{value:vue.unref(currentSelectObj).queryType,"onUpdate:value":C[1]||(C[1]=Q=>vue.unref(currentSelectObj).queryType=Q)},{default:vue.withCtx(()=>[vue.createVNode(U,{value:"sql"},{default:vue.withCtx(()=>[vue.createTextVNode("table")]),_:1}),vue.createVNode(U,{value:"javascript"},{default:vue.withCtx(()=>[vue.createTextVNode("接口")]),_:1})]),_:1},8,["value"])]),_:1}),vue.createVNode(H,{label:"是否列表"},{default:vue.withCtx(()=>[vue.createVNode(G,{value:vue.unref(currentSelectObj).isList,"onUpdate:value":C[2]||(C[2]=Q=>vue.unref(currentSelectObj).isList=Q)},{default:vue.withCtx(()=>[vue.createVNode(U,{value:"1"},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(U,{value:"0"},{default:vue.withCtx(()=>[vue.createTextVNode("否")]),_:1})]),_:1},8,["value"])]),_:1}),vue.createVNode(monacoEditor,{modelValue:vue.unref(currentSelectObj).body,"onUpdate:modelValue":C[3]||(C[3]=Q=>vue.unref(currentSelectObj).body=Q),language:vue.unref(currentSelectObj).queryType,height:"500px"},null,8,["modelValue","language"])]),_:1},8,["visible","title"])}}}),_hoisted_1$1=["onClick"],_hoisted_2=["onClick"],_hoisted_3={key:0,class:"title_icon"},_hoisted_4=["title"],_hoisted_5={key:0,class:"fields_content"},_hoisted_6={class:"fields_items"},_sfc_main$2=vue.defineComponent({__name:"index",props:{formId:{type:Number,default:14},data:{type:Object,default:[]}},setup(K){const C=K;vue.watch(()=>C.data,(ne,oe)=>{te(ne)});const W=useDataStore(),H=[{title:"我的查询",key:"select"},{title:"我的修改",key:"update"},{title:"我的删除",key:"delete"}];let U=vue.ref(),G=vue.ref(["0"]),Z=vue.ref([]);const X=vue.computed(()=>(ne,oe)=>ne.filter(re=>re.type==oe)),Q=ne=>{U.value.add(ne)};function ee(ne){U.value.edit(ne)}function te(ne){let oe=[],re=[],se=[];if(ne!=null){Z.value=ne.data;let ae=Z.value.filter(le=>le.type=="select"),ce=Z.value.filter(le=>le.type=="update");ae.forEach(le=>{se.push({value:`${le.name}`}),le.fields.forEach(de=>{oe.push({value:`${le.name}.${de}`})})}),ce.forEach(le=>{le.fields.forEach(de=>{re.push({value:`${le.name}.${de}`})})})}W.setSelectData(oe),W.setUpdateData(re),W.setSelectTables(se)}function ie(ne){let oe=Z.value.filter(se=>se.id!==ne.id),re={id:C.formId,sourceFields:JSON.stringify({data:oe})};defHttp.post({url:"/magicapi/zrzy-form/magic/form/form/edit",data:re},{withToken:!0}).then(se=>{se.message?message.error("删除失败"+se.message):message.success("删除成功"),Z.value=oe;let ae=[];oe.filter(le=>le.type==ne.type).forEach(le=>{le.fields.forEach(de=>{ae.push({value:`${le.name}.${de}`})})}),ne.type=="select"?W.setSelectData(ae):ne.type=="update"&&W.setUpdateData(ae),console.log(W.$state)}).catch(se=>{message.error("删除失败")})}return(ne,oe)=>{const re=vue.resolveComponent("a-popconfirm"),se=vue.resolveComponent("a-list-item-meta"),ae=vue.resolveComponent("a-list-item"),ce=vue.resolveComponent("a-list"),le=vue.resolveComponent("a-collapse-panel"),de=vue.resolveComponent("a-collapse");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(de,{activeKey:vue.unref(G),"onUpdate:activeKey":oe[0]||(oe[0]=ue=>vue.isRef(G)?G.value=ue:G=ue)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(H,(ue,he)=>vue.createVNode(le,{key:he,header:ue.title},{extra:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1),{onClick:vue.withModifiers(fe=>Q(ue.key),["stop"])},null,8,["onClick"])]),default:vue.withCtx(()=>[vue.createVNode(ce,{"item-layout":"vertical","data-source":X.value(vue.unref(Z),ue.key)},{renderItem:vue.withCtx(({item:fe})=>[vue.createVNode(ae,null,vue.createSlots({default:vue.withCtx(()=>[vue.createVNode(se,{description:fe.content},{title:vue.withCtx(()=>[vue.createElementVNode("div",{onClick:ge=>fe.show=!fe.show,class:"title_class"},[fe.fields&&fe.fields.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[fe.show?(vue.openBlock(),vue.createBlock(vue.unref(CaretDownOutlined$1),{key:1})):(vue.openBlock(),vue.createBlock(vue.unref(CaretRightOutlined$1),{key:0}))])):vue.createCommentVNode("",!0),vue.createElementVNode("a",{title:fe.name},vue.toDisplayString(fe.name),9,_hoisted_4)],8,_hoisted_2),fe.show&&fe.fields&&fe.fields.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.fields,ge=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_6,vue.toDisplayString(ge),1))),256))])):vue.createCommentVNode("",!0)]),_:2},1032,["description"])]),_:2},[fe.id?{name:"extra",fn:vue.withCtx(()=>[vue.createElementVNode("a",{onClick:ge=>ee(fe),style:{"margin-right":"5px"}},[vue.createVNode(vue.unref(FormOutlined$1)),vue.createTextVNode("编辑")],8,_hoisted_1$1),vue.createVNode(re,{title:"是否确定删除该项?","ok-text":"确定","cancel-text":"取消",onConfirm:ge=>ie(fe)},{default:vue.withCtx(()=>[vue.createElementVNode("a",null,[vue.createVNode(vue.unref(DeleteOutlined$1)),vue.createTextVNode("删除")])]),_:2},1032,["onConfirm"])]),key:"0"}:void 0]),1024)]),_:2},1032,["data-source"])]),_:2},1032,["header"])),64))]),_:1},8,["activeKey"]),vue.createVNode(_sfc_main$3,{ref_key:"moduleRef",ref:U,selectList:vue.unref(Z),"onUpdate:selectList":oe[1]||(oe[1]=ue=>vue.isRef(Z)?Z.value=ue:Z=ue),formId:K.formId},null,8,["selectList","formId"])],64)}}}),index_vue_vue_type_style_index_0_scoped_897842f3_lang="",CDataIndex=_export_sfc(_sfc_main$2,[["__scopeId","data-v-897842f3"]]),_hoisted_1={style:{background:"#fff",textAlign:"center",height:"99%"}},_sfc_main$1=vue.defineComponent({__name:"index",props:{id:{type:Number,default:1}},setup(K){const C=K,W=useFormStore();let H=vue.ref([]),U=vue.ref();G();function G(){const Q="/magicapi/zrzy-form/magic/form/form/list";defHttp.post({url:Q,params:{id:C.id}},{withToken:!0}).then(ee=>{const te=ee.list[0];te.content!=""&&W.setFormData(JSON.parse(te.content)),te.sourceFields!=""&&(H.value=JSON.parse(te.sourceFields))})}const Z=vue.ref("1");function X(Q){U.value=Q}return(Q,ee)=>{const te=vue.resolveComponent("a-tab-pane"),ie=vue.resolveComponent("a-tabs"),ne=vue.resolveComponent("a-layout-sider"),oe=vue.resolveComponent("a-layout-header"),re=vue.resolveComponent("a-layout-content"),se=vue.resolveComponent("a-layout");return vue.openBlock(),vue.createBlock(se,{style:{height:"100%",padding:"5px 5px"}},{default:vue.withCtx(()=>[vue.createVNode(ne,{width:"310",style:{left:0,top:0,bottom:0}},{default:vue.withCtx(()=>[vue.createVNode(ie,{activeKey:Z.value,"onUpdate:activeKey":ee[0]||(ee[0]=ae=>Z.value=ae)},{default:vue.withCtx(()=>[vue.createVNode(te,{key:"1"},{tab:vue.withCtx(()=>[vue.createElementVNode("span",null,[vue.createVNode(vue.unref(DatabaseFilled$1)),vue.createTextVNode(" 数据 ")])]),default:vue.withCtx(()=>[vue.createVNode(CDataIndex,{formId:K.id,data:vue.unref(H)},null,8,["formId","data"])]),_:1}),vue.createVNode(te,{key:"2"},{tab:vue.withCtx(()=>[vue.createElementVNode("span",null,[vue.createVNode(vue.unref(AppstoreFilled$1)),vue.createTextVNode(" 组件 ")])]),default:vue.withCtx(()=>[vue.createVNode(FormTool)]),_:1})]),_:1},8,["activeKey"])]),_:1}),vue.createVNode(se,{style:{margin:"0px 5px"}},{default:vue.withCtx(()=>[vue.createVNode(oe,{style:{background:"#fff",border:"1px solid #e4e7ed",borderBottom:"0px"}},{default:vue.withCtx(()=>[vue.createVNode(formHeader,{formId:K.id},null,8,["formId"])]),_:1}),vue.createVNode(re,{style:{overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1,[vue.createVNode(FormDesign,{onControlConfig:X})])]),_:1})]),_:1}),vue.createVNode(ne,{width:"250",style:{right:0,top:0,bottom:0}},{default:vue.withCtx(()=>[vue.createVNode(formConfig,{configData:vue.unref(U)},null,8,["configData"])]),_:1})]),_:1})}}}),index_vue_vue_type_style_index_0_scoped_4e65ba7b_lang="",CImaginForm=_export_sfc(_sfc_main$1,[["__scopeId","data-v-4e65ba7b"]]),_sfc_main=vue.defineComponent({__name:"FormPublic",props:{data:{type:Object,default:[]}},setup(__props){const props=__props;let list=vue.ref(props.data.config.eventScript);const generateData=generateHtml(props.data.list),columns=[...generateData.columns];let viewData=vue.ref({}),demoRefs=[];vue.onBeforeUpdate(()=>{demoRefs=[]});const setRef=K=>{K&&demoRefs.push(K)};function saveData(){saveFormData(demoRefs)}const generateVue3=vue.defineComponent({template:generateData.html,props:{message:String},setup(){let formData=vue.ref([]),datalist=vue.ref([]),formRef=vue.ref();function onSubmit(){return onSubmitForm(formRef.value)}viewData.value=getData();const tableData=props.data.list.filter(K=>K.type=="table"),ilength=tableData.length;let pagination;ilength>0&&tableData[0].options.pagination&&(pagination=vue.ref({total:0,current:1,pageSize:tableData[0].options.pageSize}));const events={};return generateTs(),{formData,onSubmit,formRef,validateFun,validateInfos,pagination,datalist,columns,viewData,...events,defHttp,onChange};function onChange(K,C){pagination.value=K,C()}function generateTs(){for(let K=0;K<list.value.length;K++){const C=list.value[K];events[C.name]=newFunction(C)}}function newFunction(_data){return _data.param!=""?_params=>{eval(_data.func)}:()=>{eval(_data.func)}}}});return(K,C)=>{const W=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(generateVue3),{ref:setRef}),vue.createVNode(W,{type:"Default",onClick:saveData},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1})],64)}}}),FormPublic_vue_vue_type_style_index_0_lang="",antd="",index={install:K=>{setupStore(K),K.component("CHelloWorld",CHelloWorld),K.component("CImaginForm",CImaginForm),K.component("CGenerateForm",_sfc_main$5),K.component("CGenerateList",_sfc_main)}};/*!-----------------------------------------------------------------------------
|
|
1321
1321
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1322
1322
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
1323
1323
|
* Released under the MIT license
|