-
-
Notifications
You must be signed in to change notification settings - Fork 154
/
main.js
56 lines (54 loc) · 166 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=14)}([function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";n.r(t),n.d(t,"analyticsEnabled",(function(){return v})),n.d(t,"setAnalyticsEnabled",(function(){return y})),n.d(t,"analyticsFirstRun",(function(){return b})),n.d(t,"setAnalyticsFirstRun",(function(){return w})),n.d(t,"track",(function(){return k}));for(var r=n(3),a=n.n(r),i=[],l=0;l<256;++l)i[l]=(l+256).toString(16).substr(1);var o=function(e,t){var n=t||0,r=i;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};function u(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function c(e,t,n,r,a,i){return u((l=u(u(t,e),u(r,i)))<<(o=a)|l>>>32-o,n);var l,o}function s(e,t,n,r,a,i,l){return c(t&n|~t&r,e,t,a,i,l)}function f(e,t,n,r,a,i,l){return c(t&r|n&~r,e,t,a,i,l)}function d(e,t,n,r,a,i,l){return c(t^n^r,e,t,a,i,l)}function p(e,t,n,r,a,i,l){return c(n^(t|~r),e,t,a,i,l)}var h=function(e,t,n){var r=function(e,r,a,i){var l=a&&i||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)),"string"==typeof r&&(r=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(r)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(r)||16!==r.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var u=n(r.concat(e));if(u[6]=15&u[6]|t,u[8]=63&u[8]|128,a)for(var c=0;c<16;++c)a[l+c]=u[c];return a||o(u)};try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var n=0;n<t.length;n++)e[n]=t.charCodeAt(n)}return function(e){var t,n,r,a=[],i=32*e.length;for(t=0;t<i;t+=8)n=e[t>>5]>>>t%32&255,r=parseInt("0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n),16),a.push(r);return a}(function(e,t){var n,r,a,i,l;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var o=1732584193,c=-271733879,h=-1732584194,m=271733878;for(n=0;n<e.length;n+=16)r=o,a=c,i=h,l=m,o=s(o,c,h,m,e[n],7,-680876936),m=s(m,o,c,h,e[n+1],12,-389564586),h=s(h,m,o,c,e[n+2],17,606105819),c=s(c,h,m,o,e[n+3],22,-1044525330),o=s(o,c,h,m,e[n+4],7,-176418897),m=s(m,o,c,h,e[n+5],12,1200080426),h=s(h,m,o,c,e[n+6],17,-1473231341),c=s(c,h,m,o,e[n+7],22,-45705983),o=s(o,c,h,m,e[n+8],7,1770035416),m=s(m,o,c,h,e[n+9],12,-1958414417),h=s(h,m,o,c,e[n+10],17,-42063),c=s(c,h,m,o,e[n+11],22,-1990404162),o=s(o,c,h,m,e[n+12],7,1804603682),m=s(m,o,c,h,e[n+13],12,-40341101),h=s(h,m,o,c,e[n+14],17,-1502002290),c=s(c,h,m,o,e[n+15],22,1236535329),o=f(o,c,h,m,e[n+1],5,-165796510),m=f(m,o,c,h,e[n+6],9,-1069501632),h=f(h,m,o,c,e[n+11],14,643717713),c=f(c,h,m,o,e[n],20,-373897302),o=f(o,c,h,m,e[n+5],5,-701558691),m=f(m,o,c,h,e[n+10],9,38016083),h=f(h,m,o,c,e[n+15],14,-660478335),c=f(c,h,m,o,e[n+4],20,-405537848),o=f(o,c,h,m,e[n+9],5,568446438),m=f(m,o,c,h,e[n+14],9,-1019803690),h=f(h,m,o,c,e[n+3],14,-187363961),c=f(c,h,m,o,e[n+8],20,1163531501),o=f(o,c,h,m,e[n+13],5,-1444681467),m=f(m,o,c,h,e[n+2],9,-51403784),h=f(h,m,o,c,e[n+7],14,1735328473),c=f(c,h,m,o,e[n+12],20,-1926607734),o=d(o,c,h,m,e[n+5],4,-378558),m=d(m,o,c,h,e[n+8],11,-2022574463),h=d(h,m,o,c,e[n+11],16,1839030562),c=d(c,h,m,o,e[n+14],23,-35309556),o=d(o,c,h,m,e[n+1],4,-1530992060),m=d(m,o,c,h,e[n+4],11,1272893353),h=d(h,m,o,c,e[n+7],16,-155497632),c=d(c,h,m,o,e[n+10],23,-1094730640),o=d(o,c,h,m,e[n+13],4,681279174),m=d(m,o,c,h,e[n],11,-358537222),h=d(h,m,o,c,e[n+3],16,-722521979),c=d(c,h,m,o,e[n+6],23,76029189),o=d(o,c,h,m,e[n+9],4,-640364487),m=d(m,o,c,h,e[n+12],11,-421815835),h=d(h,m,o,c,e[n+15],16,530742520),c=d(c,h,m,o,e[n+2],23,-995338651),o=p(o,c,h,m,e[n],6,-198630844),m=p(m,o,c,h,e[n+7],10,1126891415),h=p(h,m,o,c,e[n+14],15,-1416354905),c=p(c,h,m,o,e[n+5],21,-57434055),o=p(o,c,h,m,e[n+12],6,1700485571),m=p(m,o,c,h,e[n+3],10,-1894986606),h=p(h,m,o,c,e[n+10],15,-1051523),c=p(c,h,m,o,e[n+1],21,-2054922799),o=p(o,c,h,m,e[n+8],6,1873313359),m=p(m,o,c,h,e[n+15],10,-30611744),h=p(h,m,o,c,e[n+6],15,-1560198380),c=p(c,h,m,o,e[n+13],21,1309151649),o=p(o,c,h,m,e[n+4],6,-145523070),m=p(m,o,c,h,e[n+11],10,-1120210379),h=p(h,m,o,c,e[n+2],15,718787259),c=p(c,h,m,o,e[n+9],21,-343485551),o=u(o,r),c=u(c,a),h=u(h,i),m=u(m,l);return[o,c,h,m]}(function(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e[t/8])<<t%32;return n}(e),8*e.length))}));const m=n(20);async function g(){let e=await a.a.get("google.analytics.uuid",null);return e||(e=h(String(Date.now()),"218c9690-9112-11ea-bb37-0242ac130002"),await a.a.set("google.analytics.uuid",e)),e}async function v(){return await a.a.get("analytics.enabled",!0)}async function y(e){await a.a.set("analytics.enabled",e)}async function b(){return await a.a.get("analytics.first.run",!0)}async function w(){await a.a.set("analytics.first.run",!1)}async function k(e,t,n){if(!await v())return"the user didn't enable sharing analytics";const r={v:1,tid:"UA-104184459-2",ds:"adobeXD",cid:await g(),t:e};r.an=m.name,r.aid="com.renameit.design",r.av=m.version,t&&Object.keys(t).forEach((function(e){r[e]=t[e]}));const a=`https://www.google-analytics.com/${n&&n.debug?"debug/":""}collect?${i=r,Object.keys(i).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(i[e])})).join("&")}&z=${Date.now()}`;var i;return n&&n.debug&&(console.log("DEBUG: Analytics"),console.log(r),console.log("url: "+a)),function(e,t){if(e)return new Promise((t,n)=>{const r=new XMLHttpRequest;r.onload=()=>{if(200===r.status)try{t(r.response)}catch(e){n("Couldnt parse response. ${err.message}, ${req.response}")}else n("Request had an error: ${req.status}")},r.open("GET",e,!0),r.send()})}(a)}},function(e,t,n){var r=n(21),a=n(22);e.exports=function(e){return function(e){return"string"==typeof e}(e)&&e.length?a(e):r(e)}},function(e,t,n){const r=n(7).storage,a=r.localFileSystem;let i;e.exports=class{static async init(){let e=await a.getDataFolder();try{let t=await e.getEntry("storage.json");return i=JSON.parse((await t.read({format:r.formats.utf8})).toString()),t}catch(t){const n=await e.createEntry("storage.json",{type:r.types.file,overwrite:!0});if(n.isFile)return await n.write("{}",{append:!1}),i={},n;throw new Error("Storage file storage.json was not a file.")}}static async get(e,t){if(!i){const e=await this.init();i=JSON.parse((await e.read({format:r.formats.utf8})).toString())}return void 0===i[e]?(await this.set(e,t),t):i[e]}static async set(e,t){const n=await this.init();return i[e]=t,await n.write(JSON.stringify(i),{append:!1,format:r.formats.utf8})}static async delete(e){return await this.set(e,void 0)}static async reset(){const e=await this.init();return await e.write("{}",{append:!1,format:r.formats.utf8})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);Object.defineProperty(t,"FindReplace",{enumerable:!0,get:function(){return i(r).default}});var a=n(24);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Rename",{enumerable:!0,get:function(){return i(a).default}})},function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(2),l=n.n(i);class o extends a.a.Component{constructor(e){super(e),this.state={preview:"",showPreview:"hide"}}UNSAFE_componentWillReceiveProps(e){this.setState({preview:e.data.filter(e=>e).join(", ")},()=>this.updateClassName())}updateClassName(){l()(this.state.preview)&&l()(this.props.noMatch)?this.setState({showPreview:"hide"}):this.setState({showPreview:"show"})}renderPreviewText(){return l()(this.state.preview)&&l()(this.props.noMatch)?" ":l()(this.props.noMatch)?""+this.state.preview:""+this.props.noMatch}render(){return a.a.createElement("div",{id:"preview",className:l()(this.props.noMatch)?"":"noMatch"},a.a.createElement("h3",{className:this.state.showPreview},"PREVIEW"),a.a.createElement("span",{className:"previewText"},this.renderPreviewText()))}}t.a=o},function(e,t,n){"use strict";
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},function(e,t){e.exports=require("uxp")},function(e,t,n){"use strict";n.r(t),n.d(t,"localeLowerCase",(function(){return a})),n.d(t,"lowerCase",(function(){return i}));var r={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/\u0130/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}};function a(e,t){var n=r[t.toLowerCase()];return i(n?e.replace(n.regexp,(function(e){return n.map[e]})):e)}function i(e){return e.toLowerCase()}},function(e,t,n){"use strict";n.r(t),n.d(t,"localeUpperCase",(function(){return a})),n.d(t,"upperCase",(function(){return i}));var r={tr:{regexp:/[\u0069]/g,map:{i:"İ"}},az:{regexp:/[\u0069]/g,map:{i:"İ"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{"i̇":"I","j̇":"J","į̇":"Į","i̇̀":"Ì","i̇́":"Í","i̇̃":"Ĩ"}}};function a(e,t){var n=r[t.toLowerCase()];return i(n?e.replace(n.regexp,(function(e){return n.map[e]})):e)}function i(e){return e.toUpperCase()}},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}n.r(t),n.d(t,"upperCaseFirst",(function(){return r}))},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function l(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,o,u=l(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))a.call(n,s)&&(u[s]=n[s]);if(r){o=r(n);for(var f=0;f<o.length;f++)i.call(n,o[f])&&(u[o[f]]=n[o[f]])}}return u}},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(17)},function(e,t,n){var r=n(29),a=n(30);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var i={insert:"head",singleton:!1};r(a,i);e.exports=a.locals||{}},function(e,t,n){(function(t){t.setTimeout=function(e){e()},t.clearTimeout=function(){};const r=n(0),a=n(12),{shell:i}=n(7),l=n(1).analyticsFirstRun,o=n(37).default,u=n(32).default,c=n(33).default,s=n(34).default,f=n(35).default,d=0,p=1,h=3;let m;async function g(e,t,n){const i=await l();let g=t;if(t!==h&&e.items.length<=0&&(g=null),null==m){let t;switch(m=document.createElement("dialog"),g){case d:t=r.createElement(o,{dialog:m,selection:e,documentRoot:n});break;case p:t=r.createElement(u,{dialog:m,selection:e});break;case h:t=r.createElement(f,{dialog:m});break;default:t=r.createElement(c,{dialog:m})}i?a.render(r.createElement(s,{dialog:m,nextDialog:t}),m):a.render(t,m)}return m.addEventListener("close",()=>{m=null}),document.appendChild(m).showModal()}e.exports={commands:{renameCommand:function(e,t){return g(e,d,t).catch(e=>{})},findReplaceCommand:function(e){return g(e,p).catch(e=>{})},settingsCommand:function(e){return g(e,h).catch(e=>{})},donateCommand:function(){i.openExternal("https://www.paypal.me/rodi01/5")}}}}).call(this,n(15))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";
/** @license React v16.13.1
* 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(11),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,l=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,u=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function k(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=w.prototype;var E=x.prototype=new k;E.constructor=x,r(E,w.prototype),E.isPureReactComponent=!0;var C={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,a={},l=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(l=""+t.key),t)S.call(t,r)&&!T.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];a.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:l,ref:o,props:a,_owner:C.current}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var N=/\/+/g,O=[];function R(e,t,n,r){if(O.length){var a=O.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}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>O.length&&O.push(e)}function A(e,t,n){return null==e?0:function e(t,n,r,a){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var u=!1;if(null===t)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case l:u=!0}}if(u)return r(a,t,""===n?"."+z(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+z(o=t[c],c);u+=e(o,s,r,a)}else if(null===t||"object"!=typeof t?s=null:s="function"==typeof(s=g&&t[g]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),c=0;!(o=t.next()).done;)u+=e(o=o.value,s=n+z(o,c++),r,a);else if("object"===o)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function z(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 M(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(P(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,a){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),A(e,F,t=R(t,i,r,a)),I(t)}var D={current:null};function j(){var e=D.current;if(null===e)throw Error(v(321));return e}var U={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,M,t=R(null,null,t,n)),I(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!P(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=o,t.Profiler=c,t.PureComponent=x,t.StrictMode=u,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var a=r({},e.props),l=e.key,o=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,u=C.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!T.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:e.type,key:l,ref:o,props:a,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
/** @license React v16.13.1
* 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),a=n(11),i=n(18);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(l(227));function o(e,t,n,r,a,i,l,o,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var u=!1,c=null,s=!1,f=null,d={onError:function(e){u=!0,c=e}};function p(e,t,n,r,a,i,l,s,f){u=!1,c=null,o.apply(d,arguments)}var h=null,m=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,a,i,o,d,h){if(p.apply(this,arguments),u){if(!u)throw Error(l(198));var m=c;u=!1,c=null,s||(s=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(l(96,e));if(!x[n]){if(!t.extractEvents)throw Error(l(97,e));for(var r in x[n]=t,n=t.eventTypes){var a=void 0,i=n[r],o=t,u=r;if(E.hasOwnProperty(u))throw Error(l(99,u));E[u]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&k(c[a],o,u);a=!0}else i.registrationName?(k(i.registrationName,o,u),a=!0):a=!1;if(!a)throw Error(l(98,r,e))}}}}function k(e,t,n){if(C[e])throw Error(l(100,e));C[e]=t,S[e]=t.eventTypes[n].dependencies}var x=[],E={},C={},S={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(l(102,t));b[t]=r,n=!0}}n&&w()}var _=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=null,N=null,O=null;function R(e){if(e=m(e)){if("function"!=typeof P)throw Error(l(280));var t=e.stateNode;t&&(t=h(t),P(e.stateNode,e.type,t))}}function I(e){N?O?O.push(e):O=[e]:N=e}function A(){if(N){var e=N,t=O;if(O=N=null,R(e),t)for(e=0;e<t.length;e++)R(t[e])}}function z(e,t){return e(t)}function M(e,t,n,r,a){return e(t,n,r,a)}function F(){}var L=z,D=!1,j=!1;function U(){null===N&&null===O||(F(),A())}function V(e,t,n){if(j)return e(t,n);j=!0;try{return L(e,t,n)}finally{j=!1,U()}}var W=/^[: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]*$/,B=Object.prototype.hasOwnProperty,$={},Q={};function q(e,t,n,r,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var H={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){H[e]=new q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];H[t]=new q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){H[e]=new q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){H[e]=new q(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){H[e]=new q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){H[e]=new q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){H[e]=new q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){H[e]=new q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){H[e]=new q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"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(K,Y);H[t]=new q(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(K,Y);H[t]=new q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);H[t]=new q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){H[e]=new q(e,1,!1,e.toLowerCase(),null,!1)})),H.xlinkHref=new q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){H[e]=new q(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(e,t,n,r){var a=H.hasOwnProperty(t)?H[t]:null;(null!==a?0===a.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,a,r)&&(n=null),r||null===a?function(e){return!!B.call(Q,e)||!B.call($,e)&&(W.test(e)?Q[e]=!0:($[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,ae=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,le=J?Symbol.for("react.context"):60110,oe=J?Symbol.for("react.concurrent_mode"):60111,ue=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,se=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(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 ne:return"Fragment";case te:return"Portal";case ae:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case se:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case le:return"Context.Consumer";case ie:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ge(e.type);case pe:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(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,a=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",a?i=" (at "+a.fileName.replace(Z,"")+":"+a.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(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 a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.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 ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(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 Ce(e,t){null!=(t=t.checked)&&G(e,"checked",t,!1)}function Se(e,t){Ce(e,t);var n=ye(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")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(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._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Pe(e,t){return e=a({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 Ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(l(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(l(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Ie(e,t){var n=ye(t.value),r=ye(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)}var ze="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Fe(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 Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,je=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ue(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 We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Be={},$e={};function Qe(e){if(Be[e])return Be[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in $e)return Be[e]=n[t];return e}_&&($e=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var qe=Qe("animationend"),He=Qe("animationiteration"),Ke=Qe("animationstart"),Ye=Qe("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ge=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Ge.get(e);return void 0===t&&(t=new Map,Ge.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Je(e)!==e)throw Error(l(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return tt(a),e;if(i===r)return tt(a),t;i=i.sibling}throw Error(l(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,u=a.child;u;){if(u===n){o=!0,n=a,r=i;break}if(u===r){o=!0,r=a,n=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===n){o=!0,n=i,r=a;break}if(u===r){o=!0,r=i,n=a;break}u=u.sibling}if(!o)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(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 rt(e,t){if(null==t)throw Error(l(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 at(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function lt(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ot(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(at(e,lt),it)throw Error(l(95));if(s)throw e=f,s=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!_)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 st=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>st.length&&st.push(e)}function dt(e,t,n,r){if(st.length){var a=st.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(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=_n(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=ut(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,l=e.eventSystemFlags;0===n&&(l|=64);for(var o=null,u=0;u<x.length;u++){var c=x[u];c&&(c=c.extractEvents(r,t,i,a,l))&&(o=rt(o,c))}ot(o)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Ht(e,t)}n.set(e,null)}}var mt,gt,vt,yt=!1,bt=[],wt=null,kt=null,xt=null,Et=new Map,Ct=new Map,St=[],Tt="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(" "),_t="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,r,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a,container:r}}function Nt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ct.delete(t.pointerId)}}function Ot(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=Pt(t,n,r,a,i),null!==t&&(null!==(t=Pn(t))&>(t)),e):(e.eventSystemFlags|=r,e)}function Rt(e){var t=_n(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){vt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function At(e,t,n){It(e)&&n.delete(t)}function zt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==wt&&It(wt)&&(wt=null),null!==kt&&It(kt)&&(kt=null),null!==xt&&It(xt)&&(xt=null),Et.forEach(At),Ct.forEach(At)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Ft(e){function t(t){return Mt(t,e)}if(0<bt.length){Mt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Mt(wt,e),null!==kt&&Mt(kt,e),null!==xt&&Mt(xt,e),Et.forEach(t),Ct.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Rt(n),null===n.blockedOn&&St.shift()}var Lt={},Dt=new Map,jt=new Map,Ut=["abort","abort",qe,"animationEnd",He,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1],i="on"+(a[0].toUpperCase()+a.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},jt.set(r,t),Dt.set(r,i),Lt[a]=i}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(Ut,2);for(var Wt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Bt=0;Bt<Wt.length;Bt++)jt.set(Wt[Bt],0);var $t=i.unstable_UserBlockingPriority,Qt=i.unstable_runWithPriority,qt=!0;function Ht(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=jt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Gt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){D||F();var a=Gt,i=D;D=!0;try{M(a,e,t,n,r)}finally{(D=i)||U()}}function Xt(e,t,n,r){Qt($t,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){if(qt)if(0<bt.length&&-1<Tt.indexOf(e))e=Pt(null,e,t,n,r),bt.push(e);else{var a=Zt(e,t,n,r);if(null===a)Nt(e,r);else if(-1<Tt.indexOf(e))e=Pt(a,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,a){switch(t){case"focus":return wt=Ot(wt,e,t,n,r,a),!0;case"dragenter":return kt=Ot(kt,e,t,n,r,a),!0;case"mouseover":return xt=Ot(xt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Et.set(i,Ot(Et.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Ct.set(i,Ot(Ct.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r)){Nt(e,r),e=dt(e,r,null,t);try{V(pt,e)}finally{ft(e)}}}}function Zt(e,t,n,r){if(null!==(n=_n(n=ut(r)))){var a=Je(n);if(null===a)n=null;else{var i=a.tag;if(13===i){if(null!==(n=et(a)))return n;n=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}e=dt(e,r,n,t);try{V(pt,e)}finally{ft(e)}return null}var Jt={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},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Jt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]}))}));var rn=a({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 an(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(l(62,""))}}function ln(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}}var on=ze;function un(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function cn(){}function sn(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 fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=fn(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=fn(r)}}function pn(){for(var e=window,t=sn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=sn((e=t.contentWindow).document)}return t}function hn(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 mn=null,gn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(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 bn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function xn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+En,Sn="__reactEventHandlers$"+En,Tn="__reactContainere$"+En;function _n(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xn(e);null!==e;){if(n=e[Cn])return n;e=xn(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[Cn]||e[Tn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Nn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function On(e){return e[Sn]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function In(e,t){var n=e.stateNode;if(!n)return null;var r=h(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":case"onMouseEnter":(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 Error(l(231,t,typeof n));return n}function An(e,t,n){(t=In(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function zn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)An(n[t],"captured",e);for(t=0;t<n.length;t++)An(n[t],"bubbled",e)}}function Mn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=In(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Fn(e){e&&e.dispatchConfig.registrationName&&Mn(e._targetInst,null,e)}function Ln(e){at(e,zn)}var Dn=null,jn=null,Un=null;function Vn(){if(Un)return Un;var e,t,n=jn,r=n.length,a="value"in Dn?Dn.value:Dn.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var l=r-e;for(t=1;t<=l&&n[r-t]===a[i-t];t++);return Un=a.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function Bn(){return!1}function $n(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:Bn,this.isPropagationStopped=Bn,this}function Qn(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function qn(e){if(!(e instanceof this))throw Error(l(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Hn(e){e.eventPool=[],e.getPooled=Qn,e.release=qn}a($n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:Bn,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=Bn,this._dispatchInstances=this._dispatchListeners=null}}),$n.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},$n.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,Hn(n),n},Hn($n);var Kn=$n.extend({data:null}),Yn=$n.extend({data:null}),Xn=[9,13,27,32],Gn=_&&"CompositionEvent"in window,Zn=null;_&&"documentMode"in document&&(Zn=document.documentMode);var Jn=_&&"TextEvent"in window&&!Zn,er=_&&(!Gn||Zn&&8<Zn&&11>=Zn),tr=String.fromCharCode(32),nr={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(" ")}},rr=!1;function ar(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var lr=!1;var or={eventTypes:nr,extractEvents:function(e,t,n,r){var a;if(Gn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else lr?ar(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(lr||i!==nr.compositionStart?i===nr.compositionEnd&&lr&&(a=Vn()):(jn="value"in(Dn=r)?Dn.value:Dn.textContent,lr=!0)),i=Kn.getPooled(i,t,n,r),a?i.data=a:null!==(a=ir(n))&&(i.data=a),Ln(i),a=i):a=null,(e=Jn?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(lr)return"compositionend"===e||!Gn&&ar(e,t)?(e=Vn(),Un=jn=Dn=null,lr=!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 er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Yn.getPooled(nr.beforeInput,t,n,r)).data=e,Ln(t)):t=null,null===a?t:null===t?a:[a,t]}},ur={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 cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var sr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=$n.getPooled(sr.change,e,t,n)).type="change",I(n),Ln(e),e}var dr=null,pr=null;function hr(e){ot(e)}function mr(e){if(ke(Nn(e)))return e}function gr(e,t){if("change"===e)return t}var vr=!1;function yr(){dr&&(dr.detachEvent("onpropertychange",br),pr=dr=null)}function br(e){if("value"===e.propertyName&&mr(pr))if(e=fr(pr,e,ut(e)),D)ot(e);else{D=!0;try{z(hr,e)}finally{D=!1,U()}}}function wr(e,t,n){"focus"===e?(yr(),pr=n,(dr=t).attachEvent("onpropertychange",br)):"blur"===e&&yr()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function xr(e,t){if("click"===e)return mr(t)}function Er(e,t){if("input"===e||"change"===e)return mr(t)}_&&(vr=ct("input")&&(!document.documentMode||9<document.documentMode));var Cr={eventTypes:sr,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var a=t?Nn(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var l=gr;else if(cr(a))if(vr)l=Er;else{l=kr;var o=wr}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(l=xr);if(l&&(l=l(e,t)))return fr(l,n,r);o&&o(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&_e(a,"number",a.value)}},Sr=$n.extend({view:null,detail:null}),Tr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tr[e])&&!!t[e]}function Pr(){return _r}var Nr=0,Or=0,Rr=!1,Ir=!1,Ar=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pr,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=Nr;return Nr=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Or;return Or=e.screenY,Ir?"mousemove"===e.type?e.screenY-t:0:(Ir=!0,0)}}),zr=Ar.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Mr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fr={eventTypes:Mr,extractEvents:function(e,t,n,r,a){var i="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e;if(i&&0==(32&a)&&(n.relatedTarget||n.fromElement)||!l&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,l)?(l=t,null!==(t=(t=n.relatedTarget||n.toElement)?_n(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):l=null;if(l===t)return null;if("mouseout"===e||"mouseover"===e)var o=Ar,u=Mr.mouseLeave,c=Mr.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=zr,u=Mr.pointerLeave,c=Mr.pointerEnter,s="pointer");if(e=null==l?i:Nn(l),i=null==t?i:Nn(t),(u=o.getPooled(u,l,n,r)).type=s+"leave",u.target=e,u.relatedTarget=i,(n=o.getPooled(c,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=e,s=t,(r=l)&&s)e:{for(c=s,l=0,e=o=r;e;e=Rn(e))l++;for(e=0,t=c;t;t=Rn(t))e++;for(;0<l-e;)o=Rn(o),l--;for(;0<e-l;)c=Rn(c),e--;for(;l--;){if(o===c||o===c.alternate)break e;o=Rn(o),c=Rn(c)}o=null}else o=null;for(c=o,o=[];r&&r!==c&&(null===(l=r.alternate)||l!==c);)o.push(r),r=Rn(r);for(r=[];s&&s!==c&&(null===(l=s.alternate)||l!==c);)r.push(s),s=Rn(s);for(s=0;s<o.length;s++)Mn(o[s],"bubbled",u);for(s=r.length;0<s--;)Mn(r[s],"captured",n);return 0==(64&a)?[u]:[u,n]}};var Lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Dr=Object.prototype.hasOwnProperty;function jr(e,t){if(Lr(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(!Dr.call(t,n[r])||!Lr(e[n[r]],t[n[r]]))return!1;return!0}var Ur=_&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,Br=null,$r=null,Qr=!1;function qr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Qr||null==Wr||Wr!==sn(n)?null:("selectionStart"in(n=Wr)&&hn(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},$r&&jr($r,n)?null:($r=n,(e=$n.getPooled(Vr.select,Br,e,t)).type="select",e.target=Wr,Ln(e),e))}var Hr={eventTypes:Vr,extractEvents:function(e,t,n,r,a,i){if(!(i=!(a=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{a=Ze(a),i=S.onSelect;for(var l=0;l<i.length;l++)if(!a.has(i[l])){a=!1;break e}a=!0}i=!a}if(i)return null;switch(a=t?Nn(t):window,e){case"focus":(cr(a)||"true"===a.contentEditable)&&(Wr=a,Br=t,$r=null);break;case"blur":$r=Br=Wr=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Qr=!1,qr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return qr(n,r)}return null}},Kr=$n.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=$n.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xr=Sr.extend({relatedTarget:null});function Gr(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 Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jr={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"},ea=Sr.extend({key:function(e){if(e.key){var t=Zr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Jr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pr,charCode:function(e){return"keypress"===e.type?Gr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ta=Ar.extend({dataTransfer:null}),na=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pr}),ra=$n.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),aa=Ar.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}),ia={eventTypes:Lt,extractEvents:function(e,t,n,r){var a=Dt.get(e);if(!a)return null;switch(e){case"keypress":if(0===Gr(n))return null;case"keydown":case"keyup":e=ea;break;case"blur":case"focus":e=Xr;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=Ar;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ta;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=na;break;case qe:case He:case Ke:e=Kr;break;case Ye:e=ra;break;case"scroll":e=Sr;break;case"wheel":e=aa;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=zr;break;default:e=$n}return Ln(t=e.getPooled(a,t,n,r)),t}};if(y)throw Error(l(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=On,m=Pn,g=Nn,T({SimpleEventPlugin:ia,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:Cr,SelectEventPlugin:Hr,BeforeInputEventPlugin:or});var la=[],oa=-1;function ua(e){0>oa||(e.current=la[oa],la[oa]=null,oa--)}function ca(e,t){oa++,la[oa]=e.current,e.current=t}var sa={},fa={current:sa},da={current:!1},pa=sa;function ha(e,t){var n=e.type.contextTypes;if(!n)return sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ma(e){return null!=(e=e.childContextTypes)}function ga(){ua(da),ua(fa)}function va(e,t,n){if(fa.current!==sa)throw Error(l(168));ca(fa,t),ca(da,n)}function ya(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 Error(l(108,ge(t)||"Unknown",i));return a({},n,{},r)}function ba(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sa,pa=fa.current,ca(fa,e),ca(da,da.current),!0}function wa(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=ya(e,t,pa),r.__reactInternalMemoizedMergedChildContext=e,ua(da),ua(fa),ca(fa,e)):ua(da),ca(da,n)}var ka=i.unstable_runWithPriority,xa=i.unstable_scheduleCallback,Ea=i.unstable_cancelCallback,Ca=i.unstable_requestPaint,Sa=i.unstable_now,Ta=i.unstable_getCurrentPriorityLevel,_a=i.unstable_ImmediatePriority,Pa=i.unstable_UserBlockingPriority,Na=i.unstable_NormalPriority,Oa=i.unstable_LowPriority,Ra=i.unstable_IdlePriority,Ia={},Aa=i.unstable_shouldYield,za=void 0!==Ca?Ca:function(){},Ma=null,Fa=null,La=!1,Da=Sa(),ja=1e4>Da?Sa:function(){return Sa()-Da};function Ua(){switch(Ta()){case _a:return 99;case Pa:return 98;case Na:return 97;case Oa:return 96;case Ra:return 95;default:throw Error(l(332))}}function Va(e){switch(e){case 99:return _a;case 98:return Pa;case 97:return Na;case 96:return Oa;case 95:return Ra;default:throw Error(l(332))}}function Wa(e,t){return e=Va(e),ka(e,t)}function Ba(e,t,n){return e=Va(e),xa(e,t,n)}function $a(e){return null===Ma?(Ma=[e],Fa=xa(_a,qa)):Ma.push(e),Ia}function Qa(){if(null!==Fa){var e=Fa;Fa=null,Ea(e)}qa()}function qa(){if(!La&&null!==Ma){La=!0;var e=0;try{var t=Ma;Wa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ma=null}catch(t){throw null!==Ma&&(Ma=Ma.slice(e+1)),xa(_a,Qa),t}finally{La=!1}}}function Ha(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ka(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ya={current:null},Xa=null,Ga=null,Za=null;function Ja(){Za=Ga=Xa=null}function ei(e){var t=Ya.current;ua(Ya),e.type._context._currentValue=t}function ti(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 ni(e,t){Xa=e,Za=Ga=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Nl=!0),e.firstContext=null)}function ri(e,t){if(Za!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Za=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ga){if(null===Xa)throw Error(l(308));Ga=t,Xa.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ga=Ga.next=t;return e._currentValue}var ai=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function oi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.alternate;null!==n&&li(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function si(e,t,n,r){var i=e.updateQueue;ai=!1;var l=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==l){var u=l.next;l.next=o.next,o.next=u}l=o,i.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=o))}if(null!==l){u=l.next;var c=i.baseState,s=0,f=null,d=null,p=null;if(null!==u)for(var h=u;;){if((o=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=m,f=c):p=p.next=m,o>s&&(s=o)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),iu(o,h.suspenseConfig);e:{var g=e,v=h;switch(o=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){c=g.call(m,c,o);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(o="function"==typeof(g=v.payload)?g.call(m,c,o):g))break e;c=a({},c,o);break e;case 2:ai=!0}}null!==h.callback&&(e.effectTag|=32,null===(o=i.effects)?i.effects=[h]:o.push(h))}if(null===(h=h.next)||h===u){if(null===(o=i.shared.pending))break;h=l.next=o.next,o.next=u,i.baseQueue=l=o,i.shared.pending=null}}null===p?f=c:p.next=d,i.baseState=f,i.baseQueue=p,lu(s),e.expirationTime=s,e.memoizedState=c}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=a,a=n,"function"!=typeof r)throw Error(l(191,r));r.call(a)}}}var di=X.ReactCurrentBatchConfig,pi=(new r.Component).refs;function hi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=qo(),a=di.suspense;(a=oi(r=Ho(r,e,a),a)).payload=t,null!=n&&(a.callback=n),ui(e,a),Ko(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=qo(),a=di.suspense;(a=oi(r=Ho(r,e,a),a)).tag=1,a.payload=t,null!=n&&(a.callback=n),ui(e,a),Ko(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=qo(),r=di.suspense;(r=oi(n=Ho(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ui(e,r),Ko(e,n)}};function gi(e,t,n,r,a,i,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,l):!t.prototype||!t.prototype.isPureReactComponent||(!jr(n,r)||!jr(a,i))}function vi(e,t,n){var r=!1,a=sa,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(a=ma(t)?pa:fa.current,i=(r=null!=(r=t.contextTypes))?ha(e,a):sa),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function yi(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&&mi.enqueueReplaceState(t,t.state,null)}function bi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=pi,ii(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=ri(i):(i=ma(t)?pa:fa.current,a.context=ha(e,i)),si(e,n,a,r),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&mi.enqueueReplaceState(a,a.state,null),si(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var wi=Array.isArray;function ki(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 Error(l(309));var r=n.stateNode}if(!r)throw Error(l(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===pi&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function xi(e,t){if("textarea"!==e.type)throw Error(l(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ei(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 a(e,t){return(e=Tu(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=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Nu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=ki(e,t,n),r.return=e,r):((r=_u(n.type,n.key,n.props,null,e.mode,r)).ref=ki(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ou(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Pu(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Nu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=_u(t.type,t.key,t.props,null,e.mode,n)).ref=ki(e,null,t),n.return=e,n;case te:return(t=Ou(t,e.mode,n)).return=e,t}if(wi(t)||me(t))return(t=Pu(t,e.mode,n,null)).return=e,t;xi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===a?n.type===ne?f(e,t,n.props.children,r,a):c(e,t,n,r):null;case te:return n.key===a?s(e,t,n,r):null}if(wi(n)||me(n))return null!==a?null:f(e,t,n,r,null);xi(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,a,r.key):c(t,e,r,a);case te:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(wi(r)||me(r))return f(t,e=e.get(n)||null,r,a,null);xi(t,r)}return null}function m(a,l,o,u){for(var c=null,s=null,f=l,m=l=0,g=null;null!==f&&m<o.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=p(a,f,o[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(a,f),l=i(v,l,m),null===s?c=v:s.sibling=v,s=v,f=g}if(m===o.length)return n(a,f),c;if(null===f){for(;m<o.length;m++)null!==(f=d(a,o[m],u))&&(l=i(f,l,m),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(a,f);m<o.length;m++)null!==(g=h(f,a,m,o[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),l=i(g,l,m),null===s?c=g:s.sibling=g,s=g);return e&&f.forEach((function(e){return t(a,e)})),c}function g(a,o,u,c){var s=me(u);if("function"!=typeof s)throw Error(l(150));if(null==(u=s.call(u)))throw Error(l(151));for(var f=s=null,m=o,g=o=0,v=null,y=u.next();null!==m&&!y.done;g++,y=u.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(a,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(a,m),o=i(b,o,g),null===f?s=b:f.sibling=b,f=b,m=v}if(y.done)return n(a,m),s;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=d(a,y.value,c))&&(o=i(y,o,g),null===f?s=y:f.sibling=y,f=y);return s}for(m=r(a,m);!y.done;g++,y=u.next())null!==(y=h(m,a,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),o=i(y,o,g),null===f?s=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(a,e)})),s}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case ee:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){switch(c.tag){case 7:if(i.type===ne){n(e,c.sibling),(r=a(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=a(c,i.props)).ref=ki(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Pu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=_u(i.type,i.key,i.props,null,e.mode,u)).ref=ki(e,r,i),u.return=e,e=u)}return o(e);case te: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=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ou(i,e.mode,u)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Nu(i,e.mode,u)).return=e,e=r),o(e);if(wi(i))return m(e,r,i,u);if(me(i))return g(e,r,i,u);if(s&&xi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(l(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ci=Ei(!0),Si=Ei(!1),Ti={},_i={current:Ti},Pi={current:Ti},Ni={current:Ti};function Oi(e){if(e===Ti)throw Error(l(174));return e}function Ri(e,t){switch(ca(Ni,t),ca(Pi,e),ca(_i,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ua(_i),ca(_i,t)}function Ii(){ua(_i),ua(Pi),ua(Ni)}function Ai(e){Oi(Ni.current);var t=Oi(_i.current),n=Le(t,e.type);t!==n&&(ca(Pi,e),ca(_i,n))}function zi(e){Pi.current===e&&(ua(_i),ua(Pi))}var Mi={current:0};function Fi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))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 Li(e,t){return{responder:e,props:t}}var Di=X.ReactCurrentDispatcher,ji=X.ReactCurrentBatchConfig,Ui=0,Vi=null,Wi=null,Bi=null,$i=!1;function Qi(){throw Error(l(321))}function qi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lr(e[n],t[n]))return!1;return!0}function Hi(e,t,n,r,a,i){if(Ui=i,Vi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Di.current=null===e||null===e.memoizedState?gl:vl,e=n(r,a),t.expirationTime===Ui){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(l(301));i+=1,Bi=Wi=null,t.updateQueue=null,Di.current=yl,e=n(r,a)}while(t.expirationTime===Ui)}if(Di.current=ml,t=null!==Wi&&null!==Wi.next,Ui=0,Bi=Wi=Vi=null,$i=!1,t)throw Error(l(300));return e}function Ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Bi?Vi.memoizedState=Bi=e:Bi=Bi.next=e,Bi}function Yi(){if(null===Wi){var e=Vi.alternate;e=null!==e?e.memoizedState:null}else e=Wi.next;var t=null===Bi?Vi.memoizedState:Bi.next;if(null!==t)Bi=t,Wi=e;else{if(null===e)throw Error(l(310));e={memoizedState:(Wi=e).memoizedState,baseState:Wi.baseState,baseQueue:Wi.baseQueue,queue:Wi.queue,next:null},null===Bi?Vi.memoizedState=Bi=e:Bi=Bi.next=e}return Bi}function Xi(e,t){return"function"==typeof t?t(e):t}function Gi(e){var t=Yi(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=Wi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var u=o=i=null,c=a;do{var s=c.expirationTime;if(s<Ui){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(o=u=f,i=r):u=u.next=f,s>Vi.expirationTime&&(Vi.expirationTime=s,lu(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),iu(s,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==a);null===u?i=r:u.next=o,Lr(r,t.memoizedState)||(Nl=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Yi(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);Lr(i,t.memoizedState)||(Nl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ji(e){var t=Ki();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=hl.bind(null,Vi,e),[t.memoizedState,e]}function el(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Vi.updateQueue)?(t={lastEffect:null},Vi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function tl(){return Yi().memoizedState}function nl(e,t,n,r){var a=Ki();Vi.effectTag|=e,a.memoizedState=el(1|t,n,void 0,void 0===r?null:r)}function rl(e,t,n,r){var a=Yi();r=void 0===r?null:r;var i=void 0;if(null!==Wi){var l=Wi.memoizedState;if(i=l.destroy,null!==r&&qi(r,l.deps))return void el(t,n,i,r)}Vi.effectTag|=e,a.memoizedState=el(1|t,n,i,r)}function al(e,t){return nl(516,4,e,t)}function il(e,t){return rl(516,4,e,t)}function ll(e,t){return rl(4,2,e,t)}function ol(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 ul(e,t,n){return n=null!=n?n.concat([e]):null,rl(4,2,ol.bind(null,t,e),n)}function cl(){}function sl(e,t){return Ki().memoizedState=[e,void 0===t?null:t],e}function fl(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dl(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pl(e,t,n){var r=Ua();Wa(98>r?98:r,(function(){e(!0)})),Wa(97<r?97:r,(function(){var r=ji.suspense;ji.suspense=void 0===t?null:t;try{e(!1),n()}finally{ji.suspense=r}}))}function hl(e,t,n){var r=qo(),a=di.suspense;a={expirationTime:r=Ho(r,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Vi||null!==i&&i===Vi)$i=!0,a.expirationTime=Ui,Vi.expirationTime=Ui;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,o=i(l,n);if(a.eagerReducer=i,a.eagerState=o,Lr(o,l))return}catch(e){}Ko(e,r)}}var ml={readContext:ri,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi,useResponder:Qi,useDeferredValue:Qi,useTransition:Qi},gl={readContext:ri,useCallback:sl,useContext:ri,useEffect:al,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,nl(4,2,ol.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=Ki();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ki();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=hl.bind(null,Vi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ki().memoizedState=e},useState:Ji,useDebugValue:cl,useResponder:Li,useDeferredValue:function(e,t){var n=Ji(e),r=n[0],a=n[1];return al((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{a(e)}finally{ji.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ji(!1),n=t[0];return t=t[1],[sl(pl.bind(null,t,e),[t,e]),n]}},vl={readContext:ri,useCallback:fl,useContext:ri,useEffect:il,useImperativeHandle:ul,useLayoutEffect:ll,useMemo:dl,useReducer:Gi,useRef:tl,useState:function(){return Gi(Xi)},useDebugValue:cl,useResponder:Li,useDeferredValue:function(e,t){var n=Gi(Xi),r=n[0],a=n[1];return il((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{a(e)}finally{ji.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Gi(Xi),n=t[0];return t=t[1],[fl(pl.bind(null,t,e),[t,e]),n]}},yl={readContext:ri,useCallback:fl,useContext:ri,useEffect:il,useImperativeHandle:ul,useLayoutEffect:ll,useMemo:dl,useReducer:Zi,useRef:tl,useState:function(){return Zi(Xi)},useDebugValue:cl,useResponder:Li,useDeferredValue:function(e,t){var n=Zi(Xi),r=n[0],a=n[1];return il((function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{a(e)}finally{ji.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zi(Xi),n=t[0];return t=t[1],[fl(pl.bind(null,t,e),[t,e]),n]}},bl=null,wl=null,kl=!1;function xl(e,t){var n=Cu(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 El(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 Cl(e){if(kl){var t=wl;if(t){var n=t;if(!El(e,t)){if(!(t=kn(n.nextSibling))||!El(e,t))return e.effectTag=-1025&e.effectTag|2,kl=!1,void(bl=e);xl(bl,n)}bl=e,wl=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,kl=!1,bl=e}}function Sl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;bl=e}function Tl(e){if(e!==bl)return!1;if(!kl)return Sl(e),kl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=wl;t;)xl(e,t),t=kn(t.nextSibling);if(Sl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wl=kn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wl=null}}else wl=bl?kn(e.stateNode.nextSibling):null;return!0}function _l(){wl=bl=null,kl=!1}var Pl=X.ReactCurrentOwner,Nl=!1;function Ol(e,t,n,r){t.child=null===e?Si(t,null,n,r):Ci(t,e.child,n,r)}function Rl(e,t,n,r,a){n=n.render;var i=t.ref;return ni(t,a),r=Hi(e,t,n,r,i,a),null===e||Nl?(t.effectTag|=1,Ol(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Hl(e,t,a))}function Il(e,t,n,r,a,i){if(null===e){var l=n.type;return"function"!=typeof l||Su(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_u(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,Al(e,t,l,r,a,i))}return l=e.child,a<i&&(a=l.memoizedProps,(n=null!==(n=n.compare)?n:jr)(a,r)&&e.ref===t.ref)?Hl(e,t,i):(t.effectTag|=1,(e=Tu(l,r)).ref=t.ref,e.return=t,t.child=e)}function Al(e,t,n,r,a,i){return null!==e&&jr(e.memoizedProps,r)&&e.ref===t.ref&&(Nl=!1,a<i)?(t.expirationTime=e.expirationTime,Hl(e,t,i)):Ml(e,t,n,r,i)}function zl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ml(e,t,n,r,a){var i=ma(n)?pa:fa.current;return i=ha(t,i),ni(t,a),n=Hi(e,t,n,r,i,a),null===e||Nl?(t.effectTag|=1,Ol(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Hl(e,t,a))}function Fl(e,t,n,r,a){if(ma(n)){var i=!0;ba(t)}else i=!1;if(ni(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),vi(t,n,r),bi(t,n,r,a),r=!0;else if(null===e){var l=t.stateNode,o=t.memoizedProps;l.props=o;var u=l.context,c=n.contextType;"object"==typeof c&&null!==c?c=ri(c):c=ha(t,c=ma(n)?pa:fa.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof l.getSnapshotBeforeUpdate;f||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==r||u!==c)&&yi(t,l,r,c),ai=!1;var d=t.memoizedState;l.state=d,si(t,r,l,a),u=t.memoizedState,o!==r||d!==u||da.current||ai?("function"==typeof s&&(hi(t,n,s,r),u=t.memoizedState),(o=ai||gi(t,n,o,r,d,u,c))?(f||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.effectTag|=4)):("function"==typeof l.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=c,r=o):("function"==typeof l.componentDidMount&&(t.effectTag|=4),r=!1)}else l=t.stateNode,li(e,t),o=t.memoizedProps,l.props=t.type===t.elementType?o:Ka(t.type,o),u=l.context,"object"==typeof(c=n.contextType)&&null!==c?c=ri(c):c=ha(t,c=ma(n)?pa:fa.current),(f="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||(o!==r||u!==c)&&yi(t,l,r,c),ai=!1,u=t.memoizedState,l.state=u,si(t,r,l,a),d=t.memoizedState,o!==r||u!==d||da.current||ai?("function"==typeof s&&(hi(t,n,s,r),d=t.memoizedState),(s=ai||gi(t,n,o,r,u,d,c))?(f||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,d,c),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof l.componentDidUpdate&&(t.effectTag|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=c,r=s):("function"!=typeof l.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof l.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ll(e,t,n,r,i,a)}function Ll(e,t,n,r,a,i){zl(e,t);var l=0!=(64&t.effectTag);if(!r&&!l)return a&&wa(t,n,!1),Hl(e,t,i);r=t.stateNode,Pl.current=t;var o=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&l?(t.child=Ci(t,e.child,null,i),t.child=Ci(t,null,o,i)):Ol(e,t,o,i),t.memoizedState=r.state,a&&wa(t,n,!0),t.child}function Dl(e){var t=e.stateNode;t.pendingContext?va(0,t.pendingContext,t.pendingContext!==t.context):t.context&&va(0,t.context,!1),Ri(e,t.containerInfo)}var jl,Ul,Vl,Wl={dehydrated:null,retryTime:0};function Bl(e,t,n){var r,a=t.mode,i=t.pendingProps,l=Mi.current,o=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&l)&&(null===e||null!==e.memoizedState)),r?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(l|=1),ca(Mi,1&l),null===e){if(void 0!==i.fallback&&Cl(t),o){if(o=i.fallback,(i=Pu(null,a,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=Pu(o,a,n,null)).return=t,i.sibling=n,t.memoizedState=Wl,t.child=i,n}return a=i.children,t.memoizedState=null,t.child=Si(t,null,a,n)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,o){if(i=i.fallback,(n=Tu(e,e.pendingProps)).return=t,0==(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(a=Tu(a,i)).return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=Wl,t.child=n,a}return n=Ci(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=Pu(null,a,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=Pu(o,a,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Wl,t.child=i,n}return t.memoizedState=null,t.child=Ci(t,e,i.children,n)}function $l(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ti(e.return,t)}function Ql(e,t,n,r,a,i){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:a,lastEffect:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailExpiration=0,l.tailMode=a,l.lastEffect=i)}function ql(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Ol(e,t,r.children,n),0!=(2&(r=Mi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$l(e,n);else if(19===e.tag)$l(e,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(ca(Mi,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Fi(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ql(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Fi(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ql(t,!0,n,null,i,t.lastEffect);break;case"together":Ql(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Hl(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&lu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Tu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Kl(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 Yl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ma(t.type)&&ga(),null;case 3:return Ii(),ua(da),ua(fa),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Tl(t)||(t.effectTag|=4),null;case 5:zi(t),n=Oi(Ni.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ul(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(l(166));return null}if(e=Oi(_i.current),Tl(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[Cn]=t,r[Sn]=o,i){case"iframe":case"object":case"embed":Ht("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Ht(Xe[e],r);break;case"source":Ht("error",r);break;case"img":case"image":case"link":Ht("error",r),Ht("load",r);break;case"form":Ht("reset",r),Ht("submit",r);break;case"details":Ht("toggle",r);break;case"input":Ee(r,o),Ht("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ht("invalid",r),un(n,"onChange");break;case"textarea":Re(r,o),Ht("invalid",r),un(n,"onChange")}for(var u in an(i,o),e=null,o)if(o.hasOwnProperty(u)){var c=o[u];"children"===u?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):C.hasOwnProperty(u)&&null!=c&&un(n,u)}switch(i){case"input":we(r),Te(r,o,!0);break;case"textarea":we(r),Ae(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Fe(i)),e===on?"script"===i?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(i,{is:r.is}):(e=u.createElement(i),"select"===i&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,i),e[Cn]=t,e[Sn]=r,jl(e,t),t.stateNode=e,u=ln(i,r),i){case"iframe":case"object":case"embed":Ht("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Ht(Xe[c],e);c=r;break;case"source":Ht("error",e),c=r;break;case"img":case"image":case"link":Ht("error",e),Ht("load",e),c=r;break;case"form":Ht("reset",e),Ht("submit",e),c=r;break;case"details":Ht("toggle",e),c=r;break;case"input":Ee(e,r),c=xe(e,r),Ht("invalid",e),un(n,"onChange");break;case"option":c=Pe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=a({},r,{value:void 0}),Ht("invalid",e),un(n,"onChange");break;case"textarea":Re(e,r),c=Oe(e,r),Ht("invalid",e),un(n,"onChange");break;default:c=r}an(i,c);var s=c;for(o in s)if(s.hasOwnProperty(o)){var f=s[o];"style"===o?nn(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&je(e,f):"children"===o?"string"==typeof f?("textarea"!==i||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(C.hasOwnProperty(o)?null!=f&&un(n,o):null!=f&&G(e,o,f,u))}switch(i){case"input":we(e),Te(e,r,!1);break;case"textarea":we(e),Ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ne(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}vn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Vl(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));n=Oi(Ni.current),Oi(_i.current),Tl(t)?(n=t.stateNode,r=t.memoizedProps,n[Cn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Cn]=t,t.stateNode=n)}return null;case 13:return ua(Mi),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Tl(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Mi.current)?_o===wo&&(_o=ko):(_o!==wo&&_o!==ko||(_o=xo),0!==Io&&null!==Co&&(Au(Co,To),zu(Co,Io)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ii(),null;case 10:return ei(t),null;case 17:return ma(t.type)&&ga(),null;case 19:if(ua(Mi),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(o=r.rendering)){if(i)Kl(r,!1);else if(_o!==wo||null!==e&&0!=(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=Fi(o))){for(t.effectTag|=64,Kl(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return ca(Mi,1&Mi.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=Fi(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Kl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*ja()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Kl(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=ja()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ja(),n.sibling=null,t=Mi.current,ca(Mi,i?1&t|2:1&t),n):null}throw Error(l(156,t.tag))}function Xl(e){switch(e.tag){case 1:ma(e.type)&&ga();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ii(),ua(da),ua(fa),0!=(64&(t=e.effectTag)))throw Error(l(285));return e.effectTag=-4097&t|64,e;case 5:return zi(e),null;case 13:return ua(Mi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ua(Mi),null;case 4:return Ii(),null;case 10:return ei(e),null;default:return null}}function Gl(e,t){return{value:e,source:t,stack:ve(t)}}jl=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}},Ul=function(e,t,n,r,i){var l=e.memoizedProps;if(l!==r){var o,u,c=t.stateNode;switch(Oi(_i.current),e=null,n){case"input":l=xe(c,l),r=xe(c,r),e=[];break;case"option":l=Pe(c,l),r=Pe(c,r),e=[];break;case"select":l=a({},l,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":l=Oe(c,l),r=Oe(c,r),e=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(o in an(n,r),n=null,l)if(!r.hasOwnProperty(o)&&l.hasOwnProperty(o)&&null!=l[o])if("style"===o)for(u in c=l[o])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(C.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in r){var s=r[o];if(c=null!=l?l[o]:void 0,r.hasOwnProperty(o)&&s!==c&&(null!=s||null!=c))if("style"===o)if(c){for(u in c)!c.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&c[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(o,n)),n=s;else"dangerouslySetInnerHTML"===o?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(e=e||[]).push(o,s)):"children"===o?c===s||"string"!=typeof s&&"number"!=typeof s||(e=e||[]).push(o,""+s):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(C.hasOwnProperty(o)?(null!=s&&un(i,o),e||c===s||(e=[])):(e=e||[]).push(o,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Vl=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Zl="function"==typeof WeakSet?WeakSet:Set;function Jl(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function eo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){yu(e,t)}else t.current=null}function to(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;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:Ka(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(l(163))}function no(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ro(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ao(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ro(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ka(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))));case 19:case 17:case 20:case 21:return}throw Error(l(163))}function io(e,t,n){switch("function"==typeof xu&&xu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Wa(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(e){yu(a,e)}}e=e.next}while(e!==r)}))}break;case 1:eo(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){yu(e,t)}}(t,n);break;case 5:eo(t);break;case 4:co(e,t,n)}}function lo(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,e.stateNode=null,null!==t&&lo(t)}function oo(e){return 5===e.tag||3===e.tag||4===e.tag}function uo(e){e:{for(var t=e.return;null!==t;){if(oo(t)){var n=t;break e}t=t.return}throw Error(l(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 Error(l(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||oo(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(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function co(e,t,n){for(var r,a,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(l(160));switch(r=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:r=r.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var u=e,c=i,s=n,f=c;;)if(io(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(u=r,c=i.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(io(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&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function so(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void no(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ce(n,r),ln(e,a),t=ln(e,r),a=0;a<i.length;a+=2){var o=i[a],u=i[a+1];"style"===o?nn(n,u):"dangerouslySetInnerHTML"===o?je(n,u):"children"===o?Ue(n,u):G(n,o,u,t)}switch(e){case"input":Se(n,r);break;case"textarea":Ie(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ne(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ne(n,!!r.multiple,r.defaultValue,!0):Ne(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(l(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,zo=ja()),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,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=tn("display",a));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;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void fo(t);case 19:return void fo(t);case 17:return}throw Error(l(163))}function fo(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zl),t.forEach((function(t){var r=wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var po="function"==typeof WeakMap?WeakMap:Map;function ho(e,t,n){(n=oi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fo||(Fo=!0,Lo=r),Jl(e,t)},n}function mo(e,t,n){(n=oi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return Jl(e,t),r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Do?Do=new Set([this]):Do.add(this),Jl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var go,vo=Math.ceil,yo=X.ReactCurrentDispatcher,bo=X.ReactCurrentOwner,wo=0,ko=3,xo=4,Eo=0,Co=null,So=null,To=0,_o=wo,Po=null,No=1073741823,Oo=1073741823,Ro=null,Io=0,Ao=!1,zo=0,Mo=null,Fo=!1,Lo=null,Do=null,jo=!1,Uo=null,Vo=90,Wo=null,Bo=0,$o=null,Qo=0;function qo(){return 0!=(48&Eo)?1073741821-(ja()/10|0):0!==Qo?Qo:Qo=1073741821-(ja()/10|0)}function Ho(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Ua();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Eo))return To;if(null!==n)e=Ha(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Ha(e,150,100);break;case 97:case 96:e=Ha(e,5e3,250);break;case 95:e=2;break;default:throw Error(l(326))}return null!==Co&&e===To&&--e,e}function Ko(e,t){if(50<Bo)throw Bo=0,$o=null,Error(l(185));if(null!==(e=Yo(e,t))){var n=Ua();1073741823===t?0!=(8&Eo)&&0==(48&Eo)?Jo(e):(Go(e),0===Eo&&Qa()):Go(e),0==(4&Eo)||98!==n&&99!==n||(null===Wo?Wo=new Map([[e,t]]):(void 0===(n=Wo.get(e))||n>t)&&Wo.set(e,t))}}function Yo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=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){a=r.stateNode;break}r=r.return}return null!==a&&(Co===a&&(lu(t),_o===xo&&Au(a,To)),zu(a,t)),a}function Xo(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Iu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Go(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=$a(Jo.bind(null,e));else{var t=Xo(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=qo();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 a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Ia&&Ea(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?$a(Jo.bind(null,e)):Ba(r,Zo.bind(null,e),{timeout:10*(1073741821-t)-ja()}),e.callbackNode=t}}}function Zo(e,t){if(Qo=0,t)return Mu(e,t=qo()),Go(e),null;var n=Xo(e);if(0!==n){if(t=e.callbackNode,0!=(48&Eo))throw Error(l(327));if(mu(),e===Co&&n===To||nu(e,n),null!==So){var r=Eo;Eo|=16;for(var a=au();;)try{uu();break}catch(t){ru(e,t)}if(Ja(),Eo=r,yo.current=a,1===_o)throw t=Po,nu(e,n),Au(e,n),Go(e),t;if(null===So)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=_o,Co=null,r){case wo:case 1:throw Error(l(345));case 2:Mu(e,2<n?2:n);break;case ko:if(Au(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(a)),1073741823===No&&10<(a=zo+500-ja())){if(Ao){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nu(e,n);break}}if(0!==(i=Xo(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(du.bind(null,e),a);break}du(e);break;case xo:if(Au(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(a)),Ao&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(a=Xo(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Oo?r=10*(1073741821-Oo)-ja():1073741823===No?r=0:(r=10*(1073741821-No)-5e3,0>(r=(a=ja())-r)&&(r=0),(n=10*(1073741821-n)-a)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vo(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(du.bind(null,e),r);break}du(e);break;case 5:if(1073741823!==No&&null!==Ro){i=No;var o=Ro;if(0>=(r=0|o.busyMinDurationMs)?r=0:(a=0|o.busyDelayMs,r=(i=ja()-(10*(1073741821-i)-(0|o.timeoutMs||5e3)))<=a?0:a+r-i),10<r){Au(e,n),e.timeoutHandle=bn(du.bind(null,e),r);break}}du(e);break;default:throw Error(l(329))}if(Go(e),e.callbackNode===t)return Zo.bind(null,e)}}return null}function Jo(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Eo))throw Error(l(327));if(mu(),e===Co&&t===To||nu(e,t),null!==So){var n=Eo;Eo|=16;for(var r=au();;)try{ou();break}catch(t){ru(e,t)}if(Ja(),Eo=n,yo.current=r,1===_o)throw n=Po,nu(e,t),Au(e,t),Go(e),n;if(null!==So)throw Error(l(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Co=null,du(e),Go(e)}return null}function eu(e,t){var n=Eo;Eo|=1;try{return e(t)}finally{0===(Eo=n)&&Qa()}}function tu(e,t){var n=Eo;Eo&=-2,Eo|=8;try{return e(t)}finally{0===(Eo=n)&&Qa()}}function nu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==So)for(n=So.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ga();break;case 3:Ii(),ua(da),ua(fa);break;case 5:zi(r);break;case 4:Ii();break;case 13:case 19:ua(Mi);break;case 10:ei(r)}n=n.return}Co=e,So=Tu(e.current,null),To=t,_o=wo,Po=null,Oo=No=1073741823,Ro=null,Io=0,Ao=!1}function ru(e,t){for(;;){try{if(Ja(),Di.current=ml,$i)for(var n=Vi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ui=0,Bi=Wi=Vi=null,$i=!1,null===So||null===So.return)return _o=1,Po=t,So=null;e:{var a=e,i=So.return,l=So,o=t;if(t=To,l.effectTag|=2048,l.firstEffect=l.lastEffect=null,null!==o&&"object"==typeof o&&"function"==typeof o.then){var u=o;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.expirationTime=c.expirationTime):(l.updateQueue=null,l.memoizedState=null)}var s=0!=(1&Mi.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!s)}}if(d){var m=f.updateQueue;if(null===m){var g=new Set;g.add(u),f.updateQueue=g}else m.add(u);if(0==(2&f.mode)){if(f.effectTag|=64,l.effectTag&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=oi(1073741823,null);v.tag=2,ui(l,v)}l.expirationTime=1073741823;break e}o=void 0,l=t;var y=a.pingCache;if(null===y?(y=a.pingCache=new po,o=new Set,y.set(u,o)):void 0===(o=y.get(u))&&(o=new Set,y.set(u,o)),!o.has(l)){o.add(l);var b=bu.bind(null,a,u,l);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);o=Error((ge(l.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."+ve(l))}5!==_o&&(_o=2),o=Gl(o,l),f=i;do{switch(f.tag){case 3:u=o,f.effectTag|=4096,f.expirationTime=t,ci(f,ho(f,u,t));break e;case 1:u=o;var w=f.type,k=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Do||!Do.has(k)))){f.effectTag|=4096,f.expirationTime=t,ci(f,mo(f,u,t));break e}}f=f.return}while(null!==f)}So=su(So)}catch(e){t=e;continue}break}}function au(){var e=yo.current;return yo.current=ml,null===e?ml:e}function iu(e,t){e<No&&2<e&&(No=e),null!==t&&e<Oo&&2<e&&(Oo=e,Ro=t)}function lu(e){e>Io&&(Io=e)}function ou(){for(;null!==So;)So=cu(So)}function uu(){for(;null!==So&&!Aa();)So=cu(So)}function cu(e){var t=go(e.alternate,e,To);return e.memoizedProps=e.pendingProps,null===t&&(t=su(e)),bo.current=null,t}function su(e){So=e;do{var t=So.alternate;if(e=So.return,0==(2048&So.effectTag)){if(t=Yl(t,So,To),1===To||1!==So.childExpirationTime){for(var n=0,r=So.child;null!==r;){var a=r.expirationTime,i=r.childExpirationTime;a>n&&(n=a),i>n&&(n=i),r=r.sibling}So.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=So.firstEffect),null!==So.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=So.firstEffect),e.lastEffect=So.lastEffect),1<So.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=So:e.firstEffect=So,e.lastEffect=So))}else{if(null!==(t=Xl(So)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=So.sibling))return t;So=e}while(null!==So);return _o===wo&&(_o=5),null}function fu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function du(e){var t=Ua();return Wa(99,pu.bind(null,e,t)),null}function pu(e,t){do{mu()}while(null!==Uo);if(0!=(48&Eo))throw Error(l(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=fu(n);if(e.firstPendingTime=a,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===Co&&(So=Co=null,To=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var i=Eo;Eo|=32,bo.current=null,mn=qt;var o=pn();if(hn(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{var c=(u=(u=o.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var s=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(e){u=null;break e}var d=0,p=-1,h=-1,m=0,g=0,v=o,y=null;t:for(;;){for(var b;v!==u||0!==s&&3!==v.nodeType||(p=d+s),v!==f||0!==c&&3!==v.nodeType||(h=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===o)break t;if(y===u&&++m===s&&(p=d),y===f&&++g===c&&(h=d),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;gn={activeElementDetached:null,focusedElem:o,selectionRange:u},qt=!1,Mo=a;do{try{hu()}catch(e){if(null===Mo)throw Error(l(330));yu(Mo,e),Mo=Mo.nextEffect}}while(null!==Mo);Mo=a;do{try{for(o=e,u=t;null!==Mo;){var w=Mo.effectTag;if(16&w&&Ue(Mo.stateNode,""),128&w){var k=Mo.alternate;if(null!==k){var x=k.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:uo(Mo),Mo.effectTag&=-3;break;case 6:uo(Mo),Mo.effectTag&=-3,so(Mo.alternate,Mo);break;case 1024:Mo.effectTag&=-1025;break;case 1028:Mo.effectTag&=-1025,so(Mo.alternate,Mo);break;case 4:so(Mo.alternate,Mo);break;case 8:co(o,s=Mo,u),lo(s)}Mo=Mo.nextEffect}}catch(e){if(null===Mo)throw Error(l(330));yu(Mo,e),Mo=Mo.nextEffect}}while(null!==Mo);if(x=gn,k=pn(),w=x.focusedElem,u=x.selectionRange,k!==w&&w&&w.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))))}(w.ownerDocument.documentElement,w)){null!==u&&hn(w)&&(k=u.start,void 0===(x=u.end)&&(x=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(x,w.value.length)):(x=(k=w.ownerDocument||document)&&k.defaultView||window).getSelection&&(x=x.getSelection(),s=w.textContent.length,o=Math.min(u.start,s),u=void 0===u.end?o:Math.min(u.end,s),!x.extend&&o>u&&(s=u,u=o,o=s),s=dn(w,o),f=dn(w,u),s&&f&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((k=k.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),o>u?(x.addRange(k),x.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),x.addRange(k))))),k=[];for(x=w;x=x.parentNode;)1===x.nodeType&&k.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<k.length;w++)(x=k[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}qt=!!mn,gn=mn=null,e.current=n,Mo=a;do{try{for(w=e;null!==Mo;){var E=Mo.effectTag;if(36&E&&ao(w,Mo.alternate,Mo),128&E){k=void 0;var C=Mo.ref;if(null!==C){var S=Mo.stateNode;switch(Mo.tag){case 5:k=S;break;default:k=S}"function"==typeof C?C(k):C.current=k}}Mo=Mo.nextEffect}}catch(e){if(null===Mo)throw Error(l(330));yu(Mo,e),Mo=Mo.nextEffect}}while(null!==Mo);Mo=null,za(),Eo=i}else e.current=n;if(jo)jo=!1,Uo=e,Vo=t;else for(Mo=a;null!==Mo;)t=Mo.nextEffect,Mo.nextEffect=null,Mo=t;if(0===(t=e.firstPendingTime)&&(Do=null),1073741823===t?e===$o?Bo++:(Bo=0,$o=e):Bo=0,"function"==typeof ku&&ku(n.stateNode,r),Go(e),Fo)throw Fo=!1,e=Lo,Lo=null,e;return 0!=(8&Eo)||Qa(),null}function hu(){for(;null!==Mo;){var e=Mo.effectTag;0!=(256&e)&&to(Mo.alternate,Mo),0==(512&e)||jo||(jo=!0,Ba(97,(function(){return mu(),null}))),Mo=Mo.nextEffect}}function mu(){if(90!==Vo){var e=97<Vo?97:Vo;return Vo=90,Wa(e,gu)}}function gu(){if(null===Uo)return!1;var e=Uo;if(Uo=null,0!=(48&Eo))throw Error(l(331));var t=Eo;for(Eo|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:no(5,n),ro(5,n)}}catch(t){if(null===e)throw Error(l(330));yu(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Eo=t,Qa(),!0}function vu(e,t,n){ui(e,t=ho(e,t=Gl(n,t),1073741823)),null!==(e=Yo(e,1073741823))&&Go(e)}function yu(e,t){if(3===e.tag)vu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){vu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Do||!Do.has(r))){ui(n,e=mo(n,e=Gl(t,e),1073741823)),null!==(n=Yo(n,1073741823))&&Go(n);break}}n=n.return}}function bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Co===e&&To===n?_o===xo||_o===ko&&1073741823===No&&ja()-zo<500?nu(e,To):Ao=!0:Iu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Go(e)))}function wu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ho(t=qo(),e,null)),null!==(e=Yo(e,t))&&Go(e)}go=function(e,t,n){var r=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||da.current)Nl=!0;else{if(r<n){switch(Nl=!1,t.tag){case 3:Dl(t),_l();break;case 5:if(Ai(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ma(t.type)&&ba(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,a=t.type._context,ca(Ya,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Bl(e,t,n):(ca(Mi,1&Mi.current),null!==(t=Hl(e,t,n))?t.sibling:null);ca(Mi,1&Mi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return ql(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),ca(Mi,Mi.current),!r)return null}return Hl(e,t,n)}Nl=!1}}else Nl=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=ha(t,fa.current),ni(t,n),a=Hi(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ma(r)){var i=!0;ba(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ii(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&hi(t,r,o,e),a.updater=mi,t.stateNode=a,a._reactInternalFiber=t,bi(t,r,e,n),t=Ll(null,t,r,!0,i,n)}else t.tag=0,Ol(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),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)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return Su(e)?1:0;if(null!=e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(a),e=Ka(a,e),i){case 0:t=Ml(null,t,a,e,n);break e;case 1:t=Fl(null,t,a,e,n);break e;case 11:t=Rl(null,t,a,e,n);break e;case 14:t=Il(null,t,a,Ka(a.type,e),r,n);break e}throw Error(l(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ml(e,t,r,a=t.elementType===r?a:Ka(r,a),n);case 1:return r=t.type,a=t.pendingProps,Fl(e,t,r,a=t.elementType===r?a:Ka(r,a),n);case 3:if(Dl(t),r=t.updateQueue,null===e||null===r)throw Error(l(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,li(e,t),si(t,r,null,n),(r=t.memoizedState.element)===a)_l(),t=Hl(e,t,n);else{if((a=t.stateNode.hydrate)&&(wl=kn(t.stateNode.containerInfo.firstChild),bl=t,a=kl=!0),a)for(n=Si(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ol(e,t,r,n),_l();t=t.child}return t;case 5:return Ai(t),null===e&&Cl(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,yn(r,a)?o=null:null!==i&&yn(r,i)&&(t.effectTag|=16),zl(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ol(e,t,o,n),t=t.child),t;case 6:return null===e&&Cl(t),null;case 13:return Bl(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ci(t,null,r,n):Ol(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Rl(e,t,r,a=t.elementType===r?a:Ka(r,a),n);case 7:return Ol(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ol(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value;var u=t.type._context;if(ca(Ya,u._currentValue),u._currentValue=i,null!==o)if(u=o.value,0===(i=Lr(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(o.children===a.children&&!da.current){t=Hl(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){o=u.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&i)){1===u.tag&&((s=oi(n,null)).tag=2,ui(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ti(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}s=s.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Ol(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(a=ri(a,i.unstable_observedBits)),t.effectTag|=1,Ol(e,t,r,n),t.child;case 14:return i=Ka(a=t.type,t.pendingProps),Il(e,t,a,i=Ka(a.type,i),r,n);case 15:return Al(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Ka(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ma(r)?(e=!0,ba(t)):e=!1,ni(t,n),vi(t,r,a),bi(t,r,a,n),Ll(null,t,r,!0,e,n);case 19:return ql(e,t,n)}throw Error(l(156,t.tag))};var ku=null,xu=null;function Eu(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=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Cu(e,t,n,r){return new Eu(e,t,n,r)}function Su(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tu(e,t){var n=e.alternate;return null===n?((n=Cu(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=0,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 _u(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)Su(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ne:return Pu(n.children,a,i,t);case oe:o=8,a|=7;break;case re:o=8,a|=1;break;case ae:return(e=Cu(12,n,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=i,e;case ce:return(e=Cu(13,n,t,a)).type=ce,e.elementType=ce,e.expirationTime=i,e;case se:return(e=Cu(19,n,t,a)).elementType=se,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:o=10;break e;case le:o=9;break e;case ue:o=11;break e;case fe:o=14;break e;case de:o=16,r=null;break e;case pe:o=22;break e}throw Error(l(130,null==e?e:typeof e,""))}return(t=Cu(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function Pu(e,t,n,r){return(e=Cu(7,e,r,t)).expirationTime=n,e}function Nu(e,t,n){return(e=Cu(6,e,null,t)).expirationTime=n,e}function Ou(e,t,n){return(t=Cu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ru(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=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Iu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Au(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 zu(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 Mu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Fu(e,t,n,r){var a=t.current,i=qo(),o=di.suspense;i=Ho(i,a,o);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(l(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ma(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(l(171))}if(1===n.tag){var c=n.type;if(ma(c)){n=ya(n,c,u);break e}}n=u}else n=sa;return null===t.context?t.context=n:t.pendingContext=n,(t=oi(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ui(a,t),Ko(a,i),i}function Lu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Du(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function ju(e,t){Du(e,t),(e=e.alternate)&&Du(e,t)}function Uu(e,t,n){var r=new Ru(e,t,n=null!=n&&!0===n.hydrate),a=Cu(3,null,null,2===t?7:1===t?3:0);r.current=a,a.stateNode=r,ii(a),e[Tn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Tt.forEach((function(e){ht(e,t,n)})),_t.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Vu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Wu(e,t,n,r,a){var i=n._reactRootContainer;if(i){var l=i._internalRoot;if("function"==typeof a){var o=a;a=function(){var e=Lu(l);o.call(e)}}Fu(t,l,e,a)}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 Uu(e,0,t?{hydrate:!0}:void 0)}(n,r),l=i._internalRoot,"function"==typeof a){var u=a;a=function(){var e=Lu(l);u.call(e)}}tu((function(){Fu(t,l,e,a)}))}return Lu(l)}function Bu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function $u(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vu(t))throw Error(l(200));return Bu(e,t,null,n)}Uu.prototype.render=function(e){Fu(e,this._internalRoot,null,null)},Uu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Fu(null,e,null,(function(){t[Tn]=null}))},mt=function(e){if(13===e.tag){var t=Ha(qo(),150,100);Ko(e,t),ju(e,t)}},gt=function(e){13===e.tag&&(Ko(e,3),ju(e,3))},vt=function(e){if(13===e.tag){var t=qo();Ko(e,t=Ho(t,e,null)),ju(e,t)}},P=function(e,t,n){switch(t){case"input":if(Se(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 a=On(r);if(!a)throw Error(l(90));ke(r),Se(r,a)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&Ne(e,!!n.multiple,t,!1)}},z=eu,M=function(e,t,n,r,a){var i=Eo;Eo|=4;try{return Wa(98,e.bind(null,t,n,r,a))}finally{0===(Eo=i)&&Qa()}},F=function(){0==(49&Eo)&&(function(){if(null!==Wo){var e=Wo;Wo=null,e.forEach((function(e,t){Mu(t,e),Go(t)})),Qa()}}(),mu())},L=function(e,t){var n=Eo;Eo|=2;try{return e(t)}finally{0===(Eo=n)&&Qa()}};var Qu,qu,Hu={Events:[Pn,Nn,On,T,E,Ln,function(e){at(e,Fn)},I,A,Gt,ot,mu,{current:!1}]};qu=(Qu={findFiberByHostInstance:_n,bundleType:0,version:"16.13.1",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);ku=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},xu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(a({},Qu,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return qu?qu(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,t.createPortal=$u,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Eo))throw Error(l(187));var n=Eo;Eo|=1;try{return Wa(99,e.bind(null,t))}finally{Eo=n,Qa()}},t.hydrate=function(e,t,n){if(!Vu(t))throw Error(l(200));return Wu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Vu(t))throw Error(l(200));return Wu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Vu(e))throw Error(l(40));return!!e._reactRootContainer&&(tu((function(){Wu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tn]=null}))})),!0)},t.unstable_batchedUpdates=eu,t.unstable_createPortal=function(e,t){return $u(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vu(n))throw Error(l(200));if(null==e||void 0===e._reactInternalFiber)throw Error(l(38));return Wu(e,t,n,!1,r)},t.version="16.13.1"},function(e,t,n){"use strict";e.exports=n(19)},function(e,t,n){"use strict";
/** @license React v0.19.1
* 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,a,i,l,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,s=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(s,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},a=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},l=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&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 g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var y=!1,b=null,w=-1,k=5,x=0;l=function(){return t.unstable_now()>=x},o=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"):k=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,C=E.port2;E.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+k;try{b(!0,e)?C.postMessage(null):(y=!1,b=null)}catch(e){throw C.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,C.postMessage(null))},a=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){m(w),w=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<P(a,t)))break e;e[r]=t,e[n]=a,n=r}}function T(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,l=e[i],o=i+1,u=e[o];if(void 0!==l&&0>P(l,n))void 0!==u&&0>P(u,l)?(e[r]=u,e[o]=n,r=o):(e[r]=l,e[i]=n,r=i);else{if(!(void 0!==u&&0>P(u,n)))break e;e[r]=u,e[o]=n,r=o}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],O=[],R=1,I=null,A=3,z=!1,M=!1,F=!1;function L(e){for(var t=T(O);null!==t;){if(null===t.callback)_(O);else{if(!(t.startTime<=e))break;_(O),t.sortIndex=t.expirationTime,S(N,t)}t=T(O)}}function D(e){if(F=!1,L(e),!M)if(null!==T(N))M=!0,r(j);else{var t=T(O);null!==t&&a(D,t.startTime-e)}}function j(e,n){M=!1,F&&(F=!1,i()),z=!0;var r=A;try{for(L(n),I=T(N);null!==I&&(!(I.expirationTime>n)||e&&!l());){var o=I.callback;if(null!==o){I.callback=null,A=I.priorityLevel;var u=o(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?I.callback=u:I===T(N)&&_(N),L(n)}else _(N);I=T(N)}if(null!==I)var c=!0;else{var s=T(O);null!==s&&a(D,s.startTime-n),c=!1}return c}finally{I=null,A=r,z=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||z||(M=!0,r(j))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return T(N)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,l){var o=t.unstable_now();if("object"==typeof l&&null!==l){var u=l.delay;u="number"==typeof u&&0<u?o+u:o,l="number"==typeof l.timeout?l.timeout:U(e)}else l=U(e),u=o;return e={id:R++,callback:n,priorityLevel:e,startTime:u,expirationTime:l=u+l,sortIndex:-1},u>o?(e.sortIndex=u,S(O,e),null===T(N)&&e===T(O)&&(F?i():F=!0,a(D,u-o))):(e.sortIndex=l,S(N,e),M||z||(M=!0,r(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=T(N);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<I.expirationTime||l()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e){e.exports=JSON.parse('{"id":"bcd7a3a9","name":"Rename it","version":"1.2.3","description":"Keep your Adobe XD files organized, batch rename layers and artboards.","summary":"Batch rename layers","releaseNotes":"Added param case, bug fixes.","keywords":["utility","productivity","rename","layers","automation","batch"],"languages":["en"],"website":"https://renameit.design","helpUrl":"https://renameit.design/xd","author":"Rodrigo Soares","icons":[{"width":24,"height":24,"path":"images/icon_24.png"},{"width":48,"height":48,"path":"images/icon_48.png"}],"host":{"app":"XD","minVersion":"13.0"},"uiEntryPoints":[{"type":"menu","label":"Rename It","menuItems":[{"type":"menu","label":"Rename Selected Layers","commandId":"renameCommand","shortcut":{"mac":"Ctrl+Alt+R","win":"Ctrl+Alt+R"}},{"type":"menu","label":"Find & Replace Selected Layers","commandId":"findReplaceCommand","shortcut":{"mac":"Ctrl+Option+Cmd+R","win":"Shift+Ctrl+Alt+R"}},{"type":"menu","label":"Settings","commandId":"settingsCommand"},{"type":"menu","label":"Donate","commandId":"donateCommand"}]}]}')},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(e.toString==r)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var t in e)if(n.call(e,t))return!1;return!0}return!1}},function(e,t,n){"use strict";
/*!
* is-whitespace <https://github.com/jonschlinkert/is-whitespace>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var r;e.exports=function(e){return"string"==typeof e&&(r||(r=new RegExp('^[\\s\t\n\v\f\r \u2028\u2029\ufeff"]+$'))).test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,[{key:"escapeRegExp",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"layer",value:function(e){var t=e.caseSensitive?new RegExp(this.escapeRegExp(e.findText),"g"):new RegExp(this.escapeRegExp(e.findText),"gi");return e.layerName.replace(t,e.replaceWith)}},{key:"match",value:function(e){if(e.findText.length<=0)return!1;var t=String(e.findText),n=e.layerName;return e.caseSensitive||(t=t.toLowerCase(),n=n.toLowerCase()),n.includes(t)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=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}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(36)),l=n(25),o=(r=l)&&r.__esModule?r:{default:r},u=n(9),c=n(8),s=n(10);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.allowTextCases,r=void 0===n||n,a=t.allowPageName,i=void 0===a||a,l=t.allowParent,o=void 0===l||l,u=t.allowSymbol,c=void 0===u||u,s=t.allowLayerStyle,d=void 0===s||s,p=t.allowChildLayer,h=void 0!==p&&p;f(this,e),this.allowTextCases=r,this.allowPageName=i,this.allowParent=o,this.allowSymbol=c,this.allowLayerStyle=d,this.allowChildLayer=h}return a(e,[{key:"shortcut",value:function(e){return new RegExp(e,"gi")}},{key:"paddy",value:function(e,t,n){var r=void 0!==n?n:"0",a=new Array(1+t).join(r);return(a+e).slice(-a.length)}},{key:"convertTitleCase",value:function(e){var t=(0,c.lowerCase)(e);return(0,o.default)(t)}},{key:"currentLayer",value:function(e,t){var n=e;return this.allowTextCases&&(n=(n=(n=(n=(n=(n=n.replace(this.shortcut("%\\*u%"),(0,u.upperCase)(t))).replace(this.shortcut("%\\*l%"),(0,c.lowerCase)(t))).replace(this.shortcut("%\\*t%"),this.convertTitleCase(t))).replace(this.shortcut("%\\*uf%"),(0,s.upperCaseFirst)(t))).replace(this.shortcut("%\\*c%"),i.camelCase(t))).replace(this.shortcut("%\\*pc%"),i.paramCase(t))),n=n.replace(/%\*/g,t),String(n)}},{key:"layer",value:function(e){var t=e.inputName,n=t.match(this.shortcut("%N")),r=t.match(/(?!%ar%)%A/gi),a=t.match(this.shortcut("%ar%")),i=this;if(null!=n){t=t.replace(/%n+/gi,(function(t){var n=t.length-1,r="N"==t.charAt(1)?e.currIdx:e.selectionCount-e.currIdx-1;return(r+=e.startsFrom)>999&&(1===n||2===n||3===n)?n=4:r>99&&(1===n||2===n)?n=3:r>9&&1==n&&(n=2),i.paddy(r,n)}))}var l="abcdefghijklmnopqrstuvwxyz".split(""),o=l.length;function u(t){var n=t.charAt(1),r="%ar%"===t?e.selectionCount-e.currIdx-1:e.currIdx,a=l[r%o];if(r>=o){var i=Math.floor(r/o);a=""+l[i-1]+a}return"A"===n?a.toUpperCase():a}return null!=a&&(t=t.replace(this.shortcut("%ar%"),u)),null!=r&&(t=t.replace(this.shortcut("%a"),u)),t=(t=(t=i.currentLayer(t,e.layerName)).replace(this.shortcut("%w"),e.width)).replace(this.shortcut("%h"),e.height),this.allowPageName&&(t=t.replace(this.shortcut("%p"),e.pageName)),this.allowParent&&(t=t.replace(this.shortcut("%o"),e.parentName)),this.allowSymbol&&(t=t.replace(this.shortcut("%s"),e.symbolName)),this.allowLayerStyle&&(t=t.replace(this.shortcut("%ls%"),e.layerStyle)),this.allowChildLayer&&(t=t.replace(this.shortcut("%ch%"),e.childLayer)),t}}]),e}();t.default=d},function(e,t,n){var r=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;e.exports=function(e){return l(e,r)},e.exports.toTitleCase=e.exports;var a=n(26).concat(n(27)).concat(n(28)).concat(r.source.replace(/(^\^\(|\)\$$)/g,"").split("|")).concat(["is"]),i=new RegExp("^("+a.join("|")+")$","i");function l(e,t){return e?e.replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,n,r){return n>0&&n+e.length!==r.length&&e.search(t)>-1&&":"!==r.charAt(n-2)&&("-"!==r.charAt(n+e.length)||"-"===r.charAt(n-1))&&r.charAt(n-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})):e}e.exports.toLaxTitleCase=function(e){return l(e,i)}},function(e,t){e.exports=["the","a","an","some"]},function(e,t){e.exports=["a","abaft","aboard","about","above","absent","across","afore","after","against","along","alongside","amid","amidst","among","amongst","an","apropos","apud","around","as","aside","astride","at","athwart","atop","barring","before","behind","below","beneath","beside","besides","between","beyond","but","by","circa","concerning","despite","down","during","except","excluding","failing","following","for","forenenst","from","given","in","including","inside","into","like","mid","midst","minus","modulo","near","next","notwithstanding","o'","of","off","on","onto","opposite","out","outside","over","pace","past","per","plus","pro","qua","regarding","round","sans","save","since","than","through","throughout","thru","thruout","till","times","to","toward","towards","under","underneath","unlike","until","unto","up","upon","versus","via","vice","vis-à-vis","with","within","without","worth"]},function(e,t){e.exports=["as","because","for","and","nor","but","or","yet","so"]},function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),l=[];function o(e){for(var t=-1,n=0;n<l.length;n++)if(l[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],a=0;a<e.length;a++){var i=e[a],u=t.base?i[0]+t.base:i[0],c=n[u]||0,s="".concat(u," ").concat(c);n[u]=c+1;var f=o(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(l[f].references++,l[f].updater(d)):l.push({identifier:s,updater:g(d,t),references:1}),r.push(s)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var l=i(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(t)}return t}var s,f=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function d(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,a);else{var i=document.createTextNode(a),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(i,l[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,a;if(t.singleton){var i=m++;n=h||(h=c(t)),r=d.bind(null,n,i,!1),a=d.bind(null,n,i,!0)}else n=c(t),r=p.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(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 a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=o(n[r]);l[a].references--}for(var i=u(e,t),c=0;c<n.length;c++){var s=o(n[c]);0===l[s].references&&(l[s].updater(),l.splice(s,1))}n=i}}}},function(e,t,n){(t=n(31)(!1)).push([e.i,'h1{padding-left:0;margin-left:0}hr+div{margin-top:16px}#keywordsSection{padding-top:24px;margin-left:-6px}.mt24,.aboutSection,.credits{margin-top:24px}.mt16{margin-top:16px}.mt8{margin-top:8px}h3{font-size:11px;color:#707070;font-weight:normal;letter-spacing:1px}.keywords{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:left;padding-top:8px}.keywordBtn{display:block;padding:0;margin:6px}.keywordBtn button{margin:0}.inputWrapper{display:flex;flex-direction:row;align-items:center}.inputWrapper input[type="text"]{flex:1 1}.inputWrapper span{flex-shrink:0;width:70px;text-align:left}.sequenceInput input{width:60px}#preview{margin-top:16px;color:#333;display:block;height:63px;overflow:hidden}#preview strong{font-weight:bold}#preview.noMatch{color:#f44b60}#preview .hide{display:none}#preview .show{display:block}#preview h3{margin-left:0}#preview .previewText{margin-top:8px;display:block;line-height:1.3em;overflow:hidden}.caseSesitiveWrapper{padding-top:8px}.caseSesitiveWrapper span{width:auto}.dropdown{position:relative;z-index:998;width:34px}.dropdown.opened .historyIcon{background-color:#e4e4e4;border-color:#c9c9c9}.historyIcon{background-color:#fafafa;border:#e4e4e4 1px solid;border-radius:3px;width:34px;height:24px}.flex{display:flex}.error{color:#f44b60;font-size:11px;visibility:hidden}.error.show{visibility:visible}.credits{display:flex;font-size:12px;line-height:1.3em}.credits span{color:#3695ef;margin-left:2px}\n',""]),e.exports=t},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 a=(l=r,o=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([a]).join("\n")}var l,o,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(a[l]=!0)}for(var o=0;o<e.length;o++){var u=[].concat(e[o]);r&&a[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(2),l=n.n(i),o=n(4),u=n(5),c=(n(13),n(1));class s extends a.a.Component{constructor(e){super(e),this.state={findValue:"",replaceValue:"",caseSensitive:!1,previewData:[],disableButton:!0,noMatch:""},this.findReplace=new o.FindReplace,this.isSubmiting=!1,this.onFindInputChange=this.onFindInputChange.bind(this),this.onSubmit=this.onSubmit.bind(this),this.onCancelClick=this.onCancelClick.bind(this),this.enterFunction=this.enterFunction.bind(this),Object(c.track)("pageview",{dp:"/find_replace"})}componentDidMount(){document.addEventListener("keydown",this.enterFunction,!1)}componentWillUnmount(){document.removeEventListener("keydown",this.enterFunction,!1)}doRename(e){const t={layerName:e.name,findText:this.state.findValue,replaceWith:this.state.replaceValue,caseSensitive:this.state.caseSensitive};return!!this.findReplace.match(t)&&this.findReplace.layer(t)}onFindInputChange(e){const t="find"===e.target.id;this.setState({findValue:t?e.target.value:this.state.findValue,replaceValue:t?this.state.replaceValue:e.target.value},()=>this.previewUpdate())}onCaseSensitiveChange(){this.setState({caseSensitive:!this.state.caseSensitive},()=>this.previewUpdate())}previewUpdate(){const e=[];let t=!0;this.props.selection.items.forEach(n=>{const r=this.doRename(n);r||l()(r)?(e.push(r),t=!0):t=!1}),this.setState({previewData:e},()=>{this.showNoMatch(t)})}enterFunction(e){13===e.keyCode&&this.onSubmit()}onSubmit(e){this.isSubmiting||(this.isSubmiting=!0,this.props.selection.items.forEach(e=>{const t=this.doRename(e);t&&(e.name=t)}),document.removeEventListener("keydown",this.enterFunction,!1),this.props.dialog.close(),Object(c.track)("event",{ec:"input",ea:"searchScope",el:"layers"}),Object(c.track)("event",{ec:"input",ea:"find",el:""+this.state.findValue}),Object(c.track)("event",{ec:"input",ea:"replace",el:""+this.state.replaceValue}))}onCancelClick(e){this.props.dialog.close()}showNoMatch(e){let t="",n=!1;e||l()(this.state.findValue)||(t="No match",n=!0),l()(this.state.findValue)&&(n=!0),this.setState({noMatch:t}),this.setState({disableButton:!!n||""})}render(){return a.a.createElement("form",{className:"findReplace",method:"dialog",style:{width:320}},a.a.createElement("h1",null,"Find & Replace Selected Layers"),a.a.createElement("hr",null),a.a.createElement("div",{className:"inputWrapper"},a.a.createElement("span",null,"Find"),a.a.createElement("input",{type:"text",id:"find",value:this.state.findValue,onChange:this.onFindInputChange})),a.a.createElement("div",{className:"inputWrapper"},a.a.createElement("span",null,"Replace"),a.a.createElement("input",{type:"text",id:"replace",value:this.state.replaceValue,onChange:this.onFindInputChange})),a.a.createElement("div",{className:"inputWrapper caseSesitiveWrapper"},a.a.createElement("span",null,"Case Sensitive"),a.a.createElement("input",{type:"checkbox",id:"case",defaultChecked:this.state.caseSensitive,ref:e=>e&&(e.onchange=()=>this.onCaseSensitiveChange(e))})),a.a.createElement(u.a,{data:this.state.previewData,noMatch:this.state.noMatch}),a.a.createElement("footer",null,a.a.createElement("button",{type:"submit","uxp-variant":"secondary",onClick:this.onCancelClick},"Cancel"),a.a.createElement("button",{type:"submit","uxp-variant":"cta",onClick:this.onSubmit,disabled:this.state.disableButton},"Rename")))}}t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r);class i extends a.a.Component{constructor(e){super(e),this.onOKClick=this.onOKClick.bind(this)}onOKClick(e){this.props.dialog.close()}render(){return a.a.createElement("form",{method:"dialog",style:{width:300}},a.a.createElement("h1",null,"Uh Oh!"),a.a.createElement("p",null,"You need to select at least one artboard or layer."),a.a.createElement("footer",{className:"mt24"},a.a.createElement("button",{type:"submit","uxp-variant":"cta",onClick:this.onOKClick},"Close")))}}t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(1);const l=n(12);class o extends a.a.Component{constructor(e){super(e),this.onAgreeClick=this.onAgreeClick.bind(this),this.onDisagreeClick=this.onDisagreeClick.bind(this)}async componentDidMount(){await Object(i.setAnalyticsFirstRun)()}async onAgreeClick(e){await Object(i.setAnalyticsEnabled)(!0),l.render(this.props.nextDialog,this.props.dialog)}async onDisagreeClick(e){await Object(i.setAnalyticsEnabled)(!1),l.render(this.props.nextDialog,this.props.dialog)}render(){return a.a.createElement("form",{method:"dialog",style:{width:350}},a.a.createElement("h1",null,"Analytics"),a.a.createElement("p",null,"Rename It uses Google Analytics to help improve the plugin. Click on 'Agree' to send diagnostics or 'Disagree' to disable analytics."),a.a.createElement("footer",{className:"mt24"},a.a.createElement("button",{type:"button","uxp-variant":"secondary",onClick:this.onDisagreeClick},"Disagree"),a.a.createElement("button",{type:"button","uxp-variant":"cta",onClick:this.onAgreeClick},"Agree")))}}t.default=o},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(1);const{shell:l}=n(7);class o extends a.a.Component{constructor(e){super(e),this.state={analytics:!0},this.onAnalyticsChange=this.onAnalyticsChange.bind(this)}async setAnalytics(){const e=await Object(i.analyticsEnabled)();this.setState({analytics:e})}async componentDidMount(){await this.setAnalytics()}async onAnalyticsChange(e){this.setState({analytics:e.target.checked}),await Object(i.setAnalyticsEnabled)(e.target.checked)}websiteClick(){l.openExternal("https://renameit.design/xd/")}donateClick(){l.openExternal("https://www.paypal.me/rodi01/5")}twitterClick(){l.openExternal("https://twitter.com/rodi01")}render(){return a.a.createElement("form",{method:"dialog",style:{width:350}},a.a.createElement("h1",null,"Settings"),a.a.createElement("hr",null),a.a.createElement("h3",{className:"mt16"},"ANALYTICS"),a.a.createElement("p",{className:"mt8"},"Rename It uses Google Analytics to help improve the plugin."),a.a.createElement("label",{className:"row",style:{alignItems:"center"}},a.a.createElement("input",{id:"analytics",type:"checkbox",checked:this.state.analytics,onChange:this.onAnalyticsChange}),a.a.createElement("span",null,"Enable Google Analytics")),a.a.createElement("section",{className:"aboutSection"},a.a.createElement("h3",null,"ABOUT"),a.a.createElement("div",{className:"flex"},a.a.createElement("button",{"uxp-variant":"action",onClick:()=>this.websiteClick()},"Website"),a.a.createElement("button",{"uxp-variant":"action",onClick:()=>this.donateClick()},"Donate")),a.a.createElement("p",{class:"credits"},"Rename It is maintained by Rodrigo Soares."," ",a.a.createElement("span",{onClick:()=>this.twitterClick()},"@rodi01"))),a.a.createElement("footer",{className:"mt24"},a.a.createElement("button",{type:"submit","uxp-variant":"cta"},"Done")))}}t.default=o},function(e,t,n){"use strict";n.r(t),n.d(t,"camelCaseTransform",(function(){return d})),n.d(t,"camelCaseTransformMerge",(function(){return p})),n.d(t,"camelCase",(function(){return h})),n.d(t,"capitalCaseTransform",(function(){return w})),n.d(t,"capitalCase",(function(){return k})),n.d(t,"constantCase",(function(){return E})),n.d(t,"dotCase",(function(){return C})),n.d(t,"headerCase",(function(){return S})),n.d(t,"noCase",(function(){return o})),n.d(t,"paramCase",(function(){return T})),n.d(t,"pascalCaseTransform",(function(){return c})),n.d(t,"pascalCaseTransformMerge",(function(){return s})),n.d(t,"pascalCase",(function(){return f})),n.d(t,"pathCase",(function(){return _})),n.d(t,"sentenceCaseTransform",(function(){return N})),n.d(t,"sentenceCase",(function(){return O})),n.d(t,"snakeCase",(function(){return R}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};var a=n(8),i=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l=/[^A-Z0-9]+/gi;function o(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?i:n,o=t.stripRegexp,c=void 0===o?l:o,s=t.transform,f=void 0===s?a.lowerCase:s,d=t.delimiter,p=void 0===d?" ":d,h=u(u(e,r,"$1\0$2"),c,"\0"),m=0,g=h.length;"\0"===h.charAt(m);)m++;for(;"\0"===h.charAt(g-1);)g--;return h.slice(m,g).split("\0").map(f).join(p)}function u(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function s(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function f(e,t){return void 0===t&&(t={}),o(e,r({delimiter:"",transform:c},t))}function d(e,t){return 0===t?e.toLowerCase():c(e,t)}function p(e,t){return 0===t?e.toLowerCase():s(e)}function h(e,t){return void 0===t&&(t={}),f(e,r({transform:d},t))}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function g(e){return e.toLowerCase()}var v=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],y=/[^A-Z0-9]+/gi;function b(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function w(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function k(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?v:n,a=t.stripRegexp,i=void 0===a?y:a,l=t.transform,o=void 0===l?g:l,u=t.delimiter,c=void 0===u?" ":u,s=b(b(e,r,"$1\0$2"),i,"\0"),f=0,d=s.length;"\0"===s.charAt(f);)f++;for(;"\0"===s.charAt(d-1);)d--;return s.slice(f,d).split("\0").map(o).join(c)}(e,m({delimiter:" ",transform:w},t))}var x=n(9);function E(e,t){return void 0===t&&(t={}),o(e,r({delimiter:"_",transform:x.upperCase},t))}function C(e,t){return void 0===t&&(t={}),o(e,r({delimiter:"."},t))}function S(e,t){return void 0===t&&(t={}),k(e,r({delimiter:"-"},t))}function T(e,t){return void 0===t&&(t={}),C(e,r({delimiter:"-"},t))}function _(e,t){return void 0===t&&(t={}),C(e,r({delimiter:"/"},t))}var P=n(10);function N(e,t){var n=e.toLowerCase();return 0===t?Object(P.upperCaseFirst)(n):n}function O(e,t){return void 0===t&&(t={}),o(e,r({delimiter:" ",transform:N},t))}function R(e,t){return void 0===t&&(t={}),C(e,r({delimiter:"_"},t))}},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(2),l=n.n(i),o=n(6),u=n.n(o),c=n(4),s=n(5);n(13);function f(e){let t=!1;for(let n=0;n<e.length;n++)if(e[n].children.length>0){t=!0;break}return t}function d(e){let t="";const n=e.children.length;return n>0&&(t=e.children.at(n-1).name),t}var p=n(1);class h extends a.a.Component{constructor(e){super(e),this.state={valueAttr:"",sequence:1,previewData:[],showError:"",disableButton:!0,disableChildBtn:!f(e.selection.items)},this.rename=new c.Rename,this.rename.allowPageName=!1,this.rename.allowChildLayer=!0,this.isSubmitting=!1,this.reorderedSelection=this.reorderSelection(),this.onNameInputChange=this.onNameInputChange.bind(this),this.onSequenceInputChange=this.onSequenceInputChange.bind(this),this.onSubmit=this.onSubmit.bind(this),this.onCancelClick=this.onCancelClick.bind(this),this.enterFunction=this.enterFunction.bind(this),this.onButtonClicked=this.onButtonClicked.bind(this),Object(p.track)("pageview",{dp:"/rename"})}componentDidMount(){document.addEventListener("keydown",this.enterFunction,!1)}componentWillUnmount(){document.removeEventListener("keydown",this.enterFunction,!1)}reorderSelection(){const e=this.props.selection.items[0].parent;if(this.props.selection.items.every(t=>t.parent.guid===e.guid)){const t=[];return e.children.forEach(e=>{this.props.selection.items.includes(e)&&t.push(e)}),t}return this.props.selection.items}doRename(e,t){const n={layerName:e.name,currIdx:t,width:e.globalBounds.width,height:e.globalBounds.height,selectionCount:this.props.selection.items.length,inputName:this.state.valueAttr,startsFrom:Number(this.state.sequence),parentName:e.parent.name,childLayer:d(e)};return this.rename.layer(n)}onNameInputChange(e){this.setState({valueAttr:e.target.value},()=>this.previewUpdate())}onSequenceInputChange(e){""==e.target.value||u()(e.target.value)?this.setState({sequence:e.target.value,showError:""},()=>this.previewUpdate()):this.setState({sequence:e.target.value,showError:"show"},()=>this.previewUpdate())}previewUpdate(){let e=[];this.reorderedSelection.forEach((t,n)=>{e.push(this.doRename(t,n))}),this.setState({previewData:e}),this.setState({disableButton:!(!l()(this.state.valueAttr)&&u()(this.state.sequence))||""})}enterFunction(e){13===e.keyCode&&(e.preventDefault(),this.onSubmit())}onSubmit(e){l()(this.state.valueAttr)||!u()(this.state.sequence)||this.isSubmiting||(this.isSubmiting=!0,this.reorderedSelection.forEach((e,t)=>{e.name=this.doRename(e,t)}),document.removeEventListener("keydown",this.enterFunction,!1),this.props.dialog.close(),Object(p.track)("event",{ec:"input",ea:"rename",el:String(this.state.valueAttr)}))}onCancelClick(e){this.props.dialog.close()}onButtonClicked(e){e.preventDefault(),this.setState({valueAttr:`${this.state.valueAttr}${e.target.getAttribute("data-char")}`},()=>this.previewUpdate()),Object(p.track)("event",{ec:"keywordButton",ea:""+e.target.getAttribute("id"),el:""+e.target.getAttribute("data-char")})}render(){const e=[{id:"currentLayer",char:"%*",text:"Layer Name"},{id:"layerWidth",char:"%w",text:"Layer Width"},{id:"layerHeight",char:"%h",text:"Layer Height"},{id:"sequenceAsc",char:"%N",text:"Num. Sequence ASC"},{id:"sequenceDesc",char:"%n",text:"Num. Sequence DESC"},{id:"sequenceAlpha",char:"%A",text:"Alphabet Sequence"},{id:"parentName",char:"%o",text:"Parent Name"},{id:"childLayer",char:"%ch%",text:"Child Layer",disabled:this.state.disableChildBtn}].map(e=>a.a.createElement("li",{key:e.id,className:"keywordBtn"},a.a.createElement("button",{"uxp-variant":"action",id:e.id,title:"Shortcut: "+e.char,onClick:this.onButtonClicked,"data-char":e.char,disabled:e.disabled},e.text)));return a.a.createElement("form",{method:"dialog",style:{width:350}},a.a.createElement("h1",null,"Rename Selected Layers"),a.a.createElement("hr",null),a.a.createElement("div",{className:"inputWrapper"},a.a.createElement("span",null,"Name"),a.a.createElement("input",{type:"text",id:"name",placeholder:"Item %n",value:this.state.valueAttr,onChange:this.onNameInputChange,ref:"name"})),a.a.createElement("div",{className:"inputWrapper sequenceInput"},a.a.createElement("span",null,"Start from"),a.a.createElement("input",{type:"number",id:"sequence",value:this.state.sequence,onChange:this.onSequenceInputChange}),a.a.createElement("span",{className:"error "+this.state.showError},"← Number is required")),a.a.createElement("section",{id:"keywordsSection"},a.a.createElement("h3",null,"KEYWORDS"),a.a.createElement("ul",{className:"keywords"},e)),a.a.createElement(s.a,{data:this.state.previewData}),a.a.createElement("footer",null,a.a.createElement("button",{type:"submit","uxp-variant":"secondary",onClick:this.onCancelClick},"Cancel"),a.a.createElement("button",{type:"submit","uxp-variant":"cta",disabled:this.state.disableButton,onClick:this.onSubmit},"Rename")))}}t.default=h}]);