(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},28575:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},42922:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},55304:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},53555:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},3407:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},32693:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},53978:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},71736:function(at,We){"use strict";We.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(at,We){"use strict";We.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},12867:function(){"use strict"},22707:function(at,We,te){"use strict";var z=te(67294),fe=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,pe=(le,ue,se)=>ue in le?fe(le,ue,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ue]=se,ie=(le,ue)=>{for(var se in ue||(ue={}))ve.call(ue,se)&&pe(le,se,ue[se]);if(Pe)for(var se of Pe(ue))he.call(ue,se)&&pe(le,se,ue[se]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));We.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(at,We,te){"use strict";var z=te(67294),fe=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,pe=(le,ue,se)=>ue in le?fe(le,ue,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ue]=se,ie=(le,ue)=>{for(var se in ue||(ue={}))ve.call(ue,se)&&pe(le,se,ue[se]);if(Pe)for(var se of Pe(ue))he.call(ue,se)&&pe(le,se,ue[se]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));We.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function at(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(at.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(at.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(at.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(at.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof at))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var We=[];function te(ne,a){var y=We.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function z(){var ne=We.pop();return ne===void 0?new go.Point:ne}function fe(ne){We.push(ne)}function Pe(ne,a,y,E,b,x,ee,oe,ae){ae||(ae=new go.Point);var ce=ne-y,Se=b-ee,_e=NaN,xe=NaN;if(ce===0)if(Se===0)ne===y&&(_e=ne,xe=a);else{var we=(x-oe)/Se,Fe=x-we*b;_e=ne,xe=we*_e+Fe}else if(Se===0){var Me=(a-E)/ce,ut=a-Me*ne;_e=b,xe=Me*_e+ut}else{var Me=(a-E)/ce,we=(x-oe)/Se,ut=a-Me*ne,Fe=x-we*b;_e=(Fe-ut)/(Me-we),xe=Me*_e+ut}return ae.x=_e,ae.y=xe,ae}function ve(ne,a,y,E,b,x,ee,oe,ae,ce,Se,_e,xe,we){var Fe=1-ae,Me=ae,ut=ne*Fe+y*Me,Xe=a*Fe+E*Me,mt=y*Fe+b*Me,Ae=E*Fe+x*Me,De=b*Fe+ee*Me,Be=x*Fe+oe*Me,nt=ut*Fe+mt*Me,Ke=Xe*Fe+Ae*Me,Et=mt*Fe+De*Me,Ct=Ae*Fe+Be*Me,nn=nt*Fe+Et*Me,on=Ke*Fe+Ct*Me;ce.x=ut,ce.y=Xe,Se.x=nt,Se.y=Ke,_e.x=nn,_e.y=on,xe.x=Et,xe.y=Ct,we.x=De,we.y=Be}var he=new go.Spot(.156,.156),pe=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new at("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=he,b.spot2=pe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ie*a,0,a,(1-ie)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ie*y,(1-ie)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ie*y,ie*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ie)*a,0,0,(1-ie)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new at("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b0&&(ee.add(new go.PathSegment(go.PathSegment.Move,a/2+oe,a/2)),ee.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=he,x.spot2=pe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new at("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new at("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var ee=b%360,oe=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,x,ee,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ie/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new at("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,ee=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,ee+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,ee-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new at("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,ee=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,ee+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,ee-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new at("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,ee=y/2,oe=Math.atan2(y,a),ae=E-Math.min(Math.cos(oe)*E/2,x),ce=E-Math.min(Math.sin(oe)*E/2,ee),b=new go.Geometry,Se=new go.PathFigure(ae,0,!0);return b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),Se.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,ce)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),Se.add(new go.PathSegment(go.PathSegment.Line,a-ae,y)),Se.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),Se.add(new go.PathSegment(go.PathSegment.Line,ae,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new at("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new at("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new at("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ie*a,0,a,(.5-ie/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ie/2)*y,ie*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,ee=.3,oe=0,ae=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+x+oe)*y,(.5-x+ee)*a,(.5+ae+oe)*y,(.5-ae+ee)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+ee)*a,(.5+oe)*y,(.5+ae+ee)*a,(.5+x+oe)*y,(.5+x+ee)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-x+oe)*y,(1-.5+x+ee)*a,(.5-ae+oe)*y,(.5+ae+ee)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ae+ee)*a,(.5-x+oe)*y,(.5-x+ee+.05)*a,(.5-ae+oe-.02)*y)),x=.2,ee=0,oe=-.3,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+ee)*a,(.5+oe)*y,(.5+ae+ee)*a,(.5+x+oe)*y,(.5+x+ee)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-x+oe)*y,(1-.5+x+ee)*a,(.5-ae+oe)*y,(.5+ae+ee)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+ee)*a,(.5+oe)*y,(.5-ae+ee)*a,(.5-x+oe)*y,(.5-x+ee)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+ee)*a,(.5+x+oe)*y,(.5-x+ee)*a,(.5+ae+oe)*y,(.5-ae+ee)*a,(.5+x+oe)*y)),x=.2,ee=-.3,oe=0,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-x+oe)*y,(1-.5+x+ee-.05)*a,(.5-ae+oe-.02)*y,(.5+ae+ee)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+ee)*a,(.5+oe)*y,(.5-ae+ee)*a,(.5-x+oe)*y,(.5-x+ee)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+x+oe)*y,(.5-x+ee)*a,(.5+ae+oe)*y,(.5-ae+ee)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ae+ee)*a,(.5+x+oe)*y,(.5+x+ee)*a,(.5+ae+oe)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,ee=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(ee+x)*a,oe*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*ee,y*oe,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),oe=.75,b=new go.PathFigure((ee+x)*a,oe*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*ee,y*oe,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=.5,oe=.5,ae=new go.PathFigure(ee*a,(oe-x)*y);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),x=.4,b=ie*.4;var ce=z(),Se=z(),_e=z(),xe=z();ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.42,ce,Se,_e,xe,xe);var we=z(),Fe=z(),Me=z();ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.58,xe,xe,Me,we,Fe);var ut=z(),Xe=z(),mt=z();ve(ee,oe+x,ee-b,oe+x,ee-x,oe+b,ee-x,oe,.42,ut,Xe,mt,xe,xe);var Ae=z(),De=z(),Be=z();return ve(ee,oe+x,ee-b,oe+x,ee-x,oe+b,ee-x,oe,.58,xe,xe,Be,Ae,De),ae.add(new go.PathSegment(go.PathSegment.Move,Be.x*a,Be.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,Ae.x*a,Ae.y*y,De.x*a,De.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,_e.x*a,_e.y*y,ce.x*a,ce.y*y,Se.x*a,Se.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,mt.x*a,mt.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,we.x*a,we.y*y,Fe.x*a,Fe.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,mt.x*a,mt.y*y,ut.x*a,ut.y*y,Xe.x*a,Xe.y*y).close()),fe(ce),fe(Se),fe(_e),fe(xe),fe(we),fe(Fe),fe(Me),fe(ut),fe(Xe),fe(mt),fe(Ae),fe(De),fe(Be),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new at("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,ee=.5,oe=.5,ae=z(),ce=z(),Se=z(),_e=z(),xe=new go.PathFigure((ee-x)*a,oe*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.44,Se,_e,ce,ae,ae),xe.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y));var we=te(ce.x,ce.y);ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.56,ae,ae,ce,Se,_e);var Fe=te(ce.x,ce.y);xe.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.95*.9)*a,we.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,we.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),xe.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),x=.35,b=ie*.35;var Me=new go.PathFigure(ee*a,(oe-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y));var ut=new go.PathFigure((ee-x)*a,oe*y,!1);return E.add(ut),fe(ae),fe(ce),fe(Se),fe(_e),fe(we),fe(Fe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,ee=-.125,oe=b*ie,ae=new go.PathFigure((.525+x)*a,(.5+b+ee)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+ee)*y,(.5+oe+x)*a,(.5+b+ee)*y,(.5+b+x)*a,(.5+oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+ee)*y,(1-.5+b+x)*a,(.5-oe+ee)*y,(.5+oe+x)*a,(.5-b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+ee)*y,(.5-oe+x)*a,(.5-b+ee)*y,(.5-b+x)*a,(.5-oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+ee)*y,(.5-b+x)*a,(.5+oe+ee)*y,(.5-oe+x)*a,(.5+b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,ee=-.125,oe=b*ie;var ae=new go.PathFigure((1-.5+b+x)*a,(.5+ee)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+ee)*y,(.5+b+x)*a,(.5+oe+ee)*y,(.5+oe+x)*a,(.5+b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+ee)*y,(.5-oe+x)*a,(.5+b+ee)*y,(.5-b+x)*a,(.5+oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+ee)*y,(.5-b+x)*a,(.5-oe+ee)*y,(.5-oe+x)*a,(.5-b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+ee)*y,(.5+oe+x)*a,(.5-b+ee)*y,(1-.5+b+x)*a,(.5-oe+ee)*y));var ae=new go.PathFigure((.525+x)*a,(.5+b+ee)*y,!1);return E.add(ae),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new at("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new at("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,ee=(.5-b/2)*y,oe=(.5+b/2)*y,ae=new go.Geometry,ce=new go.PathFigure(0,ee,!0);ae.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,ee/y);var Se=Pe(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(Se.x,Se.y),fe(Se),ae}),go.Shape.setFigureParameter("Arrow2",0,new at("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new at("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,ee=(y-b)/2,oe=ee+b,ae=new go.Geometry,ce=new go.PathFigure(0,ee,!0);ae.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,ee/y);var Se=Pe(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(Se.x,Se.y),fe(Se),ae}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new at("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=Pe(0,.5,.3,0,0,b/y,.1,b/y,z());return ee.spot1=new go.Spot(ae.x,ae.y),ae=Pe(.7,1,1,.5,0,x/y,1,x/y,ae),ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new at("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new at("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,ee=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,ee=x+E,oe=0,ae=y):(x=0,ee=y,oe=0,ae=y));var ce=new go.Geometry,Se=new go.PathFigure(a,.5*y,!0);ce.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,oe)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close());var _e=Pe(0,.5,.3,oe/y,0,x/y,1,x/y,z());return ce.spot1=new go.Spot(_e.x,_e.y),_e=Pe(.7,ae/y,1,.5,0,ee/y,1,ee/y,_e),ce.spot2=new go.Spot(_e.x,_e.y),fe(_e),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new at("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ee.spot1=new go.Spot(0,b/y);var ae=Pe(.7,1,1,.5,0,x/y,1,x/y,z());return ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),go.Shape.setFigureParameter("IBeamArrow2",0,new at("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new at("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,ee=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,ee=x+E,oe=0,ae=y):(x=0,ee=y,oe=0,ae=y));var ce=new go.Geometry,Se=new go.PathFigure(a,.5*y,!0);ce.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,0,oe)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,oe)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close()),ce.spot1=new go.Spot(0,x/y);var _e=Pe(.7,ae/y,1,.5,0,ee/y,1,ee/y,z());return ce.spot2=new go.Spot(_e.x,_e.y),fe(_e),ce}),go.Shape.setFigureParameter("Pointer",0,new at("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var ee=Pe(.2,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(ee.x,ee.y),fe(ee),b}),go.Shape.setFigureParameter("RoundedPointer",0,new at("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var ee=Pe(0,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(ee.x,ee.y),fe(ee),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new at("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ee.spot1=new go.Spot(.2,.3);var ae=Pe(.7,1,1,.5,0,x/y,1,x/y,z());return ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),go.Shape.setFigureParameter("SplitEndArrow2",0,new at("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ee.spot1=new go.Spot(.2,b/y);var ae=Pe(.7,1,1,.5,0,x/y,1,x/y,z());return ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),go.Shape.setFigureParameter("SquareArrow",0,new at("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,ee=new go.PathFigure(0,.9*y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,ee=new go.PathFigure(0,E,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*E,(.5+x)*a,1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E));var oe=new go.PathFigure(a,E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ie*E,(.5+x)*a,2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ie*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,ee=new go.PathFigure(0,y-E,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*E,(.5+x)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ie*E));var oe=new go.PathFigure(0,y-E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ie*E,(.5-x)*a,y-2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ie*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,ee=new go.PathFigure(E,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),ee.add(new go.PathSegment(go.PathSegment.Line,E,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0));var oe=new go.PathFigure(E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ie*E,0,2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ie*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,ee=new go.PathFigure(a-E,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),ee.add(new go.PathSegment(go.PathSegment.Line,E,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var oe=new go.PathFigure(a-E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ie*E,0,a-2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ie*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,ee=ie*b,oe=ie*x,ae=.5,ce=.1,Se=new go.PathFigure(ae*a,(ce+x)*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-b)*a,ce*y,(ae-ee)*a,(ce+x)*y,(ae-b)*a,(ce+oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-x)*y,(ae-b)*a,(ce-oe)*y,(ae-ee)*a,(ce-x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+b)*a,ce*y,(ae+ee)*a,(ce-x)*y,(ae+b)*a,(ce-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+x)*y,(ae+b)*a,(ce+oe)*y,(ae+ee)*a,(ce+x)*y));var _e=.05,xe=ie*_e;ae=.05,ce=.25;var we=new go.PathFigure(.5*a,.2*y,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ae=.95,ce=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,(ae+_e)*a,ce*y,(ae+xe)*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),_e=.025,xe=ie*_e,ae=.825,ce=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y,(ae+xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ce*y,(ae-xe)*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),_e=.05,xe=ie*_e,ae=.5,ce=.7,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y,(ae+xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ce*y,(ae-xe)*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),_e=.025,xe=ie*_e,ae=.175,ce=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y,(ae+xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ce*y,(ae-xe)*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),_e=.05,xe=ie*_e,ae=.05,ce=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y,(ae-xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new at("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,ee=new go.PathFigure(a,.1*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,ee=new go.PathFigure(a,.1*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ie*.2,ee=new go.PathFigure(0,.2*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var oe=new go.PathFigure(0,b*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,ee=ie*.5,oe=.5,ae=new go.PathFigure(a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,y,a,(oe+ee)*y,(oe+ee)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*y,(oe-ee)*a,y,0,(oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,0,0,(oe-ee)*y,(oe-ee)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,oe*y,(oe+ee)*a,0,a,(oe-ee)*y));var ce=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ce.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=new go.PathFigure(.5*a,y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var oe=new go.PathFigure(.5*b*a,b*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=new go.PathFigure(a,x*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure((1-b)*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=new go.PathFigure(a,x*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,x*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ae=new go.PathFigure(.8*a,.75*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,ee=.9,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ce=new go.PathFigure((ee+x)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe-x)*y,(ee+x)*a,(oe-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.4,ee=ie*.1,oe=.1,ae=.9,ce=.5,Se=new go.PathFigure(.8*a,.5*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var _e=new go.PathFigure((ae+oe)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+oe)*y,(ae+oe)*a,(ce+ee)*y,(ae+ee)*a,(ce+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a,ce*y,(ae-ee)*a,(ce+oe)*y,(ae-oe)*a,(ce+ee)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-oe)*y,(ae-oe)*a,(ce-ee)*y,(ae-ee)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a,ce*y,(ae+ee)*a,(ce-oe)*y,(ae+oe)*a,(ce-ee)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,ee=0,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(ee+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,ee=.9,oe=.5;var ce=new go.PathFigure((ee-b)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,ee=0,oe=.5,ae=new go.PathFigure(0,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(ee+x+x)*a,(oe-b)*y,.8*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(oe+x)*y,(ee+x+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,ee=.2,oe=.5,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.8*a,.5*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(ee+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,ee=.9,oe=.5;var Se=new go.PathFigure((ee-b)*a,oe*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,ee=.2,oe=.5,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.2*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(ee+x)*a,(oe-b)*y,.9*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,ee=.1,oe=.5,ae=new go.PathFigure((ee-b*.5)*a,y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+x)*a,0,(ee+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+x)*a,0,(ee+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+x)*a,0,(ee+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b*.5)*a,y,(ee+x)*a,0,(ee+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=.5,oe=.5,ae=new go.PathFigure((ee-x)*a,oe*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe-x)*y,(ee+x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Move,(ee-x+.1)*a,oe*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x-.1)*a,oe*y,ee*a,(oe-x)*y,ee*a,(oe+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var ee=ie*.8,oe=.8,ae=0,ce=.5,Se=(b-a)/2,_e=(x-y)/2,xe=new go.PathFigure(ae*a+Se,(ce+oe)*y+_e,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+Se,ce*y+_e,(ae-ee)*a+Se,(ce+oe)*y+_e,(ae-oe)*a+Se,(ce+ee)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae-oe)*a+Se,(ce-ee)*y+_e,(ae-ee)*a+Se,(ce-oe)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce-oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce-ee)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce+ee)*y+_e,ae*a+Se,(ce+oe)*y+_e).close()),ee=ie*.4,oe=.4,ae=.2,ce=.5;var we=new go.PathFigure(ae*a+Se,(ce+oe)*y+_e,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+Se,ce*y+_e,(ae-ee)*a+Se,(ce+oe)*y+_e,(ae-oe)*a+Se,(ce+ee)*y+_e)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae-oe)*a+Se,(ce-ee)*y+_e,(ae-ee)*a+Se,(ce-oe)*y+_e)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce-oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce-ee)*y+_e)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce+ee)*y+_e,ae*a+Se,(ce+oe)*y+_e).close()),ee=ie*.2,oe=.2,ae=.5,ce=.5;var Fe=new go.PathFigure((ae-oe)*a+Se,ce*y+_e,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae-oe)*a+Se,(ce-ee)*y+_e,(ae-ee)*a+Se,(ce-oe)*y+_e)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+Se,ce*y+_e,(ae+ee)*a+Se,(ce-oe)*y+_e,(ae+oe)*a+Se,(ce-ee)*y+_e)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae+oe)*a+Se,(ce+ee)*y+_e,(ae+ee)*a+Se,(ce+oe)*y+_e)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+Se,ce*y+_e,(ae-ee)*a+Se,(ce+oe)*y+_e,(ae-oe)*a+Se,(ce+ee)*y+_e)),ee=ie*.4,oe=.4,ae=.8,ce=.5;var Me=new go.PathFigure(ae*a+Se,(ce-oe)*y+_e,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+Se,ce*y+_e,(ae+ee)*a+Se,(ce-oe)*y+_e,(ae+oe)*a+Se,(ce-ee)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae+oe)*a+Se,(ce+ee)*y+_e,(ae+ee)*a+Se,(ce+oe)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce+oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce+ee)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce-ee)*y+_e,ae*a+Se,(ce-oe)*y+_e).close()),ee=ie*.8,oe=.8,ae=1,ce=.5;var ut=new go.PathFigure(ae*a+Se,(ce-oe)*y+_e,!0);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+Se,ce*y+_e,(ae+ee)*a+Se,(ce-oe)*y+_e,(ae+oe)*a+Se,(ce-ee)*y+_e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae+oe)*a+Se,(ce+ee)*y+_e,(ae+ee)*a+Se,(ce+oe)*y+_e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce+oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce+ee)*y+_e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce-ee)*y+_e,ae*a+Se,(ce-oe)*y+_e).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var ee=new go.PathFigure(.6*a,y,!0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var oe=new go.PathFigure(0,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,ee=.5,oe=.5,ae=z(),ce=z(),Se=z(),_e=z();ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.5,ae,ae,ce,Se,_e);var xe=te(ce.x,ce.y),we=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),ve(ee-x,oe,ee-x,oe-b,ee-b,oe-x,ee,oe-x,.5,Se,_e,ce,ae,ae),we.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),b=ie*.3,x=.3,ve(ee-x,oe,ee-x,oe-b,ee-b,oe-x,ee,oe-x,.5,Se,_e,ce,ae,ae),we.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,_e.x*a,_e.y*y,Se.x*a,Se.y*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.5,ae,ae,ce,Se,_e),we.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,_e.x*a,_e.y*y,Se.x*a,Se.y*y).close());var we=new go.PathFigure(.45*a,0,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(ae),fe(ce),fe(Se),fe(_e),fe(xe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(ee,oe,ae){ee.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*a,(.8+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*a,(.5+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*a,(.5+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*a,(.8+ae)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,ee=0,oe=b*ie,ae=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,Se=1,_e=.5,xe=.5,we=0,Fe=new go.PathFigure(ae*a,(1-ce)*y,!1);return E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,_e*y,Se*a,.7*y,Se*a,_e*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+x)*a,(we+x)*y,(.5+b+x)*a,(.5-oe+x)*y,(.5+oe+x)*a,(.5-b+x)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+ee)*y,(.5-oe+x)*a,(.5-b+ee)*y,(.5-b+x)*a,(.5-oe+ee)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+oe+ee)*y,(.5-oe+x)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var ee=.5-.285,oe=.5,ae=ee,ce=Math.PI/4,Se=4*(1-Math.cos(ce))/(3*Math.sin(ce)),_e=Se*.5,xe=ee,we=ee,Fe=Se*xe,Me=Se*we;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-xe)*a,ae*y,(oe-(Fe+xe)/2)*a,(ae+(we+Me)/2)*y,(oe-xe)*a,(ae+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-we)*y,(oe-xe)*a,(ae-Me)*y,(oe-Fe)*a,(ae-we)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+xe)*a,ae*y,(oe+Fe)*a,(ae-we)*y,(oe+xe)*a,(ae-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(oe+xe)*a,(ae+Me)*y,(oe+(Fe+xe)/2)*a,(ae+(we+Me)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ut=new go.PathFigure(.2*a,y,!1);E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Xe=new go.PathFigure(.8*a,y,!1);return E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var ee=new go.PathFigure(.1*a,y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var ee=new go.PathFigure(.675*a,.575*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,ee=new go.PathFigure(a,b*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var ee=new go.PathFigure(0,.6*y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var ee=.1,oe=ie*.1,ae=.2,ce=.9,Se=new go.PathFigure((ae-ee)*a,ce*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-ee)*y,(ae-ee)*a,(ce-oe)*y,(ae-oe)*a,(ce-ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,ce*y,(ae+oe)*a,(ce-ee)*y,(ae+ee)*a,(ce-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+ee)*y,(ae+ee)*a,(ce+oe)*y,(ae+oe)*a,(ce+ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,ce*y,(ae-oe)*a,(ce+ee)*y,(ae-ee)*a,(ce+oe)*y).close()),ee=.1,oe=ie*.1,ae=.8,ce=.9;var _e=new go.PathFigure((ae-ee)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-ee)*y,(ae-ee)*a,(ce-oe)*y,(ae-oe)*a,(ce-ee)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,ce*y,(ae+oe)*a,(ce-ee)*y,(ae+ee)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+ee)*y,(ae+ee)*a,(ce+oe)*y,(ae+oe)*a,(ce+ee)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,ce*y,(ae-oe)*a,(ce+ee)*y,(ae-ee)*a,(ce+oe)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var ee=new go.PathFigure(.5*a,.8*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var oe=new go.PathFigure(.5*a,.7*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ae=.1,ce=ie*.1,Se=.1,_e=.9,xe=new go.PathFigure((Se-ae)*a,_e*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e-ae)*y,(Se-ae)*a,(_e-ce)*y,(Se-ce)*a,(_e-ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ae)*a,_e*y,(Se+ce)*a,(_e-ae)*y,(Se+ae)*a,(_e-ce)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e+ae)*y,(Se+ae)*a,(_e+ce)*y,(Se+ce)*a,(_e+ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ae)*a,_e*y,(Se-ce)*a,(_e+ae)*y,(Se-ae)*a,(_e+ce)*y)),ae=.1,ce=ie*.1,Se=.4,_e=.9;var we=new go.PathFigure((Se-ae)*a,_e*y,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e-ae)*y,(Se-ae)*a,(_e-ce)*y,(Se-ce)*a,(_e-ae)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ae)*a,_e*y,(Se+ce)*a,(_e-ae)*y,(Se+ae)*a,(_e-ce)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e+ae)*y,(Se+ae)*a,(_e+ce)*y,(Se+ce)*a,(_e+ae)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ae)*a,_e*y,(Se-ce)*a,(_e+ae)*y,(Se-ae)*a,(_e+ce)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var ee=new go.PathFigure(.55*a,.4*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var Se=.05,_e=ie*.05,xe=.175,we=.95,oe=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y));var Se=.05,_e=ie*.05,xe=.375,we=.95,ae=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y));var Se=.05,_e=ie*.05,xe=.625,we=.95,ce=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y));var Se=.05,_e=ie*.05,xe=.825,we=.95,Fe=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var ee=new go.PathFigure(.15*a,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var oe=.05,ae=ie*.05,ce=.35,Se=.775,_e=new go.PathFigure((ce-oe)*a,Se*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(Se-oe)*y,(ce-oe)*a,(Se-ae)*y,(ce-ae)*a,(Se-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce+oe)*a,Se*y,(ce+ae)*a,(Se-oe)*y,(ce+oe)*a,(Se-ae)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(Se+oe)*y,(ce+oe)*a,(Se+ae)*y,(ce+ae)*a,(Se+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce-oe)*a,Se*y,(ce-ae)*a,(Se+oe)*y,(ce-oe)*a,(Se+ae)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=ie*.3,ee=.5,oe=.7,ae=new go.PathFigure((ee-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y));var ce=new go.PathFigure(0,.7*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,ee=.5,oe=.5,ae=new go.PathFigure((ee-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y));var ce=new go.PathFigure(.15*a,.5*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,ee=.5,oe=.5,ae=new go.PathFigure((ee-b)*a,oe*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y).close()),b=.05,x=ie*.05,ee=.5,oe=.8;var ce=new go.PathFigure((ee-b)*a,oe*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var ee=new go.PathFigure(.402*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var oe=new go.PathFigure(.678*a,.85*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ae=new go.PathFigure(.5*a,.1*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var ee=new go.PathFigure(a*.408,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var oe=new go.PathFigure(a*.612,y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ae=new go.PathFigure(a*.816,y,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var ee=new go.PathFigure(a*.055,.13*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var oe=new go.PathFigure(a*.055,.18*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ae=new go.PathFigure(a*1,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var ee=new go.PathFigure(a*.11,y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var oe=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*ie,ee=new go.PathFigure(b,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var oe=new go.PathFigure(a*.83,0,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ae=new go.PathFigure(a*.83,y*1,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ce=new go.PathFigure(a*.78,y*.05,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=y*.8,ee=new go.Geometry,oe=new go.PathFigure(E,0,!0);return ee.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),oe.add(new go.PathSegment(go.PathSegment.Line,E,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(ee.spot1=new go.Spot(0,0,b,b),ee.spot2=new go.Spot(1,.8,-b,-b)):(ee.spot1=go.Spot.TopLeft,ee.spot2=new go.Spot(1,.8)),ee}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var ee=new go.PathFigure(a*.28,y*.37,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ie,ee=new go.PathFigure(a*.62,y*.475,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var ee=new go.PathFigure(a*.4,y*0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var ee=new go.PathFigure(a*.5,y*0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var at={},We="5.0",te={},z=null,fe=!1,Pe=!1,ve=null,he=!1,pe=null,ie=null,de=0;de4?parseFloat(it):5};at.setHTML5Codebase=function(it,lt){ie=it,Ct(it,lt)},at.setJavaCodebase=at.setJavaCodebaseVersion=at.isCompiledInstalled=at.setPreCompiledScriptPath=at.setPreCompiledResourcePath=function(){},at.setHTML5CodebaseVersion=function(it,lt){var xt=parseFloat(it);if(xt!==NaN&&xt<5){console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead.");return}pe=it,Et(it,lt)},at.getHTML5CodebaseVersion=function(){return ne},at.getParameters=function(){return te},at.setFontsCSSURL=function(it){ee=it},at.setGiacJSURL=function(it){},at.setJNLPFile=function(it){ue=it},at.setJNLPBaseDir=function(it){},at.inject=function(){function it(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var lt="auto",xt=te.id,Jt,Vt=!1,xn=0;xn=5)return!0;var it=at.getAppletObject();return it&&typeof it.recalculateEnvironments=="function"?(it.recalculateEnvironments(),!0):!1},at.startAnimation=function(){var it=at.getAppletObject();return it&&typeof it.startAnimation=="function"?(it.startAnimation(),!0):!1},at.stopAnimation=function(){var it=at.getAppletObject();return it&&typeof it.stopAnimation=="function"?(it.stopAnimation(),!0):!1},at.getAppletObject=function(){var it=te.id!==void 0?te.id:"ggbApplet";return window[it]},at.resize=function(){};var Fe=function(it,lt,xt){var Jt=document.createElement("param");Jt.setAttribute("name",lt),Jt.setAttribute("value",xt),it.appendChild(Jt)},Me=function(it){return it&&it!=="false"},ut=function(it,lt,xt){ae(ne)<=4.2&&(xt=!0);var Jt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Jt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Vt=document.createElement("div");Vt.classList.add("appletParameters","notranslate");var xn=lt.width,He=lt.height;if(lt.disableAutoScale=lt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():lt.disableAutoScale,lt.width!==void 0)if(ae(ne)<=4.4)Me(lt.showToolBar)&&(lt.height-=7),Me(lt.showAlgebraInput)&&(lt.height-=37),lt.width<605&&Me(lt.showToolBar)&&(lt.width=605,xn=605);else{var un=100;(Me(lt.showToolBar)||Me(lt.showMenuBar))&&(lt.hasOwnProperty("customToolBar")&&(lt.customToolbar=lt.customToolBar),un=Me(lt.showMenuBar)?245:155),xn=5?(lt.appletOnLoad=function(fn){var hn=it.querySelector(".ggb_preview");hn&&hn.parentNode.removeChild(hn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ln),window.GGBT_wsf_view&&$(window).trigger("resize"),nr(fn)},Gt||Ln.appendChild(Je)):Vt.appendChild(Je),Ln.appendChild(Vt),Gt||it.appendChild(Ln),setTimeout(function(){at.resize()},1)}else{var Qe=document.createElement("div");Qe.className="applet_scaler",Qe.style.position="relative",Qe.style.display="block",Qe.appendChild(Vt),it.appendChild(Qe),lt.appletOnLoad=function(fn){at.resize(),nr(fn)}}function _t(fn,hn){hn&&typeof hn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(fn,hn.appletOnLoad):renderGGBElement(fn),nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",hn)}function Rt(fn,hn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:fn,params:hn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function($n){_t($n.article,$n.params)}),html5AppletsToProcess=null)},ae(ne)<5&&(fn.className+=" geogebraweb")):_t(fn,hn)}if(Jt){scriptLoadStarted=!0;for(var Yt=0;Yt0?(kn.remove(),Ln.attr("id","fullscreencontent").show(),jQuery(nr).append(Ln),window.dispatchEvent(new Event("resize"))):ut(kn,lt,!1),window.GGBT_wsf_view.launchFullScreen(nr)}else re=Jt,ut(it,lt,!1);if(!window.GGBT_wsf_view)for(He=0;Heit/4*3&&(kn=it/4*3),nr=kn/5.8,un.setAttribute("src",b),un.setAttribute("width",kn),un.setAttribute("height",nr);var Ln=(it-kn)/2,Gt=(lt-nr)/2;un.style.left=Ln+"px",un.style.top=Gt+"px",Vt.appendChild(un)}}return Vt.appendChild(He),Vt},nt=function(it){return it=it.toLowerCase(),it==="html5"||it==="screenshot"?it:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(it,lt){if(ne=it,lt){Ct(ne,!0);return}var xt=!fe;if(xt){var Jt=ae(ne);!isNaN(Jt)&&Jt<4.4&&(xt=!1)}var Vt,xn;window.location.protocol.substr(0,4)==="http"?Vt=window.location.protocol:Vt="http:";var He=ne.indexOf("//");He>0?xn=ne:He===0?xn=Vt+ne:xn="https://www.geogebra.org/apps/5.2.814.0/";for(var un in Ke)if(ne.slice(Ke[un].length*-1)===Ke[un]||ne.slice((Ke[un].length+1)*-1)===Ke[un]+"/"){Ct(xn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&xt&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(te.showToolBar)&&!Me(te.showMenuBar)&&!Me(te.showAlgebraInput)&&!Me(te.enableRightClick)&&(!te.appName||te.appName=="classic")?xn+="webSimple/":xn+="web3d/",Ct(xn,!1)},Ct=function(it,lt){if(it.requirejs){se=it;return}it.slice(-1)!=="/"&&(it+="/"),se=it,lt===null&&(lt=it.indexOf("http")===-1),me=lt,a="web.nocache.js",y=!1;var xt=se.split("/");xt.length>1&&(!lt&&xt[xt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ke.indexOf(xt[xt.length-2])>=0&&(a=xt[xt.length-2]+".nocache.js")),xt=it.split("/"),ne=xt[xt.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Jt=parseFloat(ne);Jt!==NaN&&Jt<5&&it.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Jt+" is deprecated. Using version latest instead."),Et("5.0",lt))},nn=function(it,lt){window.console&&window.console.log&&(!lt||typeof lt.showLogging=="undefined"||lt.showLogging&<.showLogging!=="false")&&console.log(it)};te.material_id!==void 0?_e(on):on();function on(){var it=We;pe!==null?it=pe:parseFloat(it)<5&&(it="5.0"),Et(it,!1),ie!==null&&Ct(ie,me),he=!0}return at},GGBAppletUtils=function(){"use strict";function at(){return window.GGBT_wsf_edit!==void 0}function We(he,pe){pe!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+pe+","+pe+")",he.style.webkitTransform="scale("+pe+","+pe+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function te(he,pe,ie,de,le,ue){var se=null;if(ue!=null&&ue!="")for(var me=he.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ue+" ")>-1){se=me;break}else me=me.parentNode;var re=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(se)re=se.offsetWidth,ne=Math.max(de?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=re):(re=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),he){var ee=he.getBoundingClientRect();ee.left>0&&ee.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(E=re-ee.width-ee.left,b=a<=480?10:30):(b=ee.left,E=a<=480?10:30),y=b+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return he&&((ie===void 0||!ie)&&pe>0&&pe+y1&&(ue=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))le=z(he,pe,ue,ie,he.scaleContainerClass);else return de;return ue&&(!he.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function Pe(he){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),de=he.getBoundingClientRect(),le=(pe-de.width)/2,ue=(ie-de.height)/2;ue<0&&(ue=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?he.style.left="40px":he.style.left=le+"px",he.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?he.style.top="40px":he.style.top=ue+"px",he.style.left=le+"px")}function ve(he,pe){var ie=he.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var de=fe(pe,he);at()&&ie.setAttribute("data-param-scale",de);for(var le=null,ue=0;ue=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(at){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(at){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(at){var We=c[at];return We==null?null:We},r=d,webModule.__errFn=e}function B(){function at(he){var pe=he.lastIndexOf(rb);pe==-1&&(pe=he.length);var ie=he.indexOf(sb);ie==-1&&(ie=he.length);var de=he.lastIndexOf(tb,Math.min(ie,pe));return de>=O?he.substring(O,de+P):W}function We(he){if(!he.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=he+vb,he=at(pe.src)}return he}function te(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function z(){for(var he=o.getElementsByTagName(_),pe=O;peO?he[he.length-P].href:W}function Pe(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var ve=te();return ve==W&&(ve=z()),ve==W&&(ve=fe()),ve==W&&Pe()&&(ve=at(o.location.href)),ve=We(ve),ve}function C(at){return at.match(/^\//)||at.match(/^[a-zA-Z]+:\/\//)?at:webModule.__moduleBase+at}function D(){var at=[],We=O,te=[],z=[];function fe(he){var pe=z[he](),ie=te[he];if(pe in ie)return pe;var de=[];for(var le in ie)de[ie[le]]=le;throw r&&r(he,de,pe),null}if(__gwt_isKnownPropertyValue=function(he,pe){return pe in te[he]},webModule.__getPropMap=function(){var he={};for(var pe in te)te.hasOwnProperty(pe)&&(he[pe]=fe(pe));return he},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Pe;try{Pe=Cb;var ve=Pe.indexOf(Db);ve!=-1&&(We=parseInt(Pe.substring(ve+P),$),Pe=Pe.substring(O,ve))}catch(he){}return webModule.__softPermutationId=We,C(Pe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(at,We,te){"use strict";te.d(We,{Ax:function(){return ve},Ds:function(){return he},KI:function(){return ie},SI:function(){return Pe},f1:function(){return fe}});var z=te(11320);function fe(de){let le=!0;if(de.length>0){for(let ue=0;ueee in x?ie(x,ee,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[ee]=oe,ne=(x,ee)=>{for(var oe in ee||(ee={}))se.call(ee,oe)&&re(x,oe,ee[oe]);if(ue)for(var oe of ue(ee))me.call(ee,oe)&&re(x,oe,ee[oe]);return x},a=(x,ee)=>de(x,le(ee)),y=(x,ee,oe)=>new Promise((ae,ce)=>{var Se=we=>{try{xe(oe.next(we))}catch(Fe){ce(Fe)}},_e=we=>{try{xe(oe.throw(we))}catch(Fe){ce(Fe)}},xe=we=>we.done?ae(we.value):Promise.resolve(we.value).then(Se,_e);xe((oe=oe.apply(x,ee)).next())});const E=({chunkSize:x=1024*1024*2,options:ee={},onCancel:oe,onComplete:ae,onError:ce,onProgress:Se,onBefore:_e,onBeginInitFile:xe,children:we,accept:Fe,className:Me,style:ut={},concurrency:Xe=4},mt)=>{let[Ae,De]=(0,z.useState)("ready");const[Be,nt]=(0,z.useState)(0),[Ke,Et]=(0,z.useState)(""),[Ct,nn]=(0,z.useState)(null),on=(0,z.useRef)(null),it=(0,z.useRef)((0,Pe.Z)()),lt=(0,z.useRef)(!1);(0,z.useImperativeHandle)(mt,()=>({cancel:Vt,file:Ct,uploadStatus:Ae}));const xt=()=>{const He=document.getElementById(it.current);He&&(He.value="")},Jt=He=>y(void 0,null,function*(){var un;if(Ae==="uploading")return;xe&&xe(He);const kn=He.size,nr=Math.ceil(kn/x);lt.current=!1,De("uploading"),nt(0),Et("");try{const Ln=yield(0,fe.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:He.name,chunkCount:nr},ee)});if(lt.current||(Ln==null?void 0:Ln.status)!==0)throw new Error;const{upload_id:Gt}=Ln;on.current=new AbortController;const Je=[];let Qe=0;for(let gt=0;gt(0,fe.ZP)("/api/attachments/multipart_upload",{method:"POST",body:fn,signal:on.current.signal},!0).then(hn=>{console.log(hn,444),Qe++;const $n=Math.round(Qe/nr*100);nt($n),Se&&Se(a(ne({},hn),{file:He,percent:$n}))}))}let _t=0,Rt=Xe;for(console.log(Je,"promises");_twt());if(gt.length>0){const wt=yield Promise.all(gt);_t+=Rt}}const Yt=yield(0,fe.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:He.name,chunkCount:nr,uploadId:Gt},ee)});Yt.object?(De("success"),xt(),ae&&ae(a(ne({},Yt),{file:He,percent:100}))):(De("error"),Et("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),xt(),ce&&ce(He.name))}catch(Ln){De("error"),Et("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),xt(),ce&&ce(He.name)}}),Vt=(0,z.useCallback)(()=>{lt.current=!0,on.current&&(on.current.abort(),oe&&oe())},[oe]),xn=He=>{var un,kn;const nr=(kn=(un=He==null?void 0:He.target)==null?void 0:un.files)==null?void 0:kn[0];if(nn(nr),Ae="ready",!!nr){if(_e){_e(nr)||Jt(nr),xt();return}Jt(nr)}};return z.createElement(z.Fragment,null,z.createElement("input",{type:"file",id:it.current,style:{display:"none"},onChange:xn,accept:Fe}),z.createElement("label",{className:he()(pe.upload,Me),htmlFor:it.current,style:ut},we))};var b=(0,z.forwardRef)(E)},63205:function(at,We,te){"use strict";te.d(We,{Z:function(){return se}});var z=te(67294),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Pe=te(94184),ve=te.n(Pe),he=te(57953),pe=te(15979),ie=te(33170),de=te(28706),le=(me,re,ne)=>new Promise((a,y)=>{var E=ee=>{try{x(ne.next(ee))}catch(oe){y(oe)}},b=ee=>{try{x(ne.throw(ee))}catch(oe){y(oe)}},x=ee=>ee.done?a(ee.value):Promise.resolve(ee.value).then(E,b);x((ne=ne.apply(me,re)).next())}),se=({data:me,className:re,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const ee=(0,z.useRef)(null),oe=(0,z.useRef)(null),ae=(0,z.useRef)(null),ce=(0,z.useRef)(null),[Se,_e]=(0,z.useState)(!1),[xe,we]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>{ae.current||(ae.current=document.createElement("style"),document.head.appendChild(ae.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&Fe()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[me==null?void 0:me.visible]);const Fe=()=>le(void 0,null,function*(){_e(!0),we("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ae=yield(0,de.ZJ)(me==null?void 0:me.src);ee.current.src="",ee.current.src=Ae,ee.current.onload=function(){mt()},_e(!1),we("")}),Me=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",y()},ut=Ae=>le(void 0,null,function*(){_e(!0),we("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:Ae.dataUrl}});De!=null&&De.id&&!x?(yield(0,ie.ZP)(`/api/attachments/${me.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify(Ae.state)}})).status===0&&E():De!=null&&De.id&&E(De),document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",_e(!1),we("")}),Xe=()=>{const Ae=document.querySelector('a[href="https://markerjs.com/"]');Ae&&Ae.parentNode&&(Ae.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Be=>{const nt=document.querySelector(Be.name);nt&&nt.setAttribute("title",Be.title)})},mt=()=>{oe.current=new pe.hP(ee.current),oe.current.targetRoot=ce.current,oe.current.addEventListener("render",ut),oe.current.addEventListener("beforeclose",Me),b&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),me!=null&&me.snapshotData&&oe.current.restoreState(me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Xe()},300)};return z.createElement(z.Fragment,null,(me==null?void 0:me.visible)&&z.createElement(he.Z,{spinning:Se,tip:xe,style:{position:"absolute"}},z.createElement("div",{ref:ce,className:ve()(fe.imageDimensions,re,ne?fe.fullWidth:""),style:a},z.createElement("img",{className:fe.img,ref:ee}))))}},36527:function(at,We,te){"use strict";var z=te(67294),fe=te(71230),Pe=te(15746),ve=te(36182),he=te(71577),pe=te(85725),ie=te(71736),de=te(84279),le=te(67294);const ue=(0,z.forwardRef)(({callback:se,showSaveButton:me,value:re=""},ne)=>{const a=(0,z.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],b=oe=>{a.current.setValue(a.current.getValue()+" "+oe.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(fe.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((oe,ae)=>le.createElement(Pe.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:`$$${oe.value}$$`}),oe.name),le.createElement("div",{className:ie.Z.children},oe.children.map((ce,Se)=>le.createElement("div",{key:Se},le.createElement("h1",null,ce.name),le.createElement(fe.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(Pe.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(fe.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((oe,ae)=>le.createElement(Pe.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),le.createElement("div",{className:ie.Z.children},oe.children.map((ce,Se)=>le.createElement("div",{key:Se},ce.name&&le.createElement("h1",null,ce.name),le.createElement(fe.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(Pe.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],ee=()=>{var oe=document.createElement("div");oe.innerHTML=a.current.getValue();var ae=oe.innerText;return se&&se(ae),ae};return(0,z.useImperativeHandle)(ne,()=>({getData:ee})),le.createElement("div",{className:ie.Z.mathWrap},le.createElement(ve.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},re||""),me&&le.createElement("div",{className:ie.Z.button},le.createElement(he.ZP,{size:"large",onClick:ee,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});We.Z=ue},7621:function(at,We,te){"use strict";te.d(We,{Z:function(){return ve}});var z=te(35973),fe={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},Pe=te(67294),ve=({message:he,className:pe,children:ie,style:de={}})=>Pe.createElement("div",{className:`custom-spinner ${fe.idsRingWrapper} ${pe}`},Pe.createElement("div",{className:fe.ldsRing},Pe.createElement("div",null),Pe.createElement("div",null),Pe.createElement("div",null),Pe.createElement("div",null)),he?Pe.createElement("p",{style:de},he):null,ie,Pe.createElement(z.Outlet,null))},60076:function(at,We,te){"use strict";te.d(We,{Z:function(){return ve}});var z=te(67294),fe=te(33054),Pe=te(67294),ve=({defaultX:he="40%",leftChild:pe,rightChild:ie,className:de,hideResize:le=!1})=>{const[ue,se]=(0,z.useState)(he),me=(0,z.useRef)();function re(){me.current=!0}(0,z.useEffect)(()=>{function y(b){me.current&&(fe.Z.publish("resize-move-bar",b),se(b.pageX))}function E(){me.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof ue=="number"&&ue!==.01?`${ue}px`:he,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return Pe.createElement("div",{className:`split-panel-container ${de}`},Pe.createElement("section",{style:{width:ne,display:ue===.01?"none":""}},pe),Pe.createElement("section",{className:"resize-x-bar",onMouseDown:re},Pe.createElement("a",{className:"btn-resize"},Pe.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},Pe.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),Pe.createElement("section",{style:{width:a}},ie))}},38658:function(at,We,te){"use strict";te.d(We,{Z:function(){return pe}});var z=te(67294),fe={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},Pe=te(94184),ve=te.n(Pe),pe=({className:ie,style:de={},leftNode:le,leftTitle:ue="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:me="\u8FD0\u884C\u7ED3\u679C"})=>z.createElement("div",{className:ve()(fe.result,ie),style:de},z.createElement("div",{className:fe.left},z.createElement("div",{className:fe.title},z.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),z.createElement("span",null,ue)),z.createElement("div",{className:fe.leftNode},le)),z.createElement("div",{className:fe.right},z.createElement("div",{className:fe.title},z.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),z.createElement("span",null,me)),z.createElement("div",{className:fe.rightNode},se)))},88508:function(at,We,te){"use strict";var z=te(67294);const fe=ve=>String(ve).length===1?`0${ve}`:ve,Pe=({className:ve="",onChange:he,defaultValue:pe=0})=>{const[ie,de]=(0,z.useState)(pe);(0,z.useEffect)(()=>{const me=setTimeout(()=>{de(ie+1e3)},1e3);return he(ie+1e3),()=>{clearInterval(me)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",ue=parseInt(ie%(60*6e4)/6e4)||"00",se=parseInt(ie%6e4/1e3)||"00";return z.createElement("div",{className:ve},fe(le),":",fe(ue),":",fe(se))};We.Z=Pe},6104:function(at,We,te){"use strict";te.d(We,{Z:function(){return y}});var z=te(67294),fe=te(2453),Pe=te(85418),ve=te(24577),he=te(67631),pe=te.n(he),ie=te(52262),de=te(74855),le=te(51959),ue={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},se=(E,b,x)=>new Promise((ee,oe)=>{var ae=_e=>{try{Se(x.next(_e))}catch(xe){oe(xe)}},ce=_e=>{try{Se(x.throw(_e))}catch(xe){oe(xe)}},Se=_e=>_e.done?ee(_e.value):Promise.resolve(_e.value).then(ae,ce);Se((x=x.apply(E,b)).next())});function me(E){if(isNaN(E))return{minutes:"00",seconds:"00"};const b=new Date(E*1e3).toISOString().substr(11,8);return{hour:b.substr(0,2),minutes:b.substr(3,2),seconds:b.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function re(E,b){return E-b}function ne(E){E.sort(re);let b=0;for(let x=0;x{},handlePlay:_e=()=>{},handlePlayEnded:xe=()=>{},autoPlay:we=!1,onPlayEnded:Fe=()=>{},isShowWaterMark:Me=!0},ut)=>{var Xe;const Ae=((Xe=b==null?void 0:b.split("."))==null?void 0:Xe.pop())==="flv",De=(0,z.useRef)(),Be=(0,z.useRef)(),nt=(0,z.useRef)(),Ke=(0,z.useRef)(),Et=(0,z.useRef)(),Ct=(0,z.useRef)(),nn=(0,z.useRef)(),on=(0,z.useRef)(),it=(0,z.useRef)(),lt=(0,z.useRef)(),xt=(0,z.useRef)(),Jt=(0,z.useRef)(),Vt=(0,z.useRef)(),xn=(0,z.useRef)(),He=navigator.userAgent.toLowerCase().match(a),un=He?He[0]:"pc",kn=(0,z.useRef)(!1),nr=(0,ie.eY)();let Ln=0,Gt=0,Je=0,Qe=null,_t=!1,Rt=20,Yt=1,gt=!1,wt=!1,Dt=[];(0,z.useImperativeHandle)(ut,()=>({getLastUpdatedTime:()=>De.current.currentTime,getDuration:()=>De.current.duration})),fe.ZP.config({maxCount:1,getContainer:()=>nt.current});const tt=(0,z.useCallback)((An,Zt=!1)=>{let yt={point:De.current.currentTime};Qe?(yt.log_id=Qe,yt.watch_duration=ne(Dt),yt.total_duration=Gt):(ae?(yt.video_id=parseInt(ee,10),yt.course_id=ae):yt.video_id=ee,yt.duration=Ln,yt.device=un),Zt&&(yt.ed="1");function Nn(){return se(this,null,function*(){gt=!0,Qe=yield oe==null?void 0:oe(yt),gt=!1,An&&An()})}Nn()},[ee,ae]);(0,z.useEffect)(()=>{De.current&&(Ke.current.style.display="none",Et.current.style.display="block"),fe.ZP.destroy();let An=null;return ve.Z.isSupported&&Ae&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?(An=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),De.current&&(An.attachMediaElement(De.current),An.load())):De.current.setAttribute("src",b),hn(),()=>{An&&(An.unload(),An.pause(),An.destroy(),An=null)}},[De,Ae,b]);function fn(){De.current.paused?(Ke.current.style.display="none",Et.current.style.display="block"):(Ke.current.style.display="block",Et.current.style.display="none")}function hn(){xt.current.style.display="none",Vt.current.style.display="none",Jt.current.style.display="none",De.current.muted||De.current.volume===0?xt.current.style.display="block":De.current.volume>0&&De.current.volume<=.5?Vt.current.style.display="block":Jt.current.style.display="block"}(0,z.useEffect)(()=>{const An=document.getElementById("play"),Zt=document.querySelectorAll(".playback-icons use");function yt(){_e(),ce&&!kn.current&&(De.current.currentTime=ce),kn.current=!0,Dt.push(De.current.currentTime),_t||(_t=!0,x&&tt())}function Nn(){return se(this,null,function*(){fn(),Dt.push(De.current.currentTime),x&&tt(()=>{Qe=null,Je=0,_t=!1,gt=!1,wt=!1,Dt=[],Gt=0,Yt=1},!0),Fe()})}function Xt(){Ct.current.value=Math.round(De.current.currentTime),nn.current.value=Math.round(De.current.currentTime)}function qn(){const yr=me(Math.round(De.current.currentTime));it.current.innerText=`${yr.hour>0?yr.hour+":":""}${yr.minutes}:${yr.seconds}`,it.current.setAttribute("datetime",`${yr.hour>0?" "+yr.hour+" ":""}${yr.minutes}m ${yr.seconds}s`)}function Br(){var yr,xo,Wo,Wi,$i,Ci,ei;const po=Math.round((yr=De.current)==null?void 0:yr.duration);(Wo=(xo=Ct.current)==null?void 0:xo.setAttribute)==null||Wo.call(xo,"max",po),($i=(Wi=nn.current)==null?void 0:Wi.setAttribute)==null||$i.call(Wi,"max",po);const co=me(po);on.current&&(on.current.innerText=`${co.hour>0?co.hour+":":""}${co.minutes}:${co.seconds}`,(ei=(Ci=on.current).setAttribute)==null||ei.call(Ci,"datetime",`${co.hour>0?" "+co.hour+" ":""}${co.minutes}m ${co.seconds}s`))}function or(){try{const yr=Math.round(De.current.duration);Ct.current.setAttribute("max",yr),nn.current.setAttribute("max",yr);const xo=me(yr);on.current.innerText=`${xo.hour>0?xo.hour+":":""}${xo.minutes}:${xo.seconds}`,on.current.setAttribute("datetime",`${xo.hour>0?" "+xo.hour+" ":""}${xo.minutes}m ${xo.seconds}s`),Xt(),qn();const{width:Wo,height:Wi,x:$i,y:Ci}=Be.current.getBoundingClientRect();if($i<0||Ci<0||!Wo)return;if(!wt){let ei=De.current.currentTime,po=ei-Je;Math.abs(po)<10?(Gt+=Math.abs(po),Je=ei,gt||Gt-Yt*Rt>=0&&(Yt++,Dt.push(Je),x&&tt())):(Je=ei,x&&tt())}}catch(yr){console.log(yr)}}function Gn(){wt=!0}function ir(){De.current.playing&&Dt.push(De.current.currentTime,Je),Je=De.current.currentTime,wt=!1}function So(){Ln=De.current.duration,Ln<=20&&(Rt=Ln/3),De.current.addEventListener("play",yt)}function On(yr){yr.preventDefault(),(0,le.vp)()?(De.current.style.width="100%",De.current.style.height="100%"):De.current.style.cssText=""}function qr(){Se()}function Yo(yr){if(!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const xo=yr.target.dataset.seek?yr.target.dataset.seek:yr.target.value;De.current.currentTime=xo,nn.current.value=xo,Ct.current.value=xo}function Zo(yr){const xo=Math.round(yr.offsetX/yr.target.clientWidth*parseInt(yr.target.getAttribute("max"),10));Ct.current.setAttribute("data-seek",xo);const Wo=me(xo);lt.current.textContent=`${Wo.hour>0?Wo.hour+":":""}${Wo.minutes}:${Wo.seconds}`;const Wi=De.current.getBoundingClientRect();lt.current.style.left=`${yr.pageX-Wi.left}px`}function qo(yr){switch(yr.code){case"Space":yr.preventDefault(),rt();break;case"ArrowRight":if(yr.preventDefault(),!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime>=De.current.duration)break;De.current.currentTime=parseInt(De.current.currentTime)+5,Xt();break;case"ArrowLeft":if(yr.preventDefault(),!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime===0)break;De.current.currentTime=parseInt(De.current.currentTime)-5,Xt();break;case"ArrowUp":yr.preventDefault(),De.current.volume<1&&(De.current.volume=(parseInt(De.current.volume*10)+1)/10);break;case"ArrowDown":yr.preventDefault(),De.current.volume>0&&(De.current.volume=(parseInt(De.current.volume*10)-1)/10);break}}return nt.current.addEventListener((0,le.gH)(),On),De.current.addEventListener("canplay",So),De.current.addEventListener("ended",Nn),De.current.addEventListener("seeking",Gn),De.current.addEventListener("seeked",ir),De.current.addEventListener("loadedmetadata",Br),Ct.current.addEventListener("mousemove",Zo),Ct.current.addEventListener("input",Yo),De.current.addEventListener("timeupdate",or),De.current.addEventListener("pause",qr),De.current.addEventListener("volumechange",hn),document.addEventListener("keydown",qo),()=>{var yr,xo,Wo,Wi,$i,Ci,ei,po,co,Ta,yn,ge;(yr=De.current)==null||yr.removeEventListener("canplay",So),(xo=De.current)==null||xo.removeEventListener("play",yt),(Wo=De.current)==null||Wo.removeEventListener("ended",Nn),(Wi=De.current)==null||Wi.removeEventListener("seeking",Gn),($i=De.current)==null||$i.removeEventListener("seeked",ir),(Ci=Ct.current)==null||Ci.removeEventListener("mousemove",Zo),(ei=Ct.current)==null||ei.removeEventListener("input",Yo),(po=De.current)==null||po.removeEventListener("timeupdate",or),(co=De.current)==null||co.removeEventListener("pause",qr),(Ta=De.current)==null||Ta.removeEventListener("loadedmetadata",Br),(yn=De.current)==null||yn.removeEventListener("volumechange",hn),document.removeEventListener("keydown",qo),(ge=De.current)!=null&&ge.playing&&(Dt.push(Je,De.current.currentTime),x&&tt())}},[De,b]),(0,z.useEffect)(()=>{if(De.current.onended=()=>{xe(De)},De.current.oncontextmenu=()=>!1,(b==null?void 0:b.indexOf(".m3u8"))>-1){if(De.current.canPlayType("application/vnd.apple.mpegurl"))De.current.src=b;else if(pe().isSupported()){var An=new(pe());An.loadSource(b),An.attachMedia(De.current)}}},[b]);const[$n,no]=(0,z.useState)(1),rt=()=>{De.current.paused||De.current.ended?De.current.play():De.current.pause(),fn()};function vt(){De.current.muted=!De.current.muted,De.current.muted?(xn.current.setAttribute("data-volume",volume.value),xn.current.value=0):xn.current.value=xn.current.dataset.volume}return z.createElement("div",{style:{position:"relative"},ref:nt},z.createElement("div",{ref:Be,className:`${ue.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ue.animate__loop}`},Me&&nr?nr.login:" "),z.createElement("div",{className:ue.container},z.createElement("div",{className:ue["video-container"],id:"video-container"},z.createElement("div",{className:ue["playback-animation"],id:"playback-animation"},z.createElement("svg",{className:ue["playback-icons"]},z.createElement("use",{className:"hidden",href:"#play-icon"}),z.createElement("use",{href:"#pause"}))),z.createElement("video",{className:ue.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:De,autoPlay:we}),z.createElement("div",{className:`${ue["video-controls"]} `,id:"video-controls"},z.createElement("div",{className:ue["bottom-controls"]},z.createElement("div",{className:ue["left-controls"]},z.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:rt},z.createElement("svg",{className:ue["playback-icons"]},z.createElement("use",{ref:Et,href:"#play-icon"}),z.createElement("use",{ref:Ke,style:{display:"none"},href:"#pause"}))),z.createElement("div",{className:ue.time},z.createElement("time",{id:"time-elapsed",ref:it},"00:00"),z.createElement("span",null," / "),z.createElement("time",{id:"duration",ref:on},"00:00"))),z.createElement("div",{className:ue["right-controls"]},E&&z.createElement(Pe.Z,{placement:"top",overlayClassName:ue.rateOverlay,getPopupContainer:An=>An.parentNode,menu:{items:[{key:"1",label:z.createElement("span",{onClick:()=>{no(1),De.current.playbackRate=1}},"1.0x")},{key:"2",label:z.createElement("span",{onClick:()=>{no(1.5),De.current.playbackRate=1.5}},"1.5x")},{key:"3",label:z.createElement("span",{onClick:()=>{no(2),De.current.playbackRate=2}},"2.0x")}]}},z.createElement("div",{className:`${ue.controlText} mr5`},"\u500D\u901F")),z.createElement(de.CopyToClipboard,{text:b,onCopy:()=>fe.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},z.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),z.createElement("div",{className:ue["volume-controls"]},z.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ue["volume-button"],id:"volume-button",onClick:vt},z.createElement("i",{ref:xt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Vt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Jt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),z.createElement("input",{className:ue.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:xn,style:{display:"none"},onClick:hn})),z.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ue["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(nt.current)}},z.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),z.createElement("div",{className:ue["video-progress"]},z.createElement("progress",{ref:nn,value:"0",min:"0"}),z.createElement("input",{className:ue.seek,ref:Ct,value:"0",min:"0",type:"range",step:"1"}),z.createElement("div",{className:ue["seek-tooltip"],ref:lt,id:"seek-tooltip"},"00:00"))))),z.createElement("svg",{style:{display:"none"}},z.createElement("defs",null,z.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},z.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),z.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},z.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),z.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},z.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),z.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},z.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),z.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},z.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),z.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},z.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),z.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},z.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),z.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},z.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},30676:function(at,We,te){"use strict";te.d(We,{Z:function(){return dr}});var z=te(67294),fe=te.t(z,2),Pe=te(33054),ve=te(43481),he=te(94184),pe=te.n(he),ie=te(87462),de=te(1413),le=te(4942),ue=te(97685),se=te(71002),me=te(45987),re=/margin|padding|width|height|max|min|offset/,ne={left:!0,top:!0},a={cssFloat:1,styleFloat:1,float:1};function y(ze){return ze.nodeType===1?ze.ownerDocument.defaultView.getComputedStyle(ze,null):{}}function E(ze,ke,qe){if(ke=ke.toLowerCase(),qe==="auto"){if(ke==="height")return ze.offsetHeight;if(ke==="width")return ze.offsetWidth}return ke in ne||(ne[ke]=re.test(ke)),ne[ke]?parseFloat(qe)||0:qe}function b(ze,ke){var qe=arguments.length,bt=y(ze);return ke=a[ke]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ke,qe===1?bt:E(ze,ke,bt[ke]||ze.style[ke])}function x(ze,ke,qe){var bt=arguments.length;if(ke=a[ke]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ke,bt===3)return typeof qe=="number"&&re.test(ke)&&(qe="".concat(qe,"px")),ze.style[ke]=qe,qe;for(var kt in ke)ke.hasOwnProperty(kt)&&x(ze,kt,ke[kt]);return y(ze)}function ee(ze){return ze===document.body?document.documentElement.clientWidth:ze.offsetWidth}function oe(ze){return ze===document.body?window.innerHeight||document.documentElement.clientHeight:ze.offsetHeight}function ae(){var ze=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ke=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ze,height:ke}}function ce(){var ze=document.documentElement.clientWidth,ke=window.innerHeight||document.documentElement.clientHeight;return{width:ze,height:ke}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _e(ze){var ke=ze.getBoundingClientRect(),qe=document.documentElement;return{left:ke.left+(window.pageXOffset||qe.scrollLeft)-(qe.clientLeft||document.body.clientLeft||0),top:ke.top+(window.pageYOffset||qe.scrollTop)-(qe.clientTop||document.body.clientTop||0)}}function xe(ze){var ke=z.useRef();ke.current=ze;var qe=z.useCallback(function(){for(var bt,kt=arguments.length,Ut=new Array(kt),cn=0;cn=He.F1&&qe<=He.F12)return!1;switch(qe){case He.ALT:case He.CAPS_LOCK:case He.CONTEXT_MENU:case He.CTRL:case He.DOWN:case He.END:case He.ESC:case He.HOME:case He.INSERT:case He.LEFT:case He.MAC_FF_META:case He.META:case He.NUMLOCK:case He.NUM_CENTER:case He.PAGE_DOWN:case He.PAGE_UP:case He.PAUSE:case He.PRINT_SCREEN:case He.RIGHT:case He.SHIFT:case He.UP:case He.WIN_KEY:case He.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=He.ZERO&&ke<=He.NINE||ke>=He.NUM_ZERO&&ke<=He.NUM_MULTIPLY||ke>=He.A&&ke<=He.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case He.SPACE:case He.QUESTION_MARK:case He.NUM_PLUS:case He.NUM_MINUS:case He.NUM_PERIOD:case He.NUM_DIVISION:case He.SEMICOLON:case He.DASH:case He.EQUALS:case He.COMMA:case He.PERIOD:case He.SLASH:case He.APOSTROPHE:case He.SINGLE_QUOTE:case He.OPEN_SQUARE_BRACKET:case He.BACKSLASH:case He.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},un=He,kn=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,nr=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ln="".concat(kn," ").concat(nr).split(/[\s\n]+/),Gt="aria-",Je="data-";function Qe(ze,ke){return ze.indexOf(ke)===0}function _t(ze){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe;ke===!1?qe={aria:!0,data:!0,attr:!0}:ke===!0?qe={aria:!0}:qe=(0,de.Z)({},ke);var bt={};return Object.keys(ze).forEach(function(kt){(qe.aria&&(kt==="role"||Qe(kt,Gt))||qe.data&&Qe(kt,Je)||qe.attr&&Ln.includes(kt))&&(bt[kt]=ze[kt])}),bt}function Rt(ze,ke,qe){var bt=ke;return!bt&&qe&&(bt="".concat(ze,"-").concat(qe)),bt}function Yt(ze,ke){var qe=ze["page".concat(ke?"Y":"X","Offset")],bt="scroll".concat(ke?"Top":"Left");if(typeof qe!="number"){var kt=ze.document;qe=kt.documentElement[bt],typeof qe!="number"&&(qe=kt.body[bt])}return qe}function gt(ze){var ke=ze.getBoundingClientRect(),qe={left:ke.left,top:ke.top},bt=ze.ownerDocument,kt=bt.defaultView||bt.parentWindow;return qe.left+=Yt(kt),qe.top+=Yt(kt,!0),qe}var wt=te(62874),Dt=te(59864);function tt(ze,ke,qe){var bt=z.useRef({});return(!("value"in bt.current)||qe(bt.current.condition,ke))&&(bt.current.value=ze(),bt.current.condition=ke),bt.current.value}function fn(ze,ke){typeof ze=="function"?ze(ke):(0,se.Z)(ze)==="object"&&ze&&"current"in ze&&(ze.current=ke)}function hn(){for(var ze=arguments.length,ke=new Array(ze),qe=0;qe=On.F1&&qe<=On.F12)return!1;switch(qe){case On.ALT:case On.CAPS_LOCK:case On.CONTEXT_MENU:case On.CTRL:case On.DOWN:case On.END:case On.ESC:case On.HOME:case On.INSERT:case On.LEFT:case On.MAC_FF_META:case On.META:case On.NUMLOCK:case On.NUM_CENTER:case On.PAGE_DOWN:case On.PAGE_UP:case On.PAUSE:case On.PRINT_SCREEN:case On.RIGHT:case On.SHIFT:case On.UP:case On.WIN_KEY:case On.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=On.ZERO&&ke<=On.NINE||ke>=On.NUM_ZERO&&ke<=On.NUM_MULTIPLY||ke>=On.A&&ke<=On.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case On.SPACE:case On.QUESTION_MARK:case On.NUM_PLUS:case On.NUM_MINUS:case On.NUM_PERIOD:case On.NUM_DIVISION:case On.SEMICOLON:case On.DASH:case On.EQUALS:case On.COMMA:case On.PERIOD:case On.SLASH:case On.APOSTROPHE:case On.SINGLE_QUOTE:case On.OPEN_SQUARE_BRACKET:case On.BACKSLASH:case On.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qr=On,Yo={},Zo=[],qo=function(ke){Zo.push(ke)};function yr(ze,ke){if(0)var qe}function xo(ze,ke){if(0)var qe}function Wo(){Yo={}}function Wi(ze,ke,qe){!ke&&!Yo[qe]&&(ze(!1,qe),Yo[qe]=!0)}function $i(ze,ke){Wi(yr,ze,ke)}function Ci(ze,ke){Wi(xo,ze,ke)}$i.preMessage=qo,$i.resetWarned=Wo,$i.noteOnce=Ci;var ei=$i;function po(ze,ke,qe,bt){var kt=ke+qe,Ut=(qe-bt)/2;if(qe>bt){if(ke>0)return(0,le.Z)({},ze,Ut);if(ke<0&&ktbt)return(0,le.Z)({},ze,ke<0?Ut:-Ut);return{}}function co(ze,ke,qe,bt){var kt=ce(),Ut=kt.width,cn=kt.height,an=null;return ze<=Ut&&ke<=cn?an={x:0,y:0}:(ze>Ut||ke>cn)&&(an=(0,de.Z)((0,de.Z)({},po("x",qe,ze,Ut)),po("y",bt,ke,cn))),an}function Ta(ze,ke){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=new Set;function kt(Ut,cn){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,mn=bt.has(Ut);if(ei(!mn,"Warning: There may be circular references"),mn)return!1;if(Ut===cn)return!0;if(qe&&an>1)return!1;bt.add(Ut);var vn=an+1;if(Array.isArray(Ut)){if(!Array.isArray(cn)||Ut.length!==cn.length)return!1;for(var Zn=0;Zn1&&arguments[1]!==void 0?arguments[1]:1;be+=1;var bt=be;function kt(Ut){if(Ut===0)Ne(bt),ke();else{var cn=ge(function(){kt(Ut-1)});Le.set(bt,cn)}}return kt(qe),bt};et.cancel=function(ze){var ke=Le.get(ze);return Ne(ke),ye(ke)};var ct=et,_n={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function rn(ze,ke,qe,bt){var kt=(0,z.useRef)(null),Ut=(0,z.useRef)([]),cn=(0,z.useState)(_n),an=(0,ue.Z)(cn,2),mn=an[0],vn=an[1],Zn=function(Cr){vn(_n),bt&&!yn(_n,mn)&&bt({transform:_n,action:Cr})},Hn=function(Cr,Or){kt.current===null&&(Ut.current=[],kt.current=ct(function(){vn(function(so){var Co=so;return Ut.current.forEach(function(kr){Co=(0,de.Z)((0,de.Z)({},Co),kr)}),kt.current=null,bt==null||bt({transform:Co,action:Or}),Co})})),Ut.current.push((0,de.Z)((0,de.Z)({},mn),Cr))},gr=function(Cr,Or,so,Co){var kr=ze.current,To=kr.width,mo=kr.height,Oo=kr.offsetWidth,ki=kr.offsetHeight,ma=kr.offsetLeft,vi=kr.offsetTop,ia=Cr,ai=mn.scale*Cr;ai>qe?(ia=qe/mn.scale,ai=qe):ai1,bi=Ii&&kr>=1,Za=rn(mr,ma,ia,da),Ai=Za.transform,Bi=Za.resetTransform,pa=Za.updateTransform,ds=Za.dispatchZoomChange,Fs=(0,z.useState)(!0),bs=(0,ue.Z)(Fs,2),Ws=bs[0],hs=bs[1],qa=Ai.rotate,os=Ai.scale,Ps=Ai.x,Es=Ai.y,sl=pe()((0,le.Z)({},"".concat(qe,"-moving"),ji));(0,z.useEffect)(function(){Ws||hs(!0)},[Ws]);var rl=function(){Bi("close")},Gs=function(){ds(_r+Oo,"zoomIn")},ks=function(){ds(_r/(_r+Oo),"zoomOut")},ul=function(){pa({rotate:qa+90},"rotateRight")},Ks=function(){pa({rotate:qa-90},"rotateLeft")},js=function(){pa({flipX:!Ai.flipX},"flipX")},Ms=function(){pa({flipY:!Ai.flipY},"flipY")},Vs=function(Pn){Pn==null||Pn.preventDefault(),Pn==null||Pn.stopPropagation(),so>0&&(hs(!1),Bi("prev"),Fo==null||Fo(so-1,so))},qs=function(Pn){Pn==null||Pn.preventDefault(),Pn==null||Pn.stopPropagation(),so0&&(Qn=_r/Qn),ds(Qn,"wheel",Pn.clientX,Pn.clientY)}},Bt=function(Pn){!vn||!_i||(Pn.keyCode===qr.LEFT?Vs():Pn.keyCode===qr.RIGHT&&qs())},sn=function(Pn){vn&&(os!==1?pa({x:0,y:0,scale:1},"doubleClick"):ds(_r+Oo,"doubleClick",Pn.clientX,Pn.clientY))};(0,z.useEffect)(function(){var Dn,Pn,Jn,jr;if(an){Jn=So(window,"mouseup",Ie,!1),jr=So(window,"mousemove",Ye,!1);try{window.top!==window.self&&(Dn=So(window.top,"mouseup",Ie,!1),Pn=So(window.top,"mousemove",Ye,!1))}catch(Qn){yr(!1,"[rc-image] ".concat(Qn))}}return function(){var Qn,zr,fr,eo;(Qn=Jn)===null||Qn===void 0||Qn.remove(),(zr=jr)===null||zr===void 0||zr.remove(),(fr=Dn)===null||fr===void 0||fr.remove(),(eo=Pn)===null||eo===void 0||eo.remove()}},[vn,ji,Ps,Es,qa,an]),(0,z.useEffect)(function(){var Dn=So(window,"keydown",Bt,!1);return function(){Dn.remove()}},[vn,_i,so]);var dn=z.createElement(Tn,(0,ie.Z)({},Ga,{width:ke.width,height:ke.height,imgRef:mr,className:"".concat(qe,"-img"),alt:kt,style:{transform:"translate3d(".concat(Ai.x,"px, ").concat(Ai.y,"px, 0) scale3d(").concat(Ai.flipX?"-":"").concat(os,", ").concat(Ai.flipY?"-":"").concat(os,", 1) rotate(").concat(qa,"deg)"),transitionDuration:!Ws&&"0s"},fallback:Ut,src:bt,onWheel:pt,onMouseDown:Ve,onDoubleClick:sn}));return z.createElement(z.Fragment,null,z.createElement(Gn,(0,ie.Z)({transitionName:Ea,maskTransitionName:aa,closable:!1,keyboard:!0,prefixCls:qe,onClose:mn,visible:vn,wrapClassName:sl,rootClassName:gr,getContainer:Cr},ni,{afterClose:rl}),z.createElement("div",{className:"".concat(qe,"-img-wrapper")},Xi?Xi(dn,(0,de.Z)({transform:Ai},Ii?{current:so}:{})):dn)),z.createElement(pr,{visible:vn,transform:Ai,maskTransitionName:aa,closeIcon:Fr,getContainer:Cr,prefixCls:qe,rootClassName:gr,icons:Hn,countRender:To,showSwitch:_i,showProgress:bi,current:so,count:kr,scale:os,minScale:ma,maxScale:ia,toolbarRender:xa,onSwitchLeft:Vs,onSwitchRight:qs,onZoomIn:Gs,onZoomOut:ks,onRotateRight:ul,onRotateLeft:Ks,onFlipX:js,onFlipY:Ms,onClose:mn}))},sr=Un,Zr=te(74902);function xr(ze){var ke=z.useState({}),qe=(0,ue.Z)(ke,2),bt=qe[0],kt=qe[1],Ut=z.useCallback(function(an,mn){return kt(function(vn){return(0,de.Z)((0,de.Z)({},vn),{},(0,le.Z)({},an,mn))}),function(){kt(function(vn){var Zn=(0,de.Z)({},vn);return delete Zn[an],Zn})}},[]),cn=z.useMemo(function(){return ze?ze.map(function(an){if(typeof an=="string")return{data:{src:an}};var mn={};return Object.keys(an).forEach(function(vn){["src"].concat((0,Zr.Z)(Be)).includes(vn)&&(mn[vn]=an[vn])}),{data:mn}}):Object.keys(bt).reduce(function(an,mn){var vn=bt[mn],Zn=vn.canPreview,Hn=vn.data;return Zn&&an.push({data:Hn,id:mn}),an},[])},[ze,bt]);return[cn,Ut]}var Gi=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xo=["src"],br=function(ke){var qe,bt=ke.previewPrefixCls,kt=bt===void 0?"rc-image-preview":bt,Ut=ke.children,cn=ke.icons,an=cn===void 0?{}:cn,mn=ke.items,vn=ke.preview,Zn=ke.fallback,Hn=(0,se.Z)(vn)==="object"?vn:{},gr=Hn.visible,Fr=Hn.onVisibleChange,Cr=Hn.getContainer,Or=Hn.current,so=Hn.movable,Co=Hn.minScale,kr=Hn.maxScale,To=Hn.countRender,mo=Hn.closeIcon,Oo=Hn.onChange,ki=Hn.onTransform,ma=Hn.toolbarRender,vi=Hn.imageRender,ia=(0,me.Z)(Hn,Gi),ai=xr(mn),Ea=(0,ue.Z)(ai,2),Ki=Ea[0],aa=Ea[1],Xi=De(0,{value:Or}),Ga=(0,ue.Z)(Xi,2),xa=Ga[0],da=Ga[1],Fo=(0,z.useState)(!1),ni=(0,ue.Z)(Fo,2),mr=ni[0],Ca=ni[1],Xa=((qe=Ki[xa])===null||qe===void 0?void 0:qe.data)||{},Oi=Xa.src,ji=(0,me.Z)(Xa,Xo),wa=De(!!gr,{value:gr,onChange:function(qa,os){Fr==null||Fr(qa,os,xa)}}),Ii=(0,ue.Z)(wa,2),_i=Ii[0],bi=Ii[1],Za=(0,z.useState)(null),Ai=(0,ue.Z)(Za,2),Bi=Ai[0],pa=Ai[1],ds=z.useCallback(function(hs,qa,os){var Ps=Ki.findIndex(function(Es){return Es.id===hs});bi(!0),pa({x:qa,y:os}),da(Ps<0?0:Ps),Ca(!0)},[Ki]);z.useEffect(function(){_i?mr||da(0):Ca(!1)},[_i]);var Fs=function(qa,os){da(qa),Oo==null||Oo(qa,os)},bs=function(){bi(!1),pa(null)},Ws=z.useMemo(function(){return{register:aa,onPreview:ds}},[aa,ds]);return z.createElement(nt.Provider,{value:Ws},Ut,z.createElement(sr,(0,ie.Z)({"aria-hidden":!_i,movable:so,visible:_i,prefixCls:kt,closeIcon:mo,onClose:bs,mousePosition:Bi,imgCommonProps:ji,src:Oi,fallback:Zn,icons:an,minScale:Co,maxScale:kr,getContainer:Cr,current:xa,count:Ki.length,countRender:To,onTransform:ki,toolbarRender:ma,imageRender:vi,onChange:Fs},ia)))},_o=br,wi=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ti=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],hi=function(ke){var qe=ke.src,bt=ke.alt,kt=ke.onPreviewClose,Ut=ke.prefixCls,cn=Ut===void 0?"rc-image":Ut,an=ke.previewPrefixCls,mn=an===void 0?"".concat(cn,"-preview"):an,vn=ke.placeholder,Zn=ke.fallback,Hn=ke.width,gr=ke.height,Fr=ke.style,Cr=ke.preview,Or=Cr===void 0?!0:Cr,so=ke.className,Co=ke.onClick,kr=ke.onError,To=ke.wrapperClassName,mo=ke.wrapperStyle,Oo=ke.rootClassName,ki=(0,me.Z)(ke,wi),ma=vn&&vn!==!0,vi=(0,se.Z)(Or)==="object"?Or:{},ia=vi.src,ai=vi.visible,Ea=ai===void 0?void 0:ai,Ki=vi.onVisibleChange,aa=Ki===void 0?kt:Ki,Xi=vi.getContainer,Ga=Xi===void 0?void 0:Xi,xa=vi.mask,da=vi.maskClassName,Fo=vi.movable,ni=vi.icons,mr=vi.scaleStep,Ca=vi.minScale,Xa=vi.maxScale,Oi=vi.imageRender,ji=vi.toolbarRender,wa=(0,me.Z)(vi,ti),Ii=ia!=null?ia:qe,_i=De(!!Ea,{value:Ea,onChange:aa}),bi=(0,ue.Z)(_i,2),Za=bi[0],Ai=bi[1],Bi=nn({src:qe,isCustomPlaceholder:ma,fallback:Zn}),pa=(0,ue.Z)(Bi,3),ds=pa[0],Fs=pa[1],bs=pa[2],Ws=(0,z.useState)(null),hs=(0,ue.Z)(Ws,2),qa=hs[0],os=hs[1],Ps=(0,z.useContext)(nt),Es=!!Or,sl=function(){Ai(!1),os(null)},rl=pe()(cn,To,Oo,(0,le.Z)({},"".concat(cn,"-error"),bs==="error")),Gs=(0,z.useMemo)(function(){var js={};return Be.forEach(function(Ms){ke[Ms]!==void 0&&(js[Ms]=ke[Ms])}),js},Be.map(function(js){return ke[js]})),ks=(0,z.useMemo)(function(){return(0,de.Z)((0,de.Z)({},Gs),{},{src:Ii})},[Ii,Gs]),ul=Et(Es,ks),Ks=function(Ms){var Vs=_e(Ms.target),qs=Vs.left,Ie=Vs.top;Ps?Ps.onPreview(ul,qs,Ie):(os({x:qs,y:Ie}),Ai(!0)),Co==null||Co(Ms)};return z.createElement(z.Fragment,null,z.createElement("div",(0,ie.Z)({},ki,{className:rl,onClick:Es?Ks:Co,style:(0,de.Z)({width:Hn,height:gr},mo)}),z.createElement("img",(0,ie.Z)({},Gs,{className:pe()("".concat(cn,"-img"),(0,le.Z)({},"".concat(cn,"-img-placeholder"),vn===!0),so),style:(0,de.Z)({height:gr},Fr),ref:ds},Fs,{width:Hn,height:gr,onError:kr})),bs==="loading"&&z.createElement("div",{"aria-hidden":"true",className:"".concat(cn,"-placeholder")},vn),xa&&Es&&z.createElement("div",{className:pe()("".concat(cn,"-mask"),da),style:{display:(Fr==null?void 0:Fr.display)==="none"?"none":void 0}},xa)),!Ps&&Es&&z.createElement(sr,(0,ie.Z)({"aria-hidden":!Za,visible:Za,prefixCls:mn,onClose:sl,mousePosition:qa,src:Ii,alt:bt,fallback:Zn,getContainer:Ga,icons:ni,movable:Fo,scaleStep:mr,minScale:Ca,maxScale:Xa,rootClassName:Oo,imageRender:Oi,imgCommonProps:Gs,toolbarRender:ji},wa)))};hi.PreviewGroup=_o,hi.displayName="Image";var pn=hi,Ya=pn,Ti=te(33603),Bo=te(53124),Aa=te(24457),Bn=te(85846),Sr=te(55007),Kr=te(79269),lr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},ci=lr,Li=te(44327),ra=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:ci}))},Oa=z.forwardRef(ra),$a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},ft=$a,dt=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:ft}))},zt=z.forwardRef(dt),qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Mn=qt,Nr=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:Mn}))},Tr=z.forwardRef(Nr),Wr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},uo=Wr,Mo=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:uo}))},Qo=z.forwardRef(Mo),mi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Fi=mi,oa=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:Fi}))},vo=z.forwardRef(oa),yi=te(84780),Mi=te(71194),pi=te(14747),Pa=te(50438),St=te(16932),Lt=te(67968),jt=te(45503);const $e=ze=>({position:ze||"absolute",inset:0}),Wt=ze=>{const{iconCls:ke,motionDurationSlow:qe,paddingXXS:bt,marginXXS:kt,prefixCls:Ut,colorTextLightSolid:cn}=ze;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:cn,background:new yi.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${qe}`,[`.${Ut}-mask-info`]:Object.assign(Object.assign({},pi.vS),{padding:`0 ${bt}px`,[ke]:{marginInlineEnd:kt,svg:{verticalAlign:"baseline"}}})}},bn=ze=>{const{previewCls:ke,modalMaskBg:qe,paddingSM:bt,marginXL:kt,margin:Ut,paddingLG:cn,previewOperationColorDisabled:an,previewOperationHoverColor:mn,motionDurationSlow:vn,iconCls:Zn,colorTextLightSolid:Hn}=ze,gr=new yi.C(qe).setAlpha(.1),Fr=gr.clone().setAlpha(.2);return{[`${ke}-footer`]:{position:"fixed",bottom:kt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:ze.previewOperationColor},[`${ke}-progress`]:{marginBottom:Ut},[`${ke}-close`]:{position:"fixed",top:kt,right:{_skip_check_:!0,value:kt},display:"flex",color:Hn,backgroundColor:gr.toRgbString(),borderRadius:"50%",padding:bt,outline:0,border:0,cursor:"pointer",transition:`all ${vn}`,"&:hover":{backgroundColor:Fr.toRgbString()},[`& > ${Zn}`]:{fontSize:ze.previewOperationSize}},[`${ke}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${cn}px`,backgroundColor:gr.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:bt,padding:bt,cursor:"pointer",transition:`all ${vn}`,userSelect:"none",[`&:not(${ke}-operations-operation-disabled):hover > ${Zn}`]:{color:mn},"&-disabled":{color:an,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Zn}`]:{fontSize:ze.previewOperationSize}}}}},Rn=ze=>{const{modalMaskBg:ke,iconCls:qe,previewOperationColorDisabled:bt,previewCls:kt,zIndexPopup:Ut,motionDurationSlow:cn}=ze,an=new yi.C(ke).setAlpha(.1),mn=an.clone().setAlpha(.2);return{[`${kt}-switch-left, ${kt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ut+1,display:"flex",alignItems:"center",justifyContent:"center",width:ze.imagePreviewSwitchSize,height:ze.imagePreviewSwitchSize,marginTop:-ze.imagePreviewSwitchSize/2,color:ze.previewOperationColor,background:an.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${cn}`,userSelect:"none","&:hover":{background:mn.toRgbString()},"&-disabled":{"&, &:hover":{color:bt,background:"transparent",cursor:"not-allowed",[`> ${qe}`]:{cursor:"not-allowed"}}},[`> ${qe}`]:{fontSize:ze.previewOperationSize}},[`${kt}-switch-left`]:{insetInlineStart:ze.marginSM},[`${kt}-switch-right`]:{insetInlineEnd:ze.marginSM}}},Nt=ze=>{const{motionEaseOut:ke,previewCls:qe,motionDurationSlow:bt,componentCls:kt}=ze;return[{[`${kt}-preview-root`]:{[qe]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${qe}-body`]:Object.assign(Object.assign({},$e()),{overflow:"hidden"}),[`${qe}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${bt} ${ke} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},$e()),{transition:`transform ${bt} ${ke} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${qe}-moving`]:{[`${qe}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${kt}-preview-root`]:{[`${qe}-wrap`]:{zIndex:ze.zIndexPopup}}},{[`${kt}-preview-operations-wrapper`]:{position:"fixed",zIndex:ze.zIndexPopup+1},"&":[bn(ze),Rn(ze)]}]},$t=ze=>{const{componentCls:ke}=ze;return{[ke]:{position:"relative",display:"inline-block",[`${ke}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ke}-img-placeholder`]:{backgroundColor:ze.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ke}-mask`]:Object.assign({},Wt(ze)),[`${ke}-mask:hover`]:{opacity:1},[`${ke}-placeholder`]:Object.assign({},$e())}}},It=ze=>{const{previewCls:ke}=ze;return{[`${ke}-root`]:(0,Pa._y)(ze,"zoom"),"&":(0,St.J$)(ze,!0)}};var Ft=(0,Lt.Z)("Image",ze=>{const ke=`${ze.componentCls}-preview`,qe=(0,jt.TS)(ze,{previewCls:ke,modalMaskBg:new yi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:ze.controlHeightLG});return[$t(qe),Nt(qe),(0,Mi.QA)((0,jt.TS)(qe,{componentCls:ke})),It(qe)]},ze=>({zIndexPopup:ze.zIndexPopupBase+80,previewOperationColor:new yi.C(ze.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new yi.C(ze.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new yi.C(ze.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:ze.fontSizeIcon*1.5})),Tt=function(ze,ke){var qe={};for(var bt in ze)Object.prototype.hasOwnProperty.call(ze,bt)&&ke.indexOf(bt)<0&&(qe[bt]=ze[bt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,bt=Object.getOwnPropertySymbols(ze);kt{var{previewPrefixCls:ke,preview:qe}=ze,bt=Tt(ze,["previewPrefixCls","preview"]);const{getPrefixCls:kt}=z.useContext(Bo.E_),Ut=kt("image",ke),cn=`${Ut}-preview`,an=kt(),[mn,vn]=Ft(Ut),Zn=z.useMemo(()=>{var Hn;if(qe===!1)return qe;const gr=typeof qe=="object"?qe:{},Fr=pe()(vn,(Hn=gr.rootClassName)!==null&&Hn!==void 0?Hn:"");return Object.assign(Object.assign({},gr),{transitionName:(0,Ti.m)(an,"zoom",gr.transitionName),maskTransitionName:(0,Ti.m)(an,"fade",gr.maskTransitionName),rootClassName:Fr})},[qe]);return mn(z.createElement(Ya.PreviewGroup,Object.assign({preview:Zn,previewPrefixCls:cn,icons:Ht},bt)))},tr=function(ze,ke){var qe={};for(var bt in ze)Object.prototype.hasOwnProperty.call(ze,bt)&&ke.indexOf(bt)<0&&(qe[bt]=ze[bt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,bt=Object.getOwnPropertySymbols(ze);kt{const{prefixCls:ke,preview:qe,className:bt,rootClassName:kt,style:Ut}=ze,cn=tr(ze,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:an,locale:mn=Aa.Z,getPopupContainer:vn,image:Zn}=z.useContext(Bo.E_),Hn=an("image",ke),gr=an(),Fr=mn.Image||Aa.Z.Image,[Cr,Or]=Ft(Hn),so=pe()(kt,Or),Co=pe()(bt,Or,Zn==null?void 0:Zn.className),kr=z.useMemo(()=>{if(qe===!1)return qe;const mo=typeof qe=="object"?qe:{},{getContainer:Oo}=mo,ki=tr(mo,["getContainer"]);return Object.assign(Object.assign({mask:z.createElement("div",{className:`${Hn}-mask-info`},z.createElement(ve.Z,null),Fr==null?void 0:Fr.preview),icons:Ht},ki),{getContainer:Oo||vn,transitionName:(0,Ti.m)(gr,"zoom",mo.transitionName),maskTransitionName:(0,Ti.m)(gr,"fade",mo.maskTransitionName)})},[qe,Fr]),To=Object.assign(Object.assign({},Zn==null?void 0:Zn.style),Ut);return Cr(z.createElement(Ya,Object.assign({prefixCls:Hn,preview:kr,rootClassName:so,className:Co,style:To},cn)))};Pr.PreviewGroup=jn;var Cn=Pr,dr=()=>{const[ze,ke]=(0,z.useState)(""),[qe,bt]=(0,z.useState)(0);let[kt,Ut]=(0,z.useState)(),[cn,an]=(0,z.useState)();const[mn,vn]=(0,z.useState)(!1),Zn=(0,z.useRef)("");(0,z.useEffect)(()=>Pe.Z.subscribe("preview-image",Oo=>{ke(Oo),console.log(kr.current),document.body.style.overflow="hidden"}),[]),(0,z.useEffect)(()=>(document.addEventListener("keydown",Hn),()=>{document.removeEventListener("keydown",Hn)}),[]),(0,z.useEffect)(()=>{Zn.current=ze},[ze]);function Hn(mo){mo.keyCode==27&&Zn.current&&gr()}function gr(){document.body.style.overflow="auto",Ut(void 0),an(void 0),bt(0),ke("")}function Fr(){bt(qe+90)}function Cr(){kt=kr.current.width*1.1,cn=kr.current.height*1.1,an(cn),Ut(kt)}function Or(){kt=kr.current.width/1.1,cn=kr.current.height/1.1,an(cn),Ut(kt)}const so=(0,z.useRef)(),Co=(0,z.useRef)(),kr=(0,z.useRef)(),To=mo=>{(mo.nativeEvent.target===so.current||mo.nativeEvent.target===Co.current)&&gr()};return z.createElement(z.Fragment,null,ze?z.createElement("div",null,z.createElement("div",{className:"preview-wrp-group",ref:Co},z.createElement(Cn,{className:"image-preview",src:ze,style:{display:"none"},preview:{visible:!0,src:ze,movable:!1,onVisibleChange:mo=>{ke("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(at,We,te){"use strict";te.d(We,{h:function(){return oe}});var z=te(67294),fe=te(42563),Pe=te(91773),ve=te(71577),he=te(4631),pe=te.n(he),ie=te(71749),de=te(30483),le=Object.defineProperty,ue=Object.defineProperties,se=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ae,ce,Se)=>ce in ae?le(ae,ce,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ae[ce]=Se,y=(ae,ce)=>{for(var Se in ce||(ce={}))re.call(ce,Se)&&a(ae,Se,ce[Se]);if(me)for(var Se of me(ce))ne.call(ce,Se)&&a(ae,Se,ce[Se]);return ae},E=(ae,ce)=>ue(ae,se(ce));const b=fe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},ee={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};We.Z=({callback:ae,onCancel:ce})=>{const[Se,_e]=(0,z.useState)("python");function xe(Fe){_e(ee[Fe][1])}function we(Fe){ae(Fe)}return z.createElement(Pe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:we,style:{width:500}}),z.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:xe},Object.keys(ee).map(Fe=>z.createElement(b,{key:Fe,value:Fe},ee[Fe][0])))),z.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(oe,{mode:Se})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(ve.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function oe({value:ae,onChange:ce,mode:Se,options:_e={}}){const xe=(0,z.useRef)(),[we,Fe]=(0,z.useState)();return(0,z.useEffect)(()=>{if(we){let Me=function(ut){const Xe=ut.getValue();ce&&ce(Xe)};return we.on("change",Me),()=>{we.off("change",Me)}}},[we,ce]),(0,z.useEffect)(()=>{we&&we.setOption("mode",Se)},[we,Se]),(0,z.useEffect)(()=>{we&&(ae!==we.getValue()||ae==="")&&setTimeout(()=>{we.setValue(ae||"")},300)},[we,ae]),(0,z.useEffect)(()=>{if(xe.current&&!we){const Me=pe().fromTextArea(xe.current,y({mode:Se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Fe(Me)}},[xe.current,we]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:xe}))}},35567:function(at,We,te){"use strict";te.d(We,{Z:function(){return ge}});var z=te(67294),fe=te(4631),Pe=te.n(fe),ve=te(91033),he=te(71749),pe=te(57341),ie=te(82801),de=te(88386),le=te(49047),ue=te(80785),se=te(85725),me=({value:ye="",className:be,showTextOnly:Le,showLines:Ne,style:et={}})=>{const ct=(0,z.useMemo)(()=>"",[ye]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},re=te(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,ee=(ye,be,Le)=>be in ye?ne(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[be]=Le,oe=(ye,be)=>{for(var Le in be||(be={}))b.call(be,Le)&&ee(ye,Le,be[Le]);if(E)for(var Le of E(be))x.call(be,Le)&&ee(ye,Le,be[Le]);return ye},ae=(ye,be)=>a(ye,y(be));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Se({onActionCallback:ye,title:be,icon:Le,actionName:Ne,className:et="",children:ct}){function _n(){ye(Ne)}return re.createElement("a",{title:be,className:et,onClick:_n},re.createElement("i",{className:`${Le}`}),ct)}var _e=({watch:ye,showNullButton:be,showNullProgramButton:Le,onActionCallback:Ne,fullScreen:et,insertTemp:ct,hidetoolBar:_n,extraUse:rn})=>{const In=[...ce,{title:`${ye?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ye?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!_n&&In.map((pr,_r)=>re.createElement("li",{key:_r},pr.actionName?re.createElement(Se,ae(oe({},pr),{onActionCallback:Ne})):re.createElement("span",{className:"v-line"}))),be?re.createElement("li",null,re.createElement(Se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Le?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(Se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(Se,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ct&&re.createElement("li",null,re.createElement(Se,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ct}`,onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rn&&re.createElement("li",null,rn),re.createElement("li",{className:"btn-full-screen"},re.createElement(Se,{icon:`${et?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},xe=te(76621),we=te(91773),Fe=te(11486),Me=te(71577),ut=Object.defineProperty,Xe=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,nt=(ye,be,Le)=>be in ye?ut(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[be]=Le,Ke=(ye,be)=>{for(var Le in be||(be={}))De.call(be,Le)&&nt(ye,Le,be[Le]);if(Ae)for(var Le of Ae(be))Be.call(be,Le)&&nt(ye,Le,be[Le]);return ye},Et=(ye,be)=>Xe(ye,mt(be));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var nn=({callback:ye,onCancel:be})=>{function Le(Ne){ye(Ne)}return z.createElement(we.default,Et(Ke({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),z.createElement(we.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Fe.default,null)),z.createElement(we.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Fe.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},on=te(57444),it=te(70859),lt=te(14446),xt=te(71230),Jt=te(63205),Vt=te(67294),xn=({callback:ye,onCancel:be})=>{const Le=document.createElement("canvas"),Ne=Le.getContext("2d");Le.width=1e3,Le.height=800,Ne.fillStyle="#ffffff",Ne.fillRect(0,0,Le.width,Le.height);const et=Le.toDataURL("image/png");return Vt.createElement(lt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Vt.createElement(xt.Z,{style:{height:"100vh"}},Vt.createElement(Jt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:et,visible:!0,title:String(Date.now())},onOk:ct=>{ye({src:ct.url})},onClose:be})))},He=te(23495);function un(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(un,go.CommandHandler),un.prototype.canAlignSelection=function(){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<2)},un.prototype.alignLeft=function(){var ye=this.diagram;ye.startTransaction("aligning left");var be=1/0;ye.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.x,be))}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be,Le.position.y))}),ye.commitTransaction("aligning left")},un.prototype.alignRight=function(){var ye=this.diagram;ye.startTransaction("aligning right");var be=-1/0;ye.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.x+Le.actualBounds.width;be=Math.max(Ne,be)}}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be-Le.actualBounds.width,Le.position.y))}),ye.commitTransaction("aligning right")},un.prototype.alignTop=function(){var ye=this.diagram;ye.startTransaction("alignTop");var be=1/0;ye.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.y,be))}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,be))}),ye.commitTransaction("alignTop")},un.prototype.alignBottom=function(){var ye=this.diagram;ye.startTransaction("aligning bottom");var be=-1/0;ye.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.y+Le.actualBounds.height;be=Math.max(Ne,be)}}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,be-Le.actualBounds.height))}),ye.commitTransaction("aligning bottom")},un.prototype.alignCenterX=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center X");var Le=be.actualBounds.x+be.actualBounds.width/2;ye.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Le-Ne.actualBounds.width/2,Ne.actualBounds.y))}),ye.commitTransaction("aligning Center X")}},un.prototype.alignCenterY=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center Y");var Le=be.actualBounds.y+be.actualBounds.height/2;ye.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Ne.actualBounds.x,Le-Ne.actualBounds.height/2))}),ye.commitTransaction("aligning Center Y")}},un.prototype.alignColumn=function(ye){var be=this.diagram;be.startTransaction("align Column"),ye===void 0&&(ye=0),ye=parseFloat(ye);var Le=new Array;be.selection.each(function(rn){rn instanceof go.Link||Le.push(rn)});for(var Ne=0;Ne0){for(var rn=ct.elt(_n-1);rn!==null&&rn.isTreeExpanded&&!rn.isTreeLeaf;){var In=this._sortTreeChildrenByY(rn);rn=In.last()}rn!==null&&ye.select(rn)}else ye.select(et)}}else if(Le.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var Ne=this._sortTreeChildrenByY(be).first();Ne!==null&&ye.select(Ne)}else for(;be!==null;){var et=be.findTreeParentNode();if(et===null)break;var ct=this._sortTreeChildrenByY(et),_n=ct.indexOf(be);if(_nct.y?1:et.xct.x?1:0}),be},un.prototype.copyToClipboard=function(ye){go.CommandHandler.prototype.copyToClipboard.call(this,ye),this._lastPasteOffset.set(this.pasteOffset)},un.prototype.pasteFromClipboard=function(){var ye=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ye,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ye},Object.defineProperty(un.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ye){if(ye!=="move"&&ye!=="select"&&ye!=="scroll"&&ye!=="tree"&&ye!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ye);this._arrowKeyBehavior=ye}}),Object.defineProperty(un.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ye){if(!(ye instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ye);this._pasteOffset.set(ye)}});var kn=un,nr=te(18023),Ln=te(15746),Gt=te(33170),Je={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qe=te(67294),_t=(ye,be,Le)=>new Promise((Ne,et)=>{var ct=In=>{try{rn(Le.next(In))}catch(pr){et(pr)}},_n=In=>{try{rn(Le.throw(In))}catch(pr){et(pr)}},rn=In=>In.done?Ne(In.value):Promise.resolve(In.value).then(ct,_n);rn((Le=Le.apply(ye,be)).next())});function Rt({onCancel:ye,callback:be}){let Le=(0,z.useRef)(),Ne=(0,z.useRef)(),et=(0,z.useRef)(),ct=(0,z.useRef)(!1);const _n=(0,z.useRef)(!1),[rn,In]=(0,z.useState)(0);function pr(){const Mt=He.bx.make,ur={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Le.current=new He.S0(Ne.current,{padding:20,grid:Mt(He.s_,"Grid",Mt(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Mt(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bn=>{var Sr=Bn.diagram.commandHandler.addTopLevelParts(Bn.diagram.selection,!0);Sr||Bn.diagram.currentTool.doCancel()},commandHandler:Mt(kn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bn=>{var Sr=Bn.subject;Sr.location=Sr.location.copy().snapToGridPoint(Bn.diagram.grid.gridOrigin,Bn.diagram.grid.gridCellSize),setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Bn=>{var Sr=Bn.subject;setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bn=>{var Sr=Bn.parameter.part;Sr.invalidateConnectedLinks();var Kr=Bn.subject;Bn.diagram.toolManager.linkingTool.isForwards?Kr.toNode.invalidateConnectedLinks():Kr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=Mt(He.NB,"Auto",{locationSpot:He.z6.Center,locationObjectName:"SHAPE",desiredSize:new He.$u(120,60),minSize:new He.$u(40,40),resizable:!0,resizeCellSize:new He.$u(10,10),rotatable:!0},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),new He.KX("desiredSize","size",He.$u.parse).makeTwoWay(He.$u.stringify),Mt(He.bn,{name:"SHAPE",fill:ur.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:He.z6.AllSides,toSpot:He.z6.AllSides},new He.KX("figure"),new He.KX("fill"),new He.KX("stroke","borderColor"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Mt(He.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Mt(He.al,{margin:1,textAlign:"center",overflow:He.al.OverflowEllipsis,editable:!0},new He.KX("text").makeTwoWay(),new He.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=Mt("ToolTip",Mt(He.s_,"Vertical",{maxSize:new He.$u(200,NaN)},Mt(He.al,{font:"bold 10pt sans-serif",textAlign:"center"},new He.KX("text")),Mt(He.al,{font:"10pt sans-serif",textAlign:"center"},new He.KX("text","details"))));function er(Bn,Sr){var Kr=(lr,ci)=>{lr.handled=!0,lr.diagram.model.commit(Li=>{var ra=ci.part.adornedPart,Oa=new He.E9().setRectSpot(ra.actualBounds,Bn);Oa.subtract(ra.location),Oa.scale(2,2),Oa.x+=Math.sign(Oa.x)*130,Oa.y+=Math.sign(Oa.y)*130,Oa.add(ra.location),Oa.snapToGridPoint(lr.diagram.grid.gridOrigin,lr.diagram.grid.gridCellSize);var $a=Li.copyNodeData(ra.data);Li.setGroupKeyForNodeData($a,Li.getGroupKeyForNodeData(ra.data)),Li.addNodeData($a);var ft={from:ra.key,to:Li.getKeyForNodeData($a)};Li.addLinkData(ft);var dt=lr.diagram.findNodeForData($a);dt.location=Oa,lr.diagram.select(dt),setTimeout(()=>{lr.diagram.commandHandler.editTextBlock()},20)})};return Mt(He.bn,{figure:Sr,alignment:Bn,alignmentFocus:Bn.opposite(),width:Bn.equals(He.z6.Top)||Bn.equals(He.z6.Bottom)?25:18,height:Bn.equals(He.z6.Top)||Bn.equals(He.z6.Bottom)?18:25,fill:"orange",stroke:ur.white,strokeWidth:4,mouseEnter:(lr,ci)=>ci.fill="dodgerblue",mouseLeave:(lr,ci)=>ci.fill="orange",isActionable:!0,click:Kr,contextClick:Kr})}function Tn(Bn){return Mt(He.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Sr,Kr)=>Kr.fill="dodgerblue",mouseLeave:(Sr,Kr)=>Kr.fill="orange",click:(Sr,Kr)=>{Sr.diagram.commandHandler.showContextMenu(Kr.part.adornedPart)}},Bn||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=Mt(He.uz,"Spot",Mt(He.Vm,{padding:10}),er(He.z6.Top,"TriangleUp"),er(He.z6.Left,"TriangleLeft"),er(He.z6.Right,"TriangleRight"),er(He.z6.Bottom,"TriangleDown"),Tn({alignment:new He.z6(.75,0)}));function Un(Bn,Sr){return(Kr,lr)=>{Kr.handled=!0,Kr.diagram.model.commit(ci=>{ci.set(lr.part.adornedPart.data,Bn,Sr)})}}function sr(Bn,Sr){return Sr||(Sr="color"),Mt(He.bn,{width:16,height:16,stroke:"lightgray",fill:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.stroke="dodgerblue",mouseLeave:(Kr,lr)=>lr.stroke="lightgray",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}function Zr(){return[Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.white,"fill"),sr(ur.beige,"fill"),sr(ur.extralightblue,"fill"),sr(ur.extralightred,"fill"))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.lightgray,"fill"),sr(ur.lightgreen,"fill"),sr(ur.lightblue,"fill"),sr(ur.lightred,"fill")))]}function xr(){return[Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.black),sr(ur.green),sr(ur.blue),sr(ur.red))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.white),sr(ur.magenta),sr(ur.purple),sr(ur.orange)))]}function Gi(Bn,Sr){return Sr||(Sr="thickness"),Mt(He.bn,"LineH",{width:16,height:16,strokeWidth:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}function Xo(Bn,Sr){return Sr||(Sr="dash"),Mt(He.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}function br(){return[Mt("ContextMenuButton",Mt(He.s_,"Horizontal",Gi(1),Gi(2),Gi(3),Gi(4))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",Xo(null),Xo([2,4]),Xo([4,4])))]}function _o(Bn,Sr){return Sr||(Sr="figure"),Mt(He.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.fill="dodgerblue",mouseLeave:(Kr,lr)=>lr.fill="lightgray",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}Le.current.nodeTemplate.contextMenu=Mt("ContextMenu",Mt("ContextMenuButton",Mt(He.s_,"Horizontal",_o("Rectangle"),_o("RoundedRectangle"),_o("Ellipse"),_o("Diamond"))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",_o("Parallelogram2"),_o("ManualOperation"),_o("Procedure"),_o("Cylinder1"))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",_o("Terminator"),_o("CreateRequest"),_o("Document"),_o("TriangleDown"))),Zr(),xr(),br()),Le.current.groupTemplate=Mt(He.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:He.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bn,Sr)=>{var Kr=Sr.addMembers(Sr.diagram.selection,!0);Kr||Sr.diagram.currentTool.doCancel()},avoidable:!1},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),Mt(He.s_,"Auto",{name:"BODY"},Mt(He.bn,{parameter1:10,fill:ur.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:He.z6.AllSides,toSpot:He.z6.AllSides},new He.KX("fill"),new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Mt(He.Vm,{background:"transparent",margin:20})),Mt(He.al,{alignment:He.z6.Top,alignmentFocus:He.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new He.KX("text"),new He.KX("stroke","color"))),Le.current.groupTemplate.selectionAdornmentTemplate=Mt(He.uz,"Spot",Mt(He.s_,"Auto",Mt(He.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Mt(He.Vm,{margin:1.5})),Tn({alignment:He.z6.TopRight,alignmentFocus:He.z6.BottomRight})),Le.current.groupTemplate.contextMenu=Mt("ContextMenu",Zr(),xr(),br()),Le.current.linkTemplate=Mt(He.rU,{layerName:"Foreground",routing:He.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new He.KX("fromSpot","fromSpot",He.z6.parse),new He.KX("toSpot","toSpot",He.z6.parse),new He.KX("fromShortLength","dir",Bn=>Bn>=1?10:0),new He.KX("toShortLength","dir",Bn=>Bn>=1?10:0),new He.KX("points").makeTwoWay(),Mt(He.bn,{strokeWidth:2},new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Mt(He.bn,{segmentIndex:0,segmentOffset:new He.E9(15,0),segmentOrientation:He.rU.OrientAlong,alignmentFocus:He.z6.Right,figure:"circle",width:10,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn===1)),Mt(He.bn,{segmentIndex:-1,segmentOffset:new He.E9(-10,6),segmentOrientation:He.rU.OrientPlus90,alignmentFocus:He.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn>=1),new He.KX("width","thickness",Bn=>7+3*Bn),new He.KX("height","thickness",Bn=>7+3*Bn),new He.KX("segmentOffset","thickness",Bn=>new He.E9(-15,4+1.5*Bn))),Mt(He.bn,{segmentIndex:0,segmentOffset:new He.E9(15,-6),segmentOrientation:He.rU.OrientMinus90,alignmentFocus:He.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn===2),new He.KX("width","thickness",Bn=>7+3*Bn),new He.KX("height","thickness",Bn=>7+3*Bn),new He.KX("segmentOffset","thickness",Bn=>new He.E9(-15,4+1.5*Bn))),Mt(He.al,{alignmentFocus:new He.z6(0,1,-4,0),editable:!0},new He.KX("text").makeTwoWay(),new He.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=Mt(He.uz,Mt(He.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:wi(2)},new He.KX("pathPattern","thickness",wi)),Tn({alignmentFocus:new He.z6(0,0,-6,-4)}));function wi(Bn){return Mt(He.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bn+4).toString()+" H3"})}function ti(Bn){var Sr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bn===0?Sr="M0 0 M16 16 M0 8 L16 8":Bn===2&&(Sr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Mt(He.bn,{geometryString:Sr,margin:2,background:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Un("dir",Bn),contextClick:Un("dir",Bn)})}function hi(Bn){var Sr=(Kr,lr)=>{Kr.handled=!0,Kr.diagram.model.commit(ci=>{var Li=lr.part.adornedPart;ci.set(Li.data,Bn?"toSpot":"fromSpot",He.z6.stringify(He.z6.AllSides)),(Bn?Li.toNode:Li.fromNode).invalidateConnectedLinks()})};return Mt(He.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Sr,contextClick:Sr})}function pn(Bn,Sr){var Kr=0,lr=He.z6.RightSide;Bn.equals(He.z6.Top)?(Kr=270,lr=He.z6.TopSide):Bn.equals(He.z6.Left)?(Kr=180,lr=He.z6.LeftSide):Bn.equals(He.z6.Bottom)&&(Kr=90,lr=He.z6.BottomSide),Sr||(Kr-=180);var ci=(Li,ra)=>{Li.handled=!0,Li.diagram.model.commit(Oa=>{var $a=ra.part.adornedPart;Oa.set($a.data,Sr?"toSpot":"fromSpot",He.z6.stringify(lr)),(Sr?$a.toNode:$a.fromNode).invalidateConnectedLinks()})};return Mt(He.bn,{alignment:Bn,alignmentFocus:Bn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Kr,background:"transparent",mouseEnter:(Li,ra)=>ra.background="dodgerblue",mouseLeave:(Li,ra)=>ra.background="transparent",click:ci,contextClick:ci})}Le.current.linkTemplate.contextMenu=Mt("ContextMenu",xr(),br(),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",ti(0),ti(1),ti(2))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",Mt(He.s_,"Spot",hi(!1),pn(He.z6.Top,!1),pn(He.z6.Left,!1),pn(He.z6.Right,!1),pn(He.z6.Bottom,!1)),Mt(He.s_,"Spot",{margin:new He.Zt(0,0,0,2)},hi(!0),pn(He.z6.Top,!0),pn(He.z6.Left,!0),pn(He.z6.Right,!0),pn(He.z6.Bottom,!0)))));const Ya=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, {"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"}, {"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"}, {"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"}, {"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3}, {"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"} ], "linkDataArray": [ {"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1}, {"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1}, {"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]}, {"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2}, {"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"}, {"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1}, {"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]} ]}`;var Ti=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Bo(Bn){return console.log("shapeName:",Bn),Ti.indexOf(Bn)>=0}var Aa=new He.YI(et.current,{maxSelectionCount:1,linkTemplate:Mt(He.rU,{locationSpot:He.z6.Center,selectionAdornmentTemplate:Mt(He.uz,"Link",{locationSpot:He.z6.Center},Mt(He.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Mt(He.bn,{toArrow:"Standard",stroke:null}))},{routing:He.rU.AvoidsNodes,curve:He.rU.JumpOver,corner:5,toShortLength:4},new He.KX("points"),Mt(He.bn,{isPanelMain:!0,strokeWidth:2}),Mt(He.bn,{toArrow:"Standard",stroke:null})),model:new He.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...He.bn.getFigureGenerators().toArray().map(Bn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Bn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(Bn){var Sr;const Kr=Bn.subject.part;var lr=(Sr=document.activeElement)==null?void 0:Sr.value;typeof lr=="string"&&lr.trim()===""&&Le.current.model.commit(function(ci){ci.set(Kr.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Aa.nodeTemplate=Mt(He.NB,"Auto",{locationSpot:He.z6.Center},new He.KX("location","location",He.E9.parse).makeTwoWay(He.E9.stringify),Mt(He.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new He.KX("stroke").makeTwoWay(),new He.KX("fill").makeTwoWay(),new He.KX("figure")),Mt(He.al,{margin:new He.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new He.$u(16,16),maxSize:new He.$u(10,NaN),textAlign:"center",editable:!0},new He.KX("key").makeTwoWay())),setTimeout(()=>{Le.current.grid=Mt(He.s_,"Grid",Mt(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Mt(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Le.current.grid.visible=!0,Le.current.grid.gridCellStroke="darkgray",Le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Le.current,Le.current}const _r=()=>_t(this,null,function*(){var Mt=Le.current.makeImage();const ur=yield(0,Gt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Mt.src}});be({src:ur.url})});return(0,z.useEffect)(()=>(setTimeout(()=>{pr()},500),In(rn+1),()=>{Le.current=null}),[]),Qe.createElement("div",{ref:_n,className:ct.current?`${Je.maxH60} body-overflow-initial`:"body-overflow-initial"},Qe.createElement(lt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!rn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Qe.createElement(xt.Z,null,Qe.createElement(Ln.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Qe.createElement(Ln.Z,{onClick:()=>{var Mt,ur,er=Le.current.selection.first();if(ct.current=!ct.current,document.activeElement&&er){let Tn=(ur=(Mt=document.activeElement)==null?void 0:Mt.value)==null?void 0:ur.trim();typeof Tn=="string"&&Le.current.model.commit(function(Un){Un.set(er.data,"text",Tn||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}In(rn+1)}},Qe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ye},Qe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Je.flowChartWrp},Qe.createElement("div",{style:{display:"flex",height:"100%"}},Qe.createElement("div",{style:{width:"300px",height:"100%"}},Qe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Qe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Je.myPaletteDiv,ref:et})),Qe.createElement("div",{style:{flex:1,position:"relative"}},Qe.createElement("div",{ref:Ne,style:{height:"80vh"}}))),Qe.createElement("div",{className:"tr"},Qe.createElement(Me.ZP,{size:"large",onClick:_r,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Yt=Rt,gt=te(78045),wt=te(42405);const Dt=gt.ZP.Group,tt={margin:"0 8px"};var fn=({callback:ye,onCancel:be})=>{function Le(Ne){ye(Ne)}return z.createElement(we.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:tt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:tt},"\u884C\u6570"),z.createElement(we.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(wt.Z,null)),z.createElement("span",{style:tt},"\u5217\u6570"),z.createElement(we.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(wt.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:tt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(we.default.Item,{name:"align"},z.createElement(Dt,null,z.createElement(gt.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(gt.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(gt.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(gt.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},hn=te(47897),$n=te(61016),no=te.n($n),vt=(0,z.forwardRef)(({use3d:ye,width:be,height:Le,callback:Ne,showSaveButton:et},ct)=>{const _n=(0,z.useRef)(),rn=(0,z.useRef)(),[In,pr]=(0,z.useState)(!1),_r=(0,z.useRef)({id:_n,appName:"graphing",width:be||1e3,height:Le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{rn.current=new(no())(_r.current,!0),window.onload=function(){rn.current.inject("applet_container")}},[]);const Mt=()=>{var ur=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(ur),ur};return(0,z.useEffect)(()=>{_r.current.appName=In?"3D":"graphing",rn.current.inject("applet_container")},[In]),(0,z.useEffect)(()=>{pr(ye)},[ye]),(0,z.useImperativeHandle)(ct,()=>({getImgData:Mt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:_n}),z.createElement(xt.Z,{align:"middle"},z.createElement(Ln.Z,{flex:1},z.createElement(hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:In,onChange:ur=>pr(ur)})),z.createElement(Ln.Z,null,z.createElement(Me.ZP,{size:"large",onClick:Mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),An=te(36527),Zt=te(25934),yt=te(2453);const Nn="link",Xt="upload-image",qn="add-flowchart",Br="draw-image",or="add-flowchart",Gn="code-block",ir="add-table",So="------------",On={default:So,left:`:${So}`,center:`:${So}:`,right:`${So}:`};var qr=te(99914),Yo=(ye,be,Le)=>new Promise((Ne,et)=>{var ct=In=>{try{rn(Le.next(In))}catch(pr){et(pr)}},_n=In=>{try{rn(Le.throw(In))}catch(pr){et(pr)}},rn=In=>In.done?Ne(In.value):Promise.resolve(In.value).then(ct,_n);rn((Le=Le.apply(ye,be)).next())});function Zo(){}let qo=0;const yr=1e4,xo="\u2581",Wo="@\u2581\u2581@",Wi="@\u2581@",$i=` **\u6A21\u677F\u6807\u9898** \u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Ci=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ei(ye){return/^\d+$/.test(ye)?`${ye}px`:ye}const co=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ta={[co+"-B"]:"bold",[co+"-I"]:"italic"},yn={[Nn]:"\u6DFB\u52A0\u94FE\u63A5",[Gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Xt]:"\u6DFB\u52A0\u56FE\u7247",[Br]:"\u6DFB\u52A0\u753B\u56FE",[qn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ir]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ge=({defaultValue:ye="",onChange:be,width:Le="100%",height:Ne=400,miniToolbar:et=!1,isFocus:ct=!1,watch:_n,insertTemp:rn,mode:In="markdown",id:pr="markdown-editor-id",showResizeBar:_r=!1,noStorage:Mt=!1,showNullButton:ur=!1,showNullProgramButton:er=!1,hidetoolBar:Tn=!1,fullScreen:Un=!1,onBlur:sr,onCMBeforeChange:Zr,onFullScreen:xr,className:Gi="",disablePaste:Xo=!1,disabled:br=!1,disabledFill:_o=!1,placeholder:wi="",values:ti="",extraUse:hi})=>{const[pn,Ya]=(0,z.useState)(null),[Ti,Bo]=(0,z.useState)(ye),[Aa,Bn]=(0,z.useState)(_n),[Sr,Kr]=(0,z.useState)(Un),[lr,ci]=(0,z.useState)(""),[Li,ra]=(0,z.useState)(0),[Oa,$a]=(0,z.useState)(Ne),[ft,dt]=(0,z.useState)(!1),zt=(0,z.useRef)((0,Zt.Z)()),qt=(0,z.useRef)(!1),Mn=(0,z.useRef)(),[Nr,Tr]=(0,z.useState)(0),[Wr,uo]=(0,z.useState)(0),Mo=(0,z.useRef)(),Qo=(0,z.useRef)(),mi=(0,z.useRef)(),Fi=(0,z.useRef)(),oa=()=>Yo(void 0,null,function*(){var Ft;const Tt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:zt.current}});(Ft=Tt==null?void 0:Tt.attachments)!=null&&Ft.length&&(console.log("cm:",pn,Mo),Tt.attachments.map(Ht=>{Ht.content_type.indexOf("image")>-1?pn.replaceSelection(`![,](/api/attachments/${Ht.id}?type=${Ht.content_type})`):Ht.content_type.indexOf("video")>-1?pn.replaceSelection(``):Ht.content_type.indexOf("pdf")>-1?pn.replaceSelection(`${Ht.name}`):pn.replaceSelection(`[${Ht.name}](${ENV.API_SERVER}/api/attachments/${Ht.id}?type=${Ht.content_type})`)}))});(0,z.useEffect)(()=>{const Ft=window.scrollY||window.pageYOffset;Bo(ti),pn==null||pn.setValue(ti),window.scrollTo(0,Ft)},[ti]),(0,z.useEffect)(()=>{xr==null||xr(Sr)},[Sr]),(0,z.useEffect)(()=>{if(Mo.current){let Ft=function(Ht,Kt){var jn;if(Xo){Kt.preventDefault();return}const tr=Kt.clipboardData;if(tr){const Pr=tr.types.toString(),Cn=tr.items;if(Pr==="Files"||tr.types.indexOf("Files")>-1){if(Kt.preventDefault(),In=="stex")return;try{let dr=Cn[1];((jn=Cn[0])==null?void 0:jn.kind)==="file"&&(dr=Cn[0]);const ze=dr.getAsFile(),ke=ze.name.split(".").pop();(0,it.I)(ze,qe=>{var bt,kt,Ut;qe.id?((bt=ze==null?void 0:ze.type)==null?void 0:bt.indexOf("image"))>-1?Tt.replaceSelection(``):((kt=ze==null?void 0:ze.type)==null?void 0:kt.indexOf("video"))>-1?Tt.replaceSelection(``):((Ut=ze==null?void 0:ze.type)==null?void 0:Ut.indexOf("pdf"))>-1?Tt.replaceSelection(`${ze.name}`):Ci.includes(ke)?Tt.replaceSelection(`${ze.name}`):Tt.replaceSelection(`[${ze.name}](/api/attachments/${qe.id}?type=${qe.content_type})`):(qe==null?void 0:qe.status)===401&&(yt.ZP.warning((qe==null?void 0:qe.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(dr){yt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Tt=Pe().fromTextArea(Mo.current,{mode:In,lineNumbers:!et,lineWrapping:!0,value:ye,autoCloseTags:!er,autoCloseBrackets:!0});return Tt.on("keyup",function(Ht,Kt){Kt.keyCode===8&&(Ht.getValue()==""?Tt.setOption("placeholder",wi):Tt.setOption("placeholder",null))}),Tt.on("keydown",function(Ht,Kt){if(Kt.keyCode===8){var jn=yi(Ht);jn&&Kt.preventDefault()}}),ct&&Tt.focus(),Tt.on("paste",Ft),Tt.on("dragleave",function(Ht,Kt){Qo.current.classList.remove("mouse-hover-md")}),br&&Tt.on("beforeChange",function(Ht,Kt){(Kt.origin==="paste"||Kt.origin==="+input")&&Kt.cancel()}),Ya(Tt),()=>{Tt.off("paste",Ft)}}},[]);const vo=(0,z.useCallback)(()=>{if(Qo.current)try{}catch(Ft){console.log(Ft,"---- to set md editor body height")}},[Oa,Qo,Sr]);(0,z.useEffect)(()=>{function Ft(){let Tt=new ve.Z(Ht=>{for(let Kt of Ht)(Kt.target.offsetHeight>0||Kt.target.offsetWidth>0)&&(vo(),pn.setSize("100%","100%"),pn.refresh())});return Tt.observe(Mo.current.parentElement),Tt}if(pn){const Tt=Ft();return()=>{var Ht,Kt;(Ht=Mo.current)!=null&&Ht.parentElement&&Tt.unobserve((Kt=Mo.current)==null?void 0:Kt.parentElement)}}},[pn,vo]),(0,z.useEffect)(()=>{if(pn){let Ft=[];for(const[Tt,Ht]of Object.entries(Ta)){let Kt={[Tt]:()=>{Mi(Ht)}};Ft.push(Kt),pn.addKeyMap(Kt)}return Mn.current=setInterval(()=>{qt.current&&oa()},4e3),()=>{clearInterval(Mn.current);for(let Tt of Ft)pn.removeKeyMap(Tt)}}},[pn]),(0,z.useEffect)(()=>{Un!==Sr&&Kr(Un)},[Un]),(0,qr.Z)(()=>{if(!Mt&&Li>0){let Ft=new Date().getTime(),Tt=window.sessionStorage.getItem(pr);Ft>=Li+yr&&(!Tt||Tt!==Ti)&&(window.sessionStorage.setItem(pr,Ti),dt(!0))}},yr),(0,z.useEffect)(()=>{Bn(_n)},[pn,_n]),(0,z.useEffect)(()=>{pn&&ct&&pn.focus()},[pn,ct]),(0,z.useEffect)(()=>{if(Aa&&pn){let Ft=function(Ht){let Kt=Ht.target;if(Fi.current){let jn=Kt.scrollTop/Kt.scrollHeight;Fi.current.scrollTop=Fi.current.scrollHeight*jn}};const Tt=pn.getScrollerElement();return Tt.addEventListener("scroll",Ft),()=>{Tt.removeEventListener("scroll",Ft)}}},[pn,Aa]),(0,z.useEffect)(()=>{if(pn&&Zr){let Ft=function(Tt,Ht){Zr(Tt,Ht)};return pn.on("beforeChange",Ft),()=>{pn.off("beforeChange",Ft)}}},[pn,Zr]),(0,z.useEffect)(()=>{if(pn&&sr){let Ft=function(){sr(pn.getValue())};return pn.on("blur",Ft),()=>{pn.off("blur",Ft)}}},[pn,sr]);function yi(Ft,Tt){var Ht=Ft.getDoc(),Kt=Ht.getCursor(),jn=Ht.getLine(Kt.line),tr=jn.charAt(Kt.ch-1),Pr=jn.lastIndexOf("@\u2581@",Kt.ch),Cn=jn.lastIndexOf("@\u2581\u2581@",Kt.ch),dr=Pr>Cn?Pr:Cn,ze=Pr>Cn?3:4;if(Wo.indexOf(tr)===-1)return null;if(console.log("change1:",Tt,Ft,jn,Kt,dr,Pr,Cn,tr),dr>=0&&Kt.ch-dr<5){var ke=dr+ze;return Ht.replaceRange("",{line:Kt.line,ch:dr},{line:Kt.line,ch:ke}),{line:Kt.line,ch:ke}}return null}(0,z.useEffect)(()=>{if(pn){let Ft=function(Tt,Ht){const Kt=Tt.getValue();Bo(Kt),ra(new Date().getTime()),Tt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(er?be(Kt,bn(Kt)):be(Kt))};return pn.on("change",Ft),()=>{pn.off("change",Ft)}}},[pn,be]),(0,z.useEffect)(()=>{if(pn)if(ye==null)pn.setValue(""),Bo("");else{const Ft=window.scrollY||window.pageYOffset;ye!==pn.getValue()&&(pn.setValue(ye),Bo(ye),pn.setCursor(br?1:pn.lineCount(),0),window.scrollTo(0,Ft))}},[pn,ye]);const Mi=(0,z.useCallback)(Ft=>{const Tt=pn.getCursor(),Ht=pn.getSelection();let Kt=Ht.split(` `);switch(Ft){case"bold":return pn.replaceSelection("**"+Ht+"**"),Ht===""&&pn.setCursor(Tt.line,Tt.ch+2),pn.focus();case"italic":return pn.replaceSelection("*"+Ht+"*"),Ht===""&&pn.setCursor(Tt.line,Tt.ch+1),pn.focus();case"code":return pn.replaceSelection("`"+Ht+"`"),Ht===""&&pn.setCursor(Tt.line,Tt.ch+1),pn.focus();case"inline-latex":return ci("inline-latex"),pn.focus();case"latex":return pn.replaceSelection("```latex\n"+Ht+"\n```"),pn.setCursor(Tt.line+1,Ht.length+1),pn.focus();case"line-break":return pn.replaceSelection(`
`),pn.focus();case"list-ul":return Ht===""?pn.replaceSelection("- "+Ht):pn.replaceSelection(Kt.map(jn=>jn===""?"":`- ${jn}`).join(` `)),pn.focus();case"list-ol":return Ht===""?pn.replaceSelection("1. "+Ht):pn.replaceSelection(Kt.map((jn,tr)=>jn===""?"":`${tr+1}. ${jn}`).join(` `)),pn.focus();case"add-null-ch":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection(xo),pn.focus();case"add-signal":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection(Wi),pn.focus();case"add-multiple":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection(Wo),pn.focus();case"inster-template-1":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection($i),pn.focus();case"eraser":return pn.setValue(""),pn.focus();case"trigger-watch":return Bn(!Aa),pn.focus();case"trigger-full-screen":return Kr(!Sr),pn.focus();case Nn:ci(Nn);return;case Gn:ci(Gn);return;case Xt:ci(Xt);return;case Br:ci(Br);return;case"maths-latex":ci("maths-latex");return;case qn:ci(qn);return;case ir:ci(ir);return;default:throw new Error}},[pn,Aa,Sr]),pi=(0,z.useCallback)((Ft,Tt)=>{var Ht,Kt,jn,tr,Pr,Cn;switch(ci(""),lr){case Nn:const{title:bt,link:kt}=Ft;return pn.replaceSelection(`[${bt}](${kt})`),pn.focus();case Gn:const{language:Ut,content:cn}=Ft;return pn.replaceSelection(["```"+Ut,cn,"```"].join(` `)),pn.focus();case"maths-latex":for(var dr=atob(Ft),ze=new Uint8Array(dr.length),ke=0;ke{Or.id?pn.replaceSelection(`![,](/api/attachments/${Or.id}?type=${Or.content_type})`):(Or==null?void 0:Or.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pn.replaceSelection("`$$"+Ft+"$$`");break;case Xt:case Br:case or:const{src:an,alt:mn}=Ft,vn=Tt,Zn=(jn=(Kt=(Ht=vn==null?void 0:vn.name)==null?void 0:Ht.split("."))==null?void 0:Kt.pop)==null?void 0:jn.call(Kt);return((tr=vn==null?void 0:vn.type)==null?void 0:tr.indexOf("image"))>-1||!(vn!=null&&vn.type)?vn.align||vn.width?pn.replaceSelection(`

${mn||

`):pn.replaceSelection(`${mn||`):((Pr=vn==null?void 0:vn.type)==null?void 0:Pr.indexOf("video"))>-1?pn.replaceSelection(``):((Cn=vn==null?void 0:vn.type)==null?void 0:Cn.indexOf("pdf"))>-1?pn.replaceSelection(`${vn.name}`):Ci.includes(Zn)?pn.replaceSelection(`${vn.name}`):pn.replaceSelection(`[${vn.name}](${an})`),pn.focus();case ir:const{row:Hn,col:gr,align:Fr}=Ft;let Cr=` `;for(let Or=0;Or{switch(lr){case Nn:return z.createElement(nn,{callback:pi,onCancel:St});case Gn:return z.createElement(on.Z,{callback:pi,onCancel:St});case Xt:return z.createElement(it.Z,{callback:pi,onCancel:St});case qn:return z.createElement(Yt,{callback:pi,onCancel:St});case ir:return z.createElement(fn,{callback:pi,onCancel:St});case"maths-latex":return z.createElement(vt,{showSaveButton:!0,callback:pi});case"inline-latex":return z.createElement(An.Z,{showSaveButton:!0,callback:pi});default:return null}},[lr]);function St(){ci("")}(0,z.useEffect)(()=>{if(mi.current){let Ft=function(Pr){jn=!0,tr=Pr.pageY},Tt=function(){jn=!1},Ht=function(Pr){if(jn){let Cn=Pr.pageY-tr;Cn<0&&(Cn=0),Cn>300&&(Cn=300);let dr=Ne+Cn+"px";$a(dr)}},Kt=mi.current,jn=!1,tr=0;return Kt.addEventListener("mousedown",Ft),document.addEventListener("mousemove",Ht),document.addEventListener("mouseup",Tt),()=>{Kt.removeEventListener("mousedown",Ft),document.removeEventListener("mousemove",Ht),document.removeEventListener("mouseup",Tt)}}},[pn,mi]),(0,z.useEffect)(()=>{$a(Ne)},[Ne]);const Lt=ei(Le),jt=ei(Oa),$e={width:Lt,height:jt},Wt=(0,z.useMemo)(()=>{if(Li){let Ft=new Date(Li),Tt=Ft.getHours(),Ht=Ft.getMinutes(),Kt=Ft.getSeconds();return Tt=Tt<10?"0"+Tt:Tt,Ht=Ht<10?"0"+Ht:Ht,Kt=Kt<10?"0"+Kt:Kt,`${Tt}:${Ht}:${Kt}`}return 0},[Li]),bn=Ft=>{const Tt=[];if(er){let Ht=-1;Ft=Ft.replace(/(@▁▁@|@▁@)/g,function(Kt,jn,tr){Tt.push({multiLine:Kt!==Wi})})}return Tt};function Rn(){window.sessionStorage.removeItem(pr),dt(!1),ra(0)}function Nt(){dt(!1),ra(0),pn.setValue(window.sessionStorage.getItem(pr))}(0,z.useEffect)(()=>{yn[lr]&&lr!==Br&&lr!==qn&&setTimeout(()=>{const Ft=document.getElementsByClassName("markdown-popup-form")[0],Tt=window.innerWidth/2-Ft.offsetWidth/2,Ht=window.innerHeight/2-Ft.offsetHeight/2;Tr(Tt),uo(Ht)},0)},[lr]);const $t=Ft=>{Ft.preventDefault();const Tt=Ft.clientX-Nr,Ht=Ft.clientY-Wr;document.body.onmousemove=Kt=>{let jn=Kt.clientX-Tt,tr=Kt.clientY-Ht;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth-Pr.offsetWidth,dr=window.innerHeight-Pr.offsetHeight;jn=Math.max(0,Math.min(jn,Cn)),tr=Math.max(0,Math.min(tr,dr)),It(Kt.clientX,Kt.clientY,Tt,Ht)&&(Tr(jn),uo(tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},It=(Ft,Tt,Ht,Kt)=>{const jn=document.body.clientHeight,tr=document.body.clientWidth;return Ft<20&&Ht>Ft||Ft>tr-20&&HtTt||Tt>jn-20&&KtFe in we?me(we,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Me}):we[Fe]=Me,x=(we,Fe)=>{for(var Me in Fe||(Fe={}))y.call(Fe,Me)&&b(we,Me,Fe[Me]);if(a)for(var Me of a(Fe))E.call(Fe,Me)&&b(we,Me,Fe[Me]);return we},ee=(we,Fe)=>re(we,ne(Fe));const{useForm:oe}=z.default,ae={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:we,onCancel:Fe})=>{const[Me]=oe();let ut=(0,le.useRef)();function Xe(De){ut.current.width=Me.getFieldValue("width"),ut.current.align=Me.getFieldValue("align"),we(De,ut.current)}function mt(De,Be){if(De.status===-1){fe.ZP.error(De.message);return}Me.setFieldsValue({src:`/api/attachments/${De.id}`,type:Be.type})}function Ae(De){let Be=De.target.files[0];ut.current=Be,xe(Be,mt)}return se.createElement(z.default,ee(x({form:Me},ce),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),se.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},se.createElement(Pe.default,{style:ae})),se.createElement(_e,{onFileChange:Ae}))),se.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(Pe.default,{style:{width:264}})),se.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement(ve.Z,null,se.createElement(z.default.Item,{name:"width",style:{margin:0}},se.createElement(he.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},se.createElement(pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),se.createElement("aside",null,se.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(ie.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function _e({onFileChange:we}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:we}))}function xe(we,Fe){if(!we)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",we),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(Xe){Fe(JSON.parse(Xe.target.responseText),we)},!1),ut.addEventListener("error",function(Xe){console.error(Xe)},!1),ut.open("POST",`${de.KI}/api/attachments.json`),ut.send(Me)}},76621:function(at,We,te){"use strict";te.d(We,{Z:function(){return Pe}});var z=te(67294),fe=te(73935);class Pe extends z.Component{constructor(he){super(he);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,fe.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(at,We,te){"use strict";var z=te(12867),fe=te(42563),Pe=te(47897),ve=te(67294);const he=fe.default.Option;We.Z=({isTheoretical:pe,onFontSizeChange:ie,cmFontSize:de,cmCodeMode:le,autoFormat:ue,onCodeModeChange:se,onTabToSpace:me,onAutoFormat:re,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x})=>{const ee={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return ve.createElement("div",{className:`tpi-code-setting ${a}`},ve.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ve.createElement(fe.default,{bordered:!1,size:"small",value:le,onChange:se},ve.createElement(he,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(he,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ve.createElement(fe.default,{bordered:!1,size:"small",value:de,onChange:ie},ve.createElement(he,{value:12},"12px"),ve.createElement(he,{value:14},"14px"),ve.createElement(he,{value:16},"16px"),ve.createElement(he,{value:18},"18px"),ve.createElement(he,{value:20},"20px"),ve.createElement(he,{value:22},"22px"))),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"Tab\u8F6C\u6362"),ve.createElement(Pe.Z,{checked:y,onChange:me})),ve.createElement("div",{className:"file-item",onClick:ne},ve.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ve.createElement("span",null,"Ctrl + S")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ve.createElement("span",null,"F1 / Alt + F1")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ve.createElement("span",null,"Ctrl + ]/[")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ve.createElement("span",null,"Ctrl + Shift + \\")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ve.createElement("span",null,"Home")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ve.createElement("span",null,"End"))),E),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ve.createElement("span",null,ee[x==null?void 0:x.difficulty])),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ve.createElement("span",null,b==null?void 0:b.name)),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ve.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},99914:function(at,We,te){"use strict";te.d(We,{Z:function(){return fe}});var z=te(67294);function fe(Pe,ve){const he=(0,z.useRef)();(0,z.useEffect)(()=>{he.current=Pe}),(0,z.useEffect)(()=>{function pe(){he.current()}if(ve!==null){let ie=setInterval(pe,ve);return()=>clearInterval(ie)}},[ve])}},72971:function(at,We,te){"use strict";te.d(We,{Im:function(){return we},ZP:function(){return Ae},gZ:function(){return Xe}});var z=te(67294),fe=te(11486),Pe=te(71577),ve=te(42922),he=te(53978),pe=te(94189),ie=te(19575),de=te(7621),le=te(85725),ue=te(28706),se=te(38658),me=te(12320),re=te(94184),ne=te.n(re),a=te(67294),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(De,Be,nt)=>Be in De?y(De,Be,{enumerable:!0,configurable:!0,writable:!0,value:nt}):De[Be]=nt,ce=(De,Be)=>{for(var nt in Be||(Be={}))ee.call(Be,nt)&&ae(De,nt,Be[nt]);if(x)for(var nt of x(Be))oe.call(Be,nt)&&ae(De,nt,Be[nt]);return De},Se=(De,Be)=>E(De,b(Be));const{TextArea:_e}=fe.default,xe={visible:!1,tabIndex:"0"},we={[pe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[pe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[pe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Fe=(De=>(De[De.SET_VISIBLE=0]="SET_VISIBLE",De[De.SET_TABINDEX=1]="SET_TABINDEX",De))(Fe||{});function Me(De,Be){switch(Be.type){case 0:return Se(ce({},De),{visible:Be.payload});case 1:return Se(ce({},De),{tabIndex:Be.payload});default:throw new Error}}function ut({value:De,className:Be}){const[nt,Ke]=(0,z.useState)(!1),Et=(0,z.useRef)(),Ct=(0,z.useRef)();return(0,z.useEffect)(()=>{nt&&(Ct.current.reset(),Ct.current.write((0,ue.pp)(De||"")))},[De,nt]),(0,z.useEffect)(()=>{var nn,on,it,lt;if(Et.current){Ct.current=new me.Terminal({fontSize:14,disableStdin:!0}),Ct.current.open(Et.current);const xt=Et.current.offsetWidth-14,Jt=((lt=(it=(on=(nn=Ct.current)==null?void 0:nn._core)==null?void 0:on._renderService)==null?void 0:it.dimensions)==null?void 0:lt.actualCellWidth)||9.5,Vt=Math.ceil(xt/Jt);Ct.current.resize(Vt,8),Ke(!0)}},[]),a.createElement("div",{ref:Et,className:ne()("XtermText-valueRef",Be)})}function Xe(De){const{status:Be,error_msg:nt,output:Ke,input:Et,expected_output:Ct,is_file:nn,input_file_url:on,output_file_url:it,expected_output_file_url:lt}=De;let xt=null;const Jt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Be){case pe.h.NOMATCH:xt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!nn&&a.createElement(ut,{className:"mb10",value:Et}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(on,Et)},Et)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!nn&&a.createElement(ut,{className:"mb10",value:Ke&&ie.Base64.decode(Ke)||""}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(it,Ke)},Ke)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!nn&&a.createElement(ut,{className:"mb10",value:Ct&&ie.Base64.decode(Ct)||""}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(lt,Ct)},Ct)));break;case pe.h.EXECUTEFAILURE:xt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!nn&&a.createElement(le.Z,{value:Et,style:Jt}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(on,Et)},Et)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.COMPILEFAILURE:xt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!nn&&a.createElement(le.Z,{value:Et,style:Jt}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(on,Et)},Et)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.PODFAILURE:xt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:xt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",xt," ")}function mt(De){const{status:Be,error_msg:nt,execute_time:Ke,output:Et,input:Ct,expected_output:nn,is_file:on,input_file_url:it,output_file_url:lt,expected_output_file_url:xt}=De;let Jt=null;switch(Be){case pe.h.OK:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ke,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(Et)));break;case pe.h.NOMATCH:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Ct)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",Et&&ie.Base64.decode(Et)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",nn&&ie.Base64.decode(nn)));break;case pe.h.EXECUTEFAILURE:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.COMPILEFAILURE:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.PODFAILURE:Jt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Jt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Jt," ")}var Ae=({id:De,is_file:Be,input:nt,debuging:Ke,submitting:Et,executingMessage:Ct,debugResult:nn,onChangeInput:on,onDebugCode:it,onSubmitCode:lt})=>{const[xt,Jt]=(0,z.useReducer)(Me,xe),{visible:Vt,tabIndex:xn}=xt;(0,z.useEffect)(()=>{Jt({type:0,payload:!1})},[De]);function He(Ln){let Gt=Ln.target.id;Jt({type:1,payload:Gt})}function un(){Jt({type:0,payload:!Vt})}const kn=(0,z.useMemo)(()=>{if(nn){const{status:Ln}=nn;return a.createElement(a.Fragment,null,mt(nn))}return null},[nn]);function nr(){Jt({type:0,payload:!0}),Jt({type:1,payload:"1"}),it()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Vt?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(se.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(_e,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:Be?"":nt,onChange:on}),rightNode:Ke?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):nn?kn:a.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),a.createElement("a",{className:`btn-collapse ${Vt?"up":""}`,onClick:un},Vt?a.createElement(ve.Z,null):a.createElement(he.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(Pe.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(Pe.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(Pe.ZP,{className:"btn-green",type:"ghost",loading:Ke,onClick:nr},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(Pe.ZP,{type:"primary",className:"custom-ant-disabled",loading:Et,disabled:Et,onClick:()=>{Jt({type:0,payload:!1}),lt()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},11624:function(at,We,te){"use strict";te.r(We),te.d(We,{default:function(){return Ds}});var z=te(67294),fe=te(53555),Pe=te(32693),ve=te(35973),he=te(55054),pe=te(2453),ie=te(14446),de=te(57953),le=te(42563),ue=te(33227),se=te(60076),me=te(11320),re=te(55304),ne=te(72565),a=te(36295),y=te(76621),E=te(40471),b=te(21434),x=te(67294),ee=Object.defineProperty,oe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=(Oe,je,Ge)=>je in Oe?ee(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,we=(Oe,je)=>{for(var Ge in je||(je={}))Se.call(je,Ge)&&xe(Oe,Ge,je[Ge]);if(ce)for(var Ge of ce(je))_e.call(je,Ge)&&xe(Oe,Ge,je[Ge]);return Oe},Fe=(Oe,je)=>oe(Oe,ae(je));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var ut=(Oe=>(Oe[Oe.set_font_size=0]="set_font_size",Oe[Oe.set_theme=1]="set_theme",Oe[Oe.on_tab_to_space=2]="on_tab_to_space",Oe[Oe.set_show_editor_setting=3]="set_show_editor_setting",Oe))(ut||{});function Xe(Oe,je){switch(je.type){case 3:return Fe(we({},Oe),{showEditorSetting:je.payload});case 1:return Fe(we({},Oe),{theme:je.payload});case 0:return Fe(we({},Oe),{fontSize:je.payload});case 2:return Fe(we({},Oe),{tabToSpace:je.payload});default:throw new Error}}var mt=({isLoading:Oe,value:je,onChange:Ge,language:vr,onUpdateCode:wn,ActionBarRender:en=En=>x.createElement(Ae,{onShowCodeSetting:En})})=>{const[En,Qt]=(0,z.useReducer)(Xe,Me),{theme:Sn,fontSize:Kn,showEditorSetting:Do,tabToSpace:Mr}=En,Io=(0,z.useRef)(),Hr=(0,z.useRef)(),bo={onFontSizeChange:Ho=>{Qt({type:0,payload:Ho}),(0,E.t)("cmFontSize",Ho)},tabToSpace:Mr,cmFontSize:Kn,className:"oj",cmCodeMode:Sn,onTabToSpace:Ho=>{Qt({type:2,payload:Ho}),(0,E.t)("cmTabToSpace",Ho)},onCodeModeChange:Ho=>{Qt({type:1,payload:Ho}),(0,E.t)("cmCodeMode",Ho)}};function Ir(){Qt({type:3,payload:!1})}function ea(){Qt({type:3,payload:!0})}const Lo={value:je,language:vr,theme:Sn,height:"calc(100% - 56px)",options:{fontSize:Kn,insertSpaces:Mr},onChange:Ho=>{Ge(Ho),Hr.current=Ho,clearTimeout(Io.current),Io.current=setTimeout(()=>{wn(Hr.current)},1e4)},onEditBlur:Ho=>{Hr.current&&wn(Hr.current)}};return x.createElement(z.Fragment,null,x.createElement("div",{className:"code-panel-container"},en(ea),!Oe&&x.createElement(a.ZP,we({},Lo))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Do,onClose:Ir},x.createElement(b.Z,we({},bo)))))};function Ae({onShowCodeSetting:Oe}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Oe},x.createElement("i",{className:"iconfont icon-shezhi"})))}var De=te(19575),Be=te(77969),nt=te(72971),Ke=te(11486),Et=te(91773),Ct=te(71577);const{TextArea:nn}=Ke.default,on=5e3;var it=({callback:Oe,onCancel:je,notes:Ge})=>{function vr(wn){Oe(wn)}return z.createElement(Et.default,{className:"note-form-panel",onFinish:vr,initialValues:{notes:Ge}},z.createElement(Et.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:on,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${on}`}]},z.createElement(nn,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),z.createElement(Et.default.Item,{style:{textAlign:"right"}},z.createElement(Ct.ZP,{type:"ghost",onClick:je,style:{marginRight:10}}," \u53D6\u6D88 "),z.createElement(Ct.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},lt={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},xt={pagination:"pagination___npPu7",info:"info___aRH6C"},Jt=te(86129),Vt=te(34435),xn=te(3407),He=te(87462),un={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"},kn=un,nr=te(43387),Ln=function(je,Ge){return z.createElement(nr.Z,(0,He.Z)({},je,{ref:Ge,icon:kn}))},Gt=z.forwardRef(Ln),Je=te(94189),Qe=te(28706),_t=te(27484),Rt=te.n(_t);const{Column:Yt}=Jt.default;var gt=({submitResult:Oe,submitting:je,submitRecords:Ge,page:vr,onPageChange:wn,topicId:en})=>{const{status:En,id:Qt,input:Sn,output:Kn,expected_output:Do,is_file:Mr,input_file_url:Io,output_file_url:Hr,expected_output_file_url:bo,error_msg:Ir}=Oe||{},{records:ea,records_count:Lo}=Ge||{},Ho=(0,ve.useParams)();function zo(){Mr?(0,Qe.vQ)(De.Base64.decode(Ir)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Qe.vQ)(De.Base64.decode(Kn)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return z.createElement(de.Z,{spinning:je,tip:"\u8BC4\u6D4B\u4E2D...",indicator:z.createElement(xn.Z,{style:{fontSize:24},spin:!0})},Qt?z.createElement(z.Fragment,null,z.createElement("ul",{className:xt.info},z.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",z.createElement("span",{className:En===Je.h.OK?"c-green":"c-red"},nt.Im[En])),z.createElement("li",{className:xt.error},z.createElement("a",{onClick:zo},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",z.createElement(Gt,null)," ")),z.createElement("li",null,z.createElement(ve.Link,{to:`/problems/${en}/record-detail/${Qt}?backId=${Ho==null?void 0:Ho.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),En!==Je.h.OK?z.createElement(z.Fragment,null,z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),z.createElement("pre",null,!Mr&&Sn,Mr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Qe.LR)(Io,Sn)},Sn)),z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),z.createElement("pre",null,(En===4||En===5)&&De.Base64.decode(Ir),En!=4&&En!=5&&(Mr?z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Qe.LR)(Hr,Kn)},Kn):De.Base64.decode(Kn))),z.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),z.createElement("pre",null,!Mr&&De.Base64.decode(Do),Mr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Qe.LR)(bo,Do)},Do))):null):null,(ea==null?void 0:ea.length)>0?z.createElement(Jt.default,{dataSource:ea,rowKey:"id",pagination:!1},z.createElement(Yt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(wr,li)=>z.createElement("span",null," ",Rt()(wr).format("YYYY-MM-DD HH:mm:ss"))}),z.createElement(Yt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(wr,li)=>{var Vn;return z.createElement(ve.Link,{className:wr===0?"c-green":"c-red",to:`/problems/${en}/record-detail/${li.id}?backId=${Ho==null?void 0:Ho.save_identifier}`},(Vn=nt.Im[wr])==null?void 0:Vn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),z.createElement(Yt,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),z.createElement(Yt,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),z.createElement(Yt,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,Lo>15?z.createElement(Vt.Z,{className:xt.pagination,current:vr,pageSize:15,total:Lo,onChange:wn}):null)},wt=te(26194),Dt=te(66309),tt=te(93421),fn={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},hn=te(85725),$n=te(67294);const no={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var rt=({hack:Oe,onTriggerPraise:je,toDiscuss:Ge})=>{const{language:vr,difficulty:wn,time_limit:en,username:En,user_path:Qt,user_praise:Sn,comments_count:Kn,praises_count:Do,description:Mr,pass_count:Io,submit_count:Hr}=Oe,bo=(0,ve.useLocation)();console.log(Oe.language,"language");const Ir=no[wn];return $n.createElement($n.Fragment,null,$n.createElement("ul",{className:fn.info},$n.createElement("li",null,"\u96BE\u5EA6\uFF1A",$n.createElement(Dt.default,{color:Ir==null?void 0:Ir.color},Ir==null?void 0:Ir.name)),$n.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",$n.createElement("b",null,en,"\u79D2"))),$n.createElement(hn.Z,{value:Mr,className:fn.desc}),$n.createElement("ul",{className:fn["commit-info"]},$n.createElement("li",null,$n.createElement(tt.Z,{size:4},$n.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",$n.createElement("b",null,Io))),$n.createElement("li",null,$n.createElement(tt.Z,{size:4},$n.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",$n.createElement("b",null,Hr))," "),$n.createElement("li",{style:{flex:"1 0 0"}}),$n.createElement("li",null,$n.createElement(tt.Z,{size:4},$n.createElement("i",{className:"iconfont icon-huifu1",onClick:Ge})," ",$n.createElement("b",null,Kn))," ")))},vt=te(33054),An=Object.defineProperty,Zt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Xt=(Oe,je,Ge)=>je in Oe?An(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,qn=(Oe,je)=>{for(var Ge in je||(je={}))yt.call(je,Ge)&&Xt(Oe,Ge,je[Ge]);if(Zt)for(var Ge of Zt(je))Nn.call(je,Ge)&&Xt(Oe,Ge,je[Ge]);return Oe};const Br=Oe=>React.createElement("svg",qn({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u5C55\u5F00\u9898\u76EE"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"show_svg__a"},React.createElement("stop",{stopColor:"#EEF7FF",offset:"0%"}),React.createElement("stop",{stopColor:"#C1E2FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#show_svg__a)",width:40,height:40,rx:8}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M16.057 20.784H8.238A1.22 1.22 0 0 0 7 21.974v6.811a1.22 1.22 0 0 0 1.238 1.19h7.819a1.213 1.213 0 0 0 1.238-1.19v-6.811a1.213 1.213 0 0 0-.376-.847 1.203 1.203 0 0 0-.862-.332v-.01Zm-1.25 6.769H9.423V23.12h5.384v4.433Z",fill:"#4CACFF"}),React.createElement("path",{d:"M16.057 10.005a1.22 1.22 0 0 1 1.238 1.189v6.812a1.213 1.213 0 0 1-.376.846c-.232.222-.542.34-.862.332H8.238A1.213 1.213 0 0 1 7 18.005v-6.811a1.22 1.22 0 0 1 1.238-1.19Zm-1.239 2.41H9.434v4.401h5.384v-4.4Z",fill:"#94CDFF"}),React.createElement("path",{d:"M20.418 12.632h11.189a1.213 1.213 0 0 0 1.238-1.179 1.224 1.224 0 0 0-.371-.857 1.214 1.214 0 0 0-.867-.343H20.418a1.203 1.203 0 0 0-.866.336c-.233.223-.367.53-.372.854.005.323.14.63.372.854.232.223.544.344.866.335ZM31.575 16.027h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 21.595h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 27.163h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557Z",fill:"#1890FF"}))));var or="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",Gn=te(33170);function ir(Oe){return(0,Gn.U2)("comments.json",Oe)}function So(Oe){return(0,Gn.v_)(`/discusses/${Oe}/plus.json`,{container_type:"Discuss",type:1})}function On(Oe){return(0,Gn.v_)("comments/reply.json",Oe)}function qr(Oe){return(0,Gn.v_)("comments.json",Oe)}function Yo(Oe){return(0,Gn.v_)(`comments/${Oe==null?void 0:Oe.id}/hidden.json`,Oe)}function Zo(Oe){return(0,Gn.IV)(`comments/${Oe==null?void 0:Oe.id}.json`)}var qo=te(93989),yr=te(52262);function xo({author:Oe}){return z.createElement("a",{href:`/users/${Oe.login}`,target:"_blank"},z.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${Oe.image_url}`,width:"50"}))}function Wo({data:Oe,index:je,parentDiscussIndex:Ge,user:vr,onSetActionType:wn}){const{author:en,can_delete:En,content:Qt,id:Sn,time:Kn}=Oe;function Do(){wn({id:Sn,index:je,type:"delete-discuss",parentDiscussIndex:Ge,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Mr=vr.admin||En||en.user_id===vr.user_id;return z.createElement("div",{className:"discuss-item-container second-discuss "},z.createElement(xo,{author:en}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${en.login}`,target:"_blank"},en.name),z.createElement("span",{className:"grey"},Kn),z.createElement("div",{className:"btn-group",style:{marginBottom:0}},Mr?z.createElement("a",{onClick:Do,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null)),z.createElement(hn.Z,{className:"discuss-content",value:Qt})))}var Wi=({user:Oe,data:je,index:Ge,onPlusDiscuss:vr,onSetActionType:wn,activeDiscussIndex:en,onReplyDiscuss:En,onSetActiveDiscussIndex:Qt})=>{const{content:Sn,children:Kn,hidden:Do,id:Mr,praise_count:Io,time:Hr,user_praise:bo,can_delete:Ir,author:ea}=je;console.log(Ir&&(!Kn||Kn.length==0),"children22");function Lo(){Qt(Mr)}function Ho(){vr(Mr,!bo,Ge)}function zo(){wn({id:Mr,index:Ge,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function wr(){wn({id:Mr,index:Ge,params:{hidden:Do?"0":"1"},type:"hidden-discuss",message:Do?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const li=Oe.admin||Oe.user_id===ea.user_id;return z.createElement("div",{className:"discuss-item-container",key:Mr},z.createElement(xo,{author:ea}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${ea.login}`,target:"_blank"}," ",ea.name," "),z.createElement("span",{className:"grey"},Hr)),z.createElement(hn.Z,{className:"discuss-content",value:Sn}),Kn&&Kn.length>0?z.createElement("div",{className:"reply-discuss-container"},Kn.map((Vn,Di)=>z.createElement(Wo,{key:Vn.id,data:Vn,index:Di,user:Oe,onSetActionType:wn,parentDiscussIndex:Ge}))):null,z.createElement("div",{className:"btn-group"},(0,yr.Ny)()?z.createElement("a",{onClick:wr,title:Do?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},z.createElement("i",{className:Do?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Ir&&(!Kn||Kn.length==0)?z.createElement("a",{onClick:zo,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null,z.createElement("a",{onClick:Lo,title:"\u56DE\u590D"}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," "),z.createElement("a",{onClick:Ho,className:bo?"c-orange":""},z.createElement("i",{className:bo?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),z.createElement("span",null,Io||""))),z.createElement(qo.Z,{id:Mr,activeDiscussIndex:en,onReplyDiscuss:En})))},$i=te(30676),Ci=te(35567),ei=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),po=({user_praise:Oe,praise_count:je,praisePlus:Ge,onCreateDiscuss:vr,discuss_count:wn})=>{const[en,En]=(0,z.useState)(!1),[Qt,Sn]=(0,z.useState)("");function Kn(Hr){Sn(Hr)}function Do(){En(!0)}function Mr(){En(!1)}function Io(){return ei(this,null,function*(){vr(Qt),Sn(""),En(!1)})}return z.createElement("div",{className:`dis-input-editor-container ${en?"active":""} `},z.createElement("div",{className:en?"text-area hide":"text-area"},z.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Do}),z.createElement("a",{style:{alignItems:"center"}}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",wn," "),z.createElement("a",{className:"c-light-black",onClick:Ge,style:{alignItems:"center"},title:Oe?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},z.createElement("i",{className:`mr3 ${Oe?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),je?z.createElement("span",null,je):"")),en?z.createElement("div",{className:"input-mask",onClick:Mr}):null,z.createElement("div",{className:en?"md-container":"md-container hide"},z.createElement(Ci.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Qt,height:240,onChange:Kn}),z.createElement("div",{className:"tip-container",onClick:Mr},z.createElement("a",{className:"btn-send",onClick:Io}," \u53D1\u9001 "))))},co=Object.defineProperty,Ta=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Le=(Oe,je,Ge)=>je in Oe?co(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Ne=(Oe,je)=>{for(var Ge in je||(je={}))ye.call(je,Ge)&&Le(Oe,Ge,je[Ge]);if(ge)for(var Ge of ge(je))be.call(je,Ge)&&Le(Oe,Ge,je[Ge]);return Oe},et=(Oe,je)=>Ta(Oe,yn(je)),ct=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())});const _n={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var rn=(Oe=>(Oe[Oe.GET_DISCUSSES=0]="GET_DISCUSSES",Oe[Oe.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Oe[Oe.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Oe[Oe.PLUS_DISCUSS=3]="PLUS_DISCUSS",Oe[Oe.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Oe[Oe.SET_PAGE=5]="SET_PAGE",Oe[Oe.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Oe))(rn||{});function In(Oe,je){switch(je.type){case 6:return et(Ne({},Oe),{loading:!0});case 0:return Ne(Ne({},Oe),je.payload);case 1:return Ne(Ne({},Oe),je.payload);case 4:return Ne(Ne({},Oe),je.payload);case 3:return Ne(Ne({},Oe),je.payload);case 5:return Ne(Ne({},Oe),je.payload);case 2:return Ne(Ne({},Oe),je.payload);default:throw new Error}}var pr=({user:Oe,identifier:je,hack:Ge,onTriggerPraise:vr,setDiscussTotal:wn})=>{const[en,En]=(0,z.useReducer)(In,_n),{loading:Qt,page:Sn,data:Kn,count:Do,actionType:Mr,activeDiscussIndex:Io}=en;console.log("---",en);const Hr=(0,z.useCallback)(()=>ct(void 0,null,function*(){En({type:6});const Vn=yield ir({container_type:"Practice",container_identifier:je,limit:10,page:Sn}),{comments:Di,disscuss_count:Jo}=Vn;En({type:0,payload:{data:Di,count:Jo,loading:!1}}),wn(Jo)}),[Sn,je]);(0,z.useEffect)(()=>{Hr()},[je,Sn]);function bo(Vn){En({type:5,payload:{page:Vn}})}function Ir(Vn){En({type:4,payload:{actionType:Vn}})}function ea(Vn){En(Io===Vn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Vn}})}function Lo(Vn,Di,Jo){return ct(this,null,function*(){try{const ha=yield So(Vn);Kn[Jo].user_praise=Di,Kn[Jo].praise_count=ha.praise_count,En({type:3,payload:{data:[...Kn]}})}catch(ha){console.log(ha)}})}function Ho(){return ct(this,null,function*(){const{id:Vn,params:Di,type:Jo,index:ha,parentDiscussIndex:Ma}=Mr;Jo==="hidden-discuss"&&(console.log(Di,"params"),yield Yo(Ne({id:Vn,container_type:"Practice",container_identifier:je},Di)),Ma?Kn[Ma].children[ha].hidden=Di.hidden==1:Kn[ha].hidden=Di.hidden==1,En({type:4,payload:{actionType:null,data:[...Kn]}})),Jo==="delete-discuss"&&(yield Zo({id:Vn,container_type:"Practice",container_identifier:je}),En({type:4,payload:{actionType:null}}),yield Hr())})}function zo(){En({type:4,payload:{actionType:null}})}function wr(Vn,Di){return ct(this,null,function*(){try{yield On({container_type:"Practice",container_identifier:je,comments:{content:Di,parent_id:Vn}}),Hr()}catch(Jo){console.log(Jo)}})}function li(Vn){return ct(this,null,function*(){En({type:6}),yield qr({comments:{content:Vn},container_type:"Practice",container_identifier:je}),Hr()})}return z.createElement(z.Fragment,null,z.createElement("div",{className:"discuss-panel"},Kn.length===0?z.createElement(wt.Z,null):z.createElement(de.Z,{spinning:Qt},Kn.map((Vn,Di)=>z.createElement(Wi,{onReplyDiscuss:wr,onPlusDiscuss:Lo,onSetActiveDiscussIndex:ea,onSetActionType:Ir,data:Vn,index:Di,user:Oe,activeDiscussIndex:Io}))),Do>10?z.createElement("div",{className:"pagination-container mt10 mb10"},z.createElement(Vt.Z,{showQuickJumper:!0,onChange:bo,current:Sn,total:Do,showTotal:Vn=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},Vn),"\u6761\u6570\u636E")})):null),z.createElement(po,{user_praise:Ge.user_praise,praise_count:Ge.praises_count,praisePlus:vr,discuss_count:Ge.comments_count,onCreateDiscuss:li}),z.createElement(y.Z,null,z.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Mr,onOk:Ho,onCancel:zo},z.createElement("p",null,Mr?Mr.message:"")),z.createElement($i.Z,null)))},_r={flex_box_center:"flex_box_center___tosr6",flex_space_between:"flex_space_between___cQaTP",flex_box_vertical_center:"flex_box_vertical_center___uovxL",flex_box_center_end:"flex_box_center_end___b4gLY",flex_box_column:"flex_box_column___Umjm_",wrap:"wrap___sgoJE",head:"head___b9a9v",sort:"sort___L2Zw8",btn:"btn___khuE4",listWarp:"listWarp___zZj6C",pagination:"pagination___XlROP",fixedRight:"fixedRight___MuAXo","oj-width-input":"oj-width-input___RsZb6"},Mt={flex_box_center:"flex_box_center___EahWI",flex_space_between:"flex_space_between___zopS4",flex_box_vertical_center:"flex_box_vertical_center___w03mz",flex_box_center_end:"flex_box_center_end___lr0Fp",flex_box_column:"flex_box_column___KFHVi",active:"active___BczOO",line:"line___VC_Ry",list:"list___n9ABd",left:"left___LVHqw",mask:"mask___fP13z",right:"right___iLe52",name:"name___Oz_7h",title:"title___2Sess",a:"a___t7rIW",b:"b___Kb_45",des:"des___CjMBM",tag:"tag___V0PVb"},ur=Object.defineProperty,er=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,sr=(Oe,je,Ge)=>je in Oe?ur(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Zr=(Oe,je)=>{for(var Ge in je||(je={}))Tn.call(je,Ge)&&sr(Oe,Ge,je[Ge]);if(er)for(var Ge of er(je))Un.call(je,Ge)&&sr(Oe,Ge,je[Ge]);return Oe};const xr=Oe=>React.createElement("svg",Zr({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u89C2\u770B"),React.createElement("path",{d:"M11 0a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h10ZM4.4 2.4a.4.4 0 0 0-.4.4v4.4a.4.4 0 0 0 .64.32l2.72-2.04a.6.6 0 0 0 0-.96L4.64 2.48a.4.4 0 0 0-.24-.08Z",fill:"#FFF",fillRule:"evenodd"}));var Gi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Xo=Object.defineProperty,br=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,ti=(Oe,je,Ge)=>je in Oe?Xo(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,hi=(Oe,je)=>{for(var Ge in je||(je={}))_o.call(je,Ge)&&ti(Oe,Ge,je[Ge]);if(br)for(var Ge of br(je))wi.call(je,Ge)&&ti(Oe,Ge,je[Ge]);return Oe};const pn=Oe=>React.createElement("svg",hi({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var Ya="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Ti=Object.defineProperty,Bo=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Sr=(Oe,je,Ge)=>je in Oe?Ti(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Kr=(Oe,je)=>{for(var Ge in je||(je={}))Aa.call(je,Ge)&&Sr(Oe,Ge,je[Ge]);if(Bo)for(var Ge of Bo(je))Bn.call(je,Ge)&&Sr(Oe,Ge,je[Ge]);return Oe};const lr=Oe=>React.createElement("svg",Kr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u70B9\u8D5E2"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#0152d9"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#B6D0FC"})));var ci="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Li=Object.defineProperty,ra=Object.getOwnPropertySymbols,Oa=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,ft=(Oe,je,Ge)=>je in Oe?Li(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,dt=(Oe,je)=>{for(var Ge in je||(je={}))Oa.call(je,Ge)&&ft(Oe,Ge,je[Ge]);if(ra)for(var Ge of ra(je))$a.call(je,Ge)&&ft(Oe,Ge,je[Ge]);return Oe};const zt=Oe=>React.createElement("svg",dt({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u8BC4\u8BBA1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M4.717.01h8.84c1.571 0 2.357.777 2.357 2.332v5.25c0 1.556-.786 2.334-2.357 2.334h-8.84c-1.572 0-2.357-.778-2.357-2.334v-5.25C2.36.787 3.145.01 4.717.01Z",fill:"#999"}),React.createElement("path",{d:"M2.36 2.342h8.84a2.37 2.37 0 0 1 1.666.684c.442.437.69 1.03.69 1.65v5.25c0 1.288-1.055 2.333-2.357 2.333H7.94l-1.16 1.153-1.167-1.153H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65v-5.25c0-.62.248-1.213.69-1.65a2.37 2.37 0 0 1 1.667-.684Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M2.36 2.926h8.84c1.301 0 2.357 1.044 2.357 2.333v5.25c0 .619-.249 1.212-.69 1.65a2.37 2.37 0 0 1-1.668.683H7.94l-1.16 1.154-1.167-1.154H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65V5.26c0-.619.248-1.212.69-1.65a2.37 2.37 0 0 1 1.667-.683Z",fill:"#CCC"}),React.createElement("path",{d:"M3.538 5.842h6.483c.393 0 .589.195.589.584 0 .389-.196.583-.59.583H3.539c-.393 0-.59-.194-.59-.583 0-.39.197-.584.59-.584ZM3.538 8.76h4.715c.393 0 .59.194.59.582 0 .39-.197.584-.59.584H3.538c-.393 0-.59-.195-.59-.584 0-.388.197-.583.59-.583Z",fill:"#FFF"})));var qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Mn=Object.defineProperty,Nr=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,uo=(Oe,je,Ge)=>je in Oe?Mn(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Mo=(Oe,je)=>{for(var Ge in je||(je={}))Tr.call(je,Ge)&&uo(Oe,Ge,je[Ge]);if(Nr)for(var Ge of Nr(je))Wr.call(je,Ge)&&uo(Oe,Ge,je[Ge]);return Oe};const Qo=Oe=>React.createElement("svg",Mo({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u67E5\u770B1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.965 11.961C2.593 11.961 0 6.926 0 5.981 0 5.035 2.623 0 7.965 0s7.965 4.984 7.965 5.98c0 .997-2.593 5.981-7.965 5.981Zm0-2.208c1.296 0 2.494-.72 3.142-1.886a3.902 3.902 0 0 0 0-3.773c-.648-1.167-1.846-1.886-3.142-1.886-2.004 0-3.629 1.69-3.629 3.773s1.625 3.772 3.629 3.772Z",fill:"#CCC"}),React.createElement("path",{d:"M7.965 8.28c-1.222 0-2.213-1.029-2.213-2.3 0-1.27.991-2.3 2.213-2.3s2.212 1.03 2.212 2.3c0 1.271-.99 2.3-2.212 2.3Z",fill:"#999"})));var mi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",oa=({style:Oe={},onClick:je,onAssist:Ge,onHide:vr,data:wn,active:en,showLine:En})=>z.createElement(z.Fragment,null,z.createElement("div",{className:en===(wn==null?void 0:wn.id)?`${Mt.list} ${Mt.active}`:Mt.list,style:Oe,onClick:()=>je(wn)},(wn==null?void 0:wn.video)&&z.createElement("div",{className:Mt.left},z.createElement("img",{src:wn==null?void 0:wn.video_cover}),z.createElement("div",null,z.createElement("img",{src:Gi}),z.createElement("span",null,wn==null?void 0:wn.video_duration)),z.createElement("div",{className:Mt.mask})),z.createElement("div",{className:Mt.right},z.createElement("div",{className:Mt.name},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(wn==null?void 0:wn.image_url),width:30,height:30}),z.createElement("div",{title:wn==null?void 0:wn.name,className:Mt.title},wn==null?void 0:wn.name),(wn==null?void 0:wn.is_authority)&&z.createElement("div",{className:Mt.b},"\u5B98\u65B9"),(wn==null?void 0:wn.is_excellent)&&z.createElement("div",{className:Mt.a},"\u7CBE\u9009")),z.createElement("div",{className:Mt.des},z.createElement(hn.Z,{showLines:2,showTextOnly:!0,value:(wn==null?void 0:wn.content)||"\u6682\u65E0\u5185\u5BB9"})),z.createElement("div",{className:Mt.tag},z.createElement("span",{className:"current",onClick:Qt=>{Qt.stopPropagation(),Ge(wn)}},z.createElement("img",{src:wn!=null&&wn.user_liker?ci:Ya}),z.createElement("span",{style:{color:wn!=null&&wn.user_liker?"#0152d9":"#656f87"}},wn==null?void 0:wn.praises_count)),z.createElement("span",null,z.createElement("img",{src:qt}),z.createElement("span",null,wn==null?void 0:wn.discusses_count)),z.createElement("span",null,z.createElement("img",{src:mi}),z.createElement("span",null,wn==null?void 0:wn.viewed_count)),(0,yr.Ny)()&&z.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:Qt=>{Qt.stopPropagation(),vr(wn)}},wn!=null&&wn.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),En&&z.createElement("div",{className:Mt.line})),vo={flex_box_center:"flex_box_center___C6sVF",flex_space_between:"flex_space_between___VEt8l",flex_box_vertical_center:"flex_box_vertical_center___qeD5F",flex_box_center_end:"flex_box_center_end___iYJd9",flex_box_column:"flex_box_column___iAKJf",listForm:"listForm___leDJL",scroll:"scroll___wtFaF",formWrap:"formWrap___p3W41",btns:"btns___Izl4q",main:"main___xTqlG",mainLoading:"mainLoading___QLa9s",tip:"tip___a0tbY",proWarp:"proWarp___BZhOt",pro:"pro___Yp1Rx",mainSucceed:"mainSucceed___HfaTf",del:"del___TXGhB"},yi=te(83062),Mi=Object.defineProperty,pi=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Lt=(Oe,je,Ge)=>je in Oe?Mi(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,jt=(Oe,je)=>{for(var Ge in je||(je={}))Pa.call(je,Ge)&&Lt(Oe,Ge,je[Ge]);if(pi)for(var Ge of pi(je))St.call(je,Ge)&&Lt(Oe,Ge,je[Ge]);return Oe};const $e=Oe=>React.createElement("svg",jt({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u4E0A\u4F20\u89C6\u9891"),React.createElement("path",{d:"M1.6 0C1.175 0 .768.17.468.474A1.63 1.63 0 0 0 0 1.622v3.243h3.237L7.378 0H1.6Zm7.876 0L5.338 4.865h5.9L15.371 0H9.476Zm7.998 0-4.137 4.865h5.896L23.372 0h-5.898Zm8 0-4.138 4.865h6.66V1.622a1.629 1.629 0 0 0-.467-1.148A1.585 1.585 0 0 0 26.397 0h-.924ZM0 6.487v17.837c0 .43.167.844.468 1.148.3.305.707.475 1.132.474h18.61a6.515 6.515 0 0 1 1.652-6.218 6.31 6.31 0 0 1 6.134-1.675V6.487H0Zm11.998 5.675 6.4 4.056-6.4 4.055v-8.11Zm14.399 6.487c-3.092.002-5.597 2.544-5.595 5.678.001 3.134 2.508 5.674 5.6 5.673C29.494 30 32 27.458 32 24.324c0-1.506-.59-2.95-1.641-4.014a5.561 5.561 0 0 0-3.962-1.661Zm0 2.027c.22.003.428.1.574.266.663.6 1.327 1.352 1.99 2.002a.8.8 0 0 1 0 1.14.788.788 0 0 1-1.125 0l-.638-.646v3.724a.814.814 0 0 1-.392.724.79.79 0 0 1-.815 0 .814.814 0 0 1-.392-.724v-3.724l-.637.646a.79.79 0 0 1-.773.215.803.803 0 0 1-.567-.575.816.816 0 0 1 .212-.783c.651-.664 1.333-1.388 1.99-2.002a.778.778 0 0 1 .575-.266l-.002.003Z",fill:"#0152d9",fillRule:"nonzero"}));var Wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",bn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,It=(Oe,je,Ge)=>je in Oe?bn(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Ft=(Oe,je)=>{for(var Ge in je||(je={}))Nt.call(je,Ge)&&It(Oe,Ge,je[Ge]);if(Rn)for(var Ge of Rn(je))$t.call(je,Ge)&&It(Oe,Ge,je[Ge]);return Oe};const Tt=Oe=>React.createElement("svg",Ft({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u4E0A\u4F20\u6210\u529F"),React.createElement("path",{d:"M15 0c8.285 0 15 6.717 15 15 0 8.285-6.715 15-15 15-8.283 0-15-6.715-15-15C0 6.717 6.717 0 15 0Zm10.041 7.5v.01a47.934 47.934 0 0 0-11.232 9.386l-4.372-3.3v-.002L7.5 15.08l7.553 7.42A44.625 44.625 0 0 1 25.5 8.55l-.459-1.05Z",fill:"#44D7B6",fillRule:"nonzero"}));var Ht="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Kt=Object.defineProperty,jn=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Cn=(Oe,je,Ge)=>je in Oe?Kt(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,dr=(Oe,je)=>{for(var Ge in je||(je={}))tr.call(je,Ge)&&Cn(Oe,Ge,je[Ge]);if(jn)for(var Ge of jn(je))Pr.call(je,Ge)&&Cn(Oe,Ge,je[Ge]);return Oe};const ze=Oe=>React.createElement("svg",dr({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Oe),React.createElement("path",{fill:"#AFBACB",d:"M9.99.02C4.482.02.02 4.482.02 9.99c0 5.506 4.463 9.97 9.97 9.97 5.506 0 9.97-4.464 9.97-9.97 0-5.507-4.464-9.97-9.97-9.97Zm1.636 13.69c-.744 1.19-1.488 2.083-2.827 2.083-.893-.149-1.19-.744-1.042-1.488l1.637-5.506c0-.149 0-.298-.149-.298-.148 0-.446 0-.595.298l-1.042 1.19v-.744c.745-1.19 1.935-2.083 2.828-2.083.744.149 1.19.744 1.042 1.488L9.84 14.305c0 .149 0 .298.148.298.15 0 .447-.15.596-.298l1.041-1.34v.745Zm-.297-7.292c-.596 0-1.19-.446-1.19-1.19 0-.745.446-1.191 1.19-1.191.595 0 1.19.446 1.19 1.19 0 .745-.595 1.191-1.19 1.191Z"}));var ke="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",qe=te(95235),bt=Object.defineProperty,kt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,cn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,vn=(Oe,je,Ge)=>je in Oe?bt(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Zn=(Oe,je)=>{for(var Ge in je||(je={}))an.call(je,Ge)&&vn(Oe,Ge,je[Ge]);if(cn)for(var Ge of cn(je))mn.call(je,Ge)&&vn(Oe,Ge,je[Ge]);return Oe},Hn=(Oe,je)=>kt(Oe,Ut(je)),gr=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),Cr=({onClose:Oe,onOk:je,identifier:Ge,active:vr})=>{var wn,en;const[En]=Et.default.useForm(),[Qt,Sn]=(0,z.useState)({}),[Kn,Do]=(0,z.useState)(!1),[Mr,Io]=(0,z.useState)(!1),[Hr,bo]=(0,z.useState)([]),Ir=(0,yr.eY)(),ea=(0,ve.useParams)(),Lo=(0,z.useRef)();(0,z.useEffect)(()=>{vr&&Ho()},[vr]);const Ho=()=>gr(void 0,null,function*(){var $r,Ro,gi,$o,zs,vs,Cs,Rs,ws,cs;const ro=yield(0,ue.M3)(Ge,{active:vr});if((ro==null?void 0:ro.status)===0){const Si={name:($r=ro==null?void 0:ro.data)==null?void 0:$r.name,content:(Ro=ro==null?void 0:ro.data)==null?void 0:Ro.content};En.setFieldsValue(Si),Sn(Si),($o=(gi=ro==null?void 0:ro.data)==null?void 0:gi.videos)!=null&&$o[0]&&bo([{video_id:(Cs=(vs=(zs=ro==null?void 0:ro.data)==null?void 0:zs.videos)==null?void 0:vs[0])==null?void 0:Cs.video_id,name:(cs=(ws=(Rs=ro==null?void 0:ro.data)==null?void 0:Rs.videos)==null?void 0:ws[0])==null?void 0:cs.title,loaded:100}])}}),zo=($r,Ro)=>{Sn(Zn({},Ro))},wr=$r=>gr(void 0,null,function*(){const Ro={videos:Hr,articles:$r};Io(!0);let gi;vr?(Ro.active=vr,gi=yield(0,ue.gu)(Ge,Ro)):gi=yield(0,ue.bx)(Ge,Ro),(gi==null?void 0:gi.status)===0&&(console.log(vr||(gi==null?void 0:gi.id),44),je(vr||(gi==null?void 0:gi.id))),Io(!1)}),li=($r,Ro)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:z.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Ro?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Ro?bo([]):(Lo.current.cancel(),bo([]))}})},Vn=()=>z.createElement(qe.Z,Hn(Zn({},ca),{ref:Lo}),z.createElement("div",{className:vo.main},z.createElement("img",{src:Wt,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),Di=$r=>z.createElement("div",{className:vo.mainLoading},z.createElement("div",{className:vo.proWarp},z.createElement("div",{className:vo.pro},z.createElement("div",{style:{width:$r}})),z.createElement("span",null,$r||0,"%")),z.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),z.createElement("div",{className:vo.tip},z.createElement(yi.Z,{getPopupContainer:Ro=>Ro.parentNode,title:z.createElement("div",null,z.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",z.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),z.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),z.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},z.createElement("img",{src:ke,alt:""})))),Jo=$r=>z.createElement("div",{className:vo.mainSucceed},z.createElement("img",{src:Ht,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),z.createElement("div",{className:vo.tip},z.createElement(yi.Z,{getPopupContainer:Ro=>Ro.parentNode,title:z.createElement("div",null,z.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",z.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),z.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),z.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},z.createElement("img",{src:ke,alt:""}))),z.createElement("div",{className:vo.del,onClick:()=>li($r.name,$r.loaded==100)},z.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),ha=()=>z.createElement(z.Fragment,null,Hr==null?void 0:Hr.map(($r,Ro)=>z.createElement(z.Fragment,{key:Ro},$r.loaded==100?Jo($r):Di($r.loaded)))),Ma=()=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:Oe})},ca={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:$r=>{const gi=$r.name.toLowerCase();return gi&&gi.indexOf(".avi")==-1&&gi.indexOf(".flv")==-1&&gi.indexOf(".f4v")==-1&&gi.indexOf(".m4v")==-1&&gi.indexOf(".mov")==-1&&gi.indexOf(".mp4")==-1&&gi.indexOf(".rmvb")==-1&&gi.indexOf(".swf")==-1&&gi.indexOf(".webm")==-1&&gi.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):$r.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Hr!=null&&Hr.find($o=>$o.name===$r.name)?(pe.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},onBeginInitFile:$r=>{bo([{name:$r.filename,loaded:0}])},onComplete:$r=>{bo([{name:$r.filename,loaded:$r.percent,video_id:$r.id}])},onError:()=>{bo([])},onProgress:$r=>{bo([{name:$r.filename,loaded:$r.percent}])},chunkSize:1024*1024*2,options:{user_id:(wn=Ir==null?void 0:Ir.userInfo)==null?void 0:wn.user_id}},oi=Hr==null?void 0:Hr.length;return z.createElement("div",{className:vo.listForm},z.createElement("header",null,vr?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),z.createElement("section",{className:vo.scroll,id:"sss"},z.createElement("div",{className:vo.formWrap}," ",z.createElement(Et.default,{form:En,scrollToFirstError:!0,layout:"vertical",onValuesChange:zo,onFinish:wr},z.createElement(Et.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},z.createElement(Ke.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((en=Qt.name)==null?void 0:en.length)||0}/60`})),z.createElement(Et.default.Item,{name:"content",label:"\u5185\u5BB9:"},z.createElement(Ci.Z,{defaultValue:Qt.content||"",watch:!0})))),z.createElement("div",{className:vo.upload},oi?ha():Vn())),z.createElement("div",{className:vo.btns},z.createElement(Ct.ZP,{onClick:Ma,type:"primary",ghost:!0},"\u5173\u95ED"),z.createElement(Ct.ZP,{loading:Mr,disabled:Kn,onClick:()=>En.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Or={flex_box_center:"flex_box_center___Udvu8",flex_space_between:"flex_space_between___WNLp1",flex_box_vertical_center:"flex_box_vertical_center___ecch5",flex_box_center_end:"flex_box_center_end___cu_DJ",flex_box_column:"flex_box_column___zF2CU",listDetails:"listDetails___HpDwH",head:"head___wipEz",name:"name___qdH8S",title:"title___B0yUa",a:"a___LB6ZS",b:"b___yvOON",tag:"tag___bRCso",btn:"btn___akBxg",scroll:"scroll___JKC_q",video:"video___nEr4F",html:"html___GDNSx",g:"g___LSOhO",btns:"btns___Ci727"},so=te(4310),Co=Object.defineProperty,kr=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,Oo=(Oe,je,Ge)=>je in Oe?Co(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,ki=(Oe,je)=>{for(var Ge in je||(je={}))To.call(je,Ge)&&Oo(Oe,Ge,je[Ge]);if(kr)for(var Ge of kr(je))mo.call(je,Ge)&&Oo(Oe,Ge,je[Ge]);return Oe};const ma=Oe=>React.createElement("svg",ki({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Oe),React.createElement("defs",null,React.createElement("path",{id:"jx_svg__a",d:"M6.385.257c.616-.343 1.616-.342 2.23 0l5.27 2.94C14.501 3.538 15 4.38 15 5.071v5.856c0 .692-.501 1.533-1.115 1.876l-5.27 2.939c-.616.343-1.616.342-2.23 0l-5.27-2.94C.499 12.462 0 11.622 0 10.929V5.072C0 4.38.501 3.54 1.115 3.196Zm1.423 3.817c-.169-.341-.446-.341-.615 0L6.38 5.717c-.169.341-.616.665-.994.72l-1.82.264c-.378.055-.464.317-.19.583l1.317 1.278c.273.266.444.79.38 1.165l-.31 1.806c-.066.376.158.538.496.36l1.628-.853c.338-.177.89-.177 1.23 0l1.627.853c.337.177.561.015.497-.36l-.31-1.806c-.065-.375.105-.899.379-1.165l1.316-1.278c.274-.266.188-.529-.19-.583l-1.819-.264c-.377-.054-.825-.378-.994-.72Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"jx_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#jx_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#jx_svg__a"}),React.createElement("circle",{cx:-1.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"}),React.createElement("circle",{cx:-2.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"})));var vi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",ia=Object.defineProperty,ai=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,aa=(Oe,je,Ge)=>je in Oe?ia(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Xi=(Oe,je)=>{for(var Ge in je||(je={}))Ea.call(je,Ge)&&aa(Oe,Ge,je[Ge]);if(ai)for(var Ge of ai(je))Ki.call(je,Ge)&&aa(Oe,Ge,je[Ge]);return Oe};const Ga=Oe=>React.createElement("svg",Xi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Oe),React.createElement("defs",null,React.createElement("path",{id:"gf_svg__a",d:"m8 0 1.857 1.073h2.146l1.071 1.854L14.931 4v2.144L16 8l-1.069 1.857V12l-1.858 1.072-1.071 1.856H9.857L8 16l-1.855-1.073H4l-1.072-1.856L1.072 12V9.857L0 8l1.072-1.856V4l1.857-1.073 1.072-1.854h2.145L8 0Zm2.91 6.385H4.796V12h1.246v-.451h4.026v.435h1.247V9.196H6.043v-.515h4.866V6.385Zm-.84 3.681v.613H6.042v-.613h4.026ZM9.705 7.24v.588H6.043v-.588h3.663ZM8.615 4l-1.48.137c.055.133.12.284.192.453l.076.175H4v1.426h1.195v-.483h5.61v.483H12V4.765H8.883c-.078-.23-.148-.43-.21-.602L8.616 4Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"gf_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#gf_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#gf_svg__a"}),React.createElement("circle",{cx:.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"}),React.createElement("circle",{cx:-.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"})));var xa="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",da=Object.defineProperty,Fo=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,Ca=(Oe,je,Ge)=>je in Oe?da(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Xa=(Oe,je)=>{for(var Ge in je||(je={}))ni.call(je,Ge)&&Ca(Oe,Ge,je[Ge]);if(Fo)for(var Ge of Fo(je))mr.call(je,Ge)&&Ca(Oe,Ge,je[Ge]);return Oe};const Oi=Oe=>React.createElement("svg",Xa({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u5927\u70B9\u8D5E"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M3.566 19.08V8.134c0-.443-.318-.802-.71-.802H1.34c-.73 0-1.322.67-1.322 1.496v9.558c0 .827.593 1.496 1.322 1.496h1.515c.392 0 .71-.36.71-.802Z",fill:"#A3D3FF"}),React.createElement("path",{d:"M4.585 19.303V7.9c0-.263.188-.495.459-.559.955-.229 3.147-1.049 4.08-3.848.567-2.451 1.182-3.607 3.008-3.469 1.826.139 1.948 1.804 1.948 2.312v3.93s-.148.602.468.649c.617.046 5.426 0 5.426 0s2.639-.042 1.8 3.031c-.73 2.673-2.173 6.974-2.537 8.05a2.324 2.324 0 0 1-.324.626c-.353.483-1.094 1.258-2.228 1.258H5.201c-.341.002-.616-.257-.616-.577Z",fill:"#FFF"})));var ji="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",wa={flex_box_center:"flex_box_center___Fl60v",flex_space_between:"flex_space_between___bECvI",flex_box_vertical_center:"flex_box_vertical_center___NasnL",flex_box_center_end:"flex_box_center_end___llsAF",flex_box_column:"flex_box_column___KaTPF",discuss:"discuss___fk6PE",reply:"reply___pOmly",pagination:"pagination___qEsHX"},Ii=te(71230),_i=te(15746),bi={flex_box_center:"flex_box_center___qGmgZ",flex_space_between:"flex_space_between___PeDhE",flex_box_vertical_center:"flex_box_vertical_center___avs2o",flex_box_center_end:"flex_box_center_end___bpXQB",flex_box_column:"flex_box_column___bc5wd",discussItem:"discussItem___zcesj",wrap:"wrap___ezVW4",list:"list___EEOWp",btns:"btns___Niwl7",secondLevelDiscuss:"secondLevelDiscuss___TXG1b",line:"line___ejh2a",thirdlyLevelDiscuss:"thirdlyLevelDiscuss___HRI5Q"},Za=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())});const Ai=({id:Oe,cb:je})=>{const[Ge,vr]=(0,z.useState)("");return z.createElement("aside",{className:"mt10"},z.createElement(Ci.Z,{defaultValue:Ge,id:"writeForumsReviewId",onChange:wn=>{vr(wn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(Ii.Z,null,z.createElement(_i.Z,{flex:"1"}),z.createElement(_i.Z,null,z.createElement(Ct.ZP,{type:"primary",size:"middle",onClick:()=>Za(void 0,null,function*(){Ge===""?pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):je(Oe,Ge)})},"\u53D1\u9001"))))},Bi=({data:Oe})=>{var je;return z.createElement("div",{className:bi.thirdlyLevelDiscuss},z.createElement("span",{className:"c-grey-333"},z.createElement("span",{className:"font 14 c-light-primary"},(je=Oe==null?void 0:Oe.author)==null?void 0:je.name),"@",z.createElement("span",{className:"font 14 c-light-primary"},Oe==null?void 0:Oe.parent_name),":"),z.createElement(hn.Z,{value:Oe==null?void 0:Oe.content}))},pa=({data:Oe,onReplyDiscuss:je,thirdlyReply:Ge,setThirdlyReply:vr})=>{var wn,en,En,Qt;const Sn=(0,yr.eY)();return console.log(Sn,"user"),z.createElement("div",{className:bi.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((wn=Oe==null?void 0:Oe.author)==null?void 0:wn.image_url)}),z.createElement("div",{className:bi.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333"},(en=Oe==null?void 0:Oe.author)==null?void 0:en.name),(Sn==null?void 0:Sn.login)!==((En=Oe==null?void 0:Oe.author)==null?void 0:En.login)&&z.createElement("span",{onClick:()=>vr(Oe==null?void 0:Oe.id),className:"c-grey-999 current",style:{float:"right"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),z.createElement("span",null,"\u56DE\u590D"))),z.createElement(hn.Z,{value:Oe==null?void 0:Oe.content}),(Qt=Oe==null?void 0:Oe.children)==null?void 0:Qt.map(Kn=>z.createElement(Bi,{key:Kn.id,data:Kn})),Ge===(Oe==null?void 0:Oe.id)&&z.createElement("div",null,z.createElement(Ai,{id:Oe==null?void 0:Oe.id,cb:je}),z.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>vr(null),className:"c-light-primary current"},z.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),z.createElement("div",{className:bi.line})))};var Fs=({data:Oe,onReplyDiscuss:je,secondReply:Ge,setSecondReply:vr,thirdlyReply:wn,setThirdlyReply:en,onPlusDiscuss:En})=>{var Qt,Sn,Kn,Do;const[Mr,Io]=(0,z.useState)(!1);return console.log(Oe,"data"),z.createElement("div",{className:bi.discussItem},z.createElement("div",{className:bi.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((Qt=Oe==null?void 0:Oe.author)==null?void 0:Qt.image_url)}),z.createElement("div",{className:bi.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333 mr30"},(Sn=Oe==null?void 0:Oe.author)==null?void 0:Sn.name),z.createElement("span",{className:"c-grey-999"},Oe==null?void 0:Oe.time)),z.createElement(hn.Z,{value:Oe==null?void 0:Oe.content}),z.createElement("div",{className:bi.btns},z.createElement("div",{onClick:()=>En(Oe==null?void 0:Oe.id),className:Oe!=null&&Oe.user_praise?"c-light-primary":"c-grey-999"},z.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),z.createElement("span",null,Oe==null?void 0:Oe.praise_count)),z.createElement("div",{onClick:()=>{var Hr;((Hr=Oe==null?void 0:Oe.children)==null?void 0:Hr.length)!==0&&(vr(null),Io(!Mr))},style:{color:Mr?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),z.createElement("span",null,Mr?"\u6536\u8D77\u8BC4\u8BBA":(Kn=Oe==null?void 0:Oe.children)==null?void 0:Kn.length)),z.createElement("div",{onClick:()=>{Io(!1),vr(Ge===(Oe==null?void 0:Oe.id)?null:Oe==null?void 0:Oe.id)},style:{color:Ge===(Oe==null?void 0:Oe.id)?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3"}),z.createElement("span",null,Ge===(Oe==null?void 0:Oe.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Ge===(Oe==null?void 0:Oe.id)&&z.createElement(Ai,{id:Oe==null?void 0:Oe.id,cb:(Hr,bo)=>{je(Hr,bo),Io(!0)}}),Mr&&z.createElement("div",{className:bi.secondLevelDiscuss},(Do=Oe==null?void 0:Oe.children)==null?void 0:Do.map(Hr=>z.createElement(pa,{thirdlyReply:wn,setThirdlyReply:en,key:Hr.id,data:Hr,onReplyDiscuss:je}))))))},bs=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),hs=({identifier:Oe,active:je,onOk:Ge})=>{const[vr,wn]=(0,z.useState)(""),[en,En]=(0,z.useState)(1),[Qt,Sn]=(0,z.useState)([]),[Kn,Do]=(0,z.useState)(0),[Mr,Io]=(0,z.useState)(null),[Hr,bo]=(0,z.useState)(null);(0,z.useEffect)(()=>{Ir(1),En(1)},[je]);const Ir=wr=>bs(void 0,null,function*(){const li=yield ir({container_type:"QuestionSolutionArticle",container_identifier:je,limit:5,page:wr});li!=null&&li.comments&&(Sn((li==null?void 0:li.comments)||[]),En(wr),Do(li==null?void 0:li.disscuss_count))}),ea=()=>bs(void 0,null,function*(){if(vr===""){pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const wr=yield qr({comments:{content:vr},container_type:"QuestionSolutionArticle",container_identifier:je});wr!=null&&wr.discuss&&(wn(""),Ir(en),Ge())}),Lo=(wr,li,Vn)=>bs(void 0,null,function*(){const Di=yield On({container_type:"QuestionSolutionArticle",container_identifier:je,comments:{content:li,parent_id:wr}});Io(null),bo(null),Ir(en)}),Ho=wr=>bs(void 0,null,function*(){const li=yield So(wr);Ir(en)}),zo=wr=>{En(wr),Ir(wr)};return z.createElement("div",{className:wa.discuss},z.createElement("aside",{className:wa.reply,style:{borderWidth:Kn?1:0}},z.createElement(Ci.Z,{defaultValue:vr,id:"writeForumsReviewId",onChange:wr=>{wn(wr)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(Ii.Z,null,z.createElement(_i.Z,{flex:"1"}),z.createElement(_i.Z,null,z.createElement(Ct.ZP,{type:"primary",size:"middle",onClick:()=>ea()},"\u53D1\u9001")))),Qt==null?void 0:Qt.map(wr=>z.createElement(Fs,{secondReply:Mr,setSecondReply:Io,thirdlyReply:Hr,setThirdlyReply:bo,key:wr.id,data:wr,onReplyDiscuss:Lo,onPlusDiscuss:Ho})),z.createElement(Vt.Z,{className:wa.pagination,showTotal:wr=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},wr),"\u6761\u6570\u636E"),current:en,onChange:zo,total:Kn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},qa=te(6104),os=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable,rl=(Oe,je,Ge)=>je in Oe?os(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Gs=(Oe,je)=>{for(var Ge in je||(je={}))Es.call(je,Ge)&&rl(Oe,Ge,je[Ge]);if(Ps)for(var Ge of Ps(je))sl.call(je,Ge)&&rl(Oe,Ge,je[Ge]);return Oe},ks=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),Ks=({active:Oe,identifier:je,onAssist:Ge,onEdit:vr,onArticlesSkip:wn,onClose:en,onOk:En,onDelete:Qt,detailsIndex:Sn,btnShowStatus:Kn})=>{var Do,Mr,Io,Hr,bo,Ir,ea,Lo,Ho,zo;const[wr,li]=(0,z.useState)(!0),[Vn,Di]=(0,z.useState)({});(0,z.useEffect)(()=>{Oe&&Jo()},[Oe,Sn]);const Jo=(oi=!0)=>ks(void 0,null,function*(){oi&&li(!0);const $r=yield(0,ue.wO)(je,{active:Oe});($r==null?void 0:$r.status)===0&&Di(($r==null?void 0:$r.data)||{}),li(!1)}),ha=oi=>ks(void 0,null,function*(){const $r=yield(0,ue.qe)(je,Gs({active:Oe},oi));($r==null?void 0:$r.status)===0&&(Jo(!1),En())}),Ma=oi=>ks(void 0,null,function*(){(yield(0,ue.Rg)(je,{active:oi==null?void 0:oi.id})).status===0&&(Jo(!1),En())}),Lr=oi=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>Qt(oi)})},ca=()=>{Jo(!1),En()};return z.createElement("div",{className:Or.listDetails},z.createElement(so.Z,{className:"pt20 pl20 pr20",loading:wr,active:!0,paragraph:{rows:5}},z.createElement("div",{className:Or.head},z.createElement("div",{className:Or.name},z.createElement("div",{title:Vn==null?void 0:Vn.name,className:Or.title},Vn==null?void 0:Vn.name),(Vn==null?void 0:Vn.is_authority)&&z.createElement("div",{className:Or.b},"\u5B98\u65B9"),(Vn==null?void 0:Vn.is_excellent)&&z.createElement("div",{className:Or.a},"\u7CBE\u9009")),z.createElement("div",{className:Or.tag},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(Vn==null?void 0:Vn.image_url)}),z.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Vn==null?void 0:Vn.username),z.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Rt()(Vn==null?void 0:Vn.created_at).format("YYYY-MM-DD")),z.createElement("span",null,z.createElement("img",{src:Ya}),z.createElement("span",null,Vn==null?void 0:Vn.praises_count)),z.createElement("span",null,z.createElement("img",{src:qt}),z.createElement("span",null,Vn==null?void 0:Vn.discusses_count)),z.createElement("span",null,z.createElement("img",{src:mi}),z.createElement("span",null,Vn==null?void 0:Vn.viewed_count)),z.createElement("div",{className:Or.btn},((0,yr.Ny)()||(Vn==null?void 0:Vn.is_self))&&z.createElement(z.Fragment,null,z.createElement(Ct.ZP,{onClick:()=>Lr(Vn),type:"primary",ghost:!0},"\u5220\u9664"),z.createElement(Ct.ZP,{onClick:()=>vr(Vn),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,yr.Ny)()&&z.createElement(Ct.ZP,{onClick:()=>ha({is_authority:!(Vn!=null&&Vn.is_authority)}),type:"primary"},z.createElement("img",{src:xa}),Vn!=null&&Vn.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,yr.Ny)()&&z.createElement(Ct.ZP,{onClick:()=>ha({is_excellent:!(Vn!=null&&Vn.is_excellent)}),type:"primary"},z.createElement("img",{src:vi}),Vn!=null&&Vn.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),z.createElement("div",{className:Or.scroll},((Mr=(Do=Vn==null?void 0:Vn.videos)==null?void 0:Do[0])==null?void 0:Mr.id)&&z.createElement("div",{className:Or.video},z.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Hr=(Io=Vn==null?void 0:Vn.videos)==null?void 0:Io[0])!=null&&Hr.transcoded)},z.createElement(qa.Z,{poster:(Ir=(bo=Vn==null?void 0:Vn.videos)==null?void 0:bo[0])==null?void 0:Ir.cover_url,src:((Lo=(ea=Vn==null?void 0:Vn.videos)==null?void 0:ea[0])==null?void 0:Lo.play_url)||"",videoId:(zo=(Ho=Vn==null?void 0:Vn.videos)==null?void 0:Ho[0])==null?void 0:zo.id,logWatchHistory:()=>{}}))),z.createElement(hn.Z,{className:Or.html,value:(Vn==null?void 0:Vn.content)||""}),z.createElement("div",{onClick:()=>Ma(Vn),className:Or.g},z.createElement("img",{className:"mr10",src:(Vn!=null&&Vn.user_liker,ji)}),z.createElement("span",null,Vn==null?void 0:Vn.praises_count)),z.createElement(hs,{onOk:ca,active:Oe,identifier:je})),z.createElement("div",{className:Or.btns},z.createElement(Ct.ZP,{onClick:()=>en(),type:"primary",ghost:!0},"\u5173\u95ED"),Kn[0]&&z.createElement(Ct.ZP,{onClick:oi=>wn(oi,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),Kn[1]&&z.createElement(Ct.ZP,{onClick:oi=>wn(oi,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},js=Object.defineProperty,Ms=Object.getOwnPropertySymbols,Vs=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,Ie=(Oe,je,Ge)=>je in Oe?js(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Ve=(Oe,je)=>{for(var Ge in je||(je={}))Vs.call(je,Ge)&&Ie(Oe,Ge,je[Ge]);if(Ms)for(var Ge of Ms(je))qs.call(je,Ge)&&Ie(Oe,Ge,je[Ge]);return Oe};const Ye=Oe=>React.createElement("svg",Ve({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Oe),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M13.727 0C14.983 0 16 .895 16 2v12c0 1.105-1.017 2-2.273 2H2.273C1.017 16 0 15.105 0 14V2C0 .895 1.017 0 2.273 0h11.454ZM7.464 11H2.955c-.266 0-.513.19-.646.5s-.133.69 0 1c.133.31.38.5.646.5h4.509c.411 0 .745-.448.745-1s-.334-1-.745-1Zm4-3.5H2.955c-.411 0-.745.448-.745 1s.334 1 .745 1h8.509c.412 0 .746-.448.746-1s-.334-1-.746-1ZM3.71 2.75a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#7DC1FF",fillRule:"nonzero",xlinkHref:"#a_svg__a"}),React.createElement("circle",{cx:1.5,cy:.5,r:16.5,fill:"#A3D3FF",fillRule:"nonzero",mask:"url(#a_svg__b)"}),React.createElement("ellipse",{cx:1.5,cy:-.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12}),React.createElement("ellipse",{cx:-2.5,cy:-4,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12})));var pt="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Bt=te(28575),sn=te(33463),dn=Object.defineProperty,Dn=Object.defineProperties,Pn=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,zr=(Oe,je,Ge)=>je in Oe?dn(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,fr=(Oe,je)=>{for(var Ge in je||(je={}))jr.call(je,Ge)&&zr(Oe,Ge,je[Ge]);if(Jn)for(var Ge of Jn(je))Qn.call(je,Ge)&&zr(Oe,Ge,je[Ge]);return Oe},eo=(Oe,je)=>Dn(Oe,Pn(je)),ko=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),ri=({identifier:Oe,tabStatus:je,setFilterListTotal:Ge,setListStatus:vr})=>{const wn={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[en,En]=(0,z.useState)(fr({},wn));const[Qt,Sn]=(0,z.useState)(!1),[Kn,Do]=(0,z.useState)(0),[Mr,Io]=(0,z.useState)(1),[Hr,bo]=(0,z.useState)(null),[Ir,ea]=(0,z.useState)([]),[Lo,Ho]=(0,z.useState)([!0,!0]),[zo,wr]=(0,z.useState)(0),li=(0,z.useRef)(null);(0,z.useEffect)(()=>{Ro()},[je]),(0,z.useEffect)(()=>{Vn()},[Hr]),(0,z.useEffect)(()=>{Jo(fr({},wn)),Ro()},[Oe]),(0,z.useEffect)(()=>(window.addEventListener("resize",Di),vr(zo),()=>{window.removeEventListener("resize",Di)}),[zo]);const Vn=()=>ko(void 0,null,function*(){if(!Hr){Ho([!0,!0]);return}const ro=[!0,!0],Si=Ir==null?void 0:Ir.findIndex(Va=>Va.id===Hr);Si===0&&en.page===1&&(ro[0]=!1),(en.page-1)*en.limit+(Si+1)===en.total&&(ro[1]=!1),Ho(ro)}),Di=()=>{var ro;if(zo){const Si=window.innerWidth-((ro=li.current)==null?void 0:ro.clientWidth);Do(Si)}},Jo=ro=>ko(void 0,null,function*(){var Si,Va,Us;Sn(!0);const as=yield(0,ue.WH)(Oe,ro);return(as==null?void 0:as.status)===0&&(ea(((Si=as==null?void 0:as.data)==null?void 0:Si.articles)||[]),En(eo(fr({},ro),{total:(Va=as==null?void 0:as.data)==null?void 0:Va.articles_count})),Ge((Us=as==null?void 0:as.data)==null?void 0:Us.articles_count)),Sn(!1),as}),ha=()=>{(en==null?void 0:en.sort_direction)===null?en.sort_direction="asc":(en==null?void 0:en.sort_direction)==="asc"?en.sort_direction="desc":(en==null?void 0:en.sort_direction)==="desc"&&(en.sort_direction=null),en.page=1,Ro(),En(fr({},en)),Jo(en)},Ma=()=>{en.page=1,en.search=en==null?void 0:en.save_search,Ro(),En(fr({},en)),Jo(en)},Lr=()=>{var ro;const Si=document.getElementsByClassName("btn-resize");Si[0].style.visibility="hidden";const Va=window.innerWidth-((ro=li.current)==null?void 0:ro.clientWidth);Do(Va)},ca=()=>{Lr(),wr(1)},oi=ro=>{Lr(),bo(ro==null?void 0:ro.id),wr(3)},$r=ro=>{Lr(),bo(ro==null?void 0:ro.id),wr(2)},Ro=()=>{const ro=document.getElementsByClassName("btn-resize");ro[0].style.visibility="visible",Do(0),wr(0),bo(null)},gi=ro=>{wr(3),bo(ro),en.page=1,En(fr({},en)),Jo(en)},$o=ro=>{wr(3),bo(ro),En(fr({},en)),Jo(en)},zs=ro=>{En(fr({},en)),Jo(en)},vs=ro=>ko(void 0,null,function*(){(yield(0,ue.Rg)(Oe,{active:ro==null?void 0:ro.id})).status===0&&(Jo(en),Io(Mr+1))}),Cs=ro=>ko(void 0,null,function*(){(yield(0,ue.rL)(Oe,{active:ro==null?void 0:ro.id})).status===0&&(Jo(en),Io(Mr+1))}),Rs=ro=>ko(void 0,null,function*(){(yield(0,ue.de)(Oe,{active:ro==null?void 0:ro.id})).status===0&&(Ro(),Jo(en))}),ws=ro=>{en.page=ro,En(fr({},en)),Jo(en)},cs=(ro,Si)=>ko(void 0,null,function*(){var Va,Us,as,el;const Wa=Ir==null?void 0:Ir.findIndex(_a=>_a.id===Hr);if(console.log(Wa,Si,22),Si==="prev"){if(Wa===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Wa===0){if(en.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(en.page!==1){en.page=en.page-1,En(fr({},en));const _a=yield Jo(en);if((_a==null?void 0:_a.status)===0){const Hs=(as=_a==null?void 0:_a.data)==null?void 0:as.articles[((Us=(Va=_a==null?void 0:_a.data)==null?void 0:Va.articles)==null?void 0:Us.length)-1];bo(Hs==null?void 0:Hs.id),console.log(ro.target,555)}}}else{const _a=Ir[Wa-1];bo(_a==null?void 0:_a.id)}}if(Si==="next"){if(Wa===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((en.page-1)*en.limit+(Wa+1)===en.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Wa+1===en.limit){en.page=en.page+1,En(fr({},en));const _a=yield Jo(en);if((_a==null?void 0:_a.status)===0){const Hs=(el=_a==null?void 0:_a.data)==null?void 0:el.articles[0];bo(Hs==null?void 0:Hs.id)}}else{const _a=Ir[Wa+1];bo(_a==null?void 0:_a.id)}}});return z.createElement("div",{className:_r.wrap,ref:li},z.createElement("div",{className:_r.head},z.createElement("div",{className:_r.sort,onClick:ha},z.createElement("span",null,"\u6700\u65B0"),z.createElement("aside",null,z.createElement(Bt.Z,{style:{color:(en==null?void 0:en.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),z.createElement(sn.Z,{style:{color:(en==null?void 0:en.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),z.createElement(Ke.default.Search,{value:en.save_search,className:_r["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:ro=>{en.save_search=ro.target.value,En(fr({},en))},onSearch:Ma}),z.createElement("div",{onClick:ca,className:_r.btn},z.createElement("img",{src:pt}),"\u5199\u9898\u89E3")),z.createElement("div",{className:_r.listWarp},z.createElement(de.Z,{spinning:Qt,className:"mt20"},Ir==null?void 0:Ir.map((ro,Si)=>{let Va=!0;return Si+1===Ir.length&&Si!==0&&(Va=!1),z.createElement(oa,{active:Hr,key:ro.id,data:ro,showLine:Va,onClick:oi,onAssist:vs,onHide:Cs})}),(Ir==null?void 0:Ir.length)===0&&z.createElement(wt.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),z.createElement(Vt.Z,{className:_r.pagination,showTotal:ro=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},ro),"\u6761\u6570\u636E"),total:en.total,showSizeChanger:!1,current:en==null?void 0:en.page,onChange:ws,hideOnSinglePage:!0,showQuickJumper:!0}),zo>0&&z.createElement("div",{className:_r.fixedRight,style:{width:Kn}},zo===1&&z.createElement(Cr,{identifier:Oe,onClose:Ro,onOk:gi}),zo===2&&z.createElement(Cr,{active:Hr,identifier:Oe,onClose:Ro,onOk:$o}),zo===3&&z.createElement(Ks,{btnShowStatus:Lo,onArticlesSkip:cs,detailsIndex:Mr,active:Hr,identifier:Oe,onClose:Ro,onOk:zs,onEdit:$r,onAssist:vs,onDelete:Rs})))},Eo={flex_box_center:"flex_box_center___BbEkt",flex_space_between:"flex_space_between___v3cDl",flex_box_vertical_center:"flex_box_vertical_center___wUFLn",flex_box_center_end:"flex_box_center_end___Tdr08",flex_box_column:"flex_box_column___fYHlj",wrap:"wrap___UAZFM",head:"head___Nl6hk",title:"title___Ir573",content:"content___xUewa",list:"list___oi2ig",footer:"footer___V3bwQ"},wo=Object.defineProperty,Yr=Object.defineProperties,ga=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable,Ua=(Oe,je,Ge)=>je in Oe?wo(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,ui=(Oe,je)=>{for(var Ge in je||(je={}))fa.call(je,Ge)&&Ua(Oe,Ge,je[Ge]);if(Vi)for(var Ge of Vi(je))va.call(je,Ge)&&Ua(Oe,Ge,je[Ge]);return Oe},si=(Oe,je)=>Yr(Oe,ga(je)),Qi=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),Ji=({visible:Oe,onVisible:je,value:Ge,onChange:vr,setIndex:wn})=>{var en;const En={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[Qt,Sn]=(0,z.useState)(En);const[Kn,Do]=(0,z.useState)([]),[Mr,Io]=(0,z.useState)([]),[Hr,bo]=(0,z.useState)(!1),Ir=(0,z.useRef)([]),ea=(0,z.useRef)(null),Lo=(0,ve.useParams)();(0,z.useEffect)(()=>(Lo!=null&&Lo.id&&(ea.current=setInterval(()=>{Ho(30)},3e4)),()=>{clearInterval(ea.current)}),[]);const Ho=Lr=>Qi(void 0,null,function*(){const ca=yield(0,ue.uc)(Lo==null?void 0:Lo.id,{practice_time:Lr})});(0,z.useEffect)(()=>{Jo(Qt),Vn()},[]),(0,z.useEffect)(()=>(window.addEventListener("click",wr),()=>{window.removeEventListener("click",wr)}),[Lo==null?void 0:Lo.save_identifier,Oe]),(0,z.useEffect)(()=>{const Lr=Ir.current.findIndex(gi=>gi.identifier===(Lo==null?void 0:Lo.save_identifier)),ca=Ir.current[Lr-1],oi=Ir.current[Lr+1],$r=document.getElementById("oj-prev"),Ro=document.getElementById("oj-next");ca?$r.style.display="block":$r.style.display="none",oi?Ro.style.display="block":Ro.style.display="none"},[Lo==null?void 0:Lo.save_identifier,Ir.current]);const zo=(Lr,ca)=>{if(Lr.id===ca)return Lr;for(let oi=0,$r=Lr;$r=$r.parentNode;oi++){if($r.id===ca)return $r;if($r==document.documentElement)return!1}},wr=Lr=>Qi(void 0,null,function*(){!zo(Lr.target,"oj-drawer")&&Oe&&je(!1);const ca=Ir.current.findIndex(Ro=>Ro.identifier===(Lo==null?void 0:Lo.save_identifier)),oi=Ir.current[ca-1],$r=Ir.current[ca+1];if(Lr.target.id==="oj-prev"){if(!oi||ca===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}Lr.target.style.pointerEvents="none",Lr.target.style.cursor="not-allowed",yield ha(oi==null?void 0:oi.identifier),wn("0"),setTimeout(()=>{Lr.target.style.pointerEvents="auto",Lr.target.style.cursor="pointer"},400)}if(Lr.target.id==="oj-next"||Lr.target.id==="oj-modal-next"){if(!$r||ca===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}Lr.target.style.pointerEvents="none",Lr.target.style.cursor="not-allowed",yield ha($r==null?void 0:$r.identifier),wn("0"),setTimeout(()=>{Lr.target.style.pointerEvents="auto",Lr.target.style.cursor="pointer"},400)}});(0,z.useEffect)(()=>{vr(Lo==null?void 0:Lo.save_identifier);const Lr=Mr.findIndex(ca=>ca.some(oi=>oi.identifier===(Lo==null?void 0:Lo.save_identifier)));Sn(Lr===-1?si(ui({},Qt),{page:1}):si(ui({},Qt),{page:Lr+1}))},[Lo==null?void 0:Lo.save_identifier,Mr]);const li=Lr=>{Qt.page=1,Qt.tag_discipline_id=Lr,Sn(ui({},Qt)),Jo(Qt)},Vn=()=>Qi(void 0,null,function*(){const Lr=yield(0,Gn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Do(Lr.tag_disciplines||[])}),Di=Lr=>{Qt.page=1,Qt.difficulty=typeof Lr=="number"?Lr:null,Sn(ui({},Qt)),Jo(Qt)},Jo=Lr=>Qi(void 0,null,function*(){var ca,oi;bo(!0);const $r=yield(0,ue.KC)(Lr);if($r!=null&&$r.practices_list){for(var Ro=(ca=$r==null?void 0:$r.practices_list)==null?void 0:ca.length,gi=[],$o=0;$oQi(void 0,null,function*(){const oi=yield(0,Gn.ZP)(`/api/practices/${Lr}/start`,{method:"get"});(oi==null?void 0:oi.status)===0&&ve.history.push(`/problems/${oi==null?void 0:oi.identifier}/oj/${Lr}`)}),Ma=Lr=>{Qt.page=Lr,Sn(ui({},Qt))};return z.createElement("div",{className:Eo.wrap,id:"oj-drawer",style:{left:Oe?0:-700}},z.createElement("div",{className:Eo.head},z.createElement("div",{className:Eo.title},"\u9898\u76EE\u5217\u8868"),z.createElement(Ke.default.Search,{value:Qt==null?void 0:Qt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:Lr=>{Qt.save_search=Lr.target.value,Sn(ui({},Qt))},onSearch:()=>{Qt.page=1,Qt.search=Qt.save_search,Sn(ui({},Qt)),Jo(Qt)}}),z.createElement(le.default,{value:Qt==null?void 0:Qt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:Lr=>Lr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:li},Kn.map(Lr=>z.createElement(le.default.Option,{key:Lr.id,value:Lr.id},Lr.name))),z.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:Lr=>Lr.parentNode,value:Qt==null?void 0:Qt.difficulty,onChange:Di},z.createElement(le.default.Option,{value:1},"\u7B80\u5355"),z.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),z.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),z.createElement("div",{className:Eo.content},z.createElement(de.Z,{spinning:Hr},(en=Mr==null?void 0:Mr[Qt.page-1])==null?void 0:en.map(Lr=>z.createElement("div",{key:Lr.identifier,className:Eo.list,onClick:ca=>ha(Lr.identifier,ca)},z.createElement("i",{style:{visibility:Ge===Lr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),z.createElement("span",{style:{fontWeight:Ge===Lr.identifier?"bold":400,color:Ge===Lr.identifier?"#ffffff":"#bac4cd"},title:Lr==null?void 0:Lr.name},Lr.name),(Lr==null?void 0:Lr.difficulty)===1&&z.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(Lr==null?void 0:Lr.difficulty)===2&&z.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(Lr==null?void 0:Lr.difficulty)===3&&z.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),z.createElement("div",{className:Eo.footer},z.createElement(Vt.Z,{showTotal:Lr=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},Lr),"\u6761\u6570\u636E"),total:Qt.total,pageSize:Qt==null?void 0:Qt.per_page,current:Qt==null?void 0:Qt.page,showSizeChanger:!1,onChange:Ma,showQuickJumper:!0,hideOnSinglePage:!0})))},di=({hack:Oe,onTriggerPraise:je,topicId:Ge,page:vr,onPageChange:wn,user:en,submitRecords:En,submitting:Qt,submitResult:Sn})=>{const[Kn]=(0,ve.useSearchParams)(),Do=(0,ve.useLocation)(),[Mr,Io]=(0,z.useState)(Kn.get("tab")||"0"),[Hr,bo]=(0,z.useState)(0),[Ir,ea]=(0,z.useState)(0),[Lo,Ho]=(0,z.useState)(0),[zo,wr]=(0,z.useState)(),[li,Vn]=(0,z.useState)(!1);function Di(ha){const Ma=ha.target.id;if(Mr==="3"&&Ma!==Mr&&(Ir===1||Ir===2)){ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{Io(Ma)}});return}Io(Ma)}(0,z.useEffect)(()=>vt.Z.subscribe("to-commit-info",()=>{Io("1")}),[]);function Jo(){Io("2")}return z.createElement("div",{className:lt["left-panel"]},z.createElement("ul",{className:`${lt["s-navs"]} ${lt["bg-white"]} ${lt.b1}`},z.createElement("li",{className:"mr40 current"},z.createElement("img",{onClick:()=>Vn(!0),src:or})),z.createElement("li",{className:lt["oj-mr"]},z.createElement("a",{className:Mr==="0"?lt.active:"",id:"0",onClick:Di},"\u4EFB\u52A1\u63CF\u8FF0")),z.createElement("li",{className:lt["oj-mr"]},z.createElement("a",{className:Mr==="3"?lt.active:"",id:"3",onClick:Di},"\u9898\u89E3",Lo?`(${Lo})`:"")),z.createElement("li",{className:lt["oj-mr"]},z.createElement("a",{className:Mr==="2"?lt.active:"",id:"2",onClick:Di},"\u8BC4\u8BBA",Hr?`(${Hr})`:"")),z.createElement("li",null,z.createElement("a",{className:Mr==="1"?lt.active:"",id:"1",onClick:Di},"\u63D0\u4EA4\u8BB0\u5F55"))),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},z.createElement(rt,{hack:Oe,onTriggerPraise:je,toDiscuss:Jo})),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="1"?"":"hide"}`},En!=null&&En.records_count?z.createElement(gt,{page:vr,onPageChange:wn,topicId:Ge,submitting:Qt,submitRecords:En,submitResult:Sn}):z.createElement(wt.Z,null)),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="2"?"":"hide"}`,style:{padding:0}},z.createElement(pr,{setDiscussTotal:bo,user:en,identifier:Oe.identifier,hack:Oe,onTriggerPraise:je})),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="3"?"":"hide"}`,style:{padding:0}},z.createElement(ri,{setListStatus:ea,setFilterListTotal:Ho,tabStatus:Mr,identifier:Oe.identifier})),z.createElement(Ji,{visible:li,setIndex:Io,onVisible:ha=>Vn(ha),value:zo,onChange:ha=>wr(ha)}))},Zi=te(88508),Ao=te(62522),Ia=te(22707),zi=te(8861),Ha=te(96486),ss=te.n(Ha),Ka=te(74855),Vr=te(67294),ms=Object.defineProperty,Ui=Object.defineProperties,gs=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,ps=(Oe,je,Ge)=>je in Oe?ms(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,xi=(Oe,je)=>{for(var Ge in je||(je={}))qi.call(je,Ge)&&ps(Oe,Ge,je[Ge]);if(Sa)for(var Ge of Sa(je))Ba.call(je,Ge)&&ps(Oe,Ge,je[Ge]);return Oe},ya=(Oe,je)=>Ui(Oe,gs(je)),is=(Oe,je)=>{var Ge={};for(var vr in Oe)qi.call(Oe,vr)&&je.indexOf(vr)<0&&(Ge[vr]=Oe[vr]);if(Oe!=null&&Sa)for(var vr of Sa(Oe))je.indexOf(vr)<0&&Ba.call(Oe,vr)&&(Ge[vr]=Oe[vr]);return Ge},sa=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())});const{Countdown:As}=he.default,es={Java:"java",C:"c",Python:"py","C++":"c"};var la=(Oe=>(Oe[Oe.SET_LOADING=0]="SET_LOADING",Oe[Oe.GET_DATA=1]="GET_DATA",Oe[Oe.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Oe[Oe.SET_DATA=3]="SET_DATA",Oe[Oe.SET_DEBUGING=4]="SET_DEBUGING",Oe[Oe.SET_SUBMITING=5]="SET_SUBMITING",Oe[Oe.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Oe[Oe.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Oe[Oe.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Oe[Oe.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Oe[Oe.SET_PAGE=10]="SET_PAGE",Oe[Oe.GET_LANGUAGE=11]="GET_LANGUAGE",Oe[Oe.GET_DRAWER=12]="GET_DRAWER",Oe))(la||{});function yo(){return new Date().getTime()}const Fa={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:"",languageValue:"",languageList:[],drawerData:[]};function ls(Oe,je){switch(je.type){case 1:return xi(xi({},Oe),je.payload);case 3:return ya(xi({},Oe),{data:je.payload});case 0:return ya(xi({},Oe),{loading:je.payload});case 11:return ya(xi({},Oe),{languageList:je.payload});case 12:return ya(xi({},Oe),{drawerData:je.payload});case 9:return ya(xi({},Oe),{showNote:je.payload});case 4:return ya(xi({},Oe),{debuging:je.payload});case 5:return ya(xi({},Oe),{submitting:je.payload});case 2:return ya(xi({},Oe),{submitRecords:je.payload});case 10:return ya(xi({},Oe),{submitRecordPage:je.payload});case 6:return ya(xi({},Oe),{executingMessage:je.payload});case 7:return xi(xi({},Oe),je.payload);case 8:return xi(xi({},Oe),je.payload);default:throw new Error}}var Ds=({children:Oe})=>{var je,Ge,vr,wn;const[en,En]=(0,z.useReducer)(ls,Fa),{id:Qt}=(0,ve.useParams)(),Sn=(0,ve.useLocation)(),[Kn]=(0,ve.useSearchParams)(),{languageValue:Do,languageList:Mr,loading:Io,data:Hr,debugResult:bo,submitResult:Ir,submitRecords:ea,submitRecordPage:Lo,showNote:Ho,debuging:zo,submitting:wr,executingMessage:li}=en,[Vn,Di]=(0,z.useState)("#FFF"),[Jo,ha]=(0,z.useState)(null),[Ma,Lr]=(0,z.useState)({}),[ca,oi]=(0,z.useState)(!1),$r=(0,z.useRef)(null),Ro=(0,z.useRef)(null),gi=Hr==null?void 0:Hr.user,$o=Hr==null?void 0:Hr.hack;(0,z.useEffect)(()=>((0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,z.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,z.useEffect)(()=>{var Te;if(ca){const Ue=document.getElementById("oj-next"),Ze=document.getElementById("oj-modal-next");((Te=Ue==null?void 0:Ue.style)==null?void 0:Te.display)==="none"?Ze.style.display="none":Ze.style.display="block"}},[ca]),(0,z.useEffect)(()=>{function Te(){return sa(this,null,function*(){var Ue,Ze,ot;const st=yield(0,ue.fu)(Qt);if(st.status===401)document.location.href="/user/login";else{st.hack=st.practice,st.hack.code=De.Base64.decode((Ue=st==null?void 0:st.hack)==null?void 0:Ue.code);const ht=`${gi==null?void 0:gi.login}-language`;localStorage.getItem(ht)&&(st.hack.language=localStorage.getItem(ht)),Ro.current=ss().cloneDeep(st),Ro.current.language=(Ze=st==null?void 0:st.hack)==null?void 0:Ze.language,En({type:1,payload:{loading:!1,data:st}}),En({type:8,payload:{languageValue:(ot=st==null?void 0:st.hack)==null?void 0:ot.language}})}})}Qt&&Te()},[Qt]),(0,z.useEffect)(()=>{En({type:8,payload:{debugResult:void 0}}),Cs(),oi(!1)},[Qt]),(0,z.useEffect)(()=>{clearTimeout($r.current)},[Qt]),(0,z.useEffect)(()=>{vs()},[Qt,Lo]);const zs=()=>{window.parent.postMessage("backExercise","*")};function vs(){return sa(this,null,function*(){try{const Te=yield(0,ue.zO)(Qt,{limit:15,page:Lo});En({type:2,payload:Te})}catch(Te){console.log(Te)}})}function Cs(){return sa(this,null,function*(){try{const Te=yield(0,ue.dd)(Qt);En({type:11,payload:Te==null?void 0:Te.data})}catch(Te){console.log(Te)}})}function Rs(Te){En({type:10,payload:Te})}function ws(Te){return sa(this,null,function*(){var Ue,Ze,ot;const st=((ot=(Ze=(Ue=window==null?void 0:window.location)==null?void 0:Ue.pathname)==null?void 0:Ze.split("/"))==null?void 0:ot[2])||Qt;return yield(0,ue.n4)(st,Te||{code:De.Base64.encode($o.code),language:Do})})}function cs(){return sa(this,null,function*(){var Te;if(!$o.code||((Te=$o.code)==null?void 0:Te.trim())===""){pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!wr){En({type:5,payload:!0});try{if(vt.Z.publish("to-commit-info"),(yield ws()).status===0){let Ot=function(){return sa(this,null,function*(){const{status:At,data:tn}=yield(0,ue.rX)(Qt,"submit"),ln=yo()-Pt>(st*ht+3)*1e3;if(At!==0&&!ln&&setTimeout(Ot,1e3),ln){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),En({type:5,payload:!1});return}if(At===0){tn.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Wn=yield(0,ue.zO)(Qt,{limit:15,page:Lo});En({type:8,payload:ya(xi({},en),{submitResult:tn,submitting:!1,submitRecords:Wn})}),(tn==null?void 0:tn.status)===0&&oi(!0)}})},Ze={};const ot=yield(0,ue.bM)(Qt,Ze);if(ot.status===-1&&Kn.get("exercisesId")){window.parent.location.href=`/classrooms/${Kn.get("coursesId")}/exercise/${Kn.get("exercisesId")}/detail`;return}const{time_limit:st,test_case_size:ht}=$o,Pt=yo();(ot==null?void 0:ot.status)>-1?Ot():En({type:4,payload:!1})}}catch(Ue){En({type:5,payload:!1})}}})}function ro(){return sa(this,null,function*(){var Te;if(!$o.code||((Te=$o.code)==null?void 0:Te.trim())===""){pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}en.debuging=!0,En({type:4,payload:!0});try{if((yield ws()).status===0){let Pt=function(){return sa(this,null,function*(){const{status:Ot,message:At,data:tn}=yield(0,ue.rX)(Qt,"debug"),ln=yo()-ht>(Ze+3)*1e3;if(Ot!==0&&!ln&&(En({type:6,payload:At}),setTimeout(Pt,1e3)),ln){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),En({type:4,payload:!1});return}Ot===0&&(En({type:4,payload:!1}),tn.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),En({type:7,payload:ya(xi({},en),{debugResult:tn,debuging:!1})}))})};const{time_limit:Ze}=$o;let ot={input:encodeURIComponent(Hr.test_case.input)};const st=yield(0,ue.MU)(Qt,ot);if(st.status===-1&&Kn.get("exercisesId")){window.parent.location.href=`/classrooms/${Kn.get("coursesId")}/exercise/${Kn.get("exercisesId")}/detail`;return}const ht=yo();(st==null?void 0:st.status)>-1?Pt():En({type:4,payload:!1})}else En({type:4,payload:!1})}catch(Ue){console.log(Ue)}finally{}})}function Si(Te){var Ue;clearTimeout($r.current),$r.current=setTimeout(()=>{var Ze;ws({code:De.Base64.encode(Te),language:(Ze=Ro==null?void 0:Ro.current)==null?void 0:Ze.language})},2e3),En({type:3,payload:ya(xi({},Ro==null?void 0:Ro.current),{hack:ya(xi({},(Ue=Ro==null?void 0:Ro.current)==null?void 0:Ue.hack),{code:Te})})})}function Va(Te){let Ue=Te.target.value;En({type:3,payload:ya(xi({},Hr),{test_case:{input:Ue}})})}const Us=Te=>sa(void 0,null,function*(){var Ue;if(En({type:0,payload:!0}),(yield ws()).status===0){En({type:8,payload:{languageValue:Te}}),Ro.current.language=Te;const ot=`${gi==null?void 0:gi.login}-language`;localStorage.setItem(ot,Te);const st=yield(0,ue.dd)(Qt);if(st.status===0){const ht=(Ue=st==null?void 0:st.data)==null?void 0:Ue.find(Pt=>Pt.language===Te);Si(De.Base64.decode(ht.code))}setTimeout(()=>{En({type:0,payload:!1})},300)}});function as(){return sa(this,null,function*(){try{const Te=yield(0,ue.H7)(Qt,{language:Do});Te.status===401?ve.history.replace("/login",{from:Sn.pathname}):(Si(De.Base64.decode(Te.code)),Cs())}catch(Te){console.log(Te)}})}function el(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Vr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Vr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return sa(this,null,function*(){const Te=yield(0,ue.fi)(Qt,{language:Do});Te.status===401?ve.history.replace("/login",{from:Sn.pathname}):Si(De.Base64.decode(Te.code))})}})}function Wa(){En({type:9,payload:!0})}function _a(){En({type:9,payload:!1})}function Hs(Te){return sa(this,null,function*(){yield(0,ue.MK)(Qt,Te),En({type:1,payload:{showNote:!1,data:ya(xi({},Hr),{hack:ya(xi({},$o),{notes:Te.notes})})}})})}const Ee={input:(je=Hr==null?void 0:Hr.test_case)==null?void 0:je.input,is_file:(Ge=Hr==null?void 0:Hr.test_case)==null?void 0:Ge.is_file,language:((vr=Ro.current)==null?void 0:vr.language)||($o==null?void 0:$o.language),code:$o==null?void 0:$o.code,title:"main."+es[$o==null?void 0:$o.language],modify_code:$o==null?void 0:$o.modify_code,notes:$o==null?void 0:$o.notes,debugResult:bo,debuging:zo,submitting:wr,executingMessage:li,id:Qt,languageValue:Do,languageList:Mr,onChangeLanguage:Us,onCancelNote:_a,onAddNote:Hs,showNote:Ho,onShowNote:Wa,onSubmitCode:cs,onChangeCode:Si,onChangeInput:Va,onDebugCode:ro,onResetCode:as,onSyncCode:el,onUpdateCode:ws};function Ce(){return sa(this,null,function*(){const{praise_count:Te}=yield(0,ue.vl)($o.id,{container_type:"Hack",type:1});let Ue=ya(xi({},Hr),{hack:ya(xi({},$o),{praises_count:Te,user_praise:!$o.user_praise})});En({type:3,payload:Ue})})}const Re={topicId:Qt,submitResult:Ir,submitRecords:ea,submitting:wr,page:Lo,onPageChange:Rs,hack:$o,user:Hr==null?void 0:Hr.user,onTriggerPraise:Ce};return console.log(Hr,Ro==null?void 0:Ro.current,"data--------"),Vr.createElement(Vr.Fragment,null,Vr.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Io},Hr?Vr.createElement("div",{className:"oj-custom-warp"},Vr.createElement("header",{className:Be.Z.header,style:{minWidth:1200}},Vr.createElement("div",null,Vr.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${gi.image_url}`,alt:"user",width:30}),Vr.createElement("span",null,gi.name)),Vr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Vr.createElement("div",null,$o.name),Vr.createElement(Zi.Z,{onChange:Te=>{},className:"font12 c-grey-999"})),Vr.createElement(Ka.CopyToClipboard,{text:`${(wn=window.location)==null?void 0:wn.origin}/problems/${$o.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Vr.createElement("span",{className:Be.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Vr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),$o.edit_privilege?Vr.createElement(ve.Link,{className:Be.Z.btn_back,to:`/problems/${$o.identifier}/ojedit`,style:{marginRight:10}}," ",Vr.createElement(fe.Z,null)," \u7F16\u8F91"):null,Vr.createElement(ve.Link,{className:Be.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Vr.createElement(Pe.Z,null),"\u9000\u51FA")),Vr.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Vr.createElement(di,xi({},Re)),rightChild:Vr.createElement(Zs,xi({},Ee))})):null),Vr.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:ca,className:"oj-modal"},Vr.createElement("section",{className:"oj-modal-content"},Vr.createElement("div",{className:"oj-modal-head"},Vr.createElement("img",{src:Ao,alt:""}),Vr.createElement("i",{onClick:()=>oi(!1),className:"iconfont icon-guanbi1"})),Vr.createElement("aside",null,Vr.createElement("img",{className:"mr30",src:zi.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Vr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Ir==null?void 0:Ir.execute_time,"s"),"\u4F18\u4E8E",Vr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Ir==null?void 0:Ir.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Vr.createElement("aside",{className:"mb50"},Vr.createElement("img",{src:Ia.Z,className:"mr30"}),Vr.createElement("span",{className:"oj-modal-tt"},Vr.createElement("span",null,Vr.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Vr.createElement("span",{className:"c-light-primary"},Ir==null?void 0:Ir.execute_memory,"mb")),Vr.createElement("span",null,Vr.createElement("span",null))),"\u4F18\u4E8E",Vr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Ir==null?void 0:Ir.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Vr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ys({languageValue:Oe,languageList:je,onChangeLanguage:Ge,title:vr,modify_code:wn,onSyncCode:en,onShowCodeSetting:En,onResetCode:Qt}){const Sn=(0,ve.useLocation)(),Kn=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Vr.createElement(re.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Qt})};return Vr.createElement("div",{className:"action-bar"},Vr.createElement(le.default,{className:"oj-select",value:Oe,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Ge},je==null?void 0:je.map(Do=>Vr.createElement(le.default.Option,{key:Do.language,value:Do.language},Do.language))),Vr.createElement("span",null),Vr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:Kn},Vr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Vr.createElement("a",{onClick:En},Vr.createElement("i",{className:"iconfont icon-shezhi"})))}function Zs(Oe){var je=Oe,{id:Ge,input:vr,is_file:wn,showNote:en,onShowNote:En,notes:Qt,onCancelNote:Sn,onAddNote:Kn,debugResult:Do,language:Mr,debuging:Io,submitting:Hr,executingMessage:bo,code:Ir,onSubmitCode:ea,onDebugCode:Lo,onChangeCode:Ho,onChangeInput:zo,onUpdateCode:wr}=je,li=is(je,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Vn(Jo){return Vr.createElement(Ys,ya(xi({},li),{onShowCodeSetting:Jo}))}const Di={id:Ge,input:vr,debugResult:Do,debuging:Io,is_file:wn,submitting:Hr,executingMessage:bo,onDebugCode:Lo,onChangeCode:Ho,onSubmitCode:ea,onChangeInput:zo};return Vr.createElement("div",{className:"right-panel"},Vr.createElement(mt,{onUpdateCode:()=>{},language:Mr,value:Ir,onChange:Ho,ActionBarRender:Vn}),Vr.createElement("div",{className:`note-form-area ${en?"active":""}`},Vr.createElement(it,{onCancel:Sn,notes:Qt,callback:Kn})),Vr.createElement(nt.ZP,xi({},Di)))}},94189:function(at,We,te){"use strict";te.d(We,{h:function(){return z}});var z=(fe=>(fe[fe.NOMATCH=-1]="NOMATCH",fe[fe.OK=0]="OK",fe[fe.TIMEOUT=2]="TIMEOUT",fe[fe.PODFAILURE=3]="PODFAILURE",fe[fe.COMPILEFAILURE=4]="COMPILEFAILURE",fe[fe.EXECUTEFAILURE=5]="EXECUTEFAILURE",fe[fe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",fe))(z||{})},33227:function(at,We,te){"use strict";te.d(We,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return ve},Rg:function(){return oe},WH:function(){return a},X6:function(){return pe},bM:function(){return Pe},bx:function(){return y},dd:function(){return me},de:function(){return ce},fi:function(){return ue},fu:function(){return fe},gu:function(){return E},n4:function(){return se},qe:function(){return ee},rL:function(){return ae},rX:function(){return ie},uc:function(){return Se},vl:function(){return re},wO:function(){return x},zO:function(){return he}});var z=te(33170);function fe(_e){return(0,z.U2)(`mypractices/${_e}.json`,{hidePopLogin:!0})}function Pe(_e,xe){return(0,z.v_)(`mypractices/${_e}/code_submit.json`,xe)}function ve(_e,xe){return(0,z.v_)(`mypractices/${_e}/code_debug.json`,xe)}function he(_e,xe){return xe.language&&(xe.language=encodeURIComponent(xe.language)),(0,z.U2)(`mypractices/${_e}/submit_records.json`,xe)}function pe(_e){return(0,z.U2)("mypractices/record_detail.json",{id:_e})}function ie(_e,xe){return(0,z.U2)(`mypractices/${_e}/result.json`,{mode:xe})}function de(_e,xe){return(0,z.v_)(`mypractices/${_e}/add_notes.json`,xe)}function le(_e,xe){return(0,z.v_)(`mypractices/${_e}/restore_initial_code.json`,xe)}function ue(_e,xe){return(0,z.v_)(`mypractices/${_e}/sync_code.json`,xe)}function se(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_code.json`,xe)}function me(_e){return(0,z.v_)(`mypractices/${_e}/initial_codes.json`)}function re(_e,xe){return(0,z.v_)(`discusses/${_e}/plus.json`,xe)}function ne(_e){return(0,z.U2)("practices/practices_list.json",_e)}function a(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles`,xe)}function y(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles`,xe)}function E(_e,xe){return(0,z.gz)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function b(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/edit`,xe)}function x(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function ee(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/set_authority_or_excellent`,xe)}function oe(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/praise_or_treads`,xe)}function ae(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/hide`)}function ce(_e,xe){return(0,z.IV)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function Se(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_practice_time_sum`,xe)}},93989:function(at,We,te){"use strict";te.d(We,{Z:function(){return re}});var z=te(67294),fe=te(2453),Pe=te(83062),ve=te(57953),he=te(71230),pe=te(15746),ie=te(34435),de=te(71577),le=te(35567),ue=te(33170),se=te(85725),me=(a,y,E)=>new Promise((b,x)=>{var ee=ce=>{try{ae(E.next(ce))}catch(Se){x(Se)}},oe=ce=>{try{ae(E.throw(ce))}catch(Se){x(Se)}},ae=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(ee,oe);ae((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,ee]=(0,z.useState)(""),[oe,ae]=(0,z.useState)(!1);function ce(_e){ee(_e)}function Se(){if(!x){fe.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),ee("")}return(0,z.useEffect)(()=>{y!=a&&ae(!1)},[y]),z.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},z.createElement(le.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ce,extraUse:b&&z.createElement(Pe.Z,{color:"#fff",open:oe,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:oe,activeDiscussIndex:y,onChange:ce,setIsOpen:ae}),overlayStyle:{maxWidth:600}},z.createElement("a",{title:oe?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ae(!oe)},z.createElement("i",{className:"iconfont icon-dianzan11"})))}),z.createElement("a",{onClick:Se,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,z.useState)(!1),[b,x]=(0,z.useState)([]),[ee,oe]=(0,z.useState)(1);(0,z.useEffect)(()=>{a!=null&&a.isOpen?ae():(oe(1),x([]))},[a==null?void 0:a.isOpen]);const ae=()=>me(void 0,null,function*(){E(!0);const ce=yield(0,ue.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ce==null?void 0:ce.status)==0&&x(ce==null?void 0:ce.answer),E(!1)});return z.createElement(ve.Z,{spinning:y},z.createElement("div",{style:{color:"#000"}},z.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[ee-1])||""}),z.createElement(he.Z,{justify:"end",align:"middle"},z.createElement(pe.Z,null,z.createElement(ie.Z,{simple:!0,current:ee,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{oe(ce)}})),z.createElement(pe.Z,null,z.createElement(de.ZP,{onClick:()=>me(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[ee-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(at,We,te){"use strict";te.d(We,{BU:function(){return fe},Dj:function(){return z},gH:function(){return Pe},vp:function(){return ve}});function z(he){try{he.mozRequestFullScreen?he.mozRequestFullScreen():he.webkitRequestFullScreen&&he.webkitRequestFullScreen()}catch(pe){console.log(pe,":e")}}function fe(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const Pe=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ve(){var he=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",he),window.isFullScreen?window.isFullScreen:he!=null}},40471:function(at,We,te){"use strict";te.d(We,{G:function(){return he},t:function(){return ve}});var z=te(58971),fe=te.n(z);const Pe=null;function ve(pe,ie){let de=fe().get("__ec");de||(de={}),de[pe]=ie,fe().set("__ec",de)}function he(pe,ie){let de=fe().get("__ec");return de?de[pe]===void 0?ie:de[pe]:ie}},24577:function(at,We,te){"use strict";te.d(We,{Z:function(){return Ta}});class z{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ge,ye){return ge.__proto__=ye,ge},Object.assign=Object.assign||function(ge){if(ge==null)throw new TypeError("Cannot convert undefined or null to object");let ye=Object(ge);for(let be=1;be ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","error",be),he.ENABLE_ERROR&&(console.error?console.error(be):console.warn?console.warn(be):console.log(be))}static i(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","info",be),he.ENABLE_INFO&&(console.info?console.info(be):console.log(be))}static w(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","warn",be),he.ENABLE_WARN&&(console.warn?console.warn(be):console.log(be))}static d(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","debug",be),he.ENABLE_DEBUG&&(console.debug?console.debug(be):console.log(be))}static v(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","verbose",be),he.ENABLE_VERBOSE&&console.log(be)}}he.GLOBAL_TAG="flv.js",he.FORCE_GLOBAL_TAG=!1,he.ENABLE_ERROR=!0,he.ENABLE_INFO=!0,he.ENABLE_WARN=!0,he.ENABLE_DEBUG=!0,he.ENABLE_VERBOSE=!0,he.ENABLE_CALLBACK=!1,he.emitter=new(ve());var pe=he;class ie{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(ge){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ge,this._totalBytes+=ge):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ge,this._totalBytes+=ge):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ge,this._totalBytes+=ge,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ge=(this._now()-this._lastCheckpoint)/1e3;return ge==0&&(ge=1),this._intervalBytes/ge/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ge=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ge/1024}}var de=ie;class le{constructor(ge){this._message=ge}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ue extends le{constructor(ge){super(ge)}get name(){return"IllegalStateException"}}class se extends le{constructor(ge){super(ge)}get name(){return"InvalidArgumentException"}}class me extends le{constructor(ge){super(ge)}get name(){return"NotImplementedException"}}const re={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class a{constructor(ge){this._type=ge||"undefined",this._status=re.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=re.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===re.kConnecting||this._status===re.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(ge){this._onContentLengthKnown=ge}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ge){this._onURLRedirect=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}open(ge,ye){throw new me("Unimplemented abstract function!")}abort(){throw new me("Unimplemented abstract function!")}}let y={};function E(){let yn=self.navigator.userAgent.toLowerCase(),ge=/(edge)\/([\w.]+)/.exec(yn)||/(opr)[\/]([\w.]+)/.exec(yn)||/(chrome)[ \/]([\w.]+)/.exec(yn)||/(iemobile)[\/]([\w.]+)/.exec(yn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(yn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(yn)||/(webkit)[ \/]([\w.]+)/.exec(yn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(yn)||/(msie) ([\w.]+)/.exec(yn)||yn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(yn)||yn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(yn)||[],ye=/(ipad)/.exec(yn)||/(ipod)/.exec(yn)||/(windows phone)/.exec(yn)||/(iphone)/.exec(yn)||/(kindle)/.exec(yn)||/(android)/.exec(yn)||/(windows)/.exec(yn)||/(mac)/.exec(yn)||/(linux)/.exec(yn)||/(cros)/.exec(yn)||[],be={browser:ge[5]||ge[3]||ge[1]||"",version:ge[2]||ge[4]||"0",majorVersion:ge[4]||ge[2]||"0",platform:ye[0]||""},Le={};if(be.browser){Le[be.browser]=!0;let Ne=be.majorVersion.split(".");Le.version={major:parseInt(be.majorVersion,10),string:be.version},Ne.length>1&&(Le.version.minor=parseInt(Ne[1],10)),Ne.length>2&&(Le.version.build=parseInt(Ne[2],10))}if(be.platform&&(Le[be.platform]=!0),(Le.chrome||Le.opr||Le.safari)&&(Le.webkit=!0),Le.rv||Le.iemobile){Le.rv&&delete Le.rv;let Ne="msie";be.browser=Ne,Le[Ne]=!0}if(Le.edge){delete Le.edge;let Ne="msedge";be.browser=Ne,Le[Ne]=!0}if(Le.opr){let Ne="opera";be.browser=Ne,Le[Ne]=!0}if(Le.safari&&Le.android){let Ne="android";be.browser=Ne,Le[Ne]=!0}Le.name=be.browser,Le.platform=be.platform;for(let Ne in y)y.hasOwnProperty(Ne)&&delete y[Ne];Object.assign(y,Le)}E();var b=y;class x extends a{static isSupported(){try{let ge=b.msedge&&b.version.minor>=15048,ye=b.msedge?ge:!0;return self.fetch&&self.ReadableStream&&ye}catch(ge){return!1}}constructor(ge,ye){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ge,this._config=ye,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ge,ye){this._dataSource=ge,this._range=ye;let be=ge.url;this._config.reuseRedirectedURL&&ge.redirectedURL!=null&&(be=ge.redirectedURL);let Le=this._seekHandler.getConfig(be,ye),Ne=new self.Headers;if(typeof Le.headers=="object"){let ct=Le.headers;for(let _n in ct)ct.hasOwnProperty(_n)&&Ne.append(_n,ct[_n])}let et={method:"GET",headers:Ne,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let ct in this._config.headers)Ne.append(ct,this._config.headers[ct]);ge.cors===!1&&(et.mode="same-origin"),ge.withCredentials&&(et.credentials="include"),ge.referrerPolicy&&(et.referrerPolicy=ge.referrerPolicy),this._status=re.kConnecting,self.fetch(Le.url,et).then(ct=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(ct.ok&&ct.status>=200&&ct.status<=299){if(ct.url!==Le.url&&this._onURLRedirect){let rn=this._seekHandler.removeURLParameters(ct.url);this._onURLRedirect(rn)}let _n=ct.headers.get("Content-Length");return _n!=null&&(this._contentLength=parseInt(_n),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,ct.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ct.status,msg:ct.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+ct.status+" "+ct.statusText)}).catch(ct=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:ct.message});else throw ct})}abort(){this._requestAbort=!0}_pump(ge){return ge.read().then(ye=>{if(ye.done)if(this._contentLength!==null&&this._receivedLength{if(ye.code===11&&b.msedge)return;this._status=re.kError;let be=0,Le=null;if((ye.code===19||ye.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+ye.status+" "+ye.statusText);else this._status=re.kBuffering}}_onProgress(ge){if(this._status===re.kError)return;this._contentLength===null&&ge.total!==null&&ge.total!==0&&(this._contentLength=ge.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ye=ge.target.response,be=this._range.from+this._receivedLength;this._receivedLength+=ye.byteLength,this._onDataArrival&&this._onDataArrival(ye,be,this._receivedLength)}_onLoadEnd(ge){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===re.kError)return;this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(ge){this._status=re.kError;let ye=0,be=null;if(this._contentLength&&ge.loaded=200&&ye.status<=299){if(this._status=LoaderStatus.kBuffering,ye.responseURL!=null){let Le=this._seekHandler.removeURLParameters(ye.responseURL);ye.responseURL!==this._currentRequestURL&&Le!==this._currentRedirectedURL&&(this._currentRedirectedURL=Le,this._onURLRedirect&&this._onURLRedirect(Le))}let be=ye.getResponseHeader("Content-Length");if(be!=null&&this._contentLength==null){let Le=parseInt(be);Le>0&&(this._contentLength=Le,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ye.status+" "+ye.statusText);else if(ye.readyState===3&&ye.status>=200&&ye.status<=299){this._status=LoaderStatus.kBuffering;let be=ye.response;this._reader.readAsArrayBuffer(be)}}_xhrOnError(ge){this._status=LoaderStatus.kError;let ye=LoaderErrors.EXCEPTION,be={code:-1,msg:ge.constructor.name+" "+ge.type};if(this._onError)this._onError(ye,be);else throw new RuntimeException(be.msg)}_msrOnProgress(ge){let be=ge.target.result;if(be==null){this._doReconnectIfNeeded();return}let Le=be.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=be.byteLength;let Ne=this._totalRange.from+this._receivedLength;this._receivedLength+=Le.byteLength,this._onDataArrival&&this._onDataArrival(Le,Ne,this._receivedLength),be.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Ne+Le.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(be=this._range.from+this._contentLength-1),this._currentRequestRange={from:ye,to:be},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ge,ye){this._lastTimeLoaded=0;let be=ge.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?be=this._currentRedirectedURL:ge.redirectedURL!=null&&(be=ge.redirectedURL));let Le=this._seekHandler.getConfig(be,ye);this._currentRequestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onload=this._onLoad.bind(this),Ne.onerror=this._onXhrError.bind(this),ge.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let et=Le.headers;for(let ct in et)et.hasOwnProperty(ct)&&Ne.setRequestHeader(ct,et[ct])}if(typeof this._config.headers=="object"){let et=this._config.headers;for(let ct in et)et.hasOwnProperty(ct)&&Ne.setRequestHeader(ct,et[ct])}Ne.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=re.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(ge){let ye=ge.target;if(ye.readyState===2){if(ye.responseURL!=null){let be=this._seekHandler.removeURLParameters(ye.responseURL);ye.responseURL!==this._currentRequestURL&&be!==this._currentRedirectedURL&&(this._currentRedirectedURL=be,this._onURLRedirect&&this._onURLRedirect(be))}if(ye.status>=200&&ye.status<=299){if(this._waitForTotalLength)return;this._status=re.kBuffering}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new le("RangeLoader: Http code invalid, "+ye.status+" "+ye.statusText)}}_onProgress(ge){if(this._status===re.kError)return;if(this._contentLength===null){let be=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,be=!0;let Le=ge.total;this._internalAbort(),Le!=null&Le!==0&&(this._totalLength=Le)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,be){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let ye=ge.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ge.loaded,this._speedSampler.addBytes(ye)}_normalizeSpeed(ge){let ye=this._chunkSizeKBList,be=ye.length-1,Le=0,Ne=0,et=be;if(ge=ye[Le]&&ge=3&&(ye=this._speedSampler.currentKBps)),ye!==0){let et=this._normalizeSpeed(ye);this._currentSpeedNormalized!==et&&(this._currentSpeedNormalized=et,this._currentChunkSizeKB=et)}let be=ge.target.response,Le=this._range.from+this._receivedLength;this._receivedLength+=be.byteLength;let Ne=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(ye.result)},ye.readAsArrayBuffer(ge.data)}else{this._status=re.kError;let ye={code:-1,msg:"Unsupported WebSocket message type: "+ge.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ye);else throw new le(ye.msg)}}_dispatchArrayBuffer(ge){let ye=ge,be=this._receivedLength;this._receivedLength+=ye.byteLength,this._onDataArrival&&this._onDataArrival(ye,be,this._receivedLength)}_onWebSocketError(ge){this._status=re.kError;let ye={code:ge.code,msg:ge.message};if(this._onError)this._onError(ne.EXCEPTION,ye);else throw new le(ye.msg)}}var Fe=we;class Me{constructor(ge){this._zeroStart=ge||!1}getConfig(ge,ye){let be={};if(ye.from!==0||ye.to!==-1){let Le;ye.to!==-1?Le=`bytes=${ye.from.toString()}-${ye.to.toString()}`:Le=`bytes=${ye.from.toString()}-`,be.Range=Le}else this._zeroStart&&(be.Range="bytes=0-");return{url:ge,headers:be}}removeURLParameters(ge){return ge}}var ut=Me;class Xe{constructor(ge,ye){this._startName=ge,this._endName=ye}getConfig(ge,ye){let be=ge;if(ye.from!==0||ye.to!==-1){let Le=!0;be.indexOf("?")===-1&&(be+="?",Le=!1),Le&&(be+="&"),be+=`${this._startName}=${ye.from.toString()}`,ye.to!==-1&&(be+=`&${this._endName}=${ye.to.toString()}`)}return{url:be,headers:{}}}removeURLParameters(ge){let ye=ge.split("?")[0],be,Le=ge.indexOf("?");Le!==-1&&(be=ge.substring(Le+1));let Ne="";if(be!=null&&be.length>0){let et=be.split("&");for(let ct=0;ct0;_n[0]!==this._startName&&_n[0]!==this._endName&&(rn&&(Ne+="&"),Ne+=et[ct])}}return Ne.length===0?ye:ye+"?"+Ne}}var mt=Xe;class Ae{constructor(ge,ye,be){this.TAG="IOController",this._config=ye,this._extraData=be,this._stashInitialSize=1024*384,ye.stashInitialSize!=null&&ye.stashInitialSize>0&&(this._stashInitialSize=ye.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,ye.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ge,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ge.url),this._refTotalLength=ge.filesize?ge.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new de,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(ge){this._extraData=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onSeeked(){return this._onSeeked}set onSeeked(ge){this._onSeeked=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}get onRedirect(){return this._onRedirect}set onRedirect(ge){this._onRedirect=ge}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ge){this._onRecoveredEarlyEof=ge}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===xe?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let ge=this._config;if(ge.seekType==="range")this._seekHandler=new ut(this._config.rangeLoadZeroStart);else if(ge.seekType==="param"){let ye=ge.seekParamStart||"bstart",be=ge.seekParamEnd||"bend";this._seekHandler=new mt(ye,be)}else if(ge.seekType==="custom"){if(typeof ge.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ge.customSeekHandler}else throw new se(`Invalid seekType in config: ${ge.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Fe;else if(ee.isSupported())this._loaderClass=ee;else if(ae.isSupported())this._loaderClass=ae;else if(xe.isSupported())this._loaderClass=xe;else throw new le("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(ge){this._currentRange={from:0,to:-1},ge&&(this._currentRange.from=ge),this._speedSampler.reset(),ge||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let ge=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ge,!0)}}seek(ge){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ge,!0)}_internalSeek(ge,ye){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ye),this._loader.destroy(),this._loader=null;let be={from:ge,to:-1};this._currentRange={from:be.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,be),this._onSeeked&&this._onSeeked()}updateUrl(ge){if(!ge||typeof ge!="string"||ge.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=ge}_expandBuffer(ge){let ye=this._stashSize;for(;ye+1024*1024*10){let Le=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(be,0,ye).set(Le,0)}this._stashBuffer=be,this._bufferSize=ye}_normalizeSpeed(ge){let ye=this._speedNormalizeList,be=ye.length-1,Le=0,Ne=0,et=be;if(ge=ye[Le]&&ge=512&&ge<=1024?ye=Math.floor(ge*1.5):ye=ge*2,ye>8192&&(ye=8192);let be=ye*1024+1024*1024*1;this._bufferSize0){let et=this._stashBuffer.slice(0,this._stashUsed),ct=this._dispatchChunks(et,this._stashByteStart);if(ct0){let _n=new Uint8Array(et,ct);Ne.set(_n,0),this._stashUsed=_n.byteLength,this._stashByteStart+=ct}}else this._stashUsed=0,this._stashByteStart+=ct;this._stashUsed+ge.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ge.byteLength),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength}else{let et=this._dispatchChunks(ge,ye);if(etthis._bufferSize&&(this._expandBuffer(ct),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge,et),0),this._stashUsed+=ct,this._stashByteStart=ye+et}}}else if(this._stashUsed===0){let Ne=this._dispatchChunks(ge,ye);if(Nethis._bufferSize&&this._expandBuffer(et),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ge,Ne),0),this._stashUsed+=et,this._stashByteStart=ye+Ne}}else{this._stashUsed+ge.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ge.byteLength);let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength;let et=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(et0){let ct=new Uint8Array(this._stashBuffer,et);Ne.set(ct,0)}this._stashUsed-=et,this._stashByteStart+=et}}_flushStashBuffer(ge){if(this._stashUsed>0){let ye=this._stashBuffer.slice(0,this._stashUsed),be=this._dispatchChunks(ye,this._stashByteStart),Le=ye.byteLength-be;if(be0){let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),et=new Uint8Array(ye,be);Ne.set(et,0),this._stashUsed=et.byteLength,this._stashByteStart+=be}return 0}return this._stashUsed=0,this._stashByteStart=0,Le}return 0}_onLoaderComplete(ge,ye){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ge,ye){switch(pe.e(this.TAG,`Loader error, code = ${ye.code}, msg = ${ye.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ge=ne.UNRECOVERABLE_EARLY_EOF),ge){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let be=this._currentRange.to+1;be0){let ye=on.getConfig();ge.emit("change",ye)}}static registerListener(ge){on.emitter.addListener("change",ge)}static removeListener(ge){on.emitter.removeListener("change",ge)}static addLogListener(ge){pe.emitter.addListener("log",ge),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,on._notifyChange())}static removeLogListener(ge){pe.emitter.removeListener("log",ge),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,on._notifyChange())}}on.emitter=new(ve());var it=on;class lt{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let ge=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ye=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&ge&&ye}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ge){if(this.keyframesIndex==null)return null;let ye=this.keyframesIndex,be=this._search(ye.times,ge);return{index:be,milliseconds:ye.times[be],fileposition:ye.filepositions[be]}}_search(ge,ye){let be=0,Le=ge.length-1,Ne=0,et=0,ct=Le;for(ye=ge[Ne]&&ye=128){ge.push(String.fromCharCode(Ne&65535)),be+=2;continue}}}else if(ye[be]<240){if(Jt(ye,be,2)){let Ne=(ye[be]&15)<<12|(ye[be+1]&63)<<6|ye[be+2]&63;if(Ne>=2048&&(Ne&63488)!==55296){ge.push(String.fromCharCode(Ne&65535)),be+=3;continue}}}else if(ye[be]<248&&Jt(ye,be,3)){let Ne=(ye[be]&7)<<18|(ye[be+1]&63)<<12|(ye[be+2]&63)<<6|ye[be+3]&63;if(Ne>65536&&Ne<1114112){Ne-=65536,ge.push(String.fromCharCode(Ne>>>10|55296)),ge.push(String.fromCharCode(Ne&1023|56320)),be+=4;continue}}}ge.push("\uFFFD"),++be}return ge.join("")}var xn=Vt;let He=function(){let yn=new ArrayBuffer(2);return new DataView(yn).setInt16(0,256,!0),new Int16Array(yn)[0]===256}();class un{static parseScriptData(ge,ye,be){let Le={};try{let Ne=un.parseValue(ge,ye,be),et=un.parseValue(ge,ye+Ne.size,be-Ne.size);Le[Ne.data]=et.data}catch(Ne){pe.e("AMF",Ne.toString())}return Le}static parseObject(ge,ye,be){if(be<3)throw new ue("Data not enough when parse ScriptDataObject");let Le=un.parseString(ge,ye,be),Ne=un.parseValue(ge,ye+Le.size,be-Le.size),et=Ne.objectEnd;return{data:{name:Le.data,value:Ne.data},size:Le.size+Ne.size,objectEnd:et}}static parseVariable(ge,ye,be){return un.parseObject(ge,ye,be)}static parseString(ge,ye,be){if(be<2)throw new ue("Data not enough when parse String");let Ne=new DataView(ge,ye,be).getUint16(0,!He),et;return Ne>0?et=xn(new Uint8Array(ge,ye+2,Ne)):et="",{data:et,size:2+Ne}}static parseLongString(ge,ye,be){if(be<4)throw new ue("Data not enough when parse LongString");let Ne=new DataView(ge,ye,be).getUint32(0,!He),et;return Ne>0?et=xn(new Uint8Array(ge,ye+4,Ne)):et="",{data:et,size:4+Ne}}static parseDate(ge,ye,be){if(be<10)throw new ue("Data size invalid when parse Date");let Le=new DataView(ge,ye,be),Ne=Le.getFloat64(0,!He),et=Le.getInt16(8,!He);return Ne+=et*60*1e3,{data:new Date(Ne),size:10}}static parseValue(ge,ye,be){if(be<1)throw new ue("Data not enough when parse Value");let Le=new DataView(ge,ye,be),Ne=1,et=Le.getUint8(0),ct,_n=!1;try{switch(et){case 0:ct=Le.getFloat64(1,!He),Ne+=8;break;case 1:{ct=!!Le.getUint8(1),Ne+=1;break}case 2:{let rn=un.parseString(ge,ye+1,be-1);ct=rn.data,Ne+=rn.size;break}case 3:{ct={};let rn=0;for((Le.getUint32(be-4,!He)&16777215)===9&&(rn=3);Ne32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(ge<=this._current_word_bits_left){let et=this._current_word>>>32-ge;return this._current_word<<=ge,this._current_word_bits_left-=ge,et}let ye=this._current_word_bits_left?this._current_word:0;ye=ye>>>32-this._current_word_bits_left;let be=ge-this._current_word_bits_left;this._fillCurrentWord();let Le=Math.min(be,this._current_word_bits_left),Ne=this._current_word>>>32-Le;return this._current_word<<=Le,this._current_word_bits_left-=Le,ye=ye<>>ge)return this._current_word<<=ge,this._current_word_bits_left-=ge,ge;return this._fillCurrentWord(),ge+this._skipLeadingZero()}readUEG(){let ge=this._skipLeadingZero();return this.readBits(ge+1)-1}readSEG(){let ge=this.readUEG();return ge&1?ge+1>>>1:-1*(ge>>>1)}}var Ln=nr;class Gt{static _ebsp2rbsp(ge){let ye=ge,be=ye.byteLength,Le=new Uint8Array(be),Ne=0;for(let et=0;et=2&&ye[et]===3&&ye[et-1]===0&&ye[et-2]===0||(Le[Ne]=ye[et],Ne++);return new Uint8Array(Le.buffer,0,Ne)}static parseSPS(ge){let ye=Gt._ebsp2rbsp(ge),be=new Ln(ye);be.readByte();let Le=be.readByte();be.readByte();let Ne=be.readByte();be.readUEG();let et=Gt.getProfileString(Le),ct=Gt.getLevelString(Ne),_n=1,rn=420,In=[0,420,422,444],pr=8;if((Le===100||Le===110||Le===122||Le===244||Le===44||Le===83||Le===86||Le===118||Le===128||Le===138||Le===144)&&(_n=be.readUEG(),_n===3&&be.readBits(1),_n<=3&&(rn=In[_n]),pr=be.readUEG()+8,be.readUEG(),be.readBits(1),be.readBool())){let Kr=_n!==3?8:12;for(let lr=0;lr0&&Kr<16?(Xo=lr[Kr-1],br=ci[Kr-1]):Kr===255&&(Xo=be.readByte()<<8|be.readByte(),br=be.readByte()<<8|be.readByte())}if(be.readBool()&&be.readBool(),be.readBool()&&(be.readBits(4),be.readBool()&&be.readBits(24)),be.readBool()&&(be.readUEG(),be.readUEG()),be.readBool()){let Kr=be.readBits(32),lr=be.readBits(32);wi=be.readBool(),ti=lr,hi=Kr*2,_o=ti/hi}}let Ya=1;(Xo!==1||br!==1)&&(Ya=Xo/br);let Ti=0,Bo=0;if(_n===0)Ti=1,Bo=2-Tn;else{let Kr=_n===3?1:2,lr=_n===1?2:1;Ti=Kr,Bo=lr*(2-Tn)}let Aa=(ur+1)*16,Bn=(2-Tn)*((er+1)*16);Aa-=(Un+sr)*Ti,Bn-=(Zr+xr)*Bo;let Sr=Math.ceil(Aa*Ya);return be.destroy(),be=null,{profile_string:et,level_string:ct,bit_depth:pr,ref_frames:Mt,chroma_format:rn,chroma_format_string:Gt.getChromaFormatString(rn),frame_rate:{fixed:wi,fps:_o,fps_den:hi,fps_num:ti},sar_ratio:{width:Xo,height:br},codec_size:{width:Aa,height:Bn},present_size:{width:Sr,height:Bn}}}static _skipScalingList(ge,ye){let be=8,Le=8,Ne=0;for(let et=0;et>>8&255|(yn&255)<<8}function Yt(yn){return(yn&4278190080)>>>24|(yn&16711680)>>>8|(yn&65280)<<8|(yn&255)<<24}function gt(yn,ge){return yn[ge]<<24|yn[ge+1]<<16|yn[ge+2]<<8|yn[ge+3]}class wt{constructor(ge,ye){this.TAG="FLVDemuxer",this._config=ye,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ge.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ge.hasAudioTrack,this._hasVideo=ge.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new xt,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let be=new ArrayBuffer(2);return new DataView(be).setInt16(0,256,!0),new Int16Array(be)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(ge){let ye=new Uint8Array(ge),be={match:!1};if(ye[0]!==70||ye[1]!==76||ye[2]!==86||ye[3]!==1)return be;let Le=(ye[4]&4)>>>2!==0,Ne=(ye[4]&1)!==0,et=gt(ye,5);return et<9?be:{match:!0,consumed:et,dataOffset:et,hasAudioTrack:Le,hasVideoTrack:Ne}}bindDataSource(ge){return ge.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ge){this._onTrackMetadata=ge}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ge){this._onMediaInfo=ge}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ge){this._onMetaDataArrived=ge}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ge){this._onScriptDataArrived=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ge){this._onDataAvailable=ge}get timestampBase(){return this._timestampBase}set timestampBase(ge){this._timestampBase=ge}get overridedDuration(){return this._duration}set overridedDuration(ge){this._durationOverrided=!0,this._duration=ge,this._mediaInfo.duration=ge}set overridedHasAudio(ge){this._hasAudioFlagOverrided=!0,this._hasAudio=ge,this._mediaInfo.hasAudio=ge}set overridedHasVideo(ge){this._hasVideoFlagOverrided=!0,this._hasVideo=ge,this._mediaInfo.hasVideo=ge}resetMediaInfo(){this._mediaInfo=new xt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ge,ye){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ue("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let be=0,Le=this._littleEndian;if(ye===0)if(ge.byteLength>13)be=wt.probe(ge).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ye+be!==this._dataOffset&&pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ge,be).getUint32(0,!Le)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),be+=4);bege.byteLength)break;let et=Ne.getUint8(0),ct=Ne.getUint32(0,!Le)&16777215;if(be+11+ct+4>ge.byteLength)break;if(et!==8&&et!==9&&et!==18){pe.w(this.TAG,`Unsupported tag type ${et}, skipped`),be+=11+ct+4;continue}let _n=Ne.getUint8(4),rn=Ne.getUint8(5),In=Ne.getUint8(6),pr=Ne.getUint8(7),_r=In|rn<<8|_n<<16|pr<<24;(Ne.getUint32(7,!Le)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let ur=be+11;switch(et){case 8:this._parseAudioData(ge,ur,ct,_r);break;case 9:this._parseVideoData(ge,ur,ct,_r,ye+be);break;case 18:this._parseScriptData(ge,ur,ct);break}let er=Ne.getUint32(11+ct,!Le);er!==11+ct&&pe.w(this.TAG,`Invalid PrevTagSize ${er}`),be+=11+ct+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),be}_parseScriptData(ge,ye,be){let Le=kn.parseScriptData(ge,ye,be);if(Le.hasOwnProperty("onMetaData")){if(Le.onMetaData==null||typeof Le.onMetaData!="object"){pe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&pe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Le;let Ne=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ne)),typeof Ne.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ne.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Ne.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ne.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Ne.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ne.audiodatarate),typeof Ne.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ne.videodatarate),typeof Ne.width=="number"&&(this._mediaInfo.width=Ne.width),typeof Ne.height=="number"&&(this._mediaInfo.height=Ne.height),typeof Ne.duration=="number"){if(!this._durationOverrided){let et=Math.floor(Ne.duration*this._timescale);this._duration=et,this._mediaInfo.duration=et}}else this._mediaInfo.duration=0;if(typeof Ne.framerate=="number"){let et=Math.floor(Ne.framerate*1e3);if(et>0){let ct=et/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ct,this._referenceFrameRate.fps_num=et,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ct}}if(typeof Ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let et=Ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(et),Ne.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ne,pe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Le).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Le))}_parseKeyframesIndex(ge){let ye=[],be=[];for(let Le=1;Le>>4;if(_n!==2&&_n!==10){this._onError(_t.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+_n);return}let rn=0,In=(ct&12)>>>2;if(In>=0&&In<=4)rn=this._flvSoundRateTable[In];else{this._onError(_t.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+In);return}let pr=(ct&2)>>>1,_r=ct&1,Mt=this._audioMetadata,ur=this._audioTrack;if(Mt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Mt=this._audioMetadata={},Mt.type="audio",Mt.id=ur.id,Mt.timescale=this._timescale,Mt.duration=this._duration,Mt.audioSampleRate=rn,Mt.channelCount=_r===0?1:2),_n===10){let er=this._parseAACAudioData(ge,ye+1,be-1);if(er==null)return;if(er.packetType===0){Mt.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Tn=er.data;Mt.audioSampleRate=Tn.samplingRate,Mt.channelCount=Tn.channelCount,Mt.codec=Tn.codec,Mt.originalCodec=Tn.originalCodec,Mt.config=Tn.config,Mt.refSampleDuration=1024/Mt.audioSampleRate*Mt.timescale,pe.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Mt);let Un=this._mediaInfo;Un.audioCodec=Mt.originalCodec,Un.audioSampleRate=Mt.audioSampleRate,Un.audioChannelCount=Mt.channelCount,Un.hasVideo?Un.videoCodec!=null&&(Un.mimeType='video/x-flv; codecs="'+Un.videoCodec+","+Un.audioCodec+'"'):Un.mimeType='video/x-flv; codecs="'+Un.audioCodec+'"',Un.isComplete()&&this._onMediaInfo(Un)}else if(er.packetType===1){let Tn=this._timestampBase+Le,Un={unit:er.data,length:er.data.byteLength,dts:Tn,pts:Tn};ur.samples.push(Un),ur.length+=er.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${er.packetType}`)}else if(_n===2){if(!Mt.codec){let sr=this._parseMP3AudioData(ge,ye+1,be-1,!0);if(sr==null)return;Mt.audioSampleRate=sr.samplingRate,Mt.channelCount=sr.channelCount,Mt.codec=sr.codec,Mt.originalCodec=sr.originalCodec,Mt.refSampleDuration=1152/Mt.audioSampleRate*Mt.timescale,pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Mt);let Zr=this._mediaInfo;Zr.audioCodec=Mt.codec,Zr.audioSampleRate=Mt.audioSampleRate,Zr.audioChannelCount=Mt.channelCount,Zr.audioDataRate=sr.bitRate,Zr.hasVideo?Zr.videoCodec!=null&&(Zr.mimeType='video/x-flv; codecs="'+Zr.videoCodec+","+Zr.audioCodec+'"'):Zr.mimeType='video/x-flv; codecs="'+Zr.audioCodec+'"',Zr.isComplete()&&this._onMediaInfo(Zr)}let er=this._parseMP3AudioData(ge,ye+1,be-1,!1);if(er==null)return;let Tn=this._timestampBase+Le,Un={unit:er,length:er.byteLength,dts:Tn,pts:Tn};ur.samples.push(Un),ur.length+=er.length}}_parseAACAudioData(ge,ye,be){if(be<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Le={},Ne=new Uint8Array(ge,ye,be);return Le.packetType=Ne[0],Ne[0]===0?Le.data=this._parseAACAudioSpecificConfig(ge,ye+1,be-1):Le.data=Ne.subarray(1),Le}_parseAACAudioSpecificConfig(ge,ye,be){let Le=new Uint8Array(ge,ye,be),Ne=null,et=0,ct=0,_n=null,rn=0,In=null;if(et=ct=Le[0]>>>3,rn=(Le[0]&7)<<1|Le[1]>>>7,rn<0||rn>=this._mpegSamplingRates.length){this._onError(_t.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let pr=this._mpegSamplingRates[rn],_r=(Le[1]&120)>>>3;if(_r<0||_r>=8){this._onError(_t.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}et===5&&(In=(Le[1]&7)<<1|Le[2]>>>7,_n=(Le[2]&124)>>>2);let Mt=self.navigator.userAgent.toLowerCase();return Mt.indexOf("firefox")!==-1?rn>=6?(et=5,Ne=new Array(4),In=rn-3):(et=2,Ne=new Array(2),In=rn):Mt.indexOf("android")!==-1?(et=2,Ne=new Array(2),In=rn):(et=5,In=rn,Ne=new Array(4),rn>=6?In=rn-3:_r===1&&(et=2,Ne=new Array(2),In=rn)),Ne[0]=et<<3,Ne[0]|=(rn&15)>>>1,Ne[1]=(rn&15)<<7,Ne[1]|=(_r&15)<<3,et===5&&(Ne[1]|=(In&15)>>>1,Ne[2]=(In&1)<<7,Ne[2]|=8,Ne[3]=0),{config:Ne,samplingRate:pr,channelCount:_r,codec:"mp4a.40."+et,originalCodec:"mp4a.40."+ct}}_parseMP3AudioData(ge,ye,be,Le){if(be<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ne=this._littleEndian,et=new Uint8Array(ge,ye,be),ct=null;if(Le){if(et[0]!==255)return;let _n=et[1]>>>3&3,rn=(et[1]&6)>>1,In=(et[2]&240)>>>4,pr=(et[2]&12)>>>2,Mt=(et[3]>>>6&3)!==3?2:1,ur=0,er=0,Tn=34,Un="mp3";switch(_n){case 0:ur=this._mpegAudioV25SampleRateTable[pr];break;case 2:ur=this._mpegAudioV20SampleRateTable[pr];break;case 3:ur=this._mpegAudioV10SampleRateTable[pr];break}switch(rn){case 1:Tn=34,In>>4,_n=et&15;if(_n!==7){this._onError(_t.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${_n}`);return}this._parseAVCVideoPacket(ge,ye+1,be-1,Le,Ne,ct)}_parseAVCVideoPacket(ge,ye,be,Le,Ne,et){if(be<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let ct=this._littleEndian,_n=new DataView(ge,ye,be),rn=_n.getUint8(0),pr=(_n.getUint32(0,!ct)&16777215)<<8>>8;if(rn===0)this._parseAVCDecoderConfigurationRecord(ge,ye+4,be-4);else if(rn===1)this._parseAVCVideoData(ge,ye+4,be-4,Le,Ne,et,pr);else if(rn!==2){this._onError(_t.FORMAT_ERROR,`Flv: Invalid video packet type ${rn}`);return}}_parseAVCDecoderConfigurationRecord(ge,ye,be){if(be<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Le=this._videoMetadata,Ne=this._videoTrack,et=this._littleEndian,ct=new DataView(ge,ye,be);Le?typeof Le.avcc!="undefined"&&pe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Le=this._videoMetadata={},Le.type="video",Le.id=Ne.id,Le.timescale=this._timescale,Le.duration=this._duration);let _n=ct.getUint8(0),rn=ct.getUint8(1),In=ct.getUint8(2),pr=ct.getUint8(3);if(_n!==1||rn===0){this._onError(_t.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ct.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(_t.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let _r=ct.getUint8(5)&31;if(_r===0){this._onError(_t.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else _r>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${_r}`);let Mt=6;for(let er=0;er<_r;er++){let Tn=ct.getUint16(Mt,!et);if(Mt+=2,Tn===0)continue;let Un=new Uint8Array(ge,ye+Mt,Tn);Mt+=Tn;let sr=Je.parseSPS(Un);if(er!==0)continue;Le.codecWidth=sr.codec_size.width,Le.codecHeight=sr.codec_size.height,Le.presentWidth=sr.present_size.width,Le.presentHeight=sr.present_size.height,Le.profile=sr.profile_string,Le.level=sr.level_string,Le.bitDepth=sr.bit_depth,Le.chromaFormat=sr.chroma_format,Le.sarRatio=sr.sar_ratio,Le.frameRate=sr.frame_rate,(sr.frame_rate.fixed===!1||sr.frame_rate.fps_num===0||sr.frame_rate.fps_den===0)&&(Le.frameRate=this._referenceFrameRate);let Zr=Le.frameRate.fps_den,xr=Le.frameRate.fps_num;Le.refSampleDuration=Le.timescale*(Zr/xr);let Gi=Un.subarray(1,4),Xo="avc1.";for(let _o=0;_o<3;_o++){let wi=Gi[_o].toString(16);wi.length<2&&(wi="0"+wi),Xo+=wi}Le.codec=Xo;let br=this._mediaInfo;br.width=Le.codecWidth,br.height=Le.codecHeight,br.fps=Le.frameRate.fps,br.profile=Le.profile,br.level=Le.level,br.refFrames=sr.ref_frames,br.chromaFormat=sr.chroma_format_string,br.sarNum=Le.sarRatio.width,br.sarDen=Le.sarRatio.height,br.videoCodec=Xo,br.hasAudio?br.audioCodec!=null&&(br.mimeType='video/x-flv; codecs="'+br.videoCodec+","+br.audioCodec+'"'):br.mimeType='video/x-flv; codecs="'+br.videoCodec+'"',br.isComplete()&&this._onMediaInfo(br)}let ur=ct.getUint8(Mt);if(ur===0){this._onError(_t.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ur>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${ur}`);Mt++;for(let er=0;er=be){pe.w(this.TAG,`Malformed Nalu near timestamp ${ur}, offset = ${_r}, dataSize = ${be}`);break}let Tn=rn.getUint32(_r,!_n);if(Mt===3&&(Tn>>>=8),Tn>be-Mt){pe.w(this.TAG,`Malformed Nalus near timestamp ${ur}, NaluSize > DataSize!`);return}let Un=rn.getUint8(_r+Mt)&31;Un===5&&(er=!0);let sr=new Uint8Array(ge,ye+_r,Mt+Tn),Zr={type:Un,data:sr};In.push(Zr),pr+=sr.byteLength,_r+=Mt+Tn}if(In.length){let Tn=this._videoTrack,Un={units:In,length:pr,isKeyframe:er,dts:ur,cts:ct,pts:ur+ct};er&&(Un.fileposition=Ne),Tn.samples.push(Un),Tn.length+=pr}}}var Dt=wt;class tt{static init(){tt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let ye in tt.types)tt.types.hasOwnProperty(ye)&&(tt.types[ye]=[ye.charCodeAt(0),ye.charCodeAt(1),ye.charCodeAt(2),ye.charCodeAt(3)]);let ge=tt.constants={};ge.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ge.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ge.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ge.STSC=ge.STCO=ge.STTS,ge.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ge.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),ge.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),ge.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ge.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ge.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ge){let ye=8,be=null,Le=Array.prototype.slice.call(arguments,1),Ne=Le.length;for(let ct=0;ct>>24&255,be[1]=ye>>>16&255,be[2]=ye>>>8&255,be[3]=ye&255,be.set(ge,4);let et=8;for(let ct=0;ct>>24&255,ge>>>16&255,ge>>>8&255,ge&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(ge){return tt.box(tt.types.trak,tt.tkhd(ge),tt.mdia(ge))}static tkhd(ge){let ye=ge.id,be=ge.duration,Le=ge.presentWidth,Ne=ge.presentHeight;return tt.box(tt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,0,0,0,be>>>24&255,be>>>16&255,be>>>8&255,be&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Le>>>8&255,Le&255,0,0,Ne>>>8&255,Ne&255,0,0]))}static mdia(ge){return tt.box(tt.types.mdia,tt.mdhd(ge),tt.hdlr(ge),tt.minf(ge))}static mdhd(ge){let ye=ge.timescale,be=ge.duration;return tt.box(tt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,be>>>24&255,be>>>16&255,be>>>8&255,be&255,85,196,0,0]))}static hdlr(ge){let ye=null;return ge.type==="audio"?ye=tt.constants.HDLR_AUDIO:ye=tt.constants.HDLR_VIDEO,tt.box(tt.types.hdlr,ye)}static minf(ge){let ye=null;return ge.type==="audio"?ye=tt.box(tt.types.smhd,tt.constants.SMHD):ye=tt.box(tt.types.vmhd,tt.constants.VMHD),tt.box(tt.types.minf,ye,tt.dinf(),tt.stbl(ge))}static dinf(){return tt.box(tt.types.dinf,tt.box(tt.types.dref,tt.constants.DREF))}static stbl(ge){return tt.box(tt.types.stbl,tt.stsd(ge),tt.box(tt.types.stts,tt.constants.STTS),tt.box(tt.types.stsc,tt.constants.STSC),tt.box(tt.types.stsz,tt.constants.STSZ),tt.box(tt.types.stco,tt.constants.STCO))}static stsd(ge){return ge.type==="audio"?ge.codec==="mp3"?tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.mp3(ge)):tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.mp4a(ge)):tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.avc1(ge))}static mp3(ge){let ye=ge.channelCount,be=ge.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ye,0,16,0,0,0,0,be>>>8&255,be&255,0,0]);return tt.box(tt.types[".mp3"],Le)}static mp4a(ge){let ye=ge.channelCount,be=ge.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ye,0,16,0,0,0,0,be>>>8&255,be&255,0,0]);return tt.box(tt.types.mp4a,Le,tt.esds(ge))}static esds(ge){let ye=ge.config||[],be=ye.length,Le=new Uint8Array([0,0,0,0,3,23+be,0,1,0,4,15+be,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([be]).concat(ye).concat([6,1,2]));return tt.box(tt.types.esds,Le)}static avc1(ge){let ye=ge.avcc,be=ge.codecWidth,Le=ge.codecHeight,Ne=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,be>>>8&255,be&255,Le>>>8&255,Le&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return tt.box(tt.types.avc1,Ne,tt.box(tt.types.avcC,ye))}static mvex(ge){return tt.box(tt.types.mvex,tt.trex(ge))}static trex(ge){let ye=ge.id,be=new Uint8Array([0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return tt.box(tt.types.trex,be)}static moof(ge,ye){return tt.box(tt.types.moof,tt.mfhd(ge.sequenceNumber),tt.traf(ge,ye))}static mfhd(ge){let ye=new Uint8Array([0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255]);return tt.box(tt.types.mfhd,ye)}static traf(ge,ye){let be=ge.id,Le=tt.box(tt.types.tfhd,new Uint8Array([0,0,0,0,be>>>24&255,be>>>16&255,be>>>8&255,be&255])),Ne=tt.box(tt.types.tfdt,new Uint8Array([0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255])),et=tt.sdtp(ge),ct=tt.trun(ge,et.byteLength+16+16+8+16+8+8);return tt.box(tt.types.traf,Le,Ne,ct,et)}static sdtp(ge){let ye=ge.samples||[],be=ye.length,Le=new Uint8Array(4+be);for(let Ne=0;Ne>>24&255,Le>>>16&255,Le>>>8&255,Le&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255],0);for(let ct=0;ct>>24&255,_n>>>16&255,_n>>>8&255,_n&255,rn>>>24&255,rn>>>16&255,rn>>>8&255,rn&255,In.isLeading<<2|In.dependsOn,In.isDependedOn<<6|In.hasRedundancy<<4|In.isNonSync,0,0,pr>>>24&255,pr>>>16&255,pr>>>8&255,pr&255],12+16*ct)}return tt.box(tt.types.trun,et)}static mdat(ge){return tt.box(tt.types.mdat,ge)}}tt.init();var fn=tt;class hn{static getSilentFrame(ge,ye){if(ge==="mp4a.40.2"){if(ye===1)return new Uint8Array([0,200,0,128,35,128]);if(ye===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ye===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ye===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ye===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ye===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ye===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ye===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ye===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var $n=hn;class no{constructor(ge,ye,be,Le,Ne){this.dts=ge,this.pts=ye,this.duration=be,this.originalDts=Le,this.isSyncPoint=Ne,this.fileposition=null}}class rt{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(ge){ge.isSyncPoint=!0,this.syncPoints.push(ge)}}class vt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ge){let ye=this._list;ge.length!==0&&(ye.length>0&&ge[0].originalDts=ye[Ne].dts&&geye[Le].lastSample.originalDts&&ge=ye[Le].lastSample.originalDts&&(Le===ye.length-1||Le0&&(Ne=this._searchNearestSegmentBefore(be.originalBeginDts)+1),this._lastAppendLocation=Ne,this._list.splice(Ne,0,be)}getLastSegmentBefore(ge){let ye=this._searchNearestSegmentBefore(ge);return ye>=0?this._list[ye]:null}getLastSampleBefore(ge){let ye=this.getLastSegmentBefore(ge);return ye!=null?ye.lastSample:null}getLastSyncPointBefore(ge){let ye=this._searchNearestSegmentBefore(ge),be=this._list[ye].syncPoints;for(;be.length===0&&ye>0;)ye--,be=this._list[ye].syncPoints;return be.length>0?be[be.length-1]:null}}class Zt{constructor(ge){this.TAG="MP4Remuxer",this._config=ge,this._isLive=ge.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new An("audio"),this._videoSegmentInfoList=new An("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661)),this._fillSilentAfterSeek=b.msedge||b.msie,this._mp3UseMpegAudio=!b.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(ge){return ge.onDataAvailable=this.remux.bind(this),ge.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ge){this._onInitSegment=ge}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ge){this._onMediaSegment=ge}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ge){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ge,ye){if(!this._onMediaSegment)throw new ue("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ge,ye),this._remuxVideo(ye),this._remuxAudio(ge)}_onTrackMetadataReceived(ge,ye){let be=null,Le="mp4",Ne=ye.codec;if(ge==="audio")this._audioMeta=ye,ye.codec==="mp3"&&this._mp3UseMpegAudio?(Le="mpeg",Ne="",be=new Uint8Array):be=fn.generateInitSegment(ye);else if(ge==="video")this._videoMeta=ye,be=fn.generateInitSegment(ye);else return;if(!this._onInitSegment)throw new ue("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ge,{type:ge,data:be.buffer,codec:Ne,container:`${ge}/${Le}`,mediaDuration:ye.duration})}_calculateDtsBase(ge,ye){this._dtsBaseInited||(ge.samples&&ge.samples.length&&(this._audioDtsBase=ge.samples[0].dts),ye.samples&&ye.samples.length&&(this._videoDtsBase=ye.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ge=this._videoStashedLastSample,ye=this._audioStashedLastSample,be={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ge!=null&&(be.samples.push(ge),be.length=ge.length);let Le={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ye!=null&&(Le.samples.push(ye),Le.length=ye.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(be,!0),this._remuxAudio(Le,!0)}_remuxAudio(ge,ye){if(this._audioMeta==null)return;let be=ge,Le=be.samples,Ne,et=-1,ct=-1,_n=-1,rn=this._audioMeta.refSampleDuration,In=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,pr=this._dtsBaseInited&&this._audioNextDts===void 0,_r=!1;if(!Le||Le.length===0||Le.length===1&&!ye)return;let Mt=0,ur=null,er=0;In?(Mt=0,er=be.length):(Mt=8,er=8+be.length);let Tn=null;if(Le.length>1&&(Tn=Le.pop(),er-=Tn.length),this._audioStashedLastSample!=null){let br=this._audioStashedLastSample;this._audioStashedLastSample=null,Le.unshift(br),er+=br.length}Tn!=null&&(this._audioStashedLastSample=Tn);let Un=Le[0].dts-this._dtsBase;if(this._audioNextDts)Ne=Un-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(_r=!0);else{let br=this._audioSegmentInfoList.getLastSampleBefore(Un);if(br!=null){let _o=Un-(br.originalDts+br.duration);_o<=3&&(_o=0);let wi=br.dts+br.duration+_o;Ne=Un-wi}else Ne=0}if(_r){let br=Un-Ne,_o=this._videoSegmentInfoList.getLastSegmentBefore(Un);if(_o!=null&&_o.beginDts=1?pn=sr[sr.length-1].duration:pn=Math.floor(rn);let Ya=!1,Ti=null;if(pn>rn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Ya=!0;let Bo=Math.abs(pn-rn),Aa=Math.ceil(Bo/rn),Bn=hi+rn;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${hi+pn} ms, expected: ${hi+Math.round(rn)} ms, delta: ${Math.round(Bo)} ms, generate: ${Aa} frames`);let Sr=$n.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Sr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Sr=wi),Ti=[];for(let lr=0;lr0){let ra=Ti[Ti.length-1];ra.duration=ci-ra.dts}let Li={dts:ci,pts:ci,cts:0,unit:Sr,size:Sr.byteLength,duration:0,originalDts:ti,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ti.push(Li),er+=Li.size,Bn+=rn}let Kr=Ti[Ti.length-1];Kr.duration=hi+pn-Kr.dts,pn=Math.round(rn)}sr.push({dts:hi,pts:hi,cts:0,unit:_o.unit,size:_o.unit.byteLength,duration:pn,originalDts:ti,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ya&&sr.push.apply(sr,Ti)}In?ur=new Uint8Array(er):(ur=new Uint8Array(er),ur[0]=er>>>24&255,ur[1]=er>>>16&255,ur[2]=er>>>8&255,ur[3]=er&255,ur.set(fn.types.mdat,4));for(let br=0;br1&&(Mt=Le.pop(),_r-=Mt.length),this._videoStashedLastSample!=null){let Zr=this._videoStashedLastSample;this._videoStashedLastSample=null,Le.unshift(Zr),_r+=Zr.length}Mt!=null&&(this._videoStashedLastSample=Mt);let ur=Le[0].dts-this._dtsBase;if(this._videoNextDts)Ne=ur-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ne=0;else{let Zr=this._videoSegmentInfoList.getLastSampleBefore(ur);if(Zr!=null){let xr=ur-(Zr.originalDts+Zr.duration);xr<=3&&(xr=0);let Gi=Zr.dts+Zr.duration+xr;Ne=ur-Gi}else Ne=0}let er=new rt,Tn=[];for(let Zr=0;Zr=1?ti=Tn[Tn.length-1].duration:ti=Math.floor(this._videoMeta.refSampleDuration),Xo){let hi=new no(br,wi,ti,xr.dts,!0);hi.fileposition=xr.fileposition,er.appendSyncPoint(hi)}Tn.push({dts:br,pts:wi,cts:_o,units:xr.units,size:xr.length,isKeyframe:Xo,duration:ti,originalDts:Gi,flags:{isLeading:0,dependsOn:Xo?2:1,isDependedOn:Xo?1:0,hasRedundancy:0,isNonSync:Xo?0:1}})}pr=new Uint8Array(_r),pr[0]=_r>>>24&255,pr[1]=_r>>>16&255,pr[2]=_r>>>8&255,pr[3]=_r&255,pr.set(fn.types.mdat,4);for(let Zr=0;Zr{Le.timestampBase=be,be+=Le.duration,Le.cors=ge.cors,Le.withCredentials=ge.withCredentials,ye.referrerPolicy&&(Le.referrerPolicy=ye.referrerPolicy)}),!isNaN(be)&&this._mediaDataSource.duration!==be&&(this._mediaDataSource.duration=be),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(ge,ye){this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ge,ye){this._currentSegmentIndex=ge;let be=this._mediaDataSource.segments[ge],Le=this._ioctl=new De(be,this._config,ge);Le.onError=this._onIOException.bind(this),Le.onSeeked=this._onIOSeeked.bind(this),Le.onComplete=this._onIOComplete.bind(this),Le.onRedirect=this._onIORedirect.bind(this),Le.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ye?this._demuxer.bindDataSource(this._ioctl):Le.onDataArrival=this._onInitChunkArrival.bind(this),Le.open(ye)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(ge){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ye=this._searchSegmentIndexContains(ge);if(ye===this._currentSegmentIndex){let be=this._mediaInfo.segments[ye];if(be==null)this._pendingSeekTime=ge;else{let Le=be.getNearestKeyframe(ge);this._remuxer.seek(Le.milliseconds),this._ioctl.seek(Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds}}else{let be=this._mediaInfo.segments[ye];if(be==null)this._pendingSeekTime=ge,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ye);else{let Le=be.getNearestKeyframe(ge);this._internalAbort(),this._remuxer.seek(ge),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ye].timestampBase,this._loadSegment(ye,Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds,this._reportSegmentMediaInfo(ye)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ge){let ye=this._mediaDataSource.segments,be=ye.length-1;for(let Le=0;Le0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Le=this._demuxer.parseChunks(ge,ye);else if((be=Dt.probe(ge)).match){this._demuxer=new Dt(be,this._config),this._remuxer||(this._remuxer=new yt(this._config));let Ne=this._mediaDataSource;Ne.duration!=null&&!isNaN(Ne.duration)&&(this._demuxer.overridedDuration=Ne.duration),typeof Ne.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ne.hasAudio),typeof Ne.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ne.hasVideo),this._demuxer.timestampBase=Ne.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),Le=this._demuxer.parseChunks(ge,ye)}else be=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Xt.DEMUX_ERROR,_t.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Le=0;return Le}_onMediaInfo(ge){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ge),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,xt.prototype));let ye=Object.assign({},ge);Object.setPrototypeOf(ye,xt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ye,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let be=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(be)})}_onMetaDataArrived(ge){this._emitter.emit(Xt.METADATA_ARRIVED,ge)}_onScriptDataArrived(ge){this._emitter.emit(Xt.SCRIPTDATA_ARRIVED,ge)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ge){let be=ge+1;be0&&be[0].originalDts===Le&&(Le=be[0].pts),this._emitter.emit(Xt.RECOMMEND_SEEKPOINT,Le)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(ge){let ye=this._mediaInfo.segments[ge],be=Object.assign({},ye);be.duration=this._mediaInfo.duration,be.segmentCount=this._mediaInfo.segmentCount,delete be.segments,delete be.keyframesIndex,this._emitter.emit(Xt.MEDIA_INFO,be)}_reportStatisticsInfo(){let ge={};ge.url=this._ioctl.currentURL,ge.hasRedirect=this._ioctl.hasRedirect,ge.hasRedirect&&(ge.redirectedURL=this._ioctl.currentRedirectedURL),ge.speed=this._ioctl.currentSpeed,ge.loaderType=this._ioctl.loaderType,ge.currentSegmentIndex=this._currentSegmentIndex,ge.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Xt.STATISTICS_INFO,ge)}}var Br=qn,Gn=function(yn){let ge="TransmuxingWorker",ye=null,be=er.bind(this);fe.install(),yn.addEventListener("message",function(Tn){switch(Tn.data.cmd){case"init":ye=new Br(Tn.data.param[0],Tn.data.param[1]),ye.on(Xt.IO_ERROR,_r.bind(this)),ye.on(Xt.DEMUX_ERROR,Mt.bind(this)),ye.on(Xt.INIT_SEGMENT,Le.bind(this)),ye.on(Xt.MEDIA_SEGMENT,Ne.bind(this)),ye.on(Xt.LOADING_COMPLETE,et.bind(this)),ye.on(Xt.RECOVERED_EARLY_EOF,ct.bind(this)),ye.on(Xt.MEDIA_INFO,_n.bind(this)),ye.on(Xt.METADATA_ARRIVED,rn.bind(this)),ye.on(Xt.SCRIPTDATA_ARRIVED,In.bind(this)),ye.on(Xt.STATISTICS_INFO,pr.bind(this)),ye.on(Xt.RECOMMEND_SEEKPOINT,ur.bind(this));break;case"destroy":ye&&(ye.destroy(),ye=null),yn.postMessage({msg:"destroyed"});break;case"start":ye.start();break;case"stop":ye.stop();break;case"seek":ye.seek(Tn.data.param);break;case"pause":ye.pause();break;case"resume":ye.resume();break;case"logging_config":{let Un=Tn.data.param;it.applyConfig(Un),Un.enableCallback===!0?it.addLogListener(be):it.removeLogListener(be);break}}});function Le(Tn,Un){let sr={msg:Xt.INIT_SEGMENT,data:{type:Tn,data:Un}};yn.postMessage(sr,[Un.data])}function Ne(Tn,Un){let sr={msg:Xt.MEDIA_SEGMENT,data:{type:Tn,data:Un}};yn.postMessage(sr,[Un.data])}function et(){let Tn={msg:Xt.LOADING_COMPLETE};yn.postMessage(Tn)}function ct(){let Tn={msg:Xt.RECOVERED_EARLY_EOF};yn.postMessage(Tn)}function _n(Tn){let Un={msg:Xt.MEDIA_INFO,data:Tn};yn.postMessage(Un)}function rn(Tn){let Un={msg:Xt.METADATA_ARRIVED,data:Tn};yn.postMessage(Un)}function In(Tn){let Un={msg:Xt.SCRIPTDATA_ARRIVED,data:Tn};yn.postMessage(Un)}function pr(Tn){let Un={msg:Xt.STATISTICS_INFO,data:Tn};yn.postMessage(Un)}function _r(Tn,Un){yn.postMessage({msg:Xt.IO_ERROR,data:{type:Tn,info:Un}})}function Mt(Tn,Un){yn.postMessage({msg:Xt.DEMUX_ERROR,data:{type:Tn,info:Un}})}function ur(Tn){yn.postMessage({msg:Xt.RECOMMEND_SEEKPOINT,data:Tn})}function er(Tn,Un){yn.postMessage({msg:"logcat_callback",data:{type:Tn,logcat:Un}})}};class ir{constructor(ge,ye){if(this.TAG="Transmuxer",this._emitter=new(ve()),ye.enableWorker&&typeof Worker!="undefined")try{let be=te(18034);this._worker=be(Gn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ge,ye]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},it.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:it.getConfig()})}catch(be){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Br(ge,ye)}else this._controller=new Br(ge,ye);if(this._controller){let be=this._controller;be.on(Xt.IO_ERROR,this._onIOError.bind(this)),be.on(Xt.DEMUX_ERROR,this._onDemuxError.bind(this)),be.on(Xt.INIT_SEGMENT,this._onInitSegment.bind(this)),be.on(Xt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),be.on(Xt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),be.on(Xt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),be.on(Xt.MEDIA_INFO,this._onMediaInfo.bind(this)),be.on(Xt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),be.on(Xt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),be.on(Xt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),be.on(Xt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),it.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(ge,ye){this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(ge){this._worker?this._worker.postMessage({cmd:"seek",param:ge}):this._controller.seek(ge)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.INIT_SEGMENT,ge,ye)})}_onMediaSegment(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.MEDIA_SEGMENT,ge,ye)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Xt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Xt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.MEDIA_INFO,ge)})}_onMetaDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.METADATA_ARRIVED,ge)})}_onScriptDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.SCRIPTDATA_ARRIVED,ge)})}_onStatisticsInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.STATISTICS_INFO,ge)})}_onIOError(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.IO_ERROR,ge,ye)})}_onDemuxError(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.DEMUX_ERROR,ge,ye)})}_onRecommendSeekpoint(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.RECOMMEND_SEEKPOINT,ge)})}_onLoggingConfigChanged(ge){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ge})}_onWorkerMessage(ge){let ye=ge.data,be=ye.data;if(ye.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ye.msg){case Xt.INIT_SEGMENT:case Xt.MEDIA_SEGMENT:this._emitter.emit(ye.msg,be.type,be.data);break;case Xt.LOADING_COMPLETE:case Xt.RECOVERED_EARLY_EOF:this._emitter.emit(ye.msg);break;case Xt.MEDIA_INFO:Object.setPrototypeOf(be,xt.prototype),this._emitter.emit(ye.msg,be);break;case Xt.METADATA_ARRIVED:case Xt.SCRIPTDATA_ARRIVED:case Xt.STATISTICS_INFO:this._emitter.emit(ye.msg,be);break;case Xt.IO_ERROR:case Xt.DEMUX_ERROR:this._emitter.emit(ye.msg,be.type,be.info);break;case Xt.RECOMMEND_SEEKPOINT:this._emitter.emit(ye.msg,be);break;case"logcat_callback":pe.emitter.emit("log",be.type,be.logcat);break;default:break}}}var So=ir,qr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Yo{constructor(ge){this.TAG="MSEController",this._config=ge,this._emitter=new(ve()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new vt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,ye){this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}attachMediaElement(ge){if(this._mediaSource)throw new ue("MediaSource has been attached to an HTMLMediaElement!");let ye=this._mediaSource=new window.MediaSource;ye.addEventListener("sourceopen",this.e.onSourceOpen),ye.addEventListener("sourceended",this.e.onSourceEnded),ye.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ge,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ge.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ge=this._mediaSource;for(let ye in this._sourceBuffers){let be=this._pendingSegments[ye];be.splice(0,be.length),this._pendingSegments[ye]=null,this._pendingRemoveRanges[ye]=null,this._lastInitSegments[ye]=null;let Le=this._sourceBuffers[ye];if(Le){if(ge.readyState!=="closed"){try{ge.removeSourceBuffer(Le)}catch(Ne){pe.e(this.TAG,Ne.message)}Le.removeEventListener("error",this.e.onSourceBufferError),Le.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ye]=null,this._sourceBuffers[ye]=null}}if(ge.readyState==="open")try{ge.endOfStream()}catch(ye){pe.e(this.TAG,ye.message)}ge.removeEventListener("sourceopen",this.e.onSourceOpen),ge.removeEventListener("sourceended",this.e.onSourceEnded),ge.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(ge,ye){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ge),this._pendingSegments[ge.type].push(ge);return}let be=ge,Le=`${be.container}`;be.codec&&be.codec.length>0&&(Le+=`;codecs=${be.codec}`);let Ne=!1;if(pe.v(this.TAG,"Received Initialization Segment, mimeType: "+Le),this._lastInitSegments[be.type]=be,Le!==this._mimeTypes[be.type]){if(this._mimeTypes[be.type])pe.v(this.TAG,`Notice: ${be.type} mimeType changed, origin: ${this._mimeTypes[be.type]}, target: ${Le}`);else{Ne=!0;try{let et=this._sourceBuffers[be.type]=this._mediaSource.addSourceBuffer(Le);et.addEventListener("error",this.e.onSourceBufferError),et.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(et){pe.e(this.TAG,et.message),this._emitter.emit(qr.ERROR,{code:et.code,msg:et.message});return}}this._mimeTypes[be.type]=Le}ye||this._pendingSegments[be.type].push(be),Ne||this._sourceBuffers[be.type]&&!this._sourceBuffers[be.type].updating&&this._doAppendSegments(),b.safari&&be.container==="audio/mpeg"&&be.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=be.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(ge){let ye=ge;this._pendingSegments[ye.type].push(ye),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let be=this._sourceBuffers[ye.type];be&&!be.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ge){for(let ye in this._sourceBuffers){if(!this._sourceBuffers[ye])continue;let be=this._sourceBuffers[ye];if(this._mediaSource.readyState==="open")try{be.abort()}catch(Ne){pe.e(this.TAG,Ne.message)}this._idrList.clear();let Le=this._pendingSegments[ye];if(Le.splice(0,Le.length),this._mediaSource.readyState!=="closed"){for(let Ne=0;Ne=1&&ge-Le.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ge=this._mediaElement.currentTime;for(let ye in this._sourceBuffers){let be=this._sourceBuffers[ye];if(be){let Le=be.buffered,Ne=!1;for(let et=0;et=this._config.autoCleanupMaxBackwardDuration){Ne=!0;let rn=ge-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ye].push({start:ct,end:rn})}}else _n0&&(isNaN(ye)||be>ye)&&(pe.v(this.TAG,`Update MediaSource duration from ${ye} to ${be}`),this._mediaSource.duration=be),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ge in this._pendingRemoveRanges){if(!this._sourceBuffers[ge]||this._sourceBuffers[ge].updating)continue;let ye=this._sourceBuffers[ge],be=this._pendingRemoveRanges[ge];for(;be.length&&!ye.updating;){let Le=be.shift();ye.remove(Le.start,Le.end)}}}_doAppendSegments(){let ge=this._pendingSegments;for(let ye in ge)if(!(!this._sourceBuffers[ye]||this._sourceBuffers[ye].updating)&&ge[ye].length>0){let be=ge[ye].shift();if(be.timestampOffset){let Le=this._sourceBuffers[ye].timestampOffset,Ne=be.timestampOffset/1e3;Math.abs(Le-Ne)>.1&&(pe.v(this.TAG,`Update MPEG audio timestampOffset from ${Le} to ${Ne}`),this._sourceBuffers[ye].timestampOffset=Ne),delete be.timestampOffset}if(!be.data||be.data.byteLength===0)continue;try{this._sourceBuffers[ye].appendBuffer(be.data),this._isBufferFull=!1,ye==="video"&&be.hasOwnProperty("info")&&this._idrList.appendArray(be.info.syncPoints)}catch(Le){this._pendingSegments[ye].unshift(be),Le.code===22?(this._isBufferFull||this._emitter.emit(qr.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Le.message),this._emitter.emit(qr.ERROR,{code:Le.code,msg:Le.message}))}}}_onSourceOpen(){if(pe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let ge=this._pendingSourceBufferInit;for(;ge.length;){let ye=ge.shift();this.appendInitSegment(ye,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(qr.SOURCE_OPEN)}_onSourceEnded(){pe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){pe.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let ge=this._pendingSegments;return ge.video.length>0||ge.audio.length>0}_hasPendingRemoveRanges(){let ge=this._pendingRemoveRanges;return ge.video.length>0||ge.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(qr.UPDATE_END)}_onSourceBufferError(ge){pe.e(this.TAG,`SourceBuffer Error: ${ge}`)}}var Zo=Yo;const qo={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},yr={NETWORK_EXCEPTION:ne.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ne.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ne.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ne.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:_t.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:_t.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:_t.CODEC_UNSUPPORTED};class xo{constructor(ge,ye){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=nt(),typeof ye=="object"&&Object.assign(this._config,ye),ge.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");ge.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=ge,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let be=b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661);this._alwaysSeekKeyframe=!!(be||b.msedge||b.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,ye){ge===nn.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nn.MEDIA_INFO,this.mediaInfo)}):ge===nn.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nn.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ge.addEventListener("seeking",this.e.onvSeeking),ge.addEventListener("canplay",this.e.onvCanPlay),ge.addEventListener("stalled",this.e.onvStalled),ge.addEventListener("progress",this.e.onvProgress),this._msectl=new Zo(this._config),this._msectl.on(qr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(qr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(qr.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(qr.ERROR,ye=>{this._emitter.emit(nn.ERROR,qo.MEDIA_ERROR,yr.MEDIA_MSE_ERROR,ye)}),this._msectl.attachMediaElement(ge),this._pendingSeekTime!=null)try{ge.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ye){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new ue("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ue("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new So(this._mediaDataSource,this._config),this._transmuxer.on(Xt.INIT_SEGMENT,(ge,ye)=>{this._msectl.appendInitSegment(ye)}),this._transmuxer.on(Xt.MEDIA_SEGMENT,(ge,ye)=>{if(this._msectl.appendMediaSegment(ye),this._config.lazyLoad&&!this._config.isLive){let be=this._mediaElement.currentTime;ye.info.endDts>=(be+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Xt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(nn.LOADING_COMPLETE)}),this._transmuxer.on(Xt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(nn.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Xt.IO_ERROR,(ge,ye)=>{this._emitter.emit(nn.ERROR,qo.NETWORK_ERROR,ge,ye)}),this._transmuxer.on(Xt.DEMUX_ERROR,(ge,ye)=>{this._emitter.emit(nn.ERROR,qo.MEDIA_ERROR,ge,{code:-1,msg:ye})}),this._transmuxer.on(Xt.MEDIA_INFO,ge=>{this._mediaInfo=ge,this._emitter.emit(nn.MEDIA_INFO,Object.assign({},ge))}),this._transmuxer.on(Xt.METADATA_ARRIVED,ge=>{this._emitter.emit(nn.METADATA_ARRIVED,ge)}),this._transmuxer.on(Xt.SCRIPTDATA_ARRIVED,ge=>{this._emitter.emit(nn.SCRIPTDATA_ARRIVED,ge)}),this._transmuxer.on(Xt.STATISTICS_INFO,ge=>{this._statisticsInfo=this._fillStatisticsInfo(ge),this._emitter.emit(nn.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Xt.RECOMMEND_SEEKPOINT,ge=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._internalSeek(ge):this._pendingSeekTime=ge}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(ge){if(ge.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ge;let ye=!0,be=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();be=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(be=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):ye=!1;return ye&&(ge.decodedFrames=be,ge.droppedFrames=Le),ge}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ge=this._mediaElement.buffered,ye=this._mediaElement.currentTime,be=0,Le=0;for(let Ne=0;Ne=ye+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){pe.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let ge=this._mediaElement.currentTime,ye=this._mediaElement.buffered,be=!1;for(let Le=0;Le=Ne&&ge=et-this._config.lazyLoadRecoverDuration&&(be=!0);break}}be&&(window.clearInterval(this._progressChecker),this._progressChecker=null,be&&(pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ge){let ye=this._mediaElement.buffered;for(let be=0;be=Le&&ge0){let Ne=this._mediaElement.buffered.start(0);(Ne<1&&ge0&&ye.currentTime0){let Le=be.start(0);if(Le<1&&ye{this._emitter.emit(nn.MEDIA_INFO,this.mediaInfo)}):ge===nn.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(nn.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ge.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ye){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new ue("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._mediaElement.currentTime=ge:this._pendingSeekTime=ge}get mediaInfo(){let ye={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ye.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ye.width=this._mediaElement.videoWidth,ye.height=this._mediaElement.videoHeight)),ye}get statisticsInfo(){let ge={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ge;let ye=!0,be=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();be=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(be=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):ye=!1;return ye&&(ge.decodedFrames=be,ge.droppedFrames=Le),ge}_onvLoadedMetadata(ge){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(nn.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(nn.STATISTICS_INFO,this.statisticsInfo)}}var $i=Wi;fe.install();function Ci(yn,ge){let ye=yn;if(ye==null||typeof ye!="object")throw new se("MediaDataSource must be an javascript object!");if(!ye.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(ye.type){case"flv":return new Wo(ye,ge);default:return new $i(ye,ge)}}function ei(){return Et.supportMSEH264Playback()}function po(){return Et.getFeatureList()}let co={};co.createPlayer=Ci,co.isSupported=ei,co.getFeatureList=po,co.BaseLoader=a,co.LoaderStatus=re,co.LoaderErrors=ne,co.Events=nn,co.ErrorTypes=qo,co.ErrorDetails=yr,co.FlvPlayer=Wo,co.NativePlayer=$i,co.LoggingControl=it,Object.defineProperty(co,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ta=co},38780:function(at,We){"use strict";function te(){const z=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let fe=1;fe{const he=Pe[ve];he!==void 0&&(z[ve]=he)})}return z}We.Z=te},66367:function(at,We,te){"use strict";te.d(We,{F:function(){return z},Z:function(){return fe}});function z(Pe){return Pe!=null&&Pe===Pe.window}function fe(Pe,ve){var he,pe;if(typeof window=="undefined")return 0;const ie=ve?"scrollTop":"scrollLeft";let de=0;return z(Pe)?de=Pe[ve?"pageYOffset":"pageXOffset"]:Pe instanceof Document?de=Pe.documentElement[ie]:(Pe instanceof HTMLElement||Pe)&&(de=Pe[ie]),Pe&&!z(Pe)&&typeof de!="number"&&(de=(pe=((he=Pe.ownerDocument)!==null&&he!==void 0?he:Pe).documentElement)===null||pe===void 0?void 0:pe[ie]),de}},57838:function(at,We,te){"use strict";te.d(We,{Z:function(){return fe}});var z=te(67294);function fe(){const[,Pe]=z.useReducer(ve=>ve+1,0);return Pe}},58375:function(at,We,te){"use strict";te.d(We,{Z:function(){return ve}});var z=te(96523);function fe(he,pe,ie,de){const le=ie-pe;return he/=de/2,he<1?le/2*he*he*he+pe:le/2*((he-=2)*he*he+2)+pe}var Pe=te(66367);function ve(he){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:de,duration:le=450}=pe,ue=ie(),se=(0,Pe.Z)(ue,!0),me=Date.now(),re=()=>{const a=Date.now()-me,y=fe(a>le?le:a,se,he,le);(0,Pe.F)(ue)?ue.scrollTo(window.pageXOffset,y):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=y:ue.scrollTop=y,a{var we;const{prefixCls:Fe,className:Me,rootClassName:ut,children:Xe,indeterminate:mt=!1,style:Ae,onMouseEnter:De,onMouseLeave:Be,skipGroup:nt=!1,disabled:Ke}=_e,Et=re(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ct,direction:nn,checkbox:on}=ve.useContext(he.E_),it=ve.useContext(le),{isFormItemInput:lt}=ve.useContext(ie.aM),xt=ve.useContext(pe.Z),Jt=(we=(it==null?void 0:it.disabled)||Ke)!==null&&we!==void 0?we:xt,Vt=ve.useRef(Et.value);ve.useEffect(()=>{it==null||it.registerValue(Et.value)},[]),ve.useEffect(()=>{if(!nt)return Et.value!==Vt.current&&(it==null||it.cancelValue(Vt.current),it==null||it.registerValue(Et.value),Vt.current=Et.value),()=>it==null?void 0:it.cancelValue(Et.value)},[Et.value]);const xn=Ct("checkbox",Fe),[He,un]=(0,ue.ZP)(xn),kn=Object.assign({},Et);it&&!nt&&(kn.onChange=function(){Et.onChange&&Et.onChange.apply(Et,arguments),it.toggleOption&&it.toggleOption({label:Xe,value:Et.value})},kn.name=it.name,kn.checked=it.value.includes(Et.value));const nr=fe()(`${xn}-wrapper`,{[`${xn}-rtl`]:nn==="rtl",[`${xn}-wrapper-checked`]:kn.checked,[`${xn}-wrapper-disabled`]:Jt,[`${xn}-wrapper-in-form-item`]:lt},on==null?void 0:on.className,Me,ut,un),Ln=fe()({[`${xn}-indeterminate`]:mt},me.A,un),Gt=mt?"mixed":void 0;return He(ve.createElement(se.Z,{component:"Checkbox",disabled:Jt},ve.createElement("label",{className:nr,style:Object.assign(Object.assign({},on==null?void 0:on.style),Ae),onMouseEnter:De,onMouseLeave:Be},ve.createElement(Pe.Z,Object.assign({"aria-checked":Gt},kn,{prefixCls:xn,className:Ln,disabled:Jt,ref:xe})),Xe!==void 0&&ve.createElement("span",null,Xe))))};var y=ve.forwardRef(ne),E=te(74902),b=te(10366),x=function(_e,xe){var we={};for(var Fe in _e)Object.prototype.hasOwnProperty.call(_e,Fe)&&xe.indexOf(Fe)<0&&(we[Fe]=_e[Fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Fe=Object.getOwnPropertySymbols(_e);Me{const{defaultValue:we,children:Fe,options:Me=[],prefixCls:ut,className:Xe,rootClassName:mt,style:Ae,onChange:De}=_e,Be=x(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:nt,direction:Ke}=ve.useContext(he.E_),[Et,Ct]=ve.useState(Be.value||we||[]),[nn,on]=ve.useState([]);ve.useEffect(()=>{"value"in Be&&Ct(Be.value||[])},[Be.value]);const it=ve.useMemo(()=>Me.map(Je=>typeof Je=="string"||typeof Je=="number"?{label:Je,value:Je}:Je),[Me]),lt=Je=>{on(Qe=>Qe.filter(_t=>_t!==Je))},xt=Je=>{on(Qe=>[].concat((0,E.Z)(Qe),[Je]))},Jt=Je=>{const Qe=Et.indexOf(Je.value),_t=(0,E.Z)(Et);Qe===-1?_t.push(Je.value):_t.splice(Qe,1),"value"in Be||Ct(_t),De==null||De(_t.filter(Rt=>nn.includes(Rt)).sort((Rt,Yt)=>{const gt=it.findIndex(Dt=>Dt.value===Rt),wt=it.findIndex(Dt=>Dt.value===Yt);return gt-wt}))},Vt=nt("checkbox",ut),xn=`${Vt}-group`,[He,un]=(0,ue.ZP)(Vt),kn=(0,b.Z)(Be,["value","disabled"]),nr=Me.length?it.map(Je=>ve.createElement(y,{prefixCls:Vt,key:Je.value.toString(),disabled:"disabled"in Je?Je.disabled:Be.disabled,value:Je.value,checked:Et.includes(Je.value),onChange:Je.onChange,className:`${xn}-item`,style:Je.style,title:Je.title},Je.label)):Fe,Ln={toggleOption:Jt,value:Et,disabled:Be.disabled,name:Be.name,registerValue:xt,cancelValue:lt},Gt=fe()(xn,{[`${xn}-rtl`]:Ke==="rtl"},Xe,mt,un);return He(ve.createElement("div",Object.assign({className:Gt,style:Ae},kn,{ref:xe}),ve.createElement(le.Provider,{value:Ln},nr)))},oe=ve.forwardRef(ee);var ae=ve.memo(oe);const ce=y;ce.Group=ae,ce.__ANT_CHECKBOX=!0;var Se=ce},63185:function(at,We,te){"use strict";te.d(We,{C2:function(){return he}});var z=te(14747),fe=te(45503),Pe=te(67968);const ve=pe=>{const{checkboxCls:ie}=pe,de=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,z.oN)(pe))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:pe.checkboxSize,height:pe.checkboxSize,direction:"ltr",backgroundColor:pe.colorBgContainer,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:pe.checkboxSize/14*5,height:pe.checkboxSize/14*8,border:`${pe.lineWidthBold}px solid ${pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pe.motionDurationFast} ${pe.motionEaseInBack}, opacity ${pe.motionDurationFast}`}},"& + span":{paddingInlineStart:pe.paddingXS,paddingInlineEnd:pe.paddingXS}})},{[` ${de}:not(${de}-disabled), ${ie}:not(${ie}-disabled) `]:{[`&:hover ${ie}-inner`]:{borderColor:pe.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:pe.colorPrimary,borderColor:pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pe.motionDurationMid} ${pe.motionEaseOutBack} ${pe.motionDurationFast}`}}},[` ${de}-checked:not(${de}-disabled), ${ie}-checked:not(${ie}-disabled) `]:{[`&:hover ${ie}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:pe.fontSizeLG/2,height:pe.fontSizeLG/2,backgroundColor:pe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:pe.colorTextDisabled}}}]};function he(pe,ie){const de=(0,fe.TS)(ie,{checkboxCls:`.${pe}`,checkboxSize:ie.controlInteractiveSize});return[ve(de)]}We.ZP=(0,Pe.Z)("Checkbox",(pe,ie)=>{let{prefixCls:de}=ie;return[he(de,pe)]})},72565:function(at,We,te){"use strict";te.d(We,{Z:function(){return $a}});var z=te(94184),fe=te.n(z),Pe=te(1413),ve=te(97685),he=te(67294),pe=te(73935);function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var de={};function le(ft,dt){}function ue(ft,dt){}function se(){de={}}function me(ft,dt,zt){!dt&&!de[zt]&&(ft(!1,zt),de[zt]=!0)}function re(ft,dt){me(le,ft,dt)}function ne(ft,dt){me(ue,ft,dt)}var a=null,y=te(71002),E=te(18459);function b(ft,dt,zt){var qt=he.useRef({});return(!("value"in qt.current)||zt(qt.current.condition,dt))&&(qt.current.value=ft(),qt.current.condition=dt),qt.current.value}function x(ft,dt){typeof ft=="function"?ft(dt):(0,y.Z)(ft)==="object"&&ft&&"current"in ft&&(ft.current=dt)}function ee(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt0&&arguments[0]!==void 0?arguments[0]:{},dt=ft.mark;return dt?dt.startsWith("data-")?dt:"data-".concat(dt):Ae}function nt(ft){if(ft.attachTo)return ft.attachTo;var dt=document.querySelector("head");return dt||document.body}function Ke(ft){return ft==="queue"?"prependQueue":ft?"prepend":"append"}function Et(ft){return Array.from((De.get(ft)||ft).children).filter(function(dt){return dt.tagName==="STYLE"})}function Ct(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ie())return null;var zt=dt.csp,qt=dt.prepend,Mn=document.createElement("style");Mn.setAttribute(mt,Ke(qt)),zt!=null&&zt.nonce&&(Mn.nonce=zt==null?void 0:zt.nonce),Mn.innerHTML=ft;var Nr=nt(dt),Tr=Nr.firstChild;if(qt){if(qt==="queue"){var Wr=Et(Nr).filter(function(uo){return["prepend","prependQueue"].includes(uo.getAttribute(mt))});if(Wr.length)return Nr.insertBefore(Mn,Wr[Wr.length-1].nextSibling),Mn}Nr.insertBefore(Mn,Tr)}else Nr.appendChild(Mn);return Mn}function nn(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=nt(dt);return Et(zt).find(function(qt){return qt.getAttribute(Be(dt))===ft})}function on(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=nn(ft,dt);if(zt){var qt=nt(dt);qt.removeChild(zt)}}function it(ft,dt){var zt=De.get(ft);if(!zt||!Xe(document,zt)){var qt=Ct("",dt),Mn=qt.parentNode;De.set(ft,Mn),ft.removeChild(qt)}}function lt(){De.clear()}function xt(ft,dt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qt=nt(zt);it(qt,zt);var Mn=nn(dt,zt);if(Mn){var Nr,Tr;if((Nr=zt.csp)!==null&&Nr!==void 0&&Nr.nonce&&Mn.nonce!==((Tr=zt.csp)===null||Tr===void 0?void 0:Tr.nonce)){var Wr;Mn.nonce=(Wr=zt.csp)===null||Wr===void 0?void 0:Wr.nonce}return Mn.innerHTML!==ft&&(Mn.innerHTML=ft),Mn}var uo=Ct(ft,zt);return uo.setAttribute(Be(zt),dt),uo}var Jt;function Vt(ft){if(typeof document=="undefined")return 0;if(ft||Jt===void 0){var dt=document.createElement("div");dt.style.width="100%",dt.style.height="200px";var zt=document.createElement("div"),qt=zt.style;qt.position="absolute",qt.top="0",qt.left="0",qt.pointerEvents="none",qt.visibility="hidden",qt.width="200px",qt.height="150px",qt.overflow="hidden",zt.appendChild(dt),document.body.appendChild(zt);var Mn=dt.offsetWidth;zt.style.overflow="scroll";var Nr=dt.offsetWidth;Mn===Nr&&(Nr=zt.clientWidth),document.body.removeChild(zt),Jt=Mn-Nr}return Jt}function xn(ft){var dt=ft.match(/^(.*)px$/),zt=Number(dt==null?void 0:dt[1]);return Number.isNaN(zt)?Vt():zt}function He(ft){if(typeof document=="undefined"||!ft||!(ft instanceof Element))return{width:0,height:0};var dt=getComputedStyle(ft,"::-webkit-scrollbar"),zt=dt.width,qt=dt.height;return{width:xn(zt),height:xn(qt)}}function un(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var kn="rc-util-locker-".concat(Date.now()),nr=0;function Ln(ft){var dt=!!ft,zt=he.useState(function(){return nr+=1,"".concat(kn,"_").concat(nr)}),qt=(0,ve.Z)(zt,1),Mn=qt[0];we(function(){if(dt){var Nr=He(document.body).width,Tr=un();xt(` html body { overflow-y: hidden; `.concat(Tr?"width: calc(100% - ".concat(Nr,"px);"):"",` }`),Mn)}else on(Mn);return function(){on(Mn)}},[dt,Mn])}var Gt=!1;function Je(ft){return typeof ft=="boolean"&&(Gt=ft),Gt}var Qe=function(dt){return dt===!1?!1:!ie()||!dt?null:typeof dt=="string"?document.querySelector(dt):typeof dt=="function"?dt():dt},_t=he.forwardRef(function(ft,dt){var zt=ft.open,qt=ft.autoLock,Mn=ft.getContainer,Nr=ft.debug,Tr=ft.autoDestroy,Wr=Tr===void 0?!0:Tr,uo=ft.children,Mo=he.useState(zt),Qo=(0,ve.Z)(Mo,2),mi=Qo[0],Fi=Qo[1],oa=mi||zt;he.useEffect(function(){(Wr||zt)&&Fi(zt)},[zt,Wr]);var vo=he.useState(function(){return Qe(Mn)}),yi=(0,ve.Z)(vo,2),Mi=yi[0],pi=yi[1];he.useEffect(function(){var It=Qe(Mn);pi(It!=null?It:null)});var Pa=ut(oa&&!Mi,Nr),St=(0,ve.Z)(Pa,2),Lt=St[0],jt=St[1],$e=Mi!=null?Mi:Lt;Ln(qt&&zt&&ie()&&($e===Lt||$e===document.body));var Wt=null;if(uo&&ae(uo)&&dt){var bn=uo;Wt=bn.ref}var Rn=oe(Wt,dt);if(!oa||!ie()||Mi===void 0)return null;var Nt=$e===!1||Je(),$t=uo;return dt&&($t=he.cloneElement(uo,{ref:Rn})),he.createElement(Se.Provider,{value:jt},Nt?$t:(0,pe.createPortal)($t,$e))}),Rt=_t,Yt=Rt;function gt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wt=gt()?he.useLayoutEffect:he.useEffect,Dt=function(dt,zt){var qt=he.useRef(!0);wt(function(){return dt(qt.current)},zt),wt(function(){return qt.current=!1,function(){qt.current=!0}},[])},tt=function(dt,zt){Dt(function(qt){if(!qt)return dt()},zt)},fn=Dt,hn=he.createContext(null),$n=he.createContext({}),no=hn,rt=te(4942),vt=te(87462),An=te(62874),Zt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(dt){var zt=dt.keyCode;if(dt.altKey&&!dt.ctrlKey||dt.metaKey||zt>=Zt.F1&&zt<=Zt.F12)return!1;switch(zt){case Zt.ALT:case Zt.CAPS_LOCK:case Zt.CONTEXT_MENU:case Zt.CTRL:case Zt.DOWN:case Zt.END:case Zt.ESC:case Zt.HOME:case Zt.INSERT:case Zt.LEFT:case Zt.MAC_FF_META:case Zt.META:case Zt.NUMLOCK:case Zt.NUM_CENTER:case Zt.PAGE_DOWN:case Zt.PAGE_UP:case Zt.PAUSE:case Zt.PRINT_SCREEN:case Zt.RIGHT:case Zt.SHIFT:case Zt.UP:case Zt.WIN_KEY:case Zt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(dt){if(dt>=Zt.ZERO&&dt<=Zt.NINE||dt>=Zt.NUM_ZERO&&dt<=Zt.NUM_MULTIPLY||dt>=Zt.A&&dt<=Zt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&dt===0)return!0;switch(dt){case Zt.SPACE:case Zt.QUESTION_MARK:case Zt.NUM_PLUS:case Zt.NUM_MINUS:case Zt.NUM_PERIOD:case Zt.NUM_DIVISION:case Zt.SEMICOLON:case Zt.DASH:case Zt.EQUALS:case Zt.COMMA:case Zt.PERIOD:case Zt.SLASH:case Zt.APOSTROPHE:case Zt.SINGLE_QUOTE:case Zt.OPEN_SQUARE_BRACKET:case Zt.BACKSLASH:case Zt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},yt=Zt,Nn=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Xt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qn="".concat(Nn," ").concat(Xt).split(/[\s\n]+/),Br="aria-",or="data-";function Gn(ft,dt){return ft.indexOf(dt)===0}function ir(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt;dt===!1?zt={aria:!0,data:!0,attr:!0}:dt===!0?zt={aria:!0}:zt=(0,Pe.Z)({},dt);var qt={};return Object.keys(ft).forEach(function(Mn){(zt.aria&&(Mn==="role"||Gn(Mn,Br))||zt.data&&Gn(Mn,or)||zt.attr&&qn.includes(Mn))&&(qt[Mn]=ft[Mn])}),qt}function So(ft){var dt=React.useRef();dt.current=ft;var zt=React.useCallback(function(){for(var qt,Mn=arguments.length,Nr=new Array(Mn),Tr=0;Tr3&&arguments[3]!==void 0?arguments[3]:!1;return dt.length&&qt&&zt===void 0&&!get(ft,dt.slice(0,-1))?ft:Ci(ft,dt,zt,qt)}function po(ft){return _typeof(ft)==="object"&&ft!==null&&Object.getPrototypeOf(ft)===Object.prototype}function co(ft){return Array.isArray(ft)?[]:{}}var Ta=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function yn(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt{const{prefixCls:dt,title:zt,footer:qt,extra:Mn,closeIcon:Nr,closable:Tr,onClose:Wr,headerStyle:uo,drawerStyle:Mo,bodyStyle:Qo,footerStyle:mi,children:Fi}=ft,oa=he.useCallback(Pa=>he.createElement("button",{type:"button",onClick:Wr,"aria-label":"Close",className:`${dt}-close`},Pa),[Wr]),[vo,yi]=(0,wi.Z)(Tr,Nr,oa,void 0,!0),Mi=he.useMemo(()=>!zt&&!vo?null:he.createElement("div",{style:uo,className:fe()(`${dt}-header`,{[`${dt}-header-close-only`]:vo&&!zt&&!Mn})},he.createElement("div",{className:`${dt}-header-title`},yi,zt&&he.createElement("div",{className:`${dt}-title`},zt)),Mn&&he.createElement("div",{className:`${dt}-extra`},Mn)),[vo,yi,Mn,uo,dt,zt]),pi=he.useMemo(()=>{if(!qt)return null;const Pa=`${dt}-footer`;return he.createElement("div",{className:Pa,style:mi},qt)},[qt,mi,dt]);return he.createElement("div",{className:`${dt}-wrapper-body`,style:Mo},Mi,he.createElement("div",{className:`${dt}-body`,style:Qo},Fi),pi)},pn=te(4173),Ya=te(67968),Ti=te(45503),Aa=ft=>{const{componentCls:dt,motionDurationSlow:zt}=ft,qt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${zt}`}}};return{[dt]:{[`${dt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${zt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${dt}-panel-motion`]:{"&-left":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Bn=ft=>{const{componentCls:dt,zIndexPopup:zt,colorBgMask:qt,colorBgElevated:Mn,motionDurationSlow:Nr,motionDurationMid:Tr,padding:Wr,paddingLG:uo,fontSizeLG:Mo,lineHeightLG:Qo,lineWidth:mi,lineType:Fi,colorSplit:oa,marginSM:vo,colorIcon:yi,colorIconHover:Mi,colorText:pi,fontWeightStrong:Pa,footerPaddingBlock:St,footerPaddingInline:Lt}=ft,jt=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:zt,pointerEvents:"none","&-pure":{position:"relative",background:Mn,[`&${dt}-left`]:{boxShadow:ft.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:ft.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:ft.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:ft.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:zt,background:qt,pointerEvents:"auto"},[jt]:{position:"absolute",zIndex:zt,maxWidth:"100vw",transition:`all ${Nr}`,"&-hidden":{display:"none"}},[`&-left > ${jt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ft.boxShadowDrawerLeft},[`&-right > ${jt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ft.boxShadowDrawerRight},[`&-top > ${jt}`]:{top:0,insetInline:0,boxShadow:ft.boxShadowDrawerUp},[`&-bottom > ${jt}`]:{bottom:0,insetInline:0,boxShadow:ft.boxShadowDrawerDown},[`${dt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Mn,pointerEvents:"auto"},[`${dt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Wr}px ${uo}px`,fontSize:Mo,lineHeight:Qo,borderBottom:`${mi}px ${Fi} ${oa}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:{display:"inline-block",marginInlineEnd:vo,color:yi,fontWeight:Pa,fontSize:Mo,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Tr}`,textRendering:"auto","&:focus, &:hover":{color:Mi,textDecoration:"none"}},[`${dt}-title`]:{flex:1,margin:0,color:pi,fontWeight:ft.fontWeightStrong,fontSize:Mo,lineHeight:Qo},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:uo,overflow:"auto"},[`${dt}-footer`]:{flexShrink:0,padding:`${St}px ${Lt}px`,borderTop:`${mi}px ${Fi} ${oa}`},"&-rtl":{direction:"rtl"}}}};var Sr=(0,Ya.Z)("Drawer",ft=>{const dt=(0,Ti.TS)(ft,{});return[Bn(dt),Aa(dt)]},ft=>({zIndexPopup:ft.zIndexPopupBase,footerPaddingBlock:ft.paddingXS,footerPaddingInline:ft.padding})),Kr=te(16569),lr=function(ft,dt){var zt={};for(var qt in ft)Object.prototype.hasOwnProperty.call(ft,qt)&&dt.indexOf(qt)<0&&(zt[qt]=ft[qt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,qt=Object.getOwnPropertySymbols(ft);Mn{var dt;const{rootClassName:zt,width:qt,height:Mn,size:Nr="default",mask:Tr=!0,push:Wr=Li,open:uo,afterOpenChange:Mo,onClose:Qo,prefixCls:mi,getContainer:Fi,style:oa,className:vo,visible:yi,afterVisibleChange:Mi}=ft,pi=lr(ft,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Pa,getPrefixCls:St,direction:Lt,drawer:jt}=he.useContext(br.E_),$e=St("drawer",mi),[Wt,bn]=Sr($e),Rn=Fi===void 0&&Pa?()=>Pa(document.body):Fi,Nt=fe()({"no-mask":!Tr,[`${$e}-rtl`]:Lt==="rtl"},zt,bn),$t=he.useMemo(()=>qt!=null?qt:Nr==="large"?736:378,[qt,Nr]),It=he.useMemo(()=>Mn!=null?Mn:Nr==="large"?736:378,[Mn,Nr]),Ft={motionName:(0,Xo.m)($e,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Tt=Kt=>({motionName:(0,Xo.m)($e,`panel-motion-${Kt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ht=(0,Kr.H)();return Wt(he.createElement(pn.BR,null,he.createElement(_o.Ux,{status:!0,override:!0},he.createElement(Gi,Object.assign({prefixCls:$e,onClose:Qo,maskMotion:Ft,motion:Tt},pi,{open:uo!=null?uo:yi,mask:Tr,push:Wr,width:$t,height:It,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),oa),className:fe()(jt==null?void 0:jt.className,vo),rootClassName:Nt,getContainer:Rn,afterOpenChange:Mo!=null?Mo:Mi,panelRef:Ht}),he.createElement(hi,Object.assign({prefixCls:$e},pi,{onClose:Qo}))))))},Oa=ft=>{const{prefixCls:dt,style:zt,className:qt,placement:Mn="right"}=ft,Nr=lr(ft,["prefixCls","style","className","placement"]),{getPrefixCls:Tr}=he.useContext(br.E_),Wr=Tr("drawer",dt),[uo,Mo]=Sr(Wr),Qo=fe()(Wr,`${Wr}-pure`,`${Wr}-${Mn}`,Mo,qt);return uo(he.createElement("div",{className:Qo,style:zt},he.createElement(hi,Object.assign({prefixCls:Wr},Nr))))};ra._InternalPanelDoNotUseOrYouWillBeFired=Oa;var $a=ra},56153:function(at,We,te){"use strict";te.d(We,{Z:function(){return qs}});var z=te(67294),fe=te.t(z,2),Pe=te(79269),ve=te(94184),he=te.n(ve),pe=te(87462),ie=te(4942),de=te(97685),le=te(45987),ue=te(1413),se=te(73935);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re={};function ne(Ie,Ve){}function a(Ie,Ve){}function y(){re={}}function E(Ie,Ve,Ye){!Ve&&!re[Ye]&&(Ie(!1,Ye),re[Ye]=!0)}function b(Ie,Ve){E(ne,Ie,Ve)}function x(Ie,Ve){E(a,Ie,Ve)}var ee=null,oe=te(71002),ae=te(12060);function ce(Ie,Ve,Ye){var pt=z.useRef({});return(!("value"in pt.current)||Ye(pt.current.condition,Ve))&&(pt.current.value=Ie(),pt.current.condition=Ve),pt.current.value}function Se(Ie,Ve){typeof Ie=="function"?Ie(Ve):(0,oe.Z)(Ie)==="object"&&Ie&&"current"in Ie&&(Ie.current=Ve)}function _e(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye0&&arguments[0]!==void 0?arguments[0]:{},Ve=Ie.mark;return Ve?Ve.startsWith("data-")?Ve:"data-".concat(Ve):Et}function on(Ie){if(Ie.attachTo)return Ie.attachTo;var Ve=document.querySelector("head");return Ve||document.body}function it(Ie){return Ie==="queue"?"prependQueue":Ie?"prepend":"append"}function lt(Ie){return Array.from((Ct.get(Ie)||Ie).children).filter(function(Ve){return Ve.tagName==="STYLE"})}function xt(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var Ye=Ve.csp,pt=Ve.prepend,Bt=document.createElement("style");Bt.setAttribute(Ke,it(pt)),Ye!=null&&Ye.nonce&&(Bt.nonce=Ye==null?void 0:Ye.nonce),Bt.innerHTML=Ie;var sn=on(Ve),dn=sn.firstChild;if(pt){if(pt==="queue"){var Dn=lt(sn).filter(function(Pn){return["prepend","prependQueue"].includes(Pn.getAttribute(Ke))});if(Dn.length)return sn.insertBefore(Bt,Dn[Dn.length-1].nextSibling),Bt}sn.insertBefore(Bt,dn)}else sn.appendChild(Bt);return Bt}function Jt(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=on(Ve);return lt(Ye).find(function(pt){return pt.getAttribute(nn(Ve))===Ie})}function Vt(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=Jt(Ie,Ve);if(Ye){var pt=on(Ve);pt.removeChild(Ye)}}function xn(Ie,Ve){var Ye=Ct.get(Ie);if(!Ye||!nt(document,Ye)){var pt=xt("",Ve),Bt=pt.parentNode;Ct.set(Ie,Bt),Ie.removeChild(pt)}}function He(){Ct.clear()}function un(Ie,Ve){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pt=on(Ye);xn(pt,Ye);var Bt=Jt(Ve,Ye);if(Bt){var sn,dn;if((sn=Ye.csp)!==null&&sn!==void 0&&sn.nonce&&Bt.nonce!==((dn=Ye.csp)===null||dn===void 0?void 0:dn.nonce)){var Dn;Bt.nonce=(Dn=Ye.csp)===null||Dn===void 0?void 0:Dn.nonce}return Bt.innerHTML!==Ie&&(Bt.innerHTML=Ie),Bt}var Pn=xt(Ie,Ye);return Pn.setAttribute(nn(Ye),Ve),Pn}var kn;function nr(Ie){if(typeof document=="undefined")return 0;if(Ie||kn===void 0){var Ve=document.createElement("div");Ve.style.width="100%",Ve.style.height="200px";var Ye=document.createElement("div"),pt=Ye.style;pt.position="absolute",pt.top="0",pt.left="0",pt.pointerEvents="none",pt.visibility="hidden",pt.width="200px",pt.height="150px",pt.overflow="hidden",Ye.appendChild(Ve),document.body.appendChild(Ye);var Bt=Ve.offsetWidth;Ye.style.overflow="scroll";var sn=Ve.offsetWidth;Bt===sn&&(sn=Ye.clientWidth),document.body.removeChild(Ye),kn=Bt-sn}return kn}function Ln(Ie){var Ve=Ie.match(/^(.*)px$/),Ye=Number(Ve==null?void 0:Ve[1]);return Number.isNaN(Ye)?nr():Ye}function Gt(Ie){if(typeof document=="undefined"||!Ie||!(Ie instanceof Element))return{width:0,height:0};var Ve=getComputedStyle(Ie,"::-webkit-scrollbar"),Ye=Ve.width,pt=Ve.height;return{width:Ln(Ye),height:Ln(pt)}}function Je(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Qe="rc-util-locker-".concat(Date.now()),_t=0;function Rt(Ie){var Ve=!!Ie,Ye=z.useState(function(){return _t+=1,"".concat(Qe,"_").concat(_t)}),pt=(0,de.Z)(Ye,1),Bt=pt[0];mt(function(){if(Ve){var sn=Gt(document.body).width,dn=Je();un(` html body { overflow-y: hidden; `.concat(dn?"width: calc(100% - ".concat(sn,"px);"):"",` }`),Bt)}else Vt(Bt);return function(){Vt(Bt)}},[Ve,Bt])}var Yt=!1;function gt(Ie){return typeof Ie=="boolean"&&(Yt=Ie),Yt}var wt=function(Ve){return Ve===!1?!1:!me()||!Ve?null:typeof Ve=="string"?document.querySelector(Ve):typeof Ve=="function"?Ve():Ve},Dt=z.forwardRef(function(Ie,Ve){var Ye=Ie.open,pt=Ie.autoLock,Bt=Ie.getContainer,sn=Ie.debug,dn=Ie.autoDestroy,Dn=dn===void 0?!0:dn,Pn=Ie.children,Jn=z.useState(Ye),jr=(0,de.Z)(Jn,2),Qn=jr[0],zr=jr[1],fr=Qn||Ye;z.useEffect(function(){(Dn||Ye)&&zr(Ye)},[Ye,Dn]);var eo=z.useState(function(){return wt(Bt)}),ko=(0,de.Z)(eo,2),jo=ko[0],ri=ko[1];z.useEffect(function(){var Qi=wt(Bt);ri(Qi!=null?Qi:null)});var Eo=Be(fr&&!jo,sn),wo=(0,de.Z)(Eo,2),Yr=wo[0],ga=wo[1],Vi=jo!=null?jo:Yr;Rt(pt&&Ye&&me()&&(Vi===Yr||Vi===document.body));var fa=null;if(Pn&&we(Pn)&&Ve){var va=Pn;fa=va.ref}var Ua=xe(fa,Ve);if(!fr||!me()||jo===void 0)return null;var ui=Vi===!1||gt(),si=Pn;return Ve&&(si=z.cloneElement(Pn,{ref:Ua})),z.createElement(Me.Provider,{value:ga},ui?si:(0,se.createPortal)(si,Vi))}),tt=Dt,fn=tt,hn=te(48555);function $n(Ie){return Ie instanceof HTMLElement||Ie instanceof SVGElement}function no(Ie){return $n(Ie)?Ie:Ie instanceof React.Component?ReactDOM.findDOMNode(Ie):null}function rt(Ie){var Ve;return Ie==null||(Ve=Ie.getRootNode)===null||Ve===void 0?void 0:Ve.call(Ie)}function vt(Ie){return rt(Ie)instanceof ShadowRoot}function An(Ie){return vt(Ie)?rt(Ie):null}function Zt(Ie){var Ve=z.useRef();Ve.current=Ie;var Ye=z.useCallback(function(){for(var pt,Bt=arguments.length,sn=new Array(Bt),dn=0;dn0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=arguments.length>2?arguments[2]:void 0;return Ye?Ie[0]===Ve[0]:Ie[0]===Ve[0]&&Ie[1]===Ve[1]}function Wi(Ie,Ve,Ye,pt){for(var Bt=Ye.points,sn=Object.keys(Ie),dn=0;dn1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ie)?Ve:Ie}function co(Ie){return po(parseFloat(Ie),0)}function Ta(Ie,Ve){var Ye=(0,ue.Z)({},Ie);return(Ve||[]).forEach(function(pt){if(!(pt instanceof HTMLBodyElement||pt instanceof HTMLHtmlElement)){var Bt=Ci(pt).getComputedStyle(pt),sn=Bt.overflow,dn=Bt.overflowClipMargin,Dn=Bt.borderTopWidth,Pn=Bt.borderBottomWidth,Jn=Bt.borderLeftWidth,jr=Bt.borderRightWidth,Qn=pt.getBoundingClientRect(),zr=pt.offsetHeight,fr=pt.clientHeight,eo=pt.offsetWidth,ko=pt.clientWidth,jo=co(Dn),ri=co(Pn),Eo=co(Jn),wo=co(jr),Yr=po(Math.round(Qn.width/eo*1e3)/1e3),ga=po(Math.round(Qn.height/zr*1e3)/1e3),Vi=(eo-ko-Eo-wo)*Yr,fa=(zr-fr-jo-ri)*ga,va=jo*ga,Ua=ri*ga,ui=Eo*Yr,si=wo*Yr,Qi=0,Da=0;if(sn==="clip"){var Ji=co(dn);Qi=Ji*Yr,Da=Ji*ga}var di=Qn.x+ui-Qi,Zi=Qn.y+va-Da,Ao=di+Qn.width+2*Qi-ui-si-Vi,Ia=Zi+Qn.height+2*Da-va-Ua-fa;Ye.left=Math.max(Ye.left,di),Ye.top=Math.max(Ye.top,Zi),Ye.right=Math.min(Ye.right,Ao),Ye.bottom=Math.min(Ye.bottom,Ia)}}),Ye}function yn(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ye="".concat(Ve),pt=Ye.match(/^(.*)\%$/);return pt?Ie*(parseFloat(pt[1])/100):parseFloat(Ye)}function ge(Ie,Ve){var Ye=Ve||[],pt=(0,de.Z)(Ye,2),Bt=pt[0],sn=pt[1];return[yn(Ie.width,Bt),yn(Ie.height,sn)]}function ye(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ie[0],Ie[1]]}function be(Ie,Ve){var Ye=Ve[0],pt=Ve[1],Bt,sn;return Ye==="t"?sn=Ie.y:Ye==="b"?sn=Ie.y+Ie.height:sn=Ie.y+Ie.height/2,pt==="l"?Bt=Ie.x:pt==="r"?Bt=Ie.x+Ie.width:Bt=Ie.x+Ie.width/2,{x:Bt,y:sn}}function Le(Ie,Ve){var Ye={t:"b",b:"t",l:"r",r:"l"};return Ie.map(function(pt,Bt){return Bt===Ve?Ye[pt]||"c":pt}).join("")}function Ne(Ie,Ve,Ye,pt,Bt,sn,dn){var Dn=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Bt[pt]||{}}),Pn=(0,de.Z)(Dn,2),Jn=Pn[0],jr=Pn[1],Qn=z.useRef(0),zr=z.useMemo(function(){return Ve?ei(Ve):[]},[Ve]),fr=z.useRef({}),eo=function(){fr.current={}};Ie||eo();var ko=Zt(function(){if(Ve&&Ye&&Ie){let io=function(Dr,hr){var Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fa,Er=zi.x+Dr,oo=zi.y+hr,Uo=Er+qi,Po=oo+Sa,to=Math.max(Er,Xn.left),Go=Math.max(oo,Xn.top),Vo=Math.min(Uo,Xn.right),ar=Math.min(Po,Xn.bottom);return Math.max(0,(Vo-to)*(ar-Go))},cr=function(){$o=zi.y+wr,zs=$o+Sa,vs=zi.x+zo,Cs=vs+qi};var Eo,wo,Yr=Ve,ga=Yr.ownerDocument,Vi=Ci(Yr),fa=Vi.getComputedStyle(Yr),va=fa.width,Ua=fa.height,ui=fa.position,si=Yr.style.left,Qi=Yr.style.top,Da=Yr.style.right,Ji=Yr.style.bottom,di=(0,ue.Z)((0,ue.Z)({},Bt[pt]),sn),Zi=ga.createElement("div");(Eo=Yr.parentElement)===null||Eo===void 0||Eo.appendChild(Zi),Zi.style.left="".concat(Yr.offsetLeft,"px"),Zi.style.top="".concat(Yr.offsetTop,"px"),Zi.style.position=ui,Zi.style.height="".concat(Yr.offsetHeight,"px"),Zi.style.width="".concat(Yr.offsetWidth,"px"),Yr.style.left="0",Yr.style.top="0",Yr.style.right="auto",Yr.style.bottom="auto";var Ao;if(Array.isArray(Ye))Ao={x:Ye[0],y:Ye[1],width:0,height:0};else{var Ia=Ye.getBoundingClientRect();Ao={x:Ia.x,y:Ia.y,width:Ia.width,height:Ia.height}}var zi=Yr.getBoundingClientRect(),Ha=ga.documentElement,ss=Ha.clientWidth,Ka=Ha.clientHeight,Vr=Ha.scrollWidth,ms=Ha.scrollHeight,Ui=Ha.scrollTop,gs=Ha.scrollLeft,Sa=zi.height,qi=zi.width,Ba=Ao.height,ps=Ao.width,xi={left:0,top:0,right:ss,bottom:Ka},ya={left:-gs,top:-Ui,right:Vr-gs,bottom:ms-Ui},is=di.htmlRegion,sa="visible",As="visibleFirst";is!=="scroll"&&is!==As&&(is=sa);var es=is===As,la=Ta(ya,zr),yo=Ta(xi,zr),Fa=is===sa?yo:la,ls=es?yo:Fa;Yr.style.left="auto",Yr.style.top="auto",Yr.style.right="0",Yr.style.bottom="0";var Ds=Yr.getBoundingClientRect();Yr.style.left=si,Yr.style.top=Qi,Yr.style.right=Da,Yr.style.bottom=Ji,(wo=Yr.parentElement)===null||wo===void 0||wo.removeChild(Zi);var Ys=po(Math.round(qi/parseFloat(va)*1e3)/1e3),Zs=po(Math.round(Sa/parseFloat(Ua)*1e3)/1e3);if(Ys===0||Zs===0||$n(Ye)&&!xo(Ye))return;var Oe=di.offset,je=di.targetOffset,Ge=ge(zi,Oe),vr=(0,de.Z)(Ge,2),wn=vr[0],en=vr[1],En=ge(Ao,je),Qt=(0,de.Z)(En,2),Sn=Qt[0],Kn=Qt[1];Ao.x-=Sn,Ao.y-=Kn;var Do=di.points||[],Mr=(0,de.Z)(Do,2),Io=Mr[0],Hr=Mr[1],bo=ye(Hr),Ir=ye(Io),ea=be(Ao,bo),Lo=be(zi,Ir),Ho=(0,ue.Z)({},di),zo=ea.x-Lo.x+wn,wr=ea.y-Lo.y+en,li=io(zo,wr),Vn=io(zo,wr,yo),Di=be(Ao,["t","l"]),Jo=be(zi,["t","l"]),ha=be(Ao,["b","r"]),Ma=be(zi,["b","r"]),Lr=di.overflow||{},ca=Lr.adjustX,oi=Lr.adjustY,$r=Lr.shiftX,Ro=Lr.shiftY,gi=function(hr){return typeof hr=="boolean"?hr:hr>=0},$o,zs,vs,Cs;cr();var Rs=gi(oi),ws=Ir[0]===bo[0];if(Rs&&Ir[0]==="t"&&(zs>ls.bottom||fr.current.bt)){var cs=wr;ws?cs-=Sa-Ba:cs=Di.y-Ma.y-en;var ro=io(zo,cs),Si=io(zo,cs,yo);ro>li||ro===li&&(!es||Si>=Vn)?(fr.current.bt=!0,wr=cs,en=-en,Ho.points=[Le(Ir,0),Le(bo,0)]):fr.current.bt=!1}if(Rs&&Ir[0]==="b"&&($oli||Us===li&&(!es||as>=Vn)?(fr.current.tb=!0,wr=Va,en=-en,Ho.points=[Le(Ir,0),Le(bo,0)]):fr.current.tb=!1}var el=gi(ca),Wa=Ir[1]===bo[1];if(el&&Ir[1]==="l"&&(Cs>ls.right||fr.current.rl)){var _a=zo;Wa?_a-=qi-ps:_a=Di.x-Ma.x-wn;var Hs=io(_a,wr),Ee=io(_a,wr,yo);Hs>li||Hs===li&&(!es||Ee>=Vn)?(fr.current.rl=!0,zo=_a,wn=-wn,Ho.points=[Le(Ir,1),Le(bo,1)]):fr.current.rl=!1}if(el&&Ir[1]==="r"&&(vsli||Re===li&&(!es||Te>=Vn)?(fr.current.lr=!0,zo=Ce,wn=-wn,Ho.points=[Le(Ir,1),Le(bo,1)]):fr.current.lr=!1}cr();var Ue=$r===!0?0:$r;typeof Ue=="number"&&(vsyo.right&&(zo-=Cs-yo.right-wn,Ao.x>yo.right-Ue&&(zo+=Ao.x-yo.right+Ue)));var Ze=Ro===!0?0:Ro;typeof Ze=="number"&&($oyo.bottom&&(wr-=zs-yo.bottom-en,Ao.y>yo.bottom-Ze&&(wr+=Ao.y-yo.bottom+Ze)));var ot=zi.x+zo,st=ot+qi,ht=zi.y+wr,Pt=ht+Sa,Ot=Ao.x,At=Ot+ps,tn=Ao.y,gn=tn+Ba,ln=Math.max(ot,Ot),Wn=Math.min(st,At),Fn=(ln+Wn)/2,Yn=Fn-ot,zn=Math.max(ht,tn),rr=Math.min(Pt,gn),Ur=(zn+rr)/2,Xr=Ur-ht;dn==null||dn(Ve,Ho);var Ar=Ds.right-zi.x-(zo+zi.width),fo=Ds.bottom-zi.y-(wr+zi.height);jr({ready:!0,offsetX:zo/Ys,offsetY:wr/Zs,offsetR:Ar/Ys,offsetB:fo/Zs,arrowX:Yn/Ys,arrowY:Xr/Zs,scaleX:Ys,scaleY:Zs,align:Ho})}}),jo=function(){Qn.current+=1;var wo=Qn.current;Promise.resolve().then(function(){Qn.current===wo&&ko()})},ri=function(){jr(function(wo){return(0,ue.Z)((0,ue.Z)({},wo),{},{ready:!1})})};return On(ri,[pt]),On(function(){Ie||ri()},[Ie]),[Jn.ready,Jn.offsetX,Jn.offsetY,Jn.offsetR,Jn.offsetB,Jn.arrowX,Jn.arrowY,Jn.scaleX,Jn.scaleY,Jn.align,jo]}function et(Ie,Ve,Ye,pt,Bt){On(function(){if(Ie&&Ve&&Ye){let Qn=function(){pt(),Bt()};var sn=Ve,dn=Ye,Dn=ei(sn),Pn=ei(dn),Jn=Ci(dn),jr=new Set([Jn].concat((0,ut.Z)(Dn),(0,ut.Z)(Pn)));return jr.forEach(function(zr){zr.addEventListener("scroll",Qn,{passive:!0})}),Jn.addEventListener("resize",Qn,{passive:!0}),pt(),function(){jr.forEach(function(zr){zr.removeEventListener("scroll",Qn),Jn.removeEventListener("resize",Qn)})}}},[Ie,Ve,Ye])}function ct(Ie){var Ve=React.useRef(!1),Ye=React.useState(Ie),pt=_slicedToArray(Ye,2),Bt=pt[0],sn=pt[1];React.useEffect(function(){return Ve.current=!1,function(){Ve.current=!0}},[]);function dn(Dn,Pn){Pn&&Ve.current||sn(Dn)}return[Bt,dn]}function _n(Ie){return Ie!==void 0}function rn(Ie,Ve){var Ye=Ve||{},pt=Ye.defaultValue,Bt=Ye.value,sn=Ye.onChange,dn=Ye.postState,Dn=useState(function(){return _n(Bt)?Bt:_n(pt)?typeof pt=="function"?pt():pt:typeof Ie=="function"?Ie():Ie}),Pn=_slicedToArray(Dn,2),Jn=Pn[0],jr=Pn[1],Qn=Bt!==void 0?Bt:Jn,zr=dn?dn(Qn):Qn,fr=useEvent(sn),eo=useState([Qn]),ko=_slicedToArray(eo,2),jo=ko[0],ri=ko[1];useLayoutUpdateEffect(function(){var wo=jo[0];Jn!==wo&&fr(Jn,wo)},[jo]),useLayoutUpdateEffect(function(){_n(Bt)||jr(Bt)},[Bt]);var Eo=useEvent(function(wo,Yr){jr(wo,Yr),ri([Qn],Yr)});return[zr,Eo]}var In=te(95845);function pr(Ie,Ve,Ye){var pt=z.useRef({});return(!("value"in pt.current)||Ye(pt.current.condition,Ve))&&(pt.current.value=Ie(),pt.current.condition=Ve),pt.current.value}function _r(Ie,Ve){typeof Ie=="function"?Ie(Ve):(0,oe.Z)(Ie)==="object"&&Ie&&"current"in Ie&&(Ie.current=Ve)}function Mt(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye3&&arguments[3]!==void 0?arguments[3]:!1;return Ve.length&&pt&&Ye===void 0&&!get(Ie,Ve.slice(0,-1))?Ie:Un(Ie,Ve,Ye,pt)}function Zr(Ie){return _typeof(Ie)==="object"&&Ie!==null&&Object.getPrototypeOf(Ie)===Object.prototype}function xr(Ie){return Array.isArray(Ie)?[]:{}}var Gi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Xo(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye1&&arguments[1]!==void 0?arguments[1]:1;Kr+=1;var pt=Kr;function Bt(sn){if(sn===0)ci(pt),Ve();else{var dn=Bn(function(){Bt(sn-1)});lr.set(pt,dn)}}return Bt(Ye),pt};Li.cancel=function(Ie){var Ve=lr.get(Ie);return ci(Ve),Sr(Ve)};var ra=Li;function Oa(Ie,Ve,Ye,pt,Bt,sn,dn,Dn){var Pn=z.useRef(Ie),Jn=z.useRef(!1);Pn.current!==Ie&&(Jn.current=!0,Pn.current=Ie),z.useEffect(function(){var jr=ra(function(){Jn.current=!1});return function(){ra.cancel(jr)}},[Ie]),z.useEffect(function(){if(Ve&&pt&&(!Bt||sn)){var jr=function(){var ui=!1,si=function(Ji){var di=Ji.target;ui=dn(di)},Qi=function(Ji){var di=Ji.target;!Jn.current&&Pn.current&&!ui&&!dn(di)&&Dn(!1)};return[si,Qi]},Qn=jr(),zr=(0,de.Z)(Qn,2),fr=zr[0],eo=zr[1],ko=jr(),jo=(0,de.Z)(ko,2),ri=jo[0],Eo=jo[1],wo=Ci(pt);wo.addEventListener("mousedown",fr,!0),wo.addEventListener("click",eo,!0),wo.addEventListener("contextmenu",eo,!0);var Yr=An(Ye);if(Yr&&(Yr.addEventListener("mousedown",ri,!0),Yr.addEventListener("click",Eo,!0),Yr.addEventListener("contextmenu",Eo,!0)),0)var ga,Vi,fa,va;return function(){wo.removeEventListener("mousedown",fr,!0),wo.removeEventListener("click",eo,!0),wo.removeEventListener("contextmenu",eo,!0),Yr&&(Yr.removeEventListener("mousedown",ri,!0),Yr.removeEventListener("click",Eo,!0),Yr.removeEventListener("contextmenu",Eo,!0))}}},[Ve,Ye,pt,Bt,sn])}function $a(Ie){return Ie instanceof HTMLElement||Ie instanceof SVGElement}function ft(Ie){return $a(Ie)?Ie:Ie instanceof z.Component?se.findDOMNode(Ie):null}function dt(Ie,Ve){var Ye={};return Ye[Ie.toLowerCase()]=Ve.toLowerCase(),Ye["Webkit".concat(Ie)]="webkit".concat(Ve),Ye["Moz".concat(Ie)]="moz".concat(Ve),Ye["ms".concat(Ie)]="MS".concat(Ve),Ye["O".concat(Ie)]="o".concat(Ve.toLowerCase()),Ye}function zt(Ie,Ve){var Ye={animationend:dt("Animation","AnimationEnd"),transitionend:dt("Transition","TransitionEnd")};return Ie&&("AnimationEvent"in Ve||delete Ye.animationend.animation,"TransitionEvent"in Ve||delete Ye.transitionend.transition),Ye}var qt=zt(me(),typeof window!="undefined"?window:{}),Mn={};if(me()){var Nr=document.createElement("div");Mn=Nr.style}var Tr={};function Wr(Ie){if(Tr[Ie])return Tr[Ie];var Ve=qt[Ie];if(Ve)for(var Ye=Object.keys(Ve),pt=Ye.length,Bt=0;Bt1&&arguments[1]!==void 0?arguments[1]:1;Nt+=1;var pt=Nt;function Bt(sn){if(sn===0)It(pt),Ve();else{var dn=bn(function(){Bt(sn-1)});$t.set(pt,dn)}}return Bt(Ye),pt};Ft.cancel=function(Ie){var Ve=$t.get(Ie);return It(Ve),Rn(Ve)};var Tt=Ft,Ht=function(){var Ie=z.useRef(null);function Ve(){Tt.cancel(Ie.current)}function Ye(pt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ve();var sn=Tt(function(){Bt<=1?pt({isCanceled:function(){return sn!==Ie.current}}):Ye(pt,Bt-1)});Ie.current=sn}return z.useEffect(function(){return function(){Ve()}},[]),[Ye,Ve]},Kt=me()?z.useLayoutEffect:z.useEffect,jn=Kt,tr=[St,Lt,jt,$e],Pr=!1,Cn=!0;function dr(Ie){return Ie===jt||Ie===$e}var ze=function(Ie,Ve){var Ye=Wt(Pa),pt=(0,de.Z)(Ye,2),Bt=pt[0],sn=pt[1],dn=Ht(),Dn=(0,de.Z)(dn,2),Pn=Dn[0],Jn=Dn[1];function jr(){sn(St,!0)}return jn(function(){if(Bt!==Pa&&Bt!==$e){var Qn=tr.indexOf(Bt),zr=tr[Qn+1],fr=Ve(Bt);fr===Pr?sn(zr,!0):Pn(function(eo){function ko(){eo.isCanceled()||sn(zr,!0)}fr===!0?ko():Promise.resolve(fr).then(ko)})}},[Ie,Bt]),z.useEffect(function(){return function(){Jn()}},[]),[jr,Bt]},ke=function(Ie){var Ve=(0,z.useRef)(),Ye=(0,z.useRef)(Ie);Ye.current=Ie;var pt=z.useCallback(function(dn){Ye.current(dn)},[]);function Bt(dn){dn&&(dn.removeEventListener(Fi,pt),dn.removeEventListener(mi,pt))}function sn(dn){Ve.current&&Ve.current!==dn&&Bt(Ve.current),dn&&dn!==Ve.current&&(dn.addEventListener(Fi,pt),dn.addEventListener(mi,pt),Ve.current=dn)}return z.useEffect(function(){return function(){Bt(Ve.current)}},[]),[sn,Bt]};function qe(Ie,Ve,Ye,pt){var Bt=pt.motionEnter,sn=Bt===void 0?!0:Bt,dn=pt.motionAppear,Dn=dn===void 0?!0:dn,Pn=pt.motionLeave,Jn=Pn===void 0?!0:Pn,jr=pt.motionDeadline,Qn=pt.motionLeaveImmediately,zr=pt.onAppearPrepare,fr=pt.onEnterPrepare,eo=pt.onLeavePrepare,ko=pt.onAppearStart,jo=pt.onEnterStart,ri=pt.onLeaveStart,Eo=pt.onAppearActive,wo=pt.onEnterActive,Yr=pt.onLeaveActive,ga=pt.onAppearEnd,Vi=pt.onEnterEnd,fa=pt.onLeaveEnd,va=pt.onVisibleChanged,Ua=Wt(),ui=(0,de.Z)(Ua,2),si=ui[0],Qi=ui[1],Da=Wt(vo),Ji=(0,de.Z)(Da,2),di=Ji[0],Zi=Ji[1],Ao=Wt(null),Ia=(0,de.Z)(Ao,2),zi=Ia[0],Ha=Ia[1],ss=(0,z.useRef)(!1),Ka=(0,z.useRef)(null);function Vr(){return Ye()}var ms=(0,z.useRef)(!1);function Ui(la){var yo=Vr();if(!(la&&!la.deadline&&la.target!==yo)){var Fa=ms.current,ls;di===yi&&Fa?ls=ga==null?void 0:ga(yo,la):di===Mi&&Fa?ls=Vi==null?void 0:Vi(yo,la):di===pi&&Fa&&(ls=fa==null?void 0:fa(yo,la)),di!==vo&&Fa&&ls!==!1&&(Zi(vo,!0),Ha(null,!0))}}var gs=ke(Ui),Sa=(0,de.Z)(gs,1),qi=Sa[0],Ba=z.useMemo(function(){var la,yo,Fa;switch(di){case yi:return la={},(0,ie.Z)(la,St,zr),(0,ie.Z)(la,Lt,ko),(0,ie.Z)(la,jt,Eo),la;case Mi:return yo={},(0,ie.Z)(yo,St,fr),(0,ie.Z)(yo,Lt,jo),(0,ie.Z)(yo,jt,wo),yo;case pi:return Fa={},(0,ie.Z)(Fa,St,eo),(0,ie.Z)(Fa,Lt,ri),(0,ie.Z)(Fa,jt,Yr),Fa;default:return{}}},[di]),ps=ze(di,function(la){if(la===St){var yo=Ba[St];return yo?yo(Vr()):Pr}if(is in Ba){var Fa;Ha(((Fa=Ba[is])===null||Fa===void 0?void 0:Fa.call(Ba,Vr(),null))||null)}return is===jt&&(qi(Vr()),jr>0&&(clearTimeout(Ka.current),Ka.current=setTimeout(function(){Ui({deadline:!0})},jr))),Cn}),xi=(0,de.Z)(ps,2),ya=xi[0],is=xi[1],sa=dr(is);ms.current=sa,jn(function(){Qi(Ve);var la=ss.current;if(ss.current=!0,!!Ie){var yo;!la&&Ve&&Dn&&(yo=yi),la&&Ve&&sn&&(yo=Mi),(la&&!Ve&&Jn||!la&&Qn&&!Ve&&Jn)&&(yo=pi),yo&&(Zi(yo),ya())}},[Ve]),(0,z.useEffect)(function(){(di===yi&&!Dn||di===Mi&&!sn||di===pi&&!Jn)&&Zi(vo)},[Dn,sn,Jn]),(0,z.useEffect)(function(){return function(){ss.current=!1,clearTimeout(Ka.current)}},[]);var As=z.useRef(!1);(0,z.useEffect)(function(){si&&(As.current=!0),si!==void 0&&di===vo&&((As.current||si)&&(va==null||va(si)),As.current=!0)},[si,di]);var es=zi;return Ba[St]&&is===Lt&&(es=(0,ue.Z)({transition:"none"},es)),[di,is,es,si!=null?si:Ve]}var bt=te(15671),kt=te(43144),Ut=te(60136),cn=te(51630),an=function(Ie){(0,Ut.Z)(Ye,Ie);var Ve=(0,cn.Z)(Ye);function Ye(){return(0,bt.Z)(this,Ye),Ve.apply(this,arguments)}return(0,kt.Z)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(z.Component),mn=an;function vn(Ie){var Ve=Ie;(0,oe.Z)(Ie)==="object"&&(Ve=Ie.transitionSupport);function Ye(Bt){return!!(Bt.motionName&&Ve)}var pt=z.forwardRef(function(Bt,sn){var dn=Bt.visible,Dn=dn===void 0?!0:dn,Pn=Bt.removeOnLeave,Jn=Pn===void 0?!0:Pn,jr=Bt.forceRender,Qn=Bt.children,zr=Bt.motionName,fr=Bt.leavedClassName,eo=Bt.eventProps,ko=Ye(Bt),jo=(0,z.useRef)(),ri=(0,z.useRef)();function Eo(){try{return jo.current instanceof HTMLElement?jo.current:ft(ri.current)}catch(Ao){return null}}var wo=qe(ko,Dn,Eo,Bt),Yr=(0,de.Z)(wo,4),ga=Yr[0],Vi=Yr[1],fa=Yr[2],va=Yr[3],Ua=z.useRef(va);va&&(Ua.current=!0);var ui=z.useCallback(function(Ao){jo.current=Ao,Se(sn,Ao)},[sn]),si,Qi=(0,ue.Z)((0,ue.Z)({},eo),{},{visible:Dn});if(!Qn)si=null;else if(ga===vo||!Ye(Bt))va?si=Qn((0,ue.Z)({},Qi),ui):!Jn&&Ua.current&&fr?si=Qn((0,ue.Z)((0,ue.Z)({},Qi),{},{className:fr}),ui):jr||!Jn&&!fr?si=Qn((0,ue.Z)((0,ue.Z)({},Qi),{},{style:{display:"none"}}),ui):si=null;else{var Da,Ji;Vi===St?Ji="prepare":dr(Vi)?Ji="active":Vi===Lt&&(Ji="start"),si=Qn((0,ue.Z)((0,ue.Z)({},Qi),{},{className:he()(oa(zr,ga),(Da={},(0,ie.Z)(Da,oa(zr,"".concat(ga,"-").concat(Ji)),Ji),(0,ie.Z)(Da,zr,typeof zr=="string"),Da)),style:fa}),ui)}if(z.isValidElement(si)&&we(si)){var di=si,Zi=di.ref;Zi||(si=z.cloneElement(si,{ref:ui}))}return z.createElement(mn,{ref:ri},si)});return pt.displayName="CSSMotion",pt}var Zn=vn(Qo),Hn=te(97326),gr="add",Fr="keep",Cr="remove",Or="removed";function so(Ie){var Ve;return Ie&&(0,oe.Z)(Ie)==="object"&&"key"in Ie?Ve=Ie:Ve={key:Ie},(0,ue.Z)((0,ue.Z)({},Ve),{},{key:String(Ve.key)})}function Co(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ie.map(so)}function kr(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],pt=0,Bt=Ve.length,sn=Co(Ie),dn=Co(Ve);sn.forEach(function(Jn){for(var jr=!1,Qn=pt;Qn1});return Pn.forEach(function(Jn){Ye=Ye.filter(function(jr){var Qn=jr.key,zr=jr.status;return Qn!==Jn||zr!==Cr}),Ye.forEach(function(jr){jr.key===Jn&&(jr.status=Fr)})}),Ye}var To=["component","children","onVisibleChanged","onAllRemoved"],mo=["status"],Oo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ki(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zn,Ye=function(pt){(0,Ut.Z)(sn,pt);var Bt=(0,cn.Z)(sn);function sn(){var dn;(0,bt.Z)(this,sn);for(var Dn=arguments.length,Pn=new Array(Dn),Jn=0;Jn0,Vr=z.useState(!wo||!Ka),ms=(0,de.Z)(Vr,2),Ui=ms[0],gs=ms[1];if(On(function(){!Ui&&Ka&&dn&&gs(!0)},[Ui,Ka,dn]),!Ui)return null;var Sa="auto",qi={left:"-1000vw",top:"-1000vh",right:Sa,bottom:Sa};if(ui||!Pn){var Ba,ps=ko.points,xi=ko.dynamicInset||((Ba=ko._experimental)===null||Ba===void 0?void 0:Ba.dynamicInset),ya=xi&&ps[0][1]==="r",is=xi&&ps[0][0]==="b";ya?(qi.right=Da,qi.left=Sa):(qi.left=si,qi.right=Sa),is?(qi.bottom=Ji,qi.top=Sa):(qi.top=Qi,qi.bottom=Sa)}var sa={};return Ao&&(Ao.includes("height")&&zi?sa.height=zi:Ao.includes("minHeight")&&zi&&(sa.minHeight=zi),Ao.includes("width")&&Ia?sa.width=Ia:Ao.includes("minWidth")&&Ia&&(sa.minWidth=Ia)),Pn||(sa.pointerEvents="none"),z.createElement(ga,{open:Eo||ss,getContainer:wo&&function(){return wo(dn)},autoDestroy:Yr},z.createElement(ai,{prefixCls:Bt,open:Pn,zIndex:Vi,mask:zr,motion:ri}),z.createElement(hn.Z,{onResize:di,disabled:!Pn},function(As){return z.createElement(vi,(0,pe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Eo,leavedClassName:"".concat(Bt,"-hidden")},jo,{onAppearPrepare:Zi,onEnterPrepare:Zi,visible:Pn,onVisibleChanged:function(la){var yo;jo==null||(yo=jo.onVisibleChanged)===null||yo===void 0||yo.call(jo,la),Dn(la)}}),function(es,la){var yo=es.className,Fa=es.style,ls=he()(Bt,yo,pt);return z.createElement("div",{ref:Mt(As,Ve,la),className:ls,style:(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({"--arrow-x":"".concat(eo.x||0,"px"),"--arrow-y":"".concat(eo.y||0,"px")},qi),sa),Fa),{},{boxSizing:"border-box",zIndex:Vi},sn),onMouseEnter:fa,onMouseLeave:va,onPointerEnter:Ua,onClick:Qn},fr&&z.createElement(ia,{prefixCls:Bt,arrow:fr,arrowPos:eo,align:ko}),z.createElement(Ki,{cache:!Pn&&!jr},Ha))})}))}),Xi=aa,Ga=z.forwardRef(function(Ie,Ve){var Ye=Ie.children,pt=Ie.getTriggerDOMNode,Bt=er(Ye),sn=z.useCallback(function(Dn){_r(Ve,pt?pt(Dn):Dn)},[pt]),dn=ur(sn,Ye.ref);return Bt?z.cloneElement(Ye,{ref:dn}):Ye}),xa=Ga,da=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Fo(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn,Ve=z.forwardRef(function(Ye,pt){var Bt=Ye.prefixCls,sn=Bt===void 0?"rc-trigger-popup":Bt,dn=Ye.children,Dn=Ye.action,Pn=Dn===void 0?"hover":Dn,Jn=Ye.showAction,jr=Ye.hideAction,Qn=Ye.popupVisible,zr=Ye.defaultPopupVisible,fr=Ye.onPopupVisibleChange,eo=Ye.afterPopupVisibleChange,ko=Ye.mouseEnterDelay,jo=Ye.mouseLeaveDelay,ri=jo===void 0?.1:jo,Eo=Ye.focusDelay,wo=Ye.blurDelay,Yr=Ye.mask,ga=Ye.maskClosable,Vi=ga===void 0?!0:ga,fa=Ye.getPopupContainer,va=Ye.forceRender,Ua=Ye.autoDestroy,ui=Ye.destroyPopupOnHide,si=Ye.popup,Qi=Ye.popupClassName,Da=Ye.popupStyle,Ji=Ye.popupPlacement,di=Ye.builtinPlacements,Zi=di===void 0?{}:di,Ao=Ye.popupAlign,Ia=Ye.zIndex,zi=Ye.stretch,Ha=Ye.getPopupClassNameFromAlign,ss=Ye.fresh,Ka=Ye.alignPoint,Vr=Ye.onPopupClick,ms=Ye.onPopupAlign,Ui=Ye.arrow,gs=Ye.popupMotion,Sa=Ye.maskMotion,qi=Ye.popupTransitionName,Ba=Ye.popupAnimation,ps=Ye.maskTransitionName,xi=Ye.maskAnimation,ya=Ye.className,is=Ye.getTriggerDOMNode,sa=(0,le.Z)(Ye,da),As=Ua||ui||!1,es=z.useState(!1),la=(0,de.Z)(es,2),yo=la[0],Fa=la[1];On(function(){Fa(qr())},[]);var ls=z.useRef({}),Ds=z.useContext(Zo),Ys=z.useMemo(function(){return{registerSubPopup:function(Rr,Ko){ls.current[Rr]=Ko,Ds==null||Ds.registerSubPopup(Rr,Ko)}}},[Ds]),Zs=Br(),Oe=z.useState(null),je=(0,de.Z)(Oe,2),Ge=je[0],vr=je[1],wn=Zt(function(ar){$n(ar)&&Ge!==ar&&vr(ar),Ds==null||Ds.registerSubPopup(Zs,ar)}),en=z.useState(null),En=(0,de.Z)(en,2),Qt=En[0],Sn=En[1],Kn=Zt(function(ar){$n(ar)&&Qt!==ar&&Sn(ar)}),Do=z.Children.only(dn),Mr=(Do==null?void 0:Do.props)||{},Io={},Hr=Zt(function(ar){var Rr,Ko,ii=Qt;return(ii==null?void 0:ii.contains(ar))||((Rr=An(ii))===null||Rr===void 0?void 0:Rr.host)===ar||ar===ii||(Ge==null?void 0:Ge.contains(ar))||((Ko=An(Ge))===null||Ko===void 0?void 0:Ko.host)===ar||ar===Ge||Object.values(ls.current).some(function(Gr){return(Gr==null?void 0:Gr.contains(ar))||ar===Gr})}),bo=$i(sn,gs,Ba,qi),Ir=$i(sn,Sa,xi,ps),ea=z.useState(zr||!1),Lo=(0,de.Z)(ea,2),Ho=Lo[0],zo=Lo[1],wr=Qn!=null?Qn:Ho,li=Zt(function(ar){Qn===void 0&&zo(ar)});On(function(){zo(Qn||!1)},[Qn]);var Vn=z.useRef(wr);Vn.current=wr;var Di=Zt(function(ar){(0,se.flushSync)(function(){wr!==ar&&(li(ar),fr==null||fr(ar))})}),Jo=z.useRef(),ha=function(){clearTimeout(Jo.current)},Ma=function(Rr){var Ko=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ha(),Ko===0?Di(Rr):Jo.current=setTimeout(function(){Di(Rr)},Ko*1e3)};z.useEffect(function(){return ha},[]);var Lr=z.useState(!1),ca=(0,de.Z)(Lr,2),oi=ca[0],$r=ca[1];On(function(ar){(!ar||wr)&&$r(!0)},[wr]);var Ro=z.useState(null),gi=(0,de.Z)(Ro,2),$o=gi[0],zs=gi[1],vs=z.useState([0,0]),Cs=(0,de.Z)(vs,2),Rs=Cs[0],ws=Cs[1],cs=function(Rr){ws([Rr.clientX,Rr.clientY])},ro=Ne(wr,Ge,Ka?Rs:Qt,Ji,Zi,Ao,ms),Si=(0,de.Z)(ro,11),Va=Si[0],Us=Si[1],as=Si[2],el=Si[3],Wa=Si[4],_a=Si[5],Hs=Si[6],Ee=Si[7],Ce=Si[8],Re=Si[9],Te=Si[10],Ue=yr(yo,Pn,Jn,jr),Ze=(0,de.Z)(Ue,2),ot=Ze[0],st=Ze[1],ht=ot.has("click"),Pt=st.has("click")||st.has("contextMenu"),Ot=Zt(function(){oi||Te()}),At=function(){Vn.current&&Ka&&Pt&&Ma(!1)};et(wr,Qt,Ge,Ot,At),On(function(){Ot()},[Rs,Ji]),On(function(){wr&&!(Zi!=null&&Zi[Ji])&&Ot()},[JSON.stringify(Ao)]);var tn=z.useMemo(function(){var ar=Wi(Zi,sn,Re,Ka);return he()(ar,Ha==null?void 0:Ha(Re))},[Re,Ha,Zi,sn,Ka]);z.useImperativeHandle(pt,function(){return{forceAlign:Ot}});var gn=z.useState(0),ln=(0,de.Z)(gn,2),Wn=ln[0],Fn=ln[1],Yn=z.useState(0),zn=(0,de.Z)(Yn,2),rr=zn[0],Ur=zn[1],Xr=function(){if(zi&&Qt){var Rr=Qt.getBoundingClientRect();Fn(Rr.width),Ur(Rr.height)}},Ar=function(){Xr(),Ot()},fo=function(Rr){$r(!1),Te(),eo==null||eo(Rr)},io=function(){return new Promise(function(Rr){Xr(),zs(function(){return Rr})})};On(function(){$o&&(Te(),$o(),zs(null))},[$o]);function cr(ar,Rr,Ko,ii){Io[ar]=function(Gr){var Ra;ii==null||ii(Gr),Ma(Rr,Ko);for(var Pi=arguments.length,ba=new Array(Pi>1?Pi-1:0),ua=1;ua1?Ko-1:0),Gr=1;Gr1?Ko-1:0),Gr=1;Gr=mr.F1&&Ye<=mr.F12)return!1;switch(Ye){case mr.ALT:case mr.CAPS_LOCK:case mr.CONTEXT_MENU:case mr.CTRL:case mr.DOWN:case mr.END:case mr.ESC:case mr.HOME:case mr.INSERT:case mr.LEFT:case mr.MAC_FF_META:case mr.META:case mr.NUMLOCK:case mr.NUM_CENTER:case mr.PAGE_DOWN:case mr.PAGE_UP:case mr.PAUSE:case mr.PRINT_SCREEN:case mr.RIGHT:case mr.SHIFT:case mr.UP:case mr.WIN_KEY:case mr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ve){if(Ve>=mr.ZERO&&Ve<=mr.NINE||Ve>=mr.NUM_ZERO&&Ve<=mr.NUM_MULTIPLY||Ve>=mr.A&&Ve<=mr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ve===0)return!0;switch(Ve){case mr.SPACE:case mr.QUESTION_MARK:case mr.NUM_PLUS:case mr.NUM_MINUS:case mr.NUM_PERIOD:case mr.NUM_DIVISION:case mr.SEMICOLON:case mr.DASH:case mr.EQUALS:case mr.COMMA:case mr.PERIOD:case mr.SLASH:case mr.APOSTROPHE:case mr.SINGLE_QUOTE:case mr.OPEN_SQUARE_BRACKET:case mr.BACKSLASH:case mr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ca=mr,Xa=Ca.ESC,Oi=Ca.TAB;function ji(Ie){var Ve=Ie.visible,Ye=Ie.triggerRef,pt=Ie.onVisibleChange,Bt=Ie.autoFocus,sn=Ie.overlayRef,dn=z.useRef(!1),Dn=function(){if(Ve){var Qn,zr;(Qn=Ye.current)===null||Qn===void 0||(zr=Qn.focus)===null||zr===void 0||zr.call(Qn),pt==null||pt(!1)}},Pn=function(){var Qn;return(Qn=sn.current)!==null&&Qn!==void 0&&Qn.focus?(sn.current.focus(),dn.current=!0,!0):!1},Jn=function(Qn){switch(Qn.keyCode){case Xa:Dn();break;case Oi:{var zr=!1;dn.current||(zr=Pn()),zr?Qn.preventDefault():Dn();break}}};z.useEffect(function(){return Ve?(window.addEventListener("keydown",Jn),Bt&&Tt(Pn,3),function(){window.removeEventListener("keydown",Jn),dn.current=!1}):function(){dn.current=!1}},[Ve])}var wa=(0,z.forwardRef)(function(Ie,Ve){var Ye=Ie.overlay,pt=Ie.arrow,Bt=Ie.prefixCls,sn=(0,z.useMemo)(function(){var Dn;return typeof Ye=="function"?Dn=Ye():Dn=Ye,Dn},[Ye]),dn=_e(Ve,sn==null?void 0:sn.ref);return z.createElement(z.Fragment,null,pt&&z.createElement("div",{className:"".concat(Bt,"-arrow")}),z.cloneElement(sn,{ref:we(sn)?dn:void 0}))}),Ii=wa,_i={adjustX:1,adjustY:1},bi=[0,0],Za={topLeft:{points:["bl","tl"],overflow:_i,offset:[0,-4],targetOffset:bi},top:{points:["bc","tc"],overflow:_i,offset:[0,-4],targetOffset:bi},topRight:{points:["br","tr"],overflow:_i,offset:[0,-4],targetOffset:bi},bottomLeft:{points:["tl","bl"],overflow:_i,offset:[0,4],targetOffset:bi},bottom:{points:["tc","bc"],overflow:_i,offset:[0,4],targetOffset:bi},bottomRight:{points:["tr","br"],overflow:_i,offset:[0,4],targetOffset:bi}},Ai=Za,Bi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pa(Ie,Ve){var Ye,pt=Ie.arrow,Bt=pt===void 0?!1:pt,sn=Ie.prefixCls,dn=sn===void 0?"rc-dropdown":sn,Dn=Ie.transitionName,Pn=Ie.animation,Jn=Ie.align,jr=Ie.placement,Qn=jr===void 0?"bottomLeft":jr,zr=Ie.placements,fr=zr===void 0?Ai:zr,eo=Ie.getPopupContainer,ko=Ie.showAction,jo=Ie.hideAction,ri=Ie.overlayClassName,Eo=Ie.overlayStyle,wo=Ie.visible,Yr=Ie.trigger,ga=Yr===void 0?["hover"]:Yr,Vi=Ie.autoFocus,fa=Ie.overlay,va=Ie.children,Ua=Ie.onVisibleChange,ui=(0,le.Z)(Ie,Bi),si=z.useState(),Qi=(0,de.Z)(si,2),Da=Qi[0],Ji=Qi[1],di="visible"in Ie?wo:Da,Zi=z.useRef(null),Ao=z.useRef(null),Ia=z.useRef(null);z.useImperativeHandle(Ve,function(){return Zi.current});var zi=function(qi){Ji(qi),Ua==null||Ua(qi)};ji({visible:di,triggerRef:Ia,onVisibleChange:zi,autoFocus:Vi,overlayRef:Ao});var Ha=function(qi){var Ba=Ie.onOverlayClick;Ji(!1),Ba&&Ba(qi)},ss=function(){return z.createElement(Ii,{ref:Ao,overlay:fa,prefixCls:dn,arrow:Bt})},Ka=function(){return typeof fa=="function"?ss:ss()},Vr=function(){var qi=Ie.minOverlayWidthMatchTrigger,Ba=Ie.alignPoint;return"minOverlayWidthMatchTrigger"in Ie?qi:!Ba},ms=function(){var qi=Ie.openClassName;return qi!==void 0?qi:"".concat(dn,"-open")},Ui=z.cloneElement(va,{className:he()((Ye=va.props)===null||Ye===void 0?void 0:Ye.className,di&&ms()),ref:we(va)?_e(Ia,va.ref):void 0}),gs=jo;return!gs&&ga.indexOf("contextMenu")!==-1&&(gs=["click"]),z.createElement(ni,(0,pe.Z)({builtinPlacements:fr},ui,{prefixCls:dn,ref:Zi,popupClassName:he()(ri,(0,ie.Z)({},"".concat(dn,"-show-arrow"),Bt)),popupStyle:Eo,action:ga,showAction:ko,hideAction:gs,popupPlacement:Qn,popupAlign:Jn,popupTransitionName:Dn,popupAnimation:Pn,popupVisible:di,stretch:Vr()?"minWidth":"",popup:Ka(),onPopupVisibleChange:zi,onPopupClick:Ha,getPopupContainer:eo}),Ui)}var ds=z.forwardRef(pa),Fs=ds,bs=te(60276),Ws=te(5663),hs=te(10366),qa=te(80636),os=te(8745),Ps=te(96159),Es=te(53124),sl=te(68508),rl=te(76529),Gs=te(46605),ks=te(66748);const ul=null,Ks=Ie=>{const{menu:Ve,arrow:Ye,prefixCls:pt,children:Bt,trigger:sn,disabled:dn,dropdownRender:Dn,getPopupContainer:Pn,overlayClassName:Jn,rootClassName:jr,open:Qn,onOpenChange:zr,visible:fr,onVisibleChange:eo,mouseEnterDelay:ko=.15,mouseLeaveDelay:jo=.1,autoAdjustOverflow:ri=!0,placement:Eo="",overlay:wo,transitionName:Yr}=Ie,{getPopupContainer:ga,getPrefixCls:Vi,direction:fa}=z.useContext(Es.E_),va=z.useMemo(()=>{const Ui=Vi();return Yr!==void 0?Yr:Eo.includes("top")?`${Ui}-slide-down`:`${Ui}-slide-up`},[Vi,Eo,Yr]),Ua=z.useMemo(()=>Eo?Eo.includes("Center")?Eo.slice(0,Eo.indexOf("Center")):Eo:fa==="rtl"?"bottomRight":"bottomLeft",[Eo,fa]),ui=Vi("dropdown",pt),[si,Qi]=(0,ks.Z)(ui),[,Da]=(0,Gs.Z)(),Ji=z.Children.only(Bt),di=(0,Ps.Tm)(Ji,{className:he()(`${ui}-trigger`,{[`${ui}-rtl`]:fa==="rtl"},Ji.props.className),disabled:dn}),Zi=dn?[]:sn;let Ao;Zi&&Zi.includes("contextMenu")&&(Ao=!0);const[Ia,zi]=(0,Ws.Z)(!1,{value:Qn!=null?Qn:fr}),Ha=(0,bs.useEvent)(Ui=>{zr==null||zr(Ui),eo==null||eo(Ui),zi(Ui)}),ss=he()(Jn,jr,Qi,{[`${ui}-rtl`]:fa==="rtl"}),Ka=(0,qa.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:ri,offset:Da.marginXXS,arrowWidth:Ye?Da.sizePopupArrow:0,borderRadius:Da.borderRadius}),Vr=z.useCallback(()=>{zi(!1)},[]),ms=()=>{let Ui;return Ve!=null&&Ve.items?Ui=z.createElement(sl.default,Object.assign({},Ve)):typeof wo=="function"?Ui=wo():Ui=wo,Dn&&(Ui=Dn(Ui)),Ui=z.Children.only(typeof Ui=="string"?z.createElement("span",null,Ui):Ui),z.createElement(rl.J,{prefixCls:`${ui}-menu`,expandIcon:z.createElement("span",{className:`${ui}-menu-submenu-arrow`},z.createElement(Pe.Z,{className:`${ui}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Vr,validator:gs=>{let{mode:Sa}=gs}},Ui)};return si(z.createElement(Fs,Object.assign({alignPoint:Ao},(0,hs.Z)(Ie,["rootClassName"]),{mouseEnterDelay:ko,mouseLeaveDelay:jo,visible:Ia,builtinPlacements:Ka,arrow:!!Ye,overlayClassName:ss,prefixCls:ui,getPopupContainer:Pn||ga,transitionName:va,trigger:Zi,overlay:ms,placement:Ua,onVisibleChange:Ha}),di))};function js(Ie){return Object.assign(Object.assign({},Ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ms=(0,os.Z)(Ks,"dropdown",Ie=>Ie,js),Vs=Ie=>z.createElement(Ms,Object.assign({},Ie),z.createElement("span",null));Ks._InternalPanelDoNotUseOrYouWillBeFired=Vs;var qs=Ks},85418:function(at,We,te){"use strict";te.d(We,{Z:function(){return a}});var z=te(56153),fe=te(94184),Pe=te.n(fe),ve=te(67294),he=te(64582),pe=te(71577),ie=te(53124),de=te(93421),le=te(4173),ue=te(66748),se=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(y);ee{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ie.E_),{prefixCls:ee,type:oe="default",danger:ae,disabled:ce,loading:Se,onClick:_e,htmlType:xe,children:we,className:Fe,menu:Me,arrow:ut,autoFocus:Xe,overlay:mt,trigger:Ae,align:De,open:Be,onOpenChange:nt,placement:Ke,getPopupContainer:Et,href:Ct,icon:nn=ve.createElement(he.Z,null),title:on,buttonsRender:it=tt=>tt,mouseEnterDelay:lt,mouseLeaveDelay:xt,overlayClassName:Jt,overlayStyle:Vt,destroyPopupOnHide:xn,dropdownRender:He}=y,un=se(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),kn=b("dropdown",ee),nr=`${kn}-button`,[Ln,Gt]=(0,ue.Z)(kn),Je={menu:Me,arrow:ut,autoFocus:Xe,align:De,disabled:ce,trigger:ce?[]:Ae,onOpenChange:nt,getPopupContainer:Et||E,mouseEnterDelay:lt,mouseLeaveDelay:xt,overlayClassName:Jt,overlayStyle:Vt,destroyPopupOnHide:xn,dropdownRender:He},{compactSize:Qe,compactItemClassnames:_t}=(0,le.ri)(kn,x),Rt=Pe()(nr,_t,Fe,Gt);"overlay"in y&&(Je.overlay=mt),"open"in y&&(Je.open=Be),"placement"in y?Je.placement=Ke:Je.placement=x==="rtl"?"bottomLeft":"bottomRight";const Yt=ve.createElement(pe.ZP,{type:oe,danger:ae,disabled:ce,loading:Se,onClick:_e,htmlType:xe,href:Ct,title:on},we),gt=ve.createElement(pe.ZP,{type:oe,danger:ae,icon:nn}),[wt,Dt]=it([Yt,gt]);return Ln(ve.createElement(de.Z.Compact,Object.assign({className:Rt,size:Qe,block:!0},un),wt,ve.createElement(z.Z,Object.assign({},Je),Dt)))};me.__ANT_BUTTON=!0;var re=me;const ne=z.Z;ne.Button=re;var a=ne},66748:function(at,We,te){"use strict";te.d(We,{Z:function(){return se}});var z=te(14747),fe=te(67771),Pe=te(33297),ve=te(50438),he=te(97414),pe=te(67968),ie=te(45503),le=me=>{const{componentCls:re,menuCls:ne,colorError:a,colorTextLightSolid:y}=me,E=`${ne}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ue=me=>{const{componentCls:re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:ee,dropdownPaddingVertical:oe,fontSize:ae,dropdownEdgeChildPadding:ce,colorTextDisabled:Se,fontSizeIcon:_e,controlPaddingHorizontal:xe,colorBgElevated:we}=me;return[{[re]:Object.assign(Object.assign({},(0,z.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:_e}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:_e},[`${x}-down::before`]:{transition:`transform ${ee}`}},[`${re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomLeft, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft, &${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom, &${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft, &${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top, &${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft, &${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom, &${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft, &${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top, &${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:fe.ly}})},(0,he.ZP)(me,{colorBg:we,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${re}, ${re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:we,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,z.Qy)(me)),{[`${ne}-item-group-title`]:{padding:`${oe}px ${xe}px`,color:me.colorTextDescription,transition:`all ${ee}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:ae,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ee}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${xe}px`,color:me.colorText,fontWeight:"normal",fontSize:ae,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ee}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,z.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:Se,cursor:"not-allowed","&:hover":{color:Se,backgroundColor:we,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:_e,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:xe+me.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:Se,backgroundColor:we,cursor:"not-allowed"}},[`${ne}-submenu-selected ${re}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,fe.oN)(me,"slide-up"),(0,fe.oN)(me,"slide-down"),(0,Pe.Fm)(me,"move-up"),(0,Pe.Fm)(me,"move-down"),(0,ve._y)(me,"zoom-big")]]};var se=(0,pe.Z)("Dropdown",(me,re)=>{let{rootPrefixCls:ne}=re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:ee,componentCls:oe,borderRadiusLG:ae}=me,ce=(E-b*x)/2,{dropdownArrowOffset:Se}=(0,he.fS)({contentRadius:ae}),_e=(0,ie.TS)(me,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:Se,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:ee});return[ue(_e),le(_e)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},25378:function(at,We,te){"use strict";var z=te(67294),fe=te(14075),Pe=te(57838),ve=te(74443);function he(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,z.useRef)({}),de=(0,Pe.Z)(),le=(0,ve.ZP)();return(0,fe.Z)(()=>{const ue=le.subscribe(se=>{ie.current=se,pe&&de()});return()=>le.unsubscribe(ue)},[]),ie.current}We.Z=he},19249:function(at,We,te){"use strict";te.d(We,{D:function(){return x},Z:function(){return ae}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ve=Pe,he=te(44327),pe=function(Se,_e){return fe.createElement(he.Z,(0,z.Z)({},Se,{ref:_e,icon:ve}))},ie=fe.forwardRef(pe),de=te(55007),le=te(79269),ue=te(94184),se=te.n(ue),me=te(10366),ne=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),a=te(53124),y=te(84321),E=function(ce,Se){var _e={};for(var xe in ce)Object.prototype.hasOwnProperty.call(ce,xe)&&Se.indexOf(xe)<0&&(_e[xe]=ce[xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,xe=Object.getOwnPropertySymbols(ce);we{let ce=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ce+=1,`${Se}${ce}`}})();var ae=fe.forwardRef((ce,Se)=>{const{prefixCls:_e,className:xe,trigger:we,children:Fe,defaultCollapsed:Me=!1,theme:ut="dark",style:Xe={},collapsible:mt=!1,reverseArrow:Ae=!1,width:De=200,collapsedWidth:Be=80,zeroWidthTriggerStyle:nt,breakpoint:Ke,onCollapse:Et,onBreakpoint:Ct}=ce,nn=E(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:on}=(0,fe.useContext)(y.Gs),[it,lt]=(0,fe.useState)("collapsed"in ce?ce.collapsed:Me),[xt,Jt]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ce&<(ce.collapsed)},[ce.collapsed]);const Vt=(Ln,Gt)=>{"collapsed"in ce||lt(Ln),Et==null||Et(Ln,Gt)},xn=(0,fe.useRef)();xn.current=Ln=>{Jt(Ln.matches),Ct==null||Ct(Ln.matches),it!==Ln.matches&&Vt(Ln.matches,"responsive")},(0,fe.useEffect)(()=>{function Ln(Je){return xn.current(Je)}let Gt;if(typeof window!="undefined"){const{matchMedia:Je}=window;if(Je&&Ke&&Ke in b){Gt=Je(`(max-width: ${b[Ke]})`);try{Gt.addEventListener("change",Ln)}catch(Qe){Gt.addListener(Ln)}Ln(Gt)}}return()=>{try{Gt==null||Gt.removeEventListener("change",Ln)}catch(Je){Gt==null||Gt.removeListener(Ln)}}},[Ke]),(0,fe.useEffect)(()=>{const Ln=ee("ant-sider-");return on.addSider(Ln),()=>on.removeSider(Ln)},[]);const He=()=>{Vt(!it,"clickTrigger")},{getPrefixCls:un}=(0,fe.useContext)(a.E_),kn=()=>{const Ln=un("layout-sider",_e),Gt=(0,me.Z)(nn,["collapsed"]),Je=it?Be:De,Qe=ne(Je)?`${Je}px`:String(Je),_t=parseFloat(String(Be||0))===0?fe.createElement("span",{onClick:He,className:se()(`${Ln}-zero-width-trigger`,`${Ln}-zero-width-trigger-${Ae?"right":"left"}`),style:nt},we||fe.createElement(ie,null)):null,gt={expanded:Ae?fe.createElement(le.Z,null):fe.createElement(de.Z,null),collapsed:Ae?fe.createElement(de.Z,null):fe.createElement(le.Z,null)}[it?"collapsed":"expanded"],wt=we!==null?_t||fe.createElement("div",{className:`${Ln}-trigger`,onClick:He,style:{width:Qe}},we||gt):null,Dt=Object.assign(Object.assign({},Xe),{flex:`0 0 ${Qe}`,maxWidth:Qe,minWidth:Qe,width:Qe}),tt=se()(Ln,`${Ln}-${ut}`,{[`${Ln}-collapsed`]:!!it,[`${Ln}-has-trigger`]:mt&&we!==null&&!_t,[`${Ln}-below`]:!!xt,[`${Ln}-zero-width`]:parseFloat(Qe)===0},xe);return fe.createElement("aside",Object.assign({className:tt},Gt,{style:Dt,ref:Se}),fe.createElement("div",{className:`${Ln}-children`},Fe),mt||xt&&_t?wt:null)},nr=fe.useMemo(()=>({siderCollapsed:it}),[it]);return fe.createElement(x.Provider,{value:nr},kn())})},84321:function(at,We,te){"use strict";te.d(We,{VY:function(){return ee},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var z=te(74902),fe=te(94184),Pe=te.n(fe),ve=te(10366),he=te(67294),pe=te(53124),ie=te(67968),le=ae=>{const{componentCls:ce,bodyBg:Se,lightSiderBg:_e,lightTriggerBg:xe,lightTriggerColor:we}=ae;return{[`${ce}-sider-light`]:{background:_e,[`${ce}-sider-trigger`]:{color:we,background:xe},[`${ce}-sider-zero-width-trigger`]:{color:we,background:xe,border:`1px solid ${Se}`,borderInlineStart:0}}}};const ue=ae=>{const{antCls:ce,componentCls:Se,colorText:_e,triggerColor:xe,footerBg:we,triggerBg:Fe,headerHeight:Me,headerPadding:ut,headerColor:Xe,footerPadding:mt,triggerHeight:Ae,zeroTriggerHeight:De,zeroTriggerWidth:Be,motionDurationMid:nt,motionDurationSlow:Ke,fontSize:Et,borderRadius:Ct,bodyBg:nn,headerBg:on,siderBg:it}=ae;return{[Se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nn,"&, *":{boxSizing:"border-box"},[`&${Se}-has-sider`]:{flexDirection:"row",[`> ${Se}, > ${Se}-content`]:{width:0}},[`${Se}-header, &${Se}-footer`]:{flex:"0 0 auto"},[`${Se}-sider`]:{position:"relative",minWidth:0,background:it,transition:`all ${nt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ae},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ae,color:xe,lineHeight:`${Ae}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Be,zIndex:1,width:Be,height:De,color:xe,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:it,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Be,borderStartStartRadius:Ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ct}}}}},le(ae)),{"&-rtl":{direction:"rtl"}}),[`${Se}-header`]:{height:Me,padding:ut,color:Xe,lineHeight:`${Me}px`,background:on,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${Se}-footer`]:{padding:mt,color:_e,fontSize:Et,background:we},[`${Se}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ie.Z)("Layout",ae=>[ue(ae)],ae=>{const{colorBgLayout:ce,controlHeight:Se,controlHeightLG:_e,colorText:xe,controlHeightSM:we,marginXXS:Fe,colorTextLightSolid:Me,colorBgContainer:ut}=ae,Xe=_e*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:Se*2,headerPadding:`0 ${Xe}px`,headerColor:xe,footerPadding:`${we}px ${Xe}px`,footerBg:ce,siderBg:"#001529",triggerHeight:_e+Fe*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:_e,zeroTriggerHeight:_e,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(ae,ce){var Se={};for(var _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&ce.indexOf(_e)<0&&(Se[_e]=ae[_e]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(ae);xe<_e.length;xe++)ce.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(ae,_e[xe])&&(Se[_e[xe]]=ae[_e[xe]]);return Se};const re=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ae){let{suffixCls:ce,tagName:Se,displayName:_e}=ae;return xe=>he.forwardRef((Fe,Me)=>he.createElement(xe,Object.assign({ref:Me,suffixCls:ce,tagName:Se},Fe)))}const a=he.forwardRef((ae,ce)=>{const{prefixCls:Se,suffixCls:_e,className:xe,tagName:we}=ae,Fe=me(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=he.useContext(pe.E_),ut=Me("layout",Se),[Xe,mt]=se(ut),Ae=_e?`${ut}-${_e}`:ut;return Xe(he.createElement(we,Object.assign({className:Pe()(Se||Ae,xe,mt),ref:ce},Fe)))}),y=he.forwardRef((ae,ce)=>{const{direction:Se}=he.useContext(pe.E_),[_e,xe]=he.useState([]),{prefixCls:we,className:Fe,rootClassName:Me,children:ut,hasSider:Xe,tagName:mt,style:Ae}=ae,De=me(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Be=(0,ve.Z)(De,["suffixCls"]),{getPrefixCls:nt,layout:Ke}=he.useContext(pe.E_),Et=nt("layout",we),[Ct,nn]=se(Et),on=Pe()(Et,{[`${Et}-has-sider`]:typeof Xe=="boolean"?Xe:_e.length>0,[`${Et}-rtl`]:Se==="rtl"},Ke==null?void 0:Ke.className,Fe,Me,nn),it=he.useMemo(()=>({siderHook:{addSider:lt=>{xe(xt=>[].concat((0,z.Z)(xt),[lt]))},removeSider:lt=>{xe(xt=>xt.filter(Jt=>Jt!==lt))}}}),[]);return Ct(he.createElement(re.Provider,{value:it},he.createElement(mt,Object.assign({ref:ce,className:on,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Ae)},Be),ut)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),ee=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var oe=E},76529:function(at,We,te){"use strict";te.d(We,{J:function(){return pe}});var z=te(67294),fe=te(4173),Pe=te(60276),ve=function(ie,de){var le={};for(var ue in ie)Object.prototype.hasOwnProperty.call(ie,ue)&&de.indexOf(ue)<0&&(le[ue]=ie[ue]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(ie);se{const{children:le}=ie,ue=ve(ie,["children"]),se=z.useContext(he),me=z.useMemo(()=>Object.assign(Object.assign({},se),ue),[se,ue.prefixCls,ue.mode,ue.selectable]);return z.createElement(he.Provider,{value:me},z.createElement(fe.BR,null,(0,Pe.supportNodeRef)(le)?z.cloneElement(le,{ref:de}):le))});We.Z=he},68508:function(at,We,te){"use strict";te.d(We,{default:function(){return Ln}});var z=te(52073),fe=te(67294),Pe=te(19249),ve=te(94184),he=te.n(ve),pe=te(53124),ie=function(Gt,Je){var Qe={};for(var _t in Gt)Object.prototype.hasOwnProperty.call(Gt,_t)&&Je.indexOf(_t)<0&&(Qe[_t]=Gt[_t]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,_t=Object.getOwnPropertySymbols(Gt);Rt<_t.length;Rt++)Je.indexOf(_t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_t[Rt])&&(Qe[_t[Rt]]=Gt[_t[Rt]]);return Qe},le=Gt=>{const{prefixCls:Je,className:Qe,dashed:_t}=Gt,Rt=ie(Gt,["prefixCls","className","dashed"]),{getPrefixCls:Yt}=fe.useContext(pe.E_),gt=Yt("menu",Je),wt=he()({[`${gt}-item-divider-dashed`]:!!_t},Qe);return fe.createElement(z.iz,Object.assign({className:wt},Rt))},ue=te(37419),se=te(10366),me=te(83062),re=te(96159),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Gt=>{var Je;const{className:Qe,children:_t,icon:Rt,title:Yt,danger:gt}=Gt,{prefixCls:wt,firstLevel:Dt,direction:tt,disableMenuItemTitleTooltip:fn,inlineCollapsed:hn}=fe.useContext(a),$n=yt=>{const Nn=fe.createElement("span",{className:`${wt}-title-content`},_t);return(!Rt||(0,re.l$)(_t)&&_t.type==="span")&&_t&&yt&&Dt&&typeof _t=="string"?fe.createElement("div",{className:`${wt}-inline-collapsed-noicon`},_t.charAt(0)):Nn},{siderCollapsed:no}=fe.useContext(Pe.D);let rt=Yt;typeof Yt=="undefined"?rt=Dt?_t:"":Yt===!1&&(rt="");const vt={title:rt};!no&&!hn&&(vt.title=null,vt.open=!1);const An=(0,ue.Z)(_t).length;let Zt=fe.createElement(z.ck,Object.assign({},(0,se.Z)(Gt,["title","icon","danger"]),{className:he()({[`${wt}-item-danger`]:gt,[`${wt}-item-only-child`]:(Rt?An+1:An)===1},Qe),title:typeof Yt=="string"?Yt:void 0}),(0,re.Tm)(Rt,{className:he()((0,re.l$)(Rt)?(Je=Rt.props)===null||Je===void 0?void 0:Je.className:"",`${wt}-item-icon`)}),$n(hn));return fn||(Zt=fe.createElement(me.Z,Object.assign({},vt,{placement:tt==="rtl"?"left":"right",overlayClassName:`${wt}-inline-collapsed-tooltip`}),Zt)),Zt},x=Gt=>{var Je;const{popupClassName:Qe,icon:_t,title:Rt,theme:Yt}=Gt,gt=fe.useContext(a),{prefixCls:wt,inlineCollapsed:Dt,theme:tt}=gt,fn=(0,z.Xl)();let hn;if(!_t)hn=Dt&&!fn.length&&Rt&&typeof Rt=="string"?fe.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Rt.charAt(0)):fe.createElement("span",{className:`${wt}-title-content`},Rt);else{const no=(0,re.l$)(Rt)&&Rt.type==="span";hn=fe.createElement(fe.Fragment,null,(0,re.Tm)(_t,{className:he()((0,re.l$)(_t)?(Je=_t.props)===null||Je===void 0?void 0:Je.className:"",`${wt}-item-icon`)}),no?Rt:fe.createElement("span",{className:`${wt}-title-content`},Rt))}const $n=fe.useMemo(()=>Object.assign(Object.assign({},gt),{firstLevel:!1}),[gt]);return fe.createElement(a.Provider,{value:$n},fe.createElement(z.Wd,Object.assign({},(0,se.Z)(Gt,["icon"]),{title:hn,popupClassName:he()(wt,Qe,`${wt}-${Yt||tt}`)})))},ee=te(64582),oe=te(60276),ae=te(33603),ce=te(76529),Se=function(Gt,Je){var Qe={};for(var _t in Gt)Object.prototype.hasOwnProperty.call(Gt,_t)&&Je.indexOf(_t)<0&&(Qe[_t]=Gt[_t]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,_t=Object.getOwnPropertySymbols(Gt);Rt<_t.length;Rt++)Je.indexOf(_t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_t[Rt])&&(Qe[_t[Rt]]=Gt[_t[Rt]]);return Qe};function _e(Gt){return(Gt||[]).map((Je,Qe)=>{if(Je&&typeof Je=="object"){const _t=Je,{label:Rt,children:Yt,key:gt,type:wt}=_t,Dt=Se(_t,["label","children","key","type"]),tt=gt!=null?gt:`tmp-${Qe}`;return Yt||wt==="group"?wt==="group"?fe.createElement(z.BW,Object.assign({key:tt},Dt,{title:Rt}),_e(Yt)):fe.createElement(x,Object.assign({key:tt},Dt,{title:Rt}),_e(Yt)):wt==="divider"?fe.createElement(le,Object.assign({key:tt},Dt)):fe.createElement(E,Object.assign({key:tt},Dt),Rt)}return null}).filter(Je=>Je)}function xe(Gt){return fe.useMemo(()=>Gt&&_e(Gt),[Gt])}var we=te(84780),Fe=te(14747),Me=te(33507),ut=te(67771),Xe=te(50438),mt=te(67968),Ae=te(45503),Be=Gt=>{const{componentCls:Je,motionDurationSlow:Qe,horizontalLineHeight:_t,colorSplit:Rt,lineWidth:Yt,lineType:gt,itemPaddingInline:wt}=Gt;return{[`${Je}-horizontal`]:{lineHeight:_t,border:0,borderBottom:`${Yt}px ${gt} ${Rt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Je}-item, ${Je}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${Je}-item:hover, > ${Je}-item-active, > ${Je}-submenu ${Je}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Je}-item, ${Je}-submenu-title`]:{transition:[`border-color ${Qe}`,`background ${Qe}`].join(",")},[`${Je}-submenu-arrow`]:{display:"none"}}}},Ke=Gt=>{let{componentCls:Je,menuArrowOffset:Qe}=Gt;return{[`${Je}-rtl`]:{direction:"rtl"},[`${Je}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Je}-rtl${Je}-vertical, ${Je}-submenu-rtl ${Je}-vertical`]:{[`${Je}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Qe})`},"&::after":{transform:`rotate(45deg) translateY(${Qe})`}}}}};const Et=Gt=>Object.assign({},(0,Fe.oN)(Gt));var nn=(Gt,Je)=>{const{componentCls:Qe,itemColor:_t,itemSelectedColor:Rt,groupTitleColor:Yt,itemBg:gt,subMenuItemBg:wt,itemSelectedBg:Dt,activeBarHeight:tt,activeBarWidth:fn,activeBarBorderWidth:hn,motionDurationSlow:$n,motionEaseInOut:no,motionEaseOut:rt,itemPaddingInline:vt,motionDurationMid:An,itemHoverColor:Zt,lineType:yt,colorSplit:Nn,itemDisabledColor:Xt,dangerItemColor:qn,dangerItemHoverColor:Br,dangerItemSelectedColor:or,dangerItemActiveBg:Gn,dangerItemSelectedBg:ir,itemHoverBg:So,itemActiveBg:On,menuSubMenuBg:qr,horizontalItemSelectedColor:Yo,horizontalItemSelectedBg:Zo,horizontalItemBorderRadius:qo,horizontalItemHoverBg:yr,popupBg:xo}=Gt;return{[`${Qe}-${Je}, ${Qe}-${Je} > ${Qe}`]:{color:_t,background:gt,[`&${Qe}-root:focus-visible`]:Object.assign({},Et(Gt)),[`${Qe}-item-group-title`]:{color:Yt},[`${Qe}-submenu-selected`]:{[`> ${Qe}-submenu-title`]:{color:Rt}},[`${Qe}-item-disabled, ${Qe}-submenu-disabled`]:{color:`${Xt} !important`},[`${Qe}-item:not(${Qe}-item-selected):not(${Qe}-submenu-selected)`]:{[`&:hover, > ${Qe}-submenu-title:hover`]:{color:Zt}},[`&:not(${Qe}-horizontal)`]:{[`${Qe}-item:not(${Qe}-item-selected)`]:{"&:hover":{backgroundColor:So},"&:active":{backgroundColor:On}},[`${Qe}-submenu-title`]:{"&:hover":{backgroundColor:So},"&:active":{backgroundColor:On}}},[`${Qe}-item-danger`]:{color:qn,[`&${Qe}-item:hover`]:{[`&:not(${Qe}-item-selected):not(${Qe}-submenu-selected)`]:{color:Br}},[`&${Qe}-item:active`]:{background:Gn}},[`${Qe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Qe}-item-selected`]:{color:Rt,[`&${Qe}-item-danger`]:{color:or},"a, a:hover":{color:"inherit"}},[`& ${Qe}-item-selected`]:{backgroundColor:Dt,[`&${Qe}-item-danger`]:{backgroundColor:ir}},[`${Qe}-item, ${Qe}-submenu-title`]:{[`&:not(${Qe}-item-disabled):focus-visible`]:Object.assign({},Et(Gt))},[`&${Qe}-submenu > ${Qe}`]:{backgroundColor:qr},[`&${Qe}-popup > ${Qe}`]:{backgroundColor:xo},[`&${Qe}-horizontal`]:Object.assign(Object.assign({},Je==="dark"?{borderBottom:0}:{}),{[`> ${Qe}-item, > ${Qe}-submenu`]:{top:hn,marginTop:-hn,marginBottom:0,borderRadius:qo,"&::after":{position:"absolute",insetInline:vt,bottom:0,borderBottom:`${tt}px solid transparent`,transition:`border-color ${$n} ${no}`,content:'""'},"&:hover, &-active, &-open":{background:yr,"&::after":{borderBottomWidth:tt,borderBottomColor:Yo}},"&-selected":{color:Yo,backgroundColor:Zo,"&:hover":{backgroundColor:Zo},"&::after":{borderBottomWidth:tt,borderBottomColor:Yo}}}}),[`&${Qe}-root`]:{[`&${Qe}-inline, &${Qe}-vertical`]:{borderInlineEnd:`${hn}px ${yt} ${Nn}`}},[`&${Qe}-inline`]:{[`${Qe}-sub${Qe}-inline`]:{background:wt},[`${Qe}-item, ${Qe}-submenu-title`]:hn&&fn?{width:`calc(100% + ${hn}px)`}:{},[`${Qe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${fn}px solid ${Rt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${An} ${rt}`,`opacity ${An} ${rt}`].join(","),content:'""'},[`&${Qe}-item-danger`]:{"&::after":{borderInlineEndColor:or}}},[`${Qe}-selected, ${Qe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${An} ${no}`,`opacity ${An} ${no}`].join(",")}}}}}};const on=Gt=>{const{componentCls:Je,itemHeight:Qe,itemMarginInline:_t,padding:Rt,menuArrowSize:Yt,marginXS:gt,itemMarginBlock:wt}=Gt,Dt=Rt+Yt+gt;return{[`${Je}-item`]:{position:"relative",overflow:"hidden"},[`${Je}-item, ${Je}-submenu-title`]:{height:Qe,lineHeight:`${Qe}px`,paddingInline:Rt,overflow:"hidden",textOverflow:"ellipsis",marginInline:_t,marginBlock:wt,width:`calc(100% - ${_t*2}px)`},[`> ${Je}-item, > ${Je}-submenu > ${Je}-submenu-title`]:{height:Qe,lineHeight:`${Qe}px`},[`${Je}-item-group-list ${Je}-submenu-title, ${Je}-submenu-title`]:{paddingInlineEnd:Dt}}};var lt=Gt=>{const{componentCls:Je,iconCls:Qe,itemHeight:_t,colorTextLightSolid:Rt,dropdownWidth:Yt,controlHeightLG:gt,motionDurationMid:wt,motionEaseOut:Dt,paddingXL:tt,itemMarginInline:fn,fontSizeLG:hn,motionDurationSlow:$n,paddingXS:no,boxShadowSecondary:rt,collapsedWidth:vt,collapsedIconSize:An}=Gt,Zt={height:_t,lineHeight:`${_t}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Je]:{"&-inline, &-vertical":Object.assign({[`&${Je}-root`]:{boxShadow:"none"}},on(Gt))},[`${Je}-submenu-popup`]:{[`${Je}-vertical`]:Object.assign(Object.assign({},on(Gt)),{boxShadow:rt})}},{[`${Je}-submenu-popup ${Je}-vertical${Je}-sub`]:{minWidth:Yt,maxHeight:`calc(100vh - ${gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Je}-inline`]:{width:"100%",[`&${Je}-root`]:{[`${Je}-item, ${Je}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${$n}`,`background ${$n}`,`padding ${wt} ${Dt}`].join(","),[`> ${Je}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Je}-sub${Je}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Je}-submenu > ${Je}-submenu-title`]:Zt,[`& ${Je}-item-group-title`]:{paddingInlineStart:tt}},[`${Je}-item`]:Zt}},{[`${Je}-inline-collapsed`]:{width:vt,[`&${Je}-root`]:{[`${Je}-item, ${Je}-submenu ${Je}-submenu-title`]:{[`> ${Je}-inline-collapsed-noicon`]:{fontSize:hn,textAlign:"center"}}},[`> ${Je}-item, > ${Je}-item-group > ${Je}-item-group-list > ${Je}-item, > ${Je}-item-group > ${Je}-item-group-list > ${Je}-submenu > ${Je}-submenu-title, > ${Je}-submenu > ${Je}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${hn/2}px - ${fn}px)`,textOverflow:"clip",[` ${Je}-submenu-arrow, ${Je}-submenu-expand-icon `]:{opacity:0},[`${Je}-item-icon, ${Qe}`]:{margin:0,fontSize:An,lineHeight:`${_t}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Je}-item-icon, ${Qe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Je}-item-icon, ${Qe}`]:{display:"none"},"a, a:hover":{color:Rt}},[`${Je}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:no})}}]};const xt=Gt=>{const{componentCls:Je,motionDurationSlow:Qe,motionDurationMid:_t,motionEaseInOut:Rt,motionEaseOut:Yt,iconCls:gt,iconSize:wt,iconMarginInlineEnd:Dt}=Gt;return{[`${Je}-item, ${Je}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Qe}`,`background ${Qe}`,`padding ${Qe} ${Rt}`].join(","),[`${Je}-item-icon, ${gt}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${_t} ${Yt}`,`margin ${Qe} ${Rt}`,`color ${Qe}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${Qe} ${Rt}`,`margin ${Qe}`,`color ${Qe}`].join(",")}},[`${Je}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${Je}-item-only-child`]:{[`> ${gt}, > ${Je}-item-icon`]:{marginInlineEnd:0}}},[`${Je}-item-disabled, ${Je}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Je}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jt=Gt=>{const{componentCls:Je,motionDurationSlow:Qe,motionEaseInOut:_t,borderRadius:Rt,menuArrowSize:Yt,menuArrowOffset:gt}=Gt;return{[`${Je}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Gt.margin,width:Yt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Qe} ${_t}, opacity ${Qe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Yt*.6,height:Yt*.15,backgroundColor:"currentcolor",borderRadius:Rt,transition:[`background ${Qe} ${_t}`,`transform ${Qe} ${_t}`,`top ${Qe} ${_t}`,`color ${Qe} ${_t}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${gt})`},"&::after":{transform:`rotate(-45deg) translateY(${gt})`}}}}},Vt=Gt=>{const{antCls:Je,componentCls:Qe,fontSize:_t,motionDurationSlow:Rt,motionDurationMid:Yt,motionEaseInOut:gt,paddingXS:wt,padding:Dt,colorSplit:tt,lineWidth:fn,zIndexPopup:hn,borderRadiusLG:$n,subMenuItemBorderRadius:no,menuArrowSize:rt,menuArrowOffset:vt,lineType:An,menuPanelMaskInset:Zt,groupTitleLineHeight:yt,groupTitleFontSize:Nn}=Gt;return[{"":{[`${Qe}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Qe}-submenu-hidden`]:{display:"none"}},{[Qe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Gt)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_t,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Rt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Qe}-item`]:{flex:"none"}},[`${Qe}-item, ${Qe}-submenu, ${Qe}-submenu-title`]:{borderRadius:Gt.itemBorderRadius},[`${Qe}-item-group-title`]:{padding:`${wt}px ${Dt}px`,fontSize:Nn,lineHeight:yt,transition:`all ${Rt}`},[`&-horizontal ${Qe}-submenu`]:{transition:[`border-color ${Rt} ${gt}`,`background ${Rt} ${gt}`].join(",")},[`${Qe}-submenu, ${Qe}-submenu-inline`]:{transition:[`border-color ${Rt} ${gt}`,`background ${Rt} ${gt}`,`padding ${Yt} ${gt}`].join(",")},[`${Qe}-submenu ${Qe}-sub`]:{cursor:"initial",transition:[`background ${Rt} ${gt}`,`padding ${Rt} ${gt}`].join(",")},[`${Qe}-title-content`]:{transition:`color ${Rt}`},[`${Qe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Qe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:tt,borderStyle:An,borderWidth:0,borderTopWidth:fn,marginBlock:fn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(Gt)),{[`${Qe}-item-group`]:{[`${Qe}-item-group-list`]:{margin:0,padding:0,[`${Qe}-item, ${Qe}-submenu-title`]:{paddingInline:`${_t*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:hn,borderRadius:$n,boxShadow:"none",transformOrigin:"0 0",[`&${Qe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Zt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Zt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Gt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Gt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Gt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Gt.paddingXS},[`> ${Qe}`]:Object.assign(Object.assign(Object.assign({borderRadius:$n},xt(Gt)),Jt(Gt)),{[`${Qe}-item, ${Qe}-submenu > ${Qe}-submenu-title`]:{borderRadius:no},[`${Qe}-submenu-title::after`]:{transition:`transform ${Rt} ${gt}`}})}}),Jt(Gt)),{[`&-inline-collapsed ${Qe}-submenu-arrow, &-inline ${Qe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${vt})`},"&::after":{transform:`rotate(45deg) translateX(-${vt})`}},[`${Qe}-submenu-open${Qe}-submenu-inline > ${Qe}-submenu-title > ${Qe}-submenu-arrow`]:{transform:`translateY(-${rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${vt})`},"&::before":{transform:`rotate(45deg) translateX(${vt})`}}})},{[`${Je}-layout-header`]:{[Qe]:{lineHeight:"inherit"}}}]};var xn=(Gt,Je)=>(0,mt.Z)("Menu",_t=>{if(Je===!1)return[];const{colorBgElevated:Rt,colorPrimary:Yt,colorTextLightSolid:gt,controlHeightLG:wt,fontSize:Dt,darkItemColor:tt,darkDangerItemColor:fn,darkItemBg:hn,darkSubMenuItemBg:$n,darkItemSelectedColor:no,darkItemSelectedBg:rt,darkDangerItemSelectedBg:vt,darkItemHoverBg:An,darkGroupTitleColor:Zt,darkItemHoverColor:yt,darkItemDisabledColor:Nn,darkDangerItemHoverColor:Xt,darkDangerItemSelectedColor:qn,darkDangerItemActiveBg:Br}=_t,or=Dt/7*5,Gn=(0,Ae.TS)(_t,{menuArrowSize:or,menuHorizontalHeight:wt*1.15,menuArrowOffset:`${or*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Rt}),ir=(0,Ae.TS)(Gn,{itemColor:tt,itemHoverColor:yt,groupTitleColor:Zt,itemSelectedColor:no,itemBg:hn,popupBg:hn,subMenuItemBg:$n,itemActiveBg:"transparent",itemSelectedBg:rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:An,itemDisabledColor:Nn,dangerItemColor:fn,dangerItemHoverColor:Xt,dangerItemSelectedColor:qn,dangerItemActiveBg:Br,dangerItemSelectedBg:vt,menuSubMenuBg:$n,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:Yt});return[Vt(Gn),Be(Gn),lt(Gn),nn(Gn,"light"),nn(ir,"dark"),Ke(Gn),(0,Me.Z)(Gn),(0,ut.oN)(Gn,"slide-up"),(0,ut.oN)(Gn,"slide-down"),(0,Xe._y)(Gn,"zoom-big")]},_t=>{const{colorPrimary:Rt,colorError:Yt,colorTextDisabled:gt,colorErrorBg:wt,colorText:Dt,colorTextDescription:tt,colorBgContainer:fn,colorFillAlter:hn,colorFillContent:$n,lineWidth:no,lineWidthBold:rt,controlItemBgActive:vt,colorBgTextHover:An,controlHeightLG:Zt,lineHeight:yt,colorBgElevated:Nn,marginXXS:Xt,padding:qn,fontSize:Br,controlHeightSM:or,fontSizeLG:Gn,colorTextLightSolid:ir,colorErrorHover:So}=_t,On=new we.C(ir).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_t.zIndexPopupBase+50,radiusItem:_t.borderRadiusLG,itemBorderRadius:_t.borderRadiusLG,radiusSubMenuItem:_t.borderRadiusSM,subMenuItemBorderRadius:_t.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Rt,horizontalItemHoverColor:Rt,colorGroupTitle:tt,groupTitleColor:tt,colorItemTextSelected:Rt,itemSelectedColor:Rt,colorItemTextSelectedHorizontal:Rt,horizontalItemSelectedColor:Rt,colorItemBg:fn,itemBg:fn,colorItemBgHover:An,itemHoverBg:An,colorItemBgActive:$n,itemActiveBg:vt,colorSubItemBg:hn,subMenuItemBg:hn,colorItemBgSelected:vt,itemSelectedBg:vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:rt,activeBarHeight:rt,colorActiveBarBorderSize:no,activeBarBorderWidth:no,colorItemTextDisabled:gt,itemDisabledColor:gt,colorDangerItemText:Yt,dangerItemColor:Yt,colorDangerItemTextHover:Yt,dangerItemHoverColor:Yt,colorDangerItemTextSelected:Yt,dangerItemSelectedColor:Yt,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:_t.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Zt,groupTitleLineHeight:yt,collapsedWidth:Zt*2,popupBg:Nn,itemMarginBlock:Xt,itemPaddingInline:qn,horizontalLineHeight:`${Zt*1.15}px`,iconSize:Br,iconMarginInlineEnd:or-Br,collapsedIconSize:Gn,groupTitleFontSize:Br,darkItemDisabledColor:new we.C(ir).setAlpha(.25).toRgbString(),darkItemColor:On,darkDangerItemColor:Yt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ir,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:Yt,darkItemHoverBg:"transparent",darkGroupTitleColor:On,darkItemHoverColor:ir,darkDangerItemHoverColor:So,darkDangerItemSelectedColor:ir,darkDangerItemActiveBg:Yt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Gt),He=function(Gt,Je){var Qe={};for(var _t in Gt)Object.prototype.hasOwnProperty.call(Gt,_t)&&Je.indexOf(_t)<0&&(Qe[_t]=Gt[_t]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,_t=Object.getOwnPropertySymbols(Gt);Rt<_t.length;Rt++)Je.indexOf(_t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_t[Rt])&&(Qe[_t[Rt]]=Gt[_t[Rt]]);return Qe},kn=(0,fe.forwardRef)((Gt,Je)=>{var Qe,_t;const Rt=fe.useContext(ce.Z),Yt=Rt||{},{getPrefixCls:gt,getPopupContainer:wt,direction:Dt,menu:tt}=fe.useContext(pe.E_),fn=gt(),{prefixCls:hn,className:$n,style:no,theme:rt="light",expandIcon:vt,_internalDisableMenuItemTitleTooltip:An,inlineCollapsed:Zt,siderCollapsed:yt,items:Nn,children:Xt,rootClassName:qn,mode:Br,selectable:or,onClick:Gn,overflowedIndicatorPopupClassName:ir}=Gt,So=He(Gt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),On=(0,se.Z)(So,["collapsedWidth"]),qr=xe(Nn)||Xt;(Qe=Yt.validator)===null||Qe===void 0||Qe.call(Yt,{mode:Br});const Yo=(0,oe.useEvent)(function(){var co;Gn==null||Gn.apply(void 0,arguments),(co=Yt.onClick)===null||co===void 0||co.call(Yt)}),Zo=Yt.mode||Br,qo=or!=null?or:Yt.selectable,yr=fe.useMemo(()=>yt!==void 0?yt:Zt,[Zt,yt]),xo={horizontal:{motionName:`${fn}-slide-up`},inline:(0,ae.Z)(fn),other:{motionName:`${fn}-zoom-big`}},Wo=gt("menu",hn||Yt.prefixCls),[Wi,$i]=xn(Wo,!Rt),Ci=he()(`${Wo}-${rt}`,tt==null?void 0:tt.className,$n);let ei;if(typeof vt=="function")ei=vt;else if(vt===null||vt===!1)ei=null;else if(Yt.expandIcon===null||Yt.expandIcon===!1)ei=null;else{const co=vt!=null?vt:Yt.expandIcon;ei=(0,re.Tm)(co,{className:he()(`${Wo}-submenu-expand-icon`,(0,re.l$)(co)?(_t=co.props)===null||_t===void 0?void 0:_t.className:"")})}const po=fe.useMemo(()=>({prefixCls:Wo,inlineCollapsed:yr||!1,direction:Dt,firstLevel:!0,theme:rt,mode:Zo,disableMenuItemTitleTooltip:An}),[Wo,yr,Dt,An,rt]);return Wi(fe.createElement(ce.Z.Provider,{value:null},fe.createElement(a.Provider,{value:po},fe.createElement(z.ZP,Object.assign({getPopupContainer:wt,overflowedIndicator:fe.createElement(ee.Z,null),overflowedIndicatorPopupClassName:he()(Wo,`${Wo}-${rt}`,ir),mode:Zo,selectable:qo,onClick:Yo},On,{inlineCollapsed:yr,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),no),className:Ci,prefixCls:Wo,direction:Dt,defaultMotions:xo,expandIcon:ei,ref:Je,rootClassName:he()(qn,$i)}),qr))))});const nr=(0,fe.forwardRef)((Gt,Je)=>{const Qe=(0,fe.useRef)(null),_t=fe.useContext(Pe.D);return(0,fe.useImperativeHandle)(Je,()=>({menu:Qe.current,focus:Rt=>{var Yt;(Yt=Qe.current)===null||Yt===void 0||Yt.focus(Rt)}})),fe.createElement(kn,Object.assign({ref:Qe},Gt,_t))});nr.Item=E,nr.SubMenu=x,nr.Divider=le,nr.ItemGroup=z.BW;var Ln=nr},34435:function(at,We,te){"use strict";te.d(We,{Z:function(){return no}});var z=te(87462),fe=te(67294),Pe={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"},ve=Pe,he=te(44327),pe=function(vt,An){return fe.createElement(he.Z,(0,z.Z)({},vt,{ref:An,icon:ve}))},ie=fe.forwardRef(pe),de={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"},le=de,ue=function(vt,An){return fe.createElement(he.Z,(0,z.Z)({},vt,{ref:An,icon:le}))},se=fe.forwardRef(ue),me=te(55007),re=te(79269),ne=te(94184),a=te.n(ne),y=te(4942),E=te(1413),b=te(15671),x=te(43144),ee=te(60136),oe=te(51630),ae=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,ce=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Se="".concat(ae," ").concat(ce).split(/[\s\n]+/),_e="aria-",xe="data-";function we(rt,vt){return rt.indexOf(vt)===0}function Fe(rt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An;vt===!1?An={aria:!0,data:!0,attr:!0}:vt===!0?An={aria:!0}:An=(0,E.Z)({},vt);var Zt={};return Object.keys(rt).forEach(function(yt){(An.aria&&(yt==="role"||we(yt,_e))||An.data&&we(yt,xe)||An.attr&&Se.includes(yt))&&(Zt[yt]=rt[yt])}),Zt}var Me={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ut=Me,Xe=te(81626),mt=function(rt){(0,ee.Z)(An,rt);var vt=(0,oe.Z)(An);function An(){var Zt;(0,b.Z)(this,An);for(var yt=arguments.length,Nn=new Array(yt),Xt=0;Xt=0||qn.relatedTarget.className.indexOf("".concat(ir,"-item"))>=0))&&Gn(Zt.getValidValue()))},Zt.go=function(qn){var Br=Zt.state.goInputText;Br!==""&&(qn.keyCode===ut.ENTER||qn.type==="click")&&(Zt.setState({goInputText:""}),Zt.props.quickGo(Zt.getValidValue()))},Zt}return(0,x.Z)(An,[{key:"getPageSizeOptions",value:function(){var yt=this.props,Nn=yt.pageSize,Xt=yt.pageSizeOptions;return Xt.some(function(qn){return qn.toString()===Nn.toString()})?Xt:Xt.concat([Nn.toString()]).sort(function(qn,Br){var or=Number.isNaN(Number(qn))?0:Number(qn),Gn=Number.isNaN(Number(Br))?0:Number(Br);return or-Gn})}},{key:"render",value:function(){var yt=this,Nn=this.props,Xt=Nn.pageSize,qn=Nn.locale,Br=Nn.rootPrefixCls,or=Nn.changeSize,Gn=Nn.quickGo,ir=Nn.goButton,So=Nn.selectComponentClass,On=Nn.buildOptionText,qr=Nn.selectPrefixCls,Yo=Nn.disabled,Zo=this.state.goInputText,qo="".concat(Br,"-options"),yr=So,xo=null,Wo=null,Wi=null;if(!or&&!Gn)return null;var $i=this.getPageSizeOptions();if(or&&yr){var Ci=$i.map(function(ei,po){return fe.createElement(yr.Option,{key:po,value:ei.toString()},(On||yt.buildOptionText)(ei))});xo=fe.createElement(yr,{disabled:Yo,prefixCls:qr,showSearch:!1,className:"".concat(qo,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Xt||$i[0]).toString(),onChange:this.changeSize,getPopupContainer:function(po){return po.parentNode},"aria-label":qn.page_size,defaultOpen:!1},Ci)}return Gn&&(ir&&(Wi=typeof ir=="boolean"?fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yo,className:"".concat(qo,"-quick-jumper-button")},qn.jump_to_confirm):fe.createElement("span",{onClick:this.go,onKeyUp:this.go},ir)),Wo=fe.createElement("div",{className:"".concat(qo,"-quick-jumper")},qn.jump_to,fe.createElement("input",{disabled:Yo,type:"text",value:Zo,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":qn.page}),qn.page,Wi)),fe.createElement("li",{className:"".concat(qo)},xo,Wo)}}]),An}(fe.Component);mt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ae=mt,De=function(vt){var An,Zt=vt.rootPrefixCls,yt=vt.page,Nn=vt.active,Xt=vt.className,qn=vt.showTitle,Br=vt.onClick,or=vt.onKeyPress,Gn=vt.itemRender,ir="".concat(Zt,"-item"),So=a()(ir,"".concat(ir,"-").concat(yt),(An={},(0,y.Z)(An,"".concat(ir,"-active"),Nn),(0,y.Z)(An,"".concat(ir,"-disabled"),!yt),(0,y.Z)(An,vt.className,Xt),An)),On=function(){Br(yt)},qr=function(qo){or(qo,Br,yt)},Yo=Gn(yt,"page",fe.createElement("a",{rel:"nofollow"},yt));return Yo?fe.createElement("li",{title:qn?yt.toString():null,className:So,onClick:On,onKeyPress:qr,tabIndex:0},Yo):null},Be=De;function nt(){}function Ke(rt){var vt=Number(rt);return typeof vt=="number"&&!Number.isNaN(vt)&&isFinite(vt)&&Math.floor(vt)===vt}var Et=function(vt,An,Zt){return Zt};function Ct(rt,vt,An){var Zt=typeof rt=="undefined"?vt.pageSize:rt;return Math.floor((An.total-1)/Zt)+1}var nn=function(rt){(0,ee.Z)(An,rt);var vt=(0,oe.Z)(An);function An(Zt){var yt;(0,b.Z)(this,An),yt=vt.call(this,Zt),yt.paginationNode=fe.createRef(),yt.getJumpPrevPage=function(){return Math.max(1,yt.state.current-(yt.props.showLessItems?3:5))},yt.getJumpNextPage=function(){return Math.min(Ct(void 0,yt.state,yt.props),yt.state.current+(yt.props.showLessItems?3:5))},yt.getItemIcon=function(or,Gn){var ir=yt.props.prefixCls,So=or||fe.createElement("button",{type:"button","aria-label":Gn,className:"".concat(ir,"-item-link")});return typeof or=="function"&&(So=fe.createElement(or,(0,E.Z)({},yt.props))),So},yt.isValid=function(or){var Gn=yt.props.total;return Ke(or)&&or!==yt.state.current&&Ke(Gn)&&Gn>0},yt.shouldDisplayQuickJumper=function(){var or=yt.props,Gn=or.showQuickJumper,ir=or.total,So=yt.state.pageSize;return ir<=So?!1:Gn},yt.handleKeyDown=function(or){(or.keyCode===ut.ARROW_UP||or.keyCode===ut.ARROW_DOWN)&&or.preventDefault()},yt.handleKeyUp=function(or){var Gn=yt.getValidValue(or),ir=yt.state.currentInputValue;Gn!==ir&&yt.setState({currentInputValue:Gn}),or.keyCode===ut.ENTER?yt.handleChange(Gn):or.keyCode===ut.ARROW_UP?yt.handleChange(Gn-1):or.keyCode===ut.ARROW_DOWN&&yt.handleChange(Gn+1)},yt.handleBlur=function(or){var Gn=yt.getValidValue(or);yt.handleChange(Gn)},yt.changePageSize=function(or){var Gn=yt.state.current,ir=Ct(or,yt.state,yt.props);Gn=Gn>ir?ir:Gn,ir===0&&(Gn=yt.state.current),typeof or=="number"&&("pageSize"in yt.props||yt.setState({pageSize:or}),"current"in yt.props||yt.setState({current:Gn,currentInputValue:Gn})),yt.props.onShowSizeChange(Gn,or),"onChange"in yt.props&&yt.props.onChange&&yt.props.onChange(Gn,or)},yt.handleChange=function(or){var Gn=yt.props,ir=Gn.disabled,So=Gn.onChange,On=yt.state,qr=On.pageSize,Yo=On.current,Zo=On.currentInputValue;if(yt.isValid(or)&&!ir){var qo=Ct(void 0,yt.state,yt.props),yr=or;return or>qo?yr=qo:or<1&&(yr=1),"current"in yt.props||yt.setState({current:yr}),yr!==Zo&&yt.setState({currentInputValue:yr}),So(yr,qr),yr}return Yo},yt.prev=function(){yt.hasPrev()&&yt.handleChange(yt.state.current-1)},yt.next=function(){yt.hasNext()&&yt.handleChange(yt.state.current+1)},yt.jumpPrev=function(){yt.handleChange(yt.getJumpPrevPage())},yt.jumpNext=function(){yt.handleChange(yt.getJumpNextPage())},yt.hasPrev=function(){return yt.state.current>1},yt.hasNext=function(){return yt.state.current2?ir-2:0),On=2;On=Xt?Br=Xt:Br=Number(Nn),Br}},{key:"getShowSizeChanger",value:function(){var yt=this.props,Nn=yt.showSizeChanger,Xt=yt.total,qn=yt.totalBoundaryShowSizeChanger;return typeof Nn!="undefined"?Nn:Xt>qn}},{key:"render",value:function(){var yt=this.props,Nn=yt.prefixCls,Xt=yt.className,qn=yt.style,Br=yt.disabled,or=yt.hideOnSinglePage,Gn=yt.total,ir=yt.locale,So=yt.showQuickJumper,On=yt.showLessItems,qr=yt.showTitle,Yo=yt.showTotal,Zo=yt.simple,qo=yt.itemRender,yr=yt.showPrevNextJumpers,xo=yt.jumpPrevIcon,Wo=yt.jumpNextIcon,Wi=yt.selectComponentClass,$i=yt.selectPrefixCls,Ci=yt.pageSizeOptions,ei=this.state,po=ei.current,co=ei.pageSize,Ta=ei.currentInputValue;if(or===!0&&Gn<=co)return null;var yn=Ct(void 0,this.state,this.props),ge=[],ye=null,be=null,Le=null,Ne=null,et=null,ct=So&&So.goButton,_n=On?1:2,rn=po-1>0?po-1:0,In=po+1Gn?Gn:po*co]));if(Zo){ct&&(typeof ct=="boolean"?et=fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ir.jump_to_confirm):et=fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ct),et=fe.createElement("li",{title:qr?"".concat(ir.jump_to).concat(po,"/").concat(yn):null,className:"".concat(Nn,"-simple-pager")},et));var Mt=this.renderPrev(rn);return fe.createElement("ul",(0,z.Z)({className:a()(Nn,"".concat(Nn,"-simple"),(0,y.Z)({},"".concat(Nn,"-disabled"),Br),Xt),style:qn,ref:this.paginationNode},pr),_r,Mt?fe.createElement("li",{title:qr?ir.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Nn,"-prev"),(0,y.Z)({},"".concat(Nn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Mt):null,fe.createElement("li",{title:qr?"".concat(po,"/").concat(yn):null,className:"".concat(Nn,"-simple-pager")},fe.createElement("input",{type:"text",value:Ta,disabled:Br,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),fe.createElement("span",{className:"".concat(Nn,"-slash")},"/"),yn),fe.createElement("li",{title:qr?ir.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(Nn,"-next"),(0,y.Z)({},"".concat(Nn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(In)),et)}if(yn<=3+_n*2){var ur={locale:ir,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:qr,itemRender:qo};yn||ge.push(fe.createElement(Be,(0,z.Z)({},ur,{key:"noPager",page:1,className:"".concat(Nn,"-item-disabled")})));for(var er=1;er<=yn;er+=1){var Tn=po===er;ge.push(fe.createElement(Be,(0,z.Z)({},ur,{key:er,page:er,active:Tn})))}}else{var Un=On?ir.prev_3:ir.prev_5,sr=On?ir.next_3:ir.next_5,Zr=qo(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(xo,"prev page")),xr=qo(this.getJumpNextPage(),"jump-next",this.getItemIcon(Wo,"next page"));yr&&(ye=Zr?fe.createElement("li",{title:qr?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(Nn,"-jump-prev"),(0,y.Z)({},"".concat(Nn,"-jump-prev-custom-icon"),!!xo))},Zr):null,be=xr?fe.createElement("li",{title:qr?sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(Nn,"-jump-next"),(0,y.Z)({},"".concat(Nn,"-jump-next-custom-icon"),!!Wo))},xr):null),Ne=fe.createElement(Be,{locale:ir,last:!0,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:!1,showTitle:qr,itemRender:qo}),Le=fe.createElement(Be,{locale:ir,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:qr,itemRender:qo});var Gi=Math.max(1,po-_n),Xo=Math.min(po+_n,yn);po-1<=_n&&(Xo=1+_n*2),yn-po<=_n&&(Gi=yn-_n*2);for(var br=Gi;br<=Xo;br+=1){var _o=po===br;ge.push(fe.createElement(Be,{locale:ir,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:br,page:br,active:_o,showTitle:qr,itemRender:qo}))}po-1>=_n*2&&po!==3&&(ge[0]=(0,fe.cloneElement)(ge[0],{className:"".concat(Nn,"-item-after-jump-prev")}),ge.unshift(ye)),yn-po>=_n*2&&po!==yn-2&&(ge[ge.length-1]=(0,fe.cloneElement)(ge[ge.length-1],{className:"".concat(Nn,"-item-before-jump-next")}),ge.push(be)),Gi!==1&&ge.unshift(Le),Xo!==yn&&ge.push(Ne)}var wi=!this.hasPrev()||!yn,ti=!this.hasNext()||!yn,hi=this.renderPrev(rn),pn=this.renderNext(In);return fe.createElement("ul",(0,z.Z)({className:a()(Nn,Xt,(0,y.Z)({},"".concat(Nn,"-disabled"),Br)),style:qn,ref:this.paginationNode},pr),_r,hi?fe.createElement("li",{title:qr?ir.prev_page:null,onClick:this.prev,tabIndex:wi?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Nn,"-prev"),(0,y.Z)({},"".concat(Nn,"-disabled"),wi)),"aria-disabled":wi},hi):null,ge,pn?fe.createElement("li",{title:qr?ir.next_page:null,onClick:this.next,tabIndex:ti?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(Nn,"-next"),(0,y.Z)({},"".concat(Nn,"-disabled"),ti)),"aria-disabled":ti},pn):null,fe.createElement(Ae,{disabled:Br,locale:ir,rootPrefixCls:Nn,selectComponentClass:Wi,selectPrefixCls:$i,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:po,pageSize:co,pageSizeOptions:Ci,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ct}))}}],[{key:"getDerivedStateFromProps",value:function(yt,Nn){var Xt={};if("current"in yt&&(Xt.current=yt.current,yt.current!==Nn.current&&(Xt.currentInputValue=Xt.current)),"pageSize"in yt&&yt.pageSize!==Nn.pageSize){var qn=Nn.current,Br=Ct(yt.pageSize,Nn,yt);qn=qn>Br?Br:qn,"current"in yt||(Xt.current=qn,Xt.currentInputValue=qn),Xt.pageSize=yt.pageSize}return Xt}}]),An}(fe.Component);nn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:nt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:nt,locale:Xe.Z,style:{},itemRender:Et,totalBoundaryShowSizeChanger:50};var on=nn,it=te(62906),lt=te(53124),xt=te(98675),Jt=te(25378),Vt=te(10110),xn=te(42563);const He=rt=>fe.createElement(xn.default,Object.assign({},rt,{showSearch:!0,size:"small"})),un=rt=>fe.createElement(xn.default,Object.assign({},rt,{showSearch:!0,size:"middle"}));He.Option=xn.default.Option,un.Option=xn.default.Option;var kn=te(47673),nr=te(14747),Ln=te(67968),Gt=te(45503);const Je=rt=>{const{componentCls:vt}=rt;return{[`${vt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${vt}-item-link`]:{color:rt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${vt}-item-link`]:{color:rt.colorTextDisabled,cursor:"not-allowed"}}},[`&${vt}-disabled`]:{cursor:"not-allowed",[`${vt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:rt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:rt.colorBorder,backgroundColor:rt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:rt.itemActiveBgDisabled},a:{color:rt.itemActiveColorDisabled}}},[`${vt}-item-link`]:{color:rt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${vt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${vt}-simple-pager`]:{color:rt.colorTextDisabled},[`${vt}-jump-prev, ${vt}-jump-next`]:{[`${vt}-item-link-icon`]:{opacity:0},[`${vt}-item-ellipsis`]:{opacity:1}}},[`&${vt}-simple`]:{[`${vt}-prev, ${vt}-next`]:{[`&${vt}-disabled ${vt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Qe=rt=>{const{componentCls:vt}=rt;return{[`&${vt}-mini ${vt}-total-text, &${vt}-mini ${vt}-simple-pager`]:{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`},[`&${vt}-mini ${vt}-item`]:{minWidth:rt.itemSizeSM,height:rt.itemSizeSM,margin:0,lineHeight:`${rt.itemSizeSM-2}px`},[`&${vt}-mini:not(${vt}-disabled) ${vt}-item:not(${vt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:rt.colorBgTextHover},"&:active":{backgroundColor:rt.colorBgTextActive}},[`&${vt}-mini ${vt}-prev, &${vt}-mini ${vt}-next`]:{minWidth:rt.itemSizeSM,height:rt.itemSizeSM,margin:0,lineHeight:`${rt.itemSizeSM}px`},[`&${vt}-mini:not(${vt}-disabled)`]:{[`${vt}-prev, ${vt}-next`]:{[`&:hover ${vt}-item-link`]:{backgroundColor:rt.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:rt.colorBgTextActive},[`&${vt}-disabled:hover ${vt}-item-link`]:{backgroundColor:"transparent"}}},[` &${vt}-mini ${vt}-prev ${vt}-item-link, &${vt}-mini ${vt}-next ${vt}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`}},[`&${vt}-mini ${vt}-jump-prev, &${vt}-mini ${vt}-jump-next`]:{height:rt.itemSizeSM,marginInlineEnd:0,lineHeight:`${rt.itemSizeSM}px`},[`&${vt}-mini ${vt}-options`]:{marginInlineStart:rt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:rt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,kn.x0)(rt)),{width:rt.paginationMiniQuickJumperInputWidth,height:rt.controlHeightSM})}}}},_t=rt=>{const{componentCls:vt}=rt;return{[` &${vt}-simple ${vt}-prev, &${vt}-simple ${vt}-next `]:{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`,verticalAlign:"top",[`${vt}-item-link`]:{height:rt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:rt.colorBgTextHover},"&:active":{backgroundColor:rt.colorBgTextActive},"&::after":{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`}}},[`&${vt}-simple ${vt}-simple-pager`]:{display:"inline-block",height:rt.itemSizeSM,marginInlineEnd:rt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:rt.marginXS,padding:`0 ${rt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:rt.itemInputBg,border:`${rt.lineWidth}px ${rt.lineType} ${rt.colorBorder}`,borderRadius:rt.borderRadius,outline:"none",transition:`border-color ${rt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:rt.colorPrimary},"&:focus":{borderColor:rt.colorPrimaryHover,boxShadow:`${rt.inputOutlineOffset}px 0 ${rt.controlOutlineWidth}px ${rt.controlOutline}`},"&[disabled]":{color:rt.colorTextDisabled,backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,cursor:"not-allowed"}}}}},Rt=rt=>{const{componentCls:vt}=rt;return{[`${vt}-jump-prev, ${vt}-jump-next`]:{outline:0,[`${vt}-item-container`]:{position:"relative",[`${vt}-item-link-icon`]:{color:rt.colorPrimary,fontSize:rt.fontSizeSM,opacity:0,transition:`all ${rt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${vt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:rt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:rt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:rt.paginationEllipsisTextIndent,opacity:1,transition:`all ${rt.motionDurationMid}`}},"&:hover":{[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}}},[` ${vt}-prev, ${vt}-jump-prev, ${vt}-jump-next `]:{marginInlineEnd:rt.marginXS},[` ${vt}-prev, ${vt}-next, ${vt}-jump-prev, ${vt}-jump-next `]:{display:"inline-block",minWidth:rt.itemSize,height:rt.itemSize,color:rt.colorText,fontFamily:rt.fontFamily,lineHeight:`${rt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:rt.borderRadius,cursor:"pointer",transition:`all ${rt.motionDurationMid}`},[`${vt}-prev, ${vt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:rt.colorText,cursor:"pointer",userSelect:"none"},[`${vt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:rt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${rt.lineWidth}px ${rt.lineType} transparent`,borderRadius:rt.borderRadius,outline:"none",transition:`all ${rt.motionDurationMid}`},[`&:hover ${vt}-item-link`]:{backgroundColor:rt.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:rt.colorBgTextActive},[`&${vt}-disabled:hover`]:{[`${vt}-item-link`]:{backgroundColor:"transparent"}}},[`${vt}-slash`]:{marginInlineEnd:rt.paginationSlashMarginInlineEnd,marginInlineStart:rt.paginationSlashMarginInlineStart},[`${vt}-options`]:{display:"inline-block",marginInlineStart:rt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:rt.controlHeight,marginInlineStart:rt.marginXS,lineHeight:`${rt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,kn.ik)(rt)),{width:rt.controlHeightLG*1.25,height:rt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:rt.marginXS,marginInlineEnd:rt.marginXS})}}}},Yt=rt=>{const{componentCls:vt}=rt;return{[`${vt}-item`]:{display:"inline-block",minWidth:rt.itemSize,height:rt.itemSize,marginInlineEnd:rt.marginXS,fontFamily:rt.fontFamily,lineHeight:`${rt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${rt.lineWidth}px ${rt.lineType} transparent`,borderRadius:rt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${rt.paginationItemPaddingInline}px`,color:rt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${vt}-item-active)`]:{"&:hover":{transition:`all ${rt.motionDurationMid}`,backgroundColor:rt.colorBgTextHover},"&:active":{backgroundColor:rt.colorBgTextActive}},"&-active":{fontWeight:rt.fontWeightStrong,backgroundColor:rt.itemActiveBg,borderColor:rt.colorPrimary,a:{color:rt.colorPrimary},"&:hover":{borderColor:rt.colorPrimaryHover},"&:hover a":{color:rt.colorPrimaryHover}}}}},gt=rt=>{const{componentCls:vt}=rt;return{[vt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nr.Wf)(rt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${vt}-total-text`]:{display:"inline-block",height:rt.itemSize,marginInlineEnd:rt.marginXS,lineHeight:`${rt.itemSize-2}px`,verticalAlign:"middle"}}),Yt(rt)),Rt(rt)),_t(rt)),Qe(rt)),Je(rt)),{[`@media only screen and (max-width: ${rt.screenLG}px)`]:{[`${vt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${rt.screenSM}px)`]:{[`${vt}-options`]:{display:"none"}}}),[`&${rt.componentCls}-rtl`]:{direction:"rtl"}}},wt=rt=>{const{componentCls:vt}=rt;return{[`${vt}${vt}-disabled:not(${vt}-mini)`]:{"&, &:hover":{[`${vt}-item-link`]:{borderColor:rt.colorBorder}},"&:focus-visible":{[`${vt}-item-link`]:{borderColor:rt.colorBorder}},[`${vt}-item, ${vt}-item-link`]:{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,[`&:hover:not(${vt}-item-active)`]:{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,a:{color:rt.colorTextDisabled}},[`&${vt}-item-active`]:{backgroundColor:rt.itemActiveBgDisabled}},[`${vt}-prev, ${vt}-next`]:{"&:hover button":{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,color:rt.colorTextDisabled},[`${vt}-item-link`]:{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder}}},[`${vt}:not(${vt}-mini)`]:{[`${vt}-prev, ${vt}-next`]:{"&:hover button":{borderColor:rt.colorPrimaryHover,backgroundColor:rt.itemBg},[`${vt}-item-link`]:{backgroundColor:rt.itemLinkBg,borderColor:rt.colorBorder},[`&:hover ${vt}-item-link`]:{borderColor:rt.colorPrimary,backgroundColor:rt.itemBg,color:rt.colorPrimary},[`&${vt}-disabled`]:{[`${vt}-item-link`]:{borderColor:rt.colorBorder,color:rt.colorTextDisabled}}},[`${vt}-item`]:{backgroundColor:rt.itemBg,border:`${rt.lineWidth}px ${rt.lineType} ${rt.colorBorder}`,[`&:hover:not(${vt}-item-active)`]:{borderColor:rt.colorPrimary,backgroundColor:rt.itemBg,a:{color:rt.colorPrimary}},"&-active":{borderColor:rt.colorPrimary}}}}},Dt=rt=>{const{componentCls:vt}=rt;return{[`${vt}:not(${vt}-disabled)`]:{[`${vt}-item`]:Object.assign({},(0,nr.Qy)(rt)),[`${vt}-jump-prev, ${vt}-jump-next`]:{"&:focus-visible":Object.assign({[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}},(0,nr.oN)(rt))},[`${vt}-prev, ${vt}-next`]:{[`&:focus-visible ${vt}-item-link`]:Object.assign({},(0,nr.oN)(rt))}}}};var tt=(0,Ln.Z)("Pagination",rt=>{const vt=(0,Gt.TS)(rt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:rt.marginXXS/2,paginationMiniQuickJumperInputWidth:rt.controlHeightLG*1.1,paginationItemPaddingInline:rt.marginXXS*1.5,paginationEllipsisLetterSpacing:rt.marginXXS/2,paginationSlashMarginInlineStart:rt.marginXXS,paginationSlashMarginInlineEnd:rt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,kn.e5)(rt),(0,kn.TM)(rt));return[gt(vt),Dt(vt),rt.wireframe&&wt(vt)]},rt=>({itemBg:rt.colorBgContainer,itemSize:rt.controlHeight,itemSizeSM:rt.controlHeightSM,itemActiveBg:rt.colorBgContainer,itemLinkBg:rt.colorBgContainer,itemActiveColorDisabled:rt.colorTextDisabled,itemActiveBgDisabled:rt.controlItemBgActiveDisabled,itemInputBg:rt.colorBgContainer,miniOptionsSizeChangerTop:0})),fn=function(rt,vt){var An={};for(var Zt in rt)Object.prototype.hasOwnProperty.call(rt,Zt)&&vt.indexOf(Zt)<0&&(An[Zt]=rt[Zt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Zt=Object.getOwnPropertySymbols(rt);yt{const{prefixCls:vt,selectPrefixCls:An,className:Zt,rootClassName:yt,style:Nn,size:Xt,locale:qn,selectComponentClass:Br,responsive:or,showSizeChanger:Gn}=rt,ir=fn(rt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:So}=(0,Jt.Z)(or),{getPrefixCls:On,direction:qr,pagination:Yo={}}=fe.useContext(lt.E_),Zo=On("pagination",vt),[qo,yr]=tt(Zo),xo=Gn!=null?Gn:Yo.showSizeChanger,Wo=fe.useMemo(()=>{const yn=fe.createElement("span",{className:`${Zo}-item-ellipsis`},"\u2022\u2022\u2022"),ge=fe.createElement("button",{className:`${Zo}-item-link`,type:"button",tabIndex:-1},qr==="rtl"?fe.createElement(re.Z,null):fe.createElement(me.Z,null)),ye=fe.createElement("button",{className:`${Zo}-item-link`,type:"button",tabIndex:-1},qr==="rtl"?fe.createElement(me.Z,null):fe.createElement(re.Z,null)),be=fe.createElement("a",{className:`${Zo}-item-link`},fe.createElement("div",{className:`${Zo}-item-container`},qr==="rtl"?fe.createElement(se,{className:`${Zo}-item-link-icon`}):fe.createElement(ie,{className:`${Zo}-item-link-icon`}),yn)),Le=fe.createElement("a",{className:`${Zo}-item-link`},fe.createElement("div",{className:`${Zo}-item-container`},qr==="rtl"?fe.createElement(ie,{className:`${Zo}-item-link-icon`}):fe.createElement(se,{className:`${Zo}-item-link-icon`}),yn));return{prevIcon:ge,nextIcon:ye,jumpPrevIcon:be,jumpNextIcon:Le}},[qr,Zo]),[Wi]=(0,Vt.Z)("Pagination",it.Z),$i=Object.assign(Object.assign({},Wi),qn),Ci=(0,xt.Z)(Xt),ei=Ci==="small"||!!(So&&!Ci&&or),po=On("select",An),co=a()({[`${Zo}-mini`]:ei,[`${Zo}-rtl`]:qr==="rtl"},Yo==null?void 0:Yo.className,Zt,yt,yr),Ta=Object.assign(Object.assign({},Yo==null?void 0:Yo.style),Nn);return qo(fe.createElement(on,Object.assign({},Wo,ir,{style:Ta,prefixCls:Zo,selectPrefixCls:po,className:co,selectComponentClass:Br||(ei?He:un),locale:$i,showSizeChanger:xo})))},no=$n},4310:function(at,We,te){"use strict";te.d(We,{Z:function(){return Gt}});var z=te(94184),fe=te.n(z),Pe=te(67294),ve=te(53124),he=te(10366),ie=Je=>{const{prefixCls:Qe,className:_t,style:Rt,size:Yt,shape:gt}=Je,wt=fe()({[`${Qe}-lg`]:Yt==="large",[`${Qe}-sm`]:Yt==="small"}),Dt=fe()({[`${Qe}-circle`]:gt==="circle",[`${Qe}-square`]:gt==="square",[`${Qe}-round`]:gt==="round"}),tt=Pe.useMemo(()=>typeof Yt=="number"?{width:Yt,height:Yt,lineHeight:`${Yt}px`}:{},[Yt]);return Pe.createElement("span",{className:fe()(Qe,wt,Dt,_t),style:Object.assign(Object.assign({},tt),Rt)})},de=te(45930),le=te(67968),ue=te(45503);const se=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=Je=>({height:Je,lineHeight:`${Je}px`}),re=Je=>Object.assign({width:Je},me(Je)),ne=Je=>({background:Je.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:Je.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Je=>Object.assign({width:Je*5,minWidth:Je*5},me(Je)),y=Je=>{const{skeletonAvatarCls:Qe,gradientFromColor:_t,controlHeight:Rt,controlHeightLG:Yt,controlHeightSM:gt}=Je;return{[`${Qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t},re(Rt)),[`${Qe}${Qe}-circle`]:{borderRadius:"50%"},[`${Qe}${Qe}-lg`]:Object.assign({},re(Yt)),[`${Qe}${Qe}-sm`]:Object.assign({},re(gt))}},E=Je=>{const{controlHeight:Qe,borderRadiusSM:_t,skeletonInputCls:Rt,controlHeightLG:Yt,controlHeightSM:gt,gradientFromColor:wt}=Je;return{[`${Rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt,borderRadius:_t},a(Qe)),[`${Rt}-lg`]:Object.assign({},a(Yt)),[`${Rt}-sm`]:Object.assign({},a(gt))}},b=Je=>Object.assign({width:Je},me(Je)),x=Je=>{const{skeletonImageCls:Qe,imageSizeBase:_t,gradientFromColor:Rt,borderRadiusSM:Yt}=Je;return{[`${Qe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Rt,borderRadius:Yt},b(_t*2)),{[`${Qe}-path`]:{fill:"#bfbfbf"},[`${Qe}-svg`]:Object.assign(Object.assign({},b(_t)),{maxWidth:_t*4,maxHeight:_t*4}),[`${Qe}-svg${Qe}-svg-circle`]:{borderRadius:"50%"}}),[`${Qe}${Qe}-circle`]:{borderRadius:"50%"}}},ee=(Je,Qe,_t)=>{const{skeletonButtonCls:Rt}=Je;return{[`${_t}${Rt}-circle`]:{width:Qe,minWidth:Qe,borderRadius:"50%"},[`${_t}${Rt}-round`]:{borderRadius:Qe}}},oe=Je=>Object.assign({width:Je*2,minWidth:Je*2},me(Je)),ae=Je=>{const{borderRadiusSM:Qe,skeletonButtonCls:_t,controlHeight:Rt,controlHeightLG:Yt,controlHeightSM:gt,gradientFromColor:wt}=Je;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${_t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt,borderRadius:Qe,width:Rt*2,minWidth:Rt*2},oe(Rt))},ee(Je,Rt,_t)),{[`${_t}-lg`]:Object.assign({},oe(Yt))}),ee(Je,Yt,`${_t}-lg`)),{[`${_t}-sm`]:Object.assign({},oe(gt))}),ee(Je,gt,`${_t}-sm`))},ce=Je=>{const{componentCls:Qe,skeletonAvatarCls:_t,skeletonTitleCls:Rt,skeletonParagraphCls:Yt,skeletonButtonCls:gt,skeletonInputCls:wt,skeletonImageCls:Dt,controlHeight:tt,controlHeightLG:fn,controlHeightSM:hn,gradientFromColor:$n,padding:no,marginSM:rt,borderRadius:vt,titleHeight:An,blockRadius:Zt,paragraphLiHeight:yt,controlHeightXS:Nn,paragraphMarginTop:Xt}=Je;return{[`${Qe}`]:{display:"table",width:"100%",[`${Qe}-header`]:{display:"table-cell",paddingInlineEnd:no,verticalAlign:"top",[`${_t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$n},re(tt)),[`${_t}-circle`]:{borderRadius:"50%"},[`${_t}-lg`]:Object.assign({},re(fn)),[`${_t}-sm`]:Object.assign({},re(hn))},[`${Qe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Rt}`]:{width:"100%",height:An,background:$n,borderRadius:Zt,[`+ ${Yt}`]:{marginBlockStart:hn}},[`${Yt}`]:{padding:0,"> li":{width:"100%",height:yt,listStyle:"none",background:$n,borderRadius:Zt,"+ li":{marginBlockStart:Nn}}},[`${Yt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Qe}-content`]:{[`${Rt}, ${Yt} > li`]:{borderRadius:vt}}},[`${Qe}-with-avatar ${Qe}-content`]:{[`${Rt}`]:{marginBlockStart:rt,[`+ ${Yt}`]:{marginBlockStart:Xt}}},[`${Qe}${Qe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ae(Je)),y(Je)),E(Je)),x(Je)),[`${Qe}${Qe}-block`]:{width:"100%",[`${gt}`]:{width:"100%"},[`${wt}`]:{width:"100%"}},[`${Qe}${Qe}-active`]:{[` ${Rt}, ${Yt} > li, ${_t}, ${gt}, ${wt}, ${Dt} `]:Object.assign({},ne(Je))}}};var Se=(0,le.Z)("Skeleton",Je=>{const{componentCls:Qe}=Je,_t=(0,ue.TS)(Je,{skeletonAvatarCls:`${Qe}-avatar`,skeletonTitleCls:`${Qe}-title`,skeletonParagraphCls:`${Qe}-paragraph`,skeletonButtonCls:`${Qe}-button`,skeletonInputCls:`${Qe}-input`,skeletonImageCls:`${Qe}-image`,imageSizeBase:Je.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Je.gradientFromColor} 25%, ${Je.gradientToColor} 37%, ${Je.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(_t)]},Je=>{const{colorFillContent:Qe,colorFill:_t}=Je,Rt=Qe,Yt=_t;return{color:Rt,colorGradientEnd:Yt,gradientFromColor:Rt,gradientToColor:Yt,titleHeight:Je.controlHeight/2,blockRadius:Je.borderRadiusSM,paragraphMarginTop:Je.marginLG+Je.marginXXS,paragraphLiHeight:Je.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xe=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,active:Yt,shape:gt="circle",size:wt="default"}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=(0,he.Z)(Je,["prefixCls","className"]),no=fe()(tt,`${tt}-element`,{[`${tt}-active`]:Yt},_t,Rt,hn);return fn(Pe.createElement("div",{className:no},Pe.createElement(ie,Object.assign({prefixCls:`${tt}-avatar`,shape:gt,size:wt},$n))))},Fe=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,active:Yt,block:gt=!1,size:wt="default"}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=(0,he.Z)(Je,["prefixCls"]),no=fe()(tt,`${tt}-element`,{[`${tt}-active`]:Yt,[`${tt}-block`]:gt},_t,Rt,hn);return fn(Pe.createElement("div",{className:no},Pe.createElement(ie,Object.assign({prefixCls:`${tt}-button`,size:wt},$n))))};const Me="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Xe=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,style:Yt,active:gt}=Je,{getPrefixCls:wt}=Pe.useContext(ve.E_),Dt=wt("skeleton",Qe),[tt,fn]=Se(Dt),hn=fe()(Dt,`${Dt}-element`,{[`${Dt}-active`]:gt},_t,Rt,fn);return tt(Pe.createElement("div",{className:hn},Pe.createElement("div",{className:fe()(`${Dt}-image`,_t),style:Yt},Pe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Dt}-image-svg`},Pe.createElement("path",{d:Me,className:`${Dt}-image-path`})))))},Ae=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,active:Yt,block:gt,size:wt="default"}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=(0,he.Z)(Je,["prefixCls"]),no=fe()(tt,`${tt}-element`,{[`${tt}-active`]:Yt,[`${tt}-block`]:gt},_t,Rt,hn);return fn(Pe.createElement("div",{className:no},Pe.createElement(ie,Object.assign({prefixCls:`${tt}-input`,size:wt},$n))))},De=te(87462),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},nt=Be,Ke=te(44327),Et=function(Qe,_t){return Pe.createElement(Ke.Z,(0,De.Z)({},Qe,{ref:_t,icon:nt}))},Ct=Pe.forwardRef(Et),on=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,style:Yt,active:gt,children:wt}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=fe()(tt,`${tt}-element`,{[`${tt}-active`]:gt},hn,_t,Rt),no=wt!=null?wt:Pe.createElement(Ct,null);return fn(Pe.createElement("div",{className:$n},Pe.createElement("div",{className:fe()(`${tt}-image`,_t),style:Yt},no)))},it=te(74902),xt=Je=>{const Qe=Dt=>{const{width:tt,rows:fn=2}=Je;if(Array.isArray(tt))return tt[Dt];if(fn-1===Dt)return tt},{prefixCls:_t,className:Rt,style:Yt,rows:gt}=Je,wt=(0,it.Z)(Array(gt)).map((Dt,tt)=>Pe.createElement("li",{key:tt,style:{width:Qe(tt)}}));return Pe.createElement("ul",{className:fe()(_t,Rt),style:Yt},wt)},Vt=Je=>{let{prefixCls:Qe,className:_t,width:Rt,style:Yt}=Je;return Pe.createElement("h3",{className:fe()(Qe,_t),style:Object.assign({width:Rt},Yt)})};function xn(Je){return Je&&typeof Je=="object"?Je:{}}function He(Je,Qe){return Je&&!Qe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function un(Je,Qe){return!Je&&Qe?{width:"38%"}:Je&&Qe?{width:"50%"}:{}}function kn(Je,Qe){const _t={};return(!Je||!Qe)&&(_t.width="61%"),!Je&&Qe?_t.rows=3:_t.rows=2,_t}const nr=Je=>{const{prefixCls:Qe,loading:_t,className:Rt,rootClassName:Yt,style:gt,children:wt,avatar:Dt=!1,title:tt=!0,paragraph:fn=!0,active:hn,round:$n}=Je,{getPrefixCls:no,direction:rt,skeleton:vt}=Pe.useContext(ve.E_),An=no("skeleton",Qe),[Zt,yt]=Se(An);if(_t||!("loading"in Je)){const Nn=!!Dt,Xt=!!tt,qn=!!fn;let Br;if(Nn){const ir=Object.assign(Object.assign({prefixCls:`${An}-avatar`},He(Xt,qn)),xn(Dt));Br=Pe.createElement("div",{className:`${An}-header`},Pe.createElement(ie,Object.assign({},ir)))}let or;if(Xt||qn){let ir;if(Xt){const On=Object.assign(Object.assign({prefixCls:`${An}-title`},un(Nn,qn)),xn(tt));ir=Pe.createElement(Vt,Object.assign({},On))}let So;if(qn){const On=Object.assign(Object.assign({prefixCls:`${An}-paragraph`},kn(Nn,Xt)),xn(fn));So=Pe.createElement(xt,Object.assign({},On))}or=Pe.createElement("div",{className:`${An}-content`},ir,So)}const Gn=fe()(An,{[`${An}-with-avatar`]:Nn,[`${An}-active`]:hn,[`${An}-rtl`]:rt==="rtl",[`${An}-round`]:$n},vt==null?void 0:vt.className,Rt,Yt,yt);return Zt(Pe.createElement("div",{className:Gn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),gt)},Br,or))}return typeof wt!="undefined"?wt:null};nr.Button=Fe,nr.Avatar=xe,nr.Input=Ae,nr.Image=Xe,nr.Node=on;var Ln=nr,Gt=Ln},55054:function(at,We,te){"use strict";te.d(We,{default:function(){return Se}});var z=te(67294),fe=te(57838),Pe=te(96159),ve=te(94184),he=te.n(ve),pe=te(53124),ie=te(4310),le=_e=>{const{value:xe,formatter:we,precision:Fe,decimalSeparator:Me,groupSeparator:ut="",prefixCls:Xe}=_e;let mt;if(typeof we=="function")mt=we(xe);else{const Ae=String(xe),De=Ae.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ae==="-")mt=Ae;else{const Be=De[1];let nt=De[2]||"0",Ke=De[4]||"";nt=nt.replace(/\B(?=(\d{3})+(?!\d))/g,ut),typeof Fe=="number"&&(Ke=Ke.padEnd(Fe,"0").slice(0,Fe>0?Fe:0)),Ke&&(Ke=`${Me}${Ke}`),mt=[z.createElement("span",{key:"int",className:`${Xe}-content-value-int`},Be,nt),Ke&&z.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},Ke)]}}return z.createElement("span",{className:`${Xe}-content-value`},mt)},ue=te(14747),se=te(67968),me=te(45503);const re=_e=>{const{componentCls:xe,marginXXS:we,padding:Fe,colorTextDescription:Me,titleFontSize:ut,colorTextHeading:Xe,contentFontSize:mt,fontFamily:Ae}=_e;return{[`${xe}`]:Object.assign(Object.assign({},(0,ue.Wf)(_e)),{[`${xe}-title`]:{marginBottom:we,color:Me,fontSize:ut},[`${xe}-skeleton`]:{paddingTop:Fe},[`${xe}-content`]:{color:Xe,fontSize:mt,fontFamily:Ae,[`${xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xe}-content-prefix, ${xe}-content-suffix`]:{display:"inline-block"},[`${xe}-content-prefix`]:{marginInlineEnd:we},[`${xe}-content-suffix`]:{marginInlineStart:we}}})}};var ne=(0,se.Z)("Statistic",_e=>{const xe=(0,me.TS)(_e,{});return[re(xe)]},_e=>{const{fontSizeHeading3:xe,fontSize:we}=_e;return{titleFontSize:we,contentFontSize:xe}}),y=_e=>{const{prefixCls:xe,className:we,rootClassName:Fe,style:Me,valueStyle:ut,value:Xe=0,title:mt,valueRender:Ae,prefix:De,suffix:Be,loading:nt=!1,onMouseEnter:Ke,onMouseLeave:Et,decimalSeparator:Ct=".",groupSeparator:nn=","}=_e,{getPrefixCls:on,direction:it,statistic:lt}=z.useContext(pe.E_),xt=on("statistic",xe),[Jt,Vt]=ne(xt),xn=z.createElement(le,Object.assign({decimalSeparator:Ct,groupSeparator:nn,prefixCls:xt},_e,{value:Xe})),He=he()(xt,{[`${xt}-rtl`]:it==="rtl"},lt==null?void 0:lt.className,we,Fe,Vt);return Jt(z.createElement("div",{className:He,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Me),onMouseEnter:Ke,onMouseLeave:Et},mt&&z.createElement("div",{className:`${xt}-title`},mt),z.createElement(ie.Z,{paragraph:!1,loading:nt,className:`${xt}-skeleton`},z.createElement("div",{style:ut,className:`${xt}-content`},De&&z.createElement("span",{className:`${xt}-content-prefix`},De),Ae?Ae(xn):xn,Be&&z.createElement("span",{className:`${xt}-content-suffix`},Be)))))};const E=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function b(_e,xe){let we=_e;const Fe=/\[[^\]]*]/g,Me=(xe.match(Fe)||[]).map(Ae=>Ae.slice(1,-1)),ut=xe.replace(Fe,"[]"),Xe=E.reduce((Ae,De)=>{let[Be,nt]=De;if(Ae.includes(Be)){const Ke=Math.floor(we/nt);return we-=Ke*nt,Ae.replace(new RegExp(`${Be}+`,"g"),Et=>{const Ct=Et.length;return Ke.toString().padStart(Ct,"0")})}return Ae},ut);let mt=0;return Xe.replace(Fe,()=>{const Ae=Me[mt];return mt+=1,Ae})}function x(_e,xe){const{format:we=""}=xe,Fe=new Date(_e).getTime(),Me=Date.now(),ut=Math.max(Fe-Me,0);return b(ut,we)}const ee=1e3/30;function oe(_e){return new Date(_e).getTime()}const ae=_e=>{const{value:xe,format:we="HH:mm:ss",onChange:Fe,onFinish:Me}=_e,ut=(0,fe.Z)(),Xe=z.useRef(null),mt=()=>{Me==null||Me(),Xe.current&&(clearInterval(Xe.current),Xe.current=null)},Ae=()=>{const nt=oe(xe);nt>=Date.now()&&(Xe.current=setInterval(()=>{ut(),Fe==null||Fe(nt-Date.now()),nt(Ae(),()=>{Xe.current&&(clearInterval(Xe.current),Xe.current=null)}),[xe]);const De=(nt,Ke)=>x(nt,Object.assign(Object.assign({},Ke),{format:we})),Be=nt=>(0,Pe.Tm)(nt,{title:void 0});return z.createElement(y,Object.assign({},_e,{valueRender:Be,formatter:De}))};var ce=z.memo(ae);y.Countdown=ce;var Se=y},49867:function(at,We,te){"use strict";te.d(We,{N:function(){return z}});const z=fe=>({color:fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${fe.motionDurationSlow}`,"&:focus, &:hover":{color:fe.colorLinkHover},"&:active":{color:fe.colorLinkActive}})},86129:function(at,We,te){"use strict";te.d(We,{default:function(){return Hs}});var z={},fe="rc-table-internal-hook",Pe=te(97685),ve=te(66680),he=te(8410),pe=te(91881),ie=te(67294),de=te(73935);function le(Ee){var Ce=ie.createContext(void 0),Re=function(Ue){var Ze=Ue.value,ot=Ue.children,st=ie.useRef(Ze);st.current=Ze;var ht=ie.useState(function(){return{getValue:function(){return st.current},listeners:new Set}}),Pt=(0,Pe.Z)(ht,1),Ot=Pt[0];return(0,he.Z)(function(){(0,de.unstable_batchedUpdates)(function(){Ot.listeners.forEach(function(At){At(Ze)})})},[Ze]),ie.createElement(Ce.Provider,{value:Ot},ot)};return{Context:Ce,Provider:Re,defaultValue:Ee}}function ue(Ee,Ce){var Re=(0,ve.Z)(typeof Ce=="function"?Ce:function(At){if(Ce===void 0)return At;if(!Array.isArray(Ce))return At[Ce];var tn={};return Ce.forEach(function(gn){tn[gn]=At[gn]}),tn}),Te=ie.useContext(Ee==null?void 0:Ee.Context),Ue=Te||{},Ze=Ue.listeners,ot=Ue.getValue,st=ie.useRef();st.current=Re(Te?ot():Ee==null?void 0:Ee.defaultValue);var ht=ie.useState({}),Pt=(0,Pe.Z)(ht,2),Ot=Pt[1];return(0,he.Z)(function(){if(!Te)return;function At(tn){var gn=Re(tn);(0,pe.Z)(st.current,gn,!0)||Ot({})}return Ze.add(At),function(){Ze.delete(At)}},[Te]),st.current}var se=te(87462),me=te(42550);function re(){var Ee=ie.createContext(null);function Ce(){return ie.useContext(Ee)}function Re(Ue,Ze){var ot=(0,me.Yr)(Ue),st=function(Pt,Ot){var At=ot?{ref:Ot}:{},tn=ie.useRef(0),gn=ie.useRef(Pt),ln=Ce();return ln!==null?ie.createElement(Ue,(0,se.Z)({},Pt,At)):((!Ze||Ze(gn.current,Pt))&&(tn.current+=1),gn.current=Pt,ie.createElement(Ee.Provider,{value:tn.current},ie.createElement(Ue,(0,se.Z)({},Pt,At))))};return ot?ie.forwardRef(st):st}function Te(Ue,Ze){var ot=(0,me.Yr)(Ue),st=function(Pt,Ot){var At=ot?{ref:Ot}:{};return Ce(),ie.createElement(Ue,(0,se.Z)({},Pt,At))};return ot?ie.memo(ie.forwardRef(st),Ze):ie.memo(st,Ze)}return{makeImmutable:Re,responseImmutable:Te,useImmutableMark:Ce}}var ne=re(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,ee=b.responseImmutable,oe=b.useImmutableMark,ae=le(),ce=ae;function Se(Ee,Ce){var Re=ie.useRef(0);Re.current+=1;var Te=ie.useRef(Ee),Ue=[];Object.keys(Ee||{}).map(function(ot){var st;(Ee==null?void 0:Ee[ot])!==((st=Te.current)===null||st===void 0?void 0:st[ot])&&Ue.push(ot)}),Te.current=Ee;var Ze=ie.useRef([]);return Ue.length&&(Ze.current=Ue),ie.useDebugValue(Re.current),ie.useDebugValue(Ze.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Re.current,Ze.current),Re.current}var _e=null,xe=ie.memo(function(){var Ee=Se();return ie.createElement("h1",null,"Render Times: ",Ee)});xe.displayName="RenderBlock";var we=te(71002),Fe=te(1413),Me=te(4942),ut=te(94184),Xe=te.n(ut);function mt(Ee,Ce,Re){var Te=ie.useRef({});return(!("value"in Te.current)||Re(Te.current.condition,Ce))&&(Te.current.value=Ee(),Te.current.condition=Ce),Te.current.value}var Ae={},De=[],Be=function(Ce){De.push(Ce)};function nt(Ee,Ce){if(0)var Re}function Ke(Ee,Ce){if(0)var Re}function Et(){Ae={}}function Ct(Ee,Ce,Re){!Ce&&!Ae[Re]&&(Ee(!1,Re),Ae[Re]=!0)}function nn(Ee,Ce){Ct(nt,Ee,Ce)}function on(Ee,Ce){Ct(Ke,Ee,Ce)}nn.preMessage=Be,nn.resetWarned=Et,nn.noteOnce=on;var it=nn;function lt(Ee,Ce){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=new Set;function Ue(Ze,ot){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ht=Te.has(Ze);if(it(!ht,"Warning: There may be circular references"),ht)return!1;if(Ze===ot)return!0;if(Re&&st>1)return!1;Te.add(Ze);var Pt=st+1;if(Array.isArray(Ze)){if(!Array.isArray(ot)||Ze.length!==ot.length)return!1;for(var Ot=0;Ot=Re}function Qe(Ee,Ce){return ue(ce,function(Re){var Te=Je(Ee,Ce||1,Re.hoverStartRow,Re.hoverEndRow);return[Te,Re.onHover]})}var _t=function(Ce){var Re=Ce.ellipsis,Te=Ce.rowType,Ue=Ce.children,Ze,ot=Re===!0?{showTitle:!0}:Re;return ot&&(ot.showTitle||Te==="header")&&(typeof Ue=="string"||typeof Ue=="number"?Ze=Ue.toString():ie.isValidElement(Ue)&&typeof Ue.props.children=="string"&&(Ze=Ue.props.children)),Ze};function Rt(Ee){var Ce,Re,Te,Ue,Ze,ot,st,ht,Pt=Ee.component,Ot=Ee.children,At=Ee.ellipsis,tn=Ee.scope,gn=Ee.prefixCls,ln=Ee.className,Wn=Ee.align,Fn=Ee.record,Yn=Ee.render,zn=Ee.dataIndex,rr=Ee.renderIndex,Ur=Ee.shouldCellUpdate,Xr=Ee.index,Ar=Ee.rowType,fo=Ee.colSpan,io=Ee.rowSpan,cr=Ee.fixLeft,Dr=Ee.fixRight,hr=Ee.firstFixLeft,Xn=Ee.lastFixLeft,Er=Ee.firstFixRight,oo=Ee.lastFixRight,Uo=Ee.appendNode,Po=Ee.additionalProps,to=Po===void 0?{}:Po,Go=Ee.isSticky,Vo="".concat(gn,"-cell"),ar=ue(ce,["supportSticky","allColumnsFixedLeft"]),Rr=ar.supportSticky,Ko=ar.allColumnsFixedLeft,ii=Gt(Fn,zn,rr,Ot,Yn,Ur),Gr=(0,Pe.Z)(ii,2),Ra=Gr[0],Pi=Gr[1],ba={},ua=typeof cr=="number"&&Rr,Ns=typeof Dr=="number"&&Rr;ua&&(ba.position="sticky",ba.left=cr),Ns&&(ba.position="sticky",ba.right=Dr);var ho=(Ce=(Re=(Te=Pi==null?void 0:Pi.colSpan)!==null&&Te!==void 0?Te:to.colSpan)!==null&&Re!==void 0?Re:fo)!==null&&Ce!==void 0?Ce:1,lo=(Ue=(Ze=(ot=Pi==null?void 0:Pi.rowSpan)!==null&&ot!==void 0?ot:to.rowSpan)!==null&&Ze!==void 0?Ze:io)!==null&&Ue!==void 0?Ue:1,ao=Qe(Xr,lo),Qr=(0,Pe.Z)(ao,2),Hi=Qr[0],Jr=Qr[1],No=function(Ja){var Ts;Fn&&Jr(Xr,Xr+lo-1),to==null||(Ts=to.onMouseEnter)===null||Ts===void 0||Ts.call(to,Ja)},Ri=function(Ja){var Ts;Fn&&Jr(-1,-1),to==null||(Ts=to.onMouseLeave)===null||Ts===void 0||Ts.call(to,Ja)};if(ho===0||lo===0)return null;var Ei=(st=to.title)!==null&&st!==void 0?st:_t({rowType:Ar,ellipsis:At,children:Ra}),Ss=Xe()(Vo,ln,(ht={},(0,Me.Z)(ht,"".concat(Vo,"-fix-left"),ua&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-left-first"),hr&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-left-last"),Xn&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-left-all"),Xn&&Ko&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-right"),Ns&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-right-first"),Er&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-right-last"),oo&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-ellipsis"),At),(0,Me.Z)(ht,"".concat(Vo,"-with-append"),Uo),(0,Me.Z)(ht,"".concat(Vo,"-fix-sticky"),(ua||Ns)&&Go&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-row-hover"),!Pi&&Hi),ht),to.className,Pi==null?void 0:Pi.className),us={};Wn&&(us.textAlign=Wn);var tl=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},ba),to.style),us),Pi==null?void 0:Pi.style),Qa=Ra;return(0,we.Z)(Qa)==="object"&&!Array.isArray(Qa)&&!ie.isValidElement(Qa)&&(Qa=null),At&&(Xn||Er)&&(Qa=ie.createElement("span",{className:"".concat(Vo,"-content")},Qa)),ie.createElement(Pt,(0,se.Z)({},Pi,to,{className:Ss,style:tl,title:Ei,scope:tn,onMouseEnter:No,onMouseLeave:Ri,colSpan:ho!==1?ho:null,rowSpan:lo!==1?lo:null}),Uo,Qa)}var Yt=ie.memo(Rt);function gt(Ee,Ce,Re,Te,Ue,Ze){var ot=Re[Ee]||{},st=Re[Ce]||{},ht,Pt;ot.fixed==="left"?ht=Te.left[Ue==="rtl"?Ce:Ee]:st.fixed==="right"&&(Pt=Te.right[Ue==="rtl"?Ee:Ce]);var Ot=!1,At=!1,tn=!1,gn=!1,ln=Re[Ce+1],Wn=Re[Ee-1],Fn=!(Ze!=null&&Ze.children);if(Ue==="rtl"){if(ht!==void 0){var Yn=Wn&&Wn.fixed==="left";gn=!Yn&&Fn}else if(Pt!==void 0){var zn=ln&&ln.fixed==="right";tn=!zn&&Fn}}else if(ht!==void 0){var rr=ln&&ln.fixed==="left";Ot=!rr&&Fn}else if(Pt!==void 0){var Ur=Wn&&Wn.fixed==="right";At=!Ur&&Fn}return{fixLeft:ht,fixRight:Pt,lastFixLeft:Ot,firstFixRight:At,lastFixRight:tn,firstFixLeft:gn,isSticky:Te.isSticky}}var wt=ie.createContext({}),Dt=wt;function tt(Ee){var Ce=Ee.className,Re=Ee.index,Te=Ee.children,Ue=Ee.colSpan,Ze=Ue===void 0?1:Ue,ot=Ee.rowSpan,st=Ee.align,ht=ue(ce,["prefixCls","direction"]),Pt=ht.prefixCls,Ot=ht.direction,At=ie.useContext(Dt),tn=At.scrollColumnIndex,gn=At.stickyOffsets,ln=At.flattenColumns,Wn=At.columns,Fn=Re+Ze-1,Yn=Fn+1===tn?Ze+1:Ze,zn=gt(Re,Re+Yn-1,ln,gn,Ot,Wn==null?void 0:Wn[Re]);return ie.createElement(Yt,(0,se.Z)({className:Ce,index:Re,component:"td",prefixCls:Pt,record:null,dataIndex:null,align:st,colSpan:Yn,rowSpan:ot,render:function(){return Te}},zn))}var fn=te(45987),hn=["children"];function $n(Ee){var Ce=Ee.children,Re=(0,fn.Z)(Ee,hn);return ie.createElement("tr",Re,Ce)}function no(Ee){var Ce=Ee.children;return Ce}no.Row=$n,no.Cell=tt;var rt=no;function vt(Ee){var Ce=Ee.children,Re=Ee.stickyOffsets,Te=Ee.flattenColumns,Ue=Ee.columns,Ze=ue(ce,"prefixCls"),ot=Te.length-1,st=Te[ot],ht=ie.useMemo(function(){return{stickyOffsets:Re,flattenColumns:Te,scrollColumnIndex:st!=null&&st.scrollbar?ot:null,columns:Ue}},[st,Te,ot,Re,Ue]);return ie.createElement(Dt.Provider,{value:ht},ie.createElement("tfoot",{className:"".concat(Ze,"-summary")},Ce))}var An=ee(vt),Zt=rt;function yt(Ee){var Ce=ie.useRef();Ce.current=Ee;var Re=ie.useCallback(function(){for(var Te,Ue=arguments.length,Ze=new Array(Ue),ot=0;ot3&&arguments[3]!==void 0?arguments[3]:!1;return Ce.length&&Te&&Re===void 0&&!get(Ee,Ce.slice(0,-1))?Ee:xo(Ee,Ce,Re,Te)}function Wi(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function $i(Ee){return Array.isArray(Ee)?[]:{}}var Ci=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ei(){for(var Ee=arguments.length,Ce=new Array(Ee),Re=0;Re