onchain-uikit 3.9.4-alpha33 → 3.9.4-alpha34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -113,34 +113,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
113
113
  transform: rotate(360deg);
114
114
  }
115
115
  }
116
- `,v5=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sz,r=A.useContext(ew),n=r.csp;A.useEffect(function(){Li(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},Cz=["icon","className","onClick","style","primaryColor","secondaryColor"],ef={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ez(e){var t=e.primaryColor,r=e.secondaryColor;ef.primaryColor=t,ef.secondaryColor=r||m5(t),ef.calculated=!!r}function Oz(){return Q({},ef)}var ec=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,u=sr(t,Cz),l=ef;if(o&&(l={primaryColor:o,secondaryColor:s||m5(o)}),v5(),iy(gC(r),"icon should be icon definiton, but got ".concat(r)),!gC(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=Q(Q({},h),{},{icon:h.icon(l.primaryColor,l.secondaryColor)})),oy(h.icon,"svg-".concat(h.name),Q({className:n,onClick:a,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};ec.displayName="IconReact";ec.getTwoToneColors=Oz;ec.setTwoToneColors=Ez;function b5(e){var t=g5(e),r=we(t,2),n=r[0],a=r[1];return ec.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Rz(){var e=ec.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];b5("#1890ff");var Vn=P.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,u=e.twoToneColor,l=sr(e,Tz),h=P.useContext(ew),d=h.prefixCls,g=d===void 0?"anticon":d,b=h.rootClassName,y=ge(b,g,re(re({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),w=o;w===void 0&&s&&(w=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=g5(u),_=we(E,2),C=_[0],f=_[1];return P.createElement("span",Q(Q({role:"img","aria-label":n.name},l),{},{ref:t,tabIndex:w,onClick:s,className:y}),P.createElement(ec,{icon:n,primaryColor:C,secondaryColor:f,style:S}))});Vn.displayName="AntdIcon";Vn.getTwoToneColor=Rz;Vn.setTwoToneColor=b5;var Pz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},$z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},Az={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"},Dz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Az}))},y5=P.forwardRef(Dz);process.env.NODE_ENV!=="production"&&(y5.displayName="CaretDownOutlined");var Nz={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"},Mz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Nz}))},_5=P.forwardRef(Mz);process.env.NODE_ENV!=="production"&&(_5.displayName="CaretRightOutlined");var w5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Iz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:w5}))},x5=P.forwardRef(Iz);process.env.NODE_ENV!=="production"&&(x5.displayName="CheckOutlined");var Fz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},S5={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"},iw={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"},jz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:iw}))},C5=P.forwardRef(jz);process.env.NODE_ENV!=="production"&&(C5.displayName="CloseOutlined");var Lz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},zz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Lz}))},E5=P.forwardRef(zz);process.env.NODE_ENV!=="production"&&(E5.displayName="CloudUploadOutlined");var Bz={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"},Hz={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"},Vz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Uz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},O5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},qz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:O5}))},R5=P.forwardRef(qz);process.env.NODE_ENV!=="production"&&(R5.displayName="DownOutlined");var Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Gz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},Xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},Jz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},Qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},eB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},tB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},rB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},ow={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},nB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:ow}))},T5=P.forwardRef(nB);process.env.NODE_ENV!=="production"&&(T5.displayName="LeftOutlined");var P5={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"},aB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:P5}))},Vf=P.forwardRef(aB);process.env.NODE_ENV!=="production"&&(Vf.displayName="LoadingOutlined");var iB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},oB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:iB}))},k5=P.forwardRef(oB);process.env.NODE_ENV!=="production"&&(k5.displayName="MinusOutlined");var sB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},uB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:sB}))},$5=P.forwardRef(uB);process.env.NODE_ENV!=="production"&&($5.displayName="PaperClipOutlined");var A5={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"},lB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:A5}))},sw=P.forwardRef(lB);process.env.NODE_ENV!=="production"&&(sw.displayName="PlusOutlined");var uw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},cB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:uw}))},D5=P.forwardRef(cB);process.env.NODE_ENV!=="production"&&(D5.displayName="RightOutlined");var N5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},dB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:N5}))},kl=P.forwardRef(dB);process.env.NODE_ENV!=="production"&&(kl.displayName="SearchOutlined");var fB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},hB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:fB}))},M5=P.forwardRef(hB);process.env.NODE_ENV!=="production"&&(M5.displayName="UpOutlined");var pB=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],I5=P.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,l=e.children,h=sr(e,pB);iy(!!(n||l),"Should have `component` prop or `children`."),v5();var d=P.useContext(ew),g=d.prefixCls,b=g===void 0?"anticon":g,y=d.rootClassName,w=ge(y,b,r),S=ge(re({},"".concat(b,"-spin"),!!i)),E=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,_=Q(Q({},xz),{},{className:S,style:E,viewBox:a});a||delete _.viewBox;var C=function(){return n?P.createElement(n,Q({},_),l):l?(iy(!!a||P.Children.count(l)===1&&P.isValidElement(l)&&P.Children.only(l).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),P.createElement("svg",Q(Q({},_),{},{viewBox:a}),l)):null},f=s;return f===void 0&&u&&(f=-1),P.createElement("span",Q(Q({role:"img"},h),{},{ref:t,tabIndex:f,onClick:u,className:w}),C())});I5.displayName="AntdIcon";var mB=["type","children"],F5=new Set;function gB(e){return!!(typeof e=="string"&&e.length&&!F5.has(e))}function wp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(gB(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){wp(e,t+1)},n.onerror=function(){wp(e,t+1)}),F5.add(r),document.body.appendChild(n)}}function j5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?wp(t.reverse()):wp([t]));var a=P.forwardRef(function(i,o){var s=i.type,u=i.children,l=sr(i,mB),h=null;return i.type&&(h=P.createElement("use",{xlinkHref:"#".concat(s)})),u&&(h=u),P.createElement(I5,Q(Q(Q({},n),l),{},{ref:o}),h)});return a.displayName="Iconfont",a}function vB(e,t){if(!t)return e;for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=new RegExp(`{(${r})+}`,"g");e=e.replace(n,t[r])}return e}const bB=(e,t={},r)=>vB(t.placeholder||"",t.variate),J=(e,t,r)=>bB(e,t),yB=(e="/font/iconfont.js")=>j5({scriptUrl:e}),Dt=({...e})=>{var y;const t=A.useContext(Qp),r=j5({scriptUrl:t==null?void 0:t.iconScriptUrl}),[n,a]=A.useState(!1),[i,o]=A.useState(null),s=()=>{const w=setTimeout(()=>{a(!0)},e.isMouseHoldShowDeleteMode||1e3);o(w)},u=()=>{i&&(clearTimeout(i),o(null)),a(!1)},l=A.useMemo(()=>e.languageApicode,[]),h=A.useMemo(()=>l&&["English"].includes(l)?"10px":"12px",[l]),d=A.useMemo(()=>l&&["English"].includes(l)?"12px":"14px",[l]),g=A.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),b=e.placement?z.jsxs("div",{className:ge(e.className,ua.placementColor,e.disabled&&ua.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",position:"relative",...e.divStyle},onClick:w=>{e.disabled||e.onDivClick&&e.onDivClick(w)},onMouseEnter:w=>{var S;e.isMouseHoldShowDeleteMode&&s(),(S=e.onMouseEnter)==null||S.call(e,w)},onMouseLeave:w=>{var S;e.isMouseHoldShowDeleteMode&&u(),(S=e.onMouseLeave)==null||S.call(e,w)},children:[z.jsx(ae.Badge,{size:"small",count:e.number&&e.number>9?z.jsx("div",{className:ua.omitPoint,children:"..."}):e.number,children:z.jsx(r,{className:ge(ua.AliIconFont,{[ua.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&ua.placementIcon),style:{..._e.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:w=>{e.disabled||e.onClick&&e.onClick(w)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.isMouseHoldShowDeleteMode&&n&&z.jsx(Dt,{className:ua.holdDeleteIcon,type:"cleanup",tooltip:{title:J("sys.disable.disable",{placeholder:"禁用"}),zIndex:99999},style:{fontSize:"10px",cursor:"pointer",marginLeft:"10px",color:"rgba(216,216,216,0.8)"},onClick:w=>{var S;(S=e.onClickHoldDelete)==null||S.call(e),w.stopPropagation()}}),e.placement=="bottom"?z.jsx("div",{style:{..._e.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:z.jsx("span",{className:ge(ua.iconText,{[ua.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((y=e.children)==null?void 0:y.length)%2==0,"initial"),fontSize:h,lineHeight:d,WebkitLineClamp:g},children:e.children})}):z.jsx("span",{className:ge(ua.iconText,{[ua.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):z.jsx("span",{children:z.jsx(r,{className:ge(ua.AliIconFont,{[ua.disabled]:e.disabled,disabled:e.disabled},e.className),style:{..._e.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:w=>{e.disabled||e.onClick&&e.onClick(w)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?z.jsx(ae.Tooltip,{...e.tooltip,children:b}):e.popover?z.jsx(ae.Popover,{placement:"left",trigger:"click",...e.popover,children:b}):e.button?z.jsx("span",{className:ua.btn_convider,children:z.jsx(ae.Button,{className:ua.btn_icon,icon:b,children:e.children})}):b},_B="_badge_16esh_1",wB={badge:_B};var qd=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(qd||{});const sy=e=>z.jsx(ae.Badge,{...e,className:`${wB.badge} ${(e==null?void 0:e.className)??""}`});var L5=(e=>(e.LightGreen="LightGreen",e.Pink="Pink",e.Blue="blue",e.BlackBlue="BlackBlue",e.Gray="Gray",e))(L5||{});const uy={[qd.Delay]:"#eb5d52",[qd.Healthy]:"#1b8413",LightGreen:"#02CCCC",[qd.Warning]:"#fca400",[qd.Failure]:"#d0d0d0",blue:"#1371c1",Pink:"#f9a5c6",BlackBlue:"#2B4C7E",Gray:"#B0B1B5"},Pl=class Pl{constructor(){Ar(this,"cached",{});if(Pl.instance)return Pl.instance;Pl.instance=this}setCached(t,r){return this.cached[t]=r,r}};Ar(Pl,"instance");let ly=Pl;const xB=({healthStatus:e,healthList:t,healthId:r})=>{if(e)return z.jsx(sy,{color:uy[e]});if(t&&r){const n=new ly,a=n.cached[r]||n.setCached(r,t.find(i=>(i.id||i.value)==r));return a?z.jsx(sy,{color:uy[a.apicode]}):null}else return z.jsx(z.Fragment,{})},rs=e=>fi.isMosaic(e.value)?z.jsx(co,{}):_e.isNil(e.value)?z.jsx(z.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:z.jsx(z.Fragment,{}):z.jsx(em,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),X0=e=>{const t=A.useRef(null);return A.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),z.jsx(ae.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},tc=({loadingSize:e=32,...t})=>{const r=z.jsx(Vf,{style:{fontSize:e},spin:!0});return t.children?z.jsx(ae.Spin,{...t,indicator:r,children:t.children}):z.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:z.jsx(ae.Spin,{spinning:!0,indicator:r})})},SB=e=>z.jsxs("div",{className:"sk-cube-container loading-hidden",children:[z.jsxs("div",{className:"sk-cube-grid",children:[z.jsx("div",{className:"sk-cube sk-cube1"}),z.jsx("div",{className:"sk-cube sk-cube2"}),z.jsx("div",{className:"sk-cube sk-cube3"}),z.jsx("div",{className:"sk-cube sk-cube4"}),z.jsx("div",{className:"sk-cube sk-cube5"}),z.jsx("div",{className:"sk-cube sk-cube6"}),z.jsx("div",{className:"sk-cube sk-cube7"}),z.jsx("div",{className:"sk-cube sk-cube8"}),z.jsx("div",{className:"sk-cube sk-cube9"})]}),z.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),CB="_modal_wrapper_loading_1tlvq_1",EB="_global_spin_1tlvq_15",bC={modal_wrapper_loading:CB,global_spin:EB},OB=e=>e.isSpinning?z.jsx("div",{className:bC.modal_wrapper_loading,children:z.jsx(ae.Spin,{spinning:e.isSpinning,className:bC.global_spin,indicator:z.jsx(Vf,{style:{fontSize:48},spin:!0})})}):void 0;var Gv={},Ci={},yC;function Ui(){if(yC)return Ci;yC=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.getBreaksNeededForEmptyLineAfter=Ci.getBreaksNeededForEmptyLineBefore=Ci.selectWord=Ci.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var o=function(h){return h===" "||h.charCodeAt(0)===10},s=0,u=a.length,l=i;l-1>-1;l--)if(o(a[l-1])){s=l;break}for(var l=i;l<a.length;l++)if(o(a[l])){u=l;break}return{start:s,end:u}}Ci.getSurroundingWord=e;function t(a){var i=a.text,o=a.selection;return i&&i.length&&o.start===o.end?e(i,o.start):o}Ci.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var o=2,s=!0,u=i-1;u>=0&&o>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:o--,s=!1;break;default:return o}return s?0:o}Ci.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var o=2,s=!0,u=i;u<a.length&&o>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{o--,s=!1;break}default:return o}return s?0:o}return Ci.getBreaksNeededForEmptyLineAfter=n,Ci}var Qs={},Gc={},Kc={},_C;function rc(){if(_C)return Kc;_C=1;/*!
116
+ `,v5=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sz,r=A.useContext(ew),n=r.csp;A.useEffect(function(){Li(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},Cz=["icon","className","onClick","style","primaryColor","secondaryColor"],ef={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ez(e){var t=e.primaryColor,r=e.secondaryColor;ef.primaryColor=t,ef.secondaryColor=r||m5(t),ef.calculated=!!r}function Oz(){return Q({},ef)}var ec=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,u=sr(t,Cz),l=ef;if(o&&(l={primaryColor:o,secondaryColor:s||m5(o)}),v5(),iy(gC(r),"icon should be icon definiton, but got ".concat(r)),!gC(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=Q(Q({},h),{},{icon:h.icon(l.primaryColor,l.secondaryColor)})),oy(h.icon,"svg-".concat(h.name),Q({className:n,onClick:a,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};ec.displayName="IconReact";ec.getTwoToneColors=Oz;ec.setTwoToneColors=Ez;function b5(e){var t=g5(e),r=we(t,2),n=r[0],a=r[1];return ec.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Rz(){var e=ec.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];b5("#1890ff");var Vn=P.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,u=e.twoToneColor,l=sr(e,Tz),h=P.useContext(ew),d=h.prefixCls,g=d===void 0?"anticon":d,b=h.rootClassName,y=ge(b,g,re(re({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),w=o;w===void 0&&s&&(w=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=g5(u),_=we(E,2),C=_[0],f=_[1];return P.createElement("span",Q(Q({role:"img","aria-label":n.name},l),{},{ref:t,tabIndex:w,onClick:s,className:y}),P.createElement(ec,{icon:n,primaryColor:C,secondaryColor:f,style:S}))});Vn.displayName="AntdIcon";Vn.getTwoToneColor=Rz;Vn.setTwoToneColor=b5;var Pz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},$z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},Az={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"},Dz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Az}))},y5=P.forwardRef(Dz);process.env.NODE_ENV!=="production"&&(y5.displayName="CaretDownOutlined");var Nz={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"},Mz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Nz}))},_5=P.forwardRef(Mz);process.env.NODE_ENV!=="production"&&(_5.displayName="CaretRightOutlined");var w5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Iz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:w5}))},x5=P.forwardRef(Iz);process.env.NODE_ENV!=="production"&&(x5.displayName="CheckOutlined");var Fz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},S5={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"},iw={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"},jz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:iw}))},C5=P.forwardRef(jz);process.env.NODE_ENV!=="production"&&(C5.displayName="CloseOutlined");var Lz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},zz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Lz}))},E5=P.forwardRef(zz);process.env.NODE_ENV!=="production"&&(E5.displayName="CloudUploadOutlined");var Bz={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"},Hz={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"},Vz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Uz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},O5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},qz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:O5}))},R5=P.forwardRef(qz);process.env.NODE_ENV!=="production"&&(R5.displayName="DownOutlined");var Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Yz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Gz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Kz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},Xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},Jz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},Qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},eB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},tB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},rB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},ow={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},nB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:ow}))},T5=P.forwardRef(nB);process.env.NODE_ENV!=="production"&&(T5.displayName="LeftOutlined");var P5={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"},aB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:P5}))},Vf=P.forwardRef(aB);process.env.NODE_ENV!=="production"&&(Vf.displayName="LoadingOutlined");var iB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},oB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:iB}))},k5=P.forwardRef(oB);process.env.NODE_ENV!=="production"&&(k5.displayName="MinusOutlined");var sB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},uB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:sB}))},$5=P.forwardRef(uB);process.env.NODE_ENV!=="production"&&($5.displayName="PaperClipOutlined");var A5={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"},lB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:A5}))},sw=P.forwardRef(lB);process.env.NODE_ENV!=="production"&&(sw.displayName="PlusOutlined");var uw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},cB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:uw}))},D5=P.forwardRef(cB);process.env.NODE_ENV!=="production"&&(D5.displayName="RightOutlined");var N5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},dB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:N5}))},kl=P.forwardRef(dB);process.env.NODE_ENV!=="production"&&(kl.displayName="SearchOutlined");var fB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},hB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:fB}))},M5=P.forwardRef(hB);process.env.NODE_ENV!=="production"&&(M5.displayName="UpOutlined");var pB=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],I5=P.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,l=e.children,h=sr(e,pB);iy(!!(n||l),"Should have `component` prop or `children`."),v5();var d=P.useContext(ew),g=d.prefixCls,b=g===void 0?"anticon":g,y=d.rootClassName,w=ge(y,b,r),S=ge(re({},"".concat(b,"-spin"),!!i)),E=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,_=Q(Q({},xz),{},{className:S,style:E,viewBox:a});a||delete _.viewBox;var C=function(){return n?P.createElement(n,Q({},_),l):l?(iy(!!a||P.Children.count(l)===1&&P.isValidElement(l)&&P.Children.only(l).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),P.createElement("svg",Q(Q({},_),{},{viewBox:a}),l)):null},f=s;return f===void 0&&u&&(f=-1),P.createElement("span",Q(Q({role:"img"},h),{},{ref:t,tabIndex:f,onClick:u,className:w}),C())});I5.displayName="AntdIcon";var mB=["type","children"],F5=new Set;function gB(e){return!!(typeof e=="string"&&e.length&&!F5.has(e))}function wp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(gB(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){wp(e,t+1)},n.onerror=function(){wp(e,t+1)}),F5.add(r),document.body.appendChild(n)}}function j5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?wp(t.reverse()):wp([t]));var a=P.forwardRef(function(i,o){var s=i.type,u=i.children,l=sr(i,mB),h=null;return i.type&&(h=P.createElement("use",{xlinkHref:"#".concat(s)})),u&&(h=u),P.createElement(I5,Q(Q(Q({},n),l),{},{ref:o}),h)});return a.displayName="Iconfont",a}const vB=(e="/font/iconfont.js")=>j5({scriptUrl:e}),Dt=({...e})=>{var y;const t=A.useContext(Qp),r=j5({scriptUrl:t==null?void 0:t.iconScriptUrl}),[n,a]=A.useState(!1),[i,o]=A.useState(null),s=()=>{const w=setTimeout(()=>{a(!0)},e.isMouseHoldShowDeleteMode||1e3);o(w)},u=()=>{i&&(clearTimeout(i),o(null)),a(!1)},l=A.useMemo(()=>e.languageApicode,[]),h=A.useMemo(()=>l&&["English"].includes(l)?"10px":"12px",[l]),d=A.useMemo(()=>l&&["English"].includes(l)?"12px":"14px",[l]),g=A.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),b=e.placement?z.jsxs("div",{className:ge(e.className,ua.placementColor,e.disabled&&ua.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",position:"relative",...e.divStyle},onClick:w=>{e.disabled||e.onDivClick&&e.onDivClick(w)},onMouseEnter:w=>{var S;e.isMouseHoldShowDeleteMode&&s(),(S=e.onMouseEnter)==null||S.call(e,w)},onMouseLeave:w=>{var S;e.isMouseHoldShowDeleteMode&&u(),(S=e.onMouseLeave)==null||S.call(e,w)},children:[z.jsx(ae.Badge,{size:"small",count:e.number&&e.number>9?z.jsx("div",{className:ua.omitPoint,children:"..."}):e.number,children:z.jsx(r,{className:ge(ua.AliIconFont,{[ua.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&ua.placementIcon),style:{..._e.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:w=>{e.disabled||e.onClick&&e.onClick(w)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.isMouseHoldShowDeleteMode&&n&&z.jsx(Dt,{className:ua.holdDeleteIcon,type:"cleanup",style:{fontSize:"10px",cursor:"pointer",marginLeft:"10px",color:"rgba(216,216,216,0.8)"},onClick:w=>{var S;(S=e.onClickHoldDelete)==null||S.call(e),w.stopPropagation()}}),e.placement=="bottom"?z.jsx("div",{style:{..._e.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:z.jsx("span",{className:ge(ua.iconText,{[ua.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((y=e.children)==null?void 0:y.length)%2==0,"initial"),fontSize:h,lineHeight:d,WebkitLineClamp:g},children:e.children})}):z.jsx("span",{className:ge(ua.iconText,{[ua.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):z.jsx("span",{children:z.jsx(r,{className:ge(ua.AliIconFont,{[ua.disabled]:e.disabled,disabled:e.disabled},e.className),style:{..._e.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:w=>{e.disabled||e.onClick&&e.onClick(w)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})});return e.tooltip?z.jsx(ae.Tooltip,{...e.tooltip,children:b}):e.popover?z.jsx(ae.Popover,{placement:"left",trigger:"click",...e.popover,children:b}):e.button?z.jsx("span",{className:ua.btn_convider,children:z.jsx(ae.Button,{className:ua.btn_icon,icon:b,children:e.children})}):b},bB="_badge_16esh_1",yB={badge:bB};var qd=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(qd||{});const sy=e=>z.jsx(ae.Badge,{...e,className:`${yB.badge} ${(e==null?void 0:e.className)??""}`});var L5=(e=>(e.LightGreen="LightGreen",e.Pink="Pink",e.Blue="blue",e.BlackBlue="BlackBlue",e.Gray="Gray",e))(L5||{});const uy={[qd.Delay]:"#eb5d52",[qd.Healthy]:"#1b8413",LightGreen:"#02CCCC",[qd.Warning]:"#fca400",[qd.Failure]:"#d0d0d0",blue:"#1371c1",Pink:"#f9a5c6",BlackBlue:"#2B4C7E",Gray:"#B0B1B5"},Pl=class Pl{constructor(){Ar(this,"cached",{});if(Pl.instance)return Pl.instance;Pl.instance=this}setCached(t,r){return this.cached[t]=r,r}};Ar(Pl,"instance");let ly=Pl;const _B=({healthStatus:e,healthList:t,healthId:r})=>{if(e)return z.jsx(sy,{color:uy[e]});if(t&&r){const n=new ly,a=n.cached[r]||n.setCached(r,t.find(i=>(i.id||i.value)==r));return a?z.jsx(sy,{color:uy[a.apicode]}):null}else return z.jsx(z.Fragment,{})},rs=e=>fi.isMosaic(e.value)?z.jsx(co,{}):_e.isNil(e.value)?z.jsx(z.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:z.jsx(z.Fragment,{}):z.jsx(em,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),X0=e=>{const t=A.useRef(null);return A.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),z.jsx(ae.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},tc=({loadingSize:e=32,...t})=>{const r=z.jsx(Vf,{style:{fontSize:e},spin:!0});return t.children?z.jsx(ae.Spin,{...t,indicator:r,children:t.children}):z.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:z.jsx(ae.Spin,{spinning:!0,indicator:r})})},wB=e=>z.jsxs("div",{className:"sk-cube-container loading-hidden",children:[z.jsxs("div",{className:"sk-cube-grid",children:[z.jsx("div",{className:"sk-cube sk-cube1"}),z.jsx("div",{className:"sk-cube sk-cube2"}),z.jsx("div",{className:"sk-cube sk-cube3"}),z.jsx("div",{className:"sk-cube sk-cube4"}),z.jsx("div",{className:"sk-cube sk-cube5"}),z.jsx("div",{className:"sk-cube sk-cube6"}),z.jsx("div",{className:"sk-cube sk-cube7"}),z.jsx("div",{className:"sk-cube sk-cube8"}),z.jsx("div",{className:"sk-cube sk-cube9"})]}),z.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),xB="_modal_wrapper_loading_1tlvq_1",SB="_global_spin_1tlvq_15",bC={modal_wrapper_loading:xB,global_spin:SB},CB=e=>e.isSpinning?z.jsx("div",{className:bC.modal_wrapper_loading,children:z.jsx(ae.Spin,{spinning:e.isSpinning,className:bC.global_spin,indicator:z.jsx(Vf,{style:{fontSize:48},spin:!0})})}):void 0;var Gv={},Ci={},yC;function Ui(){if(yC)return Ci;yC=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.getBreaksNeededForEmptyLineAfter=Ci.getBreaksNeededForEmptyLineBefore=Ci.selectWord=Ci.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var o=function(h){return h===" "||h.charCodeAt(0)===10},s=0,u=a.length,l=i;l-1>-1;l--)if(o(a[l-1])){s=l;break}for(var l=i;l<a.length;l++)if(o(a[l])){u=l;break}return{start:s,end:u}}Ci.getSurroundingWord=e;function t(a){var i=a.text,o=a.selection;return i&&i.length&&o.start===o.end?e(i,o.start):o}Ci.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var o=2,s=!0,u=i-1;u>=0&&o>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:o--,s=!1;break;default:return o}return s?0:o}Ci.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var o=2,s=!0,u=i;u<a.length&&o>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{o--,s=!1;break}default:return o}return s?0:o}return Ci.getBreaksNeededForEmptyLineAfter=n,Ci}var Qs={},Gc={},Kc={},_C;function rc(){if(_C)return Kc;_C=1;/*!
117
117
  Copyright (c) 2018 Jed Watson.
118
118
  Licensed under the MIT License (MIT), see
119
119
  http://jedwatson.github.io/classnames
120
- */Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.classNames=void 0;function e(a){return typeof a=="string"}function t(a){return Array.isArray(a)&&a.length>0}function r(a){return typeof a=="object"}function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var o=[],s=0;s<a.length;s++){var u=a[s];if(u){if(e(u))o.push(u);else if(t(u)){var l=n.apply(null,u);l&&o.push(l)}else if(r(u))for(var h in u)u.hasOwnProperty(h)&&u[h]&&o.push(h)}}return o.join(" ")}return Kc.classNames=n,Kc}var wC;function z5(){if(wC)return Gc;wC=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.ToolbarButtonGroup=void 0;var e=A,t=rc(),r=function(n){return e.createElement("ul",{className:t.classNames("mde-header-group",{hidden:n.hidden})},n.children)};return Gc.ToolbarButtonGroup=r,Gc}var eu={},xC;function B5(){if(xC)return eu;xC=1;var e=eu&&eu.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},e.apply(this,arguments)};Object.defineProperty(eu,"__esModule",{value:!0}),eu.ToolbarButton=void 0;var t=A,r={tabIndex:-1},n=function(a){var i=a.buttonComponentClass,o=a.buttonContent,s=a.buttonProps,u=a.onClick,l=a.readOnly,h=a.name,d=e(e({},r),s||{}),g=i||"button";return t.createElement("li",{className:"mde-header-item"},t.createElement(g,e(e({"data-name":h},d),{onClick:u,disabled:l,type:"button"}),o))};return eu.ToolbarButton=n,eu}var Xc={},SC;function H5(){if(SC)return Xc;SC=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.MdeFontAwesomeIcon=void 0;var e=A,t=function(r){var n=r.icon,a=n;switch(n){case"header":a="heading";break;case"quote":a="quote-right";break;case"unordered-list":a="tasks";break;case"ordered-list":a="list-ol";break;case"checked-list":a="tasks";break;default:a=n}return e.createElement("i",{className:"fas fa-"+a,"aria-hidden":"true"})};return Xc.MdeFontAwesomeIcon=t,Xc}var tu={},CC;function RB(){if(CC)return tu;CC=1;var e=tu&&tu.__extends||function(){var a=function(i,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])},a(i,o)};return function(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(i,o);function s(){this.constructor=i}i.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}();Object.defineProperty(tu,"__esModule",{value:!0}),tu.Preview=void 0;var t=A,r=rc(),n=function(a){e(i,a);function i(o){var s=a.call(this,o)||this;return s.state={loading:!0},s}return i.prototype.componentDidMount=function(){this.generatePreview()},i.prototype.componentDidUpdate=function(o,s){this.props.markdown!==o.markdown&&this.generatePreview()},i.prototype.generatePreview=function(){var o=this,s=this.props,u=s.markdown,l=s.generateMarkdownPreview;l(u).then(function(h){o.setState({preview:h,loading:!1})})},i.prototype.render=function(){var o=this.props,s=o.classes,u=o.minHeight,l=o.loadingPreview,h=o.refObject,d=o.heightUnits,g=this.state,b=g.preview,y=g.loading,w=y?l:b,S;typeof w=="string"?S=t.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:w||"<p>&nbsp;</p>"},ref:h}):S=t.createElement("div",{className:"mde-preview-content"},w);var E=u&&d?u+10+d:u+10;return t.createElement("div",{className:r.classNames("mde-preview",s,{loading:y}),style:{minHeight:E},"data-testid":"mde-preview"},S)},i}(t.Component);return tu.Preview=n,tu}var Do={},Zc={},EC;function TB(){if(EC)return Zc;EC=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.getCaretCoordinates=void 0;var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],t=typeof window<"u",r=t&&window.mozInnerScreenX!=null;function n(a,i){if(!t)throw new Error("getCaretCoordinates should only be called in a browser");var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var s=o.style,u=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;s.whiteSpace="pre-wrap",s.wordWrap="break-word",s.position="absolute",s.visibility="hidden",e.forEach(function(d){s[d]=u[d]}),r?a.scrollHeight>parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",o.textContent=a.value.substring(0,a.selectionStart),i&&(o.textContent+=i);var l=document.createElement("span");l.textContent=a.value.substring(a.selectionEnd)||".",o.appendChild(l);var h={top:l.offsetTop+parseInt(u.borderTopWidth),left:l.offsetLeft+parseInt(u.borderLeftWidth),lineHeight:parseInt(u.lineHeight)};return document.body.removeChild(o),h}return Zc.getCaretCoordinates=n,Zc}var Jc={},OC;function V5(){if(OC)return Jc;OC=1;/*!
120
+ */Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.classNames=void 0;function e(a){return typeof a=="string"}function t(a){return Array.isArray(a)&&a.length>0}function r(a){return typeof a=="object"}function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var o=[],s=0;s<a.length;s++){var u=a[s];if(u){if(e(u))o.push(u);else if(t(u)){var l=n.apply(null,u);l&&o.push(l)}else if(r(u))for(var h in u)u.hasOwnProperty(h)&&u[h]&&o.push(h)}}return o.join(" ")}return Kc.classNames=n,Kc}var wC;function z5(){if(wC)return Gc;wC=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.ToolbarButtonGroup=void 0;var e=A,t=rc(),r=function(n){return e.createElement("ul",{className:t.classNames("mde-header-group",{hidden:n.hidden})},n.children)};return Gc.ToolbarButtonGroup=r,Gc}var eu={},xC;function B5(){if(xC)return eu;xC=1;var e=eu&&eu.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},e.apply(this,arguments)};Object.defineProperty(eu,"__esModule",{value:!0}),eu.ToolbarButton=void 0;var t=A,r={tabIndex:-1},n=function(a){var i=a.buttonComponentClass,o=a.buttonContent,s=a.buttonProps,u=a.onClick,l=a.readOnly,h=a.name,d=e(e({},r),s||{}),g=i||"button";return t.createElement("li",{className:"mde-header-item"},t.createElement(g,e(e({"data-name":h},d),{onClick:u,disabled:l,type:"button"}),o))};return eu.ToolbarButton=n,eu}var Xc={},SC;function H5(){if(SC)return Xc;SC=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.MdeFontAwesomeIcon=void 0;var e=A,t=function(r){var n=r.icon,a=n;switch(n){case"header":a="heading";break;case"quote":a="quote-right";break;case"unordered-list":a="tasks";break;case"ordered-list":a="list-ol";break;case"checked-list":a="tasks";break;default:a=n}return e.createElement("i",{className:"fas fa-"+a,"aria-hidden":"true"})};return Xc.MdeFontAwesomeIcon=t,Xc}var tu={},CC;function EB(){if(CC)return tu;CC=1;var e=tu&&tu.__extends||function(){var a=function(i,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])},a(i,o)};return function(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(i,o);function s(){this.constructor=i}i.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}();Object.defineProperty(tu,"__esModule",{value:!0}),tu.Preview=void 0;var t=A,r=rc(),n=function(a){e(i,a);function i(o){var s=a.call(this,o)||this;return s.state={loading:!0},s}return i.prototype.componentDidMount=function(){this.generatePreview()},i.prototype.componentDidUpdate=function(o,s){this.props.markdown!==o.markdown&&this.generatePreview()},i.prototype.generatePreview=function(){var o=this,s=this.props,u=s.markdown,l=s.generateMarkdownPreview;l(u).then(function(h){o.setState({preview:h,loading:!1})})},i.prototype.render=function(){var o=this.props,s=o.classes,u=o.minHeight,l=o.loadingPreview,h=o.refObject,d=o.heightUnits,g=this.state,b=g.preview,y=g.loading,w=y?l:b,S;typeof w=="string"?S=t.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:w||"<p>&nbsp;</p>"},ref:h}):S=t.createElement("div",{className:"mde-preview-content"},w);var E=u&&d?u+10+d:u+10;return t.createElement("div",{className:r.classNames("mde-preview",s,{loading:y}),style:{minHeight:E},"data-testid":"mde-preview"},S)},i}(t.Component);return tu.Preview=n,tu}var Do={},Zc={},EC;function OB(){if(EC)return Zc;EC=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.getCaretCoordinates=void 0;var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],t=typeof window<"u",r=t&&window.mozInnerScreenX!=null;function n(a,i){if(!t)throw new Error("getCaretCoordinates should only be called in a browser");var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var s=o.style,u=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;s.whiteSpace="pre-wrap",s.wordWrap="break-word",s.position="absolute",s.visibility="hidden",e.forEach(function(d){s[d]=u[d]}),r?a.scrollHeight>parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",o.textContent=a.value.substring(0,a.selectionStart),i&&(o.textContent+=i);var l=document.createElement("span");l.textContent=a.value.substring(a.selectionEnd)||".",o.appendChild(l);var h={top:l.offsetTop+parseInt(u.borderTopWidth),left:l.offsetLeft+parseInt(u.borderLeftWidth),lineHeight:parseInt(u.lineHeight)};return document.body.removeChild(o),h}return Zc.getCaretCoordinates=n,Zc}var Jc={},OC;function V5(){if(OC)return Jc;OC=1;/*!
121
121
  * The MIT License
122
122
  Copyright (c) 2018 Dmitriy Kubyshkin
123
123
  Copied from https://github.com/grassator/insert-text-at-cursor
124
- */Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.insertText=void 0;function e(r,n){if(r.focus(),document.selection){var a=document.selection.createRange();a.text=n,a.collapse(!1),a.select();return}var i=document.execCommand("insertText",!1,n);if(!i){var o=r.selectionStart,s=r.selectionEnd;if(typeof r.setRangeText=="function")r.setRangeText(n);else if(t(r)){var u=document.createTextNode(n),l=r.firstChild;if(!l)r.appendChild(u);else{for(var h=0,d=null,g=null,b=document.createRange();l&&(d===null||g===null);){var y=l.nodeValue.length;o>=h&&o<=h+y&&b.setStart(d=l,o-h),s>=h&&s<=h+y&&b.setEnd(g=l,s-h),h+=y,l=l.nextSibling}o!==s&&b.deleteContents(),b.insertNode(u)}}else{var w=r.value;r.value=w.slice(0,o)+n+w.slice(s)}r.setSelectionRange(o+n.length,o+n.length);var S=document.createEvent("UIEvent");S.initEvent("input",!0,!1),r.dispatchEvent(S)}}Jc.insertText=e;function t(r){if(r.nodeName!=="TEXTAREA")return!1;var n;if(typeof n>"u"){var a=document.createElement("textarea");a.value="1",n=!!a.firstChild}return n}return Jc}var Qc={},RC;function PB(){if(RC)return Qc;RC=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.mod=void 0;function e(t,r){return(t%r+r)%r}return Qc.mod=e,Qc}var ed={},TC;function U5(){if(TC)return ed;TC=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.SuggestionsDropdown=void 0;var e=A,t=rc(),r=function(n){var a=n.classes,i=n.suggestions,o=n.caret,s=n.onSuggestionSelected,u=n.suggestionsAutoplace,l=n.focusIndex,h=n.textAreaRef,d=function(_){_.preventDefault();var C=parseInt(_.currentTarget.attributes["data-index"].value);s(C)},g=function(_){return _.preventDefault()},b=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),y=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),w=o.left-h.current.scrollLeft,S=o.top-h.current.scrollTop,E={};return u&&S+h.current.getBoundingClientRect().top>y/2?E.bottom=h.current.offsetHeight-S:E.top=S,u&&w+h.current.getBoundingClientRect().left>b/2?E.right=h.current.offsetWidth-w:E.left=w,e.createElement("ul",{className:t.classNames("mde-suggestions",a),style:E},i.map(function(_,C){return e.createElement("li",{onClick:d,onMouseDown:g,key:C,"aria-selected":l===C?"true":"false","data-index":""+C},_.preview)}))};return ed.SuggestionsDropdown=r,ed}var PC;function kB(){if(PC)return Do;PC=1;var e=Do&&Do.__extends||function(){var l=function(h,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(g[y]=b[y])},l(h,d)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(h,d);function g(){this.constructor=h}h.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),t=Do&&Do.__assign||function(){return t=Object.assign||function(l){for(var h,d=1,g=arguments.length;d<g;d++){h=arguments[d];for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(l[b]=h[b])}return l},t.apply(this,arguments)};Object.defineProperty(Do,"__esModule",{value:!0}),Do.TextArea=void 0;var r=A,n=rc(),a=TB(),i=V5(),o=PB(),s=U5(),u=function(l){e(h,l);function h(d){var g=l.call(this,d)||this;return g.currentLoadSuggestionsPromise=Promise.resolve(void 0),g.suggestionsPromiseIndex=0,g.getTextArea=function(){return g.props.refObject.current},g.handleOnChange=function(b){var y=g.props.onChange;y(b.target.value)},g.handleBlur=function(){var b=g.state.mention;b&&g.setState({mention:{status:"inactive",suggestions:[]}})},g.startLoadingSuggestions=function(b){var y=++g.suggestionsPromiseIndex,w=g.props.loadSuggestions;g.currentLoadSuggestionsPromise=g.currentLoadSuggestionsPromise.then(function(){return w(b,g.state.mention.triggeredBy)}).then(function(S){if(g.state.mention.status!=="inactive")return g.suggestionsPromiseIndex===y&&(!S||!S.length?g.setState({mention:{status:"inactive",suggestions:[]}}):g.setState({mention:t(t({},g.state.mention),{status:"active",suggestions:S,focusIndex:0})}),g.suggestionsPromiseIndex=0),Promise.resolve()})},g.loadEmptySuggestion=function(b,y){var w=a.getCaretCoordinates(b,y);g.startLoadingSuggestions(""),g.setState({mention:{status:"loading",startPosition:b.selectionStart+1,caret:w,suggestions:[],triggeredBy:y}})},g.handleSuggestionSelected=function(b){var y=g.state.mention;g.getTextArea().selectionStart=y.startPosition-1,g.props.value.substr(g.getTextArea().selectionStart,g.getTextArea().selectionEnd-g.getTextArea().selectionStart),i.insertText(g.getTextArea(),y.suggestions[b].value+" "),g.setState({mention:{status:"inactive",suggestions:[]}})},g.handleKeyDown=function(b){if(g.props.onPossibleKeyCommand){var y=g.props.onPossibleKeyCommand(b);if(y){b.preventDefault(),g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});return}}if(g.suggestionsEnabled()){var w=b.key,S=b.shiftKey,E=b.currentTarget,_=E.selectionStart,C=g.state.mention;switch(C.status){case"loading":case"active":if(w==="Escape"||w==="Backspace"&&_<=g.state.mention.startPosition)g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});else if(C.status==="active"&&(w==="ArrowUp"||w==="ArrowDown")&&!S){b.preventDefault();var f=w==="ArrowUp"?-1:1;g.setState({mention:t(t({},C),{focusIndex:o.mod(C.focusIndex+f,C.suggestions.length)})})}else w==="Enter"&&C.status==="active"&&C.suggestions.length&&(b.preventDefault(),g.handleSuggestionSelected(C.focusIndex));break}}},g.handleKeyUp=function(b){var y=b.key,w=g.state.mention,S=g.props,E=S.suggestionTriggerCharacters,_=S.value;switch(w.status){case"loading":case"active":if(y==="Backspace"){var C=_.substr(w.startPosition,g.getTextArea().selectionStart-w.startPosition);g.startLoadingSuggestions(C),w.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})})}break;case"inactive":if(y==="Backspace"){var f=_.charAt(g.getTextArea().selectionStart-1),p=E.includes(_.charAt(g.getTextArea().selectionStart-1));p&&g.loadEmptySuggestion(b.currentTarget,f)}break}},g.handleKeyPress=function(b){var y=g.props,w=y.suggestionTriggerCharacters,S=y.value,E=g.state.mention,_=b.key;switch(E.status){case"loading":case"active":if(_===" "){g.setState({mention:t(t({},g.state.mention),{status:"inactive"})});return}var C=S.substr(E.startPosition,g.getTextArea().selectionStart-E.startPosition)+_;g.startLoadingSuggestions(C),E.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})});break;case"inactive":if(w.indexOf(b.key)===-1||!/\s|\(|\[|^.{0}$/.test(S.charAt(g.getTextArea().selectionStart-1)))return;g.loadEmptySuggestion(b.currentTarget,b.key);break}},g.state={mention:{status:"inactive",suggestions:[]}},g}return h.prototype.suggestionsEnabled=function(){return this.props.suggestionTriggerCharacters&&this.props.suggestionTriggerCharacters.length&&this.props.loadSuggestions},h.prototype.render=function(){var d=this,g=this.props,b=g.classes,y=g.readOnly,w=g.textAreaProps,S=g.height,E=g.heightUnits,_=g.value,C=g.suggestionTriggerCharacters,f=g.loadSuggestions,p=g.suggestionsDropdownClasses,v=g.textAreaComponent,x=g.onPaste,k=g.onDrop,O=C&&C.length&&f,$=this.state.mention,D=v||"textarea",V=S&&E?S+E:S;return r.createElement("div",{className:"mde-textarea-wrapper"},r.createElement(D,t({className:n.classNames("mde-text",b),style:{height:V},ref:this.props.refObject,readOnly:y,value:_,"data-testid":"text-area"},w,{onChange:function(I){var M;(M=w==null?void 0:w.onChange)===null||M===void 0||M.call(w,I),d.handleOnChange(I)},onBlur:function(I){var M;(M=w==null?void 0:w.onBlur)===null||M===void 0||M.call(w,I),O&&d.handleBlur()},onKeyDown:function(I){var M;(M=w==null?void 0:w.onKeyDown)===null||M===void 0||M.call(w,I),d.handleKeyDown(I)},onKeyUp:function(I){var M;(M=w==null?void 0:w.onKeyUp)===null||M===void 0||M.call(w,I),O&&d.handleKeyUp(I)},onKeyPress:function(I){var M;(M=w==null?void 0:w.onKeyPress)===null||M===void 0||M.call(w,I),O&&d.handleKeyPress(I)},onPaste:function(I){var M;(M=w==null?void 0:w.onPaste)===null||M===void 0||M.call(w,I),x(I)},onDragOver:function(I){I.preventDefault(),I.stopPropagation()},onDrop:function(I){var M;(M=w==null?void 0:w.onDrop)===null||M===void 0||M.call(w,I),k(I),I.preventDefault()}})),$.status==="active"&&$.suggestions.length&&r.createElement(s.SuggestionsDropdown,{classes:p,caret:$.caret,suggestions:$.suggestions,onSuggestionSelected:this.handleSuggestionSelected,suggestionsAutoplace:this.props.suggestionsAutoplace,focusIndex:$.focusIndex,textAreaRef:this.props.refObject}))},h}(r.Component);return Do.TextArea=u,Do}var No={},kC;function $B(){if(kC)return No;kC=1;var e=No&&No.__extends||function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(h[g]=d[g])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");s(u,l);function h(){this.constructor=u}u.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),t=No&&No.__assign||function(){return t=Object.assign||function(s){for(var u,l=1,h=arguments.length;l<h;l++){u=arguments[l];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},t.apply(this,arguments)};Object.defineProperty(No,"__esModule",{value:!0}),No.Toolbar=void 0;var r=A,n=rc(),a=z5(),i=B5(),o=function(s){e(u,s);function u(){var l=s!==null&&s.apply(this,arguments)||this;return l.handleTabChange=function(h){var d=l.props.onTabChange;d(h)},l}return u.prototype.render=function(){var l=this,h=this.props.l18n,d=this.props,g=d.classes,b=d.children,y=d.buttons,w=d.onCommand,S=d.readOnly,E=d.disablePreview,_=d.writeButtonProps,C=d.previewButtonProps,f=d.buttonProps;if((!y||y.length===0)&&!b)return null;var p=r.createElement("div",{className:"mde-tabs"},r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="write"}),onClick:function(){return l.handleTabChange("write")}},_),h.write),r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="preview"}),onClick:function(){return l.handleTabChange("preview")}},C),h.preview));return r.createElement("div",{className:n.classNames("mde-header",g)},!E&&p,y.map(function(v,x){return r.createElement(a.ToolbarButtonGroup,{key:x,hidden:l.props.tab==="preview"},v.map(function(k,O){return r.createElement(i.ToolbarButton,{key:O,name:k.commandName,buttonContent:k.buttonContent,buttonProps:t(t({},f||{}),k.buttonProps),onClick:function(){return w(k.commandName)},readOnly:S,buttonComponentClass:k.buttonComponentClass})}))}))},u}(r.Component);return No.Toolbar=o,No}var Na={},Mo={},td={},$C;function AB(){if($C)return td;$C=1,Object.defineProperty(td,"__esModule",{value:!0}),td.headerCommand=void 0;var e=Ui();function t(r,n,a){var i=e.selectWord({text:r.text,selection:r.selection}),o=n.setSelectionRange(i),s=n.replaceSelection(""+a+o.selectedText);n.setSelectionRange({start:s.selection.end-o.selectedText.length,end:s.selection.end})}return td.headerCommand={buttonProps:{"aria-label":"Add header"},execute:function(r){var n=r.initialState,a=r.textApi;t(n,a,"### ")}},td}var rd={},AC;function DB(){if(AC)return rd;AC=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.boldCommand=void 0;var e=Ui();return rd.boldCommand={buttonProps:{"aria-label":"Add bold text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("**"+i.selectedText+"**");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="b"}},rd}var nd={},DC;function NB(){if(DC)return nd;DC=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.italicCommand=void 0;var e=Ui();return nd.italicCommand={buttonProps:{"aria-label":"Add italic text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("*"+i.selectedText+"*");n.setSelectionRange({start:o.selection.end-1-i.selectedText.length,end:o.selection.end-1})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="i"}},nd}var ad={},NC;function MB(){if(NC)return ad;NC=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.strikeThroughCommand=void 0;var e=Ui();return ad.strikeThroughCommand={buttonProps:{"aria-label":"Add strikethrough text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("~~"+i.selectedText+"~~");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})}},ad}var id={},MC;function IB(){if(MC)return id;MC=1,Object.defineProperty(id,"__esModule",{value:!0}),id.linkCommand=void 0;var e=Ui();return id.linkCommand={buttonProps:{"aria-label":"Add a link"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("["+i.selectedText+"](url)");n.setSelectionRange({start:o.selection.end-6-i.selectedText.length,end:o.selection.end-6})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="k"}},id}var od={},IC;function FB(){if(IC)return od;IC=1,Object.defineProperty(od,"__esModule",{value:!0}),od.quoteCommand=void 0;var e=Ui();return od.quoteCommand={buttonProps:{"aria-label":"Insert a quote"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),s=Array(o+1).join(`
124
+ */Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.insertText=void 0;function e(r,n){if(r.focus(),document.selection){var a=document.selection.createRange();a.text=n,a.collapse(!1),a.select();return}var i=document.execCommand("insertText",!1,n);if(!i){var o=r.selectionStart,s=r.selectionEnd;if(typeof r.setRangeText=="function")r.setRangeText(n);else if(t(r)){var u=document.createTextNode(n),l=r.firstChild;if(!l)r.appendChild(u);else{for(var h=0,d=null,g=null,b=document.createRange();l&&(d===null||g===null);){var y=l.nodeValue.length;o>=h&&o<=h+y&&b.setStart(d=l,o-h),s>=h&&s<=h+y&&b.setEnd(g=l,s-h),h+=y,l=l.nextSibling}o!==s&&b.deleteContents(),b.insertNode(u)}}else{var w=r.value;r.value=w.slice(0,o)+n+w.slice(s)}r.setSelectionRange(o+n.length,o+n.length);var S=document.createEvent("UIEvent");S.initEvent("input",!0,!1),r.dispatchEvent(S)}}Jc.insertText=e;function t(r){if(r.nodeName!=="TEXTAREA")return!1;var n;if(typeof n>"u"){var a=document.createElement("textarea");a.value="1",n=!!a.firstChild}return n}return Jc}var Qc={},RC;function RB(){if(RC)return Qc;RC=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.mod=void 0;function e(t,r){return(t%r+r)%r}return Qc.mod=e,Qc}var ed={},TC;function U5(){if(TC)return ed;TC=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.SuggestionsDropdown=void 0;var e=A,t=rc(),r=function(n){var a=n.classes,i=n.suggestions,o=n.caret,s=n.onSuggestionSelected,u=n.suggestionsAutoplace,l=n.focusIndex,h=n.textAreaRef,d=function(_){_.preventDefault();var C=parseInt(_.currentTarget.attributes["data-index"].value);s(C)},g=function(_){return _.preventDefault()},b=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),y=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),w=o.left-h.current.scrollLeft,S=o.top-h.current.scrollTop,E={};return u&&S+h.current.getBoundingClientRect().top>y/2?E.bottom=h.current.offsetHeight-S:E.top=S,u&&w+h.current.getBoundingClientRect().left>b/2?E.right=h.current.offsetWidth-w:E.left=w,e.createElement("ul",{className:t.classNames("mde-suggestions",a),style:E},i.map(function(_,C){return e.createElement("li",{onClick:d,onMouseDown:g,key:C,"aria-selected":l===C?"true":"false","data-index":""+C},_.preview)}))};return ed.SuggestionsDropdown=r,ed}var PC;function TB(){if(PC)return Do;PC=1;var e=Do&&Do.__extends||function(){var l=function(h,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(g[y]=b[y])},l(h,d)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(h,d);function g(){this.constructor=h}h.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),t=Do&&Do.__assign||function(){return t=Object.assign||function(l){for(var h,d=1,g=arguments.length;d<g;d++){h=arguments[d];for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(l[b]=h[b])}return l},t.apply(this,arguments)};Object.defineProperty(Do,"__esModule",{value:!0}),Do.TextArea=void 0;var r=A,n=rc(),a=OB(),i=V5(),o=RB(),s=U5(),u=function(l){e(h,l);function h(d){var g=l.call(this,d)||this;return g.currentLoadSuggestionsPromise=Promise.resolve(void 0),g.suggestionsPromiseIndex=0,g.getTextArea=function(){return g.props.refObject.current},g.handleOnChange=function(b){var y=g.props.onChange;y(b.target.value)},g.handleBlur=function(){var b=g.state.mention;b&&g.setState({mention:{status:"inactive",suggestions:[]}})},g.startLoadingSuggestions=function(b){var y=++g.suggestionsPromiseIndex,w=g.props.loadSuggestions;g.currentLoadSuggestionsPromise=g.currentLoadSuggestionsPromise.then(function(){return w(b,g.state.mention.triggeredBy)}).then(function(S){if(g.state.mention.status!=="inactive")return g.suggestionsPromiseIndex===y&&(!S||!S.length?g.setState({mention:{status:"inactive",suggestions:[]}}):g.setState({mention:t(t({},g.state.mention),{status:"active",suggestions:S,focusIndex:0})}),g.suggestionsPromiseIndex=0),Promise.resolve()})},g.loadEmptySuggestion=function(b,y){var w=a.getCaretCoordinates(b,y);g.startLoadingSuggestions(""),g.setState({mention:{status:"loading",startPosition:b.selectionStart+1,caret:w,suggestions:[],triggeredBy:y}})},g.handleSuggestionSelected=function(b){var y=g.state.mention;g.getTextArea().selectionStart=y.startPosition-1,g.props.value.substr(g.getTextArea().selectionStart,g.getTextArea().selectionEnd-g.getTextArea().selectionStart),i.insertText(g.getTextArea(),y.suggestions[b].value+" "),g.setState({mention:{status:"inactive",suggestions:[]}})},g.handleKeyDown=function(b){if(g.props.onPossibleKeyCommand){var y=g.props.onPossibleKeyCommand(b);if(y){b.preventDefault(),g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});return}}if(g.suggestionsEnabled()){var w=b.key,S=b.shiftKey,E=b.currentTarget,_=E.selectionStart,C=g.state.mention;switch(C.status){case"loading":case"active":if(w==="Escape"||w==="Backspace"&&_<=g.state.mention.startPosition)g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});else if(C.status==="active"&&(w==="ArrowUp"||w==="ArrowDown")&&!S){b.preventDefault();var f=w==="ArrowUp"?-1:1;g.setState({mention:t(t({},C),{focusIndex:o.mod(C.focusIndex+f,C.suggestions.length)})})}else w==="Enter"&&C.status==="active"&&C.suggestions.length&&(b.preventDefault(),g.handleSuggestionSelected(C.focusIndex));break}}},g.handleKeyUp=function(b){var y=b.key,w=g.state.mention,S=g.props,E=S.suggestionTriggerCharacters,_=S.value;switch(w.status){case"loading":case"active":if(y==="Backspace"){var C=_.substr(w.startPosition,g.getTextArea().selectionStart-w.startPosition);g.startLoadingSuggestions(C),w.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})})}break;case"inactive":if(y==="Backspace"){var f=_.charAt(g.getTextArea().selectionStart-1),p=E.includes(_.charAt(g.getTextArea().selectionStart-1));p&&g.loadEmptySuggestion(b.currentTarget,f)}break}},g.handleKeyPress=function(b){var y=g.props,w=y.suggestionTriggerCharacters,S=y.value,E=g.state.mention,_=b.key;switch(E.status){case"loading":case"active":if(_===" "){g.setState({mention:t(t({},g.state.mention),{status:"inactive"})});return}var C=S.substr(E.startPosition,g.getTextArea().selectionStart-E.startPosition)+_;g.startLoadingSuggestions(C),E.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})});break;case"inactive":if(w.indexOf(b.key)===-1||!/\s|\(|\[|^.{0}$/.test(S.charAt(g.getTextArea().selectionStart-1)))return;g.loadEmptySuggestion(b.currentTarget,b.key);break}},g.state={mention:{status:"inactive",suggestions:[]}},g}return h.prototype.suggestionsEnabled=function(){return this.props.suggestionTriggerCharacters&&this.props.suggestionTriggerCharacters.length&&this.props.loadSuggestions},h.prototype.render=function(){var d=this,g=this.props,b=g.classes,y=g.readOnly,w=g.textAreaProps,S=g.height,E=g.heightUnits,_=g.value,C=g.suggestionTriggerCharacters,f=g.loadSuggestions,p=g.suggestionsDropdownClasses,v=g.textAreaComponent,x=g.onPaste,k=g.onDrop,O=C&&C.length&&f,$=this.state.mention,D=v||"textarea",V=S&&E?S+E:S;return r.createElement("div",{className:"mde-textarea-wrapper"},r.createElement(D,t({className:n.classNames("mde-text",b),style:{height:V},ref:this.props.refObject,readOnly:y,value:_,"data-testid":"text-area"},w,{onChange:function(I){var M;(M=w==null?void 0:w.onChange)===null||M===void 0||M.call(w,I),d.handleOnChange(I)},onBlur:function(I){var M;(M=w==null?void 0:w.onBlur)===null||M===void 0||M.call(w,I),O&&d.handleBlur()},onKeyDown:function(I){var M;(M=w==null?void 0:w.onKeyDown)===null||M===void 0||M.call(w,I),d.handleKeyDown(I)},onKeyUp:function(I){var M;(M=w==null?void 0:w.onKeyUp)===null||M===void 0||M.call(w,I),O&&d.handleKeyUp(I)},onKeyPress:function(I){var M;(M=w==null?void 0:w.onKeyPress)===null||M===void 0||M.call(w,I),O&&d.handleKeyPress(I)},onPaste:function(I){var M;(M=w==null?void 0:w.onPaste)===null||M===void 0||M.call(w,I),x(I)},onDragOver:function(I){I.preventDefault(),I.stopPropagation()},onDrop:function(I){var M;(M=w==null?void 0:w.onDrop)===null||M===void 0||M.call(w,I),k(I),I.preventDefault()}})),$.status==="active"&&$.suggestions.length&&r.createElement(s.SuggestionsDropdown,{classes:p,caret:$.caret,suggestions:$.suggestions,onSuggestionSelected:this.handleSuggestionSelected,suggestionsAutoplace:this.props.suggestionsAutoplace,focusIndex:$.focusIndex,textAreaRef:this.props.refObject}))},h}(r.Component);return Do.TextArea=u,Do}var No={},kC;function PB(){if(kC)return No;kC=1;var e=No&&No.__extends||function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(h[g]=d[g])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");s(u,l);function h(){this.constructor=u}u.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),t=No&&No.__assign||function(){return t=Object.assign||function(s){for(var u,l=1,h=arguments.length;l<h;l++){u=arguments[l];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},t.apply(this,arguments)};Object.defineProperty(No,"__esModule",{value:!0}),No.Toolbar=void 0;var r=A,n=rc(),a=z5(),i=B5(),o=function(s){e(u,s);function u(){var l=s!==null&&s.apply(this,arguments)||this;return l.handleTabChange=function(h){var d=l.props.onTabChange;d(h)},l}return u.prototype.render=function(){var l=this,h=this.props.l18n,d=this.props,g=d.classes,b=d.children,y=d.buttons,w=d.onCommand,S=d.readOnly,E=d.disablePreview,_=d.writeButtonProps,C=d.previewButtonProps,f=d.buttonProps;if((!y||y.length===0)&&!b)return null;var p=r.createElement("div",{className:"mde-tabs"},r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="write"}),onClick:function(){return l.handleTabChange("write")}},_),h.write),r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="preview"}),onClick:function(){return l.handleTabChange("preview")}},C),h.preview));return r.createElement("div",{className:n.classNames("mde-header",g)},!E&&p,y.map(function(v,x){return r.createElement(a.ToolbarButtonGroup,{key:x,hidden:l.props.tab==="preview"},v.map(function(k,O){return r.createElement(i.ToolbarButton,{key:O,name:k.commandName,buttonContent:k.buttonContent,buttonProps:t(t({},f||{}),k.buttonProps),onClick:function(){return w(k.commandName)},readOnly:S,buttonComponentClass:k.buttonComponentClass})}))}))},u}(r.Component);return No.Toolbar=o,No}var Na={},Mo={},td={},$C;function kB(){if($C)return td;$C=1,Object.defineProperty(td,"__esModule",{value:!0}),td.headerCommand=void 0;var e=Ui();function t(r,n,a){var i=e.selectWord({text:r.text,selection:r.selection}),o=n.setSelectionRange(i),s=n.replaceSelection(""+a+o.selectedText);n.setSelectionRange({start:s.selection.end-o.selectedText.length,end:s.selection.end})}return td.headerCommand={buttonProps:{"aria-label":"Add header"},execute:function(r){var n=r.initialState,a=r.textApi;t(n,a,"### ")}},td}var rd={},AC;function $B(){if(AC)return rd;AC=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.boldCommand=void 0;var e=Ui();return rd.boldCommand={buttonProps:{"aria-label":"Add bold text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("**"+i.selectedText+"**");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="b"}},rd}var nd={},DC;function AB(){if(DC)return nd;DC=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.italicCommand=void 0;var e=Ui();return nd.italicCommand={buttonProps:{"aria-label":"Add italic text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("*"+i.selectedText+"*");n.setSelectionRange({start:o.selection.end-1-i.selectedText.length,end:o.selection.end-1})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="i"}},nd}var ad={},NC;function DB(){if(NC)return ad;NC=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.strikeThroughCommand=void 0;var e=Ui();return ad.strikeThroughCommand={buttonProps:{"aria-label":"Add strikethrough text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("~~"+i.selectedText+"~~");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})}},ad}var id={},MC;function NB(){if(MC)return id;MC=1,Object.defineProperty(id,"__esModule",{value:!0}),id.linkCommand=void 0;var e=Ui();return id.linkCommand={buttonProps:{"aria-label":"Add a link"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("["+i.selectedText+"](url)");n.setSelectionRange({start:o.selection.end-6-i.selectedText.length,end:o.selection.end-6})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="k"}},id}var od={},IC;function MB(){if(IC)return od;IC=1,Object.defineProperty(od,"__esModule",{value:!0}),od.quoteCommand=void 0;var e=Ui();return od.quoteCommand={buttonProps:{"aria-label":"Insert a quote"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),s=Array(o+1).join(`
125
125
  `),u=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),l=Array(u+1).join(`
126
- `);n.replaceSelection(s+"> "+i.selectedText+l);var h=i.selection.start+o+2,d=h+i.selectedText.length;n.setSelectionRange({start:h,end:d})}},od}var sd={},FC;function jB(){if(FC)return sd;FC=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.codeCommand=void 0;var e=Ui();return sd.codeCommand={buttonProps:{"aria-label":"Insert code"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a);if(i.selectedText.indexOf(`
126
+ `);n.replaceSelection(s+"> "+i.selectedText+l);var h=i.selection.start+o+2,d=h+i.selectedText.length;n.setSelectionRange({start:h,end:d})}},od}var sd={},FC;function IB(){if(FC)return sd;FC=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.codeCommand=void 0;var e=Ui();return sd.codeCommand={buttonProps:{"aria-label":"Insert code"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a);if(i.selectedText.indexOf(`
127
127
  `)===-1){n.replaceSelection("`"+i.selectedText+"`");var o=i.selection.start+1,s=o+i.selectedText.length;n.setSelectionRange({start:o,end:s});return}var u=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),l=Array(u+1).join(`
128
128
  `),h=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),d=Array(h+1).join(`
129
- `);n.replaceSelection(l+"```\n"+i.selectedText+"\n```"+d);var g=i.selection.start+u+4,b=g+i.selectedText.length;n.setSelectionRange({start:g,end:b})}},sd}var Kv={},jC;function LB(){return jC||(jC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkedListCommand=e.orderedListCommand=e.unorderedListCommand=e.makeList=e.insertBeforeEachLine=void 0;var t=Ui();function r(a,i){var o=a.split(/\n/),s=0,u=o.map(function(l,h){if(typeof i=="string")return s+=i.length,i+l;if(typeof i=="function"){var d=i(l,h);return s+=d.length,i(l,h)+l}throw Error("insertion is expected to be either a string or a function")}).join(`
129
+ `);n.replaceSelection(l+"```\n"+i.selectedText+"\n```"+d);var g=i.selection.start+u+4,b=g+i.selectedText.length;n.setSelectionRange({start:g,end:b})}},sd}var Kv={},jC;function FB(){return jC||(jC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkedListCommand=e.orderedListCommand=e.unorderedListCommand=e.makeList=e.insertBeforeEachLine=void 0;var t=Ui();function r(a,i){var o=a.split(/\n/),s=0,u=o.map(function(l,h){if(typeof i=="string")return s+=i.length,i+l;if(typeof i=="function"){var d=i(l,h);return s+=d.length,i(l,h)+l}throw Error("insertion is expected to be either a string or a function")}).join(`
130
130
  `);return{modifiedText:u,insertionLength:s}}e.insertBeforeEachLine=r;var n=function(a,i,o){var s=t.selectWord({text:a.text,selection:a.selection}),u=i.setSelectionRange(s),l=t.getBreaksNeededForEmptyLineBefore(u.text,u.selection.start),h=Array(l+1).join(`
131
131
  `),d=t.getBreaksNeededForEmptyLineAfter(u.text,u.selection.end),g=Array(d+1).join(`
132
132
  `),b=r(u.selectedText,o);i.replaceSelection(""+h+b.modifiedText+g);var y=u.selectedText.indexOf(`
133
- `)===-1?b.insertionLength:0,w=u.selection.start+l+y,S=w+b.modifiedText.length-y;i.setSelectionRange({start:w,end:S})};e.makeList=n,e.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,"- ")}},e.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(s,u){return u+1+". "})}},e.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(s,u){return"- [ ] "})}}}(Kv)),Kv}var ud={},LC;function zB(){if(LC)return ud;LC=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.imageCommand=void 0;var e=Ui();return ud.imageCommand={buttonProps:{"aria-label":"Add image"},execute:function(t){var r=t.initialState,n=t.textApi,a=n.setSelectionRange(e.selectWord({text:r.text,selection:r.selection})),i=a.selectedText||"https://example.com/your-image.png";n.replaceSelection("![]("+i+")"),n.setSelectionRange({start:a.selection.start+4,end:a.selection.start+4+i.length})}},ud}var Io={},Fo={},zC;function BB(){if(zC)return Fo;zC=1;var e=Fo&&Fo.__awaiter||function(n,a,i,o){function s(u){return u instanceof i?u:new i(function(l){l(u)})}return new(i||(i=Promise))(function(u,l){function h(b){try{g(o.next(b))}catch(y){l(y)}}function d(b){try{g(o.throw(b))}catch(y){l(y)}}function g(b){b.done?u(b.value):s(b.value).then(h,d)}g((o=o.apply(n,a||[])).next())})},t=Fo&&Fo.__generator||function(n,a){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,s,u,l;return l={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function h(g){return function(b){return d([g,b])}}function d(g){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(u=g[0]&2?s.return:g[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,g[1])).done)return u;switch(s=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return i.label++,{value:g[1],done:!1};case 5:i.label++,s=g[1],g=[0];continue;case 7:g=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){i=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){i.label=g[1];break}if(g[0]===6&&i.label<u[1]){i.label=u[1],u=g;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(g);break}u[2]&&i.ops.pop(),i.trys.pop();continue}g=a.call(n,i)}catch(b){g=[6,b],s=0}finally{o=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.readFileAsync=void 0;function r(n){return e(this,void 0,void 0,function(){return t(this,function(a){return[2,new Promise(function(i,o){var s=new FileReader;s.onload=function(){if(typeof s.result=="string")throw new Error("reader.result is expected to be an ArrayBuffer");i(s.result)},s.onerror=o,s.readAsArrayBuffer(n)})]})})}return Fo.readFileAsync=r,Fo}var BC;function HB(){if(BC)return Io;BC=1;var e=Io&&Io.__awaiter||function(l,h,d,g){function b(y){return y instanceof d?y:new d(function(w){w(y)})}return new(d||(d=Promise))(function(y,w){function S(C){try{_(g.next(C))}catch(f){w(f)}}function E(C){try{_(g.throw(C))}catch(f){w(f)}}function _(C){C.done?y(C.value):b(C.value).then(S,E)}_((g=g.apply(l,h||[])).next())})},t=Io&&Io.__generator||function(l,h){var d={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},g,b,y,w;return w={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function S(_){return function(C){return E([_,C])}}function E(_){if(g)throw new TypeError("Generator is already executing.");for(;d;)try{if(g=1,b&&(y=_[0]&2?b.return:_[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,_[1])).done)return y;switch(b=0,y&&(_=[_[0]&2,y.value]),_[0]){case 0:case 1:y=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,b=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(y=d.trys,!(y=y.length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){d=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){d.label=_[1];break}if(_[0]===6&&d.label<y[1]){d.label=y[1],y=_;break}if(y&&d.label<y[2]){d.label=y[2],d.ops.push(_);break}y[2]&&d.ops.pop(),d.trys.pop();continue}_=h.call(l,d)}catch(C){_=[6,C],b=0}finally{g=y=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};Object.defineProperty(Io,"__esModule",{value:!0}),Io.saveImageCommand=void 0;var r=BB(),n=Ui();function a(l){var h=[];for(var d in l){var g=l[d];g.kind==="file"&&h.push(g.getAsFile())}return h}function i(l){for(var h=[],d=0;d<l.length;d++)h.push(l[0]);return h}function o(l,h){var d=h.multiple,g=h.accept,b=l;if(d||(b=b.slice(0,1)),g){var y=g.split(","),w=new Set(y.filter(function(_){return/^\.\w+/.test(_)}).map(function(_){return _.split(".")[1]})),S=new Set(y.filter(function(_){return/^[-\w.]+\/[-\w.]+$/.test(_)})),E=new Set(y.filter(function(_){return/(audio|video|image)\/\*/.test(_)}).map(function(_){return _.split("/")[0]}));b=b.filter(function(_){return w.has(_.name.split(".")[1])||S.has(_.type)||E.has(_.type.split("/")[0])})}return b}Io.saveImageCommand={execute:function(l){l.initialState;var h=l.textApi,d=l.context,g=l.l18n;return e(this,void 0,void 0,function(){var b,y,w,S,E,_,C,f,p,v,x,k,O,$,D,V,I,M,F,T,N,j,H,B;return t(this,function(U){switch(U.label){case 0:if(!d)throw new Error("wrong context");b=d,y=b.event,w=b.pasteOptions,S=w.saveImage,E=w.multiple,_=w.accept,C=s(d)?a(y.clipboardData.items):u(d)?a(y.dataTransfer.items):i(y.target.files),f=o(C,{multiple:E,accept:_}),p=[];for(v in f)p.push(v);x=0,U.label=1;case 1:return x<p.length?(k=p[x],O=h.getState(),$=n.getBreaksNeededForEmptyLineBefore(O.text,O.selection.start),D=Array($+1).join(`
134
- `),V=D+"!["+g.uploadingImage+"]()",h.replaceSelection(V),I=C[k],[4,r.readFileAsync(I)]):[3,5];case 2:return M=U.sent(),F=S(M,I),[4,F.next()];case 3:T=U.sent().value,N=h.getState(),j=N.text.substr(O.selection.start,V.length),j===V&&(h.setSelectionRange({start:O.selection.start,end:O.selection.start+V.length}),H=T?D+"![image]("+T+")":"",B=H.length-V.length,h.replaceSelection(H),h.setSelectionRange({start:N.selection.start+B,end:N.selection.end+B})),U.label=4;case 4:return x++,[3,1];case 5:return[2]}})})}};function s(l){return l.event.clipboardData!==void 0}function u(l){return l.event.dataTransfer!==void 0}return Io}var HC;function lw(){if(HC)return Mo;HC=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.getDefaultSaveImageCommandName=Mo.getDefaultCommandMap=Mo.getDefaultToolbarCommands=void 0;var e=AB(),t=DB(),r=NB(),n=MB(),a=IB(),i=FB(),o=jB(),s=LB(),u=zB(),l=HB();function h(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]}Mo.getDefaultToolbarCommands=h;function d(){return{header:e.headerCommand,bold:t.boldCommand,italic:r.italicCommand,strikethrough:n.strikeThroughCommand,link:a.linkCommand,quote:i.quoteCommand,code:o.codeCommand,image:u.imageCommand,"unordered-list":s.unorderedListCommand,"ordered-list":s.orderedListCommand,"checked-list":s.checkedListCommand,"save-image":l.saveImageCommand}}Mo.getDefaultCommandMap=d;function g(){return"save-image"}return Mo.getDefaultSaveImageCommandName=g,Mo}var ld={},VC;function VB(){return VC||(VC=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.enL18n=void 0,ld.enL18n={write:"Write",preview:"Preview",uploadingImage:"Uploading image...",pasteDropSelect:"Attach files by dragging & dropping, selecting or pasting them."}),ld}var ru={},cd={},UC;function UB(){if(UC)return cd;UC=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.SvgIcon=void 0;var e=A,t=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"tasks",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})),r=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ol",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),n=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ul",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),a=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"image",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"})),i=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"code",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})),o=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M512 80v128c0 137.018-63.772 236.324-193.827 271.172-15.225 4.08-30.173-7.437-30.173-23.199v-33.895c0-10.057 6.228-19.133 15.687-22.55C369.684 375.688 408 330.054 408 256h-72c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h128c26.51 0 48 21.49 48 48zM176 32H48C21.49 32 0 53.49 0 80v128c0 26.51 21.49 48 48 48h72c0 74.054-38.316 119.688-104.313 143.528C6.228 402.945 0 412.021 0 422.078v33.895c0 15.762 14.948 27.279 30.173 23.199C160.228 444.324 224 345.018 224 208V80c0-26.51-21.49-48-48-48z"})),s=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"link",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})),u=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"strikethrough",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})),l=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"italic",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})),h=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"heading",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"})),d=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"bold",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})),g=function(b){var y=b.icon;switch(y){case"header":return h;case"bold":return d;case"italic":return l;case"strikethrough":return u;case"link":return s;case"quote":return o;case"code":return i;case"image":return a;case"unordered-list":return n;case"ordered-list":return r;case"checked-list":return t;default:return null}};return cd.SvgIcon=g,cd}var qC;function q5(){return qC||(qC=1,function(e){var t=ru&&ru.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=ru&&ru.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(H5(),e),r(UB(),e)}(ru)),ru}var la={},dd={},WC;function qB(){if(WC)return dd;WC=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.extractKeyActivatedCommands=void 0;function e(t){var r=[];for(var n in t)t.hasOwnProperty(n)&&t[n].handleKeyCommand&&r.push(n);return r}return dd.extractKeyActivatedCommands=e,dd}var YC;function WB(){if(YC)return la;YC=1;var e=la&&la.__assign||function(){return e=Object.assign||function(h){for(var d,g=1,b=arguments.length;g<b;g++){d=arguments[g];for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(h[y]=d[y])}return h},e.apply(this,arguments)},t=la&&la.__awaiter||function(h,d,g,b){function y(w){return w instanceof g?w:new g(function(S){S(w)})}return new(g||(g=Promise))(function(w,S){function E(f){try{C(b.next(f))}catch(p){S(p)}}function _(f){try{C(b.throw(f))}catch(p){S(p)}}function C(f){f.done?w(f.value):y(f.value).then(E,_)}C((b=b.apply(h,d||[])).next())})},r=la&&la.__generator||function(h,d){var g={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},b,y,w,S;return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(C){return function(f){return _([C,f])}}function _(C){if(b)throw new TypeError("Generator is already executing.");for(;g;)try{if(b=1,y&&(w=C[0]&2?y.return:C[0]?y.throw||((w=y.return)&&w.call(y),0):y.next)&&!(w=w.call(y,C[1])).done)return w;switch(y=0,w&&(C=[C[0]&2,w.value]),C[0]){case 0:case 1:w=C;break;case 4:return g.label++,{value:C[1],done:!1};case 5:g.label++,y=C[1],C=[0];continue;case 7:C=g.ops.pop(),g.trys.pop();continue;default:if(w=g.trys,!(w=w.length>0&&w[w.length-1])&&(C[0]===6||C[0]===2)){g=0;continue}if(C[0]===3&&(!w||C[1]>w[0]&&C[1]<w[3])){g.label=C[1];break}if(C[0]===6&&g.label<w[1]){g.label=w[1],w=C;break}if(w&&g.label<w[2]){g.label=w[2],g.ops.push(C);break}w[2]&&g.ops.pop(),g.trys.pop();continue}C=d.call(h,g)}catch(f){C=[6,f],y=0}finally{b=w=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}};Object.defineProperty(la,"__esModule",{value:!0}),la.CommandOrchestrator=la.getStateFromTextArea=la.TextAreaTextApi=void 0;var n=Y5(),a=V5(),i=qB(),o=lw(),s=function(){function h(d){this.textAreaRef=d}return h.prototype.replaceSelection=function(d){var g=this.textAreaRef.current;return a.insertText(g,d),u(g)},h.prototype.setSelectionRange=function(d){var g=this.textAreaRef.current;return g.focus(),g.selectionStart=d.start,g.selectionEnd=d.end,u(g)},h.prototype.getState=function(){var d=this.textAreaRef.current;return u(d)},h}();la.TextAreaTextApi=s;function u(h){return{selection:{start:h.selectionStart,end:h.selectionEnd},text:h.value,selectedText:h.value.slice(h.selectionStart,h.selectionEnd)}}la.getStateFromTextArea=u;var l=function(){function h(d,g,b,y){var w=this;if(this.getCommand=function(S){var E=w.commandMap[S];if(!E)throw new Error("Cannot execute command. Command not found: "+S);return E},this.handlePossibleKeyCommand=function(S){for(var E=0,_=w.keyActivatedCommands;E<_.length;E++){var C=_[E];if(w.getCommand(C).handleKeyCommand(S))return w.executeCommand(C).then(function(f){}),!0}return!1},y&&!y.saveImage)throw new Error("paste options are incomplete. saveImage are required ");this.commandMap=e(e({},n.getDefaultCommandMap()),d||{}),this.pasteOptions=y,this.keyActivatedCommands=i.extractKeyActivatedCommands(d),this.textAreaRef=g,this.textApi=new s(g),this.l18n=b}return h.prototype.executeCommand=function(d,g){return t(this,void 0,void 0,function(){var b,y;return r(this,function(w){switch(w.label){case 0:return this.isExecuting?[2]:(this.isExecuting=!0,b=this.commandMap[d],y=b.execute({initialState:u(this.textAreaRef.current),textApi:this.textApi,l18n:this.l18n,context:g}),[4,y]);case 1:return w.sent(),this.isExecuting=!1,[2]}})})},h.prototype.executePasteCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.executeDropCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.executeSelectImageCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.getCommandByName=function(d){return this.commandMap[d]},h}();return la.CommandOrchestrator=l,la}var GC;function YB(){if(GC)return Na;GC=1;var e=Na&&Na.__extends||function(){var b=function(y,w){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,E){S.__proto__=E}||function(S,E){for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(S[_]=E[_])},b(y,w)};return function(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");b(y,w);function S(){this.constructor=y}y.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),t=Na&&Na.__assign||function(){return t=Object.assign||function(b){for(var y,w=1,S=arguments.length;w<S;w++){y=arguments[w];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(b[E]=y[E])}return b},t.apply(this,arguments)},r=Na&&Na.__awaiter||function(b,y,w,S){function E(_){return _ instanceof w?_:new w(function(C){C(_)})}return new(w||(w=Promise))(function(_,C){function f(x){try{v(S.next(x))}catch(k){C(k)}}function p(x){try{v(S.throw(x))}catch(k){C(k)}}function v(x){x.done?_(x.value):E(x.value).then(f,p)}v((S=S.apply(b,y||[])).next())})},n=Na&&Na.__generator||function(b,y){var w={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},S,E,_,C;return C={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function f(v){return function(x){return p([v,x])}}function p(v){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,E&&(_=v[0]&2?E.return:v[0]?E.throw||((_=E.return)&&_.call(E),0):E.next)&&!(_=_.call(E,v[1])).done)return _;switch(E=0,_&&(v=[v[0]&2,_.value]),v[0]){case 0:case 1:_=v;break;case 4:return w.label++,{value:v[1],done:!1};case 5:w.label++,E=v[1],v=[0];continue;case 7:v=w.ops.pop(),w.trys.pop();continue;default:if(_=w.trys,!(_=_.length>0&&_[_.length-1])&&(v[0]===6||v[0]===2)){w=0;continue}if(v[0]===3&&(!_||v[1]>_[0]&&v[1]<_[3])){w.label=v[1];break}if(v[0]===6&&w.label<_[1]){w.label=_[1],_=v;break}if(_&&w.label<_[2]){w.label=_[2],w.ops.push(v);break}_[2]&&w.ops.pop(),w.trys.pop();continue}v=y.call(b,w)}catch(x){v=[6,x],E=0}finally{S=_=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(Na,"__esModule",{value:!0}),Na.ReactMde=void 0;var a=A,i=W5(),o=lw(),s=VB(),u=q5(),l=rc(),h=WB(),d={accept:"image/*",multiple:!1},g=function(b){e(y,b);function y(w){var S,E=b.call(this,w)||this;E.handleTextChange=function(C){var f=E.props.onChange;f(C)},E.handlePaste=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executePasteCommand(C)];case 1:return p.sent(),[2]}})})},E.handleDrop=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeDropCommand(C)];case 1:return p.sent(),[2]}})})},E.handleImageSelection=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeSelectImageCommand(C)];case 1:return p.sent(),[2]}})})},E.handleTabChange=function(C){var f=E.props.onTabChange;f(C)},E.handleCommand=function(C){return r(E,void 0,void 0,function(){return n(this,function(f){switch(f.label){case 0:return[4,this.commandOrchestrator.executeCommand(C)];case 1:return f.sent(),[2]}})})},E.finalRefs=t({},w.refs||{}),E.finalRefs.textarea||(E.finalRefs.textarea=a.createRef()),E.finalRefs.preview||(E.finalRefs.preview=a.createRef()),E.commandOrchestrator=new h.CommandOrchestrator(E.props.commands,E.finalRefs.textarea,E.props.l18n,E.props.paste?t(t({},d),E.props.paste):void 0);var _=Math.min(w.maxEditorHeight,w.minEditorHeight);return E.state={editorHeight:(S=w.initialEditorHeight)!==null&&S!==void 0?S:_},E}return y.prototype.render=function(){var w=this,S,E,_=this.props,C=_.getIcon,f=_.toolbarCommands,p=_.classes,v=_.loadingPreview,x=_.readOnly,k=_.disablePreview,O=_.value,$=_.l18n,D=_.minPreviewHeight,V=_.heightUnits,I=_.childProps,M=_.selectedTab,F=_.generateMarkdownPreview,T=_.loadSuggestions,N=_.suggestionTriggerCharacters,j=_.textAreaComponent,H=I||{},B=f.map(function(U){return U.map(function(G){var X=w.commandOrchestrator.getCommand(G);return{commandName:G,buttonContent:X.icon?X.icon(C):C(G),buttonProps:X.buttonProps,buttonComponentClass:X.buttonComponentClass}})});return a.createElement("div",{className:l.classNames("react-mde","react-mde-tabbed-layout",p==null?void 0:p.reactMde)},a.createElement(i.Toolbar,{classes:p==null?void 0:p.toolbar,buttons:B,onCommand:this.handleCommand,onTabChange:this.handleTabChange,tab:M,readOnly:x,disablePreview:k,l18n:$,buttonProps:H.commandButtons,writeButtonProps:H.writeButton,previewButtonProps:H.previewButton}),a.createElement("div",{className:l.classNames({invisible:M!=="write"})},a.createElement(i.TextArea,{classes:p==null?void 0:p.textArea,suggestionsDropdownClasses:p==null?void 0:p.suggestionsDropdown,suggestionsAutoplace:this.props.suggestionsAutoplace,refObject:this.finalRefs.textarea,onChange:this.handleTextChange,onPaste:this.handlePaste,onDrop:this.handleDrop,readOnly:x,textAreaComponent:j,textAreaProps:I&&I.textArea,height:this.state.editorHeight,heightUnits:this.props.heightUnits,value:O,suggestionTriggerCharacters:N,loadSuggestions:T,onPossibleKeyCommand:this.commandOrchestrator.handlePossibleKeyCommand}),this.props.paste&&a.createElement("label",{className:l.classNames("image-tip")},a.createElement("input",{className:l.classNames("image-input"),type:"file",accept:(S=this.props.paste.accept)!==null&&S!==void 0?S:d.accept,multiple:(E=this.props.paste.multiple)!==null&&E!==void 0?E:d.multiple,onChange:this.handleImageSelection}),a.createElement("span",null,$.pasteDropSelect))),M!=="write"&&a.createElement(i.Preview,{classes:p==null?void 0:p.preview,refObject:this.finalRefs.preview,loadingPreview:v,minHeight:D,heightUnits:V,generateMarkdownPreview:F,markdown:O}))},y.defaultProps={commands:o.getDefaultCommandMap(),toolbarCommands:o.getDefaultToolbarCommands(),getIcon:function(w){return a.createElement(u.SvgIcon,{icon:w})},readOnly:!1,l18n:s.enL18n,minEditorHeight:200,maxEditorHeight:500,minPreviewHeight:200,heightUnits:"px",selectedTab:"write",disablePreview:!1,suggestionTriggerCharacters:["@"],suggestionsAutoplace:!1},y}(a.Component);return Na.ReactMde=g,Na}var KC;function W5(){return KC||(KC=1,function(e){var t=Qs&&Qs.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=Qs&&Qs.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(z5(),e),r(B5(),e),r(H5(),e),r(RB(),e),r(kB(),e),r($B(),e),r(YB(),e),r(U5(),e)}(Qs)),Qs}var XC;function Y5(){return XC||(XC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultToolbarCommands=e.getDefaultCommandMap=e.MdeFontAwesomeIcon=e.SvgIcon=e.MarkdownUtil=e.ToolbarButtonGroup=e.Toolbar=e.Preview=e.SuggestionsDropdown=e.TextArea=void 0;var t=Ui();e.MarkdownUtil=t;var r=W5();Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r.TextArea}}),Object.defineProperty(e,"SuggestionsDropdown",{enumerable:!0,get:function(){return r.SuggestionsDropdown}}),Object.defineProperty(e,"Preview",{enumerable:!0,get:function(){return r.Preview}}),Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return r.Toolbar}}),Object.defineProperty(e,"ToolbarButtonGroup",{enumerable:!0,get:function(){return r.ToolbarButtonGroup}});var n=q5();Object.defineProperty(e,"SvgIcon",{enumerable:!0,get:function(){return n.SvgIcon}}),Object.defineProperty(e,"MdeFontAwesomeIcon",{enumerable:!0,get:function(){return n.MdeFontAwesomeIcon}});var a=lw();Object.defineProperty(e,"getDefaultCommandMap",{enumerable:!0,get:function(){return a.getDefaultCommandMap}}),Object.defineProperty(e,"getDefaultToolbarCommands",{enumerable:!0,get:function(){return a.getDefaultToolbarCommands}}),e.default=r.ReactMde}(Gv)),Gv}var GB=Y5();const KB=$n(GB),XB="_main_qf7bi_1",ZB="_markIcon_qf7bi_1",JB="_mdePreview_qf7bi_6",QB="_mdebordershow_qf7bi_80",eH="_mdeborderhide_qf7bi_83",tH="_fullscreen_qf7bi_90",tn={main:XB,markIcon:ZB,mdePreview:JB,mdebordershow:QB,mdeborderhide:eH,fullscreen:tH};function rH(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{l(n.next(h))}catch(d){o(d)}}function u(h){try{l(n.throw(h))}catch(d){o(d)}}function l(h){h.done?i(h.value):a(h.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function nH(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return u([l,h])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Uf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function aH(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var nc=function(e){return typeof e=="function"},iH=function(e){return typeof e=="boolean"},nm=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function xu(e){nm&&(nc(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=A.useRef(e);t.current=A.useMemo(function(){return e},[e]);var r=A.useRef();return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}function cy(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function oH(e,t){var r=A.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!cy(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function di(e){var t=A.useRef(e);return t.current=e,t}var am=function(e){nm&&(nc(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=di(e);A.useEffect(function(){return function(){t.current()}},[])},Xv,ZC;function cw(){if(ZC)return Xv;ZC=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Xv=e,Xv}var Zv,JC;function sH(){if(JC)return Zv;JC=1;var e=c5(),t=function(){return e.Date.now()};return Zv=t,Zv}var Jv,QC;function uH(){if(QC)return Jv;QC=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Jv=t,Jv}var Qv,e6;function lH(){if(e6)return Qv;e6=1;var e=uH(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qv=r,Qv}var e1,t6;function cH(){if(t6)return e1;t6=1;var e=lH(),t=cw(),r=h5(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var h=typeof l.valueOf=="function"?l.valueOf():l;l=t(h)?h+"":h}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):a.test(l)?n:+l}return e1=u,e1}var t1,r6;function G5(){if(r6)return t1;r6=1;var e=cw(),t=sH(),r=cH(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,l){var h,d,g,b,y,w,S=0,E=!1,_=!1,C=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(E=!!l.leading,_="maxWait"in l,g=_?a(r(l.maxWait)||0,u):g,C="trailing"in l?!!l.trailing:C);function f(I){var M=h,F=d;return h=d=void 0,S=I,b=s.apply(F,M),b}function p(I){return S=I,y=setTimeout(k,u),E?f(I):b}function v(I){var M=I-w,F=I-S,T=u-M;return _?i(T,g-F):T}function x(I){var M=I-w,F=I-S;return w===void 0||M>=u||M<0||_&&F>=g}function k(){var I=t();if(x(I))return O(I);y=setTimeout(k,v(I))}function O(I){return y=void 0,C&&h?f(I):(h=d=void 0,b)}function $(){y!==void 0&&clearTimeout(y),S=0,h=w=d=y=void 0}function D(){return y===void 0?b:O(t())}function V(){var I=t(),M=x(I);if(h=arguments,d=this,w=I,M){if(y===void 0)return p(w);if(_)return clearTimeout(y),y=setTimeout(k,u),f(w)}return y===void 0&&(y=setTimeout(k,u)),b}return V.cancel=$,V.flush=D,V}return t1=o,t1}var dH=G5();const fH=$n(dH);var K5=!!(typeof window<"u"&&window.document&&window.document.createElement),r1,n6;function hH(){if(n6)return r1;n6=1;var e=G5(),t=cw(),r="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:s,maxWait:i,trailing:u})}return r1=n,r1}var pH=hH();const mH=$n(pH);var qf=function(e){nm&&(nc(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),A.useEffect(function(){e==null||e()},[])},gH=function(){var e=Uf(A.useState({}),2),t=e[1];return A.useCallback(function(){return t({})},[])};function vH(e){return nc(e[Symbol.asyncIterator])}function bH(e,t){A.useEffect(function(){var r=e(),n=!1;function a(){return rH(this,void 0,void 0,function(){var i;return nH(this,function(o){switch(o.label){case 0:if(!vH(r))return[3,4];o.label=1;case 1:return[4,r.next()];case 2:return i=o.sent(),i.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return a(),function(){n=!0}},t)}function ao(e,t){if(K5){if(!e)return t;var r;return nc(e)?r=e():"current"in e?r=e.current:r=e,r}}var yH=function(e){return e.every(function(t){var r=ao(t);return r?r.getRootNode()instanceof ShadowRoot:!1})},_H=function(e){return e?e.getRootNode():document},wH=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return yH(t)?_H(ao(t[0])):document},X5=function(e){var t=function(r,n,a){var i=A.useRef(!1),o=A.useRef([]),s=A.useRef([]),u=A.useRef();e(function(){var l,h=Array.isArray(a)?a:[a],d=h.map(function(g){return ao(g)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=r();return}(d.length!==o.current.length||!cy(o.current,d)||!cy(s.current,n))&&((l=u.current)===null||l===void 0||l.call(u),o.current=d,s.current=n,u.current=r())}),am(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},Z5=X5(A.useEffect);function xH(e,t,r){r===void 0&&(r="click");var n=di(e);Z5(function(){var a=function(s){var u=Array.isArray(t)?t:[t];u.some(function(l){var h=ao(l);return!h||h.contains(s.target)})||n.current(s)},i=wH(t),o=Array.isArray(r)?r:[r];return o.forEach(function(s){return i.addEventListener(s,a)}),function(){o.forEach(function(s){return i.removeEventListener(s,a)})}},Array.isArray(r)?r:[r],t)}function SH(){var e=(typeof global>"u"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}SH()||(global.Date=Date);function CH(e,t){var r;nm&&(nc(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=di(e),a=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,i=A.useMemo(function(){return fH(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return n.current.apply(n,aH([],Uf(o),!1))},a,t)},[]);return am(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var n1={exports:{}};/*!
133
+ `)===-1?b.insertionLength:0,w=u.selection.start+l+y,S=w+b.modifiedText.length-y;i.setSelectionRange({start:w,end:S})};e.makeList=n,e.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,"- ")}},e.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(s,u){return u+1+". "})}},e.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(s,u){return"- [ ] "})}}}(Kv)),Kv}var ud={},LC;function jB(){if(LC)return ud;LC=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.imageCommand=void 0;var e=Ui();return ud.imageCommand={buttonProps:{"aria-label":"Add image"},execute:function(t){var r=t.initialState,n=t.textApi,a=n.setSelectionRange(e.selectWord({text:r.text,selection:r.selection})),i=a.selectedText||"https://example.com/your-image.png";n.replaceSelection("![]("+i+")"),n.setSelectionRange({start:a.selection.start+4,end:a.selection.start+4+i.length})}},ud}var Io={},Fo={},zC;function LB(){if(zC)return Fo;zC=1;var e=Fo&&Fo.__awaiter||function(n,a,i,o){function s(u){return u instanceof i?u:new i(function(l){l(u)})}return new(i||(i=Promise))(function(u,l){function h(b){try{g(o.next(b))}catch(y){l(y)}}function d(b){try{g(o.throw(b))}catch(y){l(y)}}function g(b){b.done?u(b.value):s(b.value).then(h,d)}g((o=o.apply(n,a||[])).next())})},t=Fo&&Fo.__generator||function(n,a){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,s,u,l;return l={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function h(g){return function(b){return d([g,b])}}function d(g){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(u=g[0]&2?s.return:g[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,g[1])).done)return u;switch(s=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return i.label++,{value:g[1],done:!1};case 5:i.label++,s=g[1],g=[0];continue;case 7:g=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){i=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){i.label=g[1];break}if(g[0]===6&&i.label<u[1]){i.label=u[1],u=g;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(g);break}u[2]&&i.ops.pop(),i.trys.pop();continue}g=a.call(n,i)}catch(b){g=[6,b],s=0}finally{o=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.readFileAsync=void 0;function r(n){return e(this,void 0,void 0,function(){return t(this,function(a){return[2,new Promise(function(i,o){var s=new FileReader;s.onload=function(){if(typeof s.result=="string")throw new Error("reader.result is expected to be an ArrayBuffer");i(s.result)},s.onerror=o,s.readAsArrayBuffer(n)})]})})}return Fo.readFileAsync=r,Fo}var BC;function zB(){if(BC)return Io;BC=1;var e=Io&&Io.__awaiter||function(l,h,d,g){function b(y){return y instanceof d?y:new d(function(w){w(y)})}return new(d||(d=Promise))(function(y,w){function S(C){try{_(g.next(C))}catch(f){w(f)}}function E(C){try{_(g.throw(C))}catch(f){w(f)}}function _(C){C.done?y(C.value):b(C.value).then(S,E)}_((g=g.apply(l,h||[])).next())})},t=Io&&Io.__generator||function(l,h){var d={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},g,b,y,w;return w={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function S(_){return function(C){return E([_,C])}}function E(_){if(g)throw new TypeError("Generator is already executing.");for(;d;)try{if(g=1,b&&(y=_[0]&2?b.return:_[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,_[1])).done)return y;switch(b=0,y&&(_=[_[0]&2,y.value]),_[0]){case 0:case 1:y=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,b=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(y=d.trys,!(y=y.length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){d=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){d.label=_[1];break}if(_[0]===6&&d.label<y[1]){d.label=y[1],y=_;break}if(y&&d.label<y[2]){d.label=y[2],d.ops.push(_);break}y[2]&&d.ops.pop(),d.trys.pop();continue}_=h.call(l,d)}catch(C){_=[6,C],b=0}finally{g=y=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};Object.defineProperty(Io,"__esModule",{value:!0}),Io.saveImageCommand=void 0;var r=LB(),n=Ui();function a(l){var h=[];for(var d in l){var g=l[d];g.kind==="file"&&h.push(g.getAsFile())}return h}function i(l){for(var h=[],d=0;d<l.length;d++)h.push(l[0]);return h}function o(l,h){var d=h.multiple,g=h.accept,b=l;if(d||(b=b.slice(0,1)),g){var y=g.split(","),w=new Set(y.filter(function(_){return/^\.\w+/.test(_)}).map(function(_){return _.split(".")[1]})),S=new Set(y.filter(function(_){return/^[-\w.]+\/[-\w.]+$/.test(_)})),E=new Set(y.filter(function(_){return/(audio|video|image)\/\*/.test(_)}).map(function(_){return _.split("/")[0]}));b=b.filter(function(_){return w.has(_.name.split(".")[1])||S.has(_.type)||E.has(_.type.split("/")[0])})}return b}Io.saveImageCommand={execute:function(l){l.initialState;var h=l.textApi,d=l.context,g=l.l18n;return e(this,void 0,void 0,function(){var b,y,w,S,E,_,C,f,p,v,x,k,O,$,D,V,I,M,F,T,N,j,H,B;return t(this,function(U){switch(U.label){case 0:if(!d)throw new Error("wrong context");b=d,y=b.event,w=b.pasteOptions,S=w.saveImage,E=w.multiple,_=w.accept,C=s(d)?a(y.clipboardData.items):u(d)?a(y.dataTransfer.items):i(y.target.files),f=o(C,{multiple:E,accept:_}),p=[];for(v in f)p.push(v);x=0,U.label=1;case 1:return x<p.length?(k=p[x],O=h.getState(),$=n.getBreaksNeededForEmptyLineBefore(O.text,O.selection.start),D=Array($+1).join(`
134
+ `),V=D+"!["+g.uploadingImage+"]()",h.replaceSelection(V),I=C[k],[4,r.readFileAsync(I)]):[3,5];case 2:return M=U.sent(),F=S(M,I),[4,F.next()];case 3:T=U.sent().value,N=h.getState(),j=N.text.substr(O.selection.start,V.length),j===V&&(h.setSelectionRange({start:O.selection.start,end:O.selection.start+V.length}),H=T?D+"![image]("+T+")":"",B=H.length-V.length,h.replaceSelection(H),h.setSelectionRange({start:N.selection.start+B,end:N.selection.end+B})),U.label=4;case 4:return x++,[3,1];case 5:return[2]}})})}};function s(l){return l.event.clipboardData!==void 0}function u(l){return l.event.dataTransfer!==void 0}return Io}var HC;function lw(){if(HC)return Mo;HC=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.getDefaultSaveImageCommandName=Mo.getDefaultCommandMap=Mo.getDefaultToolbarCommands=void 0;var e=kB(),t=$B(),r=AB(),n=DB(),a=NB(),i=MB(),o=IB(),s=FB(),u=jB(),l=zB();function h(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]}Mo.getDefaultToolbarCommands=h;function d(){return{header:e.headerCommand,bold:t.boldCommand,italic:r.italicCommand,strikethrough:n.strikeThroughCommand,link:a.linkCommand,quote:i.quoteCommand,code:o.codeCommand,image:u.imageCommand,"unordered-list":s.unorderedListCommand,"ordered-list":s.orderedListCommand,"checked-list":s.checkedListCommand,"save-image":l.saveImageCommand}}Mo.getDefaultCommandMap=d;function g(){return"save-image"}return Mo.getDefaultSaveImageCommandName=g,Mo}var ld={},VC;function BB(){return VC||(VC=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.enL18n=void 0,ld.enL18n={write:"Write",preview:"Preview",uploadingImage:"Uploading image...",pasteDropSelect:"Attach files by dragging & dropping, selecting or pasting them."}),ld}var ru={},cd={},UC;function HB(){if(UC)return cd;UC=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.SvgIcon=void 0;var e=A,t=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"tasks",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})),r=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ol",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),n=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ul",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),a=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"image",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"})),i=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"code",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})),o=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M512 80v128c0 137.018-63.772 236.324-193.827 271.172-15.225 4.08-30.173-7.437-30.173-23.199v-33.895c0-10.057 6.228-19.133 15.687-22.55C369.684 375.688 408 330.054 408 256h-72c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h128c26.51 0 48 21.49 48 48zM176 32H48C21.49 32 0 53.49 0 80v128c0 26.51 21.49 48 48 48h72c0 74.054-38.316 119.688-104.313 143.528C6.228 402.945 0 412.021 0 422.078v33.895c0 15.762 14.948 27.279 30.173 23.199C160.228 444.324 224 345.018 224 208V80c0-26.51-21.49-48-48-48z"})),s=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"link",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})),u=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"strikethrough",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})),l=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"italic",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})),h=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"heading",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"})),d=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"bold",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})),g=function(b){var y=b.icon;switch(y){case"header":return h;case"bold":return d;case"italic":return l;case"strikethrough":return u;case"link":return s;case"quote":return o;case"code":return i;case"image":return a;case"unordered-list":return n;case"ordered-list":return r;case"checked-list":return t;default:return null}};return cd.SvgIcon=g,cd}var qC;function q5(){return qC||(qC=1,function(e){var t=ru&&ru.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=ru&&ru.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(H5(),e),r(HB(),e)}(ru)),ru}var la={},dd={},WC;function VB(){if(WC)return dd;WC=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.extractKeyActivatedCommands=void 0;function e(t){var r=[];for(var n in t)t.hasOwnProperty(n)&&t[n].handleKeyCommand&&r.push(n);return r}return dd.extractKeyActivatedCommands=e,dd}var YC;function UB(){if(YC)return la;YC=1;var e=la&&la.__assign||function(){return e=Object.assign||function(h){for(var d,g=1,b=arguments.length;g<b;g++){d=arguments[g];for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(h[y]=d[y])}return h},e.apply(this,arguments)},t=la&&la.__awaiter||function(h,d,g,b){function y(w){return w instanceof g?w:new g(function(S){S(w)})}return new(g||(g=Promise))(function(w,S){function E(f){try{C(b.next(f))}catch(p){S(p)}}function _(f){try{C(b.throw(f))}catch(p){S(p)}}function C(f){f.done?w(f.value):y(f.value).then(E,_)}C((b=b.apply(h,d||[])).next())})},r=la&&la.__generator||function(h,d){var g={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},b,y,w,S;return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(C){return function(f){return _([C,f])}}function _(C){if(b)throw new TypeError("Generator is already executing.");for(;g;)try{if(b=1,y&&(w=C[0]&2?y.return:C[0]?y.throw||((w=y.return)&&w.call(y),0):y.next)&&!(w=w.call(y,C[1])).done)return w;switch(y=0,w&&(C=[C[0]&2,w.value]),C[0]){case 0:case 1:w=C;break;case 4:return g.label++,{value:C[1],done:!1};case 5:g.label++,y=C[1],C=[0];continue;case 7:C=g.ops.pop(),g.trys.pop();continue;default:if(w=g.trys,!(w=w.length>0&&w[w.length-1])&&(C[0]===6||C[0]===2)){g=0;continue}if(C[0]===3&&(!w||C[1]>w[0]&&C[1]<w[3])){g.label=C[1];break}if(C[0]===6&&g.label<w[1]){g.label=w[1],w=C;break}if(w&&g.label<w[2]){g.label=w[2],g.ops.push(C);break}w[2]&&g.ops.pop(),g.trys.pop();continue}C=d.call(h,g)}catch(f){C=[6,f],y=0}finally{b=w=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}};Object.defineProperty(la,"__esModule",{value:!0}),la.CommandOrchestrator=la.getStateFromTextArea=la.TextAreaTextApi=void 0;var n=Y5(),a=V5(),i=VB(),o=lw(),s=function(){function h(d){this.textAreaRef=d}return h.prototype.replaceSelection=function(d){var g=this.textAreaRef.current;return a.insertText(g,d),u(g)},h.prototype.setSelectionRange=function(d){var g=this.textAreaRef.current;return g.focus(),g.selectionStart=d.start,g.selectionEnd=d.end,u(g)},h.prototype.getState=function(){var d=this.textAreaRef.current;return u(d)},h}();la.TextAreaTextApi=s;function u(h){return{selection:{start:h.selectionStart,end:h.selectionEnd},text:h.value,selectedText:h.value.slice(h.selectionStart,h.selectionEnd)}}la.getStateFromTextArea=u;var l=function(){function h(d,g,b,y){var w=this;if(this.getCommand=function(S){var E=w.commandMap[S];if(!E)throw new Error("Cannot execute command. Command not found: "+S);return E},this.handlePossibleKeyCommand=function(S){for(var E=0,_=w.keyActivatedCommands;E<_.length;E++){var C=_[E];if(w.getCommand(C).handleKeyCommand(S))return w.executeCommand(C).then(function(f){}),!0}return!1},y&&!y.saveImage)throw new Error("paste options are incomplete. saveImage are required ");this.commandMap=e(e({},n.getDefaultCommandMap()),d||{}),this.pasteOptions=y,this.keyActivatedCommands=i.extractKeyActivatedCommands(d),this.textAreaRef=g,this.textApi=new s(g),this.l18n=b}return h.prototype.executeCommand=function(d,g){return t(this,void 0,void 0,function(){var b,y;return r(this,function(w){switch(w.label){case 0:return this.isExecuting?[2]:(this.isExecuting=!0,b=this.commandMap[d],y=b.execute({initialState:u(this.textAreaRef.current),textApi:this.textApi,l18n:this.l18n,context:g}),[4,y]);case 1:return w.sent(),this.isExecuting=!1,[2]}})})},h.prototype.executePasteCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.executeDropCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.executeSelectImageCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.getCommandByName=function(d){return this.commandMap[d]},h}();return la.CommandOrchestrator=l,la}var GC;function qB(){if(GC)return Na;GC=1;var e=Na&&Na.__extends||function(){var b=function(y,w){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,E){S.__proto__=E}||function(S,E){for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(S[_]=E[_])},b(y,w)};return function(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");b(y,w);function S(){this.constructor=y}y.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),t=Na&&Na.__assign||function(){return t=Object.assign||function(b){for(var y,w=1,S=arguments.length;w<S;w++){y=arguments[w];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(b[E]=y[E])}return b},t.apply(this,arguments)},r=Na&&Na.__awaiter||function(b,y,w,S){function E(_){return _ instanceof w?_:new w(function(C){C(_)})}return new(w||(w=Promise))(function(_,C){function f(x){try{v(S.next(x))}catch(k){C(k)}}function p(x){try{v(S.throw(x))}catch(k){C(k)}}function v(x){x.done?_(x.value):E(x.value).then(f,p)}v((S=S.apply(b,y||[])).next())})},n=Na&&Na.__generator||function(b,y){var w={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},S,E,_,C;return C={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function f(v){return function(x){return p([v,x])}}function p(v){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,E&&(_=v[0]&2?E.return:v[0]?E.throw||((_=E.return)&&_.call(E),0):E.next)&&!(_=_.call(E,v[1])).done)return _;switch(E=0,_&&(v=[v[0]&2,_.value]),v[0]){case 0:case 1:_=v;break;case 4:return w.label++,{value:v[1],done:!1};case 5:w.label++,E=v[1],v=[0];continue;case 7:v=w.ops.pop(),w.trys.pop();continue;default:if(_=w.trys,!(_=_.length>0&&_[_.length-1])&&(v[0]===6||v[0]===2)){w=0;continue}if(v[0]===3&&(!_||v[1]>_[0]&&v[1]<_[3])){w.label=v[1];break}if(v[0]===6&&w.label<_[1]){w.label=_[1],_=v;break}if(_&&w.label<_[2]){w.label=_[2],w.ops.push(v);break}_[2]&&w.ops.pop(),w.trys.pop();continue}v=y.call(b,w)}catch(x){v=[6,x],E=0}finally{S=_=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(Na,"__esModule",{value:!0}),Na.ReactMde=void 0;var a=A,i=W5(),o=lw(),s=BB(),u=q5(),l=rc(),h=UB(),d={accept:"image/*",multiple:!1},g=function(b){e(y,b);function y(w){var S,E=b.call(this,w)||this;E.handleTextChange=function(C){var f=E.props.onChange;f(C)},E.handlePaste=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executePasteCommand(C)];case 1:return p.sent(),[2]}})})},E.handleDrop=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeDropCommand(C)];case 1:return p.sent(),[2]}})})},E.handleImageSelection=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeSelectImageCommand(C)];case 1:return p.sent(),[2]}})})},E.handleTabChange=function(C){var f=E.props.onTabChange;f(C)},E.handleCommand=function(C){return r(E,void 0,void 0,function(){return n(this,function(f){switch(f.label){case 0:return[4,this.commandOrchestrator.executeCommand(C)];case 1:return f.sent(),[2]}})})},E.finalRefs=t({},w.refs||{}),E.finalRefs.textarea||(E.finalRefs.textarea=a.createRef()),E.finalRefs.preview||(E.finalRefs.preview=a.createRef()),E.commandOrchestrator=new h.CommandOrchestrator(E.props.commands,E.finalRefs.textarea,E.props.l18n,E.props.paste?t(t({},d),E.props.paste):void 0);var _=Math.min(w.maxEditorHeight,w.minEditorHeight);return E.state={editorHeight:(S=w.initialEditorHeight)!==null&&S!==void 0?S:_},E}return y.prototype.render=function(){var w=this,S,E,_=this.props,C=_.getIcon,f=_.toolbarCommands,p=_.classes,v=_.loadingPreview,x=_.readOnly,k=_.disablePreview,O=_.value,$=_.l18n,D=_.minPreviewHeight,V=_.heightUnits,I=_.childProps,M=_.selectedTab,F=_.generateMarkdownPreview,T=_.loadSuggestions,N=_.suggestionTriggerCharacters,j=_.textAreaComponent,H=I||{},B=f.map(function(U){return U.map(function(G){var X=w.commandOrchestrator.getCommand(G);return{commandName:G,buttonContent:X.icon?X.icon(C):C(G),buttonProps:X.buttonProps,buttonComponentClass:X.buttonComponentClass}})});return a.createElement("div",{className:l.classNames("react-mde","react-mde-tabbed-layout",p==null?void 0:p.reactMde)},a.createElement(i.Toolbar,{classes:p==null?void 0:p.toolbar,buttons:B,onCommand:this.handleCommand,onTabChange:this.handleTabChange,tab:M,readOnly:x,disablePreview:k,l18n:$,buttonProps:H.commandButtons,writeButtonProps:H.writeButton,previewButtonProps:H.previewButton}),a.createElement("div",{className:l.classNames({invisible:M!=="write"})},a.createElement(i.TextArea,{classes:p==null?void 0:p.textArea,suggestionsDropdownClasses:p==null?void 0:p.suggestionsDropdown,suggestionsAutoplace:this.props.suggestionsAutoplace,refObject:this.finalRefs.textarea,onChange:this.handleTextChange,onPaste:this.handlePaste,onDrop:this.handleDrop,readOnly:x,textAreaComponent:j,textAreaProps:I&&I.textArea,height:this.state.editorHeight,heightUnits:this.props.heightUnits,value:O,suggestionTriggerCharacters:N,loadSuggestions:T,onPossibleKeyCommand:this.commandOrchestrator.handlePossibleKeyCommand}),this.props.paste&&a.createElement("label",{className:l.classNames("image-tip")},a.createElement("input",{className:l.classNames("image-input"),type:"file",accept:(S=this.props.paste.accept)!==null&&S!==void 0?S:d.accept,multiple:(E=this.props.paste.multiple)!==null&&E!==void 0?E:d.multiple,onChange:this.handleImageSelection}),a.createElement("span",null,$.pasteDropSelect))),M!=="write"&&a.createElement(i.Preview,{classes:p==null?void 0:p.preview,refObject:this.finalRefs.preview,loadingPreview:v,minHeight:D,heightUnits:V,generateMarkdownPreview:F,markdown:O}))},y.defaultProps={commands:o.getDefaultCommandMap(),toolbarCommands:o.getDefaultToolbarCommands(),getIcon:function(w){return a.createElement(u.SvgIcon,{icon:w})},readOnly:!1,l18n:s.enL18n,minEditorHeight:200,maxEditorHeight:500,minPreviewHeight:200,heightUnits:"px",selectedTab:"write",disablePreview:!1,suggestionTriggerCharacters:["@"],suggestionsAutoplace:!1},y}(a.Component);return Na.ReactMde=g,Na}var KC;function W5(){return KC||(KC=1,function(e){var t=Qs&&Qs.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=Qs&&Qs.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(z5(),e),r(B5(),e),r(H5(),e),r(EB(),e),r(TB(),e),r(PB(),e),r(qB(),e),r(U5(),e)}(Qs)),Qs}var XC;function Y5(){return XC||(XC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultToolbarCommands=e.getDefaultCommandMap=e.MdeFontAwesomeIcon=e.SvgIcon=e.MarkdownUtil=e.ToolbarButtonGroup=e.Toolbar=e.Preview=e.SuggestionsDropdown=e.TextArea=void 0;var t=Ui();e.MarkdownUtil=t;var r=W5();Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r.TextArea}}),Object.defineProperty(e,"SuggestionsDropdown",{enumerable:!0,get:function(){return r.SuggestionsDropdown}}),Object.defineProperty(e,"Preview",{enumerable:!0,get:function(){return r.Preview}}),Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return r.Toolbar}}),Object.defineProperty(e,"ToolbarButtonGroup",{enumerable:!0,get:function(){return r.ToolbarButtonGroup}});var n=q5();Object.defineProperty(e,"SvgIcon",{enumerable:!0,get:function(){return n.SvgIcon}}),Object.defineProperty(e,"MdeFontAwesomeIcon",{enumerable:!0,get:function(){return n.MdeFontAwesomeIcon}});var a=lw();Object.defineProperty(e,"getDefaultCommandMap",{enumerable:!0,get:function(){return a.getDefaultCommandMap}}),Object.defineProperty(e,"getDefaultToolbarCommands",{enumerable:!0,get:function(){return a.getDefaultToolbarCommands}}),e.default=r.ReactMde}(Gv)),Gv}var WB=Y5();const YB=$n(WB),GB="_main_qf7bi_1",KB="_markIcon_qf7bi_1",XB="_mdePreview_qf7bi_6",ZB="_mdebordershow_qf7bi_80",JB="_mdeborderhide_qf7bi_83",QB="_fullscreen_qf7bi_90",tn={main:GB,markIcon:KB,mdePreview:XB,mdebordershow:ZB,mdeborderhide:JB,fullscreen:QB};function eH(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{l(n.next(h))}catch(d){o(d)}}function u(h){try{l(n.throw(h))}catch(d){o(d)}}function l(h){h.done?i(h.value):a(h.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function tH(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return u([l,h])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Uf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function rH(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var nc=function(e){return typeof e=="function"},nH=function(e){return typeof e=="boolean"},nm=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function xu(e){nm&&(nc(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=A.useRef(e);t.current=A.useMemo(function(){return e},[e]);var r=A.useRef();return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}function cy(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function aH(e,t){var r=A.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!cy(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function di(e){var t=A.useRef(e);return t.current=e,t}var am=function(e){nm&&(nc(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=di(e);A.useEffect(function(){return function(){t.current()}},[])},Xv,ZC;function cw(){if(ZC)return Xv;ZC=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Xv=e,Xv}var Zv,JC;function iH(){if(JC)return Zv;JC=1;var e=c5(),t=function(){return e.Date.now()};return Zv=t,Zv}var Jv,QC;function oH(){if(QC)return Jv;QC=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Jv=t,Jv}var Qv,e6;function sH(){if(e6)return Qv;e6=1;var e=oH(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qv=r,Qv}var e1,t6;function uH(){if(t6)return e1;t6=1;var e=sH(),t=cw(),r=h5(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var h=typeof l.valueOf=="function"?l.valueOf():l;l=t(h)?h+"":h}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):a.test(l)?n:+l}return e1=u,e1}var t1,r6;function G5(){if(r6)return t1;r6=1;var e=cw(),t=iH(),r=uH(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,l){var h,d,g,b,y,w,S=0,E=!1,_=!1,C=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(E=!!l.leading,_="maxWait"in l,g=_?a(r(l.maxWait)||0,u):g,C="trailing"in l?!!l.trailing:C);function f(I){var M=h,F=d;return h=d=void 0,S=I,b=s.apply(F,M),b}function p(I){return S=I,y=setTimeout(k,u),E?f(I):b}function v(I){var M=I-w,F=I-S,T=u-M;return _?i(T,g-F):T}function x(I){var M=I-w,F=I-S;return w===void 0||M>=u||M<0||_&&F>=g}function k(){var I=t();if(x(I))return O(I);y=setTimeout(k,v(I))}function O(I){return y=void 0,C&&h?f(I):(h=d=void 0,b)}function $(){y!==void 0&&clearTimeout(y),S=0,h=w=d=y=void 0}function D(){return y===void 0?b:O(t())}function V(){var I=t(),M=x(I);if(h=arguments,d=this,w=I,M){if(y===void 0)return p(w);if(_)return clearTimeout(y),y=setTimeout(k,u),f(w)}return y===void 0&&(y=setTimeout(k,u)),b}return V.cancel=$,V.flush=D,V}return t1=o,t1}var lH=G5();const cH=$n(lH);var K5=!!(typeof window<"u"&&window.document&&window.document.createElement),r1,n6;function dH(){if(n6)return r1;n6=1;var e=G5(),t=cw(),r="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:s,maxWait:i,trailing:u})}return r1=n,r1}var fH=dH();const hH=$n(fH);var qf=function(e){nm&&(nc(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),A.useEffect(function(){e==null||e()},[])},pH=function(){var e=Uf(A.useState({}),2),t=e[1];return A.useCallback(function(){return t({})},[])};function mH(e){return nc(e[Symbol.asyncIterator])}function gH(e,t){A.useEffect(function(){var r=e(),n=!1;function a(){return eH(this,void 0,void 0,function(){var i;return tH(this,function(o){switch(o.label){case 0:if(!mH(r))return[3,4];o.label=1;case 1:return[4,r.next()];case 2:return i=o.sent(),i.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return a(),function(){n=!0}},t)}function ao(e,t){if(K5){if(!e)return t;var r;return nc(e)?r=e():"current"in e?r=e.current:r=e,r}}var vH=function(e){return e.every(function(t){var r=ao(t);return r?r.getRootNode()instanceof ShadowRoot:!1})},bH=function(e){return e?e.getRootNode():document},yH=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return vH(t)?bH(ao(t[0])):document},X5=function(e){var t=function(r,n,a){var i=A.useRef(!1),o=A.useRef([]),s=A.useRef([]),u=A.useRef();e(function(){var l,h=Array.isArray(a)?a:[a],d=h.map(function(g){return ao(g)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=r();return}(d.length!==o.current.length||!cy(o.current,d)||!cy(s.current,n))&&((l=u.current)===null||l===void 0||l.call(u),o.current=d,s.current=n,u.current=r())}),am(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},Z5=X5(A.useEffect);function _H(e,t,r){r===void 0&&(r="click");var n=di(e);Z5(function(){var a=function(s){var u=Array.isArray(t)?t:[t];u.some(function(l){var h=ao(l);return!h||h.contains(s.target)})||n.current(s)},i=yH(t),o=Array.isArray(r)?r:[r];return o.forEach(function(s){return i.addEventListener(s,a)}),function(){o.forEach(function(s){return i.removeEventListener(s,a)})}},Array.isArray(r)?r:[r],t)}function wH(){var e=(typeof global>"u"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}wH()||(global.Date=Date);function xH(e,t){var r;nm&&(nc(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=di(e),a=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,i=A.useMemo(function(){return cH(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return n.current.apply(n,rH([],Uf(o),!1))},a,t)},[]);return am(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var n1={exports:{}};/*!
135
135
  * screenfull
136
136
  * v5.2.0 - 2021-11-03
137
137
  * (c) Sindre Sorhus; MIT License
138
- */var a6;function EH(){return a6||(a6=1,function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},r=e.exports,n=function(){for(var o,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=0,l=s.length,h={};u<l;u++)if(o=s[u],o&&o[1]in t){for(u=0;u<o.length;u++)h[s[0][u]]=o[u];return h}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(o,s){return new Promise((function(u,l){var h=(function(){this.off("change",h),u()}).bind(this);this.on("change",h),o=o||t.documentElement;var d=o[n.requestFullscreen](s);d instanceof Promise&&d.then(h).catch(l)}).bind(this))},exit:function(){return new Promise((function(o,s){if(!this.isFullscreen){o();return}var u=(function(){this.off("change",u),o()}).bind(this);this.on("change",u);var l=t[n.exitFullscreen]();l instanceof Promise&&l.then(u).catch(s)}).bind(this))},toggle:function(o,s){return this.isFullscreen?this.exit():this.request(o,s)},onchange:function(o){this.on("change",o)},onerror:function(o){this.on("error",o)},on:function(o,s){var u=a[o];u&&t.addEventListener(u,s,!1)},off:function(o,s){var u=a[o];u&&t.removeEventListener(u,s,!1)},raw:n};if(!n){r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(i,{isFullscreen:{get:function(){return!!t[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!t[n.fullscreenEnabled]}}}),r?e.exports=i:window.screenfull=i})()}(n1)),n1.exports}var OH=EH();const oi=$n(OH);var J5=function(e,t){var r=t||{},n=r.onExit,a=r.onEnter,i=r.pageFullscreen,o=i===void 0?!1:i,s=iH(o)||!o?{}:o,u=s.className,l=u===void 0?"ahooks-page-fullscreen":u,h=s.zIndex,d=h===void 0?999999:h,g=di(n),b=di(a),y=Uf(A.useState(_),2),w=y[0],S=y[1],E=A.useRef(_());function _(){return oi.isEnabled&&!!oi.element&&oi.element===ao(e)}var C=function($){var D,V;$?(D=b.current)===null||D===void 0||D.call(b):(V=g.current)===null||V===void 0||V.call(g)},f=function($){E.current!==$&&(C($),S($),E.current=$)},p=function(){var $=_();f($)},v=function($){var D=ao(e);if(D){var V=document.getElementById(l);$?(D.classList.add(l),V||(V=document.createElement("style"),V.setAttribute("id",l),V.textContent=`
138
+ */var a6;function SH(){return a6||(a6=1,function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},r=e.exports,n=function(){for(var o,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=0,l=s.length,h={};u<l;u++)if(o=s[u],o&&o[1]in t){for(u=0;u<o.length;u++)h[s[0][u]]=o[u];return h}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(o,s){return new Promise((function(u,l){var h=(function(){this.off("change",h),u()}).bind(this);this.on("change",h),o=o||t.documentElement;var d=o[n.requestFullscreen](s);d instanceof Promise&&d.then(h).catch(l)}).bind(this))},exit:function(){return new Promise((function(o,s){if(!this.isFullscreen){o();return}var u=(function(){this.off("change",u),o()}).bind(this);this.on("change",u);var l=t[n.exitFullscreen]();l instanceof Promise&&l.then(u).catch(s)}).bind(this))},toggle:function(o,s){return this.isFullscreen?this.exit():this.request(o,s)},onchange:function(o){this.on("change",o)},onerror:function(o){this.on("error",o)},on:function(o,s){var u=a[o];u&&t.addEventListener(u,s,!1)},off:function(o,s){var u=a[o];u&&t.removeEventListener(u,s,!1)},raw:n};if(!n){r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(i,{isFullscreen:{get:function(){return!!t[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!t[n.fullscreenEnabled]}}}),r?e.exports=i:window.screenfull=i})()}(n1)),n1.exports}var CH=SH();const oi=$n(CH);var J5=function(e,t){var r=t||{},n=r.onExit,a=r.onEnter,i=r.pageFullscreen,o=i===void 0?!1:i,s=nH(o)||!o?{}:o,u=s.className,l=u===void 0?"ahooks-page-fullscreen":u,h=s.zIndex,d=h===void 0?999999:h,g=di(n),b=di(a),y=Uf(A.useState(_),2),w=y[0],S=y[1],E=A.useRef(_());function _(){return oi.isEnabled&&!!oi.element&&oi.element===ao(e)}var C=function($){var D,V;$?(D=b.current)===null||D===void 0||D.call(b):(V=g.current)===null||V===void 0||V.call(g)},f=function($){E.current!==$&&(C($),S($),E.current=$)},p=function(){var $=_();f($)},v=function($){var D=ao(e);if(D){var V=document.getElementById(l);$?(D.classList.add(l),V||(V=document.createElement("style"),V.setAttribute("id",l),V.textContent=`
139
139
  .`.concat(l,` {
140
140
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
141
141
  width: 100% !important; height: 100% !important;
142
142
  z-index: `).concat(d,`;
143
- }`),D.appendChild(V))):(D.classList.remove(l),V&&V.remove()),f($)}},x=function(){var $=ao(e);if($){if(o){v(!0);return}if(oi.isEnabled)try{oi.request($)}catch(D){console.error(D)}}},k=function(){var $=ao(e);if($){if(o){v(!1);return}oi.isEnabled&&oi.element===$&&oi.exit()}},O=function(){w?k():x()};return A.useEffect(function(){if(!(!oi.isEnabled||o))return oi.on("change",p),function(){oi.off("change",p)}},[]),[w,{enterFullscreen:xu(x),exitFullscreen:xu(k),toggleFullscreen:xu(O),isEnabled:oi.isEnabled}]};function RH(e){var t=A.useRef(0),r=Uf(A.useState(e),2),n=r[0],a=r[1],i=A.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){a(o)})},[]);return am(function(){cancelAnimationFrame(t.current)}),[n,i]}var a1,i6;function TH(){if(i6)return a1;i6=1;function e(t,r){return function(n){return t(r(n))}}return a1=e,a1}var i1,o6;function PH(){if(o6)return i1;o6=1;var e=TH(),t=e(Object.getPrototypeOf,Object);return i1=t,i1}var o1,s6;function kH(){if(s6)return o1;s6=1;var e=d5(),t=PH(),r=f5(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,u=o.call(Object);function l(h){if(!r(h)||e(h)!=n)return!1;var d=t(h);if(d===null)return!0;var g=s.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==u}return o1=l,o1}var $H=kH();const AH=$n($H);var u6=new WeakMap,l6=new WeakMap;function Q5(e,t){var r=u6.get(e);if(r)return r;if(l6.has(e))return e;var n=new Proxy(e,{get:function(a,i,o){var s=Reflect.get(a,i,o),u=Reflect.getOwnPropertyDescriptor(a,i);return!(u!=null&&u.configurable)&&!(u!=null&&u.writable)?s:AH(s)||Array.isArray(s)?Q5(s,t):s},set:function(a,i,o){var s=Reflect.set(a,i,o);return t(),s},deleteProperty:function(a,i){var o=Reflect.deleteProperty(a,i);return t(),o}});return u6.set(e,n),l6.set(n,e),n}function Sa(e){var t=gH(),r=A.useRef(e),n=oH(function(){return Q5(r.current,function(){t()})},[]);return n}var eR=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var o=i[a];r.call(n,o[1],o[0])}},t}()}(),dy=typeof window<"u"&&typeof document<"u"&&window.document===document,xp=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),DH=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xp):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),NH=2;function MH(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&s()}function o(){DH(i)}function s(){var u=Date.now();if(r){if(u-a<NH)return;n=!0}else r=!0,n=!1,setTimeout(o,t);a=u}return s}var IH=20,FH=["top","right","bottom","left","width","height","size","weight"],jH=typeof MutationObserver<"u",LH=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=MH(this.refresh.bind(this),IH)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!dy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jH?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!dy||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=FH.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tR=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Hl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||xp},rR=im(0,0,0,0);function Sp(e){return parseFloat(e)||0}function c6(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+Sp(i)},0)}function zH(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],o=e["padding-"+i];r[i]=Sp(o)}return r}function BH(e){var t=e.getBBox();return im(0,0,t.width,t.height)}function HH(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return rR;var n=Hl(e).getComputedStyle(e),a=zH(n),i=a.left+a.right,o=a.top+a.bottom,s=Sp(n.width),u=Sp(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=c6(n,"left","right")+i),Math.round(u+o)!==r&&(u-=c6(n,"top","bottom")+o)),!UH(e)){var l=Math.round(s+i)-t,h=Math.round(u+o)-r;Math.abs(l)!==1&&(s-=l),Math.abs(h)!==1&&(u-=h)}return im(a.left,a.top,s,u)}var VH=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Hl(e).SVGGraphicsElement}:function(e){return e instanceof Hl(e).SVGElement&&typeof e.getBBox=="function"}}();function UH(e){return e===Hl(e).document.documentElement}function qH(e){return dy?VH(e)?BH(e):HH(e):rR}function WH(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return tR(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}function im(e,t,r,n){return{x:e,y:t,width:r,height:n}}var YH=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=im(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=qH(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),GH=function(){function e(t,r){var n=WH(r);tR(this,{target:t,contentRect:n})}return e}(),KH=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new eR,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new YH(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new GH(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nR=typeof WeakMap<"u"?new WeakMap:new eR,aR=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=LH.getInstance(),n=new KH(t,r,this);nR.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){aR.prototype[e]=function(){var t;return(t=nR.get(this))[e].apply(t,arguments)}});var iR=function(){return typeof xp.ResizeObserver<"u"?xp.ResizeObserver:aR}(),XH=X5(A.useLayoutEffect),ZH=K5?XH:Z5;function JH(e){var t=Uf(RH(function(){var a=ao(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=t[0],n=t[1];return ZH(function(){var a=ao(e);if(a){var i=new iR(function(o){o.forEach(function(s){var u=s.target,l=u.clientWidth,h=u.clientHeight;n({width:l,height:h})})});return i.observe(a),function(){i.disconnect()}}},[],e),r}var Z0={exports:{}},QH=Z0.exports,d6;function eV(){return d6||(d6=1,function(e){(function(){function t(f){var p={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(f===!1)return JSON.parse(JSON.stringify(p));var v={};for(var x in p)p.hasOwnProperty(x)&&(v[x]=p[x].defaultValue);return v}function r(){var f=t(!0),p={};for(var v in f)f.hasOwnProperty(v)&&(p[v]=!0);return p}var n={},a={},i={},o=t(!0),s="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:r()};n.helper={},n.extensions={},n.setOption=function(f,p){return o[f]=p,this},n.getOption=function(f){return o[f]},n.getOptions=function(){return o},n.resetOptions=function(){o=t(!0)},n.setFlavor=function(f){if(!u.hasOwnProperty(f))throw Error(f+" flavor was not found");n.resetOptions();var p=u[f];s=f;for(var v in p)p.hasOwnProperty(v)&&(o[v]=p[v])},n.getFlavor=function(){return s},n.getFlavorOptions=function(f){if(u.hasOwnProperty(f))return u[f]},n.getDefaultOptions=function(f){return t(f)},n.subParser=function(f,p){if(n.helper.isString(f))if(typeof p<"u")a[f]=p;else{if(a.hasOwnProperty(f))return a[f];throw Error("SubParser named "+f+" not registered!")}},n.extension=function(f,p){if(!n.helper.isString(f))throw Error("Extension 'name' must be a string");if(f=n.helper.stdExtName(f),n.helper.isUndefined(p)){if(!i.hasOwnProperty(f))throw Error("Extension named "+f+" is not registered!");return i[f]}else{typeof p=="function"&&(p=p()),n.helper.isArray(p)||(p=[p]);var v=l(p,f);if(v.valid)i[f]=p;else throw Error(v.error)}},n.getAllExtensions=function(){return i},n.removeExtension=function(f){delete i[f]},n.resetExtensions=function(){i={}};function l(f,p){var v=p?"Error in "+p+" extension->":"Error in unnamed extension",x={valid:!0,error:""};n.helper.isArray(f)||(f=[f]);for(var k=0;k<f.length;++k){var O=v+" sub-extension "+k+": ",$=f[k];if(typeof $!="object")return x.valid=!1,x.error=O+"must be an object, but "+typeof $+" given",x;if(!n.helper.isString($.type))return x.valid=!1,x.error=O+'property "type" must be a string, but '+typeof $.type+" given",x;var D=$.type=$.type.toLowerCase();if(D==="language"&&(D=$.type="lang"),D==="html"&&(D=$.type="output"),D!=="lang"&&D!=="output"&&D!=="listener")return x.valid=!1,x.error=O+"type "+D+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',x;if(D==="listener"){if(n.helper.isUndefined($.listeners))return x.valid=!1,x.error=O+'. Extensions of type "listener" must have a property called "listeners"',x}else if(n.helper.isUndefined($.filter)&&n.helper.isUndefined($.regex))return x.valid=!1,x.error=O+D+' extensions must define either a "regex" property or a "filter" method',x;if($.listeners){if(typeof $.listeners!="object")return x.valid=!1,x.error=O+'"listeners" property must be an object but '+typeof $.listeners+" given",x;for(var V in $.listeners)if($.listeners.hasOwnProperty(V)&&typeof $.listeners[V]!="function")return x.valid=!1,x.error=O+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+V+" must be a function but "+typeof $.listeners[V]+" given",x}if($.filter){if(typeof $.filter!="function")return x.valid=!1,x.error=O+'"filter" must be a function, but '+typeof $.filter+" given",x}else if($.regex){if(n.helper.isString($.regex)&&($.regex=new RegExp($.regex,"g")),!($.regex instanceof RegExp))return x.valid=!1,x.error=O+'"regex" property must either be a string or a RegExp object, but '+typeof $.regex+" given",x;if(n.helper.isUndefined($.replace))return x.valid=!1,x.error=O+'"regex" extensions must implement a replace string or function',x}}return x}n.validateExtension=function(f){var p=l(f,null);return p.valid?!0:(console.warn(p.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(f){return typeof f=="string"||f instanceof String},n.helper.isFunction=function(f){var p={};return f&&p.toString.call(f)==="[object Function]"},n.helper.isArray=function(f){return Array.isArray(f)},n.helper.isUndefined=function(f){return typeof f>"u"},n.helper.forEach=function(f,p){if(n.helper.isUndefined(f))throw new Error("obj param is required");if(n.helper.isUndefined(p))throw new Error("callback param is required");if(!n.helper.isFunction(p))throw new Error("callback param must be a function/closure");if(typeof f.forEach=="function")f.forEach(p);else if(n.helper.isArray(f))for(var v=0;v<f.length;v++)p(f[v],v,f);else if(typeof f=="object")for(var x in f)f.hasOwnProperty(x)&&p(f[x],x,f);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(f){return f.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function h(f,p){var v=p.charCodeAt(0);return"¨E"+v+"E"}n.helper.escapeCharactersCallback=h,n.helper.escapeCharacters=function(f,p,v){var x="(["+p.replace(/([\[\]\\])/g,"\\$1")+"])";v&&(x="\\\\"+x);var k=new RegExp(x,"g");return f=f.replace(k,h),f},n.helper.unescapeHTMLEntities=function(f){return f.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var d=function(f,p,v,x){var k=x||"",O=k.indexOf("g")>-1,$=new RegExp(p+"|"+v,"g"+k.replace(/g/g,"")),D=new RegExp(p,k.replace(/g/g,"")),V=[],I,M,F,T,N;do for(I=0;F=$.exec(f);)if(D.test(F[0]))I++||(M=$.lastIndex,T=M-F[0].length);else if(I&&!--I){N=F.index+F[0].length;var j={left:{start:T,end:M},match:{start:M,end:F.index},right:{start:F.index,end:N},wholeMatch:{start:T,end:N}};if(V.push(j),!O)return V}while(I&&($.lastIndex=M));return V};n.helper.matchRecursiveRegExp=function(f,p,v,x){for(var k=d(f,p,v,x),O=[],$=0;$<k.length;++$)O.push([f.slice(k[$].wholeMatch.start,k[$].wholeMatch.end),f.slice(k[$].match.start,k[$].match.end),f.slice(k[$].left.start,k[$].left.end),f.slice(k[$].right.start,k[$].right.end)]);return O},n.helper.replaceRecursiveRegExp=function(f,p,v,x,k){if(!n.helper.isFunction(p)){var O=p;p=function(){return O}}var $=d(f,v,x,k),D=f,V=$.length;if(V>0){var I=[];$[0].wholeMatch.start!==0&&I.push(f.slice(0,$[0].wholeMatch.start));for(var M=0;M<V;++M)I.push(p(f.slice($[M].wholeMatch.start,$[M].wholeMatch.end),f.slice($[M].match.start,$[M].match.end),f.slice($[M].left.start,$[M].left.end),f.slice($[M].right.start,$[M].right.end))),M<V-1&&I.push(f.slice($[M].wholeMatch.end,$[M+1].wholeMatch.start));$[V-1].wholeMatch.end<f.length&&I.push(f.slice($[V-1].wholeMatch.end)),D=I.join("")}return D},n.helper.regexIndexOf=function(f,p,v){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(p instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var x=f.substring(v||0).search(p);return x>=0?x+(v||0):x},n.helper.splitAtIndex=function(f,p){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[f.substring(0,p),f.substring(p)]},n.helper.encodeEmailAddress=function(f){var p=[function(v){return"&#"+v.charCodeAt(0)+";"},function(v){return"&#x"+v.charCodeAt(0).toString(16)+";"},function(v){return v}];return f=f.replace(/./g,function(v){if(v==="@")v=p[Math.floor(Math.random()*2)](v);else{var x=Math.random();v=x>.9?p[2](v):x>.45?p[1](v):p[0](v)}return v}),f},n.helper.padEnd=function(p,v,x){return v=v>>0,x=String(x||" "),p.length>v?String(p):(v=v-p.length,v>x.length&&(x+=x.repeat(v/x.length)),String(p)+x.slice(0,v))},typeof console>"u"&&(console={warn:function(f){alert(f)},log:function(f){alert(f)},error:function(f){throw f}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},n.Converter=function(f){var p={},v=[],x=[],k={},O=s,$={parsed:{},raw:"",format:""};D();function D(){f=f||{};for(var T in o)o.hasOwnProperty(T)&&(p[T]=o[T]);if(typeof f=="object")for(var N in f)f.hasOwnProperty(N)&&(p[N]=f[N]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof f+" was passed instead.");p.extensions&&n.helper.forEach(p.extensions,V)}function V(T,N){if(N=N||null,n.helper.isString(T))if(T=n.helper.stdExtName(T),N=T,n.extensions[T]){console.warn("DEPRECATION WARNING: "+T+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),I(n.extensions[T],T);return}else if(!n.helper.isUndefined(i[T]))T=i[T];else throw Error('Extension "'+T+'" could not be loaded. It was either not found or is not a valid extension.');typeof T=="function"&&(T=T()),n.helper.isArray(T)||(T=[T]);var j=l(T,N);if(!j.valid)throw Error(j.error);for(var H=0;H<T.length;++H){switch(T[H].type){case"lang":v.push(T[H]);break;case"output":x.push(T[H]);break}if(T[H].hasOwnProperty("listeners"))for(var B in T[H].listeners)T[H].listeners.hasOwnProperty(B)&&M(B,T[H].listeners[B])}}function I(T,N){typeof T=="function"&&(T=T(new n.Converter)),n.helper.isArray(T)||(T=[T]);var j=l(T,N);if(!j.valid)throw Error(j.error);for(var H=0;H<T.length;++H)switch(T[H].type){case"lang":v.push(T[H]);break;case"output":x.push(T[H]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function M(T,N){if(!n.helper.isString(T))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof T+" given");if(typeof N!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof N+" given");k.hasOwnProperty(T)||(k[T]=[]),k[T].push(N)}function F(T){var N=T.match(/^\s*/)[0].length,j=new RegExp("^\\s{0,"+N+"}","gm");return T.replace(j,"")}this._dispatch=function(N,j,H,B){if(k.hasOwnProperty(N))for(var U=0;U<k[N].length;++U){var G=k[N][U](N,j,this,H,B);G&&typeof G<"u"&&(j=G)}return j},this.listen=function(T,N){return M(T,N),this},this.makeHtml=function(T){if(!T)return T;var N={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:v,outputModifiers:x,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return T=T.replace(/¨/g,"¨T"),T=T.replace(/\$/g,"¨D"),T=T.replace(/\r\n/g,`
143
+ }`),D.appendChild(V))):(D.classList.remove(l),V&&V.remove()),f($)}},x=function(){var $=ao(e);if($){if(o){v(!0);return}if(oi.isEnabled)try{oi.request($)}catch(D){console.error(D)}}},k=function(){var $=ao(e);if($){if(o){v(!1);return}oi.isEnabled&&oi.element===$&&oi.exit()}},O=function(){w?k():x()};return A.useEffect(function(){if(!(!oi.isEnabled||o))return oi.on("change",p),function(){oi.off("change",p)}},[]),[w,{enterFullscreen:xu(x),exitFullscreen:xu(k),toggleFullscreen:xu(O),isEnabled:oi.isEnabled}]};function EH(e){var t=A.useRef(0),r=Uf(A.useState(e),2),n=r[0],a=r[1],i=A.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){a(o)})},[]);return am(function(){cancelAnimationFrame(t.current)}),[n,i]}var a1,i6;function OH(){if(i6)return a1;i6=1;function e(t,r){return function(n){return t(r(n))}}return a1=e,a1}var i1,o6;function RH(){if(o6)return i1;o6=1;var e=OH(),t=e(Object.getPrototypeOf,Object);return i1=t,i1}var o1,s6;function TH(){if(s6)return o1;s6=1;var e=d5(),t=RH(),r=f5(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,u=o.call(Object);function l(h){if(!r(h)||e(h)!=n)return!1;var d=t(h);if(d===null)return!0;var g=s.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==u}return o1=l,o1}var PH=TH();const kH=$n(PH);var u6=new WeakMap,l6=new WeakMap;function Q5(e,t){var r=u6.get(e);if(r)return r;if(l6.has(e))return e;var n=new Proxy(e,{get:function(a,i,o){var s=Reflect.get(a,i,o),u=Reflect.getOwnPropertyDescriptor(a,i);return!(u!=null&&u.configurable)&&!(u!=null&&u.writable)?s:kH(s)||Array.isArray(s)?Q5(s,t):s},set:function(a,i,o){var s=Reflect.set(a,i,o);return t(),s},deleteProperty:function(a,i){var o=Reflect.deleteProperty(a,i);return t(),o}});return u6.set(e,n),l6.set(n,e),n}function Sa(e){var t=pH(),r=A.useRef(e),n=aH(function(){return Q5(r.current,function(){t()})},[]);return n}var eR=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var o=i[a];r.call(n,o[1],o[0])}},t}()}(),dy=typeof window<"u"&&typeof document<"u"&&window.document===document,xp=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),$H=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xp):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),AH=2;function DH(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&s()}function o(){$H(i)}function s(){var u=Date.now();if(r){if(u-a<AH)return;n=!0}else r=!0,n=!1,setTimeout(o,t);a=u}return s}var NH=20,MH=["top","right","bottom","left","width","height","size","weight"],IH=typeof MutationObserver<"u",FH=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=DH(this.refresh.bind(this),NH)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!dy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),IH?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!dy||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=MH.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tR=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Hl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||xp},rR=im(0,0,0,0);function Sp(e){return parseFloat(e)||0}function c6(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+Sp(i)},0)}function jH(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],o=e["padding-"+i];r[i]=Sp(o)}return r}function LH(e){var t=e.getBBox();return im(0,0,t.width,t.height)}function zH(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return rR;var n=Hl(e).getComputedStyle(e),a=jH(n),i=a.left+a.right,o=a.top+a.bottom,s=Sp(n.width),u=Sp(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=c6(n,"left","right")+i),Math.round(u+o)!==r&&(u-=c6(n,"top","bottom")+o)),!HH(e)){var l=Math.round(s+i)-t,h=Math.round(u+o)-r;Math.abs(l)!==1&&(s-=l),Math.abs(h)!==1&&(u-=h)}return im(a.left,a.top,s,u)}var BH=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Hl(e).SVGGraphicsElement}:function(e){return e instanceof Hl(e).SVGElement&&typeof e.getBBox=="function"}}();function HH(e){return e===Hl(e).document.documentElement}function VH(e){return dy?BH(e)?LH(e):zH(e):rR}function UH(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return tR(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}function im(e,t,r,n){return{x:e,y:t,width:r,height:n}}var qH=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=im(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=VH(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),WH=function(){function e(t,r){var n=UH(r);tR(this,{target:t,contentRect:n})}return e}(),YH=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new eR,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new qH(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new WH(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nR=typeof WeakMap<"u"?new WeakMap:new eR,aR=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=FH.getInstance(),n=new YH(t,r,this);nR.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){aR.prototype[e]=function(){var t;return(t=nR.get(this))[e].apply(t,arguments)}});var iR=function(){return typeof xp.ResizeObserver<"u"?xp.ResizeObserver:aR}(),GH=X5(A.useLayoutEffect),KH=K5?GH:Z5;function XH(e){var t=Uf(EH(function(){var a=ao(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=t[0],n=t[1];return KH(function(){var a=ao(e);if(a){var i=new iR(function(o){o.forEach(function(s){var u=s.target,l=u.clientWidth,h=u.clientHeight;n({width:l,height:h})})});return i.observe(a),function(){i.disconnect()}}},[],e),r}var Z0={exports:{}},ZH=Z0.exports,d6;function JH(){return d6||(d6=1,function(e){(function(){function t(f){var p={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(f===!1)return JSON.parse(JSON.stringify(p));var v={};for(var x in p)p.hasOwnProperty(x)&&(v[x]=p[x].defaultValue);return v}function r(){var f=t(!0),p={};for(var v in f)f.hasOwnProperty(v)&&(p[v]=!0);return p}var n={},a={},i={},o=t(!0),s="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:r()};n.helper={},n.extensions={},n.setOption=function(f,p){return o[f]=p,this},n.getOption=function(f){return o[f]},n.getOptions=function(){return o},n.resetOptions=function(){o=t(!0)},n.setFlavor=function(f){if(!u.hasOwnProperty(f))throw Error(f+" flavor was not found");n.resetOptions();var p=u[f];s=f;for(var v in p)p.hasOwnProperty(v)&&(o[v]=p[v])},n.getFlavor=function(){return s},n.getFlavorOptions=function(f){if(u.hasOwnProperty(f))return u[f]},n.getDefaultOptions=function(f){return t(f)},n.subParser=function(f,p){if(n.helper.isString(f))if(typeof p<"u")a[f]=p;else{if(a.hasOwnProperty(f))return a[f];throw Error("SubParser named "+f+" not registered!")}},n.extension=function(f,p){if(!n.helper.isString(f))throw Error("Extension 'name' must be a string");if(f=n.helper.stdExtName(f),n.helper.isUndefined(p)){if(!i.hasOwnProperty(f))throw Error("Extension named "+f+" is not registered!");return i[f]}else{typeof p=="function"&&(p=p()),n.helper.isArray(p)||(p=[p]);var v=l(p,f);if(v.valid)i[f]=p;else throw Error(v.error)}},n.getAllExtensions=function(){return i},n.removeExtension=function(f){delete i[f]},n.resetExtensions=function(){i={}};function l(f,p){var v=p?"Error in "+p+" extension->":"Error in unnamed extension",x={valid:!0,error:""};n.helper.isArray(f)||(f=[f]);for(var k=0;k<f.length;++k){var O=v+" sub-extension "+k+": ",$=f[k];if(typeof $!="object")return x.valid=!1,x.error=O+"must be an object, but "+typeof $+" given",x;if(!n.helper.isString($.type))return x.valid=!1,x.error=O+'property "type" must be a string, but '+typeof $.type+" given",x;var D=$.type=$.type.toLowerCase();if(D==="language"&&(D=$.type="lang"),D==="html"&&(D=$.type="output"),D!=="lang"&&D!=="output"&&D!=="listener")return x.valid=!1,x.error=O+"type "+D+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',x;if(D==="listener"){if(n.helper.isUndefined($.listeners))return x.valid=!1,x.error=O+'. Extensions of type "listener" must have a property called "listeners"',x}else if(n.helper.isUndefined($.filter)&&n.helper.isUndefined($.regex))return x.valid=!1,x.error=O+D+' extensions must define either a "regex" property or a "filter" method',x;if($.listeners){if(typeof $.listeners!="object")return x.valid=!1,x.error=O+'"listeners" property must be an object but '+typeof $.listeners+" given",x;for(var V in $.listeners)if($.listeners.hasOwnProperty(V)&&typeof $.listeners[V]!="function")return x.valid=!1,x.error=O+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+V+" must be a function but "+typeof $.listeners[V]+" given",x}if($.filter){if(typeof $.filter!="function")return x.valid=!1,x.error=O+'"filter" must be a function, but '+typeof $.filter+" given",x}else if($.regex){if(n.helper.isString($.regex)&&($.regex=new RegExp($.regex,"g")),!($.regex instanceof RegExp))return x.valid=!1,x.error=O+'"regex" property must either be a string or a RegExp object, but '+typeof $.regex+" given",x;if(n.helper.isUndefined($.replace))return x.valid=!1,x.error=O+'"regex" extensions must implement a replace string or function',x}}return x}n.validateExtension=function(f){var p=l(f,null);return p.valid?!0:(console.warn(p.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(f){return typeof f=="string"||f instanceof String},n.helper.isFunction=function(f){var p={};return f&&p.toString.call(f)==="[object Function]"},n.helper.isArray=function(f){return Array.isArray(f)},n.helper.isUndefined=function(f){return typeof f>"u"},n.helper.forEach=function(f,p){if(n.helper.isUndefined(f))throw new Error("obj param is required");if(n.helper.isUndefined(p))throw new Error("callback param is required");if(!n.helper.isFunction(p))throw new Error("callback param must be a function/closure");if(typeof f.forEach=="function")f.forEach(p);else if(n.helper.isArray(f))for(var v=0;v<f.length;v++)p(f[v],v,f);else if(typeof f=="object")for(var x in f)f.hasOwnProperty(x)&&p(f[x],x,f);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(f){return f.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function h(f,p){var v=p.charCodeAt(0);return"¨E"+v+"E"}n.helper.escapeCharactersCallback=h,n.helper.escapeCharacters=function(f,p,v){var x="(["+p.replace(/([\[\]\\])/g,"\\$1")+"])";v&&(x="\\\\"+x);var k=new RegExp(x,"g");return f=f.replace(k,h),f},n.helper.unescapeHTMLEntities=function(f){return f.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var d=function(f,p,v,x){var k=x||"",O=k.indexOf("g")>-1,$=new RegExp(p+"|"+v,"g"+k.replace(/g/g,"")),D=new RegExp(p,k.replace(/g/g,"")),V=[],I,M,F,T,N;do for(I=0;F=$.exec(f);)if(D.test(F[0]))I++||(M=$.lastIndex,T=M-F[0].length);else if(I&&!--I){N=F.index+F[0].length;var j={left:{start:T,end:M},match:{start:M,end:F.index},right:{start:F.index,end:N},wholeMatch:{start:T,end:N}};if(V.push(j),!O)return V}while(I&&($.lastIndex=M));return V};n.helper.matchRecursiveRegExp=function(f,p,v,x){for(var k=d(f,p,v,x),O=[],$=0;$<k.length;++$)O.push([f.slice(k[$].wholeMatch.start,k[$].wholeMatch.end),f.slice(k[$].match.start,k[$].match.end),f.slice(k[$].left.start,k[$].left.end),f.slice(k[$].right.start,k[$].right.end)]);return O},n.helper.replaceRecursiveRegExp=function(f,p,v,x,k){if(!n.helper.isFunction(p)){var O=p;p=function(){return O}}var $=d(f,v,x,k),D=f,V=$.length;if(V>0){var I=[];$[0].wholeMatch.start!==0&&I.push(f.slice(0,$[0].wholeMatch.start));for(var M=0;M<V;++M)I.push(p(f.slice($[M].wholeMatch.start,$[M].wholeMatch.end),f.slice($[M].match.start,$[M].match.end),f.slice($[M].left.start,$[M].left.end),f.slice($[M].right.start,$[M].right.end))),M<V-1&&I.push(f.slice($[M].wholeMatch.end,$[M+1].wholeMatch.start));$[V-1].wholeMatch.end<f.length&&I.push(f.slice($[V-1].wholeMatch.end)),D=I.join("")}return D},n.helper.regexIndexOf=function(f,p,v){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(p instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var x=f.substring(v||0).search(p);return x>=0?x+(v||0):x},n.helper.splitAtIndex=function(f,p){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[f.substring(0,p),f.substring(p)]},n.helper.encodeEmailAddress=function(f){var p=[function(v){return"&#"+v.charCodeAt(0)+";"},function(v){return"&#x"+v.charCodeAt(0).toString(16)+";"},function(v){return v}];return f=f.replace(/./g,function(v){if(v==="@")v=p[Math.floor(Math.random()*2)](v);else{var x=Math.random();v=x>.9?p[2](v):x>.45?p[1](v):p[0](v)}return v}),f},n.helper.padEnd=function(p,v,x){return v=v>>0,x=String(x||" "),p.length>v?String(p):(v=v-p.length,v>x.length&&(x+=x.repeat(v/x.length)),String(p)+x.slice(0,v))},typeof console>"u"&&(console={warn:function(f){alert(f)},log:function(f){alert(f)},error:function(f){throw f}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},n.Converter=function(f){var p={},v=[],x=[],k={},O=s,$={parsed:{},raw:"",format:""};D();function D(){f=f||{};for(var T in o)o.hasOwnProperty(T)&&(p[T]=o[T]);if(typeof f=="object")for(var N in f)f.hasOwnProperty(N)&&(p[N]=f[N]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof f+" was passed instead.");p.extensions&&n.helper.forEach(p.extensions,V)}function V(T,N){if(N=N||null,n.helper.isString(T))if(T=n.helper.stdExtName(T),N=T,n.extensions[T]){console.warn("DEPRECATION WARNING: "+T+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),I(n.extensions[T],T);return}else if(!n.helper.isUndefined(i[T]))T=i[T];else throw Error('Extension "'+T+'" could not be loaded. It was either not found or is not a valid extension.');typeof T=="function"&&(T=T()),n.helper.isArray(T)||(T=[T]);var j=l(T,N);if(!j.valid)throw Error(j.error);for(var H=0;H<T.length;++H){switch(T[H].type){case"lang":v.push(T[H]);break;case"output":x.push(T[H]);break}if(T[H].hasOwnProperty("listeners"))for(var B in T[H].listeners)T[H].listeners.hasOwnProperty(B)&&M(B,T[H].listeners[B])}}function I(T,N){typeof T=="function"&&(T=T(new n.Converter)),n.helper.isArray(T)||(T=[T]);var j=l(T,N);if(!j.valid)throw Error(j.error);for(var H=0;H<T.length;++H)switch(T[H].type){case"lang":v.push(T[H]);break;case"output":x.push(T[H]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function M(T,N){if(!n.helper.isString(T))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof T+" given");if(typeof N!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof N+" given");k.hasOwnProperty(T)||(k[T]=[]),k[T].push(N)}function F(T){var N=T.match(/^\s*/)[0].length,j=new RegExp("^\\s{0,"+N+"}","gm");return T.replace(j,"")}this._dispatch=function(N,j,H,B){if(k.hasOwnProperty(N))for(var U=0;U<k[N].length;++U){var G=k[N][U](N,j,this,H,B);G&&typeof G<"u"&&(j=G)}return j},this.listen=function(T,N){return M(T,N),this},this.makeHtml=function(T){if(!T)return T;var N={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:v,outputModifiers:x,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return T=T.replace(/¨/g,"¨T"),T=T.replace(/\$/g,"¨D"),T=T.replace(/\r\n/g,`
144
144
  `),T=T.replace(/\r/g,`
145
145
  `),T=T.replace(/\u00A0/g,"&nbsp;"),p.smartIndentationFix&&(T=F(T)),T=`
146
146
 
@@ -269,7 +269,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
269
269
  `);break;case"code":x=n.subParser("makeMarkdown.codeSpan")(f,p);break;case"em":case"i":x=n.subParser("makeMarkdown.emphasis")(f,p);break;case"strong":case"b":x=n.subParser("makeMarkdown.strong")(f,p);break;case"del":x=n.subParser("makeMarkdown.strikethrough")(f,p);break;case"a":x=n.subParser("makeMarkdown.links")(f,p);break;case"img":x=n.subParser("makeMarkdown.image")(f,p);break;default:x=f.outerHTML+`
270
270
 
271
271
  `}return x}),n.subParser("makeMarkdown.paragraph",function(f,p){var v="";if(f.hasChildNodes())for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);return v=v.trim(),v}),n.subParser("makeMarkdown.pre",function(f,p){var v=f.getAttribute("prenum");return"<pre>"+p.preList[v]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(f,p){var v="";if(f.hasChildNodes()){v+="~~";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);v+="~~"}return v}),n.subParser("makeMarkdown.strong",function(f,p){var v="";if(f.hasChildNodes()){v+="**";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);v+="**"}return v}),n.subParser("makeMarkdown.table",function(f,p){var v="",x=[[],[]],k=f.querySelectorAll("thead>tr>th"),O=f.querySelectorAll("tbody>tr"),$,D;for($=0;$<k.length;++$){var V=n.subParser("makeMarkdown.tableCell")(k[$],p),I="---";if(k[$].hasAttribute("style")){var M=k[$].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(M){case"text-align:left;":I=":---";break;case"text-align:right;":I="---:";break;case"text-align:center;":I=":---:";break}}x[0][$]=V.trim(),x[1][$]=I}for($=0;$<O.length;++$){var F=x.push([])-1,T=O[$].getElementsByTagName("td");for(D=0;D<k.length;++D){var N=" ";typeof T[D]<"u"&&(N=n.subParser("makeMarkdown.tableCell")(T[D],p)),x[F].push(N)}}var j=3;for($=0;$<x.length;++$)for(D=0;D<x[$].length;++D){var H=x[$][D].length;H>j&&(j=H)}for($=0;$<x.length;++$){for(D=0;D<x[$].length;++D)$===1?x[$][D].slice(-1)===":"?x[$][D]=n.helper.padEnd(x[$][D].slice(-1),j-1,"-")+":":x[$][D]=n.helper.padEnd(x[$][D],j,"-"):x[$][D]=n.helper.padEnd(x[$][D],j);v+="| "+x[$].join(" | ")+` |
272
- `}return v.trim()}),n.subParser("makeMarkdown.tableCell",function(f,p){var v="";if(!f.hasChildNodes())return"";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p,!0);return v.trim()}),n.subParser("makeMarkdown.txt",function(f){var p=f.nodeValue;return p=p.replace(/ +/g," "),p=p.replace(/¨NBSP;/g," "),p=n.helper.unescapeHTMLEntities(p),p=p.replace(/([*_~|`])/g,"\\$1"),p=p.replace(/^(\s*)>/g,"\\$1>"),p=p.replace(/^#/gm,"\\#"),p=p.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),p=p.replace(/^( {0,3}\d+)\./gm,"$1\\."),p=p.replace(/^( {0,3})([+-])/gm,"$1\\$2"),p=p.replace(/]([\s]*)\(/g,"\\]$1\\("),p=p.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),p});var C=this;e.exports?e.exports=n:C.showdown=n}).call(QH)}(Z0)),Z0.exports}var tV=eV();function u0(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rV=0;function oR(e){return"__private_"+rV+++"_"+e}function nV(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,o,s)=>{i!==""&&n.push(i),o<s.length-1&&n.push(r)})),n}/**
272
+ `}return v.trim()}),n.subParser("makeMarkdown.tableCell",function(f,p){var v="";if(!f.hasChildNodes())return"";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p,!0);return v.trim()}),n.subParser("makeMarkdown.txt",function(f){var p=f.nodeValue;return p=p.replace(/ +/g," "),p=p.replace(/¨NBSP;/g," "),p=n.helper.unescapeHTMLEntities(p),p=p.replace(/([*_~|`])/g,"\\$1"),p=p.replace(/^(\s*)>/g,"\\$1>"),p=p.replace(/^#/gm,"\\#"),p=p.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),p=p.replace(/^( {0,3}\d+)\./gm,"$1\\."),p=p.replace(/^( {0,3})([+-])/gm,"$1\\$2"),p=p.replace(/]([\s]*)\(/g,"\\]$1\\("),p=p.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),p});var C=this;e.exports?e.exports=n:C.showdown=n}).call(ZH)}(Z0)),Z0.exports}var QH=JH();function u0(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var eV=0;function oR(e){return"__private_"+eV+++"_"+e}function tV(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,o,s)=>{i!==""&&n.push(i),o<s.length-1&&n.push(r)})),n}/**
273
273
  * Takes a string with placeholder variables like `%{smart_count} file selected`
274
274
  * and replaces it with values from options `{smart_count: 5}`
275
275
  *
@@ -278,15 +278,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
278
278
  *
279
279
  * @param phrase that needs interpolation, with placeholders
280
280
  * @param options with values that will be used to replace placeholders
281
- */function f6(e,t){const r=/\$/g,n="$$$$";let a=[e];if(t==null)return a;for(const i of Object.keys(t))if(i!=="_"){let o=t[i];typeof o=="string"&&(o=r[Symbol.replace](o,n)),a=nV(a,new RegExp(`%\\{${i}\\}`,"g"),o)}return a}const aV=e=>{throw new Error(`missing string: ${e}`)};var fd=oR("onMissingKey"),hd=oR("apply");class sR{constructor(t,r){let{onMissingKey:n=aV}=r===void 0?{}:r;Object.defineProperty(this,hd,{value:iV}),Object.defineProperty(this,fd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(a){return a===1?0:1}},Array.isArray(t)?t.forEach(u0(this,hd)[hd],this):u0(this,hd)[hd](t),u0(this,fd)[fd]=n}translate(t,r){return this.translateArray(t,r).join("")}translateArray(t,r){let n=this.locale.strings[t];if(n==null&&(u0(this,fd)[fd](t),n=t),typeof n=="object"){if(r&&typeof r.smart_count<"u"){const i=this.locale.pluralize(r.smart_count);return f6(n[i],r)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof n!="string")throw new Error("string was not a string");return f6(n,r)}}function iV(e){if(!(e!=null&&e.strings))return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}class oV{constructor(t,r){this.uppy=t,this.opts=r??{}}getPluginState(){const{plugins:t}=this.uppy.getState();return(t==null?void 0:t[this.id])||{}}setPluginState(t){const{plugins:r}=this.uppy.getState();this.uppy.setState({plugins:{...r,[this.id]:{...r[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const t=new sR([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState(void 0)}addTarget(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(t){}afterUpdate(){}}const uR="3.7.7",sV=uR,ac=typeof Buffer=="function",h6=typeof TextDecoder=="function"?new TextDecoder:void 0,p6=typeof TextEncoder=="function"?new TextEncoder:void 0,uV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wd=Array.prototype.slice.call(uV),l0=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Wd),lV=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Bn=String.fromCharCode.bind(String),m6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),lR=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),cR=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),dR=e=>{let t,r,n,a,i="";const o=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=Wd[t>>18&63]+Wd[t>>12&63]+Wd[t>>6&63]+Wd[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},dw=typeof btoa=="function"?e=>btoa(e):ac?e=>Buffer.from(e,"binary").toString("base64"):dR,fy=ac?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push(Bn.apply(null,e.subarray(n,n+4096)));return dw(r.join(""))},J0=(e,t=!1)=>t?lR(fy(e)):fy(e),cV=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Bn(192|t>>>6)+Bn(128|t&63):Bn(224|t>>>12&15)+Bn(128|t>>>6&63)+Bn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Bn(240|t>>>18&7)+Bn(128|t>>>12&63)+Bn(128|t>>>6&63)+Bn(128|t&63)}},dV=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fR=e=>e.replace(dV,cV),g6=ac?e=>Buffer.from(e,"utf8").toString("base64"):p6?e=>fy(p6.encode(e)):e=>dw(fR(e)),$l=(e,t=!1)=>t?lR(g6(e)):g6(e),v6=e=>$l(e,!0),fV=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,hV=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return Bn((r>>>10)+55296)+Bn((r&1023)+56320);case 3:return Bn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Bn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},hR=e=>e.replace(fV,hV),pR=e=>{if(e=e.replace(/\s+/g,""),!lV.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,a;for(let i=0;i<e.length;)t=l0[e.charAt(i++)]<<18|l0[e.charAt(i++)]<<12|(n=l0[e.charAt(i++)])<<6|(a=l0[e.charAt(i++)]),r+=n===64?Bn(t>>16&255):a===64?Bn(t>>16&255,t>>8&255):Bn(t>>16&255,t>>8&255,t&255);return r},fw=typeof atob=="function"?e=>atob(cR(e)):ac?e=>Buffer.from(e,"base64").toString("binary"):pR,mR=ac?e=>m6(Buffer.from(e,"base64")):e=>m6(fw(e).split("").map(t=>t.charCodeAt(0))),gR=e=>mR(vR(e)),pV=ac?e=>Buffer.from(e,"base64").toString("utf8"):h6?e=>h6.decode(mR(e)):e=>hR(fw(e)),vR=e=>cR(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),hy=e=>pV(vR(e)),mV=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},bR=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),yR=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,bR(r));e("fromBase64",function(){return hy(this)}),e("toBase64",function(t){return $l(this,t)}),e("toBase64URI",function(){return $l(this,!0)}),e("toBase64URL",function(){return $l(this,!0)}),e("toUint8Array",function(){return gR(this)})},_R=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,bR(r));e("toBase64",function(t){return J0(this,t)}),e("toBase64URI",function(){return J0(this,!0)}),e("toBase64URL",function(){return J0(this,!0)})},gV=()=>{yR(),_R()},vV={version:uR,VERSION:sV,atob:fw,atobPolyfill:pR,btoa:dw,btoaPolyfill:dR,fromBase64:hy,toBase64:$l,encode:$l,encodeURI:v6,encodeURL:v6,utob:fR,btou:hR,decode:hy,isValid:mV,fromUint8Array:J0,toUint8Array:gR,extendString:yR,extendUint8Array:_R,extendBuiltins:gV};var s1,b6;function bV(){return b6||(b6=1,s1=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),s1}var c0={},y6;function yV(){if(y6)return c0;y6=1;var e=Object.prototype.hasOwnProperty,t;function r(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function n(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var s=/([^=?#&]+)=?([^&]*)/g,u={},l;l=s.exec(o);){var h=r(l[1]),d=r(l[2]);h===null||d===null||h in u||(u[h]=d)}return u}function i(o,s){s=s||"";var u=[],l,h;typeof s!="string"&&(s="?");for(h in o)if(e.call(o,h)){if(l=o[h],!l&&(l===null||l===t||isNaN(l))&&(l=""),h=n(h),l=n(l),h===null||l===null)continue;u.push(h+"="+l)}return u.length?s+u.join("&"):""}return c0.stringify=i,c0.parse=a,c0}var u1,_6;function _V(){if(_6)return u1;_6=1;var e=bV(),t=yV(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function u(_){return(_||"").toString().replace(r,"")}var l=[["#","hash"],["?","query"],function(C,f){return g(f.protocol)?C.replace(/\\/g,"/"):C},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(_){var C;typeof window<"u"?C=window:typeof Ni<"u"?C=Ni:typeof self<"u"?C=self:C={};var f=C.location||{};_=_||f;var p={},v=typeof _,x;if(_.protocol==="blob:")p=new w(unescape(_.pathname),{});else if(v==="string"){p=new w(_,{});for(x in h)delete p[x]}else if(v==="object"){for(x in _)x in h||(p[x]=_[x]);p.slashes===void 0&&(p.slashes=a.test(_.href))}return p}function g(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function b(_,C){_=u(_),_=_.replace(n,""),C=C||{};var f=o.exec(_),p=f[1]?f[1].toLowerCase():"",v=!!f[2],x=!!f[3],k=0,O;return v?x?(O=f[2]+f[3]+f[4],k=f[2].length+f[3].length):(O=f[2]+f[4],k=f[2].length):x?(O=f[3]+f[4],k=f[3].length):O=f[4],p==="file:"?k>=2&&(O=O.slice(2)):g(p)?O=f[4]:p?v&&(O=O.slice(2)):k>=2&&g(C.protocol)&&(O=f[4]),{protocol:p,slashes:v||g(p),slashesCount:k,rest:O}}function y(_,C){if(_==="")return C;for(var f=(C||"/").split("/").slice(0,-1).concat(_.split("/")),p=f.length,v=f[p-1],x=!1,k=0;p--;)f[p]==="."?f.splice(p,1):f[p]===".."?(f.splice(p,1),k++):k&&(p===0&&(x=!0),f.splice(p,1),k--);return x&&f.unshift(""),(v==="."||v==="..")&&f.push(""),f.join("/")}function w(_,C,f){if(_=u(_),_=_.replace(n,""),!(this instanceof w))return new w(_,C,f);var p,v,x,k,O,$,D=l.slice(),V=typeof C,I=this,M=0;for(V!=="object"&&V!=="string"&&(f=C,C=null),f&&typeof f!="function"&&(f=t.parse),C=d(C),v=b(_||"",C),p=!v.protocol&&!v.slashes,I.slashes=v.slashes||p&&C.slashes,I.protocol=v.protocol||C.protocol||"",_=v.rest,(v.protocol==="file:"&&(v.slashesCount!==2||s.test(_))||!v.slashes&&(v.protocol||v.slashesCount<2||!g(I.protocol)))&&(D[3]=[/(.*)/,"pathname"]);M<D.length;M++){if(k=D[M],typeof k=="function"){_=k(_,I);continue}x=k[0],$=k[1],x!==x?I[$]=_:typeof x=="string"?(O=x==="@"?_.lastIndexOf(x):_.indexOf(x),~O&&(typeof k[2]=="number"?(I[$]=_.slice(0,O),_=_.slice(O+k[2])):(I[$]=_.slice(O),_=_.slice(0,O)))):(O=x.exec(_))&&(I[$]=O[1],_=_.slice(0,O.index)),I[$]=I[$]||p&&k[3]&&C[$]||"",k[4]&&(I[$]=I[$].toLowerCase())}f&&(I.query=f(I.query)),p&&C.slashes&&I.pathname.charAt(0)!=="/"&&(I.pathname!==""||C.pathname!=="")&&(I.pathname=y(I.pathname,C.pathname)),I.pathname.charAt(0)!=="/"&&g(I.protocol)&&(I.pathname="/"+I.pathname),e(I.port,I.protocol)||(I.host=I.hostname,I.port=""),I.username=I.password="",I.auth&&(O=I.auth.indexOf(":"),~O?(I.username=I.auth.slice(0,O),I.username=encodeURIComponent(decodeURIComponent(I.username)),I.password=I.auth.slice(O+1),I.password=encodeURIComponent(decodeURIComponent(I.password))):I.username=encodeURIComponent(decodeURIComponent(I.auth)),I.auth=I.password?I.username+":"+I.password:I.username),I.origin=I.protocol!=="file:"&&g(I.protocol)&&I.host?I.protocol+"//"+I.host:"null",I.href=I.toString()}function S(_,C,f){var p=this;switch(_){case"query":typeof C=="string"&&C.length&&(C=(f||t.parse)(C)),p[_]=C;break;case"port":p[_]=C,e(C,p.protocol)?C&&(p.host=p.hostname+":"+C):(p.host=p.hostname,p[_]="");break;case"hostname":p[_]=C,p.port&&(C+=":"+p.port),p.host=C;break;case"host":p[_]=C,i.test(C)?(C=C.split(":"),p.port=C.pop(),p.hostname=C.join(":")):(p.hostname=C,p.port="");break;case"protocol":p.protocol=C.toLowerCase(),p.slashes=!f;break;case"pathname":case"hash":if(C){var v=_==="pathname"?"/":"#";p[_]=C.charAt(0)!==v?v+C:C}else p[_]=C;break;case"username":case"password":p[_]=encodeURIComponent(C);break;case"auth":var x=C.indexOf(":");~x?(p.username=C.slice(0,x),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=C.slice(x+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(C))}for(var k=0;k<l.length;k++){var O=l[k];O[4]&&(p[O[1]]=p[O[1]].toLowerCase())}return p.auth=p.password?p.username+":"+p.password:p.username,p.origin=p.protocol!=="file:"&&g(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString(),p}function E(_){(!_||typeof _!="function")&&(_=t.stringify);var C,f=this,p=f.host,v=f.protocol;v&&v.charAt(v.length-1)!==":"&&(v+=":");var x=v+(f.protocol&&f.slashes||g(f.protocol)?"//":"");return f.username?(x+=f.username,f.password&&(x+=":"+f.password),x+="@"):f.password?(x+=":"+f.password,x+="@"):f.protocol!=="file:"&&g(f.protocol)&&!p&&f.pathname!=="/"&&(x+="@"),(p[p.length-1]===":"||i.test(f.hostname)&&!f.port)&&(p+=":"),x+=p+f.pathname,C=typeof f.query=="object"?_(f.query):f.query,C&&(x+=C.charAt(0)!=="?"?"?"+C:C),f.hash&&(x+=f.hash),x}return w.prototype={set:S,toString:E},w.extractProtocol=b,w.location=d,w.trimLeft=u,w.qs=t,u1=w,u1}var wV=_V();const xV=$n(wV);function py(e){"@babel/helpers - typeof";return py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(e)}function SV(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function CV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pf(e,t)}function OV(e){var t=wR();return function(){var n=mf(e),a;if(t){var i=mf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return RV(this,a)}}function RV(e,t){if(t&&(py(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TV(e)}function TV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function my(e){var t=typeof Map=="function"?new Map:void 0;return my=function(n){if(n===null||!PV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Q0(n,arguments,mf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pf(a,n)},my(e)}function Q0(e,t,r){return wR()?Q0=Reflect.construct.bind():Q0=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),l=new u;return o&&pf(l,o.prototype),l},Q0.apply(null,arguments)}function wR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PV(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},pf(e,t)}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mf(e)}var d0=function(e){EV(r,e);var t=OV(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(CV(this,r),a=t.call(this,n),a.originalRequest=o,a.originalResponse=s,a.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var u=o.getHeader("X-Request-ID")||"n/a",l=o.getMethod(),h=o.getURL(),d=s?s.getStatus():"n/a",g=s?s.getBody()||"":"n/a";n+=", originated from request (method: ".concat(l,", url: ").concat(h,", response code: ").concat(d,", response text: ").concat(g,", request id: ").concat(u,")")}return a.message=n,a}return SV(r)}(my(Error));function kV(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function gy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,N,j){T[N]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,N,j){return Object.defineProperty(T,N,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[N]}try{l({},"")}catch{l=function(j,H,B){return j[H]=B}}function h(T,N,j,H){var B=N&&N.prototype instanceof E?N:E,U=Object.create(B.prototype),G=new M(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,N,j){try{return{type:"normal",arg:T.call(N,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(N){l(T,N,function(j){return this._invoke(N,j)})})}function O(T,N){function j(B,U,G,X){var K=d(T[B],T,U);if(K.type!=="throw"){var ne=K.arg,ie=ne.value;return ie&&Ou(ie)=="object"&&n.call(ie,"__await")?N.resolve(ie.__await).then(function(oe){j("next",oe,G,X)},function(oe){j("throw",oe,G,X)}):N.resolve(ie).then(function(oe){ne.value=oe,G(ne)},function(oe){return j("throw",oe,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new N(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,N,j){var H=g;return function(B,U){if(H===y)throw new Error("Generator is already running");if(H===w){if(B==="throw")throw U;return{value:e,done:!0}}for(j.method=B,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,N,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,N){var j=N.method,H=T.iterator[j];if(H===e)return N.delegate=null,j==="throw"&&T.iterator.return&&(N.method="return",N.arg=e,D(T,N),N.method==="throw")||j!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var B=d(H,T.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,S;var U=B.arg;return U?U.done?(N[T.resultName]=U.value,N.next=T.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,S):U:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,S)}function V(T){var N={tryLoc:T[0]};1 in T&&(N.catchLoc=T[1]),2 in T&&(N.finallyLoc=T[2],N.afterLoc=T[3]),this.tryEntries.push(N)}function I(T){var N=T.completion||{};N.type="normal",delete N.arg,T.completion=N}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var N=T[o];if(N)return N.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function B(){for(;++j<T.length;)if(n.call(T,j))return B.value=T[j],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ou(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var N=typeof T=="function"&&T.constructor;return!!N&&(N===_||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,N,j,H,B){B===void 0&&(B=Promise);var U=new O(h(T,N,j,H),B);return t.isGeneratorFunction(N)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var N=Object(T),j=[];for(var H in N)j.push(H);return j.reverse(),function B(){for(;j.length;){var U=j.pop();if(U in N)return B.value=U,B.done=!1,B}return B.done=!0,B}},t.values=F,M.prototype={constructor:M,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!N)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var j=this;function H(ne,ie){return G.type="throw",G.arg=N,j.next=ne,ie&&(j.method="next",j.arg=e),!!ie}for(var B=this.tryEntries.length-1;B>=0;--B){var U=this.tryEntries[B],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(N,j){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var U=B;break}}U&&(N==="break"||N==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=N,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(N,j){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&j&&(this.next=j),S},finish:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var U=B.arg;I(H)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(N,j,H){return this.delegate={iterator:F(N),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function w6(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,a)}function $V(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){w6(i,n,a,o,s,"next",u)}function s(u){w6(i,n,a,o,s,"throw",u)}o(void 0)})}}function xR(e,t){return MV(e)||NV(e,t)||DV(e,t)||AV()}function AV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
282
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DV(e,t){if(e){if(typeof e=="string")return x6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x6(e,t)}}function x6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(h){l=!0,a=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}function MV(e){if(Array.isArray(e))return e}function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function S6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(r),!0).forEach(function(n){IV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IV(e,t,r){return t=SR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SR(n.key),n)}}function jV(e,t,r){return t&&C6(e.prototype,t),r&&C6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SR(e){var t=LV(e,"string");return Ou(t)==="symbol"?t:String(t)}function LV(e,t){if(Ou(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zV={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:CR,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Cp=function(){function e(t,r){FV(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return jV(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var a=this.options.retryDelays;if(a!=null&&Object.prototype.toString.call(a)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i<o.length;i++){var s=o[i];if(this.options[s]){this._emitError(new Error("tus: cannot use the ".concat(s," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(u){return r._fingerprint=u,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(u){if(r._source=u,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(u){r._emitError(u)})}},{key:"_startParallelUpload",value:function(){var r,n=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,s=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:HV(this._source.size,o);this._parallelUploadUrls&&s.forEach(function(h,d){h.uploadUrl=n._parallelUploadUrls[d]||null}),this._parallelUploadUrls=new Array(s.length);var u=s.map(function(h,d){var g=0;return n._source.slice(h.start,h.end).then(function(b){var y=b.value;return new Promise(function(w,S){var E=el(el({},n.options),{},{uploadUrl:h.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:el(el({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:w,onError:S,onProgress:function(f){i=i-g+f,g=f,n._emitProgress(i,a)},onUploadUrlAvailable:function(){n._parallelUploadUrls[d]=_.url,n._parallelUploadUrls.filter(function(f){return!!f}).length===s.length&&n._saveUploadInUrlStorage()}}),_=new e(y,E);_.start(),n._parallelUploads.push(_)})})}),l;Promise.all(u).then(function(){l=n._openRequest("POST",n.options.endpoint),l.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var h=E6(n.options.metadata);return h!==""&&l.setHeader("Upload-Metadata",h),n._sendRequest(l,null)}).then(function(h){if(!gl(h.getStatus(),200)){n._emitHttpError(l,h,"tus: unexpected response while creating upload");return}var d=h.getHeader("Location");if(d==null){n._emitHttpError(l,h,"tus: invalid or missing Location header");return}n.url=P6(n.options.endpoint,d),"Created upload at ".concat(n.url),n._emitSuccess()}).catch(function(h){n._emitError(h)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(a){a.abort(r)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,a,i){this._emitError(new d0(a,i,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),T6(r,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,a)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length",1):n.setHeader("Upload-Length",this._size);var a=E6(this.options.metadata);a!==""&&n.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(n)):i=this._sendRequest(n,null),i.then(function(o){if(!gl(o.getStatus(),200)){r._emitHttpError(n,o,"tus: unexpected response while creating upload");return}var s=o.getHeader("Location");if(s==null){r._emitHttpError(n,o,"tus: invalid or missing Location header");return}if(r.url=P6(r.options.endpoint,s),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,o):(r._offset=0,r._performUpload())})}).catch(function(o){r._emitHttpError(n,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),a=this._sendRequest(n,null);a.then(function(i){var o=i.getStatus();if(!gl(o,200)){if(o===423){r._emitHttpError(n,i,"tus: upload is currently locked; retry later");return}if(gl(o,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var s=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(s)){r._emitHttpError(n,i,"tus: invalid or missing offset value");return}var u=parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!r.options.uploadLengthDeferred){r._emitHttpError(n,i,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(s===u){r._emitProgress(u,u),r._emitSuccess();return}r._offset=s,r._performUpload()})}).catch(function(i){r._emitHttpError(n,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset",this._offset);var a=this._addChunkToRequest(n);a.then(function(i){if(!gl(i.getStatus(),200)){r._emitHttpError(n,i,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,i)}).catch(function(i){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),i)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,a=this._offset,i=this._offset+this.options.chunkSize;return r.setProgressHandler(function(o){n._emitProgress(a+o,n._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(i===1/0||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var s=o.value,u=o.done,l=s&&s.size?s.size:0;n.options.uploadLengthDeferred&&u&&(n._size=n._offset+l,r.setHeader("Upload-Length",n._size));var h=n._offset+l;return!n.options.uploadLengthDeferred&&u&&h!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(h," bytes"))):s===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,s))})}},{key:"_handleUploadResponse",value:function(r,n){var a=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var a=O6(r,n,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(a){r._urlStorageKey=a})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R6(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=O6("DELETE",r,n);return R6(a,null,n).then(function(i){if(i.getStatus()!==204)throw new d0("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof d0||(i=new d0("tus: failed to terminate upload",i,a,null)),!T6(i,0,n))throw i;var o=n.retryDelays[0],s=n.retryDelays.slice(1),u=el(el({},n),{},{retryDelays:s});return new Promise(function(l){return setTimeout(l,o)}).then(function(){return e.terminate(r,u)})})}}]),e}();function E6(e){return Object.entries(e).map(function(t){var r=xR(t,2),n=r[0],a=r[1];return"".concat(n," ").concat(vV.encode(String(a)))}).join(",")}function gl(e,t){return e>=t&&e<t+100}function O6(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=r.headers||{};if(Object.entries(a).forEach(function(o){var s=xR(o,2),u=s[0],l=s[1];n.setHeader(u,l)}),r.addRequestId){var i=kV();n.setHeader("X-Request-ID",i)}return n}function R6(e,t,r){return vy.apply(this,arguments)}function vy(){return vy=$V(gy().mark(function e(t,r,n){var a;return gy().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof n.onBeforeRequest!="function"){o.next=3;break}return o.next=3,n.onBeforeRequest(t);case 3:return o.next=5,t.send(r);case 5:if(a=o.sent,typeof n.onAfterResponse!="function"){o.next=9;break}return o.next=9,n.onAfterResponse(t,a);case 9:return o.abrupt("return",a);case 10:case"end":return o.stop()}},e)})),vy.apply(this,arguments)}function BV(){var e=!0;return typeof window<"u"&&"navigator"in window&&window.navigator.onLine===!1&&(e=!1),e}function T6(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):CR(e)}function CR(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!gl(t,400)||t===409||t===423)&&BV()}function P6(e,t){return new xV(t,e).toString()}function HV(e,t){for(var r=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:r*a,end:r*(a+1)});return n[t-1].end=e,n}Cp.defaultOptions=zV;function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gf(e)}function VV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WV(n.key),n)}}function qV(e,t,r){return t&&UV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WV(e){var t=YV(e,"string");return gf(t)==="symbol"?t:String(t)}function YV(e,t){if(gf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GV=function(){function e(){VV(this,e)}return qV(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}]),e}();function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vf(e)}function KV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JV(n.key),n)}}function ZV(e,t,r){return t&&XV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JV(e){var t=QV(e,"string");return vf(t)==="symbol"?t:String(t)}function QV(e,t){if(vf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var by=!1;try{by="localStorage"in window;var l1="tusSupport",k6=localStorage.getItem(l1);localStorage.setItem(l1,k6),k6===null&&localStorage.removeItem(l1)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)by=!1;else throw e}var eU=by,tU=function(){function e(){KV(this,e)}return ZV(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var a=Math.round(Math.random()*1e12),i="tus::".concat(r,"::").concat(a);return localStorage.setItem(i,JSON.stringify(n)),Promise.resolve(i)}},{key:"_findEntries",value:function(r){for(var n=[],a=0;a<localStorage.length;a++){var i=localStorage.key(a);if(i.indexOf(r)===0)try{var o=JSON.parse(localStorage.getItem(i));o.urlStorageKey=i,n.push(o)}catch{}}return n}}]),e}();function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}function hw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nU(n.key),n)}}function pw(e,t,r){return t&&rU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nU(e){var t=aU(e,"string");return bf(t)==="symbol"?t:String(t)}function aU(e,t){if(bf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iU=function(){function e(){hw(this,e)}return pw(e,[{key:"createRequest",value:function(r,n){return new oU(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),oU=function(){function e(t,r){hw(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return pw(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){r._xhr.onload=function(){a(new sU(r._xhr))},r._xhr.onerror=function(o){i(o)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),sU=function(){function e(t){hw(this,e),this._xhr=t}return pw(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),ER=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function uU(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var a=n.response;t(a)},n.onerror=function(a){r(a)},n.open("GET",e),n.send()})}var lU=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function cU(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var a=new Uint8Array(n.result);t({value:a})},n.onerror=function(a){r(a)},n.readAsArrayBuffer(e)})}function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function dU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pU(n.key),n)}}function hU(e,t,r){return t&&fU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pU(e){var t=mU(e,"string");return yf(t)==="symbol"?t:String(t)}function mU(e,t){if(yf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $6=function(){function e(t){dU(this,e),this._file=t,this.size=t.size}return hU(e,[{key:"slice",value:function(r,n){if(lU())return cU(this._file.slice(r,n));var a=this._file.slice(r,n),i=n>=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}]),e}();function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function gU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yU(n.key),n)}}function bU(e,t,r){return t&&vU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yU(e){var t=_U(e,"string");return _f(t)==="symbol"?t:String(t)}function _U(e,t){if(_f(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function A6(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function wU(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var xU=function(){function e(t){gU(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return bU(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var a=this,i=n<=this._bufferOffset+A6(this._buffer);if(this._done||i){var o=this._getDataFromBuffer(r,n),s=o==null?this._done:!1;return Promise.resolve({value:o,done:s})}return this._reader.read().then(function(u){var l=u.value,h=u.done;return h?a._done=!0:a._buffer===void 0?a._buffer=l:a._buffer=wU(a._buffer,l),a._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var a=A6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function Ru(e){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}function yy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,N,j){T[N]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,N,j){return Object.defineProperty(T,N,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[N]}try{l({},"")}catch{l=function(j,H,B){return j[H]=B}}function h(T,N,j,H){var B=N&&N.prototype instanceof E?N:E,U=Object.create(B.prototype),G=new M(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,N,j){try{return{type:"normal",arg:T.call(N,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(N){l(T,N,function(j){return this._invoke(N,j)})})}function O(T,N){function j(B,U,G,X){var K=d(T[B],T,U);if(K.type!=="throw"){var ne=K.arg,ie=ne.value;return ie&&Ru(ie)=="object"&&n.call(ie,"__await")?N.resolve(ie.__await).then(function(oe){j("next",oe,G,X)},function(oe){j("throw",oe,G,X)}):N.resolve(ie).then(function(oe){ne.value=oe,G(ne)},function(oe){return j("throw",oe,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new N(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,N,j){var H=g;return function(B,U){if(H===y)throw new Error("Generator is already running");if(H===w){if(B==="throw")throw U;return{value:e,done:!0}}for(j.method=B,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,N,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,N){var j=N.method,H=T.iterator[j];if(H===e)return N.delegate=null,j==="throw"&&T.iterator.return&&(N.method="return",N.arg=e,D(T,N),N.method==="throw")||j!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var B=d(H,T.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,S;var U=B.arg;return U?U.done?(N[T.resultName]=U.value,N.next=T.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,S):U:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,S)}function V(T){var N={tryLoc:T[0]};1 in T&&(N.catchLoc=T[1]),2 in T&&(N.finallyLoc=T[2],N.afterLoc=T[3]),this.tryEntries.push(N)}function I(T){var N=T.completion||{};N.type="normal",delete N.arg,T.completion=N}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var N=T[o];if(N)return N.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function B(){for(;++j<T.length;)if(n.call(T,j))return B.value=T[j],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ru(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var N=typeof T=="function"&&T.constructor;return!!N&&(N===_||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,N,j,H,B){B===void 0&&(B=Promise);var U=new O(h(T,N,j,H),B);return t.isGeneratorFunction(N)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var N=Object(T),j=[];for(var H in N)j.push(H);return j.reverse(),function B(){for(;j.length;){var U=j.pop();if(U in N)return B.value=U,B.done=!1,B}return B.done=!0,B}},t.values=F,M.prototype={constructor:M,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!N)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var j=this;function H(ne,ie){return G.type="throw",G.arg=N,j.next=ne,ie&&(j.method="next",j.arg=e),!!ie}for(var B=this.tryEntries.length-1;B>=0;--B){var U=this.tryEntries[B],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(N,j){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var U=B;break}}U&&(N==="break"||N==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=N,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(N,j){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&j&&(this.next=j),S},finish:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var U=B.arg;I(H)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(N,j,H){return this.delegate={iterator:F(N),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function D6(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,a)}function SU(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){D6(i,n,a,o,s,"next",u)}function s(u){D6(i,n,a,o,s,"throw",u)}o(void 0)})}}function CU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RU(n.key),n)}}function OU(e,t,r){return t&&EU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RU(e){var t=TU(e,"string");return Ru(t)==="symbol"?t:String(t)}function TU(e,t){if(Ru(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ru(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PU=function(){function e(){CU(this,e)}return OU(e,[{key:"openFile",value:function(){var t=SU(yy().mark(function n(a,i){var o;return yy().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(ER()&&a&&typeof a.uri<"u")){u.next=11;break}return u.prev=1,u.next=4,uU(a.uri);case 4:return o=u.sent,u.abrupt("return",new $6(o));case 8:throw u.prev=8,u.t0=u.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(u.t0));case 11:if(!(typeof a.slice=="function"&&typeof a.size<"u")){u.next=13;break}return u.abrupt("return",Promise.resolve(new $6(a)));case 13:if(typeof a.read!="function"){u.next=18;break}if(i=Number(i),Number.isFinite(i)){u.next=17;break}return u.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return u.abrupt("return",Promise.resolve(new xU(a,i)));case 18:return u.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return u.stop()}},n,null,[[1,8]])}));function r(n,a){return t.apply(this,arguments)}return r}()}]),e}();function kU(e,t){return ER()?Promise.resolve($U(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function $U(e,t){var r=e.exif?AU(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function AU(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function DU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OR(n.key),n)}}function MU(e,t,r){return r&&NU(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_y(e,t)}function FU(e){var t=zU();return function(){var n=Ep(e),a;if(t){var i=Ep(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return jU(this,a)}}function jU(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LU(e)}function LU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ep(e)}function N6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(r),!0).forEach(function(n){BU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BU(e,t,r){return t=OR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){var t=HU(e,"string");return Vl(t)==="symbol"?t:String(t)}function HU(e,t){if(Vl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wy=xl(xl({},Cp.defaultOptions),{},{httpStack:new iU,fileReader:new PU,urlStorage:eU?new tU:new GV,fingerprint:kU}),VU=function(e){IU(r,e);var t=FU(r);function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return DU(this,r),a=xl(xl({},wy),a),t.call(this,n,a)}return MU(r,null,[{key:"terminate",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=xl(xl({},wy),i),Cp.terminate(a,i)}}]),r}(Cp);function jo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var UU=0;function RR(e){return"__private_"+UU+++"_"+e}var ca=RR("uppy"),pd=RR("events");class qU{constructor(t){Object.defineProperty(this,ca,{writable:!0,value:void 0}),Object.defineProperty(this,pd,{writable:!0,value:[]}),jo(this,ca)[ca]=t}on(t,r){return jo(this,pd)[pd].push([t,r]),jo(this,ca)[ca].on(t,r)}remove(){for(const[t,r]of jo(this,pd)[pd].splice(0))jo(this,ca)[ca].off(t,r)}onFilePause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onFileRemove(t,r){this.on("file-removed",n=>{t===n.id&&r(n.id)})}onPause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onRetry(t,r){this.on("upload-retry",n=>{t===n&&r()})}onRetryAll(t,r){this.on("retry-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}onPauseAll(t,r){this.on("pause-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}onCancelAll(t,r){var n=this;this.on("cancel-all",function(){jo(n,ca)[ca].getFile(t)&&r(...arguments)})}onResumeAll(t,r){this.on("resume-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}}class WU extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}function YU(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function Mt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var GU=0;function Ea(e){return"__private_"+GU+++"_"+e}function KU(e){return new Error("Cancelled",{cause:e})}function M6(e){if(e!=null){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};(t=this.then)==null||t.call(this,n,n)}return this}var Ua=Ea("activeRequests"),fa=Ea("queuedHandlers"),Ha=Ea("paused"),nu=Ea("pauseTimer"),da=Ea("downLimit"),au=Ea("upperLimit"),Lo=Ea("rateLimitingTimer"),tf=Ea("call"),Xo=Ea("queueNext"),xy=Ea("next"),c1=Ea("queue"),Sy=Ea("dequeue"),d1=Ea("resume"),iu=Ea("increaseLimit");class XU{constructor(t){Object.defineProperty(this,Sy,{value:tq}),Object.defineProperty(this,c1,{value:eq}),Object.defineProperty(this,xy,{value:QU}),Object.defineProperty(this,Xo,{value:JU}),Object.defineProperty(this,tf,{value:ZU}),Object.defineProperty(this,Ua,{writable:!0,value:0}),Object.defineProperty(this,fa,{writable:!0,value:[]}),Object.defineProperty(this,Ha,{writable:!0,value:!1}),Object.defineProperty(this,nu,{writable:!0,value:void 0}),Object.defineProperty(this,da,{writable:!0,value:1}),Object.defineProperty(this,au,{writable:!0,value:void 0}),Object.defineProperty(this,Lo,{writable:!0,value:void 0}),Object.defineProperty(this,d1,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,iu,{writable:!0,value:()=>{if(Mt(this,Ha)[Ha]){Mt(this,Lo)[Lo]=setTimeout(Mt(this,iu)[iu],0);return}Mt(this,da)[da]=this.limit,this.limit=Math.ceil((Mt(this,au)[au]+Mt(this,da)[da])/2);for(let r=Mt(this,da)[da];r<=this.limit;r++)Mt(this,Xo)[Xo]();Mt(this,au)[au]-Mt(this,da)[da]>3?Mt(this,Lo)[Lo]=setTimeout(Mt(this,iu)[iu],2e3):Mt(this,da)[da]=Math.floor(Mt(this,da)[da]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,r){return!Mt(this,Ha)[Ha]&&Mt(this,Ua)[Ua]<this.limit?Mt(this,tf)[tf](t):Mt(this,c1)[c1](t,r)}wrapSyncFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];const s=n.run(()=>(t(...i),queueMicrotask(()=>s.done()),()=>{}),r);return{abortOn:M6,abort(){s.abort()}}}}wrapPromiseFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];let s;const u=new Promise((l,h)=>{s=n.run(()=>{let d,g;try{g=Promise.resolve(t(...i))}catch(b){g=Promise.reject(b)}return g.then(b=>{d?h(d):(s.done(),l(b))},b=>{d?h(d):(s.done(),h(b))}),b=>{d=KU(b)}},r)});return u.abort=l=>{s.abort(l)},u.abortOn=M6,u}}resume(){Mt(this,Ha)[Ha]=!1,clearTimeout(Mt(this,nu)[nu]);for(let t=0;t<this.limit;t++)Mt(this,Xo)[Xo]()}pause(t){t===void 0&&(t=null),Mt(this,Ha)[Ha]=!0,clearTimeout(Mt(this,nu)[nu]),t!=null&&(Mt(this,nu)[nu]=setTimeout(Mt(this,d1)[d1],t))}rateLimit(t){clearTimeout(Mt(this,Lo)[Lo]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(Mt(this,au)[au]=this.limit-1,this.limit=Mt(this,da)[da],Mt(this,Lo)[Lo]=setTimeout(Mt(this,iu)[iu],t))}get isPaused(){return Mt(this,Ha)[Ha]}}function ZU(e){Mt(this,Ua)[Ua]+=1;let t=!1,r;try{r=e()}catch(n){throw Mt(this,Ua)[Ua]-=1,n}return{abort:n=>{t||(t=!0,Mt(this,Ua)[Ua]-=1,r==null||r(n),Mt(this,Xo)[Xo]())},done:()=>{t||(t=!0,Mt(this,Ua)[Ua]-=1,Mt(this,Xo)[Xo]())}}}function JU(){queueMicrotask(()=>Mt(this,xy)[xy]())}function QU(){if(Mt(this,Ha)[Ha]||Mt(this,Ua)[Ua]>=this.limit||Mt(this,fa)[fa].length===0)return;const e=Mt(this,fa)[fa].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=Mt(this,tf)[tf](e.fn);e.abort=t.abort,e.done=t.done}function eq(e,t){const r={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{Mt(this,Sy)[Sy](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Mt(this,fa)[fa].findIndex(a=>r.priority>a.priority);return n===-1?Mt(this,fa)[fa].push(r):Mt(this,fa)[fa].splice(n,0,r),r}function tq(e){const t=Mt(this,fa)[fa].indexOf(e);t!==-1&&Mt(this,fa)[fa].splice(t,1)}function f1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rq(e){const t=r=>"error"in r&&!!r.error;return e.filter(r=>!t(r))}function nq(e){return e.filter(t=>{var r;return!((r=t.progress)!=null&&r.uploadStarted)||!t.isRestored})}function aq(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")}function iq(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function oq(e){return(t,r)=>{if(aq()||iq())return wy.fingerprint(t,r);const n=["tus",e.id,r.endpoint].join("-");return Promise.resolve(n)}}function vu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sq=0;function Wf(e){return"__private_"+sq+++"_"+e}const uq={version:"3.5.5"},TR={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},lq={limit:20,retryDelays:TR.retryDelays,withCredentials:!1};var rf=Wf("retryDelayIterator"),Cy=Wf("uploadLocalFile"),Ey=Wf("getCompanionClientArgs"),h1=Wf("uploadFiles"),md=Wf("handleUpload");class PR extends oV{constructor(t,r){var n,a;if(super(t,{...lq,...r}),Object.defineProperty(this,h1,{value:fq}),Object.defineProperty(this,Ey,{value:dq}),Object.defineProperty(this,Cy,{value:cq}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,md,{writable:!0,value:async i=>{if(i.length===0){this.uppy.log("[Tus] No files to upload");return}this.opts.limit===0&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const o=this.uppy.getFilesByIds(i);await vu(this,h1)[h1](o)}}),this.type="uploader",this.id=this.opts.id||"Tus",(r==null?void 0:r.allowedMetaFields)===void 0&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in r)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=(n=this.opts.rateLimitedQueue)!=null?n:new XU(this.opts.limit),vu(this,rf)[rf]=(a=this.opts.retryDelays)==null?void 0:a.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const t={...this.uppy.getState().files};Object.keys(t).forEach(r=>{var n;if((n=t[r])!=null&&(n=n.tus)!=null&&n.uploadUrl){const a={...t[r].tus};delete a.uploadUrl,t[r]={...t[r],tus:a}}}),this.uppy.setState({files:t})}resetUploaderReferences(t,r){const n=this.uploaders[t];n&&(n.abort(),r!=null&&r.abort&&n.abort(!0),this.uploaders[t]=null),this.uploaderEvents[t]&&(this.uploaderEvents[t].remove(),this.uploaderEvents[t]=null)}onReceiveUploadUrl(t,r){const n=this.uppy.getFile(t.id);n&&(!n.tus||n.tus.uploadUrl!==r)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:r}}))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(vu(this,md)[md]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(vu(this,md)[md])}}function cq(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((r,n)=>{let a,i,o;const s={...this.opts,...e.tus||{}};typeof s.headers=="function"&&(s.headers=s.headers(e));const{onShouldRetry:u,onBeforeRequest:l,...h}=s,d={...TR,...h};d.fingerprint=oq(e),d.onBeforeRequest=async E=>{const _=E.getUnderlyingObject();_.withCredentials=!!s.withCredentials;let C;if(typeof l=="function"&&(C=l(E,e)),f1(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let f;const p=new Promise(v=>{f=v});a=this.requests.run(()=>(e.isPaused&&a.abort(),f(),()=>{})),await Promise.all([p,C]);return}return C},d.onError=E=>{var _;this.uppy.log(E);const C=E.originalRequest!=null?E.originalRequest.getUnderlyingObject():null;YU(C)&&(E=new WU(E,C)),this.resetUploaderReferences(e.id),(_=a)==null||_.abort(),this.uppy.emit("upload-error",e,E),typeof s.onError=="function"&&s.onError(E),n(E)},d.onProgress=(E,_)=>{this.onReceiveUploadUrl(e,o.url),typeof s.onProgress=="function"&&s.onProgress(E,_),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:E,bytesTotal:_})},d.onSuccess=()=>{var E;const _={uploadURL:(E=o.url)!=null?E:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),_),o.url){const{name:C}=o.file;this.uppy.log(`Download ${C} from ${o.url}`)}typeof s.onSuccess=="function"&&s.onSuccess(),r(o)};const g=E=>{var _;const C=E==null||(_=E.originalResponse)==null?void 0:_.getStatus();if(C===429){if(!this.requests.isPaused){var f;const p=(f=vu(this,rf)[rf])==null?void 0:f.next();if(p==null||p.done)return!1;this.requests.rateLimit(p.value)}}else{if(C!=null&&C>400&&C<500&&C!==409&&C!==423)return!1;typeof navigator<"u"&&navigator.onLine===!1&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",()=>{this.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};u!=null?d.onShouldRetry=(E,_)=>u(E,_,s,g):d.onShouldRetry=g;const b=(E,_,C)=>{f1(E,_)&&!f1(E,C)&&(E[C]=E[_])},y={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach(E=>{y[E]=String(e.meta[E])}),b(y,"type","filetype"),b(y,"name","filename"),d.metadata=y,o=new VU(e.data,d),this.uploaders[e.id]=o;const S=new qU(this.uppy);this.uploaderEvents[e.id]=S,i=()=>(e.isPaused||o.start(),()=>{}),o.findPreviousUploads().then(E=>{const _=E[0];_&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${_.creationTime}`),o.resumeFromPreviousUpload(_))}),a=this.requests.run(i),S.onFileRemove(e.id,E=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!o.url}),r(`upload ${E} was removed`)}),S.onPause(e.id,E=>{a.abort(),E?o.abort():a=this.requests.run(i)}),S.onPauseAll(e.id,()=>{a.abort(),o.abort()}),S.onCancelAll(e.id,function(E){let{reason:_}=E===void 0?{}:E;_==="user"&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!o.url})),r(`upload ${e.id} was canceled`)}),S.onResumeAll(e.id,()=>{a.abort(),e.error&&o.abort(),a=this.requests.run(i)})}).catch(r=>{throw this.uppy.emit("upload-error",e,r),r})}function dq(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),typeof r.headers=="function"&&(r.headers=r.headers(e)),{...(t=e.remote)==null?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function fq(e){const t=rq(e),r=nq(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map(n=>{if(n.isRemote){const a=()=>this.requests,i=new AbortController,o=u=>{u.id===n.id&&i.abort()};this.uppy.on("file-removed",o);const s=this.uppy.getRequestClientForFile(n).uploadRemoteFile(n,vu(this,Ey)[Ey](n),{signal:i.signal,getQueue:a});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",o)},{priority:-1})(),s}return vu(this,Cy)[Cy](n)}))}PR.VERSION=uq.version;var p1,I6;function hq(){return I6||(I6=1,p1=function(){var t={},r=t._fns={};t.emit=function(o,s,u,l,h,d,g){var b=n(o);b.length&&a(o,b,[s,u,l,h,d,g])},t.on=function(o,s){r[o]||(r[o]=[]),r[o].push(s)},t.once=function(o,s){function u(){s.apply(this,arguments),t.off(o,u)}this.on(o,u)},t.off=function(o,s){var u=[];if(o&&s){var l=this._fns[o],h=0,d=l?l.length:0;for(h;h<d;h++)l[h]!==s&&u.push(l[h])}u.length?this._fns[o]=u:delete this._fns[o]};function n(i){var o=r[i]?r[i]:[],s=i.indexOf(":"),u=s===-1?[i]:[i.substring(0,s),i.substring(s+1)],l=Object.keys(r),h=0,d=l.length;for(h;h<d;h++){var g=l[h];if(g==="*"&&(o=o.concat(r[g])),u.length===2&&u[0]===g){o=o.concat(r[g]);break}}return o}function a(i,o,s){var u=0,l=o.length;for(u;u<l&&o[u];u++)o[u].event=i,o[u].apply(o[u],s)}return t}),p1}var pq=hq();const mq=$n(pq);let gq="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vq=(e=21)=>{let t="",r=e;for(;r--;)t+=gq[Math.random()*64|0];return t};function ep(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bq=0;function kR(e){return"__private_"+bq+++"_"+e}const yq={version:"3.2.2"};var cu=kR("callbacks"),m1=kR("publish");class $R{constructor(){Object.defineProperty(this,m1,{value:_q}),this.state={},Object.defineProperty(this,cu,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,ep(this,m1)[m1](r,n,t)}subscribe(t){return ep(this,cu)[cu].add(t),()=>{ep(this,cu)[cu].delete(t)}}}function _q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ep(this,cu)[cu].forEach(n=>{n(...t)})}$R.VERSION=yq.version;function AR(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const F6={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function DR(e){var t;if(e.type)return e.type;const r=e.name?(t=AR(e.name).extension)==null?void 0:t.toLowerCase():null;return r&&r in F6?F6[r]:"application/octet-stream"}function wq(e){return e.charCodeAt(0).toString(32)}function j6(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${wq(r)}`,"/"))+t}function xq(e,t){let r=t||"uppy";return typeof e.name=="string"&&(r+=`-${j6(e.name.toLowerCase())}`),e.type!==void 0&&(r+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(r+=`-${j6(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(r+=`-${e.data.size}`),e.data.lastModified!==void 0&&(r+=`-${e.data.lastModified}`),r}function Sq(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function Cq(e,t){if(Sq(e))return e.id;const r=DR(e);return xq({...e,type:r},t)}function Eq(e){if(e==null&&typeof navigator<"u"&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1].split(".",2),a=parseInt(n[0],10),i=parseInt(n[1],10);return a<15||a===15&&i<15063||a>18||a===18&&i>=18218}function Oq(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function g1(e){return e<10?`0${e}`:e.toString()}function tp(){const e=new Date,t=g1(e.getHours()),r=g1(e.getMinutes()),n=g1(e.getSeconds());return`${t}:${r}:${n}`}const Rq={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${tp()}]`,...t)}},Tq={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${tp()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${tp()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${tp()}]`,...t)}};var v1,L6;function Pq(){return L6||(L6=1,v1=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);const r=t<0;let n=Math.abs(t);if(r&&(n=-n),n===0)return"0 B";const a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.min(Math.floor(Math.log(n)/Math.log(1024)),a.length-1),o=Number(n/1024**i),s=a[i];return`${o>=10||o%1===0?Math.round(o):o.toFixed(1)} ${s}`}),v1}var kq=Pq();const f0=$n(kq);var b1,z6;function $q(){if(z6)return b1;z6=1;function e(t,r){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=r,this.parts=t.split(r)}return e.prototype.match=function(t){var r=!0,n=this.parts,a,i=n.length,o;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)r=!1;else{for(o=(t||"").split(this.separator),a=0;r&&a<i;a++)n[a]!=="*"&&(a<o.length?r=n[a]===o[a]:r=!1);r=r&&o}else if(typeof t.splice=="function")for(r=[],a=t.length;a--;)this.match(t[a])&&(r[r.length]=t[a]);else if(typeof t=="object"){r={};for(var s in t)this.match(s)&&(r[s]=t[s])}return r},b1=function(t,r,n){var a=new e(t,n||/[\/\.]/);return typeof r<"u"?a.match(r):a},b1}var y1,B6;function Aq(){if(B6)return y1;B6=1;var e=$q(),t=/[\/\+\.]/;return y1=function(r,n){function a(i){var o=e(i,r,t);return o&&o.length>=2}return n?a(n.split(";")[0]):a},y1}var Dq=Aq();const Nq=$n(Dq),Mq={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Pi extends Error{constructor(t,r){var n;super(t),this.isRestriction=!0,this.isUserFacing=(n=r==null?void 0:r.isUserFacing)!=null?n:!0,r!=null&&r.file&&(this.file=r.file)}}class Iq{constructor(t,r){this.getI18n=r,this.getOpts=()=>{var n;const a=t();if(((n=a.restrictions)==null?void 0:n.allowedFileTypes)!=null&&!Array.isArray(a.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return a}}validateAggregateRestrictions(t,r){const{maxTotalFileSize:n,maxNumberOfFiles:a}=this.getOpts().restrictions;if(a&&t.filter(o=>!o.isGhost).length+r.length>a)throw new Pi(`${this.getI18n()("youCanOnlyUploadX",{smart_count:a})}`);if(n){const i=[...t,...r].reduce((o,s)=>{var u;return o+((u=s.size)!=null?u:0)},0);if(i>n)throw new Pi(this.getI18n()("aggregateExceedsSize",{sizeAllowed:f0(n),size:f0(i)}))}}validateSingleFile(t){const{maxFileSize:r,minFileSize:n,allowedFileTypes:a}=this.getOpts().restrictions;if(a&&!a.some(o=>o.includes("/")?t.type?Nq(t.type.replace(/;.*?$/,""),o):!1:o[0]==="."&&t.extension?t.extension.toLowerCase()===o.slice(1).toLowerCase():!1)){const o=a.join(", ");throw new Pi(this.getI18n()("youCanOnlyUploadFileTypes",{types:o}),{file:t})}if(r&&t.size!=null&&t.size>r)throw new Pi(this.getI18n()("exceedsSize",{size:f0(r),file:t.name}),{file:t});if(n&&t.size!=null&&t.size<n)throw new Pi(this.getI18n()("inferiorSize",{size:f0(n)}),{file:t})}validate(t,r){r.forEach(n=>{this.validateSingleFile(n)}),this.validateAggregateRestrictions(t,r)}validateMinNumberOfFiles(t){const{minNumberOfFiles:r}=this.getOpts().restrictions;if(r&&Object.keys(t).length<r)throw new Pi(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:r}))}getMissingRequiredMetaFields(t){const r=new Pi(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:n}=this.getOpts().restrictions,a=[];for(const i of n)(!Object.hasOwn(t.meta,i)||t.meta[i]==="")&&a.push(i);return{missingFields:a,error:r}}}const Fq={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},aggregateExceedsSize:"You selected %{size} of files, but maximum allowed size is %{sizeAllowed}",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",unnamed:"Unnamed"}};let NR,MR;function lt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jq=0;function fn(e){return"__private_"+jq+++"_"+e}const Lq={version:"3.13.1"},h0={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var jn=fn("plugins"),qa=fn("restricter"),gd=fn("storeUnsubscribe"),zo=fn("emitter"),du=fn("preProcessors"),fu=fn("uploaders"),Zo=fn("postProcessors"),Wa=fn("informAndEmit"),wf=fn("checkRequiredMetaFieldsOnFile"),_1=fn("checkRequiredMetaFields"),vd=fn("assertNewUploadAllowed"),Oy=fn("transformFile"),bd=fn("startIfAutoProceed"),yd=fn("checkAndUpdateFileState"),w1=fn("addListeners"),Di=fn("updateOnlineStatus"),_d=fn("requestClientById"),Bo=fn("createUpload"),x1=fn("getUpload"),bu=fn("removeUpload"),Ho=fn("runUpload");NR=Symbol.for("uppy test: getPlugins");MR=Symbol.for("uppy test: createUpload");class om{constructor(t){Object.defineProperty(this,Ho,{value:Zq}),Object.defineProperty(this,bu,{value:Xq}),Object.defineProperty(this,x1,{value:Kq}),Object.defineProperty(this,Bo,{value:Gq}),Object.defineProperty(this,w1,{value:Yq}),Object.defineProperty(this,yd,{value:Wq}),Object.defineProperty(this,bd,{value:qq}),Object.defineProperty(this,Oy,{value:Uq}),Object.defineProperty(this,vd,{value:Vq}),Object.defineProperty(this,_1,{value:Hq}),Object.defineProperty(this,wf,{value:Bq}),Object.defineProperty(this,Wa,{value:zq}),Object.defineProperty(this,jn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,qa,{writable:!0,value:void 0}),Object.defineProperty(this,gd,{writable:!0,value:void 0}),Object.defineProperty(this,zo,{writable:!0,value:mq()}),Object.defineProperty(this,du,{writable:!0,value:new Set}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,Zo,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=mH((a,i)=>{const o=this.getFile(a==null?void 0:a.id);if(a==null||!o){this.log(`Not setting progress for a file that has been removed: ${a==null?void 0:a.id}`);return}if(o.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${a.id}`);return}const s=Number.isFinite(i.bytesTotal)&&i.bytesTotal>0;this.setFileState(a.id,{progress:{...o.progress,bytesUploaded:i.bytesUploaded,bytesTotal:i.bytesTotal,percentage:s?Math.round(i.bytesUploaded/i.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Di,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,_d,{writable:!0,value:new Map}),this.defaultLocale=Fq;const r={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Mq,meta:{},onBeforeFileAdded:(a,i)=>!Object.hasOwn(i,a.id),onBeforeUpload:a=>a,store:new $R,logger:Rq,infoTimeout:5e3},n={...r,...t};this.opts={...n,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=Tq),this.log(`Using Core v${om.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...h0,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:Eq(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),lt(this,qa)[qa]=new Iq(()=>this.opts,()=>this.i18n),lt(this,gd)[gd]=this.store.subscribe((a,i,o)=>{this.emit("state-update",a,i,o),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),lt(this,w1)[w1]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];lt(this,zo)[zo].emit(t,...n)}on(t,r){return lt(this,zo)[zo].on(t,r),this}once(t,r){return lt(this,zo)[zo].once(t,r),this}off(t,r){return lt(this,zo)[zo].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}patchFilesState(t){const r=this.getState().files;this.setState({files:{...r,...Object.fromEntries(Object.entries(t).map(n=>{let[a,i]=n;return[a,{...r[a],...i}]}))}})}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.patchFilesState({[t]:r})}i18nInit(){const t=n=>this.log(`Missing i18n string: ${n}`,"error"),r=new sR([this.defaultLocale,this.opts.locale],{onMissingKey:t});this.i18n=r.translate.bind(r),this.i18nArray=r.translateArray.bind(r),this.locale=r.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t==null?void 0:t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions(t)}),this.setState(void 0)}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(a=>{n[a]={...r[a],progress:{...r[a].progress,...t}}}),this.setState({files:n,...h0}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:t,currentUploads:r}=this.getState();if(Object.keys(r).length>0&&!t.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...h0,files:{}})}addPreProcessor(t){lt(this,du)[du].add(t)}removePreProcessor(t){return lt(this,du)[du].delete(t)}addPostProcessor(t){lt(this,Zo)[Zo].add(t)}removePostProcessor(t){return lt(this,Zo)[Zo].delete(t)}addUploader(t){lt(this,fu)[fu].add(t)}removeUploader(t){return lt(this,fu)[fu].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(a=>{n[a]={...n[a],meta:{...n[a].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const a={...n[t].meta,...r};n[t]={...n[t],meta:a},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getFilesByIds(t){return t.map(r=>this.getFile(r))}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),a=Object.values(t),i=[],o=[],s=[],u=[],l=[],h=[],d=[],g=[],b=[];for(const y of a){const{progress:w}=y;!w.uploadComplete&&w.uploadStarted&&(i.push(y),y.isPaused||g.push(y)),w.uploadStarted||o.push(y),(w.uploadStarted||w.preprocess||w.postprocess)&&s.push(y),w.uploadStarted&&u.push(y),y.isPaused&&l.push(y),w.uploadComplete&&h.push(y),y.error&&d.push(y),(w.preprocess||w.postprocess)&&b.push(y)}return{newFiles:o,startedFiles:s,uploadStartedFiles:u,pausedFiles:l,completeFiles:h,erroredFiles:d,inProgressFiles:i,inProgressNotPausedFiles:g,processingFiles:b,isUploadStarted:u.length>0,isAllComplete:r===100&&h.length===a.length&&b.length===0,isAllErrored:!!n&&d.length===a.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(y=>y.isGhost)}}validateRestrictions(t,r){r===void 0&&(r=this.getFiles());try{lt(this,qa)[qa].validate(r,[t])}catch(n){return n}return null}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!!(r[t]&&!r[t].isGhost)}addFile(t){lt(this,vd)[vd](t);const{nextFilesState:r,validFilesToAdd:n,errors:a}=lt(this,yd)[yd]([t]),i=a.filter(s=>s.isRestriction);if(lt(this,Wa)[Wa](i),a.length>0)throw a[0];this.setState({files:r});const[o]=n;return this.emit("file-added",o),this.emit("files-added",n),this.log(`Added file: ${o.name}, ${o.id}, mime type: ${o.type}`),lt(this,bd)[bd](),o.id}addFiles(t){lt(this,vd)[vd]();const{nextFilesState:r,validFilesToAdd:n,errors:a}=lt(this,yd)[yd](t),i=a.filter(s=>s.isRestriction);lt(this,Wa)[Wa](i);const o=a.filter(s=>!s.isRestriction);if(o.length>0){let s=`Multiple errors occurred while adding files:
281
+ */function f6(e,t){const r=/\$/g,n="$$$$";let a=[e];if(t==null)return a;for(const i of Object.keys(t))if(i!=="_"){let o=t[i];typeof o=="string"&&(o=r[Symbol.replace](o,n)),a=tV(a,new RegExp(`%\\{${i}\\}`,"g"),o)}return a}const rV=e=>{throw new Error(`missing string: ${e}`)};var fd=oR("onMissingKey"),hd=oR("apply");class sR{constructor(t,r){let{onMissingKey:n=rV}=r===void 0?{}:r;Object.defineProperty(this,hd,{value:nV}),Object.defineProperty(this,fd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(a){return a===1?0:1}},Array.isArray(t)?t.forEach(u0(this,hd)[hd],this):u0(this,hd)[hd](t),u0(this,fd)[fd]=n}translate(t,r){return this.translateArray(t,r).join("")}translateArray(t,r){let n=this.locale.strings[t];if(n==null&&(u0(this,fd)[fd](t),n=t),typeof n=="object"){if(r&&typeof r.smart_count<"u"){const i=this.locale.pluralize(r.smart_count);return f6(n[i],r)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof n!="string")throw new Error("string was not a string");return f6(n,r)}}function nV(e){if(!(e!=null&&e.strings))return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}class aV{constructor(t,r){this.uppy=t,this.opts=r??{}}getPluginState(){const{plugins:t}=this.uppy.getState();return(t==null?void 0:t[this.id])||{}}setPluginState(t){const{plugins:r}=this.uppy.getState();this.uppy.setState({plugins:{...r,[this.id]:{...r[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const t=new sR([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState(void 0)}addTarget(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(t){}afterUpdate(){}}const uR="3.7.7",iV=uR,ac=typeof Buffer=="function",h6=typeof TextDecoder=="function"?new TextDecoder:void 0,p6=typeof TextEncoder=="function"?new TextEncoder:void 0,oV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wd=Array.prototype.slice.call(oV),l0=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Wd),sV=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Bn=String.fromCharCode.bind(String),m6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),lR=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),cR=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),dR=e=>{let t,r,n,a,i="";const o=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=Wd[t>>18&63]+Wd[t>>12&63]+Wd[t>>6&63]+Wd[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},dw=typeof btoa=="function"?e=>btoa(e):ac?e=>Buffer.from(e,"binary").toString("base64"):dR,fy=ac?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push(Bn.apply(null,e.subarray(n,n+4096)));return dw(r.join(""))},J0=(e,t=!1)=>t?lR(fy(e)):fy(e),uV=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Bn(192|t>>>6)+Bn(128|t&63):Bn(224|t>>>12&15)+Bn(128|t>>>6&63)+Bn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Bn(240|t>>>18&7)+Bn(128|t>>>12&63)+Bn(128|t>>>6&63)+Bn(128|t&63)}},lV=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fR=e=>e.replace(lV,uV),g6=ac?e=>Buffer.from(e,"utf8").toString("base64"):p6?e=>fy(p6.encode(e)):e=>dw(fR(e)),$l=(e,t=!1)=>t?lR(g6(e)):g6(e),v6=e=>$l(e,!0),cV=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,dV=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return Bn((r>>>10)+55296)+Bn((r&1023)+56320);case 3:return Bn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Bn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},hR=e=>e.replace(cV,dV),pR=e=>{if(e=e.replace(/\s+/g,""),!sV.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,a;for(let i=0;i<e.length;)t=l0[e.charAt(i++)]<<18|l0[e.charAt(i++)]<<12|(n=l0[e.charAt(i++)])<<6|(a=l0[e.charAt(i++)]),r+=n===64?Bn(t>>16&255):a===64?Bn(t>>16&255,t>>8&255):Bn(t>>16&255,t>>8&255,t&255);return r},fw=typeof atob=="function"?e=>atob(cR(e)):ac?e=>Buffer.from(e,"base64").toString("binary"):pR,mR=ac?e=>m6(Buffer.from(e,"base64")):e=>m6(fw(e).split("").map(t=>t.charCodeAt(0))),gR=e=>mR(vR(e)),fV=ac?e=>Buffer.from(e,"base64").toString("utf8"):h6?e=>h6.decode(mR(e)):e=>hR(fw(e)),vR=e=>cR(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),hy=e=>fV(vR(e)),hV=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},bR=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),yR=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,bR(r));e("fromBase64",function(){return hy(this)}),e("toBase64",function(t){return $l(this,t)}),e("toBase64URI",function(){return $l(this,!0)}),e("toBase64URL",function(){return $l(this,!0)}),e("toUint8Array",function(){return gR(this)})},_R=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,bR(r));e("toBase64",function(t){return J0(this,t)}),e("toBase64URI",function(){return J0(this,!0)}),e("toBase64URL",function(){return J0(this,!0)})},pV=()=>{yR(),_R()},mV={version:uR,VERSION:iV,atob:fw,atobPolyfill:pR,btoa:dw,btoaPolyfill:dR,fromBase64:hy,toBase64:$l,encode:$l,encodeURI:v6,encodeURL:v6,utob:fR,btou:hR,decode:hy,isValid:hV,fromUint8Array:J0,toUint8Array:gR,extendString:yR,extendUint8Array:_R,extendBuiltins:pV};var s1,b6;function gV(){return b6||(b6=1,s1=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),s1}var c0={},y6;function vV(){if(y6)return c0;y6=1;var e=Object.prototype.hasOwnProperty,t;function r(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function n(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var s=/([^=?#&]+)=?([^&]*)/g,u={},l;l=s.exec(o);){var h=r(l[1]),d=r(l[2]);h===null||d===null||h in u||(u[h]=d)}return u}function i(o,s){s=s||"";var u=[],l,h;typeof s!="string"&&(s="?");for(h in o)if(e.call(o,h)){if(l=o[h],!l&&(l===null||l===t||isNaN(l))&&(l=""),h=n(h),l=n(l),h===null||l===null)continue;u.push(h+"="+l)}return u.length?s+u.join("&"):""}return c0.stringify=i,c0.parse=a,c0}var u1,_6;function bV(){if(_6)return u1;_6=1;var e=gV(),t=vV(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function u(_){return(_||"").toString().replace(r,"")}var l=[["#","hash"],["?","query"],function(C,f){return g(f.protocol)?C.replace(/\\/g,"/"):C},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(_){var C;typeof window<"u"?C=window:typeof Ni<"u"?C=Ni:typeof self<"u"?C=self:C={};var f=C.location||{};_=_||f;var p={},v=typeof _,x;if(_.protocol==="blob:")p=new w(unescape(_.pathname),{});else if(v==="string"){p=new w(_,{});for(x in h)delete p[x]}else if(v==="object"){for(x in _)x in h||(p[x]=_[x]);p.slashes===void 0&&(p.slashes=a.test(_.href))}return p}function g(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function b(_,C){_=u(_),_=_.replace(n,""),C=C||{};var f=o.exec(_),p=f[1]?f[1].toLowerCase():"",v=!!f[2],x=!!f[3],k=0,O;return v?x?(O=f[2]+f[3]+f[4],k=f[2].length+f[3].length):(O=f[2]+f[4],k=f[2].length):x?(O=f[3]+f[4],k=f[3].length):O=f[4],p==="file:"?k>=2&&(O=O.slice(2)):g(p)?O=f[4]:p?v&&(O=O.slice(2)):k>=2&&g(C.protocol)&&(O=f[4]),{protocol:p,slashes:v||g(p),slashesCount:k,rest:O}}function y(_,C){if(_==="")return C;for(var f=(C||"/").split("/").slice(0,-1).concat(_.split("/")),p=f.length,v=f[p-1],x=!1,k=0;p--;)f[p]==="."?f.splice(p,1):f[p]===".."?(f.splice(p,1),k++):k&&(p===0&&(x=!0),f.splice(p,1),k--);return x&&f.unshift(""),(v==="."||v==="..")&&f.push(""),f.join("/")}function w(_,C,f){if(_=u(_),_=_.replace(n,""),!(this instanceof w))return new w(_,C,f);var p,v,x,k,O,$,D=l.slice(),V=typeof C,I=this,M=0;for(V!=="object"&&V!=="string"&&(f=C,C=null),f&&typeof f!="function"&&(f=t.parse),C=d(C),v=b(_||"",C),p=!v.protocol&&!v.slashes,I.slashes=v.slashes||p&&C.slashes,I.protocol=v.protocol||C.protocol||"",_=v.rest,(v.protocol==="file:"&&(v.slashesCount!==2||s.test(_))||!v.slashes&&(v.protocol||v.slashesCount<2||!g(I.protocol)))&&(D[3]=[/(.*)/,"pathname"]);M<D.length;M++){if(k=D[M],typeof k=="function"){_=k(_,I);continue}x=k[0],$=k[1],x!==x?I[$]=_:typeof x=="string"?(O=x==="@"?_.lastIndexOf(x):_.indexOf(x),~O&&(typeof k[2]=="number"?(I[$]=_.slice(0,O),_=_.slice(O+k[2])):(I[$]=_.slice(O),_=_.slice(0,O)))):(O=x.exec(_))&&(I[$]=O[1],_=_.slice(0,O.index)),I[$]=I[$]||p&&k[3]&&C[$]||"",k[4]&&(I[$]=I[$].toLowerCase())}f&&(I.query=f(I.query)),p&&C.slashes&&I.pathname.charAt(0)!=="/"&&(I.pathname!==""||C.pathname!=="")&&(I.pathname=y(I.pathname,C.pathname)),I.pathname.charAt(0)!=="/"&&g(I.protocol)&&(I.pathname="/"+I.pathname),e(I.port,I.protocol)||(I.host=I.hostname,I.port=""),I.username=I.password="",I.auth&&(O=I.auth.indexOf(":"),~O?(I.username=I.auth.slice(0,O),I.username=encodeURIComponent(decodeURIComponent(I.username)),I.password=I.auth.slice(O+1),I.password=encodeURIComponent(decodeURIComponent(I.password))):I.username=encodeURIComponent(decodeURIComponent(I.auth)),I.auth=I.password?I.username+":"+I.password:I.username),I.origin=I.protocol!=="file:"&&g(I.protocol)&&I.host?I.protocol+"//"+I.host:"null",I.href=I.toString()}function S(_,C,f){var p=this;switch(_){case"query":typeof C=="string"&&C.length&&(C=(f||t.parse)(C)),p[_]=C;break;case"port":p[_]=C,e(C,p.protocol)?C&&(p.host=p.hostname+":"+C):(p.host=p.hostname,p[_]="");break;case"hostname":p[_]=C,p.port&&(C+=":"+p.port),p.host=C;break;case"host":p[_]=C,i.test(C)?(C=C.split(":"),p.port=C.pop(),p.hostname=C.join(":")):(p.hostname=C,p.port="");break;case"protocol":p.protocol=C.toLowerCase(),p.slashes=!f;break;case"pathname":case"hash":if(C){var v=_==="pathname"?"/":"#";p[_]=C.charAt(0)!==v?v+C:C}else p[_]=C;break;case"username":case"password":p[_]=encodeURIComponent(C);break;case"auth":var x=C.indexOf(":");~x?(p.username=C.slice(0,x),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=C.slice(x+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(C))}for(var k=0;k<l.length;k++){var O=l[k];O[4]&&(p[O[1]]=p[O[1]].toLowerCase())}return p.auth=p.password?p.username+":"+p.password:p.username,p.origin=p.protocol!=="file:"&&g(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString(),p}function E(_){(!_||typeof _!="function")&&(_=t.stringify);var C,f=this,p=f.host,v=f.protocol;v&&v.charAt(v.length-1)!==":"&&(v+=":");var x=v+(f.protocol&&f.slashes||g(f.protocol)?"//":"");return f.username?(x+=f.username,f.password&&(x+=":"+f.password),x+="@"):f.password?(x+=":"+f.password,x+="@"):f.protocol!=="file:"&&g(f.protocol)&&!p&&f.pathname!=="/"&&(x+="@"),(p[p.length-1]===":"||i.test(f.hostname)&&!f.port)&&(p+=":"),x+=p+f.pathname,C=typeof f.query=="object"?_(f.query):f.query,C&&(x+=C.charAt(0)!=="?"?"?"+C:C),f.hash&&(x+=f.hash),x}return w.prototype={set:S,toString:E},w.extractProtocol=b,w.location=d,w.trimLeft=u,w.qs=t,u1=w,u1}var yV=bV();const _V=$n(yV);function py(e){"@babel/helpers - typeof";return py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(e)}function wV(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function xV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pf(e,t)}function CV(e){var t=wR();return function(){var n=mf(e),a;if(t){var i=mf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return EV(this,a)}}function EV(e,t){if(t&&(py(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OV(e)}function OV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function my(e){var t=typeof Map=="function"?new Map:void 0;return my=function(n){if(n===null||!RV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Q0(n,arguments,mf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pf(a,n)},my(e)}function Q0(e,t,r){return wR()?Q0=Reflect.construct.bind():Q0=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),l=new u;return o&&pf(l,o.prototype),l},Q0.apply(null,arguments)}function wR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function RV(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},pf(e,t)}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mf(e)}var d0=function(e){SV(r,e);var t=CV(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(xV(this,r),a=t.call(this,n),a.originalRequest=o,a.originalResponse=s,a.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var u=o.getHeader("X-Request-ID")||"n/a",l=o.getMethod(),h=o.getURL(),d=s?s.getStatus():"n/a",g=s?s.getBody()||"":"n/a";n+=", originated from request (method: ".concat(l,", url: ").concat(h,", response code: ").concat(d,", response text: ").concat(g,", request id: ").concat(u,")")}return a.message=n,a}return wV(r)}(my(Error));function TV(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function gy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */gy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,N,j){T[N]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,N,j){return Object.defineProperty(T,N,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[N]}try{l({},"")}catch{l=function(j,H,B){return j[H]=B}}function h(T,N,j,H){var B=N&&N.prototype instanceof E?N:E,U=Object.create(B.prototype),G=new M(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,N,j){try{return{type:"normal",arg:T.call(N,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(N){l(T,N,function(j){return this._invoke(N,j)})})}function O(T,N){function j(B,U,G,X){var K=d(T[B],T,U);if(K.type!=="throw"){var ne=K.arg,ie=ne.value;return ie&&Ou(ie)=="object"&&n.call(ie,"__await")?N.resolve(ie.__await).then(function(oe){j("next",oe,G,X)},function(oe){j("throw",oe,G,X)}):N.resolve(ie).then(function(oe){ne.value=oe,G(ne)},function(oe){return j("throw",oe,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new N(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,N,j){var H=g;return function(B,U){if(H===y)throw new Error("Generator is already running");if(H===w){if(B==="throw")throw U;return{value:e,done:!0}}for(j.method=B,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,N,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,N){var j=N.method,H=T.iterator[j];if(H===e)return N.delegate=null,j==="throw"&&T.iterator.return&&(N.method="return",N.arg=e,D(T,N),N.method==="throw")||j!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var B=d(H,T.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,S;var U=B.arg;return U?U.done?(N[T.resultName]=U.value,N.next=T.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,S):U:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,S)}function V(T){var N={tryLoc:T[0]};1 in T&&(N.catchLoc=T[1]),2 in T&&(N.finallyLoc=T[2],N.afterLoc=T[3]),this.tryEntries.push(N)}function I(T){var N=T.completion||{};N.type="normal",delete N.arg,T.completion=N}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var N=T[o];if(N)return N.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function B(){for(;++j<T.length;)if(n.call(T,j))return B.value=T[j],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ou(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var N=typeof T=="function"&&T.constructor;return!!N&&(N===_||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,N,j,H,B){B===void 0&&(B=Promise);var U=new O(h(T,N,j,H),B);return t.isGeneratorFunction(N)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var N=Object(T),j=[];for(var H in N)j.push(H);return j.reverse(),function B(){for(;j.length;){var U=j.pop();if(U in N)return B.value=U,B.done=!1,B}return B.done=!0,B}},t.values=F,M.prototype={constructor:M,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!N)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var j=this;function H(ne,ie){return G.type="throw",G.arg=N,j.next=ne,ie&&(j.method="next",j.arg=e),!!ie}for(var B=this.tryEntries.length-1;B>=0;--B){var U=this.tryEntries[B],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(N,j){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var U=B;break}}U&&(N==="break"||N==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=N,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(N,j){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&j&&(this.next=j),S},finish:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var U=B.arg;I(H)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(N,j,H){return this.delegate={iterator:F(N),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function w6(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,a)}function PV(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){w6(i,n,a,o,s,"next",u)}function s(u){w6(i,n,a,o,s,"throw",u)}o(void 0)})}}function xR(e,t){return DV(e)||AV(e,t)||$V(e,t)||kV()}function kV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
282
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $V(e,t){if(e){if(typeof e=="string")return x6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x6(e,t)}}function x6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(h){l=!0,a=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}function DV(e){if(Array.isArray(e))return e}function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function S6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(r),!0).forEach(function(n){NV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NV(e,t,r){return t=SR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SR(n.key),n)}}function IV(e,t,r){return t&&C6(e.prototype,t),r&&C6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SR(e){var t=FV(e,"string");return Ou(t)==="symbol"?t:String(t)}function FV(e,t){if(Ou(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jV={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:CR,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Cp=function(){function e(t,r){MV(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return IV(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var a=this.options.retryDelays;if(a!=null&&Object.prototype.toString.call(a)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i<o.length;i++){var s=o[i];if(this.options[s]){this._emitError(new Error("tus: cannot use the ".concat(s," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(u){return r._fingerprint=u,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(u){if(r._source=u,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(u){r._emitError(u)})}},{key:"_startParallelUpload",value:function(){var r,n=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,s=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:zV(this._source.size,o);this._parallelUploadUrls&&s.forEach(function(h,d){h.uploadUrl=n._parallelUploadUrls[d]||null}),this._parallelUploadUrls=new Array(s.length);var u=s.map(function(h,d){var g=0;return n._source.slice(h.start,h.end).then(function(b){var y=b.value;return new Promise(function(w,S){var E=el(el({},n.options),{},{uploadUrl:h.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:el(el({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:w,onError:S,onProgress:function(f){i=i-g+f,g=f,n._emitProgress(i,a)},onUploadUrlAvailable:function(){n._parallelUploadUrls[d]=_.url,n._parallelUploadUrls.filter(function(f){return!!f}).length===s.length&&n._saveUploadInUrlStorage()}}),_=new e(y,E);_.start(),n._parallelUploads.push(_)})})}),l;Promise.all(u).then(function(){l=n._openRequest("POST",n.options.endpoint),l.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var h=E6(n.options.metadata);return h!==""&&l.setHeader("Upload-Metadata",h),n._sendRequest(l,null)}).then(function(h){if(!gl(h.getStatus(),200)){n._emitHttpError(l,h,"tus: unexpected response while creating upload");return}var d=h.getHeader("Location");if(d==null){n._emitHttpError(l,h,"tus: invalid or missing Location header");return}n.url=P6(n.options.endpoint,d),"Created upload at ".concat(n.url),n._emitSuccess()}).catch(function(h){n._emitError(h)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(a){a.abort(r)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,a,i){this._emitError(new d0(a,i,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),T6(r,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,a)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length",1):n.setHeader("Upload-Length",this._size);var a=E6(this.options.metadata);a!==""&&n.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(n)):i=this._sendRequest(n,null),i.then(function(o){if(!gl(o.getStatus(),200)){r._emitHttpError(n,o,"tus: unexpected response while creating upload");return}var s=o.getHeader("Location");if(s==null){r._emitHttpError(n,o,"tus: invalid or missing Location header");return}if(r.url=P6(r.options.endpoint,s),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,o):(r._offset=0,r._performUpload())})}).catch(function(o){r._emitHttpError(n,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),a=this._sendRequest(n,null);a.then(function(i){var o=i.getStatus();if(!gl(o,200)){if(o===423){r._emitHttpError(n,i,"tus: upload is currently locked; retry later");return}if(gl(o,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var s=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(s)){r._emitHttpError(n,i,"tus: invalid or missing offset value");return}var u=parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!r.options.uploadLengthDeferred){r._emitHttpError(n,i,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(s===u){r._emitProgress(u,u),r._emitSuccess();return}r._offset=s,r._performUpload()})}).catch(function(i){r._emitHttpError(n,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset",this._offset);var a=this._addChunkToRequest(n);a.then(function(i){if(!gl(i.getStatus(),200)){r._emitHttpError(n,i,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,i)}).catch(function(i){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),i)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,a=this._offset,i=this._offset+this.options.chunkSize;return r.setProgressHandler(function(o){n._emitProgress(a+o,n._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(i===1/0||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var s=o.value,u=o.done,l=s&&s.size?s.size:0;n.options.uploadLengthDeferred&&u&&(n._size=n._offset+l,r.setHeader("Upload-Length",n._size));var h=n._offset+l;return!n.options.uploadLengthDeferred&&u&&h!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(h," bytes"))):s===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,s))})}},{key:"_handleUploadResponse",value:function(r,n){var a=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var a=O6(r,n,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(a){r._urlStorageKey=a})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R6(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=O6("DELETE",r,n);return R6(a,null,n).then(function(i){if(i.getStatus()!==204)throw new d0("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof d0||(i=new d0("tus: failed to terminate upload",i,a,null)),!T6(i,0,n))throw i;var o=n.retryDelays[0],s=n.retryDelays.slice(1),u=el(el({},n),{},{retryDelays:s});return new Promise(function(l){return setTimeout(l,o)}).then(function(){return e.terminate(r,u)})})}}]),e}();function E6(e){return Object.entries(e).map(function(t){var r=xR(t,2),n=r[0],a=r[1];return"".concat(n," ").concat(mV.encode(String(a)))}).join(",")}function gl(e,t){return e>=t&&e<t+100}function O6(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=r.headers||{};if(Object.entries(a).forEach(function(o){var s=xR(o,2),u=s[0],l=s[1];n.setHeader(u,l)}),r.addRequestId){var i=TV();n.setHeader("X-Request-ID",i)}return n}function R6(e,t,r){return vy.apply(this,arguments)}function vy(){return vy=PV(gy().mark(function e(t,r,n){var a;return gy().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof n.onBeforeRequest!="function"){o.next=3;break}return o.next=3,n.onBeforeRequest(t);case 3:return o.next=5,t.send(r);case 5:if(a=o.sent,typeof n.onAfterResponse!="function"){o.next=9;break}return o.next=9,n.onAfterResponse(t,a);case 9:return o.abrupt("return",a);case 10:case"end":return o.stop()}},e)})),vy.apply(this,arguments)}function LV(){var e=!0;return typeof window<"u"&&"navigator"in window&&window.navigator.onLine===!1&&(e=!1),e}function T6(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):CR(e)}function CR(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!gl(t,400)||t===409||t===423)&&LV()}function P6(e,t){return new _V(t,e).toString()}function zV(e,t){for(var r=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:r*a,end:r*(a+1)});return n[t-1].end=e,n}Cp.defaultOptions=jV;function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gf(e)}function BV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UV(n.key),n)}}function VV(e,t,r){return t&&HV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UV(e){var t=qV(e,"string");return gf(t)==="symbol"?t:String(t)}function qV(e,t){if(gf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WV=function(){function e(){BV(this,e)}return VV(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}]),e}();function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vf(e)}function YV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XV(n.key),n)}}function KV(e,t,r){return t&&GV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XV(e){var t=ZV(e,"string");return vf(t)==="symbol"?t:String(t)}function ZV(e,t){if(vf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var by=!1;try{by="localStorage"in window;var l1="tusSupport",k6=localStorage.getItem(l1);localStorage.setItem(l1,k6),k6===null&&localStorage.removeItem(l1)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)by=!1;else throw e}var JV=by,QV=function(){function e(){YV(this,e)}return KV(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var a=Math.round(Math.random()*1e12),i="tus::".concat(r,"::").concat(a);return localStorage.setItem(i,JSON.stringify(n)),Promise.resolve(i)}},{key:"_findEntries",value:function(r){for(var n=[],a=0;a<localStorage.length;a++){var i=localStorage.key(a);if(i.indexOf(r)===0)try{var o=JSON.parse(localStorage.getItem(i));o.urlStorageKey=i,n.push(o)}catch{}}return n}}]),e}();function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}function hw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tU(n.key),n)}}function pw(e,t,r){return t&&eU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tU(e){var t=rU(e,"string");return bf(t)==="symbol"?t:String(t)}function rU(e,t){if(bf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nU=function(){function e(){hw(this,e)}return pw(e,[{key:"createRequest",value:function(r,n){return new aU(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),aU=function(){function e(t,r){hw(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return pw(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){r._xhr.onload=function(){a(new iU(r._xhr))},r._xhr.onerror=function(o){i(o)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),iU=function(){function e(t){hw(this,e),this._xhr=t}return pw(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),ER=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function oU(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var a=n.response;t(a)},n.onerror=function(a){r(a)},n.open("GET",e),n.send()})}var sU=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function uU(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var a=new Uint8Array(n.result);t({value:a})},n.onerror=function(a){r(a)},n.readAsArrayBuffer(e)})}function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function lU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fU(n.key),n)}}function dU(e,t,r){return t&&cU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fU(e){var t=hU(e,"string");return yf(t)==="symbol"?t:String(t)}function hU(e,t){if(yf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $6=function(){function e(t){lU(this,e),this._file=t,this.size=t.size}return dU(e,[{key:"slice",value:function(r,n){if(sU())return uU(this._file.slice(r,n));var a=this._file.slice(r,n),i=n>=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}]),e}();function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function pU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vU(n.key),n)}}function gU(e,t,r){return t&&mU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vU(e){var t=bU(e,"string");return _f(t)==="symbol"?t:String(t)}function bU(e,t){if(_f(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function A6(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function yU(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var _U=function(){function e(t){pU(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return gU(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var a=this,i=n<=this._bufferOffset+A6(this._buffer);if(this._done||i){var o=this._getDataFromBuffer(r,n),s=o==null?this._done:!1;return Promise.resolve({value:o,done:s})}return this._reader.read().then(function(u){var l=u.value,h=u.done;return h?a._done=!0:a._buffer===void 0?a._buffer=l:a._buffer=yU(a._buffer,l),a._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var a=A6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function Ru(e){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}function yy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,N,j){T[N]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,N,j){return Object.defineProperty(T,N,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[N]}try{l({},"")}catch{l=function(j,H,B){return j[H]=B}}function h(T,N,j,H){var B=N&&N.prototype instanceof E?N:E,U=Object.create(B.prototype),G=new M(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,N,j){try{return{type:"normal",arg:T.call(N,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(N){l(T,N,function(j){return this._invoke(N,j)})})}function O(T,N){function j(B,U,G,X){var K=d(T[B],T,U);if(K.type!=="throw"){var ne=K.arg,ie=ne.value;return ie&&Ru(ie)=="object"&&n.call(ie,"__await")?N.resolve(ie.__await).then(function(oe){j("next",oe,G,X)},function(oe){j("throw",oe,G,X)}):N.resolve(ie).then(function(oe){ne.value=oe,G(ne)},function(oe){return j("throw",oe,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new N(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,N,j){var H=g;return function(B,U){if(H===y)throw new Error("Generator is already running");if(H===w){if(B==="throw")throw U;return{value:e,done:!0}}for(j.method=B,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,N,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,N){var j=N.method,H=T.iterator[j];if(H===e)return N.delegate=null,j==="throw"&&T.iterator.return&&(N.method="return",N.arg=e,D(T,N),N.method==="throw")||j!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var B=d(H,T.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,S;var U=B.arg;return U?U.done?(N[T.resultName]=U.value,N.next=T.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,S):U:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,S)}function V(T){var N={tryLoc:T[0]};1 in T&&(N.catchLoc=T[1]),2 in T&&(N.finallyLoc=T[2],N.afterLoc=T[3]),this.tryEntries.push(N)}function I(T){var N=T.completion||{};N.type="normal",delete N.arg,T.completion=N}function M(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var N=T[o];if(N)return N.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function B(){for(;++j<T.length;)if(n.call(T,j))return B.value=T[j],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ru(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var N=typeof T=="function"&&T.constructor;return!!N&&(N===_||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,N,j,H,B){B===void 0&&(B=Promise);var U=new O(h(T,N,j,H),B);return t.isGeneratorFunction(N)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var N=Object(T),j=[];for(var H in N)j.push(H);return j.reverse(),function B(){for(;j.length;){var U=j.pop();if(U in N)return B.value=U,B.done=!1,B}return B.done=!0,B}},t.values=F,M.prototype={constructor:M,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!N)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var j=this;function H(ne,ie){return G.type="throw",G.arg=N,j.next=ne,ie&&(j.method="next",j.arg=e),!!ie}for(var B=this.tryEntries.length-1;B>=0;--B){var U=this.tryEntries[B],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(N,j){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var U=B;break}}U&&(N==="break"||N==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=N,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(N,j){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&j&&(this.next=j),S},finish:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(N){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var U=B.arg;I(H)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(N,j,H){return this.delegate={iterator:F(N),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function D6(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,a)}function wU(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){D6(i,n,a,o,s,"next",u)}function s(u){D6(i,n,a,o,s,"throw",u)}o(void 0)})}}function xU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EU(n.key),n)}}function CU(e,t,r){return t&&SU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EU(e){var t=OU(e,"string");return Ru(t)==="symbol"?t:String(t)}function OU(e,t){if(Ru(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ru(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var RU=function(){function e(){xU(this,e)}return CU(e,[{key:"openFile",value:function(){var t=wU(yy().mark(function n(a,i){var o;return yy().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(ER()&&a&&typeof a.uri<"u")){u.next=11;break}return u.prev=1,u.next=4,oU(a.uri);case 4:return o=u.sent,u.abrupt("return",new $6(o));case 8:throw u.prev=8,u.t0=u.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(u.t0));case 11:if(!(typeof a.slice=="function"&&typeof a.size<"u")){u.next=13;break}return u.abrupt("return",Promise.resolve(new $6(a)));case 13:if(typeof a.read!="function"){u.next=18;break}if(i=Number(i),Number.isFinite(i)){u.next=17;break}return u.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return u.abrupt("return",Promise.resolve(new _U(a,i)));case 18:return u.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return u.stop()}},n,null,[[1,8]])}));function r(n,a){return t.apply(this,arguments)}return r}()}]),e}();function TU(e,t){return ER()?Promise.resolve(PU(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function PU(e,t){var r=e.exif?kU(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function kU(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function $U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OR(n.key),n)}}function DU(e,t,r){return r&&AU(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},_y(e,t)}function MU(e){var t=jU();return function(){var n=Ep(e),a;if(t){var i=Ep(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return IU(this,a)}}function IU(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FU(e)}function FU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ep(e)}function N6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(r),!0).forEach(function(n){LU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LU(e,t,r){return t=OR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){var t=zU(e,"string");return Vl(t)==="symbol"?t:String(t)}function zU(e,t){if(Vl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wy=xl(xl({},Cp.defaultOptions),{},{httpStack:new nU,fileReader:new RU,urlStorage:JV?new QV:new WV,fingerprint:TU}),BU=function(e){NU(r,e);var t=MU(r);function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $U(this,r),a=xl(xl({},wy),a),t.call(this,n,a)}return DU(r,null,[{key:"terminate",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=xl(xl({},wy),i),Cp.terminate(a,i)}}]),r}(Cp);function jo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var HU=0;function RR(e){return"__private_"+HU+++"_"+e}var ca=RR("uppy"),pd=RR("events");class VU{constructor(t){Object.defineProperty(this,ca,{writable:!0,value:void 0}),Object.defineProperty(this,pd,{writable:!0,value:[]}),jo(this,ca)[ca]=t}on(t,r){return jo(this,pd)[pd].push([t,r]),jo(this,ca)[ca].on(t,r)}remove(){for(const[t,r]of jo(this,pd)[pd].splice(0))jo(this,ca)[ca].off(t,r)}onFilePause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onFileRemove(t,r){this.on("file-removed",n=>{t===n.id&&r(n.id)})}onPause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onRetry(t,r){this.on("upload-retry",n=>{t===n&&r()})}onRetryAll(t,r){this.on("retry-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}onPauseAll(t,r){this.on("pause-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}onCancelAll(t,r){var n=this;this.on("cancel-all",function(){jo(n,ca)[ca].getFile(t)&&r(...arguments)})}onResumeAll(t,r){this.on("resume-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}}class UU extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}function qU(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function Mt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var WU=0;function Ea(e){return"__private_"+WU+++"_"+e}function YU(e){return new Error("Cancelled",{cause:e})}function M6(e){if(e!=null){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};(t=this.then)==null||t.call(this,n,n)}return this}var Ua=Ea("activeRequests"),fa=Ea("queuedHandlers"),Ha=Ea("paused"),nu=Ea("pauseTimer"),da=Ea("downLimit"),au=Ea("upperLimit"),Lo=Ea("rateLimitingTimer"),tf=Ea("call"),Xo=Ea("queueNext"),xy=Ea("next"),c1=Ea("queue"),Sy=Ea("dequeue"),d1=Ea("resume"),iu=Ea("increaseLimit");class GU{constructor(t){Object.defineProperty(this,Sy,{value:QU}),Object.defineProperty(this,c1,{value:JU}),Object.defineProperty(this,xy,{value:ZU}),Object.defineProperty(this,Xo,{value:XU}),Object.defineProperty(this,tf,{value:KU}),Object.defineProperty(this,Ua,{writable:!0,value:0}),Object.defineProperty(this,fa,{writable:!0,value:[]}),Object.defineProperty(this,Ha,{writable:!0,value:!1}),Object.defineProperty(this,nu,{writable:!0,value:void 0}),Object.defineProperty(this,da,{writable:!0,value:1}),Object.defineProperty(this,au,{writable:!0,value:void 0}),Object.defineProperty(this,Lo,{writable:!0,value:void 0}),Object.defineProperty(this,d1,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,iu,{writable:!0,value:()=>{if(Mt(this,Ha)[Ha]){Mt(this,Lo)[Lo]=setTimeout(Mt(this,iu)[iu],0);return}Mt(this,da)[da]=this.limit,this.limit=Math.ceil((Mt(this,au)[au]+Mt(this,da)[da])/2);for(let r=Mt(this,da)[da];r<=this.limit;r++)Mt(this,Xo)[Xo]();Mt(this,au)[au]-Mt(this,da)[da]>3?Mt(this,Lo)[Lo]=setTimeout(Mt(this,iu)[iu],2e3):Mt(this,da)[da]=Math.floor(Mt(this,da)[da]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,r){return!Mt(this,Ha)[Ha]&&Mt(this,Ua)[Ua]<this.limit?Mt(this,tf)[tf](t):Mt(this,c1)[c1](t,r)}wrapSyncFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];const s=n.run(()=>(t(...i),queueMicrotask(()=>s.done()),()=>{}),r);return{abortOn:M6,abort(){s.abort()}}}}wrapPromiseFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];let s;const u=new Promise((l,h)=>{s=n.run(()=>{let d,g;try{g=Promise.resolve(t(...i))}catch(b){g=Promise.reject(b)}return g.then(b=>{d?h(d):(s.done(),l(b))},b=>{d?h(d):(s.done(),h(b))}),b=>{d=YU(b)}},r)});return u.abort=l=>{s.abort(l)},u.abortOn=M6,u}}resume(){Mt(this,Ha)[Ha]=!1,clearTimeout(Mt(this,nu)[nu]);for(let t=0;t<this.limit;t++)Mt(this,Xo)[Xo]()}pause(t){t===void 0&&(t=null),Mt(this,Ha)[Ha]=!0,clearTimeout(Mt(this,nu)[nu]),t!=null&&(Mt(this,nu)[nu]=setTimeout(Mt(this,d1)[d1],t))}rateLimit(t){clearTimeout(Mt(this,Lo)[Lo]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(Mt(this,au)[au]=this.limit-1,this.limit=Mt(this,da)[da],Mt(this,Lo)[Lo]=setTimeout(Mt(this,iu)[iu],t))}get isPaused(){return Mt(this,Ha)[Ha]}}function KU(e){Mt(this,Ua)[Ua]+=1;let t=!1,r;try{r=e()}catch(n){throw Mt(this,Ua)[Ua]-=1,n}return{abort:n=>{t||(t=!0,Mt(this,Ua)[Ua]-=1,r==null||r(n),Mt(this,Xo)[Xo]())},done:()=>{t||(t=!0,Mt(this,Ua)[Ua]-=1,Mt(this,Xo)[Xo]())}}}function XU(){queueMicrotask(()=>Mt(this,xy)[xy]())}function ZU(){if(Mt(this,Ha)[Ha]||Mt(this,Ua)[Ua]>=this.limit||Mt(this,fa)[fa].length===0)return;const e=Mt(this,fa)[fa].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=Mt(this,tf)[tf](e.fn);e.abort=t.abort,e.done=t.done}function JU(e,t){const r={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{Mt(this,Sy)[Sy](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Mt(this,fa)[fa].findIndex(a=>r.priority>a.priority);return n===-1?Mt(this,fa)[fa].push(r):Mt(this,fa)[fa].splice(n,0,r),r}function QU(e){const t=Mt(this,fa)[fa].indexOf(e);t!==-1&&Mt(this,fa)[fa].splice(t,1)}function f1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eq(e){const t=r=>"error"in r&&!!r.error;return e.filter(r=>!t(r))}function tq(e){return e.filter(t=>{var r;return!((r=t.progress)!=null&&r.uploadStarted)||!t.isRestored})}function rq(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")}function nq(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function aq(e){return(t,r)=>{if(rq()||nq())return wy.fingerprint(t,r);const n=["tus",e.id,r.endpoint].join("-");return Promise.resolve(n)}}function vu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var iq=0;function Wf(e){return"__private_"+iq+++"_"+e}const oq={version:"3.5.5"},TR={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},sq={limit:20,retryDelays:TR.retryDelays,withCredentials:!1};var rf=Wf("retryDelayIterator"),Cy=Wf("uploadLocalFile"),Ey=Wf("getCompanionClientArgs"),h1=Wf("uploadFiles"),md=Wf("handleUpload");class PR extends aV{constructor(t,r){var n,a;if(super(t,{...sq,...r}),Object.defineProperty(this,h1,{value:cq}),Object.defineProperty(this,Ey,{value:lq}),Object.defineProperty(this,Cy,{value:uq}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,md,{writable:!0,value:async i=>{if(i.length===0){this.uppy.log("[Tus] No files to upload");return}this.opts.limit===0&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const o=this.uppy.getFilesByIds(i);await vu(this,h1)[h1](o)}}),this.type="uploader",this.id=this.opts.id||"Tus",(r==null?void 0:r.allowedMetaFields)===void 0&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in r)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=(n=this.opts.rateLimitedQueue)!=null?n:new GU(this.opts.limit),vu(this,rf)[rf]=(a=this.opts.retryDelays)==null?void 0:a.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const t={...this.uppy.getState().files};Object.keys(t).forEach(r=>{var n;if((n=t[r])!=null&&(n=n.tus)!=null&&n.uploadUrl){const a={...t[r].tus};delete a.uploadUrl,t[r]={...t[r],tus:a}}}),this.uppy.setState({files:t})}resetUploaderReferences(t,r){const n=this.uploaders[t];n&&(n.abort(),r!=null&&r.abort&&n.abort(!0),this.uploaders[t]=null),this.uploaderEvents[t]&&(this.uploaderEvents[t].remove(),this.uploaderEvents[t]=null)}onReceiveUploadUrl(t,r){const n=this.uppy.getFile(t.id);n&&(!n.tus||n.tus.uploadUrl!==r)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:r}}))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(vu(this,md)[md]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(vu(this,md)[md])}}function uq(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((r,n)=>{let a,i,o;const s={...this.opts,...e.tus||{}};typeof s.headers=="function"&&(s.headers=s.headers(e));const{onShouldRetry:u,onBeforeRequest:l,...h}=s,d={...TR,...h};d.fingerprint=aq(e),d.onBeforeRequest=async E=>{const _=E.getUnderlyingObject();_.withCredentials=!!s.withCredentials;let C;if(typeof l=="function"&&(C=l(E,e)),f1(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let f;const p=new Promise(v=>{f=v});a=this.requests.run(()=>(e.isPaused&&a.abort(),f(),()=>{})),await Promise.all([p,C]);return}return C},d.onError=E=>{var _;this.uppy.log(E);const C=E.originalRequest!=null?E.originalRequest.getUnderlyingObject():null;qU(C)&&(E=new UU(E,C)),this.resetUploaderReferences(e.id),(_=a)==null||_.abort(),this.uppy.emit("upload-error",e,E),typeof s.onError=="function"&&s.onError(E),n(E)},d.onProgress=(E,_)=>{this.onReceiveUploadUrl(e,o.url),typeof s.onProgress=="function"&&s.onProgress(E,_),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:E,bytesTotal:_})},d.onSuccess=()=>{var E;const _={uploadURL:(E=o.url)!=null?E:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),_),o.url){const{name:C}=o.file;this.uppy.log(`Download ${C} from ${o.url}`)}typeof s.onSuccess=="function"&&s.onSuccess(),r(o)};const g=E=>{var _;const C=E==null||(_=E.originalResponse)==null?void 0:_.getStatus();if(C===429){if(!this.requests.isPaused){var f;const p=(f=vu(this,rf)[rf])==null?void 0:f.next();if(p==null||p.done)return!1;this.requests.rateLimit(p.value)}}else{if(C!=null&&C>400&&C<500&&C!==409&&C!==423)return!1;typeof navigator<"u"&&navigator.onLine===!1&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",()=>{this.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};u!=null?d.onShouldRetry=(E,_)=>u(E,_,s,g):d.onShouldRetry=g;const b=(E,_,C)=>{f1(E,_)&&!f1(E,C)&&(E[C]=E[_])},y={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach(E=>{y[E]=String(e.meta[E])}),b(y,"type","filetype"),b(y,"name","filename"),d.metadata=y,o=new BU(e.data,d),this.uploaders[e.id]=o;const S=new VU(this.uppy);this.uploaderEvents[e.id]=S,i=()=>(e.isPaused||o.start(),()=>{}),o.findPreviousUploads().then(E=>{const _=E[0];_&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${_.creationTime}`),o.resumeFromPreviousUpload(_))}),a=this.requests.run(i),S.onFileRemove(e.id,E=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!o.url}),r(`upload ${E} was removed`)}),S.onPause(e.id,E=>{a.abort(),E?o.abort():a=this.requests.run(i)}),S.onPauseAll(e.id,()=>{a.abort(),o.abort()}),S.onCancelAll(e.id,function(E){let{reason:_}=E===void 0?{}:E;_==="user"&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!o.url})),r(`upload ${e.id} was canceled`)}),S.onResumeAll(e.id,()=>{a.abort(),e.error&&o.abort(),a=this.requests.run(i)})}).catch(r=>{throw this.uppy.emit("upload-error",e,r),r})}function lq(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),typeof r.headers=="function"&&(r.headers=r.headers(e)),{...(t=e.remote)==null?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function cq(e){const t=eq(e),r=tq(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map(n=>{if(n.isRemote){const a=()=>this.requests,i=new AbortController,o=u=>{u.id===n.id&&i.abort()};this.uppy.on("file-removed",o);const s=this.uppy.getRequestClientForFile(n).uploadRemoteFile(n,vu(this,Ey)[Ey](n),{signal:i.signal,getQueue:a});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",o)},{priority:-1})(),s}return vu(this,Cy)[Cy](n)}))}PR.VERSION=oq.version;var p1,I6;function dq(){return I6||(I6=1,p1=function(){var t={},r=t._fns={};t.emit=function(o,s,u,l,h,d,g){var b=n(o);b.length&&a(o,b,[s,u,l,h,d,g])},t.on=function(o,s){r[o]||(r[o]=[]),r[o].push(s)},t.once=function(o,s){function u(){s.apply(this,arguments),t.off(o,u)}this.on(o,u)},t.off=function(o,s){var u=[];if(o&&s){var l=this._fns[o],h=0,d=l?l.length:0;for(h;h<d;h++)l[h]!==s&&u.push(l[h])}u.length?this._fns[o]=u:delete this._fns[o]};function n(i){var o=r[i]?r[i]:[],s=i.indexOf(":"),u=s===-1?[i]:[i.substring(0,s),i.substring(s+1)],l=Object.keys(r),h=0,d=l.length;for(h;h<d;h++){var g=l[h];if(g==="*"&&(o=o.concat(r[g])),u.length===2&&u[0]===g){o=o.concat(r[g]);break}}return o}function a(i,o,s){var u=0,l=o.length;for(u;u<l&&o[u];u++)o[u].event=i,o[u].apply(o[u],s)}return t}),p1}var fq=dq();const hq=$n(fq);let pq="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",mq=(e=21)=>{let t="",r=e;for(;r--;)t+=pq[Math.random()*64|0];return t};function ep(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gq=0;function kR(e){return"__private_"+gq+++"_"+e}const vq={version:"3.2.2"};var cu=kR("callbacks"),m1=kR("publish");class $R{constructor(){Object.defineProperty(this,m1,{value:bq}),this.state={},Object.defineProperty(this,cu,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,ep(this,m1)[m1](r,n,t)}subscribe(t){return ep(this,cu)[cu].add(t),()=>{ep(this,cu)[cu].delete(t)}}}function bq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ep(this,cu)[cu].forEach(n=>{n(...t)})}$R.VERSION=vq.version;function AR(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const F6={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function DR(e){var t;if(e.type)return e.type;const r=e.name?(t=AR(e.name).extension)==null?void 0:t.toLowerCase():null;return r&&r in F6?F6[r]:"application/octet-stream"}function yq(e){return e.charCodeAt(0).toString(32)}function j6(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${yq(r)}`,"/"))+t}function _q(e,t){let r=t||"uppy";return typeof e.name=="string"&&(r+=`-${j6(e.name.toLowerCase())}`),e.type!==void 0&&(r+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(r+=`-${j6(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(r+=`-${e.data.size}`),e.data.lastModified!==void 0&&(r+=`-${e.data.lastModified}`),r}function wq(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function xq(e,t){if(wq(e))return e.id;const r=DR(e);return _q({...e,type:r},t)}function Sq(e){if(e==null&&typeof navigator<"u"&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1].split(".",2),a=parseInt(n[0],10),i=parseInt(n[1],10);return a<15||a===15&&i<15063||a>18||a===18&&i>=18218}function Cq(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function g1(e){return e<10?`0${e}`:e.toString()}function tp(){const e=new Date,t=g1(e.getHours()),r=g1(e.getMinutes()),n=g1(e.getSeconds());return`${t}:${r}:${n}`}const Eq={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${tp()}]`,...t)}},Oq={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${tp()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${tp()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${tp()}]`,...t)}};var v1,L6;function Rq(){return L6||(L6=1,v1=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);const r=t<0;let n=Math.abs(t);if(r&&(n=-n),n===0)return"0 B";const a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.min(Math.floor(Math.log(n)/Math.log(1024)),a.length-1),o=Number(n/1024**i),s=a[i];return`${o>=10||o%1===0?Math.round(o):o.toFixed(1)} ${s}`}),v1}var Tq=Rq();const f0=$n(Tq);var b1,z6;function Pq(){if(z6)return b1;z6=1;function e(t,r){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=r,this.parts=t.split(r)}return e.prototype.match=function(t){var r=!0,n=this.parts,a,i=n.length,o;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)r=!1;else{for(o=(t||"").split(this.separator),a=0;r&&a<i;a++)n[a]!=="*"&&(a<o.length?r=n[a]===o[a]:r=!1);r=r&&o}else if(typeof t.splice=="function")for(r=[],a=t.length;a--;)this.match(t[a])&&(r[r.length]=t[a]);else if(typeof t=="object"){r={};for(var s in t)this.match(s)&&(r[s]=t[s])}return r},b1=function(t,r,n){var a=new e(t,n||/[\/\.]/);return typeof r<"u"?a.match(r):a},b1}var y1,B6;function kq(){if(B6)return y1;B6=1;var e=Pq(),t=/[\/\+\.]/;return y1=function(r,n){function a(i){var o=e(i,r,t);return o&&o.length>=2}return n?a(n.split(";")[0]):a},y1}var $q=kq();const Aq=$n($q),Dq={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Pi extends Error{constructor(t,r){var n;super(t),this.isRestriction=!0,this.isUserFacing=(n=r==null?void 0:r.isUserFacing)!=null?n:!0,r!=null&&r.file&&(this.file=r.file)}}class Nq{constructor(t,r){this.getI18n=r,this.getOpts=()=>{var n;const a=t();if(((n=a.restrictions)==null?void 0:n.allowedFileTypes)!=null&&!Array.isArray(a.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return a}}validateAggregateRestrictions(t,r){const{maxTotalFileSize:n,maxNumberOfFiles:a}=this.getOpts().restrictions;if(a&&t.filter(o=>!o.isGhost).length+r.length>a)throw new Pi(`${this.getI18n()("youCanOnlyUploadX",{smart_count:a})}`);if(n){const i=[...t,...r].reduce((o,s)=>{var u;return o+((u=s.size)!=null?u:0)},0);if(i>n)throw new Pi(this.getI18n()("aggregateExceedsSize",{sizeAllowed:f0(n),size:f0(i)}))}}validateSingleFile(t){const{maxFileSize:r,minFileSize:n,allowedFileTypes:a}=this.getOpts().restrictions;if(a&&!a.some(o=>o.includes("/")?t.type?Aq(t.type.replace(/;.*?$/,""),o):!1:o[0]==="."&&t.extension?t.extension.toLowerCase()===o.slice(1).toLowerCase():!1)){const o=a.join(", ");throw new Pi(this.getI18n()("youCanOnlyUploadFileTypes",{types:o}),{file:t})}if(r&&t.size!=null&&t.size>r)throw new Pi(this.getI18n()("exceedsSize",{size:f0(r),file:t.name}),{file:t});if(n&&t.size!=null&&t.size<n)throw new Pi(this.getI18n()("inferiorSize",{size:f0(n)}),{file:t})}validate(t,r){r.forEach(n=>{this.validateSingleFile(n)}),this.validateAggregateRestrictions(t,r)}validateMinNumberOfFiles(t){const{minNumberOfFiles:r}=this.getOpts().restrictions;if(r&&Object.keys(t).length<r)throw new Pi(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:r}))}getMissingRequiredMetaFields(t){const r=new Pi(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:n}=this.getOpts().restrictions,a=[];for(const i of n)(!Object.hasOwn(t.meta,i)||t.meta[i]==="")&&a.push(i);return{missingFields:a,error:r}}}const Mq={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},aggregateExceedsSize:"You selected %{size} of files, but maximum allowed size is %{sizeAllowed}",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",unnamed:"Unnamed"}};let NR,MR;function lt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Iq=0;function fn(e){return"__private_"+Iq+++"_"+e}const Fq={version:"3.13.1"},h0={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var jn=fn("plugins"),qa=fn("restricter"),gd=fn("storeUnsubscribe"),zo=fn("emitter"),du=fn("preProcessors"),fu=fn("uploaders"),Zo=fn("postProcessors"),Wa=fn("informAndEmit"),wf=fn("checkRequiredMetaFieldsOnFile"),_1=fn("checkRequiredMetaFields"),vd=fn("assertNewUploadAllowed"),Oy=fn("transformFile"),bd=fn("startIfAutoProceed"),yd=fn("checkAndUpdateFileState"),w1=fn("addListeners"),Di=fn("updateOnlineStatus"),_d=fn("requestClientById"),Bo=fn("createUpload"),x1=fn("getUpload"),bu=fn("removeUpload"),Ho=fn("runUpload");NR=Symbol.for("uppy test: getPlugins");MR=Symbol.for("uppy test: createUpload");class om{constructor(t){Object.defineProperty(this,Ho,{value:Kq}),Object.defineProperty(this,bu,{value:Gq}),Object.defineProperty(this,x1,{value:Yq}),Object.defineProperty(this,Bo,{value:Wq}),Object.defineProperty(this,w1,{value:qq}),Object.defineProperty(this,yd,{value:Uq}),Object.defineProperty(this,bd,{value:Vq}),Object.defineProperty(this,Oy,{value:Hq}),Object.defineProperty(this,vd,{value:Bq}),Object.defineProperty(this,_1,{value:zq}),Object.defineProperty(this,wf,{value:Lq}),Object.defineProperty(this,Wa,{value:jq}),Object.defineProperty(this,jn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,qa,{writable:!0,value:void 0}),Object.defineProperty(this,gd,{writable:!0,value:void 0}),Object.defineProperty(this,zo,{writable:!0,value:hq()}),Object.defineProperty(this,du,{writable:!0,value:new Set}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,Zo,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=hH((a,i)=>{const o=this.getFile(a==null?void 0:a.id);if(a==null||!o){this.log(`Not setting progress for a file that has been removed: ${a==null?void 0:a.id}`);return}if(o.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${a.id}`);return}const s=Number.isFinite(i.bytesTotal)&&i.bytesTotal>0;this.setFileState(a.id,{progress:{...o.progress,bytesUploaded:i.bytesUploaded,bytesTotal:i.bytesTotal,percentage:s?Math.round(i.bytesUploaded/i.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Di,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,_d,{writable:!0,value:new Map}),this.defaultLocale=Mq;const r={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Dq,meta:{},onBeforeFileAdded:(a,i)=>!Object.hasOwn(i,a.id),onBeforeUpload:a=>a,store:new $R,logger:Eq,infoTimeout:5e3},n={...r,...t};this.opts={...n,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=Oq),this.log(`Using Core v${om.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...h0,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:Sq(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),lt(this,qa)[qa]=new Nq(()=>this.opts,()=>this.i18n),lt(this,gd)[gd]=this.store.subscribe((a,i,o)=>{this.emit("state-update",a,i,o),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),lt(this,w1)[w1]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];lt(this,zo)[zo].emit(t,...n)}on(t,r){return lt(this,zo)[zo].on(t,r),this}once(t,r){return lt(this,zo)[zo].once(t,r),this}off(t,r){return lt(this,zo)[zo].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}patchFilesState(t){const r=this.getState().files;this.setState({files:{...r,...Object.fromEntries(Object.entries(t).map(n=>{let[a,i]=n;return[a,{...r[a],...i}]}))}})}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.patchFilesState({[t]:r})}i18nInit(){const t=n=>this.log(`Missing i18n string: ${n}`,"error"),r=new sR([this.defaultLocale,this.opts.locale],{onMissingKey:t});this.i18n=r.translate.bind(r),this.i18nArray=r.translateArray.bind(r),this.locale=r.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t==null?void 0:t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions(t)}),this.setState(void 0)}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(a=>{n[a]={...r[a],progress:{...r[a].progress,...t}}}),this.setState({files:n,...h0}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:t,currentUploads:r}=this.getState();if(Object.keys(r).length>0&&!t.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...h0,files:{}})}addPreProcessor(t){lt(this,du)[du].add(t)}removePreProcessor(t){return lt(this,du)[du].delete(t)}addPostProcessor(t){lt(this,Zo)[Zo].add(t)}removePostProcessor(t){return lt(this,Zo)[Zo].delete(t)}addUploader(t){lt(this,fu)[fu].add(t)}removeUploader(t){return lt(this,fu)[fu].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(a=>{n[a]={...n[a],meta:{...n[a].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const a={...n[t].meta,...r};n[t]={...n[t],meta:a},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getFilesByIds(t){return t.map(r=>this.getFile(r))}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),a=Object.values(t),i=[],o=[],s=[],u=[],l=[],h=[],d=[],g=[],b=[];for(const y of a){const{progress:w}=y;!w.uploadComplete&&w.uploadStarted&&(i.push(y),y.isPaused||g.push(y)),w.uploadStarted||o.push(y),(w.uploadStarted||w.preprocess||w.postprocess)&&s.push(y),w.uploadStarted&&u.push(y),y.isPaused&&l.push(y),w.uploadComplete&&h.push(y),y.error&&d.push(y),(w.preprocess||w.postprocess)&&b.push(y)}return{newFiles:o,startedFiles:s,uploadStartedFiles:u,pausedFiles:l,completeFiles:h,erroredFiles:d,inProgressFiles:i,inProgressNotPausedFiles:g,processingFiles:b,isUploadStarted:u.length>0,isAllComplete:r===100&&h.length===a.length&&b.length===0,isAllErrored:!!n&&d.length===a.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(y=>y.isGhost)}}validateRestrictions(t,r){r===void 0&&(r=this.getFiles());try{lt(this,qa)[qa].validate(r,[t])}catch(n){return n}return null}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!!(r[t]&&!r[t].isGhost)}addFile(t){lt(this,vd)[vd](t);const{nextFilesState:r,validFilesToAdd:n,errors:a}=lt(this,yd)[yd]([t]),i=a.filter(s=>s.isRestriction);if(lt(this,Wa)[Wa](i),a.length>0)throw a[0];this.setState({files:r});const[o]=n;return this.emit("file-added",o),this.emit("files-added",n),this.log(`Added file: ${o.name}, ${o.id}, mime type: ${o.type}`),lt(this,bd)[bd](),o.id}addFiles(t){lt(this,vd)[vd]();const{nextFilesState:r,validFilesToAdd:n,errors:a}=lt(this,yd)[yd](t),i=a.filter(s=>s.isRestriction);lt(this,Wa)[Wa](i);const o=a.filter(s=>!s.isRestriction);if(o.length>0){let s=`Multiple errors occurred while adding files:
283
283
  `;if(o.forEach(u=>{s+=`
284
284
  * ${u.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:s},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,s);{const u=new Error(s);throw u.errors=o,u}}this.setState({files:r}),n.forEach(s=>{this.emit("file-added",s)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(s=>{this.log(`Added file: ${s.name}
285
285
  id: ${s.id}
286
286
  type: ${s.type}`)}),n.length>0&&lt(this,bd)[bd]()}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},o={...a},s=Object.create(null);t.forEach(d=>{n[d]&&(s[d]=n[d],delete i[d])});function u(d){return s[d]===void 0}Object.keys(o).forEach(d=>{const g=a[d].fileIDs.filter(u);if(g.length===0){delete o[d];return}const{capabilities:b}=this.getState();if(g.length!==a[d].fileIDs.length&&!b.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");o[d]={...a[d],fileIDs:g}});const l={currentUploads:o,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const h=Object.keys(s);h.forEach(d=>{this.emit("file-removed",s[d],r)}),h.length>5?this.log(`Removed ${h.length} files`):this.log(`Removed files: ${h.join(", ")}`)}removeFile(t,r){this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).progress.uploadComplete)return;const n=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!0};t[n]=a}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!1,error:null};t[n]=a}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=lt(this,Bo)[Bo](r,{forceAllowNewUpload:!0});return lt(this,Ho)[Ho](n)}cancelAll(t){let{reason:r="user"}=t===void 0?{}:t;if(this.emit("cancel-all",{reason:r}),r==="user"){const{files:n}=this.getState(),a=Object.keys(n);a.length&&this.removeFiles(a,"cancel-all"),this.setState(h0)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=lt(this,Bo)[Bo]([t],{forceAllowNewUpload:!0});return lt(this,Ho)[Ho](r)}logout(){this.iteratePlugins(t=>{var r;(r=t.provider)==null||r.logout==null||r.logout()})}calculateTotalProgress(){const r=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(r.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=r.filter(l=>l.progress.bytesTotal!=null),a=r.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=r.length*100,h=a.reduce((g,b)=>g+b.progress.percentage,0),d=Math.round(h/l*100);this.setState({totalProgress:d});return}let i=n.reduce((l,h)=>{var d;return l+((d=h.progress.bytesTotal)!=null?d:0)},0);const o=i/n.length;i+=o*a.length;let s=0;n.forEach(l=>{s+=l.progress.bytesUploaded}),a.forEach(l=>{s+=o*(l.progress.percentage||0)/100});let u=i===0?0:Math.round(s/i*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){var t;((t=window.navigator.onLine)!=null?t:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function"){const o=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(o)}const n=new t(this,r),a=n.id;if(!a)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(a);if(i){const o=`Already found a plugin named '${i.id}'. Tried to use: '${a}'.
287
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(o)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in lt(this,jn)[jn]?lt(this,jn)[jn][n.type].push(n):lt(this,jn)[jn][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(lt(this,jn)[jn])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[NR](t){return lt(this,jn)[jn][t]}iteratePlugins(t){Object.values(lt(this,jn)[jn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=lt(this,jn)[jn][t.type],n=r.findIndex(o=>o.id===t.id);n!==-1&&r.splice(n,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(t){let{reason:r}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:r}),lt(this,gd)[gd](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",lt(this,Di)[Di]),window.removeEventListener("offline",lt(this,Di)[Di]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}registerRequestClient(t,r){lt(this,_d)[_d].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=lt(this,_d)[_d].get(t.remote.requestClientId);if(r==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return r}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?lt(this,Ho)[Ho](t):(lt(this,bu)[bu](t),Promise.reject(new Error("Nonexistent upload")))}[MR](){return lt(this,Bo)[Bo](...arguments)}addResultData(t,r){if(!lt(this,x1)[x1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=lt(this,jn)[jn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>lt(this,qa)[qa].validateMinNumberOfFiles(r)).catch(a=>{throw lt(this,Wa)[Wa]([a]),a}).then(()=>{if(!lt(this,_1)[_1](r))throw new Pi(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),o=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);!l.progress.uploadStarted&&i.indexOf(u)===-1&&o.push(l.id)});const s=lt(this,Bo)[Bo](o);return lt(this,Ho)[Ho](s)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function zq(e){for(const i of e)i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning");const t=e.filter(i=>i.isUserFacing),r=4,n=t.slice(0,r),a=t.slice(r);n.forEach(i=>{let{message:o,details:s=""}=i;this.info({message:o,details:s},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function Bq(e){const{missingFields:t,error:r}=lt(this,qa)[qa].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1):!0}function Hq(e){let t=!0;for(const r of Object.values(e))lt(this,wf)[wf](r)||(t=!1);return t}function Vq(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new Pi(this.i18n("noMoreFilesAllowed"),{file:e});throw lt(this,Wa)[Wa]([r]),r}}function Uq(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=DR(t),n=Oq(r,t),a=AR(n).extension,i=Cq(t,this.getID()),o=t.meta||{};o.name=n,o.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...o},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function qq(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Wq(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const o of e)try{var i;let s=lt(this,Oy)[Oy](o);const u=(i=t[s.id])==null?void 0:i.isGhost;u&&(s={...t[s.id],isGhost:!1,data:o.data},this.log(`Replaced the blob in the restored ghost file: ${s.name}, ${s.id}`));const l=this.opts.onBeforeFileAdded(s,r);if(!l&&this.checkIfFileAlreadyExists(s.id))throw new Pi(this.i18n("noDuplicates",{fileName:s.name}),{file:o});if(l===!1&&!u)throw new Pi("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:o});typeof l=="object"&&l!==null&&(s=l),lt(this,qa)[qa].validateSingleFile(s),r[s.id]=s,n.push(s)}catch(s){a.push(s)}try{lt(this,qa)[qa].validateAggregateRestrictions(Object.values(t),n)}catch(o){return a.push(o),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function Yq(){const e=(n,a,i)=>{let o=n.message||"Unknown error";n.details&&(o+=` ${n.details}`),this.setState({error:o}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:o,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var o;this.log(a.message,"error");const s=new Error(this.i18n("failedToUpload",{file:(o=n==null?void 0:n.name)!=null?o:""}));s.isUserFacing=!0,s.details=a.message,a.details&&(s.details+=` ${a.details}`),lt(this,Wa)[Wa]([s])}else lt(this,Wa)[Wa]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,o=a.map(s=>s.meta.name).join(", ");t||(this.info({message:i,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(o=>{const s=o!=null&&this.getFile(o.id);return s||this.log(`Not setting progress for a file that has been removed: ${o==null?void 0:o.id}`),s}),i=Object.fromEntries(a.map(o=>[o.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:o.size}}]));this.patchFilesState(i)};this.on("upload-start",n=>{n.forEach(a=>{this.emit("upload-started",a)}),r(n)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const i=this.getFile(n.id).progress;this.setFileState(n.id,{progress:{...i,postprocess:lt(this,Zo)[Zo].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:a,uploadURL:a.uploadURL,isPaused:!1}),n.size==null&&this.setFileState(n.id,{size:a.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getFile(n.id).progress,preprocess:a}})}),this.on("preprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.preprocess,this.setState({files:a})}),this.on("postprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getState().files[n.id].progress,postprocess:a}})}),this.on("postprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.postprocess,this.setState({files:a})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",n=>{n&&lt(this,wf)[wf](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",lt(this,Di)[Di]),window.addEventListener("offline",lt(this,Di)[Di]),setTimeout(lt(this,Di)[Di],3e3))}function Gq(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=vq();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Kq(e){const{currentUploads:t}=this.getState();return t[e]}function Xq(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Zq(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...lt(this,du)[du],...lt(this,fu)[fu],...lt(this,Zo)[Zo]];try{for(let i=r.step||0;i<n.length&&r;i++){const o=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:s}=r;await o(s,e),r=t()}}catch(i){throw lt(this,bu)[bu](e),i}if(r){r.fileIDs.forEach(u=>{const l=this.getFile(u);l&&l.progress.postprocess&&this.emit("postprocess-complete",l)});const i=r.fileIDs.map(u=>this.getFile(u)),o=i.filter(u=>!u.error),s=i.filter(u=>u.error);this.addResultData(e,{successful:o,failed:s,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),lt(this,bu)[bu](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}om.VERSION=Lq.version;const IR=A.forwardRef((e,t)=>{const[r,n]=A.useState("write"),a=A.useRef(null),[i,{toggleFullscreen:o}]=J5(a),s=new tV.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),u={name:"full",icon:()=>z.jsx(Dt,{onClick:()=>{},className:tn.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:b=>{o()}},l={name:"paste",icon:()=>z.jsx(Dt,{onClick:()=>{},className:tn.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:b=>{}},h={name:"min",icon:()=>z.jsx(Dt,{onClick:()=>{},className:tn.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:b=>{o()}},d={name:"table",icon:()=>z.jsx(Dt,{className:tn.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:b=>{b.textApi.replaceSelection(`${J("sys.columnHeader",{placeholder:"列头"})}1 | ${J("sys.columnHeader",{placeholder:"列头"})}2 | ${J("sys.columnHeader",{placeholder:"列头"})}3
287
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(o)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in lt(this,jn)[jn]?lt(this,jn)[jn][n.type].push(n):lt(this,jn)[jn][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(lt(this,jn)[jn])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[NR](t){return lt(this,jn)[jn][t]}iteratePlugins(t){Object.values(lt(this,jn)[jn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=lt(this,jn)[jn][t.type],n=r.findIndex(o=>o.id===t.id);n!==-1&&r.splice(n,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(t){let{reason:r}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:r}),lt(this,gd)[gd](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",lt(this,Di)[Di]),window.removeEventListener("offline",lt(this,Di)[Di]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}registerRequestClient(t,r){lt(this,_d)[_d].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=lt(this,_d)[_d].get(t.remote.requestClientId);if(r==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return r}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?lt(this,Ho)[Ho](t):(lt(this,bu)[bu](t),Promise.reject(new Error("Nonexistent upload")))}[MR](){return lt(this,Bo)[Bo](...arguments)}addResultData(t,r){if(!lt(this,x1)[x1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=lt(this,jn)[jn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>lt(this,qa)[qa].validateMinNumberOfFiles(r)).catch(a=>{throw lt(this,Wa)[Wa]([a]),a}).then(()=>{if(!lt(this,_1)[_1](r))throw new Pi(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),o=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);!l.progress.uploadStarted&&i.indexOf(u)===-1&&o.push(l.id)});const s=lt(this,Bo)[Bo](o);return lt(this,Ho)[Ho](s)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function jq(e){for(const i of e)i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning");const t=e.filter(i=>i.isUserFacing),r=4,n=t.slice(0,r),a=t.slice(r);n.forEach(i=>{let{message:o,details:s=""}=i;this.info({message:o,details:s},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function Lq(e){const{missingFields:t,error:r}=lt(this,qa)[qa].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1):!0}function zq(e){let t=!0;for(const r of Object.values(e))lt(this,wf)[wf](r)||(t=!1);return t}function Bq(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new Pi(this.i18n("noMoreFilesAllowed"),{file:e});throw lt(this,Wa)[Wa]([r]),r}}function Hq(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=DR(t),n=Cq(r,t),a=AR(n).extension,i=xq(t,this.getID()),o=t.meta||{};o.name=n,o.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...o},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Vq(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Uq(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const o of e)try{var i;let s=lt(this,Oy)[Oy](o);const u=(i=t[s.id])==null?void 0:i.isGhost;u&&(s={...t[s.id],isGhost:!1,data:o.data},this.log(`Replaced the blob in the restored ghost file: ${s.name}, ${s.id}`));const l=this.opts.onBeforeFileAdded(s,r);if(!l&&this.checkIfFileAlreadyExists(s.id))throw new Pi(this.i18n("noDuplicates",{fileName:s.name}),{file:o});if(l===!1&&!u)throw new Pi("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:o});typeof l=="object"&&l!==null&&(s=l),lt(this,qa)[qa].validateSingleFile(s),r[s.id]=s,n.push(s)}catch(s){a.push(s)}try{lt(this,qa)[qa].validateAggregateRestrictions(Object.values(t),n)}catch(o){return a.push(o),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function qq(){const e=(n,a,i)=>{let o=n.message||"Unknown error";n.details&&(o+=` ${n.details}`),this.setState({error:o}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:o,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var o;this.log(a.message,"error");const s=new Error(this.i18n("failedToUpload",{file:(o=n==null?void 0:n.name)!=null?o:""}));s.isUserFacing=!0,s.details=a.message,a.details&&(s.details+=` ${a.details}`),lt(this,Wa)[Wa]([s])}else lt(this,Wa)[Wa]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,o=a.map(s=>s.meta.name).join(", ");t||(this.info({message:i,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(o=>{const s=o!=null&&this.getFile(o.id);return s||this.log(`Not setting progress for a file that has been removed: ${o==null?void 0:o.id}`),s}),i=Object.fromEntries(a.map(o=>[o.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:o.size}}]));this.patchFilesState(i)};this.on("upload-start",n=>{n.forEach(a=>{this.emit("upload-started",a)}),r(n)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const i=this.getFile(n.id).progress;this.setFileState(n.id,{progress:{...i,postprocess:lt(this,Zo)[Zo].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:a,uploadURL:a.uploadURL,isPaused:!1}),n.size==null&&this.setFileState(n.id,{size:a.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getFile(n.id).progress,preprocess:a}})}),this.on("preprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.preprocess,this.setState({files:a})}),this.on("postprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getState().files[n.id].progress,postprocess:a}})}),this.on("postprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.postprocess,this.setState({files:a})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",n=>{n&&lt(this,wf)[wf](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",lt(this,Di)[Di]),window.addEventListener("offline",lt(this,Di)[Di]),setTimeout(lt(this,Di)[Di],3e3))}function Wq(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=mq();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Yq(e){const{currentUploads:t}=this.getState();return t[e]}function Gq(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Kq(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...lt(this,du)[du],...lt(this,fu)[fu],...lt(this,Zo)[Zo]];try{for(let i=r.step||0;i<n.length&&r;i++){const o=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:s}=r;await o(s,e),r=t()}}catch(i){throw lt(this,bu)[bu](e),i}if(r){r.fileIDs.forEach(u=>{const l=this.getFile(u);l&&l.progress.postprocess&&this.emit("postprocess-complete",l)});const i=r.fileIDs.map(u=>this.getFile(u)),o=i.filter(u=>!u.error),s=i.filter(u=>u.error);this.addResultData(e,{successful:o,failed:s,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),lt(this,bu)[bu](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}om.VERSION=Fq.version;function Xq(e,t){if(!t)return e;for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=new RegExp(`{(${r})+}`,"g");e=e.replace(n,t[r])}return e}const Zq=(e,t={},r)=>Xq(t.placeholder||"",t.variate),J=(e,t,r)=>Zq(e,t),IR=A.forwardRef((e,t)=>{const[r,n]=A.useState("write"),a=A.useRef(null),[i,{toggleFullscreen:o}]=J5(a),s=new QH.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),u={name:"full",icon:()=>z.jsx(Dt,{onClick:()=>{},className:tn.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:b=>{o()}},l={name:"paste",icon:()=>z.jsx(Dt,{onClick:()=>{},className:tn.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:b=>{}},h={name:"min",icon:()=>z.jsx(Dt,{onClick:()=>{},className:tn.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:b=>{o()}},d={name:"table",icon:()=>z.jsx(Dt,{className:tn.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:b=>{b.textApi.replaceSelection(`${J("sys.columnHeader",{placeholder:"列头"})}1 | ${J("sys.columnHeader",{placeholder:"列头"})}2 | ${J("sys.columnHeader",{placeholder:"列头"})}3
288
288
  :----------- | :-----------: | -----------:
289
- ${J("sys.align.left",{placeholder:"居左"})}|${J("sys.align.center",{placeholder:"居中"})}|${J("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(b,y){const w=new om({meta:{},debug:!1,autoProceed:!0});w.use(PR,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(E,_)=>{e.toPostFileRecord&&e.toPostFileRecord({file:E,response:_,type:"0"})}),w.addFile({name:y.name,type:y.type,data:y,source:"Local",isRemote:!1});const S=await w.upload();return S.successful[0]?S.successful[0].uploadURL:J("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return A.useEffect(()=>{n("write")},[e.readOnly]),z.jsxs("div",{className:ge(tn.main,e.value?tn.mdebordershow:tn.mdeborderhide,i?tn.fullscreen:{},r==="preview"?tn.mdePreview:{}),children:[z.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:z.jsx(KB,{value:e.value,onChange:b=>{e.onChange&&e.onChange(b)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:b=>b==="header"?z.jsx(ae.Tooltip,{title:J("sys.title",{placeholder:"标题"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"H"})}):b==="bold"?z.jsx(ae.Tooltip,{title:J("sys.bold.bold",{placeholder:"加粗"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"jiacu"})}):b==="italic"?z.jsx(ae.Tooltip,{title:J("sys.italic.italic",{placeholder:"倾斜"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"qingxie"})}):b==="strikethrough"?z.jsx(ae.Tooltip,{title:J("sys.strikethrough.strikethrough",{placeholder:"划线"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"huaxian"})}):b==="link"?z.jsx(ae.Tooltip,{title:J("sys.link.link",{placeholder:"链接"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"lianjie"})}):b==="quote"?z.jsx(ae.Tooltip,{title:J("sys.quote.quote",{placeholder:"引用"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"yinyong"})}):b==="code"?z.jsx(ae.Tooltip,{title:J("sys.code.code",{placeholder:"代码"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"code"})}):b==="image"?z.jsx(ae.Tooltip,{title:J("sys.label.image",{placeholder:"图片"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"charutupian"})}):b==="unordered-list"?z.jsx(ae.Tooltip,{title:J("sys.unorderedList.unorderedList",{placeholder:"无序列表"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"dian"})}):b==="ordered-list"?z.jsxs(ae.Tooltip,{title:J("sys.orderedList.orderedList",{placeholder:"有序列表"}),children:[" ",z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"shuzi"})]}):b==="checked-list"?z.jsx(ae.Tooltip,{title:J("sys.checkedList.checkedList",{placeholder:"勾选列表"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"gou"})}):z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"chakanxiangqing"}),toolbarCommands:i?[["header","bold","italic","strikethrough","link","code","table","image","ordered-list","checked-list","min"]]:[["header","bold","italic","link","code","table","image","ordered-list","checked-list","full"]],l18n:{uploadingImage:J("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:J("individuality.column.operate.edit",{placeholder:"编辑"}),preview:J("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:J("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:u,table:d,min:h,paste:l},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:b=>{n(b)},generateMarkdownPreview:b=>Promise.resolve(s.makeHtml(b)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:g,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?z.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:z.jsx(Dt,{onClick:()=>{o()},className:tn.markIcon,style:{fontSize:"13px"},type:"fangda"})}):z.jsx(z.Fragment,{})]})}),Jq="_confirmModal_1ejcp_1",Qq="_wrapClassName_1ejcp_20",eW="_notBtnIcon_1ejcp_28",tW="_qprogress_1ejcp_34",rW="_styleUnify_1ejcp_39",nf={confirmModal:Jq,wrapClassName:Qq,notBtnIcon:eW,qprogress:tW,styleUnify:rW};var rp={exports:{}},nW=rp.exports,H6;function aW(){return H6||(H6=1,function(e,t){(function(r,n){e.exports=n()})(nW,function(){/*! *****************************************************************************
289
+ ${J("sys.align.left",{placeholder:"居左"})}|${J("sys.align.center",{placeholder:"居中"})}|${J("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(b,y){const w=new om({meta:{},debug:!1,autoProceed:!0});w.use(PR,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(E,_)=>{e.toPostFileRecord&&e.toPostFileRecord({file:E,response:_,type:"0"})}),w.addFile({name:y.name,type:y.type,data:y,source:"Local",isRemote:!1});const S=await w.upload();return S.successful[0]?S.successful[0].uploadURL:J("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return A.useEffect(()=>{n("write")},[e.readOnly]),z.jsxs("div",{className:ge(tn.main,e.value?tn.mdebordershow:tn.mdeborderhide,i?tn.fullscreen:{},r==="preview"?tn.mdePreview:{}),children:[z.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:z.jsx(YB,{value:e.value,onChange:b=>{e.onChange&&e.onChange(b)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:b=>b==="header"?z.jsx(ae.Tooltip,{title:J("sys.title",{placeholder:"标题"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"H"})}):b==="bold"?z.jsx(ae.Tooltip,{title:J("sys.bold.bold",{placeholder:"加粗"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"jiacu"})}):b==="italic"?z.jsx(ae.Tooltip,{title:J("sys.italic.italic",{placeholder:"倾斜"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"qingxie"})}):b==="strikethrough"?z.jsx(ae.Tooltip,{title:J("sys.strikethrough.strikethrough",{placeholder:"划线"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"huaxian"})}):b==="link"?z.jsx(ae.Tooltip,{title:J("sys.link.link",{placeholder:"链接"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"lianjie"})}):b==="quote"?z.jsx(ae.Tooltip,{title:J("sys.quote.quote",{placeholder:"引用"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"yinyong"})}):b==="code"?z.jsx(ae.Tooltip,{title:J("sys.code.code",{placeholder:"代码"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"code"})}):b==="image"?z.jsx(ae.Tooltip,{title:J("sys.label.image",{placeholder:"图片"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"charutupian"})}):b==="unordered-list"?z.jsx(ae.Tooltip,{title:J("sys.unorderedList.unorderedList",{placeholder:"无序列表"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"dian"})}):b==="ordered-list"?z.jsxs(ae.Tooltip,{title:J("sys.orderedList.orderedList",{placeholder:"有序列表"}),children:[" ",z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"shuzi"})]}):b==="checked-list"?z.jsx(ae.Tooltip,{title:J("sys.checkedList.checkedList",{placeholder:"勾选列表"}),children:z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"gou"})}):z.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:tn.markIcon,type:"chakanxiangqing"}),toolbarCommands:i?[["header","bold","italic","strikethrough","link","code","table","image","ordered-list","checked-list","min"]]:[["header","bold","italic","link","code","table","image","ordered-list","checked-list","full"]],l18n:{uploadingImage:J("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:J("individuality.column.operate.edit",{placeholder:"编辑"}),preview:J("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:J("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:u,table:d,min:h,paste:l},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:b=>{n(b)},generateMarkdownPreview:b=>Promise.resolve(s.makeHtml(b)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:g,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?z.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:z.jsx(Dt,{onClick:()=>{o()},className:tn.markIcon,style:{fontSize:"13px"},type:"fangda"})}):z.jsx(z.Fragment,{})]})}),Jq="_confirmModal_1ejcp_1",Qq="_wrapClassName_1ejcp_20",eW="_notBtnIcon_1ejcp_28",tW="_qprogress_1ejcp_34",rW="_styleUnify_1ejcp_39",nf={confirmModal:Jq,wrapClassName:Qq,notBtnIcon:eW,qprogress:tW,styleUnify:rW};var rp={exports:{}},nW=rp.exports,H6;function aW(){return H6||(H6=1,function(e,t){(function(r,n){e.exports=n()})(nW,function(){/*! *****************************************************************************
290
290
  Copyright (c) Microsoft Corporation. All rights reserved.
291
291
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
292
292
  this file except in compliance with the License. You may obtain a copy of the
@@ -320,7 +320,7 @@ object-assign
320
320
  */var C1,W6;function lW(){if(W6)return C1;W6=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C1=a()?Object.assign:function(i,o){for(var s,u=n(i),l,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var g=0;g<l.length;g++)r.call(s,l[g])&&(u[l[g]]=s[l[g]])}}return u},C1}var E1,Y6;function mw(){if(Y6)return E1;Y6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return E1=e,E1}var O1,G6;function jR(){return G6||(G6=1,O1=Function.call.bind(Object.prototype.hasOwnProperty)),O1}var R1,K6;function cW(){if(K6)return R1;K6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mw(),r={},n=jR();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var d;try{if(typeof i[h]!="function"){var g=Error((u||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}d=i[h](o,h,u,s,null,t)}catch(y){d=y}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var b=l?l():"";e("Failed "+s+" type: "+d.message+(b??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},R1=a,R1}var T1,X6;function dW(){if(X6)return T1;X6=1;var e=FR(),t=lW(),r=mw(),n=jR(),a=cW(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return T1=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(B){var U=B&&(l&&B[l]||B[h]);if(typeof U=="function")return U}var g="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:_(),arrayOf:C,element:f(),elementType:p(),instanceOf:v,node:$(),objectOf:k,oneOf:x,oneOfType:O,shape:V,exact:I};function y(B,U){return B===U?B!==0||1/B===1/U:B!==B&&U!==U}function w(B,U){this.message=B,this.data=U&&typeof U=="object"?U:{},this.stack=""}w.prototype=Error.prototype;function S(B){if(process.env.NODE_ENV!=="production")var U={},G=0;function X(ne,ie,oe,de,pe,be,me){if(de=de||g,be=be||oe,me!==r){if(u){var ee=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ee.name="Invariant Violation",ee}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=de+":"+oe;!U[ve]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[ve]=!0,G++)}}return ie[oe]==null?ne?ie[oe]===null?new w("The "+pe+" `"+be+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new w("The "+pe+" `"+be+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:B(ie,oe,de,pe,be)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function E(B){function U(G,X,K,ne,ie,oe){var de=G[X],pe=T(de);if(pe!==B){var be=N(de);return new w("Invalid "+ne+" `"+ie+"` of type "+("`"+be+"` supplied to `"+K+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return S(U)}function _(){return S(o)}function C(B){function U(G,X,K,ne,ie){if(typeof B!="function")return new w("Property `"+ie+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var oe=G[X];if(!Array.isArray(oe)){var de=T(oe);return new w("Invalid "+ne+" `"+ie+"` of type "+("`"+de+"` supplied to `"+K+"`, expected an array."))}for(var pe=0;pe<oe.length;pe++){var be=B(oe,pe,K,ne,ie+"["+pe+"]",r);if(be instanceof Error)return be}return null}return S(U)}function f(){function B(U,G,X,K,ne){var ie=U[G];if(!s(ie)){var oe=T(ie);return new w("Invalid "+K+" `"+ne+"` of type "+("`"+oe+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return S(B)}function p(){function B(U,G,X,K,ne){var ie=U[G];if(!e.isValidElementType(ie)){var oe=T(ie);return new w("Invalid "+K+" `"+ne+"` of type "+("`"+oe+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return S(B)}function v(B){function U(G,X,K,ne,ie){if(!(G[X]instanceof B)){var oe=B.name||g,de=H(G[X]);return new w("Invalid "+ne+" `"+ie+"` of type "+("`"+de+"` supplied to `"+K+"`, expected ")+("instance of `"+oe+"`."))}return null}return S(U)}function x(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function U(G,X,K,ne,ie){for(var oe=G[X],de=0;de<B.length;de++)if(y(oe,B[de]))return null;var pe=JSON.stringify(B,function(me,ee){var ve=N(ee);return ve==="symbol"?String(ee):ee});return new w("Invalid "+ne+" `"+ie+"` of value `"+String(oe)+"` "+("supplied to `"+K+"`, expected one of "+pe+"."))}return S(U)}function k(B){function U(G,X,K,ne,ie){if(typeof B!="function")return new w("Property `"+ie+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var oe=G[X],de=T(oe);if(de!=="object")return new w("Invalid "+ne+" `"+ie+"` of type "+("`"+de+"` supplied to `"+K+"`, expected an object."));for(var pe in oe)if(n(oe,pe)){var be=B(oe,pe,K,ne,ie+"."+pe,r);if(be instanceof Error)return be}return null}return S(U)}function O(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var U=0;U<B.length;U++){var G=B[U];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(G)+" at index "+U+"."),o}function X(K,ne,ie,oe,de){for(var pe=[],be=0;be<B.length;be++){var me=B[be],ee=me(K,ne,ie,oe,de,r);if(ee==null)return null;ee.data&&n(ee.data,"expectedType")&&pe.push(ee.data.expectedType)}var ve=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new w("Invalid "+oe+" `"+de+"` supplied to "+("`"+ie+"`"+ve+"."))}return S(X)}function $(){function B(U,G,X,K,ne){return M(U[G])?null:new w("Invalid "+K+" `"+ne+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return S(B)}function D(B,U,G,X,K){return new w((B||"React class")+": "+U+" type `"+G+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function V(B){function U(G,X,K,ne,ie){var oe=G[X],de=T(oe);if(de!=="object")return new w("Invalid "+ne+" `"+ie+"` of type `"+de+"` "+("supplied to `"+K+"`, expected `object`."));for(var pe in B){var be=B[pe];if(typeof be!="function")return D(K,ne,ie,pe,N(be));var me=be(oe,pe,K,ne,ie+"."+pe,r);if(me)return me}return null}return S(U)}function I(B){function U(G,X,K,ne,ie){var oe=G[X],de=T(oe);if(de!=="object")return new w("Invalid "+ne+" `"+ie+"` of type `"+de+"` "+("supplied to `"+K+"`, expected `object`."));var pe=t({},G[X],B);for(var be in pe){var me=B[be];if(n(B,be)&&typeof me!="function")return D(K,ne,ie,be,N(me));if(!me)return new w("Invalid "+ne+" `"+ie+"` key `"+be+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(G[X],null," ")+`
321
321
  Valid keys: `+JSON.stringify(Object.keys(B),null," "));var ee=me(oe,be,K,ne,ie+"."+be,r);if(ee)return ee}return null}return S(U)}function M(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(M);if(B===null||s(B))return!0;var U=d(B);if(U){var G=U.call(B),X;if(U!==B.entries){for(;!(X=G.next()).done;)if(!M(X.value))return!1}else for(;!(X=G.next()).done;){var K=X.value;if(K&&!M(K[1]))return!1}}else return!1;return!0;default:return!1}}function F(B,U){return B==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function T(B){var U=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":F(U,B)?"symbol":U}function N(B){if(typeof B>"u"||B===null)return""+B;var U=T(B);if(U==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return U}function j(B){var U=N(B);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function H(B){return!B.constructor||!B.constructor.name?g:B.constructor.name}return b.checkPropTypes=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},T1}var P1,Z6;function fW(){if(Z6)return P1;Z6=1;var e=mw();function t(){}function r(){}return r.resetWarningCache=t,P1=function(){function n(o,s,u,l,h,d){if(d!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},P1}var J6;function Yf(){if(J6)return p0.exports;if(J6=1,process.env.NODE_ENV!=="production"){var e=FR(),t=!0;p0.exports=dW()(e.isElement,t)}else p0.exports=fW()();return p0.exports}function LR(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=LR(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Al(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=LR(e))&&(n&&(n+=" "),n+=t);return n}const hW=Object.freeze(Object.defineProperty({__proto__:null,clsx:Al,default:Al},Symbol.toStringTag,{value:"Module"})),pW=Wj(hW);var ln={},ys={},Q6;function sm(){if(Q6)return ys;Q6=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.dontSetMe=a,ys.findInArray=e,ys.int=n,ys.isFunction=t,ys.isNum=r;function e(i,o){for(let s=0,u=i.length;s<u;s++)if(o.apply(o,[i[s],s,i]))return i[s]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function r(i){return typeof i=="number"&&!isNaN(i)}function n(i){return parseInt(i,10)}function a(i,o,s){if(i[o])return new Error("Invalid prop ".concat(o," passed to ").concat(s," - do not set this, set it on the child."))}return ys}var _s={},eE;function mW(){if(eE)return _s;eE=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.browserPrefixToKey=r,_s.browserPrefixToStyle=n,_s.default=void 0,_s.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const s=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!s||o in s)return"";for(let u=0;u<e.length;u++)if(r(o,e[u])in s)return e[u];return""}function r(i,o){return o?"".concat(o).concat(a(i)):i}function n(i,o){return o?"-".concat(o.toLowerCase(),"-").concat(i):i}function a(i){let o="",s=!0;for(let u=0;u<i.length;u++)s?(o+=i[u].toUpperCase(),s=!1):i[u]==="-"?s=!0:o+=i[u];return o}return _s.default=t(),_s}var tE;function gw(){if(tE)return ln;tE=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.addClassName=p,ln.addEvent=s,ln.addUserSelectStyles=C,ln.createCSSTransform=y,ln.createSVGTransform=w,ln.getTouch=E,ln.getTouchIdentifier=_,ln.getTranslation=S,ln.innerHeight=d,ln.innerWidth=g,ln.matchesSelector=i,ln.matchesSelectorAndParentsTo=o,ln.offsetXYFromParent=b,ln.outerHeight=l,ln.outerWidth=h,ln.removeClassName=v,ln.removeEvent=u,ln.removeUserSelectStyles=f;var e=sm(),t=n(mW());function r(x){if(typeof WeakMap!="function")return null;var k=new WeakMap,O=new WeakMap;return(r=function($){return $?O:k})(x)}function n(x,k){if(x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var O=r(k);if(O&&O.has(x))return O.get(x);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in x)if(V!=="default"&&Object.prototype.hasOwnProperty.call(x,V)){var I=D?Object.getOwnPropertyDescriptor(x,V):null;I&&(I.get||I.set)?Object.defineProperty($,V,I):$[V]=x[V]}return $.default=x,O&&O.set(x,$),$}let a="";function i(x,k){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(O){return(0,e.isFunction)(x[O])})),(0,e.isFunction)(x[a])?x[a](k):!1}function o(x,k,O){let $=x;do{if(i($,k))return!0;if($===O)return!1;$=$.parentNode}while($);return!1}function s(x,k,O,$){if(!x)return;const D={capture:!0,...$};x.addEventListener?x.addEventListener(k,O,D):x.attachEvent?x.attachEvent("on"+k,O):x["on"+k]=O}function u(x,k,O,$){if(!x)return;const D={capture:!0,...$};x.removeEventListener?x.removeEventListener(k,O,D):x.detachEvent?x.detachEvent("on"+k,O):x["on"+k]=null}function l(x){let k=x.clientHeight;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k+=(0,e.int)(O.borderTopWidth),k+=(0,e.int)(O.borderBottomWidth),k}function h(x){let k=x.clientWidth;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k+=(0,e.int)(O.borderLeftWidth),k+=(0,e.int)(O.borderRightWidth),k}function d(x){let k=x.clientHeight;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k-=(0,e.int)(O.paddingTop),k-=(0,e.int)(O.paddingBottom),k}function g(x){let k=x.clientWidth;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k-=(0,e.int)(O.paddingLeft),k-=(0,e.int)(O.paddingRight),k}function b(x,k,O){const D=k===k.ownerDocument.body?{left:0,top:0}:k.getBoundingClientRect(),V=(x.clientX+k.scrollLeft-D.left)/O,I=(x.clientY+k.scrollTop-D.top)/O;return{x:V,y:I}}function y(x,k){const O=S(x,k,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:O}}function w(x,k){return S(x,k,"")}function S(x,k,O){let{x:$,y:D}=x,V="translate(".concat($).concat(O,",").concat(D).concat(O,")");if(k){const I="".concat(typeof k.x=="string"?k.x:k.x+O),M="".concat(typeof k.y=="string"?k.y:k.y+O);V="translate(".concat(I,", ").concat(M,")")+V}return V}function E(x,k){return x.targetTouches&&(0,e.findInArray)(x.targetTouches,O=>k===O.identifier)||x.changedTouches&&(0,e.findInArray)(x.changedTouches,O=>k===O.identifier)}function _(x){if(x.targetTouches&&x.targetTouches[0])return x.targetTouches[0].identifier;if(x.changedTouches&&x.changedTouches[0])return x.changedTouches[0].identifier}function C(x){if(!x)return;let k=x.getElementById("react-draggable-style-el");k||(k=x.createElement("style"),k.type="text/css",k.id="react-draggable-style-el",k.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
322
322
  `,k.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
323
- `,x.getElementsByTagName("head")[0].appendChild(k)),x.body&&p(x.body,"react-draggable-transparent-selection")}function f(x){if(x)try{if(x.body&&v(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const k=(x.defaultView||window).getSelection();k&&k.type!=="Caret"&&k.removeAllRanges()}}catch{}}function p(x,k){x.classList?x.classList.add(k):x.className.match(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)")))||(x.className+=" ".concat(k))}function v(x,k){x.classList?x.classList.remove(k):x.className=x.className.replace(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)"),"g"),"")}return ln}var Ji={},rE;function zR(){if(rE)return Ji;rE=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.canDragX=a,Ji.canDragY=i,Ji.createCoreData=s,Ji.createDraggableData=u,Ji.getBoundPosition=r,Ji.getControlPosition=o,Ji.snapToGrid=n;var e=sm(),t=gw();function r(d,g,b){if(!d.props.bounds)return[g,b];let{bounds:y}=d.props;y=typeof y=="string"?y:l(y);const w=h(d);if(typeof y=="string"){const{ownerDocument:S}=w,E=S.defaultView;let _;if(y==="parent"?_=w.parentNode:_=S.querySelector(y),!(_ instanceof E.HTMLElement))throw new Error('Bounds selector "'+y+'" could not find an element.');const C=_,f=E.getComputedStyle(w),p=E.getComputedStyle(C);y={left:-w.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(f.marginLeft),top:-w.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(f.marginTop),right:(0,t.innerWidth)(C)-(0,t.outerWidth)(w)-w.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(f.marginRight),bottom:(0,t.innerHeight)(C)-(0,t.outerHeight)(w)-w.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(f.marginBottom)}}return(0,e.isNum)(y.right)&&(g=Math.min(g,y.right)),(0,e.isNum)(y.bottom)&&(b=Math.min(b,y.bottom)),(0,e.isNum)(y.left)&&(g=Math.max(g,y.left)),(0,e.isNum)(y.top)&&(b=Math.max(b,y.top)),[g,b]}function n(d,g,b){const y=Math.round(g/d[0])*d[0],w=Math.round(b/d[1])*d[1];return[y,w]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function o(d,g,b){const y=typeof g=="number"?(0,t.getTouch)(d,g):null;if(typeof g=="number"&&!y)return null;const w=h(b),S=b.props.offsetParent||w.offsetParent||w.ownerDocument.body;return(0,t.offsetXYFromParent)(y||d,S,b.props.scale)}function s(d,g,b){const y=!(0,e.isNum)(d.lastX),w=h(d);return y?{node:w,deltaX:0,deltaY:0,lastX:g,lastY:b,x:g,y:b}:{node:w,deltaX:g-d.lastX,deltaY:b-d.lastY,lastX:d.lastX,lastY:d.lastY,x:g,y:b}}function u(d,g){const b=d.props.scale;return{node:g.node,x:d.state.x+g.deltaX/b,y:d.state.y+g.deltaY/b,deltaX:g.deltaX/b,deltaY:g.deltaY/b,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function h(d){const g=d.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return Ji}var xd={},g0={},nE;function BR(){if(nE)return g0;nE=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.default=e;function e(){}return g0}var aE;function gW(){if(aE)return xd;aE=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.default=void 0;var e=l(A),t=s(Yf()),r=s(lo),n=gw(),a=zR(),i=sm(),o=s(BR());function s(S){return S&&S.__esModule?S:{default:S}}function u(S){if(typeof WeakMap!="function")return null;var E=new WeakMap,_=new WeakMap;return(u=function(C){return C?_:E})(S)}function l(S,E){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var _=u(E);if(_&&_.has(S))return _.get(S);var C={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in S)if(p!=="default"&&Object.prototype.hasOwnProperty.call(S,p)){var v=f?Object.getOwnPropertyDescriptor(S,p):null;v&&(v.get||v.set)?Object.defineProperty(C,p,v):C[p]=S[p]}return C.default=S,_&&_.set(S,C),C}function h(S,E,_){return E=d(E),E in S?Object.defineProperty(S,E,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[E]=_,S}function d(S){var E=g(S,"string");return typeof E=="symbol"?E:String(E)}function g(S,E){if(typeof S!="object"||S===null)return S;var _=S[Symbol.toPrimitive];if(_!==void 0){var C=_.call(S,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(S)}const b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=b.mouse,w=class extends e.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",E=>{if(this.props.onMouseDown(E),!this.props.allowAnyClick&&typeof E.button=="number"&&E.button!==0)return!1;const _=this.findDOMNode();if(!_||!_.ownerDocument||!_.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:C}=_;if(this.props.disabled||!(E.target instanceof C.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(E.target,this.props.handle,_)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(E.target,this.props.cancel,_))return;E.type==="touchstart"&&E.preventDefault();const f=(0,n.getTouchIdentifier)(E);this.touchIdentifier=f;const p=(0,a.getControlPosition)(E,f,this);if(p==null)return;const{x:v,y:x}=p,k=(0,a.createCoreData)(this,v,x);(0,o.default)("DraggableCore: handleDragStart: %j",k),(0,o.default)("calling",this.props.onStart),!(this.props.onStart(E,k)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(C),this.dragging=!0,this.lastX=v,this.lastY=x,(0,n.addEvent)(C,y.move,this.handleDrag),(0,n.addEvent)(C,y.stop,this.handleDragStop))}),h(this,"handleDrag",E=>{const _=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(_==null)return;let{x:C,y:f}=_;if(Array.isArray(this.props.grid)){let x=C-this.lastX,k=f-this.lastY;if([x,k]=(0,a.snapToGrid)(this.props.grid,x,k),!x&&!k)return;C=this.lastX+x,f=this.lastY+k}const p=(0,a.createCoreData)(this,C,f);if((0,o.default)("DraggableCore: handleDrag: %j",p),this.props.onDrag(E,p)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const k=document.createEvent("MouseEvents");k.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(k)}return}this.lastX=C,this.lastY=f}),h(this,"handleDragStop",E=>{if(!this.dragging)return;const _=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(_==null)return;let{x:C,y:f}=_;if(Array.isArray(this.props.grid)){let k=C-this.lastX||0,O=f-this.lastY||0;[k,O]=(0,a.snapToGrid)(this.props.grid,k,O),C=this.lastX+k,f=this.lastY+O}const p=(0,a.createCoreData)(this,C,f);if(this.props.onStop(E,p)===!1||this.mounted===!1)return!1;const x=this.findDOMNode();x&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(x.ownerDocument),(0,o.default)("DraggableCore: handleDragStop: %j",p),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,x&&((0,o.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(x.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(x.ownerDocument,y.stop,this.handleDragStop))}),h(this,"onMouseDown",E=>(y=b.mouse,this.handleDragStart(E))),h(this,"onMouseUp",E=>(y=b.mouse,this.handleDragStop(E))),h(this,"onTouchStart",E=>(y=b.touch,this.handleDragStart(E))),h(this,"onTouchEnd",E=>(y=b.touch,this.handleDragStop(E)))}componentDidMount(){this.mounted=!0;const E=this.findDOMNode();E&&(0,n.addEvent)(E,b.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const E=this.findDOMNode();if(E){const{ownerDocument:_}=E;(0,n.removeEvent)(_,b.mouse.move,this.handleDrag),(0,n.removeEvent)(_,b.touch.move,this.handleDrag),(0,n.removeEvent)(_,b.mouse.stop,this.handleDragStop),(0,n.removeEvent)(_,b.touch.stop,this.handleDragStop),(0,n.removeEvent)(E,b.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(_)}}findDOMNode(){var E,_;return(E=this.props)!==null&&E!==void 0&&E.nodeRef?(_=this.props)===null||_===void 0||(_=_.nodeRef)===null||_===void 0?void 0:_.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return xd.default=w,h(w,"displayName","DraggableCore"),h(w,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(S,E){if(S[E]&&S[E].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),h(w,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),xd}var iE;function vW(){return iE||(iE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=g(A),r=h(Yf()),n=h(lo),a=h(pW),i=gw(),o=zR(),s=sm(),u=h(gW()),l=h(BR());function h(_){return _&&_.__esModule?_:{default:_}}function d(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,f=new WeakMap;return(d=function(p){return p?f:C})(_)}function g(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var f=d(C);if(f&&f.has(_))return f.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,f&&f.set(_,p),p}function b(){return b=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var f=arguments[C];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])}return _},b.apply(this,arguments)}function y(_,C,f){return C=w(C),C in _?Object.defineProperty(_,C,{value:f,enumerable:!0,configurable:!0,writable:!0}):_[C]=f,_}function w(_){var C=S(_,"string");return typeof C=="symbol"?C:String(C)}function S(_,C){if(typeof _!="object"||_===null)return _;var f=_[Symbol.toPrimitive];if(f!==void 0){var p=f.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}class E extends t.Component{static getDerivedStateFromProps(C,f){let{position:p}=C,{prevPropsPosition:v}=f;return p&&(!v||p.x!==v.x||p.y!==v.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:p,prevPropsPosition:v}),{x:p.x,y:p.y,prevPropsPosition:{...p}}):null}constructor(C){super(C),y(this,"onDragStart",(f,p)=>{if((0,l.default)("Draggable: onDragStart: %j",p),this.props.onStart(f,(0,o.createDraggableData)(this,p))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(f,p)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",p);const v=(0,o.createDraggableData)(this,p),x={x:v.x,y:v.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:$}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[D,V]=(0,o.getBoundPosition)(this,x.x,x.y);x.x=D,x.y=V,x.slackX=this.state.slackX+(O-x.x),x.slackY=this.state.slackY+($-x.y),v.x=x.x,v.y=x.y,v.deltaX=x.x-this.state.x,v.deltaY=x.y-this.state.y}if(this.props.onDrag(f,v)===!1)return!1;this.setState(x)}),y(this,"onDragStop",(f,p)=>{if(!this.state.dragging||this.props.onStop(f,(0,o.createDraggableData)(this,p))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",p);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:$}=this.props.position;x.x=O,x.y=$}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,f;return(C=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&C!==void 0?C:n.default.findDOMNode(this)}render(){const{axis:C,bounds:f,children:p,defaultPosition:v,defaultClassName:x,defaultClassNameDragging:k,defaultClassNameDragged:O,position:$,positionOffset:D,scale:V,...I}=this.props;let M={},F=null;const N=!!!$||this.state.dragging,j=$||v,H={x:(0,o.canDragX)(this)&&N?this.state.x:j.x,y:(0,o.canDragY)(this)&&N?this.state.y:j.y};this.state.isElementSVG?F=(0,i.createSVGTransform)(H,D):M=(0,i.createCSSTransform)(H,D);const B=(0,a.default)(p.props.className||"",x,{[k]:this.state.dragging,[O]:this.state.dragged});return t.createElement(u.default,b({},I,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(p),{className:B,style:{...p.props.style,...M},transform:F}))}}e.default=E,y(E,"displayName","Draggable"),y(E,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),y(E,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(S1)),S1}var oE;function vw(){if(oE)return wd.exports;oE=1;const{default:e,DraggableCore:t}=vW();return wd.exports=e,wd.exports.default=e,wd.exports.DraggableCore=t,wd.exports}var bW=vw();const yW=$n(bW),{confirm:_W}=ae.Modal;function HR(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e;return{...e,title:z.jsx("div",{title:_e.isString(t)?t:"",children:t}),content:z.jsx("div",{title:_e.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":nf.notBtnIcon} ${nf.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:z.jsx(Dt,{type:"uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:z.jsx(Dt,{type:"pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:z.jsx(Dt,{type:"pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const $u=e=>{const[t,r]=A.useState(null),[n,a]=A.useState(!0),[i,o]=A.useState({left:0,right:0,top:0,bottom:0}),s=A.useRef(),u=!!e.styleUnify;qf(()=>{const h=document.getElementById("qprogressElement");if(h&&!t){const d=new oW({minimum:.02,height:4,parentNode:h});r(d)}}),am(()=>{t&&(t.finish(),r(null))}),A.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const l=(h,d)=>{var w;const{clientWidth:g,clientHeight:b}=window.document.documentElement,y=(w=s.current)==null?void 0:w.getBoundingClientRect();y&&o({left:-y.left+d.x,right:g-(y.right-d.x),top:-y.top+d.y,bottom:b-(y.bottom-d.y)})};return z.jsxs(ae.Modal,{destroyOnClose:!0,okText:e.okText||J("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend")||document.body,title:z.jsx("div",{style:{width:"100%",display:"flex",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:h=>z.jsx(yW,{disabled:n,bounds:i,onStart:(d,g)=>l(d,g),children:z.jsx("div",{ref:s,children:h})}),..._e.omit(e,"visible"),wrapClassName:`modalClassName ${nf.wrapClassName} ${e.wrapClassName??""}`,className:`${u?nf.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[z.jsx("div",{className:nf.qprogress,id:"qprogressElement"}),z.jsx("div",{onDoubleClick:h=>h.stopPropagation(),children:e.children})]})},wW="_main_104mn_1",xW={main:wW};var k1={},$1={},Sd={exports:{}},lu={exports:{}},SW=lu.exports,sE;function CW(){return sE||(sE=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?lu.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(lu.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(lu.exports=function(){return Date.now()-r},r=Date.now()):(lu.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(SW)),lu.exports}var uE;function EW(){if(uE)return Sd.exports;uE=1;for(var e=CW(),t=typeof window>"u"?Ni:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],o=0;!a&&o<r.length;o++)a=t[r[o]+"Request"+n],i=t[r[o]+"Cancel"+n]||t[r[o]+"CancelRequest"+n];if(!a||!i){var s=0,u=0,l=[],h=1e3/60;a=function(d){if(l.length===0){var g=e(),b=Math.max(0,h-(g-s));s=b+g,setTimeout(function(){var y=l.slice(0);l.length=0;for(var w=0;w<y.length;w++)if(!y[w].cancelled)try{y[w].callback(s)}catch(S){setTimeout(function(){throw S},0)}},Math.round(b))}return l.push({handle:++u,callback:d,cancelled:!1}),u},i=function(d){for(var g=0;g<l.length;g++)l[g].handle===d&&(l[g].cancelled=!0)}}return Sd.exports=function(d){return a.call(t,d)},Sd.exports.cancel=function(){i.apply(t,arguments)},Sd.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=a,d.cancelAnimationFrame=i},Sd.exports}var Cd={exports:{}},A1,lE;function OW(){if(lE)return A1;lE=1;var e=null,t=["Webkit","Moz","O","ms"];return A1=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),o=t.length;o>=0;o--){var s=t[o]+i;if(s in a)return s}return!1},A1}var D1,cE;function RW(){if(cE)return D1;cE=1,D1=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(u){return e.test(u)?u.toLowerCase():t.test(u)?(i(u)||u).toLowerCase():r.test(u)?s(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(l,h){return h?" "+h:""})}var o=/(.)([A-Z]+)/g;function s(u){return u.replace(o,function(l,h,d){return h+" "+d.toLowerCase().split("").join(" ")})}return D1}var N1,dE;function TW(){if(dE)return N1;dE=1;var e=RW();N1=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return N1}var M1,fE;function PW(){if(fE)return M1;fE=1;var e=TW();M1=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return M1}var I1,hE;function kW(){if(hE)return I1;hE=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return I1=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},I1}var pE;function VR(){if(pE)return Cd.exports;pE=1;var e=OW(),t=PW(),r={float:"cssFloat"},n=kW();function a(u,l,h){var d=r[l];if(typeof d>"u"&&(d=o(l)),d){if(h===void 0)return u.style[d];u.style[d]=n(d,h)}}function i(u,l){for(var h in l)l.hasOwnProperty(h)&&a(u,h,l[h])}function o(u){var l=t(u),h=e(l);return r[l]=r[u]=r[h]=h,h}function s(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return Cd.exports=s,Cd.exports.set=s,Cd.exports.get=function(u,l){return Array.isArray(l)?l.reduce(function(h,d){return h[d]=a(u,d||""),h},{}):a(u,l||"")},Cd.exports}var F1={},mE;function $W(){return mE||(mE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(F1)),F1}var j1={},gE;function AW(){return gE||(gE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=VR(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var o=document.createElement("div");(0,r.default)(o,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(o),a=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}else a=0;return a||0}}(j1)),j1}var L1={},vE;function DW(){return vE||(vE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(L1)),L1}var z1={},bE;function NW(){return bE||(bE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,o=a.paddingRight;return n-parseFloat(i)-parseFloat(o)}}(z1)),z1}var B1={},yE;function MW(){return yE||(yE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,o=a.paddingBottom;return n-parseFloat(i)-parseFloat(o)}}(B1)),B1}var _a={},_E;function IW(){return _E||(_E=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},_a.containerStyleAutoHeight={height:"auto"},_a.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},_a.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},_a.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},_a.trackHorizontalStyleDefault={position:"absolute",height:6},_a.trackVerticalStyleDefault={position:"absolute",width:6},_a.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},_a.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},_a.disableSelectStyle={userSelect:"none"},_a.disableSelectStyleReset={userSelect:""}),_a}var ws={},wE;function FW(){if(wE)return ws;wE=1,Object.defineProperty(ws,"__esModule",{value:!0});var e=Object.assign||function(h){for(var d=1;d<arguments.length;d++){var g=arguments[d];for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(h[b]=g[b])}return h};ws.renderViewDefault=i,ws.renderTrackHorizontalDefault=o,ws.renderTrackVerticalDefault=s,ws.renderThumbHorizontalDefault=u,ws.renderThumbVerticalDefault=l;var t=A,r=n(t);function n(h){return h&&h.__esModule?h:{default:h}}function a(h,d){var g={};for(var b in h)d.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(h,b)&&(g[b]=h[b]);return g}function i(h){return r.default.createElement("div",h)}function o(h){var d=h.style,g=a(h,["style"]),b=e({},d,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:b},g))}function s(h){var d=h.style,g=a(h,["style"]),b=e({},d,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:b},g))}function u(h){var d=h.style,g=a(h,["style"]),b=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:b},g))}function l(h){var d=h.style,g=a(h,["style"]),b=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:b},g))}return ws}var xE;function jW(){return xE||(xE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(V){for(var I=1;I<arguments.length;I++){var M=arguments[I];for(var F in M)Object.prototype.hasOwnProperty.call(M,F)&&(V[F]=M[F])}return V},r=function(){function V(I,M){for(var F=0;F<M.length;F++){var T=M[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(I,T.key,T)}}return function(I,M,F){return M&&V(I.prototype,M),F&&V(I,F),I}}(),n=EW(),a=v(n),i=VR(),o=v(i),s=A,u=Yf(),l=v(u),h=$W(),d=v(h),g=AW(),b=v(g),y=DW(),w=v(y),S=NW(),E=v(S),_=MW(),C=v(_),f=IW(),p=FW();function v(V){return V&&V.__esModule?V:{default:V}}function x(V,I){var M={};for(var F in V)I.indexOf(F)>=0||Object.prototype.hasOwnProperty.call(V,F)&&(M[F]=V[F]);return M}function k(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}function O(V,I){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:V}function $(V,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);V.prototype=Object.create(I&&I.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(V,I):V.__proto__=I)}var D=function(V){$(I,V);function I(M){var F;k(this,I);for(var T=arguments.length,N=Array(T>1?T-1:0),j=1;j<T;j++)N[j-1]=arguments[j];var H=O(this,(F=I.__proto__||Object.getPrototypeOf(I)).call.apply(F,[this,M].concat(N)));return H.getScrollLeft=H.getScrollLeft.bind(H),H.getScrollTop=H.getScrollTop.bind(H),H.getScrollWidth=H.getScrollWidth.bind(H),H.getScrollHeight=H.getScrollHeight.bind(H),H.getClientWidth=H.getClientWidth.bind(H),H.getClientHeight=H.getClientHeight.bind(H),H.getValues=H.getValues.bind(H),H.getThumbHorizontalWidth=H.getThumbHorizontalWidth.bind(H),H.getThumbVerticalHeight=H.getThumbVerticalHeight.bind(H),H.getScrollLeftForOffset=H.getScrollLeftForOffset.bind(H),H.getScrollTopForOffset=H.getScrollTopForOffset.bind(H),H.scrollLeft=H.scrollLeft.bind(H),H.scrollTop=H.scrollTop.bind(H),H.scrollToLeft=H.scrollToLeft.bind(H),H.scrollToTop=H.scrollToTop.bind(H),H.scrollToRight=H.scrollToRight.bind(H),H.scrollToBottom=H.scrollToBottom.bind(H),H.handleTrackMouseEnter=H.handleTrackMouseEnter.bind(H),H.handleTrackMouseLeave=H.handleTrackMouseLeave.bind(H),H.handleHorizontalTrackMouseDown=H.handleHorizontalTrackMouseDown.bind(H),H.handleVerticalTrackMouseDown=H.handleVerticalTrackMouseDown.bind(H),H.handleHorizontalThumbMouseDown=H.handleHorizontalThumbMouseDown.bind(H),H.handleVerticalThumbMouseDown=H.handleVerticalThumbMouseDown.bind(H),H.handleWindowResize=H.handleWindowResize.bind(H),H.handleScroll=H.handleScroll.bind(H),H.handleDrag=H.handleDrag.bind(H),H.handleDragEnd=H.handleDragEnd.bind(H),H.state={didMountUniversal:!1},H}return r(I,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var F=this.props.universal;F&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var F=this.view||{},T=F.scrollLeft,N=T===void 0?0:T,j=F.scrollTop,H=j===void 0?0:j,B=F.scrollWidth,U=B===void 0?0:B,G=F.scrollHeight,X=G===void 0?0:G,K=F.clientWidth,ne=K===void 0?0:K,ie=F.clientHeight,oe=ie===void 0?0:ie;return{left:N/(U-ne)||0,top:H/(X-oe)||0,scrollLeft:N,scrollTop:H,scrollWidth:U,scrollHeight:X,clientWidth:ne,clientHeight:oe}}},{key:"getThumbHorizontalWidth",value:function(){var F=this.props,T=F.thumbSize,N=F.thumbMinSize,j=this.view,H=j.scrollWidth,B=j.clientWidth,U=(0,E.default)(this.trackHorizontal),G=Math.ceil(B/H*U);return U===G?0:T||Math.max(G,N)}},{key:"getThumbVerticalHeight",value:function(){var F=this.props,T=F.thumbSize,N=F.thumbMinSize,j=this.view,H=j.scrollHeight,B=j.clientHeight,U=(0,C.default)(this.trackVertical),G=Math.ceil(B/H*U);return U===G?0:T||Math.max(G,N)}},{key:"getScrollLeftForOffset",value:function(F){var T=this.view,N=T.scrollWidth,j=T.clientWidth,H=(0,E.default)(this.trackHorizontal),B=this.getThumbHorizontalWidth();return F/(H-B)*(N-j)}},{key:"getScrollTopForOffset",value:function(F){var T=this.view,N=T.scrollHeight,j=T.clientHeight,H=(0,C.default)(this.trackVertical),B=this.getThumbVerticalHeight();return F/(H-B)*(N-j)}},{key:"scrollLeft",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=F)}},{key:"scrollTop",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=F)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var F=this.view,T=this.trackHorizontal,N=this.trackVertical,j=this.thumbHorizontal,H=this.thumbVertical;F.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(T.addEventListener("mouseenter",this.handleTrackMouseEnter),T.addEventListener("mouseleave",this.handleTrackMouseLeave),T.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),N.addEventListener("mouseenter",this.handleTrackMouseEnter),N.addEventListener("mouseleave",this.handleTrackMouseLeave),N.addEventListener("mousedown",this.handleVerticalTrackMouseDown),j.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),H.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var F=this.view,T=this.trackHorizontal,N=this.trackVertical,j=this.thumbHorizontal,H=this.thumbVertical;F.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(T.removeEventListener("mouseenter",this.handleTrackMouseEnter),T.removeEventListener("mouseleave",this.handleTrackMouseLeave),T.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),N.removeEventListener("mouseenter",this.handleTrackMouseEnter),N.removeEventListener("mouseleave",this.handleTrackMouseLeave),N.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),j.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),H.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(F){var T=this,N=this.props,j=N.onScroll,H=N.onScrollFrame;j&&j(F),this.update(function(B){var U=B.scrollLeft,G=B.scrollTop;T.viewScrollLeft=U,T.viewScrollTop=G,H&&H(B)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var F=this.props.onScrollStart;F&&F(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleScrollStop",value:function(){var F=this.props.onScrollStop;F&&F(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(F){F.preventDefault();var T=F.target,N=F.clientX,j=T.getBoundingClientRect(),H=j.left,B=this.getThumbHorizontalWidth(),U=Math.abs(H-N)-B/2;this.view.scrollLeft=this.getScrollLeftForOffset(U)}},{key:"handleVerticalTrackMouseDown",value:function(F){F.preventDefault();var T=F.target,N=F.clientY,j=T.getBoundingClientRect(),H=j.top,B=this.getThumbVerticalHeight(),U=Math.abs(H-N)-B/2;this.view.scrollTop=this.getScrollTopForOffset(U)}},{key:"handleHorizontalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var T=F.target,N=F.clientX,j=T.offsetWidth,H=T.getBoundingClientRect(),B=H.left;this.prevPageX=j-(N-B)}},{key:"handleVerticalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var T=F.target,N=F.clientY,j=T.offsetHeight,H=T.getBoundingClientRect(),B=H.top;this.prevPageY=j-(N-B)}},{key:"setupDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=w.default}},{key:"teardownDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(F){this.dragging=!0,F.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(F){if(this.prevPageX){var T=F.clientX,N=this.trackHorizontal.getBoundingClientRect(),j=N.left,H=this.getThumbHorizontalWidth(),B=H-this.prevPageX,U=-j+T-B;this.view.scrollLeft=this.getScrollLeftForOffset(U)}if(this.prevPageY){var G=F.clientY,X=this.trackVertical.getBoundingClientRect(),K=X.top,ne=this.getThumbVerticalHeight(),ie=ne-this.prevPageY,oe=-K+G-ie;this.view.scrollTop=this.getScrollTopForOffset(oe)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,o.default)(this.trackHorizontal,{opacity:1}),(0,o.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var F=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var T=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,o.default)(F.trackHorizontal,{opacity:0}),(0,o.default)(F.trackVertical,{opacity:0})},T)}}},{key:"detectScrolling",value:function(){var F=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){F.lastViewScrollLeft===F.viewScrollLeft&&F.lastViewScrollTop===F.viewScrollTop&&(clearInterval(F.detectScrollingInterval),F.scrolling=!1,F.handleScrollStop()),F.lastViewScrollLeft=F.viewScrollLeft,F.lastViewScrollTop=F.viewScrollTop},100))}},{key:"raf",value:function(F){var T=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){T.requestFrame=void 0,F()})}},{key:"update",value:function(F){var T=this;this.raf(function(){return T._update(F)})}},{key:"_update",value:function(F){var T=this.props,N=T.onUpdate,j=T.hideTracksWhenNotNeeded,H=this.getValues();if((0,b.default)()){var B=H.scrollLeft,U=H.clientWidth,G=H.scrollWidth,X=(0,E.default)(this.trackHorizontal),K=this.getThumbHorizontalWidth(),ne=B/(G-U)*(X-K),ie={width:K,transform:"translateX("+ne+"px)"},oe=H.scrollTop,de=H.clientHeight,pe=H.scrollHeight,be=(0,C.default)(this.trackVertical),me=this.getThumbVerticalHeight(),ee=oe/(pe-de)*(be-me),ve={height:me,transform:"translateY("+ee+"px)"};if(j){var ue={visibility:G>U?"visible":"hidden"},fe={visibility:pe>de?"visible":"hidden"};(0,o.default)(this.trackHorizontal,ue),(0,o.default)(this.trackVertical,fe)}(0,o.default)(this.thumbHorizontal,ie),(0,o.default)(this.thumbVertical,ve)}N&&N(H),typeof F=="function"&&F(H)}},{key:"render",value:function(){var F=this,T=(0,b.default)(),N=this.props;N.onScroll,N.onScrollFrame,N.onScrollStart,N.onScrollStop,N.onUpdate;var j=N.renderView,H=N.renderTrackHorizontal,B=N.renderTrackVertical,U=N.renderThumbHorizontal,G=N.renderThumbVertical,X=N.tagName;N.hideTracksWhenNotNeeded;var K=N.autoHide;N.autoHideTimeout;var ne=N.autoHideDuration;N.thumbSize,N.thumbMinSize;var ie=N.universal,oe=N.autoHeight,de=N.autoHeightMin,pe=N.autoHeightMax,be=N.style,me=N.children,ee=x(N,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ve=this.state.didMountUniversal,ue=t({},f.containerStyleDefault,oe&&t({},f.containerStyleAutoHeight,{minHeight:de,maxHeight:pe}),be),fe=t({},f.viewStyleDefault,{marginRight:T?-T:0,marginBottom:T?-T:0},oe&&t({},f.viewStyleAutoHeight,{minHeight:(0,d.default)(de)?"calc("+de+" + "+T+"px)":de+T,maxHeight:(0,d.default)(pe)?"calc("+pe+" + "+T+"px)":pe+T}),oe&&ie&&!ve&&{minHeight:de,maxHeight:pe},ie&&!ve&&f.viewStyleUniversalInitial),he={transition:"opacity "+ne+"ms",opacity:0},ke=t({},f.trackHorizontalStyleDefault,K&&he,(!T||ie&&!ve)&&{display:"none"}),Te=t({},f.trackVerticalStyleDefault,K&&he,(!T||ie&&!ve)&&{display:"none"});return(0,s.createElement)(X,t({},ee,{style:ue,ref:function($e){F.container=$e}}),[(0,s.cloneElement)(j({style:fe}),{key:"view",ref:function($e){F.view=$e}},me),(0,s.cloneElement)(H({style:ke}),{key:"trackHorizontal",ref:function($e){F.trackHorizontal=$e}},(0,s.cloneElement)(U({style:f.thumbHorizontalStyleDefault}),{ref:function($e){F.thumbHorizontal=$e}})),(0,s.cloneElement)(B({style:Te}),{key:"trackVertical",ref:function($e){F.trackVertical=$e}},(0,s.cloneElement)(G({style:f.thumbVerticalStyleDefault}),{ref:function($e){F.thumbVertical=$e}}))])}}]),I}(s.Component);e.default=D,D.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},D.defaultProps={renderView:p.renderViewDefault,renderTrackHorizontal:p.renderTrackHorizontalDefault,renderTrackVertical:p.renderTrackVerticalDefault,renderThumbHorizontal:p.renderThumbHorizontalDefault,renderThumbVertical:p.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}($1)),$1}var SE;function LW(){return SE||(SE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=jW(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(k1)),k1}var zW=LW();const BW=e=>z.jsx(zW.Scrollbars,{autoHide:!0,style:{..._e.merge({overflow:"auto",height:"100%"},e.style)},...e,className:ge(xW.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return z.jsx("div",{style:{...t,...n},...r})},children:e.children}),v0={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},HW=e=>z.jsx("div",{className:v0["error-box"],children:z.jsxs("div",{className:v0["err-box-list"],children:[z.jsx("div",{children:z.jsx(Dt,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:v0["err-color"]})}),z.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||J("sys.error.loading",{placeholder:"加载错误"})}),z.jsx("div",{style:{marginTop:"30px"},children:z.jsx("div",{className:v0["custom-button"],onClick:()=>{location.reload()},children:J("sys.action.refresh",{placeholder:"刷新"})})})]})}),VW="_main_ka982_1",UW={main:VW},qW=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let o=await e.request(i.request.url,i.request.options);ae.message.success(o.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=z.jsx(ae.Menu,{..._e.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?z.jsx(ae.Popconfirm,{disabled:e.disabled,okText:J("sys.action.confirm",{placeholder:"确认"}),cancelText:J("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:z.jsx(ae.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):z.jsx(ae.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return z.jsx(ae.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:ge(UW.main),overlay:r,..._e.omit(e,["menu"])})},Gf=({valueType:e="12",...t})=>{const r=Sa({defaultValue1:"",defaultValue2:""});return xH(()=>{t.onBlur&&t.onBlur()},()=>document.getElementById("use-click-away-button")),A.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),z.jsx("div",{id:"use-click-away-button",children:z.jsxs(ae.Space.Compact,{style:{width:"100%"},children:[e=="12"&&z.jsx(ae.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,o;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((o=n.target)==null?void 0:o.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&z.jsx(ae.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),z.jsx(ae.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},WW=e=>{const[t,r]=A.useState(!1);bH(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=s=>new Promise((u,l)=>{const h=document.createElement("script");h.src=`${s}`,h.onload=u,h.onerror=l,document.head.appendChild(h)});await(async()=>{for(const s of a)await i(s)})(),n()},[]);const n=()=>{function a(i){const o=new XMLHttpRequest;o.open("GET",i,!0),o.onerror=()=>{},o.responseType="blob",o.onload=()=>{if(o.status===200){var s=new File([o.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(s,function(u){u.sheets==null||u.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:u.sheets,title:u.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",l=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},o.send()}a(e.url)};return z.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},YW={},UR=A.forwardRef((e,t)=>{const[r]=ae.Form.useForm();return A.useImperativeHandle(t,()=>({...r})),z.jsx("div",{className:ge(YW.main,e.className),style:e.style,children:z.jsx(ae.Form,{form:r,layout:"vertical",...e,children:e.children})})}),GW="_main_1rp4h_1",KW={main:GW};class Ul{static getAttributesMapId(t,r){return Ul.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:Ul.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var Cs=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(Cs||{});class Is{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return Is.isProjectStartChange(t)||Is.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
323
+ `,x.getElementsByTagName("head")[0].appendChild(k)),x.body&&p(x.body,"react-draggable-transparent-selection")}function f(x){if(x)try{if(x.body&&v(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const k=(x.defaultView||window).getSelection();k&&k.type!=="Caret"&&k.removeAllRanges()}}catch{}}function p(x,k){x.classList?x.classList.add(k):x.className.match(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)")))||(x.className+=" ".concat(k))}function v(x,k){x.classList?x.classList.remove(k):x.className=x.className.replace(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)"),"g"),"")}return ln}var Ji={},rE;function zR(){if(rE)return Ji;rE=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.canDragX=a,Ji.canDragY=i,Ji.createCoreData=s,Ji.createDraggableData=u,Ji.getBoundPosition=r,Ji.getControlPosition=o,Ji.snapToGrid=n;var e=sm(),t=gw();function r(d,g,b){if(!d.props.bounds)return[g,b];let{bounds:y}=d.props;y=typeof y=="string"?y:l(y);const w=h(d);if(typeof y=="string"){const{ownerDocument:S}=w,E=S.defaultView;let _;if(y==="parent"?_=w.parentNode:_=S.querySelector(y),!(_ instanceof E.HTMLElement))throw new Error('Bounds selector "'+y+'" could not find an element.');const C=_,f=E.getComputedStyle(w),p=E.getComputedStyle(C);y={left:-w.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(f.marginLeft),top:-w.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(f.marginTop),right:(0,t.innerWidth)(C)-(0,t.outerWidth)(w)-w.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(f.marginRight),bottom:(0,t.innerHeight)(C)-(0,t.outerHeight)(w)-w.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(f.marginBottom)}}return(0,e.isNum)(y.right)&&(g=Math.min(g,y.right)),(0,e.isNum)(y.bottom)&&(b=Math.min(b,y.bottom)),(0,e.isNum)(y.left)&&(g=Math.max(g,y.left)),(0,e.isNum)(y.top)&&(b=Math.max(b,y.top)),[g,b]}function n(d,g,b){const y=Math.round(g/d[0])*d[0],w=Math.round(b/d[1])*d[1];return[y,w]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function o(d,g,b){const y=typeof g=="number"?(0,t.getTouch)(d,g):null;if(typeof g=="number"&&!y)return null;const w=h(b),S=b.props.offsetParent||w.offsetParent||w.ownerDocument.body;return(0,t.offsetXYFromParent)(y||d,S,b.props.scale)}function s(d,g,b){const y=!(0,e.isNum)(d.lastX),w=h(d);return y?{node:w,deltaX:0,deltaY:0,lastX:g,lastY:b,x:g,y:b}:{node:w,deltaX:g-d.lastX,deltaY:b-d.lastY,lastX:d.lastX,lastY:d.lastY,x:g,y:b}}function u(d,g){const b=d.props.scale;return{node:g.node,x:d.state.x+g.deltaX/b,y:d.state.y+g.deltaY/b,deltaX:g.deltaX/b,deltaY:g.deltaY/b,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function h(d){const g=d.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return Ji}var xd={},g0={},nE;function BR(){if(nE)return g0;nE=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.default=e;function e(){}return g0}var aE;function gW(){if(aE)return xd;aE=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.default=void 0;var e=l(A),t=s(Yf()),r=s(lo),n=gw(),a=zR(),i=sm(),o=s(BR());function s(S){return S&&S.__esModule?S:{default:S}}function u(S){if(typeof WeakMap!="function")return null;var E=new WeakMap,_=new WeakMap;return(u=function(C){return C?_:E})(S)}function l(S,E){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var _=u(E);if(_&&_.has(S))return _.get(S);var C={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in S)if(p!=="default"&&Object.prototype.hasOwnProperty.call(S,p)){var v=f?Object.getOwnPropertyDescriptor(S,p):null;v&&(v.get||v.set)?Object.defineProperty(C,p,v):C[p]=S[p]}return C.default=S,_&&_.set(S,C),C}function h(S,E,_){return E=d(E),E in S?Object.defineProperty(S,E,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[E]=_,S}function d(S){var E=g(S,"string");return typeof E=="symbol"?E:String(E)}function g(S,E){if(typeof S!="object"||S===null)return S;var _=S[Symbol.toPrimitive];if(_!==void 0){var C=_.call(S,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(S)}const b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=b.mouse,w=class extends e.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",E=>{if(this.props.onMouseDown(E),!this.props.allowAnyClick&&typeof E.button=="number"&&E.button!==0)return!1;const _=this.findDOMNode();if(!_||!_.ownerDocument||!_.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:C}=_;if(this.props.disabled||!(E.target instanceof C.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(E.target,this.props.handle,_)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(E.target,this.props.cancel,_))return;E.type==="touchstart"&&E.preventDefault();const f=(0,n.getTouchIdentifier)(E);this.touchIdentifier=f;const p=(0,a.getControlPosition)(E,f,this);if(p==null)return;const{x:v,y:x}=p,k=(0,a.createCoreData)(this,v,x);(0,o.default)("DraggableCore: handleDragStart: %j",k),(0,o.default)("calling",this.props.onStart),!(this.props.onStart(E,k)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(C),this.dragging=!0,this.lastX=v,this.lastY=x,(0,n.addEvent)(C,y.move,this.handleDrag),(0,n.addEvent)(C,y.stop,this.handleDragStop))}),h(this,"handleDrag",E=>{const _=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(_==null)return;let{x:C,y:f}=_;if(Array.isArray(this.props.grid)){let x=C-this.lastX,k=f-this.lastY;if([x,k]=(0,a.snapToGrid)(this.props.grid,x,k),!x&&!k)return;C=this.lastX+x,f=this.lastY+k}const p=(0,a.createCoreData)(this,C,f);if((0,o.default)("DraggableCore: handleDrag: %j",p),this.props.onDrag(E,p)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const k=document.createEvent("MouseEvents");k.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(k)}return}this.lastX=C,this.lastY=f}),h(this,"handleDragStop",E=>{if(!this.dragging)return;const _=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(_==null)return;let{x:C,y:f}=_;if(Array.isArray(this.props.grid)){let k=C-this.lastX||0,O=f-this.lastY||0;[k,O]=(0,a.snapToGrid)(this.props.grid,k,O),C=this.lastX+k,f=this.lastY+O}const p=(0,a.createCoreData)(this,C,f);if(this.props.onStop(E,p)===!1||this.mounted===!1)return!1;const x=this.findDOMNode();x&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(x.ownerDocument),(0,o.default)("DraggableCore: handleDragStop: %j",p),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,x&&((0,o.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(x.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(x.ownerDocument,y.stop,this.handleDragStop))}),h(this,"onMouseDown",E=>(y=b.mouse,this.handleDragStart(E))),h(this,"onMouseUp",E=>(y=b.mouse,this.handleDragStop(E))),h(this,"onTouchStart",E=>(y=b.touch,this.handleDragStart(E))),h(this,"onTouchEnd",E=>(y=b.touch,this.handleDragStop(E)))}componentDidMount(){this.mounted=!0;const E=this.findDOMNode();E&&(0,n.addEvent)(E,b.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const E=this.findDOMNode();if(E){const{ownerDocument:_}=E;(0,n.removeEvent)(_,b.mouse.move,this.handleDrag),(0,n.removeEvent)(_,b.touch.move,this.handleDrag),(0,n.removeEvent)(_,b.mouse.stop,this.handleDragStop),(0,n.removeEvent)(_,b.touch.stop,this.handleDragStop),(0,n.removeEvent)(E,b.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(_)}}findDOMNode(){var E,_;return(E=this.props)!==null&&E!==void 0&&E.nodeRef?(_=this.props)===null||_===void 0||(_=_.nodeRef)===null||_===void 0?void 0:_.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return xd.default=w,h(w,"displayName","DraggableCore"),h(w,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(S,E){if(S[E]&&S[E].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),h(w,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),xd}var iE;function vW(){return iE||(iE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=g(A),r=h(Yf()),n=h(lo),a=h(pW),i=gw(),o=zR(),s=sm(),u=h(gW()),l=h(BR());function h(_){return _&&_.__esModule?_:{default:_}}function d(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,f=new WeakMap;return(d=function(p){return p?f:C})(_)}function g(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var f=d(C);if(f&&f.has(_))return f.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,f&&f.set(_,p),p}function b(){return b=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var f=arguments[C];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])}return _},b.apply(this,arguments)}function y(_,C,f){return C=w(C),C in _?Object.defineProperty(_,C,{value:f,enumerable:!0,configurable:!0,writable:!0}):_[C]=f,_}function w(_){var C=S(_,"string");return typeof C=="symbol"?C:String(C)}function S(_,C){if(typeof _!="object"||_===null)return _;var f=_[Symbol.toPrimitive];if(f!==void 0){var p=f.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}class E extends t.Component{static getDerivedStateFromProps(C,f){let{position:p}=C,{prevPropsPosition:v}=f;return p&&(!v||p.x!==v.x||p.y!==v.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:p,prevPropsPosition:v}),{x:p.x,y:p.y,prevPropsPosition:{...p}}):null}constructor(C){super(C),y(this,"onDragStart",(f,p)=>{if((0,l.default)("Draggable: onDragStart: %j",p),this.props.onStart(f,(0,o.createDraggableData)(this,p))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(f,p)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",p);const v=(0,o.createDraggableData)(this,p),x={x:v.x,y:v.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:$}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[D,V]=(0,o.getBoundPosition)(this,x.x,x.y);x.x=D,x.y=V,x.slackX=this.state.slackX+(O-x.x),x.slackY=this.state.slackY+($-x.y),v.x=x.x,v.y=x.y,v.deltaX=x.x-this.state.x,v.deltaY=x.y-this.state.y}if(this.props.onDrag(f,v)===!1)return!1;this.setState(x)}),y(this,"onDragStop",(f,p)=>{if(!this.state.dragging||this.props.onStop(f,(0,o.createDraggableData)(this,p))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",p);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:$}=this.props.position;x.x=O,x.y=$}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,f;return(C=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&C!==void 0?C:n.default.findDOMNode(this)}render(){const{axis:C,bounds:f,children:p,defaultPosition:v,defaultClassName:x,defaultClassNameDragging:k,defaultClassNameDragged:O,position:$,positionOffset:D,scale:V,...I}=this.props;let M={},F=null;const N=!!!$||this.state.dragging,j=$||v,H={x:(0,o.canDragX)(this)&&N?this.state.x:j.x,y:(0,o.canDragY)(this)&&N?this.state.y:j.y};this.state.isElementSVG?F=(0,i.createSVGTransform)(H,D):M=(0,i.createCSSTransform)(H,D);const B=(0,a.default)(p.props.className||"",x,{[k]:this.state.dragging,[O]:this.state.dragged});return t.createElement(u.default,b({},I,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(p),{className:B,style:{...p.props.style,...M},transform:F}))}}e.default=E,y(E,"displayName","Draggable"),y(E,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),y(E,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(S1)),S1}var oE;function vw(){if(oE)return wd.exports;oE=1;const{default:e,DraggableCore:t}=vW();return wd.exports=e,wd.exports.default=e,wd.exports.DraggableCore=t,wd.exports}var bW=vw();const yW=$n(bW),{confirm:_W}=ae.Modal;function HR(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e;return{...e,title:z.jsx("div",{title:_e.isString(t)?t:"",children:t}),content:z.jsx("div",{title:_e.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":nf.notBtnIcon} ${nf.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:z.jsx(Dt,{type:"uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:z.jsx(Dt,{type:"pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:z.jsx(Dt,{type:"pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const $u=e=>{const[t,r]=A.useState(null),[n,a]=A.useState(!0),[i,o]=A.useState({left:0,right:0,top:0,bottom:0}),s=A.useRef(),u=!!e.styleUnify;qf(()=>{const h=document.getElementById("qprogressElement");if(h&&!t){const d=new oW({minimum:.02,height:4,parentNode:h});r(d)}}),am(()=>{t&&(t.finish(),r(null))}),A.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const l=(h,d)=>{var w;const{clientWidth:g,clientHeight:b}=window.document.documentElement,y=(w=s.current)==null?void 0:w.getBoundingClientRect();y&&o({left:-y.left+d.x,right:g-(y.right-d.x),top:-y.top+d.y,bottom:b-(y.bottom-d.y)})};return z.jsxs(ae.Modal,{destroyOnClose:!0,okText:e.okText||J("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend")||document.body,title:z.jsx("div",{style:{width:"100%",display:"flex",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:h=>z.jsx(yW,{disabled:n,bounds:i,onStart:(d,g)=>l(d,g),children:z.jsx("div",{ref:s,children:h})}),..._e.omit(e,"visible"),wrapClassName:`modalClassName ${nf.wrapClassName} ${e.wrapClassName??""}`,className:`${u?nf.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[z.jsx("div",{className:nf.qprogress,id:"qprogressElement"}),z.jsx("div",{onDoubleClick:h=>h.stopPropagation(),children:e.children})]})},wW="_main_104mn_1",xW={main:wW};var k1={},$1={},Sd={exports:{}},lu={exports:{}},SW=lu.exports,sE;function CW(){return sE||(sE=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?lu.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(lu.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(lu.exports=function(){return Date.now()-r},r=Date.now()):(lu.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(SW)),lu.exports}var uE;function EW(){if(uE)return Sd.exports;uE=1;for(var e=CW(),t=typeof window>"u"?Ni:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],o=0;!a&&o<r.length;o++)a=t[r[o]+"Request"+n],i=t[r[o]+"Cancel"+n]||t[r[o]+"CancelRequest"+n];if(!a||!i){var s=0,u=0,l=[],h=1e3/60;a=function(d){if(l.length===0){var g=e(),b=Math.max(0,h-(g-s));s=b+g,setTimeout(function(){var y=l.slice(0);l.length=0;for(var w=0;w<y.length;w++)if(!y[w].cancelled)try{y[w].callback(s)}catch(S){setTimeout(function(){throw S},0)}},Math.round(b))}return l.push({handle:++u,callback:d,cancelled:!1}),u},i=function(d){for(var g=0;g<l.length;g++)l[g].handle===d&&(l[g].cancelled=!0)}}return Sd.exports=function(d){return a.call(t,d)},Sd.exports.cancel=function(){i.apply(t,arguments)},Sd.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=a,d.cancelAnimationFrame=i},Sd.exports}var Cd={exports:{}},A1,lE;function OW(){if(lE)return A1;lE=1;var e=null,t=["Webkit","Moz","O","ms"];return A1=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),o=t.length;o>=0;o--){var s=t[o]+i;if(s in a)return s}return!1},A1}var D1,cE;function RW(){if(cE)return D1;cE=1,D1=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(u){return e.test(u)?u.toLowerCase():t.test(u)?(i(u)||u).toLowerCase():r.test(u)?s(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(l,h){return h?" "+h:""})}var o=/(.)([A-Z]+)/g;function s(u){return u.replace(o,function(l,h,d){return h+" "+d.toLowerCase().split("").join(" ")})}return D1}var N1,dE;function TW(){if(dE)return N1;dE=1;var e=RW();N1=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return N1}var M1,fE;function PW(){if(fE)return M1;fE=1;var e=TW();M1=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return M1}var I1,hE;function kW(){if(hE)return I1;hE=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return I1=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},I1}var pE;function VR(){if(pE)return Cd.exports;pE=1;var e=OW(),t=PW(),r={float:"cssFloat"},n=kW();function a(u,l,h){var d=r[l];if(typeof d>"u"&&(d=o(l)),d){if(h===void 0)return u.style[d];u.style[d]=n(d,h)}}function i(u,l){for(var h in l)l.hasOwnProperty(h)&&a(u,h,l[h])}function o(u){var l=t(u),h=e(l);return r[l]=r[u]=r[h]=h,h}function s(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return Cd.exports=s,Cd.exports.set=s,Cd.exports.get=function(u,l){return Array.isArray(l)?l.reduce(function(h,d){return h[d]=a(u,d||""),h},{}):a(u,l||"")},Cd.exports}var F1={},mE;function $W(){return mE||(mE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(F1)),F1}var j1={},gE;function AW(){return gE||(gE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=VR(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var o=document.createElement("div");(0,r.default)(o,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(o),a=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}else a=0;return a||0}}(j1)),j1}var L1={},vE;function DW(){return vE||(vE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(L1)),L1}var z1={},bE;function NW(){return bE||(bE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,o=a.paddingRight;return n-parseFloat(i)-parseFloat(o)}}(z1)),z1}var B1={},yE;function MW(){return yE||(yE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,o=a.paddingBottom;return n-parseFloat(i)-parseFloat(o)}}(B1)),B1}var _a={},_E;function IW(){return _E||(_E=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},_a.containerStyleAutoHeight={height:"auto"},_a.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},_a.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},_a.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},_a.trackHorizontalStyleDefault={position:"absolute",height:6},_a.trackVerticalStyleDefault={position:"absolute",width:6},_a.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},_a.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},_a.disableSelectStyle={userSelect:"none"},_a.disableSelectStyleReset={userSelect:""}),_a}var ws={},wE;function FW(){if(wE)return ws;wE=1,Object.defineProperty(ws,"__esModule",{value:!0});var e=Object.assign||function(h){for(var d=1;d<arguments.length;d++){var g=arguments[d];for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(h[b]=g[b])}return h};ws.renderViewDefault=i,ws.renderTrackHorizontalDefault=o,ws.renderTrackVerticalDefault=s,ws.renderThumbHorizontalDefault=u,ws.renderThumbVerticalDefault=l;var t=A,r=n(t);function n(h){return h&&h.__esModule?h:{default:h}}function a(h,d){var g={};for(var b in h)d.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(h,b)&&(g[b]=h[b]);return g}function i(h){return r.default.createElement("div",h)}function o(h){var d=h.style,g=a(h,["style"]),b=e({},d,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:b},g))}function s(h){var d=h.style,g=a(h,["style"]),b=e({},d,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:b},g))}function u(h){var d=h.style,g=a(h,["style"]),b=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:b},g))}function l(h){var d=h.style,g=a(h,["style"]),b=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:b},g))}return ws}var xE;function jW(){return xE||(xE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(V){for(var I=1;I<arguments.length;I++){var M=arguments[I];for(var F in M)Object.prototype.hasOwnProperty.call(M,F)&&(V[F]=M[F])}return V},r=function(){function V(I,M){for(var F=0;F<M.length;F++){var T=M[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(I,T.key,T)}}return function(I,M,F){return M&&V(I.prototype,M),F&&V(I,F),I}}(),n=EW(),a=v(n),i=VR(),o=v(i),s=A,u=Yf(),l=v(u),h=$W(),d=v(h),g=AW(),b=v(g),y=DW(),w=v(y),S=NW(),E=v(S),_=MW(),C=v(_),f=IW(),p=FW();function v(V){return V&&V.__esModule?V:{default:V}}function x(V,I){var M={};for(var F in V)I.indexOf(F)>=0||Object.prototype.hasOwnProperty.call(V,F)&&(M[F]=V[F]);return M}function k(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}function O(V,I){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:V}function $(V,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);V.prototype=Object.create(I&&I.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(V,I):V.__proto__=I)}var D=function(V){$(I,V);function I(M){var F;k(this,I);for(var T=arguments.length,N=Array(T>1?T-1:0),j=1;j<T;j++)N[j-1]=arguments[j];var H=O(this,(F=I.__proto__||Object.getPrototypeOf(I)).call.apply(F,[this,M].concat(N)));return H.getScrollLeft=H.getScrollLeft.bind(H),H.getScrollTop=H.getScrollTop.bind(H),H.getScrollWidth=H.getScrollWidth.bind(H),H.getScrollHeight=H.getScrollHeight.bind(H),H.getClientWidth=H.getClientWidth.bind(H),H.getClientHeight=H.getClientHeight.bind(H),H.getValues=H.getValues.bind(H),H.getThumbHorizontalWidth=H.getThumbHorizontalWidth.bind(H),H.getThumbVerticalHeight=H.getThumbVerticalHeight.bind(H),H.getScrollLeftForOffset=H.getScrollLeftForOffset.bind(H),H.getScrollTopForOffset=H.getScrollTopForOffset.bind(H),H.scrollLeft=H.scrollLeft.bind(H),H.scrollTop=H.scrollTop.bind(H),H.scrollToLeft=H.scrollToLeft.bind(H),H.scrollToTop=H.scrollToTop.bind(H),H.scrollToRight=H.scrollToRight.bind(H),H.scrollToBottom=H.scrollToBottom.bind(H),H.handleTrackMouseEnter=H.handleTrackMouseEnter.bind(H),H.handleTrackMouseLeave=H.handleTrackMouseLeave.bind(H),H.handleHorizontalTrackMouseDown=H.handleHorizontalTrackMouseDown.bind(H),H.handleVerticalTrackMouseDown=H.handleVerticalTrackMouseDown.bind(H),H.handleHorizontalThumbMouseDown=H.handleHorizontalThumbMouseDown.bind(H),H.handleVerticalThumbMouseDown=H.handleVerticalThumbMouseDown.bind(H),H.handleWindowResize=H.handleWindowResize.bind(H),H.handleScroll=H.handleScroll.bind(H),H.handleDrag=H.handleDrag.bind(H),H.handleDragEnd=H.handleDragEnd.bind(H),H.state={didMountUniversal:!1},H}return r(I,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var F=this.props.universal;F&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var F=this.view||{},T=F.scrollLeft,N=T===void 0?0:T,j=F.scrollTop,H=j===void 0?0:j,B=F.scrollWidth,U=B===void 0?0:B,G=F.scrollHeight,X=G===void 0?0:G,K=F.clientWidth,ne=K===void 0?0:K,ie=F.clientHeight,oe=ie===void 0?0:ie;return{left:N/(U-ne)||0,top:H/(X-oe)||0,scrollLeft:N,scrollTop:H,scrollWidth:U,scrollHeight:X,clientWidth:ne,clientHeight:oe}}},{key:"getThumbHorizontalWidth",value:function(){var F=this.props,T=F.thumbSize,N=F.thumbMinSize,j=this.view,H=j.scrollWidth,B=j.clientWidth,U=(0,E.default)(this.trackHorizontal),G=Math.ceil(B/H*U);return U===G?0:T||Math.max(G,N)}},{key:"getThumbVerticalHeight",value:function(){var F=this.props,T=F.thumbSize,N=F.thumbMinSize,j=this.view,H=j.scrollHeight,B=j.clientHeight,U=(0,C.default)(this.trackVertical),G=Math.ceil(B/H*U);return U===G?0:T||Math.max(G,N)}},{key:"getScrollLeftForOffset",value:function(F){var T=this.view,N=T.scrollWidth,j=T.clientWidth,H=(0,E.default)(this.trackHorizontal),B=this.getThumbHorizontalWidth();return F/(H-B)*(N-j)}},{key:"getScrollTopForOffset",value:function(F){var T=this.view,N=T.scrollHeight,j=T.clientHeight,H=(0,C.default)(this.trackVertical),B=this.getThumbVerticalHeight();return F/(H-B)*(N-j)}},{key:"scrollLeft",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=F)}},{key:"scrollTop",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=F)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var F=this.view,T=this.trackHorizontal,N=this.trackVertical,j=this.thumbHorizontal,H=this.thumbVertical;F.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(T.addEventListener("mouseenter",this.handleTrackMouseEnter),T.addEventListener("mouseleave",this.handleTrackMouseLeave),T.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),N.addEventListener("mouseenter",this.handleTrackMouseEnter),N.addEventListener("mouseleave",this.handleTrackMouseLeave),N.addEventListener("mousedown",this.handleVerticalTrackMouseDown),j.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),H.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var F=this.view,T=this.trackHorizontal,N=this.trackVertical,j=this.thumbHorizontal,H=this.thumbVertical;F.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(T.removeEventListener("mouseenter",this.handleTrackMouseEnter),T.removeEventListener("mouseleave",this.handleTrackMouseLeave),T.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),N.removeEventListener("mouseenter",this.handleTrackMouseEnter),N.removeEventListener("mouseleave",this.handleTrackMouseLeave),N.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),j.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),H.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(F){var T=this,N=this.props,j=N.onScroll,H=N.onScrollFrame;j&&j(F),this.update(function(B){var U=B.scrollLeft,G=B.scrollTop;T.viewScrollLeft=U,T.viewScrollTop=G,H&&H(B)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var F=this.props.onScrollStart;F&&F(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleScrollStop",value:function(){var F=this.props.onScrollStop;F&&F(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(F){F.preventDefault();var T=F.target,N=F.clientX,j=T.getBoundingClientRect(),H=j.left,B=this.getThumbHorizontalWidth(),U=Math.abs(H-N)-B/2;this.view.scrollLeft=this.getScrollLeftForOffset(U)}},{key:"handleVerticalTrackMouseDown",value:function(F){F.preventDefault();var T=F.target,N=F.clientY,j=T.getBoundingClientRect(),H=j.top,B=this.getThumbVerticalHeight(),U=Math.abs(H-N)-B/2;this.view.scrollTop=this.getScrollTopForOffset(U)}},{key:"handleHorizontalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var T=F.target,N=F.clientX,j=T.offsetWidth,H=T.getBoundingClientRect(),B=H.left;this.prevPageX=j-(N-B)}},{key:"handleVerticalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var T=F.target,N=F.clientY,j=T.offsetHeight,H=T.getBoundingClientRect(),B=H.top;this.prevPageY=j-(N-B)}},{key:"setupDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=w.default}},{key:"teardownDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(F){this.dragging=!0,F.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(F){if(this.prevPageX){var T=F.clientX,N=this.trackHorizontal.getBoundingClientRect(),j=N.left,H=this.getThumbHorizontalWidth(),B=H-this.prevPageX,U=-j+T-B;this.view.scrollLeft=this.getScrollLeftForOffset(U)}if(this.prevPageY){var G=F.clientY,X=this.trackVertical.getBoundingClientRect(),K=X.top,ne=this.getThumbVerticalHeight(),ie=ne-this.prevPageY,oe=-K+G-ie;this.view.scrollTop=this.getScrollTopForOffset(oe)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,o.default)(this.trackHorizontal,{opacity:1}),(0,o.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var F=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var T=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,o.default)(F.trackHorizontal,{opacity:0}),(0,o.default)(F.trackVertical,{opacity:0})},T)}}},{key:"detectScrolling",value:function(){var F=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){F.lastViewScrollLeft===F.viewScrollLeft&&F.lastViewScrollTop===F.viewScrollTop&&(clearInterval(F.detectScrollingInterval),F.scrolling=!1,F.handleScrollStop()),F.lastViewScrollLeft=F.viewScrollLeft,F.lastViewScrollTop=F.viewScrollTop},100))}},{key:"raf",value:function(F){var T=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){T.requestFrame=void 0,F()})}},{key:"update",value:function(F){var T=this;this.raf(function(){return T._update(F)})}},{key:"_update",value:function(F){var T=this.props,N=T.onUpdate,j=T.hideTracksWhenNotNeeded,H=this.getValues();if((0,b.default)()){var B=H.scrollLeft,U=H.clientWidth,G=H.scrollWidth,X=(0,E.default)(this.trackHorizontal),K=this.getThumbHorizontalWidth(),ne=B/(G-U)*(X-K),ie={width:K,transform:"translateX("+ne+"px)"},oe=H.scrollTop,de=H.clientHeight,pe=H.scrollHeight,be=(0,C.default)(this.trackVertical),me=this.getThumbVerticalHeight(),ee=oe/(pe-de)*(be-me),ve={height:me,transform:"translateY("+ee+"px)"};if(j){var ue={visibility:G>U?"visible":"hidden"},fe={visibility:pe>de?"visible":"hidden"};(0,o.default)(this.trackHorizontal,ue),(0,o.default)(this.trackVertical,fe)}(0,o.default)(this.thumbHorizontal,ie),(0,o.default)(this.thumbVertical,ve)}N&&N(H),typeof F=="function"&&F(H)}},{key:"render",value:function(){var F=this,T=(0,b.default)(),N=this.props;N.onScroll,N.onScrollFrame,N.onScrollStart,N.onScrollStop,N.onUpdate;var j=N.renderView,H=N.renderTrackHorizontal,B=N.renderTrackVertical,U=N.renderThumbHorizontal,G=N.renderThumbVertical,X=N.tagName;N.hideTracksWhenNotNeeded;var K=N.autoHide;N.autoHideTimeout;var ne=N.autoHideDuration;N.thumbSize,N.thumbMinSize;var ie=N.universal,oe=N.autoHeight,de=N.autoHeightMin,pe=N.autoHeightMax,be=N.style,me=N.children,ee=x(N,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ve=this.state.didMountUniversal,ue=t({},f.containerStyleDefault,oe&&t({},f.containerStyleAutoHeight,{minHeight:de,maxHeight:pe}),be),fe=t({},f.viewStyleDefault,{marginRight:T?-T:0,marginBottom:T?-T:0},oe&&t({},f.viewStyleAutoHeight,{minHeight:(0,d.default)(de)?"calc("+de+" + "+T+"px)":de+T,maxHeight:(0,d.default)(pe)?"calc("+pe+" + "+T+"px)":pe+T}),oe&&ie&&!ve&&{minHeight:de,maxHeight:pe},ie&&!ve&&f.viewStyleUniversalInitial),he={transition:"opacity "+ne+"ms",opacity:0},ke=t({},f.trackHorizontalStyleDefault,K&&he,(!T||ie&&!ve)&&{display:"none"}),Te=t({},f.trackVerticalStyleDefault,K&&he,(!T||ie&&!ve)&&{display:"none"});return(0,s.createElement)(X,t({},ee,{style:ue,ref:function($e){F.container=$e}}),[(0,s.cloneElement)(j({style:fe}),{key:"view",ref:function($e){F.view=$e}},me),(0,s.cloneElement)(H({style:ke}),{key:"trackHorizontal",ref:function($e){F.trackHorizontal=$e}},(0,s.cloneElement)(U({style:f.thumbHorizontalStyleDefault}),{ref:function($e){F.thumbHorizontal=$e}})),(0,s.cloneElement)(B({style:Te}),{key:"trackVertical",ref:function($e){F.trackVertical=$e}},(0,s.cloneElement)(G({style:f.thumbVerticalStyleDefault}),{ref:function($e){F.thumbVertical=$e}}))])}}]),I}(s.Component);e.default=D,D.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},D.defaultProps={renderView:p.renderViewDefault,renderTrackHorizontal:p.renderTrackHorizontalDefault,renderTrackVertical:p.renderTrackVerticalDefault,renderThumbHorizontal:p.renderThumbHorizontalDefault,renderThumbVertical:p.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}($1)),$1}var SE;function LW(){return SE||(SE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=jW(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}(k1)),k1}var zW=LW();const BW=e=>z.jsx(zW.Scrollbars,{autoHide:!0,style:{..._e.merge({overflow:"auto",height:"100%"},e.style)},...e,className:ge(xW.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return z.jsx("div",{style:{...t,...n},...r})},children:e.children}),v0={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},HW=e=>z.jsx("div",{className:v0["error-box"],children:z.jsxs("div",{className:v0["err-box-list"],children:[z.jsx("div",{children:z.jsx(Dt,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:v0["err-color"]})}),z.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||J("sys.error.loading",{placeholder:"加载错误"})}),z.jsx("div",{style:{marginTop:"30px"},children:z.jsx("div",{className:v0["custom-button"],onClick:()=>{location.reload()},children:J("sys.action.refresh",{placeholder:"刷新"})})})]})}),VW="_main_ka982_1",UW={main:VW},qW=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let o=await e.request(i.request.url,i.request.options);ae.message.success(o.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=z.jsx(ae.Menu,{..._e.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?z.jsx(ae.Popconfirm,{disabled:e.disabled,okText:J("sys.action.confirm",{placeholder:"确认"}),cancelText:J("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:z.jsx(ae.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):z.jsx(ae.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return z.jsx(ae.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:ge(UW.main),overlay:r,..._e.omit(e,["menu"])})},Gf=({valueType:e="12",...t})=>{const r=Sa({defaultValue1:"",defaultValue2:""});return _H(()=>{t.onBlur&&t.onBlur()},()=>document.getElementById("use-click-away-button")),A.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),z.jsx("div",{id:"use-click-away-button",children:z.jsxs(ae.Space.Compact,{style:{width:"100%"},children:[e=="12"&&z.jsx(ae.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,o;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((o=n.target)==null?void 0:o.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&z.jsx(ae.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),z.jsx(ae.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},WW=e=>{const[t,r]=A.useState(!1);gH(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=s=>new Promise((u,l)=>{const h=document.createElement("script");h.src=`${s}`,h.onload=u,h.onerror=l,document.head.appendChild(h)});await(async()=>{for(const s of a)await i(s)})(),n()},[]);const n=()=>{function a(i){const o=new XMLHttpRequest;o.open("GET",i,!0),o.onerror=()=>{},o.responseType="blob",o.onload=()=>{if(o.status===200){var s=new File([o.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(s,function(u){u.sheets==null||u.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:u.sheets,title:u.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",l=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},o.send()}a(e.url)};return z.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},YW={},UR=A.forwardRef((e,t)=>{const[r]=ae.Form.useForm();return A.useImperativeHandle(t,()=>({...r})),z.jsx("div",{className:ge(YW.main,e.className),style:e.style,children:z.jsx(ae.Form,{form:r,layout:"vertical",...e,children:e.children})})}),GW="_main_1rp4h_1",KW={main:GW};class Ul{static getAttributesMapId(t,r){return Ul.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:Ul.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var Cs=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(Cs||{});class Is{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return Is.isProjectStartChange(t)||Is.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
324
324
  //! version : 2.30.1
325
325
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
326
326
  //! license : MIT
@@ -329,7 +329,7 @@ var qR;function Le(){return qR.apply(null,arguments)}function XW(e){qR=e}functio
329
329
  [`+i+"] ";for(o in arguments[0])hr(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}YR(e+`
330
330
  Arguments: `+Array.prototype.slice.call(n).join("")+`
331
331
  `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var EE={};function GR(e,t){Le.deprecationHandler!=null&&Le.deprecationHandler(e,t),EE[e]||(YR(t),EE[e]=!0)}Le.suppressDeprecationWarnings=!1;Le.deprecationHandler=null;function vo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function JW(e){var t,r;for(r in e)hr(e,r)&&(t=e[r],vo(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ty(e,t){var r=$s({},e),n;for(n in t)hr(t,n)&&(Su(e[n])&&Su(t[n])?(r[n]={},$s(r[n],e[n]),$s(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)hr(e,n)&&!hr(t,n)&&Su(e[n])&&(r[n]=$s({},r[n]));return r}function ww(e){e!=null&&this.set(e)}var Py;Object.keys?Py=Object.keys:Py=function(e){var t,r=[];for(t in e)hr(e,t)&&r.push(t);return r};var QW={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function eY(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return vo(n)?n.call(t,r):n}function fo(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var xw=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,b0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V1={},Dl={};function Et(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(Dl[e]=a),t&&(Dl[t[0]]=function(){return fo(a.apply(this,arguments),t[1],t[2])}),r&&(Dl[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function tY(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function rY(e){var t=e.match(xw),r,n;for(r=0,n=t.length;r<n;r++)Dl[t[r]]?t[r]=Dl[t[r]]:t[r]=tY(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=vo(t[o])?t[o].call(a,e):t[o];return i}}function np(e,t){return e.isValid()?(t=KR(t,e.localeData()),V1[t]=V1[t]||rY(t),V1[t](e)):e.localeData().invalidDate()}function KR(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(b0.lastIndex=0;r>=0&&b0.test(e);)e=e.replace(b0,n),b0.lastIndex=0,r-=1;return e}var nY={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function aY(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(xw).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var iY="Invalid date";function oY(){return this._invalidDate}var sY="%d",uY=/\d{1,2}/;function lY(e){return this._ordinal.replace("%d",e)}var cY={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function dY(e,t,r,n){var a=this._relativeTime[r];return vo(a)?a(e,t,r,n):a.replace(/%d/i,e)}function fY(e,t){var r=this._relativeTime[e>0?"future":"past"];return vo(r)?r(t):r.replace(/%s/i,t)}var OE={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function vi(e){return typeof e=="string"?OE[e]||OE[e.toLowerCase()]:void 0}function Sw(e){var t={},r,n;for(n in e)hr(e,n)&&(r=vi(n),r&&(t[r]=e[n]));return t}var hY={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pY(e){var t=[],r;for(r in e)hr(e,r)&&t.push({unit:r,priority:hY[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var XR=/\d/,Ka=/\d\d/,ZR=/\d{3}/,Cw=/\d{4}/,lm=/[+-]?\d{6}/,Vr=/\d\d?/,JR=/\d\d\d\d?/,QR=/\d\d\d\d\d\d?/,cm=/\d{1,3}/,Ew=/\d{1,4}/,dm=/[+-]?\d{1,6}/,ic=/\d+/,fm=/[+-]?\d+/,mY=/Z|[+-]\d\d:?\d\d/gi,hm=/Z|[+-]\d\d(?::?\d\d)?/gi,gY=/[+-]?\d+(\.\d{1,3})?/,Zf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oc=/^[1-9]\d?/,Ow=/^([1-9]\d|\d)/,Op;Op={};function st(e,t,r){Op[e]=vo(t)?t:function(n,a){return n&&r?r:t}}function vY(e,t){return hr(Op,e)?Op[e](t._strict,t._locale):new RegExp(bY(e))}function bY(e){return ns(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function ns(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ci(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=ci(t)),r}var ky={};function Mr(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),is(t)&&(n=function(i,o){o[t]=nr(i)}),a=e.length,r=0;r<a;r++)ky[e[r]]=n}function Jf(e,t){Mr(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function yY(e,t,r){t!=null&&hr(ky,e)&&ky[e](t,r._a,r,e)}function pm(e){return e%4===0&&e%100!==0||e%400===0}var ea=0,Qo=1,no=2,yn=3,Mi=4,es=5,yu=6,_Y=7,wY=8;Et("Y",0,0,function(){var e=this.year();return e<=9999?fo(e,4):"+"+e});Et(0,["YY",2],0,function(){return this.year()%100});Et(0,["YYYY",4],0,"year");Et(0,["YYYYY",5],0,"year");Et(0,["YYYYYY",6,!0],0,"year");st("Y",fm);st("YY",Vr,Ka);st("YYYY",Ew,Cw);st("YYYYY",dm,lm);st("YYYYYY",dm,lm);Mr(["YYYYY","YYYYYY"],ea);Mr("YYYY",function(e,t){t[ea]=e.length===2?Le.parseTwoDigitYear(e):nr(e)});Mr("YY",function(e,t){t[ea]=Le.parseTwoDigitYear(e)});Mr("Y",function(e,t){t[ea]=parseInt(e,10)});function af(e){return pm(e)?366:365}Le.parseTwoDigitYear=function(e){return nr(e)+(nr(e)>68?1900:2e3)};var eT=sc("FullYear",!0);function xY(){return pm(this.year())}function sc(e,t){return function(r){return r!=null?(tT(this,e,r),Le.updateOffset(this,t),this):xf(this,e)}}function xf(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function tT(e,t,r){var n,a,i,o,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=e.month(),s=e.date(),s=s===29&&o===1&&!pm(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function SY(e){return e=vi(e),vo(this[e])?this[e]():this}function CY(e,t){if(typeof e=="object"){e=Sw(e);var r=pY(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=vi(e),vo(this[e]))return this[e](t);return this}function EY(e,t){return(e%t+t)%t}var dn;Array.prototype.indexOf?dn=Array.prototype.indexOf:dn=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Rw(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=EY(t,12);return e+=(t-r)/12,r===1?pm(e)?29:28:31-r%7%2}Et("M",["MM",2],"Mo",function(){return this.month()+1});Et("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Et("MMMM",0,0,function(e){return this.localeData().months(this,e)});st("M",Vr,oc);st("MM",Vr,Ka);st("MMM",function(e,t){return t.monthsShortRegex(e)});st("MMMM",function(e,t){return t.monthsRegex(e)});Mr(["M","MM"],function(e,t){t[Qo]=nr(e)-1});Mr(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Qo]=a:Gt(r).invalidMonth=e});var OY="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rT="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,RY=Zf,TY=Zf;function PY(e,t){return e?Hi(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nT).test(t)?"format":"standalone"][e.month()]:Hi(this._months)?this._months:this._months.standalone}function kY(e,t){return e?Hi(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nT.test(t)?"format":"standalone"][e.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function $Y(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=go([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=dn.call(this._shortMonthsParse,o),a!==-1?a:null):(a=dn.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=dn.call(this._shortMonthsParse,o),a!==-1?a:(a=dn.call(this._longMonthsParse,o),a!==-1?a:null)):(a=dn.call(this._longMonthsParse,o),a!==-1?a:(a=dn.call(this._shortMonthsParse,o),a!==-1?a:null))}function AY(e,t,r){var n,a,i;if(this._monthsParseExact)return $Y.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=go([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function aT(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nr(t);else if(t=e.localeData().monthsParse(t),!is(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Rw(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function iT(e){return e!=null?(aT(this,e),Le.updateOffset(this,!0),this):xf(this,"Month")}function DY(){return Rw(this.year(),this.month())}function NY(e){return this._monthsParseExact?(hr(this,"_monthsRegex")||oT.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hr(this,"_monthsShortRegex")||(this._monthsShortRegex=RY),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function MY(e){return this._monthsParseExact?(hr(this,"_monthsRegex")||oT.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hr(this,"_monthsRegex")||(this._monthsRegex=TY),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function oT(){function e(u,l){return l.length-u.length}var t=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=go([2e3,a]),o=ns(this.monthsShort(i,"")),s=ns(this.months(i,"")),t.push(o),r.push(s),n.push(s),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function IY(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function Sf(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Rp(e,t,r){var n=7+t-r,a=(7+Sf(e,0,n).getUTCDay()-t)%7;return-a+n-1}function sT(e,t,r,n,a){var i=(7+r-n)%7,o=Rp(e,n,a),s=1+7*(t-1)+i+o,u,l;return s<=0?(u=e-1,l=af(u)+s):s>af(e)?(u=e+1,l=s-af(e)):(u=e,l=s),{year:u,dayOfYear:l}}function Cf(e,t,r){var n=Rp(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+as(o,t,r)):a>as(e.year(),t,r)?(i=a-as(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function as(e,t,r){var n=Rp(e,t,r),a=Rp(e+1,t,r);return(af(e)-n+a)/7}Et("w",["ww",2],"wo","week");Et("W",["WW",2],"Wo","isoWeek");st("w",Vr,oc);st("ww",Vr,Ka);st("W",Vr,oc);st("WW",Vr,Ka);Jf(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=nr(e)});function FY(e){return Cf(e,this._week.dow,this._week.doy).week}var jY={dow:0,doy:6};function LY(){return this._week.dow}function zY(){return this._week.doy}function BY(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function HY(e){var t=Cf(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Et("d",0,"do","day");Et("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Et("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Et("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Et("e",0,0,"weekday");Et("E",0,0,"isoWeekday");st("d",Vr);st("e",Vr);st("E",Vr);st("dd",function(e,t){return t.weekdaysMinRegex(e)});st("ddd",function(e,t){return t.weekdaysShortRegex(e)});st("dddd",function(e,t){return t.weekdaysRegex(e)});Jf(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Gt(r).invalidWeekday=e});Jf(["d","e","E"],function(e,t,r,n){t[n]=nr(e)});function VY(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function UY(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Tw(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qY="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),uT="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),WY="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),YY=Zf,GY=Zf,KY=Zf;function XY(e,t){var r=Hi(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Tw(r,this._week.dow):e?r[e.day()]:r}function ZY(e){return e===!0?Tw(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function JY(e){return e===!0?Tw(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function QY(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=go([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=dn.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=dn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=dn.call(this._weekdaysParse,o),a!==-1||(a=dn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=dn.call(this._shortWeekdaysParse,o),a!==-1||(a=dn.call(this._weekdaysParse,o),a!==-1)?a:(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=dn.call(this._minWeekdaysParse,o),a!==-1||(a=dn.call(this._weekdaysParse,o),a!==-1)?a:(a=dn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function eG(e,t,r){var n,a,i;if(this._weekdaysParseExact)return QY.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=go([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function tG(e){if(!this.isValid())return e!=null?this:NaN;var t=xf(this,"Day");return e!=null?(e=VY(e,this.localeData()),this.add(e-t,"d")):t}function rG(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function nG(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=UY(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function aG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||Pw.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hr(this,"_weekdaysRegex")||(this._weekdaysRegex=YY),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function iG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||Pw.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=GY),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function oG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||Pw.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=KY),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Pw(){function e(h,d){return d.length-h.length}var t=[],r=[],n=[],a=[],i,o,s,u,l;for(i=0;i<7;i++)o=go([2e3,1]).day(i),s=ns(this.weekdaysMin(o,"")),u=ns(this.weekdaysShort(o,"")),l=ns(this.weekdays(o,"")),t.push(s),r.push(u),n.push(l),a.push(s),a.push(u),a.push(l);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function kw(){return this.hours()%12||12}function sG(){return this.hours()||24}Et("H",["HH",2],0,"hour");Et("h",["hh",2],0,kw);Et("k",["kk",2],0,sG);Et("hmm",0,0,function(){return""+kw.apply(this)+fo(this.minutes(),2)});Et("hmmss",0,0,function(){return""+kw.apply(this)+fo(this.minutes(),2)+fo(this.seconds(),2)});Et("Hmm",0,0,function(){return""+this.hours()+fo(this.minutes(),2)});Et("Hmmss",0,0,function(){return""+this.hours()+fo(this.minutes(),2)+fo(this.seconds(),2)});function lT(e,t){Et(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}lT("a",!0);lT("A",!1);function cT(e,t){return t._meridiemParse}st("a",cT);st("A",cT);st("H",Vr,Ow);st("h",Vr,oc);st("k",Vr,oc);st("HH",Vr,Ka);st("hh",Vr,Ka);st("kk",Vr,Ka);st("hmm",JR);st("hmmss",QR);st("Hmm",JR);st("Hmmss",QR);Mr(["H","HH"],yn);Mr(["k","kk"],function(e,t,r){var n=nr(e);t[yn]=n===24?0:n});Mr(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Mr(["h","hh"],function(e,t,r){t[yn]=nr(e),Gt(r).bigHour=!0});Mr("hmm",function(e,t,r){var n=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n)),Gt(r).bigHour=!0});Mr("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n,2)),t[es]=nr(e.substr(a)),Gt(r).bigHour=!0});Mr("Hmm",function(e,t,r){var n=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n))});Mr("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yn]=nr(e.substr(0,n)),t[Mi]=nr(e.substr(n,2)),t[es]=nr(e.substr(a))});function uG(e){return(e+"").toLowerCase().charAt(0)==="p"}var lG=/[ap]\.?m?\.?/i,cG=sc("Hours",!0);function dG(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var dT={calendar:QW,longDateFormat:nY,invalidDate:iY,ordinal:sY,dayOfMonthOrdinalParse:uY,relativeTime:cY,months:OY,monthsShort:rT,week:jY,weekdays:qY,weekdaysMin:WY,weekdaysShort:uT,meridiemParse:lG},Wr={},Ed={},Ef;function fG(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function RE(e){return e&&e.toLowerCase().replace("_","-")}function hG(e){for(var t=0,r,n,a,i;t<e.length;){for(i=RE(e[t]).split("-"),r=i.length,n=RE(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=mm(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&fG(i,n)>=r-1)break;r--}t++}return Ef}function pG(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mm(e){var t=null,r;if(Wr[e]===void 0&&typeof module<"u"&&module&&module.exports&&pG(e))try{t=Ef._abbr,r=require,r("./locale/"+e),Fs(t)}catch{Wr[e]=null}return Wr[e]}function Fs(e,t){var r;return e&&(xa(t)?r=os(e):r=$w(e,t),r?Ef=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ef._abbr}function $w(e,t){if(t!==null){var r,n=dT;if(t.abbr=e,Wr[e]!=null)GR("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Wr[e]._config;else if(t.parentLocale!=null)if(Wr[t.parentLocale]!=null)n=Wr[t.parentLocale]._config;else if(r=mm(t.parentLocale),r!=null)n=r._config;else return Ed[t.parentLocale]||(Ed[t.parentLocale]=[]),Ed[t.parentLocale].push({name:e,config:t}),null;return Wr[e]=new ww(Ty(n,t)),Ed[e]&&Ed[e].forEach(function(a){$w(a.name,a.config)}),Fs(e),Wr[e]}else return delete Wr[e],null}function mG(e,t){if(t!=null){var r,n,a=dT;Wr[e]!=null&&Wr[e].parentLocale!=null?Wr[e].set(Ty(Wr[e]._config,t)):(n=mm(e),n!=null&&(a=n._config),t=Ty(a,t),n==null&&(t.abbr=e),r=new ww(t),r.parentLocale=Wr[e],Wr[e]=r),Fs(e)}else Wr[e]!=null&&(Wr[e].parentLocale!=null?(Wr[e]=Wr[e].parentLocale,e===Fs()&&Fs(e)):Wr[e]!=null&&delete Wr[e]);return Wr[e]}function os(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ef;if(!Hi(e)){if(t=mm(e),t)return t;e=[e]}return hG(e)}function gG(){return Py(Wr)}function Aw(e){var t,r=e._a;return r&&Gt(e).overflow===-2&&(t=r[Qo]<0||r[Qo]>11?Qo:r[no]<1||r[no]>Rw(r[ea],r[Qo])?no:r[yn]<0||r[yn]>24||r[yn]===24&&(r[Mi]!==0||r[es]!==0||r[yu]!==0)?yn:r[Mi]<0||r[Mi]>59?Mi:r[es]<0||r[es]>59?es:r[yu]<0||r[yu]>999?yu:-1,Gt(e)._overflowDayOfYear&&(t<ea||t>no)&&(t=no),Gt(e)._overflowWeeks&&t===-1&&(t=_Y),Gt(e)._overflowWeekday&&t===-1&&(t=wY),Gt(e).overflow=t),e}var vG=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bG=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yG=/Z|[+-]\d\d(?::?\d\d)?/,y0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],U1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_G=/^\/?Date\((-?\d+)/i,wG=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xG={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fT(e){var t,r,n=e._i,a=vG.exec(n)||bG.exec(n),i,o,s,u,l=y0.length,h=U1.length;if(a){for(Gt(e).iso=!0,t=0,r=l;t<r;t++)if(y0[t][1].exec(a[1])){o=y0[t][0],i=y0[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=h;t<r;t++)if(U1[t][1].exec(a[3])){s=(a[2]||" ")+U1[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(yG.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(u||""),Nw(e)}else e._isValid=!1}function SG(e,t,r,n,a,i){var o=[CG(e),rT.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function CG(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function EG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function OG(e,t,r){if(e){var n=uT.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Gt(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function RG(e,t,r){if(e)return xG[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function hT(e){var t=wG.exec(EG(e._i)),r;if(t){if(r=SG(t[4],t[3],t[2],t[5],t[6],t[7]),!OG(t[1],r,e))return;e._a=r,e._tzm=RG(t[8],t[9],t[10]),e._d=Sf.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Gt(e).rfc2822=!0}else e._isValid=!1}function TG(e){var t=_G.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(fT(e),e._isValid===!1)delete e._isValid;else return;if(hT(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Le.createFromInputFallback(e)}Le.createFromInputFallback=gi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function vl(e,t,r){return e??t??r}function PG(e){var t=new Date(Le.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Dw(e){var t,r,n=[],a,i,o;if(!e._d){for(a=PG(e),e._w&&e._a[no]==null&&e._a[Qo]==null&&kG(e),e._dayOfYear!=null&&(o=vl(e._a[ea],a[ea]),(e._dayOfYear>af(o)||e._dayOfYear===0)&&(Gt(e)._overflowDayOfYear=!0),r=Sf(o,0,e._dayOfYear),e._a[Qo]=r.getUTCMonth(),e._a[no]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yn]===24&&e._a[Mi]===0&&e._a[es]===0&&e._a[yu]===0&&(e._nextDay=!0,e._a[yn]=0),e._d=(e._useUTC?Sf:IY).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Gt(e).weekdayMismatch=!0)}}function kG(e){var t,r,n,a,i,o,s,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=vl(t.GG,e._a[ea],Cf(Hr(),1,4).year),n=vl(t.W,1),a=vl(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,l=Cf(Hr(),i,o),r=vl(t.gg,e._a[ea],l.year),n=vl(t.w,l.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),n<1||n>as(r,i,o)?Gt(e)._overflowWeeks=!0:u!=null?Gt(e)._overflowWeekday=!0:(s=sT(r,n,a,i,o),e._a[ea]=s.year,e._dayOfYear=s.dayOfYear)}Le.ISO_8601=function(){};Le.RFC_2822=function(){};function Nw(e){if(e._f===Le.ISO_8601){fT(e);return}if(e._f===Le.RFC_2822){hT(e);return}e._a=[],Gt(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,u=0,l,h;for(a=KR(e._f,e._locale).match(xw)||[],h=a.length,r=0;r<h;r++)i=a[r],n=(t.match(vY(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&Gt(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Dl[i]?(n?Gt(e).empty=!1:Gt(e).unusedTokens.push(i),yY(i,n,e)):e._strict&&!n&&Gt(e).unusedTokens.push(i);Gt(e).charsLeftOver=s-u,t.length>0&&Gt(e).unusedInput.push(t),e._a[yn]<=12&&Gt(e).bigHour===!0&&e._a[yn]>0&&(Gt(e).bigHour=void 0),Gt(e).parsedDateParts=e._a.slice(0),Gt(e).meridiem=e._meridiem,e._a[yn]=$G(e._locale,e._a[yn],e._meridiem),l=Gt(e).era,l!==null&&(e._a[ea]=e._locale.erasConvertYear(l,e._a[ea])),Dw(e),Aw(e)}function $G(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function AG(e){var t,r,n,a,i,o,s=!1,u=e._f.length;if(u===0){Gt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,o=!1,t=_w({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Nw(t),yw(t)&&(o=!0),i+=Gt(t).charsLeftOver,i+=Gt(t).unusedTokens.length*10,Gt(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));$s(e,r||t)}function DG(e){if(!e._d){var t=Sw(e._i),r=t.day===void 0?t.date:t.day;e._a=WR([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Dw(e)}}function NG(e){var t=new Xf(Aw(pT(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function pT(e){var t=e._i,r=e._f;return e._locale=e._locale||os(e._l),t===null||r===void 0&&t===""?um({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Vi(t)?new Xf(Aw(t)):(Kf(t)?e._d=t:Hi(r)?AG(e):r?Nw(e):MG(e),yw(e)||(e._d=null),e))}function MG(e){var t=e._i;xa(t)?e._d=new Date(Le.now()):Kf(t)?e._d=new Date(t.valueOf()):typeof t=="string"?TG(e):Hi(t)?(e._a=WR(t.slice(0),function(r){return parseInt(r,10)}),Dw(e)):Su(t)?DG(e):is(t)?e._d=new Date(t):Le.createFromInputFallback(e)}function mT(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Su(e)&&bw(e)||Hi(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,NG(i)}function Hr(e,t,r,n){return mT(e,t,r,n,!1)}var IG=gi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:um()}),FG=gi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:um()});function gT(e,t){var r,n;if(t.length===1&&Hi(t[0])&&(t=t[0]),!t.length)return Hr();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function jG(){var e=[].slice.call(arguments,0);return gT("isBefore",e)}function LG(){var e=[].slice.call(arguments,0);return gT("isAfter",e)}var zG=function(){return Date.now?Date.now():+new Date},Od=["year","quarter","month","week","day","hour","minute","second","millisecond"];function BG(e){var t,r=!1,n,a=Od.length;for(t in e)if(hr(e,t)&&!(dn.call(Od,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[Od[n]]){if(r)return!1;parseFloat(e[Od[n]])!==nr(e[Od[n]])&&(r=!0)}return!0}function HG(){return this._isValid}function VG(){return qi(NaN)}function gm(e){var t=Sw(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=BG(t),this._milliseconds=+h+l*1e3+u*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=os(),this._bubble()}function ap(e){return e instanceof gm}function $y(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function UG(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)nr(e[o])!==nr(t[o])&&i++;return i+a}function vT(e,t){Et(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+fo(~~(r/60),2)+t+fo(~~r%60,2)})}vT("Z",":");vT("ZZ","");st("Z",hm);st("ZZ",hm);Mr(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Mw(hm,e)});var qG=/([\+\-]|\d\d)/gi;function Mw(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(qG)||["-",0,0],i=+(a[1]*60)+nr(a[2]),i===0?0:a[0]==="+"?i:-i)}function Iw(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Vi(e)||Kf(e)?e.valueOf():Hr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),Le.updateOffset(r,!1),r):Hr(e).local()}function Ay(e){return-Math.round(e._d.getTimezoneOffset())}Le.updateOffset=function(){};function WG(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Mw(hm,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=Ay(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?_T(this,qi(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Ay(this)}function YG(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function GG(e){return this.utcOffset(0,e)}function KG(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ay(this),"m")),this}function XG(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mw(mY,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ZG(e){return this.isValid()?(e=e?Hr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function JG(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function QG(){if(!xa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return _w(e,this),e=pT(e),e._a?(t=e._isUTC?go(e._a):Hr(e._a),this._isDSTShifted=this.isValid()&&UG(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function eK(){return this.isValid()?!this._isUTC:!1}function tK(){return this.isValid()?this._isUTC:!1}function bT(){return this.isValid()?this._isUTC&&this._offset===0:!1}var rK=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,nK=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qi(e,t){var r=e,n=null,a,i,o;return ap(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:is(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=rK.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:nr(n[no])*a,h:nr(n[yn])*a,m:nr(n[Mi])*a,s:nr(n[es])*a,ms:nr($y(n[yu]*1e3))*a}):(n=nK.exec(e))?(a=n[1]==="-"?-1:1,r={y:ou(n[2],a),M:ou(n[3],a),w:ou(n[4],a),d:ou(n[5],a),h:ou(n[6],a),m:ou(n[7],a),s:ou(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=aK(Hr(r.from),Hr(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new gm(r),ap(e)&&hr(e,"_locale")&&(i._locale=e._locale),ap(e)&&hr(e,"_isValid")&&(i._isValid=e._isValid),i}qi.fn=gm.prototype;qi.invalid=VG;function ou(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function TE(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function aK(e,t){var r;return e.isValid()&&t.isValid()?(t=Iw(t,e),e.isBefore(t)?r=TE(e,t):(r=TE(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function yT(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(GR(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=qi(r,n),_T(this,a,e),this}}function _T(e,t,r,n){var a=t._milliseconds,i=$y(t._days),o=$y(t._months);e.isValid()&&(n=n??!0,o&&aT(e,xf(e,"Month")+o*r),i&&tT(e,"Date",xf(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Le.updateOffset(e,i||o))}var iK=yT(1,"add"),oK=yT(-1,"subtract");function wT(e){return typeof e=="string"||e instanceof String}function sK(e){return Vi(e)||Kf(e)||wT(e)||is(e)||lK(e)||uK(e)||e===null||e===void 0}function uK(e){var t=Su(e)&&!bw(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||hr(e,i);return t&&r}function lK(e){var t=Hi(e),r=!1;return t&&(r=e.filter(function(n){return!is(n)&&wT(e)}).length===0),t&&r}function cK(e){var t=Su(e)&&!bw(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||hr(e,i);return t&&r}function dK(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function fK(e,t){arguments.length===1&&(arguments[0]?sK(arguments[0])?(e=arguments[0],t=void 0):cK(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Hr(),n=Iw(r,this).startOf("day"),a=Le.calendarFormat(this,n)||"sameElse",i=t&&(vo(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Hr(r)))}function hK(){return new Xf(this)}function pK(e,t){var r=Vi(e)?e:Hr(e);return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function mK(e,t){var r=Vi(e)?e:Hr(e);return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function gK(e,t,r,n){var a=Vi(e)?e:Hr(e),i=Vi(t)?t:Hr(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function vK(e,t){var r=Vi(e)?e:Hr(e),n;return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function bK(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function yK(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function _K(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=Iw(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=vi(t),t){case"year":i=ip(this,n)/12;break;case"month":i=ip(this,n);break;case"quarter":i=ip(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:ci(i)}function ip(e,t){if(e.date()<t.date())return-ip(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}Le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function wK(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function xK(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?np(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):vo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",np(r,"Z")):np(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function SK(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function CK(e){e||(e=this.isUtc()?Le.defaultFormatUtc:Le.defaultFormat);var t=np(this,e);return this.localeData().postformat(t)}function EK(e,t){return this.isValid()&&(Vi(e)&&e.isValid()||Hr(e).isValid())?qi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function OK(e){return this.from(Hr(),e)}function RK(e,t){return this.isValid()&&(Vi(e)&&e.isValid()||Hr(e).isValid())?qi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function TK(e){return this.to(Hr(),e)}function xT(e){var t;return e===void 0?this._locale._abbr:(t=os(e),t!=null&&(this._locale=t),this)}var ST=gi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function CT(){return this._locale}var Tp=1e3,Nl=60*Tp,Pp=60*Nl,ET=(365*400+97)*24*Pp;function Ml(e,t){return(e%t+t)%t}function OT(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-ET:new Date(e,t,r).valueOf()}function RT(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-ET:Date.UTC(e,t,r)}function PK(e){var t,r;if(e=vi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?RT:OT,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ml(t+(this._isUTC?0:this.utcOffset()*Nl),Pp);break;case"minute":t=this._d.valueOf(),t-=Ml(t,Nl);break;case"second":t=this._d.valueOf(),t-=Ml(t,Tp);break}return this._d.setTime(t),Le.updateOffset(this,!0),this}function kK(e){var t,r;if(e=vi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?RT:OT,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pp-Ml(t+(this._isUTC?0:this.utcOffset()*Nl),Pp)-1;break;case"minute":t=this._d.valueOf(),t+=Nl-Ml(t,Nl)-1;break;case"second":t=this._d.valueOf(),t+=Tp-Ml(t,Tp)-1;break}return this._d.setTime(t),Le.updateOffset(this,!0),this}function $K(){return this._d.valueOf()-(this._offset||0)*6e4}function AK(){return Math.floor(this.valueOf()/1e3)}function DK(){return new Date(this.valueOf())}function NK(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function MK(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function IK(){return this.isValid()?this.toISOString():null}function FK(){return yw(this)}function jK(){return $s({},Gt(this))}function LK(){return Gt(this).overflow}function zK(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Et("N",0,0,"eraAbbr");Et("NN",0,0,"eraAbbr");Et("NNN",0,0,"eraAbbr");Et("NNNN",0,0,"eraName");Et("NNNNN",0,0,"eraNarrow");Et("y",["y",1],"yo","eraYear");Et("y",["yy",2],0,"eraYear");Et("y",["yyy",3],0,"eraYear");Et("y",["yyyy",4],0,"eraYear");st("N",Fw);st("NN",Fw);st("NNN",Fw);st("NNNN",ZK);st("NNNNN",JK);Mr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Gt(r).era=a:Gt(r).invalidEra=e});st("y",ic);st("yy",ic);st("yyy",ic);st("yyyy",ic);st("yo",QK);Mr(["y","yy","yyy","yyyy"],ea);Mr(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ea]=r._locale.eraYearOrdinalParse(e,a):t[ea]=parseInt(e,10)});function BK(e,t){var r,n,a,i=this._eras||os("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=Le(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=Le(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function HK(e,t,r){var n,a,i=this.eras(),o,s,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([o,s,u].indexOf(e)>=0)return i[n]}function VK(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Le(e.since).year():Le(e.since).year()+(t-e.offset)*r}function UK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function qK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function WK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function YK(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-Le(a[e].since).year())*r+a[e].offset;return this.year()}function GK(e){return hr(this,"_erasNameRegex")||jw.call(this),e?this._erasNameRegex:this._erasRegex}function KK(e){return hr(this,"_erasAbbrRegex")||jw.call(this),e?this._erasAbbrRegex:this._erasRegex}function XK(e){return hr(this,"_erasNarrowRegex")||jw.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fw(e,t){return t.erasAbbrRegex(e)}function ZK(e,t){return t.erasNameRegex(e)}function JK(e,t){return t.erasNarrowRegex(e)}function QK(e,t){return t._eraYearOrdinalRegex||ic}function jw(){var e=[],t=[],r=[],n=[],a,i,o,s,u,l=this.eras();for(a=0,i=l.length;a<i;++a)o=ns(l[a].name),s=ns(l[a].abbr),u=ns(l[a].narrow),t.push(o),e.push(s),r.push(u),n.push(o),n.push(s),n.push(u);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Et(0,["gg",2],0,function(){return this.weekYear()%100});Et(0,["GG",2],0,function(){return this.isoWeekYear()%100});function vm(e,t){Et(0,[e,e.length],0,t)}vm("gggg","weekYear");vm("ggggg","weekYear");vm("GGGG","isoWeekYear");vm("GGGGG","isoWeekYear");st("G",fm);st("g",fm);st("GG",Vr,Ka);st("gg",Vr,Ka);st("GGGG",Ew,Cw);st("gggg",Ew,Cw);st("GGGGG",dm,lm);st("ggggg",dm,lm);Jf(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=nr(e)});Jf(["gg","GG"],function(e,t,r,n){t[n]=Le.parseTwoDigitYear(e)});function eX(e){return TT.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function tX(e){return TT.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function rX(){return as(this.year(),1,4)}function nX(){return as(this.isoWeekYear(),1,4)}function aX(){var e=this.localeData()._week;return as(this.year(),e.dow,e.doy)}function iX(){var e=this.localeData()._week;return as(this.weekYear(),e.dow,e.doy)}function TT(e,t,r,n,a){var i;return e==null?Cf(this,n,a).year:(i=as(e,n,a),t>i&&(t=i),oX.call(this,e,t,r,n,a))}function oX(e,t,r,n,a){var i=sT(e,t,r,n,a),o=Sf(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Et("Q",0,"Qo","quarter");st("Q",XR);Mr("Q",function(e,t){t[Qo]=(nr(e)-1)*3});function sX(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Et("D",["DD",2],"Do","date");st("D",Vr,oc);st("DD",Vr,Ka);st("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Mr(["D","DD"],no);Mr("Do",function(e,t){t[no]=nr(e.match(Vr)[0])});var PT=sc("Date",!0);Et("DDD",["DDDD",3],"DDDo","dayOfYear");st("DDD",cm);st("DDDD",ZR);Mr(["DDD","DDDD"],function(e,t,r){r._dayOfYear=nr(e)});function uX(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Et("m",["mm",2],0,"minute");st("m",Vr,Ow);st("mm",Vr,Ka);Mr(["m","mm"],Mi);var lX=sc("Minutes",!1);Et("s",["ss",2],0,"second");st("s",Vr,Ow);st("ss",Vr,Ka);Mr(["s","ss"],es);var cX=sc("Seconds",!1);Et("S",0,0,function(){return~~(this.millisecond()/100)});Et(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Et(0,["SSS",3],0,"millisecond");Et(0,["SSSS",4],0,function(){return this.millisecond()*10});Et(0,["SSSSS",5],0,function(){return this.millisecond()*100});Et(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Et(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Et(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Et(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});st("S",cm,XR);st("SS",cm,Ka);st("SSS",cm,ZR);var As,kT;for(As="SSSS";As.length<=9;As+="S")st(As,ic);function dX(e,t){t[yu]=nr(("0."+e)*1e3)}for(As="S";As.length<=9;As+="S")Mr(As,dX);kT=sc("Milliseconds",!1);Et("z",0,0,"zoneAbbr");Et("zz",0,0,"zoneName");function fX(){return this._isUTC?"UTC":""}function hX(){return this._isUTC?"Coordinated Universal Time":""}var ze=Xf.prototype;ze.add=iK;ze.calendar=fK;ze.clone=hK;ze.diff=_K;ze.endOf=kK;ze.format=CK;ze.from=EK;ze.fromNow=OK;ze.to=RK;ze.toNow=TK;ze.get=SY;ze.invalidAt=LK;ze.isAfter=pK;ze.isBefore=mK;ze.isBetween=gK;ze.isSame=vK;ze.isSameOrAfter=bK;ze.isSameOrBefore=yK;ze.isValid=FK;ze.lang=ST;ze.locale=xT;ze.localeData=CT;ze.max=FG;ze.min=IG;ze.parsingFlags=jK;ze.set=CY;ze.startOf=PK;ze.subtract=oK;ze.toArray=NK;ze.toObject=MK;ze.toDate=DK;ze.toISOString=xK;ze.inspect=SK;typeof Symbol<"u"&&Symbol.for!=null&&(ze[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ze.toJSON=IK;ze.toString=wK;ze.unix=AK;ze.valueOf=$K;ze.creationData=zK;ze.eraName=UK;ze.eraNarrow=qK;ze.eraAbbr=WK;ze.eraYear=YK;ze.year=eT;ze.isLeapYear=xY;ze.weekYear=eX;ze.isoWeekYear=tX;ze.quarter=ze.quarters=sX;ze.month=iT;ze.daysInMonth=DY;ze.week=ze.weeks=BY;ze.isoWeek=ze.isoWeeks=HY;ze.weeksInYear=aX;ze.weeksInWeekYear=iX;ze.isoWeeksInYear=rX;ze.isoWeeksInISOWeekYear=nX;ze.date=PT;ze.day=ze.days=tG;ze.weekday=rG;ze.isoWeekday=nG;ze.dayOfYear=uX;ze.hour=ze.hours=cG;ze.minute=ze.minutes=lX;ze.second=ze.seconds=cX;ze.millisecond=ze.milliseconds=kT;ze.utcOffset=WG;ze.utc=GG;ze.local=KG;ze.parseZone=XG;ze.hasAlignedHourOffset=ZG;ze.isDST=JG;ze.isLocal=eK;ze.isUtcOffset=tK;ze.isUtc=bT;ze.isUTC=bT;ze.zoneAbbr=fX;ze.zoneName=hX;ze.dates=gi("dates accessor is deprecated. Use date instead.",PT);ze.months=gi("months accessor is deprecated. Use month instead",iT);ze.years=gi("years accessor is deprecated. Use year instead",eT);ze.zone=gi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",YG);ze.isDSTShifted=gi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",QG);function pX(e){return Hr(e*1e3)}function mX(){return Hr.apply(null,arguments).parseZone()}function $T(e){return e}var pr=ww.prototype;pr.calendar=eY;pr.longDateFormat=aY;pr.invalidDate=oY;pr.ordinal=lY;pr.preparse=$T;pr.postformat=$T;pr.relativeTime=dY;pr.pastFuture=fY;pr.set=JW;pr.eras=BK;pr.erasParse=HK;pr.erasConvertYear=VK;pr.erasAbbrRegex=KK;pr.erasNameRegex=GK;pr.erasNarrowRegex=XK;pr.months=PY;pr.monthsShort=kY;pr.monthsParse=AY;pr.monthsRegex=MY;pr.monthsShortRegex=NY;pr.week=FY;pr.firstDayOfYear=zY;pr.firstDayOfWeek=LY;pr.weekdays=XY;pr.weekdaysMin=JY;pr.weekdaysShort=ZY;pr.weekdaysParse=eG;pr.weekdaysRegex=aG;pr.weekdaysShortRegex=iG;pr.weekdaysMinRegex=oG;pr.isPM=uG;pr.meridiem=dG;function kp(e,t,r,n){var a=os(),i=go().set(n,t);return a[r](i,e)}function AT(e,t,r){if(is(e)&&(t=e,e=void 0),e=e||"",t!=null)return kp(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=kp(e,n,r,"month");return a}function Lw(e,t,r,n){typeof e=="boolean"?(is(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,is(t)&&(r=t,t=void 0),t=t||"");var a=os(),i=e?a._week.dow:0,o,s=[];if(r!=null)return kp(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=kp(t,(o+i)%7,n,"day");return s}function gX(e,t){return AT(e,t,"months")}function vX(e,t){return AT(e,t,"monthsShort")}function bX(e,t,r){return Lw(e,t,r,"weekdays")}function yX(e,t,r){return Lw(e,t,r,"weekdaysShort")}function _X(e,t,r){return Lw(e,t,r,"weekdaysMin")}Fs("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Le.lang=gi("moment.lang is deprecated. Use moment.locale instead.",Fs);Le.langData=gi("moment.langData is deprecated. Use moment.localeData instead.",os);var Vo=Math.abs;function wX(){var e=this._data;return this._milliseconds=Vo(this._milliseconds),this._days=Vo(this._days),this._months=Vo(this._months),e.milliseconds=Vo(e.milliseconds),e.seconds=Vo(e.seconds),e.minutes=Vo(e.minutes),e.hours=Vo(e.hours),e.months=Vo(e.months),e.years=Vo(e.years),this}function DT(e,t,r,n){var a=qi(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function xX(e,t){return DT(this,e,t,1)}function SX(e,t){return DT(this,e,t,-1)}function PE(e){return e<0?Math.floor(e):Math.ceil(e)}function CX(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=PE(Dy(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=ci(e/1e3),n.seconds=a%60,i=ci(a/60),n.minutes=i%60,o=ci(i/60),n.hours=o%24,t+=ci(o/24),u=ci(NT(t)),r+=u,t-=PE(Dy(u)),s=ci(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function NT(e){return e*4800/146097}function Dy(e){return e*146097/4800}function EX(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=vi(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+NT(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Dy(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ss(e){return function(){return this.as(e)}}var MT=ss("ms"),OX=ss("s"),RX=ss("m"),TX=ss("h"),PX=ss("d"),kX=ss("w"),$X=ss("M"),AX=ss("Q"),DX=ss("y"),NX=MT;function MX(){return qi(this)}function IX(e){return e=vi(e),this.isValid()?this[e+"s"]():NaN}function Au(e){return function(){return this.isValid()?this._data[e]:NaN}}var FX=Au("milliseconds"),jX=Au("seconds"),LX=Au("minutes"),zX=Au("hours"),BX=Au("days"),HX=Au("months"),VX=Au("years");function UX(){return ci(this.days()/7)}var Go=Math.round,Sl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qX(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function WX(e,t,r,n){var a=qi(e).abs(),i=Go(a.as("s")),o=Go(a.as("m")),s=Go(a.as("h")),u=Go(a.as("d")),l=Go(a.as("M")),h=Go(a.as("w")),d=Go(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||h<=1&&["w"]||h<r.w&&["ww",h]),g=g||l<=1&&["M"]||l<r.M&&["MM",l]||d<=1&&["y"]||["yy",d],g[2]=t,g[3]=+e>0,g[4]=n,qX.apply(null,g)}function YX(e){return e===void 0?Go:typeof e=="function"?(Go=e,!0):!1}function GX(e,t){return Sl[e]===void 0?!1:t===void 0?Sl[e]:(Sl[e]=t,e==="s"&&(Sl.ss=t-1),!0)}function KX(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Sl,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Sl,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=WX(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var q1=Math.abs;function tl(e){return(e>0)-(e<0)||+e}function bm(){if(!this.isValid())return this.localeData().invalidDate();var e=q1(this._milliseconds)/1e3,t=q1(this._days),r=q1(this._months),n,a,i,o,s=this.asSeconds(),u,l,h,d;return s?(n=ci(e/60),a=ci(n/60),e%=60,n%=60,i=ci(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=s<0?"-":"",l=tl(this._months)!==tl(s)?"-":"",h=tl(this._days)!==tl(s)?"-":"",d=tl(this._milliseconds)!==tl(s)?"-":"",u+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(t?h+t+"D":"")+(a||n||e?"T":"")+(a?d+a+"H":"")+(n?d+n+"M":"")+(e?d+o+"S":"")):"P0D"}var lr=gm.prototype;lr.isValid=HG;lr.abs=wX;lr.add=xX;lr.subtract=SX;lr.as=EX;lr.asMilliseconds=MT;lr.asSeconds=OX;lr.asMinutes=RX;lr.asHours=TX;lr.asDays=PX;lr.asWeeks=kX;lr.asMonths=$X;lr.asQuarters=AX;lr.asYears=DX;lr.valueOf=NX;lr._bubble=CX;lr.clone=MX;lr.get=IX;lr.milliseconds=FX;lr.seconds=jX;lr.minutes=LX;lr.hours=zX;lr.days=BX;lr.weeks=UX;lr.months=HX;lr.years=VX;lr.humanize=KX;lr.toISOString=bm;lr.toString=bm;lr.toJSON=bm;lr.locale=xT;lr.localeData=CT;lr.toIsoString=gi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bm);lr.lang=ST;Et("X",0,0,"unix");Et("x",0,0,"valueOf");st("x",fm);st("X",gY);Mr("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Mr("x",function(e,t,r){r._d=new Date(nr(e))});//! moment.js
332
- Le.version="2.30.1";XW(Hr);Le.fn=ze;Le.min=jG;Le.max=LG;Le.now=zG;Le.utc=go;Le.unix=pX;Le.months=gX;Le.isDate=Kf;Le.locale=Fs;Le.invalid=um;Le.duration=qi;Le.isMoment=Vi;Le.weekdays=bX;Le.parseZone=mX;Le.localeData=os;Le.isDuration=ap;Le.monthsShort=vX;Le.weekdaysMin=_X;Le.defineLocale=$w;Le.updateLocale=mG;Le.locales=gG;Le.weekdaysShort=yX;Le.normalizeUnits=vi;Le.relativeTimeRounding=YX;Le.relativeTimeThreshold=GX;Le.calendarFormat=dK;Le.prototype=ze;Le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Rs=class Rs{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Le.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||Rs.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const o=a.shift(),s=o[r];if(n==null||n(o),i.push(o),s!=null&&s.length)for(let u=s.length-1;u>=0;u--)a.unshift(s[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var h;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const o=new Map,s=new Map,u=new Map,l=[...t];for(;l.length;){const d=l.shift(),g=o.get(d)??t.findIndex(E=>E==d),b=s.get(d);b?a.add(b):a.clear();const y=b==null?void 0:b[n],w=r(d,g),S=d[n];if(w){i={parent:b,self:d,beforeSibling:(y||t).slice(0,g),afterSibling:(y||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(S!=null&&S.length)for(let E=S.length-1;E>=0;E--){const _=S[E];l.unshift(S[E]),o.set(_,E),s.set(_,d),E==S.length-1&&u.set(_,()=>{var C;(C=u.get(d))==null||C(),a.delete(d)})}else(h=u.get(d))==null||h()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Is.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Ar(Rs,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(l=>l!==""&&l!==void 0&&l!==null)(r))return"";let s="";i==="[object Array]"&&(s=[]);const u=l=>{for(let h=0;h<(l||[]).length;h++){const d=l[h][a?a.label:"label"],g=l[h][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&s.push(d):r===g&&(s=d),l[h].children&&l[h].children.length&&u(l[h].children)}};return u(n),s}),Ar(Rs,"transformArrayToMap",(t,r,n,a)=>{function i(o,s){return o=="autoGetId"&&(a!=null&&a.useAutoGetId)?Ul.isCustomAttr(s)?"id":"dataFromId":o}return t==null?void 0:t.reduce((o,s)=>{const u=i(r,s),l=i(n,s);return l?o[s[u]]=s[l]:o[s[u]]=s,o},{})}),Ar(Rs,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Ar(Rs,"renderBomTag",t=>{const r=o=>{const s=o.match(/\d+(\.\d+)?/g);return s?s[s.length-1]:""},n=o=>{let s=0;const u=l=>{var h=l.split("");return h.reverse()};for(let l=0;l<u(o).length&&u(o)[l].match(/\d/);l++)s=s+1;return o.substring(0,o.length-s)},a=o=>_e.sortBy(_e.uniq(o.split(",")),s=>Number(r(s))),i=Object.keys(_e.groupBy(a(t),o=>n(o))).map(o=>(u=>{var l=[],h=0;const d=u.sort((g,b)=>Number(r(g))-Number(r(b)));return d.forEach((g,b)=>{b===0?l[0]=[g]:Number(r(g))-Number(r(d[b-1]))===1?l[h].push(g):l[++h]=[g]}),l})(_e.groupBy(a(t),u=>n(u))[o]).map(u=>{if(u.length>1){const l=u.map(h=>Number(r(h)));return`${o}${_e.min(l)}-${_e.max(l)}`}else return u[0]}));return _e.flatten(i).join(",")}),Ar(Rs,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const l=u.substring(0,u.match(/\d+-\d+$/).index),h=[],d=Number(u.split(l)[1].split("-")[1]),g=d<1e3?d:1e3;for(let b=Number(u.split(l)[1].split("-")[0]);b<=g;b++)h.push(`${l}${b}`);return h.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const l=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),h=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),d=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(l!=d)return u;{const b=[],y=Number(g),w=y<1e3?y:1e3;for(let S=Number(h);S<=w;S++)b.push(`${l}${S}`);return b.join(",")}}else return u}).join(","),a=u=>{const l=u.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},i=u=>{let l=0;const h=d=>{var g=d.split("");return g.reverse()};for(let d=0;d<h(u).length&&h(u)[d].match(/\d/);d++)l=l+1;return u.substring(0,u.length-l)},o=u=>_e.sortBy(_e.uniq(u.split(",")),l=>Number(a(l))),s=Object.values(_e.groupBy(o(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return s.length>1e3&&(r==null||r()),s.length>1e3?s.slice(0,1e3).join(","):s.join(",")});let _r=Rs;const XX="_tableSelection_1xub0_1",ZX="_sideBox_1xub0_36",JX="_tableFrame_1xub0_51",W1={tableSelection:XX,sideBox:ZX,tableFrame:JX},QX="_sider_item_container_wnrm0_1",rl={sider_item_container:QX},{TreeNode:kE}=ae.Tree,IT=e=>{const[t,r]=A.useState([]),[n,a]=A.useState([]),[i,o]=A.useState([]);qf(()=>{s()});const s=async()=>{var l;if(e.getInstanceMenu){const{records:h}=await e.getInstanceMenu();a(h||[])}if(e.getAttributeByTab){const h=await e.getAttributeByTab();if(h){const d=(l=h.records)==null?void 0:l.filter(g=>["Number","Note","LifeCyclePhase","Category"].includes(g.apicode));e.onGetTreeFields&&e.onGetTreeFields(d)}}};A.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=l=>l.map(d=>(d.title=z.jsxs("div",{className:rl.treeListBox,children:[z.jsxs("div",{className:rl.titleBox,style:{display:"flex",alignItems:"center"},children:[z.jsx(Dt,{type:d.icon=="leftbar-folder"?d.children&&d.children.length>0&&_e.includes(i,d.id)?"content-open2":"content-fold":d.icon,style:{fontSize:"16px",color:"#333"}}),z.jsx("div",{className:rl.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:d.name,children:z.jsx("span",{children:d.name})})]}),z.jsx("div",{className:ge(rl.btnBox,rl.onHover)})]},d.id),d.children?z.jsx(kE,{title:d.title,dataRef:d,children:u(d.children)},d.id):z.jsx(kE,{title:d.title},d.id)));return z.jsx("div",{className:rl.sider_item_container,children:z.jsx(ae.Tree,{switcherIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:l=>{o(l)},onSelect:(l,h)=>{h.selected&&(r(l),e.onSelected&&e.onSelected(h.node.dataRef))},children:u(n)})})},eZ="_main_1qtos_1",tZ="_edit_cell_1qtos_23",rZ="_update_style_1qtos_28",nZ="_updated_style_1qtos_42",aZ="_updated_redline_style_1qtos_61",iZ="_table_footer_1qtos_349",oZ="_loading_1qtos_361",ki={main:eZ,edit_cell:tZ,update_style:rZ,updated_style:nZ,updated_redline_style:aZ,table_footer:iZ,loading:oZ},sZ=0,Y1=1,G1=2,FT=8,nl=64,_0=0,jT=1,Ny=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function uZ(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:sZ,end:!1,final_top:0,f_final_top:jT,update_count:0}}function lZ(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function bl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function cZ(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:FT}}const dZ=P.forwardRef(function(t,r){return z.jsx("table",{ref:r,...t})});function fZ(e){return z.jsx("tbody",{...e})}const hZ=P.forwardRef(function(t,r){const[n,a]=A.useState(!1);return z.jsx("tr",{ref:r,...t})});function pZ(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,o=0,s=0,u=0;if(t===-1&&n>0){for(o=n;o>0&&u<e._y;)u+=r[--o];return[0|o,0|n,0|e.computed_h-u]}for(;o<n&&i<t;++o)i+=r[o];for(s=o;s<n&&u<e._y;++s)u+=r[s];let l=a<0?0:a;for(;o>0&&l--;)i-=r[--o];return s+=a,s>n&&(s=n),[0|o,0|s,0|i]}function LT(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function mZ(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function gZ(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function $E(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function zT(e,t){const r=()=>{bl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&gZ(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function K1(e){e.HND_PAINT>0||(e.HND_PAINT=zT(e,-1))}function BT(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function vZ(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function bZ(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const yZ=(e,t)=>{const{style:r,context:n,...a}=e,i=A.useState(0),o=A.useRef(()=>{}),s=A.useMemo(()=>P.createRef(),[]),u=A.useContext(n);A.useMemo(()=>{Object.assign(u,uZ()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=s,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:nl,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&lZ(u)},[]);const l=A.useRef([]).current,h=A.useRef(0);let d;const g=A.useCallback(_=>{if(u.vt_state===4){if(_&&(l.push(_),u.f_final_top===_0))return _.flag=nl,d(0);l.length&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(d))}},[]),b=A.useCallback(_=>{g(cZ(_))},[]);d=A.useCallback(_=>{if(u.vt_state!==4)return;const C=l;let f;if(!C.length)return;f=C.pop();let p=f.target.scrollTop,v=f.target.scrollLeft;const x=f.flag;bl(u,`raf top: ${p}, left: ${v}`);const k=pZ(u,u.f_final_top===_0?u.final_top:p),O=k[0],$=k[1],D=k[2],V=u._offset_head,I=u._offset_tail,M=u._offset_top;let F;switch(x){case Y1:bl(u,"SCROLLEVT_INIT"),F=!1;break;case nl:bl(u,"SCROLLEVT_BY_HOOK"),O===V&&$===I&&D===M?(u.f_final_top=jT,u.final_top===-1&&(p=u.computed_h-u._y),F=!0):(u.final_top===-1&&(p=D),F=!1);break;case G1:if(bl(u,"SCROLLEVT_RECOMPUTE"),O===V&&$===I&&D===M){h.current=0,C.length&&g(null);return}F=!1;break;case FT:if(bl(u,"SCROLLEVT_NATIVE"),h.current=0,C.length=0,u.onScroll&&u.onScroll({top:p,left:v,isEnd:f.end}),O===V&&$===I&&D===M)return;F=f.end;break}LT(u,D,O,$),mZ(u,p,v,x,F),i[1](++u.update_count)},[]),A.useImperativeHandle(t,()=>{const _=C=>{u.f_final_top=_0,u.final_top=C,g({target:{scrollTop:C,scrollLeft:-1},flag:nl})};return{scrollTo:C=>{o.current=()=>_(C),o.current()},scrollToIndex:C=>{o.current=()=>{C>u.row_count-1&&(C=u.row_count-1),C<0&&(C=0);let f=0;for(let p=0;p<C;++p)f+=u.row_height[p];_(f)},o.current()}}},[]),A.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=b},[s]),A.useEffect(()=>{g({flag:nl,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),A.useEffect(()=>{switch(u.evt){case nl:u.f_final_top===_0?o.current():$E(u,u.top,u.left);break;case Y1:case G1:$E(u,u.top,u.left),l.length&&d(0);break}},[i[0]]),A.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:Y1});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:G1}));break}}),r.position="relative",r.top=u._offset_top;const{width:y,...w}=r,S=A.useMemo(()=>({width:y,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[y]),E=u.components.table;return z.jsx("div",{ref:s,style:S,children:z.jsx(n.Provider,{value:{...u},children:z.jsx(E,{...a,style:w})})})},_Z=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],o=r.components.body.wrapper;let s=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:l}=r,h=[];switch(r.vt_state){case 1:s>=0&&(console.assert(u===0),console.assert(l===1),Array.isArray(i)?(h=i.slice(u,l),h[0].props.record[Ny]=0):h=i,r.re_computed=s,r.prev_row_count=s,r.row_count=s);break;case 4:{if(l>s){const g=l-s;l-=g,u-=g,u<0&&(u=0),l<0&&(l=0),LT(r,r._offset_top,u,l)}r.row_count!==s&&bZ(r,s),s=r.row_count;const d=r.prev_row_count;if(s<d)vZ(r,s,d);else if(s>d){const g=r.row_height;s-g.length>0?BT(r,s,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,d,s),r.computed_h+=r.possible_hight_per_tr*(s-d))}if(s){let g=u;h=i.slice(g,l),h.forEach(b=>b.props.record[Ny]=g++)}else h=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return z.jsxs(o,{...n,children:[a,h]})},wZ=e=>{const t=P.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return z.jsx(i,{...n,children:a});const o=a[0].props,s=o.record[Ny],u=A.useRef(s),l=A.useMemo(()=>`.${o.prefixCls}-expanded-row`,[o.prefixCls]);return A.useEffect(()=>(r.vt_state===4?K1(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,BT(r,r.row_count,0,r.possible_hight_per_tr),zT(r,16)),()=>K1(r)),[]),A.useEffect(()=>{const h=t.current;let d=h.offsetHeight,g=h.nextSibling;for(;g&&g.matches(l);)d+=g.offsetHeight,g=g.nextSibling;const b=r.row_height[s],y=r.row_height[u.current];r.computed_h-=b,r.computed_h+=y,r.computed_h+=d-y,r.row_height[s]=d,K1(r)}),z.jsx(i,{...n,ref:t})};function HT(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function xZ(e,t){const r=A.useRef(P.createContext({})).current,n=A.useContext(r),a=A.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return A.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),A.useMemo(()=>{const i=P.forwardRef(yZ);n._vtcomponents={table:o=>z.jsx(i,{...o,context:r,ref:n.ref}),body:{wrapper:o=>z.jsx(r.Consumer,{children:()=>z.jsx(_Z,{...o,ctx:n})}),row:o=>z.jsx(wZ,{...o,ctx:n})}},n.components={},HT(n,{table:dZ,body:{wrapper:fZ,row:hZ}}),n.vt_state=1},[]),n}const AE=1,SZ=2;(function(){if((typeof window=="object"&&window instanceof Window?AE:SZ)&AE&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function CZ(e,t){const r=xZ(e,t||[]);return[r._vtcomponents,n=>HT(r,n),r.ref]}const EZ=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:o},s)=>{const[u,l]=A.useState(0),h=di(n);return A.useEffect(()=>{const d=()=>{var y,w,S;const b=(E=>{for(var _=E.offsetTop,C=E.offsetParent;C!==null;)_+=C.offsetTop,C=C.offsetParent;return _})(t.current);if(r.current){const E=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],_=t.current.querySelectorAll(".frontend-table-body")[0],C=34+(e?0:15);if(E){const f=_r.autoTableHeight(s?C:b+C),p=f-(a||0);n!=null&&n.y?i?i==null||i(s,p):(l(s?p:Number((y=h.current)==null?void 0:y.y)),E.style.minHeight=(s?p:Number((w=h.current)==null?void 0:w.y))-10+"px",_.style.minHeight=(s?p:Number((S=h.current)==null?void 0:S.y))+"px"):(l(s?p:f),E.style.minHeight=(s?p:f)-10+"px",_.style.minHeight=(s?p:f)+"px")}}};return d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}},[s,n]),A.useEffect(()=>{o==null||o(u)},[u]),u};var Rd={exports:{}},Td={},w0={},DE;function OZ(){if(DE)return w0;DE=1,w0.__esModule=!0,w0.cloneElement=s;var e=t(A);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,l){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);l&&(d=d.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),h.push.apply(h,d)}return h}function n(u){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?r(Object(h),!0).forEach(function(d){a(u,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(h,d))})}return u}function a(u,l,h){return l=i(l),l in u?Object.defineProperty(u,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[l]=h,u}function i(u){var l=o(u,"string");return typeof l=="symbol"?l:String(l)}function o(u,l){if(typeof u!="object"||u===null)return u;var h=u[Symbol.toPrimitive];if(h!==void 0){var d=h.call(u,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(u)}function s(u,l){return l.style&&u.props.style&&(l.style=n(n({},u.props.style),l.style)),l.className&&u.props.className&&(l.className=u.props.className+" "+l.className),e.default.cloneElement(u,l)}return w0}var Pd={},NE;function VT(){if(NE)return Pd;NE=1,Pd.__esModule=!0,Pd.resizableProps=void 0;var e=t(Yf());vw();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return Pd.resizableProps=r,Pd}var ME;function UT(){if(ME)return Td;ME=1,Td.__esModule=!0,Td.default=void 0;var e=o(A),t=vw(),r=OZ(),n=VT(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(E){if(typeof WeakMap!="function")return null;var _=new WeakMap,C=new WeakMap;return(i=function(p){return p?C:_})(E)}function o(E,_){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var C=i(_);if(C&&C.has(E))return C.get(E);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in E)if(v!=="default"&&Object.prototype.hasOwnProperty.call(E,v)){var x=p?Object.getOwnPropertyDescriptor(E,v):null;x&&(x.get||x.set)?Object.defineProperty(f,v,x):f[v]=E[v]}return f.default=E,C&&C.set(E,f),f}function s(){return s=Object.assign?Object.assign.bind():function(E){for(var _=1;_<arguments.length;_++){var C=arguments[_];for(var f in C)Object.prototype.hasOwnProperty.call(C,f)&&(E[f]=C[f])}return E},s.apply(this,arguments)}function u(E,_){if(E==null)return{};var C={},f=Object.keys(E),p,v;for(v=0;v<f.length;v++)p=f[v],!(_.indexOf(p)>=0)&&(C[p]=E[p]);return C}function l(E,_){var C=Object.keys(E);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(E);_&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(E,p).enumerable})),C.push.apply(C,f)}return C}function h(E){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{};_%2?l(Object(C),!0).forEach(function(f){d(E,f,C[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):l(Object(C)).forEach(function(f){Object.defineProperty(E,f,Object.getOwnPropertyDescriptor(C,f))})}return E}function d(E,_,C){return _=g(_),_ in E?Object.defineProperty(E,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[_]=C,E}function g(E){var _=b(E,"string");return typeof _=="symbol"?_:String(_)}function b(E,_){if(typeof E!="object"||E===null)return E;var C=E[Symbol.toPrimitive];if(C!==void 0){var f=C.call(E,_);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(E)}function y(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,w(E,_)}function w(E,_){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,p){return f.__proto__=p,f},w(E,_)}var S=function(E){y(_,E);function _(){for(var f,p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];return f=E.call.apply(E,[this].concat(v))||this,f.handleRefs={},f.lastHandleRect=null,f.slack=null,f}var C=_.prototype;return C.componentWillUnmount=function(){this.resetData()},C.resetData=function(){this.lastHandleRect=this.slack=null},C.runConstraints=function(p,v){var x=this.props,k=x.minConstraints,O=x.maxConstraints,$=x.lockAspectRatio;if(!k&&!O&&!$)return[p,v];if($){var D=this.props.width/this.props.height,V=p-this.props.width,I=v-this.props.height;Math.abs(V)>Math.abs(I*D)?v=p/D:p=v*D}var M=p,F=v,T=this.slack||[0,0],N=T[0],j=T[1];return p+=N,v+=j,k&&(p=Math.max(k[0],p),v=Math.max(k[1],v)),O&&(p=Math.min(O[0],p),v=Math.min(O[1],v)),this.slack=[N+(M-p),j+(F-v)],[p,v]},C.resizeHandler=function(p,v){var x=this;return function(k,O){var $=O.node,D=O.deltaX,V=O.deltaY;p==="onResizeStart"&&x.resetData();var I=(x.props.axis==="both"||x.props.axis==="x")&&v!=="n"&&v!=="s",M=(x.props.axis==="both"||x.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!I&&!M)){var F=v[0],T=v[v.length-1],N=$.getBoundingClientRect();if(x.lastHandleRect!=null){if(T==="w"){var j=N.left-x.lastHandleRect.left;D+=j}if(F==="n"){var H=N.top-x.lastHandleRect.top;V+=H}}x.lastHandleRect=N,T==="w"&&(D=-D),F==="n"&&(V=-V);var B=x.props.width+(I?D/x.props.transformScale:0),U=x.props.height+(M?V/x.props.transformScale:0),G=x.runConstraints(B,U);B=G[0],U=G[1];var X=B!==x.props.width||U!==x.props.height,K=typeof x.props[p]=="function"?x.props[p]:null,ne=p==="onResize"&&!X;K&&!ne&&(k.persist==null||k.persist(),K(k,{node:$,size:{width:B,height:U},handle:v})),p==="onResizeStop"&&x.resetData()}}},C.renderResizeHandle=function(p,v){var x=this.props.handle;if(!x)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:v});if(typeof x=="function")return x(p,v);var k=typeof x.type=="string",O=h({ref:v},k?{}:{handleAxis:p});return e.cloneElement(x,O)},C.render=function(){var p=this,v=this.props,x=v.children,k=v.className,O=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var $=v.resizeHandles;v.transformScale;var D=u(v,a);return(0,r.cloneElement)(x,h(h({},D),{},{className:(k?k+" ":"")+"react-resizable",children:[].concat(x.props.children,$.map(function(V){var I,M=(I=p.handleRefs[V])!=null?I:p.handleRefs[V]=e.createRef();return e.createElement(t.DraggableCore,s({},O,{nodeRef:M,key:"resizableHandle-"+V,onStop:p.resizeHandler("onResizeStop",V),onStart:p.resizeHandler("onResizeStart",V),onDrag:p.resizeHandler("onResize",V)}),p.renderResizeHandle(V,M))}))}))},_}(e.Component);return Td.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Td}var kd={},IE;function RZ(){if(IE)return kd;IE=1,kd.__esModule=!0,kd.default=void 0;var e=s(A),t=i(Yf()),r=i(UT()),n=VT(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,f=new WeakMap;return(o=function(v){return v?f:C})(_)}function s(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var f=o(C);if(f&&f.has(_))return f.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,f&&f.set(_,p),p}function u(){return u=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var f=arguments[C];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])}return _},u.apply(this,arguments)}function l(_,C){var f=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);C&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(_,v).enumerable})),f.push.apply(f,p)}return f}function h(_){for(var C=1;C<arguments.length;C++){var f=arguments[C]!=null?arguments[C]:{};C%2?l(Object(f),!0).forEach(function(p){d(_,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(_,p,Object.getOwnPropertyDescriptor(f,p))})}return _}function d(_,C,f){return C=g(C),C in _?Object.defineProperty(_,C,{value:f,enumerable:!0,configurable:!0,writable:!0}):_[C]=f,_}function g(_){var C=b(_,"string");return typeof C=="symbol"?C:String(C)}function b(_,C){if(typeof _!="object"||_===null)return _;var f=_[Symbol.toPrimitive];if(f!==void 0){var p=f.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}function y(_,C){if(_==null)return{};var f={},p=Object.keys(_),v,x;for(x=0;x<p.length;x++)v=p[x],!(C.indexOf(v)>=0)&&(f[v]=_[v]);return f}function w(_,C){_.prototype=Object.create(C.prototype),_.prototype.constructor=_,S(_,C)}function S(_,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,v){return p.__proto__=v,p},S(_,C)}var E=function(_){w(C,_);function C(){for(var p,v=arguments.length,x=new Array(v),k=0;k<v;k++)x[k]=arguments[k];return p=_.call.apply(_,[this].concat(x))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function(O,$){var D=$.size;p.props.onResize?(O.persist==null||O.persist(),p.setState(D,function(){return p.props.onResize&&p.props.onResize(O,$)})):p.setState(D)},p}C.getDerivedStateFromProps=function(v,x){return x.propsWidth!==v.width||x.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var f=C.prototype;return f.render=function(){var v=this.props,x=v.handle,k=v.handleSize;v.onResize;var O=v.onResizeStart,$=v.onResizeStop,D=v.draggableOpts,V=v.minConstraints,I=v.maxConstraints,M=v.lockAspectRatio,F=v.axis;v.width,v.height;var T=v.resizeHandles,N=v.style,j=v.transformScale,H=y(v,a);return e.createElement(r.default,{axis:F,draggableOpts:D,handle:x,handleSize:k,height:this.state.height,lockAspectRatio:M,maxConstraints:I,minConstraints:V,onResizeStart:O,onResize:this.onResize,onResizeStop:$,resizeHandles:T,transformScale:j,width:this.state.width},e.createElement("div",u({},H,{style:h(h({},N),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},C}(e.Component);return kd.default=E,E.propTypes=h(h({},n.resizableProps),{},{children:t.default.element}),kd}var FE;function TZ(){return FE||(FE=1,Rd.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Rd.exports.Resizable=UT().default,Rd.exports.ResizableBox=RZ().default),Rd.exports}var PZ=TZ();const kZ=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:o,required:s,editable:u,formitem:l,dataIndex:h,...d}=e,g=A.useRef(),b=()=>{const C=u?l&&l.props&&l.props.disabled:!0;if(!C&&s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&s)return{fontWeight:"400"};if(!C&&!s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&!s)return{fontWeight:"400"}},y=Sa({resizing:!1}),[w,S]=A.useState(0);A.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(f=>f.addEventListener("click",p=>!1))},[]);const[E,_]=A.useState(0);return!i||h==="id"?z.jsx("th",{...d,onClick:o,style:{...d.style,...b()},onKeyDown:()=>{},className:`${d.className} ${s?"frontend-table-column-required":""}`}):z.jsx(PZ.Resizable,{axis:"x",width:i+E,height:0,handle:z.jsx("span",{onClick:C=>{C.stopPropagation(),C.preventDefault()},className:ge(["react-resizable-handle",E&&"active"])}),onResize:(C,{size:f,...p})=>{const v=document.getElementById("table-resize-handle");if(v){const x=document.getElementById(`table_key_${e.tableKey}`);C.pageX>x.getBoundingClientRect().left+x.getBoundingClientRect().width||C.pageX<x.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${p.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${C.pageX}px`)}t(C),y.resizing=!0,_(f.width-i)},onResizeStop:(...C)=>{var f;C[0].stopPropagation(),(f=document.getElementById("table-resize-handle"))==null||f.remove(),r(),_(0),a(...C),setTimeout(()=>{y.resizing=!1})},onResizeStart:C=>{document.getElementById(`table_key_${e.tableKey}`);const f=document.createElement("div");f.id="table-resize-handle",document.body.appendChild(f),y.resizing=!0,C.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:z.jsx("th",{ref:g,onClick:(...C)=>{!y.resizing&&o&&o(...C)},...d,style:{...d.style,...b()},onKeyDown:()=>{},className:`${d.className} ${s?"frontend-table-column-required":""}`})})};function Of(){return Of=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Of.apply(this,arguments)}function qT(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var WT=A.createContext({});function $Z(){return A.useContext(WT)}var AZ=function(t){return A.createElement(WT.Provider,{value:t.refTracker},t.children)};function DZ(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var $p=DZ();function NZ(e){var t=A.useRef();return A.useEffect(function(){t.current=e},[e]),t.current}function MZ(){return A.useRef(new Map).current}var jE={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),$p.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){$p.emit(0)}};function IZ(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),jE.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){jE.hideAll()}}}function FZ(){var e=new Map,t,r,n,a,i=!1;function o(w){a=w,t=-1,n=!0}function s(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function l(){return Array.from(a[t].submenuRefTracker.values())}function h(){return t===-1?(d(),!1):!0}function d(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&y(),s()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&y(),s()}function b(){if(h()&&u()){var w=l(),S=a[t].node;return e.set(S,{isRoot:n,focusedIndex:t,parentNode:r||S,items:a}),S.classList.add("react-contexify__submenu--is-open"),r=S,w.length>0?(t=0,a=w):i=!0,n=!1,s(),!0}return!1}function y(){if(h()&&!n){var w=e.get(r),S=w.isRoot,E=w.items,_=w.focusedIndex,C=w.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=E,r=C,S&&(n=!0,e.clear()),i||(t=_,s())}}return{init:o,moveDown:d,moveUp:g,openSubmenu:b,closeSubmenu:y}}var My=function(){};function YT(e){return typeof e=="function"}function GT(e){return typeof e=="string"}function jZ(e){return e.type==="touchend"}function LZ(e,t){return A.Children.map(A.Children.toArray(e).filter(Boolean),function(r){return A.cloneElement(r,t)})}function zZ(e){var t={x:0,y:0};return jZ(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function LE(e,t){return YT(e)?e(t):e}function BZ(e){return!!(e&&(GT(e)||"exit"in e&&e.exit))}function HZ(e,t){return YT(t)?Of({},e,t(e)):Of({},e,t)}var VZ=function(t){var r,n=t.id,a=t.theme,i=t.style,o=t.className,s=t.children,u=t.animation,l=u===void 0?"scale":u,h=t.onHidden,d=h===void 0?My:h,g=t.onShown,b=g===void 0?My:g,y=qT(t,["id","theme","style","className","children","animation","onHidden","onShown"]),w=A.useReducer(HZ,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),S=w[0],E=w[1],_=A.useRef(null),C=A.useRef(!1),f=NZ(S.visible),p=MZ(),v=A.useState(function(){return FZ()}),x=v[0];A.useEffect(function(){return C.current=!0,$p.on(n,k).on(0,O),function(){$p.off(n,k).off(0,O)}},[n]),A.useEffect(function(){C.current&&S.visible!==f&&(S.visible?b():d())},[S.visible,d,b]),A.useEffect(function(){S.visible?x.init(Array.from(p.values())):p.clear()},[S.visible,x,p]),A.useEffect(function(){if(S.visible){var B=window,U=B.innerWidth,G=B.innerHeight,X=_.current,K=X.offsetWidth,ne=X.offsetHeight,ie=S.x,oe=S.y;ie+K>U&&(ie-=ie+K-U),oe+ne>G&&(oe-=oe+ne-G),E({x:ie,y:oe})}},[S.visible]),A.useEffect(function(){function B(U){switch(U.preventDefault(),U.key){case"Enter":x.openSubmenu()||O();break;case"Escape":O();break;case"ArrowUp":x.moveUp();break;case"ArrowDown":x.moveDown();break;case"ArrowRight":x.openSubmenu();break;case"ArrowLeft":x.closeSubmenu();break}}return S.visible&&(window.addEventListener("resize",O),window.addEventListener("contextmenu",O),window.addEventListener("click",O),window.addEventListener("scroll",O),window.addEventListener("keydown",B),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",O)),function(){window.removeEventListener("resize",O),window.removeEventListener("contextmenu",O),window.removeEventListener("click",O),window.removeEventListener("scroll",O),window.removeEventListener("keydown",B),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",O)}},[S.visible,x]);function k(B){var U=B.event,G=B.props,X=B.position;U.stopPropagation();var K=X||zZ(U),ne=K.x,ie=K.y;setTimeout(function(){E({visible:!0,willLeave:!1,x:ne,y:ie,triggerEvent:U,propsFromTrigger:G})},0)}function O(B){var U=B;typeof U<"u"&&(U.button===2||U.ctrlKey===!0)&&U.type!=="contextmenu"||(BZ(l)?E(function(G){return{willLeave:G.visible}}):E(function(G){return{visible:G.visible?!1:G.visible}}))}function $(){S.willLeave&&S.visible&&E({visible:!1,willLeave:!1})}function D(){if(!l)return null;if(GT(l)){var B;return Al((B={},B["react-contexify__will-enter--"+l]=l&&V&&!N,B["react-contexify__will-leave--"+l+" react-contexify__will-leave--'disabled'"]=l&&V&&N,B))}else if("enter"in l&&"exit"in l){var U;return Al((U={},U["react-contexify__will-enter--"+l.enter]=l.enter&&V&&!N,U["react-contexify__will-leave--"+l.exit+" react-contexify__will-leave--'disabled'"]=l.exit&&V&&N,U))}return null}var V=S.visible,I=S.triggerEvent,M=S.propsFromTrigger,F=S.x,T=S.y,N=S.willLeave,j=Al("react-contexify",o,(r={},r["react-contexify__theme--"+a]=a,r),D()),H=Of({},i,{left:F,top:T,opacity:1});return A.createElement(AZ,{refTracker:p},V&&A.createElement("div",Object.assign({},y,{className:j,onAnimationEnd:$,style:H,ref:_,role:"menu"}),LZ(s,{propsFromTrigger:M,triggerEvent:I})))},zE=function(t){var r,n=t.children,a=t.className,i=t.style,o=t.triggerEvent,s=t.data,u=t.propsFromTrigger,l=t.onClick,h=l===void 0?My:l,d=t.disabled,g=d===void 0?!1:d,b=t.hidden,y=b===void 0?!1:b,w=qT(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),S=$Z(),E={data:s,triggerEvent:o,props:u},_=LE(g,E),C=LE(y,E);function f(k){E.event=k,_?k.stopPropagation():h(E)}function p(k){k&&!_&&S.set(k,{node:k,isSubmenu:!1})}function v(k){k.key==="Enter"&&(E.event=k,h(E))}if(C)return null;var x=Al("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=_,r));return A.createElement("div",Object.assign({},w,{className:x,style:i,onClick:f,onKeyDown:v,ref:p,tabIndex:-1,role:"menuitem","aria-disabled":_}),A.createElement("div",{className:"react-contexify__item__content"},n))};const UZ="_box_1hwl6_2",qZ="_transferSearch_1hwl6_2",WZ="_searchBtn_1hwl6_10",YZ="_shuttle_box_1hwl6_44",GZ="_leftSearch_1hwl6_58",KZ="_noBeforeAfter_1hwl6_62",XZ="_rightSearch_1hwl6_78",ZZ="_transfer_1hwl6_2",Uo={box:UZ,transferSearch:qZ,searchBtn:WZ,shuttle_box:YZ,leftSearch:GZ,noBeforeAfter:KZ,rightSearch:XZ,transfer:ZZ},JZ="_content_1tmh1_1",QZ={content:JZ},KT=A.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[o,s]=A.useState(a),{TabPane:u}=ae.Tabs;return n?z.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:z.jsx(tc,{})}):(A.useImperativeHandle(t,()=>({active:l=>{(i==null?void 0:i(l))!==!1&&s(l)}}),[o]),z.jsx("div",{className:`${QZ.content} ${e.className??""}`,children:n?z.jsx("div",{style:{padding:"10px"}}):r.length?z.jsx(ae.Tabs,{animated:!1,activeKey:o,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:l=>{(i==null?void 0:i(l))!==!1&&s(l)},children:(r||[]).map((l,h)=>z.jsx(u,{tab:z.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[l.icon&&z.jsx(Dt,{style:{marginRight:"5px",fontSize:"16px"},type:`${l.icon}`}),z.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:l.tab})]}),children:z.jsx("div",{style:{padding:"0px"},children:A.Children.map(e.children,d=>{var g;return((g=d==null?void 0:d.props)==null?void 0:g["data-key"])==l.tabKey?d:null})})},`${l.tabKey}`))}):z.jsx(z.Fragment,{})}))}),eJ=A.forwardRef((e,t)=>{var H;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=A.useState(!1),[o,s]=A.useState(),[u,l]=A.useState(r),[h,d]=A.useState([]),[g,b]=A.useState(n),[y,w]=A.useState({[n]:{left:1,right:1}}),[S,E]=A.useState({[n]:{left:0,right:0}}),[_,C]=A.useState(""),[f,p]=A.useState({right:"",left:""}),[v,x]=A.useState(!1),[k,O]=A.useState({});A.useEffect(()=>{l(r),b(n),w({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),A.useEffect(()=>{a?F():(l(r),s(void 0),b(n),w({[n]:{left:1,right:1}}),C(""),p({right:"",left:""}),O({}))},[a]);const $=di(f),D=di(y),V=di(g),I=di(S),M=A.useMemo(()=>{const B=()=>{var U;return o||((U=e.allListOptions)==null?void 0:U[V.current])||[]};return _e.uniqBy([...B(),...h],"id")},[V,g,e.allListOptions,o,h]),F=async B=>{x(!0),await e.getListCodeItem(Object.assign({search:$.current,tabKey:V.current,pageNo:D},_e.omit(B||{},"isPaging"))).then(U=>{U&&(B!=null&&B.isPaging?s([...M,...U]):s([...U]),E(Object.assign({},I.current,{[V.current]:{left:U.total||U.length,right:0}})))}).finally(()=>{x(!1)})};A.useEffect(()=>{d(M.filter(B=>u.includes(B.id)))},[u]);const T=async()=>{var B,U;if(e.mandatory&&!u.length)return ae.message.error(`${J("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(B=e.attr)==null?void 0:B.name}`);(U=k.ok)==null||U.call(k,[...u],g,h),i(!1)};A.useImperativeHandle(t,()=>({open(B){O(()=>B),i(!0)},submit:T,dataSource:M,targetKeys:u,loading:v}),[M,u,v]);const N=B=>{B=="left"?F():C($.current.right)},j=A.useMemo(()=>{var B;return Array.isArray(e.columns)?e.columns:((B=e.columns)==null?void 0:B[g])||[]},[e.columns,g]);return z.jsx($u,{className:Uo.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:T,onCancel:()=>{var B;(B=k.cancel)==null||B.call(k),i(!1)},children:z.jsx("div",{className:Uo.transferBox,children:z.jsx(tc,{spinning:v,children:z.jsx(ae.Transfer,{...e.transfer||{},className:`${Uo.transfer} ${((H=e.transfer)==null?void 0:H.className)??""}`,dataSource:M,targetKeys:u,onChange:(B,U,G)=>{U=="right"?l([...e.isRadio?G:B]):l([...B])},rowKey:B=>B.id,children:B=>{var me,ee,ve,ue,fe,he,ke,Te;const{direction:U,filteredItems:G,onItemSelectAll:X,onItemSelect:K,selectedKeys:ne,showSearch:ie}=B,oe=U=="left",de=!oe,pe={onSelectAll(xe,$e){if(e.isRadio)return;const Pe=$e.filter(Ee=>!Ee.disabled).map(({id:Ee})=>Ee),Me=xe?_e.difference(Pe,ne):_e.difference(ne,Pe);X(Me,xe)},onSelect({id:xe},$e){e.isRadio&&ne.splice(0,1),K(xe,$e)},getCheckboxProps:xe=>({disabled:xe.Number&&!fi.readPermission(xe.Number)?!0:oe?xe.disabled:!1}),selectedRowKeys:ne,columnWidth:13};(me=e==null?void 0:e.pager)!=null&&me[g];const be=()=>oe?G:G.filter(xe=>xe.label.includes(_)||xe.Description.includes(_));return z.jsxs("div",{className:Uo.box,style:e.scroll?{width:"360px"}:{},children:[oe&&e.panes&&((ee=e.panes)==null?void 0:ee.length)!=1?z.jsx(KT,{panes:e.panes,defaultActiveKey:g,onTabClick:xe=>{var Pe;b(xe),(Pe=e.onTabsChange)==null||Pe.call(e,xe);const $e={...f,[U]:""};p($e),D.current[xe]||w(Object.assign({},D.current,{[xe]:{left:1,right:1}})),F({tabKey:xe,search:$e})}}):null,ie?z.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:z.jsx("div",{className:`${e.scroll?Uo.noBeforeAfter:""} ${Uo.transferSearch} ${oe&&((ve=e.panes)!=null&&ve.length)?Uo.leftSearch:(ue=e.panes)!=null&&ue.length?Uo.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:z.jsx(ae.Input.Search,{placeholder:e.placeholder||J("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:f[U],onChange:xe=>{xe.persist();const $e=xe.target.value;p({...f,[U]:$e}),de&&($e||C(""))},onSearch:N.bind(null,U),suffix:z.jsx("div",{className:Uo.searchBtn,onClick:N.bind(null,U),children:z.jsx(Dt,{type:"homesearch"})})})})}):null,z.jsx(_m,{rowSelection:{type:"checkbox",fixed:!0,...pe},columns:j,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:be(),scroll:{x:((fe=e.scroll)==null?void 0:fe.x)||300,y:((he=e.scroll)==null?void 0:he.y)||(oe&&((ke=e.panes)!=null&&ke.length)?270:316)},style:{height:"100%"},pageNo:y[g][U],pageSize:oe?20:void 0,total:oe?(Te=S==null?void 0:S[g])==null?void 0:Te[U]:void 0,size:"small",onScroll:xe=>{const $e={...y,[g]:{...y[g],[U]:xe}};w($e),oe&&F({pageNo:$e[g],isPaging:!0})},onRow:({id:xe,disabled:$e,...Pe})=>({onClick:()=>{if(!$e&&oe){if(e.isRadio&&ne.splice(0,1),!fi.readPermission(Pe.Number))return;K(xe,!ne.includes(xe))}},onDoubleClick:()=>{if(fi.readPermission(Pe.Number)){if(oe)$e||(e.isRadio?l([xe]):l([xe,...u]));else{for(let Me=0;Me<u.length;Me++)if(u[Me]==xe){u.splice(Me,1);break}l([...u])}X([],!1)}}})}),e.showFooter?z.jsxs("div",{style:{marginTop:"4px"},children:[z.jsx("span",{style:{color:"#999999"},children:J("sys.selected",{placeholder:"已选"})})," ",z.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ne.length})," ",z.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",z.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",z.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:de?u.length:S[g][U]}),z.jsxs("span",{style:{color:"#999999"},children:[" ",J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):z.jsx(z.Fragment,{})]})}})})})})}),XT=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var y,w;const i=A.useRef(null),{attr:o,allListOptions:s,popoverTransfer:u}=e,l=xu(()=>{var S;(S=i.current)==null||S.open({ok:(E,_,C)=>{var f,p;["multiple","tags"].includes(e.mode)?r==null||r(E):r==null||r(E[0]),(f=u==null?void 0:u.onSubmit)==null||f.call(u,E,_,v=>d({newVal:E,allOptions:v}),C),(p=e.onBlur)==null||p.call(e)},cancel:()=>{var E;(E=e.onBlur)==null||E.call(e)}})});A.useImperativeHandle(a,()=>({focus:l}),[]);const h=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[String(o==null?void 0:o.listCode)];return Object.entries(s||{}).map(([_,C])=>S.includes(_)?C:[]).flat(1)},[o,s,u==null?void 0:u.panes]),d=xu(({allOptions:S,newVal:E})=>{var f;const _=((f=u==null?void 0:u.panes)==null?void 0:f.map(p=>p.tabKey))||[o==null?void 0:o.listCode];let C=[];return Object.entries(S||s||{}).some(([p,v])=>{if(_.includes(p))return v.some(x=>{if(E&&(E==null?void 0:E.length)>1)return E.includes(x.value)&&!C.includes(p)&&C.push(p),!1;{const k=x.value==((E==null?void 0:E[0])||t);return k&&(C=[p]),k}})}),C.filter(Boolean).join(",")}),g=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[o==null?void 0:o.listCode];return S.length==1?S[0]:d({}).split(",")[0]},[t,s,u==null?void 0:u.panes]),b=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return z.jsxs("div",{children:[z.jsx(gu,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:b,filterOption:(S,E)=>E.label&&E.label.indexOf(S)>=0,showSearch:!0,disabled:n,options:h.map(S=>({...S,label:fi.readPermission(S.label)?S.label:J("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:S=>{["multiple","tags"].includes(e.mode)?r==null||r(S):S&&S instanceof Array?r==null||r(S[0]):r==null||r("")},tagRender:({label:S})=>fi.readPermission(S)?z.jsx(ae.Tag,{color:"#0563B2",children:S}):z.jsx(co,{}),onDropdownVisibleChange:l,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),z.jsx(eJ,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,defaultActiveKey:g||((w=(y=u==null?void 0:u.panes)==null?void 0:y[0])==null?void 0:w.tabKey)||"",defaultValue:b,allListOptions:s})]})}),tJ="_shuttle_box_1962p_1",rJ="_box_1962p_5",nJ="_search_1962p_8",x0={shuttle_box:tJ,box:rJ,search:nJ};function BE(e){const t=A.useRef(!1),r=A.useRef({}),n=u=>{if(typeof e=="function"){const l=e();return!u&&(r.current=l),Object.assign(Object.create(null),l)}else{const l=e;return!u&&(r.current=l),Object.assign(Object.create(null),e)}},[a,i]=A.useState(n(!0));A.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const o=u=>{if(!t.current)if(typeof u=="function"){const l=Object.assign(Object.create(null),u(a)||a);r.current=l,i(l)}else{const l=Object.assign(Object.create(null),r.current,u);r.current=l,i(l)}},s=()=>i(n());return _r.makeDestructurable({store:a,setStore:o,resetStore:s,latestStore:r},[a,o,s,r])}const ZT=A.forwardRef((e,t)=>{var S,E,_,C;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((S=e.attr)!=null&&S.allowMultiple),a=!!((E=e.attr)!=null&&E.required),{store:i,setStore:o,resetStore:s,latestStore:u}=BE(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),l=BE(()=>({pageNo:1,pageSize:50,total:0})),h=async f=>{o({loading:!0});try{const{data:p,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...l.latestStore.current,record:e.record});o(f?{dataSource:[...i.dataSource,...p]}:{dataSource:p}),l.setStore({total:v})}catch(p){console.log(p)}finally{o({loading:!1})}},d=A.useMemo(()=>i.selectedRows.map(f=>f[r]),[i.selectedRows]);A.useEffect(()=>{i.visible?h().finally(()=>{}):(s(),l.resetStore())},[i.visible]);const g=xu(async f=>{var p,v,x;if(a&&!f&&!i.selectedRows.length){ae.message.error(J("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(p=e.attr)==null?void 0:p.name}}));return}(x=(v=u.current.callback).ok)==null||x.call(v,f?[f[r]]:d),o({visible:!1})});A.useImperativeHandle(t,()=>({open(f){o({callback:f,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const b=()=>{h()},y={onSelectAll(f,p){n||o({selectedRows:p})},onSelect(f,p){n?p?o({selectedRows:[f]}):a||o({selectedRows:[]}):o(p?{selectedRows:[...i.selectedRows,f]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=f[r])})},getCheckboxProps:f=>({disabled:!1}),selectedRowKeys:d,columnWidth:13},w=A.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return A.useEffect(()=>{const f=_e.debounce(p=>{(p.keyCode||p.which)==13&&u.current.visible&&p.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]),z.jsx($u,{className:x0.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var f,p;o({visible:!1}),(p=(f=u.current.callback).cancel)==null||p.call(f)},footer:null,children:z.jsx("div",{onScroll:f=>f.stopPropagation(),onScrollCapture:f=>f.stopPropagation(),children:z.jsx(tc,{spinning:i.loading,children:z.jsxs("div",{className:x0.box,children:[z.jsx("div",{children:z.jsx("div",{className:`${x0.search}`,children:z.jsx(ae.Input.Search,{placeholder:J("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:z.jsx("div",{className:x0.searchBtn,onClick:b,children:z.jsx(Dt,{type:"homesearch"})}),value:i.search,onChange:f=>o({search:f.target.value}),onSearch:b})})}),z.jsx(_m,{rowSelection:{type:"checkbox",fixed:!0,...y},columns:w,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(_=e.scroll)==null?void 0:_.x,y:((C=e.scroll)==null?void 0:C.y)||300},style:{height:"100%"},...l.store,size:"small",onScroll:f=>{l.setStore({pageNo:f}),h(!0)},onFilterAndSorter:(f,p)=>{o({sorters:f,filters:p}),h()},onRow:(f,...p)=>({onClick:()=>{console.log(f,p,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(f)}})})]})})})})}),JT=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=A.useRef(null),{attr:o,allListOptions:s,selectPopupProps:u,record:l}=e,h=xu(()=>{var b;(b=i.current)==null||b.open({ok:y=>{var w,S,E;["multiple","tags"].includes(e.mode)?(r==null||r(y),(w=e.onChange)==null||w.call(e,y,s[o.listCode]||[])):((S=e.onChange)==null||S.call(e,y[0],s[o.listCode]||[]),r==null||r(y[0])),(E=e.onBlur)==null||E.call(e)},cancel:()=>{var y;(y=e.onBlur)==null||y.call(e)}})});A.useImperativeHandle(a,()=>({focus:h}),[]);const d=A.useMemo(()=>_e.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return z.jsxs("div",{children:[z.jsx(gu,{...d,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,disabled:n,options:s[o.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:h}),z.jsx(ZT,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,record:l,defaultValue:g})]})}),X1=[null,(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function aJ(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Le(n.date);return((i=X1[n.type])==null?void 0:i.call(X1,a,Le(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const HE={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},iJ=A.forwardRef((e,t)=>{const r=A.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;A.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const o=A.useMemo(()=>{var h,d;const u=g=>(g==null?void 0:g.closest(ym))||document.body||document.documentElement;(h=e==null?void 0:e.formprops)!=null&&h.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let l={getPopupContainer:u};return n.includes(i)?l={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(l={...e.formprops.props,size:"small",onChange:((d=e.formprops)==null?void 0:d.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(l,e.record,e.apicode):l},[e.record,e.formprops,e.onSave]),s=()=>{var l;let u={...o};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((l=u.options[e.record.insId][0])!=null&&l.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},z.jsx(ae.Input,{ref:r,...u})):z.jsx(ae.Select,{ref:r,filterOption:(h,d)=>d.label&&d.label.indexOf(h)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(h=>({label:h.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:h.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return z.jsx(ae.Input,{ref:r,...u});case"DatePicker.RangePicker":return z.jsx(ae.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Is.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Is.isStatusChange(g.itemcode)?Is.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[HE[e.record.extension]]){const g=u.options[HE[e.record.extension]].map(b=>({label:b,value:b}));return z.jsx(ae.Select,{ref:r,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var b;!((b=e==null?void 0:e.record)!=null&&b.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return z.jsx(JT,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return z.jsx(XT,{ref:r,selectProps:u})}return z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return z.jsx(ae.Cascader,{ref:r,showSearch:{filter:(g,b)=>b.some(y=>y.label&&y.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const h=e.record.forbiddenTime,d=h&&h[e.name];return z.jsx(ae.DatePicker,{ref:r,...u,disabledDate:d?g=>aJ(h[e.name],g):void 0});case"Number":return z.jsx(ae.InputNumber,{ref:r,...u});case"Input.TextArea":return z.jsx(ae.Input.TextArea,{ref:r,...u});case"TreeSelect":return z.jsx(ae.TreeSelect,{ref:r,...u});case"CompositeForm":return z.jsx(Gf,{...u});default:return z.jsx(ae.Input,{ref:r,...u})}};return z.jsx(ae.Form.Item,{noStyle:!0,name:e.name,children:s()})}),oJ="_imgOuter_16ygq_1",sJ="_imgInner_16ygq_9",VE={imgOuter:oJ,imgInner:sJ},uJ=e=>z.jsx("img",{...e,src:e.src}),QT=e=>z.jsx(ae.Image,{...e,src:e.src}),Iy=e=>z.jsx("div",{className:VE.imgOuter,children:z.jsx(QT,{preview:!1,src:e.src,className:VE.imgInner,placeholder:z.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:z.jsx(Dt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),Qt=class Qt{static avoid0TypeConvert(t){return _r.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Le.isMoment(a)?_r.momentToRawData(a):a??""}return t=n(t),r=n(r),_e.isNil(t)&&_e.isNil(r)||_e.isNaN(t)&&_e.isNaN(r)?!0:t instanceof Object?_e.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!_e.isNil(t.inProcess[r])&&!_e.isNil(t.inProcess)&&Qt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!_e.isNil(t.newVal[r])&&!_e.isNil(t.newVal)&&Qt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],o=a.map(u=>{const l=t.inProcess[u],h=t[u],d=Qt.isEqual(l,h);return r==null||r("inProcess",u,d,l,h),d}).some(u=>!u),s=i.map(u=>{const l=t.newVal[u],h=t[u],d=Qt.isEqual(l,h);return r==null||r("newVal",u,d,l,h),d}).some(u=>!u);return{hasOptType:n,hasInProcess:o,hasNewValue:s}}static isEmptyValue(t){return typeof t=="number"?!1:_e.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:o,filters:s}=t;const u=Is.isUser(i.itemCode||""),l=i.tab==="Delegate";if(u&&l&&s){const h=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),d=_e.map(s.split("~!~"),g=>_e.split(g,"-")[0]);_e.includes(d,h[0])?s.split("~!~").map(g=>{if(h.includes(g.split("-")[0])){const b=g.split("-")[1].split(",");b&&Array.isArray(b)&&(_e.remove(b,y=>y==""||y==null),r.map(y=>(y.apicode==="Category"&&_e.forEach(y.formitem.props.options,w=>{_e.includes(b,w.itemCode)?w.isHidden=!1:w.isHidden=!0,b.length==0&&(w.isHidden=!1)}),y)))}}):r.map(g=>(g.apicode==="Category"&&_e.forEach(g.formitem.props.options,b=>{b.isHidden=!1}),g))}if(i.tab!=="History"){const h=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),d=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(o&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(o.split("-")[0])){const g=Qt.getFixAttrFilterOrSortInfo({filterOrSort:o,attrs:n||r.map(b=>b.attr)});o=(g==null?void 0:g.value)||o}else h.includes(o.split("-")[0])?o=o?`attributes.${o}`:"":d.includes(o.split("-")[0])&&(o=o?`current.${o}`:"");if(s){const g=r.filter(b=>["OldVersion"].includes(b.apicode)).map(b=>b.dataIndex);s=s.split("~!~").map(b=>{if(console.log(b,"item"),g.includes(b.split("-")[0]))return`current.${b.split("-")[0]}-${b.split("-")[1]===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${b.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(b.split("-")[0])){const y=Qt.getFixAttrFilterOrSortInfo({filterOrSort:b,attrs:n||r.map(w=>w.attr)});return(y==null?void 0:y.value)||s}if(h.includes(b.split("-")[0]))return b?`attributes.${b}`:"";if(d.includes(b.split("-")[0]))return b?`current.${b}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const h=_r.transformArrayToMap(n,"apicode","id");o=o.replace("insVersionOrder",`attributes.${h.Revision}`),s=s.replace("insVersionOrder",`attributes.${h.Revision}`)}return{sorters:o,filters:s,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),o=t.querySelector(".frontend-table-body").querySelector("colgroup");let s=null;return i&&(s=new MutationObserver(async(l,h)=>{const[d]=l;if(d.type=="attributes"&&d.attributeName=="style"&&!i.inhibit&&!_e.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const b=Number(g)-i.offsetWidth,y=a.children.length-2,w=_e.round(b/y,2);Array.from(a.children,(S,E)=>{const _=o.children[E];if(S==i)S.setAttribute("style",`width:${g}px;max-width:${g}px;`),_.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(E!=a.children.length-1){const C=S.style.width.replace("px","");S.setAttribute("style",`width:${Number(C)+w}px;`),_.setAttribute("style",`width:${Number(C)}px;`)}})}}else i.inhibit=!1}),s.observe(i,{attributeFilter:["style"]})),()=>{s==null||s.disconnect(),s=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[o]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([s,u])=>n==u)||[];if(o){const s=_r.getAttrOf(r,o);if(s){s.apicode==="Version"&&(a=a===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=Ul.getAttributesMapId(s),l=Ul.isQuoteAttr(s)?"attributes":"current";return{apicode:o,id:u,attr:s,filterOrSortValue:a,prefix:l,value:`${l}.${u}-${a}`}}}}}};Ar(Qt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var s;return r&&r[0]?_e.isArray(r[0])&&t?(s=t.props)!=null&&s.treeCheckable||t.props.mode==="multiple"?Qt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Qt.renderReadonlyItem({value:r[0],formitem:t}):Le.isMoment(r[0])?[Le(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],o=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:o?i:r||[],needTransform:o}}),Ar(Qt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(fi.isMosaic(a))return z.jsx(co,{});const{trulyHighlight:i,needTransform:o}=Qt.getTrulyHighlight({highlight:t,formitem:r});return o?z.jsx(rs,{highlight:i,value:n}):n}),Ar(Qt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!_e.isNil(t.newVal[r])))if(Qt.isEqual(t.newVal[r],t[r])){if(Qt.isEqual(t.newVal[r],t[r]))return z.jsx("div",{style:{width:"100%"},children:z.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return z.jsxs("div",{style:{width:"100%"},children:[z.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),z.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Qt.isEqual(t.inProcess[r],t[r]))return z.jsxs("div",{style:{width:"100%"},children:[z.jsx("div",{className:ki.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Qt.wrapperHighLight({originValue:t.inProcess[r],value:Qt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),z.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Qt.isEqual(t.newVal[r],t[r])?z.jsxs("div",{style:{width:"100%"},children:[z.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),z.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):z.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Ar(Qt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,o,s,u,l,h;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?_e.isArray(n)&&n instanceof Array?n.map(d=>_r.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(d=>_r.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):"":_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&_e.isArray(n)&&n instanceof Array?n.map(d=>_r.getLabelInOptions({value:typeof d!="string"?d.value:d,options:(r==null?void 0:r.props.treeData)||[]})).join(","):_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Le.isMoment(n)){const g=n.creationData();return n.format(((o=r==null?void 0:r.props)==null?void 0:o.format)??g.format)}else return Le(n).format(((s=r==null?void 0:r.props)==null?void 0:s.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!_e.isArray(n)?z.jsx(ae.Popover,{placement:"right",content:z.jsx("div",{style:{height:"60px",width:"60px"},children:n?z.jsx(Iy,{src:`/api${n}`}):z.jsx(z.Fragment,{})}),trigger:"hover",children:z.jsx("div",{style:{height:"26px",width:"26px"},children:n?z.jsx(Iy,{src:`/api${n}`}):z.jsx(z.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((h=_e.find((l=r.props)==null?void 0:l.options,{id:n.split("~%~")[1]}))==null?void 0:h.name)||""}`:n:"":r.isbomtag&&!_e.isArray(n)&&!(n instanceof Array)?n?_r.renderBomTag(n):"":_e.isArray(n)&&n instanceof Array?n.join(","):n??""}),Ar(Qt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Ar(Qt,"renderVersionColumn",(t,r)=>fi.isMosaic(t)?z.jsx(co,{}):t==="Draft"||_e.isString(t)&&t.split(" ")[0]==="Draft"?z.jsx(rs,{highlight:r||[],value:J("sys.label.draft",{placeholder:"草稿"})}):z.jsx(rs,{highlight:r||[],value:_e.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Jo=Qt;const lJ=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:o,handleFill:s,handleDoubleClick:u,renderCacheCell:l,loading:h,required:d,formitem:g,rowKey:b,render:y,tableKey:w,menuId:S,highlight:E,isVersion:_,isUser:C,preRender:f,apicode:p,canselectcell:v,selectedCell:x,fillContextMenu:k,setInitialState:O,...$})=>{var me,ee,ve;const D=A.useContext(Qp),[V,I]=A.useState(!1),M=A.useContext(zw),F=A.useRef(null),T=["Input","Input.TextArea","Number"];v&&x&&(x==null?void 0:x.dataIndex)===n&&(x==null?void 0:x.record[b])==a[b]&&(x==null?void 0:x.tableKey)==w&&($.style={...$.style,background:"#ddeffe"}),A.useEffect(()=>{var ue,fe;V?(ue=F.current)==null||ue.focusFormItem():(fe=F.current)==null||fe.blurFormItem()},[V]);const N=ue=>{for(;ue&&ue.nodeName!=="TR";)ue=ue.parentNode;return ue},j=async(ue,fe)=>{var Te,xe,$e;const he=()=>{if(!(!e&&!n)&&fe){const Pe=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});N(fe==null?void 0:fe.target)&&N(fe==null?void 0:fe.target).dispatchEvent(Pe)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){he();return}if(ue?u&&await u(a):!0){if(await M.validateFields(),ue){let Pe=a.newVal&&!_e.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!_e.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Me=(Te=g.props)==null?void 0:Te.format;Pe=Pe?Le(Pe,typeof Me=="string"?Me:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((xe=g==null?void 0:g.props)!=null&&xe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&(($e=g==null?void 0:g.props)==null?void 0:$e.mode)==="multiple")&&(Pe==""?Pe=[]:typeof Pe=="string"&&(Pe=Pe.split(","))),M.setFieldsValue({[n]:Pe})}I(!V)}else he()},H=async()=>{try{const ue=await M.validateFields();j(),Object.keys(ue).forEach(fe=>{(ue[fe]===null||ue[fe]===void 0)&&(ue[fe]=""),typeof ue[fe]=="string"&&(ue[fe]=ue[fe].trim())}),i({...a,...ue})}catch{}},B=(ue,fe)=>l||z.jsx("div",{className:ki.edit_cell,children:z.jsx(rs,{value:Jo.renderReadonlyItem({value:ue[fe],formitem:g}),highlight:oe})}),{show:U}=IZ({id:S}),G=()=>{v&&(o(),O&&O(ue=>({...ue,selectedCell:{dataIndex:n,record:a,tableKey:w}})))},X=ue=>{if(n){if(G(),ue.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;U(ue,{props:{key:{dataIndex:n,record:a}}})}};let K=r;const ne=a?a[n]:"",ie=A.Children.map(r,ue=>{var fe;if(A.isValidElement(ue)){const he=(fe=ue==null?void 0:ue.props)==null?void 0:fe.children;return!he||!Array.isArray(he)?null:he.some(Te=>{const xe=Te==null?void 0:Te.props;return xe&&typeof xe.className=="string"?xe.className.includes("frontend-table-row-indent"):!1})?he:null}else return null});if(!fi.readPermission(ne))return z.jsxs("td",{...$,children:[ie,z.jsx(co,{inLine:!0})]});const{trulyHighlight:oe}=Jo.getTrulyHighlight({highlight:E,formitem:g});if(C){const ue=(D==null?void 0:D.overrideLinkCom)||"a";K=z.jsx(ue,{userId:a[n],id:a[n],record:a,content:Jo.renderReadonlyItem({value:a[n],formitem:g}),highlight:oe})}else if(t){if(g.type==="Date"){const ue=(me=g.props)==null?void 0:me.format,fe=typeof ue=="string";let he,ke;if(Le.isMoment(a[n])){const Te=a[n].creationData();he=Te==null?void 0:Te.input,ke=Te==null?void 0:Te.format}a[n]=a[n]?Le(he||a[n],fe?ue:ke||"YYYY-MM-DD HH:mm:ss"):null}if(((ee=g.props)!=null&&ee.treeCheckable||((ve=g.props)==null?void 0:ve.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),V)K=z.jsx("div",{onDoubleClick:ue=>{ue.stopPropagation()},children:z.jsx(ae.Form.Item,{validateTrigger:T.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:z.jsx(iJ,{name:n,ref:F,onSave:()=>H(),formprops:g,record:a,apicode:p})})});else if(!y){let ue=B(a,n);K=z.jsxs("div",{onContextMenu:k===!1?void 0:X,title:a.newVal?Jo.renderReadonlyItem({value:a.newVal[n],formitem:g}):Jo.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ie,ue]})}}else if(n&&!y)return _?z.jsx("td",{...$,title:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:G,children:z.jsx(rs,{value:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:oe})}):z.jsx("td",{...$,title:a&&a[n]?a[n]:"",onClick:G,children:z.jsx(rs,{value:a?_e.isNil(a[n])?"":a[n]:"",highlight:oe})});const de=K==null?void 0:K.toString(),pe=Array.isArray(K)&&K[0]===void 0,be=de!=null&&de.includes("[object ")?void 0:pe?de==null?void 0:de.replace(/^\,/,""):de;return z.jsx("td",{...$,onDoubleClick:ue=>{ue.stopPropagation(),j(!0,ue)},onClick:()=>{n&&G()},children:z.jsx("div",{title:be,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:K})})},cJ=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},dJ=e=>z.jsxs(VZ,{id:e.menuId,children:[z.jsx(zE,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:J("sys.prompt.fillUp",{placeholder:"向上填充"})}),z.jsx(zE,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:J("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),fJ=e=>{const[t,r]=A.useState({}),[n,a]=A.useState({}),i=A.useRef(null),{Option:o}=ae.Select,s=(g,b)=>{r(g),a(b)};return{getColumnSearchProps:A.useCallback((g,b)=>{const y=()=>{var _,C;return typeof(b==null?void 0:b.title)=="string"?b==null?void 0:b.title:(C=(_=b==null?void 0:b.search)==null?void 0:_.props)==null?void 0:C.placeholder},w=(_,C,f)=>{C()},S=(_,C)=>{_(),C()},E=(_,C,f)=>{var x,k;const p={size:"small",onChange:O=>{O&&O.target?_(O.target.value?[O.target.value]:[]):_(O?[O]:[])},style:{marginBottom:8,display:"block"}},v=z.jsx(ae.Input,{size:"small",ref:i,placeholder:J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:y()}}),value:C[0],onPressEnter:()=>w(C,f),..._e.omit(p,["size"])});if(b.search)switch(b.search.type){case"Input":return v;case"Select":let O=(k=(x=b==null?void 0:b.search)==null?void 0:x.props)==null?void 0:k.options;return b.apicode==="ProblemVersion"&&(O=_e.uniqBy(_e.flatten(Object.values(O||{})),"value")||[],O=O.map($=>({label:$.label==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):$.label,value:$.value}))),O=(O||[]).filter($=>fi.readPermission($.label)),z.jsx(ae.Select,{size:"small",onKeyUp:$=>{($.keyCode===13||$.charCode==13)&&w(C,f)},ref:i,mode:"multiple",placeholder:`${J("sys.label.selectOption",{placeholder:"请选择"})} ${y()}`,value:C[0],filterOption:($,D)=>D.label&&D.label.indexOf($)>=0,..._e.omit(p,["size"]),children:(O||[]).map($=>{if(!$.isHidden)return A.createElement(o,{...$,value:$.value,disabled:$.disabled,key:$.value,label:$.label},z.jsx("div",{title:$.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:$.label}))})});case"Date":return z.jsx(ae.DatePicker,{size:"small",value:C[0],..._e.omit(p,["size"])});case"CompositeForm":return z.jsx("div",{className:"compositeFormClass",children:z.jsx(Gf,{...b.formitem.props,valueType:b.valueType,value:C[0],size:"small",..._e.omit(p,["size"])})})}else return v};return b.search?{filterIcon:_=>z.jsx(kl,{style:{color:_?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:_,selectedKeys:C,confirm:f,clearFilters:p})=>z.jsxs("div",{style:{padding:8},children:[z.jsx("div",{style:{marginBottom:"5px"},children:E(_,C,f)}),z.jsxs(ae.Space,{children:[z.jsx(ae.Button,{type:"primary",onClick:()=>w(C,f),icon:z.jsx(kl,{}),size:"small",style:{width:90},children:J("sys.filter",{placeholder:"筛选"})}),z.jsx(ae.Button,{onClick:()=>S(p,f),size:"small",style:{width:90},children:J("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:_=>{_&&(b.search.type==="Input"||b.search.type==="Select")&&setTimeout(()=>{var C;return(C=i==null?void 0:i.current)==null?void 0:C.focus()},100)}}:{}},[]),setTableFiltered:g=>{s(g.sort(t),g.screen(n))},clearFilters:g=>{s({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,b,y,w)=>{a(b),r(y),s(y,b);let S="",E="";_e.isArray(y)?y&&y.length&&(S=y.map(C=>`${C.field}-${C.order}`).join(",")):y.field&&y.order&&(S=`${y.field}-${y.order==="ascend"?"asc":"desc"}`);const _=C=>C.map(f=>Array.isArray(f)?f.join(","):Le.isMoment(f)?f.format("YYYY-MM-DD"):f);E=_e.remove(Object.keys(b).map(C=>b[C]&&typeof b[C][0]=="string"||typeof b[C]!="string"&&b[C]&&b[C][0]?`${C}-${_(b[C]||[]).join(",")}`:null),C=>C!==null).join("~!~"),e&&e(S,E,y.field,b)},sortInfo:t,filterInfo:n}},hJ=e=>{var o,s;const t=((o=e.dataSource)==null?void 0:o.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(s=e.rowSelection.selectedRowKeys)==null?void 0:s.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=z.jsx(Dt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?z.jsx(z.Fragment,{}):z.jsxs("div",{className:`${ki.table_footer} ${e.className||""}`,children:[e.hideTableCount?z.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):z.jsxs("div",{style:a,children:[J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),z.jsxs("span",{children:[" ",t,"/",r," "]}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",J("sys.selected",{placeholder:"已选"}),z.jsx("span",{children:` ${n} `}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&z.jsx("div",{children:z.jsx(Dt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},pJ=(e,t,r,n,a,i,o)=>{var f;const[s,u]=A.useState(!1),[l,h]=A.useState(0),[d,g]=A.useState(e.columns||[]),[b,y]=A.useState(null),[w,S]=A.useState(null),E=p=>(v,{size:x})=>{v.stopImmediatePropagation();const k=[...d];k[p]={...k[p],width:x.width},g(k)};A.useEffect(()=>{g(e.columns)},[e.columns]);const _=Number(((f=e==null?void 0:e.scroll)==null?void 0:f.y)||i)+24;return{renderColumns:d?d.filter(p=>p).map((p,v)=>_e.extend({...p,sorter:p.sorter?{}:!1,required:p.editable?p.required:!1,sortOrder:t.field===p.dataIndex&&t.order,filteredValue:r?r[p.dataIndex]||[]:[],onHeaderCell:x=>({dataIndex:p.dataIndex,width:x.width,required:p.required,editable:p.editable,trulyHeight:_,tableKey:e.tableKey,formitem:p.formitem,onResize:E(v),onResizeOver:k=>{h(k.screenX),u(!0)},onResizeStop:k=>{console.log(k),u(!1)}}),onCell:x=>{var $,D;const k=(($=p==null?void 0:p.onCell)==null?void 0:$.call(p,x))||{},O=(typeof e.rowKey=="string"?e.rowKey:(D=e.rowKey)==null?void 0:D.call(e,x))||"id";return{record:x,className:`${p.className??""} ${p.dataIndex==w&&x[O]==b?ki.loading:""}`,editable:p.editable,isVersion:p.isVersion,isUser:p.isUser,apicode:p.apicode,dataIndex:p.dataIndex,title:p.title,formitem:p.formitem,required:p.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:p.render,highlight:r[p.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:o,renderCacheCell:Jo.renderCacheCell(x,p.dataIndex,p.formitem,void 0,{highlight:r[p.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:V=>{if(e.onDoubleClick){const I=e.onDoubleClick(p,V);return I instanceof Promise&&(y(x[O]),S(p.dataIndex),I.finally(()=>{y(null),S(null)})),I}else return!0},handleSave:V=>{e.onSubmit&&e.onSubmit(V,p)},...k}}},a(p.dataIndex,p))):[]}},eP="INPUT_NAMESPACE",mJ=(e,t,r,n)=>{const[a,i]=A.useState();function o(s){const u=s.toString(),l=u.indexOf(".");return l===-1?0:u.slice(l+1).length}return A.useEffect(()=>{async function s(u){var b,y,w,S,E,_,C,f,p,v;if(u.target instanceof HTMLInputElement&&((y=(b=u.target)==null?void 0:b.dataset)==null?void 0:y.type)!=eP||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${ym}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let l=(w=u.clipboardData)==null?void 0:w.getData("text");const h=await Promise.resolve().then(()=>require("./xlsx-CWPQLUZU.js"));if(l&&r&&n){var d=h.read(l,{type:"binary"}),g=d.SheetNames;const x=h.utils.sheet_to_json(d.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),k=n.findIndex(D=>{var V,I,M;return D.dataIndex==r.dataIndex&&D.editable&&(((V=D.formitem)==null?void 0:V.type)=="Input"||((I=D.formitem)==null?void 0:I.type)=="Input.TextArea"||((M=D.formitem)==null?void 0:M.type)=="Number")});let O=n.findIndex((D,V)=>{var I,M,F;return V>k&&(!D.editable||!(((I=D.formitem)==null?void 0:I.type)=="Input"||((M=D.formitem)==null?void 0:M.type)=="Input.TextArea"||((F=D.formitem)==null?void 0:F.type)=="Number"))});O==-1&&(O=n.length);const $=n.slice(k,O);if($.length>0){const D=x.map(V=>V.filter(I=>V.indexOf(I)<$.length))||[];for(let V=0;V<D.length;V++){const I=D[V]||[];for(let M=0;M<I.length;M++){const F=I[M],T=((S=$[M].formitem)==null?void 0:S.type)=="Number",N=(_=(E=$[M].formitem)==null?void 0:E.props)==null?void 0:_.precision,j=(f=(C=$[M].formitem)==null?void 0:C.props)==null?void 0:f.min,H=(v=(p=$[M].formitem)==null?void 0:p.props)==null?void 0:v.max;if(T){const B=_e.toNumber(F),U=B&&(j?B>=j:!0)&&(H?B<=H:!0)&&(_e.isNumber(N)&&N>0?o(B)<=N:!0);I[M]=U?B:void 0}}}i(D)}}}return document.addEventListener("paste",s),()=>{document.removeEventListener("paste",s)}},[r,n]),{pasteData:a}},gJ=e=>`${e}Key`,Z1=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,vJ=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...s)=>`${e}+${s.join(n)}`,i=di(t),o=di(_e.fromPairs(i.current.map(([s,u])=>[a(...s),u])));A.useEffect(()=>{console.log("初始化 useShortcutKey");const s=()=>i.current.map(([b])=>b).flat(1),u=b=>{var y,w,S;(!r||((y=b.target)==null?void 0:y.id)==r)&&(l.push(Z1(b)),(S=(w=o.current)[l.join(n)])==null||S.call(w,b))},l=[],h={},d=b=>{var y;if(!r||((y=b.target)==null?void 0:y.id)==r){const w=Z1(b);b[gJ(e)]&&!h[w]&&(h[w]=!0,s().includes(b.key)&&l.includes(e)&&b.preventDefault(),u(b))}},g=b=>{const y=Z1(b);h[y]=!1,l.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",d),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",d)}},[])},bJ=(e,t)=>{const[r,n]=A.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:o}=e,{selectedRowKeys:s=[]}=o||{},{childKeyName:u="children",isMark:l=!0,initialState:h,setInitialState:d}=a||{},g=String(e.rowKey||"id"),[b,y]=A.useState(!1),w=()=>b&&s.length,S=p=>v=>{w()&&p(v)},E=async(p,v)=>{var k;const x=[];x.type="shear",x.namespace=t,v.forEach(O=>{_r.isDelTableRow(O)||x.push({...O,toShear:()=>O.shear=!0})}),_r.ArrayAttributeFlat(x,u,O=>{O.toShear||(O.shear=!0)}),(!p.onBeforeShear||await p.onBeforeShear(x))&&(x.forEach(O=>{O.toShear(),delete O.toShear}),console.log("剪切",x),d&&d(O=>({...O,clipboard:x})),p.setDataSource("shear",i),(k=p.onAfterShear)==null||k.call(p,x),x.length&&(x.onPasteCallback=async O=>{var I;const $=O==t,D=[...i],V=()=>{d&&d(M=>({...M,clipboard:[]})),[...x].reverse().forEach(M=>{const F=_r.getTreeRelationNoRecursion({data:D,lookup:T=>T[g]==M[g],childrenKey:u});l&&F.self.dataType!=="add"?(F.self.shear=!1,F.self.dataType="del",_r.ArrayAttributeFlat(F.self[u],u,T=>{T.toShear||(T.shear=!1,T.dataType="del")})):F.parent?F.parent[u].splice(F.index,1):D.splice(F.index,1)}),p.setDataSource("shear",D)};return!p.onBeforeDeleteShear||await p.onBeforeDeleteShear({isSameSpace:$,deletes:x})?(V(),(I=p.onAfterDeleteShear)==null||I.call(p,{isSameSpace:$,deletes:x}),Promise.resolve(D)):Promise.reject(J("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},_=async(p,v)=>{var k;const x=[];x.type="copy",x.namespace=t,v.forEach(O=>{_r.isDelTableRow(O)||(O.shear=!1,_r.ArrayAttributeFlat(O[u],u,$=>{$.shear=!1}),x.push({...O}))}),(!p.onBeforeCopy||await p.onBeforeCopy(x))&&(console.log("复制",x),d&&d(O=>({...O,clipboard:x})),p.setDataSource("paste",i),(k=p.onAfterCopy)==null||k.call(p,x))},C=async(p,{pasteData:v,pasteTarget:x})=>{var O,$;const k=_r.ArrayAttributeFlat(v,u).every(D=>!x.includes(D[g]));if(console.log({isNonSelf:k}),x.length==1&&v.length&&k){const V=_r.ArrayAttributeFlat(i,u).find(M=>M[g]==x[0]),I=p.pasteInto||"child";if(!p.onBeforePaste||await p.onBeforePaste({target:V,rows:v,type:I}))try{const M=await((O=v.onPasteCallback)==null?void 0:O.call(v,t))||[...i],F=_r.getTreeRelationNoRecursion({data:M,lookup:T=>T[g]==V[g],childrenKey:u});if(l){const T=N=>N.map(j=>Object.assign({...j,shear:!1,dataType:"add",[g]:_r.generateUUID(),primitiveInsId:j.primitiveInsId||j[g]},j[u]?{[u]:T(j[u].filter(H=>!N.some(B=>B[g]==H[g]))||[])}:{}));v=T(v)}if(I=="child"){const T=F.self[u];F.self[u]=[...T,...v]}else F.parent?F.parent[u].splice(F.index+1,0,...v):M.splice(F.index+1,0,...v);p.setDataSource("paste",M),($=p.onAfterPaste)==null||$.call(p,{target:V,type:I})}catch(M){console.error(M)}}};a&&vJ(_r.isMac()?"meta":"ctrl",{shortcuts:[[["x"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({shearList:p}),E(a,p)})],[["c"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({copyList:p}),_(a,p)})],[["v"],S(async()=>{const p=(h==null?void 0:h.clipboard)||[];C(a,{pasteData:p,pasteTarget:s})})]],namespace:t});const f=A.useRef(null);return A.useEffect(()=>{var p;r||((p=f.current)==null||p.focus(),y(!0))},[s.length,s[0]]),A.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:b,focus:()=>{var v;const p=document.querySelector(":focus");p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement||(v=f.current)==null||v.focus()},shear:E,copy:_,paste:C,FocusDom:z.jsx("input",{ref:f,"data-type":eP,type:"text",id:t,onFocus:()=>y(!0),onBlur:()=>y(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},yJ=(e,t,r,n)=>{const[a,i]=A.useState();return A.useEffect(()=>{async function o(s){if(r){const u=s.clipboardData,l=r.dataIndex,h=r.record;let d=null;if(h.newVal&&Object.hasOwn(h.newVal,l)?d=h.newVal[l]:d=h[l]||null,d)try{u.setData("text/plain",d),i(d),s.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",o),()=>{document.removeEventListener("copy",o)}},[r,n]),{copyData:a}},zw=A.createContext(null),ym="tableTopBox",_m=A.forwardRef((e,t)=>{var D;A.useImperativeHandle(t,()=>({scrollTo:V=>{i.current.scrollTo(V)},scrollXTo:V=>{if(a.current){const I=a.current.querySelector(".frontend-table-body");I&&(I.scrollLeft=V)}},clearFilters:h,setTableFiltered:b,clipboard:$}));const[r]=A.useState(_r.generateUUID()),n=A.useRef(null),a=A.useRef(null),i=A.useRef(null),[o]=ae.Form.useForm(),s=cJ(),{sortInfo:u,filterInfo:l,clearFilters:h,getColumnSearchProps:d,onFiltersChange:g,setTableFiltered:b}=fJ(e.onFilterAndSorter),[y,{toggleFullscreen:w,exitFullscreen:S}]=J5(a,{pageFullscreen:{zIndex:500}}),E=e.tableKey||r;A.useEffect(()=>{const V=I=>{I.key=="Escape"&&y&&S()};return addEventListener("keydown",V),()=>{removeEventListener("keydown",V)}});const _=EZ({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||y),[C,f]=CZ(()=>({scroll:{y:1e3},ref:i}),[]),p={header:{cell:kZ},body:{cell:lJ}};A.useMemo(()=>f(p),[f]);const{renderColumns:v}=pJ({...e,tableKey:E},u,l,s,d,_,e.selectedCell),{pasteData:x}=mJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{var V;if(x&&e.selectedCell){const I=e.dataSource||[],M=String(e.rowKey)||"id",F=I.findIndex(G=>{var X;return G[M]==((X=e.selectedCell)==null?void 0:X.record[M])}),T=e.columns.findIndex(G=>{var X;return G.dataIndex==((X=e.selectedCell)==null?void 0:X.dataIndex)});let N=((V=x[0])==null?void 0:V.length)||0,j=(x==null?void 0:x.length)||0;const H=e.columns.slice(T,T+N),B=I.slice(F,F+j);let U=[];x.forEach((G,X)=>{if(B.length>X){const K={};G.forEach((ne,ie)=>{H.length>ie&&(K[H[ie].dataIndex]=ne,K[M]=B[X][M])}),U.push(K)}}),e.onPaste&&e.onPaste(_r.transformArrayToMap(U,M))}},[x]);const{copyData:k}=yJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{k&&e.selectedCell&&e.onCopy&&e.onCopy(k)},[k]);const{run:O}=CH(async V=>{const I=e.pageNo||1,M=e.pageSize||10,F=e.total||0;Math.abs(parseInt(V.target.scrollTop+V.target.clientHeight)-V.target.scrollHeight)<1.5&&!e.loading&&I*M<F&&e.onScroll&&e.onScroll(I+1)},{wait:400}),$=bJ(e,r);return z.jsxs("div",{ref:n,id:`table_key_${E}`,className:`${ki.main} ${ym}`,style:{position:"relative",overflow:"hidden"},onClick:V=>$.focus(),onScrollCapture:V=>{V.target.scrollHeight!==24&&V.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&O(V):O(V))},children:[z.jsx(dJ,{menuId:s,..._e.pick(e,["onFill"])}),$.FocusDom,z.jsxs(ae.Form,{form:o,component:!1,children:[z.jsx(zw.Provider,{value:o,children:z.jsx(ae.Table,{className:ge(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:C,bordered:!0,..._e.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:E,loading:{indicator:z.jsx(Vf,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:V,onExpand:I,record:M,expandable:F})=>M.children&&M.children.length||M.hasChildren?V?z.jsx(y5,{className:"expand",onClick:T=>{I(M,T)}}):z.jsx(_5,{className:"expand",onClick:T=>{I(M,T)}}):(e.isTree||F!==void 0)&&z.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:_,scrollToFirstRowOnChange:!0,..._e.merge(e.scroll,{x:(D=e.scroll)==null?void 0:D.x})},columns:v,onChange:g})}),z.jsx(hJ,{...e,className:e.tableFooterClassName,clearFilters:h,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:al}=ae.Select,tP=A.forwardRef((e,t)=>{const r=A.useRef("1848553711328477186"),[n,a]=A.useState([]),[i,o]=A.useState([]),[s,u]=A.useState([]),l=Sa({pageNo:1,pageSize:50,total:0}),h=Sa({sorter:"",filters:"",itemCodes:`${Cs.material},${Cs.document},${Cs.file}`,initialItemCodes:""}),d=Sa({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:J("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:J("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});qf(()=>{var _;let E=[];for(let C of e.columns||d.columns)E.push({...C,render:!C.render&&((_=e.placeholderCode)!=null&&_.includes(C.dataIndex))?f=>z.jsx(rs,{value:f,highlight:g.numberHighLight||[]}):C.render});d.columnsHighlight=E,e.isSelect&&e.allCategories?e.getItems().then(C=>{if(C.code==200){let f=[];for(let v of C.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&f.push({label:v.name,value:v.code});d.conditionObject=f;let p=_e.map(f,"value").join(",");h.itemCodes=p,h.initialItemCodes=_e.cloneDeep(p),y(!0)}}):y(!0)}),A.useEffect(()=>(e.enter&&!d.focus&&s.length>0?b():document.onkeydown=null,()=>{document.onkeydown=null}),[s,d.focus]),A.useImperativeHandle(t,()=>({getLoading:E=>{d.loading=E},backfill:E=>{u(E)}}));const g=Sa({numberHighLight:[]}),b=()=>{document.onkeydown=function(E){var _=window.event||E,C=_.keyCode||_.which;if(C==13&&!d.loading){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ae.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let f=s.length?_e.map(s,"id").join(","):"";e.onChange&&e.onChange(f),e.handleSubmit&&e.handleSubmit(s)}}},y=async(E=!1,_)=>{d.loading=!0;const{pageNo:C,pageSize:f}=l,{filters:p,sorter:v,itemCodes:x}=h;let k={...e.params};if(d.searchValue&&(e.formate=="1"||e.formate=="2"?k.orQuery=e.params.columns.split(",").map(I=>I+"-"+d.searchValue).join("~!~"):k.keyword=d.searchValue),!e.getUrlData){a([]),l.total=0,d.loading=!1;return}const{records:O,total:$,columns:D}=await e.getUrlData({pageNo:C,pageSize:f,filters:p,sorter:v,itemCodes:x,refreshSize:_,searchValue:d.searchValue,sideChoice:d.sideChoice,params:k});D&&(d.columns=D),d.loading=!1;const V=O||[];l.total=$,E?(a(V),o(_e.cloneDeep(V)),e.onInit&&e.onInit(V)):(a([...n,...V]),o(_e.cloneDeep([...n,...V])))},w=E=>{E=="0"?h.itemCodes=h.initialItemCodes:h.itemCodes=E,a([]),u([]),l.pageNo=1,d.searchValue="",y(!0,l.pageSize)},S=E=>{u([]),e.searchChange&&e.searchChange(E),d.searchValue=E,g.numberHighLight=E?[E]:[],l.pageNo=1,y(!0)};return z.jsx($u,{width:e.width,forceRender:!0,className:W1.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(s)},children:z.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&z.jsx("div",{className:W1.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?z.jsx(IT,{itemCode:Cs.technology,onGetTreeFields:E=>{},onSelected:E=>{r.current=E.id,l.pageNo=1,y(!0)},outIsSelected:!1,getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab()}):[J("sys.myCreated",{placeholder:"我创建的"}),J("sys.label.all",{placeholder:"全部"})].map((E,_)=>z.jsx("div",{onClick:()=>{d.sideChoice=_,l.pageNo=1,y(!0)},style:{marginBottom:"12px",cursor:"pointer",color:_==d.sideChoice?"#0563b2":""},children:E},_))}),z.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&z.jsx(ae.Form.Item,{rules:[{required:!1}],children:z.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&z.jsxs(z.Fragment,{children:[e.allCategories&&d.conditionObject.length>0&&z.jsxs(ae.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[z.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),"(",d.conditionObject.map(E=>z.jsx(al,{value:E.value,children:E.label})),")"]}),!e.allCategories&&z.jsxs(ae.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[z.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),z.jsx(al,{value:Cs.material,children:J("sys.label.material",{placeholder:"物料"})}),z.jsx(al,{value:Cs.document,children:J("sys.document.document",{placeholder:"文档"})}),z.jsx(al,{value:Cs.file,children:J("sys.label.file",{placeholder:"文件"})})]})]}),z.jsx(ae.Input,{style:{width:240},onBlur:()=>{d.focus=!1},onFocus:()=>{d.focus=!0},allowClear:!0,value:d.searchValue,placeholder:e.placeholder||J("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:z.jsx(Dt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{S(d.searchValue)}}),onChange:E=>{d.searchValue=E.target.value,E.target.value||(u([]),e.searchChange&&e.searchChange(""),l.pageNo=1,g.numberHighLight=[],y(!0))},onPressEnter:E=>{S(E.target.value)}})]})}),e.isDownload&&z.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[z.jsx(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"1")},children:J("sys.label.download",{placeholder:"下载"})}),z.jsx("span",{style:{marginRight:"24px"}}),z.jsxs(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"2")},children:[J("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),z.jsx("div",{className:W1.tableFrame,style:{display:"flex"},children:z.jsx(_m,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:s.map(E=>E.id),onChange:(E,_)=>{e.isCheckbox?u(_):_.length?u([_.pop()]):u([])},getCheckboxProps:E=>({disabled:E.number==="~#~"||!!(e.convertFun&&_e.includes(E.unique,"-"))})},onRow:E=>({onDoubleClick:()=>{if(E.number!=="~#~")if(s.length>1){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ae.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(_e.map(s,"id").join(",")),e.handleSubmit&&e.handleSubmit(s)}else u([E]),e.onChange&&e.onChange(E.id),e.handleSubmit&&e.handleSubmit([E])}}),loading:d.loading,dataSource:n,columns:d.columnsHighlight,...l,scroll:{y:e.height||200},onScroll:E=>{l.pageNo=E,y()},onFilterAndSorter:(E,_,C)=>{if(u([]),e.isBuiltInSort)if(E){let f=_e.orderBy(n,[E.split("-")[0]],[E.split("-")[1]]);a(f)}else a(i);else{if(e.isUseRuleSort){const f=Jo.sortAndFilterTable({sorters:E,filters:_,sortersField:C,tableColumns:e.columns});h.sorter=f.sorters,h.filters=f.filters}else h.sorter=E,h.filters=_;l.pageNo=1,y(!0)}}})})]})]})})}),_J="_selectFrameBox_mktv5_1",wJ={selectFrameBox:_J},rP=A.forwardRef((e,t)=>{var o;const[r,n]=A.useState(e.value);A.useEffect(()=>{n(e.value)},[e.value]);const a=Sa({visible:!1,options:[],enter:!1});A.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var h;const s=(h=e.params)==null?void 0:h.ids,u=s?s.join(","):"",l=e.isCheckbox?r&&r.join(","):r;return`${u}${l!=null&&l.length&&u?",":""}${l??""}`};return z.jsxs("div",{className:wJ.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?z.jsx("div",{children:(o=_e.filter(e.options,s=>s.id==r)[0])==null?void 0:o.Name}):z.jsxs("div",{style:{display:"flex",gap:"5px"},children:[z.jsx(ae.Select,{style:{minWidth:"80px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:a.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:s=>{e.onChange&&e.onChange(s)},tagRender:s=>fi.readPermission(s.label)?z.jsx(ae.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:z.jsx(Dt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const u=r.filter(l=>l!==s.value);n(u),e.onChange&&e.onChange(u)}}),children:s.label},s.value):z.jsx(co,{})}),e.showButton?z.jsx(ae.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:z.jsx(Dt,{type:"content-search",style:{fontSize:"16px"}})}):z.jsx(z.Fragment,{})]}),a.visible&&z.jsx(tP,{visible:a.visible,title:e.title||J("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async s=>{const{records:u,total:l}=await e.getUrlData(s);return{records:u,total:l}},getItems:()=>e.getItems&&e.getItems()||[],params:{...e.params,ids:i()},getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab(),isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:a.enter,placeholder:e.searchPlaceholder||J("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:s=>{if(e.isCheckbox){let u=_e.compact(_e.concat(r,s.split(",")));e.onChange&&e.onChange(s?u:void 0)}else e.onChange&&e.onChange(s)},handleSubmit:s=>{e.isCheckbox?a.options=_e.concat(a.options,s):a.options=s,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:s=>{a.options=s},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),xJ="_searchTextTips_daoe4_1",SJ={searchTextTips:xJ};function CJ({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=A.useState(!1),[i,o]=A.useState([]),s=A.useRef(0);A.useEffect(()=>{o(r.options)},[r.options]);const u=A.useMemo(()=>{const l=h=>{s.current+=1;const d=s.current;o([]),a(!0),e(h,r).then(g=>{d===s.current&&(o(g),a(!1))})};return _e.debounce(l,t)},[e,t]);return z.jsx(ae.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?z.jsx("div",{style:{textAlign:"center"},children:z.jsx(ae.Spin,{size:"small"})}):z.jsx(ae.Empty,{image:ae.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{o(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:l=>z.jsxs(z.Fragment,{children:[l,z.jsx(ae.Divider,{style:{margin:"8px 0"}}),z.jsx("div",{className:SJ.searchTextTips,children:`${J("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${J("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function UE(e,t){var i,o;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,_e.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=_e.reject((o=r.result)==null?void 0:o.records,s=>{var u;return s[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const EJ=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),[a,i]=A.useState([]);return qf(async()=>{i(await UE("",e))}),z.jsx(CJ,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:UE,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),OJ=e=>z.jsx(z.Fragment,{}),op=e=>z.jsx(ae.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),nP=A.forwardRef((e,t)=>{const r=A.useContext(Qp),n=(r==null?void 0:r.formItemCom)||{},a=A.useCallback((s,u)=>{var g,b;const{type:l,cannotread:h,props:d}=s;if(h!=="0"){let y=!1;if(typeof e.readOnly=="boolean"?y=e.readOnly:typeof e.readOnly=="function"&&(y=e.readOnly()),l==="Input")return y?z.jsx(X0,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(X0,{...d});if(l==="Select")return d!=null&&d.loading?(u="",z.jsx(ae.Form.Item,{noStyle:!0,children:z.jsx(gu,{...d,options:[],loading:!0,value:((b=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:b.mode)==="multiple"?[]:"",disabled:y||(d==null?void 0:d.disabled)})})):d!=null&&d.options&&d.options.length?typeof u=="string"&&u.split(",").length>1&&(d==null?void 0:d.mode)!=="multiple"?e.readOnly?z.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(w=>z.jsx(ae.Tag,{children:_r.getLabelInOptions({value:w,options:(d==null?void 0:d.options)||[]})},w))}):(d.options=[...d==null?void 0:d.options,{label:u.split(",").map(w=>_r.getLabelInOptions({value:w,options:(d==null?void 0:d.options)||[]})).join(","),disabled:!0,value:u}],z.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...d,showSearch:!0,disabled:y||(d==null?void 0:d.disabled)})):z.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...d,showSearch:!0,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(gu,{...d,showSearch:!0,options:[],disabled:y||(d==null?void 0:d.disabled)});if(l==="PopupSelect")return d.options===void 0||d.options.length>0?z.jsx(rP,{...d,title:e.label,disabled:y||(d==null?void 0:d.disabled)},e.name):"";if(l==="SearchSelect")return z.jsx(EJ,{...d},e.name);if(l==="Checkbox")return z.jsx(ae.Checkbox,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Checkbox.Group")return z.jsx(ae.Checkbox.Group,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Input.TextArea")return y?z.jsx(ae.Input.TextArea,{...d,disabled:!0}):z.jsx(ae.Input.TextArea,{...d});if(l==="Input.Password")return y?z.jsx(ae.Input.Password,{...d,disabled:!0}):z.jsx(ae.Input.Password,{...d});if(l==="Date")return y?z.jsx(ae.DatePicker,{...d,size:"middle",placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.DatePicker,{...d});if(l==="DatePicker.RangePicker")return y?z.jsx(ae.DatePicker.RangePicker,{...d,disabled:y||(d==null?void 0:d.disabled),placeholder:["",""],separator:""}):z.jsx(ae.DatePicker.RangePicker,{...d});if(l==="TimePicker.RangePicker")return y?z.jsx(ae.TimePicker.RangePicker,{...d,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.TimePicker.RangePicker,{...d});if(l==="Switch")return z.jsx(ae.Switch,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Number")return(d==null?void 0:d.apicode)==="FileSize"?z.jsx(X0,{...d,disabled:y||(d==null?void 0:d.disabled)},d.id):y?z.jsx(ae.InputNumber,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.InputNumber,{...d});if(l==="Cascader")return y?z.jsx(ae.Cascader,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.Cascader,{showSearch:{filter:(w,S)=>S.some(E=>E.label&&E.label.toLowerCase().indexOf(w.toLowerCase())>-1),matchInputWidth:!1},...d});if(l==="TreeSelect")return d.treeData&&d.treeData.length?y?z.jsx(op,{...d,disabled:y||(d==null?void 0:d.disabled),showSearch:!0,treeNodeFilterProp:"label"}):z.jsx(op,{...d,showSearch:!0,treeNodeFilterProp:"label"}):z.jsx(op,{disabled:y||(d==null?void 0:d.disabled)});if(l==="Radio")return y?z.jsx(ae.Radio,{...d,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.Radio,{...d});if(l==="Radio.Group")return y?z.jsx(ae.Radio.Group,{...d,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.Radio.Group,{...d});if(l==="Slider")return z.jsx(ae.Slider,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Markdown")return z.jsx(IR,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="SelectPopup")return z.jsx(JT,{selectProps:d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="SelectTransfer")return z.jsx(XT,{selectProps:d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="CompositeForm")return z.jsx(Gf,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="Title")return z.jsx(OJ,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(n[l]){const w=n[l];return z.jsx(w,{type:l,...d,name:e.name,disabled:y||(d==null?void 0:d.disabled)},e.name)}return z.jsx("span",{children:u})}else return z.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=A.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?_e.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),o=e.content.type=="Title";return z.jsx(ae.Form.Item,{colon:!1,..._e.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:ge(KW.main,e.className,o?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),RJ="_itemsCreated_ow91h_1",TJ="_rowBox_ow91h_4",PJ="_labelLength_ow91h_8",il={itemsCreated:RJ,rowBox:TJ,labelLength:PJ},kJ="_advanced_search_content_775l0_1",$J="_disableBg_775l0_1",AJ="_checkboxWidth_775l0_15",DJ="_radioWidth_775l0_18",NJ="_conditions_head_775l0_21",MJ="_head1_775l0_29",IJ="_head2_775l0_32",FJ="_head3_775l0_35",jJ="_head4_775l0_38",LJ="_properties_box_775l0_41",zJ="_className_tips_775l0_44",BJ="_groupHeader_775l0_49",HJ="_iconBtn_775l0_52",VJ="_properties_item_775l0_61",UJ="_left_tips_775l0_84",qJ="_state_type_775l0_87",WJ="_verification_775l0_100",YJ="_verificationBorder_775l0_121",Tt={advanced_search_content:kJ,disableBg:$J,checkboxWidth:AJ,radioWidth:DJ,conditions_head:NJ,head1:MJ,head2:IJ,head3:FJ,head4:jJ,properties_box:LJ,className_tips:zJ,groupHeader:BJ,iconBtn:HJ,properties_item:VJ,left_tips:UJ,state_type:qJ,verification:WJ,verificationBorder:YJ},GJ="_shuttle_box_tufhg_1",KJ="_transferBox_tufhg_4",XJ="_selectNum_tufhg_7",S0={shuttle_box:GJ,transferBox:KJ,selectNum:XJ},ZJ=e=>{const t=Sa({dataSource:[],targetKeys:[],columns:[]}),r=s=>s&&_e.isString(s)&&s.includes("~#~")?z.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):s;A.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let s=[];for(let u of e.columns)s.push({...u,ellipsis:!0,sorter:(l,h)=>{const d=u.dataIndex||"";return l[d]!=null&&h[d]!=null?_e.isString(l[d])&&_e.isString(h[d])?l[d].localeCompare(h[d]):_e.isNumber(l[d])&&_e.isNumber(h[d])?l[d]-h[d]:0:0},render:u.render?u.render:r});t.columns=s},[e.dataSource,e.targetKeys]);const n=({...s})=>z.jsx(ae.Transfer,{...s,rowKey:u=>u.id,children:({direction:u,filteredItems:l,onItemSelectAll:h,onItemSelect:d,selectedKeys:g})=>{const b={onSelectAll(y,w){const S=w.filter(_=>!_.disabled).map(({id:_})=>_),E=y?_e.difference(S,g):_e.difference(g,S);h(E,y)},onSelect({id:y},w){e.isRadio&&g.splice(0,1),d(y,w)},getCheckboxProps:y=>({disabled:y.name=="~#~"||y.number=="~#~"||y.empNo=="~#~"?!0:u=="left"?y.disabled:!1}),selectedRowKeys:g};return z.jsxs(z.Fragment,{children:[z.jsx(ae.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...b},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:l,scroll:{y:301},style:{height:"338px"},size:"small",onRow:y=>({onClick:()=>{y.name=="~#~"||y.empNo=="~#~"||!y.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),d(y.id,!g.includes(y.id)))},onDoubleClick:()=>{if(!(y.name=="~#~"||y.empNo=="~#~")){if(u==="left")y.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(y.id));else for(let w=0;w<t.targetKeys.length;w++)if(t.targetKeys[w]==y.id){t.targetKeys.splice(w,1);break}}}})}),u==="left"?z.jsxs("div",{className:S0.selectNum,children:[e.defaultPageSize!==50?`${J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:J("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):z.jsxs("div",{className:S0.selectNum,children:[J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=s=>{e.isRadio?t.targetKeys=[s[0]]:t.targetKeys=s},i=async()=>{let s=[];for(let u=0;u<t.targetKeys.length;u++)for(let l=0;l<t.dataSource.length;l++)if(t.targetKeys[u]==t.dataSource[l].id){s.push(t.dataSource[l]);break}e.onSubmit&&e.onSubmit(s)},o=()=>{if(e.columns.length>0){let s=[J("project.workflow.status",{placeholder:"状态"}),J("sys.import.category",{placeholder:"分类"})];return J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:_e.without(_e.map(e.columns,"title"),...s).join("、")}})}return J("sys.enterSearch",{placeholder:"请输入搜索内容"})};return z.jsx($u,{className:S0.shuttle_box,modalTitle:e.title,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:z.jsx("div",{className:S0.transferBox,children:z.jsx(tc,{spinning:e.loading,children:z.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||o()},showSelectAll:!1,onChange:a,filterOption:(s,u)=>u.Name&&u.Name.indexOf(s)!==-1||u.EmpNo&&u.EmpNo.indexOf(s)!==-1||u.empNo&&u.empNo.indexOf(s)!==-1||u.email&&u.email.indexOf(s)!==-1||u.name&&u.name.indexOf(s)!==-1||u.workflowName&&u.workflowName.indexOf(s)!==-1||u.code&&String(u.code).indexOf(s)!==-1||u.description&&u.description.indexOf(s)!==-1})})})})},{RangePicker:qE}=ae.DatePicker,{Option:J1}=ae.Select,{TreeNode:WE}=ae.Tree,{confirm:Mpe}=ae.Modal,JJ=[{value:"and",label:J("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:J("sys.query.builder.condit.or",{placeholder:"或"})}],aP=A.forwardRef((e,t)=>{A.useRef();const r=A.useRef(null),n=A.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},o=Sa({1:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:J("sys.condition.in",{placeholder:"在"})},{value:"!in",label:J("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:J("sys.condition.in",{placeholder:"在"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),s=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Sa({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),l=Sa({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});A.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:O=>{u.verification=O},setCondition:(O,$)=>{$==0?(u.formCofing.base_item_id=O.value,u.formCofing.base_item_name=O.label):(u.formCofing.object_id=(O==null?void 0:O.value)||"",u.formCofing.object_name=(O==null?void 0:O.label)||"")},emptyCondition:O=>{O&&(u.formCofing.base_item_id="",u.formCofing.base_item_name="",u.formCofing.object_id="",u.formCofing.object_name=""),u.verification=!1,u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:O=>{u.formCofing=O},searchBtn:()=>{h()},defaultValue:()=>{var $;const O=($=e.typeData[0])==null?void 0:$.children.filter(D=>D.apicode==="Number"||D.apicode==="Name"||D.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,O.id],name:`${e.typeData[0].label}/${O.name}`,lastSelected:O,type:O.valueType||"",rawType:O.valueType||"",tab_code:e.typeData[0].value,dataFrom:O.dataFrom||"",dataFromId:O.dataFromId||"",apicode:O.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const h=O=>{if(u.verification=!1,!u.formCofing.base_item_id){ae.message.warning(J("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let $=_e.cloneDeep(u.formCofing.relations);$.length==1&&(y($),$=_e.compact($));for(let[D,V]of $.entries())for(let I of V.relation){if(!I.attribute.name||!I.attribute.operator||I.attribute.operator!="null"&&I.attribute.operator!="!null"&&!I.attribute.value){u.verification=!0;return}D!=0&&(V.join=$[D-1].relation[$[D-1].relation.length-1].attribute.attr_join)}u.formCofing.base_item_id,u.formCofing.base_item_name,u.formCofing.object_id,u.formCofing.object_name},d=(O,$)=>O=="5"&&$?$.listCode==10005213?o[O][2]:!$.allowMultiple||$.apicode=="LifeCyclePhase"||$.apicode=="Category"?o[O][0]:$.listType=="0"?o[O][1]:$.listType=="2"?o[O][2]:o[O][3]:o[O],g=()=>{u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=l.treeDefine.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueTreeKey=l.treeDefineKey,l.titleName="",l.treeVisible=!1},b=(O,$)=>$.some(D=>D.label&&D.label.toLowerCase().indexOf(O.toLowerCase())>-1),y=O=>O.map(($,D)=>($.relation.forEach((V,I)=>{let M=V.attribute;!M.name&&!M.operator&&!M.value&&delete $.relation[I]}),$.relation=_e.compact($.relation),$.relation.length==0&&delete O[D],$)),w=O=>{let $=[];if(O)for(let D of O)$.push({label:D.showName||D.name,value:D.id,disabled:!D.status});return $},S=O=>O.map($=>$.children?z.jsx(WE,{title:l.department?$.title:$.name,children:S($.children)},$.id):z.jsx(WE,{title:l.department?$.title:$.name},$.id)),E=(O,$)=>z.jsx(em,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[$?$.toString():""],textToHighlight:O?O.toString():""}),_=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},C=(O,$,D,V)=>{!D||D&&O.relation.length>1&&V==O.relation.length-1?u.formCofing.relations.splice($+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):u.formCofing.relations[$].relation.splice(V+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),x(O),_()},f=O=>{u.formCofing.relations.splice(O+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),_()},p=O=>{u.formCofing.relations.splice(O,1)},v=(O,$,D,V)=>{D&&O.relation.length>1?(O.relation.splice(V,1),x(O)):u.formCofing.relations.splice($,1)},x=O=>{for(let $=0;$<O.relation.length;$++)O.relation[$].attribute.forbidden=!0,O.relation.length>1&&O.relation.length-1!=$&&(O.relation[$].attribute.forbidden=!1)},k=(O,$,D,V,I)=>{if(D&&(D.apicode=="OrgName"||D.apicode=="CreateUserDepartment"))return z.jsx(ae.Select,{className:`
332
+ Le.version="2.30.1";XW(Hr);Le.fn=ze;Le.min=jG;Le.max=LG;Le.now=zG;Le.utc=go;Le.unix=pX;Le.months=gX;Le.isDate=Kf;Le.locale=Fs;Le.invalid=um;Le.duration=qi;Le.isMoment=Vi;Le.weekdays=bX;Le.parseZone=mX;Le.localeData=os;Le.isDuration=ap;Le.monthsShort=vX;Le.weekdaysMin=_X;Le.defineLocale=$w;Le.updateLocale=mG;Le.locales=gG;Le.weekdaysShort=yX;Le.normalizeUnits=vi;Le.relativeTimeRounding=YX;Le.relativeTimeThreshold=GX;Le.calendarFormat=dK;Le.prototype=ze;Le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Rs=class Rs{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Le.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||Rs.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const o=a.shift(),s=o[r];if(n==null||n(o),i.push(o),s!=null&&s.length)for(let u=s.length-1;u>=0;u--)a.unshift(s[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var h;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const o=new Map,s=new Map,u=new Map,l=[...t];for(;l.length;){const d=l.shift(),g=o.get(d)??t.findIndex(E=>E==d),b=s.get(d);b?a.add(b):a.clear();const y=b==null?void 0:b[n],w=r(d,g),S=d[n];if(w){i={parent:b,self:d,beforeSibling:(y||t).slice(0,g),afterSibling:(y||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(S!=null&&S.length)for(let E=S.length-1;E>=0;E--){const _=S[E];l.unshift(S[E]),o.set(_,E),s.set(_,d),E==S.length-1&&u.set(_,()=>{var C;(C=u.get(d))==null||C(),a.delete(d)})}else(h=u.get(d))==null||h()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Is.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Ar(Rs,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(l=>l!==""&&l!==void 0&&l!==null)(r))return"";let s="";i==="[object Array]"&&(s=[]);const u=l=>{for(let h=0;h<(l||[]).length;h++){const d=l[h][a?a.label:"label"],g=l[h][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&s.push(d):r===g&&(s=d),l[h].children&&l[h].children.length&&u(l[h].children)}};return u(n),s}),Ar(Rs,"transformArrayToMap",(t,r,n,a)=>{function i(o,s){return o=="autoGetId"&&(a!=null&&a.useAutoGetId)?Ul.isCustomAttr(s)?"id":"dataFromId":o}return t==null?void 0:t.reduce((o,s)=>{const u=i(r,s),l=i(n,s);return l?o[s[u]]=s[l]:o[s[u]]=s,o},{})}),Ar(Rs,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Ar(Rs,"renderBomTag",t=>{const r=o=>{const s=o.match(/\d+(\.\d+)?/g);return s?s[s.length-1]:""},n=o=>{let s=0;const u=l=>{var h=l.split("");return h.reverse()};for(let l=0;l<u(o).length&&u(o)[l].match(/\d/);l++)s=s+1;return o.substring(0,o.length-s)},a=o=>_e.sortBy(_e.uniq(o.split(",")),s=>Number(r(s))),i=Object.keys(_e.groupBy(a(t),o=>n(o))).map(o=>(u=>{var l=[],h=0;const d=u.sort((g,b)=>Number(r(g))-Number(r(b)));return d.forEach((g,b)=>{b===0?l[0]=[g]:Number(r(g))-Number(r(d[b-1]))===1?l[h].push(g):l[++h]=[g]}),l})(_e.groupBy(a(t),u=>n(u))[o]).map(u=>{if(u.length>1){const l=u.map(h=>Number(r(h)));return`${o}${_e.min(l)}-${_e.max(l)}`}else return u[0]}));return _e.flatten(i).join(",")}),Ar(Rs,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const l=u.substring(0,u.match(/\d+-\d+$/).index),h=[],d=Number(u.split(l)[1].split("-")[1]),g=d<1e3?d:1e3;for(let b=Number(u.split(l)[1].split("-")[0]);b<=g;b++)h.push(`${l}${b}`);return h.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const l=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),h=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),d=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(l!=d)return u;{const b=[],y=Number(g),w=y<1e3?y:1e3;for(let S=Number(h);S<=w;S++)b.push(`${l}${S}`);return b.join(",")}}else return u}).join(","),a=u=>{const l=u.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},i=u=>{let l=0;const h=d=>{var g=d.split("");return g.reverse()};for(let d=0;d<h(u).length&&h(u)[d].match(/\d/);d++)l=l+1;return u.substring(0,u.length-l)},o=u=>_e.sortBy(_e.uniq(u.split(",")),l=>Number(a(l))),s=Object.values(_e.groupBy(o(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return s.length>1e3&&(r==null||r()),s.length>1e3?s.slice(0,1e3).join(","):s.join(",")});let _r=Rs;const XX="_tableSelection_1xub0_1",ZX="_sideBox_1xub0_36",JX="_tableFrame_1xub0_51",W1={tableSelection:XX,sideBox:ZX,tableFrame:JX},QX="_sider_item_container_wnrm0_1",rl={sider_item_container:QX},{TreeNode:kE}=ae.Tree,IT=e=>{const[t,r]=A.useState([]),[n,a]=A.useState([]),[i,o]=A.useState([]);qf(()=>{s()});const s=async()=>{var l;if(e.getInstanceMenu){const{records:h}=await e.getInstanceMenu();a(h||[])}if(e.getAttributeByTab){const h=await e.getAttributeByTab();if(h){const d=(l=h.records)==null?void 0:l.filter(g=>["Number","Note","LifeCyclePhase","Category"].includes(g.apicode));e.onGetTreeFields&&e.onGetTreeFields(d)}}};A.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=l=>l.map(d=>(d.title=z.jsxs("div",{className:rl.treeListBox,children:[z.jsxs("div",{className:rl.titleBox,style:{display:"flex",alignItems:"center"},children:[z.jsx(Dt,{type:d.icon=="leftbar-folder"?d.children&&d.children.length>0&&_e.includes(i,d.id)?"content-open2":"content-fold":d.icon,style:{fontSize:"16px",color:"#333"}}),z.jsx("div",{className:rl.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:d.name,children:z.jsx("span",{children:d.name})})]}),z.jsx("div",{className:ge(rl.btnBox,rl.onHover)})]},d.id),d.children?z.jsx(kE,{title:d.title,dataRef:d,children:u(d.children)},d.id):z.jsx(kE,{title:d.title},d.id)));return z.jsx("div",{className:rl.sider_item_container,children:z.jsx(ae.Tree,{switcherIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:l=>{o(l)},onSelect:(l,h)=>{h.selected&&(r(l),e.onSelected&&e.onSelected(h.node.dataRef))},children:u(n)})})},eZ="_main_1qtos_1",tZ="_edit_cell_1qtos_23",rZ="_update_style_1qtos_28",nZ="_updated_style_1qtos_42",aZ="_updated_redline_style_1qtos_61",iZ="_table_footer_1qtos_349",oZ="_loading_1qtos_361",ki={main:eZ,edit_cell:tZ,update_style:rZ,updated_style:nZ,updated_redline_style:aZ,table_footer:iZ,loading:oZ},sZ=0,Y1=1,G1=2,FT=8,nl=64,_0=0,jT=1,Ny=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function uZ(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:sZ,end:!1,final_top:0,f_final_top:jT,update_count:0}}function lZ(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function bl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function cZ(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:FT}}const dZ=P.forwardRef(function(t,r){return z.jsx("table",{ref:r,...t})});function fZ(e){return z.jsx("tbody",{...e})}const hZ=P.forwardRef(function(t,r){const[n,a]=A.useState(!1);return z.jsx("tr",{ref:r,...t})});function pZ(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,o=0,s=0,u=0;if(t===-1&&n>0){for(o=n;o>0&&u<e._y;)u+=r[--o];return[0|o,0|n,0|e.computed_h-u]}for(;o<n&&i<t;++o)i+=r[o];for(s=o;s<n&&u<e._y;++s)u+=r[s];let l=a<0?0:a;for(;o>0&&l--;)i-=r[--o];return s+=a,s>n&&(s=n),[0|o,0|s,0|i]}function LT(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function mZ(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function gZ(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function $E(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function zT(e,t){const r=()=>{bl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&gZ(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function K1(e){e.HND_PAINT>0||(e.HND_PAINT=zT(e,-1))}function BT(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function vZ(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function bZ(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const yZ=(e,t)=>{const{style:r,context:n,...a}=e,i=A.useState(0),o=A.useRef(()=>{}),s=A.useMemo(()=>P.createRef(),[]),u=A.useContext(n);A.useMemo(()=>{Object.assign(u,uZ()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=s,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:nl,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&lZ(u)},[]);const l=A.useRef([]).current,h=A.useRef(0);let d;const g=A.useCallback(_=>{if(u.vt_state===4){if(_&&(l.push(_),u.f_final_top===_0))return _.flag=nl,d(0);l.length&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(d))}},[]),b=A.useCallback(_=>{g(cZ(_))},[]);d=A.useCallback(_=>{if(u.vt_state!==4)return;const C=l;let f;if(!C.length)return;f=C.pop();let p=f.target.scrollTop,v=f.target.scrollLeft;const x=f.flag;bl(u,`raf top: ${p}, left: ${v}`);const k=pZ(u,u.f_final_top===_0?u.final_top:p),O=k[0],$=k[1],D=k[2],V=u._offset_head,I=u._offset_tail,M=u._offset_top;let F;switch(x){case Y1:bl(u,"SCROLLEVT_INIT"),F=!1;break;case nl:bl(u,"SCROLLEVT_BY_HOOK"),O===V&&$===I&&D===M?(u.f_final_top=jT,u.final_top===-1&&(p=u.computed_h-u._y),F=!0):(u.final_top===-1&&(p=D),F=!1);break;case G1:if(bl(u,"SCROLLEVT_RECOMPUTE"),O===V&&$===I&&D===M){h.current=0,C.length&&g(null);return}F=!1;break;case FT:if(bl(u,"SCROLLEVT_NATIVE"),h.current=0,C.length=0,u.onScroll&&u.onScroll({top:p,left:v,isEnd:f.end}),O===V&&$===I&&D===M)return;F=f.end;break}LT(u,D,O,$),mZ(u,p,v,x,F),i[1](++u.update_count)},[]),A.useImperativeHandle(t,()=>{const _=C=>{u.f_final_top=_0,u.final_top=C,g({target:{scrollTop:C,scrollLeft:-1},flag:nl})};return{scrollTo:C=>{o.current=()=>_(C),o.current()},scrollToIndex:C=>{o.current=()=>{C>u.row_count-1&&(C=u.row_count-1),C<0&&(C=0);let f=0;for(let p=0;p<C;++p)f+=u.row_height[p];_(f)},o.current()}}},[]),A.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=b},[s]),A.useEffect(()=>{g({flag:nl,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),A.useEffect(()=>{switch(u.evt){case nl:u.f_final_top===_0?o.current():$E(u,u.top,u.left);break;case Y1:case G1:$E(u,u.top,u.left),l.length&&d(0);break}},[i[0]]),A.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:Y1});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:G1}));break}}),r.position="relative",r.top=u._offset_top;const{width:y,...w}=r,S=A.useMemo(()=>({width:y,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[y]),E=u.components.table;return z.jsx("div",{ref:s,style:S,children:z.jsx(n.Provider,{value:{...u},children:z.jsx(E,{...a,style:w})})})},_Z=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],o=r.components.body.wrapper;let s=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:l}=r,h=[];switch(r.vt_state){case 1:s>=0&&(console.assert(u===0),console.assert(l===1),Array.isArray(i)?(h=i.slice(u,l),h[0].props.record[Ny]=0):h=i,r.re_computed=s,r.prev_row_count=s,r.row_count=s);break;case 4:{if(l>s){const g=l-s;l-=g,u-=g,u<0&&(u=0),l<0&&(l=0),LT(r,r._offset_top,u,l)}r.row_count!==s&&bZ(r,s),s=r.row_count;const d=r.prev_row_count;if(s<d)vZ(r,s,d);else if(s>d){const g=r.row_height;s-g.length>0?BT(r,s,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,d,s),r.computed_h+=r.possible_hight_per_tr*(s-d))}if(s){let g=u;h=i.slice(g,l),h.forEach(b=>b.props.record[Ny]=g++)}else h=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return z.jsxs(o,{...n,children:[a,h]})},wZ=e=>{const t=P.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return z.jsx(i,{...n,children:a});const o=a[0].props,s=o.record[Ny],u=A.useRef(s),l=A.useMemo(()=>`.${o.prefixCls}-expanded-row`,[o.prefixCls]);return A.useEffect(()=>(r.vt_state===4?K1(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,BT(r,r.row_count,0,r.possible_hight_per_tr),zT(r,16)),()=>K1(r)),[]),A.useEffect(()=>{const h=t.current;let d=h.offsetHeight,g=h.nextSibling;for(;g&&g.matches(l);)d+=g.offsetHeight,g=g.nextSibling;const b=r.row_height[s],y=r.row_height[u.current];r.computed_h-=b,r.computed_h+=y,r.computed_h+=d-y,r.row_height[s]=d,K1(r)}),z.jsx(i,{...n,ref:t})};function HT(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function xZ(e,t){const r=A.useRef(P.createContext({})).current,n=A.useContext(r),a=A.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return A.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),A.useMemo(()=>{const i=P.forwardRef(yZ);n._vtcomponents={table:o=>z.jsx(i,{...o,context:r,ref:n.ref}),body:{wrapper:o=>z.jsx(r.Consumer,{children:()=>z.jsx(_Z,{...o,ctx:n})}),row:o=>z.jsx(wZ,{...o,ctx:n})}},n.components={},HT(n,{table:dZ,body:{wrapper:fZ,row:hZ}}),n.vt_state=1},[]),n}const AE=1,SZ=2;(function(){if((typeof window=="object"&&window instanceof Window?AE:SZ)&AE&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function CZ(e,t){const r=xZ(e,t||[]);return[r._vtcomponents,n=>HT(r,n),r.ref]}const EZ=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:o},s)=>{const[u,l]=A.useState(0),h=di(n);return A.useEffect(()=>{const d=()=>{var y,w,S;const b=(E=>{for(var _=E.offsetTop,C=E.offsetParent;C!==null;)_+=C.offsetTop,C=C.offsetParent;return _})(t.current);if(r.current){const E=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],_=t.current.querySelectorAll(".frontend-table-body")[0],C=34+(e?0:15);if(E){const f=_r.autoTableHeight(s?C:b+C),p=f-(a||0);n!=null&&n.y?i?i==null||i(s,p):(l(s?p:Number((y=h.current)==null?void 0:y.y)),E.style.minHeight=(s?p:Number((w=h.current)==null?void 0:w.y))-10+"px",_.style.minHeight=(s?p:Number((S=h.current)==null?void 0:S.y))+"px"):(l(s?p:f),E.style.minHeight=(s?p:f)-10+"px",_.style.minHeight=(s?p:f)+"px")}}};return d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}},[s,n]),A.useEffect(()=>{o==null||o(u)},[u]),u};var Rd={exports:{}},Td={},w0={},DE;function OZ(){if(DE)return w0;DE=1,w0.__esModule=!0,w0.cloneElement=s;var e=t(A);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,l){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);l&&(d=d.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),h.push.apply(h,d)}return h}function n(u){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?r(Object(h),!0).forEach(function(d){a(u,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(h,d))})}return u}function a(u,l,h){return l=i(l),l in u?Object.defineProperty(u,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[l]=h,u}function i(u){var l=o(u,"string");return typeof l=="symbol"?l:String(l)}function o(u,l){if(typeof u!="object"||u===null)return u;var h=u[Symbol.toPrimitive];if(h!==void 0){var d=h.call(u,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(u)}function s(u,l){return l.style&&u.props.style&&(l.style=n(n({},u.props.style),l.style)),l.className&&u.props.className&&(l.className=u.props.className+" "+l.className),e.default.cloneElement(u,l)}return w0}var Pd={},NE;function VT(){if(NE)return Pd;NE=1,Pd.__esModule=!0,Pd.resizableProps=void 0;var e=t(Yf());vw();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return Pd.resizableProps=r,Pd}var ME;function UT(){if(ME)return Td;ME=1,Td.__esModule=!0,Td.default=void 0;var e=o(A),t=vw(),r=OZ(),n=VT(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(E){if(typeof WeakMap!="function")return null;var _=new WeakMap,C=new WeakMap;return(i=function(p){return p?C:_})(E)}function o(E,_){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var C=i(_);if(C&&C.has(E))return C.get(E);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in E)if(v!=="default"&&Object.prototype.hasOwnProperty.call(E,v)){var x=p?Object.getOwnPropertyDescriptor(E,v):null;x&&(x.get||x.set)?Object.defineProperty(f,v,x):f[v]=E[v]}return f.default=E,C&&C.set(E,f),f}function s(){return s=Object.assign?Object.assign.bind():function(E){for(var _=1;_<arguments.length;_++){var C=arguments[_];for(var f in C)Object.prototype.hasOwnProperty.call(C,f)&&(E[f]=C[f])}return E},s.apply(this,arguments)}function u(E,_){if(E==null)return{};var C={},f=Object.keys(E),p,v;for(v=0;v<f.length;v++)p=f[v],!(_.indexOf(p)>=0)&&(C[p]=E[p]);return C}function l(E,_){var C=Object.keys(E);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(E);_&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(E,p).enumerable})),C.push.apply(C,f)}return C}function h(E){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{};_%2?l(Object(C),!0).forEach(function(f){d(E,f,C[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):l(Object(C)).forEach(function(f){Object.defineProperty(E,f,Object.getOwnPropertyDescriptor(C,f))})}return E}function d(E,_,C){return _=g(_),_ in E?Object.defineProperty(E,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[_]=C,E}function g(E){var _=b(E,"string");return typeof _=="symbol"?_:String(_)}function b(E,_){if(typeof E!="object"||E===null)return E;var C=E[Symbol.toPrimitive];if(C!==void 0){var f=C.call(E,_);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(E)}function y(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,w(E,_)}function w(E,_){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,p){return f.__proto__=p,f},w(E,_)}var S=function(E){y(_,E);function _(){for(var f,p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];return f=E.call.apply(E,[this].concat(v))||this,f.handleRefs={},f.lastHandleRect=null,f.slack=null,f}var C=_.prototype;return C.componentWillUnmount=function(){this.resetData()},C.resetData=function(){this.lastHandleRect=this.slack=null},C.runConstraints=function(p,v){var x=this.props,k=x.minConstraints,O=x.maxConstraints,$=x.lockAspectRatio;if(!k&&!O&&!$)return[p,v];if($){var D=this.props.width/this.props.height,V=p-this.props.width,I=v-this.props.height;Math.abs(V)>Math.abs(I*D)?v=p/D:p=v*D}var M=p,F=v,T=this.slack||[0,0],N=T[0],j=T[1];return p+=N,v+=j,k&&(p=Math.max(k[0],p),v=Math.max(k[1],v)),O&&(p=Math.min(O[0],p),v=Math.min(O[1],v)),this.slack=[N+(M-p),j+(F-v)],[p,v]},C.resizeHandler=function(p,v){var x=this;return function(k,O){var $=O.node,D=O.deltaX,V=O.deltaY;p==="onResizeStart"&&x.resetData();var I=(x.props.axis==="both"||x.props.axis==="x")&&v!=="n"&&v!=="s",M=(x.props.axis==="both"||x.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!I&&!M)){var F=v[0],T=v[v.length-1],N=$.getBoundingClientRect();if(x.lastHandleRect!=null){if(T==="w"){var j=N.left-x.lastHandleRect.left;D+=j}if(F==="n"){var H=N.top-x.lastHandleRect.top;V+=H}}x.lastHandleRect=N,T==="w"&&(D=-D),F==="n"&&(V=-V);var B=x.props.width+(I?D/x.props.transformScale:0),U=x.props.height+(M?V/x.props.transformScale:0),G=x.runConstraints(B,U);B=G[0],U=G[1];var X=B!==x.props.width||U!==x.props.height,K=typeof x.props[p]=="function"?x.props[p]:null,ne=p==="onResize"&&!X;K&&!ne&&(k.persist==null||k.persist(),K(k,{node:$,size:{width:B,height:U},handle:v})),p==="onResizeStop"&&x.resetData()}}},C.renderResizeHandle=function(p,v){var x=this.props.handle;if(!x)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:v});if(typeof x=="function")return x(p,v);var k=typeof x.type=="string",O=h({ref:v},k?{}:{handleAxis:p});return e.cloneElement(x,O)},C.render=function(){var p=this,v=this.props,x=v.children,k=v.className,O=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var $=v.resizeHandles;v.transformScale;var D=u(v,a);return(0,r.cloneElement)(x,h(h({},D),{},{className:(k?k+" ":"")+"react-resizable",children:[].concat(x.props.children,$.map(function(V){var I,M=(I=p.handleRefs[V])!=null?I:p.handleRefs[V]=e.createRef();return e.createElement(t.DraggableCore,s({},O,{nodeRef:M,key:"resizableHandle-"+V,onStop:p.resizeHandler("onResizeStop",V),onStart:p.resizeHandler("onResizeStart",V),onDrag:p.resizeHandler("onResize",V)}),p.renderResizeHandle(V,M))}))}))},_}(e.Component);return Td.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Td}var kd={},IE;function RZ(){if(IE)return kd;IE=1,kd.__esModule=!0,kd.default=void 0;var e=s(A),t=i(Yf()),r=i(UT()),n=VT(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,f=new WeakMap;return(o=function(v){return v?f:C})(_)}function s(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var f=o(C);if(f&&f.has(_))return f.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,f&&f.set(_,p),p}function u(){return u=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var f=arguments[C];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])}return _},u.apply(this,arguments)}function l(_,C){var f=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);C&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(_,v).enumerable})),f.push.apply(f,p)}return f}function h(_){for(var C=1;C<arguments.length;C++){var f=arguments[C]!=null?arguments[C]:{};C%2?l(Object(f),!0).forEach(function(p){d(_,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(_,p,Object.getOwnPropertyDescriptor(f,p))})}return _}function d(_,C,f){return C=g(C),C in _?Object.defineProperty(_,C,{value:f,enumerable:!0,configurable:!0,writable:!0}):_[C]=f,_}function g(_){var C=b(_,"string");return typeof C=="symbol"?C:String(C)}function b(_,C){if(typeof _!="object"||_===null)return _;var f=_[Symbol.toPrimitive];if(f!==void 0){var p=f.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}function y(_,C){if(_==null)return{};var f={},p=Object.keys(_),v,x;for(x=0;x<p.length;x++)v=p[x],!(C.indexOf(v)>=0)&&(f[v]=_[v]);return f}function w(_,C){_.prototype=Object.create(C.prototype),_.prototype.constructor=_,S(_,C)}function S(_,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,v){return p.__proto__=v,p},S(_,C)}var E=function(_){w(C,_);function C(){for(var p,v=arguments.length,x=new Array(v),k=0;k<v;k++)x[k]=arguments[k];return p=_.call.apply(_,[this].concat(x))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function(O,$){var D=$.size;p.props.onResize?(O.persist==null||O.persist(),p.setState(D,function(){return p.props.onResize&&p.props.onResize(O,$)})):p.setState(D)},p}C.getDerivedStateFromProps=function(v,x){return x.propsWidth!==v.width||x.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var f=C.prototype;return f.render=function(){var v=this.props,x=v.handle,k=v.handleSize;v.onResize;var O=v.onResizeStart,$=v.onResizeStop,D=v.draggableOpts,V=v.minConstraints,I=v.maxConstraints,M=v.lockAspectRatio,F=v.axis;v.width,v.height;var T=v.resizeHandles,N=v.style,j=v.transformScale,H=y(v,a);return e.createElement(r.default,{axis:F,draggableOpts:D,handle:x,handleSize:k,height:this.state.height,lockAspectRatio:M,maxConstraints:I,minConstraints:V,onResizeStart:O,onResize:this.onResize,onResizeStop:$,resizeHandles:T,transformScale:j,width:this.state.width},e.createElement("div",u({},H,{style:h(h({},N),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},C}(e.Component);return kd.default=E,E.propTypes=h(h({},n.resizableProps),{},{children:t.default.element}),kd}var FE;function TZ(){return FE||(FE=1,Rd.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Rd.exports.Resizable=UT().default,Rd.exports.ResizableBox=RZ().default),Rd.exports}var PZ=TZ();const kZ=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:o,required:s,editable:u,formitem:l,dataIndex:h,...d}=e,g=A.useRef(),b=()=>{const C=u?l&&l.props&&l.props.disabled:!0;if(!C&&s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&s)return{fontWeight:"400"};if(!C&&!s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&!s)return{fontWeight:"400"}},y=Sa({resizing:!1}),[w,S]=A.useState(0);A.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(f=>f.addEventListener("click",p=>!1))},[]);const[E,_]=A.useState(0);return!i||h==="id"?z.jsx("th",{...d,onClick:o,style:{...d.style,...b()},onKeyDown:()=>{},className:`${d.className} ${s?"frontend-table-column-required":""}`}):z.jsx(PZ.Resizable,{axis:"x",width:i+E,height:0,handle:z.jsx("span",{onClick:C=>{C.stopPropagation(),C.preventDefault()},className:ge(["react-resizable-handle",E&&"active"])}),onResize:(C,{size:f,...p})=>{const v=document.getElementById("table-resize-handle");if(v){const x=document.getElementById(`table_key_${e.tableKey}`);C.pageX>x.getBoundingClientRect().left+x.getBoundingClientRect().width||C.pageX<x.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${p.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${C.pageX}px`)}t(C),y.resizing=!0,_(f.width-i)},onResizeStop:(...C)=>{var f;C[0].stopPropagation(),(f=document.getElementById("table-resize-handle"))==null||f.remove(),r(),_(0),a(...C),setTimeout(()=>{y.resizing=!1})},onResizeStart:C=>{document.getElementById(`table_key_${e.tableKey}`);const f=document.createElement("div");f.id="table-resize-handle",document.body.appendChild(f),y.resizing=!0,C.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:z.jsx("th",{ref:g,onClick:(...C)=>{!y.resizing&&o&&o(...C)},...d,style:{...d.style,...b()},onKeyDown:()=>{},className:`${d.className} ${s?"frontend-table-column-required":""}`})})};function Of(){return Of=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Of.apply(this,arguments)}function qT(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var WT=A.createContext({});function $Z(){return A.useContext(WT)}var AZ=function(t){return A.createElement(WT.Provider,{value:t.refTracker},t.children)};function DZ(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var $p=DZ();function NZ(e){var t=A.useRef();return A.useEffect(function(){t.current=e},[e]),t.current}function MZ(){return A.useRef(new Map).current}var jE={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),$p.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){$p.emit(0)}};function IZ(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),jE.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){jE.hideAll()}}}function FZ(){var e=new Map,t,r,n,a,i=!1;function o(w){a=w,t=-1,n=!0}function s(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function l(){return Array.from(a[t].submenuRefTracker.values())}function h(){return t===-1?(d(),!1):!0}function d(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&y(),s()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&y(),s()}function b(){if(h()&&u()){var w=l(),S=a[t].node;return e.set(S,{isRoot:n,focusedIndex:t,parentNode:r||S,items:a}),S.classList.add("react-contexify__submenu--is-open"),r=S,w.length>0?(t=0,a=w):i=!0,n=!1,s(),!0}return!1}function y(){if(h()&&!n){var w=e.get(r),S=w.isRoot,E=w.items,_=w.focusedIndex,C=w.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=E,r=C,S&&(n=!0,e.clear()),i||(t=_,s())}}return{init:o,moveDown:d,moveUp:g,openSubmenu:b,closeSubmenu:y}}var My=function(){};function YT(e){return typeof e=="function"}function GT(e){return typeof e=="string"}function jZ(e){return e.type==="touchend"}function LZ(e,t){return A.Children.map(A.Children.toArray(e).filter(Boolean),function(r){return A.cloneElement(r,t)})}function zZ(e){var t={x:0,y:0};return jZ(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function LE(e,t){return YT(e)?e(t):e}function BZ(e){return!!(e&&(GT(e)||"exit"in e&&e.exit))}function HZ(e,t){return YT(t)?Of({},e,t(e)):Of({},e,t)}var VZ=function(t){var r,n=t.id,a=t.theme,i=t.style,o=t.className,s=t.children,u=t.animation,l=u===void 0?"scale":u,h=t.onHidden,d=h===void 0?My:h,g=t.onShown,b=g===void 0?My:g,y=qT(t,["id","theme","style","className","children","animation","onHidden","onShown"]),w=A.useReducer(HZ,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),S=w[0],E=w[1],_=A.useRef(null),C=A.useRef(!1),f=NZ(S.visible),p=MZ(),v=A.useState(function(){return FZ()}),x=v[0];A.useEffect(function(){return C.current=!0,$p.on(n,k).on(0,O),function(){$p.off(n,k).off(0,O)}},[n]),A.useEffect(function(){C.current&&S.visible!==f&&(S.visible?b():d())},[S.visible,d,b]),A.useEffect(function(){S.visible?x.init(Array.from(p.values())):p.clear()},[S.visible,x,p]),A.useEffect(function(){if(S.visible){var B=window,U=B.innerWidth,G=B.innerHeight,X=_.current,K=X.offsetWidth,ne=X.offsetHeight,ie=S.x,oe=S.y;ie+K>U&&(ie-=ie+K-U),oe+ne>G&&(oe-=oe+ne-G),E({x:ie,y:oe})}},[S.visible]),A.useEffect(function(){function B(U){switch(U.preventDefault(),U.key){case"Enter":x.openSubmenu()||O();break;case"Escape":O();break;case"ArrowUp":x.moveUp();break;case"ArrowDown":x.moveDown();break;case"ArrowRight":x.openSubmenu();break;case"ArrowLeft":x.closeSubmenu();break}}return S.visible&&(window.addEventListener("resize",O),window.addEventListener("contextmenu",O),window.addEventListener("click",O),window.addEventListener("scroll",O),window.addEventListener("keydown",B),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",O)),function(){window.removeEventListener("resize",O),window.removeEventListener("contextmenu",O),window.removeEventListener("click",O),window.removeEventListener("scroll",O),window.removeEventListener("keydown",B),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",O)}},[S.visible,x]);function k(B){var U=B.event,G=B.props,X=B.position;U.stopPropagation();var K=X||zZ(U),ne=K.x,ie=K.y;setTimeout(function(){E({visible:!0,willLeave:!1,x:ne,y:ie,triggerEvent:U,propsFromTrigger:G})},0)}function O(B){var U=B;typeof U<"u"&&(U.button===2||U.ctrlKey===!0)&&U.type!=="contextmenu"||(BZ(l)?E(function(G){return{willLeave:G.visible}}):E(function(G){return{visible:G.visible?!1:G.visible}}))}function $(){S.willLeave&&S.visible&&E({visible:!1,willLeave:!1})}function D(){if(!l)return null;if(GT(l)){var B;return Al((B={},B["react-contexify__will-enter--"+l]=l&&V&&!N,B["react-contexify__will-leave--"+l+" react-contexify__will-leave--'disabled'"]=l&&V&&N,B))}else if("enter"in l&&"exit"in l){var U;return Al((U={},U["react-contexify__will-enter--"+l.enter]=l.enter&&V&&!N,U["react-contexify__will-leave--"+l.exit+" react-contexify__will-leave--'disabled'"]=l.exit&&V&&N,U))}return null}var V=S.visible,I=S.triggerEvent,M=S.propsFromTrigger,F=S.x,T=S.y,N=S.willLeave,j=Al("react-contexify",o,(r={},r["react-contexify__theme--"+a]=a,r),D()),H=Of({},i,{left:F,top:T,opacity:1});return A.createElement(AZ,{refTracker:p},V&&A.createElement("div",Object.assign({},y,{className:j,onAnimationEnd:$,style:H,ref:_,role:"menu"}),LZ(s,{propsFromTrigger:M,triggerEvent:I})))},zE=function(t){var r,n=t.children,a=t.className,i=t.style,o=t.triggerEvent,s=t.data,u=t.propsFromTrigger,l=t.onClick,h=l===void 0?My:l,d=t.disabled,g=d===void 0?!1:d,b=t.hidden,y=b===void 0?!1:b,w=qT(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),S=$Z(),E={data:s,triggerEvent:o,props:u},_=LE(g,E),C=LE(y,E);function f(k){E.event=k,_?k.stopPropagation():h(E)}function p(k){k&&!_&&S.set(k,{node:k,isSubmenu:!1})}function v(k){k.key==="Enter"&&(E.event=k,h(E))}if(C)return null;var x=Al("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=_,r));return A.createElement("div",Object.assign({},w,{className:x,style:i,onClick:f,onKeyDown:v,ref:p,tabIndex:-1,role:"menuitem","aria-disabled":_}),A.createElement("div",{className:"react-contexify__item__content"},n))};const UZ="_box_1hwl6_2",qZ="_transferSearch_1hwl6_2",WZ="_searchBtn_1hwl6_10",YZ="_shuttle_box_1hwl6_44",GZ="_leftSearch_1hwl6_58",KZ="_noBeforeAfter_1hwl6_62",XZ="_rightSearch_1hwl6_78",ZZ="_transfer_1hwl6_2",Uo={box:UZ,transferSearch:qZ,searchBtn:WZ,shuttle_box:YZ,leftSearch:GZ,noBeforeAfter:KZ,rightSearch:XZ,transfer:ZZ},JZ="_content_1tmh1_1",QZ={content:JZ},KT=A.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[o,s]=A.useState(a),{TabPane:u}=ae.Tabs;return n?z.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:z.jsx(tc,{})}):(A.useImperativeHandle(t,()=>({active:l=>{(i==null?void 0:i(l))!==!1&&s(l)}}),[o]),z.jsx("div",{className:`${QZ.content} ${e.className??""}`,children:n?z.jsx("div",{style:{padding:"10px"}}):r.length?z.jsx(ae.Tabs,{animated:!1,activeKey:o,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:l=>{(i==null?void 0:i(l))!==!1&&s(l)},children:(r||[]).map((l,h)=>z.jsx(u,{tab:z.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[l.icon&&z.jsx(Dt,{style:{marginRight:"5px",fontSize:"16px"},type:`${l.icon}`}),z.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:l.tab})]}),children:z.jsx("div",{style:{padding:"0px"},children:A.Children.map(e.children,d=>{var g;return((g=d==null?void 0:d.props)==null?void 0:g["data-key"])==l.tabKey?d:null})})},`${l.tabKey}`))}):z.jsx(z.Fragment,{})}))}),eJ=A.forwardRef((e,t)=>{var H;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=A.useState(!1),[o,s]=A.useState(),[u,l]=A.useState(r),[h,d]=A.useState([]),[g,b]=A.useState(n),[y,w]=A.useState({[n]:{left:1,right:1}}),[S,E]=A.useState({[n]:{left:0,right:0}}),[_,C]=A.useState(""),[f,p]=A.useState({right:"",left:""}),[v,x]=A.useState(!1),[k,O]=A.useState({});A.useEffect(()=>{l(r),b(n),w({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),A.useEffect(()=>{a?F():(l(r),s(void 0),b(n),w({[n]:{left:1,right:1}}),C(""),p({right:"",left:""}),O({}))},[a]);const $=di(f),D=di(y),V=di(g),I=di(S),M=A.useMemo(()=>{const B=()=>{var U;return o||((U=e.allListOptions)==null?void 0:U[V.current])||[]};return _e.uniqBy([...B(),...h],"id")},[V,g,e.allListOptions,o,h]),F=async B=>{x(!0),await e.getListCodeItem(Object.assign({search:$.current,tabKey:V.current,pageNo:D},_e.omit(B||{},"isPaging"))).then(U=>{U&&(B!=null&&B.isPaging?s([...M,...U]):s([...U]),E(Object.assign({},I.current,{[V.current]:{left:U.total||U.length,right:0}})))}).finally(()=>{x(!1)})};A.useEffect(()=>{d(M.filter(B=>u.includes(B.id)))},[u]);const T=async()=>{var B,U;if(e.mandatory&&!u.length)return ae.message.error(`${J("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(B=e.attr)==null?void 0:B.name}`);(U=k.ok)==null||U.call(k,[...u],g,h),i(!1)};A.useImperativeHandle(t,()=>({open(B){O(()=>B),i(!0)},submit:T,dataSource:M,targetKeys:u,loading:v}),[M,u,v]);const N=B=>{B=="left"?F():C($.current.right)},j=A.useMemo(()=>{var B;return Array.isArray(e.columns)?e.columns:((B=e.columns)==null?void 0:B[g])||[]},[e.columns,g]);return z.jsx($u,{className:Uo.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:T,onCancel:()=>{var B;(B=k.cancel)==null||B.call(k),i(!1)},children:z.jsx("div",{className:Uo.transferBox,children:z.jsx(tc,{spinning:v,children:z.jsx(ae.Transfer,{...e.transfer||{},className:`${Uo.transfer} ${((H=e.transfer)==null?void 0:H.className)??""}`,dataSource:M,targetKeys:u,onChange:(B,U,G)=>{U=="right"?l([...e.isRadio?G:B]):l([...B])},rowKey:B=>B.id,children:B=>{var me,ee,ve,ue,fe,he,ke,Te;const{direction:U,filteredItems:G,onItemSelectAll:X,onItemSelect:K,selectedKeys:ne,showSearch:ie}=B,oe=U=="left",de=!oe,pe={onSelectAll(xe,$e){if(e.isRadio)return;const Pe=$e.filter(Ee=>!Ee.disabled).map(({id:Ee})=>Ee),Me=xe?_e.difference(Pe,ne):_e.difference(ne,Pe);X(Me,xe)},onSelect({id:xe},$e){e.isRadio&&ne.splice(0,1),K(xe,$e)},getCheckboxProps:xe=>({disabled:xe.Number&&!fi.readPermission(xe.Number)?!0:oe?xe.disabled:!1}),selectedRowKeys:ne,columnWidth:13};(me=e==null?void 0:e.pager)!=null&&me[g];const be=()=>oe?G:G.filter(xe=>xe.label.includes(_)||xe.Description.includes(_));return z.jsxs("div",{className:Uo.box,style:e.scroll?{width:"360px"}:{},children:[oe&&e.panes&&((ee=e.panes)==null?void 0:ee.length)!=1?z.jsx(KT,{panes:e.panes,defaultActiveKey:g,onTabClick:xe=>{var Pe;b(xe),(Pe=e.onTabsChange)==null||Pe.call(e,xe);const $e={...f,[U]:""};p($e),D.current[xe]||w(Object.assign({},D.current,{[xe]:{left:1,right:1}})),F({tabKey:xe,search:$e})}}):null,ie?z.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:z.jsx("div",{className:`${e.scroll?Uo.noBeforeAfter:""} ${Uo.transferSearch} ${oe&&((ve=e.panes)!=null&&ve.length)?Uo.leftSearch:(ue=e.panes)!=null&&ue.length?Uo.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:z.jsx(ae.Input.Search,{placeholder:e.placeholder||J("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:f[U],onChange:xe=>{xe.persist();const $e=xe.target.value;p({...f,[U]:$e}),de&&($e||C(""))},onSearch:N.bind(null,U),suffix:z.jsx("div",{className:Uo.searchBtn,onClick:N.bind(null,U),children:z.jsx(Dt,{type:"homesearch"})})})})}):null,z.jsx(_m,{rowSelection:{type:"checkbox",fixed:!0,...pe},columns:j,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:be(),scroll:{x:((fe=e.scroll)==null?void 0:fe.x)||300,y:((he=e.scroll)==null?void 0:he.y)||(oe&&((ke=e.panes)!=null&&ke.length)?270:316)},style:{height:"100%"},pageNo:y[g][U],pageSize:oe?20:void 0,total:oe?(Te=S==null?void 0:S[g])==null?void 0:Te[U]:void 0,size:"small",onScroll:xe=>{const $e={...y,[g]:{...y[g],[U]:xe}};w($e),oe&&F({pageNo:$e[g],isPaging:!0})},onRow:({id:xe,disabled:$e,...Pe})=>({onClick:()=>{if(!$e&&oe){if(e.isRadio&&ne.splice(0,1),!fi.readPermission(Pe.Number))return;K(xe,!ne.includes(xe))}},onDoubleClick:()=>{if(fi.readPermission(Pe.Number)){if(oe)$e||(e.isRadio?l([xe]):l([xe,...u]));else{for(let Me=0;Me<u.length;Me++)if(u[Me]==xe){u.splice(Me,1);break}l([...u])}X([],!1)}}})}),e.showFooter?z.jsxs("div",{style:{marginTop:"4px"},children:[z.jsx("span",{style:{color:"#999999"},children:J("sys.selected",{placeholder:"已选"})})," ",z.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ne.length})," ",z.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",z.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",z.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:de?u.length:S[g][U]}),z.jsxs("span",{style:{color:"#999999"},children:[" ",J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):z.jsx(z.Fragment,{})]})}})})})})}),XT=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var y,w;const i=A.useRef(null),{attr:o,allListOptions:s,popoverTransfer:u}=e,l=xu(()=>{var S;(S=i.current)==null||S.open({ok:(E,_,C)=>{var f,p;["multiple","tags"].includes(e.mode)?r==null||r(E):r==null||r(E[0]),(f=u==null?void 0:u.onSubmit)==null||f.call(u,E,_,v=>d({newVal:E,allOptions:v}),C),(p=e.onBlur)==null||p.call(e)},cancel:()=>{var E;(E=e.onBlur)==null||E.call(e)}})});A.useImperativeHandle(a,()=>({focus:l}),[]);const h=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[String(o==null?void 0:o.listCode)];return Object.entries(s||{}).map(([_,C])=>S.includes(_)?C:[]).flat(1)},[o,s,u==null?void 0:u.panes]),d=xu(({allOptions:S,newVal:E})=>{var f;const _=((f=u==null?void 0:u.panes)==null?void 0:f.map(p=>p.tabKey))||[o==null?void 0:o.listCode];let C=[];return Object.entries(S||s||{}).some(([p,v])=>{if(_.includes(p))return v.some(x=>{if(E&&(E==null?void 0:E.length)>1)return E.includes(x.value)&&!C.includes(p)&&C.push(p),!1;{const k=x.value==((E==null?void 0:E[0])||t);return k&&(C=[p]),k}})}),C.filter(Boolean).join(",")}),g=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[o==null?void 0:o.listCode];return S.length==1?S[0]:d({}).split(",")[0]},[t,s,u==null?void 0:u.panes]),b=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return z.jsxs("div",{children:[z.jsx(gu,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:b,filterOption:(S,E)=>E.label&&E.label.indexOf(S)>=0,showSearch:!0,disabled:n,options:h.map(S=>({...S,label:fi.readPermission(S.label)?S.label:J("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:S=>{["multiple","tags"].includes(e.mode)?r==null||r(S):S&&S instanceof Array?r==null||r(S[0]):r==null||r("")},tagRender:({label:S})=>fi.readPermission(S)?z.jsx(ae.Tag,{color:"#0563B2",children:S}):z.jsx(co,{}),onDropdownVisibleChange:l,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),z.jsx(eJ,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,defaultActiveKey:g||((w=(y=u==null?void 0:u.panes)==null?void 0:y[0])==null?void 0:w.tabKey)||"",defaultValue:b,allListOptions:s})]})}),tJ="_shuttle_box_1962p_1",rJ="_box_1962p_5",nJ="_search_1962p_8",x0={shuttle_box:tJ,box:rJ,search:nJ};function BE(e){const t=A.useRef(!1),r=A.useRef({}),n=u=>{if(typeof e=="function"){const l=e();return!u&&(r.current=l),Object.assign(Object.create(null),l)}else{const l=e;return!u&&(r.current=l),Object.assign(Object.create(null),e)}},[a,i]=A.useState(n(!0));A.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const o=u=>{if(!t.current)if(typeof u=="function"){const l=Object.assign(Object.create(null),u(a)||a);r.current=l,i(l)}else{const l=Object.assign(Object.create(null),r.current,u);r.current=l,i(l)}},s=()=>i(n());return _r.makeDestructurable({store:a,setStore:o,resetStore:s,latestStore:r},[a,o,s,r])}const ZT=A.forwardRef((e,t)=>{var S,E,_,C;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((S=e.attr)!=null&&S.allowMultiple),a=!!((E=e.attr)!=null&&E.required),{store:i,setStore:o,resetStore:s,latestStore:u}=BE(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),l=BE(()=>({pageNo:1,pageSize:50,total:0})),h=async f=>{o({loading:!0});try{const{data:p,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...l.latestStore.current,record:e.record});o(f?{dataSource:[...i.dataSource,...p]}:{dataSource:p}),l.setStore({total:v})}catch(p){console.log(p)}finally{o({loading:!1})}},d=A.useMemo(()=>i.selectedRows.map(f=>f[r]),[i.selectedRows]);A.useEffect(()=>{i.visible?h().finally(()=>{}):(s(),l.resetStore())},[i.visible]);const g=xu(async f=>{var p,v,x;if(a&&!f&&!i.selectedRows.length){ae.message.error(J("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(p=e.attr)==null?void 0:p.name}}));return}(x=(v=u.current.callback).ok)==null||x.call(v,f?[f[r]]:d),o({visible:!1})});A.useImperativeHandle(t,()=>({open(f){o({callback:f,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const b=()=>{h()},y={onSelectAll(f,p){n||o({selectedRows:p})},onSelect(f,p){n?p?o({selectedRows:[f]}):a||o({selectedRows:[]}):o(p?{selectedRows:[...i.selectedRows,f]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=f[r])})},getCheckboxProps:f=>({disabled:!1}),selectedRowKeys:d,columnWidth:13},w=A.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return A.useEffect(()=>{const f=_e.debounce(p=>{(p.keyCode||p.which)==13&&u.current.visible&&p.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]),z.jsx($u,{className:x0.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var f,p;o({visible:!1}),(p=(f=u.current.callback).cancel)==null||p.call(f)},footer:null,children:z.jsx("div",{onScroll:f=>f.stopPropagation(),onScrollCapture:f=>f.stopPropagation(),children:z.jsx(tc,{spinning:i.loading,children:z.jsxs("div",{className:x0.box,children:[z.jsx("div",{children:z.jsx("div",{className:`${x0.search}`,children:z.jsx(ae.Input.Search,{placeholder:J("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:z.jsx("div",{className:x0.searchBtn,onClick:b,children:z.jsx(Dt,{type:"homesearch"})}),value:i.search,onChange:f=>o({search:f.target.value}),onSearch:b})})}),z.jsx(_m,{rowSelection:{type:"checkbox",fixed:!0,...y},columns:w,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(_=e.scroll)==null?void 0:_.x,y:((C=e.scroll)==null?void 0:C.y)||300},style:{height:"100%"},...l.store,size:"small",onScroll:f=>{l.setStore({pageNo:f}),h(!0)},onFilterAndSorter:(f,p)=>{o({sorters:f,filters:p}),h()},onRow:(f,...p)=>({onClick:()=>{console.log(f,p,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(f)}})})]})})})})}),JT=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=A.useRef(null),{attr:o,allListOptions:s,selectPopupProps:u,record:l}=e,h=xu(()=>{var b;(b=i.current)==null||b.open({ok:y=>{var w,S,E;["multiple","tags"].includes(e.mode)?(r==null||r(y),(w=e.onChange)==null||w.call(e,y,s[o.listCode]||[])):((S=e.onChange)==null||S.call(e,y[0],s[o.listCode]||[]),r==null||r(y[0])),(E=e.onBlur)==null||E.call(e)},cancel:()=>{var y;(y=e.onBlur)==null||y.call(e)}})});A.useImperativeHandle(a,()=>({focus:h}),[]);const d=A.useMemo(()=>_e.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return z.jsxs("div",{children:[z.jsx(gu,{...d,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,disabled:n,options:s[o.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:h}),z.jsx(ZT,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,record:l,defaultValue:g})]})}),X1=[null,(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function aJ(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Le(n.date);return((i=X1[n.type])==null?void 0:i.call(X1,a,Le(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const HE={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},iJ=A.forwardRef((e,t)=>{const r=A.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;A.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const o=A.useMemo(()=>{var h,d;const u=g=>(g==null?void 0:g.closest(ym))||document.body||document.documentElement;(h=e==null?void 0:e.formprops)!=null&&h.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let l={getPopupContainer:u};return n.includes(i)?l={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(l={...e.formprops.props,size:"small",onChange:((d=e.formprops)==null?void 0:d.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onSave,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(l,e.record,e.apicode):l},[e.record,e.formprops,e.onSave]),s=()=>{var l;let u={...o};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((l=u.options[e.record.insId][0])!=null&&l.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},z.jsx(ae.Input,{ref:r,...u})):z.jsx(ae.Select,{ref:r,filterOption:(h,d)=>d.label&&d.label.indexOf(h)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(h=>({label:h.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:h.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return z.jsx(ae.Input,{ref:r,...u});case"DatePicker.RangePicker":return z.jsx(ae.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Is.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Is.isStatusChange(g.itemcode)?Is.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[HE[e.record.extension]]){const g=u.options[HE[e.record.extension]].map(b=>({label:b,value:b}));return z.jsx(ae.Select,{ref:r,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var b;!((b=e==null?void 0:e.record)!=null&&b.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return z.jsx(JT,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return z.jsx(XT,{ref:r,selectProps:u})}return z.jsx(ae.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return z.jsx(ae.Cascader,{ref:r,showSearch:{filter:(g,b)=>b.some(y=>y.label&&y.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const h=e.record.forbiddenTime,d=h&&h[e.name];return z.jsx(ae.DatePicker,{ref:r,...u,disabledDate:d?g=>aJ(h[e.name],g):void 0});case"Number":return z.jsx(ae.InputNumber,{ref:r,...u});case"Input.TextArea":return z.jsx(ae.Input.TextArea,{ref:r,...u});case"TreeSelect":return z.jsx(ae.TreeSelect,{ref:r,...u});case"CompositeForm":return z.jsx(Gf,{...u});default:return z.jsx(ae.Input,{ref:r,...u})}};return z.jsx(ae.Form.Item,{noStyle:!0,name:e.name,children:s()})}),oJ="_imgOuter_16ygq_1",sJ="_imgInner_16ygq_9",VE={imgOuter:oJ,imgInner:sJ},uJ=e=>z.jsx("img",{...e,src:e.src}),QT=e=>z.jsx(ae.Image,{...e,src:e.src}),Iy=e=>z.jsx("div",{className:VE.imgOuter,children:z.jsx(QT,{preview:!1,src:e.src,className:VE.imgInner,placeholder:z.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:z.jsx(Dt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),Qt=class Qt{static avoid0TypeConvert(t){return _r.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Le.isMoment(a)?_r.momentToRawData(a):a??""}return t=n(t),r=n(r),_e.isNil(t)&&_e.isNil(r)||_e.isNaN(t)&&_e.isNaN(r)?!0:t instanceof Object?_e.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!_e.isNil(t.inProcess[r])&&!_e.isNil(t.inProcess)&&Qt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!_e.isNil(t.newVal[r])&&!_e.isNil(t.newVal)&&Qt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],o=a.map(u=>{const l=t.inProcess[u],h=t[u],d=Qt.isEqual(l,h);return r==null||r("inProcess",u,d,l,h),d}).some(u=>!u),s=i.map(u=>{const l=t.newVal[u],h=t[u],d=Qt.isEqual(l,h);return r==null||r("newVal",u,d,l,h),d}).some(u=>!u);return{hasOptType:n,hasInProcess:o,hasNewValue:s}}static isEmptyValue(t){return typeof t=="number"?!1:_e.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:o,filters:s}=t;const u=Is.isUser(i.itemCode||""),l=i.tab==="Delegate";if(u&&l&&s){const h=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),d=_e.map(s.split("~!~"),g=>_e.split(g,"-")[0]);_e.includes(d,h[0])?s.split("~!~").map(g=>{if(h.includes(g.split("-")[0])){const b=g.split("-")[1].split(",");b&&Array.isArray(b)&&(_e.remove(b,y=>y==""||y==null),r.map(y=>(y.apicode==="Category"&&_e.forEach(y.formitem.props.options,w=>{_e.includes(b,w.itemCode)?w.isHidden=!1:w.isHidden=!0,b.length==0&&(w.isHidden=!1)}),y)))}}):r.map(g=>(g.apicode==="Category"&&_e.forEach(g.formitem.props.options,b=>{b.isHidden=!1}),g))}if(i.tab!=="History"){const h=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),d=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(o&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(o.split("-")[0])){const g=Qt.getFixAttrFilterOrSortInfo({filterOrSort:o,attrs:n||r.map(b=>b.attr)});o=(g==null?void 0:g.value)||o}else h.includes(o.split("-")[0])?o=o?`attributes.${o}`:"":d.includes(o.split("-")[0])&&(o=o?`current.${o}`:"");if(s){const g=r.filter(b=>["OldVersion"].includes(b.apicode)).map(b=>b.dataIndex);s=s.split("~!~").map(b=>{if(console.log(b,"item"),g.includes(b.split("-")[0]))return`current.${b.split("-")[0]}-${b.split("-")[1]===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${b.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(b.split("-")[0])){const y=Qt.getFixAttrFilterOrSortInfo({filterOrSort:b,attrs:n||r.map(w=>w.attr)});return(y==null?void 0:y.value)||s}if(h.includes(b.split("-")[0]))return b?`attributes.${b}`:"";if(d.includes(b.split("-")[0]))return b?`current.${b}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const h=_r.transformArrayToMap(n,"apicode","id");o=o.replace("insVersionOrder",`attributes.${h.Revision}`),s=s.replace("insVersionOrder",`attributes.${h.Revision}`)}return{sorters:o,filters:s,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),o=t.querySelector(".frontend-table-body").querySelector("colgroup");let s=null;return i&&(s=new MutationObserver(async(l,h)=>{const[d]=l;if(d.type=="attributes"&&d.attributeName=="style"&&!i.inhibit&&!_e.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const b=Number(g)-i.offsetWidth,y=a.children.length-2,w=_e.round(b/y,2);Array.from(a.children,(S,E)=>{const _=o.children[E];if(S==i)S.setAttribute("style",`width:${g}px;max-width:${g}px;`),_.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(E!=a.children.length-1){const C=S.style.width.replace("px","");S.setAttribute("style",`width:${Number(C)+w}px;`),_.setAttribute("style",`width:${Number(C)}px;`)}})}}else i.inhibit=!1}),s.observe(i,{attributeFilter:["style"]})),()=>{s==null||s.disconnect(),s=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[o]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([s,u])=>n==u)||[];if(o){const s=_r.getAttrOf(r,o);if(s){s.apicode==="Version"&&(a=a===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=Ul.getAttributesMapId(s),l=Ul.isQuoteAttr(s)?"attributes":"current";return{apicode:o,id:u,attr:s,filterOrSortValue:a,prefix:l,value:`${l}.${u}-${a}`}}}}}};Ar(Qt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var s;return r&&r[0]?_e.isArray(r[0])&&t?(s=t.props)!=null&&s.treeCheckable||t.props.mode==="multiple"?Qt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Qt.renderReadonlyItem({value:r[0],formitem:t}):Le.isMoment(r[0])?[Le(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],o=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:o?i:r||[],needTransform:o}}),Ar(Qt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(fi.isMosaic(a))return z.jsx(co,{});const{trulyHighlight:i,needTransform:o}=Qt.getTrulyHighlight({highlight:t,formitem:r});return o?z.jsx(rs,{highlight:i,value:n}):n}),Ar(Qt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!_e.isNil(t.newVal[r])))if(Qt.isEqual(t.newVal[r],t[r])){if(Qt.isEqual(t.newVal[r],t[r]))return z.jsx("div",{style:{width:"100%"},children:z.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return z.jsxs("div",{style:{width:"100%"},children:[z.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),z.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Qt.isEqual(t.inProcess[r],t[r]))return z.jsxs("div",{style:{width:"100%"},children:[z.jsx("div",{className:ki.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Qt.wrapperHighLight({originValue:t.inProcess[r],value:Qt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),z.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Qt.isEqual(t.newVal[r],t[r])?z.jsxs("div",{style:{width:"100%"},children:[z.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),z.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):z.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Ar(Qt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,o,s,u,l,h;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?_e.isArray(n)&&n instanceof Array?n.map(d=>_r.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(d=>_r.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):"":_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&_e.isArray(n)&&n instanceof Array?n.map(d=>_r.getLabelInOptions({value:typeof d!="string"?d.value:d,options:(r==null?void 0:r.props.treeData)||[]})).join(","):_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Le.isMoment(n)){const g=n.creationData();return n.format(((o=r==null?void 0:r.props)==null?void 0:o.format)??g.format)}else return Le(n).format(((s=r==null?void 0:r.props)==null?void 0:s.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!_e.isArray(n)?z.jsx(ae.Popover,{placement:"right",content:z.jsx("div",{style:{height:"60px",width:"60px"},children:n?z.jsx(Iy,{src:`/api${n}`}):z.jsx(z.Fragment,{})}),trigger:"hover",children:z.jsx("div",{style:{height:"26px",width:"26px"},children:n?z.jsx(Iy,{src:`/api${n}`}):z.jsx(z.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((h=_e.find((l=r.props)==null?void 0:l.options,{id:n.split("~%~")[1]}))==null?void 0:h.name)||""}`:n:"":r.isbomtag&&!_e.isArray(n)&&!(n instanceof Array)?n?_r.renderBomTag(n):"":_e.isArray(n)&&n instanceof Array?n.join(","):n??""}),Ar(Qt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Ar(Qt,"renderVersionColumn",(t,r)=>fi.isMosaic(t)?z.jsx(co,{}):t==="Draft"||_e.isString(t)&&t.split(" ")[0]==="Draft"?z.jsx(rs,{highlight:r||[],value:J("sys.label.draft",{placeholder:"草稿"})}):z.jsx(rs,{highlight:r||[],value:_e.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Jo=Qt;const lJ=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:o,handleFill:s,handleDoubleClick:u,renderCacheCell:l,loading:h,required:d,formitem:g,rowKey:b,render:y,tableKey:w,menuId:S,highlight:E,isVersion:_,isUser:C,preRender:f,apicode:p,canselectcell:v,selectedCell:x,fillContextMenu:k,setInitialState:O,...$})=>{var me,ee,ve;const D=A.useContext(Qp),[V,I]=A.useState(!1),M=A.useContext(zw),F=A.useRef(null),T=["Input","Input.TextArea","Number"];v&&x&&(x==null?void 0:x.dataIndex)===n&&(x==null?void 0:x.record[b])==a[b]&&(x==null?void 0:x.tableKey)==w&&($.style={...$.style,background:"#ddeffe"}),A.useEffect(()=>{var ue,fe;V?(ue=F.current)==null||ue.focusFormItem():(fe=F.current)==null||fe.blurFormItem()},[V]);const N=ue=>{for(;ue&&ue.nodeName!=="TR";)ue=ue.parentNode;return ue},j=async(ue,fe)=>{var Te,xe,$e;const he=()=>{if(!(!e&&!n)&&fe){const Pe=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});N(fe==null?void 0:fe.target)&&N(fe==null?void 0:fe.target).dispatchEvent(Pe)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){he();return}if(ue?u&&await u(a):!0){if(await M.validateFields(),ue){let Pe=a.newVal&&!_e.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!_e.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Me=(Te=g.props)==null?void 0:Te.format;Pe=Pe?Le(Pe,typeof Me=="string"?Me:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((xe=g==null?void 0:g.props)!=null&&xe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&(($e=g==null?void 0:g.props)==null?void 0:$e.mode)==="multiple")&&(Pe==""?Pe=[]:typeof Pe=="string"&&(Pe=Pe.split(","))),M.setFieldsValue({[n]:Pe})}I(!V)}else he()},H=async()=>{try{const ue=await M.validateFields();j(),Object.keys(ue).forEach(fe=>{(ue[fe]===null||ue[fe]===void 0)&&(ue[fe]=""),typeof ue[fe]=="string"&&(ue[fe]=ue[fe].trim())}),i({...a,...ue})}catch{}},B=(ue,fe)=>l||z.jsx("div",{className:ki.edit_cell,children:z.jsx(rs,{value:Jo.renderReadonlyItem({value:ue[fe],formitem:g}),highlight:oe})}),{show:U}=IZ({id:S}),G=()=>{v&&(o(),O&&O(ue=>({...ue,selectedCell:{dataIndex:n,record:a,tableKey:w}})))},X=ue=>{if(n){if(G(),ue.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;U(ue,{props:{key:{dataIndex:n,record:a}}})}};let K=r;const ne=a?a[n]:"",ie=A.Children.map(r,ue=>{var fe;if(A.isValidElement(ue)){const he=(fe=ue==null?void 0:ue.props)==null?void 0:fe.children;return!he||!Array.isArray(he)?null:he.some(Te=>{const xe=Te==null?void 0:Te.props;return xe&&typeof xe.className=="string"?xe.className.includes("frontend-table-row-indent"):!1})?he:null}else return null});if(!fi.readPermission(ne))return z.jsxs("td",{...$,children:[ie,z.jsx(co,{inLine:!0})]});const{trulyHighlight:oe}=Jo.getTrulyHighlight({highlight:E,formitem:g});if(C){const ue=(D==null?void 0:D.overrideLinkCom)||"a";K=z.jsx(ue,{userId:a[n],id:a[n],record:a,content:Jo.renderReadonlyItem({value:a[n],formitem:g}),highlight:oe})}else if(t){if(g.type==="Date"){const ue=(me=g.props)==null?void 0:me.format,fe=typeof ue=="string";let he,ke;if(Le.isMoment(a[n])){const Te=a[n].creationData();he=Te==null?void 0:Te.input,ke=Te==null?void 0:Te.format}a[n]=a[n]?Le(he||a[n],fe?ue:ke||"YYYY-MM-DD HH:mm:ss"):null}if(((ee=g.props)!=null&&ee.treeCheckable||((ve=g.props)==null?void 0:ve.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),V)K=z.jsx("div",{onDoubleClick:ue=>{ue.stopPropagation()},children:z.jsx(ae.Form.Item,{validateTrigger:T.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:z.jsx(iJ,{name:n,ref:F,onSave:()=>H(),formprops:g,record:a,apicode:p})})});else if(!y){let ue=B(a,n);K=z.jsxs("div",{onContextMenu:k===!1?void 0:X,title:a.newVal?Jo.renderReadonlyItem({value:a.newVal[n],formitem:g}):Jo.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ie,ue]})}}else if(n&&!y)return _?z.jsx("td",{...$,title:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:G,children:z.jsx(rs,{value:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:oe})}):z.jsx("td",{...$,title:a&&a[n]?a[n]:"",onClick:G,children:z.jsx(rs,{value:a?_e.isNil(a[n])?"":a[n]:"",highlight:oe})});const de=K==null?void 0:K.toString(),pe=Array.isArray(K)&&K[0]===void 0,be=de!=null&&de.includes("[object ")?void 0:pe?de==null?void 0:de.replace(/^\,/,""):de;return z.jsx("td",{...$,onDoubleClick:ue=>{ue.stopPropagation(),j(!0,ue)},onClick:()=>{n&&G()},children:z.jsx("div",{title:be,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:K})})},cJ=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},dJ=e=>z.jsxs(VZ,{id:e.menuId,children:[z.jsx(zE,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:J("sys.prompt.fillUp",{placeholder:"向上填充"})}),z.jsx(zE,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:J("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),fJ=e=>{const[t,r]=A.useState({}),[n,a]=A.useState({}),i=A.useRef(null),{Option:o}=ae.Select,s=(g,b)=>{r(g),a(b)};return{getColumnSearchProps:A.useCallback((g,b)=>{const y=()=>{var _,C;return typeof(b==null?void 0:b.title)=="string"?b==null?void 0:b.title:(C=(_=b==null?void 0:b.search)==null?void 0:_.props)==null?void 0:C.placeholder},w=(_,C,f)=>{C()},S=(_,C)=>{_(),C()},E=(_,C,f)=>{var x,k;const p={size:"small",onChange:O=>{O&&O.target?_(O.target.value?[O.target.value]:[]):_(O?[O]:[])},style:{marginBottom:8,display:"block"}},v=z.jsx(ae.Input,{size:"small",ref:i,placeholder:J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:y()}}),value:C[0],onPressEnter:()=>w(C,f),..._e.omit(p,["size"])});if(b.search)switch(b.search.type){case"Input":return v;case"Select":let O=(k=(x=b==null?void 0:b.search)==null?void 0:x.props)==null?void 0:k.options;return b.apicode==="ProblemVersion"&&(O=_e.uniqBy(_e.flatten(Object.values(O||{})),"value")||[],O=O.map($=>({label:$.label==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):$.label,value:$.value}))),O=(O||[]).filter($=>fi.readPermission($.label)),z.jsx(ae.Select,{size:"small",onKeyUp:$=>{($.keyCode===13||$.charCode==13)&&w(C,f)},ref:i,mode:"multiple",placeholder:`${J("sys.label.selectOption",{placeholder:"请选择"})} ${y()}`,value:C[0],filterOption:($,D)=>D.label&&D.label.indexOf($)>=0,..._e.omit(p,["size"]),children:(O||[]).map($=>{if(!$.isHidden)return A.createElement(o,{...$,value:$.value,disabled:$.disabled,key:$.value,label:$.label},z.jsx("div",{title:$.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:$.label}))})});case"Date":return z.jsx(ae.DatePicker,{size:"small",value:C[0],..._e.omit(p,["size"])});case"CompositeForm":return z.jsx("div",{className:"compositeFormClass",children:z.jsx(Gf,{...b.formitem.props,valueType:b.valueType,value:C[0],size:"small",..._e.omit(p,["size"])})})}else return v};return b.search?{filterIcon:_=>z.jsx(kl,{style:{color:_?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:_,selectedKeys:C,confirm:f,clearFilters:p})=>z.jsxs("div",{style:{padding:8},children:[z.jsx("div",{style:{marginBottom:"5px"},children:E(_,C,f)}),z.jsxs(ae.Space,{children:[z.jsx(ae.Button,{type:"primary",onClick:()=>w(C,f),icon:z.jsx(kl,{}),size:"small",style:{width:90},children:J("sys.filter",{placeholder:"筛选"})}),z.jsx(ae.Button,{onClick:()=>S(p,f),size:"small",style:{width:90},children:J("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:_=>{_&&(b.search.type==="Input"||b.search.type==="Select")&&setTimeout(()=>{var C;return(C=i==null?void 0:i.current)==null?void 0:C.focus()},100)}}:{}},[]),setTableFiltered:g=>{s(g.sort(t),g.screen(n))},clearFilters:g=>{s({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,b,y,w)=>{a(b),r(y),s(y,b);let S="",E="";_e.isArray(y)?y&&y.length&&(S=y.map(C=>`${C.field}-${C.order}`).join(",")):y.field&&y.order&&(S=`${y.field}-${y.order==="ascend"?"asc":"desc"}`);const _=C=>C.map(f=>Array.isArray(f)?f.join(","):Le.isMoment(f)?f.format("YYYY-MM-DD"):f);E=_e.remove(Object.keys(b).map(C=>b[C]&&typeof b[C][0]=="string"||typeof b[C]!="string"&&b[C]&&b[C][0]?`${C}-${_(b[C]||[]).join(",")}`:null),C=>C!==null).join("~!~"),e&&e(S,E,y.field,b)},sortInfo:t,filterInfo:n}},hJ=e=>{var o,s;const t=((o=e.dataSource)==null?void 0:o.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(s=e.rowSelection.selectedRowKeys)==null?void 0:s.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=z.jsx(Dt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?z.jsx(z.Fragment,{}):z.jsxs("div",{className:`${ki.table_footer} ${e.className||""}`,children:[e.hideTableCount?z.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):z.jsxs("div",{style:a,children:[J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),z.jsxs("span",{children:[" ",t,"/",r," "]}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",J("sys.selected",{placeholder:"已选"}),z.jsx("span",{children:` ${n} `}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&z.jsx("div",{children:z.jsx(Dt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},pJ=(e,t,r,n,a,i,o)=>{var f;const[s,u]=A.useState(!1),[l,h]=A.useState(0),[d,g]=A.useState(e.columns||[]),[b,y]=A.useState(null),[w,S]=A.useState(null),E=p=>(v,{size:x})=>{v.stopImmediatePropagation();const k=[...d];k[p]={...k[p],width:x.width},g(k)};A.useEffect(()=>{g(e.columns)},[e.columns]);const _=Number(((f=e==null?void 0:e.scroll)==null?void 0:f.y)||i)+24;return{renderColumns:d?d.filter(p=>p).map((p,v)=>_e.extend({...p,sorter:p.sorter?{}:!1,required:p.editable?p.required:!1,sortOrder:t.field===p.dataIndex&&t.order,filteredValue:r?r[p.dataIndex]||[]:[],onHeaderCell:x=>({dataIndex:p.dataIndex,width:x.width,required:p.required,editable:p.editable,trulyHeight:_,tableKey:e.tableKey,formitem:p.formitem,onResize:E(v),onResizeOver:k=>{h(k.screenX),u(!0)},onResizeStop:k=>{console.log(k),u(!1)}}),onCell:x=>{var $,D;const k=(($=p==null?void 0:p.onCell)==null?void 0:$.call(p,x))||{},O=(typeof e.rowKey=="string"?e.rowKey:(D=e.rowKey)==null?void 0:D.call(e,x))||"id";return{record:x,className:`${p.className??""} ${p.dataIndex==w&&x[O]==b?ki.loading:""}`,editable:p.editable,isVersion:p.isVersion,isUser:p.isUser,apicode:p.apicode,dataIndex:p.dataIndex,title:p.title,formitem:p.formitem,required:p.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:p.render,highlight:r[p.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:o,renderCacheCell:Jo.renderCacheCell(x,p.dataIndex,p.formitem,void 0,{highlight:r[p.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:V=>{if(e.onDoubleClick){const I=e.onDoubleClick(p,V);return I instanceof Promise&&(y(x[O]),S(p.dataIndex),I.finally(()=>{y(null),S(null)})),I}else return!0},handleSave:V=>{e.onSubmit&&e.onSubmit(V,p)},...k}}},a(p.dataIndex,p))):[]}},eP="INPUT_NAMESPACE",mJ=(e,t,r,n)=>{const[a,i]=A.useState();function o(s){const u=s.toString(),l=u.indexOf(".");return l===-1?0:u.slice(l+1).length}return A.useEffect(()=>{async function s(u){var b,y,w,S,E,_,C,f,p,v;if(u.target instanceof HTMLInputElement&&((y=(b=u.target)==null?void 0:b.dataset)==null?void 0:y.type)!=eP||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${ym}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let l=(w=u.clipboardData)==null?void 0:w.getData("text");const h=await Promise.resolve().then(()=>require("./xlsx-CWPQLUZU.js"));if(l&&r&&n){var d=h.read(l,{type:"binary"}),g=d.SheetNames;const x=h.utils.sheet_to_json(d.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),k=n.findIndex(D=>{var V,I,M;return D.dataIndex==r.dataIndex&&D.editable&&(((V=D.formitem)==null?void 0:V.type)=="Input"||((I=D.formitem)==null?void 0:I.type)=="Input.TextArea"||((M=D.formitem)==null?void 0:M.type)=="Number")});let O=n.findIndex((D,V)=>{var I,M,F;return V>k&&(!D.editable||!(((I=D.formitem)==null?void 0:I.type)=="Input"||((M=D.formitem)==null?void 0:M.type)=="Input.TextArea"||((F=D.formitem)==null?void 0:F.type)=="Number"))});O==-1&&(O=n.length);const $=n.slice(k,O);if($.length>0){const D=x.map(V=>V.filter(I=>V.indexOf(I)<$.length))||[];for(let V=0;V<D.length;V++){const I=D[V]||[];for(let M=0;M<I.length;M++){const F=I[M],T=((S=$[M].formitem)==null?void 0:S.type)=="Number",N=(_=(E=$[M].formitem)==null?void 0:E.props)==null?void 0:_.precision,j=(f=(C=$[M].formitem)==null?void 0:C.props)==null?void 0:f.min,H=(v=(p=$[M].formitem)==null?void 0:p.props)==null?void 0:v.max;if(T){const B=_e.toNumber(F),U=B&&(j?B>=j:!0)&&(H?B<=H:!0)&&(_e.isNumber(N)&&N>0?o(B)<=N:!0);I[M]=U?B:void 0}}}i(D)}}}return document.addEventListener("paste",s),()=>{document.removeEventListener("paste",s)}},[r,n]),{pasteData:a}},gJ=e=>`${e}Key`,Z1=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,vJ=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...s)=>`${e}+${s.join(n)}`,i=di(t),o=di(_e.fromPairs(i.current.map(([s,u])=>[a(...s),u])));A.useEffect(()=>{console.log("初始化 useShortcutKey");const s=()=>i.current.map(([b])=>b).flat(1),u=b=>{var y,w,S;(!r||((y=b.target)==null?void 0:y.id)==r)&&(l.push(Z1(b)),(S=(w=o.current)[l.join(n)])==null||S.call(w,b))},l=[],h={},d=b=>{var y;if(!r||((y=b.target)==null?void 0:y.id)==r){const w=Z1(b);b[gJ(e)]&&!h[w]&&(h[w]=!0,s().includes(b.key)&&l.includes(e)&&b.preventDefault(),u(b))}},g=b=>{const y=Z1(b);h[y]=!1,l.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",d),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",d)}},[])},bJ=(e,t)=>{const[r,n]=A.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:o}=e,{selectedRowKeys:s=[]}=o||{},{childKeyName:u="children",isMark:l=!0,initialState:h,setInitialState:d}=a||{},g=String(e.rowKey||"id"),[b,y]=A.useState(!1),w=()=>b&&s.length,S=p=>v=>{w()&&p(v)},E=async(p,v)=>{var k;const x=[];x.type="shear",x.namespace=t,v.forEach(O=>{_r.isDelTableRow(O)||x.push({...O,toShear:()=>O.shear=!0})}),_r.ArrayAttributeFlat(x,u,O=>{O.toShear||(O.shear=!0)}),(!p.onBeforeShear||await p.onBeforeShear(x))&&(x.forEach(O=>{O.toShear(),delete O.toShear}),console.log("剪切",x),d&&d(O=>({...O,clipboard:x})),p.setDataSource("shear",i),(k=p.onAfterShear)==null||k.call(p,x),x.length&&(x.onPasteCallback=async O=>{var I;const $=O==t,D=[...i],V=()=>{d&&d(M=>({...M,clipboard:[]})),[...x].reverse().forEach(M=>{const F=_r.getTreeRelationNoRecursion({data:D,lookup:T=>T[g]==M[g],childrenKey:u});l&&F.self.dataType!=="add"?(F.self.shear=!1,F.self.dataType="del",_r.ArrayAttributeFlat(F.self[u],u,T=>{T.toShear||(T.shear=!1,T.dataType="del")})):F.parent?F.parent[u].splice(F.index,1):D.splice(F.index,1)}),p.setDataSource("shear",D)};return!p.onBeforeDeleteShear||await p.onBeforeDeleteShear({isSameSpace:$,deletes:x})?(V(),(I=p.onAfterDeleteShear)==null||I.call(p,{isSameSpace:$,deletes:x}),Promise.resolve(D)):Promise.reject(J("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},_=async(p,v)=>{var k;const x=[];x.type="copy",x.namespace=t,v.forEach(O=>{_r.isDelTableRow(O)||(O.shear=!1,_r.ArrayAttributeFlat(O[u],u,$=>{$.shear=!1}),x.push({...O}))}),(!p.onBeforeCopy||await p.onBeforeCopy(x))&&(console.log("复制",x),d&&d(O=>({...O,clipboard:x})),p.setDataSource("paste",i),(k=p.onAfterCopy)==null||k.call(p,x))},C=async(p,{pasteData:v,pasteTarget:x})=>{var O,$;const k=_r.ArrayAttributeFlat(v,u).every(D=>!x.includes(D[g]));if(console.log({isNonSelf:k}),x.length==1&&v.length&&k){const V=_r.ArrayAttributeFlat(i,u).find(M=>M[g]==x[0]),I=p.pasteInto||"child";if(!p.onBeforePaste||await p.onBeforePaste({target:V,rows:v,type:I}))try{const M=await((O=v.onPasteCallback)==null?void 0:O.call(v,t))||[...i],F=_r.getTreeRelationNoRecursion({data:M,lookup:T=>T[g]==V[g],childrenKey:u});if(l){const T=N=>N.map(j=>Object.assign({...j,shear:!1,dataType:"add",[g]:_r.generateUUID(),primitiveInsId:j.primitiveInsId||j[g]},j[u]?{[u]:T(j[u].filter(H=>!N.some(B=>B[g]==H[g]))||[])}:{}));v=T(v)}if(I=="child"){const T=F.self[u];F.self[u]=[...T,...v]}else F.parent?F.parent[u].splice(F.index+1,0,...v):M.splice(F.index+1,0,...v);p.setDataSource("paste",M),($=p.onAfterPaste)==null||$.call(p,{target:V,type:I})}catch(M){console.error(M)}}};a&&vJ(_r.isMac()?"meta":"ctrl",{shortcuts:[[["x"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({shearList:p}),E(a,p)})],[["c"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({copyList:p}),_(a,p)})],[["v"],S(async()=>{const p=(h==null?void 0:h.clipboard)||[];C(a,{pasteData:p,pasteTarget:s})})]],namespace:t});const f=A.useRef(null);return A.useEffect(()=>{var p;r||((p=f.current)==null||p.focus(),y(!0))},[s.length,s[0]]),A.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:b,focus:()=>{var v;const p=document.querySelector(":focus");p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement||(v=f.current)==null||v.focus()},shear:E,copy:_,paste:C,FocusDom:z.jsx("input",{ref:f,"data-type":eP,type:"text",id:t,onFocus:()=>y(!0),onBlur:()=>y(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},yJ=(e,t,r,n)=>{const[a,i]=A.useState();return A.useEffect(()=>{async function o(s){if(r){const u=s.clipboardData,l=r.dataIndex,h=r.record;let d=null;if(h.newVal&&Object.hasOwn(h.newVal,l)?d=h.newVal[l]:d=h[l]||null,d)try{u.setData("text/plain",d),i(d),s.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",o),()=>{document.removeEventListener("copy",o)}},[r,n]),{copyData:a}},zw=A.createContext(null),ym="tableTopBox",_m=A.forwardRef((e,t)=>{var D;A.useImperativeHandle(t,()=>({scrollTo:V=>{i.current.scrollTo(V)},scrollXTo:V=>{if(a.current){const I=a.current.querySelector(".frontend-table-body");I&&(I.scrollLeft=V)}},clearFilters:h,setTableFiltered:b,clipboard:$}));const[r]=A.useState(_r.generateUUID()),n=A.useRef(null),a=A.useRef(null),i=A.useRef(null),[o]=ae.Form.useForm(),s=cJ(),{sortInfo:u,filterInfo:l,clearFilters:h,getColumnSearchProps:d,onFiltersChange:g,setTableFiltered:b}=fJ(e.onFilterAndSorter),[y,{toggleFullscreen:w,exitFullscreen:S}]=J5(a,{pageFullscreen:{zIndex:500}}),E=e.tableKey||r;A.useEffect(()=>{const V=I=>{I.key=="Escape"&&y&&S()};return addEventListener("keydown",V),()=>{removeEventListener("keydown",V)}});const _=EZ({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||y),[C,f]=CZ(()=>({scroll:{y:1e3},ref:i}),[]),p={header:{cell:kZ},body:{cell:lJ}};A.useMemo(()=>f(p),[f]);const{renderColumns:v}=pJ({...e,tableKey:E},u,l,s,d,_,e.selectedCell),{pasteData:x}=mJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{var V;if(x&&e.selectedCell){const I=e.dataSource||[],M=String(e.rowKey)||"id",F=I.findIndex(G=>{var X;return G[M]==((X=e.selectedCell)==null?void 0:X.record[M])}),T=e.columns.findIndex(G=>{var X;return G.dataIndex==((X=e.selectedCell)==null?void 0:X.dataIndex)});let N=((V=x[0])==null?void 0:V.length)||0,j=(x==null?void 0:x.length)||0;const H=e.columns.slice(T,T+N),B=I.slice(F,F+j);let U=[];x.forEach((G,X)=>{if(B.length>X){const K={};G.forEach((ne,ie)=>{H.length>ie&&(K[H[ie].dataIndex]=ne,K[M]=B[X][M])}),U.push(K)}}),e.onPaste&&e.onPaste(_r.transformArrayToMap(U,M))}},[x]);const{copyData:k}=yJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{k&&e.selectedCell&&e.onCopy&&e.onCopy(k)},[k]);const{run:O}=xH(async V=>{const I=e.pageNo||1,M=e.pageSize||10,F=e.total||0;Math.abs(parseInt(V.target.scrollTop+V.target.clientHeight)-V.target.scrollHeight)<1.5&&!e.loading&&I*M<F&&e.onScroll&&e.onScroll(I+1)},{wait:400}),$=bJ(e,r);return z.jsxs("div",{ref:n,id:`table_key_${E}`,className:`${ki.main} ${ym}`,style:{position:"relative",overflow:"hidden"},onClick:V=>$.focus(),onScrollCapture:V=>{V.target.scrollHeight!==24&&V.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&O(V):O(V))},children:[z.jsx(dJ,{menuId:s,..._e.pick(e,["onFill"])}),$.FocusDom,z.jsxs(ae.Form,{form:o,component:!1,children:[z.jsx(zw.Provider,{value:o,children:z.jsx(ae.Table,{className:ge(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:C,bordered:!0,..._e.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:E,loading:{indicator:z.jsx(Vf,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:V,onExpand:I,record:M,expandable:F})=>M.children&&M.children.length||M.hasChildren?V?z.jsx(y5,{className:"expand",onClick:T=>{I(M,T)}}):z.jsx(_5,{className:"expand",onClick:T=>{I(M,T)}}):(e.isTree||F!==void 0)&&z.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:_,scrollToFirstRowOnChange:!0,..._e.merge(e.scroll,{x:(D=e.scroll)==null?void 0:D.x})},columns:v,onChange:g})}),z.jsx(hJ,{...e,className:e.tableFooterClassName,clearFilters:h,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:al}=ae.Select,tP=A.forwardRef((e,t)=>{const r=A.useRef("1848553711328477186"),[n,a]=A.useState([]),[i,o]=A.useState([]),[s,u]=A.useState([]),l=Sa({pageNo:1,pageSize:50,total:0}),h=Sa({sorter:"",filters:"",itemCodes:`${Cs.material},${Cs.document},${Cs.file}`,initialItemCodes:""}),d=Sa({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:J("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:J("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});qf(()=>{var _;let E=[];for(let C of e.columns||d.columns)E.push({...C,render:!C.render&&((_=e.placeholderCode)!=null&&_.includes(C.dataIndex))?f=>z.jsx(rs,{value:f,highlight:g.numberHighLight||[]}):C.render});d.columnsHighlight=E,e.isSelect&&e.allCategories?e.getItems().then(C=>{if(C.code==200){let f=[];for(let v of C.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&f.push({label:v.name,value:v.code});d.conditionObject=f;let p=_e.map(f,"value").join(",");h.itemCodes=p,h.initialItemCodes=_e.cloneDeep(p),y(!0)}}):y(!0)}),A.useEffect(()=>(e.enter&&!d.focus&&s.length>0?b():document.onkeydown=null,()=>{document.onkeydown=null}),[s,d.focus]),A.useImperativeHandle(t,()=>({getLoading:E=>{d.loading=E},backfill:E=>{u(E)}}));const g=Sa({numberHighLight:[]}),b=()=>{document.onkeydown=function(E){var _=window.event||E,C=_.keyCode||_.which;if(C==13&&!d.loading){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ae.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let f=s.length?_e.map(s,"id").join(","):"";e.onChange&&e.onChange(f),e.handleSubmit&&e.handleSubmit(s)}}},y=async(E=!1,_)=>{d.loading=!0;const{pageNo:C,pageSize:f}=l,{filters:p,sorter:v,itemCodes:x}=h;let k={...e.params};if(d.searchValue&&(e.formate=="1"||e.formate=="2"?k.orQuery=e.params.columns.split(",").map(I=>I+"-"+d.searchValue).join("~!~"):k.keyword=d.searchValue),!e.getUrlData){a([]),l.total=0,d.loading=!1;return}const{records:O,total:$,columns:D}=await e.getUrlData({pageNo:C,pageSize:f,filters:p,sorter:v,itemCodes:x,refreshSize:_,searchValue:d.searchValue,sideChoice:d.sideChoice,params:k});D&&(d.columns=D),d.loading=!1;const V=O||[];l.total=$,E?(a(V),o(_e.cloneDeep(V)),e.onInit&&e.onInit(V)):(a([...n,...V]),o(_e.cloneDeep([...n,...V])))},w=E=>{E=="0"?h.itemCodes=h.initialItemCodes:h.itemCodes=E,a([]),u([]),l.pageNo=1,d.searchValue="",y(!0,l.pageSize)},S=E=>{u([]),e.searchChange&&e.searchChange(E),d.searchValue=E,g.numberHighLight=E?[E]:[],l.pageNo=1,y(!0)};return z.jsx($u,{width:e.width,forceRender:!0,className:W1.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(s)},children:z.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&z.jsx("div",{className:W1.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?z.jsx(IT,{itemCode:Cs.technology,onGetTreeFields:E=>{},onSelected:E=>{r.current=E.id,l.pageNo=1,y(!0)},outIsSelected:!1,getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab()}):[J("sys.myCreated",{placeholder:"我创建的"}),J("sys.label.all",{placeholder:"全部"})].map((E,_)=>z.jsx("div",{onClick:()=>{d.sideChoice=_,l.pageNo=1,y(!0)},style:{marginBottom:"12px",cursor:"pointer",color:_==d.sideChoice?"#0563b2":""},children:E},_))}),z.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&z.jsx(ae.Form.Item,{rules:[{required:!1}],children:z.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&z.jsxs(z.Fragment,{children:[e.allCategories&&d.conditionObject.length>0&&z.jsxs(ae.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[z.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),"(",d.conditionObject.map(E=>z.jsx(al,{value:E.value,children:E.label})),")"]}),!e.allCategories&&z.jsxs(ae.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[z.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),z.jsx(al,{value:Cs.material,children:J("sys.label.material",{placeholder:"物料"})}),z.jsx(al,{value:Cs.document,children:J("sys.document.document",{placeholder:"文档"})}),z.jsx(al,{value:Cs.file,children:J("sys.label.file",{placeholder:"文件"})})]})]}),z.jsx(ae.Input,{style:{width:240},onBlur:()=>{d.focus=!1},onFocus:()=>{d.focus=!0},allowClear:!0,value:d.searchValue,placeholder:e.placeholder||J("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:z.jsx(Dt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{S(d.searchValue)}}),onChange:E=>{d.searchValue=E.target.value,E.target.value||(u([]),e.searchChange&&e.searchChange(""),l.pageNo=1,g.numberHighLight=[],y(!0))},onPressEnter:E=>{S(E.target.value)}})]})}),e.isDownload&&z.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[z.jsx(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"1")},children:J("sys.label.download",{placeholder:"下载"})}),z.jsx("span",{style:{marginRight:"24px"}}),z.jsxs(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"2")},children:[J("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),z.jsx("div",{className:W1.tableFrame,style:{display:"flex"},children:z.jsx(_m,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:s.map(E=>E.id),onChange:(E,_)=>{e.isCheckbox?u(_):_.length?u([_.pop()]):u([])},getCheckboxProps:E=>({disabled:E.number==="~#~"||!!(e.convertFun&&_e.includes(E.unique,"-"))})},onRow:E=>({onDoubleClick:()=>{if(E.number!=="~#~")if(s.length>1){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ae.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(_e.map(s,"id").join(",")),e.handleSubmit&&e.handleSubmit(s)}else u([E]),e.onChange&&e.onChange(E.id),e.handleSubmit&&e.handleSubmit([E])}}),loading:d.loading,dataSource:n,columns:d.columnsHighlight,...l,scroll:{y:e.height||200},onScroll:E=>{l.pageNo=E,y()},onFilterAndSorter:(E,_,C)=>{if(u([]),e.isBuiltInSort)if(E){let f=_e.orderBy(n,[E.split("-")[0]],[E.split("-")[1]]);a(f)}else a(i);else{if(e.isUseRuleSort){const f=Jo.sortAndFilterTable({sorters:E,filters:_,sortersField:C,tableColumns:e.columns});h.sorter=f.sorters,h.filters=f.filters}else h.sorter=E,h.filters=_;l.pageNo=1,y(!0)}}})})]})]})})}),_J="_selectFrameBox_mktv5_1",wJ={selectFrameBox:_J},rP=A.forwardRef((e,t)=>{var o;const[r,n]=A.useState(e.value);A.useEffect(()=>{n(e.value)},[e.value]);const a=Sa({visible:!1,options:[],enter:!1});A.useEffect(()=>{e.options&&e.options.length&&(a.options=e.options)},[e.options]);const i=()=>{var h;const s=(h=e.params)==null?void 0:h.ids,u=s?s.join(","):"",l=e.isCheckbox?r&&r.join(","):r;return`${u}${l!=null&&l.length&&u?",":""}${l??""}`};return z.jsxs("div",{className:wJ.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?z.jsx("div",{children:(o=_e.filter(e.options,s=>s.id==r)[0])==null?void 0:o.Name}):z.jsxs("div",{style:{display:"flex",gap:"5px"},children:[z.jsx(ae.Select,{style:{minWidth:"85px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:a.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(a.visible=!0,a.enter=!0)},onChange:s=>{e.onChange&&e.onChange(s)},tagRender:s=>fi.readPermission(s.label)?z.jsx(ae.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:z.jsx(Dt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:()=>{const u=r.filter(l=>l!==s.value);n(u),e.onChange&&e.onChange(u)}}),children:s.label},s.value):z.jsx(co,{})}),e.showButton?z.jsx(ae.Button,{onClick:()=>{a.visible=!0,a.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:z.jsx(Dt,{type:"content-search",style:{fontSize:"16px"}})}):z.jsx(z.Fragment,{})]}),a.visible&&z.jsx(tP,{visible:a.visible,title:e.title||J("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async s=>{const{records:u,total:l}=await e.getUrlData(s);return{records:u,total:l}},getItems:()=>e.getItems&&e.getItems()||[],params:{...e.params,ids:i()},getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab(),isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:a.enter,placeholder:e.searchPlaceholder||J("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:s=>{if(e.isCheckbox){let u=_e.compact(_e.concat(r,s.split(",")));e.onChange&&e.onChange(s?u:void 0)}else e.onChange&&e.onChange(s)},handleSubmit:s=>{e.isCheckbox?a.options=_e.concat(a.options,s):a.options=s,e.onSubmit&&e.onSubmit(a.options),a.visible=!1,a.enter=!1},onInit:s=>{a.options=s},onCancel:()=>{a.visible=!1,a.enter=!1}})]})}),xJ="_searchTextTips_daoe4_1",SJ={searchTextTips:xJ};function CJ({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=A.useState(!1),[i,o]=A.useState([]),s=A.useRef(0);A.useEffect(()=>{o(r.options)},[r.options]);const u=A.useMemo(()=>{const l=h=>{s.current+=1;const d=s.current;o([]),a(!0),e(h,r).then(g=>{d===s.current&&(o(g),a(!1))})};return _e.debounce(l,t)},[e,t]);return z.jsx(ae.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?z.jsx("div",{style:{textAlign:"center"},children:z.jsx(ae.Spin,{size:"small"})}):z.jsx(ae.Empty,{image:ae.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{o(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:l=>z.jsxs(z.Fragment,{children:[l,z.jsx(ae.Divider,{style:{margin:"8px 0"}}),z.jsx("div",{className:SJ.searchTextTips,children:`${J("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${J("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function UE(e,t){var i,o;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,_e.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=_e.reject((o=r.result)==null?void 0:o.records,s=>{var u;return s[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const EJ=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),[a,i]=A.useState([]);return qf(async()=>{i(await UE("",e))}),z.jsx(CJ,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:UE,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),OJ=e=>z.jsx(z.Fragment,{}),op=e=>z.jsx(ae.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),nP=A.forwardRef((e,t)=>{const r=A.useContext(Qp),n=(r==null?void 0:r.formItemCom)||{},a=A.useCallback((s,u)=>{var g,b;const{type:l,cannotread:h,props:d}=s;if(h!=="0"){let y=!1;if(typeof e.readOnly=="boolean"?y=e.readOnly:typeof e.readOnly=="function"&&(y=e.readOnly()),l==="Input")return y?z.jsx(X0,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(X0,{...d});if(l==="Select")return d!=null&&d.loading?(u="",z.jsx(ae.Form.Item,{noStyle:!0,children:z.jsx(gu,{...d,options:[],loading:!0,value:((b=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:b.mode)==="multiple"?[]:"",disabled:y||(d==null?void 0:d.disabled)})})):d!=null&&d.options&&d.options.length?typeof u=="string"&&u.split(",").length>1&&(d==null?void 0:d.mode)!=="multiple"?e.readOnly?z.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(w=>z.jsx(ae.Tag,{children:_r.getLabelInOptions({value:w,options:(d==null?void 0:d.options)||[]})},w))}):(d.options=[...d==null?void 0:d.options,{label:u.split(",").map(w=>_r.getLabelInOptions({value:w,options:(d==null?void 0:d.options)||[]})).join(","),disabled:!0,value:u}],z.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...d,showSearch:!0,disabled:y||(d==null?void 0:d.disabled)})):z.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...d,showSearch:!0,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(gu,{...d,showSearch:!0,options:[],disabled:y||(d==null?void 0:d.disabled)});if(l==="PopupSelect")return d.options===void 0||d.options.length>0?z.jsx(rP,{...d,title:e.label,disabled:y||(d==null?void 0:d.disabled)},e.name):"";if(l==="SearchSelect")return z.jsx(EJ,{...d},e.name);if(l==="Checkbox")return z.jsx(ae.Checkbox,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Checkbox.Group")return z.jsx(ae.Checkbox.Group,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Input.TextArea")return y?z.jsx(ae.Input.TextArea,{...d,disabled:!0}):z.jsx(ae.Input.TextArea,{...d});if(l==="Input.Password")return y?z.jsx(ae.Input.Password,{...d,disabled:!0}):z.jsx(ae.Input.Password,{...d});if(l==="Date")return y?z.jsx(ae.DatePicker,{...d,size:"middle",placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.DatePicker,{...d});if(l==="DatePicker.RangePicker")return y?z.jsx(ae.DatePicker.RangePicker,{...d,disabled:y||(d==null?void 0:d.disabled),placeholder:["",""],separator:""}):z.jsx(ae.DatePicker.RangePicker,{...d});if(l==="TimePicker.RangePicker")return y?z.jsx(ae.TimePicker.RangePicker,{...d,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.TimePicker.RangePicker,{...d});if(l==="Switch")return z.jsx(ae.Switch,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Number")return(d==null?void 0:d.apicode)==="FileSize"?z.jsx(X0,{...d,disabled:y||(d==null?void 0:d.disabled)},d.id):y?z.jsx(ae.InputNumber,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.InputNumber,{...d});if(l==="Cascader")return y?z.jsx(ae.Cascader,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.Cascader,{showSearch:{filter:(w,S)=>S.some(E=>E.label&&E.label.toLowerCase().indexOf(w.toLowerCase())>-1),matchInputWidth:!1},...d});if(l==="TreeSelect")return d.treeData&&d.treeData.length?y?z.jsx(op,{...d,disabled:y||(d==null?void 0:d.disabled),showSearch:!0,treeNodeFilterProp:"label"}):z.jsx(op,{...d,showSearch:!0,treeNodeFilterProp:"label"}):z.jsx(op,{disabled:y||(d==null?void 0:d.disabled)});if(l==="Radio")return y?z.jsx(ae.Radio,{...d,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.Radio,{...d});if(l==="Radio.Group")return y?z.jsx(ae.Radio.Group,{...d,disabled:y||(d==null?void 0:d.disabled)}):z.jsx(ae.Radio.Group,{...d});if(l==="Slider")return z.jsx(ae.Slider,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Markdown")return z.jsx(IR,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="SelectPopup")return z.jsx(JT,{selectProps:d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="SelectTransfer")return z.jsx(XT,{selectProps:d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="CompositeForm")return z.jsx(Gf,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="Title")return z.jsx(OJ,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(n[l]){const w=n[l];return z.jsx(w,{type:l,...d,name:e.name,disabled:y||(d==null?void 0:d.disabled)},e.name)}return z.jsx("span",{children:u})}else return z.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=A.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?_e.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),o=e.content.type=="Title";return z.jsx(ae.Form.Item,{colon:!1,..._e.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:ge(KW.main,e.className,o?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),RJ="_itemsCreated_ow91h_1",TJ="_rowBox_ow91h_4",PJ="_labelLength_ow91h_8",il={itemsCreated:RJ,rowBox:TJ,labelLength:PJ},kJ="_advanced_search_content_775l0_1",$J="_disableBg_775l0_1",AJ="_checkboxWidth_775l0_15",DJ="_radioWidth_775l0_18",NJ="_conditions_head_775l0_21",MJ="_head1_775l0_29",IJ="_head2_775l0_32",FJ="_head3_775l0_35",jJ="_head4_775l0_38",LJ="_properties_box_775l0_41",zJ="_className_tips_775l0_44",BJ="_groupHeader_775l0_49",HJ="_iconBtn_775l0_52",VJ="_properties_item_775l0_61",UJ="_left_tips_775l0_84",qJ="_state_type_775l0_87",WJ="_verification_775l0_100",YJ="_verificationBorder_775l0_121",Tt={advanced_search_content:kJ,disableBg:$J,checkboxWidth:AJ,radioWidth:DJ,conditions_head:NJ,head1:MJ,head2:IJ,head3:FJ,head4:jJ,properties_box:LJ,className_tips:zJ,groupHeader:BJ,iconBtn:HJ,properties_item:VJ,left_tips:UJ,state_type:qJ,verification:WJ,verificationBorder:YJ},GJ="_shuttle_box_tufhg_1",KJ="_transferBox_tufhg_4",XJ="_selectNum_tufhg_7",S0={shuttle_box:GJ,transferBox:KJ,selectNum:XJ},ZJ=e=>{const t=Sa({dataSource:[],targetKeys:[],columns:[]}),r=s=>s&&_e.isString(s)&&s.includes("~#~")?z.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):s;A.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let s=[];for(let u of e.columns)s.push({...u,ellipsis:!0,sorter:(l,h)=>{const d=u.dataIndex||"";return l[d]!=null&&h[d]!=null?_e.isString(l[d])&&_e.isString(h[d])?l[d].localeCompare(h[d]):_e.isNumber(l[d])&&_e.isNumber(h[d])?l[d]-h[d]:0:0},render:u.render?u.render:r});t.columns=s},[e.dataSource,e.targetKeys]);const n=({...s})=>z.jsx(ae.Transfer,{...s,rowKey:u=>u.id,children:({direction:u,filteredItems:l,onItemSelectAll:h,onItemSelect:d,selectedKeys:g})=>{const b={onSelectAll(y,w){const S=w.filter(_=>!_.disabled).map(({id:_})=>_),E=y?_e.difference(S,g):_e.difference(g,S);h(E,y)},onSelect({id:y},w){e.isRadio&&g.splice(0,1),d(y,w)},getCheckboxProps:y=>({disabled:y.name=="~#~"||y.number=="~#~"||y.empNo=="~#~"?!0:u=="left"?y.disabled:!1}),selectedRowKeys:g};return z.jsxs(z.Fragment,{children:[z.jsx(ae.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...b},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:l,scroll:{y:301},style:{height:"338px"},size:"small",onRow:y=>({onClick:()=>{y.name=="~#~"||y.empNo=="~#~"||!y.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),d(y.id,!g.includes(y.id)))},onDoubleClick:()=>{if(!(y.name=="~#~"||y.empNo=="~#~")){if(u==="left")y.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(y.id));else for(let w=0;w<t.targetKeys.length;w++)if(t.targetKeys[w]==y.id){t.targetKeys.splice(w,1);break}}}})}),u==="left"?z.jsxs("div",{className:S0.selectNum,children:[e.defaultPageSize!==50?`${J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:J("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):z.jsxs("div",{className:S0.selectNum,children:[J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=s=>{e.isRadio?t.targetKeys=[s[0]]:t.targetKeys=s},i=async()=>{let s=[];for(let u=0;u<t.targetKeys.length;u++)for(let l=0;l<t.dataSource.length;l++)if(t.targetKeys[u]==t.dataSource[l].id){s.push(t.dataSource[l]);break}e.onSubmit&&e.onSubmit(s)},o=()=>{if(e.columns.length>0){let s=[J("project.workflow.status",{placeholder:"状态"}),J("sys.import.category",{placeholder:"分类"})];return J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:_e.without(_e.map(e.columns,"title"),...s).join("、")}})}return J("sys.enterSearch",{placeholder:"请输入搜索内容"})};return z.jsx($u,{className:S0.shuttle_box,modalTitle:e.title,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:z.jsx("div",{className:S0.transferBox,children:z.jsx(tc,{spinning:e.loading,children:z.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||o()},showSelectAll:!1,onChange:a,filterOption:(s,u)=>u.Name&&u.Name.indexOf(s)!==-1||u.EmpNo&&u.EmpNo.indexOf(s)!==-1||u.empNo&&u.empNo.indexOf(s)!==-1||u.email&&u.email.indexOf(s)!==-1||u.name&&u.name.indexOf(s)!==-1||u.workflowName&&u.workflowName.indexOf(s)!==-1||u.code&&String(u.code).indexOf(s)!==-1||u.description&&u.description.indexOf(s)!==-1})})})})},{RangePicker:qE}=ae.DatePicker,{Option:J1}=ae.Select,{TreeNode:WE}=ae.Tree,{confirm:Mpe}=ae.Modal,JJ=[{value:"and",label:J("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:J("sys.query.builder.condit.or",{placeholder:"或"})}],aP=A.forwardRef((e,t)=>{A.useRef();const r=A.useRef(null),n=A.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},o=Sa({1:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:J("sys.condition.in",{placeholder:"在"})},{value:"!in",label:J("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:J("sys.condition.in",{placeholder:"在"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),s=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Sa({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),l=Sa({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});A.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:O=>{u.verification=O},setCondition:(O,$)=>{$==0?(u.formCofing.base_item_id=O.value,u.formCofing.base_item_name=O.label):(u.formCofing.object_id=(O==null?void 0:O.value)||"",u.formCofing.object_name=(O==null?void 0:O.label)||"")},emptyCondition:O=>{O&&(u.formCofing.base_item_id="",u.formCofing.base_item_name="",u.formCofing.object_id="",u.formCofing.object_name=""),u.verification=!1,u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:O=>{u.formCofing=O},searchBtn:()=>{h()},defaultValue:()=>{var $;const O=($=e.typeData[0])==null?void 0:$.children.filter(D=>D.apicode==="Number"||D.apicode==="Name"||D.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,O.id],name:`${e.typeData[0].label}/${O.name}`,lastSelected:O,type:O.valueType||"",rawType:O.valueType||"",tab_code:e.typeData[0].value,dataFrom:O.dataFrom||"",dataFromId:O.dataFromId||"",apicode:O.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const h=O=>{if(u.verification=!1,!u.formCofing.base_item_id){ae.message.warning(J("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let $=_e.cloneDeep(u.formCofing.relations);$.length==1&&(y($),$=_e.compact($));for(let[D,V]of $.entries())for(let I of V.relation){if(!I.attribute.name||!I.attribute.operator||I.attribute.operator!="null"&&I.attribute.operator!="!null"&&!I.attribute.value){u.verification=!0;return}D!=0&&(V.join=$[D-1].relation[$[D-1].relation.length-1].attribute.attr_join)}u.formCofing.base_item_id,u.formCofing.base_item_name,u.formCofing.object_id,u.formCofing.object_name},d=(O,$)=>O=="5"&&$?$.listCode==10005213?o[O][2]:!$.allowMultiple||$.apicode=="LifeCyclePhase"||$.apicode=="Category"?o[O][0]:$.listType=="0"?o[O][1]:$.listType=="2"?o[O][2]:o[O][3]:o[O],g=()=>{u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=l.treeDefine.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueTreeKey=l.treeDefineKey,l.titleName="",l.treeVisible=!1},b=(O,$)=>$.some(D=>D.label&&D.label.toLowerCase().indexOf(O.toLowerCase())>-1),y=O=>O.map(($,D)=>($.relation.forEach((V,I)=>{let M=V.attribute;!M.name&&!M.operator&&!M.value&&delete $.relation[I]}),$.relation=_e.compact($.relation),$.relation.length==0&&delete O[D],$)),w=O=>{let $=[];if(O)for(let D of O)$.push({label:D.showName||D.name,value:D.id,disabled:!D.status});return $},S=O=>O.map($=>$.children?z.jsx(WE,{title:l.department?$.title:$.name,children:S($.children)},$.id):z.jsx(WE,{title:l.department?$.title:$.name},$.id)),E=(O,$)=>z.jsx(em,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[$?$.toString():""],textToHighlight:O?O.toString():""}),_=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},C=(O,$,D,V)=>{!D||D&&O.relation.length>1&&V==O.relation.length-1?u.formCofing.relations.splice($+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):u.formCofing.relations[$].relation.splice(V+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),x(O),_()},f=O=>{u.formCofing.relations.splice(O+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),_()},p=O=>{u.formCofing.relations.splice(O,1)},v=(O,$,D,V)=>{D&&O.relation.length>1?(O.relation.splice(V,1),x(O)):u.formCofing.relations.splice($,1)},x=O=>{for(let $=0;$<O.relation.length;$++)O.relation[$].attribute.forbidden=!0,O.relation.length>1&&O.relation.length-1!=$&&(O.relation[$].attribute.forbidden=!1)},k=(O,$,D,V,I)=>{if(D&&(D.apicode=="OrgName"||D.apicode=="CreateUserDepartment"))return z.jsx(ae.Select,{className:`
333
333
  ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
334
334
  ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
335
335
  ${Tt.radioWidth}
@@ -363,7 +363,7 @@ Le.version="2.30.1";XW(Hr);Le.fn=ze;Le.min=jG;Le.max=LG;Le.now=zG;Le.utc=go;Le.u
363
363
  ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
364
364
  `,placeholder:J("sys.input.text",{placeholder:"请输入文本"}),value:O.attribute.value,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:M=>{O.attribute.value=M.target.value}})};return z.jsxs("div",{className:Tt.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&z.jsxs("div",{className:Tt.conditions_head,children:[z.jsx("div",{className:Tt.head1,children:J("sys.property",{placeholder:"属性"})}),z.jsx("div",{className:Tt.head2,children:J("sys.operator",{placeholder:"运算符"})}),z.jsx("div",{className:Tt.head3,children:J("sys.value",{placeholder:"值"})}),z.jsx("div",{className:Tt.head4,children:J("sys.connector",{placeholder:"连接符"})})]}),z.jsxs("div",{ref:n,className:Tt.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[z.jsxs("div",{className:Tt.className_tips,children:[z.jsxs("span",{style:{width:160,marginLeft:"12px"},className:Tt.left_tips,children:[J("sys.property",{placeholder:"属性"}),":"]}),z.jsxs("span",{style:{width:92,marginLeft:"3px"},className:Tt.left_tips,children:[J("sys.operator",{placeholder:"运算符"}),":"]}),z.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:Tt.left_tips,children:[J("sys.valueRe",{placeholder:"数值"}),":"]}),z.jsxs("span",{style:{width:145},className:Tt.left_tips,children:[J("sys.connector",{placeholder:"连接符"}),":"]})]}),u.formCofing.relations.map((O,$)=>z.jsxs("div",{children:[O.isGroup&&z.jsx("div",{className:Tt.groupHeader,children:z.jsxs(ae.Row,{justify:"space-between",align:"middle",children:[z.jsx(ae.Col,{className:Tt.optSelect,children:z.jsx(ae.Select,{value:O.join,style:{width:70},disabled:e.readOnly,options:JJ,onChange:D=>{O.join=D}})}),z.jsx(ae.Col,{style:{marginRight:"8px"},children:z.jsx(Dt,{isBackend:!0,className:Tt.iconBtn,tooltip:{title:J("sys.query.builder.condit.deleteGroup",{placeholder:"删除组"})},type:"delete",onClick:()=>{p($)}})})]})}),O.relation.map((D,V)=>{var I;return z.jsxs("div",{className:Tt.properties_item,children:[z.jsx(ae.Cascader,{style:{width:160},className:u.verification&&!D.attribute.name&&Tt.verification,showSearch:{filter:b,matchInputWidth:!1},value:((I=e.typeData)==null?void 0:I.length)>0&&D.attribute.id||void 0,options:e.typeData,placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),dropdownClassName:"cascaderPopup",onChange:async(M,F)=>{D.attribute.value="",D.attribute.routineData=[],D.attribute.valueKey=[],D.attribute.valueTreeKey=[],l.treeDefine=[],D.attribute.id=M,D.attribute.name=_e.map(F,"label").join("/"),D.attribute.lastSelected=await _e.last(F);const T=await _e.last(F);D.attribute.type=T&&T.valueType||"",D.attribute.rawType=(D.attribute.type=="10"?T&&T.rawType:D.attribute.type)||"",D.attribute.type=="10"&&(M[2]&&(M[2]=M[2].split("-")[1],D.attribute.id=M),D.attribute.inputType=T.inputType,D.attribute.referenceApicode=T.referenceApicode,D.attribute.referenceAttrId=T.referenceAttrId),D.attribute.tab_code=F&&(F[0].value.includes("-")?F[0].value.split("-")[0]:F[0].value)||"",D.attribute.dataFrom=T&&T.dataFrom||"",D.attribute.dataFromId=T&&T.dataFromId||"",D.attribute.apicode=T&&T.apicode||"",D.attribute.whereData=F&&(F[0].value.includes("-")?F[0].value.split("-")[1]=="1"?"published":"notPublished":"")||"",D.attribute.type==""?D.attribute.operator="":D.attribute.type=="5"?T.listCode==10005213?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][2][0].value:!T.allowMultiple||T.apicode=="LifeCyclePhase"||T.apicode=="Category"?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][0][0].value:T.listType=="0"?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][1][0].value:T.listType=="2"?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][2][0].value:D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][3][0].value:D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][0].value,T&&T.apicode=="LifeCyclePhase"?u.formCofing.object_id?e.getLifecyclesNopage(u.formCofing.object_id,T&&T.itemCode).then(N=>{N.code==200&&(D.attribute.routineData=w(N.result))}):e.getLifecycles(T&&T.itemCode).then(N=>{N.code==200&&(D.attribute.routineData=w(N.result.records))}):T&&(T.apicode=="Category"||T.apicode=="Workflow")?M&&M[0]==10002004?e.getHistory().then(N=>{if(N.code==200){for(let j of N.result)j.label=j.name,j.value=String(j.code),j.children&&j.children.forEach(H=>{H.label=H.name,H.value=H.id});D.attribute.routineData=N.result}}):M&&M[0]==10002005?e.getRelation().then(N=>{if(N.code==200){for(let j of N.result)j.label=j.name,j.value=String(j.code),j.children&&j.children.forEach(H=>{H.label=H.name,H.value=H.id});D.attribute.routineData=N.result}}):u.formCofing.object_id?(D.attribute.routineData=e.subcategory,D.attribute.value=u.formCofing.object_id):e.getObjects(T&&T.itemCode).then(N=>{N.code==200&&(D.attribute.routineData=w(N.result.records))}):T&&(T.apicode=="ProductRoles"||T.apicode=="ApproveRole")&&e.getRoles().then(N=>{N.code==200&&(D.attribute.routineData=w(N.result.records))}),T&&T.listType=="0"&&e.getTreeList(T.listCode).then(N=>{N.code==200&&(D.attribute.routineData=w(N.result))})}}),z.jsx(ae.Select,{style:{width:92,margin:"0 5px"},className:u.verification&&!D.attribute.operator&&Tt.verification,placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),value:D.attribute.operator||void 0,options:D.attribute.type&&d(D.attribute.type,D.attribute.lastSelected),onChange:M=>{D.attribute.operator=M,D.attribute.value="",D.attribute.valueTreeKey=[],D.attribute.valueKey=[],l.treeDefine=[]}}),z.jsx("div",{className:Tt.state_type,children:k(D,D.attribute.rawType,D.attribute.lastSelected,$,V)}),z.jsx(ae.Select,{style:{width:60},disabled:e.readOnly,value:D.attribute.attr_join,options:[{value:"and",label:J("sys.condition.and",{placeholder:"与"})},{value:"or",label:J("sys.condition.or",{placeholder:"或"})}],suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:M=>{D.attribute.attr_join=M}}),z.jsx(Dt,{isBackend:!0,className:Tt.iconBtn,type:"add",onClick:()=>{C(O,$,O.isGroup,V)}}),z.jsx(Dt,{isBackend:!0,disabled:!O.isGroup&&$==0,className:Tt.iconBtn,type:"delete",onClick:()=>{v(O,$,O.isGroup,V)}}),O.isGroup&&V<O.relation.length-1?z.jsx("div",{style:{width:"26px"}}):z.jsx(Dt,{isBackend:!0,className:Tt.iconBtn,type:"addGroups",onClick:()=>{f($)}})]},V)})]},$))]}),z.jsx($u,{modalTitle:l.titleName||J("sys.selection.chooseRange",{placeholder:"选择范围"}),visible:l.treeVisible,width:500,destroyOnClose:!0,onCancel:()=>{l.titleName="",l.treeVisible=!1},onOk:()=>{g()},children:z.jsx(tc,{spinning:l.treeLoading,style:{minHeight:"455px"},children:z.jsxs("div",{style:{minHeight:"455px"},className:`
365
365
  ${Tt.TreeModalStyle} ${l.titleName==J("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&Tt.TreeDepartmentHeight}
366
- `,children:[l.titleName==J("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&z.jsx(ae.Checkbox.Group,{className:Tt.TreeDepartmentCheckbox,value:l.treeDefine,options:["$DEPARTMENT"],onChange:O=>{l.treeDefine=O,l.treeDefineKey=O}}),l.treeData&&l.treeData.length>0&&!l.treeLoading&&z.jsx(ae.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:l.treeDefineKey||[],checkStrictly:!0,onCheck:(O,{checkedNodes:$})=>{let D=_e.map($,"title");l.treeCheckable?(l.treeDefineKey=O.checked,l.treeDefine=D):(l.treeDefineKey=O.checked.length===0?[]:[O.checked[O.checked.length-1]],l.treeDefine=D.length===0?[]:[D[D.length-1]])},children:S(l.treeData)})]})})}),l.visibleTransfer&&z.jsx(ZJ,{title:J("sys.addValue",{placeholder:"添加值"}),visible:l.visibleTransfer,dataSource:l.dataSource,targetKeys:l.targetKeys,loading:l.loading,isRadio:l.isRadio,columns:l.isUserCode=="10001017"||l.isUserCode=="10005256"?[{title:J("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:l.isUserCode=="10001018"||l.isUserCode=="LifeCyclePhase"||l.isUserCode=="ProductList"||l.isUserCode=="StatusList"||l.isUserCode=="Category"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllProjectsList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"||l.isUserCode=="LifePhaseList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="CategoryList"||l.isUserCode=="ClassifyList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:O=>O?J("sys.label.enable",{placeholder:"启用"}):J("sys.disable.disable",{placeholder:"禁用"})}]:l.isUserCode=="WorkflowNodeList"||l.isUserCode=="AllCalendars"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:l.isUserCode=="WorkflowList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:J("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:J("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{l.isUserCode="",l.visibleTransfer=!1},onSubmit:O=>{let $=[],D=[],V=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let I of O)V.includes(l.isUserCode)||s.includes(l.isUserCode)?I.name=="$USER"?(D.push(I.name),$.push({label:I.name,value:I.name})):l.isUserCode=="WorkflowList"?(D.push(I.id),$.push({label:I.workflowName,value:I.id})):l.isUserCode=="LifePhaseList"?(D.push(I.id),$.push({label:I.showName,value:I.id})):(D.push(I.id),$.push({label:I.name,value:I.id})):l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"?(D.push(I.id),$.push({label:I.showName,value:I.id})):l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?(D.push(I.id),$.push({label:I.number,value:I.id})):(D.push(I.id),$.push({label:I.code,value:I.id}));console.log(D),console.log($),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=D.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueKey=$,console.log(u),l.isUserCode="",l.visibleTransfer=!1}})]})}),{Option:YE}=ae.Select,QJ=e=>{var u;const[t]=ae.Form.useForm(),r=A.useRef(null),[n,a]=A.useState(""),i=Sa({type1:void 0,type2:void 0}),o=(l,h)=>z.jsx(em,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[h?h.toString():""],textToHighlight:l?l.toString():""}),s=()=>{var l;i.type1=void 0,i.type2=void 0,(l=r.current)==null||l.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return z.jsxs("div",{className:il.itemsCreated,children:[z.jsx("div",{className:il.classifyBox,children:z.jsxs(ae.Row,{gutter:8,className:il.rowBox,children:[z.jsxs(ae.Col,{span:12,className:il.labelLength,children:[J("sys.import.category",{placeholder:"分类"}),":"]}),z.jsxs(ae.Col,{span:12,className:il.labelLength,children:[J("sys.import.subCategory",{placeholder:"子分类"}),":"]}),z.jsx(ae.Col,{span:12,children:z.jsx(ae.Form,{form:t,children:z.jsx(ae.Form.Item,{name:"type1",children:z.jsx(ae.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:i.type1||void 0,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(l,h)=>{var d,g,b;i.type1=l,i.type2=void 0,e.rightEmpty(!0,h),(d=r.current)==null||d.emptyCondition(!0),l?((g=r.current)==null||g.setCondition(h,0),e.getInterface(l,"",!0)):(b=r.current)==null||b.setCondition(h)},onSearch:l=>{a(l)},onBlur:()=>{a("")},filterOption:(l,h)=>h.label.toLowerCase().indexOf(l.toLowerCase())>=0,children:(u=e.advancedSearchClassify)==null?void 0:u.map(l=>z.jsx(YE,{label:l.label,value:l.value,disabled:l.disabled,children:o(l.label,n)},l.value))})})})}),z.jsx(ae.Col,{span:12,children:z.jsx(ae.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:i.type2||void 0,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(l,h)=>{var d,g,b;i.type2=l,i.subcategoryApicode=(h==null?void 0:h.apicode)||"",(d=r.current)==null||d.emptyCondition(),l?((g=r.current)==null||g.setCondition(h,1),e.getAttribute(i.type1,l,!0)):((b=r.current)==null||b.setCondition("",1),e.getAttribute(i.type1))},onSearch:l=>{a(l)},onBlur:()=>{a("")},filterOption:(l,h)=>h.label.toLowerCase().indexOf(l.toLowerCase())>=0,children:e.subcategory.map(l=>z.jsx(YE,{label:l.label,value:l.value,apicode:l.apicode,disabled:l.disabled,children:o(l.label,n)},l.value))})})]})}),z.jsx("div",{className:il.materialCondition,children:z.jsx(aP,{ref:r,horizontalStyle:!0,typeData:e.typeData,subcategory:e.subcategory,searchTree:e.treeData,cleanUpBtn:e.conditionObj&&!e.conditionObj.canDel&&e.conditionObj.searchType=="private",conditionObj:e.conditionObj,eliminateSearch:()=>{s(),e.rightEmpty()},storageCondition:l=>e.storageCondition&&e.storageCondition(l),conditionEdit:l=>e.conditionEdit&&e.conditionEdit(l),getTreeList:l=>e.getTreeList&&e.getTreeList(l),treeList:()=>e.treeList&&e.treeList(),getLifecycles:l=>e.getLifecycles&&e.getLifecycles(l),getListbycode:l=>e.getListbycode&&e.getListbycode(l),getOverview:l=>e.getOverview&&e.getOverview(l),getLifecyclesNopage:(l,h)=>e.getLifecyclesNopage&&e.getLifecyclesNopage(l,h),getHistory:()=>e.getHistory&&e.getHistory(),getRelation:()=>e.getRelation&&e.getRelation(),getObjects:l=>e.getObjects&&e.getObjects(l),getRoles:()=>e.getRoles&&e.getRoles(),getInstanceParams:l=>e.getInstanceParams&&e.getInstanceParams(l)})})]})},eQ="_scrollBarAssembly_1gh57_1",tQ="_buttonChangeTop_1gh57_6",rQ="_iconBox_1gh57_22",nQ="_topButton_1gh57_28",aQ="_buttonChange_1gh57_6",iQ="_rightButton_1gh57_56",Ma={scrollBarAssembly:eQ,buttonChangeTop:tQ,iconBox:rQ,topButton:nQ,buttonChange:aQ,rightButton:iQ},oQ=e=>{var a;const t=A.useRef(null),r=JH(t),n=Sa({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return A.useEffect(()=>{const i=()=>{var o,s,u,l,h,d;e.direction?(n.scrollTop=(o=t.current)==null?void 0:o.scrollTop,n.clientHeight=(s=t.current)==null?void 0:s.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(l=t.current)==null?void 0:l.scrollLeft,n.clientWidth=(h=t.current)==null?void 0:h.clientWidth,n.scrollWidth=(d=t.current)==null?void 0:d.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),z.jsxs("div",{className:Ma.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{_e.includes(i.target.className,"frontend-select-dropdown")||_e.includes(i.target.className,"frontend-select-item")||_e.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&z.jsx("div",{className:ge(Ma.columnBox,{[Ma.buttonChangeTop]:e.direction,[Ma.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,s;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(s=t.current)==null||s.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?z.jsx(M5,{className:Ma.iconBox}):z.jsx(T5,{className:Ma.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&z.jsx("div",{className:ge(Ma.columnBox,{[Ma.buttonChangeTop]:e.direction,[Ma.topButton]:e.direction,[Ma.buttonChange]:!e.direction,[Ma.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,s;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(s=t.current)==null||s.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?z.jsx(R5,{className:Ma.iconBox}):z.jsx(D5,{className:Ma.iconBox})})]})},sQ="_plmPublicTree_14kqh_1",uQ="_treeListBox_14kqh_1",lQ="_onDisable_14kqh_8",cQ="_onHover_14kqh_11",dQ="_titleBox_14kqh_17",fQ="_name_14kqh_21",hQ="_btnBox_14kqh_27",pQ="_hoverStyle_14kqh_35",Ln={plmPublicTree:sQ,treeListBox:uQ,onDisable:lQ,onHover:cQ,titleBox:dQ,name:fQ,btnBox:hQ,hoverStyle:pQ},{TreeNode:GE}=ae.Tree,{confirm:mQ}=ae.Modal,gQ=e=>{const t=A.useRef(),[r,n]=A.useState([]),[a,i]=A.useState([]),[o,s]=A.useState([]),u=Sa({startDragObj:{}});A.useEffect(()=>(u.addVisible?l():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const l=()=>{document.onkeydown=function(C){var f=window.event||C,p=f.keyCode||f.which;p==13&&!e.confirmLoading&&h()}};qf(()=>{let C=[];for(let f of e.treeCrumbs||[])C.push(f.id);i(C)});const h=async()=>{var p;const C=await((p=t.current)==null?void 0:p.validateFields()),f=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:C.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});f.warning?ae.message.warning(f.result):ae.message.success(f.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},d=(C,f="id")=>{var p=[];const v=x=>{for(var k=0,O=x.length;k<O;k++){const $=x[k];if($.children&&$.children.length||$.conditionList&&!e.closeCondition){let D=[];$.conditionList&&!e.closeCondition?D=_e.concat($.children||[],$.conditionList):D=$.children,p.push($[f]),v(D)}}};return v(C),p},g=C=>{b(C,e.treeData),n(e.treeData.slice())},b=(C,f)=>f.forEach(p=>{p.id===C?p.isEditable=!0:p.isEditable=!1,p.name=p.defaultValue,p.children&&b(C,p.children),p.conditionList&&b(C,p.conditionList)}),y=(C,f)=>{w(f,C.target.value,e.treeData),n(e.treeData.slice())},w=(C,f,p)=>p.forEach(v=>{v.id===C&&(v.name=f),v.children&&w(C,f,v.children),v.conditionList&&w(C,f,v.conditionList)}),S=(C,f)=>{E(C,f,e.treeData),n(e.treeData.slice())},E=(C,f,p)=>p.forEach(v=>{v.isEditable=!1,v.id===C&&(v.name=f),v.children&&E(C,f,v.children),v.conditionList&&E(C,f,v.conditionList)}),_=C=>C==null?void 0:C.map(p=>{if(p.isEditable?p.title=z.jsxs("div",{className:Ln.treeListBox,children:[z.jsxs("div",{className:Ln.titleBox,children:[z.jsx(Dt,{type:p.content?"homesearch":_e.includes(a,p.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),z.jsx(ae.Input,{size:"small",maxLength:16,value:p.name,onChange:v=>{y(v,p.id)}})]}),z.jsxs("div",{className:Ln.btnBox,children:[z.jsx(C5,{style:{marginRight:"5px"},className:Ln.hoverStyle,onClick:v=>{v.stopPropagation(),S(p.id,p.defaultValue)}}),e.editLoading||e.editConditioLoading?z.jsx(Vf,{spin:!0}):z.jsx(x5,{className:Ln.hoverStyle,onClick:async v=>{v.stopPropagation(),p.name===u.treeName?S(p.id,p.defaultValue):(p.content?await e.conditionEdit({id:p.id,searchFolderId:p.searchFolderId,searchType:p.searchType,itemCode:p.itemCode,conditionName:p.name,conditionObject:p.conditionObject,content:p.content,sort:p.sort,canDel:p.canDel}):await e.editRun({id:p.id,parentId:p.parentId,name:p.name,folderType:p.folderType,sort:p.sort,canDel:p.canDel,level:p.level}),e.getTreeList&&e.getTreeList())}})]})]},p.id):p.title=z.jsxs("div",{className:Ln.treeListBox,children:[z.jsxs("div",{className:Ln.titleBox,children:[z.jsx(Dt,{type:p.content||p.searchType=="change"?"homesearch":_e.includes(a,p.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),z.jsx("div",{className:Ln.name,title:p.name,children:z.jsx("span",{children:p.name})})]}),z.jsxs("div",{className:ge({[Ln.btnBox]:!0,[Ln.onHover]:!e.readOnly,[Ln.onDisable]:e.readOnly}),children:[p.level<4&&p.isAuth&&z.jsx(sw,{className:Ln.hoverStyle,onClick:v=>{v.preventDefault(),u.treeObj=p,u.addVisible=!0}}),p.level==1&&z.jsx("div",{onClick:v=>{v.stopPropagation()},children:z.jsx(Dt,{className:Ln.hoverStyle,type:_e.intersection(d([p]),a).length==d([p]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{_e.intersection(d([p]),a).length==d([p]).length?i(_e.difference(a,d([p]))):i(_e.uniq(_e.concat(a,d([p]))))}})}),p.level!=1&&p.canDel&&z.jsx(k5,{className:Ln.hoverStyle,style:{marginLeft:"5px"},onClick:v=>{v.stopPropagation(),mQ(HR({title:J("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${J("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${J("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(x,k)=>{p.content?e.conditionDelete({id:p.id}).then(O=>{O.warning?ae.message.warning(O.message):ae.message.success(O.message),x(!0),e.getTreeList&&e.getTreeList(p.id)}).catch(()=>{x(!0)}):e.deleteFolder({id:p.id}).then(O=>{O.warning?ae.message.warning(O.message):ae.message.success(O.message),x(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{x(!0)})})}}))}}),p.level!=1&&(p.itemCode?p.isConditionNameAuth:p.isAuth)&&z.jsx(Dt,{className:Ln.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:v=>{v.stopPropagation(),u.treeName=p.name,g(p.id)}})]})]},p.id),p.children||p.conditionList&&!e.closeCondition){let v=[];return p.conditionList&&!e.closeCondition?v=_e.concat(p.children||[],p.conditionList):v=p.children,z.jsx(GE,{title:p.title,dataRef:p,children:_(v)},p.id)}return z.jsx(GE,{title:p.title,dataRef:p},p.id)});return z.jsxs("div",{className:Ln.plmPublicTree,children:[z.jsx(ae.Tree,{switcherIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:C=>{i(C)},onSelect:(C,f)=>{var p,v,x;if(e.closeCondition){if(((p=f.node.dataRef)==null?void 0:p.folderType)==="change")return}else if(!((v=f.node.dataRef)!=null&&v.content)&&((x=f.node.dataRef)==null?void 0:x.searchType)!=="change")return;e.onSelect&&e.onSelect(C,f)},allowDrop:e.closeDrag?void 0:({dropNode:C,dropPosition:f})=>f!=-1&&u.startDragObj.folderType==C.dataRef.folderType&&(u.startDragObj.id.length>C.key.length&&f==0&&u.startDragObj.level-C.dataRef.level==1||u.startDragObj.id.length==C.key.length&&f!=0),onDragStart:e.closeDrag?void 0:C=>{u.startDragObj=C.node.dataRef},children:_(e.treeData)}),z.jsx($u,{modalTitle:J("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:Ln.container,destroyOnClose:!0,onOk:async()=>{h()},confirmLoading:e.confirmLoading,children:z.jsx(UR,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:z.jsx(nP,{name:"name",label:J("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:J("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:J("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},vQ="1.0.5",bQ=A.createContext({}),yQ={classNames:{},styles:{},className:"",style:{}},uc=e=>{const t=A.useContext(bQ);return A.useMemo(()=>({...yQ,...t[e]}),[t[e]])};function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(null,arguments)}function ho(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=A.useContext(ae.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function Zr(e){var t=P.useRef();t.current=e;var r=P.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var KE=process.env.NODE_ENV!=="test"&&Qn()?P.useLayoutEffect:P.useEffect,fr=function(t,r){var n=P.useRef(!0);KE(function(){return t(n.current)},r),KE(function(){return n.current=!1,function(){n.current=!0}},[])},XE=function(t,r){fr(function(n){if(!n)return t()},r)};function Rf(e){var t=P.useRef(!1),r=P.useState(e),n=we(r,2),a=n[0],i=n[1];P.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,u){u&&t.current||i(s)}return[a,o]}function Q1(e){return e!==void 0}function _n(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,o=r.postState,s=Rf(function(){return Q1(a)?a:Q1(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=we(s,2),l=u[0],h=u[1],d=a!==void 0?a:l,g=o?o(d):d,b=Zr(i),y=Rf([d]),w=we(y,2),S=w[0],E=w[1];XE(function(){var C=S[0];l!==C&&b(l,C)},[S]),XE(function(){Q1(a)||h(a)},[a]);var _=Zr(function(C,f){h(C,f),E([d],f)});return[g,_]}var C0={exports:{}},Er={};/**
366
+ `,children:[l.titleName==J("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&z.jsx(ae.Checkbox.Group,{className:Tt.TreeDepartmentCheckbox,value:l.treeDefine,options:["$DEPARTMENT"],onChange:O=>{l.treeDefine=O,l.treeDefineKey=O}}),l.treeData&&l.treeData.length>0&&!l.treeLoading&&z.jsx(ae.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:l.treeDefineKey||[],checkStrictly:!0,onCheck:(O,{checkedNodes:$})=>{let D=_e.map($,"title");l.treeCheckable?(l.treeDefineKey=O.checked,l.treeDefine=D):(l.treeDefineKey=O.checked.length===0?[]:[O.checked[O.checked.length-1]],l.treeDefine=D.length===0?[]:[D[D.length-1]])},children:S(l.treeData)})]})})}),l.visibleTransfer&&z.jsx(ZJ,{title:J("sys.addValue",{placeholder:"添加值"}),visible:l.visibleTransfer,dataSource:l.dataSource,targetKeys:l.targetKeys,loading:l.loading,isRadio:l.isRadio,columns:l.isUserCode=="10001017"||l.isUserCode=="10005256"?[{title:J("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:l.isUserCode=="10001018"||l.isUserCode=="LifeCyclePhase"||l.isUserCode=="ProductList"||l.isUserCode=="StatusList"||l.isUserCode=="Category"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllProjectsList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"||l.isUserCode=="LifePhaseList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="CategoryList"||l.isUserCode=="ClassifyList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:O=>O?J("sys.label.enable",{placeholder:"启用"}):J("sys.disable.disable",{placeholder:"禁用"})}]:l.isUserCode=="WorkflowNodeList"||l.isUserCode=="AllCalendars"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:l.isUserCode=="WorkflowList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:J("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:J("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{l.isUserCode="",l.visibleTransfer=!1},onSubmit:O=>{let $=[],D=[],V=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let I of O)V.includes(l.isUserCode)||s.includes(l.isUserCode)?I.name=="$USER"?(D.push(I.name),$.push({label:I.name,value:I.name})):l.isUserCode=="WorkflowList"?(D.push(I.id),$.push({label:I.workflowName,value:I.id})):l.isUserCode=="LifePhaseList"?(D.push(I.id),$.push({label:I.showName,value:I.id})):(D.push(I.id),$.push({label:I.name,value:I.id})):l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"?(D.push(I.id),$.push({label:I.showName,value:I.id})):l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?(D.push(I.id),$.push({label:I.number,value:I.id})):(D.push(I.id),$.push({label:I.code,value:I.id}));console.log(D),console.log($),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=D.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueKey=$,console.log(u),l.isUserCode="",l.visibleTransfer=!1}})]})}),{Option:YE}=ae.Select,QJ=e=>{var u;const[t]=ae.Form.useForm(),r=A.useRef(null),[n,a]=A.useState(""),i=Sa({type1:void 0,type2:void 0}),o=(l,h)=>z.jsx(em,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[h?h.toString():""],textToHighlight:l?l.toString():""}),s=()=>{var l;i.type1=void 0,i.type2=void 0,(l=r.current)==null||l.emptyCondition(!0),t.setFieldsValue({type1:void 0})};return z.jsxs("div",{className:il.itemsCreated,children:[z.jsx("div",{className:il.classifyBox,children:z.jsxs(ae.Row,{gutter:8,className:il.rowBox,children:[z.jsxs(ae.Col,{span:12,className:il.labelLength,children:[J("sys.import.category",{placeholder:"分类"}),":"]}),z.jsxs(ae.Col,{span:12,className:il.labelLength,children:[J("sys.import.subCategory",{placeholder:"子分类"}),":"]}),z.jsx(ae.Col,{span:12,children:z.jsx(ae.Form,{form:t,children:z.jsx(ae.Form.Item,{name:"type1",children:z.jsx(ae.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:i.type1||void 0,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(l,h)=>{var d,g,b;i.type1=l,i.type2=void 0,e.rightEmpty(!0,h),(d=r.current)==null||d.emptyCondition(!0),l?((g=r.current)==null||g.setCondition(h,0),e.getInterface(l,"",!0)):(b=r.current)==null||b.setCondition(h)},onSearch:l=>{a(l)},onBlur:()=>{a("")},filterOption:(l,h)=>h.label.toLowerCase().indexOf(l.toLowerCase())>=0,children:(u=e.advancedSearchClassify)==null?void 0:u.map(l=>z.jsx(YE,{label:l.label,value:l.value,disabled:l.disabled,children:o(l.label,n)},l.value))})})})}),z.jsx(ae.Col,{span:12,children:z.jsx(ae.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:i.type2||void 0,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(l,h)=>{var d,g,b;i.type2=l,i.subcategoryApicode=(h==null?void 0:h.apicode)||"",(d=r.current)==null||d.emptyCondition(),l?((g=r.current)==null||g.setCondition(h,1),e.getAttribute(i.type1,l,!0)):((b=r.current)==null||b.setCondition("",1),e.getAttribute(i.type1))},onSearch:l=>{a(l)},onBlur:()=>{a("")},filterOption:(l,h)=>h.label.toLowerCase().indexOf(l.toLowerCase())>=0,children:e.subcategory.map(l=>z.jsx(YE,{label:l.label,value:l.value,apicode:l.apicode,disabled:l.disabled,children:o(l.label,n)},l.value))})})]})}),z.jsx("div",{className:il.materialCondition,children:z.jsx(aP,{ref:r,horizontalStyle:!0,typeData:e.typeData,subcategory:e.subcategory,searchTree:e.treeData,cleanUpBtn:e.conditionObj&&!e.conditionObj.canDel&&e.conditionObj.searchType=="private",conditionObj:e.conditionObj,eliminateSearch:()=>{s(),e.rightEmpty()},storageCondition:l=>e.storageCondition&&e.storageCondition(l),conditionEdit:l=>e.conditionEdit&&e.conditionEdit(l),getTreeList:l=>e.getTreeList&&e.getTreeList(l),treeList:()=>e.treeList&&e.treeList(),getLifecycles:l=>e.getLifecycles&&e.getLifecycles(l),getListbycode:l=>e.getListbycode&&e.getListbycode(l),getOverview:l=>e.getOverview&&e.getOverview(l),getLifecyclesNopage:(l,h)=>e.getLifecyclesNopage&&e.getLifecyclesNopage(l,h),getHistory:()=>e.getHistory&&e.getHistory(),getRelation:()=>e.getRelation&&e.getRelation(),getObjects:l=>e.getObjects&&e.getObjects(l),getRoles:()=>e.getRoles&&e.getRoles(),getInstanceParams:l=>e.getInstanceParams&&e.getInstanceParams(l)})})]})},eQ="_scrollBarAssembly_1gh57_1",tQ="_buttonChangeTop_1gh57_6",rQ="_iconBox_1gh57_22",nQ="_topButton_1gh57_28",aQ="_buttonChange_1gh57_6",iQ="_rightButton_1gh57_56",Ma={scrollBarAssembly:eQ,buttonChangeTop:tQ,iconBox:rQ,topButton:nQ,buttonChange:aQ,rightButton:iQ},oQ=e=>{var a;const t=A.useRef(null),r=XH(t),n=Sa({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return A.useEffect(()=>{const i=()=>{var o,s,u,l,h,d;e.direction?(n.scrollTop=(o=t.current)==null?void 0:o.scrollTop,n.clientHeight=(s=t.current)==null?void 0:s.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(l=t.current)==null?void 0:l.scrollLeft,n.clientWidth=(h=t.current)==null?void 0:h.clientWidth,n.scrollWidth=(d=t.current)==null?void 0:d.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),z.jsxs("div",{className:Ma.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{_e.includes(i.target.className,"frontend-select-dropdown")||_e.includes(i.target.className,"frontend-select-item")||_e.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&z.jsx("div",{className:ge(Ma.columnBox,{[Ma.buttonChangeTop]:e.direction,[Ma.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,s;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(s=t.current)==null||s.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?z.jsx(M5,{className:Ma.iconBox}):z.jsx(T5,{className:Ma.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&z.jsx("div",{className:ge(Ma.columnBox,{[Ma.buttonChangeTop]:e.direction,[Ma.topButton]:e.direction,[Ma.buttonChange]:!e.direction,[Ma.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,s;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(s=t.current)==null||s.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?z.jsx(R5,{className:Ma.iconBox}):z.jsx(D5,{className:Ma.iconBox})})]})},sQ="_plmPublicTree_14kqh_1",uQ="_treeListBox_14kqh_1",lQ="_onDisable_14kqh_8",cQ="_onHover_14kqh_11",dQ="_titleBox_14kqh_17",fQ="_name_14kqh_21",hQ="_btnBox_14kqh_27",pQ="_hoverStyle_14kqh_35",Ln={plmPublicTree:sQ,treeListBox:uQ,onDisable:lQ,onHover:cQ,titleBox:dQ,name:fQ,btnBox:hQ,hoverStyle:pQ},{TreeNode:GE}=ae.Tree,{confirm:mQ}=ae.Modal,gQ=e=>{const t=A.useRef(),[r,n]=A.useState([]),[a,i]=A.useState([]),[o,s]=A.useState([]),u=Sa({startDragObj:{}});A.useEffect(()=>(u.addVisible?l():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const l=()=>{document.onkeydown=function(C){var f=window.event||C,p=f.keyCode||f.which;p==13&&!e.confirmLoading&&h()}};qf(()=>{let C=[];for(let f of e.treeCrumbs||[])C.push(f.id);i(C)});const h=async()=>{var p;const C=await((p=t.current)==null?void 0:p.validateFields()),f=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:C.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});f.warning?ae.message.warning(f.result):ae.message.success(f.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},d=(C,f="id")=>{var p=[];const v=x=>{for(var k=0,O=x.length;k<O;k++){const $=x[k];if($.children&&$.children.length||$.conditionList&&!e.closeCondition){let D=[];$.conditionList&&!e.closeCondition?D=_e.concat($.children||[],$.conditionList):D=$.children,p.push($[f]),v(D)}}};return v(C),p},g=C=>{b(C,e.treeData),n(e.treeData.slice())},b=(C,f)=>f.forEach(p=>{p.id===C?p.isEditable=!0:p.isEditable=!1,p.name=p.defaultValue,p.children&&b(C,p.children),p.conditionList&&b(C,p.conditionList)}),y=(C,f)=>{w(f,C.target.value,e.treeData),n(e.treeData.slice())},w=(C,f,p)=>p.forEach(v=>{v.id===C&&(v.name=f),v.children&&w(C,f,v.children),v.conditionList&&w(C,f,v.conditionList)}),S=(C,f)=>{E(C,f,e.treeData),n(e.treeData.slice())},E=(C,f,p)=>p.forEach(v=>{v.isEditable=!1,v.id===C&&(v.name=f),v.children&&E(C,f,v.children),v.conditionList&&E(C,f,v.conditionList)}),_=C=>C==null?void 0:C.map(p=>{if(p.isEditable?p.title=z.jsxs("div",{className:Ln.treeListBox,children:[z.jsxs("div",{className:Ln.titleBox,children:[z.jsx(Dt,{type:p.content?"homesearch":_e.includes(a,p.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),z.jsx(ae.Input,{size:"small",maxLength:16,value:p.name,onChange:v=>{y(v,p.id)}})]}),z.jsxs("div",{className:Ln.btnBox,children:[z.jsx(C5,{style:{marginRight:"5px"},className:Ln.hoverStyle,onClick:v=>{v.stopPropagation(),S(p.id,p.defaultValue)}}),e.editLoading||e.editConditioLoading?z.jsx(Vf,{spin:!0}):z.jsx(x5,{className:Ln.hoverStyle,onClick:async v=>{v.stopPropagation(),p.name===u.treeName?S(p.id,p.defaultValue):(p.content?await e.conditionEdit({id:p.id,searchFolderId:p.searchFolderId,searchType:p.searchType,itemCode:p.itemCode,conditionName:p.name,conditionObject:p.conditionObject,content:p.content,sort:p.sort,canDel:p.canDel}):await e.editRun({id:p.id,parentId:p.parentId,name:p.name,folderType:p.folderType,sort:p.sort,canDel:p.canDel,level:p.level}),e.getTreeList&&e.getTreeList())}})]})]},p.id):p.title=z.jsxs("div",{className:Ln.treeListBox,children:[z.jsxs("div",{className:Ln.titleBox,children:[z.jsx(Dt,{type:p.content||p.searchType=="change"?"homesearch":_e.includes(a,p.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),z.jsx("div",{className:Ln.name,title:p.name,children:z.jsx("span",{children:p.name})})]}),z.jsxs("div",{className:ge({[Ln.btnBox]:!0,[Ln.onHover]:!e.readOnly,[Ln.onDisable]:e.readOnly}),children:[p.level<4&&p.isAuth&&z.jsx(sw,{className:Ln.hoverStyle,onClick:v=>{v.preventDefault(),u.treeObj=p,u.addVisible=!0}}),p.level==1&&z.jsx("div",{onClick:v=>{v.stopPropagation()},children:z.jsx(Dt,{className:Ln.hoverStyle,type:_e.intersection(d([p]),a).length==d([p]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{_e.intersection(d([p]),a).length==d([p]).length?i(_e.difference(a,d([p]))):i(_e.uniq(_e.concat(a,d([p]))))}})}),p.level!=1&&p.canDel&&z.jsx(k5,{className:Ln.hoverStyle,style:{marginLeft:"5px"},onClick:v=>{v.stopPropagation(),mQ(HR({title:J("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${J("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${J("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(x,k)=>{p.content?e.conditionDelete({id:p.id}).then(O=>{O.warning?ae.message.warning(O.message):ae.message.success(O.message),x(!0),e.getTreeList&&e.getTreeList(p.id)}).catch(()=>{x(!0)}):e.deleteFolder({id:p.id}).then(O=>{O.warning?ae.message.warning(O.message):ae.message.success(O.message),x(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{x(!0)})})}}))}}),p.level!=1&&(p.itemCode?p.isConditionNameAuth:p.isAuth)&&z.jsx(Dt,{className:Ln.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:v=>{v.stopPropagation(),u.treeName=p.name,g(p.id)}})]})]},p.id),p.children||p.conditionList&&!e.closeCondition){let v=[];return p.conditionList&&!e.closeCondition?v=_e.concat(p.children||[],p.conditionList):v=p.children,z.jsx(GE,{title:p.title,dataRef:p,children:_(v)},p.id)}return z.jsx(GE,{title:p.title,dataRef:p},p.id)});return z.jsxs("div",{className:Ln.plmPublicTree,children:[z.jsx(ae.Tree,{switcherIcon:z.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:C=>{i(C)},onSelect:(C,f)=>{var p,v,x;if(e.closeCondition){if(((p=f.node.dataRef)==null?void 0:p.folderType)==="change")return}else if(!((v=f.node.dataRef)!=null&&v.content)&&((x=f.node.dataRef)==null?void 0:x.searchType)!=="change")return;e.onSelect&&e.onSelect(C,f)},allowDrop:e.closeDrag?void 0:({dropNode:C,dropPosition:f})=>f!=-1&&u.startDragObj.folderType==C.dataRef.folderType&&(u.startDragObj.id.length>C.key.length&&f==0&&u.startDragObj.level-C.dataRef.level==1||u.startDragObj.id.length==C.key.length&&f!=0),onDragStart:e.closeDrag?void 0:C=>{u.startDragObj=C.node.dataRef},children:_(e.treeData)}),z.jsx($u,{modalTitle:J("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:Ln.container,destroyOnClose:!0,onOk:async()=>{h()},confirmLoading:e.confirmLoading,children:z.jsx(UR,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:z.jsx(nP,{name:"name",label:J("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:J("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:J("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},vQ="1.0.5",bQ=A.createContext({}),yQ={classNames:{},styles:{},className:"",style:{}},uc=e=>{const t=A.useContext(bQ);return A.useMemo(()=>({...yQ,...t[e]}),[t[e]])};function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(null,arguments)}function ho(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=A.useContext(ae.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function Zr(e){var t=P.useRef();t.current=e;var r=P.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var KE=process.env.NODE_ENV!=="test"&&Qn()?P.useLayoutEffect:P.useEffect,fr=function(t,r){var n=P.useRef(!0);KE(function(){return t(n.current)},r),KE(function(){return n.current=!1,function(){n.current=!0}},[])},XE=function(t,r){fr(function(n){if(!n)return t()},r)};function Rf(e){var t=P.useRef(!1),r=P.useState(e),n=we(r,2),a=n[0],i=n[1];P.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,u){u&&t.current||i(s)}return[a,o]}function Q1(e){return e!==void 0}function _n(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,o=r.postState,s=Rf(function(){return Q1(a)?a:Q1(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=we(s,2),l=u[0],h=u[1],d=a!==void 0?a:l,g=o?o(d):d,b=Zr(i),y=Rf([d]),w=we(y,2),S=w[0],E=w[1];XE(function(){var C=S[0];l!==C&&b(l,C)},[S]),XE(function(){Q1(a)||h(a)},[a]);var _=Zr(function(C,f){h(C,f),E([d],f)});return[g,_]}var C0={exports:{}},Er={};/**
367
367
  * @license React
368
368
  * react-is.production.min.js
369
369
  *
@@ -705,4 +705,4 @@ html body {
705
705
  `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
706
706
  ${r}-checked:not(${r}-disabled),
707
707
  ${t}-checked:not(${t}-disabled)
708
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ape(e,t){const r=Qr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[npe(r)]}const e9=ls("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[ape(r,e)]});function ipe(e){const t=A.useRef(null),r=()=>{Jr.cancel(t.current),t.current=null};return[()=>{r(),t.current=Jr(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e==null||e(i)}]}var ope=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const spe=(e,t)=>{var r;const{prefixCls:n,className:a,rootClassName:i,children:o,indeterminate:s=!1,style:u,onMouseEnter:l,onMouseLeave:h,skipGroup:d=!1,disabled:g}=e,b=ope(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:w,checkbox:S}=P.useContext(kn),E=P.useContext(Q7),{isFormItemInput:_}=P.useContext(ku),C=P.useContext(Pu),f=(r=(E==null?void 0:E.disabled)||g)!==null&&r!==void 0?r:C,p=P.useRef(b.value),v=P.useRef(null),x=us(t,v);if(process.env.NODE_ENV!=="production"){const j=ra("Checkbox");process.env.NODE_ENV!=="production"&&j("checked"in b||!!E||!("value"in b),"usage","`value` is not a valid prop, do you mean `checked`?")}P.useEffect(()=>{E==null||E.registerValue(b.value)},[]),P.useEffect(()=>{if(!d)return b.value!==p.current&&(E==null||E.cancelValue(p.current),E==null||E.registerValue(b.value),p.current=b.value),()=>E==null?void 0:E.cancelValue(b.value)},[b.value]),P.useEffect(()=>{var j;!((j=v.current)===null||j===void 0)&&j.input&&(v.current.input.indeterminate=s)},[s]);const k=y("checkbox",n),O=gh(k),[$,D,V]=e9(k,O),I=Object.assign({},b);E&&!d&&(I.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),E.toggleOption&&E.toggleOption({label:o,value:b.value})},I.name=E.name,I.checked=E.value.includes(b.value));const M=ge(`${k}-wrapper`,{[`${k}-rtl`]:w==="rtl",[`${k}-wrapper-checked`]:I.checked,[`${k}-wrapper-disabled`]:f,[`${k}-wrapper-in-form-item`]:_},S==null?void 0:S.className,a,i,V,O,D),F=ge({[`${k}-indeterminate`]:s},tx,D),[T,N]=ipe(I.onClick);return $(P.createElement(J7,{component:"Checkbox",disabled:f},P.createElement("label",{className:M,style:Object.assign(Object.assign({},S==null?void 0:S.style),u),onMouseEnter:l,onMouseLeave:h,onClick:T},P.createElement(j0e,Object.assign({},I,{onClick:N,prefixCls:k,className:F,disabled:f,ref:x})),o!==void 0&&P.createElement("span",{className:`${k}-label`},o))))},rx=P.forwardRef(spe);process.env.NODE_ENV!=="production"&&(rx.displayName="Checkbox");var upe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const lpe=P.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:a=[],prefixCls:i,className:o,rootClassName:s,style:u,onChange:l}=e,h=upe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:g}=P.useContext(kn),[b,y]=P.useState(h.value||r||[]),[w,S]=P.useState([]);P.useEffect(()=>{"value"in h&&y(h.value||[])},[h.value]);const E=P.useMemo(()=>a.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[a]),_=F=>{S(T=>T.filter(N=>N!==F))},C=F=>{S(T=>[].concat(tt(T),[F]))},f=F=>{const T=b.indexOf(F.value),N=tt(b);T===-1?N.push(F.value):N.splice(T,1),"value"in h||y(N),l==null||l(N.filter(j=>w.includes(j)).sort((j,H)=>{const B=E.findIndex(G=>G.value===j),U=E.findIndex(G=>G.value===H);return B-U}))},p=d("checkbox",i),v=`${p}-group`,x=gh(p),[k,O,$]=e9(p,x),D=ch(h,["value","disabled"]),V=a.length?E.map(F=>P.createElement(rx,{prefixCls:p,key:F.value.toString(),disabled:"disabled"in F?F.disabled:h.disabled,value:F.value,checked:b.includes(F.value),onChange:F.onChange,className:`${v}-item`,style:F.style,title:F.title,id:F.id,required:F.required},F.label)):n,I={toggleOption:f,value:b,disabled:h.disabled,name:h.name,registerValue:C,cancelValue:_},M=ge(v,{[`${v}-rtl`]:g==="rtl"},o,s,$,x,O);return k(P.createElement("div",Object.assign({className:M,style:u},D,{ref:t}),P.createElement(Q7.Provider,{value:I},V)))}),Km=rx;Km.Group=lpe;Km.__ANT_CHECKBOX=!0;process.env.NODE_ENV!=="production"&&(Km.displayName="Checkbox");const cpe=e=>{const{renderedText:t,renderedEl:r,item:n,checked:a,disabled:i,prefixCls:o,onClick:s,onRemove:u,showRemove:l}=e,h=ge(`${o}-content-item`,{[`${o}-content-item-disabled`]:i||n.disabled,[`${o}-content-item-checked`]:a&&!n.disabled});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[g]=bc("Transfer",Tu.Transfer),b={className:h,title:d},y=P.createElement("span",{className:`${o}-content-item-text`},r);return l?P.createElement("li",Object.assign({},b),y,P.createElement("button",{type:"button",disabled:i||n.disabled,className:`${o}-content-item-remove`,"aria-label":g==null?void 0:g.remove,onClick:()=>u==null?void 0:u(n)},P.createElement(Z7,null))):(b.onClick=i||n.disabled?void 0:w=>s(n,w),P.createElement("li",Object.assign({},b),P.createElement(Km,{className:`${o}-checkbox`,checked:a,disabled:i||n.disabled}),y))},dpe=P.memo(cpe),fpe=["handleFilter","handleClear","checkedKeys"],hpe=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),ppe=(e,t)=>{const{prefixCls:r,filteredRenderItems:n,selectedKeys:a,disabled:i,showRemove:o,pagination:s,onScroll:u,onItemSelect:l,onItemRemove:h}=e,[d,g]=P.useState(1),b=P.useMemo(()=>s?hpe(typeof s=="object"?s:{}):null,[s]),[y,w]=_n(10,{value:b==null?void 0:b.pageSize});P.useEffect(()=>{if(b){const x=Math.ceil(n.length/y);g(Math.min(d,x))}},[n,b,y]);const S=(x,k)=>{l(x.key,!a.includes(x.key),k)},E=x=>{h==null||h([x.key])},_=x=>{g(x)},C=(x,k)=>{g(x),w(k)},f=P.useMemo(()=>b?n.slice((d-1)*y,d*y):n,[d,n,b,y]);P.useImperativeHandle(t,()=>({items:f}));const p=b?P.createElement(X7,{size:"small",disabled:i,simple:b.simple,pageSize:y,showLessItems:b.showLessItems,showSizeChanger:b.showSizeChanger,className:`${r}-pagination`,total:n.length,current:d,onChange:_,onShowSizeChange:C}):null,v=ge(`${r}-content`,{[`${r}-content-show-remove`]:o});return P.createElement(P.Fragment,null,P.createElement("ul",{className:v,onScroll:u},(f||[]).map(x=>{let{renderedEl:k,renderedText:O,item:$}=x;return P.createElement(dpe,{key:$.key,item:$,renderedText:O,renderedEl:k,prefixCls:r,showRemove:o,onClick:S,onRemove:E,checked:a.includes($.key),disabled:i||$.disabled})})),p)};process.env.NODE_ENV!=="production"&&(ppe.displayName="TransferListBody");var t9=A.forwardRef(function(e,t){var r=e.prefixCls,n=e.forceRender,a=e.className,i=e.style,o=e.children,s=e.isActive,u=e.role,l=e.classNames,h=e.styles,d=A.useState(s||n),g=we(d,2),b=g[0],y=g[1];return A.useEffect(function(){(n||s)&&y(!0)},[n,s]),b?A.createElement("div",{ref:t,className:ge("".concat(r,"-content"),re(re({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),a),style:i,role:u},A.createElement("div",{className:ge("".concat(r,"-content-box"),l==null?void 0:l.body),style:h==null?void 0:h.body},o)):null});t9.displayName="PanelContent";var mpe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],r9=A.forwardRef(function(e,t){var r=e.showArrow,n=r===void 0?!0:r,a=e.headerClass,i=e.isActive,o=e.onItemClick,s=e.forceRender,u=e.className,l=e.classNames,h=l===void 0?{}:l,d=e.styles,g=d===void 0?{}:d,b=e.prefixCls,y=e.collapsible,w=e.accordion,S=e.panelKey,E=e.extra,_=e.header,C=e.expandIcon,f=e.openMotion,p=e.destroyInactivePanel,v=e.children,x=sr(e,mpe),k=y==="disabled",O=E!=null&&typeof E!="boolean",$=re(re(re({onClick:function(){o==null||o(S)},onKeyDown:function(N){(N.key==="Enter"||N.keyCode===Ct.ENTER||N.which===Ct.ENTER)&&(o==null||o(S))},role:w?"tab":"button"},"aria-expanded",i),"aria-disabled",k),"tabIndex",k?-1:0),D=typeof C=="function"?C(e):A.createElement("i",{className:"arrow"}),V=D&&A.createElement("div",je({className:"".concat(b,"-expand-icon")},["header","icon"].includes(y)?$:{}),D),I=ge("".concat(b,"-item"),re(re({},"".concat(b,"-item-active"),i),"".concat(b,"-item-disabled"),k),u),M=ge(a,"".concat(b,"-header"),re({},"".concat(b,"-collapsible-").concat(y),!!y),h.header),F=Q({className:M,style:g.header},["header","icon"].includes(y)?{}:$);return A.createElement("div",je({},x,{ref:t,className:I}),A.createElement("div",F,n&&V,A.createElement("span",je({className:"".concat(b,"-header-text")},y==="header"?$:{}),_),O&&A.createElement("div",{className:"".concat(b,"-extra")},E)),A.createElement(cc,je({visible:i,leavedClassName:"".concat(b,"-content-hidden")},f,{forceRender:s,removeOnLeave:p}),function(T,N){var j=T.className,H=T.style;return A.createElement(t9,{ref:N,prefixCls:b,className:j,classNames:h,style:H,styles:g,isActive:i,forceRender:s,role:w?"tabpanel":void 0},v)}))}),gpe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],vpe=function(t,r){var n=r.prefixCls,a=r.accordion,i=r.collapsible,o=r.destroyInactivePanel,s=r.onItemClick,u=r.activeKey,l=r.openMotion,h=r.expandIcon;return t.map(function(d,g){var b=d.children,y=d.label,w=d.key,S=d.collapsible,E=d.onItemClick,_=d.destroyInactivePanel,C=sr(d,gpe),f=String(w??g),p=S??i,v=_??o,x=function($){p!=="disabled"&&(s($),E==null||E($))},k=!1;return a?k=u[0]===f:k=u.indexOf(f)>-1,A.createElement(r9,je({},C,{prefixCls:n,key:f,panelKey:f,isActive:k,accordion:a,openMotion:l,expandIcon:h,header:y,collapsible:p,onItemClick:x,destroyInactivePanel:v}),b)})},bpe=function(t,r,n){if(!t)return null;var a=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,l=n.activeKey,h=n.openMotion,d=n.expandIcon,g=t.key||String(r),b=t.props,y=b.header,w=b.headerClass,S=b.destroyInactivePanel,E=b.collapsible,_=b.onItemClick,C=!1;i?C=l[0]===g:C=l.indexOf(g)>-1;var f=E??o,p=function(k){f!=="disabled"&&(u(k),_==null||_(k))},v={key:g,panelKey:g,header:y,headerClass:w,isActive:C,prefixCls:a,destroyInactivePanel:S??s,openMotion:h,accordion:i,children:t.props.children,onItemClick:p,expandIcon:d,collapsible:f};return typeof t.type=="string"?t:(Object.keys(v).forEach(function(x){typeof v[x]>"u"&&delete v[x]}),A.cloneElement(t,v))};function ype(e,t,r){return Array.isArray(e)?vpe(e,r):mo(t).map(function(n,a){return bpe(n,a,r)})}function _pe(e){var t=e;if(!Array.isArray(t)){var r=pt(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var wpe=A.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-collapse":r,a=e.destroyInactivePanel,i=a===void 0?!1:a,o=e.style,s=e.accordion,u=e.className,l=e.children,h=e.collapsible,d=e.openMotion,g=e.expandIcon,b=e.activeKey,y=e.defaultActiveKey,w=e.onChange,S=e.items,E=ge(n,u),_=_n([],{value:b,onChange:function(O){return w==null?void 0:w(O)},defaultValue:y,postState:_pe}),C=we(_,2),f=C[0],p=C[1],v=function(O){return p(function(){if(s)return f[0]===O?[]:[O];var $=f.indexOf(O),D=$>-1;return D?f.filter(function(V){return V!==O}):[].concat(tt(f),[O])})};Ut(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=ype(S,l,{prefixCls:n,accordion:s,openMotion:d,expandIcon:g,collapsible:h,destroyInactivePanel:i,onItemClick:v,activeKey:f});return A.createElement("div",je({ref:t,className:E,style:o,role:s?"tablist":void 0},po(e,{aria:!0,data:!0})),x)});const n9=Object.assign(wpe,{Panel:r9});n9.Panel;const xpe=P.forwardRef((e,t)=>{process.env.NODE_ENV!=="production"&&ra("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');const{getPrefixCls:r}=P.useContext(kn),{prefixCls:n,className:a,showArrow:i=!0}=e,o=r("collapse",n),s=ge({[`${o}-no-arrow`]:!i},a);return P.createElement(n9.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))});var Zb,jO;function Spe(){return jO||(jO=1,Zb=QO()),Zb}var Cpe=Spe();const Epe=$n(Cpe);var jd={},Ld={},LO;function Ope(){if(LO)return Ld;LO=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"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",page_size:"Page Size"};return Ld.default=e,Ld}var zd={},Bd={},Hd={},zO;function Rpe(){if(zO)return Hd;zO=1;var e=Ls().default;Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.default=void 0;var t=e(KO()),r=XO(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});return Hd.default=n,Hd}var Vd={},BO;function a9(){if(BO)return Vd;BO=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=void 0;const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return Vd.default=e,Vd}var HO;function i9(){if(HO)return Bd;HO=1;var e=Ls().default;Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.default=void 0;var t=e(Rpe()),r=e(a9());const n={lang:Object.assign({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"]},t.default),timePickerLocale:Object.assign({},r.default)};return Bd.default=n,Bd}var VO;function Tpe(){if(VO)return zd;VO=1;var e=Ls().default;Object.defineProperty(zd,"__esModule",{value:!0}),zd.default=void 0;var t=e(i9());return zd.default=t.default,zd}var UO;function Ppe(){if(UO)return jd;UO=1;var e=Ls().default;Object.defineProperty(jd,"__esModule",{value:!0}),jd.default=void 0;var t=e(Ope()),r=e(Tpe()),n=e(i9()),a=e(a9());const i="${label} is not a valid ${type}",o={locale:"en",Pagination:t.default,DatePicker:n.default,TimePicker:a.default,Calendar:r.default,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};return jd.default=o,jd}var Jb,qO;function kpe(){return qO||(qO=1,Jb=Ppe()),Jb}var $pe=kpe();const Ape=$n($pe);exports.AliIconFontFn=yB;exports.CollapsePanel=xpe;exports.Color=L5;exports.EditableContext=zw;exports.GLOBAL_TABLE_TOP_CLASS=ym;exports.HealthStateComponent=xB;exports.OmitProps=fpe;exports.OnChainAI=pue;exports.OnChainAdvancedSearch=QJ;exports.OnChainBadge=sy;exports.OnChainCompositeForm=Gf;exports.OnChainDropMenu=qW;exports.OnChainExcelViewer=WW;exports.OnChainForm=UR;exports.OnChainFormItem=nP;exports.OnChainGenAntImage=QT;exports.OnChainGenImage=uJ;exports.OnChainGlobalLoading=OB;exports.OnChainHighLightWords=rs;exports.OnChainIcon=Dt;exports.OnChainImage=Iy;exports.OnChainInput=X0;exports.OnChainLoading=tc;exports.OnChainLoadingSkCube=SB;exports.OnChainMarkdown=IR;exports.OnChainModal=$u;exports.OnChainMosaic=co;exports.OnChainPopupSelect=rP;exports.OnChainProgress=vue;exports.OnChainProvider=oL;exports.OnChainPublicTree=gQ;exports.OnChainQueryBuilder=aP;exports.OnChainResourceTree=IT;exports.OnChainScrollBar=BW;exports.OnChainScrollBarAssembly=oQ;exports.OnChainSelect=gu;exports.OnChainSelectPopupForm=ZT;exports.OnChainTable=_m;exports.OnChainTableSelection=tP;exports.OnChainTabs=KT;exports.OnChainTreeSelect=op;exports.OnChainViewerError=HW;exports.Paragraph=yfe;exports.StatusColors=uy;exports.confirm=_W;exports.confirmModalConfig=HR;exports.en_US=Ape;exports.zhCN=Epe;Object.keys(ae).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>ae[e]})});
708
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ape(e,t){const r=Qr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[npe(r)]}const e9=ls("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[ape(r,e)]});function ipe(e){const t=A.useRef(null),r=()=>{Jr.cancel(t.current),t.current=null};return[()=>{r(),t.current=Jr(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e==null||e(i)}]}var ope=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const spe=(e,t)=>{var r;const{prefixCls:n,className:a,rootClassName:i,children:o,indeterminate:s=!1,style:u,onMouseEnter:l,onMouseLeave:h,skipGroup:d=!1,disabled:g}=e,b=ope(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:w,checkbox:S}=P.useContext(kn),E=P.useContext(Q7),{isFormItemInput:_}=P.useContext(ku),C=P.useContext(Pu),f=(r=(E==null?void 0:E.disabled)||g)!==null&&r!==void 0?r:C,p=P.useRef(b.value),v=P.useRef(null),x=us(t,v);if(process.env.NODE_ENV!=="production"){const j=ra("Checkbox");process.env.NODE_ENV!=="production"&&j("checked"in b||!!E||!("value"in b),"usage","`value` is not a valid prop, do you mean `checked`?")}P.useEffect(()=>{E==null||E.registerValue(b.value)},[]),P.useEffect(()=>{if(!d)return b.value!==p.current&&(E==null||E.cancelValue(p.current),E==null||E.registerValue(b.value),p.current=b.value),()=>E==null?void 0:E.cancelValue(b.value)},[b.value]),P.useEffect(()=>{var j;!((j=v.current)===null||j===void 0)&&j.input&&(v.current.input.indeterminate=s)},[s]);const k=y("checkbox",n),O=gh(k),[$,D,V]=e9(k,O),I=Object.assign({},b);E&&!d&&(I.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),E.toggleOption&&E.toggleOption({label:o,value:b.value})},I.name=E.name,I.checked=E.value.includes(b.value));const M=ge(`${k}-wrapper`,{[`${k}-rtl`]:w==="rtl",[`${k}-wrapper-checked`]:I.checked,[`${k}-wrapper-disabled`]:f,[`${k}-wrapper-in-form-item`]:_},S==null?void 0:S.className,a,i,V,O,D),F=ge({[`${k}-indeterminate`]:s},tx,D),[T,N]=ipe(I.onClick);return $(P.createElement(J7,{component:"Checkbox",disabled:f},P.createElement("label",{className:M,style:Object.assign(Object.assign({},S==null?void 0:S.style),u),onMouseEnter:l,onMouseLeave:h,onClick:T},P.createElement(j0e,Object.assign({},I,{onClick:N,prefixCls:k,className:F,disabled:f,ref:x})),o!==void 0&&P.createElement("span",{className:`${k}-label`},o))))},rx=P.forwardRef(spe);process.env.NODE_ENV!=="production"&&(rx.displayName="Checkbox");var upe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const lpe=P.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:a=[],prefixCls:i,className:o,rootClassName:s,style:u,onChange:l}=e,h=upe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:g}=P.useContext(kn),[b,y]=P.useState(h.value||r||[]),[w,S]=P.useState([]);P.useEffect(()=>{"value"in h&&y(h.value||[])},[h.value]);const E=P.useMemo(()=>a.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[a]),_=F=>{S(T=>T.filter(N=>N!==F))},C=F=>{S(T=>[].concat(tt(T),[F]))},f=F=>{const T=b.indexOf(F.value),N=tt(b);T===-1?N.push(F.value):N.splice(T,1),"value"in h||y(N),l==null||l(N.filter(j=>w.includes(j)).sort((j,H)=>{const B=E.findIndex(G=>G.value===j),U=E.findIndex(G=>G.value===H);return B-U}))},p=d("checkbox",i),v=`${p}-group`,x=gh(p),[k,O,$]=e9(p,x),D=ch(h,["value","disabled"]),V=a.length?E.map(F=>P.createElement(rx,{prefixCls:p,key:F.value.toString(),disabled:"disabled"in F?F.disabled:h.disabled,value:F.value,checked:b.includes(F.value),onChange:F.onChange,className:`${v}-item`,style:F.style,title:F.title,id:F.id,required:F.required},F.label)):n,I={toggleOption:f,value:b,disabled:h.disabled,name:h.name,registerValue:C,cancelValue:_},M=ge(v,{[`${v}-rtl`]:g==="rtl"},o,s,$,x,O);return k(P.createElement("div",Object.assign({className:M,style:u},D,{ref:t}),P.createElement(Q7.Provider,{value:I},V)))}),Km=rx;Km.Group=lpe;Km.__ANT_CHECKBOX=!0;process.env.NODE_ENV!=="production"&&(Km.displayName="Checkbox");const cpe=e=>{const{renderedText:t,renderedEl:r,item:n,checked:a,disabled:i,prefixCls:o,onClick:s,onRemove:u,showRemove:l}=e,h=ge(`${o}-content-item`,{[`${o}-content-item-disabled`]:i||n.disabled,[`${o}-content-item-checked`]:a&&!n.disabled});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[g]=bc("Transfer",Tu.Transfer),b={className:h,title:d},y=P.createElement("span",{className:`${o}-content-item-text`},r);return l?P.createElement("li",Object.assign({},b),y,P.createElement("button",{type:"button",disabled:i||n.disabled,className:`${o}-content-item-remove`,"aria-label":g==null?void 0:g.remove,onClick:()=>u==null?void 0:u(n)},P.createElement(Z7,null))):(b.onClick=i||n.disabled?void 0:w=>s(n,w),P.createElement("li",Object.assign({},b),P.createElement(Km,{className:`${o}-checkbox`,checked:a,disabled:i||n.disabled}),y))},dpe=P.memo(cpe),fpe=["handleFilter","handleClear","checkedKeys"],hpe=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),ppe=(e,t)=>{const{prefixCls:r,filteredRenderItems:n,selectedKeys:a,disabled:i,showRemove:o,pagination:s,onScroll:u,onItemSelect:l,onItemRemove:h}=e,[d,g]=P.useState(1),b=P.useMemo(()=>s?hpe(typeof s=="object"?s:{}):null,[s]),[y,w]=_n(10,{value:b==null?void 0:b.pageSize});P.useEffect(()=>{if(b){const x=Math.ceil(n.length/y);g(Math.min(d,x))}},[n,b,y]);const S=(x,k)=>{l(x.key,!a.includes(x.key),k)},E=x=>{h==null||h([x.key])},_=x=>{g(x)},C=(x,k)=>{g(x),w(k)},f=P.useMemo(()=>b?n.slice((d-1)*y,d*y):n,[d,n,b,y]);P.useImperativeHandle(t,()=>({items:f}));const p=b?P.createElement(X7,{size:"small",disabled:i,simple:b.simple,pageSize:y,showLessItems:b.showLessItems,showSizeChanger:b.showSizeChanger,className:`${r}-pagination`,total:n.length,current:d,onChange:_,onShowSizeChange:C}):null,v=ge(`${r}-content`,{[`${r}-content-show-remove`]:o});return P.createElement(P.Fragment,null,P.createElement("ul",{className:v,onScroll:u},(f||[]).map(x=>{let{renderedEl:k,renderedText:O,item:$}=x;return P.createElement(dpe,{key:$.key,item:$,renderedText:O,renderedEl:k,prefixCls:r,showRemove:o,onClick:S,onRemove:E,checked:a.includes($.key),disabled:i||$.disabled})})),p)};process.env.NODE_ENV!=="production"&&(ppe.displayName="TransferListBody");var t9=A.forwardRef(function(e,t){var r=e.prefixCls,n=e.forceRender,a=e.className,i=e.style,o=e.children,s=e.isActive,u=e.role,l=e.classNames,h=e.styles,d=A.useState(s||n),g=we(d,2),b=g[0],y=g[1];return A.useEffect(function(){(n||s)&&y(!0)},[n,s]),b?A.createElement("div",{ref:t,className:ge("".concat(r,"-content"),re(re({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),a),style:i,role:u},A.createElement("div",{className:ge("".concat(r,"-content-box"),l==null?void 0:l.body),style:h==null?void 0:h.body},o)):null});t9.displayName="PanelContent";var mpe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],r9=A.forwardRef(function(e,t){var r=e.showArrow,n=r===void 0?!0:r,a=e.headerClass,i=e.isActive,o=e.onItemClick,s=e.forceRender,u=e.className,l=e.classNames,h=l===void 0?{}:l,d=e.styles,g=d===void 0?{}:d,b=e.prefixCls,y=e.collapsible,w=e.accordion,S=e.panelKey,E=e.extra,_=e.header,C=e.expandIcon,f=e.openMotion,p=e.destroyInactivePanel,v=e.children,x=sr(e,mpe),k=y==="disabled",O=E!=null&&typeof E!="boolean",$=re(re(re({onClick:function(){o==null||o(S)},onKeyDown:function(N){(N.key==="Enter"||N.keyCode===Ct.ENTER||N.which===Ct.ENTER)&&(o==null||o(S))},role:w?"tab":"button"},"aria-expanded",i),"aria-disabled",k),"tabIndex",k?-1:0),D=typeof C=="function"?C(e):A.createElement("i",{className:"arrow"}),V=D&&A.createElement("div",je({className:"".concat(b,"-expand-icon")},["header","icon"].includes(y)?$:{}),D),I=ge("".concat(b,"-item"),re(re({},"".concat(b,"-item-active"),i),"".concat(b,"-item-disabled"),k),u),M=ge(a,"".concat(b,"-header"),re({},"".concat(b,"-collapsible-").concat(y),!!y),h.header),F=Q({className:M,style:g.header},["header","icon"].includes(y)?{}:$);return A.createElement("div",je({},x,{ref:t,className:I}),A.createElement("div",F,n&&V,A.createElement("span",je({className:"".concat(b,"-header-text")},y==="header"?$:{}),_),O&&A.createElement("div",{className:"".concat(b,"-extra")},E)),A.createElement(cc,je({visible:i,leavedClassName:"".concat(b,"-content-hidden")},f,{forceRender:s,removeOnLeave:p}),function(T,N){var j=T.className,H=T.style;return A.createElement(t9,{ref:N,prefixCls:b,className:j,classNames:h,style:H,styles:g,isActive:i,forceRender:s,role:w?"tabpanel":void 0},v)}))}),gpe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],vpe=function(t,r){var n=r.prefixCls,a=r.accordion,i=r.collapsible,o=r.destroyInactivePanel,s=r.onItemClick,u=r.activeKey,l=r.openMotion,h=r.expandIcon;return t.map(function(d,g){var b=d.children,y=d.label,w=d.key,S=d.collapsible,E=d.onItemClick,_=d.destroyInactivePanel,C=sr(d,gpe),f=String(w??g),p=S??i,v=_??o,x=function($){p!=="disabled"&&(s($),E==null||E($))},k=!1;return a?k=u[0]===f:k=u.indexOf(f)>-1,A.createElement(r9,je({},C,{prefixCls:n,key:f,panelKey:f,isActive:k,accordion:a,openMotion:l,expandIcon:h,header:y,collapsible:p,onItemClick:x,destroyInactivePanel:v}),b)})},bpe=function(t,r,n){if(!t)return null;var a=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,l=n.activeKey,h=n.openMotion,d=n.expandIcon,g=t.key||String(r),b=t.props,y=b.header,w=b.headerClass,S=b.destroyInactivePanel,E=b.collapsible,_=b.onItemClick,C=!1;i?C=l[0]===g:C=l.indexOf(g)>-1;var f=E??o,p=function(k){f!=="disabled"&&(u(k),_==null||_(k))},v={key:g,panelKey:g,header:y,headerClass:w,isActive:C,prefixCls:a,destroyInactivePanel:S??s,openMotion:h,accordion:i,children:t.props.children,onItemClick:p,expandIcon:d,collapsible:f};return typeof t.type=="string"?t:(Object.keys(v).forEach(function(x){typeof v[x]>"u"&&delete v[x]}),A.cloneElement(t,v))};function ype(e,t,r){return Array.isArray(e)?vpe(e,r):mo(t).map(function(n,a){return bpe(n,a,r)})}function _pe(e){var t=e;if(!Array.isArray(t)){var r=pt(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var wpe=A.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-collapse":r,a=e.destroyInactivePanel,i=a===void 0?!1:a,o=e.style,s=e.accordion,u=e.className,l=e.children,h=e.collapsible,d=e.openMotion,g=e.expandIcon,b=e.activeKey,y=e.defaultActiveKey,w=e.onChange,S=e.items,E=ge(n,u),_=_n([],{value:b,onChange:function(O){return w==null?void 0:w(O)},defaultValue:y,postState:_pe}),C=we(_,2),f=C[0],p=C[1],v=function(O){return p(function(){if(s)return f[0]===O?[]:[O];var $=f.indexOf(O),D=$>-1;return D?f.filter(function(V){return V!==O}):[].concat(tt(f),[O])})};Ut(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=ype(S,l,{prefixCls:n,accordion:s,openMotion:d,expandIcon:g,collapsible:h,destroyInactivePanel:i,onItemClick:v,activeKey:f});return A.createElement("div",je({ref:t,className:E,style:o,role:s?"tablist":void 0},po(e,{aria:!0,data:!0})),x)});const n9=Object.assign(wpe,{Panel:r9});n9.Panel;const xpe=P.forwardRef((e,t)=>{process.env.NODE_ENV!=="production"&&ra("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');const{getPrefixCls:r}=P.useContext(kn),{prefixCls:n,className:a,showArrow:i=!0}=e,o=r("collapse",n),s=ge({[`${o}-no-arrow`]:!i},a);return P.createElement(n9.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))});var Zb,jO;function Spe(){return jO||(jO=1,Zb=QO()),Zb}var Cpe=Spe();const Epe=$n(Cpe);var jd={},Ld={},LO;function Ope(){if(LO)return Ld;LO=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"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",page_size:"Page Size"};return Ld.default=e,Ld}var zd={},Bd={},Hd={},zO;function Rpe(){if(zO)return Hd;zO=1;var e=Ls().default;Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.default=void 0;var t=e(KO()),r=XO(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});return Hd.default=n,Hd}var Vd={},BO;function a9(){if(BO)return Vd;BO=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=void 0;const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return Vd.default=e,Vd}var HO;function i9(){if(HO)return Bd;HO=1;var e=Ls().default;Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.default=void 0;var t=e(Rpe()),r=e(a9());const n={lang:Object.assign({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"]},t.default),timePickerLocale:Object.assign({},r.default)};return Bd.default=n,Bd}var VO;function Tpe(){if(VO)return zd;VO=1;var e=Ls().default;Object.defineProperty(zd,"__esModule",{value:!0}),zd.default=void 0;var t=e(i9());return zd.default=t.default,zd}var UO;function Ppe(){if(UO)return jd;UO=1;var e=Ls().default;Object.defineProperty(jd,"__esModule",{value:!0}),jd.default=void 0;var t=e(Ope()),r=e(Tpe()),n=e(i9()),a=e(a9());const i="${label} is not a valid ${type}",o={locale:"en",Pagination:t.default,DatePicker:n.default,TimePicker:a.default,Calendar:r.default,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"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},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",deselectAll:"Deselect 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",collapse:"Collapse"},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:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};return jd.default=o,jd}var Jb,qO;function kpe(){return qO||(qO=1,Jb=Ppe()),Jb}var $pe=kpe();const Ape=$n($pe);exports.AliIconFontFn=vB;exports.CollapsePanel=xpe;exports.Color=L5;exports.EditableContext=zw;exports.GLOBAL_TABLE_TOP_CLASS=ym;exports.HealthStateComponent=_B;exports.OmitProps=fpe;exports.OnChainAI=pue;exports.OnChainAdvancedSearch=QJ;exports.OnChainBadge=sy;exports.OnChainCompositeForm=Gf;exports.OnChainDropMenu=qW;exports.OnChainExcelViewer=WW;exports.OnChainForm=UR;exports.OnChainFormItem=nP;exports.OnChainGenAntImage=QT;exports.OnChainGenImage=uJ;exports.OnChainGlobalLoading=CB;exports.OnChainHighLightWords=rs;exports.OnChainIcon=Dt;exports.OnChainImage=Iy;exports.OnChainInput=X0;exports.OnChainLoading=tc;exports.OnChainLoadingSkCube=wB;exports.OnChainMarkdown=IR;exports.OnChainModal=$u;exports.OnChainMosaic=co;exports.OnChainPopupSelect=rP;exports.OnChainProgress=vue;exports.OnChainProvider=oL;exports.OnChainPublicTree=gQ;exports.OnChainQueryBuilder=aP;exports.OnChainResourceTree=IT;exports.OnChainScrollBar=BW;exports.OnChainScrollBarAssembly=oQ;exports.OnChainSelect=gu;exports.OnChainSelectPopupForm=ZT;exports.OnChainTable=_m;exports.OnChainTableSelection=tP;exports.OnChainTabs=KT;exports.OnChainTreeSelect=op;exports.OnChainViewerError=HW;exports.Paragraph=yfe;exports.StatusColors=uy;exports.confirm=_W;exports.confirmModalConfig=HR;exports.en_US=Ape;exports.zhCN=Epe;Object.keys(ae).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>ae[e]})});