{
    "html": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n    <script type=\"module\">\n      var Tk=Object.defineProperty;var Mk=(e,t,n)=>t in e?Tk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(Mk(e,typeof t!=\"symbol\"?t+\"\":t,n),n),zg=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)};var Y=(e,t,n)=>(zg(e,t,\"read from private field\"),n?n.call(e):t.get(e)),fe=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},X=(e,t,n,o)=>(zg(e,t,\"write to private field\"),o?o.call(e,n):t.set(e,n),n),Tl=(e,t,n,o)=>({set _(s){X(e,t,s,n)},get _(){return Y(e,t,o)}});(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type===\"childList\")for(const c of u.addedNodes)c.tagName===\"LINK\"&&c.rel===\"modulepreload\"&&o(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin===\"use-credentials\"?u.credentials=\"include\":s.crossOrigin===\"anonymous\"?u.credentials=\"omit\":u.credentials=\"same-origin\",u}function o(s){if(s.ep)return;s.ep=!0;const u=n(s);fetch(s.href,u)}})();var Bo=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{},Yt={},Nk={get exports(){return Yt},set exports(e){Yt=e}},Vu={},D={},Ok={get exports(){return D},set exports(e){D=e}},ue={};/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Ds=Symbol.for(\"react.element\"),Dk=Symbol.for(\"react.portal\"),Fk=Symbol.for(\"react.fragment\"),zk=Symbol.for(\"react.strict_mode\"),Uk=Symbol.for(\"react.profiler\"),Wk=Symbol.for(\"react.provider\"),Bk=Symbol.for(\"react.context\"),Hk=Symbol.for(\"react.forward_ref\"),$k=Symbol.for(\"react.suspense\"),Qk=Symbol.for(\"react.memo\"),Gk=Symbol.for(\"react.lazy\"),Ug=Symbol.iterator;function Vk(e){return e===null||typeof e!=\"object\"?null:(e=Ug&&e[Ug]||e[\"@@iterator\"],typeof e==\"function\"?e:null)}var a0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},c0=Object.assign,f0={};function co(e,t,n){this.props=e,this.context=t,this.refs=f0,this.updater=n||a0}co.prototype.isReactComponent={};co.prototype.setState=function(e,t){if(typeof e!=\"object\"&&typeof e!=\"function\"&&e!=null)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")};co.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")};function d0(){}d0.prototype=co.prototype;function ed(e,t,n){this.props=e,this.context=t,this.refs=f0,this.updater=n||a0}var td=ed.prototype=new d0;td.constructor=ed;c0(td,co.prototype);td.isPureReactComponent=!0;var Wg=Array.isArray,h0=Object.prototype.hasOwnProperty,nd={current:null},p0={key:!0,ref:!0,__self:!0,__source:!0};function g0(e,t,n){var o,s={},u=null,c=null;if(t!=null)for(o in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(u=\"\"+t.key),t)h0.call(t,o)&&!p0.hasOwnProperty(o)&&(s[o]=t[o]);var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){for(var h=Array(d),m=0;m<d;m++)h[m]=arguments[m+2];s.children=h}if(e&&e.defaultProps)for(o in d=e.defaultProps,d)s[o]===void 0&&(s[o]=d[o]);return{$$typeof:Ds,type:e,key:u,ref:c,props:s,_owner:nd.current}}function Kk(e,t){return{$$typeof:Ds,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rd(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===Ds}function Yk(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+e.replace(/[=:]/g,function(n){return t[n]})}var Bg=/\\/+/g;function Ic(e,t){return typeof e==\"object\"&&e!==null&&e.key!=null?Yk(\"\"+e.key):t.toString(36)}function Zl(e,t,n,o,s){var u=typeof e;(u===\"undefined\"||u===\"boolean\")&&(e=null);var c=!1;if(e===null)c=!0;else switch(u){case\"string\":case\"number\":c=!0;break;case\"object\":switch(e.$$typeof){case Ds:case Dk:c=!0}}if(c)return c=e,s=s(c),e=o===\"\"?\".\"+Ic(c,0):o,Wg(s)?(n=\"\",e!=null&&(n=e.replace(Bg,\"$&/\")+\"/\"),Zl(s,t,n,\"\",function(m){return m})):s!=null&&(rd(s)&&(s=Kk(s,n+(!s.key||c&&c.key===s.key?\"\":(\"\"+s.key).replace(Bg,\"$&/\")+\"/\")+e)),t.push(s)),1;if(c=0,o=o===\"\"?\".\":o+\":\",Wg(e))for(var d=0;d<e.length;d++){u=e[d];var h=o+Ic(u,d);c+=Zl(u,t,n,h,s)}else if(h=Vk(e),typeof h==\"function\")for(e=h.call(e),d=0;!(u=e.next()).done;)u=u.value,h=o+Ic(u,d++),c+=Zl(u,t,n,h,s);else if(u===\"object\")throw t=String(e),Error(\"Objects are not valid as a React child (found: \"+(t===\"[object Object]\"?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t)+\"). If you meant to render a collection of children, use an array instead.\");return c}function Ml(e,t,n){if(e==null)return e;var o=[],s=0;return Zl(e,o,\"\",\"\",function(u){return t.call(n,u,s++)}),o}function Xk(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ut={current:null},ql={transition:null},Zk={ReactCurrentDispatcher:ut,ReactCurrentBatchConfig:ql,ReactCurrentOwner:nd};function v0(){throw Error(\"act(...) is not supported in production builds of React.\")}ue.Children={map:Ml,forEach:function(e,t,n){Ml(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ml(e,function(){t++}),t},toArray:function(e){return Ml(e,function(t){return t})||[]},only:function(e){if(!rd(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}};ue.Component=co;ue.Fragment=Fk;ue.Profiler=Uk;ue.PureComponent=ed;ue.StrictMode=zk;ue.Suspense=$k;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zk;ue.act=v0;ue.cloneElement=function(e,t,n){if(e==null)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+e+\".\");var o=c0({},e.props),s=e.key,u=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,c=nd.current),t.key!==void 0&&(s=\"\"+t.key),e.type&&e.type.defaultProps)var d=e.type.defaultProps;for(h in t)h0.call(t,h)&&!p0.hasOwnProperty(h)&&(o[h]=t[h]===void 0&&d!==void 0?d[h]:t[h])}var h=arguments.length-2;if(h===1)o.children=n;else if(1<h){d=Array(h);for(var m=0;m<h;m++)d[m]=arguments[m+2];o.children=d}return{$$typeof:Ds,type:e.type,key:s,ref:u,props:o,_owner:c}};ue.createContext=function(e){return e={$$typeof:Bk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wk,_context:e},e.Consumer=e};ue.createElement=g0;ue.createFactory=function(e){var t=g0.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:Hk,render:e}};ue.isValidElement=rd;ue.lazy=function(e){return{$$typeof:Gk,_payload:{_status:-1,_result:e},_init:Xk}};ue.memo=function(e,t){return{$$typeof:Qk,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=ql.transition;ql.transition={};try{e()}finally{ql.transition=t}};ue.unstable_act=v0;ue.useCallback=function(e,t){return ut.current.useCallback(e,t)};ue.useContext=function(e){return ut.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return ut.current.useDeferredValue(e)};ue.useEffect=function(e,t){return ut.current.useEffect(e,t)};ue.useId=function(){return ut.current.useId()};ue.useImperativeHandle=function(e,t,n){return ut.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return ut.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return ut.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return ut.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return ut.current.useReducer(e,t,n)};ue.useRef=function(e){return ut.current.useRef(e)};ue.useState=function(e){return ut.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return ut.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return ut.current.useTransition()};ue.version=\"18.3.1\";(function(e){e.exports=ue})(Ok);/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var qk=D,Jk=Symbol.for(\"react.element\"),jk=Symbol.for(\"react.fragment\"),bk=Object.prototype.hasOwnProperty,e2=qk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t2={key:!0,ref:!0,__self:!0,__source:!0};function m0(e,t,n){var o,s={},u=null,c=null;n!==void 0&&(u=\"\"+n),t.key!==void 0&&(u=\"\"+t.key),t.ref!==void 0&&(c=t.ref);for(o in t)bk.call(t,o)&&!t2.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)s[o]===void 0&&(s[o]=t[o]);return{$$typeof:Jk,type:e,key:u,ref:c,props:s,_owner:e2.current}}Vu.Fragment=jk;Vu.jsx=m0;Vu.jsxs=m0;(function(e){e.exports=Vu})(Nk);class qr{constructor(){}static checkModernImpl(){return self.OffscreenCanvas!==void 0}static createInstance(t,n){if(qr.checkModernImpl())return new OffscreenCanvas(t,n);const s=document.createElement(\"canvas\");return s.width=t,s.height=n,s}}function Hg(e,t,n,o){const{width:s,height:u}=t,c=t.getContext(\"2d\");c.clearRect(0,0,s,u),n!==void 0&&o!==void 0?c.drawImage(e,0,0,n,o):c.drawImage(e,0,0)}function n2(e,t,n){const{width:o,height:s}=e,u=o/s,c=t,d=t/n,h=qr.createInstance(o,s);Hg(e,h),e.width=c,e.height=d,Hg(h,e,c,c/u)}function r2(e){const{resolution:t,aspectRatio:n,displayRef:o}=e;D.useEffect(()=>{const s=o.current;s!==null&&n2(s,t,n)},[t,n,o])}const y0=e=>{const{className:t=\"\",resolution:n,aspectRatio:o,onLoad:s,onCanvasCreate:u}=e,c=D.useRef(null);return r2({resolution:n,aspectRatio:o,displayRef:c}),D.useEffect(()=>{s(!1)},[s]),D.useEffect(()=>{const d=c.current;d!==null&&(u(d),s(!0))},[c,u]),Yt.jsx(\"canvas\",{ref:c,className:`canvas-display ${t}`})};var zi,Ui;class i2{constructor(t,n){fe(this,zi,void 0);fe(this,Ui,void 0);X(this,zi,t),X(this,Ui,n)}fix(t){const n=t/this.layout*this.resolution;return Math.round(n)}toInternal(t,n){const o=this.fix(t),s=this.fix(n);return{x:o,y:s}}get layout(){return Y(this,zi)}setLayout(t){X(this,zi,t)}get resolution(){return Y(this,Ui)}setResolution(t){X(this,Ui,t)}}zi=new WeakMap,Ui=new WeakMap;let Jr=class{prepareToUse(){}addStrokePoint(t,n,o,s){}endShapeStroke(t,n,o,s){}stopUsing(){}};var Wi,Bi;class w0 extends Jr{constructor(n,o,s=!1){super();fe(this,Wi,void 0);fe(this,Bi,void 0);this.IS_SQUARE=s,this.latestPoint=null,X(this,Wi,n),X(this,Bi,o)}addStrokePoint(n,o,s,u){this.latestPoint=`${n};${o}`,u.createDot(n,o,this.size,this.color,this.IS_SQUARE)}endShapeStroke(n,o,s,u){`${n};${o}`!==this.latestPoint&&u.createDot(n,o,this.size,this.color,this.IS_SQUARE),this.latestPoint=null}stopUsing(){this.latestPoint=null}get color(){return Y(this,Wi)}setColor(n){X(this,Wi,n)}get size(){return Y(this,Bi)}setSize(n){X(this,Bi,n)}}Wi=new WeakMap,Bi=new WeakMap;class S0 extends Jr{constructor(){super(...arguments),this.strokeIndex={}}addStrokePoint(t,n,o,s){if(this.strokeIndex[o]===void 0){const u=this.createStroke(t,n,s);this.strokeIndex[o]=u,u.onStop(()=>delete this.strokeIndex[o])}else{const u=this.strokeIndex[o];this.updateProps(u),u.addPoint(t,n)}}endShapeStroke(t,n,o,s){this.addStrokePoint(t,n,o,s);const u=this.strokeIndex[o];u!==void 0&&u.stop()}stopUsing(){const t=Object.getOwnPropertySymbols(this.strokeIndex);for(const n of t)this.strokeIndex[n].stop()}}class o2 extends S0{constructor(t){super(),this.props={width:t}}createStroke(t,n,o){return o.createClearPath(t,n,{width:this.size})}updateProps(t){const{width:n}=t.currentProps;this.size!==n&&t.createSection({width:this.size})}get size(){return this.props.width}setSize(t){this.props.width=t}}class id extends Jr{constructor(t){super(),this.exposeColor=t}addStrokePoint(t,n,o,s){const{width:u,pixelList:c,colorChanels:d,maxChanel:h}=s.getBinaryData(),m=id.calcIndex(t,n,u)*d,C=c[m+0],k=c[m+1],P=c[m+2],O=c[m+3],F=Math.round(O/h*100)/100,z=`rgba( ${C}, ${k}, ${P}, ${F} )`;this.exposeColor(z)}static calcIndex(t,n,o){return t+o*n}}var Hi,$i,l0;let nf=(l0=class extends Jr{constructor(n,o,s){super();fe(this,Hi,void 0);fe(this,$i,void 0);this.fillerQueue=o,this.filterColor=s,this.onfinish=null,this.onstarteachtask=null,X(this,$i,!1),X(this,Hi,this.filterColor(n)),this.fillerQueue.onfinish=u=>this.handleFinish(u),this.fillerQueue.onstarteachtask=async u=>await this.handleStartEachTask(u)}handleFinish(n){this.onfinish!==null&&this.onfinish(n)}async handleStartEachTask(n){this.onstarteachtask!==null&&await this.onstarteachtask(n)}async addStrokePoint(n,o,s,u){const{color:c,animatedFiller:d}=this;this.fillerQueue.enqueueTask({x:n,y:o,color:c,animatedFiller:d,scene:u})}stopUsing(){this.fillerQueue.stopTasks()}setColor(n){const o=this.filterColor(n);X(this,Hi,o)}get color(){return Y(this,Hi)}get isWorking(){return this.fillerQueue.isConsuming}get animatedFiller(){return Y(this,$i)}setAnimatedFiller(n){X(this,$i,n)}},Hi=new WeakMap,$i=new WeakMap,l0);class s2 extends Jr{}class l2 extends S0{constructor(t,n,o){super(),this.filterColor=o;const s=this.filterColor(t);this.props={color:s,width:n}}createStroke(t,n,o){return o.createStroke(t,n,{color:this.color,width:this.size})}updateProps(t){const{color:n,width:o}=t.currentProps;(this.color!==n||this.size!==o)&&t.createSection({color:this.color,width:this.size})}get color(){return this.props.color}setColor(t){const n=this.filterColor(t);this.props.color=n}get size(){return this.props.width}setSize(t){this.props.width=t}}var Qi,Gi,Vi,Ki;class u2 extends Jr{constructor(n,o,s,u){super();fe(this,Qi,void 0);fe(this,Gi,void 0);fe(this,Vi,void 0);fe(this,Ki,void 0);X(this,Qi,n),X(this,Gi,o),X(this,Vi,s),X(this,Ki,u)}calcParticleSize(n,o){const s=Math.min(n,o);return Math.round(s/200*this.particlesScale)}genNumInRange(n,o){const s=o-n;return n+Math.random()*s}getRandomPixelAround(n){const o=n.x-this.size,s=n.x+this.size,u=n.y-this.size,c=n.y+this.size,d=this.genNumInRange(o,s),h=this.genNumInRange(u,c);return{x:d,y:h}}addStrokePoint(n,o,s,u){const{width:c,height:d}=u,h=this.calcParticleSize(c,d),m={x:n,y:o};for(let C=0;C<this.particlesAmount;C++){const k=this.getRandomPixelAround(m);u.createDot(k.x,k.y,h,this.color,!0)}}get color(){return Y(this,Qi)}setColor(n){X(this,Qi,n)}get size(){return Y(this,Gi)}setSize(n){X(this,Gi,n)}get particlesAmount(){return Y(this,Vi)}setParticlesAmount(n){X(this,Vi,n)}get particlesScale(){return Y(this,Ki)}setParticlesScale(n){X(this,Ki,n)}}Qi=new WeakMap,Gi=new WeakMap,Vi=new WeakMap,Ki=new WeakMap;class a2 extends w0{constructor(t,n){super(t,n,!0)}}var _0=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},$g=(e,t,n)=>(_0(e,t,\"read from private field\"),n?n.call(e):t.get(e)),Qg=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},Ac=(e,t,n,o)=>(_0(e,t,\"write to private field\"),o?o.call(e,n):t.set(e,n),n),Jl,Zo;const x0=class extends Jr{constructor(e,t,n){super(),this.fadeColor=n,this.latestPixelIndex={},Qg(this,Jl,void 0),Qg(this,Zo,void 0),this.color=e,Ac(this,Zo,t)}addStrokePoint(e,t,n,o){const s=this.latestPixelIndex[n],u=[e,t];this.latestPixelIndex[n]=u,s!==void 0&&o.printLine(this.color,this.size,s,u)}endShapeStroke(e,t,n,o){const[s,u]=this.latestPixelIndex[n]??[];s===void 0||u===void 0||((s!==e||u!==t)&&o.printLine(this.color,this.size,[s,u],[e,t]),delete this.latestPixelIndex[n])}get color(){return $g(this,Jl)}set color(e){const t=this.fadeColor(e,x0.COLOR_FADING_PERCENTAGE);Ac(this,Jl,t)}setColor(e){this.color=e}get size(){return $g(this,Zo)}setSize(e){Ac(this,Zo,e)}};let E0=x0;Jl=new WeakMap;Zo=new WeakMap;E0.COLOR_FADING_PERCENTAGE=10;class c2{constructor(t){this.view=t}prepareToUse(){this.view.enableControl()}addStrokePoint(){}endShapeStroke(){}stopUsing(){this.view.unableControl()}}class f2{constructor(t,n,o){this.itemList=[],this.collector=new o(t,n,()=>this.itemList)}add(t){this.itemList.push(t),this.collector.collect()}get(t){return this.itemList[t]??null}delete(t){this.itemList.splice(t,1),this.itemList.length}get length(){return this.itemList.length}get maxLength(){return this.collector.maxLength}get total(){return this.collector.totalMemory}}const jl=class{constructor(e,t,n){this.ITEM_MEMORY=t,this.getMemory=n,this.maxLength=Math.floor(e/t)}deleteMemoryItem(e){this.memory.splice(e,1)}getRandomArea(){const{MEMORY_AREA_PROBABILITIES:e}=jl;let t=0;for(const d of e)t+=d;const n=jl.genRandomInRange(0,t),o=Math.round(this.memory.length/e.length);let[s,u]=[0,this.memory.length-1],c=0;for(let d=0;d<e.length;d++){const h=e[d];if(h===0)continue;const m=c+h;if(c<=n&&n<=m){s=d*o,u=Math.min(s+o,u);break}c=m}return[s,u]}deleteData(){const[e,t]=this.getRandomArea(),n=jl.genRandomInRange(e,t);this.deleteMemoryItem(n)}collect(){for(;this.memory.length>=this.maxLength;)this.deleteData()}get memory(){return this.getMemory()}get totalMemory(){return this.getMemory().length*this.ITEM_MEMORY}static genRandomInRange(e,t){const n=t-e,o=e+n*Math.random();return Math.round(o)}};let C0=jl;C0.MEMORY_AREA_PROBABILITIES=[0,1,1,0,1,1,0];class d2 extends Error{constructor(){super(\"History cannot go in this direction on the timeline\")}}const rf=class{constructor(e,t){this.availableMemory=e,this.snapShotUtil=t,this.onmove=null,this.snapShotIndex=-1,this.memory=this.setupMemory()}setupMemory(){const e=rf.calculateMemoryCap(this.availableMemory),t=this.snapShotUtil.referenceSize;return new f2(e,t,C0)}dispatchMove(){this.onmove!==null&&this.onmove(this.canUndo,this.canRedo)}async checkSameState(e){const{snapShotIndex:t}=this,n=this.memory.get(t);return n===null?!1:this.snapShotUtil.compare(n,e)}cleanFront(){const e=this.snapShotIndex+1;for(;e<this.memory.length;)this.memory.delete(e)}async add(e,t){const n=await this.snapShotUtil.compactURL(e);if(await this.checkSameState(e)){t&&this.dispatchMove();return}this.cleanFront(),this.memory.add(n),this.snapShotIndex=this.memory.length-1,this.dispatchMove()}updateIndex(e){const t=this.snapShotIndex+e,n=this.memory.get(t);if(n===null)throw new d2;return this.snapShotIndex=t,this.dispatchMove(),n}undo(){return this.updateIndex(-1)}redo(){return this.updateIndex(1)}get canUndo(){return this.snapShotIndex>0}get canRedo(){return this.snapShotIndex<this.memory.length-1}static calculateMemoryCap(e){return e/100*rf.MEMORY_PERCENTAGE}static clean(e){e.memory=e.setupMemory(),e.snapShotIndex=-1}};let od=rf;od.MEMORY_PERCENTAGE=25;var Wr;class h2{constructor(t,n){fe(this,Wr,void 0);this.getScene=n,this.onmove=null,this.history=t}async undo(){const t=this.history.undo();await this.scene.setImage(t)}async redo(){const t=this.history.redo();await this.scene.setImage(t)}async saveSnapShot(t){await this.scene.waitNextFrame();const n=this.scene.image;this.history.add(n,t)}async resetHistory(){od.clean(this.history),await this.saveSnapShot()}dispatchHistoryMove(t,n){this.onmove!==null&&this.onmove(t,n)}get scene(){return this.getScene()}setHistory(t){this.history=t}get history(){return Y(this,Wr)}set history(t){Y(this,Wr)!==void 0&&(Y(this,Wr).onmove=null),X(this,Wr,t),t.onmove=(n,o)=>{this.dispatchHistoryMove(n,o)},this.saveSnapShot()}}Wr=new WeakMap;const bl=class{constructor(e,t){this.scene=e,this.scene=e,this.historyService=new h2(t,()=>this.scene),this.historyService.onmove=(n,o)=>{bl.dispatchHistoryMove(this,n,o)}}async undo(){await this.historyService.undo()}async redo(){await this.historyService.redo()}async resetHistory(){await this.historyService.resetHistory()}setHistory(e){this.historyService.setHistory(e)}static dispatchHistoryMove(e,t,n){bl.onhistorymove!==null&&bl.onhistorymove(e,t,n)}};let mu=bl;mu.onhistorymove=null;class p2 extends mu{async clear(t){const{width:n,height:o}=this.scene,s=this.createEmptyImage(n,o,t);await this.scene.setImage(s),this.historyService.saveSnapShot()}get image(){return this.scene.image}async setImage(t){await this.scene.setImage(t),this.historyService.saveSnapShot()}}const eu=class extends p2{initFiller(e){e.onstarteachtask===null&&(e.onstarteachtask=async t=>{const{x:n,y:o,color:s}=t;await eu.dispatchFilling(this,!0,n,o,s),eu.dispatchHistoryMove(this,!1,!1)}),e.onfinish===null&&(e.onfinish=t=>{const{x:n,y:o,color:s}=t;eu.dispatchFilling(this,!1,n,o,s),this.historyService.saveSnapShot(!0)})}static async dispatchFilling(e,t,n,o,s){this.onfilling!==null&&await this.onfilling(e,t,n,o,s)}};let tu=eu;tu.onfilling=null;const k0=class extends tu{constructor(e,t,n){super(e,t),this.createEmptyImage=n,this.scene.onframereport=o=>{k0.dispatchFrameReport(this,o)}}stopStroke(e,t,n,o){o.endShapeStroke(e,t,n,this.scene),o instanceof nf||this.historyService.saveSnapShot()}use(e,t,n,o){o instanceof nf&&this.initFiller(o),o.addStrokePoint(e,t,n,this.scene)}static dispatchFrameReport(e,t){this.onframereport!==null&&this.onframereport(e,t)}static get onhistorymove(){return mu.onhistorymove}static set onhistorymove(e){mu.onhistorymove=e}static get onfilling(){return tu.onfilling}static set onfilling(e){tu.onfilling=e}};let ns=k0;ns.onframereport=null;var Yi,Xi;class g2{constructor(){fe(this,Yi,0);fe(this,Xi,0)}registFrame(t){Tl(this,Xi)._++,X(this,Yi,Y(this,Yi)+t)}reset(){X(this,Yi,0),X(this,Xi,0)}get lapse(){return Y(this,Yi)}get frames(){return Y(this,Xi)}}Yi=new WeakMap,Xi=new WeakMap;const P0=class{constructor(e,t){this.REPORT_TOLERANCE=e,this.getMoment=t,this.onreport=null,this.frameRate=new g2,this.previousMoment=t()}calcRate(){const e=this.getMoment(),t=e-this.previousMoment;return this.previousMoment=e,t}dispatchReport(e){!isFinite(e)||isNaN(e)||this.onreport!==null&&this.onreport(e)}notifyFrame(){const e=this.calcRate();if(this.frameRate.registFrame(e),this.frameRate.lapse>=this.REPORT_TOLERANCE){const t=this.fps;this.frameRate.reset(),this.dispatchReport(t)}}get fps(){const{lapse:e,frames:t}=this.frameRate,o=t/e*P0.SECOND;return Math.round(o)}};let R0=P0;R0.SECOND=1e3;function v2(e,t){const n=D.useMemo(()=>new i2(e,t),[]);return D.useEffect(()=>{n.setLayout(e),n.setResolution(t)},[n,e,t]),n}class Gg{constructor(t,n){this.x=t,this.y=n}}class m2{constructor(t,n){this.sectionManager=t,this.context=n}render(){for(const t of this.sectionManager.sectionList){const{path:n,props:o}=t;this.renderSection(n,o)}this.sectionManager.resetSections()}}class Vg{constructor(t,n){this.props=n,this.path=new Path2D,this.path.moveTo(t.x,t.y)}}var Br,pt;class y2{constructor(t,n){fe(this,Br,void 0);fe(this,pt,void 0);X(this,Br,t);const o=new Vg(t,n);X(this,pt,[o])}createSection(t){const n=new Vg(Y(this,Br),{...t});Y(this,pt).push(n)}joinPoint(t){const{currentPath:n}=this;X(this,Br,t),n.lineTo(t.x,t.y)}resetSections(){const t=Y(this,pt)[Y(this,pt).length-1];X(this,pt,[]),Y(this,pt).push(t)}get currentPath(){return Y(this,pt)[Y(this,pt).length-1].path}get currentProps(){return Y(this,pt)[Y(this,pt).length-1].props}get latestPoint(){return Y(this,Br)}get sectionList(){return Y(this,pt)}}Br=new WeakMap,pt=new WeakMap;var L0=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},w2=(e,t,n)=>(L0(e,t,\"read from private field\"),n?n.call(e):t.get(e)),S2=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},_2=(e,t,n,o)=>(L0(e,t,\"write to private field\"),o?o.call(e,n):t.set(e,n),n),nu;const I0=class{constructor(e){this.getAutoStopState=e,this.stopHandlerList=[],S2(this,nu,!1),this.runStopCheckerDaemon()}runStopCheckerDaemon(){const e=setInterval(()=>{this.getAutoStopState()&&(this.stop(),clearInterval(e))},I0.STOP_TIMEOUT)}dispatchStopEvent(){for(const e of this.stopHandlerList)e()}async stop(){this.isStopped||(_2(this,nu,!0),this.dispatchStopEvent())}onStop(e){this.stopHandlerList.push(e)}get isStopped(){return w2(this,nu)}};let A0=I0;nu=new WeakMap;A0.STOP_TIMEOUT=3e3;class T0 extends m2{constructor(t,n,o,s){const u=new Gg(t,n),c=new y2(u,{...o});super(c,s),this.pointsAmount=0,this.getAutoStopState=(()=>{let d=this.pointsAmount;return()=>{const h=d===this.pointsAmount;return d=this.pointsAmount,h}})(),this.stopService=new A0(()=>this.getAutoStopState())}addPoint(t,n){const o=new Gg(t,n);this.pointsAmount++,this.sectionManager.joinPoint(o)}createSection(t){this.sectionManager.createSection({...t})}onStop(t){this.stopService.onStop(()=>{this.clearRenderCache(),t()})}stop(){this.stopService.stop()}get currentProps(){return this.sectionManager.currentProps}}class M0 extends T0{constructor(t,n,o,s){super(t,n,o,s);const{lineWidth:u,strokeStyle:c,lineJoin:d,lineCap:h,globalCompositeOperation:m}=s;this.baseConfig={lineWidth:u,strokeStyle:c,lineJoin:d,lineCap:h,globalCompositeOperation:m}}renderSection(t,n){const{width:o}=n;this.context.globalCompositeOperation=\"destination-out\",this.context.lineWidth=o,this.context.lineJoin=\"round\",this.context.lineCap=\"round\",this.context.stroke(t),this.context.globalCompositeOperation=\"source-over\"}clearRenderCache(){const{lineWidth:t,strokeStyle:n,lineJoin:o,lineCap:s,globalCompositeOperation:u}=this.baseConfig;this.context.lineWidth=t,this.context.strokeStyle=n,this.context.lineJoin=o,this.context.lineCap=s,this.context.globalCompositeOperation=u}}class N0 extends T0{constructor(t,n,o,s){super(t,n,o,s);const{lineWidth:u,strokeStyle:c,lineJoin:d,lineCap:h}=s;this.baseConfig={lineWidth:u,strokeStyle:c,lineJoin:d,lineCap:h}}renderSection(t,n){const{color:o,width:s}=n;this.context.lineWidth=s,this.context.strokeStyle=o,this.context.lineJoin=\"round\",this.context.lineCap=\"round\",this.context.stroke(t)}clearRenderCache(){const{lineWidth:t,strokeStyle:n,lineJoin:o,lineCap:s}=this.baseConfig;this.context.lineWidth=t,this.context.strokeStyle=n,this.context.lineJoin=o,this.context.lineCap=s}}class x2{constructor(){this.onframereport=null,this.canvas=document.createElement(\"canvas\"),this.context=this.canvas.getContext(\"2d\")}createDot(){}printLine(){}createClearPath(){return new M0(0,0,{width:0},this.context)}createStroke(){return new N0(0,0,{color:\"\",width:0},this.context)}getBinaryData(){return{width:0,height:0,pixelList:new Uint8ClampedArray,colorChanels:0,maxChanel:0}}async waitNextFrame(){}get image(){return\"\"}async setImage(t){}get width(){return 0}get height(){return 0}setBinaryData(){}}class O0{constructor(t,n=new Path2D){this.color=t,this.path=n,this.wasDrawed=!1}tryDraw(){this.wasDrawed||(this.draw(this.path),this.wasDrawed=!0)}printBody(t,n){t.fillStyle=this.color,t.fill(n)}render(t){this.tryDraw(),this.printBody(t,this.path)}}class D0 extends O0{constructor(t,n,o,s){super(s),this.x=t,this.y=n,this.width=o}draw(t){const n=Math.round(this.width/2);t.arc(this.x,this.y,n,0,Math.PI*2)}}class E2 extends O0{constructor(t,n,o,s){super(t),this.end=null,this.width=n,this.init={x:o,y:s}}setEnd(t,n){this.end={x:t,y:n}}draw(t){this.end!==null&&(t.moveTo(this.init.x,this.init.y),t.lineTo(this.end.x,this.end.y))}printBody(t,n){t.strokeStyle=this.color,t.lineWidth=this.width,t.stroke(n)}}class C2 extends D0{draw(t){const n=Math.floor(this.width/2);t.rect(this.x-n,this.y-n,this.width,this.width)}}class k2{constructor(){this.cachedImage=null}renderImage(){if(this.cachedImage===null)return!1;const{width:t,height:n,pixelList:o}=this.cachedImage,s=new ImageData(o,t,n);return this.context.putImageData(s,0,0),this.cachedImage=null,!0}getBinaryData(){const{width:t,height:n}=this.canvas,{data:o}=this.context.getImageData(0,0,t,n);return{width:t,height:n,pixelList:o,colorChanels:4,maxChanel:255}}setBinaryData(t){this.cachedImage=t}}function sd(e,t){const n=document.createElement(\"canvas\");return n.width=e,n.height=t,n}class Kg{constructor(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}class P2{constructor(t,n){this.getContext=t,this.setContext=n,this.realContext=null,this.released=null;const o=sd(0,0);this.fakeContext=o.getContext(\"2d\")}caputreContext(){return this.released instanceof Kg?this.released.promise:(this.realContext===null&&(this.realContext=this.getContext()),this.setContext(this.fakeContext),this.released=new Kg,this.released.promise)}releaseContext(){var t;this.realContext!==null&&(this.setContext(this.realContext),(t=this.released)==null||t.resolve(),this.released=null)}get contextIsCaptured(){return this.realContext===null?!1:this.getContext()===this.fakeContext}}class ld extends k2{constructor(){super(),this.contextCapturer=new P2(()=>this.context,t=>this.context=t)}releaseContext(){this.contextCapturer.releaseContext()}get image(){return this.canvas.toDataURL()}async setImage(t){const{width:n,height:o}=this.canvas;this.context.clearRect(0,0,n,o);const s=await ld.createImage(t);this.context.drawImage(s,0,0),await this.contextCapturer.caputreContext()}get contextIsCaptured(){return this.contextCapturer.contextIsCaptured}static createImage(t){return new Promise(n=>{const o=new Image;o.onload=()=>n(o),o.src=t})}}class R2 extends ld{renderShapes(){for(const t of this.shapeList)t.render(this.context);this.shapeList=[]}}class L2 extends R2{createDot(t,n,o,s,u){const c=u?C2:D0,d=new c(t,n,o,s);this.shapeList.push(d)}}class I2 extends L2{printLine(t,n,o,s){const[u,c]=o,d=new E2(t,n,u,c),[h,m]=s;d.setEnd(h,m),this.shapeList.push(d)}}var Hr;class Yg{constructor(t){fe(this,Hr,void 0);this.Stroke=t,X(this,Hr,new Set),this.strokeIndex={}}genStroke(t,n,o,s){const u=new this.Stroke(t,n,o,s),c=Symbol();return Y(this,Hr).add(c),this.strokeIndex[c]=u,u.onStop(()=>{Y(this,Hr).delete(c),delete this.strokeIndex[c]}),u}getStroke(t){const n=this.strokeIndex[t];return n===void 0?null:n}get keyList(){return Y(this,Hr)}}Hr=new WeakMap;class A2 extends I2{constructor(){super(...arguments),this.strokeManager=new Yg(N0),this.clearPathManager=new Yg(M0)}createStroke(t,n,o){return this.strokeManager.genStroke(t,n,o,this.context)}createClearPath(t,n,o){return this.clearPathManager.genStroke(t,n,o,this.context)}cleanStrokes(){for(const t of this.strokeManager.keyList)this.strokeManager.getStroke(t).stop();for(const t of this.clearPathManager.keyList)this.clearPathManager.getStroke(t).stop()}renderStrokes(){for(const t of this.strokeManager.keyList)this.strokeManager.getStroke(t).render();for(const t of this.clearPathManager.keyList)this.clearPathManager.getStroke(t).render()}}class Xg extends A2{constructor(t){super(),this.canvas=t,this.fpsManager=new R0(500,()=>performance.now()),this.shapeList=[],this.nextFrameResolverList=[],this.context=t.getContext(\"2d\"),this.scene()}resolveNextFrame(){for(const t of this.nextFrameResolverList)t();this.nextFrameResolverList=[]}render(){if(this.contextIsCaptured&&this.cleanStrokes(),this.renderImage()){this.cleanStrokes();return}this.renderStrokes(),this.renderShapes(),this.contextIsCaptured&&this.releaseContext()}scene(){this.render(),this.resolveNextFrame(),this.fpsManager.notifyFrame(),requestAnimationFrame(()=>this.scene())}waitNextFrame(){let t;const n=new Promise(o=>t=o);return this.nextFrameResolverList.push(t),n}get width(){return this.canvas.width}get height(){return this.canvas.height}get onframereport(){return this.fpsManager.onreport}set onframereport(t){this.fpsManager.onreport=t}static createEmpty(){return new x2}}function T2(e,t,n){const o=sd(e,t),s=o.getContext(\"2d\");return n===void 0||(s.fillStyle=n,s.rect(0,0,e,t),s.fill()),o.toDataURL()}class M2{constructor(){this.index=new Map}set(t,n){this.index.set(t,n),this.index.set(n,t)}get(t){return this.index.get(t)}delete(t){return this.index.delete(t)}}class N2{constructor(t){this.checkAvailability=t,this.maxLinealAssigned=Number.MIN_SAFE_INTEGER}getFree(){let t;for(;t===void 0;){const n=++this.maxLinealAssigned;this.checkAvailability(n)&&(t=n)}return t}}class O2{constructor(){this.index=new M2,this.idAllocator=new N2(t=>this.index.get(t)===void 0)}toId(t){let n=this.index.get(t);return n===void 0&&(n=this.idAllocator.getFree(),this.index.set(t,n)),n}toSymbol(t){let n=this.index.get(t);return n===void 0&&(n=Symbol(),this.index.set(n,t)),n}unRef(t){this.index.delete(t)}}class D2{constructor(t){this.drawingServiceRef=t,this.symbolParser=new O2,this.tool=null,this.onhistorymove=null,this.onfilling=null,this.onframereport=null,this.setHistoryMoveListener(),this.setFillerListener(),this.setFrameReportListener()}async clear(t){await this.drawingService.clear(t)}async getImage(){return this.drawingService.image}async setImage(t){await this.drawingService.setImage(t)}setHistoryMoveListener(){ns.onhistorymove=(t,n,o)=>{t===this.drawingService&&this.onhistorymove!==null&&this.onhistorymove(n,o)}}setFillerListener(){ns.onfilling=async(t,n,o,s,u)=>{t===this.drawingService&&this.onfilling!==null&&await this.onfilling(n,o,s,u)}}setFrameReportListener(){ns.onframereport=(t,n)=>{t===this.drawingService&&this.onframereport!==null&&this.onframereport(n)}}async undo(){await this.drawingService.undo()}async redo(){await this.drawingService.redo()}touch(t,n,o,s){if(this.tool===null)return;const u=this.symbolParser.toSymbol(s);t===\"start\"||t===\"move\"?this.drawingService.use(n,o,u,this.tool):t===\"end\"&&this.drawingService.stopStroke(n,o,u,this.tool)}get drawingService(){return this.drawingServiceRef.current}setTool(t){this.tool=t}async resetHistory(){await this.drawingService.resetHistory()}}const F2=\"init-message-system\";class F0{constructor(t,n){this.codec=t,this.sendData=n,this.interfaceIndex={}}checkData(t){return t.startsWith(this.token)}activate(t){let n;const o=new Promise((s,u)=>{n={resolve:s,reject:u}});return this.interfaceIndex[t]=n,o}receive(t){const n=t.replace(this.token,\"\"),o=this.codec.toData(n),{id:s}=o,u=this.interfaceIndex[s];u!==void 0&&(delete this.interfaceIndex[s],this.makeChoice(o,u))}send(t){const n=this.codec.toJSON(t);this.sendData(this.token+n)}}class ud{constructor(t){this.fixStruct=t}toData(t){const n=JSON.parse(t);return this.fixStruct(n)}toJSON(t){return JSON.stringify(t)}}var On=(e=>(e[e.SUCCESS=0]=\"SUCCESS\",e[e.ERROR=1]=\"ERROR\",e))(On||{});class ad extends F0{constructor(t){const n=new ud(o=>ad.fixCodecStruct(o));super(n,t),this.token=\"_ANSWER_\"}makeChoice(t,n){const{res:o,status:s}=t;if(s===On.SUCCESS)n.resolve(o);else{const u=new Error(o);n.reject(u)}}static fixCodecStruct(t){const{id:n,res:o,status:s}=t;let u;return s===On.SUCCESS?u=On.SUCCESS:(On.ERROR,u=On.ERROR),{id:typeof n==\"number\"?n:NaN,res:o,status:u}}}class z2{constructor(){this.messageEventIndex={}}async dispatchMessage(t,n){const o=this.messageEventIndex[t];if(o!==void 0)return o(n)}onMessage(t,n){this.messageEventIndex[t]=n}}class U2 extends z2{constructor(t,n,o,s){super(),this.codec=t,this.receivedAck=n,this.answerAck=o,s(u=>this.receive(u))}receiveStandardMessage(t){const{id:n,target:o,arg:s}=this.codec.toData(t);this.receivedAck.send({id:n});const u=this.dispatchMessage(o,s);u.then(c=>{this.answerAck.send({status:On.SUCCESS,id:n,res:c})}),u.catch(c=>{const{message:d}=c,h=typeof d==\"string\"?d:void 0;this.answerAck.send({status:On.ERROR,id:n,res:h})})}receive(t){if(this.receivedAck.checkData(t)){this.receivedAck.receive(t);return}if(this.answerAck.checkData(t)){this.answerAck.receive(t);return}this.receiveStandardMessage(t)}}class cd extends F0{constructor(t){const n=new ud(o=>cd.fixCodecStruct(o));super(n,t),this.token=\"_RECEIVED_\"}makeChoice(t,n){n.resolve()}static fixCodecStruct(t){const{id:n}=t;return{id:typeof n==\"number\"?n:NaN}}}class W2{constructor(t,n,o,s){this.codec=t,this.receivedAck=n,this.answerAck=o,this.sendData=s,this.messageId=0,this.latestMessageReceived=null}createAckInterfaces(){const t=this.messageId++,n=this.receivedAck.activate(t),o=this.answerAck.activate(t);return[n,o,t]}async postMessage(t,n){const{latestMessageReceived:o}=this,[s,u,c]=this.createAckInterfaces();this.latestMessageReceived=s,o!==null&&await o;const d={id:c,target:t,arg:n},h=this.codec.toJSON(d);return this.sendData(h),u}}class fd{constructor(t,n){const o=new ud(c=>fd.fixCodecStruct(c)),s=new cd(n),u=new ad(n);this.sender=new W2(o,s,u,n),this.receiver=new U2(o,s,u,t)}postMessage(t,n){return this.sender.postMessage(t,n)}onMessage(t,n){this.receiver.onMessage(t,n)}static fixCodecStruct(t){const{id:n,target:o,arg:s}=t;return{id:typeof n==\"number\"?n:NaN,target:typeof o==\"string\"?o:\"\",arg:s}}}const qo=class extends fd{constructor(e,t){super(e,t),this.isNativePrepared=!1,this.sendRaw=t}prepareNativeSide(){this.isNativePrepared||(this.sendRaw(F2),this.isNativePrepared=!0)}static getInstance(e,t){return qo.instance===null&&(qo.instance=new qo(e,t)),qo.instance}};let z0=qo;z0.instance=null;function B2(e){window.ReactNativeWebView.onmessage=t=>{e(t)}}const gt=z0.getInstance(B2,e=>window.ReactNativeWebView.postMessage(e));function H2(e,t){const n=D.useMemo(()=>new D2(e),[e]);return D.useEffect(()=>{n.setTool(t)},[n,t]),n}function $2(e){const{drawingServiceRef:t,currentTool:n}=e,o=H2(t,n);D.useEffect(()=>{o!==null&&(o.onhistorymove===null&&(o.onhistorymove=(s,u)=>{gt.postMessage(\"draw-history-move\",{canUndo:s,canRedo:u})}),o.onfilling===null&&(o.onfilling=async(s,u,c,d)=>{await gt.postMessage(\"filling\",{isStarting:s,x:u,y:c,color:d})}),o.onframereport===null&&(o.onframereport=s=>{gt.postMessage(\"fps-report\",{fps:s})}),gt.onMessage(\"draw-clear\",async s=>{await o.clear(s)}),gt.onMessage(\"draw-get-image\",async()=>o.getImage()),gt.onMessage(\"draw-set-image\",async s=>{await o.setImage(s)}),gt.onMessage(\"draw-history-undo\",async()=>{await o.undo()}),gt.onMessage(\"draw-history-redo\",async()=>{await o.redo()}),gt.onMessage(\"draw-history-reset\",async()=>{await o.resetHistory()}),gt.onMessage(\"draw-touch\",s=>{const{type:u,x:c,y:d,parsedId:h}=s;o.touch(u,c,d,h)}))},[o])}function Q2(e){return D.useMemo(()=>e===null?Xg.createEmpty():new Xg(e),[e])}class Dr{constructor(t,n){this.imageWidth=t,this.imageHeight=n,this.colorChanels=4}async compactURL(t){const{imageWidth:n,imageHeight:o}=this,s=await Dr.createCanvas(t,n,o),u=await Dr.createFile(s);return URL.createObjectURL(u)}async compare(t,n){const{imageWidth:o,imageHeight:s}=this,u=await Dr.createCanvas(t,o,s),c=await Dr.createCanvas(n,o,s),d=u.toDataURL(),h=c.toDataURL();return d===h}get referenceSize(){return this.imageWidth*this.imageHeight*this.colorChanels/1024/1024}static async createCanvas(t,n,o){const s=await Dr.createImage(t),u=sd(n,o);return u.getContext(\"2d\").drawImage(s,0,0),u}static createImage(t){return new Promise(n=>{const o=new Image;o.onload=()=>n(o),o.src=t})}static createFile(t){return new Promise(n=>{t.toBlob(o=>n(o))})}}function G2(){return performance.memory===void 0?1024:performance.memory.jsHeapSizeLimit/1024/1024}function V2(e,t){return D.useMemo(()=>new Dr(e,t),[e,t])}function K2(e,t){const n=V2(e,t);return D.useMemo(()=>{const o=G2();return new od(o,n)},[n])}function Y2(e,t,n){const o=K2(t,n),s=D.useMemo(()=>new ns(e,o,T2),[e]);return D.useEffect(()=>{s.setHistory(o)},[s,o]),s}function X2(e,t){const[n,o]=D.useState(null),s=Q2(n),u=Y2(s,e,t);return{loadDisplay:D.useCallback(d=>{o(d)},[]),drawingService:u}}const Z2=D.forwardRef((e,t)=>{const{resolution:n,aspectRatio:o,antialiasing:s,onLoad:u}=e,c=Math.round(n/o),{loadDisplay:d,drawingService:h}=X2(n,c);return D.useImperativeHandle(t,()=>h,[h]),Yt.jsx(y0,{className:s?\"\":\"pixelated\",resolution:n,aspectRatio:o,onLoad:u,onCanvasCreate:d})});var Ai=(e=>(e[e.HORIZONTAL=0]=\"HORIZONTAL\",e[e.VERTICAL=1]=\"VERTICAL\",e))(Ai||{});class q2{constructor(t){this.context=t}makeLine(t,n,o,s){this.context.beginPath(),this.context.lineWidth=o,this.context.strokeStyle=s;const[u,c]=t===Ai.HORIZONTAL?[0,n]:[n,0],[d,h]=t===Ai.HORIZONTAL?[this.width,n]:[n,this.height];this.context.moveTo(u,c),this.context.lineTo(d,h),this.context.stroke()}clear(){this.context.clearRect(0,0,this.width,this.height)}get width(){const{canvas:t}=this.context;return t.width}get height(){const{canvas:t}=this.context;return t.height}}function J2(){const[e,t]=D.useState(null),n=D.useCallback(o=>{const s=o.getContext(\"2d\"),u=new q2(s);t(u)},[]);return{gridDisplay:e,onCanvasCreate:n}}const ru=class{constructor(e,t,n){this.widthGrid=e,this.heightGrid=t,this.display=n}hatch(e){const[t,n]=e===Ai.HORIZONTAL?[this.heightGrid,this.display.height]:[this.widthGrid,this.display.width],o=n/t,s=t,u=ru.WIDTH/2;for(let c=0;c<=s;c++){let d=c*o;c===0&&(d+=u),c===s&&(d-=u),this.display.makeLine(e,d,ru.WIDTH,ru.COLOR)}}build(){this.display.clear(),this.hatch(Ai.HORIZONTAL),this.hatch(Ai.VERTICAL)}};let dd=ru;dd.WIDTH=2;dd.COLOR=\"black\";function j2(e,t,n){return D.useMemo(()=>n===null?null:new dd(e,t,n),[e,t,n])}const b2=e=>{const{amount:t=0,aspectRatio:n,onLoad:o}=e,[s,u]=typeof t==\"number\"?[t,t]:t,c=450,d=t!==0,{gridDisplay:h,onCanvasCreate:m}=J2(),C=j2(s,u,h);return D.useEffect(()=>{C!==null&&C.build()},[C]),Yt.jsx(y0,{className:`${d?\"\":\"grid-hidden\"}`,resolution:c,aspectRatio:n,onLoad:o,onCanvasCreate:m})};function eP(e){const[t,n]=D.useState(0),o=D.useCallback(()=>{const s=e.current,{width:u}=s.getBoundingClientRect();n(u)},[e]);return D.useEffect(()=>{o()},[]),D.useEffect(()=>(window.addEventListener(\"resize\",()=>o()),()=>window.removeEventListener(\"resize\",()=>o())),[o]),t}function tP(e){const{viewportControlAllowed:t,touchService:n}=e,o=D.useCallback(c=>{t||c.preventDefault();for(const d of c.changedTouches){const{identifier:h,pageX:m,pageY:C}=d,{innerWidth:k,innerHeight:P}=window;n.start(h,m,C,k,P)}},[t,n]),s=D.useCallback(c=>{t||c.preventDefault();for(const d of c.changedTouches){const{identifier:h,pageX:m,pageY:C}=d;n.move(h,m,C)}},[t,n]),u=D.useCallback(c=>{t||c.preventDefault();for(const d of c.changedTouches)n.end(d.identifier)},[t,n]);return{onTouchStart:o,onTouchMove:s,onTouchEnd:u}}var Zi,qi;const ih=class{constructor(t,n,o){fe(this,Zi,void 0);fe(this,qi,void 0);this.minProgress=o,this.id=Symbol(),X(this,Zi,t),X(this,qi,n)}checkHasMinDistance(t,n){return ih.calcDistance(this.x,this.y,t,n)>=this.minProgress}setPosition(t,n){const o=this.checkHasMinDistance(t,n);return o&&(this.x=t,this.y=n),o}get x(){return Y(this,Zi)}set x(t){X(this,Zi,t)}get y(){return Y(this,qi)}set y(t){X(this,qi,t)}static calcDistance(t,n,o,s){return Math.sqrt((t-o)**2+(n-s)**2)}static calcMinProgress(t,n){return Math.min(t,n)*.01}};let yu=ih;Zi=new WeakMap,qi=new WeakMap;class Zg{constructor(t,n,o){this.targetId=t,this.x=n,this.y=o}}class nP{constructor(){this.touchDetectedHandler=null,this.touchEndHandler=null}onTouchDetected(t){this.touchDetectedHandler=t}onTouchEnd(t){this.touchEndHandler=t}triggerTouchDetectedEvent(t){if(this.touchDetectedHandler===null)return;const{id:n,x:o,y:s}=t,u=new Zg(n,o,s);this.touchDetectedHandler(u)}triggerTouchEndEvent(t){if(this.touchEndHandler===null)return;const{id:n,x:o,y:s}=t,u=new Zg(n,o,s);this.touchEndHandler(u)}}class rP extends nP{constructor(){super(...arguments),this.touchIndex={}}start(t,n,o,s,u){const c=yu.calcMinProgress(s,u),d=new yu(n,o,c);this.touchIndex[t]=d,this.triggerTouchDetectedEvent(d)}move(t,n,o){const s=this.touchIndex[t];if(s===void 0)return;s.setPosition(n,o)&&this.triggerTouchDetectedEvent(s)}end(t){const n=this.touchIndex[t];n!==void 0&&(delete this.touchIndex[t],this.triggerTouchEndEvent(n))}}function iP(){return D.useMemo(()=>new rP,[])}function oP(e){const{viewportControlAllowed:t,screenRef:n}=e,o=iP(),s={viewportControlAllowed:t,touchService:o},{onTouchStart:u,onTouchMove:c,onTouchEnd:d}=tP(s),h=D.useCallback(C=>{C.addEventListener(\"touchstart\",u),C.addEventListener(\"touchmove\",c),C.addEventListener(\"touchend\",d)},[u,c,d]),m=D.useCallback(C=>{C.removeEventListener(\"touchstart\",u),C.removeEventListener(\"touchmove\",c),C.removeEventListener(\"touchend\",d)},[u,c,d]);return D.useEffect(()=>{const C=n.current;return h(C),()=>m(C)},[n,h,m]),{touchService:o}}function sP(e){const{resolution:t,viewportControlAllowed:n,screenRef:o}=e,s=eP(o),u=v2(s,t),{touchService:c}=oP({viewportControlAllowed:n,screenRef:o});return{coordinatesService:u,touchService:c}}const lP=D.forwardRef((e,t)=>{const{resolution:n,tool:o,viewportControlAllowed:s,drawingServiceRef:u}=e,c=D.useRef(null);D.useImperativeHandle(t,()=>c.current,[c]);const d={resolution:n,viewportControlAllowed:s,screenRef:c},{coordinatesService:h,touchService:m}=sP(d),C=D.useCallback(P=>{const O=u.current;if(O===null)return;const{x:F,y:z}=h.toInternal(P.x,P.y);O.use(F,z,P.targetId,o)},[h,u,o]),k=D.useCallback(P=>{const O=u.current;if(O===null)return;const{x:F,y:z}=h.toInternal(P.x,P.y);O.stopStroke(F,z,P.targetId,o)},[h,u,o]);return D.useEffect(()=>{m.onTouchDetected(C),m.onTouchEnd(k)},[m,C,k]),Yt.jsx(\"div\",{ref:c,className:\"touch-screen\"})}),uP=4;var Gt=(e=>(e[e.NONE=0]=\"NONE\",e[e.ZOOM=1]=\"ZOOM\",e[e.EYE_DROPPER=2]=\"EYE_DROPPER\",e[e.SPRAY=3]=\"SPRAY\",e[e.SQUARE_DOT_PEN=4]=\"SQUARE_DOT_PEN\",e[e.DOT_PEN=5]=\"DOT_PEN\",e[e.TAPE=6]=\"TAPE\",e[e.PENCIL=7]=\"PENCIL\",e[e.ERASER=8]=\"ERASER\",e[e.FILLER=9]=\"FILLER\",e))(Gt||{}),Ji;class aP{constructor(t,n,o){fe(this,Ji,void 0);this.pointerEventEmitter=n,this.cursorRenderer=o,X(this,Ji,t),this.setupEventListener()}setupEventListener(){this.pointerEventEmitter.oninteract=t=>{this.isAvailable&&this.cursorRenderer.updateWith(t)},this.pointerEventEmitter.onleave=t=>{this.isAvailable&&this.cursorRenderer.destroyTo(t)}}destroy(){this.pointerEventEmitter.oninteract=null,this.pointerEventEmitter.onleave=null}get isAvailable(){return Y(this,Ji)}get size(){return this.cursorRenderer.cursorSize}setIsAvailable(t){X(this,Ji,t),t||this.cursorRenderer.clear()}setSize(t){this.cursorRenderer.setCursorSize(t)}}Ji=new WeakMap;class qg{constructor(t,n,o){this.id=t,this.x=n,this.y=o}}const iu=class{constructor(e){this.currentPointersIndex=new Map,this.oninteract=null,this.onleave=null,e.addEventListener(\"touchstart\",t=>{this.dispatchInteractEvent(t)}),e.addEventListener(\"touchmove\",t=>{this.dispatchInteractEvent(t)}),e.addEventListener(\"touchend\",t=>{this.dispatchLeaveEvent(t)}),e.addEventListener(\"touchcancel\",()=>{this.leaveAll()})}dispatchInteractEvent(e){const t=iu.createPointerEvent(e);for(const n of t)this.currentPointersIndex.set(n.id,n),setTimeout(()=>{const o=this.currentPointersIndex.get(n.id);n===o&&this.dispatchLeaveEvent(n)},iu.CURSOR_LIVE),this.oninteract!==null&&this.oninteract(n)}dispatchLeaveEvent(e){const t=e instanceof qg?[e]:iu.createPointerEvent(e);for(const n of t)this.currentPointersIndex.delete(n.id),this.onleave!==null&&this.onleave(n)}leaveAll(){this.currentPointersIndex.forEach(e=>{this.dispatchLeaveEvent(e)})}static createPointerEvent(e){const t=[],o=e.currentTarget.getBoundingClientRect();for(const s of e.changedTouches){const{identifier:u,clientX:c,clientY:d}=s,h=c-o.left,m=d-o.top,C=new qg(u,h,m);t.push(C)}return t}};let U0=iu;U0.CURSOR_LIVE=100;var no={},cP={get exports(){return no},set exports(e){no=e}};/**\n * @license\n * Lodash <https://lodash.com/>\n * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */(function(e,t){(function(){var n,o=\"4.17.21\",s=200,u=\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\",c=\"Expected a function\",d=\"Invalid `variable` option passed into `_.template`\",h=\"__lodash_hash_undefined__\",m=500,C=\"__lodash_placeholder__\",k=1,P=2,O=4,F=1,z=2,re=1,_=2,w=4,E=8,T=16,U=32,G=64,H=128,K=256,xe=512,se=30,xt=\"...\",_r=800,xr=16,vo=1,la=2,mo=3,jt=1/0,B=9007199254740991,b=17976931348623157e292,ee=0/0,he=4294967295,ze=he-1,ei=he>>>1,xn=[[\"ary\",H],[\"bind\",re],[\"bindKey\",_],[\"curry\",E],[\"curryRight\",T],[\"flip\",xe],[\"partial\",U],[\"partialRight\",G],[\"rearg\",K]],hn=\"[object Arguments]\",Dt=\"[object Array]\",ti=\"[object AsyncFunction]\",yo=\"[object Boolean]\",wo=\"[object Date]\",Y1=\"[object DOMException]\",Bs=\"[object Error]\",Hs=\"[object Function]\",sh=\"[object GeneratorFunction]\",bt=\"[object Map]\",So=\"[object Number]\",X1=\"[object Null]\",En=\"[object Object]\",lh=\"[object Promise]\",Z1=\"[object Proxy]\",_o=\"[object RegExp]\",en=\"[object Set]\",xo=\"[object String]\",$s=\"[object Symbol]\",q1=\"[object Undefined]\",Eo=\"[object WeakMap]\",J1=\"[object WeakSet]\",Co=\"[object ArrayBuffer]\",ni=\"[object DataView]\",ua=\"[object Float32Array]\",aa=\"[object Float64Array]\",ca=\"[object Int8Array]\",fa=\"[object Int16Array]\",da=\"[object Int32Array]\",ha=\"[object Uint8Array]\",pa=\"[object Uint8ClampedArray]\",ga=\"[object Uint16Array]\",va=\"[object Uint32Array]\",j1=/\\b__p \\+= '';/g,b1=/\\b(__p \\+=) '' \\+/g,ey=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,uh=/&(?:amp|lt|gt|quot|#39);/g,ah=/[&<>\"']/g,ty=RegExp(uh.source),ny=RegExp(ah.source),ry=/<%-([\\s\\S]+?)%>/g,iy=/<%([\\s\\S]+?)%>/g,ch=/<%=([\\s\\S]+?)%>/g,oy=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,sy=/^\\w*$/,ly=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,ma=/[\\\\^$.*+?()[\\]{}|]/g,uy=RegExp(ma.source),ya=/^\\s+/,ay=/\\s/,cy=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,fy=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,dy=/,? & /,hy=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,py=/[()=,{}\\[\\]\\/\\s]/,gy=/\\\\(\\\\)?/g,vy=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,fh=/\\w*$/,my=/^[-+]0x[0-9a-f]+$/i,yy=/^0b[01]+$/i,wy=/^\\[object .+?Constructor\\]$/,Sy=/^0o[0-7]+$/i,_y=/^(?:0|[1-9]\\d*)$/,xy=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,Qs=/($^)/,Ey=/['\\n\\r\\u2028\\u2029\\\\]/g,Gs=\"\\\\ud800-\\\\udfff\",Cy=\"\\\\u0300-\\\\u036f\",ky=\"\\\\ufe20-\\\\ufe2f\",Py=\"\\\\u20d0-\\\\u20ff\",dh=Cy+ky+Py,hh=\"\\\\u2700-\\\\u27bf\",ph=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",Ry=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\",Ly=\"\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\",Iy=\"\\\\u2000-\\\\u206f\",Ay=\" \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",gh=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",vh=\"\\\\ufe0e\\\\ufe0f\",mh=Ry+Ly+Iy+Ay,wa=\"['’]\",Ty=\"[\"+Gs+\"]\",yh=\"[\"+mh+\"]\",Vs=\"[\"+dh+\"]\",wh=\"\\\\d+\",My=\"[\"+hh+\"]\",Sh=\"[\"+ph+\"]\",_h=\"[^\"+Gs+mh+wh+hh+ph+gh+\"]\",Sa=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",Ny=\"(?:\"+Vs+\"|\"+Sa+\")\",xh=\"[^\"+Gs+\"]\",_a=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",xa=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",ri=\"[\"+gh+\"]\",Eh=\"\\\\u200d\",Ch=\"(?:\"+Sh+\"|\"+_h+\")\",Oy=\"(?:\"+ri+\"|\"+_h+\")\",kh=\"(?:\"+wa+\"(?:d|ll|m|re|s|t|ve))?\",Ph=\"(?:\"+wa+\"(?:D|LL|M|RE|S|T|VE))?\",Rh=Ny+\"?\",Lh=\"[\"+vh+\"]?\",Dy=\"(?:\"+Eh+\"(?:\"+[xh,_a,xa].join(\"|\")+\")\"+Lh+Rh+\")*\",Fy=\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",zy=\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",Ih=Lh+Rh+Dy,Uy=\"(?:\"+[My,_a,xa].join(\"|\")+\")\"+Ih,Wy=\"(?:\"+[xh+Vs+\"?\",Vs,_a,xa,Ty].join(\"|\")+\")\",By=RegExp(wa,\"g\"),Hy=RegExp(Vs,\"g\"),Ea=RegExp(Sa+\"(?=\"+Sa+\")|\"+Wy+Ih,\"g\"),$y=RegExp([ri+\"?\"+Sh+\"+\"+kh+\"(?=\"+[yh,ri,\"$\"].join(\"|\")+\")\",Oy+\"+\"+Ph+\"(?=\"+[yh,ri+Ch,\"$\"].join(\"|\")+\")\",ri+\"?\"+Ch+\"+\"+kh,ri+\"+\"+Ph,zy,Fy,wh,Uy].join(\"|\"),\"g\"),Qy=RegExp(\"[\"+Eh+Gs+dh+vh+\"]\"),Gy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vy=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],Ky=-1,Ee={};Ee[ua]=Ee[aa]=Ee[ca]=Ee[fa]=Ee[da]=Ee[ha]=Ee[pa]=Ee[ga]=Ee[va]=!0,Ee[hn]=Ee[Dt]=Ee[Co]=Ee[yo]=Ee[ni]=Ee[wo]=Ee[Bs]=Ee[Hs]=Ee[bt]=Ee[So]=Ee[En]=Ee[_o]=Ee[en]=Ee[xo]=Ee[Eo]=!1;var Se={};Se[hn]=Se[Dt]=Se[Co]=Se[ni]=Se[yo]=Se[wo]=Se[ua]=Se[aa]=Se[ca]=Se[fa]=Se[da]=Se[bt]=Se[So]=Se[En]=Se[_o]=Se[en]=Se[xo]=Se[$s]=Se[ha]=Se[pa]=Se[ga]=Se[va]=!0,Se[Bs]=Se[Hs]=Se[Eo]=!1;var Yy={À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"},Xy={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"},Zy={\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"},qy={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},Jy=parseFloat,jy=parseInt,Ah=typeof Bo==\"object\"&&Bo&&Bo.Object===Object&&Bo,by=typeof self==\"object\"&&self&&self.Object===Object&&self,Ke=Ah||by||Function(\"return this\")(),Ca=t&&!t.nodeType&&t,Er=Ca&&!0&&e&&!e.nodeType&&e,Th=Er&&Er.exports===Ca,ka=Th&&Ah.process,Ft=function(){try{var S=Er&&Er.require&&Er.require(\"util\").types;return S||ka&&ka.binding&&ka.binding(\"util\")}catch{}}(),Mh=Ft&&Ft.isArrayBuffer,Nh=Ft&&Ft.isDate,Oh=Ft&&Ft.isMap,Dh=Ft&&Ft.isRegExp,Fh=Ft&&Ft.isSet,zh=Ft&&Ft.isTypedArray;function Et(S,L,R){switch(R.length){case 0:return S.call(L);case 1:return S.call(L,R[0]);case 2:return S.call(L,R[0],R[1]);case 3:return S.call(L,R[0],R[1],R[2])}return S.apply(L,R)}function ew(S,L,R,$){for(var j=-1,pe=S==null?0:S.length;++j<pe;){var We=S[j];L($,We,R(We),S)}return $}function zt(S,L){for(var R=-1,$=S==null?0:S.length;++R<$&&L(S[R],R,S)!==!1;);return S}function tw(S,L){for(var R=S==null?0:S.length;R--&&L(S[R],R,S)!==!1;);return S}function Uh(S,L){for(var R=-1,$=S==null?0:S.length;++R<$;)if(!L(S[R],R,S))return!1;return!0}function Gn(S,L){for(var R=-1,$=S==null?0:S.length,j=0,pe=[];++R<$;){var We=S[R];L(We,R,S)&&(pe[j++]=We)}return pe}function Ks(S,L){var R=S==null?0:S.length;return!!R&&ii(S,L,0)>-1}function Pa(S,L,R){for(var $=-1,j=S==null?0:S.length;++$<j;)if(R(L,S[$]))return!0;return!1}function Pe(S,L){for(var R=-1,$=S==null?0:S.length,j=Array($);++R<$;)j[R]=L(S[R],R,S);return j}function Vn(S,L){for(var R=-1,$=L.length,j=S.length;++R<$;)S[j+R]=L[R];return S}function Ra(S,L,R,$){var j=-1,pe=S==null?0:S.length;for($&&pe&&(R=S[++j]);++j<pe;)R=L(R,S[j],j,S);return R}function nw(S,L,R,$){var j=S==null?0:S.length;for($&&j&&(R=S[--j]);j--;)R=L(R,S[j],j,S);return R}function La(S,L){for(var R=-1,$=S==null?0:S.length;++R<$;)if(L(S[R],R,S))return!0;return!1}var rw=Ia(\"length\");function iw(S){return S.split(\"\")}function ow(S){return S.match(hy)||[]}function Wh(S,L,R){var $;return R(S,function(j,pe,We){if(L(j,pe,We))return $=pe,!1}),$}function Ys(S,L,R,$){for(var j=S.length,pe=R+($?1:-1);$?pe--:++pe<j;)if(L(S[pe],pe,S))return pe;return-1}function ii(S,L,R){return L===L?mw(S,L,R):Ys(S,Bh,R)}function sw(S,L,R,$){for(var j=R-1,pe=S.length;++j<pe;)if($(S[j],L))return j;return-1}function Bh(S){return S!==S}function Hh(S,L){var R=S==null?0:S.length;return R?Ta(S,L)/R:ee}function Ia(S){return function(L){return L==null?n:L[S]}}function Aa(S){return function(L){return S==null?n:S[L]}}function $h(S,L,R,$,j){return j(S,function(pe,We,we){R=$?($=!1,pe):L(R,pe,We,we)}),R}function lw(S,L){var R=S.length;for(S.sort(L);R--;)S[R]=S[R].value;return S}function Ta(S,L){for(var R,$=-1,j=S.length;++$<j;){var pe=L(S[$]);pe!==n&&(R=R===n?pe:R+pe)}return R}function Ma(S,L){for(var R=-1,$=Array(S);++R<S;)$[R]=L(R);return $}function uw(S,L){return Pe(L,function(R){return[R,S[R]]})}function Qh(S){return S&&S.slice(0,Yh(S)+1).replace(ya,\"\")}function Ct(S){return function(L){return S(L)}}function Na(S,L){return Pe(L,function(R){return S[R]})}function ko(S,L){return S.has(L)}function Gh(S,L){for(var R=-1,$=S.length;++R<$&&ii(L,S[R],0)>-1;);return R}function Vh(S,L){for(var R=S.length;R--&&ii(L,S[R],0)>-1;);return R}function aw(S,L){for(var R=S.length,$=0;R--;)S[R]===L&&++$;return $}var cw=Aa(Yy),fw=Aa(Xy);function dw(S){return\"\\\\\"+qy[S]}function hw(S,L){return S==null?n:S[L]}function oi(S){return Qy.test(S)}function pw(S){return Gy.test(S)}function gw(S){for(var L,R=[];!(L=S.next()).done;)R.push(L.value);return R}function Oa(S){var L=-1,R=Array(S.size);return S.forEach(function($,j){R[++L]=[j,$]}),R}function Kh(S,L){return function(R){return S(L(R))}}function Kn(S,L){for(var R=-1,$=S.length,j=0,pe=[];++R<$;){var We=S[R];(We===L||We===C)&&(S[R]=C,pe[j++]=R)}return pe}function Xs(S){var L=-1,R=Array(S.size);return S.forEach(function($){R[++L]=$}),R}function vw(S){var L=-1,R=Array(S.size);return S.forEach(function($){R[++L]=[$,$]}),R}function mw(S,L,R){for(var $=R-1,j=S.length;++$<j;)if(S[$]===L)return $;return-1}function yw(S,L,R){for(var $=R+1;$--;)if(S[$]===L)return $;return $}function si(S){return oi(S)?Sw(S):rw(S)}function tn(S){return oi(S)?_w(S):iw(S)}function Yh(S){for(var L=S.length;L--&&ay.test(S.charAt(L)););return L}var ww=Aa(Zy);function Sw(S){for(var L=Ea.lastIndex=0;Ea.test(S);)++L;return L}function _w(S){return S.match(Ea)||[]}function xw(S){return S.match($y)||[]}var Ew=function S(L){L=L==null?Ke:li.defaults(Ke.Object(),L,li.pick(Ke,Vy));var R=L.Array,$=L.Date,j=L.Error,pe=L.Function,We=L.Math,we=L.Object,Da=L.RegExp,Cw=L.String,Ut=L.TypeError,Zs=R.prototype,kw=pe.prototype,ui=we.prototype,qs=L[\"__core-js_shared__\"],Js=kw.toString,me=ui.hasOwnProperty,Pw=0,Xh=function(){var r=/[^.]+$/.exec(qs&&qs.keys&&qs.keys.IE_PROTO||\"\");return r?\"Symbol(src)_1.\"+r:\"\"}(),js=ui.toString,Rw=Js.call(we),Lw=Ke._,Iw=Da(\"^\"+Js.call(me).replace(ma,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),bs=Th?L.Buffer:n,Yn=L.Symbol,el=L.Uint8Array,Zh=bs?bs.allocUnsafe:n,tl=Kh(we.getPrototypeOf,we),qh=we.create,Jh=ui.propertyIsEnumerable,nl=Zs.splice,jh=Yn?Yn.isConcatSpreadable:n,Po=Yn?Yn.iterator:n,Cr=Yn?Yn.toStringTag:n,rl=function(){try{var r=Ir(we,\"defineProperty\");return r({},\"\",{}),r}catch{}}(),Aw=L.clearTimeout!==Ke.clearTimeout&&L.clearTimeout,Tw=$&&$.now!==Ke.Date.now&&$.now,Mw=L.setTimeout!==Ke.setTimeout&&L.setTimeout,il=We.ceil,ol=We.floor,Fa=we.getOwnPropertySymbols,Nw=bs?bs.isBuffer:n,bh=L.isFinite,Ow=Zs.join,Dw=Kh(we.keys,we),Be=We.max,Je=We.min,Fw=$.now,zw=L.parseInt,ep=We.random,Uw=Zs.reverse,za=Ir(L,\"DataView\"),Ro=Ir(L,\"Map\"),Ua=Ir(L,\"Promise\"),ai=Ir(L,\"Set\"),Lo=Ir(L,\"WeakMap\"),Io=Ir(we,\"create\"),sl=Lo&&new Lo,ci={},Ww=Ar(za),Bw=Ar(Ro),Hw=Ar(Ua),$w=Ar(ai),Qw=Ar(Lo),ll=Yn?Yn.prototype:n,Ao=ll?ll.valueOf:n,tp=ll?ll.toString:n;function p(r){if(Me(r)&&!te(r)&&!(r instanceof ae)){if(r instanceof Wt)return r;if(me.call(r,\"__wrapped__\"))return ng(r)}return new Wt(r)}var fi=function(){function r(){}return function(i){if(!Le(i))return{};if(qh)return qh(i);r.prototype=i;var l=new r;return r.prototype=n,l}}();function ul(){}function Wt(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}p.templateSettings={escape:ry,evaluate:iy,interpolate:ch,variable:\"\",imports:{_:p}},p.prototype=ul.prototype,p.prototype.constructor=p,Wt.prototype=fi(ul.prototype),Wt.prototype.constructor=Wt;function ae(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=he,this.__views__=[]}function Gw(){var r=new ae(this.__wrapped__);return r.__actions__=ct(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=ct(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=ct(this.__views__),r}function Vw(){if(this.__filtered__){var r=new ae(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function Kw(){var r=this.__wrapped__.value(),i=this.__dir__,l=te(r),a=i<0,f=l?r.length:0,g=i_(0,f,this.__views__),v=g.start,y=g.end,x=y-v,I=a?y:v-1,A=this.__iteratees__,M=A.length,W=0,V=Je(x,this.__takeCount__);if(!l||!a&&f==x&&V==x)return kp(r,this.__actions__);var q=[];e:for(;x--&&W<V;){I+=i;for(var ie=-1,J=r[I];++ie<M;){var le=A[ie],ce=le.iteratee,Rt=le.type,ot=ce(J);if(Rt==la)J=ot;else if(!ot){if(Rt==vo)continue e;break e}}q[W++]=J}return q}ae.prototype=fi(ul.prototype),ae.prototype.constructor=ae;function kr(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var a=r[i];this.set(a[0],a[1])}}function Yw(){this.__data__=Io?Io(null):{},this.size=0}function Xw(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function Zw(r){var i=this.__data__;if(Io){var l=i[r];return l===h?n:l}return me.call(i,r)?i[r]:n}function qw(r){var i=this.__data__;return Io?i[r]!==n:me.call(i,r)}function Jw(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=Io&&i===n?h:i,this}kr.prototype.clear=Yw,kr.prototype.delete=Xw,kr.prototype.get=Zw,kr.prototype.has=qw,kr.prototype.set=Jw;function Cn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var a=r[i];this.set(a[0],a[1])}}function jw(){this.__data__=[],this.size=0}function bw(r){var i=this.__data__,l=al(i,r);if(l<0)return!1;var a=i.length-1;return l==a?i.pop():nl.call(i,l,1),--this.size,!0}function eS(r){var i=this.__data__,l=al(i,r);return l<0?n:i[l][1]}function tS(r){return al(this.__data__,r)>-1}function nS(r,i){var l=this.__data__,a=al(l,r);return a<0?(++this.size,l.push([r,i])):l[a][1]=i,this}Cn.prototype.clear=jw,Cn.prototype.delete=bw,Cn.prototype.get=eS,Cn.prototype.has=tS,Cn.prototype.set=nS;function kn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var a=r[i];this.set(a[0],a[1])}}function rS(){this.size=0,this.__data__={hash:new kr,map:new(Ro||Cn),string:new kr}}function iS(r){var i=_l(this,r).delete(r);return this.size-=i?1:0,i}function oS(r){return _l(this,r).get(r)}function sS(r){return _l(this,r).has(r)}function lS(r,i){var l=_l(this,r),a=l.size;return l.set(r,i),this.size+=l.size==a?0:1,this}kn.prototype.clear=rS,kn.prototype.delete=iS,kn.prototype.get=oS,kn.prototype.has=sS,kn.prototype.set=lS;function Pr(r){var i=-1,l=r==null?0:r.length;for(this.__data__=new kn;++i<l;)this.add(r[i])}function uS(r){return this.__data__.set(r,h),this}function aS(r){return this.__data__.has(r)}Pr.prototype.add=Pr.prototype.push=uS,Pr.prototype.has=aS;function nn(r){var i=this.__data__=new Cn(r);this.size=i.size}function cS(){this.__data__=new Cn,this.size=0}function fS(r){var i=this.__data__,l=i.delete(r);return this.size=i.size,l}function dS(r){return this.__data__.get(r)}function hS(r){return this.__data__.has(r)}function pS(r,i){var l=this.__data__;if(l instanceof Cn){var a=l.__data__;if(!Ro||a.length<s-1)return a.push([r,i]),this.size=++l.size,this;l=this.__data__=new kn(a)}return l.set(r,i),this.size=l.size,this}nn.prototype.clear=cS,nn.prototype.delete=fS,nn.prototype.get=dS,nn.prototype.has=hS,nn.prototype.set=pS;function np(r,i){var l=te(r),a=!l&&Tr(r),f=!l&&!a&&jn(r),g=!l&&!a&&!f&&gi(r),v=l||a||f||g,y=v?Ma(r.length,Cw):[],x=y.length;for(var I in r)(i||me.call(r,I))&&!(v&&(I==\"length\"||f&&(I==\"offset\"||I==\"parent\")||g&&(I==\"buffer\"||I==\"byteLength\"||I==\"byteOffset\")||In(I,x)))&&y.push(I);return y}function rp(r){var i=r.length;return i?r[Za(0,i-1)]:n}function gS(r,i){return xl(ct(r),Rr(i,0,r.length))}function vS(r){return xl(ct(r))}function Wa(r,i,l){(l!==n&&!rn(r[i],l)||l===n&&!(i in r))&&Pn(r,i,l)}function To(r,i,l){var a=r[i];(!(me.call(r,i)&&rn(a,l))||l===n&&!(i in r))&&Pn(r,i,l)}function al(r,i){for(var l=r.length;l--;)if(rn(r[l][0],i))return l;return-1}function mS(r,i,l,a){return Xn(r,function(f,g,v){i(a,f,l(f),v)}),a}function ip(r,i){return r&&gn(i,Qe(i),r)}function yS(r,i){return r&&gn(i,dt(i),r)}function Pn(r,i,l){i==\"__proto__\"&&rl?rl(r,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[i]=l}function Ba(r,i){for(var l=-1,a=i.length,f=R(a),g=r==null;++l<a;)f[l]=g?n:Sc(r,i[l]);return f}function Rr(r,i,l){return r===r&&(l!==n&&(r=r<=l?r:l),i!==n&&(r=r>=i?r:i)),r}function Bt(r,i,l,a,f,g){var v,y=i&k,x=i&P,I=i&O;if(l&&(v=f?l(r,a,f,g):l(r)),v!==n)return v;if(!Le(r))return r;var A=te(r);if(A){if(v=s_(r),!y)return ct(r,v)}else{var M=je(r),W=M==Hs||M==sh;if(jn(r))return Lp(r,y);if(M==En||M==hn||W&&!f){if(v=x||W?{}:Yp(r),!y)return x?ZS(r,yS(v,r)):XS(r,ip(v,r))}else{if(!Se[M])return f?r:{};v=l_(r,M,y)}}g||(g=new nn);var V=g.get(r);if(V)return V;g.set(r,v),xg(r)?r.forEach(function(J){v.add(Bt(J,i,l,J,r,g))}):Sg(r)&&r.forEach(function(J,le){v.set(le,Bt(J,i,l,le,r,g))});var q=I?x?sc:oc:x?dt:Qe,ie=A?n:q(r);return zt(ie||r,function(J,le){ie&&(le=J,J=r[le]),To(v,le,Bt(J,i,l,le,r,g))}),v}function wS(r){var i=Qe(r);return function(l){return op(l,r,i)}}function op(r,i,l){var a=l.length;if(r==null)return!a;for(r=we(r);a--;){var f=l[a],g=i[f],v=r[f];if(v===n&&!(f in r)||!g(v))return!1}return!0}function sp(r,i,l){if(typeof r!=\"function\")throw new Ut(c);return Uo(function(){r.apply(n,l)},i)}function Mo(r,i,l,a){var f=-1,g=Ks,v=!0,y=r.length,x=[],I=i.length;if(!y)return x;l&&(i=Pe(i,Ct(l))),a?(g=Pa,v=!1):i.length>=s&&(g=ko,v=!1,i=new Pr(i));e:for(;++f<y;){var A=r[f],M=l==null?A:l(A);if(A=a||A!==0?A:0,v&&M===M){for(var W=I;W--;)if(i[W]===M)continue e;x.push(A)}else g(i,M,a)||x.push(A)}return x}var Xn=Np(pn),lp=Np($a,!0);function SS(r,i){var l=!0;return Xn(r,function(a,f,g){return l=!!i(a,f,g),l}),l}function cl(r,i,l){for(var a=-1,f=r.length;++a<f;){var g=r[a],v=i(g);if(v!=null&&(y===n?v===v&&!Pt(v):l(v,y)))var y=v,x=g}return x}function _S(r,i,l,a){var f=r.length;for(l=ne(l),l<0&&(l=-l>f?0:f+l),a=a===n||a>f?f:ne(a),a<0&&(a+=f),a=l>a?0:Cg(a);l<a;)r[l++]=i;return r}function up(r,i){var l=[];return Xn(r,function(a,f,g){i(a,f,g)&&l.push(a)}),l}function Ye(r,i,l,a,f){var g=-1,v=r.length;for(l||(l=a_),f||(f=[]);++g<v;){var y=r[g];i>0&&l(y)?i>1?Ye(y,i-1,l,a,f):Vn(f,y):a||(f[f.length]=y)}return f}var Ha=Op(),ap=Op(!0);function pn(r,i){return r&&Ha(r,i,Qe)}function $a(r,i){return r&&ap(r,i,Qe)}function fl(r,i){return Gn(i,function(l){return An(r[l])})}function Lr(r,i){i=qn(i,r);for(var l=0,a=i.length;r!=null&&l<a;)r=r[vn(i[l++])];return l&&l==a?r:n}function cp(r,i,l){var a=i(r);return te(r)?a:Vn(a,l(r))}function rt(r){return r==null?r===n?q1:X1:Cr&&Cr in we(r)?r_(r):v_(r)}function Qa(r,i){return r>i}function xS(r,i){return r!=null&&me.call(r,i)}function ES(r,i){return r!=null&&i in we(r)}function CS(r,i,l){return r>=Je(i,l)&&r<Be(i,l)}function Ga(r,i,l){for(var a=l?Pa:Ks,f=r[0].length,g=r.length,v=g,y=R(g),x=1/0,I=[];v--;){var A=r[v];v&&i&&(A=Pe(A,Ct(i))),x=Je(A.length,x),y[v]=!l&&(i||f>=120&&A.length>=120)?new Pr(v&&A):n}A=r[0];var M=-1,W=y[0];e:for(;++M<f&&I.length<x;){var V=A[M],q=i?i(V):V;if(V=l||V!==0?V:0,!(W?ko(W,q):a(I,q,l))){for(v=g;--v;){var ie=y[v];if(!(ie?ko(ie,q):a(r[v],q,l)))continue e}W&&W.push(q),I.push(V)}}return I}function kS(r,i,l,a){return pn(r,function(f,g,v){i(a,l(f),g,v)}),a}function No(r,i,l){i=qn(i,r),r=Jp(r,i);var a=r==null?r:r[vn($t(i))];return a==null?n:Et(a,r,l)}function fp(r){return Me(r)&&rt(r)==hn}function PS(r){return Me(r)&&rt(r)==Co}function RS(r){return Me(r)&&rt(r)==wo}function Oo(r,i,l,a,f){return r===i?!0:r==null||i==null||!Me(r)&&!Me(i)?r!==r&&i!==i:LS(r,i,l,a,Oo,f)}function LS(r,i,l,a,f,g){var v=te(r),y=te(i),x=v?Dt:je(r),I=y?Dt:je(i);x=x==hn?En:x,I=I==hn?En:I;var A=x==En,M=I==En,W=x==I;if(W&&jn(r)){if(!jn(i))return!1;v=!0,A=!1}if(W&&!A)return g||(g=new nn),v||gi(r)?Gp(r,i,l,a,f,g):t_(r,i,x,l,a,f,g);if(!(l&F)){var V=A&&me.call(r,\"__wrapped__\"),q=M&&me.call(i,\"__wrapped__\");if(V||q){var ie=V?r.value():r,J=q?i.value():i;return g||(g=new nn),f(ie,J,l,a,g)}}return W?(g||(g=new nn),n_(r,i,l,a,f,g)):!1}function IS(r){return Me(r)&&je(r)==bt}function Va(r,i,l,a){var f=l.length,g=f,v=!a;if(r==null)return!g;for(r=we(r);f--;){var y=l[f];if(v&&y[2]?y[1]!==r[y[0]]:!(y[0]in r))return!1}for(;++f<g;){y=l[f];var x=y[0],I=r[x],A=y[1];if(v&&y[2]){if(I===n&&!(x in r))return!1}else{var M=new nn;if(a)var W=a(I,A,x,r,i,M);if(!(W===n?Oo(A,I,F|z,a,M):W))return!1}}return!0}function dp(r){if(!Le(r)||f_(r))return!1;var i=An(r)?Iw:wy;return i.test(Ar(r))}function AS(r){return Me(r)&&rt(r)==_o}function TS(r){return Me(r)&&je(r)==en}function MS(r){return Me(r)&&Ll(r.length)&&!!Ee[rt(r)]}function hp(r){return typeof r==\"function\"?r:r==null?ht:typeof r==\"object\"?te(r)?vp(r[0],r[1]):gp(r):Dg(r)}function Ka(r){if(!zo(r))return Dw(r);var i=[];for(var l in we(r))me.call(r,l)&&l!=\"constructor\"&&i.push(l);return i}function NS(r){if(!Le(r))return g_(r);var i=zo(r),l=[];for(var a in r)a==\"constructor\"&&(i||!me.call(r,a))||l.push(a);return l}function Ya(r,i){return r<i}function pp(r,i){var l=-1,a=ft(r)?R(r.length):[];return Xn(r,function(f,g,v){a[++l]=i(f,g,v)}),a}function gp(r){var i=uc(r);return i.length==1&&i[0][2]?Zp(i[0][0],i[0][1]):function(l){return l===r||Va(l,r,i)}}function vp(r,i){return cc(r)&&Xp(i)?Zp(vn(r),i):function(l){var a=Sc(l,r);return a===n&&a===i?_c(l,r):Oo(i,a,F|z)}}function dl(r,i,l,a,f){r!==i&&Ha(i,function(g,v){if(f||(f=new nn),Le(g))OS(r,i,v,l,dl,a,f);else{var y=a?a(dc(r,v),g,v+\"\",r,i,f):n;y===n&&(y=g),Wa(r,v,y)}},dt)}function OS(r,i,l,a,f,g,v){var y=dc(r,l),x=dc(i,l),I=v.get(x);if(I){Wa(r,l,I);return}var A=g?g(y,x,l+\"\",r,i,v):n,M=A===n;if(M){var W=te(x),V=!W&&jn(x),q=!W&&!V&&gi(x);A=x,W||V||q?te(y)?A=y:Oe(y)?A=ct(y):V?(M=!1,A=Lp(x,!0)):q?(M=!1,A=Ip(x,!0)):A=[]:Wo(x)||Tr(x)?(A=y,Tr(y)?A=kg(y):(!Le(y)||An(y))&&(A=Yp(x))):M=!1}M&&(v.set(x,A),f(A,x,a,g,v),v.delete(x)),Wa(r,l,A)}function mp(r,i){var l=r.length;if(l)return i+=i<0?l:0,In(i,l)?r[i]:n}function yp(r,i,l){i.length?i=Pe(i,function(g){return te(g)?function(v){return Lr(v,g.length===1?g[0]:g)}:g}):i=[ht];var a=-1;i=Pe(i,Ct(Z()));var f=pp(r,function(g,v,y){var x=Pe(i,function(I){return I(g)});return{criteria:x,index:++a,value:g}});return lw(f,function(g,v){return YS(g,v,l)})}function DS(r,i){return wp(r,i,function(l,a){return _c(r,a)})}function wp(r,i,l){for(var a=-1,f=i.length,g={};++a<f;){var v=i[a],y=Lr(r,v);l(y,v)&&Do(g,qn(v,r),y)}return g}function FS(r){return function(i){return Lr(i,r)}}function Xa(r,i,l,a){var f=a?sw:ii,g=-1,v=i.length,y=r;for(r===i&&(i=ct(i)),l&&(y=Pe(r,Ct(l)));++g<v;)for(var x=0,I=i[g],A=l?l(I):I;(x=f(y,A,x,a))>-1;)y!==r&&nl.call(y,x,1),nl.call(r,x,1);return r}function Sp(r,i){for(var l=r?i.length:0,a=l-1;l--;){var f=i[l];if(l==a||f!==g){var g=f;In(f)?nl.call(r,f,1):ja(r,f)}}return r}function Za(r,i){return r+ol(ep()*(i-r+1))}function zS(r,i,l,a){for(var f=-1,g=Be(il((i-r)/(l||1)),0),v=R(g);g--;)v[a?g:++f]=r,r+=l;return v}function qa(r,i){var l=\"\";if(!r||i<1||i>B)return l;do i%2&&(l+=r),i=ol(i/2),i&&(r+=r);while(i);return l}function oe(r,i){return hc(qp(r,i,ht),r+\"\")}function US(r){return rp(vi(r))}function WS(r,i){var l=vi(r);return xl(l,Rr(i,0,l.length))}function Do(r,i,l,a){if(!Le(r))return r;i=qn(i,r);for(var f=-1,g=i.length,v=g-1,y=r;y!=null&&++f<g;){var x=vn(i[f]),I=l;if(x===\"__proto__\"||x===\"constructor\"||x===\"prototype\")return r;if(f!=v){var A=y[x];I=a?a(A,x,y):n,I===n&&(I=Le(A)?A:In(i[f+1])?[]:{})}To(y,x,I),y=y[x]}return r}var _p=sl?function(r,i){return sl.set(r,i),r}:ht,BS=rl?function(r,i){return rl(r,\"toString\",{configurable:!0,enumerable:!1,value:Ec(i),writable:!0})}:ht;function HS(r){return xl(vi(r))}function Ht(r,i,l){var a=-1,f=r.length;i<0&&(i=-i>f?0:f+i),l=l>f?f:l,l<0&&(l+=f),f=i>l?0:l-i>>>0,i>>>=0;for(var g=R(f);++a<f;)g[a]=r[a+i];return g}function $S(r,i){var l;return Xn(r,function(a,f,g){return l=i(a,f,g),!l}),!!l}function hl(r,i,l){var a=0,f=r==null?a:r.length;if(typeof i==\"number\"&&i===i&&f<=ei){for(;a<f;){var g=a+f>>>1,v=r[g];v!==null&&!Pt(v)&&(l?v<=i:v<i)?a=g+1:f=g}return f}return Ja(r,i,ht,l)}function Ja(r,i,l,a){var f=0,g=r==null?0:r.length;if(g===0)return 0;i=l(i);for(var v=i!==i,y=i===null,x=Pt(i),I=i===n;f<g;){var A=ol((f+g)/2),M=l(r[A]),W=M!==n,V=M===null,q=M===M,ie=Pt(M);if(v)var J=a||q;else I?J=q&&(a||W):y?J=q&&W&&(a||!V):x?J=q&&W&&!V&&(a||!ie):V||ie?J=!1:J=a?M<=i:M<i;J?f=A+1:g=A}return Je(g,ze)}function xp(r,i){for(var l=-1,a=r.length,f=0,g=[];++l<a;){var v=r[l],y=i?i(v):v;if(!l||!rn(y,x)){var x=y;g[f++]=v===0?0:v}}return g}function Ep(r){return typeof r==\"number\"?r:Pt(r)?ee:+r}function kt(r){if(typeof r==\"string\")return r;if(te(r))return Pe(r,kt)+\"\";if(Pt(r))return tp?tp.call(r):\"\";var i=r+\"\";return i==\"0\"&&1/r==-jt?\"-0\":i}function Zn(r,i,l){var a=-1,f=Ks,g=r.length,v=!0,y=[],x=y;if(l)v=!1,f=Pa;else if(g>=s){var I=i?null:bS(r);if(I)return Xs(I);v=!1,f=ko,x=new Pr}else x=i?[]:y;e:for(;++a<g;){var A=r[a],M=i?i(A):A;if(A=l||A!==0?A:0,v&&M===M){for(var W=x.length;W--;)if(x[W]===M)continue e;i&&x.push(M),y.push(A)}else f(x,M,l)||(x!==y&&x.push(M),y.push(A))}return y}function ja(r,i){return i=qn(i,r),r=Jp(r,i),r==null||delete r[vn($t(i))]}function Cp(r,i,l,a){return Do(r,i,l(Lr(r,i)),a)}function pl(r,i,l,a){for(var f=r.length,g=a?f:-1;(a?g--:++g<f)&&i(r[g],g,r););return l?Ht(r,a?0:g,a?g+1:f):Ht(r,a?g+1:0,a?f:g)}function kp(r,i){var l=r;return l instanceof ae&&(l=l.value()),Ra(i,function(a,f){return f.func.apply(f.thisArg,Vn([a],f.args))},l)}function ba(r,i,l){var a=r.length;if(a<2)return a?Zn(r[0]):[];for(var f=-1,g=R(a);++f<a;)for(var v=r[f],y=-1;++y<a;)y!=f&&(g[f]=Mo(g[f]||v,r[y],i,l));return Zn(Ye(g,1),i,l)}function Pp(r,i,l){for(var a=-1,f=r.length,g=i.length,v={};++a<f;){var y=a<g?i[a]:n;l(v,r[a],y)}return v}function ec(r){return Oe(r)?r:[]}function tc(r){return typeof r==\"function\"?r:ht}function qn(r,i){return te(r)?r:cc(r,i)?[r]:tg(ge(r))}var QS=oe;function Jn(r,i,l){var a=r.length;return l=l===n?a:l,!i&&l>=a?r:Ht(r,i,l)}var Rp=Aw||function(r){return Ke.clearTimeout(r)};function Lp(r,i){if(i)return r.slice();var l=r.length,a=Zh?Zh(l):new r.constructor(l);return r.copy(a),a}function nc(r){var i=new r.constructor(r.byteLength);return new el(i).set(new el(r)),i}function GS(r,i){var l=i?nc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function VS(r){var i=new r.constructor(r.source,fh.exec(r));return i.lastIndex=r.lastIndex,i}function KS(r){return Ao?we(Ao.call(r)):{}}function Ip(r,i){var l=i?nc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function Ap(r,i){if(r!==i){var l=r!==n,a=r===null,f=r===r,g=Pt(r),v=i!==n,y=i===null,x=i===i,I=Pt(i);if(!y&&!I&&!g&&r>i||g&&v&&x&&!y&&!I||a&&v&&x||!l&&x||!f)return 1;if(!a&&!g&&!I&&r<i||I&&l&&f&&!a&&!g||y&&l&&f||!v&&f||!x)return-1}return 0}function YS(r,i,l){for(var a=-1,f=r.criteria,g=i.criteria,v=f.length,y=l.length;++a<v;){var x=Ap(f[a],g[a]);if(x){if(a>=y)return x;var I=l[a];return x*(I==\"desc\"?-1:1)}}return r.index-i.index}function Tp(r,i,l,a){for(var f=-1,g=r.length,v=l.length,y=-1,x=i.length,I=Be(g-v,0),A=R(x+I),M=!a;++y<x;)A[y]=i[y];for(;++f<v;)(M||f<g)&&(A[l[f]]=r[f]);for(;I--;)A[y++]=r[f++];return A}function Mp(r,i,l,a){for(var f=-1,g=r.length,v=-1,y=l.length,x=-1,I=i.length,A=Be(g-y,0),M=R(A+I),W=!a;++f<A;)M[f]=r[f];for(var V=f;++x<I;)M[V+x]=i[x];for(;++v<y;)(W||f<g)&&(M[V+l[v]]=r[f++]);return M}function ct(r,i){var l=-1,a=r.length;for(i||(i=R(a));++l<a;)i[l]=r[l];return i}function gn(r,i,l,a){var f=!l;l||(l={});for(var g=-1,v=i.length;++g<v;){var y=i[g],x=a?a(l[y],r[y],y,l,r):n;x===n&&(x=r[y]),f?Pn(l,y,x):To(l,y,x)}return l}function XS(r,i){return gn(r,ac(r),i)}function ZS(r,i){return gn(r,Vp(r),i)}function gl(r,i){return function(l,a){var f=te(l)?ew:mS,g=i?i():{};return f(l,r,Z(a,2),g)}}function di(r){return oe(function(i,l){var a=-1,f=l.length,g=f>1?l[f-1]:n,v=f>2?l[2]:n;for(g=r.length>3&&typeof g==\"function\"?(f--,g):n,v&&it(l[0],l[1],v)&&(g=f<3?n:g,f=1),i=we(i);++a<f;){var y=l[a];y&&r(i,y,a,g)}return i})}function Np(r,i){return function(l,a){if(l==null)return l;if(!ft(l))return r(l,a);for(var f=l.length,g=i?f:-1,v=we(l);(i?g--:++g<f)&&a(v[g],g,v)!==!1;);return l}}function Op(r){return function(i,l,a){for(var f=-1,g=we(i),v=a(i),y=v.length;y--;){var x=v[r?y:++f];if(l(g[x],x,g)===!1)break}return i}}function qS(r,i,l){var a=i&re,f=Fo(r);function g(){var v=this&&this!==Ke&&this instanceof g?f:r;return v.apply(a?l:this,arguments)}return g}function Dp(r){return function(i){i=ge(i);var l=oi(i)?tn(i):n,a=l?l[0]:i.charAt(0),f=l?Jn(l,1).join(\"\"):i.slice(1);return a[r]()+f}}function hi(r){return function(i){return Ra(Ng(Mg(i).replace(By,\"\")),r,\"\")}}function Fo(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var l=fi(r.prototype),a=r.apply(l,i);return Le(a)?a:l}}function JS(r,i,l){var a=Fo(r);function f(){for(var g=arguments.length,v=R(g),y=g,x=pi(f);y--;)v[y]=arguments[y];var I=g<3&&v[0]!==x&&v[g-1]!==x?[]:Kn(v,x);if(g-=I.length,g<l)return Bp(r,i,vl,f.placeholder,n,v,I,n,n,l-g);var A=this&&this!==Ke&&this instanceof f?a:r;return Et(A,this,v)}return f}function Fp(r){return function(i,l,a){var f=we(i);if(!ft(i)){var g=Z(l,3);i=Qe(i),l=function(y){return g(f[y],y,f)}}var v=r(i,l,a);return v>-1?f[g?i[v]:v]:n}}function zp(r){return Ln(function(i){var l=i.length,a=l,f=Wt.prototype.thru;for(r&&i.reverse();a--;){var g=i[a];if(typeof g!=\"function\")throw new Ut(c);if(f&&!v&&Sl(g)==\"wrapper\")var v=new Wt([],!0)}for(a=v?a:l;++a<l;){g=i[a];var y=Sl(g),x=y==\"wrapper\"?lc(g):n;x&&fc(x[0])&&x[1]==(H|E|U|K)&&!x[4].length&&x[9]==1?v=v[Sl(x[0])].apply(v,x[3]):v=g.length==1&&fc(g)?v[y]():v.thru(g)}return function(){var I=arguments,A=I[0];if(v&&I.length==1&&te(A))return v.plant(A).value();for(var M=0,W=l?i[M].apply(this,I):A;++M<l;)W=i[M].call(this,W);return W}})}function vl(r,i,l,a,f,g,v,y,x,I){var A=i&H,M=i&re,W=i&_,V=i&(E|T),q=i&xe,ie=W?n:Fo(r);function J(){for(var le=arguments.length,ce=R(le),Rt=le;Rt--;)ce[Rt]=arguments[Rt];if(V)var ot=pi(J),Lt=aw(ce,ot);if(a&&(ce=Tp(ce,a,f,V)),g&&(ce=Mp(ce,g,v,V)),le-=Lt,V&&le<I){var De=Kn(ce,ot);return Bp(r,i,vl,J.placeholder,l,ce,De,y,x,I-le)}var on=M?l:this,Mn=W?on[r]:r;return le=ce.length,y?ce=m_(ce,y):q&&le>1&&ce.reverse(),A&&x<le&&(ce.length=x),this&&this!==Ke&&this instanceof J&&(Mn=ie||Fo(Mn)),Mn.apply(on,ce)}return J}function Up(r,i){return function(l,a){return kS(l,r,i(a),{})}}function ml(r,i){return function(l,a){var f;if(l===n&&a===n)return i;if(l!==n&&(f=l),a!==n){if(f===n)return a;typeof l==\"string\"||typeof a==\"string\"?(l=kt(l),a=kt(a)):(l=Ep(l),a=Ep(a)),f=r(l,a)}return f}}function rc(r){return Ln(function(i){return i=Pe(i,Ct(Z())),oe(function(l){var a=this;return r(i,function(f){return Et(f,a,l)})})})}function yl(r,i){i=i===n?\" \":kt(i);var l=i.length;if(l<2)return l?qa(i,r):i;var a=qa(i,il(r/si(i)));return oi(i)?Jn(tn(a),0,r).join(\"\"):a.slice(0,r)}function jS(r,i,l,a){var f=i&re,g=Fo(r);function v(){for(var y=-1,x=arguments.length,I=-1,A=a.length,M=R(A+x),W=this&&this!==Ke&&this instanceof v?g:r;++I<A;)M[I]=a[I];for(;x--;)M[I++]=arguments[++y];return Et(W,f?l:this,M)}return v}function Wp(r){return function(i,l,a){return a&&typeof a!=\"number\"&&it(i,l,a)&&(l=a=n),i=Tn(i),l===n?(l=i,i=0):l=Tn(l),a=a===n?i<l?1:-1:Tn(a),zS(i,l,a,r)}}function wl(r){return function(i,l){return typeof i==\"string\"&&typeof l==\"string\"||(i=Qt(i),l=Qt(l)),r(i,l)}}function Bp(r,i,l,a,f,g,v,y,x,I){var A=i&E,M=A?v:n,W=A?n:v,V=A?g:n,q=A?n:g;i|=A?U:G,i&=~(A?G:U),i&w||(i&=~(re|_));var ie=[r,i,f,V,M,q,W,y,x,I],J=l.apply(n,ie);return fc(r)&&jp(J,ie),J.placeholder=a,bp(J,r,i)}function ic(r){var i=We[r];return function(l,a){if(l=Qt(l),a=a==null?0:Je(ne(a),292),a&&bh(l)){var f=(ge(l)+\"e\").split(\"e\"),g=i(f[0]+\"e\"+(+f[1]+a));return f=(ge(g)+\"e\").split(\"e\"),+(f[0]+\"e\"+(+f[1]-a))}return i(l)}}var bS=ai&&1/Xs(new ai([,-0]))[1]==jt?function(r){return new ai(r)}:Pc;function Hp(r){return function(i){var l=je(i);return l==bt?Oa(i):l==en?vw(i):uw(i,r(i))}}function Rn(r,i,l,a,f,g,v,y){var x=i&_;if(!x&&typeof r!=\"function\")throw new Ut(c);var I=a?a.length:0;if(I||(i&=~(U|G),a=f=n),v=v===n?v:Be(ne(v),0),y=y===n?y:ne(y),I-=f?f.length:0,i&G){var A=a,M=f;a=f=n}var W=x?n:lc(r),V=[r,i,l,a,f,A,M,g,v,y];if(W&&p_(V,W),r=V[0],i=V[1],l=V[2],a=V[3],f=V[4],y=V[9]=V[9]===n?x?0:r.length:Be(V[9]-I,0),!y&&i&(E|T)&&(i&=~(E|T)),!i||i==re)var q=qS(r,i,l);else i==E||i==T?q=JS(r,i,y):(i==U||i==(re|U))&&!f.length?q=jS(r,i,l,a):q=vl.apply(n,V);var ie=W?_p:jp;return bp(ie(q,V),r,i)}function $p(r,i,l,a){return r===n||rn(r,ui[l])&&!me.call(a,l)?i:r}function Qp(r,i,l,a,f,g){return Le(r)&&Le(i)&&(g.set(i,r),dl(r,i,n,Qp,g),g.delete(i)),r}function e_(r){return Wo(r)?n:r}function Gp(r,i,l,a,f,g){var v=l&F,y=r.length,x=i.length;if(y!=x&&!(v&&x>y))return!1;var I=g.get(r),A=g.get(i);if(I&&A)return I==i&&A==r;var M=-1,W=!0,V=l&z?new Pr:n;for(g.set(r,i),g.set(i,r);++M<y;){var q=r[M],ie=i[M];if(a)var J=v?a(ie,q,M,i,r,g):a(q,ie,M,r,i,g);if(J!==n){if(J)continue;W=!1;break}if(V){if(!La(i,function(le,ce){if(!ko(V,ce)&&(q===le||f(q,le,l,a,g)))return V.push(ce)})){W=!1;break}}else if(!(q===ie||f(q,ie,l,a,g))){W=!1;break}}return g.delete(r),g.delete(i),W}function t_(r,i,l,a,f,g,v){switch(l){case ni:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case Co:return!(r.byteLength!=i.byteLength||!g(new el(r),new el(i)));case yo:case wo:case So:return rn(+r,+i);case Bs:return r.name==i.name&&r.message==i.message;case _o:case xo:return r==i+\"\";case bt:var y=Oa;case en:var x=a&F;if(y||(y=Xs),r.size!=i.size&&!x)return!1;var I=v.get(r);if(I)return I==i;a|=z,v.set(r,i);var A=Gp(y(r),y(i),a,f,g,v);return v.delete(r),A;case $s:if(Ao)return Ao.call(r)==Ao.call(i)}return!1}function n_(r,i,l,a,f,g){var v=l&F,y=oc(r),x=y.length,I=oc(i),A=I.length;if(x!=A&&!v)return!1;for(var M=x;M--;){var W=y[M];if(!(v?W in i:me.call(i,W)))return!1}var V=g.get(r),q=g.get(i);if(V&&q)return V==i&&q==r;var ie=!0;g.set(r,i),g.set(i,r);for(var J=v;++M<x;){W=y[M];var le=r[W],ce=i[W];if(a)var Rt=v?a(ce,le,W,i,r,g):a(le,ce,W,r,i,g);if(!(Rt===n?le===ce||f(le,ce,l,a,g):Rt)){ie=!1;break}J||(J=W==\"constructor\")}if(ie&&!J){var ot=r.constructor,Lt=i.constructor;ot!=Lt&&\"constructor\"in r&&\"constructor\"in i&&!(typeof ot==\"function\"&&ot instanceof ot&&typeof Lt==\"function\"&&Lt instanceof Lt)&&(ie=!1)}return g.delete(r),g.delete(i),ie}function Ln(r){return hc(qp(r,n,og),r+\"\")}function oc(r){return cp(r,Qe,ac)}function sc(r){return cp(r,dt,Vp)}var lc=sl?function(r){return sl.get(r)}:Pc;function Sl(r){for(var i=r.name+\"\",l=ci[i],a=me.call(ci,i)?l.length:0;a--;){var f=l[a],g=f.func;if(g==null||g==r)return f.name}return i}function pi(r){var i=me.call(p,\"placeholder\")?p:r;return i.placeholder}function Z(){var r=p.iteratee||Cc;return r=r===Cc?hp:r,arguments.length?r(arguments[0],arguments[1]):r}function _l(r,i){var l=r.__data__;return c_(i)?l[typeof i==\"string\"?\"string\":\"hash\"]:l.map}function uc(r){for(var i=Qe(r),l=i.length;l--;){var a=i[l],f=r[a];i[l]=[a,f,Xp(f)]}return i}function Ir(r,i){var l=hw(r,i);return dp(l)?l:n}function r_(r){var i=me.call(r,Cr),l=r[Cr];try{r[Cr]=n;var a=!0}catch{}var f=js.call(r);return a&&(i?r[Cr]=l:delete r[Cr]),f}var ac=Fa?function(r){return r==null?[]:(r=we(r),Gn(Fa(r),function(i){return Jh.call(r,i)}))}:Rc,Vp=Fa?function(r){for(var i=[];r;)Vn(i,ac(r)),r=tl(r);return i}:Rc,je=rt;(za&&je(new za(new ArrayBuffer(1)))!=ni||Ro&&je(new Ro)!=bt||Ua&&je(Ua.resolve())!=lh||ai&&je(new ai)!=en||Lo&&je(new Lo)!=Eo)&&(je=function(r){var i=rt(r),l=i==En?r.constructor:n,a=l?Ar(l):\"\";if(a)switch(a){case Ww:return ni;case Bw:return bt;case Hw:return lh;case $w:return en;case Qw:return Eo}return i});function i_(r,i,l){for(var a=-1,f=l.length;++a<f;){var g=l[a],v=g.size;switch(g.type){case\"drop\":r+=v;break;case\"dropRight\":i-=v;break;case\"take\":i=Je(i,r+v);break;case\"takeRight\":r=Be(r,i-v);break}}return{start:r,end:i}}function o_(r){var i=r.match(fy);return i?i[1].split(dy):[]}function Kp(r,i,l){i=qn(i,r);for(var a=-1,f=i.length,g=!1;++a<f;){var v=vn(i[a]);if(!(g=r!=null&&l(r,v)))break;r=r[v]}return g||++a!=f?g:(f=r==null?0:r.length,!!f&&Ll(f)&&In(v,f)&&(te(r)||Tr(r)))}function s_(r){var i=r.length,l=new r.constructor(i);return i&&typeof r[0]==\"string\"&&me.call(r,\"index\")&&(l.index=r.index,l.input=r.input),l}function Yp(r){return typeof r.constructor==\"function\"&&!zo(r)?fi(tl(r)):{}}function l_(r,i,l){var a=r.constructor;switch(i){case Co:return nc(r);case yo:case wo:return new a(+r);case ni:return GS(r,l);case ua:case aa:case ca:case fa:case da:case ha:case pa:case ga:case va:return Ip(r,l);case bt:return new a;case So:case xo:return new a(r);case _o:return VS(r);case en:return new a;case $s:return KS(r)}}function u_(r,i){var l=i.length;if(!l)return r;var a=l-1;return i[a]=(l>1?\"& \":\"\")+i[a],i=i.join(l>2?\", \":\" \"),r.replace(cy,`{\n/* [wrapped with `+i+`] */\n`)}function a_(r){return te(r)||Tr(r)||!!(jh&&r&&r[jh])}function In(r,i){var l=typeof r;return i=i??B,!!i&&(l==\"number\"||l!=\"symbol\"&&_y.test(r))&&r>-1&&r%1==0&&r<i}function it(r,i,l){if(!Le(l))return!1;var a=typeof i;return(a==\"number\"?ft(l)&&In(i,l.length):a==\"string\"&&i in l)?rn(l[i],r):!1}function cc(r,i){if(te(r))return!1;var l=typeof r;return l==\"number\"||l==\"symbol\"||l==\"boolean\"||r==null||Pt(r)?!0:sy.test(r)||!oy.test(r)||i!=null&&r in we(i)}function c_(r){var i=typeof r;return i==\"string\"||i==\"number\"||i==\"symbol\"||i==\"boolean\"?r!==\"__proto__\":r===null}function fc(r){var i=Sl(r),l=p[i];if(typeof l!=\"function\"||!(i in ae.prototype))return!1;if(r===l)return!0;var a=lc(l);return!!a&&r===a[0]}function f_(r){return!!Xh&&Xh in r}var d_=qs?An:Lc;function zo(r){var i=r&&r.constructor,l=typeof i==\"function\"&&i.prototype||ui;return r===l}function Xp(r){return r===r&&!Le(r)}function Zp(r,i){return function(l){return l==null?!1:l[r]===i&&(i!==n||r in we(l))}}function h_(r){var i=Pl(r,function(a){return l.size===m&&l.clear(),a}),l=i.cache;return i}function p_(r,i){var l=r[1],a=i[1],f=l|a,g=f<(re|_|H),v=a==H&&l==E||a==H&&l==K&&r[7].length<=i[8]||a==(H|K)&&i[7].length<=i[8]&&l==E;if(!(g||v))return r;a&re&&(r[2]=i[2],f|=l&re?0:w);var y=i[3];if(y){var x=r[3];r[3]=x?Tp(x,y,i[4]):y,r[4]=x?Kn(r[3],C):i[4]}return y=i[5],y&&(x=r[5],r[5]=x?Mp(x,y,i[6]):y,r[6]=x?Kn(r[5],C):i[6]),y=i[7],y&&(r[7]=y),a&H&&(r[8]=r[8]==null?i[8]:Je(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=f,r}function g_(r){var i=[];if(r!=null)for(var l in we(r))i.push(l);return i}function v_(r){return js.call(r)}function qp(r,i,l){return i=Be(i===n?r.length-1:i,0),function(){for(var a=arguments,f=-1,g=Be(a.length-i,0),v=R(g);++f<g;)v[f]=a[i+f];f=-1;for(var y=R(i+1);++f<i;)y[f]=a[f];return y[i]=l(v),Et(r,this,y)}}function Jp(r,i){return i.length<2?r:Lr(r,Ht(i,0,-1))}function m_(r,i){for(var l=r.length,a=Je(i.length,l),f=ct(r);a--;){var g=i[a];r[a]=In(g,l)?f[g]:n}return r}function dc(r,i){if(!(i===\"constructor\"&&typeof r[i]==\"function\")&&i!=\"__proto__\")return r[i]}var jp=eg(_p),Uo=Mw||function(r,i){return Ke.setTimeout(r,i)},hc=eg(BS);function bp(r,i,l){var a=i+\"\";return hc(r,u_(a,y_(o_(a),l)))}function eg(r){var i=0,l=0;return function(){var a=Fw(),f=xr-(a-l);if(l=a,f>0){if(++i>=_r)return arguments[0]}else i=0;return r.apply(n,arguments)}}function xl(r,i){var l=-1,a=r.length,f=a-1;for(i=i===n?a:i;++l<i;){var g=Za(l,f),v=r[g];r[g]=r[l],r[l]=v}return r.length=i,r}var tg=h_(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(\"\"),r.replace(ly,function(l,a,f,g){i.push(f?g.replace(gy,\"$1\"):a||l)}),i});function vn(r){if(typeof r==\"string\"||Pt(r))return r;var i=r+\"\";return i==\"0\"&&1/r==-jt?\"-0\":i}function Ar(r){if(r!=null){try{return Js.call(r)}catch{}try{return r+\"\"}catch{}}return\"\"}function y_(r,i){return zt(xn,function(l){var a=\"_.\"+l[0];i&l[1]&&!Ks(r,a)&&r.push(a)}),r.sort()}function ng(r){if(r instanceof ae)return r.clone();var i=new Wt(r.__wrapped__,r.__chain__);return i.__actions__=ct(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function w_(r,i,l){(l?it(r,i,l):i===n)?i=1:i=Be(ne(i),0);var a=r==null?0:r.length;if(!a||i<1)return[];for(var f=0,g=0,v=R(il(a/i));f<a;)v[g++]=Ht(r,f,f+=i);return v}function S_(r){for(var i=-1,l=r==null?0:r.length,a=0,f=[];++i<l;){var g=r[i];g&&(f[a++]=g)}return f}function __(){var r=arguments.length;if(!r)return[];for(var i=R(r-1),l=arguments[0],a=r;a--;)i[a-1]=arguments[a];return Vn(te(l)?ct(l):[l],Ye(i,1))}var x_=oe(function(r,i){return Oe(r)?Mo(r,Ye(i,1,Oe,!0)):[]}),E_=oe(function(r,i){var l=$t(i);return Oe(l)&&(l=n),Oe(r)?Mo(r,Ye(i,1,Oe,!0),Z(l,2)):[]}),C_=oe(function(r,i){var l=$t(i);return Oe(l)&&(l=n),Oe(r)?Mo(r,Ye(i,1,Oe,!0),n,l):[]});function k_(r,i,l){var a=r==null?0:r.length;return a?(i=l||i===n?1:ne(i),Ht(r,i<0?0:i,a)):[]}function P_(r,i,l){var a=r==null?0:r.length;return a?(i=l||i===n?1:ne(i),i=a-i,Ht(r,0,i<0?0:i)):[]}function R_(r,i){return r&&r.length?pl(r,Z(i,3),!0,!0):[]}function L_(r,i){return r&&r.length?pl(r,Z(i,3),!0):[]}function I_(r,i,l,a){var f=r==null?0:r.length;return f?(l&&typeof l!=\"number\"&&it(r,i,l)&&(l=0,a=f),_S(r,i,l,a)):[]}function rg(r,i,l){var a=r==null?0:r.length;if(!a)return-1;var f=l==null?0:ne(l);return f<0&&(f=Be(a+f,0)),Ys(r,Z(i,3),f)}function ig(r,i,l){var a=r==null?0:r.length;if(!a)return-1;var f=a-1;return l!==n&&(f=ne(l),f=l<0?Be(a+f,0):Je(f,a-1)),Ys(r,Z(i,3),f,!0)}function og(r){var i=r==null?0:r.length;return i?Ye(r,1):[]}function A_(r){var i=r==null?0:r.length;return i?Ye(r,jt):[]}function T_(r,i){var l=r==null?0:r.length;return l?(i=i===n?1:ne(i),Ye(r,i)):[]}function M_(r){for(var i=-1,l=r==null?0:r.length,a={};++i<l;){var f=r[i];a[f[0]]=f[1]}return a}function sg(r){return r&&r.length?r[0]:n}function N_(r,i,l){var a=r==null?0:r.length;if(!a)return-1;var f=l==null?0:ne(l);return f<0&&(f=Be(a+f,0)),ii(r,i,f)}function O_(r){var i=r==null?0:r.length;return i?Ht(r,0,-1):[]}var D_=oe(function(r){var i=Pe(r,ec);return i.length&&i[0]===r[0]?Ga(i):[]}),F_=oe(function(r){var i=$t(r),l=Pe(r,ec);return i===$t(l)?i=n:l.pop(),l.length&&l[0]===r[0]?Ga(l,Z(i,2)):[]}),z_=oe(function(r){var i=$t(r),l=Pe(r,ec);return i=typeof i==\"function\"?i:n,i&&l.pop(),l.length&&l[0]===r[0]?Ga(l,n,i):[]});function U_(r,i){return r==null?\"\":Ow.call(r,i)}function $t(r){var i=r==null?0:r.length;return i?r[i-1]:n}function W_(r,i,l){var a=r==null?0:r.length;if(!a)return-1;var f=a;return l!==n&&(f=ne(l),f=f<0?Be(a+f,0):Je(f,a-1)),i===i?yw(r,i,f):Ys(r,Bh,f,!0)}function B_(r,i){return r&&r.length?mp(r,ne(i)):n}var H_=oe(lg);function lg(r,i){return r&&r.length&&i&&i.length?Xa(r,i):r}function $_(r,i,l){return r&&r.length&&i&&i.length?Xa(r,i,Z(l,2)):r}function Q_(r,i,l){return r&&r.length&&i&&i.length?Xa(r,i,n,l):r}var G_=Ln(function(r,i){var l=r==null?0:r.length,a=Ba(r,i);return Sp(r,Pe(i,function(f){return In(f,l)?+f:f}).sort(Ap)),a});function V_(r,i){var l=[];if(!(r&&r.length))return l;var a=-1,f=[],g=r.length;for(i=Z(i,3);++a<g;){var v=r[a];i(v,a,r)&&(l.push(v),f.push(a))}return Sp(r,f),l}function pc(r){return r==null?r:Uw.call(r)}function K_(r,i,l){var a=r==null?0:r.length;return a?(l&&typeof l!=\"number\"&&it(r,i,l)?(i=0,l=a):(i=i==null?0:ne(i),l=l===n?a:ne(l)),Ht(r,i,l)):[]}function Y_(r,i){return hl(r,i)}function X_(r,i,l){return Ja(r,i,Z(l,2))}function Z_(r,i){var l=r==null?0:r.length;if(l){var a=hl(r,i);if(a<l&&rn(r[a],i))return a}return-1}function q_(r,i){return hl(r,i,!0)}function J_(r,i,l){return Ja(r,i,Z(l,2),!0)}function j_(r,i){var l=r==null?0:r.length;if(l){var a=hl(r,i,!0)-1;if(rn(r[a],i))return a}return-1}function b_(r){return r&&r.length?xp(r):[]}function ex(r,i){return r&&r.length?xp(r,Z(i,2)):[]}function tx(r){var i=r==null?0:r.length;return i?Ht(r,1,i):[]}function nx(r,i,l){return r&&r.length?(i=l||i===n?1:ne(i),Ht(r,0,i<0?0:i)):[]}function rx(r,i,l){var a=r==null?0:r.length;return a?(i=l||i===n?1:ne(i),i=a-i,Ht(r,i<0?0:i,a)):[]}function ix(r,i){return r&&r.length?pl(r,Z(i,3),!1,!0):[]}function ox(r,i){return r&&r.length?pl(r,Z(i,3)):[]}var sx=oe(function(r){return Zn(Ye(r,1,Oe,!0))}),lx=oe(function(r){var i=$t(r);return Oe(i)&&(i=n),Zn(Ye(r,1,Oe,!0),Z(i,2))}),ux=oe(function(r){var i=$t(r);return i=typeof i==\"function\"?i:n,Zn(Ye(r,1,Oe,!0),n,i)});function ax(r){return r&&r.length?Zn(r):[]}function cx(r,i){return r&&r.length?Zn(r,Z(i,2)):[]}function fx(r,i){return i=typeof i==\"function\"?i:n,r&&r.length?Zn(r,n,i):[]}function gc(r){if(!(r&&r.length))return[];var i=0;return r=Gn(r,function(l){if(Oe(l))return i=Be(l.length,i),!0}),Ma(i,function(l){return Pe(r,Ia(l))})}function ug(r,i){if(!(r&&r.length))return[];var l=gc(r);return i==null?l:Pe(l,function(a){return Et(i,n,a)})}var dx=oe(function(r,i){return Oe(r)?Mo(r,i):[]}),hx=oe(function(r){return ba(Gn(r,Oe))}),px=oe(function(r){var i=$t(r);return Oe(i)&&(i=n),ba(Gn(r,Oe),Z(i,2))}),gx=oe(function(r){var i=$t(r);return i=typeof i==\"function\"?i:n,ba(Gn(r,Oe),n,i)}),vx=oe(gc);function mx(r,i){return Pp(r||[],i||[],To)}function yx(r,i){return Pp(r||[],i||[],Do)}var wx=oe(function(r){var i=r.length,l=i>1?r[i-1]:n;return l=typeof l==\"function\"?(r.pop(),l):n,ug(r,l)});function ag(r){var i=p(r);return i.__chain__=!0,i}function Sx(r,i){return i(r),r}function El(r,i){return i(r)}var _x=Ln(function(r){var i=r.length,l=i?r[0]:0,a=this.__wrapped__,f=function(g){return Ba(g,r)};return i>1||this.__actions__.length||!(a instanceof ae)||!In(l)?this.thru(f):(a=a.slice(l,+l+(i?1:0)),a.__actions__.push({func:El,args:[f],thisArg:n}),new Wt(a,this.__chain__).thru(function(g){return i&&!g.length&&g.push(n),g}))});function xx(){return ag(this)}function Ex(){return new Wt(this.value(),this.__chain__)}function Cx(){this.__values__===n&&(this.__values__=Eg(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function kx(){return this}function Px(r){for(var i,l=this;l instanceof ul;){var a=ng(l);a.__index__=0,a.__values__=n,i?f.__wrapped__=a:i=a;var f=a;l=l.__wrapped__}return f.__wrapped__=r,i}function Rx(){var r=this.__wrapped__;if(r instanceof ae){var i=r;return this.__actions__.length&&(i=new ae(this)),i=i.reverse(),i.__actions__.push({func:El,args:[pc],thisArg:n}),new Wt(i,this.__chain__)}return this.thru(pc)}function Lx(){return kp(this.__wrapped__,this.__actions__)}var Ix=gl(function(r,i,l){me.call(r,l)?++r[l]:Pn(r,l,1)});function Ax(r,i,l){var a=te(r)?Uh:SS;return l&&it(r,i,l)&&(i=n),a(r,Z(i,3))}function Tx(r,i){var l=te(r)?Gn:up;return l(r,Z(i,3))}var Mx=Fp(rg),Nx=Fp(ig);function Ox(r,i){return Ye(Cl(r,i),1)}function Dx(r,i){return Ye(Cl(r,i),jt)}function Fx(r,i,l){return l=l===n?1:ne(l),Ye(Cl(r,i),l)}function cg(r,i){var l=te(r)?zt:Xn;return l(r,Z(i,3))}function fg(r,i){var l=te(r)?tw:lp;return l(r,Z(i,3))}var zx=gl(function(r,i,l){me.call(r,l)?r[l].push(i):Pn(r,l,[i])});function Ux(r,i,l,a){r=ft(r)?r:vi(r),l=l&&!a?ne(l):0;var f=r.length;return l<0&&(l=Be(f+l,0)),Il(r)?l<=f&&r.indexOf(i,l)>-1:!!f&&ii(r,i,l)>-1}var Wx=oe(function(r,i,l){var a=-1,f=typeof i==\"function\",g=ft(r)?R(r.length):[];return Xn(r,function(v){g[++a]=f?Et(i,v,l):No(v,i,l)}),g}),Bx=gl(function(r,i,l){Pn(r,l,i)});function Cl(r,i){var l=te(r)?Pe:pp;return l(r,Z(i,3))}function Hx(r,i,l,a){return r==null?[]:(te(i)||(i=i==null?[]:[i]),l=a?n:l,te(l)||(l=l==null?[]:[l]),yp(r,i,l))}var $x=gl(function(r,i,l){r[l?0:1].push(i)},function(){return[[],[]]});function Qx(r,i,l){var a=te(r)?Ra:$h,f=arguments.length<3;return a(r,Z(i,4),l,f,Xn)}function Gx(r,i,l){var a=te(r)?nw:$h,f=arguments.length<3;return a(r,Z(i,4),l,f,lp)}function Vx(r,i){var l=te(r)?Gn:up;return l(r,Rl(Z(i,3)))}function Kx(r){var i=te(r)?rp:US;return i(r)}function Yx(r,i,l){(l?it(r,i,l):i===n)?i=1:i=ne(i);var a=te(r)?gS:WS;return a(r,i)}function Xx(r){var i=te(r)?vS:HS;return i(r)}function Zx(r){if(r==null)return 0;if(ft(r))return Il(r)?si(r):r.length;var i=je(r);return i==bt||i==en?r.size:Ka(r).length}function qx(r,i,l){var a=te(r)?La:$S;return l&&it(r,i,l)&&(i=n),a(r,Z(i,3))}var Jx=oe(function(r,i){if(r==null)return[];var l=i.length;return l>1&&it(r,i[0],i[1])?i=[]:l>2&&it(i[0],i[1],i[2])&&(i=[i[0]]),yp(r,Ye(i,1),[])}),kl=Tw||function(){return Ke.Date.now()};function jx(r,i){if(typeof i!=\"function\")throw new Ut(c);return r=ne(r),function(){if(--r<1)return i.apply(this,arguments)}}function dg(r,i,l){return i=l?n:i,i=r&&i==null?r.length:i,Rn(r,H,n,n,n,n,i)}function hg(r,i){var l;if(typeof i!=\"function\")throw new Ut(c);return r=ne(r),function(){return--r>0&&(l=i.apply(this,arguments)),r<=1&&(i=n),l}}var vc=oe(function(r,i,l){var a=re;if(l.length){var f=Kn(l,pi(vc));a|=U}return Rn(r,a,i,l,f)}),pg=oe(function(r,i,l){var a=re|_;if(l.length){var f=Kn(l,pi(pg));a|=U}return Rn(i,a,r,l,f)});function gg(r,i,l){i=l?n:i;var a=Rn(r,E,n,n,n,n,n,i);return a.placeholder=gg.placeholder,a}function vg(r,i,l){i=l?n:i;var a=Rn(r,T,n,n,n,n,n,i);return a.placeholder=vg.placeholder,a}function mg(r,i,l){var a,f,g,v,y,x,I=0,A=!1,M=!1,W=!0;if(typeof r!=\"function\")throw new Ut(c);i=Qt(i)||0,Le(l)&&(A=!!l.leading,M=\"maxWait\"in l,g=M?Be(Qt(l.maxWait)||0,i):g,W=\"trailing\"in l?!!l.trailing:W);function V(De){var on=a,Mn=f;return a=f=n,I=De,v=r.apply(Mn,on),v}function q(De){return I=De,y=Uo(le,i),A?V(De):v}function ie(De){var on=De-x,Mn=De-I,Fg=i-on;return M?Je(Fg,g-Mn):Fg}function J(De){var on=De-x,Mn=De-I;return x===n||on>=i||on<0||M&&Mn>=g}function le(){var De=kl();if(J(De))return ce(De);y=Uo(le,ie(De))}function ce(De){return y=n,W&&a?V(De):(a=f=n,v)}function Rt(){y!==n&&Rp(y),I=0,a=x=f=y=n}function ot(){return y===n?v:ce(kl())}function Lt(){var De=kl(),on=J(De);if(a=arguments,f=this,x=De,on){if(y===n)return q(x);if(M)return Rp(y),y=Uo(le,i),V(x)}return y===n&&(y=Uo(le,i)),v}return Lt.cancel=Rt,Lt.flush=ot,Lt}var bx=oe(function(r,i){return sp(r,1,i)}),eE=oe(function(r,i,l){return sp(r,Qt(i)||0,l)});function tE(r){return Rn(r,xe)}function Pl(r,i){if(typeof r!=\"function\"||i!=null&&typeof i!=\"function\")throw new Ut(c);var l=function(){var a=arguments,f=i?i.apply(this,a):a[0],g=l.cache;if(g.has(f))return g.get(f);var v=r.apply(this,a);return l.cache=g.set(f,v)||g,v};return l.cache=new(Pl.Cache||kn),l}Pl.Cache=kn;function Rl(r){if(typeof r!=\"function\")throw new Ut(c);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function nE(r){return hg(2,r)}var rE=QS(function(r,i){i=i.length==1&&te(i[0])?Pe(i[0],Ct(Z())):Pe(Ye(i,1),Ct(Z()));var l=i.length;return oe(function(a){for(var f=-1,g=Je(a.length,l);++f<g;)a[f]=i[f].call(this,a[f]);return Et(r,this,a)})}),mc=oe(function(r,i){var l=Kn(i,pi(mc));return Rn(r,U,n,i,l)}),yg=oe(function(r,i){var l=Kn(i,pi(yg));return Rn(r,G,n,i,l)}),iE=Ln(function(r,i){return Rn(r,K,n,n,n,i)});function oE(r,i){if(typeof r!=\"function\")throw new Ut(c);return i=i===n?i:ne(i),oe(r,i)}function sE(r,i){if(typeof r!=\"function\")throw new Ut(c);return i=i==null?0:Be(ne(i),0),oe(function(l){var a=l[i],f=Jn(l,0,i);return a&&Vn(f,a),Et(r,this,f)})}function lE(r,i,l){var a=!0,f=!0;if(typeof r!=\"function\")throw new Ut(c);return Le(l)&&(a=\"leading\"in l?!!l.leading:a,f=\"trailing\"in l?!!l.trailing:f),mg(r,i,{leading:a,maxWait:i,trailing:f})}function uE(r){return dg(r,1)}function aE(r,i){return mc(tc(i),r)}function cE(){if(!arguments.length)return[];var r=arguments[0];return te(r)?r:[r]}function fE(r){return Bt(r,O)}function dE(r,i){return i=typeof i==\"function\"?i:n,Bt(r,O,i)}function hE(r){return Bt(r,k|O)}function pE(r,i){return i=typeof i==\"function\"?i:n,Bt(r,k|O,i)}function gE(r,i){return i==null||op(r,i,Qe(i))}function rn(r,i){return r===i||r!==r&&i!==i}var vE=wl(Qa),mE=wl(function(r,i){return r>=i}),Tr=fp(function(){return arguments}())?fp:function(r){return Me(r)&&me.call(r,\"callee\")&&!Jh.call(r,\"callee\")},te=R.isArray,yE=Mh?Ct(Mh):PS;function ft(r){return r!=null&&Ll(r.length)&&!An(r)}function Oe(r){return Me(r)&&ft(r)}function wE(r){return r===!0||r===!1||Me(r)&&rt(r)==yo}var jn=Nw||Lc,SE=Nh?Ct(Nh):RS;function _E(r){return Me(r)&&r.nodeType===1&&!Wo(r)}function xE(r){if(r==null)return!0;if(ft(r)&&(te(r)||typeof r==\"string\"||typeof r.splice==\"function\"||jn(r)||gi(r)||Tr(r)))return!r.length;var i=je(r);if(i==bt||i==en)return!r.size;if(zo(r))return!Ka(r).length;for(var l in r)if(me.call(r,l))return!1;return!0}function EE(r,i){return Oo(r,i)}function CE(r,i,l){l=typeof l==\"function\"?l:n;var a=l?l(r,i):n;return a===n?Oo(r,i,n,l):!!a}function yc(r){if(!Me(r))return!1;var i=rt(r);return i==Bs||i==Y1||typeof r.message==\"string\"&&typeof r.name==\"string\"&&!Wo(r)}function kE(r){return typeof r==\"number\"&&bh(r)}function An(r){if(!Le(r))return!1;var i=rt(r);return i==Hs||i==sh||i==ti||i==Z1}function wg(r){return typeof r==\"number\"&&r==ne(r)}function Ll(r){return typeof r==\"number\"&&r>-1&&r%1==0&&r<=B}function Le(r){var i=typeof r;return r!=null&&(i==\"object\"||i==\"function\")}function Me(r){return r!=null&&typeof r==\"object\"}var Sg=Oh?Ct(Oh):IS;function PE(r,i){return r===i||Va(r,i,uc(i))}function RE(r,i,l){return l=typeof l==\"function\"?l:n,Va(r,i,uc(i),l)}function LE(r){return _g(r)&&r!=+r}function IE(r){if(d_(r))throw new j(u);return dp(r)}function AE(r){return r===null}function TE(r){return r==null}function _g(r){return typeof r==\"number\"||Me(r)&&rt(r)==So}function Wo(r){if(!Me(r)||rt(r)!=En)return!1;var i=tl(r);if(i===null)return!0;var l=me.call(i,\"constructor\")&&i.constructor;return typeof l==\"function\"&&l instanceof l&&Js.call(l)==Rw}var wc=Dh?Ct(Dh):AS;function ME(r){return wg(r)&&r>=-B&&r<=B}var xg=Fh?Ct(Fh):TS;function Il(r){return typeof r==\"string\"||!te(r)&&Me(r)&&rt(r)==xo}function Pt(r){return typeof r==\"symbol\"||Me(r)&&rt(r)==$s}var gi=zh?Ct(zh):MS;function NE(r){return r===n}function OE(r){return Me(r)&&je(r)==Eo}function DE(r){return Me(r)&&rt(r)==J1}var FE=wl(Ya),zE=wl(function(r,i){return r<=i});function Eg(r){if(!r)return[];if(ft(r))return Il(r)?tn(r):ct(r);if(Po&&r[Po])return gw(r[Po]());var i=je(r),l=i==bt?Oa:i==en?Xs:vi;return l(r)}function Tn(r){if(!r)return r===0?r:0;if(r=Qt(r),r===jt||r===-jt){var i=r<0?-1:1;return i*b}return r===r?r:0}function ne(r){var i=Tn(r),l=i%1;return i===i?l?i-l:i:0}function Cg(r){return r?Rr(ne(r),0,he):0}function Qt(r){if(typeof r==\"number\")return r;if(Pt(r))return ee;if(Le(r)){var i=typeof r.valueOf==\"function\"?r.valueOf():r;r=Le(i)?i+\"\":i}if(typeof r!=\"string\")return r===0?r:+r;r=Qh(r);var l=yy.test(r);return l||Sy.test(r)?jy(r.slice(2),l?2:8):my.test(r)?ee:+r}function kg(r){return gn(r,dt(r))}function UE(r){return r?Rr(ne(r),-B,B):r===0?r:0}function ge(r){return r==null?\"\":kt(r)}var WE=di(function(r,i){if(zo(i)||ft(i)){gn(i,Qe(i),r);return}for(var l in i)me.call(i,l)&&To(r,l,i[l])}),Pg=di(function(r,i){gn(i,dt(i),r)}),Al=di(function(r,i,l,a){gn(i,dt(i),r,a)}),BE=di(function(r,i,l,a){gn(i,Qe(i),r,a)}),HE=Ln(Ba);function $E(r,i){var l=fi(r);return i==null?l:ip(l,i)}var QE=oe(function(r,i){r=we(r);var l=-1,a=i.length,f=a>2?i[2]:n;for(f&&it(i[0],i[1],f)&&(a=1);++l<a;)for(var g=i[l],v=dt(g),y=-1,x=v.length;++y<x;){var I=v[y],A=r[I];(A===n||rn(A,ui[I])&&!me.call(r,I))&&(r[I]=g[I])}return r}),GE=oe(function(r){return r.push(n,Qp),Et(Rg,n,r)});function VE(r,i){return Wh(r,Z(i,3),pn)}function KE(r,i){return Wh(r,Z(i,3),$a)}function YE(r,i){return r==null?r:Ha(r,Z(i,3),dt)}function XE(r,i){return r==null?r:ap(r,Z(i,3),dt)}function ZE(r,i){return r&&pn(r,Z(i,3))}function qE(r,i){return r&&$a(r,Z(i,3))}function JE(r){return r==null?[]:fl(r,Qe(r))}function jE(r){return r==null?[]:fl(r,dt(r))}function Sc(r,i,l){var a=r==null?n:Lr(r,i);return a===n?l:a}function bE(r,i){return r!=null&&Kp(r,i,xS)}function _c(r,i){return r!=null&&Kp(r,i,ES)}var eC=Up(function(r,i,l){i!=null&&typeof i.toString!=\"function\"&&(i=js.call(i)),r[i]=l},Ec(ht)),tC=Up(function(r,i,l){i!=null&&typeof i.toString!=\"function\"&&(i=js.call(i)),me.call(r,i)?r[i].push(l):r[i]=[l]},Z),nC=oe(No);function Qe(r){return ft(r)?np(r):Ka(r)}function dt(r){return ft(r)?np(r,!0):NS(r)}function rC(r,i){var l={};return i=Z(i,3),pn(r,function(a,f,g){Pn(l,i(a,f,g),a)}),l}function iC(r,i){var l={};return i=Z(i,3),pn(r,function(a,f,g){Pn(l,f,i(a,f,g))}),l}var oC=di(function(r,i,l){dl(r,i,l)}),Rg=di(function(r,i,l,a){dl(r,i,l,a)}),sC=Ln(function(r,i){var l={};if(r==null)return l;var a=!1;i=Pe(i,function(g){return g=qn(g,r),a||(a=g.length>1),g}),gn(r,sc(r),l),a&&(l=Bt(l,k|P|O,e_));for(var f=i.length;f--;)ja(l,i[f]);return l});function lC(r,i){return Lg(r,Rl(Z(i)))}var uC=Ln(function(r,i){return r==null?{}:DS(r,i)});function Lg(r,i){if(r==null)return{};var l=Pe(sc(r),function(a){return[a]});return i=Z(i),wp(r,l,function(a,f){return i(a,f[0])})}function aC(r,i,l){i=qn(i,r);var a=-1,f=i.length;for(f||(f=1,r=n);++a<f;){var g=r==null?n:r[vn(i[a])];g===n&&(a=f,g=l),r=An(g)?g.call(r):g}return r}function cC(r,i,l){return r==null?r:Do(r,i,l)}function fC(r,i,l,a){return a=typeof a==\"function\"?a:n,r==null?r:Do(r,i,l,a)}var Ig=Hp(Qe),Ag=Hp(dt);function dC(r,i,l){var a=te(r),f=a||jn(r)||gi(r);if(i=Z(i,4),l==null){var g=r&&r.constructor;f?l=a?new g:[]:Le(r)?l=An(g)?fi(tl(r)):{}:l={}}return(f?zt:pn)(r,function(v,y,x){return i(l,v,y,x)}),l}function hC(r,i){return r==null?!0:ja(r,i)}function pC(r,i,l){return r==null?r:Cp(r,i,tc(l))}function gC(r,i,l,a){return a=typeof a==\"function\"?a:n,r==null?r:Cp(r,i,tc(l),a)}function vi(r){return r==null?[]:Na(r,Qe(r))}function vC(r){return r==null?[]:Na(r,dt(r))}function mC(r,i,l){return l===n&&(l=i,i=n),l!==n&&(l=Qt(l),l=l===l?l:0),i!==n&&(i=Qt(i),i=i===i?i:0),Rr(Qt(r),i,l)}function yC(r,i,l){return i=Tn(i),l===n?(l=i,i=0):l=Tn(l),r=Qt(r),CS(r,i,l)}function wC(r,i,l){if(l&&typeof l!=\"boolean\"&&it(r,i,l)&&(i=l=n),l===n&&(typeof i==\"boolean\"?(l=i,i=n):typeof r==\"boolean\"&&(l=r,r=n)),r===n&&i===n?(r=0,i=1):(r=Tn(r),i===n?(i=r,r=0):i=Tn(i)),r>i){var a=r;r=i,i=a}if(l||r%1||i%1){var f=ep();return Je(r+f*(i-r+Jy(\"1e-\"+((f+\"\").length-1))),i)}return Za(r,i)}var SC=hi(function(r,i,l){return i=i.toLowerCase(),r+(l?Tg(i):i)});function Tg(r){return xc(ge(r).toLowerCase())}function Mg(r){return r=ge(r),r&&r.replace(xy,cw).replace(Hy,\"\")}function _C(r,i,l){r=ge(r),i=kt(i);var a=r.length;l=l===n?a:Rr(ne(l),0,a);var f=l;return l-=i.length,l>=0&&r.slice(l,f)==i}function xC(r){return r=ge(r),r&&ny.test(r)?r.replace(ah,fw):r}function EC(r){return r=ge(r),r&&uy.test(r)?r.replace(ma,\"\\\\$&\"):r}var CC=hi(function(r,i,l){return r+(l?\"-\":\"\")+i.toLowerCase()}),kC=hi(function(r,i,l){return r+(l?\" \":\"\")+i.toLowerCase()}),PC=Dp(\"toLowerCase\");function RC(r,i,l){r=ge(r),i=ne(i);var a=i?si(r):0;if(!i||a>=i)return r;var f=(i-a)/2;return yl(ol(f),l)+r+yl(il(f),l)}function LC(r,i,l){r=ge(r),i=ne(i);var a=i?si(r):0;return i&&a<i?r+yl(i-a,l):r}function IC(r,i,l){r=ge(r),i=ne(i);var a=i?si(r):0;return i&&a<i?yl(i-a,l)+r:r}function AC(r,i,l){return l||i==null?i=0:i&&(i=+i),zw(ge(r).replace(ya,\"\"),i||0)}function TC(r,i,l){return(l?it(r,i,l):i===n)?i=1:i=ne(i),qa(ge(r),i)}function MC(){var r=arguments,i=ge(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var NC=hi(function(r,i,l){return r+(l?\"_\":\"\")+i.toLowerCase()});function OC(r,i,l){return l&&typeof l!=\"number\"&&it(r,i,l)&&(i=l=n),l=l===n?he:l>>>0,l?(r=ge(r),r&&(typeof i==\"string\"||i!=null&&!wc(i))&&(i=kt(i),!i&&oi(r))?Jn(tn(r),0,l):r.split(i,l)):[]}var DC=hi(function(r,i,l){return r+(l?\" \":\"\")+xc(i)});function FC(r,i,l){return r=ge(r),l=l==null?0:Rr(ne(l),0,r.length),i=kt(i),r.slice(l,l+i.length)==i}function zC(r,i,l){var a=p.templateSettings;l&&it(r,i,l)&&(i=n),r=ge(r),i=Al({},i,a,$p);var f=Al({},i.imports,a.imports,$p),g=Qe(f),v=Na(f,g),y,x,I=0,A=i.interpolate||Qs,M=\"__p += '\",W=Da((i.escape||Qs).source+\"|\"+A.source+\"|\"+(A===ch?vy:Qs).source+\"|\"+(i.evaluate||Qs).source+\"|$\",\"g\"),V=\"//# sourceURL=\"+(me.call(i,\"sourceURL\")?(i.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++Ky+\"]\")+`\n`;r.replace(W,function(J,le,ce,Rt,ot,Lt){return ce||(ce=Rt),M+=r.slice(I,Lt).replace(Ey,dw),le&&(y=!0,M+=`' +\n__e(`+le+`) +\n'`),ot&&(x=!0,M+=`';\n`+ot+`;\n__p += '`),ce&&(M+=`' +\n((__t = (`+ce+`)) == null ? '' : __t) +\n'`),I=Lt+J.length,J}),M+=`';\n`;var q=me.call(i,\"variable\")&&i.variable;if(!q)M=`with (obj) {\n`+M+`\n}\n`;else if(py.test(q))throw new j(d);M=(x?M.replace(j1,\"\"):M).replace(b1,\"$1\").replace(ey,\"$1;\"),M=\"function(\"+(q||\"obj\")+`) {\n`+(q?\"\":`obj || (obj = {});\n`)+\"var __t, __p = ''\"+(y?\", __e = _.escape\":\"\")+(x?`, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n`:`;\n`)+M+`return __p\n}`;var ie=Og(function(){return pe(g,V+\"return \"+M).apply(n,v)});if(ie.source=M,yc(ie))throw ie;return ie}function UC(r){return ge(r).toLowerCase()}function WC(r){return ge(r).toUpperCase()}function BC(r,i,l){if(r=ge(r),r&&(l||i===n))return Qh(r);if(!r||!(i=kt(i)))return r;var a=tn(r),f=tn(i),g=Gh(a,f),v=Vh(a,f)+1;return Jn(a,g,v).join(\"\")}function HC(r,i,l){if(r=ge(r),r&&(l||i===n))return r.slice(0,Yh(r)+1);if(!r||!(i=kt(i)))return r;var a=tn(r),f=Vh(a,tn(i))+1;return Jn(a,0,f).join(\"\")}function $C(r,i,l){if(r=ge(r),r&&(l||i===n))return r.replace(ya,\"\");if(!r||!(i=kt(i)))return r;var a=tn(r),f=Gh(a,tn(i));return Jn(a,f).join(\"\")}function QC(r,i){var l=se,a=xt;if(Le(i)){var f=\"separator\"in i?i.separator:f;l=\"length\"in i?ne(i.length):l,a=\"omission\"in i?kt(i.omission):a}r=ge(r);var g=r.length;if(oi(r)){var v=tn(r);g=v.length}if(l>=g)return r;var y=l-si(a);if(y<1)return a;var x=v?Jn(v,0,y).join(\"\"):r.slice(0,y);if(f===n)return x+a;if(v&&(y+=x.length-y),wc(f)){if(r.slice(y).search(f)){var I,A=x;for(f.global||(f=Da(f.source,ge(fh.exec(f))+\"g\")),f.lastIndex=0;I=f.exec(A);)var M=I.index;x=x.slice(0,M===n?y:M)}}else if(r.indexOf(kt(f),y)!=y){var W=x.lastIndexOf(f);W>-1&&(x=x.slice(0,W))}return x+a}function GC(r){return r=ge(r),r&&ty.test(r)?r.replace(uh,ww):r}var VC=hi(function(r,i,l){return r+(l?\" \":\"\")+i.toUpperCase()}),xc=Dp(\"toUpperCase\");function Ng(r,i,l){return r=ge(r),i=l?n:i,i===n?pw(r)?xw(r):ow(r):r.match(i)||[]}var Og=oe(function(r,i){try{return Et(r,n,i)}catch(l){return yc(l)?l:new j(l)}}),KC=Ln(function(r,i){return zt(i,function(l){l=vn(l),Pn(r,l,vc(r[l],r))}),r});function YC(r){var i=r==null?0:r.length,l=Z();return r=i?Pe(r,function(a){if(typeof a[1]!=\"function\")throw new Ut(c);return[l(a[0]),a[1]]}):[],oe(function(a){for(var f=-1;++f<i;){var g=r[f];if(Et(g[0],this,a))return Et(g[1],this,a)}})}function XC(r){return wS(Bt(r,k))}function Ec(r){return function(){return r}}function ZC(r,i){return r==null||r!==r?i:r}var qC=zp(),JC=zp(!0);function ht(r){return r}function Cc(r){return hp(typeof r==\"function\"?r:Bt(r,k))}function jC(r){return gp(Bt(r,k))}function bC(r,i){return vp(r,Bt(i,k))}var ek=oe(function(r,i){return function(l){return No(l,r,i)}}),tk=oe(function(r,i){return function(l){return No(r,l,i)}});function kc(r,i,l){var a=Qe(i),f=fl(i,a);l==null&&!(Le(i)&&(f.length||!a.length))&&(l=i,i=r,r=this,f=fl(i,Qe(i)));var g=!(Le(l)&&\"chain\"in l)||!!l.chain,v=An(r);return zt(f,function(y){var x=i[y];r[y]=x,v&&(r.prototype[y]=function(){var I=this.__chain__;if(g||I){var A=r(this.__wrapped__),M=A.__actions__=ct(this.__actions__);return M.push({func:x,args:arguments,thisArg:r}),A.__chain__=I,A}return x.apply(r,Vn([this.value()],arguments))})}),r}function nk(){return Ke._===this&&(Ke._=Lw),this}function Pc(){}function rk(r){return r=ne(r),oe(function(i){return mp(i,r)})}var ik=rc(Pe),ok=rc(Uh),sk=rc(La);function Dg(r){return cc(r)?Ia(vn(r)):FS(r)}function lk(r){return function(i){return r==null?n:Lr(r,i)}}var uk=Wp(),ak=Wp(!0);function Rc(){return[]}function Lc(){return!1}function ck(){return{}}function fk(){return\"\"}function dk(){return!0}function hk(r,i){if(r=ne(r),r<1||r>B)return[];var l=he,a=Je(r,he);i=Z(i),r-=he;for(var f=Ma(a,i);++l<r;)i(l);return f}function pk(r){return te(r)?Pe(r,vn):Pt(r)?[r]:ct(tg(ge(r)))}function gk(r){var i=++Pw;return ge(r)+i}var vk=ml(function(r,i){return r+i},0),mk=ic(\"ceil\"),yk=ml(function(r,i){return r/i},1),wk=ic(\"floor\");function Sk(r){return r&&r.length?cl(r,ht,Qa):n}function _k(r,i){return r&&r.length?cl(r,Z(i,2),Qa):n}function xk(r){return Hh(r,ht)}function Ek(r,i){return Hh(r,Z(i,2))}function Ck(r){return r&&r.length?cl(r,ht,Ya):n}function kk(r,i){return r&&r.length?cl(r,Z(i,2),Ya):n}var Pk=ml(function(r,i){return r*i},1),Rk=ic(\"round\"),Lk=ml(function(r,i){return r-i},0);function Ik(r){return r&&r.length?Ta(r,ht):0}function Ak(r,i){return r&&r.length?Ta(r,Z(i,2)):0}return p.after=jx,p.ary=dg,p.assign=WE,p.assignIn=Pg,p.assignInWith=Al,p.assignWith=BE,p.at=HE,p.before=hg,p.bind=vc,p.bindAll=KC,p.bindKey=pg,p.castArray=cE,p.chain=ag,p.chunk=w_,p.compact=S_,p.concat=__,p.cond=YC,p.conforms=XC,p.constant=Ec,p.countBy=Ix,p.create=$E,p.curry=gg,p.curryRight=vg,p.debounce=mg,p.defaults=QE,p.defaultsDeep=GE,p.defer=bx,p.delay=eE,p.difference=x_,p.differenceBy=E_,p.differenceWith=C_,p.drop=k_,p.dropRight=P_,p.dropRightWhile=R_,p.dropWhile=L_,p.fill=I_,p.filter=Tx,p.flatMap=Ox,p.flatMapDeep=Dx,p.flatMapDepth=Fx,p.flatten=og,p.flattenDeep=A_,p.flattenDepth=T_,p.flip=tE,p.flow=qC,p.flowRight=JC,p.fromPairs=M_,p.functions=JE,p.functionsIn=jE,p.groupBy=zx,p.initial=O_,p.intersection=D_,p.intersectionBy=F_,p.intersectionWith=z_,p.invert=eC,p.invertBy=tC,p.invokeMap=Wx,p.iteratee=Cc,p.keyBy=Bx,p.keys=Qe,p.keysIn=dt,p.map=Cl,p.mapKeys=rC,p.mapValues=iC,p.matches=jC,p.matchesProperty=bC,p.memoize=Pl,p.merge=oC,p.mergeWith=Rg,p.method=ek,p.methodOf=tk,p.mixin=kc,p.negate=Rl,p.nthArg=rk,p.omit=sC,p.omitBy=lC,p.once=nE,p.orderBy=Hx,p.over=ik,p.overArgs=rE,p.overEvery=ok,p.overSome=sk,p.partial=mc,p.partialRight=yg,p.partition=$x,p.pick=uC,p.pickBy=Lg,p.property=Dg,p.propertyOf=lk,p.pull=H_,p.pullAll=lg,p.pullAllBy=$_,p.pullAllWith=Q_,p.pullAt=G_,p.range=uk,p.rangeRight=ak,p.rearg=iE,p.reject=Vx,p.remove=V_,p.rest=oE,p.reverse=pc,p.sampleSize=Yx,p.set=cC,p.setWith=fC,p.shuffle=Xx,p.slice=K_,p.sortBy=Jx,p.sortedUniq=b_,p.sortedUniqBy=ex,p.split=OC,p.spread=sE,p.tail=tx,p.take=nx,p.takeRight=rx,p.takeRightWhile=ix,p.takeWhile=ox,p.tap=Sx,p.throttle=lE,p.thru=El,p.toArray=Eg,p.toPairs=Ig,p.toPairsIn=Ag,p.toPath=pk,p.toPlainObject=kg,p.transform=dC,p.unary=uE,p.union=sx,p.unionBy=lx,p.unionWith=ux,p.uniq=ax,p.uniqBy=cx,p.uniqWith=fx,p.unset=hC,p.unzip=gc,p.unzipWith=ug,p.update=pC,p.updateWith=gC,p.values=vi,p.valuesIn=vC,p.without=dx,p.words=Ng,p.wrap=aE,p.xor=hx,p.xorBy=px,p.xorWith=gx,p.zip=vx,p.zipObject=mx,p.zipObjectDeep=yx,p.zipWith=wx,p.entries=Ig,p.entriesIn=Ag,p.extend=Pg,p.extendWith=Al,kc(p,p),p.add=vk,p.attempt=Og,p.camelCase=SC,p.capitalize=Tg,p.ceil=mk,p.clamp=mC,p.clone=fE,p.cloneDeep=hE,p.cloneDeepWith=pE,p.cloneWith=dE,p.conformsTo=gE,p.deburr=Mg,p.defaultTo=ZC,p.divide=yk,p.endsWith=_C,p.eq=rn,p.escape=xC,p.escapeRegExp=EC,p.every=Ax,p.find=Mx,p.findIndex=rg,p.findKey=VE,p.findLast=Nx,p.findLastIndex=ig,p.findLastKey=KE,p.floor=wk,p.forEach=cg,p.forEachRight=fg,p.forIn=YE,p.forInRight=XE,p.forOwn=ZE,p.forOwnRight=qE,p.get=Sc,p.gt=vE,p.gte=mE,p.has=bE,p.hasIn=_c,p.head=sg,p.identity=ht,p.includes=Ux,p.indexOf=N_,p.inRange=yC,p.invoke=nC,p.isArguments=Tr,p.isArray=te,p.isArrayBuffer=yE,p.isArrayLike=ft,p.isArrayLikeObject=Oe,p.isBoolean=wE,p.isBuffer=jn,p.isDate=SE,p.isElement=_E,p.isEmpty=xE,p.isEqual=EE,p.isEqualWith=CE,p.isError=yc,p.isFinite=kE,p.isFunction=An,p.isInteger=wg,p.isLength=Ll,p.isMap=Sg,p.isMatch=PE,p.isMatchWith=RE,p.isNaN=LE,p.isNative=IE,p.isNil=TE,p.isNull=AE,p.isNumber=_g,p.isObject=Le,p.isObjectLike=Me,p.isPlainObject=Wo,p.isRegExp=wc,p.isSafeInteger=ME,p.isSet=xg,p.isString=Il,p.isSymbol=Pt,p.isTypedArray=gi,p.isUndefined=NE,p.isWeakMap=OE,p.isWeakSet=DE,p.join=U_,p.kebabCase=CC,p.last=$t,p.lastIndexOf=W_,p.lowerCase=kC,p.lowerFirst=PC,p.lt=FE,p.lte=zE,p.max=Sk,p.maxBy=_k,p.mean=xk,p.meanBy=Ek,p.min=Ck,p.minBy=kk,p.stubArray=Rc,p.stubFalse=Lc,p.stubObject=ck,p.stubString=fk,p.stubTrue=dk,p.multiply=Pk,p.nth=B_,p.noConflict=nk,p.noop=Pc,p.now=kl,p.pad=RC,p.padEnd=LC,p.padStart=IC,p.parseInt=AC,p.random=wC,p.reduce=Qx,p.reduceRight=Gx,p.repeat=TC,p.replace=MC,p.result=aC,p.round=Rk,p.runInContext=S,p.sample=Kx,p.size=Zx,p.snakeCase=NC,p.some=qx,p.sortedIndex=Y_,p.sortedIndexBy=X_,p.sortedIndexOf=Z_,p.sortedLastIndex=q_,p.sortedLastIndexBy=J_,p.sortedLastIndexOf=j_,p.startCase=DC,p.startsWith=FC,p.subtract=Lk,p.sum=Ik,p.sumBy=Ak,p.template=zC,p.times=hk,p.toFinite=Tn,p.toInteger=ne,p.toLength=Cg,p.toLower=UC,p.toNumber=Qt,p.toSafeInteger=UE,p.toString=ge,p.toUpper=WC,p.trim=BC,p.trimEnd=HC,p.trimStart=$C,p.truncate=QC,p.unescape=GC,p.uniqueId=gk,p.upperCase=VC,p.upperFirst=xc,p.each=cg,p.eachRight=fg,p.first=sg,kc(p,function(){var r={};return pn(p,function(i,l){me.call(p.prototype,l)||(r[l]=i)}),r}(),{chain:!1}),p.VERSION=o,zt([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(r){p[r].placeholder=p}),zt([\"drop\",\"take\"],function(r,i){ae.prototype[r]=function(l){l=l===n?1:Be(ne(l),0);var a=this.__filtered__&&!i?new ae(this):this.clone();return a.__filtered__?a.__takeCount__=Je(l,a.__takeCount__):a.__views__.push({size:Je(l,he),type:r+(a.__dir__<0?\"Right\":\"\")}),a},ae.prototype[r+\"Right\"]=function(l){return this.reverse()[r](l).reverse()}}),zt([\"filter\",\"map\",\"takeWhile\"],function(r,i){var l=i+1,a=l==vo||l==mo;ae.prototype[r]=function(f){var g=this.clone();return g.__iteratees__.push({iteratee:Z(f,3),type:l}),g.__filtered__=g.__filtered__||a,g}}),zt([\"head\",\"last\"],function(r,i){var l=\"take\"+(i?\"Right\":\"\");ae.prototype[r]=function(){return this[l](1).value()[0]}}),zt([\"initial\",\"tail\"],function(r,i){var l=\"drop\"+(i?\"\":\"Right\");ae.prototype[r]=function(){return this.__filtered__?new ae(this):this[l](1)}}),ae.prototype.compact=function(){return this.filter(ht)},ae.prototype.find=function(r){return this.filter(r).head()},ae.prototype.findLast=function(r){return this.reverse().find(r)},ae.prototype.invokeMap=oe(function(r,i){return typeof r==\"function\"?new ae(this):this.map(function(l){return No(l,r,i)})}),ae.prototype.reject=function(r){return this.filter(Rl(Z(r)))},ae.prototype.slice=function(r,i){r=ne(r);var l=this;return l.__filtered__&&(r>0||i<0)?new ae(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==n&&(i=ne(i),l=i<0?l.dropRight(-i):l.take(i-r)),l)},ae.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},ae.prototype.toArray=function(){return this.take(he)},pn(ae.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),a=/^(?:head|last)$/.test(i),f=p[a?\"take\"+(i==\"last\"?\"Right\":\"\"):i],g=a||/^find/.test(i);f&&(p.prototype[i]=function(){var v=this.__wrapped__,y=a?[1]:arguments,x=v instanceof ae,I=y[0],A=x||te(v),M=function(le){var ce=f.apply(p,Vn([le],y));return a&&W?ce[0]:ce};A&&l&&typeof I==\"function\"&&I.length!=1&&(x=A=!1);var W=this.__chain__,V=!!this.__actions__.length,q=g&&!W,ie=x&&!V;if(!g&&A){v=ie?v:new ae(this);var J=r.apply(v,y);return J.__actions__.push({func:El,args:[M],thisArg:n}),new Wt(J,W)}return q&&ie?r.apply(this,y):(J=this.thru(M),q?a?J.value()[0]:J.value():J)})}),zt([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(r){var i=Zs[r],l=/^(?:push|sort|unshift)$/.test(r)?\"tap\":\"thru\",a=/^(?:pop|shift)$/.test(r);p.prototype[r]=function(){var f=arguments;if(a&&!this.__chain__){var g=this.value();return i.apply(te(g)?g:[],f)}return this[l](function(v){return i.apply(te(v)?v:[],f)})}}),pn(ae.prototype,function(r,i){var l=p[i];if(l){var a=l.name+\"\";me.call(ci,a)||(ci[a]=[]),ci[a].push({name:i,func:l})}}),ci[vl(n,_).name]=[{name:\"wrapper\",func:n}],ae.prototype.clone=Gw,ae.prototype.reverse=Vw,ae.prototype.value=Kw,p.prototype.at=_x,p.prototype.chain=xx,p.prototype.commit=Ex,p.prototype.next=Cx,p.prototype.plant=Px,p.prototype.reverse=Rx,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=Lx,p.prototype.first=p.prototype.head,Po&&(p.prototype[Po]=kx),p},li=Ew();Er?((Er.exports=li)._=li,Ca._=li):Ke._=li}).call(Bo)})(cP,no);var W0=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},fP=(e,t,n)=>(W0(e,t,\"read from private field\"),n?n.call(e):t.get(e)),dP=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},hP=(e,t,n,o)=>(W0(e,t,\"write to private field\"),o?o.call(e,n):t.set(e,n),n),ou;const of=class{constructor(e,t,n){this.element=t,this.pixelsParser=n,dP(this,ou,void 0),this.setStyle(e)}genCustomStylePropName(e){return of.CUSTOM_PROP_PREFIX+e}assignStyle(e,t){e=this.genCustomStylePropName(e);const n=typeof t==\"string\"?t:String(t);this.element.style.setProperty(e,n)}clearCustomStyleProps(){const e=Array.from(this.element.style);for(const t of e)t.startsWith(of.CUSTOM_PROP_PREFIX)&&this.element.style.removeProperty(t)}assignShadowStyles(e){const{shadowOffset:t={},shadowBlur:n=1,shadowRadius:o=0,shadowColor:s=\"black\"}=e,{x:u=\"0px\",y:c=\"0px\"}=t instanceof Object?t:{},d=typeof n==\"number\"?n:Number(n),h=typeof o==\"number\"?o:Number(o);let m=\"\";for(let C=0;C<h;C++)m+=`drop-shadow( ${u} ${c} ${d+C}px ${s} ) `;m!==\"\"&&this.assignStyle(\"shadowFilter\",m)}assignBorderStyles(e){const{borderStyle:t,borderWidth:n,borderColor:o}=e;new Set([\"solid\",\"dashed\",\"dotted\",\"none\"]).has(t)?this.assignStyle(\"borderStyle\",t):t!==void 0&&this.assignStyle(\"borderStyle\",\"none\"),n!==void 0&&this.assignStyle(\"borderWidth\",n),o!==void 0&&this.assignStyle(\"borderColor\",o)}assignStyles(e){this.clearCustomStyleProps();const t=no.cloneDeep(e);this.pixelsParser.parse(t,C=>typeof C==\"number\"?`${C}px`:C);const{shadowOffset:n,shadowRadius:o,shadowBlur:s,shadowColor:u,borderStyle:c,borderWidth:d,borderColor:h,...m}=t;this.assignShadowStyles({shadowOffset:n,shadowRadius:o,shadowBlur:s,shadowColor:u}),this.assignBorderStyles({borderStyle:c,borderWidth:d,borderColor:h});for(const C in m){const k=m[C];this.assignStyle(C,k)}}get style(){return fP(this,ou)}setStyle(e){hP(this,ou,e),this.assignStyles(e)}};let B0=of;ou=new WeakMap;B0.CUSTOM_PROP_PREFIX=\"--custom-\";var H0=(e,t,n)=>{if(!t.has(e))throw TypeError(\"Cannot \"+n)},pP=(e,t,n)=>(H0(e,t,\"read from private field\"),n?n.call(e):t.get(e)),gP=(e,t,n)=>{if(t.has(e))throw TypeError(\"Cannot add the same private member more than once\");t instanceof WeakSet?t.add(e):t.set(e,n)},vP=(e,t,n,o)=>(H0(e,t,\"write to private field\"),o?o.call(e,n):t.set(e,n),n),su;const Mr=class extends B0{constructor(e,t,n,o){super(t,n,o),gP(this,su,void 0),n.style.position=\"relative\",this.setCursorSize(e),this.setupElementPos()}setupElementPos(){const{position:e}=this.element.style;e===\"static\"&&(this.element.style.position=\"relative\")}createPointer(e){const t=Mr.genPointerId(e),n=document.createElement(\"div\");n.id=t,n.classList.add(Mr.POINTER_CLASS_NAME),Mr.assignPointerPos(n,e),this.element.appendChild(n)}findPointer(e){const t=Mr.genPointerId(e);return this.element.querySelector(`#${t}`)}updateWith(e){const t=this.findPointer(e);t===null?this.createPointer(e):Mr.assignPointerPos(t,e)}destroyTo(e){const t=this.findPointer(e);t!==null&&this.element.removeChild(t)}clear(){const{POINTER_CLASS_NAME:e}=Mr,t=this.element.querySelectorAll(`.${e}`);for(const n of t)this.element.removeChild(n)}get cursorSize(){return pP(this,su)}setCursorSize(e){vP(this,su,e),this.element.style.setProperty(\"--cursor-size\",`${e}px`)}static genPointerId(e){const{id:t}=e;return`pointer-${t}`}static assignPointerPos(e,t){const{x:n,y:o}=t;e.style.top=`${o}px`,e.style.left=`${n}px`}};let $0=Mr;su=new WeakMap;$0.POINTER_CLASS_NAME=\"cursor-pointer\";class mP extends aP{constructor(t,n,o,s,u){const c=new U0(s),d=new $0(n,o,s,u);super(t,c,d)}get style(){return this.cursorRenderer.style}setStyle(t){this.cursorRenderer.setStyle(t)}}function Q0(e,t,n){return e/t*n}function yP(e,t,n,o){return D.useMemo(()=>{const s=no.cloneDeep(e);return o.parse(s,u=>typeof u==\"number\"?Q0(u,t,n):u),s},[e,t,n,o])}function wP(e){const[t,n]=D.useState([0,0]),o=D.useCallback(s=>{const{width:u,height:c}=s.getBoundingClientRect();n([u,c])},[]);return D.useEffect(()=>{const s=e.current;if(s===null)return;const u=new ResizeObserver(()=>o(s));return u.observe(s),()=>u.disconnect()},[e,o]),t}function mt(e){return D.useMemo(()=>e,[])}function SP(e){const[t,n]=D.useState(null),o=D.useCallback(s=>{n(s)},[]);return D.useEffect(()=>{e.onMessage(\"state-update\",o)},[e,o]),t}function _P(e){const[t,n]=D.useState(null),o=D.useRef(null);return D.useEffect(()=>{n(o.current),o.current=e},[e,o]),t}function xP(e){const t=D.useRef(null),n=D.useRef(\"\");return D.useMemo(()=>{const o=JSON.stringify(e);return o!==n.current||t.current===null?(t.current=e,n.current=o,e):t.current},[e])}const Jg=5,jg=3,EP=[\"borderWidth\",\"borderRadius\",\"shadowOffset.x\",\"shadowOffset.y\"];class CP{constructor(...t){this.parsableValueList=t}parse(t,n){for(const o of this.parsableValueList){const s=o.split(\".\");let u=t;for(let h=0;h<s.length-1;h++){const m=s[h],C=u[m];if(!(C instanceof Object)){u=null;break}u=C}if(u===null)continue;const c=s[s.length-1],d=u[c];d!==void 0&&(u[c]=n(d))}}}function kP(){return D.useMemo(()=>new CP(...EP),[])}function PP(e){e.shadowBlur!==void 0&&e.shadowBlur>Jg&&(e.shadowBlur=Jg),e.shadowRadius!==void 0&&e.shadowRadius>jg&&(e.shadowRadius=jg)}function RP(e){return D.useMemo(()=>{const t=no.cloneDeep(e);return PP(t),t},[e])}function LP(e,t,n,o,s){const[u,c]=D.useState(null);let d=xP(o);d=RP(d);const[h]=wP(s),m=Q0(n,t,h),C=kP();d=yP(d,t,h,C),D.useEffect(()=>{const P=s.current;P!==null&&c(P)},[s]);const k=D.useMemo(()=>u===null?null:new mP(e,m,d,u,C),[u,C]);D.useEffect(()=>{k!==null&&k.setIsAvailable(e)},[k,e]),D.useEffect(()=>{k!==null&&k.setSize(m)},[k,m]),D.useEffect(()=>{k!==null&&k.setStyle(d)},[k,d]),D.useEffect(()=>{if(k!==null)return()=>k.destroy()},[k])}function IP(e){const[t,n]=D.useState(!1),[o,s]=D.useState(!1);return D.useEffect(()=>{e!==void 0&&t&&o&&e()},[t,o]),{setDisplayLoaded:n,setGridLoaded:s}}const AP=new s2;function TP(e,t){const n=D.useMemo(()=>{const s=e[t]??AP;return s.prepareToUse(),s},[e,t]),o=_P(n);return D.useEffect(()=>{o!==null&&o.stopUsing()},[o]),n}function MP(e){gt.postMessage(\"eye-dropper\",{color:e})}const bg=100,NP=255;function OP(e,t){const o=qr.createInstance(1,1).getContext(\"2d\");o.fillStyle=e,o.rect(0,0,1,1),o.fill();const{data:s}=o.getImageData(0,0,1,1),[u,c,d,h]=s,m=bg-t,C=h/bg*m,k=Math.round(C/NP*100)/100;return`rgba( ${u}, ${c}, ${d}, ${k} )`}function G0(e){const n=qr.createInstance(1,1).getContext(\"2d\");n.fillStyle=e,n.rect(0,0,1,1),n.fill();const{data:o}=n.getImageData(0,0,1,1),[s,u,c]=o;return`rgb( ${s}, ${u}, ${c} )`}function DP(){return new Worker(\"data:text/javascript;base64,dmFyIF89T2JqZWN0LmRlZmluZVByb3BlcnR5O3ZhciBlZT0obCxuLG8pPT5uIGluIGw/XyhsLG4se2VudW1lcmFibGU6ITAsY29uZmlndXJhYmxlOiEwLHdyaXRhYmxlOiEwLHZhbHVlOm99KTpsW25dPW87dmFyIHI9KGwsbixvKT0+KGVlKGwsdHlwZW9mIG4hPSJzeW1ib2wiP24rIiI6bixvKSxvKSxYPShsLG4sbyk9PntpZighbi5oYXMobCkpdGhyb3cgVHlwZUVycm9yKCJDYW5ub3QgIitvKX07dmFyIGg9KGwsbixvKT0+KFgobCxuLCJyZWFkIGZyb20gcHJpdmF0ZSBmaWVsZCIpLG8/by5jYWxsKGwpOm4uZ2V0KGwpKSxmPShsLG4sbyk9PntpZihuLmhhcyhsKSl0aHJvdyBUeXBlRXJyb3IoIkNhbm5vdCBhZGQgdGhlIHNhbWUgcHJpdmF0ZSBtZW1iZXIgbW9yZSB0aGFuIG9uY2UiKTtuIGluc3RhbmNlb2YgV2Vha1NldD9uLmFkZChsKTpuLnNldChsLG8pfSx1PShsLG4sbyxBKT0+KFgobCxuLCJ3cml0ZSB0byBwcml2YXRlIGZpZWxkIiksQT9BLmNhbGwobCxvKTpuLnNldChsLG8pLG8pLEQ9KGwsbixvLEEpPT4oe3NldCBfKEwpe3UobCxuLEwsbyl9LGdldCBfKCl7cmV0dXJuIGgobCxuLEEpfX0pOyhmdW5jdGlvbigpe3ZhciB3LEMsUCxJLG0sTix2LEUseSxwOyJ1c2Ugc3RyaWN0IjtmdW5jdGlvbiBsKGEpe2xldCB0PTA7Y29uc3QgZT1wZXJmb3JtYW5jZS5ub3coKTtmb3IoO3BlcmZvcm1hbmNlLm5vdygpLWU8YTspdCsrO3JldHVybiB0fWZ1bmN0aW9uIG4oKXtyZXR1cm4gbmV3IFByb21pc2UoYT0+e3JlcXVlc3RBbmltYXRpb25GcmFtZSgoKT0+YSgpKX0pfWFzeW5jIGZ1bmN0aW9uIG8oYT0xKXtsZXQgdD0wO2ZvcihsZXQgaT0wO2k8YTtpKyspe2NvbnN0IHM9RGF0ZS5ub3coKTthd2FpdCBuKCksdCs9RGF0ZS5ub3coKS1zfWNvbnN0IGU9dC9hO3JldHVybiBNYXRoLnJvdW5kKGUpfWFzeW5jIGZ1bmN0aW9uIEEoYSl7Y29uc3QgdD1hd2FpdCBvKGEpLGU9bCh0KTtyZXR1cm4gTWF0aC5yb3VuZChlKX1jb25zdCBPPWNsYXNze2NvbnN0cnVjdG9yKHQpe2YodGhpcyx3LHZvaWQgMCk7dSh0aGlzLHcsdCl9aW5mbGF0ZSh0KXt1KHRoaXMsdyxoKHRoaXMsdykrTWF0aC5mbG9vcih0KSl9Z2V0IGFyZWEoKXtyZXR1cm4gTy5jYWxjQXJlYShoKHRoaXMsdykpfWdldCByYWRpdXMoKXtyZXR1cm4gaCh0aGlzLHcpfXN0YXRpYyBjYWxjQXJlYSh0KXtyZXR1cm4gdCoqMipNYXRoLlBJfXN0YXRpYyBjYWxjUmFkaXVzKHQpe3JldHVybiBNYXRoLnNxcnQodC9NYXRoLlBJKX19O2xldCBMPU87dz1uZXcgV2Vha01hcDtjbGFzcyBNIGV4dGVuZHMgTHtjb25zdHJ1Y3RvcihlKXtzdXBlcigwKTtyKHRoaXMsImNlbnRlciIpO3RoaXMuY2VudGVyPWV9ZXh0ZW5kKGUpe2NvbnN0IGk9dGhpcy5hcmVhK2U7bGV0IGM9TC5jYWxjUmFkaXVzKGkpLXRoaXMucmFkaXVzO2M8MSYmKGM9MSksdGhpcy5pbmZsYXRlKGMpfWlzSW5zaWRlKGUpe3JldHVybiBNLmNhbGNEaXN0YW5jZSh0aGlzLmNlbnRlcixlKTw9dGhpcy5yYWRpdXN9c3RhdGljIGNhbGNEaXN0YW5jZShlLGkpe3JldHVybiBNYXRoLnNxcnQoKGUueC1pLngpKioyKyhlLnktaS55KSoqMil9fWNsYXNzIHF7Y29uc3RydWN0b3IodCxlLGkscyl7Zih0aGlzLEMsdm9pZCAwKTtmKHRoaXMsUCx2b2lkIDApO2YodGhpcyxJLHZvaWQgMCk7Zih0aGlzLG0sdm9pZCAwKTt1KHRoaXMsQyx0KSx1KHRoaXMsUCxlKSx1KHRoaXMsSSxpKSx1KHRoaXMsbSxzKX1lcXVhbHNDb2xvcih0KXtjb25zdCBlPXQucmVkPT1oKHRoaXMsQyksaT10LmdyZWVuPT1oKHRoaXMsUCkscz10LmJsdWU9PWgodGhpcyxJKTtyZXR1cm4gZSYmaSYmc31lcXVhbHModCl7Y29uc3QgZT10LmFscGhhPT1oKHRoaXMsbSksaT1oKHRoaXMsbSk9PTA7cmV0dXJuIGUmJmk/ITA6dGhpcy5lcXVhbHNDb2xvcih0KSYmZX10b1N0cmluZygpe3JldHVybmByZ2JhKCAke3RoaXMucmVkfSwgJHt0aGlzLmdyZWVufSwgJHt0aGlzLmJsdWV9LCAke3RoaXMuc3R5bGVBbHBoYX0gKWB9Z2V0IHJlZCgpe3JldHVybiBoKHRoaXMsQyl9Z2V0IGdyZWVuKCl7cmV0dXJuIGgodGhpcyxQKX1nZXQgYmx1ZSgpe3JldHVybiBoKHRoaXMsSSl9Z2V0IGFscGhhKCl7cmV0dXJuIGgodGhpcyxtKX1nZXQgc3R5bGVBbHBoYSgpe3JldHVybiBNYXRoLnJvdW5kKGgodGhpcyxtKS8yNTUqMTApLzEwfX1DPW5ldyBXZWFrTWFwLFA9bmV3IFdlYWtNYXAsST1uZXcgV2Vha01hcCxtPW5ldyBXZWFrTWFwO2NsYXNzIEJ7Y29uc3RydWN0b3IodCxlKXtyKHRoaXMsIlJFRCIpO3IodGhpcywiR1JFRU4iKTtyKHRoaXMsIkJMVUUiKTtyKHRoaXMsIkFMUEhBIik7Y29uc3QgaT10LmNhbGNJbmRleChlKSo0O3RoaXMuUkVEPWksdGhpcy5HUkVFTj1pKzEsdGhpcy5CTFVFPWkrMix0aGlzLkFMUEhBPWkrM319Y2xhc3MgR3tjb25zdHJ1Y3Rvcih0LGUpe3IodGhpcywieCIpO3IodGhpcywieSIpO3RoaXMueD10LHRoaXMueT1lfWNhbGNJbmRleCh0KXtyZXR1cm4gdGhpcy54K3QqdGhpcy55fX1jbGFzcyBIe2NvbnN0cnVjdG9yKHQsZSxpKXtmKHRoaXMsTix2b2lkIDApO2YodGhpcyx2LHZvaWQgMCk7cih0aGlzLCJwaXhlbExpc3QiKTt1KHRoaXMsTix0KSx1KHRoaXMsdixlKSx0aGlzLnBpeGVsTGlzdD1pfWdldFBpeGVsKHQsZSl7Y29uc3QgaT1uZXcgRyh0LGUpO3JldHVybiB0aGlzLmlzT3V0T2ZMaW1pdHMoaSk/bnVsbDppfWlzT3V0T2ZMaW1pdHModCl7cmV0dXJuISgwPD10LngmJnQueDx0aGlzLndpZHRoKXx8ISgwPD10LnkmJnQueTx0aGlzLmhlaWdodCl9c2V0Q29sb3IodCxlKXtjb25zdCBpPW5ldyBCKHQsdGhpcy53aWR0aCk7dGhpcy5waXhlbExpc3RbaS5SRURdPWUucmVkLHRoaXMucGl4ZWxMaXN0W2kuR1JFRU5dPWUuZ3JlZW4sdGhpcy5waXhlbExpc3RbaS5CTFVFXT1lLmJsdWUsdGhpcy5waXhlbExpc3RbaS5BTFBIQV09ZS5hbHBoYX1nZXRDb2xvcih0KXtjb25zdCBlPW5ldyBCKHQsdGhpcy53aWR0aCksaT10aGlzLnBpeGVsTGlzdFtlLlJFRF0scz10aGlzLnBpeGVsTGlzdFtlLkdSRUVOXSxjPXRoaXMucGl4ZWxMaXN0W2UuQkxVRV0sZD10aGlzLnBpeGVsTGlzdFtlLkFMUEhBXTtyZXR1cm4gbmV3IHEoaSxzLGMsZCl9Z2V0UGl4ZWxMaXN0KCl7cmV0dXJuIG5ldyBVaW50OENsYW1wZWRBcnJheSh0aGlzLnBpeGVsTGlzdCl9Z2V0IHdpZHRoKCl7cmV0dXJuIGgodGhpcyxOKX1nZXQgaGVpZ2h0KCl7cmV0dXJuIGgodGhpcyx2KX19Tj1uZXcgV2Vha01hcCx2PW5ldyBXZWFrTWFwO2NsYXNzIFl7Y29uc3RydWN0b3IodCl7cih0aGlzLCJwaXhlbEluZGV4IixbXSk7cih0aGlzLCJpbWFnZSIpO3RoaXMuaW1hZ2U9dH1jaGVjayh0KXtpZih0aGlzLmltYWdlLmlzT3V0T2ZMaW1pdHModCkpcmV0dXJuO2NvbnN0IGU9dC5jYWxjSW5kZXgodGhpcy5pbWFnZS53aWR0aCk7dGhpcy5waXhlbEluZGV4W2VdPSEwfWlzRnJlZSh0KXtpZih0aGlzLmltYWdlLmlzT3V0T2ZMaW1pdHModCkpcmV0dXJuITE7Y29uc3QgZT10LmNhbGNJbmRleCh0aGlzLmltYWdlLndpZHRoKTtyZXR1cm4hdGhpcy5waXhlbEluZGV4W2VdfX1jbGFzcyAke2NvbnN0cnVjdG9yKHQpe2YodGhpcyxFLHZvaWQgMCk7Zih0aGlzLHksbnVsbCk7dSh0aGlzLEUsdCl9c2V0TmV4dE5vZGUodCl7dSh0aGlzLHksdCl9Z2V0IHZhbHVlKCl7cmV0dXJuIGgodGhpcyxFKX1nZXQgbmV4dE5vZGUoKXtyZXR1cm4gaCh0aGlzLHkpfX1FPW5ldyBXZWFrTWFwLHk9bmV3IFdlYWtNYXA7Y2xhc3Mgentjb25zdHJ1Y3Rvcigpe2YodGhpcyxwLHZvaWQgMCk7dGhpcy5mcm9udE5vZGU9bnVsbCx0aGlzLmJhY2tOb2RlPW51bGwsdSh0aGlzLHAsMCl9cHVzaCh0KXtjb25zdCBlPW5ldyAkKHQpO3RoaXMuaXNFbXB0eT8odGhpcy5mcm9udE5vZGU9ZSx0aGlzLmJhY2tOb2RlPWUpOih0aGlzLmJhY2tOb2RlLnNldE5leHROb2RlKGUpLHRoaXMuYmFja05vZGU9ZSksRCh0aGlzLHApLl8rK31wb3AoKXtjb25zdCB0PXRoaXMuZnJvbnQ7aWYodGhpcy5mcm9udE5vZGU9PT1udWxsKXJldHVybjtjb25zdHtuZXh0Tm9kZTplfT10aGlzLmZyb250Tm9kZTtyZXR1cm4gdGhpcy5mcm9udE5vZGU9ZSxEKHRoaXMscCkuXy0tLHR9Z2V0IGZyb250KCl7aWYodGhpcy5mcm9udE5vZGUhPT1udWxsKXJldHVybiB0aGlzLmZyb250Tm9kZS52YWx1ZX1nZXQgc2l6ZSgpe3JldHVybiBoKHRoaXMscCl9Z2V0IGlzRW1wdHkoKXtyZXR1cm4gaCh0aGlzLHApPT09MH19cD1uZXcgV2Vha01hcDtjb25zdCBrPWNsYXNze2NvbnN0cnVjdG9yKHQsZSxpKXtyKHRoaXMsInBpeGVsUXVldWUiLG5ldyB6KTtyKHRoaXMsInBpeGVsQ2hlY2tlciIpO3IodGhpcywicHJldmlvdXNDb2xvciIpO3IodGhpcywibmV3Q29sb3IiKTtyKHRoaXMsImltYWdlIik7dGhpcy5wcmV2aW91c0NvbG9yPXQsdGhpcy5uZXdDb2xvcj1lLHRoaXMuaW1hZ2U9aSx0aGlzLnBpeGVsQ2hlY2tlcj1uZXcgWShpKX1jaGVja1BpeGVsKHQpe2NvbnN0IGU9dGhpcy5waXhlbENoZWNrZXIuaXNGcmVlKHQpO3JldHVybiBlJiZ0aGlzLnBpeGVsQ2hlY2tlci5jaGVjayh0KSxlfW1vdmVBcm91bmQodCl7Zm9yKGxldCBlPTA7ZTw0O2UrKyl7Y29uc3QgaT10Lngray5YX0FYSVNbZV0scz10Lnkray5ZX0FYSVNbZV0sYz10aGlzLmltYWdlLmdldFBpeGVsKGkscyk7YyE9PW51bGwmJnRoaXMuY2hlY2tQaXhlbChjKSYmdGhpcy5waXhlbFF1ZXVlLnB1c2goYyl9fXVzZU5leHRQaXhlbCgpe2NvbnN0IHQ9dGhpcy5waXhlbFF1ZXVlLmZyb250O3RoaXMucGl4ZWxRdWV1ZS5wb3AoKSx0aGlzLmltYWdlLmdldENvbG9yKHQpLmVxdWFscyh0aGlzLnByZXZpb3VzQ29sb3IpJiYodGhpcy5pbWFnZS5zZXRDb2xvcih0LHRoaXMubmV3Q29sb3IpLHRoaXMubW92ZUFyb3VuZCh0KSl9fTtsZXQgRj1rO3IoRiwiWF9BWElTIixbMCwxLDAsLTFdKSxyKEYsIllfQVhJUyIsWy0xLDAsMSwwXSk7Y2xhc3MgVCBleHRlbmRzIEZ7Y29uc3RydWN0b3IoZSxpLHMsYyxkLHgsZyl7c3VwZXIoZSxpLHMpO3IodGhpcywiYXJlYUluY3JlbWVudCIpO3IodGhpcywibmV4dEFyZWFQaXhlbExpc3QiKTtyKHRoaXMsImFyZWEiKTtyKHRoaXMsImFuaW1hdGVkRmlsbGVyIik7dGhpcy5hcmVhSW5jcmVtZW50PWMsdGhpcy5uZXh0QXJlYVBpeGVsTGlzdD1kLHRoaXMuYXJlYT14LHRoaXMuYW5pbWF0ZWRGaWxsZXI9Z31jaGVja1BpeGVsKGUpe2NvbnN0IGk9c3VwZXIuY2hlY2tQaXhlbChlKTtsZXQgcz1pO3JldHVybiBpJiYhdGhpcy5hcmVhLmlzSW5zaWRlKGUpJiYodGhpcy5uZXh0QXJlYVBpeGVsTGlzdC5wdXNoKGUpLHM9ITEpLHN9dmFsaWRhdGUoKXt9ZmlsdGVyQ3VycmVudEFyZWFQaXhlbHMoKXtjb25zdCBlPXRoaXMubmV4dEFyZWFQaXhlbExpc3Q7dGhpcy5uZXh0QXJlYVBpeGVsTGlzdD1bXTtmb3IoY29uc3QgaSBvZiBlKXRoaXMuYXJlYS5pc0luc2lkZShpKT90aGlzLnBpeGVsUXVldWUucHVzaChpKTp0aGlzLm5leHRBcmVhUGl4ZWxMaXN0LnB1c2goaSl9Y29uc3VtZUFyZWEoKXtmb3IodGhpcy5leHRlbmRBcmVhKCksdGhpcy5maWx0ZXJDdXJyZW50QXJlYVBpeGVscygpOyF0aGlzLnBpeGVsUXVldWUuaXNFbXB0eTspdGhpcy51c2VOZXh0UGl4ZWwoKTt0aGlzLmFuaW1hdGVkRmlsbGVyJiZ0aGlzLnZhbGlkYXRlKCksdGhpcy5uZXh0QXJlYVBpeGVsTGlzdC5sZW5ndGg+MD90aGlzLmNvbnN1bWVBcmVhKCk6dGhpcy5hbmltYXRlZEZpbGxlcnx8dGhpcy52YWxpZGF0ZSgpfWV4dGVuZEFyZWEoKXt0aGlzLmFyZWEuZXh0ZW5kKHRoaXMuYXJlYUluY3JlbWVudCl9fWNsYXNzIGogZXh0ZW5kcyBUe2NvbnN0cnVjdG9yKGUsaSxzLGMsZCl7Y29uc3QgeD1zLmdldENvbG9yKGUpLGc9bmV3IE0oZSk7c3VwZXIoeCxpLHMsYyxbZV0sZyxkKTtyKHRoaXMsImZpbGxlZCIsITEpO3IodGhpcywiaGFuZGxlRnJhbWUiLG51bGwpfWFzeW5jIGZpbGwoKXtpZih0aGlzLmZpbGxlZCl0aHJvdyBuZXcgRXJyb3IoIllvIGNhbiBub3QgdXNlIGZpbGwgZnVuY3Rpb24gbW9yZSB0aGFuIG9uZSB0aW1lIik7dGhpcy5maWxsZWQ9ITAsIXRoaXMucHJldmlvdXNDb2xvci5lcXVhbHModGhpcy5uZXdDb2xvcikmJnRoaXMuY29uc3VtZUFyZWEoKX1vbkZyYW1lKGUpe3RoaXMuaGFuZGxlRnJhbWU9ZX12YWxpZGF0ZSgpe2lmKHRoaXMuaGFuZGxlRnJhbWU9PT1udWxsKXJldHVybjtjb25zdHt3aWR0aDplLGhlaWdodDppfT10aGlzLmltYWdlLHM9dGhpcy5pbWFnZS5nZXRQaXhlbExpc3QoKTt0aGlzLmhhbmRsZUZyYW1lKHt3aWR0aDplLGhlaWdodDppLHBpeGVsTGlzdDpzfSl9fWNsYXNzIFJ7Y29uc3RydWN0b3IoKXt9c3RhdGljIGNoZWNrTW9kZXJuSW1wbCgpe3JldHVybiBzZWxmLk9mZnNjcmVlbkNhbnZhcyE9PXZvaWQgMH1zdGF0aWMgY3JlYXRlSW5zdGFuY2UodCxlKXtpZihSLmNoZWNrTW9kZXJuSW1wbCgpKXJldHVybiBuZXcgT2Zmc2NyZWVuQ2FudmFzKHQsZSk7Y29uc3Qgcz1kb2N1bWVudC5jcmVhdGVFbGVtZW50KCJjYW52YXMiKTtyZXR1cm4gcy53aWR0aD10LHMuaGVpZ2h0PWUsc319ZnVuY3Rpb24gSihhKXtjb25zdCBlPVIuY3JlYXRlSW5zdGFuY2UoMSwxKS5nZXRDb250ZXh0KCIyZCIpO2UuZmlsbFN0eWxlPWEsZS5yZWN0KDAsMCwxLDEpLGUuZmlsbCgpO2NvbnN0e2RhdGE6aX09ZS5nZXRJbWFnZURhdGEoMCwwLDEsMSksW3MsYyxkLHhdPWk7cmV0dXJuIG5ldyBxKHMsYyxkLHgpfWNsYXNzIEt7Y29uc3RydWN0b3IodCl7cih0aGlzLCJoYW5kbGVGcmFtZSIsbnVsbCk7cih0aGlzLCJmaW5pc2giKTt0aGlzLmZpbmlzaD10fWFzeW5jIGZpbGwodCxlLGkscyxjLGQseCl7Y29uc3QgZz1uZXcgSChzLGMseCksUz1nLmdldFBpeGVsKHQsZSk7aWYoUz09PW51bGwpcmV0dXJuO2NvbnN0IFY9SihpKSxXPWF3YWl0IEEoMTApLFU9bmV3IGooUyxWLGcsVyxkKTtVLm9uRnJhbWUoWj0+e3RoaXMuaGFuZGxlRnJhbWUhPT1udWxsJiZ0aGlzLmhhbmRsZUZyYW1lKFopfSksYXdhaXQgVS5maWxsKCksdGhpcy5maW5pc2goKX1vbkZyYW1lKHQpe3RoaXMuaGFuZGxlRnJhbWU9dH19Y29uc3QgYj1zZWxmLFE9bmV3IEsoKCk9PntiLnBvc3RNZXNzYWdlKHt0YXJnZXQ6ImZpbmlzaCJ9KX0pO1Eub25GcmFtZShhPT57Y29uc3R7d2lkdGg6dCxoZWlnaHQ6ZSxwaXhlbExpc3Q6aX09YSxzPWkuYnVmZmVyO2IucG9zdE1lc3NhZ2Uoe3RhcmdldDoiZnJhbWUiLHdpZHRoOnQsaGVpZ2h0OmUscGl4ZWxMaXN0QnVmZmVyOnN9LFtzXSl9KSxiLmFkZEV2ZW50TGlzdGVuZXIoIm1lc3NhZ2UiLGE9PntpZihhLmRhdGEudGFyZ2V0PT09InN0YXJ0Iil7Y29uc3R7eDp0LHk6ZSxjb2xvckNvZGU6aSx3aWR0aDpzLGhlaWdodDpjLGFuaW1hdGVkRmlsbGVyOmQscGl4ZWxMaXN0QnVmZmVyOnh9PWEuZGF0YSxnPW5ldyBVaW50OENsYW1wZWRBcnJheSh4KTtRLmZpbGwodCxlLGkscyxjLGQsZyl9fSl9KSgpOwo=\")}class FP{constructor(t,n,o,s){ve(this,\"width\");ve(this,\"height\");ve(this,\"animatedFiller\");ve(this,\"handleFrame\",null);ve(this,\"taskManager\");this.width=t,this.height=n,this.animatedFiller=o,this.taskManager=s}renderFrame(t){this.handleFrame!==null&&this.handleFrame(t)}receive(t,n){if(t.data.target===\"finish\")this.taskManager.terminate(n);else if(t.data.target===\"frame\"){const{width:o,height:s,pixelListBuffer:u}=t.data,c=new Uint8ClampedArray(u),d={width:o,height:s,pixelList:c};this.renderFrame(d)}}fill(t,n,o,s){const{width:u,height:c,animatedFiller:d}=this,{thread:h,terminated:m}=this.taskManager.create();h.addEventListener(\"message\",k=>this.receive(k,m));const C={x:t,y:n,colorCode:o,width:u,height:c,animatedFiller:d,pixelListBuffer:s.buffer};return h.postMessage({target:\"start\",...C},[s.buffer]),m}stop(t){this.taskManager.terminate(t)}onFrame(t){this.handleFrame=t}}class zP{constructor(t){ve(this,\"pixelIndex\",[]);ve(this,\"image\");this.image=t}check(t){if(this.image.isOutOfLimits(t))return;const n=t.calcIndex(this.image.width);this.pixelIndex[n]=!0}isFree(t){if(this.image.isOutOfLimits(t))return!1;const n=t.calcIndex(this.image.width);return!this.pixelIndex[n]}}var Is,As;class UP{constructor(t){fe(this,Is,void 0);fe(this,As,null);X(this,Is,t)}setNextNode(t){X(this,As,t)}get value(){return Y(this,Is)}get nextNode(){return Y(this,As)}}Is=new WeakMap,As=new WeakMap;var ir;class V0{constructor(){fe(this,ir,void 0);this.frontNode=null,this.backNode=null,X(this,ir,0)}push(t){const n=new UP(t);this.isEmpty?(this.frontNode=n,this.backNode=n):(this.backNode.setNextNode(n),this.backNode=n),Tl(this,ir)._++}pop(){const t=this.front;if(this.frontNode===null)return;const{nextNode:n}=this.frontNode;return this.frontNode=n,Tl(this,ir)._--,t}get front(){if(this.frontNode!==null)return this.frontNode.value}get size(){return Y(this,ir)}get isEmpty(){return Y(this,ir)===0}}ir=new WeakMap;const Gu=class{constructor(t,n,o){ve(this,\"pixelQueue\",new V0);ve(this,\"pixelChecker\");ve(this,\"previousColor\");ve(this,\"newColor\");ve(this,\"image\");this.previousColor=t,this.newColor=n,this.image=o,this.pixelChecker=new zP(o)}checkPixel(t){const n=this.pixelChecker.isFree(t);return n&&this.pixelChecker.check(t),n}moveAround(t){for(let n=0;n<4;n++){const o=t.x+Gu.X_AXIS[n],s=t.y+Gu.Y_AXIS[n],u=this.image.getPixel(o,s);u!==null&&this.checkPixel(u)&&this.pixelQueue.push(u)}}useNextPixel(){const t=this.pixelQueue.front;this.pixelQueue.pop(),this.image.getColor(t).equals(this.previousColor)&&(this.image.setColor(t,this.newColor),this.moveAround(t))}};let Jo=Gu;ve(Jo,\"X_AXIS\",[0,1,0,-1]),ve(Jo,\"Y_AXIS\",[-1,0,1,0]);class WP extends Jo{constructor(n,o,s,u,c,d,h){super(n,o,s);ve(this,\"areaIncrement\");ve(this,\"nextAreaPixelList\");ve(this,\"area\");ve(this,\"animatedFiller\");this.areaIncrement=u,this.nextAreaPixelList=c,this.area=d,this.animatedFiller=h}checkPixel(n){const o=super.checkPixel(n);let s=o;return o&&!this.area.isInside(n)&&(this.nextAreaPixelList.push(n),s=!1),s}validate(){}filterCurrentAreaPixels(){const n=this.nextAreaPixelList;this.nextAreaPixelList=[];for(const o of n)this.area.isInside(o)?this.pixelQueue.push(o):this.nextAreaPixelList.push(o)}consumeArea(){for(this.extendArea(),this.filterCurrentAreaPixels();!this.pixelQueue.isEmpty;)this.useNextPixel();this.animatedFiller&&this.validate(),this.nextAreaPixelList.length>0?this.consumeArea():this.animatedFiller||this.validate()}extendArea(){this.area.extend(this.areaIncrement)}}var $r;const oh=class{constructor(t){fe(this,$r,void 0);X(this,$r,t)}inflate(t){X(this,$r,Y(this,$r)+Math.floor(t))}get area(){return oh.calcArea(Y(this,$r))}get radius(){return Y(this,$r)}static calcArea(t){return t**2*Math.PI}static calcRadius(t){return Math.sqrt(t/Math.PI)}};let wu=oh;$r=new WeakMap;class hd extends wu{constructor(n){super(0);ve(this,\"center\");this.center=n}extend(n){const o=this.area+n;let u=wu.calcRadius(o)-this.radius;u<1&&(u=1),this.inflate(u)}isInside(n){return hd.calcDistance(this.center,n)<=this.radius}static calcDistance(n,o){return Math.sqrt((n.x-o.x)**2+(n.y-o.y)**2)}}var ji,bi,eo,or;class K0{constructor(t,n,o,s){fe(this,ji,void 0);fe(this,bi,void 0);fe(this,eo,void 0);fe(this,or,void 0);X(this,ji,t),X(this,bi,n),X(this,eo,o),X(this,or,s)}equalsColor(t){const n=t.red==Y(this,ji),o=t.green==Y(this,bi),s=t.blue==Y(this,eo);return n&&o&&s}equals(t){const n=t.alpha==Y(this,or),o=Y(this,or)==0;return n&&o?!0:this.equalsColor(t)&&n}toString(){return`rgba( ${this.red}, ${this.green}, ${this.blue}, ${this.styleAlpha} )`}get red(){return Y(this,ji)}get green(){return Y(this,bi)}get blue(){return Y(this,eo)}get alpha(){return Y(this,or)}get styleAlpha(){return Math.round(Y(this,or)/255*10)/10}}ji=new WeakMap,bi=new WeakMap,eo=new WeakMap,or=new WeakMap;class ev{constructor(t,n){ve(this,\"RED\");ve(this,\"GREEN\");ve(this,\"BLUE\");ve(this,\"ALPHA\");const o=t.calcIndex(n)*4;this.RED=o,this.GREEN=o+1,this.BLUE=o+2,this.ALPHA=o+3}}class BP{constructor(t,n){ve(this,\"x\");ve(this,\"y\");this.x=t,this.y=n}calcIndex(t){return this.x+t*this.y}}var Ts,Ms,u0;let HP=(u0=class{constructor(t,n,o){fe(this,Ts,void 0);fe(this,Ms,void 0);ve(this,\"pixelList\");X(this,Ts,t),X(this,Ms,n),this.pixelList=o}getPixel(t,n){const o=new BP(t,n);return this.isOutOfLimits(o)?null:o}isOutOfLimits(t){return!(0<=t.x&&t.x<this.width)||!(0<=t.y&&t.y<this.height)}setColor(t,n){const o=new ev(t,this.width);this.pixelList[o.RED]=n.red,this.pixelList[o.GREEN]=n.green,this.pixelList[o.BLUE]=n.blue,this.pixelList[o.ALPHA]=n.alpha}getColor(t){const n=new ev(t,this.width),o=this.pixelList[n.RED],s=this.pixelList[n.GREEN],u=this.pixelList[n.BLUE],c=this.pixelList[n.ALPHA];return new K0(o,s,u,c)}getPixelList(){return new Uint8ClampedArray(this.pixelList)}get width(){return Y(this,Ts)}get height(){return Y(this,Ms)}},Ts=new WeakMap,Ms=new WeakMap,u0);class $P extends WP{constructor(n,o,s,u,c){const d=s.getColor(n),h=new hd(n);super(d,o,s,u,[n],h,c);ve(this,\"filled\",!1);ve(this,\"handleFrame\",null)}async fill(){if(this.filled)throw new Error(\"Yo can not use fill function more than one time\");this.filled=!0,!this.previousColor.equals(this.newColor)&&this.consumeArea()}onFrame(n){this.handleFrame=n}validate(){if(this.handleFrame===null)return;const{width:n,height:o}=this.image,s=this.image.getPixelList();this.handleFrame({width:n,height:o,pixelList:s})}}class QP{constructor(t){this.Worker=t,this.taskIndex=new Map}create(){const t=new this.Worker;let n=()=>{};const o=new Promise(u=>n=u),s={thread:t,terminate:n};return this.taskIndex.set(o,s),{thread:t,terminated:o}}terminate(t){const n=this.taskIndex.get(t);if(n===void 0)return;this.taskIndex.delete(t);const{thread:o,terminate:s}=n;o.terminate(),s()}}class Y0 extends FP{constructor(t,n){const o=new QP(DP);super(t,n,!0,o)}}function GP(e){const n=qr.createInstance(1,1).getContext(\"2d\");n.fillStyle=e,n.rect(0,0,1,1),n.fill();const{data:o}=n.getImageData(0,0,1,1),[s,u,c,d]=o;return new K0(s,u,c,d)}var Ns,Os;class VP{constructor(t,n){ve(this,\"handleFrame\",null);fe(this,Ns,void 0);fe(this,Os,void 0);X(this,Ns,t),X(this,Os,n)}fill(t,n,o,s){const{width:u,height:c}=this,d=new HP(u,c,s),h=d.getPixel(t,n),m=GP(o);if(h===null)return;const C=new $P(h,m,d,1/0,!1);C.onFrame(k=>{this.handleFrame!==null&&this.handleFrame(k)}),C.fill()}onFrame(t){this.handleFrame=t}get width(){return Y(this,Ns)}get height(){return Y(this,Os)}}Ns=new WeakMap,Os=new WeakMap;class KP{constructor(){}static createInstance(t,n,o){const s=qr.checkModernImpl();return o&&s?new Y0(t,n):new VP(t,n)}}var to;class YP{constructor(){fe(this,to,void 0);this.onfinish=null,this.argsQueue=new V0,X(this,to,!1)}handleFinish(t){this.onfinish!==null&&this.onfinish(t)}async consume(){for(this.isConsuming=!0;!this.argsQueue.isEmpty;){const t=this.argsQueue.pop();await this.runTask(t),this.handleFinish(t)}this.isConsuming=!1}enqueueTask(t){this.argsQueue.push(t),this.isConsuming||this.consume()}stopTasks(){for(;!this.argsQueue.isEmpty;)this.argsQueue.pop()}get isConsuming(){return Y(this,to)}set isConsuming(t){X(this,to,t)}}to=new WeakMap;class XP extends YP{constructor(){super(...arguments),this.currentUtil=null,this.filled=null,this.onstarteachtask=null}async dispatchStartEachTask(t){this.onstarteachtask!==null&&await this.onstarteachtask(t)}async runTask(t){const{x:n,y:o,color:s,animatedFiller:u,scene:c}=t,{width:d,height:h,pixelList:m}=c.getBinaryData();await this.dispatchStartEachTask(t);const C=KP.createInstance(d,h,u);C.onFrame(P=>{c.setBinaryData({...P,colorChanels:4,maxChanel:255})}),this.currentUtil=C;const k=C.fill(n,o,s,m);this.filled=k instanceof Promise?k:null,await this.filled}stopTasks(){super.stopTasks();const{currentUtil:t,filled:n}=this;t===null||n===null||!(t instanceof Y0)||t.stop(n)}}class ZP{constructor(t){this.setViewportControlAllowed=t}enableControl(){this.setViewportControlAllowed(!0)}unableControl(){this.setViewportControlAllowed(!1)}}function fo(e,t){D.useEffect(()=>{e.setColor(t)},[e,t])}function ho(e,t){D.useEffect(()=>{e.setSize(t)},[e,t])}function qP(e){return D.useMemo(()=>{const t=new ZP(e);return new c2(t)},[e])}function JP(){return D.useMemo(()=>new id(MP),[])}function jP(e,t,n,o){const s=mt(e),u=mt(t),c=mt(n),d=mt(o),h=D.useMemo(()=>new u2(s,u,c,d),[s,u,c,d]);return D.useEffect(()=>{h.setParticlesAmount(n),h.setParticlesScale(o)},[h,n,o]),fo(h,e),ho(h,t),h}function bP(e,t){const n=mt(e),o=mt(t),s=D.useMemo(()=>new a2(n,o),[n,o]);return fo(s,e),ho(s,t),s}function eR(e,t){const n=mt(e),o=mt(t),s=D.useMemo(()=>new w0(n,o),[n,o]);return fo(s,e),ho(s,t),s}function tR(e,t){const n=mt(e),o=mt(t),s=D.useMemo(()=>new E0(n,o,OP),[n,o]);return fo(s,e),ho(s,t),s}function nR(e,t){const n=mt(e),o=mt(t),s=D.useMemo(()=>new l2(n,o,G0),[n,o]);return fo(s,e),ho(s,t),s}function rR(e){const t=mt(e),n=D.useMemo(()=>new o2(t),[t]);return ho(n,e),n}function iR(e,t){const n=mt(e),o=D.useMemo(()=>{const s=new XP;return new nf(n,s,G0)},[n]);return D.useEffect(()=>{o.setAnimatedFiller(t)},[o,t]),fo(o,e),o}function oR(e){const{color:t,size:n,sprayParticles:o,animatedFiller:s,setViewportControlAllowed:u}=e,{amount:c,scale:d}=o,h=D.useMemo(()=>({}),[]);return h[Gt.ZOOM]=qP(u),h[Gt.EYE_DROPPER]=JP(),h[Gt.SPRAY]=jP(t,n,c,d),h[Gt.SQUARE_DOT_PEN]=bP(t,n),h[Gt.DOT_PEN]=eR(t,n),h[Gt.TAPE]=tR(t,n),h[Gt.PENCIL]=nR(t,n),h[Gt.ERASER]=rR(n),h[Gt.FILLER]=iR(t,s),h}function sR(e){const{tool:t,color:n,size:o,sprayParticles:s,animatedFiller:u,setViewportControlAllowed:c}=e,h=oR({color:n,size:o,sprayParticles:s,animatedFiller:u,setViewportControlAllowed:c});return TP(h,t)}const lR=e=>{const{resolution:t,aspectRatio:n,color:o,grid:s,antialiasing:u=!0,tool:c,onLoad:d,toolSize:h=uP,sprayParticles:m,animatedFiller:C,cursor:k=!1,cursorStyle:P}=e,[O,F]=D.useState(!1),re=sR({tool:c,color:o,size:h,sprayParticles:m,animatedFiller:C,setViewportControlAllowed:F}),_=D.useRef(null);$2({drawingServiceRef:_,currentTool:re});const{setDisplayLoaded:w,setGridLoaded:E}=IP(d),T=D.useRef(null),U=c===Gt.NONE||c===Gt.ZOOM;return LP(k&&!U,t,h,P,T),Yt.jsxs(\"div\",{className:\"draw\",children:[Yt.jsx(Z2,{ref:_,resolution:t,aspectRatio:n,antialiasing:u,onLoad:w}),Yt.jsx(b2,{amount:s,aspectRatio:n,onLoad:E}),Yt.jsx(lP,{ref:T,resolution:t,viewportControlAllowed:O,tool:re,drawingServiceRef:_})]})},uR=()=>{const e=SP(gt);if(D.useEffect(()=>{gt.prepareNativeSide()},[]),e===null)return null;const t=()=>{gt.postMessage(\"load\",{})};return Yt.jsx(lR,{...e,onLoad:t})};var sf={},aR={get exports(){return sf},set exports(e){sf=e}},Nt={},lf={},cR={get exports(){return lf},set exports(e){lf=e}},X0={};/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */(function(e){function t(B,b){var ee=B.length;B.push(b);e:for(;0<ee;){var he=ee-1>>>1,ze=B[he];if(0<s(ze,b))B[he]=b,B[ee]=ze,ee=he;else break e}}function n(B){return B.length===0?null:B[0]}function o(B){if(B.length===0)return null;var b=B[0],ee=B.pop();if(ee!==b){B[0]=ee;e:for(var he=0,ze=B.length,ei=ze>>>1;he<ei;){var xn=2*(he+1)-1,hn=B[xn],Dt=xn+1,ti=B[Dt];if(0>s(hn,ee))Dt<ze&&0>s(ti,hn)?(B[he]=ti,B[Dt]=ee,he=Dt):(B[he]=hn,B[xn]=ee,he=xn);else if(Dt<ze&&0>s(ti,ee))B[he]=ti,B[Dt]=ee,he=Dt;else break e}}return b}function s(B,b){var ee=B.sortIndex-b.sortIndex;return ee!==0?ee:B.id-b.id}if(typeof performance==\"object\"&&typeof performance.now==\"function\"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],m=[],C=1,k=null,P=3,O=!1,F=!1,z=!1,re=typeof setTimeout==\"function\"?setTimeout:null,_=typeof clearTimeout==\"function\"?clearTimeout:null,w=typeof setImmediate<\"u\"?setImmediate:null;typeof navigator<\"u\"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(B){for(var b=n(m);b!==null;){if(b.callback===null)o(m);else if(b.startTime<=B)o(m),b.sortIndex=b.expirationTime,t(h,b);else break;b=n(m)}}function T(B){if(z=!1,E(B),!F)if(n(h)!==null)F=!0,mo(U);else{var b=n(m);b!==null&&jt(T,b.startTime-B)}}function U(B,b){F=!1,z&&(z=!1,_(K),K=-1),O=!0;var ee=P;try{for(E(b),k=n(h);k!==null&&(!(k.expirationTime>b)||B&&!xt());){var he=k.callback;if(typeof he==\"function\"){k.callback=null,P=k.priorityLevel;var ze=he(k.expirationTime<=b);b=e.unstable_now(),typeof ze==\"function\"?k.callback=ze:k===n(h)&&o(h),E(b)}else o(h);k=n(h)}if(k!==null)var ei=!0;else{var xn=n(m);xn!==null&&jt(T,xn.startTime-b),ei=!1}return ei}finally{k=null,P=ee,O=!1}}var G=!1,H=null,K=-1,xe=5,se=-1;function xt(){return!(e.unstable_now()-se<xe)}function _r(){if(H!==null){var B=e.unstable_now();se=B;var b=!0;try{b=H(!0,B)}finally{b?xr():(G=!1,H=null)}}else G=!1}var xr;if(typeof w==\"function\")xr=function(){w(_r)};else if(typeof MessageChannel<\"u\"){var vo=new MessageChannel,la=vo.port2;vo.port1.onmessage=_r,xr=function(){la.postMessage(null)}}else xr=function(){re(_r,0)};function mo(B){H=B,G||(G=!0,xr())}function jt(B,b){K=re(function(){B(e.unstable_now())},b)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){F||O||(F=!0,mo(U))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):xe=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return P},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(B){switch(P){case 1:case 2:case 3:var b=3;break;default:b=P}var ee=P;P=b;try{return B()}finally{P=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,b){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ee=P;P=B;try{return b()}finally{P=ee}},e.unstable_scheduleCallback=function(B,b,ee){var he=e.unstable_now();switch(typeof ee==\"object\"&&ee!==null?(ee=ee.delay,ee=typeof ee==\"number\"&&0<ee?he+ee:he):ee=he,B){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ee+ze,B={id:C++,callback:b,priorityLevel:B,startTime:ee,expirationTime:ze,sortIndex:-1},ee>he?(B.sortIndex=ee,t(m,B),n(h)===null&&B===n(m)&&(z?(_(K),K=-1):z=!0,jt(T,ee-he))):(B.sortIndex=ze,t(h,B),F||O||(F=!0,mo(U))),B},e.unstable_shouldYield=xt,e.unstable_wrapCallback=function(B){var b=P;return function(){var ee=P;P=b;try{return B.apply(this,arguments)}finally{P=ee}}}})(X0);(function(e){e.exports=X0})(cR);/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var fR=D,Mt=lf;function N(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 Z0=new Set,ds={};function jr(e,t){ro(e,t),ro(e+\"Capture\",t)}function ro(e,t){for(ds[e]=t,e=0;e<t.length;e++)Z0.add(t[e])}var Wn=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),uf=Object.prototype.hasOwnProperty,dR=/^[: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]*$/,tv={},nv={};function hR(e){return uf.call(nv,e)?!0:uf.call(tv,e)?!1:dR.test(e)?nv[e]=!0:(tv[e]=!0,!1)}function pR(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case\"function\":case\"symbol\":return!0;case\"boolean\":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==\"data-\"&&e!==\"aria-\");default:return!1}}function gR(e,t,n,o){if(t===null||typeof t>\"u\"||pR(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function at(e,t,n,o,s,u,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=c}var qe={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){qe[e]=new at(e,0,!1,e,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];qe[t]=new at(t,1,!1,e[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){qe[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){qe[e]=new at(e,2,!1,e,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){qe[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){qe[e]=new at(e,3,!0,e,null,!1,!1)});[\"capture\",\"download\"].forEach(function(e){qe[e]=new at(e,4,!1,e,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){qe[e]=new at(e,6,!1,e,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(e){qe[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var pd=/[\\-:]([a-z])/g;function gd(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(pd,gd);qe[t]=new at(t,1,!1,e,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(pd,gd);qe[t]=new at(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(pd,gd);qe[t]=new at(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(e){qe[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new at(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){qe[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function vd(e,t,n,o){var s=qe.hasOwnProperty(t)?qe[t]:null;(s!==null?s.type!==0:o||!(2<t.length)||t[0]!==\"o\"&&t[0]!==\"O\"||t[1]!==\"n\"&&t[1]!==\"N\")&&(gR(t,n,s,o)&&(n=null),o||s===null?hR(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,\"\"+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:\"\":n:(t=s.attributeName,o=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?\"\":\"\"+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var Qn=fR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nl=Symbol.for(\"react.element\"),yi=Symbol.for(\"react.portal\"),wi=Symbol.for(\"react.fragment\"),md=Symbol.for(\"react.strict_mode\"),af=Symbol.for(\"react.profiler\"),q0=Symbol.for(\"react.provider\"),J0=Symbol.for(\"react.context\"),yd=Symbol.for(\"react.forward_ref\"),cf=Symbol.for(\"react.suspense\"),ff=Symbol.for(\"react.suspense_list\"),wd=Symbol.for(\"react.memo\"),er=Symbol.for(\"react.lazy\"),j0=Symbol.for(\"react.offscreen\"),rv=Symbol.iterator;function Ho(e){return e===null||typeof e!=\"object\"?null:(e=rv&&e[rv]||e[\"@@iterator\"],typeof e==\"function\"?e:null)}var Te=Object.assign,Tc;function jo(e){if(Tc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\n( *(at )?)/);Tc=t&&t[1]||\"\"}return`\n`+Tc+e}var Mc=!1;function Nc(e,t){if(!e||Mc)return\"\";Mc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(t,[])}catch(m){var o=m}Reflect.construct(e,[],t)}else{try{t.call()}catch(m){o=m}e.call(t.prototype)}else{try{throw Error()}catch(m){o=m}e()}}catch(m){if(m&&o&&typeof m.stack==\"string\"){for(var s=m.stack.split(`\n`),u=o.stack.split(`\n`),c=s.length-1,d=u.length-1;1<=c&&0<=d&&s[c]!==u[d];)d--;for(;1<=c&&0<=d;c--,d--)if(s[c]!==u[d]){if(c!==1||d!==1)do if(c--,d--,0>d||s[c]!==u[d]){var h=`\n`+s[c].replace(\" at new \",\" at \");return e.displayName&&h.includes(\"<anonymous>\")&&(h=h.replace(\"<anonymous>\",e.displayName)),h}while(1<=c&&0<=d);break}}}finally{Mc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:\"\")?jo(e):\"\"}function vR(e){switch(e.tag){case 5:return jo(e.type);case 16:return jo(\"Lazy\");case 13:return jo(\"Suspense\");case 19:return jo(\"SuspenseList\");case 0:case 2:case 15:return e=Nc(e.type,!1),e;case 11:return e=Nc(e.type.render,!1),e;case 1:return e=Nc(e.type,!0),e;default:return\"\"}}function df(e){if(e==null)return null;if(typeof e==\"function\")return e.displayName||e.name||null;if(typeof e==\"string\")return e;switch(e){case wi:return\"Fragment\";case yi:return\"Portal\";case af:return\"Profiler\";case md:return\"StrictMode\";case cf:return\"Suspense\";case ff:return\"SuspenseList\"}if(typeof e==\"object\")switch(e.$$typeof){case J0:return(e.displayName||\"Context\")+\".Consumer\";case q0:return(e._context.displayName||\"Context\")+\".Provider\";case yd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||\"\",e=e!==\"\"?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case wd:return t=e.displayName||null,t!==null?t:df(e.type)||\"Memo\";case er:t=e._payload,e=e._init;try{return df(e(t))}catch{}}return null}function mR(e){var t=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(t.displayName||\"Context\")+\".Consumer\";case 10:return(t._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=t.render,e=e.displayName||e.name||\"\",t.displayName||(e!==\"\"?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return t;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return df(t);case 8:return t===md?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==\"function\")return t.displayName||t.name||null;if(typeof t==\"string\")return t}return null}function vr(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":return e;case\"object\":return e;default:return\"\"}}function b0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===\"input\"&&(t===\"checkbox\"||t===\"radio\")}function yR(e){var t=b0(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=\"\"+e[t];if(!e.hasOwnProperty(t)&&typeof n<\"u\"&&typeof n.get==\"function\"&&typeof n.set==\"function\"){var s=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(c){o=\"\"+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(c){o=\"\"+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ol(e){e._valueTracker||(e._valueTracker=yR(e))}function em(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o=\"\";return e&&(o=b0(e)?e.checked?\"true\":\"false\":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Su(e){if(e=e||(typeof document<\"u\"?document:void 0),typeof e>\"u\")return null;try{return e.activeElement||e.body}catch{return e.body}}function hf(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iv(e,t){var n=t.defaultValue==null?\"\":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=vr(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type===\"checkbox\"||t.type===\"radio\"?t.checked!=null:t.value!=null}}function tm(e,t){t=t.checked,t!=null&&vd(e,\"checked\",t,!1)}function pf(e,t){tm(e,t);var n=vr(t.value),o=t.type;if(n!=null)o===\"number\"?(n===0&&e.value===\"\"||e.value!=n)&&(e.value=\"\"+n):e.value!==\"\"+n&&(e.value=\"\"+n);else if(o===\"submit\"||o===\"reset\"){e.removeAttribute(\"value\");return}t.hasOwnProperty(\"value\")?gf(e,t.type,n):t.hasOwnProperty(\"defaultValue\")&&gf(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ov(e,t,n){if(t.hasOwnProperty(\"value\")||t.hasOwnProperty(\"defaultValue\")){var o=t.type;if(!(o!==\"submit\"&&o!==\"reset\"||t.value!==void 0&&t.value!==null))return;t=\"\"+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==\"\"&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,n!==\"\"&&(e.name=n)}function gf(e,t,n){(t!==\"number\"||Su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+n&&(e.defaultValue=\"\"+n))}var bo=Array.isArray;function Ti(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t[\"$\"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&o&&(e[n].defaultSelected=!0)}else{for(n=\"\"+vr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,o&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function vf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Te({},t,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function sv(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(bo(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=\"\"),n=t}e._wrapperState={initialValue:vr(n)}}function nm(e,t){var n=vr(t.value),o=vr(t.defaultValue);n!=null&&(n=\"\"+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=\"\"+o)}function lv(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==\"\"&&t!==null&&(e.value=t)}function rm(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 mf(e,t){return e==null||e===\"http://www.w3.org/1999/xhtml\"?rm(t):e===\"http://www.w3.org/2000/svg\"&&t===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":e}var Dl,im=function(e){return typeof MSApp<\"u\"&&MSApp.execUnsafeLocalFunction?function(t,n,o,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,s)})}:e}(function(e,t){if(e.namespaceURI!==\"http://www.w3.org/2000/svg\"||\"innerHTML\"in e)e.innerHTML=t;else{for(Dl=Dl||document.createElement(\"div\"),Dl.innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=Dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rs={animationIterationCount:!0,aspectRatio:!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},wR=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(rs).forEach(function(e){wR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rs[t]=rs[e]})});function om(e,t,n){return t==null||typeof t==\"boolean\"||t===\"\"?\"\":n||typeof t!=\"number\"||t===0||rs.hasOwnProperty(e)&&rs[e]?(\"\"+t).trim():t+\"px\"}function sm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf(\"--\")===0,s=om(n,t[n],o);n===\"float\"&&(n=\"cssFloat\"),o?e.setProperty(n,s):e[n]=s}}var SR=Te({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 yf(e,t){if(t){if(SR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!=\"object\"||!(\"__html\"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!=\"object\")throw Error(N(62))}}function wf(e,t){if(e.indexOf(\"-\")===-1)return typeof t.is==\"string\";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 Sf=null;function Sd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _f=null,Mi=null,Ni=null;function uv(e){if(e=Us(e)){if(typeof _f!=\"function\")throw Error(N(280));var t=e.stateNode;t&&(t=qu(t),_f(e.stateNode,e.type,t))}}function lm(e){Mi?Ni?Ni.push(e):Ni=[e]:Mi=e}function um(){if(Mi){var e=Mi,t=Ni;if(Ni=Mi=null,uv(e),t)for(e=0;e<t.length;e++)uv(t[e])}}function am(e,t){return e(t)}function cm(){}var Oc=!1;function fm(e,t,n){if(Oc)return e(t,n);Oc=!0;try{return am(e,t,n)}finally{Oc=!1,(Mi!==null||Ni!==null)&&(cm(),um())}}function ps(e,t){var n=e.stateNode;if(n===null)return null;var o=qu(n);if(o===null)return null;n=o[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\":(o=!o.disabled)||(e=e.type,o=!(e===\"button\"||e===\"input\"||e===\"select\"||e===\"textarea\")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!=\"function\")throw Error(N(231,t,typeof n));return n}var xf=!1;if(Wn)try{var $o={};Object.defineProperty($o,\"passive\",{get:function(){xf=!0}}),window.addEventListener(\"test\",$o,$o),window.removeEventListener(\"test\",$o,$o)}catch{xf=!1}function _R(e,t,n,o,s,u,c,d,h){var m=Array.prototype.slice.call(arguments,3);try{t.apply(n,m)}catch(C){this.onError(C)}}var is=!1,_u=null,xu=!1,Ef=null,xR={onError:function(e){is=!0,_u=e}};function ER(e,t,n,o,s,u,c,d,h){is=!1,_u=null,_R.apply(xR,arguments)}function CR(e,t,n,o,s,u,c,d,h){if(ER.apply(this,arguments),is){if(is){var m=_u;is=!1,_u=null}else throw Error(N(198));xu||(xu=!0,Ef=m)}}function br(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function av(e){if(br(e)!==e)throw Error(N(188))}function kR(e){var t=e.alternate;if(!t){if(t=br(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return av(s),e;if(u===o)return av(s),t;u=u.sibling}throw Error(N(188))}if(n.return!==o.return)n=s,o=u;else{for(var c=!1,d=s.child;d;){if(d===n){c=!0,n=s,o=u;break}if(d===o){c=!0,o=s,n=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===n){c=!0,n=u,o=s;break}if(d===o){c=!0,o=u,n=s;break}d=d.sibling}if(!c)throw Error(N(189))}}if(n.alternate!==o)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function hm(e){return e=kR(e),e!==null?pm(e):null}function pm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pm(e);if(t!==null)return t;e=e.sibling}return null}var gm=Mt.unstable_scheduleCallback,cv=Mt.unstable_cancelCallback,PR=Mt.unstable_shouldYield,RR=Mt.unstable_requestPaint,Fe=Mt.unstable_now,LR=Mt.unstable_getCurrentPriorityLevel,_d=Mt.unstable_ImmediatePriority,vm=Mt.unstable_UserBlockingPriority,Eu=Mt.unstable_NormalPriority,IR=Mt.unstable_LowPriority,mm=Mt.unstable_IdlePriority,Ku=null,Sn=null;function AR(e){if(Sn&&typeof Sn.onCommitFiberRoot==\"function\")try{Sn.onCommitFiberRoot(Ku,e,void 0,(e.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:NR,TR=Math.log,MR=Math.LN2;function NR(e){return e>>>=0,e===0?32:31-(TR(e)/MR|0)|0}var Fl=64,zl=4194304;function es(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cu(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,s=e.suspendedLanes,u=e.pingedLanes,c=n&268435455;if(c!==0){var d=c&~s;d!==0?o=es(d):(u&=c,u!==0&&(o=es(u)))}else c=n&~s,c!==0?o=es(c):u!==0&&(o=es(u));if(o===0)return 0;if(t!==0&&t!==o&&!(t&s)&&(s=o&-o,u=t&-t,s>=u||s===16&&(u&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-cn(t),s=1<<n,o|=e[n],t&=~s;return o}function OR(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function DR(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes;0<u;){var c=31-cn(u),d=1<<c,h=s[c];h===-1?(!(d&n)||d&o)&&(s[c]=OR(d,t)):h<=t&&(e.expiredLanes|=d),u&=~d}}function Cf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ym(){var e=Fl;return Fl<<=1,!(Fl&4194240)&&(Fl=64),e}function Dc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=n}function FR(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-cn(n),u=1<<s;t[s]=0,o[s]=-1,e[s]=-1,n&=~u}}function xd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-cn(n),s=1<<o;s&t|e[o]&t&&(e[o]|=t),n&=~s}}var ye=0;function wm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sm,Ed,_m,xm,Em,kf=!1,Ul=[],ur=null,ar=null,cr=null,gs=new Map,vs=new Map,nr=[],zR=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");function fv(e,t){switch(e){case\"focusin\":case\"focusout\":ur=null;break;case\"dragenter\":case\"dragleave\":ar=null;break;case\"mouseover\":case\"mouseout\":cr=null;break;case\"pointerover\":case\"pointerout\":gs.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":vs.delete(t.pointerId)}}function Qo(e,t,n,o,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Us(t),t!==null&&Ed(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function UR(e,t,n,o,s){switch(t){case\"focusin\":return ur=Qo(ur,e,t,n,o,s),!0;case\"dragenter\":return ar=Qo(ar,e,t,n,o,s),!0;case\"mouseover\":return cr=Qo(cr,e,t,n,o,s),!0;case\"pointerover\":var u=s.pointerId;return gs.set(u,Qo(gs.get(u)||null,e,t,n,o,s)),!0;case\"gotpointercapture\":return u=s.pointerId,vs.set(u,Qo(vs.get(u)||null,e,t,n,o,s)),!0}return!1}function Cm(e){var t=Fr(e.target);if(t!==null){var n=br(t);if(n!==null){if(t=n.tag,t===13){if(t=dm(n),t!==null){e.blockedOn=t,Em(e.priority,function(){_m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);Sf=o,n.target.dispatchEvent(o),Sf=null}else return t=Us(n),t!==null&&Ed(t),e.blockedOn=n,!1;t.shift()}return!0}function dv(e,t,n){lu(e)&&n.delete(t)}function WR(){kf=!1,ur!==null&&lu(ur)&&(ur=null),ar!==null&&lu(ar)&&(ar=null),cr!==null&&lu(cr)&&(cr=null),gs.forEach(dv),vs.forEach(dv)}function Go(e,t){e.blockedOn===t&&(e.blockedOn=null,kf||(kf=!0,Mt.unstable_scheduleCallback(Mt.unstable_NormalPriority,WR)))}function ms(e){function t(s){return Go(s,e)}if(0<Ul.length){Go(Ul[0],e);for(var n=1;n<Ul.length;n++){var o=Ul[n];o.blockedOn===e&&(o.blockedOn=null)}}for(ur!==null&&Go(ur,e),ar!==null&&Go(ar,e),cr!==null&&Go(cr,e),gs.forEach(t),vs.forEach(t),n=0;n<nr.length;n++)o=nr[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<nr.length&&(n=nr[0],n.blockedOn===null);)Cm(n),n.blockedOn===null&&nr.shift()}var Oi=Qn.ReactCurrentBatchConfig,ku=!0;function BR(e,t,n,o){var s=ye,u=Oi.transition;Oi.transition=null;try{ye=1,Cd(e,t,n,o)}finally{ye=s,Oi.transition=u}}function HR(e,t,n,o){var s=ye,u=Oi.transition;Oi.transition=null;try{ye=4,Cd(e,t,n,o)}finally{ye=s,Oi.transition=u}}function Cd(e,t,n,o){if(ku){var s=Pf(e,t,n,o);if(s===null)Vc(e,t,o,Pu,n),fv(e,o);else if(UR(s,e,t,n,o))o.stopPropagation();else if(fv(e,o),t&4&&-1<zR.indexOf(e)){for(;s!==null;){var u=Us(s);if(u!==null&&Sm(u),u=Pf(e,t,n,o),u===null&&Vc(e,t,o,Pu,n),u===s)break;s=u}s!==null&&o.stopPropagation()}else Vc(e,t,o,null,n)}}var Pu=null;function Pf(e,t,n,o){if(Pu=null,e=Sd(o),e=Fr(e),e!==null)if(t=br(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Pu=e,null}function km(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 1;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 4;case\"message\":switch(LR()){case _d:return 1;case vm:return 4;case Eu:case IR:return 16;case mm:return 536870912;default:return 16}default:return 16}}var sr=null,kd=null,uu=null;function Pm(){if(uu)return uu;var e,t=kd,n=t.length,o,s=\"value\"in sr?sr.value:sr.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var c=n-e;for(o=1;o<=c&&t[n-o]===s[u-o];o++);return uu=s.slice(e,1<o?1-o:void 0)}function au(e){var t=e.keyCode;return\"charCode\"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wl(){return!0}function hv(){return!1}function Ot(e){function t(n,o,s,u,c){this._reactName=n,this._targetInst=s,this.type=o,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Wl:hv,this.isPropagationStopped=hv,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!=\"unknown\"&&(n.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\"unknown\"&&(n.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),t}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pd=Ot(po),zs=Te({},po,{view:0,detail:0}),$R=Ot(zs),Fc,zc,Vo,Yu=Te({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==Vo&&(Vo&&e.type===\"mousemove\"?(Fc=e.screenX-Vo.screenX,zc=e.screenY-Vo.screenY):zc=Fc=0,Vo=e),Fc)},movementY:function(e){return\"movementY\"in e?e.movementY:zc}}),pv=Ot(Yu),QR=Te({},Yu,{dataTransfer:0}),GR=Ot(QR),VR=Te({},zs,{relatedTarget:0}),Uc=Ot(VR),KR=Te({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),YR=Ot(KR),XR=Te({},po,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}}),ZR=Ot(XR),qR=Te({},po,{data:0}),gv=Ot(qR),JR={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\"},bR={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function eL(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bR[e])?!!t[e]:!1}function Rd(){return eL}var tL=Te({},zs,{key:function(e){if(e.key){var t=JR[e.key]||e.key;if(t!==\"Unidentified\")return t}return e.type===\"keypress\"?(e=au(e),e===13?\"Enter\":String.fromCharCode(e)):e.type===\"keydown\"||e.type===\"keyup\"?jR[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rd,charCode:function(e){return e.type===\"keypress\"?au(e):0},keyCode:function(e){return e.type===\"keydown\"||e.type===\"keyup\"?e.keyCode:0},which:function(e){return e.type===\"keypress\"?au(e):e.type===\"keydown\"||e.type===\"keyup\"?e.keyCode:0}}),nL=Ot(tL),rL=Te({},Yu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vv=Ot(rL),iL=Te({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rd}),oL=Ot(iL),sL=Te({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),lL=Ot(sL),uL=Te({},Yu,{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:0,deltaMode:0}),aL=Ot(uL),cL=[9,13,27,32],Ld=Wn&&\"CompositionEvent\"in window,os=null;Wn&&\"documentMode\"in document&&(os=document.documentMode);var fL=Wn&&\"TextEvent\"in window&&!os,Rm=Wn&&(!Ld||os&&8<os&&11>=os),mv=String.fromCharCode(32),yv=!1;function Lm(e,t){switch(e){case\"keyup\":return cL.indexOf(t.keyCode)!==-1;case\"keydown\":return t.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function Im(e){return e=e.detail,typeof e==\"object\"&&\"data\"in e?e.data:null}var Si=!1;function dL(e,t){switch(e){case\"compositionend\":return Im(t);case\"keypress\":return t.which!==32?null:(yv=!0,mv);case\"textInput\":return e=t.data,e===mv&&yv?null:e;default:return null}}function hL(e,t){if(Si)return e===\"compositionend\"||!Ld&&Lm(e,t)?(e=Pm(),uu=kd=sr=null,Si=!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 Rm&&t.locale!==\"ko\"?null:t.data;default:return null}}var pL={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 wv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===\"input\"?!!pL[e.type]:t===\"textarea\"}function Am(e,t,n,o){lm(o),t=Ru(t,\"onChange\"),0<t.length&&(n=new Pd(\"onChange\",\"change\",null,n,o),e.push({event:n,listeners:t}))}var ss=null,ys=null;function gL(e){Hm(e,0)}function Xu(e){var t=Ei(e);if(em(t))return e}function vL(e,t){if(e===\"change\")return t}var Tm=!1;if(Wn){var Wc;if(Wn){var Bc=\"oninput\"in document;if(!Bc){var Sv=document.createElement(\"div\");Sv.setAttribute(\"oninput\",\"return;\"),Bc=typeof Sv.oninput==\"function\"}Wc=Bc}else Wc=!1;Tm=Wc&&(!document.documentMode||9<document.documentMode)}function _v(){ss&&(ss.detachEvent(\"onpropertychange\",Mm),ys=ss=null)}function Mm(e){if(e.propertyName===\"value\"&&Xu(ys)){var t=[];Am(t,ys,e,Sd(e)),fm(gL,t)}}function mL(e,t,n){e===\"focusin\"?(_v(),ss=t,ys=n,ss.attachEvent(\"onpropertychange\",Mm)):e===\"focusout\"&&_v()}function yL(e){if(e===\"selectionchange\"||e===\"keyup\"||e===\"keydown\")return Xu(ys)}function wL(e,t){if(e===\"click\")return Xu(t)}function SL(e,t){if(e===\"input\"||e===\"change\")return Xu(t)}function _L(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dn=typeof Object.is==\"function\"?Object.is:_L;function ws(e,t){if(dn(e,t))return!0;if(typeof e!=\"object\"||e===null||typeof t!=\"object\"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var s=n[o];if(!uf.call(t,s)||!dn(e[s],t[s]))return!1}return!0}function xv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ev(e,t){var n=xv(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xv(n)}}function Nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nm(e,t.parentNode):\"contains\"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Om(){for(var e=window,t=Su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==\"string\"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Su(e.document)}return t}function Id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===\"input\"&&(e.type===\"text\"||e.type===\"search\"||e.type===\"tel\"||e.type===\"url\"||e.type===\"password\")||t===\"textarea\"||e.contentEditable===\"true\")}function xL(e){var t=Om(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nm(n.ownerDocument.documentElement,n)){if(o!==null&&Id(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),\"selectionStart\"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,u=Math.min(o.start,s);o=o.end===void 0?u:Math.min(o.end,s),!e.extend&&u>o&&(s=o,o=u,u=s),s=Ev(n,u);var c=Ev(n,o);s&&c&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),u>o?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==\"function\"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var EL=Wn&&\"documentMode\"in document&&11>=document.documentMode,_i=null,Rf=null,ls=null,Lf=!1;function Cv(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lf||_i==null||_i!==Su(o)||(o=_i,\"selectionStart\"in o&&Id(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ls&&ws(ls,o)||(ls=o,o=Ru(Rf,\"onSelect\"),0<o.length&&(t=new Pd(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:o}),t.target=_i)))}function Bl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var xi={animationend:Bl(\"Animation\",\"AnimationEnd\"),animationiteration:Bl(\"Animation\",\"AnimationIteration\"),animationstart:Bl(\"Animation\",\"AnimationStart\"),transitionend:Bl(\"Transition\",\"TransitionEnd\")},Hc={},Dm={};Wn&&(Dm=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),\"TransitionEvent\"in window||delete xi.transitionend.transition);function Zu(e){if(Hc[e])return Hc[e];if(!xi[e])return e;var t=xi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Dm)return Hc[e]=t[n];return e}var Fm=Zu(\"animationend\"),zm=Zu(\"animationiteration\"),Um=Zu(\"animationstart\"),Wm=Zu(\"transitionend\"),Bm=new Map,kv=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");function yr(e,t){Bm.set(e,t),jr(t,[e])}for(var $c=0;$c<kv.length;$c++){var Qc=kv[$c],CL=Qc.toLowerCase(),kL=Qc[0].toUpperCase()+Qc.slice(1);yr(CL,\"on\"+kL)}yr(Fm,\"onAnimationEnd\");yr(zm,\"onAnimationIteration\");yr(Um,\"onAnimationStart\");yr(\"dblclick\",\"onDoubleClick\");yr(\"focusin\",\"onFocus\");yr(\"focusout\",\"onBlur\");yr(Wm,\"onTransitionEnd\");ro(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]);ro(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]);ro(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]);ro(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]);jr(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \"));jr(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \"));jr(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]);jr(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \"));jr(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \"));jr(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var ts=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),PL=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(ts));function Pv(e,t,n){var o=e.type||\"unknown-event\";e.currentTarget=n,CR(o,t,void 0,e),e.currentTarget=null}function Hm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],s=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var c=o.length-1;0<=c;c--){var d=o[c],h=d.instance,m=d.currentTarget;if(d=d.listener,h!==u&&s.isPropagationStopped())break e;Pv(s,d,m),u=h}else for(c=0;c<o.length;c++){if(d=o[c],h=d.instance,m=d.currentTarget,d=d.listener,h!==u&&s.isPropagationStopped())break e;Pv(s,d,m),u=h}}}if(xu)throw e=Ef,xu=!1,Ef=null,e}function Ce(e,t){var n=t[Nf];n===void 0&&(n=t[Nf]=new Set);var o=e+\"__bubble\";n.has(o)||($m(t,e,2,!1),n.add(o))}function Gc(e,t,n){var o=0;t&&(o|=4),$m(n,e,o,t)}var Hl=\"_reactListening\"+Math.random().toString(36).slice(2);function Ss(e){if(!e[Hl]){e[Hl]=!0,Z0.forEach(function(n){n!==\"selectionchange\"&&(PL.has(n)||Gc(n,!1,e),Gc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hl]||(t[Hl]=!0,Gc(\"selectionchange\",!1,t))}}function $m(e,t,n,o){switch(km(t)){case 1:var s=BR;break;case 4:s=HR;break;default:s=Cd}n=s.bind(null,t,n,e),s=void 0,!xf||t!==\"touchstart\"&&t!==\"touchmove\"&&t!==\"wheel\"||(s=!0),o?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Vc(e,t,n,o,s){var u=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var c=o.tag;if(c===3||c===4){var d=o.stateNode.containerInfo;if(d===s||d.nodeType===8&&d.parentNode===s)break;if(c===4)for(c=o.return;c!==null;){var h=c.tag;if((h===3||h===4)&&(h=c.stateNode.containerInfo,h===s||h.nodeType===8&&h.parentNode===s))return;c=c.return}for(;d!==null;){if(c=Fr(d),c===null)return;if(h=c.tag,h===5||h===6){o=u=c;continue e}d=d.parentNode}}o=o.return}fm(function(){var m=u,C=Sd(n),k=[];e:{var P=Bm.get(e);if(P!==void 0){var O=Pd,F=e;switch(e){case\"keypress\":if(au(n)===0)break e;case\"keydown\":case\"keyup\":O=nL;break;case\"focusin\":F=\"focus\",O=Uc;break;case\"focusout\":F=\"blur\",O=Uc;break;case\"beforeblur\":case\"afterblur\":O=Uc;break;case\"click\":if(n.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":O=pv;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":O=GR;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":O=oL;break;case Fm:case zm:case Um:O=YR;break;case Wm:O=lL;break;case\"scroll\":O=$R;break;case\"wheel\":O=aL;break;case\"copy\":case\"cut\":case\"paste\":O=ZR;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":O=vv}var z=(t&4)!==0,re=!z&&e===\"scroll\",_=z?P!==null?P+\"Capture\":null:P;z=[];for(var w=m,E;w!==null;){E=w;var T=E.stateNode;if(E.tag===5&&T!==null&&(E=T,_!==null&&(T=ps(w,_),T!=null&&z.push(_s(w,T,E)))),re)break;w=w.return}0<z.length&&(P=new O(P,F,null,n,C),k.push({event:P,listeners:z}))}}if(!(t&7)){e:{if(P=e===\"mouseover\"||e===\"pointerover\",O=e===\"mouseout\"||e===\"pointerout\",P&&n!==Sf&&(F=n.relatedTarget||n.fromElement)&&(Fr(F)||F[Bn]))break e;if((O||P)&&(P=C.window===C?C:(P=C.ownerDocument)?P.defaultView||P.parentWindow:window,O?(F=n.relatedTarget||n.toElement,O=m,F=F?Fr(F):null,F!==null&&(re=br(F),F!==re||F.tag!==5&&F.tag!==6)&&(F=null)):(O=null,F=m),O!==F)){if(z=pv,T=\"onMouseLeave\",_=\"onMouseEnter\",w=\"mouse\",(e===\"pointerout\"||e===\"pointerover\")&&(z=vv,T=\"onPointerLeave\",_=\"onPointerEnter\",w=\"pointer\"),re=O==null?P:Ei(O),E=F==null?P:Ei(F),P=new z(T,w+\"leave\",O,n,C),P.target=re,P.relatedTarget=E,T=null,Fr(C)===m&&(z=new z(_,w+\"enter\",F,n,C),z.target=E,z.relatedTarget=re,T=z),re=T,O&&F)t:{for(z=O,_=F,w=0,E=z;E;E=mi(E))w++;for(E=0,T=_;T;T=mi(T))E++;for(;0<w-E;)z=mi(z),w--;for(;0<E-w;)_=mi(_),E--;for(;w--;){if(z===_||_!==null&&z===_.alternate)break t;z=mi(z),_=mi(_)}z=null}else z=null;O!==null&&Rv(k,P,O,z,!1),F!==null&&re!==null&&Rv(k,re,F,z,!0)}}e:{if(P=m?Ei(m):window,O=P.nodeName&&P.nodeName.toLowerCase(),O===\"select\"||O===\"input\"&&P.type===\"file\")var U=vL;else if(wv(P))if(Tm)U=SL;else{U=yL;var G=mL}else(O=P.nodeName)&&O.toLowerCase()===\"input\"&&(P.type===\"checkbox\"||P.type===\"radio\")&&(U=wL);if(U&&(U=U(e,m))){Am(k,U,n,C);break e}G&&G(e,P,m),e===\"focusout\"&&(G=P._wrapperState)&&G.controlled&&P.type===\"number\"&&gf(P,\"number\",P.value)}switch(G=m?Ei(m):window,e){case\"focusin\":(wv(G)||G.contentEditable===\"true\")&&(_i=G,Rf=m,ls=null);break;case\"focusout\":ls=Rf=_i=null;break;case\"mousedown\":Lf=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":Lf=!1,Cv(k,n,C);break;case\"selectionchange\":if(EL)break;case\"keydown\":case\"keyup\":Cv(k,n,C)}var H;if(Ld)e:{switch(e){case\"compositionstart\":var K=\"onCompositionStart\";break e;case\"compositionend\":K=\"onCompositionEnd\";break e;case\"compositionupdate\":K=\"onCompositionUpdate\";break e}K=void 0}else Si?Lm(e,n)&&(K=\"onCompositionEnd\"):e===\"keydown\"&&n.keyCode===229&&(K=\"onCompositionStart\");K&&(Rm&&n.locale!==\"ko\"&&(Si||K!==\"onCompositionStart\"?K===\"onCompositionEnd\"&&Si&&(H=Pm()):(sr=C,kd=\"value\"in sr?sr.value:sr.textContent,Si=!0)),G=Ru(m,K),0<G.length&&(K=new gv(K,e,null,n,C),k.push({event:K,listeners:G}),H?K.data=H:(H=Im(n),H!==null&&(K.data=H)))),(H=fL?dL(e,n):hL(e,n))&&(m=Ru(m,\"onBeforeInput\"),0<m.length&&(C=new gv(\"onBeforeInput\",\"beforeinput\",null,n,C),k.push({event:C,listeners:m}),C.data=H))}Hm(k,t)})}function _s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ru(e,t){for(var n=t+\"Capture\",o=[];e!==null;){var s=e,u=s.stateNode;s.tag===5&&u!==null&&(s=u,u=ps(e,n),u!=null&&o.unshift(_s(e,u,s)),u=ps(e,t),u!=null&&o.push(_s(e,u,s))),e=e.return}return o}function mi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rv(e,t,n,o,s){for(var u=t._reactName,c=[];n!==null&&n!==o;){var d=n,h=d.alternate,m=d.stateNode;if(h!==null&&h===o)break;d.tag===5&&m!==null&&(d=m,s?(h=ps(n,u),h!=null&&c.unshift(_s(n,h,d))):s||(h=ps(n,u),h!=null&&c.push(_s(n,h,d)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var RL=/\\r\\n?/g,LL=/\\u0000|\\uFFFD/g;function Lv(e){return(typeof e==\"string\"?e:\"\"+e).replace(RL,`\n`).replace(LL,\"\")}function $l(e,t,n){if(t=Lv(t),Lv(e)!==t&&n)throw Error(N(425))}function Lu(){}var If=null,Af=null;function Tf(e,t){return e===\"textarea\"||e===\"noscript\"||typeof t.children==\"string\"||typeof t.children==\"number\"||typeof t.dangerouslySetInnerHTML==\"object\"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Mf=typeof setTimeout==\"function\"?setTimeout:void 0,IL=typeof clearTimeout==\"function\"?clearTimeout:void 0,Iv=typeof Promise==\"function\"?Promise:void 0,AL=typeof queueMicrotask==\"function\"?queueMicrotask:typeof Iv<\"u\"?function(e){return Iv.resolve(null).then(e).catch(TL)}:Mf;function TL(e){setTimeout(function(){throw e})}function Kc(e,t){var n=t,o=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n===\"/$\"){if(o===0){e.removeChild(s),ms(t);return}o--}else n!==\"$\"&&n!==\"$?\"&&n!==\"$!\"||o++;n=s}while(n);ms(t)}function fr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===\"$\"||t===\"$!\"||t===\"$?\")break;if(t===\"/$\")return null}}return e}function Av(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===\"$\"||n===\"$!\"||n===\"$?\"){if(t===0)return e;t--}else n===\"/$\"&&t++}e=e.previousSibling}return null}var go=Math.random().toString(36).slice(2),wn=\"__reactFiber$\"+go,xs=\"__reactProps$\"+go,Bn=\"__reactContainer$\"+go,Nf=\"__reactEvents$\"+go,ML=\"__reactListeners$\"+go,NL=\"__reactHandles$\"+go;function Fr(e){var t=e[wn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[wn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Av(e);e!==null;){if(n=e[wn])return n;e=Av(e)}return t}e=n,n=e.parentNode}return null}function Us(e){return e=e[wn]||e[Bn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ei(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function qu(e){return e[xs]||null}var Of=[],Ci=-1;function wr(e){return{current:e}}function ke(e){0>Ci||(e.current=Of[Ci],Of[Ci]=null,Ci--)}function _e(e,t){Ci++,Of[Ci]=e.current,e.current=t}var mr={},nt=wr(mr),wt=wr(!1),Vr=mr;function io(e,t){var n=e.type.contextTypes;if(!n)return mr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},u;for(u in n)s[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function St(e){return e=e.childContextTypes,e!=null}function Iu(){ke(wt),ke(nt)}function Tv(e,t,n){if(nt.current!==mr)throw Error(N(168));_e(nt,t),_e(wt,n)}function Qm(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!=\"function\")return n;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(N(108,mR(e)||\"Unknown\",s));return Te({},n,o)}function Au(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mr,Vr=nt.current,_e(nt,e),_e(wt,wt.current),!0}function Mv(e,t,n){var o=e.stateNode;if(!o)throw Error(N(169));n?(e=Qm(e,t,Vr),o.__reactInternalMemoizedMergedChildContext=e,ke(wt),ke(nt),_e(nt,e)):ke(wt),_e(wt,n)}var Dn=null,Ju=!1,Yc=!1;function Gm(e){Dn===null?Dn=[e]:Dn.push(e)}function OL(e){Ju=!0,Gm(e)}function Sr(){if(!Yc&&Dn!==null){Yc=!0;var e=0,t=ye;try{var n=Dn;for(ye=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Dn=null,Ju=!1}catch(s){throw Dn!==null&&(Dn=Dn.slice(e+1)),gm(_d,Sr),s}finally{ye=t,Yc=!1}}return null}var ki=[],Pi=0,Tu=null,Mu=0,Vt=[],Kt=0,Kr=null,Fn=1,zn=\"\";function Nr(e,t){ki[Pi++]=Mu,ki[Pi++]=Tu,Tu=e,Mu=t}function Vm(e,t,n){Vt[Kt++]=Fn,Vt[Kt++]=zn,Vt[Kt++]=Kr,Kr=e;var o=Fn;e=zn;var s=32-cn(o)-1;o&=~(1<<s),n+=1;var u=32-cn(t)+s;if(30<u){var c=s-s%5;u=(o&(1<<c)-1).toString(32),o>>=c,s-=c,Fn=1<<32-cn(t)+s|n<<s|o,zn=u+e}else Fn=1<<u|n<<s|o,zn=e}function Ad(e){e.return!==null&&(Nr(e,1),Vm(e,1,0))}function Td(e){for(;e===Tu;)Tu=ki[--Pi],ki[Pi]=null,Mu=ki[--Pi],ki[Pi]=null;for(;e===Kr;)Kr=Vt[--Kt],Vt[Kt]=null,zn=Vt[--Kt],Vt[Kt]=null,Fn=Vt[--Kt],Vt[Kt]=null}var Tt=null,At=null,Re=!1,an=null;function Km(e,t){var n=Xt(5,null,null,0);n.elementType=\"DELETED\",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nv(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,At=fr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===\"\"||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kr!==null?{id:Fn,overflow:zn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tt=e,At=null,!0):!1;default:return!1}}function Df(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ff(e){if(Re){var t=At;if(t){var n=t;if(!Nv(e,t)){if(Df(e))throw Error(N(418));t=fr(n.nextSibling);var o=Tt;t&&Nv(e,t)?Km(o,n):(e.flags=e.flags&-4097|2,Re=!1,Tt=e)}}else{if(Df(e))throw Error(N(418));e.flags=e.flags&-4097|2,Re=!1,Tt=e}}}function Ov(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tt=e}function Ql(e){if(e!==Tt)return!1;if(!Re)return Ov(e),Re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==\"head\"&&t!==\"body\"&&!Tf(e.type,e.memoizedProps)),t&&(t=At)){if(Df(e))throw Ym(),Error(N(418));for(;t;)Km(e,t),t=fr(t.nextSibling)}if(Ov(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===\"/$\"){if(t===0){At=fr(e.nextSibling);break e}t--}else n!==\"$\"&&n!==\"$!\"&&n!==\"$?\"||t++}e=e.nextSibling}At=null}}else At=Tt?fr(e.stateNode.nextSibling):null;return!0}function Ym(){for(var e=At;e;)e=fr(e.nextSibling)}function oo(){At=Tt=null,Re=!1}function Md(e){an===null?an=[e]:an.push(e)}var DL=Qn.ReactCurrentBatchConfig;function Ko(e,t,n){if(e=n.ref,e!==null&&typeof e!=\"function\"&&typeof e!=\"object\"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var o=n.stateNode}if(!o)throw Error(N(147,e));var s=o,u=\"\"+e;return t!==null&&t.ref!==null&&typeof t.ref==\"function\"&&t.ref._stringRef===u?t.ref:(t=function(c){var d=s.refs;c===null?delete d[u]:d[u]=c},t._stringRef=u,t)}if(typeof e!=\"string\")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Gl(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e===\"[object Object]\"?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function Dv(e){var t=e._init;return t(e._payload)}function Xm(e){function t(_,w){if(e){var E=_.deletions;E===null?(_.deletions=[w],_.flags|=16):E.push(w)}}function n(_,w){if(!e)return null;for(;w!==null;)t(_,w),w=w.sibling;return null}function o(_,w){for(_=new Map;w!==null;)w.key!==null?_.set(w.key,w):_.set(w.index,w),w=w.sibling;return _}function s(_,w){return _=gr(_,w),_.index=0,_.sibling=null,_}function u(_,w,E){return _.index=E,e?(E=_.alternate,E!==null?(E=E.index,E<w?(_.flags|=2,w):E):(_.flags|=2,w)):(_.flags|=1048576,w)}function c(_){return e&&_.alternate===null&&(_.flags|=2),_}function d(_,w,E,T){return w===null||w.tag!==6?(w=ef(E,_.mode,T),w.return=_,w):(w=s(w,E),w.return=_,w)}function h(_,w,E,T){var U=E.type;return U===wi?C(_,w,E.props.children,T,E.key):w!==null&&(w.elementType===U||typeof U==\"object\"&&U!==null&&U.$$typeof===er&&Dv(U)===w.type)?(T=s(w,E.props),T.ref=Ko(_,w,E),T.return=_,T):(T=vu(E.type,E.key,E.props,null,_.mode,T),T.ref=Ko(_,w,E),T.return=_,T)}function m(_,w,E,T){return w===null||w.tag!==4||w.stateNode.containerInfo!==E.containerInfo||w.stateNode.implementation!==E.implementation?(w=tf(E,_.mode,T),w.return=_,w):(w=s(w,E.children||[]),w.return=_,w)}function C(_,w,E,T,U){return w===null||w.tag!==7?(w=Gr(E,_.mode,T,U),w.return=_,w):(w=s(w,E),w.return=_,w)}function k(_,w,E){if(typeof w==\"string\"&&w!==\"\"||typeof w==\"number\")return w=ef(\"\"+w,_.mode,E),w.return=_,w;if(typeof w==\"object\"&&w!==null){switch(w.$$typeof){case Nl:return E=vu(w.type,w.key,w.props,null,_.mode,E),E.ref=Ko(_,null,w),E.return=_,E;case yi:return w=tf(w,_.mode,E),w.return=_,w;case er:var T=w._init;return k(_,T(w._payload),E)}if(bo(w)||Ho(w))return w=Gr(w,_.mode,E,null),w.return=_,w;Gl(_,w)}return null}function P(_,w,E,T){var U=w!==null?w.key:null;if(typeof E==\"string\"&&E!==\"\"||typeof E==\"number\")return U!==null?null:d(_,w,\"\"+E,T);if(typeof E==\"object\"&&E!==null){switch(E.$$typeof){case Nl:return E.key===U?h(_,w,E,T):null;case yi:return E.key===U?m(_,w,E,T):null;case er:return U=E._init,P(_,w,U(E._payload),T)}if(bo(E)||Ho(E))return U!==null?null:C(_,w,E,T,null);Gl(_,E)}return null}function O(_,w,E,T,U){if(typeof T==\"string\"&&T!==\"\"||typeof T==\"number\")return _=_.get(E)||null,d(w,_,\"\"+T,U);if(typeof T==\"object\"&&T!==null){switch(T.$$typeof){case Nl:return _=_.get(T.key===null?E:T.key)||null,h(w,_,T,U);case yi:return _=_.get(T.key===null?E:T.key)||null,m(w,_,T,U);case er:var G=T._init;return O(_,w,E,G(T._payload),U)}if(bo(T)||Ho(T))return _=_.get(E)||null,C(w,_,T,U,null);Gl(w,T)}return null}function F(_,w,E,T){for(var U=null,G=null,H=w,K=w=0,xe=null;H!==null&&K<E.length;K++){H.index>K?(xe=H,H=null):xe=H.sibling;var se=P(_,H,E[K],T);if(se===null){H===null&&(H=xe);break}e&&H&&se.alternate===null&&t(_,H),w=u(se,w,K),G===null?U=se:G.sibling=se,G=se,H=xe}if(K===E.length)return n(_,H),Re&&Nr(_,K),U;if(H===null){for(;K<E.length;K++)H=k(_,E[K],T),H!==null&&(w=u(H,w,K),G===null?U=H:G.sibling=H,G=H);return Re&&Nr(_,K),U}for(H=o(_,H);K<E.length;K++)xe=O(H,_,K,E[K],T),xe!==null&&(e&&xe.alternate!==null&&H.delete(xe.key===null?K:xe.key),w=u(xe,w,K),G===null?U=xe:G.sibling=xe,G=xe);return e&&H.forEach(function(xt){return t(_,xt)}),Re&&Nr(_,K),U}function z(_,w,E,T){var U=Ho(E);if(typeof U!=\"function\")throw Error(N(150));if(E=U.call(E),E==null)throw Error(N(151));for(var G=U=null,H=w,K=w=0,xe=null,se=E.next();H!==null&&!se.done;K++,se=E.next()){H.index>K?(xe=H,H=null):xe=H.sibling;var xt=P(_,H,se.value,T);if(xt===null){H===null&&(H=xe);break}e&&H&&xt.alternate===null&&t(_,H),w=u(xt,w,K),G===null?U=xt:G.sibling=xt,G=xt,H=xe}if(se.done)return n(_,H),Re&&Nr(_,K),U;if(H===null){for(;!se.done;K++,se=E.next())se=k(_,se.value,T),se!==null&&(w=u(se,w,K),G===null?U=se:G.sibling=se,G=se);return Re&&Nr(_,K),U}for(H=o(_,H);!se.done;K++,se=E.next())se=O(H,_,K,se.value,T),se!==null&&(e&&se.alternate!==null&&H.delete(se.key===null?K:se.key),w=u(se,w,K),G===null?U=se:G.sibling=se,G=se);return e&&H.forEach(function(_r){return t(_,_r)}),Re&&Nr(_,K),U}function re(_,w,E,T){if(typeof E==\"object\"&&E!==null&&E.type===wi&&E.key===null&&(E=E.props.children),typeof E==\"object\"&&E!==null){switch(E.$$typeof){case Nl:e:{for(var U=E.key,G=w;G!==null;){if(G.key===U){if(U=E.type,U===wi){if(G.tag===7){n(_,G.sibling),w=s(G,E.props.children),w.return=_,_=w;break e}}else if(G.elementType===U||typeof U==\"object\"&&U!==null&&U.$$typeof===er&&Dv(U)===G.type){n(_,G.sibling),w=s(G,E.props),w.ref=Ko(_,G,E),w.return=_,_=w;break e}n(_,G);break}else t(_,G);G=G.sibling}E.type===wi?(w=Gr(E.props.children,_.mode,T,E.key),w.return=_,_=w):(T=vu(E.type,E.key,E.props,null,_.mode,T),T.ref=Ko(_,w,E),T.return=_,_=T)}return c(_);case yi:e:{for(G=E.key;w!==null;){if(w.key===G)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){n(_,w.sibling),w=s(w,E.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=tf(E,_.mode,T),w.return=_,_=w}return c(_);case er:return G=E._init,re(_,w,G(E._payload),T)}if(bo(E))return F(_,w,E,T);if(Ho(E))return z(_,w,E,T);Gl(_,E)}return typeof E==\"string\"&&E!==\"\"||typeof E==\"number\"?(E=\"\"+E,w!==null&&w.tag===6?(n(_,w.sibling),w=s(w,E),w.return=_,_=w):(n(_,w),w=ef(E,_.mode,T),w.return=_,_=w),c(_)):n(_,w)}return re}var so=Xm(!0),Zm=Xm(!1),Nu=wr(null),Ou=null,Ri=null,Nd=null;function Od(){Nd=Ri=Ou=null}function Dd(e){var t=Nu.current;ke(Nu),e._currentValue=t}function zf(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Di(e,t){Ou=e,Nd=Ri=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(Nd!==e)if(e={context:e,memoizedValue:t,next:null},Ri===null){if(Ou===null)throw Error(N(308));Ri=e,Ou.dependencies={lanes:0,firstContext:e}}else Ri=Ri.next=e;return t}var zr=null;function Fd(e){zr===null?zr=[e]:zr.push(e)}function qm(e,t,n,o){var s=t.interleaved;return s===null?(n.next=n,Fd(t)):(n.next=s.next,s.next=n),t.interleaved=n,Hn(e,o)}function Hn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var tr=!1;function zd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dr(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,de&2){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,Hn(e,n)}return s=o.interleaved,s===null?(t.next=t,Fd(o)):(t.next=s.next,s.next=t),o.interleaved=t,Hn(e,n)}function cu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,xd(e,n)}}function Fv(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?s=u=c:u=u.next=c,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Du(e,t,n,o){var s=e.updateQueue;tr=!1;var u=s.firstBaseUpdate,c=s.lastBaseUpdate,d=s.shared.pending;if(d!==null){s.shared.pending=null;var h=d,m=h.next;h.next=null,c===null?u=m:c.next=m,c=h;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==c&&(d===null?C.firstBaseUpdate=m:d.next=m,C.lastBaseUpdate=h))}if(u!==null){var k=s.baseState;c=0,C=m=h=null,d=u;do{var P=d.lane,O=d.eventTime;if((o&P)===P){C!==null&&(C=C.next={eventTime:O,lane:0,tag:d.tag,payload:d.payload,callback:d.callback,next:null});e:{var F=e,z=d;switch(P=t,O=n,z.tag){case 1:if(F=z.payload,typeof F==\"function\"){k=F.call(O,k,P);break e}k=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=z.payload,P=typeof F==\"function\"?F.call(O,k,P):F,P==null)break e;k=Te({},k,P);break e;case 2:tr=!0}}d.callback!==null&&d.lane!==0&&(e.flags|=64,P=s.effects,P===null?s.effects=[d]:P.push(d))}else O={eventTime:O,lane:P,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(m=C=O,h=k):C=C.next=O,c|=P;if(d=d.next,d===null){if(d=s.shared.pending,d===null)break;P=d,d=P.next,P.next=null,s.lastBaseUpdate=P,s.shared.pending=null}}while(1);if(C===null&&(h=k),s.baseState=h,s.firstBaseUpdate=m,s.lastBaseUpdate=C,t=s.shared.interleaved,t!==null){s=t;do c|=s.lane,s=s.next;while(s!==t)}else u===null&&(s.shared.lanes=0);Xr|=c,e.lanes=c,e.memoizedState=k}}function zv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(s!==null){if(o.callback=null,o=n,typeof s!=\"function\")throw Error(N(191,s));s.call(o)}}}var Ws={},_n=wr(Ws),Es=wr(Ws),Cs=wr(Ws);function Ur(e){if(e===Ws)throw Error(N(174));return e}function Ud(e,t){switch(_e(Cs,t),_e(Es,e),_e(_n,Ws),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mf(null,\"\");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mf(t,e)}ke(_n),_e(_n,t)}function lo(){ke(_n),ke(Es),ke(Cs)}function jm(e){Ur(Cs.current);var t=Ur(_n.current),n=mf(t,e.type);t!==n&&(_e(Es,e),_e(_n,n))}function Wd(e){Es.current===e&&(ke(_n),ke(Es))}var Ie=wr(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===\"$?\"||n.data===\"$!\"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xc=[];function Bd(){for(var e=0;e<Xc.length;e++)Xc[e]._workInProgressVersionPrimary=null;Xc.length=0}var fu=Qn.ReactCurrentDispatcher,Zc=Qn.ReactCurrentBatchConfig,Yr=0,Ae=null,He=null,Ge=null,zu=!1,us=!1,ks=0,FL=0;function be(){throw Error(N(321))}function Hd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dn(e[n],t[n]))return!1;return!0}function $d(e,t,n,o,s,u){if(Yr=u,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fu.current=e===null||e.memoizedState===null?BL:HL,e=n(o,s),us){u=0;do{if(us=!1,ks=0,25<=u)throw Error(N(301));u+=1,Ge=He=null,t.updateQueue=null,fu.current=$L,e=n(o,s)}while(us)}if(fu.current=Uu,t=He!==null&&He.next!==null,Yr=0,Ge=He=Ae=null,zu=!1,t)throw Error(N(300));return e}function Qd(){var e=ks!==0;return ks=0,e}function yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?Ae.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Jt(){if(He===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=Ge===null?Ae.memoizedState:Ge.next;if(t!==null)Ge=t,He=e;else{if(e===null)throw Error(N(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Ge===null?Ae.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function Ps(e,t){return typeof t==\"function\"?t(e):t}function qc(e){var t=Jt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var o=He,s=o.baseQueue,u=n.pending;if(u!==null){if(s!==null){var c=s.next;s.next=u.next,u.next=c}o.baseQueue=s=u,n.pending=null}if(s!==null){u=s.next,o=o.baseState;var d=c=null,h=null,m=u;do{var C=m.lane;if((Yr&C)===C)h!==null&&(h=h.next={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),o=m.hasEagerState?m.eagerState:e(o,m.action);else{var k={lane:C,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};h===null?(d=h=k,c=o):h=h.next=k,Ae.lanes|=C,Xr|=C}m=m.next}while(m!==null&&m!==u);h===null?c=o:h.next=d,dn(o,t.memoizedState)||(yt=!0),t.memoizedState=o,t.baseState=c,t.baseQueue=h,n.lastRenderedState=o}if(e=n.interleaved,e!==null){s=e;do u=s.lane,Ae.lanes|=u,Xr|=u,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jc(e){var t=Jt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var o=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var c=s=s.next;do u=e(u,c.action),c=c.next;while(c!==s);dn(u,t.memoizedState)||(yt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function bm(){}function e1(e,t){var n=Ae,o=Jt(),s=t(),u=!dn(o.memoizedState,s);if(u&&(o.memoizedState=s,yt=!0),o=o.queue,Gd(r1.bind(null,n,o,e),[e]),o.getSnapshot!==t||u||Ge!==null&&Ge.memoizedState.tag&1){if(n.flags|=2048,Rs(9,n1.bind(null,n,o,s,t),void 0,null),Ve===null)throw Error(N(349));Yr&30||t1(n,t,s)}return s}function t1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function n1(e,t,n,o){t.value=n,t.getSnapshot=o,i1(t)&&o1(e)}function r1(e,t,n){return n(function(){i1(t)&&o1(e)})}function i1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dn(e,n)}catch{return!0}}function o1(e){var t=Hn(e,1);t!==null&&fn(t,e,1,-1)}function Uv(e){var t=yn();return typeof e==\"function\"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:e},t.queue=e,e=e.dispatch=WL.bind(null,Ae,e),[t.memoizedState,e]}function Rs(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function s1(){return Jt().memoizedState}function du(e,t,n,o){var s=yn();Ae.flags|=e,s.memoizedState=Rs(1|t,n,void 0,o===void 0?null:o)}function ju(e,t,n,o){var s=Jt();o=o===void 0?null:o;var u=void 0;if(He!==null){var c=He.memoizedState;if(u=c.destroy,o!==null&&Hd(o,c.deps)){s.memoizedState=Rs(t,n,u,o);return}}Ae.flags|=e,s.memoizedState=Rs(1|t,n,u,o)}function Wv(e,t){return du(8390656,8,e,t)}function Gd(e,t){return ju(2048,8,e,t)}function l1(e,t){return ju(4,2,e,t)}function u1(e,t){return ju(4,4,e,t)}function a1(e,t){if(typeof t==\"function\")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function c1(e,t,n){return n=n!=null?n.concat([e]):null,ju(4,4,a1.bind(null,t,e),n)}function Vd(){}function f1(e,t){var n=Jt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Hd(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function d1(e,t){var n=Jt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&Hd(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function h1(e,t,n){return Yr&21?(dn(n,t)||(n=ym(),Ae.lanes|=n,Xr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yt=!0),e.memoizedState=n)}function zL(e,t){var n=ye;ye=n!==0&&4>n?n:4,e(!0);var o=Zc.transition;Zc.transition={};try{e(!1),t()}finally{ye=n,Zc.transition=o}}function p1(){return Jt().memoizedState}function UL(e,t,n){var o=pr(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},g1(e))v1(t,n);else if(n=qm(e,t,n,o),n!==null){var s=lt();fn(n,e,o,s),m1(n,t,o)}}function WL(e,t,n){var o=pr(e),s={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(g1(e))v1(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,n);if(s.hasEagerState=!0,s.eagerState=d,dn(d,c)){var h=t.interleaved;h===null?(s.next=s,Fd(t)):(s.next=h.next,h.next=s),t.interleaved=s;return}}catch{}finally{}n=qm(e,t,s,o),n!==null&&(s=lt(),fn(n,e,o,s),m1(n,t,o))}}function g1(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function v1(e,t){us=zu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function m1(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,xd(e,n)}}var Uu={readContext:qt,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},BL={readContext:qt,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Wv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,du(4194308,4,a1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return du(4194308,4,e,t)},useInsertionEffect:function(e,t){return du(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=yn();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=UL.bind(null,Ae,e),[o.memoizedState,e]},useRef:function(e){var t=yn();return e={current:e},t.memoizedState=e},useState:Uv,useDebugValue:Vd,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=Uv(!1),t=e[0];return e=zL.bind(null,e[1]),yn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Ae,s=yn();if(Re){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ve===null)throw Error(N(349));Yr&30||t1(o,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,Wv(r1.bind(null,o,u,e),[e]),o.flags|=2048,Rs(9,n1.bind(null,o,u,n,t),void 0,null),n},useId:function(){var e=yn(),t=Ve.identifierPrefix;if(Re){var n=zn,o=Fn;n=(o&~(1<<32-cn(o)-1)).toString(32)+n,t=\":\"+t+\"R\"+n,n=ks++,0<n&&(t+=\"H\"+n.toString(32)),t+=\":\"}else n=FL++,t=\":\"+t+\"r\"+n.toString(32)+\":\";return e.memoizedState=t},unstable_isNewReconciler:!1},HL={readContext:qt,useCallback:f1,useContext:qt,useEffect:Gd,useImperativeHandle:c1,useInsertionEffect:l1,useLayoutEffect:u1,useMemo:d1,useReducer:qc,useRef:s1,useState:function(){return qc(Ps)},useDebugValue:Vd,useDeferredValue:function(e){var t=Jt();return h1(t,He.memoizedState,e)},useTransition:function(){var e=qc(Ps)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:e1,useId:p1,unstable_isNewReconciler:!1},$L={readContext:qt,useCallback:f1,useContext:qt,useEffect:Gd,useImperativeHandle:c1,useInsertionEffect:l1,useLayoutEffect:u1,useMemo:d1,useReducer:Jc,useRef:s1,useState:function(){return Jc(Ps)},useDebugValue:Vd,useDeferredValue:function(e){var t=Jt();return He===null?t.memoizedState=e:h1(t,He.memoizedState,e)},useTransition:function(){var e=Jc(Ps)[0],t=Jt().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:e1,useId:p1,unstable_isNewReconciler:!1};function ln(e,t){if(e&&e.defaultProps){t=Te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Uf(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:Te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bu={isMounted:function(e){return(e=e._reactInternals)?br(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=lt(),s=pr(e),u=Un(o,s);u.payload=t,n!=null&&(u.callback=n),t=dr(e,u,s),t!==null&&(fn(t,e,s,o),cu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=lt(),s=pr(e),u=Un(o,s);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=dr(e,u,s),t!==null&&(fn(t,e,s,o),cu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),o=pr(e),s=Un(n,o);s.tag=2,t!=null&&(s.callback=t),t=dr(e,s,o),t!==null&&(fn(t,e,o,n),cu(t,e,o))}};function Bv(e,t,n,o,s,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate==\"function\"?e.shouldComponentUpdate(o,u,c):t.prototype&&t.prototype.isPureReactComponent?!ws(n,o)||!ws(s,u):!0}function y1(e,t,n){var o=!1,s=mr,u=t.contextType;return typeof u==\"object\"&&u!==null?u=qt(u):(s=St(t)?Vr:nt.current,o=t.contextTypes,u=(o=o!=null)?io(e,s):mr),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bu,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=u),t}function Hv(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps==\"function\"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps==\"function\"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&bu.enqueueReplaceState(t,t.state,null)}function Wf(e,t,n,o){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},zd(e);var u=t.contextType;typeof u==\"object\"&&u!==null?s.context=qt(u):(u=St(t)?Vr:nt.current,s.context=io(e,u)),s.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u==\"function\"&&(Uf(e,t,u,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps==\"function\"||typeof s.getSnapshotBeforeUpdate==\"function\"||typeof s.UNSAFE_componentWillMount!=\"function\"&&typeof s.componentWillMount!=\"function\"||(t=s.state,typeof s.componentWillMount==\"function\"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==\"function\"&&s.UNSAFE_componentWillMount(),t!==s.state&&bu.enqueueReplaceState(s,s.state,null),Du(e,n,s,o),s.state=e.memoizedState),typeof s.componentDidMount==\"function\"&&(e.flags|=4194308)}function uo(e,t){try{var n=\"\",o=t;do n+=vR(o),o=o.return;while(o);var s=n}catch(u){s=`\nError generating stack: `+u.message+`\n`+u.stack}return{value:e,source:t,stack:s,digest:null}}function jc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var QL=typeof WeakMap==\"function\"?WeakMap:Map;function w1(e,t,n){n=Un(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Bu||(Bu=!0,qf=o),Bf(e,t)},n}function S1(e,t,n){n=Un(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o==\"function\"){var s=t.value;n.payload=function(){return o(s)},n.callback=function(){Bf(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch==\"function\"&&(n.callback=function(){Bf(e,t),typeof o!=\"function\"&&(hr===null?hr=new Set([this]):hr.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:\"\"})}),n}function $v(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new QL;var s=new Set;o.set(t,s)}else s=o.get(t),s===void 0&&(s=new Set,o.set(t,s));s.has(n)||(s.add(n),e=rI.bind(null,e,t,n),t.then(e,e))}function Qv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gv(e,t,n,o,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Un(-1,1),t.tag=2,dr(n,t,1))),n.lanes|=1),e)}var GL=Qn.ReactCurrentOwner,yt=!1;function st(e,t,n,o){t.child=e===null?Zm(t,null,n,o):so(t,e.child,n,o)}function Vv(e,t,n,o,s){n=n.render;var u=t.ref;return Di(t,s),o=$d(e,t,n,o,u,s),n=Qd(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,$n(e,t,s)):(Re&&n&&Ad(t),t.flags|=1,st(e,t,o,s),t.child)}function Kv(e,t,n,o,s){if(e===null){var u=n.type;return typeof u==\"function\"&&!bd(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,_1(e,t,u,o,s)):(e=vu(n.type,null,o,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&s)){var c=u.memoizedProps;if(n=n.compare,n=n!==null?n:ws,n(c,o)&&e.ref===t.ref)return $n(e,t,s)}return t.flags|=1,e=gr(u,o),e.ref=t.ref,e.return=t,t.child=e}function _1(e,t,n,o,s){if(e!==null){var u=e.memoizedProps;if(ws(u,o)&&e.ref===t.ref)if(yt=!1,t.pendingProps=o=u,(e.lanes&s)!==0)e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,$n(e,t,s)}return Hf(e,t,n,o,s)}function x1(e,t,n){var o=t.pendingProps,s=o.children,u=e!==null?e.memoizedState:null;if(o.mode===\"hidden\")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Ii,It),It|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(Ii,It),It|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=u!==null?u.baseLanes:n,_e(Ii,It),It|=o}else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,_e(Ii,It),It|=o;return st(e,t,s,n),t.child}function E1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hf(e,t,n,o,s){var u=St(n)?Vr:nt.current;return u=io(t,u),Di(t,s),n=$d(e,t,n,o,u,s),o=Qd(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,$n(e,t,s)):(Re&&o&&Ad(t),t.flags|=1,st(e,t,n,s),t.child)}function Yv(e,t,n,o,s){if(St(n)){var u=!0;Au(t)}else u=!1;if(Di(t,s),t.stateNode===null)hu(e,t),y1(t,n,o),Wf(t,n,o,s),o=!0;else if(e===null){var c=t.stateNode,d=t.memoizedProps;c.props=d;var h=c.context,m=n.contextType;typeof m==\"object\"&&m!==null?m=qt(m):(m=St(n)?Vr:nt.current,m=io(t,m));var C=n.getDerivedStateFromProps,k=typeof C==\"function\"||typeof c.getSnapshotBeforeUpdate==\"function\";k||typeof c.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof c.componentWillReceiveProps!=\"function\"||(d!==o||h!==m)&&Hv(t,c,o,m),tr=!1;var P=t.memoizedState;c.state=P,Du(t,o,c,s),h=t.memoizedState,d!==o||P!==h||wt.current||tr?(typeof C==\"function\"&&(Uf(t,n,C,o),h=t.memoizedState),(d=tr||Bv(t,n,d,o,P,h,m))?(k||typeof c.UNSAFE_componentWillMount!=\"function\"&&typeof c.componentWillMount!=\"function\"||(typeof c.componentWillMount==\"function\"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount==\"function\"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount==\"function\"&&(t.flags|=4194308)):(typeof c.componentDidMount==\"function\"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=h),c.props=o,c.state=h,c.context=m,o=d):(typeof c.componentDidMount==\"function\"&&(t.flags|=4194308),o=!1)}else{c=t.stateNode,Jm(e,t),d=t.memoizedProps,m=t.type===t.elementType?d:ln(t.type,d),c.props=m,k=t.pendingProps,P=c.context,h=n.contextType,typeof h==\"object\"&&h!==null?h=qt(h):(h=St(n)?Vr:nt.current,h=io(t,h));var O=n.getDerivedStateFromProps;(C=typeof O==\"function\"||typeof c.getSnapshotBeforeUpdate==\"function\")||typeof c.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof c.componentWillReceiveProps!=\"function\"||(d!==k||P!==h)&&Hv(t,c,o,h),tr=!1,P=t.memoizedState,c.state=P,Du(t,o,c,s);var F=t.memoizedState;d!==k||P!==F||wt.current||tr?(typeof O==\"function\"&&(Uf(t,n,O,o),F=t.memoizedState),(m=tr||Bv(t,n,m,o,P,F,h)||!1)?(C||typeof c.UNSAFE_componentWillUpdate!=\"function\"&&typeof c.componentWillUpdate!=\"function\"||(typeof c.componentWillUpdate==\"function\"&&c.componentWillUpdate(o,F,h),typeof c.UNSAFE_componentWillUpdate==\"function\"&&c.UNSAFE_componentWillUpdate(o,F,h)),typeof c.componentDidUpdate==\"function\"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate==\"function\"&&(t.flags|=1024)):(typeof c.componentDidUpdate!=\"function\"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!=\"function\"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=F),c.props=o,c.state=F,c.context=h,o=m):(typeof c.componentDidUpdate!=\"function\"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!=\"function\"||d===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),o=!1)}return $f(e,t,n,o,u,s)}function $f(e,t,n,o,s,u){E1(e,t);var c=(t.flags&128)!==0;if(!o&&!c)return s&&Mv(t,n,!1),$n(e,t,u);o=t.stateNode,GL.current=t;var d=c&&typeof n.getDerivedStateFromError!=\"function\"?null:o.render();return t.flags|=1,e!==null&&c?(t.child=so(t,e.child,null,u),t.child=so(t,null,d,u)):st(e,t,d,u),t.memoizedState=o.state,s&&Mv(t,n,!0),t.child}function C1(e){var t=e.stateNode;t.pendingContext?Tv(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tv(e,t.context,!1),Ud(e,t.containerInfo)}function Xv(e,t,n,o,s){return oo(),Md(s),t.flags|=256,st(e,t,n,o),t.child}var Qf={dehydrated:null,treeContext:null,retryLane:0};function Gf(e){return{baseLanes:e,cachePool:null,transitions:null}}function k1(e,t,n){var o=t.pendingProps,s=Ie.current,u=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(s&2)!==0),d?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),_e(Ie,s&1),e===null)return Ff(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===\"$!\"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,u?(o=t.mode,u=t.child,c={mode:\"hidden\",children:c},!(o&1)&&u!==null?(u.childLanes=0,u.pendingProps=c):u=na(c,o,0,null),e=Gr(e,o,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Gf(n),t.memoizedState=Qf,e):Kd(t,c));if(s=e.memoizedState,s!==null&&(d=s.dehydrated,d!==null))return VL(e,t,c,o,d,s,n);if(u){u=o.fallback,c=t.mode,s=e.child,d=s.sibling;var h={mode:\"hidden\",children:o.children};return!(c&1)&&t.child!==s?(o=t.child,o.childLanes=0,o.pendingProps=h,t.deletions=null):(o=gr(s,h),o.subtreeFlags=s.subtreeFlags&14680064),d!==null?u=gr(d,u):(u=Gr(u,c,n,null),u.flags|=2),u.return=t,o.return=t,o.sibling=u,t.child=o,o=u,u=t.child,c=e.child.memoizedState,c=c===null?Gf(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},u.memoizedState=c,u.childLanes=e.childLanes&~n,t.memoizedState=Qf,o}return u=e.child,e=u.sibling,o=gr(u,{mode:\"visible\",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Kd(e,t){return t=na({mode:\"visible\",children:t},e.mode,0,null),t.return=e,e.child=t}function Vl(e,t,n,o){return o!==null&&Md(o),so(t,e.child,null,n),e=Kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VL(e,t,n,o,s,u,c){if(n)return t.flags&256?(t.flags&=-257,o=jc(Error(N(422))),Vl(e,t,c,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=o.fallback,s=t.mode,o=na({mode:\"visible\",children:o.children},s,0,null),u=Gr(u,s,c,null),u.flags|=2,o.return=t,u.return=t,o.sibling=u,t.child=o,t.mode&1&&so(t,e.child,null,c),t.child.memoizedState=Gf(c),t.memoizedState=Qf,u);if(!(t.mode&1))return Vl(e,t,c,null);if(s.data===\"$!\"){if(o=s.nextSibling&&s.nextSibling.dataset,o)var d=o.dgst;return o=d,u=Error(N(419)),o=jc(u,o,void 0),Vl(e,t,c,o)}if(d=(c&e.childLanes)!==0,yt||d){if(o=Ve,o!==null){switch(c&-c){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(o.suspendedLanes|c)?0:s,s!==0&&s!==u.retryLane&&(u.retryLane=s,Hn(e,s),fn(o,e,s,-1))}return jd(),o=jc(Error(N(421))),Vl(e,t,c,o)}return s.data===\"$?\"?(t.flags|=128,t.child=e.child,t=iI.bind(null,e),s._reactRetry=t,null):(e=u.treeContext,At=fr(s.nextSibling),Tt=t,Re=!0,an=null,e!==null&&(Vt[Kt++]=Fn,Vt[Kt++]=zn,Vt[Kt++]=Kr,Fn=e.id,zn=e.overflow,Kr=t),t=Kd(t,o.children),t.flags|=4096,t)}function Zv(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),zf(e.return,t,n)}function bc(e,t,n,o,s){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:s}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=n,u.tailMode=s)}function P1(e,t,n){var o=t.pendingProps,s=o.revealOrder,u=o.tail;if(st(e,t,o.children,n),o=Ie.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zv(e,n,t);else if(e.tag===19)Zv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(_e(Ie,o),!(t.mode&1))t.memoizedState=null;else switch(s){case\"forwards\":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Fu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),bc(t,!1,s,n,u);break;case\"backwards\":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Fu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}bc(t,!0,n,null,u);break;case\"together\":bc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function KL(e,t,n){switch(t.tag){case 3:C1(t),oo();break;case 5:jm(t);break;case 1:St(t.type)&&Au(t);break;case 4:Ud(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,s=t.memoizedProps.value;_e(Nu,o._currentValue),o._currentValue=s;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(_e(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?k1(e,t,n):(_e(Ie,Ie.current&1),e=$n(e,t,n),e!==null?e.sibling:null);_e(Ie,Ie.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return P1(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),_e(Ie,Ie.current),o)break;return null;case 22:case 23:return t.lanes=0,x1(e,t,n)}return $n(e,t,n)}var R1,Vf,L1,I1;R1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Vf=function(){};L1=function(e,t,n,o){var s=e.memoizedProps;if(s!==o){e=t.stateNode,Ur(_n.current);var u=null;switch(n){case\"input\":s=hf(e,s),o=hf(e,o),u=[];break;case\"select\":s=Te({},s,{value:void 0}),o=Te({},o,{value:void 0}),u=[];break;case\"textarea\":s=vf(e,s),o=vf(e,o),u=[];break;default:typeof s.onClick!=\"function\"&&typeof o.onClick==\"function\"&&(e.onclick=Lu)}yf(n,o);var c;n=null;for(m in s)if(!o.hasOwnProperty(m)&&s.hasOwnProperty(m)&&s[m]!=null)if(m===\"style\"){var d=s[m];for(c in d)d.hasOwnProperty(c)&&(n||(n={}),n[c]=\"\")}else m!==\"dangerouslySetInnerHTML\"&&m!==\"children\"&&m!==\"suppressContentEditableWarning\"&&m!==\"suppressHydrationWarning\"&&m!==\"autoFocus\"&&(ds.hasOwnProperty(m)?u||(u=[]):(u=u||[]).push(m,null));for(m in o){var h=o[m];if(d=s!=null?s[m]:void 0,o.hasOwnProperty(m)&&h!==d&&(h!=null||d!=null))if(m===\"style\")if(d){for(c in d)!d.hasOwnProperty(c)||h&&h.hasOwnProperty(c)||(n||(n={}),n[c]=\"\");for(c in h)h.hasOwnProperty(c)&&d[c]!==h[c]&&(n||(n={}),n[c]=h[c])}else n||(u||(u=[]),u.push(m,n)),n=h;else m===\"dangerouslySetInnerHTML\"?(h=h?h.__html:void 0,d=d?d.__html:void 0,h!=null&&d!==h&&(u=u||[]).push(m,h)):m===\"children\"?typeof h!=\"string\"&&typeof h!=\"number\"||(u=u||[]).push(m,\"\"+h):m!==\"suppressContentEditableWarning\"&&m!==\"suppressHydrationWarning\"&&(ds.hasOwnProperty(m)?(h!=null&&m===\"onScroll\"&&Ce(\"scroll\",e),u||d===h||(u=[])):(u=u||[]).push(m,h))}n&&(u=u||[]).push(\"style\",n);var m=u;(t.updateQueue=m)&&(t.flags|=4)}};I1=function(e,t,n,o){n!==o&&(t.flags|=4)};function Yo(e,t){if(!Re)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,o|=s.subtreeFlags&14680064,o|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function YL(e,t,n){var o=t.pendingProps;switch(Td(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return St(t.type)&&Iu(),et(t),null;case 3:return o=t.stateNode,lo(),ke(wt),ke(nt),Bd(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,an!==null&&(bf(an),an=null))),Vf(e,t),et(t),null;case 5:Wd(t);var s=Ur(Cs.current);if(n=t.type,e!==null&&t.stateNode!=null)L1(e,t,n,o,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(N(166));return et(t),null}if(e=Ur(_n.current),Ql(t)){o=t.stateNode,n=t.type;var u=t.memoizedProps;switch(o[wn]=t,o[xs]=u,e=(t.mode&1)!==0,n){case\"dialog\":Ce(\"cancel\",o),Ce(\"close\",o);break;case\"iframe\":case\"object\":case\"embed\":Ce(\"load\",o);break;case\"video\":case\"audio\":for(s=0;s<ts.length;s++)Ce(ts[s],o);break;case\"source\":Ce(\"error\",o);break;case\"img\":case\"image\":case\"link\":Ce(\"error\",o),Ce(\"load\",o);break;case\"details\":Ce(\"toggle\",o);break;case\"input\":iv(o,u),Ce(\"invalid\",o);break;case\"select\":o._wrapperState={wasMultiple:!!u.multiple},Ce(\"invalid\",o);break;case\"textarea\":sv(o,u),Ce(\"invalid\",o)}yf(n,u),s=null;for(var c in u)if(u.hasOwnProperty(c)){var d=u[c];c===\"children\"?typeof d==\"string\"?o.textContent!==d&&(u.suppressHydrationWarning!==!0&&$l(o.textContent,d,e),s=[\"children\",d]):typeof d==\"number\"&&o.textContent!==\"\"+d&&(u.suppressHydrationWarning!==!0&&$l(o.textContent,d,e),s=[\"children\",\"\"+d]):ds.hasOwnProperty(c)&&d!=null&&c===\"onScroll\"&&Ce(\"scroll\",o)}switch(n){case\"input\":Ol(o),ov(o,u,!0);break;case\"textarea\":Ol(o),lv(o);break;case\"select\":case\"option\":break;default:typeof u.onClick==\"function\"&&(o.onclick=Lu)}o=s,t.updateQueue=o,o!==null&&(t.flags|=4)}else{c=s.nodeType===9?s:s.ownerDocument,e===\"http://www.w3.org/1999/xhtml\"&&(e=rm(n)),e===\"http://www.w3.org/1999/xhtml\"?n===\"script\"?(e=c.createElement(\"div\"),e.innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild)):typeof o.is==\"string\"?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),n===\"select\"&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[wn]=t,e[xs]=o,R1(e,t,!1,!1),t.stateNode=e;e:{switch(c=wf(n,o),n){case\"dialog\":Ce(\"cancel\",e),Ce(\"close\",e),s=o;break;case\"iframe\":case\"object\":case\"embed\":Ce(\"load\",e),s=o;break;case\"video\":case\"audio\":for(s=0;s<ts.length;s++)Ce(ts[s],e);s=o;break;case\"source\":Ce(\"error\",e),s=o;break;case\"img\":case\"image\":case\"link\":Ce(\"error\",e),Ce(\"load\",e),s=o;break;case\"details\":Ce(\"toggle\",e),s=o;break;case\"input\":iv(e,o),s=hf(e,o),Ce(\"invalid\",e);break;case\"option\":s=o;break;case\"select\":e._wrapperState={wasMultiple:!!o.multiple},s=Te({},o,{value:void 0}),Ce(\"invalid\",e);break;case\"textarea\":sv(e,o),s=vf(e,o),Ce(\"invalid\",e);break;default:s=o}yf(n,s),d=s;for(u in d)if(d.hasOwnProperty(u)){var h=d[u];u===\"style\"?sm(e,h):u===\"dangerouslySetInnerHTML\"?(h=h?h.__html:void 0,h!=null&&im(e,h)):u===\"children\"?typeof h==\"string\"?(n!==\"textarea\"||h!==\"\")&&hs(e,h):typeof h==\"number\"&&hs(e,\"\"+h):u!==\"suppressContentEditableWarning\"&&u!==\"suppressHydrationWarning\"&&u!==\"autoFocus\"&&(ds.hasOwnProperty(u)?h!=null&&u===\"onScroll\"&&Ce(\"scroll\",e):h!=null&&vd(e,u,h,c))}switch(n){case\"input\":Ol(e),ov(e,o,!1);break;case\"textarea\":Ol(e),lv(e);break;case\"option\":o.value!=null&&e.setAttribute(\"value\",\"\"+vr(o.value));break;case\"select\":e.multiple=!!o.multiple,u=o.value,u!=null?Ti(e,!!o.multiple,u,!1):o.defaultValue!=null&&Ti(e,!!o.multiple,o.defaultValue,!0);break;default:typeof s.onClick==\"function\"&&(e.onclick=Lu)}switch(n){case\"button\":case\"input\":case\"select\":case\"textarea\":o=!!o.autoFocus;break e;case\"img\":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)I1(e,t,e.memoizedProps,o);else{if(typeof o!=\"string\"&&t.stateNode===null)throw Error(N(166));if(n=Ur(Cs.current),Ur(_n.current),Ql(t)){if(o=t.stateNode,n=t.memoizedProps,o[wn]=t,(u=o.nodeValue!==n)&&(e=Tt,e!==null))switch(e.tag){case 3:$l(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$l(o.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[wn]=t,t.stateNode=o}return et(t),null;case 13:if(ke(Ie),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Re&&At!==null&&t.mode&1&&!(t.flags&128))Ym(),oo(),t.flags|=98560,u=!1;else if(u=Ql(t),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(N(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(N(317));u[wn]=t}else oo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),u=!1}else an!==null&&(bf(an),an=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?$e===0&&($e=3):jd())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return lo(),Vf(e,t),e===null&&Ss(t.stateNode.containerInfo),et(t),null;case 10:return Dd(t.type._context),et(t),null;case 17:return St(t.type)&&Iu(),et(t),null;case 19:if(ke(Ie),u=t.memoizedState,u===null)return et(t),null;if(o=(t.flags&128)!==0,c=u.rendering,c===null)if(o)Yo(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Fu(e),c!==null){for(t.flags|=128,Yo(u,!1),o=c.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)u=n,e=o,u.flags&=14680066,c=u.alternate,c===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=c.childLanes,u.lanes=c.lanes,u.child=c.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=c.memoizedProps,u.memoizedState=c.memoizedState,u.updateQueue=c.updateQueue,u.type=c.type,e=c.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Ie,Ie.current&1|2),t.child}e=e.sibling}u.tail!==null&&Fe()>ao&&(t.flags|=128,o=!0,Yo(u,!1),t.lanes=4194304)}else{if(!o)if(e=Fu(c),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Yo(u,!0),u.tail===null&&u.tailMode===\"hidden\"&&!c.alternate&&!Re)return et(t),null}else 2*Fe()-u.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,o=!0,Yo(u,!1),t.lanes=4194304);u.isBackwards?(c.sibling=t.child,t.child=c):(n=u.last,n!==null?n.sibling=c:t.child=c,u.last=c)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Fe(),t.sibling=null,n=Ie.current,_e(Ie,o?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Jd(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?It&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function XL(e,t){switch(Td(t),t.tag){case 1:return St(t.type)&&Iu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lo(),ke(wt),ke(nt),Bd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wd(t),null;case 13:if(ke(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ie),null;case 4:return lo(),null;case 10:return Dd(t.type._context),null;case 22:case 23:return Jd(),null;case 24:return null;default:return null}}var Kl=!1,tt=!1,ZL=typeof WeakSet==\"function\"?WeakSet:Set,Q=null;function Li(e,t){var n=e.ref;if(n!==null)if(typeof n==\"function\")try{n(null)}catch(o){Ne(e,t,o)}else n.current=null}function Kf(e,t,n){try{n()}catch(o){Ne(e,t,o)}}var qv=!1;function qL(e,t){if(If=ku,e=Om(),Id(e)){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var s=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var c=0,d=-1,h=-1,m=0,C=0,k=e,P=null;t:for(;;){for(var O;k!==n||s!==0&&k.nodeType!==3||(d=c+s),k!==u||o!==0&&k.nodeType!==3||(h=c+o),k.nodeType===3&&(c+=k.nodeValue.length),(O=k.firstChild)!==null;)P=k,k=O;for(;;){if(k===e)break t;if(P===n&&++m===s&&(d=c),P===u&&++C===o&&(h=c),(O=k.nextSibling)!==null)break;k=P,P=k.parentNode}k=O}n=d===-1||h===-1?null:{start:d,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(Af={focusedElem:e,selectionRange:n},ku=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var F=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(F!==null){var z=F.memoizedProps,re=F.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?z:ln(t.type,z),re);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent=\"\":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(T){Ne(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return F=qv,qv=!1,F}function as(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var u=s.destroy;s.destroy=void 0,u!==void 0&&Kf(t,n,u)}s=s.next}while(s!==o)}}function ea(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function Yf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==\"function\"?t(e):t.current=e}}function A1(e){var t=e.alternate;t!==null&&(e.alternate=null,A1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wn],delete t[xs],delete t[Nf],delete t[ML],delete t[NL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function T1(e){return e.tag===5||e.tag===3||e.tag===4}function Jv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xf(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Lu));else if(o!==4&&(e=e.child,e!==null))for(Xf(e,t,n),e=e.sibling;e!==null;)Xf(e,t,n),e=e.sibling}function Zf(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Zf(e,t,n),e=e.sibling;e!==null;)Zf(e,t,n),e=e.sibling}var Xe=null,un=!1;function bn(e,t,n){for(n=n.child;n!==null;)M1(e,t,n),n=n.sibling}function M1(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount==\"function\")try{Sn.onCommitFiberUnmount(Ku,n)}catch{}switch(n.tag){case 5:tt||Li(n,t);case 6:var o=Xe,s=un;Xe=null,bn(e,t,n),Xe=o,un=s,Xe!==null&&(un?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(un?(e=Xe,n=n.stateNode,e.nodeType===8?Kc(e.parentNode,n):e.nodeType===1&&Kc(e,n),ms(e)):Kc(Xe,n.stateNode));break;case 4:o=Xe,s=un,Xe=n.stateNode.containerInfo,un=!0,bn(e,t,n),Xe=o,un=s;break;case 0:case 11:case 14:case 15:if(!tt&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var u=s,c=u.destroy;u=u.tag,c!==void 0&&(u&2||u&4)&&Kf(n,t,c),s=s.next}while(s!==o)}bn(e,t,n);break;case 1:if(!tt&&(Li(n,t),o=n.stateNode,typeof o.componentWillUnmount==\"function\"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(d){Ne(n,t,d)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(tt=(o=tt)||n.memoizedState!==null,bn(e,t,n),tt=o):bn(e,t,n);break;default:bn(e,t,n)}}function jv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ZL),t.forEach(function(o){var s=oI.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function sn(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var s=n[o];try{var u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 5:Xe=d.stateNode,un=!1;break e;case 3:Xe=d.stateNode.containerInfo,un=!0;break e;case 4:Xe=d.stateNode.containerInfo,un=!0;break e}d=d.return}if(Xe===null)throw Error(N(160));M1(u,c,s),Xe=null,un=!1;var h=s.alternate;h!==null&&(h.return=null),s.return=null}catch(m){Ne(s,t,m)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)N1(t,e),t=t.sibling}function N1(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(sn(t,e),mn(e),o&4){try{as(3,e,e.return),ea(3,e)}catch(z){Ne(e,e.return,z)}try{as(5,e,e.return)}catch(z){Ne(e,e.return,z)}}break;case 1:sn(t,e),mn(e),o&512&&n!==null&&Li(n,n.return);break;case 5:if(sn(t,e),mn(e),o&512&&n!==null&&Li(n,n.return),e.flags&32){var s=e.stateNode;try{hs(s,\"\")}catch(z){Ne(e,e.return,z)}}if(o&4&&(s=e.stateNode,s!=null)){var u=e.memoizedProps,c=n!==null?n.memoizedProps:u,d=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{d===\"input\"&&u.type===\"radio\"&&u.name!=null&&tm(s,u),wf(d,c);var m=wf(d,u);for(c=0;c<h.length;c+=2){var C=h[c],k=h[c+1];C===\"style\"?sm(s,k):C===\"dangerouslySetInnerHTML\"?im(s,k):C===\"children\"?hs(s,k):vd(s,C,k,m)}switch(d){case\"input\":pf(s,u);break;case\"textarea\":nm(s,u);break;case\"select\":var P=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!u.multiple;var O=u.value;O!=null?Ti(s,!!u.multiple,O,!1):P!==!!u.multiple&&(u.defaultValue!=null?Ti(s,!!u.multiple,u.defaultValue,!0):Ti(s,!!u.multiple,u.multiple?[]:\"\",!1))}s[xs]=u}catch(z){Ne(e,e.return,z)}}break;case 6:if(sn(t,e),mn(e),o&4){if(e.stateNode===null)throw Error(N(162));s=e.stateNode,u=e.memoizedProps;try{s.nodeValue=u}catch(z){Ne(e,e.return,z)}}break;case 3:if(sn(t,e),mn(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{ms(t.containerInfo)}catch(z){Ne(e,e.return,z)}break;case 4:sn(t,e),mn(e);break;case 13:sn(t,e),mn(e),s=e.child,s.flags&8192&&(u=s.memoizedState!==null,s.stateNode.isHidden=u,!u||s.alternate!==null&&s.alternate.memoizedState!==null||(Zd=Fe())),o&4&&jv(e);break;case 22:if(C=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(m=tt)||C,sn(t,e),tt=m):sn(t,e),mn(e),o&8192){if(m=e.memoizedState!==null,(e.stateNode.isHidden=m)&&!C&&e.mode&1)for(Q=e,C=e.child;C!==null;){for(k=Q=C;Q!==null;){switch(P=Q,O=P.child,P.tag){case 0:case 11:case 14:case 15:as(4,P,P.return);break;case 1:Li(P,P.return);var F=P.stateNode;if(typeof F.componentWillUnmount==\"function\"){o=P,n=P.return;try{t=o,F.props=t.memoizedProps,F.state=t.memoizedState,F.componentWillUnmount()}catch(z){Ne(o,n,z)}}break;case 5:Li(P,P.return);break;case 22:if(P.memoizedState!==null){e0(k);continue}}O!==null?(O.return=P,Q=O):e0(k)}C=C.sibling}e:for(C=null,k=e;;){if(k.tag===5){if(C===null){C=k;try{s=k.stateNode,m?(u=s.style,typeof u.setProperty==\"function\"?u.setProperty(\"display\",\"none\",\"important\"):u.display=\"none\"):(d=k.stateNode,h=k.memoizedProps.style,c=h!=null&&h.hasOwnProperty(\"display\")?h.display:null,d.style.display=om(\"display\",c))}catch(z){Ne(e,e.return,z)}}}else if(k.tag===6){if(C===null)try{k.stateNode.nodeValue=m?\"\":k.memoizedProps}catch(z){Ne(e,e.return,z)}}else if((k.tag!==22&&k.tag!==23||k.memoizedState===null||k===e)&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===e)break e;for(;k.sibling===null;){if(k.return===null||k.return===e)break e;C===k&&(C=null),k=k.return}C===k&&(C=null),k.sibling.return=k.return,k=k.sibling}}break;case 19:sn(t,e),mn(e),o&4&&jv(e);break;case 21:break;default:sn(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(T1(n)){var o=n;break e}n=n.return}throw Error(N(160))}switch(o.tag){case 5:var s=o.stateNode;o.flags&32&&(hs(s,\"\"),o.flags&=-33);var u=Jv(e);Zf(e,u,s);break;case 3:case 4:var c=o.stateNode.containerInfo,d=Jv(e);Xf(e,d,c);break;default:throw Error(N(161))}}catch(h){Ne(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JL(e,t,n){Q=e,O1(e)}function O1(e,t,n){for(var o=(e.mode&1)!==0;Q!==null;){var s=Q,u=s.child;if(s.tag===22&&o){var c=s.memoizedState!==null||Kl;if(!c){var d=s.alternate,h=d!==null&&d.memoizedState!==null||tt;d=Kl;var m=tt;if(Kl=c,(tt=h)&&!m)for(Q=s;Q!==null;)c=Q,h=c.child,c.tag===22&&c.memoizedState!==null?t0(s):h!==null?(h.return=c,Q=h):t0(s);for(;u!==null;)Q=u,O1(u),u=u.sibling;Q=s,Kl=d,tt=m}bv(e)}else s.subtreeFlags&8772&&u!==null?(u.return=s,Q=u):bv(e)}}function bv(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||ea(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!tt)if(n===null)o.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:ln(t.type,n.memoizedProps);o.componentDidUpdate(s,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&zv(t,u,o);break;case 3:var c=t.updateQueue;if(c!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}zv(t,c,n)}break;case 5:var d=t.stateNode;if(n===null&&t.flags&4){n=d;var h=t.memoizedProps;switch(t.type){case\"button\":case\"input\":case\"select\":case\"textarea\":h.autoFocus&&n.focus();break;case\"img\":h.src&&(n.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var m=t.alternate;if(m!==null){var C=m.memoizedState;if(C!==null){var k=C.dehydrated;k!==null&&ms(k)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}tt||t.flags&512&&Yf(t)}catch(P){Ne(t,t.return,P)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function e0(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Q=n;break}Q=t.return}}function t0(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ea(4,t)}catch(h){Ne(t,n,h)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount==\"function\"){var s=t.return;try{o.componentDidMount()}catch(h){Ne(t,s,h)}}var u=t.return;try{Yf(t)}catch(h){Ne(t,u,h)}break;case 5:var c=t.return;try{Yf(t)}catch(h){Ne(t,c,h)}}}catch(h){Ne(t,t.return,h)}if(t===e){Q=null;break}var d=t.sibling;if(d!==null){d.return=t.return,Q=d;break}Q=t.return}}var jL=Math.ceil,Wu=Qn.ReactCurrentDispatcher,Yd=Qn.ReactCurrentOwner,Zt=Qn.ReactCurrentBatchConfig,de=0,Ve=null,Ue=null,Ze=0,It=0,Ii=wr(0),$e=0,Ls=null,Xr=0,ta=0,Xd=0,cs=null,vt=null,Zd=0,ao=1/0,Nn=null,Bu=!1,qf=null,hr=null,Yl=!1,lr=null,Hu=0,fs=0,Jf=null,pu=-1,gu=0;function lt(){return de&6?Fe():pu!==-1?pu:pu=Fe()}function pr(e){return e.mode&1?de&2&&Ze!==0?Ze&-Ze:DL.transition!==null?(gu===0&&(gu=ym()),gu):(e=ye,e!==0||(e=window.event,e=e===void 0?16:km(e.type)),e):1}function fn(e,t,n,o){if(50<fs)throw fs=0,Jf=null,Error(N(185));Fs(e,n,o),(!(de&2)||e!==Ve)&&(e===Ve&&(!(de&2)&&(ta|=n),$e===4&&rr(e,Ze)),_t(e,o),n===1&&de===0&&!(t.mode&1)&&(ao=Fe()+500,Ju&&Sr()))}function _t(e,t){var n=e.callbackNode;DR(e,t);var o=Cu(e,e===Ve?Ze:0);if(o===0)n!==null&&cv(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&cv(n),t===1)e.tag===0?OL(n0.bind(null,e)):Gm(n0.bind(null,e)),AL(function(){!(de&6)&&Sr()}),n=null;else{switch(wm(o)){case 1:n=_d;break;case 4:n=vm;break;case 16:n=Eu;break;case 536870912:n=mm;break;default:n=Eu}n=$1(n,D1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function D1(e,t){if(pu=-1,gu=0,de&6)throw Error(N(327));var n=e.callbackNode;if(Fi()&&e.callbackNode!==n)return null;var o=Cu(e,e===Ve?Ze:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=$u(e,o);else{t=o;var s=de;de|=2;var u=z1();(Ve!==e||Ze!==t)&&(Nn=null,ao=Fe()+500,Qr(e,t));do try{tI();break}catch(d){F1(e,d)}while(1);Od(),Wu.current=u,de=s,Ue!==null?t=0:(Ve=null,Ze=0,t=$e)}if(t!==0){if(t===2&&(s=Cf(e),s!==0&&(o=s,t=jf(e,s))),t===1)throw n=Ls,Qr(e,0),rr(e,o),_t(e,Fe()),n;if(t===6)rr(e,o);else{if(s=e.current.alternate,!(o&30)&&!bL(s)&&(t=$u(e,o),t===2&&(u=Cf(e),u!==0&&(o=u,t=jf(e,u))),t===1))throw n=Ls,Qr(e,0),rr(e,o),_t(e,Fe()),n;switch(e.finishedWork=s,e.finishedLanes=o,t){case 0:case 1:throw Error(N(345));case 2:Or(e,vt,Nn);break;case 3:if(rr(e,o),(o&130023424)===o&&(t=Zd+500-Fe(),10<t)){if(Cu(e,0)!==0)break;if(s=e.suspendedLanes,(s&o)!==o){lt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Mf(Or.bind(null,e,vt,Nn),t);break}Or(e,vt,Nn);break;case 4:if(rr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,s=-1;0<o;){var c=31-cn(o);u=1<<c,c=t[c],c>s&&(s=c),o&=~u}if(o=s,o=Fe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*jL(o/1960))-o,10<o){e.timeoutHandle=Mf(Or.bind(null,e,vt,Nn),o);break}Or(e,vt,Nn);break;case 5:Or(e,vt,Nn);break;default:throw Error(N(329))}}}return _t(e,Fe()),e.callbackNode===n?D1.bind(null,e):null}function jf(e,t){var n=cs;return e.current.memoizedState.isDehydrated&&(Qr(e,t).flags|=256),e=$u(e,t),e!==2&&(t=vt,vt=n,t!==null&&bf(t)),e}function bf(e){vt===null?vt=e:vt.push.apply(vt,e)}function bL(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var s=n[o],u=s.getSnapshot;s=s.value;try{if(!dn(u(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rr(e,t){for(t&=~Xd,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cn(t),o=1<<n;e[n]=-1,t&=~o}}function n0(e){if(de&6)throw Error(N(327));Fi();var t=Cu(e,0);if(!(t&1))return _t(e,Fe()),null;var n=$u(e,t);if(e.tag!==0&&n===2){var o=Cf(e);o!==0&&(t=o,n=jf(e,o))}if(n===1)throw n=Ls,Qr(e,0),rr(e,t),_t(e,Fe()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Or(e,vt,Nn),_t(e,Fe()),null}function qd(e,t){var n=de;de|=1;try{return e(t)}finally{de=n,de===0&&(ao=Fe()+500,Ju&&Sr())}}function Zr(e){lr!==null&&lr.tag===0&&!(de&6)&&Fi();var t=de;de|=1;var n=Zt.transition,o=ye;try{if(Zt.transition=null,ye=1,e)return e()}finally{ye=o,Zt.transition=n,de=t,!(de&6)&&Sr()}}function Jd(){It=Ii.current,ke(Ii)}function Qr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,IL(n)),Ue!==null)for(n=Ue.return;n!==null;){var o=n;switch(Td(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Iu();break;case 3:lo(),ke(wt),ke(nt),Bd();break;case 5:Wd(o);break;case 4:lo();break;case 13:ke(Ie);break;case 19:ke(Ie);break;case 10:Dd(o.type._context);break;case 22:case 23:Jd()}n=n.return}if(Ve=e,Ue=e=gr(e.current,null),Ze=It=t,$e=0,Ls=null,Xd=ta=Xr=0,vt=cs=null,zr!==null){for(t=0;t<zr.length;t++)if(n=zr[t],o=n.interleaved,o!==null){n.interleaved=null;var s=o.next,u=n.pending;if(u!==null){var c=u.next;u.next=s,o.next=c}n.pending=o}zr=null}return e}function F1(e,t){do{var n=Ue;try{if(Od(),fu.current=Uu,zu){for(var o=Ae.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}zu=!1}if(Yr=0,Ge=He=Ae=null,us=!1,ks=0,Yd.current=null,n===null||n.return===null){$e=1,Ls=t,Ue=null;break}e:{var u=e,c=n.return,d=n,h=t;if(t=Ze,d.flags|=32768,h!==null&&typeof h==\"object\"&&typeof h.then==\"function\"){var m=h,C=d,k=C.tag;if(!(C.mode&1)&&(k===0||k===11||k===15)){var P=C.alternate;P?(C.updateQueue=P.updateQueue,C.memoizedState=P.memoizedState,C.lanes=P.lanes):(C.updateQueue=null,C.memoizedState=null)}var O=Qv(c);if(O!==null){O.flags&=-257,Gv(O,c,d,u,t),O.mode&1&&$v(u,m,t),t=O,h=m;var F=t.updateQueue;if(F===null){var z=new Set;z.add(h),t.updateQueue=z}else F.add(h);break e}else{if(!(t&1)){$v(u,m,t),jd();break e}h=Error(N(426))}}else if(Re&&d.mode&1){var re=Qv(c);if(re!==null){!(re.flags&65536)&&(re.flags|=256),Gv(re,c,d,u,t),Md(uo(h,d));break e}}u=h=uo(h,d),$e!==4&&($e=2),cs===null?cs=[u]:cs.push(u),u=c;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var _=w1(u,h,t);Fv(u,_);break e;case 1:d=h;var w=u.type,E=u.stateNode;if(!(u.flags&128)&&(typeof w.getDerivedStateFromError==\"function\"||E!==null&&typeof E.componentDidCatch==\"function\"&&(hr===null||!hr.has(E)))){u.flags|=65536,t&=-t,u.lanes|=t;var T=S1(u,d,t);Fv(u,T);break e}}u=u.return}while(u!==null)}W1(n)}catch(U){t=U,Ue===n&&n!==null&&(Ue=n=n.return);continue}break}while(1)}function z1(){var e=Wu.current;return Wu.current=Uu,e===null?Uu:e}function jd(){($e===0||$e===3||$e===2)&&($e=4),Ve===null||!(Xr&268435455)&&!(ta&268435455)||rr(Ve,Ze)}function $u(e,t){var n=de;de|=2;var o=z1();(Ve!==e||Ze!==t)&&(Nn=null,Qr(e,t));do try{eI();break}catch(s){F1(e,s)}while(1);if(Od(),de=n,Wu.current=o,Ue!==null)throw Error(N(261));return Ve=null,Ze=0,$e}function eI(){for(;Ue!==null;)U1(Ue)}function tI(){for(;Ue!==null&&!PR();)U1(Ue)}function U1(e){var t=H1(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?W1(e):Ue=t,Yd.current=null}function W1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=XL(n,t),n!==null){n.flags&=32767,Ue=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Ue=null;return}}else if(n=YL(n,t,It),n!==null){Ue=n;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);$e===0&&($e=5)}function Or(e,t,n){var o=ye,s=Zt.transition;try{Zt.transition=null,ye=1,nI(e,t,n,o)}finally{Zt.transition=s,ye=o}return null}function nI(e,t,n,o){do Fi();while(lr!==null);if(de&6)throw Error(N(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(FR(e,u),e===Ve&&(Ue=Ve=null,Ze=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Yl||(Yl=!0,$1(Eu,function(){return Fi(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=Zt.transition,Zt.transition=null;var c=ye;ye=1;var d=de;de|=4,Yd.current=null,qL(e,n),N1(n,e),xL(Af),ku=!!If,Af=If=null,e.current=n,JL(n),RR(),de=d,ye=c,Zt.transition=u}else e.current=n;if(Yl&&(Yl=!1,lr=e,Hu=s),u=e.pendingLanes,u===0&&(hr=null),AR(n.stateNode),_t(e,Fe()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],o(s.value,{componentStack:s.stack,digest:s.digest});if(Bu)throw Bu=!1,e=qf,qf=null,e;return Hu&1&&e.tag!==0&&Fi(),u=e.pendingLanes,u&1?e===Jf?fs++:(fs=0,Jf=e):fs=0,Sr(),null}function Fi(){if(lr!==null){var e=wm(Hu),t=Zt.transition,n=ye;try{if(Zt.transition=null,ye=16>e?16:e,lr===null)var o=!1;else{if(e=lr,lr=null,Hu=0,de&6)throw Error(N(331));var s=de;for(de|=4,Q=e.current;Q!==null;){var u=Q,c=u.child;if(Q.flags&16){var d=u.deletions;if(d!==null){for(var h=0;h<d.length;h++){var m=d[h];for(Q=m;Q!==null;){var C=Q;switch(C.tag){case 0:case 11:case 15:as(8,C,u)}var k=C.child;if(k!==null)k.return=C,Q=k;else for(;Q!==null;){C=Q;var P=C.sibling,O=C.return;if(A1(C),C===m){Q=null;break}if(P!==null){P.return=O,Q=P;break}Q=O}}}var F=u.alternate;if(F!==null){var z=F.child;if(z!==null){F.child=null;do{var re=z.sibling;z.sibling=null,z=re}while(z!==null)}}Q=u}}if(u.subtreeFlags&2064&&c!==null)c.return=u,Q=c;else e:for(;Q!==null;){if(u=Q,u.flags&2048)switch(u.tag){case 0:case 11:case 15:as(9,u,u.return)}var _=u.sibling;if(_!==null){_.return=u.return,Q=_;break e}Q=u.return}}var w=e.current;for(Q=w;Q!==null;){c=Q;var E=c.child;if(c.subtreeFlags&2064&&E!==null)E.return=c,Q=E;else e:for(c=w;Q!==null;){if(d=Q,d.flags&2048)try{switch(d.tag){case 0:case 11:case 15:ea(9,d)}}catch(U){Ne(d,d.return,U)}if(d===c){Q=null;break e}var T=d.sibling;if(T!==null){T.return=d.return,Q=T;break e}Q=d.return}}if(de=s,Sr(),Sn&&typeof Sn.onPostCommitFiberRoot==\"function\")try{Sn.onPostCommitFiberRoot(Ku,e)}catch{}o=!0}return o}finally{ye=n,Zt.transition=t}}return!1}function r0(e,t,n){t=uo(n,t),t=w1(e,t,1),e=dr(e,t,1),t=lt(),e!==null&&(Fs(e,1,t),_t(e,t))}function Ne(e,t,n){if(e.tag===3)r0(e,e,n);else for(;t!==null;){if(t.tag===3){r0(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==\"function\"||typeof o.componentDidCatch==\"function\"&&(hr===null||!hr.has(o))){e=uo(n,e),e=S1(t,e,1),t=dr(t,e,1),e=lt(),t!==null&&(Fs(t,1,e),_t(t,e));break}}t=t.return}}function rI(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(Ze&n)===n&&($e===4||$e===3&&(Ze&130023424)===Ze&&500>Fe()-Zd?Qr(e,0):Xd|=n),_t(e,t)}function B1(e,t){t===0&&(e.mode&1?(t=zl,zl<<=1,!(zl&130023424)&&(zl=4194304)):t=1);var n=lt();e=Hn(e,t),e!==null&&(Fs(e,t,n),_t(e,n))}function iI(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),B1(e,n)}function oI(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(N(314))}o!==null&&o.delete(t),B1(e,n)}var H1;H1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yt=!1,KL(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Re&&t.flags&1048576&&Vm(t,Mu,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;hu(e,t),e=t.pendingProps;var s=io(t,nt.current);Di(t,n),s=$d(null,t,o,e,s,n);var u=Qd();return t.flags|=1,typeof s==\"object\"&&s!==null&&typeof s.render==\"function\"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(o)?(u=!0,Au(t)):u=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,zd(t),s.updater=bu,t.stateNode=s,s._reactInternals=t,Wf(t,o,e,n),t=$f(null,t,o,!0,u,n)):(t.tag=0,Re&&u&&Ad(t),st(null,t,s,n),t=t.child),t;case 16:o=t.elementType;e:{switch(hu(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=lI(o),e=ln(o,e),s){case 0:t=Hf(null,t,o,e,n);break e;case 1:t=Yv(null,t,o,e,n);break e;case 11:t=Vv(null,t,o,e,n);break e;case 14:t=Kv(null,t,o,ln(o.type,e),n);break e}throw Error(N(306,o,\"\"))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:ln(o,s),Hf(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:ln(o,s),Yv(e,t,o,s,n);case 3:e:{if(C1(t),e===null)throw Error(N(387));o=t.pendingProps,u=t.memoizedState,s=u.element,Jm(e,t),Du(t,o,null,n);var c=t.memoizedState;if(o=c.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){s=uo(Error(N(423)),t),t=Xv(e,t,o,n,s);break e}else if(o!==s){s=uo(Error(N(424)),t),t=Xv(e,t,o,n,s);break e}else for(At=fr(t.stateNode.containerInfo.firstChild),Tt=t,Re=!0,an=null,n=Zm(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oo(),o===s){t=$n(e,t,n);break e}st(e,t,o,n)}t=t.child}return t;case 5:return jm(t),e===null&&Ff(t),o=t.type,s=t.pendingProps,u=e!==null?e.memoizedProps:null,c=s.children,Tf(o,s)?c=null:u!==null&&Tf(o,u)&&(t.flags|=32),E1(e,t),st(e,t,c,n),t.child;case 6:return e===null&&Ff(t),null;case 13:return k1(e,t,n);case 4:return Ud(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=so(t,null,o,n):st(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:ln(o,s),Vv(e,t,o,s,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,u=t.memoizedProps,c=s.value,_e(Nu,o._currentValue),o._currentValue=c,u!==null)if(dn(u.value,c)){if(u.children===s.children&&!wt.current){t=$n(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var d=u.dependencies;if(d!==null){c=u.child;for(var h=d.firstContext;h!==null;){if(h.context===o){if(u.tag===1){h=Un(-1,n&-n),h.tag=2;var m=u.updateQueue;if(m!==null){m=m.shared;var C=m.pending;C===null?h.next=h:(h.next=C.next,C.next=h),m.pending=h}}u.lanes|=n,h=u.alternate,h!==null&&(h.lanes|=n),zf(u.return,n,t),d.lanes|=n;break}h=h.next}}else if(u.tag===10)c=u.type===t.type?null:u.child;else if(u.tag===18){if(c=u.return,c===null)throw Error(N(341));c.lanes|=n,d=c.alternate,d!==null&&(d.lanes|=n),zf(c,n,t),c=u.sibling}else c=u.child;if(c!==null)c.return=u;else for(c=u;c!==null;){if(c===t){c=null;break}if(u=c.sibling,u!==null){u.return=c.return,c=u;break}c=c.return}u=c}st(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,Di(t,n),s=qt(s),o=o(s),t.flags|=1,st(e,t,o,n),t.child;case 14:return o=t.type,s=ln(o,t.pendingProps),s=ln(o.type,s),Kv(e,t,o,s,n);case 15:return _1(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:ln(o,s),hu(e,t),t.tag=1,St(o)?(e=!0,Au(t)):e=!1,Di(t,n),y1(t,o,s),Wf(t,o,s,n),$f(null,t,o,!0,e,n);case 19:return P1(e,t,n);case 22:return x1(e,t,n)}throw Error(N(156,t.tag))};function $1(e,t){return gm(e,t)}function sI(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,n,o){return new sI(e,t,n,o)}function bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lI(e){if(typeof e==\"function\")return bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yd)return 11;if(e===wd)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=Xt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vu(e,t,n,o,s,u){var c=2;if(o=e,typeof e==\"function\")bd(e)&&(c=1);else if(typeof e==\"string\")c=5;else e:switch(e){case wi:return Gr(n.children,s,u,t);case md:c=8,s|=8;break;case af:return e=Xt(12,n,t,s|2),e.elementType=af,e.lanes=u,e;case cf:return e=Xt(13,n,t,s),e.elementType=cf,e.lanes=u,e;case ff:return e=Xt(19,n,t,s),e.elementType=ff,e.lanes=u,e;case j0:return na(n,s,u,t);default:if(typeof e==\"object\"&&e!==null)switch(e.$$typeof){case q0:c=10;break e;case J0:c=9;break e;case yd:c=11;break e;case wd:c=14;break e;case er:c=16,o=null;break e}throw Error(N(130,e==null?e:typeof e,\"\"))}return t=Xt(c,n,t,s),t.elementType=e,t.type=o,t.lanes=u,t}function Gr(e,t,n,o){return e=Xt(7,e,o,t),e.lanes=n,e}function na(e,t,n,o){return e=Xt(22,e,o,t),e.elementType=j0,e.lanes=n,e.stateNode={isHidden:!1},e}function ef(e,t,n){return e=Xt(6,e,null,t),e.lanes=n,e}function tf(e,t,n){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uI(e,t,n,o,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function eh(e,t,n,o,s,u,c,d,h){return e=new uI(e,t,n,d,h),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Xt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zd(u),e}function aI(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yi,key:o==null?null:\"\"+o,children:e,containerInfo:t,implementation:n}}function Q1(e){if(!e)return mr;e=e._reactInternals;e:{if(br(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(St(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(St(n))return Qm(e,n,t)}return t}function G1(e,t,n,o,s,u,c,d,h){return e=eh(n,o,!0,e,s,u,c,d,h),e.context=Q1(null),n=e.current,o=lt(),s=pr(n),u=Un(o,s),u.callback=t??null,dr(n,u,s),e.current.lanes=s,Fs(e,s,o),_t(e,o),e}function ra(e,t,n,o){var s=t.current,u=lt(),c=pr(s);return n=Q1(n),t.context===null?t.context=n:t.pendingContext=n,t=Un(u,c),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=dr(s,t,c),e!==null&&(fn(e,s,c,u),cu(e,s,c)),c}function Qu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function i0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function th(e,t){i0(e,t),(e=e.alternate)&&i0(e,t)}function cI(){return null}var V1=typeof reportError==\"function\"?reportError:function(e){console.error(e)};function nh(e){this._internalRoot=e}ia.prototype.render=nh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));ra(e,t,null,null)};ia.prototype.unmount=nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zr(function(){ra(null,e,null,null)}),t[Bn]=null}};function ia(e){this._internalRoot=e}ia.prototype.unstable_scheduleHydration=function(e){if(e){var t=xm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nr.length&&t!==0&&t<nr[n].priority;n++);nr.splice(n,0,e),n===0&&Cm(e)}};function rh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==\" react-mount-point-unstable \"))}function o0(){}function fI(e,t,n,o,s){if(s){if(typeof o==\"function\"){var u=o;o=function(){var m=Qu(c);u.call(m)}}var c=G1(t,o,e,0,null,!1,!1,\"\",o0);return e._reactRootContainer=c,e[Bn]=c.current,Ss(e.nodeType===8?e.parentNode:e),Zr(),c}for(;s=e.lastChild;)e.removeChild(s);if(typeof o==\"function\"){var d=o;o=function(){var m=Qu(h);d.call(m)}}var h=eh(e,0,!1,null,null,!1,!1,\"\",o0);return e._reactRootContainer=h,e[Bn]=h.current,Ss(e.nodeType===8?e.parentNode:e),Zr(function(){ra(t,h,n,o)}),h}function sa(e,t,n,o,s){var u=n._reactRootContainer;if(u){var c=u;if(typeof s==\"function\"){var d=s;s=function(){var h=Qu(c);d.call(h)}}ra(t,c,e,s)}else c=fI(n,t,e,s,o);return Qu(c)}Sm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=es(t.pendingLanes);n!==0&&(xd(t,n|1),_t(t,Fe()),!(de&6)&&(ao=Fe()+500,Sr()))}break;case 13:Zr(function(){var o=Hn(e,1);if(o!==null){var s=lt();fn(o,e,1,s)}}),th(e,1)}};Ed=function(e){if(e.tag===13){var t=Hn(e,134217728);if(t!==null){var n=lt();fn(t,e,134217728,n)}th(e,134217728)}};_m=function(e){if(e.tag===13){var t=pr(e),n=Hn(e,t);if(n!==null){var o=lt();fn(n,e,t,o)}th(e,t)}};xm=function(){return ye};Em=function(e,t){var n=ye;try{return ye=e,t()}finally{ye=n}};_f=function(e,t,n){switch(t){case\"input\":if(pf(e,n),t=n.name,n.type===\"radio\"&&t!=null){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 o=n[t];if(o!==e&&o.form===e.form){var s=qu(o);if(!s)throw Error(N(90));em(o),pf(o,s)}}}break;case\"textarea\":nm(e,n);break;case\"select\":t=n.value,t!=null&&Ti(e,!!n.multiple,t,!1)}};am=qd;cm=Zr;var dI={usingClientEntryPoint:!1,Events:[Us,Ei,qu,lm,um,qd]},Xo={findFiberByHostInstance:Fr,bundleType:0,version:\"18.3.1\",rendererPackageName:\"react-dom\"},hI={bundleType:Xo.bundleType,version:Xo.version,rendererPackageName:Xo.rendererPackageName,rendererConfig:Xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hm(e),e===null?null:e.stateNode},findFiberByHostInstance:Xo.findFiberByHostInstance||cI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.1-next-f1338f8080-20240426\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"){var Xl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xl.isDisabled&&Xl.supportsFiber)try{Ku=Xl.inject(hI),Sn=Xl}catch{}}Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dI;Nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rh(t))throw Error(N(200));return aI(e,t,null,n)};Nt.createRoot=function(e,t){if(!rh(e))throw Error(N(299));var n=!1,o=\"\",s=V1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=eh(e,1,!1,null,null,n,!1,o,s),e[Bn]=t.current,Ss(e.nodeType===8?e.parentNode:e),new nh(t)};Nt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==\"function\"?Error(N(188)):(e=Object.keys(e).join(\",\"),Error(N(268,e)));return e=hm(t),e=e===null?null:e.stateNode,e};Nt.flushSync=function(e){return Zr(e)};Nt.hydrate=function(e,t,n){if(!oa(t))throw Error(N(200));return sa(null,e,t,!0,n)};Nt.hydrateRoot=function(e,t,n){if(!rh(e))throw Error(N(405));var o=n!=null&&n.hydratedSources||null,s=!1,u=\"\",c=V1;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),t=G1(t,null,e,1,n??null,s,!1,u,c),e[Bn]=t.current,Ss(e),o)for(e=0;e<o.length;e++)n=o[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new ia(t)};Nt.render=function(e,t,n){if(!oa(t))throw Error(N(200));return sa(null,e,t,!1,n)};Nt.unmountComponentAtNode=function(e){if(!oa(e))throw Error(N(40));return e._reactRootContainer?(Zr(function(){sa(null,null,e,!1,function(){e._reactRootContainer=null,e[Bn]=null})}),!0):!1};Nt.unstable_batchedUpdates=qd;Nt.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!oa(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return sa(e,t,n,!1,o)};Nt.version=\"18.3.1-next-f1338f8080-20240426\";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\"function\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Nt})(aR);var K1,s0=sf;K1=s0.createRoot,s0.hydrateRoot;const pI=document.getElementById(\"root\");K1(pI).render(Yt.jsx(uR,{}));\n\n    </script>\n    <style>\n      .canvas-display{width:100%;height:100%;position:absolute;top:0px;left:0px}.pixelated{image-rendering:pixelated}.grid-hidden{opacity:0}.touch-screen{width:100%;height:100%;position:absolute;top:0px;left:0px;background-color:#0000}.cursor-pointer{width:var( --cursor-size );height:var( --cursor-size );position:absolute;border-radius:var( --custom-borderRadius, 50% );border:var( --custom-borderStyle, solid ) var( --custom-borderWidth, 1px ) var( --custom-borderColor, black );background-color:var( --custom-backgroundColor, rgba( 0, 0, 0, 0 ) );opacity:var( --custom-opacity, 1 );transform:translate(-50%,-50%) scale(var( --custom-scale, 1 ));display:var( --custom-display, block );filter:var( --custom-shadowFilter )}.draw{width:100%;height:100%;position:absolute;top:0px;left:0px}\n\n    </style>\n  </head>\n  <body>\n    <div id=\"root\"></div>\n  </body>\n</html>\n"
}
