/*! For license information please see index.f5ca56e3.js.LICENSE.txt */ !function(){var t,e,n,r,o,i={45545:function(t,e,n){"use strict";n.d(e,{r:function(){return y}});var r=n(70655),o=n(8679),i=n.n(o),a=n(22188),s=n(29323),u=n(67090),c=n(67294),l=n(9056),p=n(16297),f=(n(980),n(30381),n(94219)),d=n(64136),h=(n(35373),n(13276));function y(t){return function(e){var n=function(n){function o(e,o){var i=n.call(this,e)||this,s=o;i.renderChild=i.renderChild.bind(i),i.refFn=i.refFn.bind(i);var u=s.addStore({id:(0,p.guid)(),path:i.props.$path,storeType:t.storeType,parentId:i.props.store?i.props.store.id:""});i.store=u,!1===("function"==typeof t.extendsData?t.extendsData(e):t.extendsData)?u.initData((0,f.nW)(i.props.data?i.props.data.__super:null,(0,r.pi)((0,r.pi)({},i.formatData((0,d.bu)(i.props.defaultData,i.props.data))),i.formatData(i.props.data)))):i.props.scope||i.props.data&&i.props.data.__super?i.props.store&&i.props.data===i.props.store.data?u.initData((0,f.nW)(i.props.store.data,(0,r.pi)({},i.formatData((0,d.bu)(i.props.defaultData,i.props.data))))):u.initData((0,f.nW)(i.props.data.__super||i.props.scope,(0,r.pi)((0,r.pi)({},i.formatData((0,d.bu)(i.props.defaultData,i.props.data))),i.formatData(i.props.data)))):u.initData((0,r.pi)((0,r.pi)({},i.formatData((0,d.bu)(i.props.defaultData,i.props.data))),i.formatData(i.props.data))),i.state={};var c=e.detectField,h=(0,r._T)(e,["detectField"]),y={};return c&&"data"!==c||(y=(0,l.L)(h,u.data,void 0,h),i.state=(0,r.pi)({},y),i.unReaction=(0,a.U5)((function(){return JSON.stringify((0,l.L)(i.props,u.data,void 0,i.props))}),(function(){return i.setState((0,r.pi)({},(0,l.L)(i.props,u.data,void 0,i.props)))}))),i}return(0,r.ZT)(o,n),o.prototype.getWrappedInstance=function(){return this.ref},o.prototype.refFn=function(t){this.ref=t},o.prototype.formatData=function(t){return Array.isArray(t)?{items:t}:t},o.prototype.componentDidUpdate=function(e){var n,o,i=this.props,a=this.store,s=null===(n=t.shouldSyncSuperStore)||void 0===n?void 0:n.call(t,a,i,e);!1!==s&&(!1===("function"==typeof t.extendsData?t.extendsData(i):t.extendsData)?(!0===s||e.defaultData!==i.defaultData||(0,p.isObjectShallowModified)(e.data,i.data)||i.data&&e.data&&i.data.__super!==e.data.__super)&&a.initData((0,f.kt)(i.data,(0,r.pi)((0,r.pi)((0,r.pi)({},a.hasRemoteData?a.data:null),this.formatData(i.defaultData)),this.formatData(i.data)))):!0===s||(0,p.isObjectShallowModified)(e.data,i.data)||!1!==i.syncSuperStore&&(0,p.isSuperDataModified)(i.data,e.data,a)?i.store&&i.store.data===i.data?a.initData((0,f.nW)(i.store.data,!1===i.syncSuperStore?(0,r.pi)({},a.data):(0,p.syncDataFromSuper)(a.data,i.store.data,e.scope,a,!0===i.syncSuperStore))):i.data&&i.data.__super?a.initData((0,f.kt)(i.data,a.hasRemoteData||"page"===a.path?(0,r.pi)((0,r.pi)({},a.data),i.data):void 0)):a.initData((0,f.nW)(i.scope,i.data)):!0!==s&&i.store&&i.data===i.store.data||!i.data||!i.data.__super?!i.scope||i.data!==i.store.data||!0!==s&&e.data===i.data||a.initData((0,f.nW)(i.scope,(0,r.pi)({},a.data))):e.data&&!(0,p.isObjectShallowModified)(i.data.__super,e.data.__super,!1)||a.initData((0,f.nW)(i.data.__super,(0,r.pi)((0,r.pi)({},i.data),a.data)),"FormStore"===a.storeType&&"CRUDStore"===(null===(o=e.store)||void 0===o?void 0:o.storeType)))},o.prototype.componentWillUnmount=function(){var t,e=this.context,n=this.store;null===(t=this.unReaction)||void 0===t||t.call(this),(0,u.fh)(n)&&e.removeStore(n),delete this.store},o.prototype.renderChild=function(t,e,n){return void 0===n&&(n={}),(0,this.props.render)(t,e,(0,r.pi)((0,r.pi)({data:this.store.data,dataUpdatedAt:this.store.updatedAt},n),{scope:this.store.data,store:this.store}))},o.prototype.render=function(){var t=this.props;t.detectField;var n=(0,r._T)(t,["detectField"]);return this.state.hidden||!1===this.state.visible?null:c.createElement(e,(0,r.pi)({},n,this.state,{ref:this.refFn,data:this.store.data,dataUpdatedAt:this.store.updatedAt,store:this.store,scope:this.store.data,render:this.renderChild}))},o.displayName="WithStore(".concat(e.displayName||e.name,")"),o.ComposedComponent=e,o.contextType=h.y,(0,r.gn)([s.Pi,(0,r.w6)("design:paramtypes",[Object,void 0])],o)}(c.Component);return i()(n,e),n}}},90761:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(70655),o=n(67294),i=n(33082),a=n.n(i),s=function(t){function e(e){var n=t.call(this,e)||this;return n.mounted=!1,n.handleVisibleChange=n.handleVisibleChange.bind(n),n.mounted=!0,n.state={visible:!1,component:e.component},n}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){"undefined"!=typeof jest&&this.handleVisibleChange(!0)},e.prototype.componentWillUnmount=function(){this.mounted=!1},e.prototype.handleVisibleChange=function(t){var e=this;this.setState({visible:t}),t&&!this.state.component&&this.props.getComponent&&this.props.getComponent().then((function(t){return e.mounted&&"function"==typeof t&&e.setState({component:t})})).catch((function(t){return e.mounted&&e.setState({component:function(){return o.createElement("div",{className:"alert alert-danger"},String(t))}})}))},e.prototype.render=function(){var t=this.props,e=t.placeholder,n=t.unMountOnHidden,i=t.childProps,s=t.visiblilityProps,u=t.partialVisibility,c=t.children,l=(0,r._T)(t,["placeholder","unMountOnHidden","childProps","visiblilityProps","partialVisibility","children"]),p=this.state,f=p.visible,d=p.component;return n?o.createElement(a(),(0,r.pi)({},s,{partialVisibility:u,onChange:this.handleVisibleChange}),o.createElement("div",{className:"visibility-sensor"},d&&f?o.createElement(d,(0,r.pi)({},l,i)):c&&f?c:e)):f?d?o.createElement(d,(0,r.pi)({},l,i)):c||o.createElement("div",null,e):o.createElement(a(),(0,r.pi)({},s,{partialVisibility:u,onChange:this.handleVisibleChange}),o.createElement("div",{className:"visibility-sensor"},e))},e.defaultProps={placeholder:o.createElement("span",null,"Loading..."),unMountOnHidden:!1,partialVisibility:!0},e}(o.Component)},15423:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(70655),o=n(52690),i=n(94184),a=n.n(i),s=n(73935),u=n(67294),c=(n(88731),n(84789),n(8400),n(980),n(68630),n(72557),n(26153),n(30381),n(95209),n(12169)),l=(n(24717),n(8990),n(16297)),p=(n(35373),n(13218),n(47037),n(51584),n(96486),n(8422),n(56197),n(23279),n(50361),n(72993)),f=n(99284);n(60319),n(66604),n(68929),n(14289),n(8679),n(2284),n(7038),n(61110);var d=function(t){function e(e){var n=t.call(this,e)||this;return n.getTarget=function(){var t=n.props.target,e="function"==typeof t?t():t;return e&&s.findDOMNode(e)||null},n.maybeUpdatePosition=function(t){var e=n.getTarget();(n.props.shouldUpdatePosition||e!==n._lastTarget||t)&&n.updatePosition(e)},n.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},n._lastTarget=null,n}return(0,r.ZT)(e,t),e.prototype.updatePosition=function(t){var e,n=this;if(this._lastTarget=t,!t)return this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});var r,o,i,a=this.props.watchTargetSizeChange,u=(0,s.findDOMNode)(this),f=(0,c.ZO)(this.props.container,(0,c.PG)(this).body);if((!this.watchedTarget||this.watchedTarget!==t)&&"static"!==(0,p.D)(t,"position")){null===(e=this.resizeDispose)||void 0===e||e.forEach((function(t){return t()})),this.watchedTarget=t,this.resizeDispose=[!1!==a?(0,p.A)(t,(function(){return n.updatePosition(t)})):l.noop,(0,p.A)(u,(function(){return n.updatePosition(t)}))];var d=(0,l.getScrollParent)(t);d&&f.contains(d)&&this.resizeDispose.push((o=function(){n.updatePosition(t)},i=function(){requestAnimationFrame(o)},(r=d).addEventListener("scroll",i),function(){r.removeEventListener("scroll",i)}))}this.setState((0,c.kl)(this.props.placement,u,t,f,this.props.containerPadding,this.props.offset))},e.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},e.prototype.componentDidUpdate=function(t){this.maybeUpdatePosition(this.props.placement!==t.placement)},e.prototype.componentWillUnmount=function(){var t;null===(t=this.resizeDispose)||void 0===t||t.forEach((function(t){return t()}))},e.prototype.render=function(){var t=this.props,e=t.children,n=t.className,o=(0,r._T)(t,["children","className"]),i=this.state,s=i.positionLeft,c=i.positionTop,l=(0,r._T)(i,["positionLeft","positionTop"]);delete o.target,delete o.container,delete o.containerPadding,delete o.shouldUpdatePosition;var p=u.Children.only(e);return(0,u.cloneElement)(p,(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},o),l),p.props.offset?{offset:p.props.offset}:{}),{positionLeft:s,positionTop:c,className:a()(n,p.props.className),style:(0,r.pi)((0,r.pi)({},p.props.style),{left:s,top:c})}))},e.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},e}(u.Component),h=function(t){function e(e){var n=t.call(this,e)||this;return n.position=null,n.positionRef=function(t){n.position=t},n.state={exited:!e.show},n}return(0,r.ZT)(e,t),e.prototype.updatePosition=function(){var t;null===(t=this.position)||void 0===t||t.maybeUpdatePosition(!0)},e.prototype.componentDidUpdate=function(t){var e=this.props;t.show!==e.show&&e.show?this.setState({exited:!1}):e.transition===t.transition||e.transition||this.setState({exited:!0})},e.prototype.onHiddenListener=function(t){this.setState({exited:!0}),this.props.onExited&&this.props.onExited(t)},e.prototype.getContainerSelector=function(){var t=this.props.containerSelector,e=null;return"string"==typeof t&&(e=document.querySelector(t)),e},e.prototype.render=function(){var t=this.props,e=t.containerPadding,n=t.target,i=t.placement,a=t.shouldUpdatePosition,s=t.rootClose,c=t.children;t.watchTargetSizeChange;var l=t.transition,p=t.offset,h=(0,r._T)(t,["containerPadding","target","placement","shouldUpdatePosition","rootClose","children","watchTargetSizeChange","transition","offset"]),y=this.getContainerSelector()?this.getContainerSelector:this.props.container;if(!(h.show||l&&!this.state.exited))return null;var m=c;if(m=u.createElement(d,(0,r.pi)({},{container:y,containerPadding:e,target:n,placement:i,shouldUpdatePosition:a,offset:p},{ref:this.positionRef}),m),l){var v=h.onExit,b=h.onExiting,g=h.onEnter,w=h.onEntering,C=h.onEntered;m=u.createElement(l,{in:h.show,appear:!0,onExit:v,onExiting:b,onExited:this.onHiddenListener,onEnter:g,onEntering:w,onEntered:C},m)}return s?u.createElement(o.Z,{container:y},u.createElement(f.y,{onRootClose:h.onHide},(function(t){return u.isValidElement(m)?u.cloneElement(m,{ref:t}):u.createElement("div",{ref:t},m)}))):u.createElement(o.Z,{container:y},m)},e.defaultProps={placement:"auto"},(0,r.gn)([l.autobind,(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[HTMLElement]),(0,r.w6)("design:returntype",void 0)],e.prototype,"onHiddenListener",null),(0,r.gn)([l.autobind,(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[]),(0,r.w6)("design:returntype",void 0)],e.prototype,"getContainerSelector",null),e}(u.Component)},49300:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(70655),o=n(67294),i=n(73935),a=n(77117),s=(n(88731),n(84789),n(8400),n(980),n(68630),n(72557),n(26153),n(30381),n(95209),n(24717),n(8990),n(16297)),u=(n(94184),n(35373),n(13218),n(47037),n(51584),n(96486),n(8422),n(56197),n(23279),n(50361),n(72993),n(60319),n(66604),n(68929),n(14289),n(8679),n(2284),n(7038),n(61110),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={xOffset:0,yOffset:0},e.wrapperRef=o.createRef(),e}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){this.mayUpdateOffset();var t=(0,i.findDOMNode)(this);this.parent=t.parentNode,this.parent.classList.add("has-popover"),this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.addEventListener("touchmove",s.preventDefault,{passive:!1,capture:!1})},e.prototype.componentDidUpdate=function(){this.mayUpdateOffset()},e.prototype.componentWillUnmount=function(){this.parent&&this.parent.classList.remove("has-popover"),this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.removeEventListener("touchmove",s.preventDefault)},e.prototype.mayUpdateOffset=function(){var t,e=this.props.offset;if(e&&"function"==typeof e){var n=this.props,r=n.placement,o=n.positionTop,a=n.positionLeft;t=e((0,i.findDOMNode)(this).getBoundingClientRect(),{x:a,y:o,placement:r})}else t=e;this.setState({xOffset:t&&t.x?t.x:0,yOffset:t&&t.y?t.y:0})},e.prototype.render=function(){var t=this.props;t.placement;var e=t.activePlacement,n=t.positionTop,i=t.positionLeft;t.arrowOffsetLeft,t.arrowOffsetTop;var a=t.style,u=t.children;t.offset;var c=t.overlay,l=t.onHide,p=t.classPrefix,f=t.classnames,d=t.className,h=(0,r._T)(t,["placement","activePlacement","positionTop","positionLeft","arrowOffsetLeft","arrowOffsetTop","style","children","offset","overlay","onHide","classPrefix","classnames","className"]),y=this.state,m=y.xOffset,v=y.yOffset,b=(0,r.pi)((0,r.pi)({display:"block"},a),{top:n+v,left:i+m});return o.createElement("div",(0,r.pi)({ref:this.wrapperRef,className:f("".concat(p,"PopOver"),d,"".concat(p,"PopOver--").concat((0,s.camel)(e))),style:b},h),c?o.createElement("div",{className:"".concat(p,"PopOver-overlay"),onClick:l}):null,u)},e.defaultProps={className:"",offset:{x:0,y:0},overlay:!1,placement:"auto"},e}(o.PureComponent)),c=(0,a.YY)(u)},59623:function(t,e,n){"use strict";n.d(e,{Bj:function(){return I},Gt:function(){return S},OC:function(){return O},SL:function(){return j},T5:function(){return D},Th:function(){return E},YO:function(){return C},b7:function(){return b},e3:function(){return N},ef:function(){return T},gg:function(){return x},vC:function(){return _},zn:function(){return P}});var r,o,i=n(70655),a=n(67294),s=(n(34030),n(67090)),u=(n(88731),n(79694)),c=n(16297),l=n(29323),p=n(68e3),f=n(13311),d=n.n(f),h=n(45545),y=n(90396),m=n(25607),v=[],b={},g=[],w=1;function C(t){g.push(t)}function S(t,e,n){return g.reduce((function(t,r){return r(t,e,n)}),t)}function E(t){return function(e){return P((0,i.pi)((0,i.pi)({},t),{component:e})).component}}function P(t){if(!t.test&&!t.type)throw new TypeError("please set config.test or config.type");if(!t.component)throw new TypeError("config.component is required");if("string"==typeof t.type&&t.type&&(t.type=t.type.toLowerCase(),t.test=t.test||new RegExp("(^|/)".concat((0,m.E)(t.type),"$"),"i")),t.weight=t.weight||0,t.Renderer=t.component,t.name=t.name||t.type||"anonymous-".concat(w++),b[t.name])throw new Error('The renderer with name "'.concat(t.name,'" has already exists, please try another name!'));if(b.hasOwnProperty(t.name)){var e=(0,c.findIndex)(v,(function(e){return e.name===t.name}));~e&&v.splice(e,0,t)}t.storeType&&t.component&&(t.component=(0,h.r)({storeType:t.storeType,extendsData:t.storeExtendsData,shouldSyncSuperStore:t.shouldSyncSuperStore})((0,l.Pi)(t.component))),t.isolateScope&&(t.component=(0,p.BR)(t.component));var n=(0,c.findIndex)(v,(function(e){return t.weight3072)throw new Error("Path太长是不是死循环了?");var r=null;return v.some((function(o){var i=!1;return o.type&&n?(i=o.type===n)&&(A[n]=o):"function"==typeof o.test?i=o.test(t,e,I):o.test instanceof RegExp&&(i=o.test.test(t)),i&&(r=o),i})),null!==r&&r.component!==y.V&&(r.type||r.test instanceof RegExp||"function"==typeof r.test&&r.test.length<2)&&(A[t]=r),r}function D(){return v.concat()}function j(t){return d()(v,(function(e){return e.name===t}))}},34594:function(t,e,n){"use strict";n.d(e,{dkQ:function(){return Ht.d},qh2:function(){return Rt.q},qeo:function(){return s.q},tlN:function(){return Mt.t},JO1:function(){return l.J},FNf:function(){return Nt},xJW:function(){return yt.xJ},$lH:function(){return yt.$l},lTy:function(){return jt.l},joU:function(){return m.jo},crj:function(){return At.Z},oPK:function(){return Zt.o},vqG:function(){return zt.v},oZB:function(){return mt.oZ},aVW:function(){return It.Z},L_I:function(){return Lt.L},v$m:function(){return Dt.Z},Thl:function(){return o.Th},yzG:function(){return k.y},ZHe:function(){return ft.ZH},Y5f:function(){return Ft.Y},arw:function(){return M.a},dkt:function(){return g.SkipOperation},kDS:function(){return Wt.k},kKk:function(){return Vt.kK},QjV:function(){return Ut.Qj},NR9:function(){return Ct},YOg:function(){return o.YO},oQ4:function(){return $.Z},aGv:function(){return g.anyChanged},qBE:function(){return a.q},NjZ:function(){return g.autobind},xkX:function(){return i.xk},uBL:function(){return V.u},Ius:function(){return g.bulkBindFunctions},klU:function(){return d.kl},qRO:function(){return g.camel},efX:function(){return o.ef},UOr:function(){return u.U},hGw:function(){return g.convertArrayValueToMoment},nW9:function(){return O.nW},ALw:function(){return N.AL},buJ:function(){return c.bu},M0U:function(){return W.M},GcO:function(){return g.detectPropValueChanged},e50:function(){return g.difference},oxs:function(){return g.eachTree},Xvb:function(){return h.X},fz_:function(){return Z.fz},qZw:function(){return Z.qZ},P8h:function(){return g.everyTree},e3m:function(){return o.e3},AfN:function(){return ot},ktx:function(){return O.kt},hXT:function(){return Z.hX},kXI:function(){return p.kX},Gtq:function(){return o.Gt},get:function(){return g.filterTree},jbC:function(){return g.findObjectsWithKey},hEs:function(){return g.findTree},L$8:function(){return g.findTreeIndex},fKU:function(){return g.flattenTree},OOX:function(){return g.flattenTreeWithLeafNodes},rew:function(){return C.r},Dx9:function(){return I.D},sYq:function(){return ut},Lti:function(){return y.L},pzs:function(){return S.p},MZz:function(){return g.getLevelFromClassName},v8S:function(){return g.getPropValue},rxh:function(){return g.getRange},SL$:function(){return o.SL},T56:function(){return o.T5},rPZ:function(){return g.getScrollParent},npq:function(){return g.getScrollbarWidth},Mm4:function(){return d.Mm},ghV:function(){return dt.gh},IMU:function(){return g.getTree},kSg:function(){return g.getTreeAncestors},pk8:function(){return g.getTreeDepth},dGi:function(){return g.getTreeParent},E04:function(){return v.E},Y2S:function(){return g.getWidthRate},M8z:function(){return g.guid},GCi:function(){return b.G},rIu:function(){return g.hasAbility},unW:function(){return g.hashCode},CHQ:function(){return w.C},yy$:function(){return B.yy},rMT:function(){return i.rM},di8:function(){return i.di},RBK:function(){return g.isArrayChildrenModified},znt:function(){return g.isBreakpoint},Pbn:function(){return g.isClickOnInput},pKY:function(){return g.isDisabled},X1t:function(){return i.X1},xbD:function(){return g.isEmpty},UTL:function(){return m.UT},tqC:function(){return g.isMobile},kEn:function(){return g.isNumeric},Kn2:function(){return O.Kn},RjM:function(){return g.isObjectShallowModified},SSQ:function(){return E.S},FCL:function(){return g.isUnfolded},Few:function(){return i.Fe},pn4:function(){return g.isVisible},veE:function(){return g.loadScript},eAU:function(){return pt},Kfl:function(){return dt.Kf},HTu:function(){return g.makeHorizontalDeeper},Q2d:function(){return st},Xcl:function(){return g.mapObject},GyU:function(){return g.mapTree},ZTd:function(){return g.noop},_6r:function(){return i._6},Mpd:function(){return i.Mp},LYx:function(){return g.normalizeNodePath},GRe:function(){return P.G},cvk:function(){return _.c},IWw:function(){return x.I},K2U:function(){return g.padArr},Qc3:function(){return K.Qc},RAA:function(){return p.RA},mB4:function(){return g.parseQuery},vMA:function(){return g.pickEventsProps},Hin:function(){return T.H},J1H:function(){return g.qsparse},mUA:function(){return g.qsstringify},w6H:function(){return g.range},I27:function(){return rt},B7F:function(){return g.removeHTMLTag},sYA:function(){return Bt},lpb:function(){return A.l},Adl:function(){return I.A},vXk:function(){return N.vX},aCj:function(){return c.aC},Bju:function(){return o.Bj},H_J:function(){return D.H},OgC:function(){return j.O},X1x:function(){return ht.X1},onM:function(){return F.o},oz0:function(){return ct},NI0:function(){return O.NI},Jyg:function(){return g.someTree},o5f:function(){return g.spliceTree},S0D:function(){return i.S0},PqP:function(){return i.Pq},Xwr:function(){return L.Xw},EvO:function(){return R.E},ZWw:function(){return kt.Z},rSc:function(){return dt.rS},YYN:function(){return dt.YY},hz_:function(){return S.h},He2:function(){return H.H},wSD:function(){return U.w},zfV:function(){return g.ucFirst},nmi:function(){return z.n},C4_:function(){return g.until},P6Y:function(){return g},VjN:function(){return g.uuid},k$y:function(){return g.uuidv4},FFq:function(){return L.FF},tVU:function(){return L.tV},B$n:function(){return g.visibilityFilter}});var r=n(70655),o=n(59623),i=(n(28785),n(84532),n(88731)),a=n(74202),s=(n(36970),n(84789)),u=n(79565),c=n(64136),l=n(72557),p=(n(26153),n(19760)),f=n(95209),d=n(12169),h=(n(24717),n(13913)),y=n(9056),m=(n(35373),n(20723)),v=n(43560),b=(n(15804),n(33894)),g=n(16297),w=n(98839),C=n(43104),S=n(8422),E=n(43097),P=(n(69327),n(32818)),O=n(94219),_=n(16622),x=n(47462),T=n(32544),N=n(71570),A=n(46958),I=n(72993),D=n(26747),j=n(41165),k=(n(68062),n(99284)),F=n(22830),M=n(60319),R=n(25607),V=n(73542),U=n(71464),Z=(n(45060),n(8990)),z=n(51477),L=n(2284),H=n(57963),W=n(44478),B=n(71137),$=(n(7038),n(61110)),q=n(34030),J=n(67090),X=n(67294),Y=n(8679),G=n.n(Y),K=n(980),Q=(n(30381),n(68630)),tt=n.n(Q),et="zh-CN",nt={};function rt(t,e){ot(t,e)}function ot(t,e){nt[t]=(0,r.pi)((0,r.pi)({},nt[t]||{}),e)}var it={};function at(t,e){return t.replace(/(\\)?\{\{([\s\S]+?)\}\}/g,(function(t,n,r){return n?t.substring(1):(0,D.H)(r,e||{})}))}function st(t){if(t&&it[t])return it[t];var e=function(e){for(var n,o,i,a=[],s=1;s":">",'"':""","'":"'","/":"/"}),s={raw:function(t){return t},html:function(t){return null==t?t:String(t).replace(/[&<>"'\/]/g,(function(t){return a[t]}))}};function u(t,e){s[t]=e,r.vX.setDefaultFilters(s)}function c(t){Object.assign(s,t),r.vX.setDefaultFilters(s)}function l(){return s}var p=n(85576);function f(t,e,n){var o=t;return"string"==typeof t&&(o=(0,i.Q)(t,n)),new r.vX(e,n).evalute(o)}r.vX.setDefaultFilters(l()),o.j.setDefaultFilters(l())},47750:function(t,e,n){"use strict";n.d(e,{T6:function(){return f},Z9:function(){return d},eB:function(){return y},hx:function(){return m},iG:function(){return h}});var r,o=n(70655),i=n(67294),a=n(73935),s=n(54997),u=n(64179),c=n(34594),l=n(61709),p=function(t){function e(n){var r=t.call(this,n)||this;return r.state={show:!1,title:"",content:"",confirm:!1},r.close=r.close.bind(r),r.handleConfirm=r.handleConfirm.bind(r),r.handleCancel=r.handleCancel.bind(r),r.modalRef=r.modalRef.bind(r),r.handleFormSubmit=r.handleFormSubmit.bind(r),r.scopeRef=r.scopeRef.bind(r),n.isolate||(r.originInstance=e.instance,e.instance=r),r}return(0,o.ZT)(e,t),e.getInstance=function(){if(!e.instance){console.warn("Alert 组件应该没有被渲染,所以隐性的渲染到 body 了");var t=document.body,n=document.createElement("div");t.appendChild(n),(0,a.render)(i.createElement(m,null),n)}return e.instance},e.prototype.componentDidMount=function(){this._body&&(this._body.innerHTML=this.state.content)},e.prototype.componentDidUpdate=function(t,e){e.content!==this.state.content&&this._body&&(this._body.innerHTML=this.state.content)},e.prototype.componentWillUnmount=function(){e.instance===this&&(e.instance=this.originInstance||null,this.originInstance=null)},e.prototype.scopeRef=function(t){this.schemaSope=t},e.prototype.handleConfirm=function(){var t,e=null===(t=this.schemaSope)||void 0===t?void 0:t.getComponentByName("form");e?e.doAction({type:"submit"}):this.close(!0)},e.prototype.handleCancel=function(){this.close(!1)},e.prototype.close=function(t){var e=this,n=this.state.confirm||this.state.prompt;this.setState({show:!1,prompt:!1,confirm:!1},n?function(){return e._resolve(t)}:void 0)},e.prototype.alert=function(t,e){this.setState({title:e,content:t,show:!0,confirm:!1})},e.prototype.confirm=function(t,e,n,r){var o=this;return this.setState({title:e,content:t,show:!0,confirm:!0,confirmText:n,cancelText:r}),new Promise((function(t){o._resolve=t}))},e.prototype.prompt=function(t,e,n,r){var o=this;return void 0===n&&(n="placeholder.enter"),void 0===r&&(r="confirm"),"string"==typeof t?(t=[{name:"text",label:t,type:"text"}],"string"==typeof e&&(e={text:e})):Array.isArray(t)||(t=[t]),this.setState({title:n,controls:t,show:!0,prompt:!0,value:e,confirmText:r}),new Promise((function(t){o._resolve=t}))},e.prototype.modalRef=function(t){this._modal=t},e.prototype.handleFormSubmit=function(t){this.close(t)},e.prototype.render=function(){var t,e,n,o=this.props,a=o.container,c=o.cancelText,p=o.confirmText,f=o.title,d=o.confirmBtnLevel,h=o.alertBtnLevel,y=o.classnames,m=this.props.theme||"cxd";"default"===m&&(m="cxd");var v=this.props.translate,b=v(null!==(t=this.state.title)&&void 0!==t?t:f),g=v(null!==(e=this.state.confirmText)&&void 0!==e?e:p),w=v(null!==(n=this.state.cancelText)&&void 0!==n?n:c);return i.createElement(s.Z,{show:this.state.show,onHide:this.handleCancel,container:a,ref:this.modalRef,closeOnEsc:!0},b?i.createElement("div",{className:y("Modal-header")},i.createElement("div",{className:y("Modal-title")},b)):null,i.createElement("div",{className:y("Modal-body")},this.state.prompt?function(t,e,n,o,i){return void 0===e&&(e={}),null==r?void 0:r(t,e,n,o,i)}(this.state.controls,this.state.value,this.handleFormSubmit,this.scopeRef,m):i.createElement(l.Z,{html:this.state.content})),g?i.createElement("div",{className:y("Modal-footer")},this.state.confirm||this.state.prompt?i.createElement(u.Z,{onClick:this.handleCancel},v(w)):null,i.createElement(u.Z,{level:this.state.confirm||this.state.prompt?d:h,onClick:this.handleConfirm},g)):null)},e.instance=null,e.defaultProps={confirmText:"confirm",cancelText:"cancel",title:"Alert.info",alertBtnLevel:"primary",confirmBtnLevel:"danger"},e}(i.Component);function f(t){r=t}var d=function(t,e){return p.getInstance().alert(t,e)},h=function(t,e,n,r){return p.getInstance().confirm(t,e,n,r)},y=function(t,e,n,r){return p.getInstance().prompt(t,e,n,r)},m=(0,c.YYN)((0,c.eAU)(p))},30158:function(t,e,n){"use strict";n.d(e,{Z:function(){return a},s:function(){return a}});var r=n(70655),o=n(67294),i=n(34594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dom=o.createRef(),e.toDispose=[],e.unmounted=!1,e}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){var t,e,o,a,s;return(0,r.mG)(this,void 0,void 0,(function(){var u,c=this;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,n.e(4631).then(n.t.bind(n,4631,23))];case 1:return u=r.sent().default,[4,Promise.all([n.e(4631),n.e(6876)]).then(n.t.bind(n,96876,23))];case 2:return r.sent(),[4,Promise.all([n.e(4631),n.e(6876),n.e(6531)]).then(n.t.bind(n,16531,23))];case 3:return r.sent(),[4,Promise.all([n.e(4631),n.e(790)]).then(n.t.bind(n,40790,23))];case 4:return r.sent(),[4,Promise.all([n.e(4631),n.e(7093)]).then(n.t.bind(n,87093,23))];case 5:return r.sent(),this.unmounted||(this.editor=null!==(o=null===(e=(t=this.props).editorFactory)||void 0===e?void 0:e.call(t,this.dom.current,u,this.props))&&void 0!==o?o:u(this.dom.current,{value:this.props.value||""}),null===(s=(a=this.props).editorDidMount)||void 0===s||s.call(a,u,this.editor),this.editor.on("change",this.handleChange),this.editor.on("blur",this.handleBlur),this.editor.on("focus",this.handleFocus),this.toDispose.push((0,i.Adl)(this.dom.current,(function(){var t;return null===(t=c.editor)||void 0===t?void 0:t.refresh()}))),setTimeout((function(){var t;return null===(t=c.editor)||void 0===t?void 0:t.refresh()}),350),this.toDispose.push((function(){var t,e;null===(e=(t=c.props).editorWillUnMount)||void 0===e||e.call(t,u,c.editor)}))),[2]}}))}))},e.prototype.componentDidUpdate=function(t){var e=this.props;e.value!==t.value&&this.editor&&this.setValue(e.value)},e.prototype.componentWillUnmount=function(){var t,e,n;this.unmounted=!0,null===(t=this.editor)||void 0===t||t.off("change",this.handleChange),null===(e=this.editor)||void 0===e||e.off("blur",this.handleBlur),null===(n=this.editor)||void 0===n||n.off("focus",this.handleFocus),this.toDispose.forEach((function(t){return t()})),this.toDispose=[]},e.prototype.handleChange=function(t){var e,n;null===(n=(e=this.props).onChange)||void 0===n||n.call(e,t.getValue())},e.prototype.handleBlur=function(t){var e,n;null===(n=(e=this.props).onBlur)||void 0===n||n.call(e,t)},e.prototype.handleFocus=function(t){var e,n;null===(n=(e=this.props).onFocus)||void 0===n||n.call(e,t)},e.prototype.setValue=function(t){var e=this.editor.getDoc();if(t&&t!==e.getValue()){var n=e.getCursor();e.setValue(t),e.setCursor(n)}},e.prototype.render=function(){var t=this.props,e=t.className,n=t.style;return o.createElement("div",{className:e,style:n,ref:this.dom})},(0,r.gn)([i.NjZ,(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[Object]),(0,r.w6)("design:returntype",void 0)],e.prototype,"handleChange",null),(0,r.gn)([i.NjZ,(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[Object]),(0,r.w6)("design:returntype",void 0)],e.prototype,"handleBlur",null),(0,r.gn)([i.NjZ,(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[Object]),(0,r.w6)("design:returntype",void 0)],e.prototype,"handleFocus",null),e}(o.Component)},86438:function(t,e,n){"use strict";n.d(e,{Am:function(){return b},ZP:function(){return m}});var r,o=n(70655),i=n(20660),a=n(67294),s=n(61709),u=n(34594),c=n(95483),l=n(7739),p=n.n(l),f=((r={})[i.d0]="in",r[i.cn]="in",r[i.Ix]="out",r),d=null,h=function(t,e,n){void 0===e&&(e={}),d&&d[n]&&d[n](t,(0,o.pi)({},e))},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasRendered=!1,e.state={items:[]},e}return(0,o.ZT)(e,t),e.prototype.componentDidMount=function(){this.hasRendered=!0,d=this},e.prototype.componentWillUnmount=function(){this.hasRendered&&(d=null)},e.prototype.notifiy=function(t,e,n){var r=(n.useMobileUI||this.props.useMobileUI)&&(0,u.tqC)();this.setState((function(i){var a=i.items.concat();return r&&(a=[]),a.push((0,o.pi)((0,o.pi)({body:e,level:t},n),{id:(0,u.M8z)(),position:n.position||(r?"center":n.position),timeout:n.timeout||(r?3e3:void 0)})),{items:a,useMobileUI:r}}))},e.prototype.success=function(t,e){this.notifiy("success",t,e)},e.prototype.error=function(t,e){this.notifiy("error",t,e)},e.prototype.info=function(t,e){this.notifiy("info",t,e)},e.prototype.warning=function(t,e){this.notifiy("warning",t,e)},e.prototype.handleDismissed=function(t){var e,n=this.state.items.concat(),r=(0,o.CR)(n.splice(t,1),1)[0];null===(e=null==r?void 0:r.onDissmiss)||void 0===e||e.call(r),this.setState({items:n})},e.prototype.render=function(){var t=this;if(d&&!this.hasRendered)return null;var e=this.props,n=e.classnames,r=e.className,o=e.timeout,i=e.errorTimeout,s=e.position,c=e.showIcon,l=e.translate,f=e.closeButton,h=e.useMobileUI,y=this.state.items,m=(h||this.state.useMobileUI)&&(0,u.tqC)(),b=p()(y,(function(t){return t.position||s}));return Object.keys(b).map((function(e){var s=b[e];return a.createElement("div",{key:e,className:n("Toast-wrap Toast-wrap--".concat(e.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()}))),{"Toast-mobile":m},r)},s.map((function(e,r){var s,u,p,d=e.level||"info",h=null!==(s=e.timeout)&&void 0!==s?s:"error"===d?i:o;return a.createElement(v,{classnames:n,key:e.id||r,title:e.title,body:e.body,level:d,timeout:h,closeButton:!m&&(null!==(u=e.closeButton)&&void 0!==u?u:f),onDismiss:t.handleDismissed.bind(t,y.indexOf(e)),translate:l,showIcon:null!==(p=e.showIcon)&&void 0!==p?p:c,useMobileUI:m})})))}))},e.defaultProps={position:"top-center",closeButton:!1,timeout:4e3,errorTimeout:6e3,items:[]},e.themeKey="toast",(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[String,Object]),(0,o.w6)("design:returntype",void 0)],e.prototype,"success",null),(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[String,Object]),(0,o.w6)("design:returntype",void 0)],e.prototype,"error",null),(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[String,Object]),(0,o.w6)("design:returntype",void 0)],e.prototype,"info",null),(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[String,Object]),(0,o.w6)("design:returntype",void 0)],e.prototype,"warning",null),e}(a.Component),m=(0,u.YYN)((0,u.eAU)(y)),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={visible:!1},e.mounted=!1,e}return(0,o.ZT)(e,t),e.prototype.componentDidMount=function(){this.mounted=!0,this.setState({visible:!0})},e.prototype.componentWillUnmount=function(){clearTimeout(this.timer),this.mounted=!1},e.prototype.handleMouseEnter=function(){clearTimeout(this.timer)},e.prototype.handleMouseLeave=function(){this.handleEntered()},e.prototype.handleEntered=function(){var t=this.props.timeout;this.mounted&&t&&(this.timer=setTimeout(this.close,t))},e.prototype.close=function(){clearTimeout(this.timer),this.setState({visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.onDismiss,r=e.classnames,o=e.closeButton,l=e.title,p=e.body,d=e.allowHtml,h=e.level,y=e.showIcon,m=e.useMobileUI;e.translate;var v=m?"":"alert-";return a.createElement(i.ZP,{mountOnEnter:!0,unmountOnExit:!0,in:this.state.visible,timeout:750,onEntered:this.handleEntered,onExited:n},(function(e){var n,i,b,g;return a.createElement("div",{className:r("Toast Toast--".concat(h),f[e],{"Toast-mobile--has-icon":m&&!1!==y}),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave,onClick:o?u.ZTd:t.close},!1===y?null:a.createElement("div",{className:r("Toast-icon")},"success"===h?a.createElement(c.JO,{icon:v+"success",className:"icon"}):"error"==h?a.createElement(c.JO,{icon:v+"fail",className:"icon"}):"info"==h?a.createElement(c.JO,{icon:v+"info",className:"icon"}):"warning"==h?a.createElement(c.JO,{icon:v+"warning",className:"icon"}):null),a.createElement("div",{className:r("Toast-content")},"string"==typeof l?a.createElement("span",{className:r("Toast-title")},l):a.isValidElement(l)?a.cloneElement(l,{className:r("Toast-title",null!==(i=null===(n=null==l?void 0:l.props)||void 0===n?void 0:n.className)&&void 0!==i?i:"")}):null,a.isValidElement(p)?a.cloneElement(p,{className:r("Toast-body",null!==(g=null===(b=null==p?void 0:p.props)||void 0===b?void 0:b.className)&&void 0!==g?g:"")}):"string"==typeof p||"object"==typeof p?a.createElement("div",{className:r("Toast-body")},d?a.createElement(s.Z,{html:null==p?void 0:p.toString()}):null==p?void 0:p.toString()):null),o?a.createElement("a",{onClick:t.close,className:r("Toast-close")},a.createElement(c.JO,{icon:"status-close",className:"icon"})):null)}))},e.defaultProps={timeout:5e3,classPrefix:"",position:"top-center",allowHtml:!0,level:"info"},(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[]),(0,o.w6)("design:returntype",void 0)],e.prototype,"handleMouseEnter",null),(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[]),(0,o.w6)("design:returntype",void 0)],e.prototype,"handleMouseLeave",null),(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[]),(0,o.w6)("design:returntype",void 0)],e.prototype,"handleEntered",null),(0,o.gn)([u.NjZ,(0,o.w6)("design:type",Function),(0,o.w6)("design:paramtypes",[]),(0,o.w6)("design:returntype",void 0)],e.prototype,"close",null),e}(a.Component),b={container:d,success:function(t,e){return h(t,e,"success")},error:function(t,e){return h(t,e,"error")},info:function(t,e){return h(t,e,"info")},warning:function(t,e){return h(t,e,"warning")}}},23034:function(t,e,n){"use strict";n.d(e,{$j:function(){return N.Z},Al:function(){return V.Z},Am:function(){return D.Am},Ar:function(){return C.Z},C5:function(){return R.Z},CP:function(){return ht.ZP},Ct:function(){return J.C},Dw:function(){return y.ZP},E4:function(){return at.Z},Ex:function(){return vt.Z},FE:function(){return M.Z},I8:function(){return H.Z},II:function(){return Q.Z},Ij:function(){return Y.Z},JO:function(){return w.JO},Jt:function(){return yt.J},M6:function(){return o.iG},ML:function(){return b.default},MR:function(){return lt.Z},Mt:function(){return h.Z},N4:function(){return nt.Z},Nx:function(){return ft.N},OK:function(){return v.OK},OL:function(){return w.OL},Oe:function(){return L.ZP},Ph:function(){return x.ZP},QE:function(){return K.Z},Qy:function(){return Pt.Z},Rg:function(){return bt.ZP},Rj:function(){return z.Z},T6:function(){return o.T6},TX:function(){return r.Z},TY:function(){return wt.Z},Tr:function(){return P.Z},U1:function(){return $.Z},UO:function(){return f.Z},Vp:function(){return F.Z},Vt:function(){return g.Z},Wz:function(){return U.Z},XZ:function(){return l.Z},Xn:function(){return gt.Z},Y1:function(){return p.ZP},Y2:function(){return Z.Z},Yw:function(){return q.Z},Z9:function(){return o.Z9},Zb:function(){return pt.C},_Z:function(){return et.Z},_f:function(){return ct.Z},aG:function(){return c.ZP},aQ:function(){return st.Z},aV:function(){return S.aVW},ah:function(){return T.Z},dy:function(){return m.Z},e6:function(){return O.Z},eB:function(){return o.eB},ex:function(){return ft.Z},gx:function(){return I.Z},hJ:function(){return Ct.ZP},hm:function(){return tt.Z},i7:function(){return Et.Z},iA:function(){return W.Z},iG:function(){return _.Z},it:function(){return X.i},k2:function(){return i.k2},kS:function(){return L.kS},kd:function(){return bt.kd},l1:function(){return B.Z},mQ:function(){return v.ZP},mp:function(){return k.Z},oF:function(){return ut.Z},oM:function(){return St.Z},p_:function(){return ot.Z},pf:function(){return j.Z},q5:function(){return w.q5},q7:function(){return w.q7},q9:function(){return G.Z},qE:function(){return s.Z},qR:function(){return D.ZP},rU:function(){return dt.Z},rs:function(){return A.Z},tl:function(){return mt.Z},tx:function(){return J.t},u9:function(){return it.Z},u_:function(){return E.Z},v$:function(){return S.v$m},v2:function(){return Ot.Z},vT:function(){return rt.Z},wj:function(){return d.Z},wx:function(){return o.hx},zo:function(){return a.Z},zx:function(){return u.Z}});var r=n(27708),o=n(47750),i=n(44628),a=n(90632),s=n(81839),u=n(64179),c=n(47809),l=n(10156),p=n(87271),f=n(15730),d=n(84935),h=n(12724),y=n(46933),m=n(14850),v=n(98391),b=n(96838),g=n(61709),w=n(95483),C=n(81658),S=n(34594),E=n(54997),P=n(8715),O=n(28506),_=n(19693),x=n(50800),T=n(4686),N=n(55843),A=n(94485),I=n(39972),D=(n(2039),n(86438)),j=(n(10045),n(52014)),k=n(49294),F=n(9544),M=n(77468),R=n(41338),V=n(95318),U=n(91936),Z=(n(85382),n(39501)),z=(n(75896),n(78961)),L=n(73560),H=(n(41649),n(96352),n(43318),n(83496),n(6314),n(73992)),W=n(7095),B=(n(53612),n(74205),n(83225),n(73757)),$=n(12806),q=n(28667),J=n(50819),X=n(8543),Y=n(16996),G=n(68689),K=n(91220),Q=n(86225),tt=n(85148),et=n(11938),nt=n(21686),rt=n(35255),ot=n(95955),it=n(58772),at=n(88505),st=n(88293),ut=n(78024),ct=n(56412),lt=n(14743),pt=n(66e3),ft=n(23499),dt=n(48780),ht=n(91680),yt=n(45526),mt=(n(94018),n(74022)),vt=n(12265),bt=n(79188),gt=n(5232),wt=n(77768),Ct=n(68008),St=n(55686),Et=n(94076),Pt=(n(29463),n(37601),n(46008),n(9224),n(78512),n(42810)),Ot=n(42812);n(50648),n(14791),n(65643),n(14776),n(26831),n(62190),n(40384),n(32311),n(53479),n(24987),n(21676),n(52783),n(67337),n(85579),n(44776),n(24376),n(5406),n(81306),n(3388),n(34269),n(31672),n(68340),n(2723),n(74372),n(55806),n(82295),n(68927),n(26408),n(83228),n(56528),n(6849),n(29350),n(85709),n(89661),n(56400),n(52954),n(54175)},60837:function(t,e,n){"use strict";n.d(e,{$jN:function(){return o.$j},Adl:function(){return r.Adl},AlT:function(){return o.Al},Amu:function(){return o.Am},Ar2:function(){return o.Ar},Bju:function(){return r.Bju},Gtq:function(){return r.Gtq},H_J:function(){return r.H_J},JO$:function(){return o.JO},JO1:function(){return r.JO1},Mpd:function(){return r.Mpd},NjZ:function(){return r.NjZ},OK9:function(){return o.OK},OLP:function(){return o.OL},P6Y:function(){return r.P6Y},PhF:function(){return o.Ph},Rj2:function(){return o.Rj},TXS:function(){return o.TX},Thl:function(){return r.Thl},U1C:function(){return o.U1},UO1:function(){return o.UO},UTL:function(){return r.UTL},Vtq:function(){return o.Vt},Wzg:function(){return o.Wz},XZJ:function(){return o.XZ},Xcl:function(){return r.Xcl},Xwr:function(){return r.Xwr},Y2U:function(){return o.Y2},Z9G:function(){return o.Z9},aVW:function(){return r.aVW},dys:function(){return o.dy},eBb:function(){return o.eB},ghV:function(){return r.ghV},hEs:function(){return r.hEs},hXT:function(){return r.hXT},iGu:function(){return o.M6},joU:function(){return r.joU},k27:function(){return o.k2},l1:function(){return o.l1},mQc:function(){return o.mQ},oQ4:function(){return r.oQ4},pfc:function(){return o.pf},q5g:function(){return o.q5},qRY:function(){return o.qR},rsf:function(){return o.rs},sYA:function(){return r.sYA},u_l:function(){return o.u_},v$m:function(){return r.v$m},wjf:function(){return o.wj},wxo:function(){return o.wx},xJW:function(){return r.xJW},xkX:function(){return r.xkX},zot:function(){return o.zo},zxk:function(){return o.zx}});var r=n(34594),o=n(23034);n(82401),n(6717),n(10923),n(34128),n(32250),n(28530),n(9919),n(59361),n(19218),n(80983),n(89026),n(86102),n(76801),n(51109),n(84746),n(91194),n(54716),n(2637),n(94651),n(84433),n(61637),n(16788),n(40570),n(15236),n(19069),n(34341),n(91120),n(36561),n(72892),n(94025),n(42458),n(66024),n(7339),n(15660),n(32810),n(40602),n(52916),n(3121),n(91887),n(41812),n(42047),n(7329),n(44717),n(43055),n(68158),n(22831),n(93093),n(49060),n(99610),n(81521),n(57545),n(4867),n(15623),n(85895),n(55950),n(10351),n(98337),n(20955),n(54617),n(85299),n(14500),n(5736),n(12741),n(66249),n(38947),n(64759),n(43336),n(12429),n(66023),n(72063),n(97625),n(74610),n(34955),n(68484),n(21424),n(17841),n(96779),n(30806),n(67610),n(80004),n(14477),n(27648),n(29460),n(97970),n(4097),n(66524),n(47063),n(61240),n(26109),n(97843),n(49108),n(75180),n(72925),n(92985),n(66542),n(55296),n(28960),n(66496),n(6737),n(22014),n(4153),n(72904),n(81921),n(64447),n(3299),n(64155),n(77971),n(85746),n(96476),n(16374),n(60642),n(38741),n(4617),n(65586),n(78457),n(97914),n(42623),n(49905),n(78219),n(90478),n(66399),n(70813),n(29238),n(50830),n(52611),n(90618),n(65905),n(57372),n(38432),n(21425),n(42229),n(92409),n(80399),n(94173),n(51629),n(46498),n(63021),n(39320),n(50055),n(40240),n(64826),n(71437),n(93161),n(24293),n(69522)},64759:function(t,e,n){"use strict";n.d(e,{m:function(){return u}});var r=n(70655),o=n(67294),i=n(34594),a=n(23034),s=function(t){function e(e){var n=t.call(this,e)||this;return n.state={focused:!1},n.toDispose=[],n.divRef=o.createRef(),n.prevHeight=0,n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleChange=n.handleChange.bind(n),n.handleEditorMounted=n.handleEditorMounted.bind(n),n}return(0,r.ZT)(e,t),e.prototype.componentWillUnmount=function(){this.toDispose.forEach((function(t){return t()}))},e.prototype.doAction=function(t,e){var n=null==t?void 0:t.actionType,r=this.props,o=r.onChange,i=r.resetValue;"clear"===n?o(""):"reset"===n?o(null!=i?i:""):"focus"===n&&this.focus()},e.prototype.focus=function(){var t,e;this.editor.focus(),this.setState({focused:!0});var n=null===(t=this.editor)||void 0===t?void 0:t.getPosition();null===(e=this.editor)||void 0===e||e.setPosition(n)},e.prototype.handleFocus=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,o,a,s;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e=this.props,n=e.dispatchEvent,o=e.value,a=e.onFocus,this.setState({focused:!0}),[4,n("focus",(0,i.vXk)(this.props,{value:o},"value"))];case 1:return(null==(s=r.sent())?void 0:s.prevented)||null==a||a(t),[2]}}))}))},e.prototype.handleBlur=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,o,a,s;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e=this.props,n=e.dispatchEvent,o=e.value,a=e.onBlur,this.setState({focused:!1}),[4,n("blur",(0,i.vXk)(this.props,{value:o},"value"))];case 1:return(null==(s=r.sent())?void 0:s.prevented)||null==a||a(t),[2]}}))}))},e.prototype.handleChange=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var e,n,o,a;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e=this.props,n=e.dispatchEvent,o=e.onChange,[4,n("change",(0,i.vXk)(this.props,{value:t},"value"))];case 1:return(null==(a=r.sent())?void 0:a.prevented)||null==o||o(t),[2]}}))}))},e.prototype.handleEditorMounted=function(t,e){var n=this;if(this.editor=t,this.toDispose.push(t.onDidChangeModelDecorations((function(){n.updateContainerSize(t,e),requestAnimationFrame(n.updateContainerSize.bind(n,t,e))})).dispose),this.props.editorDidMount){var r=this.props.editorDidMount;"string"==typeof r&&(r=new Function("editor","monaco"));var o=r(t,e);"function"==typeof o&&this.toDispose.push(o)}},e.prototype.updateContainerSize=function(t,e){var n;if(this.divRef.current){var r=t.getOption(e.editor.EditorOption.lineHeight),o=(null===(n=t.getModel())||void 0===n?void 0:n.getLineCount())||1,i=t.getTopForLineNumber(o+1)+r;this.prevHeight!==i&&(this.prevHeight=i,this.divRef.current.style.height="".concat(i,"px"),t.layout())}},e.prototype.render=function(){var t,e=this.props,n=e.className;e.style;var s=e.classPrefix,u=e.classnames,c=e.value;e.onChange;var l=e.disabled,p=e.options,f=e.editorTheme,d=e.size,h=e.data,y=e.allowFullscreen,m=e.placeholder,v=this.props.language,b=c;return b&&"string"!=typeof b&&(b=JSON.stringify(b,null,2)),(0,i.SSQ)(v)&&(v=(0,i.OgC)(v,h)),o.createElement("div",{ref:this.divRef,className:u("EditorControl",(t={"is-focused":this.state.focused},t["EditorControl--".concat(d)]=d,t),n)},o.createElement(i.crj,{classPrefix:s,component:a.ML,allowFullscreen:y,value:b,onChange:this.handleChange,disabled:l,onFocus:this.handleFocus,onBlur:this.handleBlur,language:v,editorTheme:f,editorDidMount:this.handleEditorMounted,childProps:{placeholder:m},options:(0,r.pi)((0,r.pi)({},p),{readOnly:l})}))},e.defaultProps={language:"javascript",editorTheme:"vs",allowFullscreen:!0,options:{automaticLayout:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}}},(0,r.gn)([i.NjZ,(0,r.w6)("design:type",Function),(0,r.w6)("design:paramtypes",[Object,Object]),(0,r.w6)("design:returntype",void 0)],e.prototype,"updateContainerSize",null),e}(o.Component),u=["bat","c","coffeescript","cpp","csharp","css","dockerfile","fsharp","go","handlebars","html","ini","java","javascript","json","less","lua","markdown","msdax","objective-c","php","plaintext","postiats","powershell","pug","python","r","razor","ruby","sb","scss","sol","shell","sql","swift","typescript","vb","xml","yaml"];u.map((function(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(n,e),n.lang=t,n.displayName="".concat(t[0].toUpperCase()).concat(t.substring(1),"EditorControlRenderer"),n.defaultProps=(0,r.pi)((0,r.pi)({},s.defaultProps),{language:t}),(0,r.gn)([(0,i.xJW)({type:"".concat(t,"-editor"),sizeMutable:!1})],n)}(s);return e})),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}(0,r.ZT)(e,t),e.defaultProps=(0,r.pi)((0,r.pi)({},s.defaultProps),{language:"javascript"}),e=(0,r.gn)([(0,i.xJW)({type:"js-editor",sizeMutable:!1})],e)}(s),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}(0,r.ZT)(e,t),e.defaultProps=(0,r.pi)((0,r.pi)({},s.defaultProps),{language:"typescript"}),e=(0,r.gn)([(0,i.xJW)({type:"ts-editor",sizeMutable:!1})],e)}(s),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}(0,r.ZT)(e,t),e.defaultProps=(0,r.pi)((0,r.pi)({},s.defaultProps),{language:"javascript"}),e=(0,r.gn)([(0,i.xJW)({type:"editor",sizeMutable:!1})],e)}(s)},9669:function(t,e,n){t.exports=n(51609)},59481:function(t,e,n){"use strict";var r=n(67294),o=n(73935),i=n(29323),a=n(60837),s=n(9669),u=n.n(s),c=n(87462),l=n(67090),p=l.V5.model("Page",{id:l.V5.identifier,icon:"",path:"",label:"",schema:l.V5.frozen({})}).views((function(t){return{}})).actions((function(t){return{updateSchema:function(e){t.schema=e}}})),f=n(22188),d=1,h=l.V5.model("MainStore",{pages:l.V5.optional(l.V5.array(p),[{id:""+d,path:"hello-world",label:"Hello world",icon:"fa fa-file",schema:{type:"page",title:"Hello world",body:"初始页面"}}]),theme:"cxd",asideFixed:!0,asideFolded:!1,offScreen:!1,addPageIsOpen:!1,preview:!1,isMobile:!1,schema:l.V5.frozen()}).views((function(t){return{get fetcher(){return(0,l.dU)(t).fetcher},get notify(){return(0,l.dU)(t).notify},get alert(){return(0,l.dU)(t).alert},get copy(){return(0,l.dU)(t).copy}}})).actions((function(t){return{toggleAsideFolded:function(){t.asideFolded=!t.asideFolded},toggleAsideFixed:function(){t.asideFixed=!t.asideFixed},toggleOffScreen:function(){t.offScreen=!t.offScreen},setAddPageIsOpen:function(e){t.addPageIsOpen=e},addPage:function(e){t.pages.push(p.create((0,c.Z)({},e,{id:""+ ++d})))},removePageAt:function(e){t.pages.splice(e,1)},updatePageSchemaAt:function(e){t.pages[e].updateSchema(t.schema)},updateSchema:function(e){t.schema=e},setPreview:function(e){t.preview=e},setIsMobile:function(e){t.isMobile=e},afterCreate:function(){if("undefined"!=typeof window&&window.localStorage){var e=window.localStorage.getItem("store");e&&(0,l.Xx)(t,JSON.parse(e)),(0,f.U5)((function(){return(0,l.vM)(t)}),(function(t){window.localStorage.setItem("store",JSON.stringify(t))}))}}}})),y=n(5513),m=n(92487),v=r.lazy((function(){return n.e(7578).then(n.bind(n,27578))})),b=r.lazy((function(){return Promise.all([n.e(3565),n.e(8842)]).then(n.bind(n,88842))})),g=(0,i.Pi)((function(t){return t.store,r.createElement(y.UT,null,r.createElement("div",{className:"routes-wrapper"},r.createElement(a.qRY,{key:"toast",position:"top-right"}),r.createElement(a.wxo,{key:"alert"}),r.createElement(r.Suspense,{fallback:r.createElement(a.$jN,{overlay:!0,className:"m-t-lg",size:"lg"})},r.createElement(m.rs,null,r.createElement(m.l_,{to:"/hello-world",from:"/",exact:!0}),r.createElement(m.AW,{path:"/edit/:id",component:b}),r.createElement(m.AW,{component:v})))))})),w=n(20640),C=n.n(w);function S(){var t=window.store=h.create({},{fetcher:function(t){var e=t.url,n=t.method,r=t.data,o=t.config,i=t.headers;return(o=o||{}).headers=o.headers||i||{},o.withCredentials=!0,"post"!==n&&"put"!==n&&"patch"!==n?(r&&(o.params=r),u()[n](e,o)):(r&&r instanceof FormData||!r||"string"==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),o.headers["Content-Type"]="application/json"),u()[n](e,r,o))},isCancel:function(t){return u().isCancel(t)},notify:function(t,e){a.Amu[t]?a.Amu[t](e,"error"===t?"系统错误":"系统消息"):console.warn("[Notify]",t,e),console.log("[notify]",t,e)},alert:a.Z9G,confirm:a.iGu,copy:function(t,e){void 0===e&&(e={});var n=C()(t,e);return n&&(!e||!0!==e.shutup)&&a.Amu.info("内容已拷贝到剪切板"),n}});return r.createElement(i.zt,{store:t},r.createElement(g,{store:t}))}n(23449),n(65637),n(52064),n(89061),n(73354),n(16923),n(75785),o.render(r.createElement(S,null),document.getElementById("root"))},20640:function(t,e,n){"use strict";var r=n(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,i,a,s,u,c,l=!1;e||(e={}),n=e.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=t,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),e.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[e.format]||o.default;window.clipboardData.setData(i,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t);e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,t)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},18446:function(t,e,n){var r=n(90939);t.exports=function(t,e){return r(t,e)}},10928:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},82492:function(t,e,n){var r=n(42980),o=n(21463)((function(t,e,n){r(t,e,n)}));t.exports=o},57557:function(t,e,n){var r=n(29932),o=n(85990),i=n(57406),a=n(71811),s=n(98363),u=n(60696),c=n(99021),l=n(46904),p=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=a(e,t),c||(c=e.length>1),e})),s(t,l(t),n),c&&(n=o(n,7,u));for(var p=e.length;p--;)i(n,e[p]);return n}));t.exports=p},44908:function(t,e,n){var r=n(45652);t.exports=function(t){return t&&t.length?r(t):[]}},22933:function(){},83130:function(){},21197:function(){},29323:function(t,e,n){"use strict";n.d(e,{Pi:function(){return D},f3:function(){return R},zt:function(){return F}});var r=n(22188),o=n(67294),i=n(13271),a=0,s={};function u(t){return s[t]||(s[t]=function(t){if("function"==typeof Symbol)return Symbol(t);var e="__$mobx-react "+t+" ("+a+")";return a++,e}(t)),s[t]}function c(t,e){if(l(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i"}function _(t){var e=this;if(!0===(0,i.FY)())return t.call(this);f(this,S,!1),f(this,E,!1);var n=O(this),a=t.bind(this),s=!1,u=new r.le(n+".render()",(function(){if(!s&&(s=!0,!0!==e[C])){var t=!0;try{f(e,E,!0),e[S]||o.Component.prototype.forceUpdate.call(e),t=!1}finally{f(e,E,!1),t&&u.dispose()}}}));function c(){s=!1;var t=void 0,e=void 0;if(u.track((function(){try{e=(0,r.$$)(!1,a)}catch(e){t=e}})),t)throw t;return e}return u.reactComponent=this,c[g]=u,this.render=c,c.call(this)}function x(t,e){return(0,i.FY)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==e||!c(this.props,t)}function T(t,e){var n=u("reactProp_"+e+"_valueHolder"),o=u("reactProp_"+e+"_atomHolder");function i(){return this[o]||f(this,o,(0,r.cp)("reactive "+e)),this[o]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return r.wM&&r.mJ&&(t=(0,r.wM)(!0)),i.call(this).reportObserved(),r.wM&&r.mJ&&(0,r.mJ)(t),this[n]},set:function(t){this[E]||c(this[n],t)?f(this,n,t):(f(this,n,t),f(this,S,!0),i.call(this).reportChanged(),f(this,S,!1))}})}var N="function"==typeof Symbol&&Symbol.for,A=N?Symbol.for("react.forward_ref"):"function"==typeof o.forwardRef&&(0,o.forwardRef)((function(t){return null})).$$typeof,I=N?Symbol.for("react.memo"):"function"==typeof o.memo&&(0,o.memo)((function(t){return null})).$$typeof;function D(t){if(!0===t.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),I&&t.$$typeof===I)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(A&&t.$$typeof===A){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return(0,o.forwardRef)((function(){var t=arguments;return(0,o.createElement)(i.Qj,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(o.Component,t)?P(t):(0,i.Pi)(t)}function j(){return j=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,["children"]),r=o.useContext(k),i=o.useRef(j({},r,n)).current;return o.createElement(k.Provider,{value:i},e)}function M(t,e,n,r){var i,a,s,u=o.forwardRef((function(n,r){var i=j({},n),a=o.useContext(k);return Object.assign(i,t(a||{},i)||{}),r&&(i.ref=r),o.createElement(e,i)}));return r&&(u=D(u)),u.isMobxInjector=!0,i=e,a=u,s=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach((function(t){p[t]||-1!==s.indexOf(t)||Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(i,t))})),u.wrappedComponent=e,u.displayName=function(t,e){var n=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e?"inject-with-"+e+"("+n+")":"inject("+n+")"}(e,n),u}function R(){for(var t=arguments.length,e=new Array(t),n=0;n=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],e=0;e";return this.type.name+"@"+t+(this.isAlive?"":" [dead]")},e.prototype.die=function(){this.isAlive&&this.state!==K.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},e.prototype.aboutToDie=function(){this.baseAboutToDie()},e.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},e.prototype.fireHook=function(t){this.fireInternalHook(t)},p([o.aD],e.prototype,"die",null),e}(_),T=1,N={onError:function(t){throw t}},A=function(t){function e(e,n,r,o,i){var a=t.call(this,e,n,r,o)||this;if(a.nodeId=++T,a.isProtectionEnabled=!0,a._autoUnbox=!0,a._isRunningAction=!1,a._hasSnapshotReaction=!1,a._observableInstanceState=0,a._cachedInitialSnapshotCreated=!1,a.unbox=a.unbox.bind(a),a._initialSnapshot=i,a.identifierAttribute=e.identifierAttribute,n||(a.identifierCache=new tt),a._childNodes=e.initializeChildNodes(a,a._initialSnapshot),a.identifier=null,a.unnormalizedIdentifier=null,a.identifierAttribute&&a._initialSnapshot){var s=a._initialSnapshot[a.identifierAttribute];if(void 0===s){var u=a._childNodes[a.identifierAttribute];u&&(s=u.value)}if("string"!=typeof s&&"number"!=typeof s)throw dt("Instance identifier '"+a.identifierAttribute+"' for type '"+a.type.name+"' must be a string or a number");a.identifier=Ae(s),a.unnormalizedIdentifier=s}return n?n.root.identifierCache.addNodeToCache(a):a.identifierCache.addNodeToCache(a),a}return c(e,t),e.prototype.applyPatches=function(t){this.createObservableInstanceIfNeeded(),this._applyPatches(t)},e.prototype.applySnapshot=function(t){this.createObservableInstanceIfNeeded(),this._applySnapshot(t)},e.prototype.createObservableInstanceIfNeeded=function(){0===this._observableInstanceState&&this.createObservableInstance()},e.prototype.createObservableInstance=function(){var t,e;this._observableInstanceState=1;for(var n=[],i=this.parent;i&&0===i._observableInstanceState;)n.unshift(i),i=i.parent;try{for(var a=f(n),s=a.next();!s.done;s=a.next())s.value.createObservableInstanceIfNeeded()}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}var u=this.type;try{this.storedValue=u.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,u.finalizeNewInstance(this,this.storedValue)}catch(t){throw this.state=K.DEAD,t}finally{this._isRunningAction=!1}this._observableInstanceState=2,(0,o.qp)(this,"snapshot").trackAndCompute(),this.isRoot&&this._addSnapshotReaction(),this._childNodes=pt,this.state=K.CREATED,this.fireHook(r.afterCreate),this.finalizeCreation()},Object.defineProperty(e.prototype,"root",{get:function(){var t=this.parent;return t?t.root:this},enumerable:!1,configurable:!0}),e.prototype.clearParent=function(){if(this.parent){this.fireHook(r.beforeDetach);var t=this.state;this.state=K.DETACHING;var e=this.root,n=e.environment,o=e.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=o}finally{this.state=t}}},e.prototype.setParent=function(t,e){var n=t!==this.parent,o=e!==this.subpath;(n||o)&&(n?(this.environment=void 0,t.root.identifierCache.mergeCache(this),this.baseSetParent(t,e),this.fireHook(r.afterAttach)):o&&this.baseSetParent(this.parent,e))},e.prototype.fireHook=function(t){var e=this;this.fireInternalHook(t);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[t];"function"==typeof n&&(o.vB?(0,o.vB)((function(){n.apply(e.storedValue)})):n.apply(this.storedValue))},Object.defineProperty(e.prototype,"snapshot",{get:function(){return this.getSnapshot()},enumerable:!1,configurable:!0}),e.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},e.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},e.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var t=this.type,e=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=t.processInitialSnapshot(e,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},e.prototype.isRunningAction=function(){return!!this._isRunningAction||!this.isRoot&&this.parent.isRunningAction()},e.prototype.assertAlive=function(t){var e,n=s();if(!this.isAlive&&"ignore"!==n){var r=this._getAssertAliveError(t);switch(n){case"error":throw dt(r);case"warn":e=r,console.warn(new Error("[mobx-state-tree] "+e))}}},e.prototype._getAssertAliveError=function(t){var e=this.getEscapedPath(!1)||this.pathUponDeath||"",n=t.subpath&&Dt(t.subpath)||"",r=t.actionContext||U();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var o,i="";return r&&null!=r.name&&(i=(r&&r.context&&(ot(o=r.context,1),it(o).path)||e)+"."+r.name+"()"),"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+e+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},e.prototype.getChildNode=function(t){this.assertAlive({subpath:t}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,t):this._childNodes[t]}finally{this._autoUnbox=!0}},e.prototype.getChildren=function(){this.assertAlive(pt),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):ct(this._childNodes)}finally{this._autoUnbox=!0}},e.prototype.getChildType=function(t){return this.type.getChildType(t)},Object.defineProperty(e.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!1,configurable:!0}),e.prototype.assertWritable=function(t){if(this.assertAlive(t),!this.isRunningAction()&&this.isProtected)throw dt("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},e.prototype.removeChild=function(t){this.type.removeChild(this,t)},e.prototype.unbox=function(t){return t?(this.assertAlive({subpath:t.subpath||t.subpathUponDeath}),this._autoUnbox?t.value:t):t},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"",e=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+t+e+(this.isAlive?"":" [dead]")},e.prototype.finalizeCreation=function(){var t=this;this.baseFinalizeCreation((function(){var e,n;try{for(var o=f(t.getChildren()),i=o.next();!i.done;i=o.next())i.value.finalizeCreation()}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}t.fireInternalHook(r.afterCreationFinalization)}))},e.prototype.detach=function(){if(!this.isAlive)throw dt("Error while detaching, node is not alive.");this.clearParent()},e.prototype.preboot=function(){var t=this;this._applyPatches=H(this.storedValue,"@APPLY_PATCHES",(function(e){e.forEach((function(e){var n=function(t){var e=t.split("/").map(jt);if(!(""===t||"."===t||".."===t||Ot(t,"/")||Ot(t,"./")||Ot(t,"../")))throw dt("a json path must be either rooted, empty or relative, but got '"+t+"'");return""===e[0]&&e.shift(),e}(e.path);ut(t,n.slice(0,-1)).applyPatchLocally(n[n.length-1],e)}))})),this._applySnapshot=H(this.storedValue,"@APPLY_SNAPSHOT",(function(e){if(e!==t.snapshot)return t.type.applySnapshot(t,e)})),Ct(this.storedValue,"$treenode",this),Ct(this.storedValue,"toJSON",st)},e.prototype.die=function(){this.isAlive&&this.state!==K.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach((function(t){t.aboutToDie()})),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},e.prototype.finalizeDeath=function(){this.getChildren().forEach((function(t){t.finalizeDeath()})),this.root.identifierCache.notifyDied(this);var t=this.snapshot;this._snapshotUponDeath=t,this._internalEventsClearAll(),this.baseFinalizeDeath()},e.prototype.onSnapshot=function(t){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",t)},e.prototype.emitSnapshot=function(t){this._internalEventsEmit("snapshot",t)},e.prototype.onPatch=function(t){return this._internalEventsRegister("patch",t)},e.prototype.emitPatch=function(t,e){if(this._internalEventsHasSubscribers("patch")){var n=function(t){for(var e=[],n=1;n=0&&this.middlewares.splice(e,1)}},e.prototype.addMiddleWare=function(t,e){var n=this;void 0===e&&(e=!0);var r={handler:t,includeHooks:e};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}},e.prototype.applyPatchLocally=function(t,e){this.assertWritable({subpath:t}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,t,e)},e.prototype._addSnapshotReaction=function(){var t=this;if(!this._hasSnapshotReaction){var e=(0,o.U5)((function(){return t.snapshot}),(function(e){return t.emitSnapshot(e)}),N);this.addDisposer(e),this._hasSnapshotReaction=!0}},e.prototype._internalEventsHasSubscribers=function(t){return!!this._internalEvents&&this._internalEvents.hasSubscribers(t)},e.prototype._internalEventsRegister=function(t,e,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new Et),this._internalEvents.register(t,e,n)},e.prototype._internalEventsHas=function(t,e){return!!this._internalEvents&&this._internalEvents.has(t,e)},e.prototype._internalEventsUnregister=function(t,e){this._internalEvents&&this._internalEvents.unregister(t,e)},e.prototype._internalEventsEmit=function(t){for(var e,n=[],r=1;r0},enumerable:!1,configurable:!0})}();var R,V=1;function U(){return R}function Z(){return V++}function z(t,e){var n=it(t.context);"action"===t.type&&n.assertAlive({actionContext:t});var i=n._isRunningAction;n._isRunningAction=!0;var a=R;R=t;try{return function(t,e,n){var i=new W(t,n);if(i.isEmpty)return(0,o.aD)(n).apply(null,e.args);var a=null;return function t(e){var s=i.getNextMiddleware(),u=s&&s.handler;return u?!s.includeHooks&&r[e.name]?t(e):(u(e,(function(e,n){a=t(e),n&&(a=n(a))}),(function(t){a=t})),a):(0,o.aD)(n).apply(null,e.args)}(e)}(n,t,e)}finally{R=a,n._isRunningAction=i}}function L(t){if(t)return"action"===t.type?t:t.parentActionEvent}function H(t,e,n){var r=function(){var r=Z(),o=R,i=L(o);return z({type:"action",name:e,id:r,args:Pt(arguments),context:t,tree:w(t),rootId:o?o.rootId:r,parentId:o?o.id:0,allParentIds:o?h(o.allParentIds,[o.id]):[],parentEvent:o,parentActionEvent:i},n)};return r._isMSTAction=!0,r}var W=function(){function t(t,e){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],e.$mst_middleware&&this.middlewares.push(e.$mst_middleware);for(var n=t;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!1,configurable:!0}),t.prototype.getNextMiddleware=function(){var t=this.middlewares[this.arrayIndex];if(t)return t[this.inArrayIndex++]||(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())},t}();function B(t){return"function"==typeof t?"":rt(t)?"<"+t+">":"`"+function(t){try{return JSON.stringify(t)}catch(t){return""}}(t)+"`"}function $(t){var e=t.value,n=t.context[t.context.length-1].type,r=t.context.map((function(t){return t.path})).filter((function(t){return t.length>0})).join("/"),o=r.length>0?'at path "/'+r+'" ':"",i=rt(e)?"value of type "+it(e).type.name+":":wt(e)?"value":"snapshot",a=n&&rt(e)&&n.is(it(e).snapshot);return""+o+i+" "+B(e)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(t.message?" ("+t.message+")":"")+(n?function(t){return F(t)&&(t.flags&(O.String|O.Number|O.Integer|O.Boolean|O.Date))>0}(n)||wt(e)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(a?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function q(t,e,n){return t.concat([{path:e,type:n}])}function J(){return lt}function X(t,e,n){return[{context:t,value:e,message:n}]}function Y(t){return t.reduce((function(t,e){return t.concat(e)}),[])}function G(t,e){"undefined"!=typeof process&&process.env&&"true"===process.env.ENABLE_TYPE_CHECK&&function(t,e){var n=t.validate(e,[{path:"",type:t}]);if(n.length>0)throw dt(function(t,e,n){var r;if(0!==n.length)return"Error while converting "+(((r=B(e)).length<280?r:r.substring(0,272)+"......"+r.substring(r.length-8))+" to `")+t.name+"`:\n\n "+n.map($).join("\n ")}(t,e,n))}(t,e)}var K,Q=0,tt=function(){function t(){this.cacheId=Q++,this.cache=o.LO.map(),this.lastCacheModificationPerId=o.LO.map()}return t.prototype.updateLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t);this.lastCacheModificationPerId.set(t,void 0===e?1:e+1)},t.prototype.getLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t)||0;return this.cacheId+"-"+e},t.prototype.addNodeToCache=function(t,e){if(void 0===e&&(e=!0),t.identifierAttribute){var n=t.identifier;this.cache.has(n)||this.cache.set(n,o.LO.array([],ft));var r=this.cache.get(n);if(-1!==r.indexOf(t))throw dt("Already registered");r.push(t),e&&this.updateLastCacheModificationPerId(n)}},t.prototype.mergeCache=function(t){var e=this;(0,o.VO)(t.identifierCache.cache).forEach((function(t){return t.forEach((function(t){e.addNodeToCache(t)}))}))},t.prototype.notifyDied=function(t){if(t.identifierAttribute){var e=t.identifier,n=this.cache.get(e);n&&(n.remove(t),n.length||this.cache.delete(e),this.updateLastCacheModificationPerId(t.identifier))}},t.prototype.splitCache=function(e){var n=this,r=new t,i=e.path;return(0,o.qh)(this.cache).forEach((function(t){for(var e=d(t,2),o=e[0],a=e[1],s=!1,u=a.length-1;u>=0;u--)0===a[u].path.indexOf(i)&&(r.addNodeToCache(a[u],!1),a.splice(u,1),s=!0);s&&n.updateLastCacheModificationPerId(o)})),r},t.prototype.has=function(t,e){var n=this.cache.get(e);return!!n&&n.some((function(e){return t.isAssignableFrom(e.type)}))},t.prototype.resolve=function(t,e){var n=this.cache.get(e);if(!n)return null;var r=n.filter((function(e){return t.isAssignableFrom(e.type)}));switch(r.length){case 0:return null;case 1:return r[0];default:throw dt("Cannot resolve a reference to type '"+t.name+"' with id: '"+e+"' unambigously, there are multiple candidates: "+r.map((function(t){return t.path})).join(", "))}},t}();function et(t,e,n,r,o){var i=at(o);if(i){if(i.parent)throw dt("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(e?e.path:"")+"/"+n+"', but it lives already at '"+i.path+"'");return e&&i.setParent(e,n),i}return new A(t,e,n,r,o)}function nt(t,e,n,r,o){return new x(t,e,n,r,o)}function rt(t){return!(!t||!t.$treenode)}function ot(t,e){_t()}function it(t){if(!rt(t))throw dt("Value "+t+" is no MST Node");return t.$treenode}function at(t){return t&&t.$treenode||null}function st(){return it(this).snapshot}function ut(t,e,n){void 0===n&&(n=!0);for(var r=t,o=0;o0},enumerable:!1,configurable:!0}),t.prototype.register=function(t,e){var n=this;return void 0===e&&(e=!1),e?this.handlers.unshift(t):this.handlers.push(t),function(){n.unregister(t)}},t.prototype.has=function(t){return this.handlers.indexOf(t)>=0},t.prototype.unregister=function(t){var e=this.handlers.indexOf(t);e>=0&&this.handlers.splice(e,1)},t.prototype.clear=function(){this.handlers.length=0},t.prototype.emit=function(){for(var t=[],e=0;e0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return this._determineIdentifierMode(),et(this,t,e,n,r)},e.prototype._determineIdentifierMode=function(){if(this.identifierMode===Ft.UNKNOWN){var t=[];if(Vt(this._subType,t)){var e=void 0;t.forEach((function(t){if(t.identifierAttribute){if(e&&e!==t.identifierAttribute)throw dt("The objects in a map should all have the same identifier attribute, expected '"+e+"', but child of type '"+t.name+"' declared attribute '"+t.identifierAttribute+"' as identifier");e=t.identifierAttribute}})),e?(this.identifierMode=Ft.YES,this.mapIdentifierAttribute=e):this.identifierMode=Ft.NO}}},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e={});var n=t.type._subType,r={};return Object.keys(e).forEach((function(o){r[o]=n.instantiate(t,o,void 0,e[o])})),r},e.prototype.createNewInstance=function(t){return new Ut(t)},e.prototype.finalizeNewInstance=function(t,e){(0,o.Nv)(e,t.unbox),t.type.hookInitializers.forEach((function(t){var n=t(e);Object.keys(n).forEach((function(t){var r=n[t],o=H(e,t,r);Ct(e,t,o)}))})),(0,o.Su)(e,this.willChange),(0,o.N7)(e,this.didChange)},e.prototype.describe=function(){return"Map"},e.prototype.getChildren=function(t){return(0,o.VO)(t.storedValue)},e.prototype.getChildNode=function(t,e){var n=t.storedValue.get(""+e);if(!n)throw dt("Not a child "+e);return n},e.prototype.willChange=function(t){var e=it(t.object),n=t.name;e.assertWritable({subpath:n});var r=e.type,o=r._subType;switch(t.type){case"update":var i=t.newValue;if(i===t.object.get(n))return null;G(o,i),t.newValue=o.reconcile(e.getChildNode(n),t.newValue,e,n),r.processIdentifier(n,t.newValue);break;case"add":G(o,t.newValue),t.newValue=o.instantiate(e,n,void 0,t.newValue),r.processIdentifier(n,t.newValue)}return t},e.prototype.processIdentifier=function(t,e){if(this.identifierMode===Ft.YES&&e instanceof A){var n=e.identifier;if(n!==t)throw dt("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+t+"'")}},e.prototype.getSnapshot=function(t){var e={};return t.getChildren().forEach((function(t){e[t.subpath]=t.snapshot})),e},e.prototype.processInitialSnapshot=function(t){var e={};return Object.keys(t).forEach((function(n){e[n]=t[n].getSnapshot()})),e},e.prototype.didChange=function(t){var e=it(t.object);switch(t.type){case"update":return void e.emitPatch({op:"replace",path:Dt(t.name),value:t.newValue.snapshot,oldValue:t.oldValue?t.oldValue.snapshot:void 0},e);case"add":return void e.emitPatch({op:"add",path:Dt(t.name),value:t.newValue.snapshot,oldValue:void 0},e);case"delete":var n=t.oldValue.snapshot;return t.oldValue.die(),void e.emitPatch({op:"remove",path:Dt(t.name),oldValue:n},e)}},e.prototype.applyPatchLocally=function(t,e,n){var r=t.storedValue;switch(n.op){case"add":case"replace":r.set(e,n.value);break;case"remove":r.delete(e)}},e.prototype.applySnapshot=function(t,e){G(this,e);var n=t.storedValue,r={};if(Array.from(n.keys()).forEach((function(t){r[t]=!1})),e)for(var o in e)n.set(o,e[o]),r[""+o]=!0;Object.keys(r).forEach((function(t){!1===r[t]&&n.delete(t)}))},e.prototype.getChildType=function(){return this._subType},e.prototype.isValidSnapshot=function(t,e){var n=this;return bt(t)?Y(Object.keys(t).map((function(r){return n._subType.validate(t[r],q(e,r,n._subType))}))):X(e,t,"Value is not a plain object")},e.prototype.getDefaultSnapshot=function(){return pt},e.prototype.removeChild=function(t,e){t.storedValue.delete(e)},p([o.aD],e.prototype,"applySnapshot",null),e}(j),zt=function(t){function e(e,n,r){void 0===r&&(r=[]);var o=t.call(this,e)||this;return o._subType=n,o.flags=O.Array,o.hookInitializers=[],o.hookInitializers=r,o}return c(e,t),e.prototype.hooks=function(t){var n=this.hookInitializers.length>0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return et(this,t,e,n,r)},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e=[]);var n=t.type._subType,r={};return e.forEach((function(e,o){var i=""+o;r[i]=n.instantiate(t,i,void 0,e)})),r},e.prototype.createNewInstance=function(t){return o.LO.array(ct(t),ft)},e.prototype.finalizeNewInstance=function(t,e){(0,o.kS)(e).dehancer=t.unbox,t.type.hookInitializers.forEach((function(t){var n=t(e);Object.keys(n).forEach((function(t){var r=n[t],o=H(e,t,r);Ct(e,t,o)}))})),(0,o.Su)(e,this.willChange),(0,o.N7)(e,this.didChange)},e.prototype.describe=function(){return this._subType.describe()+"[]"},e.prototype.getChildren=function(t){return t.storedValue.slice()},e.prototype.getChildNode=function(t,e){var n=Number(e);if(n=0;n--)e.emitPatch({op:"remove",path:""+(t.index+n),oldValue:t.removed[n].snapshot},e);for(n=0;n0)return n;var r=rt(t)?it(t).snapshot:t;return this._predicate(r)?J():X(e,t,this._message(t))},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,e,n,r)},e.prototype.getSubTypes=function(){return this._subtype},e}(D),ue=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._types=n,o._eager=!0,r=l({eager:!0,dispatcher:void 0},r),o._dispatcher=r.dispatcher,r.eager||(o._eager=!1),o}return c(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){var t=O.Union;return this._types.forEach((function(e){t|=e.flags})),t},enumerable:!1,configurable:!0}),e.prototype.isAssignableFrom=function(t){return this._types.some((function(e){return e.isAssignableFrom(t)}))},e.prototype.describe=function(){return"("+this._types.map((function(t){return t.describe()})).join(" | ")+")"},e.prototype.instantiate=function(t,e,n,r){var o=this.determineType(r,void 0);if(!o)throw dt("No matching type for union "+this.describe());return o.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){var o=this.determineType(e,t.type);if(!o)throw dt("No matching type for union "+this.describe());return o.reconcile(t,e,n,r)},e.prototype.determineType=function(t,e){return this._dispatcher?this._dispatcher(t):e?e.is(t)?e:this._types.filter((function(t){return t!==e})).find((function(e){return e.is(t)})):this._types.find((function(e){return e.is(t)}))},e.prototype.isValidSnapshot=function(t,e){if(this._dispatcher)return this._dispatcher(t).validate(t,e);for(var n=[],r=0,o=0;o=0){var o=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(t,e,n,o)}return this._subtype.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,this.optionalValues.indexOf(e)<0&&this._subtype.is(e)?e:this.getDefaultInstanceOrSnapshot(),n,r)},e.prototype.getDefaultInstanceOrSnapshot=function(){var t="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&G(this,t),t},e.prototype.isValidSnapshot=function(t,e){return this.optionalValues.indexOf(t)>=0?J():this._subtype.validate(t,e)},e.prototype.isAssignableFrom=function(t){return this._subtype.isAssignableFrom(t)},e.prototype.getSubTypes=function(){return this._subtype},e}(D);function pe(t,e,n){return function(t,e){if("function"!=typeof e&&rt(e))throw dt("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");M()}(0,e),new le(t,e,n||fe)}var fe=[void 0],de=pe(ne,void 0),he=pe(ee,null);function ye(t){return M(),ce(t,de)}var me=function(t){function e(e,n){var r=t.call(this,e)||this;return r._definition=n,r}return c(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|O.Late},enumerable:!1,configurable:!0}),e.prototype.getSubType=function(t){if(!this._subType){var e=void 0;try{e=this._definition()}catch(t){if(!(t instanceof ReferenceError))throw t;e=void 0}if(t&&void 0===e)throw dt("Late type seems to be used too early, the definition (still) returns undefined");e&&(this._subType=e)}return this._subType},e.prototype.instantiate=function(t,e,n,r){return this.getSubType(!0).instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this.getSubType(!0).reconcile(t,e,n,r)},e.prototype.describe=function(){var t=this.getSubType(!1);return t?t.name:""},e.prototype.isValidSnapshot=function(t,e){var n=this.getSubType(!1);return n?n.validate(t,e):J()},e.prototype.isAssignableFrom=function(t){var e=this.getSubType(!1);return!!e&&e.isAssignableFrom(t)},e.prototype.getSubTypes=function(){return this.getSubType(!1)||I},e}(D),ve=function(t){function e(e){var n=t.call(this,e?"frozen("+e.name+")":"frozen")||this;return n.subType=e,n.flags=O.Frozen,n}return c(e,t),e.prototype.describe=function(){return""},e.prototype.instantiate=function(t,e,n,r){return nt(this,t,e,n,r)},e.prototype.isValidSnapshot=function(t,e){return function(t){return"function"!=typeof t}(t)?this.subType?this.subType.validate(t,e):J():X(e,t,"Value is not serializable and cannot be frozen")},e}(k),be=new ve,ge=function(){function t(t,e){if(this.targetType=e,Ie(t))this.identifier=t;else{if(!rt(t))throw dt("Can only store references to tree nodes or identifiers, got: '"+t+"'");var n=it(t);if(!n.identifierAttribute)throw dt("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null==r)throw dt("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return t.prototype.updateResolvedReference=function(t){var e=Ae(this.identifier),n=t.root,r=n.identifierCache.getLastCacheModificationPerId(e);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var o=this.targetType,i=n.identifierCache.resolve(o,e);if(!i)throw new we("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+t.path+")");this.resolvedReference={node:i,lastCacheModification:r}}},Object.defineProperty(t.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!1,configurable:!0}),t}(),we=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return c(e,t),e}(Error),Ce=function(t){function e(e,n){var r=t.call(this,"reference("+e.name+")")||this;return r.targetType=e,r.onInvalidated=n,r.flags=O.Reference,r}return c(e,t),e.prototype.describe=function(){return this.name},e.prototype.isAssignableFrom=function(t){return this.targetType.isAssignableFrom(t)},e.prototype.isValidSnapshot=function(t,e){return Ie(t)?J():X(e,t,"Value is not a valid identifier, which is a string or a number")},e.prototype.fireInvalidated=function(t,e,n,r){var o=e.parent;if(o&&o.isAlive){var i=o.storedValue;i&&this.onInvalidated({cause:t,parent:i,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(t){m(e.root.storedValue,{op:"replace",value:t,path:e.path})},removeRef:function(){var t;F(t=o.type)&&(t.flags&O.Object)>0?this.replaceRef(void 0):m(e.root.storedValue,{op:"remove",path:e.path})}})}},e.prototype.addTargetNodeWatcher=function(t,e){var n=this,o=this.getValue(t);if(o){var i=it(o),a=function(o,a){var s=function(t){switch(t){case r.beforeDestroy:return"destroy";case r.beforeDetach:return"detach";default:return}}(a);s&&n.fireInvalidated(s,t,e,i)},s=i.registerHook(r.beforeDetach,a),u=i.registerHook(r.beforeDestroy,a);return function(){s(),u()}}},e.prototype.watchTargetNodeForInvalidations=function(t,e,n){var o=this;if(this.onInvalidated){var i;t.registerHook(r.beforeDestroy,(function(){i&&i()}));var a=function(r){i&&i();var a=t.parent,s=a&&a.storedValue;a&&a.isAlive&&s&&((n?n.get(e,s):t.root.identifierCache.has(o.targetType,Ae(e)))?i=o.addTargetNodeWatcher(t,e):r||o.fireInvalidated("invalidSnapshotReference",t,e,null))};t.state===K.FINALIZED?a(!0):(t.isRoot||t.root.registerHook(r.afterCreationFinalization,(function(){t.parent&&t.parent.createObservableInstanceIfNeeded()})),t.registerHook(r.afterAttach,(function(){a(!1)})))}},e}(k),Se=function(t){function e(e,n){return t.call(this,e,n)||this}return c(e,t),e.prototype.getValue=function(t){if(t.isAlive)return t.storedValue.resolvedValue},e.prototype.getSnapshot=function(t){return t.storedValue.identifier},e.prototype.instantiate=function(t,e,n,r){var o,i=rt(r)?(ot(o=r),it(o).identifier):r,a=new ge(r,this.targetType),s=nt(this,t,e,n,a);return a.node=s,this.watchTargetNodeForInvalidations(s,i,void 0),s},e.prototype.reconcile=function(t,e,n,r){if(!t.isDetaching&&t.type===this){var o=rt(e),i=t.storedValue;if(!o&&i.identifier===e||o&&i.resolvedValue===e)return t.setParent(n,r),t}var a=this.instantiate(n,r,void 0,e);return t.die(),a},e}(Ce),Ee=function(t){function e(e,n,r){var o=t.call(this,e,r)||this;return o.options=n,o}return c(e,t),e.prototype.getValue=function(t){if(t.isAlive)return this.options.get(t.storedValue,t.parent?t.parent.storedValue:null)},e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.instantiate=function(t,e,n,r){var o=rt(r)?this.options.set(r,t?t.storedValue:null):r,i=nt(this,t,e,n,o);return this.watchTargetNodeForInvalidations(i,o,this.options),i},e.prototype.reconcile=function(t,e,n,r){var o=rt(e)?this.options.set(e,t?t.storedValue:null):e;if(!t.isDetaching&&t.type===this&&t.storedValue===o)return t.setParent(n,r),t;var i=this.instantiate(n,r,void 0,o);return t.die(),i},e}(Ce);function Pe(t,e){M();var n=e||void 0,r=e?e.onInvalidated:void 0;return n&&(n.get||n.set)?new Ee(t,{get:n.get,set:n.set},r):new Se(t,r)}var Oe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.validType=n,r.flags=O.Identifier,r}return c(e,t),e.prototype.instantiate=function(t,e,n,r){if(!(t&&t.type instanceof Xt))throw dt("Identifier types can only be instantiated as direct child of a model type");return nt(this,t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){if(t.storedValue!==e)throw dt("Tried to change identifier from '"+t.storedValue+"' to '"+e+"'. Changing identifiers is not allowed.");return t.setParent(n,r),t},e.prototype.isValidSnapshot=function(t,e){return typeof t!==this.validType?X(e,t,"Value is not a valid "+this.describe()+", expected a "+this.validType):J()},e}(k),_e=function(t){function e(){var e=t.call(this,"identifier","string")||this;return e.flags=O.Identifier,e}return c(e,t),e.prototype.describe=function(){return"identifier"},e}(Oe),xe=function(t){function e(){return t.call(this,"identifierNumber","number")||this}return c(e,t),e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.describe=function(){return"identifierNumber"},e}(Oe),Te=new _e,Ne=new xe;function Ae(t){return""+t}function Ie(t){return"string"==typeof t||"number"==typeof t}var De=function(t){function e(e){var n=t.call(this,e.name)||this;return n.options=e,n.flags=O.Custom,n}return c(e,t),e.prototype.describe=function(){return this.name},e.prototype.isValidSnapshot=function(t,e){if(this.options.isTargetType(t))return J();var n=this.options.getValidationMessage(t);return n?X(e,t,"Invalid value for type '"+this.name+"': "+n):J()},e.prototype.getSnapshot=function(t){return this.options.toSnapshot(t.storedValue)},e.prototype.instantiate=function(t,e,n,r){return nt(this,t,e,n,this.options.isTargetType(r)?r:this.options.fromSnapshot(r,t&&t.root.environment))},e.prototype.reconcile=function(t,e,n,r){var o=!this.options.isTargetType(e);if(!t.isDetaching&&t.type===this&&(o?e===t.snapshot:e===t.storedValue))return t.setParent(n,r),t;var i=o?this.options.fromSnapshot(e,n.root.environment):e,a=this.instantiate(n,r,void 0,i);return t.die(),a},e}(k),je={enumeration:function(t,e){var n="string"==typeof t?e:t,r=ce.apply(void 0,h(n.map((function(t){return ae(""+t)}))));return"string"==typeof t&&(r.name=t),r},model:function(){for(var t=[],e=0;e",t)},array:function(t){return M(),new zt(t.name+"[]",t)},frozen:function(t){return 0===arguments.length?be:F(t)?new ve(t):pe(be,t)},identifier:Te,identifierNumber:Ne,late:function(t,e){var n="string"==typeof t?t:"late("+t.toString()+")";return new me(n,"string"==typeof t?e:t)},undefined:ne,null:ee,snapshotProcessor:function(t,e,n){return M(),new Mt(t,e,n)}}},5513:function(t,e,n){"use strict";n.d(e,{UT:function(){return P},rU:function(){return O}});var r=n(94578),o=n(67294),i=n(92487),a=n(87462),s=n(78273),u=n(38776);function c(t){return"/"===t.charAt(0)?t:"/"+t}function l(t){return"/"===t.charAt(0)?t.substr(1):t}function p(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function f(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=(0,a.Z)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,s.Z)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function y(){var t=null,e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;rA.length&&A.push(t)}function j(t,e,n,r){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var s=!1;if(null===t)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return n(r,t,""===e?"."+F(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var u=0;u=0;f--){var d=a[f];"."===d?r(a,f):".."===d?(r(a,f),p++):p&&(r(a,f),p--)}if(!c)for(;p--;p)a.unshift("..");!c||""===a[0]||a[0]&&n(a[0])||a.unshift("");var h=a.join("/");return o&&"/"!==h.substr(-1)&&(h+="/"),h}},11742:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r=o)&&Object.keys(s.O).every((function(t){return s.O[t](n[u])}))?n.splice(u--,1):(a=!1,o0&&t[l-1][2]>o;l--)t[l]=t[l-1];t[l]=[n,r,o]},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},s.t=function(t,r){if(1&r&&(t=this(t)),8&r)return t;if("object"==typeof t&&t){if(4&r&&t.__esModule)return t;if(16&r&&"function"==typeof t.then)return t}var o=Object.create(null);s.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var a=2&r&&t;"object"==typeof a&&!~e.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return t[e]}}));return i.default=function(){return t},s.d(o,i),o},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,n){return s.f[n](t,e),e}),[]))},s.u=function(t){return"scripts/chunk/"+t+"."+{180:"01a920c2",249:"34185169",365:"b6c52216",438:"1ab298f9",525:"05258a99",790:"81ba6533",848:"e620f3cb",854:"a8b43c42",911:"48b69262",996:"5254e5ea",1065:"93f648f1",1134:"28fdc65d",1147:"f151b55f",1156:"acb97715",1205:"3e7e0272",1259:"0791543f",1448:"4fd2ffe7",1471:"e4c334ef",1614:"7cb442fd",1813:"aedaa90d",1886:"2fb19122",1960:"61980a22",1961:"c82e0f18",1966:"cd6a9c49",2060:"f434c855",2075:"d8277fdb",2140:"663abb39",2240:"7a130b72",2527:"491067a9",2571:"ff287f20",2794:"9452c5ee",2798:"92143e76",2814:"32ea7bb0",2835:"2dc13e93",2892:"3de74502",2911:"22921070",2954:"d0d0ff52",3036:"133d75ec",3116:"7eabfc18",3565:"2976f15b",3585:"d28ee55b",3632:"fac775ee",3682:"f32ef7e5",3760:"19a2a971",3919:"c37f685c",4028:"e8d61767",4129:"fb7f0d64",4188:"eef2a585",4295:"1bbce05c",4368:"3f40cb7b",4386:"f715a330",4407:"ebfdacf7",4631:"809b9ec4",4902:"5e28f4da",4912:"1fb11bbc",4946:"67d335a6",5062:"61df914b",5593:"28cbac31",5703:"e766475d",5849:"6d19629d",5937:"727b4843",5962:"55daefd9",6082:"2952d999",6241:"b191a73d",6424:"3c92e7fb",6449:"da418a0e",6489:"b4b13374",6531:"62aea1e0",6587:"cae344f1",6590:"062da283",6717:"c556cdf5",6876:"1739bce6",7043:"58d65c4f",7093:"35680e5c",7131:"bac2471f",7287:"eb043dc6",7460:"1ab75aaf",7562:"5537b9fa",7578:"558ea6a3",7631:"3968bd85",7637:"8ffaca06",7778:"269bda4a",7835:"04c8fffb",7850:"b348adf0",7868:"51277f40",8070:"bf15046d",8084:"03719a5b",8180:"0f928412",8183:"baa719cc",8424:"d3a53a09",8448:"ed3fbbfa",8670:"61d89ac7",8715:"ef2eea3b",8719:"cff7fc05",8842:"96002dd9",8906:"47b3afe0",8946:"6c5f42b8",9284:"7242fac4",9343:"c35d755f",9398:"d5a48e66",9400:"0ce52b01",9537:"e680b967",9684:"0babbede",9775:"5e6ed683",9907:"ca2a4edb"}[t]+".js"},s.miniCssF=function(t){return"css/"+t+"."+{1813:"68748e19",8842:"295ff17d"}[t]+".css"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r={},o="tansci-boot-ui-editor:",s.l=function(t,e,n,i){if(r[t])r[t].push(e);else{var a,u;if(void 0!==n)for(var c=document.getElementsByTagName("script"),l=0;l