trilium/libraries/ckeditor/inspector.js

164 lines
242 KiB
JavaScript

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CKEditorInspector=t():e.CKEditorInspector=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=34)}([function(e,t,n){"use strict";e.exports=n(7)},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=function(e,t){return t?t.querySelector(e):document.querySelector(e)},s=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,p=[],d=n(16);function f(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(y(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(y(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function h(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function m(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=p[p.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),p.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(e.insertAt.before,n);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return b(t,e.attrs),m(e,t),t}function b(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=c||(c=v(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),m(e,t),t}(t),r=_.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=E.bind(null,n),o=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return f(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}e&&f(h(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete i[l.id]}}}};var k,w=(k=[],function(e,t){return k[e]=t,k.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function E(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function _(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(8)},function(e,t,n){var r=n(19);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){l=r(n);for(var p=0;p<l.length;p++)i.call(n,l[p])&&(s[l[p]]=n[l[p]])}}return s}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(0)),c=n(11),u=l(n(12)),p={width:"auto",height:"auto"},d=u.default((function(e,t,n){return Math.max(Math.min(e,n),t)})),f=u.default((function(e,t){return Math.round(e/t)*t})),h=u.default((function(e,t){return new RegExp(e,"i").test(t)})),m=u.default((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),g=u.default((function(e,t){return e.substr(e.length-t.length,t.length)===t})),v=u.default((function(e){return"auto"===(e=e.toString())?e:g(e,"px")?e:g(e,"%")?e:g(e,"vh")?e:g(e,"vw")?e:g(e,"vmax")?e:g(e,"vmin")?e:e+"px"})),b=u.default((function(e,t,n,r,o){if(t&&"string"==typeof t&&g(t,"%")){var i=Number(t.replace("%",""))/100;t=e.width*i}if(n&&"string"==typeof n&&g(n,"%")){i=Number(n.replace("%",""))/100;n=e.height*i}if(r&&"string"==typeof r&&g(r,"%")){i=Number(r.replace("%",""))/100;r=e.width*i}if(o&&"string"==typeof o&&g(o,"%")){i=Number(o.replace("%",""))/100;o=e.height*i}return{maxWidth:void 0===t?void 0:Number(t),maxHeight:void 0===n?void 0:Number(n),minWidth:void 0===r?void 0:Number(r),minHeight:void 0===o?void 0:Number(o)}})),y=["style","className","grid","snap","bounds","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],k=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.extendsProps={},n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableTop=0,n.targetLeft=0,n.targetTop=0,n.state={isResizing:!1,resizeCursor:"auto",width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0}},n.updateExtendsProps(t),n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),"undefined"!=typeof window&&(window.addEventListener("mouseup",n.onMouseUp),window.addEventListener("mousemove",n.onMouseMove),window.addEventListener("mouseleave",n.onMouseUp),window.addEventListener("touchmove",n.onMouseMove),window.addEventListener("touchend",n.onMouseUp)),n}return o(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||p},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base",{get:function(){var e=this.parentNode;if(e)for(var t=0,n=[].slice.call(e.children);t<n.length;t++){var r=n[t];if(r instanceof HTMLElement&&r.classList.contains("__resizable_base__"))return r}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if("undefined"!=typeof window&&this.resizable){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&g(e.propsSize[t].toString(),"%")){if(g(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return v(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?v(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?v(t.height):n("height")}},enumerable:!0,configurable:!0}),t.prototype.updateExtendsProps=function(e){this.extendsProps=Object.keys(e).reduce((function(t,n){return-1!==y.indexOf(n)?t:(t[n]=e[n],t)}),{})},t.prototype.getParentSize=function(){if(!this.base||!this.parentNode)return{width:window.innerWidth,height:window.innerHeight};var e=!1,t=this.parentNode.style.flexWrap,n=this.base.style.minWidth;"wrap"!==t&&(e=!0,this.parentNode.style.flexWrap="wrap"),this.base.style.position="relative",this.base.style.minWidth="100%";var r={width:this.base.offsetWidth,height:this.base.offsetHeight};return this.base.style.position="absolute",e&&(this.parentNode.style.flexWrap=t),this.base.style.minWidth=n,r},t.prototype.componentDidMount=function(){this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height});var e=this.parentNode;if(e instanceof HTMLElement&&!this.base){var t=document.createElement("div");t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t)}},t.prototype.componentWillReceiveProps=function(e){this.updateExtendsProps(e)},t.prototype.componentWillUnmount=function(){if("undefined"!=typeof window){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseleave",this.onMouseUp),window.removeEventListener("touchmove",this.onMouseMove),window.removeEventListener("touchend",this.onMouseUp);var e=this.parentNode;if(!this.base||!e)return;if(!(e instanceof HTMLElement&&this.base instanceof Node))return;e.removeChild(this.base)}},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){if("parent"===this.props.bounds){var n=this.parentNode;if(n instanceof HTMLElement){var r=n.offsetWidth+(this.parentLeft-this.resizableLeft),o=n.offsetHeight+(this.parentTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}}else if("window"===this.props.bounds){if("undefined"!=typeof window){r=window.innerWidth-this.resizableLeft,o=window.innerHeight-this.resizableTop;e=e&&e<r?e:r,t=t&&t<o?t:o}}else if(this.props.bounds instanceof HTMLElement){r=this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop);e=e&&e<r?e:r,t=t&&t<o?t:o}return{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,l=this.props,s=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,u=l.lockAspectRatioExtraWidth,p=a.width,d=a.height,f=c||0,m=u||0;return h("right",i)&&(p=a.width+(e-a.x)*r/n,s&&(d=(p-m)/this.ratio+f)),h("left",i)&&(p=a.width-(e-a.x)*r/n,s&&(d=(p-m)/this.ratio+f)),h("bottom",i)&&(d=a.height+(t-a.y)*r/n,s&&(p=(d-f)*this.ratio+m)),h("top",i)&&(d=a.height-(t-a.y)*r/n,s&&(p=(d-f)*this.ratio+m)),{newWidth:p,newHeight:d}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,l=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,p=void 0===n.height||n.height<0?t:n.height,f=a||0,h=l||0;if(i){var m=(u-f)*this.ratio+h,g=(p-f)*this.ratio+h,v=(s-h)/this.ratio+f,b=(c-h)/this.ratio+f,y=Math.max(s,m),k=Math.min(c,g),w=Math.max(u,v),x=Math.min(p,b);e=d(e,y,k),t=d(t,w,x)}else e=d(e,s,c),t=d(t,u,p);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e instanceof HTMLElement){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds instanceof HTMLElement){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top;this.resizableLeft=o,this.resizableTop=i}},t.prototype.onResizeStart=function(e,t){var n=0,r=0;if(e.nativeEvent instanceof MouseEvent){if(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent instanceof TouchEvent&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY);this.props.onResizeStart&&this.resizable&&this.props.onResizeStart(e,t,this.resizable),this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height,this.setBoundingClientRect(),this.setState({original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,resizeCursor:window.getComputedStyle(e.target).cursor||"auto",direction:t})},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable){var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=e instanceof MouseEvent?e.clientX:e.touches[0].clientX,l=e instanceof MouseEvent?e.clientY:e.touches[0].clientY,s=this.state,c=s.direction,u=s.original,p=s.width,d=s.height,h=this.getParentSize(),v=b(h,n,r,o,i);n=v.maxWidth,r=v.maxHeight,o=v.minWidth,i=v.minHeight;var y=this.calculateNewSizeFromDirection(a,l),k=y.newHeight,w=y.newWidth,x=this.calculateNewMaxFromBoundary(n,r),E=this.calculateNewSizeFromAspectRatio(w,k,{width:x.maxWidth,height:x.maxHeight},{width:o,height:i});if(w=E.newWidth,k=E.newHeight,this.props.grid){var _=f(w,this.props.grid[0]),S=f(k,this.props.grid[1]),C=this.props.snapGap||0;w=0===C||Math.abs(_-w)<=C?_:w,k=0===C||Math.abs(S-k)<=C?S:k}this.props.snap&&this.props.snap.x&&(w=m(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=m(k,this.props.snap.y,this.props.snapGap));var T={width:w-u.width,height:k-u.height};if(p&&"string"==typeof p)if(g(p,"%"))w=w/h.width*100+"%";else if(g(p,"vw")){w=w/window.innerWidth*100+"vw"}else if(g(p,"vh")){w=w/window.innerHeight*100+"vh"}if(d&&"string"==typeof d)if(g(d,"%"))k=k/h.height*100+"%";else if(g(d,"vw")){k=k/window.innerWidth*100+"vw"}else if(g(d,"vh")){k=k/window.innerHeight*100+"vh"}this.setState({width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(k,"height")}),this.props.onResize&&this.props.onResize(e,c,this.resizable,T)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.setState({isResizing:!1,resizeCursor:"auto"})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var u=Object.keys(n).map((function(t){return!1!==n[t]?s.createElement(c.Resizer,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},l&&l[t]?l[t]:null):null}));return s.createElement("span",{className:a,style:i},u)},t.prototype.render=function(){var e=this;return s.createElement("div",i({ref:function(t){t&&(e.resizable=t)},style:i({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style,this.sizeStyle,{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box"}),className:this.props.className},this.extendsProps),this.state.isResizing&&s.createElement("div",{style:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:""+(this.state.resizeCursor||"auto"),opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"}}),this.props.children,this.renderResizer())},t.defaultProps={onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(s.Component);t.Resizable=k},function(e,t,n){"use strict";
/** @license React v16.10.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(5),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder"),o&&Symbol.for("react.scope");var v="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k={};function w(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||y}function x(){}function E(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw b(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var _=E.prototype=new x;_.constructor=E,r(_,w.prototype),_.isPureReactComponent=!0;var S={current:null},C={suspense:null},T={current:null},N=Object.prototype.hasOwnProperty,z={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)N.call(t,r)&&!z.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:T.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var O=/\/+/g,M=[];function D(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function L(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return r(o,t,""===n?"."+A(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+A(l=t[c],c);s+=e(l,u,r,o)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=v&&t[v]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(l=t.next()).done;)s+=e(l=l.value,u=n+A(l,c++),r,o);else if("object"===l)throw r=""+t,b(Error(31),"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return s}(e,"",t,n)}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function j(e,t){e.func.call(e.context,t,e.count++)}function U(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(R(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(O,"$&/")+"/"),L(e,U,t=D(t,i,r,o)),I(t)}function W(){var e=S.current;if(null===e)throw b(Error(321));return e}var H={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;L(e,j,t=D(null,null,t,n)),I(t)},count:function(e){return L(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!R(e))throw b(Error(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return W().useCallback(e,t)},useContext:function(e,t){return W().useContext(e,t)},useEffect:function(e,t){return W().useEffect(e,t)},useImperativeHandle:function(e,t,n){return W().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return W().useLayoutEffect(e,t)},useMemo:function(e,t){return W().useMemo(e,t)},useReducer:function(e,t,n){return W().useReducer(e,t,n)},useRef:function(e){return W().useRef(e)},useState:function(e){return W().useState(e)},Fragment:l,Profiler:c,StrictMode:s,Suspense:f,unstable_SuspenseList:h,createElement:P,cloneElement:function(e,t,n){if(null==e)throw b(Error(267),e);var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=T.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)N.call(t,u)&&!z.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var p=0;p<u;p++)c[p]=arguments[p+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},createFactory:function(e){var t=P.bind(null,e);return t.type=e,t},isValidElement:R,version:"16.10.2",unstable_withSuspenseConfig:function(e,t){var n=C.suspense;C.suspense=void 0===t?null:t;try{e()}finally{C.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:S,ReactCurrentBatchConfig:C,ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r}},B={default:H},V=B&&H||B;e.exports=V.default||V},function(e,t,n){"use strict";
/** @license React v16.10.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(0),o=n(5),i=n(9);function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!r)throw a(Error(227));var l=null,s={};function c(){if(l)for(var e in s){var t=s[e],n=l.indexOf(e);if(!(-1<n))throw a(Error(96),e);if(!p[n]){if(!t.extractEvents)throw a(Error(97),e);for(var r in p[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,f=r;if(d.hasOwnProperty(f))throw a(Error(99),f);d[f]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&u(h[o],c,f);o=!0}else i.registrationName?(u(i.registrationName,c,f),o=!0):o=!1;if(!o)throw a(Error(98),r,e)}}}}function u(e,t,n){if(f[e])throw a(Error(100),e);f[e]=t,h[e]=t.eventTypes[n].dependencies}var p=[],d={},f={},h={};function m(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var g=!1,v=null,b=!1,y=null,k={onError:function(e){g=!0,v=e}};function w(e,t,n,r,o,i,a,l,s){g=!1,v=null,m.apply(k,arguments)}var x=null,E=null,_=null;function S(e,t,n){var r=e.type||"unknown-event";e.currentTarget=_(n),function(e,t,n,r,o,i,l,s,c){if(w.apply(this,arguments),g){if(!g)throw a(Error(198));var u=v;g=!1,v=null,b||(b=!0,y=u)}}(r,t,void 0,e),e.currentTarget=null}function C(e,t){if(null==t)throw a(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var N=null;function z(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)S(e,t[r],n[r]);else t&&S(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function P(e){if(null!==e&&(N=C(N,e)),e=N,N=null,e){if(T(e,z),N)throw a(Error(95));if(b)throw e=y,b=!1,y=null,e}}var R={injectEventPluginOrder:function(e){if(l)throw a(Error(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!s.hasOwnProperty(t)||s[t]!==r){if(s[t])throw a(Error(102),t);s[t]=r,n=!0}}n&&c()}};function O(e,t){var n=e.stateNode;if(!n)return null;var r=x(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw a(Error(231),t,typeof n);return n}var M=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;M.hasOwnProperty("ReactCurrentDispatcher")||(M.ReactCurrentDispatcher={current:null}),M.hasOwnProperty("ReactCurrentBatchConfig")||(M.ReactCurrentBatchConfig={suspense:null});var D=/^(.*)[\\\/]/,I="function"==typeof Symbol&&Symbol.for,L=I?Symbol.for("react.element"):60103,A=I?Symbol.for("react.portal"):60106,j=I?Symbol.for("react.fragment"):60107,U=I?Symbol.for("react.strict_mode"):60108,F=I?Symbol.for("react.profiler"):60114,W=I?Symbol.for("react.provider"):60109,H=I?Symbol.for("react.context"):60110,B=I?Symbol.for("react.concurrent_mode"):60111,V=I?Symbol.for("react.forward_ref"):60112,$=I?Symbol.for("react.suspense"):60113,Y=I?Symbol.for("react.suspense_list"):60120,Q=I?Symbol.for("react.memo"):60115,X=I?Symbol.for("react.lazy"):60116;I&&Symbol.for("react.fundamental"),I&&Symbol.for("react.responder"),I&&Symbol.for("react.scope");var G="function"==typeof Symbol&&Symbol.iterator;function K(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=G&&e[G]||e["@@iterator"])?e:null}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case j:return"Fragment";case A:return"Portal";case F:return"Profiler";case U:return"StrictMode";case $:return"Suspense";case Y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case H:return"Context.Consumer";case W:return"Context.Provider";case V:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Q:return q(e.type);case X:if(e=1===e._status?e._result:null)return q(e)}return null}function Z(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=q(e.type);n=null,r&&(n=q(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(D,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var J=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ee=null,te=null,ne=null;function re(e){if(e=E(e)){if("function"!=typeof ee)throw a(Error(280));var t=x(e.stateNode);ee(e.stateNode,e.type,t)}}function oe(e){te?ne?ne.push(e):ne=[e]:te=e}function ie(){if(te){var e=te,t=ne;if(ne=te=null,re(e),t)for(e=0;e<t.length;e++)re(t[e])}}function ae(e,t){return e(t)}function le(e,t,n,r){return e(t,n,r)}function se(){}var ce=ae,ue=!1,pe=!1;function de(){null===te&&null===ne||(se(),ie())}new Map,new Map,new Map;var fe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,he=Object.prototype.hasOwnProperty,me={},ge={};function ve(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var be={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){be[e]=new ve(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];be[t]=new ve(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){be[e]=new ve(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){be[e]=new ve(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){be[e]=new ve(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){be[e]=new ve(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){be[e]=new ve(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){be[e]=new ve(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){be[e]=new ve(e,5,!1,e.toLowerCase(),null,!1)}));var ye=/[\-:]([a-z])/g;function ke(e){return e[1].toUpperCase()}function we(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function xe(e,t,n,r){var o=be.hasOwnProperty(t)?be[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!he.call(ge,e)||!he.call(me,e)&&(fe.test(e)?ge[e]=!0:(me[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Ee(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=Ee(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ee(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ce(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=we(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ne(e,t){null!=(t=t.checked)&&xe(e,"checked",t,!1)}function ze(e,t){Ne(e,t);var n=we(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Re(e,t.type,n):t.hasOwnProperty("defaultValue")&&Re(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Pe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Re(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Oe(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Me(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+we(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function De(e,t){if(null!=t.dangerouslySetInnerHTML)throw a(Error(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw a(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw a(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:we(n)}}function Le(e,t){var n=we(t.value),r=we(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ye,ke);be[t]=new ve(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ye,ke);be[t]=new ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ye,ke);be[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){be[e]=new ve(e,1,!1,e.toLowerCase(),null,!1)})),be.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){be[e]=new ve(e,1,!1,e.toLowerCase(),null,!0)}));var je={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var We,He=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==je.svg||"innerHTML"in e)e.innerHTML=t;else{for((We=We||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=We.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $e={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Ye={},Qe={};function Xe(e){if(Ye[e])return Ye[e];if(!$e[e])return e;var t,n=$e[e];for(t in n)if(n.hasOwnProperty(t)&&t in Qe)return Ye[e]=n[t];return e}J&&(Qe=document.createElement("div").style,"AnimationEvent"in window||(delete $e.animationend.animation,delete $e.animationiteration.animation,delete $e.animationstart.animation),"TransitionEvent"in window||delete $e.transitionend.transition);var Ge=Xe("animationend"),Ke=Xe("animationiteration"),qe=Xe("animationstart"),Ze=Xe("transitionend"),Je="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),et=!1,tt=[],nt=null,rt=null,ot=null,it=new Map,at=new Map,lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),st="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function ct(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function ut(e,t){switch(e){case"focus":case"blur":nt=null;break;case"dragenter":case"dragleave":rt=null;break;case"mouseover":case"mouseout":ot=null;break;case"pointerover":case"pointerout":it.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":at.delete(t.pointerId)}}function pt(e,t,n,r,o){return null===e||e.nativeEvent!==o?ct(t,n,r,o):(e.eventSystemFlags|=r,e)}function dt(e){if(null!==e.blockedOn)return!1;var t=Cn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);return null===t||(e.blockedOn=t,!1)}function ft(e,t,n){dt(e)&&n.delete(t)}function ht(){for(et=!1;0<tt.length;){var e=tt[0];if(null!==e.blockedOn)break;var t=Cn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:tt.shift()}null!==nt&&dt(nt)&&(nt=null),null!==rt&&dt(rt)&&(rt=null),null!==ot&&dt(ot)&&(ot=null),it.forEach(ft),at.forEach(ft)}function mt(e,t){e.blockedOn===t&&(e.blockedOn=null,et||(et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ht)))}function gt(e){function t(t){return mt(t,e)}if(0<tt.length){mt(tt[0],e);for(var n=1;n<tt.length;n++){var r=tt[n];r.blockedOn===e&&(r.blockedOn=null)}}null!==nt&&mt(nt,e),null!==rt&&mt(rt,e),null!==ot&&mt(ot,e),it.forEach(t),at.forEach(t)}var vt=0,bt=2,yt=1024;function kt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{((t=e).effectTag&(bt|yt))!==vt&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function wt(e){if(kt(e)!==e)throw a(Error(188))}function xt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=kt(e)))throw a(Error(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return wt(o),e;if(i===r)return wt(o),t;i=i.sibling}throw a(Error(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw a(Error(189))}}if(n.alternate!==r)throw a(Error(190))}if(3!==n.tag)throw a(Error(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function _t(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function St(e,t,n){(t=O(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function Ct(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=_t(t);for(t=n.length;0<t--;)St(n[t],"captured",e);for(t=0;t<n.length;t++)St(n[t],"bubbled",e)}}function Tt(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=O(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=C(n._dispatchListeners,t),n._dispatchInstances=C(n._dispatchInstances,e))}function Nt(e){e&&e.dispatchConfig.registrationName&&Tt(e._targetInst,null,e)}function zt(e){T(e,Ct)}function Pt(){return!0}function Rt(){return!1}function Ot(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Pt:Rt,this.isPropagationStopped=Rt,this}function Mt(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Dt(e){if(!(e instanceof this))throw a(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function It(e){e.eventPool=[],e.getPooled=Mt,e.release=Dt}o(Ot.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Pt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Pt)},persist:function(){this.isPersistent=Pt},isPersistent:Rt,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Rt,this._dispatchInstances=this._dispatchListeners=null}}),Ot.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Ot.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,It(n),n},It(Ot);var Lt=Ot.extend({animationName:null,elapsedTime:null,pseudoElement:null}),At=Ot.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jt=Ot.extend({view:null,detail:null}),Ut=jt.extend({relatedTarget:null});function Ft(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Wt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ht={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Bt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Bt[e])&&!!t[e]}function $t(){return Vt}for(var Yt=jt.extend({key:function(e){if(e.key){var t=Wt[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ft(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ht[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:$t,charCode:function(e){return"keypress"===e.type?Ft(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ft(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Qt=0,Xt=0,Gt=!1,Kt=!1,qt=jt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:$t,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Qt;return Qt=e.screenX,Gt?"mousemove"===e.type?e.screenX-t:0:(Gt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Xt;return Xt=e.screenY,Kt?"mousemove"===e.type?e.screenY-t:0:(Kt=!0,0)}}),Zt=qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt=qt.extend({dataTransfer:null}),en=jt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:$t}),tn=Ot.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),nn=qt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),rn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Ge,"animationEnd",2],[Ke,"animationIteration",2],[qe,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Ze,"transitionEnd",2],["waiting","waiting",2]],on={},an={},ln=0;ln<rn.length;ln++){var sn=rn[ln],cn=sn[0],un=sn[1],pn=sn[2],dn="on"+(un[0].toUpperCase()+un.slice(1)),fn={phasedRegistrationNames:{bubbled:dn,captured:dn+"Capture"},dependencies:[cn],eventPriority:pn};on[un]=fn,an[cn]=fn}var hn={eventTypes:on,getEventPriority:function(e){return void 0!==(e=an[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=an[e];if(!o)return null;switch(e){case"keypress":if(0===Ft(n))return null;case"keydown":case"keyup":e=Yt;break;case"blur":case"focus":e=Ut;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Jt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=en;break;case Ge:case Ke:case qe:e=Lt;break;case Ze:e=tn;break;case"scroll":e=jt;break;case"wheel":e=nn;break;case"copy":case"cut":case"paste":e=At;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Zt;break;default:e=Ot}return zt(t=e.getPooled(o,t,n,r)),t}},mn=hn.getEventPriority,gn=10,vn=[];function bn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=lr(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Et(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=e.eventSystemFlags,l=null,s=0;s<p.length;s++){var c=p[s];c&&(c=c.extractEvents(r,t,i,o,a))&&(l=C(l,c))}P(l)}}var yn=!0;function kn(e,t){wn(t,e,!1)}function wn(e,t,n){switch(mn(t)){case 0:var r=xn.bind(null,t,1);break;case 1:r=En.bind(null,t,1);break;default:r=Sn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function xn(e,t,n){ue||se();var r=Sn,o=ue;ue=!0;try{le(r,e,t,n)}finally{(ue=o)||de()}}function En(e,t,n){Sn(e,t,n)}function _n(e,t,n,r){if(vn.length){var o=vn.pop();o.topLevelType=e,o.eventSystemFlags=t,o.nativeEvent=n,o.targetInst=r,e=o}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:r,ancestors:[]};try{if(t=bn,n=e,pe)t(n,void 0);else{pe=!0;try{ce(t,n,void 0)}finally{pe=!1,de()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,vn.length<gn&&vn.push(e)}}function Sn(e,t,n){if(yn)if(0<tt.length&&-1<lt.indexOf(e))e=ct(null,e,t,n),tt.push(e);else{var r=Cn(e,t,n);null===r?ut(e,n):-1<lt.indexOf(e)?(e=ct(r,e,t,n),tt.push(e)):function(e,t,n,r){switch(t){case"focus":return nt=pt(nt,e,t,n,r),!0;case"dragenter":return rt=pt(rt,e,t,n,r),!0;case"mouseover":return ot=pt(ot,e,t,n,r),!0;case"pointerover":var o=r.pointerId;return it.set(o,pt(it.get(o)||null,e,t,n,r)),!0;case"gotpointercapture":return o=r.pointerId,at.set(o,pt(at.get(o)||null,e,t,n,r)),!0}return!1}(r,e,t,n)||(ut(e,n),_n(e,t,n,null))}}function Cn(e,t,n){var r=Et(n),o=lr(r);if(null!==o)if(null===(r=kt(o)))o=null;else{var i=r.tag;if(13===i){if(null!==(r=13!==r.tag||(null===(o=r.memoizedState)&&(null!==(r=r.alternate)&&(o=r.memoizedState)),null===o)?null:o.dehydrated))return r;o=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;o=null}else r!==o&&(o=null)}return _n(e,t,n,o),null}function Tn(e){if(!J)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var Nn=new("function"==typeof WeakMap?WeakMap:Map);function zn(e){var t=Nn.get(e);return void 0===t&&(t=new Set,Nn.set(e,t)),t}function Pn(e,t,n){if(!n.has(e)){switch(e){case"scroll":wn(t,"scroll",!0);break;case"focus":case"blur":wn(t,"focus",!0),wn(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Tn(e)&&wn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Je.indexOf(e)&&kn(e,t)}n.add(e)}}var Rn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},On=["Webkit","ms","Moz","O"];function Mn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Rn.hasOwnProperty(e)&&Rn[e]?(""+t).trim():t+"px"}function Dn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Mn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Rn).forEach((function(e){On.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rn[t]=Rn[e]}))}));var In=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ln(e,t){if(t){if(In[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw a(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw a(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw a(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw a(Error(62),"")}}function An(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function jn(e,t){var n=zn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var r=0;r<t.length;r++)Pn(t[r],e,n)}function Un(){}function Fn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Wn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hn(e,t){var n,r=Wn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Wn(r)}}function Bn(){for(var e=window,t=Fn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Fn((e=t.contentWindow).document)}return t}function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var $n="$",Yn="/$",Qn="$?",Xn="$!",Gn=null,Kn=null;function qn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Zn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jn="function"==typeof setTimeout?setTimeout:void 0,er="function"==typeof clearTimeout?clearTimeout:void 0;function tr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function nr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===$n||n===Xn||n===Qn){if(0===t)return e;t--}else n===Yn&&t++}e=e.previousSibling}return null}var rr=Math.random().toString(36).slice(2),or="__reactInternalInstance$"+rr,ir="__reactEventHandlers$"+rr,ar="__reactContainere$"+rr;function lr(e){var t=e[or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ar]||n[or]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=nr(e);null!==e;){if(n=e[or])return n;e=nr(e)}return t}n=(e=n).parentNode}return null}function sr(e){return!(e=e[or]||e[ar])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function cr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw a(Error(33))}function ur(e){return e[ir]||null}var pr=null,dr=null,fr=null;function hr(){if(fr)return fr;var e,t,n=dr,r=n.length,o="value"in pr?pr.value:pr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return fr=o.slice(e,1<t?1-t:void 0)}var mr=Ot.extend({data:null}),gr=Ot.extend({data:null}),vr=[9,13,27,32],br=J&&"CompositionEvent"in window,yr=null;J&&"documentMode"in document&&(yr=document.documentMode);var kr=J&&"TextEvent"in window&&!yr,wr=J&&(!br||yr&&8<yr&&11>=yr),xr=String.fromCharCode(32),Er={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_r=!1;function Sr(e,t){switch(e){case"keyup":return-1!==vr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Cr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Tr=!1;var Nr={eventTypes:Er,extractEvents:function(e,t,n,r){var o;if(br)e:{switch(e){case"compositionstart":var i=Er.compositionStart;break e;case"compositionend":i=Er.compositionEnd;break e;case"compositionupdate":i=Er.compositionUpdate;break e}i=void 0}else Tr?Sr(e,n)&&(i=Er.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Er.compositionStart);return i?(wr&&"ko"!==n.locale&&(Tr||i!==Er.compositionStart?i===Er.compositionEnd&&Tr&&(o=hr()):(dr="value"in(pr=r)?pr.value:pr.textContent,Tr=!0)),i=mr.getPooled(i,t,n,r),o?i.data=o:null!==(o=Cr(n))&&(i.data=o),zt(i),o=i):o=null,(e=kr?function(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return 32!==t.which?null:(_r=!0,xr);case"textInput":return(e=t.data)===xr&&_r?null:e;default:return null}}(e,n):function(e,t){if(Tr)return"compositionend"===e||!br&&Sr(e,t)?(e=hr(),fr=dr=pr=null,Tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=gr.getPooled(Er.beforeInput,t,n,r)).data=e,zt(t)):t=null,null===o?t:null===t?o:[o,t]}},zr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zr[e.type]:"textarea"===t}var Rr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Or(e,t,n){return(e=Ot.getPooled(Rr.change,e,t,n)).type="change",oe(n),zt(e),e}var Mr=null,Dr=null;function Ir(e){P(e)}function Lr(e){if(Se(cr(e)))return e}function Ar(e,t){if("change"===e)return t}var jr=!1;function Ur(){Mr&&(Mr.detachEvent("onpropertychange",Fr),Dr=Mr=null)}function Fr(e){if("value"===e.propertyName&&Lr(Dr))if(e=Or(Dr,e,Et(e)),ue)P(e);else{ue=!0;try{ae(Ir,e)}finally{ue=!1,de()}}}function Wr(e,t,n){"focus"===e?(Ur(),Dr=n,(Mr=t).attachEvent("onpropertychange",Fr)):"blur"===e&&Ur()}function Hr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Lr(Dr)}function Br(e,t){if("click"===e)return Lr(t)}function Vr(e,t){if("input"===e||"change"===e)return Lr(t)}J&&(jr=Tn("input")&&(!document.documentMode||9<document.documentMode));var $r={eventTypes:Rr,_isInputEventSupported:jr,extractEvents:function(e,t,n,r){var o=t?cr(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=Ar;else if(Pr(o))if(jr)a=Vr;else{a=Hr;var l=Wr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Br);if(a&&(a=a(e,t)))return Or(a,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Re(o,"number",o.value)}},Yr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Qr={eventTypes:Yr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?lr(t):null)&&(t!==(i=kt(t))||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var l=qt,s=Yr.mouseLeave,c=Yr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Zt,s=Yr.pointerLeave,c=Yr.pointerEnter,u="pointer");if(e=null==a?o:cr(a),o=null==t?o:cr(t),(s=l.getPooled(s,a,n,r)).type=u+"leave",s.target=e,s.relatedTarget=o,(n=l.getPooled(c,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,e=0,a=l=r;a;a=_t(a))e++;for(a=0,t=c;t;t=_t(t))a++;for(;0<e-a;)l=_t(l),e--;for(;0<a-e;)c=_t(c),a--;for(;e--;){if(l===c||l===c.alternate)break e;l=_t(l),c=_t(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c&&(null===(e=r.alternate)||e!==c);)l.push(r),r=_t(r);for(r=[];u&&u!==c&&(null===(e=u.alternate)||e!==c);)r.push(u),u=_t(u);for(u=0;u<l.length;u++)Tt(l[u],"bubbled",s);for(u=r.length;0<u--;)Tt(r[u],"captured",n);return[s,n]}};var Xr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Gr=Object.prototype.hasOwnProperty;function Kr(e,t){if(Xr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Gr.call(t,n[r])||!Xr(e[n[r]],t[n[r]]))return!1;return!0}var qr=J&&"documentMode"in document&&11>=document.documentMode,Zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Jr=null,eo=null,to=null,no=!1;function ro(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return no||null==Jr||Jr!==Fn(n)?null:("selectionStart"in(n=Jr)&&Vn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},to&&Kr(to,n)?null:(to=n,(e=Ot.getPooled(Zr.select,eo,e,t)).type="select",e.target=Jr,zt(e),e))}var oo={eventTypes:Zr,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=zn(i),o=h.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?cr(t):window,e){case"focus":(Pr(i)||"true"===i.contentEditable)&&(Jr=i,eo=t,to=null);break;case"blur":to=eo=Jr=null;break;case"mousedown":no=!0;break;case"contextmenu":case"mouseup":case"dragend":return no=!1,ro(n,r);case"selectionchange":if(qr)break;case"keydown":case"keyup":return ro(n,r)}return null}};R.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=ur,E=sr,_=cr,R.injectEventPluginsByName({SimpleEventPlugin:hn,EnterLeaveEventPlugin:Qr,ChangeEventPlugin:$r,SelectEventPlugin:oo,BeforeInputEventPlugin:Nr}),new Set;var io=[],ao=-1;function lo(e){0>ao||(e.current=io[ao],io[ao]=null,ao--)}function so(e,t){io[++ao]=e.current,e.current=t}var co={},uo={current:co},po={current:!1},fo=co;function ho(e,t){var n=e.type.contextTypes;if(!n)return co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!=(e=e.childContextTypes)}function go(e){lo(po),lo(uo)}function vo(e){lo(po),lo(uo)}function bo(e,t,n){if(uo.current!==co)throw a(Error(168));so(uo,t),so(po,n)}function yo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw a(Error(108),q(t)||"Unknown",i);return o({},n,{},r)}function ko(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||co,fo=uo.current,so(uo,t),so(po,po.current),!0}function wo(e,t,n){var r=e.stateNode;if(!r)throw a(Error(169));n?(t=yo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=t,lo(po),lo(uo),so(uo,t)):lo(po),so(po,n)}var xo=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,_o=i.unstable_cancelCallback,So=i.unstable_shouldYield,Co=i.unstable_requestPaint,To=i.unstable_now,No=i.unstable_getCurrentPriorityLevel,zo=i.unstable_ImmediatePriority,Po=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,Oo=i.unstable_LowPriority,Mo=i.unstable_IdlePriority,Do={},Io=void 0!==Co?Co:function(){},Lo=null,Ao=null,jo=!1,Uo=To(),Fo=1e4>Uo?To:function(){return To()-Uo};function Wo(){switch(No()){case zo:return 99;case Po:return 98;case Ro:return 97;case Oo:return 96;case Mo:return 95;default:throw a(Error(332))}}function Ho(e){switch(e){case 99:return zo;case 98:return Po;case 97:return Ro;case 96:return Oo;case 95:return Mo;default:throw a(Error(332))}}function Bo(e,t){return e=Ho(e),xo(e,t)}function Vo(e,t,n){return e=Ho(e),Eo(e,t,n)}function $o(e){return null===Lo?(Lo=[e],Ao=Eo(zo,Qo)):Lo.push(e),Do}function Yo(){if(null!==Ao){var e=Ao;Ao=null,_o(e)}Qo()}function Qo(){if(!jo&&null!==Lo){jo=!0;var e=0;try{var t=Lo;Bo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Lo=null}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Eo(zo,Yo),t}finally{jo=!1}}}function Xo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Go={current:null},Ko=null,qo=null,Zo=null;function Jo(){Zo=qo=Ko=null}function ei(e,t){var n=e.type._context;so(Go,n._currentValue),n._currentValue=t}function ti(e){var t=Go.current;lo(Go),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ri(e,t){Ko=e,Zo=qo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Pa=!0),e.firstContext=null)}function oi(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===qo){if(null===Ko)throw a(Error(308));qo=t,Ko.dependencies={expirationTime:0,firstContext:t,responders:null}}else qo=qo.next=t;return e._currentValue}var ii=!1;function ai(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function li(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function si(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ci(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function ui(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=ai(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=ai(e.memoizedState),o=n.updateQueue=ai(n.memoizedState)):r=e.updateQueue=li(o):null===o&&(o=n.updateQueue=li(r));null===o||r===o?ci(r,t):null===r.lastUpdate||null===o.lastUpdate?(ci(r,t),ci(o,t)):(ci(r,t),o.lastUpdate=t)}function pi(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=ai(e.memoizedState):di(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function di(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=li(t)),t}function fi(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:ii=!0}return r}function hi(e,t,n,r,o){ii=!1;for(var i=(t=di(e,t)).baseState,a=null,l=0,s=t.firstUpdate,c=i;null!==s;){var u=s.expirationTime;u<o?(null===a&&(a=s,i=c),l<u&&(l=u)):(gs(u,s.suspenseConfig),c=fi(e,0,s,c,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(u=null,s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;p<o?(null===u&&(u=s,null===a&&(i=c)),l<p&&(l=p)):(c=fi(e,0,s,c,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===a&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===u&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=u,vs(l),e.expirationTime=l,e.memoizedState=c}function mi(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),gi(t.firstEffect,n),t.firstEffect=t.lastEffect=null,gi(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function gi(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw a(Error(191),n);n.call(r)}e=e.nextEffect}}var vi=M.ReactCurrentBatchConfig,bi=(new r.Component).refs;function yi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ki={isMounted:function(e){return!!(e=e._reactInternalFiber)&&kt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Zl(),o=vi.suspense;(o=si(r=Jl(r,e,o),o)).payload=t,null!=n&&(o.callback=n),ui(e,o),ns(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Zl(),o=vi.suspense;(o=si(r=Jl(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),ui(e,o),ns(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Zl(),r=vi.suspense;(r=si(n=Jl(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ui(e,r),ns(e,n)}};function wi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Kr(n,r)||!Kr(o,i))}function xi(e,t,n){var r=!1,o=co,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=mo(t)?fo:uo.current,i=(r=null!=(r=t.contextTypes))?ho(e,o):co),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ki,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ei(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ki.enqueueReplaceState(t,t.state,null)}function _i(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=bi;var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=mo(t)?fo:uo.current,o.context=ho(e,i)),null!==(i=e.updateQueue)&&(hi(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(yi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ki.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(hi(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Si=Array.isArray;function Ci(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw a(Error(309));var r=n.stateNode}if(!r)throw a(Error(147),e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===bi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw a(Error(284));if(!n._owner)throw a(Error(290),e)}return e}function Ti(e,t){if("textarea"!==e.type)throw a(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Ni(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=As(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=bt,n):r:(t.effectTag=bt,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=bt),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=js(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ws(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Us(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Fs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case L:return(n=js(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case A:return(t=Ws(t,e.mode,n)).return=e,t}if(Si(t)||K(t))return(t=Us(t,e.mode,n,null)).return=e,t;Ti(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case L:return n.key===o?n.type===j?p(e,t,n.props.children,r,o):c(e,t,n,r):null;case A:return n.key===o?u(e,t,n,r):null}if(Si(n)||K(n))return null!==o?null:p(e,t,n,r,null);Ti(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case L:return e=e.get(null===r.key?n:r.key)||null,r.type===j?p(t,e,r.props.children,o,r.key):c(t,e,r,o);case A:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||K(r))return p(t,e=e.get(n)||null,r,o,null);Ti(t,r)}return null}function m(o,a,l,s){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<l.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=f(o,p,l[m],s);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(o,p),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(m===l.length)return n(o,p),c;if(null===p){for(;m<l.length;m++)null!==(p=d(o,l[m],s))&&(a=i(p,a,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(o,p);m<l.length;m++)null!==(g=h(p,o,m,l[m],s))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(o,e)})),c}function g(o,l,s,c){var u=K(s);if("function"!=typeof u)throw a(Error(150));if(null==(s=u.call(s)))throw a(Error(151));for(var p=u=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(o,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),l=i(y,l,g),null===p?u=y:p.sibling=y,p=y,m=v}if(b.done)return n(o,m),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,c))&&(l=i(b,l,g),null===p?u=b:p.sibling=b,p=b);return u}for(m=r(o,m);!b.done;g++,b=s.next())null!==(b=h(m,o,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=i(b,l,g),null===p?u=b:p.sibling=b,p=b);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,s){var c="object"==typeof i&&null!==i&&i.type===j&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case L:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?i.type===j:c.elementType===i.type){n(e,c.sibling),(r=o(c,i.type===j?i.props.children:i.props)).ref=Ci(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===j?((r=Us(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=js(i.type,i.key,i.props,null,e.mode,s)).ref=Ci(e,r,i),s.return=e,e=s)}return l(e);case A:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ws(i,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Fs(i,e.mode,s)).return=e,e=r),l(e);if(Si(i))return m(e,r,i,s);if(K(i))return g(e,r,i,s);if(u&&Ti(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var zi=Ni(!0),Pi=Ni(!1),Ri={},Oi={current:Ri},Mi={current:Ri},Di={current:Ri};function Ii(e){if(e===Ri)throw a(Error(174));return e}function Li(e,t){so(Di,t),so(Mi,e),so(Oi,Ri);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}lo(Oi),so(Oi,t)}function Ai(e){lo(Oi),lo(Mi),lo(Di)}function ji(e){Ii(Di.current);var t=Ii(Oi.current),n=Fe(t,e.type);t!==n&&(so(Mi,e),so(Oi,n))}function Ui(e){Mi.current===e&&(lo(Oi),lo(Mi))}var Fi={current:0};function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Qn||n.data===Xn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if((64&t.effectTag)!==vt)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Hi(e,t){return{responder:e,props:t}}var Bi=M.ReactCurrentDispatcher,Vi=0,$i=null,Yi=null,Qi=null,Xi=null,Gi=null,Ki=null,qi=0,Zi=null,Ji=0,ea=!1,ta=null,na=0;function ra(){throw a(Error(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xr(e[n],t[n]))return!1;return!0}function ia(e,t,n,r,o,i){if(Vi=i,$i=t,Qi=null!==e?e.memoizedState:null,Bi.current=null===Qi?ba:ya,t=n(r,o),ea){do{ea=!1,na+=1,Qi=null!==e?e.memoizedState:null,Ki=Xi,Zi=Gi=Yi=null,Bi.current=ya,t=n(r,o)}while(ea);ta=null,na=0}if(Bi.current=va,(e=$i).memoizedState=Xi,e.expirationTime=qi,e.updateQueue=Zi,e.effectTag|=Ji,e=null!==Yi&&null!==Yi.next,Vi=0,Ki=Gi=Xi=Qi=Yi=$i=null,qi=0,Zi=null,Ji=0,e)throw a(Error(300));return t}function aa(){Bi.current=va,Vi=0,Ki=Gi=Xi=Qi=Yi=$i=null,qi=0,Zi=null,Ji=0,ea=!1,ta=null,na=0}function la(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Gi?Xi=Gi=e:Gi=Gi.next=e,Gi}function sa(){if(null!==Ki)Ki=(Gi=Ki).next,Qi=null!==(Yi=Qi)?Yi.next:null;else{if(null===Qi)throw a(Error(310));var e={memoizedState:(Yi=Qi).memoizedState,baseState:Yi.baseState,queue:Yi.queue,baseUpdate:Yi.baseUpdate,next:null};Gi=null===Gi?Xi=e:Gi.next=e,Qi=Yi.next}return Gi}function ca(e,t){return"function"==typeof t?t(e):t}function ua(e){var t=sa(),n=t.queue;if(null===n)throw a(Error(311));if(n.lastRenderedReducer=e,0<na){var r=n.dispatch;if(null!==ta){var o=ta.get(n);if(void 0!==o){ta.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return Xr(i,t.memoizedState)||(Pa=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(i=t.baseState,null!==l?(null!==r&&(r.next=null),r=l.next):r=null!==r?r.next:null,null!==r){var s=o=null,c=r,u=!1;do{var p=c.expirationTime;p<Vi?(u||(u=!0,s=l,o=i),p>qi&&vs(qi=p)):(gs(p,c.suspenseConfig),i=c.eagerReducer===e?c.eagerState:e(i,c.action)),l=c,c=c.next}while(null!==c&&c!==r);u||(s=l,o=i),Xr(i,t.memoizedState)||(Pa=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Zi?(Zi={lastEffect:null}).lastEffect=e.next=e:null===(t=Zi.lastEffect)?Zi.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Zi.lastEffect=e),e}function da(e,t,n,r){var o=la();Ji|=e,o.memoizedState=pa(t,n,void 0,void 0===r?null:r)}function fa(e,t,n,r){var o=sa();r=void 0===r?null:r;var i=void 0;if(null!==Yi){var a=Yi.memoizedState;if(i=a.destroy,null!==r&&oa(r,a.deps))return void pa(0,n,i,r)}Ji|=e,o.memoizedState=pa(t,n,i,r)}function ha(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ma(){}function ga(e,t,n){if(!(25>na))throw a(Error(301));var r=e.alternate;if(e===$i||null!==r&&r===$i)if(ea=!0,e={expirationTime:Vi,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===ta&&(ta=new Map),void 0===(n=ta.get(t)))ta.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Zl(),i=vi.suspense;i={expirationTime:o=Jl(o,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)i.next=i;else{var s=l.next;null!==s&&(i.next=s),l.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,u=r(c,n);if(i.eagerReducer=r,i.eagerState=u,Xr(u,c))return}catch(e){}ns(e,o)}}var va={readContext:oi,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useResponder:ra},ba={readContext:oi,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:function(e,t){return da(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,da(4,36,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return da(4,36,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,$i,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},la().memoizedState=e},useState:function(e){var t=la();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=ga.bind(null,$i,e),[t.memoizedState,e]},useDebugValue:ma,useResponder:Hi},ya={readContext:oi,useCallback:function(e,t){var n=sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:oi,useEffect:function(e,t){return fa(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,fa(4,36,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fa(4,36,e,t)},useMemo:function(e,t){var n=sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ua,useRef:function(){return sa().memoizedState},useState:function(e){return ua(ca)},useDebugValue:ma,useResponder:Hi},ka=null,wa=null,xa=!1;function Ea(e,t){var n=Is(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _a(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Sa(e){if(xa){var t=wa;if(t){var n=t;if(!_a(e,t)){if(!(t=tr(n.nextSibling))||!_a(e,t))return e.effectTag=e.effectTag&~yt|bt,xa=!1,void(ka=e);Ea(ka,n)}ka=e,wa=tr(t.firstChild)}else e.effectTag=e.effectTag&~yt|bt,xa=!1,ka=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ka=e}function Ta(e){if(e!==ka)return!1;if(!xa)return Ca(e),xa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Zn(t,e.memoizedProps))for(t=wa;t;)Ea(e,t),t=tr(t.nextSibling);if(Ca(e),13===e.tag)if(null===(e=null!==(e=e.memoizedState)?e.dehydrated:null))e=wa;else e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===Yn){if(0===t){e=tr(e.nextSibling);break e}t--}else n!==$n&&n!==Xn&&n!==Qn||t++}e=e.nextSibling}e=null}else e=ka?tr(e.stateNode.nextSibling):null;return wa=e,!0}function Na(){wa=ka=null,xa=!1}var za=M.ReactCurrentOwner,Pa=!1;function Ra(e,t,n,r){t.child=null===e?Pi(t,null,n,r):zi(t,e.child,n,r)}function Oa(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=ia(e,t,n,r,i,o),null===e||Pa?(t.effectTag|=1,Ra(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Xa(e,t,o))}function Ma(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ls(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=js(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Kr)(o,r)&&e.ref===t.ref)?Xa(e,t,i):(t.effectTag|=1,(e=As(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,o,i){return null!==e&&Kr(e.memoizedProps,r)&&e.ref===t.ref&&(Pa=!1,o<i)?Xa(e,t,i):La(e,t,n,r,i)}function Ia(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function La(e,t,n,r,o){var i=mo(n)?fo:uo.current;return i=ho(t,i),ri(t,o),n=ia(e,t,n,r,i,o),null===e||Pa?(t.effectTag|=1,Ra(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Xa(e,t,o))}function Aa(e,t,n,r,o){if(mo(n)){var i=!0;ko(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=bt),xi(t,n,r),_i(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=oi(c):c=ho(t,c=mo(n)?fo:uo.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Ei(t,a,r,c),ii=!1;var d=t.memoizedState;s=a.state=d;var f=t.updateQueue;null!==f&&(hi(t,f,r,a,o),s=t.memoizedState),l!==r||d!==s||po.current||ii?("function"==typeof u&&(yi(t,n,u,r),s=t.memoizedState),(l=ii||wi(t,n,l,r,d,s,c))?(p||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:Xo(t.type,l),s=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oi(c):c=ho(t,c=mo(n)?fo:uo.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Ei(t,a,r,c),ii=!1,s=t.memoizedState,d=a.state=s,null!==(f=t.updateQueue)&&(hi(t,f,r,a,o),d=t.memoizedState),l!==r||s!==d||po.current||ii?("function"==typeof u&&(yi(t,n,u,r),d=t.memoizedState),(u=ii||wi(t,n,l,r,s,d,c))?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return ja(e,t,n,r,i,o)}function ja(e,t,n,r,o,i){Ia(e,t);var a=(64&t.effectTag)!==vt;if(!r&&!a)return o&&wo(t,n,!1),Xa(e,t,i);r=t.stateNode,za.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=zi(t,e.child,null,i),t.child=zi(t,null,l,i)):Ra(e,t,l,i),t.memoizedState=r.state,o&&wo(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Li(e,t.containerInfo)}var Fa,Wa,Ha,Ba,Va={dehydrated:null,retryTime:1};function $a(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Fi.current,l=!1;if((r=(64&t.effectTag)!==vt)||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),so(Fi,1&a),null===e){if(l){if(l=i.fallback,(i=Us(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Us(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=Va,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Pi(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=As(e,e.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=As(o,i,o.expirationTime)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,o}return n=zi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=Us(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Us(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=bt,i.childExpirationTime=0,t.memoizedState=Va,t.child=i,n}return t.memoizedState=null,t.child=zi(t,e,i.children,n)}function Ya(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o)}function Qa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ra(e,t,r.children,n),0!=(2&(r=Fi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&(64&e.effectTag)!==vt)e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),ni(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(Fi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(r=n.alternate)&&null===Wi(r)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ya(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===Wi(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}Ya(t,!0,n,null,i);break;case"together":Ya(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&vs(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw a(Error(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ga(e){e.effectTag|=4}function Ka(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qa(e){switch(e.tag){case 1:mo(e.type)&&go();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ai(),vo(),(64&(t=e.effectTag))!==vt)throw a(Error(285));return e.effectTag=-4097&t|64,e;case 5:return Ui(e),null;case 13:return lo(Fi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lo(Fi),null;case 4:return Ai(),null;case 10:return ti(e),null;default:return null}}function Za(e,t){return{value:e,source:t,stack:Z(t)}}Fa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(){},Ha=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l,s,c=t.stateNode;switch(Ii(Oi.current),e=null,n){case"input":a=Ce(c,a),r=Ce(c,r),e=[];break;case"option":a=Oe(c,a),r=Oe(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=De(c,a),r=De(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=Un)}for(l in Ln(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l)for(s in c=a[l])c.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(f.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var u=r[l];if(c=null!=a?a[l]:void 0,r.hasOwnProperty(l)&&u!==c&&(null!=u||null!=c))if("style"===l)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(e||(e=[]),e.push(l,n)),n=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(l,""+u)):"children"===l?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(f.hasOwnProperty(l)?(null!=u&&jn(i,l),e||c===u||(e=[])):(e=e||[]).push(l,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&Ga(t)}},Ba=function(e,t,n,r){n!==r&&Ga(t)};var Ja="function"==typeof WeakSet?WeakSet:Set;function el(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=Z(n)),null!==n&&q(n.type),t=t.value,null!==e&&1===e.tag&&q(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function tl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){zs(e,t)}else t.current=null}function nl(e,t){switch(t.tag){case 0:case 11:case 15:rl(2,0,t);break;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw a(Error(163))}}function rl(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}0!=(r.tag&t)&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function ol(e,t,n){switch("function"==typeof Ms&&Ms(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Bo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){zs(o,e)}}e=e.next}while(e!==r)}))}break;case 1:tl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){zs(e,t)}}(t,n);break;case 5:tl(t);break;case 4:sl(e,t,n)}}function il(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&il(t)}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:{for(var t=e.return;null!==t;){if(al(t)){var n=t;break e}t=t.return}throw a(Error(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw a(Error(161))}16&n.effectTag&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||al(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(n.effectTag&bt)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&bt)){n=n.stateNode;break e}}for(var o=e;;){var i=5===o.tag||6===o.tag;if(i){var l=i?o.stateNode:o.stateNode.instance;if(n)if(r){var s=l;l=n,8===(i=t).nodeType?i.parentNode.insertBefore(s,l):i.insertBefore(s,l)}else t.insertBefore(l,n);else r?(8===(s=t).nodeType?(i=s.parentNode).insertBefore(l,s):(i=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=Un)):t.appendChild(l)}else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function sl(e,t,n){for(var r,o,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw a(Error(160));switch(r=l.stateNode,l.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,u=n,p=c;;)if(ol(s,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===c)break;for(;null===p.sibling;){if(null===p.return||p.return===c)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}o?(s=r,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(ol(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function cl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:rl(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[ir]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ne(n,r),An(e,o),t=An(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];"style"===l?Dn(n,s):"dangerouslySetInnerHTML"===l?He(n,s):"children"===l?Be(n,s):xe(n,l,s,t)}switch(e){case"input":ze(n,r);break;case"textarea":Le(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Me(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Me(n,!!r.multiple,r.defaultValue,!0):Me(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw a(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,gt(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ul=Fo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=Mn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}ul(t);break;case 19:ul(t);break;case 17:case 20:case 21:break;default:throw a(Error(163))}}function ul(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ja),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function dl(e,t,n){(n=si(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Bl=r),el(e,t)},n}function fl(e,t,n){(n=si(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return el(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),el(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var hl=Math.ceil,ml=M.ReactCurrentDispatcher,gl=M.ReactCurrentOwner,vl=0,bl=8,yl=16,kl=32,wl=0,xl=1,El=2,_l=3,Sl=4,Cl=5,Tl=6,Nl=vl,zl=null,Pl=null,Rl=0,Ol=wl,Ml=null,Dl=1073741823,Il=1073741823,Ll=null,Al=0,jl=!1,Ul=0,Fl=500,Wl=null,Hl=!1,Bl=null,Vl=null,$l=!1,Yl=null,Ql=90,Xl=null,Gl=0,Kl=null,ql=0;function Zl(){return(Nl&(yl|kl))!==vl?1073741821-(Fo()/10|0):0!==ql?ql:ql=1073741821-(Fo()/10|0)}function Jl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Wo();if(0==(4&t))return 99===r?1073741823:1073741822;if((Nl&yl)!==vl)return Rl;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(r){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=2;break;default:throw a(Error(326))}return null!==zl&&e===Rl&&--e,e}var es,ts=0;function ns(e,t){if(50<Gl)throw Gl=0,Kl=null,a(Error(185));if(null!==(e=rs(e,t))){var n=Wo();1073741823===t?(Nl&bl)!==vl&&(Nl&(yl|kl))===vl?ls(e):(is(e),Nl===vl&&Yo()):is(e),(4&Nl)===vl||98!==n&&99!==n||(null===Xl?Xl=new Map([[e,t]]):(void 0===(n=Xl.get(e))||n>t)&&Xl.set(e,t))}}function rs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(zl===o&&(vs(t),Ol===Sl&&Vs(o,Rl)),$s(o,t)),o}function os(e){var t=e.lastExpiredTime;return 0!==t?t:Bs(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function is(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$o(ls.bind(null,e));else{var t=os(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Zl();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Do&&_o(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?$o(ls.bind(null,e)):Vo(r,as.bind(null,e),{timeout:10*(1073741821-t)-Fo()}),e.callbackNode=t}}}function as(e,t){if(ql=0,t)return Ys(e,t=Zl()),is(e),null;var n=os(e);if(0!==n){if(t=e.callbackNode,(Nl&(yl|kl))!==vl)throw a(Error(327));if(Cs(),e===zl&&n===Rl||fs(e,n),null!==Pl){var r=Nl;Nl|=yl;for(var o=ms();;)try{ys();break}catch(t){hs(e,t)}if(Jo(),Nl=r,ml.current=o,Ol===xl)throw t=Ml,fs(e,n),Vs(e,n),is(e),t;if(null===Pl)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,cs(e,n),r=Ol,zl=null,r){case wl:case xl:throw a(Error(345));case El:if(2!==n){Ys(e,2);break}Es(e);break;case _l:if(Vs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=xs(o)),1073741823===Dl&&10<(o=Ul+Fl-Fo())){if(jl){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,fs(e,n);break}}if(0!==(i=os(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Jn(Es.bind(null,e),o);break}Es(e);break;case Sl:if(Vs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=xs(o)),jl&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,fs(e,n);break}if(0!==(o=os(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Il?r=10*(1073741821-Il)-Fo():1073741823===Dl?r=0:(r=10*(1073741821-Dl)-5e3,0>(r=(o=Fo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Jn(Es.bind(null,e),r);break}Es(e);break;case Cl:if(1073741823!==Dl&&null!==Ll){i=Dl;var l=Ll;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|l.busyDelayMs,r=(i=Fo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Vs(e,n),e.timeoutHandle=Jn(Es.bind(null,e),r);break}}Es(e);break;case Tl:Vs(e,n);break;default:throw a(Error(329))}if(is(e),e.callbackNode===t)return as.bind(null,e)}}return null}function ls(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)Es(e);else{if((Nl&(yl|kl))!==vl)throw a(Error(327));if(Cs(),e===zl&&t===Rl||fs(e,t),null!==Pl){var n=Nl;Nl|=yl;for(var r=ms();;)try{bs();break}catch(t){hs(e,t)}if(Jo(),Nl=n,ml.current=r,Ol===xl)throw n=Ml,fs(e,t),Vs(e,t),is(e),n;if(null!==Pl)throw a(Error(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,cs(e,t),Ol===Tl?Vs(e,t):(zl=null,Es(e)),is(e)}}return null}function ss(){(Nl&(1|yl|kl))===vl&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e,t){Ys(t,e),is(t)})),Yo()}}(),Cs())}function cs(e,t){var n=e.firstBatch;null!==n&&n._defer&&n._expirationTime>=t&&(Vo(97,(function(){return n._onComplete(),null})),Ol=Tl)}function us(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{(Nl=n)===vl&&Yo()}}function ps(e,t,n,r){var o=Nl;Nl|=4;try{return Bo(98,e.bind(null,t,n,r))}finally{(Nl=o)===vl&&Yo()}}function ds(e,t){var n=Nl;Nl&=-2,Nl|=bl;try{return e(t)}finally{(Nl=n)===vl&&Yo()}}function fs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,er(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!=o&&go();break;case 3:Ai(),vo();break;case 5:Ui(r);break;case 4:Ai();break;case 13:case 19:lo(Fi);break;case 10:ti(r)}n=n.return}zl=e,Pl=As(e.current,null),Rl=t,Ol=wl,Ml=null,Il=Dl=1073741823,Ll=null,Al=0,jl=!1}function hs(e,t){for(;;){try{if(Jo(),aa(),null===Pl||null===Pl.return)return Ol=xl,Ml=t,null;e:{var n=e,r=Pl.return,o=Pl,i=t;if(t=Rl,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==i&&"object"==typeof i&&"function"==typeof i.then){var a=i,l=0!=(1&Fi.current),s=r;do{var c;if(c=13===s.tag){var u=s.memoizedState;if(null!==u)c=null!==u.dehydrated;else{var p=s.memoizedProps;c=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!l)}}if(c){var d=s.updateQueue;if(null===d){var f=new Set;f.add(a),s.updateQueue=f}else d.add(a);if(0==(2&s.mode)){if(s.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var h=si(1073741823,null);h.tag=2,ui(o,h)}o.expirationTime=1073741823;break e}i=void 0,o=t;var m=n.pingCache;if(null===m?(m=n.pingCache=new pl,i=new Set,m.set(a,i)):void 0===(i=m.get(a))&&(i=new Set,m.set(a,i)),!i.has(o)){i.add(o);var g=Ps.bind(null,n,a,o);a.then(g,g)}s.effectTag|=4096,s.expirationTime=t;break e}s=s.return}while(null!==s);i=Error((q(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+Z(o))}Ol!==Cl&&(Ol=El),i=Za(i,o),s=r;do{switch(s.tag){case 3:a=i,s.effectTag|=4096,s.expirationTime=t,pi(s,dl(s,a,t));break e;case 1:a=i;var v=s.type,b=s.stateNode;if((64&s.effectTag)===vt&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){s.effectTag|=4096,s.expirationTime=t,pi(s,fl(s,a,t));break e}}s=s.return}while(null!==s)}Pl=ws(Pl)}catch(e){t=e;continue}break}}function ms(){var e=ml.current;return ml.current=va,null===e?va:e}function gs(e,t){e<Dl&&2<e&&(Dl=e),null!==t&&e<Il&&2<e&&(Il=e,Ll=t)}function vs(e){e>Al&&(Al=e)}function bs(){for(;null!==Pl;)Pl=ks(Pl)}function ys(){for(;null!==Pl&&!So();)Pl=ks(Pl)}function ks(e){var t=es(e.alternate,e,Rl);return e.memoizedProps=e.pendingProps,null===t&&(t=ws(e)),gl.current=null,t}function ws(e){Pl=e;do{var t=Pl.alternate;if(e=Pl.return,(2048&Pl.effectTag)===vt){e:{var n=t,r=Rl,i=(t=Pl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:mo(t.type)&&go();break;case 3:Ai(),vo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===n||null===n.child)&&Ta(t)&&Ga(t),Wa(t);break;case 5:Ui(t),r=Ii(Di.current);var l=t.type;if(null!==n&&null!=t.stateNode)Ha(n,t,l,i,r),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=Ii(Oi.current);if(Ta(t)){l=void 0,n=(i=t).stateNode;var c=i.type,u=i.memoizedProps;switch(n[or]=i,n[ir]=u,c){case"iframe":case"object":case"embed":kn("load",n);break;case"video":case"audio":for(var p=0;p<Je.length;p++)kn(Je[p],n);break;case"source":kn("error",n);break;case"img":case"image":case"link":kn("error",n),kn("load",n);break;case"form":kn("reset",n),kn("submit",n);break;case"details":kn("toggle",n);break;case"input":Te(n,u),kn("invalid",n),jn(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!u.multiple},kn("invalid",n),jn(r,"onChange");break;case"textarea":Ie(n,u),kn("invalid",n),jn(r,"onChange")}for(l in Ln(c,u),p=null,u)u.hasOwnProperty(l)&&(s=u[l],"children"===l?"string"==typeof s?n.textContent!==s&&(p=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(p=["children",""+s]):f.hasOwnProperty(l)&&null!=s&&jn(r,l));switch(c){case"input":_e(n),Pe(n,u,!0);break;case"textarea":_e(n),Ae(n);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(n.onclick=Un)}r=p,i.updateQueue=r,null!==r&&Ga(t)}else{u=l,n=i,c=t,p=9===r.nodeType?r:r.ownerDocument,s===je.html&&(s=Ue(u)),s===je.html?"script"===u?((u=p.createElement("div")).innerHTML="<script><\/script>",p=u.removeChild(u.firstChild)):"string"==typeof n.is?p=p.createElement(u,{is:n.is}):(p=p.createElement(u),"select"===u&&(u=p,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):p=p.createElementNS(s,u),(u=p)[or]=c,u[ir]=n,Fa(n=u,t,!1,!1),t.stateNode=n,s=r;var d=An(l,i);switch(l){case"iframe":case"object":case"embed":kn("load",n),r=i;break;case"video":case"audio":for(r=0;r<Je.length;r++)kn(Je[r],n);r=i;break;case"source":kn("error",n),r=i;break;case"img":case"image":case"link":kn("error",n),kn("load",n),r=i;break;case"form":kn("reset",n),kn("submit",n),r=i;break;case"details":kn("toggle",n),r=i;break;case"input":Te(n,i),r=Ce(n,i),kn("invalid",n),jn(s,"onChange");break;case"option":r=Oe(n,i);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},r=o({},i,{value:void 0}),kn("invalid",n),jn(s,"onChange");break;case"textarea":Ie(n,i),r=De(n,i),kn("invalid",n),jn(s,"onChange");break;default:r=i}Ln(l,r),c=void 0,u=l,p=n;var h=r;for(c in h)if(h.hasOwnProperty(c)){var m=h[c];"style"===c?Dn(p,m):"dangerouslySetInnerHTML"===c?null!=(m=m?m.__html:void 0)&&He(p,m):"children"===c?"string"==typeof m?("textarea"!==u||""!==m)&&Be(p,m):"number"==typeof m&&Be(p,""+m):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(f.hasOwnProperty(c)?null!=m&&jn(s,c):null!=m&&xe(p,c,m,d))}switch(l){case"input":_e(n),Pe(n,i,!1);break;case"textarea":_e(n),Ae(n);break;case"option":null!=i.value&&n.setAttribute("value",""+we(i.value));break;case"select":r=n,n=i,r.multiple=!!n.multiple,null!=(c=n.value)?Me(r,!!n.multiple,c,!1):null!=n.defaultValue&&Me(r,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof r.onClick&&(n.onclick=Un)}qn(l,i)&&Ga(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw a(Error(166));break;case 6:if(n&&null!=t.stateNode)Ba(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw a(Error(166));l=Ii(Di.current),Ii(Oi.current),Ta(t)?(r=t.stateNode,i=t.memoizedProps,r[or]=t,r.nodeValue!==i&&Ga(t)):(r=t,(i=(9===l.nodeType?l:l.ownerDocument).createTextNode(i))[or]=t,r.stateNode=i)}break;case 11:break;case 13:if(lo(Fi),i=t.memoizedState,(64&t.effectTag)!==vt){t.expirationTime=r;break e}r=null!==i,i=!1,null===n?Ta(t):(i=null!==(l=n.memoizedState),r||null===l||null!==(l=n.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=l,l.nextEffect=c):(t.firstEffect=t.lastEffect=l,l.nextEffect=null),l.effectTag=8)),r&&!i&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fi.current)?Ol===wl&&(Ol=_l):(Ol!==wl&&Ol!==_l||(Ol=Sl),0!==Al&&null!==zl&&(Vs(zl,Rl),$s(zl,Al)))),(r||i)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ai(),Wa(t);break;case 10:ti(t);break;case 9:case 14:break;case 17:mo(t.type)&&go();break;case 19:if(lo(Fi),null===(i=t.memoizedState))break;if(l=(64&t.effectTag)!==vt,null===(c=i.rendering)){if(l)Ka(i,!1);else if(Ol!==wl||null!==n&&(64&n.effectTag)!==vt)for(n=t.child;null!==n;){if(null!==(c=Wi(n))){for(t.effectTag|=64,Ka(i,!1),null!==(i=c.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),t.firstEffect=t.lastEffect=null,i=t.child;null!==i;)n=r,(l=i).effectTag&=bt,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childExpirationTime=0,l.expirationTime=n,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null):(l.childExpirationTime=c.childExpirationTime,l.expirationTime=c.expirationTime,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,n=c.dependencies,l.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),i=i.sibling;so(Fi,1&Fi.current|2),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=Wi(c))){if(t.effectTag|=64,l=!0,Ka(i,!0),null===i.tail&&"hidden"===i.tailMode){null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else Fo()>i.tailExpiration&&1<r&&(t.effectTag|=64,l=!0,Ka(i,!1),t.expirationTime=t.childExpirationTime=r-1);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=i.last)?r.sibling=c:t.child=c,i.last=c)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=Fo()+500),r=i.tail,i.rendering=r,i.tail=r.sibling,i.lastEffect=t.lastEffect,r.sibling=null,i=Fi.current,so(Fi,i=l?1&i|2:1&i),t=r;break e}break;case 20:case 21:break;default:throw a(Error(156),t.tag)}t=null}if(r=Pl,1===Rl||1!==r.childExpirationTime){for(i=0,l=r.child;null!==l;)(n=l.expirationTime)>i&&(i=n),(c=l.childExpirationTime)>i&&(i=c),l=l.sibling;r.childExpirationTime=i}if(null!==t)return t;null!==e&&(2048&e.effectTag)===vt&&(null===e.firstEffect&&(e.firstEffect=Pl.firstEffect),null!==Pl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Pl.firstEffect),e.lastEffect=Pl.lastEffect),1<Pl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Pl:e.firstEffect=Pl,e.lastEffect=Pl))}else{if(null!==(t=qa(Pl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Pl.sibling))return t;Pl=e}while(null!==Pl);return Ol===wl&&(Ol=Cl),null}function xs(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Es(e){var t=Wo();return Bo(99,_s.bind(null,e,t)),null}function _s(e,t){if(Cs(),(Nl&(yl|kl))!==vl)throw a(Error(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw a(Error(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=xs(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===zl&&(Pl=zl=null,Rl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Nl;Nl|=kl,gl.current=null,Gn=yn;var l=Bn();if(Vn(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{s.nodeType,p.nodeType}catch(e){s=null;break e}var d=0,f=-1,h=-1,m=0,g=0,v=l,b=null;t:for(;;){for(var y;v!==s||0!==u&&3!==v.nodeType||(f=d+u),v!==p||0!==c&&3!==v.nodeType||(h=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)b=v,v=y;for(;;){if(v===l)break t;if(b===s&&++m===u&&(f=d),b===p&&++g===c&&(h=d),null!==(y=v.nextSibling))break;b=(v=b).parentNode}v=y}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;Kn={focusedElem:l,selectionRange:s},yn=!1,Wl=o;do{try{Ss()}catch(e){if(null===Wl)throw a(Error(330));zs(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=o;do{try{for(l=e,s=t;null!==Wl;){var k=Wl.effectTag;if(16&k&&Be(Wl.stateNode,""),128&k){var w=Wl.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(k&(12|bt|yt)){case bt:ll(Wl),Wl.effectTag&=~bt;break;case 6:ll(Wl),Wl.effectTag&=~bt,cl(Wl.alternate,Wl);break;case yt:Wl.effectTag&=~yt;break;case 1028:Wl.effectTag&=~yt,cl(Wl.alternate,Wl);break;case 4:cl(Wl.alternate,Wl);break;case 8:sl(l,u=Wl,s),il(u)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw a(Error(330));zs(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(x=Kn,w=Bn(),k=x.focusedElem,s=x.selectionRange,w!==k&&k&&k.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(k.ownerDocument.documentElement,k)){null!==s&&Vn(k)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in k?(k.selectionStart=w,k.selectionEnd=Math.min(x,k.value.length)):(x=(w=k.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),u=k.textContent.length,l=Math.min(s.start,u),s=void 0===s.end?l:Math.min(s.end,u),!x.extend&&l>s&&(u=s,s=l,l=u),u=Hn(k,l),p=Hn(k,s),u&&p&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==p.node||x.focusOffset!==p.offset)&&((w=w.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),l>s?(x.addRange(w),x.extend(p.node,p.offset)):(w.setEnd(p.node,p.offset),x.addRange(w))))),w=[];for(x=k;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<w.length;k++)(x=w[k]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kn=null,yn=!!Gn,Gn=null,e.current=n,Wl=o;do{try{for(k=r;null!==Wl;){var E=Wl.effectTag;if(36&E){var _=Wl.alternate;switch(x=k,(w=Wl).tag){case 0:case 11:case 15:rl(16,32,w);break;case 1:var S=w.stateNode;if(4&w.effectTag)if(null===_)S.componentDidMount();else{var C=w.elementType===w.type?_.memoizedProps:Xo(w.type,_.memoizedProps);S.componentDidUpdate(C,_.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var T=w.updateQueue;null!==T&&mi(0,T,S);break;case 3:var N=w.updateQueue;if(null!==N){if(l=null,null!==w.child)switch(w.child.tag){case 5:l=w.child.stateNode;break;case 1:l=w.child.stateNode}mi(0,N,l)}break;case 5:var z=w.stateNode;null===_&&4&w.effectTag&&(x=z,qn(w.type,w.memoizedProps)&&x.focus());break;case 6:case 4:case 12:break;case 13:if(null===w.memoizedState){var P=w.alternate;if(null!==P){var R=P.memoizedState;if(null!==R){var O=R.dehydrated;null!==O&&gt(O)}}}break;case 19:case 17:case 20:case 21:break;default:throw a(Error(163))}}if(128&E){var M=(w=Wl).ref;if(null!==M){var D=w.stateNode;switch(w.tag){case 5:var I=D;break;default:I=D}"function"==typeof M?M(I):M.current=I}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw a(Error(330));zs(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,Io(),Nl=i}else e.current=n;if($l)$l=!1,Yl=e,Ql=t;else for(Wl=o;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,Wl=t;if(0===(t=e.firstPendingTime)&&(Vl=null),1073741823===t?e===Kl?Gl++:(Gl=0,Kl=e):Gl=0,"function"==typeof Os&&Os(n.stateNode,r),is(e),Hl)throw Hl=!1,e=Bl,Bl=null,e;return(Nl&bl)!==vl?null:(Yo(),null)}function Ss(){for(;null!==Wl;){var e=Wl.effectTag;(256&e)!==vt&&nl(Wl.alternate,Wl),(512&e)===vt||$l||($l=!0,Vo(97,(function(){return Cs(),null}))),Wl=Wl.nextEffect}}function Cs(){if(90!==Ql){var e=97<Ql?97:Ql;return Ql=90,Bo(e,Ts)}}function Ts(){if(null===Yl)return!1;var e=Yl;if(Yl=null,(Nl&(yl|kl))!==vl)throw a(Error(331));var t=Nl;for(Nl|=kl,e=e.current.firstEffect;null!==e;){try{var n=e;if((512&n.effectTag)!==vt)switch(n.tag){case 0:case 11:case 15:rl(128,0,n),rl(0,64,n)}}catch(t){if(null===e)throw a(Error(330));zs(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Nl=t,Yo(),!0}function Ns(e,t,n){ui(e,t=dl(e,t=Za(n,t),1073741823)),null!==(e=rs(e,1073741823))&&is(e)}function zs(e,t){if(3===e.tag)Ns(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ns(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){ui(n,e=fl(n,e=Za(t,e),1073741823)),null!==(n=rs(n,1073741823))&&is(n);break}}n=n.return}}function Ps(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),zl===e&&Rl===n?Ol===Sl||Ol===_l&&1073741823===Dl&&Fo()-Ul<Fl?fs(e,Rl):jl=!0:Bs(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),is(e)))}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),1===(t=1)&&(t=Jl(t=Zl(),e,null)),null!==(e=rs(e,t))&&is(e)}es=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||po.current)Pa=!0;else{if(r<n){switch(Pa=!1,t.tag){case 3:Ua(t),Na();break;case 5:if(ji(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mo(t.type)&&ko(t);break;case 4:Li(t,t.stateNode.containerInfo);break;case 10:ei(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?$a(e,t,n):(so(Fi,1&Fi.current),null!==(t=Xa(e,t,n))?t.sibling:null);so(Fi,1&Fi.current);break;case 19:if(r=t.childExpirationTime>=n,(64&e.effectTag)!==vt){if(r)return Qa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),so(Fi,Fi.current),!r)return null}return Xa(e,t,n)}Pa=!1}}else Pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=bt),e=t.pendingProps,o=ho(t,uo.current),ri(t,n),o=ia(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,aa(),mo(r)){var i=!0;ko(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&yi(t,r,l,e),o.updater=ki,t.stateNode=o,o._reactInternalFiber=t,_i(t,r,e,n),t=ja(null,t,r,!0,i,n)}else t.tag=0,Ra(null,t,o,n),t=t.child;return t;case 16:if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=bt),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ls(e)?1:0;if(null!=e){if((e=e.$$typeof)===V)return 11;if(e===Q)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=La(null,t,o,e,n);break;case 1:t=Aa(null,t,o,e,n);break;case 11:t=Oa(null,t,o,e,n);break;case 14:t=Ma(null,t,o,Xo(o.type,e),r,n);break;default:throw a(Error(306),o,"")}return t;case 0:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Aa(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Ua(t),null===(r=t.updateQueue))throw a(Error(282));if(o=null!==(o=t.memoizedState)?o.element:null,hi(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o)Na(),t=Xa(e,t,n);else{if((o=t.stateNode.hydrate)&&(wa=tr(t.stateNode.containerInfo.firstChild),ka=t,o=xa=!0),o)for(n=Pi(t,null,r,n),t.child=n;n;)n.effectTag=n.effectTag&~bt|yt,n=n.sibling;else Ra(e,t,r,n),Na();t=t.child}return t;case 5:return ji(t),null===e&&Sa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Zn(r,o)?l=null:null!==i&&Zn(r,i)&&(t.effectTag|=16),Ia(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,l,n),t=t.child),t;case 6:return null===e&&Sa(t),null;case 13:return $a(e,t,n);case 4:return Li(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=zi(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,ei(t,i=o.value),null!==l){var s=l.value;if(0===(i=Xr(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!po.current){t=Xa(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===s.tag&&((u=si(n,null)).tag=2,ui(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ni(s.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}}Ra(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Ma(e,t,o,i=Xo(o.type,i),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=bt),t.tag=1,mo(r)?(e=!0,ko(t)):e=!1,ri(t,n),xi(t,r,o),_i(t,r,o,n),ja(null,t,r,!0,e,n);case 19:return Qa(e,t,n)}throw a(Error(156),t.tag)};var Os=null,Ms=null;function Ds(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=vt,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Is(e,t,n,r){return new Ds(e,t,n,r)}function Ls(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=Is(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=vt,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function js(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ls(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case j:return Us(n.children,o,i,t);case B:l=8,o|=7;break;case U:l=8,o|=1;break;case F:return(e=Is(12,n,t,8|o)).elementType=F,e.type=F,e.expirationTime=i,e;case $:return(e=Is(13,n,t,o)).type=$,e.elementType=$,e.expirationTime=i,e;case Y:return(e=Is(19,n,t,o)).elementType=Y,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case W:l=10;break e;case H:l=9;break e;case V:l=11;break e;case Q:l=14;break e;case X:l=16,r=null;break e}throw a(Error(130),null==e?e:typeof e,"")}return(t=Is(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Us(e,t,n,r){return(e=Is(7,e,r,t)).expirationTime=n,e}function Fs(e,t,n){return(e=Is(6,e,null,t)).expirationTime=n,e}function Ws(e,t,n){return(t=Is(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hs(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Bs(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Vs(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function $s(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ys(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Qs(e,t,n,r,o,i){var l=t.current;e:if(n){t:{if(kt(n=n._reactInternalFiber)!==n||1!==n.tag)throw a(Error(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(mo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw a(Error(171))}if(1===n.tag){var c=n.type;if(mo(c)){n=yo(n,c,s);break e}}n=s}else n=co;return null===t.context?t.context=n:t.pendingContext=n,t=i,(o=si(r,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),ui(l,o),ns(l,r),r}function Xs(e,t,n,r){var o=t.current,i=Zl(),a=vi.suspense;return Qs(e,t,n,o=Jl(i,o,a),a,r)}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ks(e){var t=1073741821-25*(1+((1073741821-Zl()+500)/25|0));t<=ts&&--t,this._expirationTime=ts=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function qs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Zs(e,t,n){var r=new Hs(e,t,n=null!=n&&!0===n.hydrate),o=Is(3,null,null,2===t?7:1===t?3:0);return r.current=o,o.stateNode=r,e[ar]=r.current,n&&0!==t&&function(e){var t=zn(e);lt.forEach((function(n){Pn(n,e,t)})),st.forEach((function(n){Pn(n,e,t)}))}(9===e.nodeType?e:e.ownerDocument),r}function Js(e,t,n){this._internalRoot=Zs(e,t,n)}function ec(e,t){this._internalRoot=Zs(e,2,t)}function tc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function nc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Gs(a);l.call(e)}}Xs(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Js(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=Gs(a);s.call(e)}}ds((function(){Xs(t,a,e,o)}))}return Gs(a)}function rc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!tc(t))throw a(Error(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}ee=function(e,t,n){switch(t){case"input":if(ze(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ur(r);if(!o)throw a(Error(90));Se(r),ze(r,o)}}}break;case"textarea":Le(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},Ks.prototype.render=function(e){if(!this._defer)throw a(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new qs;return Qs(e,t,null,n,null,r._onCommit),r},Ks.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ks.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw a(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;if(null===r)throw a(Error(251));r._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(Nl&(yl|kl))!==vl)throw a(Error(253));Ys(e,t),is(e),Yo(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Ks.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},qs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},qs.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)throw a(Error(191),n);n()}}},ec.prototype.render=Js.prototype.render=function(e,t){var n=this._internalRoot,r=new qs;return null!==(t=void 0===t?null:t)&&r.then(t),Xs(e,n,null,r._onCommit),r},ec.prototype.unmount=Js.prototype.unmount=function(e){var t=this._internalRoot,n=new qs;return null!==(e=void 0===e?null:e)&&n.then(e),Xs(null,t,null,n._onCommit),n},ec.prototype.createBatch=function(){var e=new Ks(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},ae=us,le=ps,se=ss,ce=function(e,t){var n=Nl;Nl|=2;try{return e(t)}finally{(Nl=n)===vl&&Yo()}};var oc,ic,ac={createPortal:rc,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw a(Error(188));throw a(Error(268),Object.keys(e))}e=null===(e=xt(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!tc(t))throw a(Error(200));return nc(null,e,t,!0,n)},render:function(e,t,n){if(!tc(t))throw a(Error(200));return nc(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!tc(n))throw a(Error(200));if(null==e||void 0===e._reactInternalFiber)throw a(Error(38));return nc(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!tc(e))throw a(Error(40));return!!e._reactRootContainer&&(ds((function(){nc(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return rc.apply(void 0,arguments)},unstable_batchedUpdates:us,unstable_interactiveUpdates:function(e,t,n,r){return ss(),ps(e,t,n,r)},unstable_discreteUpdates:ps,unstable_flushDiscreteUpdates:ss,flushSync:function(e,t){if((Nl&(yl|kl))!==vl)throw a(Error(187));var n=Nl;Nl|=1;try{return Bo(99,e.bind(null,t))}finally{Nl=n,Yo()}},unstable_createRoot:function(e,t){if(!tc(e))throw a(Error(299),"unstable_createRoot");return new ec(e,t)},unstable_createSyncRoot:function(e,t){if(!tc(e))throw a(Error(299),"unstable_createRoot");return new Js(e,1,t)},unstable_flushControlled:function(e){var t=Nl;Nl|=1;try{Bo(99,e)}finally{(Nl=t)===vl&&Yo()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[sr,cr,ur,R.injectEventPluginsByName,d,zt,function(e){T(e,Nt)},oe,ie,Sn,P,Cs,{current:!1}]}};ic=(oc={findFiberByHostInstance:lr,bundleType:0,version:"16.10.2",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Os=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Ms=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},oc,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=xt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return ic?ic(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var lc={default:ac},sc=lc&&ac||lc;e.exports=sc.default||sc},function(e,t,n){"use strict";e.exports=n(10)},function(e,t,n){"use strict";
/** @license React v0.16.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,o,i,a,l;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,f=window.Date,h=window.setTimeout,m=window.clearTimeout,g=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var b=f.now();t.unstable_now=function(){return f.now()-b}}var y=!1,k=null,w=-1,x=5,E=0;a=function(){return t.unstable_now()>=E},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):33.33};var _=new MessageChannel,S=_.port2;_.port1.onmessage=function(){if(null!==k){var e=t.unstable_now();E=e+x;try{k(!0,e)?S.postMessage(null):(y=!1,k=null)}catch(e){throw S.postMessage(null),e}}else y=!1},r=function(e){k=e,y||(y=!0,S.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){m(w),w=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),o=e[r];if(!(void 0!==o&&0<z(o,t)))break e;e[r]=t,e[n]=o,n=r}}function T(e){return void 0===(e=e[0])?null:e}function N(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,s=e[l];if(void 0!==a&&0>z(a,n))void 0!==s&&0>z(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>z(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function z(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],R=[],O=1,M=null,D=3,I=!1,L=!1,A=!1;function j(e){for(var t=T(R);null!==t;){if(null===t.callback)N(R);else{if(!(t.startTime<=e))break;N(R),t.sortIndex=t.expirationTime,C(P,t)}t=T(R)}}function U(e){if(A=!1,j(e),!L)if(null!==T(P))L=!0,r(F);else{var t=T(R);null!==t&&o(U,t.startTime-e)}}function F(e,n){L=!1,A&&(A=!1,i()),I=!0;var r=D;try{for(j(n),M=T(P);null!==M&&(!(M.expirationTime>n)||e&&!a());){var l=M.callback;if(null!==l){M.callback=null,D=M.priorityLevel;var s=l(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?M.callback=s:M===T(P)&&N(P),j(n)}else N(P);M=T(P)}if(null!==M)var c=!0;else{var u=T(R);null!==u&&o(U,u.startTime-n),c=!1}return c}finally{M=null,D=r,I=!1}}function W(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?l+s:l,a="number"==typeof a.timeout?a.timeout:W(e)}else a=W(e),s=l;return e={id:O++,callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>l?(e.sortIndex=s,C(R,e),null===T(P)&&e===T(R)&&(A?i():A=!0,o(U,s-l))):(e.sortIndex=a,C(P,e),L||I||(L=!0,r(F))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=T(P);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||a()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){L||I||(L=!0,r(F))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return T(P)},t.unstable_Profiling=null},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(0)),a={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}};t.Resizer=function(e){return i.createElement("div",{className:e.className||"",style:r({position:"absolute",userSelect:"none"},a[e.direction],e.replaceStyles||{}),onMouseDown:function(t){e.onResizeStart(t,e.direction)},onTouchStart:function(t){e.onResizeStart(t,e.direction)}},e.children)}},function(e,t){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function l(){this.cache=Object.create(null)}l.prototype.has=function(e){return e in this.cache},l.prototype.get=function(e){return this.cache[e]},l.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new l}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){e.exports=function(e,t){"use strict";function n(e,t){return e(t={exports:{}},t.exports),t.exports}function r(e){return function(){return e}}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e};var i=o,a=function(e){};a=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")};var l=function(e,t,n,r,o,i,l,s){if(a(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,l,s],p=0;(c=new Error(t.replace(/%s/g,(function(){return u[p++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}},s=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}},c=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];s.apply(void 0,[t].concat(r))}},u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function f(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var h=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=f(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))p.call(n,a)&&(o[a]=n[a]);if(u){r=u(n);for(var l=0;l<r.length;l++)d.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",g=l,v=c,b=m,y={},k=function(e,t,n,r,o){for(var i in e)if(e.hasOwnProperty(i)){var a;try{g("function"==typeof e[i],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",r||"React class",n,i,typeof e[i]),a=e[i](t,i,r,n,null,b)}catch(e){a=e}if(v(!a||a instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,i,typeof a),a instanceof Error&&!(a.message in y)){y[a.message]=!0;var l=o?o():"";v(!1,"Failed %s type: %s%s",n,a.message,null!=l?l:"")}}},w=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,r="@@iterator",o="<<anonymous>>",a={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:u(i.thatReturnsNull),arrayOf:function(e){return u((function(t,n,r,o,i){if("function"!=typeof e)return new s("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new s("Invalid "+o+" `"+i+"` of type `"+f(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,r,o,i+"["+l+"]",m);if(c instanceof Error)return c}return null}))},element:u((function(t,n,r,o,i){var a=t[n];return e(a)?null:new s("Invalid "+o+" `"+i+"` of type `"+f(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return u((function(t,n,r,i,a){if(!(t[n]instanceof e)){var l=e.name||o;return new s("Invalid "+i+" `"+a+"` of type `"+((c=t[n]).constructor&&c.constructor.name?c.constructor.name:o)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var c;return null}))},node:u((function(e,t,n,r,o){return d(e[t])?null:new s("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return u((function(t,n,r,o,i){if("function"!=typeof e)return new s("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],l=f(a);if("object"!==l)return new s("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var u=e(a,c,r,o,i+"."+c,m);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?u((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(c=a,u=e[l],c===u?0!==c||1/c==1/u:c!=c&&u!=u)return null;var c,u;return new s("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):(c(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return c(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return c(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",v(n),t),i.thatReturnsNull}return u((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,m))return null;return new s("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return u((function(t,n,r,o,i){var a=t[n],l=f(a);if("object"!==l)return new s("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var p=u(a,c,r,o,i+"."+c,m);if(p)return p}}return null}))},exact:function(e){return u((function(t,n,r,o,i){var a=t[n],l=f(a);if("object"!==l)return new s("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var c=h({},t[n],e);for(var u in c){var p=e[u];if(!p)return new s("Invalid "+o+" `"+i+"` key `"+u+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=p(a,u,r,o,i+"."+u,m);if(d)return d}return null}))}};function s(e){this.message=e,this.stack=""}function u(e){var n={},r=0;function i(i,a,u,p,d,f,h){if(p=p||o,f=f||u,h!==m)if(t)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("undefined"!=typeof console){var g=p+":"+u;!n[g]&&r<3&&(c(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,p),n[g]=!0,r++)}return null==a[u]?i?null===a[u]?new s("The "+d+" `"+f+"` is marked as required in `"+p+"`, but its value is `null`."):new s("The "+d+" `"+f+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(a,u,p,d,f)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function p(e){return u((function(t,n,r,o,i,a){var l=t[n];return f(l)!==e?new s("Invalid "+o+" `"+i+"` of type `"+g(l)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function d(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(d);if(null===t||e(t))return!0;var o=function(e){var t=e&&(n&&e[n]||e[r]);if("function"==typeof t)return t}(t);if(!o)return!1;var i,a=o.call(t);if(o!==t.entries){for(;!(i=a.next()).done;)if(!d(i.value))return!1}else for(;!(i=a.next()).done;){var l=i.value;if(l&&!d(l[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function g(e){if(null==e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return s.prototype=Error.prototype,a.checkPropTypes=k,a.PropTypes=a,a},x=n((function(e){var t="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=w((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}),!0)})),E=n((function(e){
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o))e.push(n.apply(null,o));else if("object"===i)for(var a in o)t.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=n:window.classNames=n}()}));function _(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function S(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function C(e){return"number"==typeof e&&!isNaN(e)}function T(e){return parseInt(e,10)}function N(e,t,n){if(e[t])return new Error("Invalid prop "+t+" passed to "+n+" - do not set this, set it on the child.")}var z=["Moz","Webkit","O","ms"];function P(e,t){return t?""+t+function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e):e}var R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var n=0;n<z.length;n++)if(P(e,z[n])in t)return z[n];return""}(),O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),D=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},A=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},j=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},U="";function F(e,t){return U||(U=_(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return S(e[t])}))),!!S(e[U])&&e[U](t)}function W(e,t,n){var r=e;do{if(F(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function H(e,t,n){e&&(e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener?e.addEventListener(t,n,!0):e["on"+t]=n)}function B(e,t,n){e&&(e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener?e.removeEventListener(t,n,!0):e["on"+t]=null)}function V(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=T(n.borderTopWidth),t+=T(n.borderBottomWidth)}function $(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=T(n.borderLeftWidth),t+=T(n.borderRightWidth)}function Y(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=T(n.paddingTop),t-=T(n.paddingBottom)}function Q(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=T(n.paddingLeft),t-=T(n.paddingRight)}function X(e,t,n){var r="translate("+e.x+n+","+e.y+n+")";return t&&(r="translate("+("string"==typeof t.x?t.x:t.x+n)+", "+("string"==typeof t.y?t.y:t.y+n)+")"+r),r}function G(e){if(e){var t,n,r=e.getElementById("react-draggable-style-el");r||((r=e.createElement("style")).type="text/css",r.id="react-draggable-style-el",r.innerHTML=".react-draggable-transparent-selection *::-moz-selection {background: transparent;}\n",r.innerHTML+=".react-draggable-transparent-selection *::selection {background: transparent;}\n",e.getElementsByTagName("head")[0].appendChild(r)),e.body&&(t=e.body,n="react-draggable-transparent-selection",t.classList?t.classList.add(n):t.className.match(new RegExp("(?:^|\\s)"+n+"(?!\\S)"))||(t.className+=" "+n))}}function K(e){try{e&&e.body&&(t=e.body,n="react-draggable-transparent-selection",t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(?:^|\\s)"+n+"(?!\\S)","g"),"")),e.selection?e.selection.empty():window.getSelection().removeAllRanges()}catch(e){}var t,n}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return I({touchAction:"none"},e)}function Z(e){return"both"===e.props.axis||"x"===e.props.axis}function J(e){return"both"===e.props.axis||"y"===e.props.axis}function ee(e,t,n){var r="number"==typeof t?function(e,t){return e.targetTouches&&_(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&_(e.changedTouches,(function(e){return t===e.identifier}))}(e,t):null;if("number"==typeof t&&!r)return null;var o=re(n);return function(e,t){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:e.clientX+t.scrollLeft-n.left,y:e.clientY+t.scrollTop-n.top}}(r||e,n.props.offsetParent||o.offsetParent||o.ownerDocument.body)}function te(e,t,n){var r=e.state,o=!C(r.lastX),i=re(e);return o?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}}function ne(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function re(t){var n=e.findDOMNode(t);if(!n)throw new Error("<DraggableCore>: Unmounted during event!");return n}var oe={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},ie=oe.mouse,ae=function(n){function r(){var t,n,o;O(this,r);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=A(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(a))),o.state={dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null},o.handleDragStart=function(t){if(o.props.onMouseDown(t),!o.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode(o);if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(o.props.disabled||!(t.target instanceof r.defaultView.Node)||o.props.handle&&!W(t.target,o.props.handle,n)||o.props.cancel&&W(t.target,o.props.cancel,n))){var i=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0}(t);o.setState({touchIdentifier:i});var a=ee(t,i,o);if(null!=a){var l=a.x,s=a.y,c=te(o,l,s);o.props.onStart,!1!==o.props.onStart(t,c)&&(o.props.enableUserSelectHack&&G(r),o.setState({dragging:!0,lastX:l,lastY:s}),H(r,ie.move,o.handleDrag),H(r,ie.stop,o.handleDragStop))}}},o.handleDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=ee(e,o.state.touchIdentifier,o);if(null!=t){var n,r,i,a=t.x,l=t.y;if(Array.isArray(o.props.grid)){var s=a-o.state.lastX,c=l-o.state.lastY,u=(n=o.props.grid,r=s,i=c,[Math.round(r/n[0])*n[0],Math.round(i/n[1])*n[1]]),p=j(u,2);if(s=p[0],c=p[1],!s&&!c)return;a=o.state.lastX+s,l=o.state.lastY+c}var d=te(o,a,l);if(!1!==o.props.onDrag(e,d))o.setState({lastX:a,lastY:l});else try{o.handleDragStop(new MouseEvent("mouseup"))}catch(e){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),o.handleDragStop(f)}}},o.handleDragStop=function(t){if(o.state.dragging){var n=ee(t,o.state.touchIdentifier,o);if(null!=n){var r=n.x,i=n.y,a=te(o,r,i),l=e.findDOMNode(o);l&&o.props.enableUserSelectHack&&K(l.ownerDocument),o.setState({dragging:!1,lastX:NaN,lastY:NaN}),o.props.onStop(t,a),l&&(B(l.ownerDocument,ie.move,o.handleDrag),B(l.ownerDocument,ie.stop,o.handleDragStop))}}},o.onMouseDown=function(e){return ie=oe.mouse,o.handleDragStart(e)},o.onMouseUp=function(e){return ie=oe.mouse,o.handleDragStop(e)},o.onTouchStart=function(e){return ie=oe.touch,o.handleDragStart(e)},o.onTouchEnd=function(e){return ie=oe.touch,o.handleDragStop(e)},A(o,n)}return L(r,n),M(r,[{key:"componentWillUnmount",value:function(){var t=e.findDOMNode(this);if(t){var n=t.ownerDocument;B(n,oe.mouse.move,this.handleDrag),B(n,oe.touch.move,this.handleDrag),B(n,oe.mouse.stop,this.handleDragStop),B(n,oe.touch.stop,this.handleDragStop),this.props.enableUserSelectHack&&K(n)}}},{key:"render",value:function(){return t.cloneElement(t.Children.only(this.props.children),{style:q(this.props.children.props.style),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(t.Component);ae.displayName="DraggableCore",ae.propTypes={allowAnyClick:x.bool,disabled:x.bool,enableUserSelectHack:x.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:x.arrayOf(x.number),scale:x.number,handle:x.string,cancel:x.string,onStart:x.func,onDrag:x.func,onStop:x.func,onMouseDown:x.func,className:N,style:N,transform:N},ae.defaultProps={allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){}};var le=function(n){function r(e){O(this,r);var t=A(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.onDragStart=function(e,n){if(!1===t.props.onStart(e,ne(t,n)))return!1;t.setState({dragging:!0,dragged:!0})},t.onDrag=function(e,n){if(!t.state.dragging)return!1;var r=ne(t,n),o={x:r.x,y:r.y};if(t.props.bounds){var i=o.x,a=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var l=function(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"==typeof r?r:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(r);var o=re(e);if("string"==typeof r){var i=o.ownerDocument,a=i.defaultView,l=void 0;if(!((l="parent"===r?o.parentNode:i.querySelector(r))instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var s=a.getComputedStyle(o),c=a.getComputedStyle(l);r={left:-o.offsetLeft+T(c.paddingLeft)+T(s.marginLeft),top:-o.offsetTop+T(c.paddingTop)+T(s.marginTop),right:Q(l)-$(o)-o.offsetLeft+T(c.paddingRight)-T(s.marginRight),bottom:Y(l)-V(o)-o.offsetTop+T(c.paddingBottom)-T(s.marginBottom)}}return C(r.right)&&(t=Math.min(t,r.right)),C(r.bottom)&&(n=Math.min(n,r.bottom)),C(r.left)&&(t=Math.max(t,r.left)),C(r.top)&&(n=Math.max(n,r.top)),[t,n]}(t,o.x,o.y),s=j(l,2),c=s[0],u=s[1];o.x=c,o.y=u,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(a-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)},t.onDragStop=function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,ne(t,n)))return!1;var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)},t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,slackX:0,slackY:0,isElementSVG:!1},t}return L(r,n),M(r,[{key:"componentWillMount",value:function(){!this.props.position||this.props.onDrag||this.props.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}},{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&e.findDOMNode(this)instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillReceiveProps",value:function(e){!e.position||this.props.position&&e.position.x===this.props.position.x&&e.position.y===this.props.position.y||this.setState({x:e.position.x,y:e.position.y})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"render",value:function(){var e,n,r,o={},i=null,a=!Boolean(this.props.position)||this.state.dragging,l=this.props.position||this.props.defaultPosition,s={x:Z(this)&&a?this.state.x:l.x,y:J(this)&&a?this.state.y:l.y};this.state.isElementSVG?(n=s,r=this.props.positionOffset,i=X(n,r,"")):o=function(e,t){var n=X(e,t,"px");return D({},P("transform",R),n)}(s,this.props.positionOffset);var c=this.props,u=c.defaultClassName,p=c.defaultClassNameDragging,d=c.defaultClassNameDragged,f=t.Children.only(this.props.children),h=E(f.props.className||"",u,(D(e={},p,this.state.dragging),D(e,d,this.state.dragged),e));return t.createElement(ae,I({},this.props,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(f,{className:h,style:I({},f.props.style,o),transform:i}))}}]),r}(t.Component);return le.displayName="Draggable",le.propTypes=I({},ae.propTypes,{axis:x.oneOf(["both","x","y","none"]),bounds:x.oneOfType([x.shape({left:x.number,right:x.number,top:x.number,bottom:x.number}),x.string,x.oneOf([!1])]),defaultClassName:x.string,defaultClassNameDragging:x.string,defaultClassNameDragged:x.string,defaultPosition:x.shape({x:x.number,y:x.number}),positionOffset:x.shape({x:x.oneOfType([x.number,x.string]),y:x.oneOfType([x.number,x.string])}),position:x.shape({x:x.number,y:x.number}),className:N,style:N,transform:N}),le.defaultProps=I({},ae.defaultProps,{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}),le.default=le,le.DraggableCore=ae,le}(n(3),n(0))},function(e,t,n){var r=n(15);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,':root{--ck-inspector-color-tree-node-hover:#eaf2fb;--ck-inspector-color-tree-node-name:#882680;--ck-inspector-color-tree-node-attribute-name:#8a8a8a;--ck-inspector-color-tree-node-tag:#aaa;--ck-inspector-color-tree-node-attribute:#9a4819;--ck-inspector-color-tree-node-attribute-value:#2a43ac;--ck-inspector-color-tree-text-border:#b7b7b7;--ck-inspector-color-tree-node-border-hover:#b0c6e0;--ck-inspector-color-tree-content-delimiter:#ddd;--ck-inspector-color-tree-node-active-bg:#f5faff;--ck-inspector-color-tree-node-name-active-bg:#2b98f0;--ck-inspector-color-tree-node-inactive:#8a8a8a;--ck-inspector-color-tree-selection:red;--ck-inspector-color-comment:green}.ck-inspector .ck-inspector-tree{background:var(--ck-inspector-color-white);padding:1em;width:100%;height:100%;overflow:auto;user-select:none}.ck-inspector-tree .ck-inspector-tree-node__attribute{font:inherit;margin-left:.4em;color:var(--ck-inspector-color-tree-node-tag)}.ck-inspector-tree .ck-inspector-tree-node__attribute .ck-inspector-tree-node__attribute__name{color:var(--ck-inspector-color-tree-node-attribute)}.ck-inspector-tree .ck-inspector-tree-node__attribute .ck-inspector-tree-node__attribute__value{color:var(--ck-inspector-color-tree-node-attribute-value)}.ck-inspector-tree .ck-inspector-tree-node__attribute .ck-inspector-tree-node__attribute__value:before{content:\'="\'}.ck-inspector-tree .ck-inspector-tree-node__attribute .ck-inspector-tree-node__attribute__value:after{content:\'"\'}.ck-inspector-tree .ck-inspector-tree-node .ck-inspector-tree-node__name{color:var(--ck-inspector-color-tree-node-name);display:block;padding:0 .1em;border-left:1px solid transparent}.ck-inspector-tree .ck-inspector-tree-node .ck-inspector-tree-node__name:hover{background:var(--ck-inspector-color-tree-node-hover)}.ck-inspector-tree .ck-inspector-tree-node .ck-inspector-tree-node__content{padding:1px .5em 1px 1.5em;border-left:1px solid var(--ck-inspector-color-tree-content-delimiter);white-space:pre-wrap}.ck-inspector-tree .ck-inspector-tree-node:not(.ck-inspector-tree-node_tagless) .ck-inspector-tree-node__name:before{content:"<";color:var(--ck-inspector-color-tree-node-tag)}.ck-inspector-tree .ck-inspector-tree-node:not(.ck-inspector-tree-node_tagless) .ck-inspector-tree-node__name:after{content:">";color:var(--ck-inspector-color-tree-node-tag)}.ck-inspector-tree .ck-inspector-tree-node:not(.ck-inspector-tree-node_tagless).ck-inspector-tree-node_empty .ck-inspector-tree-node__name:after{content:" />"}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_tagless .ck-inspector-tree-node__content{display:none}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__name:first-child,.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__name:first-child:after,.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__name:first-child:before,.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__name:first-child :not(.ck-inspector-tree__selection){background:var(--ck-inspector-color-tree-node-name-active-bg);color:var(--ck-inspector-color-white)}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active .ck-inspector-tree-node__content,.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__name:last-child{background:var(--ck-inspector-color-tree-node-active-bg)}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__content{border-left-color:var(--ck-inspector-color-tree-node-name-active-bg)}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_active>.ck-inspector-tree-node__name:last-child{border-left:1px solid var(--ck-inspector-color-tree-node-name-active-bg)}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_disabled{opacity:.8}.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_disabled .ck-inspector-tree-node__name,.ck-inspector-tree .ck-inspector-tree-node.ck-inspector-tree-node_disabled .ck-inspector-tree-node__name *{color:var(--ck-inspector-color-tree-node-inactive)}.ck-inspector-tree .ck-inspector-tree-text{display:block;margin-bottom:1px}.ck-inspector-tree .ck-inspector-tree-text .ck-inspector-tree-node__content{border:1px dotted var(--ck-inspector-color-tree-text-border);border-radius:2px;padding:0 1px;margin-right:1px;display:inline-block}.ck-inspector-tree .ck-inspector-tree-text .ck-inspector-tree-text__attributes:not(:empty){margin-right:.5em}.ck-inspector-tree .ck-inspector-tree-text .ck-inspector-tree-text__attributes .ck-inspector-tree-node__attribute{background:var(--ck-inspector-color-tree-node-attribute-name);border-radius:2px;padding:0 .5em}.ck-inspector-tree .ck-inspector-tree-text .ck-inspector-tree-text__attributes .ck-inspector-tree-node__attribute+.ck-inspector-tree-node__attribute{margin-left:.2em}.ck-inspector-tree .ck-inspector-tree-text .ck-inspector-tree-text__attributes .ck-inspector-tree-node__attribute>*{color:var(--ck-inspector-color-white)}.ck-inspector-tree .ck-inspector-tree-text .ck-inspector-tree-text__attributes .ck-inspector-tree-node__attribute:first-child{margin-left:0}.ck-inspector-tree .ck-inspector-tree-text.ck-inspector-tree-node_active .ck-inspector-tree-node__content{border-style:solid;border-color:var(--ck-inspector-color-tree-node-name-active-bg)}.ck-inspector-tree .ck-inspector-tree-text.ck-inspector-tree-node_active .ck-inspector-tree-node__attribute{background:var(--ck-inspector-color-white)}.ck-inspector-tree .ck-inspector-tree-text.ck-inspector-tree-node_active .ck-inspector-tree-node__attribute>*{color:var(--ck-inspector-color-tree-node-name-active-bg)}.ck-inspector-tree .ck-inspector-tree-text.ck-inspector-tree-node_active>.ck-inspector-tree-node__content{background:var(--ck-inspector-color-tree-node-name-active-bg);color:var(--ck-inspector-color-white)}.ck-inspector-tree .ck-inspector-tree-text:not(.ck-inspector-tree-node_active) .ck-inspector-tree-node__content:hover{background:var(--ck-inspector-color-tree-node-hover);border-style:solid;border-color:var(--ck-inspector-color-tree-node-border-hover)}.ck-inspector-tree.ck-inspector-tree_text-direction_ltr .ck-inspector-tree-node__content{direction:ltr}.ck-inspector-tree.ck-inspector-tree_text-direction_rtl .ck-inspector-tree-node__content{direction:rtl}.ck-inspector-tree .ck-inspector-tree-comment{color:var(--ck-inspector-color-comment);font-style:italic}.ck-inspector-tree .ck-inspector-tree-comment a{color:inherit;text-decoration:underline}.ck-inspector-tree_compact-text .ck-inspector-tree-text,.ck-inspector-tree_compact-text .ck-inspector-tree-text .ck-inspector-tree-node__content{display:inline}.ck-inspector .ck-inspector__tree__navigation{padding:.5em 1em;border-bottom:1px solid var(--ck-inspector-color-border)}.ck-inspector .ck-inspector__tree__navigation label{margin-right:.5em}.ck-inspector-tree .ck-inspector-tree__selection{font-weight:700;color:var(--ck-inspector-color-white);background:var(--ck-inspector-color-tree-selection);padding:0 .2em}',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){var r=n(18);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,":root{--ck-inspector-navbox-empty-background:#fafafa}.ck-inspector .ck-inspector-navbox{display:flex;flex-direction:column;height:100%;align-items:stretch}.ck-inspector .ck-inspector-navbox .ck-inspector-navbox__navigation{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;min-height:30px;max-height:30px;border-bottom:1px solid var(--ck-inspector-color-border);width:100%;user-select:none;align-items:center}.ck-inspector .ck-inspector-navbox .ck-inspector-navbox__content{display:flex;flex-direction:row;height:100%;overflow:hidden}",""])},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,":root{--ck-inspector-explorer-width:300px}.ck-inspector .ck-inspector-pane{display:flex;width:100%}.ck-inspector .ck-inspector-pane.ck-inspector-pane_empty{align-items:center;justify-content:center;padding:1em;background:var(--ck-inspector-navbox-empty-background)}.ck-inspector .ck-inspector-pane.ck-inspector-pane_empty p{align-self:center;width:100%;text-align:center}.ck-inspector .ck-inspector-pane>.ck-inspector-navbox:last-child{min-width:var(--ck-inspector-explorer-width);width:var(--ck-inspector-explorer-width)}.ck-inspector .ck-inspector-pane.ck-inspector-pane_vsplit>.ck-inspector-navbox:first-child{border-right:1px solid var(--ck-inspector-color-border);flex:1 1 auto;overflow:hidden}.ck-inspector .ck-inspector-pane.ck-inspector-pane_vsplit>.ck-inspector-navbox:first-child .ck-inspector-navbox__navigation{align-items:center}.ck-inspector .ck-inspector-pane.ck-inspector-pane_vsplit>.ck-inspector-navbox:first-child .ck-inspector-tree__config label{margin-left:1em;margin-right:1em}",""])},function(e,t,n){var r=n(21);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,":root{--ck-inspector-color-tab-background-hover:rgba(0,0,0,0.07);--ck-inspector-color-tab-active-border:#0dacef}.ck-inspector .ck-inspector-horizontal-nav{display:flex;flex-direction:row;user-select:none;align-self:stretch}.ck-inspector .ck-inspector-horizontal-nav .ck-inspector-horizontal-nav__item{-webkit-appearance:none;background:none;border:0;border-bottom:2px solid transparent;padding:.5em 1em;align-self:stretch}.ck-inspector .ck-inspector-horizontal-nav .ck-inspector-horizontal-nav__item:hover{background:var(--ck-inspector-color-tab-background-hover)}.ck-inspector .ck-inspector-horizontal-nav .ck-inspector-horizontal-nav__item.ck-inspector-horizontal-nav__item_active{border-bottom-color:var(--ck-inspector-color-tab-active-border)}",""])},function(e,t,n){var r=n(23);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".ck-inspector-side-pane{position:relative}",""])},function(e,t,n){var r=n(25);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".ck-inspector .ck-inspector-button{width:16px;height:16px;border:0;text-indent:100px;overflow:hidden;opacity:.8;margin-left:.7em;flex:0 0 auto}.ck-inspector .ck-inspector-button:first-of-type{margin-left:auto}.ck-inspector .ck-inspector-button:hover{opacity:1}.ck-inspector .ck-inspector-button.ck-inspector-button_log{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNSA0LjE2NWw1LjcgNC4xMi01LjcgMy4xNTNtNy45NDkuMDYyaDUuNjU1IiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlPSIjNkU2RTZFIiBzdHJva2Utd2lkdGg9IjEuNSIvPjwvc3ZnPg==)}.ck-inspector .ck-inspector-button.ck-inspector-button_exec{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0iIzZFNkU2RSIgc3Ryb2tlLXdpZHRoPSIxLjUiIGN4PSI4IiBjeT0iOCIgcj0iNy4yNSIvPjxwYXRoIGZpbGw9IiM2RTZFNkUiIGQ9Ik02LjA5NCA1LjIzNUwxMS4wNzQgOGwtNC45OCAzLjAxOHoiLz48L2c+PC9zdmc+)}",""])},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,':root{--ck-inspector-color-property-list-property-name:#d0363f;--ck-inspector-color-property-list-property-value-true:green;--ck-inspector-color-property-list-property-value-false:red;--ck-inspector-color-property-list-property-value-unknown:#888;--ck-inspector-color-property-list-background:#f5f5f5;--ck-inspector-color-property-list-title-collapser:#727272}.ck-inspector .ck-inspector-property-list{display:grid;grid-template-columns:auto 1fr;background:var(--ck-inspector-color-white)}.ck-inspector .ck-inspector-property-list>:nth-of-type(odd){background:var(--ck-inspector-color-property-list-background)}.ck-inspector .ck-inspector-property-list>:nth-of-type(2n){background:var(--ck-inspector-color-white)}.ck-inspector .ck-inspector-property-list dt{padding:0 .7em 0 1.2em;min-width:15em}.ck-inspector .ck-inspector-property-list dt.ck-inspector-property-list__title_collapsible button{display:inline-block;overflow:hidden;vertical-align:middle;margin-left:-9px;margin-right:.3em;width:0;height:0;border-left:6px solid var(--ck-inspector-color-property-list-title-collapser);border-bottom:3.5px solid transparent;border-right:0 solid transparent;border-top:3.5px solid transparent;transition:transform .2s ease-in-out;transform:rotate(0deg)}.ck-inspector .ck-inspector-property-list dt.ck-inspector-property-list__title_expanded button{transform:rotate(90deg)}.ck-inspector .ck-inspector-property-list dt.ck-inspector-property-list__title_collapsed+dd+.ck-inspector-property-list{display:none}.ck-inspector .ck-inspector-property-list dt label{color:var(--ck-inspector-color-property-list-property-name)}.ck-inspector .ck-inspector-property-list dd{padding-right:.7em}.ck-inspector .ck-inspector-property-list dd input{width:100%}.ck-inspector .ck-inspector-property-list dd input[value=false]{color:var(--ck-inspector-color-property-list-property-value-false)}.ck-inspector .ck-inspector-property-list dd input[value=true]{color:var(--ck-inspector-color-property-list-property-value-true)}.ck-inspector .ck-inspector-property-list dd input[value="function() {…}"],.ck-inspector .ck-inspector-property-list dd input[value=undefined]{color:var(--ck-inspector-color-property-list-property-value-unknown)}.ck-inspector .ck-inspector-property-list dd input[value="function() {…}"]{font-style:italic}.ck-inspector .ck-inspector-property-list .ck-inspector-property-list{grid-column:1/-1;margin-left:1em;background:transparent}.ck-inspector .ck-inspector-property-list .ck-inspector-property-list>:nth-of-type(2n),.ck-inspector .ck-inspector-property-list .ck-inspector-property-list>:nth-of-type(odd){background:transparent}',""])},function(e,t,n){var r=n(29);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,".ck-inspector .ck-inspector__object-inspector{width:100%;background:var(--ck-inspector-color-white);overflow:auto}.ck-inspector .ck-inspector__object-inspector h2,.ck-inspector .ck-inspector__object-inspector h3{display:flex;flex-direction:row;flex-wrap:nowrap}.ck-inspector .ck-inspector__object-inspector h2{padding:1em;overflow:hidden;text-overflow:ellipsis}.ck-inspector .ck-inspector__object-inspector h2 span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;margin-right:1em}.ck-inspector .ck-inspector__object-inspector h2 a{color:var(--ck-inspector-color-tree-node-name)}.ck-inspector .ck-inspector__object-inspector h2 em:after,.ck-inspector .ck-inspector__object-inspector h2 em:before{content:'\"'}.ck-inspector .ck-inspector__object-inspector h3{font-size:12px;padding:.4em .7em}.ck-inspector .ck-inspector__object-inspector h3 a{color:inherit}.ck-inspector .ck-inspector__object-inspector h3 .ck-inspector-button{display:none}.ck-inspector .ck-inspector__object-inspector h3:hover .ck-inspector-button{display:block}.ck-inspector .ck-inspector__object-inspector hr{border-top:1px solid var(--ck-inspector-color-border)}",""])},function(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,":root{--ck-inspector-color-white:#fff;--ck-inspector-color-black:#000;--ck-inspector-color-background:#f3f3f3;--ck-inspector-color-link:#005cc6;--ck-inspector-code-font-size:11px;--ck-inspector-code-font-family:monaco,Consolas,Lucida Console,monospace;--ck-inspector-color-border:#d0d0d0}.ck-inspector,.ck-inspector *{box-sizing:border-box;width:auto;height:auto;position:static;margin:0;padding:0;border:0;background:transparent;text-decoration:none;transition:none;word-wrap:break-word;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:12px;line-height:17px;-webkit-font-smoothing:auto}.ck-inspector{overflow:hidden;border-collapse:collapse;color:var(--ck-inspector-color-black);text-align:left;white-space:normal;cursor:auto;float:none;background:var(--ck-inspector-color-background);border-top:1px solid var(--ck-inspector-color-border);z-index:9999}.ck-inspector.ck-inspector_collapsed>.ck-inspector-navbox>.ck-inspector-navbox__navigation .ck-inspector-horizontal-nav{display:none}.ck-inspector .ck-inspector-navbox__navigation__logo,.ck-inspector .ck-inspector-navbox__navigation__toggle{background-size:contain;background-repeat:no-repeat;background-position:50%;display:block;overflow:hidden;text-indent:100px;align-self:center;white-space:nowrap;margin-right:1em}.ck-inspector .ck-inspector-navbox__navigation__logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='68' height='64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M43.71 11.025a11.508 11.508 0 00-1.213 5.159c0 6.42 5.244 11.625 11.713 11.625.083 0 .167 0 .25-.002v16.282a5.464 5.464 0 01-2.756 4.739L30.986 60.7a5.548 5.548 0 01-5.512 0L4.756 48.828A5.464 5.464 0 012 44.089V20.344c0-1.955 1.05-3.76 2.756-4.738L25.474 3.733a5.548 5.548 0 015.512 0l12.724 7.292z' fill='%23FFF'/%3E%3Cpath d='M45.684 8.79a12.604 12.604 0 00-1.329 5.65c0 7.032 5.744 12.733 12.829 12.733.091 0 .183-.001.274-.003v17.834a5.987 5.987 0 01-3.019 5.19L31.747 63.196a6.076 6.076 0 01-6.037 0L3.02 50.193A5.984 5.984 0 010 45.003V18.997c0-2.14 1.15-4.119 3.019-5.19L25.71.804a6.076 6.076 0 016.037 0L45.684 8.79zm-29.44 11.89c-.834 0-1.51.671-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h25.489c.833 0 1.51-.67 1.51-1.498v-.715c0-.827-.677-1.498-1.51-1.498h-25.49zm0 9.227c-.834 0-1.51.671-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h18.479c.833 0 1.509-.67 1.509-1.498v-.715c0-.827-.676-1.498-1.51-1.498H16.244zm0 9.227c-.834 0-1.51.671-1.51 1.498v.715c0 .828.676 1.498 1.51 1.498h25.489c.833 0 1.51-.67 1.51-1.498v-.715c0-.827-.677-1.498-1.51-1.498h-25.49zm41.191-14.459c-5.835 0-10.565-4.695-10.565-10.486 0-5.792 4.73-10.487 10.565-10.487C63.27 3.703 68 8.398 68 14.19c0 5.791-4.73 10.486-10.565 10.486zm3.422-8.68c0-.467-.084-.875-.251-1.225a2.547 2.547 0 00-.686-.88 2.888 2.888 0 00-1.026-.531 4.418 4.418 0 00-1.259-.175c-.134 0-.283.006-.447.018a2.72 2.72 0 00-.446.07l.075-1.4h3.587v-1.8h-5.462l-.214 5.06c.319-.116.682-.21 1.089-.28.406-.071.77-.107 1.088-.107.218 0 .437.021.655.063.218.041.413.114.585.218s.313.244.422.419c.109.175.163.391.163.65 0 .424-.132.745-.396.961a1.434 1.434 0 01-.938.325c-.352 0-.656-.1-.912-.3-.256-.2-.43-.453-.523-.762l-1.925.588c.1.35.258.664.472.943.214.279.47.514.767.706.298.191.63.339.995.443.365.104.749.156 1.151.156.437 0 .86-.064 1.272-.193.41-.13.778-.323 1.1-.581a2.8 2.8 0 00.775-.981c.193-.396.29-.864.29-1.405z' fill='%231EBC61' fill-rule='nonzero'/%3E%3C/g%3E%3C/svg%3E\");width:1.8em;height:1.8em;margin-left:1em}.ck-inspector .ck-inspector-navbox__navigation__toggle{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIgNS41bDUuMjkzIDUuMjkzYTEgMSAwIDAwMS40MTQgMEwxNCA1LjUiIHN0cm9rZT0iIzc0NzQ3NCIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=);width:1.6em;height:1.6em;opacity:.7}.ck-inspector .ck-inspector-navbox__navigation__toggle:hover{opacity:1}.ck-inspector .ck-inspector-navbox__navigation__toggle.ck-inspector-navbox__navigation__toggle_up{transform:rotate(180deg)}.ck-inspector .ck-inspector-editor-selector{margin-left:auto;margin-right:1em}.ck-inspector .ck-inspector-code,.ck-inspector .ck-inspector-code *{font-size:var(--ck-inspector-code-font-size);font-family:var(--ck-inspector-code-font-family);cursor:default}.ck-inspector a{color:var(--ck-inspector-color-link);text-decoration:none}.ck-inspector a:hover{text-decoration:underline;cursor:pointer}.ck-inspector button{outline:0}",""])},function(e,t,n){var r=n(33);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(2)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"html body.ck-inspector-body-expanded{margin-bottom:var(--ck-inspector-height)}.ck-inspector-wrapper *{box-sizing:border-box}",""])},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(3),a=n.n(i),l=n(6),s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var u=n(13),p={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},d=function(e){function t(t){var n=e.call(this,t)||this;return n.isResizing=!1,n.state={original:{x:0,y:0},bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},n.onResizeStart=n.onResizeStart.bind(n),n.onResize=n.onResize.bind(n),n.onResizeStop=n.onResizeStop.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDrag=n.onDrag.bind(n),n.onDragStop=n.onDragStop.bind(n),n.getMaxSizesFromProps=n.getMaxSizesFromProps.bind(n),n}return function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){var e=this.getOffsetFromParent(),t=e.left,n=e.top,r=this.getDraggablePosition(),o=r.x,i=r.y;this.draggable.setState({x:o-t,y:i-n}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},t.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},t.prototype.onDragStart=function(e,t){if(this.props.onDragStart&&this.props.onDragStart(e,t),this.props.bounds){var n,r=this.getParent(),o=this.props.scale;if("parent"===this.props.bounds)n=r;else{if("body"===this.props.bounds){var i=r.getBoundingClientRect(),a=i.left,l=i.top,s=document.body.getBoundingClientRect(),c=-(a-r.offsetLeft*o-s.left)/o,u=-(l-r.offsetTop*o-s.top)/o,p=(document.body.offsetWidth-this.resizable.size.width*o)/o+c,d=(document.body.offsetHeight-this.resizable.size.height*o)/o+u;return this.setState({bounds:{top:u,right:p,bottom:d,left:c}})}if("window"===this.props.bounds){if(!this.resizable)return;var f=r.getBoundingClientRect(),h=f.left,m=f.top,g=-(h-r.offsetLeft*o)/o,v=-(m-r.offsetTop*o)/o;p=(window.innerWidth-this.resizable.size.width*o)/o+g,d=(window.innerHeight-this.resizable.size.height*o)/o+v;return this.setState({bounds:{top:v,right:p,bottom:d,left:g}})}n=document.querySelector(this.props.bounds)}if(n instanceof HTMLElement&&r instanceof HTMLElement){var b=n.getBoundingClientRect(),y=b.left,k=b.top,w=r.getBoundingClientRect(),x=(y-w.left)/o,E=k-w.top;if(this.resizable){var _=this.getOffsetFromParent();this.setState({bounds:{top:E-_.top,right:x+(n.offsetWidth-this.resizable.size.width)-_.left/o,bottom:E+(n.offsetHeight-this.resizable.size.height)-_.top,left:x-_.left/o}})}}}},t.prototype.onDrag=function(e,t){if(this.props.onDrag){var n=this.getOffsetFromParent();this.props.onDrag(e,c({},t,{x:t.x-n.left,y:t.y-n.top}))}},t.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var n=this.getOffsetFromParent(),r=n.left,o=n.top;return this.props.onDragStop(e,c({},t,{x:t.x+r,y:t.y+o}))}},t.prototype.onResizeStart=function(e,t,n){e.stopPropagation(),this.isResizing=!0;var r=this.props.scale;if(this.setState({original:this.getDraggablePosition()}),this.props.bounds){var o=this.getParent(),i=void 0;i="parent"===this.props.bounds?o:"body"===this.props.bounds?document.body:"window"===this.props.bounds?window:document.querySelector(this.props.bounds);var a=this.getSelfElement();if(a instanceof Element&&(i instanceof HTMLElement||i===window)&&o instanceof HTMLElement){var l=this.getMaxSizesFromProps(),s=l.maxWidth,c=l.maxHeight,u=this.getParentSize();if(s&&"string"==typeof s)if(s.endsWith("%")){var p=Number(s.replace("%",""))/100;s=u.width*p}else s.endsWith("px")&&(s=Number(s.replace("px","")));if(c&&"string"==typeof c)if(c.endsWith("%")){p=Number(c.replace("%",""))/100;c=u.width*p}else c.endsWith("px")&&(c=Number(c.replace("px","")));var d=a.getBoundingClientRect(),f=d.left,h=d.top,m="window"===this.props.bounds?{left:0,top:0}:i.getBoundingClientRect(),g=m.left,v=m.top,b=this.getOffsetWidth(i),y=this.getOffsetHeight(i),k=t.toLowerCase().endsWith("left"),w=t.toLowerCase().endsWith("right"),x=t.startsWith("top"),E=t.startsWith("bottom");if(k&&this.resizable){var _=(f-g)/r+this.resizable.size.width;this.setState({maxWidth:_>Number(s)?s:_})}if(w||this.props.lockAspectRatio&&!k){_=b+(g-f)/r;this.setState({maxWidth:_>Number(s)?s:_})}if(x&&this.resizable){_=(h-v)/r+this.resizable.size.height;this.setState({maxHeight:_>Number(c)?c:_})}if(E||this.props.lockAspectRatio&&!x){_=y+(v-h)/r;this.setState({maxHeight:_>Number(c)?c:_})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){var o,i,a=this.getOffsetFromParent();/left/i.test(t)&&(o=this.state.original.x-r.width,this.props.position||this.draggable.setState({x:o}),o+=a.left),/top/i.test(t)&&(i=this.state.original.y-r.height,this.props.position||this.draggable.setState({y:i}),i+=a.top),this.props.onResize&&(void 0===o&&(o=this.getDraggablePosition().x+a.left),void 0===i&&(i=this.getDraggablePosition().y+a.top),this.props.onResize(e,t,n,r,{x:o,y:i}))},t.prototype.onResizeStop=function(e,t,n,r){this.isResizing=!1;var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;if(this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop){var l=this.getDraggablePosition();this.props.onResizeStop(e,t,n,r,l)}},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.getOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),l=this.getDraggablePosition();return{left:a.left-o-l.x*e,top:a.top-i-l.y*e}},t.prototype.render=function(){var e=this,t=this.props,n=t.disableDragging,o=t.style,i=t.dragHandleClassName,a=t.position,s=t.onMouseDown,d=t.dragAxis,f=t.dragGrid,h=t.bounds,m=t.enableUserSelectHack,g=t.cancel,v=t.children,b=(t.onResizeStart,t.onResize,t.onResizeStop,t.onDragStart,t.onDrag,t.onDragStop,t.resizeHandleStyles),y=t.resizeHandleClasses,k=t.enableResizing,w=t.resizeGrid,x=t.resizeHandleWrapperClass,E=t.resizeHandleWrapperStyle,_=t.scale,S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}(t,["disableDragging","style","dragHandleClassName","position","onMouseDown","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale"]),C=this.props.default?c({},this.props.default):void 0;delete S.default;var T,N=c({},p,n||i?{cursor:"auto"}:{cursor:"move"},o),z=this.getOffsetFromParent(),P=z.left,R=z.top;return a&&(T={x:a.x-P,y:a.y-R}),Object(r.createElement)(u,{ref:function(t){t&&(e.draggable=t)},handle:i?"."+i:void 0,defaultPosition:C,onMouseDown:s,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:d,disabled:n,grid:f,bounds:h?this.state.bounds:void 0,position:T,enableUserSelectHack:m,cancel:g,scale:_},Object(r.createElement)(l.Resizable,c({},S,{ref:function(t){t&&(e.resizable=t)},defaultSize:C,size:this.props.size,enable:k,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:N,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.isResizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.isResizing?this.state.maxHeight:this.props.maxHeight,grid:w,handleWrapperClass:x,handleWrapperStyle:E,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:b,handleClasses:y,scale:this.props.scale}),v))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(r.Component);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
class f{static set(e,t){window.localStorage.setItem("ck5-inspector-"+e,t)}static get(e){return window.localStorage.getItem("ck5-inspector-"+e)}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/function h(e,t=!0){if(void 0===e)return"undefined";if("function"==typeof e)return"function() {…}";const n=JSON.stringify(e);return t?n:n.replace(/(^"|"$)/g,"")}function m(e){return e.map(([e,t])=>("symbol"==typeof e&&(e=e.toString()),[e,h(t)]))}function g(e,t){return e.length>t?e.substr(0,t)+`… [${e.length-t} characters left]`:e}n(14);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const b=500;class y extends r.Component{render(){let e;return e=this.props.items?this.props.items.map((e,t)=>T(e,t,{onClick:this.props.onClick,showCompactText:this.props.showCompactText,activeNode:this.props.activeNode})):"Nothing to show.",o.a.createElement("div",{className:["ck-inspector-tree",this.props.textDirection?"ck-inspector-tree_text-direction_"+this.props.textDirection:"",this.props.showCompactText?"ck-inspector-tree_compact-text":""].join(" ")},e)}}class k extends r.Component{constructor(e){super(e),this.handleClick=this.handleClick.bind(this)}handleClick(e){this.props.onClick(e,this.props.item.node)}getChildren(){return this.props.item.children.map((e,t)=>T(e,t,this.treeProps))}get isActive(){return this.props.item.node===this.props.activeNode}get treeProps(){return{onClick:this.props.onClick,showCompactText:this.props.showCompactText,activeNode:this.props.activeNode}}}class w extends k{render(){const e=this.props.item,t=e.presentation,n=t&&t.isEmpty,r=t&&t.cssClass,i=["ck-inspector-code","ck-inspector-tree-node",this.isActive?"ck-inspector-tree-node_active":"",n?"ck-inspector-tree-node_empty":"",r];return o.a.createElement("div",{className:i.join(" "),onClick:this.handleClick},o.a.createElement("span",{className:"ck-inspector-tree-node__name"},e.name,this.getAttributes()),o.a.createElement("div",{className:"ck-inspector-tree-node__content"},this.getChildren()),n?"":o.a.createElement("span",{className:"ck-inspector-tree-node__name"},"/",e.name))}getAttributes(){const e=[],t=this.props.item;for(const[n,r]of t.attributes)e.push(o.a.createElement(E,{key:n,name:n,value:r}));return e}}class x extends k{render(){const e=["ck-inspector-tree-text",this.isActive?"ck-inspector-tree-node_active":""].join(" ");return o.a.createElement("span",{className:e,onClick:this.handleClick},o.a.createElement("span",{className:"ck-inspector-tree-node__content"},this.props.showCompactText?"":this.getAttributes(),this.props.showCompactText?"":'"',this.getChildren(),this.props.showCompactText?"":'"'))}getAttributes(){const e=[],t=this.props.item,n=t.presentation,r=n&&n.dontRenderAttributeValue;for(const[n,i]of t.attributes)e.push(o.a.createElement(E,{key:n,name:n,value:i,dontRenderValue:r}));return o.a.createElement("span",{className:"ck-inspector-tree-text__attributes"},e)}}class E extends r.Component{render(){let e;const t=g(this.props.value,b);return this.props.dontRenderValue||(e=o.a.createElement("span",{className:"ck-inspector-tree-node__attribute__value"},t)),o.a.createElement("span",{className:"ck-inspector-tree-node__attribute"},o.a.createElement("span",{className:"ck-inspector-tree-node__attribute__name",title:t},this.props.name),e)}}class _ extends r.Component{render(){return o.a.createElement("span",{className:"ck-inspector-tree__selection"},this.props.isEnd?"]":"[")}}class S extends r.Component{render(){return o.a.createElement("span",null,this.props.text)}}class C extends r.Component{render(){return o.a.createElement("span",{className:"ck-inspector-tree-comment",dangerouslySetInnerHTML:{__html:this.props.item.text}})}}function T(e,t,n){return"string"==typeof e?o.a.createElement(S,{key:t,text:e}):"element"===e.type?o.a.createElement(w,v({key:t,item:e},n)):"text"===e.type?o.a.createElement(x,v({key:t,item:e},n)):"comment"===e.type?o.a.createElement(C,{key:t,item:e}):o.a.createElement(_,{key:t,isEnd:e.isEnd})}n(17);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class N extends r.Component{render(){const e=Array.isArray(this.props.children)?this.props.children:[this.props.children];return o.a.createElement("div",{className:"ck-inspector-navbox"},e.length>1?o.a.createElement("div",{className:"ck-inspector-navbox__navigation"},e[0]):"",o.a.createElement("div",{className:"ck-inspector-navbox__content"},e[e.length-1]))}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class z extends r.Component{render(){return[o.a.createElement("label",{htmlFor:this.props.id,key:"label"},this.props.label,":"),o.a.createElement("select",{id:this.props.id,value:this.props.value,onChange:this.props.onChange,key:"select"},this.props.options.map(e=>o.a.createElement("option",{value:e,key:e},e)))]}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class P extends r.Component{render(){return[o.a.createElement("label",{htmlFor:this.props.id,key:"label"},this.props.label,":"),o.a.createElement("input",{type:"checkbox",id:this.props.id,key:"input",checked:this.props.isChecked,onChange:this.props.onChange})]}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/function R(e){return class extends e{constructor(...e){super(...e),this._onEditorEventCallback=()=>{this.forceUpdate()}}componentDidMount(){this.startListeningToEditor()}componentDidUpdate(e){e&&e.editor&&e.editor!==this.props.editor&&this.stopListeningToEditor(e),this.props.editor&&(e&&e.editor&&e.editor===this.props.editor||this.startListeningToEditor())}componentWillUnmount(){this.stopListeningToEditor(this.props)}startListeningToEditor(){const{target:e,event:t}=this.editorEventObserverConfig(this.props);e.on(t,this._onEditorEventCallback),this.forceUpdate()}stopListeningToEditor(e){const{target:t,event:n}=this.editorEventObserverConfig(e);t.off(n,this._onEditorEventCallback)}}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/function O(e){return e&&e.is("element")}function M(e){return e&&e.is("rootElement")}function D(e){return e.getPath?e.getPath():e.path}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const I="model-compact-text";class L extends r.Component{constructor(e){super(e),this.state={showCompactText:"true"===f.get(I)},this.handleCompactTextChange=this.handleCompactTextChange.bind(this)}editorEventObserverConfig(e){return{target:e.editor.model.document,event:"change"}}handleCompactTextChange(e){this.setState({showCompactText:e.target.checked},()=>{f.set(I,this.state.showCompactText)})}render(){const e=this.getEditorModelTree();return o.a.createElement(N,null,[o.a.createElement("div",{className:"ck-inspector-tree__config",key:"root-cfg"},o.a.createElement(z,{id:"view-root-select",label:"Root",value:this.props.currentRootName,options:this.props.editorRoots.map(e=>e.rootName),onChange:e=>this.props.onRootChange(e.target.value)})),o.a.createElement("div",{className:"ck-inspector-tree__config",key:"text-cfg"},o.a.createElement(P,{label:"Compact text",id:"model-compact-text",isChecked:this.state.showCompactText,onChange:this.handleCompactTextChange}))],o.a.createElement(y,{items:e,textDirection:this.props.editor.locale.contentLanguageDirection,onClick:this.props.onClick,showCompactText:this.state.showCompactText,activeNode:this.props.currentEditorNode}))}getEditorModelTree(){if(!this.props.currentRootName)return null;const e=this.props.editor,t=e.model.document.getRoot(this.props.currentRootName),n=e.model.document.selection.getFirstRange();return[A(t,n.start,n.end)]}}function A(e,t,n){return O(e)?function(e,t,n){const r={};if(Object.assign(r,{type:"element",name:e.name,children:[],node:e}),e.childCount){let o=!1,i=!1;for(const a of e.getChildren()){const e=A(a,t,n);o||t.textNode||t.nodeAfter!==a||(r.children.push({type:"selection",isEnd:!1}),o=!0),i||n.textNode||n.nodeAfter!==a||(r.children.push({type:"selection",isEnd:!0}),i=!0),r.children.push(e),o||t.textNode||t.nodeBefore!==a||(r.children.push({type:"selection",isEnd:!1}),o=!0),i||n.textNode||n.nodeBefore!==a||(r.children.push({type:"selection",isEnd:!0}),i=!0)}}else t.textNode||t.parent!==e||t.nodeBefore||t.nodeAfter||r.children.push({type:"selection",isEnd:!1}),n.textNode||n.parent!==e||n.nodeBefore||n.nodeAfter||r.children.push({type:"selection",isEnd:!0});return r.attributes=j(e),r}(e,t,n):function(e,t,n){const r={};let o;Object.assign(r,{type:"text",children:[e.data],node:e,presentation:{dontRenderAttributeValue:!0}}),t.textNode===e&&(o=t.offset-e.startOffset,r.children=[e.data.slice(0,o),{type:"selection"},e.data.slice(o,e.data.length)]);if(n.textNode===e){let i=n.offset-e.startOffset;t.textNode===n.textNode&&(i-=o);const a=r.children.pop();r.children.push(a.slice(0,i),{type:"selection",isEnd:!0},a.slice(i,a.length))}return r.children=r.children.filter(e=>e),r.attributes=j(e),r}(e,t,n)}function j(e){const t=[...e.getAttributes()].map(([e,t])=>[e,h(t,!1)]);return new Map(t)}var U=R(L);n(4);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
class F extends r.Component{render(){return o.a.createElement("div",{className:["ck-inspector-pane",this.props.splitVertically?"ck-inspector-pane_vsplit":"",this.props.isEmpty?"ck-inspector-pane_empty":""].join(" ")},this.props.children)}}n(20);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class W extends r.Component{constructor(e){super(e),this.handleTabClick=this.handleTabClick.bind(this)}handleTabClick(e){this.setState({activeTab:e},()=>{this.props.onClick(e)})}render(){return o.a.createElement("div",{className:"ck-inspector-horizontal-nav"},this.props.definitions.map(e=>o.a.createElement(H,{key:e,label:e,isActive:this.props.activeTab===e,onClick:()=>this.handleTabClick(e)})))}}class H extends r.Component{render(){return o.a.createElement("button",{className:["ck-inspector-horizontal-nav__item",this.props.isActive?" ck-inspector-horizontal-nav__item_active":""].join(" "),key:this.props.label,onClick:this.props.onClick,type:"button"},this.props.label)}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class B extends r.Component{constructor(e){super(e),this.handleTabClick=this.handleTabClick.bind(this)}handleTabClick(e){this.props.onTabChange(e)}render(){const e=Array.isArray(this.props.children)?this.props.children:[this.props.children];return o.a.createElement(N,null,[this.props.contentBefore,o.a.createElement(W,{key:"navigation",definitions:e.map(e=>e.props.label),activeTab:this.props.activeTab,onClick:this.handleTabClick}),this.props.contentAfter],e.filter(e=>e.props.label===this.props.activeTab))}}n(22);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const V="side-pane-width",$=200,Y="500px",Q={position:"relative"};class X extends r.Component{constructor(e){super(e),this.state={width:f.get(V)||Y},this.handleSidePaneResize=this.handleSidePaneResize.bind(this)}get maxSidePaneWidth(){return Math.min(window.innerWidth-400,.8*window.innerWidth)}handleSidePaneResize(e,t,n){this.setState({width:n.style.width},()=>{f.set(V,n.style.width)})}render(){return o.a.createElement("div",{className:"ck-inspector-side-pane"},o.a.createElement(d,{enableResizing:{left:!0},disableDragging:!0,minWidth:$,maxWidth:this.maxSidePaneWidth,style:Q,position:{x:"100%",y:"100%"},size:{width:this.state.width,height:"100%"},onResizeStop:this.handleSidePaneResize},this.props.children))}}n(24);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class G extends r.Component{render(){return o.a.createElement("button",{className:`ck-inspector-button ck-inspector-button_${this.props.type}`,type:"button",onClick:this.props.onClick,title:this.props.text},this.props.text)}}n(26);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const K=2e3;class q extends r.Component{render(){const e=Math.random().toString(36).substring(7);return o.a.createElement("dl",{className:"ck-inspector-property-list ck-inspector-code"},this.props.items.map(([t,n,r])=>{const i=r&&r.length;n=g(String(n),K);const a=[o.a.createElement(Z,{key:`${this.props.name}-name`,name:t,listUid:e,canCollapse:i}),o.a.createElement("dd",{key:`${t}-value`},o.a.createElement("input",{id:`${e}-${t}-input`,type:"text",value:n,readOnly:!0}))];return i&&a.push(o.a.createElement(q,{key:`${t}-subProperties`,items:r})),a}))}}class Z extends r.Component{constructor(e){super(e),this.state={isCollapsed:!0},this.handleCollapsedChange=this.handleCollapsedChange.bind(this)}handleCollapsedChange(){this.setState({isCollapsed:!this.state.isCollapsed})}render(){const e=["ck-inspector-property-list__title"];return this.props.canCollapse&&(e.push("ck-inspector-property-list__title_collapsible"),e.push("ck-inspector-property-list__title_"+(this.state.isCollapsed?"collapsed":"expanded"))),o.a.createElement("dt",{className:e.join(" ").trim()},!!this.props.canCollapse&&o.a.createElement("button",{type:"button",onClick:this.handleCollapsedChange},"Toggle"),o.a.createElement("label",{htmlFor:`${this.props.listUid}-${this.props.name}-input`},this.props.name),":")}}n(28);function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class ee extends r.Component{render(){const e=[];for(const t of this.props.lists)t.items.length&&e.push(o.a.createElement("hr",{key:`${t.name}-separator`}),o.a.createElement("h3",{key:`${t.name}-header`},o.a.createElement("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},t.name),t.buttons&&t.buttons.map((e,t)=>o.a.createElement(G,J({key:"button"+t},e)))),o.a.createElement(q,{key:`${t.name}-list`,items:t.items}));return o.a.createElement("div",{className:"ck-inspector__object-inspector"},o.a.createElement("h2",{className:"ck-inspector-code"},this.props.header),e)}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class te{static group(...e){console.group(...e)}static groupEnd(...e){console.groupEnd(...e)}static log(...e){console.log(...e)}static warn(...e){console.warn(...e)}}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class ne extends r.Component{editorEventObserverConfig(e){return{target:e.editor.model.document,event:"change"}}render(){const e=this.getInspectedEditorNodeInfo();return e?o.a.createElement(ee,{header:[o.a.createElement("span",{key:"link"},o.a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},o.a.createElement("b",null,e.type),":"),"Text"===e.type?o.a.createElement("em",null,e.name):e.name),o.a.createElement(G,{key:"log",type:"log",text:"Log in console",onClick:()=>te.log(e.editorNode)})],lists:[{name:"Attributes",url:e.url,items:e.attributes},{name:"Properties",url:e.url,items:e.properties}]}):o.a.createElement(F,{isEmpty:"true"},o.a.createElement("p",null,"Select a node in the tree to inspect"))}getInspectedEditorNodeInfo(){const e=this.props.inspectedNode,t=this.props.currentRootName;if(!e)return null;if(!M(e)&&!e.parent)return;if(e.root.rootName!==t)return;const n={editorNode:e,properties:[],attributes:[]};O(e)?(M(e)?(n.type="RootElement",n.name=e.rootName,n.url="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_rootelement-RootElement.html"):(n.type="Element",n.name=e.name,n.url="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_element-Element.html"),n.properties.push(["childCount",e.childCount],["startOffset",e.startOffset],["endOffset",e.endOffset],["maxOffset",e.maxOffset])):(n.name=e.data,n.type="Text",n.url="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_text-Text.html",n.properties.push(["startOffset",e.startOffset],["endOffset",e.endOffset],["offsetSize",e.offsetSize])),n.properties.push(["path",D(e)]),n.attributes.push(...e.getAttributes()),n.properties=m(n.properties),n.attributes=m(n.attributes);for(const e of n.attributes){const t=e[0],n=Object.entries(this.props.editor.model.schema.getAttributeProperties(t));e.push(m(n))}return n}}var re=R(ne);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const oe="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_model_selection-Selection.html";class ie extends r.Component{editorEventObserverConfig(e){return{target:e.editor.model.document,event:"change"}}render(){const e=this.getEditorSelectionInfo();return o.a.createElement(ee,{header:[o.a.createElement("span",{key:"link"},o.a.createElement("a",{href:oe,target:"_blank",rel:"noopener noreferrer"},o.a.createElement("b",null,"Selection"))),o.a.createElement(G,{key:"log",type:"log",text:"Log in console",onClick:()=>te.log(this.props.editor.model.document.selection)})],lists:[{name:"Attributes",url:`${oe}#function-getAttributes`,items:e.attributes},{name:"Properties",url:`${oe}`,items:e.properties},{name:"Anchor",url:`${oe}#member-anchor`,buttons:[{type:"log",text:"Log in console",onClick:()=>te.log(this.props.editor.model.document.selection.anchor)}],items:e.anchor},{name:"Focus",url:`${oe}#member-focus`,buttons:[{type:"log",text:"Log in console",onClick:()=>te.log(this.props.editor.model.document.selection.focus)}],items:e.focus}]})}getEditorSelectionInfo(){const e=this.props.editor.model.document.selection,t=e.anchor,n=e.focus,r={properties:[["isCollapsed",e.isCollapsed],["isBackward",e.isBackward],["isGravityOverridden",e.isGravityOverridden],["rangeCount",e.rangeCount]],attributes:[...e.getAttributes()],anchor:ae(t),focus:ae(n)};for(const e in r)r[e]=m(r[e]);return r}}function ae(e){return[["path",D(e)],["stickiness",e.stickiness],["index",e.index],["isAtEnd",e.isAtEnd],["isAtStart",e.isAtStart],["offset",e.offset],["textNode",e.textNode&&e.textNode.data]]}var le=R(ie);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const se="active-model-tab-name";class ce extends r.Component{constructor(e){super(e),this.state={editor:null,editorRoots:null,currentRootName:null,currentEditorNode:null,activeTab:f.get(se)||"Inspect"},this.handleRootChange=this.handleRootChange.bind(this),this.handlePaneChange=this.handlePaneChange.bind(this),this.handleTreeClick=this.handleTreeClick.bind(this)}handleTreeClick(e,t){e.persist(),e.stopPropagation(),this.setState({currentEditorNode:t},()=>{2==e.detail&&this.setState({activeTab:"Inspect"},()=>{f.set(se,"Inspect")})})}handleRootChange(e){this.setState({currentRootName:e})}handlePaneChange(e){this.setState({activeTab:e},()=>{f.set(se,e)})}render(){return this.props.editor?o.a.createElement(F,{splitVertically:"true"},o.a.createElement(U,{editor:this.props.editor,editorRoots:this.state.editorRoots,currentEditorNode:this.state.currentEditorNode,currentRootName:this.state.currentRootName,onClick:this.handleTreeClick,onRootChange:this.handleRootChange}),o.a.createElement(X,null,o.a.createElement(B,{onTabChange:this.handlePaneChange,activeTab:this.state.activeTab},o.a.createElement(re,{label:"Inspect",editor:this.state.editor,currentRootName:this.state.currentRootName,inspectedNode:this.state.currentEditorNode}),o.a.createElement(le,{label:"Selection",editor:this.state.editor})))):o.a.createElement(F,{isEmpty:"true"},o.a.createElement("p",null,"Nothing to show. Attach another editor instance to start inspecting."))}static getDerivedStateFromProps(e,t){if(e.editor!==t.editor){const t=function(e){if(!e)return null;const t=[...e.model.document.roots];return t.filter(({rootName:e})=>"$graveyard"!==e).concat(t.filter(({rootName:e})=>"$graveyard"===e))}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/(e.editor);return{editor:e.editor,editorRoots:t,currentRootName:t?t[0].rootName:null,currentEditorNode:null}}return null}}function ue(e){return e&&e.name}function pe(e){return e&&ue(e)&&e.is("attributeElement")}function de(e){return e&&ue(e)&&e.is("emptyElement")}function fe(e){return e&&ue(e)&&e.is("uiElement")}function he(e){return e&&e.is("rootElement")}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
const me="view-element-types";class ge extends r.Component{constructor(e){super(e),this.state={showTypes:"true"===f.get(me)},this.handleShowTypesChange=this.handleShowTypesChange.bind(this)}editorEventObserverConfig(e){return{target:e.editor.editing.view,event:"render"}}handleShowTypesChange(e){this.setState({showTypes:e.target.checked},()=>{f.set(me,this.state.showTypes)})}render(){const e=this.getEditorViewTree();return o.a.createElement(N,null,[o.a.createElement("div",{className:"ck-inspector-tree__config",key:"root-cfg"},o.a.createElement(z,{id:"view-root-select",label:"Root",value:this.props.currentRootName,options:this.props.editorRoots.map(e=>e.rootName),onChange:e=>this.props.onRootChange(e.target.value)})),o.a.createElement("div",{className:"ck-inspector-tree__config",key:"types-cfg"},o.a.createElement(P,{label:"Show element types",id:"view-show-types",isChecked:this.state.showTypes,onChange:this.handleShowTypesChange}))],o.a.createElement(y,{items:e,textDirection:this.props.editor.locale.contentLanguageDirection,onClick:this.props.onClick,showCompactText:"true",activeNode:this.props.currentEditorNode}))}getEditorViewTree(){if(!this.props.currentRootName)return;const e=this.props.editor.editing.view.document,t=e.getRoot(this.props.currentRootName),n=e.selection.getFirstRange();return[ve(t,n.start,n.end,this.state.showTypes)]}}function ve(e,t,n,r){return ue(e)?function(e,t,n,r){const o={};Object.assign(o,{type:"element",children:[],node:e}),r?pe(e)?o.name="attribute:"+e.name:he(e)?o.name="root:"+e.name:de(e)?o.name="empty:"+e.name:fe(e)?o.name="ui:"+e.name:o.name="container:"+e.name:o.name=e.name;de(e)&&(o.presentation={isEmpty:!0});fe(e)&&o.children.push({type:"comment",text:["&lt;!--","The View UI element content has been skipped. ",'<a href="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_uielement-UIElement.html" target="_blank">',"Find out why","</a>."," --&gt;"].join("")});if(e.childCount){let i=!1,a=!1;for(const l of e.getChildren()){const e=ve(l,t,n,r);i||t.nodeAfter!==l||(o.children.push({type:"selection",isEnd:!1}),i=!0),a||n.nodeAfter!==l||(o.children.push({type:"selection",isEnd:!0}),a=!0),o.children.push(e),i||t.nodeBefore!==l||(o.children.push({type:"selection",isEnd:!1}),i=!0),a||n.nodeBefore!==l||(o.children.push({type:"selection",isEnd:!0}),a=!0)}}else t.parent!==e||t.nodeBefore||t.nodeAfter||o.children.push({type:"selection",isEnd:!1}),n.parent!==e||n.nodeBefore||n.nodeAfter||o.children.push({type:"selection",isEnd:!0});return o.attributes=function(e){const t=[...e.getAttributes()].map(([e,t])=>[e,h(t,!1)]);return new Map(t)}(e),o}(e,t,n,r):function(e,t,n){const r={};let o;Object.assign(r,{type:"text",children:[e.data],node:e}),t.parent===e&&(o=t.offset,r.children=[e.data.slice(0,o),{type:"selection"},e.data.slice(o,e.data.length)]);if(n.parent===e){let e=n.offset;t.parent===n.parent&&(e-=o);const i=r.children.pop();r.children.push(i.slice(0,e),{type:"selection",isEnd:!0},i.slice(e,i.length))}return r.children=r.children.filter(e=>e),r}(e,t,n)}var be=R(ge);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const ye="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view";class ke extends r.Component{editorEventObserverConfig(e){return{target:e.editor.editing.view,event:"render"}}render(){const e=this.getInspectedEditorNodeInfo();return e?o.a.createElement(ee,{header:[o.a.createElement("span",{key:"link"},o.a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},o.a.createElement("b",null,e.type),":"),"Text"===e.type?o.a.createElement("em",null,e.name):e.name),o.a.createElement(G,{key:"log",type:"log",text:"Log in console",onClick:()=>te.log(e.editorNode)})],lists:[{name:"Attributes",url:e.url,items:e.attributes},{name:"Properties",url:e.url,items:e.properties},{name:"Custom Properties",url:`${ye}_element-Element.html#function-getCustomProperty`,items:e.customProperties}]}):o.a.createElement(F,{isEmpty:"true"},o.a.createElement("p",null,"Select a node in the tree to inspect"))}getInspectedEditorNodeInfo(){const e=this.props.inspectedNode,t=this.props.currentRootName;if(!e)return null;if(!he(e)&&!e.parent)return;if(e.root.rootName!==t)return;const n={editorNode:e,properties:[],attributes:[],customProperties:[]};return ue(e)?(he(e)?(n.type="RootEditableElement",n.name=e.rootName,n.url=`${ye}_rooteditableelement-RootEditableElement.html`):(n.name=e.name,pe(e)?(n.type="AttributeElement",n.url=`${ye}_attributeelement-AttributeElement.html`):de(e)?(n.type="EmptyElement",n.url=`${ye}_emptyelement-EmptyElement.html`):fe(e)?(n.type="UIElement",n.url=`${ye}_uielement-UIElement.html`):!function(e){return e&&ue(e)&&e.is("editableElement")}(e)?(n.type="ContainerElement",n.url=`${ye}_containerelement-ContainerElement.html`):(n.type="EditableElement",n.url=`${ye}_editableelement-EditableElement.html`)),n.attributes.push(...e.getAttributes()),n.properties.push(["index",e.index],["isEmpty",e.isEmpty],["childCount",e.childCount]),n.customProperties.push(...e.getCustomProperties())):(n.name=e.data,n.type="Text",n.url=`${ye}_text-Text.html`,n.properties.push(["index",e.index])),n.properties=m(n.properties),n.customProperties=m(n.customProperties),n.attributes=m(n.attributes),n}}var we=R(ke);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const xe="https://ckeditor.com/docs/ckeditor5/latest/api/module_engine_view_selection-Selection.html";class Ee extends r.Component{editorEventObserverConfig(e){return{target:e.editor.editing.view,event:"render"}}render(){const e=this.getEditorSelectionInfo();return o.a.createElement(ee,{header:[o.a.createElement("span",{key:"link"},o.a.createElement("a",{href:xe,target:"_blank",rel:"noopener noreferrer"},o.a.createElement("b",null,"Selection"))),o.a.createElement(G,{key:"log",type:"log",text:"Log in console",onClick:()=>te.log(this.props.editor.editing.view.document.selection)})],lists:[{name:"Properties",url:`${xe}`,items:e.properties},{name:"Anchor",url:`${xe}#member-anchor`,buttons:[{type:"log",text:"Log in console",onClick:()=>te.log(this.props.editor.editing.view.document.selection.anchor)}],items:e.anchor},{name:"Focus",url:`${xe}#member-focus`,buttons:[{type:"log",text:"Log in console",onClick:()=>te.log(this.props.editor.editing.view.document.selection.focus)}],items:e.focus}]})}getEditorSelectionInfo(){const e=this.props.editor.editing.view.document.selection,t={properties:[["isCollapsed",e.isCollapsed],["isBackward",e.isBackward],["isFake",e.isFake],["rangeCount",e.rangeCount]],anchor:_e(e.anchor),focus:_e(e.focus)};for(const e in t)t[e]=m(t[e]);return t}}function _e(e){return[["offset",e.offset],["isAtEnd",e.isAtEnd],["isAtStart",e.isAtStart],["parent",(t=e.parent,ue(t)?pe(t)?"attribute:"+t.name:he(t)?"root:"+t.name:"container:"+t.name:t.data)]];var t}var Se=R(Ee);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const Ce="active-view-tab-name";class Te extends r.Component{constructor(e){super(e),this.state={editor:null,currentEditorNode:null,editorRoots:null,currentRootName:null,activeTab:f.get(Ce)||"Inspect"},this.handleTreeClick=this.handleTreeClick.bind(this),this.handlePaneChange=this.handlePaneChange.bind(this),this.handleRootChange=this.handleRootChange.bind(this)}handleTreeClick(e,t){e.persist(),e.stopPropagation(),this.setState({currentEditorNode:t},()=>{2==e.detail&&this.setState({activeTab:"Inspect"},()=>{f.set(Ce,"Inspect")})})}handleRootChange(e){this.setState({currentRootName:e})}handlePaneChange(e){this.setState({activeTab:e},()=>{f.set(Ce,e)})}render(){return this.props.editor?o.a.createElement(F,{splitVertically:"true"},o.a.createElement(be,{currentEditorNode:this.state.currentEditorNode,currentRootName:this.state.currentRootName,editor:this.props.editor,editorRoots:this.state.editorRoots,onClick:this.handleTreeClick,onRootChange:this.handleRootChange}),o.a.createElement(X,null,o.a.createElement(B,{onTabChange:this.handlePaneChange,activeTab:this.state.activeTab},o.a.createElement(we,{label:"Inspect",editor:this.state.editor,currentRootName:this.state.currentRootName,inspectedNode:this.state.currentEditorNode}),o.a.createElement(Se,{label:"Selection",editor:this.state.editor})))):o.a.createElement(F,{isEmpty:"true"},o.a.createElement("p",null,"Nothing to show. Attach another editor instance to start inspecting."))}static getDerivedStateFromProps(e,t){const n=function(e){if(!e)return null;return[...e.editing.view.document.roots]}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/(e.editor);return e.editor!==t.editor?{editor:e.editor,editorRoots:n,currentRootName:n?n[0].rootName:null,currentEditorNode:null}:null}}class Ne extends r.Component{editorEventObserverConfig(e){return{target:e.editor.model.document,event:"change"}}render(){return o.a.createElement(N,null,o.a.createElement(y,{items:this.getCommandStates(),onClick:this.props.onClick,activeNode:this.props.currentCommandName}))}getCommandStates(){const e=this.props.editor,t=[];for(const[n,r]of e.commands){const e=[];void 0!==r.value&&e.push(["value",h(r.value,!1)]),t.push({name:n,type:"element",children:[],node:n,attributes:e,presentation:{isEmpty:!0,cssClass:["ck-inspector-tree-node_tagless",r.isEnabled?"":"ck-inspector-tree-node_disabled"].join(" ")}})}return t.sort((e,t)=>e.name>t.name?1:-1)}}var ze=R(Ne);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class Pe extends r.Component{editorEventObserverConfig(e){return{target:e.editor.model.document,event:"change"}}render(){const e=this.getEditorCommandInfo();return e?o.a.createElement(ee,{header:[o.a.createElement("span",{key:"link"},o.a.createElement("a",{href:e.url,target:"_blank",rel:"noopener noreferrer"},o.a.createElement("b",null,e.type)),":",e.name),o.a.createElement(G,{key:"exec",type:"exec",text:"Execute command",onClick:()=>this.props.editor.execute(e.name)}),o.a.createElement(G,{key:"log",type:"log",text:"Log in console",onClick:()=>te.log(e.command)})],lists:[{name:"Properties",url:e.url,items:e.properties}]}):o.a.createElement(F,{isEmpty:"true"},o.a.createElement("p",null,"Select a command to inspect"))}getEditorCommandInfo(){const e=this.props.editor,t=this.props.inspectedCommandName;if(!t)return null;const n=e.commands.get(t);return{name:t,type:"Command",url:"https://ckeditor.com/docs/ckeditor5/latest/api/module_core_command-Command.html",properties:m([["isEnabled",n.isEnabled],["value",n.value]]),command:n}}}var Re=R(Pe);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/class Oe extends r.Component{constructor(e){super(e),this.state={editor:null,currentCommandName:null},this.handleTreeClick=this.handleTreeClick.bind(this)}handleTreeClick(e,t){e.persist(),e.stopPropagation(),this.setState({currentCommandName:t})}render(){return this.props.editor?o.a.createElement(F,{splitVertically:"true"},o.a.createElement(ze,{editor:this.props.editor,currentCommandName:this.state.currentCommandName,onClick:this.handleTreeClick}),o.a.createElement(X,null,o.a.createElement(B,{activeTab:"Inspect"},o.a.createElement(Re,{label:"Inspect",editor:this.props.editor,inspectedCommandName:this.state.currentCommandName})))):o.a.createElement(F,{isEmpty:"true"},o.a.createElement("p",null,"Nothing to show. Attach another editor instance to start inspecting."))}static getDerivedStateFromProps(e,t){return e.editor!==t.editor?{editor:e.editor,currentCommandName:null}:null}}n(30);
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/const Me="active-tab-name",De="is-collapsed",Ie="height",Le="100",Ae="400px",je=30,Ue={position:"fixed",bottom:"0",left:"0",right:"0",top:"auto"};class Fe extends r.Component{constructor(e){super(e);const t=f.get(Ie)||Ae,n=!0===this.props.isCollapsed||"true"===f.get(De);this.state={isCollapsed:n,height:t,editors:null,currentEditorName:null,activeTab:f.get(Me)||"Model"},Ve(t),this.handlePaneChange=this.handlePaneChange.bind(this),this.handleEditorChange=this.handleEditorChange.bind(this),this.handleToggleCollapseClick=this.handleToggleCollapseClick.bind(this),this.handleInspectorResize=this.handleInspectorResize.bind(this)}handlePaneChange(e){this.setState({activeTab:e},()=>{f.set(Me,e)})}handleEditorChange(e){this.setState({currentEditorName:e})}handleToggleCollapseClick(){this.setState({isCollapsed:!this.state.isCollapsed},()=>{f.set(De,this.state.isCollapsed)})}handleInspectorResize(e,t,n){this.setState({height:n.style.height},()=>{const e=n.style.height;f.set(Ie,e),Ve(e)})}render(){this.state.isCollapsed?(document.body.classList.remove("ck-inspector-body-expanded"),document.body.classList.add("ck-inspector-body-collapsed")):(document.body.classList.remove("ck-inspector-body-collapsed"),document.body.classList.add("ck-inspector-body-expanded"));const e=this.state.editors.get(this.state.currentEditorName);return o.a.createElement(d,{bounds:"window",enableResizing:{top:!this.state.isCollapsed},disableDragging:!0,minHeight:Le,maxHeight:"100%",style:Ue,className:["ck-inspector",this.state.isCollapsed?"ck-inspector_collapsed":""].join(" "),position:{x:0,y:"100%"},size:{width:"100%",height:this.state.isCollapsed?je:this.state.height},onResizeStop:this.handleInspectorResize},o.a.createElement(B,{onTabChange:this.handlePaneChange,contentBefore:o.a.createElement(We,{key:"docs"}),activeTab:this.state.activeTab,contentAfter:[o.a.createElement(Be,{key:"selector",currentEditorName:this.state.currentEditorName,editors:this.state.editors,onChange:e=>this.handleEditorChange(e.target.value)}),o.a.createElement(He,{key:"inspector-toggle",onClick:this.handleToggleCollapseClick,isUp:this.state.isCollapsed})]},o.a.createElement(ce,{label:"Model",editor:e}),o.a.createElement(Te,{label:"View",editor:e}),o.a.createElement(Oe,{label:"Commands",editor:e})))}componentWillUnmount(){document.body.classList.remove("ck-inspector-body-expanded"),document.body.classList.remove("ck-inspector-body-collapsed")}static getDerivedStateFromProps(e,t){return e.editors.has(t.currentEditorName)?null:{editors:e.editors,currentEditorName:e.editors.size?[...e.editors][0][0]:""}}}class We extends r.Component{render(){return o.a.createElement("a",{className:"ck-inspector-navbox__navigation__logo",title:"Go to the documentation",href:"https://ckeditor.com/docs/ckeditor5/latest/",target:"_blank",rel:"noopener noreferrer"},"CKEditor documentation")}}class He extends r.Component{render(){return o.a.createElement("button",{type:"button",onClick:this.props.onClick,title:"Toggle inspector",className:["ck-inspector-navbox__navigation__toggle",this.props.isUp?" ck-inspector-navbox__navigation__toggle_up":""].join(" ")},"Toggle inspector")}}class Be extends r.Component{render(){return o.a.createElement("div",{className:"ck-inspector-editor-selector",key:"editor-selector"},this.props.currentEditorName?o.a.createElement(z,{id:"inspector-editor-selector",label:"Editor instance",value:this.props.currentEditorName,options:[...this.props.editors].map(([e])=>e),onChange:this.props.onChange}):"")}}function Ve(e){document.body.style.setProperty("--ck-inspector-height",e)}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/let $e=0;function Ye(e){const t={editors:{},options:{}};if("string"==typeof e[0])te.warn(`[CKEditorInspector] The CKEditorInspector.attach( '${e[0]}', editor ) syntax has been deprecated `+"and will be removed in the near future. To pass a name of an editor instance, use "+`CKEditorInspector.attach( { '${e[0]}': editor } ) instead. `+"Learn more in https://github.com/ckeditor/ckeditor5-inspector/blob/master/README.md."),t.editors[e[0]]=e[1];else{if((n=e[0]).model&&n.editing)t.editors[`editor-${++$e}`]=e[0];else for(const n in e[0])t.editors[n]=e[0][n];t.options=e[1]||t.options}var n;return t}n(32);n.d(t,"default",(function(){return Qe})),
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
window.CKEDITOR_INSPECTOR_VERSION="1.5.0";class Qe{constructor(){te.warn("[CKEditorInspector] Whoops! Looks like you tried to create an instance of the CKEditorInspector class. To attach the inspector, use the static CKEditorInspector.attach( editor ) method instead. For the latest API, please refer to https://github.com/ckeditor/ckeditor5-inspector/blob/master/README.md. ")}static attach(...e){const{editors:t,options:n}=Ye(e);for(const e in t){const r=t[e];te.group("%cAttached the inspector to a CKEditor 5 instance. To learn more, visit https://ckeditor.com/docs/ckeditor5.","font-weight: bold;"),te.log(`Editor instance "${e}"`,r),te.groupEnd(),Qe._editors.set(e,r),r.on("destroy",()=>{Qe.detach(e)}),Qe._mount(n),Qe._updateEditorsState()}return Object.keys(t)}static attachToAll(e){const t=document.querySelectorAll(".ck.ck-content.ck-editor__editable"),n=[];for(const r of t){const t=r.ckeditorInstance;t&&!Qe._isAttachedTo(t)&&n.push(...Qe.attach(t,e))}return n}static detach(e){Qe._editors.delete(e),Qe._updateEditorsState()}static destroy(){Qe._wrapper&&(a.a.unmountComponentAtNode(Qe._wrapper),Qe._editors.clear(),Qe._wrapper.remove(),Qe._wrapper=null)}static _updateEditorsState(){Qe._isMounted&&Qe._inspectorRef.current.setState({editors:Qe._editors})}static _mount(e){if(Qe._wrapper)return;const t=Qe._wrapper=document.createElement("div");t.className="ck-inspector-wrapper",document.body.appendChild(t),a.a.render(o.a.createElement(Fe,{ref:Qe._inspectorRef,editors:Qe._editors,isCollapsed:e.isCollapsed}),t)}static get _isMounted(){return!!Qe._inspectorRef.current}static _isAttachedTo(e){return[...Qe._editors.values()].includes(e)}}Qe._editors=new Map,Qe._inspectorRef=o.a.createRef(),Qe._wrapper=null}]).default}));