szld-libs 0.3.91 → 0.3.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Dt,W){typeof exports=="object"&&typeof module<"u"?W(exports,require("react"),require("antd"),require("react-router-dom"),require("lodash"),require("ahooks")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-router-dom","lodash","ahooks"],W):(Dt=typeof globalThis<"u"?globalThis:Dt||self,W(Dt.ReactComponents={},Dt.React,Dt.antd,Dt["react-router-dom"],Dt.lodash,Dt.ahooks))})(this,function(Dt,W,me,FF,il,bb){"use strict";var lQ=Object.defineProperty;var sQ=(Dt,W,me)=>W in Dt?lQ(Dt,W,{enumerable:!0,configurable:!0,writable:!0,value:me}):Dt[W]=me;var Xf=(Dt,W,me)=>(sQ(Dt,typeof W!="symbol"?W+"":W,me),me);function NF(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}function MF(e,r){for(var t=0;t<r.length;t++){const i=r[t];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const f=Object.getOwnPropertyDescriptor(i,l);f&&Object.defineProperty(e,l,f.get?f:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Me=NF(W);var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L4(e){var r=e.default;if(typeof r=="function"){var t=function i(){if(this instanceof i){var l=[null];l.push.apply(l,arguments);var f=Function.bind.apply(r,l);return new f}return r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var l=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,l.get?l:{enumerable:!0,get:function(){return e[i]}})}),t}var ig={exports:{}},Ch={};var z4;function BF(){if(z4)return Ch;z4=1;var e=W,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(p,g,d){var m,C={},b=null,x=null;d!==void 0&&(b=""+d),g.key!==void 0&&(b=""+g.key),g.ref!==void 0&&(x=g.ref);for(m in g)i.call(g,m)&&!f.hasOwnProperty(m)&&(C[m]=g[m]);if(p&&p.defaultProps)for(m in g=p.defaultProps,g)C[m]===void 0&&(C[m]=g[m]);return{$$typeof:r,type:p,key:b,ref:x,props:C,_owner:l.current}}return Ch.Fragment=t,Ch.jsx=c,Ch.jsxs=c,Ch}var wh={};var U4;function LF(){return U4||(U4=1,process.env.NODE_ENV!=="production"&&function(){var e=W,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=Symbol.iterator,k="@@iterator";function E(ue){if(ue===null||typeof ue!="object")return null;var He=_&&ue[_]||ue[k];return typeof He=="function"?He:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(ue){{for(var He=arguments.length,Qe=new Array(He>1?He-1:0),mt=1;mt<He;mt++)Qe[mt-1]=arguments[mt];D("error",ue,Qe)}}function D(ue,He,Qe){{var mt=A.ReactDebugCurrentFrame,Rt=mt.getStackAddendum();Rt!==""&&(He+="%s",Qe=Qe.concat([Rt]));var Xt=Qe.map(function(Mt){return String(Mt)});Xt.unshift("Warning: "+He),Function.prototype.apply.call(console[ue],console,Xt)}}var R=!1,N=!1,z=!1,M=!1,I=!1,Y;Y=Symbol.for("react.module.reference");function B(ue){return!!(typeof ue=="string"||typeof ue=="function"||ue===i||ue===f||I||ue===l||ue===d||ue===m||M||ue===x||R||N||z||typeof ue=="object"&&ue!==null&&(ue.$$typeof===b||ue.$$typeof===C||ue.$$typeof===c||ue.$$typeof===p||ue.$$typeof===g||ue.$$typeof===Y||ue.getModuleId!==void 0))}function P(ue,He,Qe){var mt=ue.displayName;if(mt)return mt;var Rt=He.displayName||He.name||"";return Rt!==""?Qe+"("+Rt+")":Qe}function U(ue){return ue.displayName||"Context"}function H(ue){if(ue==null)return null;if(typeof ue.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ue=="function")return ue.displayName||ue.name||null;if(typeof ue=="string")return ue;switch(ue){case i:return"Fragment";case t:return"Portal";case f:return"Profiler";case l:return"StrictMode";case d:return"Suspense";case m:return"SuspenseList"}if(typeof ue=="object")switch(ue.$$typeof){case p:var He=ue;return U(He)+".Consumer";case c:var Qe=ue;return U(Qe._context)+".Provider";case g:return P(ue,ue.render,"ForwardRef");case C:var mt=ue.displayName||null;return mt!==null?mt:H(ue.type)||"Memo";case b:{var Rt=ue,Xt=Rt._payload,Mt=Rt._init;try{return H(Mt(Xt))}catch{return null}}}return null}var V=Object.assign,K=0,ee,J,q,te,Z,$,ne;function oe(){}oe.__reactDisabledLog=!0;function ae(){{if(K===0){ee=console.log,J=console.info,q=console.warn,te=console.error,Z=console.group,$=console.groupCollapsed,ne=console.groupEnd;var ue={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:ue,log:ue,warn:ue,error:ue,group:ue,groupCollapsed:ue,groupEnd:ue})}K++}}function se(){{if(K--,K===0){var ue={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},ue,{value:ee}),info:V({},ue,{value:J}),warn:V({},ue,{value:q}),error:V({},ue,{value:te}),group:V({},ue,{value:Z}),groupCollapsed:V({},ue,{value:$}),groupEnd:V({},ue,{value:ne})})}K<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=A.ReactCurrentDispatcher,we;function ce(ue,He,Qe){{if(we===void 0)try{throw Error()}catch(Rt){var mt=Rt.stack.trim().match(/\n( *(at )?)/);we=mt&&mt[1]||""}return`
1
+ (function(Dt,W){typeof exports=="object"&&typeof module<"u"?W(exports,require("react"),require("antd"),require("react-router-dom"),require("lodash"),require("ahooks")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-router-dom","lodash","ahooks"],W):(Dt=typeof globalThis<"u"?globalThis:Dt||self,W(Dt.ReactComponents={},Dt.React,Dt.antd,Dt["react-router-dom"],Dt.lodash,Dt.ahooks))})(this,function(Dt,W,me,FF,il,bb){"use strict";var lQ=Object.defineProperty;var sQ=(Dt,W,me)=>W in Dt?lQ(Dt,W,{enumerable:!0,configurable:!0,writable:!0,value:me}):Dt[W]=me;var Xf=(Dt,W,me)=>(sQ(Dt,typeof W!="symbol"?W+"":W,me),me);function NF(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}function MF(e,r){for(var t=0;t<r.length;t++){const i=r[t];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const f=Object.getOwnPropertyDescriptor(i,l);f&&Object.defineProperty(e,l,f.get?f:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Me=NF(W);var Pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function L4(e){var r=e.default;if(typeof r=="function"){var t=function i(){if(this instanceof i){var l=[null];l.push.apply(l,arguments);var f=Function.bind.apply(r,l);return new f}return r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var l=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,l.get?l:{enumerable:!0,get:function(){return e[i]}})}),t}var ig={exports:{}},Ch={};var z4;function BF(){if(z4)return Ch;z4=1;var e=W,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(p,g,d){var m,C={},b=null,x=null;d!==void 0&&(b=""+d),g.key!==void 0&&(b=""+g.key),g.ref!==void 0&&(x=g.ref);for(m in g)i.call(g,m)&&!f.hasOwnProperty(m)&&(C[m]=g[m]);if(p&&p.defaultProps)for(m in g=p.defaultProps,g)C[m]===void 0&&(C[m]=g[m]);return{$$typeof:r,type:p,key:b,ref:x,props:C,_owner:l.current}}return Ch.Fragment=t,Ch.jsx=c,Ch.jsxs=c,Ch}var wh={};var U4;function LF(){return U4||(U4=1,process.env.NODE_ENV!=="production"&&function(){var e=W,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=Symbol.iterator,k="@@iterator";function E(ue){if(ue===null||typeof ue!="object")return null;var He=_&&ue[_]||ue[k];return typeof He=="function"?He:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(ue){{for(var He=arguments.length,Qe=new Array(He>1?He-1:0),mt=1;mt<He;mt++)Qe[mt-1]=arguments[mt];D("error",ue,Qe)}}function D(ue,He,Qe){{var mt=A.ReactDebugCurrentFrame,Rt=mt.getStackAddendum();Rt!==""&&(He+="%s",Qe=Qe.concat([Rt]));var Xt=Qe.map(function(Mt){return String(Mt)});Xt.unshift("Warning: "+He),Function.prototype.apply.call(console[ue],console,Xt)}}var R=!1,N=!1,z=!1,M=!1,I=!1,Y;Y=Symbol.for("react.module.reference");function B(ue){return!!(typeof ue=="string"||typeof ue=="function"||ue===i||ue===f||I||ue===l||ue===d||ue===m||M||ue===x||R||N||z||typeof ue=="object"&&ue!==null&&(ue.$$typeof===b||ue.$$typeof===C||ue.$$typeof===c||ue.$$typeof===p||ue.$$typeof===g||ue.$$typeof===Y||ue.getModuleId!==void 0))}function P(ue,He,Qe){var mt=ue.displayName;if(mt)return mt;var Rt=He.displayName||He.name||"";return Rt!==""?Qe+"("+Rt+")":Qe}function U(ue){return ue.displayName||"Context"}function H(ue){if(ue==null)return null;if(typeof ue.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ue=="function")return ue.displayName||ue.name||null;if(typeof ue=="string")return ue;switch(ue){case i:return"Fragment";case t:return"Portal";case f:return"Profiler";case l:return"StrictMode";case d:return"Suspense";case m:return"SuspenseList"}if(typeof ue=="object")switch(ue.$$typeof){case p:var He=ue;return U(He)+".Consumer";case c:var Qe=ue;return U(Qe._context)+".Provider";case g:return P(ue,ue.render,"ForwardRef");case C:var mt=ue.displayName||null;return mt!==null?mt:H(ue.type)||"Memo";case b:{var Rt=ue,Xt=Rt._payload,Mt=Rt._init;try{return H(Mt(Xt))}catch{return null}}}return null}var V=Object.assign,K=0,ee,J,q,te,X,$,ne;function oe(){}oe.__reactDisabledLog=!0;function ae(){{if(K===0){ee=console.log,J=console.info,q=console.warn,te=console.error,X=console.group,$=console.groupCollapsed,ne=console.groupEnd;var ue={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:ue,log:ue,warn:ue,error:ue,group:ue,groupCollapsed:ue,groupEnd:ue})}K++}}function se(){{if(K--,K===0){var ue={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},ue,{value:ee}),info:V({},ue,{value:J}),warn:V({},ue,{value:q}),error:V({},ue,{value:te}),group:V({},ue,{value:X}),groupCollapsed:V({},ue,{value:$}),groupEnd:V({},ue,{value:ne})})}K<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=A.ReactCurrentDispatcher,we;function ce(ue,He,Qe){{if(we===void 0)try{throw Error()}catch(Rt){var mt=Rt.stack.trim().match(/\n( *(at )?)/);we=mt&&mt[1]||""}return`
2
2
  `+we+ue}}var ye=!1,De;{var Pe=typeof WeakMap=="function"?WeakMap:Map;De=new Pe}function ke(ue,He){if(!ue||ye)return"";{var Qe=De.get(ue);if(Qe!==void 0)return Qe}var mt;ye=!0;var Rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Xt;Xt=ve.current,ve.current=null,ae();try{if(He){var Mt=function(){throw Error()};if(Object.defineProperty(Mt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Mt,[])}catch(tn){mt=tn}Reflect.construct(ue,[],Mt)}else{try{Mt.call()}catch(tn){mt=tn}ue.call(Mt.prototype)}}else{try{throw Error()}catch(tn){mt=tn}ue()}}catch(tn){if(tn&&mt&&typeof tn.stack=="string"){for(var yt=tn.stack.split(`
3
3
  `),Sr=mt.stack.split(`
4
4
  `),Vn=yt.length-1,$n=Sr.length-1;Vn>=1&&$n>=0&&yt[Vn]!==Sr[$n];)$n--;for(;Vn>=1&&$n>=0;Vn--,$n--)if(yt[Vn]!==Sr[$n]){if(Vn!==1||$n!==1)do if(Vn--,$n--,$n<0||yt[Vn]!==Sr[$n]){var ha=`
@@ -66,14 +66,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66
66
  }
67
67
  `,u7=function(r){var t=W.useContext(j4),i=t.csp,l=t.prefixCls,f=t.layer,c=s7;l&&(c=c.replace(/anticon/g,l)),f&&(c="@layer ".concat(f,` {
68
68
  `).concat(c,`
69
- }`)),W.useEffect(function(){var p=r.current,g=e7(p);XF(c,"@ant-design-icons",{prepend:!f,csp:i,attachTo:g})},[])},c7=["icon","className","onClick","style","primaryColor","secondaryColor"],Eh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function f7(e){var r=e.primaryColor,t=e.secondaryColor;Eh.primaryColor=r,Eh.secondaryColor=t||l8(r),Eh.calculated=!!t}function d7(){return Ft({},Eh)}var lg=function(r){var t=r.icon,i=r.className,l=r.onClick,f=r.style,c=r.primaryColor,p=r.secondaryColor,g=_h(r,c7),d=Me.useRef(),m=Eh;if(c&&(m={primaryColor:c,secondaryColor:p||l8(c)}),u7(d),l7(i8(t),"icon should be icon definiton, but got ".concat(t)),!i8(t))return null;var C=t;return C&&typeof C.icon=="function"&&(C=Ft(Ft({},C),{},{icon:C.icon(m.primaryColor,m.secondaryColor)})),Rb(C.icon,"svg-".concat(C.name),Ft(Ft({className:i,onClick:l,style:f,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:d}))};lg.displayName="IconReact",lg.getTwoToneColors=d7,lg.setTwoToneColors=f7;const Fb=lg;function u8(e){var r=s8(e),t=mc(r,2),i=t[0],l=t[1];return Fb.setTwoToneColors({primaryColor:i,secondaryColor:l})}function h7(){var e=Fb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var p7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];u8(Eb.primary);var sg=Me.forwardRef(function(e,r){var t=e.className,i=e.icon,l=e.spin,f=e.rotate,c=e.tabIndex,p=e.onClick,g=e.twoToneColor,d=_h(e,p7),m=Me.useContext(j4),C=m.prefixCls,b=C===void 0?"anticon":C,x=m.rootClassName,_=rs(x,b,Le(Le({},"".concat(b,"-").concat(i.name),!!i.name),"".concat(b,"-spin"),!!l||i.name==="loading"),t),k=c;k===void 0&&p&&(k=-1);var E=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=s8(g),T=mc(A,2),D=T[0],R=T[1];return Me.createElement("span",Nr({role:"img","aria-label":i.name},d,{ref:r,tabIndex:k,onClick:p,className:_}),Me.createElement(Fb,{icon:i,primaryColor:D,secondaryColor:R,style:E}))});sg.displayName="AntdIcon",sg.getTwoToneColor=h7,sg.setTwoToneColor=u8;const Qi=sg;var v7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const m7=v7;var g7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:m7}))},c8=Me.forwardRef(g7);process.env.NODE_ENV!=="production"&&(c8.displayName="ArrowLeftOutlined");const y7=c8;var x7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const b7=x7;var C7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:b7}))},f8=Me.forwardRef(C7);process.env.NODE_ENV!=="production"&&(f8.displayName="CheckOutlined");const d8=f8;var w7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const _7=w7;var S7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:_7}))},h8=Me.forwardRef(S7);process.env.NODE_ENV!=="production"&&(h8.displayName="CloseCircleFilled");const E7=h8;var D7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const k7=D7;var T7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:k7}))},p8=Me.forwardRef(T7);process.env.NODE_ENV!=="production"&&(p8.displayName="CloseOutlined");const v8=p8;var A7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const O7=A7;var R7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:O7}))},m8=Me.forwardRef(R7);process.env.NODE_ENV!=="production"&&(m8.displayName="DownOutlined");const F7=m8;var N7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const M7=N7;var P7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:M7}))},g8=Me.forwardRef(P7);process.env.NODE_ENV!=="production"&&(g8.displayName="InfoCircleOutlined");const y8=g8;var B7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const L7=B7;var z7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:L7}))},x8=Me.forwardRef(z7);process.env.NODE_ENV!=="production"&&(x8.displayName="MinusSquareOutlined");const b8=x8;var U7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const j7=U7;var I7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:j7}))},C8=Me.forwardRef(I7);process.env.NODE_ENV!=="production"&&(C8.displayName="PlusOutlined");const Nb=C8;var H7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const V7=H7;var $7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:V7}))},w8=Me.forwardRef($7);process.env.NODE_ENV!=="production"&&(w8.displayName="PlusSquareOutlined");const _8=w8;var Y7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const q7=Y7;var G7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:q7}))},S8=Me.forwardRef(G7);process.env.NODE_ENV!=="production"&&(S8.displayName="SyncOutlined");const K7=S8;var W7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Q7=W7;var Z7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:Q7}))},E8=Me.forwardRef(Z7);process.env.NODE_ENV!=="production"&&(E8.displayName="UpOutlined");const X7=E8;var J7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const e9=J7;var t9=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:e9}))},D8=Me.forwardRef(t9);process.env.NODE_ENV!=="production"&&(D8.displayName="UploadOutlined");const Mb=D8;var ug={exports:{}},yn={};var k8;function n9(){if(k8)return yn;k8=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function k(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case e:switch(E=E.type,E){case t:case l:case i:case d:case m:return E;default:switch(E=E&&E.$$typeof,E){case p:case c:case g:case b:case C:case f:return E;default:return A}}case r:return A}}}return yn.ContextConsumer=c,yn.ContextProvider=f,yn.Element=e,yn.ForwardRef=g,yn.Fragment=t,yn.Lazy=b,yn.Memo=C,yn.Portal=r,yn.Profiler=l,yn.StrictMode=i,yn.Suspense=d,yn.SuspenseList=m,yn.isAsyncMode=function(){return!1},yn.isConcurrentMode=function(){return!1},yn.isContextConsumer=function(E){return k(E)===c},yn.isContextProvider=function(E){return k(E)===f},yn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},yn.isForwardRef=function(E){return k(E)===g},yn.isFragment=function(E){return k(E)===t},yn.isLazy=function(E){return k(E)===b},yn.isMemo=function(E){return k(E)===C},yn.isPortal=function(E){return k(E)===r},yn.isProfiler=function(E){return k(E)===l},yn.isStrictMode=function(E){return k(E)===i},yn.isSuspense=function(E){return k(E)===d},yn.isSuspenseList=function(E){return k(E)===m},yn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===t||E===l||E===i||E===d||E===m||E===x||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===C||E.$$typeof===f||E.$$typeof===c||E.$$typeof===g||E.$$typeof===_||E.getModuleId!==void 0)},yn.typeOf=k,yn}var xn={};var T8;function r9(){return T8||(T8=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=!1,k=!1,E=!1,A=!1,T=!1,D;D=Symbol.for("react.module.reference");function R(Ne){return!!(typeof Ne=="string"||typeof Ne=="function"||Ne===t||Ne===l||T||Ne===i||Ne===d||Ne===m||A||Ne===x||_||k||E||typeof Ne=="object"&&Ne!==null&&(Ne.$$typeof===b||Ne.$$typeof===C||Ne.$$typeof===f||Ne.$$typeof===c||Ne.$$typeof===g||Ne.$$typeof===D||Ne.getModuleId!==void 0))}function N(Ne){if(typeof Ne=="object"&&Ne!==null){var dt=Ne.$$typeof;switch(dt){case e:var Xe=Ne.type;switch(Xe){case t:case l:case i:case d:case m:return Xe;default:var Zt=Xe&&Xe.$$typeof;switch(Zt){case p:case c:case g:case b:case C:case f:return Zt;default:return dt}}case r:return dt}}}var z=c,M=f,I=e,Y=g,B=t,P=b,U=C,H=r,V=l,K=i,ee=d,J=m,q=!1,te=!1;function Z(Ne){return q||(q=!0),!1}function $(Ne){return te||(te=!0),!1}function ne(Ne){return N(Ne)===c}function oe(Ne){return N(Ne)===f}function ae(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===e}function se(Ne){return N(Ne)===g}function ve(Ne){return N(Ne)===t}function we(Ne){return N(Ne)===b}function ce(Ne){return N(Ne)===C}function ye(Ne){return N(Ne)===r}function De(Ne){return N(Ne)===l}function Pe(Ne){return N(Ne)===i}function ke(Ne){return N(Ne)===d}function ze(Ne){return N(Ne)===m}xn.ContextConsumer=z,xn.ContextProvider=M,xn.Element=I,xn.ForwardRef=Y,xn.Fragment=B,xn.Lazy=P,xn.Memo=U,xn.Portal=H,xn.Profiler=V,xn.StrictMode=K,xn.Suspense=ee,xn.SuspenseList=J,xn.isAsyncMode=Z,xn.isConcurrentMode=$,xn.isContextConsumer=ne,xn.isContextProvider=oe,xn.isElement=ae,xn.isForwardRef=se,xn.isFragment=ve,xn.isLazy=we,xn.isMemo=ce,xn.isPortal=ye,xn.isProfiler=De,xn.isStrictMode=Pe,xn.isSuspense=ke,xn.isSuspenseList=ze,xn.isValidElementType=R,xn.typeOf=N}()),xn}(function(e){process.env.NODE_ENV==="production"?e.exports=n9():e.exports=r9()})(ug);var a9=Symbol.for("react.element"),i9=Symbol.for("react.transitional.element"),o9=Symbol.for("react.fragment");function l9(e){return e&&Mr(e)==="object"&&(e.$$typeof===a9||e.$$typeof===i9)&&e.type===o9}const cg={main:"backheader-module_main_cac53",title:"backheader-module_title_33439",sub:"backheader-module_sub_1d015",btn:"backheader-module_btn_ee841"},{Title:s9,Text:u9}=me.Typography,c9=e=>{const{isBack:r=!0,title:t,extra:i,subTitle:l=null,className:f,style:c,titleStyle:p,level:g=2,icon:d,onBack:m}=e,C=FF.useNavigate(),b=()=>typeof l=="string"?Q(u9,{className:cg.sub,children:l}):l,x=()=>{if(m){m==null||m();return}C(-1)};return Be("div",{className:rs(cg.main,f),style:c,children:[Be(me.Space,{children:[r&&Q("div",{onClick:x,className:cg.btn,children:d||Q(y7,{style:{fontSize:24}})}),Be(s9,{level:g,className:cg.title,style:p,children:[t,b()]})]}),i]})};var tu={exports:{}},ai={},Pb={exports:{}},Bb={};var A8;function f9(){return A8||(A8=1,function(e){function r(q,te){var Z=q.length;q.push(te);e:for(;0<Z;){var $=Z-1>>>1,ne=q[$];if(0<l(ne,te))q[$]=te,q[Z]=ne,Z=$;else break e}}function t(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var te=q[0],Z=q.pop();if(Z!==te){q[0]=Z;e:for(var $=0,ne=q.length,oe=ne>>>1;$<oe;){var ae=2*($+1)-1,se=q[ae],ve=ae+1,we=q[ve];if(0>l(se,Z))ve<ne&&0>l(we,se)?(q[$]=we,q[ve]=Z,$=ve):(q[$]=se,q[ae]=Z,$=ae);else if(ve<ne&&0>l(we,Z))q[$]=we,q[ve]=Z,$=ve;else break e}}return te}function l(q,te){var Z=q.sortIndex-te.sortIndex;return Z!==0?Z:q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var c=Date,p=c.now();e.unstable_now=function(){return c.now()-p}}var g=[],d=[],m=1,C=null,b=3,x=!1,_=!1,k=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(q){for(var te=t(d);te!==null;){if(te.callback===null)i(d);else if(te.startTime<=q)i(d),te.sortIndex=te.expirationTime,r(g,te);else break;te=t(d)}}function R(q){if(k=!1,D(q),!_)if(t(g)!==null)_=!0,ee(N);else{var te=t(d);te!==null&&J(R,te.startTime-q)}}function N(q,te){_=!1,k&&(k=!1,A(I),I=-1),x=!0;var Z=b;try{for(D(te),C=t(g);C!==null&&(!(C.expirationTime>te)||q&&!P());){var $=C.callback;if(typeof $=="function"){C.callback=null,b=C.priorityLevel;var ne=$(C.expirationTime<=te);te=e.unstable_now(),typeof ne=="function"?C.callback=ne:C===t(g)&&i(g),D(te)}else i(g);C=t(g)}if(C!==null)var oe=!0;else{var ae=t(d);ae!==null&&J(R,ae.startTime-te),oe=!1}return oe}finally{C=null,b=Z,x=!1}}var z=!1,M=null,I=-1,Y=5,B=-1;function P(){return!(e.unstable_now()-B<Y)}function U(){if(M!==null){var q=e.unstable_now();B=q;var te=!0;try{te=M(!0,q)}finally{te?H():(z=!1,M=null)}}else z=!1}var H;if(typeof T=="function")H=function(){T(U)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,K=V.port2;V.port1.onmessage=U,H=function(){K.postMessage(null)}}else H=function(){E(U,0)};function ee(q){M=q,z||(z=!0,H())}function J(q,te){I=E(function(){q(e.unstable_now())},te)}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(q){q.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,ee(N))},e.unstable_forceFrameRate=function(q){0>q||125<q||(Y=0<q?Math.floor(1e3/q):5)},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return t(g)},e.unstable_next=function(q){switch(b){case 1:case 2:case 3:var te=3;break;default:te=b}var Z=b;b=te;try{return q()}finally{b=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,te){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Z=b;b=q;try{return te()}finally{b=Z}},e.unstable_scheduleCallback=function(q,te,Z){var $=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?$+Z:$):Z=$,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=Z+ne,q={id:m++,callback:te,priorityLevel:q,startTime:Z,expirationTime:ne,sortIndex:-1},Z>$?(q.sortIndex=Z,r(d,q),t(g)===null&&q===t(d)&&(k?(A(I),I=-1):k=!0,J(R,Z-$))):(q.sortIndex=ne,r(g,q),_||x||(_=!0,ee(N))),q},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(q){var te=b;return function(){var Z=b;b=te;try{return q.apply(this,arguments)}finally{b=Z}}}}(Bb)),Bb}var Lb={};var O8;function d9(){return O8||(O8=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,t=!1,i=5;function l(qe,at){var ct=qe.length;qe.push(at),p(qe,at,ct)}function f(qe){return qe.length===0?null:qe[0]}function c(qe){if(qe.length===0)return null;var at=qe[0],ct=qe.pop();return ct!==at&&(qe[0]=ct,g(qe,ct,0)),at}function p(qe,at,ct){for(var Ht=ct;Ht>0;){var Nn=Ht-1>>>1,ur=qe[Nn];if(d(ur,at)>0)qe[Nn]=at,qe[Ht]=ur,Ht=Nn;else return}}function g(qe,at,ct){for(var Ht=ct,Nn=qe.length,ur=Nn>>>1;Ht<ur;){var Wn=(Ht+1)*2-1,zr=qe[Wn],_n=Wn+1,na=qe[_n];if(d(zr,at)<0)_n<Nn&&d(na,zr)<0?(qe[Ht]=na,qe[_n]=at,Ht=_n):(qe[Ht]=zr,qe[Wn]=at,Ht=Wn);else if(_n<Nn&&d(na,at)<0)qe[Ht]=na,qe[_n]=at,Ht=_n;else return}}function d(qe,at){var ct=qe.sortIndex-at.sortIndex;return ct!==0?ct:qe.id-at.id}var m=1,C=2,b=3,x=4,_=5;function k(qe,at){}var E=typeof performance=="object"&&typeof performance.now=="function";if(E){var A=performance;e.unstable_now=function(){return A.now()}}else{var T=Date,D=T.now();e.unstable_now=function(){return T.now()-D}}var R=1073741823,N=-1,z=250,M=5e3,I=1e4,Y=R,B=[],P=[],U=1,H=null,V=b,K=!1,ee=!1,J=!1,q=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(qe){for(var at=f(P);at!==null;){if(at.callback===null)c(P);else if(at.startTime<=qe)c(P),at.sortIndex=at.expirationTime,l(B,at);else return;at=f(P)}}function ne(qe){if(J=!1,$(qe),!ee)if(f(B)!==null)ee=!0,Tn(oe);else{var at=f(P);at!==null&&Gt(ne,at.startTime-qe)}}function oe(qe,at){ee=!1,J&&(J=!1,Kn()),K=!0;var ct=V;try{var Ht;if(!t)return ae(qe,at)}finally{H=null,V=ct,K=!1}}function ae(qe,at){var ct=at;for($(ct),H=f(B);H!==null&&!r&&!(H.expirationTime>ct&&(!qe||kn()));){var Ht=H.callback;if(typeof Ht=="function"){H.callback=null,V=H.priorityLevel;var Nn=H.expirationTime<=ct,ur=Ht(Nn);ct=e.unstable_now(),typeof ur=="function"?H.callback=ur:H===f(B)&&c(B),$(ct)}else c(B);H=f(B)}if(H!==null)return!0;var Wn=f(P);return Wn!==null&&Gt(ne,Wn.startTime-ct),!1}function se(qe,at){switch(qe){case m:case C:case b:case x:case _:break;default:qe=b}var ct=V;V=qe;try{return at()}finally{V=ct}}function ve(qe){var at;switch(V){case m:case C:case b:at=b;break;default:at=V;break}var ct=V;V=at;try{return qe()}finally{V=ct}}function we(qe){var at=V;return function(){var ct=V;V=at;try{return qe.apply(this,arguments)}finally{V=ct}}}function ce(qe,at,ct){var Ht=e.unstable_now(),Nn;if(typeof ct=="object"&&ct!==null){var ur=ct.delay;typeof ur=="number"&&ur>0?Nn=Ht+ur:Nn=Ht}else Nn=Ht;var Wn;switch(qe){case m:Wn=N;break;case C:Wn=z;break;case _:Wn=Y;break;case x:Wn=I;break;case b:default:Wn=M;break}var zr=Nn+Wn,_n={id:U++,callback:at,priorityLevel:qe,startTime:Nn,expirationTime:zr,sortIndex:-1};return Nn>Ht?(_n.sortIndex=Nn,l(P,_n),f(B)===null&&_n===f(P)&&(J?Kn():J=!0,Gt(ne,Nn-Ht))):(_n.sortIndex=zr,l(B,_n),!ee&&!K&&(ee=!0,Tn(oe))),_n}function ye(){}function De(){!ee&&!K&&(ee=!0,Tn(oe))}function Pe(){return f(B)}function ke(qe){qe.callback=null}function ze(){return V}var Ne=!1,dt=null,Xe=-1,Zt=i,sn=-1;function kn(){var qe=e.unstable_now()-sn;return!(qe<Zt)}function jn(){}function un(qe){qe<0||qe>125||(qe>0?Zt=Math.floor(1e3/qe):Zt=i)}var It=function(){if(dt!==null){var qe=e.unstable_now();sn=qe;var at=!0,ct=!0;try{ct=dt(at,qe)}finally{ct?on():(Ne=!1,dt=null)}}else Ne=!1},on;if(typeof Z=="function")on=function(){Z(It)};else if(typeof MessageChannel<"u"){var In=new MessageChannel,Mn=In.port2;In.port1.onmessage=It,on=function(){Mn.postMessage(null)}}else on=function(){q(It,0)};function Tn(qe){dt=qe,Ne||(Ne=!0,on())}function Gt(qe,at){Xe=q(function(){qe(e.unstable_now())},at)}function Kn(){te(Xe),Xe=-1}var ka=jn,Lr=null;e.unstable_IdlePriority=_,e.unstable_ImmediatePriority=m,e.unstable_LowPriority=x,e.unstable_NormalPriority=b,e.unstable_Profiling=Lr,e.unstable_UserBlockingPriority=C,e.unstable_cancelCallback=ke,e.unstable_continueExecution=De,e.unstable_forceFrameRate=un,e.unstable_getCurrentPriorityLevel=ze,e.unstable_getFirstCallbackNode=Pe,e.unstable_next=ve,e.unstable_pauseExecution=ye,e.unstable_requestPaint=ka,e.unstable_runWithPriority=se,e.unstable_scheduleCallback=ce,e.unstable_shouldYield=kn,e.unstable_wrapCallback=we,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Lb)),Lb}var R8;function F8(){return R8||(R8=1,function(e){process.env.NODE_ENV==="production"?e.exports=f9():e.exports=d9()}(Pb)),Pb.exports}var N8;function h9(){if(N8)return ai;N8=1;var e=W,r=F8();function t(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,v=1;v<arguments.length;v++)s+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function f(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(l[o]=s,o=0;o<s.length;o++)i.add(s[o])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},C={};function b(o){return g.call(C,o)?!0:g.call(m,o)?!1:d.test(o)?C[o]=!0:(m[o]=!0,!1)}function x(o,s,v,w){if(v!==null&&v.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return w?!1:v!==null?!v.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function _(o,s,v,w){if(s===null||typeof s>"u"||x(o,s,v,w))return!0;if(w)return!1;if(v!==null)switch(v.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function k(o,s,v,w,O,L,X){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=w,this.attributeNamespace=O,this.mustUseProperty=v,this.propertyName=o,this.type=s,this.sanitizeURL=L,this.removeEmptyString=X}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){E[o]=new k(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];E[s]=new k(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){E[o]=new k(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){E[o]=new k(o,2,!1,o,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(o){E[o]=new k(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){E[o]=new k(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){E[o]=new k(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){E[o]=new k(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){E[o]=new k(o,5,!1,o.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function T(o){return o[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(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!1,!1)}),E.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!0,!0)});function D(o,s,v,w){var O=E.hasOwnProperty(s)?E[s]:null;(O!==null?O.type!==0:w||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,v,O,w)&&(v=null),w||O===null?b(s)&&(v===null?o.removeAttribute(s):o.setAttribute(s,""+v)):O.mustUseProperty?o[O.propertyName]=v===null?O.type===3?!1:"":v:(s=O.attributeName,w=O.attributeNamespace,v===null?o.removeAttribute(s):(O=O.type,v=O===3||O===4&&v===!0?"":""+v,w?o.setAttributeNS(w,s,v):o.setAttribute(s,v))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),z=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),P=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),q=Symbol.iterator;function te(o){return o===null||typeof o!="object"?null:(o=q&&o[q]||o["@@iterator"],typeof o=="function"?o:null)}var Z=Object.assign,$;function ne(o){if($===void 0)try{throw Error()}catch(v){var s=v.stack.trim().match(/\n( *(at )?)/);$=s&&s[1]||""}return`
69
+ }`)),W.useEffect(function(){var p=r.current,g=e7(p);XF(c,"@ant-design-icons",{prepend:!f,csp:i,attachTo:g})},[])},c7=["icon","className","onClick","style","primaryColor","secondaryColor"],Eh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function f7(e){var r=e.primaryColor,t=e.secondaryColor;Eh.primaryColor=r,Eh.secondaryColor=t||l8(r),Eh.calculated=!!t}function d7(){return Ft({},Eh)}var lg=function(r){var t=r.icon,i=r.className,l=r.onClick,f=r.style,c=r.primaryColor,p=r.secondaryColor,g=_h(r,c7),d=Me.useRef(),m=Eh;if(c&&(m={primaryColor:c,secondaryColor:p||l8(c)}),u7(d),l7(i8(t),"icon should be icon definiton, but got ".concat(t)),!i8(t))return null;var C=t;return C&&typeof C.icon=="function"&&(C=Ft(Ft({},C),{},{icon:C.icon(m.primaryColor,m.secondaryColor)})),Rb(C.icon,"svg-".concat(C.name),Ft(Ft({className:i,onClick:l,style:f,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:d}))};lg.displayName="IconReact",lg.getTwoToneColors=d7,lg.setTwoToneColors=f7;const Fb=lg;function u8(e){var r=s8(e),t=mc(r,2),i=t[0],l=t[1];return Fb.setTwoToneColors({primaryColor:i,secondaryColor:l})}function h7(){var e=Fb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var p7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];u8(Eb.primary);var sg=Me.forwardRef(function(e,r){var t=e.className,i=e.icon,l=e.spin,f=e.rotate,c=e.tabIndex,p=e.onClick,g=e.twoToneColor,d=_h(e,p7),m=Me.useContext(j4),C=m.prefixCls,b=C===void 0?"anticon":C,x=m.rootClassName,_=rs(x,b,Le(Le({},"".concat(b,"-").concat(i.name),!!i.name),"".concat(b,"-spin"),!!l||i.name==="loading"),t),k=c;k===void 0&&p&&(k=-1);var E=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=s8(g),T=mc(A,2),D=T[0],R=T[1];return Me.createElement("span",Nr({role:"img","aria-label":i.name},d,{ref:r,tabIndex:k,onClick:p,className:_}),Me.createElement(Fb,{icon:i,primaryColor:D,secondaryColor:R,style:E}))});sg.displayName="AntdIcon",sg.getTwoToneColor=h7,sg.setTwoToneColor=u8;const Qi=sg;var v7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const m7=v7;var g7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:m7}))},c8=Me.forwardRef(g7);process.env.NODE_ENV!=="production"&&(c8.displayName="ArrowLeftOutlined");const y7=c8;var x7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const b7=x7;var C7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:b7}))},f8=Me.forwardRef(C7);process.env.NODE_ENV!=="production"&&(f8.displayName="CheckOutlined");const d8=f8;var w7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const _7=w7;var S7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:_7}))},h8=Me.forwardRef(S7);process.env.NODE_ENV!=="production"&&(h8.displayName="CloseCircleFilled");const E7=h8;var D7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const k7=D7;var T7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:k7}))},p8=Me.forwardRef(T7);process.env.NODE_ENV!=="production"&&(p8.displayName="CloseOutlined");const v8=p8;var A7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const O7=A7;var R7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:O7}))},m8=Me.forwardRef(R7);process.env.NODE_ENV!=="production"&&(m8.displayName="DownOutlined");const F7=m8;var N7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const M7=N7;var P7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:M7}))},g8=Me.forwardRef(P7);process.env.NODE_ENV!=="production"&&(g8.displayName="InfoCircleOutlined");const y8=g8;var B7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const L7=B7;var z7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:L7}))},x8=Me.forwardRef(z7);process.env.NODE_ENV!=="production"&&(x8.displayName="MinusSquareOutlined");const b8=x8;var U7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const j7=U7;var I7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:j7}))},C8=Me.forwardRef(I7);process.env.NODE_ENV!=="production"&&(C8.displayName="PlusOutlined");const Nb=C8;var H7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const V7=H7;var $7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:V7}))},w8=Me.forwardRef($7);process.env.NODE_ENV!=="production"&&(w8.displayName="PlusSquareOutlined");const _8=w8;var Y7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const q7=Y7;var G7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:q7}))},S8=Me.forwardRef(G7);process.env.NODE_ENV!=="production"&&(S8.displayName="SyncOutlined");const K7=S8;var W7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Q7=W7;var Z7=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:Q7}))},E8=Me.forwardRef(Z7);process.env.NODE_ENV!=="production"&&(E8.displayName="UpOutlined");const X7=E8;var J7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const e9=J7;var t9=function(r,t){return Me.createElement(Qi,Nr({},r,{ref:t,icon:e9}))},D8=Me.forwardRef(t9);process.env.NODE_ENV!=="production"&&(D8.displayName="UploadOutlined");const Mb=D8;var ug={exports:{}},yn={};var k8;function n9(){if(k8)return yn;k8=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function k(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case e:switch(E=E.type,E){case t:case l:case i:case d:case m:return E;default:switch(E=E&&E.$$typeof,E){case p:case c:case g:case b:case C:case f:return E;default:return A}}case r:return A}}}return yn.ContextConsumer=c,yn.ContextProvider=f,yn.Element=e,yn.ForwardRef=g,yn.Fragment=t,yn.Lazy=b,yn.Memo=C,yn.Portal=r,yn.Profiler=l,yn.StrictMode=i,yn.Suspense=d,yn.SuspenseList=m,yn.isAsyncMode=function(){return!1},yn.isConcurrentMode=function(){return!1},yn.isContextConsumer=function(E){return k(E)===c},yn.isContextProvider=function(E){return k(E)===f},yn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},yn.isForwardRef=function(E){return k(E)===g},yn.isFragment=function(E){return k(E)===t},yn.isLazy=function(E){return k(E)===b},yn.isMemo=function(E){return k(E)===C},yn.isPortal=function(E){return k(E)===r},yn.isProfiler=function(E){return k(E)===l},yn.isStrictMode=function(E){return k(E)===i},yn.isSuspense=function(E){return k(E)===d},yn.isSuspenseList=function(E){return k(E)===m},yn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===t||E===l||E===i||E===d||E===m||E===x||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===C||E.$$typeof===f||E.$$typeof===c||E.$$typeof===g||E.$$typeof===_||E.getModuleId!==void 0)},yn.typeOf=k,yn}var xn={};var T8;function r9(){return T8||(T8=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=!1,k=!1,E=!1,A=!1,T=!1,D;D=Symbol.for("react.module.reference");function R(Ne){return!!(typeof Ne=="string"||typeof Ne=="function"||Ne===t||Ne===l||T||Ne===i||Ne===d||Ne===m||A||Ne===x||_||k||E||typeof Ne=="object"&&Ne!==null&&(Ne.$$typeof===b||Ne.$$typeof===C||Ne.$$typeof===f||Ne.$$typeof===c||Ne.$$typeof===g||Ne.$$typeof===D||Ne.getModuleId!==void 0))}function N(Ne){if(typeof Ne=="object"&&Ne!==null){var dt=Ne.$$typeof;switch(dt){case e:var Xe=Ne.type;switch(Xe){case t:case l:case i:case d:case m:return Xe;default:var Zt=Xe&&Xe.$$typeof;switch(Zt){case p:case c:case g:case b:case C:case f:return Zt;default:return dt}}case r:return dt}}}var z=c,M=f,I=e,Y=g,B=t,P=b,U=C,H=r,V=l,K=i,ee=d,J=m,q=!1,te=!1;function X(Ne){return q||(q=!0),!1}function $(Ne){return te||(te=!0),!1}function ne(Ne){return N(Ne)===c}function oe(Ne){return N(Ne)===f}function ae(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===e}function se(Ne){return N(Ne)===g}function ve(Ne){return N(Ne)===t}function we(Ne){return N(Ne)===b}function ce(Ne){return N(Ne)===C}function ye(Ne){return N(Ne)===r}function De(Ne){return N(Ne)===l}function Pe(Ne){return N(Ne)===i}function ke(Ne){return N(Ne)===d}function ze(Ne){return N(Ne)===m}xn.ContextConsumer=z,xn.ContextProvider=M,xn.Element=I,xn.ForwardRef=Y,xn.Fragment=B,xn.Lazy=P,xn.Memo=U,xn.Portal=H,xn.Profiler=V,xn.StrictMode=K,xn.Suspense=ee,xn.SuspenseList=J,xn.isAsyncMode=X,xn.isConcurrentMode=$,xn.isContextConsumer=ne,xn.isContextProvider=oe,xn.isElement=ae,xn.isForwardRef=se,xn.isFragment=ve,xn.isLazy=we,xn.isMemo=ce,xn.isPortal=ye,xn.isProfiler=De,xn.isStrictMode=Pe,xn.isSuspense=ke,xn.isSuspenseList=ze,xn.isValidElementType=R,xn.typeOf=N}()),xn}(function(e){process.env.NODE_ENV==="production"?e.exports=n9():e.exports=r9()})(ug);var a9=Symbol.for("react.element"),i9=Symbol.for("react.transitional.element"),o9=Symbol.for("react.fragment");function l9(e){return e&&Mr(e)==="object"&&(e.$$typeof===a9||e.$$typeof===i9)&&e.type===o9}const cg={main:"backheader-module_main_cac53",title:"backheader-module_title_33439",sub:"backheader-module_sub_1d015",btn:"backheader-module_btn_ee841"},{Title:s9,Text:u9}=me.Typography,c9=e=>{const{isBack:r=!0,title:t,extra:i,subTitle:l=null,className:f,style:c,titleStyle:p,level:g=2,icon:d,onBack:m}=e,C=FF.useNavigate(),b=()=>typeof l=="string"?Q(u9,{className:cg.sub,children:l}):l,x=()=>{if(m){m==null||m();return}C(-1)};return Be("div",{className:rs(cg.main,f),style:c,children:[Be(me.Space,{children:[r&&Q("div",{onClick:x,className:cg.btn,children:d||Q(y7,{style:{fontSize:24}})}),Be(s9,{level:g,className:cg.title,style:p,children:[t,b()]})]}),i]})};var tu={exports:{}},ai={},Pb={exports:{}},Bb={};var A8;function f9(){return A8||(A8=1,function(e){function r(q,te){var X=q.length;q.push(te);e:for(;0<X;){var $=X-1>>>1,ne=q[$];if(0<l(ne,te))q[$]=te,q[X]=ne,X=$;else break e}}function t(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var te=q[0],X=q.pop();if(X!==te){q[0]=X;e:for(var $=0,ne=q.length,oe=ne>>>1;$<oe;){var ae=2*($+1)-1,se=q[ae],ve=ae+1,we=q[ve];if(0>l(se,X))ve<ne&&0>l(we,se)?(q[$]=we,q[ve]=X,$=ve):(q[$]=se,q[ae]=X,$=ae);else if(ve<ne&&0>l(we,X))q[$]=we,q[ve]=X,$=ve;else break e}}return te}function l(q,te){var X=q.sortIndex-te.sortIndex;return X!==0?X:q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var c=Date,p=c.now();e.unstable_now=function(){return c.now()-p}}var g=[],d=[],m=1,C=null,b=3,x=!1,_=!1,k=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(q){for(var te=t(d);te!==null;){if(te.callback===null)i(d);else if(te.startTime<=q)i(d),te.sortIndex=te.expirationTime,r(g,te);else break;te=t(d)}}function R(q){if(k=!1,D(q),!_)if(t(g)!==null)_=!0,ee(N);else{var te=t(d);te!==null&&J(R,te.startTime-q)}}function N(q,te){_=!1,k&&(k=!1,A(I),I=-1),x=!0;var X=b;try{for(D(te),C=t(g);C!==null&&(!(C.expirationTime>te)||q&&!P());){var $=C.callback;if(typeof $=="function"){C.callback=null,b=C.priorityLevel;var ne=$(C.expirationTime<=te);te=e.unstable_now(),typeof ne=="function"?C.callback=ne:C===t(g)&&i(g),D(te)}else i(g);C=t(g)}if(C!==null)var oe=!0;else{var ae=t(d);ae!==null&&J(R,ae.startTime-te),oe=!1}return oe}finally{C=null,b=X,x=!1}}var z=!1,M=null,I=-1,Y=5,B=-1;function P(){return!(e.unstable_now()-B<Y)}function U(){if(M!==null){var q=e.unstable_now();B=q;var te=!0;try{te=M(!0,q)}finally{te?H():(z=!1,M=null)}}else z=!1}var H;if(typeof T=="function")H=function(){T(U)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,K=V.port2;V.port1.onmessage=U,H=function(){K.postMessage(null)}}else H=function(){E(U,0)};function ee(q){M=q,z||(z=!0,H())}function J(q,te){I=E(function(){q(e.unstable_now())},te)}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(q){q.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,ee(N))},e.unstable_forceFrameRate=function(q){0>q||125<q||(Y=0<q?Math.floor(1e3/q):5)},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return t(g)},e.unstable_next=function(q){switch(b){case 1:case 2:case 3:var te=3;break;default:te=b}var X=b;b=te;try{return q()}finally{b=X}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,te){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var X=b;b=q;try{return te()}finally{b=X}},e.unstable_scheduleCallback=function(q,te,X){var $=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?$+X:$):X=$,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=X+ne,q={id:m++,callback:te,priorityLevel:q,startTime:X,expirationTime:ne,sortIndex:-1},X>$?(q.sortIndex=X,r(d,q),t(g)===null&&q===t(d)&&(k?(A(I),I=-1):k=!0,J(R,X-$))):(q.sortIndex=ne,r(g,q),_||x||(_=!0,ee(N))),q},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(q){var te=b;return function(){var X=b;b=te;try{return q.apply(this,arguments)}finally{b=X}}}}(Bb)),Bb}var Lb={};var O8;function d9(){return O8||(O8=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,t=!1,i=5;function l(qe,at){var ct=qe.length;qe.push(at),p(qe,at,ct)}function f(qe){return qe.length===0?null:qe[0]}function c(qe){if(qe.length===0)return null;var at=qe[0],ct=qe.pop();return ct!==at&&(qe[0]=ct,g(qe,ct,0)),at}function p(qe,at,ct){for(var Ht=ct;Ht>0;){var Nn=Ht-1>>>1,ur=qe[Nn];if(d(ur,at)>0)qe[Nn]=at,qe[Ht]=ur,Ht=Nn;else return}}function g(qe,at,ct){for(var Ht=ct,Nn=qe.length,ur=Nn>>>1;Ht<ur;){var Wn=(Ht+1)*2-1,zr=qe[Wn],_n=Wn+1,na=qe[_n];if(d(zr,at)<0)_n<Nn&&d(na,zr)<0?(qe[Ht]=na,qe[_n]=at,Ht=_n):(qe[Ht]=zr,qe[Wn]=at,Ht=Wn);else if(_n<Nn&&d(na,at)<0)qe[Ht]=na,qe[_n]=at,Ht=_n;else return}}function d(qe,at){var ct=qe.sortIndex-at.sortIndex;return ct!==0?ct:qe.id-at.id}var m=1,C=2,b=3,x=4,_=5;function k(qe,at){}var E=typeof performance=="object"&&typeof performance.now=="function";if(E){var A=performance;e.unstable_now=function(){return A.now()}}else{var T=Date,D=T.now();e.unstable_now=function(){return T.now()-D}}var R=1073741823,N=-1,z=250,M=5e3,I=1e4,Y=R,B=[],P=[],U=1,H=null,V=b,K=!1,ee=!1,J=!1,q=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(qe){for(var at=f(P);at!==null;){if(at.callback===null)c(P);else if(at.startTime<=qe)c(P),at.sortIndex=at.expirationTime,l(B,at);else return;at=f(P)}}function ne(qe){if(J=!1,$(qe),!ee)if(f(B)!==null)ee=!0,Tn(oe);else{var at=f(P);at!==null&&Gt(ne,at.startTime-qe)}}function oe(qe,at){ee=!1,J&&(J=!1,Kn()),K=!0;var ct=V;try{var Ht;if(!t)return ae(qe,at)}finally{H=null,V=ct,K=!1}}function ae(qe,at){var ct=at;for($(ct),H=f(B);H!==null&&!r&&!(H.expirationTime>ct&&(!qe||kn()));){var Ht=H.callback;if(typeof Ht=="function"){H.callback=null,V=H.priorityLevel;var Nn=H.expirationTime<=ct,ur=Ht(Nn);ct=e.unstable_now(),typeof ur=="function"?H.callback=ur:H===f(B)&&c(B),$(ct)}else c(B);H=f(B)}if(H!==null)return!0;var Wn=f(P);return Wn!==null&&Gt(ne,Wn.startTime-ct),!1}function se(qe,at){switch(qe){case m:case C:case b:case x:case _:break;default:qe=b}var ct=V;V=qe;try{return at()}finally{V=ct}}function ve(qe){var at;switch(V){case m:case C:case b:at=b;break;default:at=V;break}var ct=V;V=at;try{return qe()}finally{V=ct}}function we(qe){var at=V;return function(){var ct=V;V=at;try{return qe.apply(this,arguments)}finally{V=ct}}}function ce(qe,at,ct){var Ht=e.unstable_now(),Nn;if(typeof ct=="object"&&ct!==null){var ur=ct.delay;typeof ur=="number"&&ur>0?Nn=Ht+ur:Nn=Ht}else Nn=Ht;var Wn;switch(qe){case m:Wn=N;break;case C:Wn=z;break;case _:Wn=Y;break;case x:Wn=I;break;case b:default:Wn=M;break}var zr=Nn+Wn,_n={id:U++,callback:at,priorityLevel:qe,startTime:Nn,expirationTime:zr,sortIndex:-1};return Nn>Ht?(_n.sortIndex=Nn,l(P,_n),f(B)===null&&_n===f(P)&&(J?Kn():J=!0,Gt(ne,Nn-Ht))):(_n.sortIndex=zr,l(B,_n),!ee&&!K&&(ee=!0,Tn(oe))),_n}function ye(){}function De(){!ee&&!K&&(ee=!0,Tn(oe))}function Pe(){return f(B)}function ke(qe){qe.callback=null}function ze(){return V}var Ne=!1,dt=null,Xe=-1,Zt=i,sn=-1;function kn(){var qe=e.unstable_now()-sn;return!(qe<Zt)}function jn(){}function un(qe){qe<0||qe>125||(qe>0?Zt=Math.floor(1e3/qe):Zt=i)}var It=function(){if(dt!==null){var qe=e.unstable_now();sn=qe;var at=!0,ct=!0;try{ct=dt(at,qe)}finally{ct?on():(Ne=!1,dt=null)}}else Ne=!1},on;if(typeof X=="function")on=function(){X(It)};else if(typeof MessageChannel<"u"){var In=new MessageChannel,Mn=In.port2;In.port1.onmessage=It,on=function(){Mn.postMessage(null)}}else on=function(){q(It,0)};function Tn(qe){dt=qe,Ne||(Ne=!0,on())}function Gt(qe,at){Xe=q(function(){qe(e.unstable_now())},at)}function Kn(){te(Xe),Xe=-1}var ka=jn,Lr=null;e.unstable_IdlePriority=_,e.unstable_ImmediatePriority=m,e.unstable_LowPriority=x,e.unstable_NormalPriority=b,e.unstable_Profiling=Lr,e.unstable_UserBlockingPriority=C,e.unstable_cancelCallback=ke,e.unstable_continueExecution=De,e.unstable_forceFrameRate=un,e.unstable_getCurrentPriorityLevel=ze,e.unstable_getFirstCallbackNode=Pe,e.unstable_next=ve,e.unstable_pauseExecution=ye,e.unstable_requestPaint=ka,e.unstable_runWithPriority=se,e.unstable_scheduleCallback=ce,e.unstable_shouldYield=kn,e.unstable_wrapCallback=we,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Lb)),Lb}var R8;function F8(){return R8||(R8=1,function(e){process.env.NODE_ENV==="production"?e.exports=f9():e.exports=d9()}(Pb)),Pb.exports}var N8;function h9(){if(N8)return ai;N8=1;var e=W,r=F8();function t(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,v=1;v<arguments.length;v++)s+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function f(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(l[o]=s,o=0;o<s.length;o++)i.add(s[o])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},C={};function b(o){return g.call(C,o)?!0:g.call(m,o)?!1:d.test(o)?C[o]=!0:(m[o]=!0,!1)}function x(o,s,v,w){if(v!==null&&v.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return w?!1:v!==null?!v.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function _(o,s,v,w){if(s===null||typeof s>"u"||x(o,s,v,w))return!0;if(w)return!1;if(v!==null)switch(v.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function k(o,s,v,w,O,L,Z){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=w,this.attributeNamespace=O,this.mustUseProperty=v,this.propertyName=o,this.type=s,this.sanitizeURL=L,this.removeEmptyString=Z}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){E[o]=new k(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];E[s]=new k(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){E[o]=new k(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){E[o]=new k(o,2,!1,o,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(o){E[o]=new k(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){E[o]=new k(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){E[o]=new k(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){E[o]=new k(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){E[o]=new k(o,5,!1,o.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function T(o){return o[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(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!1,!1)}),E.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!0,!0)});function D(o,s,v,w){var O=E.hasOwnProperty(s)?E[s]:null;(O!==null?O.type!==0:w||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,v,O,w)&&(v=null),w||O===null?b(s)&&(v===null?o.removeAttribute(s):o.setAttribute(s,""+v)):O.mustUseProperty?o[O.propertyName]=v===null?O.type===3?!1:"":v:(s=O.attributeName,w=O.attributeNamespace,v===null?o.removeAttribute(s):(O=O.type,v=O===3||O===4&&v===!0?"":""+v,w?o.setAttributeNS(w,s,v):o.setAttribute(s,v))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),z=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),P=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),q=Symbol.iterator;function te(o){return o===null||typeof o!="object"?null:(o=q&&o[q]||o["@@iterator"],typeof o=="function"?o:null)}var X=Object.assign,$;function ne(o){if($===void 0)try{throw Error()}catch(v){var s=v.stack.trim().match(/\n( *(at )?)/);$=s&&s[1]||""}return`
70
70
  `+$+o}var oe=!1;function ae(o,s){if(!o||oe)return"";oe=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(Ee){var w=Ee}Reflect.construct(o,[],s)}else{try{s.call()}catch(Ee){w=Ee}o.call(s.prototype)}else{try{throw Error()}catch(Ee){w=Ee}o()}}catch(Ee){if(Ee&&w&&typeof Ee.stack=="string"){for(var O=Ee.stack.split(`
71
71
  `),L=w.stack.split(`
72
- `),X=O.length-1,le=L.length-1;1<=X&&0<=le&&O[X]!==L[le];)le--;for(;1<=X&&0<=le;X--,le--)if(O[X]!==L[le]){if(X!==1||le!==1)do if(X--,le--,0>le||O[X]!==L[le]){var fe=`
73
- `+O[X].replace(" at new "," at ");return o.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",o.displayName)),fe}while(1<=X&&0<=le);break}}}finally{oe=!1,Error.prepareStackTrace=v}return(o=o?o.displayName||o.name:"")?ne(o):""}function se(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=ae(o.type,!1),o;case 11:return o=ae(o.type.render,!1),o;case 1:return o=ae(o.type,!0),o;default:return""}}function ve(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case M:return"Fragment";case z:return"Portal";case Y:return"Profiler";case I:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case P:return(o.displayName||"Context")+".Consumer";case B:return(o._context.displayName||"Context")+".Provider";case U:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case K:return s=o.displayName||null,s!==null?s:ve(o.type)||"Memo";case ee:s=o._payload,o=o._init;try{return ve(o(s))}catch{}}return null}function we(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(s);case 8:return s===I?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ce(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ye(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function De(o){var s=ye(o)?"checked":"value",v=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),w=""+o[s];if(!o.hasOwnProperty(s)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var O=v.get,L=v.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return O.call(this)},set:function(X){w=""+X,L.call(this,X)}}),Object.defineProperty(o,s,{enumerable:v.enumerable}),{getValue:function(){return w},setValue:function(X){w=""+X},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Pe(o){o._valueTracker||(o._valueTracker=De(o))}function ke(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var v=s.getValue(),w="";return o&&(w=ye(o)?o.checked?"true":"false":o.value),o=w,o!==v?(s.setValue(o),!0):!1}function ze(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Ne(o,s){var v=s.checked;return Z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??o._wrapperState.initialChecked})}function dt(o,s){var v=s.defaultValue==null?"":s.defaultValue,w=s.checked!=null?s.checked:s.defaultChecked;v=ce(s.value!=null?s.value:v),o._wrapperState={initialChecked:w,initialValue:v,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Xe(o,s){s=s.checked,s!=null&&D(o,"checked",s,!1)}function Zt(o,s){Xe(o,s);var v=ce(s.value),w=s.type;if(v!=null)w==="number"?(v===0&&o.value===""||o.value!=v)&&(o.value=""+v):o.value!==""+v&&(o.value=""+v);else if(w==="submit"||w==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?kn(o,s.type,v):s.hasOwnProperty("defaultValue")&&kn(o,s.type,ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function sn(o,s,v){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var w=s.type;if(!(w!=="submit"&&w!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,v||s===o.value||(o.value=s),o.defaultValue=s}v=o.name,v!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,v!==""&&(o.name=v)}function kn(o,s,v){(s!=="number"||ze(o.ownerDocument)!==o)&&(v==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+v&&(o.defaultValue=""+v))}var jn=Array.isArray;function un(o,s,v,w){if(o=o.options,s){s={};for(var O=0;O<v.length;O++)s["$"+v[O]]=!0;for(v=0;v<o.length;v++)O=s.hasOwnProperty("$"+o[v].value),o[v].selected!==O&&(o[v].selected=O),O&&w&&(o[v].defaultSelected=!0)}else{for(v=""+ce(v),s=null,O=0;O<o.length;O++){if(o[O].value===v){o[O].selected=!0,w&&(o[O].defaultSelected=!0);return}s!==null||o[O].disabled||(s=o[O])}s!==null&&(s.selected=!0)}}function It(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(t(91));return Z({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function on(o,s){var v=s.value;if(v==null){if(v=s.children,s=s.defaultValue,v!=null){if(s!=null)throw Error(t(92));if(jn(v)){if(1<v.length)throw Error(t(93));v=v[0]}s=v}s==null&&(s=""),v=s}o._wrapperState={initialValue:ce(v)}}function In(o,s){var v=ce(s.value),w=ce(s.defaultValue);v!=null&&(v=""+v,v!==o.value&&(o.value=v),s.defaultValue==null&&o.defaultValue!==v&&(o.defaultValue=v)),w!=null&&(o.defaultValue=""+w)}function Mn(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Tn(o){switch(o){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 Gt(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?Tn(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Kn,ka=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,v,w,O){MSApp.execUnsafeLocalFunction(function(){return o(s,v,w,O)})}:o}(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Kn=Kn||document.createElement("div"),Kn.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Kn.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function Lr(o,s){if(s){var v=o.firstChild;if(v&&v===o.lastChild&&v.nodeType===3){v.nodeValue=s;return}}o.textContent=s}var qe={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},at=["Webkit","ms","Moz","O"];Object.keys(qe).forEach(function(o){at.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),qe[s]=qe[o]})});function ct(o,s,v){return s==null||typeof s=="boolean"||s===""?"":v||typeof s!="number"||s===0||qe.hasOwnProperty(o)&&qe[o]?(""+s).trim():s+"px"}function Ht(o,s){o=o.style;for(var v in s)if(s.hasOwnProperty(v)){var w=v.indexOf("--")===0,O=ct(v,s[v],w);v==="float"&&(v="cssFloat"),w?o.setProperty(v,O):o[v]=O}}var Nn=Z({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 ur(o,s){if(s){if(Nn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(t(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(t(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(t(61))}if(s.style!=null&&typeof s.style!="object")throw Error(t(62))}}function Wn(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 zr=null;function _n(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var na=null,vn=null,mn=null;function yl(o){if(o=ff(o)){if(typeof na!="function")throw Error(t(280));var s=o.stateNode;s&&(s=pt(s),na(o.stateNode,o.type,s))}}function Do(o){vn?mn?mn.push(o):mn=[o]:vn=o}function xl(){if(vn){var o=vn,s=mn;if(mn=vn=null,yl(o),s)for(o=0;o<s.length;o++)yl(s[o])}}function bl(o,s){return o(s)}function gu(){}var ko=!1;function To(o,s,v){if(ko)return o(s,v);ko=!0;try{return bl(o,s,v)}finally{ko=!1,(vn!==null||mn!==null)&&(gu(),xl())}}function Ao(o,s){var v=o.stateNode;if(v===null)return null;var w=pt(v);if(w===null)return null;v=w[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(o=o.type,w=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!w;break e;default:o=!1}if(o)return null;if(v&&typeof v!="function")throw Error(t(231,s,typeof v));return v}var Oo=!1;if(p)try{var Hn={};Object.defineProperty(Hn,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{Oo=!1}function Ur(o,s,v,w,O,L,X,le,fe){var Ee=Array.prototype.slice.call(arguments,3);try{s.apply(v,Ee)}catch(Ie){this.onError(Ie)}}var ra=!1,Ya=null,Cl=!1,ue=null,He={onError:function(o){ra=!0,Ya=o}};function Qe(o,s,v,w,O,L,X,le,fe){ra=!1,Ya=null,Ur.apply(He,arguments)}function mt(o,s,v,w,O,L,X,le,fe){if(Qe.apply(this,arguments),ra){if(ra){var Ee=Ya;ra=!1,Ya=null}else throw Error(t(198));Cl||(Cl=!0,ue=Ee)}}function Rt(o){var s=o,v=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,s.flags&4098&&(v=s.return),o=s.return;while(o)}return s.tag===3?v:null}function Xt(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function Mt(o){if(Rt(o)!==o)throw Error(t(188))}function yt(o){var s=o.alternate;if(!s){if(s=Rt(o),s===null)throw Error(t(188));return s!==o?null:o}for(var v=o,w=s;;){var O=v.return;if(O===null)break;var L=O.alternate;if(L===null){if(w=O.return,w!==null){v=w;continue}break}if(O.child===L.child){for(L=O.child;L;){if(L===v)return Mt(O),o;if(L===w)return Mt(O),s;L=L.sibling}throw Error(t(188))}if(v.return!==w.return)v=O,w=L;else{for(var X=!1,le=O.child;le;){if(le===v){X=!0,v=O,w=L;break}if(le===w){X=!0,w=O,v=L;break}le=le.sibling}if(!X){for(le=L.child;le;){if(le===v){X=!0,v=L,w=O;break}if(le===w){X=!0,w=L,v=O;break}le=le.sibling}if(!X)throw Error(t(189))}}if(v.alternate!==w)throw Error(t(190))}if(v.tag!==3)throw Error(t(188));return v.stateNode.current===v?o:s}function Sr(o){return o=yt(o),o!==null?Vn(o):null}function Vn(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=Vn(o);if(s!==null)return s;o=o.sibling}return null}var $n=r.unstable_scheduleCallback,ha=r.unstable_cancelCallback,wl=r.unstable_shouldYield,Td=r.unstable_requestPaint,tn=r.unstable_now,o_=r.unstable_getCurrentPriorityLevel,Ro=r.unstable_ImmediatePriority,zt=r.unstable_UserBlockingPriority,_l=r.unstable_NormalPriority,Cy=r.unstable_LowPriority,Vp=r.unstable_IdlePriority,Vc=null,Ui=null;function wy(o){if(Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(Vc,o,void 0,(o.current.flags&128)===128)}catch{}}var ci=Math.clz32?Math.clz32:l_,_y=Math.log,Sy=Math.LN2;function l_(o){return o>>>=0,o===0?32:31-(_y(o)/Sy|0)|0}var Ad=64,yu=4194304;function ds(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ji(o,s){var v=o.pendingLanes;if(v===0)return 0;var w=0,O=o.suspendedLanes,L=o.pingedLanes,X=v&268435455;if(X!==0){var le=X&~O;le!==0?w=ds(le):(L&=X,L!==0&&(w=ds(L)))}else X=v&~O,X!==0?w=ds(X):L!==0&&(w=ds(L));if(w===0)return 0;if(s!==0&&s!==w&&!(s&O)&&(O=w&-w,L=s&-s,O>=L||O===16&&(L&4194240)!==0))return s;if(w&4&&(w|=v&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=w;0<s;)v=31-ci(s),O=1<<v,w|=o[v],s&=~O;return w}function $p(o,s){switch(o){case 1:case 2:case 4:return s+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 s+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 Od(o,s){for(var v=o.suspendedLanes,w=o.pingedLanes,O=o.expirationTimes,L=o.pendingLanes;0<L;){var X=31-ci(L),le=1<<X,fe=O[X];fe===-1?(!(le&v)||le&w)&&(O[X]=$p(le,s)):fe<=s&&(o.expiredLanes|=le),L&=~le}}function Yp(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Rd(){var o=Ad;return Ad<<=1,!(Ad&4194240)&&(Ad=64),o}function qp(o){for(var s=[],v=0;31>v;v++)s.push(o);return s}function hs(o,s,v){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-ci(s),o[s]=v}function s_(o,s){var v=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var w=o.eventTimes;for(o=o.expirationTimes;0<v;){var O=31-ci(v),L=1<<O;s[O]=0,w[O]=-1,o[O]=-1,v&=~L}}function $c(o,s){var v=o.entangledLanes|=s;for(o=o.entanglements;v;){var w=31-ci(v),O=1<<w;O&s|o[w]&s&&(o[w]|=s),v&=~O}}var gn=0;function Gp(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var Ey,Fd,An,Dy,Kp,Tt=!1,Yc=[],cr=null,fi=null,di=null,qc=new Map,mr=new Map,Sn=[],u_="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 Ii(o,s){switch(o){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":qc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":mr.delete(s.pointerId)}}function aa(o,s,v,w,O,L){return o===null||o.nativeEvent!==L?(o={blockedOn:s,domEventName:v,eventSystemFlags:w,nativeEvent:L,targetContainers:[O]},s!==null&&(s=ff(s),s!==null&&Fd(s)),o):(o.eventSystemFlags|=w,s=o.targetContainers,O!==null&&s.indexOf(O)===-1&&s.push(O),o)}function Sl(o,s,v,w,O){switch(s){case"focusin":return cr=aa(cr,o,s,v,w,O),!0;case"dragenter":return fi=aa(fi,o,s,v,w,O),!0;case"mouseover":return di=aa(di,o,s,v,w,O),!0;case"pointerover":var L=O.pointerId;return qc.set(L,aa(qc.get(L)||null,o,s,v,w,O)),!0;case"gotpointercapture":return L=O.pointerId,mr.set(L,aa(mr.get(L)||null,o,s,v,w,O)),!0}return!1}function ky(o){var s=pi(o.target);if(s!==null){var v=Rt(s);if(v!==null){if(s=v.tag,s===13){if(s=Xt(v),s!==null){o.blockedOn=s,Kp(o.priority,function(){An(v)});return}}else if(s===3&&v.stateNode.current.memoizedState.isDehydrated){o.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}o.blockedOn=null}function xu(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var v=Pd(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(v===null){v=o.nativeEvent;var w=new v.constructor(v.type,v);zr=w,v.target.dispatchEvent(w),zr=null}else return s=ff(v),s!==null&&Fd(s),o.blockedOn=v,!1;s.shift()}return!0}function Wp(o,s,v){xu(o)&&v.delete(s)}function Ty(){Tt=!1,cr!==null&&xu(cr)&&(cr=null),fi!==null&&xu(fi)&&(fi=null),di!==null&&xu(di)&&(di=null),qc.forEach(Wp),mr.forEach(Wp)}function Gc(o,s){o.blockedOn===s&&(o.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ty)))}function Kc(o){function s(O){return Gc(O,o)}if(0<Yc.length){Gc(Yc[0],o);for(var v=1;v<Yc.length;v++){var w=Yc[v];w.blockedOn===o&&(w.blockedOn=null)}}for(cr!==null&&Gc(cr,o),fi!==null&&Gc(fi,o),di!==null&&Gc(di,o),qc.forEach(s),mr.forEach(s),v=0;v<Sn.length;v++)w=Sn[v],w.blockedOn===o&&(w.blockedOn=null);for(;0<Sn.length&&(v=Sn[0],v.blockedOn===null);)ky(v),v.blockedOn===null&&Sn.shift()}var bu=R.ReactCurrentBatchConfig,ps=!0;function Ay(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=1,Md(o,s,v,w)}finally{gn=O,bu.transition=L}}function Nd(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=4,Md(o,s,v,w)}finally{gn=O,bu.transition=L}}function Md(o,s,v,w){if(ps){var O=Pd(o,s,v,w);if(O===null)Gd(o,s,w,Wc,v),Ii(o,w);else if(Sl(O,o,s,v,w))w.stopPropagation();else if(Ii(o,w),s&4&&-1<u_.indexOf(o)){for(;O!==null;){var L=ff(O);if(L!==null&&Ey(L),L=Pd(o,s,v,w),L===null&&Gd(o,s,w,Wc,v),L===O)break;O=L}O!==null&&w.stopPropagation()}else Gd(o,s,w,null,v)}}var Wc=null;function Pd(o,s,v,w){if(Wc=null,o=_n(w),o=pi(o),o!==null)if(s=Rt(o),s===null)o=null;else if(v=s.tag,v===13){if(o=Xt(s),o!==null)return o;o=null}else if(v===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Wc=o,null}function Qp(o){switch(o){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(o_()){case Ro:return 1;case zt:return 4;case _l:case Cy:return 16;case Vp:return 536870912;default:return 16}default:return 16}}var Fo=null,Qc=null,Zc=null;function Zp(){if(Zc)return Zc;var o,s=Qc,v=s.length,w,O="value"in Fo?Fo.value:Fo.textContent,L=O.length;for(o=0;o<v&&s[o]===O[o];o++);var X=v-o;for(w=1;w<=X&&s[v-w]===O[L-w];w++);return Zc=O.slice(o,1<w?1-w:void 0)}function Cu(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Xc(){return!0}function Oy(){return!1}function qa(o){function s(v,w,O,L,X){this._reactName=v,this._targetInst=O,this.type=w,this.nativeEvent=L,this.target=X,this.currentTarget=null;for(var le in o)o.hasOwnProperty(le)&&(v=o[le],this[le]=v?v(L):L[le]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Xc:Oy,this.isPropagationStopped=Oy,this}return Z(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),s}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bd=qa(El),wu=Z({},El,{view:0,detail:0}),Ry=qa(wu),Ld,Xp,Jc,Er=Z({},wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nv,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Jc&&(Jc&&o.type==="mousemove"?(Ld=o.screenX-Jc.screenX,Xp=o.screenY-Jc.screenY):Xp=Ld=0,Jc=o),Ld)},movementY:function(o){return"movementY"in o?o.movementY:Xp}}),zd=qa(Er),Fy=Z({},Er,{dataTransfer:0}),Ny=qa(Fy),c_=Z({},wu,{relatedTarget:0}),Dl=qa(c_),Jp=Z({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),My=qa(Jp),f_=Z({},El,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),d_=qa(f_),h_=Z({},El,{data:0}),ev=qa(h_),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ly(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=By[o])?!!s[o]:!1}function nv(){return Ly}var No=Z({},wu,{key:function(o){if(o.key){var s=tv[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Cu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Py[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nv,charCode:function(o){return o.type==="keypress"?Cu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),p_=qa(No),rv=Z({},Er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=qa(rv),av=Z({},wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nv}),v_=qa(av),jd=Z({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=qa(jd),Ta=Z({},Er,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Mo=qa(Ta),fr=[9,13,27,32],Hi=p&&"CompositionEvent"in window,vs=null;p&&"documentMode"in document&&(vs=document.documentMode);var Id=p&&"TextEvent"in window&&!vs,Uy=p&&(!Hi||vs&&8<vs&&11>=vs),_u=String.fromCharCode(32),jy=!1;function Iy(o,s){switch(o){case"keyup":return fr.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Su=!1;function m_(o,s){switch(o){case"compositionend":return Hd(s);case"keypress":return s.which!==32?null:(jy=!0,_u);case"textInput":return o=s.data,o===_u&&jy?null:o;default:return null}}function g_(o,s){if(Su)return o==="compositionend"||!Hi&&Iy(o,s)?(o=Zp(),Zc=Qc=Fo=null,Su=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Uy&&s.locale!=="ko"?null:s.data;default:return null}}var Hy={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 Vy(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!Hy[o.type]:s==="textarea"}function $y(o,s,v,w){Do(w),s=sf(s,"onChange"),0<s.length&&(v=new Bd("onChange","change",null,v,w),o.push({event:v,listeners:s}))}var ef=null,Eu=null;function Du(o){qd(o,0)}function ku(o){var s=Au(o);if(ke(s))return o}function Yy(o,s){if(o==="change")return s}var iv=!1;if(p){var ov;if(p){var lv="oninput"in document;if(!lv){var qy=document.createElement("div");qy.setAttribute("oninput","return;"),lv=typeof qy.oninput=="function"}ov=lv}else ov=!1;iv=ov&&(!document.documentMode||9<document.documentMode)}function Gy(){ef&&(ef.detachEvent("onpropertychange",Ky),Eu=ef=null)}function Ky(o){if(o.propertyName==="value"&&ku(Eu)){var s=[];$y(s,Eu,o,_n(o)),To(Du,s)}}function y_(o,s,v){o==="focusin"?(Gy(),ef=s,Eu=v,ef.attachEvent("onpropertychange",Ky)):o==="focusout"&&Gy()}function x_(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ku(Eu)}function b_(o,s){if(o==="click")return ku(s)}function Wy(o,s){if(o==="input"||o==="change")return ku(s)}function C_(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var hi=typeof Object.is=="function"?Object.is:C_;function tf(o,s){if(hi(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var v=Object.keys(o),w=Object.keys(s);if(v.length!==w.length)return!1;for(w=0;w<v.length;w++){var O=v[w];if(!g.call(s,O)||!hi(o[O],s[O]))return!1}return!0}function Qy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Zy(o,s){var v=Qy(o);o=0;for(var w;v;){if(v.nodeType===3){if(w=o+v.textContent.length,o<=s&&w>=s)return{node:v,offset:s-o};o=w}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Qy(v)}}function Xy(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Xy(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Vd(){for(var o=window,s=ze();s instanceof o.HTMLIFrameElement;){try{var v=typeof s.contentWindow.location.href=="string"}catch{v=!1}if(v)o=s.contentWindow;else break;s=ze(o.document)}return s}function Po(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function $d(o){var s=Vd(),v=o.focusedElem,w=o.selectionRange;if(s!==v&&v&&v.ownerDocument&&Xy(v.ownerDocument.documentElement,v)){if(w!==null&&Po(v)){if(s=w.start,o=w.end,o===void 0&&(o=s),"selectionStart"in v)v.selectionStart=s,v.selectionEnd=Math.min(o,v.value.length);else if(o=(s=v.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var O=v.textContent.length,L=Math.min(w.start,O);w=w.end===void 0?L:Math.min(w.end,O),!o.extend&&L>w&&(O=w,w=L,L=O),O=Zy(v,L);var X=Zy(v,w);O&&X&&(o.rangeCount!==1||o.anchorNode!==O.node||o.anchorOffset!==O.offset||o.focusNode!==X.node||o.focusOffset!==X.offset)&&(s=s.createRange(),s.setStart(O.node,O.offset),o.removeAllRanges(),L>w?(o.addRange(s),o.extend(X.node,X.offset)):(s.setEnd(X.node,X.offset),o.addRange(s)))}}for(s=[],o=v;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<s.length;v++)o=s[v],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Jy=p&&"documentMode"in document&&11>=document.documentMode,Vi=null,sv=null,nf=null,uv=!1;function e1(o,s,v){var w=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;uv||Vi==null||Vi!==ze(w)||(w=Vi,"selectionStart"in w&&Po(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),nf&&tf(nf,w)||(nf=w,w=sf(sv,"onSelect"),0<w.length&&(s=new Bd("onSelect","select",null,s,v),o.push({event:s,listeners:w}),s.target=Vi)))}function Yd(o,s){var v={};return v[o.toLowerCase()]=s.toLowerCase(),v["Webkit"+o]="webkit"+s,v["Moz"+o]="moz"+s,v}var ms={animationend:Yd("Animation","AnimationEnd"),animationiteration:Yd("Animation","AnimationIteration"),animationstart:Yd("Animation","AnimationStart"),transitionend:Yd("Transition","TransitionEnd")},cv={},fv={};p&&(fv=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Dr(o){if(cv[o])return cv[o];if(!ms[o])return o;var s=ms[o],v;for(v in s)if(s.hasOwnProperty(v)&&v in fv)return cv[o]=s[v];return o}var dv=Dr("animationend"),t1=Dr("animationiteration"),n1=Dr("animationstart"),r1=Dr("transitionend"),a1=new Map,i1="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 Bo(o,s){a1.set(o,s),f(s,[o])}for(var rf=0;rf<i1.length;rf++){var gs=i1[rf],w_=gs.toLowerCase(),af=gs[0].toUpperCase()+gs.slice(1);Bo(w_,"on"+af)}Bo(dv,"onAnimationEnd"),Bo(t1,"onAnimationIteration"),Bo(n1,"onAnimationStart"),Bo("dblclick","onDoubleClick"),Bo("focusin","onFocus"),Bo("focusout","onBlur"),Bo(r1,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="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(" "),__=new Set("cancel close invalid load scroll toggle".split(" ").concat(of));function o1(o,s,v){var w=o.type||"unknown-event";o.currentTarget=v,mt(w,s,void 0,o),o.currentTarget=null}function qd(o,s){s=(s&4)!==0;for(var v=0;v<o.length;v++){var w=o[v],O=w.event;w=w.listeners;e:{var L=void 0;if(s)for(var X=w.length-1;0<=X;X--){var le=w[X],fe=le.instance,Ee=le.currentTarget;if(le=le.listener,fe!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=fe}else for(X=0;X<w.length;X++){if(le=w[X],fe=le.instance,Ee=le.currentTarget,le=le.listener,fe!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=fe}}}if(Cl)throw o=ue,Cl=!1,ue=null,o}function On(o,s){var v=s[xv];v===void 0&&(v=s[xv]=new Set);var w=o+"__bubble";v.has(w)||(l1(s,o,2,!1),v.add(w))}function kl(o,s,v){var w=0;s&&(w|=4),l1(v,o,w,s)}var Lo="_reactListening"+Math.random().toString(36).slice(2);function Tu(o){if(!o[Lo]){o[Lo]=!0,i.forEach(function(v){v!=="selectionchange"&&(__.has(v)||kl(v,!1,o),kl(v,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Lo]||(s[Lo]=!0,kl("selectionchange",!1,s))}}function l1(o,s,v,w){switch(Qp(s)){case 1:var O=Ay;break;case 4:O=Nd;break;default:O=Md}v=O.bind(null,s,v,o),O=void 0,!Oo||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(O=!0),w?O!==void 0?o.addEventListener(s,v,{capture:!0,passive:O}):o.addEventListener(s,v,!0):O!==void 0?o.addEventListener(s,v,{passive:O}):o.addEventListener(s,v,!1)}function Gd(o,s,v,w,O){var L=w;if(!(s&1)&&!(s&2)&&w!==null)e:for(;;){if(w===null)return;var X=w.tag;if(X===3||X===4){var le=w.stateNode.containerInfo;if(le===O||le.nodeType===8&&le.parentNode===O)break;if(X===4)for(X=w.return;X!==null;){var fe=X.tag;if((fe===3||fe===4)&&(fe=X.stateNode.containerInfo,fe===O||fe.nodeType===8&&fe.parentNode===O))return;X=X.return}for(;le!==null;){if(X=pi(le),X===null)return;if(fe=X.tag,fe===5||fe===6){w=L=X;continue e}le=le.parentNode}}w=w.return}To(function(){var Ee=L,Ie=_n(v),Ve=[];e:{var je=a1.get(o);if(je!==void 0){var Je=Bd,it=o;switch(o){case"keypress":if(Cu(v)===0)break e;case"keydown":case"keyup":Je=p_;break;case"focusin":it="focus",Je=Dl;break;case"focusout":it="blur",Je=Dl;break;case"beforeblur":case"afterblur":Je=Dl;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Je=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Je=Ny;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Je=v_;break;case dv:case t1:case n1:Je=My;break;case r1:Je=zy;break;case"scroll":Je=Ry;break;case"wheel":Je=Mo;break;case"copy":case"cut":case"paste":Je=d_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Je=Ud}var st=(s&4)!==0,or=!st&&o==="scroll",ge=st?je!==null?je+"Capture":null:je;st=[];for(var he=Ee,Ce;he!==null;){Ce=he;var Ye=Ce.stateNode;if(Ce.tag===5&&Ye!==null&&(Ce=Ye,ge!==null&&(Ye=Ao(he,ge),Ye!=null&&st.push(lf(he,Ye,Ce)))),or)break;he=he.return}0<st.length&&(je=new Je(je,it,null,v,Ie),Ve.push({event:je,listeners:st}))}}if(!(s&7)){e:{if(je=o==="mouseover"||o==="pointerover",Je=o==="mouseout"||o==="pointerout",je&&v!==zr&&(it=v.relatedTarget||v.fromElement)&&(pi(it)||it[zo]))break e;if((Je||je)&&(je=Ie.window===Ie?Ie:(je=Ie.ownerDocument)?je.defaultView||je.parentWindow:window,Je?(it=v.relatedTarget||v.toElement,Je=Ee,it=it?pi(it):null,it!==null&&(or=Rt(it),it!==or||it.tag!==5&&it.tag!==6)&&(it=null)):(Je=null,it=Ee),Je!==it)){if(st=zd,Ye="onMouseLeave",ge="onMouseEnter",he="mouse",(o==="pointerout"||o==="pointerover")&&(st=Ud,Ye="onPointerLeave",ge="onPointerEnter",he="pointer"),or=Je==null?je:Au(Je),Ce=it==null?je:Au(it),je=new st(Ye,he+"leave",Je,v,Ie),je.target=or,je.relatedTarget=Ce,Ye=null,pi(Ie)===Ee&&(st=new st(ge,he+"enter",it,v,Ie),st.target=Ce,st.relatedTarget=or,Ye=st),or=Ye,Je&&it)t:{for(st=Je,ge=it,he=0,Ce=st;Ce;Ce=ys(Ce))he++;for(Ce=0,Ye=ge;Ye;Ye=ys(Ye))Ce++;for(;0<he-Ce;)st=ys(st),he--;for(;0<Ce-he;)ge=ys(ge),Ce--;for(;he--;){if(st===ge||ge!==null&&st===ge.alternate)break t;st=ys(st),ge=ys(ge)}st=null}else st=null;Je!==null&&hv(Ve,je,Je,st,!1),it!==null&&or!==null&&hv(Ve,or,it,st,!0)}}e:{if(je=Ee?Au(Ee):window,Je=je.nodeName&&je.nodeName.toLowerCase(),Je==="select"||Je==="input"&&je.type==="file")var ut=Yy;else if(Vy(je))if(iv)ut=Wy;else{ut=x_;var ot=y_}else(Je=je.nodeName)&&Je.toLowerCase()==="input"&&(je.type==="checkbox"||je.type==="radio")&&(ut=b_);if(ut&&(ut=ut(o,Ee))){$y(Ve,ut,v,Ie);break e}ot&&ot(o,je,Ee),o==="focusout"&&(ot=je._wrapperState)&&ot.controlled&&je.type==="number"&&kn(je,"number",je.value)}switch(ot=Ee?Au(Ee):window,o){case"focusin":(Vy(ot)||ot.contentEditable==="true")&&(Vi=ot,sv=Ee,nf=null);break;case"focusout":nf=sv=Vi=null;break;case"mousedown":uv=!0;break;case"contextmenu":case"mouseup":case"dragend":uv=!1,e1(Ve,v,Ie);break;case"selectionchange":if(Jy)break;case"keydown":case"keyup":e1(Ve,v,Ie)}var ht;if(Hi)e:{switch(o){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Su?Iy(o,v)&&(St="onCompositionEnd"):o==="keydown"&&v.keyCode===229&&(St="onCompositionStart");St&&(Uy&&v.locale!=="ko"&&(Su||St!=="onCompositionStart"?St==="onCompositionEnd"&&Su&&(ht=Zp()):(Fo=Ie,Qc="value"in Fo?Fo.value:Fo.textContent,Su=!0)),ot=sf(Ee,St),0<ot.length&&(St=new ev(St,o,null,v,Ie),Ve.push({event:St,listeners:ot}),ht?St.data=ht:(ht=Hd(v),ht!==null&&(St.data=ht)))),(ht=Id?m_(o,v):g_(o,v))&&(Ee=sf(Ee,"onBeforeInput"),0<Ee.length&&(Ie=new ev("onBeforeInput","beforeinput",null,v,Ie),Ve.push({event:Ie,listeners:Ee}),Ie.data=ht))}qd(Ve,s)})}function lf(o,s,v){return{instance:o,listener:s,currentTarget:v}}function sf(o,s){for(var v=s+"Capture",w=[];o!==null;){var O=o,L=O.stateNode;O.tag===5&&L!==null&&(O=L,L=Ao(o,v),L!=null&&w.unshift(lf(o,L,O)),L=Ao(o,s),L!=null&&w.push(lf(o,L,O))),o=o.return}return w}function ys(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function hv(o,s,v,w,O){for(var L=s._reactName,X=[];v!==null&&v!==w;){var le=v,fe=le.alternate,Ee=le.stateNode;if(fe!==null&&fe===w)break;le.tag===5&&Ee!==null&&(le=Ee,O?(fe=Ao(v,L),fe!=null&&X.unshift(lf(v,fe,le))):O||(fe=Ao(v,L),fe!=null&&X.push(lf(v,fe,le)))),v=v.return}X.length!==0&&o.push({event:s,listeners:X})}var pv=/\r\n?/g,S_=/\u0000|\uFFFD/g;function vv(o){return(typeof o=="string"?o:""+o).replace(pv,`
74
- `).replace(S_,"")}function Kd(o,s,v){if(s=vv(s),vv(o)!==s&&v)throw Error(t(425))}function Wd(){}var mv=null,xs=null;function uf(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var bs=typeof setTimeout=="function"?setTimeout:void 0,s1=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(o){return gv.resolve(null).then(o).catch(E_)}:bs;function E_(o){setTimeout(function(){throw o})}function Tl(o,s){var v=s,w=0;do{var O=v.nextSibling;if(o.removeChild(v),O&&O.nodeType===8)if(v=O.data,v==="/$"){if(w===0){o.removeChild(O),Kc(s);return}w--}else v!=="$"&&v!=="$?"&&v!=="$!"||w++;v=O}while(v);Kc(s)}function $i(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function cf(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var v=o.data;if(v==="$"||v==="$!"||v==="$?"){if(s===0)return o;s--}else v==="/$"&&s++}o=o.previousSibling}return null}var Al=Math.random().toString(36).slice(2),io="__reactFiber$"+Al,Cs="__reactProps$"+Al,zo="__reactContainer$"+Al,xv="__reactEvents$"+Al,D_="__reactListeners$"+Al,bv="__reactHandles$"+Al;function pi(o){var s=o[io];if(s)return s;for(var v=o.parentNode;v;){if(s=v[zo]||v[io]){if(v=s.alternate,s.child!==null||v!==null&&v.child!==null)for(o=cf(o);o!==null;){if(v=o[io])return v;o=cf(o)}return s}o=v,v=o.parentNode}return null}function ff(o){return o=o[io]||o[zo],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Au(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(t(33))}function pt(o){return o[Cs]||null}var Ol=[],Pn=-1;function At(o){return{current:o}}function ln(o){0>Pn||(o.current=Ol[Pn],Ol[Pn]=null,Pn--)}function cn(o,s){Pn++,Ol[Pn]=o.current,o.current=s}var oo={},_t=At(oo),tr=At(!1),Aa=oo;function vi(o,s){var v=o.type.contextTypes;if(!v)return oo;var w=o.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===s)return w.__reactInternalMemoizedMaskedChildContext;var O={},L;for(L in v)O[L]=s[L];return w&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=O),O}function Yn(o){return o=o.childContextTypes,o!=null}function mi(){ln(tr),ln(_t)}function Rl(o,s,v){if(_t.current!==oo)throw Error(t(168));cn(_t,s),cn(tr,v)}function df(o,s,v){var w=o.stateNode;if(s=s.childContextTypes,typeof w.getChildContext!="function")return v;w=w.getChildContext();for(var O in w)if(!(O in s))throw Error(t(108,we(o)||"Unknown",O));return Z({},v,w)}function Qd(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||oo,Aa=_t.current,cn(_t,o),cn(tr,tr.current),!0}function u1(o,s,v){var w=o.stateNode;if(!w)throw Error(t(169));v?(o=df(o,s,Aa),w.__reactInternalMemoizedMergedChildContext=o,ln(tr),ln(_t),cn(_t,o)):ln(tr),cn(tr,v)}var Ga=null,kr=!1,hf=!1;function Cv(o){Ga===null?Ga=[o]:Ga.push(o)}function wv(o){kr=!0,Cv(o)}function Oa(){if(!hf&&Ga!==null){hf=!0;var o=0,s=gn;try{var v=Ga;for(gn=1;o<v.length;o++){var w=v[o];do w=w(!0);while(w!==null)}Ga=null,kr=!1}catch(O){throw Ga!==null&&(Ga=Ga.slice(o+1)),$n(Ro,Oa),O}finally{gn=s,hf=!1}}return null}var Fl=[],Ra=0,ws=null,Ou=0,Fa=[],ia=0,gi=null,jr=1,Uo="";function Ka(o,s){Fl[Ra++]=Ou,Fl[Ra++]=ws,ws=o,Ou=s}function _v(o,s,v){Fa[ia++]=jr,Fa[ia++]=Uo,Fa[ia++]=gi,gi=o;var w=jr;o=Uo;var O=32-ci(w)-1;w&=~(1<<O),v+=1;var L=32-ci(s)+O;if(30<L){var X=O-O%5;L=(w&(1<<X)-1).toString(32),w>>=X,O-=X,jr=1<<32-ci(s)+O|v<<O|w,Uo=L+o}else jr=1<<L|v<<O|w,Uo=o}function Zd(o){o.return!==null&&(Ka(o,1),_v(o,1,0))}function Sv(o){for(;o===ws;)ws=Fl[--Ra],Fl[Ra]=null,Ou=Fl[--Ra],Fl[Ra]=null;for(;o===gi;)gi=Fa[--ia],Fa[ia]=null,Uo=Fa[--ia],Fa[ia]=null,jr=Fa[--ia],Fa[ia]=null}var Wa=null,Na=null,Bn=!1,yi=null;function Ev(o,s){var v=Si(5,null,null,0);v.elementType="DELETED",v.stateNode=s,v.return=o,s=o.deletions,s===null?(o.deletions=[v],o.flags|=16):s.push(v)}function c1(o,s){switch(o.tag){case 5:var v=o.type;return s=s.nodeType!==1||v.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,Wa=o,Na=$i(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,Wa=o,Na=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(v=gi!==null?{id:jr,overflow:Uo}:null,o.memoizedState={dehydrated:s,treeContext:v,retryLane:1073741824},v=Si(18,null,null,0),v.stateNode=s,v.return=o,o.child=v,Wa=o,Na=null,!0):!1;default:return!1}}function Xd(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Jd(o){if(Bn){var s=Na;if(s){var v=s;if(!c1(o,s)){if(Xd(o))throw Error(t(418));s=$i(v.nextSibling);var w=Wa;s&&c1(o,s)?Ev(w,v):(o.flags=o.flags&-4097|2,Bn=!1,Wa=o)}}else{if(Xd(o))throw Error(t(418));o.flags=o.flags&-4097|2,Bn=!1,Wa=o}}}function f1(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Wa=o}function e0(o){if(o!==Wa)return!1;if(!Bn)return f1(o),Bn=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!uf(o.type,o.memoizedProps)),s&&(s=Na)){if(Xd(o))throw d1(),Error(t(418));for(;s;)Ev(o,s),s=$i(s.nextSibling)}if(f1(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(t(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var v=o.data;if(v==="/$"){if(s===0){Na=$i(o.nextSibling);break e}s--}else v!=="$"&&v!=="$!"&&v!=="$?"||s++}o=o.nextSibling}Na=null}}else Na=Wa?$i(o.stateNode.nextSibling):null;return!0}function d1(){for(var o=Na;o;)o=$i(o.nextSibling)}function Qn(){Na=Wa=null,Bn=!1}function Dv(o){yi===null?yi=[o]:yi.push(o)}var t0=R.ReactCurrentBatchConfig;function Qa(o,s){if(o&&o.defaultProps){s=Z({},s),o=o.defaultProps;for(var v in o)s[v]===void 0&&(s[v]=o[v]);return s}return s}var lo=At(null),n0=null,Nl=null,kv=null;function Tv(){kv=Nl=n0=null}function Ml(o){var s=lo.current;ln(lo),o._currentValue=s}function Tr(o,s,v){for(;o!==null;){var w=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,w!==null&&(w.childLanes|=s)):w!==null&&(w.childLanes&s)!==s&&(w.childLanes|=s),o===v)break;o=o.return}}function Ke(o,s){n0=o,kv=Nl=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&s&&(dr=!0),o.firstContext=null)}function ir(o){var s=o._currentValue;if(kv!==o)if(o={context:o,memoizedValue:s,next:null},Nl===null){if(n0===null)throw Error(t(308));Nl=o,n0.dependencies={lanes:0,firstContext:o}}else Nl=Nl.next=o;return s}var Ir=null;function Av(o){Ir===null?Ir=[o]:Ir.push(o)}function h1(o,s,v,w){var O=s.interleaved;return O===null?(v.next=v,Av(s)):(v.next=O.next,O.next=v),s.interleaved=v,jo(o,w)}function jo(o,s){o.lanes|=s;var v=o.alternate;for(v!==null&&(v.lanes|=s),v=o,o=o.return;o!==null;)o.childLanes|=s,v=o.alternate,v!==null&&(v.childLanes|=s),v=o,o=o.return;return v.tag===3?v.stateNode:null}var Pl=!1;function Ov(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gr(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Io(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Bl(o,s,v){var w=o.updateQueue;if(w===null)return null;if(w=w.shared,Ut&2){var O=w.pending;return O===null?s.next=s:(s.next=O.next,O.next=s),w.pending=s,jo(o,v)}return O=w.interleaved,O===null?(s.next=s,Av(w)):(s.next=O.next,O.next=s),w.interleaved=s,jo(o,v)}function r0(o,s,v){if(s=s.updateQueue,s!==null&&(s=s.shared,(v&4194240)!==0)){var w=s.lanes;w&=o.pendingLanes,v|=w,s.lanes=v,$c(o,v)}}function Rv(o,s){var v=o.updateQueue,w=o.alternate;if(w!==null&&(w=w.updateQueue,v===w)){var O=null,L=null;if(v=v.firstBaseUpdate,v!==null){do{var X={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};L===null?O=L=X:L=L.next=X,v=v.next}while(v!==null);L===null?O=L=s:L=L.next=s}else O=L=s;v={baseState:w.baseState,firstBaseUpdate:O,lastBaseUpdate:L,shared:w.shared,effects:w.effects},o.updateQueue=v;return}o=v.lastBaseUpdate,o===null?v.firstBaseUpdate=s:o.next=s,v.lastBaseUpdate=s}function Ll(o,s,v,w){var O=o.updateQueue;Pl=!1;var L=O.firstBaseUpdate,X=O.lastBaseUpdate,le=O.shared.pending;if(le!==null){O.shared.pending=null;var fe=le,Ee=fe.next;fe.next=null,X===null?L=Ee:X.next=Ee,X=fe;var Ie=o.alternate;Ie!==null&&(Ie=Ie.updateQueue,le=Ie.lastBaseUpdate,le!==X&&(le===null?Ie.firstBaseUpdate=Ee:le.next=Ee,Ie.lastBaseUpdate=fe))}if(L!==null){var Ve=O.baseState;X=0,Ie=Ee=fe=null,le=L;do{var je=le.lane,Je=le.eventTime;if((w&je)===je){Ie!==null&&(Ie=Ie.next={eventTime:Je,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var it=o,st=le;switch(je=s,Je=v,st.tag){case 1:if(it=st.payload,typeof it=="function"){Ve=it.call(Je,Ve,je);break e}Ve=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=st.payload,je=typeof it=="function"?it.call(Je,Ve,je):it,je==null)break e;Ve=Z({},Ve,je);break e;case 2:Pl=!0}}le.callback!==null&&le.lane!==0&&(o.flags|=64,je=O.effects,je===null?O.effects=[le]:je.push(le))}else Je={eventTime:Je,lane:je,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ie===null?(Ee=Ie=Je,fe=Ve):Ie=Ie.next=Je,X|=je;if(le=le.next,le===null){if(le=O.shared.pending,le===null)break;je=le,le=je.next,je.next=null,O.lastBaseUpdate=je,O.shared.pending=null}}while(1);if(Ie===null&&(fe=Ve),O.baseState=fe,O.firstBaseUpdate=Ee,O.lastBaseUpdate=Ie,s=O.shared.interleaved,s!==null){O=s;do X|=O.lane,O=O.next;while(O!==s)}else L===null&&(O.shared.lanes=0);Yo|=X,o.lanes=X,o.memoizedState=Ve}}function _s(o,s,v){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var w=o[s],O=w.callback;if(O!==null){if(w.callback=null,w=v,typeof O!="function")throw Error(t(191,O));O.call(w)}}}var p1=new e.Component().refs;function Fv(o,s,v,w){s=o.memoizedState,v=v(w,s),v=v==null?s:Z({},s,v),o.memoizedState=v,o.lanes===0&&(o.updateQueue.baseState=v)}var a0={isMounted:function(o){return(o=o._reactInternals)?Rt(o)===o:!1},enqueueSetState:function(o,s,v){o=o._reactInternals;var w=ua(),O=hr(o),L=Io(w,O);L.payload=s,v!=null&&(L.callback=v),s=Bl(o,L,O),s!==null&&(ca(s,o,O,w),r0(s,o,O))},enqueueReplaceState:function(o,s,v){o=o._reactInternals;var w=ua(),O=hr(o),L=Io(w,O);L.tag=1,L.payload=s,v!=null&&(L.callback=v),s=Bl(o,L,O),s!==null&&(ca(s,o,O,w),r0(s,o,O))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var v=ua(),w=hr(o),O=Io(v,w);O.tag=2,s!=null&&(O.callback=s),s=Bl(o,O,w),s!==null&&(ca(s,o,w,v),r0(s,o,w))}};function v1(o,s,v,w,O,L,X){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(w,L,X):s.prototype&&s.prototype.isPureReactComponent?!tf(v,w)||!tf(O,L):!0}function m1(o,s,v){var w=!1,O=oo,L=s.contextType;return typeof L=="object"&&L!==null?L=ir(L):(O=Yn(s)?Aa:_t.current,w=s.contextTypes,L=(w=w!=null)?vi(o,O):oo),s=new s(v,L),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=a0,o.stateNode=s,s._reactInternals=o,w&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=O,o.__reactInternalMemoizedMaskedChildContext=L),s}function g1(o,s,v,w){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(v,w),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(v,w),s.state!==o&&a0.enqueueReplaceState(s,s.state,null)}function i0(o,s,v,w){var O=o.stateNode;O.props=v,O.state=o.memoizedState,O.refs=p1,Ov(o);var L=s.contextType;typeof L=="object"&&L!==null?O.context=ir(L):(L=Yn(s)?Aa:_t.current,O.context=vi(o,L)),O.state=o.memoizedState,L=s.getDerivedStateFromProps,typeof L=="function"&&(Fv(o,s,L,v),O.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(s=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),s!==O.state&&a0.enqueueReplaceState(O,O.state,null),Ll(o,v,O,w),O.state=o.memoizedState),typeof O.componentDidMount=="function"&&(o.flags|=4194308)}function Ru(o,s,v){if(o=v.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(t(309));var w=v.stateNode}if(!w)throw Error(t(147,o));var O=w,L=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===L?s.ref:(s=function(X){var le=O.refs;le===p1&&(le=O.refs={}),X===null?delete le[L]:le[L]=X},s._stringRef=L,s)}if(typeof o!="string")throw Error(t(284));if(!v._owner)throw Error(t(290,o))}return o}function o0(o,s){throw o=Object.prototype.toString.call(s),Error(t(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function y1(o){var s=o._init;return s(o._payload)}function x1(o){function s(ge,he){if(o){var Ce=ge.deletions;Ce===null?(ge.deletions=[he],ge.flags|=16):Ce.push(he)}}function v(ge,he){if(!o)return null;for(;he!==null;)s(ge,he),he=he.sibling;return null}function w(ge,he){for(ge=new Map;he!==null;)he.key!==null?ge.set(he.key,he):ge.set(he.index,he),he=he.sibling;return ge}function O(ge,he){return ge=Yl(ge,he),ge.index=0,ge.sibling=null,ge}function L(ge,he,Ce){return ge.index=Ce,o?(Ce=ge.alternate,Ce!==null?(Ce=Ce.index,Ce<he?(ge.flags|=2,he):Ce):(ge.flags|=2,he)):(ge.flags|=1048576,he)}function X(ge){return o&&ge.alternate===null&&(ge.flags|=2),ge}function le(ge,he,Ce,Ye){return he===null||he.tag!==6?(he=Ff(Ce,ge.mode,Ye),he.return=ge,he):(he=O(he,Ce),he.return=ge,he)}function fe(ge,he,Ce,Ye){var ut=Ce.type;return ut===M?Ie(ge,he,Ce.props.children,Ye,Ce.key):he!==null&&(he.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===ee&&y1(ut)===he.type)?(Ye=O(he,Ce.props),Ye.ref=Ru(ge,he,Ce),Ye.return=ge,Ye):(Ye=z0(Ce.type,Ce.key,Ce.props,null,ge.mode,Ye),Ye.ref=Ru(ge,he,Ce),Ye.return=ge,Ye)}function Ee(ge,he,Ce,Ye){return he===null||he.tag!==4||he.stateNode.containerInfo!==Ce.containerInfo||he.stateNode.implementation!==Ce.implementation?(he=Hs(Ce,ge.mode,Ye),he.return=ge,he):(he=O(he,Ce.children||[]),he.return=ge,he)}function Ie(ge,he,Ce,Ye,ut){return he===null||he.tag!==7?(he=Is(Ce,ge.mode,Ye,ut),he.return=ge,he):(he=O(he,Ce),he.return=ge,he)}function Ve(ge,he,Ce){if(typeof he=="string"&&he!==""||typeof he=="number")return he=Ff(""+he,ge.mode,Ce),he.return=ge,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case N:return Ce=z0(he.type,he.key,he.props,null,ge.mode,Ce),Ce.ref=Ru(ge,null,he),Ce.return=ge,Ce;case z:return he=Hs(he,ge.mode,Ce),he.return=ge,he;case ee:var Ye=he._init;return Ve(ge,Ye(he._payload),Ce)}if(jn(he)||te(he))return he=Is(he,ge.mode,Ce,null),he.return=ge,he;o0(ge,he)}return null}function je(ge,he,Ce,Ye){var ut=he!==null?he.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return ut!==null?null:le(ge,he,""+Ce,Ye);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case N:return Ce.key===ut?fe(ge,he,Ce,Ye):null;case z:return Ce.key===ut?Ee(ge,he,Ce,Ye):null;case ee:return ut=Ce._init,je(ge,he,ut(Ce._payload),Ye)}if(jn(Ce)||te(Ce))return ut!==null?null:Ie(ge,he,Ce,Ye,null);o0(ge,Ce)}return null}function Je(ge,he,Ce,Ye,ut){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number")return ge=ge.get(Ce)||null,le(he,ge,""+Ye,ut);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case N:return ge=ge.get(Ye.key===null?Ce:Ye.key)||null,fe(he,ge,Ye,ut);case z:return ge=ge.get(Ye.key===null?Ce:Ye.key)||null,Ee(he,ge,Ye,ut);case ee:var ot=Ye._init;return Je(ge,he,Ce,ot(Ye._payload),ut)}if(jn(Ye)||te(Ye))return ge=ge.get(Ce)||null,Ie(he,ge,Ye,ut,null);o0(he,Ye)}return null}function it(ge,he,Ce,Ye){for(var ut=null,ot=null,ht=he,St=he=0,Rr=null;ht!==null&&St<Ce.length;St++){ht.index>St?(Rr=ht,ht=null):Rr=ht.sibling;var Jt=je(ge,ht,Ce[St],Ye);if(Jt===null){ht===null&&(ht=Rr);break}o&&ht&&Jt.alternate===null&&s(ge,ht),he=L(Jt,he,St),ot===null?ut=Jt:ot.sibling=Jt,ot=Jt,ht=Rr}if(St===Ce.length)return v(ge,ht),Bn&&Ka(ge,St),ut;if(ht===null){for(;St<Ce.length;St++)ht=Ve(ge,Ce[St],Ye),ht!==null&&(he=L(ht,he,St),ot===null?ut=ht:ot.sibling=ht,ot=ht);return Bn&&Ka(ge,St),ut}for(ht=w(ge,ht);St<Ce.length;St++)Rr=Je(ht,ge,St,Ce[St],Ye),Rr!==null&&(o&&Rr.alternate!==null&&ht.delete(Rr.key===null?St:Rr.key),he=L(Rr,he,St),ot===null?ut=Rr:ot.sibling=Rr,ot=Rr);return o&&ht.forEach(function(ql){return s(ge,ql)}),Bn&&Ka(ge,St),ut}function st(ge,he,Ce,Ye){var ut=te(Ce);if(typeof ut!="function")throw Error(t(150));if(Ce=ut.call(Ce),Ce==null)throw Error(t(151));for(var ot=ut=null,ht=he,St=he=0,Rr=null,Jt=Ce.next();ht!==null&&!Jt.done;St++,Jt=Ce.next()){ht.index>St?(Rr=ht,ht=null):Rr=ht.sibling;var ql=je(ge,ht,Jt.value,Ye);if(ql===null){ht===null&&(ht=Rr);break}o&&ht&&ql.alternate===null&&s(ge,ht),he=L(ql,he,St),ot===null?ut=ql:ot.sibling=ql,ot=ql,ht=Rr}if(Jt.done)return v(ge,ht),Bn&&Ka(ge,St),ut;if(ht===null){for(;!Jt.done;St++,Jt=Ce.next())Jt=Ve(ge,Jt.value,Ye),Jt!==null&&(he=L(Jt,he,St),ot===null?ut=Jt:ot.sibling=Jt,ot=Jt);return Bn&&Ka(ge,St),ut}for(ht=w(ge,ht);!Jt.done;St++,Jt=Ce.next())Jt=Je(ht,ge,St,Jt.value,Ye),Jt!==null&&(o&&Jt.alternate!==null&&ht.delete(Jt.key===null?St:Jt.key),he=L(Jt,he,St),ot===null?ut=Jt:ot.sibling=Jt,ot=Jt);return o&&ht.forEach(function(q_){return s(ge,q_)}),Bn&&Ka(ge,St),ut}function or(ge,he,Ce,Ye){if(typeof Ce=="object"&&Ce!==null&&Ce.type===M&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case N:e:{for(var ut=Ce.key,ot=he;ot!==null;){if(ot.key===ut){if(ut=Ce.type,ut===M){if(ot.tag===7){v(ge,ot.sibling),he=O(ot,Ce.props.children),he.return=ge,ge=he;break e}}else if(ot.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===ee&&y1(ut)===ot.type){v(ge,ot.sibling),he=O(ot,Ce.props),he.ref=Ru(ge,ot,Ce),he.return=ge,ge=he;break e}v(ge,ot);break}else s(ge,ot);ot=ot.sibling}Ce.type===M?(he=Is(Ce.props.children,ge.mode,Ye,Ce.key),he.return=ge,ge=he):(Ye=z0(Ce.type,Ce.key,Ce.props,null,ge.mode,Ye),Ye.ref=Ru(ge,he,Ce),Ye.return=ge,ge=Ye)}return X(ge);case z:e:{for(ot=Ce.key;he!==null;){if(he.key===ot)if(he.tag===4&&he.stateNode.containerInfo===Ce.containerInfo&&he.stateNode.implementation===Ce.implementation){v(ge,he.sibling),he=O(he,Ce.children||[]),he.return=ge,ge=he;break e}else{v(ge,he);break}else s(ge,he);he=he.sibling}he=Hs(Ce,ge.mode,Ye),he.return=ge,ge=he}return X(ge);case ee:return ot=Ce._init,or(ge,he,ot(Ce._payload),Ye)}if(jn(Ce))return it(ge,he,Ce,Ye);if(te(Ce))return st(ge,he,Ce,Ye);o0(ge,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"?(Ce=""+Ce,he!==null&&he.tag===6?(v(ge,he.sibling),he=O(he,Ce),he.return=ge,ge=he):(v(ge,he),he=Ff(Ce,ge.mode,Ye),he.return=ge,ge=he),X(ge)):v(ge,he)}return or}var Fu=x1(!0),b1=x1(!1),pf={},Yi=At(pf),vf=At(pf),Nu=At(pf);function Ss(o){if(o===pf)throw Error(t(174));return o}function Nv(o,s){switch(cn(Nu,s),cn(vf,o),cn(Yi,pf),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Gt(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Gt(s,o)}ln(Yi),cn(Yi,s)}function zl(){ln(Yi),ln(vf),ln(Nu)}function gt(o){Ss(Nu.current);var s=Ss(Yi.current),v=Gt(s,o.type);s!==v&&(cn(vf,o),cn(Yi,v))}function Lt(o){vf.current===o&&(ln(Yi),ln(vf))}var xt=At(0);function Zn(o){for(var s=o;s!==null;){if(s.tag===13){var v=s.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var xi=[];function l0(){for(var o=0;o<xi.length;o++)xi[o]._workInProgressVersionPrimary=null;xi.length=0}var s0=R.ReactCurrentDispatcher,Mv=R.ReactCurrentBatchConfig,Es=0,Ln=null,Oe=null,Vt=null,bt=!1,so=!1,Za=0,Ds=0;function zn(){throw Error(t(321))}function ks(o,s){if(s===null)return!1;for(var v=0;v<s.length&&v<o.length;v++)if(!hi(o[v],s[v]))return!1;return!0}function Ul(o,s,v,w,O,L){if(Es=L,Ln=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,s0.current=o===null||o.memoizedState===null?T_:A_,o=v(w,O),so){L=0;do{if(so=!1,Za=0,25<=L)throw Error(t(301));L+=1,Vt=Oe=null,s.updateQueue=null,s0.current=Bv,o=v(w,O)}while(so)}if(s0.current=S0,s=Oe!==null&&Oe.next!==null,Es=0,Vt=Oe=Ln=null,bt=!1,s)throw Error(t(300));return o}function Ts(){var o=Za!==0;return Za=0,o}function bi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Ln.memoizedState=Vt=o:Vt=Vt.next=o,Vt}function Ma(){if(Oe===null){var o=Ln.alternate;o=o!==null?o.memoizedState:null}else o=Oe.next;var s=Vt===null?Ln.memoizedState:Vt.next;if(s!==null)Vt=s,Oe=o;else{if(o===null)throw Error(t(310));Oe=o,o={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Vt===null?Ln.memoizedState=Vt=o:Vt=Vt.next=o}return Vt}function As(o,s){return typeof s=="function"?s(o):s}function mf(o){var s=Ma(),v=s.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=o;var w=Oe,O=w.baseQueue,L=v.pending;if(L!==null){if(O!==null){var X=O.next;O.next=L.next,L.next=X}w.baseQueue=O=L,v.pending=null}if(O!==null){L=O.next,w=w.baseState;var le=X=null,fe=null,Ee=L;do{var Ie=Ee.lane;if((Es&Ie)===Ie)fe!==null&&(fe=fe.next={lane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),w=Ee.hasEagerState?Ee.eagerState:o(w,Ee.action);else{var Ve={lane:Ie,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};fe===null?(le=fe=Ve,X=w):fe=fe.next=Ve,Ln.lanes|=Ie,Yo|=Ie}Ee=Ee.next}while(Ee!==null&&Ee!==L);fe===null?X=w:fe.next=le,hi(w,s.memoizedState)||(dr=!0),s.memoizedState=w,s.baseState=X,s.baseQueue=fe,v.lastRenderedState=w}if(o=v.interleaved,o!==null){O=o;do L=O.lane,Ln.lanes|=L,Yo|=L,O=O.next;while(O!==o)}else O===null&&(v.lanes=0);return[s.memoizedState,v.dispatch]}function gf(o){var s=Ma(),v=s.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=o;var w=v.dispatch,O=v.pending,L=s.memoizedState;if(O!==null){v.pending=null;var X=O=O.next;do L=o(L,X.action),X=X.next;while(X!==O);hi(L,s.memoizedState)||(dr=!0),s.memoizedState=L,s.baseQueue===null&&(s.baseState=L),v.lastRenderedState=L}return[L,w]}function u0(){}function c0(o,s){var v=Ln,w=Ma(),O=s(),L=!hi(w.memoizedState,O);if(L&&(w.memoizedState=O,dr=!0),w=w.queue,yf(h0.bind(null,v,w,o),[o]),w.getSnapshot!==s||L||Vt!==null&&Vt.memoizedState.tag&1){if(v.flags|=2048,Os(9,d0.bind(null,v,w,O,s),void 0,null),Xn===null)throw Error(t(349));Es&30||f0(v,s,O)}return O}function f0(o,s,v){o.flags|=16384,o={getSnapshot:s,value:v},s=Ln.updateQueue,s===null?(s={lastEffect:null,stores:null},Ln.updateQueue=s,s.stores=[o]):(v=s.stores,v===null?s.stores=[o]:v.push(o))}function d0(o,s,v,w){s.value=v,s.getSnapshot=w,p0(s)&&v0(o)}function h0(o,s,v){return v(function(){p0(s)&&v0(o)})}function p0(o){var s=o.getSnapshot;o=o.value;try{var v=s();return!hi(o,v)}catch{return!0}}function v0(o){var s=jo(o,1);s!==null&&ca(s,o,1,-1)}function m0(o){var s=bi();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:o},s.queue=o,o=o.dispatch=_0.bind(null,Ln,o),[s.memoizedState,o]}function Os(o,s,v,w){return o={tag:o,create:s,destroy:v,deps:w,next:null},s=Ln.updateQueue,s===null?(s={lastEffect:null,stores:null},Ln.updateQueue=s,s.lastEffect=o.next=o):(v=s.lastEffect,v===null?s.lastEffect=o.next=o:(w=v.next,v.next=o,o.next=w,s.lastEffect=o)),o}function g0(){return Ma().memoizedState}function Rs(o,s,v,w){var O=bi();Ln.flags|=o,O.memoizedState=Os(1|s,v,void 0,w===void 0?null:w)}function Ho(o,s,v,w){var O=Ma();w=w===void 0?null:w;var L=void 0;if(Oe!==null){var X=Oe.memoizedState;if(L=X.destroy,w!==null&&ks(w,X.deps)){O.memoizedState=Os(s,v,L,w);return}}Ln.flags|=o,O.memoizedState=Os(1|s,v,L,w)}function y0(o,s){return Rs(8390656,8,o,s)}function yf(o,s){return Ho(2048,8,o,s)}function x0(o,s){return Ho(4,2,o,s)}function b0(o,s){return Ho(4,4,o,s)}function Pv(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Mu(o,s,v){return v=v!=null?v.concat([o]):null,Ho(4,4,Pv.bind(null,s,o),v)}function C0(){}function Pu(o,s){var v=Ma();s=s===void 0?null:s;var w=v.memoizedState;return w!==null&&s!==null&&ks(s,w[1])?w[0]:(v.memoizedState=[o,s],o)}function jl(o,s){var v=Ma();s=s===void 0?null:s;var w=v.memoizedState;return w!==null&&s!==null&&ks(s,w[1])?w[0]:(o=o(),v.memoizedState=[o,s],o)}function Pa(o,s,v){return Es&21?(hi(v,s)||(v=Rd(),Ln.lanes|=v,Yo|=v,o.baseState=!0),s):(o.baseState&&(o.baseState=!1,dr=!0),o.memoizedState=v)}function k_(o,s){var v=gn;gn=v!==0&&4>v?v:4,o(!0);var w=Mv.transition;Mv.transition={};try{o(!1),s()}finally{gn=v,Mv.transition=w}}function Rn(){return Ma().memoizedState}function w0(o,s,v){var w=hr(o);if(v={lane:w,action:v,hasEagerState:!1,eagerState:null,next:null},Bu(o))xf(s,v);else if(v=h1(o,s,v,w),v!==null){var O=ua();ca(v,o,w,O),C1(v,s,w)}}function _0(o,s,v){var w=hr(o),O={lane:w,action:v,hasEagerState:!1,eagerState:null,next:null};if(Bu(o))xf(s,O);else{var L=o.alternate;if(o.lanes===0&&(L===null||L.lanes===0)&&(L=s.lastRenderedReducer,L!==null))try{var X=s.lastRenderedState,le=L(X,v);if(O.hasEagerState=!0,O.eagerState=le,hi(le,X)){var fe=s.interleaved;fe===null?(O.next=O,Av(s)):(O.next=fe.next,fe.next=O),s.interleaved=O;return}}catch{}finally{}v=h1(o,s,O,w),v!==null&&(O=ua(),ca(v,o,w,O),C1(v,s,w))}}function Bu(o){var s=o.alternate;return o===Ln||s!==null&&s===Ln}function xf(o,s){so=bt=!0;var v=o.pending;v===null?s.next=s:(s.next=v.next,v.next=s),o.pending=s}function C1(o,s,v){if(v&4194240){var w=s.lanes;w&=o.pendingLanes,v|=w,s.lanes=v,$c(o,v)}}var S0={readContext:ir,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useInsertionEffect:zn,useLayoutEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useMutableSource:zn,useSyncExternalStore:zn,useId:zn,unstable_isNewReconciler:!1},T_={readContext:ir,useCallback:function(o,s){return bi().memoizedState=[o,s===void 0?null:s],o},useContext:ir,useEffect:y0,useImperativeHandle:function(o,s,v){return v=v!=null?v.concat([o]):null,Rs(4194308,4,Pv.bind(null,s,o),v)},useLayoutEffect:function(o,s){return Rs(4194308,4,o,s)},useInsertionEffect:function(o,s){return Rs(4,2,o,s)},useMemo:function(o,s){var v=bi();return s=s===void 0?null:s,o=o(),v.memoizedState=[o,s],o},useReducer:function(o,s,v){var w=bi();return s=v!==void 0?v(s):s,w.memoizedState=w.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},w.queue=o,o=o.dispatch=w0.bind(null,Ln,o),[w.memoizedState,o]},useRef:function(o){var s=bi();return o={current:o},s.memoizedState=o},useState:m0,useDebugValue:C0,useDeferredValue:function(o){return bi().memoizedState=o},useTransition:function(){var o=m0(!1),s=o[0];return o=k_.bind(null,o[1]),bi().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,v){var w=Ln,O=bi();if(Bn){if(v===void 0)throw Error(t(407));v=v()}else{if(v=s(),Xn===null)throw Error(t(349));Es&30||f0(w,s,v)}O.memoizedState=v;var L={value:v,getSnapshot:s};return O.queue=L,y0(h0.bind(null,w,L,o),[o]),w.flags|=2048,Os(9,d0.bind(null,w,L,v,s),void 0,null),v},useId:function(){var o=bi(),s=Xn.identifierPrefix;if(Bn){var v=Uo,w=jr;v=(w&~(1<<32-ci(w)-1)).toString(32)+v,s=":"+s+"R"+v,v=Za++,0<v&&(s+="H"+v.toString(32)),s+=":"}else v=Ds++,s=":"+s+"r"+v.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},A_={readContext:ir,useCallback:Pu,useContext:ir,useEffect:yf,useImperativeHandle:Mu,useInsertionEffect:x0,useLayoutEffect:b0,useMemo:jl,useReducer:mf,useRef:g0,useState:function(){return mf(As)},useDebugValue:C0,useDeferredValue:function(o){var s=Ma();return Pa(s,Oe.memoizedState,o)},useTransition:function(){var o=mf(As)[0],s=Ma().memoizedState;return[o,s]},useMutableSource:u0,useSyncExternalStore:c0,useId:Rn,unstable_isNewReconciler:!1},Bv={readContext:ir,useCallback:Pu,useContext:ir,useEffect:yf,useImperativeHandle:Mu,useInsertionEffect:x0,useLayoutEffect:b0,useMemo:jl,useReducer:gf,useRef:g0,useState:function(){return gf(As)},useDebugValue:C0,useDeferredValue:function(o){var s=Ma();return Oe===null?s.memoizedState=o:Pa(s,Oe.memoizedState,o)},useTransition:function(){var o=gf(As)[0],s=Ma().memoizedState;return[o,s]},useMutableSource:u0,useSyncExternalStore:c0,useId:Rn,unstable_isNewReconciler:!1};function Lu(o,s){try{var v="",w=s;do v+=se(w),w=w.return;while(w);var O=v}catch(L){O=`
72
+ `),Z=O.length-1,le=L.length-1;1<=Z&&0<=le&&O[Z]!==L[le];)le--;for(;1<=Z&&0<=le;Z--,le--)if(O[Z]!==L[le]){if(Z!==1||le!==1)do if(Z--,le--,0>le||O[Z]!==L[le]){var fe=`
73
+ `+O[Z].replace(" at new "," at ");return o.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",o.displayName)),fe}while(1<=Z&&0<=le);break}}}finally{oe=!1,Error.prepareStackTrace=v}return(o=o?o.displayName||o.name:"")?ne(o):""}function se(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=ae(o.type,!1),o;case 11:return o=ae(o.type.render,!1),o;case 1:return o=ae(o.type,!0),o;default:return""}}function ve(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case M:return"Fragment";case z:return"Portal";case Y:return"Profiler";case I:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case P:return(o.displayName||"Context")+".Consumer";case B:return(o._context.displayName||"Context")+".Provider";case U:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case K:return s=o.displayName||null,s!==null?s:ve(o.type)||"Memo";case ee:s=o._payload,o=o._init;try{return ve(o(s))}catch{}}return null}function we(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(s);case 8:return s===I?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ce(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ye(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function De(o){var s=ye(o)?"checked":"value",v=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),w=""+o[s];if(!o.hasOwnProperty(s)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var O=v.get,L=v.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return O.call(this)},set:function(Z){w=""+Z,L.call(this,Z)}}),Object.defineProperty(o,s,{enumerable:v.enumerable}),{getValue:function(){return w},setValue:function(Z){w=""+Z},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Pe(o){o._valueTracker||(o._valueTracker=De(o))}function ke(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var v=s.getValue(),w="";return o&&(w=ye(o)?o.checked?"true":"false":o.value),o=w,o!==v?(s.setValue(o),!0):!1}function ze(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Ne(o,s){var v=s.checked;return X({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??o._wrapperState.initialChecked})}function dt(o,s){var v=s.defaultValue==null?"":s.defaultValue,w=s.checked!=null?s.checked:s.defaultChecked;v=ce(s.value!=null?s.value:v),o._wrapperState={initialChecked:w,initialValue:v,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Xe(o,s){s=s.checked,s!=null&&D(o,"checked",s,!1)}function Zt(o,s){Xe(o,s);var v=ce(s.value),w=s.type;if(v!=null)w==="number"?(v===0&&o.value===""||o.value!=v)&&(o.value=""+v):o.value!==""+v&&(o.value=""+v);else if(w==="submit"||w==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?kn(o,s.type,v):s.hasOwnProperty("defaultValue")&&kn(o,s.type,ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function sn(o,s,v){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var w=s.type;if(!(w!=="submit"&&w!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,v||s===o.value||(o.value=s),o.defaultValue=s}v=o.name,v!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,v!==""&&(o.name=v)}function kn(o,s,v){(s!=="number"||ze(o.ownerDocument)!==o)&&(v==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+v&&(o.defaultValue=""+v))}var jn=Array.isArray;function un(o,s,v,w){if(o=o.options,s){s={};for(var O=0;O<v.length;O++)s["$"+v[O]]=!0;for(v=0;v<o.length;v++)O=s.hasOwnProperty("$"+o[v].value),o[v].selected!==O&&(o[v].selected=O),O&&w&&(o[v].defaultSelected=!0)}else{for(v=""+ce(v),s=null,O=0;O<o.length;O++){if(o[O].value===v){o[O].selected=!0,w&&(o[O].defaultSelected=!0);return}s!==null||o[O].disabled||(s=o[O])}s!==null&&(s.selected=!0)}}function It(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(t(91));return X({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function on(o,s){var v=s.value;if(v==null){if(v=s.children,s=s.defaultValue,v!=null){if(s!=null)throw Error(t(92));if(jn(v)){if(1<v.length)throw Error(t(93));v=v[0]}s=v}s==null&&(s=""),v=s}o._wrapperState={initialValue:ce(v)}}function In(o,s){var v=ce(s.value),w=ce(s.defaultValue);v!=null&&(v=""+v,v!==o.value&&(o.value=v),s.defaultValue==null&&o.defaultValue!==v&&(o.defaultValue=v)),w!=null&&(o.defaultValue=""+w)}function Mn(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function Tn(o){switch(o){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 Gt(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?Tn(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Kn,ka=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,v,w,O){MSApp.execUnsafeLocalFunction(function(){return o(s,v,w,O)})}:o}(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Kn=Kn||document.createElement("div"),Kn.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Kn.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function Lr(o,s){if(s){var v=o.firstChild;if(v&&v===o.lastChild&&v.nodeType===3){v.nodeValue=s;return}}o.textContent=s}var qe={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},at=["Webkit","ms","Moz","O"];Object.keys(qe).forEach(function(o){at.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),qe[s]=qe[o]})});function ct(o,s,v){return s==null||typeof s=="boolean"||s===""?"":v||typeof s!="number"||s===0||qe.hasOwnProperty(o)&&qe[o]?(""+s).trim():s+"px"}function Ht(o,s){o=o.style;for(var v in s)if(s.hasOwnProperty(v)){var w=v.indexOf("--")===0,O=ct(v,s[v],w);v==="float"&&(v="cssFloat"),w?o.setProperty(v,O):o[v]=O}}var Nn=X({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 ur(o,s){if(s){if(Nn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(t(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(t(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(t(61))}if(s.style!=null&&typeof s.style!="object")throw Error(t(62))}}function Wn(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 zr=null;function _n(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var na=null,vn=null,mn=null;function yl(o){if(o=ff(o)){if(typeof na!="function")throw Error(t(280));var s=o.stateNode;s&&(s=pt(s),na(o.stateNode,o.type,s))}}function Do(o){vn?mn?mn.push(o):mn=[o]:vn=o}function xl(){if(vn){var o=vn,s=mn;if(mn=vn=null,yl(o),s)for(o=0;o<s.length;o++)yl(s[o])}}function bl(o,s){return o(s)}function gu(){}var ko=!1;function To(o,s,v){if(ko)return o(s,v);ko=!0;try{return bl(o,s,v)}finally{ko=!1,(vn!==null||mn!==null)&&(gu(),xl())}}function Ao(o,s){var v=o.stateNode;if(v===null)return null;var w=pt(v);if(w===null)return null;v=w[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(o=o.type,w=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!w;break e;default:o=!1}if(o)return null;if(v&&typeof v!="function")throw Error(t(231,s,typeof v));return v}var Oo=!1;if(p)try{var Hn={};Object.defineProperty(Hn,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{Oo=!1}function Ur(o,s,v,w,O,L,Z,le,fe){var Ee=Array.prototype.slice.call(arguments,3);try{s.apply(v,Ee)}catch(Ie){this.onError(Ie)}}var ra=!1,Ya=null,Cl=!1,ue=null,He={onError:function(o){ra=!0,Ya=o}};function Qe(o,s,v,w,O,L,Z,le,fe){ra=!1,Ya=null,Ur.apply(He,arguments)}function mt(o,s,v,w,O,L,Z,le,fe){if(Qe.apply(this,arguments),ra){if(ra){var Ee=Ya;ra=!1,Ya=null}else throw Error(t(198));Cl||(Cl=!0,ue=Ee)}}function Rt(o){var s=o,v=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,s.flags&4098&&(v=s.return),o=s.return;while(o)}return s.tag===3?v:null}function Xt(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function Mt(o){if(Rt(o)!==o)throw Error(t(188))}function yt(o){var s=o.alternate;if(!s){if(s=Rt(o),s===null)throw Error(t(188));return s!==o?null:o}for(var v=o,w=s;;){var O=v.return;if(O===null)break;var L=O.alternate;if(L===null){if(w=O.return,w!==null){v=w;continue}break}if(O.child===L.child){for(L=O.child;L;){if(L===v)return Mt(O),o;if(L===w)return Mt(O),s;L=L.sibling}throw Error(t(188))}if(v.return!==w.return)v=O,w=L;else{for(var Z=!1,le=O.child;le;){if(le===v){Z=!0,v=O,w=L;break}if(le===w){Z=!0,w=O,v=L;break}le=le.sibling}if(!Z){for(le=L.child;le;){if(le===v){Z=!0,v=L,w=O;break}if(le===w){Z=!0,w=L,v=O;break}le=le.sibling}if(!Z)throw Error(t(189))}}if(v.alternate!==w)throw Error(t(190))}if(v.tag!==3)throw Error(t(188));return v.stateNode.current===v?o:s}function Sr(o){return o=yt(o),o!==null?Vn(o):null}function Vn(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=Vn(o);if(s!==null)return s;o=o.sibling}return null}var $n=r.unstable_scheduleCallback,ha=r.unstable_cancelCallback,wl=r.unstable_shouldYield,Td=r.unstable_requestPaint,tn=r.unstable_now,o_=r.unstable_getCurrentPriorityLevel,Ro=r.unstable_ImmediatePriority,zt=r.unstable_UserBlockingPriority,_l=r.unstable_NormalPriority,Cy=r.unstable_LowPriority,Vp=r.unstable_IdlePriority,Vc=null,Ui=null;function wy(o){if(Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(Vc,o,void 0,(o.current.flags&128)===128)}catch{}}var ci=Math.clz32?Math.clz32:l_,_y=Math.log,Sy=Math.LN2;function l_(o){return o>>>=0,o===0?32:31-(_y(o)/Sy|0)|0}var Ad=64,yu=4194304;function ds(o){switch(o&-o){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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ji(o,s){var v=o.pendingLanes;if(v===0)return 0;var w=0,O=o.suspendedLanes,L=o.pingedLanes,Z=v&268435455;if(Z!==0){var le=Z&~O;le!==0?w=ds(le):(L&=Z,L!==0&&(w=ds(L)))}else Z=v&~O,Z!==0?w=ds(Z):L!==0&&(w=ds(L));if(w===0)return 0;if(s!==0&&s!==w&&!(s&O)&&(O=w&-w,L=s&-s,O>=L||O===16&&(L&4194240)!==0))return s;if(w&4&&(w|=v&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=w;0<s;)v=31-ci(s),O=1<<v,w|=o[v],s&=~O;return w}function $p(o,s){switch(o){case 1:case 2:case 4:return s+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 s+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 Od(o,s){for(var v=o.suspendedLanes,w=o.pingedLanes,O=o.expirationTimes,L=o.pendingLanes;0<L;){var Z=31-ci(L),le=1<<Z,fe=O[Z];fe===-1?(!(le&v)||le&w)&&(O[Z]=$p(le,s)):fe<=s&&(o.expiredLanes|=le),L&=~le}}function Yp(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Rd(){var o=Ad;return Ad<<=1,!(Ad&4194240)&&(Ad=64),o}function qp(o){for(var s=[],v=0;31>v;v++)s.push(o);return s}function hs(o,s,v){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-ci(s),o[s]=v}function s_(o,s){var v=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var w=o.eventTimes;for(o=o.expirationTimes;0<v;){var O=31-ci(v),L=1<<O;s[O]=0,w[O]=-1,o[O]=-1,v&=~L}}function $c(o,s){var v=o.entangledLanes|=s;for(o=o.entanglements;v;){var w=31-ci(v),O=1<<w;O&s|o[w]&s&&(o[w]|=s),v&=~O}}var gn=0;function Gp(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var Ey,Fd,An,Dy,Kp,Tt=!1,Yc=[],cr=null,fi=null,di=null,qc=new Map,mr=new Map,Sn=[],u_="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 Ii(o,s){switch(o){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":qc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":mr.delete(s.pointerId)}}function aa(o,s,v,w,O,L){return o===null||o.nativeEvent!==L?(o={blockedOn:s,domEventName:v,eventSystemFlags:w,nativeEvent:L,targetContainers:[O]},s!==null&&(s=ff(s),s!==null&&Fd(s)),o):(o.eventSystemFlags|=w,s=o.targetContainers,O!==null&&s.indexOf(O)===-1&&s.push(O),o)}function Sl(o,s,v,w,O){switch(s){case"focusin":return cr=aa(cr,o,s,v,w,O),!0;case"dragenter":return fi=aa(fi,o,s,v,w,O),!0;case"mouseover":return di=aa(di,o,s,v,w,O),!0;case"pointerover":var L=O.pointerId;return qc.set(L,aa(qc.get(L)||null,o,s,v,w,O)),!0;case"gotpointercapture":return L=O.pointerId,mr.set(L,aa(mr.get(L)||null,o,s,v,w,O)),!0}return!1}function ky(o){var s=pi(o.target);if(s!==null){var v=Rt(s);if(v!==null){if(s=v.tag,s===13){if(s=Xt(v),s!==null){o.blockedOn=s,Kp(o.priority,function(){An(v)});return}}else if(s===3&&v.stateNode.current.memoizedState.isDehydrated){o.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}o.blockedOn=null}function xu(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var v=Pd(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(v===null){v=o.nativeEvent;var w=new v.constructor(v.type,v);zr=w,v.target.dispatchEvent(w),zr=null}else return s=ff(v),s!==null&&Fd(s),o.blockedOn=v,!1;s.shift()}return!0}function Wp(o,s,v){xu(o)&&v.delete(s)}function Ty(){Tt=!1,cr!==null&&xu(cr)&&(cr=null),fi!==null&&xu(fi)&&(fi=null),di!==null&&xu(di)&&(di=null),qc.forEach(Wp),mr.forEach(Wp)}function Gc(o,s){o.blockedOn===s&&(o.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ty)))}function Kc(o){function s(O){return Gc(O,o)}if(0<Yc.length){Gc(Yc[0],o);for(var v=1;v<Yc.length;v++){var w=Yc[v];w.blockedOn===o&&(w.blockedOn=null)}}for(cr!==null&&Gc(cr,o),fi!==null&&Gc(fi,o),di!==null&&Gc(di,o),qc.forEach(s),mr.forEach(s),v=0;v<Sn.length;v++)w=Sn[v],w.blockedOn===o&&(w.blockedOn=null);for(;0<Sn.length&&(v=Sn[0],v.blockedOn===null);)ky(v),v.blockedOn===null&&Sn.shift()}var bu=R.ReactCurrentBatchConfig,ps=!0;function Ay(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=1,Md(o,s,v,w)}finally{gn=O,bu.transition=L}}function Nd(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=4,Md(o,s,v,w)}finally{gn=O,bu.transition=L}}function Md(o,s,v,w){if(ps){var O=Pd(o,s,v,w);if(O===null)Gd(o,s,w,Wc,v),Ii(o,w);else if(Sl(O,o,s,v,w))w.stopPropagation();else if(Ii(o,w),s&4&&-1<u_.indexOf(o)){for(;O!==null;){var L=ff(O);if(L!==null&&Ey(L),L=Pd(o,s,v,w),L===null&&Gd(o,s,w,Wc,v),L===O)break;O=L}O!==null&&w.stopPropagation()}else Gd(o,s,w,null,v)}}var Wc=null;function Pd(o,s,v,w){if(Wc=null,o=_n(w),o=pi(o),o!==null)if(s=Rt(o),s===null)o=null;else if(v=s.tag,v===13){if(o=Xt(s),o!==null)return o;o=null}else if(v===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Wc=o,null}function Qp(o){switch(o){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(o_()){case Ro:return 1;case zt:return 4;case _l:case Cy:return 16;case Vp:return 536870912;default:return 16}default:return 16}}var Fo=null,Qc=null,Zc=null;function Zp(){if(Zc)return Zc;var o,s=Qc,v=s.length,w,O="value"in Fo?Fo.value:Fo.textContent,L=O.length;for(o=0;o<v&&s[o]===O[o];o++);var Z=v-o;for(w=1;w<=Z&&s[v-w]===O[L-w];w++);return Zc=O.slice(o,1<w?1-w:void 0)}function Cu(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Xc(){return!0}function Oy(){return!1}function qa(o){function s(v,w,O,L,Z){this._reactName=v,this._targetInst=O,this.type=w,this.nativeEvent=L,this.target=Z,this.currentTarget=null;for(var le in o)o.hasOwnProperty(le)&&(v=o[le],this[le]=v?v(L):L[le]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Xc:Oy,this.isPropagationStopped=Oy,this}return X(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),s}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bd=qa(El),wu=X({},El,{view:0,detail:0}),Ry=qa(wu),Ld,Xp,Jc,Er=X({},wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nv,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Jc&&(Jc&&o.type==="mousemove"?(Ld=o.screenX-Jc.screenX,Xp=o.screenY-Jc.screenY):Xp=Ld=0,Jc=o),Ld)},movementY:function(o){return"movementY"in o?o.movementY:Xp}}),zd=qa(Er),Fy=X({},Er,{dataTransfer:0}),Ny=qa(Fy),c_=X({},wu,{relatedTarget:0}),Dl=qa(c_),Jp=X({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),My=qa(Jp),f_=X({},El,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),d_=qa(f_),h_=X({},El,{data:0}),ev=qa(h_),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ly(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=By[o])?!!s[o]:!1}function nv(){return Ly}var No=X({},wu,{key:function(o){if(o.key){var s=tv[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Cu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Py[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nv,charCode:function(o){return o.type==="keypress"?Cu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),p_=qa(No),rv=X({},Er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=qa(rv),av=X({},wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nv}),v_=qa(av),jd=X({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=qa(jd),Ta=X({},Er,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Mo=qa(Ta),fr=[9,13,27,32],Hi=p&&"CompositionEvent"in window,vs=null;p&&"documentMode"in document&&(vs=document.documentMode);var Id=p&&"TextEvent"in window&&!vs,Uy=p&&(!Hi||vs&&8<vs&&11>=vs),_u=String.fromCharCode(32),jy=!1;function Iy(o,s){switch(o){case"keyup":return fr.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Su=!1;function m_(o,s){switch(o){case"compositionend":return Hd(s);case"keypress":return s.which!==32?null:(jy=!0,_u);case"textInput":return o=s.data,o===_u&&jy?null:o;default:return null}}function g_(o,s){if(Su)return o==="compositionend"||!Hi&&Iy(o,s)?(o=Zp(),Zc=Qc=Fo=null,Su=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Uy&&s.locale!=="ko"?null:s.data;default:return null}}var Hy={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 Vy(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!Hy[o.type]:s==="textarea"}function $y(o,s,v,w){Do(w),s=sf(s,"onChange"),0<s.length&&(v=new Bd("onChange","change",null,v,w),o.push({event:v,listeners:s}))}var ef=null,Eu=null;function Du(o){qd(o,0)}function ku(o){var s=Au(o);if(ke(s))return o}function Yy(o,s){if(o==="change")return s}var iv=!1;if(p){var ov;if(p){var lv="oninput"in document;if(!lv){var qy=document.createElement("div");qy.setAttribute("oninput","return;"),lv=typeof qy.oninput=="function"}ov=lv}else ov=!1;iv=ov&&(!document.documentMode||9<document.documentMode)}function Gy(){ef&&(ef.detachEvent("onpropertychange",Ky),Eu=ef=null)}function Ky(o){if(o.propertyName==="value"&&ku(Eu)){var s=[];$y(s,Eu,o,_n(o)),To(Du,s)}}function y_(o,s,v){o==="focusin"?(Gy(),ef=s,Eu=v,ef.attachEvent("onpropertychange",Ky)):o==="focusout"&&Gy()}function x_(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ku(Eu)}function b_(o,s){if(o==="click")return ku(s)}function Wy(o,s){if(o==="input"||o==="change")return ku(s)}function C_(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var hi=typeof Object.is=="function"?Object.is:C_;function tf(o,s){if(hi(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var v=Object.keys(o),w=Object.keys(s);if(v.length!==w.length)return!1;for(w=0;w<v.length;w++){var O=v[w];if(!g.call(s,O)||!hi(o[O],s[O]))return!1}return!0}function Qy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Zy(o,s){var v=Qy(o);o=0;for(var w;v;){if(v.nodeType===3){if(w=o+v.textContent.length,o<=s&&w>=s)return{node:v,offset:s-o};o=w}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Qy(v)}}function Xy(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Xy(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function Vd(){for(var o=window,s=ze();s instanceof o.HTMLIFrameElement;){try{var v=typeof s.contentWindow.location.href=="string"}catch{v=!1}if(v)o=s.contentWindow;else break;s=ze(o.document)}return s}function Po(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function $d(o){var s=Vd(),v=o.focusedElem,w=o.selectionRange;if(s!==v&&v&&v.ownerDocument&&Xy(v.ownerDocument.documentElement,v)){if(w!==null&&Po(v)){if(s=w.start,o=w.end,o===void 0&&(o=s),"selectionStart"in v)v.selectionStart=s,v.selectionEnd=Math.min(o,v.value.length);else if(o=(s=v.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var O=v.textContent.length,L=Math.min(w.start,O);w=w.end===void 0?L:Math.min(w.end,O),!o.extend&&L>w&&(O=w,w=L,L=O),O=Zy(v,L);var Z=Zy(v,w);O&&Z&&(o.rangeCount!==1||o.anchorNode!==O.node||o.anchorOffset!==O.offset||o.focusNode!==Z.node||o.focusOffset!==Z.offset)&&(s=s.createRange(),s.setStart(O.node,O.offset),o.removeAllRanges(),L>w?(o.addRange(s),o.extend(Z.node,Z.offset)):(s.setEnd(Z.node,Z.offset),o.addRange(s)))}}for(s=[],o=v;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<s.length;v++)o=s[v],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Jy=p&&"documentMode"in document&&11>=document.documentMode,Vi=null,sv=null,nf=null,uv=!1;function e1(o,s,v){var w=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;uv||Vi==null||Vi!==ze(w)||(w=Vi,"selectionStart"in w&&Po(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),nf&&tf(nf,w)||(nf=w,w=sf(sv,"onSelect"),0<w.length&&(s=new Bd("onSelect","select",null,s,v),o.push({event:s,listeners:w}),s.target=Vi)))}function Yd(o,s){var v={};return v[o.toLowerCase()]=s.toLowerCase(),v["Webkit"+o]="webkit"+s,v["Moz"+o]="moz"+s,v}var ms={animationend:Yd("Animation","AnimationEnd"),animationiteration:Yd("Animation","AnimationIteration"),animationstart:Yd("Animation","AnimationStart"),transitionend:Yd("Transition","TransitionEnd")},cv={},fv={};p&&(fv=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Dr(o){if(cv[o])return cv[o];if(!ms[o])return o;var s=ms[o],v;for(v in s)if(s.hasOwnProperty(v)&&v in fv)return cv[o]=s[v];return o}var dv=Dr("animationend"),t1=Dr("animationiteration"),n1=Dr("animationstart"),r1=Dr("transitionend"),a1=new Map,i1="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 Bo(o,s){a1.set(o,s),f(s,[o])}for(var rf=0;rf<i1.length;rf++){var gs=i1[rf],w_=gs.toLowerCase(),af=gs[0].toUpperCase()+gs.slice(1);Bo(w_,"on"+af)}Bo(dv,"onAnimationEnd"),Bo(t1,"onAnimationIteration"),Bo(n1,"onAnimationStart"),Bo("dblclick","onDoubleClick"),Bo("focusin","onFocus"),Bo("focusout","onBlur"),Bo(r1,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="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(" "),__=new Set("cancel close invalid load scroll toggle".split(" ").concat(of));function o1(o,s,v){var w=o.type||"unknown-event";o.currentTarget=v,mt(w,s,void 0,o),o.currentTarget=null}function qd(o,s){s=(s&4)!==0;for(var v=0;v<o.length;v++){var w=o[v],O=w.event;w=w.listeners;e:{var L=void 0;if(s)for(var Z=w.length-1;0<=Z;Z--){var le=w[Z],fe=le.instance,Ee=le.currentTarget;if(le=le.listener,fe!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=fe}else for(Z=0;Z<w.length;Z++){if(le=w[Z],fe=le.instance,Ee=le.currentTarget,le=le.listener,fe!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=fe}}}if(Cl)throw o=ue,Cl=!1,ue=null,o}function On(o,s){var v=s[xv];v===void 0&&(v=s[xv]=new Set);var w=o+"__bubble";v.has(w)||(l1(s,o,2,!1),v.add(w))}function kl(o,s,v){var w=0;s&&(w|=4),l1(v,o,w,s)}var Lo="_reactListening"+Math.random().toString(36).slice(2);function Tu(o){if(!o[Lo]){o[Lo]=!0,i.forEach(function(v){v!=="selectionchange"&&(__.has(v)||kl(v,!1,o),kl(v,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Lo]||(s[Lo]=!0,kl("selectionchange",!1,s))}}function l1(o,s,v,w){switch(Qp(s)){case 1:var O=Ay;break;case 4:O=Nd;break;default:O=Md}v=O.bind(null,s,v,o),O=void 0,!Oo||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(O=!0),w?O!==void 0?o.addEventListener(s,v,{capture:!0,passive:O}):o.addEventListener(s,v,!0):O!==void 0?o.addEventListener(s,v,{passive:O}):o.addEventListener(s,v,!1)}function Gd(o,s,v,w,O){var L=w;if(!(s&1)&&!(s&2)&&w!==null)e:for(;;){if(w===null)return;var Z=w.tag;if(Z===3||Z===4){var le=w.stateNode.containerInfo;if(le===O||le.nodeType===8&&le.parentNode===O)break;if(Z===4)for(Z=w.return;Z!==null;){var fe=Z.tag;if((fe===3||fe===4)&&(fe=Z.stateNode.containerInfo,fe===O||fe.nodeType===8&&fe.parentNode===O))return;Z=Z.return}for(;le!==null;){if(Z=pi(le),Z===null)return;if(fe=Z.tag,fe===5||fe===6){w=L=Z;continue e}le=le.parentNode}}w=w.return}To(function(){var Ee=L,Ie=_n(v),Ve=[];e:{var je=a1.get(o);if(je!==void 0){var Je=Bd,it=o;switch(o){case"keypress":if(Cu(v)===0)break e;case"keydown":case"keyup":Je=p_;break;case"focusin":it="focus",Je=Dl;break;case"focusout":it="blur",Je=Dl;break;case"beforeblur":case"afterblur":Je=Dl;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Je=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Je=Ny;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Je=v_;break;case dv:case t1:case n1:Je=My;break;case r1:Je=zy;break;case"scroll":Je=Ry;break;case"wheel":Je=Mo;break;case"copy":case"cut":case"paste":Je=d_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Je=Ud}var st=(s&4)!==0,or=!st&&o==="scroll",ge=st?je!==null?je+"Capture":null:je;st=[];for(var he=Ee,Ce;he!==null;){Ce=he;var Ye=Ce.stateNode;if(Ce.tag===5&&Ye!==null&&(Ce=Ye,ge!==null&&(Ye=Ao(he,ge),Ye!=null&&st.push(lf(he,Ye,Ce)))),or)break;he=he.return}0<st.length&&(je=new Je(je,it,null,v,Ie),Ve.push({event:je,listeners:st}))}}if(!(s&7)){e:{if(je=o==="mouseover"||o==="pointerover",Je=o==="mouseout"||o==="pointerout",je&&v!==zr&&(it=v.relatedTarget||v.fromElement)&&(pi(it)||it[zo]))break e;if((Je||je)&&(je=Ie.window===Ie?Ie:(je=Ie.ownerDocument)?je.defaultView||je.parentWindow:window,Je?(it=v.relatedTarget||v.toElement,Je=Ee,it=it?pi(it):null,it!==null&&(or=Rt(it),it!==or||it.tag!==5&&it.tag!==6)&&(it=null)):(Je=null,it=Ee),Je!==it)){if(st=zd,Ye="onMouseLeave",ge="onMouseEnter",he="mouse",(o==="pointerout"||o==="pointerover")&&(st=Ud,Ye="onPointerLeave",ge="onPointerEnter",he="pointer"),or=Je==null?je:Au(Je),Ce=it==null?je:Au(it),je=new st(Ye,he+"leave",Je,v,Ie),je.target=or,je.relatedTarget=Ce,Ye=null,pi(Ie)===Ee&&(st=new st(ge,he+"enter",it,v,Ie),st.target=Ce,st.relatedTarget=or,Ye=st),or=Ye,Je&&it)t:{for(st=Je,ge=it,he=0,Ce=st;Ce;Ce=ys(Ce))he++;for(Ce=0,Ye=ge;Ye;Ye=ys(Ye))Ce++;for(;0<he-Ce;)st=ys(st),he--;for(;0<Ce-he;)ge=ys(ge),Ce--;for(;he--;){if(st===ge||ge!==null&&st===ge.alternate)break t;st=ys(st),ge=ys(ge)}st=null}else st=null;Je!==null&&hv(Ve,je,Je,st,!1),it!==null&&or!==null&&hv(Ve,or,it,st,!0)}}e:{if(je=Ee?Au(Ee):window,Je=je.nodeName&&je.nodeName.toLowerCase(),Je==="select"||Je==="input"&&je.type==="file")var ut=Yy;else if(Vy(je))if(iv)ut=Wy;else{ut=x_;var ot=y_}else(Je=je.nodeName)&&Je.toLowerCase()==="input"&&(je.type==="checkbox"||je.type==="radio")&&(ut=b_);if(ut&&(ut=ut(o,Ee))){$y(Ve,ut,v,Ie);break e}ot&&ot(o,je,Ee),o==="focusout"&&(ot=je._wrapperState)&&ot.controlled&&je.type==="number"&&kn(je,"number",je.value)}switch(ot=Ee?Au(Ee):window,o){case"focusin":(Vy(ot)||ot.contentEditable==="true")&&(Vi=ot,sv=Ee,nf=null);break;case"focusout":nf=sv=Vi=null;break;case"mousedown":uv=!0;break;case"contextmenu":case"mouseup":case"dragend":uv=!1,e1(Ve,v,Ie);break;case"selectionchange":if(Jy)break;case"keydown":case"keyup":e1(Ve,v,Ie)}var ht;if(Hi)e:{switch(o){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Su?Iy(o,v)&&(St="onCompositionEnd"):o==="keydown"&&v.keyCode===229&&(St="onCompositionStart");St&&(Uy&&v.locale!=="ko"&&(Su||St!=="onCompositionStart"?St==="onCompositionEnd"&&Su&&(ht=Zp()):(Fo=Ie,Qc="value"in Fo?Fo.value:Fo.textContent,Su=!0)),ot=sf(Ee,St),0<ot.length&&(St=new ev(St,o,null,v,Ie),Ve.push({event:St,listeners:ot}),ht?St.data=ht:(ht=Hd(v),ht!==null&&(St.data=ht)))),(ht=Id?m_(o,v):g_(o,v))&&(Ee=sf(Ee,"onBeforeInput"),0<Ee.length&&(Ie=new ev("onBeforeInput","beforeinput",null,v,Ie),Ve.push({event:Ie,listeners:Ee}),Ie.data=ht))}qd(Ve,s)})}function lf(o,s,v){return{instance:o,listener:s,currentTarget:v}}function sf(o,s){for(var v=s+"Capture",w=[];o!==null;){var O=o,L=O.stateNode;O.tag===5&&L!==null&&(O=L,L=Ao(o,v),L!=null&&w.unshift(lf(o,L,O)),L=Ao(o,s),L!=null&&w.push(lf(o,L,O))),o=o.return}return w}function ys(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function hv(o,s,v,w,O){for(var L=s._reactName,Z=[];v!==null&&v!==w;){var le=v,fe=le.alternate,Ee=le.stateNode;if(fe!==null&&fe===w)break;le.tag===5&&Ee!==null&&(le=Ee,O?(fe=Ao(v,L),fe!=null&&Z.unshift(lf(v,fe,le))):O||(fe=Ao(v,L),fe!=null&&Z.push(lf(v,fe,le)))),v=v.return}Z.length!==0&&o.push({event:s,listeners:Z})}var pv=/\r\n?/g,S_=/\u0000|\uFFFD/g;function vv(o){return(typeof o=="string"?o:""+o).replace(pv,`
74
+ `).replace(S_,"")}function Kd(o,s,v){if(s=vv(s),vv(o)!==s&&v)throw Error(t(425))}function Wd(){}var mv=null,xs=null;function uf(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var bs=typeof setTimeout=="function"?setTimeout:void 0,s1=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(o){return gv.resolve(null).then(o).catch(E_)}:bs;function E_(o){setTimeout(function(){throw o})}function Tl(o,s){var v=s,w=0;do{var O=v.nextSibling;if(o.removeChild(v),O&&O.nodeType===8)if(v=O.data,v==="/$"){if(w===0){o.removeChild(O),Kc(s);return}w--}else v!=="$"&&v!=="$?"&&v!=="$!"||w++;v=O}while(v);Kc(s)}function $i(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function cf(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var v=o.data;if(v==="$"||v==="$!"||v==="$?"){if(s===0)return o;s--}else v==="/$"&&s++}o=o.previousSibling}return null}var Al=Math.random().toString(36).slice(2),io="__reactFiber$"+Al,Cs="__reactProps$"+Al,zo="__reactContainer$"+Al,xv="__reactEvents$"+Al,D_="__reactListeners$"+Al,bv="__reactHandles$"+Al;function pi(o){var s=o[io];if(s)return s;for(var v=o.parentNode;v;){if(s=v[zo]||v[io]){if(v=s.alternate,s.child!==null||v!==null&&v.child!==null)for(o=cf(o);o!==null;){if(v=o[io])return v;o=cf(o)}return s}o=v,v=o.parentNode}return null}function ff(o){return o=o[io]||o[zo],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Au(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(t(33))}function pt(o){return o[Cs]||null}var Ol=[],Pn=-1;function At(o){return{current:o}}function ln(o){0>Pn||(o.current=Ol[Pn],Ol[Pn]=null,Pn--)}function cn(o,s){Pn++,Ol[Pn]=o.current,o.current=s}var oo={},_t=At(oo),tr=At(!1),Aa=oo;function vi(o,s){var v=o.type.contextTypes;if(!v)return oo;var w=o.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===s)return w.__reactInternalMemoizedMaskedChildContext;var O={},L;for(L in v)O[L]=s[L];return w&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=O),O}function Yn(o){return o=o.childContextTypes,o!=null}function mi(){ln(tr),ln(_t)}function Rl(o,s,v){if(_t.current!==oo)throw Error(t(168));cn(_t,s),cn(tr,v)}function df(o,s,v){var w=o.stateNode;if(s=s.childContextTypes,typeof w.getChildContext!="function")return v;w=w.getChildContext();for(var O in w)if(!(O in s))throw Error(t(108,we(o)||"Unknown",O));return X({},v,w)}function Qd(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||oo,Aa=_t.current,cn(_t,o),cn(tr,tr.current),!0}function u1(o,s,v){var w=o.stateNode;if(!w)throw Error(t(169));v?(o=df(o,s,Aa),w.__reactInternalMemoizedMergedChildContext=o,ln(tr),ln(_t),cn(_t,o)):ln(tr),cn(tr,v)}var Ga=null,kr=!1,hf=!1;function Cv(o){Ga===null?Ga=[o]:Ga.push(o)}function wv(o){kr=!0,Cv(o)}function Oa(){if(!hf&&Ga!==null){hf=!0;var o=0,s=gn;try{var v=Ga;for(gn=1;o<v.length;o++){var w=v[o];do w=w(!0);while(w!==null)}Ga=null,kr=!1}catch(O){throw Ga!==null&&(Ga=Ga.slice(o+1)),$n(Ro,Oa),O}finally{gn=s,hf=!1}}return null}var Fl=[],Ra=0,ws=null,Ou=0,Fa=[],ia=0,gi=null,jr=1,Uo="";function Ka(o,s){Fl[Ra++]=Ou,Fl[Ra++]=ws,ws=o,Ou=s}function _v(o,s,v){Fa[ia++]=jr,Fa[ia++]=Uo,Fa[ia++]=gi,gi=o;var w=jr;o=Uo;var O=32-ci(w)-1;w&=~(1<<O),v+=1;var L=32-ci(s)+O;if(30<L){var Z=O-O%5;L=(w&(1<<Z)-1).toString(32),w>>=Z,O-=Z,jr=1<<32-ci(s)+O|v<<O|w,Uo=L+o}else jr=1<<L|v<<O|w,Uo=o}function Zd(o){o.return!==null&&(Ka(o,1),_v(o,1,0))}function Sv(o){for(;o===ws;)ws=Fl[--Ra],Fl[Ra]=null,Ou=Fl[--Ra],Fl[Ra]=null;for(;o===gi;)gi=Fa[--ia],Fa[ia]=null,Uo=Fa[--ia],Fa[ia]=null,jr=Fa[--ia],Fa[ia]=null}var Wa=null,Na=null,Bn=!1,yi=null;function Ev(o,s){var v=Si(5,null,null,0);v.elementType="DELETED",v.stateNode=s,v.return=o,s=o.deletions,s===null?(o.deletions=[v],o.flags|=16):s.push(v)}function c1(o,s){switch(o.tag){case 5:var v=o.type;return s=s.nodeType!==1||v.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,Wa=o,Na=$i(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,Wa=o,Na=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(v=gi!==null?{id:jr,overflow:Uo}:null,o.memoizedState={dehydrated:s,treeContext:v,retryLane:1073741824},v=Si(18,null,null,0),v.stateNode=s,v.return=o,o.child=v,Wa=o,Na=null,!0):!1;default:return!1}}function Xd(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Jd(o){if(Bn){var s=Na;if(s){var v=s;if(!c1(o,s)){if(Xd(o))throw Error(t(418));s=$i(v.nextSibling);var w=Wa;s&&c1(o,s)?Ev(w,v):(o.flags=o.flags&-4097|2,Bn=!1,Wa=o)}}else{if(Xd(o))throw Error(t(418));o.flags=o.flags&-4097|2,Bn=!1,Wa=o}}}function f1(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Wa=o}function e0(o){if(o!==Wa)return!1;if(!Bn)return f1(o),Bn=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!uf(o.type,o.memoizedProps)),s&&(s=Na)){if(Xd(o))throw d1(),Error(t(418));for(;s;)Ev(o,s),s=$i(s.nextSibling)}if(f1(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(t(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var v=o.data;if(v==="/$"){if(s===0){Na=$i(o.nextSibling);break e}s--}else v!=="$"&&v!=="$!"&&v!=="$?"||s++}o=o.nextSibling}Na=null}}else Na=Wa?$i(o.stateNode.nextSibling):null;return!0}function d1(){for(var o=Na;o;)o=$i(o.nextSibling)}function Qn(){Na=Wa=null,Bn=!1}function Dv(o){yi===null?yi=[o]:yi.push(o)}var t0=R.ReactCurrentBatchConfig;function Qa(o,s){if(o&&o.defaultProps){s=X({},s),o=o.defaultProps;for(var v in o)s[v]===void 0&&(s[v]=o[v]);return s}return s}var lo=At(null),n0=null,Nl=null,kv=null;function Tv(){kv=Nl=n0=null}function Ml(o){var s=lo.current;ln(lo),o._currentValue=s}function Tr(o,s,v){for(;o!==null;){var w=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,w!==null&&(w.childLanes|=s)):w!==null&&(w.childLanes&s)!==s&&(w.childLanes|=s),o===v)break;o=o.return}}function Ke(o,s){n0=o,kv=Nl=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&s&&(dr=!0),o.firstContext=null)}function ir(o){var s=o._currentValue;if(kv!==o)if(o={context:o,memoizedValue:s,next:null},Nl===null){if(n0===null)throw Error(t(308));Nl=o,n0.dependencies={lanes:0,firstContext:o}}else Nl=Nl.next=o;return s}var Ir=null;function Av(o){Ir===null?Ir=[o]:Ir.push(o)}function h1(o,s,v,w){var O=s.interleaved;return O===null?(v.next=v,Av(s)):(v.next=O.next,O.next=v),s.interleaved=v,jo(o,w)}function jo(o,s){o.lanes|=s;var v=o.alternate;for(v!==null&&(v.lanes|=s),v=o,o=o.return;o!==null;)o.childLanes|=s,v=o.alternate,v!==null&&(v.childLanes|=s),v=o,o=o.return;return v.tag===3?v.stateNode:null}var Pl=!1;function Ov(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gr(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Io(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Bl(o,s,v){var w=o.updateQueue;if(w===null)return null;if(w=w.shared,Ut&2){var O=w.pending;return O===null?s.next=s:(s.next=O.next,O.next=s),w.pending=s,jo(o,v)}return O=w.interleaved,O===null?(s.next=s,Av(w)):(s.next=O.next,O.next=s),w.interleaved=s,jo(o,v)}function r0(o,s,v){if(s=s.updateQueue,s!==null&&(s=s.shared,(v&4194240)!==0)){var w=s.lanes;w&=o.pendingLanes,v|=w,s.lanes=v,$c(o,v)}}function Rv(o,s){var v=o.updateQueue,w=o.alternate;if(w!==null&&(w=w.updateQueue,v===w)){var O=null,L=null;if(v=v.firstBaseUpdate,v!==null){do{var Z={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};L===null?O=L=Z:L=L.next=Z,v=v.next}while(v!==null);L===null?O=L=s:L=L.next=s}else O=L=s;v={baseState:w.baseState,firstBaseUpdate:O,lastBaseUpdate:L,shared:w.shared,effects:w.effects},o.updateQueue=v;return}o=v.lastBaseUpdate,o===null?v.firstBaseUpdate=s:o.next=s,v.lastBaseUpdate=s}function Ll(o,s,v,w){var O=o.updateQueue;Pl=!1;var L=O.firstBaseUpdate,Z=O.lastBaseUpdate,le=O.shared.pending;if(le!==null){O.shared.pending=null;var fe=le,Ee=fe.next;fe.next=null,Z===null?L=Ee:Z.next=Ee,Z=fe;var Ie=o.alternate;Ie!==null&&(Ie=Ie.updateQueue,le=Ie.lastBaseUpdate,le!==Z&&(le===null?Ie.firstBaseUpdate=Ee:le.next=Ee,Ie.lastBaseUpdate=fe))}if(L!==null){var Ve=O.baseState;Z=0,Ie=Ee=fe=null,le=L;do{var je=le.lane,Je=le.eventTime;if((w&je)===je){Ie!==null&&(Ie=Ie.next={eventTime:Je,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var it=o,st=le;switch(je=s,Je=v,st.tag){case 1:if(it=st.payload,typeof it=="function"){Ve=it.call(Je,Ve,je);break e}Ve=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=st.payload,je=typeof it=="function"?it.call(Je,Ve,je):it,je==null)break e;Ve=X({},Ve,je);break e;case 2:Pl=!0}}le.callback!==null&&le.lane!==0&&(o.flags|=64,je=O.effects,je===null?O.effects=[le]:je.push(le))}else Je={eventTime:Je,lane:je,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ie===null?(Ee=Ie=Je,fe=Ve):Ie=Ie.next=Je,Z|=je;if(le=le.next,le===null){if(le=O.shared.pending,le===null)break;je=le,le=je.next,je.next=null,O.lastBaseUpdate=je,O.shared.pending=null}}while(1);if(Ie===null&&(fe=Ve),O.baseState=fe,O.firstBaseUpdate=Ee,O.lastBaseUpdate=Ie,s=O.shared.interleaved,s!==null){O=s;do Z|=O.lane,O=O.next;while(O!==s)}else L===null&&(O.shared.lanes=0);Yo|=Z,o.lanes=Z,o.memoizedState=Ve}}function _s(o,s,v){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var w=o[s],O=w.callback;if(O!==null){if(w.callback=null,w=v,typeof O!="function")throw Error(t(191,O));O.call(w)}}}var p1=new e.Component().refs;function Fv(o,s,v,w){s=o.memoizedState,v=v(w,s),v=v==null?s:X({},s,v),o.memoizedState=v,o.lanes===0&&(o.updateQueue.baseState=v)}var a0={isMounted:function(o){return(o=o._reactInternals)?Rt(o)===o:!1},enqueueSetState:function(o,s,v){o=o._reactInternals;var w=ua(),O=hr(o),L=Io(w,O);L.payload=s,v!=null&&(L.callback=v),s=Bl(o,L,O),s!==null&&(ca(s,o,O,w),r0(s,o,O))},enqueueReplaceState:function(o,s,v){o=o._reactInternals;var w=ua(),O=hr(o),L=Io(w,O);L.tag=1,L.payload=s,v!=null&&(L.callback=v),s=Bl(o,L,O),s!==null&&(ca(s,o,O,w),r0(s,o,O))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var v=ua(),w=hr(o),O=Io(v,w);O.tag=2,s!=null&&(O.callback=s),s=Bl(o,O,w),s!==null&&(ca(s,o,w,v),r0(s,o,w))}};function v1(o,s,v,w,O,L,Z){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(w,L,Z):s.prototype&&s.prototype.isPureReactComponent?!tf(v,w)||!tf(O,L):!0}function m1(o,s,v){var w=!1,O=oo,L=s.contextType;return typeof L=="object"&&L!==null?L=ir(L):(O=Yn(s)?Aa:_t.current,w=s.contextTypes,L=(w=w!=null)?vi(o,O):oo),s=new s(v,L),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=a0,o.stateNode=s,s._reactInternals=o,w&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=O,o.__reactInternalMemoizedMaskedChildContext=L),s}function g1(o,s,v,w){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(v,w),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(v,w),s.state!==o&&a0.enqueueReplaceState(s,s.state,null)}function i0(o,s,v,w){var O=o.stateNode;O.props=v,O.state=o.memoizedState,O.refs=p1,Ov(o);var L=s.contextType;typeof L=="object"&&L!==null?O.context=ir(L):(L=Yn(s)?Aa:_t.current,O.context=vi(o,L)),O.state=o.memoizedState,L=s.getDerivedStateFromProps,typeof L=="function"&&(Fv(o,s,L,v),O.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(s=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),s!==O.state&&a0.enqueueReplaceState(O,O.state,null),Ll(o,v,O,w),O.state=o.memoizedState),typeof O.componentDidMount=="function"&&(o.flags|=4194308)}function Ru(o,s,v){if(o=v.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(t(309));var w=v.stateNode}if(!w)throw Error(t(147,o));var O=w,L=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===L?s.ref:(s=function(Z){var le=O.refs;le===p1&&(le=O.refs={}),Z===null?delete le[L]:le[L]=Z},s._stringRef=L,s)}if(typeof o!="string")throw Error(t(284));if(!v._owner)throw Error(t(290,o))}return o}function o0(o,s){throw o=Object.prototype.toString.call(s),Error(t(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function y1(o){var s=o._init;return s(o._payload)}function x1(o){function s(ge,he){if(o){var Ce=ge.deletions;Ce===null?(ge.deletions=[he],ge.flags|=16):Ce.push(he)}}function v(ge,he){if(!o)return null;for(;he!==null;)s(ge,he),he=he.sibling;return null}function w(ge,he){for(ge=new Map;he!==null;)he.key!==null?ge.set(he.key,he):ge.set(he.index,he),he=he.sibling;return ge}function O(ge,he){return ge=Yl(ge,he),ge.index=0,ge.sibling=null,ge}function L(ge,he,Ce){return ge.index=Ce,o?(Ce=ge.alternate,Ce!==null?(Ce=Ce.index,Ce<he?(ge.flags|=2,he):Ce):(ge.flags|=2,he)):(ge.flags|=1048576,he)}function Z(ge){return o&&ge.alternate===null&&(ge.flags|=2),ge}function le(ge,he,Ce,Ye){return he===null||he.tag!==6?(he=Ff(Ce,ge.mode,Ye),he.return=ge,he):(he=O(he,Ce),he.return=ge,he)}function fe(ge,he,Ce,Ye){var ut=Ce.type;return ut===M?Ie(ge,he,Ce.props.children,Ye,Ce.key):he!==null&&(he.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===ee&&y1(ut)===he.type)?(Ye=O(he,Ce.props),Ye.ref=Ru(ge,he,Ce),Ye.return=ge,Ye):(Ye=z0(Ce.type,Ce.key,Ce.props,null,ge.mode,Ye),Ye.ref=Ru(ge,he,Ce),Ye.return=ge,Ye)}function Ee(ge,he,Ce,Ye){return he===null||he.tag!==4||he.stateNode.containerInfo!==Ce.containerInfo||he.stateNode.implementation!==Ce.implementation?(he=Hs(Ce,ge.mode,Ye),he.return=ge,he):(he=O(he,Ce.children||[]),he.return=ge,he)}function Ie(ge,he,Ce,Ye,ut){return he===null||he.tag!==7?(he=Is(Ce,ge.mode,Ye,ut),he.return=ge,he):(he=O(he,Ce),he.return=ge,he)}function Ve(ge,he,Ce){if(typeof he=="string"&&he!==""||typeof he=="number")return he=Ff(""+he,ge.mode,Ce),he.return=ge,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case N:return Ce=z0(he.type,he.key,he.props,null,ge.mode,Ce),Ce.ref=Ru(ge,null,he),Ce.return=ge,Ce;case z:return he=Hs(he,ge.mode,Ce),he.return=ge,he;case ee:var Ye=he._init;return Ve(ge,Ye(he._payload),Ce)}if(jn(he)||te(he))return he=Is(he,ge.mode,Ce,null),he.return=ge,he;o0(ge,he)}return null}function je(ge,he,Ce,Ye){var ut=he!==null?he.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return ut!==null?null:le(ge,he,""+Ce,Ye);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case N:return Ce.key===ut?fe(ge,he,Ce,Ye):null;case z:return Ce.key===ut?Ee(ge,he,Ce,Ye):null;case ee:return ut=Ce._init,je(ge,he,ut(Ce._payload),Ye)}if(jn(Ce)||te(Ce))return ut!==null?null:Ie(ge,he,Ce,Ye,null);o0(ge,Ce)}return null}function Je(ge,he,Ce,Ye,ut){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number")return ge=ge.get(Ce)||null,le(he,ge,""+Ye,ut);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case N:return ge=ge.get(Ye.key===null?Ce:Ye.key)||null,fe(he,ge,Ye,ut);case z:return ge=ge.get(Ye.key===null?Ce:Ye.key)||null,Ee(he,ge,Ye,ut);case ee:var ot=Ye._init;return Je(ge,he,Ce,ot(Ye._payload),ut)}if(jn(Ye)||te(Ye))return ge=ge.get(Ce)||null,Ie(he,ge,Ye,ut,null);o0(he,Ye)}return null}function it(ge,he,Ce,Ye){for(var ut=null,ot=null,ht=he,St=he=0,Rr=null;ht!==null&&St<Ce.length;St++){ht.index>St?(Rr=ht,ht=null):Rr=ht.sibling;var Jt=je(ge,ht,Ce[St],Ye);if(Jt===null){ht===null&&(ht=Rr);break}o&&ht&&Jt.alternate===null&&s(ge,ht),he=L(Jt,he,St),ot===null?ut=Jt:ot.sibling=Jt,ot=Jt,ht=Rr}if(St===Ce.length)return v(ge,ht),Bn&&Ka(ge,St),ut;if(ht===null){for(;St<Ce.length;St++)ht=Ve(ge,Ce[St],Ye),ht!==null&&(he=L(ht,he,St),ot===null?ut=ht:ot.sibling=ht,ot=ht);return Bn&&Ka(ge,St),ut}for(ht=w(ge,ht);St<Ce.length;St++)Rr=Je(ht,ge,St,Ce[St],Ye),Rr!==null&&(o&&Rr.alternate!==null&&ht.delete(Rr.key===null?St:Rr.key),he=L(Rr,he,St),ot===null?ut=Rr:ot.sibling=Rr,ot=Rr);return o&&ht.forEach(function(ql){return s(ge,ql)}),Bn&&Ka(ge,St),ut}function st(ge,he,Ce,Ye){var ut=te(Ce);if(typeof ut!="function")throw Error(t(150));if(Ce=ut.call(Ce),Ce==null)throw Error(t(151));for(var ot=ut=null,ht=he,St=he=0,Rr=null,Jt=Ce.next();ht!==null&&!Jt.done;St++,Jt=Ce.next()){ht.index>St?(Rr=ht,ht=null):Rr=ht.sibling;var ql=je(ge,ht,Jt.value,Ye);if(ql===null){ht===null&&(ht=Rr);break}o&&ht&&ql.alternate===null&&s(ge,ht),he=L(ql,he,St),ot===null?ut=ql:ot.sibling=ql,ot=ql,ht=Rr}if(Jt.done)return v(ge,ht),Bn&&Ka(ge,St),ut;if(ht===null){for(;!Jt.done;St++,Jt=Ce.next())Jt=Ve(ge,Jt.value,Ye),Jt!==null&&(he=L(Jt,he,St),ot===null?ut=Jt:ot.sibling=Jt,ot=Jt);return Bn&&Ka(ge,St),ut}for(ht=w(ge,ht);!Jt.done;St++,Jt=Ce.next())Jt=Je(ht,ge,St,Jt.value,Ye),Jt!==null&&(o&&Jt.alternate!==null&&ht.delete(Jt.key===null?St:Jt.key),he=L(Jt,he,St),ot===null?ut=Jt:ot.sibling=Jt,ot=Jt);return o&&ht.forEach(function(q_){return s(ge,q_)}),Bn&&Ka(ge,St),ut}function or(ge,he,Ce,Ye){if(typeof Ce=="object"&&Ce!==null&&Ce.type===M&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case N:e:{for(var ut=Ce.key,ot=he;ot!==null;){if(ot.key===ut){if(ut=Ce.type,ut===M){if(ot.tag===7){v(ge,ot.sibling),he=O(ot,Ce.props.children),he.return=ge,ge=he;break e}}else if(ot.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===ee&&y1(ut)===ot.type){v(ge,ot.sibling),he=O(ot,Ce.props),he.ref=Ru(ge,ot,Ce),he.return=ge,ge=he;break e}v(ge,ot);break}else s(ge,ot);ot=ot.sibling}Ce.type===M?(he=Is(Ce.props.children,ge.mode,Ye,Ce.key),he.return=ge,ge=he):(Ye=z0(Ce.type,Ce.key,Ce.props,null,ge.mode,Ye),Ye.ref=Ru(ge,he,Ce),Ye.return=ge,ge=Ye)}return Z(ge);case z:e:{for(ot=Ce.key;he!==null;){if(he.key===ot)if(he.tag===4&&he.stateNode.containerInfo===Ce.containerInfo&&he.stateNode.implementation===Ce.implementation){v(ge,he.sibling),he=O(he,Ce.children||[]),he.return=ge,ge=he;break e}else{v(ge,he);break}else s(ge,he);he=he.sibling}he=Hs(Ce,ge.mode,Ye),he.return=ge,ge=he}return Z(ge);case ee:return ot=Ce._init,or(ge,he,ot(Ce._payload),Ye)}if(jn(Ce))return it(ge,he,Ce,Ye);if(te(Ce))return st(ge,he,Ce,Ye);o0(ge,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"?(Ce=""+Ce,he!==null&&he.tag===6?(v(ge,he.sibling),he=O(he,Ce),he.return=ge,ge=he):(v(ge,he),he=Ff(Ce,ge.mode,Ye),he.return=ge,ge=he),Z(ge)):v(ge,he)}return or}var Fu=x1(!0),b1=x1(!1),pf={},Yi=At(pf),vf=At(pf),Nu=At(pf);function Ss(o){if(o===pf)throw Error(t(174));return o}function Nv(o,s){switch(cn(Nu,s),cn(vf,o),cn(Yi,pf),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Gt(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Gt(s,o)}ln(Yi),cn(Yi,s)}function zl(){ln(Yi),ln(vf),ln(Nu)}function gt(o){Ss(Nu.current);var s=Ss(Yi.current),v=Gt(s,o.type);s!==v&&(cn(vf,o),cn(Yi,v))}function Lt(o){vf.current===o&&(ln(Yi),ln(vf))}var xt=At(0);function Zn(o){for(var s=o;s!==null;){if(s.tag===13){var v=s.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var xi=[];function l0(){for(var o=0;o<xi.length;o++)xi[o]._workInProgressVersionPrimary=null;xi.length=0}var s0=R.ReactCurrentDispatcher,Mv=R.ReactCurrentBatchConfig,Es=0,Ln=null,Oe=null,Vt=null,bt=!1,so=!1,Za=0,Ds=0;function zn(){throw Error(t(321))}function ks(o,s){if(s===null)return!1;for(var v=0;v<s.length&&v<o.length;v++)if(!hi(o[v],s[v]))return!1;return!0}function Ul(o,s,v,w,O,L){if(Es=L,Ln=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,s0.current=o===null||o.memoizedState===null?T_:A_,o=v(w,O),so){L=0;do{if(so=!1,Za=0,25<=L)throw Error(t(301));L+=1,Vt=Oe=null,s.updateQueue=null,s0.current=Bv,o=v(w,O)}while(so)}if(s0.current=S0,s=Oe!==null&&Oe.next!==null,Es=0,Vt=Oe=Ln=null,bt=!1,s)throw Error(t(300));return o}function Ts(){var o=Za!==0;return Za=0,o}function bi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Ln.memoizedState=Vt=o:Vt=Vt.next=o,Vt}function Ma(){if(Oe===null){var o=Ln.alternate;o=o!==null?o.memoizedState:null}else o=Oe.next;var s=Vt===null?Ln.memoizedState:Vt.next;if(s!==null)Vt=s,Oe=o;else{if(o===null)throw Error(t(310));Oe=o,o={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Vt===null?Ln.memoizedState=Vt=o:Vt=Vt.next=o}return Vt}function As(o,s){return typeof s=="function"?s(o):s}function mf(o){var s=Ma(),v=s.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=o;var w=Oe,O=w.baseQueue,L=v.pending;if(L!==null){if(O!==null){var Z=O.next;O.next=L.next,L.next=Z}w.baseQueue=O=L,v.pending=null}if(O!==null){L=O.next,w=w.baseState;var le=Z=null,fe=null,Ee=L;do{var Ie=Ee.lane;if((Es&Ie)===Ie)fe!==null&&(fe=fe.next={lane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),w=Ee.hasEagerState?Ee.eagerState:o(w,Ee.action);else{var Ve={lane:Ie,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};fe===null?(le=fe=Ve,Z=w):fe=fe.next=Ve,Ln.lanes|=Ie,Yo|=Ie}Ee=Ee.next}while(Ee!==null&&Ee!==L);fe===null?Z=w:fe.next=le,hi(w,s.memoizedState)||(dr=!0),s.memoizedState=w,s.baseState=Z,s.baseQueue=fe,v.lastRenderedState=w}if(o=v.interleaved,o!==null){O=o;do L=O.lane,Ln.lanes|=L,Yo|=L,O=O.next;while(O!==o)}else O===null&&(v.lanes=0);return[s.memoizedState,v.dispatch]}function gf(o){var s=Ma(),v=s.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=o;var w=v.dispatch,O=v.pending,L=s.memoizedState;if(O!==null){v.pending=null;var Z=O=O.next;do L=o(L,Z.action),Z=Z.next;while(Z!==O);hi(L,s.memoizedState)||(dr=!0),s.memoizedState=L,s.baseQueue===null&&(s.baseState=L),v.lastRenderedState=L}return[L,w]}function u0(){}function c0(o,s){var v=Ln,w=Ma(),O=s(),L=!hi(w.memoizedState,O);if(L&&(w.memoizedState=O,dr=!0),w=w.queue,yf(h0.bind(null,v,w,o),[o]),w.getSnapshot!==s||L||Vt!==null&&Vt.memoizedState.tag&1){if(v.flags|=2048,Os(9,d0.bind(null,v,w,O,s),void 0,null),Xn===null)throw Error(t(349));Es&30||f0(v,s,O)}return O}function f0(o,s,v){o.flags|=16384,o={getSnapshot:s,value:v},s=Ln.updateQueue,s===null?(s={lastEffect:null,stores:null},Ln.updateQueue=s,s.stores=[o]):(v=s.stores,v===null?s.stores=[o]:v.push(o))}function d0(o,s,v,w){s.value=v,s.getSnapshot=w,p0(s)&&v0(o)}function h0(o,s,v){return v(function(){p0(s)&&v0(o)})}function p0(o){var s=o.getSnapshot;o=o.value;try{var v=s();return!hi(o,v)}catch{return!0}}function v0(o){var s=jo(o,1);s!==null&&ca(s,o,1,-1)}function m0(o){var s=bi();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:o},s.queue=o,o=o.dispatch=_0.bind(null,Ln,o),[s.memoizedState,o]}function Os(o,s,v,w){return o={tag:o,create:s,destroy:v,deps:w,next:null},s=Ln.updateQueue,s===null?(s={lastEffect:null,stores:null},Ln.updateQueue=s,s.lastEffect=o.next=o):(v=s.lastEffect,v===null?s.lastEffect=o.next=o:(w=v.next,v.next=o,o.next=w,s.lastEffect=o)),o}function g0(){return Ma().memoizedState}function Rs(o,s,v,w){var O=bi();Ln.flags|=o,O.memoizedState=Os(1|s,v,void 0,w===void 0?null:w)}function Ho(o,s,v,w){var O=Ma();w=w===void 0?null:w;var L=void 0;if(Oe!==null){var Z=Oe.memoizedState;if(L=Z.destroy,w!==null&&ks(w,Z.deps)){O.memoizedState=Os(s,v,L,w);return}}Ln.flags|=o,O.memoizedState=Os(1|s,v,L,w)}function y0(o,s){return Rs(8390656,8,o,s)}function yf(o,s){return Ho(2048,8,o,s)}function x0(o,s){return Ho(4,2,o,s)}function b0(o,s){return Ho(4,4,o,s)}function Pv(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Mu(o,s,v){return v=v!=null?v.concat([o]):null,Ho(4,4,Pv.bind(null,s,o),v)}function C0(){}function Pu(o,s){var v=Ma();s=s===void 0?null:s;var w=v.memoizedState;return w!==null&&s!==null&&ks(s,w[1])?w[0]:(v.memoizedState=[o,s],o)}function jl(o,s){var v=Ma();s=s===void 0?null:s;var w=v.memoizedState;return w!==null&&s!==null&&ks(s,w[1])?w[0]:(o=o(),v.memoizedState=[o,s],o)}function Pa(o,s,v){return Es&21?(hi(v,s)||(v=Rd(),Ln.lanes|=v,Yo|=v,o.baseState=!0),s):(o.baseState&&(o.baseState=!1,dr=!0),o.memoizedState=v)}function k_(o,s){var v=gn;gn=v!==0&&4>v?v:4,o(!0);var w=Mv.transition;Mv.transition={};try{o(!1),s()}finally{gn=v,Mv.transition=w}}function Rn(){return Ma().memoizedState}function w0(o,s,v){var w=hr(o);if(v={lane:w,action:v,hasEagerState:!1,eagerState:null,next:null},Bu(o))xf(s,v);else if(v=h1(o,s,v,w),v!==null){var O=ua();ca(v,o,w,O),C1(v,s,w)}}function _0(o,s,v){var w=hr(o),O={lane:w,action:v,hasEagerState:!1,eagerState:null,next:null};if(Bu(o))xf(s,O);else{var L=o.alternate;if(o.lanes===0&&(L===null||L.lanes===0)&&(L=s.lastRenderedReducer,L!==null))try{var Z=s.lastRenderedState,le=L(Z,v);if(O.hasEagerState=!0,O.eagerState=le,hi(le,Z)){var fe=s.interleaved;fe===null?(O.next=O,Av(s)):(O.next=fe.next,fe.next=O),s.interleaved=O;return}}catch{}finally{}v=h1(o,s,O,w),v!==null&&(O=ua(),ca(v,o,w,O),C1(v,s,w))}}function Bu(o){var s=o.alternate;return o===Ln||s!==null&&s===Ln}function xf(o,s){so=bt=!0;var v=o.pending;v===null?s.next=s:(s.next=v.next,v.next=s),o.pending=s}function C1(o,s,v){if(v&4194240){var w=s.lanes;w&=o.pendingLanes,v|=w,s.lanes=v,$c(o,v)}}var S0={readContext:ir,useCallback:zn,useContext:zn,useEffect:zn,useImperativeHandle:zn,useInsertionEffect:zn,useLayoutEffect:zn,useMemo:zn,useReducer:zn,useRef:zn,useState:zn,useDebugValue:zn,useDeferredValue:zn,useTransition:zn,useMutableSource:zn,useSyncExternalStore:zn,useId:zn,unstable_isNewReconciler:!1},T_={readContext:ir,useCallback:function(o,s){return bi().memoizedState=[o,s===void 0?null:s],o},useContext:ir,useEffect:y0,useImperativeHandle:function(o,s,v){return v=v!=null?v.concat([o]):null,Rs(4194308,4,Pv.bind(null,s,o),v)},useLayoutEffect:function(o,s){return Rs(4194308,4,o,s)},useInsertionEffect:function(o,s){return Rs(4,2,o,s)},useMemo:function(o,s){var v=bi();return s=s===void 0?null:s,o=o(),v.memoizedState=[o,s],o},useReducer:function(o,s,v){var w=bi();return s=v!==void 0?v(s):s,w.memoizedState=w.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},w.queue=o,o=o.dispatch=w0.bind(null,Ln,o),[w.memoizedState,o]},useRef:function(o){var s=bi();return o={current:o},s.memoizedState=o},useState:m0,useDebugValue:C0,useDeferredValue:function(o){return bi().memoizedState=o},useTransition:function(){var o=m0(!1),s=o[0];return o=k_.bind(null,o[1]),bi().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,v){var w=Ln,O=bi();if(Bn){if(v===void 0)throw Error(t(407));v=v()}else{if(v=s(),Xn===null)throw Error(t(349));Es&30||f0(w,s,v)}O.memoizedState=v;var L={value:v,getSnapshot:s};return O.queue=L,y0(h0.bind(null,w,L,o),[o]),w.flags|=2048,Os(9,d0.bind(null,w,L,v,s),void 0,null),v},useId:function(){var o=bi(),s=Xn.identifierPrefix;if(Bn){var v=Uo,w=jr;v=(w&~(1<<32-ci(w)-1)).toString(32)+v,s=":"+s+"R"+v,v=Za++,0<v&&(s+="H"+v.toString(32)),s+=":"}else v=Ds++,s=":"+s+"r"+v.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},A_={readContext:ir,useCallback:Pu,useContext:ir,useEffect:yf,useImperativeHandle:Mu,useInsertionEffect:x0,useLayoutEffect:b0,useMemo:jl,useReducer:mf,useRef:g0,useState:function(){return mf(As)},useDebugValue:C0,useDeferredValue:function(o){var s=Ma();return Pa(s,Oe.memoizedState,o)},useTransition:function(){var o=mf(As)[0],s=Ma().memoizedState;return[o,s]},useMutableSource:u0,useSyncExternalStore:c0,useId:Rn,unstable_isNewReconciler:!1},Bv={readContext:ir,useCallback:Pu,useContext:ir,useEffect:yf,useImperativeHandle:Mu,useInsertionEffect:x0,useLayoutEffect:b0,useMemo:jl,useReducer:gf,useRef:g0,useState:function(){return gf(As)},useDebugValue:C0,useDeferredValue:function(o){var s=Ma();return Oe===null?s.memoizedState=o:Pa(s,Oe.memoizedState,o)},useTransition:function(){var o=gf(As)[0],s=Ma().memoizedState;return[o,s]},useMutableSource:u0,useSyncExternalStore:c0,useId:Rn,unstable_isNewReconciler:!1};function Lu(o,s){try{var v="",w=s;do v+=se(w),w=w.return;while(w);var O=v}catch(L){O=`
75
75
  Error generating stack: `+L.message+`
76
- `+L.stack}return{value:o,source:s,stack:O,digest:null}}function bf(o,s,v){return{value:o,source:null,stack:v??null,digest:s??null}}function E0(o,s){try{}catch(v){setTimeout(function(){throw v})}}var O_=typeof WeakMap=="function"?WeakMap:Map;function w1(o,s,v){v=Io(-1,v),v.tag=3,v.payload={element:null};var w=s.value;return v.callback=function(){F0||(F0=!0,Bs=w),E0(o,s)},v}function Cf(o,s,v){v=Io(-1,v),v.tag=3;var w=o.type.getDerivedStateFromError;if(typeof w=="function"){var O=s.value;v.payload=function(){return w(O)},v.callback=function(){E0(o,s)}}var L=o.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(v.callback=function(){E0(o,s),typeof w!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var X=s.stack;this.componentDidCatch(s.value,{componentStack:X!==null?X:""})}),v}function _1(o,s,v){var w=o.pingCache;if(w===null){w=o.pingCache=new O_;var O=new Set;w.set(s,O)}else O=w.get(s),O===void 0&&(O=new Set,w.set(s,O));O.has(v)||(O.add(v),o=L_.bind(null,o,s,v),s.then(o,o))}function Lv(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function zv(o,s,v,w,O){return o.mode&1?(o.flags|=65536,o.lanes=O,o):(o===s?o.flags|=65536:(o.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(s=Io(-1,1),s.tag=2,Bl(v,s,1))),v.lanes|=1),o)}var R_=R.ReactCurrentOwner,dr=!1;function yr(o,s,v,w){s.child=o===null?b1(s,null,v,w):Fu(s,o.child,v,w)}function Il(o,s,v,w,O){v=v.render;var L=s.ref;return Ke(s,O),w=Ul(o,s,v,w,L,O),v=Ts(),o!==null&&!dr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Hr(o,s,O)):(Bn&&v&&Zd(s),s.flags|=1,yr(o,s,w,O),s.child)}function D0(o,s,v,w,O){if(o===null){var L=v.type;return typeof L=="function"&&!rm(L)&&L.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(s.tag=15,s.type=L,Ba(o,s,L,w,O)):(o=z0(v.type,null,w,s,s.mode,O),o.ref=s.ref,o.return=s,s.child=o)}if(L=o.child,!(o.lanes&O)){var X=L.memoizedProps;if(v=v.compare,v=v!==null?v:tf,v(X,w)&&o.ref===s.ref)return Hr(o,s,O)}return s.flags|=1,o=Yl(L,w),o.ref=s.ref,o.return=s,s.child=o}function Ba(o,s,v,w,O){if(o!==null){var L=o.memoizedProps;if(tf(L,w)&&o.ref===s.ref)if(dr=!1,s.pendingProps=w=L,(o.lanes&O)!==0)o.flags&131072&&(dr=!0);else return s.lanes=o.lanes,Hr(o,s,O)}return zu(o,s,v,w,O)}function Fs(o,s,v){var w=s.pendingProps,O=w.children,L=o!==null?o.memoizedState:null;if(w.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},cn($u,Xa),Xa|=v;else{if(!(v&1073741824))return o=L!==null?L.baseLanes|v:v,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,cn($u,Xa),Xa|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=L!==null?L.baseLanes:v,cn($u,Xa),Xa|=w}else L!==null?(w=L.baseLanes|v,s.memoizedState=null):w=v,cn($u,Xa),Xa|=w;return yr(o,s,O,v),s.child}function Ot(o,s){var v=s.ref;(o===null&&v!==null||o!==null&&o.ref!==v)&&(s.flags|=512,s.flags|=2097152)}function zu(o,s,v,w,O){var L=Yn(v)?Aa:_t.current;return L=vi(s,L),Ke(s,O),v=Ul(o,s,v,w,L,O),w=Ts(),o!==null&&!dr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Hr(o,s,O)):(Bn&&w&&Zd(s),s.flags|=1,yr(o,s,v,O),s.child)}function Uv(o,s,v,w,O){if(Yn(v)){var L=!0;Qd(s)}else L=!1;if(Ke(s,O),s.stateNode===null)oa(o,s),m1(s,v,w),i0(s,v,w,O),w=!0;else if(o===null){var X=s.stateNode,le=s.memoizedProps;X.props=le;var fe=X.context,Ee=v.contextType;typeof Ee=="object"&&Ee!==null?Ee=ir(Ee):(Ee=Yn(v)?Aa:_t.current,Ee=vi(s,Ee));var Ie=v.getDerivedStateFromProps,Ve=typeof Ie=="function"||typeof X.getSnapshotBeforeUpdate=="function";Ve||typeof X.UNSAFE_componentWillReceiveProps!="function"&&typeof X.componentWillReceiveProps!="function"||(le!==w||fe!==Ee)&&g1(s,X,w,Ee),Pl=!1;var je=s.memoizedState;X.state=je,Ll(s,w,X,O),fe=s.memoizedState,le!==w||je!==fe||tr.current||Pl?(typeof Ie=="function"&&(Fv(s,v,Ie,w),fe=s.memoizedState),(le=Pl||v1(s,v,le,w,je,fe,Ee))?(Ve||typeof X.UNSAFE_componentWillMount!="function"&&typeof X.componentWillMount!="function"||(typeof X.componentWillMount=="function"&&X.componentWillMount(),typeof X.UNSAFE_componentWillMount=="function"&&X.UNSAFE_componentWillMount()),typeof X.componentDidMount=="function"&&(s.flags|=4194308)):(typeof X.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=w,s.memoizedState=fe),X.props=w,X.state=fe,X.context=Ee,w=le):(typeof X.componentDidMount=="function"&&(s.flags|=4194308),w=!1)}else{X=s.stateNode,gr(o,s),le=s.memoizedProps,Ee=s.type===s.elementType?le:Qa(s.type,le),X.props=Ee,Ve=s.pendingProps,je=X.context,fe=v.contextType,typeof fe=="object"&&fe!==null?fe=ir(fe):(fe=Yn(v)?Aa:_t.current,fe=vi(s,fe));var Je=v.getDerivedStateFromProps;(Ie=typeof Je=="function"||typeof X.getSnapshotBeforeUpdate=="function")||typeof X.UNSAFE_componentWillReceiveProps!="function"&&typeof X.componentWillReceiveProps!="function"||(le!==Ve||je!==fe)&&g1(s,X,w,fe),Pl=!1,je=s.memoizedState,X.state=je,Ll(s,w,X,O);var it=s.memoizedState;le!==Ve||je!==it||tr.current||Pl?(typeof Je=="function"&&(Fv(s,v,Je,w),it=s.memoizedState),(Ee=Pl||v1(s,v,Ee,w,je,it,fe)||!1)?(Ie||typeof X.UNSAFE_componentWillUpdate!="function"&&typeof X.componentWillUpdate!="function"||(typeof X.componentWillUpdate=="function"&&X.componentWillUpdate(w,it,fe),typeof X.UNSAFE_componentWillUpdate=="function"&&X.UNSAFE_componentWillUpdate(w,it,fe)),typeof X.componentDidUpdate=="function"&&(s.flags|=4),typeof X.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof X.componentDidUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=4),typeof X.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=1024),s.memoizedProps=w,s.memoizedState=it),X.props=w,X.state=it,X.context=fe,w=Ee):(typeof X.componentDidUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=4),typeof X.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=1024),w=!1)}return S1(o,s,v,w,L,O)}function S1(o,s,v,w,O,L){Ot(o,s);var X=(s.flags&128)!==0;if(!w&&!X)return O&&u1(s,v,!1),Hr(o,s,L);w=s.stateNode,R_.current=s;var le=X&&typeof v.getDerivedStateFromError!="function"?null:w.render();return s.flags|=1,o!==null&&X?(s.child=Fu(s,o.child,null,L),s.child=Fu(s,null,le,L)):yr(o,s,le,L),s.memoizedState=w.state,O&&u1(s,v,!0),s.child}function E1(o){var s=o.stateNode;s.pendingContext?Rl(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Rl(o,s.context,!1),Nv(o,s.containerInfo)}function k0(o,s,v,w,O){return Qn(),Dv(O),s.flags|=256,yr(o,s,v,w),s.child}var Ns={dehydrated:null,treeContext:null,retryLane:0};function jv(o){return{baseLanes:o,cachePool:null,transitions:null}}function Iv(o,s,v){var w=s.pendingProps,O=xt.current,L=!1,X=(s.flags&128)!==0,le;if((le=X)||(le=o!==null&&o.memoizedState===null?!1:(O&2)!==0),le?(L=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(O|=1),cn(xt,O&1),o===null)return Jd(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(s.mode&1?o.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(X=w.children,o=w.fallback,L?(w=s.mode,L=s.child,X={mode:"hidden",children:X},!(w&1)&&L!==null?(L.childLanes=0,L.pendingProps=X):L=Rf(X,w,0,null),o=Is(o,w,v,null),L.return=s,o.return=s,L.sibling=o,s.child=L,s.child.memoizedState=jv(v),s.memoizedState=Ns,o):Hv(s,X));if(O=o.memoizedState,O!==null&&(le=O.dehydrated,le!==null))return F_(o,s,X,w,le,O,v);if(L){L=w.fallback,X=s.mode,O=o.child,le=O.sibling;var fe={mode:"hidden",children:w.children};return!(X&1)&&s.child!==O?(w=s.child,w.childLanes=0,w.pendingProps=fe,s.deletions=null):(w=Yl(O,fe),w.subtreeFlags=O.subtreeFlags&14680064),le!==null?L=Yl(le,L):(L=Is(L,X,v,null),L.flags|=2),L.return=s,w.return=s,w.sibling=L,s.child=w,w=L,L=s.child,X=o.child.memoizedState,X=X===null?jv(v):{baseLanes:X.baseLanes|v,cachePool:null,transitions:X.transitions},L.memoizedState=X,L.childLanes=o.childLanes&~v,s.memoizedState=Ns,w}return L=o.child,o=L.sibling,w=Yl(L,{mode:"visible",children:w.children}),!(s.mode&1)&&(w.lanes=v),w.return=s,w.sibling=null,o!==null&&(v=s.deletions,v===null?(s.deletions=[o],s.flags|=16):v.push(o)),s.child=w,s.memoizedState=null,w}function Hv(o,s){return s=Rf({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Uu(o,s,v,w){return w!==null&&Dv(w),Fu(s,o.child,null,v),o=Hv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function F_(o,s,v,w,O,L,X){if(v)return s.flags&256?(s.flags&=-257,w=bf(Error(t(422))),Uu(o,s,X,w)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(L=w.fallback,O=s.mode,w=Rf({mode:"visible",children:w.children},O,0,null),L=Is(L,O,X,null),L.flags|=2,w.return=s,L.return=s,w.sibling=L,s.child=w,s.mode&1&&Fu(s,o.child,null,X),s.child.memoizedState=jv(X),s.memoizedState=Ns,L);if(!(s.mode&1))return Uu(o,s,X,null);if(O.data==="$!"){if(w=O.nextSibling&&O.nextSibling.dataset,w)var le=w.dgst;return w=le,L=Error(t(419)),w=bf(L,w,void 0),Uu(o,s,X,w)}if(le=(X&o.childLanes)!==0,dr||le){if(w=Xn,w!==null){switch(X&-X){case 4:O=2;break;case 16:O=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:O=32;break;case 536870912:O=268435456;break;default:O=0}O=O&(w.suspendedLanes|X)?0:O,O!==0&&O!==L.retryLane&&(L.retryLane=O,jo(o,O),ca(w,o,O,-1))}return em(),w=bf(Error(t(421))),Uu(o,s,X,w)}return O.data==="$?"?(s.flags|=128,s.child=o.child,s=z_.bind(null,o),O._reactRetry=s,null):(o=L.treeContext,Na=$i(O.nextSibling),Wa=s,Bn=!0,yi=null,o!==null&&(Fa[ia++]=jr,Fa[ia++]=Uo,Fa[ia++]=gi,jr=o.id,Uo=o.overflow,gi=s),s=Hv(s,w.children),s.flags|=4096,s)}function Vv(o,s,v){o.lanes|=s;var w=o.alternate;w!==null&&(w.lanes|=s),Tr(o.return,s,v)}function T0(o,s,v,w,O){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:w,tail:v,tailMode:O}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=w,L.tail=v,L.tailMode=O)}function $v(o,s,v){var w=s.pendingProps,O=w.revealOrder,L=w.tail;if(yr(o,s,w.children,v),w=xt.current,w&2)w=w&1|2,s.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Vv(o,v,s);else if(o.tag===19)Vv(o,v,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}w&=1}if(cn(xt,w),!(s.mode&1))s.memoizedState=null;else switch(O){case"forwards":for(v=s.child,O=null;v!==null;)o=v.alternate,o!==null&&Zn(o)===null&&(O=v),v=v.sibling;v=O,v===null?(O=s.child,s.child=null):(O=v.sibling,v.sibling=null),T0(s,!1,O,v,L);break;case"backwards":for(v=null,O=s.child,s.child=null;O!==null;){if(o=O.alternate,o!==null&&Zn(o)===null){s.child=O;break}o=O.sibling,O.sibling=v,v=O,O=o}T0(s,!0,v,null,L);break;case"together":T0(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function oa(o,s){!(s.mode&1)&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Hr(o,s,v){if(o!==null&&(s.dependencies=o.dependencies),Yo|=s.lanes,!(v&s.childLanes))return null;if(o!==null&&s.child!==o.child)throw Error(t(153));if(s.child!==null){for(o=s.child,v=Yl(o,o.pendingProps),s.child=v,v.return=s;o.sibling!==null;)o=o.sibling,v=v.sibling=Yl(o,o.pendingProps),v.return=s;v.sibling=null}return s.child}function Vo(o,s,v){switch(s.tag){case 3:E1(s),Qn();break;case 5:gt(s);break;case 1:Yn(s.type)&&Qd(s);break;case 4:Nv(s,s.stateNode.containerInfo);break;case 10:var w=s.type._context,O=s.memoizedProps.value;cn(lo,w._currentValue),w._currentValue=O;break;case 13:if(w=s.memoizedState,w!==null)return w.dehydrated!==null?(cn(xt,xt.current&1),s.flags|=128,null):v&s.child.childLanes?Iv(o,s,v):(cn(xt,xt.current&1),o=Hr(o,s,v),o!==null?o.sibling:null);cn(xt,xt.current&1);break;case 19:if(w=(v&s.childLanes)!==0,o.flags&128){if(w)return $v(o,s,v);s.flags|=128}if(O=s.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),cn(xt,xt.current),w)break;return null;case 22:case 23:return s.lanes=0,Fs(o,s,v)}return Hr(o,s,v)}var wf,Ms,Ci,xr;wf=function(o,s){for(var v=s.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===s)break;for(;v.sibling===null;){if(v.return===null||v.return===s)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},Ms=function(){},Ci=function(o,s,v,w){var O=o.memoizedProps;if(O!==w){o=s.stateNode,Ss(Yi.current);var L=null;switch(v){case"input":O=Ne(o,O),w=Ne(o,w),L=[];break;case"select":O=Z({},O,{value:void 0}),w=Z({},w,{value:void 0}),L=[];break;case"textarea":O=It(o,O),w=It(o,w),L=[];break;default:typeof O.onClick!="function"&&typeof w.onClick=="function"&&(o.onclick=Wd)}ur(v,w);var X;v=null;for(Ee in O)if(!w.hasOwnProperty(Ee)&&O.hasOwnProperty(Ee)&&O[Ee]!=null)if(Ee==="style"){var le=O[Ee];for(X in le)le.hasOwnProperty(X)&&(v||(v={}),v[X]="")}else Ee!=="dangerouslySetInnerHTML"&&Ee!=="children"&&Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&Ee!=="autoFocus"&&(l.hasOwnProperty(Ee)?L||(L=[]):(L=L||[]).push(Ee,null));for(Ee in w){var fe=w[Ee];if(le=O!=null?O[Ee]:void 0,w.hasOwnProperty(Ee)&&fe!==le&&(fe!=null||le!=null))if(Ee==="style")if(le){for(X in le)!le.hasOwnProperty(X)||fe&&fe.hasOwnProperty(X)||(v||(v={}),v[X]="");for(X in fe)fe.hasOwnProperty(X)&&le[X]!==fe[X]&&(v||(v={}),v[X]=fe[X])}else v||(L||(L=[]),L.push(Ee,v)),v=fe;else Ee==="dangerouslySetInnerHTML"?(fe=fe?fe.__html:void 0,le=le?le.__html:void 0,fe!=null&&le!==fe&&(L=L||[]).push(Ee,fe)):Ee==="children"?typeof fe!="string"&&typeof fe!="number"||(L=L||[]).push(Ee,""+fe):Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&(l.hasOwnProperty(Ee)?(fe!=null&&Ee==="onScroll"&&On("scroll",o),L||le===fe||(L=[])):(L=L||[]).push(Ee,fe))}v&&(L=L||[]).push("style",v);var Ee=L;(s.updateQueue=Ee)&&(s.flags|=4)}},xr=function(o,s,v,w){v!==w&&(s.flags|=4)};function _f(o,s){if(!Bn)switch(o.tailMode){case"hidden":s=o.tail;for(var v=null;s!==null;)s.alternate!==null&&(v=s),s=s.sibling;v===null?o.tail=null:v.sibling=null;break;case"collapsed":v=o.tail;for(var w=null;v!==null;)v.alternate!==null&&(w=v),v=v.sibling;w===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:w.sibling=null}}function la(o){var s=o.alternate!==null&&o.alternate.child===o.child,v=0,w=0;if(s)for(var O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags&14680064,w|=O.flags&14680064,O.return=o,O=O.sibling;else for(O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags,w|=O.flags,O.return=o,O=O.sibling;return o.subtreeFlags|=w,o.childLanes=v,s}function N_(o,s,v){var w=s.pendingProps;switch(Sv(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return la(s),null;case 1:return Yn(s.type)&&mi(),la(s),null;case 3:return w=s.stateNode,zl(),ln(tr),ln(_t),l0(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(o===null||o.child===null)&&(e0(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,yi!==null&&(Of(yi),yi=null))),Ms(o,s),la(s),null;case 5:Lt(s);var O=Ss(Nu.current);if(v=s.type,o!==null&&s.stateNode!=null)Ci(o,s,v,w,O),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!w){if(s.stateNode===null)throw Error(t(166));return la(s),null}if(o=Ss(Yi.current),e0(s)){w=s.stateNode,v=s.type;var L=s.memoizedProps;switch(w[io]=s,w[Cs]=L,o=(s.mode&1)!==0,v){case"dialog":On("cancel",w),On("close",w);break;case"iframe":case"object":case"embed":On("load",w);break;case"video":case"audio":for(O=0;O<of.length;O++)On(of[O],w);break;case"source":On("error",w);break;case"img":case"image":case"link":On("error",w),On("load",w);break;case"details":On("toggle",w);break;case"input":dt(w,L),On("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!L.multiple},On("invalid",w);break;case"textarea":on(w,L),On("invalid",w)}ur(v,L),O=null;for(var X in L)if(L.hasOwnProperty(X)){var le=L[X];X==="children"?typeof le=="string"?w.textContent!==le&&(L.suppressHydrationWarning!==!0&&Kd(w.textContent,le,o),O=["children",le]):typeof le=="number"&&w.textContent!==""+le&&(L.suppressHydrationWarning!==!0&&Kd(w.textContent,le,o),O=["children",""+le]):l.hasOwnProperty(X)&&le!=null&&X==="onScroll"&&On("scroll",w)}switch(v){case"input":Pe(w),sn(w,L,!0);break;case"textarea":Pe(w),Mn(w);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(w.onclick=Wd)}w=O,s.updateQueue=w,w!==null&&(s.flags|=4)}else{X=O.nodeType===9?O:O.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Tn(v)),o==="http://www.w3.org/1999/xhtml"?v==="script"?(o=X.createElement("div"),o.innerHTML="<script></script>",o=o.removeChild(o.firstChild)):typeof w.is=="string"?o=X.createElement(v,{is:w.is}):(o=X.createElement(v),v==="select"&&(X=o,w.multiple?X.multiple=!0:w.size&&(X.size=w.size))):o=X.createElementNS(o,v),o[io]=s,o[Cs]=w,wf(o,s,!1,!1),s.stateNode=o;e:{switch(X=Wn(v,w),v){case"dialog":On("cancel",o),On("close",o),O=w;break;case"iframe":case"object":case"embed":On("load",o),O=w;break;case"video":case"audio":for(O=0;O<of.length;O++)On(of[O],o);O=w;break;case"source":On("error",o),O=w;break;case"img":case"image":case"link":On("error",o),On("load",o),O=w;break;case"details":On("toggle",o),O=w;break;case"input":dt(o,w),O=Ne(o,w),On("invalid",o);break;case"option":O=w;break;case"select":o._wrapperState={wasMultiple:!!w.multiple},O=Z({},w,{value:void 0}),On("invalid",o);break;case"textarea":on(o,w),O=It(o,w),On("invalid",o);break;default:O=w}ur(v,O),le=O;for(L in le)if(le.hasOwnProperty(L)){var fe=le[L];L==="style"?Ht(o,fe):L==="dangerouslySetInnerHTML"?(fe=fe?fe.__html:void 0,fe!=null&&ka(o,fe)):L==="children"?typeof fe=="string"?(v!=="textarea"||fe!=="")&&Lr(o,fe):typeof fe=="number"&&Lr(o,""+fe):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?fe!=null&&L==="onScroll"&&On("scroll",o):fe!=null&&D(o,L,fe,X))}switch(v){case"input":Pe(o),sn(o,w,!1);break;case"textarea":Pe(o),Mn(o);break;case"option":w.value!=null&&o.setAttribute("value",""+ce(w.value));break;case"select":o.multiple=!!w.multiple,L=w.value,L!=null?un(o,!!w.multiple,L,!1):w.defaultValue!=null&&un(o,!!w.multiple,w.defaultValue,!0);break;default:typeof O.onClick=="function"&&(o.onclick=Wd)}switch(v){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return la(s),null;case 6:if(o&&s.stateNode!=null)xr(o,s,o.memoizedProps,w);else{if(typeof w!="string"&&s.stateNode===null)throw Error(t(166));if(v=Ss(Nu.current),Ss(Yi.current),e0(s)){if(w=s.stateNode,v=s.memoizedProps,w[io]=s,(L=w.nodeValue!==v)&&(o=Wa,o!==null))switch(o.tag){case 3:Kd(w.nodeValue,v,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Kd(w.nodeValue,v,(o.mode&1)!==0)}L&&(s.flags|=4)}else w=(v.nodeType===9?v:v.ownerDocument).createTextNode(w),w[io]=s,s.stateNode=w}return la(s),null;case 13:if(ln(xt),w=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Bn&&Na!==null&&s.mode&1&&!(s.flags&128))d1(),Qn(),s.flags|=98560,L=!1;else if(L=e0(s),w!==null&&w.dehydrated!==null){if(o===null){if(!L)throw Error(t(318));if(L=s.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(t(317));L[io]=s}else Qn(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;la(s),L=!1}else yi!==null&&(Of(yi),yi=null),L=!0;if(!L)return s.flags&65536?s:null}return s.flags&128?(s.lanes=v,s):(w=w!==null,w!==(o!==null&&o.memoizedState!==null)&&w&&(s.child.flags|=8192,s.mode&1&&(o===null||xt.current&1?Cr===0&&(Cr=3):em())),s.updateQueue!==null&&(s.flags|=4),la(s),null);case 4:return zl(),Ms(o,s),o===null&&Tu(s.stateNode.containerInfo),la(s),null;case 10:return Ml(s.type._context),la(s),null;case 17:return Yn(s.type)&&mi(),la(s),null;case 19:if(ln(xt),L=s.memoizedState,L===null)return la(s),null;if(w=(s.flags&128)!==0,X=L.rendering,X===null)if(w)_f(L,!1);else{if(Cr!==0||o!==null&&o.flags&128)for(o=s.child;o!==null;){if(X=Zn(o),X!==null){for(s.flags|=128,_f(L,!1),w=X.updateQueue,w!==null&&(s.updateQueue=w,s.flags|=4),s.subtreeFlags=0,w=v,v=s.child;v!==null;)L=v,o=w,L.flags&=14680066,X=L.alternate,X===null?(L.childLanes=0,L.lanes=o,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=X.childLanes,L.lanes=X.lanes,L.child=X.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=X.memoizedProps,L.memoizedState=X.memoizedState,L.updateQueue=X.updateQueue,L.type=X.type,o=X.dependencies,L.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),v=v.sibling;return cn(xt,xt.current&1|2),s.child}o=o.sibling}L.tail!==null&&tn()>qu&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304)}else{if(!w)if(o=Zn(X),o!==null){if(s.flags|=128,w=!0,v=o.updateQueue,v!==null&&(s.updateQueue=v,s.flags|=4),_f(L,!0),L.tail===null&&L.tailMode==="hidden"&&!X.alternate&&!Bn)return la(s),null}else 2*tn()-L.renderingStartTime>qu&&v!==1073741824&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304);L.isBackwards?(X.sibling=s.child,s.child=X):(v=L.last,v!==null?v.sibling=X:s.child=X,L.last=X)}return L.tail!==null?(s=L.tail,L.rendering=s,L.tail=s.sibling,L.renderingStartTime=tn(),s.sibling=null,v=xt.current,cn(xt,w?v&1|2:v&1),s):(la(s),null);case 22:case 23:return Jv(),w=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==w&&(s.flags|=8192),w&&s.mode&1?Xa&1073741824&&(la(s),s.subtreeFlags&6&&(s.flags|=8192)):la(s),null;case 24:return null;case 25:return null}throw Error(t(156,s.tag))}function Yv(o,s){switch(Sv(s),s.tag){case 1:return Yn(s.type)&&mi(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return zl(),ln(tr),ln(_t),l0(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return Lt(s),null;case 13:if(ln(xt),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(t(340));Qn()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return ln(xt),null;case 4:return zl(),null;case 10:return Ml(s.type._context),null;case 22:case 23:return Jv(),null;case 24:return null;default:return null}}var Sf=!1,br=!1,D1=typeof WeakSet=="function"?WeakSet:Set,rt=null;function ju(o,s){var v=o.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(w){rr(o,s,w)}else v.current=null}function Ef(o,s,v){try{v()}catch(w){rr(o,s,w)}}var k1=!1;function T1(o,s){if(mv=ps,o=Vd(),Po(o)){if("selectionStart"in o)var v={start:o.selectionStart,end:o.selectionEnd};else e:{v=(v=o.ownerDocument)&&v.defaultView||window;var w=v.getSelection&&v.getSelection();if(w&&w.rangeCount!==0){v=w.anchorNode;var O=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{v.nodeType,L.nodeType}catch{v=null;break e}var X=0,le=-1,fe=-1,Ee=0,Ie=0,Ve=o,je=null;t:for(;;){for(var Je;Ve!==v||O!==0&&Ve.nodeType!==3||(le=X+O),Ve!==L||w!==0&&Ve.nodeType!==3||(fe=X+w),Ve.nodeType===3&&(X+=Ve.nodeValue.length),(Je=Ve.firstChild)!==null;)je=Ve,Ve=Je;for(;;){if(Ve===o)break t;if(je===v&&++Ee===O&&(le=X),je===L&&++Ie===w&&(fe=X),(Je=Ve.nextSibling)!==null)break;Ve=je,je=Ve.parentNode}Ve=Je}v=le===-1||fe===-1?null:{start:le,end:fe}}else v=null}v=v||{start:0,end:0}}else v=null;for(xs={focusedElem:o,selectionRange:v},ps=!1,rt=s;rt!==null;)if(s=rt,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,rt=o;else for(;rt!==null;){s=rt;try{var it=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var st=it.memoizedProps,or=it.memoizedState,ge=s.stateNode,he=ge.getSnapshotBeforeUpdate(s.elementType===s.type?st:Qa(s.type,st),or);ge.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var Ce=s.stateNode.containerInfo;Ce.nodeType===1?Ce.textContent="":Ce.nodeType===9&&Ce.documentElement&&Ce.removeChild(Ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Ye){rr(s,s.return,Ye)}if(o=s.sibling,o!==null){o.return=s.return,rt=o;break}rt=s.return}return it=k1,k1=!1,it}function Df(o,s,v){var w=s.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var O=w=w.next;do{if((O.tag&o)===o){var L=O.destroy;O.destroy=void 0,L!==void 0&&Ef(s,v,L)}O=O.next}while(O!==w)}}function kf(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var v=s=s.next;do{if((v.tag&o)===o){var w=v.create;v.destroy=w()}v=v.next}while(v!==s)}}function qv(o){var s=o.ref;if(s!==null){var v=o.stateNode;switch(o.tag){case 5:o=v;break;default:o=v}typeof s=="function"?s(o):s.current=o}}function Gv(o){var s=o.alternate;s!==null&&(o.alternate=null,Gv(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[io],delete s[Cs],delete s[xv],delete s[D_],delete s[bv])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function A1(o){return o.tag===5||o.tag===3||o.tag===4}function A0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||A1(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Iu(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.nodeType===8?v.parentNode.insertBefore(o,s):v.insertBefore(o,s):(v.nodeType===8?(s=v.parentNode,s.insertBefore(o,v)):(s=v,s.appendChild(o)),v=v._reactRootContainer,v!=null||s.onclick!==null||(s.onclick=Wd));else if(w!==4&&(o=o.child,o!==null))for(Iu(o,s,v),o=o.sibling;o!==null;)Iu(o,s,v),o=o.sibling}function uo(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.insertBefore(o,s):v.appendChild(o);else if(w!==4&&(o=o.child,o!==null))for(uo(o,s,v),o=o.sibling;o!==null;)uo(o,s,v),o=o.sibling}var qn=null,Ar=!1;function wi(o,s,v){for(v=v.child;v!==null;)Hu(o,s,v),v=v.sibling}function Hu(o,s,v){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(Vc,v)}catch{}switch(v.tag){case 5:br||ju(v,s);case 6:var w=qn,O=Ar;qn=null,wi(o,s,v),qn=w,Ar=O,qn!==null&&(Ar?(o=qn,v=v.stateNode,o.nodeType===8?o.parentNode.removeChild(v):o.removeChild(v)):qn.removeChild(v.stateNode));break;case 18:qn!==null&&(Ar?(o=qn,v=v.stateNode,o.nodeType===8?Tl(o.parentNode,v):o.nodeType===1&&Tl(o,v),Kc(o)):Tl(qn,v.stateNode));break;case 4:w=qn,O=Ar,qn=v.stateNode.containerInfo,Ar=!0,wi(o,s,v),qn=w,Ar=O;break;case 0:case 11:case 14:case 15:if(!br&&(w=v.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){O=w=w.next;do{var L=O,X=L.destroy;L=L.tag,X!==void 0&&(L&2||L&4)&&Ef(v,s,X),O=O.next}while(O!==w)}wi(o,s,v);break;case 1:if(!br&&(ju(v,s),w=v.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=v.memoizedProps,w.state=v.memoizedState,w.componentWillUnmount()}catch(le){rr(v,s,le)}wi(o,s,v);break;case 21:wi(o,s,v);break;case 22:v.mode&1?(br=(w=br)||v.memoizedState!==null,wi(o,s,v),br=w):wi(o,s,v);break;default:wi(o,s,v)}}function $o(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var v=o.stateNode;v===null&&(v=o.stateNode=new D1),s.forEach(function(w){var O=U_.bind(null,o,w);v.has(w)||(v.add(w),w.then(O,O))})}}function qi(o,s){var v=s.deletions;if(v!==null)for(var w=0;w<v.length;w++){var O=v[w];try{var L=o,X=s,le=X;e:for(;le!==null;){switch(le.tag){case 5:qn=le.stateNode,Ar=!1;break e;case 3:qn=le.stateNode.containerInfo,Ar=!0;break e;case 4:qn=le.stateNode.containerInfo,Ar=!0;break e}le=le.return}if(qn===null)throw Error(t(160));Hu(L,X,O),qn=null,Ar=!1;var fe=O.alternate;fe!==null&&(fe.return=null),O.return=null}catch(Ee){rr(O,s,Ee)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)O1(s,o),s=s.sibling}function O1(o,s){var v=o.alternate,w=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(qi(s,o),co(o),w&4){try{Df(3,o,o.return),kf(3,o)}catch(st){rr(o,o.return,st)}try{Df(5,o,o.return)}catch(st){rr(o,o.return,st)}}break;case 1:qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return);break;case 5:if(qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return),o.flags&32){var O=o.stateNode;try{Lr(O,"")}catch(st){rr(o,o.return,st)}}if(w&4&&(O=o.stateNode,O!=null)){var L=o.memoizedProps,X=v!==null?v.memoizedProps:L,le=o.type,fe=o.updateQueue;if(o.updateQueue=null,fe!==null)try{le==="input"&&L.type==="radio"&&L.name!=null&&Xe(O,L),Wn(le,X);var Ee=Wn(le,L);for(X=0;X<fe.length;X+=2){var Ie=fe[X],Ve=fe[X+1];Ie==="style"?Ht(O,Ve):Ie==="dangerouslySetInnerHTML"?ka(O,Ve):Ie==="children"?Lr(O,Ve):D(O,Ie,Ve,Ee)}switch(le){case"input":Zt(O,L);break;case"textarea":In(O,L);break;case"select":var je=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!L.multiple;var Je=L.value;Je!=null?un(O,!!L.multiple,Je,!1):je!==!!L.multiple&&(L.defaultValue!=null?un(O,!!L.multiple,L.defaultValue,!0):un(O,!!L.multiple,L.multiple?[]:"",!1))}O[Cs]=L}catch(st){rr(o,o.return,st)}}break;case 6:if(qi(s,o),co(o),w&4){if(o.stateNode===null)throw Error(t(162));O=o.stateNode,L=o.memoizedProps;try{O.nodeValue=L}catch(st){rr(o,o.return,st)}}break;case 3:if(qi(s,o),co(o),w&4&&v!==null&&v.memoizedState.isDehydrated)try{Kc(s.containerInfo)}catch(st){rr(o,o.return,st)}break;case 4:qi(s,o),co(o);break;case 13:qi(s,o),co(o),O=o.child,O.flags&8192&&(L=O.memoizedState!==null,O.stateNode.isHidden=L,!L||O.alternate!==null&&O.alternate.memoizedState!==null||(Qv=tn())),w&4&&$o(o);break;case 22:if(Ie=v!==null&&v.memoizedState!==null,o.mode&1?(br=(Ee=br)||Ie,qi(s,o),br=Ee):qi(s,o),co(o),w&8192){if(Ee=o.memoizedState!==null,(o.stateNode.isHidden=Ee)&&!Ie&&o.mode&1)for(rt=o,Ie=o.child;Ie!==null;){for(Ve=rt=Ie;rt!==null;){switch(je=rt,Je=je.child,je.tag){case 0:case 11:case 14:case 15:Df(4,je,je.return);break;case 1:ju(je,je.return);var it=je.stateNode;if(typeof it.componentWillUnmount=="function"){w=je,v=je.return;try{s=w,it.props=s.memoizedProps,it.state=s.memoizedState,it.componentWillUnmount()}catch(st){rr(w,v,st)}}break;case 5:ju(je,je.return);break;case 22:if(je.memoizedState!==null){Kv(Ve);continue}}Je!==null?(Je.return=je,rt=Je):Kv(Ve)}Ie=Ie.sibling}e:for(Ie=null,Ve=o;;){if(Ve.tag===5){if(Ie===null){Ie=Ve;try{O=Ve.stateNode,Ee?(L=O.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(le=Ve.stateNode,fe=Ve.memoizedProps.style,X=fe!=null&&fe.hasOwnProperty("display")?fe.display:null,le.style.display=ct("display",X))}catch(st){rr(o,o.return,st)}}}else if(Ve.tag===6){if(Ie===null)try{Ve.stateNode.nodeValue=Ee?"":Ve.memoizedProps}catch(st){rr(o,o.return,st)}}else if((Ve.tag!==22&&Ve.tag!==23||Ve.memoizedState===null||Ve===o)&&Ve.child!==null){Ve.child.return=Ve,Ve=Ve.child;continue}if(Ve===o)break e;for(;Ve.sibling===null;){if(Ve.return===null||Ve.return===o)break e;Ie===Ve&&(Ie=null),Ve=Ve.return}Ie===Ve&&(Ie=null),Ve.sibling.return=Ve.return,Ve=Ve.sibling}}break;case 19:qi(s,o),co(o),w&4&&$o(o);break;case 21:break;default:qi(s,o),co(o)}}function co(o){var s=o.flags;if(s&2){try{e:{for(var v=o.return;v!==null;){if(A1(v)){var w=v;break e}v=v.return}throw Error(t(160))}switch(w.tag){case 5:var O=w.stateNode;w.flags&32&&(Lr(O,""),w.flags&=-33);var L=A0(o);uo(o,L,O);break;case 3:case 4:var X=w.stateNode.containerInfo,le=A0(o);Iu(o,le,X);break;default:throw Error(t(161))}}catch(fe){rr(o,o.return,fe)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function R1(o,s,v){rt=o,Vu(o)}function Vu(o,s,v){for(var w=(o.mode&1)!==0;rt!==null;){var O=rt,L=O.child;if(O.tag===22&&w){var X=O.memoizedState!==null||Sf;if(!X){var le=O.alternate,fe=le!==null&&le.memoizedState!==null||br;le=Sf;var Ee=br;if(Sf=X,(br=fe)&&!Ee)for(rt=O;rt!==null;)X=rt,fe=X.child,X.tag===22&&X.memoizedState!==null?N1(O):fe!==null?(fe.return=X,rt=fe):N1(O);for(;L!==null;)rt=L,Vu(L),L=L.sibling;rt=O,Sf=le,br=Ee}F1(o)}else O.subtreeFlags&8772&&L!==null?(L.return=O,rt=L):F1(o)}}function F1(o){for(;rt!==null;){var s=rt;if(s.flags&8772){var v=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:br||kf(5,s);break;case 1:var w=s.stateNode;if(s.flags&4&&!br)if(v===null)w.componentDidMount();else{var O=s.elementType===s.type?v.memoizedProps:Qa(s.type,v.memoizedProps);w.componentDidUpdate(O,v.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var L=s.updateQueue;L!==null&&_s(s,L,w);break;case 3:var X=s.updateQueue;if(X!==null){if(v=null,s.child!==null)switch(s.child.tag){case 5:v=s.child.stateNode;break;case 1:v=s.child.stateNode}_s(s,X,v)}break;case 5:var le=s.stateNode;if(v===null&&s.flags&4){v=le;var fe=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":fe.autoFocus&&v.focus();break;case"img":fe.src&&(v.src=fe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Ee=s.alternate;if(Ee!==null){var Ie=Ee.memoizedState;if(Ie!==null){var Ve=Ie.dehydrated;Ve!==null&&Kc(Ve)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}br||s.flags&512&&qv(s)}catch(je){rr(s,s.return,je)}}if(s===o){rt=null;break}if(v=s.sibling,v!==null){v.return=s.return,rt=v;break}rt=s.return}}function Kv(o){for(;rt!==null;){var s=rt;if(s===o){rt=null;break}var v=s.sibling;if(v!==null){v.return=s.return,rt=v;break}rt=s.return}}function N1(o){for(;rt!==null;){var s=rt;try{switch(s.tag){case 0:case 11:case 15:var v=s.return;try{kf(4,s)}catch(fe){rr(s,v,fe)}break;case 1:var w=s.stateNode;if(typeof w.componentDidMount=="function"){var O=s.return;try{w.componentDidMount()}catch(fe){rr(s,O,fe)}}var L=s.return;try{qv(s)}catch(fe){rr(s,L,fe)}break;case 5:var X=s.return;try{qv(s)}catch(fe){rr(s,X,fe)}}}catch(fe){rr(s,s.return,fe)}if(s===o){rt=null;break}var le=s.sibling;if(le!==null){le.return=s.return,rt=le;break}rt=s.return}}var O0=Math.ceil,Tf=R.ReactCurrentDispatcher,Wv=R.ReactCurrentOwner,sa=R.ReactCurrentBatchConfig,Ut=0,Xn=null,nr=null,Or=0,Xa=0,$u=At(0),Cr=0,Af=null,Yo=0,R0=0,Yu=0,Ps=null,pa=null,Qv=0,qu=1/0,qo=null,F0=!1,Bs=null,fo=null,Hl=!1,Vl=null,N0=0,Gu=0,M0=null,Ls=-1,zs=0;function ua(){return Ut&6?tn():Ls!==-1?Ls:Ls=tn()}function hr(o){return o.mode&1?Ut&2&&Or!==0?Or&-Or:t0.transition!==null?(zs===0&&(zs=Rd()),zs):(o=gn,o!==0||(o=window.event,o=o===void 0?16:Qp(o.type)),o):1}function ca(o,s,v,w){if(50<Gu)throw Gu=0,M0=null,Error(t(185));hs(o,v,w),(!(Ut&2)||o!==Xn)&&(o===Xn&&(!(Ut&2)&&(R0|=v),Cr===4&&_i(o,Or)),fa(o,w),v===1&&Ut===0&&!(s.mode&1)&&(qu=tn()+500,kr&&Oa()))}function fa(o,s){var v=o.callbackNode;Od(o,s);var w=ji(o,o===Xn?Or:0);if(w===0)v!==null&&ha(v),o.callbackNode=null,o.callbackPriority=0;else if(s=w&-w,o.callbackPriority!==s){if(v!=null&&ha(v),s===1)o.tag===0?wv(M1.bind(null,o)):Cv(M1.bind(null,o)),yv(function(){!(Ut&6)&&Oa()}),v=null;else{switch(Gp(w)){case 1:v=Ro;break;case 4:v=zt;break;case 16:v=_l;break;case 536870912:v=Vp;break;default:v=_l}v=nm(v,Ku.bind(null,o))}o.callbackPriority=s,o.callbackNode=v}}function Ku(o,s){if(Ls=-1,zs=0,Ut&6)throw Error(t(327));var v=o.callbackNode;if(Qu()&&o.callbackNode!==v)return null;var w=ji(o,o===Xn?Or:0);if(w===0)return null;if(w&30||w&o.expiredLanes||s)s=B0(o,w);else{s=w;var O=Ut;Ut|=2;var L=P0();(Xn!==o||Or!==s)&&(qo=null,qu=tn()+500,Us(o,s));do try{P_();break}catch(le){P1(o,le)}while(1);Tv(),Tf.current=L,Ut=O,nr!==null?s=0:(Xn=null,Or=0,s=Cr)}if(s!==0){if(s===2&&(O=Yp(o),O!==0&&(w=O,s=Zv(o,O))),s===1)throw v=Af,Us(o,0),_i(o,w),fa(o,tn()),v;if(s===6)_i(o,w);else{if(O=o.current.alternate,!(w&30)&&!Xv(O)&&(s=B0(o,w),s===2&&(L=Yp(o),L!==0&&(w=L,s=Zv(o,L))),s===1))throw v=Af,Us(o,0),_i(o,w),fa(o,tn()),v;switch(o.finishedWork=O,o.finishedLanes=w,s){case 0:case 1:throw Error(t(345));case 2:js(o,pa,qo);break;case 3:if(_i(o,w),(w&130023424)===w&&(s=Qv+500-tn(),10<s)){if(ji(o,0)!==0)break;if(O=o.suspendedLanes,(O&w)!==w){ua(),o.pingedLanes|=o.suspendedLanes&O;break}o.timeoutHandle=bs(js.bind(null,o,pa,qo),s);break}js(o,pa,qo);break;case 4:if(_i(o,w),(w&4194240)===w)break;for(s=o.eventTimes,O=-1;0<w;){var X=31-ci(w);L=1<<X,X=s[X],X>O&&(O=X),w&=~L}if(w=O,w=tn()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*O0(w/1960))-w,10<w){o.timeoutHandle=bs(js.bind(null,o,pa,qo),w);break}js(o,pa,qo);break;case 5:js(o,pa,qo);break;default:throw Error(t(329))}}}return fa(o,tn()),o.callbackNode===v?Ku.bind(null,o):null}function Zv(o,s){var v=Ps;return o.current.memoizedState.isDehydrated&&(Us(o,s).flags|=256),o=B0(o,s),o!==2&&(s=pa,pa=v,s!==null&&Of(s)),o}function Of(o){pa===null?pa=o:pa.push.apply(pa,o)}function Xv(o){for(var s=o;;){if(s.flags&16384){var v=s.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var w=0;w<v.length;w++){var O=v[w],L=O.getSnapshot;O=O.value;try{if(!hi(L(),O))return!1}catch{return!1}}}if(v=s.child,s.subtreeFlags&16384&&v!==null)v.return=s,s=v;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function _i(o,s){for(s&=~Yu,s&=~R0,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var v=31-ci(s),w=1<<v;o[v]=-1,s&=~w}}function M1(o){if(Ut&6)throw Error(t(327));Qu();var s=ji(o,0);if(!(s&1))return fa(o,tn()),null;var v=B0(o,s);if(o.tag!==0&&v===2){var w=Yp(o);w!==0&&(s=w,v=Zv(o,w))}if(v===1)throw v=Af,Us(o,0),_i(o,s),fa(o,tn()),v;if(v===6)throw Error(t(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,js(o,pa,qo),fa(o,tn()),null}function Wu(o,s){var v=Ut;Ut|=1;try{return o(s)}finally{Ut=v,Ut===0&&(qu=tn()+500,kr&&Oa())}}function $l(o){Vl!==null&&Vl.tag===0&&!(Ut&6)&&Qu();var s=Ut;Ut|=1;var v=sa.transition,w=gn;try{if(sa.transition=null,gn=1,o)return o()}finally{gn=w,sa.transition=v,Ut=s,!(Ut&6)&&Oa()}}function Jv(){Xa=$u.current,ln($u)}function Us(o,s){o.finishedWork=null,o.finishedLanes=0;var v=o.timeoutHandle;if(v!==-1&&(o.timeoutHandle=-1,s1(v)),nr!==null)for(v=nr.return;v!==null;){var w=v;switch(Sv(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&mi();break;case 3:zl(),ln(tr),ln(_t),l0();break;case 5:Lt(w);break;case 4:zl();break;case 13:ln(xt);break;case 19:ln(xt);break;case 10:Ml(w.type._context);break;case 22:case 23:Jv()}v=v.return}if(Xn=o,nr=o=Yl(o.current,null),Or=Xa=s,Cr=0,Af=null,Yu=R0=Yo=0,pa=Ps=null,Ir!==null){for(s=0;s<Ir.length;s++)if(v=Ir[s],w=v.interleaved,w!==null){v.interleaved=null;var O=w.next,L=v.pending;if(L!==null){var X=L.next;L.next=O,w.next=X}v.pending=w}Ir=null}return o}function P1(o,s){do{var v=nr;try{if(Tv(),s0.current=S0,bt){for(var w=Ln.memoizedState;w!==null;){var O=w.queue;O!==null&&(O.pending=null),w=w.next}bt=!1}if(Es=0,Vt=Oe=Ln=null,so=!1,Za=0,Wv.current=null,v===null||v.return===null){Cr=1,Af=s,nr=null;break}e:{var L=o,X=v.return,le=v,fe=s;if(s=Or,le.flags|=32768,fe!==null&&typeof fe=="object"&&typeof fe.then=="function"){var Ee=fe,Ie=le,Ve=Ie.tag;if(!(Ie.mode&1)&&(Ve===0||Ve===11||Ve===15)){var je=Ie.alternate;je?(Ie.updateQueue=je.updateQueue,Ie.memoizedState=je.memoizedState,Ie.lanes=je.lanes):(Ie.updateQueue=null,Ie.memoizedState=null)}var Je=Lv(X);if(Je!==null){Je.flags&=-257,zv(Je,X,le,L,s),Je.mode&1&&_1(L,Ee,s),s=Je,fe=Ee;var it=s.updateQueue;if(it===null){var st=new Set;st.add(fe),s.updateQueue=st}else it.add(fe);break e}else{if(!(s&1)){_1(L,Ee,s),em();break e}fe=Error(t(426))}}else if(Bn&&le.mode&1){var or=Lv(X);if(or!==null){!(or.flags&65536)&&(or.flags|=256),zv(or,X,le,L,s),Dv(Lu(fe,le));break e}}L=fe=Lu(fe,le),Cr!==4&&(Cr=2),Ps===null?Ps=[L]:Ps.push(L),L=X;do{switch(L.tag){case 3:L.flags|=65536,s&=-s,L.lanes|=s;var ge=w1(L,fe,s);Rv(L,ge);break e;case 1:le=fe;var he=L.type,Ce=L.stateNode;if(!(L.flags&128)&&(typeof he.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&(fo===null||!fo.has(Ce)))){L.flags|=65536,s&=-s,L.lanes|=s;var Ye=Cf(L,le,s);Rv(L,Ye);break e}}L=L.return}while(L!==null)}tm(v)}catch(ut){s=ut,nr===v&&v!==null&&(nr=v=v.return);continue}break}while(1)}function P0(){var o=Tf.current;return Tf.current=S0,o===null?S0:o}function em(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),Xn===null||!(Yo&268435455)&&!(R0&268435455)||_i(Xn,Or)}function B0(o,s){var v=Ut;Ut|=2;var w=P0();(Xn!==o||Or!==s)&&(qo=null,Us(o,s));do try{M_();break}catch(O){P1(o,O)}while(1);if(Tv(),Ut=v,Tf.current=w,nr!==null)throw Error(t(261));return Xn=null,Or=0,Cr}function M_(){for(;nr!==null;)B1(nr)}function P_(){for(;nr!==null&&!wl();)B1(nr)}function B1(o){var s=z1(o.alternate,o,Xa);o.memoizedProps=o.pendingProps,s===null?tm(o):nr=s,Wv.current=null}function tm(o){var s=o;do{var v=s.alternate;if(o=s.return,s.flags&32768){if(v=Yv(v,s),v!==null){v.flags&=32767,nr=v;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Cr=6,nr=null;return}}else if(v=N_(v,s,Xa),v!==null){nr=v;return}if(s=s.sibling,s!==null){nr=s;return}nr=s=o}while(s!==null);Cr===0&&(Cr=5)}function js(o,s,v){var w=gn,O=sa.transition;try{sa.transition=null,gn=1,B_(o,s,v,w)}finally{sa.transition=O,gn=w}return null}function B_(o,s,v,w){do Qu();while(Vl!==null);if(Ut&6)throw Error(t(327));v=o.finishedWork;var O=o.finishedLanes;if(v===null)return null;if(o.finishedWork=null,o.finishedLanes=0,v===o.current)throw Error(t(177));o.callbackNode=null,o.callbackPriority=0;var L=v.lanes|v.childLanes;if(s_(o,L),o===Xn&&(nr=Xn=null,Or=0),!(v.subtreeFlags&2064)&&!(v.flags&2064)||Hl||(Hl=!0,nm(_l,function(){return Qu(),null})),L=(v.flags&15990)!==0,v.subtreeFlags&15990||L){L=sa.transition,sa.transition=null;var X=gn;gn=1;var le=Ut;Ut|=4,Wv.current=null,T1(o,v),O1(v,o),$d(xs),ps=!!mv,xs=mv=null,o.current=v,R1(v),Td(),Ut=le,gn=X,sa.transition=L}else o.current=v;if(Hl&&(Hl=!1,Vl=o,N0=O),L=o.pendingLanes,L===0&&(fo=null),wy(v.stateNode),fa(o,tn()),s!==null)for(w=o.onRecoverableError,v=0;v<s.length;v++)O=s[v],w(O.value,{componentStack:O.stack,digest:O.digest});if(F0)throw F0=!1,o=Bs,Bs=null,o;return N0&1&&o.tag!==0&&Qu(),L=o.pendingLanes,L&1?o===M0?Gu++:(Gu=0,M0=o):Gu=0,Oa(),null}function Qu(){if(Vl!==null){var o=Gp(N0),s=sa.transition,v=gn;try{if(sa.transition=null,gn=16>o?16:o,Vl===null)var w=!1;else{if(o=Vl,Vl=null,N0=0,Ut&6)throw Error(t(331));var O=Ut;for(Ut|=4,rt=o.current;rt!==null;){var L=rt,X=L.child;if(rt.flags&16){var le=L.deletions;if(le!==null){for(var fe=0;fe<le.length;fe++){var Ee=le[fe];for(rt=Ee;rt!==null;){var Ie=rt;switch(Ie.tag){case 0:case 11:case 15:Df(8,Ie,L)}var Ve=Ie.child;if(Ve!==null)Ve.return=Ie,rt=Ve;else for(;rt!==null;){Ie=rt;var je=Ie.sibling,Je=Ie.return;if(Gv(Ie),Ie===Ee){rt=null;break}if(je!==null){je.return=Je,rt=je;break}rt=Je}}}var it=L.alternate;if(it!==null){var st=it.child;if(st!==null){it.child=null;do{var or=st.sibling;st.sibling=null,st=or}while(st!==null)}}rt=L}}if(L.subtreeFlags&2064&&X!==null)X.return=L,rt=X;else e:for(;rt!==null;){if(L=rt,L.flags&2048)switch(L.tag){case 0:case 11:case 15:Df(9,L,L.return)}var ge=L.sibling;if(ge!==null){ge.return=L.return,rt=ge;break e}rt=L.return}}var he=o.current;for(rt=he;rt!==null;){X=rt;var Ce=X.child;if(X.subtreeFlags&2064&&Ce!==null)Ce.return=X,rt=Ce;else e:for(X=he;rt!==null;){if(le=rt,le.flags&2048)try{switch(le.tag){case 0:case 11:case 15:kf(9,le)}}catch(ut){rr(le,le.return,ut)}if(le===X){rt=null;break e}var Ye=le.sibling;if(Ye!==null){Ye.return=le.return,rt=Ye;break e}rt=le.return}}if(Ut=O,Oa(),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(Vc,o)}catch{}w=!0}return w}finally{gn=v,sa.transition=s}}return!1}function L1(o,s,v){s=Lu(v,s),s=w1(o,s,1),o=Bl(o,s,1),s=ua(),o!==null&&(hs(o,1,s),fa(o,s))}function rr(o,s,v){if(o.tag===3)L1(o,o,v);else for(;s!==null;){if(s.tag===3){L1(s,o,v);break}else if(s.tag===1){var w=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(fo===null||!fo.has(w))){o=Lu(v,o),o=Cf(s,o,1),s=Bl(s,o,1),o=ua(),s!==null&&(hs(s,1,o),fa(s,o));break}}s=s.return}}function L_(o,s,v){var w=o.pingCache;w!==null&&w.delete(s),s=ua(),o.pingedLanes|=o.suspendedLanes&v,Xn===o&&(Or&v)===v&&(Cr===4||Cr===3&&(Or&130023424)===Or&&500>tn()-Qv?Us(o,0):Yu|=v),fa(o,s)}function L0(o,s){s===0&&(o.mode&1?(s=yu,yu<<=1,!(yu&130023424)&&(yu=4194304)):s=1);var v=ua();o=jo(o,s),o!==null&&(hs(o,s,v),fa(o,v))}function z_(o){var s=o.memoizedState,v=0;s!==null&&(v=s.retryLane),L0(o,v)}function U_(o,s){var v=0;switch(o.tag){case 13:var w=o.stateNode,O=o.memoizedState;O!==null&&(v=O.retryLane);break;case 19:w=o.stateNode;break;default:throw Error(t(314))}w!==null&&w.delete(s),L0(o,v)}var z1;z1=function(o,s,v){if(o!==null)if(o.memoizedProps!==s.pendingProps||tr.current)dr=!0;else{if(!(o.lanes&v)&&!(s.flags&128))return dr=!1,Vo(o,s,v);dr=!!(o.flags&131072)}else dr=!1,Bn&&s.flags&1048576&&_v(s,Ou,s.index);switch(s.lanes=0,s.tag){case 2:var w=s.type;oa(o,s),o=s.pendingProps;var O=vi(s,_t.current);Ke(s,v),O=Ul(null,s,w,o,O,v);var L=Ts();return s.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Yn(w)?(L=!0,Qd(s)):L=!1,s.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,Ov(s),O.updater=a0,s.stateNode=O,O._reactInternals=s,i0(s,w,o,v),s=S1(null,s,w,!0,L,v)):(s.tag=0,Bn&&L&&Zd(s),yr(null,s,O,v),s=s.child),s;case 16:w=s.elementType;e:{switch(oa(o,s),o=s.pendingProps,O=w._init,w=O(w._payload),s.type=w,O=s.tag=I_(w),o=Qa(w,o),O){case 0:s=zu(null,s,w,o,v);break e;case 1:s=Uv(null,s,w,o,v);break e;case 11:s=Il(null,s,w,o,v);break e;case 14:s=D0(null,s,w,Qa(w.type,o),v);break e}throw Error(t(306,w,""))}return s;case 0:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),zu(o,s,w,O,v);case 1:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Uv(o,s,w,O,v);case 3:e:{if(E1(s),o===null)throw Error(t(387));w=s.pendingProps,L=s.memoizedState,O=L.element,gr(o,s),Ll(s,w,null,v);var X=s.memoizedState;if(w=X.element,L.isDehydrated)if(L={element:w,isDehydrated:!1,cache:X.cache,pendingSuspenseBoundaries:X.pendingSuspenseBoundaries,transitions:X.transitions},s.updateQueue.baseState=L,s.memoizedState=L,s.flags&256){O=Lu(Error(t(423)),s),s=k0(o,s,w,v,O);break e}else if(w!==O){O=Lu(Error(t(424)),s),s=k0(o,s,w,v,O);break e}else for(Na=$i(s.stateNode.containerInfo.firstChild),Wa=s,Bn=!0,yi=null,v=b1(s,null,w,v),s.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Qn(),w===O){s=Hr(o,s,v);break e}yr(o,s,w,v)}s=s.child}return s;case 5:return gt(s),o===null&&Jd(s),w=s.type,O=s.pendingProps,L=o!==null?o.memoizedProps:null,X=O.children,uf(w,O)?X=null:L!==null&&uf(w,L)&&(s.flags|=32),Ot(o,s),yr(o,s,X,v),s.child;case 6:return o===null&&Jd(s),null;case 13:return Iv(o,s,v);case 4:return Nv(s,s.stateNode.containerInfo),w=s.pendingProps,o===null?s.child=Fu(s,null,w,v):yr(o,s,w,v),s.child;case 11:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Il(o,s,w,O,v);case 7:return yr(o,s,s.pendingProps,v),s.child;case 8:return yr(o,s,s.pendingProps.children,v),s.child;case 12:return yr(o,s,s.pendingProps.children,v),s.child;case 10:e:{if(w=s.type._context,O=s.pendingProps,L=s.memoizedProps,X=O.value,cn(lo,w._currentValue),w._currentValue=X,L!==null)if(hi(L.value,X)){if(L.children===O.children&&!tr.current){s=Hr(o,s,v);break e}}else for(L=s.child,L!==null&&(L.return=s);L!==null;){var le=L.dependencies;if(le!==null){X=L.child;for(var fe=le.firstContext;fe!==null;){if(fe.context===w){if(L.tag===1){fe=Io(-1,v&-v),fe.tag=2;var Ee=L.updateQueue;if(Ee!==null){Ee=Ee.shared;var Ie=Ee.pending;Ie===null?fe.next=fe:(fe.next=Ie.next,Ie.next=fe),Ee.pending=fe}}L.lanes|=v,fe=L.alternate,fe!==null&&(fe.lanes|=v),Tr(L.return,v,s),le.lanes|=v;break}fe=fe.next}}else if(L.tag===10)X=L.type===s.type?null:L.child;else if(L.tag===18){if(X=L.return,X===null)throw Error(t(341));X.lanes|=v,le=X.alternate,le!==null&&(le.lanes|=v),Tr(X,v,s),X=L.sibling}else X=L.child;if(X!==null)X.return=L;else for(X=L;X!==null;){if(X===s){X=null;break}if(L=X.sibling,L!==null){L.return=X.return,X=L;break}X=X.return}L=X}yr(o,s,O.children,v),s=s.child}return s;case 9:return O=s.type,w=s.pendingProps.children,Ke(s,v),O=ir(O),w=w(O),s.flags|=1,yr(o,s,w,v),s.child;case 14:return w=s.type,O=Qa(w,s.pendingProps),O=Qa(w.type,O),D0(o,s,w,O,v);case 15:return Ba(o,s,s.type,s.pendingProps,v);case 17:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),oa(o,s),s.tag=1,Yn(w)?(o=!0,Qd(s)):o=!1,Ke(s,v),m1(s,w,O),i0(s,w,O,v),S1(null,s,w,!0,o,v);case 19:return $v(o,s,v);case 22:return Fs(o,s,v)}throw Error(t(156,s.tag))};function nm(o,s){return $n(o,s)}function j_(o,s,v,w){this.tag=o,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(o,s,v,w){return new j_(o,s,v,w)}function rm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function I_(o){if(typeof o=="function")return rm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===U)return 11;if(o===K)return 14}return 2}function Yl(o,s){var v=o.alternate;return v===null?(v=Si(o.tag,s,o.key,o.mode),v.elementType=o.elementType,v.type=o.type,v.stateNode=o.stateNode,v.alternate=o,o.alternate=v):(v.pendingProps=s,v.type=o.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=o.flags&14680064,v.childLanes=o.childLanes,v.lanes=o.lanes,v.child=o.child,v.memoizedProps=o.memoizedProps,v.memoizedState=o.memoizedState,v.updateQueue=o.updateQueue,s=o.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},v.sibling=o.sibling,v.index=o.index,v.ref=o.ref,v}function z0(o,s,v,w,O,L){var X=2;if(w=o,typeof o=="function")rm(o)&&(X=1);else if(typeof o=="string")X=5;else e:switch(o){case M:return Is(v.children,O,L,s);case I:X=8,O|=8;break;case Y:return o=Si(12,v,s,O|2),o.elementType=Y,o.lanes=L,o;case H:return o=Si(13,v,s,O),o.elementType=H,o.lanes=L,o;case V:return o=Si(19,v,s,O),o.elementType=V,o.lanes=L,o;case J:return Rf(v,O,L,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case B:X=10;break e;case P:X=9;break e;case U:X=11;break e;case K:X=14;break e;case ee:X=16,w=null;break e}throw Error(t(130,o==null?o:typeof o,""))}return s=Si(X,v,s,O),s.elementType=o,s.type=w,s.lanes=L,s}function Is(o,s,v,w){return o=Si(7,o,w,s),o.lanes=v,o}function Rf(o,s,v,w){return o=Si(22,o,w,s),o.elementType=J,o.lanes=v,o.stateNode={isHidden:!1},o}function Ff(o,s,v){return o=Si(6,o,null,s),o.lanes=v,o}function Hs(o,s,v){return s=Si(4,o.children!==null?o.children:[],o.key,s),s.lanes=v,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function H_(o,s,v,w,O){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.identifierPrefix=w,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function U0(o,s,v,w,O,L,X,le,fe){return o=new H_(o,s,v,le,fe),s===1?(s=1,L===!0&&(s|=8)):s=0,L=Si(3,null,null,s),o.current=L,L.stateNode=o,L.memoizedState={element:w,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ov(L),o}function U1(o,s,v){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:w==null?null:""+w,children:o,containerInfo:s,implementation:v}}function am(o){if(!o)return oo;o=o._reactInternals;e:{if(Rt(o)!==o||o.tag!==1)throw Error(t(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Yn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(t(171))}if(o.tag===1){var v=o.type;if(Yn(v))return df(o,v,s)}return s}function j1(o,s,v,w,O,L,X,le,fe){return o=U0(v,w,!0,o,O,L,X,le,fe),o.context=am(null),v=o.current,w=ua(),O=hr(v),L=Io(w,O),L.callback=s??null,Bl(v,L,O),o.current.lanes=O,hs(o,O,w),fa(o,w),o}function Nf(o,s,v,w){var O=s.current,L=ua(),X=hr(O);return v=am(v),s.context===null?s.context=v:s.pendingContext=v,s=Io(L,X),s.payload={element:o},w=w===void 0?null:w,w!==null&&(s.callback=w),o=Bl(O,s,X),o!==null&&(ca(o,O,X,L),r0(o,O,X)),X}function j0(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function I1(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var v=o.retryLane;o.retryLane=v!==0&&v<s?v:s}}function im(o,s){I1(o,s),(o=o.alternate)&&I1(o,s)}function H1(){return null}var om=typeof reportError=="function"?reportError:function(o){};function I0(o){this._internalRoot=o}Go.prototype.render=I0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(t(409));Nf(o,s,null,null)},Go.prototype.unmount=I0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;$l(function(){Nf(null,o,null,null)}),s[zo]=null}};function Go(o){this._internalRoot=o}Go.prototype.unstable_scheduleHydration=function(o){if(o){var s=Dy();o={blockedOn:null,target:o,priority:s};for(var v=0;v<Sn.length&&s!==0&&s<Sn[v].priority;v++);Sn.splice(v,0,o),v===0&&ky(o)}};function lm(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function H0(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function V1(){}function V_(o,s,v,w,O){if(O){if(typeof w=="function"){var L=w;w=function(){var Ee=j0(X);L.call(Ee)}}var X=j1(s,w,o,0,null,!1,!1,"",V1);return o._reactRootContainer=X,o[zo]=X.current,Tu(o.nodeType===8?o.parentNode:o),$l(),X}for(;O=o.lastChild;)o.removeChild(O);if(typeof w=="function"){var le=w;w=function(){var Ee=j0(fe);le.call(Ee)}}var fe=U0(o,0,!1,null,null,!1,!1,"",V1);return o._reactRootContainer=fe,o[zo]=fe.current,Tu(o.nodeType===8?o.parentNode:o),$l(function(){Nf(s,fe,v,w)}),fe}function V0(o,s,v,w,O){var L=v._reactRootContainer;if(L){var X=L;if(typeof O=="function"){var le=O;O=function(){var fe=j0(X);le.call(fe)}}Nf(s,X,o,O)}else X=V_(v,s,o,O,w);return j0(X)}Ey=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var v=ds(s.pendingLanes);v!==0&&($c(s,v|1),fa(s,tn()),!(Ut&6)&&(qu=tn()+500,Oa()))}break;case 13:$l(function(){var w=jo(o,1);if(w!==null){var O=ua();ca(w,o,1,O)}}),im(o,1)}},Fd=function(o){if(o.tag===13){var s=jo(o,134217728);if(s!==null){var v=ua();ca(s,o,134217728,v)}im(o,134217728)}},An=function(o){if(o.tag===13){var s=hr(o),v=jo(o,s);if(v!==null){var w=ua();ca(v,o,s,w)}im(o,s)}},Dy=function(){return gn},Kp=function(o,s){var v=gn;try{return gn=o,s()}finally{gn=v}},na=function(o,s,v){switch(s){case"input":if(Zt(o,v),s=v.name,v.type==="radio"&&s!=null){for(v=o;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<v.length;s++){var w=v[s];if(w!==o&&w.form===o.form){var O=pt(w);if(!O)throw Error(t(90));ke(w),Zt(w,O)}}}break;case"textarea":In(o,v);break;case"select":s=v.value,s!=null&&un(o,!!v.multiple,s,!1)}},bl=Wu,gu=$l;var $_={usingClientEntryPoint:!1,Events:[ff,Au,pt,Do,xl,Wu]},Zu={findFiberByHostInstance:pi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Y_={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Sr(o),o===null?null:o.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||H1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$0.isDisabled&&$0.supportsFiber)try{Vc=$0.inject(Y_),Ui=$0}catch{}}return ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$_,ai.createPortal=function(o,s){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lm(s))throw Error(t(200));return U1(o,s,null,v)},ai.createRoot=function(o,s){if(!lm(o))throw Error(t(299));var v=!1,w="",O=om;return s!=null&&(s.unstable_strictMode===!0&&(v=!0),s.identifierPrefix!==void 0&&(w=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError)),s=U0(o,1,!1,null,null,v,!1,w,O),o[zo]=s.current,Tu(o.nodeType===8?o.parentNode:o),new I0(s)},ai.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(t(188)):(o=Object.keys(o).join(","),Error(t(268,o)));return o=Sr(s),o=o===null?null:o.stateNode,o},ai.flushSync=function(o){return $l(o)},ai.hydrate=function(o,s,v){if(!H0(s))throw Error(t(200));return V0(null,o,s,!0,v)},ai.hydrateRoot=function(o,s,v){if(!lm(o))throw Error(t(405));var w=v!=null&&v.hydratedSources||null,O=!1,L="",X=om;if(v!=null&&(v.unstable_strictMode===!0&&(O=!0),v.identifierPrefix!==void 0&&(L=v.identifierPrefix),v.onRecoverableError!==void 0&&(X=v.onRecoverableError)),s=j1(s,null,o,1,v??null,O,!1,L,X),o[zo]=s.current,Tu(o),w)for(o=0;o<w.length;o++)v=w[o],O=v._getVersion,O=O(v._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[v,O]:s.mutableSourceEagerHydrationData.push(v,O);return new Go(s)},ai.render=function(o,s,v){if(!H0(s))throw Error(t(200));return V0(null,o,s,!1,v)},ai.unmountComponentAtNode=function(o){if(!H0(o))throw Error(t(40));return o._reactRootContainer?($l(function(){V0(null,null,o,!1,function(){o._reactRootContainer=null,o[zo]=null})}),!0):!1},ai.unstable_batchedUpdates=Wu,ai.unstable_renderSubtreeIntoContainer=function(o,s,v,w){if(!H0(v))throw Error(t(200));if(o==null||o._reactInternals===void 0)throw Error(t(38));return V0(o,s,v,!1,w)},ai.version="18.2.0-next-9e3b772b8-20220608",ai}var ii={};var M8;function p9(){return M8||(M8=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=W,r=F8(),t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function l(n){i=n}function f(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];p("warn",n,u)}}function c(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];p("error",n,u)}}function p(n,a,u){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(a+="%s",u=u.concat([y]));var S=u.map(function(F){return String(F)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,S)}}var g=0,d=1,m=2,C=3,b=4,x=5,_=6,k=7,E=8,A=9,T=10,D=11,R=12,N=13,z=14,M=15,I=16,Y=17,B=18,P=19,U=21,H=22,V=23,K=24,ee=25,J=!0,q=!1,te=!1,Z=!1,$=!1,ne=!0,oe=!1,ae=!1,se=!0,ve=!0,we=!0,ce=new Set,ye={},De={};function Pe(n,a){ke(n,a),ke(n+"Capture",a)}function ke(n,a){ye[n]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),ye[n]=a;{var u=n.toLowerCase();De[u]=n,n==="onDoubleClick"&&(De.ondblclick=n)}for(var h=0;h<a.length;h++)ce.add(a[h])}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ne=Object.prototype.hasOwnProperty;function dt(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,u=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u}}function Xe(n){try{return Zt(n),!1}catch{return!0}}function Zt(n){return""+n}function sn(n,a){if(Xe(n))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,dt(n)),Zt(n)}function kn(n){if(Xe(n))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(n)),Zt(n)}function jn(n,a){if(Xe(n))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,dt(n)),Zt(n)}function un(n,a){if(Xe(n))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,dt(n)),Zt(n)}function It(n){if(Xe(n))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",dt(n)),Zt(n)}function on(n){if(Xe(n))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",dt(n)),Zt(n)}var In=0,Mn=1,Tn=2,Gt=3,Kn=4,ka=5,Lr=6,qe=":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",at=qe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ct=new RegExp("^["+qe+"]["+at+"]*$"),Ht={},Nn={};function ur(n){return Ne.call(Nn,n)?!0:Ne.call(Ht,n)?!1:ct.test(n)?(Nn[n]=!0,!0):(Ht[n]=!0,c("Invalid attribute name: `%s`",n),!1)}function Wn(n,a,u){return a!==null?a.type===In:u?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function zr(n,a,u,h){if(u!==null&&u.type===In)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(h)return!1;if(u!==null)return!u.acceptsBooleans;var y=n.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function _n(n,a,u,h){if(a===null||typeof a>"u"||zr(n,a,u,h))return!0;if(h)return!1;if(u!==null)switch(u.type){case Gt:return!a;case Kn:return a===!1;case ka:return isNaN(a);case Lr:return isNaN(a)||a<1}return!1}function na(n){return mn.hasOwnProperty(n)?mn[n]:null}function vn(n,a,u,h,y,S,F){this.acceptsBooleans=a===Tn||a===Gt||a===Kn,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=n,this.type=a,this.sanitizeURL=S,this.removeEmptyString=F}var mn={},yl=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yl.forEach(function(n){mn[n]=new vn(n,In,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],u=n[1];mn[a]=new vn(a,Mn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){mn[n]=new vn(n,Tn,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){mn[n]=new vn(n,Tn,!1,n,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"].forEach(function(n){mn[n]=new vn(n,Gt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){mn[n]=new vn(n,Gt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){mn[n]=new vn(n,Kn,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){mn[n]=new vn(n,Lr,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){mn[n]=new vn(n,ka,!1,n.toLowerCase(),null,!1,!1)});var Do=/[\-\:]([a-z])/g,xl=function(n){return n[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"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Mn,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Mn,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Mn,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){mn[n]=new vn(n,Mn,!1,n.toLowerCase(),null,!1,!1)});var bl="xlinkHref";mn[bl]=new vn("xlinkHref",Mn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){mn[n]=new vn(n,Mn,!1,n.toLowerCase(),null,!0,!0)});var gu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ko=!1;function To(n){!ko&&gu.test(n)&&(ko=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function Ao(n,a,u,h){if(h.mustUseProperty){var y=h.propertyName;return n[y]}else{sn(u,a),h.sanitizeURL&&To(""+u);var S=h.attributeName,F=null;if(h.type===Kn){if(n.hasAttribute(S)){var j=n.getAttribute(S);return j===""?!0:_n(a,u,h,!1)?j:j===""+u?u:j}}else if(n.hasAttribute(S)){if(_n(a,u,h,!1))return n.getAttribute(S);if(h.type===Gt)return u;F=n.getAttribute(S)}return _n(a,u,h,!1)?F===null?u:F:F===""+u?u:F}}function Oo(n,a,u,h){{if(!ur(a))return;if(!n.hasAttribute(a))return u===void 0?void 0:null;var y=n.getAttribute(a);return sn(u,a),y===""+u?u:y}}function Hn(n,a,u,h){var y=na(a);if(!Wn(a,y,h)){if(_n(a,u,y,h)&&(u=null),h||y===null){if(ur(a)){var S=a;u===null?n.removeAttribute(S):(sn(u,a),n.setAttribute(S,""+u))}return}var F=y.mustUseProperty;if(F){var j=y.propertyName;if(u===null){var G=y.type;n[j]=G===Gt?!1:""}else n[j]=u;return}var re=y.attributeName,ie=y.attributeNamespace;if(u===null)n.removeAttribute(re);else{var pe=y.type,de;pe===Gt||pe===Kn&&u===!0?de="":(sn(u,re),de=""+u,y.sanitizeURL&&To(de.toString())),ie?n.setAttributeNS(ie,re,de):n.setAttribute(re,de)}}}var Ur=Symbol.for("react.element"),ra=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Cl=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),He=Symbol.for("react.provider"),Qe=Symbol.for("react.context"),mt=Symbol.for("react.forward_ref"),Rt=Symbol.for("react.suspense"),Xt=Symbol.for("react.suspense_list"),Mt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),Sr=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),$n=Symbol.for("react.offscreen"),ha=Symbol.for("react.legacy_hidden"),wl=Symbol.for("react.cache"),Td=Symbol.for("react.tracing_marker"),tn=Symbol.iterator,o_="@@iterator";function Ro(n){if(n===null||typeof n!="object")return null;var a=tn&&n[tn]||n[o_];return typeof a=="function"?a:null}var zt=Object.assign,_l=0,Cy,Vp,Vc,Ui,wy,ci,_y;function Sy(){}Sy.__reactDisabledLog=!0;function l_(){{if(_l===0){Cy=console.log,Vp=console.info,Vc=console.warn,Ui=console.error,wy=console.group,ci=console.groupCollapsed,_y=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Sy,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}_l++}}function Ad(){{if(_l--,_l===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:zt({},n,{value:Cy}),info:zt({},n,{value:Vp}),warn:zt({},n,{value:Vc}),error:zt({},n,{value:Ui}),group:zt({},n,{value:wy}),groupCollapsed:zt({},n,{value:ci}),groupEnd:zt({},n,{value:_y})})}_l<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yu=t.ReactCurrentDispatcher,ds;function ji(n,a,u){{if(ds===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);ds=h&&h[1]||""}return`
76
+ `+L.stack}return{value:o,source:s,stack:O,digest:null}}function bf(o,s,v){return{value:o,source:null,stack:v??null,digest:s??null}}function E0(o,s){try{}catch(v){setTimeout(function(){throw v})}}var O_=typeof WeakMap=="function"?WeakMap:Map;function w1(o,s,v){v=Io(-1,v),v.tag=3,v.payload={element:null};var w=s.value;return v.callback=function(){F0||(F0=!0,Bs=w),E0(o,s)},v}function Cf(o,s,v){v=Io(-1,v),v.tag=3;var w=o.type.getDerivedStateFromError;if(typeof w=="function"){var O=s.value;v.payload=function(){return w(O)},v.callback=function(){E0(o,s)}}var L=o.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(v.callback=function(){E0(o,s),typeof w!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var Z=s.stack;this.componentDidCatch(s.value,{componentStack:Z!==null?Z:""})}),v}function _1(o,s,v){var w=o.pingCache;if(w===null){w=o.pingCache=new O_;var O=new Set;w.set(s,O)}else O=w.get(s),O===void 0&&(O=new Set,w.set(s,O));O.has(v)||(O.add(v),o=L_.bind(null,o,s,v),s.then(o,o))}function Lv(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function zv(o,s,v,w,O){return o.mode&1?(o.flags|=65536,o.lanes=O,o):(o===s?o.flags|=65536:(o.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(s=Io(-1,1),s.tag=2,Bl(v,s,1))),v.lanes|=1),o)}var R_=R.ReactCurrentOwner,dr=!1;function yr(o,s,v,w){s.child=o===null?b1(s,null,v,w):Fu(s,o.child,v,w)}function Il(o,s,v,w,O){v=v.render;var L=s.ref;return Ke(s,O),w=Ul(o,s,v,w,L,O),v=Ts(),o!==null&&!dr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Hr(o,s,O)):(Bn&&v&&Zd(s),s.flags|=1,yr(o,s,w,O),s.child)}function D0(o,s,v,w,O){if(o===null){var L=v.type;return typeof L=="function"&&!rm(L)&&L.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(s.tag=15,s.type=L,Ba(o,s,L,w,O)):(o=z0(v.type,null,w,s,s.mode,O),o.ref=s.ref,o.return=s,s.child=o)}if(L=o.child,!(o.lanes&O)){var Z=L.memoizedProps;if(v=v.compare,v=v!==null?v:tf,v(Z,w)&&o.ref===s.ref)return Hr(o,s,O)}return s.flags|=1,o=Yl(L,w),o.ref=s.ref,o.return=s,s.child=o}function Ba(o,s,v,w,O){if(o!==null){var L=o.memoizedProps;if(tf(L,w)&&o.ref===s.ref)if(dr=!1,s.pendingProps=w=L,(o.lanes&O)!==0)o.flags&131072&&(dr=!0);else return s.lanes=o.lanes,Hr(o,s,O)}return zu(o,s,v,w,O)}function Fs(o,s,v){var w=s.pendingProps,O=w.children,L=o!==null?o.memoizedState:null;if(w.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},cn($u,Xa),Xa|=v;else{if(!(v&1073741824))return o=L!==null?L.baseLanes|v:v,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,cn($u,Xa),Xa|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=L!==null?L.baseLanes:v,cn($u,Xa),Xa|=w}else L!==null?(w=L.baseLanes|v,s.memoizedState=null):w=v,cn($u,Xa),Xa|=w;return yr(o,s,O,v),s.child}function Ot(o,s){var v=s.ref;(o===null&&v!==null||o!==null&&o.ref!==v)&&(s.flags|=512,s.flags|=2097152)}function zu(o,s,v,w,O){var L=Yn(v)?Aa:_t.current;return L=vi(s,L),Ke(s,O),v=Ul(o,s,v,w,L,O),w=Ts(),o!==null&&!dr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Hr(o,s,O)):(Bn&&w&&Zd(s),s.flags|=1,yr(o,s,v,O),s.child)}function Uv(o,s,v,w,O){if(Yn(v)){var L=!0;Qd(s)}else L=!1;if(Ke(s,O),s.stateNode===null)oa(o,s),m1(s,v,w),i0(s,v,w,O),w=!0;else if(o===null){var Z=s.stateNode,le=s.memoizedProps;Z.props=le;var fe=Z.context,Ee=v.contextType;typeof Ee=="object"&&Ee!==null?Ee=ir(Ee):(Ee=Yn(v)?Aa:_t.current,Ee=vi(s,Ee));var Ie=v.getDerivedStateFromProps,Ve=typeof Ie=="function"||typeof Z.getSnapshotBeforeUpdate=="function";Ve||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(le!==w||fe!==Ee)&&g1(s,Z,w,Ee),Pl=!1;var je=s.memoizedState;Z.state=je,Ll(s,w,Z,O),fe=s.memoizedState,le!==w||je!==fe||tr.current||Pl?(typeof Ie=="function"&&(Fv(s,v,Ie,w),fe=s.memoizedState),(le=Pl||v1(s,v,le,w,je,fe,Ee))?(Ve||typeof Z.UNSAFE_componentWillMount!="function"&&typeof Z.componentWillMount!="function"||(typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount()),typeof Z.componentDidMount=="function"&&(s.flags|=4194308)):(typeof Z.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=w,s.memoizedState=fe),Z.props=w,Z.state=fe,Z.context=Ee,w=le):(typeof Z.componentDidMount=="function"&&(s.flags|=4194308),w=!1)}else{Z=s.stateNode,gr(o,s),le=s.memoizedProps,Ee=s.type===s.elementType?le:Qa(s.type,le),Z.props=Ee,Ve=s.pendingProps,je=Z.context,fe=v.contextType,typeof fe=="object"&&fe!==null?fe=ir(fe):(fe=Yn(v)?Aa:_t.current,fe=vi(s,fe));var Je=v.getDerivedStateFromProps;(Ie=typeof Je=="function"||typeof Z.getSnapshotBeforeUpdate=="function")||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(le!==Ve||je!==fe)&&g1(s,Z,w,fe),Pl=!1,je=s.memoizedState,Z.state=je,Ll(s,w,Z,O);var it=s.memoizedState;le!==Ve||je!==it||tr.current||Pl?(typeof Je=="function"&&(Fv(s,v,Je,w),it=s.memoizedState),(Ee=Pl||v1(s,v,Ee,w,je,it,fe)||!1)?(Ie||typeof Z.UNSAFE_componentWillUpdate!="function"&&typeof Z.componentWillUpdate!="function"||(typeof Z.componentWillUpdate=="function"&&Z.componentWillUpdate(w,it,fe),typeof Z.UNSAFE_componentWillUpdate=="function"&&Z.UNSAFE_componentWillUpdate(w,it,fe)),typeof Z.componentDidUpdate=="function"&&(s.flags|=4),typeof Z.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof Z.componentDidUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=1024),s.memoizedProps=w,s.memoizedState=it),Z.props=w,Z.state=it,Z.context=fe,w=Ee):(typeof Z.componentDidUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&je===o.memoizedState||(s.flags|=1024),w=!1)}return S1(o,s,v,w,L,O)}function S1(o,s,v,w,O,L){Ot(o,s);var Z=(s.flags&128)!==0;if(!w&&!Z)return O&&u1(s,v,!1),Hr(o,s,L);w=s.stateNode,R_.current=s;var le=Z&&typeof v.getDerivedStateFromError!="function"?null:w.render();return s.flags|=1,o!==null&&Z?(s.child=Fu(s,o.child,null,L),s.child=Fu(s,null,le,L)):yr(o,s,le,L),s.memoizedState=w.state,O&&u1(s,v,!0),s.child}function E1(o){var s=o.stateNode;s.pendingContext?Rl(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Rl(o,s.context,!1),Nv(o,s.containerInfo)}function k0(o,s,v,w,O){return Qn(),Dv(O),s.flags|=256,yr(o,s,v,w),s.child}var Ns={dehydrated:null,treeContext:null,retryLane:0};function jv(o){return{baseLanes:o,cachePool:null,transitions:null}}function Iv(o,s,v){var w=s.pendingProps,O=xt.current,L=!1,Z=(s.flags&128)!==0,le;if((le=Z)||(le=o!==null&&o.memoizedState===null?!1:(O&2)!==0),le?(L=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(O|=1),cn(xt,O&1),o===null)return Jd(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(s.mode&1?o.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(Z=w.children,o=w.fallback,L?(w=s.mode,L=s.child,Z={mode:"hidden",children:Z},!(w&1)&&L!==null?(L.childLanes=0,L.pendingProps=Z):L=Rf(Z,w,0,null),o=Is(o,w,v,null),L.return=s,o.return=s,L.sibling=o,s.child=L,s.child.memoizedState=jv(v),s.memoizedState=Ns,o):Hv(s,Z));if(O=o.memoizedState,O!==null&&(le=O.dehydrated,le!==null))return F_(o,s,Z,w,le,O,v);if(L){L=w.fallback,Z=s.mode,O=o.child,le=O.sibling;var fe={mode:"hidden",children:w.children};return!(Z&1)&&s.child!==O?(w=s.child,w.childLanes=0,w.pendingProps=fe,s.deletions=null):(w=Yl(O,fe),w.subtreeFlags=O.subtreeFlags&14680064),le!==null?L=Yl(le,L):(L=Is(L,Z,v,null),L.flags|=2),L.return=s,w.return=s,w.sibling=L,s.child=w,w=L,L=s.child,Z=o.child.memoizedState,Z=Z===null?jv(v):{baseLanes:Z.baseLanes|v,cachePool:null,transitions:Z.transitions},L.memoizedState=Z,L.childLanes=o.childLanes&~v,s.memoizedState=Ns,w}return L=o.child,o=L.sibling,w=Yl(L,{mode:"visible",children:w.children}),!(s.mode&1)&&(w.lanes=v),w.return=s,w.sibling=null,o!==null&&(v=s.deletions,v===null?(s.deletions=[o],s.flags|=16):v.push(o)),s.child=w,s.memoizedState=null,w}function Hv(o,s){return s=Rf({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Uu(o,s,v,w){return w!==null&&Dv(w),Fu(s,o.child,null,v),o=Hv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function F_(o,s,v,w,O,L,Z){if(v)return s.flags&256?(s.flags&=-257,w=bf(Error(t(422))),Uu(o,s,Z,w)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(L=w.fallback,O=s.mode,w=Rf({mode:"visible",children:w.children},O,0,null),L=Is(L,O,Z,null),L.flags|=2,w.return=s,L.return=s,w.sibling=L,s.child=w,s.mode&1&&Fu(s,o.child,null,Z),s.child.memoizedState=jv(Z),s.memoizedState=Ns,L);if(!(s.mode&1))return Uu(o,s,Z,null);if(O.data==="$!"){if(w=O.nextSibling&&O.nextSibling.dataset,w)var le=w.dgst;return w=le,L=Error(t(419)),w=bf(L,w,void 0),Uu(o,s,Z,w)}if(le=(Z&o.childLanes)!==0,dr||le){if(w=Xn,w!==null){switch(Z&-Z){case 4:O=2;break;case 16:O=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:O=32;break;case 536870912:O=268435456;break;default:O=0}O=O&(w.suspendedLanes|Z)?0:O,O!==0&&O!==L.retryLane&&(L.retryLane=O,jo(o,O),ca(w,o,O,-1))}return em(),w=bf(Error(t(421))),Uu(o,s,Z,w)}return O.data==="$?"?(s.flags|=128,s.child=o.child,s=z_.bind(null,o),O._reactRetry=s,null):(o=L.treeContext,Na=$i(O.nextSibling),Wa=s,Bn=!0,yi=null,o!==null&&(Fa[ia++]=jr,Fa[ia++]=Uo,Fa[ia++]=gi,jr=o.id,Uo=o.overflow,gi=s),s=Hv(s,w.children),s.flags|=4096,s)}function Vv(o,s,v){o.lanes|=s;var w=o.alternate;w!==null&&(w.lanes|=s),Tr(o.return,s,v)}function T0(o,s,v,w,O){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:w,tail:v,tailMode:O}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=w,L.tail=v,L.tailMode=O)}function $v(o,s,v){var w=s.pendingProps,O=w.revealOrder,L=w.tail;if(yr(o,s,w.children,v),w=xt.current,w&2)w=w&1|2,s.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Vv(o,v,s);else if(o.tag===19)Vv(o,v,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}w&=1}if(cn(xt,w),!(s.mode&1))s.memoizedState=null;else switch(O){case"forwards":for(v=s.child,O=null;v!==null;)o=v.alternate,o!==null&&Zn(o)===null&&(O=v),v=v.sibling;v=O,v===null?(O=s.child,s.child=null):(O=v.sibling,v.sibling=null),T0(s,!1,O,v,L);break;case"backwards":for(v=null,O=s.child,s.child=null;O!==null;){if(o=O.alternate,o!==null&&Zn(o)===null){s.child=O;break}o=O.sibling,O.sibling=v,v=O,O=o}T0(s,!0,v,null,L);break;case"together":T0(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function oa(o,s){!(s.mode&1)&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Hr(o,s,v){if(o!==null&&(s.dependencies=o.dependencies),Yo|=s.lanes,!(v&s.childLanes))return null;if(o!==null&&s.child!==o.child)throw Error(t(153));if(s.child!==null){for(o=s.child,v=Yl(o,o.pendingProps),s.child=v,v.return=s;o.sibling!==null;)o=o.sibling,v=v.sibling=Yl(o,o.pendingProps),v.return=s;v.sibling=null}return s.child}function Vo(o,s,v){switch(s.tag){case 3:E1(s),Qn();break;case 5:gt(s);break;case 1:Yn(s.type)&&Qd(s);break;case 4:Nv(s,s.stateNode.containerInfo);break;case 10:var w=s.type._context,O=s.memoizedProps.value;cn(lo,w._currentValue),w._currentValue=O;break;case 13:if(w=s.memoizedState,w!==null)return w.dehydrated!==null?(cn(xt,xt.current&1),s.flags|=128,null):v&s.child.childLanes?Iv(o,s,v):(cn(xt,xt.current&1),o=Hr(o,s,v),o!==null?o.sibling:null);cn(xt,xt.current&1);break;case 19:if(w=(v&s.childLanes)!==0,o.flags&128){if(w)return $v(o,s,v);s.flags|=128}if(O=s.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),cn(xt,xt.current),w)break;return null;case 22:case 23:return s.lanes=0,Fs(o,s,v)}return Hr(o,s,v)}var wf,Ms,Ci,xr;wf=function(o,s){for(var v=s.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===s)break;for(;v.sibling===null;){if(v.return===null||v.return===s)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},Ms=function(){},Ci=function(o,s,v,w){var O=o.memoizedProps;if(O!==w){o=s.stateNode,Ss(Yi.current);var L=null;switch(v){case"input":O=Ne(o,O),w=Ne(o,w),L=[];break;case"select":O=X({},O,{value:void 0}),w=X({},w,{value:void 0}),L=[];break;case"textarea":O=It(o,O),w=It(o,w),L=[];break;default:typeof O.onClick!="function"&&typeof w.onClick=="function"&&(o.onclick=Wd)}ur(v,w);var Z;v=null;for(Ee in O)if(!w.hasOwnProperty(Ee)&&O.hasOwnProperty(Ee)&&O[Ee]!=null)if(Ee==="style"){var le=O[Ee];for(Z in le)le.hasOwnProperty(Z)&&(v||(v={}),v[Z]="")}else Ee!=="dangerouslySetInnerHTML"&&Ee!=="children"&&Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&Ee!=="autoFocus"&&(l.hasOwnProperty(Ee)?L||(L=[]):(L=L||[]).push(Ee,null));for(Ee in w){var fe=w[Ee];if(le=O!=null?O[Ee]:void 0,w.hasOwnProperty(Ee)&&fe!==le&&(fe!=null||le!=null))if(Ee==="style")if(le){for(Z in le)!le.hasOwnProperty(Z)||fe&&fe.hasOwnProperty(Z)||(v||(v={}),v[Z]="");for(Z in fe)fe.hasOwnProperty(Z)&&le[Z]!==fe[Z]&&(v||(v={}),v[Z]=fe[Z])}else v||(L||(L=[]),L.push(Ee,v)),v=fe;else Ee==="dangerouslySetInnerHTML"?(fe=fe?fe.__html:void 0,le=le?le.__html:void 0,fe!=null&&le!==fe&&(L=L||[]).push(Ee,fe)):Ee==="children"?typeof fe!="string"&&typeof fe!="number"||(L=L||[]).push(Ee,""+fe):Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&(l.hasOwnProperty(Ee)?(fe!=null&&Ee==="onScroll"&&On("scroll",o),L||le===fe||(L=[])):(L=L||[]).push(Ee,fe))}v&&(L=L||[]).push("style",v);var Ee=L;(s.updateQueue=Ee)&&(s.flags|=4)}},xr=function(o,s,v,w){v!==w&&(s.flags|=4)};function _f(o,s){if(!Bn)switch(o.tailMode){case"hidden":s=o.tail;for(var v=null;s!==null;)s.alternate!==null&&(v=s),s=s.sibling;v===null?o.tail=null:v.sibling=null;break;case"collapsed":v=o.tail;for(var w=null;v!==null;)v.alternate!==null&&(w=v),v=v.sibling;w===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:w.sibling=null}}function la(o){var s=o.alternate!==null&&o.alternate.child===o.child,v=0,w=0;if(s)for(var O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags&14680064,w|=O.flags&14680064,O.return=o,O=O.sibling;else for(O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags,w|=O.flags,O.return=o,O=O.sibling;return o.subtreeFlags|=w,o.childLanes=v,s}function N_(o,s,v){var w=s.pendingProps;switch(Sv(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return la(s),null;case 1:return Yn(s.type)&&mi(),la(s),null;case 3:return w=s.stateNode,zl(),ln(tr),ln(_t),l0(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(o===null||o.child===null)&&(e0(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,yi!==null&&(Of(yi),yi=null))),Ms(o,s),la(s),null;case 5:Lt(s);var O=Ss(Nu.current);if(v=s.type,o!==null&&s.stateNode!=null)Ci(o,s,v,w,O),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!w){if(s.stateNode===null)throw Error(t(166));return la(s),null}if(o=Ss(Yi.current),e0(s)){w=s.stateNode,v=s.type;var L=s.memoizedProps;switch(w[io]=s,w[Cs]=L,o=(s.mode&1)!==0,v){case"dialog":On("cancel",w),On("close",w);break;case"iframe":case"object":case"embed":On("load",w);break;case"video":case"audio":for(O=0;O<of.length;O++)On(of[O],w);break;case"source":On("error",w);break;case"img":case"image":case"link":On("error",w),On("load",w);break;case"details":On("toggle",w);break;case"input":dt(w,L),On("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!L.multiple},On("invalid",w);break;case"textarea":on(w,L),On("invalid",w)}ur(v,L),O=null;for(var Z in L)if(L.hasOwnProperty(Z)){var le=L[Z];Z==="children"?typeof le=="string"?w.textContent!==le&&(L.suppressHydrationWarning!==!0&&Kd(w.textContent,le,o),O=["children",le]):typeof le=="number"&&w.textContent!==""+le&&(L.suppressHydrationWarning!==!0&&Kd(w.textContent,le,o),O=["children",""+le]):l.hasOwnProperty(Z)&&le!=null&&Z==="onScroll"&&On("scroll",w)}switch(v){case"input":Pe(w),sn(w,L,!0);break;case"textarea":Pe(w),Mn(w);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(w.onclick=Wd)}w=O,s.updateQueue=w,w!==null&&(s.flags|=4)}else{Z=O.nodeType===9?O:O.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=Tn(v)),o==="http://www.w3.org/1999/xhtml"?v==="script"?(o=Z.createElement("div"),o.innerHTML="<script></script>",o=o.removeChild(o.firstChild)):typeof w.is=="string"?o=Z.createElement(v,{is:w.is}):(o=Z.createElement(v),v==="select"&&(Z=o,w.multiple?Z.multiple=!0:w.size&&(Z.size=w.size))):o=Z.createElementNS(o,v),o[io]=s,o[Cs]=w,wf(o,s,!1,!1),s.stateNode=o;e:{switch(Z=Wn(v,w),v){case"dialog":On("cancel",o),On("close",o),O=w;break;case"iframe":case"object":case"embed":On("load",o),O=w;break;case"video":case"audio":for(O=0;O<of.length;O++)On(of[O],o);O=w;break;case"source":On("error",o),O=w;break;case"img":case"image":case"link":On("error",o),On("load",o),O=w;break;case"details":On("toggle",o),O=w;break;case"input":dt(o,w),O=Ne(o,w),On("invalid",o);break;case"option":O=w;break;case"select":o._wrapperState={wasMultiple:!!w.multiple},O=X({},w,{value:void 0}),On("invalid",o);break;case"textarea":on(o,w),O=It(o,w),On("invalid",o);break;default:O=w}ur(v,O),le=O;for(L in le)if(le.hasOwnProperty(L)){var fe=le[L];L==="style"?Ht(o,fe):L==="dangerouslySetInnerHTML"?(fe=fe?fe.__html:void 0,fe!=null&&ka(o,fe)):L==="children"?typeof fe=="string"?(v!=="textarea"||fe!=="")&&Lr(o,fe):typeof fe=="number"&&Lr(o,""+fe):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?fe!=null&&L==="onScroll"&&On("scroll",o):fe!=null&&D(o,L,fe,Z))}switch(v){case"input":Pe(o),sn(o,w,!1);break;case"textarea":Pe(o),Mn(o);break;case"option":w.value!=null&&o.setAttribute("value",""+ce(w.value));break;case"select":o.multiple=!!w.multiple,L=w.value,L!=null?un(o,!!w.multiple,L,!1):w.defaultValue!=null&&un(o,!!w.multiple,w.defaultValue,!0);break;default:typeof O.onClick=="function"&&(o.onclick=Wd)}switch(v){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return la(s),null;case 6:if(o&&s.stateNode!=null)xr(o,s,o.memoizedProps,w);else{if(typeof w!="string"&&s.stateNode===null)throw Error(t(166));if(v=Ss(Nu.current),Ss(Yi.current),e0(s)){if(w=s.stateNode,v=s.memoizedProps,w[io]=s,(L=w.nodeValue!==v)&&(o=Wa,o!==null))switch(o.tag){case 3:Kd(w.nodeValue,v,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Kd(w.nodeValue,v,(o.mode&1)!==0)}L&&(s.flags|=4)}else w=(v.nodeType===9?v:v.ownerDocument).createTextNode(w),w[io]=s,s.stateNode=w}return la(s),null;case 13:if(ln(xt),w=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Bn&&Na!==null&&s.mode&1&&!(s.flags&128))d1(),Qn(),s.flags|=98560,L=!1;else if(L=e0(s),w!==null&&w.dehydrated!==null){if(o===null){if(!L)throw Error(t(318));if(L=s.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(t(317));L[io]=s}else Qn(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;la(s),L=!1}else yi!==null&&(Of(yi),yi=null),L=!0;if(!L)return s.flags&65536?s:null}return s.flags&128?(s.lanes=v,s):(w=w!==null,w!==(o!==null&&o.memoizedState!==null)&&w&&(s.child.flags|=8192,s.mode&1&&(o===null||xt.current&1?Cr===0&&(Cr=3):em())),s.updateQueue!==null&&(s.flags|=4),la(s),null);case 4:return zl(),Ms(o,s),o===null&&Tu(s.stateNode.containerInfo),la(s),null;case 10:return Ml(s.type._context),la(s),null;case 17:return Yn(s.type)&&mi(),la(s),null;case 19:if(ln(xt),L=s.memoizedState,L===null)return la(s),null;if(w=(s.flags&128)!==0,Z=L.rendering,Z===null)if(w)_f(L,!1);else{if(Cr!==0||o!==null&&o.flags&128)for(o=s.child;o!==null;){if(Z=Zn(o),Z!==null){for(s.flags|=128,_f(L,!1),w=Z.updateQueue,w!==null&&(s.updateQueue=w,s.flags|=4),s.subtreeFlags=0,w=v,v=s.child;v!==null;)L=v,o=w,L.flags&=14680066,Z=L.alternate,Z===null?(L.childLanes=0,L.lanes=o,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=Z.childLanes,L.lanes=Z.lanes,L.child=Z.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=Z.memoizedProps,L.memoizedState=Z.memoizedState,L.updateQueue=Z.updateQueue,L.type=Z.type,o=Z.dependencies,L.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),v=v.sibling;return cn(xt,xt.current&1|2),s.child}o=o.sibling}L.tail!==null&&tn()>qu&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304)}else{if(!w)if(o=Zn(Z),o!==null){if(s.flags|=128,w=!0,v=o.updateQueue,v!==null&&(s.updateQueue=v,s.flags|=4),_f(L,!0),L.tail===null&&L.tailMode==="hidden"&&!Z.alternate&&!Bn)return la(s),null}else 2*tn()-L.renderingStartTime>qu&&v!==1073741824&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304);L.isBackwards?(Z.sibling=s.child,s.child=Z):(v=L.last,v!==null?v.sibling=Z:s.child=Z,L.last=Z)}return L.tail!==null?(s=L.tail,L.rendering=s,L.tail=s.sibling,L.renderingStartTime=tn(),s.sibling=null,v=xt.current,cn(xt,w?v&1|2:v&1),s):(la(s),null);case 22:case 23:return Jv(),w=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==w&&(s.flags|=8192),w&&s.mode&1?Xa&1073741824&&(la(s),s.subtreeFlags&6&&(s.flags|=8192)):la(s),null;case 24:return null;case 25:return null}throw Error(t(156,s.tag))}function Yv(o,s){switch(Sv(s),s.tag){case 1:return Yn(s.type)&&mi(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return zl(),ln(tr),ln(_t),l0(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return Lt(s),null;case 13:if(ln(xt),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(t(340));Qn()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return ln(xt),null;case 4:return zl(),null;case 10:return Ml(s.type._context),null;case 22:case 23:return Jv(),null;case 24:return null;default:return null}}var Sf=!1,br=!1,D1=typeof WeakSet=="function"?WeakSet:Set,rt=null;function ju(o,s){var v=o.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(w){rr(o,s,w)}else v.current=null}function Ef(o,s,v){try{v()}catch(w){rr(o,s,w)}}var k1=!1;function T1(o,s){if(mv=ps,o=Vd(),Po(o)){if("selectionStart"in o)var v={start:o.selectionStart,end:o.selectionEnd};else e:{v=(v=o.ownerDocument)&&v.defaultView||window;var w=v.getSelection&&v.getSelection();if(w&&w.rangeCount!==0){v=w.anchorNode;var O=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{v.nodeType,L.nodeType}catch{v=null;break e}var Z=0,le=-1,fe=-1,Ee=0,Ie=0,Ve=o,je=null;t:for(;;){for(var Je;Ve!==v||O!==0&&Ve.nodeType!==3||(le=Z+O),Ve!==L||w!==0&&Ve.nodeType!==3||(fe=Z+w),Ve.nodeType===3&&(Z+=Ve.nodeValue.length),(Je=Ve.firstChild)!==null;)je=Ve,Ve=Je;for(;;){if(Ve===o)break t;if(je===v&&++Ee===O&&(le=Z),je===L&&++Ie===w&&(fe=Z),(Je=Ve.nextSibling)!==null)break;Ve=je,je=Ve.parentNode}Ve=Je}v=le===-1||fe===-1?null:{start:le,end:fe}}else v=null}v=v||{start:0,end:0}}else v=null;for(xs={focusedElem:o,selectionRange:v},ps=!1,rt=s;rt!==null;)if(s=rt,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,rt=o;else for(;rt!==null;){s=rt;try{var it=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var st=it.memoizedProps,or=it.memoizedState,ge=s.stateNode,he=ge.getSnapshotBeforeUpdate(s.elementType===s.type?st:Qa(s.type,st),or);ge.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var Ce=s.stateNode.containerInfo;Ce.nodeType===1?Ce.textContent="":Ce.nodeType===9&&Ce.documentElement&&Ce.removeChild(Ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Ye){rr(s,s.return,Ye)}if(o=s.sibling,o!==null){o.return=s.return,rt=o;break}rt=s.return}return it=k1,k1=!1,it}function Df(o,s,v){var w=s.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var O=w=w.next;do{if((O.tag&o)===o){var L=O.destroy;O.destroy=void 0,L!==void 0&&Ef(s,v,L)}O=O.next}while(O!==w)}}function kf(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var v=s=s.next;do{if((v.tag&o)===o){var w=v.create;v.destroy=w()}v=v.next}while(v!==s)}}function qv(o){var s=o.ref;if(s!==null){var v=o.stateNode;switch(o.tag){case 5:o=v;break;default:o=v}typeof s=="function"?s(o):s.current=o}}function Gv(o){var s=o.alternate;s!==null&&(o.alternate=null,Gv(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[io],delete s[Cs],delete s[xv],delete s[D_],delete s[bv])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function A1(o){return o.tag===5||o.tag===3||o.tag===4}function A0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||A1(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Iu(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.nodeType===8?v.parentNode.insertBefore(o,s):v.insertBefore(o,s):(v.nodeType===8?(s=v.parentNode,s.insertBefore(o,v)):(s=v,s.appendChild(o)),v=v._reactRootContainer,v!=null||s.onclick!==null||(s.onclick=Wd));else if(w!==4&&(o=o.child,o!==null))for(Iu(o,s,v),o=o.sibling;o!==null;)Iu(o,s,v),o=o.sibling}function uo(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.insertBefore(o,s):v.appendChild(o);else if(w!==4&&(o=o.child,o!==null))for(uo(o,s,v),o=o.sibling;o!==null;)uo(o,s,v),o=o.sibling}var qn=null,Ar=!1;function wi(o,s,v){for(v=v.child;v!==null;)Hu(o,s,v),v=v.sibling}function Hu(o,s,v){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(Vc,v)}catch{}switch(v.tag){case 5:br||ju(v,s);case 6:var w=qn,O=Ar;qn=null,wi(o,s,v),qn=w,Ar=O,qn!==null&&(Ar?(o=qn,v=v.stateNode,o.nodeType===8?o.parentNode.removeChild(v):o.removeChild(v)):qn.removeChild(v.stateNode));break;case 18:qn!==null&&(Ar?(o=qn,v=v.stateNode,o.nodeType===8?Tl(o.parentNode,v):o.nodeType===1&&Tl(o,v),Kc(o)):Tl(qn,v.stateNode));break;case 4:w=qn,O=Ar,qn=v.stateNode.containerInfo,Ar=!0,wi(o,s,v),qn=w,Ar=O;break;case 0:case 11:case 14:case 15:if(!br&&(w=v.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){O=w=w.next;do{var L=O,Z=L.destroy;L=L.tag,Z!==void 0&&(L&2||L&4)&&Ef(v,s,Z),O=O.next}while(O!==w)}wi(o,s,v);break;case 1:if(!br&&(ju(v,s),w=v.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=v.memoizedProps,w.state=v.memoizedState,w.componentWillUnmount()}catch(le){rr(v,s,le)}wi(o,s,v);break;case 21:wi(o,s,v);break;case 22:v.mode&1?(br=(w=br)||v.memoizedState!==null,wi(o,s,v),br=w):wi(o,s,v);break;default:wi(o,s,v)}}function $o(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var v=o.stateNode;v===null&&(v=o.stateNode=new D1),s.forEach(function(w){var O=U_.bind(null,o,w);v.has(w)||(v.add(w),w.then(O,O))})}}function qi(o,s){var v=s.deletions;if(v!==null)for(var w=0;w<v.length;w++){var O=v[w];try{var L=o,Z=s,le=Z;e:for(;le!==null;){switch(le.tag){case 5:qn=le.stateNode,Ar=!1;break e;case 3:qn=le.stateNode.containerInfo,Ar=!0;break e;case 4:qn=le.stateNode.containerInfo,Ar=!0;break e}le=le.return}if(qn===null)throw Error(t(160));Hu(L,Z,O),qn=null,Ar=!1;var fe=O.alternate;fe!==null&&(fe.return=null),O.return=null}catch(Ee){rr(O,s,Ee)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)O1(s,o),s=s.sibling}function O1(o,s){var v=o.alternate,w=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(qi(s,o),co(o),w&4){try{Df(3,o,o.return),kf(3,o)}catch(st){rr(o,o.return,st)}try{Df(5,o,o.return)}catch(st){rr(o,o.return,st)}}break;case 1:qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return);break;case 5:if(qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return),o.flags&32){var O=o.stateNode;try{Lr(O,"")}catch(st){rr(o,o.return,st)}}if(w&4&&(O=o.stateNode,O!=null)){var L=o.memoizedProps,Z=v!==null?v.memoizedProps:L,le=o.type,fe=o.updateQueue;if(o.updateQueue=null,fe!==null)try{le==="input"&&L.type==="radio"&&L.name!=null&&Xe(O,L),Wn(le,Z);var Ee=Wn(le,L);for(Z=0;Z<fe.length;Z+=2){var Ie=fe[Z],Ve=fe[Z+1];Ie==="style"?Ht(O,Ve):Ie==="dangerouslySetInnerHTML"?ka(O,Ve):Ie==="children"?Lr(O,Ve):D(O,Ie,Ve,Ee)}switch(le){case"input":Zt(O,L);break;case"textarea":In(O,L);break;case"select":var je=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!L.multiple;var Je=L.value;Je!=null?un(O,!!L.multiple,Je,!1):je!==!!L.multiple&&(L.defaultValue!=null?un(O,!!L.multiple,L.defaultValue,!0):un(O,!!L.multiple,L.multiple?[]:"",!1))}O[Cs]=L}catch(st){rr(o,o.return,st)}}break;case 6:if(qi(s,o),co(o),w&4){if(o.stateNode===null)throw Error(t(162));O=o.stateNode,L=o.memoizedProps;try{O.nodeValue=L}catch(st){rr(o,o.return,st)}}break;case 3:if(qi(s,o),co(o),w&4&&v!==null&&v.memoizedState.isDehydrated)try{Kc(s.containerInfo)}catch(st){rr(o,o.return,st)}break;case 4:qi(s,o),co(o);break;case 13:qi(s,o),co(o),O=o.child,O.flags&8192&&(L=O.memoizedState!==null,O.stateNode.isHidden=L,!L||O.alternate!==null&&O.alternate.memoizedState!==null||(Qv=tn())),w&4&&$o(o);break;case 22:if(Ie=v!==null&&v.memoizedState!==null,o.mode&1?(br=(Ee=br)||Ie,qi(s,o),br=Ee):qi(s,o),co(o),w&8192){if(Ee=o.memoizedState!==null,(o.stateNode.isHidden=Ee)&&!Ie&&o.mode&1)for(rt=o,Ie=o.child;Ie!==null;){for(Ve=rt=Ie;rt!==null;){switch(je=rt,Je=je.child,je.tag){case 0:case 11:case 14:case 15:Df(4,je,je.return);break;case 1:ju(je,je.return);var it=je.stateNode;if(typeof it.componentWillUnmount=="function"){w=je,v=je.return;try{s=w,it.props=s.memoizedProps,it.state=s.memoizedState,it.componentWillUnmount()}catch(st){rr(w,v,st)}}break;case 5:ju(je,je.return);break;case 22:if(je.memoizedState!==null){Kv(Ve);continue}}Je!==null?(Je.return=je,rt=Je):Kv(Ve)}Ie=Ie.sibling}e:for(Ie=null,Ve=o;;){if(Ve.tag===5){if(Ie===null){Ie=Ve;try{O=Ve.stateNode,Ee?(L=O.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(le=Ve.stateNode,fe=Ve.memoizedProps.style,Z=fe!=null&&fe.hasOwnProperty("display")?fe.display:null,le.style.display=ct("display",Z))}catch(st){rr(o,o.return,st)}}}else if(Ve.tag===6){if(Ie===null)try{Ve.stateNode.nodeValue=Ee?"":Ve.memoizedProps}catch(st){rr(o,o.return,st)}}else if((Ve.tag!==22&&Ve.tag!==23||Ve.memoizedState===null||Ve===o)&&Ve.child!==null){Ve.child.return=Ve,Ve=Ve.child;continue}if(Ve===o)break e;for(;Ve.sibling===null;){if(Ve.return===null||Ve.return===o)break e;Ie===Ve&&(Ie=null),Ve=Ve.return}Ie===Ve&&(Ie=null),Ve.sibling.return=Ve.return,Ve=Ve.sibling}}break;case 19:qi(s,o),co(o),w&4&&$o(o);break;case 21:break;default:qi(s,o),co(o)}}function co(o){var s=o.flags;if(s&2){try{e:{for(var v=o.return;v!==null;){if(A1(v)){var w=v;break e}v=v.return}throw Error(t(160))}switch(w.tag){case 5:var O=w.stateNode;w.flags&32&&(Lr(O,""),w.flags&=-33);var L=A0(o);uo(o,L,O);break;case 3:case 4:var Z=w.stateNode.containerInfo,le=A0(o);Iu(o,le,Z);break;default:throw Error(t(161))}}catch(fe){rr(o,o.return,fe)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function R1(o,s,v){rt=o,Vu(o)}function Vu(o,s,v){for(var w=(o.mode&1)!==0;rt!==null;){var O=rt,L=O.child;if(O.tag===22&&w){var Z=O.memoizedState!==null||Sf;if(!Z){var le=O.alternate,fe=le!==null&&le.memoizedState!==null||br;le=Sf;var Ee=br;if(Sf=Z,(br=fe)&&!Ee)for(rt=O;rt!==null;)Z=rt,fe=Z.child,Z.tag===22&&Z.memoizedState!==null?N1(O):fe!==null?(fe.return=Z,rt=fe):N1(O);for(;L!==null;)rt=L,Vu(L),L=L.sibling;rt=O,Sf=le,br=Ee}F1(o)}else O.subtreeFlags&8772&&L!==null?(L.return=O,rt=L):F1(o)}}function F1(o){for(;rt!==null;){var s=rt;if(s.flags&8772){var v=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:br||kf(5,s);break;case 1:var w=s.stateNode;if(s.flags&4&&!br)if(v===null)w.componentDidMount();else{var O=s.elementType===s.type?v.memoizedProps:Qa(s.type,v.memoizedProps);w.componentDidUpdate(O,v.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var L=s.updateQueue;L!==null&&_s(s,L,w);break;case 3:var Z=s.updateQueue;if(Z!==null){if(v=null,s.child!==null)switch(s.child.tag){case 5:v=s.child.stateNode;break;case 1:v=s.child.stateNode}_s(s,Z,v)}break;case 5:var le=s.stateNode;if(v===null&&s.flags&4){v=le;var fe=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":fe.autoFocus&&v.focus();break;case"img":fe.src&&(v.src=fe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Ee=s.alternate;if(Ee!==null){var Ie=Ee.memoizedState;if(Ie!==null){var Ve=Ie.dehydrated;Ve!==null&&Kc(Ve)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}br||s.flags&512&&qv(s)}catch(je){rr(s,s.return,je)}}if(s===o){rt=null;break}if(v=s.sibling,v!==null){v.return=s.return,rt=v;break}rt=s.return}}function Kv(o){for(;rt!==null;){var s=rt;if(s===o){rt=null;break}var v=s.sibling;if(v!==null){v.return=s.return,rt=v;break}rt=s.return}}function N1(o){for(;rt!==null;){var s=rt;try{switch(s.tag){case 0:case 11:case 15:var v=s.return;try{kf(4,s)}catch(fe){rr(s,v,fe)}break;case 1:var w=s.stateNode;if(typeof w.componentDidMount=="function"){var O=s.return;try{w.componentDidMount()}catch(fe){rr(s,O,fe)}}var L=s.return;try{qv(s)}catch(fe){rr(s,L,fe)}break;case 5:var Z=s.return;try{qv(s)}catch(fe){rr(s,Z,fe)}}}catch(fe){rr(s,s.return,fe)}if(s===o){rt=null;break}var le=s.sibling;if(le!==null){le.return=s.return,rt=le;break}rt=s.return}}var O0=Math.ceil,Tf=R.ReactCurrentDispatcher,Wv=R.ReactCurrentOwner,sa=R.ReactCurrentBatchConfig,Ut=0,Xn=null,nr=null,Or=0,Xa=0,$u=At(0),Cr=0,Af=null,Yo=0,R0=0,Yu=0,Ps=null,pa=null,Qv=0,qu=1/0,qo=null,F0=!1,Bs=null,fo=null,Hl=!1,Vl=null,N0=0,Gu=0,M0=null,Ls=-1,zs=0;function ua(){return Ut&6?tn():Ls!==-1?Ls:Ls=tn()}function hr(o){return o.mode&1?Ut&2&&Or!==0?Or&-Or:t0.transition!==null?(zs===0&&(zs=Rd()),zs):(o=gn,o!==0||(o=window.event,o=o===void 0?16:Qp(o.type)),o):1}function ca(o,s,v,w){if(50<Gu)throw Gu=0,M0=null,Error(t(185));hs(o,v,w),(!(Ut&2)||o!==Xn)&&(o===Xn&&(!(Ut&2)&&(R0|=v),Cr===4&&_i(o,Or)),fa(o,w),v===1&&Ut===0&&!(s.mode&1)&&(qu=tn()+500,kr&&Oa()))}function fa(o,s){var v=o.callbackNode;Od(o,s);var w=ji(o,o===Xn?Or:0);if(w===0)v!==null&&ha(v),o.callbackNode=null,o.callbackPriority=0;else if(s=w&-w,o.callbackPriority!==s){if(v!=null&&ha(v),s===1)o.tag===0?wv(M1.bind(null,o)):Cv(M1.bind(null,o)),yv(function(){!(Ut&6)&&Oa()}),v=null;else{switch(Gp(w)){case 1:v=Ro;break;case 4:v=zt;break;case 16:v=_l;break;case 536870912:v=Vp;break;default:v=_l}v=nm(v,Ku.bind(null,o))}o.callbackPriority=s,o.callbackNode=v}}function Ku(o,s){if(Ls=-1,zs=0,Ut&6)throw Error(t(327));var v=o.callbackNode;if(Qu()&&o.callbackNode!==v)return null;var w=ji(o,o===Xn?Or:0);if(w===0)return null;if(w&30||w&o.expiredLanes||s)s=B0(o,w);else{s=w;var O=Ut;Ut|=2;var L=P0();(Xn!==o||Or!==s)&&(qo=null,qu=tn()+500,Us(o,s));do try{P_();break}catch(le){P1(o,le)}while(1);Tv(),Tf.current=L,Ut=O,nr!==null?s=0:(Xn=null,Or=0,s=Cr)}if(s!==0){if(s===2&&(O=Yp(o),O!==0&&(w=O,s=Zv(o,O))),s===1)throw v=Af,Us(o,0),_i(o,w),fa(o,tn()),v;if(s===6)_i(o,w);else{if(O=o.current.alternate,!(w&30)&&!Xv(O)&&(s=B0(o,w),s===2&&(L=Yp(o),L!==0&&(w=L,s=Zv(o,L))),s===1))throw v=Af,Us(o,0),_i(o,w),fa(o,tn()),v;switch(o.finishedWork=O,o.finishedLanes=w,s){case 0:case 1:throw Error(t(345));case 2:js(o,pa,qo);break;case 3:if(_i(o,w),(w&130023424)===w&&(s=Qv+500-tn(),10<s)){if(ji(o,0)!==0)break;if(O=o.suspendedLanes,(O&w)!==w){ua(),o.pingedLanes|=o.suspendedLanes&O;break}o.timeoutHandle=bs(js.bind(null,o,pa,qo),s);break}js(o,pa,qo);break;case 4:if(_i(o,w),(w&4194240)===w)break;for(s=o.eventTimes,O=-1;0<w;){var Z=31-ci(w);L=1<<Z,Z=s[Z],Z>O&&(O=Z),w&=~L}if(w=O,w=tn()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*O0(w/1960))-w,10<w){o.timeoutHandle=bs(js.bind(null,o,pa,qo),w);break}js(o,pa,qo);break;case 5:js(o,pa,qo);break;default:throw Error(t(329))}}}return fa(o,tn()),o.callbackNode===v?Ku.bind(null,o):null}function Zv(o,s){var v=Ps;return o.current.memoizedState.isDehydrated&&(Us(o,s).flags|=256),o=B0(o,s),o!==2&&(s=pa,pa=v,s!==null&&Of(s)),o}function Of(o){pa===null?pa=o:pa.push.apply(pa,o)}function Xv(o){for(var s=o;;){if(s.flags&16384){var v=s.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var w=0;w<v.length;w++){var O=v[w],L=O.getSnapshot;O=O.value;try{if(!hi(L(),O))return!1}catch{return!1}}}if(v=s.child,s.subtreeFlags&16384&&v!==null)v.return=s,s=v;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function _i(o,s){for(s&=~Yu,s&=~R0,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var v=31-ci(s),w=1<<v;o[v]=-1,s&=~w}}function M1(o){if(Ut&6)throw Error(t(327));Qu();var s=ji(o,0);if(!(s&1))return fa(o,tn()),null;var v=B0(o,s);if(o.tag!==0&&v===2){var w=Yp(o);w!==0&&(s=w,v=Zv(o,w))}if(v===1)throw v=Af,Us(o,0),_i(o,s),fa(o,tn()),v;if(v===6)throw Error(t(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,js(o,pa,qo),fa(o,tn()),null}function Wu(o,s){var v=Ut;Ut|=1;try{return o(s)}finally{Ut=v,Ut===0&&(qu=tn()+500,kr&&Oa())}}function $l(o){Vl!==null&&Vl.tag===0&&!(Ut&6)&&Qu();var s=Ut;Ut|=1;var v=sa.transition,w=gn;try{if(sa.transition=null,gn=1,o)return o()}finally{gn=w,sa.transition=v,Ut=s,!(Ut&6)&&Oa()}}function Jv(){Xa=$u.current,ln($u)}function Us(o,s){o.finishedWork=null,o.finishedLanes=0;var v=o.timeoutHandle;if(v!==-1&&(o.timeoutHandle=-1,s1(v)),nr!==null)for(v=nr.return;v!==null;){var w=v;switch(Sv(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&mi();break;case 3:zl(),ln(tr),ln(_t),l0();break;case 5:Lt(w);break;case 4:zl();break;case 13:ln(xt);break;case 19:ln(xt);break;case 10:Ml(w.type._context);break;case 22:case 23:Jv()}v=v.return}if(Xn=o,nr=o=Yl(o.current,null),Or=Xa=s,Cr=0,Af=null,Yu=R0=Yo=0,pa=Ps=null,Ir!==null){for(s=0;s<Ir.length;s++)if(v=Ir[s],w=v.interleaved,w!==null){v.interleaved=null;var O=w.next,L=v.pending;if(L!==null){var Z=L.next;L.next=O,w.next=Z}v.pending=w}Ir=null}return o}function P1(o,s){do{var v=nr;try{if(Tv(),s0.current=S0,bt){for(var w=Ln.memoizedState;w!==null;){var O=w.queue;O!==null&&(O.pending=null),w=w.next}bt=!1}if(Es=0,Vt=Oe=Ln=null,so=!1,Za=0,Wv.current=null,v===null||v.return===null){Cr=1,Af=s,nr=null;break}e:{var L=o,Z=v.return,le=v,fe=s;if(s=Or,le.flags|=32768,fe!==null&&typeof fe=="object"&&typeof fe.then=="function"){var Ee=fe,Ie=le,Ve=Ie.tag;if(!(Ie.mode&1)&&(Ve===0||Ve===11||Ve===15)){var je=Ie.alternate;je?(Ie.updateQueue=je.updateQueue,Ie.memoizedState=je.memoizedState,Ie.lanes=je.lanes):(Ie.updateQueue=null,Ie.memoizedState=null)}var Je=Lv(Z);if(Je!==null){Je.flags&=-257,zv(Je,Z,le,L,s),Je.mode&1&&_1(L,Ee,s),s=Je,fe=Ee;var it=s.updateQueue;if(it===null){var st=new Set;st.add(fe),s.updateQueue=st}else it.add(fe);break e}else{if(!(s&1)){_1(L,Ee,s),em();break e}fe=Error(t(426))}}else if(Bn&&le.mode&1){var or=Lv(Z);if(or!==null){!(or.flags&65536)&&(or.flags|=256),zv(or,Z,le,L,s),Dv(Lu(fe,le));break e}}L=fe=Lu(fe,le),Cr!==4&&(Cr=2),Ps===null?Ps=[L]:Ps.push(L),L=Z;do{switch(L.tag){case 3:L.flags|=65536,s&=-s,L.lanes|=s;var ge=w1(L,fe,s);Rv(L,ge);break e;case 1:le=fe;var he=L.type,Ce=L.stateNode;if(!(L.flags&128)&&(typeof he.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&(fo===null||!fo.has(Ce)))){L.flags|=65536,s&=-s,L.lanes|=s;var Ye=Cf(L,le,s);Rv(L,Ye);break e}}L=L.return}while(L!==null)}tm(v)}catch(ut){s=ut,nr===v&&v!==null&&(nr=v=v.return);continue}break}while(1)}function P0(){var o=Tf.current;return Tf.current=S0,o===null?S0:o}function em(){(Cr===0||Cr===3||Cr===2)&&(Cr=4),Xn===null||!(Yo&268435455)&&!(R0&268435455)||_i(Xn,Or)}function B0(o,s){var v=Ut;Ut|=2;var w=P0();(Xn!==o||Or!==s)&&(qo=null,Us(o,s));do try{M_();break}catch(O){P1(o,O)}while(1);if(Tv(),Ut=v,Tf.current=w,nr!==null)throw Error(t(261));return Xn=null,Or=0,Cr}function M_(){for(;nr!==null;)B1(nr)}function P_(){for(;nr!==null&&!wl();)B1(nr)}function B1(o){var s=z1(o.alternate,o,Xa);o.memoizedProps=o.pendingProps,s===null?tm(o):nr=s,Wv.current=null}function tm(o){var s=o;do{var v=s.alternate;if(o=s.return,s.flags&32768){if(v=Yv(v,s),v!==null){v.flags&=32767,nr=v;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{Cr=6,nr=null;return}}else if(v=N_(v,s,Xa),v!==null){nr=v;return}if(s=s.sibling,s!==null){nr=s;return}nr=s=o}while(s!==null);Cr===0&&(Cr=5)}function js(o,s,v){var w=gn,O=sa.transition;try{sa.transition=null,gn=1,B_(o,s,v,w)}finally{sa.transition=O,gn=w}return null}function B_(o,s,v,w){do Qu();while(Vl!==null);if(Ut&6)throw Error(t(327));v=o.finishedWork;var O=o.finishedLanes;if(v===null)return null;if(o.finishedWork=null,o.finishedLanes=0,v===o.current)throw Error(t(177));o.callbackNode=null,o.callbackPriority=0;var L=v.lanes|v.childLanes;if(s_(o,L),o===Xn&&(nr=Xn=null,Or=0),!(v.subtreeFlags&2064)&&!(v.flags&2064)||Hl||(Hl=!0,nm(_l,function(){return Qu(),null})),L=(v.flags&15990)!==0,v.subtreeFlags&15990||L){L=sa.transition,sa.transition=null;var Z=gn;gn=1;var le=Ut;Ut|=4,Wv.current=null,T1(o,v),O1(v,o),$d(xs),ps=!!mv,xs=mv=null,o.current=v,R1(v),Td(),Ut=le,gn=Z,sa.transition=L}else o.current=v;if(Hl&&(Hl=!1,Vl=o,N0=O),L=o.pendingLanes,L===0&&(fo=null),wy(v.stateNode),fa(o,tn()),s!==null)for(w=o.onRecoverableError,v=0;v<s.length;v++)O=s[v],w(O.value,{componentStack:O.stack,digest:O.digest});if(F0)throw F0=!1,o=Bs,Bs=null,o;return N0&1&&o.tag!==0&&Qu(),L=o.pendingLanes,L&1?o===M0?Gu++:(Gu=0,M0=o):Gu=0,Oa(),null}function Qu(){if(Vl!==null){var o=Gp(N0),s=sa.transition,v=gn;try{if(sa.transition=null,gn=16>o?16:o,Vl===null)var w=!1;else{if(o=Vl,Vl=null,N0=0,Ut&6)throw Error(t(331));var O=Ut;for(Ut|=4,rt=o.current;rt!==null;){var L=rt,Z=L.child;if(rt.flags&16){var le=L.deletions;if(le!==null){for(var fe=0;fe<le.length;fe++){var Ee=le[fe];for(rt=Ee;rt!==null;){var Ie=rt;switch(Ie.tag){case 0:case 11:case 15:Df(8,Ie,L)}var Ve=Ie.child;if(Ve!==null)Ve.return=Ie,rt=Ve;else for(;rt!==null;){Ie=rt;var je=Ie.sibling,Je=Ie.return;if(Gv(Ie),Ie===Ee){rt=null;break}if(je!==null){je.return=Je,rt=je;break}rt=Je}}}var it=L.alternate;if(it!==null){var st=it.child;if(st!==null){it.child=null;do{var or=st.sibling;st.sibling=null,st=or}while(st!==null)}}rt=L}}if(L.subtreeFlags&2064&&Z!==null)Z.return=L,rt=Z;else e:for(;rt!==null;){if(L=rt,L.flags&2048)switch(L.tag){case 0:case 11:case 15:Df(9,L,L.return)}var ge=L.sibling;if(ge!==null){ge.return=L.return,rt=ge;break e}rt=L.return}}var he=o.current;for(rt=he;rt!==null;){Z=rt;var Ce=Z.child;if(Z.subtreeFlags&2064&&Ce!==null)Ce.return=Z,rt=Ce;else e:for(Z=he;rt!==null;){if(le=rt,le.flags&2048)try{switch(le.tag){case 0:case 11:case 15:kf(9,le)}}catch(ut){rr(le,le.return,ut)}if(le===Z){rt=null;break e}var Ye=le.sibling;if(Ye!==null){Ye.return=le.return,rt=Ye;break e}rt=le.return}}if(Ut=O,Oa(),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(Vc,o)}catch{}w=!0}return w}finally{gn=v,sa.transition=s}}return!1}function L1(o,s,v){s=Lu(v,s),s=w1(o,s,1),o=Bl(o,s,1),s=ua(),o!==null&&(hs(o,1,s),fa(o,s))}function rr(o,s,v){if(o.tag===3)L1(o,o,v);else for(;s!==null;){if(s.tag===3){L1(s,o,v);break}else if(s.tag===1){var w=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(fo===null||!fo.has(w))){o=Lu(v,o),o=Cf(s,o,1),s=Bl(s,o,1),o=ua(),s!==null&&(hs(s,1,o),fa(s,o));break}}s=s.return}}function L_(o,s,v){var w=o.pingCache;w!==null&&w.delete(s),s=ua(),o.pingedLanes|=o.suspendedLanes&v,Xn===o&&(Or&v)===v&&(Cr===4||Cr===3&&(Or&130023424)===Or&&500>tn()-Qv?Us(o,0):Yu|=v),fa(o,s)}function L0(o,s){s===0&&(o.mode&1?(s=yu,yu<<=1,!(yu&130023424)&&(yu=4194304)):s=1);var v=ua();o=jo(o,s),o!==null&&(hs(o,s,v),fa(o,v))}function z_(o){var s=o.memoizedState,v=0;s!==null&&(v=s.retryLane),L0(o,v)}function U_(o,s){var v=0;switch(o.tag){case 13:var w=o.stateNode,O=o.memoizedState;O!==null&&(v=O.retryLane);break;case 19:w=o.stateNode;break;default:throw Error(t(314))}w!==null&&w.delete(s),L0(o,v)}var z1;z1=function(o,s,v){if(o!==null)if(o.memoizedProps!==s.pendingProps||tr.current)dr=!0;else{if(!(o.lanes&v)&&!(s.flags&128))return dr=!1,Vo(o,s,v);dr=!!(o.flags&131072)}else dr=!1,Bn&&s.flags&1048576&&_v(s,Ou,s.index);switch(s.lanes=0,s.tag){case 2:var w=s.type;oa(o,s),o=s.pendingProps;var O=vi(s,_t.current);Ke(s,v),O=Ul(null,s,w,o,O,v);var L=Ts();return s.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Yn(w)?(L=!0,Qd(s)):L=!1,s.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,Ov(s),O.updater=a0,s.stateNode=O,O._reactInternals=s,i0(s,w,o,v),s=S1(null,s,w,!0,L,v)):(s.tag=0,Bn&&L&&Zd(s),yr(null,s,O,v),s=s.child),s;case 16:w=s.elementType;e:{switch(oa(o,s),o=s.pendingProps,O=w._init,w=O(w._payload),s.type=w,O=s.tag=I_(w),o=Qa(w,o),O){case 0:s=zu(null,s,w,o,v);break e;case 1:s=Uv(null,s,w,o,v);break e;case 11:s=Il(null,s,w,o,v);break e;case 14:s=D0(null,s,w,Qa(w.type,o),v);break e}throw Error(t(306,w,""))}return s;case 0:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),zu(o,s,w,O,v);case 1:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Uv(o,s,w,O,v);case 3:e:{if(E1(s),o===null)throw Error(t(387));w=s.pendingProps,L=s.memoizedState,O=L.element,gr(o,s),Ll(s,w,null,v);var Z=s.memoizedState;if(w=Z.element,L.isDehydrated)if(L={element:w,isDehydrated:!1,cache:Z.cache,pendingSuspenseBoundaries:Z.pendingSuspenseBoundaries,transitions:Z.transitions},s.updateQueue.baseState=L,s.memoizedState=L,s.flags&256){O=Lu(Error(t(423)),s),s=k0(o,s,w,v,O);break e}else if(w!==O){O=Lu(Error(t(424)),s),s=k0(o,s,w,v,O);break e}else for(Na=$i(s.stateNode.containerInfo.firstChild),Wa=s,Bn=!0,yi=null,v=b1(s,null,w,v),s.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Qn(),w===O){s=Hr(o,s,v);break e}yr(o,s,w,v)}s=s.child}return s;case 5:return gt(s),o===null&&Jd(s),w=s.type,O=s.pendingProps,L=o!==null?o.memoizedProps:null,Z=O.children,uf(w,O)?Z=null:L!==null&&uf(w,L)&&(s.flags|=32),Ot(o,s),yr(o,s,Z,v),s.child;case 6:return o===null&&Jd(s),null;case 13:return Iv(o,s,v);case 4:return Nv(s,s.stateNode.containerInfo),w=s.pendingProps,o===null?s.child=Fu(s,null,w,v):yr(o,s,w,v),s.child;case 11:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Il(o,s,w,O,v);case 7:return yr(o,s,s.pendingProps,v),s.child;case 8:return yr(o,s,s.pendingProps.children,v),s.child;case 12:return yr(o,s,s.pendingProps.children,v),s.child;case 10:e:{if(w=s.type._context,O=s.pendingProps,L=s.memoizedProps,Z=O.value,cn(lo,w._currentValue),w._currentValue=Z,L!==null)if(hi(L.value,Z)){if(L.children===O.children&&!tr.current){s=Hr(o,s,v);break e}}else for(L=s.child,L!==null&&(L.return=s);L!==null;){var le=L.dependencies;if(le!==null){Z=L.child;for(var fe=le.firstContext;fe!==null;){if(fe.context===w){if(L.tag===1){fe=Io(-1,v&-v),fe.tag=2;var Ee=L.updateQueue;if(Ee!==null){Ee=Ee.shared;var Ie=Ee.pending;Ie===null?fe.next=fe:(fe.next=Ie.next,Ie.next=fe),Ee.pending=fe}}L.lanes|=v,fe=L.alternate,fe!==null&&(fe.lanes|=v),Tr(L.return,v,s),le.lanes|=v;break}fe=fe.next}}else if(L.tag===10)Z=L.type===s.type?null:L.child;else if(L.tag===18){if(Z=L.return,Z===null)throw Error(t(341));Z.lanes|=v,le=Z.alternate,le!==null&&(le.lanes|=v),Tr(Z,v,s),Z=L.sibling}else Z=L.child;if(Z!==null)Z.return=L;else for(Z=L;Z!==null;){if(Z===s){Z=null;break}if(L=Z.sibling,L!==null){L.return=Z.return,Z=L;break}Z=Z.return}L=Z}yr(o,s,O.children,v),s=s.child}return s;case 9:return O=s.type,w=s.pendingProps.children,Ke(s,v),O=ir(O),w=w(O),s.flags|=1,yr(o,s,w,v),s.child;case 14:return w=s.type,O=Qa(w,s.pendingProps),O=Qa(w.type,O),D0(o,s,w,O,v);case 15:return Ba(o,s,s.type,s.pendingProps,v);case 17:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),oa(o,s),s.tag=1,Yn(w)?(o=!0,Qd(s)):o=!1,Ke(s,v),m1(s,w,O),i0(s,w,O,v),S1(null,s,w,!0,o,v);case 19:return $v(o,s,v);case 22:return Fs(o,s,v)}throw Error(t(156,s.tag))};function nm(o,s){return $n(o,s)}function j_(o,s,v,w){this.tag=o,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(o,s,v,w){return new j_(o,s,v,w)}function rm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function I_(o){if(typeof o=="function")return rm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===U)return 11;if(o===K)return 14}return 2}function Yl(o,s){var v=o.alternate;return v===null?(v=Si(o.tag,s,o.key,o.mode),v.elementType=o.elementType,v.type=o.type,v.stateNode=o.stateNode,v.alternate=o,o.alternate=v):(v.pendingProps=s,v.type=o.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=o.flags&14680064,v.childLanes=o.childLanes,v.lanes=o.lanes,v.child=o.child,v.memoizedProps=o.memoizedProps,v.memoizedState=o.memoizedState,v.updateQueue=o.updateQueue,s=o.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},v.sibling=o.sibling,v.index=o.index,v.ref=o.ref,v}function z0(o,s,v,w,O,L){var Z=2;if(w=o,typeof o=="function")rm(o)&&(Z=1);else if(typeof o=="string")Z=5;else e:switch(o){case M:return Is(v.children,O,L,s);case I:Z=8,O|=8;break;case Y:return o=Si(12,v,s,O|2),o.elementType=Y,o.lanes=L,o;case H:return o=Si(13,v,s,O),o.elementType=H,o.lanes=L,o;case V:return o=Si(19,v,s,O),o.elementType=V,o.lanes=L,o;case J:return Rf(v,O,L,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case B:Z=10;break e;case P:Z=9;break e;case U:Z=11;break e;case K:Z=14;break e;case ee:Z=16,w=null;break e}throw Error(t(130,o==null?o:typeof o,""))}return s=Si(Z,v,s,O),s.elementType=o,s.type=w,s.lanes=L,s}function Is(o,s,v,w){return o=Si(7,o,w,s),o.lanes=v,o}function Rf(o,s,v,w){return o=Si(22,o,w,s),o.elementType=J,o.lanes=v,o.stateNode={isHidden:!1},o}function Ff(o,s,v){return o=Si(6,o,null,s),o.lanes=v,o}function Hs(o,s,v){return s=Si(4,o.children!==null?o.children:[],o.key,s),s.lanes=v,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function H_(o,s,v,w,O){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qp(0),this.expirationTimes=qp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qp(0),this.identifierPrefix=w,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function U0(o,s,v,w,O,L,Z,le,fe){return o=new H_(o,s,v,le,fe),s===1?(s=1,L===!0&&(s|=8)):s=0,L=Si(3,null,null,s),o.current=L,L.stateNode=o,L.memoizedState={element:w,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ov(L),o}function U1(o,s,v){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:w==null?null:""+w,children:o,containerInfo:s,implementation:v}}function am(o){if(!o)return oo;o=o._reactInternals;e:{if(Rt(o)!==o||o.tag!==1)throw Error(t(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Yn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(t(171))}if(o.tag===1){var v=o.type;if(Yn(v))return df(o,v,s)}return s}function j1(o,s,v,w,O,L,Z,le,fe){return o=U0(v,w,!0,o,O,L,Z,le,fe),o.context=am(null),v=o.current,w=ua(),O=hr(v),L=Io(w,O),L.callback=s??null,Bl(v,L,O),o.current.lanes=O,hs(o,O,w),fa(o,w),o}function Nf(o,s,v,w){var O=s.current,L=ua(),Z=hr(O);return v=am(v),s.context===null?s.context=v:s.pendingContext=v,s=Io(L,Z),s.payload={element:o},w=w===void 0?null:w,w!==null&&(s.callback=w),o=Bl(O,s,Z),o!==null&&(ca(o,O,Z,L),r0(o,O,Z)),Z}function j0(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function I1(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var v=o.retryLane;o.retryLane=v!==0&&v<s?v:s}}function im(o,s){I1(o,s),(o=o.alternate)&&I1(o,s)}function H1(){return null}var om=typeof reportError=="function"?reportError:function(o){};function I0(o){this._internalRoot=o}Go.prototype.render=I0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(t(409));Nf(o,s,null,null)},Go.prototype.unmount=I0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;$l(function(){Nf(null,o,null,null)}),s[zo]=null}};function Go(o){this._internalRoot=o}Go.prototype.unstable_scheduleHydration=function(o){if(o){var s=Dy();o={blockedOn:null,target:o,priority:s};for(var v=0;v<Sn.length&&s!==0&&s<Sn[v].priority;v++);Sn.splice(v,0,o),v===0&&ky(o)}};function lm(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function H0(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function V1(){}function V_(o,s,v,w,O){if(O){if(typeof w=="function"){var L=w;w=function(){var Ee=j0(Z);L.call(Ee)}}var Z=j1(s,w,o,0,null,!1,!1,"",V1);return o._reactRootContainer=Z,o[zo]=Z.current,Tu(o.nodeType===8?o.parentNode:o),$l(),Z}for(;O=o.lastChild;)o.removeChild(O);if(typeof w=="function"){var le=w;w=function(){var Ee=j0(fe);le.call(Ee)}}var fe=U0(o,0,!1,null,null,!1,!1,"",V1);return o._reactRootContainer=fe,o[zo]=fe.current,Tu(o.nodeType===8?o.parentNode:o),$l(function(){Nf(s,fe,v,w)}),fe}function V0(o,s,v,w,O){var L=v._reactRootContainer;if(L){var Z=L;if(typeof O=="function"){var le=O;O=function(){var fe=j0(Z);le.call(fe)}}Nf(s,Z,o,O)}else Z=V_(v,s,o,O,w);return j0(Z)}Ey=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var v=ds(s.pendingLanes);v!==0&&($c(s,v|1),fa(s,tn()),!(Ut&6)&&(qu=tn()+500,Oa()))}break;case 13:$l(function(){var w=jo(o,1);if(w!==null){var O=ua();ca(w,o,1,O)}}),im(o,1)}},Fd=function(o){if(o.tag===13){var s=jo(o,134217728);if(s!==null){var v=ua();ca(s,o,134217728,v)}im(o,134217728)}},An=function(o){if(o.tag===13){var s=hr(o),v=jo(o,s);if(v!==null){var w=ua();ca(v,o,s,w)}im(o,s)}},Dy=function(){return gn},Kp=function(o,s){var v=gn;try{return gn=o,s()}finally{gn=v}},na=function(o,s,v){switch(s){case"input":if(Zt(o,v),s=v.name,v.type==="radio"&&s!=null){for(v=o;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<v.length;s++){var w=v[s];if(w!==o&&w.form===o.form){var O=pt(w);if(!O)throw Error(t(90));ke(w),Zt(w,O)}}}break;case"textarea":In(o,v);break;case"select":s=v.value,s!=null&&un(o,!!v.multiple,s,!1)}},bl=Wu,gu=$l;var $_={usingClientEntryPoint:!1,Events:[ff,Au,pt,Do,xl,Wu]},Zu={findFiberByHostInstance:pi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Y_={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Sr(o),o===null?null:o.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||H1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$0.isDisabled&&$0.supportsFiber)try{Vc=$0.inject(Y_),Ui=$0}catch{}}return ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$_,ai.createPortal=function(o,s){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lm(s))throw Error(t(200));return U1(o,s,null,v)},ai.createRoot=function(o,s){if(!lm(o))throw Error(t(299));var v=!1,w="",O=om;return s!=null&&(s.unstable_strictMode===!0&&(v=!0),s.identifierPrefix!==void 0&&(w=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError)),s=U0(o,1,!1,null,null,v,!1,w,O),o[zo]=s.current,Tu(o.nodeType===8?o.parentNode:o),new I0(s)},ai.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(t(188)):(o=Object.keys(o).join(","),Error(t(268,o)));return o=Sr(s),o=o===null?null:o.stateNode,o},ai.flushSync=function(o){return $l(o)},ai.hydrate=function(o,s,v){if(!H0(s))throw Error(t(200));return V0(null,o,s,!0,v)},ai.hydrateRoot=function(o,s,v){if(!lm(o))throw Error(t(405));var w=v!=null&&v.hydratedSources||null,O=!1,L="",Z=om;if(v!=null&&(v.unstable_strictMode===!0&&(O=!0),v.identifierPrefix!==void 0&&(L=v.identifierPrefix),v.onRecoverableError!==void 0&&(Z=v.onRecoverableError)),s=j1(s,null,o,1,v??null,O,!1,L,Z),o[zo]=s.current,Tu(o),w)for(o=0;o<w.length;o++)v=w[o],O=v._getVersion,O=O(v._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[v,O]:s.mutableSourceEagerHydrationData.push(v,O);return new Go(s)},ai.render=function(o,s,v){if(!H0(s))throw Error(t(200));return V0(null,o,s,!1,v)},ai.unmountComponentAtNode=function(o){if(!H0(o))throw Error(t(40));return o._reactRootContainer?($l(function(){V0(null,null,o,!1,function(){o._reactRootContainer=null,o[zo]=null})}),!0):!1},ai.unstable_batchedUpdates=Wu,ai.unstable_renderSubtreeIntoContainer=function(o,s,v,w){if(!H0(v))throw Error(t(200));if(o==null||o._reactInternals===void 0)throw Error(t(38));return V0(o,s,v,!1,w)},ai.version="18.2.0-next-9e3b772b8-20220608",ai}var ii={};var M8;function p9(){return M8||(M8=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=W,r=F8(),t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function l(n){i=n}function f(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];p("warn",n,u)}}function c(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];p("error",n,u)}}function p(n,a,u){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(a+="%s",u=u.concat([y]));var S=u.map(function(F){return String(F)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,S)}}var g=0,d=1,m=2,C=3,b=4,x=5,_=6,k=7,E=8,A=9,T=10,D=11,R=12,N=13,z=14,M=15,I=16,Y=17,B=18,P=19,U=21,H=22,V=23,K=24,ee=25,J=!0,q=!1,te=!1,X=!1,$=!1,ne=!0,oe=!1,ae=!1,se=!0,ve=!0,we=!0,ce=new Set,ye={},De={};function Pe(n,a){ke(n,a),ke(n+"Capture",a)}function ke(n,a){ye[n]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),ye[n]=a;{var u=n.toLowerCase();De[u]=n,n==="onDoubleClick"&&(De.ondblclick=n)}for(var h=0;h<a.length;h++)ce.add(a[h])}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ne=Object.prototype.hasOwnProperty;function dt(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,u=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u}}function Xe(n){try{return Zt(n),!1}catch{return!0}}function Zt(n){return""+n}function sn(n,a){if(Xe(n))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,dt(n)),Zt(n)}function kn(n){if(Xe(n))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(n)),Zt(n)}function jn(n,a){if(Xe(n))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,dt(n)),Zt(n)}function un(n,a){if(Xe(n))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,dt(n)),Zt(n)}function It(n){if(Xe(n))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",dt(n)),Zt(n)}function on(n){if(Xe(n))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",dt(n)),Zt(n)}var In=0,Mn=1,Tn=2,Gt=3,Kn=4,ka=5,Lr=6,qe=":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",at=qe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ct=new RegExp("^["+qe+"]["+at+"]*$"),Ht={},Nn={};function ur(n){return Ne.call(Nn,n)?!0:Ne.call(Ht,n)?!1:ct.test(n)?(Nn[n]=!0,!0):(Ht[n]=!0,c("Invalid attribute name: `%s`",n),!1)}function Wn(n,a,u){return a!==null?a.type===In:u?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function zr(n,a,u,h){if(u!==null&&u.type===In)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(h)return!1;if(u!==null)return!u.acceptsBooleans;var y=n.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function _n(n,a,u,h){if(a===null||typeof a>"u"||zr(n,a,u,h))return!0;if(h)return!1;if(u!==null)switch(u.type){case Gt:return!a;case Kn:return a===!1;case ka:return isNaN(a);case Lr:return isNaN(a)||a<1}return!1}function na(n){return mn.hasOwnProperty(n)?mn[n]:null}function vn(n,a,u,h,y,S,F){this.acceptsBooleans=a===Tn||a===Gt||a===Kn,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=n,this.type=a,this.sanitizeURL=S,this.removeEmptyString=F}var mn={},yl=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yl.forEach(function(n){mn[n]=new vn(n,In,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],u=n[1];mn[a]=new vn(a,Mn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){mn[n]=new vn(n,Tn,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){mn[n]=new vn(n,Tn,!1,n,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"].forEach(function(n){mn[n]=new vn(n,Gt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){mn[n]=new vn(n,Gt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){mn[n]=new vn(n,Kn,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){mn[n]=new vn(n,Lr,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){mn[n]=new vn(n,ka,!1,n.toLowerCase(),null,!1,!1)});var Do=/[\-\:]([a-z])/g,xl=function(n){return n[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"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Mn,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Mn,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Mn,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){mn[n]=new vn(n,Mn,!1,n.toLowerCase(),null,!1,!1)});var bl="xlinkHref";mn[bl]=new vn("xlinkHref",Mn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){mn[n]=new vn(n,Mn,!1,n.toLowerCase(),null,!0,!0)});var gu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ko=!1;function To(n){!ko&&gu.test(n)&&(ko=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function Ao(n,a,u,h){if(h.mustUseProperty){var y=h.propertyName;return n[y]}else{sn(u,a),h.sanitizeURL&&To(""+u);var S=h.attributeName,F=null;if(h.type===Kn){if(n.hasAttribute(S)){var j=n.getAttribute(S);return j===""?!0:_n(a,u,h,!1)?j:j===""+u?u:j}}else if(n.hasAttribute(S)){if(_n(a,u,h,!1))return n.getAttribute(S);if(h.type===Gt)return u;F=n.getAttribute(S)}return _n(a,u,h,!1)?F===null?u:F:F===""+u?u:F}}function Oo(n,a,u,h){{if(!ur(a))return;if(!n.hasAttribute(a))return u===void 0?void 0:null;var y=n.getAttribute(a);return sn(u,a),y===""+u?u:y}}function Hn(n,a,u,h){var y=na(a);if(!Wn(a,y,h)){if(_n(a,u,y,h)&&(u=null),h||y===null){if(ur(a)){var S=a;u===null?n.removeAttribute(S):(sn(u,a),n.setAttribute(S,""+u))}return}var F=y.mustUseProperty;if(F){var j=y.propertyName;if(u===null){var G=y.type;n[j]=G===Gt?!1:""}else n[j]=u;return}var re=y.attributeName,ie=y.attributeNamespace;if(u===null)n.removeAttribute(re);else{var pe=y.type,de;pe===Gt||pe===Kn&&u===!0?de="":(sn(u,re),de=""+u,y.sanitizeURL&&To(de.toString())),ie?n.setAttributeNS(ie,re,de):n.setAttribute(re,de)}}}var Ur=Symbol.for("react.element"),ra=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Cl=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),He=Symbol.for("react.provider"),Qe=Symbol.for("react.context"),mt=Symbol.for("react.forward_ref"),Rt=Symbol.for("react.suspense"),Xt=Symbol.for("react.suspense_list"),Mt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),Sr=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),$n=Symbol.for("react.offscreen"),ha=Symbol.for("react.legacy_hidden"),wl=Symbol.for("react.cache"),Td=Symbol.for("react.tracing_marker"),tn=Symbol.iterator,o_="@@iterator";function Ro(n){if(n===null||typeof n!="object")return null;var a=tn&&n[tn]||n[o_];return typeof a=="function"?a:null}var zt=Object.assign,_l=0,Cy,Vp,Vc,Ui,wy,ci,_y;function Sy(){}Sy.__reactDisabledLog=!0;function l_(){{if(_l===0){Cy=console.log,Vp=console.info,Vc=console.warn,Ui=console.error,wy=console.group,ci=console.groupCollapsed,_y=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Sy,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}_l++}}function Ad(){{if(_l--,_l===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:zt({},n,{value:Cy}),info:zt({},n,{value:Vp}),warn:zt({},n,{value:Vc}),error:zt({},n,{value:Ui}),group:zt({},n,{value:wy}),groupCollapsed:zt({},n,{value:ci}),groupEnd:zt({},n,{value:_y})})}_l<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yu=t.ReactCurrentDispatcher,ds;function ji(n,a,u){{if(ds===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);ds=h&&h[1]||""}return`
77
77
  `+ds+n}}var $p=!1,Od;{var Yp=typeof WeakMap=="function"?WeakMap:Map;Od=new Yp}function Rd(n,a){if(!n||$p)return"";{var u=Od.get(n);if(u!==void 0)return u}var h;$p=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=yu.current,yu.current=null,l_();try{if(a){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Se){h=Se}Reflect.construct(n,[],F)}else{try{F.call()}catch(Se){h=Se}n.call(F.prototype)}}else{try{throw Error()}catch(Se){h=Se}n()}}catch(Se){if(Se&&h&&typeof Se.stack=="string"){for(var j=Se.stack.split(`
78
78
  `),G=h.stack.split(`
79
79
  `),re=j.length-1,ie=G.length-1;re>=1&&ie>=0&&j[re]!==G[ie];)ie--;for(;re>=1&&ie>=0;re--,ie--)if(j[re]!==G[ie]){if(re!==1||ie!==1)do if(re--,ie--,ie<0||j[re]!==G[ie]){var pe=`
@@ -81,7 +81,7 @@ Error generating stack: `+L.message+`
81
81
  Error generating stack: `+h.message+`
82
82
  `+h.stack}}function Ey(n,a,u){var h=n.displayName;if(h)return h;var y=a.displayName||a.name||"";return y!==""?u+"("+y+")":u}function Fd(n){return n.displayName||"Context"}function An(n){if(n==null)return null;if(typeof n.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Ya:return"Fragment";case ra:return"Portal";case ue:return"Profiler";case Cl:return"StrictMode";case Rt:return"Suspense";case Xt:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Qe:var a=n;return Fd(a)+".Consumer";case He:var u=n;return Fd(u._context)+".Provider";case mt:return Ey(n,n.render,"ForwardRef");case Mt:var h=n.displayName||null;return h!==null?h:An(n.type)||"Memo";case yt:{var y=n,S=y._payload,F=y._init;try{return An(F(S))}catch{return null}}}return null}function Dy(n,a,u){var h=a.displayName||a.name||"";return n.displayName||(h!==""?u+"("+h+")":u)}function Kp(n){return n.displayName||"Context"}function Tt(n){var a=n.tag,u=n.type;switch(a){case K:return"Cache";case A:var h=u;return Kp(h)+".Consumer";case T:var y=u;return Kp(y._context)+".Provider";case B:return"DehydratedFragment";case D:return Dy(u,u.render,"ForwardRef");case k:return"Fragment";case x:return u;case b:return"Portal";case C:return"Root";case _:return"Text";case I:return An(u);case E:return u===Cl?"StrictMode":"Mode";case H:return"Offscreen";case R:return"Profiler";case U:return"Scope";case N:return"Suspense";case P:return"SuspenseList";case ee:return"TracingMarker";case d:case g:case Y:case m:case z:case M:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;break}return null}var Yc=t.ReactDebugCurrentFrame,cr=null,fi=!1;function di(){{if(cr===null)return null;var n=cr._debugOwner;if(n!==null&&typeof n<"u")return Tt(n)}return null}function qc(){return cr===null?"":Gp(cr)}function mr(){Yc.getCurrentStack=null,cr=null,fi=!1}function Sn(n){Yc.getCurrentStack=n===null?null:qc,cr=n,fi=!1}function u_(){return cr}function Ii(n){fi=n}function aa(n){return""+n}function Sl(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return on(n),n;default:return""}}var ky={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function xu(n,a){ky[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||c("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Wp(n){var a=n.type,u=n.nodeName;return u&&u.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ty(n){return n._valueTracker}function Gc(n){n._valueTracker=null}function Kc(n){var a="";return n&&(Wp(n)?a=n.checked?"true":"false":a=n.value),a}function bu(n){var a=Wp(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);on(n[a]);var h=""+n[a];if(!(n.hasOwnProperty(a)||typeof u>"u"||typeof u.get!="function"||typeof u.set!="function")){var y=u.get,S=u.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return y.call(this)},set:function(j){on(j),h=""+j,S.call(this,j)}}),Object.defineProperty(n,a,{enumerable:u.enumerable});var F={getValue:function(){return h},setValue:function(j){on(j),h=""+j},stopTracking:function(){Gc(n),delete n[a]}};return F}}function ps(n){Ty(n)||(n._valueTracker=bu(n))}function Ay(n){if(!n)return!1;var a=Ty(n);if(!a)return!0;var u=a.getValue(),h=Kc(n);return h!==u?(a.setValue(h),!0):!1}function Nd(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Md=!1,Wc=!1,Pd=!1,Qp=!1;function Fo(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function Qc(n,a){var u=n,h=a.checked,y=zt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??u._wrapperState.initialChecked});return y}function Zc(n,a){xu("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!Wc&&(c("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component",a.type),Wc=!0),a.value!==void 0&&a.defaultValue!==void 0&&!Md&&(c("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component",a.type),Md=!0);var u=n,h=a.defaultValue==null?"":a.defaultValue;u._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:Sl(a.value!=null?a.value:h),controlled:Fo(a)}}function Zp(n,a){var u=n,h=a.checked;h!=null&&Hn(u,"checked",h,!1)}function Cu(n,a){var u=n;{var h=Fo(a);!u._wrapperState.controlled&&h&&!Qp&&(c("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Qp=!0),u._wrapperState.controlled&&!h&&!Pd&&(c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Pd=!0)}Zp(n,a);var y=Sl(a.value),S=a.type;if(y!=null)S==="number"?(y===0&&u.value===""||u.value!=y)&&(u.value=aa(y)):u.value!==aa(y)&&(u.value=aa(y));else if(S==="submit"||S==="reset"){u.removeAttribute("value");return}a.hasOwnProperty("value")?El(u,a.type,y):a.hasOwnProperty("defaultValue")&&El(u,a.type,Sl(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(u.defaultChecked=!!a.defaultChecked)}function Xc(n,a,u){var h=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var y=a.type,S=y==="submit"||y==="reset";if(S&&(a.value===void 0||a.value===null))return;var F=aa(h._wrapperState.initialValue);u||F!==h.value&&(h.value=F),h.defaultValue=F}var j=h.name;j!==""&&(h.name=""),h.defaultChecked=!h.defaultChecked,h.defaultChecked=!!h._wrapperState.initialChecked,j!==""&&(h.name=j)}function Oy(n,a){var u=n;Cu(u,a),qa(u,a)}function qa(n,a){var u=a.name;if(a.type==="radio"&&u!=null){for(var h=n;h.parentNode;)h=h.parentNode;sn(u,"name");for(var y=h.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),S=0;S<y.length;S++){var F=y[S];if(!(F===n||F.form!==n.form)){var j=ox(F);if(!j)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ay(F),Cu(F,j)}}}}function El(n,a,u){(a!=="number"||Nd(n.ownerDocument)!==n)&&(u==null?n.defaultValue=aa(n._wrapperState.initialValue):n.defaultValue!==aa(u)&&(n.defaultValue=aa(u)))}var Bd=!1,wu=!1,Ry=!1;function Ld(n,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(u){u!=null&&(typeof u=="string"||typeof u=="number"||wu||(wu=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(Ry||(Ry=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!Bd&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Bd=!0)}function Xp(n,a){a.value!=null&&n.setAttribute("value",aa(Sl(a.value)))}var Jc=Array.isArray;function Er(n){return Jc(n)}var zd;zd=!1;function Fy(){var n=di();return n?`
83
83
 
84
- Check the render method of \``+n+"`.":""}var Ny=["value","defaultValue"];function c_(n){{xu("select",n);for(var a=0;a<Ny.length;a++){var u=Ny[a];if(n[u]!=null){var h=Er(n[u]);n.multiple&&!h?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Fy()):!n.multiple&&h&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Fy())}}}}function Dl(n,a,u,h){var y=n.options;if(a){for(var S=u,F={},j=0;j<S.length;j++)F["$"+S[j]]=!0;for(var G=0;G<y.length;G++){var re=F.hasOwnProperty("$"+y[G].value);y[G].selected!==re&&(y[G].selected=re),re&&h&&(y[G].defaultSelected=!0)}}else{for(var ie=aa(Sl(u)),pe=null,de=0;de<y.length;de++){if(y[de].value===ie){y[de].selected=!0,h&&(y[de].defaultSelected=!0);return}pe===null&&!y[de].disabled&&(pe=y[de])}pe!==null&&(pe.selected=!0)}}function Jp(n,a){return zt({},a,{value:void 0})}function My(n,a){var u=n;c_(a),u._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!zd&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),zd=!0)}function f_(n,a){var u=n;u.multiple=!!a.multiple;var h=a.value;h!=null?Dl(u,!!a.multiple,h,!1):a.defaultValue!=null&&Dl(u,!!a.multiple,a.defaultValue,!0)}function d_(n,a){var u=n,h=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!a.multiple;var y=a.value;y!=null?Dl(u,!!a.multiple,y,!1):h!==!!a.multiple&&(a.defaultValue!=null?Dl(u,!!a.multiple,a.defaultValue,!0):Dl(u,!!a.multiple,a.multiple?[]:"",!1))}function h_(n,a){var u=n,h=a.value;h!=null&&Dl(u,!!a.multiple,h,!1)}var ev=!1;function tv(n,a){var u=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var h=zt({},a,{value:void 0,defaultValue:void 0,children:aa(u._wrapperState.initialValue)});return h}function Py(n,a){var u=n;xu("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!ev&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component"),ev=!0);var h=a.value;if(h==null){var y=a.children,S=a.defaultValue;if(y!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Er(y)){if(y.length>1)throw new Error("<textarea> can only have at most one child.");y=y[0]}S=y}}S==null&&(S=""),h=S}u._wrapperState={initialValue:Sl(h)}}function By(n,a){var u=n,h=Sl(a.value),y=Sl(a.defaultValue);if(h!=null){var S=aa(h);S!==u.value&&(u.value=S),a.defaultValue==null&&u.defaultValue!==S&&(u.defaultValue=S)}y!=null&&(u.defaultValue=aa(y))}function Ly(n,a){var u=n,h=u.textContent;h===u._wrapperState.initialValue&&h!==""&&h!==null&&(u.value=h)}function nv(n,a){By(n,a)}var No="http://www.w3.org/1999/xhtml",p_="http://www.w3.org/1998/Math/MathML",rv="http://www.w3.org/2000/svg";function Ud(n){switch(n){case"svg":return rv;case"math":return p_;default:return No}}function av(n,a){return n==null||n===No?Ud(a):n===rv&&a==="foreignObject"?No:n}var v_=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,h,y){MSApp.execUnsafeLocalFunction(function(){return n(a,u,h,y)})}:n},jd,zy=v_(function(n,a){if(n.namespaceURI===rv&&!("innerHTML"in n)){jd=jd||document.createElement("div"),jd.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var u=jd.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;u.firstChild;)n.appendChild(u.firstChild);return}n.innerHTML=a}),Ta=1,Mo=3,fr=8,Hi=9,vs=11,Id=function(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===Mo){u.nodeValue=a;return}}n.textContent=a},Uy={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},_u={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};function jy(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var Iy=["Webkit","ms","Moz","O"];Object.keys(_u).forEach(function(n){Iy.forEach(function(a){_u[jy(a,n)]=_u[n]})});function Hd(n,a,u){var h=a==null||typeof a=="boolean"||a==="";return h?"":!u&&typeof a=="number"&&a!==0&&!(_u.hasOwnProperty(n)&&_u[n])?a+"px":(un(a,n),(""+a).trim())}var Su=/([A-Z])/g,m_=/^ms-/;function g_(n){return n.replace(Su,"-$1").toLowerCase().replace(m_,"-ms-")}var Hy=function(){};{var Vy=/^(?:webkit|moz|o)[A-Z]/,$y=/^-ms-/,ef=/-(.)/g,Eu=/;\s*$/,Du={},ku={},Yy=!1,iv=!1,ov=function(n){return n.replace(ef,function(a,u){return u.toUpperCase()})},lv=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported style property %s. Did you mean %s?",n,ov(n.replace($y,"ms-"))))},qy=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},Gy=function(n,a){ku.hasOwnProperty(a)&&ku[a]||(ku[a]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(Eu,"")))},Ky=function(n,a){Yy||(Yy=!0,c("`NaN` is an invalid value for the `%s` css style property.",n))},y_=function(n,a){iv||(iv=!0,c("`Infinity` is an invalid value for the `%s` css style property.",n))};Hy=function(n,a){n.indexOf("-")>-1?lv(n):Vy.test(n)?qy(n):Eu.test(a)&&Gy(n,a),typeof a=="number"&&(isNaN(a)?Ky(n,a):isFinite(a)||y_(n,a))}}var x_=Hy;function b_(n){{var a="",u="";for(var h in n)if(n.hasOwnProperty(h)){var y=n[h];if(y!=null){var S=h.indexOf("--")===0;a+=u+(S?h:g_(h))+":",a+=Hd(h,y,S),u=";"}}return a||null}}function Wy(n,a){var u=n.style;for(var h in a)if(a.hasOwnProperty(h)){var y=h.indexOf("--")===0;y||x_(h,a[h]);var S=Hd(h,a[h],y);h==="float"&&(h="cssFloat"),y?u.setProperty(h,S):u[h]=S}}function C_(n){return n==null||typeof n=="boolean"||n===""}function hi(n){var a={};for(var u in n)for(var h=Uy[u]||[u],y=0;y<h.length;y++)a[h[y]]=u;return a}function tf(n,a){{if(!a)return;var u=hi(n),h=hi(a),y={};for(var S in u){var F=u[S],j=h[S];if(j&&F!==j){var G=F+","+j;if(y[G])continue;y[G]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",C_(n[F])?"Removing":"Updating",F,j)}}}}var Qy={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},Zy=zt({menuitem:!0},Qy),Xy="__html";function Vd(n,a){if(a){if(Zy[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Xy in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Po(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 $d={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Jy={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vi={},sv=new RegExp("^(aria)-["+at+"]*$"),nf=new RegExp("^(aria)[A-Z]["+at+"]*$");function uv(n,a){{if(Ne.call(Vi,a)&&Vi[a])return!0;if(nf.test(a)){var u="aria-"+a.slice(4).toLowerCase(),h=Jy.hasOwnProperty(u)?u:null;if(h==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Vi[a]=!0,!0;if(a!==h)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,h),Vi[a]=!0,!0}if(sv.test(a)){var y=a.toLowerCase(),S=Jy.hasOwnProperty(y)?y:null;if(S==null)return Vi[a]=!0,!1;if(a!==S)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,S),Vi[a]=!0,!0}}return!0}function e1(n,a){{var u=[];for(var h in a){var y=uv(n,h);y||u.push(h)}var S=u.map(function(F){return"`"+F+"`"}).join(", ");u.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n):u.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n)}}function Yd(n,a){Po(n,a)||e1(n,a)}var ms=!1;function cv(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!ms&&(ms=!0,n==="select"&&a.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var fv=function(){};{var Dr={},dv=/^on./,t1=/^on[^A-Z]/,n1=new RegExp("^(aria)-["+at+"]*$"),r1=new RegExp("^(aria)[A-Z]["+at+"]*$");fv=function(n,a,u,h){if(Ne.call(Dr,a)&&Dr[a])return!0;var y=a.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Dr[a]=!0,!0;if(h!=null){var S=h.registrationNameDependencies,F=h.possibleRegistrationNames;if(S.hasOwnProperty(a))return!0;var j=F.hasOwnProperty(y)?F[y]:null;if(j!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",a,j),Dr[a]=!0,!0;if(dv.test(a))return c("Unknown event handler property `%s`. It will be ignored.",a),Dr[a]=!0,!0}else if(dv.test(a))return t1.test(a)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Dr[a]=!0,!0;if(n1.test(a)||r1.test(a))return!0;if(y==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Dr[a]=!0,!0;if(y==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Dr[a]=!0,!0;if(y==="is"&&u!==null&&u!==void 0&&typeof u!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Dr[a]=!0,!0;if(typeof u=="number"&&isNaN(u))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Dr[a]=!0,!0;var G=na(a),re=G!==null&&G.type===In;if($d.hasOwnProperty(y)){var ie=$d[y];if(ie!==a)return c("Invalid DOM property `%s`. Did you mean `%s`?",a,ie),Dr[a]=!0,!0}else if(!re&&a!==y)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,y),Dr[a]=!0,!0;return typeof u=="boolean"&&zr(a,u,G,!1)?(u?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),Dr[a]=!0,!0):re?!0:zr(a,u,G,!1)?(Dr[a]=!0,!1):((u==="false"||u==="true")&&G!==null&&G.type===Gt&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),Dr[a]=!0),!0)}}var a1=function(n,a,u){{var h=[];for(var y in a){var S=fv(n,y,a[y],u);S||h.push(y)}var F=h.map(function(j){return"`"+j+"`"}).join(", ");h.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n):h.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n)}};function i1(n,a,u){Po(n,a)||a1(n,a,u)}var Bo=1,rf=1<<1,gs=1<<2,w_=Bo|rf|gs,af=null;function of(n){af!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),af=n}function __(){af===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),af=null}function o1(n){return n===af}function qd(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Mo?a.parentNode:a}var On=null,kl=null,Lo=null;function Tu(n){var a=ec(n);if(a){if(typeof On!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var u=a.stateNode;if(u){var h=ox(u);On(a.stateNode,a.type,h)}}}function l1(n){On=n}function Gd(n){kl?Lo?Lo.push(n):Lo=[n]:kl=n}function lf(){return kl!==null||Lo!==null}function sf(){if(kl){var n=kl,a=Lo;if(kl=null,Lo=null,Tu(n),a)for(var u=0;u<a.length;u++)Tu(a[u])}}var ys=function(n,a){return n(a)},hv=function(){},pv=!1;function S_(){var n=lf();n&&(hv(),sf())}function vv(n,a,u){if(pv)return n(a,u);pv=!0;try{return ys(n,a,u)}finally{pv=!1,S_()}}function Kd(n,a,u){ys=n,hv=u}function Wd(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function mv(n,a,u){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(u.disabled&&Wd(a));default:return!1}}function xs(n,a){var u=n.stateNode;if(u===null)return null;var h=ox(u);if(h===null)return null;var y=h[a];if(mv(a,n.type,h))return null;if(y&&typeof y!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof y+"` type.");return y}var uf=!1;if(ze)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){uf=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{uf=!1}function s1(n,a,u,h,y,S,F,j,G){var re=Array.prototype.slice.call(arguments,3);try{a.apply(u,re)}catch(ie){this.onError(ie)}}var gv=s1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var yv=document.createElement("react");gv=function(a,u,h,y,S,F,j,G,re){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ie=document.createEvent("Event"),pe=!1,de=!0,_e=window.event,Se=Object.getOwnPropertyDescriptor(window,"event");function Te(){yv.removeEventListener(Ae,vt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_e)}var tt=Array.prototype.slice.call(arguments,3);function vt(){pe=!0,Te(),u.apply(h,tt),de=!1}var ft,Yt=!1,jt=!1;function xe(be){if(ft=be.error,Yt=!0,ft===null&&be.colno===0&&be.lineno===0&&(jt=!0),be.defaultPrevented&&ft!=null&&typeof ft=="object")try{ft._suppressLogging=!0}catch{}}var Ae="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",xe),yv.addEventListener(Ae,vt,!1),ie.initEvent(Ae,!1,!1),yv.dispatchEvent(ie),Se&&Object.defineProperty(window,"event",Se),pe&&de&&(Yt?jt&&(ft=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ft=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ft)),window.removeEventListener("error",xe),!pe)return Te(),s1.apply(this,arguments)}}var E_=gv,Tl=!1,$i=null,cf=!1,Al=null,io={onError:function(n){Tl=!0,$i=n}};function Cs(n,a,u,h,y,S,F,j,G){Tl=!1,$i=null,E_.apply(io,arguments)}function zo(n,a,u,h,y,S,F,j,G){if(Cs.apply(this,arguments),Tl){var re=bv();cf||(cf=!0,Al=re)}}function xv(){if(cf){var n=Al;throw cf=!1,Al=null,n}}function D_(){return Tl}function bv(){if(Tl){var n=$i;return Tl=!1,$i=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function pi(n){return n._reactInternals}function ff(n){return n._reactInternals!==void 0}function Au(n,a){n._reactInternals=a}var pt=0,Ol=1,Pn=2,At=4,ln=16,cn=32,oo=64,_t=128,tr=256,Aa=512,vi=1024,Yn=2048,mi=4096,Rl=8192,df=16384,Qd=Yn|At|oo|Aa|vi|df,u1=32767,Ga=32768,kr=65536,hf=131072,Cv=1048576,wv=2097152,Oa=4194304,Fl=8388608,Ra=16777216,ws=33554432,Ou=At|vi|0,Fa=Pn|At|ln|cn|Aa|mi|Rl,ia=At|oo|Aa|Rl,gi=Yn|ln,jr=Oa|Fl|wv,Uo=t.ReactCurrentOwner;function Ka(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{var h=a;do a=h,(a.flags&(Pn|mi))!==pt&&(u=a.return),h=a.return;while(h)}return a.tag===C?u:null}function _v(n){if(n.tag===N){var a=n.memoizedState;if(a===null){var u=n.alternate;u!==null&&(a=u.memoizedState)}if(a!==null)return a.dehydrated}return null}function Zd(n){return n.tag===C?n.stateNode.containerInfo:null}function Sv(n){return Ka(n)===n}function Wa(n){{var a=Uo.current;if(a!==null&&a.tag===d){var u=a,h=u.stateNode;h._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tt(u)||"A component"),h._warnedAboutRefsInRender=!0}}var y=pi(n);return y?Ka(y)===y:!1}function Na(n){if(Ka(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function Bn(n){var a=n.alternate;if(!a){var u=Ka(n);if(u===null)throw new Error("Unable to find node on an unmounted component.");return u!==n?null:n}for(var h=n,y=a;;){var S=h.return;if(S===null)break;var F=S.alternate;if(F===null){var j=S.return;if(j!==null){h=y=j;continue}break}if(S.child===F.child){for(var G=S.child;G;){if(G===h)return Na(S),n;if(G===y)return Na(S),a;G=G.sibling}throw new Error("Unable to find node on an unmounted component.")}if(h.return!==y.return)h=S,y=F;else{for(var re=!1,ie=S.child;ie;){if(ie===h){re=!0,h=S,y=F;break}if(ie===y){re=!0,y=S,h=F;break}ie=ie.sibling}if(!re){for(ie=F.child;ie;){if(ie===h){re=!0,h=F,y=S;break}if(ie===y){re=!0,y=F,h=S;break}ie=ie.sibling}if(!re)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(h.alternate!==y)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(h.tag!==C)throw new Error("Unable to find node on an unmounted component.");return h.stateNode.current===h?n:a}function yi(n){var a=Bn(n);return a!==null?Ev(a):null}function Ev(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){var u=Ev(a);if(u!==null)return u;a=a.sibling}return null}function c1(n){var a=Bn(n);return a!==null?Xd(a):null}function Xd(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){if(a.tag!==b){var u=Xd(a);if(u!==null)return u}a=a.sibling}return null}var Jd=r.unstable_scheduleCallback,f1=r.unstable_cancelCallback,e0=r.unstable_shouldYield,d1=r.unstable_requestPaint,Qn=r.unstable_now,Dv=r.unstable_getCurrentPriorityLevel,t0=r.unstable_ImmediatePriority,Qa=r.unstable_UserBlockingPriority,lo=r.unstable_NormalPriority,n0=r.unstable_LowPriority,Nl=r.unstable_IdlePriority,kv=r.unstable_yieldValue,Tv=r.unstable_setDisableYieldValue,Ml=null,Tr=null,Ke=null,ir=!1,Ir=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Av(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{se&&(n=zt({},n,{getLaneLabelMap:Bl,injectProfilingHooks:Io})),Ml=a.inject(n),Tr=a}catch(u){c("React instrumentation encountered an error: %s.",u)}return!!a.checkDCE}function h1(n,a){if(Tr&&typeof Tr.onScheduleFiberRoot=="function")try{Tr.onScheduleFiberRoot(Ml,n,a)}catch(u){ir||(ir=!0,c("React instrumentation encountered an error: %s",u))}}function jo(n,a){if(Tr&&typeof Tr.onCommitFiberRoot=="function")try{var u=(n.current.flags&_t)===_t;if(ve){var h;switch(a){case oa:h=t0;break;case Hr:h=Qa;break;case Vo:h=lo;break;case wf:h=Nl;break;default:h=lo;break}Tr.onCommitFiberRoot(Ml,n,h,u)}}catch(y){ir||(ir=!0,c("React instrumentation encountered an error: %s",y))}}function Pl(n){if(Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Ov(n){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function gr(n){if(typeof kv=="function"&&(Tv(n),l(n)),Tr&&typeof Tr.setStrictMode=="function")try{Tr.setStrictMode(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Io(n){Ke=n}function Bl(){{for(var n=new Map,a=1,u=0;u<Ln;u++){var h=k_(a);n.set(a,h),a*=2}return n}}function r0(n){Ke!==null&&typeof Ke.markCommitStarted=="function"&&Ke.markCommitStarted(n)}function Rv(){Ke!==null&&typeof Ke.markCommitStopped=="function"&&Ke.markCommitStopped()}function Ll(n){Ke!==null&&typeof Ke.markComponentRenderStarted=="function"&&Ke.markComponentRenderStarted(n)}function _s(){Ke!==null&&typeof Ke.markComponentRenderStopped=="function"&&Ke.markComponentRenderStopped()}function p1(n){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStarted=="function"&&Ke.markComponentPassiveEffectMountStarted(n)}function Fv(){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStopped=="function"&&Ke.markComponentPassiveEffectMountStopped()}function a0(n){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStarted=="function"&&Ke.markComponentPassiveEffectUnmountStarted(n)}function v1(){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStopped=="function"&&Ke.markComponentPassiveEffectUnmountStopped()}function m1(n){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStarted=="function"&&Ke.markComponentLayoutEffectMountStarted(n)}function g1(){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStopped=="function"&&Ke.markComponentLayoutEffectMountStopped()}function i0(n){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStarted=="function"&&Ke.markComponentLayoutEffectUnmountStarted(n)}function Ru(){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStopped=="function"&&Ke.markComponentLayoutEffectUnmountStopped()}function o0(n,a,u){Ke!==null&&typeof Ke.markComponentErrored=="function"&&Ke.markComponentErrored(n,a,u)}function y1(n,a,u){Ke!==null&&typeof Ke.markComponentSuspended=="function"&&Ke.markComponentSuspended(n,a,u)}function x1(n){Ke!==null&&typeof Ke.markLayoutEffectsStarted=="function"&&Ke.markLayoutEffectsStarted(n)}function Fu(){Ke!==null&&typeof Ke.markLayoutEffectsStopped=="function"&&Ke.markLayoutEffectsStopped()}function b1(n){Ke!==null&&typeof Ke.markPassiveEffectsStarted=="function"&&Ke.markPassiveEffectsStarted(n)}function pf(){Ke!==null&&typeof Ke.markPassiveEffectsStopped=="function"&&Ke.markPassiveEffectsStopped()}function Yi(n){Ke!==null&&typeof Ke.markRenderStarted=="function"&&Ke.markRenderStarted(n)}function vf(){Ke!==null&&typeof Ke.markRenderYielded=="function"&&Ke.markRenderYielded()}function Nu(){Ke!==null&&typeof Ke.markRenderStopped=="function"&&Ke.markRenderStopped()}function Ss(n){Ke!==null&&typeof Ke.markRenderScheduled=="function"&&Ke.markRenderScheduled(n)}function Nv(n,a){Ke!==null&&typeof Ke.markForceUpdateScheduled=="function"&&Ke.markForceUpdateScheduled(n,a)}function zl(n,a){Ke!==null&&typeof Ke.markStateUpdateScheduled=="function"&&Ke.markStateUpdateScheduled(n,a)}var gt=0,Lt=1,xt=2,Zn=8,xi=16,l0=Math.clz32?Math.clz32:Es,s0=Math.log,Mv=Math.LN2;function Es(n){var a=n>>>0;return a===0?32:31-(s0(a)/Mv|0)|0}var Ln=31,Oe=0,Vt=0,bt=1,so=2,Za=4,Ds=8,zn=16,ks=32,Ul=4194240,Ts=64,bi=128,Ma=256,As=512,mf=1024,gf=2048,u0=4096,c0=8192,f0=16384,d0=32768,h0=65536,p0=131072,v0=262144,m0=524288,Os=1048576,g0=2097152,Rs=130023424,Ho=4194304,y0=8388608,yf=16777216,x0=33554432,b0=67108864,Pv=Ho,Mu=134217728,C0=268435455,Pu=268435456,jl=536870912,Pa=1073741824;function k_(n){{if(n&bt)return"Sync";if(n&so)return"InputContinuousHydration";if(n&Za)return"InputContinuous";if(n&Ds)return"DefaultHydration";if(n&zn)return"Default";if(n&ks)return"TransitionHydration";if(n&Ul)return"Transition";if(n&Rs)return"Retry";if(n&Mu)return"SelectiveHydration";if(n&Pu)return"IdleHydration";if(n&jl)return"Idle";if(n&Pa)return"Offscreen"}}var Rn=-1,w0=Ts,_0=Ho;function Bu(n){switch(dr(n)){case bt:return bt;case so:return so;case Za:return Za;case Ds:return Ds;case zn:return zn;case ks:return ks;case Ts:case bi:case Ma:case As:case mf:case gf:case u0:case c0:case f0:case d0:case h0:case p0:case v0:case m0:case Os:case g0:return n&Ul;case Ho:case y0:case yf:case x0:case b0:return n&Rs;case Mu:return Mu;case Pu:return Pu;case jl:return jl;case Pa:return Pa;default:return c("Should have found matching lanes. This is a bug in React."),n}}function xf(n,a){var u=n.pendingLanes;if(u===Oe)return Oe;var h=Oe,y=n.suspendedLanes,S=n.pingedLanes,F=u&C0;if(F!==Oe){var j=F&~y;if(j!==Oe)h=Bu(j);else{var G=F&S;G!==Oe&&(h=Bu(G))}}else{var re=u&~y;re!==Oe?h=Bu(re):S!==Oe&&(h=Bu(S))}if(h===Oe)return Oe;if(a!==Oe&&a!==h&&(a&y)===Oe){var ie=dr(h),pe=dr(a);if(ie>=pe||ie===zn&&(pe&Ul)!==Oe)return a}(h&Za)!==Oe&&(h|=u&zn);var de=n.entangledLanes;if(de!==Oe)for(var _e=n.entanglements,Se=h&de;Se>0;){var Te=Il(Se),tt=1<<Te;h|=_e[Te],Se&=~tt}return h}function C1(n,a){for(var u=n.eventTimes,h=Rn;a>0;){var y=Il(a),S=1<<y,F=u[y];F>h&&(h=F),a&=~S}return h}function S0(n,a){switch(n){case bt:case so:case Za:return a+250;case Ds:case zn:case ks:case Ts:case bi:case Ma:case As:case mf:case gf:case u0:case c0:case f0:case d0:case h0:case p0:case v0:case m0:case Os:case g0:return a+5e3;case Ho:case y0:case yf:case x0:case b0:return Rn;case Mu:case Pu:case jl:case Pa:return Rn;default:return c("Should have found matching lanes. This is a bug in React."),Rn}}function T_(n,a){for(var u=n.pendingLanes,h=n.suspendedLanes,y=n.pingedLanes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),G=1<<j,re=S[j];re===Rn?((G&h)===Oe||(G&y)!==Oe)&&(S[j]=S0(G,a)):re<=a&&(n.expiredLanes|=G),F&=~G}}function A_(n){return Bu(n.pendingLanes)}function Bv(n){var a=n.pendingLanes&~Pa;return a!==Oe?a:a&Pa?Pa:Oe}function Lu(n){return(n&bt)!==Oe}function bf(n){return(n&C0)!==Oe}function E0(n){return(n&Rs)===n}function O_(n){var a=bt|Za|zn;return(n&a)===Oe}function w1(n){return(n&Ul)===n}function Cf(n,a){var u=so|Za|Ds|zn;return(a&u)!==Oe}function _1(n,a){return(a&n.expiredLanes)!==Oe}function Lv(n){return(n&Ul)!==Oe}function zv(){var n=w0;return w0<<=1,(w0&Ul)===Oe&&(w0=Ts),n}function R_(){var n=_0;return _0<<=1,(_0&Rs)===Oe&&(_0=Ho),n}function dr(n){return n&-n}function yr(n){return dr(n)}function Il(n){return 31-l0(n)}function D0(n){return Il(n)}function Ba(n,a){return(n&a)!==Oe}function Fs(n,a){return(n&a)===a}function Ot(n,a){return n|a}function zu(n,a){return n&~a}function Uv(n,a){return n&a}function S1(n){return n}function E1(n,a){return n!==Vt&&n<a?n:a}function k0(n){for(var a=[],u=0;u<Ln;u++)a.push(n);return a}function Ns(n,a,u){n.pendingLanes|=a,a!==jl&&(n.suspendedLanes=Oe,n.pingedLanes=Oe);var h=n.eventTimes,y=D0(a);h[y]=u}function jv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var u=n.expirationTimes,h=a;h>0;){var y=Il(h),S=1<<y;u[y]=Rn,h&=~S}}function Iv(n,a,u){n.pingedLanes|=n.suspendedLanes&a}function Hv(n,a){var u=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Oe,n.pingedLanes=Oe,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var h=n.entanglements,y=n.eventTimes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),G=1<<j;h[j]=Oe,y[j]=Rn,S[j]=Rn,F&=~G}}function Uu(n,a){for(var u=n.entangledLanes|=a,h=n.entanglements,y=u;y;){var S=Il(y),F=1<<S;F&a|h[S]&a&&(h[S]|=a),y&=~F}}function F_(n,a){var u=dr(a),h;switch(u){case Za:h=so;break;case zn:h=Ds;break;case Ts:case bi:case Ma:case As:case mf:case gf:case u0:case c0:case f0:case d0:case h0:case p0:case v0:case m0:case Os:case g0:case Ho:case y0:case yf:case x0:case b0:h=ks;break;case jl:h=Pu;break;default:h=Vt;break}return(h&(n.suspendedLanes|a))!==Vt?Vt:h}function Vv(n,a,u){if(Ir)for(var h=n.pendingUpdatersLaneMap;u>0;){var y=D0(u),S=1<<y,F=h[y];F.add(a),u&=~S}}function T0(n,a){if(Ir)for(var u=n.pendingUpdatersLaneMap,h=n.memoizedUpdaters;a>0;){var y=D0(a),S=1<<y,F=u[y];F.size>0&&(F.forEach(function(j){var G=j.alternate;(G===null||!h.has(G))&&h.add(j)}),F.clear()),a&=~S}}function $v(n,a){return null}var oa=bt,Hr=Za,Vo=zn,wf=jl,Ms=Vt;function Ci(){return Ms}function xr(n){Ms=n}function _f(n,a){var u=Ms;try{return Ms=n,a()}finally{Ms=u}}function la(n,a){return n!==0&&n<a?n:a}function N_(n,a){return n===0||n>a?n:a}function Yv(n,a){return n!==0&&n<a}function Sf(n){var a=dr(n);return Yv(oa,a)?Yv(Hr,a)?bf(a)?Vo:wf:Hr:oa}function br(n){var a=n.current.memoizedState;return a.isDehydrated}var D1;function rt(n){D1=n}function ju(n){D1(n)}var Ef;function k1(n){Ef=n}var T1;function Df(n){T1=n}var kf;function qv(n){kf=n}var Gv;function A1(n){Gv=n}var A0=!1,Iu=[],uo=null,qn=null,Ar=null,wi=new Map,Hu=new Map,$o=[],qi=["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"];function O1(n){return qi.indexOf(n)>-1}function co(n,a,u,h,y){return{blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:y,targetContainers:[h]}}function R1(n,a){switch(n){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Ar=null;break;case"pointerover":case"pointerout":{var u=a.pointerId;wi.delete(u);break}case"gotpointercapture":case"lostpointercapture":{var h=a.pointerId;Hu.delete(h);break}}}function Vu(n,a,u,h,y,S){if(n===null||n.nativeEvent!==S){var F=co(a,u,h,y,S);if(a!==null){var j=ec(a);j!==null&&Ef(j)}return F}n.eventSystemFlags|=h;var G=n.targetContainers;return y!==null&&G.indexOf(y)===-1&&G.push(y),n}function F1(n,a,u,h,y){switch(a){case"focusin":{var S=y;return uo=Vu(uo,n,a,u,h,S),!0}case"dragenter":{var F=y;return qn=Vu(qn,n,a,u,h,F),!0}case"mouseover":{var j=y;return Ar=Vu(Ar,n,a,u,h,j),!0}case"pointerover":{var G=y,re=G.pointerId;return wi.set(re,Vu(wi.get(re)||null,n,a,u,h,G)),!0}case"gotpointercapture":{var ie=y,pe=ie.pointerId;return Hu.set(pe,Vu(Hu.get(pe)||null,n,a,u,h,ie)),!0}}return!1}function Kv(n){var a=Bf(n.target);if(a!==null){var u=Ka(a);if(u!==null){var h=u.tag;if(h===N){var y=_v(u);if(y!==null){n.blockedOn=y,Gv(n.priority,function(){T1(u)});return}}else if(h===C){var S=u.stateNode;if(br(S)){n.blockedOn=Zd(u);return}}}}n.blockedOn=null}function N1(n){for(var a=kf(),u={blockedOn:null,target:n,priority:a},h=0;h<$o.length&&Yv(a,$o[h].priority);h++);$o.splice(h,0,u),h===0&&Kv(u)}function O0(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var u=a[0],h=Ps(n.domEventName,n.eventSystemFlags,u,n.nativeEvent);if(h===null){var y=n.nativeEvent,S=new y.constructor(y.type,y);of(S),y.target.dispatchEvent(S),__()}else{var F=ec(h);return F!==null&&Ef(F),n.blockedOn=h,!1}a.shift()}return!0}function Tf(n,a,u){O0(n)&&u.delete(a)}function Wv(){A0=!1,uo!==null&&O0(uo)&&(uo=null),qn!==null&&O0(qn)&&(qn=null),Ar!==null&&O0(Ar)&&(Ar=null),wi.forEach(Tf),Hu.forEach(Tf)}function sa(n,a){n.blockedOn===a&&(n.blockedOn=null,A0||(A0=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wv)))}function Ut(n){if(Iu.length>0){sa(Iu[0],n);for(var a=1;a<Iu.length;a++){var u=Iu[a];u.blockedOn===n&&(u.blockedOn=null)}}uo!==null&&sa(uo,n),qn!==null&&sa(qn,n),Ar!==null&&sa(Ar,n);var h=function(j){return sa(j,n)};wi.forEach(h),Hu.forEach(h);for(var y=0;y<$o.length;y++){var S=$o[y];S.blockedOn===n&&(S.blockedOn=null)}for(;$o.length>0;){var F=$o[0];if(F.blockedOn!==null)break;Kv(F),F.blockedOn===null&&$o.shift()}}var Xn=t.ReactCurrentBatchConfig,nr=!0;function Or(n){nr=!!n}function Xa(){return nr}function $u(n,a,u){var h=pa(a),y;switch(h){case oa:y=Cr;break;case Hr:y=Af;break;case Vo:default:y=Yo;break}return y.bind(null,a,u,n)}function Cr(n,a,u,h){var y=Ci(),S=Xn.transition;Xn.transition=null;try{xr(oa),Yo(n,a,u,h)}finally{xr(y),Xn.transition=S}}function Af(n,a,u,h){var y=Ci(),S=Xn.transition;Xn.transition=null;try{xr(Hr),Yo(n,a,u,h)}finally{xr(y),Xn.transition=S}}function Yo(n,a,u,h){nr&&R0(n,a,u,h)}function R0(n,a,u,h){var y=Ps(n,a,u,h);if(y===null){J_(n,a,h,Yu,u),R1(n,h);return}if(F1(y,n,a,u,h)){h.stopPropagation();return}if(R1(n,h),a&gs&&O1(n)){for(;y!==null;){var S=ec(y);S!==null&&ju(S);var F=Ps(n,a,u,h);if(F===null&&J_(n,a,h,Yu,u),F===y)break;y=F}y!==null&&h.stopPropagation();return}J_(n,a,h,null,u)}var Yu=null;function Ps(n,a,u,h){Yu=null;var y=qd(h),S=Bf(y);if(S!==null){var F=Ka(S);if(F===null)S=null;else{var j=F.tag;if(j===N){var G=_v(F);if(G!==null)return G;S=null}else if(j===C){var re=F.stateNode;if(br(re))return Zd(F);S=null}else F!==S&&(S=null)}}return Yu=S,null}function pa(n){switch(n){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 oa;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 Hr;case"message":{var a=Dv();switch(a){case t0:return oa;case Qa:return Hr;case lo:case n0:return Vo;case Nl:return wf;default:return Vo}}default:return Vo}}function Qv(n,a,u){return n.addEventListener(a,u,!1),u}function qu(n,a,u){return n.addEventListener(a,u,!0),u}function qo(n,a,u,h){return n.addEventListener(a,u,{capture:!0,passive:h}),u}function F0(n,a,u,h){return n.addEventListener(a,u,{passive:h}),u}var Bs=null,fo=null,Hl=null;function Vl(n){return Bs=n,fo=M0(),!0}function N0(){Bs=null,fo=null,Hl=null}function Gu(){if(Hl)return Hl;var n,a=fo,u=a.length,h,y=M0(),S=y.length;for(n=0;n<u&&a[n]===y[n];n++);var F=u-n;for(h=1;h<=F&&a[u-h]===y[S-h];h++);var j=h>1?1-h:void 0;return Hl=y.slice(n,j),Hl}function M0(){return"value"in Bs?Bs.value:Bs.textContent}function Ls(n){var a,u=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),a>=32||a===13?a:0}function zs(){return!0}function ua(){return!1}function hr(n){function a(u,h,y,S,F){this._reactName=u,this._targetInst=y,this.type=h,this.nativeEvent=S,this.target=F,this.currentTarget=null;for(var j in n)if(n.hasOwnProperty(j)){var G=n[j];G?this[j]=G(S):this[j]=S[j]}var re=S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1;return re?this.isDefaultPrevented=zs:this.isDefaultPrevented=ua,this.isPropagationStopped=ua,this}return zt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),a}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fa=hr(ca),Ku=zt({},ca,{view:0,detail:0}),Zv=hr(Ku),Of,Xv,_i;function M1(n){n!==_i&&(_i&&n.type==="mousemove"?(Of=n.screenX-_i.screenX,Xv=n.screenY-_i.screenY):(Of=0,Xv=0),_i=n)}var Wu=zt({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:L0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(M1(n),Of)},movementY:function(n){return"movementY"in n?n.movementY:Xv}}),$l=hr(Wu),Jv=zt({},Wu,{dataTransfer:0}),Us=hr(Jv),P1=zt({},Ku,{relatedTarget:0}),P0=hr(P1),em=zt({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),B0=hr(em),M_=zt({},ca,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),P_=hr(M_),B1=zt({},ca,{data:0}),tm=hr(B1),js=tm,B_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qu={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"};function L1(n){if(n.key){var a=B_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var u=Ls(n);return u===13?"Enter":String.fromCharCode(u)}return n.type==="keydown"||n.type==="keyup"?Qu[n.keyCode]||"Unidentified":""}var rr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L_(n){var a=this,u=a.nativeEvent;if(u.getModifierState)return u.getModifierState(n);var h=rr[n];return h?!!u[h]:!1}function L0(n){return L_}var z_=zt({},Ku,{key:L1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:L0,charCode:function(n){return n.type==="keypress"?Ls(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ls(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),U_=hr(z_),z1=zt({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nm=hr(z1),j_=zt({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:L0}),Si=hr(j_),rm=zt({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),I_=hr(rm),Yl=zt({},Wu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),z0=hr(Yl),Is=[9,13,27,32],Rf=229,Ff=ze&&"CompositionEvent"in window,Hs=null;ze&&"documentMode"in document&&(Hs=document.documentMode);var H_=ze&&"TextEvent"in window&&!Hs,U0=ze&&(!Ff||Hs&&Hs>8&&Hs<=11),U1=32,am=String.fromCharCode(U1);function j1(){Pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Nf=!1;function j0(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function I1(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function im(n,a){return n==="keydown"&&a.keyCode===Rf}function H1(n,a){switch(n){case"keyup":return Is.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==Rf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function I0(n){return n.locale==="ko"}var Go=!1;function lm(n,a,u,h,y){var S,F;if(Ff?S=I1(a):Go?H1(a,h)&&(S="onCompositionEnd"):im(a,h)&&(S="onCompositionStart"),!S)return null;U0&&!I0(h)&&(!Go&&S==="onCompositionStart"?Go=Vl(y):S==="onCompositionEnd"&&Go&&(F=Gu()));var j=G1(u,S);if(j.length>0){var G=new tm(S,a,null,h,y);if(n.push({event:G,listeners:j}),F)G.data=F;else{var re=om(h);re!==null&&(G.data=re)}}}function H0(n,a){switch(n){case"compositionend":return om(a);case"keypress":var u=a.which;return u!==U1?null:(Nf=!0,am);case"textInput":var h=a.data;return h===am&&Nf?null:h;default:return null}}function V1(n,a){if(Go){if(n==="compositionend"||!Ff&&H1(n,a)){var u=Gu();return N0(),Go=!1,u}return null}switch(n){case"paste":return null;case"keypress":if(!j0(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return U0&&!I0(a)?null:a.data;default:return null}}function V_(n,a,u,h,y){var S;if(H_?S=H0(a,h):S=V1(a,h),!S)return null;var F=G1(u,"onBeforeInput");if(F.length>0){var j=new js("onBeforeInput","beforeinput",null,h,y);n.push({event:j,listeners:F}),j.data=S}}function V0(n,a,u,h,y,S,F){lm(n,a,u,h,y),V_(n,a,u,h,y)}var $_={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 Zu(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!$_[n.type]:a==="textarea"}function Y_(n){if(!ze)return!1;var a="on"+n,u=a in document;if(!u){var h=document.createElement("div");h.setAttribute(a,"return;"),u=typeof h[a]=="function"}return u}function $0(){Pe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(n,a,u,h){Gd(h);var y=G1(a,"onChange");if(y.length>0){var S=new fa("onChange","change",null,u,h);n.push({event:S,listeners:y})}}var s=null,v=null;function w(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function O(n){var a=[];o(a,v,n,qd(n)),vv(L,a)}function L(n){fA(n,0)}function X(n){var a=Q0(n);if(Ay(a))return n}function le(n,a){if(n==="change")return a}var fe=!1;ze&&(fe=Y_("input")&&(!document.documentMode||document.documentMode>9));function Ee(n,a){s=n,v=a,s.attachEvent("onpropertychange",Ve)}function Ie(){s&&(s.detachEvent("onpropertychange",Ve),s=null,v=null)}function Ve(n){n.propertyName==="value"&&X(v)&&O(n)}function je(n,a,u){n==="focusin"?(Ie(),Ee(a,u)):n==="focusout"&&Ie()}function Je(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return X(v)}function it(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function st(n,a){if(n==="click")return X(a)}function or(n,a){if(n==="input"||n==="change")return X(a)}function ge(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||El(n,"number",n.value)}function he(n,a,u,h,y,S,F){var j=u?Q0(u):window,G,re;if(w(j)?G=le:Zu(j)?fe?G=or:(G=Je,re=je):it(j)&&(G=st),G){var ie=G(a,u);if(ie){o(n,ie,h,y);return}}re&&re(a,j,u),a==="focusout"&&ge(j)}function Ce(){ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"])}function Ye(n,a,u,h,y,S,F){var j=a==="mouseover"||a==="pointerover",G=a==="mouseout"||a==="pointerout";if(j&&!o1(h)){var re=h.relatedTarget||h.fromElement;if(re&&(Bf(re)||Cm(re)))return}if(!(!G&&!j)){var ie;if(y.window===y)ie=y;else{var pe=y.ownerDocument;pe?ie=pe.defaultView||pe.parentWindow:ie=window}var de,_e;if(G){var Se=h.relatedTarget||h.toElement;if(de=u,_e=Se?Bf(Se):null,_e!==null){var Te=Ka(_e);(_e!==Te||_e.tag!==x&&_e.tag!==_)&&(_e=null)}}else de=null,_e=u;if(de!==_e){var tt=$l,vt="onMouseLeave",ft="onMouseEnter",Yt="mouse";(a==="pointerout"||a==="pointerover")&&(tt=nm,vt="onPointerLeave",ft="onPointerEnter",Yt="pointer");var jt=de==null?ie:Q0(de),xe=_e==null?ie:Q0(_e),Ae=new tt(vt,Yt+"leave",de,h,y);Ae.target=jt,Ae.relatedTarget=xe;var be=null,$e=Bf(y);if($e===u){var nt=new tt(ft,Yt+"enter",_e,h,y);nt.target=xe,nt.relatedTarget=jt,be=nt}U$(n,Ae,be,de,_e)}}}function ut(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var ot=typeof Object.is=="function"?Object.is:ut;function ht(n,a){if(ot(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),h=Object.keys(a);if(u.length!==h.length)return!1;for(var y=0;y<u.length;y++){var S=u[y];if(!Ne.call(a,S)||!ot(n[S],a[S]))return!1}return!0}function St(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Rr(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function Jt(n,a){for(var u=St(n),h=0,y=0;u;){if(u.nodeType===Mo){if(y=h+u.textContent.length,h<=a&&y>=a)return{node:u,offset:a-h};h=y}u=St(Rr(u))}}function ql(n){var a=n.ownerDocument,u=a&&a.defaultView||window,h=u.getSelection&&u.getSelection();if(!h||h.rangeCount===0)return null;var y=h.anchorNode,S=h.anchorOffset,F=h.focusNode,j=h.focusOffset;try{y.nodeType,F.nodeType}catch{return null}return q_(n,y,S,F,j)}function q_(n,a,u,h,y){var S=0,F=-1,j=-1,G=0,re=0,ie=n,pe=null;e:for(;;){for(var de=null;ie===a&&(u===0||ie.nodeType===Mo)&&(F=S+u),ie===h&&(y===0||ie.nodeType===Mo)&&(j=S+y),ie.nodeType===Mo&&(S+=ie.nodeValue.length),(de=ie.firstChild)!==null;)pe=ie,ie=de;for(;;){if(ie===n)break e;if(pe===a&&++G===u&&(F=S),pe===h&&++re===y&&(j=S),(de=ie.nextSibling)!==null)break;ie=pe,pe=ie.parentNode}ie=de}return F===-1||j===-1?null:{start:F,end:j}}function b$(n,a){var u=n.ownerDocument||document,h=u&&u.defaultView||window;if(h.getSelection){var y=h.getSelection(),S=n.textContent.length,F=Math.min(a.start,S),j=a.end===void 0?F:Math.min(a.end,S);if(!y.extend&&F>j){var G=j;j=F,F=G}var re=Jt(n,F),ie=Jt(n,j);if(re&&ie){if(y.rangeCount===1&&y.anchorNode===re.node&&y.anchorOffset===re.offset&&y.focusNode===ie.node&&y.focusOffset===ie.offset)return;var pe=u.createRange();pe.setStart(re.node,re.offset),y.removeAllRanges(),F>j?(y.addRange(pe),y.extend(ie.node,ie.offset)):(pe.setEnd(ie.node,ie.offset),y.addRange(pe))}}}function J3(n){return n&&n.nodeType===Mo}function eA(n,a){return!n||!a?!1:n===a?!0:J3(n)?!1:J3(a)?eA(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function C$(n){return n&&n.ownerDocument&&eA(n.ownerDocument.documentElement,n)}function w$(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function tA(){for(var n=window,a=Nd();a instanceof n.HTMLIFrameElement;){if(w$(a))n=a.contentWindow;else return a;a=Nd(n.document)}return a}function G_(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function _$(){var n=tA();return{focusedElem:n,selectionRange:G_(n)?E$(n):null}}function S$(n){var a=tA(),u=n.focusedElem,h=n.selectionRange;if(a!==u&&C$(u)){h!==null&&G_(u)&&D$(u,h);for(var y=[],S=u;S=S.parentNode;)S.nodeType===Ta&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});typeof u.focus=="function"&&u.focus();for(var F=0;F<y.length;F++){var j=y[F];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}}function E$(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=ql(n),a||{start:0,end:0}}function D$(n,a){var u=a.start,h=a.end;h===void 0&&(h=u),"selectionStart"in n?(n.selectionStart=u,n.selectionEnd=Math.min(h,n.value.length)):b$(n,a)}var k$=ze&&"documentMode"in document&&document.documentMode<=11;function T$(){Pe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Y0=null,K_=null,sm=null,W_=!1;function A$(n){if("selectionStart"in n&&G_(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,u=a.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function O$(n){return n.window===n?n.document:n.nodeType===Hi?n:n.ownerDocument}function nA(n,a,u){var h=O$(u);if(!(W_||Y0==null||Y0!==Nd(h))){var y=A$(Y0);if(!sm||!ht(sm,y)){sm=y;var S=G1(K_,"onSelect");if(S.length>0){var F=new fa("onSelect","select",null,a,u);n.push({event:F,listeners:S}),F.target=Y0}}}}function R$(n,a,u,h,y,S,F){var j=u?Q0(u):window;switch(a){case"focusin":(Zu(j)||j.contentEditable==="true")&&(Y0=j,K_=u,sm=null);break;case"focusout":Y0=null,K_=null,sm=null;break;case"mousedown":W_=!0;break;case"contextmenu":case"mouseup":case"dragend":W_=!1,nA(n,h,y);break;case"selectionchange":if(k$)break;case"keydown":case"keyup":nA(n,h,y)}}function $1(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var q0={animationend:$1("Animation","AnimationEnd"),animationiteration:$1("Animation","AnimationIteration"),animationstart:$1("Animation","AnimationStart"),transitionend:$1("Transition","TransitionEnd")},Q_={},rA={};ze&&(rA=document.createElement("div").style,"AnimationEvent"in window||(delete q0.animationend.animation,delete q0.animationiteration.animation,delete q0.animationstart.animation),"TransitionEvent"in window||delete q0.transitionend.transition);function Y1(n){if(Q_[n])return Q_[n];if(!q0[n])return n;var a=q0[n];for(var u in a)if(a.hasOwnProperty(u)&&u in rA)return Q_[n]=a[u];return n}var aA=Y1("animationend"),iA=Y1("animationiteration"),oA=Y1("animationstart"),lA=Y1("transitionend"),sA=new Map,uA=["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"];function Xu(n,a){sA.set(n,a),Pe(a,[n])}function F$(){for(var n=0;n<uA.length;n++){var a=uA[n],u=a.toLowerCase(),h=a[0].toUpperCase()+a.slice(1);Xu(u,"on"+h)}Xu(aA,"onAnimationEnd"),Xu(iA,"onAnimationIteration"),Xu(oA,"onAnimationStart"),Xu("dblclick","onDoubleClick"),Xu("focusin","onFocus"),Xu("focusout","onBlur"),Xu(lA,"onTransitionEnd")}function N$(n,a,u,h,y,S,F){var j=sA.get(a);if(j!==void 0){var G=fa,re=a;switch(a){case"keypress":if(Ls(h)===0)return;case"keydown":case"keyup":G=U_;break;case"focusin":re="focus",G=P0;break;case"focusout":re="blur",G=P0;break;case"beforeblur":case"afterblur":G=P0;break;case"click":if(h.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=$l;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Us;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Si;break;case aA:case iA:case oA:G=B0;break;case lA:G=I_;break;case"scroll":G=Zv;break;case"wheel":G=z0;break;case"copy":case"cut":case"paste":G=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=nm;break}var ie=(S&gs)!==0;{var pe=!ie&&a==="scroll",de=L$(u,j,h.type,ie,pe);if(de.length>0){var _e=new G(j,re,null,h,y);n.push({event:_e,listeners:de})}}}}F$(),Ce(),$0(),T$(),j1();function M$(n,a,u,h,y,S,F){N$(n,a,u,h,y,S);var j=(S&w_)===0;j&&(Ye(n,a,u,h,y),he(n,a,u,h,y),R$(n,a,u,h,y),V0(n,a,u,h,y))}var um=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Z_=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(um));function cA(n,a,u){var h=n.type||"unknown-event";n.currentTarget=u,zo(h,a,void 0,n),n.currentTarget=null}function P$(n,a,u){var h;if(u)for(var y=a.length-1;y>=0;y--){var S=a[y],F=S.instance,j=S.currentTarget,G=S.listener;if(F!==h&&n.isPropagationStopped())return;cA(n,G,j),h=F}else for(var re=0;re<a.length;re++){var ie=a[re],pe=ie.instance,de=ie.currentTarget,_e=ie.listener;if(pe!==h&&n.isPropagationStopped())return;cA(n,_e,de),h=pe}}function fA(n,a){for(var u=(a&gs)!==0,h=0;h<n.length;h++){var y=n[h],S=y.event,F=y.listeners;P$(S,F,u)}xv()}function B$(n,a,u,h,y){var S=qd(u),F=[];M$(F,n,h,u,S,a),fA(F,a)}function Jn(n,a){Z_.has(n)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var u=!1,h=dq(a),y=j$(n,u);h.has(y)||(dA(a,n,rf,u),h.add(y))}function X_(n,a,u){Z_.has(n)&&!a&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var h=0;a&&(h|=gs),dA(u,n,h,a)}var q1="_reactListening"+Math.random().toString(36).slice(2);function cm(n){if(!n[q1]){n[q1]=!0,ce.forEach(function(u){u!=="selectionchange"&&(Z_.has(u)||X_(u,!1,n),X_(u,!0,n))});var a=n.nodeType===Hi?n:n.ownerDocument;a!==null&&(a[q1]||(a[q1]=!0,X_("selectionchange",!1,a)))}}function dA(n,a,u,h,y){var S=$u(n,a,u),F=void 0;uf&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(F=!0),n=n,h?F!==void 0?qo(n,a,S,F):qu(n,a,S):F!==void 0?F0(n,a,S,F):Qv(n,a,S)}function hA(n,a){return n===a||n.nodeType===fr&&n.parentNode===a}function J_(n,a,u,h,y){var S=h;if(!(a&Bo)&&!(a&rf)){var F=y;if(h!==null){var j=h;e:for(;;){if(j===null)return;var G=j.tag;if(G===C||G===b){var re=j.stateNode.containerInfo;if(hA(re,F))break;if(G===b)for(var ie=j.return;ie!==null;){var pe=ie.tag;if(pe===C||pe===b){var de=ie.stateNode.containerInfo;if(hA(de,F))return}ie=ie.return}for(;re!==null;){var _e=Bf(re);if(_e===null)return;var Se=_e.tag;if(Se===x||Se===_){j=S=_e;continue e}re=re.parentNode}}j=j.return}}}vv(function(){return B$(n,a,u,S)})}function fm(n,a,u){return{instance:n,listener:a,currentTarget:u}}function L$(n,a,u,h,y,S){for(var F=a!==null?a+"Capture":null,j=h?F:a,G=[],re=n,ie=null;re!==null;){var pe=re,de=pe.stateNode,_e=pe.tag;if(_e===x&&de!==null&&(ie=de,j!==null)){var Se=xs(re,j);Se!=null&&G.push(fm(re,Se,ie))}if(y)break;re=re.return}return G}function G1(n,a){for(var u=a+"Capture",h=[],y=n;y!==null;){var S=y,F=S.stateNode,j=S.tag;if(j===x&&F!==null){var G=F,re=xs(y,u);re!=null&&h.unshift(fm(y,re,G));var ie=xs(y,a);ie!=null&&h.push(fm(y,ie,G))}y=y.return}return h}function G0(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==x);return n||null}function z$(n,a){for(var u=n,h=a,y=0,S=u;S;S=G0(S))y++;for(var F=0,j=h;j;j=G0(j))F++;for(;y-F>0;)u=G0(u),y--;for(;F-y>0;)h=G0(h),F--;for(var G=y;G--;){if(u===h||h!==null&&u===h.alternate)return u;u=G0(u),h=G0(h)}return null}function pA(n,a,u,h,y){for(var S=a._reactName,F=[],j=u;j!==null&&j!==h;){var G=j,re=G.alternate,ie=G.stateNode,pe=G.tag;if(re!==null&&re===h)break;if(pe===x&&ie!==null){var de=ie;if(y){var _e=xs(j,S);_e!=null&&F.unshift(fm(j,_e,de))}else if(!y){var Se=xs(j,S);Se!=null&&F.push(fm(j,Se,de))}}j=j.return}F.length!==0&&n.push({event:a,listeners:F})}function U$(n,a,u,h,y){var S=h&&y?z$(h,y):null;h!==null&&pA(n,a,h,S,!1),y!==null&&u!==null&&pA(n,u,y,S,!0)}function j$(n,a){return n+"__"+(a?"capture":"bubble")}var Ei=!1,dm="dangerouslySetInnerHTML",K1="suppressContentEditableWarning",Ju="suppressHydrationWarning",vA="autoFocus",Mf="children",Pf="style",W1="__html",eS,Q1,hm,mA,Z1,gA,yA;eS={dialog:!0,webview:!0},Q1=function(n,a){Yd(n,a),cv(n,a),i1(n,a,{registrationNameDependencies:ye,possibleRegistrationNames:De})},gA=ze&&!document.documentMode,hm=function(n,a,u){if(!Ei){var h=X1(u),y=X1(a);y!==h&&(Ei=!0,c("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(y),JSON.stringify(h)))}},mA=function(n){if(!Ei){Ei=!0;var a=[];n.forEach(function(u){a.push(u)}),c("Extra attributes from the server: %s",a)}},Z1=function(n,a){a===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},yA=function(n,a){var u=n.namespaceURI===No?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return u.innerHTML=a,u.innerHTML};var I$=/\r\n?/g,H$=/\u0000|\uFFFD/g;function X1(n){It(n);var a=typeof n=="string"?n:""+n;return a.replace(I$,`
84
+ Check the render method of \``+n+"`.":""}var Ny=["value","defaultValue"];function c_(n){{xu("select",n);for(var a=0;a<Ny.length;a++){var u=Ny[a];if(n[u]!=null){var h=Er(n[u]);n.multiple&&!h?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Fy()):!n.multiple&&h&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Fy())}}}}function Dl(n,a,u,h){var y=n.options;if(a){for(var S=u,F={},j=0;j<S.length;j++)F["$"+S[j]]=!0;for(var G=0;G<y.length;G++){var re=F.hasOwnProperty("$"+y[G].value);y[G].selected!==re&&(y[G].selected=re),re&&h&&(y[G].defaultSelected=!0)}}else{for(var ie=aa(Sl(u)),pe=null,de=0;de<y.length;de++){if(y[de].value===ie){y[de].selected=!0,h&&(y[de].defaultSelected=!0);return}pe===null&&!y[de].disabled&&(pe=y[de])}pe!==null&&(pe.selected=!0)}}function Jp(n,a){return zt({},a,{value:void 0})}function My(n,a){var u=n;c_(a),u._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!zd&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),zd=!0)}function f_(n,a){var u=n;u.multiple=!!a.multiple;var h=a.value;h!=null?Dl(u,!!a.multiple,h,!1):a.defaultValue!=null&&Dl(u,!!a.multiple,a.defaultValue,!0)}function d_(n,a){var u=n,h=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!a.multiple;var y=a.value;y!=null?Dl(u,!!a.multiple,y,!1):h!==!!a.multiple&&(a.defaultValue!=null?Dl(u,!!a.multiple,a.defaultValue,!0):Dl(u,!!a.multiple,a.multiple?[]:"",!1))}function h_(n,a){var u=n,h=a.value;h!=null&&Dl(u,!!a.multiple,h,!1)}var ev=!1;function tv(n,a){var u=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var h=zt({},a,{value:void 0,defaultValue:void 0,children:aa(u._wrapperState.initialValue)});return h}function Py(n,a){var u=n;xu("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!ev&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component"),ev=!0);var h=a.value;if(h==null){var y=a.children,S=a.defaultValue;if(y!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Er(y)){if(y.length>1)throw new Error("<textarea> can only have at most one child.");y=y[0]}S=y}}S==null&&(S=""),h=S}u._wrapperState={initialValue:Sl(h)}}function By(n,a){var u=n,h=Sl(a.value),y=Sl(a.defaultValue);if(h!=null){var S=aa(h);S!==u.value&&(u.value=S),a.defaultValue==null&&u.defaultValue!==S&&(u.defaultValue=S)}y!=null&&(u.defaultValue=aa(y))}function Ly(n,a){var u=n,h=u.textContent;h===u._wrapperState.initialValue&&h!==""&&h!==null&&(u.value=h)}function nv(n,a){By(n,a)}var No="http://www.w3.org/1999/xhtml",p_="http://www.w3.org/1998/Math/MathML",rv="http://www.w3.org/2000/svg";function Ud(n){switch(n){case"svg":return rv;case"math":return p_;default:return No}}function av(n,a){return n==null||n===No?Ud(a):n===rv&&a==="foreignObject"?No:n}var v_=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,h,y){MSApp.execUnsafeLocalFunction(function(){return n(a,u,h,y)})}:n},jd,zy=v_(function(n,a){if(n.namespaceURI===rv&&!("innerHTML"in n)){jd=jd||document.createElement("div"),jd.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var u=jd.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;u.firstChild;)n.appendChild(u.firstChild);return}n.innerHTML=a}),Ta=1,Mo=3,fr=8,Hi=9,vs=11,Id=function(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===Mo){u.nodeValue=a;return}}n.textContent=a},Uy={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},_u={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};function jy(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var Iy=["Webkit","ms","Moz","O"];Object.keys(_u).forEach(function(n){Iy.forEach(function(a){_u[jy(a,n)]=_u[n]})});function Hd(n,a,u){var h=a==null||typeof a=="boolean"||a==="";return h?"":!u&&typeof a=="number"&&a!==0&&!(_u.hasOwnProperty(n)&&_u[n])?a+"px":(un(a,n),(""+a).trim())}var Su=/([A-Z])/g,m_=/^ms-/;function g_(n){return n.replace(Su,"-$1").toLowerCase().replace(m_,"-ms-")}var Hy=function(){};{var Vy=/^(?:webkit|moz|o)[A-Z]/,$y=/^-ms-/,ef=/-(.)/g,Eu=/;\s*$/,Du={},ku={},Yy=!1,iv=!1,ov=function(n){return n.replace(ef,function(a,u){return u.toUpperCase()})},lv=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported style property %s. Did you mean %s?",n,ov(n.replace($y,"ms-"))))},qy=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},Gy=function(n,a){ku.hasOwnProperty(a)&&ku[a]||(ku[a]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(Eu,"")))},Ky=function(n,a){Yy||(Yy=!0,c("`NaN` is an invalid value for the `%s` css style property.",n))},y_=function(n,a){iv||(iv=!0,c("`Infinity` is an invalid value for the `%s` css style property.",n))};Hy=function(n,a){n.indexOf("-")>-1?lv(n):Vy.test(n)?qy(n):Eu.test(a)&&Gy(n,a),typeof a=="number"&&(isNaN(a)?Ky(n,a):isFinite(a)||y_(n,a))}}var x_=Hy;function b_(n){{var a="",u="";for(var h in n)if(n.hasOwnProperty(h)){var y=n[h];if(y!=null){var S=h.indexOf("--")===0;a+=u+(S?h:g_(h))+":",a+=Hd(h,y,S),u=";"}}return a||null}}function Wy(n,a){var u=n.style;for(var h in a)if(a.hasOwnProperty(h)){var y=h.indexOf("--")===0;y||x_(h,a[h]);var S=Hd(h,a[h],y);h==="float"&&(h="cssFloat"),y?u.setProperty(h,S):u[h]=S}}function C_(n){return n==null||typeof n=="boolean"||n===""}function hi(n){var a={};for(var u in n)for(var h=Uy[u]||[u],y=0;y<h.length;y++)a[h[y]]=u;return a}function tf(n,a){{if(!a)return;var u=hi(n),h=hi(a),y={};for(var S in u){var F=u[S],j=h[S];if(j&&F!==j){var G=F+","+j;if(y[G])continue;y[G]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",C_(n[F])?"Removing":"Updating",F,j)}}}}var Qy={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},Zy=zt({menuitem:!0},Qy),Xy="__html";function Vd(n,a){if(a){if(Zy[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Xy in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Po(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 $d={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Jy={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vi={},sv=new RegExp("^(aria)-["+at+"]*$"),nf=new RegExp("^(aria)[A-Z]["+at+"]*$");function uv(n,a){{if(Ne.call(Vi,a)&&Vi[a])return!0;if(nf.test(a)){var u="aria-"+a.slice(4).toLowerCase(),h=Jy.hasOwnProperty(u)?u:null;if(h==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Vi[a]=!0,!0;if(a!==h)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,h),Vi[a]=!0,!0}if(sv.test(a)){var y=a.toLowerCase(),S=Jy.hasOwnProperty(y)?y:null;if(S==null)return Vi[a]=!0,!1;if(a!==S)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,S),Vi[a]=!0,!0}}return!0}function e1(n,a){{var u=[];for(var h in a){var y=uv(n,h);y||u.push(h)}var S=u.map(function(F){return"`"+F+"`"}).join(", ");u.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n):u.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n)}}function Yd(n,a){Po(n,a)||e1(n,a)}var ms=!1;function cv(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!ms&&(ms=!0,n==="select"&&a.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var fv=function(){};{var Dr={},dv=/^on./,t1=/^on[^A-Z]/,n1=new RegExp("^(aria)-["+at+"]*$"),r1=new RegExp("^(aria)[A-Z]["+at+"]*$");fv=function(n,a,u,h){if(Ne.call(Dr,a)&&Dr[a])return!0;var y=a.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Dr[a]=!0,!0;if(h!=null){var S=h.registrationNameDependencies,F=h.possibleRegistrationNames;if(S.hasOwnProperty(a))return!0;var j=F.hasOwnProperty(y)?F[y]:null;if(j!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",a,j),Dr[a]=!0,!0;if(dv.test(a))return c("Unknown event handler property `%s`. It will be ignored.",a),Dr[a]=!0,!0}else if(dv.test(a))return t1.test(a)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Dr[a]=!0,!0;if(n1.test(a)||r1.test(a))return!0;if(y==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Dr[a]=!0,!0;if(y==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Dr[a]=!0,!0;if(y==="is"&&u!==null&&u!==void 0&&typeof u!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Dr[a]=!0,!0;if(typeof u=="number"&&isNaN(u))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Dr[a]=!0,!0;var G=na(a),re=G!==null&&G.type===In;if($d.hasOwnProperty(y)){var ie=$d[y];if(ie!==a)return c("Invalid DOM property `%s`. Did you mean `%s`?",a,ie),Dr[a]=!0,!0}else if(!re&&a!==y)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,y),Dr[a]=!0,!0;return typeof u=="boolean"&&zr(a,u,G,!1)?(u?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),Dr[a]=!0,!0):re?!0:zr(a,u,G,!1)?(Dr[a]=!0,!1):((u==="false"||u==="true")&&G!==null&&G.type===Gt&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),Dr[a]=!0),!0)}}var a1=function(n,a,u){{var h=[];for(var y in a){var S=fv(n,y,a[y],u);S||h.push(y)}var F=h.map(function(j){return"`"+j+"`"}).join(", ");h.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n):h.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n)}};function i1(n,a,u){Po(n,a)||a1(n,a,u)}var Bo=1,rf=1<<1,gs=1<<2,w_=Bo|rf|gs,af=null;function of(n){af!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),af=n}function __(){af===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),af=null}function o1(n){return n===af}function qd(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Mo?a.parentNode:a}var On=null,kl=null,Lo=null;function Tu(n){var a=ec(n);if(a){if(typeof On!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var u=a.stateNode;if(u){var h=ox(u);On(a.stateNode,a.type,h)}}}function l1(n){On=n}function Gd(n){kl?Lo?Lo.push(n):Lo=[n]:kl=n}function lf(){return kl!==null||Lo!==null}function sf(){if(kl){var n=kl,a=Lo;if(kl=null,Lo=null,Tu(n),a)for(var u=0;u<a.length;u++)Tu(a[u])}}var ys=function(n,a){return n(a)},hv=function(){},pv=!1;function S_(){var n=lf();n&&(hv(),sf())}function vv(n,a,u){if(pv)return n(a,u);pv=!0;try{return ys(n,a,u)}finally{pv=!1,S_()}}function Kd(n,a,u){ys=n,hv=u}function Wd(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function mv(n,a,u){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(u.disabled&&Wd(a));default:return!1}}function xs(n,a){var u=n.stateNode;if(u===null)return null;var h=ox(u);if(h===null)return null;var y=h[a];if(mv(a,n.type,h))return null;if(y&&typeof y!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof y+"` type.");return y}var uf=!1;if(ze)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){uf=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{uf=!1}function s1(n,a,u,h,y,S,F,j,G){var re=Array.prototype.slice.call(arguments,3);try{a.apply(u,re)}catch(ie){this.onError(ie)}}var gv=s1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var yv=document.createElement("react");gv=function(a,u,h,y,S,F,j,G,re){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ie=document.createEvent("Event"),pe=!1,de=!0,_e=window.event,Se=Object.getOwnPropertyDescriptor(window,"event");function Te(){yv.removeEventListener(Ae,vt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_e)}var tt=Array.prototype.slice.call(arguments,3);function vt(){pe=!0,Te(),u.apply(h,tt),de=!1}var ft,Yt=!1,jt=!1;function xe(be){if(ft=be.error,Yt=!0,ft===null&&be.colno===0&&be.lineno===0&&(jt=!0),be.defaultPrevented&&ft!=null&&typeof ft=="object")try{ft._suppressLogging=!0}catch{}}var Ae="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",xe),yv.addEventListener(Ae,vt,!1),ie.initEvent(Ae,!1,!1),yv.dispatchEvent(ie),Se&&Object.defineProperty(window,"event",Se),pe&&de&&(Yt?jt&&(ft=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ft=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ft)),window.removeEventListener("error",xe),!pe)return Te(),s1.apply(this,arguments)}}var E_=gv,Tl=!1,$i=null,cf=!1,Al=null,io={onError:function(n){Tl=!0,$i=n}};function Cs(n,a,u,h,y,S,F,j,G){Tl=!1,$i=null,E_.apply(io,arguments)}function zo(n,a,u,h,y,S,F,j,G){if(Cs.apply(this,arguments),Tl){var re=bv();cf||(cf=!0,Al=re)}}function xv(){if(cf){var n=Al;throw cf=!1,Al=null,n}}function D_(){return Tl}function bv(){if(Tl){var n=$i;return Tl=!1,$i=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function pi(n){return n._reactInternals}function ff(n){return n._reactInternals!==void 0}function Au(n,a){n._reactInternals=a}var pt=0,Ol=1,Pn=2,At=4,ln=16,cn=32,oo=64,_t=128,tr=256,Aa=512,vi=1024,Yn=2048,mi=4096,Rl=8192,df=16384,Qd=Yn|At|oo|Aa|vi|df,u1=32767,Ga=32768,kr=65536,hf=131072,Cv=1048576,wv=2097152,Oa=4194304,Fl=8388608,Ra=16777216,ws=33554432,Ou=At|vi|0,Fa=Pn|At|ln|cn|Aa|mi|Rl,ia=At|oo|Aa|Rl,gi=Yn|ln,jr=Oa|Fl|wv,Uo=t.ReactCurrentOwner;function Ka(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{var h=a;do a=h,(a.flags&(Pn|mi))!==pt&&(u=a.return),h=a.return;while(h)}return a.tag===C?u:null}function _v(n){if(n.tag===N){var a=n.memoizedState;if(a===null){var u=n.alternate;u!==null&&(a=u.memoizedState)}if(a!==null)return a.dehydrated}return null}function Zd(n){return n.tag===C?n.stateNode.containerInfo:null}function Sv(n){return Ka(n)===n}function Wa(n){{var a=Uo.current;if(a!==null&&a.tag===d){var u=a,h=u.stateNode;h._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tt(u)||"A component"),h._warnedAboutRefsInRender=!0}}var y=pi(n);return y?Ka(y)===y:!1}function Na(n){if(Ka(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function Bn(n){var a=n.alternate;if(!a){var u=Ka(n);if(u===null)throw new Error("Unable to find node on an unmounted component.");return u!==n?null:n}for(var h=n,y=a;;){var S=h.return;if(S===null)break;var F=S.alternate;if(F===null){var j=S.return;if(j!==null){h=y=j;continue}break}if(S.child===F.child){for(var G=S.child;G;){if(G===h)return Na(S),n;if(G===y)return Na(S),a;G=G.sibling}throw new Error("Unable to find node on an unmounted component.")}if(h.return!==y.return)h=S,y=F;else{for(var re=!1,ie=S.child;ie;){if(ie===h){re=!0,h=S,y=F;break}if(ie===y){re=!0,y=S,h=F;break}ie=ie.sibling}if(!re){for(ie=F.child;ie;){if(ie===h){re=!0,h=F,y=S;break}if(ie===y){re=!0,y=F,h=S;break}ie=ie.sibling}if(!re)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(h.alternate!==y)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(h.tag!==C)throw new Error("Unable to find node on an unmounted component.");return h.stateNode.current===h?n:a}function yi(n){var a=Bn(n);return a!==null?Ev(a):null}function Ev(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){var u=Ev(a);if(u!==null)return u;a=a.sibling}return null}function c1(n){var a=Bn(n);return a!==null?Xd(a):null}function Xd(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){if(a.tag!==b){var u=Xd(a);if(u!==null)return u}a=a.sibling}return null}var Jd=r.unstable_scheduleCallback,f1=r.unstable_cancelCallback,e0=r.unstable_shouldYield,d1=r.unstable_requestPaint,Qn=r.unstable_now,Dv=r.unstable_getCurrentPriorityLevel,t0=r.unstable_ImmediatePriority,Qa=r.unstable_UserBlockingPriority,lo=r.unstable_NormalPriority,n0=r.unstable_LowPriority,Nl=r.unstable_IdlePriority,kv=r.unstable_yieldValue,Tv=r.unstable_setDisableYieldValue,Ml=null,Tr=null,Ke=null,ir=!1,Ir=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Av(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{se&&(n=zt({},n,{getLaneLabelMap:Bl,injectProfilingHooks:Io})),Ml=a.inject(n),Tr=a}catch(u){c("React instrumentation encountered an error: %s.",u)}return!!a.checkDCE}function h1(n,a){if(Tr&&typeof Tr.onScheduleFiberRoot=="function")try{Tr.onScheduleFiberRoot(Ml,n,a)}catch(u){ir||(ir=!0,c("React instrumentation encountered an error: %s",u))}}function jo(n,a){if(Tr&&typeof Tr.onCommitFiberRoot=="function")try{var u=(n.current.flags&_t)===_t;if(ve){var h;switch(a){case oa:h=t0;break;case Hr:h=Qa;break;case Vo:h=lo;break;case wf:h=Nl;break;default:h=lo;break}Tr.onCommitFiberRoot(Ml,n,h,u)}}catch(y){ir||(ir=!0,c("React instrumentation encountered an error: %s",y))}}function Pl(n){if(Tr&&typeof Tr.onPostCommitFiberRoot=="function")try{Tr.onPostCommitFiberRoot(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Ov(n){if(Tr&&typeof Tr.onCommitFiberUnmount=="function")try{Tr.onCommitFiberUnmount(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function gr(n){if(typeof kv=="function"&&(Tv(n),l(n)),Tr&&typeof Tr.setStrictMode=="function")try{Tr.setStrictMode(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Io(n){Ke=n}function Bl(){{for(var n=new Map,a=1,u=0;u<Ln;u++){var h=k_(a);n.set(a,h),a*=2}return n}}function r0(n){Ke!==null&&typeof Ke.markCommitStarted=="function"&&Ke.markCommitStarted(n)}function Rv(){Ke!==null&&typeof Ke.markCommitStopped=="function"&&Ke.markCommitStopped()}function Ll(n){Ke!==null&&typeof Ke.markComponentRenderStarted=="function"&&Ke.markComponentRenderStarted(n)}function _s(){Ke!==null&&typeof Ke.markComponentRenderStopped=="function"&&Ke.markComponentRenderStopped()}function p1(n){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStarted=="function"&&Ke.markComponentPassiveEffectMountStarted(n)}function Fv(){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStopped=="function"&&Ke.markComponentPassiveEffectMountStopped()}function a0(n){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStarted=="function"&&Ke.markComponentPassiveEffectUnmountStarted(n)}function v1(){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStopped=="function"&&Ke.markComponentPassiveEffectUnmountStopped()}function m1(n){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStarted=="function"&&Ke.markComponentLayoutEffectMountStarted(n)}function g1(){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStopped=="function"&&Ke.markComponentLayoutEffectMountStopped()}function i0(n){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStarted=="function"&&Ke.markComponentLayoutEffectUnmountStarted(n)}function Ru(){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStopped=="function"&&Ke.markComponentLayoutEffectUnmountStopped()}function o0(n,a,u){Ke!==null&&typeof Ke.markComponentErrored=="function"&&Ke.markComponentErrored(n,a,u)}function y1(n,a,u){Ke!==null&&typeof Ke.markComponentSuspended=="function"&&Ke.markComponentSuspended(n,a,u)}function x1(n){Ke!==null&&typeof Ke.markLayoutEffectsStarted=="function"&&Ke.markLayoutEffectsStarted(n)}function Fu(){Ke!==null&&typeof Ke.markLayoutEffectsStopped=="function"&&Ke.markLayoutEffectsStopped()}function b1(n){Ke!==null&&typeof Ke.markPassiveEffectsStarted=="function"&&Ke.markPassiveEffectsStarted(n)}function pf(){Ke!==null&&typeof Ke.markPassiveEffectsStopped=="function"&&Ke.markPassiveEffectsStopped()}function Yi(n){Ke!==null&&typeof Ke.markRenderStarted=="function"&&Ke.markRenderStarted(n)}function vf(){Ke!==null&&typeof Ke.markRenderYielded=="function"&&Ke.markRenderYielded()}function Nu(){Ke!==null&&typeof Ke.markRenderStopped=="function"&&Ke.markRenderStopped()}function Ss(n){Ke!==null&&typeof Ke.markRenderScheduled=="function"&&Ke.markRenderScheduled(n)}function Nv(n,a){Ke!==null&&typeof Ke.markForceUpdateScheduled=="function"&&Ke.markForceUpdateScheduled(n,a)}function zl(n,a){Ke!==null&&typeof Ke.markStateUpdateScheduled=="function"&&Ke.markStateUpdateScheduled(n,a)}var gt=0,Lt=1,xt=2,Zn=8,xi=16,l0=Math.clz32?Math.clz32:Es,s0=Math.log,Mv=Math.LN2;function Es(n){var a=n>>>0;return a===0?32:31-(s0(a)/Mv|0)|0}var Ln=31,Oe=0,Vt=0,bt=1,so=2,Za=4,Ds=8,zn=16,ks=32,Ul=4194240,Ts=64,bi=128,Ma=256,As=512,mf=1024,gf=2048,u0=4096,c0=8192,f0=16384,d0=32768,h0=65536,p0=131072,v0=262144,m0=524288,Os=1048576,g0=2097152,Rs=130023424,Ho=4194304,y0=8388608,yf=16777216,x0=33554432,b0=67108864,Pv=Ho,Mu=134217728,C0=268435455,Pu=268435456,jl=536870912,Pa=1073741824;function k_(n){{if(n&bt)return"Sync";if(n&so)return"InputContinuousHydration";if(n&Za)return"InputContinuous";if(n&Ds)return"DefaultHydration";if(n&zn)return"Default";if(n&ks)return"TransitionHydration";if(n&Ul)return"Transition";if(n&Rs)return"Retry";if(n&Mu)return"SelectiveHydration";if(n&Pu)return"IdleHydration";if(n&jl)return"Idle";if(n&Pa)return"Offscreen"}}var Rn=-1,w0=Ts,_0=Ho;function Bu(n){switch(dr(n)){case bt:return bt;case so:return so;case Za:return Za;case Ds:return Ds;case zn:return zn;case ks:return ks;case Ts:case bi:case Ma:case As:case mf:case gf:case u0:case c0:case f0:case d0:case h0:case p0:case v0:case m0:case Os:case g0:return n&Ul;case Ho:case y0:case yf:case x0:case b0:return n&Rs;case Mu:return Mu;case Pu:return Pu;case jl:return jl;case Pa:return Pa;default:return c("Should have found matching lanes. This is a bug in React."),n}}function xf(n,a){var u=n.pendingLanes;if(u===Oe)return Oe;var h=Oe,y=n.suspendedLanes,S=n.pingedLanes,F=u&C0;if(F!==Oe){var j=F&~y;if(j!==Oe)h=Bu(j);else{var G=F&S;G!==Oe&&(h=Bu(G))}}else{var re=u&~y;re!==Oe?h=Bu(re):S!==Oe&&(h=Bu(S))}if(h===Oe)return Oe;if(a!==Oe&&a!==h&&(a&y)===Oe){var ie=dr(h),pe=dr(a);if(ie>=pe||ie===zn&&(pe&Ul)!==Oe)return a}(h&Za)!==Oe&&(h|=u&zn);var de=n.entangledLanes;if(de!==Oe)for(var _e=n.entanglements,Se=h&de;Se>0;){var Te=Il(Se),tt=1<<Te;h|=_e[Te],Se&=~tt}return h}function C1(n,a){for(var u=n.eventTimes,h=Rn;a>0;){var y=Il(a),S=1<<y,F=u[y];F>h&&(h=F),a&=~S}return h}function S0(n,a){switch(n){case bt:case so:case Za:return a+250;case Ds:case zn:case ks:case Ts:case bi:case Ma:case As:case mf:case gf:case u0:case c0:case f0:case d0:case h0:case p0:case v0:case m0:case Os:case g0:return a+5e3;case Ho:case y0:case yf:case x0:case b0:return Rn;case Mu:case Pu:case jl:case Pa:return Rn;default:return c("Should have found matching lanes. This is a bug in React."),Rn}}function T_(n,a){for(var u=n.pendingLanes,h=n.suspendedLanes,y=n.pingedLanes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),G=1<<j,re=S[j];re===Rn?((G&h)===Oe||(G&y)!==Oe)&&(S[j]=S0(G,a)):re<=a&&(n.expiredLanes|=G),F&=~G}}function A_(n){return Bu(n.pendingLanes)}function Bv(n){var a=n.pendingLanes&~Pa;return a!==Oe?a:a&Pa?Pa:Oe}function Lu(n){return(n&bt)!==Oe}function bf(n){return(n&C0)!==Oe}function E0(n){return(n&Rs)===n}function O_(n){var a=bt|Za|zn;return(n&a)===Oe}function w1(n){return(n&Ul)===n}function Cf(n,a){var u=so|Za|Ds|zn;return(a&u)!==Oe}function _1(n,a){return(a&n.expiredLanes)!==Oe}function Lv(n){return(n&Ul)!==Oe}function zv(){var n=w0;return w0<<=1,(w0&Ul)===Oe&&(w0=Ts),n}function R_(){var n=_0;return _0<<=1,(_0&Rs)===Oe&&(_0=Ho),n}function dr(n){return n&-n}function yr(n){return dr(n)}function Il(n){return 31-l0(n)}function D0(n){return Il(n)}function Ba(n,a){return(n&a)!==Oe}function Fs(n,a){return(n&a)===a}function Ot(n,a){return n|a}function zu(n,a){return n&~a}function Uv(n,a){return n&a}function S1(n){return n}function E1(n,a){return n!==Vt&&n<a?n:a}function k0(n){for(var a=[],u=0;u<Ln;u++)a.push(n);return a}function Ns(n,a,u){n.pendingLanes|=a,a!==jl&&(n.suspendedLanes=Oe,n.pingedLanes=Oe);var h=n.eventTimes,y=D0(a);h[y]=u}function jv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var u=n.expirationTimes,h=a;h>0;){var y=Il(h),S=1<<y;u[y]=Rn,h&=~S}}function Iv(n,a,u){n.pingedLanes|=n.suspendedLanes&a}function Hv(n,a){var u=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Oe,n.pingedLanes=Oe,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var h=n.entanglements,y=n.eventTimes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),G=1<<j;h[j]=Oe,y[j]=Rn,S[j]=Rn,F&=~G}}function Uu(n,a){for(var u=n.entangledLanes|=a,h=n.entanglements,y=u;y;){var S=Il(y),F=1<<S;F&a|h[S]&a&&(h[S]|=a),y&=~F}}function F_(n,a){var u=dr(a),h;switch(u){case Za:h=so;break;case zn:h=Ds;break;case Ts:case bi:case Ma:case As:case mf:case gf:case u0:case c0:case f0:case d0:case h0:case p0:case v0:case m0:case Os:case g0:case Ho:case y0:case yf:case x0:case b0:h=ks;break;case jl:h=Pu;break;default:h=Vt;break}return(h&(n.suspendedLanes|a))!==Vt?Vt:h}function Vv(n,a,u){if(Ir)for(var h=n.pendingUpdatersLaneMap;u>0;){var y=D0(u),S=1<<y,F=h[y];F.add(a),u&=~S}}function T0(n,a){if(Ir)for(var u=n.pendingUpdatersLaneMap,h=n.memoizedUpdaters;a>0;){var y=D0(a),S=1<<y,F=u[y];F.size>0&&(F.forEach(function(j){var G=j.alternate;(G===null||!h.has(G))&&h.add(j)}),F.clear()),a&=~S}}function $v(n,a){return null}var oa=bt,Hr=Za,Vo=zn,wf=jl,Ms=Vt;function Ci(){return Ms}function xr(n){Ms=n}function _f(n,a){var u=Ms;try{return Ms=n,a()}finally{Ms=u}}function la(n,a){return n!==0&&n<a?n:a}function N_(n,a){return n===0||n>a?n:a}function Yv(n,a){return n!==0&&n<a}function Sf(n){var a=dr(n);return Yv(oa,a)?Yv(Hr,a)?bf(a)?Vo:wf:Hr:oa}function br(n){var a=n.current.memoizedState;return a.isDehydrated}var D1;function rt(n){D1=n}function ju(n){D1(n)}var Ef;function k1(n){Ef=n}var T1;function Df(n){T1=n}var kf;function qv(n){kf=n}var Gv;function A1(n){Gv=n}var A0=!1,Iu=[],uo=null,qn=null,Ar=null,wi=new Map,Hu=new Map,$o=[],qi=["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"];function O1(n){return qi.indexOf(n)>-1}function co(n,a,u,h,y){return{blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:y,targetContainers:[h]}}function R1(n,a){switch(n){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Ar=null;break;case"pointerover":case"pointerout":{var u=a.pointerId;wi.delete(u);break}case"gotpointercapture":case"lostpointercapture":{var h=a.pointerId;Hu.delete(h);break}}}function Vu(n,a,u,h,y,S){if(n===null||n.nativeEvent!==S){var F=co(a,u,h,y,S);if(a!==null){var j=ec(a);j!==null&&Ef(j)}return F}n.eventSystemFlags|=h;var G=n.targetContainers;return y!==null&&G.indexOf(y)===-1&&G.push(y),n}function F1(n,a,u,h,y){switch(a){case"focusin":{var S=y;return uo=Vu(uo,n,a,u,h,S),!0}case"dragenter":{var F=y;return qn=Vu(qn,n,a,u,h,F),!0}case"mouseover":{var j=y;return Ar=Vu(Ar,n,a,u,h,j),!0}case"pointerover":{var G=y,re=G.pointerId;return wi.set(re,Vu(wi.get(re)||null,n,a,u,h,G)),!0}case"gotpointercapture":{var ie=y,pe=ie.pointerId;return Hu.set(pe,Vu(Hu.get(pe)||null,n,a,u,h,ie)),!0}}return!1}function Kv(n){var a=Bf(n.target);if(a!==null){var u=Ka(a);if(u!==null){var h=u.tag;if(h===N){var y=_v(u);if(y!==null){n.blockedOn=y,Gv(n.priority,function(){T1(u)});return}}else if(h===C){var S=u.stateNode;if(br(S)){n.blockedOn=Zd(u);return}}}}n.blockedOn=null}function N1(n){for(var a=kf(),u={blockedOn:null,target:n,priority:a},h=0;h<$o.length&&Yv(a,$o[h].priority);h++);$o.splice(h,0,u),h===0&&Kv(u)}function O0(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var u=a[0],h=Ps(n.domEventName,n.eventSystemFlags,u,n.nativeEvent);if(h===null){var y=n.nativeEvent,S=new y.constructor(y.type,y);of(S),y.target.dispatchEvent(S),__()}else{var F=ec(h);return F!==null&&Ef(F),n.blockedOn=h,!1}a.shift()}return!0}function Tf(n,a,u){O0(n)&&u.delete(a)}function Wv(){A0=!1,uo!==null&&O0(uo)&&(uo=null),qn!==null&&O0(qn)&&(qn=null),Ar!==null&&O0(Ar)&&(Ar=null),wi.forEach(Tf),Hu.forEach(Tf)}function sa(n,a){n.blockedOn===a&&(n.blockedOn=null,A0||(A0=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wv)))}function Ut(n){if(Iu.length>0){sa(Iu[0],n);for(var a=1;a<Iu.length;a++){var u=Iu[a];u.blockedOn===n&&(u.blockedOn=null)}}uo!==null&&sa(uo,n),qn!==null&&sa(qn,n),Ar!==null&&sa(Ar,n);var h=function(j){return sa(j,n)};wi.forEach(h),Hu.forEach(h);for(var y=0;y<$o.length;y++){var S=$o[y];S.blockedOn===n&&(S.blockedOn=null)}for(;$o.length>0;){var F=$o[0];if(F.blockedOn!==null)break;Kv(F),F.blockedOn===null&&$o.shift()}}var Xn=t.ReactCurrentBatchConfig,nr=!0;function Or(n){nr=!!n}function Xa(){return nr}function $u(n,a,u){var h=pa(a),y;switch(h){case oa:y=Cr;break;case Hr:y=Af;break;case Vo:default:y=Yo;break}return y.bind(null,a,u,n)}function Cr(n,a,u,h){var y=Ci(),S=Xn.transition;Xn.transition=null;try{xr(oa),Yo(n,a,u,h)}finally{xr(y),Xn.transition=S}}function Af(n,a,u,h){var y=Ci(),S=Xn.transition;Xn.transition=null;try{xr(Hr),Yo(n,a,u,h)}finally{xr(y),Xn.transition=S}}function Yo(n,a,u,h){nr&&R0(n,a,u,h)}function R0(n,a,u,h){var y=Ps(n,a,u,h);if(y===null){J_(n,a,h,Yu,u),R1(n,h);return}if(F1(y,n,a,u,h)){h.stopPropagation();return}if(R1(n,h),a&gs&&O1(n)){for(;y!==null;){var S=ec(y);S!==null&&ju(S);var F=Ps(n,a,u,h);if(F===null&&J_(n,a,h,Yu,u),F===y)break;y=F}y!==null&&h.stopPropagation();return}J_(n,a,h,null,u)}var Yu=null;function Ps(n,a,u,h){Yu=null;var y=qd(h),S=Bf(y);if(S!==null){var F=Ka(S);if(F===null)S=null;else{var j=F.tag;if(j===N){var G=_v(F);if(G!==null)return G;S=null}else if(j===C){var re=F.stateNode;if(br(re))return Zd(F);S=null}else F!==S&&(S=null)}}return Yu=S,null}function pa(n){switch(n){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 oa;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 Hr;case"message":{var a=Dv();switch(a){case t0:return oa;case Qa:return Hr;case lo:case n0:return Vo;case Nl:return wf;default:return Vo}}default:return Vo}}function Qv(n,a,u){return n.addEventListener(a,u,!1),u}function qu(n,a,u){return n.addEventListener(a,u,!0),u}function qo(n,a,u,h){return n.addEventListener(a,u,{capture:!0,passive:h}),u}function F0(n,a,u,h){return n.addEventListener(a,u,{passive:h}),u}var Bs=null,fo=null,Hl=null;function Vl(n){return Bs=n,fo=M0(),!0}function N0(){Bs=null,fo=null,Hl=null}function Gu(){if(Hl)return Hl;var n,a=fo,u=a.length,h,y=M0(),S=y.length;for(n=0;n<u&&a[n]===y[n];n++);var F=u-n;for(h=1;h<=F&&a[u-h]===y[S-h];h++);var j=h>1?1-h:void 0;return Hl=y.slice(n,j),Hl}function M0(){return"value"in Bs?Bs.value:Bs.textContent}function Ls(n){var a,u=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),a>=32||a===13?a:0}function zs(){return!0}function ua(){return!1}function hr(n){function a(u,h,y,S,F){this._reactName=u,this._targetInst=y,this.type=h,this.nativeEvent=S,this.target=F,this.currentTarget=null;for(var j in n)if(n.hasOwnProperty(j)){var G=n[j];G?this[j]=G(S):this[j]=S[j]}var re=S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1;return re?this.isDefaultPrevented=zs:this.isDefaultPrevented=ua,this.isPropagationStopped=ua,this}return zt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),a}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fa=hr(ca),Ku=zt({},ca,{view:0,detail:0}),Zv=hr(Ku),Of,Xv,_i;function M1(n){n!==_i&&(_i&&n.type==="mousemove"?(Of=n.screenX-_i.screenX,Xv=n.screenY-_i.screenY):(Of=0,Xv=0),_i=n)}var Wu=zt({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:L0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(M1(n),Of)},movementY:function(n){return"movementY"in n?n.movementY:Xv}}),$l=hr(Wu),Jv=zt({},Wu,{dataTransfer:0}),Us=hr(Jv),P1=zt({},Ku,{relatedTarget:0}),P0=hr(P1),em=zt({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),B0=hr(em),M_=zt({},ca,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),P_=hr(M_),B1=zt({},ca,{data:0}),tm=hr(B1),js=tm,B_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qu={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"};function L1(n){if(n.key){var a=B_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var u=Ls(n);return u===13?"Enter":String.fromCharCode(u)}return n.type==="keydown"||n.type==="keyup"?Qu[n.keyCode]||"Unidentified":""}var rr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L_(n){var a=this,u=a.nativeEvent;if(u.getModifierState)return u.getModifierState(n);var h=rr[n];return h?!!u[h]:!1}function L0(n){return L_}var z_=zt({},Ku,{key:L1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:L0,charCode:function(n){return n.type==="keypress"?Ls(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ls(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),U_=hr(z_),z1=zt({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nm=hr(z1),j_=zt({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:L0}),Si=hr(j_),rm=zt({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),I_=hr(rm),Yl=zt({},Wu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),z0=hr(Yl),Is=[9,13,27,32],Rf=229,Ff=ze&&"CompositionEvent"in window,Hs=null;ze&&"documentMode"in document&&(Hs=document.documentMode);var H_=ze&&"TextEvent"in window&&!Hs,U0=ze&&(!Ff||Hs&&Hs>8&&Hs<=11),U1=32,am=String.fromCharCode(U1);function j1(){Pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Nf=!1;function j0(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function I1(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function im(n,a){return n==="keydown"&&a.keyCode===Rf}function H1(n,a){switch(n){case"keyup":return Is.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==Rf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function I0(n){return n.locale==="ko"}var Go=!1;function lm(n,a,u,h,y){var S,F;if(Ff?S=I1(a):Go?H1(a,h)&&(S="onCompositionEnd"):im(a,h)&&(S="onCompositionStart"),!S)return null;U0&&!I0(h)&&(!Go&&S==="onCompositionStart"?Go=Vl(y):S==="onCompositionEnd"&&Go&&(F=Gu()));var j=G1(u,S);if(j.length>0){var G=new tm(S,a,null,h,y);if(n.push({event:G,listeners:j}),F)G.data=F;else{var re=om(h);re!==null&&(G.data=re)}}}function H0(n,a){switch(n){case"compositionend":return om(a);case"keypress":var u=a.which;return u!==U1?null:(Nf=!0,am);case"textInput":var h=a.data;return h===am&&Nf?null:h;default:return null}}function V1(n,a){if(Go){if(n==="compositionend"||!Ff&&H1(n,a)){var u=Gu();return N0(),Go=!1,u}return null}switch(n){case"paste":return null;case"keypress":if(!j0(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return U0&&!I0(a)?null:a.data;default:return null}}function V_(n,a,u,h,y){var S;if(H_?S=H0(a,h):S=V1(a,h),!S)return null;var F=G1(u,"onBeforeInput");if(F.length>0){var j=new js("onBeforeInput","beforeinput",null,h,y);n.push({event:j,listeners:F}),j.data=S}}function V0(n,a,u,h,y,S,F){lm(n,a,u,h,y),V_(n,a,u,h,y)}var $_={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 Zu(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!$_[n.type]:a==="textarea"}function Y_(n){if(!ze)return!1;var a="on"+n,u=a in document;if(!u){var h=document.createElement("div");h.setAttribute(a,"return;"),u=typeof h[a]=="function"}return u}function $0(){Pe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(n,a,u,h){Gd(h);var y=G1(a,"onChange");if(y.length>0){var S=new fa("onChange","change",null,u,h);n.push({event:S,listeners:y})}}var s=null,v=null;function w(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function O(n){var a=[];o(a,v,n,qd(n)),vv(L,a)}function L(n){fA(n,0)}function Z(n){var a=Q0(n);if(Ay(a))return n}function le(n,a){if(n==="change")return a}var fe=!1;ze&&(fe=Y_("input")&&(!document.documentMode||document.documentMode>9));function Ee(n,a){s=n,v=a,s.attachEvent("onpropertychange",Ve)}function Ie(){s&&(s.detachEvent("onpropertychange",Ve),s=null,v=null)}function Ve(n){n.propertyName==="value"&&Z(v)&&O(n)}function je(n,a,u){n==="focusin"?(Ie(),Ee(a,u)):n==="focusout"&&Ie()}function Je(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Z(v)}function it(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function st(n,a){if(n==="click")return Z(a)}function or(n,a){if(n==="input"||n==="change")return Z(a)}function ge(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||El(n,"number",n.value)}function he(n,a,u,h,y,S,F){var j=u?Q0(u):window,G,re;if(w(j)?G=le:Zu(j)?fe?G=or:(G=Je,re=je):it(j)&&(G=st),G){var ie=G(a,u);if(ie){o(n,ie,h,y);return}}re&&re(a,j,u),a==="focusout"&&ge(j)}function Ce(){ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"])}function Ye(n,a,u,h,y,S,F){var j=a==="mouseover"||a==="pointerover",G=a==="mouseout"||a==="pointerout";if(j&&!o1(h)){var re=h.relatedTarget||h.fromElement;if(re&&(Bf(re)||Cm(re)))return}if(!(!G&&!j)){var ie;if(y.window===y)ie=y;else{var pe=y.ownerDocument;pe?ie=pe.defaultView||pe.parentWindow:ie=window}var de,_e;if(G){var Se=h.relatedTarget||h.toElement;if(de=u,_e=Se?Bf(Se):null,_e!==null){var Te=Ka(_e);(_e!==Te||_e.tag!==x&&_e.tag!==_)&&(_e=null)}}else de=null,_e=u;if(de!==_e){var tt=$l,vt="onMouseLeave",ft="onMouseEnter",Yt="mouse";(a==="pointerout"||a==="pointerover")&&(tt=nm,vt="onPointerLeave",ft="onPointerEnter",Yt="pointer");var jt=de==null?ie:Q0(de),xe=_e==null?ie:Q0(_e),Ae=new tt(vt,Yt+"leave",de,h,y);Ae.target=jt,Ae.relatedTarget=xe;var be=null,$e=Bf(y);if($e===u){var nt=new tt(ft,Yt+"enter",_e,h,y);nt.target=xe,nt.relatedTarget=jt,be=nt}U$(n,Ae,be,de,_e)}}}function ut(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var ot=typeof Object.is=="function"?Object.is:ut;function ht(n,a){if(ot(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),h=Object.keys(a);if(u.length!==h.length)return!1;for(var y=0;y<u.length;y++){var S=u[y];if(!Ne.call(a,S)||!ot(n[S],a[S]))return!1}return!0}function St(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Rr(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function Jt(n,a){for(var u=St(n),h=0,y=0;u;){if(u.nodeType===Mo){if(y=h+u.textContent.length,h<=a&&y>=a)return{node:u,offset:a-h};h=y}u=St(Rr(u))}}function ql(n){var a=n.ownerDocument,u=a&&a.defaultView||window,h=u.getSelection&&u.getSelection();if(!h||h.rangeCount===0)return null;var y=h.anchorNode,S=h.anchorOffset,F=h.focusNode,j=h.focusOffset;try{y.nodeType,F.nodeType}catch{return null}return q_(n,y,S,F,j)}function q_(n,a,u,h,y){var S=0,F=-1,j=-1,G=0,re=0,ie=n,pe=null;e:for(;;){for(var de=null;ie===a&&(u===0||ie.nodeType===Mo)&&(F=S+u),ie===h&&(y===0||ie.nodeType===Mo)&&(j=S+y),ie.nodeType===Mo&&(S+=ie.nodeValue.length),(de=ie.firstChild)!==null;)pe=ie,ie=de;for(;;){if(ie===n)break e;if(pe===a&&++G===u&&(F=S),pe===h&&++re===y&&(j=S),(de=ie.nextSibling)!==null)break;ie=pe,pe=ie.parentNode}ie=de}return F===-1||j===-1?null:{start:F,end:j}}function b$(n,a){var u=n.ownerDocument||document,h=u&&u.defaultView||window;if(h.getSelection){var y=h.getSelection(),S=n.textContent.length,F=Math.min(a.start,S),j=a.end===void 0?F:Math.min(a.end,S);if(!y.extend&&F>j){var G=j;j=F,F=G}var re=Jt(n,F),ie=Jt(n,j);if(re&&ie){if(y.rangeCount===1&&y.anchorNode===re.node&&y.anchorOffset===re.offset&&y.focusNode===ie.node&&y.focusOffset===ie.offset)return;var pe=u.createRange();pe.setStart(re.node,re.offset),y.removeAllRanges(),F>j?(y.addRange(pe),y.extend(ie.node,ie.offset)):(pe.setEnd(ie.node,ie.offset),y.addRange(pe))}}}function J3(n){return n&&n.nodeType===Mo}function eA(n,a){return!n||!a?!1:n===a?!0:J3(n)?!1:J3(a)?eA(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function C$(n){return n&&n.ownerDocument&&eA(n.ownerDocument.documentElement,n)}function w$(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function tA(){for(var n=window,a=Nd();a instanceof n.HTMLIFrameElement;){if(w$(a))n=a.contentWindow;else return a;a=Nd(n.document)}return a}function G_(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function _$(){var n=tA();return{focusedElem:n,selectionRange:G_(n)?E$(n):null}}function S$(n){var a=tA(),u=n.focusedElem,h=n.selectionRange;if(a!==u&&C$(u)){h!==null&&G_(u)&&D$(u,h);for(var y=[],S=u;S=S.parentNode;)S.nodeType===Ta&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});typeof u.focus=="function"&&u.focus();for(var F=0;F<y.length;F++){var j=y[F];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}}function E$(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=ql(n),a||{start:0,end:0}}function D$(n,a){var u=a.start,h=a.end;h===void 0&&(h=u),"selectionStart"in n?(n.selectionStart=u,n.selectionEnd=Math.min(h,n.value.length)):b$(n,a)}var k$=ze&&"documentMode"in document&&document.documentMode<=11;function T$(){Pe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Y0=null,K_=null,sm=null,W_=!1;function A$(n){if("selectionStart"in n&&G_(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,u=a.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function O$(n){return n.window===n?n.document:n.nodeType===Hi?n:n.ownerDocument}function nA(n,a,u){var h=O$(u);if(!(W_||Y0==null||Y0!==Nd(h))){var y=A$(Y0);if(!sm||!ht(sm,y)){sm=y;var S=G1(K_,"onSelect");if(S.length>0){var F=new fa("onSelect","select",null,a,u);n.push({event:F,listeners:S}),F.target=Y0}}}}function R$(n,a,u,h,y,S,F){var j=u?Q0(u):window;switch(a){case"focusin":(Zu(j)||j.contentEditable==="true")&&(Y0=j,K_=u,sm=null);break;case"focusout":Y0=null,K_=null,sm=null;break;case"mousedown":W_=!0;break;case"contextmenu":case"mouseup":case"dragend":W_=!1,nA(n,h,y);break;case"selectionchange":if(k$)break;case"keydown":case"keyup":nA(n,h,y)}}function $1(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var q0={animationend:$1("Animation","AnimationEnd"),animationiteration:$1("Animation","AnimationIteration"),animationstart:$1("Animation","AnimationStart"),transitionend:$1("Transition","TransitionEnd")},Q_={},rA={};ze&&(rA=document.createElement("div").style,"AnimationEvent"in window||(delete q0.animationend.animation,delete q0.animationiteration.animation,delete q0.animationstart.animation),"TransitionEvent"in window||delete q0.transitionend.transition);function Y1(n){if(Q_[n])return Q_[n];if(!q0[n])return n;var a=q0[n];for(var u in a)if(a.hasOwnProperty(u)&&u in rA)return Q_[n]=a[u];return n}var aA=Y1("animationend"),iA=Y1("animationiteration"),oA=Y1("animationstart"),lA=Y1("transitionend"),sA=new Map,uA=["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"];function Xu(n,a){sA.set(n,a),Pe(a,[n])}function F$(){for(var n=0;n<uA.length;n++){var a=uA[n],u=a.toLowerCase(),h=a[0].toUpperCase()+a.slice(1);Xu(u,"on"+h)}Xu(aA,"onAnimationEnd"),Xu(iA,"onAnimationIteration"),Xu(oA,"onAnimationStart"),Xu("dblclick","onDoubleClick"),Xu("focusin","onFocus"),Xu("focusout","onBlur"),Xu(lA,"onTransitionEnd")}function N$(n,a,u,h,y,S,F){var j=sA.get(a);if(j!==void 0){var G=fa,re=a;switch(a){case"keypress":if(Ls(h)===0)return;case"keydown":case"keyup":G=U_;break;case"focusin":re="focus",G=P0;break;case"focusout":re="blur",G=P0;break;case"beforeblur":case"afterblur":G=P0;break;case"click":if(h.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=$l;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Us;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Si;break;case aA:case iA:case oA:G=B0;break;case lA:G=I_;break;case"scroll":G=Zv;break;case"wheel":G=z0;break;case"copy":case"cut":case"paste":G=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=nm;break}var ie=(S&gs)!==0;{var pe=!ie&&a==="scroll",de=L$(u,j,h.type,ie,pe);if(de.length>0){var _e=new G(j,re,null,h,y);n.push({event:_e,listeners:de})}}}}F$(),Ce(),$0(),T$(),j1();function M$(n,a,u,h,y,S,F){N$(n,a,u,h,y,S);var j=(S&w_)===0;j&&(Ye(n,a,u,h,y),he(n,a,u,h,y),R$(n,a,u,h,y),V0(n,a,u,h,y))}var um=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Z_=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(um));function cA(n,a,u){var h=n.type||"unknown-event";n.currentTarget=u,zo(h,a,void 0,n),n.currentTarget=null}function P$(n,a,u){var h;if(u)for(var y=a.length-1;y>=0;y--){var S=a[y],F=S.instance,j=S.currentTarget,G=S.listener;if(F!==h&&n.isPropagationStopped())return;cA(n,G,j),h=F}else for(var re=0;re<a.length;re++){var ie=a[re],pe=ie.instance,de=ie.currentTarget,_e=ie.listener;if(pe!==h&&n.isPropagationStopped())return;cA(n,_e,de),h=pe}}function fA(n,a){for(var u=(a&gs)!==0,h=0;h<n.length;h++){var y=n[h],S=y.event,F=y.listeners;P$(S,F,u)}xv()}function B$(n,a,u,h,y){var S=qd(u),F=[];M$(F,n,h,u,S,a),fA(F,a)}function Jn(n,a){Z_.has(n)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var u=!1,h=dq(a),y=j$(n,u);h.has(y)||(dA(a,n,rf,u),h.add(y))}function X_(n,a,u){Z_.has(n)&&!a&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var h=0;a&&(h|=gs),dA(u,n,h,a)}var q1="_reactListening"+Math.random().toString(36).slice(2);function cm(n){if(!n[q1]){n[q1]=!0,ce.forEach(function(u){u!=="selectionchange"&&(Z_.has(u)||X_(u,!1,n),X_(u,!0,n))});var a=n.nodeType===Hi?n:n.ownerDocument;a!==null&&(a[q1]||(a[q1]=!0,X_("selectionchange",!1,a)))}}function dA(n,a,u,h,y){var S=$u(n,a,u),F=void 0;uf&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(F=!0),n=n,h?F!==void 0?qo(n,a,S,F):qu(n,a,S):F!==void 0?F0(n,a,S,F):Qv(n,a,S)}function hA(n,a){return n===a||n.nodeType===fr&&n.parentNode===a}function J_(n,a,u,h,y){var S=h;if(!(a&Bo)&&!(a&rf)){var F=y;if(h!==null){var j=h;e:for(;;){if(j===null)return;var G=j.tag;if(G===C||G===b){var re=j.stateNode.containerInfo;if(hA(re,F))break;if(G===b)for(var ie=j.return;ie!==null;){var pe=ie.tag;if(pe===C||pe===b){var de=ie.stateNode.containerInfo;if(hA(de,F))return}ie=ie.return}for(;re!==null;){var _e=Bf(re);if(_e===null)return;var Se=_e.tag;if(Se===x||Se===_){j=S=_e;continue e}re=re.parentNode}}j=j.return}}}vv(function(){return B$(n,a,u,S)})}function fm(n,a,u){return{instance:n,listener:a,currentTarget:u}}function L$(n,a,u,h,y,S){for(var F=a!==null?a+"Capture":null,j=h?F:a,G=[],re=n,ie=null;re!==null;){var pe=re,de=pe.stateNode,_e=pe.tag;if(_e===x&&de!==null&&(ie=de,j!==null)){var Se=xs(re,j);Se!=null&&G.push(fm(re,Se,ie))}if(y)break;re=re.return}return G}function G1(n,a){for(var u=a+"Capture",h=[],y=n;y!==null;){var S=y,F=S.stateNode,j=S.tag;if(j===x&&F!==null){var G=F,re=xs(y,u);re!=null&&h.unshift(fm(y,re,G));var ie=xs(y,a);ie!=null&&h.push(fm(y,ie,G))}y=y.return}return h}function G0(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==x);return n||null}function z$(n,a){for(var u=n,h=a,y=0,S=u;S;S=G0(S))y++;for(var F=0,j=h;j;j=G0(j))F++;for(;y-F>0;)u=G0(u),y--;for(;F-y>0;)h=G0(h),F--;for(var G=y;G--;){if(u===h||h!==null&&u===h.alternate)return u;u=G0(u),h=G0(h)}return null}function pA(n,a,u,h,y){for(var S=a._reactName,F=[],j=u;j!==null&&j!==h;){var G=j,re=G.alternate,ie=G.stateNode,pe=G.tag;if(re!==null&&re===h)break;if(pe===x&&ie!==null){var de=ie;if(y){var _e=xs(j,S);_e!=null&&F.unshift(fm(j,_e,de))}else if(!y){var Se=xs(j,S);Se!=null&&F.push(fm(j,Se,de))}}j=j.return}F.length!==0&&n.push({event:a,listeners:F})}function U$(n,a,u,h,y){var S=h&&y?z$(h,y):null;h!==null&&pA(n,a,h,S,!1),y!==null&&u!==null&&pA(n,u,y,S,!0)}function j$(n,a){return n+"__"+(a?"capture":"bubble")}var Ei=!1,dm="dangerouslySetInnerHTML",K1="suppressContentEditableWarning",Ju="suppressHydrationWarning",vA="autoFocus",Mf="children",Pf="style",W1="__html",eS,Q1,hm,mA,Z1,gA,yA;eS={dialog:!0,webview:!0},Q1=function(n,a){Yd(n,a),cv(n,a),i1(n,a,{registrationNameDependencies:ye,possibleRegistrationNames:De})},gA=ze&&!document.documentMode,hm=function(n,a,u){if(!Ei){var h=X1(u),y=X1(a);y!==h&&(Ei=!0,c("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(y),JSON.stringify(h)))}},mA=function(n){if(!Ei){Ei=!0;var a=[];n.forEach(function(u){a.push(u)}),c("Extra attributes from the server: %s",a)}},Z1=function(n,a){a===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},yA=function(n,a){var u=n.namespaceURI===No?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return u.innerHTML=a,u.innerHTML};var I$=/\r\n?/g,H$=/\u0000|\uFFFD/g;function X1(n){It(n);var a=typeof n=="string"?n:""+n;return a.replace(I$,`
85
85
  `).replace(H$,"")}function J1(n,a,u,h){var y=X1(a),S=X1(n);if(S!==y&&(h&&(Ei||(Ei=!0,c('Text content did not match. Server: "%s" Client: "%s"',S,y))),u&&J))throw new Error("Text content does not match server-rendered HTML.")}function xA(n){return n.nodeType===Hi?n:n.ownerDocument}function V$(){}function ex(n){n.onclick=V$}function $$(n,a,u,h,y){for(var S in h)if(h.hasOwnProperty(S)){var F=h[S];if(S===Pf)F&&Object.freeze(F),Wy(a,F);else if(S===dm){var j=F?F[W1]:void 0;j!=null&&zy(a,j)}else if(S===Mf)if(typeof F=="string"){var G=n!=="textarea"||F!=="";G&&Id(a,F)}else typeof F=="number"&&Id(a,""+F);else S===K1||S===Ju||S===vA||(ye.hasOwnProperty(S)?F!=null&&(typeof F!="function"&&Z1(S,F),S==="onScroll"&&Jn("scroll",a)):F!=null&&Hn(a,S,F,y))}}function Y$(n,a,u,h){for(var y=0;y<a.length;y+=2){var S=a[y],F=a[y+1];S===Pf?Wy(n,F):S===dm?zy(n,F):S===Mf?Id(n,F):Hn(n,S,F,h)}}function q$(n,a,u,h){var y,S=xA(u),F,j=h;if(j===No&&(j=Ud(n)),j===No){if(y=Po(n,a),!y&&n!==n.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var G=S.createElement("div");G.innerHTML="<script></script>";var re=G.firstChild;F=G.removeChild(re)}else if(typeof a.is=="string")F=S.createElement(n,{is:a.is});else if(F=S.createElement(n),n==="select"){var ie=F;a.multiple?ie.multiple=!0:a.size&&(ie.size=a.size)}}else F=S.createElementNS(j,n);return j===No&&!y&&Object.prototype.toString.call(F)==="[object HTMLUnknownElement]"&&!Ne.call(eS,n)&&(eS[n]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),F}function G$(n,a){return xA(a).createTextNode(n)}function K$(n,a,u,h){var y=Po(a,u);Q1(a,u);var S;switch(a){case"dialog":Jn("cancel",n),Jn("close",n),S=u;break;case"iframe":case"object":case"embed":Jn("load",n),S=u;break;case"video":case"audio":for(var F=0;F<um.length;F++)Jn(um[F],n);S=u;break;case"source":Jn("error",n),S=u;break;case"img":case"image":case"link":Jn("error",n),Jn("load",n),S=u;break;case"details":Jn("toggle",n),S=u;break;case"input":Zc(n,u),S=Qc(n,u),Jn("invalid",n);break;case"option":Ld(n,u),S=u;break;case"select":My(n,u),S=Jp(n,u),Jn("invalid",n);break;case"textarea":Py(n,u),S=tv(n,u),Jn("invalid",n);break;default:S=u}switch(Vd(a,S),$$(a,n,h,S,y),a){case"input":ps(n),Xc(n,u,!1);break;case"textarea":ps(n),Ly(n);break;case"option":Xp(n,u);break;case"select":f_(n,u);break;default:typeof S.onClick=="function"&&ex(n);break}}function W$(n,a,u,h,y){Q1(a,h);var S=null,F,j;switch(a){case"input":F=Qc(n,u),j=Qc(n,h),S=[];break;case"select":F=Jp(n,u),j=Jp(n,h),S=[];break;case"textarea":F=tv(n,u),j=tv(n,h),S=[];break;default:F=u,j=h,typeof F.onClick!="function"&&typeof j.onClick=="function"&&ex(n);break}Vd(a,j);var G,re,ie=null;for(G in F)if(!(j.hasOwnProperty(G)||!F.hasOwnProperty(G)||F[G]==null))if(G===Pf){var pe=F[G];for(re in pe)pe.hasOwnProperty(re)&&(ie||(ie={}),ie[re]="")}else G===dm||G===Mf||G===K1||G===Ju||G===vA||(ye.hasOwnProperty(G)?S||(S=[]):(S=S||[]).push(G,null));for(G in j){var de=j[G],_e=F!=null?F[G]:void 0;if(!(!j.hasOwnProperty(G)||de===_e||de==null&&_e==null))if(G===Pf)if(de&&Object.freeze(de),_e){for(re in _e)_e.hasOwnProperty(re)&&(!de||!de.hasOwnProperty(re))&&(ie||(ie={}),ie[re]="");for(re in de)de.hasOwnProperty(re)&&_e[re]!==de[re]&&(ie||(ie={}),ie[re]=de[re])}else ie||(S||(S=[]),S.push(G,ie)),ie=de;else if(G===dm){var Se=de?de[W1]:void 0,Te=_e?_e[W1]:void 0;Se!=null&&Te!==Se&&(S=S||[]).push(G,Se)}else G===Mf?(typeof de=="string"||typeof de=="number")&&(S=S||[]).push(G,""+de):G===K1||G===Ju||(ye.hasOwnProperty(G)?(de!=null&&(typeof de!="function"&&Z1(G,de),G==="onScroll"&&Jn("scroll",n)),!S&&_e!==de&&(S=[])):(S=S||[]).push(G,de))}return ie&&(tf(ie,j[Pf]),(S=S||[]).push(Pf,ie)),S}function Q$(n,a,u,h,y){u==="input"&&y.type==="radio"&&y.name!=null&&Zp(n,y);var S=Po(u,h),F=Po(u,y);switch(Y$(n,a,S,F),u){case"input":Cu(n,y);break;case"textarea":By(n,y);break;case"select":d_(n,y);break}}function Z$(n){{var a=n.toLowerCase();return $d.hasOwnProperty(a)&&$d[a]||null}}function X$(n,a,u,h,y,S,F){var j,G;switch(j=Po(a,u),Q1(a,u),a){case"dialog":Jn("cancel",n),Jn("close",n);break;case"iframe":case"object":case"embed":Jn("load",n);break;case"video":case"audio":for(var re=0;re<um.length;re++)Jn(um[re],n);break;case"source":Jn("error",n);break;case"img":case"image":case"link":Jn("error",n),Jn("load",n);break;case"details":Jn("toggle",n);break;case"input":Zc(n,u),Jn("invalid",n);break;case"option":Ld(n,u);break;case"select":My(n,u),Jn("invalid",n);break;case"textarea":Py(n,u),Jn("invalid",n);break}Vd(a,u);{G=new Set;for(var ie=n.attributes,pe=0;pe<ie.length;pe++){var de=ie[pe].name.toLowerCase();switch(de){case"value":break;case"checked":break;case"selected":break;default:G.add(ie[pe].name)}}}var _e=null;for(var Se in u)if(u.hasOwnProperty(Se)){var Te=u[Se];if(Se===Mf)typeof Te=="string"?n.textContent!==Te&&(u[Ju]!==!0&&J1(n.textContent,Te,S,F),_e=[Mf,Te]):typeof Te=="number"&&n.textContent!==""+Te&&(u[Ju]!==!0&&J1(n.textContent,Te,S,F),_e=[Mf,""+Te]);else if(ye.hasOwnProperty(Se))Te!=null&&(typeof Te!="function"&&Z1(Se,Te),Se==="onScroll"&&Jn("scroll",n));else if(F&&typeof j=="boolean"){var tt=void 0,vt=j&&oe?null:na(Se);if(u[Ju]!==!0){if(!(Se===K1||Se===Ju||Se==="value"||Se==="checked"||Se==="selected")){if(Se===dm){var ft=n.innerHTML,Yt=Te?Te[W1]:void 0;if(Yt!=null){var jt=yA(n,Yt);jt!==ft&&hm(Se,ft,jt)}}else if(Se===Pf){if(G.delete(Se),gA){var xe=b_(Te);tt=n.getAttribute("style"),xe!==tt&&hm(Se,tt,xe)}}else if(j&&!oe)G.delete(Se.toLowerCase()),tt=Oo(n,Se,Te),Te!==tt&&hm(Se,tt,Te);else if(!Wn(Se,vt,j)&&!_n(Se,Te,vt,j)){var Ae=!1;if(vt!==null)G.delete(vt.attributeName),tt=Ao(n,Se,Te,vt);else{var be=h;if(be===No&&(be=Ud(a)),be===No)G.delete(Se.toLowerCase());else{var $e=Z$(Se);$e!==null&&$e!==Se&&(Ae=!0,G.delete($e)),G.delete(Se)}tt=Oo(n,Se,Te)}var nt=oe;!nt&&Te!==tt&&!Ae&&hm(Se,tt,Te)}}}}}switch(F&&G.size>0&&u[Ju]!==!0&&mA(G),a){case"input":ps(n),Xc(n,u,!0);break;case"textarea":ps(n),Ly(n);break;case"select":case"option":break;default:typeof u.onClick=="function"&&ex(n);break}return _e}function J$(n,a,u){var h=n.nodeValue!==a;return h}function tS(n,a){{if(Ei)return;Ei=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function nS(n,a){{if(Ei)return;Ei=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,n.nodeName.toLowerCase())}}function rS(n,a,u){{if(Ei)return;Ei=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",a,n.nodeName.toLowerCase())}}function aS(n,a){{if(a===""||Ei)return;Ei=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,n.nodeName.toLowerCase())}}function eY(n,a,u){switch(a){case"input":Oy(n,u);return;case"textarea":nv(n,u);return;case"select":h_(n,u);return}}var pm=function(){},vm=function(){};{var tY=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],bA=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],nY=bA.concat(["button"]),rY=["dd","dt","li","option","optgroup","p","rp","rt"],CA={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};vm=function(n,a){var u=zt({},n||CA),h={tag:a};return bA.indexOf(a)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),nY.indexOf(a)!==-1&&(u.pTagInButtonScope=null),tY.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=h,a==="form"&&(u.formTag=h),a==="a"&&(u.aTagInScope=h),a==="button"&&(u.buttonTagInScope=h),a==="nobr"&&(u.nobrTagInScope=h),a==="p"&&(u.pTagInButtonScope=h),a==="li"&&(u.listItemTagAutoclosing=h),(a==="dd"||a==="dt")&&(u.dlItemTagAutoclosing=h),u};var aY=function(n,a){switch(a){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return rY.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},iY=function(n,a){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},wA={};pm=function(n,a,u){u=u||CA;var h=u.current,y=h&&h.tag;a!=null&&(n!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var S=aY(n,y)?null:h,F=S?null:iY(n,u),j=S||F;if(j){var G=j.tag,re=!!S+"|"+n+"|"+G;if(!wA[re]){wA[re]=!0;var ie=n,pe="";if(n==="#text"?/\S/.test(a)?ie="Text nodes":(ie="Whitespace text nodes",pe=" Make sure you don't have any extra whitespace between tags on each line of your source code."):ie="<"+n+">",S){var de="";G==="table"&&n==="tr"&&(de+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",ie,G,pe,de)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",ie,G)}}}}var tx="suppressHydrationWarning",nx="$",rx="/$",mm="$?",gm="$!",oY="style",iS=null,oS=null;function lY(n){var a,u,h=n.nodeType;switch(h){case Hi:case vs:{a=h===Hi?"#document":"#fragment";var y=n.documentElement;u=y?y.namespaceURI:av(null,"");break}default:{var S=h===fr?n.parentNode:n,F=S.namespaceURI||null;a=S.tagName,u=av(F,a);break}}{var j=a.toLowerCase(),G=vm(null,j);return{namespace:u,ancestorInfo:G}}}function sY(n,a,u){{var h=n,y=av(h.namespace,a),S=vm(h.ancestorInfo,a);return{namespace:y,ancestorInfo:S}}}function MX(n){return n}function uY(n){iS=Xa(),oS=_$();var a=null;return Or(!1),a}function cY(n){S$(oS),Or(iS),iS=null,oS=null}function fY(n,a,u,h,y){var S;{var F=h;if(pm(n,null,F.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var j=""+a.children,G=vm(F.ancestorInfo,n);pm(null,j,G)}S=F.namespace}var re=q$(n,a,u,S);return bm(y,re),pS(re,a),re}function dY(n,a){n.appendChild(a)}function hY(n,a,u,h,y){switch(K$(n,a,u,h),a){case"button":case"input":case"select":case"textarea":return!!u.autoFocus;case"img":return!0;default:return!1}}function pY(n,a,u,h,y,S){{var F=S;if(typeof h.children!=typeof u.children&&(typeof h.children=="string"||typeof h.children=="number")){var j=""+h.children,G=vm(F.ancestorInfo,a);pm(null,j,G)}}return W$(n,a,u,h)}function lS(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function vY(n,a,u,h){{var y=u;pm(null,n,y.ancestorInfo)}var S=G$(n,a);return bm(h,S),S}function mY(){var n=window.event;return n===void 0?Vo:pa(n.type)}var sS=typeof setTimeout=="function"?setTimeout:void 0,gY=typeof clearTimeout=="function"?clearTimeout:void 0,uS=-1,_A=typeof Promise=="function"?Promise:void 0,yY=typeof queueMicrotask=="function"?queueMicrotask:typeof _A<"u"?function(n){return _A.resolve(null).then(n).catch(xY)}:sS;function xY(n){setTimeout(function(){throw n})}function bY(n,a,u,h){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();return;case"img":{u.src&&(n.src=u.src);return}}}function CY(n,a,u,h,y,S){Q$(n,a,u,h,y),pS(n,y)}function SA(n){Id(n,"")}function wY(n,a,u){n.nodeValue=u}function _Y(n,a){n.appendChild(a)}function SY(n,a){var u;n.nodeType===fr?(u=n.parentNode,u.insertBefore(a,n)):(u=n,u.appendChild(a));var h=n._reactRootContainer;h==null&&u.onclick===null&&ex(u)}function EY(n,a,u){n.insertBefore(a,u)}function DY(n,a,u){n.nodeType===fr?n.parentNode.insertBefore(a,u):n.insertBefore(a,u)}function kY(n,a){n.removeChild(a)}function TY(n,a){n.nodeType===fr?n.parentNode.removeChild(a):n.removeChild(a)}function cS(n,a){var u=a,h=0;do{var y=u.nextSibling;if(n.removeChild(u),y&&y.nodeType===fr){var S=y.data;if(S===rx)if(h===0){n.removeChild(y),Ut(a);return}else h--;else(S===nx||S===mm||S===gm)&&h++}u=y}while(u);Ut(a)}function AY(n,a){n.nodeType===fr?cS(n.parentNode,a):n.nodeType===Ta&&cS(n,a),Ut(n)}function OY(n){n=n;var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function RY(n){n.nodeValue=""}function FY(n,a){n=n;var u=a[oY],h=u!=null&&u.hasOwnProperty("display")?u.display:null;n.style.display=Hd("display",h)}function NY(n,a){n.nodeValue=a}function MY(n){n.nodeType===Ta?n.textContent="":n.nodeType===Hi&&n.documentElement&&n.removeChild(n.documentElement)}function PY(n,a,u){return n.nodeType!==Ta||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function BY(n,a){return a===""||n.nodeType!==Mo?null:n}function LY(n){return n.nodeType!==fr?null:n}function EA(n){return n.data===mm}function fS(n){return n.data===gm}function zY(n){var a=n.nextSibling&&n.nextSibling.dataset,u,h,y;return a&&(u=a.dgst,h=a.msg,y=a.stck),{message:h,digest:u,stack:y}}function UY(n,a){n._reactRetry=a}function ax(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===Ta||a===Mo)break;if(a===fr){var u=n.data;if(u===nx||u===gm||u===mm)break;if(u===rx)return null}}return n}function ym(n){return ax(n.nextSibling)}function jY(n){return ax(n.firstChild)}function IY(n){return ax(n.firstChild)}function HY(n){return ax(n.nextSibling)}function VY(n,a,u,h,y,S,F){bm(S,n),pS(n,u);var j;{var G=y;j=G.namespace}var re=(S.mode&Lt)!==gt;return X$(n,a,u,j,h,re,F)}function $Y(n,a,u,h){return bm(u,n),u.mode&Lt,J$(n,a)}function YY(n,a){bm(a,n)}function qY(n){for(var a=n.nextSibling,u=0;a;){if(a.nodeType===fr){var h=a.data;if(h===rx){if(u===0)return ym(a);u--}else(h===nx||h===gm||h===mm)&&u++}a=a.nextSibling}return null}function DA(n){for(var a=n.previousSibling,u=0;a;){if(a.nodeType===fr){var h=a.data;if(h===nx||h===gm||h===mm){if(u===0)return a;u--}else h===rx&&u++}a=a.previousSibling}return null}function GY(n){Ut(n)}function KY(n){Ut(n)}function WY(n){return n!=="head"&&n!=="body"}function QY(n,a,u,h){var y=!0;J1(a.nodeValue,u,h,y)}function ZY(n,a,u,h,y,S){if(a[tx]!==!0){var F=!0;J1(h.nodeValue,y,S,F)}}function XY(n,a){a.nodeType===Ta?tS(n,a):a.nodeType===fr||nS(n,a)}function JY(n,a){{var u=n.parentNode;u!==null&&(a.nodeType===Ta?tS(u,a):a.nodeType===fr||nS(u,a))}}function eq(n,a,u,h,y){(y||a[tx]!==!0)&&(h.nodeType===Ta?tS(u,h):h.nodeType===fr||nS(u,h))}function tq(n,a,u){rS(n,a)}function nq(n,a){aS(n,a)}function rq(n,a,u){{var h=n.parentNode;h!==null&&rS(h,a)}}function aq(n,a){{var u=n.parentNode;u!==null&&aS(u,a)}}function iq(n,a,u,h,y,S){(S||a[tx]!==!0)&&rS(u,h)}function oq(n,a,u,h,y){(y||a[tx]!==!0)&&aS(u,h)}function lq(n){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function sq(n){cm(n)}var K0=Math.random().toString(36).slice(2),W0="__reactFiber$"+K0,dS="__reactProps$"+K0,xm="__reactContainer$"+K0,hS="__reactEvents$"+K0,uq="__reactListeners$"+K0,cq="__reactHandles$"+K0;function fq(n){delete n[W0],delete n[dS],delete n[hS],delete n[uq],delete n[cq]}function bm(n,a){a[W0]=n}function ix(n,a){a[xm]=n}function kA(n){n[xm]=null}function Cm(n){return!!n[xm]}function Bf(n){var a=n[W0];if(a)return a;for(var u=n.parentNode;u;){if(a=u[xm]||u[W0],a){var h=a.alternate;if(a.child!==null||h!==null&&h.child!==null)for(var y=DA(n);y!==null;){var S=y[W0];if(S)return S;y=DA(y)}return a}n=u,u=n.parentNode}return null}function ec(n){var a=n[W0]||n[xm];return a&&(a.tag===x||a.tag===_||a.tag===N||a.tag===C)?a:null}function Q0(n){if(n.tag===x||n.tag===_)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function ox(n){return n[dS]||null}function pS(n,a){n[dS]=a}function dq(n){var a=n[hS];return a===void 0&&(a=n[hS]=new Set),a}var TA={},AA=t.ReactDebugCurrentFrame;function lx(n){if(n){var a=n._owner,u=$c(n.type,n._source,a?a.type:null);AA.setExtraStackFrame(u)}else AA.setExtraStackFrame(null)}function Ko(n,a,u,h,y){{var S=Function.call.bind(Ne);for(var F in n)if(S(n,F)){var j=void 0;try{if(typeof n[F]!="function"){var G=Error((h||"React class")+": "+u+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw G.name="Invariant Violation",G}j=n[F](a,F,h,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){j=re}j&&!(j instanceof Error)&&(lx(y),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",h||"React class",u,F,typeof j),lx(null)),j instanceof Error&&!(j.message in TA)&&(TA[j.message]=!0,lx(y),c("Failed %s type: %s",u,j.message),lx(null))}}}var vS=[],sx;sx=[];var Vs=-1;function tc(n){return{current:n}}function La(n,a){if(Vs<0){c("Unexpected pop.");return}a!==sx[Vs]&&c("Unexpected Fiber popped."),n.current=vS[Vs],vS[Vs]=null,sx[Vs]=null,Vs--}function za(n,a,u){Vs++,vS[Vs]=n.current,sx[Vs]=u,n.current=a}var mS;mS={};var Gi={};Object.freeze(Gi);var $s=tc(Gi),Gl=tc(!1),gS=Gi;function Z0(n,a,u){return u&&Kl(a)?gS:$s.current}function OA(n,a,u){{var h=n.stateNode;h.__reactInternalMemoizedUnmaskedChildContext=a,h.__reactInternalMemoizedMaskedChildContext=u}}function X0(n,a){{var u=n.type,h=u.contextTypes;if(!h)return Gi;var y=n.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===a)return y.__reactInternalMemoizedMaskedChildContext;var S={};for(var F in h)S[F]=a[F];{var j=Tt(n)||"Unknown";Ko(h,S,"context",j)}return y&&OA(n,a,S),S}}function ux(){return Gl.current}function Kl(n){{var a=n.childContextTypes;return a!=null}}function cx(n){La(Gl,n),La($s,n)}function yS(n){La(Gl,n),La($s,n)}function RA(n,a,u){{if($s.current!==Gi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");za($s,a,n),za(Gl,u,n)}}function FA(n,a,u){{var h=n.stateNode,y=a.childContextTypes;if(typeof h.getChildContext!="function"){{var S=Tt(n)||"Unknown";mS[S]||(mS[S]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",S,S))}return u}var F=h.getChildContext();for(var j in F)if(!(j in y))throw new Error((Tt(n)||"Unknown")+'.getChildContext(): key "'+j+'" is not defined in childContextTypes.');{var G=Tt(n)||"Unknown";Ko(y,F,"child context",G)}return zt({},u,F)}}function fx(n){{var a=n.stateNode,u=a&&a.__reactInternalMemoizedMergedChildContext||Gi;return gS=$s.current,za($s,u,n),za(Gl,Gl.current,n),!0}}function NA(n,a,u){{var h=n.stateNode;if(!h)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(u){var y=FA(n,a,gS);h.__reactInternalMemoizedMergedChildContext=y,La(Gl,n),La($s,n),za($s,y,n),za(Gl,u,n)}else La(Gl,n),za(Gl,u,n)}}function hq(n){{if(!Sv(n)||n.tag!==d)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=n;do{switch(a.tag){case C:return a.stateNode.context;case d:{var u=a.type;if(Kl(u))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var nc=0,dx=1,Ys=null,xS=!1,bS=!1;function MA(n){Ys===null?Ys=[n]:Ys.push(n)}function pq(n){xS=!0,MA(n)}function PA(){xS&&rc()}function rc(){if(!bS&&Ys!==null){bS=!0;var n=0,a=Ci();try{var u=!0,h=Ys;for(xr(oa);n<h.length;n++){var y=h[n];do y=y(u);while(y!==null)}Ys=null,xS=!1}catch(S){throw Ys!==null&&(Ys=Ys.slice(n+1)),Jd(t0,rc),S}finally{xr(a),bS=!1}}return null}var J0=[],eh=0,hx=null,px=0,ho=[],po=0,Lf=null,qs=1,Gs="";function vq(n){return Uf(),(n.flags&Cv)!==pt}function mq(n){return Uf(),px}function gq(){var n=Gs,a=qs,u=a&~yq(a);return u.toString(32)+n}function zf(n,a){Uf(),J0[eh++]=px,J0[eh++]=hx,hx=n,px=a}function BA(n,a,u){Uf(),ho[po++]=qs,ho[po++]=Gs,ho[po++]=Lf,Lf=n;var h=qs,y=Gs,S=vx(h)-1,F=h&~(1<<S),j=u+1,G=vx(a)+S;if(G>30){var re=S-S%5,ie=(1<<re)-1,pe=(F&ie).toString(32),de=F>>re,_e=S-re,Se=vx(a)+_e,Te=j<<_e,tt=Te|de,vt=pe+y;qs=1<<Se|tt,Gs=vt}else{var ft=j<<S,Yt=ft|F,jt=y;qs=1<<G|Yt,Gs=jt}}function CS(n){Uf();var a=n.return;if(a!==null){var u=1,h=0;zf(n,u),BA(n,u,h)}}function vx(n){return 32-l0(n)}function yq(n){return 1<<vx(n)-1}function wS(n){for(;n===hx;)hx=J0[--eh],J0[eh]=null,px=J0[--eh],J0[eh]=null;for(;n===Lf;)Lf=ho[--po],ho[po]=null,Gs=ho[--po],ho[po]=null,qs=ho[--po],ho[po]=null}function xq(){return Uf(),Lf!==null?{id:qs,overflow:Gs}:null}function bq(n,a){Uf(),ho[po++]=qs,ho[po++]=Gs,ho[po++]=Lf,qs=a.id,Gs=a.overflow,Lf=n}function Uf(){ma()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var va=null,vo=null,Wo=!1,jf=!1,ac=null;function Cq(){Wo&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function LA(){jf=!0}function wq(){return jf}function _q(n){var a=n.stateNode.containerInfo;return vo=IY(a),va=n,Wo=!0,ac=null,jf=!1,!0}function Sq(n,a,u){return vo=HY(a),va=n,Wo=!0,ac=null,jf=!1,u!==null&&bq(n,u),!0}function zA(n,a){switch(n.tag){case C:{XY(n.stateNode.containerInfo,a);break}case x:{var u=(n.mode&Lt)!==gt;eq(n.type,n.memoizedProps,n.stateNode,a,u);break}case N:{var h=n.memoizedState;h.dehydrated!==null&&JY(h.dehydrated,a);break}}}function UA(n,a){zA(n,a);var u=kW();u.stateNode=a,u.return=n;var h=n.deletions;h===null?(n.deletions=[u],n.flags|=ln):h.push(u)}function _S(n,a){{if(jf)return;switch(n.tag){case C:{var u=n.stateNode.containerInfo;switch(a.tag){case x:var h=a.type;a.pendingProps,tq(u,h);break;case _:var y=a.pendingProps;nq(u,y);break}break}case x:{var S=n.type,F=n.memoizedProps,j=n.stateNode;switch(a.tag){case x:{var G=a.type,re=a.pendingProps,ie=(n.mode&Lt)!==gt;iq(S,F,j,G,re,ie);break}case _:{var pe=a.pendingProps,de=(n.mode&Lt)!==gt;oq(S,F,j,pe,de);break}}break}case N:{var _e=n.memoizedState,Se=_e.dehydrated;if(Se!==null)switch(a.tag){case x:var Te=a.type;a.pendingProps,rq(Se,Te);break;case _:var tt=a.pendingProps;aq(Se,tt);break}break}default:return}}}function jA(n,a){a.flags=a.flags&~mi|Pn,_S(n,a)}function IA(n,a){switch(n.tag){case x:{var u=n.type;n.pendingProps;var h=PY(a,u);return h!==null?(n.stateNode=h,va=n,vo=jY(h),!0):!1}case _:{var y=n.pendingProps,S=BY(a,y);return S!==null?(n.stateNode=S,va=n,vo=null,!0):!1}case N:{var F=LY(a);if(F!==null){var j={dehydrated:F,treeContext:xq(),retryLane:Pa};n.memoizedState=j;var G=TW(F);return G.return=n,n.child=G,va=n,vo=null,!0}return!1}default:return!1}}function SS(n){return(n.mode&Lt)!==gt&&(n.flags&_t)===pt}function ES(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function DS(n){if(Wo){var a=vo;if(!a){SS(n)&&(_S(va,n),ES()),jA(va,n),Wo=!1,va=n;return}var u=a;if(!IA(n,a)){SS(n)&&(_S(va,n),ES()),a=ym(u);var h=va;if(!a||!IA(n,a)){jA(va,n),Wo=!1,va=n;return}UA(h,u)}}}function Eq(n,a,u){var h=n.stateNode,y=!jf,S=VY(h,n.type,n.memoizedProps,a,u,n,y);return n.updateQueue=S,S!==null}function Dq(n){var a=n.stateNode,u=n.memoizedProps,h=$Y(a,u,n);if(h){var y=va;if(y!==null)switch(y.tag){case C:{var S=y.stateNode.containerInfo,F=(y.mode&Lt)!==gt;QY(S,a,u,F);break}case x:{var j=y.type,G=y.memoizedProps,re=y.stateNode,ie=(y.mode&Lt)!==gt;ZY(j,G,re,a,u,ie);break}}}return h}function kq(n){var a=n.memoizedState,u=a!==null?a.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");YY(u,n)}function Tq(n){var a=n.memoizedState,u=a!==null?a.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return qY(u)}function HA(n){for(var a=n.return;a!==null&&a.tag!==x&&a.tag!==C&&a.tag!==N;)a=a.return;va=a}function mx(n){if(n!==va)return!1;if(!Wo)return HA(n),Wo=!0,!1;if(n.tag!==C&&(n.tag!==x||WY(n.type)&&!lS(n.type,n.memoizedProps))){var a=vo;if(a)if(SS(n))VA(n),ES();else for(;a;)UA(n,a),a=ym(a)}return HA(n),n.tag===N?vo=Tq(n):vo=va?ym(n.stateNode):null,!0}function Aq(){return Wo&&vo!==null}function VA(n){for(var a=vo;a;)zA(n,a),a=ym(a)}function th(){va=null,vo=null,Wo=!1,jf=!1}function $A(){ac!==null&&(zR(ac),ac=null)}function ma(){return Wo}function kS(n){ac===null?ac=[n]:ac.push(n)}var Oq=t.ReactCurrentBatchConfig,Rq=null;function Fq(){return Oq.transition}var Qo={recordUnsafeLifecycleWarnings:function(n,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Nq=function(n){for(var a=null,u=n;u!==null;)u.mode&Zn&&(a=u),u=u.return;return a},If=function(n){var a=[];return n.forEach(function(u){a.push(u)}),a.sort().join(", ")},wm=[],_m=[],Sm=[],Em=[],Dm=[],km=[],Hf=new Set;Qo.recordUnsafeLifecycleWarnings=function(n,a){Hf.has(n.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&wm.push(n),n.mode&Zn&&typeof a.UNSAFE_componentWillMount=="function"&&_m.push(n),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Sm.push(n),n.mode&Zn&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Em.push(n),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&Dm.push(n),n.mode&Zn&&typeof a.UNSAFE_componentWillUpdate=="function"&&km.push(n))},Qo.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;wm.length>0&&(wm.forEach(function(de){n.add(Tt(de)||"Component"),Hf.add(de.type)}),wm=[]);var a=new Set;_m.length>0&&(_m.forEach(function(de){a.add(Tt(de)||"Component"),Hf.add(de.type)}),_m=[]);var u=new Set;Sm.length>0&&(Sm.forEach(function(de){u.add(Tt(de)||"Component"),Hf.add(de.type)}),Sm=[]);var h=new Set;Em.length>0&&(Em.forEach(function(de){h.add(Tt(de)||"Component"),Hf.add(de.type)}),Em=[]);var y=new Set;Dm.length>0&&(Dm.forEach(function(de){y.add(Tt(de)||"Component"),Hf.add(de.type)}),Dm=[]);var S=new Set;if(km.length>0&&(km.forEach(function(de){S.add(Tt(de)||"Component"),Hf.add(de.type)}),km=[]),a.size>0){var F=If(a);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
86
86
 
87
87
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
@@ -146,9 +146,9 @@ Incoming: %s`,Fe,"["+a.join(", ")+"]","["+n.join(", ")+"]");for(var u=0;u<a.leng
146
146
  Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var ie=Tt(n)||"Anonymous";re="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+ie+".")}var pe=G+`
147
147
  `+F+`
148
148
 
149
- `+(""+re)}catch(de){setTimeout(function(){throw de})}}var cG=typeof WeakMap=="function"?WeakMap:Map;function $O(n,a,u){var h=Ks(Rn,u);h.tag=MS,h.payload={element:null};var y=a.value;return h.callback=function(){nW(y),ME(n,a)},h}function PE(n,a,u){var h=Ks(Rn,u);h.tag=MS;var y=n.type.getDerivedStateFromError;if(typeof y=="function"){var S=a.value;h.payload=function(){return y(S)},h.callback=function(){tF(n),ME(n,a)}}var F=n.stateNode;return F!==null&&typeof F.componentDidCatch=="function"&&(h.callback=function(){tF(n),ME(n,a),typeof y!="function"&&eW(this);var G=a.value,re=a.stack;this.componentDidCatch(G,{componentStack:re!==null?re:""}),typeof y!="function"&&(Ba(n.lanes,bt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Tt(n)||"Unknown"))}),h}function YO(n,a,u){var h=n.pingCache,y;if(h===null?(h=n.pingCache=new cG,y=new Set,h.set(a,y)):(y=h.get(a),y===void 0&&(y=new Set,h.set(a,y))),!y.has(u)){y.add(u);var S=rW.bind(null,n,a,u);Ir&&eg(n,u),a.then(S,S)}}function fG(n,a,u,h){var y=n.updateQueue;if(y===null){var S=new Set;S.add(u),n.updateQueue=S}else y.add(u)}function dG(n,a){var u=n.tag;if((n.mode&Lt)===gt&&(u===g||u===D||u===M)){var h=n.alternate;h?(n.updateQueue=h.updateQueue,n.memoizedState=h.memoizedState,n.lanes=h.lanes):(n.updateQueue=null,n.memoizedState=null)}}function qO(n){var a=n;do{if(a.tag===N&&Qq(a))return a;a=a.return}while(a!==null);return null}function GO(n,a,u,h,y){if((n.mode&Lt)===gt){if(n===a)n.flags|=kr;else{if(n.flags|=_t,u.flags|=hf,u.flags&=~(Qd|Ga),u.tag===d){var S=u.alternate;if(S===null)u.tag=Y;else{var F=Ks(Rn,bt);F.tag=wx,ic(u,F,bt)}}u.lanes=Ot(u.lanes,bt)}return n}return n.flags|=kr,n.lanes=y,n}function hG(n,a,u,h,y){if(u.flags|=Ga,Ir&&eg(n,y),h!==null&&typeof h=="object"&&typeof h.then=="function"){var S=h;dG(u),ma()&&u.mode&Lt&&LA();var F=qO(a);if(F!==null){F.flags&=~tr,GO(F,a,u,n,y),F.mode&Lt&&YO(n,S,y),fG(F,n,S);return}else{if(!Lu(y)){YO(n,S,y),p4();return}var j=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");h=j}}else if(ma()&&u.mode&Lt){LA();var G=qO(a);if(G!==null){(G.flags&kr)===pt&&(G.flags|=tr),GO(G,a,u,n,y),kS(Yf(h,u));return}}h=Yf(h,u),qK(h);var re=a;do{switch(re.tag){case C:{var ie=h;re.flags|=kr;var pe=yr(y);re.lanes=Ot(re.lanes,pe);var de=$O(re,ie,pe);LS(re,de);return}case d:var _e=h,Se=re.type,Te=re.stateNode;if((re.flags&_t)===pt&&(typeof Se.getDerivedStateFromError=="function"||Te!==null&&typeof Te.componentDidCatch=="function"&&!qR(Te))){re.flags|=kr;var tt=yr(y);re.lanes=Ot(re.lanes,tt);var vt=PE(re,_e,tt);LS(re,vt);return}break}re=re.return}while(re!==null)}function pG(){return null}var Um=t.ReactCurrentOwner,el=!1,BE,jm,LE,zE,UE,qf,jE,Jx;BE={},jm={},LE={},zE={},UE={},qf=!1,jE={},Jx={};function Ja(n,a,u,h){n===null?a.child=fO(a,null,u,h):a.child=ah(a,n.child,u,h)}function vG(n,a,u,h){a.child=ah(a,n.child,null,h),a.child=ah(a,null,u,h)}function KO(n,a,u,h,y){if(a.type!==a.elementType){var S=u.propTypes;S&&Ko(S,h,"prop",An(u))}var F=u.render,j=a.ref,G,re;rh(a,y),Ll(a);{if(Um.current=a,Ii(!0),G=ch(n,a,F,h,j,y),re=fh(),a.mode&Zn){gr(!0);try{G=ch(n,a,F,h,j,y),re=fh()}finally{gr(!1)}}Ii(!1)}return _s(),n!==null&&!el?(mO(n,a,y),Ws(n,a,y)):(ma()&&re&&CS(a),a.flags|=Ol,Ja(n,a,G,y),a.child)}function WO(n,a,u,h,y){if(n===null){var S=u.type;if(bW(S)&&u.compare===null&&u.defaultProps===void 0){var F=S;return F=xh(S),a.tag=M,a.type=F,VE(a,S),QO(n,a,F,h,y)}{var j=S.propTypes;j&&Ko(j,h,"prop",An(S))}var G=E4(u.type,null,h,a,a.mode,y);return G.ref=a.ref,G.return=a,a.child=G,G}{var re=u.type,ie=re.propTypes;ie&&Ko(ie,h,"prop",An(re))}var pe=n.child,de=WE(n,y);if(!de){var _e=pe.memoizedProps,Se=u.compare;if(Se=Se!==null?Se:ht,Se(_e,h)&&n.ref===a.ref)return Ws(n,a,y)}a.flags|=Ol;var Te=Zf(pe,h);return Te.ref=a.ref,Te.return=a,a.child=Te,Te}function QO(n,a,u,h,y){if(a.type!==a.elementType){var S=a.elementType;if(S.$$typeof===yt){var F=S,j=F._payload,G=F._init;try{S=G(j)}catch{S=null}var re=S&&S.propTypes;re&&Ko(re,h,"prop",An(S))}}if(n!==null){var ie=n.memoizedProps;if(ht(ie,h)&&n.ref===a.ref&&a.type===n.type)if(el=!1,a.pendingProps=h=ie,WE(n,y))(n.flags&hf)!==pt&&(el=!0);else return a.lanes=n.lanes,Ws(n,a,y)}return IE(n,a,u,h,y)}function ZO(n,a,u){var h=a.pendingProps,y=h.children,S=n!==null?n.memoizedState:null;if(h.mode==="hidden"||Z)if((a.mode&Lt)===gt){var F={baseLanes:Oe,cachePool:null,transitions:null};a.memoizedState=F,db(a,u)}else if(Ba(u,Pa)){var pe={baseLanes:Oe,cachePool:null,transitions:null};a.memoizedState=pe;var de=S!==null?S.baseLanes:u;db(a,de)}else{var j=null,G;if(S!==null){var re=S.baseLanes;G=Ot(re,u)}else G=u;a.lanes=a.childLanes=Pa;var ie={baseLanes:G,cachePool:j,transitions:null};return a.memoizedState=ie,a.updateQueue=null,db(a,G),null}else{var _e;S!==null?(_e=Ot(S.baseLanes,u),a.memoizedState=null):_e=u,db(a,_e)}return Ja(n,a,y,u),a.child}function mG(n,a,u){var h=a.pendingProps;return Ja(n,a,h,u),a.child}function gG(n,a,u){var h=a.pendingProps.children;return Ja(n,a,h,u),a.child}function yG(n,a,u){{a.flags|=At;{var h=a.stateNode;h.effectDuration=0,h.passiveEffectDuration=0}}var y=a.pendingProps,S=y.children;return Ja(n,a,S,u),a.child}function XO(n,a){var u=a.ref;(n===null&&u!==null||n!==null&&n.ref!==u)&&(a.flags|=Aa,a.flags|=wv)}function IE(n,a,u,h,y){if(a.type!==a.elementType){var S=u.propTypes;S&&Ko(S,h,"prop",An(u))}var F;{var j=Z0(a,u,!0);F=X0(a,j)}var G,re;rh(a,y),Ll(a);{if(Um.current=a,Ii(!0),G=ch(n,a,u,h,F,y),re=fh(),a.mode&Zn){gr(!0);try{G=ch(n,a,u,h,F,y),re=fh()}finally{gr(!1)}}Ii(!1)}return _s(),n!==null&&!el?(mO(n,a,y),Ws(n,a,y)):(ma()&&re&&CS(a),a.flags|=Ol,Ja(n,a,G,y),a.child)}function JO(n,a,u,h,y){{switch(PW(a)){case!1:{var S=a.stateNode,F=a.type,j=new F(a.memoizedProps,S.context),G=j.state;S.updater.enqueueSetState(S,G,null);break}case!0:{a.flags|=_t,a.flags|=kr;var re=new Error("Simulated error coming from DevTools"),ie=yr(y);a.lanes=Ot(a.lanes,ie);var pe=PE(a,Yf(re,a),ie);LS(a,pe);break}}if(a.type!==a.elementType){var de=u.propTypes;de&&Ko(de,h,"prop",An(u))}}var _e;Kl(u)?(_e=!0,fx(a)):_e=!1,rh(a,y);var Se=a.stateNode,Te;Se===null?(tb(n,a),oO(a,u,h),WS(a,u,h,y),Te=!0):n===null?Te=$q(a,u,h,y):Te=Yq(n,a,u,h,y);var tt=HE(n,a,u,Te,_e,y);{var vt=a.stateNode;Te&&vt.props!==h&&(qf||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Tt(a)||"a component"),qf=!0)}return tt}function HE(n,a,u,h,y,S){XO(n,a);var F=(a.flags&_t)!==pt;if(!h&&!F)return y&&NA(a,u,!1),Ws(n,a,S);var j=a.stateNode;Um.current=a;var G;if(F&&typeof u.getDerivedStateFromError!="function")G=null,VO();else{Ll(a);{if(Ii(!0),G=j.render(),a.mode&Zn){gr(!0);try{j.render()}finally{gr(!1)}}Ii(!1)}_s()}return a.flags|=Ol,n!==null&&F?vG(n,a,G,S):Ja(n,a,G,S),a.memoizedState=j.state,y&&NA(a,u,!0),a.child}function eR(n){var a=n.stateNode;a.pendingContext?RA(n,a.pendingContext,a.pendingContext!==a.context):a.context&&RA(n,a.context,!1),tE(n,a.containerInfo)}function xG(n,a,u){if(eR(a),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var h=a.pendingProps,y=a.memoizedState,S=y.element;XA(n,a),Dx(a,h,null,u);var F=a.memoizedState;a.stateNode;var j=F.element;if(y.isDehydrated){var G={element:j,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},re=a.updateQueue;if(re.baseState=G,a.memoizedState=G,a.flags&tr){var ie=Yf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return tR(n,a,j,u,ie)}else if(j!==S){var pe=Yf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return tR(n,a,j,u,pe)}else{_q(a);var de=fO(a,null,j,u);a.child=de;for(var _e=de;_e;)_e.flags=_e.flags&~Pn|mi,_e=_e.sibling}}else{if(th(),j===S)return Ws(n,a,u);Ja(n,a,j,u)}return a.child}function tR(n,a,u,h,y){return th(),kS(y),a.flags|=tr,Ja(n,a,u,h),a.child}function bG(n,a,u){hO(a),n===null&&DS(a);var h=a.type,y=a.pendingProps,S=n!==null?n.memoizedProps:null,F=y.children,j=lS(h,y);return j?F=null:S!==null&&lS(h,S)&&(a.flags|=cn),XO(n,a),Ja(n,a,F,u),a.child}function CG(n,a){return n===null&&DS(a),null}function wG(n,a,u,h){tb(n,a);var y=a.pendingProps,S=u,F=S._payload,j=S._init,G=j(F);a.type=G;var re=a.tag=CW(G),ie=Zo(G,y),pe;switch(re){case g:return VE(a,G),a.type=G=xh(G),pe=IE(null,a,G,ie,h),pe;case d:return a.type=G=x4(G),pe=JO(null,a,G,ie,h),pe;case D:return a.type=G=b4(G),pe=KO(null,a,G,ie,h),pe;case z:{if(a.type!==a.elementType){var de=G.propTypes;de&&Ko(de,ie,"prop",An(G))}return pe=WO(null,a,G,Zo(G.type,ie),h),pe}}var _e="";throw G!==null&&typeof G=="object"&&G.$$typeof===yt&&(_e=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+G+". "+("Lazy element type must resolve to a class or function."+_e))}function _G(n,a,u,h,y){tb(n,a),a.tag=d;var S;return Kl(u)?(S=!0,fx(a)):S=!1,rh(a,y),oO(a,u,h),WS(a,u,h,y),HE(null,a,u,!0,S,y)}function SG(n,a,u,h){tb(n,a);var y=a.pendingProps,S;{var F=Z0(a,u,!1);S=X0(a,F)}rh(a,h);var j,G;Ll(a);{if(u.prototype&&typeof u.prototype.render=="function"){var re=An(u)||"Unknown";BE[re]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",re,re),BE[re]=!0)}a.mode&Zn&&Qo.recordLegacyContextWarning(a,null),Ii(!0),Um.current=a,j=ch(null,a,u,y,S,h),G=fh(),Ii(!1)}if(_s(),a.flags|=Ol,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){var ie=An(u)||"Unknown";jm[ie]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),jm[ie]=!0)}if(typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){{var pe=An(u)||"Unknown";jm[pe]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",pe,pe,pe),jm[pe]=!0)}a.tag=d,a.memoizedState=null,a.updateQueue=null;var de=!1;return Kl(u)?(de=!0,fx(a)):de=!1,a.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,BS(a),iO(a,j),WS(a,u,y,h),HE(null,a,u,!0,de,h)}else{if(a.tag=g,a.mode&Zn){gr(!0);try{j=ch(null,a,u,y,S,h),G=fh()}finally{gr(!1)}}return ma()&&G&&CS(a),Ja(null,a,j,h),VE(a,u),a.child}}function VE(n,a){{if(a&&a.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),n.ref!==null){var u="",h=di();h&&(u+=`
149
+ `+(""+re)}catch(de){setTimeout(function(){throw de})}}var cG=typeof WeakMap=="function"?WeakMap:Map;function $O(n,a,u){var h=Ks(Rn,u);h.tag=MS,h.payload={element:null};var y=a.value;return h.callback=function(){nW(y),ME(n,a)},h}function PE(n,a,u){var h=Ks(Rn,u);h.tag=MS;var y=n.type.getDerivedStateFromError;if(typeof y=="function"){var S=a.value;h.payload=function(){return y(S)},h.callback=function(){tF(n),ME(n,a)}}var F=n.stateNode;return F!==null&&typeof F.componentDidCatch=="function"&&(h.callback=function(){tF(n),ME(n,a),typeof y!="function"&&eW(this);var G=a.value,re=a.stack;this.componentDidCatch(G,{componentStack:re!==null?re:""}),typeof y!="function"&&(Ba(n.lanes,bt)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Tt(n)||"Unknown"))}),h}function YO(n,a,u){var h=n.pingCache,y;if(h===null?(h=n.pingCache=new cG,y=new Set,h.set(a,y)):(y=h.get(a),y===void 0&&(y=new Set,h.set(a,y))),!y.has(u)){y.add(u);var S=rW.bind(null,n,a,u);Ir&&eg(n,u),a.then(S,S)}}function fG(n,a,u,h){var y=n.updateQueue;if(y===null){var S=new Set;S.add(u),n.updateQueue=S}else y.add(u)}function dG(n,a){var u=n.tag;if((n.mode&Lt)===gt&&(u===g||u===D||u===M)){var h=n.alternate;h?(n.updateQueue=h.updateQueue,n.memoizedState=h.memoizedState,n.lanes=h.lanes):(n.updateQueue=null,n.memoizedState=null)}}function qO(n){var a=n;do{if(a.tag===N&&Qq(a))return a;a=a.return}while(a!==null);return null}function GO(n,a,u,h,y){if((n.mode&Lt)===gt){if(n===a)n.flags|=kr;else{if(n.flags|=_t,u.flags|=hf,u.flags&=~(Qd|Ga),u.tag===d){var S=u.alternate;if(S===null)u.tag=Y;else{var F=Ks(Rn,bt);F.tag=wx,ic(u,F,bt)}}u.lanes=Ot(u.lanes,bt)}return n}return n.flags|=kr,n.lanes=y,n}function hG(n,a,u,h,y){if(u.flags|=Ga,Ir&&eg(n,y),h!==null&&typeof h=="object"&&typeof h.then=="function"){var S=h;dG(u),ma()&&u.mode&Lt&&LA();var F=qO(a);if(F!==null){F.flags&=~tr,GO(F,a,u,n,y),F.mode&Lt&&YO(n,S,y),fG(F,n,S);return}else{if(!Lu(y)){YO(n,S,y),p4();return}var j=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");h=j}}else if(ma()&&u.mode&Lt){LA();var G=qO(a);if(G!==null){(G.flags&kr)===pt&&(G.flags|=tr),GO(G,a,u,n,y),kS(Yf(h,u));return}}h=Yf(h,u),qK(h);var re=a;do{switch(re.tag){case C:{var ie=h;re.flags|=kr;var pe=yr(y);re.lanes=Ot(re.lanes,pe);var de=$O(re,ie,pe);LS(re,de);return}case d:var _e=h,Se=re.type,Te=re.stateNode;if((re.flags&_t)===pt&&(typeof Se.getDerivedStateFromError=="function"||Te!==null&&typeof Te.componentDidCatch=="function"&&!qR(Te))){re.flags|=kr;var tt=yr(y);re.lanes=Ot(re.lanes,tt);var vt=PE(re,_e,tt);LS(re,vt);return}break}re=re.return}while(re!==null)}function pG(){return null}var Um=t.ReactCurrentOwner,el=!1,BE,jm,LE,zE,UE,qf,jE,Jx;BE={},jm={},LE={},zE={},UE={},qf=!1,jE={},Jx={};function Ja(n,a,u,h){n===null?a.child=fO(a,null,u,h):a.child=ah(a,n.child,u,h)}function vG(n,a,u,h){a.child=ah(a,n.child,null,h),a.child=ah(a,null,u,h)}function KO(n,a,u,h,y){if(a.type!==a.elementType){var S=u.propTypes;S&&Ko(S,h,"prop",An(u))}var F=u.render,j=a.ref,G,re;rh(a,y),Ll(a);{if(Um.current=a,Ii(!0),G=ch(n,a,F,h,j,y),re=fh(),a.mode&Zn){gr(!0);try{G=ch(n,a,F,h,j,y),re=fh()}finally{gr(!1)}}Ii(!1)}return _s(),n!==null&&!el?(mO(n,a,y),Ws(n,a,y)):(ma()&&re&&CS(a),a.flags|=Ol,Ja(n,a,G,y),a.child)}function WO(n,a,u,h,y){if(n===null){var S=u.type;if(bW(S)&&u.compare===null&&u.defaultProps===void 0){var F=S;return F=xh(S),a.tag=M,a.type=F,VE(a,S),QO(n,a,F,h,y)}{var j=S.propTypes;j&&Ko(j,h,"prop",An(S))}var G=E4(u.type,null,h,a,a.mode,y);return G.ref=a.ref,G.return=a,a.child=G,G}{var re=u.type,ie=re.propTypes;ie&&Ko(ie,h,"prop",An(re))}var pe=n.child,de=WE(n,y);if(!de){var _e=pe.memoizedProps,Se=u.compare;if(Se=Se!==null?Se:ht,Se(_e,h)&&n.ref===a.ref)return Ws(n,a,y)}a.flags|=Ol;var Te=Zf(pe,h);return Te.ref=a.ref,Te.return=a,a.child=Te,Te}function QO(n,a,u,h,y){if(a.type!==a.elementType){var S=a.elementType;if(S.$$typeof===yt){var F=S,j=F._payload,G=F._init;try{S=G(j)}catch{S=null}var re=S&&S.propTypes;re&&Ko(re,h,"prop",An(S))}}if(n!==null){var ie=n.memoizedProps;if(ht(ie,h)&&n.ref===a.ref&&a.type===n.type)if(el=!1,a.pendingProps=h=ie,WE(n,y))(n.flags&hf)!==pt&&(el=!0);else return a.lanes=n.lanes,Ws(n,a,y)}return IE(n,a,u,h,y)}function ZO(n,a,u){var h=a.pendingProps,y=h.children,S=n!==null?n.memoizedState:null;if(h.mode==="hidden"||X)if((a.mode&Lt)===gt){var F={baseLanes:Oe,cachePool:null,transitions:null};a.memoizedState=F,db(a,u)}else if(Ba(u,Pa)){var pe={baseLanes:Oe,cachePool:null,transitions:null};a.memoizedState=pe;var de=S!==null?S.baseLanes:u;db(a,de)}else{var j=null,G;if(S!==null){var re=S.baseLanes;G=Ot(re,u)}else G=u;a.lanes=a.childLanes=Pa;var ie={baseLanes:G,cachePool:j,transitions:null};return a.memoizedState=ie,a.updateQueue=null,db(a,G),null}else{var _e;S!==null?(_e=Ot(S.baseLanes,u),a.memoizedState=null):_e=u,db(a,_e)}return Ja(n,a,y,u),a.child}function mG(n,a,u){var h=a.pendingProps;return Ja(n,a,h,u),a.child}function gG(n,a,u){var h=a.pendingProps.children;return Ja(n,a,h,u),a.child}function yG(n,a,u){{a.flags|=At;{var h=a.stateNode;h.effectDuration=0,h.passiveEffectDuration=0}}var y=a.pendingProps,S=y.children;return Ja(n,a,S,u),a.child}function XO(n,a){var u=a.ref;(n===null&&u!==null||n!==null&&n.ref!==u)&&(a.flags|=Aa,a.flags|=wv)}function IE(n,a,u,h,y){if(a.type!==a.elementType){var S=u.propTypes;S&&Ko(S,h,"prop",An(u))}var F;{var j=Z0(a,u,!0);F=X0(a,j)}var G,re;rh(a,y),Ll(a);{if(Um.current=a,Ii(!0),G=ch(n,a,u,h,F,y),re=fh(),a.mode&Zn){gr(!0);try{G=ch(n,a,u,h,F,y),re=fh()}finally{gr(!1)}}Ii(!1)}return _s(),n!==null&&!el?(mO(n,a,y),Ws(n,a,y)):(ma()&&re&&CS(a),a.flags|=Ol,Ja(n,a,G,y),a.child)}function JO(n,a,u,h,y){{switch(PW(a)){case!1:{var S=a.stateNode,F=a.type,j=new F(a.memoizedProps,S.context),G=j.state;S.updater.enqueueSetState(S,G,null);break}case!0:{a.flags|=_t,a.flags|=kr;var re=new Error("Simulated error coming from DevTools"),ie=yr(y);a.lanes=Ot(a.lanes,ie);var pe=PE(a,Yf(re,a),ie);LS(a,pe);break}}if(a.type!==a.elementType){var de=u.propTypes;de&&Ko(de,h,"prop",An(u))}}var _e;Kl(u)?(_e=!0,fx(a)):_e=!1,rh(a,y);var Se=a.stateNode,Te;Se===null?(tb(n,a),oO(a,u,h),WS(a,u,h,y),Te=!0):n===null?Te=$q(a,u,h,y):Te=Yq(n,a,u,h,y);var tt=HE(n,a,u,Te,_e,y);{var vt=a.stateNode;Te&&vt.props!==h&&(qf||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Tt(a)||"a component"),qf=!0)}return tt}function HE(n,a,u,h,y,S){XO(n,a);var F=(a.flags&_t)!==pt;if(!h&&!F)return y&&NA(a,u,!1),Ws(n,a,S);var j=a.stateNode;Um.current=a;var G;if(F&&typeof u.getDerivedStateFromError!="function")G=null,VO();else{Ll(a);{if(Ii(!0),G=j.render(),a.mode&Zn){gr(!0);try{j.render()}finally{gr(!1)}}Ii(!1)}_s()}return a.flags|=Ol,n!==null&&F?vG(n,a,G,S):Ja(n,a,G,S),a.memoizedState=j.state,y&&NA(a,u,!0),a.child}function eR(n){var a=n.stateNode;a.pendingContext?RA(n,a.pendingContext,a.pendingContext!==a.context):a.context&&RA(n,a.context,!1),tE(n,a.containerInfo)}function xG(n,a,u){if(eR(a),n===null)throw new Error("Should have a current fiber. This is a bug in React.");var h=a.pendingProps,y=a.memoizedState,S=y.element;XA(n,a),Dx(a,h,null,u);var F=a.memoizedState;a.stateNode;var j=F.element;if(y.isDehydrated){var G={element:j,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},re=a.updateQueue;if(re.baseState=G,a.memoizedState=G,a.flags&tr){var ie=Yf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return tR(n,a,j,u,ie)}else if(j!==S){var pe=Yf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return tR(n,a,j,u,pe)}else{_q(a);var de=fO(a,null,j,u);a.child=de;for(var _e=de;_e;)_e.flags=_e.flags&~Pn|mi,_e=_e.sibling}}else{if(th(),j===S)return Ws(n,a,u);Ja(n,a,j,u)}return a.child}function tR(n,a,u,h,y){return th(),kS(y),a.flags|=tr,Ja(n,a,u,h),a.child}function bG(n,a,u){hO(a),n===null&&DS(a);var h=a.type,y=a.pendingProps,S=n!==null?n.memoizedProps:null,F=y.children,j=lS(h,y);return j?F=null:S!==null&&lS(h,S)&&(a.flags|=cn),XO(n,a),Ja(n,a,F,u),a.child}function CG(n,a){return n===null&&DS(a),null}function wG(n,a,u,h){tb(n,a);var y=a.pendingProps,S=u,F=S._payload,j=S._init,G=j(F);a.type=G;var re=a.tag=CW(G),ie=Zo(G,y),pe;switch(re){case g:return VE(a,G),a.type=G=xh(G),pe=IE(null,a,G,ie,h),pe;case d:return a.type=G=x4(G),pe=JO(null,a,G,ie,h),pe;case D:return a.type=G=b4(G),pe=KO(null,a,G,ie,h),pe;case z:{if(a.type!==a.elementType){var de=G.propTypes;de&&Ko(de,ie,"prop",An(G))}return pe=WO(null,a,G,Zo(G.type,ie),h),pe}}var _e="";throw G!==null&&typeof G=="object"&&G.$$typeof===yt&&(_e=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+G+". "+("Lazy element type must resolve to a class or function."+_e))}function _G(n,a,u,h,y){tb(n,a),a.tag=d;var S;return Kl(u)?(S=!0,fx(a)):S=!1,rh(a,y),oO(a,u,h),WS(a,u,h,y),HE(null,a,u,!0,S,y)}function SG(n,a,u,h){tb(n,a);var y=a.pendingProps,S;{var F=Z0(a,u,!1);S=X0(a,F)}rh(a,h);var j,G;Ll(a);{if(u.prototype&&typeof u.prototype.render=="function"){var re=An(u)||"Unknown";BE[re]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",re,re),BE[re]=!0)}a.mode&Zn&&Qo.recordLegacyContextWarning(a,null),Ii(!0),Um.current=a,j=ch(null,a,u,y,S,h),G=fh(),Ii(!1)}if(_s(),a.flags|=Ol,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){var ie=An(u)||"Unknown";jm[ie]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),jm[ie]=!0)}if(typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0){{var pe=An(u)||"Unknown";jm[pe]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",pe,pe,pe),jm[pe]=!0)}a.tag=d,a.memoizedState=null,a.updateQueue=null;var de=!1;return Kl(u)?(de=!0,fx(a)):de=!1,a.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,BS(a),iO(a,j),WS(a,u,y,h),HE(null,a,u,!0,de,h)}else{if(a.tag=g,a.mode&Zn){gr(!0);try{j=ch(null,a,u,y,S,h),G=fh()}finally{gr(!1)}}return ma()&&G&&CS(a),Ja(null,a,j,h),VE(a,u),a.child}}function VE(n,a){{if(a&&a.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),n.ref!==null){var u="",h=di();h&&(u+=`
150
150
 
151
- Check the render method of \``+h+"`.");var y=h||"",S=n._debugSource;S&&(y=S.fileName+":"+S.lineNumber),UE[y]||(UE[y]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",u))}if(typeof a.getDerivedStateFromProps=="function"){var F=An(a)||"Unknown";zE[F]||(c("%s: Function components do not support getDerivedStateFromProps.",F),zE[F]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var j=An(a)||"Unknown";LE[j]||(c("%s: Function components do not support contextType.",j),LE[j]=!0)}}}var $E={dehydrated:null,treeContext:null,retryLane:Vt};function YE(n){return{baseLanes:n,cachePool:pG(),transitions:null}}function EG(n,a){var u=null;return{baseLanes:Ot(n.baseLanes,a),cachePool:u,transitions:n.transitions}}function DG(n,a,u,h){if(a!==null){var y=a.memoizedState;if(y===null)return!1}return aE(n,Rm)}function kG(n,a){return zu(n.childLanes,a)}function nR(n,a,u){var h=a.pendingProps;BW(a)&&(a.flags|=_t);var y=Xo.current,S=!1,F=(a.flags&_t)!==pt;if(F||DG(y,n)?(S=!0,a.flags&=~_t):(n===null||n.memoizedState!==null)&&(y=Wq(y,vO)),y=oh(y),lc(a,y),n===null){DS(a);var j=a.memoizedState;if(j!==null){var G=j.dehydrated;if(G!==null)return FG(a,G)}var re=h.children,ie=h.fallback;if(S){var pe=TG(a,re,ie,u),de=a.child;return de.memoizedState=YE(u),a.memoizedState=$E,pe}else return qE(a,re)}else{var _e=n.memoizedState;if(_e!==null){var Se=_e.dehydrated;if(Se!==null)return NG(n,a,F,h,Se,_e,u)}if(S){var Te=h.fallback,tt=h.children,vt=OG(n,a,tt,Te,u),ft=a.child,Yt=n.child.memoizedState;return ft.memoizedState=Yt===null?YE(u):EG(Yt,u),ft.childLanes=kG(n,u),a.memoizedState=$E,vt}else{var jt=h.children,xe=AG(n,a,jt,u);return a.memoizedState=null,xe}}}function qE(n,a,u){var h=n.mode,y={mode:"visible",children:a},S=GE(y,h);return S.return=n,n.child=S,S}function TG(n,a,u,h){var y=n.mode,S=n.child,F={mode:"hidden",children:a},j,G;return(y&Lt)===gt&&S!==null?(j=S,j.childLanes=Oe,j.pendingProps=F,n.mode&xt&&(j.actualDuration=0,j.actualStartTime=-1,j.selfBaseDuration=0,j.treeBaseDuration=0),G=vc(u,y,h,null)):(j=GE(F,y),G=vc(u,y,h,null)),j.return=n,G.return=n,j.sibling=G,n.child=j,G}function GE(n,a,u){return rF(n,a,Oe,null)}function rR(n,a){return Zf(n,a)}function AG(n,a,u,h){var y=n.child,S=y.sibling,F=rR(y,{mode:"visible",children:u});if((a.mode&Lt)===gt&&(F.lanes=h),F.return=a,F.sibling=null,S!==null){var j=a.deletions;j===null?(a.deletions=[S],a.flags|=ln):j.push(S)}return a.child=F,F}function OG(n,a,u,h,y){var S=a.mode,F=n.child,j=F.sibling,G={mode:"hidden",children:u},re;if((S&Lt)===gt&&a.child!==F){var ie=a.child;re=ie,re.childLanes=Oe,re.pendingProps=G,a.mode&xt&&(re.actualDuration=0,re.actualStartTime=-1,re.selfBaseDuration=F.selfBaseDuration,re.treeBaseDuration=F.treeBaseDuration),a.deletions=null}else re=rR(F,G),re.subtreeFlags=F.subtreeFlags&jr;var pe;return j!==null?pe=Zf(j,h):(pe=vc(h,S,y,null),pe.flags|=Pn),pe.return=a,re.return=a,re.sibling=pe,a.child=re,pe}function eb(n,a,u,h){h!==null&&kS(h),ah(a,n.child,null,u);var y=a.pendingProps,S=y.children,F=qE(a,S);return F.flags|=Pn,a.memoizedState=null,F}function RG(n,a,u,h,y){var S=a.mode,F={mode:"visible",children:u},j=GE(F,S),G=vc(h,S,y,null);return G.flags|=Pn,j.return=a,G.return=a,j.sibling=G,a.child=j,(a.mode&Lt)!==gt&&ah(a,n.child,null,y),G}function FG(n,a,u){return(n.mode&Lt)===gt?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),n.lanes=bt):fS(a)?n.lanes=Ds:n.lanes=Pa,null}function NG(n,a,u,h,y,S,F){if(u)if(a.flags&tr){a.flags&=~tr;var xe=NE(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return eb(n,a,F,xe)}else{if(a.memoizedState!==null)return a.child=n.child,a.flags|=_t,null;var Ae=h.children,be=h.fallback,$e=RG(n,a,Ae,be,F),nt=a.child;return nt.memoizedState=YE(F),a.memoizedState=$E,$e}else{if(Cq(),(a.mode&Lt)===gt)return eb(n,a,F,null);if(fS(y)){var j,G,re;{var ie=zY(y);j=ie.digest,G=ie.message,re=ie.stack}var pe;G?pe=new Error(G):pe=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var de=NE(pe,j,re);return eb(n,a,F,de)}var _e=Ba(F,n.childLanes);if(el||_e){var Se=fb();if(Se!==null){var Te=F_(Se,F);if(Te!==Vt&&Te!==S.retryLane){S.retryLane=Te;var tt=Rn;Di(n,Te),Qr(Se,n,Te,tt)}}p4();var vt=NE(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return eb(n,a,F,vt)}else if(EA(y)){a.flags|=_t,a.child=n.child;var ft=aW.bind(null,n);return UY(y,ft),null}else{Sq(a,y,S.treeContext);var Yt=h.children,jt=qE(a,Yt);return jt.flags|=mi,jt}}}function aR(n,a,u){n.lanes=Ot(n.lanes,a);var h=n.alternate;h!==null&&(h.lanes=Ot(h.lanes,a)),FS(n.return,a,u)}function MG(n,a,u){for(var h=a;h!==null;){if(h.tag===N){var y=h.memoizedState;y!==null&&aR(h,u,n)}else if(h.tag===P)aR(h,u,n);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===n)return;for(;h.sibling===null;){if(h.return===null||h.return===n)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function PG(n){for(var a=n,u=null;a!==null;){var h=a.alternate;h!==null&&Nx(h)===null&&(u=a),a=a.sibling}return u}function BG(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!jE[n])if(jE[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function LG(n,a){n!==void 0&&!Jx[n]&&(n!=="collapsed"&&n!=="hidden"?(Jx[n]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):a!=="forwards"&&a!=="backwards"&&(Jx[n]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function iR(n,a){{var u=Er(n),h=!u&&typeof Ro(n)=="function";if(u||h){var y=u?"array":"iterable";return c("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",y,a,y),!1}}return!0}function zG(n,a){if((a==="forwards"||a==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Er(n)){for(var u=0;u<n.length;u++)if(!iR(n[u],u))return}else{var h=Ro(n);if(typeof h=="function"){var y=h.call(n);if(y)for(var S=y.next(),F=0;!S.done;S=y.next()){if(!iR(S.value,F))return;F++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function KE(n,a,u,h,y){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:y}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=u,S.tailMode=y)}function oR(n,a,u){var h=a.pendingProps,y=h.revealOrder,S=h.tail,F=h.children;BG(y),LG(S,y),zG(F,y),Ja(n,a,F,u);var j=Xo.current,G=aE(j,Rm);if(G)j=iE(j,Rm),a.flags|=_t;else{var re=n!==null&&(n.flags&_t)!==pt;re&&MG(a,a.child,u),j=oh(j)}if(lc(a,j),(a.mode&Lt)===gt)a.memoizedState=null;else switch(y){case"forwards":{var ie=PG(a.child),pe;ie===null?(pe=a.child,a.child=null):(pe=ie.sibling,ie.sibling=null),KE(a,!1,pe,ie,S);break}case"backwards":{var de=null,_e=a.child;for(a.child=null;_e!==null;){var Se=_e.alternate;if(Se!==null&&Nx(Se)===null){a.child=_e;break}var Te=_e.sibling;_e.sibling=de,de=_e,_e=Te}KE(a,!0,de,null,S);break}case"together":{KE(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function UG(n,a,u){tE(a,a.stateNode.containerInfo);var h=a.pendingProps;return n===null?a.child=ah(a,null,h,u):Ja(n,a,h,u),a.child}var lR=!1;function jG(n,a,u){var h=a.type,y=h._context,S=a.pendingProps,F=a.memoizedProps,j=S.value;{"value"in S||lR||(lR=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var G=a.type.propTypes;G&&Ko(G,S,"prop","Context.Provider")}if(KA(a,y,j),F!==null){var re=F.value;if(ot(re,j)){if(F.children===S.children&&!ux())return Ws(n,a,u)}else Mq(a,y,u)}var ie=S.children;return Ja(n,a,ie,u),a.child}var sR=!1;function IG(n,a,u){var h=a.type;h._context===void 0?h!==h.Consumer&&(sR||(sR=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):h=h._context;var y=a.pendingProps,S=y.children;typeof S!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),rh(a,u);var F=Fr(h);Ll(a);var j;return Um.current=a,Ii(!0),j=S(F),Ii(!1),_s(),a.flags|=Ol,Ja(n,a,j,u),a.child}function Im(){el=!0}function tb(n,a){(a.mode&Lt)===gt&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=Pn)}function Ws(n,a,u){return n!==null&&(a.dependencies=n.dependencies),VO(),Jm(a.lanes),Ba(u,a.childLanes)?(qq(n,a),a.child):null}function HG(n,a,u){{var h=a.return;if(h===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,a===h.child)h.child=u;else{var y=h.child;if(y===null)throw new Error("Expected parent to have a child.");for(;y.sibling!==a;)if(y=y.sibling,y===null)throw new Error("Expected to find the previous sibling.");y.sibling=u}var S=h.deletions;return S===null?(h.deletions=[n],h.flags|=ln):S.push(n),u.flags|=Pn,u}}function WE(n,a){var u=n.lanes;return!!Ba(u,a)}function VG(n,a,u){switch(a.tag){case C:eR(a),a.stateNode,th();break;case x:hO(a);break;case d:{var h=a.type;Kl(h)&&fx(a);break}case b:tE(a,a.stateNode.containerInfo);break;case T:{var y=a.memoizedProps.value,S=a.type._context;KA(a,S,y);break}case R:{var F=Ba(u,a.childLanes);F&&(a.flags|=At);{var j=a.stateNode;j.effectDuration=0,j.passiveEffectDuration=0}}break;case N:{var G=a.memoizedState;if(G!==null){if(G.dehydrated!==null)return lc(a,oh(Xo.current)),a.flags|=_t,null;var re=a.child,ie=re.childLanes;if(Ba(u,ie))return nR(n,a,u);lc(a,oh(Xo.current));var pe=Ws(n,a,u);return pe!==null?pe.sibling:null}else lc(a,oh(Xo.current));break}case P:{var de=(n.flags&_t)!==pt,_e=Ba(u,a.childLanes);if(de){if(_e)return oR(n,a,u);a.flags|=_t}var Se=a.memoizedState;if(Se!==null&&(Se.rendering=null,Se.tail=null,Se.lastEffect=null),lc(a,Xo.current),_e)break;return null}case H:case V:return a.lanes=Oe,ZO(n,a,u)}return Ws(n,a,u)}function uR(n,a,u){if(a._debugNeedsRemount&&n!==null)return HG(n,a,E4(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(n!==null){var h=n.memoizedProps,y=a.pendingProps;if(h!==y||ux()||a.type!==n.type)el=!0;else{var S=WE(n,u);if(!S&&(a.flags&_t)===pt)return el=!1,VG(n,a,u);(n.flags&hf)!==pt?el=!0:el=!1}}else if(el=!1,ma()&&vq(a)){var F=a.index,j=mq();BA(a,j,F)}switch(a.lanes=Oe,a.tag){case m:return SG(n,a,a.type,u);case I:{var G=a.elementType;return wG(n,a,G,u)}case g:{var re=a.type,ie=a.pendingProps,pe=a.elementType===re?ie:Zo(re,ie);return IE(n,a,re,pe,u)}case d:{var de=a.type,_e=a.pendingProps,Se=a.elementType===de?_e:Zo(de,_e);return JO(n,a,de,Se,u)}case C:return xG(n,a,u);case x:return bG(n,a,u);case _:return CG(n,a);case N:return nR(n,a,u);case b:return UG(n,a,u);case D:{var Te=a.type,tt=a.pendingProps,vt=a.elementType===Te?tt:Zo(Te,tt);return KO(n,a,Te,vt,u)}case k:return mG(n,a,u);case E:return gG(n,a,u);case R:return yG(n,a,u);case T:return jG(n,a,u);case A:return IG(n,a,u);case z:{var ft=a.type,Yt=a.pendingProps,jt=Zo(ft,Yt);if(a.type!==a.elementType){var xe=ft.propTypes;xe&&Ko(xe,jt,"prop",An(ft))}return jt=Zo(ft.type,jt),WO(n,a,ft,jt,u)}case M:return QO(n,a,a.type,a.pendingProps,u);case Y:{var Ae=a.type,be=a.pendingProps,$e=a.elementType===Ae?be:Zo(Ae,be);return _G(n,a,Ae,$e,u)}case P:return oR(n,a,u);case U:break;case H:return ZO(n,a,u)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function dh(n){n.flags|=At}function cR(n){n.flags|=Aa,n.flags|=wv}var fR,QE,dR,hR;fR=function(n,a,u,h){for(var y=a.child;y!==null;){if(y.tag===x||y.tag===_)dY(n,y.stateNode);else if(y.tag!==b){if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===a)return;for(;y.sibling===null;){if(y.return===null||y.return===a)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},QE=function(n,a){},dR=function(n,a,u,h,y){var S=n.memoizedProps;if(S!==h){var F=a.stateNode,j=nE(),G=pY(F,u,S,h,y,j);a.updateQueue=G,G&&dh(a)}},hR=function(n,a,u,h){u!==h&&dh(a)};function Hm(n,a){if(!ma())switch(n.tailMode){case"hidden":{for(var u=n.tail,h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?n.tail=null:h.sibling=null;break}case"collapsed":{for(var y=n.tail,S=null;y!==null;)y.alternate!==null&&(S=y),y=y.sibling;S===null?!a&&n.tail!==null?n.tail.sibling=null:n.tail=null:S.sibling=null;break}}}function ya(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=Oe,h=pt;if(a){if((n.mode&xt)!==gt){for(var G=n.selfBaseDuration,re=n.child;re!==null;)u=Ot(u,Ot(re.lanes,re.childLanes)),h|=re.subtreeFlags&jr,h|=re.flags&jr,G+=re.treeBaseDuration,re=re.sibling;n.treeBaseDuration=G}else for(var ie=n.child;ie!==null;)u=Ot(u,Ot(ie.lanes,ie.childLanes)),h|=ie.subtreeFlags&jr,h|=ie.flags&jr,ie.return=n,ie=ie.sibling;n.subtreeFlags|=h}else{if((n.mode&xt)!==gt){for(var y=n.actualDuration,S=n.selfBaseDuration,F=n.child;F!==null;)u=Ot(u,Ot(F.lanes,F.childLanes)),h|=F.subtreeFlags,h|=F.flags,y+=F.actualDuration,S+=F.treeBaseDuration,F=F.sibling;n.actualDuration=y,n.treeBaseDuration=S}else for(var j=n.child;j!==null;)u=Ot(u,Ot(j.lanes,j.childLanes)),h|=j.subtreeFlags,h|=j.flags,j.return=n,j=j.sibling;n.subtreeFlags|=h}return n.childLanes=u,a}function $G(n,a,u){if(Aq()&&(a.mode&Lt)!==gt&&(a.flags&_t)===pt)return VA(a),th(),a.flags|=tr|Ga|kr,!1;var h=mx(a);if(u!==null&&u.dehydrated!==null)if(n===null){if(!h)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(kq(a),ya(a),(a.mode&xt)!==gt){var y=u!==null;if(y){var S=a.child;S!==null&&(a.treeBaseDuration-=S.treeBaseDuration)}}return!1}else{if(th(),(a.flags&_t)===pt&&(a.memoizedState=null),a.flags|=At,ya(a),(a.mode&xt)!==gt){var F=u!==null;if(F){var j=a.child;j!==null&&(a.treeBaseDuration-=j.treeBaseDuration)}}return!1}else return $A(),!0}function pR(n,a,u){var h=a.pendingProps;switch(wS(a),a.tag){case m:case I:case M:case g:case D:case k:case E:case R:case A:case z:return ya(a),null;case d:{var y=a.type;return Kl(y)&&cx(a),ya(a),null}case C:{var S=a.stateNode;if(ih(a),yS(a),lE(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),n===null||n.child===null){var F=mx(a);if(F)dh(a);else if(n!==null){var j=n.memoizedState;(!j.isDehydrated||(a.flags&tr)!==pt)&&(a.flags|=vi,$A())}}return QE(n,a),ya(a),null}case x:{rE(a);var G=dO(),re=a.type;if(n!==null&&a.stateNode!=null)dR(n,a,re,h,G),n.ref!==a.ref&&cR(a);else{if(!h){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ya(a),null}var ie=nE(),pe=mx(a);if(pe)Eq(a,G,ie)&&dh(a);else{var de=fY(re,h,G,ie,a);fR(de,a,!1,!1),a.stateNode=de,hY(de,re,h,G)&&dh(a)}a.ref!==null&&cR(a)}return ya(a),null}case _:{var _e=h;if(n&&a.stateNode!=null){var Se=n.memoizedProps;hR(n,a,Se,_e)}else{if(typeof _e!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Te=dO(),tt=nE(),vt=mx(a);vt?Dq(a)&&dh(a):a.stateNode=vY(_e,Te,tt,a)}return ya(a),null}case N:{lh(a);var ft=a.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var Yt=$G(n,a,ft);if(!Yt)return a.flags&kr?a:null}if((a.flags&_t)!==pt)return a.lanes=u,(a.mode&xt)!==gt&&FE(a),a;var jt=ft!==null,xe=n!==null&&n.memoizedState!==null;if(jt!==xe&&jt){var Ae=a.child;if(Ae.flags|=Rl,(a.mode&Lt)!==gt){var be=n===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!$);be||aE(Xo.current,vO)?YK():p4()}}var $e=a.updateQueue;if($e!==null&&(a.flags|=At),ya(a),(a.mode&xt)!==gt&&jt){var nt=a.child;nt!==null&&(a.treeBaseDuration-=nt.treeBaseDuration)}return null}case b:return ih(a),QE(n,a),n===null&&sq(a.stateNode.containerInfo),ya(a),null;case T:var Ze=a.type._context;return RS(Ze,a),ya(a),null;case Y:{var Ct=a.type;return Kl(Ct)&&cx(a),ya(a),null}case P:{lh(a);var kt=a.memoizedState;if(kt===null)return ya(a),null;var Dn=(a.flags&_t)!==pt,nn=kt.rendering;if(nn===null)if(Dn)Hm(kt,!1);else{var wr=GK()&&(n===null||(n.flags&_t)===pt);if(!wr)for(var rn=a.child;rn!==null;){var pr=Nx(rn);if(pr!==null){Dn=!0,a.flags|=_t,Hm(kt,!1);var ja=pr.updateQueue;return ja!==null&&(a.updateQueue=ja,a.flags|=At),a.subtreeFlags=pt,Gq(a,u),lc(a,iE(Xo.current,Rm)),a.child}rn=rn.sibling}kt.tail!==null&&Qn()>PR()&&(a.flags|=_t,Dn=!0,Hm(kt,!1),a.lanes=Pv)}else{if(!Dn){var _a=Nx(nn);if(_a!==null){a.flags|=_t,Dn=!0;var Wi=_a.updateQueue;if(Wi!==null&&(a.updateQueue=Wi,a.flags|=At),Hm(kt,!0),kt.tail===null&&kt.tailMode==="hidden"&&!nn.alternate&&!ma())return ya(a),null}else Qn()*2-kt.renderingStartTime>PR()&&u!==Pa&&(a.flags|=_t,Dn=!0,Hm(kt,!1),a.lanes=Pv)}if(kt.isBackwards)nn.sibling=a.child,a.child=nn;else{var ni=kt.last;ni!==null?ni.sibling=nn:a.child=nn,kt.last=nn}}if(kt.tail!==null){var ri=kt.tail;kt.rendering=ri,kt.tail=ri.sibling,kt.renderingStartTime=Qn(),ri.sibling=null;var Ia=Xo.current;return Dn?Ia=iE(Ia,Rm):Ia=oh(Ia),lc(a,Ia),ri}return ya(a),null}case U:break;case H:case V:{h4(a);var eu=a.memoizedState,bh=eu!==null;if(n!==null){var ag=n.memoizedState,ns=ag!==null;ns!==bh&&!Z&&(a.flags|=Rl)}return!bh||(a.mode&Lt)===gt?ya(a):Ba(ts,Pa)&&(ya(a),a.subtreeFlags&(Pn|At)&&(a.flags|=Rl)),null}case K:return null;case ee:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function YG(n,a,u){switch(wS(a),a.tag){case d:{var h=a.type;Kl(h)&&cx(a);var y=a.flags;return y&kr?(a.flags=y&~kr|_t,(a.mode&xt)!==gt&&FE(a),a):null}case C:{a.stateNode,ih(a),yS(a),lE();var S=a.flags;return(S&kr)!==pt&&(S&_t)===pt?(a.flags=S&~kr|_t,a):null}case x:return rE(a),null;case N:{lh(a);var F=a.memoizedState;if(F!==null&&F.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");th()}var j=a.flags;return j&kr?(a.flags=j&~kr|_t,(a.mode&xt)!==gt&&FE(a),a):null}case P:return lh(a),null;case b:return ih(a),null;case T:var G=a.type._context;return RS(G,a),null;case H:case V:return h4(a),null;case K:return null;default:return null}}function vR(n,a,u){switch(wS(a),a.tag){case d:{var h=a.type.childContextTypes;h!=null&&cx(a);break}case C:{a.stateNode,ih(a),yS(a),lE();break}case x:{rE(a);break}case b:ih(a);break;case N:lh(a);break;case P:lh(a);break;case T:var y=a.type._context;RS(y,a);break;case H:case V:h4(a);break}}var mR=null;mR=new Set;var nb=!1,xa=!1,qG=typeof WeakSet=="function"?WeakSet:Set,lt=null,hh=null,ph=null;function GG(n){Cs(null,function(){throw n}),bv()}var KG=function(n,a){if(a.props=n.memoizedProps,a.state=n.memoizedState,n.mode&xt)try{Jl(),a.componentWillUnmount()}finally{Xl(n)}else a.componentWillUnmount()};function gR(n,a){try{cc($r,n)}catch(u){Un(n,a,u)}}function ZE(n,a,u){try{KG(n,u)}catch(h){Un(n,a,h)}}function WG(n,a,u){try{u.componentDidMount()}catch(h){Un(n,a,h)}}function yR(n,a){try{bR(n)}catch(u){Un(n,a,u)}}function vh(n,a){var u=n.ref;if(u!==null)if(typeof u=="function"){var h;try{if(ve&&we&&n.mode&xt)try{Jl(),h=u(null)}finally{Xl(n)}else h=u(null)}catch(y){Un(n,a,y)}typeof h=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Tt(n))}else u.current=null}function rb(n,a,u){try{u()}catch(h){Un(n,a,h)}}var xR=!1;function QG(n,a){uY(n.containerInfo),lt=a,ZG();var u=xR;return xR=!1,u}function ZG(){for(;lt!==null;){var n=lt,a=n.child;(n.subtreeFlags&Ou)!==pt&&a!==null?(a.return=n,lt=a):XG()}}function XG(){for(;lt!==null;){var n=lt;Sn(n);try{JG(n)}catch(u){Un(n,n.return,u)}mr();var a=n.sibling;if(a!==null){a.return=n.return,lt=a;return}lt=n.return}}function JG(n){var a=n.alternate,u=n.flags;if((u&vi)!==pt){switch(Sn(n),n.tag){case g:case D:case M:break;case d:{if(a!==null){var h=a.memoizedProps,y=a.memoizedState,S=n.stateNode;n.type===n.elementType&&!qf&&(S.props!==n.memoizedProps&&c("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Tt(n)||"instance"),S.state!==n.memoizedState&&c("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Tt(n)||"instance"));var F=S.getSnapshotBeforeUpdate(n.elementType===n.type?h:Zo(n.type,h),y);{var j=mR;F===void 0&&!j.has(n.type)&&(j.add(n.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Tt(n)))}S.__reactInternalSnapshotBeforeUpdate=F}break}case C:{{var G=n.stateNode;MY(G.containerInfo)}break}case x:case _:case b:case Y:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}mr()}}function tl(n,a,u){var h=a.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var S=y.next,F=S;do{if((F.tag&n)===n){var j=F.destroy;F.destroy=void 0,j!==void 0&&((n&ga)!==ki?a0(a):(n&$r)!==ki&&i0(a),(n&Wl)!==ki&&tg(!0),rb(a,u,j),(n&Wl)!==ki&&tg(!1),(n&ga)!==ki?v1():(n&$r)!==ki&&Ru())}F=F.next}while(F!==S)}}function cc(n,a){var u=a.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var y=h.next,S=y;do{if((S.tag&n)===n){(n&ga)!==ki?p1(a):(n&$r)!==ki&&m1(a);var F=S.create;(n&Wl)!==ki&&tg(!0),S.destroy=F(),(n&Wl)!==ki&&tg(!1),(n&ga)!==ki?Fv():(n&$r)!==ki&&g1();{var j=S.destroy;if(j!==void 0&&typeof j!="function"){var G=void 0;(S.tag&$r)!==pt?G="useLayoutEffect":(S.tag&Wl)!==pt?G="useInsertionEffect":G="useEffect";var re=void 0;j===null?re=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof j.then=="function"?re=`
151
+ Check the render method of \``+h+"`.");var y=h||"",S=n._debugSource;S&&(y=S.fileName+":"+S.lineNumber),UE[y]||(UE[y]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",u))}if(typeof a.getDerivedStateFromProps=="function"){var F=An(a)||"Unknown";zE[F]||(c("%s: Function components do not support getDerivedStateFromProps.",F),zE[F]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var j=An(a)||"Unknown";LE[j]||(c("%s: Function components do not support contextType.",j),LE[j]=!0)}}}var $E={dehydrated:null,treeContext:null,retryLane:Vt};function YE(n){return{baseLanes:n,cachePool:pG(),transitions:null}}function EG(n,a){var u=null;return{baseLanes:Ot(n.baseLanes,a),cachePool:u,transitions:n.transitions}}function DG(n,a,u,h){if(a!==null){var y=a.memoizedState;if(y===null)return!1}return aE(n,Rm)}function kG(n,a){return zu(n.childLanes,a)}function nR(n,a,u){var h=a.pendingProps;BW(a)&&(a.flags|=_t);var y=Xo.current,S=!1,F=(a.flags&_t)!==pt;if(F||DG(y,n)?(S=!0,a.flags&=~_t):(n===null||n.memoizedState!==null)&&(y=Wq(y,vO)),y=oh(y),lc(a,y),n===null){DS(a);var j=a.memoizedState;if(j!==null){var G=j.dehydrated;if(G!==null)return FG(a,G)}var re=h.children,ie=h.fallback;if(S){var pe=TG(a,re,ie,u),de=a.child;return de.memoizedState=YE(u),a.memoizedState=$E,pe}else return qE(a,re)}else{var _e=n.memoizedState;if(_e!==null){var Se=_e.dehydrated;if(Se!==null)return NG(n,a,F,h,Se,_e,u)}if(S){var Te=h.fallback,tt=h.children,vt=OG(n,a,tt,Te,u),ft=a.child,Yt=n.child.memoizedState;return ft.memoizedState=Yt===null?YE(u):EG(Yt,u),ft.childLanes=kG(n,u),a.memoizedState=$E,vt}else{var jt=h.children,xe=AG(n,a,jt,u);return a.memoizedState=null,xe}}}function qE(n,a,u){var h=n.mode,y={mode:"visible",children:a},S=GE(y,h);return S.return=n,n.child=S,S}function TG(n,a,u,h){var y=n.mode,S=n.child,F={mode:"hidden",children:a},j,G;return(y&Lt)===gt&&S!==null?(j=S,j.childLanes=Oe,j.pendingProps=F,n.mode&xt&&(j.actualDuration=0,j.actualStartTime=-1,j.selfBaseDuration=0,j.treeBaseDuration=0),G=vc(u,y,h,null)):(j=GE(F,y),G=vc(u,y,h,null)),j.return=n,G.return=n,j.sibling=G,n.child=j,G}function GE(n,a,u){return rF(n,a,Oe,null)}function rR(n,a){return Zf(n,a)}function AG(n,a,u,h){var y=n.child,S=y.sibling,F=rR(y,{mode:"visible",children:u});if((a.mode&Lt)===gt&&(F.lanes=h),F.return=a,F.sibling=null,S!==null){var j=a.deletions;j===null?(a.deletions=[S],a.flags|=ln):j.push(S)}return a.child=F,F}function OG(n,a,u,h,y){var S=a.mode,F=n.child,j=F.sibling,G={mode:"hidden",children:u},re;if((S&Lt)===gt&&a.child!==F){var ie=a.child;re=ie,re.childLanes=Oe,re.pendingProps=G,a.mode&xt&&(re.actualDuration=0,re.actualStartTime=-1,re.selfBaseDuration=F.selfBaseDuration,re.treeBaseDuration=F.treeBaseDuration),a.deletions=null}else re=rR(F,G),re.subtreeFlags=F.subtreeFlags&jr;var pe;return j!==null?pe=Zf(j,h):(pe=vc(h,S,y,null),pe.flags|=Pn),pe.return=a,re.return=a,re.sibling=pe,a.child=re,pe}function eb(n,a,u,h){h!==null&&kS(h),ah(a,n.child,null,u);var y=a.pendingProps,S=y.children,F=qE(a,S);return F.flags|=Pn,a.memoizedState=null,F}function RG(n,a,u,h,y){var S=a.mode,F={mode:"visible",children:u},j=GE(F,S),G=vc(h,S,y,null);return G.flags|=Pn,j.return=a,G.return=a,j.sibling=G,a.child=j,(a.mode&Lt)!==gt&&ah(a,n.child,null,y),G}function FG(n,a,u){return(n.mode&Lt)===gt?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),n.lanes=bt):fS(a)?n.lanes=Ds:n.lanes=Pa,null}function NG(n,a,u,h,y,S,F){if(u)if(a.flags&tr){a.flags&=~tr;var xe=NE(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return eb(n,a,F,xe)}else{if(a.memoizedState!==null)return a.child=n.child,a.flags|=_t,null;var Ae=h.children,be=h.fallback,$e=RG(n,a,Ae,be,F),nt=a.child;return nt.memoizedState=YE(F),a.memoizedState=$E,$e}else{if(Cq(),(a.mode&Lt)===gt)return eb(n,a,F,null);if(fS(y)){var j,G,re;{var ie=zY(y);j=ie.digest,G=ie.message,re=ie.stack}var pe;G?pe=new Error(G):pe=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var de=NE(pe,j,re);return eb(n,a,F,de)}var _e=Ba(F,n.childLanes);if(el||_e){var Se=fb();if(Se!==null){var Te=F_(Se,F);if(Te!==Vt&&Te!==S.retryLane){S.retryLane=Te;var tt=Rn;Di(n,Te),Qr(Se,n,Te,tt)}}p4();var vt=NE(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return eb(n,a,F,vt)}else if(EA(y)){a.flags|=_t,a.child=n.child;var ft=aW.bind(null,n);return UY(y,ft),null}else{Sq(a,y,S.treeContext);var Yt=h.children,jt=qE(a,Yt);return jt.flags|=mi,jt}}}function aR(n,a,u){n.lanes=Ot(n.lanes,a);var h=n.alternate;h!==null&&(h.lanes=Ot(h.lanes,a)),FS(n.return,a,u)}function MG(n,a,u){for(var h=a;h!==null;){if(h.tag===N){var y=h.memoizedState;y!==null&&aR(h,u,n)}else if(h.tag===P)aR(h,u,n);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===n)return;for(;h.sibling===null;){if(h.return===null||h.return===n)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function PG(n){for(var a=n,u=null;a!==null;){var h=a.alternate;h!==null&&Nx(h)===null&&(u=a),a=a.sibling}return u}function BG(n){if(n!==void 0&&n!=="forwards"&&n!=="backwards"&&n!=="together"&&!jE[n])if(jE[n]=!0,typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',n)}function LG(n,a){n!==void 0&&!Jx[n]&&(n!=="collapsed"&&n!=="hidden"?(Jx[n]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',n)):a!=="forwards"&&a!=="backwards"&&(Jx[n]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n)))}function iR(n,a){{var u=Er(n),h=!u&&typeof Ro(n)=="function";if(u||h){var y=u?"array":"iterable";return c("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",y,a,y),!1}}return!0}function zG(n,a){if((a==="forwards"||a==="backwards")&&n!==void 0&&n!==null&&n!==!1)if(Er(n)){for(var u=0;u<n.length;u++)if(!iR(n[u],u))return}else{var h=Ro(n);if(typeof h=="function"){var y=h.call(n);if(y)for(var S=y.next(),F=0;!S.done;S=y.next()){if(!iR(S.value,F))return;F++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function KE(n,a,u,h,y){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:y}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=u,S.tailMode=y)}function oR(n,a,u){var h=a.pendingProps,y=h.revealOrder,S=h.tail,F=h.children;BG(y),LG(S,y),zG(F,y),Ja(n,a,F,u);var j=Xo.current,G=aE(j,Rm);if(G)j=iE(j,Rm),a.flags|=_t;else{var re=n!==null&&(n.flags&_t)!==pt;re&&MG(a,a.child,u),j=oh(j)}if(lc(a,j),(a.mode&Lt)===gt)a.memoizedState=null;else switch(y){case"forwards":{var ie=PG(a.child),pe;ie===null?(pe=a.child,a.child=null):(pe=ie.sibling,ie.sibling=null),KE(a,!1,pe,ie,S);break}case"backwards":{var de=null,_e=a.child;for(a.child=null;_e!==null;){var Se=_e.alternate;if(Se!==null&&Nx(Se)===null){a.child=_e;break}var Te=_e.sibling;_e.sibling=de,de=_e,_e=Te}KE(a,!0,de,null,S);break}case"together":{KE(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function UG(n,a,u){tE(a,a.stateNode.containerInfo);var h=a.pendingProps;return n===null?a.child=ah(a,null,h,u):Ja(n,a,h,u),a.child}var lR=!1;function jG(n,a,u){var h=a.type,y=h._context,S=a.pendingProps,F=a.memoizedProps,j=S.value;{"value"in S||lR||(lR=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var G=a.type.propTypes;G&&Ko(G,S,"prop","Context.Provider")}if(KA(a,y,j),F!==null){var re=F.value;if(ot(re,j)){if(F.children===S.children&&!ux())return Ws(n,a,u)}else Mq(a,y,u)}var ie=S.children;return Ja(n,a,ie,u),a.child}var sR=!1;function IG(n,a,u){var h=a.type;h._context===void 0?h!==h.Consumer&&(sR||(sR=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):h=h._context;var y=a.pendingProps,S=y.children;typeof S!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),rh(a,u);var F=Fr(h);Ll(a);var j;return Um.current=a,Ii(!0),j=S(F),Ii(!1),_s(),a.flags|=Ol,Ja(n,a,j,u),a.child}function Im(){el=!0}function tb(n,a){(a.mode&Lt)===gt&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=Pn)}function Ws(n,a,u){return n!==null&&(a.dependencies=n.dependencies),VO(),Jm(a.lanes),Ba(u,a.childLanes)?(qq(n,a),a.child):null}function HG(n,a,u){{var h=a.return;if(h===null)throw new Error("Cannot swap the root fiber.");if(n.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,a===h.child)h.child=u;else{var y=h.child;if(y===null)throw new Error("Expected parent to have a child.");for(;y.sibling!==a;)if(y=y.sibling,y===null)throw new Error("Expected to find the previous sibling.");y.sibling=u}var S=h.deletions;return S===null?(h.deletions=[n],h.flags|=ln):S.push(n),u.flags|=Pn,u}}function WE(n,a){var u=n.lanes;return!!Ba(u,a)}function VG(n,a,u){switch(a.tag){case C:eR(a),a.stateNode,th();break;case x:hO(a);break;case d:{var h=a.type;Kl(h)&&fx(a);break}case b:tE(a,a.stateNode.containerInfo);break;case T:{var y=a.memoizedProps.value,S=a.type._context;KA(a,S,y);break}case R:{var F=Ba(u,a.childLanes);F&&(a.flags|=At);{var j=a.stateNode;j.effectDuration=0,j.passiveEffectDuration=0}}break;case N:{var G=a.memoizedState;if(G!==null){if(G.dehydrated!==null)return lc(a,oh(Xo.current)),a.flags|=_t,null;var re=a.child,ie=re.childLanes;if(Ba(u,ie))return nR(n,a,u);lc(a,oh(Xo.current));var pe=Ws(n,a,u);return pe!==null?pe.sibling:null}else lc(a,oh(Xo.current));break}case P:{var de=(n.flags&_t)!==pt,_e=Ba(u,a.childLanes);if(de){if(_e)return oR(n,a,u);a.flags|=_t}var Se=a.memoizedState;if(Se!==null&&(Se.rendering=null,Se.tail=null,Se.lastEffect=null),lc(a,Xo.current),_e)break;return null}case H:case V:return a.lanes=Oe,ZO(n,a,u)}return Ws(n,a,u)}function uR(n,a,u){if(a._debugNeedsRemount&&n!==null)return HG(n,a,E4(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(n!==null){var h=n.memoizedProps,y=a.pendingProps;if(h!==y||ux()||a.type!==n.type)el=!0;else{var S=WE(n,u);if(!S&&(a.flags&_t)===pt)return el=!1,VG(n,a,u);(n.flags&hf)!==pt?el=!0:el=!1}}else if(el=!1,ma()&&vq(a)){var F=a.index,j=mq();BA(a,j,F)}switch(a.lanes=Oe,a.tag){case m:return SG(n,a,a.type,u);case I:{var G=a.elementType;return wG(n,a,G,u)}case g:{var re=a.type,ie=a.pendingProps,pe=a.elementType===re?ie:Zo(re,ie);return IE(n,a,re,pe,u)}case d:{var de=a.type,_e=a.pendingProps,Se=a.elementType===de?_e:Zo(de,_e);return JO(n,a,de,Se,u)}case C:return xG(n,a,u);case x:return bG(n,a,u);case _:return CG(n,a);case N:return nR(n,a,u);case b:return UG(n,a,u);case D:{var Te=a.type,tt=a.pendingProps,vt=a.elementType===Te?tt:Zo(Te,tt);return KO(n,a,Te,vt,u)}case k:return mG(n,a,u);case E:return gG(n,a,u);case R:return yG(n,a,u);case T:return jG(n,a,u);case A:return IG(n,a,u);case z:{var ft=a.type,Yt=a.pendingProps,jt=Zo(ft,Yt);if(a.type!==a.elementType){var xe=ft.propTypes;xe&&Ko(xe,jt,"prop",An(ft))}return jt=Zo(ft.type,jt),WO(n,a,ft,jt,u)}case M:return QO(n,a,a.type,a.pendingProps,u);case Y:{var Ae=a.type,be=a.pendingProps,$e=a.elementType===Ae?be:Zo(Ae,be);return _G(n,a,Ae,$e,u)}case P:return oR(n,a,u);case U:break;case H:return ZO(n,a,u)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function dh(n){n.flags|=At}function cR(n){n.flags|=Aa,n.flags|=wv}var fR,QE,dR,hR;fR=function(n,a,u,h){for(var y=a.child;y!==null;){if(y.tag===x||y.tag===_)dY(n,y.stateNode);else if(y.tag!==b){if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===a)return;for(;y.sibling===null;){if(y.return===null||y.return===a)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},QE=function(n,a){},dR=function(n,a,u,h,y){var S=n.memoizedProps;if(S!==h){var F=a.stateNode,j=nE(),G=pY(F,u,S,h,y,j);a.updateQueue=G,G&&dh(a)}},hR=function(n,a,u,h){u!==h&&dh(a)};function Hm(n,a){if(!ma())switch(n.tailMode){case"hidden":{for(var u=n.tail,h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?n.tail=null:h.sibling=null;break}case"collapsed":{for(var y=n.tail,S=null;y!==null;)y.alternate!==null&&(S=y),y=y.sibling;S===null?!a&&n.tail!==null?n.tail.sibling=null:n.tail=null:S.sibling=null;break}}}function ya(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=Oe,h=pt;if(a){if((n.mode&xt)!==gt){for(var G=n.selfBaseDuration,re=n.child;re!==null;)u=Ot(u,Ot(re.lanes,re.childLanes)),h|=re.subtreeFlags&jr,h|=re.flags&jr,G+=re.treeBaseDuration,re=re.sibling;n.treeBaseDuration=G}else for(var ie=n.child;ie!==null;)u=Ot(u,Ot(ie.lanes,ie.childLanes)),h|=ie.subtreeFlags&jr,h|=ie.flags&jr,ie.return=n,ie=ie.sibling;n.subtreeFlags|=h}else{if((n.mode&xt)!==gt){for(var y=n.actualDuration,S=n.selfBaseDuration,F=n.child;F!==null;)u=Ot(u,Ot(F.lanes,F.childLanes)),h|=F.subtreeFlags,h|=F.flags,y+=F.actualDuration,S+=F.treeBaseDuration,F=F.sibling;n.actualDuration=y,n.treeBaseDuration=S}else for(var j=n.child;j!==null;)u=Ot(u,Ot(j.lanes,j.childLanes)),h|=j.subtreeFlags,h|=j.flags,j.return=n,j=j.sibling;n.subtreeFlags|=h}return n.childLanes=u,a}function $G(n,a,u){if(Aq()&&(a.mode&Lt)!==gt&&(a.flags&_t)===pt)return VA(a),th(),a.flags|=tr|Ga|kr,!1;var h=mx(a);if(u!==null&&u.dehydrated!==null)if(n===null){if(!h)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(kq(a),ya(a),(a.mode&xt)!==gt){var y=u!==null;if(y){var S=a.child;S!==null&&(a.treeBaseDuration-=S.treeBaseDuration)}}return!1}else{if(th(),(a.flags&_t)===pt&&(a.memoizedState=null),a.flags|=At,ya(a),(a.mode&xt)!==gt){var F=u!==null;if(F){var j=a.child;j!==null&&(a.treeBaseDuration-=j.treeBaseDuration)}}return!1}else return $A(),!0}function pR(n,a,u){var h=a.pendingProps;switch(wS(a),a.tag){case m:case I:case M:case g:case D:case k:case E:case R:case A:case z:return ya(a),null;case d:{var y=a.type;return Kl(y)&&cx(a),ya(a),null}case C:{var S=a.stateNode;if(ih(a),yS(a),lE(),S.pendingContext&&(S.context=S.pendingContext,S.pendingContext=null),n===null||n.child===null){var F=mx(a);if(F)dh(a);else if(n!==null){var j=n.memoizedState;(!j.isDehydrated||(a.flags&tr)!==pt)&&(a.flags|=vi,$A())}}return QE(n,a),ya(a),null}case x:{rE(a);var G=dO(),re=a.type;if(n!==null&&a.stateNode!=null)dR(n,a,re,h,G),n.ref!==a.ref&&cR(a);else{if(!h){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ya(a),null}var ie=nE(),pe=mx(a);if(pe)Eq(a,G,ie)&&dh(a);else{var de=fY(re,h,G,ie,a);fR(de,a,!1,!1),a.stateNode=de,hY(de,re,h,G)&&dh(a)}a.ref!==null&&cR(a)}return ya(a),null}case _:{var _e=h;if(n&&a.stateNode!=null){var Se=n.memoizedProps;hR(n,a,Se,_e)}else{if(typeof _e!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Te=dO(),tt=nE(),vt=mx(a);vt?Dq(a)&&dh(a):a.stateNode=vY(_e,Te,tt,a)}return ya(a),null}case N:{lh(a);var ft=a.memoizedState;if(n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){var Yt=$G(n,a,ft);if(!Yt)return a.flags&kr?a:null}if((a.flags&_t)!==pt)return a.lanes=u,(a.mode&xt)!==gt&&FE(a),a;var jt=ft!==null,xe=n!==null&&n.memoizedState!==null;if(jt!==xe&&jt){var Ae=a.child;if(Ae.flags|=Rl,(a.mode&Lt)!==gt){var be=n===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!$);be||aE(Xo.current,vO)?YK():p4()}}var $e=a.updateQueue;if($e!==null&&(a.flags|=At),ya(a),(a.mode&xt)!==gt&&jt){var nt=a.child;nt!==null&&(a.treeBaseDuration-=nt.treeBaseDuration)}return null}case b:return ih(a),QE(n,a),n===null&&sq(a.stateNode.containerInfo),ya(a),null;case T:var Ze=a.type._context;return RS(Ze,a),ya(a),null;case Y:{var Ct=a.type;return Kl(Ct)&&cx(a),ya(a),null}case P:{lh(a);var kt=a.memoizedState;if(kt===null)return ya(a),null;var Dn=(a.flags&_t)!==pt,nn=kt.rendering;if(nn===null)if(Dn)Hm(kt,!1);else{var wr=GK()&&(n===null||(n.flags&_t)===pt);if(!wr)for(var rn=a.child;rn!==null;){var pr=Nx(rn);if(pr!==null){Dn=!0,a.flags|=_t,Hm(kt,!1);var ja=pr.updateQueue;return ja!==null&&(a.updateQueue=ja,a.flags|=At),a.subtreeFlags=pt,Gq(a,u),lc(a,iE(Xo.current,Rm)),a.child}rn=rn.sibling}kt.tail!==null&&Qn()>PR()&&(a.flags|=_t,Dn=!0,Hm(kt,!1),a.lanes=Pv)}else{if(!Dn){var _a=Nx(nn);if(_a!==null){a.flags|=_t,Dn=!0;var Wi=_a.updateQueue;if(Wi!==null&&(a.updateQueue=Wi,a.flags|=At),Hm(kt,!0),kt.tail===null&&kt.tailMode==="hidden"&&!nn.alternate&&!ma())return ya(a),null}else Qn()*2-kt.renderingStartTime>PR()&&u!==Pa&&(a.flags|=_t,Dn=!0,Hm(kt,!1),a.lanes=Pv)}if(kt.isBackwards)nn.sibling=a.child,a.child=nn;else{var ni=kt.last;ni!==null?ni.sibling=nn:a.child=nn,kt.last=nn}}if(kt.tail!==null){var ri=kt.tail;kt.rendering=ri,kt.tail=ri.sibling,kt.renderingStartTime=Qn(),ri.sibling=null;var Ia=Xo.current;return Dn?Ia=iE(Ia,Rm):Ia=oh(Ia),lc(a,Ia),ri}return ya(a),null}case U:break;case H:case V:{h4(a);var eu=a.memoizedState,bh=eu!==null;if(n!==null){var ag=n.memoizedState,ns=ag!==null;ns!==bh&&!X&&(a.flags|=Rl)}return!bh||(a.mode&Lt)===gt?ya(a):Ba(ts,Pa)&&(ya(a),a.subtreeFlags&(Pn|At)&&(a.flags|=Rl)),null}case K:return null;case ee:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function YG(n,a,u){switch(wS(a),a.tag){case d:{var h=a.type;Kl(h)&&cx(a);var y=a.flags;return y&kr?(a.flags=y&~kr|_t,(a.mode&xt)!==gt&&FE(a),a):null}case C:{a.stateNode,ih(a),yS(a),lE();var S=a.flags;return(S&kr)!==pt&&(S&_t)===pt?(a.flags=S&~kr|_t,a):null}case x:return rE(a),null;case N:{lh(a);var F=a.memoizedState;if(F!==null&&F.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");th()}var j=a.flags;return j&kr?(a.flags=j&~kr|_t,(a.mode&xt)!==gt&&FE(a),a):null}case P:return lh(a),null;case b:return ih(a),null;case T:var G=a.type._context;return RS(G,a),null;case H:case V:return h4(a),null;case K:return null;default:return null}}function vR(n,a,u){switch(wS(a),a.tag){case d:{var h=a.type.childContextTypes;h!=null&&cx(a);break}case C:{a.stateNode,ih(a),yS(a),lE();break}case x:{rE(a);break}case b:ih(a);break;case N:lh(a);break;case P:lh(a);break;case T:var y=a.type._context;RS(y,a);break;case H:case V:h4(a);break}}var mR=null;mR=new Set;var nb=!1,xa=!1,qG=typeof WeakSet=="function"?WeakSet:Set,lt=null,hh=null,ph=null;function GG(n){Cs(null,function(){throw n}),bv()}var KG=function(n,a){if(a.props=n.memoizedProps,a.state=n.memoizedState,n.mode&xt)try{Jl(),a.componentWillUnmount()}finally{Xl(n)}else a.componentWillUnmount()};function gR(n,a){try{cc($r,n)}catch(u){Un(n,a,u)}}function ZE(n,a,u){try{KG(n,u)}catch(h){Un(n,a,h)}}function WG(n,a,u){try{u.componentDidMount()}catch(h){Un(n,a,h)}}function yR(n,a){try{bR(n)}catch(u){Un(n,a,u)}}function vh(n,a){var u=n.ref;if(u!==null)if(typeof u=="function"){var h;try{if(ve&&we&&n.mode&xt)try{Jl(),h=u(null)}finally{Xl(n)}else h=u(null)}catch(y){Un(n,a,y)}typeof h=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Tt(n))}else u.current=null}function rb(n,a,u){try{u()}catch(h){Un(n,a,h)}}var xR=!1;function QG(n,a){uY(n.containerInfo),lt=a,ZG();var u=xR;return xR=!1,u}function ZG(){for(;lt!==null;){var n=lt,a=n.child;(n.subtreeFlags&Ou)!==pt&&a!==null?(a.return=n,lt=a):XG()}}function XG(){for(;lt!==null;){var n=lt;Sn(n);try{JG(n)}catch(u){Un(n,n.return,u)}mr();var a=n.sibling;if(a!==null){a.return=n.return,lt=a;return}lt=n.return}}function JG(n){var a=n.alternate,u=n.flags;if((u&vi)!==pt){switch(Sn(n),n.tag){case g:case D:case M:break;case d:{if(a!==null){var h=a.memoizedProps,y=a.memoizedState,S=n.stateNode;n.type===n.elementType&&!qf&&(S.props!==n.memoizedProps&&c("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Tt(n)||"instance"),S.state!==n.memoizedState&&c("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Tt(n)||"instance"));var F=S.getSnapshotBeforeUpdate(n.elementType===n.type?h:Zo(n.type,h),y);{var j=mR;F===void 0&&!j.has(n.type)&&(j.add(n.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Tt(n)))}S.__reactInternalSnapshotBeforeUpdate=F}break}case C:{{var G=n.stateNode;MY(G.containerInfo)}break}case x:case _:case b:case Y:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}mr()}}function tl(n,a,u){var h=a.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var S=y.next,F=S;do{if((F.tag&n)===n){var j=F.destroy;F.destroy=void 0,j!==void 0&&((n&ga)!==ki?a0(a):(n&$r)!==ki&&i0(a),(n&Wl)!==ki&&tg(!0),rb(a,u,j),(n&Wl)!==ki&&tg(!1),(n&ga)!==ki?v1():(n&$r)!==ki&&Ru())}F=F.next}while(F!==S)}}function cc(n,a){var u=a.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var y=h.next,S=y;do{if((S.tag&n)===n){(n&ga)!==ki?p1(a):(n&$r)!==ki&&m1(a);var F=S.create;(n&Wl)!==ki&&tg(!0),S.destroy=F(),(n&Wl)!==ki&&tg(!1),(n&ga)!==ki?Fv():(n&$r)!==ki&&g1();{var j=S.destroy;if(j!==void 0&&typeof j!="function"){var G=void 0;(S.tag&$r)!==pt?G="useLayoutEffect":(S.tag&Wl)!==pt?G="useInsertionEffect":G="useEffect";var re=void 0;j===null?re=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof j.then=="function"?re=`
152
152
 
153
153
  It looks like you wrote `+G+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
154
154
 
@@ -190,10 +190,10 @@ Check the render method of \``+re+"`.")}throw new Error("Element type is invalid
190
190
  Check the render method of %s.`,Tt(cr)||"Unknown"));var G=Ks(S,F);G.payload={element:n},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h),G.callback=h);var re=ic(y,G,F);return re!==null&&(Qr(re,y,F,S),Ex(re,y,F)),F}function mb(n){var a=n.current;if(!a.child)return null;switch(a.child.tag){case x:return a.child.stateNode;default:return a.child.stateNode}}function FW(n){switch(n.tag){case C:{var a=n.stateNode;if(br(a)){var u=A_(a);HK(a,u)}break}case N:{Xs(function(){var y=Di(n,bt);if(y!==null){var S=ti();Qr(y,n,bt,S)}});var h=bt;F4(n,h);break}}}function uF(n,a){var u=n.memoizedState;u!==null&&u.dehydrated!==null&&(u.retryLane=E1(u.retryLane,a))}function F4(n,a){uF(n,a);var u=n.alternate;u&&uF(u,a)}function NW(n){if(n.tag===N){var a=Mu,u=Di(n,a);if(u!==null){var h=ti();Qr(u,n,a,h)}F4(n,a)}}function MW(n){if(n.tag===N){var a=hc(n),u=Di(n,a);if(u!==null){var h=ti();Qr(u,n,a,h)}F4(n,a)}}function cF(n){var a=c1(n);return a===null?null:a.stateNode}var fF=function(n){return null};function PW(n){return fF(n)}var dF=function(n){return!1};function BW(n){return dF(n)}var hF=null,pF=null,vF=null,mF=null,gF=null,yF=null,xF=null,bF=null,CF=null;{var wF=function(n,a,u){var h=a[u],y=Er(n)?n.slice():zt({},n);return u+1===a.length?(Er(y)?y.splice(h,1):delete y[h],y):(y[h]=wF(n[h],a,u+1),y)},_F=function(n,a){return wF(n,a,0)},SF=function(n,a,u,h){var y=a[h],S=Er(n)?n.slice():zt({},n);if(h+1===a.length){var F=u[h];S[F]=S[y],Er(S)?S.splice(y,1):delete S[y]}else S[y]=SF(n[y],a,u,h+1);return S},EF=function(n,a,u){if(a.length!==u.length){f("copyWithRename() expects paths of the same length");return}else for(var h=0;h<u.length-1;h++)if(a[h]!==u[h]){f("copyWithRename() expects paths to be the same except for the deepest key");return}return SF(n,a,u,0)},DF=function(n,a,u,h){if(u>=a.length)return h;var y=a[u],S=Er(n)?n.slice():zt({},n);return S[y]=DF(n[y],a,u+1,h),S},kF=function(n,a,u){return DF(n,a,0,u)},N4=function(n,a){for(var u=n.memoizedState;u!==null&&a>0;)u=u.next,a--;return u};hF=function(n,a,u,h){var y=N4(n,a);if(y!==null){var S=kF(y.memoizedState,u,h);y.memoizedState=S,y.baseState=S,n.memoizedProps=zt({},n.memoizedProps);var F=Di(n,bt);F!==null&&Qr(F,n,bt,Rn)}},pF=function(n,a,u){var h=N4(n,a);if(h!==null){var y=_F(h.memoizedState,u);h.memoizedState=y,h.baseState=y,n.memoizedProps=zt({},n.memoizedProps);var S=Di(n,bt);S!==null&&Qr(S,n,bt,Rn)}},vF=function(n,a,u,h){var y=N4(n,a);if(y!==null){var S=EF(y.memoizedState,u,h);y.memoizedState=S,y.baseState=S,n.memoizedProps=zt({},n.memoizedProps);var F=Di(n,bt);F!==null&&Qr(F,n,bt,Rn)}},mF=function(n,a,u){n.pendingProps=kF(n.memoizedProps,a,u),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var h=Di(n,bt);h!==null&&Qr(h,n,bt,Rn)},gF=function(n,a){n.pendingProps=_F(n.memoizedProps,a),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var u=Di(n,bt);u!==null&&Qr(u,n,bt,Rn)},yF=function(n,a,u){n.pendingProps=EF(n.memoizedProps,a,u),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var h=Di(n,bt);h!==null&&Qr(h,n,bt,Rn)},xF=function(n){var a=Di(n,bt);a!==null&&Qr(a,n,bt,Rn)},bF=function(n){fF=n},CF=function(n){dF=n}}function LW(n){var a=yi(n);return a===null?null:a.stateNode}function zW(n){return null}function UW(){return cr}function jW(n){var a=n.findFiberByHostInstance,u=t.ReactCurrentDispatcher;return Av({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:hF,overrideHookStateDeletePath:pF,overrideHookStateRenamePath:vF,overrideProps:mF,overridePropsDeletePath:gF,overridePropsRenamePath:yF,setErrorHandler:bF,setSuspenseHandler:CF,scheduleUpdate:xF,currentDispatcherRef:u,findHostInstanceByFiber:LW,findFiberByHostInstance:a||zW,findHostInstancesForRefresh:mW,scheduleRefresh:pW,scheduleRoot:vW,setRefreshHandler:hW,getCurrentFiber:UW,reconcilerVersion:A4})}var TF=typeof reportError=="function"?reportError:function(n){};function M4(n){this._internalRoot=n}gb.prototype.render=M4.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):yb(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var u=a.containerInfo;if(u.nodeType!==fr){var h=cF(a.current);h&&h.parentNode!==u&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}ng(n,a,null,null)},gb.prototype.unmount=M4.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;jR()&&c("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Xs(function(){ng(null,n,null,null)}),kA(a)}};function IW(n,a){if(!yb(n))throw new Error("createRoot(...): Target container is not a DOM element.");AF(n);var u=!1,h=!1,y="",S=TF;a!=null&&(a.hydrate?f("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===Ur&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
191
191
 
192
192
  let root = createRoot(domContainer);
193
- root.render(<App />);`),a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var F=lF(n,dx,null,u,h,y,S);ix(F.current,n);var j=n.nodeType===fr?n.parentNode:n;return cm(j),new M4(F)}function gb(n){this._internalRoot=n}function HW(n){n&&N1(n)}gb.prototype.unstable_scheduleHydration=HW;function VW(n,a,u){if(!yb(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");AF(n),a===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var h=u??null,y=u!=null&&u.hydratedSources||null,S=!1,F=!1,j="",G=TF;u!=null&&(u.unstable_strictMode===!0&&(S=!0),u.identifierPrefix!==void 0&&(j=u.identifierPrefix),u.onRecoverableError!==void 0&&(G=u.onRecoverableError));var re=sF(a,null,n,dx,h,S,F,j,G);if(ix(re.current,n),cm(n),y)for(var ie=0;ie<y.length;ie++){var pe=y[ie];Zq(re,pe)}return new gb(re)}function yb(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||!ne))}function rg(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||n.nodeType===fr&&n.nodeValue===" react-mount-point-unstable "))}function AF(n){n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Cm(n)&&(n._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var $W=t.ReactCurrentOwner,OF;OF=function(n){if(n._reactRootContainer&&n.nodeType!==fr){var a=cF(n._reactRootContainer.current);a&&a.parentNode!==n&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!n._reactRootContainer,h=P4(n),y=!!(h&&ec(h));y&&!u&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function P4(n){return n?n.nodeType===Hi?n.documentElement:n.firstChild:null}function RF(){}function YW(n,a,u,h,y){if(y){if(typeof h=="function"){var S=h;h=function(){var de=mb(F);S.call(de)}}var F=sF(a,h,n,nc,null,!1,!1,"",RF);n._reactRootContainer=F,ix(F.current,n);var j=n.nodeType===fr?n.parentNode:n;return cm(j),Xs(),F}else{for(var G;G=n.lastChild;)n.removeChild(G);if(typeof h=="function"){var re=h;h=function(){var de=mb(ie);re.call(de)}}var ie=lF(n,nc,null,!1,!1,"",RF);n._reactRootContainer=ie,ix(ie.current,n);var pe=n.nodeType===fr?n.parentNode:n;return cm(pe),Xs(function(){ng(a,ie,u,h)}),ie}}function qW(n,a){n!==null&&typeof n!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function xb(n,a,u,h,y){OF(u),qW(y===void 0?null:y,"render");var S=u._reactRootContainer,F;if(!S)F=YW(u,a,n,y,h);else{if(F=S,typeof y=="function"){var j=y;y=function(){var G=mb(F);j.call(G)}}ng(a,F,n,y)}return mb(F)}function GW(n){{var a=$W.current;if(a!==null&&a.stateNode!==null){var u=a.stateNode._warnedAboutRefsInRender;u||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",An(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===Ta?n:RW(n,"findDOMNode")}function KW(n,a,u){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var h=Cm(a)&&a._reactRootContainer===void 0;h&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return xb(null,n,a,!0,u)}function WW(n,a,u){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var h=Cm(a)&&a._reactRootContainer===void 0;h&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return xb(null,n,a,!1,u)}function QW(n,a,u,h){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(u))throw new Error("Target container is not a DOM element.");if(n==null||!ff(n))throw new Error("parentComponent must be a valid React Component");return xb(n,a,u,!1,h)}function ZW(n){if(!rg(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Cm(n)&&n._reactRootContainer===void 0;a&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var u=P4(n),h=u&&!ec(u);h&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Xs(function(){xb(null,null,n,!1,function(){n._reactRootContainer=null,kA(n)})}),!0}else{{var y=P4(n),S=!!(y&&ec(y)),F=n.nodeType===Ta&&rg(n.parentNode)&&!!n.parentNode._reactRootContainer;S&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",F?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}rt(FW),k1(NW),Df(MW),qv(Ci),A1(_f),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),l1(eY),Kd(d4,VK,Xs);function XW(n,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!yb(a))throw new Error("Target container is not a DOM element.");return OW(n,a,null,u)}function JW(n,a,u,h){return QW(n,a,u,h)}var B4={usingClientEntryPoint:!1,Events:[ec,Q0,ox,Gd,sf,d4]};function eQ(n,a){return B4.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),IW(n,a)}function tQ(n,a,u){return B4.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),VW(n,a,u)}function nQ(n){return jR()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Xs(n)}var rQ=jW({findFiberByHostInstance:Bf,bundleType:1,version:A4,rendererPackageName:"react-dom"});if(!rQ&&ze&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var aQ=window.location.protocol;/^(https?|file):$/.test(aQ)}ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B4,ii.createPortal=XW,ii.createRoot=eQ,ii.findDOMNode=GW,ii.flushSync=nQ,ii.hydrate=KW,ii.hydrateRoot=tQ,ii.render=WW,ii.unmountComponentAtNode=ZW,ii.unstable_batchedUpdates=d4,ii.unstable_renderSubtreeIntoContainer=JW,ii.version=A4,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ii}(function(e){function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch{}}}process.env.NODE_ENV==="production"?(r(),e.exports=h9()):e.exports=p9()})(tu);const fg=PF(tu.exports),v9=MF({__proto__:null,default:fg},[tu.exports]);var zb=(e=>(e.zip="application/zip",e.png="image/png",e.jpg="image/jpg",e.jpeg="image/jpeg",e.pdf="application/pdf",e.doc="application/msword",e.docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.pptx="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.ppt="application/vnd.ms-powerpoint",e.xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.xls="application/vnd.ms-excel",e.txt="text/plain",e.csv="text/csv",e.svg="image/svg+xml",e))(zb||{});const Ub=new Map(Object.entries(zb));var ed=(e=>(e.zip=".zip",e.png=".png",e.jpg=".jpg",e.jpeg=".jpeg",e.pdf=".pdf",e.doc=".doc",e.docx=".docx",e.ppt=".ppt",e.pptx=".pptx",e.xls=".xls",e.xlsx=".xlsx",e.txt=".txt",e.csv=".csv",e.svg=".svg",e.rar=".rar",e))(ed||{});const m9=Object.freeze(Object.defineProperty({__proto__:null,FileType:zb,FileTypeMap:Ub,FileSuffix:ed},Symbol.toStringTag,{value:"Module"})),g9=e=>{if(!il.isObject(e))return e;const r=e;return il.pick(r,il.keys(r).filter(t=>!il.isNil(r[t])))},P8=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),dg=e=>{var r;if(e)return"."+((r=e.split(".").at(-1))==null?void 0:r.toLowerCase())},y9=e=>{if(e){if(e.startsWith("http")){const r=e.split(".").at(-1);if(r&&Ub.has(r))return Ub.get(r)}if(e.startsWith("data:")&&e.includes("base64")){const r=e.indexOf(";base64"),t=e.slice(0,r).split(":");if(t[1])return t[1]}}},B8=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;localStorage.setItem(e,t)},jb=e=>{let t=localStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},x9=e=>{localStorage.removeItem(e)},b9=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;sessionStorage.setItem(e,t)},C9=e=>{let t=sessionStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},w9=e=>{sessionStorage.removeItem(e)},_9=(e,r)=>{const t=[];for(let i=0;i<r.length;i++)t.findIndex(l=>l[e]===r[i][e])<0&&t.push(r[i]);return t},Ib=e=>{if(!e)return null;if(typeof e=="object")return e;if(typeof e=="string"){let r=e;try{r=JSON.parse(e)}catch{}return r}};function S9(){var e=URL.createObjectURL(new Blob),r=e.toString();return URL.revokeObjectURL(e),r.substr(r.lastIndexOf("/")+1)}const E9=Object.freeze(Object.defineProperty({__proto__:null,filterObject:g9,getBase64:P8,getFileSuffix:dg,getFileType:y9,setLocalStorage:B8,getLocalStorage:jb,removeLocalStorage:x9,setSessionStorage:b9,getSessionStorage:C9,removeSessionStorage:w9,arrayDeduplication:_9,JSONParse:Ib,uuid:S9,forceReload:()=>{const e="FORCERELOAD";sessionStorage.getItem(e)!=="1"&&(sessionStorage.setItem(e,"1"),window.location.reload())},formatResponse:e=>{if(typeof e=="string"){const r=e.indexOf(",");return JSON.parse(e.slice(r+1))}return e}},Symbol.toStringTag,{value:"Module"}));const D9=4,L8=0,z8=1,k9=2;function td(e){let r=e.length;for(;--r>=0;)e[r]=0}const T9=0,U8=1,A9=2,O9=3,R9=258,Hb=29,Dh=256,kh=Dh+1+Hb,nd=30,Vb=19,j8=2*kh+1,gc=15,$b=16,F9=7,Yb=256,I8=16,H8=17,V8=18,qb=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),hg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),N9=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),$8=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),M9=512,as=new Array((kh+2)*2);td(as);const Th=new Array(nd*2);td(Th);const Ah=new Array(M9);td(Ah);const Oh=new Array(R9-O9+1);td(Oh);const Gb=new Array(Hb);td(Gb);const pg=new Array(nd);td(pg);function Kb(e,r,t,i,l){this.static_tree=e,this.extra_bits=r,this.extra_base=t,this.elems=i,this.max_length=l,this.has_stree=e&&e.length}let Y8,q8,G8;function Wb(e,r){this.dyn_tree=e,this.max_code=0,this.stat_desc=r}const K8=e=>e<256?Ah[e]:Ah[256+(e>>>7)],Rh=(e,r)=>{e.pending_buf[e.pending++]=r&255,e.pending_buf[e.pending++]=r>>>8&255},oi=(e,r,t)=>{e.bi_valid>$b-t?(e.bi_buf|=r<<e.bi_valid&65535,Rh(e,e.bi_buf),e.bi_buf=r>>$b-e.bi_valid,e.bi_valid+=t-$b):(e.bi_buf|=r<<e.bi_valid&65535,e.bi_valid+=t)},ol=(e,r,t)=>{oi(e,t[r*2],t[r*2+1])},W8=(e,r)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--r>0);return t>>>1},P9=e=>{e.bi_valid===16?(Rh(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},B9=(e,r)=>{const t=r.dyn_tree,i=r.max_code,l=r.stat_desc.static_tree,f=r.stat_desc.has_stree,c=r.stat_desc.extra_bits,p=r.stat_desc.extra_base,g=r.stat_desc.max_length;let d,m,C,b,x,_,k=0;for(b=0;b<=gc;b++)e.bl_count[b]=0;for(t[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;d<j8;d++)m=e.heap[d],b=t[t[m*2+1]*2+1]+1,b>g&&(b=g,k++),t[m*2+1]=b,!(m>i)&&(e.bl_count[b]++,x=0,m>=p&&(x=c[m-p]),_=t[m*2],e.opt_len+=_*(b+x),f&&(e.static_len+=_*(l[m*2+1]+x)));if(k!==0){do{for(b=g-1;e.bl_count[b]===0;)b--;e.bl_count[b]--,e.bl_count[b+1]+=2,e.bl_count[g]--,k-=2}while(k>0);for(b=g;b!==0;b--)for(m=e.bl_count[b];m!==0;)C=e.heap[--d],!(C>i)&&(t[C*2+1]!==b&&(e.opt_len+=(b-t[C*2+1])*t[C*2],t[C*2+1]=b),m--)}},Q8=(e,r,t)=>{const i=new Array(gc+1);let l=0,f,c;for(f=1;f<=gc;f++)l=l+t[f-1]<<1,i[f]=l;for(c=0;c<=r;c++){let p=e[c*2+1];p!==0&&(e[c*2]=W8(i[p]++,p))}},L9=()=>{let e,r,t,i,l;const f=new Array(gc+1);for(t=0,i=0;i<Hb-1;i++)for(Gb[i]=t,e=0;e<1<<qb[i];e++)Oh[t++]=i;for(Oh[t-1]=i,l=0,i=0;i<16;i++)for(pg[i]=l,e=0;e<1<<hg[i];e++)Ah[l++]=i;for(l>>=7;i<nd;i++)for(pg[i]=l<<7,e=0;e<1<<hg[i]-7;e++)Ah[256+l++]=i;for(r=0;r<=gc;r++)f[r]=0;for(e=0;e<=143;)as[e*2+1]=8,e++,f[8]++;for(;e<=255;)as[e*2+1]=9,e++,f[9]++;for(;e<=279;)as[e*2+1]=7,e++,f[7]++;for(;e<=287;)as[e*2+1]=8,e++,f[8]++;for(Q8(as,kh+1,f),e=0;e<nd;e++)Th[e*2+1]=5,Th[e*2]=W8(e,5);Y8=new Kb(as,qb,Dh+1,kh,gc),q8=new Kb(Th,hg,0,nd,gc),G8=new Kb(new Array(0),N9,0,Vb,F9)},Z8=e=>{let r;for(r=0;r<kh;r++)e.dyn_ltree[r*2]=0;for(r=0;r<nd;r++)e.dyn_dtree[r*2]=0;for(r=0;r<Vb;r++)e.bl_tree[r*2]=0;e.dyn_ltree[Yb*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},X8=e=>{e.bi_valid>8?Rh(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},J8=(e,r,t,i)=>{const l=r*2,f=t*2;return e[l]<e[f]||e[l]===e[f]&&i[r]<=i[t]},Qb=(e,r,t)=>{const i=e.heap[t];let l=t<<1;for(;l<=e.heap_len&&(l<e.heap_len&&J8(r,e.heap[l+1],e.heap[l],e.depth)&&l++,!J8(r,i,e.heap[l],e.depth));)e.heap[t]=e.heap[l],t=l,l<<=1;e.heap[t]=i},e5=(e,r,t)=>{let i,l,f=0,c,p;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+f++]&255,i+=(e.pending_buf[e.sym_buf+f++]&255)<<8,l=e.pending_buf[e.sym_buf+f++],i===0?ol(e,l,r):(c=Oh[l],ol(e,c+Dh+1,r),p=qb[c],p!==0&&(l-=Gb[c],oi(e,l,p)),i--,c=K8(i),ol(e,c,t),p=hg[c],p!==0&&(i-=pg[c],oi(e,i,p)));while(f<e.sym_next);ol(e,Yb,r)},Zb=(e,r)=>{const t=r.dyn_tree,i=r.stat_desc.static_tree,l=r.stat_desc.has_stree,f=r.stat_desc.elems;let c,p,g=-1,d;for(e.heap_len=0,e.heap_max=j8,c=0;c<f;c++)t[c*2]!==0?(e.heap[++e.heap_len]=g=c,e.depth[c]=0):t[c*2+1]=0;for(;e.heap_len<2;)d=e.heap[++e.heap_len]=g<2?++g:0,t[d*2]=1,e.depth[d]=0,e.opt_len--,l&&(e.static_len-=i[d*2+1]);for(r.max_code=g,c=e.heap_len>>1;c>=1;c--)Qb(e,t,c);d=f;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qb(e,t,1),p=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=p,t[d*2]=t[c*2]+t[p*2],e.depth[d]=(e.depth[c]>=e.depth[p]?e.depth[c]:e.depth[p])+1,t[c*2+1]=t[p*2+1]=d,e.heap[1]=d++,Qb(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],B9(e,r),Q8(t,g,e.bl_count)},t5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],p=0,g=7,d=4;for(c===0&&(g=138,d=3),r[(t+1)*2+1]=65535,i=0;i<=t;i++)f=c,c=r[(i+1)*2+1],!(++p<g&&f===c)&&(p<d?e.bl_tree[f*2]+=p:f!==0?(f!==l&&e.bl_tree[f*2]++,e.bl_tree[I8*2]++):p<=10?e.bl_tree[H8*2]++:e.bl_tree[V8*2]++,p=0,l=f,c===0?(g=138,d=3):f===c?(g=6,d=3):(g=7,d=4))},n5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],p=0,g=7,d=4;for(c===0&&(g=138,d=3),i=0;i<=t;i++)if(f=c,c=r[(i+1)*2+1],!(++p<g&&f===c)){if(p<d)do ol(e,f,e.bl_tree);while(--p!==0);else f!==0?(f!==l&&(ol(e,f,e.bl_tree),p--),ol(e,I8,e.bl_tree),oi(e,p-3,2)):p<=10?(ol(e,H8,e.bl_tree),oi(e,p-3,3)):(ol(e,V8,e.bl_tree),oi(e,p-11,7));p=0,l=f,c===0?(g=138,d=3):f===c?(g=6,d=3):(g=7,d=4)}},z9=e=>{let r;for(t5(e,e.dyn_ltree,e.l_desc.max_code),t5(e,e.dyn_dtree,e.d_desc.max_code),Zb(e,e.bl_desc),r=Vb-1;r>=3&&e.bl_tree[$8[r]*2+1]===0;r--);return e.opt_len+=3*(r+1)+5+5+4,r},U9=(e,r,t,i)=>{let l;for(oi(e,r-257,5),oi(e,t-1,5),oi(e,i-4,4),l=0;l<i;l++)oi(e,e.bl_tree[$8[l]*2+1],3);n5(e,e.dyn_ltree,r-1),n5(e,e.dyn_dtree,t-1)},j9=e=>{let r=4093624447,t;for(t=0;t<=31;t++,r>>>=1)if(r&1&&e.dyn_ltree[t*2]!==0)return L8;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return z8;for(t=32;t<Dh;t++)if(e.dyn_ltree[t*2]!==0)return z8;return L8};let r5=!1;const I9=e=>{r5||(L9(),r5=!0),e.l_desc=new Wb(e.dyn_ltree,Y8),e.d_desc=new Wb(e.dyn_dtree,q8),e.bl_desc=new Wb(e.bl_tree,G8),e.bi_buf=0,e.bi_valid=0,Z8(e)},a5=(e,r,t,i)=>{oi(e,(T9<<1)+(i?1:0),3),X8(e),Rh(e,t),Rh(e,~t),t&&e.pending_buf.set(e.window.subarray(r,r+t),e.pending),e.pending+=t},H9=e=>{oi(e,U8<<1,3),ol(e,Yb,as),P9(e)},V9=(e,r,t,i)=>{let l,f,c=0;e.level>0?(e.strm.data_type===k9&&(e.strm.data_type=j9(e)),Zb(e,e.l_desc),Zb(e,e.d_desc),c=z9(e),l=e.opt_len+3+7>>>3,f=e.static_len+3+7>>>3,f<=l&&(l=f)):l=f=t+5,t+4<=l&&r!==-1?a5(e,r,t,i):e.strategy===D9||f===l?(oi(e,(U8<<1)+(i?1:0),3),e5(e,as,Th)):(oi(e,(A9<<1)+(i?1:0),3),U9(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),e5(e,e.dyn_ltree,e.dyn_dtree)),Z8(e),i&&X8(e)},$9=(e,r,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=r,e.pending_buf[e.sym_buf+e.sym_next++]=r>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,r===0?e.dyn_ltree[t*2]++:(e.matches++,r--,e.dyn_ltree[(Oh[t]+Dh+1)*2]++,e.dyn_dtree[K8(r)*2]++),e.sym_next===e.sym_end);var Y9=I9,q9=a5,G9=V9,K9=$9,W9=H9,Q9={_tr_init:Y9,_tr_stored_block:q9,_tr_flush_block:G9,_tr_tally:K9,_tr_align:W9},Fh=(e,r,t,i)=>{let l=e&65535|0,f=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do l=l+r[i++]|0,f=f+l|0;while(--c);l%=65521,f%=65521}return l|f<<16|0};const Z9=()=>{let e,r=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;r[t]=e}return r},X9=new Uint32Array(Z9());var Xr=(e,r,t,i)=>{const l=X9,f=i+t;e^=-1;for(let c=i;c<f;c++)e=e>>>8^l[(e^r[c])&255];return e^-1},yc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:J9,_tr_stored_block:Xb,_tr_flush_block:eN,_tr_tally:nu,_tr_align:tN}=Q9,{Z_NO_FLUSH:ru,Z_PARTIAL_FLUSH:nN,Z_FULL_FLUSH:rN,Z_FINISH:Zi,Z_BLOCK:i5,Z_OK:da,Z_STREAM_END:o5,Z_STREAM_ERROR:ll,Z_DATA_ERROR:aN,Z_BUF_ERROR:Jb,Z_DEFAULT_COMPRESSION:iN,Z_FILTERED:oN,Z_HUFFMAN_ONLY:vg,Z_RLE:lN,Z_FIXED:sN,Z_DEFAULT_STRATEGY:uN,Z_UNKNOWN:cN,Z_DEFLATED:mg}=xc,fN=9,dN=15,hN=8,pN=29,e2=256+1+pN,vN=30,mN=19,gN=2*e2+1,yN=15,Kt=3,au=258,sl=au+Kt+1,xN=32,rd=42,t2=57,n2=69,r2=73,a2=91,i2=103,bc=113,Nh=666,Ha=1,ad=2,Cc=3,id=4,bN=3,wc=(e,r)=>(e.msg=yc[r],r),l5=e=>e*2-(e>4?9:0),iu=e=>{let r=e.length;for(;--r>=0;)e[r]=0},CN=e=>{let r,t,i,l=e.w_size;r=e.hash_size,i=r;do t=e.head[--i],e.head[i]=t>=l?t-l:0;while(--r);r=l,i=r;do t=e.prev[--i],e.prev[i]=t>=l?t-l:0;while(--r)};let ou=(e,r,t)=>(r<<e.hash_shift^t)&e.hash_mask;const Oi=e=>{const r=e.state;let t=r.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(r.pending_buf.subarray(r.pending_out,r.pending_out+t),e.next_out),e.next_out+=t,r.pending_out+=t,e.total_out+=t,e.avail_out-=t,r.pending-=t,r.pending===0&&(r.pending_out=0))},Ri=(e,r)=>{eN(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r),e.block_start=e.strstart,Oi(e.strm)},dn=(e,r)=>{e.pending_buf[e.pending++]=r},Mh=(e,r)=>{e.pending_buf[e.pending++]=r>>>8&255,e.pending_buf[e.pending++]=r&255},o2=(e,r,t,i)=>{let l=e.avail_in;return l>i&&(l=i),l===0?0:(e.avail_in-=l,r.set(e.input.subarray(e.next_in,e.next_in+l),t),e.state.wrap===1?e.adler=Fh(e.adler,r,l,t):e.state.wrap===2&&(e.adler=Xr(e.adler,r,l,t)),e.next_in+=l,e.total_in+=l,l)},s5=(e,r)=>{let t=e.max_chain_length,i=e.strstart,l,f,c=e.prev_length,p=e.nice_match;const g=e.strstart>e.w_size-sl?e.strstart-(e.w_size-sl):0,d=e.window,m=e.w_mask,C=e.prev,b=e.strstart+au;let x=d[i+c-1],_=d[i+c];e.prev_length>=e.good_match&&(t>>=2),p>e.lookahead&&(p=e.lookahead);do if(l=r,!(d[l+c]!==_||d[l+c-1]!==x||d[l]!==d[i]||d[++l]!==d[i+1])){i+=2,l++;do;while(d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&i<b);if(f=au-(b-i),i=b-au,f>c){if(e.match_start=r,c=f,f>=p)break;x=d[i+c-1],_=d[i+c]}}while((r=C[r&m])>g&&--t!==0);return c<=e.lookahead?c:e.lookahead},od=e=>{const r=e.w_size;let t,i,l;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=r+(r-sl)&&(e.window.set(e.window.subarray(r,r+r-i),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.insert>e.strstart&&(e.insert=e.strstart),CN(e),i+=r),e.strm.avail_in===0)break;if(t=o2(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=Kt)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=ou(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=ou(e,e.ins_h,e.window[l+Kt-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<Kt)););}while(e.lookahead<sl&&e.strm.avail_in!==0)},u5=(e,r)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,l,f,c=0,p=e.strm.avail_in;do{if(i=65535,f=e.bi_valid+42>>3,e.strm.avail_out<f||(f=e.strm.avail_out-f,l=e.strstart-e.block_start,i>l+e.strm.avail_in&&(i=l+e.strm.avail_in),i>f&&(i=f),i<t&&(i===0&&r!==Zi||r===ru||i!==l+e.strm.avail_in)))break;c=r===Zi&&i===l+e.strm.avail_in?1:0,Xb(e,0,0,c),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Oi(e.strm),l&&(l>i&&(l=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+l),e.strm.next_out),e.strm.next_out+=l,e.strm.avail_out-=l,e.strm.total_out+=l,e.block_start+=l,i-=l),i&&(o2(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(c===0);return p-=e.strm.avail_in,p&&(p>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=p&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-p,e.strm.next_in),e.strstart),e.strstart+=p,e.insert+=p>e.w_size-e.insert?e.w_size-e.insert:p),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),c?id:r!==ru&&r!==Zi&&e.strm.avail_in===0&&e.strstart===e.block_start?ad:(f=e.window_size-e.strstart,e.strm.avail_in>f&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,f+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),f>e.strm.avail_in&&(f=e.strm.avail_in),f&&(o2(e.strm,e.window,e.strstart,f),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.high_water<e.strstart&&(e.high_water=e.strstart),f=e.bi_valid+42>>3,f=e.pending_buf_size-f>65535?65535:e.pending_buf_size-f,t=f>e.w_size?e.w_size:f,l=e.strstart-e.block_start,(l>=t||(l||r===Zi)&&r!==ru&&e.strm.avail_in===0&&l<=f)&&(i=l>f?f:l,c=r===Zi&&e.strm.avail_in===0&&i===l?1:0,Xb(e,e.block_start,i,c),e.block_start+=i,Oi(e.strm)),c?Cc:Ha)},l2=(e,r)=>{let t,i;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Kt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-sl&&(e.match_length=s5(e,t)),e.match_length>=Kt)if(i=nu(e,e.strstart-e.match_start,e.match_length-Kt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Kt){e.match_length--;do e.strstart++,e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ou(e,e.ins_h,e.window[e.strstart+1]);else i=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=e.strstart<Kt-1?e.strstart:Kt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},ld=(e,r)=>{let t,i,l;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Kt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Kt-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-sl&&(e.match_length=s5(e,t),e.match_length<=5&&(e.strategy===oN||e.match_length===Kt&&e.strstart-e.match_start>4096)&&(e.match_length=Kt-1)),e.prev_length>=Kt&&e.match_length<=e.prev_length){l=e.strstart+e.lookahead-Kt,i=nu(e,e.strstart-1-e.prev_match,e.prev_length-Kt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=l&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Kt-1,e.strstart++,i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}else if(e.match_available){if(i=nu(e,0,e.window[e.strstart-1]),i&&Ri(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ha}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=nu(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Kt-1?e.strstart:Kt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},wN=(e,r)=>{let t,i,l,f;const c=e.window;for(;;){if(e.lookahead<=au){if(od(e),e.lookahead<=au&&r===ru)return Ha;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Kt&&e.strstart>0&&(l=e.strstart-1,i=c[l],i===c[++l]&&i===c[++l]&&i===c[++l])){f=e.strstart+au;do;while(i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&l<f);e.match_length=au-(f-l),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Kt?(t=nu(e,1,e.match_length-Kt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},_N=(e,r)=>{let t;for(;;){if(e.lookahead===0&&(od(e),e.lookahead===0)){if(r===ru)return Ha;break}if(e.match_length=0,t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad};function ul(e,r,t,i,l){this.good_length=e,this.max_lazy=r,this.nice_length=t,this.max_chain=i,this.func=l}const Ph=[new ul(0,0,0,0,u5),new ul(4,4,8,4,l2),new ul(4,5,16,8,l2),new ul(4,6,32,32,l2),new ul(4,4,16,16,ld),new ul(8,16,32,32,ld),new ul(8,16,128,128,ld),new ul(8,32,128,256,ld),new ul(32,128,258,1024,ld),new ul(32,258,258,4096,ld)],SN=e=>{e.window_size=2*e.w_size,iu(e.head),e.max_lazy_match=Ph[e.level].max_lazy,e.good_match=Ph[e.level].good_length,e.nice_match=Ph[e.level].nice_length,e.max_chain_length=Ph[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Kt-1,e.match_available=0,e.ins_h=0};function EN(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mg,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(gN*2),this.dyn_dtree=new Uint16Array((2*vN+1)*2),this.bl_tree=new Uint16Array((2*mN+1)*2),iu(this.dyn_ltree),iu(this.dyn_dtree),iu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(yN+1),this.heap=new Uint16Array(2*e2+1),iu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*e2+1),iu(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Bh=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.status!==rd&&r.status!==t2&&r.status!==n2&&r.status!==r2&&r.status!==a2&&r.status!==i2&&r.status!==bc&&r.status!==Nh?1:0},c5=e=>{if(Bh(e))return wc(e,ll);e.total_in=e.total_out=0,e.data_type=cN;const r=e.state;return r.pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap===2?t2:r.wrap?rd:bc,e.adler=r.wrap===2?0:1,r.last_flush=-2,J9(r),da},f5=e=>{const r=c5(e);return r===da&&SN(e.state),r},DN=(e,r)=>Bh(e)||e.state.wrap!==2?ll:(e.state.gzhead=r,da),d5=(e,r,t,i,l,f)=>{if(!e)return ll;let c=1;if(r===iN&&(r=6),i<0?(c=0,i=-i):i>15&&(c=2,i-=16),l<1||l>fN||t!==mg||i<8||i>15||r<0||r>9||f<0||f>sN||i===8&&c!==1)return wc(e,ll);i===8&&(i=9);const p=new EN;return e.state=p,p.strm=e,p.status=rd,p.wrap=c,p.gzhead=null,p.w_bits=i,p.w_size=1<<p.w_bits,p.w_mask=p.w_size-1,p.hash_bits=l+7,p.hash_size=1<<p.hash_bits,p.hash_mask=p.hash_size-1,p.hash_shift=~~((p.hash_bits+Kt-1)/Kt),p.window=new Uint8Array(p.w_size*2),p.head=new Uint16Array(p.hash_size),p.prev=new Uint16Array(p.w_size),p.lit_bufsize=1<<l+6,p.pending_buf_size=p.lit_bufsize*4,p.pending_buf=new Uint8Array(p.pending_buf_size),p.sym_buf=p.lit_bufsize,p.sym_end=(p.lit_bufsize-1)*3,p.level=r,p.strategy=f,p.method=t,f5(e)},kN=(e,r)=>d5(e,r,mg,dN,hN,uN),TN=(e,r)=>{if(Bh(e)||r>i5||r<0)return e?wc(e,ll):ll;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Nh&&r!==Zi)return wc(e,e.avail_out===0?Jb:ll);const i=t.last_flush;if(t.last_flush=r,t.pending!==0){if(Oi(e),e.avail_out===0)return t.last_flush=-1,da}else if(e.avail_in===0&&l5(r)<=l5(i)&&r!==Zi)return wc(e,Jb);if(t.status===Nh&&e.avail_in!==0)return wc(e,Jb);if(t.status===rd&&t.wrap===0&&(t.status=bc),t.status===rd){let l=mg+(t.w_bits-8<<4)<<8,f=-1;if(t.strategy>=vg||t.level<2?f=0:t.level<6?f=1:t.level===6?f=2:f=3,l|=f<<6,t.strstart!==0&&(l|=xN),l+=31-l%31,Mh(t,l),t.strstart!==0&&(Mh(t,e.adler>>>16),Mh(t,e.adler&65535)),e.adler=1,t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,da}if(t.status===t2){if(e.adler=0,dn(t,31),dn(t,139),dn(t,8),t.gzhead)dn(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),dn(t,t.gzhead.time&255),dn(t,t.gzhead.time>>8&255),dn(t,t.gzhead.time>>16&255),dn(t,t.gzhead.time>>24&255),dn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),dn(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(dn(t,t.gzhead.extra.length&255),dn(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=Xr(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=n2;else if(dn(t,0),dn(t,0),dn(t,0),dn(t,0),dn(t,0),dn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),dn(t,bN),t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,da}if(t.status===n2){if(t.gzhead.extra){let l=t.pending,f=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+f>t.pending_buf_size;){let p=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+p),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex+=p,Oi(e),t.pending!==0)return t.last_flush=-1,da;l=0,f-=p}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+f),t.pending),t.pending+=f,t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=r2}if(t.status===r2){if(t.gzhead.name){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,da;l=0}t.gzindex<t.gzhead.name.length?f=t.gzhead.name.charCodeAt(t.gzindex++)&255:f=0,dn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=a2}if(t.status===a2){if(t.gzhead.comment){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,da;l=0}t.gzindex<t.gzhead.comment.length?f=t.gzhead.comment.charCodeAt(t.gzindex++)&255:f=0,dn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l))}t.status=i2}if(t.status===i2){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Oi(e),t.pending!==0))return t.last_flush=-1,da;dn(t,e.adler&255),dn(t,e.adler>>8&255),e.adler=0}if(t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,da}if(e.avail_in!==0||t.lookahead!==0||r!==ru&&t.status!==Nh){let l=t.level===0?u5(t,r):t.strategy===vg?_N(t,r):t.strategy===lN?wN(t,r):Ph[t.level].func(t,r);if((l===Cc||l===id)&&(t.status=Nh),l===Ha||l===Cc)return e.avail_out===0&&(t.last_flush=-1),da;if(l===ad&&(r===nN?tN(t):r!==i5&&(Xb(t,0,0,!1),r===rN&&(iu(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Oi(e),e.avail_out===0))return t.last_flush=-1,da}return r!==Zi?da:t.wrap<=0?o5:(t.wrap===2?(dn(t,e.adler&255),dn(t,e.adler>>8&255),dn(t,e.adler>>16&255),dn(t,e.adler>>24&255),dn(t,e.total_in&255),dn(t,e.total_in>>8&255),dn(t,e.total_in>>16&255),dn(t,e.total_in>>24&255)):(Mh(t,e.adler>>>16),Mh(t,e.adler&65535)),Oi(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?da:o5)},AN=e=>{if(Bh(e))return ll;const r=e.state.status;return e.state=null,r===bc?wc(e,aN):da},ON=(e,r)=>{let t=r.length;if(Bh(e))return ll;const i=e.state,l=i.wrap;if(l===2||l===1&&i.status!==rd||i.lookahead)return ll;if(l===1&&(e.adler=Fh(e.adler,r,t,0)),i.wrap=0,t>=i.w_size){l===0&&(iu(i.head),i.strstart=0,i.block_start=0,i.insert=0);let g=new Uint8Array(i.w_size);g.set(r.subarray(t-i.w_size,t),0),r=g,t=i.w_size}const f=e.avail_in,c=e.next_in,p=e.input;for(e.avail_in=t,e.next_in=0,e.input=r,od(i);i.lookahead>=Kt;){let g=i.strstart,d=i.lookahead-(Kt-1);do i.ins_h=ou(i,i.ins_h,i.window[g+Kt-1]),i.prev[g&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=g,g++;while(--d);i.strstart=g,i.lookahead=Kt-1,od(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Kt-1,i.match_available=0,e.next_in=c,e.input=p,e.avail_in=f,i.wrap=l,da};var RN=kN,FN=d5,NN=f5,MN=c5,PN=DN,BN=TN,LN=AN,zN=ON,UN="pako deflate (from Nodeca project)",Lh={deflateInit:RN,deflateInit2:FN,deflateReset:NN,deflateResetKeep:MN,deflateSetHeader:PN,deflate:BN,deflateEnd:LN,deflateSetDictionary:zN,deflateInfo:UN};const jN=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var IN=function(e){const r=Array.prototype.slice.call(arguments,1);for(;r.length;){const t=r.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)jN(t,i)&&(e[i]=t[i])}}return e},HN=e=>{let r=0;for(let i=0,l=e.length;i<l;i++)r+=e[i].length;const t=new Uint8Array(r);for(let i=0,l=0,f=e.length;i<f;i++){let c=e[i];t.set(c,l),l+=c.length}return t},gg={assign:IN,flattenChunks:HN};let h5=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h5=!1}const zh=new Uint8Array(256);for(let e=0;e<256;e++)zh[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;zh[254]=zh[254]=1;var VN=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let r,t,i,l,f,c=e.length,p=0;for(l=0;l<c;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),p+=t<128?1:t<2048?2:t<65536?3:4;for(r=new Uint8Array(p),f=0,l=0;f<p;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),t<128?r[f++]=t:t<2048?(r[f++]=192|t>>>6,r[f++]=128|t&63):t<65536?(r[f++]=224|t>>>12,r[f++]=128|t>>>6&63,r[f++]=128|t&63):(r[f++]=240|t>>>18,r[f++]=128|t>>>12&63,r[f++]=128|t>>>6&63,r[f++]=128|t&63);return r};const $N=(e,r)=>{if(r<65534&&e.subarray&&h5)return String.fromCharCode.apply(null,e.length===r?e:e.subarray(0,r));let t="";for(let i=0;i<r;i++)t+=String.fromCharCode(e[i]);return t};var YN=(e,r)=>{const t=r||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,r));let i,l;const f=new Array(t*2);for(l=0,i=0;i<t;){let c=e[i++];if(c<128){f[l++]=c;continue}let p=zh[c];if(p>4){f[l++]=65533,i+=p-1;continue}for(c&=p===2?31:p===3?15:7;p>1&&i<t;)c=c<<6|e[i++]&63,p--;if(p>1){f[l++]=65533;continue}c<65536?f[l++]=c:(c-=65536,f[l++]=55296|c>>10&1023,f[l++]=56320|c&1023)}return $N(f,l)},qN=(e,r)=>{r=r||e.length,r>e.length&&(r=e.length);let t=r-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?r:t+zh[e[t]]>r?t:r},Uh={string2buf:VN,buf2string:YN,utf8border:qN};function GN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var p5=GN;const v5=Object.prototype.toString,{Z_NO_FLUSH:KN,Z_SYNC_FLUSH:WN,Z_FULL_FLUSH:QN,Z_FINISH:ZN,Z_OK:yg,Z_STREAM_END:XN,Z_DEFAULT_COMPRESSION:JN,Z_DEFAULT_STRATEGY:eM,Z_DEFLATED:tM}=xc;function jh(e){this.options=gg.assign({level:JN,method:tM,chunkSize:16384,windowBits:15,memLevel:8,strategy:eM},e||{});let r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p5,this.strm.avail_out=0;let t=Lh.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==yg)throw new Error(yc[t]);if(r.header&&Lh.deflateSetHeader(this.strm,r.header),r.dictionary){let i;if(typeof r.dictionary=="string"?i=Uh.string2buf(r.dictionary):v5.call(r.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(r.dictionary):i=r.dictionary,t=Lh.deflateSetDictionary(this.strm,i),t!==yg)throw new Error(yc[t]);this._dict_set=!0}}jh.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize;let l,f;if(this.ended)return!1;for(r===~~r?f=r:f=r===!0?ZN:KN,typeof e=="string"?t.input=Uh.string2buf(e):v5.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(f===WN||f===QN)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(l=Lh.deflate(t,f),l===XN)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),l=Lh.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===yg;if(t.avail_out===0){this.onData(t.output);continue}if(f>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},jh.prototype.onData=function(e){this.chunks.push(e)},jh.prototype.onEnd=function(e){e===yg&&(this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s2(e,r){const t=new jh(r);if(t.push(e,!0),t.err)throw t.msg||yc[t.err];return t.result}function nM(e,r){return r=r||{},r.raw=!0,s2(e,r)}function rM(e,r){return r=r||{},r.gzip=!0,s2(e,r)}var aM=jh,iM=s2,oM=nM,lM=rM,sM=xc,uM={Deflate:aM,deflate:iM,deflateRaw:oM,gzip:lM,constants:sM};const xg=16209,cM=16191;var fM=function(r,t){let i,l,f,c,p,g,d,m,C,b,x,_,k,E,A,T,D,R,N,z,M,I,Y,B;const P=r.state;i=r.next_in,Y=r.input,l=i+(r.avail_in-5),f=r.next_out,B=r.output,c=f-(t-r.avail_out),p=f+(r.avail_out-257),g=P.dmax,d=P.wsize,m=P.whave,C=P.wnext,b=P.window,x=P.hold,_=P.bits,k=P.lencode,E=P.distcode,A=(1<<P.lenbits)-1,T=(1<<P.distbits)-1;e:do{_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=k[x&A];t:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R===0)B[f++]=D&65535;else if(R&16){N=D&65535,R&=15,R&&(_<R&&(x+=Y[i++]<<_,_+=8),N+=x&(1<<R)-1,x>>>=R,_-=R),_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=E[x&T];n:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R&16){if(z=D&65535,R&=15,_<R&&(x+=Y[i++]<<_,_+=8,_<R&&(x+=Y[i++]<<_,_+=8)),z+=x&(1<<R)-1,z>g){r.msg="invalid distance too far back",P.mode=xg;break e}if(x>>>=R,_-=R,R=f-c,z>R){if(R=z-R,R>m&&P.sane){r.msg="invalid distance too far back",P.mode=xg;break e}if(M=0,I=b,C===0){if(M+=d-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}else if(C<R){if(M+=d+C-R,R-=C,R<N){N-=R;do B[f++]=b[M++];while(--R);if(M=0,C<N){R=C,N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}}else if(M+=C-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}for(;N>2;)B[f++]=I[M++],B[f++]=I[M++],B[f++]=I[M++],N-=3;N&&(B[f++]=I[M++],N>1&&(B[f++]=I[M++]))}else{M=f-z;do B[f++]=B[M++],B[f++]=B[M++],B[f++]=B[M++],N-=3;while(N>2);N&&(B[f++]=B[M++],N>1&&(B[f++]=B[M++]))}}else if(R&64){r.msg="invalid distance code",P.mode=xg;break e}else{D=E[(D&65535)+(x&(1<<R)-1)];continue n}break}}else if(R&64)if(R&32){P.mode=cM;break e}else{r.msg="invalid literal/length code",P.mode=xg;break e}else{D=k[(D&65535)+(x&(1<<R)-1)];continue t}break}}while(i<l&&f<p);N=_>>3,i-=N,_-=N<<3,x&=(1<<_)-1,r.next_in=i,r.next_out=f,r.avail_in=i<l?5+(l-i):5-(i-l),r.avail_out=f<p?257+(p-f):257-(f-p),P.hold=x,P.bits=_};const sd=15,m5=852,g5=592,y5=0,u2=1,x5=2,dM=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),hM=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pM=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),vM=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Ih=(e,r,t,i,l,f,c,p)=>{const g=p.bits;let d=0,m=0,C=0,b=0,x=0,_=0,k=0,E=0,A=0,T=0,D,R,N,z,M,I=null,Y;const B=new Uint16Array(sd+1),P=new Uint16Array(sd+1);let U=null,H,V,K;for(d=0;d<=sd;d++)B[d]=0;for(m=0;m<i;m++)B[r[t+m]]++;for(x=g,b=sd;b>=1&&B[b]===0;b--);if(x>b&&(x=b),b===0)return l[f++]=1<<24|64<<16|0,l[f++]=1<<24|64<<16|0,p.bits=1,0;for(C=1;C<b&&B[C]===0;C++);for(x<C&&(x=C),E=1,d=1;d<=sd;d++)if(E<<=1,E-=B[d],E<0)return-1;if(E>0&&(e===y5||b!==1))return-1;for(P[1]=0,d=1;d<sd;d++)P[d+1]=P[d]+B[d];for(m=0;m<i;m++)r[t+m]!==0&&(c[P[r[t+m]]++]=m);if(e===y5?(I=U=c,Y=20):e===u2?(I=dM,U=hM,Y=257):(I=pM,U=vM,Y=0),T=0,m=0,d=C,M=f,_=x,k=0,N=-1,A=1<<x,z=A-1,e===u2&&A>m5||e===x5&&A>g5)return 1;for(;;){H=d-k,c[m]+1<Y?(V=0,K=c[m]):c[m]>=Y?(V=U[c[m]-Y],K=I[c[m]-Y]):(V=32+64,K=0),D=1<<d-k,R=1<<_,C=R;do R-=D,l[M+(T>>k)+R]=H<<24|V<<16|K|0;while(R!==0);for(D=1<<d-1;T&D;)D>>=1;if(D!==0?(T&=D-1,T+=D):T=0,m++,--B[d]===0){if(d===b)break;d=r[t+c[m]]}if(d>x&&(T&z)!==N){for(k===0&&(k=x),M+=C,_=d-k,E=1<<_;_+k<b&&(E-=B[_+k],!(E<=0));)_++,E<<=1;if(A+=1<<_,e===u2&&A>m5||e===x5&&A>g5)return 1;N=T&z,l[N]=x<<24|_<<16|M-f|0}}return T!==0&&(l[M+T]=d-k<<24|64<<16|0),p.bits=x,0};const mM=0,b5=1,C5=2,{Z_FINISH:w5,Z_BLOCK:gM,Z_TREES:bg,Z_OK:_c,Z_STREAM_END:yM,Z_NEED_DICT:xM,Z_STREAM_ERROR:Xi,Z_DATA_ERROR:_5,Z_MEM_ERROR:S5,Z_BUF_ERROR:bM,Z_DEFLATED:E5}=xc,Cg=16180,D5=16181,k5=16182,T5=16183,A5=16184,O5=16185,R5=16186,F5=16187,N5=16188,M5=16189,wg=16190,is=16191,c2=16192,P5=16193,f2=16194,B5=16195,L5=16196,z5=16197,U5=16198,_g=16199,Sg=16200,j5=16201,I5=16202,H5=16203,V5=16204,$5=16205,d2=16206,Y5=16207,q5=16208,er=16209,G5=16210,K5=16211,CM=852,wM=592,_M=15,W5=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function SM(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Sc=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.mode<Cg||r.mode>K5?1:0},Q5=e=>{if(Sc(e))return Xi;const r=e.state;return e.total_in=e.total_out=r.total=0,e.msg="",r.wrap&&(e.adler=r.wrap&1),r.mode=Cg,r.last=0,r.havedict=0,r.flags=-1,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new Int32Array(CM),r.distcode=r.distdyn=new Int32Array(wM),r.sane=1,r.back=-1,_c},Z5=e=>{if(Sc(e))return Xi;const r=e.state;return r.wsize=0,r.whave=0,r.wnext=0,Q5(e)},X5=(e,r)=>{let t;if(Sc(e))return Xi;const i=e.state;return r<0?(t=0,r=-r):(t=(r>>4)+5,r<48&&(r&=15)),r&&(r<8||r>15)?Xi:(i.window!==null&&i.wbits!==r&&(i.window=null),i.wrap=t,i.wbits=r,Z5(e))},J5=(e,r)=>{if(!e)return Xi;const t=new SM;e.state=t,t.strm=e,t.window=null,t.mode=Cg;const i=X5(e,r);return i!==_c&&(e.state=null),i},EM=e=>J5(e,_M);let e6=!0,h2,p2;const DM=e=>{if(e6){h2=new Int32Array(512),p2=new Int32Array(32);let r=0;for(;r<144;)e.lens[r++]=8;for(;r<256;)e.lens[r++]=9;for(;r<280;)e.lens[r++]=7;for(;r<288;)e.lens[r++]=8;for(Ih(b5,e.lens,0,288,h2,0,e.work,{bits:9}),r=0;r<32;)e.lens[r++]=5;Ih(C5,e.lens,0,32,p2,0,e.work,{bits:5}),e6=!1}e.lencode=h2,e.lenbits=9,e.distcode=p2,e.distbits=5},t6=(e,r,t,i)=>{let l;const f=e.state;return f.window===null&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new Uint8Array(f.wsize)),i>=f.wsize?(f.window.set(r.subarray(t-f.wsize,t),0),f.wnext=0,f.whave=f.wsize):(l=f.wsize-f.wnext,l>i&&(l=i),f.window.set(r.subarray(t-i,t-i+l),f.wnext),i-=l,i?(f.window.set(r.subarray(t-i,t),0),f.wnext=i,f.whave=f.wsize):(f.wnext+=l,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=l))),0},kM=(e,r)=>{let t,i,l,f,c,p,g,d,m,C,b,x,_,k,E=0,A,T,D,R,N,z,M,I;const Y=new Uint8Array(4);let B,P;const U=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Sc(e)||!e.output||!e.input&&e.avail_in!==0)return Xi;t=e.state,t.mode===is&&(t.mode=c2),c=e.next_out,l=e.output,g=e.avail_out,f=e.next_in,i=e.input,p=e.avail_in,d=t.hold,m=t.bits,C=p,b=g,I=_c;e:for(;;)switch(t.mode){case Cg:if(t.wrap===0){t.mode=c2;break}for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.wrap&2&&d===35615){t.wbits===0&&(t.wbits=15),t.check=0,Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0),d=0,m=0,t.mode=D5;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",t.mode=er;break}if((d&15)!==E5){e.msg="unknown compression method",t.mode=er;break}if(d>>>=4,m-=4,M=(d&15)+8,t.wbits===0&&(t.wbits=M),M>15||M>t.wbits){e.msg="invalid window size",t.mode=er;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=d&512?M5:is,d=0,m=0;break;case D5:for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.flags=d,(t.flags&255)!==E5){e.msg="unknown compression method",t.mode=er;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=er;break}t.head&&(t.head.text=d>>8&1),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0)),d=0,m=0,t.mode=k5;case k5:for(;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.head&&(t.head.time=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,Y[2]=d>>>16&255,Y[3]=d>>>24&255,t.check=Xr(t.check,Y,4,0)),d=0,m=0,t.mode=T5;case T5:for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.head&&(t.head.xflags=d&255,t.head.os=d>>8),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0)),d=0,m=0,t.mode=A5;case A5:if(t.flags&1024){for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.length=d,t.head&&(t.head.extra_len=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0)),d=0,m=0}else t.head&&(t.head.extra=null);t.mode=O5;case O5:if(t.flags&1024&&(x=t.length,x>p&&(x=p),x&&(t.head&&(M=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(f,f+x),M)),t.flags&512&&t.wrap&4&&(t.check=Xr(t.check,i,x,f)),p-=x,f+=x,t.length-=x),t.length))break e;t.length=0,t.mode=R5;case R5:if(t.flags&2048){if(p===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.name+=String.fromCharCode(M));while(M&&x<p);if(t.flags&512&&t.wrap&4&&(t.check=Xr(t.check,i,x,f)),p-=x,f+=x,M)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=F5;case F5:if(t.flags&4096){if(p===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.comment+=String.fromCharCode(M));while(M&&x<p);if(t.flags&512&&t.wrap&4&&(t.check=Xr(t.check,i,x,f)),p-=x,f+=x,M)break e}else t.head&&(t.head.comment=null);t.mode=N5;case N5:if(t.flags&512){for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.wrap&4&&d!==(t.check&65535)){e.msg="header crc mismatch",t.mode=er;break}d=0,m=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=is;break;case M5:for(;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}e.adler=t.check=W5(d),d=0,m=0,t.mode=wg;case wg:if(t.havedict===0)return e.next_out=c,e.avail_out=g,e.next_in=f,e.avail_in=p,t.hold=d,t.bits=m,xM;e.adler=t.check=1,t.mode=is;case is:if(r===gM||r===bg)break e;case c2:if(t.last){d>>>=m&7,m-=m&7,t.mode=d2;break}for(;m<3;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}switch(t.last=d&1,d>>>=1,m-=1,d&3){case 0:t.mode=P5;break;case 1:if(DM(t),t.mode=_g,r===bg){d>>>=2,m-=2;break e}break;case 2:t.mode=L5;break;case 3:e.msg="invalid block type",t.mode=er}d>>>=2,m-=2;break;case P5:for(d>>>=m&7,m-=m&7;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",t.mode=er;break}if(t.length=d&65535,d=0,m=0,t.mode=f2,r===bg)break e;case f2:t.mode=B5;case B5:if(x=t.length,x){if(x>p&&(x=p),x>g&&(x=g),x===0)break e;l.set(i.subarray(f,f+x),c),p-=x,f+=x,g-=x,c+=x,t.length-=x;break}t.mode=is;break;case L5:for(;m<14;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.nlen=(d&31)+257,d>>>=5,m-=5,t.ndist=(d&31)+1,d>>>=5,m-=5,t.ncode=(d&15)+4,d>>>=4,m-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=er;break}t.have=0,t.mode=z5;case z5:for(;t.have<t.ncode;){for(;m<3;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.lens[U[t.have++]]=d&7,d>>>=3,m-=3}for(;t.have<19;)t.lens[U[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,B={bits:t.lenbits},I=Ih(mM,t.lens,0,19,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid code lengths set",t.mode=er;break}t.have=0,t.mode=U5;case U5:for(;t.have<t.nlen+t.ndist;){for(;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(D<16)d>>>=A,m-=A,t.lens[t.have++]=D;else{if(D===16){for(P=A+2;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(d>>>=A,m-=A,t.have===0){e.msg="invalid bit length repeat",t.mode=er;break}M=t.lens[t.have-1],x=3+(d&3),d>>>=2,m-=2}else if(D===17){for(P=A+3;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=A,m-=A,M=0,x=3+(d&7),d>>>=3,m-=3}else{for(P=A+7;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=A,m-=A,M=0,x=11+(d&127),d>>>=7,m-=7}if(t.have+x>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=er;break}for(;x--;)t.lens[t.have++]=M}}if(t.mode===er)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=er;break}if(t.lenbits=9,B={bits:t.lenbits},I=Ih(b5,t.lens,0,t.nlen,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid literal/lengths set",t.mode=er;break}if(t.distbits=6,t.distcode=t.distdyn,B={bits:t.distbits},I=Ih(C5,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,B),t.distbits=B.bits,I){e.msg="invalid distances set",t.mode=er;break}if(t.mode=_g,r===bg)break e;case _g:t.mode=Sg;case Sg:if(p>=6&&g>=258){e.next_out=c,e.avail_out=g,e.next_in=f,e.avail_in=p,t.hold=d,t.bits=m,fM(e,b),c=e.next_out,l=e.output,g=e.avail_out,f=e.next_in,i=e.input,p=e.avail_in,d=t.hold,m=t.bits,t.mode===is&&(t.back=-1);break}for(t.back=0;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(T&&!(T&240)){for(R=A,N=T,z=D;E=t.lencode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=R,m-=R,t.back+=R}if(d>>>=A,m-=A,t.back+=A,t.length=D,T===0){t.mode=$5;break}if(T&32){t.back=-1,t.mode=is;break}if(T&64){e.msg="invalid literal/length code",t.mode=er;break}t.extra=T&15,t.mode=j5;case j5:if(t.extra){for(P=t.extra;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.length+=d&(1<<t.extra)-1,d>>>=t.extra,m-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=I5;case I5:for(;E=t.distcode[d&(1<<t.distbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(!(T&240)){for(R=A,N=T,z=D;E=t.distcode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=R,m-=R,t.back+=R}if(d>>>=A,m-=A,t.back+=A,T&64){e.msg="invalid distance code",t.mode=er;break}t.offset=D,t.extra=T&15,t.mode=H5;case H5:if(t.extra){for(P=t.extra;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.offset+=d&(1<<t.extra)-1,d>>>=t.extra,m-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=er;break}t.mode=V5;case V5:if(g===0)break e;if(x=b-g,t.offset>x){if(x=t.offset-x,x>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=er;break}x>t.wnext?(x-=t.wnext,_=t.wsize-x):_=t.wnext-x,x>t.length&&(x=t.length),k=t.window}else k=l,_=c-t.offset,x=t.length;x>g&&(x=g),g-=x,t.length-=x;do l[c++]=k[_++];while(--x);t.length===0&&(t.mode=Sg);break;case $5:if(g===0)break e;l[c++]=t.length,g--,t.mode=Sg;break;case d2:if(t.wrap){for(;m<32;){if(p===0)break e;p--,d|=i[f++]<<m,m+=8}if(b-=g,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Xr(t.check,l,b,c-b):Fh(t.check,l,b,c-b)),b=g,t.wrap&4&&(t.flags?d:W5(d))!==t.check){e.msg="incorrect data check",t.mode=er;break}d=0,m=0}t.mode=Y5;case Y5:if(t.wrap&&t.flags){for(;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.wrap&4&&d!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=er;break}d=0,m=0}t.mode=q5;case q5:I=yM;break e;case er:I=_5;break e;case G5:return S5;case K5:default:return Xi}return e.next_out=c,e.avail_out=g,e.next_in=f,e.avail_in=p,t.hold=d,t.bits=m,(t.wsize||b!==e.avail_out&&t.mode<er&&(t.mode<d2||r!==w5))&&t6(e,e.output,e.next_out,b-e.avail_out),C-=e.avail_in,b-=e.avail_out,e.total_in+=C,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Xr(t.check,l,b,e.next_out-b):Fh(t.check,l,b,e.next_out-b)),e.data_type=t.bits+(t.last?64:0)+(t.mode===is?128:0)+(t.mode===_g||t.mode===f2?256:0),(C===0&&b===0||r===w5)&&I===_c&&(I=bM),I},TM=e=>{if(Sc(e))return Xi;let r=e.state;return r.window&&(r.window=null),e.state=null,_c},AM=(e,r)=>{if(Sc(e))return Xi;const t=e.state;return t.wrap&2?(t.head=r,r.done=!1,_c):Xi},OM=(e,r)=>{const t=r.length;let i,l,f;return Sc(e)||(i=e.state,i.wrap!==0&&i.mode!==wg)?Xi:i.mode===wg&&(l=1,l=Fh(l,r,t,0),l!==i.check)?_5:(f=t6(e,r,t,t),f?(i.mode=G5,S5):(i.havedict=1,_c))};var RM=Z5,FM=X5,NM=Q5,MM=EM,PM=J5,BM=kM,LM=TM,zM=AM,UM=OM,jM="pako inflate (from Nodeca project)",os={inflateReset:RM,inflateReset2:FM,inflateResetKeep:NM,inflateInit:MM,inflateInit2:PM,inflate:BM,inflateEnd:LM,inflateGetHeader:zM,inflateSetDictionary:UM,inflateInfo:jM};function IM(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var HM=IM;const n6=Object.prototype.toString,{Z_NO_FLUSH:VM,Z_FINISH:$M,Z_OK:Hh,Z_STREAM_END:v2,Z_NEED_DICT:m2,Z_STREAM_ERROR:YM,Z_DATA_ERROR:r6,Z_MEM_ERROR:qM}=xc;function Vh(e){this.options=gg.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)&&(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(r.windowBits&15||(r.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p5,this.strm.avail_out=0;let t=os.inflateInit2(this.strm,r.windowBits);if(t!==Hh)throw new Error(yc[t]);if(this.header=new HM,os.inflateGetHeader(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=Uh.string2buf(r.dictionary):n6.call(r.dictionary)==="[object ArrayBuffer]"&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(t=os.inflateSetDictionary(this.strm,r.dictionary),t!==Hh)))throw new Error(yc[t])}Vh.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize,l=this.options.dictionary;let f,c,p;if(this.ended)return!1;for(r===~~r?c=r:c=r===!0?$M:VM,n6.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),f=os.inflate(t,c),f===m2&&l&&(f=os.inflateSetDictionary(t,l),f===Hh?f=os.inflate(t,c):f===r6&&(f=m2));t.avail_in>0&&f===v2&&t.state.wrap>0&&e[t.next_in]!==0;)os.inflateReset(t),f=os.inflate(t,c);switch(f){case YM:case r6:case m2:case qM:return this.onEnd(f),this.ended=!0,!1}if(p=t.avail_out,t.next_out&&(t.avail_out===0||f===v2))if(this.options.to==="string"){let g=Uh.utf8border(t.output,t.next_out),d=t.next_out-g,m=Uh.buf2string(t.output,g);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(g,g+d),0),this.onData(m)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(f===Hh&&p===0)){if(f===v2)return f=os.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},Vh.prototype.onData=function(e){this.chunks.push(e)},Vh.prototype.onEnd=function(e){e===Hh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g2(e,r){const t=new Vh(r);if(t.push(e),t.err)throw t.msg||yc[t.err];return t.result}function GM(e,r){return r=r||{},r.raw=!0,g2(e,r)}var KM=Vh,WM=g2,QM=GM,ZM=g2,XM=xc,JM={Inflate:KM,inflate:WM,inflateRaw:QM,ungzip:ZM,constants:XM};const{Deflate:eP,deflate:tP,deflateRaw:nP,gzip:rP}=uM,{Inflate:aP,inflate:iP,inflateRaw:oP,ungzip:lP}=JM;var sP=eP,uP=tP,cP=nP,fP=rP,dP=aP,hP=iP,pP=oP,vP=lP,mP=xc,gP={Deflate:sP,deflate:uP,deflateRaw:cP,gzip:fP,Inflate:dP,inflate:hP,inflateRaw:pP,ungzip:vP,constants:mP},Ue={};Ue.toRGBA8=function(e){var r=e.width,t=e.height;if(e.tabs.acTL==null)return[Ue.toRGBA8.decodeImage(e.data,r,t,e).buffer];var i=[];e.frames[0].data==null&&(e.frames[0].data=e.data);for(var l=r*t*4,f=new Uint8Array(l),c=new Uint8Array(l),p=new Uint8Array(l),g=0;g<e.frames.length;g++){var d=e.frames[g],m=d.rect.x,C=d.rect.y,b=d.rect.width,x=d.rect.height,_=Ue.toRGBA8.decodeImage(d.data,b,x,e);if(g!=0)for(var k=0;k<l;k++)p[k]=f[k];if(d.blend==0?Ue._copyTile(_,b,x,f,r,t,m,C,0):d.blend==1&&Ue._copyTile(_,b,x,f,r,t,m,C,1),i.push(f.buffer.slice(0)),d.dispose!=0){if(d.dispose==1)Ue._copyTile(c,b,x,f,r,t,m,C,0);else if(d.dispose==2)for(var k=0;k<l;k++)f[k]=p[k]}}return i},Ue.toRGBA8.decodeImage=function(e,r,t,i){var l=r*t,f=Ue.decode._getBPP(i),c=Math.ceil(r*f/8),p=new Uint8Array(l*4),g=new Uint32Array(p.buffer),d=i.ctype,m=i.depth,C=Ue._bin.readUshort;if(d==6){var b=l<<2;if(m==8)for(var x=0;x<b;x+=4)p[x]=e[x],p[x+1]=e[x+1],p[x+2]=e[x+2],p[x+3]=e[x+3];if(m==16)for(var x=0;x<b;x++)p[x]=e[x<<1]}else if(d==2){var _=i.tabs.tRNS;if(_==null){if(m==8)for(var x=0;x<l;x++){var k=x*3;g[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k]}if(m==16)for(var x=0;x<l;x++){var k=x*6;g[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k]}}else{var E=_[0],A=_[1],T=_[2];if(m==8)for(var x=0;x<l;x++){var D=x<<2,k=x*3;g[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k],e[k]==E&&e[k+1]==A&&e[k+2]==T&&(p[D+3]=0)}if(m==16)for(var x=0;x<l;x++){var D=x<<2,k=x*6;g[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k],C(e,k)==E&&C(e,k+2)==A&&C(e,k+4)==T&&(p[D+3]=0)}}}else if(d==3){var R=i.tabs.PLTE,N=i.tabs.tRNS,z=N?N.length:0;if(m==1)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>3)]>>7-((x&7)<<0)&1,P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}if(m==2)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>2)]>>6-((x&3)<<1)&3,P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}if(m==4)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>1)]>>4-((x&1)<<2)&15,P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}if(m==8)for(var x=0;x<l;x++){var D=x<<2,B=e[x],P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}}else if(d==4){if(m==8)for(var x=0;x<l;x++){var D=x<<2,U=x<<1,H=e[U];p[D]=H,p[D+1]=H,p[D+2]=H,p[D+3]=e[U+1]}if(m==16)for(var x=0;x<l;x++){var D=x<<2,U=x<<2,H=e[U];p[D]=H,p[D+1]=H,p[D+2]=H,p[D+3]=e[U+2]}}else if(d==0)for(var E=i.tabs.tRNS?i.tabs.tRNS:-1,M=0;M<t;M++){var V=M*c,K=M*r;if(m==1)for(var ee=0;ee<r;ee++){var H=255*(e[V+(ee>>>3)]>>>7-(ee&7)&1),J=H==E*255?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==2)for(var ee=0;ee<r;ee++){var H=85*(e[V+(ee>>>2)]>>>6-((ee&3)<<1)&3),J=H==E*85?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==4)for(var ee=0;ee<r;ee++){var H=17*(e[V+(ee>>>1)]>>>4-((ee&1)<<2)&15),J=H==E*17?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==8)for(var ee=0;ee<r;ee++){var H=e[V+ee],J=H==E?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==16)for(var ee=0;ee<r;ee++){var H=e[V+(ee<<1)],J=C(e,V+(ee<<x))==E?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}}return p},Ue.decode=function(e){for(var r=new Uint8Array(e),t=8,i=Ue._bin,l=i.readUshort,f=i.readUint,c={tabs:{},frames:[]},p=new Uint8Array(r.length),g=0,d,m=0,C=[137,80,78,71,13,10,26,10],b=0;b<8;b++)if(r[b]!=C[b])throw"The input is not a PNG file!";for(;t<r.length;){var x=i.readUint(r,t);t+=4;var _=i.readASCII(r,t,4);if(t+=4,_=="IHDR")Ue.decode._IHDR(r,t,c);else if(_=="CgBI")c.tabs[_]=r.slice(t,t+4);else if(_=="IDAT"){for(var b=0;b<x;b++)p[g+b]=r[t+b];g+=x}else if(_=="acTL")c.tabs[_]={num_frames:f(r,t),num_plays:f(r,t+4)},d=new Uint8Array(r.length);else if(_=="fcTL"){if(m!=0){var k=c.frames[c.frames.length-1];k.data=Ue.decode._decompress(c,d.slice(0,m),k.rect.width,k.rect.height),m=0}var E={x:f(r,t+12),y:f(r,t+16),width:f(r,t+4),height:f(r,t+8)},A=l(r,t+22);A=l(r,t+20)/(A==0?100:A);var T={rect:E,delay:Math.round(A*1e3),dispose:r[t+24],blend:r[t+25]};c.frames.push(T)}else if(_=="fdAT"){for(var b=0;b<x-4;b++)d[m+b]=r[t+b+4];m+=x-4}else if(_=="pHYs")c.tabs[_]=[i.readUint(r,t),i.readUint(r,t+4),r[t+8]];else if(_=="cHRM"){c.tabs[_]=[];for(var b=0;b<8;b++)c.tabs[_].push(i.readUint(r,t+b*4))}else if(_=="tEXt"||_=="zTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=i.nextZero(r,t),R=i.readASCII(r,t,D-t),N,z=t+x-D-1;if(_=="tEXt")N=i.readASCII(r,D+1,z);else{var M=Ue.decode._inflate(r.slice(D+2,D+2+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="iTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=0,I=t;D=i.nextZero(r,I);var R=i.readASCII(r,I,D-I);I=D+1;var Y=r[I];r[I+1],I+=2,D=i.nextZero(r,I),i.readASCII(r,I,D-I),I=D+1,D=i.nextZero(r,I),i.readUTF8(r,I,D-I),I=D+1;var N,z=x-(I-t);if(Y==0)N=i.readUTF8(r,I,z);else{var M=Ue.decode._inflate(r.slice(I,I+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="PLTE")c.tabs[_]=i.readBytes(r,t,x);else if(_=="hIST"){var B=c.tabs.PLTE.length/3;c.tabs[_]=[];for(var b=0;b<B;b++)c.tabs[_].push(l(r,t+b*2))}else if(_=="tRNS")c.ctype==3?c.tabs[_]=i.readBytes(r,t,x):c.ctype==0?c.tabs[_]=l(r,t):c.ctype==2&&(c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]);else if(_=="gAMA")c.tabs[_]=i.readUint(r,t)/1e5;else if(_=="sRGB")c.tabs[_]=r[t];else if(_=="bKGD")c.ctype==0||c.ctype==4?c.tabs[_]=[l(r,t)]:c.ctype==2||c.ctype==6?c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]:c.ctype==3&&(c.tabs[_]=r[t]);else if(_=="IEND")break;t+=x,i.readUint(r,t),t+=4}if(m!=0){var k=c.frames[c.frames.length-1];k.data=Ue.decode._decompress(c,d.slice(0,m),k.rect.width,k.rect.height),m=0}return c.data=Ue.decode._decompress(c,p,c.width,c.height),delete c.compress,delete c.interlace,delete c.filter,c},Ue.decode._decompress=function(e,r,t,i){var l=Ue.decode._getBPP(e),f=Math.ceil(t*l/8),c=new Uint8Array((f+1+e.interlace)*i);return e.tabs.CgBI?r=Ue.inflateRaw(r,c):r=Ue.decode._inflate(r,c),e.interlace==0?r=Ue.decode._filterZero(r,e,0,t,i):e.interlace==1&&(r=Ue.decode._readInterlace(r,e)),r},Ue.decode._inflate=function(e,r){var t=Ue.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),r);return t},Ue.inflateRaw=function(){var e={};return e.H={},e.H.N=function(r,t){var i=Uint8Array,l=0,f=0,c=0,p=0,g=0,d=0,m=0,C=0,b=0,x,_;if(r[0]==3&&r[1]==0)return t||new i(0);var k=e.H,E=k.b,A=k.e,T=k.R,D=k.n,R=k.A,N=k.Z,z=k.m,M=t==null;for(M&&(t=new i(r.length>>>2<<3));l==0;){if(l=E(r,b,1),f=E(r,b+1,2),b+=3,f==0){b&7&&(b+=8-(b&7));var I=(b>>>3)+4,Y=r[I-4]|r[I-3]<<8;M&&(t=e.H.W(t,C+Y)),t.set(new i(r.buffer,r.byteOffset+I,Y),C),b=I+Y<<3,C+=Y;continue}if(M&&(t=e.H.W(t,C+(1<<17))),f==1&&(x=z.J,_=z.h,d=(1<<9)-1,m=(1<<5)-1),f==2){c=A(r,b,5)+257,p=A(r,b+5,5)+1,g=A(r,b+10,4)+4,b+=14;for(var B=1,P=0;P<38;P+=2)z.Q[P]=0,z.Q[P+1]=0;for(var P=0;P<g;P++){var U=A(r,b+P*3,3);z.Q[(z.X[P]<<1)+1]=U,U>B&&(B=U)}b+=3*g,D(z.Q,B),R(z.Q,B,z.u),x=z.w,_=z.d,b=T(z.u,(1<<B)-1,c+p,r,b,z.v);var H=k.V(z.v,0,c,z.C);d=(1<<H)-1;var V=k.V(z.v,c,p,z.D);m=(1<<V)-1,D(z.C,H),R(z.C,H,x),D(z.D,V),R(z.D,V,_)}for(;;){var K=x[N(r,b)&d];b+=K&15;var ee=K>>>4;if(!(ee>>>8))t[C++]=ee;else{if(ee==256)break;var J=C+ee-254;if(ee>264){var q=z.q[ee-257];J=C+(q>>>3)+A(r,b,q&7),b+=q&7}var te=_[N(r,b)&m];b+=te&15;var Z=te>>>4,$=z.c[Z],ne=($>>>4)+E(r,b,$&15);for(b+=$&15;C<J;)t[C]=t[C++-ne],t[C]=t[C++-ne],t[C]=t[C++-ne],t[C]=t[C++-ne];C=J}}}return t.length==C?t:t.slice(0,C)},e.H.W=function(r,t){var i=r.length;if(t<=i)return r;var l=new Uint8Array(i<<1);return l.set(r,0),l},e.H.R=function(r,t,i,l,f,c){for(var p=e.H.e,g=e.H.Z,d=0;d<i;){var m=r[g(l,f)&t];f+=m&15;var C=m>>>4;if(C<=15)c[d]=C,d++;else{var b=0,x=0;C==16?(x=3+p(l,f,2),f+=2,b=c[d-1]):C==17?(x=3+p(l,f,3),f+=3):C==18&&(x=11+p(l,f,7),f+=7);for(var _=d+x;d<_;)c[d]=b,d++}}return f},e.H.V=function(r,t,i,l){for(var f=0,c=0,p=l.length>>>1;c<i;){var g=r[c+t];l[c<<1]=0,l[(c<<1)+1]=g,g>f&&(f=g),c++}for(;c<p;)l[c<<1]=0,l[(c<<1)+1]=0,c++;return f},e.H.n=function(r,t){for(var i=e.H.m,l=r.length,f,c,p,g,d,m=i.j,g=0;g<=t;g++)m[g]=0;for(g=1;g<l;g+=2)m[r[g]]++;var C=i.K;for(f=0,m[0]=0,c=1;c<=t;c++)f=f+m[c-1]<<1,C[c]=f;for(p=0;p<l;p+=2)d=r[p+1],d!=0&&(r[p]=C[d],C[d]++)},e.H.A=function(r,t,i){for(var l=r.length,f=e.H.m,c=f.r,p=0;p<l;p+=2)if(r[p+1]!=0)for(var g=p>>1,d=r[p+1],m=g<<4|d,C=t-d,b=r[p]<<C,x=b+(1<<C);b!=x;){var _=c[b]>>>15-t;i[_]=m,b++}},e.H.l=function(r,t){for(var i=e.H.m.r,l=15-t,f=0;f<r.length;f+=2){var c=r[f]<<t-r[f+1];r[f]=i[c]>>>l}},e.H.M=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8},e.H.I=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8,r[l+2]|=i>>>16},e.H.e=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8)>>>(t&7)&(1<<i)-1},e.H.b=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)&(1<<i)-1},e.H.Z=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16|r[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){var r=Uint16Array,t=Uint32Array;return{K:new r(16),j:new r(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new r(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new r(512),_:[],h:new r(32),$:[],w:new r(32768),C:[],v:[],d:new r(32768),D:[],u:new r(512),Q:[],r:new r(1<<15),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new r(1<<16),g:new r(1<<15)}}(),function(){for(var r=e.H.m,t=1<<15,i=0;i<t;i++){var l=i;l=(l&2863311530)>>>1|(l&1431655765)<<1,l=(l&3435973836)>>>2|(l&858993459)<<2,l=(l&4042322160)>>>4|(l&252645135)<<4,l=(l&4278255360)>>>8|(l&16711935)<<8,r.r[i]=(l>>>16|l<<16)>>>17}function f(c,p,g){for(;p--!=0;)c.push(0,g)}for(var i=0;i<32;i++)r.q[i]=r.S[i]<<3|r.T[i],r.c[i]=r.p[i]<<4|r.z[i];f(r._,144,8),f(r._,255-143,9),f(r._,279-255,7),f(r._,287-279,8),e.H.n(r._,9),e.H.A(r._,9,r.J),e.H.l(r._,9),f(r.$,32,5),e.H.n(r.$,5),e.H.A(r.$,5,r.h),e.H.l(r.$,5),f(r.Q,19,0),f(r.C,286,0),f(r.D,30,0),f(r.v,320,0)}(),e.H.N}(),Ue.decode._readInterlace=function(e,r){for(var t=r.width,i=r.height,l=Ue.decode._getBPP(r),f=l>>3,c=Math.ceil(t*l/8),p=new Uint8Array(i*c),g=0,d=[0,0,4,0,2,0,1],m=[0,4,0,2,0,1,0],C=[8,8,8,4,4,2,2],b=[8,8,4,4,2,2,1],x=0;x<7;){for(var _=C[x],k=b[x],E=0,A=0,T=d[x];T<i;)T+=_,A++;for(var D=m[x];D<t;)D+=k,E++;var R=Math.ceil(E*l/8);Ue.decode._filterZero(e,r,g,E,A);for(var N=0,z=d[x];z<i;){for(var M=m[x],I=g+N*R<<3;M<t;){if(l==1){var Y=e[I>>3];Y=Y>>7-(I&7)&1,p[z*c+(M>>3)]|=Y<<7-((M&7)<<0)}if(l==2){var Y=e[I>>3];Y=Y>>6-(I&7)&3,p[z*c+(M>>2)]|=Y<<6-((M&3)<<1)}if(l==4){var Y=e[I>>3];Y=Y>>4-(I&7)&15,p[z*c+(M>>1)]|=Y<<4-((M&1)<<2)}if(l>=8)for(var B=z*c+M*f,P=0;P<f;P++)p[B+P]=e[(I>>3)+P];I+=l,M+=k}N++,z+=_}E*A!=0&&(g+=A*(1+R)),x=x+1}return p},Ue.decode._getBPP=function(e){var r=[1,null,3,1,2,null,4][e.ctype];return r*e.depth},Ue.decode._filterZero=function(e,r,t,i,l){var f=Ue.decode._getBPP(r),c=Math.ceil(i*f/8),p=Ue.decode._paeth;f=Math.ceil(f/8);var g=0,d=1,m=e[t],C=0;if(m>1&&(e[t]=[0,0,1][m-2]),m==3)for(C=f;C<c;C++)e[C+1]=e[C+1]+(e[C+1-f]>>>1)&255;for(var b=0;b<l;b++)if(g=t+b*c,d=g+b+1,m=e[d-1],C=0,m==0)for(;C<c;C++)e[g+C]=e[d+C];else if(m==1){for(;C<f;C++)e[g+C]=e[d+C];for(;C<c;C++)e[g+C]=e[d+C]+e[g+C-f]}else if(m==2)for(;C<c;C++)e[g+C]=e[d+C]+e[g+C-c];else if(m==3){for(;C<f;C++)e[g+C]=e[d+C]+(e[g+C-c]>>>1);for(;C<c;C++)e[g+C]=e[d+C]+(e[g+C-c]+e[g+C-f]>>>1)}else{for(;C<f;C++)e[g+C]=e[d+C]+p(0,e[g+C-c],0);for(;C<c;C++)e[g+C]=e[d+C]+p(e[g+C-f],e[g+C-c],e[g+C-f-c])}return e},Ue.decode._paeth=function(e,r,t){var i=e+r-t,l=i-e,f=i-r,c=i-t;return l*l<=f*f&&l*l<=c*c?e:f*f<=c*c?r:t},Ue.decode._IHDR=function(e,r,t){var i=Ue._bin;t.width=i.readUint(e,r),r+=4,t.height=i.readUint(e,r),r+=4,t.depth=e[r],r++,t.ctype=e[r],r++,t.compress=e[r],r++,t.filter=e[r],r++,t.interlace=e[r],r++},Ue._bin={nextZero:function(e,r){for(;e[r]!=0;)r++;return r},readUshort:function(e,r){return e[r]<<8|e[r+1]},writeUshort:function(e,r,t){e[r]=t>>8&255,e[r+1]=t&255},readUint:function(e,r){return e[r]*(256*256*256)+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=t&255},readASCII:function(e,r,t){for(var i="",l=0;l<t;l++)i+=String.fromCharCode(e[r+l]);return i},writeASCII:function(e,r,t){for(var i=0;i<t.length;i++)e[r+i]=t.charCodeAt(i)},readBytes:function(e,r,t){for(var i=[],l=0;l<t;l++)i.push(e[r+l]);return i},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,r,t){for(var i="",l,f=0;f<t;f++)i+="%"+Ue._bin.pad(e[r+f].toString(16));try{l=decodeURIComponent(i)}catch{return Ue._bin.readASCII(e,r,t)}return l}},Ue._copyTile=function(e,r,t,i,l,f,c,p,g){for(var d=Math.min(r,l),m=Math.min(t,f),C=0,b=0,x=0;x<m;x++)for(var _=0;_<d;_++)if(c>=0&&p>=0?(C=x*r+_<<2,b=(p+x)*l+c+_<<2):(C=(-p+x)*r-c+_<<2,b=x*l+_<<2),g==0)i[b]=e[C],i[b+1]=e[C+1],i[b+2]=e[C+2],i[b+3]=e[C+3];else if(g==1){var k=e[C+3]*.00392156862745098,E=e[C]*k,A=e[C+1]*k,T=e[C+2]*k,D=i[b+3]*(1/255),R=i[b]*D,N=i[b+1]*D,z=i[b+2]*D,M=1-k,I=k+D*M,Y=I==0?0:1/I;i[b+3]=255*I,i[b+0]=(E+R*M)*Y,i[b+1]=(A+N*M)*Y,i[b+2]=(T+z*M)*Y}else if(g==2){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];k==D&&E==R&&A==N&&T==z?(i[b]=0,i[b+1]=0,i[b+2]=0,i[b+3]=0):(i[b]=E,i[b+1]=A,i[b+2]=T,i[b+3]=k)}else if(g==3){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];if(k==D&&E==R&&A==N&&T==z)continue;if(k<220&&D>20)return!1}return!0},Ue.encode=function(e,r,t,i,l,f,c){i==null&&(i=0),c==null&&(c=!1);var p=Ue.encode.compress(e,r,t,i,[!1,!1,!1,0,c]);return Ue.encode.compressPNG(p,-1),Ue.encode._main(p,r,t,l,f)},Ue.encodeLL=function(e,r,t,i,l,f,c,p){for(var g={ctype:0+(i==1?0:2)+(l==0?0:4),depth:f,frames:[]},d=(i+l)*f,m=d*r,C=0;C<e.length;C++)g.frames.push({rect:{x:0,y:0,width:r,height:t},img:new Uint8Array(e[C]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(m/8)});Ue.encode.compressPNG(g,0,!0);var b=Ue.encode._main(g,r,t,c,p);return b},Ue.encode._main=function(e,r,t,i,l){l==null&&(l={});var f=Ue.crc.crc,c=Ue._bin.writeUint,p=Ue._bin.writeUshort,g=Ue._bin.writeASCII,d=8,m=e.frames.length>1,C=!1,b=8+(16+5+4)+(m?20:0);if(l.sRGB!=null&&(b+=8+1+4),l.pHYs!=null&&(b+=8+9+4),e.ctype==3){for(var x=e.plte.length,_=0;_<x;_++)e.plte[_]>>>24!=255&&(C=!0);b+=8+x*3+4+(C?8+x*1+4:0)}for(var k=0;k<e.frames.length;k++){var E=e.frames[k];m&&(b+=38),b+=E.cimg.length+12,k!=0&&(b+=4)}b+=12;for(var A=new Uint8Array(b),T=[137,80,78,71,13,10,26,10],_=0;_<8;_++)A[_]=T[_];if(c(A,d,13),d+=4,g(A,d,"IHDR"),d+=4,c(A,d,r),d+=4,c(A,d,t),d+=4,A[d]=e.depth,d++,A[d]=e.ctype,d++,A[d]=0,d++,A[d]=0,d++,A[d]=0,d++,c(A,d,f(A,d-17,17)),d+=4,l.sRGB!=null&&(c(A,d,1),d+=4,g(A,d,"sRGB"),d+=4,A[d]=l.sRGB,d++,c(A,d,f(A,d-5,5)),d+=4),l.pHYs!=null&&(c(A,d,9),d+=4,g(A,d,"pHYs"),d+=4,c(A,d,l.pHYs[0]),d+=4,c(A,d,l.pHYs[1]),d+=4,A[d]=l.pHYs[2],d++,c(A,d,f(A,d-13,13)),d+=4),m&&(c(A,d,8),d+=4,g(A,d,"acTL"),d+=4,c(A,d,e.frames.length),d+=4,c(A,d,l.loop!=null?l.loop:0),d+=4,c(A,d,f(A,d-12,12)),d+=4),e.ctype==3){var x=e.plte.length;c(A,d,x*3),d+=4,g(A,d,"PLTE"),d+=4;for(var _=0;_<x;_++){var D=_*3,R=e.plte[_],N=R&255,z=R>>>8&255,M=R>>>16&255;A[d+D+0]=N,A[d+D+1]=z,A[d+D+2]=M}if(d+=x*3,c(A,d,f(A,d-x*3-4,x*3+4)),d+=4,C){c(A,d,x),d+=4,g(A,d,"tRNS"),d+=4;for(var _=0;_<x;_++)A[d+_]=e.plte[_]>>>24&255;d+=x,c(A,d,f(A,d-x-4,x+4)),d+=4}}for(var I=0,k=0;k<e.frames.length;k++){var E=e.frames[k];m&&(c(A,d,26),d+=4,g(A,d,"fcTL"),d+=4,c(A,d,I++),d+=4,c(A,d,E.rect.width),d+=4,c(A,d,E.rect.height),d+=4,c(A,d,E.rect.x),d+=4,c(A,d,E.rect.y),d+=4,p(A,d,i[k]),d+=2,p(A,d,1e3),d+=2,A[d]=E.dispose,d++,A[d]=E.blend,d++,c(A,d,f(A,d-30,30)),d+=4);var Y=E.cimg,x=Y.length;c(A,d,x+(k==0?0:4)),d+=4;var B=d;g(A,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(c(A,d,I++),d+=4),A.set(Y,d),d+=x,c(A,d,f(A,B,d-B)),d+=4}return c(A,d,0),d+=4,g(A,d,"IEND"),d+=4,c(A,d,f(A,d-4,4)),d+=4,A.buffer},Ue.encode.compressPNG=function(e,r,t){for(var i=0;i<e.frames.length;i++){var l=e.frames[i];l.rect.width;var f=l.rect.height,c=new Uint8Array(f*l.bpl+f);l.cimg=Ue.encode._filterZero(l.img,f,l.bpp,l.bpl,c,r,t)}},Ue.encode.compress=function(e,r,t,i,l){for(var f=l[0],c=l[1],p=l[2],g=l[3],d=l[4],m=6,C=8,b=255,x=0;x<e.length;x++)for(var _=new Uint8Array(e[x]),k=_.length,E=0;E<k;E+=4)b&=_[E+3];var A=b!=255,T=Ue.encode.framize(e,r,t,f,c,p),D={},R=[],N=[];if(i!=0){for(var z=[],E=0;E<T.length;E++)z.push(T[E].img.buffer);for(var M=Ue.encode.concatRGBA(z),I=Ue.quantize(M,i),Y=0,B=new Uint8Array(I.abuf),E=0;E<T.length;E++){var P=T[E].img,U=P.length;N.push(new Uint8Array(I.inds.buffer,Y>>2,U>>2));for(var x=0;x<U;x+=4)P[x]=B[Y+x],P[x+1]=B[Y+x+1],P[x+2]=B[Y+x+2],P[x+3]=B[Y+x+3];Y+=U}for(var E=0;E<I.plte.length;E++)R.push(I.plte[E].est.rgba)}else for(var x=0;x<T.length;x++){var H=T[x],V=new Uint32Array(H.img.buffer),K=H.rect.width,k=V.length,ee=new Uint8Array(k);N.push(ee);for(var E=0;E<k;E++){var J=V[E];if(E!=0&&J==V[E-1])ee[E]=ee[E-1];else if(E>K&&J==V[E-K])ee[E]=ee[E-K];else{var q=D[J];if(q==null&&(D[J]=q=R.length,R.push(J),R.length>=300))break;ee[E]=q}}}var te=R.length;te<=256&&d==!1&&(te<=2?C=1:te<=4?C=2:te<=16?C=4:C=8,C=Math.max(C,g));for(var x=0;x<T.length;x++){var H=T[x];H.rect.x,H.rect.y;var K=H.rect.width,Z=H.rect.height,$=H.img;new Uint32Array($.buffer);var ne=4*K,oe=4;if(te<=256&&d==!1){ne=Math.ceil(C*K/8);for(var ae=new Uint8Array(ne*Z),se=N[x],ve=0;ve<Z;ve++){var E=ve*ne,we=ve*K;if(C==8)for(var ce=0;ce<K;ce++)ae[E+ce]=se[we+ce];else if(C==4)for(var ce=0;ce<K;ce++)ae[E+(ce>>1)]|=se[we+ce]<<4-(ce&1)*4;else if(C==2)for(var ce=0;ce<K;ce++)ae[E+(ce>>2)]|=se[we+ce]<<6-(ce&3)*2;else if(C==1)for(var ce=0;ce<K;ce++)ae[E+(ce>>3)]|=se[we+ce]<<7-(ce&7)*1}$=ae,m=3,oe=1}else if(A==!1&&T.length==1){for(var ae=new Uint8Array(K*Z*3),ye=K*Z,E=0;E<ye;E++){var P=E*3,De=E*4;ae[P]=$[De],ae[P+1]=$[De+1],ae[P+2]=$[De+2]}$=ae,m=2,oe=3,ne=3*K}H.img=$,H.bpl=ne,H.bpp=oe}return{ctype:m,depth:C,plte:R,frames:T}},Ue.encode.framize=function(e,r,t,i,l,f){for(var c=[],p=0;p<e.length;p++){var g=new Uint8Array(e[p]),d=new Uint32Array(g.buffer),m,C=0,b=0,x=r,_=t,k=i?1:0;if(p!=0){for(var E=f||i||p==1||c[p-2].dispose!=0?1:2,A=0,T=1e9,D=0;D<E;D++){for(var H=new Uint8Array(e[p-1-D]),R=new Uint32Array(e[p-1-D]),N=r,z=t,M=-1,I=-1,Y=0;Y<t;Y++)for(var B=0;B<r;B++){var P=Y*r+B;d[P]!=R[P]&&(B<N&&(N=B),B>M&&(M=B),Y<z&&(z=Y),Y>I&&(I=Y))}M==-1&&(N=z=M=I=0),l&&((N&1)==1&&N--,(z&1)==1&&z--);var U=(M-N+1)*(I-z+1);U<T&&(T=U,A=D,C=N,b=z,x=M-N+1,_=I-z+1)}var H=new Uint8Array(e[p-1-A]);A==1&&(c[p-1].dispose=2),m=new Uint8Array(x*_*4),Ue._copyTile(H,r,t,m,x,_,-C,-b,0),k=Ue._copyTile(g,r,t,m,x,_,-C,-b,3)?1:0,k==1?Ue.encode._prepareDiff(g,r,t,m,{x:C,y:b,width:x,height:_}):Ue._copyTile(g,r,t,m,x,_,-C,-b,0)}else m=g.slice(0);c.push({rect:{x:C,y:b,width:x,height:_},img:m,blend:k,dispose:0})}if(i)for(var p=0;p<c.length;p++){var V=c[p];if(V.blend!=1){var K=V.rect,ee=c[p-1].rect,J=Math.min(K.x,ee.x),q=Math.min(K.y,ee.y),te=Math.max(K.x+K.width,ee.x+ee.width),Z=Math.max(K.y+K.height,ee.y+ee.height),$={x:J,y:q,width:te-J,height:Z-q};c[p-1].dispose=1,p-1!=0&&Ue.encode._updateFrame(e,r,t,c,p-1,$,l),Ue.encode._updateFrame(e,r,t,c,p,$,l)}}var ne=0;if(e.length!=1)for(var P=0;P<c.length;P++){var V=c[P];ne+=V.rect.width*V.rect.height}return c},Ue.encode._updateFrame=function(e,r,t,i,l,f,c){for(var p=Uint8Array,g=Uint32Array,d=new p(e[l-1]),m=new g(e[l-1]),C=l+1<e.length?new p(e[l+1]):null,b=new p(e[l]),x=new g(b.buffer),_=r,k=t,E=-1,A=-1,T=0;T<f.height;T++)for(var D=0;D<f.width;D++){var R=f.x+D,N=f.y+T,z=N*r+R,M=x[z];M==0||i[l-1].dispose==0&&m[z]==M&&(C==null||C[z*4+3]!=0)||(R<_&&(_=R),R>E&&(E=R),N<k&&(k=N),N>A&&(A=N))}E==-1&&(_=k=E=A=0),c&&((_&1)==1&&_--,(k&1)==1&&k--),f={x:_,y:k,width:E-_+1,height:A-k+1};var I=i[l];I.rect=f,I.blend=1,I.img=new Uint8Array(f.width*f.height*4),i[l-1].dispose==0?(Ue._copyTile(d,r,t,I.img,f.width,f.height,-f.x,-f.y,0),Ue.encode._prepareDiff(b,r,t,I.img,f)):Ue._copyTile(b,r,t,I.img,f.width,f.height,-f.x,-f.y,0)},Ue.encode._prepareDiff=function(e,r,t,i,l){Ue._copyTile(e,r,t,i,l.width,l.height,-l.x,-l.y,2)},Ue.encode._filterZero=function(e,r,t,i,l,f,c){var p=[],g=[0,1,2,3,4];f!=-1?g=[f]:(r*i>5e5||t==1)&&(g=[0]);var d;c&&(d={level:0});for(var m=l.length>1e7&&UZIP!=null?UZIP:gP,C=0;C<g.length;C++){for(var b=0;b<r;b++)Ue.encode._filterLine(l,e,b,i,t,g[C]);p.push(m.deflate(l,d))}for(var x,_=1e9,C=0;C<p.length;C++)p[C].length<_&&(x=C,_=p[C].length);return p[x]},Ue.encode._filterLine=function(e,r,t,i,l,f){var c=t*i,p=c+t,g=Ue.decode._paeth;if(e[p]=f,p++,f==0)if(i<500)for(var d=0;d<i;d++)e[p+d]=r[c+d];else e.set(new Uint8Array(r.buffer,c,i),p);else if(f==1){for(var d=0;d<l;d++)e[p+d]=r[c+d];for(var d=l;d<i;d++)e[p+d]=r[c+d]-r[c+d-l]+256&255}else if(t==0){for(var d=0;d<l;d++)e[p+d]=r[c+d];if(f==2)for(var d=l;d<i;d++)e[p+d]=r[c+d];if(f==3)for(var d=l;d<i;d++)e[p+d]=r[c+d]-(r[c+d-l]>>1)+256&255;if(f==4)for(var d=l;d<i;d++)e[p+d]=r[c+d]-g(r[c+d-l],0,0)+256&255}else{if(f==2)for(var d=0;d<i;d++)e[p+d]=r[c+d]+256-r[c+d-i]&255;if(f==3){for(var d=0;d<l;d++)e[p+d]=r[c+d]+256-(r[c+d-i]>>1)&255;for(var d=l;d<i;d++)e[p+d]=r[c+d]+256-(r[c+d-i]+r[c+d-l]>>1)&255}if(f==4){for(var d=0;d<l;d++)e[p+d]=r[c+d]+256-g(0,r[c+d-i],0)&255;for(var d=l;d<i;d++)e[p+d]=r[c+d]+256-g(r[c+d-l],r[c+d-i],r[c+d-l-i])&255}}},Ue.crc={table:function(){for(var e=new Uint32Array(256),r=0;r<256;r++){for(var t=r,i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;e[r]=t}return e}(),update:function(e,r,t,i){for(var l=0;l<i;l++)e=Ue.crc.table[(e^r[t+l])&255]^e>>>8;return e},crc:function(e,r,t){return Ue.crc.update(4294967295,e,r,t)^4294967295}},Ue.quantize=function(e,r){var t=new Uint8Array(e),i=t.slice(0),l=new Uint32Array(i.buffer),f=Ue.quantize.getKDtree(i,r),c=f[0],p=f[1],g=Ue.quantize.planeDst,d=t,m=l,C=d.length,b=new Uint8Array(t.length>>2),x;if(t.length<2e7)for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);x=Ue.quantize.getNearest(c,k,E,A,T),b[_>>2]=x.ind,m[_>>2]=x.est.rgba}else for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);for(x=c;x.left;)x=g(x.est,k,E,A,T)<=0?x.left:x.right;b[_>>2]=x.ind,m[_>>2]=x.est.rgba}return{abuf:i.buffer,inds:b,plte:p}},Ue.quantize.getKDtree=function(e,r,t){t==null&&(t=1e-4);var i=new Uint32Array(e.buffer),l={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};l.bst=Ue.quantize.stats(e,l.i0,l.i1),l.est=Ue.quantize.estats(l.bst);for(var f=[l];f.length<r;){for(var c=0,p=0,g=0;g<f.length;g++)f[g].est.L>c&&(c=f[g].est.L,p=g);if(c<t)break;var d=f[p],m=Ue.quantize.splitPixels(e,i,d.i0,d.i1,d.est.e,d.est.eMq255),C=d.i0>=m||d.i1<=m;if(C){d.est.L=0;continue}var b={i0:d.i0,i1:m,bst:null,est:null,tdst:0,left:null,right:null};b.bst=Ue.quantize.stats(e,b.i0,b.i1),b.est=Ue.quantize.estats(b.bst);var x={i0:m,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};x.bst={R:[],m:[],N:d.bst.N-b.bst.N};for(var g=0;g<16;g++)x.bst.R[g]=d.bst.R[g]-b.bst.R[g];for(var g=0;g<4;g++)x.bst.m[g]=d.bst.m[g]-b.bst.m[g];x.est=Ue.quantize.estats(x.bst),d.left=b,d.right=x,f[p]=b,f.push(x)}f.sort(function(_,k){return k.bst.N-_.bst.N});for(var g=0;g<f.length;g++)f[g].ind=g;return[l,f]},Ue.quantize.getNearest=function(e,r,t,i,l){if(e.left==null)return e.tdst=Ue.quantize.dist(e.est.q,r,t,i,l),e;var f=Ue.quantize.planeDst(e.est,r,t,i,l),c=e.left,p=e.right;f>0&&(c=e.right,p=e.left);var g=Ue.quantize.getNearest(c,r,t,i,l);if(g.tdst<=f*f)return g;var d=Ue.quantize.getNearest(p,r,t,i,l);return d.tdst<g.tdst?d:g},Ue.quantize.planeDst=function(e,r,t,i,l){var f=e.e;return f[0]*r+f[1]*t+f[2]*i+f[3]*l-e.eMq},Ue.quantize.dist=function(e,r,t,i,l){var f=r-e[0],c=t-e[1],p=i-e[2],g=l-e[3];return f*f+c*c+p*p+g*g},Ue.quantize.splitPixels=function(e,r,t,i,l,f){var c=Ue.quantize.vecDot;for(i-=4;t<i;){for(;c(e,t,l)<=f;)t+=4;for(;c(e,i,l)>f;)i-=4;if(t>=i)break;var p=r[t>>2];r[t>>2]=r[i>>2],r[i>>2]=p,t+=4,i-=4}for(;c(e,t,l)>f;)t-=4;return t+4},Ue.quantize.vecDot=function(e,r,t){return e[r]*t[0]+e[r+1]*t[1]+e[r+2]*t[2]+e[r+3]*t[3]},Ue.quantize.stats=function(e,r,t){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,0,0,0],f=t-r>>2,c=r;c<t;c+=4){var p=e[c]*.00392156862745098,g=e[c+1]*(1/255),d=e[c+2]*(1/255),m=e[c+3]*(1/255);l[0]+=p,l[1]+=g,l[2]+=d,l[3]+=m,i[0]+=p*p,i[1]+=p*g,i[2]+=p*d,i[3]+=p*m,i[5]+=g*g,i[6]+=g*d,i[7]+=g*m,i[10]+=d*d,i[11]+=d*m,i[15]+=m*m}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:l,N:f}},Ue.quantize.estats=function(e){var r=e.R,t=e.m,i=e.N,l=t[0],f=t[1],c=t[2],p=t[3],g=i==0?0:1/i,d=[r[0]-l*l*g,r[1]-l*f*g,r[2]-l*c*g,r[3]-l*p*g,r[4]-f*l*g,r[5]-f*f*g,r[6]-f*c*g,r[7]-f*p*g,r[8]-c*l*g,r[9]-c*f*g,r[10]-c*c*g,r[11]-c*p*g,r[12]-p*l*g,r[13]-p*f*g,r[14]-p*c*g,r[15]-p*p*g],m=d,C=Ue.M4,b=[Math.random(),Math.random(),Math.random(),Math.random()],x=0,_=0;if(i!=0)for(var k=0;k<16&&(b=C.multVec(m,b),_=Math.sqrt(C.dot(b,b)),b=C.sml(1/_,b),!(k!=0&&Math.abs(_-x)<1e-9));k++)x=_;var E=[l*g,f*g,c*g,p*g],A=C.dot(C.sml(255,E),b);return{Cov:d,q:E,e:b,L:x,eMq255:A,eMq:C.dot(b,E),rgba:(Math.round(255*E[3])<<24|Math.round(255*E[2])<<16|Math.round(255*E[1])<<8|Math.round(255*E[0])<<0)>>>0}},Ue.M4={multVec:function(e,r){return[e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3],e[4]*r[0]+e[5]*r[1]+e[6]*r[2]+e[7]*r[3],e[8]*r[0]+e[9]*r[1]+e[10]*r[2]+e[11]*r[3],e[12]*r[0]+e[13]*r[1]+e[14]*r[2]+e[15]*r[3]]},dot:function(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]},sml:function(e,r){return[e*r[0],e*r[1],e*r[2],e*r[3]]}},Ue.encode.concatRGBA=function(e){for(var r=0,t=0;t<e.length;t++)r+=e[t].byteLength;for(var i=new Uint8Array(r),l=0,t=0;t<e.length;t++){for(var f=new Uint8Array(e[t]),c=f.length,p=0;p<c;p+=4){var g=f[p],d=f[p+1],m=f[p+2],C=f[p+3];C==0&&(g=d=m=0),i[l+p]=g,i[l+p+1]=d,i[l+p+2]=m,i[l+p+3]=C}l+=c}return i.buffer};const yP=e=>new Promise((r,t)=>{const i=new FileReader;i.onloadend=l=>r(l.target.result),i.onerror=l=>t(l),i.readAsDataURL(e)}),xP=e=>new Promise((r,t)=>{const i=new Image;i.onload=()=>r(i),i.onerror=l=>t(l),i.src=e}),bP=(e,r,t)=>new Promise(i=>e.toBlob(l=>i(l),r,t)),CP=e=>{const i=e.width,l=e.height;let f=e.width,c=e.height;return(i>2e3||l>2e3)&&(i/l>2e3/2e3?(f=2e3,c=Math.round(2e3*(l/i))):(c=2e3,f=Math.round(2e3*(i/l)))),{width:f,height:c}},wP=e=>{let r=0;return e>1||e<0?r=0:r=e?e*256:0,r},a6=async(e,r=.5,t=5)=>{const i=e.name;if(e.size/1024/1024<t)return e;try{const l=document.createElement("canvas"),f=l.getContext("2d"),c=await yP(e),p=await xP(c),g=CP(p);if(l.width=g.width,l.height=g.height,f.clearRect(0,0,g.width,g.height),f.drawImage(p,0,0,g.width,g.height),["image/jpeg","image/jpg"].includes(e.type)){const d=await bP(l,e.type,r);return new File([d],i,{type:e.type})}else{const d=f.getImageData(0,0,g.width,g.height).data,m=wP(r),C=Ue.encode([d.buffer],g.width,g.height,m);return new File([C],e.name,{type:e.type})}}catch{return e}},i6=[ed.jpeg,ed.jpg,ed.png],o6=e=>{const{maxCount:r=1,listType:t="picture-card",fileList:i=[],maxSize:l=2,accept:f=i6.join(","),uploadBtnName:c="上传",uploadHint:p=null,compression:g}=e,[d,m]=W.useState(!1),[C,b]=W.useState(""),x=()=>t!=="text"?Be("div",{style:{position:"relative"},children:[Be("div",{children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:c})]}),p]}):Be(en,{children:[Q(me.Button,{icon:Q(Mb,{}),children:c}),p]}),_=T=>new Promise(async(R,N)=>{const z=f.split(","),M=dg(T.name)||"";if(f&&!z.includes(M)&&(me.message.error(`只允许上传 ${f} 文件`),N(!1)),!(T.size/1024/1024<l)&&!g&&(me.message.error(`文件必须小于${l}MB`),N(!1)),g){let Y=0;async function B(U){if(!g)return;const H=await a6(U,g.quality,g.limit);if(Y++,Y>=5)return H;if(H.size/1024/1024>l)await B(H);else return H}const P=await B(T);R(P)}R(T)}).catch(R=>me.Upload.LIST_IGNORE),k=T=>{e.onChange&&e.onChange(T)},E=T=>{e.onPreview?e.onPreview(T):A(T)},A=async T=>{let D=dg(T.name)||"";if(D||(D=dg(T.name||T.url)||""),D===ed.pdf)return me.Modal.info({title:"PDF",width:"60%",content:Q("iframe",{title:"PDF预览",src:T.url||T.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});i6.includes(D)&&(!T.url&&!T.thumbUrl&&!T.preview&&(T.preview=await P8(T.originFileObj)),b(T.url||T.thumbUrl||T.preview),m(!0))};return Be(en,{children:[Q(me.Upload,{beforeUpload:_,onChange:k,listType:t,...e,onPreview:E,children:i.length>=r?null:x()}),Q(me.Image,{style:{display:"none"},preview:{visible:d,src:C,onVisibleChange:()=>{m(!1),b("")}}})]})},Eg={fieldModal:"create-form-module_fieldModal_8bf3d",content:"create-form-module_content_61f84",suffix:"create-form-module_suffix_42205",placeholder:"create-form-module_placeholder_90d6a"},_P={labelCol:{span:4},wrapperCol:{span:20}},l6=e=>{switch(e){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},y2=e=>{const{items:r,rowProps:t,formProps:i,readonly:l=!1,hiddenTitle:f=!1,langId:c="10001"}=e,p=(m,C)=>{var b,x;if(C.btnType==="submit"){(b=i==null?void 0:i.form)==null||b.validateFields().then(_=>{C.onClick&&C.onClick(_)});return}if(C.btnType==="reset"){(x=i==null?void 0:i.form)==null||x.resetFields(),C.onClick&&C.onClick(m);return}C.btnType==="cancel"&&C.onClick&&C.onClick(m)},g=m=>Array.isArray(m)?m:m&&m.fileList,d=m=>{var b;const C=i==null?void 0:i.initialValues;return m.dataIndex?((b=m.render)==null?void 0:b.call(m,C==null?void 0:C[m.dataIndex],C))||m.value||(C==null?void 0:C[m.dataIndex]):""};return Q(me.Form,{layout:"horizontal",form:i==null?void 0:i.form,..._P,...i||{},children:Q(me.Row,{gutter:16,...t,children:r.filter(m=>!m.hidden).map((m,C)=>Q(me.Col,{...m.colProps||{span:24},children:Q(me.Form.Item,{...m.valueType==="upload"?{getValueFromEvent:g}:{},label:f?"":m.title,name:m.valueType==="btns"?void 0:m.dataIndex,...m.formItemProps,children:m.readonly?Q("div",{children:d(m)}):m.readonly===void 0&&l?Q("div",{children:d(m)}):Q(s6,{onChange:b=>{var x;return(x=m==null?void 0:m.onChange)==null?void 0:x.call(m,b)},valueType:m.valueType,onBtnClick:p,valueProps:m.valueProps,formItemProps:m.formItemProps,langId:c})})},m.dataIndex||C))})})},s6=e=>{const{valueType:r,valueProps:t,value:i,onChange:l,onBtnClick:f,inputRef:c,formItemProps:p,langId:g}=e,d=W.useMemo(()=>{let m=Q(me.Input,{placeholder:g==="10001"?"请输入":"Please input",allowClear:!0,...t});switch(r){case"rate":m=Q(me.Rate,{...t});break;case"password":m=Q(me.Input.Password,{...t});break;case"modal":m=Q(SP,{...t});break;case"checkbox":m=Q(me.Checkbox.Group,{...t});break;case"select":m=Q(me.Select,{placeholder:g==="10001"?"请选择":"Please select",allowClear:!0,...t});break;case"inputNumber":m=Q(me.InputNumber,{style:{width:"100%"},placeholder:g==="10001"?"请输入":"Please input",...t});break;case"textarea":m=Q(me.Input.TextArea,{placeholder:g==="10001"?"请输入":"Please input",allowClear:!0,...t});break;case"radio":m=Q(me.Radio.Group,{...t});break;case"switch":m=Q(me.Switch,{...t});break;case"datePicker":m=Q(me.DatePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"rangePicker":m=Q(me.DatePicker.RangePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"timePicker":m=Q(me.TimePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"cascader":m=Q(me.Cascader,{allowClear:!0,...t});break;case"upload":m=Q(o6,{...t});break;case"btns":m=Q(me.Space,{children:t==null?void 0:t.map(C=>W.createElement(me.Button,{type:C.btnType==="submit"?"primary":"default",...il.omit(C,["btnType"]),key:C.key||C.btnType,onClick:b=>{f==null||f(b,C)}},C.title||C.children))});break}return m},[r,t,l,i]);if(r==="custom"){const m=t;return W.cloneElement(m.children,{[(p==null?void 0:p.valuePropName)||l6(r||"input")]:i,onChange:l,ref:c})}return W.cloneElement(d,{[l6(r||"input")]:i,onChange:l,ref:c})},SP=e=>{const{placeholder:r,labelKey:t,onToggle:i,value:l,onClear:f,className:c,style:p}=e;return Be("div",{className:[Eg.fieldModal,c].filter(g=>g).join(" "),style:p,children:[Q("div",{className:Eg.content,onClick:()=>i(!0),children:l?Q("span",{children:l[t]}):Q("span",{className:Eg.placeholder,children:r})}),Q("span",{className:Eg.suffix,onClick:f,children:l&&Q(E7,{})})]})};var x2={exports:{}},$h={},Dg={exports:{}},u6={},wt={exports:{}},b2={exports:{}},bn={};var c6;function EP(){if(c6)return bn;c6=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(N){if(typeof N=="object"&&N!==null){var z=N.$$typeof;switch(z){case r:switch(N=N.type,N){case g:case d:case i:case f:case l:case C:return N;default:switch(N=N&&N.$$typeof,N){case p:case m:case _:case x:case c:return N;default:return z}}case t:return z}}}function R(N){return D(N)===d}return bn.AsyncMode=g,bn.ConcurrentMode=d,bn.ContextConsumer=p,bn.ContextProvider=c,bn.Element=r,bn.ForwardRef=m,bn.Fragment=i,bn.Lazy=_,bn.Memo=x,bn.Portal=t,bn.Profiler=f,bn.StrictMode=l,bn.Suspense=C,bn.isAsyncMode=function(N){return R(N)||D(N)===g},bn.isConcurrentMode=R,bn.isContextConsumer=function(N){return D(N)===p},bn.isContextProvider=function(N){return D(N)===c},bn.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===r},bn.isForwardRef=function(N){return D(N)===m},bn.isFragment=function(N){return D(N)===i},bn.isLazy=function(N){return D(N)===_},bn.isMemo=function(N){return D(N)===x},bn.isPortal=function(N){return D(N)===t},bn.isProfiler=function(N){return D(N)===f},bn.isStrictMode=function(N){return D(N)===l},bn.isSuspense=function(N){return D(N)===C},bn.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===i||N===d||N===f||N===l||N===C||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===_||N.$$typeof===x||N.$$typeof===c||N.$$typeof===p||N.$$typeof===m||N.$$typeof===E||N.$$typeof===A||N.$$typeof===T||N.$$typeof===k)},bn.typeOf=D,bn}var Cn={};var f6;function DP(){return f6||(f6=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(ke){return typeof ke=="string"||typeof ke=="function"||ke===i||ke===d||ke===f||ke===l||ke===C||ke===b||typeof ke=="object"&&ke!==null&&(ke.$$typeof===_||ke.$$typeof===x||ke.$$typeof===c||ke.$$typeof===p||ke.$$typeof===m||ke.$$typeof===E||ke.$$typeof===A||ke.$$typeof===T||ke.$$typeof===k)}function R(ke){if(typeof ke=="object"&&ke!==null){var ze=ke.$$typeof;switch(ze){case r:var Ne=ke.type;switch(Ne){case g:case d:case i:case f:case l:case C:return Ne;default:var dt=Ne&&Ne.$$typeof;switch(dt){case p:case m:case _:case x:case c:return dt;default:return ze}}case t:return ze}}}var N=g,z=d,M=p,I=c,Y=r,B=m,P=i,U=_,H=x,V=t,K=f,ee=l,J=C,q=!1;function te(ke){return q||(q=!0),Z(ke)||R(ke)===g}function Z(ke){return R(ke)===d}function $(ke){return R(ke)===p}function ne(ke){return R(ke)===c}function oe(ke){return typeof ke=="object"&&ke!==null&&ke.$$typeof===r}function ae(ke){return R(ke)===m}function se(ke){return R(ke)===i}function ve(ke){return R(ke)===_}function we(ke){return R(ke)===x}function ce(ke){return R(ke)===t}function ye(ke){return R(ke)===f}function De(ke){return R(ke)===l}function Pe(ke){return R(ke)===C}Cn.AsyncMode=N,Cn.ConcurrentMode=z,Cn.ContextConsumer=M,Cn.ContextProvider=I,Cn.Element=Y,Cn.ForwardRef=B,Cn.Fragment=P,Cn.Lazy=U,Cn.Memo=H,Cn.Portal=V,Cn.Profiler=K,Cn.StrictMode=ee,Cn.Suspense=J,Cn.isAsyncMode=te,Cn.isConcurrentMode=Z,Cn.isContextConsumer=$,Cn.isContextProvider=ne,Cn.isElement=oe,Cn.isForwardRef=ae,Cn.isFragment=se,Cn.isLazy=ve,Cn.isMemo=we,Cn.isPortal=ce,Cn.isProfiler=ye,Cn.isStrictMode=De,Cn.isSuspense=Pe,Cn.isValidElementType=D,Cn.typeOf=R}()),Cn}var d6;function h6(){return d6||(d6=1,function(e){process.env.NODE_ENV==="production"?e.exports=EP():e.exports=DP()}(b2)),b2.exports}var C2,p6;function kP(){if(p6)return C2;p6=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function i(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function l(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var c={},p=0;p<10;p++)c["_"+String.fromCharCode(p)]=p;var g=Object.getOwnPropertyNames(c).map(function(m){return c[m]});if(g.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C2=l()?Object.assign:function(f,c){for(var p,g=i(f),d,m=1;m<arguments.length;m++){p=Object(arguments[m]);for(var C in p)r.call(p,C)&&(g[C]=p[C]);if(e){d=e(p);for(var b=0;b<d.length;b++)t.call(p,d[b])&&(g[d[b]]=p[d[b]])}}return g},C2}var w2,v6;function _2(){if(v6)return w2;v6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return w2=e,w2}var S2,m6;function g6(){return m6||(m6=1,S2=Function.call.bind(Object.prototype.hasOwnProperty)),S2}var E2,y6;function TP(){if(y6)return E2;y6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_2(),t={},i=g6();e=function(f){var c="Warning: "+f;try{throw new Error(c)}catch{}}}function l(f,c,p,g,d){if(process.env.NODE_ENV!=="production"){for(var m in f)if(i(f,m)){var C;try{if(typeof f[m]!="function"){var b=Error((g||"React class")+": "+p+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}C=f[m](c,m,g,p,null,r)}catch(_){C=_}if(C&&!(C instanceof Error)&&e((g||"React class")+": type specification of "+p+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof C+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),C instanceof Error&&!(C.message in t)){t[C.message]=!0;var x=d?d():"";e("Failed "+p+" type: "+C.message+(x??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},E2=l,E2}var D2,x6;function AP(){if(x6)return D2;x6=1;var e=h6(),r=kP(),t=_2(),i=g6(),l=TP(),f=function(){};process.env.NODE_ENV!=="production"&&(f=function(p){var g="Warning: "+p;try{throw new Error(g)}catch{}});function c(){return null}return D2=function(p,g){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function C(Z){var $=Z&&(d&&Z[d]||Z[m]);if(typeof $=="function")return $}var b="<<anonymous>>",x={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(),arrayOf:D,element:R(),elementType:N(),instanceOf:z,node:B(),objectOf:I,oneOf:M,oneOfType:Y,shape:U,exact:H};function _(Z,$){return Z===$?Z!==0||1/Z===1/$:Z!==Z&&$!==$}function k(Z,$){this.message=Z,this.data=$&&typeof $=="object"?$:{},this.stack=""}k.prototype=Error.prototype;function E(Z){if(process.env.NODE_ENV!=="production")var $={},ne=0;function oe(se,ve,we,ce,ye,De,Pe){if(ce=ce||b,De=De||we,Pe!==t){if(g){var ke=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ke.name="Invariant Violation",ke}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=ce+":"+we;!$[ze]&&ne<3&&(f("You are manually calling a React.PropTypes validation function for the `"+De+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[ze]=!0,ne++)}}return ve[we]==null?se?ve[we]===null?new k("The "+ye+" `"+De+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new k("The "+ye+" `"+De+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:Z(ve,we,ce,ye,De)}var ae=oe.bind(null,!1);return ae.isRequired=oe.bind(null,!0),ae}function A(Z){function $(ne,oe,ae,se,ve,we){var ce=ne[oe],ye=ee(ce);if(ye!==Z){var De=J(ce);return new k("Invalid "+se+" `"+ve+"` of type "+("`"+De+"` supplied to `"+ae+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return E($)}function T(){return E(c)}function D(Z){function $(ne,oe,ae,se,ve){if(typeof Z!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var we=ne[oe];if(!Array.isArray(we)){var ce=ee(we);return new k("Invalid "+se+" `"+ve+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected an array."))}for(var ye=0;ye<we.length;ye++){var De=Z(we,ye,ae,se,ve+"["+ye+"]",t);if(De instanceof Error)return De}return null}return E($)}function R(){function Z($,ne,oe,ae,se){var ve=$[ne];if(!p(ve)){var we=ee(ve);return new k("Invalid "+ae+" `"+se+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return E(Z)}function N(){function Z($,ne,oe,ae,se){var ve=$[ne];if(!e.isValidElementType(ve)){var we=ee(ve);return new k("Invalid "+ae+" `"+se+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return E(Z)}function z(Z){function $(ne,oe,ae,se,ve){if(!(ne[oe]instanceof Z)){var we=Z.name||b,ce=te(ne[oe]);return new k("Invalid "+se+" `"+ve+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected ")+("instance of `"+we+"`."))}return null}return E($)}function M(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?f("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):f("Invalid argument supplied to oneOf, expected an array.")),c;function $(ne,oe,ae,se,ve){for(var we=ne[oe],ce=0;ce<Z.length;ce++)if(_(we,Z[ce]))return null;var ye=JSON.stringify(Z,function(Pe,ke){var ze=J(ke);return ze==="symbol"?String(ke):ke});return new k("Invalid "+se+" `"+ve+"` of value `"+String(we)+"` "+("supplied to `"+ae+"`, expected one of "+ye+"."))}return E($)}function I(Z){function $(ne,oe,ae,se,ve){if(typeof Z!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var we=ne[oe],ce=ee(we);if(ce!=="object")return new k("Invalid "+se+" `"+ve+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected an object."));for(var ye in we)if(i(we,ye)){var De=Z(we,ye,ae,se,ve+"."+ye,t);if(De instanceof Error)return De}return null}return E($)}function Y(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&f("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var $=0;$<Z.length;$++){var ne=Z[$];if(typeof ne!="function")return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ne)+" at index "+$+"."),c}function oe(ae,se,ve,we,ce){for(var ye=[],De=0;De<Z.length;De++){var Pe=Z[De],ke=Pe(ae,se,ve,we,ce,t);if(ke==null)return null;ke.data&&i(ke.data,"expectedType")&&ye.push(ke.data.expectedType)}var ze=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new k("Invalid "+we+" `"+ce+"` supplied to "+("`"+ve+"`"+ze+"."))}return E(oe)}function B(){function Z($,ne,oe,ae,se){return V($[ne])?null:new k("Invalid "+ae+" `"+se+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return E(Z)}function P(Z,$,ne,oe,ae){return new k((Z||"React class")+": "+$+" type `"+ne+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function U(Z){function $(ne,oe,ae,se,ve){var we=ne[oe],ce=ee(we);if(ce!=="object")return new k("Invalid "+se+" `"+ve+"` of type `"+ce+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ye in Z){var De=Z[ye];if(typeof De!="function")return P(ae,se,ve,ye,J(De));var Pe=De(we,ye,ae,se,ve+"."+ye,t);if(Pe)return Pe}return null}return E($)}function H(Z){function $(ne,oe,ae,se,ve){var we=ne[oe],ce=ee(we);if(ce!=="object")return new k("Invalid "+se+" `"+ve+"` of type `"+ce+"` "+("supplied to `"+ae+"`, expected `object`."));var ye=r({},ne[oe],Z);for(var De in ye){var Pe=Z[De];if(i(Z,De)&&typeof Pe!="function")return P(ae,se,ve,De,J(Pe));if(!Pe)return new k("Invalid "+se+" `"+ve+"` key `"+De+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(ne[oe],null," ")+`
194
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ke=Pe(we,De,ae,se,ve+"."+De,t);if(ke)return ke}return null}return E($)}function V(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(V);if(Z===null||p(Z))return!0;var $=C(Z);if($){var ne=$.call(Z),oe;if($!==Z.entries){for(;!(oe=ne.next()).done;)if(!V(oe.value))return!1}else for(;!(oe=ne.next()).done;){var ae=oe.value;if(ae&&!V(ae[1]))return!1}}else return!1;return!0;default:return!1}}function K(Z,$){return Z==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function ee(Z){var $=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":K($,Z)?"symbol":$}function J(Z){if(typeof Z>"u"||Z===null)return""+Z;var $=ee(Z);if($==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return $}function q(Z){var $=J(Z);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function te(Z){return!Z.constructor||!Z.constructor.name?b:Z.constructor.name}return x.checkPropTypes=l,x.resetWarningCache=l.resetWarningCache,x.PropTypes=x,x},D2}var k2,b6;function OP(){if(b6)return k2;b6=1;var e=_2();function r(){}function t(){}return t.resetWarningCache=r,k2=function(){function i(c,p,g,d,m,C){if(C!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function l(){return i}var f={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:t,resetWarningCache:r};return f.PropTypes=f,f},k2}if(process.env.NODE_ENV!=="production"){var RP=h6(),FP=!0;wt.exports=AP()(RP.isElement,FP)}else wt.exports=OP()();function C6(e){var r,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=C6(e[r]))&&(i&&(i+=" "),i+=t);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Re(){for(var e,r,t=0,i="";t<arguments.length;)(e=arguments[t++])&&(r=C6(e))&&(i&&(i+=" "),i+=r);return i}const NP=L4(Object.freeze(Object.defineProperty({__proto__:null,clsx:Re,default:Re},Symbol.toStringTag,{value:"Module"})));var sr={},cl={};Object.defineProperty(cl,"__esModule",{value:!0}),cl.dontSetMe=zP,cl.findInArray=MP,cl.int=LP,cl.isFunction=PP,cl.isNum=BP;function MP(e,r){for(let t=0,i=e.length;t<i;t++)if(r.apply(r,[e[t],t,e]))return e[t]}function PP(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function BP(e){return typeof e=="number"&&!isNaN(e)}function LP(e){return parseInt(e,10)}function zP(e,r,t){if(e[r])return new Error("Invalid prop ".concat(r," passed to ").concat(t," - do not set this, set it on the child."))}var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.browserPrefixToKey=_6,Ec.browserPrefixToStyle=UP,Ec.default=void 0,Ec.getPrefix=w6;const T2=["Moz","Webkit","O","ms"];function w6(){var e;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!t||r in t)return"";for(let i=0;i<T2.length;i++)if(_6(r,T2[i])in t)return T2[i];return""}function _6(e,r){return r?"".concat(r).concat(jP(e)):e}function UP(e,r){return r?"-".concat(r.toLowerCase(),"-").concat(e):e}function jP(e){let r="",t=!0;for(let i=0;i<e.length;i++)t?(r+=e[i].toUpperCase(),t=!1):e[i]==="-"?t=!0:r+=e[i];return r}Ec.default=w6(),Object.defineProperty(sr,"__esModule",{value:!0}),sr.addClassName=k6,sr.addEvent=VP,sr.addUserSelectStyles=eB,sr.createCSSTransform=QP,sr.createSVGTransform=ZP,sr.getTouch=XP,sr.getTouchIdentifier=JP,sr.getTranslation=A2,sr.innerHeight=GP,sr.innerWidth=KP,sr.matchesSelector=D6,sr.matchesSelectorAndParentsTo=HP,sr.offsetXYFromParent=WP,sr.outerHeight=YP,sr.outerWidth=qP,sr.removeClassName=T6,sr.removeEvent=$P,sr.removeUserSelectStyles=tB;var Fi=cl,S6=IP(Ec);function E6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(E6=function(i){return i?t:r})(e)}function IP(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=E6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}let kg="";function D6(e,r){return kg||(kg=(0,Fi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,Fi.isFunction)(e[t])})),(0,Fi.isFunction)(e[kg])?e[kg](r):!1}function HP(e,r,t){let i=e;do{if(D6(i,r))return!0;if(i===t)return!1;i=i.parentNode}while(i);return!1}function VP(e,r,t,i){if(!e)return;const l={capture:!0,...i};e.addEventListener?e.addEventListener(r,t,l):e.attachEvent?e.attachEvent("on"+r,t):e["on"+r]=t}function $P(e,r,t,i){if(!e)return;const l={capture:!0,...i};e.removeEventListener?e.removeEventListener(r,t,l):e.detachEvent?e.detachEvent("on"+r,t):e["on"+r]=null}function YP(e){let r=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r+=(0,Fi.int)(t.borderTopWidth),r+=(0,Fi.int)(t.borderBottomWidth),r}function qP(e){let r=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r+=(0,Fi.int)(t.borderLeftWidth),r+=(0,Fi.int)(t.borderRightWidth),r}function GP(e){let r=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r-=(0,Fi.int)(t.paddingTop),r-=(0,Fi.int)(t.paddingBottom),r}function KP(e){let r=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r-=(0,Fi.int)(t.paddingLeft),r-=(0,Fi.int)(t.paddingRight),r}function WP(e,r,t){const l=r===r.ownerDocument.body?{left:0,top:0}:r.getBoundingClientRect(),f=(e.clientX+r.scrollLeft-l.left)/t,c=(e.clientY+r.scrollTop-l.top)/t;return{x:f,y:c}}function QP(e,r){const t=A2(e,r,"px");return{[(0,S6.browserPrefixToKey)("transform",S6.default)]:t}}function ZP(e,r){return A2(e,r,"")}function A2(e,r,t){let{x:i,y:l}=e,f="translate(".concat(i).concat(t,",").concat(l).concat(t,")");if(r){const c="".concat(typeof r.x=="string"?r.x:r.x+t),p="".concat(typeof r.y=="string"?r.y:r.y+t);f="translate(".concat(c,", ").concat(p,")")+f}return f}function XP(e,r){return e.targetTouches&&(0,Fi.findInArray)(e.targetTouches,t=>r===t.identifier)||e.changedTouches&&(0,Fi.findInArray)(e.changedTouches,t=>r===t.identifier)}function JP(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function eB(e){if(!e)return;let r=e.getElementById("react-draggable-style-el");r||(r=e.createElement("style"),r.type="text/css",r.id="react-draggable-style-el",r.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
193
+ root.render(<App />);`),a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var F=lF(n,dx,null,u,h,y,S);ix(F.current,n);var j=n.nodeType===fr?n.parentNode:n;return cm(j),new M4(F)}function gb(n){this._internalRoot=n}function HW(n){n&&N1(n)}gb.prototype.unstable_scheduleHydration=HW;function VW(n,a,u){if(!yb(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");AF(n),a===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var h=u??null,y=u!=null&&u.hydratedSources||null,S=!1,F=!1,j="",G=TF;u!=null&&(u.unstable_strictMode===!0&&(S=!0),u.identifierPrefix!==void 0&&(j=u.identifierPrefix),u.onRecoverableError!==void 0&&(G=u.onRecoverableError));var re=sF(a,null,n,dx,h,S,F,j,G);if(ix(re.current,n),cm(n),y)for(var ie=0;ie<y.length;ie++){var pe=y[ie];Zq(re,pe)}return new gb(re)}function yb(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||!ne))}function rg(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||n.nodeType===fr&&n.nodeValue===" react-mount-point-unstable "))}function AF(n){n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Cm(n)&&(n._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var $W=t.ReactCurrentOwner,OF;OF=function(n){if(n._reactRootContainer&&n.nodeType!==fr){var a=cF(n._reactRootContainer.current);a&&a.parentNode!==n&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!n._reactRootContainer,h=P4(n),y=!!(h&&ec(h));y&&!u&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function P4(n){return n?n.nodeType===Hi?n.documentElement:n.firstChild:null}function RF(){}function YW(n,a,u,h,y){if(y){if(typeof h=="function"){var S=h;h=function(){var de=mb(F);S.call(de)}}var F=sF(a,h,n,nc,null,!1,!1,"",RF);n._reactRootContainer=F,ix(F.current,n);var j=n.nodeType===fr?n.parentNode:n;return cm(j),Xs(),F}else{for(var G;G=n.lastChild;)n.removeChild(G);if(typeof h=="function"){var re=h;h=function(){var de=mb(ie);re.call(de)}}var ie=lF(n,nc,null,!1,!1,"",RF);n._reactRootContainer=ie,ix(ie.current,n);var pe=n.nodeType===fr?n.parentNode:n;return cm(pe),Xs(function(){ng(a,ie,u,h)}),ie}}function qW(n,a){n!==null&&typeof n!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function xb(n,a,u,h,y){OF(u),qW(y===void 0?null:y,"render");var S=u._reactRootContainer,F;if(!S)F=YW(u,a,n,y,h);else{if(F=S,typeof y=="function"){var j=y;y=function(){var G=mb(F);j.call(G)}}ng(a,F,n,y)}return mb(F)}function GW(n){{var a=$W.current;if(a!==null&&a.stateNode!==null){var u=a.stateNode._warnedAboutRefsInRender;u||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",An(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===Ta?n:RW(n,"findDOMNode")}function KW(n,a,u){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var h=Cm(a)&&a._reactRootContainer===void 0;h&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return xb(null,n,a,!0,u)}function WW(n,a,u){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var h=Cm(a)&&a._reactRootContainer===void 0;h&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return xb(null,n,a,!1,u)}function QW(n,a,u,h){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(u))throw new Error("Target container is not a DOM element.");if(n==null||!ff(n))throw new Error("parentComponent must be a valid React Component");return xb(n,a,u,!1,h)}function ZW(n){if(!rg(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Cm(n)&&n._reactRootContainer===void 0;a&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var u=P4(n),h=u&&!ec(u);h&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Xs(function(){xb(null,null,n,!1,function(){n._reactRootContainer=null,kA(n)})}),!0}else{{var y=P4(n),S=!!(y&&ec(y)),F=n.nodeType===Ta&&rg(n.parentNode)&&!!n.parentNode._reactRootContainer;S&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",F?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}rt(FW),k1(NW),Df(MW),qv(Ci),A1(_f),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),l1(eY),Kd(d4,VK,Xs);function XW(n,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!yb(a))throw new Error("Target container is not a DOM element.");return OW(n,a,null,u)}function JW(n,a,u,h){return QW(n,a,u,h)}var B4={usingClientEntryPoint:!1,Events:[ec,Q0,ox,Gd,sf,d4]};function eQ(n,a){return B4.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),IW(n,a)}function tQ(n,a,u){return B4.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),VW(n,a,u)}function nQ(n){return jR()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Xs(n)}var rQ=jW({findFiberByHostInstance:Bf,bundleType:1,version:A4,rendererPackageName:"react-dom"});if(!rQ&&ze&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var aQ=window.location.protocol;/^(https?|file):$/.test(aQ)}ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B4,ii.createPortal=XW,ii.createRoot=eQ,ii.findDOMNode=GW,ii.flushSync=nQ,ii.hydrate=KW,ii.hydrateRoot=tQ,ii.render=WW,ii.unmountComponentAtNode=ZW,ii.unstable_batchedUpdates=d4,ii.unstable_renderSubtreeIntoContainer=JW,ii.version=A4,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ii}(function(e){function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch{}}}process.env.NODE_ENV==="production"?(r(),e.exports=h9()):e.exports=p9()})(tu);const fg=PF(tu.exports),v9=MF({__proto__:null,default:fg},[tu.exports]);var zb=(e=>(e.zip="application/zip",e.png="image/png",e.jpg="image/jpg",e.jpeg="image/jpeg",e.pdf="application/pdf",e.doc="application/msword",e.docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.pptx="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.ppt="application/vnd.ms-powerpoint",e.xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.xls="application/vnd.ms-excel",e.txt="text/plain",e.csv="text/csv",e.svg="image/svg+xml",e))(zb||{});const Ub=new Map(Object.entries(zb));var ed=(e=>(e.zip=".zip",e.png=".png",e.jpg=".jpg",e.jpeg=".jpeg",e.pdf=".pdf",e.doc=".doc",e.docx=".docx",e.ppt=".ppt",e.pptx=".pptx",e.xls=".xls",e.xlsx=".xlsx",e.txt=".txt",e.csv=".csv",e.svg=".svg",e.rar=".rar",e))(ed||{});const m9=Object.freeze(Object.defineProperty({__proto__:null,FileType:zb,FileTypeMap:Ub,FileSuffix:ed},Symbol.toStringTag,{value:"Module"})),g9=e=>{if(!il.isObject(e))return e;const r=e;return il.pick(r,il.keys(r).filter(t=>!il.isNil(r[t])))},P8=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),dg=e=>{var r;if(e)return"."+((r=e.split(".").at(-1))==null?void 0:r.toLowerCase())},y9=e=>{if(e){if(e.startsWith("http")){const r=e.split(".").at(-1);if(r&&Ub.has(r))return Ub.get(r)}if(e.startsWith("data:")&&e.includes("base64")){const r=e.indexOf(";base64"),t=e.slice(0,r).split(":");if(t[1])return t[1]}}},B8=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;localStorage.setItem(e,t)},jb=e=>{let t=localStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},x9=e=>{localStorage.removeItem(e)},b9=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;sessionStorage.setItem(e,t)},C9=e=>{let t=sessionStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},w9=e=>{sessionStorage.removeItem(e)},_9=(e,r)=>{const t=[];for(let i=0;i<r.length;i++)t.findIndex(l=>l[e]===r[i][e])<0&&t.push(r[i]);return t},Ib=e=>{if(!e)return null;if(typeof e=="object")return e;if(typeof e=="string"){let r=e;try{r=JSON.parse(e)}catch{}return r}};function S9(){var e=URL.createObjectURL(new Blob),r=e.toString();return URL.revokeObjectURL(e),r.substr(r.lastIndexOf("/")+1)}const E9=Object.freeze(Object.defineProperty({__proto__:null,filterObject:g9,getBase64:P8,getFileSuffix:dg,getFileType:y9,setLocalStorage:B8,getLocalStorage:jb,removeLocalStorage:x9,setSessionStorage:b9,getSessionStorage:C9,removeSessionStorage:w9,arrayDeduplication:_9,JSONParse:Ib,uuid:S9,forceReload:()=>{const e="FORCERELOAD";sessionStorage.getItem(e)!=="1"&&(sessionStorage.setItem(e,"1"),window.location.reload())},formatResponse:e=>{if(typeof e=="string"){const r=e.indexOf(",");return JSON.parse(e.slice(r+1))}return e}},Symbol.toStringTag,{value:"Module"}));const D9=4,L8=0,z8=1,k9=2;function td(e){let r=e.length;for(;--r>=0;)e[r]=0}const T9=0,U8=1,A9=2,O9=3,R9=258,Hb=29,Dh=256,kh=Dh+1+Hb,nd=30,Vb=19,j8=2*kh+1,gc=15,$b=16,F9=7,Yb=256,I8=16,H8=17,V8=18,qb=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),hg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),N9=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),$8=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),M9=512,as=new Array((kh+2)*2);td(as);const Th=new Array(nd*2);td(Th);const Ah=new Array(M9);td(Ah);const Oh=new Array(R9-O9+1);td(Oh);const Gb=new Array(Hb);td(Gb);const pg=new Array(nd);td(pg);function Kb(e,r,t,i,l){this.static_tree=e,this.extra_bits=r,this.extra_base=t,this.elems=i,this.max_length=l,this.has_stree=e&&e.length}let Y8,q8,G8;function Wb(e,r){this.dyn_tree=e,this.max_code=0,this.stat_desc=r}const K8=e=>e<256?Ah[e]:Ah[256+(e>>>7)],Rh=(e,r)=>{e.pending_buf[e.pending++]=r&255,e.pending_buf[e.pending++]=r>>>8&255},oi=(e,r,t)=>{e.bi_valid>$b-t?(e.bi_buf|=r<<e.bi_valid&65535,Rh(e,e.bi_buf),e.bi_buf=r>>$b-e.bi_valid,e.bi_valid+=t-$b):(e.bi_buf|=r<<e.bi_valid&65535,e.bi_valid+=t)},ol=(e,r,t)=>{oi(e,t[r*2],t[r*2+1])},W8=(e,r)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--r>0);return t>>>1},P9=e=>{e.bi_valid===16?(Rh(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},B9=(e,r)=>{const t=r.dyn_tree,i=r.max_code,l=r.stat_desc.static_tree,f=r.stat_desc.has_stree,c=r.stat_desc.extra_bits,p=r.stat_desc.extra_base,g=r.stat_desc.max_length;let d,m,C,b,x,_,k=0;for(b=0;b<=gc;b++)e.bl_count[b]=0;for(t[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;d<j8;d++)m=e.heap[d],b=t[t[m*2+1]*2+1]+1,b>g&&(b=g,k++),t[m*2+1]=b,!(m>i)&&(e.bl_count[b]++,x=0,m>=p&&(x=c[m-p]),_=t[m*2],e.opt_len+=_*(b+x),f&&(e.static_len+=_*(l[m*2+1]+x)));if(k!==0){do{for(b=g-1;e.bl_count[b]===0;)b--;e.bl_count[b]--,e.bl_count[b+1]+=2,e.bl_count[g]--,k-=2}while(k>0);for(b=g;b!==0;b--)for(m=e.bl_count[b];m!==0;)C=e.heap[--d],!(C>i)&&(t[C*2+1]!==b&&(e.opt_len+=(b-t[C*2+1])*t[C*2],t[C*2+1]=b),m--)}},Q8=(e,r,t)=>{const i=new Array(gc+1);let l=0,f,c;for(f=1;f<=gc;f++)l=l+t[f-1]<<1,i[f]=l;for(c=0;c<=r;c++){let p=e[c*2+1];p!==0&&(e[c*2]=W8(i[p]++,p))}},L9=()=>{let e,r,t,i,l;const f=new Array(gc+1);for(t=0,i=0;i<Hb-1;i++)for(Gb[i]=t,e=0;e<1<<qb[i];e++)Oh[t++]=i;for(Oh[t-1]=i,l=0,i=0;i<16;i++)for(pg[i]=l,e=0;e<1<<hg[i];e++)Ah[l++]=i;for(l>>=7;i<nd;i++)for(pg[i]=l<<7,e=0;e<1<<hg[i]-7;e++)Ah[256+l++]=i;for(r=0;r<=gc;r++)f[r]=0;for(e=0;e<=143;)as[e*2+1]=8,e++,f[8]++;for(;e<=255;)as[e*2+1]=9,e++,f[9]++;for(;e<=279;)as[e*2+1]=7,e++,f[7]++;for(;e<=287;)as[e*2+1]=8,e++,f[8]++;for(Q8(as,kh+1,f),e=0;e<nd;e++)Th[e*2+1]=5,Th[e*2]=W8(e,5);Y8=new Kb(as,qb,Dh+1,kh,gc),q8=new Kb(Th,hg,0,nd,gc),G8=new Kb(new Array(0),N9,0,Vb,F9)},Z8=e=>{let r;for(r=0;r<kh;r++)e.dyn_ltree[r*2]=0;for(r=0;r<nd;r++)e.dyn_dtree[r*2]=0;for(r=0;r<Vb;r++)e.bl_tree[r*2]=0;e.dyn_ltree[Yb*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},X8=e=>{e.bi_valid>8?Rh(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},J8=(e,r,t,i)=>{const l=r*2,f=t*2;return e[l]<e[f]||e[l]===e[f]&&i[r]<=i[t]},Qb=(e,r,t)=>{const i=e.heap[t];let l=t<<1;for(;l<=e.heap_len&&(l<e.heap_len&&J8(r,e.heap[l+1],e.heap[l],e.depth)&&l++,!J8(r,i,e.heap[l],e.depth));)e.heap[t]=e.heap[l],t=l,l<<=1;e.heap[t]=i},e5=(e,r,t)=>{let i,l,f=0,c,p;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+f++]&255,i+=(e.pending_buf[e.sym_buf+f++]&255)<<8,l=e.pending_buf[e.sym_buf+f++],i===0?ol(e,l,r):(c=Oh[l],ol(e,c+Dh+1,r),p=qb[c],p!==0&&(l-=Gb[c],oi(e,l,p)),i--,c=K8(i),ol(e,c,t),p=hg[c],p!==0&&(i-=pg[c],oi(e,i,p)));while(f<e.sym_next);ol(e,Yb,r)},Zb=(e,r)=>{const t=r.dyn_tree,i=r.stat_desc.static_tree,l=r.stat_desc.has_stree,f=r.stat_desc.elems;let c,p,g=-1,d;for(e.heap_len=0,e.heap_max=j8,c=0;c<f;c++)t[c*2]!==0?(e.heap[++e.heap_len]=g=c,e.depth[c]=0):t[c*2+1]=0;for(;e.heap_len<2;)d=e.heap[++e.heap_len]=g<2?++g:0,t[d*2]=1,e.depth[d]=0,e.opt_len--,l&&(e.static_len-=i[d*2+1]);for(r.max_code=g,c=e.heap_len>>1;c>=1;c--)Qb(e,t,c);d=f;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qb(e,t,1),p=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=p,t[d*2]=t[c*2]+t[p*2],e.depth[d]=(e.depth[c]>=e.depth[p]?e.depth[c]:e.depth[p])+1,t[c*2+1]=t[p*2+1]=d,e.heap[1]=d++,Qb(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],B9(e,r),Q8(t,g,e.bl_count)},t5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],p=0,g=7,d=4;for(c===0&&(g=138,d=3),r[(t+1)*2+1]=65535,i=0;i<=t;i++)f=c,c=r[(i+1)*2+1],!(++p<g&&f===c)&&(p<d?e.bl_tree[f*2]+=p:f!==0?(f!==l&&e.bl_tree[f*2]++,e.bl_tree[I8*2]++):p<=10?e.bl_tree[H8*2]++:e.bl_tree[V8*2]++,p=0,l=f,c===0?(g=138,d=3):f===c?(g=6,d=3):(g=7,d=4))},n5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],p=0,g=7,d=4;for(c===0&&(g=138,d=3),i=0;i<=t;i++)if(f=c,c=r[(i+1)*2+1],!(++p<g&&f===c)){if(p<d)do ol(e,f,e.bl_tree);while(--p!==0);else f!==0?(f!==l&&(ol(e,f,e.bl_tree),p--),ol(e,I8,e.bl_tree),oi(e,p-3,2)):p<=10?(ol(e,H8,e.bl_tree),oi(e,p-3,3)):(ol(e,V8,e.bl_tree),oi(e,p-11,7));p=0,l=f,c===0?(g=138,d=3):f===c?(g=6,d=3):(g=7,d=4)}},z9=e=>{let r;for(t5(e,e.dyn_ltree,e.l_desc.max_code),t5(e,e.dyn_dtree,e.d_desc.max_code),Zb(e,e.bl_desc),r=Vb-1;r>=3&&e.bl_tree[$8[r]*2+1]===0;r--);return e.opt_len+=3*(r+1)+5+5+4,r},U9=(e,r,t,i)=>{let l;for(oi(e,r-257,5),oi(e,t-1,5),oi(e,i-4,4),l=0;l<i;l++)oi(e,e.bl_tree[$8[l]*2+1],3);n5(e,e.dyn_ltree,r-1),n5(e,e.dyn_dtree,t-1)},j9=e=>{let r=4093624447,t;for(t=0;t<=31;t++,r>>>=1)if(r&1&&e.dyn_ltree[t*2]!==0)return L8;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return z8;for(t=32;t<Dh;t++)if(e.dyn_ltree[t*2]!==0)return z8;return L8};let r5=!1;const I9=e=>{r5||(L9(),r5=!0),e.l_desc=new Wb(e.dyn_ltree,Y8),e.d_desc=new Wb(e.dyn_dtree,q8),e.bl_desc=new Wb(e.bl_tree,G8),e.bi_buf=0,e.bi_valid=0,Z8(e)},a5=(e,r,t,i)=>{oi(e,(T9<<1)+(i?1:0),3),X8(e),Rh(e,t),Rh(e,~t),t&&e.pending_buf.set(e.window.subarray(r,r+t),e.pending),e.pending+=t},H9=e=>{oi(e,U8<<1,3),ol(e,Yb,as),P9(e)},V9=(e,r,t,i)=>{let l,f,c=0;e.level>0?(e.strm.data_type===k9&&(e.strm.data_type=j9(e)),Zb(e,e.l_desc),Zb(e,e.d_desc),c=z9(e),l=e.opt_len+3+7>>>3,f=e.static_len+3+7>>>3,f<=l&&(l=f)):l=f=t+5,t+4<=l&&r!==-1?a5(e,r,t,i):e.strategy===D9||f===l?(oi(e,(U8<<1)+(i?1:0),3),e5(e,as,Th)):(oi(e,(A9<<1)+(i?1:0),3),U9(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),e5(e,e.dyn_ltree,e.dyn_dtree)),Z8(e),i&&X8(e)},$9=(e,r,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=r,e.pending_buf[e.sym_buf+e.sym_next++]=r>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,r===0?e.dyn_ltree[t*2]++:(e.matches++,r--,e.dyn_ltree[(Oh[t]+Dh+1)*2]++,e.dyn_dtree[K8(r)*2]++),e.sym_next===e.sym_end);var Y9=I9,q9=a5,G9=V9,K9=$9,W9=H9,Q9={_tr_init:Y9,_tr_stored_block:q9,_tr_flush_block:G9,_tr_tally:K9,_tr_align:W9},Fh=(e,r,t,i)=>{let l=e&65535|0,f=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do l=l+r[i++]|0,f=f+l|0;while(--c);l%=65521,f%=65521}return l|f<<16|0};const Z9=()=>{let e,r=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;r[t]=e}return r},X9=new Uint32Array(Z9());var Xr=(e,r,t,i)=>{const l=X9,f=i+t;e^=-1;for(let c=i;c<f;c++)e=e>>>8^l[(e^r[c])&255];return e^-1},yc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:J9,_tr_stored_block:Xb,_tr_flush_block:eN,_tr_tally:nu,_tr_align:tN}=Q9,{Z_NO_FLUSH:ru,Z_PARTIAL_FLUSH:nN,Z_FULL_FLUSH:rN,Z_FINISH:Zi,Z_BLOCK:i5,Z_OK:da,Z_STREAM_END:o5,Z_STREAM_ERROR:ll,Z_DATA_ERROR:aN,Z_BUF_ERROR:Jb,Z_DEFAULT_COMPRESSION:iN,Z_FILTERED:oN,Z_HUFFMAN_ONLY:vg,Z_RLE:lN,Z_FIXED:sN,Z_DEFAULT_STRATEGY:uN,Z_UNKNOWN:cN,Z_DEFLATED:mg}=xc,fN=9,dN=15,hN=8,pN=29,e2=256+1+pN,vN=30,mN=19,gN=2*e2+1,yN=15,Kt=3,au=258,sl=au+Kt+1,xN=32,rd=42,t2=57,n2=69,r2=73,a2=91,i2=103,bc=113,Nh=666,Ha=1,ad=2,Cc=3,id=4,bN=3,wc=(e,r)=>(e.msg=yc[r],r),l5=e=>e*2-(e>4?9:0),iu=e=>{let r=e.length;for(;--r>=0;)e[r]=0},CN=e=>{let r,t,i,l=e.w_size;r=e.hash_size,i=r;do t=e.head[--i],e.head[i]=t>=l?t-l:0;while(--r);r=l,i=r;do t=e.prev[--i],e.prev[i]=t>=l?t-l:0;while(--r)};let ou=(e,r,t)=>(r<<e.hash_shift^t)&e.hash_mask;const Oi=e=>{const r=e.state;let t=r.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(r.pending_buf.subarray(r.pending_out,r.pending_out+t),e.next_out),e.next_out+=t,r.pending_out+=t,e.total_out+=t,e.avail_out-=t,r.pending-=t,r.pending===0&&(r.pending_out=0))},Ri=(e,r)=>{eN(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r),e.block_start=e.strstart,Oi(e.strm)},dn=(e,r)=>{e.pending_buf[e.pending++]=r},Mh=(e,r)=>{e.pending_buf[e.pending++]=r>>>8&255,e.pending_buf[e.pending++]=r&255},o2=(e,r,t,i)=>{let l=e.avail_in;return l>i&&(l=i),l===0?0:(e.avail_in-=l,r.set(e.input.subarray(e.next_in,e.next_in+l),t),e.state.wrap===1?e.adler=Fh(e.adler,r,l,t):e.state.wrap===2&&(e.adler=Xr(e.adler,r,l,t)),e.next_in+=l,e.total_in+=l,l)},s5=(e,r)=>{let t=e.max_chain_length,i=e.strstart,l,f,c=e.prev_length,p=e.nice_match;const g=e.strstart>e.w_size-sl?e.strstart-(e.w_size-sl):0,d=e.window,m=e.w_mask,C=e.prev,b=e.strstart+au;let x=d[i+c-1],_=d[i+c];e.prev_length>=e.good_match&&(t>>=2),p>e.lookahead&&(p=e.lookahead);do if(l=r,!(d[l+c]!==_||d[l+c-1]!==x||d[l]!==d[i]||d[++l]!==d[i+1])){i+=2,l++;do;while(d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&i<b);if(f=au-(b-i),i=b-au,f>c){if(e.match_start=r,c=f,f>=p)break;x=d[i+c-1],_=d[i+c]}}while((r=C[r&m])>g&&--t!==0);return c<=e.lookahead?c:e.lookahead},od=e=>{const r=e.w_size;let t,i,l;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=r+(r-sl)&&(e.window.set(e.window.subarray(r,r+r-i),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.insert>e.strstart&&(e.insert=e.strstart),CN(e),i+=r),e.strm.avail_in===0)break;if(t=o2(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=Kt)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=ou(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=ou(e,e.ins_h,e.window[l+Kt-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<Kt)););}while(e.lookahead<sl&&e.strm.avail_in!==0)},u5=(e,r)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,l,f,c=0,p=e.strm.avail_in;do{if(i=65535,f=e.bi_valid+42>>3,e.strm.avail_out<f||(f=e.strm.avail_out-f,l=e.strstart-e.block_start,i>l+e.strm.avail_in&&(i=l+e.strm.avail_in),i>f&&(i=f),i<t&&(i===0&&r!==Zi||r===ru||i!==l+e.strm.avail_in)))break;c=r===Zi&&i===l+e.strm.avail_in?1:0,Xb(e,0,0,c),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Oi(e.strm),l&&(l>i&&(l=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+l),e.strm.next_out),e.strm.next_out+=l,e.strm.avail_out-=l,e.strm.total_out+=l,e.block_start+=l,i-=l),i&&(o2(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(c===0);return p-=e.strm.avail_in,p&&(p>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=p&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-p,e.strm.next_in),e.strstart),e.strstart+=p,e.insert+=p>e.w_size-e.insert?e.w_size-e.insert:p),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),c?id:r!==ru&&r!==Zi&&e.strm.avail_in===0&&e.strstart===e.block_start?ad:(f=e.window_size-e.strstart,e.strm.avail_in>f&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,f+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),f>e.strm.avail_in&&(f=e.strm.avail_in),f&&(o2(e.strm,e.window,e.strstart,f),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.high_water<e.strstart&&(e.high_water=e.strstart),f=e.bi_valid+42>>3,f=e.pending_buf_size-f>65535?65535:e.pending_buf_size-f,t=f>e.w_size?e.w_size:f,l=e.strstart-e.block_start,(l>=t||(l||r===Zi)&&r!==ru&&e.strm.avail_in===0&&l<=f)&&(i=l>f?f:l,c=r===Zi&&e.strm.avail_in===0&&i===l?1:0,Xb(e,e.block_start,i,c),e.block_start+=i,Oi(e.strm)),c?Cc:Ha)},l2=(e,r)=>{let t,i;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Kt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-sl&&(e.match_length=s5(e,t)),e.match_length>=Kt)if(i=nu(e,e.strstart-e.match_start,e.match_length-Kt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Kt){e.match_length--;do e.strstart++,e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ou(e,e.ins_h,e.window[e.strstart+1]);else i=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=e.strstart<Kt-1?e.strstart:Kt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},ld=(e,r)=>{let t,i,l;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Kt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Kt-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-sl&&(e.match_length=s5(e,t),e.match_length<=5&&(e.strategy===oN||e.match_length===Kt&&e.strstart-e.match_start>4096)&&(e.match_length=Kt-1)),e.prev_length>=Kt&&e.match_length<=e.prev_length){l=e.strstart+e.lookahead-Kt,i=nu(e,e.strstart-1-e.prev_match,e.prev_length-Kt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=l&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Kt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Kt-1,e.strstart++,i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}else if(e.match_available){if(i=nu(e,0,e.window[e.strstart-1]),i&&Ri(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ha}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=nu(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Kt-1?e.strstart:Kt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},wN=(e,r)=>{let t,i,l,f;const c=e.window;for(;;){if(e.lookahead<=au){if(od(e),e.lookahead<=au&&r===ru)return Ha;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Kt&&e.strstart>0&&(l=e.strstart-1,i=c[l],i===c[++l]&&i===c[++l]&&i===c[++l])){f=e.strstart+au;do;while(i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&l<f);e.match_length=au-(f-l),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Kt?(t=nu(e,1,e.match_length-Kt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},_N=(e,r)=>{let t;for(;;){if(e.lookahead===0&&(od(e),e.lookahead===0)){if(r===ru)return Ha;break}if(e.match_length=0,t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad};function ul(e,r,t,i,l){this.good_length=e,this.max_lazy=r,this.nice_length=t,this.max_chain=i,this.func=l}const Ph=[new ul(0,0,0,0,u5),new ul(4,4,8,4,l2),new ul(4,5,16,8,l2),new ul(4,6,32,32,l2),new ul(4,4,16,16,ld),new ul(8,16,32,32,ld),new ul(8,16,128,128,ld),new ul(8,32,128,256,ld),new ul(32,128,258,1024,ld),new ul(32,258,258,4096,ld)],SN=e=>{e.window_size=2*e.w_size,iu(e.head),e.max_lazy_match=Ph[e.level].max_lazy,e.good_match=Ph[e.level].good_length,e.nice_match=Ph[e.level].nice_length,e.max_chain_length=Ph[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Kt-1,e.match_available=0,e.ins_h=0};function EN(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mg,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(gN*2),this.dyn_dtree=new Uint16Array((2*vN+1)*2),this.bl_tree=new Uint16Array((2*mN+1)*2),iu(this.dyn_ltree),iu(this.dyn_dtree),iu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(yN+1),this.heap=new Uint16Array(2*e2+1),iu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*e2+1),iu(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Bh=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.status!==rd&&r.status!==t2&&r.status!==n2&&r.status!==r2&&r.status!==a2&&r.status!==i2&&r.status!==bc&&r.status!==Nh?1:0},c5=e=>{if(Bh(e))return wc(e,ll);e.total_in=e.total_out=0,e.data_type=cN;const r=e.state;return r.pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap===2?t2:r.wrap?rd:bc,e.adler=r.wrap===2?0:1,r.last_flush=-2,J9(r),da},f5=e=>{const r=c5(e);return r===da&&SN(e.state),r},DN=(e,r)=>Bh(e)||e.state.wrap!==2?ll:(e.state.gzhead=r,da),d5=(e,r,t,i,l,f)=>{if(!e)return ll;let c=1;if(r===iN&&(r=6),i<0?(c=0,i=-i):i>15&&(c=2,i-=16),l<1||l>fN||t!==mg||i<8||i>15||r<0||r>9||f<0||f>sN||i===8&&c!==1)return wc(e,ll);i===8&&(i=9);const p=new EN;return e.state=p,p.strm=e,p.status=rd,p.wrap=c,p.gzhead=null,p.w_bits=i,p.w_size=1<<p.w_bits,p.w_mask=p.w_size-1,p.hash_bits=l+7,p.hash_size=1<<p.hash_bits,p.hash_mask=p.hash_size-1,p.hash_shift=~~((p.hash_bits+Kt-1)/Kt),p.window=new Uint8Array(p.w_size*2),p.head=new Uint16Array(p.hash_size),p.prev=new Uint16Array(p.w_size),p.lit_bufsize=1<<l+6,p.pending_buf_size=p.lit_bufsize*4,p.pending_buf=new Uint8Array(p.pending_buf_size),p.sym_buf=p.lit_bufsize,p.sym_end=(p.lit_bufsize-1)*3,p.level=r,p.strategy=f,p.method=t,f5(e)},kN=(e,r)=>d5(e,r,mg,dN,hN,uN),TN=(e,r)=>{if(Bh(e)||r>i5||r<0)return e?wc(e,ll):ll;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Nh&&r!==Zi)return wc(e,e.avail_out===0?Jb:ll);const i=t.last_flush;if(t.last_flush=r,t.pending!==0){if(Oi(e),e.avail_out===0)return t.last_flush=-1,da}else if(e.avail_in===0&&l5(r)<=l5(i)&&r!==Zi)return wc(e,Jb);if(t.status===Nh&&e.avail_in!==0)return wc(e,Jb);if(t.status===rd&&t.wrap===0&&(t.status=bc),t.status===rd){let l=mg+(t.w_bits-8<<4)<<8,f=-1;if(t.strategy>=vg||t.level<2?f=0:t.level<6?f=1:t.level===6?f=2:f=3,l|=f<<6,t.strstart!==0&&(l|=xN),l+=31-l%31,Mh(t,l),t.strstart!==0&&(Mh(t,e.adler>>>16),Mh(t,e.adler&65535)),e.adler=1,t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,da}if(t.status===t2){if(e.adler=0,dn(t,31),dn(t,139),dn(t,8),t.gzhead)dn(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),dn(t,t.gzhead.time&255),dn(t,t.gzhead.time>>8&255),dn(t,t.gzhead.time>>16&255),dn(t,t.gzhead.time>>24&255),dn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),dn(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(dn(t,t.gzhead.extra.length&255),dn(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=Xr(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=n2;else if(dn(t,0),dn(t,0),dn(t,0),dn(t,0),dn(t,0),dn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),dn(t,bN),t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,da}if(t.status===n2){if(t.gzhead.extra){let l=t.pending,f=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+f>t.pending_buf_size;){let p=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+p),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex+=p,Oi(e),t.pending!==0)return t.last_flush=-1,da;l=0,f-=p}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+f),t.pending),t.pending+=f,t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=r2}if(t.status===r2){if(t.gzhead.name){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,da;l=0}t.gzindex<t.gzhead.name.length?f=t.gzhead.name.charCodeAt(t.gzindex++)&255:f=0,dn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=a2}if(t.status===a2){if(t.gzhead.comment){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,da;l=0}t.gzindex<t.gzhead.comment.length?f=t.gzhead.comment.charCodeAt(t.gzindex++)&255:f=0,dn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Xr(e.adler,t.pending_buf,t.pending-l,l))}t.status=i2}if(t.status===i2){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Oi(e),t.pending!==0))return t.last_flush=-1,da;dn(t,e.adler&255),dn(t,e.adler>>8&255),e.adler=0}if(t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,da}if(e.avail_in!==0||t.lookahead!==0||r!==ru&&t.status!==Nh){let l=t.level===0?u5(t,r):t.strategy===vg?_N(t,r):t.strategy===lN?wN(t,r):Ph[t.level].func(t,r);if((l===Cc||l===id)&&(t.status=Nh),l===Ha||l===Cc)return e.avail_out===0&&(t.last_flush=-1),da;if(l===ad&&(r===nN?tN(t):r!==i5&&(Xb(t,0,0,!1),r===rN&&(iu(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Oi(e),e.avail_out===0))return t.last_flush=-1,da}return r!==Zi?da:t.wrap<=0?o5:(t.wrap===2?(dn(t,e.adler&255),dn(t,e.adler>>8&255),dn(t,e.adler>>16&255),dn(t,e.adler>>24&255),dn(t,e.total_in&255),dn(t,e.total_in>>8&255),dn(t,e.total_in>>16&255),dn(t,e.total_in>>24&255)):(Mh(t,e.adler>>>16),Mh(t,e.adler&65535)),Oi(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?da:o5)},AN=e=>{if(Bh(e))return ll;const r=e.state.status;return e.state=null,r===bc?wc(e,aN):da},ON=(e,r)=>{let t=r.length;if(Bh(e))return ll;const i=e.state,l=i.wrap;if(l===2||l===1&&i.status!==rd||i.lookahead)return ll;if(l===1&&(e.adler=Fh(e.adler,r,t,0)),i.wrap=0,t>=i.w_size){l===0&&(iu(i.head),i.strstart=0,i.block_start=0,i.insert=0);let g=new Uint8Array(i.w_size);g.set(r.subarray(t-i.w_size,t),0),r=g,t=i.w_size}const f=e.avail_in,c=e.next_in,p=e.input;for(e.avail_in=t,e.next_in=0,e.input=r,od(i);i.lookahead>=Kt;){let g=i.strstart,d=i.lookahead-(Kt-1);do i.ins_h=ou(i,i.ins_h,i.window[g+Kt-1]),i.prev[g&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=g,g++;while(--d);i.strstart=g,i.lookahead=Kt-1,od(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Kt-1,i.match_available=0,e.next_in=c,e.input=p,e.avail_in=f,i.wrap=l,da};var RN=kN,FN=d5,NN=f5,MN=c5,PN=DN,BN=TN,LN=AN,zN=ON,UN="pako deflate (from Nodeca project)",Lh={deflateInit:RN,deflateInit2:FN,deflateReset:NN,deflateResetKeep:MN,deflateSetHeader:PN,deflate:BN,deflateEnd:LN,deflateSetDictionary:zN,deflateInfo:UN};const jN=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var IN=function(e){const r=Array.prototype.slice.call(arguments,1);for(;r.length;){const t=r.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)jN(t,i)&&(e[i]=t[i])}}return e},HN=e=>{let r=0;for(let i=0,l=e.length;i<l;i++)r+=e[i].length;const t=new Uint8Array(r);for(let i=0,l=0,f=e.length;i<f;i++){let c=e[i];t.set(c,l),l+=c.length}return t},gg={assign:IN,flattenChunks:HN};let h5=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h5=!1}const zh=new Uint8Array(256);for(let e=0;e<256;e++)zh[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;zh[254]=zh[254]=1;var VN=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let r,t,i,l,f,c=e.length,p=0;for(l=0;l<c;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),p+=t<128?1:t<2048?2:t<65536?3:4;for(r=new Uint8Array(p),f=0,l=0;f<p;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),t<128?r[f++]=t:t<2048?(r[f++]=192|t>>>6,r[f++]=128|t&63):t<65536?(r[f++]=224|t>>>12,r[f++]=128|t>>>6&63,r[f++]=128|t&63):(r[f++]=240|t>>>18,r[f++]=128|t>>>12&63,r[f++]=128|t>>>6&63,r[f++]=128|t&63);return r};const $N=(e,r)=>{if(r<65534&&e.subarray&&h5)return String.fromCharCode.apply(null,e.length===r?e:e.subarray(0,r));let t="";for(let i=0;i<r;i++)t+=String.fromCharCode(e[i]);return t};var YN=(e,r)=>{const t=r||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,r));let i,l;const f=new Array(t*2);for(l=0,i=0;i<t;){let c=e[i++];if(c<128){f[l++]=c;continue}let p=zh[c];if(p>4){f[l++]=65533,i+=p-1;continue}for(c&=p===2?31:p===3?15:7;p>1&&i<t;)c=c<<6|e[i++]&63,p--;if(p>1){f[l++]=65533;continue}c<65536?f[l++]=c:(c-=65536,f[l++]=55296|c>>10&1023,f[l++]=56320|c&1023)}return $N(f,l)},qN=(e,r)=>{r=r||e.length,r>e.length&&(r=e.length);let t=r-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?r:t+zh[e[t]]>r?t:r},Uh={string2buf:VN,buf2string:YN,utf8border:qN};function GN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var p5=GN;const v5=Object.prototype.toString,{Z_NO_FLUSH:KN,Z_SYNC_FLUSH:WN,Z_FULL_FLUSH:QN,Z_FINISH:ZN,Z_OK:yg,Z_STREAM_END:XN,Z_DEFAULT_COMPRESSION:JN,Z_DEFAULT_STRATEGY:eM,Z_DEFLATED:tM}=xc;function jh(e){this.options=gg.assign({level:JN,method:tM,chunkSize:16384,windowBits:15,memLevel:8,strategy:eM},e||{});let r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p5,this.strm.avail_out=0;let t=Lh.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==yg)throw new Error(yc[t]);if(r.header&&Lh.deflateSetHeader(this.strm,r.header),r.dictionary){let i;if(typeof r.dictionary=="string"?i=Uh.string2buf(r.dictionary):v5.call(r.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(r.dictionary):i=r.dictionary,t=Lh.deflateSetDictionary(this.strm,i),t!==yg)throw new Error(yc[t]);this._dict_set=!0}}jh.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize;let l,f;if(this.ended)return!1;for(r===~~r?f=r:f=r===!0?ZN:KN,typeof e=="string"?t.input=Uh.string2buf(e):v5.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(f===WN||f===QN)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(l=Lh.deflate(t,f),l===XN)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),l=Lh.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===yg;if(t.avail_out===0){this.onData(t.output);continue}if(f>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},jh.prototype.onData=function(e){this.chunks.push(e)},jh.prototype.onEnd=function(e){e===yg&&(this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s2(e,r){const t=new jh(r);if(t.push(e,!0),t.err)throw t.msg||yc[t.err];return t.result}function nM(e,r){return r=r||{},r.raw=!0,s2(e,r)}function rM(e,r){return r=r||{},r.gzip=!0,s2(e,r)}var aM=jh,iM=s2,oM=nM,lM=rM,sM=xc,uM={Deflate:aM,deflate:iM,deflateRaw:oM,gzip:lM,constants:sM};const xg=16209,cM=16191;var fM=function(r,t){let i,l,f,c,p,g,d,m,C,b,x,_,k,E,A,T,D,R,N,z,M,I,Y,B;const P=r.state;i=r.next_in,Y=r.input,l=i+(r.avail_in-5),f=r.next_out,B=r.output,c=f-(t-r.avail_out),p=f+(r.avail_out-257),g=P.dmax,d=P.wsize,m=P.whave,C=P.wnext,b=P.window,x=P.hold,_=P.bits,k=P.lencode,E=P.distcode,A=(1<<P.lenbits)-1,T=(1<<P.distbits)-1;e:do{_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=k[x&A];t:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R===0)B[f++]=D&65535;else if(R&16){N=D&65535,R&=15,R&&(_<R&&(x+=Y[i++]<<_,_+=8),N+=x&(1<<R)-1,x>>>=R,_-=R),_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=E[x&T];n:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R&16){if(z=D&65535,R&=15,_<R&&(x+=Y[i++]<<_,_+=8,_<R&&(x+=Y[i++]<<_,_+=8)),z+=x&(1<<R)-1,z>g){r.msg="invalid distance too far back",P.mode=xg;break e}if(x>>>=R,_-=R,R=f-c,z>R){if(R=z-R,R>m&&P.sane){r.msg="invalid distance too far back",P.mode=xg;break e}if(M=0,I=b,C===0){if(M+=d-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}else if(C<R){if(M+=d+C-R,R-=C,R<N){N-=R;do B[f++]=b[M++];while(--R);if(M=0,C<N){R=C,N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}}else if(M+=C-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}for(;N>2;)B[f++]=I[M++],B[f++]=I[M++],B[f++]=I[M++],N-=3;N&&(B[f++]=I[M++],N>1&&(B[f++]=I[M++]))}else{M=f-z;do B[f++]=B[M++],B[f++]=B[M++],B[f++]=B[M++],N-=3;while(N>2);N&&(B[f++]=B[M++],N>1&&(B[f++]=B[M++]))}}else if(R&64){r.msg="invalid distance code",P.mode=xg;break e}else{D=E[(D&65535)+(x&(1<<R)-1)];continue n}break}}else if(R&64)if(R&32){P.mode=cM;break e}else{r.msg="invalid literal/length code",P.mode=xg;break e}else{D=k[(D&65535)+(x&(1<<R)-1)];continue t}break}}while(i<l&&f<p);N=_>>3,i-=N,_-=N<<3,x&=(1<<_)-1,r.next_in=i,r.next_out=f,r.avail_in=i<l?5+(l-i):5-(i-l),r.avail_out=f<p?257+(p-f):257-(f-p),P.hold=x,P.bits=_};const sd=15,m5=852,g5=592,y5=0,u2=1,x5=2,dM=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),hM=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pM=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),vM=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Ih=(e,r,t,i,l,f,c,p)=>{const g=p.bits;let d=0,m=0,C=0,b=0,x=0,_=0,k=0,E=0,A=0,T=0,D,R,N,z,M,I=null,Y;const B=new Uint16Array(sd+1),P=new Uint16Array(sd+1);let U=null,H,V,K;for(d=0;d<=sd;d++)B[d]=0;for(m=0;m<i;m++)B[r[t+m]]++;for(x=g,b=sd;b>=1&&B[b]===0;b--);if(x>b&&(x=b),b===0)return l[f++]=1<<24|64<<16|0,l[f++]=1<<24|64<<16|0,p.bits=1,0;for(C=1;C<b&&B[C]===0;C++);for(x<C&&(x=C),E=1,d=1;d<=sd;d++)if(E<<=1,E-=B[d],E<0)return-1;if(E>0&&(e===y5||b!==1))return-1;for(P[1]=0,d=1;d<sd;d++)P[d+1]=P[d]+B[d];for(m=0;m<i;m++)r[t+m]!==0&&(c[P[r[t+m]]++]=m);if(e===y5?(I=U=c,Y=20):e===u2?(I=dM,U=hM,Y=257):(I=pM,U=vM,Y=0),T=0,m=0,d=C,M=f,_=x,k=0,N=-1,A=1<<x,z=A-1,e===u2&&A>m5||e===x5&&A>g5)return 1;for(;;){H=d-k,c[m]+1<Y?(V=0,K=c[m]):c[m]>=Y?(V=U[c[m]-Y],K=I[c[m]-Y]):(V=32+64,K=0),D=1<<d-k,R=1<<_,C=R;do R-=D,l[M+(T>>k)+R]=H<<24|V<<16|K|0;while(R!==0);for(D=1<<d-1;T&D;)D>>=1;if(D!==0?(T&=D-1,T+=D):T=0,m++,--B[d]===0){if(d===b)break;d=r[t+c[m]]}if(d>x&&(T&z)!==N){for(k===0&&(k=x),M+=C,_=d-k,E=1<<_;_+k<b&&(E-=B[_+k],!(E<=0));)_++,E<<=1;if(A+=1<<_,e===u2&&A>m5||e===x5&&A>g5)return 1;N=T&z,l[N]=x<<24|_<<16|M-f|0}}return T!==0&&(l[M+T]=d-k<<24|64<<16|0),p.bits=x,0};const mM=0,b5=1,C5=2,{Z_FINISH:w5,Z_BLOCK:gM,Z_TREES:bg,Z_OK:_c,Z_STREAM_END:yM,Z_NEED_DICT:xM,Z_STREAM_ERROR:Xi,Z_DATA_ERROR:_5,Z_MEM_ERROR:S5,Z_BUF_ERROR:bM,Z_DEFLATED:E5}=xc,Cg=16180,D5=16181,k5=16182,T5=16183,A5=16184,O5=16185,R5=16186,F5=16187,N5=16188,M5=16189,wg=16190,is=16191,c2=16192,P5=16193,f2=16194,B5=16195,L5=16196,z5=16197,U5=16198,_g=16199,Sg=16200,j5=16201,I5=16202,H5=16203,V5=16204,$5=16205,d2=16206,Y5=16207,q5=16208,er=16209,G5=16210,K5=16211,CM=852,wM=592,_M=15,W5=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function SM(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Sc=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.mode<Cg||r.mode>K5?1:0},Q5=e=>{if(Sc(e))return Xi;const r=e.state;return e.total_in=e.total_out=r.total=0,e.msg="",r.wrap&&(e.adler=r.wrap&1),r.mode=Cg,r.last=0,r.havedict=0,r.flags=-1,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new Int32Array(CM),r.distcode=r.distdyn=new Int32Array(wM),r.sane=1,r.back=-1,_c},Z5=e=>{if(Sc(e))return Xi;const r=e.state;return r.wsize=0,r.whave=0,r.wnext=0,Q5(e)},X5=(e,r)=>{let t;if(Sc(e))return Xi;const i=e.state;return r<0?(t=0,r=-r):(t=(r>>4)+5,r<48&&(r&=15)),r&&(r<8||r>15)?Xi:(i.window!==null&&i.wbits!==r&&(i.window=null),i.wrap=t,i.wbits=r,Z5(e))},J5=(e,r)=>{if(!e)return Xi;const t=new SM;e.state=t,t.strm=e,t.window=null,t.mode=Cg;const i=X5(e,r);return i!==_c&&(e.state=null),i},EM=e=>J5(e,_M);let e6=!0,h2,p2;const DM=e=>{if(e6){h2=new Int32Array(512),p2=new Int32Array(32);let r=0;for(;r<144;)e.lens[r++]=8;for(;r<256;)e.lens[r++]=9;for(;r<280;)e.lens[r++]=7;for(;r<288;)e.lens[r++]=8;for(Ih(b5,e.lens,0,288,h2,0,e.work,{bits:9}),r=0;r<32;)e.lens[r++]=5;Ih(C5,e.lens,0,32,p2,0,e.work,{bits:5}),e6=!1}e.lencode=h2,e.lenbits=9,e.distcode=p2,e.distbits=5},t6=(e,r,t,i)=>{let l;const f=e.state;return f.window===null&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new Uint8Array(f.wsize)),i>=f.wsize?(f.window.set(r.subarray(t-f.wsize,t),0),f.wnext=0,f.whave=f.wsize):(l=f.wsize-f.wnext,l>i&&(l=i),f.window.set(r.subarray(t-i,t-i+l),f.wnext),i-=l,i?(f.window.set(r.subarray(t-i,t),0),f.wnext=i,f.whave=f.wsize):(f.wnext+=l,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=l))),0},kM=(e,r)=>{let t,i,l,f,c,p,g,d,m,C,b,x,_,k,E=0,A,T,D,R,N,z,M,I;const Y=new Uint8Array(4);let B,P;const U=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Sc(e)||!e.output||!e.input&&e.avail_in!==0)return Xi;t=e.state,t.mode===is&&(t.mode=c2),c=e.next_out,l=e.output,g=e.avail_out,f=e.next_in,i=e.input,p=e.avail_in,d=t.hold,m=t.bits,C=p,b=g,I=_c;e:for(;;)switch(t.mode){case Cg:if(t.wrap===0){t.mode=c2;break}for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.wrap&2&&d===35615){t.wbits===0&&(t.wbits=15),t.check=0,Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0),d=0,m=0,t.mode=D5;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",t.mode=er;break}if((d&15)!==E5){e.msg="unknown compression method",t.mode=er;break}if(d>>>=4,m-=4,M=(d&15)+8,t.wbits===0&&(t.wbits=M),M>15||M>t.wbits){e.msg="invalid window size",t.mode=er;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=d&512?M5:is,d=0,m=0;break;case D5:for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.flags=d,(t.flags&255)!==E5){e.msg="unknown compression method",t.mode=er;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=er;break}t.head&&(t.head.text=d>>8&1),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0)),d=0,m=0,t.mode=k5;case k5:for(;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.head&&(t.head.time=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,Y[2]=d>>>16&255,Y[3]=d>>>24&255,t.check=Xr(t.check,Y,4,0)),d=0,m=0,t.mode=T5;case T5:for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.head&&(t.head.xflags=d&255,t.head.os=d>>8),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0)),d=0,m=0,t.mode=A5;case A5:if(t.flags&1024){for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.length=d,t.head&&(t.head.extra_len=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Xr(t.check,Y,2,0)),d=0,m=0}else t.head&&(t.head.extra=null);t.mode=O5;case O5:if(t.flags&1024&&(x=t.length,x>p&&(x=p),x&&(t.head&&(M=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(f,f+x),M)),t.flags&512&&t.wrap&4&&(t.check=Xr(t.check,i,x,f)),p-=x,f+=x,t.length-=x),t.length))break e;t.length=0,t.mode=R5;case R5:if(t.flags&2048){if(p===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.name+=String.fromCharCode(M));while(M&&x<p);if(t.flags&512&&t.wrap&4&&(t.check=Xr(t.check,i,x,f)),p-=x,f+=x,M)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=F5;case F5:if(t.flags&4096){if(p===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.comment+=String.fromCharCode(M));while(M&&x<p);if(t.flags&512&&t.wrap&4&&(t.check=Xr(t.check,i,x,f)),p-=x,f+=x,M)break e}else t.head&&(t.head.comment=null);t.mode=N5;case N5:if(t.flags&512){for(;m<16;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.wrap&4&&d!==(t.check&65535)){e.msg="header crc mismatch",t.mode=er;break}d=0,m=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=is;break;case M5:for(;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}e.adler=t.check=W5(d),d=0,m=0,t.mode=wg;case wg:if(t.havedict===0)return e.next_out=c,e.avail_out=g,e.next_in=f,e.avail_in=p,t.hold=d,t.bits=m,xM;e.adler=t.check=1,t.mode=is;case is:if(r===gM||r===bg)break e;case c2:if(t.last){d>>>=m&7,m-=m&7,t.mode=d2;break}for(;m<3;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}switch(t.last=d&1,d>>>=1,m-=1,d&3){case 0:t.mode=P5;break;case 1:if(DM(t),t.mode=_g,r===bg){d>>>=2,m-=2;break e}break;case 2:t.mode=L5;break;case 3:e.msg="invalid block type",t.mode=er}d>>>=2,m-=2;break;case P5:for(d>>>=m&7,m-=m&7;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",t.mode=er;break}if(t.length=d&65535,d=0,m=0,t.mode=f2,r===bg)break e;case f2:t.mode=B5;case B5:if(x=t.length,x){if(x>p&&(x=p),x>g&&(x=g),x===0)break e;l.set(i.subarray(f,f+x),c),p-=x,f+=x,g-=x,c+=x,t.length-=x;break}t.mode=is;break;case L5:for(;m<14;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.nlen=(d&31)+257,d>>>=5,m-=5,t.ndist=(d&31)+1,d>>>=5,m-=5,t.ncode=(d&15)+4,d>>>=4,m-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=er;break}t.have=0,t.mode=z5;case z5:for(;t.have<t.ncode;){for(;m<3;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.lens[U[t.have++]]=d&7,d>>>=3,m-=3}for(;t.have<19;)t.lens[U[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,B={bits:t.lenbits},I=Ih(mM,t.lens,0,19,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid code lengths set",t.mode=er;break}t.have=0,t.mode=U5;case U5:for(;t.have<t.nlen+t.ndist;){for(;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(D<16)d>>>=A,m-=A,t.lens[t.have++]=D;else{if(D===16){for(P=A+2;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(d>>>=A,m-=A,t.have===0){e.msg="invalid bit length repeat",t.mode=er;break}M=t.lens[t.have-1],x=3+(d&3),d>>>=2,m-=2}else if(D===17){for(P=A+3;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=A,m-=A,M=0,x=3+(d&7),d>>>=3,m-=3}else{for(P=A+7;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=A,m-=A,M=0,x=11+(d&127),d>>>=7,m-=7}if(t.have+x>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=er;break}for(;x--;)t.lens[t.have++]=M}}if(t.mode===er)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=er;break}if(t.lenbits=9,B={bits:t.lenbits},I=Ih(b5,t.lens,0,t.nlen,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid literal/lengths set",t.mode=er;break}if(t.distbits=6,t.distcode=t.distdyn,B={bits:t.distbits},I=Ih(C5,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,B),t.distbits=B.bits,I){e.msg="invalid distances set",t.mode=er;break}if(t.mode=_g,r===bg)break e;case _g:t.mode=Sg;case Sg:if(p>=6&&g>=258){e.next_out=c,e.avail_out=g,e.next_in=f,e.avail_in=p,t.hold=d,t.bits=m,fM(e,b),c=e.next_out,l=e.output,g=e.avail_out,f=e.next_in,i=e.input,p=e.avail_in,d=t.hold,m=t.bits,t.mode===is&&(t.back=-1);break}for(t.back=0;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(T&&!(T&240)){for(R=A,N=T,z=D;E=t.lencode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=R,m-=R,t.back+=R}if(d>>>=A,m-=A,t.back+=A,t.length=D,T===0){t.mode=$5;break}if(T&32){t.back=-1,t.mode=is;break}if(T&64){e.msg="invalid literal/length code",t.mode=er;break}t.extra=T&15,t.mode=j5;case j5:if(t.extra){for(P=t.extra;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.length+=d&(1<<t.extra)-1,d>>>=t.extra,m-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=I5;case I5:for(;E=t.distcode[d&(1<<t.distbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(!(T&240)){for(R=A,N=T,z=D;E=t.distcode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=m);){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}d>>>=R,m-=R,t.back+=R}if(d>>>=A,m-=A,t.back+=A,T&64){e.msg="invalid distance code",t.mode=er;break}t.offset=D,t.extra=T&15,t.mode=H5;case H5:if(t.extra){for(P=t.extra;m<P;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}t.offset+=d&(1<<t.extra)-1,d>>>=t.extra,m-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=er;break}t.mode=V5;case V5:if(g===0)break e;if(x=b-g,t.offset>x){if(x=t.offset-x,x>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=er;break}x>t.wnext?(x-=t.wnext,_=t.wsize-x):_=t.wnext-x,x>t.length&&(x=t.length),k=t.window}else k=l,_=c-t.offset,x=t.length;x>g&&(x=g),g-=x,t.length-=x;do l[c++]=k[_++];while(--x);t.length===0&&(t.mode=Sg);break;case $5:if(g===0)break e;l[c++]=t.length,g--,t.mode=Sg;break;case d2:if(t.wrap){for(;m<32;){if(p===0)break e;p--,d|=i[f++]<<m,m+=8}if(b-=g,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Xr(t.check,l,b,c-b):Fh(t.check,l,b,c-b)),b=g,t.wrap&4&&(t.flags?d:W5(d))!==t.check){e.msg="incorrect data check",t.mode=er;break}d=0,m=0}t.mode=Y5;case Y5:if(t.wrap&&t.flags){for(;m<32;){if(p===0)break e;p--,d+=i[f++]<<m,m+=8}if(t.wrap&4&&d!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=er;break}d=0,m=0}t.mode=q5;case q5:I=yM;break e;case er:I=_5;break e;case G5:return S5;case K5:default:return Xi}return e.next_out=c,e.avail_out=g,e.next_in=f,e.avail_in=p,t.hold=d,t.bits=m,(t.wsize||b!==e.avail_out&&t.mode<er&&(t.mode<d2||r!==w5))&&t6(e,e.output,e.next_out,b-e.avail_out),C-=e.avail_in,b-=e.avail_out,e.total_in+=C,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Xr(t.check,l,b,e.next_out-b):Fh(t.check,l,b,e.next_out-b)),e.data_type=t.bits+(t.last?64:0)+(t.mode===is?128:0)+(t.mode===_g||t.mode===f2?256:0),(C===0&&b===0||r===w5)&&I===_c&&(I=bM),I},TM=e=>{if(Sc(e))return Xi;let r=e.state;return r.window&&(r.window=null),e.state=null,_c},AM=(e,r)=>{if(Sc(e))return Xi;const t=e.state;return t.wrap&2?(t.head=r,r.done=!1,_c):Xi},OM=(e,r)=>{const t=r.length;let i,l,f;return Sc(e)||(i=e.state,i.wrap!==0&&i.mode!==wg)?Xi:i.mode===wg&&(l=1,l=Fh(l,r,t,0),l!==i.check)?_5:(f=t6(e,r,t,t),f?(i.mode=G5,S5):(i.havedict=1,_c))};var RM=Z5,FM=X5,NM=Q5,MM=EM,PM=J5,BM=kM,LM=TM,zM=AM,UM=OM,jM="pako inflate (from Nodeca project)",os={inflateReset:RM,inflateReset2:FM,inflateResetKeep:NM,inflateInit:MM,inflateInit2:PM,inflate:BM,inflateEnd:LM,inflateGetHeader:zM,inflateSetDictionary:UM,inflateInfo:jM};function IM(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var HM=IM;const n6=Object.prototype.toString,{Z_NO_FLUSH:VM,Z_FINISH:$M,Z_OK:Hh,Z_STREAM_END:v2,Z_NEED_DICT:m2,Z_STREAM_ERROR:YM,Z_DATA_ERROR:r6,Z_MEM_ERROR:qM}=xc;function Vh(e){this.options=gg.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)&&(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(r.windowBits&15||(r.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p5,this.strm.avail_out=0;let t=os.inflateInit2(this.strm,r.windowBits);if(t!==Hh)throw new Error(yc[t]);if(this.header=new HM,os.inflateGetHeader(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=Uh.string2buf(r.dictionary):n6.call(r.dictionary)==="[object ArrayBuffer]"&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(t=os.inflateSetDictionary(this.strm,r.dictionary),t!==Hh)))throw new Error(yc[t])}Vh.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize,l=this.options.dictionary;let f,c,p;if(this.ended)return!1;for(r===~~r?c=r:c=r===!0?$M:VM,n6.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),f=os.inflate(t,c),f===m2&&l&&(f=os.inflateSetDictionary(t,l),f===Hh?f=os.inflate(t,c):f===r6&&(f=m2));t.avail_in>0&&f===v2&&t.state.wrap>0&&e[t.next_in]!==0;)os.inflateReset(t),f=os.inflate(t,c);switch(f){case YM:case r6:case m2:case qM:return this.onEnd(f),this.ended=!0,!1}if(p=t.avail_out,t.next_out&&(t.avail_out===0||f===v2))if(this.options.to==="string"){let g=Uh.utf8border(t.output,t.next_out),d=t.next_out-g,m=Uh.buf2string(t.output,g);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(g,g+d),0),this.onData(m)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(f===Hh&&p===0)){if(f===v2)return f=os.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},Vh.prototype.onData=function(e){this.chunks.push(e)},Vh.prototype.onEnd=function(e){e===Hh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g2(e,r){const t=new Vh(r);if(t.push(e),t.err)throw t.msg||yc[t.err];return t.result}function GM(e,r){return r=r||{},r.raw=!0,g2(e,r)}var KM=Vh,WM=g2,QM=GM,ZM=g2,XM=xc,JM={Inflate:KM,inflate:WM,inflateRaw:QM,ungzip:ZM,constants:XM};const{Deflate:eP,deflate:tP,deflateRaw:nP,gzip:rP}=uM,{Inflate:aP,inflate:iP,inflateRaw:oP,ungzip:lP}=JM;var sP=eP,uP=tP,cP=nP,fP=rP,dP=aP,hP=iP,pP=oP,vP=lP,mP=xc,gP={Deflate:sP,deflate:uP,deflateRaw:cP,gzip:fP,Inflate:dP,inflate:hP,inflateRaw:pP,ungzip:vP,constants:mP},Ue={};Ue.toRGBA8=function(e){var r=e.width,t=e.height;if(e.tabs.acTL==null)return[Ue.toRGBA8.decodeImage(e.data,r,t,e).buffer];var i=[];e.frames[0].data==null&&(e.frames[0].data=e.data);for(var l=r*t*4,f=new Uint8Array(l),c=new Uint8Array(l),p=new Uint8Array(l),g=0;g<e.frames.length;g++){var d=e.frames[g],m=d.rect.x,C=d.rect.y,b=d.rect.width,x=d.rect.height,_=Ue.toRGBA8.decodeImage(d.data,b,x,e);if(g!=0)for(var k=0;k<l;k++)p[k]=f[k];if(d.blend==0?Ue._copyTile(_,b,x,f,r,t,m,C,0):d.blend==1&&Ue._copyTile(_,b,x,f,r,t,m,C,1),i.push(f.buffer.slice(0)),d.dispose!=0){if(d.dispose==1)Ue._copyTile(c,b,x,f,r,t,m,C,0);else if(d.dispose==2)for(var k=0;k<l;k++)f[k]=p[k]}}return i},Ue.toRGBA8.decodeImage=function(e,r,t,i){var l=r*t,f=Ue.decode._getBPP(i),c=Math.ceil(r*f/8),p=new Uint8Array(l*4),g=new Uint32Array(p.buffer),d=i.ctype,m=i.depth,C=Ue._bin.readUshort;if(d==6){var b=l<<2;if(m==8)for(var x=0;x<b;x+=4)p[x]=e[x],p[x+1]=e[x+1],p[x+2]=e[x+2],p[x+3]=e[x+3];if(m==16)for(var x=0;x<b;x++)p[x]=e[x<<1]}else if(d==2){var _=i.tabs.tRNS;if(_==null){if(m==8)for(var x=0;x<l;x++){var k=x*3;g[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k]}if(m==16)for(var x=0;x<l;x++){var k=x*6;g[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k]}}else{var E=_[0],A=_[1],T=_[2];if(m==8)for(var x=0;x<l;x++){var D=x<<2,k=x*3;g[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k],e[k]==E&&e[k+1]==A&&e[k+2]==T&&(p[D+3]=0)}if(m==16)for(var x=0;x<l;x++){var D=x<<2,k=x*6;g[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k],C(e,k)==E&&C(e,k+2)==A&&C(e,k+4)==T&&(p[D+3]=0)}}}else if(d==3){var R=i.tabs.PLTE,N=i.tabs.tRNS,z=N?N.length:0;if(m==1)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>3)]>>7-((x&7)<<0)&1,P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}if(m==2)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>2)]>>6-((x&3)<<1)&3,P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}if(m==4)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>1)]>>4-((x&1)<<2)&15,P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}if(m==8)for(var x=0;x<l;x++){var D=x<<2,B=e[x],P=3*B;p[D]=R[P],p[D+1]=R[P+1],p[D+2]=R[P+2],p[D+3]=B<z?N[B]:255}}else if(d==4){if(m==8)for(var x=0;x<l;x++){var D=x<<2,U=x<<1,H=e[U];p[D]=H,p[D+1]=H,p[D+2]=H,p[D+3]=e[U+1]}if(m==16)for(var x=0;x<l;x++){var D=x<<2,U=x<<2,H=e[U];p[D]=H,p[D+1]=H,p[D+2]=H,p[D+3]=e[U+2]}}else if(d==0)for(var E=i.tabs.tRNS?i.tabs.tRNS:-1,M=0;M<t;M++){var V=M*c,K=M*r;if(m==1)for(var ee=0;ee<r;ee++){var H=255*(e[V+(ee>>>3)]>>>7-(ee&7)&1),J=H==E*255?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==2)for(var ee=0;ee<r;ee++){var H=85*(e[V+(ee>>>2)]>>>6-((ee&3)<<1)&3),J=H==E*85?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==4)for(var ee=0;ee<r;ee++){var H=17*(e[V+(ee>>>1)]>>>4-((ee&1)<<2)&15),J=H==E*17?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==8)for(var ee=0;ee<r;ee++){var H=e[V+ee],J=H==E?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}else if(m==16)for(var ee=0;ee<r;ee++){var H=e[V+(ee<<1)],J=C(e,V+(ee<<x))==E?0:255;g[K+ee]=J<<24|H<<16|H<<8|H}}return p},Ue.decode=function(e){for(var r=new Uint8Array(e),t=8,i=Ue._bin,l=i.readUshort,f=i.readUint,c={tabs:{},frames:[]},p=new Uint8Array(r.length),g=0,d,m=0,C=[137,80,78,71,13,10,26,10],b=0;b<8;b++)if(r[b]!=C[b])throw"The input is not a PNG file!";for(;t<r.length;){var x=i.readUint(r,t);t+=4;var _=i.readASCII(r,t,4);if(t+=4,_=="IHDR")Ue.decode._IHDR(r,t,c);else if(_=="CgBI")c.tabs[_]=r.slice(t,t+4);else if(_=="IDAT"){for(var b=0;b<x;b++)p[g+b]=r[t+b];g+=x}else if(_=="acTL")c.tabs[_]={num_frames:f(r,t),num_plays:f(r,t+4)},d=new Uint8Array(r.length);else if(_=="fcTL"){if(m!=0){var k=c.frames[c.frames.length-1];k.data=Ue.decode._decompress(c,d.slice(0,m),k.rect.width,k.rect.height),m=0}var E={x:f(r,t+12),y:f(r,t+16),width:f(r,t+4),height:f(r,t+8)},A=l(r,t+22);A=l(r,t+20)/(A==0?100:A);var T={rect:E,delay:Math.round(A*1e3),dispose:r[t+24],blend:r[t+25]};c.frames.push(T)}else if(_=="fdAT"){for(var b=0;b<x-4;b++)d[m+b]=r[t+b+4];m+=x-4}else if(_=="pHYs")c.tabs[_]=[i.readUint(r,t),i.readUint(r,t+4),r[t+8]];else if(_=="cHRM"){c.tabs[_]=[];for(var b=0;b<8;b++)c.tabs[_].push(i.readUint(r,t+b*4))}else if(_=="tEXt"||_=="zTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=i.nextZero(r,t),R=i.readASCII(r,t,D-t),N,z=t+x-D-1;if(_=="tEXt")N=i.readASCII(r,D+1,z);else{var M=Ue.decode._inflate(r.slice(D+2,D+2+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="iTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=0,I=t;D=i.nextZero(r,I);var R=i.readASCII(r,I,D-I);I=D+1;var Y=r[I];r[I+1],I+=2,D=i.nextZero(r,I),i.readASCII(r,I,D-I),I=D+1,D=i.nextZero(r,I),i.readUTF8(r,I,D-I),I=D+1;var N,z=x-(I-t);if(Y==0)N=i.readUTF8(r,I,z);else{var M=Ue.decode._inflate(r.slice(I,I+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="PLTE")c.tabs[_]=i.readBytes(r,t,x);else if(_=="hIST"){var B=c.tabs.PLTE.length/3;c.tabs[_]=[];for(var b=0;b<B;b++)c.tabs[_].push(l(r,t+b*2))}else if(_=="tRNS")c.ctype==3?c.tabs[_]=i.readBytes(r,t,x):c.ctype==0?c.tabs[_]=l(r,t):c.ctype==2&&(c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]);else if(_=="gAMA")c.tabs[_]=i.readUint(r,t)/1e5;else if(_=="sRGB")c.tabs[_]=r[t];else if(_=="bKGD")c.ctype==0||c.ctype==4?c.tabs[_]=[l(r,t)]:c.ctype==2||c.ctype==6?c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]:c.ctype==3&&(c.tabs[_]=r[t]);else if(_=="IEND")break;t+=x,i.readUint(r,t),t+=4}if(m!=0){var k=c.frames[c.frames.length-1];k.data=Ue.decode._decompress(c,d.slice(0,m),k.rect.width,k.rect.height),m=0}return c.data=Ue.decode._decompress(c,p,c.width,c.height),delete c.compress,delete c.interlace,delete c.filter,c},Ue.decode._decompress=function(e,r,t,i){var l=Ue.decode._getBPP(e),f=Math.ceil(t*l/8),c=new Uint8Array((f+1+e.interlace)*i);return e.tabs.CgBI?r=Ue.inflateRaw(r,c):r=Ue.decode._inflate(r,c),e.interlace==0?r=Ue.decode._filterZero(r,e,0,t,i):e.interlace==1&&(r=Ue.decode._readInterlace(r,e)),r},Ue.decode._inflate=function(e,r){var t=Ue.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),r);return t},Ue.inflateRaw=function(){var e={};return e.H={},e.H.N=function(r,t){var i=Uint8Array,l=0,f=0,c=0,p=0,g=0,d=0,m=0,C=0,b=0,x,_;if(r[0]==3&&r[1]==0)return t||new i(0);var k=e.H,E=k.b,A=k.e,T=k.R,D=k.n,R=k.A,N=k.Z,z=k.m,M=t==null;for(M&&(t=new i(r.length>>>2<<3));l==0;){if(l=E(r,b,1),f=E(r,b+1,2),b+=3,f==0){b&7&&(b+=8-(b&7));var I=(b>>>3)+4,Y=r[I-4]|r[I-3]<<8;M&&(t=e.H.W(t,C+Y)),t.set(new i(r.buffer,r.byteOffset+I,Y),C),b=I+Y<<3,C+=Y;continue}if(M&&(t=e.H.W(t,C+(1<<17))),f==1&&(x=z.J,_=z.h,d=(1<<9)-1,m=(1<<5)-1),f==2){c=A(r,b,5)+257,p=A(r,b+5,5)+1,g=A(r,b+10,4)+4,b+=14;for(var B=1,P=0;P<38;P+=2)z.Q[P]=0,z.Q[P+1]=0;for(var P=0;P<g;P++){var U=A(r,b+P*3,3);z.Q[(z.X[P]<<1)+1]=U,U>B&&(B=U)}b+=3*g,D(z.Q,B),R(z.Q,B,z.u),x=z.w,_=z.d,b=T(z.u,(1<<B)-1,c+p,r,b,z.v);var H=k.V(z.v,0,c,z.C);d=(1<<H)-1;var V=k.V(z.v,c,p,z.D);m=(1<<V)-1,D(z.C,H),R(z.C,H,x),D(z.D,V),R(z.D,V,_)}for(;;){var K=x[N(r,b)&d];b+=K&15;var ee=K>>>4;if(!(ee>>>8))t[C++]=ee;else{if(ee==256)break;var J=C+ee-254;if(ee>264){var q=z.q[ee-257];J=C+(q>>>3)+A(r,b,q&7),b+=q&7}var te=_[N(r,b)&m];b+=te&15;var X=te>>>4,$=z.c[X],ne=($>>>4)+E(r,b,$&15);for(b+=$&15;C<J;)t[C]=t[C++-ne],t[C]=t[C++-ne],t[C]=t[C++-ne],t[C]=t[C++-ne];C=J}}}return t.length==C?t:t.slice(0,C)},e.H.W=function(r,t){var i=r.length;if(t<=i)return r;var l=new Uint8Array(i<<1);return l.set(r,0),l},e.H.R=function(r,t,i,l,f,c){for(var p=e.H.e,g=e.H.Z,d=0;d<i;){var m=r[g(l,f)&t];f+=m&15;var C=m>>>4;if(C<=15)c[d]=C,d++;else{var b=0,x=0;C==16?(x=3+p(l,f,2),f+=2,b=c[d-1]):C==17?(x=3+p(l,f,3),f+=3):C==18&&(x=11+p(l,f,7),f+=7);for(var _=d+x;d<_;)c[d]=b,d++}}return f},e.H.V=function(r,t,i,l){for(var f=0,c=0,p=l.length>>>1;c<i;){var g=r[c+t];l[c<<1]=0,l[(c<<1)+1]=g,g>f&&(f=g),c++}for(;c<p;)l[c<<1]=0,l[(c<<1)+1]=0,c++;return f},e.H.n=function(r,t){for(var i=e.H.m,l=r.length,f,c,p,g,d,m=i.j,g=0;g<=t;g++)m[g]=0;for(g=1;g<l;g+=2)m[r[g]]++;var C=i.K;for(f=0,m[0]=0,c=1;c<=t;c++)f=f+m[c-1]<<1,C[c]=f;for(p=0;p<l;p+=2)d=r[p+1],d!=0&&(r[p]=C[d],C[d]++)},e.H.A=function(r,t,i){for(var l=r.length,f=e.H.m,c=f.r,p=0;p<l;p+=2)if(r[p+1]!=0)for(var g=p>>1,d=r[p+1],m=g<<4|d,C=t-d,b=r[p]<<C,x=b+(1<<C);b!=x;){var _=c[b]>>>15-t;i[_]=m,b++}},e.H.l=function(r,t){for(var i=e.H.m.r,l=15-t,f=0;f<r.length;f+=2){var c=r[f]<<t-r[f+1];r[f]=i[c]>>>l}},e.H.M=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8},e.H.I=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8,r[l+2]|=i>>>16},e.H.e=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8)>>>(t&7)&(1<<i)-1},e.H.b=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)&(1<<i)-1},e.H.Z=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16|r[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){var r=Uint16Array,t=Uint32Array;return{K:new r(16),j:new r(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new r(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new r(512),_:[],h:new r(32),$:[],w:new r(32768),C:[],v:[],d:new r(32768),D:[],u:new r(512),Q:[],r:new r(1<<15),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new r(1<<16),g:new r(1<<15)}}(),function(){for(var r=e.H.m,t=1<<15,i=0;i<t;i++){var l=i;l=(l&2863311530)>>>1|(l&1431655765)<<1,l=(l&3435973836)>>>2|(l&858993459)<<2,l=(l&4042322160)>>>4|(l&252645135)<<4,l=(l&4278255360)>>>8|(l&16711935)<<8,r.r[i]=(l>>>16|l<<16)>>>17}function f(c,p,g){for(;p--!=0;)c.push(0,g)}for(var i=0;i<32;i++)r.q[i]=r.S[i]<<3|r.T[i],r.c[i]=r.p[i]<<4|r.z[i];f(r._,144,8),f(r._,255-143,9),f(r._,279-255,7),f(r._,287-279,8),e.H.n(r._,9),e.H.A(r._,9,r.J),e.H.l(r._,9),f(r.$,32,5),e.H.n(r.$,5),e.H.A(r.$,5,r.h),e.H.l(r.$,5),f(r.Q,19,0),f(r.C,286,0),f(r.D,30,0),f(r.v,320,0)}(),e.H.N}(),Ue.decode._readInterlace=function(e,r){for(var t=r.width,i=r.height,l=Ue.decode._getBPP(r),f=l>>3,c=Math.ceil(t*l/8),p=new Uint8Array(i*c),g=0,d=[0,0,4,0,2,0,1],m=[0,4,0,2,0,1,0],C=[8,8,8,4,4,2,2],b=[8,8,4,4,2,2,1],x=0;x<7;){for(var _=C[x],k=b[x],E=0,A=0,T=d[x];T<i;)T+=_,A++;for(var D=m[x];D<t;)D+=k,E++;var R=Math.ceil(E*l/8);Ue.decode._filterZero(e,r,g,E,A);for(var N=0,z=d[x];z<i;){for(var M=m[x],I=g+N*R<<3;M<t;){if(l==1){var Y=e[I>>3];Y=Y>>7-(I&7)&1,p[z*c+(M>>3)]|=Y<<7-((M&7)<<0)}if(l==2){var Y=e[I>>3];Y=Y>>6-(I&7)&3,p[z*c+(M>>2)]|=Y<<6-((M&3)<<1)}if(l==4){var Y=e[I>>3];Y=Y>>4-(I&7)&15,p[z*c+(M>>1)]|=Y<<4-((M&1)<<2)}if(l>=8)for(var B=z*c+M*f,P=0;P<f;P++)p[B+P]=e[(I>>3)+P];I+=l,M+=k}N++,z+=_}E*A!=0&&(g+=A*(1+R)),x=x+1}return p},Ue.decode._getBPP=function(e){var r=[1,null,3,1,2,null,4][e.ctype];return r*e.depth},Ue.decode._filterZero=function(e,r,t,i,l){var f=Ue.decode._getBPP(r),c=Math.ceil(i*f/8),p=Ue.decode._paeth;f=Math.ceil(f/8);var g=0,d=1,m=e[t],C=0;if(m>1&&(e[t]=[0,0,1][m-2]),m==3)for(C=f;C<c;C++)e[C+1]=e[C+1]+(e[C+1-f]>>>1)&255;for(var b=0;b<l;b++)if(g=t+b*c,d=g+b+1,m=e[d-1],C=0,m==0)for(;C<c;C++)e[g+C]=e[d+C];else if(m==1){for(;C<f;C++)e[g+C]=e[d+C];for(;C<c;C++)e[g+C]=e[d+C]+e[g+C-f]}else if(m==2)for(;C<c;C++)e[g+C]=e[d+C]+e[g+C-c];else if(m==3){for(;C<f;C++)e[g+C]=e[d+C]+(e[g+C-c]>>>1);for(;C<c;C++)e[g+C]=e[d+C]+(e[g+C-c]+e[g+C-f]>>>1)}else{for(;C<f;C++)e[g+C]=e[d+C]+p(0,e[g+C-c],0);for(;C<c;C++)e[g+C]=e[d+C]+p(e[g+C-f],e[g+C-c],e[g+C-f-c])}return e},Ue.decode._paeth=function(e,r,t){var i=e+r-t,l=i-e,f=i-r,c=i-t;return l*l<=f*f&&l*l<=c*c?e:f*f<=c*c?r:t},Ue.decode._IHDR=function(e,r,t){var i=Ue._bin;t.width=i.readUint(e,r),r+=4,t.height=i.readUint(e,r),r+=4,t.depth=e[r],r++,t.ctype=e[r],r++,t.compress=e[r],r++,t.filter=e[r],r++,t.interlace=e[r],r++},Ue._bin={nextZero:function(e,r){for(;e[r]!=0;)r++;return r},readUshort:function(e,r){return e[r]<<8|e[r+1]},writeUshort:function(e,r,t){e[r]=t>>8&255,e[r+1]=t&255},readUint:function(e,r){return e[r]*(256*256*256)+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=t&255},readASCII:function(e,r,t){for(var i="",l=0;l<t;l++)i+=String.fromCharCode(e[r+l]);return i},writeASCII:function(e,r,t){for(var i=0;i<t.length;i++)e[r+i]=t.charCodeAt(i)},readBytes:function(e,r,t){for(var i=[],l=0;l<t;l++)i.push(e[r+l]);return i},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,r,t){for(var i="",l,f=0;f<t;f++)i+="%"+Ue._bin.pad(e[r+f].toString(16));try{l=decodeURIComponent(i)}catch{return Ue._bin.readASCII(e,r,t)}return l}},Ue._copyTile=function(e,r,t,i,l,f,c,p,g){for(var d=Math.min(r,l),m=Math.min(t,f),C=0,b=0,x=0;x<m;x++)for(var _=0;_<d;_++)if(c>=0&&p>=0?(C=x*r+_<<2,b=(p+x)*l+c+_<<2):(C=(-p+x)*r-c+_<<2,b=x*l+_<<2),g==0)i[b]=e[C],i[b+1]=e[C+1],i[b+2]=e[C+2],i[b+3]=e[C+3];else if(g==1){var k=e[C+3]*.00392156862745098,E=e[C]*k,A=e[C+1]*k,T=e[C+2]*k,D=i[b+3]*(1/255),R=i[b]*D,N=i[b+1]*D,z=i[b+2]*D,M=1-k,I=k+D*M,Y=I==0?0:1/I;i[b+3]=255*I,i[b+0]=(E+R*M)*Y,i[b+1]=(A+N*M)*Y,i[b+2]=(T+z*M)*Y}else if(g==2){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];k==D&&E==R&&A==N&&T==z?(i[b]=0,i[b+1]=0,i[b+2]=0,i[b+3]=0):(i[b]=E,i[b+1]=A,i[b+2]=T,i[b+3]=k)}else if(g==3){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];if(k==D&&E==R&&A==N&&T==z)continue;if(k<220&&D>20)return!1}return!0},Ue.encode=function(e,r,t,i,l,f,c){i==null&&(i=0),c==null&&(c=!1);var p=Ue.encode.compress(e,r,t,i,[!1,!1,!1,0,c]);return Ue.encode.compressPNG(p,-1),Ue.encode._main(p,r,t,l,f)},Ue.encodeLL=function(e,r,t,i,l,f,c,p){for(var g={ctype:0+(i==1?0:2)+(l==0?0:4),depth:f,frames:[]},d=(i+l)*f,m=d*r,C=0;C<e.length;C++)g.frames.push({rect:{x:0,y:0,width:r,height:t},img:new Uint8Array(e[C]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(m/8)});Ue.encode.compressPNG(g,0,!0);var b=Ue.encode._main(g,r,t,c,p);return b},Ue.encode._main=function(e,r,t,i,l){l==null&&(l={});var f=Ue.crc.crc,c=Ue._bin.writeUint,p=Ue._bin.writeUshort,g=Ue._bin.writeASCII,d=8,m=e.frames.length>1,C=!1,b=8+(16+5+4)+(m?20:0);if(l.sRGB!=null&&(b+=8+1+4),l.pHYs!=null&&(b+=8+9+4),e.ctype==3){for(var x=e.plte.length,_=0;_<x;_++)e.plte[_]>>>24!=255&&(C=!0);b+=8+x*3+4+(C?8+x*1+4:0)}for(var k=0;k<e.frames.length;k++){var E=e.frames[k];m&&(b+=38),b+=E.cimg.length+12,k!=0&&(b+=4)}b+=12;for(var A=new Uint8Array(b),T=[137,80,78,71,13,10,26,10],_=0;_<8;_++)A[_]=T[_];if(c(A,d,13),d+=4,g(A,d,"IHDR"),d+=4,c(A,d,r),d+=4,c(A,d,t),d+=4,A[d]=e.depth,d++,A[d]=e.ctype,d++,A[d]=0,d++,A[d]=0,d++,A[d]=0,d++,c(A,d,f(A,d-17,17)),d+=4,l.sRGB!=null&&(c(A,d,1),d+=4,g(A,d,"sRGB"),d+=4,A[d]=l.sRGB,d++,c(A,d,f(A,d-5,5)),d+=4),l.pHYs!=null&&(c(A,d,9),d+=4,g(A,d,"pHYs"),d+=4,c(A,d,l.pHYs[0]),d+=4,c(A,d,l.pHYs[1]),d+=4,A[d]=l.pHYs[2],d++,c(A,d,f(A,d-13,13)),d+=4),m&&(c(A,d,8),d+=4,g(A,d,"acTL"),d+=4,c(A,d,e.frames.length),d+=4,c(A,d,l.loop!=null?l.loop:0),d+=4,c(A,d,f(A,d-12,12)),d+=4),e.ctype==3){var x=e.plte.length;c(A,d,x*3),d+=4,g(A,d,"PLTE"),d+=4;for(var _=0;_<x;_++){var D=_*3,R=e.plte[_],N=R&255,z=R>>>8&255,M=R>>>16&255;A[d+D+0]=N,A[d+D+1]=z,A[d+D+2]=M}if(d+=x*3,c(A,d,f(A,d-x*3-4,x*3+4)),d+=4,C){c(A,d,x),d+=4,g(A,d,"tRNS"),d+=4;for(var _=0;_<x;_++)A[d+_]=e.plte[_]>>>24&255;d+=x,c(A,d,f(A,d-x-4,x+4)),d+=4}}for(var I=0,k=0;k<e.frames.length;k++){var E=e.frames[k];m&&(c(A,d,26),d+=4,g(A,d,"fcTL"),d+=4,c(A,d,I++),d+=4,c(A,d,E.rect.width),d+=4,c(A,d,E.rect.height),d+=4,c(A,d,E.rect.x),d+=4,c(A,d,E.rect.y),d+=4,p(A,d,i[k]),d+=2,p(A,d,1e3),d+=2,A[d]=E.dispose,d++,A[d]=E.blend,d++,c(A,d,f(A,d-30,30)),d+=4);var Y=E.cimg,x=Y.length;c(A,d,x+(k==0?0:4)),d+=4;var B=d;g(A,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(c(A,d,I++),d+=4),A.set(Y,d),d+=x,c(A,d,f(A,B,d-B)),d+=4}return c(A,d,0),d+=4,g(A,d,"IEND"),d+=4,c(A,d,f(A,d-4,4)),d+=4,A.buffer},Ue.encode.compressPNG=function(e,r,t){for(var i=0;i<e.frames.length;i++){var l=e.frames[i];l.rect.width;var f=l.rect.height,c=new Uint8Array(f*l.bpl+f);l.cimg=Ue.encode._filterZero(l.img,f,l.bpp,l.bpl,c,r,t)}},Ue.encode.compress=function(e,r,t,i,l){for(var f=l[0],c=l[1],p=l[2],g=l[3],d=l[4],m=6,C=8,b=255,x=0;x<e.length;x++)for(var _=new Uint8Array(e[x]),k=_.length,E=0;E<k;E+=4)b&=_[E+3];var A=b!=255,T=Ue.encode.framize(e,r,t,f,c,p),D={},R=[],N=[];if(i!=0){for(var z=[],E=0;E<T.length;E++)z.push(T[E].img.buffer);for(var M=Ue.encode.concatRGBA(z),I=Ue.quantize(M,i),Y=0,B=new Uint8Array(I.abuf),E=0;E<T.length;E++){var P=T[E].img,U=P.length;N.push(new Uint8Array(I.inds.buffer,Y>>2,U>>2));for(var x=0;x<U;x+=4)P[x]=B[Y+x],P[x+1]=B[Y+x+1],P[x+2]=B[Y+x+2],P[x+3]=B[Y+x+3];Y+=U}for(var E=0;E<I.plte.length;E++)R.push(I.plte[E].est.rgba)}else for(var x=0;x<T.length;x++){var H=T[x],V=new Uint32Array(H.img.buffer),K=H.rect.width,k=V.length,ee=new Uint8Array(k);N.push(ee);for(var E=0;E<k;E++){var J=V[E];if(E!=0&&J==V[E-1])ee[E]=ee[E-1];else if(E>K&&J==V[E-K])ee[E]=ee[E-K];else{var q=D[J];if(q==null&&(D[J]=q=R.length,R.push(J),R.length>=300))break;ee[E]=q}}}var te=R.length;te<=256&&d==!1&&(te<=2?C=1:te<=4?C=2:te<=16?C=4:C=8,C=Math.max(C,g));for(var x=0;x<T.length;x++){var H=T[x];H.rect.x,H.rect.y;var K=H.rect.width,X=H.rect.height,$=H.img;new Uint32Array($.buffer);var ne=4*K,oe=4;if(te<=256&&d==!1){ne=Math.ceil(C*K/8);for(var ae=new Uint8Array(ne*X),se=N[x],ve=0;ve<X;ve++){var E=ve*ne,we=ve*K;if(C==8)for(var ce=0;ce<K;ce++)ae[E+ce]=se[we+ce];else if(C==4)for(var ce=0;ce<K;ce++)ae[E+(ce>>1)]|=se[we+ce]<<4-(ce&1)*4;else if(C==2)for(var ce=0;ce<K;ce++)ae[E+(ce>>2)]|=se[we+ce]<<6-(ce&3)*2;else if(C==1)for(var ce=0;ce<K;ce++)ae[E+(ce>>3)]|=se[we+ce]<<7-(ce&7)*1}$=ae,m=3,oe=1}else if(A==!1&&T.length==1){for(var ae=new Uint8Array(K*X*3),ye=K*X,E=0;E<ye;E++){var P=E*3,De=E*4;ae[P]=$[De],ae[P+1]=$[De+1],ae[P+2]=$[De+2]}$=ae,m=2,oe=3,ne=3*K}H.img=$,H.bpl=ne,H.bpp=oe}return{ctype:m,depth:C,plte:R,frames:T}},Ue.encode.framize=function(e,r,t,i,l,f){for(var c=[],p=0;p<e.length;p++){var g=new Uint8Array(e[p]),d=new Uint32Array(g.buffer),m,C=0,b=0,x=r,_=t,k=i?1:0;if(p!=0){for(var E=f||i||p==1||c[p-2].dispose!=0?1:2,A=0,T=1e9,D=0;D<E;D++){for(var H=new Uint8Array(e[p-1-D]),R=new Uint32Array(e[p-1-D]),N=r,z=t,M=-1,I=-1,Y=0;Y<t;Y++)for(var B=0;B<r;B++){var P=Y*r+B;d[P]!=R[P]&&(B<N&&(N=B),B>M&&(M=B),Y<z&&(z=Y),Y>I&&(I=Y))}M==-1&&(N=z=M=I=0),l&&((N&1)==1&&N--,(z&1)==1&&z--);var U=(M-N+1)*(I-z+1);U<T&&(T=U,A=D,C=N,b=z,x=M-N+1,_=I-z+1)}var H=new Uint8Array(e[p-1-A]);A==1&&(c[p-1].dispose=2),m=new Uint8Array(x*_*4),Ue._copyTile(H,r,t,m,x,_,-C,-b,0),k=Ue._copyTile(g,r,t,m,x,_,-C,-b,3)?1:0,k==1?Ue.encode._prepareDiff(g,r,t,m,{x:C,y:b,width:x,height:_}):Ue._copyTile(g,r,t,m,x,_,-C,-b,0)}else m=g.slice(0);c.push({rect:{x:C,y:b,width:x,height:_},img:m,blend:k,dispose:0})}if(i)for(var p=0;p<c.length;p++){var V=c[p];if(V.blend!=1){var K=V.rect,ee=c[p-1].rect,J=Math.min(K.x,ee.x),q=Math.min(K.y,ee.y),te=Math.max(K.x+K.width,ee.x+ee.width),X=Math.max(K.y+K.height,ee.y+ee.height),$={x:J,y:q,width:te-J,height:X-q};c[p-1].dispose=1,p-1!=0&&Ue.encode._updateFrame(e,r,t,c,p-1,$,l),Ue.encode._updateFrame(e,r,t,c,p,$,l)}}var ne=0;if(e.length!=1)for(var P=0;P<c.length;P++){var V=c[P];ne+=V.rect.width*V.rect.height}return c},Ue.encode._updateFrame=function(e,r,t,i,l,f,c){for(var p=Uint8Array,g=Uint32Array,d=new p(e[l-1]),m=new g(e[l-1]),C=l+1<e.length?new p(e[l+1]):null,b=new p(e[l]),x=new g(b.buffer),_=r,k=t,E=-1,A=-1,T=0;T<f.height;T++)for(var D=0;D<f.width;D++){var R=f.x+D,N=f.y+T,z=N*r+R,M=x[z];M==0||i[l-1].dispose==0&&m[z]==M&&(C==null||C[z*4+3]!=0)||(R<_&&(_=R),R>E&&(E=R),N<k&&(k=N),N>A&&(A=N))}E==-1&&(_=k=E=A=0),c&&((_&1)==1&&_--,(k&1)==1&&k--),f={x:_,y:k,width:E-_+1,height:A-k+1};var I=i[l];I.rect=f,I.blend=1,I.img=new Uint8Array(f.width*f.height*4),i[l-1].dispose==0?(Ue._copyTile(d,r,t,I.img,f.width,f.height,-f.x,-f.y,0),Ue.encode._prepareDiff(b,r,t,I.img,f)):Ue._copyTile(b,r,t,I.img,f.width,f.height,-f.x,-f.y,0)},Ue.encode._prepareDiff=function(e,r,t,i,l){Ue._copyTile(e,r,t,i,l.width,l.height,-l.x,-l.y,2)},Ue.encode._filterZero=function(e,r,t,i,l,f,c){var p=[],g=[0,1,2,3,4];f!=-1?g=[f]:(r*i>5e5||t==1)&&(g=[0]);var d;c&&(d={level:0});for(var m=l.length>1e7&&UZIP!=null?UZIP:gP,C=0;C<g.length;C++){for(var b=0;b<r;b++)Ue.encode._filterLine(l,e,b,i,t,g[C]);p.push(m.deflate(l,d))}for(var x,_=1e9,C=0;C<p.length;C++)p[C].length<_&&(x=C,_=p[C].length);return p[x]},Ue.encode._filterLine=function(e,r,t,i,l,f){var c=t*i,p=c+t,g=Ue.decode._paeth;if(e[p]=f,p++,f==0)if(i<500)for(var d=0;d<i;d++)e[p+d]=r[c+d];else e.set(new Uint8Array(r.buffer,c,i),p);else if(f==1){for(var d=0;d<l;d++)e[p+d]=r[c+d];for(var d=l;d<i;d++)e[p+d]=r[c+d]-r[c+d-l]+256&255}else if(t==0){for(var d=0;d<l;d++)e[p+d]=r[c+d];if(f==2)for(var d=l;d<i;d++)e[p+d]=r[c+d];if(f==3)for(var d=l;d<i;d++)e[p+d]=r[c+d]-(r[c+d-l]>>1)+256&255;if(f==4)for(var d=l;d<i;d++)e[p+d]=r[c+d]-g(r[c+d-l],0,0)+256&255}else{if(f==2)for(var d=0;d<i;d++)e[p+d]=r[c+d]+256-r[c+d-i]&255;if(f==3){for(var d=0;d<l;d++)e[p+d]=r[c+d]+256-(r[c+d-i]>>1)&255;for(var d=l;d<i;d++)e[p+d]=r[c+d]+256-(r[c+d-i]+r[c+d-l]>>1)&255}if(f==4){for(var d=0;d<l;d++)e[p+d]=r[c+d]+256-g(0,r[c+d-i],0)&255;for(var d=l;d<i;d++)e[p+d]=r[c+d]+256-g(r[c+d-l],r[c+d-i],r[c+d-l-i])&255}}},Ue.crc={table:function(){for(var e=new Uint32Array(256),r=0;r<256;r++){for(var t=r,i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;e[r]=t}return e}(),update:function(e,r,t,i){for(var l=0;l<i;l++)e=Ue.crc.table[(e^r[t+l])&255]^e>>>8;return e},crc:function(e,r,t){return Ue.crc.update(4294967295,e,r,t)^4294967295}},Ue.quantize=function(e,r){var t=new Uint8Array(e),i=t.slice(0),l=new Uint32Array(i.buffer),f=Ue.quantize.getKDtree(i,r),c=f[0],p=f[1],g=Ue.quantize.planeDst,d=t,m=l,C=d.length,b=new Uint8Array(t.length>>2),x;if(t.length<2e7)for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);x=Ue.quantize.getNearest(c,k,E,A,T),b[_>>2]=x.ind,m[_>>2]=x.est.rgba}else for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);for(x=c;x.left;)x=g(x.est,k,E,A,T)<=0?x.left:x.right;b[_>>2]=x.ind,m[_>>2]=x.est.rgba}return{abuf:i.buffer,inds:b,plte:p}},Ue.quantize.getKDtree=function(e,r,t){t==null&&(t=1e-4);var i=new Uint32Array(e.buffer),l={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};l.bst=Ue.quantize.stats(e,l.i0,l.i1),l.est=Ue.quantize.estats(l.bst);for(var f=[l];f.length<r;){for(var c=0,p=0,g=0;g<f.length;g++)f[g].est.L>c&&(c=f[g].est.L,p=g);if(c<t)break;var d=f[p],m=Ue.quantize.splitPixels(e,i,d.i0,d.i1,d.est.e,d.est.eMq255),C=d.i0>=m||d.i1<=m;if(C){d.est.L=0;continue}var b={i0:d.i0,i1:m,bst:null,est:null,tdst:0,left:null,right:null};b.bst=Ue.quantize.stats(e,b.i0,b.i1),b.est=Ue.quantize.estats(b.bst);var x={i0:m,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};x.bst={R:[],m:[],N:d.bst.N-b.bst.N};for(var g=0;g<16;g++)x.bst.R[g]=d.bst.R[g]-b.bst.R[g];for(var g=0;g<4;g++)x.bst.m[g]=d.bst.m[g]-b.bst.m[g];x.est=Ue.quantize.estats(x.bst),d.left=b,d.right=x,f[p]=b,f.push(x)}f.sort(function(_,k){return k.bst.N-_.bst.N});for(var g=0;g<f.length;g++)f[g].ind=g;return[l,f]},Ue.quantize.getNearest=function(e,r,t,i,l){if(e.left==null)return e.tdst=Ue.quantize.dist(e.est.q,r,t,i,l),e;var f=Ue.quantize.planeDst(e.est,r,t,i,l),c=e.left,p=e.right;f>0&&(c=e.right,p=e.left);var g=Ue.quantize.getNearest(c,r,t,i,l);if(g.tdst<=f*f)return g;var d=Ue.quantize.getNearest(p,r,t,i,l);return d.tdst<g.tdst?d:g},Ue.quantize.planeDst=function(e,r,t,i,l){var f=e.e;return f[0]*r+f[1]*t+f[2]*i+f[3]*l-e.eMq},Ue.quantize.dist=function(e,r,t,i,l){var f=r-e[0],c=t-e[1],p=i-e[2],g=l-e[3];return f*f+c*c+p*p+g*g},Ue.quantize.splitPixels=function(e,r,t,i,l,f){var c=Ue.quantize.vecDot;for(i-=4;t<i;){for(;c(e,t,l)<=f;)t+=4;for(;c(e,i,l)>f;)i-=4;if(t>=i)break;var p=r[t>>2];r[t>>2]=r[i>>2],r[i>>2]=p,t+=4,i-=4}for(;c(e,t,l)>f;)t-=4;return t+4},Ue.quantize.vecDot=function(e,r,t){return e[r]*t[0]+e[r+1]*t[1]+e[r+2]*t[2]+e[r+3]*t[3]},Ue.quantize.stats=function(e,r,t){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,0,0,0],f=t-r>>2,c=r;c<t;c+=4){var p=e[c]*.00392156862745098,g=e[c+1]*(1/255),d=e[c+2]*(1/255),m=e[c+3]*(1/255);l[0]+=p,l[1]+=g,l[2]+=d,l[3]+=m,i[0]+=p*p,i[1]+=p*g,i[2]+=p*d,i[3]+=p*m,i[5]+=g*g,i[6]+=g*d,i[7]+=g*m,i[10]+=d*d,i[11]+=d*m,i[15]+=m*m}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:l,N:f}},Ue.quantize.estats=function(e){var r=e.R,t=e.m,i=e.N,l=t[0],f=t[1],c=t[2],p=t[3],g=i==0?0:1/i,d=[r[0]-l*l*g,r[1]-l*f*g,r[2]-l*c*g,r[3]-l*p*g,r[4]-f*l*g,r[5]-f*f*g,r[6]-f*c*g,r[7]-f*p*g,r[8]-c*l*g,r[9]-c*f*g,r[10]-c*c*g,r[11]-c*p*g,r[12]-p*l*g,r[13]-p*f*g,r[14]-p*c*g,r[15]-p*p*g],m=d,C=Ue.M4,b=[Math.random(),Math.random(),Math.random(),Math.random()],x=0,_=0;if(i!=0)for(var k=0;k<16&&(b=C.multVec(m,b),_=Math.sqrt(C.dot(b,b)),b=C.sml(1/_,b),!(k!=0&&Math.abs(_-x)<1e-9));k++)x=_;var E=[l*g,f*g,c*g,p*g],A=C.dot(C.sml(255,E),b);return{Cov:d,q:E,e:b,L:x,eMq255:A,eMq:C.dot(b,E),rgba:(Math.round(255*E[3])<<24|Math.round(255*E[2])<<16|Math.round(255*E[1])<<8|Math.round(255*E[0])<<0)>>>0}},Ue.M4={multVec:function(e,r){return[e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3],e[4]*r[0]+e[5]*r[1]+e[6]*r[2]+e[7]*r[3],e[8]*r[0]+e[9]*r[1]+e[10]*r[2]+e[11]*r[3],e[12]*r[0]+e[13]*r[1]+e[14]*r[2]+e[15]*r[3]]},dot:function(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]},sml:function(e,r){return[e*r[0],e*r[1],e*r[2],e*r[3]]}},Ue.encode.concatRGBA=function(e){for(var r=0,t=0;t<e.length;t++)r+=e[t].byteLength;for(var i=new Uint8Array(r),l=0,t=0;t<e.length;t++){for(var f=new Uint8Array(e[t]),c=f.length,p=0;p<c;p+=4){var g=f[p],d=f[p+1],m=f[p+2],C=f[p+3];C==0&&(g=d=m=0),i[l+p]=g,i[l+p+1]=d,i[l+p+2]=m,i[l+p+3]=C}l+=c}return i.buffer};const yP=e=>new Promise((r,t)=>{const i=new FileReader;i.onloadend=l=>r(l.target.result),i.onerror=l=>t(l),i.readAsDataURL(e)}),xP=e=>new Promise((r,t)=>{const i=new Image;i.onload=()=>r(i),i.onerror=l=>t(l),i.src=e}),bP=(e,r,t)=>new Promise(i=>e.toBlob(l=>i(l),r,t)),CP=e=>{const i=e.width,l=e.height;let f=e.width,c=e.height;return(i>2e3||l>2e3)&&(i/l>2e3/2e3?(f=2e3,c=Math.round(2e3*(l/i))):(c=2e3,f=Math.round(2e3*(i/l)))),{width:f,height:c}},wP=e=>{let r=0;return e>1||e<0?r=0:r=e?e*256:0,r},a6=async(e,r=.5,t=5)=>{const i=e.name;if(e.size/1024/1024<t)return e;try{const l=document.createElement("canvas"),f=l.getContext("2d"),c=await yP(e),p=await xP(c),g=CP(p);if(l.width=g.width,l.height=g.height,f.clearRect(0,0,g.width,g.height),f.drawImage(p,0,0,g.width,g.height),["image/jpeg","image/jpg"].includes(e.type)){const d=await bP(l,e.type,r);return new File([d],i,{type:e.type})}else{const d=f.getImageData(0,0,g.width,g.height).data,m=wP(r),C=Ue.encode([d.buffer],g.width,g.height,m);return new File([C],e.name,{type:e.type})}}catch{return e}},i6=[ed.jpeg,ed.jpg,ed.png],o6=e=>{const{maxCount:r=1,listType:t="picture-card",fileList:i=[],maxSize:l=2,accept:f=i6.join(","),uploadBtnName:c="上传",uploadHint:p=null,compression:g}=e,[d,m]=W.useState(!1),[C,b]=W.useState(""),x=()=>t!=="text"?Be("div",{style:{position:"relative"},children:[Be("div",{children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:c})]}),p]}):Be(en,{children:[Q(me.Button,{icon:Q(Mb,{}),children:c}),p]}),_=T=>new Promise(async(R,N)=>{const z=f.split(","),M=dg(T.name)||"";if(f&&!z.includes(M)&&(me.message.error(`只允许上传 ${f} 文件`),N(!1)),!(T.size/1024/1024<l)&&!g&&(me.message.error(`文件必须小于${l}MB`),N(!1)),g){let Y=0;async function B(U){if(!g)return;const H=await a6(U,g.quality,g.limit);if(Y++,Y>=5)return H;if(H.size/1024/1024>l)await B(H);else return H}const P=await B(T);R(P)}R(T)}).catch(R=>me.Upload.LIST_IGNORE),k=T=>{e.onChange&&e.onChange(T)},E=T=>{e.onPreview?e.onPreview(T):A(T)},A=async T=>{let D=dg(T.name)||"";if(D||(D=dg(T.name||T.url)||""),D===ed.pdf)return me.Modal.info({title:"PDF",width:"60%",content:Q("iframe",{title:"PDF预览",src:T.url||T.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});i6.includes(D)&&(!T.url&&!T.thumbUrl&&!T.preview&&(T.preview=await P8(T.originFileObj)),b(T.url||T.thumbUrl||T.preview),m(!0))};return Be(en,{children:[Q(me.Upload,{beforeUpload:_,onChange:k,listType:t,...e,onPreview:E,children:i.length>=r?null:x()}),Q(me.Image,{style:{display:"none"},preview:{visible:d,src:C,onVisibleChange:()=>{m(!1),b("")}}})]})},Eg={fieldModal:"create-form-module_fieldModal_8bf3d",content:"create-form-module_content_61f84",suffix:"create-form-module_suffix_42205",placeholder:"create-form-module_placeholder_90d6a"},_P={labelCol:{span:4},wrapperCol:{span:20}},l6=e=>{switch(e){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},y2=e=>{const{items:r,rowProps:t,formProps:i,readonly:l=!1,hiddenTitle:f=!1,langId:c="10001"}=e,p=(m,C)=>{var b,x;if(C.btnType==="submit"){(b=i==null?void 0:i.form)==null||b.validateFields().then(_=>{C.onClick&&C.onClick(_)});return}if(C.btnType==="reset"){(x=i==null?void 0:i.form)==null||x.resetFields(),C.onClick&&C.onClick(m);return}C.btnType==="cancel"&&C.onClick&&C.onClick(m)},g=m=>Array.isArray(m)?m:m&&m.fileList,d=m=>{var b;const C=i==null?void 0:i.initialValues;return m.dataIndex?((b=m.render)==null?void 0:b.call(m,C==null?void 0:C[m.dataIndex],C))||m.value||(C==null?void 0:C[m.dataIndex]):""};return Q(me.Form,{layout:"horizontal",form:i==null?void 0:i.form,..._P,...i||{},children:Q(me.Row,{gutter:16,...t,children:r.filter(m=>!m.hidden).map((m,C)=>Q(me.Col,{...m.colProps||{span:24},children:Q(me.Form.Item,{...m.valueType==="upload"?{getValueFromEvent:g}:{},label:f?"":m.title,name:m.valueType==="btns"?void 0:m.dataIndex,...m.formItemProps,children:m.readonly?Q("div",{children:d(m)}):m.readonly===void 0&&l?Q("div",{children:d(m)}):Q(s6,{onChange:b=>{var x;return(x=m==null?void 0:m.onChange)==null?void 0:x.call(m,b)},valueType:m.valueType,onBtnClick:p,valueProps:m.valueProps,formItemProps:m.formItemProps,langId:c})})},m.dataIndex||C))})})},s6=e=>{const{valueType:r,valueProps:t,value:i,onChange:l,onBtnClick:f,inputRef:c,formItemProps:p,langId:g}=e,d=W.useMemo(()=>{let m=Q(me.Input,{placeholder:g==="10001"?"请输入":"Please input",allowClear:!0,...t});switch(r){case"rate":m=Q(me.Rate,{...t});break;case"password":m=Q(me.Input.Password,{...t});break;case"modal":m=Q(SP,{...t});break;case"checkbox":m=Q(me.Checkbox.Group,{...t});break;case"select":m=Q(me.Select,{placeholder:g==="10001"?"请选择":"Please select",allowClear:!0,...t});break;case"inputNumber":m=Q(me.InputNumber,{style:{width:"100%"},placeholder:g==="10001"?"请输入":"Please input",...t});break;case"textarea":m=Q(me.Input.TextArea,{placeholder:g==="10001"?"请输入":"Please input",allowClear:!0,...t});break;case"radio":m=Q(me.Radio.Group,{...t});break;case"switch":m=Q(me.Switch,{...t});break;case"datePicker":m=Q(me.DatePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"rangePicker":m=Q(me.DatePicker.RangePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"timePicker":m=Q(me.TimePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"cascader":m=Q(me.Cascader,{allowClear:!0,...t});break;case"upload":m=Q(o6,{...t});break;case"btns":m=Q(me.Space,{children:t==null?void 0:t.map(C=>W.createElement(me.Button,{type:C.btnType==="submit"?"primary":"default",...il.omit(C,["btnType"]),key:C.key||C.btnType,onClick:b=>{f==null||f(b,C)}},C.title||C.children))});break}return m},[r,t,l,i]);if(r==="custom"){const m=t;return W.cloneElement(m.children,{[(p==null?void 0:p.valuePropName)||l6(r||"input")]:i,onChange:l,ref:c})}return W.cloneElement(d,{[l6(r||"input")]:i,onChange:l,ref:c})},SP=e=>{const{placeholder:r,labelKey:t,onToggle:i,value:l,onClear:f,className:c,style:p}=e;return Be("div",{className:[Eg.fieldModal,c].filter(g=>g).join(" "),style:p,children:[Q("div",{className:Eg.content,onClick:()=>i(!0),children:l?Q("span",{children:l[t]}):Q("span",{className:Eg.placeholder,children:r})}),Q("span",{className:Eg.suffix,onClick:f,children:l&&Q(E7,{})})]})};var x2={exports:{}},$h={},Dg={exports:{}},u6={},wt={exports:{}},b2={exports:{}},bn={};var c6;function EP(){if(c6)return bn;c6=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(N){if(typeof N=="object"&&N!==null){var z=N.$$typeof;switch(z){case r:switch(N=N.type,N){case g:case d:case i:case f:case l:case C:return N;default:switch(N=N&&N.$$typeof,N){case p:case m:case _:case x:case c:return N;default:return z}}case t:return z}}}function R(N){return D(N)===d}return bn.AsyncMode=g,bn.ConcurrentMode=d,bn.ContextConsumer=p,bn.ContextProvider=c,bn.Element=r,bn.ForwardRef=m,bn.Fragment=i,bn.Lazy=_,bn.Memo=x,bn.Portal=t,bn.Profiler=f,bn.StrictMode=l,bn.Suspense=C,bn.isAsyncMode=function(N){return R(N)||D(N)===g},bn.isConcurrentMode=R,bn.isContextConsumer=function(N){return D(N)===p},bn.isContextProvider=function(N){return D(N)===c},bn.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===r},bn.isForwardRef=function(N){return D(N)===m},bn.isFragment=function(N){return D(N)===i},bn.isLazy=function(N){return D(N)===_},bn.isMemo=function(N){return D(N)===x},bn.isPortal=function(N){return D(N)===t},bn.isProfiler=function(N){return D(N)===f},bn.isStrictMode=function(N){return D(N)===l},bn.isSuspense=function(N){return D(N)===C},bn.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===i||N===d||N===f||N===l||N===C||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===_||N.$$typeof===x||N.$$typeof===c||N.$$typeof===p||N.$$typeof===m||N.$$typeof===E||N.$$typeof===A||N.$$typeof===T||N.$$typeof===k)},bn.typeOf=D,bn}var Cn={};var f6;function DP(){return f6||(f6=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(ke){return typeof ke=="string"||typeof ke=="function"||ke===i||ke===d||ke===f||ke===l||ke===C||ke===b||typeof ke=="object"&&ke!==null&&(ke.$$typeof===_||ke.$$typeof===x||ke.$$typeof===c||ke.$$typeof===p||ke.$$typeof===m||ke.$$typeof===E||ke.$$typeof===A||ke.$$typeof===T||ke.$$typeof===k)}function R(ke){if(typeof ke=="object"&&ke!==null){var ze=ke.$$typeof;switch(ze){case r:var Ne=ke.type;switch(Ne){case g:case d:case i:case f:case l:case C:return Ne;default:var dt=Ne&&Ne.$$typeof;switch(dt){case p:case m:case _:case x:case c:return dt;default:return ze}}case t:return ze}}}var N=g,z=d,M=p,I=c,Y=r,B=m,P=i,U=_,H=x,V=t,K=f,ee=l,J=C,q=!1;function te(ke){return q||(q=!0),X(ke)||R(ke)===g}function X(ke){return R(ke)===d}function $(ke){return R(ke)===p}function ne(ke){return R(ke)===c}function oe(ke){return typeof ke=="object"&&ke!==null&&ke.$$typeof===r}function ae(ke){return R(ke)===m}function se(ke){return R(ke)===i}function ve(ke){return R(ke)===_}function we(ke){return R(ke)===x}function ce(ke){return R(ke)===t}function ye(ke){return R(ke)===f}function De(ke){return R(ke)===l}function Pe(ke){return R(ke)===C}Cn.AsyncMode=N,Cn.ConcurrentMode=z,Cn.ContextConsumer=M,Cn.ContextProvider=I,Cn.Element=Y,Cn.ForwardRef=B,Cn.Fragment=P,Cn.Lazy=U,Cn.Memo=H,Cn.Portal=V,Cn.Profiler=K,Cn.StrictMode=ee,Cn.Suspense=J,Cn.isAsyncMode=te,Cn.isConcurrentMode=X,Cn.isContextConsumer=$,Cn.isContextProvider=ne,Cn.isElement=oe,Cn.isForwardRef=ae,Cn.isFragment=se,Cn.isLazy=ve,Cn.isMemo=we,Cn.isPortal=ce,Cn.isProfiler=ye,Cn.isStrictMode=De,Cn.isSuspense=Pe,Cn.isValidElementType=D,Cn.typeOf=R}()),Cn}var d6;function h6(){return d6||(d6=1,function(e){process.env.NODE_ENV==="production"?e.exports=EP():e.exports=DP()}(b2)),b2.exports}var C2,p6;function kP(){if(p6)return C2;p6=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function i(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function l(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var c={},p=0;p<10;p++)c["_"+String.fromCharCode(p)]=p;var g=Object.getOwnPropertyNames(c).map(function(m){return c[m]});if(g.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C2=l()?Object.assign:function(f,c){for(var p,g=i(f),d,m=1;m<arguments.length;m++){p=Object(arguments[m]);for(var C in p)r.call(p,C)&&(g[C]=p[C]);if(e){d=e(p);for(var b=0;b<d.length;b++)t.call(p,d[b])&&(g[d[b]]=p[d[b]])}}return g},C2}var w2,v6;function _2(){if(v6)return w2;v6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return w2=e,w2}var S2,m6;function g6(){return m6||(m6=1,S2=Function.call.bind(Object.prototype.hasOwnProperty)),S2}var E2,y6;function TP(){if(y6)return E2;y6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_2(),t={},i=g6();e=function(f){var c="Warning: "+f;try{throw new Error(c)}catch{}}}function l(f,c,p,g,d){if(process.env.NODE_ENV!=="production"){for(var m in f)if(i(f,m)){var C;try{if(typeof f[m]!="function"){var b=Error((g||"React class")+": "+p+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}C=f[m](c,m,g,p,null,r)}catch(_){C=_}if(C&&!(C instanceof Error)&&e((g||"React class")+": type specification of "+p+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof C+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),C instanceof Error&&!(C.message in t)){t[C.message]=!0;var x=d?d():"";e("Failed "+p+" type: "+C.message+(x??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},E2=l,E2}var D2,x6;function AP(){if(x6)return D2;x6=1;var e=h6(),r=kP(),t=_2(),i=g6(),l=TP(),f=function(){};process.env.NODE_ENV!=="production"&&(f=function(p){var g="Warning: "+p;try{throw new Error(g)}catch{}});function c(){return null}return D2=function(p,g){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function C(X){var $=X&&(d&&X[d]||X[m]);if(typeof $=="function")return $}var b="<<anonymous>>",x={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(),arrayOf:D,element:R(),elementType:N(),instanceOf:z,node:B(),objectOf:I,oneOf:M,oneOfType:Y,shape:U,exact:H};function _(X,$){return X===$?X!==0||1/X===1/$:X!==X&&$!==$}function k(X,$){this.message=X,this.data=$&&typeof $=="object"?$:{},this.stack=""}k.prototype=Error.prototype;function E(X){if(process.env.NODE_ENV!=="production")var $={},ne=0;function oe(se,ve,we,ce,ye,De,Pe){if(ce=ce||b,De=De||we,Pe!==t){if(g){var ke=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ke.name="Invariant Violation",ke}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ze=ce+":"+we;!$[ze]&&ne<3&&(f("You are manually calling a React.PropTypes validation function for the `"+De+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[ze]=!0,ne++)}}return ve[we]==null?se?ve[we]===null?new k("The "+ye+" `"+De+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new k("The "+ye+" `"+De+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:X(ve,we,ce,ye,De)}var ae=oe.bind(null,!1);return ae.isRequired=oe.bind(null,!0),ae}function A(X){function $(ne,oe,ae,se,ve,we){var ce=ne[oe],ye=ee(ce);if(ye!==X){var De=J(ce);return new k("Invalid "+se+" `"+ve+"` of type "+("`"+De+"` supplied to `"+ae+"`, expected ")+("`"+X+"`."),{expectedType:X})}return null}return E($)}function T(){return E(c)}function D(X){function $(ne,oe,ae,se,ve){if(typeof X!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var we=ne[oe];if(!Array.isArray(we)){var ce=ee(we);return new k("Invalid "+se+" `"+ve+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected an array."))}for(var ye=0;ye<we.length;ye++){var De=X(we,ye,ae,se,ve+"["+ye+"]",t);if(De instanceof Error)return De}return null}return E($)}function R(){function X($,ne,oe,ae,se){var ve=$[ne];if(!p(ve)){var we=ee(ve);return new k("Invalid "+ae+" `"+se+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return E(X)}function N(){function X($,ne,oe,ae,se){var ve=$[ne];if(!e.isValidElementType(ve)){var we=ee(ve);return new k("Invalid "+ae+" `"+se+"` of type "+("`"+we+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return E(X)}function z(X){function $(ne,oe,ae,se,ve){if(!(ne[oe]instanceof X)){var we=X.name||b,ce=te(ne[oe]);return new k("Invalid "+se+" `"+ve+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected ")+("instance of `"+we+"`."))}return null}return E($)}function M(X){if(!Array.isArray(X))return process.env.NODE_ENV!=="production"&&(arguments.length>1?f("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):f("Invalid argument supplied to oneOf, expected an array.")),c;function $(ne,oe,ae,se,ve){for(var we=ne[oe],ce=0;ce<X.length;ce++)if(_(we,X[ce]))return null;var ye=JSON.stringify(X,function(Pe,ke){var ze=J(ke);return ze==="symbol"?String(ke):ke});return new k("Invalid "+se+" `"+ve+"` of value `"+String(we)+"` "+("supplied to `"+ae+"`, expected one of "+ye+"."))}return E($)}function I(X){function $(ne,oe,ae,se,ve){if(typeof X!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var we=ne[oe],ce=ee(we);if(ce!=="object")return new k("Invalid "+se+" `"+ve+"` of type "+("`"+ce+"` supplied to `"+ae+"`, expected an object."));for(var ye in we)if(i(we,ye)){var De=X(we,ye,ae,se,ve+"."+ye,t);if(De instanceof Error)return De}return null}return E($)}function Y(X){if(!Array.isArray(X))return process.env.NODE_ENV!=="production"&&f("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var $=0;$<X.length;$++){var ne=X[$];if(typeof ne!="function")return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ne)+" at index "+$+"."),c}function oe(ae,se,ve,we,ce){for(var ye=[],De=0;De<X.length;De++){var Pe=X[De],ke=Pe(ae,se,ve,we,ce,t);if(ke==null)return null;ke.data&&i(ke.data,"expectedType")&&ye.push(ke.data.expectedType)}var ze=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new k("Invalid "+we+" `"+ce+"` supplied to "+("`"+ve+"`"+ze+"."))}return E(oe)}function B(){function X($,ne,oe,ae,se){return V($[ne])?null:new k("Invalid "+ae+" `"+se+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return E(X)}function P(X,$,ne,oe,ae){return new k((X||"React class")+": "+$+" type `"+ne+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function U(X){function $(ne,oe,ae,se,ve){var we=ne[oe],ce=ee(we);if(ce!=="object")return new k("Invalid "+se+" `"+ve+"` of type `"+ce+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ye in X){var De=X[ye];if(typeof De!="function")return P(ae,se,ve,ye,J(De));var Pe=De(we,ye,ae,se,ve+"."+ye,t);if(Pe)return Pe}return null}return E($)}function H(X){function $(ne,oe,ae,se,ve){var we=ne[oe],ce=ee(we);if(ce!=="object")return new k("Invalid "+se+" `"+ve+"` of type `"+ce+"` "+("supplied to `"+ae+"`, expected `object`."));var ye=r({},ne[oe],X);for(var De in ye){var Pe=X[De];if(i(X,De)&&typeof Pe!="function")return P(ae,se,ve,De,J(Pe));if(!Pe)return new k("Invalid "+se+" `"+ve+"` key `"+De+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(ne[oe],null," ")+`
194
+ Valid keys: `+JSON.stringify(Object.keys(X),null," "));var ke=Pe(we,De,ae,se,ve+"."+De,t);if(ke)return ke}return null}return E($)}function V(X){switch(typeof X){case"number":case"string":case"undefined":return!0;case"boolean":return!X;case"object":if(Array.isArray(X))return X.every(V);if(X===null||p(X))return!0;var $=C(X);if($){var ne=$.call(X),oe;if($!==X.entries){for(;!(oe=ne.next()).done;)if(!V(oe.value))return!1}else for(;!(oe=ne.next()).done;){var ae=oe.value;if(ae&&!V(ae[1]))return!1}}else return!1;return!0;default:return!1}}function K(X,$){return X==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function ee(X){var $=typeof X;return Array.isArray(X)?"array":X instanceof RegExp?"object":K($,X)?"symbol":$}function J(X){if(typeof X>"u"||X===null)return""+X;var $=ee(X);if($==="object"){if(X instanceof Date)return"date";if(X instanceof RegExp)return"regexp"}return $}function q(X){var $=J(X);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function te(X){return!X.constructor||!X.constructor.name?b:X.constructor.name}return x.checkPropTypes=l,x.resetWarningCache=l.resetWarningCache,x.PropTypes=x,x},D2}var k2,b6;function OP(){if(b6)return k2;b6=1;var e=_2();function r(){}function t(){}return t.resetWarningCache=r,k2=function(){function i(c,p,g,d,m,C){if(C!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function l(){return i}var f={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:t,resetWarningCache:r};return f.PropTypes=f,f},k2}if(process.env.NODE_ENV!=="production"){var RP=h6(),FP=!0;wt.exports=AP()(RP.isElement,FP)}else wt.exports=OP()();function C6(e){var r,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=C6(e[r]))&&(i&&(i+=" "),i+=t);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Re(){for(var e,r,t=0,i="";t<arguments.length;)(e=arguments[t++])&&(r=C6(e))&&(i&&(i+=" "),i+=r);return i}const NP=L4(Object.freeze(Object.defineProperty({__proto__:null,clsx:Re,default:Re},Symbol.toStringTag,{value:"Module"})));var sr={},cl={};Object.defineProperty(cl,"__esModule",{value:!0}),cl.dontSetMe=zP,cl.findInArray=MP,cl.int=LP,cl.isFunction=PP,cl.isNum=BP;function MP(e,r){for(let t=0,i=e.length;t<i;t++)if(r.apply(r,[e[t],t,e]))return e[t]}function PP(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function BP(e){return typeof e=="number"&&!isNaN(e)}function LP(e){return parseInt(e,10)}function zP(e,r,t){if(e[r])return new Error("Invalid prop ".concat(r," passed to ").concat(t," - do not set this, set it on the child."))}var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.browserPrefixToKey=_6,Ec.browserPrefixToStyle=UP,Ec.default=void 0,Ec.getPrefix=w6;const T2=["Moz","Webkit","O","ms"];function w6(){var e;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!t||r in t)return"";for(let i=0;i<T2.length;i++)if(_6(r,T2[i])in t)return T2[i];return""}function _6(e,r){return r?"".concat(r).concat(jP(e)):e}function UP(e,r){return r?"-".concat(r.toLowerCase(),"-").concat(e):e}function jP(e){let r="",t=!0;for(let i=0;i<e.length;i++)t?(r+=e[i].toUpperCase(),t=!1):e[i]==="-"?t=!0:r+=e[i];return r}Ec.default=w6(),Object.defineProperty(sr,"__esModule",{value:!0}),sr.addClassName=k6,sr.addEvent=VP,sr.addUserSelectStyles=eB,sr.createCSSTransform=QP,sr.createSVGTransform=ZP,sr.getTouch=XP,sr.getTouchIdentifier=JP,sr.getTranslation=A2,sr.innerHeight=GP,sr.innerWidth=KP,sr.matchesSelector=D6,sr.matchesSelectorAndParentsTo=HP,sr.offsetXYFromParent=WP,sr.outerHeight=YP,sr.outerWidth=qP,sr.removeClassName=T6,sr.removeEvent=$P,sr.removeUserSelectStyles=tB;var Fi=cl,S6=IP(Ec);function E6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(E6=function(i){return i?t:r})(e)}function IP(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=E6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}let kg="";function D6(e,r){return kg||(kg=(0,Fi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,Fi.isFunction)(e[t])})),(0,Fi.isFunction)(e[kg])?e[kg](r):!1}function HP(e,r,t){let i=e;do{if(D6(i,r))return!0;if(i===t)return!1;i=i.parentNode}while(i);return!1}function VP(e,r,t,i){if(!e)return;const l={capture:!0,...i};e.addEventListener?e.addEventListener(r,t,l):e.attachEvent?e.attachEvent("on"+r,t):e["on"+r]=t}function $P(e,r,t,i){if(!e)return;const l={capture:!0,...i};e.removeEventListener?e.removeEventListener(r,t,l):e.detachEvent?e.detachEvent("on"+r,t):e["on"+r]=null}function YP(e){let r=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r+=(0,Fi.int)(t.borderTopWidth),r+=(0,Fi.int)(t.borderBottomWidth),r}function qP(e){let r=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r+=(0,Fi.int)(t.borderLeftWidth),r+=(0,Fi.int)(t.borderRightWidth),r}function GP(e){let r=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r-=(0,Fi.int)(t.paddingTop),r-=(0,Fi.int)(t.paddingBottom),r}function KP(e){let r=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r-=(0,Fi.int)(t.paddingLeft),r-=(0,Fi.int)(t.paddingRight),r}function WP(e,r,t){const l=r===r.ownerDocument.body?{left:0,top:0}:r.getBoundingClientRect(),f=(e.clientX+r.scrollLeft-l.left)/t,c=(e.clientY+r.scrollTop-l.top)/t;return{x:f,y:c}}function QP(e,r){const t=A2(e,r,"px");return{[(0,S6.browserPrefixToKey)("transform",S6.default)]:t}}function ZP(e,r){return A2(e,r,"")}function A2(e,r,t){let{x:i,y:l}=e,f="translate(".concat(i).concat(t,",").concat(l).concat(t,")");if(r){const c="".concat(typeof r.x=="string"?r.x:r.x+t),p="".concat(typeof r.y=="string"?r.y:r.y+t);f="translate(".concat(c,", ").concat(p,")")+f}return f}function XP(e,r){return e.targetTouches&&(0,Fi.findInArray)(e.targetTouches,t=>r===t.identifier)||e.changedTouches&&(0,Fi.findInArray)(e.changedTouches,t=>r===t.identifier)}function JP(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function eB(e){if(!e)return;let r=e.getElementById("react-draggable-style-el");r||(r=e.createElement("style"),r.type="text/css",r.id="react-draggable-style-el",r.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
195
195
  `,r.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
196
- `,e.getElementsByTagName("head")[0].appendChild(r)),e.body&&k6(e.body,"react-draggable-transparent-selection")}function tB(e){if(e)try{if(e.body&&T6(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const r=(e.defaultView||window).getSelection();r&&r.type!=="Caret"&&r.removeAllRanges()}}catch{}}function k6(e,r){e.classList?e.classList.add(r):e.className.match(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)")))||(e.className+=" ".concat(r))}function T6(e,r){e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)"),"g"),"")}var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.canDragX=aB,fl.canDragY=iB,fl.createCoreData=lB,fl.createDraggableData=sB,fl.getBoundPosition=nB,fl.getControlPosition=oB,fl.snapToGrid=rB;var Ni=cl,ud=sr;function nB(e,r,t){if(!e.props.bounds)return[r,t];let{bounds:i}=e.props;i=typeof i=="string"?i:uB(i);const l=O2(e);if(typeof i=="string"){const{ownerDocument:f}=l,c=f.defaultView;let p;if(i==="parent"?p=l.parentNode:p=f.querySelector(i),!(p instanceof c.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const g=p,d=c.getComputedStyle(l),m=c.getComputedStyle(g);i={left:-l.offsetLeft+(0,Ni.int)(m.paddingLeft)+(0,Ni.int)(d.marginLeft),top:-l.offsetTop+(0,Ni.int)(m.paddingTop)+(0,Ni.int)(d.marginTop),right:(0,ud.innerWidth)(g)-(0,ud.outerWidth)(l)-l.offsetLeft+(0,Ni.int)(m.paddingRight)-(0,Ni.int)(d.marginRight),bottom:(0,ud.innerHeight)(g)-(0,ud.outerHeight)(l)-l.offsetTop+(0,Ni.int)(m.paddingBottom)-(0,Ni.int)(d.marginBottom)}}return(0,Ni.isNum)(i.right)&&(r=Math.min(r,i.right)),(0,Ni.isNum)(i.bottom)&&(t=Math.min(t,i.bottom)),(0,Ni.isNum)(i.left)&&(r=Math.max(r,i.left)),(0,Ni.isNum)(i.top)&&(t=Math.max(t,i.top)),[r,t]}function rB(e,r,t){const i=Math.round(r/e[0])*e[0],l=Math.round(t/e[1])*e[1];return[i,l]}function aB(e){return e.props.axis==="both"||e.props.axis==="x"}function iB(e){return e.props.axis==="both"||e.props.axis==="y"}function oB(e,r,t){const i=typeof r=="number"?(0,ud.getTouch)(e,r):null;if(typeof r=="number"&&!i)return null;const l=O2(t),f=t.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,ud.offsetXYFromParent)(i||e,f,t.props.scale)}function lB(e,r,t){const i=!(0,Ni.isNum)(e.lastX),l=O2(e);return i?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:t,x:r,y:t}:{node:l,deltaX:r-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:r,y:t}}function sB(e,r){const t=e.props.scale;return{node:r.node,x:e.state.x+r.deltaX/t,y:e.state.y+r.deltaY/t,deltaX:r.deltaX/t,deltaY:r.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function uB(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function O2(e){const r=e.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}var Tg={},Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=cB;function cB(){}Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var R2=dB(W),li=N2(wt.exports),fB=N2(tu.exports),Sa=sr,lu=fl,F2=cl,Yh=N2(Ag);function N2(e){return e&&e.__esModule?e:{default:e}}function A6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(A6=function(i){return i?t:r})(e)}function dB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=A6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function Va(e,r,t){return r=hB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function hB(e){var r=pB(e,"string");return typeof r=="symbol"?r:String(r)}function pB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const bo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let su=bo.mouse,Og=class extends R2.Component{constructor(){super(...arguments),Va(this,"dragging",!1),Va(this,"lastX",NaN),Va(this,"lastY",NaN),Va(this,"touchIdentifier",null),Va(this,"mounted",!1),Va(this,"handleDragStart",r=>{if(this.props.onMouseDown(r),!this.props.allowAnyClick&&typeof r.button=="number"&&r.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:i}=t;if(this.props.disabled||!(r.target instanceof i.defaultView.Node)||this.props.handle&&!(0,Sa.matchesSelectorAndParentsTo)(r.target,this.props.handle,t)||this.props.cancel&&(0,Sa.matchesSelectorAndParentsTo)(r.target,this.props.cancel,t))return;r.type==="touchstart"&&r.preventDefault();const l=(0,Sa.getTouchIdentifier)(r);this.touchIdentifier=l;const f=(0,lu.getControlPosition)(r,l,this);if(f==null)return;const{x:c,y:p}=f,g=(0,lu.createCoreData)(this,c,p);(0,Yh.default)("DraggableCore: handleDragStart: %j",g),(0,Yh.default)("calling",this.props.onStart),!(this.props.onStart(r,g)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Sa.addUserSelectStyles)(i),this.dragging=!0,this.lastX=c,this.lastY=p,(0,Sa.addEvent)(i,su.move,this.handleDrag),(0,Sa.addEvent)(i,su.stop,this.handleDragStop))}),Va(this,"handleDrag",r=>{const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let p=i-this.lastX,g=l-this.lastY;if([p,g]=(0,lu.snapToGrid)(this.props.grid,p,g),!p&&!g)return;i=this.lastX+p,l=this.lastY+g}const f=(0,lu.createCoreData)(this,i,l);if((0,Yh.default)("DraggableCore: handleDrag: %j",f),this.props.onDrag(r,f)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const g=document.createEvent("MouseEvents");g.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(g)}return}this.lastX=i,this.lastY=l}),Va(this,"handleDragStop",r=>{if(!this.dragging)return;const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let g=i-this.lastX||0,d=l-this.lastY||0;[g,d]=(0,lu.snapToGrid)(this.props.grid,g,d),i=this.lastX+g,l=this.lastY+d}const f=(0,lu.createCoreData)(this,i,l);if(this.props.onStop(r,f)===!1||this.mounted===!1)return!1;const p=this.findDOMNode();p&&this.props.enableUserSelectHack&&(0,Sa.removeUserSelectStyles)(p.ownerDocument),(0,Yh.default)("DraggableCore: handleDragStop: %j",f),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,p&&((0,Yh.default)("DraggableCore: Removing handlers"),(0,Sa.removeEvent)(p.ownerDocument,su.move,this.handleDrag),(0,Sa.removeEvent)(p.ownerDocument,su.stop,this.handleDragStop))}),Va(this,"onMouseDown",r=>(su=bo.mouse,this.handleDragStart(r))),Va(this,"onMouseUp",r=>(su=bo.mouse,this.handleDragStop(r))),Va(this,"onTouchStart",r=>(su=bo.touch,this.handleDragStart(r))),Va(this,"onTouchEnd",r=>(su=bo.touch,this.handleDragStop(r)))}componentDidMount(){this.mounted=!0;const r=this.findDOMNode();r&&(0,Sa.addEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const r=this.findDOMNode();if(r){const{ownerDocument:t}=r;(0,Sa.removeEvent)(t,bo.mouse.move,this.handleDrag),(0,Sa.removeEvent)(t,bo.touch.move,this.handleDrag),(0,Sa.removeEvent)(t,bo.mouse.stop,this.handleDragStop),(0,Sa.removeEvent)(t,bo.touch.stop,this.handleDragStop),(0,Sa.removeEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Sa.removeUserSelectStyles)(t)}}findDOMNode(){var r,t;return(r=this.props)!==null&&r!==void 0&&r.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:fB.default.findDOMNode(this)}render(){return R2.cloneElement(R2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Tg.default=Og,Va(Og,"displayName","DraggableCore"),Va(Og,"propTypes",{allowAnyClick:li.default.bool,children:li.default.node.isRequired,disabled:li.default.bool,enableUserSelectHack:li.default.bool,offsetParent:function(e,r){if(e[r]&&e[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:li.default.arrayOf(li.default.number),handle:li.default.string,cancel:li.default.string,nodeRef:li.default.object,onStart:li.default.func,onDrag:li.default.func,onStop:li.default.func,onMouseDown:li.default.func,scale:li.default.number,className:F2.dontSetMe,style:F2.dontSetMe,transform:F2.dontSetMe}),Va(Og,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return g.default}}),e.default=void 0;var r=b(W),t=m(wt.exports),i=m(tu.exports),l=m(NP),f=sr,c=fl,p=cl,g=m(Tg),d=m(Ag);function m(T){return T&&T.__esModule?T:{default:T}}function C(T){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(C=function(N){return N?R:D})(T)}function b(T,D){if(!D&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var R=C(D);if(R&&R.has(T))return R.get(T);var N={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in T)if(M!=="default"&&Object.prototype.hasOwnProperty.call(T,M)){var I=z?Object.getOwnPropertyDescriptor(T,M):null;I&&(I.get||I.set)?Object.defineProperty(N,M,I):N[M]=T[M]}return N.default=T,R&&R.set(T,N),N}function x(){return x=Object.assign?Object.assign.bind():function(T){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(T[N]=R[N])}return T},x.apply(this,arguments)}function _(T,D,R){return D=k(D),D in T?Object.defineProperty(T,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[D]=R,T}function k(T){var D=E(T,"string");return typeof D=="symbol"?D:String(D)}function E(T,D){if(typeof T!="object"||T===null)return T;var R=T[Symbol.toPrimitive];if(R!==void 0){var N=R.call(T,D||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(T)}class A extends r.Component{static getDerivedStateFromProps(D,R){let{position:N}=D,{prevPropsPosition:z}=R;return N&&(!z||N.x!==z.x||N.y!==z.y)?((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:N,prevPropsPosition:z}),{x:N.x,y:N.y,prevPropsPosition:{...N}}):null}constructor(D){super(D),_(this,"onDragStart",(R,N)=>{if((0,d.default)("Draggable: onDragStart: %j",N),this.props.onStart(R,(0,c.createDraggableData)(this,N))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),_(this,"onDrag",(R,N)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",N);const z=(0,c.createDraggableData)(this,N),M={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Y,y:B}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[P,U]=(0,c.getBoundPosition)(this,M.x,M.y);M.x=P,M.y=U,M.slackX=this.state.slackX+(Y-M.x),M.slackY=this.state.slackY+(B-M.y),z.x=M.x,z.y=M.y,z.deltaX=M.x-this.state.x,z.deltaY=M.y-this.state.y}if(this.props.onDrag(R,z)===!1)return!1;this.setState(M)}),_(this,"onDragStop",(R,N)=>{if(!this.state.dragging||this.props.onStop(R,(0,c.createDraggableData)(this,N))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",N);const M={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:Y,y:B}=this.props.position;M.x=Y,M.y=B}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:D.position?D.position.x:D.defaultPosition.x,y:D.position?D.position.y:D.defaultPosition.y,prevPropsPosition:{...D.position},slackX:0,slackY:0,isElementSVG:!1},D.position&&(D.onDrag||D.onStop)}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var D,R;return(D=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&D!==void 0?D:i.default.findDOMNode(this)}render(){const{axis:D,bounds:R,children:N,defaultPosition:z,defaultClassName:M,defaultClassNameDragging:I,defaultClassNameDragged:Y,position:B,positionOffset:P,scale:U,...H}=this.props;let V={},K=null;const J=!Boolean(B)||this.state.dragging,q=B||z,te={x:(0,c.canDragX)(this)&&J?this.state.x:q.x,y:(0,c.canDragY)(this)&&J?this.state.y:q.y};this.state.isElementSVG?K=(0,f.createSVGTransform)(te,P):V=(0,f.createCSSTransform)(te,P);const Z=(0,l.default)(N.props.className||"",M,{[I]:this.state.dragging,[Y]:this.state.dragged});return r.createElement(g.default,x({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(N),{className:Z,style:{...N.props.style,...V},transform:K}))}}e.default=A,_(A,"displayName","Draggable"),_(A,"propTypes",{...g.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),_(A,"defaultProps",{...g.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(u6);const{default:O6,DraggableCore:vB}=u6;Dg.exports=O6,Dg.exports.default=O6,Dg.exports.DraggableCore=vB;var M2={};M2.__esModule=!0,M2.cloneElement=CB;var mB=gB(W);function gB(e){return e&&e.__esModule?e:{default:e}}function R6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function F6(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?R6(Object(t),!0).forEach(function(i){yB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function yB(e,r,t){return r=xB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xB(e){var r=bB(e,"string");return typeof r=="symbol"?r:String(r)}function bB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function CB(e,r){return r.style&&e.props.style&&(r.style=F6(F6({},e.props.style),r.style)),r.className&&e.props.className&&(r.className=e.props.className+" "+r.className),mB.default.cloneElement(e,r)}var qh={};qh.__esModule=!0,qh.resizableProps=void 0;var Bt=wB(wt.exports);function wB(e){return e&&e.__esModule?e:{default:e}}var _B={axis:Bt.default.oneOf(["both","x","y","none"]),className:Bt.default.string,children:Bt.default.element.isRequired,draggableOpts:Bt.default.shape({allowAnyClick:Bt.default.bool,cancel:Bt.default.string,children:Bt.default.node,disabled:Bt.default.bool,enableUserSelectHack:Bt.default.bool,offsetParent:Bt.default.node,grid:Bt.default.arrayOf(Bt.default.number),handle:Bt.default.string,nodeRef:Bt.default.object,onStart:Bt.default.func,onDrag:Bt.default.func,onStop:Bt.default.func,onMouseDown:Bt.default.func,scale:Bt.default.number}),height:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="y"){var f;return(f=Bt.default.number).isRequired.apply(f,t)}return Bt.default.number.apply(Bt.default,t)},handle:Bt.default.oneOfType([Bt.default.node,Bt.default.func]),handleSize:Bt.default.arrayOf(Bt.default.number),lockAspectRatio:Bt.default.bool,maxConstraints:Bt.default.arrayOf(Bt.default.number),minConstraints:Bt.default.arrayOf(Bt.default.number),onResizeStop:Bt.default.func,onResizeStart:Bt.default.func,onResize:Bt.default.func,resizeHandles:Bt.default.arrayOf(Bt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Bt.default.number,width:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="x"){var f;return(f=Bt.default.number).isRequired.apply(f,t)}return Bt.default.number.apply(Bt.default,t)}};qh.resizableProps=_B,$h.__esModule=!0,$h.default=void 0;var Gh=TB(W),SB=Dg.exports,EB=M2,DB=qh,kB=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function N6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(N6=function(l){return l?t:r})(e)}function TB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=N6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P2.apply(this,arguments)}function AB(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function M6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function B2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?M6(Object(t),!0).forEach(function(i){OB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function OB(e,r,t){return r=RB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RB(e){var r=FB(e,"string");return typeof r=="symbol"?r:String(r)}function FB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function NB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,L2(e,r)}function L2(e,r){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},L2(e,r)}var z2=function(e){NB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.handleRefs={},i.lastHandleRect=null,i.slack=null,i}var t=r.prototype;return t.componentWillUnmount=function(){this.resetData()},t.resetData=function(){this.lastHandleRect=this.slack=null},t.runConstraints=function(l,f){var c=this.props,p=c.minConstraints,g=c.maxConstraints,d=c.lockAspectRatio;if(!p&&!g&&!d)return[l,f];if(d){var m=this.props.width/this.props.height,C=l-this.props.width,b=f-this.props.height;Math.abs(C)>Math.abs(b*m)?f=l/m:l=f*m}var x=l,_=f,k=this.slack||[0,0],E=k[0],A=k[1];return l+=E,f+=A,p&&(l=Math.max(p[0],l),f=Math.max(p[1],f)),g&&(l=Math.min(g[0],l),f=Math.min(g[1],f)),this.slack=[E+(x-l),A+(_-f)],[l,f]},t.resizeHandler=function(l,f){var c=this;return function(p,g){var d=g.node,m=g.deltaX,C=g.deltaY;l==="onResizeStart"&&c.resetData();var b=(c.props.axis==="both"||c.props.axis==="x")&&f!=="n"&&f!=="s",x=(c.props.axis==="both"||c.props.axis==="y")&&f!=="e"&&f!=="w";if(!(!b&&!x)){var _=f[0],k=f[f.length-1],E=d.getBoundingClientRect();if(c.lastHandleRect!=null){if(k==="w"){var A=E.left-c.lastHandleRect.left;m+=A}if(_==="n"){var T=E.top-c.lastHandleRect.top;C+=T}}c.lastHandleRect=E,k==="w"&&(m=-m),_==="n"&&(C=-C);var D=c.props.width+(b?m/c.props.transformScale:0),R=c.props.height+(x?C/c.props.transformScale:0),N=c.runConstraints(D,R);D=N[0],R=N[1];var z=D!==c.props.width||R!==c.props.height,M=typeof c.props[l]=="function"?c.props[l]:null,I=l==="onResize"&&!z;M&&!I&&(p.persist==null||p.persist(),M(p,{node:d,size:{width:D,height:R},handle:f})),l==="onResizeStop"&&c.resetData()}}},t.renderResizeHandle=function(l,f){var c=this.props.handle;if(!c)return Gh.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+l,ref:f});if(typeof c=="function")return c(l,f);var p=typeof c.type=="string",g=B2({ref:f},p?{}:{handleAxis:l});return Gh.cloneElement(c,g)},t.render=function(){var l=this,f=this.props,c=f.children,p=f.className,g=f.draggableOpts;f.width,f.height,f.handle,f.handleSize,f.lockAspectRatio,f.axis,f.minConstraints,f.maxConstraints,f.onResize,f.onResizeStop,f.onResizeStart;var d=f.resizeHandles;f.transformScale;var m=AB(f,kB);return(0,EB.cloneElement)(c,B2(B2({},m),{},{className:(p?p+" ":"")+"react-resizable",children:[].concat(c.props.children,d.map(function(C){var b,x=(b=l.handleRefs[C])!=null?b:l.handleRefs[C]=Gh.createRef();return Gh.createElement(SB.DraggableCore,P2({},g,{nodeRef:x,key:"resizableHandle-"+C,onStop:l.resizeHandler("onResizeStop",C),onStart:l.resizeHandler("onResizeStart",C),onDrag:l.resizeHandler("onResize",C)}),l.renderResizeHandle(C,x))}))}))},r}(Gh.Component);$h.default=z2,z2.propTypes=DB.resizableProps,z2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Rg={};Rg.__esModule=!0,Rg.default=void 0;var U2=zB(W),MB=P6(wt.exports),PB=P6($h),BB=qh,LB=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function P6(e){return e&&e.__esModule?e:{default:e}}function B6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(B6=function(l){return l?t:r})(e)}function zB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=B6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},j2.apply(this,arguments)}function L6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function Fg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?L6(Object(t),!0).forEach(function(i){UB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function UB(e,r,t){return r=jB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function jB(e){var r=IB(e,"string");return typeof r=="symbol"?r:String(r)}function IB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function HB(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function VB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,I2(e,r)}function I2(e,r){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},I2(e,r)}var z6=function(e){VB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.state={width:i.props.width,height:i.props.height,propsWidth:i.props.width,propsHeight:i.props.height},i.onResize=function(p,g){var d=g.size;i.props.onResize?(p.persist==null||p.persist(),i.setState(d,function(){return i.props.onResize&&i.props.onResize(p,g)})):i.setState(d)},i}r.getDerivedStateFromProps=function(l,f){return f.propsWidth!==l.width||f.propsHeight!==l.height?{width:l.width,height:l.height,propsWidth:l.width,propsHeight:l.height}:null};var t=r.prototype;return t.render=function(){var l=this.props,f=l.handle,c=l.handleSize;l.onResize;var p=l.onResizeStart,g=l.onResizeStop,d=l.draggableOpts,m=l.minConstraints,C=l.maxConstraints,b=l.lockAspectRatio,x=l.axis;l.width,l.height;var _=l.resizeHandles,k=l.style,E=l.transformScale,A=HB(l,LB);return U2.createElement(PB.default,{axis:x,draggableOpts:d,handle:f,handleSize:c,height:this.state.height,lockAspectRatio:b,maxConstraints:C,minConstraints:m,onResizeStart:p,onResize:this.onResize,onResizeStop:g,resizeHandles:_,transformScale:E,width:this.state.width},U2.createElement("div",j2({},A,{style:Fg(Fg({},k),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},r}(U2.Component);Rg.default=z6,z6.propTypes=Fg(Fg({},BB.resizableProps),{},{children:MB.default.element}),x2.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var $B=x2.exports.Resizable=$h.default;x2.exports.ResizableBox=Rg.default;const YB={search:"search-table-module_search_17add",table:"search-table-module_table_5f652"},qB=e=>{const{onResize:r,width:t,resizeable:i,...l}=e;return!t||!i?Q("th",{...l}):Q($B,{width:t||200,height:0,onResize:r,draggableOpts:{enableUserSelectHack:!1},children:Q("th",{...l})})};function GB(e){const{tableProps:r={},searchProps:t,langId:i}=e,{minColumnWidth:l=200,resizeable:f=!1,tableId:c,storageKey:p="szld_table_cell_width",emptyText:g,...d}=r,[m,C]=W.useState(r.columns||[]),b=E=>{var T,D;let A=E.width||l;if(E.dataIndex&&c){const R=Array.isArray(E.dataIndex)?E.dataIndex.join("-"):String(E.dataIndex),N=(D=(T=jb(p))==null?void 0:T[c])==null?void 0:D[R];N&&(A=N)}return A};W.useEffect(()=>{const E=r.columns||[];if(E.length===0||!f){C(E);return}const A=E==null?void 0:E.filter(T=>!T.hidden).map(T=>T.dataIndex?{...T,width:b(T),onHeaderCell:D=>({width:D.width,resizeable:f,onResize:(R,{size:N})=>x(D,N)})}:T);A.length>0&&(A[A.length-1].minWidth=A[A.length-1].width,A[A.length-1].width=void 0),C(A)},[r.columns,c,l,f]);const x=(E,A)=>{C(T=>{const D=T==null?void 0:T.map(R=>R.dataIndex===E.dataIndex?{...R,width:A.width}:R);if(c){const R=jb(p)||{};R[c]=R[c]||{},D==null||D.forEach(N=>{if(N.dataIndex){const z=Array.isArray(N.dataIndex)?N.dataIndex.join("-"):String(N.dataIndex);R[c][z]=N.width}}),localStorage.setItem(p,JSON.stringify(R))}return D})},_={header:{cell:qB},...d==null?void 0:d.components},k=W.useMemo(()=>{var A;const E=T=>{let D=T.width||T.minWidth;return(!D||typeof D=="string")&&(D=l),D};return(A=m==null?void 0:m.map(T=>E(T)))==null?void 0:A.reduce((T,D)=>T+D,0)},[m,l]);return Be(en,{children:[t&&Q(y2,{hiddenTitle:!0,...t,items:t.items}),Q(me.Table,{scroll:{x:k},...d,components:_,columns:m,className:rs(YB.table,r==null?void 0:r.className),locale:{emptyText:Q(me.Empty,{image:me.Empty.PRESENTED_IMAGE_SIMPLE,description:g})},pagination:typeof(r==null?void 0:r.pagination)=="boolean"?r.pagination:{showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:E=>i==="10001"?`共 ${E} 条`:`Total ${E} items`,...r==null?void 0:r.pagination}})]})}const KB={editableCellValueWrap:"editable-module_editableCellValueWrap_3b3d9"},U6=W.createContext(null),WB=({index:e,...r})=>{const[t]=me.Form.useForm();return Q(me.Form,{form:t,component:!1,children:Q(U6.Provider,{value:t,children:Q("tr",{...r})})})};function QB(e){const{title:r,editable:t,children:i,dataIndex:l,record:f,rules:c,onChange:p,type:g="input",valueProps:d,initialValue:m,...C}=e,b=W.useRef(null),x=W.useContext(U6),_=async()=>{try{const A=await x.validateFields();p({...f,...A})}catch{}},k=()=>Q(s6,{valueType:g,valueProps:{...d,onBlur:_,onPressEnter:_},inputRef:b});let E=i;return t&&(E=Q(me.Form.Item,{style:{margin:0},initialValue:m||il.get(f,l),name:l,rules:c,children:k()})),Q("td",{...C,children:E})}function ZB(e){const{columns:r,onChange:t,...i}=e,l={body:{row:WB,cell:QB}},f=r==null?void 0:r.map(c=>c.editable?{...c,onCell:p=>({...c,record:p,onChange:t})}:c);return Q(me.Table,{...i,components:l,rowClassName:()=>KB.editableRow,columns:f})}const j6=e=>{const{auth:r=!0,...t}=e;return r?Q(me.Button,{...t}):null},XB=e=>{const{PId:r,auths:t,...i}=e,l=W.useMemo(()=>t?!!(typeof r=="number"&&t.find(f=>f.PId===r)||Array.isArray(r)&&t.filter(f=>r.includes(f.PId)).length>0):!1,[r,t]);return Q(j6,{...i,auth:l})},Kh={wrapper:"LoopSlide-module_wrapper_dde90",container:"LoopSlide-module_container_be123",scrollContent:"LoopSlide-module_scrollContent_36ed7",content:"LoopSlide-module_content_f392a"},JB=({speed:e=10,delay:r=1,timingFunction:t="linear",className:i="",style:l,children:f,height:c="100vh",mouseControl:p=!1,classes:g})=>{const d=W.useRef(null),m=W.useRef(null),C=W.useRef(null),b=W.useRef(null),x=W.useRef(0),_=W.useRef(),k=W.useRef(0),E=W.useMemo(()=>{if(!m.current||!C.current)return;const M=m.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());return Y*2-M.clientHeight<Y},[]),A=()=>{if(!m.current||!C.current)return;const M=m.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());if(Y*2<=M.clientHeight){M.style.animation="none";return}const B=Y/M.clientHeight;M.style.setProperty("--content-height",`${Y}px`),M.style.animationDuration=`${e*B}s`,M.style.animationDelay=`${r}s`,M.style.animationTimingFunction=t};W.useEffect(()=>(A(),m.current&&(b.current=new ResizeObserver(A),b.current.observe(m.current)),()=>{b.current&&m.current&&b.current.unobserve(m.current)}),[e,r]);const T=()=>{p&&m.current&&(m.current.style.animationPlayState="paused")},D=()=>{p&&m.current&&(z(),m.current.style.animationPlayState="running")},R=()=>{if(!m.current||!p)return;const I=m.current.getAnimations()[0];if(I)if(Math.abs(x.current)>.1){const Y=performance.now(),B=Y-k.current;k.current=Y;const P=.95;x.current*=Math.pow(P,B/16);const U=I.currentTime||0;I.currentTime=U+x.current,_.current=requestAnimationFrame(R)}else x.current=0,z()},N=M=>{if(!p||!m.current)return;M.preventDefault();const I=M.deltaY,Y=.25;x.current+=I*Y;const B=50;x.current=Math.max(-B,Math.min(B,x.current)),_.current||(k.current=performance.now(),_.current=requestAnimationFrame(R))},z=()=>{_.current&&(cancelAnimationFrame(_.current),_.current=void 0)};return W.useEffect(()=>()=>{z()},[]),W.useEffect(()=>{const M=d.current;if(M)return p&&M.addEventListener("wheel",N,{passive:!1}),()=>{M.removeEventListener("wheel",N)}},[p]),Q("div",{ref:d,className:`${Kh.wrapper} ${i}`,style:{height:c,...l},onMouseEnter:T,onMouseLeave:D,children:Be("div",{ref:m,className:rs(Kh.container,g==null?void 0:g.container),children:[Q("div",{ref:C,className:rs(Kh.content,g==null?void 0:g.content),children:f}),Q("div",{className:rs(Kh.content,g==null?void 0:g.content),children:f}),E&&Q("div",{className:rs(Kh.content,g==null?void 0:g.content),children:f})]})})},Pr={main:"workflownode-module_main_dce7f",item:"workflownode-module_item_73d7c",tail:"workflownode-module_tail_3cb51",node:"workflownode-module_node_005fd",content:"workflownode-module_content_8334f",btn:"workflownode-module_btn_b0c06",collpase:"workflownode-module_collpase_f2468",title:"workflownode-module_title_cb34c",dateWrapper:"workflownode-module_dateWrapper_94849",remark:"workflownode-module_remark_4f910",itemActive:"workflownode-module_itemActive_2a29d",itemDone:"workflownode-module_itemDone_489bc",itemUnDo:"workflownode-module_itemUnDo_2914c"},I6=e=>{const{data:r,current:t,rowKey:i,renderContent:l}=e,[f,c]=W.useState(!1),p=W.useMemo(()=>e.currentIndex!==void 0?e.currentIndex:!t||r.length===0?0:r.findIndex(C=>C.PNId===t),[t,r]),g=W.useMemo(()=>p>1?f?0:p-1:0,[p,f]),d=()=>{c(!0)};return Be("ul",{className:Pr.main,children:[p>1&&!f&&Be("li",{className:rs(Pr.item,Pr.itemDone),children:[Q("div",{className:Pr.tail}),Q("div",{className:Pr.node}),Q("div",{className:Pr.content,children:Be("div",{className:Pr.collpase,children:[Be("div",{children:["已收起",Q("span",{children:p-1}),"个节点"]}),Be("a",{className:Pr.btn,onClick:d,children:["展开节点",Q(F7,{})]})]})})]}),r.slice(g).map((m,C)=>Be("li",{className:rs(Pr.item,p===C+g?Pr.itemActive:p>C+g?Pr.itemDone:Pr.itemUnDo),children:[Q("div",{className:Pr.tail}),Q("div",{className:Pr.node}),Be("div",{className:Pr.content,children:[l?l(m,C,f?p:p-g):Be(en,{children:[Q("div",{className:Pr.title,children:m.PNName}),Be("div",{className:Pr.dateWrapper,children:[m.PlanFinishDate&&Be("span",{children:["预计完成时间: ",m.PlanFinishDate]}),m.UpdateTime&&Be("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",m.UpdateTime]})]}),m.Remark&&Q("div",{className:Pr.remark,children:m.Remark})]}),f&&p-1===C&&Be("a",{className:Pr.btn,onClick:()=>c(!1),children:["收起节点 ",Q(X7,{})]})]})]},typeof i=="string"?m[i]:i(m)))]})},eL=e=>{const{current:r,data:t,rowKey:i,renderContent:l,currentIndex:f,...c}=e;return(()=>{me.Modal.info({icon:null,title:"流程节点",width:700,content:Q(I6,{rowKey:i,renderContent:l,current:r,currentIndex:f,data:t}),closable:!0,footer:null,maskClosable:!0,...c})})(),null},H6={customPagination:"custom-pagination-module_customPagination_bb6f7",jumpBtns:"custom-pagination-module_jumpBtns_a6c0b"};function tL(e){const{totalText:r="共",unitText:t="条",jumpText:i="跳至",pageText:l="页",paginationProps:f}=e,[c,p]=W.useState(""),g=(f==null?void 0:f.pageSize)||10,d=b=>{p(b.target.value)},m=b=>{var x;p(""),!Number.isNaN(Number(b.target.value))&&((x=f==null?void 0:f.onChange)==null||x.call(f,Number(b.target.value),g))},C=b=>{var x;if(b.key==="Enter"){if(p(""),Number.isNaN(Number(c)))return;(x=f==null?void 0:f.onChange)==null||x.call(f,Number(c),g)}};return Be("div",{className:H6.customPagination,children:[Q(me.Pagination,{showTotal:b=>`${r} ${b} ${t}`,showSizeChanger:{options:[{label:`10 ${t}/${l}`,value:10},{label:`20 ${t}/${l}`,value:20},{label:`50 ${t}/${l}`,value:50},{label:`100 ${t}/${l}`,value:100}]},...f}),Be("div",{className:H6.jumpBtns,children:[i,Q(me.Input,{style:{width:"50px",margin:"0 8px"},value:c,onChange:d,onBlur:b=>m(b),onKeyDown:b=>C(b)}),l]})]})}var V6={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Pt,function(){var t=1e3,i=6e4,l=36e5,f="millisecond",c="second",p="minute",g="hour",d="day",m="week",C="month",b="quarter",x="year",_="date",k="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var K=["th","st","nd","rd"],ee=V%100;return"["+V+(K[(ee-20)%10]||K[ee]||K[0])+"]"}},D=function(V,K,ee){var J=String(V);return!J||J.length>=K?V:""+Array(K+1-J.length).join(ee)+V},R={s:D,z:function(V){var K=-V.utcOffset(),ee=Math.abs(K),J=Math.floor(ee/60),q=ee%60;return(K<=0?"+":"-")+D(J,2,"0")+":"+D(q,2,"0")},m:function V(K,ee){if(K.date()<ee.date())return-V(ee,K);var J=12*(ee.year()-K.year())+(ee.month()-K.month()),q=K.clone().add(J,C),te=ee-q<0,Z=K.clone().add(J+(te?-1:1),C);return+(-(J+(ee-q)/(te?q-Z:Z-q))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:C,y:x,w:m,d,D:_,h:g,m:p,s:c,ms:f,Q:b}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},N="en",z={};z[N]=T;var M="$isDayjsObject",I=function(V){return V instanceof U||!(!V||!V[M])},Y=function V(K,ee,J){var q;if(!K)return N;if(typeof K=="string"){var te=K.toLowerCase();z[te]&&(q=te),ee&&(z[te]=ee,q=te);var Z=K.split("-");if(!q&&Z.length>1)return V(Z[0])}else{var $=K.name;z[$]=K,q=$}return!J&&q&&(N=q),q||!J&&N},B=function(V,K){if(I(V))return V.clone();var ee=typeof K=="object"?K:{};return ee.date=V,ee.args=arguments,new U(ee)},P=R;P.l=Y,P.i=I,P.w=function(V,K){return B(V,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var U=function(){function V(ee){this.$L=Y(ee.locale,null,!0),this.parse(ee),this.$x=this.$x||ee.x||{},this[M]=!0}var K=V.prototype;return K.parse=function(ee){this.$d=function(J){var q=J.date,te=J.utc;if(q===null)return new Date(NaN);if(P.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var Z=q.match(E);if(Z){var $=Z[2]-1||0,ne=(Z[7]||"0").substring(0,3);return te?new Date(Date.UTC(Z[1],$,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ne)):new Date(Z[1],$,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ne)}}return new Date(q)}(ee),this.init()},K.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},K.$utils=function(){return P},K.isValid=function(){return this.$d.toString()!==k},K.isSame=function(ee,J){var q=B(ee);return this.startOf(J)<=q&&q<=this.endOf(J)},K.isAfter=function(ee,J){return B(ee)<this.startOf(J)},K.isBefore=function(ee,J){return this.endOf(J)<B(ee)},K.$g=function(ee,J,q){return P.u(ee)?this[J]:this.set(q,ee)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(ee,J){var q=this,te=!!P.u(J)||J,Z=P.p(ee),$=function(ye,De){var Pe=P.w(q.$u?Date.UTC(q.$y,De,ye):new Date(q.$y,De,ye),q);return te?Pe:Pe.endOf(d)},ne=function(ye,De){return P.w(q.toDate()[ye].apply(q.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(De)),q)},oe=this.$W,ae=this.$M,se=this.$D,ve="set"+(this.$u?"UTC":"");switch(Z){case x:return te?$(1,0):$(31,11);case C:return te?$(1,ae):$(0,ae+1);case m:var we=this.$locale().weekStart||0,ce=(oe<we?oe+7:oe)-we;return $(te?se-ce:se+(6-ce),ae);case d:case _:return ne(ve+"Hours",0);case g:return ne(ve+"Minutes",1);case p:return ne(ve+"Seconds",2);case c:return ne(ve+"Milliseconds",3);default:return this.clone()}},K.endOf=function(ee){return this.startOf(ee,!1)},K.$set=function(ee,J){var q,te=P.p(ee),Z="set"+(this.$u?"UTC":""),$=(q={},q[d]=Z+"Date",q[_]=Z+"Date",q[C]=Z+"Month",q[x]=Z+"FullYear",q[g]=Z+"Hours",q[p]=Z+"Minutes",q[c]=Z+"Seconds",q[f]=Z+"Milliseconds",q)[te],ne=te===d?this.$D+(J-this.$W):J;if(te===C||te===x){var oe=this.clone().set(_,1);oe.$d[$](ne),oe.init(),this.$d=oe.set(_,Math.min(this.$D,oe.daysInMonth())).$d}else $&&this.$d[$](ne);return this.init(),this},K.set=function(ee,J){return this.clone().$set(ee,J)},K.get=function(ee){return this[P.p(ee)]()},K.add=function(ee,J){var q,te=this;ee=Number(ee);var Z=P.p(J),$=function(ae){var se=B(te);return P.w(se.date(se.date()+Math.round(ae*ee)),te)};if(Z===C)return this.set(C,this.$M+ee);if(Z===x)return this.set(x,this.$y+ee);if(Z===d)return $(1);if(Z===m)return $(7);var ne=(q={},q[p]=i,q[g]=l,q[c]=t,q)[Z]||1,oe=this.$d.getTime()+ee*ne;return P.w(oe,this)},K.subtract=function(ee,J){return this.add(-1*ee,J)},K.format=function(ee){var J=this,q=this.$locale();if(!this.isValid())return q.invalidDate||k;var te=ee||"YYYY-MM-DDTHH:mm:ssZ",Z=P.z(this),$=this.$H,ne=this.$m,oe=this.$M,ae=q.weekdays,se=q.months,ve=q.meridiem,we=function(De,Pe,ke,ze){return De&&(De[Pe]||De(J,te))||ke[Pe].slice(0,ze)},ce=function(De){return P.s($%12||12,De,"0")},ye=ve||function(De,Pe,ke){var ze=De<12?"AM":"PM";return ke?ze.toLowerCase():ze};return te.replace(A,function(De,Pe){return Pe||function(ke){switch(ke){case"YY":return String(J.$y).slice(-2);case"YYYY":return P.s(J.$y,4,"0");case"M":return oe+1;case"MM":return P.s(oe+1,2,"0");case"MMM":return we(q.monthsShort,oe,se,3);case"MMMM":return we(se,oe);case"D":return J.$D;case"DD":return P.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return we(q.weekdaysMin,J.$W,ae,2);case"ddd":return we(q.weekdaysShort,J.$W,ae,3);case"dddd":return ae[J.$W];case"H":return String($);case"HH":return P.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return ye($,ne,!0);case"A":return ye($,ne,!1);case"m":return String(ne);case"mm":return P.s(ne,2,"0");case"s":return String(J.$s);case"ss":return P.s(J.$s,2,"0");case"SSS":return P.s(J.$ms,3,"0");case"Z":return Z}return null}(De)||Z.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(ee,J,q){var te,Z=this,$=P.p(J),ne=B(ee),oe=(ne.utcOffset()-this.utcOffset())*i,ae=this-ne,se=function(){return P.m(Z,ne)};switch($){case x:te=se()/12;break;case C:te=se();break;case b:te=se()/3;break;case m:te=(ae-oe)/6048e5;break;case d:te=(ae-oe)/864e5;break;case g:te=ae/l;break;case p:te=ae/i;break;case c:te=ae/t;break;default:te=ae}return q?te:P.a(te)},K.daysInMonth=function(){return this.endOf(C).$D},K.$locale=function(){return z[this.$L]},K.locale=function(ee,J){if(!ee)return this.$L;var q=this.clone(),te=Y(ee,J,!0);return te&&(q.$L=te),q},K.clone=function(){return P.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},V}(),H=U.prototype;return B.prototype=H,[["$ms",f],["$s",c],["$m",p],["$H",g],["$W",d],["$M",C],["$y",x],["$D",_]].forEach(function(V){H[V[1]]=function(K){return this.$g(K,V[0],V[1])}}),B.extend=function(V,K){return V.$i||(V(K,U,B),V.$i=!0),B},B.locale=Y,B.isDayjs=I,B.unix=function(V){return B(1e3*V)},B.en=z[N],B.Ls=z,B.p={},B})})(V6);const hn=V6.exports,Wh=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Dc=e=>{var i,l,f,c;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default);if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t==null?void 0:t.split("~"),t=t.map(p=>p)}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(p=>hn())}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const p=(c=e.json)==null?void 0:c["cascader-delimiter"];p&&(t=t.split(p).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return e.attrtype===1&&(t=nL(e.children||[])),t||null},$6=e=>e&&e<hn().startOf("day"),Y6=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},nL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)},Qh=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c})=>{var m;let p=[];const g=async C=>{var x;let b=[];if(c.classify)try{const _=await r(C,{asctypeid:c.classify});(x=_==null?void 0:_.data)!=null&&x.list&&Array.isArray(_.data.list)&&(b=_.data.list.map(k=>({label:`${k.dicid||""}-${k.info||""}`,value:`${k.dicid||""}-${k.info||""}`})))}catch{me.message.error("加载选项失败")}return b},d=async()=>{var C,b;try{const x=((C=c==null?void 0:c["key-field"])==null?void 0:C.list)||[],_=((b=c==null?void 0:c["key-field"])==null?void 0:b.delimiter)||"",k=c==null?void 0:c["field-names"];if(!x.length){me.message.error("请配置key-field");return}const E=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(E!=null&&E.data){const A=E==null?void 0:E.data,T=(A==null?void 0:A.list)||[];let D=[];Array.isArray(A)&&(D=A),Array.isArray(T)&&(D=T),k?p=D:p=D.map(R=>({label:Y6(R,_,x),value:Y6(R,_,x)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(p=((m=c.data)==null?void 0:m.map(C=>({label:C,value:C})))||[],c.options&&Array.isArray(c.options)&&(p=c.options)):c.inputType==="dictionary"?p=await g(t):c.inputType==="system-dictionary"&&(p=await g(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await d(),p};function uu(e){try{return JSON.parse(e)}catch{return{}}}function Zh(e){if(!q6(e))return e;const r=atob(e),t=new Uint8Array(r.length);for(let i=0;i<r.length;i++)t[i]=r.charCodeAt(i);return new TextDecoder().decode(t)}function q6(e){return e?e.length%4!==0?!1:/^[A-Za-z0-9+/]+(?:=?=?)$/.test(e):!0}const rL=(e,r)=>{var b;let t=il.cloneDeep(e);const{attr_list:i=[]}=t,{isMobile:l=!1,guid:f,isListToObj:c=!1,isAutoFill:p=!0,onlyNumber:g=""}=e;let d=[];p&&((b=t==null?void 0:t.attr_list)==null||b.forEach(x=>{var _,k,E,A,T,D;(_=x==null?void 0:x.json)!=null&&_["auto-generate"]&&((k=x==null?void 0:x.json)!=null&&k["auto-generate-type"])&&(((E=x==null?void 0:x.json)==null?void 0:E["auto-generate-type"])==="currenttime"&&(x.attrvalue=hn().format("YYYY-MM-DD HH:mm:ss")),((A=x==null?void 0:x.json)==null?void 0:A["auto-generate-type"])==="guid"&&(x.attrvalue=g||f||"")),(T=x==null?void 0:x.json)!=null&&T.default&&(x.attrvalue=(D=x==null?void 0:x.json)==null?void 0:D.default)}));const m=(x,_)=>{try{const k=new Map(x.map((E,A)=>[E.attrid,A]));for(const[E,A]of Object.entries(_)){const T=k.get(E);if(T===void 0)continue;let D=x[T];if(!A&&A!==0){D.attrvalue="";continue}D=C(D,A,l)}x.forEach(E=>{E.children&&Array.isArray(E.children)&&E.children.length>0&&!Array.isArray(E.children[0])&&_[E.attrid]&&m(E.children,_[E.attrid]),E.children&&Array.isArray(E.children)&&E.children.length>0&&Array.isArray(E.children[0])&&E.children.forEach((A,T)=>{var D,R;A&&Array.isArray(A)&&((D=_==null?void 0:_[E.attrid])!=null&&D[T])&&m(A,(R=_==null?void 0:_[E.attrid])==null?void 0:R[T])})})}catch{}},C=(x,_,k)=>{var T,D,R,N;const E=(T=x.json)==null?void 0:T.input,A=(D=x.json)==null?void 0:D.format;switch(E){case"image":case"file":case"video":case"audio":const z=typeof _=="string"?JSON.parse(_):_;if(!Array.isArray(z)){x.attrvalue=JSON.stringify([]);return}const M=z.filter(B=>B.FileId),I=z.filter(B=>{var P;return B.status==="done"&&((P=B.response)==null?void 0:P.data)}).map(B=>B.response.data),Y=[...M,...I];d=[...d,...I],x.attrvalue=JSON.stringify(Y);break;case"cascader":if(Array.isArray(_)&&_.length>0){const B=((R=x.json)==null?void 0:R["cascader-delimiter"])||"/";x.attrvalue=_.join(B)}else x.attrvalue="";break;case"range-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>hn(B).format(A||"YYYY-MM-DD")).join("~"):x.attrvalue="":Array.isArray(_)&&_.length>0?x.attrvalue=_.join("~"):x.attrvalue="";break;case"multiple-date-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>hn(B).format(A||"YYYY-MM-DD")).join(","):x.attrvalue=_:Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"checkbox":case"mult-select":Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"date-picker":_?x.attrvalue=hn(_).format(A||"YYYY-MM-DD"):x.attrvalue="";break;case"time-picker":_?x.attrvalue=hn(_).format(A||"YYYY-MM-DD HH:mm:ss"):x.attrvalue="";break;default:(N=x==null?void 0:x.json)!=null&&N["properties-multiple"]||(x.attrvalue=_);break}return x};return t.attr_list&&Array.isArray(t.attr_list)&&m(i,r),{updatedData:c?Q6(t.attr_list||[]):t,uploadedFiles:d}},H2=(e,r)=>e.map(t=>{var f,c,p;const i=G6(t,r),{children:l}=i;if(l&&!Array.isArray(l==null?void 0:l[0])&&(l!=null&&l.length)&&(i.children=[H2(l)]),i!=null&&i.children&&Array.isArray((f=i==null?void 0:i.children)==null?void 0:f[0])&&((c=i==null?void 0:i.children)!=null&&c.length)){const g=(p=i==null?void 0:i.children)==null?void 0:p.map(d=>d==null?void 0:d.map(m=>G6(m,r)));i.children=g}return i}),G6=(e,r)=>{var t,i;if(!e.json&&e.info)try{const l=e.info_base64===1?Zh(e.info):e.info,f=uu(l),c=il.cloneDeep(r)||{},{langConfig:p=[],attrLangConfig:g=[]}=c||{};return c==null||delete c.langConfig,p!=null&&p.length&&((t=f==null?void 0:f.data)!=null&&t.length)&&(f==null?void 0:f.inputType)==="local"&&(f.options=(i=f.data)==null?void 0:i.map(d=>({label:Ji(p,d),value:d})),f==null||delete f.data),p!=null&&p.length&&(f!=null&&f["combination-name"])&&(f["combination-name"]=Ji(g,f["combination-name"])||Ji(p,f["combination-name"])),p!=null&&p.length&&(f!=null&&f["default-prompt"])&&(f["default-prompt"]=Ji(g,f["default-prompt"])),p!=null&&p.length&&(f!=null&&f.instruction)&&(f.instruction=Ji(g,f.instruction)),p!=null&&p.length&&(f!=null&&f["regexp-message"])&&(f["regexp-message"]=Ji(g,f["regexp-message"])),{...e,json:f,...c,info:JSON.stringify(f)}}catch{return{...e,json:{},...r}}return{...e,...r}},K6=(e,r)=>H2(e,r),W6=(e,r)=>{const t=H2(e,r),i=t.filter(c=>{var p;return(p=c.json)==null?void 0:p.combination}).reduce((c,p)=>{const g=p.json["combination-id"];return g&&(c[g]||(c[g]=[]),c[g].push(p)),c},{}),l=new Set;Object.values(i).forEach(c=>{(c==null?void 0:c.length)!==0&&c.slice(1).forEach(p=>l.add(p.attrid))});const f=c=>c.filter(p=>!l.has(p.attrid)).map(p=>{var m;const g=(m=p.json)==null?void 0:m["combination-id"];if(g&&i[g]){const C={...p,json:{...p.json,combinations:i[g]}},{children:b}=C;return b&&Array.isArray(b==null?void 0:b[0])&&(b!=null&&b.length)&&(C.children=b==null?void 0:b.map(x=>f(x))),C}const{children:d}=p;return d&&Array.isArray(d==null?void 0:d[0])&&(d!=null&&d.length)&&(p.children=d==null?void 0:d.map(C=>f(C))),p});return f(t)},aL=async({number:e,key:r,sourceNumber:t,guidInterfaceName:i,SelPCParamInterfaceName:l,servicerAttrListInterfaceName:f,accepterAttrListInterfaceName:c,defaultAttrListInterfaceName:p,commonRequest:g,guidParams:d,pcParam:m,attrReqKey:C="asid",attrListExtraParams:b={}})=>new Promise(async(x,_)=>{var N,z,M,I;let k="",E=[],A={},T={};const D=await g(i||"FWDXGLCreateGUID",d||{"source-number":t});(D==null?void 0:D.ReturnValue)===1&&((N=D==null?void 0:D.data)!=null&&N.GUID)?k=D.data.GUID:_("获取GUID失败");const R=await g(l||"FWDXGLSelPCParam",m||{"source-number":t});if((R==null?void 0:R.ReturnValue)===1){const Y=(z=R.data[e])==null?void 0:z[r],B=(M=R.data[e])==null?void 0:M["properties-type"],P={server:f||"",accepter:c||""};T=R.data;const U=await g(P[B]||p,{[C]:Y,"source-number":t,...b});if((U==null?void 0:U.ReturnValue)===1&&U.data){const H=((I=U.data)==null?void 0:I.attr_list)||[];E=W6(H),A={...U.data,attr_list:E},x({baseData:A,newGUID:k,attrListConfigs:E,selPCParam:T})}else _("请配置属性集")}else _("获取配置失败")}),iL=async(e,r,t)=>await t(e,r);function oL(e){return e.replace(/-([a-z])/g,function(r,t){return t.toUpperCase()})}const Q6=e=>{var l;function r(f){const c={};return f.forEach(p=>{var d,m,C,b,x,_,k;const g=`${p.attrid}_${p.attrtype}`;if(p.attrtype===1&&p.children.length>0&&!Array.isArray(p.children))c[g]={asid:((m=(d=p.children)==null?void 0:d[0])==null?void 0:m.asid)||"",data_list:[r(p.children)]};else if(p.attrtype===1&&p.children.length>0&&Array.isArray(p.children)){let{children:E=[],attrvalue:A}=p||{};A&&(A!=null&&A.length)&&Array.isArray(A)?E=A.map(T=>{var N,z,M,I;const D=(N=Object.values(T))==null?void 0:N.findIndex(Y=>Array.isArray(Y)),R=((z=Object.keys(T))==null?void 0:z[D])||"";if(R){const Y=((M=E==null?void 0:E[0])==null?void 0:M.find(P=>P.attrid===R))||{},{input:B}=(Y==null?void 0:Y.json)||{};if(["file","image","video","audio"].includes(B)){const P=((I=Object.values(T))==null?void 0:I[D])||[],U=P.filter(K=>K.FileId),H=P.filter(K=>{var ee;return K.status==="done"&&((ee=K.response)==null?void 0:ee.data)}).map(K=>K.response.data),V=[...U,...H];T[R]=V}}return J6((E==null?void 0:E[0])||[],T)}):(p.childAsid=((b=(C=E==null?void 0:E[0])==null?void 0:C[0])==null?void 0:b.asid)||"",E=[[]]),E!=null&&E.length&&Array.isArray(E==null?void 0:E[0])&&(c[g]={asid:((_=(x=E==null?void 0:E[0])==null?void 0:x[0])==null?void 0:_.asid)||p.childAsid||"",data_list:(E==null?void 0:E.length)&&((k=E==null?void 0:E[0])==null?void 0:k.length)&&E.map(T=>r(T))||[]})}else c[g]=p.attrvalue}),c}const t=((l=e[0])==null?void 0:l.asid)||"",i=[r(e)];return{data:{asid:t,data_list:i}}},Z6=async({attrList:e,params:r,extra:t={},commonRequest:i})=>{var p;const l=await i("YLFWLRDataDetails",r),f=((p=l==null?void 0:l.data)==null?void 0:p.list)||[];return f.length?await Promise.all(f.map(async g=>await Promise.all((e==null?void 0:e.map(async m=>{const C={...m,...t};if(C.attrvalue=(g==null?void 0:g[m.attrid])||"",m.attrtype===1&&Array.isArray(m.children)&&m.children.length>0){const b=(g==null?void 0:g[m.attrid])||{};C.children=await Z6({attrList:m.children,params:b,extra:t,commonRequest:i})}return C}))||[])))||[]:e.map(g=>({...g,...t,attrvalue:"",children:[]}))},kc=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},Ji=(e,r)=>{const t=e.find(i=>(i==null?void 0:i.dataid)===r);return(t==null?void 0:t.content)??r},X6=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c,langConfig:p=[]})=>{var C;let g=[];const d=async b=>{var _;let x=[];if(c.classify)try{const k=await r(b,{asctypeid:c.classify});(_=k==null?void 0:k.data)!=null&&_.list&&Array.isArray(k.data.list)&&(x=k.data.list.map(E=>({label:`${E.dicid||""}-${E.info||""}`,value:`${E.dicid||""}-${E.info||""}`})))}catch{me.message.error("加载选项失败")}return x},m=async()=>{var b,x;try{const _=((b=c==null?void 0:c["key-field"])==null?void 0:b.list)||[],k=((x=c==null?void 0:c["key-field"])==null?void 0:x.delimiter)||"",E=c==null?void 0:c["field-names"];if(!_.length){me.message.error("请配置key-field");return}const A=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(A!=null&&A.data){const T=A==null?void 0:A.data,D=(T==null?void 0:T.list)||[];let R=[];Array.isArray(T)&&(R=T),Array.isArray(D)&&(R=D),E?g=R:g=R.map(N=>({label:kc(N,k,_),value:kc(N,k,_)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(g=((C=c.data)==null?void 0:C.map(b=>({label:Ji(p,b),value:b})))||[],c.options&&Array.isArray(c.options)&&(g=c.options)):c.inputType==="dictionary"?g=await d(t):c.inputType==="system-dictionary"&&(g=await d(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await m(),g},J6=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),lL=Object.freeze(Object.defineProperty({__proto__:null,getJson:uu,base64ToString:Zh,isBase64:q6,handleSubmitForm:rL,handleBaseAttrList:K6,handleAttrList:W6,handleFormConfig:aL,handleOperationFile:iL,handleKebabToCamel:oL,handleAttrListToObj:Q6,handleAttrListToObjDetail:Z6,handleUrlOptions:kc,getTitle:Ji,handleSelectOptions:X6,handleObjDetailToSignleAttrList:J6},Symbol.toStringTag,{value:"Module"})),eD=async(e,r,t)=>{var i;try{const l=await r(t||"SERATTALLList",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.attr_list)||[]:[]}catch{}},sL=async(e,r,t)=>{var i;try{const l=await r(t||"YLFWLRDataDetails",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.list)||[]:[]}catch{}},uL=async(e,r,t)=>{var l;const i={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"};try{const f=await r(t||i,e);return(f==null?void 0:f.ReturnValue)===1?((l=f==null?void 0:f.data)==null?void 0:l.list)||[]:[]}catch{}},cL=async({params:e,commonRequestWidthParams:r,requestParams:t})=>{const i={PageName:"PCInstanceData",Controlname:"DataProcess"};try{return await r(t||i||{},e)}catch{}},fL=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),tD=(e,r,t)=>({style:{backgroundColor:r!==void 0&&r%2===1?(t==null?void 0:t[0])||"var(--bg-color-2)":(t==null?void 0:t[1])||"var(--bg-color-3)"}}),dL=Object.freeze(Object.defineProperty({__proto__:null,handleGetAttrList:eD,handleGetAttrDetail:sL,handleGetList:uL,handleCallSupportCode:cL,handleObjDetailToSignleAttrList:fL,handleSetTableRowColor:tD,handleFormatMobileDate:(e,r="YYYY-MM-DD")=>(Object.entries(il.cloneDeep(e)).forEach(([t,i])=>{Array.isArray(i)&&i.length>0&&i[0]instanceof Date&&(e[t]=i.map(l=>hn(l).format(r))),i instanceof Date&&(e[t]=hn(i).format(r))}),e)},Symbol.toStringTag,{value:"Module"})),hL=(e,r)=>{const t=new URL(e),i=new URL(r);return t.protocol===i.protocol&&t.host===i.host&&t.port===i.port},pL=e=>{const r=String(e).split("/");return r[r.length-1]},vL=e=>{var t;return(t=e.headers.get("content-disposition"))==null?void 0:t.split(";")[1].split("=")[1]},nD=(e,r)=>{const t=r||pL(e);if(hL(e,window.location.href)){V2(e,t);return}let i=r;fetch(e,{method:"get"}).then(l=>(i||(i=vL(l)),l.blob())).then(l=>{rD(l,i||t)}).catch(()=>{V2(e,"")})},mL=e=>{for(var r=e.split(","),t=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]),l=i.length,f=new Uint8Array(l);l--;)f[l]=i.charCodeAt(l);return new Blob([f],{type:t})},rD=(e,r)=>{let t="";e instanceof Blob?t=window.URL.createObjectURL(e):t=window.URL.createObjectURL(mL(e));const i=window.navigator;if(i.msSaveOrOpenBlob){i.msSaveOrOpenBlob(e,r);return}V2(t,r),window.URL.revokeObjectURL(t)},V2=(e,r)=>{let t=document.createElement("a");t.style.display="none",t.href=e,t.target="_blank",t.download=r,document.body.appendChild(t),t.click(),document.body.removeChild(t)},gL=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:nD,downloadBlob:rD},Symbol.toStringTag,{value:"Module"}));function $2(){const{message:e,modal:r}=me.App.useApp(),t={},i=async({selListData:C,handleSearch:b,handleReset:x,detail:_,styles:k,attributeSetId:E,commonRequest:A,commonRequestWidthParams:T,getTitle:D,searchText:R="搜索",resetText:N="重置",langConfig:z=[]})=>{var M;try{C!=null&&C.length&&_&&C.forEach(V=>{var ee;const K=((ee=V["default-render-data"])==null?void 0:ee.key)||"";K&&(V.attrvalue=(_==null?void 0:_[K])||"")});const I=C.filter(V=>{var K;return((K=V.renderdata)==null?void 0:K.input)!=="tab"&&!(V!=null&&V["default-render-data"])}),Y=I.filter(V=>{var K;return["select","checkbox","radio","mult-select","cascader"].includes((K=V.renderdata)==null?void 0:K.input)});let B=[];if(Y!=null&&Y.length)if((M=t[E])!=null&&M.length)B=t[E];else{const V=await eD({asid:E},A);B=K6(V)||[],t[E]=B||[]}const P=await Promise.all(I.map(async V=>{var ne;const K=V.renderdata||{},{input:ee,width:J}=K||{},q=(K==null?void 0:K["label-col"])||6,te=()=>{const oe=K["default-prompt"];if(D){if(typeof oe=="string"){const ae=D(E||"",oe),se=m(ae);return ee==="range-picker"&&oe&&se?JSON.parse(ae):ae}}else return oe||""};let Z="input";switch(ee){case"range-picker":Z="rangePicker";break;case"number":Z="inputNumber";break;case"select":case"checkbox":case"radio":case"textarea":Z=ee;break;case"mult-select":Z="select";break;case"time-picker":Z="timePicker";break;case"date-picker":Z="datePicker";break;case"cascader":Z="cascader";break;default:Z="input";break}const $={dataIndex:V.attrid,title:V.attrname||"",valueType:Z,valueProps:{placeholder:te()},colProps:{},formItemProps:{style:{marginBottom:10,width:typeof J=="string"?`${J}px`:J||240},labelCol:{span:q}}};if(["select","checkbox","radio","mult-select","cascader"].includes(ee)){const oe=V.attrid||"",ae=B.find(we=>we.attrid===oe);let se=(ae==null?void 0:ae.json)||{};!(se!=null&&se.inputType)&&(K!=null&&K["input-type"])&&(se={...se,inputType:K==null?void 0:K["input-type"],"action-url":K==null?void 0:K["action-url"],"field-names":K==null?void 0:K["field-names"],"key-field":{...K==null?void 0:K["key-field"]}});let ve=await X6({item:se||{},commonRequest:A,commonRequestWidthParams:T,langConfig:z||[]});if(!(ve!=null&&ve.length)){const{data:we=[]}=K||{};we!=null&&we.length&&(ve=we==null?void 0:we.map(ce=>({label:ce||"",value:ce||""}))),(ne=K==null?void 0:K.options)!=null&&ne.length&&(ve=(K==null?void 0:K.options)||[])}if(ee==="cascader"){const we=d(ve,K==null?void 0:K["field-names"]);$.valueProps.options=we||[]}else $.valueProps.options=ve||[]}return $}));let U={color:"#ffffff",borderRadius:4,fontSize:14,height:32},H={color:"#333333",borderRadius:4,fontSize:14,height:32,borderColor:"#D9D9D9"};return C!=null&&C.length&&P.push({dataIndex:"btns",valueType:"btns",valueProps:[{btnType:"submit",title:R,type:"primary",shape:"default",style:{...U,...k==null?void 0:k.searchStyle},onClick:V=>b(V,C)},{btnType:"reset",title:N,style:{...H,...k==null?void 0:k.resetStyle},onClick:()=>x(C)}],colProps:{flex:"none"},formItemProps:{style:{marginBottom:10,minWidth:127}}}),{formItems:P,selList:C,attrList:B}}catch{return{formItems:[],selList:[],attrList:[]}}},l=({universalHeader:C,extraBtn:b,operationColumnConfig:x,attributeSetId:_,getTitle:k,downloadText:E="下载",isDefaultWidth:A=!0,otherLangPageId:T,objDefaultLangPageId:D="5000000"})=>{if(!(C!=null&&C.length))return e.error("请配置 universalHeader表头数据");const R=f(C),N=R==null?void 0:R.map(z=>{const M={title:_?(k==null?void 0:k(_,z==null?void 0:z["header-attribute-id"]))||"":(z==null?void 0:z["header-name"])||"",dataIndex:(z==null?void 0:z["header-attribute-id"])||"",width:A?(z==null?void 0:z["header-width"])||180:void 0,render:(B,P)=>{var U,H;if(B&&B&&typeof B=="string"&&(B!=null&&B.includes("FileName"))&&(B!=null&&B.includes("FilePath"))){try{const V=JSON.parse(B);return V!=null&&V.length?Q(me.Flex,{vertical:!0,children:V==null?void 0:V.map(K=>{const{FileName:ee,FilePath:J}=K||{};return Be(me.Space,{children:[Q("span",{children:ee}),Q(me.Button,{type:"link",size:"small",onClick:()=>nD(J),children:E})]})})}):"-"}catch{}return Q(me.Space,{})}if(z!=null&&z["show-lang-data-id"]&&T){if(B&&B&&typeof B=="object"&&((U=Object.keys(B))!=null&&U.includes("delimiter"))){const{list:V,delimiter:K=","}=B||{},ee=V==null?void 0:V.map(J=>{const q=(J==null?void 0:J.split("|"))||[],te=(q==null?void 0:q.length)>1?q[0]:D,Z=(q==null?void 0:q.length)>1?q[1]:q[0];return k==null?void 0:k(te,Z)});return Q("span",{dangerouslySetInnerHTML:{__html:((H=ee==null?void 0:ee.join(K))==null?void 0:H.replace(/br/g,"<br>"))||"-"}})}return Q(me.Tooltip,{title:B,children:Q("span",{style:{cursor:"pointer"},children:k==null?void 0:k(T,B??"-")})})}return B??"-"}},I=z==null?void 0:z["header-mul-attribute-id"],Y=z==null?void 0:z["show-btn"];return I&&I.list&&Array.isArray(I.list)?M.render=(B,P)=>{const{list:U,delimiter:H=","}=I,V=U.map(ee=>ee?P[ee]??"":"").filter(ee=>ee!==""),K=(V==null?void 0:V.join(H))??"-";return Y&&b?Be(en,{children:[K??"-",b==null?void 0:b(P,K,z)]}):K||"-"}:Y&&b&&(M.render=(B,P)=>{const U=P[M.dataIndex]||"";return Be(en,{children:[U||"-",b(P,U,z)]})}),M});return x&&(N!=null&&N.length)&&N.push(x),N},f=C=>C.slice().sort((b,x)=>{const _=typeof b["header-number"]=="number"?b["header-number"]:1/0,k=typeof x["header-number"]=="number"?x["header-number"]:1/0;return _-k}),c=async({commonRequest:C,refresh:b,interfaceType:x="YLFWLRInstanceDelete",record:_,configData:k,title:E,okText:A,cancelText:T,getTitle:D,pageID:R,deleteItem:N,okType:z="primary",cancelType:M="default"})=>{var I,Y;try{let B=(k==null?void 0:k["must-attrid"])||[];const P=(N==null?void 0:N["source-number"])||(N==null?void 0:N.sourceNumber)||"";if(!(B!=null&&B.length)&&P){const V=await C("YLKHDSelPCParam",{"source-number":Number(P)});V&&V.ReturnValue===1&&V.data&&(B=((Y=(I=V.data)==null?void 0:I[P])==null?void 0:Y["must-attrid"])||[])}if(!(B!=null&&B.length)){e.error("请先配置must-attrid");return}const U={};for(const[V,K]of Object.entries(_))B.includes(V)&&(U[V]=K);const H={instanceid:_==null?void 0:_.instanceid,asid:_==null?void 0:_.asid,...U};r.confirm({title:E||(N==null?void 0:N.title)||"",icon:null,okButtonProps:{type:z},cancelButtonProps:{type:M},okText:A||"",cancelText:T||"",onOk:()=>new Promise(async(V,K)=>{const ee=await C(x,H),J=D&&D(R||"",ee==null?void 0:ee["msg-code"])||(ee==null?void 0:ee.msg);(ee==null?void 0:ee.ReturnValue)===1?(e.success(J),b(),V(ee)):(e.error(J||"删除失败"),K(ee))})})}catch{}},p=({values:C,currentSelList:b,currentActive:x,onSearch:_,tabItems:k})=>{const A={"sel-list":b.map(T=>{var M,I;const{input:D,inputType:R}=(T==null?void 0:T.renderdata)||{};if(D==="tab"&&(R!=null&&R.startsWith("local-"))&&(k!=null&&k.length)&&(x||x===0)){const Y=b.find(V=>D==="tab"&&(R==null?void 0:R.startsWith("local-"))),B=k[x],P=((M=Y==null?void 0:Y.renderdata["key-field"])==null?void 0:M.list)||[],U=((I=Y==null?void 0:Y.renderdata["key-field"])==null?void 0:I.delimiter)||"-",H=P==null?void 0:P.map(V=>B[V]||"").join(U);return{...T,attrvalue:H}}const N=C[T.attrid];let z;return N!=null&&(D==="cascader"&&Array.isArray(N)?z=N.join("|"):Array.isArray(N)&&["range-picker"].includes(D)?z=N.map(Y=>{var B;return((B=Y==null?void 0:Y.format)==null?void 0:B.call(Y,"YYYY-MM-DD"))||Y}).join("~"):Array.isArray(N)?z=N:z=String(N)),{...T,attrvalue:z}}),...C};_(A)},g=({currentSelList:C,tabItems:b,currentActive:x,onSearch:_,setSelList:k})=>{const E=C.map(A=>{var T,D,R,N,z;if(((T=A.renderdata)==null?void 0:T.input)==="tab"&&(b!=null&&b.length)&&(x||x===0)){if((R=(D=A.renderdata)==null?void 0:D.inputType)!=null&&R.startsWith("local-")){const M=C.find(U=>{var H,V,K;return((H=U.renderdata)==null?void 0:H.input)==="tab"&&((K=(V=U.renderdata)==null?void 0:V.inputType)==null?void 0:K.startsWith("local-"))}),I=b[x],Y=((N=M==null?void 0:M.renderdata["key-field"])==null?void 0:N.list)||[],B=((z=M==null?void 0:M.renderdata["key-field"])==null?void 0:z.delimiter)||"-",P=Y==null?void 0:Y.map(U=>(I==null?void 0:I[U])||"").join(B);return{...A,attrvalue:P}}return A}return{...A,attrvalue:""}});k(E),_({"sel-list":E})},d=(C,b)=>{const{label:x,value:_,children:k}=b,E=A=>A.map(T=>{const D={label:T[x],value:T[_],children:[]};return Array.isArray(T[k])&&T[k].length>0&&(D.children=E(T[k])),D});return E(C)},m=C=>{if(typeof C!="string")return!1;try{const b=JSON.parse(C);return Array.isArray(b)}catch{return!1}};return{handleUniversalHeaderToColumns:l,handleSelListToFormItems:i,handleUniversalDelete:c,handleUniversalSearch:p,handleUniversalReset:g,isArrayString:m}}function yL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:p,form:g,langId:d,getTitle:m}=e,C=me.Form.useWatch(p,g),{message:b}=me.App.useApp(),x=r.input,[_,k]=W.useState(e.value),[E,A]=W.useState(!1),[T,D]=W.useState([]),[R,N]=W.useState([]),[z,M]=W.useState(!1),[I,Y]=W.useState({PageNum:1,PageSize:6}),[B,P]=W.useState([]),[U,H]=W.useState(0),[V,K]=W.useState(ne()),{handleUniversalHeaderToColumns:ee}=$2();W.useEffect(()=>{E&&q()},[E,I]);const J=(ae,se)=>{D(ae),N(se)},q=async()=>{var ae,se,ve,we,ce;if(r.inputType==="url"&&(r!=null&&r["action-url"])){M(!0);try{const ye=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...I,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ye==null?void 0:ye.ReturnValue)===0){b.error(ye.msg),M(!1);return}const De=ye==null?void 0:ye.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map((ze,Ne)=>{const dt=(I.PageNum-1)*I.PageSize+Ne;return{...ze,_rowKey:dt}}),ke=(Pe==null?void 0:Pe.filter(ze=>T.includes(ze._rowKey)))||[];N(ke),P([...Pe||[]]),H((De==null?void 0:De.number)||0),M(!1)}catch{M(!1)}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ye={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...I};try{const Pe=await l(ye,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const ze=(ve=((se=Pe==null?void 0:Pe.data)==null?void 0:se.list)||[])==null?void 0:ve.map((Ne,dt)=>{const Xe=(I.PageNum-1)*I.PageSize+dt;return{...Ne,_rowKey:Xe}});H(((we=Pe==null?void 0:Pe.data)==null?void 0:we.number)||0),P([...ze])}const ke=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ke==null?void 0:ke.ReturnValue)===1){const ze=(ce=ke==null?void 0:ke.data)==null?void 0:ce[r==null?void 0:r["instance-source-number"]],Ne=(ze==null?void 0:ze["universal-header"])||[],dt=(ze==null?void 0:ze["attribute-set-id"])||"",Xe=ee({universalHeader:Ne,attributeSetId:dt,getTitle:m,otherLangPageId:"5000000"})||[];K([...Xe])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error")},te=()=>{var ae;if(!t){if(_){const se=r==null?void 0:r["key-field"],ve=se==null?void 0:se[p],{delimiter:we="-",list:ce=[]}=ve||{};if(!se){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ye=(ae=_==null?void 0:_.split(we))==null?void 0:ae[0],De=B==null?void 0:B.findIndex(ze=>Object.values(ze).includes(ye));D([De]);break;case"modal-mult-select":const Pe=_==null?void 0:_.split(","),ke=Pe==null?void 0:Pe.map(ze=>{var dt;const Ne=(dt=ze.split(we))==null?void 0:dt[0];return B==null?void 0:B.findIndex(Xe=>Ne.includes((Xe==null?void 0:Xe.typeid)||(Xe==null?void 0:Xe.instanceid)))});D(ke);break}}A(!0)}},Z=async()=>{try{const ae=await xL(R,r,d);k((ae==null?void 0:ae[p])||""),e.onSure(ae),A(!1)}catch(ae){b.error(ae.msg||"参数错误")}},$=()=>{Y({...I,PageNum:1}),A(!1)};function ne(){const ae=r["modal-field-list"];if(!ae)return[];let se=[];for(let ve in ae){let we=ae[ve];const ce={dataIndex:ve,title:we};se=[...se,ce]}return se}const oe=ae=>{Y({...I,PageNum:ae})};return Be(en,{children:[Q(me.Select,{placeholder:Wh({json:r},d),onClick:te,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:E,onOk:Z,onCancel:$,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:J},pagination:{total:U,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:E,onOk:Z,onCancel:$,width:r["modal-width"]??600,okButtonProps:{disabled:T.length===0},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:J},pagination:{total:U,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})]})}function xL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}let c={};e.forEach(p=>{for(let[g,d]of Object.entries(f)){const m=(d==null?void 0:d.list)??[],C=(d==null?void 0:d.delimiter)??"-",b=m.map(x=>p==null?void 0:p[x]);c[g]=b.join(C)}}),i(c)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}var aD={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Pt,function(){var t="day";return function(i,l,f){var c=function(d){return d.add(4-d.isoWeekday(),t)},p=l.prototype;p.isoWeekYear=function(){return c(this).year()},p.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),t);var m,C,b,x,_=c(this),k=(m=this.isoWeekYear(),C=this.$u,b=(C?f.utc:f)().year(m).startOf("year"),x=4-b.isoWeekday(),b.isoWeekday()>4&&(x+=7),b.add(x,t));return _.diff(k,"week")+1},p.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var g=p.startOf;p.startOf=function(d,m){var C=this.$utils(),b=!!C.u(m)||m;return C.p(d)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):g.bind(this)(d,m)}}})})(aD);const iD=aD.exports;function bL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:p}=me.App.useApp(),g=r.input,[d,m]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=K();W.useEffect(()=>{C&&P()},[C,D]);const B=(J,q)=>{_(J),E(q)},P=async()=>{var J;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const q=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if((q==null?void 0:q.ReturnValue)===0){p.error(q.msg),T(!1);return}const te=q==null?void 0:q.data,Z=(J=te==null?void 0:te.list)==null?void 0:J.map((ne,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...ne,_rowKey:ae}}),$=(Z==null?void 0:Z.filter(ne=>x.includes(ne._rowKey)))||[];E($),z([...Z||[]]),I((te==null?void 0:te.number)||0),T(!1)}catch(q){T(!1),p.error(q.msg||"参数错误")}return}p.error("请配置action-url")},U=()=>{var J,q;if(!t){if(d){const te=((J=r==null?void 0:r["key-field"])==null?void 0:J.list)??[],Z=((q=r==null?void 0:r["key-field"])==null?void 0:q.delimiter)??"-";if(!te.length){p.error("请配置key-field");return}switch(g){case"modal-select":const $=d==null?void 0:d.split("-"),ne=N==null?void 0:N.findIndex(se=>$.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)));_([ne]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(se=>{var we;const ve=(we=se.split(Z))==null?void 0:we[0];return N==null?void 0:N.findIndex(ce=>ve.includes((ce==null?void 0:ce.typeid)||(ce==null?void 0:ce.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const J=await CL(k,r,c);m(J),e.onSure(J),b(!1)}catch(J){p.error(J.msg||"参数错误")}},V=()=>{R({...D,PageNum:1}),b(!1)};function K(){const J=r["modal-field-list"];let q=[];for(let te in J){let Z=J[te];const $={dataIndex:te,title:Z};q=[...q,$]}return q}const ee=J=>{R({...D,PageNum:J})};return Be(en,{children:[Q(me.Select,{placeholder:Wh({json:r},c),onClick:U,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function CL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let p=e.map(g=>c.map(m=>g[m]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(p)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}const wL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,handleUrlOptions:g,value:d,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x}=e,[_,k]=W.useState([]),[E,A]=W.useState(d||[]);W.useEffect(()=>{T()},[r.inputType,r.classify,r.data,r.options]);const T=async()=>{const D=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});k(D)};return Q(me.Checkbox.Group,{...l,options:_,value:E,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:D=>{A(D),t==null||t(D)},disabled:i})},_L=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C="10001"})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(g);else if(e.inputType==="system-dictionary")T(g);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(P=>({label:`${P.dicid||""}-${P.info||""}`,value:`${P.dicid||""}-${P.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,K,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],P=(e==null?void 0:e["search-field"])||[],U=((K=e==null?void 0:e["key-field"])==null?void 0:K.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...m};M&&(P.forEach(J=>{H[J]=M[J]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const J=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=J==null?void 0:J.data)!=null&&ee.list&&Array.isArray(J.data.list)){const q=J.data.list.map(te=>({...te,label:`${te[B[0]]||""}${U}${te[B[1]]||""}`,value:`${te[B[0]]||""}${U}${te[B[1]]||""}`,children:[],isLeaf:(te==null?void 0:te.subcount)===0}));I(q)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:"请选择",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const P=Y.findIndex(V=>V===B[0]);if(P===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const U=t.map(V=>V.split("-")[P]||"").filter(Boolean);let H=b;for(const[V,K]of U.entries()){if(V===U.length-1)break;const ee=H.filter(te=>te[B[0]]===K);if(ee.length===0)break;const J=ee[0];if(J.children&&J.children.length>0){H=J.children;continue}H=await N(ee)}}}})},SL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,langId:c})=>{const[p,g]=W.useState([]),[d,m]=W.useState(!1);W.useEffect(()=>{(async()=>{var D;if(e.inputType==="url"&&e["action-url"]){m(!0);try{const R=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(D=R==null?void 0:R.data)!=null&&D.list&&Array.isArray(R.data.list)?g(R.data.list):R!=null&&R.data&&Array.isArray(R.data)?g(R.data):Array.isArray(R==null?void 0:R.list)?g(R.list):(R==null?void 0:R.ReturnValue)===1&&(R!=null&&R.data)&&(Array.isArray(R.data)?g(R.data):g([R.data]))}catch{}finally{m(!1)}}else e.data&&Array.isArray(e.data)&&g(e.data)})()},[e.inputType,e["action-url"],e.data]);const C=T=>JSON.stringify(T),b=T=>{const D=C(T);return t===D},x=T=>{if(r)return;const D=C(T);i&&i(D)},_=e["card-image-width"]||200,k=e["card-image-height"]||100,E=e["card-image-field"],A=e["card-info-field"];return Q("div",{style:{...l},children:d?Q("div",{style:{textAlign:"center",padding:"20px"},children:"loading..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"50px"},children:p.map((T,D)=>{const R=b(T);return Be("div",{onClick:()=>x(T),style:{flex:"1 1 auto",width:`${_}px`,padding:"12px 0",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[T[E]&&Q("img",{src:T.picurl,alt:T[A]||"",style:{width:`${_}px`,height:`${k}px`,objectFit:"cover",borderRadius:"8px",marginBottom:"8px"},onError:N=>{N.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:R?"none":"1px solid #d9d9d9",backgroundColor:R?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:R&&Q(d8,{style:{fontSize:"12px",color:"#fff"}})}),T[A]||""]})})]},D)})})})},EL=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1);W.useEffect(()=>{E()},[e.inputType,e.classify,e.data,e.options]);const E=async()=>{k(!0);const A=await Qh({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,item:e});x(A),k(!1)};return Q(me.Select,{placeholder:Wh({json:e},C),mode:e.input==="mult-select"?"multiple":void 0,disabled:r,loading:_,showSearch:!0,value:f,filterOption:(A,T)=>{var D;return((D=T==null?void 0:T.label)==null?void 0:D.toLowerCase().indexOf(A.toLowerCase()))>=0},options:b,style:{...t},allowClear:!0,onChange:A=>{c(A)}})},DL={customUpload:"myUpload-module_customUpload_7c7d3"},kL=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),TL=e=>{const{langId:r="10001"}=e,{action:t,item:i,onChange:l,readonly:f=!1,relatedid:c,uploadText:p=r==="10001"?"上传文件":"Upload File",onRemove:g,list:d=[],uploadType:m,relatedidKey:C}=e,{message:b}=me.App.useApp(),x=(i==null?void 0:i["upload-accept"])||"*",_=i==null?void 0:i.input,k=i==null?void 0:i["upload-size"],E=(i==null?void 0:i["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{d&&d.length&&R(d)},[d]);const Y=async H=>{m==="image"&&(!H.url&&!H.preview&&(H.preview=await kL(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),l&&l(H)},P=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(r==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},U=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(en,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:p})});return Be(en,{children:[Q(me.Upload,{action:t,beforeUpload:P,listType:A,accept:x,fileList:D,onPreview:Y,data:{[C]:c},maxCount:E,onChange:B,onRemove:g,disabled:f,className:DL.customUpload,children:D.length>=E?null:U}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},AL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,value:g,interfaceTypeDict:d,interfaceTypeSysDict:m,actionUrlKey:C,actionUrlExtraParams:b}=e,[x,_]=W.useState([]);W.useEffect(()=>{k()},[r.inputType,r.classify,r.data,r.options]);const k=async()=>{const E=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:d,interfaceTypeSysDict:m,actionUrlKey:C,actionUrlExtraParams:b,item:r});_(E)};return Q(me.Radio.Group,{...l,options:x,onChange:t,disabled:i,value:g,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})};hn.extend(iD);function OL(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:p,relatedidKey:g,actionUrlKey:d,actionUrlExtraParams:m,CustomModalComponent:C,isEdit:b,formShowType:x="form",langId:_,getTitle:k}=e,E=W.useRef([]),{message:A}=me.App.useApp();W.useEffect(()=>{l&&(E.current=l)},[l]);const T=W.useCallback(U=>Array.isArray(U)?U:(U==null?void 0:U.fileList)??[],[]),D=U=>{f(U)},R=W.useCallback(U=>{var ee,J;const H=(ee=U.json)==null?void 0:ee.input,V=(J=U.json)==null?void 0:J.format,K={};switch(H){case"image":case"file":case"video":case"audio":K.getValueFromEvent=T;break;case"date-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY-MM-DD"),K.getValueProps=q=>({value:q?hn(q):null});break;case"time-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY-MM-DD HH:mm:ss"),K.getValueProps=q=>({value:q?hn(q):null});break;case"week-picker":K.getValueFromEvent=q=>`${q==null?void 0:q.year()}-${hn(q).isoWeek()}周`,K.getValueProps=q=>{if(!q)return{value:null};const[te,Z]=q.split("-"),$=Number(te),ne=Number(Z.replace("周",""));return{value:hn().year($).isoWeek(ne)}};break;case"month-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY-MM"),K.getValueProps=q=>({value:q?hn(q):null});break;case"quarter-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY年第Q季度"),K.getValueProps=q=>({value:q?hn(q,V||"YYYY年第Q季度"):null});break;case"year-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY"),K.getValueProps=q=>({value:q?hn(q):null});break;case"second-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"HH:mm:ss"),K.getValueProps=q=>({value:q?hn(q,V||"HH:mm:ss"):null});break;case"range-picker":K.getValueFromEvent=q=>q==null?void 0:q.map(te=>te==null?void 0:te.format(V||"YYYY-MM-DD")),K.getValueProps=q=>!(q!=null&&q.length)&&!Array.isArray(q)?{value:null}:{value:(q==null?void 0:q.map(te=>hn(te)))||null};break;case"multiple-date-picker":K.getValueFromEvent=q=>q==null?void 0:q.map(te=>te==null?void 0:te.format(V||"YYYY-MM-DD")),K.getValueProps=q=>({value:(q==null?void 0:q.map(te=>hn(te)))||null});break}return K},[T]),N=W.useCallback(({isActive:U})=>U?Q(b8,{style:{fontSize:18,color:"#999"}}):Q(_8,{style:{fontSize:18,color:"#999"}}),[]),z=(U,H)=>{var V,K,ee,J,q;return Be(me.Flex,{gap:10,vertical:H==="flex",align:"center",children:[Q("span",{children:U.attrname}),((V=U==null?void 0:U.json)==null?void 0:V.instruction)&&H==="icon"&&Q(me.Tooltip,{title:(K=U==null?void 0:U.json)==null?void 0:K.instruction,children:Q(y8,{style:{color:((ee=U==null?void 0:U.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((J=U==null?void 0:U.json)==null?void 0:J["instruction-color"])??"red"},children:(q=U==null?void 0:U.json)==null?void 0:q.instruction})]})},M=W.useCallback(({itemWithJson:U,colNum:H=1,readonly:V=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:J,relatedid:q,form:te,defaultWidth:Z=358,parentFormListField:$,isShowLabel:ne=!0})=>{const oe=Dc(U);let ae=U.children||[];Array.isArray(ae==null?void 0:ae[0])&&ae.length&&(ae=ae[0]);const se=ve=>{const we=($==null?void 0:$.parentName)||($==null?void 0:$.name);return we?Array.isArray(we)?[...we,U.attrid,ve.name]:[we,U.attrid,ve.name]:[U.attrid,ve.name]};return Q(me.Col,{span:24/H,children:Q(me.Collapse,{bordered:!1,style:{backgroundColor:"transparent"},expandIcon:({isActive:ve})=>N({isActive:ve}),items:[{key:U.attrid,label:U.attrname,styles:{header:{paddingLeft:0}},children:Q(me.Form.List,{name:$?Array.isArray($.name)?[...$.name,U.attrid]:[$.name,U.attrid]:U.attrid,initialValue:oe,children:(ve,{add:we,remove:ce})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[ve.map(ye=>{const De={...ye,parentName:se(ye)};return Q(me.Card,{style:{width:Z+100},size:"small",title:`${U.attrname} ${ye.name+1}`,extra:!b&&Q(v8,{onClick:()=>{ve.length>1?ce(ye.name):A.warning("至少需要保留一个!")}}),children:(ae||[]).map((Pe,ke)=>Q(W.Fragment,{children:P({item:Pe,readonly:V,colNum:H,instructionShowMode:K,relatedid:q,form:te,defaultWidth:Z,formItemStyle:J,radioAlign:ee,isFormListItem:!0,formListField:De,isShowLabel:!0})},Pe.attrid||`child-${ke}`))},ye.key)}),!b&&Q(me.Flex,{style:{width:200},children:Be(me.Button,{type:"dashed",onClick:()=>we(),block:!0,children:["+ ",_==="10001"?"新增":"Add"]})})]})})}]},U.attrid)})},[N,Dc]),I=W.useCallback(({itemWithJson:U,colNum:H=1,readonly:V=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:J,relatedid:q,form:te,defaultWidth:Z=358,isFormListItem:$=!1,formListField:ne,isShowLabel:oe=!0})=>{var ae,se,ve,we,ce,ye,De;if(((ae=U.json)==null?void 0:ae.hide)===!0)return Q(en,{});if(U.attrtype===1)return M({itemWithJson:U,colNum:H,readonly:V,instructionShowMode:K,radioAlign:ee,formItemStyle:J,relatedid:q,form:te,defaultWidth:Z,parentFormListField:ne,isShowLabel:oe});if(U.attrtype===2)return Q(en,{children:"实例信息"});if(U.attrtype===0){const Pe=Dc(U),ke=(se=U.json)==null?void 0:se["default-prompt"],ze=Wh(U,_),{combinations:Ne=[]}=U.json||{};if(Ne!=null&&Ne.length)return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{label:(ve=U==null?void 0:U.json)==null?void 0:ve["combination-name"],required:(we=U.json)==null?void 0:we.must,children:Q(me.Space.Compact,{children:Ne.map((Xe,Zt)=>{var In,Mn,Tn,Gt;let sn=Dc(Xe),kn=Z;const jn={},un=Xe.json.input||"text",It=J==null?void 0:J.find(Kn=>Kn.type===un);if(It){const{width:Kn}=(It==null?void 0:It.style)||{};Kn&&(jn.width=Kn)}const on=(In=Xe==null?void 0:Xe.json)==null?void 0:In["combination-width-ratio"];return on&&(kn=Z*on),Q(me.Form.Item,{name:ne?Array.isArray(ne.name)?[...ne.name,Xe.attrid]:[ne.name,Xe.attrid]:Xe.attrid,noStyle:!0,initialValue:sn,rules:[...(Mn=Xe.json)!=null&&Mn.must?[{required:!0,message:ke||`${ze}${Xe.attrname}`}]:[],...(Tn=U.json)!=null&&Tn.regexp?[{pattern:new RegExp(U.json.regexp.replace(/^\/|\/$/g,"")),message:((Gt=U.json)==null?void 0:Gt["regexp-message"])||`${U.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(Xe),children:B({item:Xe,readonly:V,formItemStyle:J,radioAlign:ee,relatedid:q,form:te,defaultWidth:kn,customWidth:jn})},Zt)})})},`${U.attrid}+1`)});const dt=$&&ne?Array.isArray(ne.name)?[...ne.name,U.attrid]:[ne.name,U.attrid]:U.attrid;return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{name:dt,label:oe&&z(U,K)||null,initialValue:Pe,rules:[...(ce=U.json)!=null&&ce.must?[{required:!0,message:`${ze}${U.attrname}`}]:[],...(ye=U.json)!=null&&ye.regexp?[{pattern:new RegExp(U.json.regexp.replace(/^\/|\/$/g,"")),message:((De=U.json)==null?void 0:De["regexp-message"])||`${U.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(U),children:B({item:U,readonly:V,formItemStyle:J,radioAlign:ee,relatedid:q,form:te,defaultWidth:Z})},U.attrid)})}return null},[z,Dc,R,M]),Y=async U=>{var H;try{const V=(H=U==null?void 0:U.response)==null?void 0:H.data;if(V){if(!r)return;const K=await r({Controlname:"DelFile",PageName:"initializationfile"},V);if((K==null?void 0:K.ReturnValue)!==1)return A.error(K==null?void 0:K.msg),!1}else D(U);return!0}catch{return!1}},B=({item:U,readonly:H=!1,formItemStyle:V=[],radioAlign:K="horizontal",relatedid:ee,form:J,defaultWidth:q=358,customWidth:te={}})=>{var Pe,ke,ze,Ne,dt,Xe,Zt,sn,kn,jn,un,It,on,In,Mn,Tn,Gt,Kn,ka,Lr,qe,at;const Z=U.json.input||"text",$=((Pe=U.json)==null?void 0:Pe.format)||"",ne=U.attrid,oe=Dc(U),ae=((ke=U.json)==null?void 0:ke["default-prompt"])||"",se=((ze=U.json)==null?void 0:ze["disable-date-goover"])||!1,ve=Wh(U,_),we=U.json.length&&{maxLength:U.json.length}||{},ce=V.find(ct=>ct.type===Z);let ye=(Ne=U.json)==null?void 0:Ne["input-width"];ye&&(ye=x==="table"?Number(ye)-32:ye);const De=ye||q;switch(Z){case"label":return Q(me.Input,{disabled:!0,value:((dt=U.json)==null?void 0:dt["label-value"])||U.attrvalue||((Xe=U.json)==null?void 0:Xe.default)||"-",style:{width:De,...ce==null?void 0:ce.style,...te}});case"text":return Q(me.Input,{placeholder:ae||ve,...we,disabled:H||((Zt=U.json)==null?void 0:Zt.readonly),allowClear:!0,style:{width:De,...ce==null?void 0:ce.style,...te}});case"password":return Q(me.Input.Password,{placeholder:ae||ve,...we,disabled:H||((sn=U.json)==null?void 0:sn.readonly),allowClear:!0,style:{width:De,...ce==null?void 0:ce.style,...te}});case"textarea":return Q(me.Input.TextArea,{allowClear:!0,placeholder:ae||ve,rows:5,...we,disabled:H||((kn=U.json)==null?void 0:kn.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}});case"number":return Q(me.InputNumber,{controls:!1,placeholder:ae||ve,...we,disabled:H||((jn=U.json)==null?void 0:jn.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}});case"select":case"mult-select":return Q(EL,{item:U.json,readonly:H||((un=U.json)==null?void 0:un.readonly),style:{width:De,...ce==null?void 0:ce.style,...te},commonRequestWidthParams:r,commonRequest:i,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:_,onChange:ct=>{J.setFieldValue(U.attrid,ct)}});case"modal-mult-select":case"modal-select":return Q(bL,{style:{width:De,...ce==null?void 0:ce.style,...te},item:U.json,value:U.attrvalue||U.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ct=>{J.setFieldValue(U.attrid,ct)},disabled:H||((It=U.json)==null?void 0:It.readonly),langId:_,CustomModalComponent:C});case"mul-field-modal-select":return Q(yL,{style:{width:De,...ce==null?void 0:ce.style,...te},item:U.json,form:J,attrid:ne,getTitle:k,value:U.attrvalue||U.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ct=>{J.setFieldsValue(ct)},disabled:H||((on=U.json)==null?void 0:on.readonly),CustomModalComponent:C,langId:_});case"date-picker":case"time-picker":case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":case"second-picker":{const ct={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};let Ht;return Z==="date-picker"&&(Ht=se?$6:void 0),Q(me.DatePicker,{showTime:Z==="time-picker",format:$||void 0,picker:ct[Z]||"date",disabled:H||((In=U.json)==null?void 0:In.readonly),disabledDate:Ht,placement:"bottomLeft",style:{width:De,...ce==null?void 0:ce.style,...te}})}case"range-picker":return Q(me.DatePicker.RangePicker,{disabledDate:se?$6:void 0,disabled:H||((Mn=U.json)==null?void 0:Mn.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}});case"multiple-date-picker":return Q(me.DatePicker,{multiple:!0,maxTagCount:((Tn=U==null?void 0:U.json)==null?void 0:Tn["max-tag-count"])||2,disabled:H||((Gt=U.json)==null?void 0:Gt.readonly)||!1,style:{width:De,...ce==null?void 0:ce.style,...te}});case"radio":return Q(AL,{radioAlign:K,commonRequest:i,commonRequestWidthParams:r,item:U.json,readonly:H||((Kn=U.json)==null?void 0:Kn.readonly),options:we,handleUrlOptions:kc,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,onChange:ct=>{J.setFieldValue(U.attrid,ct.target.value)}});case"checkbox":return Q(wL,{radioAlign:K,commonRequest:i,commonRequestWidthParams:r,item:U.json,readonly:H||((ka=U.json)==null?void 0:ka.readonly),options:we,value:oe,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,onChange:ct=>{J.setFieldValue(U.attrid,ct.join(","))}});case"audio":case"file":case"image":case"video":return Q(TL,{action:t&&t("initializationfile"),item:U.json,uploadType:Z,langId:_,list:oe,readonly:H||((Lr=U.json)==null?void 0:Lr.readonly),relatedid:ee,relatedidKey:g,onRemove:ct=>Y(ct)});case"cascader":return Q(_L,{commonRequestWidthParams:r,commonRequest:i,item:U.json,value:U.attrvalue,style:{width:De,...ce==null?void 0:ce.style,...te},interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:_});case"radio-card":return Q(SL,{item:U.json,readonly:H||((qe=U.json)==null?void 0:qe.readonly),onChange:ct=>{J.setFieldValue(U.attrid,ct)},langId:_,commonRequestWidthParams:r});default:return Q(me.Input,{placeholder:ae||ve,...we,showCount:!0,disabled:H||((at=U.json)==null?void 0:at.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}})}},P=({item:U,readonly:H=!1,colNum:V=1,instructionShowMode:K="icon",relatedid:ee,form:J,defaultWidth:q=358,formItemStyle:te,radioAlign:Z="horizontal",isFormListItem:$=!1,formListField:ne,isShowLabel:oe=!0})=>{var ve;const ae=U.info_base64===1?uu(Zh(U.info)):uu(U.info),se={...U,json:{...U==null?void 0:U.json,...ae}};return((ve=se.json)==null?void 0:ve.hide)===!0?null:Q(W.Fragment,{children:I({itemWithJson:se,readonly:H,colNum:V,instructionShowMode:K,relatedid:ee,form:J,defaultWidth:q,formItemStyle:te,radioAlign:Z,isFormListItem:$,formListField:ne,isShowLabel:oe})},se.attrid)};return{handleRenderItem:P,handleSetFormItemInitialValue:Dc}}const RL=W.forwardRef((e,r)=>{const{formConfig:t,form:i,readonly:l=!1,relatedid:f,colNum:c=1,colSpace:p=[0,0],instructionShowMode:g="flex",defaultWidth:d=358,commonRequestWidthParams:m,uploadAction:C,commonRequest:b,formItemStyle:x=[],radioAlign:_="horizontal",interfaceTypeChildren:k="YLLRDetailAttrlist",interfaceTypeDict:E="YLZDDictList",interfaceTypeSysDict:A="YLZDSysConfigList",relatedidKey:T="relatedid",actionUrlKey:D="action-url",actionUrlExtraParams:R={},CustomModalComponent:N,formShowType:z="form",formListItemWidth:M,formListItemName:I,isEdit:Y=!1,langId:B="10001",getTitle:P}=e,U=W.useRef([]),H=K=>{U.current.push(K)},{handleRenderItem:V}=OL({commonRequestWidthParams:m,uploadAction:C,commonRequest:b,updateDelFileList:H,formConfig:t,interfaceTypeChildren:k,interfaceTypeDict:E,interfaceTypeSysDict:A,relatedidKey:T,actionUrlKey:D,actionUrlExtraParams:R,CustomModalComponent:N,isEdit:Y,formShowType:z,langId:B,getTitle:P});return W.useImperativeHandle(r,()=>({getDelFileList:()=>U.current})),Q(en,{children:z==="table"?Q(me.Form.List,{name:I||"customFormList",initialValue:[{}],children:(K,{add:ee,remove:J})=>Q(me.Flex,{className:"custom-form-body",children:Be("div",{className:"custom-form-list",children:[Be(me.Flex,{align:"center",style:{position:"relative",backgroundColor:"#004d32"},children:[Q(me.Flex,{className:"custom-form-list-header",align:"center",children:t==null?void 0:t.map((q,te)=>{var $,ne;const Z=(($=q==null?void 0:q.json)==null?void 0:$["input-width"])&&Number((ne=q==null?void 0:q.json)==null?void 0:ne["input-width"])||d;return Be(me.Flex,{style:{width:Z,flexShrink:0},align:"center",children:[te!==0&&Q("div",{className:"line"}),Q("div",{className:"custom-form-list-header-item",children:q.attrname})]},te)})}),Q("a",{className:"custom-form-list-add-btn",onClick:()=>ee(),children:B==="10001"?"新增":"Add"})]}),K.map(q=>Be(me.Flex,{align:"center",className:"custom-form-list-item-container",children:[Q(me.Flex,{className:"custom-form-list-item",align:"center",children:t==null?void 0:t.map((te,Z)=>{var ne,oe;const $=((ne=te==null?void 0:te.json)==null?void 0:ne["input-width"])&&Number((oe=te==null?void 0:te.json)==null?void 0:oe["input-width"])||d;return Q(me.Flex,{align:"center",className:"custom-form-list-item-content",justify:"center",style:{width:$,flexShrink:0},children:V({item:te,readonly:l,colNum:c,instructionShowMode:g,relatedid:f,form:i,defaultWidth:(M==null?void 0:M[Z])||d,formItemStyle:x,isFormListItem:!0,formListField:q,isShowLabel:!1})},te.attrid||`child-${Z}`)})}),Q("a",{className:"custom-form-list-del-btn",onClick:()=>J(q.key),children:B==="10001"?"删除":"Delete"})]},q.key))]})})}):Q(me.Row,{gutter:p,children:t.map((K,ee)=>Q(W.Fragment,{children:V({item:K,readonly:l,colNum:c,instructionShowMode:g,relatedid:f,form:i,defaultWidth:d,formItemStyle:x,radioAlign:_})},K.attrid||`form-item-${ee}`))})})}),oD=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Tc=e=>{var i,l,f,c;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default)||"";if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t.map(p=>new Date(p))}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(p=>new Date(p))}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const p=(c=e.json)==null?void 0:c["cascader-delimiter"];p&&(t=t.split(p).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return e.attrtype===1&&(t=FL(e.children||[])),t||void 0},lD=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},FL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)},NL=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c})=>{var m;let p=[];const g=async C=>{var x;let b=[];if(c.classify)try{const _=await r(C,{asctypeid:c.classify});(x=_==null?void 0:_.data)!=null&&x.list&&Array.isArray(_.data.list)&&(b=_.data.list.map(k=>({label:`${k.dicid||""}-${k.info||""}`,value:`${k.dicid||""}-${k.info||""}`})))}catch{me.message.error("加载选项失败")}return b},d=async()=>{var C,b;try{const x=((C=c==null?void 0:c["key-field"])==null?void 0:C.list)||[],_=((b=c==null?void 0:c["key-field"])==null?void 0:b.delimiter)||"",k=c==null?void 0:c["field-names"];if(!x.length){me.message.error("请配置key-field");return}const E=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(E!=null&&E.data){const A=E==null?void 0:E.data,T=(A==null?void 0:A.list)||[];let D=[];Array.isArray(A)&&(D=A),Array.isArray(T)&&(D=T),k?p=D:p=D.map(R=>({label:lD(R,_,x),value:lD(R,_,x)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(p=((m=c.data)==null?void 0:m.map(C=>({label:C,value:C})))||[],c.options&&Array.isArray(c.options)&&(p=c.options)):c.inputType==="dictionary"?p=await g(t):c.inputType==="system-dictionary"&&(p=await g(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await d(),p};function ML(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:p,form:g,langId:d,getTitle:m}=e,C=me.Form.useWatch(p,g),{message:b}=me.App.useApp(),x=r.input,{handleUniversalHeaderToColumns:_}=$2(),[k,E]=W.useState(e.value),[A,T]=W.useState(!1),[D,R]=W.useState([]),[N,z]=W.useState([]),[M,I]=W.useState(!1),[Y,B]=W.useState({PageNum:1,PageSize:6}),[P,U]=W.useState([]),[H,V]=W.useState(0),[K,ee]=W.useState(ne());W.useEffect(()=>{A&&q()},[A,Y]);const J=(ae,se)=>{R(ae),z(se)},q=async()=>{var ae,se,ve,we,ce;if(r.inputType==="url"&&(r!=null&&r["action-url"])){I(!0);try{const ye=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...Y,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ye==null?void 0:ye.ReturnValue)===0){b.error(ye.msg),I(!1);return}const De=ye==null?void 0:ye.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map((ze,Ne)=>{const dt=(Y.PageNum-1)*Y.PageSize+Ne;return{...ze,_rowKey:dt}}),ke=(Pe==null?void 0:Pe.filter(ze=>D.includes(ze._rowKey)))||[];z(ke),U([...Pe||[]]),V((De==null?void 0:De.number)||0),I(!1)}catch(ye){I(!1),b.error(d==="10001"?ye.msg||"参数错误":"Failed to load data")}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ye={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...Y};try{const Pe=await l(ye,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const ze=(ve=((se=Pe==null?void 0:Pe.data)==null?void 0:se.list)||[])==null?void 0:ve.map((Ne,dt)=>{const Xe=(Y.PageNum-1)*Y.PageSize+dt;return{...Ne,_rowKey:Xe}});V(((we=Pe==null?void 0:Pe.data)==null?void 0:we.number)||0),U([...ze])}const ke=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ke==null?void 0:ke.ReturnValue)===1){const ze=(ce=ke==null?void 0:ke.data)==null?void 0:ce[r==null?void 0:r["instance-source-number"]],Ne=(ze==null?void 0:ze["universal-header"])||[],dt=(ze==null?void 0:ze["attribute-set-id"])||"",Xe=_({universalHeader:Ne,attributeSetId:dt,getTitle:m,otherLangPageId:"5000000"})||[];ee([...Xe])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error"),b.error(d==="10001"?"请配置action-url":"Please configure action-url")},te=()=>{var ae;if(!t){if(k){const se=r==null?void 0:r["key-field"],ve=se==null?void 0:se[p],{delimiter:we="-",list:ce=[]}=ve||{};if(!se){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ye=(ae=k==null?void 0:k.split(we))==null?void 0:ae[0],De=P==null?void 0:P.findIndex(ze=>Object.values(ze).includes(ye));R([De]);break;case"modal-mult-select":const Pe=k==null?void 0:k.split(","),ke=Pe==null?void 0:Pe.map(ze=>{var dt;const Ne=(dt=ze.split(we))==null?void 0:dt[0];return P==null?void 0:P.findIndex(Xe=>Ne.includes((Xe==null?void 0:Xe.typeid)||(Xe==null?void 0:Xe.instanceid)))});R(ke);break}}T(!0)}},Z=async()=>{try{const ae=await PL(N,r);E((ae==null?void 0:ae[p])||""),e.onSure(ae),T(!1)}catch(ae){b.error(d==="10001"?ae.msg||"参数错误":"Failed to load data")}},$=()=>{B({...Y,PageNum:1}),T(!1)};function ne(){const ae=r["modal-field-list"];let se=[];for(let ve in ae){let we=ae[ve];const ce={dataIndex:ve,title:we};se=[...se,ce]}return se}const oe=ae=>{B({...Y,PageNum:ae})};return Be(en,{children:[Q(me.Select,{placeholder:d==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:te,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:A,onOk:Z,onCancel:$,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:K,loading:M,dataSource:P,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:J},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:A,onOk:Z,onCancel:$,width:r["modal-width"]??600,okButtonProps:{disabled:D.length===0},children:Q(me.Table,{columns:K,loading:M,dataSource:P,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:J},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})]})}function PL(e,r){return new Promise((t,i)=>{try{var l=r["key-field"];if(!l){i({msg:"请配置key-field"});return}let f={};e.forEach(c=>{for(let[p,g]of Object.entries(l)){const d=(g==null?void 0:g.list)??[],m=(g==null?void 0:g.delimiter)??"-",C=d.map(b=>c==null?void 0:c[b]);f[p]=C.join(m)}}),t(f)}catch{i({msg:"key-field参数配置错误"})}})}function BL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:p}=me.App.useApp(),g=r.input,[d,m]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=K();W.useEffect(()=>{C&&P()},[C,D]);const B=(J,q)=>{_(J),E(q)},P=async()=>{var J;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const q=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if((q==null?void 0:q.ReturnValue)===0){p.error(q.msg),T(!1);return}const te=q==null?void 0:q.data,Z=(J=te==null?void 0:te.list)==null?void 0:J.map((ne,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...ne,_rowKey:ae}}),$=(Z==null?void 0:Z.filter(ne=>x.includes(ne._rowKey)))||[];E($),z([...Z||[]]),I((te==null?void 0:te.number)||0),T(!1)}catch(q){T(!1),p.error(c==="10001"?q.msg||"参数错误":"Failed to load data")}return}p.error(c==="10001"?"请配置action-url":"Please configure action-url")},U=()=>{var J,q;if(!t){if(d){const te=((J=r==null?void 0:r["key-field"])==null?void 0:J.list)??[],Z=((q=r==null?void 0:r["key-field"])==null?void 0:q.delimiter)??"-";if(!te.length){p.error(c==="10001"?"请配置key-field":"Please configure key-field");return}switch(g){case"modal-select":const $=d==null?void 0:d.split("-"),ne=N==null?void 0:N.findIndex(se=>$.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)));_([ne]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(se=>{var we;const ve=(we=se.split(Z))==null?void 0:we[0];return N==null?void 0:N.findIndex(ce=>ve.includes((ce==null?void 0:ce.typeid)||(ce==null?void 0:ce.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const J=await LL(k,r,c);m(J),e.onSure(J),b(!1)}catch(J){p.error(c==="10001"?J.msg||"参数错误":"Failed to build value")}},V=()=>{R({...D,PageNum:1}),b(!1)};function K(){const J=r["modal-field-list"];let q=[];for(let te in J){let Z=J[te];const $={dataIndex:te,title:Z};q=[...q,$]}return q}const ee=J=>{R({...D,PageNum:J})};return Be(en,{children:[Q(me.Select,{placeholder:c==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:U,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function LL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let p=e.map(g=>c.map(m=>g[m]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(p)}catch{l({msg:t==="10001"?"key-field参数配置错误":"Failed to build value"})}})}const zL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,handleUrlOptions:g,value:d,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]),[A,T]=W.useState(d||[]);W.useEffect(()=>{D()},[r.inputType,r.classify,r.data,r.options]);const D=async()=>{const R=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(R)};return Q(me.Checkbox.Group,{...l,options:k,value:A,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:R=>{T(R),t==null||t(R)},disabled:i})},UL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(g);else if(e.inputType==="system-dictionary")T(g);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(P=>({label:`${P.dicid||""}-${P.info||""}`,value:`${P.dicid||""}-${P.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,K,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],P=(e==null?void 0:e["search-field"])||[],U=((K=e==null?void 0:e["key-field"])==null?void 0:K.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...m};M&&(P.forEach(J=>{H[J]=M[J]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const J=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=J==null?void 0:J.data)!=null&&ee.list&&Array.isArray(J.data.list)){const q=J.data.list.map(te=>({...te,label:`${te[B[0]]||""}${U}${te[B[1]]||""}`,value:`${te[B[0]]||""}${U}${te[B[1]]||""}`,children:[],isLeaf:(te==null?void 0:te.subcount)===0}));I(q)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:C==="10001"?"请选择":"Please select",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const P=Y.findIndex(V=>V===B[0]);if(P===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const U=t.map(V=>V.split("-")[P]||"").filter(Boolean);let H=b;for(const[V,K]of U.entries()){if(V===U.length-1)break;const ee=H.filter(te=>te[B[0]]===K);if(ee.length===0)break;const J=ee[0];if(J.children&&J.children.length>0){H=J.children;continue}H=await N(ee)}}}})},jL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f})=>{const[c,p]=W.useState([]),[g,d]=W.useState(!1);W.useEffect(()=>{(async()=>{var T;if(e.inputType==="url"&&e["action-url"]){d(!0);try{const D=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(T=D==null?void 0:D.data)!=null&&T.list&&Array.isArray(D.data.list)?p(D.data.list):D!=null&&D.data&&Array.isArray(D.data)?p(D.data):Array.isArray(D==null?void 0:D.list)?p(D.list):(D==null?void 0:D.ReturnValue)===1&&(D!=null&&D.data)&&(Array.isArray(D.data)?p(D.data):p([D.data]))}catch{}finally{d(!1)}}else e.data&&Array.isArray(e.data)&&p(e.data)})()},[e.inputType,e["action-url"],e.data]);const m=A=>JSON.stringify(A),C=A=>{const T=m(A);return t===T},b=A=>{if(r)return;const T=m(A);i&&i(T)},x=e["card-image-width"]||200,_=e["card-image-height"]||100,k=e["card-image-field"],E=e["card-info-field"];return Q("div",{style:{...l},children:g?Q("div",{style:{textAlign:"center",padding:"20px"},children:"加载中..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"0px"},children:c.map((A,T)=>{const D=C(A);return Be("div",{onClick:()=>b(A),style:{flex:"1 1 auto",width:`${x}px`,padding:"12px",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[A[k]&&Q("img",{src:A.picurl,alt:A[E]||"",style:{width:`${x}px`,height:`${_}px`,objectFit:"cover",borderRadius:"4px",marginBottom:"8px"},onError:R=>{R.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:D?"none":"1px solid #d9d9d9",backgroundColor:D?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:D&&Q(d8,{style:{fontSize:"12px",color:"#fff"}})}),A[E]||""]})})]},T)})})})},QQ="";function Xh(e,r){if(!e)return r;let t;return typeof e=="function"?t=e():"current"in e?t=e.current:t=e,t}function Mi(){}const Jh=Object.assign,Ac=typeof window<"u";function Jr(e){return e!=null}function Oc(e){return typeof e=="function"}function IL(e){return cd(e)&&Oc(e.then)&&Oc(e.catch)}function cd(e){return e!==null&&typeof e=="object"}function sD(e,r,t){return r.reduce((i,l)=>((!t||e[l]!==void 0)&&(i[l]=e[l]),i),{})}function Y2(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((t,i)=>t+Y2(e,i),""):Object.keys(r).reduce((t,i)=>t+(r[i]?Y2(e,i):""),""):""}function HL(e){return(r,t)=>(r&&typeof r!="string"&&(t=r,r=""),r=r?`${e}__${r}`:e,`${r}${Y2(r,t)}`)}function wn(e,r){return e=`${r||"rv"}-${e}`,[HL(e),e]}function VL(e){e.stopPropagation()}function q2(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&VL(e)}const $L={click:"onClick"};function uD(e,r){const t=Object.assign({},r.props);for(const i of e){const l=$L[i];t[l]=function(f){var c,p;f.stopPropagation(),(p=(c=r.props)[l])===null||p===void 0||p.call(c,f)}}return W.cloneElement(r,t)}const fd=Ac?window:global;let cD=Date.now();function YL(e){const r=Date.now(),t=Math.max(0,16-(r-cD)),i=setTimeout(e,t);return cD=r+t,i}function G2(e){return(fd.requestAnimationFrame||YL).call(fd,e)}function qL(){return Ac?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}function GL(e){const r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function KL(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function WL(e){fD(window,e)}function fD(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}const QL=qL();function dD(){QL&&WL(KL())}function hD(e){return/^\d+(\.\d+)?$/.test(e)}function pD(e){return Number.isNaN?Number.isNaN(e):e!==e}function dl(e){if(Jr(e))return e=String(e),hD(e)?`${e}px`:e}function ZL(e){if(Jr(e)){const r=dl(e);return{width:r,height:r}}return{}}let K2;function XL(){if(!K2){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;K2=parseFloat(r)}return K2}function JL(e){return e=e.replace(/rem/g,""),+e*XL()}function ez(e){return e=e.replace(/vw/g,""),+e*window.innerWidth/100}function tz(e){return e=e.replace(/vh/g,""),+e*window.innerHeight/100}function vD(e){if(typeof e=="number")return e;if(Ac){if(e.indexOf("rem")!==-1)return JL(e);if(e.indexOf("vw")!==-1)return ez(e);if(e.indexOf("vh")!==-1)return tz(e)}return parseFloat(e)}function ep(e,r,t){return Math.min(Math.max(e,r),t)}function mD(e,r,t){const i=e.indexOf(r);return i===-1?e:r==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(t,"")}function nz(e,r=!0,t=!0){r?e=mD(e,".",/\./g):e=e.split(".")[0],t?e=mD(e,"-",/-/g):e=e.replace(/-/,"");const i=r?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function hl(e,r=2){let t=`${e}`;for(;t.length<r;)t=`0${t}`;return t}let gD=!1;if(Ac)try{const e={};Object.defineProperty(e,"passive",{get(){gD=!0}}),window.addEventListener("test-passive",null,e)}catch{}function W2(e,r,t={}){if(!Ac)return;const{target:i=window,passive:l=!1,capture:f=!1,depends:c=[]}=t;let p;const g=()=>{const m=Xh(i);m&&!p&&(m.addEventListener(e,r,gD?{capture:f,passive:l}:f),p=!0)},d=()=>{const m=Xh(i);m&&p&&(m.removeEventListener(e,r,f),p=!1)};W.useEffect(()=>(g(),()=>d()),[i,...c])}function Q2(e){const[r,t]=W.useState(e),i=W.useRef(r),l=W.useCallback(f=>{t(c=>i.current=Oc(f)?f(c):f)},[r]);return[r,l,i]}const rz=()=>{const e=W.useRef(!1);return W.useEffect(()=>(e.current=!1,()=>{e.current=!0}),[]),e},yD=(e={})=>{const r=rz(),[t,i,l]=Q2(e),f=W.useCallback(c=>{r.current||i(p=>Object.assign(Object.assign({},p),Oc(c)?c(p):c))},[]);return[t,f,l]},Rc=(e,r)=>{const t=W.useRef(!1);W.useEffect(()=>{if(!t.current)t.current=!0;else return e()},r)};function xD(e){const r=W.useRef(e);return r.current=e,r}const az=process.env.NODE_ENV==="development";function eZ(e,r){}const bD=e=>{process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=xD(e);W.useEffect(()=>()=>{r.current()},[])};function CD(e,r){if(e===r)return!0;for(let t=0;t<e.length;t++)if(!Object.is(e[t],r[t]))return!1;return!0}const iz=(e=>(t,i,l)=>{const f=W.useRef(!1),c=W.useRef([]),p=W.useRef([]),g=W.useRef();e(()=>{var d;const C=(Array.isArray(l)?l:[l]).map(b=>Xh(b));if(!f.current){f.current=!0,c.current=C,p.current=i,g.current=t();return}(C.length!==c.current.length||!CD(C,c.current)||!CD(i,p.current))&&((d=g.current)===null||d===void 0||d.call(g),c.current=C,p.current=i,g.current=t())}),bD(()=>{var d;(d=g.current)===null||d===void 0||d.call(g),f.current=!1})})(W.useEffect);function oz(e,r){const[t,i]=W.useState(),[l,f]=W.useState();return iz(()=>{const c=Xh(e);if(!c)return;const p=new IntersectionObserver(g=>{for(const d of g)f(d.intersectionRatio),i(d.isIntersecting)},Object.assign(Object.assign({},r),{root:Xh(r==null?void 0:r.root)}));return p.observe(c),()=>{p.disconnect()}},[],e),[t,l]}const wD=10;function lz(e,r){return e>r&&e>wD?"horizontal":r>e&&r>wD?"vertical":""}function _D(){const e=W.useRef(0),r=W.useRef(0),t=W.useRef(0),i=W.useRef(0),l=W.useRef(0),f=W.useRef(0),c=W.useRef(""),p=W.useRef(null),g=()=>c.current==="vertical",d=()=>c.current==="horizontal",m=()=>{t.current=0,i.current=0,l.current=0,f.current=0,c.current="",p.current=null};return{move:x=>{const _=x.touches[0];t.current=_.clientX<0?0:_.clientX-e.current,i.current=_.clientY-r.current,l.current=Math.abs(t.current),f.current=Math.abs(i.current),p.current===null?p.current=!0:p.current=!1,c.current||(c.current=lz(l.current,f.current))},start:x=>{m(),e.current=x.touches[0].clientX,r.current=x.touches[0].clientY},reset:m,startX:e,startY:r,deltaX:t,deltaY:i,offsetX:l,offsetY:f,direction:c,isVertical:g,isHorizontal:d,firstMove:p}}const SD=/scroll|auto/i,sz=Ac?window:void 0;function uz(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function cz(e,r=sz){r===void 0&&(r=window);let t=e;for(;t&&t!==r&&uz(t);){const{overflowY:i}=window.getComputedStyle(t);if(SD.test(i)){if(t.tagName!=="BODY")return t;const l=window.getComputedStyle(t.parentNode).overflowY;if(SD.test(l))return t}t=t.parentNode}return r}const fz=e=>(r,t)=>{const i=W.useRef(!1);e(()=>()=>{i.current=!1},[]),e(()=>{if(!i.current)i.current=!0;else return r()},t)},tp=Ac?W.useLayoutEffect:W.useEffect,dz=fz(tp),ED=()=>{const[,e]=W.useState({});return W.useCallback(()=>e({}),[])};function DD(e){process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=W.useRef(e);r.current=W.useMemo(()=>e,[e]);const t=W.useRef();return t.current||(t.current=function(...i){return r.current.apply(this,i)}),t.current}function np(e){const{value:r,defaultValue:t,onChange:i}=e,l=ED(),f=W.useRef(r!==void 0?r:t);r!==void 0&&(f.current=r);const c=DD((p,g)=>{const d=typeof p=="function"?p(f.current):p;!g&&d===f.current||(f.current=d,l(),i==null||i(d))});return[f.current,c]}const iZ="";function $a(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t}function Z2(e,r,t,i){function l(f){return f instanceof t?f:new t(function(c){c(f)})}return new(t||(t=Promise))(function(f,c){function p(m){try{d(i.next(m))}catch(C){c(C)}}function g(m){try{d(i.throw(m))}catch(C){c(C)}}function d(m){m.done?f(m.value):l(m.value).then(p,g)}d((i=i.apply(e,r||[])).next())})}const oZ="",hz=({bem:e})=>Q(en,{children:Array(12).fill(null).map((r,t)=>Q("i",{className:Re(e("line",String(t+1)))},t))}),pz=({bem:e})=>Q("svg",Object.assign({className:Re(e("circular")),viewBox:"25 25 50 50"},{children:Q("circle",{cx:"50",cy:"50",r:"20",fill:"none"})})),vz=({bem:e})=>Be("div",Object.assign({className:Re(e("ball"))},{children:[Q("div",{}),Q("div",{}),Q("div",{})]})),mz=e=>({spinner:Q(hz,{bem:e}),circular:Q(pz,{bem:e}),ball:Q(vz,{bem:e})}),[Ng]=wn("loading"),X2=e=>{const{className:r,type:t="circular",vertical:i,color:l,size:f,textColor:c,children:p,textSize:g}=e,d=W.useMemo(()=>Object.assign({color:l},ZL(f)),[l,f]),m=()=>p?Q("span",Object.assign({className:Re(Ng("text")),style:{fontSize:dl(g),color:c??l}},{children:p})):null;return Be("div",Object.assign({className:Re(r,Ng([t,{vertical:i}])),style:e.style},{children:[Q("span",Object.assign({className:Re(Ng("spinner",t)),style:d},{children:mz(Ng)[t]})),m()]}))},gz="#fff",rp="rv-hairline",yz=`${rp}--top`,xz=`${rp}--left`,bz=`${rp}--surround`,Cz=`${rp}--top-bottom`,wz=`${rp}-unset--top-bottom`,kD="rv-shadow",_z="__REACT_VANT_COMPONENT",TD=W.createContext({}),[ap]=wn("button"),Sz=e=>{const{color:r,loading:t,className:i,hairline:l,loadingText:f,round:c,square:p,plain:g,block:d,loadingType:m,nativeType:C,iconPosition:b}=e,x=$a(e,["color","loading","className","hairline","loadingText","round","square","plain","block","loadingType","nativeType","iconPosition"]),{parent:_}=W.useContext(TD),k=W.useMemo(()=>e.size||(_==null?void 0:_.size)||"normal",[_==null?void 0:_.size,e.size]),E=W.useMemo(()=>e.type||(_==null?void 0:_.type)||"default",[_==null?void 0:_.type,e.type]),A=W.useMemo(()=>g??(_==null?void 0:_.plain),[_==null?void 0:_.plain,g]),T=W.useMemo(()=>d??(_==null?void 0:_.block),[_==null?void 0:_.block,d]),D=W.useMemo(()=>b||(_==null?void 0:_.iconPosition)||"left",[_==null?void 0:_.iconPosition,b]),R=W.useMemo(()=>{var K;return(K=e.disabled)!==null&&K!==void 0?K:_==null?void 0:_.disabled},[_==null?void 0:_.disabled,e.disabled]),N=W.useMemo(()=>C||(_==null?void 0:_.nativeType)||"button",[_==null?void 0:_.nativeType,C]),M=W.useMemo(()=>e.tag||(_==null?void 0:_.tag)||"button",[_==null?void 0:_.tag,e.tag]),I=Re(i,ap([E,k,{plain:A,loading:t,disabled:R,hairline:l,block:T,round:c,square:p}]),{[bz]:l},e.shadow&&`${kD}--${+e.shadow}`),Y=Object.assign({},e.style);r&&(Y.color=A?r:gz,A||(Y.background=r),r.indexOf("gradient")!==-1?Y.border=0:Y.borderColor=r);const B=K=>{!t&&!R&&e.onClick&&e.onClick(K)},P=()=>{if(t){const{loadingSize:K="20px"}=e;return Q(X2,{className:Re(ap("loading")),size:K,type:m,color:E==="default"?void 0:""})}return null},U=()=>e.loading?P():e.icon?W.cloneElement(e.icon,{className:Re(ap("icon"))}):null,H=()=>{let K;return t?K=f:K=e.children||e.text,K?Q("span",Object.assign({className:Re(ap("text"))},{children:K}),"text"):null};return Q(M,Object.assign({},x,{disabled:R,className:I,style:Y,type:N,onClick:B},{children:(()=>Be("div",Object.assign({className:Re(ap("content"))},{children:[D==="left"&&U(),H(),D==="right"&&U()]})))()}))},[Ez]=wn("button-group"),ip=Object.assign(Sz,{Group:e=>{var{className:r,style:t,children:i,onClick:l}=e,f=$a(e,["className","style","children","onClick"]);return Q("div",Object.assign({onClick:p=>{f.disabled||l==null||l(p)},style:t,className:Re(r,Ez([f.type,{round:f.round,plain:f.plain,disabled:f.disabled}]),f.shadow&&`${kD}--${+f.shadow}`)},{children:Q(TD.Provider,Object.assign({value:{parent:f}},{children:i}))}))}}),dZ="";function ea(...e){const r=Object.assign({},e[0]);return e.forEach(t=>{for(const i in t){const l=t[i];r[i]=r.hasOwnProperty(i)?r[i]:l}}),r}const[AD]=wn("badge"),Dz=e=>{const r=ea(e,{tag:"div",showZero:!0}),{content:t,max:i,dot:l,showZero:f,tag:c="div"}=r,p=c,g=()=>r.content?!0:Jr(t)&&t!==""&&(f||+t!=0),d=()=>!l&&g()?Jr(i)&&hD(t==null?void 0:t.toString())&&+t>i?`${i}+`:t:null,m=()=>{if(g()||r.dot){let C={background:r.color};if(r.offset){const[b,x]=r.offset;r.children?(C.top=dl(x),C.right=dl(b)):(C.marginTop=dl(x),C.marginLeft=dl(b))}return r.children||(C=Object.assign(Object.assign({},r.style),C)),Q("div",Object.assign({className:Re({[r.className]:r.className&&!r.children},AD({dot:r.dot,fixed:!!r.children})),style:C},{children:d()}))}return null};return r.children?Be(p,Object.assign({className:Re(AD("wrapper"),r.className),style:r.style,onClick:r.onClick,onTouchStart:r.onTouchStart},{children:[r.children,m()]})):m()},pZ="";var kz=globalThis&&globalThis.__rest||function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t};function Tz(e){return e.substring(3).replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")}const ls=W.forwardRef((e,r)=>{const{name:t="",className:i,style:l,spin:f,rotate:c,tabIndex:p,onClick:g,children:d}=e,m=kz(e,["name","className","style","spin","rotate","tabIndex","onClick","children"]),C={};c&&(C.msTransform=`rotate(${c}deg)`,C.transform=`rotate(${c}deg)`);const b=t?Tz(t):void 0;let x=p;x===void 0&&g&&(x=-1);const _=Object.assign({role:"img","aria-label":b,focusable:"false","data-icon":b,"aria-hidden":"true",preserveAspectRatio:"xMidYMid meet",ref:r,tabIndex:x,onClick:g,className:["rv-icon",b?`rv-icon-${b}`:"",f?"rv-icon--spin":"",i].join(" ").trim(),style:Object.assign(Object.assign({},l),C)},m);return W.cloneElement(d,_)}),Az=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M494.094 733.426a41.472 41.472 0 01-20.023-11.126L140.16 388.388c-16.272-16.271-16.272-42.653 0-58.925 16.271-16.272 42.653-16.272 58.925 0L503.66 634.037 808.186 329.51c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L533.2 722.347c-10.607 10.607-25.508 14.3-39.106 11.08z",fillRule:"evenodd"})),Oz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrowDown"},e,{ref:r}),Me.createElement(Az,null))),Rz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 01-11.127-20.023z",fillRule:"evenodd"})),Fz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrowLeft"},e,{ref:r}),Me.createElement(Rz,null))),Nz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M513.176 285.05a41.472 41.472 0 0120.024 11.127L867.11 630.089c16.272 16.271 16.272 42.653 0 58.925s-42.654 16.272-58.925 0L503.612 384.44 199.085 688.967c-16.272 16.271-42.654 16.271-58.925 0-16.272-16.272-16.272-42.654 0-58.926L474.07 296.129c10.606-10.606 25.508-14.299 39.105-11.078z",fillRule:"evenodd"})),Mz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrowUp"},e,{ref:r}),Me.createElement(Nz,null))),Pz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M711.156 508.035a41.472 41.472 0 01-11.126 20.023L366.12 861.97c-16.272 16.272-42.654 16.272-58.926 0s-16.272-42.654 0-58.926L611.767 498.47 307.241 193.944c-16.272-16.272-16.272-42.654 0-58.926 16.271-16.272 42.653-16.272 58.925 0L700.078 468.93c10.606 10.606 14.299 25.508 11.078 39.105z",fillRule:"evenodd"})),Bz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrow"},e,{ref:r}),Me.createElement(Pz,null))),Lz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M500 55.556c245.46 0 444.444 198.984 444.444 444.444S745.46 944.444 500 944.444 55.556 745.46 55.556 500 254.54 55.556 500 55.556zm176.441 267.887c-10.848-10.848-28.436-10.848-39.284 0L499.665 460.936 362.172 323.443c-10.848-10.848-28.436-10.848-39.284 0-10.848 10.848-10.848 28.436 0 39.284L460.38 500.22 322.888 637.713c-10.848 10.848-10.848 28.436 0 39.284 10.848 10.848 28.436 10.848 39.284 0l137.493-137.493 137.492 137.493c10.848 10.848 28.436 10.848 39.284 0 10.848-10.848 10.848-28.436 0-39.284L538.948 500.22l137.493-137.493c10.848-10.848 10.848-28.436 0-39.284z",fillRule:"evenodd"})),Mg=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgClear"},e,{ref:r}),Me.createElement(Lz,null))),zz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M560.149 501.223l255.344 255.344c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L501.223 560.149 245.88 815.493c-16.272 16.272-42.654 16.272-58.925 0-16.272-16.272-16.272-42.654 0-58.926l255.344-255.344L186.954 245.88c-16.272-16.272-16.272-42.654 0-58.925 16.271-16.272 42.653-16.272 58.925 0l255.344 255.344 255.344-255.344c16.272-16.272 42.654-16.272 58.926 0 16.272 16.271 16.272 42.653 0 58.925L560.149 501.223z",fillRule:"nonzero"})),J2=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgCross"},e,{ref:r}),Me.createElement(zz,null))),Uz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M537.5 537.5v325c0 20.71-16.79 37.5-37.5 37.5s-37.5-16.79-37.5-37.5v-325h-325c-20.71 0-37.5-16.79-37.5-37.5s16.79-37.5 37.5-37.5h325v-325c0-20.71 16.79-37.5 37.5-37.5s37.5 16.79 37.5 37.5v325h325c20.71 0 37.5 16.79 37.5 37.5s-16.79 37.5-37.5 37.5h-325z",fillRule:"nonzero"})),jz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgPlus"},e,{ref:r}),Me.createElement(Uz,null))),Iz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M500 888.889c-214.389 0-388.889-174.5-388.889-388.889S285.611 111.111 500 111.111 888.889 285.611 888.889 500 714.389 888.889 500 888.889m0-833.333c-245.444 0-444.444 199-444.444 444.444 0 245.444 199 444.444 444.444 444.444 245.444 0 444.444-199 444.444-444.444 0-245.444-199-444.444-444.444-444.444m6.456 222.222c-44.612 0-80 12.778-105.612 39.055-26.277 25.667-39.055 60.445-39.055 105.056v1c0 17.944 14.444 32.444 32.389 32.444 17.889 0 32.389-14.5 32.389-32.444 0-.389-.111-1-.111-1 0-26.945 5.444-48.222 16.444-62.889 12.222-17.111 32.333-25.667 59.889-25.667 21.944 0 39.055 6.111 51.222 18.334 11.611 12.222 17.778 28.722 17.778 50.055 0 15.89-5.556 30.5-16.556 44.556l-10.389 11.61c-37.777 33.556-60.333 59-69.61 75.668-13.834 24.944-11.334 48-11.334 48 0 17.888 14.556 32.388 32.444 32.388 17.945 0 29.778-12.333 32.39-32.388 0 0 3.333-18.667 10.055-30.89 5.5-10.944 14.055-21.388 25-31.11 29.389-25.056 46.444-40.945 51.889-47.667 14.666-19.5 22.555-44.556 22.555-74.445 0-36.61-12.166-65.944-35.944-87.333-24.445-21.944-56.167-32.333-95.833-32.333m-10.417 357.15c-12.778 0-23.222 3.666-31.111 12.222-9.222 7.889-13.5 18.333-13.5 31.111 0 12.222 4.278 22.611 13.5 31.167 7.889 8.5 18.333 12.778 31.11 12.778 12.279 0 23.223-4.278 32.39-12.167 8.5-8.611 12.778-18.945 12.778-31.778 0-12.778-4.278-23.222-12.778-31.111-8.556-8.556-19.556-12.222-32.39-12.222",fillRule:"evenodd"})),Hz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgQuestionO"},e,{ref:r}),Me.createElement(Iz,null))),Vz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M119.415 524.046c-9.708-9.693-11.278-24.766-2.72-35.554l20.007-25.223c8.201-10.34 23.543-12.936 34.386-5.699l173.175 115.585c9.134 6.097 24.856 5.303 33.384-1.616l457.6-371.25c10.286-8.345 26.397-7.634 35.412 1.368l11.272 11.255c9.81 9.795 9.096 25.343-1.187 35.611l-491.14 490.414c-15.28 15.258-40.369 14.59-56.099-1.116l-214.09-213.775z",fillRule:"nonzero"})),OD=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgSuccess"},e,{ref:r}),Me.createElement(Vz,null))),EZ="",[RD]=wn("cell-group"),$z=e=>{const r=ea(e,{border:!0}),{title:t,border:i,inset:l,card:f}=r,c=f||l,p=()=>Q("div",Object.assign({className:Re(RD({inset:c}),{[Cz]:!c&&i})},{children:r.children})),g=()=>t?Q("div",Object.assign({className:Re(RD("title"))},{children:t})):null;return Be("div",Object.assign({className:r.className,style:r.style},{children:[g(),p()]}))},[dd]=wn("cell"),eC=Object.assign(e=>{const r=()=>Jr(e.label)?Q("div",Object.assign({className:Re(dd("label"),e.labelClass)},{children:e.label})):null,t=()=>Jr(e.title)?Be("div",Object.assign({className:Re(dd("title"),e.titleClass),style:e.titleStyle},{children:[e.title,r()]})):null,i=()=>{const E=Jr(e.title);return Jr(e.children)||Jr(e.value)?Q("div",Object.assign({className:Re(dd("value",{alone:!E}),e.valueClass)},{children:Jr(e.children)?e.children:Q("span",{children:e.value})})):null},l=()=>e.icon?W.cloneElement(e.icon,{className:Re(dd("left-icon"))}):null,f=()=>{if(e.rightIcon)return e.rightIcon;if(e.isLink){const E=Re(dd("right-icon"));return e.arrowDirection==="left"?Q(Fz,{className:E}):e.arrowDirection==="up"?Q(Mz,{className:E}):e.arrowDirection==="down"?Q(Oz,{className:E}):Q(Bz,{className:E})}return null},{className:c,style:p,size:g,center:d,border:m=!0,isLink:C,required:b,onClick:x}=e,_=C||e.clickable,k={center:d,required:b,clickable:_,borderless:!m};return g&&(k[g]=!!g),Be("div",Object.assign({style:p,className:Re(dd(k),c),role:_?"button":void 0,onClick:x},{children:[l(),t(),i(),f(),e.extra]}))},{Group:$z}),AZ="",OZ="";function Pg(e,r){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Pg(e,r)}function FD(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Pg(e,r)}function Yz(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function qz(e,r){e.classList?e.classList.add(r):Yz(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function ND(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Gz(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=ND(e.className,r):e.setAttribute("class",ND(e.className&&e.className.baseVal||"",r))}const MD={disabled:!1};var Kz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.number,wt.exports.shape({enter:wt.exports.number,exit:wt.exports.number,appear:wt.exports.number}).isRequired]):null,Wz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.string,wt.exports.shape({enter:wt.exports.string,exit:wt.exports.string,active:wt.exports.string}),wt.exports.shape({enter:wt.exports.string,enterDone:wt.exports.string,enterActive:wt.exports.string,exit:wt.exports.string,exitDone:wt.exports.string,exitActive:wt.exports.string})]):null;const PD=W.createContext(null);var op="unmounted",Fc="exited",Nc="entering",hd="entered",tC="exiting",ss=function(e){FD(r,e);function r(i,l){var f;f=e.call(this,i,l)||this;var c=l,p=c&&!c.isMounting?i.enter:i.appear,g;return f.appearStatus=null,i.in?p?(g=Fc,f.appearStatus=Nc):g=hd:i.unmountOnExit||i.mountOnEnter?g=op:g=Fc,f.state={status:g},f.nextCallback=null,f}r.getDerivedStateFromProps=function(l,f){var c=l.in;return c&&f.status===op?{status:Fc}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(l){var f=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==Nc&&c!==hd&&(f=Nc):(c===Nc||c===hd)&&(f=tC)}this.updateStatus(!1,f)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var l=this.props.timeout,f,c,p;return f=c=p=l,l!=null&&typeof l!="number"&&(f=l.exit,c=l.enter,p=l.appear!==void 0?l.appear:c),{exit:f,enter:c,appear:p}},t.updateStatus=function(l,f){l===void 0&&(l=!1),f!==null?(this.cancelNextCallback(),f===Nc?this.performEnter(l):this.performExit()):this.props.unmountOnExit&&this.state.status===Fc&&this.setState({status:op})},t.performEnter=function(l){var f=this,c=this.props.enter,p=this.context?this.context.isMounting:l,g=this.props.nodeRef?[p]:[fg.findDOMNode(this),p],d=g[0],m=g[1],C=this.getTimeouts(),b=p?C.appear:C.enter;if(!l&&!c||MD.disabled){this.safeSetState({status:hd},function(){f.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:Nc},function(){f.props.onEntering(d,m),f.onTransitionEnd(b,function(){f.safeSetState({status:hd},function(){f.props.onEntered(d,m)})})})},t.performExit=function(){var l=this,f=this.props.exit,c=this.getTimeouts(),p=this.props.nodeRef?void 0:fg.findDOMNode(this);if(!f||MD.disabled){this.safeSetState({status:Fc},function(){l.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:tC},function(){l.props.onExiting(p),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:Fc},function(){l.props.onExited(p)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(l,f){f=this.setNextCallback(f),this.setState(l,f)},t.setNextCallback=function(l){var f=this,c=!0;return this.nextCallback=function(p){c&&(c=!1,f.nextCallback=null,l(p))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},t.onTransitionEnd=function(l,f){this.setNextCallback(f);var c=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this),p=l==null&&!this.props.addEndListener;if(!c||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var g=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],d=g[0],m=g[1];this.props.addEndListener(d,m)}l!=null&&setTimeout(this.nextCallback,l)},t.render=function(){var l=this.state.status;if(l===op)return null;var f=this.props,c=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var p=_b(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(PD.Provider,{value:null},typeof c=="function"?c(l,p):W.cloneElement(W.Children.only(c),p))},r}(W.Component);ss.contextType=PD,ss.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:wt.exports.shape({current:typeof Element>"u"?wt.exports.any:function(e,r,t,i,l,f){var c=e[r];return wt.exports.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(e,r,t,i,l,f)}}),children:wt.exports.oneOfType([wt.exports.func.isRequired,wt.exports.element.isRequired]).isRequired,in:wt.exports.bool,mountOnEnter:wt.exports.bool,unmountOnExit:wt.exports.bool,appear:wt.exports.bool,enter:wt.exports.bool,exit:wt.exports.bool,timeout:function(r){var t=Kz;r.addEndListener||(t=t.isRequired);for(var i=arguments.length,l=new Array(i>1?i-1:0),f=1;f<i;f++)l[f-1]=arguments[f];return t.apply(void 0,[r].concat(l))},addEndListener:wt.exports.func,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}:{};function pd(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pd,onEntering:pd,onEntered:pd,onExit:pd,onExiting:pd,onExited:pd},ss.UNMOUNTED=op,ss.EXITED=Fc,ss.ENTERING=Nc,ss.ENTERED=hd,ss.EXITING=tC;const BD=ss;var Qz=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return qz(r,i)})},nC=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return Gz(r,i)})},rC=function(e){FD(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(p,g){var d=i.resolveArguments(p,g),m=d[0],C=d[1];i.removeClasses(m,"exit"),i.addClass(m,C?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(p,g)},i.onEntering=function(p,g){var d=i.resolveArguments(p,g),m=d[0],C=d[1],b=C?"appear":"enter";i.addClass(m,b,"active"),i.props.onEntering&&i.props.onEntering(p,g)},i.onEntered=function(p,g){var d=i.resolveArguments(p,g),m=d[0],C=d[1],b=C?"appear":"enter";i.removeClasses(m,b),i.addClass(m,b,"done"),i.props.onEntered&&i.props.onEntered(p,g)},i.onExit=function(p){var g=i.resolveArguments(p),d=g[0];i.removeClasses(d,"appear"),i.removeClasses(d,"enter"),i.addClass(d,"exit","base"),i.props.onExit&&i.props.onExit(p)},i.onExiting=function(p){var g=i.resolveArguments(p),d=g[0];i.addClass(d,"exit","active"),i.props.onExiting&&i.props.onExiting(p)},i.onExited=function(p){var g=i.resolveArguments(p),d=g[0];i.removeClasses(d,"exit"),i.addClass(d,"exit","done"),i.props.onExited&&i.props.onExited(p)},i.resolveArguments=function(p,g){return i.props.nodeRef?[i.props.nodeRef.current,p]:[p,g]},i.getClassNames=function(p){var g=i.props.classNames,d=typeof g=="string",m=d&&g?g+"-":"",C=d?""+m+p:g[p],b=d?C+"-active":g[p+"Active"],x=d?C+"-done":g[p+"Done"];return{baseClassName:C,activeClassName:b,doneClassName:x}},i}var t=r.prototype;return t.addClass=function(l,f,c){var p=this.getClassNames(f)[c+"ClassName"],g=this.getClassNames("enter"),d=g.doneClassName;f==="appear"&&c==="done"&&d&&(p+=" "+d),c==="active"&&l&&l.scrollTop,p&&(this.appliedClasses[f][c]=p,Qz(l,p))},t.removeClasses=function(l,f){var c=this.appliedClasses[f],p=c.base,g=c.active,d=c.done;this.appliedClasses[f]={},p&&nC(l,p),g&&nC(l,g),d&&nC(l,d)},t.render=function(){var l=this.props;l.classNames;var f=_b(l,["classNames"]);return W.createElement(BD,Nr({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(W.Component);rC.defaultProps={classNames:""},rC.propTypes=process.env.NODE_ENV!=="production"?Nr({},BD.propTypes,{classNames:Wz,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}):{};const LD=rC;function pn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const RZ="",[Zz]=wn("overlay"),Xz=e=>{const r=W.useRef(null),t=ea(e,{stopPropagation:["click"],lockScroll:!0,duration:300}),{visible:i,duration:l}=t,f=p=>{t.lockScroll&&q2(p,!0)},c=()=>{const p=Object.assign(Object.assign({zIndex:t.zIndex!==void 0?+t.zIndex:void 0,touchAction:t.lockScroll&&"none"},t.style),t.customStyle);return Jr(l)&&(p.animationDuration=`${l}ms`),uD(t.stopPropagation,Q("div",Object.assign({ref:r,style:p,onClick:g=>{var d;g.target===g.currentTarget&&((d=t.onClick)===null||d===void 0||d.call(t,g))},className:Re(Zz(),t.className)},{children:t.children})))};return W2("touchmove",f,{target:r}),Q(LD,Object.assign({nodeRef:r,mountOnEnter:!0,unmountOnExit:!0,in:i,timeout:l,classNames:"rv-fade"},{children:c()}))};function Jz(e){const{interceptor:r,args:t,done:i,canceled:l}=e;if(r){const f=r.apply(null,t||[]);IL(f)?f.then(c=>{c?i():l&&l()}).catch(Mi):f?i():l&&l()}else i()}function aC(e){return(typeof e=="function"?e():e)||document.body}function Bg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function eU(e,r){if(Bg()&&e){const t=aC(e);return tu.exports.createPortal(r,t)}return r}const tU=W.createContext({});let zD=!1;if(Bg())try{const e={};Object.defineProperty(e,"passive",{get(){zD=!0}}),window.addEventListener("test-passive",null,e)}catch{}let lp=0;const UD="rv-overflow-hidden";function nU(e,r){const t=_D(),i=c=>{t.move(c);const p=t.deltaY.current>0?"10":"01",g=cz(c.target,e.current);if(!g)return;const{scrollHeight:d,offsetHeight:m,scrollTop:C}=g;let b="11";C===0?b=m>=d?"00":"01":C+m>=d&&(b="10"),b!=="11"&&t.isVertical()&&!(parseInt(b,2)&parseInt(p,2))&&c.cancelable&&c.preventDefault()},l=()=>{document.addEventListener("touchstart",t.start),document.addEventListener("touchmove",i,zD?{passive:!1}:!1),lp||document.body.classList.add(UD),lp++},f=()=>{lp&&(document.removeEventListener("touchstart",t.start),document.removeEventListener("touchmove",i),lp--,lp||document.body.classList.remove(UD))};W.useEffect(()=>{if(r)return l(),()=>{f()}},[r])}let jD=2e3;const[Lg]=wn("popup"),sp=W.forwardRef((e,r)=>{var t;const i=ea(e,{duration:300,overlay:!0,lockScroll:!0,position:"center",closeIcon:Q(J2,{}),closeIconPosition:"top-right",closeOnClickOverlay:!0,stopPropagation:["click"],teleport:()=>document.body}),{round:l,closeable:f,title:c,description:p,children:g,duration:d,closeIcon:m,position:C}=i,b=W.useRef(!1),x=W.useRef((t=i.zIndex)!==null&&t!==void 0?t:jD),_=W.useRef(),[k,E]=W.useState(i.visible),[A,T]=W.useState(k),D=W.useMemo(()=>{const V=Object.assign({zIndex:x.current},i.style);if(Jr(i.duration)){const K=i.position==="center"?"animationDuration":"transitionDuration";V[K]=`${i.duration}ms`}return V},[x.current,i.position,i.style,i.duration]),R=()=>{var V;i.zIndex!==void 0?x.current=+i.zIndex:x.current=jD++,b.current=!0,(V=i.onOpen)===null||V===void 0||V.call(i)},N=()=>{Jz({interceptor:i.beforeClose,args:["close"],done:()=>{var V;b.current=!1,(V=i.onClose)===null||V===void 0||V.call(i)}})},z=V=>{var K;(K=i.onClickOverlay)===null||K===void 0||K.call(i,V),i.closeOnClickOverlay&&N()},M=()=>i.overlay?Q(Xz,{visible:k,className:i.overlayClass,customStyle:i.overlayStyle,zIndex:x.current,duration:d,onClick:z}):null,I=V=>{i.onClickCloseIcon&&i.onClickCloseIcon(V),N()},Y=()=>{if(f){const{closeIconPosition:V}=i;return m?Q("div",Object.assign({className:Re(Lg("close-icon",V)),onClick:I},{children:m})):null}return null},B=()=>c?Q("div",Object.assign({className:Re(Lg("title"))},{children:c})):null,P=()=>p?Q("div",Object.assign({className:Re(Lg("description"))},{children:p})):null,U=()=>{const{safeAreaInsetBottom:V}=i;return uD(i.stopPropagation,Be("div",Object.assign({ref:_,style:Object.assign(Object.assign({},D),{display:!k&&!A?"none":void 0}),className:Re(Lg({round:l,[C]:C}),{"rv-safe-area-bottom":V},i.className),onClick:i.onClick},{children:[B(),P(),g,Y()]})))},H=()=>{const{transition:V,destroyOnClose:K,forceRender:ee}=i,J=C==="center"?"rv-fade":`rv-popup-slide-${C}`;return Q(LD,Object.assign({in:k,nodeRef:_,timeout:d,classNames:V||J,mountOnEnter:!ee,unmountOnExit:K,onEnter:R,onEntered:i.onOpened,onExited:()=>{var q;T(!1),(q=i.onClosed)===null||q===void 0||q.call(i)}},{children:U()}))};return W2("popstate",()=>{i.closeOnPopstate&&N()}),tp(()=>{k&&T(!0)},[k]),tp(()=>{E(i.visible)},[i.visible]),nU(_,k&&i.lockScroll),W.useImperativeHandle(r,()=>({popupRef:_})),eU(i.teleport,Be(tU.Provider,Object.assign({value:{visible:k}},{children:[M(),H()]})))}),PZ="",ID=W.createContext({}),[rU]=wn("action-bar"),aU=e=>{const r=ea(e,{safeAreaInsetBottom:!0}),t=W.useMemo(()=>W.Children.toArray(r.children),[r.children]);return Q(ID.Provider,Object.assign({value:{parent:{children:t}}},{children:Q("div",Object.assign({className:Re(r.className,rU(),{"rv-safe-area-bottom":r.safeAreaInsetBottom}),style:r.style},{children:W.Children.toArray(r.children).filter(Boolean).map((i,l)=>W.cloneElement(i,{index:l}))}))}))},[HD]=wn("action-bar-icon"),iU=e=>{const r=()=>{const{badge:t,icon:i}=e;return i?Q(Dz,Object.assign({},t,{className:Re(HD("icon"))},{children:i})):null};return Be("div",Object.assign({role:"button",className:Re(e.className,HD()),style:e.style,tabIndex:0,onClick:e.onClick},{children:[r(),e.children||e.text]}))},[oU]=wn("action-bar-button"),lU=Object.assign(e=>{const{type:r,icon:t,text:i,color:l,loading:f,disabled:c,index:p}=e,{parent:g}=W.useContext(ID),d=W.useMemo(()=>{if(g){const C=g.children[p-1];return!(C&&"isButton"in C.type)}return!1},[p,g]),m=W.useMemo(()=>{if(g){const C=g.children[p+1];return!(C&&"isButton"in C.type)}return!1},[p,g]);return Q(ip,Object.assign({className:Re(e.className,oU([r,{last:m,first:d}])),style:e.style,size:"large",type:r,icon:t,color:l,loading:f,disabled:c,onClick:e.onClick},{children:e.children?e.children:i}))},{isButton:!0}),iC=Object.assign(aU,{Icon:iU,Button:lU});function sU(e,r,t){const i=r[t];Jr(i)&&(!Object.prototype.hasOwnProperty.call(e,t)||!cd(i)?e[t]=i:e[t]=VD(Object(e[t]),r[t]))}function VD(e,r){return Object.keys(r).forEach(t=>{sU(e,r,t)}),e}const uU={locale:VD({name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanPicker:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新...",loading:"加载中..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌信息"},vanAddressList:{add:"新增地址"}},{})},vd=W.createContext(uU),[Co]=wn("dialog"),$D=e=>{const{locale:r}=W.useContext(vd),t=ea(e,{transition:"rv-dialog-bounce",showConfirmButton:!0,closeOnPopstate:!0}),{width:i,title:l,theme:f,visible:c,message:p,className:g,messageAlign:d,closeOnClickOverlay:m,onClickCloseIcon:C}=t,b=$a(t,["width","title","theme","visible","message","className","messageAlign","closeOnClickOverlay","onClickCloseIcon"]),x=()=>t.title?Q("div",Object.assign({className:Re(Co("header",{isolated:!t.message&&!t.children}))},{children:l})):null,_=()=>t.children?Q("div",Object.assign({className:Re(Co("content"))},{children:t.children})):p?Q("div",Object.assign({className:Re(Co("content",{isolated:!l}))},{children:Q("div",Object.assign({className:Re(Co("message",{"has-title":l,[d]:d}))},{children:p}))})):null,k=()=>{var T,D,R,N,z,M;return Be("div",Object.assign({className:Re(yz,Co("footer"))},{children:[t.showCancelButton&&Q(ip,{size:"large",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),style:{color:t.cancelButtonColor},loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(ip,{size:"large",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm"),{[xz]:t.showCancelButton}),round:f==="round-button"||void 0,style:{color:t.confirmButtonColor},loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},E=()=>{var T,D,R,N,z,M;return Be(iC,Object.assign({className:Re(Co("footer"))},{children:[t.showCancelButton&&Q(iC.Button,{type:"warning",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),color:t.cancelButtonColor,loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(iC.Button,{type:"danger",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm")),color:t.confirmButtonColor,loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},A=()=>t.footer?t.footer:t.theme==="round-button"?E():k();return Be(sp,Object.assign({},b,{visible:c,className:Re(Co([f]),g),style:{width:dl(i)},"aria-labelledby":l||p,closeOnClickOverlay:m,onClickCloseIcon:C,onClose:t.onClose,onClosed:t.onClosed},{children:[x(),_(),A()]}))};Number((W.version||"").split(".")[0]);const cU=Number((tu.exports.version||"").split(".")[0]),zg=Object.assign({},v9),{render:fU,unmountComponentAtNode:dU}=zg;let Ug;try{cU>=18&&zg.createRoot&&(Ug=zg.createRoot)}catch{}function YD(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:r}=zg;r&&typeof r=="object"&&(r.usingClientEntryPoint=e)}const jg="__react_vant_root__";function hU(e,r){fU(e,r)}function pU(e,r){YD(!0);const t=r[jg]||Ug(r);YD(!1),t.render(e),r[jg]=t}function qD(e,r){if(Ug){pU(e,r);return}hU(e,r)}function vU(e){return dU(e)}function mU(e){return Z2(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var r;(r=e[jg])===null||r===void 0||r.unmount(),delete e[jg]})})}function GD(e){return Ug?mU(e):vU(e)}const md=$D;md.show=e=>{if(!Bg())return null;const r={overlay:!0,closeable:!1,closeIcon:Q(J2,{}),lockScroll:!0,transition:"rv-dialog-bounce",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1},{onClosed:t,onCancel:i=Mi,onConfirm:l=Mi,onClose:f=Mi,cancelProps:c,confirmProps:p}=e,g=$a(e,["onClosed","onCancel","onConfirm","onClose","cancelProps","confirmProps"]),d=aC(e.teleport),m=document.createElement("div");d.appendChild(m);let C=Mi;return qD(Q(()=>{const[x,_]=W.useState(!1),[k,E]=W.useState(!1),[A,T]=W.useState(!1);W.useEffect(()=>{_(!0)},[]),C=()=>{_(!1),f&&f()};const D=()=>{t&&t(),GD(m)&&m.parentNode&&m.parentNode.removeChild(m)},R=z=>Z2(void 0,void 0,void 0,function*(){const M=setTimeout(()=>T(!0));(yield l(z))!==!1?(clearTimeout(M),C()):(clearTimeout(M),T(!1))}),N=(z,M)=>Z2(void 0,void 0,void 0,function*(){if(M){C();return}const I=setTimeout(()=>E(!0));(yield i(z))!==!1?(clearTimeout(I),C()):(clearTimeout(I),E(!1))});return Q($D,Object.assign({},r,g,{visible:x,teleport:()=>m,cancelProps:Object.assign({loading:k},c),confirmProps:Object.assign({loading:A},p),onClose:C,onCancel:N,onConfirm:R,onClosed:D}))},{}),m),C},md.alert=e=>{const{onConfirm:r=Mi}=e;return new Promise(t=>{md.show(Object.assign(Object.assign({},e),{onConfirm:i=>{r(i),t(i)}}))})},md.confirm=e=>{const{onCancel:r=Mi,onConfirm:t=Mi}=e;return new Promise((i,l)=>{md.show(Object.assign(Object.assign({showCancelButton:!0},e),{onCancel:f=>{r(f),l()},onConfirm:f=>{t(f),i(!0)}}))})};const gU=md,[up]=wn("input"),yU=W.forwardRef((e,r)=>{const t=ea(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),i=W.useRef(),[l,f]=W.useState(!1),c=W.useRef(!1),[p,g]=np(t),{className:d,style:m,align:C,type:b,name:x,placeholder:_,disabled:k,readOnly:E,maxLength:A,autoFocus:T}=t,D=()=>{i!=null&&i.current&&i.current.focus()},R=()=>{i!=null&&i.current&&i.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{g("")},focus:D,blur:R,get nativeElement(){return i.current}}));const N=W.useMemo(()=>{if(t.clearable&&!E){const U=p!=="",H=t.clearTrigger==="always"||t.clearTrigger==="focus"&&l;return U&&H}return!1},[p,t.clearTrigger,l]),z=U=>{var H;let V=U;if(!c.current&&(Jr(A)&&V.length>+A&&(V=V.slice(0,A),(H=t.onOverlimit)===null||H===void 0||H.call(t)),b==="number"||b==="digit")){const K=b==="number";V=nz(V,K,K)}g(V)},M=U=>{var H;f(!0),(H=t.onFocus)===null||H===void 0||H.call(t,U),E&&R()},I=U=>{var H;f(!1),(H=t.onBlur)===null||H===void 0||H.call(t,U),dD()},Y=U=>{var H;(U.key==="Enter"||+U.charCode==13)&&(q2(U),t.type==="search"&&R()),(H=t.onKeyPress)===null||H===void 0||H.call(t,U)},B=()=>{let U=b,H;return b==="number"&&(U="text",H="decimal"),b==="digit"&&(U="tel",H="numeric"),Q("input",{value:p,type:U,inputMode:H,ref:i,name:x,className:Re(up("control")),disabled:k,autoFocus:T,readOnly:E,placeholder:_||"",onBlur:I,onFocus:M,onChange:V=>{var K;return z((K=V==null?void 0:V.currentTarget)===null||K===void 0?void 0:K.value)},onKeyPress:Y,autoCapitalize:t.autoCapitalize,autoCorrect:t.autoCorrect,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onCompositionStart:V=>{var K;c.current=!0,(K=t.onCompositionStart)===null||K===void 0||K.call(t,V)},onCompositionEnd:V=>{var K,ee;c.current=!1,(K=t.onCompositionEnd)===null||K===void 0||K.call(t,V),z((ee=V==null?void 0:V.currentTarget)===null||ee===void 0?void 0:ee.value)},onClick:t.onClick})},P=U=>{var H;g(""),(H=t.onClear)===null||H===void 0||H.call(t,U)};return Be("div",Object.assign({className:Re(up([C]),d),style:m},{children:[t.prefix&&Q("div",Object.assign({className:Re(up("prefix"))},{children:t.prefix})),B(),N&&W.cloneElement(t.clearIcon||Q(Mg,{}),{className:Re(up("clear")),onTouchStart:P}),t.suffix&&Q("div",Object.assign({className:Re(up("suffix"))},{children:t.suffix}))]}))}),[cp]=wn("textarea"),xU=W.forwardRef((e,r)=>{const t=ea(e,{rows:2,clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),[i,l]=W.useState(!1),f=W.useRef(),c=W.useRef(!1),[p,g]=np(t),{className:d,style:m,name:C,rows:b,placeholder:x,disabled:_,readOnly:k,maxLength:E,showWordLimit:A,autoFocus:T}=t,D=()=>{f!=null&&f.current&&f.current.focus()},R=()=>{f!=null&&f.current&&f.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{g("")},focus:D,blur:R,get nativeElement(){return f.current}}));const N=()=>{const H=f.current;if(!H)return;H.style.height="auto";let V=H.scrollHeight;if(cd(t.autoSize)){const{maxHeight:K,minHeight:ee}=t.autoSize;K&&(V=Math.min(V,K)),ee&&(V=Math.max(V,ee))}V&&(H.style.height=`${V}px`)};W.useEffect(()=>{N()},[p]);const z=W.useMemo(()=>cp("control",[{"min-height":!t.autoSize,clear:t.clearable}]),[t.autoSize]),M=H=>{var V;let K=H;c.current||Jr(E)&&K.length>+E&&(K=K.slice(0,E),(V=t.onOverlimit)===null||V===void 0||V.call(t)),g(K)},I=H=>{var V;l(!0),(V=t.onFocus)===null||V===void 0||V.call(t,H),k&&R()},Y=H=>{var V;l(!1),(V=t.onBlur)===null||V===void 0||V.call(t,H),dD()},B=()=>{if(A){const H=(p?`${p}`:"").length;return Q("div",Object.assign({className:Re(cp("word-limit"))},{children:typeof A=="function"?A({currentCount:H,maxLength:E}):Be(en,{children:[Q("span",Object.assign({className:Re(cp("word-num"))},{children:H})),E?`/${E}`:!1]})}))}return null},P=H=>{var V;g(""),(V=t.onClear)===null||V===void 0||V.call(t,H)},U=W.useMemo(()=>{if(t.clearable&&!k){const H=p!=="",V=t.clearTrigger==="always"||t.clearTrigger==="focus"&&i;return H&&V}return!1},[p,t.clearTrigger,i]);return Be("div",Object.assign({className:Re(cp(),d),style:m},{children:[Q("textarea",{ref:f,name:C,rows:b,className:Re(z),value:p,disabled:_,autoFocus:T,readOnly:k,placeholder:x||"",onBlur:Y,onFocus:I,onChange:H=>{var V;return M((V=H==null?void 0:H.currentTarget)===null||V===void 0?void 0:V.value)},onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,autoComplete:t.autoComplete,onCompositionStart:H=>{var V;c.current=!0,(V=t.onCompositionStart)===null||V===void 0||V.call(t,H)},onCompositionEnd:H=>{var V,K;c.current=!1,(V=t.onCompositionEnd)===null||V===void 0||V.call(t,H),M((K=H==null?void 0:H.currentTarget)===null||K===void 0?void 0:K.value)},onClick:t.onClick}),U&&W.cloneElement(t.clearIcon,{className:Re(cp("clear")),onTouchStart:P}),B()]}))}),WZ="",QZ="",cu=Object.assign(yU,{TextArea:xU}),[Pi]=wn("field"),bU=W.forwardRef((e,r)=>{var t;const i=ea(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",formatTrigger:"onChange",defaultValue:""}),l=W.useRef(null),f=W.useRef(null),c=i.type==="textarea"?f:l,p=()=>{c.current&&c.current.focus()},g=()=>{c.current&&c.current.blur()},d=()=>{c.current&&c.current.clear()};W.useImperativeHandle(r,()=>({focus:p,blur:g,clear:d,get nativeElement(){return c.current.nativeElement}}));const m=$=>Jr(i[$])?i[$]:null,C=()=>{const $=m("labelWidth");return $?{width:dl($)}:{}},b=($,ne="onChange")=>{const{formatTrigger:oe,formatter:ae}=i;return ae&&ne===oe?ae($):$},x=$=>{var ne;(ne=i.onChange)===null||ne===void 0||ne.call(i,b($))},_=()=>{const{value:$,defaultValue:ne,align:oe,type:ae,placeholder:se,name:ve,maxLength:we,disabled:ce,readOnly:ye,clearable:De,clearIcon:Pe,clearTrigger:ke,autoFocus:ze,onClear:Ne,onBlur:dt,onFocus:Xe,onKeyPress:Zt,onOverlimit:sn}=i;if(Jr(i.children))return Q("div",Object.assign({className:Re(Pi("children"))},{children:i.children}));const kn={value:$,onChange:x,placeholder:se,name:ve,defaultValue:ne,disabled:ce,clearable:De,clearIcon:Pe,clearTrigger:ke,onClear:Ne,onBlur:dt,onFocus:Xe,onKeyPress:Zt,onOverlimit:sn,autoFocus:ze,readOnly:ye,maxLength:we,onClick:i.onClickInput};return ae==="textarea"?Q(cu.TextArea,Object.assign({ref:f,autoSize:i.autoSize,showWordLimit:i.showWordLimit,rows:i.rows},kn)):Q(cu,Object.assign({ref:l,type:ae,align:oe},kn))},k=()=>{const{leftIcon:$,onClickLeftIcon:ne}=i;return $?Q("div",Object.assign({className:Re(Pi("left-icon")),onClick:ne},{children:$})):null},E=()=>{const{rightIcon:$,onClickRightIcon:ne}=i;return $?Q("div",Object.assign({className:Re(Pi("right-icon")),onClick:ne},{children:$})):null},A=()=>{const $=i.errorMessage;return $?Q("div",Object.assign({className:Re(Pi("error-message"))},{children:$})):null},T=()=>i.intro?Q("div",Object.assign({className:Re(Pi("intro"))},{children:i.intro})):null,D=()=>{const{tooltip:$}=i;if($){let ne=Q(Hz,{}),oe={message:$};if(!(W.isValidElement($)||typeof $=="string")){const ae=$,{icon:se}=ae,ve=$a(ae,["icon"]);ne=se||ne,oe=ve}return Q("div",Object.assign({className:Re(Pi("tooltip")),onClick:()=>gU.show(oe)},{children:ne}))}return null},R=()=>{const{label:$,colon:ne}=i;return $?Be(en,{children:[$,!!ne&&":",D()]}):null},{size:N,center:z,border:M,isLink:I,required:Y,clickable:B,labelAlign:P,className:U,labelClass:H,valueClass:V,controlAlign:K,arrowDirection:ee,disabled:J,titleStyle:q,error:te}=i,Z=(t=i.suffix)!==null&&t!==void 0?t:i.button;return Be(eC,Object.assign({title:R(),size:N,icon:k(),center:z,border:M,isLink:I,required:Y,clickable:B,extra:i.extra,titleStyle:Object.assign(Object.assign({},C()),q),valueClass:Re(Pi("value",[K]),V),titleClass:Re(Pi("label",P),H),arrowDirection:ee,onClick:i.onClick,style:i.style,className:Re(Pi({error:te,disabled:J,[`label-${P}`]:P}),U)},{children:[Be("div",Object.assign({className:Re(Pi("body"))},{children:[i.prefix&&Q("div",Object.assign({className:Re(Pi("prefix"))},{children:i.prefix})),Q("div",Object.assign({className:Re(Pi("control-wrapper"))},{children:_()})),E(),Z&&Q("div",Object.assign({className:Re(Pi("suffix"))},{children:Z}))]})),A(),T()]}))}),CU=Symbol("field"),oC=Object.assign(bU,{[_z]:CU});function wU(e,r,t){return Math.max(r,Math.min(e,t))}const Ea={toVector(e,r){return e===void 0&&(e=r),Array.isArray(e)?e:[e,e]},add(e,r){return[e[0]+r[0],e[1]+r[1]]},sub(e,r){return[e[0]-r[0],e[1]-r[1]]},addTo(e,r){e[0]+=r[0],e[1]+=r[1]},subTo(e,r){e[0]-=r[0],e[1]-=r[1]}};function KD(e,r,t){return r===0||Math.abs(r)===1/0?Math.pow(e,t*5):e*r*t/(r+t*e)}function WD(e,r,t,i=.15){return i===0?wU(e,r,t):e<r?-KD(r-e,t-r,i)+r:e>t?+KD(e-t,t-r,i)+t:e}function _U(e,[r,t],[i,l]){const[[f,c],[p,g]]=e;return[WD(r,f,c,i),WD(t,p,g,l)]}function si(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function QD(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function ar(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?QD(Object(t),!0).forEach(function(i){si(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):QD(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}const ZD={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function XD(e){return e?e[0].toUpperCase()+e.slice(1):""}const SU=["enter","leave"];function EU(e=!1,r){return e&&!SU.includes(r)}function DU(e,r="",t=!1){const i=ZD[e],l=i&&i[r]||r;return"on"+XD(e)+XD(l)+(EU(t,l)?"Capture":"")}const kU=["gotpointercapture","lostpointercapture"];function TU(e){let r=e.substring(2).toLowerCase();const t=!!~r.indexOf("passive");t&&(r=r.replace("passive",""));const i=kU.includes(r)?"capturecapture":"capture",l=!!~r.indexOf(i);return l&&(r=r.replace("capture","")),{device:r,capture:l,passive:t}}function AU(e,r=""){const t=ZD[e],i=t&&t[r]||r;return e+i}function Ig(e){return"touches"in e}function JD(e){return Ig(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function OU(e){return Array.from(e.touches).filter(r=>{var t,i;return r.target===e.currentTarget||((t=e.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,r.target))})}function RU(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function ek(e){return Ig(e)?RU(e)[0]:e}function FU(e){return OU(e).map(r=>r.identifier)}function lC(e){const r=ek(e);return Ig(e)?r.identifier:r.pointerId}function tk(e){const r=ek(e);return[r.clientX,r.clientY]}function NU(e){const r={};if("buttons"in e&&(r.buttons=e.buttons),"shiftKey"in e){const{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f}=e;Object.assign(r,{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f})}return r}function Hg(e,...r){return typeof e=="function"?e(...r):e}function MU(){}function PU(...e){return e.length===0?MU:e.length===1?e[0]:function(){let r;for(const t of e)r=t.apply(this,arguments)||r;return r}}function nk(e,r){return Object.assign({},r,e||{})}const BU=32;class LU{constructor(r,t,i){this.ctrl=r,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:t,ingKey:i,args:l}=this;t[i]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=l,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=r.target,t.currentTarget=r.currentTarget,t.lastOffset=i.from?Hg(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=r.timeStamp}computeValues(r){const t=this.state;t._values=r,t.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:t,config:i,shared:l}=this;t.args=this.args;let f=0;if(r&&(t.event=r,i.preventDefault&&r.cancelable&&t.event.preventDefault(),t.type=r.type,l.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,l.locked=!!document.pointerLockElement,Object.assign(l,NU(r)),l.down=l.pressed=l.buttons%2===1||l.touches>0,f=r.timeStamp-t.timeStamp,t.timeStamp=r.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const z=t._delta.map(Math.abs);Ea.addTo(t._distance,z)}this.axisIntent&&this.axisIntent(r);const[c,p]=t._movement,[g,d]=i.threshold,{_step:m,values:C}=t;if(i.hasCustomTransform?(m[0]===!1&&(m[0]=Math.abs(c)>=g&&C[0]),m[1]===!1&&(m[1]=Math.abs(p)>=d&&C[1])):(m[0]===!1&&(m[0]=Math.abs(c)>=g&&Math.sign(c)*g),m[1]===!1&&(m[1]=Math.abs(p)>=d&&Math.sign(p)*d)),t.intentional=m[0]!==!1||m[1]!==!1,!t.intentional)return;const b=[0,0];if(i.hasCustomTransform){const[z,M]=C;b[0]=m[0]!==!1?z-m[0]:0,b[1]=m[1]!==!1?M-m[1]:0}else b[0]=m[0]!==!1?c-m[0]:0,b[1]=m[1]!==!1?p-m[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(b);const x=t.offset,_=t._active&&!t._blocked||t.active;_&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=l[this.ingKey]=t._active,r&&(t.first&&("bounds"in i&&(t._bounds=Hg(i.bounds,t)),this.setup&&this.setup()),t.movement=b,this.computeOffset()));const[k,E]=t.offset,[[A,T],[D,R]]=t._bounds;t.overflow=[k<A?-1:k>T?1:0,E<D?-1:E>R?1:0],t._movementBound[0]=t.overflow[0]?t._movementBound[0]===!1?t._movement[0]:t._movementBound[0]:!1,t._movementBound[1]=t.overflow[1]?t._movementBound[1]===!1?t._movement[1]:t._movementBound[1]:!1;const N=t._active?i.rubberband||[0,0]:[0,0];if(t.offset=_U(t._bounds,t.offset,N),t.delta=Ea.sub(t.offset,x),this.computeMovement(),_&&(!t.last||f>BU)){t.delta=Ea.sub(t.offset,x);const z=t.delta.map(Math.abs);Ea.addTo(t.distance,z),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&f>0&&(t.velocity=[z[0]/f,z[1]/f])}}emit(){const r=this.state,t=this.shared,i=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!i.triggerAllEvents)return;const l=this.handler(ar(ar(ar({},t),r),{},{[this.aliasKey]:r.values}));l!==void 0&&(r.memo=l)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function zU([e,r],t){const i=Math.abs(e),l=Math.abs(r);if(i>l&&i>t)return"x";if(l>i&&l>t)return"y"}class UU extends LU{constructor(...r){super(...r),si(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Ea.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Ea.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const t=this.state,i=this.config;if(!t.axis&&r){const l=typeof i.axisThreshold=="object"?i.axisThreshold[JD(r)]:i.axisThreshold;t.axis=zU(t._movement,l)}t._blocked=(i.lockDirection||!!i.axis)&&!t.axis||!!i.axis&&i.axis!==t.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const rk=e=>e,ak=.15,sC={enabled(e=!0){return e},eventOptions(e,r,t){return ar(ar({},t.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ak,ak];case!1:return[0,0];default:return Ea.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Ea.toVector(e)},transform(e,r,t){const i=e||t.shared.transform;if(this.hasCustomTransform=!!i,process.env.NODE_ENV==="development"){const l=i||rk;return f=>{const c=l(f);return!isFinite(c[0])||isFinite(c[1]),c}}return i||rk},threshold(e){return Ea.toVector(e,0)}};process.env.NODE_ENV==="development"&&Object.assign(sC,{domTarget(e){if(e!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(e){if(e!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(e){if(e!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const jU=0,fp=ar(ar({},sC),{},{axis(e,r,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(e=jU){return e},bounds(e={}){if(typeof e=="function")return f=>fp.bounds(e(f));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:r=-1/0,right:t=1/0,top:i=-1/0,bottom:l=1/0}=e;return[[r,t],[i,l]]}}),Vg=10,ik={ArrowRight:(e=1)=>[Vg*e,0],ArrowLeft:(e=1)=>[-Vg*e,0],ArrowUp:(e=1)=>[0,-Vg*e],ArrowDown:(e=1)=>[0,Vg*e]};class IU extends UU{constructor(...r){super(...r),si(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const t=r._bounds.getBoundingClientRect(),i=r.currentTarget.getBoundingClientRect(),l={left:t.left-i.left+r.offset[0],right:t.right-i.right+r.offset[0],top:t.top-i.top+r.offset[1],bottom:t.bottom-i.bottom+r.offset[1]};r._bounds=fp.bounds(l)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const t=this.config,i=this.state;if(r.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(r.buttons):t.pointerButtons!==-1&&t.pointerButtons!==r.buttons))return;const l=this.ctrl.setEventIds(r);t.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(l&&l.size>1&&i._pointerActive)&&(this.start(r),this.setupPointer(r),i._pointerId=lC(r),i._pointerActive=!0,this.computeValues(tk(r)),this.computeInitial(),t.preventScrollAxis&&JD(r)!=="mouse"?(i._active=!1,this.setupScrollPrevention(r)):t.delay>0?(this.setupDelayTrigger(r),t.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const t=this.state,i=this.config;if(!t._pointerActive||t.type===r.type&&r.timeStamp===t.timeStamp)return;const l=lC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;const f=tk(r);if(document.pointerLockElement===r.target?t._delta=[r.movementX,r.movementY]:(t._delta=Ea.sub(f,t._values),this.computeValues(f)),Ea.addTo(t._movement,t._delta),this.compute(r),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(r);return}if(i.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{process.env.NODE_ENV}const t=this.state,i=this.config;if(!t._active||!t._pointerActive)return;const l=lC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[f,c]=t._distance;if(t.tap=f<=i.tapsThreshold&&c<=i.tapsThreshold,t.tap&&i.filterTaps)t._force=!0;else{const[p,g]=t.direction,[d,m]=t.velocity,[C,b]=t.movement,[x,_]=i.swipe.velocity,[k,E]=i.swipe.distance,A=i.swipe.duration;t.elapsedTime<A&&(Math.abs(d)>x&&Math.abs(C)>k&&(t.swipe[0]=p),Math.abs(m)>_&&Math.abs(b)>E&&(t.swipe[1]=g))}this.emit()}pointerClick(r){this.state.tap||(r.preventDefault(),r.stopPropagation())}setupPointer(r){const t=this.config,i=t.device;if(process.env.NODE_ENV==="development")try{if(i==="pointer"&&t.preventScrollDelay===void 0){const l="uv"in r?r.sourceEvent.currentTarget:r.currentTarget;window.getComputedStyle(l).touchAction}}catch{}t.pointerLock&&r.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,HU(r);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const t=ik[r.key];if(t){const i=this.state,l=r.shiftKey?10:r.altKey?.1:1;this.start(r),i._delta=t(l),i._keyboardActive=!0,Ea.addTo(i._movement,i._delta),this.compute(r),this.emit()}}keyUp(r){r.key in ik&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const t=this.config.device;r(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(t,"change",this.pointerMove.bind(this)),r(t,"end",this.pointerUp.bind(this)),r(t,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function HU(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const dp=typeof window<"u"&&window.document&&window.document.createElement;function VU(){return dp&&"ontouchstart"in window}function ok(){return VU()||dp&&window.navigator.maxTouchPoints>1}function $U(){return dp&&"onpointerdown"in window}function YU(){return dp&&"exitPointerLock"in window.document}function qU(){try{return"constructor"in GestureEvent}catch{return!1}}const eo={isBrowser:dp,gesture:qU(),touch:ok(),touchscreen:ok(),pointer:$U(),pointerLock:YU()},GU=250,KU=180,WU=.5,QU=50,ZU=250,lk={mouse:0,touch:0,pen:8},sk=ar(ar({},fp),{},{device(e,r,{pointer:{touch:t=!1,lock:i=!1,mouse:l=!1}={}}){return this.pointerLock=i&&eo.pointerLock,eo.touch&&t?"touch":this.pointerLock?"mouse":eo.pointer&&!l?"pointer":eo.touch?"touch":"mouse"},preventScrollAxis(e,r,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&e?GU:void 0,!(!eo.touchscreen||t===!1))return e||(t!==void 0?"y":void 0)},pointerCapture(e,r,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},keys(e=!0){return e},threshold(e,r,{filterTaps:t=!1,tapsThreshold:i=3,axis:l=void 0}){const f=Ea.toVector(e,t?i:l?1:0);return this.filterTaps=t,this.tapsThreshold=i,f},swipe({velocity:e=WU,distance:r=QU,duration:t=ZU}={}){return{velocity:this.transform(Ea.toVector(e)),distance:this.transform(Ea.toVector(r)),duration:t}},delay(e=0){switch(e){case!0:return KU;case!1:return 0;default:return e}},axisThreshold(e){return e?ar(ar({},lk),e):lk}});process.env.NODE_ENV==="development"&&Object.assign(sk,{useTouch(e){if(e!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(e){if(e!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}}),ar(ar({},sC),{},{device(e,r,{shared:t,pointer:{touch:i=!1}={}}){if(t.target&&!eo.touch&&eo.gesture)return"gesture";if(eo.touch&&i)return"touch";if(eo.touchscreen){if(eo.pointer)return"pointer";if(eo.touch)return"touch"}},bounds(e,r,{scaleBounds:t={},angleBounds:i={}}){const l=c=>{const p=nk(Hg(t,c),{min:-1/0,max:1/0});return[p.min,p.max]},f=c=>{const p=nk(Hg(i,c),{min:-1/0,max:1/0});return[p.min,p.max]};return typeof t!="function"&&typeof i!="function"?[l(),f()]:c=>[l(c),f(c)]},threshold(e,r,t){return this.lockDirection=t.axis==="lock",Ea.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e}}),ar(ar({},fp),{},{mouseOnly:(e=!0)=>e}),ar(ar({},fp),{},{mouseOnly:(e=!0)=>e});const uk=new Map,uC=new Map;function XU(e){uk.set(e.key,e.engine),uC.set(e.key,e.resolver)}const JU={key:"drag",engine:IU,resolver:sk};function ej(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function tj(e,r){if(e==null)return{};var t=ej(e,r),i,l;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(l=0;l<f.length;l++)i=f[l],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}const nj={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=eo.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:r=!1}={}){return{passive:e,capture:r}},transform(e){return e}},rj=["target","eventOptions","window","enabled","transform"];function $g(e={},r){const t={};for(const[i,l]of Object.entries(r))switch(typeof l){case"function":if(process.env.NODE_ENV==="development"){const f=l.call(t,e[i],i,e);Number.isNaN(f)||(t[i]=f)}else t[i]=l.call(t,e[i],i,e);break;case"object":t[i]=$g(e[i],l);break;case"boolean":l&&(t[i]=e[i]);break}return t}function aj(e,r){const t=e,{target:i,eventOptions:l,window:f,enabled:c,transform:p}=t,g=tj(t,rj),d={shared:$g({target:i,eventOptions:l,window:f,enabled:c,transform:p},nj)};if(r){const m=uC.get(r);d[r]=$g(ar({shared:d.shared},g),m)}else for(const m in g){const C=uC.get(m);if(C)d[m]=$g(ar({shared:d.shared},g[m]),C);else if(process.env.NODE_ENV==="development"&&!["drag","pinch","scroll","wheel","move","hover"].includes(m)&&m==="domTarget")throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.")}return d}class ck{constructor(r,t){si(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=t}add(r,t,i,l,f){const c=this._listeners,p=AU(t,i),g=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},d=ar(ar({},g),f);r.addEventListener(p,l,d);const m=()=>{r.removeEventListener(p,l,d),c.delete(m)};return c.add(m),m}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class ij{constructor(){si(this,"_timeouts",new Map)}add(r,t,i=140,...l){this.remove(r),this._timeouts.set(r,window.setTimeout(t,i,...l))}remove(r){const t=this._timeouts.get(r);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}let oj=class{constructor(r){si(this,"gestures",new Set),si(this,"_targetEventStore",new ck(this)),si(this,"gestureEventStores",{}),si(this,"gestureTimeoutStores",{}),si(this,"handlers",{}),si(this,"config",{}),si(this,"pointerIds",new Set),si(this,"touchIds",new Set),si(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),lj(this,r)}setEventIds(r){if(Ig(r))return this.touchIds=new Set(FU(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,t){this.handlers=r,this.nativeHandlers=t}applyConfig(r,t){this.config=aj(r,t)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const t=this.config.shared,i={};let l;if(!(t.target&&(l=t.target(),!l))){if(t.enabled){for(const c of this.gestures){const p=this.config[c],g=fk(i,p.eventOptions,!!l);if(p.enabled){const d=uk.get(c);new d(this,r,c).bind(g)}}const f=fk(i,t.eventOptions,!!l);for(const c in this.nativeHandlers)f(c,"",p=>this.nativeHandlers[c](ar(ar({},this.state.shared),{},{event:p,args:r})),void 0,!0)}for(const f in i)i[f]=PU(...i[f]);if(!l)return i;for(const f in i){const{device:c,capture:p,passive:g}=TU(f);this._targetEventStore.add(l,c,"",i[f],{capture:p,passive:g})}}}};function gd(e,r){e.gestures.add(r),e.gestureEventStores[r]=new ck(e,r),e.gestureTimeoutStores[r]=new ij}function lj(e,r){r.drag&&gd(e,"drag"),r.wheel&&gd(e,"wheel"),r.scroll&&gd(e,"scroll"),r.move&&gd(e,"move"),r.pinch&&gd(e,"pinch"),r.hover&&gd(e,"hover")}const fk=(e,r,t)=>(i,l,f,c={},p=!1)=>{var g,d;const m=(g=c.capture)!==null&&g!==void 0?g:r.capture,C=(d=c.passive)!==null&&d!==void 0?d:r.passive;let b=p?i:DU(i,l,m);t&&C&&(b+="Passive"),e[b]=e[b]||[],e[b].push(f)};function sj(e,r={},t,i){const l=W.useMemo(()=>new oj(e),[]);if(l.applyHandlers(e,i),l.applyConfig(r,t),W.useEffect(l.effect.bind(l)),W.useEffect(()=>l.clean.bind(l),[]),r.target===void 0)return l.bind.bind(l)}function uj(e,r){return XU(JU),sj({drag:e},r||{},"drag")}var cC=pp(),Nt=e=>hp(e,cC),fC=pp();Nt.write=e=>hp(e,fC);var Yg=pp();Nt.onStart=e=>hp(e,Yg);var dC=pp();Nt.onFrame=e=>hp(e,dC);var hC=pp();Nt.onFinish=e=>hp(e,hC);var yd=[];Nt.setTimeout=(e,r)=>{const t=Nt.now()+r,i=()=>{const f=yd.findIndex(c=>c.cancel==i);~f&&yd.splice(f,1),du-=~f?1:0},l={time:t,handler:e,cancel:i};return yd.splice(dk(t),0,l),du+=1,hk(),l};var dk=e=>~(~yd.findIndex(r=>r.time>e)||~yd.length);Nt.cancel=e=>{Yg.delete(e),dC.delete(e),hC.delete(e),cC.delete(e),fC.delete(e)},Nt.sync=e=>{vC=!0,Nt.batchedUpdates(e),vC=!1},Nt.throttle=e=>{let r;function t(){try{e(...r)}finally{r=null}}function i(...l){r=l,Nt.onStart(t)}return i.handler=e,i.cancel=()=>{Yg.delete(t),r=null},i};var pC=typeof window<"u"?window.requestAnimationFrame:()=>{};Nt.use=e=>pC=e,Nt.now=typeof performance<"u"?()=>performance.now():Date.now,Nt.batchedUpdates=e=>e(),Nt.catch=console.error,Nt.frameLoop="always",Nt.advance=()=>{Nt.frameLoop!=="demand"||vk()};var fu=-1,du=0,vC=!1;function hp(e,r){vC?(r.delete(e),e(0)):(r.add(e),hk())}function hk(){fu<0&&(fu=0,Nt.frameLoop!=="demand"&&pC(pk))}function cj(){fu=-1}function pk(){~fu&&(pC(pk),Nt.batchedUpdates(vk))}function vk(){const e=fu;fu=Nt.now();const r=dk(fu);if(r&&(mk(yd.splice(0,r),t=>t.handler()),du-=r),!du){cj();return}Yg.flush(),cC.flush(e?Math.min(64,fu-e):16.667),dC.flush(),fC.flush(),hC.flush()}function pp(){let e=new Set,r=e;return{add(t){du+=r==e&&!e.has(t)?1:0,e.add(t)},delete(t){return du-=r==e&&e.has(t)?1:0,e.delete(t)},flush(t){r.size&&(e=new Set,du-=r.size,mk(r,i=>i(t)&&e.add(i)),du+=e.size,r=e)}}}function mk(e,r){e.forEach(t=>{try{r(t)}catch(i){Nt.catch(i)}})}var fj=Object.defineProperty,dj=(e,r)=>{for(var t in r)fj(e,t,{get:r[t],enumerable:!0})},wo={};dj(wo,{assign:()=>pj,colors:()=>hu,createStringInterpolator:()=>yC,skipAnimation:()=>yk,to:()=>gk,willAdvance:()=>xC});function mC(){}var hj=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function us(e,r){if(Ge.arr(e)){if(!Ge.arr(r)||e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}return e===r}var Wt=(e,r)=>e.forEach(r);function pl(e,r,t){if(Ge.arr(e)){for(let i=0;i<e.length;i++)r.call(t,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&r.call(t,e[i],i)}var Bi=e=>Ge.und(e)?[]:Ge.arr(e)?e:[e];function vp(e,r){if(e.size){const t=Array.from(e);e.clear(),Wt(t,r)}}var mp=(e,...r)=>vp(e,t=>t(...r)),gC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yC,gk,hu=null,yk=!1,xC=mC,pj=e=>{e.to&&(gk=e.to),e.now&&(Nt.now=e.now),e.colors!==void 0&&(hu=e.colors),e.skipAnimation!=null&&(yk=e.skipAnimation),e.createStringInterpolator&&(yC=e.createStringInterpolator),e.requestAnimationFrame&&Nt.use(e.requestAnimationFrame),e.batchedUpdates&&(Nt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(xC=e.willAdvance),e.frameLoop&&(Nt.frameLoop=e.frameLoop)},gp=new Set,to=[],bC=[],qg=0,Gg={get idle(){return!gp.size&&!to.length},start(e){qg>e.priority?(gp.add(e),Nt.onStart(vj)):(xk(e),Nt(CC))},advance:CC,sort(e){if(qg)Nt.onFrame(()=>Gg.sort(e));else{const r=to.indexOf(e);~r&&(to.splice(r,1),bk(e))}},clear(){to=[],gp.clear()}};function vj(){gp.forEach(xk),gp.clear(),Nt(CC)}function xk(e){to.includes(e)||bk(e)}function bk(e){to.splice(mj(to,r=>r.priority>e.priority),0,e)}function CC(e){const r=bC;for(let t=0;t<to.length;t++){const i=to[t];qg=i.priority,i.idle||(xC(i),i.advance(e),i.idle||r.push(i))}return qg=0,bC=to,bC.length=0,to=r,to.length>0}function mj(e,r){const t=e.findIndex(r);return t<0?e.length:t}var gj=(e,r,t)=>Math.min(Math.max(t,e),r),yj={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},_o="[-+]?\\d*\\.?\\d+",Kg=_o+"%";function Wg(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var xj=new RegExp("rgb"+Wg(_o,_o,_o)),bj=new RegExp("rgba"+Wg(_o,_o,_o,_o)),Cj=new RegExp("hsl"+Wg(_o,Kg,Kg)),wj=new RegExp("hsla"+Wg(_o,Kg,Kg,_o)),_j=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Sj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ej=/^#([0-9a-fA-F]{6})$/,Dj=/^#([0-9a-fA-F]{8})$/;function kj(e){let r;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(r=Ej.exec(e))?parseInt(r[1]+"ff",16)>>>0:hu&&hu[e]!==void 0?hu[e]:(r=xj.exec(e))?(xd(r[1])<<24|xd(r[2])<<16|xd(r[3])<<8|255)>>>0:(r=bj.exec(e))?(xd(r[1])<<24|xd(r[2])<<16|xd(r[3])<<8|_k(r[4]))>>>0:(r=_j.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=Dj.exec(e))?parseInt(r[1],16)>>>0:(r=Sj.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=Cj.exec(e))?(Ck(wk(r[1]),Qg(r[2]),Qg(r[3]))|255)>>>0:(r=wj.exec(e))?(Ck(wk(r[1]),Qg(r[2]),Qg(r[3]))|_k(r[4]))>>>0:null}function wC(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(r-e)*6*t:t<1/2?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function Ck(e,r,t){const i=t<.5?t*(1+r):t+r-t*r,l=2*t-i,f=wC(l,i,e+1/3),c=wC(l,i,e),p=wC(l,i,e-1/3);return Math.round(f*255)<<24|Math.round(c*255)<<16|Math.round(p*255)<<8}function xd(e){const r=parseInt(e,10);return r<0?0:r>255?255:r}function wk(e){return(parseFloat(e)%360+360)%360/360}function _k(e){const r=parseFloat(e);return r<0?0:r>1?255:Math.round(r*255)}function Qg(e){const r=parseFloat(e);return r<0?0:r>100?1:r/100}function Sk(e){let r=kj(e);if(r===null)return e;r=r||0;const t=(r&4278190080)>>>24,i=(r&16711680)>>>16,l=(r&65280)>>>8,f=(r&255)/255;return`rgba(${t}, ${i}, ${l}, ${f})`}var yp=(e,r,t)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return yp({range:e,output:r,extrapolate:t});if(Ge.str(e.output[0]))return yC(e);const i=e,l=i.output,f=i.range||[0,1],c=i.extrapolateLeft||i.extrapolate||"extend",p=i.extrapolateRight||i.extrapolate||"extend",g=i.easing||(d=>d);return d=>{const m=Aj(d,f);return Tj(d,f[m],f[m+1],l[m],l[m+1],g,c,p,i.map)}};function Tj(e,r,t,i,l,f,c,p,g){let d=g?g(e):e;if(d<r){if(c==="identity")return d;c==="clamp"&&(d=r)}if(d>t){if(p==="identity")return d;p==="clamp"&&(d=t)}return i===l?i:r===t?e<=r?i:l:(r===-1/0?d=-d:t===1/0?d=d-r:d=(d-r)/(t-r),d=f(d),i===-1/0?d=-d:l===1/0?d=d+i:d=d*(l-i)+i,d)}function Aj(e,r){for(var t=1;t<r.length-1&&!(r[t]>=e);++t);return t-1}var Oj=(e,r="end")=>t=>{t=r==="end"?Math.min(t,.999):Math.max(t,.001);const i=t*e,l=r==="end"?Math.floor(i):Math.ceil(i);return gj(0,1,l/e)},Zg=1.70158,Xg=Zg*1.525,Ek=Zg+1,Dk=2*Math.PI/3,kk=2*Math.PI/4.5,Jg=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rj={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ek*e*e*e-Zg*e*e,easeOutBack:e=>1+Ek*Math.pow(e-1,3)+Zg*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xg+1)*2*e-Xg)/2:(Math.pow(2*e-2,2)*((Xg+1)*(e*2-2)+Xg)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Dk),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Dk)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*kk))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*kk)/2+1,easeInBounce:e=>1-Jg(1-e),easeOutBounce:Jg,easeInOutBounce:e=>e<.5?(1-Jg(1-2*e))/2:(1+Jg(2*e-1))/2,steps:Oj},xp=Symbol.for("FluidValue.get"),bd=Symbol.for("FluidValue.observers"),no=e=>Boolean(e&&e[xp]),ui=e=>e&&e[xp]?e[xp]():e,Tk=e=>e[bd]||null;function Fj(e,r){e.eventObserved?e.eventObserved(r):e(r)}function bp(e,r){const t=e[bd];t&&t.forEach(i=>{Fj(i,r)})}var Ak=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Nj(this,e)}},Nj=(e,r)=>Ok(e,xp,r);function Cd(e,r){if(e[xp]){let t=e[bd];t||Ok(e,bd,t=new Set),t.has(r)||(t.add(r),e.observerAdded&&e.observerAdded(t.size,r))}return r}function Cp(e,r){const t=e[bd];if(t&&t.has(r)){const i=t.size-1;i?t.delete(r):e[bd]=null,e.observerRemoved&&e.observerRemoved(i,r)}}var Ok=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),ey=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Mj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Rk=new RegExp(`(${ey.source})(%|[a-z]+)`,"i"),Pj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ty=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fk=e=>{const[r,t]=Bj(e);if(!r||gC())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(i)return i.trim();if(t&&t.startsWith("--")){const l=window.getComputedStyle(document.documentElement).getPropertyValue(t);return l||e}else{if(t&&ty.test(t))return Fk(t);if(t)return t}return e},Bj=e=>{const r=ty.exec(e);if(!r)return[,];const[,t,i]=r;return[t,i]},_C,Lj=(e,r,t,i,l)=>`rgba(${Math.round(r)}, ${Math.round(t)}, ${Math.round(i)}, ${l})`,Nk=e=>{_C||(_C=hu?new RegExp(`(${Object.keys(hu).join("|")})(?!\\w)`,"g"):/^\b$/);const r=e.output.map(f=>ui(f).replace(ty,Fk).replace(Mj,Sk).replace(_C,Sk)),t=r.map(f=>f.match(ey).map(Number)),l=t[0].map((f,c)=>t.map(p=>{if(!(c in p))throw Error('The arity of each "output" value must be equal');return p[c]})).map(f=>yp({...e,output:f}));return f=>{var g;const c=!Rk.test(r[0])&&((g=r.find(d=>Rk.test(d)))==null?void 0:g.replace(ey,""));let p=0;return r[0].replace(ey,()=>`${l[p++](f)}${c||""}`).replace(Pj,Lj)}},SC="react-spring: ",Mk=e=>{const r=e;let t=!1;if(typeof r!="function")throw new TypeError(`${SC}once requires a function parameter`);return(...i)=>{t||(r(...i),t=!0)}},zj=Mk(console.warn);function Uj(){zj(`${SC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var jj=Mk(console.warn);function Ij(){jj(`${SC}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ny(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!gC()&&ty.test(e)||e in(hu||{}))}var EC=gC()?W.useEffect:W.useLayoutEffect,Hj=()=>{const e=W.useRef(!1);return EC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Pk(){const e=W.useState()[1],r=Hj();return()=>{r.current&&e(Math.random())}}function Vj(e,r){const[t]=W.useState(()=>({inputs:r,result:e()})),i=W.useRef(),l=i.current;let f=l;return f?Boolean(r&&f.inputs&&$j(r,f.inputs))||(f={inputs:r,result:e()}):f=t,W.useEffect(()=>{i.current=f,l==t&&(t.inputs=t.result=void 0)},[f]),f.result}function $j(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Bk=e=>W.useEffect(e,Yj),Yj=[];function Lk(e){const r=W.useRef();return W.useEffect(()=>{r.current=e}),r.current}var wp=Symbol.for("Animated:node"),qj=e=>!!e&&e[wp]===e,vl=e=>e&&e[wp],DC=(e,r)=>hj(e,wp,r),ry=e=>e&&e[wp]&&e[wp].getPayload(),zk=class{constructor(){DC(this,this)}getPayload(){return this.payload||[]}},_p=class extends zk{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _p(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,r){return Ge.num(e)&&(this.lastPosition=e,r&&(e=Math.round(e/r)*r,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Sp=class extends _p{constructor(e){super(0),this._string=null,this._toString=yp({output:[e,e]})}static create(e){return new Sp(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ge.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=yp({output:[this.getValue(),e]})),this._value=0,super.reset()}},ay={dependencies:null},iy=class extends zk{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const r={};return pl(this.source,(t,i)=>{qj(t)?r[i]=t.getValue(e):no(t)?r[i]=ui(t):e||(r[i]=t)}),r}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wt(this.payload,e=>e.reset())}_makePayload(e){if(e){const r=new Set;return pl(e,this._addToPayload,r),Array.from(r)}}_addToPayload(e){ay.dependencies&&no(e)&&ay.dependencies.add(e);const r=ry(e);r&&Wt(r,t=>this.add(t))}},Uk=class extends iy{constructor(e){super(e)}static create(e){return new Uk(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const r=this.getPayload();return e.length==r.length?r.map((t,i)=>t.setValue(e[i])).some(Boolean):(super.setValue(e.map(Gj)),!0)}};function Gj(e){return(ny(e)?Sp:_p).create(e)}function kC(e){const r=vl(e);return r?r.constructor:Ge.arr(e)?Uk:ny(e)?Sp:_p}var jk=(e,r)=>{const t=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return W.forwardRef((i,l)=>{const f=W.useRef(null),c=t&&W.useCallback(_=>{f.current=Qj(l,_)},[l]),[p,g]=Wj(i,r),d=Pk(),m=()=>{const _=f.current;if(t&&!_)return;(_?r.applyAnimatedValues(_,p.getValue(!0)):!1)===!1&&d()},C=new Kj(m,g),b=W.useRef();EC(()=>(b.current=C,Wt(g,_=>Cd(_,C)),()=>{b.current&&(Wt(b.current.deps,_=>Cp(_,b.current)),Nt.cancel(b.current.update))})),W.useEffect(m,[]),Bk(()=>()=>{const _=b.current;Wt(_.deps,k=>Cp(k,_))});const x=r.getComponentProps(p.getValue());return Me.createElement(e,{...x,ref:c})})},Kj=class{constructor(e,r){this.update=e,this.deps=r}eventObserved(e){e.type=="change"&&Nt.write(this.update)}};function Wj(e,r){const t=new Set;return ay.dependencies=t,e.style&&(e={...e,style:r.createAnimatedStyle(e.style)}),e=new iy(e),ay.dependencies=null,[e,t]}function Qj(e,r){return e&&(Ge.fun(e)?e(r):e.current=r),r}var Ik=Symbol.for("AnimatedComponent"),Zj=(e,{applyAnimatedValues:r=()=>!1,createAnimatedStyle:t=l=>new iy(l),getComponentProps:i=l=>l}={})=>{const l={applyAnimatedValues:r,createAnimatedStyle:t,getComponentProps:i},f=c=>{const p=Hk(c)||"Anonymous";return Ge.str(c)?c=f[c]||(f[c]=jk(c,l)):c=c[Ik]||(c[Ik]=jk(c,l)),c.displayName=`Animated(${p})`,c};return pl(e,(c,p)=>{Ge.arr(e)&&(p=Hk(c)),f[p]=f(c)}),{animated:f}},Hk=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Mc(e,...r){return Ge.fun(e)?e(...r):e}var Ep=(e,r)=>e===!0||!!(r&&e&&(Ge.fun(e)?e(r):Bi(e).includes(r))),Vk=(e,r)=>Ge.obj(e)?r&&e[r]:e,$k=(e,r)=>e.default===!0?e[r]:e.default?e.default[r]:void 0,Xj=e=>e,TC=(e,r=Xj)=>{let t=Jj;e.default&&e.default!==!0&&(e=e.default,t=Object.keys(e));const i={};for(const l of t){const f=r(e[l],l);Ge.und(f)||(i[l]=f)}return i},Jj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eI={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tI(e){const r={};let t=0;if(pl(e,(i,l)=>{eI[l]||(r[l]=i,t++)}),t)return r}function Yk(e){const r=tI(e);if(r){const t={to:r};return pl(e,(i,l)=>l in r||(t[l]=i)),t}return{...e}}function Dp(e){return e=ui(e),Ge.arr(e)?e.map(Dp):ny(e)?wo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function nI(e){for(const r in e)return!0;return!1}function AC(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}function rI(e,r){var t;(t=e.ref)==null||t.delete(e),r==null||r.delete(e)}function aI(e,r){var t;r&&e.ref!==r&&((t=e.ref)==null||t.delete(e),r.add(e),e.ref=r)}var iI={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},OC={...iI.default,mass:1,damping:1,easing:Rj.linear,clamp:!1},oI=class{constructor(){this.velocity=0,Object.assign(this,OC)}};function lI(e,r,t){t&&(t={...t},qk(t,r),r={...t,...r}),qk(e,r),Object.assign(e,r);for(const c in OC)e[c]==null&&(e[c]=OC[c]);let{frequency:i,damping:l}=e;const{mass:f}=e;return Ge.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*f,e.friction=4*Math.PI*l*f/i),e}function qk(e,r){if(!Ge.und(r.decay))e.duration=void 0;else{const t=!Ge.und(r.tension)||!Ge.und(r.friction);(t||!Ge.und(r.frequency)||!Ge.und(r.damping)||!Ge.und(r.mass))&&(e.duration=void 0,e.decay=void 0),t&&(e.frequency=void 0)}}var Gk=[],sI=class{constructor(){this.changed=!1,this.values=Gk,this.toValues=null,this.fromValues=Gk,this.config=new oI,this.immediate=!1}};function Kk(e,{key:r,props:t,defaultProps:i,state:l,actions:f}){return new Promise((c,p)=>{let g,d,m=Ep(t.cancel??(i==null?void 0:i.cancel),r);if(m)x();else{Ge.und(t.pause)||(l.paused=Ep(t.pause,r));let _=i==null?void 0:i.pause;_!==!0&&(_=l.paused||Ep(_,r)),g=Mc(t.delay||0,r),_?(l.resumeQueue.add(b),f.pause()):(f.resume(),b())}function C(){l.resumeQueue.add(b),l.timeouts.delete(d),d.cancel(),g=d.time-Nt.now()}function b(){g>0&&!wo.skipAnimation?(l.delayed=!0,d=Nt.setTimeout(x,g),l.pauseQueue.add(C),l.timeouts.add(d)):x()}function x(){l.delayed&&(l.delayed=!1),l.pauseQueue.delete(C),l.timeouts.delete(d),e<=(l.cancelId||0)&&(m=!0);try{f.start({...t,callId:e,cancel:m},c)}catch(_){p(_)}}})}var RC=(e,r)=>r.length==1?r[0]:r.some(t=>t.cancelled)?wd(e.get()):r.every(t=>t.noop)?Wk(e.get()):So(e.get(),r.every(t=>t.finished)),Wk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),So=(e,r,t=!1)=>({value:e,finished:r,cancelled:t}),wd=e=>({value:e,cancelled:!0,finished:!1});function Qk(e,r,t,i){const{callId:l,parentId:f,onRest:c}=r,{asyncTo:p,promise:g}=t;return!f&&e===p&&!r.reset?g:t.promise=(async()=>{t.asyncId=l,t.asyncTo=e;const d=TC(r,(E,A)=>A==="onRest"?void 0:E);let m,C;const b=new Promise((E,A)=>(m=E,C=A)),x=E=>{const A=l<=(t.cancelId||0)&&wd(i)||l!==t.asyncId&&So(i,!1);if(A)throw E.result=A,C(E),E},_=(E,A)=>{const T=new Zk,D=new Xk;return(async()=>{if(wo.skipAnimation)throw kp(t),D.result=So(i,!1),C(D),D;x(T);const R=Ge.obj(E)?{...E}:{...A,to:E};R.parentId=l,pl(d,(z,M)=>{Ge.und(R[M])&&(R[M]=z)});const N=await i.start(R);return x(T),t.paused&&await new Promise(z=>{t.resumeQueue.add(z)}),N})()};let k;if(wo.skipAnimation)return kp(t),So(i,!1);try{let E;Ge.arr(e)?E=(async A=>{for(const T of A)await _(T)})(e):E=Promise.resolve(e(_,i.stop.bind(i))),await Promise.all([E.then(m),b]),k=So(i.get(),!0,!1)}catch(E){if(E instanceof Zk)k=E.result;else if(E instanceof Xk)k=E.result;else throw E}finally{l==t.asyncId&&(t.asyncId=f,t.asyncTo=f?p:void 0,t.promise=f?g:void 0)}return Ge.fun(c)&&Nt.batchedUpdates(()=>{c(k,i,i.item)}),k})()}function kp(e,r){vp(e.timeouts,t=>t.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,r&&(e.cancelId=r)}var Zk=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Xk=class extends Error{constructor(){super("SkipAnimationSignal")}},FC=e=>e instanceof NC,uI=1,NC=class extends Ak{constructor(){super(...arguments),this.id=uI++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vl(this);return e&&e.getValue()}to(...e){return wo.to(this,e)}interpolate(...e){return Uj(),wo.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,r=!1){bp(this,{type:"change",parent:this,value:e,idle:r})}_onPriorityChange(e){this.idle||Gg.sort(this),bp(this,{type:"priority",parent:this,priority:e})}},Pc=Symbol.for("SpringPhase"),Jk=1,MC=2,PC=4,BC=e=>(e[Pc]&Jk)>0,pu=e=>(e[Pc]&MC)>0,Tp=e=>(e[Pc]&PC)>0,eT=(e,r)=>r?e[Pc]|=MC|Jk:e[Pc]&=~MC,tT=(e,r)=>r?e[Pc]|=PC:e[Pc]&=~PC,cI=class extends NC{constructor(e,r){if(super(),this.animation=new sI,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(e)||!Ge.und(r)){const t=Ge.obj(e)?{...e}:{...r,from:e};Ge.und(t.default)&&(t.default=!0),this.start(t)}}get idle(){return!(pu(this)||this._state.asyncTo)||Tp(this)}get goal(){return ui(this.animation.to)}get velocity(){const e=vl(this);return e instanceof _p?e.lastVelocity||0:e.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return BC(this)}get isAnimating(){return pu(this)}get isPaused(){return Tp(this)}get isDelayed(){return this._state.delayed}advance(e){let r=!0,t=!1;const i=this.animation;let{toValues:l}=i;const{config:f}=i,c=ry(i.to);!c&&no(i.to)&&(l=Bi(ui(i.to))),i.values.forEach((d,m)=>{if(d.done)return;const C=d.constructor==Sp?1:c?c[m].lastPosition:l[m];let b=i.immediate,x=C;if(!b){if(x=d.lastPosition,f.tension<=0){d.done=!0;return}let _=d.elapsedTime+=e;const k=i.fromValues[m],E=d.v0!=null?d.v0:d.v0=Ge.arr(f.velocity)?f.velocity[m]:f.velocity;let A;const T=f.precision||(k==C?.005:Math.min(1,Math.abs(C-k)*.001));if(Ge.und(f.duration))if(f.decay){const D=f.decay===!0?.998:f.decay,R=Math.exp(-(1-D)*_);x=k+E/(1-D)*(1-R),b=Math.abs(d.lastPosition-x)<=T,A=E*R}else{A=d.lastVelocity==null?E:d.lastVelocity;const D=f.restVelocity||T/10,R=f.clamp?0:f.bounce,N=!Ge.und(R),z=k==C?d.v0>0:k<C;let M,I=!1;const Y=1,B=Math.ceil(e/Y);for(let P=0;P<B&&(M=Math.abs(A)>D,!(!M&&(b=Math.abs(C-x)<=T,b)));++P){N&&(I=x==C||x>C==z,I&&(A=-A*R,x=C));const U=-f.tension*1e-6*(x-C),H=-f.friction*.001*A,V=(U+H)/f.mass;A=A+V*Y,x=x+A*Y}}else{let D=1;f.duration>0&&(this._memoizedDuration!==f.duration&&(this._memoizedDuration=f.duration,d.durationProgress>0&&(d.elapsedTime=f.duration*d.durationProgress,_=d.elapsedTime+=e)),D=(f.progress||0)+_/this._memoizedDuration,D=D>1?1:D<0?0:D,d.durationProgress=D),x=k+f.easing(D)*(C-k),A=(x-d.lastPosition)/e,b=D==1}d.lastVelocity=A,Number.isNaN(x)&&(b=!0)}c&&!c[m].done&&(b=!1),b?d.done=!0:r=!1,d.setValue(x,f.round)&&(t=!0)});const p=vl(this),g=p.getValue();if(r){const d=ui(i.to);(g!==d||t)&&!f.decay?(p.setValue(d),this._onChange(d)):t&&f.decay&&this._onChange(g),this._stop()}else t&&this._onChange(g)}set(e){return Nt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pu(this)){const{to:e,config:r}=this.animation;Nt.batchedUpdates(()=>{this._onStart(),r.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,r){let t;return Ge.und(e)?(t=this.queue||[],this.queue=[]):t=[Ge.obj(e)?e:{...r,to:e}],Promise.all(t.map(i=>this._update(i))).then(i=>RC(this,i))}stop(e){const{to:r}=this.animation;return this._focus(this.get()),kp(this._state,e&&this._lastCallId),Nt.batchedUpdates(()=>this._stop(r,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const r=this.key||"";let{to:t,from:i}=e;t=Ge.obj(t)?t[r]:t,(t==null||AC(t))&&(t=void 0),i=Ge.obj(i)?i[r]:i,i==null&&(i=void 0);const l={to:t,from:i};return BC(this)||(e.reverse&&([t,i]=[i,t]),i=ui(i),Ge.und(i)?vl(this)||this._set(t):this._set(i)),l}_update({...e},r){const{key:t,defaultProps:i}=this;e.default&&Object.assign(i,TC(e,(c,p)=>/^on/.test(p)?Vk(c,t):c)),aT(this,e,"onProps"),Rp(this,"onProps",e,this);const l=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const f=this._state;return Kk(++this._lastCallId,{key:t,props:e,defaultProps:i,state:f,actions:{pause:()=>{Tp(this)||(tT(this,!0),mp(f.pauseQueue),Rp(this,"onPause",So(this,Ap(this,this.animation.to)),this))},resume:()=>{Tp(this)&&(tT(this,!1),pu(this)&&this._resume(),mp(f.resumeQueue),Rp(this,"onResume",So(this,Ap(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then(c=>{if(e.loop&&c.finished&&!(r&&c.noop)){const p=nT(e);if(p)return this._update(p,!0)}return c})}_merge(e,r,t){if(r.cancel)return this.stop(!0),t(wd(this));const i=!Ge.und(e.to),l=!Ge.und(e.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return t(wd(this));const{key:f,defaultProps:c,animation:p}=this,{to:g,from:d}=p;let{to:m=g,from:C=d}=e;l&&!i&&(!r.default||Ge.und(m))&&(m=C),r.reverse&&([m,C]=[C,m]);const b=!us(C,d);b&&(p.from=C),C=ui(C);const x=!us(m,g);x&&this._focus(m);const _=AC(r.to),{config:k}=p,{decay:E,velocity:A}=k;(i||l)&&(k.velocity=0),r.config&&!_&&lI(k,Mc(r.config,f),r.config!==c.config?Mc(c.config,f):void 0);let T=vl(this);if(!T||Ge.und(m))return t(So(this,!0));const D=Ge.und(r.reset)?l&&!r.default:!Ge.und(C)&&Ep(r.reset,f),R=D?C:this.get(),N=Dp(m),z=Ge.num(N)||Ge.arr(N)||ny(N),M=!_&&(!z||Ep(c.immediate||r.immediate,f));if(x){const P=kC(m);if(P!==T.constructor)if(M)T=this._set(N);else throw Error(`Cannot animate between ${T.constructor.name} and ${P.name}, as the "to" prop suggests`)}const I=T.constructor;let Y=no(m),B=!1;if(!Y){const P=D||!BC(this)&&b;(x||P)&&(B=us(Dp(R),N),Y=!B),(!us(p.immediate,M)&&!M||!us(k.decay,E)||!us(k.velocity,A))&&(Y=!0)}if(B&&pu(this)&&(p.changed&&!D?Y=!0:Y||this._stop(g)),!_&&((Y||no(g))&&(p.values=T.getPayload(),p.toValues=no(m)?null:I==Sp?[1]:Bi(N)),p.immediate!=M&&(p.immediate=M,!M&&!D&&this._set(g)),Y)){const{onRest:P}=p;Wt(dI,H=>aT(this,r,H));const U=So(this,Ap(this,g));mp(this._pendingCalls,U),this._pendingCalls.add(t),p.changed&&Nt.batchedUpdates(()=>{var H;p.changed=!D,P==null||P(U,this),D?Mc(c.onRest,U):(H=p.onStart)==null||H.call(p,U,this)})}D&&this._set(R),_?t(Qk(r.to,r,this._state,this)):Y?this._start():pu(this)&&!x?this._pendingCalls.add(t):t(Wk(R))}_focus(e){const r=this.animation;e!==r.to&&(Tk(this)&&this._detach(),r.to=e,Tk(this)&&this._attach())}_attach(){let e=0;const{to:r}=this.animation;no(r)&&(Cd(r,this),FC(r)&&(e=r.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;no(e)&&Cp(e,this)}_set(e,r=!0){const t=ui(e);if(!Ge.und(t)){const i=vl(this);if(!i||!us(t,i.getValue())){const l=kC(t);!i||i.constructor!=l?DC(this,l.create(t)):i.setValue(t),i&&Nt.batchedUpdates(()=>{this._onChange(t,r)})}}return vl(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Rp(this,"onStart",So(this,Ap(this,e.to)),this))}_onChange(e,r){r||(this._onStart(),Mc(this.animation.onChange,e,this)),Mc(this.defaultProps.onChange,e,this),super._onChange(e,r)}_start(){const e=this.animation;vl(this).reset(ui(e.to)),e.immediate||(e.fromValues=e.values.map(r=>r.lastPosition)),pu(this)||(eT(this,!0),Tp(this)||this._resume())}_resume(){wo.skipAnimation?this.finish():Gg.start(this)}_stop(e,r){if(pu(this)){eT(this,!1);const t=this.animation;Wt(t.values,l=>{l.done=!0}),t.toValues&&(t.onChange=t.onPause=t.onResume=void 0),bp(this,{type:"idle",parent:this});const i=r?wd(this.get()):So(this.get(),Ap(this,e??t.to));mp(this._pendingCalls,i),t.changed&&(t.changed=!1,Rp(this,"onRest",i,this))}}};function Ap(e,r){const t=Dp(r),i=Dp(e.get());return us(i,t)}function nT(e,r=e.loop,t=e.to){const i=Mc(r);if(i){const l=i!==!0&&Yk(i),f=(l||e).reverse,c=!l||l.reset;return Op({...e,loop:r,default:!1,pause:void 0,to:!f||AC(t)?t:void 0,from:c?e.from:void 0,reset:c,...l})}}function Op(e){const{to:r,from:t}=e=Yk(e),i=new Set;return Ge.obj(r)&&rT(r,i),Ge.obj(t)&&rT(t,i),e.keys=i.size?Array.from(i):null,e}function fI(e){const r=Op(e);return Ge.und(r.default)&&(r.default=TC(r)),r}function rT(e,r){pl(e,(t,i)=>t!=null&&r.add(i))}var dI=["onStart","onRest","onChange","onPause","onResume"];function aT(e,r,t){e.animation[t]=r[t]!==$k(r,t)?Vk(r[t],e.key):void 0}function Rp(e,r,...t){var i,l,f,c;(l=(i=e.animation)[r])==null||l.call(i,...t),(c=(f=e.defaultProps)[r])==null||c.call(f,...t)}var hI=["onStart","onChange","onRest"],pI=1,vI=class{constructor(e,r){this.id=pI++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((r,t)=>e[t]=r.get()),e}set(e){for(const r in e){const t=e[r];Ge.und(t)||this.springs[r].set(t)}}update(e){return e&&this.queue.push(Op(e)),this}start(e){let{queue:r}=this;return e?r=Bi(e).map(Op):this.queue=[],this._flush?this._flush(this,r):(cT(this,r),LC(this,r))}stop(e,r){if(e!==!!e&&(r=e),r){const t=this.springs;Wt(Bi(r),i=>t[i].stop(!!e))}else kp(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const r=this.springs;Wt(Bi(e),t=>r[t].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const r=this.springs;Wt(Bi(e),t=>r[t].resume())}return this}each(e){pl(this.springs,e)}_onFrame(){const{onStart:e,onChange:r,onRest:t}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,vp(e,([p,g])=>{g.value=this.get(),p(g,this,this._item)}));const f=!i&&this._started,c=l||f&&t.size?this.get():null;l&&r.size&&vp(r,([p,g])=>{g.value=c,p(g,this,this._item)}),f&&(this._started=!1,vp(t,([p,g])=>{g.value=c,p(g,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Nt.onFrame(this._onFrame)}};function LC(e,r){return Promise.all(r.map(t=>iT(e,t))).then(t=>RC(e,t))}async function iT(e,r,t){const{keys:i,to:l,from:f,loop:c,onRest:p,onResolve:g}=r,d=Ge.obj(r.default)&&r.default;c&&(r.loop=!1),l===!1&&(r.to=null),f===!1&&(r.from=null);const m=Ge.arr(l)||Ge.fun(l)?l:void 0;m?(r.to=void 0,r.onRest=void 0,d&&(d.onRest=void 0)):Wt(hI,k=>{const E=r[k];if(Ge.fun(E)){const A=e._events[k];r[k]=({finished:T,cancelled:D})=>{const R=A.get(E);R?(T||(R.finished=!1),D&&(R.cancelled=!0)):A.set(E,{value:null,finished:T||!1,cancelled:D||!1})},d&&(d[k]=r[k])}});const C=e._state;r.pause===!C.paused?(C.paused=r.pause,mp(r.pause?C.pauseQueue:C.resumeQueue)):C.paused&&(r.pause=!0);const b=(i||Object.keys(e.springs)).map(k=>e.springs[k].start(r)),x=r.cancel===!0||$k(r,"cancel")===!0;(m||x&&C.asyncId)&&b.push(Kk(++e._lastAsyncId,{props:r,state:C,actions:{pause:mC,resume:mC,start(k,E){x?(kp(C,e._lastAsyncId),E(wd(e))):(k.onRest=p,E(Qk(m,k,C,e)))}}})),C.paused&&await new Promise(k=>{C.resumeQueue.add(k)});const _=RC(e,await Promise.all(b));if(c&&_.finished&&!(t&&_.noop)){const k=nT(r,c,l);if(k)return cT(e,[k]),iT(e,k,!0)}return g&&Nt.batchedUpdates(()=>g(_,e,e.item)),_}function oT(e,r){const t={...e.springs};return r&&Wt(Bi(r),i=>{Ge.und(i.keys)&&(i=Op(i)),Ge.obj(i.to)||(i={...i,to:void 0}),uT(t,i,l=>sT(l))}),lT(e,t),t}function lT(e,r){pl(r,(t,i)=>{e.springs[i]||(e.springs[i]=t,Cd(t,e))})}function sT(e,r){const t=new cI;return t.key=e,r&&Cd(t,r),t}function uT(e,r,t){r.keys&&Wt(r.keys,i=>{(e[i]||(e[i]=t(i)))._prepareNode(r)})}function cT(e,r){Wt(r,t=>{uT(e.springs,t,i=>sT(i,e))})}var oy=({children:e,...r})=>{const t=W.useContext(ly),i=r.pause||!!t.pause,l=r.immediate||!!t.immediate;r=Vj(()=>({pause:i,immediate:l}),[i,l]);const{Provider:f}=ly;return Me.createElement(f,{value:r},e)},ly=mI(oy,{});oy.Provider=ly.Provider,oy.Consumer=ly.Consumer;function mI(e,r){return Object.assign(e,Me.createContext(r)),e.Provider._context=e,e.Consumer._context=e,e}var gI=()=>{const e=[],r=function(i){Ij();const l=[];return Wt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const p=t(i,f,c);p&&l.push(f.start(p))}}),l};r.current=e,r.add=function(i){e.includes(i)||e.push(i)},r.delete=function(i){const l=e.indexOf(i);~l&&e.splice(l,1)},r.pause=function(){return Wt(e,i=>i.pause(...arguments)),this},r.resume=function(){return Wt(e,i=>i.resume(...arguments)),this},r.set=function(i){Wt(e,(l,f)=>{const c=Ge.fun(i)?i(f,l):i;c&&l.set(c)})},r.start=function(i){const l=[];return Wt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const p=this._getProps(i,f,c);p&&l.push(f.start(p))}}),l},r.stop=function(){return Wt(e,i=>i.stop(...arguments)),this},r.update=function(i){return Wt(e,(l,f)=>l.update(this._getProps(i,l,f))),this};const t=function(i,l,f){return Ge.fun(i)?i(f,l):i};return r._getProps=t,r};function yI(e,r,t){const i=Ge.fun(r)&&r;i&&!t&&(t=[]);const l=W.useMemo(()=>i||arguments.length==3?gI():void 0,[]),f=W.useRef(0),c=Pk(),p=W.useMemo(()=>({ctrls:[],queue:[],flush(A,T){const D=oT(A,T);return f.current>0&&!p.queue.length&&!Object.keys(D).some(N=>!A.springs[N])?LC(A,T):new Promise(N=>{lT(A,D),p.queue.push(()=>{N(LC(A,T))}),c()})}}),[]),g=W.useRef([...p.ctrls]),d=[],m=Lk(e)||0;W.useMemo(()=>{Wt(g.current.slice(e,m),A=>{rI(A,l),A.stop(!0)}),g.current.length=e,C(m,e)},[e]),W.useMemo(()=>{C(0,Math.min(m,e))},t);function C(A,T){for(let D=A;D<T;D++){const R=g.current[D]||(g.current[D]=new vI(null,p.flush)),N=i?i(D,R):r[D];N&&(d[D]=fI(N))}}const b=g.current.map((A,T)=>oT(A,d[T])),x=W.useContext(oy),_=Lk(x),k=x!==_&&nI(x);EC(()=>{f.current++,p.ctrls=g.current;const{queue:A}=p;A.length&&(p.queue=[],Wt(A,T=>T())),Wt(g.current,(T,D)=>{l==null||l.add(T),k&&T.start({default:x});const R=d[D];R&&(aI(T,R.ref),T.ref?T.queue.push(R):T.start(R))})}),Bk(()=>()=>{Wt(p.ctrls,A=>A.stop(!0))});const E=b.map(A=>({...A}));return l?[E,l]:E}function xI(e,r){const t=Ge.fun(e),[[i],l]=yI(1,t?e:[e],t?r||[]:r);return t||arguments.length==2?[i,l]:i}var bI=class extends NC{constructor(e,r){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yp(...r);const t=this._get(),i=kC(t);DC(this,i.create(t))}advance(e){const r=this._get(),t=this.get();us(r,t)||(vl(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&fT(this._active)&&zC(this)}_get(){const e=Ge.arr(this.source)?this.source.map(ui):Bi(ui(this.source));return this.calc(...e)}_start(){this.idle&&!fT(this._active)&&(this.idle=!1,Wt(ry(this),e=>{e.done=!1}),wo.skipAnimation?(Nt.batchedUpdates(()=>this.advance()),zC(this)):Gg.start(this))}_attach(){let e=1;Wt(Bi(this.source),r=>{no(r)&&Cd(r,this),FC(r)&&(r.idle||this._active.add(r),e=Math.max(e,r.priority+1))}),this.priority=e,this._start()}_detach(){Wt(Bi(this.source),e=>{no(e)&&Cp(e,this)}),this._active.clear(),zC(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Bi(this.source).reduce((r,t)=>Math.max(r,(FC(t)?t.priority:0)+1),0))}};function CI(e){return e.idle!==!1}function fT(e){return!e.size||Array.from(e).every(CI)}function zC(e){e.idle||(e.idle=!0,Wt(ry(e),r=>{r.done=!0}),bp(e,{type:"idle",parent:e}))}wo.assign({createStringInterpolator:Nk,to:(e,r)=>new bI(e,r)});var dT=/^--/;function wI(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r=="number"&&r!==0&&!dT.test(e)&&!(Fp.hasOwnProperty(e)&&Fp[e])?r+"px":(""+r).trim()}var hT={};function _I(e,r){if(!e.nodeType||!e.setAttribute)return!1;const t=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:l,children:f,scrollTop:c,scrollLeft:p,viewBox:g,...d}=r,m=Object.values(d),C=Object.keys(d).map(b=>t||e.hasAttribute(b)?b:hT[b]||(hT[b]=b.replace(/([A-Z])/g,x=>"-"+x.toLowerCase())));f!==void 0&&(e.textContent=f);for(const b in l)if(l.hasOwnProperty(b)){const x=wI(b,l[b]);dT.test(b)?e.style.setProperty(b,x):e.style[b]=x}C.forEach((b,x)=>{e.setAttribute(b,m[x])}),i!==void 0&&(e.className=i),c!==void 0&&(e.scrollTop=c),p!==void 0&&(e.scrollLeft=p),g!==void 0&&e.setAttribute("viewBox",g)}var Fp={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},SI=(e,r)=>e+r.charAt(0).toUpperCase()+r.substring(1),EI=["Webkit","Ms","Moz","O"];Fp=Object.keys(Fp).reduce((e,r)=>(EI.forEach(t=>e[SI(t,r)]=e[r]),e),Fp);var DI=/^(matrix|translate|scale|rotate|skew)/,kI=/^(translate)/,TI=/^(rotate|skew)/,UC=(e,r)=>Ge.num(e)&&e!==0?e+r:e,sy=(e,r)=>Ge.arr(e)?e.every(t=>sy(t,r)):Ge.num(e)?e===r:parseFloat(e)===r,AI=class extends iy{constructor({x:e,y:r,z:t,...i}){const l=[],f=[];(e||r||t)&&(l.push([e||0,r||0,t||0]),f.push(c=>[`translate3d(${c.map(p=>UC(p,"px")).join(",")})`,sy(c,0)])),pl(i,(c,p)=>{if(p==="transform")l.push([c||""]),f.push(g=>[g,g===""]);else if(DI.test(p)){if(delete i[p],Ge.und(c))return;const g=kI.test(p)?"px":TI.test(p)?"deg":"";l.push(Bi(c)),f.push(p==="rotate3d"?([d,m,C,b])=>[`rotate3d(${d},${m},${C},${UC(b,g)})`,sy(b,0)]:d=>[`${p}(${d.map(m=>UC(m,g)).join(",")})`,sy(d,p.startsWith("scale")?1:0)])}}),l.length&&(i.transform=new OI(l,f)),super(i)}},OI=class extends Ak{constructor(e,r){super(),this.inputs=e,this.transforms=r,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",r=!0;return Wt(this.inputs,(t,i)=>{const l=ui(t[0]),[f,c]=this.transforms[i](Ge.arr(l)?l:t.map(ui));e+=" "+f,r=r&&c}),r?"none":e}observerAdded(e){e==1&&Wt(this.inputs,r=>Wt(r,t=>no(t)&&Cd(t,this)))}observerRemoved(e){e==0&&Wt(this.inputs,r=>Wt(r,t=>no(t)&&Cp(t,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bp(this,e)}},RI=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];wo.assign({batchedUpdates:tu.exports.unstable_batchedUpdates,createStringInterpolator:Nk,colors:yj});var FI=Zj(RI,{applyAnimatedValues:_I,createAnimatedStyle:e=>new AI(e),getComponentProps:({scrollTop:e,scrollLeft:r,...t})=>t}),pT=FI.animated;function vT(e,r,t){let i=e;return r!==void 0&&(i=Math.max(e,r)),t!==void 0&&(i=Math.min(i,t)),i}const[mT]=wn("indicator"),NI=W.memo(e=>{var{vertical:r}=e,t=$a(e,["vertical"]);const i=[];for(let l=0;l<t.total;l++)i.push(Q("div",{className:Re(mT("dot",{active:t.current===l}))},l));return Q("div",Object.assign({className:Re(t.className,mT({vertical:r})),style:t.style},{children:i}))});let Np=0;function jC(e){e?(Np||document.body.classList.add("rv-toast--unclickable"),Np+=1):Np&&(Np-=1,Np||document.body.classList.remove("rv-toast--unclickable"))}function MI(e){return e===window}const gT=e=>{const r=e;if(MI(r)){const t=r.innerWidth,i=r.innerHeight;return{top:0,left:0,right:t,bottom:i,width:t,height:i}}return r&&r.getBoundingClientRect?r.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function PI(e,r,t){let i,l,f,c,p,g,d=0,m=!1,C=!1,b=!0;const x=!r&&r!==0&&typeof fd.requestAnimationFrame=="function";if(typeof e!="function")throw new TypeError("Expected a function");r=+r||0,cd(t)&&(m=!!t.leading,C="maxWait"in t,f=C?Math.max(+t.maxWait||0,r):f,b="trailing"in t?!!t.trailing:b);function _(B){const P=i,U=l;return i=l=void 0,d=B,c=e.apply(U,P),c}function k(B,P){return x?(fd.cancelAnimationFrame(p),fd.requestAnimationFrame(B)):setTimeout(()=>B(),P)}function E(B){if(x)return fd.cancelAnimationFrame(B);clearTimeout(B)}function A(B){return d=B,p=k(R,r),m?_(B):c}function T(B){const P=B-g,U=B-d,H=r-P;return C?Math.min(H,f-U):H}function D(B){const P=B-g,U=B-d;return g===void 0||P>=r||P<0||C&&U>=f}function R(){const B=Date.now();if(D(B))return N(B);p=k(R,T(B))}function N(B){return p=void 0,b&&i?_(B):(i=l=void 0,c)}function z(){p!==void 0&&E(p),d=0,i=g=l=p=void 0}function M(){return p===void 0?c:N(Date.now())}function I(){return p!==void 0}function Y(...B){const P=Date.now(),U=D(P);if(i=B,l=this,g=P,U){if(p===void 0)return A(g);if(C)return p=k(R,r),_(g)}return p===void 0&&(p=k(R,r)),c}return Y.cancel=z,Y.flush=M,Y.pending=I,Y}const JZ="",[uy]=wn("toast"),BI=e=>{const r=ea(e,{type:"info",duration:2e3,position:"middle",transition:"rv-fade",loadingType:"circular",overlay:!1}),t=()=>{r.closeOnClick&&r.onClose()};W.useEffect(()=>{if(!r.visible){jC(!1);return}let f=!1;const c=r.visible&&r.forbidClick;f!==c&&(f=c,jC(f))},[r.visible,r.forbidClick]);const i=()=>{const{icon:f,type:c,iconSize:p,loadingType:g}=r;if(f||c==="success"||c==="fail"){const m=c==="fail"?Q(J2,{}):Q(OD,{});return W.cloneElement(f||m,{className:Re(uy("icon")),fontSize:p})}return c==="loading"?Q(X2,{className:Re(uy("loading")),type:g}):null},l=()=>{const{message:f}=r;return Jr(f)&&f!==""?Q("div",Object.assign({className:Re(uy("info"))},{children:f})):null};return Be(sp,Object.assign({className:Re([uy([r.position,{[r.type]:!r.icon}]),r.className]),visible:r.visible,overlay:r.overlay,transition:r.transition,overlayClass:r.overlayClass,overlayStyle:r.overlayStyle,closeOnClickOverlay:r.closeOnClickOverlay,lockScroll:!1,onClick:t,onClose:r.onClose,onClosed:r.onClosed,onOpened:r.onOpened,teleport:r.teleport},{children:[i(),l()]}))},IC={message:"",className:"",type:"info",position:"middle",forbidClick:!1,duration:2e3,teleport:()=>document.body},HC=[];let yT=!1,VC=Jh({},IC);const cy=new Map;function xT(){let e=HC.pop();for(;e;)e(),e=HC.pop()}function LI(){setTimeout(xT)}const Bc=e=>{if(!Bg())return null;const r=bT(e),t={config:()=>{},clear:()=>null};let i=0;const{onClose:l,teleport:f}=r,c=document.createElement("div");return aC(f).appendChild(c),qD(Q(()=>{const d=Object.assign({duration:2e3},r),[m,C]=W.useState(!1),[b,x]=W.useState(Object.assign({},d)),_=W.useCallback(()=>{b.forbidClick&&jC(!1),C(!1),window.setTimeout(()=>{GD(c)&&c.parentNode&&c.parentNode.removeChild(c)},+b.duration||+IC.duration)},[c]),k=W.useCallback(()=>{C(!1),l&&l()},[]);return t.clear=_,t.config=W.useCallback(E=>{x(A=>typeof E=="function"?Object.assign(Object.assign({},A),E(A)):Object.assign(Object.assign({},A),E))},[x]),W.useEffect(()=>(C(!0),yT||xT(),HC.push(_),b.duration!==0&&"duration"in b&&(i=window.setTimeout(k,+b.duration)),()=>{i!==0&&window.clearTimeout(i)}),[]),Q(BI,Object.assign({},b,{visible:m,teleport:()=>c,onClose:k,onClosed:_}))},{}),c),t};function bT(e){return cd(e)?e:{message:e}}const zI=e=>r=>Bc(Object.assign(Object.assign(Object.assign(Object.assign({},VC),cy.get(e)),bT(r)),{type:e}));["info","loading","success","fail"].forEach(e=>{Bc[e]=zI(e)}),Bc.allowMultiple=(e=!0)=>{yT=e},Bc.clear=LI;function UI(e,r){typeof e=="string"?cy.set(e,r):Jh(VC,e)}Bc.setDefaultOptions=UI,Bc.resetDefaultOptions=e=>{typeof e=="string"?cy.delete(e):(VC=Jh({},IC),cy.clear())};const CT=Bc;function fy(){const e=W.useRef([]),r=W.useCallback(i=>l=>{l&&(e.current[i]=l)},[]),t=W.useCallback(()=>{e.current=[]},[]);return[e.current,r,t]}const wT=e=>{const{defaultValue:r,value:t}=e||{},[i,l]=W.useState(()=>{if(t!==void 0)return t;if(r!==void 0)return typeof r=="function"?r():r}),f=t!==void 0?t:i;function c(p){l(p)}return[f,c]},rX="",[jI]=wn("swiper-item"),_T=W.forwardRef((e,r)=>{const t=W.useRef(null);W.useImperativeHandle(r,()=>({self:t.current}));const[i]=oz(t,{rootMargin:"-0.1px",threshold:0,root:()=>{var l;return(l=e.trackRef)===null||l===void 0?void 0:l.current}});return Q("div",Object.assign({ref:t,className:Re(e.className,jI({hidden:e.autoHeight&&i===!1})),onClick:e.onClick,style:e.style},{children:e.children}))}),[Lc]=wn("swiper"),II=W.forwardRef((e,r)=>{const t=ea(e,{initialSwipe:0,loop:!0,touchable:!0,enabled:!0,rubberband:!0,autoplay:!1,slideSize:100,trackOffset:0,stuckAtBoundary:!1,preventScroll:!0}),{loop:i,autoplay:l,vertical:f,duration:c,autoHeight:p}=t,g=f?"y":"x",d=t.slideSize/100,m=t.trackOffset/100,{validChildren:C,count:b}=W.useMemo(()=>{let te=0;return{validChildren:W.Children.map(t.children,$=>W.isValidElement($)?$.type!==_T?null:(te++,$):null),count:te}},[t.children]),x=W.useRef(null),[_,k]=fy(),[E,A]=W.useState(()=>t.enabled),[T,D]=W.useState(t.initialSwipe),[R,N,z]=Q2(!1),M=W.useMemo(()=>Object.assign({["--rv-swipe-slide-size"]:`${t.slideSize}%`,["--rv-swipe-track-offset"]:`${t.trackOffset}%`},t.style),[t.slideSize,t.trackOffset,t.style]),I=W.useMemo(()=>d*(b-1)<1?!1:i,[b,i,d]),Y=()=>{const te=x.current;return te?(f?te.offsetHeight:te.offsetWidth)*t.slideSize/100:0},B=te=>{let Z=0,$=b-1;return t.stuckAtBoundary&&(Z+=(1-d-m)/d,$-=(1-d-m)/d),vT(te,Z,$)},[{position:P},U]=xI(()=>({position:B(T)*100,config:{tension:200,friction:30,duration:c},onRest:()=>{if(z.current||!I)return;const te=P.get(),Z=100*b,$=$C(te,Z);$!==te&&U.start({position:$,immediate:!0})}}),[b]),H=uj(te=>{var Z;const $=Y();if(!$||!t.preventScroll&&ST(te.target,(Z=_[T])===null||Z===void 0?void 0:Z.self))return;const ne=f?1:0,oe=te.offset[ne],ae=te.direction[ne],se=te.velocity[ne];if(N(!0),!te.last)U.start({position:oe*100/$,immediate:!0});else{const ve=Math.round((oe+Math.min(se*2e3,$)*ae)/$);K(ve),window.setTimeout(()=>{N(!1)})}},{enabled:E,transform:([te,Z])=>[-te,-Z],from:()=>{const te=Y();return[P.get()/100*te,P.get()/100*te]},bounds:()=>{if(I)return{};const te=Y(),Z=B(0)*te,$=B(b-1)*te;return f?{top:Z,bottom:$}:{left:Z,right:$}},rubberband:t.rubberband,axis:g,preventScroll:g==="x"?t.preventScroll:!1,pointer:{touch:!0}}),V=()=>t.indicator===void 0||t.indicator===!0?Q("div",Object.assign({className:Re(Lc("indicator",{vertical:f}))},{children:Q(NI,Object.assign({},t.indicatorProps,{vertical:f,total:b,current:T}))})):typeof t.indicator=="function"?t.indicator(b,T):null;function K(te,Z=!1){const $=Math.round(te),ne=I?$C($,b):vT($,0,b-1);D(ne),U.start({position:(I?$:B($))*100,immediate:Z})}const ee=()=>{K(Math.round(P.get()/100)+1)},J=()=>{K(Math.round(P.get()/100)-1)};W.useImperativeHandle(r,()=>({activeIndex:T,swipeTo:K,swipeNext:ee,swipePrev:J,enable:()=>{A(!0)},disable:()=>{A(!1)}})),tp(()=>{const te=C.length-1;T>te&&K(te,!0)}),Rc(()=>{var te;(te=t.onChange)===null||te===void 0||te.call(t,T)},[T]),W.useEffect(()=>{if(!l||R)return Mi;const te=typeof l=="boolean"?5e3:l,Z=window.setInterval(()=>{ee()},te);return()=>{window.clearInterval(Z)}},[l,R]);const q=()=>I?Q("div",Object.assign({className:Re(Lc("track-inner",{vertical:f}))},{children:W.Children.map(C,(te,Z)=>Q(pT.div,Object.assign({className:Re(Lc("slide")),style:{[g]:P.to($=>{let ne=-$+Z*100;const oe=b*100,ae=oe/2;return ne=$C(ne+ae,oe)-ae,`${ne}%`}),[f?"top":"left"]:`-${Z*100}%`}},{children:W.cloneElement(te,{ref:k(Z),autoHeight:p,trackRef:x})})))})):Q(pT.div,Object.assign({className:Re(Lc("track-inner")),style:{[g]:P.to(te=>`${-te}%`)}},{children:W.Children.map(C,(te,Z)=>Q("div",Object.assign({className:Re(Lc("slide"))},{children:W.cloneElement(te,{ref:k(Z),autoHeight:p})})))}));return b===0&&void 0,Be("div",Object.assign({className:Re(t.className,Lc({vertical:f})),style:M},{children:[Q("div",Object.assign({ref:x,className:Re(Lc("track",{"allow-touch-move":t.touchable})),onClickCapture:te=>{z.current&&te.stopPropagation()}},t.touchable?H():{},{children:q()})),V()]}))});function $C(e,r){const t=e%r;return t<0?t+r:t}function ST(e,r){return r?e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight?!0:e.parentElement&&e.parentElement!==r?ST(e.parentElement,r):!1:!1}const ET=Object.assign(II,{Item:_T}),HI=e=>{const r=ea(e,{shape:"round",bindGroup:!0}),t=W.useRef(null),i=m=>r.parent&&r.bindGroup?r.parent.props[m]:null,l=W.useMemo(()=>i("disabled")||r.disabled,[r.parent,r.disabled]),f=W.useMemo(()=>i("direction")||null,[r.parent]),c=W.useMemo(()=>{const m=r.checkedColor||i("checkedColor");return m&&r.checked&&!l?{borderColor:m,backgroundColor:m}:{}},[r.checkedColor,r.checked,l]),p=m=>{const{target:C}=m,b=t.current,x=b===C||(b==null?void 0:b.contains(C));!l&&(x||!r.labelDisabled)&&r.onToggle&&r.onToggle(),r.onClick&&r.onClick(m)},g=()=>{const{bem:m,shape:C,checked:b}=r,x=r.iconSize||i("iconSize");return Q("div",Object.assign({ref:t,className:Re(m("icon",[C,{disabled:l,checked:b}])),style:{fontSize:dl(x)}},{children:r.iconRender?r.iconRender({checked:b,disabled:l}):Q(OD,{style:c})}))},d=()=>r.children?Q("span",Object.assign({className:r.bem("label",[r.labelPosition,{disabled:l}])},{children:r.children})):null;return Be("div",Object.assign({role:r.role,className:Re(r.bem([{disabled:l,"label-disabled":r.labelDisabled},f]),r.className),style:r.style,tabIndex:l?-1:0,"aria-checked":r.checked,onClick:p},{children:[r.labelPosition==="left"&&d(),g(),r.labelPosition!=="left"&&d()]}))},sX="";function VI(e){return[e.getFullYear(),e.getMonth()+1]}function YC(e,r){const t=e.getFullYear(),i=r.getFullYear();if(t===i){const l=e.getMonth(),f=r.getMonth();return l===f?0:l>f?1:-1}return t>i?1:-1}function ml(e,r){const t=YC(e,r);if(t===0){const i=e.getDate(),l=r.getDate();return i===l?0:i>l?1:-1}return t}const dy=e=>new Date(e),DT=e=>Array.isArray(e)?e.map(dy):dy(e);function qC(e,r){const t=dy(e);return t.setDate(t.getDate()+r),t}const kT=e=>qC(e,-1),TT=e=>qC(e,1),GC=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function $I(e){const r=e[0].getTime();return(e[1].getTime()-r)/(1e3*60*60*24)+1}function AT(e,r){let t=-1;const i=Array(e);for(;++t<e;)i[t]=r(t);return i}function YI(e){if(!e)return 0;for(;pD(parseInt(e,10));)if(e.length>1)e=e.slice(1);else return 0;return parseInt(e,10)}function KC(e,r){return 32-new Date(e,r-1,32).getDate()}const[Mp]=wn("calendar"),qI=e=>{const r=ea(e,{offset:0}),t=W.useMemo(()=>{const{item:d,index:m,color:C,offset:b,rowHeight:x}=r,_={height:x};if(d.type==="placeholder")return _.width="100%",_;if(m===0&&(_.marginLeft=`${100*b/7}%`),C)switch(d.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":_.background=C;break;case"middle":_.color=C;break}return _},[r.item,r.index,r.color,r.offset,r.rowHeight]),i=()=>{var d;r.item.type!=="disabled"&&((d=r.onClick)===null||d===void 0||d.call(r,r.item))},l=()=>{const{topInfo:d}=r.item;return d||r.topInfoRender?Q("div",Object.assign({className:Re(Mp("top-info"))},{children:r.topInfoRender?r.topInfoRender(r.item):d})):null},f=()=>{const{bottomInfo:d}=r.item;return d||r.bottomInfoRender?Q("div",Object.assign({className:Re(Mp("bottom-info"))},{children:r.bottomInfoRender?r.bottomInfoRender(r.item):d})):null},c=()=>{const{item:d,color:m,rowHeight:C}=r,{type:b,text:x}=d,_=Be(en,{children:[l(),x,f()]});return b==="selected"?Q("div",Object.assign({className:Re(Mp("selected-day")),style:{width:C,height:C,background:m}},{children:_})):_},{type:p,className:g}=r.item;return p==="placeholder"?Q("div",{className:Re(Mp("day")),style:t}):Q("div",Object.assign({role:"gridcell",style:t,className:Re(Mp("day",p),g),tabIndex:p==="disabled"?void 0:-1,onClick:i},{children:c()}))},[hy]=wn("calendar"),GI=W.forwardRef((e,r)=>{const[t,i]=W.useState(),l=W.useRef(),[f,c]=W.useState(),p=W.useRef(0),{locale:g}=W.useContext(vd);W.useEffect(()=>{f&&(p.current=gT(f).height)},[f]);const d=W.useMemo(()=>e.formatMonthTitle?e.formatMonthTitle(e.date):g.vanCalendar.monthTitle(...VI(e.date)),[e.date,e.formatMonthTitle]),m=W.useMemo(()=>dl(e.rowHeight),[e.rowHeight]),C=W.useMemo(()=>{const B=e.date.getDay();return e.firstDayOfWeek?(B+7-e.firstDayOfWeek)%7:B},[e.date,e.firstDayOfWeek]),b=W.useMemo(()=>KC(e.date.getFullYear(),e.date.getMonth()+1),[e.date]),x=W.useMemo(()=>t||!e.lazyRender,[t]),_=()=>d,k=B=>{const P=e.showSubtitle?l.current:f,U=(P==null?void 0:P.getBoundingClientRect().top)-B.getBoundingClientRect().top+B.scrollTop;fD(B,U)},E=B=>{const P=U=>e.currentDate.some(H=>ml(H,U)===0);if(P(B)){const U=kT(B),H=TT(B),V=P(U),K=P(H);return V&&K?"multiple-middle":V?"end":K?"start":"multiple-selected"}return""},A=B=>{const[P,U]=e.currentDate;if(!P)return"";const H=ml(B,P);if(!U)return H===0?"start":"";const V=ml(B,U);return e.allowSameDay&&H===0&&V===0?"start-end":H===0?"start":V===0?"end":H>0&&V<0?"middle":""},T=B=>{const{type:P,minDate:U,maxDate:H,currentDate:V}=e;if(ml(B,U)<0||ml(B,H)>0)return"disabled";if(V===null)return"";if(Array.isArray(V)){if(P==="multiple")return E(B);if(P==="range")return A(B)}else if(P==="single")return ml(B,V)===0?"selected":"";return""},D=B=>{if(e.type==="range"){if(B==="start")return g.vanCalendar.start;if(B==="end")return g.vanCalendar.end;if(B==="start-end")return g.vanCalendar.startEnd}return null},R=()=>e.showMonthTitle?Q("div",Object.assign({className:Re(hy("month-title"))},{children:d})):null,N=()=>e.showMark&&x?Q("div",Object.assign({className:Re(hy("month-mark"))},{children:e.date.getMonth()+1})):null,z=W.useMemo(()=>{const B=Math.ceil((b+C)/7);return Array(B).fill({type:"placeholder"})},[b,C]),M=W.useMemo(()=>{const B=[],P=e.date.getFullYear(),U=e.date.getMonth();for(let H=1;H<=b;H++){const V=new Date(P,U,H),K=T(V);let ee={date:V,type:K,text:H,bottomInfo:D(K)};e.formatter&&(ee=e.formatter(ee)),B.push(ee)}return B},[T,e.date,e.formatter]),I=(B,P)=>Q(qI,{item:B,index:P,color:e.color,offset:C,rowHeight:m,onClick:e.onClick,topInfoRender:e.topInfoRender,bottomInfoRender:e.bottomInfoRender},P),Y=()=>Be("div",Object.assign({ref:l,role:"grid",className:Re(hy("days"))},{children:[N(),(x?M:z).map(I)]}));return W.useImperativeHandle(r,()=>({getTitle:_,getHeight:()=>p.current,setVisible:i,scrollIntoView:k})),Be("div",Object.assign({className:Re(hy("month")),ref:c},{children:[R(),Y()]}))}),[Pp]=wn("calendar"),KI=e=>{const{locale:r}=W.useContext(vd),t=()=>{if(e.showTitle){const c=e.title||r.vanCalendar.title;return Q("div",Object.assign({className:Re(Pp("header-title"))},{children:c}))}return null},i=c=>{var p;(p=e.onClickSubtitle)===null||p===void 0||p.call(e,c)},l=()=>e.showSubtitle?Q("div",Object.assign({className:Re(Pp("header-subtitle")),onClick:i},{children:e.subtitle})):null,f=()=>{const{weekdays:c,firstDayOfWeek:p}=e,g=r.vanCalendar.weekdays,d=c?g.map((C,b)=>c[b]||C):g,m=[...d.slice(p,7),...d.slice(0,p)];return Q("div",Object.assign({className:Re(Pp("weekdays"))},{children:m.map((C,b)=>Q("span",Object.assign({className:Re(Pp("weekday"))},{children:C}),b))}))};return Be("div",Object.assign({className:Re(Pp("header"))},{children:[t(),l(),f()]}))},[_d]=wn("calendar"),WI=GC(),QI=(()=>{const e=GC();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())})(),OT=W.forwardRef((e,r)=>{var t,{className:i,style:l}=e,f=$a(e,["className","style"]);const c=ea(f,{round:!0,poppable:!0,showMark:!0,showTitle:!0,showConfirm:!0,showSubtitle:!0,closeOnPopstate:!0,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,defaultValue:null,type:"single",position:"bottom",maxRange:null,minDate:WI,maxDate:QI,firstDayOfWeek:0,showRangePrompt:!0}),{locale:p}=W.useContext(vd),[g,d]=np({value:c.visible,defaultValue:!1,onChange:$=>{var ne;$===!1&&((ne=c.onClose)===null||ne===void 0||ne.call(c))}}),m=($,ne=c.minDate,oe=c.maxDate)=>ml($,ne)===-1?ne:ml($,oe)===1?oe:$,C=($=c.defaultValue)=>{const{type:ne,minDate:oe,maxDate:ae}=c;if($===null)return $;const se=GC();if(ne==="range"){Array.isArray($)||($=[]);const ve=m($[0]||se,oe,kT(ae)),we=m($[1]||se,TT(oe));return[ve,we]}return ne==="multiple"?Array.isArray($)?$.map(ve=>m(ve)):[m(se)]:((!$||Array.isArray($))&&($=se),m($))},b=W.useRef(),x=W.useRef(0),[_,k]=W.useState(C(c.value===void 0?c.defaultValue:c.value)),[E,A]=yD({subtitle:"",currentDate:_});Rc(()=>{c.value!==void 0&&JSON.stringify(_)!==JSON.stringify(c.value)&&k(c.value)},[c.value]),W.useEffect(()=>{JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_})},[_]);const[T,D]=fy(),R=W.useMemo(()=>c.firstDayOfWeek?+c.firstDayOfWeek%7:0,[c.firstDayOfWeek,c.firstDayOfWeek]),N=W.useMemo(()=>{const $=[],ne=new Date(c.minDate);ne.setDate(1);do $.push(new Date(ne)),ne.setMonth(ne.getMonth()+1);while(YC(ne,c.maxDate)!==1);return $},[c.minDate,c.maxDate]),z=W.useMemo(()=>{const{currentDate:$}=E;if($){if(c.type==="range")return!$[0]||!$[1];if(c.type==="multiple")return!$.length}return!$},[c.type,E.currentDate]),M=()=>{var $;const ne=GL(b.current),oe=ne+x.current,ae=N.map((ye,De)=>T[De].getHeight()),se=ae.reduce((ye,De)=>ye+De,0);if(oe>se&&ne>0)return;let ve=0,we;const ce=[-1,-1];for(let ye=0;ye<N.length;ye++){const De=T[ye];ve<=oe&&ve+ae[ye]>=ne&&(ce[1]=ye,we||(we=De,ce[0]=ye),T[ye].showed||(T[ye].showed=!0,($=c.onMonthShow)===null||$===void 0||$.call(c,{date:De.date,title:De.getTitle()}))),ve+=ae[ye]}N.forEach((ye,De)=>{const Pe=De>=ce[0]-1&&De<=ce[1]+1;T[De].setVisible(Pe)}),we&&we.getTitle()!==E.subtitle&&!c.horizontal&&A({subtitle:we.getTitle()})},I=$=>{G2(()=>{N.some((ne,oe)=>YC(ne,$)===0?(b.current&&T[oe].scrollIntoView(b.current),!0):!1),M()})},Y=()=>{if(c.poppable&&!g)return;const{currentDate:$}=E;if($){const ne=c.type==="single"?$:$[0];I(ne)}else G2(M)},B=()=>{G2(()=>{x.current=Math.floor(gT(b.current).height),Y()})},P=($=C())=>{A({currentDate:$}),Y()},U=$=>{var ne;const{maxRange:oe,rangePrompt:ae,showRangePrompt:se}=c;return oe&&$I($)>oe?(se&&CT.info(ae||p.vanCalendar.rangePrompt(+oe)),(ne=c.onOverRange)===null||ne===void 0||ne.call(c),!1):!0},H=()=>{var $;const ne=DT(E.currentDate);c.poppable&&k(ne),($=c.onConfirm)===null||$===void 0||$.call(c,ne),Z.close()},V=($,ne)=>{const oe=ae=>{var se;E.currentDate=ae,A({currentDate:ae}),(se=c.onSelect)===null||se===void 0||se.call(c,DT(E.currentDate))};if(ne&&c.type==="range"&&!U($)){c.showConfirm?oe([$[0],qC($[0],+c.maxRange-1)]):oe($);return}oe($),ne&&!c.showConfirm&&H()},K=$=>{var ne;if(c.readOnly||!$.date)return;const{date:oe}=$,{type:ae}=c,{currentDate:se}=E;if(ae==="range"){if(!se){V([oe]);return}const[ve,we]=se;if(ve&&!we){const ce=ml(oe,ve);ce===1?V([ve,oe],!0):ce===-1?V([oe]):c.allowSameDay&&V([oe,oe],!0)}else V([oe])}else if(ae==="multiple"){if(!se){V([oe]);return}let ve;if(E.currentDate.some((ce,ye)=>{const De=ml(ce,oe)===0;return De&&(ve=ye),De})){const[ce]=se.splice(ve,1);(ne=c.onUnselect)===null||ne===void 0||ne.call(c,dy(ce)),V([...se])}else c.maxRange&&se.length>=c.maxRange?CT(c.rangePrompt||`选择天数不能超过 ${c.maxRange} 天`):V([...se,oe])}else V(oe,!0)},ee=($,ne)=>{const oe=!c.horizontal&&(ne!==0||!c.showSubtitle);return Q(GI,Object.assign({ref:D(ne),date:$,currentDate:E.currentDate,showMonthTitle:oe,firstDayOfWeek:R},sD(c,["type","color","minDate","maxDate","showMark","formatter","rowHeight","showSubtitle","lazyRender","allowSameDay","topInfoRender","bottomInfoRender","formatMonthTitle"]),{onClick:K}),ne)},J=()=>{if(c.footer)return c.footer;if(c.showConfirm){const $=z?c.confirmDisabledText:c.confirmText;return Q(ip,Object.assign({round:!0,block:!0,type:"danger",color:c.color,className:Re(_d("confirm")),disabled:z,nativeType:"button",onClick:H},{children:$||p.vanCalendar.confirm}))}return null},q=()=>Q("div",Object.assign({className:Re(_d("footer"),{"rv-safe-area-bottom":c.safeAreaInsetBottom})},{children:J()})),te=()=>Be("div",Object.assign({className:Re(i,_d()),style:l},{children:[Q(KI,{weekdays:c.weekdays,title:c.title,subtitle:c.subtitle||E.subtitle,showTitle:c.showTitle,showSubtitle:c.showSubtitle,firstDayOfWeek:R,onClickSubtitle:$=>{var ne;(ne=c.onClickSubtitle)===null||ne===void 0||ne.call(c,$)}}),c.horizontal?Q("div",Object.assign({ref:b,className:Re(_d("horizontal-body"))},{children:Q(ET,Object.assign({indicator:()=>null,onChange:$=>{A({subtitle:T[$].getTitle()})}},{children:N.map(($,ne)=>Q(ET.Item,{children:ee($,ne)},$))}))})):Q("div",Object.assign({ref:b,className:Re(_d("body")),onScroll:M},{children:N.map(ee)})),q()]})),Z={toggle:()=>{c.poppable&&d($=>!$)},open:()=>{c.poppable&&d(!0)},close:()=>{c.poppable&&d(!1)}};return W.useEffect(()=>{c.poppable||B()},[]),W.useEffect(()=>{c.poppable&&g&&B()},[g]),Rc(()=>{P(C(E.currentDate))},[c.type,c.minDate,c.maxDate]),W.useImperativeHandle(r,()=>Object.assign({reset:P,scrollToDate:I},Z)),c.poppable?Be(en,{children:[Q(sp,Object.assign({visible:g,className:Re(_d("popup")),round:c.round,position:c.position,closeable:c.showTitle||c.showSubtitle,closeOnPopstate:c.closeOnPopstate,closeOnClickOverlay:c.closeOnClickOverlay,onClose:Z.close,onClosed:()=>{var $;c.poppable&&JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_}),($=c.onClosed)===null||$===void 0||$.call(c)}},{children:te()})),(t=c.children)===null||t===void 0?void 0:t.call(c,_,Z)]}):te()});function ZI(e,r){var t;process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const i=xD(e),l=(t=r==null?void 0:r.wait)!==null&&t!==void 0?t:1e3,f=W.useMemo(()=>PI((...c)=>i.current(...c),l,r),[]);return bD(()=>{f.cancel()}),{run:f,cancel:f.cancel,flush:f.flush}}function XI(e,r,t){const[i,l]=W.useState({}),{run:f}=ZI(()=>{l({})},t);W.useEffect(()=>f(),r),Rc(e,[i])}const hX="",RT=W.createContext({}),[JI]=wn("checkbox-group"),eH=W.forwardRef((e,r)=>{const[t,i]=fy(),[l,f]=wT({value:e.value,defaultValue:e.defaultValue}),c=(g={})=>{typeof g=="boolean"&&(g={checked:g});const{checked:d,skipDisabled:m}=g,b=t.filter(x=>x.props.bindGroup?x.props.disabled&&m?x.checked:d??!x.checked:!1).map(x=>x.props.name);f(b),e.onChange(b)},p=g=>{var d;f(g),(d=e.onChange)===null||d===void 0||d.call(e,g)};return W.useImperativeHandle(r,()=>({toggleAll:c})),Q(RT.Provider,Object.assign({value:{parent:{props:e},toggle:p,checked:l||[]}},{children:Q("div",Object.assign({className:Re(e.className,JI([e.direction]))},{children:W.Children.toArray(e.children).filter(Boolean).map((g,d)=>{var m;return((m=g.type)===null||m===void 0?void 0:m.displayName)!=="Checkbox"?g:W.cloneElement(g,{ref:i(d)})})}))}))}),[tH]=wn("checkbox"),FT=W.forwardRef((e,r)=>{const t=ea(e,{bindGroup:!0}),i=W.useContext(RT),{parent:l}=i,f=$a(i,["parent"]),[c,p]=wT({value:t.checked,defaultValue:t.defaultChecked}),g=C=>{const{name:b}=t,{max:x}=l.props,_=f.checked.slice();if(C)!(x&&_.length>=x)&&_.indexOf(b)===-1&&(_.push(b),t.bindGroup&&f.toggle(_));else{const k=_.indexOf(b);k!==-1&&(_.splice(k,1),t.bindGroup&&f.toggle(_))}},d=W.useMemo(()=>l&&t.bindGroup?f.checked.indexOf(t.name)!==-1:c,[f.checked,c]),m=(C=!d)=>{var b;l&&t.bindGroup?g(C):(p(C),(b=t.onChange)===null||b===void 0||b.call(t,C))};return W.useImperativeHandle(r,()=>({toggle:m,checked:d,props:t})),Q(HI,Object.assign({},t,{bem:tH,role:"checkbox",parent:l,checked:d,className:t.className,bindGroup:t.bindGroup,onToggle:m}))});FT.displayName="Checkbox";const NT=Object.assign(FT,{Group:eH}),gX="",MT=200,PT=300,nH=15;function rH(e){const r=window.getComputedStyle(e),t=r.transform||r.webkitTransform,i=t.slice(7,t.length-1).split(", ")[5];return Number(i)}const[WC]=wn("picker-column"),aH=W.memo(W.forwardRef((e,r)=>{const{locale:t}=W.useContext(vd),{valueKey:i,textKey:l,itemHeight:f,visibleItemCount:c,placeholder:p,value:g}=e,d=W.useMemo(()=>vD(f),[f]),m=W.useMemo(()=>Array.isArray(e.options)&&!e.options.length?[]:p?[{[i]:void 0,[l]:p===!0?t.vanPicker.select:p},...e.options]:e.options,[e.options]),C=W.useRef(null),b=W.useRef(!1),x=W.useRef(0),_=W.useRef(null),k=W.useRef(0),E=W.useRef(0),[A,T,D]=yD({offset:0,duration:0}),R=_D(),N=W.useMemo(()=>d*(+c-1)/2,[d,c]),z=q=>{var te,Z;q=ep(q,0,m.length);for(let $=q;$<m.length;$+=1)if(!(!((te=m[$])===null||te===void 0)&&te.disabled))return $;for(let $=q-1;$>=0;$-=1)if(!(!((Z=m[$])===null||Z===void 0)&&Z.disabled))return $;return null},M=q=>{e.onSelect(q,e.index)},I=q=>{q=z(q)||0;const te=-q*d,Z=()=>{var $;(($=m[q])===null||$===void 0?void 0:$[i])!==g&&M(m[q])};b.current&&te!==D.current.offset?_.current=Z:Z(),T({offset:te})},Y=q=>{q=z(q)||0;const te=-q*d;T({offset:te})};tp(()=>{if(m.length===0)g!==void 0&&M(void 0);else{let q=m.findIndex(te=>te[i]===g);q<0&&(q=0,M(m[0])),Y(q)}},[g,JSON.stringify(m)]);const B=q=>{b.current||e.readOnly||(_.current=null,T({duration:MT}),I(q))},P=q=>ep(Math.round(-q/d),0,m.length-1),U=(q,te)=>{const Z=Math.abs(q/te);q=D.current.offset+Z/.003*(q<0?-1:1);const $=P(q);T({duration:+e.swipeDuration}),I($)},H=()=>{b.current=!1,T({duration:0}),_.current&&(_.current(),_.current=null)},V=q=>{if(e.readOnly)return;R.start(q);let{offset:te}=A;if(b.current){const Z=rH(C.current);te=Math.min(0,Z-N),x.current=te}else x.current=te;T({duration:0,offset:te}),k.current=Date.now(),E.current=x.current,_.current=null},K=q=>{if(e.readOnly)return;R.move(q),R.isVertical()&&(b.current=!0);const te=ep(x.current+R.deltaY.current,-(m.length*d),d);T({offset:te});const Z=Date.now();Z-k.current>PT&&(k.current=Z,E.current=te)},ee=()=>{if(e.readOnly||!b.current)return;const q=D.current.offset-E.current,te=Date.now()-k.current;if(te<PT&&Math.abs(q)>nH){U(q,te);return}const $=P(D.current.offset);T({duration:MT}),I($),setTimeout(()=>{b.current=!1},0)},J=()=>{const q={height:`${e.itemHeight}px`};return m.map((te,Z)=>{const{disabled:$}=te,ne={role:"button",style:q,tabIndex:$?-1:0,className:Re(WC("item",{disabled:$,selected:te[i]===g})),onClick:()=>{B(Z)}},oe={className:"rv-ellipsis",children:te[l]};return W.createElement("li",Object.assign({},ne,{key:Z}),e.optionRender?e.optionRender(te):Q("div",Object.assign({},oe)))})};return W.useImperativeHandle(r,()=>({stopMomentum:H})),Q("div",Object.assign({className:Re(WC(),e.className),onTouchStart:V,onTouchMove:K,onTouchEnd:ee,onTouchCancel:ee},{children:Q("ul",Object.assign({ref:C,style:{transform:`translate3d(0, ${A.offset+N}px, 0)`,transitionDuration:`${A.duration}ms`,transitionProperty:A.duration?"all":"none"},className:Re(WC("wrapper")),onTransitionEnd:H},{children:J()}))}))}),(e,r)=>!(e.index!==r.index||e.value!==r.value||e.onSelect!==r.onSelect||JSON.stringify(e.options)!==JSON.stringify(r.options)));function iH(e,r){const{textKey:t,valueKey:i,childrenKey:l}=r,f=W.useMemo(()=>{if(e.some(d=>typeof d=="object"&&l in d))return"cascade";const g=e[0]||{};return typeof g=="object"?l in g?"cascade":"object":"plain"},[e,l]),c=W.useMemo(()=>{let p=0;function g(d,m){m>p&&(p=m);const C=m+1;d.forEach(b=>{b[l]&&g(b[l],C)})}return g(e,1),p},[e,l]);return f!=="cascade"?e:p=>{const g=[];let d=e,m=0;for(;;){g.push(d.map(x=>{var _;return{[t]:x[t],[i]:(_=x[i])!==null&&_!==void 0?_:x[t]}}));const C=p[m],b=d.find(x=>{var _;return((_=x[i])!==null&&_!==void 0?_:x[t])===C});if(!b||!b[l])break;d=b[l],m++}for(;m<c-1;)g.push([]),m++;return g}}function QC(e){let r=null;return()=>(r===null&&(r=e()),r)}function oH(e,r,t){const{textKey:i,valueKey:l}=r,f=QC(()=>{let d=typeof e=="function"?e(t):e;return Array.isArray(d[0])||(d=[d]),d.map(m=>m.map(C=>typeof C=="string"?{[i]:C,[l]:C}:(l in C||(C[l]=C[i]),C)))}),c=QC(()=>t.map((d,m)=>{var C;const b=f()[m];return b?(C=b.find(x=>x[l]===d))!==null&&C!==void 0?C:void 0:null})),p=QC(()=>t.map((d,m)=>{var C;const b=f()[m];return b&&(C=b.findIndex(x=>x[l]===d))!==null&&C!==void 0?C:null}));return{get columns(){return f()},get items(){return c()},get indexes(){return p()}}}function BT(e,r,t){const i=iH(e,r);return W.useMemo(()=>oH(i,r,t),[e,r,t])}const[cs]=wn("picker");function lH(e){const{locale:r}=W.useContext(vd),t=W.useRef(null),[i,l]=fy(),{text:f,value:c,children:p}=Jh({text:"text",value:"value",children:"children"},e.columnsFieldNames),[g,d]=W.useState(e.value);W.useEffect(()=>{e.value!==void 0&&JSON.stringify(g)!==JSON.stringify(e.value)&&d(e.value)},[e.value]);const m=BT(e.columns,{textKey:f,valueKey:c,childrenKey:p},g),{columns:C,items:b,indexes:x}=m;XI(()=>{var I;JSON.stringify(e.value)!==JSON.stringify(g)&&((I=e.onChange)===null||I===void 0||I.call(e,g,b,x))},[g],{wait:100,leading:!1,trailing:!0});const _=W.useMemo(()=>vD(e.itemHeight),[e.itemHeight]),k=(I,Y)=>{d(B=>{const P=[...B];return P[Y]=I==null?void 0:I[c],P})},E=()=>{var I;i.forEach(Y=>Y.stopMomentum()),(I=e.onConfirm)===null||I===void 0||I.call(e,g,b,x)},A=()=>{var I;(I=e.onCancel)===null||I===void 0||I.call(e)},T=()=>e.title?Q("div",Object.assign({className:Re(cs("title"),"rv-ellipsis")},{children:e.title})):null,D=()=>{const I=e.cancelButtonText||r.cancel;return Q("button",Object.assign({type:"button",className:Re(cs("cancel")),onClick:A},{children:I}))},R=()=>{const I=e.confirmButtonText||r.confirm;return Q("button",Object.assign({type:"button",className:Re(cs("confirm")),onClick:E},{children:I}))},N=()=>e.showToolbar?Q("div",Object.assign({className:Re(cs("toolbar"))},{children:e.toolbar||Be(en,{children:[D(),T(),R()]})})):null,z=()=>C.map((I,Y)=>{const B=Array.isArray(e.placeholder)?e.placeholder[Y]:e.placeholder;return Q(aH,{textKey:f,valueKey:c,ref:l(Y),placeholder:B,optionRender:e.optionRender,readOnly:e.readOnly,value:g[Y],itemHeight:_,index:Y,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,options:I,onSelect:k},Y)}),M=()=>{const I=_*e.visibleItemCount,Y={height:`${_}px`},B={height:`${I}px`},P={backgroundSize:`100% ${(I-_)/2}px`};return Be("div",Object.assign({ref:t,className:Re(cs("columns")),style:B},{children:[z(),Q("div",{className:Re(cs("mask")),style:P}),Q("div",{className:Re(wz,cs("frame")),style:Y})]}))};return W2("touchmove",q2,{target:t.current}),Be("div",Object.assign({className:Re(cs(),e.className)},{children:[e.toolbarPosition==="top"?N():null,e.loading?Q(X2,{className:Re(cs("loading"))}):null,e.columnsTop,M(),e.columnsBottom,e.toolbarPosition==="bottom"?N():null]}))}function sH(e,r){const t=ea(e,{columns:[],itemHeight:44,visibleItemCount:5,swipeDuration:300,showToolbar:!0,placeholder:!0,toolbarPosition:"top"}),{visible:i,popup:l,children:f,defaultValue:c=[]}=t,p=$a(t,["visible","popup","children","defaultValue"]),[g,d]=np({value:i,defaultValue:!1,onChange:U=>{var H;U===!1&&((H=t.onClose)===null||H===void 0||H.call(t))}}),m={toggle:()=>{l&&d(U=>!U)},open:()=>{l&&d(!0)},close:()=>{l&&d(!1)}};W.useImperativeHandle(r,()=>m);const C=Array.isArray(t.value)?t.value:t.value!==void 0?[t.value]:void 0,b=Array.isArray(c)?c:c!==void 0?[c]:[],{text:x,value:_,children:k}=Jh({text:"text",value:"value",children:"children"},t.columnsFieldNames),E=W.useMemo(()=>{const U=t.columns[0]||{};return!(Array.isArray(U)||typeof U=="object"&&k in U)},[t.columns,k]),A=U=>E?U==null?void 0:U[0]:U,[T,D]=np({value:C,defaultValue:b}),R=BT(t.columns,{textKey:x,valueKey:_,childrenKey:k},T),[N,z]=W.useState(T);W.useEffect(()=>{l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[g]),W.useEffect(()=>{!l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[T]);const M=(U,H,V)=>{var K;D(N,!0),(K=t.onConfirm)===null||K===void 0||K.call(t,A(U),A(H),A(V)),l&&m.close()},I=()=>{var U;(U=t.onCancel)===null||U===void 0||U.call(t),l&&m.close()},Y=DD((U,H,V)=>{var K,ee;z(U),l?g&&((K=t.onChange)===null||K===void 0||K.call(t,A(U),A(H),A(V))):(ee=t.onChange)===null||ee===void 0||ee.call(t,A(U),A(H),A(V))}),B=cd(l)?Object.assign({closeOnClickOverlay:!0},l):{closeOnClickOverlay:!0},P=Q(lH,Object.assign({},p,{value:N,onCancel:I,onConfirm:M,onChange:Y}));return l?Be(en,{children:[Q(sp,Object.assign({round:!0,position:"bottom",visible:g,closeOnClickOverlay:!0,onClickOverlay:()=>{B!=null&&B.closeOnClickOverlay&&d(!1)}},B,{children:P})),f==null?void 0:f(A(T),A(R.items),m)]}):P}const ZC=W.forwardRef(sH);function uH(e){return Object.prototype.toString.call(e)==="[object Date]"&&!pD(e.getTime())}const cH=W.forwardRef((e,r)=>{const t=ea(e,{type:"datetime",placeholder:!1,minDate:fH,maxDate:dH,formatter:(M,I)=>I}),{value:i,defaultValue:l,formatter:f,columnsOrder:c,type:p,filter:g,minDate:d,maxDate:m}=t,C=$a(t,["value","defaultValue","formatter","columnsOrder","type","filter","minDate","maxDate"]),b=M=>(uH(M)||(M=new Date),M=Math.max(M,d.getTime()),M=Math.min(M,m.getTime()),new Date(M)),[x,_,k]=Q2(()=>b(i||l)),E=(M,I)=>{const Y=t[`${M}Date`],B=Y.getFullYear();let P=1,U=1,H=0,V=0;return M==="max"&&(P=12,U=KC(I.getFullYear(),I.getMonth()+1),H=23,V=59),I.getFullYear()===B&&(P=Y.getMonth()+1,I.getMonth()+1===P&&(U=Y.getDate(),I.getDate()===U&&(H=Y.getHours(),I.getHours()===H&&(V=Y.getMinutes())))),{[`${M}Year`]:B,[`${M}Month`]:P,[`${M}Date`]:U,[`${M}Hour`]:H,[`${M}Minute`]:V}},A=W.useMemo(()=>{const{maxYear:M,maxDate:I,maxMonth:Y,maxHour:B,maxMinute:P}=E("max",k.current),{minYear:U,minDate:H,minMonth:V,minHour:K,minMinute:ee}=E("min",k.current);let J=[{type:"year",range:[U,M]},{type:"month",range:[V,Y]},{type:"day",range:[H,I]},{type:"hour",range:[K,B]},{type:"minute",range:[ee,P]}];switch(p){case"date":J=J.slice(0,3);break;case"year-month":J=J.slice(0,2);break;case"month-day":J=J.slice(1,3);break;case"datehour":J=J.slice(0,4);break}if(c){const q=c.concat(J.map(te=>te.type));J.sort((te,Z)=>q.indexOf(te.type)-q.indexOf(Z.type))}return J.map(({type:q,range:te})=>{let Z=AT(te[1]-te[0]+1,$=>hl(te[0]+$));return g&&(Z=g(q,Z)),{type:q,values:Z}})},[c,k.current,d,m]),T=W.useMemo(()=>A.map(M=>M.values.map(I=>f(M.type,I))),[A,f]),D=W.useMemo(()=>{const M=t.popup?b(k.current):k.current;return A.map(Y=>{switch(Y.type){case"year":return f("year",`${M.getFullYear()}`);case"month":return f("month",hl(M.getMonth()+1));case"day":return f("day",hl(M.getDate()));case"hour":return f("hour",hl(M.getHours()));case"minute":return f("minute",hl(M.getMinutes()));default:return""}})},[t.value,k.current,b]),R=M=>{const{type:I}=t,Y=ee=>{let J=0;A.forEach((te,Z)=>{ee===te.type&&(J=Z)});const{values:q}=A[J];return YI(q[M[J]])};let B=null,P=null,U=null;I==="month-day"?(B=(x||d).getFullYear(),P=Y("month"),U=Y("day")):(B=Y("year"),P=Y("month"),U=I==="year-month"?1:Y("day"));const H=KC(B,P);U=U>H?H:U;let V=0,K=0;return I==="datehour"&&(V=+Y("hour")),I==="datetime"&&(V=+Y("hour"),K=+Y("minute")),b(new Date(B,P-1,U,V,K))},N=(M,I,Y)=>{var B;const P=R(Y);_(P),(B=t.onChange)===null||B===void 0||B.call(t,P)},z=()=>{var M;(M=t.onConfirm)===null||M===void 0||M.call(t,x)};return Rc(()=>{const M=b(i);M&&M.valueOf()!==(x==null?void 0:x.valueOf())&&_(M)},[i,g,d,m]),Q(ZC,Object.assign({},C,{value:D,ref:r,columns:T,onChange:N,onConfirm:z,onCancel:t.onCancel},{children:(M,I,Y)=>{var B;return(B=t.children)===null||B===void 0?void 0:B.call(t,i||l,I,Y)}}))}),LT=new Date().getFullYear(),fH=new Date(LT-10,0,1),dH=new Date(LT+10,11,31),hH=cH,pH=W.forwardRef((e,r)=>{const t=ea(e,{minHour:0,maxHour:23,minMinute:0,maxMinute:59,placeholder:!1,defaultValue:"",formatter:(z,M)=>M}),{value:i,defaultValue:l,formatter:f,filter:c,minHour:p,maxHour:g,minMinute:d,maxMinute:m}=t,C=$a(t,["value","defaultValue","formatter","filter","minHour","maxHour","minMinute","maxMinute"]),b=z=>{z||(z=`${hl(p)}:${hl(d)}`);let[M,I]=z.split(":");return M=hl(ep(M,+p,+g)),I=hl(ep(I,+d,+m)),`${M}:${I}`},[x,_]=W.useState(()=>b(i===void 0?l:i)),k=W.useMemo(()=>[{type:"hour",range:[+p,+g]},{type:"minute",range:[+d,+m]}],[p,g,d,m]),E=W.useMemo(()=>k.map(({type:z,range:M})=>{let I=AT(M[1]-M[0]+1,Y=>hl(M[0]+Y));return c&&(I=c(z,I)),{type:z,values:I}}),[k]),A=W.useMemo(()=>E.map(z=>z.values.map(M=>f(z.type,M))),[E]),T=W.useMemo(()=>{const z=(t.popup?b(t.value):x).split(":");return[f("hour",z[0]),f("minute",z[1])]},[t.value,x,b]),D=()=>{var z;(z=t.onConfirm)===null||z===void 0||z.call(t,x)},R=()=>{var z;(z=t.onCancel)===null||z===void 0||z.call(t)},N=z=>{var M;const I=b(z.join(":"));_(I),(M=t.onChange)===null||M===void 0||M.call(t,I)};return Rc(()=>{const z=b(x);_(z)},[c,p,g,d,m]),Rc(()=>{const z=b(i);z!==x&&_(z)},[i]),Q(ZC,Object.assign({},C,{ref:r,columns:A,value:T,onChange:N,onConfirm:D,onCancel:R},{children:(z,M,I)=>{var Y;return(Y=t.children)===null||Y===void 0?void 0:Y.call(t,i,M,I)}}))}),[zT]=wn("datetime-picker"),XC=W.forwardRef((e,r)=>e.type==="time"?Q(pH,Object.assign({ref:r,className:Re(zT())},e)):Q(hH,Object.assign({ref:r,className:Re(zT())},e)));function JC(e){return Array.isArray(e)?e:[e]}const wX="";function UT(e,r){this.v=e,this.k=r}function Da(e,r,t,i){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}Da=function(c,p,g,d){function m(C,b){Da(c,C,function(x){return this._invoke(C,b,x)})}p?l?l(c,p,{value:g,enumerable:!d,configurable:!d,writable:!d}):c[p]=g:(m("next",0),m("throw",1),m("return",2))},Da(e,r,t,i)}function ew(){var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function f(x,_,k,E){var A=_&&_.prototype instanceof p?_:p,T=Object.create(A.prototype);return Da(T,"_invoke",function(D,R,N){var z,M,I,Y=0,B=N||[],P=!1,U={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(K,ee){return z=K,M=0,I=e,U.n=ee,c}};function H(V,K){for(M=V,I=K,r=0;!P&&Y&&!ee&&r<B.length;r++){var ee,J=B[r],q=U.p,te=J[2];V>3?(ee=te===K)&&(I=J[(M=J[4])?5:(M=3,3)],J[4]=J[5]=e):J[0]<=q&&((ee=V<2&&q<J[1])?(M=0,U.v=K,U.n=J[1]):q<te&&(ee=V<3||J[0]>K||K>te)&&(J[4]=V,J[5]=K,U.n=te,M=0))}if(ee||V>1)return c;throw P=!0,K}return function(V,K,ee){if(Y>1)throw TypeError("Generator is already running");for(P&&K===1&&H(K,ee),M=K,I=ee;(r=M<2?e:I)||!P;){z||(M?M<3?(M>1&&(U.n=-1),H(M,I)):U.n=I:U.v=I);try{if(Y=2,z){if(M||(V="next"),r=z[V]){if(!(r=r.call(z,I)))throw TypeError("iterator result is not an object");if(!r.done)return r;I=r.value,M<2&&(M=0)}else M===1&&(r=z.return)&&r.call(z),M<2&&(I=TypeError("The iterator does not provide a '"+V+"' method"),M=1);z=e}else if((r=(P=U.n<0)?I:D.call(R,U))!==c)break}catch(J){z=e,M=1,I=J}finally{Y=1}}return{value:r,done:P}}}(x,k,E),!0),T}var c={};function p(){}function g(){}function d(){}r=Object.getPrototypeOf;var m=[][i]?r(r([][i]())):(Da(r={},i,function(){return this}),r),C=d.prototype=p.prototype=Object.create(m);function b(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,d):(x.__proto__=d,Da(x,l,"GeneratorFunction")),x.prototype=Object.create(C),x}return g.prototype=d,Da(C,"constructor",d),Da(d,"constructor",g),g.displayName="GeneratorFunction",Da(d,l,"GeneratorFunction"),Da(C),Da(C,l,"Generator"),Da(C,i,function(){return this}),Da(C,"toString",function(){return"[object Generator]"}),(ew=function(){return{w:f,m:b}})()}function py(e,r){function t(l,f,c,p){try{var g=e[l](f),d=g.value;return d instanceof UT?r.resolve(d.v).then(function(m){t("next",m,c,p)},function(m){t("throw",m,c,p)}):r.resolve(d).then(function(m){g.value=m,c(g)},function(m){return t("throw",m,c,p)})}catch(m){p(m)}}var i;this.next||(Da(py.prototype),Da(py.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Da(this,"_invoke",function(l,f,c){function p(){return new r(function(g,d){t(l,c,g,d)})}return i=i?i.then(p,p):p()},!0)}function jT(e,r,t,i,l){return new py(ew().w(e,r,t,i),l||Promise)}function vH(e,r,t,i,l){var f=jT(e,r,t,i,l);return f.next().then(function(c){return c.done?c.value:f.next()})}function mH(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function l(){for(;t.length;)if((i=t.pop())in r)return l.value=i,l.done=!1,l;return l.done=!0,l}}function IT(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(Mr(e)+" is not iterable")}function ro(){var e=ew(),r=e.m(ro),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(c){var p=typeof c=="function"&&c.constructor;return!!p&&(p===t||(p.displayName||p.name)==="GeneratorFunction")}var l={throw:1,return:2,break:3,continue:3};function f(c){var p,g;return function(d){p||(p={stop:function(){return g(d.a,2)},catch:function(){return d.v},abrupt:function(C,b){return g(d.a,l[C],b)},delegateYield:function(C,b,x){return p.resultName=b,g(d.d,IT(C),x)},finish:function(C){return g(d.f,C)}},g=function(C,b,x){d.p=p.prev,d.n=p.next;try{return C(b,x)}finally{p.next=d.n}}),p.resultName&&(p[p.resultName]=d.v,p.resultName=void 0),p.sent=d.v,p.next=d.n;try{return c.call(this,p)}finally{d.p=p.prev,d.n=p.next}}}return(ro=function(){return{wrap:function(g,d,m,C){return e.w(f(g),d,m,C&&C.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(g,d){return new UT(g,d)},AsyncIterator:py,async:function(g,d,m,C,b){return(i(d)?jT:vH)(f(g),d,m,C,b)},keys:mH,values:IT}})()}function HT(e,r,t,i,l,f,c){try{var p=e[f](c),g=p.value}catch(d){return void t(d)}p.done?r(g):Promise.resolve(g).then(i,l)}function Bp(e){return function(){var r=this,t=arguments;return new Promise(function(i,l){var f=e.apply(r,t);function c(g){HT(f,i,l,c,p,"next",g)}function p(g){HT(f,i,l,c,p,"throw",g)}c(void 0)})}}function gH(e){if(Array.isArray(e))return Cb(e)}function VT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
+ `,e.getElementsByTagName("head")[0].appendChild(r)),e.body&&k6(e.body,"react-draggable-transparent-selection")}function tB(e){if(e)try{if(e.body&&T6(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const r=(e.defaultView||window).getSelection();r&&r.type!=="Caret"&&r.removeAllRanges()}}catch{}}function k6(e,r){e.classList?e.classList.add(r):e.className.match(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)")))||(e.className+=" ".concat(r))}function T6(e,r){e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)"),"g"),"")}var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.canDragX=aB,fl.canDragY=iB,fl.createCoreData=lB,fl.createDraggableData=sB,fl.getBoundPosition=nB,fl.getControlPosition=oB,fl.snapToGrid=rB;var Ni=cl,ud=sr;function nB(e,r,t){if(!e.props.bounds)return[r,t];let{bounds:i}=e.props;i=typeof i=="string"?i:uB(i);const l=O2(e);if(typeof i=="string"){const{ownerDocument:f}=l,c=f.defaultView;let p;if(i==="parent"?p=l.parentNode:p=f.querySelector(i),!(p instanceof c.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const g=p,d=c.getComputedStyle(l),m=c.getComputedStyle(g);i={left:-l.offsetLeft+(0,Ni.int)(m.paddingLeft)+(0,Ni.int)(d.marginLeft),top:-l.offsetTop+(0,Ni.int)(m.paddingTop)+(0,Ni.int)(d.marginTop),right:(0,ud.innerWidth)(g)-(0,ud.outerWidth)(l)-l.offsetLeft+(0,Ni.int)(m.paddingRight)-(0,Ni.int)(d.marginRight),bottom:(0,ud.innerHeight)(g)-(0,ud.outerHeight)(l)-l.offsetTop+(0,Ni.int)(m.paddingBottom)-(0,Ni.int)(d.marginBottom)}}return(0,Ni.isNum)(i.right)&&(r=Math.min(r,i.right)),(0,Ni.isNum)(i.bottom)&&(t=Math.min(t,i.bottom)),(0,Ni.isNum)(i.left)&&(r=Math.max(r,i.left)),(0,Ni.isNum)(i.top)&&(t=Math.max(t,i.top)),[r,t]}function rB(e,r,t){const i=Math.round(r/e[0])*e[0],l=Math.round(t/e[1])*e[1];return[i,l]}function aB(e){return e.props.axis==="both"||e.props.axis==="x"}function iB(e){return e.props.axis==="both"||e.props.axis==="y"}function oB(e,r,t){const i=typeof r=="number"?(0,ud.getTouch)(e,r):null;if(typeof r=="number"&&!i)return null;const l=O2(t),f=t.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,ud.offsetXYFromParent)(i||e,f,t.props.scale)}function lB(e,r,t){const i=!(0,Ni.isNum)(e.lastX),l=O2(e);return i?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:t,x:r,y:t}:{node:l,deltaX:r-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:r,y:t}}function sB(e,r){const t=e.props.scale;return{node:r.node,x:e.state.x+r.deltaX/t,y:e.state.y+r.deltaY/t,deltaX:r.deltaX/t,deltaY:r.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function uB(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function O2(e){const r=e.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}var Tg={},Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=cB;function cB(){}Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var R2=dB(W),li=N2(wt.exports),fB=N2(tu.exports),Sa=sr,lu=fl,F2=cl,Yh=N2(Ag);function N2(e){return e&&e.__esModule?e:{default:e}}function A6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(A6=function(i){return i?t:r})(e)}function dB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=A6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function Va(e,r,t){return r=hB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function hB(e){var r=pB(e,"string");return typeof r=="symbol"?r:String(r)}function pB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const bo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let su=bo.mouse,Og=class extends R2.Component{constructor(){super(...arguments),Va(this,"dragging",!1),Va(this,"lastX",NaN),Va(this,"lastY",NaN),Va(this,"touchIdentifier",null),Va(this,"mounted",!1),Va(this,"handleDragStart",r=>{if(this.props.onMouseDown(r),!this.props.allowAnyClick&&typeof r.button=="number"&&r.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:i}=t;if(this.props.disabled||!(r.target instanceof i.defaultView.Node)||this.props.handle&&!(0,Sa.matchesSelectorAndParentsTo)(r.target,this.props.handle,t)||this.props.cancel&&(0,Sa.matchesSelectorAndParentsTo)(r.target,this.props.cancel,t))return;r.type==="touchstart"&&r.preventDefault();const l=(0,Sa.getTouchIdentifier)(r);this.touchIdentifier=l;const f=(0,lu.getControlPosition)(r,l,this);if(f==null)return;const{x:c,y:p}=f,g=(0,lu.createCoreData)(this,c,p);(0,Yh.default)("DraggableCore: handleDragStart: %j",g),(0,Yh.default)("calling",this.props.onStart),!(this.props.onStart(r,g)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Sa.addUserSelectStyles)(i),this.dragging=!0,this.lastX=c,this.lastY=p,(0,Sa.addEvent)(i,su.move,this.handleDrag),(0,Sa.addEvent)(i,su.stop,this.handleDragStop))}),Va(this,"handleDrag",r=>{const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let p=i-this.lastX,g=l-this.lastY;if([p,g]=(0,lu.snapToGrid)(this.props.grid,p,g),!p&&!g)return;i=this.lastX+p,l=this.lastY+g}const f=(0,lu.createCoreData)(this,i,l);if((0,Yh.default)("DraggableCore: handleDrag: %j",f),this.props.onDrag(r,f)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const g=document.createEvent("MouseEvents");g.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(g)}return}this.lastX=i,this.lastY=l}),Va(this,"handleDragStop",r=>{if(!this.dragging)return;const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let g=i-this.lastX||0,d=l-this.lastY||0;[g,d]=(0,lu.snapToGrid)(this.props.grid,g,d),i=this.lastX+g,l=this.lastY+d}const f=(0,lu.createCoreData)(this,i,l);if(this.props.onStop(r,f)===!1||this.mounted===!1)return!1;const p=this.findDOMNode();p&&this.props.enableUserSelectHack&&(0,Sa.removeUserSelectStyles)(p.ownerDocument),(0,Yh.default)("DraggableCore: handleDragStop: %j",f),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,p&&((0,Yh.default)("DraggableCore: Removing handlers"),(0,Sa.removeEvent)(p.ownerDocument,su.move,this.handleDrag),(0,Sa.removeEvent)(p.ownerDocument,su.stop,this.handleDragStop))}),Va(this,"onMouseDown",r=>(su=bo.mouse,this.handleDragStart(r))),Va(this,"onMouseUp",r=>(su=bo.mouse,this.handleDragStop(r))),Va(this,"onTouchStart",r=>(su=bo.touch,this.handleDragStart(r))),Va(this,"onTouchEnd",r=>(su=bo.touch,this.handleDragStop(r)))}componentDidMount(){this.mounted=!0;const r=this.findDOMNode();r&&(0,Sa.addEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const r=this.findDOMNode();if(r){const{ownerDocument:t}=r;(0,Sa.removeEvent)(t,bo.mouse.move,this.handleDrag),(0,Sa.removeEvent)(t,bo.touch.move,this.handleDrag),(0,Sa.removeEvent)(t,bo.mouse.stop,this.handleDragStop),(0,Sa.removeEvent)(t,bo.touch.stop,this.handleDragStop),(0,Sa.removeEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Sa.removeUserSelectStyles)(t)}}findDOMNode(){var r,t;return(r=this.props)!==null&&r!==void 0&&r.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:fB.default.findDOMNode(this)}render(){return R2.cloneElement(R2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Tg.default=Og,Va(Og,"displayName","DraggableCore"),Va(Og,"propTypes",{allowAnyClick:li.default.bool,children:li.default.node.isRequired,disabled:li.default.bool,enableUserSelectHack:li.default.bool,offsetParent:function(e,r){if(e[r]&&e[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:li.default.arrayOf(li.default.number),handle:li.default.string,cancel:li.default.string,nodeRef:li.default.object,onStart:li.default.func,onDrag:li.default.func,onStop:li.default.func,onMouseDown:li.default.func,scale:li.default.number,className:F2.dontSetMe,style:F2.dontSetMe,transform:F2.dontSetMe}),Va(Og,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return g.default}}),e.default=void 0;var r=b(W),t=m(wt.exports),i=m(tu.exports),l=m(NP),f=sr,c=fl,p=cl,g=m(Tg),d=m(Ag);function m(T){return T&&T.__esModule?T:{default:T}}function C(T){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(C=function(N){return N?R:D})(T)}function b(T,D){if(!D&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var R=C(D);if(R&&R.has(T))return R.get(T);var N={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in T)if(M!=="default"&&Object.prototype.hasOwnProperty.call(T,M)){var I=z?Object.getOwnPropertyDescriptor(T,M):null;I&&(I.get||I.set)?Object.defineProperty(N,M,I):N[M]=T[M]}return N.default=T,R&&R.set(T,N),N}function x(){return x=Object.assign?Object.assign.bind():function(T){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(T[N]=R[N])}return T},x.apply(this,arguments)}function _(T,D,R){return D=k(D),D in T?Object.defineProperty(T,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[D]=R,T}function k(T){var D=E(T,"string");return typeof D=="symbol"?D:String(D)}function E(T,D){if(typeof T!="object"||T===null)return T;var R=T[Symbol.toPrimitive];if(R!==void 0){var N=R.call(T,D||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(T)}class A extends r.Component{static getDerivedStateFromProps(D,R){let{position:N}=D,{prevPropsPosition:z}=R;return N&&(!z||N.x!==z.x||N.y!==z.y)?((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:N,prevPropsPosition:z}),{x:N.x,y:N.y,prevPropsPosition:{...N}}):null}constructor(D){super(D),_(this,"onDragStart",(R,N)=>{if((0,d.default)("Draggable: onDragStart: %j",N),this.props.onStart(R,(0,c.createDraggableData)(this,N))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),_(this,"onDrag",(R,N)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",N);const z=(0,c.createDraggableData)(this,N),M={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Y,y:B}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[P,U]=(0,c.getBoundPosition)(this,M.x,M.y);M.x=P,M.y=U,M.slackX=this.state.slackX+(Y-M.x),M.slackY=this.state.slackY+(B-M.y),z.x=M.x,z.y=M.y,z.deltaX=M.x-this.state.x,z.deltaY=M.y-this.state.y}if(this.props.onDrag(R,z)===!1)return!1;this.setState(M)}),_(this,"onDragStop",(R,N)=>{if(!this.state.dragging||this.props.onStop(R,(0,c.createDraggableData)(this,N))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",N);const M={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:Y,y:B}=this.props.position;M.x=Y,M.y=B}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:D.position?D.position.x:D.defaultPosition.x,y:D.position?D.position.y:D.defaultPosition.y,prevPropsPosition:{...D.position},slackX:0,slackY:0,isElementSVG:!1},D.position&&(D.onDrag||D.onStop)}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var D,R;return(D=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&D!==void 0?D:i.default.findDOMNode(this)}render(){const{axis:D,bounds:R,children:N,defaultPosition:z,defaultClassName:M,defaultClassNameDragging:I,defaultClassNameDragged:Y,position:B,positionOffset:P,scale:U,...H}=this.props;let V={},K=null;const J=!Boolean(B)||this.state.dragging,q=B||z,te={x:(0,c.canDragX)(this)&&J?this.state.x:q.x,y:(0,c.canDragY)(this)&&J?this.state.y:q.y};this.state.isElementSVG?K=(0,f.createSVGTransform)(te,P):V=(0,f.createCSSTransform)(te,P);const X=(0,l.default)(N.props.className||"",M,{[I]:this.state.dragging,[Y]:this.state.dragged});return r.createElement(g.default,x({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(N),{className:X,style:{...N.props.style,...V},transform:K}))}}e.default=A,_(A,"displayName","Draggable"),_(A,"propTypes",{...g.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),_(A,"defaultProps",{...g.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(u6);const{default:O6,DraggableCore:vB}=u6;Dg.exports=O6,Dg.exports.default=O6,Dg.exports.DraggableCore=vB;var M2={};M2.__esModule=!0,M2.cloneElement=CB;var mB=gB(W);function gB(e){return e&&e.__esModule?e:{default:e}}function R6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function F6(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?R6(Object(t),!0).forEach(function(i){yB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function yB(e,r,t){return r=xB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xB(e){var r=bB(e,"string");return typeof r=="symbol"?r:String(r)}function bB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function CB(e,r){return r.style&&e.props.style&&(r.style=F6(F6({},e.props.style),r.style)),r.className&&e.props.className&&(r.className=e.props.className+" "+r.className),mB.default.cloneElement(e,r)}var qh={};qh.__esModule=!0,qh.resizableProps=void 0;var Bt=wB(wt.exports);function wB(e){return e&&e.__esModule?e:{default:e}}var _B={axis:Bt.default.oneOf(["both","x","y","none"]),className:Bt.default.string,children:Bt.default.element.isRequired,draggableOpts:Bt.default.shape({allowAnyClick:Bt.default.bool,cancel:Bt.default.string,children:Bt.default.node,disabled:Bt.default.bool,enableUserSelectHack:Bt.default.bool,offsetParent:Bt.default.node,grid:Bt.default.arrayOf(Bt.default.number),handle:Bt.default.string,nodeRef:Bt.default.object,onStart:Bt.default.func,onDrag:Bt.default.func,onStop:Bt.default.func,onMouseDown:Bt.default.func,scale:Bt.default.number}),height:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="y"){var f;return(f=Bt.default.number).isRequired.apply(f,t)}return Bt.default.number.apply(Bt.default,t)},handle:Bt.default.oneOfType([Bt.default.node,Bt.default.func]),handleSize:Bt.default.arrayOf(Bt.default.number),lockAspectRatio:Bt.default.bool,maxConstraints:Bt.default.arrayOf(Bt.default.number),minConstraints:Bt.default.arrayOf(Bt.default.number),onResizeStop:Bt.default.func,onResizeStart:Bt.default.func,onResize:Bt.default.func,resizeHandles:Bt.default.arrayOf(Bt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Bt.default.number,width:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="x"){var f;return(f=Bt.default.number).isRequired.apply(f,t)}return Bt.default.number.apply(Bt.default,t)}};qh.resizableProps=_B,$h.__esModule=!0,$h.default=void 0;var Gh=TB(W),SB=Dg.exports,EB=M2,DB=qh,kB=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function N6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(N6=function(l){return l?t:r})(e)}function TB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=N6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P2.apply(this,arguments)}function AB(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function M6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function B2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?M6(Object(t),!0).forEach(function(i){OB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function OB(e,r,t){return r=RB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function RB(e){var r=FB(e,"string");return typeof r=="symbol"?r:String(r)}function FB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function NB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,L2(e,r)}function L2(e,r){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},L2(e,r)}var z2=function(e){NB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.handleRefs={},i.lastHandleRect=null,i.slack=null,i}var t=r.prototype;return t.componentWillUnmount=function(){this.resetData()},t.resetData=function(){this.lastHandleRect=this.slack=null},t.runConstraints=function(l,f){var c=this.props,p=c.minConstraints,g=c.maxConstraints,d=c.lockAspectRatio;if(!p&&!g&&!d)return[l,f];if(d){var m=this.props.width/this.props.height,C=l-this.props.width,b=f-this.props.height;Math.abs(C)>Math.abs(b*m)?f=l/m:l=f*m}var x=l,_=f,k=this.slack||[0,0],E=k[0],A=k[1];return l+=E,f+=A,p&&(l=Math.max(p[0],l),f=Math.max(p[1],f)),g&&(l=Math.min(g[0],l),f=Math.min(g[1],f)),this.slack=[E+(x-l),A+(_-f)],[l,f]},t.resizeHandler=function(l,f){var c=this;return function(p,g){var d=g.node,m=g.deltaX,C=g.deltaY;l==="onResizeStart"&&c.resetData();var b=(c.props.axis==="both"||c.props.axis==="x")&&f!=="n"&&f!=="s",x=(c.props.axis==="both"||c.props.axis==="y")&&f!=="e"&&f!=="w";if(!(!b&&!x)){var _=f[0],k=f[f.length-1],E=d.getBoundingClientRect();if(c.lastHandleRect!=null){if(k==="w"){var A=E.left-c.lastHandleRect.left;m+=A}if(_==="n"){var T=E.top-c.lastHandleRect.top;C+=T}}c.lastHandleRect=E,k==="w"&&(m=-m),_==="n"&&(C=-C);var D=c.props.width+(b?m/c.props.transformScale:0),R=c.props.height+(x?C/c.props.transformScale:0),N=c.runConstraints(D,R);D=N[0],R=N[1];var z=D!==c.props.width||R!==c.props.height,M=typeof c.props[l]=="function"?c.props[l]:null,I=l==="onResize"&&!z;M&&!I&&(p.persist==null||p.persist(),M(p,{node:d,size:{width:D,height:R},handle:f})),l==="onResizeStop"&&c.resetData()}}},t.renderResizeHandle=function(l,f){var c=this.props.handle;if(!c)return Gh.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+l,ref:f});if(typeof c=="function")return c(l,f);var p=typeof c.type=="string",g=B2({ref:f},p?{}:{handleAxis:l});return Gh.cloneElement(c,g)},t.render=function(){var l=this,f=this.props,c=f.children,p=f.className,g=f.draggableOpts;f.width,f.height,f.handle,f.handleSize,f.lockAspectRatio,f.axis,f.minConstraints,f.maxConstraints,f.onResize,f.onResizeStop,f.onResizeStart;var d=f.resizeHandles;f.transformScale;var m=AB(f,kB);return(0,EB.cloneElement)(c,B2(B2({},m),{},{className:(p?p+" ":"")+"react-resizable",children:[].concat(c.props.children,d.map(function(C){var b,x=(b=l.handleRefs[C])!=null?b:l.handleRefs[C]=Gh.createRef();return Gh.createElement(SB.DraggableCore,P2({},g,{nodeRef:x,key:"resizableHandle-"+C,onStop:l.resizeHandler("onResizeStop",C),onStart:l.resizeHandler("onResizeStart",C),onDrag:l.resizeHandler("onResize",C)}),l.renderResizeHandle(C,x))}))}))},r}(Gh.Component);$h.default=z2,z2.propTypes=DB.resizableProps,z2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Rg={};Rg.__esModule=!0,Rg.default=void 0;var U2=zB(W),MB=P6(wt.exports),PB=P6($h),BB=qh,LB=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function P6(e){return e&&e.__esModule?e:{default:e}}function B6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(B6=function(l){return l?t:r})(e)}function zB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=B6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},j2.apply(this,arguments)}function L6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function Fg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?L6(Object(t),!0).forEach(function(i){UB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function UB(e,r,t){return r=jB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function jB(e){var r=IB(e,"string");return typeof r=="symbol"?r:String(r)}function IB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function HB(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function VB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,I2(e,r)}function I2(e,r){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},I2(e,r)}var z6=function(e){VB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.state={width:i.props.width,height:i.props.height,propsWidth:i.props.width,propsHeight:i.props.height},i.onResize=function(p,g){var d=g.size;i.props.onResize?(p.persist==null||p.persist(),i.setState(d,function(){return i.props.onResize&&i.props.onResize(p,g)})):i.setState(d)},i}r.getDerivedStateFromProps=function(l,f){return f.propsWidth!==l.width||f.propsHeight!==l.height?{width:l.width,height:l.height,propsWidth:l.width,propsHeight:l.height}:null};var t=r.prototype;return t.render=function(){var l=this.props,f=l.handle,c=l.handleSize;l.onResize;var p=l.onResizeStart,g=l.onResizeStop,d=l.draggableOpts,m=l.minConstraints,C=l.maxConstraints,b=l.lockAspectRatio,x=l.axis;l.width,l.height;var _=l.resizeHandles,k=l.style,E=l.transformScale,A=HB(l,LB);return U2.createElement(PB.default,{axis:x,draggableOpts:d,handle:f,handleSize:c,height:this.state.height,lockAspectRatio:b,maxConstraints:C,minConstraints:m,onResizeStart:p,onResize:this.onResize,onResizeStop:g,resizeHandles:_,transformScale:E,width:this.state.width},U2.createElement("div",j2({},A,{style:Fg(Fg({},k),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},r}(U2.Component);Rg.default=z6,z6.propTypes=Fg(Fg({},BB.resizableProps),{},{children:MB.default.element}),x2.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var $B=x2.exports.Resizable=$h.default;x2.exports.ResizableBox=Rg.default;const YB={search:"search-table-module_search_17add",table:"search-table-module_table_5f652"},qB=e=>{const{onResize:r,width:t,resizeable:i,...l}=e;return!t||!i?Q("th",{...l}):Q($B,{width:t||200,height:0,onResize:r,draggableOpts:{enableUserSelectHack:!1},children:Q("th",{...l})})};function GB(e){const{tableProps:r={},searchProps:t,langId:i}=e,{minColumnWidth:l=200,resizeable:f=!1,tableId:c,storageKey:p="szld_table_cell_width",emptyText:g,...d}=r,[m,C]=W.useState(r.columns||[]),b=E=>{var T,D;let A=E.width||l;if(E.dataIndex&&c){const R=Array.isArray(E.dataIndex)?E.dataIndex.join("-"):String(E.dataIndex),N=(D=(T=jb(p))==null?void 0:T[c])==null?void 0:D[R];N&&(A=N)}return A};W.useEffect(()=>{const E=r.columns||[];if(E.length===0||!f){C(E);return}const A=E==null?void 0:E.filter(T=>!T.hidden).map(T=>T.dataIndex?{...T,width:b(T),onHeaderCell:D=>({width:D.width,resizeable:f,onResize:(R,{size:N})=>x(D,N)})}:T);A.length>0&&(A[A.length-1].minWidth=A[A.length-1].width,A[A.length-1].width=void 0),C(A)},[r.columns,c,l,f]);const x=(E,A)=>{C(T=>{const D=T==null?void 0:T.map(R=>R.dataIndex===E.dataIndex?{...R,width:A.width}:R);if(c){const R=jb(p)||{};R[c]=R[c]||{},D==null||D.forEach(N=>{if(N.dataIndex){const z=Array.isArray(N.dataIndex)?N.dataIndex.join("-"):String(N.dataIndex);R[c][z]=N.width}}),localStorage.setItem(p,JSON.stringify(R))}return D})},_={header:{cell:qB},...d==null?void 0:d.components},k=W.useMemo(()=>{var A;const E=T=>{let D=T.width||T.minWidth;return(!D||typeof D=="string")&&(D=l),D};return(A=m==null?void 0:m.map(T=>E(T)))==null?void 0:A.reduce((T,D)=>T+D,0)},[m,l]);return Be(en,{children:[t&&Q(y2,{hiddenTitle:!0,...t,items:t.items}),Q(me.Table,{scroll:{x:k},...d,components:_,columns:m,className:rs(YB.table,r==null?void 0:r.className),locale:{emptyText:Q(me.Empty,{image:me.Empty.PRESENTED_IMAGE_SIMPLE,description:g})},pagination:typeof(r==null?void 0:r.pagination)=="boolean"?r.pagination:{showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:E=>i==="10001"?`共 ${E} 条`:`Total ${E} items`,...r==null?void 0:r.pagination}})]})}const KB={editableCellValueWrap:"editable-module_editableCellValueWrap_3b3d9"},U6=W.createContext(null),WB=({index:e,...r})=>{const[t]=me.Form.useForm();return Q(me.Form,{form:t,component:!1,children:Q(U6.Provider,{value:t,children:Q("tr",{...r})})})};function QB(e){const{title:r,editable:t,children:i,dataIndex:l,record:f,rules:c,onChange:p,type:g="input",valueProps:d,initialValue:m,...C}=e,b=W.useRef(null),x=W.useContext(U6),_=async()=>{try{const A=await x.validateFields();p({...f,...A})}catch{}},k=()=>Q(s6,{valueType:g,valueProps:{...d,onBlur:_,onPressEnter:_},inputRef:b});let E=i;return t&&(E=Q(me.Form.Item,{style:{margin:0},initialValue:m||il.get(f,l),name:l,rules:c,children:k()})),Q("td",{...C,children:E})}function ZB(e){const{columns:r,onChange:t,...i}=e,l={body:{row:WB,cell:QB}},f=r==null?void 0:r.map(c=>c.editable?{...c,onCell:p=>({...c,record:p,onChange:t})}:c);return Q(me.Table,{...i,components:l,rowClassName:()=>KB.editableRow,columns:f})}const j6=e=>{const{auth:r=!0,...t}=e;return r?Q(me.Button,{...t}):null},XB=e=>{const{PId:r,auths:t,...i}=e,l=W.useMemo(()=>t?!!(typeof r=="number"&&t.find(f=>f.PId===r)||Array.isArray(r)&&t.filter(f=>r.includes(f.PId)).length>0):!1,[r,t]);return Q(j6,{...i,auth:l})},Kh={wrapper:"LoopSlide-module_wrapper_dde90",container:"LoopSlide-module_container_be123",scrollContent:"LoopSlide-module_scrollContent_36ed7",content:"LoopSlide-module_content_f392a"},JB=({speed:e=10,delay:r=1,timingFunction:t="linear",className:i="",style:l,children:f,height:c="100vh",mouseControl:p=!1,classes:g})=>{const d=W.useRef(null),m=W.useRef(null),C=W.useRef(null),b=W.useRef(null),x=W.useRef(0),_=W.useRef(),k=W.useRef(0),E=W.useMemo(()=>{if(!m.current||!C.current)return;const M=m.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());return Y*2-M.clientHeight<Y},[]),A=()=>{if(!m.current||!C.current)return;const M=m.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());if(Y*2<=M.clientHeight){M.style.animation="none";return}const B=Y/M.clientHeight;M.style.setProperty("--content-height",`${Y}px`),M.style.animationDuration=`${e*B}s`,M.style.animationDelay=`${r}s`,M.style.animationTimingFunction=t};W.useEffect(()=>(A(),m.current&&(b.current=new ResizeObserver(A),b.current.observe(m.current)),()=>{b.current&&m.current&&b.current.unobserve(m.current)}),[e,r]);const T=()=>{p&&m.current&&(m.current.style.animationPlayState="paused")},D=()=>{p&&m.current&&(z(),m.current.style.animationPlayState="running")},R=()=>{if(!m.current||!p)return;const I=m.current.getAnimations()[0];if(I)if(Math.abs(x.current)>.1){const Y=performance.now(),B=Y-k.current;k.current=Y;const P=.95;x.current*=Math.pow(P,B/16);const U=I.currentTime||0;I.currentTime=U+x.current,_.current=requestAnimationFrame(R)}else x.current=0,z()},N=M=>{if(!p||!m.current)return;M.preventDefault();const I=M.deltaY,Y=.25;x.current+=I*Y;const B=50;x.current=Math.max(-B,Math.min(B,x.current)),_.current||(k.current=performance.now(),_.current=requestAnimationFrame(R))},z=()=>{_.current&&(cancelAnimationFrame(_.current),_.current=void 0)};return W.useEffect(()=>()=>{z()},[]),W.useEffect(()=>{const M=d.current;if(M)return p&&M.addEventListener("wheel",N,{passive:!1}),()=>{M.removeEventListener("wheel",N)}},[p]),Q("div",{ref:d,className:`${Kh.wrapper} ${i}`,style:{height:c,...l},onMouseEnter:T,onMouseLeave:D,children:Be("div",{ref:m,className:rs(Kh.container,g==null?void 0:g.container),children:[Q("div",{ref:C,className:rs(Kh.content,g==null?void 0:g.content),children:f}),Q("div",{className:rs(Kh.content,g==null?void 0:g.content),children:f}),E&&Q("div",{className:rs(Kh.content,g==null?void 0:g.content),children:f})]})})},Pr={main:"workflownode-module_main_dce7f",item:"workflownode-module_item_73d7c",tail:"workflownode-module_tail_3cb51",node:"workflownode-module_node_005fd",content:"workflownode-module_content_8334f",btn:"workflownode-module_btn_b0c06",collpase:"workflownode-module_collpase_f2468",title:"workflownode-module_title_cb34c",dateWrapper:"workflownode-module_dateWrapper_94849",remark:"workflownode-module_remark_4f910",itemActive:"workflownode-module_itemActive_2a29d",itemDone:"workflownode-module_itemDone_489bc",itemUnDo:"workflownode-module_itemUnDo_2914c"},I6=e=>{const{data:r,current:t,rowKey:i,renderContent:l}=e,[f,c]=W.useState(!1),p=W.useMemo(()=>e.currentIndex!==void 0?e.currentIndex:!t||r.length===0?0:r.findIndex(C=>C.PNId===t),[t,r]),g=W.useMemo(()=>p>1?f?0:p-1:0,[p,f]),d=()=>{c(!0)};return Be("ul",{className:Pr.main,children:[p>1&&!f&&Be("li",{className:rs(Pr.item,Pr.itemDone),children:[Q("div",{className:Pr.tail}),Q("div",{className:Pr.node}),Q("div",{className:Pr.content,children:Be("div",{className:Pr.collpase,children:[Be("div",{children:["已收起",Q("span",{children:p-1}),"个节点"]}),Be("a",{className:Pr.btn,onClick:d,children:["展开节点",Q(F7,{})]})]})})]}),r.slice(g).map((m,C)=>Be("li",{className:rs(Pr.item,p===C+g?Pr.itemActive:p>C+g?Pr.itemDone:Pr.itemUnDo),children:[Q("div",{className:Pr.tail}),Q("div",{className:Pr.node}),Be("div",{className:Pr.content,children:[l?l(m,C,f?p:p-g):Be(en,{children:[Q("div",{className:Pr.title,children:m.PNName}),Be("div",{className:Pr.dateWrapper,children:[m.PlanFinishDate&&Be("span",{children:["预计完成时间: ",m.PlanFinishDate]}),m.UpdateTime&&Be("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",m.UpdateTime]})]}),m.Remark&&Q("div",{className:Pr.remark,children:m.Remark})]}),f&&p-1===C&&Be("a",{className:Pr.btn,onClick:()=>c(!1),children:["收起节点 ",Q(X7,{})]})]})]},typeof i=="string"?m[i]:i(m)))]})},eL=e=>{const{current:r,data:t,rowKey:i,renderContent:l,currentIndex:f,...c}=e;return(()=>{me.Modal.info({icon:null,title:"流程节点",width:700,content:Q(I6,{rowKey:i,renderContent:l,current:r,currentIndex:f,data:t}),closable:!0,footer:null,maskClosable:!0,...c})})(),null},H6={customPagination:"custom-pagination-module_customPagination_bb6f7",jumpBtns:"custom-pagination-module_jumpBtns_a6c0b"};function tL(e){const{totalText:r="共",unitText:t="条",jumpText:i="跳至",pageText:l="页",paginationProps:f}=e,[c,p]=W.useState(""),g=(f==null?void 0:f.pageSize)||10,d=b=>{p(b.target.value)},m=b=>{var x;p(""),!Number.isNaN(Number(b.target.value))&&((x=f==null?void 0:f.onChange)==null||x.call(f,Number(b.target.value),g))},C=b=>{var x;if(b.key==="Enter"){if(p(""),Number.isNaN(Number(c)))return;(x=f==null?void 0:f.onChange)==null||x.call(f,Number(c),g)}};return Be("div",{className:H6.customPagination,children:[Q(me.Pagination,{showTotal:b=>`${r} ${b} ${t}`,showSizeChanger:{options:[{label:`10 ${t}/${l}`,value:10},{label:`20 ${t}/${l}`,value:20},{label:`50 ${t}/${l}`,value:50},{label:`100 ${t}/${l}`,value:100}]},...f}),Be("div",{className:H6.jumpBtns,children:[i,Q(me.Input,{style:{width:"50px",margin:"0 8px"},value:c,onChange:d,onBlur:b=>m(b),onKeyDown:b=>C(b)}),l]})]})}var V6={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Pt,function(){var t=1e3,i=6e4,l=36e5,f="millisecond",c="second",p="minute",g="hour",d="day",m="week",C="month",b="quarter",x="year",_="date",k="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var K=["th","st","nd","rd"],ee=V%100;return"["+V+(K[(ee-20)%10]||K[ee]||K[0])+"]"}},D=function(V,K,ee){var J=String(V);return!J||J.length>=K?V:""+Array(K+1-J.length).join(ee)+V},R={s:D,z:function(V){var K=-V.utcOffset(),ee=Math.abs(K),J=Math.floor(ee/60),q=ee%60;return(K<=0?"+":"-")+D(J,2,"0")+":"+D(q,2,"0")},m:function V(K,ee){if(K.date()<ee.date())return-V(ee,K);var J=12*(ee.year()-K.year())+(ee.month()-K.month()),q=K.clone().add(J,C),te=ee-q<0,X=K.clone().add(J+(te?-1:1),C);return+(-(J+(ee-q)/(te?q-X:X-q))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:C,y:x,w:m,d,D:_,h:g,m:p,s:c,ms:f,Q:b}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},N="en",z={};z[N]=T;var M="$isDayjsObject",I=function(V){return V instanceof U||!(!V||!V[M])},Y=function V(K,ee,J){var q;if(!K)return N;if(typeof K=="string"){var te=K.toLowerCase();z[te]&&(q=te),ee&&(z[te]=ee,q=te);var X=K.split("-");if(!q&&X.length>1)return V(X[0])}else{var $=K.name;z[$]=K,q=$}return!J&&q&&(N=q),q||!J&&N},B=function(V,K){if(I(V))return V.clone();var ee=typeof K=="object"?K:{};return ee.date=V,ee.args=arguments,new U(ee)},P=R;P.l=Y,P.i=I,P.w=function(V,K){return B(V,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var U=function(){function V(ee){this.$L=Y(ee.locale,null,!0),this.parse(ee),this.$x=this.$x||ee.x||{},this[M]=!0}var K=V.prototype;return K.parse=function(ee){this.$d=function(J){var q=J.date,te=J.utc;if(q===null)return new Date(NaN);if(P.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var X=q.match(E);if(X){var $=X[2]-1||0,ne=(X[7]||"0").substring(0,3);return te?new Date(Date.UTC(X[1],$,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)):new Date(X[1],$,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ne)}}return new Date(q)}(ee),this.init()},K.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},K.$utils=function(){return P},K.isValid=function(){return this.$d.toString()!==k},K.isSame=function(ee,J){var q=B(ee);return this.startOf(J)<=q&&q<=this.endOf(J)},K.isAfter=function(ee,J){return B(ee)<this.startOf(J)},K.isBefore=function(ee,J){return this.endOf(J)<B(ee)},K.$g=function(ee,J,q){return P.u(ee)?this[J]:this.set(q,ee)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(ee,J){var q=this,te=!!P.u(J)||J,X=P.p(ee),$=function(ye,De){var Pe=P.w(q.$u?Date.UTC(q.$y,De,ye):new Date(q.$y,De,ye),q);return te?Pe:Pe.endOf(d)},ne=function(ye,De){return P.w(q.toDate()[ye].apply(q.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(De)),q)},oe=this.$W,ae=this.$M,se=this.$D,ve="set"+(this.$u?"UTC":"");switch(X){case x:return te?$(1,0):$(31,11);case C:return te?$(1,ae):$(0,ae+1);case m:var we=this.$locale().weekStart||0,ce=(oe<we?oe+7:oe)-we;return $(te?se-ce:se+(6-ce),ae);case d:case _:return ne(ve+"Hours",0);case g:return ne(ve+"Minutes",1);case p:return ne(ve+"Seconds",2);case c:return ne(ve+"Milliseconds",3);default:return this.clone()}},K.endOf=function(ee){return this.startOf(ee,!1)},K.$set=function(ee,J){var q,te=P.p(ee),X="set"+(this.$u?"UTC":""),$=(q={},q[d]=X+"Date",q[_]=X+"Date",q[C]=X+"Month",q[x]=X+"FullYear",q[g]=X+"Hours",q[p]=X+"Minutes",q[c]=X+"Seconds",q[f]=X+"Milliseconds",q)[te],ne=te===d?this.$D+(J-this.$W):J;if(te===C||te===x){var oe=this.clone().set(_,1);oe.$d[$](ne),oe.init(),this.$d=oe.set(_,Math.min(this.$D,oe.daysInMonth())).$d}else $&&this.$d[$](ne);return this.init(),this},K.set=function(ee,J){return this.clone().$set(ee,J)},K.get=function(ee){return this[P.p(ee)]()},K.add=function(ee,J){var q,te=this;ee=Number(ee);var X=P.p(J),$=function(ae){var se=B(te);return P.w(se.date(se.date()+Math.round(ae*ee)),te)};if(X===C)return this.set(C,this.$M+ee);if(X===x)return this.set(x,this.$y+ee);if(X===d)return $(1);if(X===m)return $(7);var ne=(q={},q[p]=i,q[g]=l,q[c]=t,q)[X]||1,oe=this.$d.getTime()+ee*ne;return P.w(oe,this)},K.subtract=function(ee,J){return this.add(-1*ee,J)},K.format=function(ee){var J=this,q=this.$locale();if(!this.isValid())return q.invalidDate||k;var te=ee||"YYYY-MM-DDTHH:mm:ssZ",X=P.z(this),$=this.$H,ne=this.$m,oe=this.$M,ae=q.weekdays,se=q.months,ve=q.meridiem,we=function(De,Pe,ke,ze){return De&&(De[Pe]||De(J,te))||ke[Pe].slice(0,ze)},ce=function(De){return P.s($%12||12,De,"0")},ye=ve||function(De,Pe,ke){var ze=De<12?"AM":"PM";return ke?ze.toLowerCase():ze};return te.replace(A,function(De,Pe){return Pe||function(ke){switch(ke){case"YY":return String(J.$y).slice(-2);case"YYYY":return P.s(J.$y,4,"0");case"M":return oe+1;case"MM":return P.s(oe+1,2,"0");case"MMM":return we(q.monthsShort,oe,se,3);case"MMMM":return we(se,oe);case"D":return J.$D;case"DD":return P.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return we(q.weekdaysMin,J.$W,ae,2);case"ddd":return we(q.weekdaysShort,J.$W,ae,3);case"dddd":return ae[J.$W];case"H":return String($);case"HH":return P.s($,2,"0");case"h":return ce(1);case"hh":return ce(2);case"a":return ye($,ne,!0);case"A":return ye($,ne,!1);case"m":return String(ne);case"mm":return P.s(ne,2,"0");case"s":return String(J.$s);case"ss":return P.s(J.$s,2,"0");case"SSS":return P.s(J.$ms,3,"0");case"Z":return X}return null}(De)||X.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(ee,J,q){var te,X=this,$=P.p(J),ne=B(ee),oe=(ne.utcOffset()-this.utcOffset())*i,ae=this-ne,se=function(){return P.m(X,ne)};switch($){case x:te=se()/12;break;case C:te=se();break;case b:te=se()/3;break;case m:te=(ae-oe)/6048e5;break;case d:te=(ae-oe)/864e5;break;case g:te=ae/l;break;case p:te=ae/i;break;case c:te=ae/t;break;default:te=ae}return q?te:P.a(te)},K.daysInMonth=function(){return this.endOf(C).$D},K.$locale=function(){return z[this.$L]},K.locale=function(ee,J){if(!ee)return this.$L;var q=this.clone(),te=Y(ee,J,!0);return te&&(q.$L=te),q},K.clone=function(){return P.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},V}(),H=U.prototype;return B.prototype=H,[["$ms",f],["$s",c],["$m",p],["$H",g],["$W",d],["$M",C],["$y",x],["$D",_]].forEach(function(V){H[V[1]]=function(K){return this.$g(K,V[0],V[1])}}),B.extend=function(V,K){return V.$i||(V(K,U,B),V.$i=!0),B},B.locale=Y,B.isDayjs=I,B.unix=function(V){return B(1e3*V)},B.en=z[N],B.Ls=z,B.p={},B})})(V6);const hn=V6.exports,Wh=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Dc=e=>{var i,l,f,c;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default);if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t==null?void 0:t.split("~"),t=t.map(p=>p)}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(p=>hn())}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const p=(c=e.json)==null?void 0:c["cascader-delimiter"];p&&(t=t.split(p).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return e.attrtype===1&&(t=nL(e.children||[])),t||null},$6=e=>e&&e<hn().startOf("day"),Y6=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},nL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)},Qh=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c})=>{var m;let p=[];const g=async C=>{var x;let b=[];if(c.classify)try{const _=await r(C,{asctypeid:c.classify});(x=_==null?void 0:_.data)!=null&&x.list&&Array.isArray(_.data.list)&&(b=_.data.list.map(k=>({label:`${k.dicid||""}-${k.info||""}`,value:`${k.dicid||""}-${k.info||""}`})))}catch{me.message.error("加载选项失败")}return b},d=async()=>{var C,b;try{const x=((C=c==null?void 0:c["key-field"])==null?void 0:C.list)||[],_=((b=c==null?void 0:c["key-field"])==null?void 0:b.delimiter)||"",k=c==null?void 0:c["field-names"];if(!x.length){me.message.error("请配置key-field");return}const E=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(E!=null&&E.data){const A=E==null?void 0:E.data,T=(A==null?void 0:A.list)||[];let D=[];Array.isArray(A)&&(D=A),Array.isArray(T)&&(D=T),k?p=D:p=D.map(R=>({label:Y6(R,_,x),value:Y6(R,_,x)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(p=((m=c.data)==null?void 0:m.map(C=>({label:C,value:C})))||[],c.options&&Array.isArray(c.options)&&(p=c.options)):c.inputType==="dictionary"?p=await g(t):c.inputType==="system-dictionary"&&(p=await g(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await d(),p};function uu(e){try{return JSON.parse(e)}catch{return{}}}function Zh(e){if(!q6(e))return e;const r=atob(e),t=new Uint8Array(r.length);for(let i=0;i<r.length;i++)t[i]=r.charCodeAt(i);return new TextDecoder().decode(t)}function q6(e){return e?e.length%4!==0?!1:/^[A-Za-z0-9+/]+(?:=?=?)$/.test(e):!0}const rL=(e,r)=>{var b;let t=il.cloneDeep(e);const{attr_list:i=[]}=t,{isMobile:l=!1,guid:f,isListToObj:c=!1,isAutoFill:p=!0,onlyNumber:g=""}=e;let d=[];p&&((b=t==null?void 0:t.attr_list)==null||b.forEach(x=>{var _,k,E,A,T,D;(_=x==null?void 0:x.json)!=null&&_["auto-generate"]&&((k=x==null?void 0:x.json)!=null&&k["auto-generate-type"])&&(((E=x==null?void 0:x.json)==null?void 0:E["auto-generate-type"])==="currenttime"&&(x.attrvalue=hn().format("YYYY-MM-DD HH:mm:ss")),((A=x==null?void 0:x.json)==null?void 0:A["auto-generate-type"])==="guid"&&(x.attrvalue=g||f||"")),(T=x==null?void 0:x.json)!=null&&T.default&&(x.attrvalue=(D=x==null?void 0:x.json)==null?void 0:D.default)}));const m=(x,_)=>{try{const k=new Map(x.map((E,A)=>[E.attrid,A]));for(const[E,A]of Object.entries(_)){const T=k.get(E);if(T===void 0)continue;let D=x[T];if(!A&&A!==0){D.attrvalue="";continue}D=C(D,A,l)}x.forEach(E=>{E.children&&Array.isArray(E.children)&&E.children.length>0&&!Array.isArray(E.children[0])&&_[E.attrid]&&m(E.children,_[E.attrid]),E.children&&Array.isArray(E.children)&&E.children.length>0&&Array.isArray(E.children[0])&&E.children.forEach((A,T)=>{var D,R;A&&Array.isArray(A)&&((D=_==null?void 0:_[E.attrid])!=null&&D[T])&&m(A,(R=_==null?void 0:_[E.attrid])==null?void 0:R[T])})})}catch{}},C=(x,_,k)=>{var T,D,R,N;const E=(T=x.json)==null?void 0:T.input,A=(D=x.json)==null?void 0:D.format;switch(E){case"image":case"file":case"video":case"audio":const z=typeof _=="string"?JSON.parse(_):_;if(!Array.isArray(z)){x.attrvalue=JSON.stringify([]);return}const M=z.filter(B=>B.FileId),I=z.filter(B=>{var P;return B.status==="done"&&((P=B.response)==null?void 0:P.data)}).map(B=>B.response.data),Y=[...M,...I];d=[...d,...I],x.attrvalue=JSON.stringify(Y);break;case"cascader":if(Array.isArray(_)&&_.length>0){const B=((R=x.json)==null?void 0:R["cascader-delimiter"])||"/";x.attrvalue=_.join(B)}else x.attrvalue="";break;case"range-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>hn(B).format(A||"YYYY-MM-DD")).join("~"):x.attrvalue="":Array.isArray(_)&&_.length>0?x.attrvalue=_.join("~"):x.attrvalue="";break;case"multiple-date-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>hn(B).format(A||"YYYY-MM-DD")).join(","):x.attrvalue=_:Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"checkbox":case"mult-select":Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"date-picker":_?x.attrvalue=hn(_).format(A||"YYYY-MM-DD"):x.attrvalue="";break;case"time-picker":_?x.attrvalue=hn(_).format(A||"YYYY-MM-DD HH:mm:ss"):x.attrvalue="";break;default:(N=x==null?void 0:x.json)!=null&&N["properties-multiple"]||(x.attrvalue=_);break}return x};return t.attr_list&&Array.isArray(t.attr_list)&&m(i,r),{updatedData:c?Q6(t.attr_list||[]):t,uploadedFiles:d}},H2=(e,r)=>e.map(t=>{var f,c,p;const i=G6(t,r),{children:l}=i;if(l&&!Array.isArray(l==null?void 0:l[0])&&(l!=null&&l.length)&&(i.children=[H2(l)]),i!=null&&i.children&&Array.isArray((f=i==null?void 0:i.children)==null?void 0:f[0])&&((c=i==null?void 0:i.children)!=null&&c.length)){const g=(p=i==null?void 0:i.children)==null?void 0:p.map(d=>d==null?void 0:d.map(m=>G6(m,r)));i.children=g}return i}),G6=(e,r)=>{var t,i;if(!e.json&&e.info)try{const l=e.info_base64===1?Zh(e.info):e.info,f=uu(l),c=il.cloneDeep(r)||{},{langConfig:p=[],attrLangConfig:g=[]}=c||{};return c==null||delete c.langConfig,p!=null&&p.length&&((t=f==null?void 0:f.data)!=null&&t.length)&&(f==null?void 0:f.inputType)==="local"&&(f.options=(i=f.data)==null?void 0:i.map(d=>({label:Ji(p,d),value:d})),f==null||delete f.data),p!=null&&p.length&&(f!=null&&f["combination-name"])&&(f["combination-name"]=Ji(g,f["combination-name"])||Ji(p,f["combination-name"])),p!=null&&p.length&&(f!=null&&f["default-prompt"])&&(f["default-prompt"]=Ji(g,f["default-prompt"])),p!=null&&p.length&&(f!=null&&f.instruction)&&(f.instruction=Ji(g,f.instruction)),p!=null&&p.length&&(f!=null&&f["regexp-message"])&&(f["regexp-message"]=Ji(g,f["regexp-message"])),{...e,json:f,...c,info:JSON.stringify(f)}}catch{return{...e,json:{},...r}}return{...e,...r}},K6=(e,r)=>H2(e,r),W6=(e,r)=>{const t=H2(e,r),i=t.filter(c=>{var p;return(p=c.json)==null?void 0:p.combination}).reduce((c,p)=>{const g=p.json["combination-id"];return g&&(c[g]||(c[g]=[]),c[g].push(p)),c},{}),l=new Set;Object.values(i).forEach(c=>{(c==null?void 0:c.length)!==0&&c.slice(1).forEach(p=>l.add(p.attrid))});const f=c=>c.filter(p=>!l.has(p.attrid)).map(p=>{var m;const g=(m=p.json)==null?void 0:m["combination-id"];if(g&&i[g]){const C={...p,json:{...p.json,combinations:i[g]}},{children:b}=C;return b&&Array.isArray(b==null?void 0:b[0])&&(b!=null&&b.length)&&(C.children=b==null?void 0:b.map(x=>f(x))),C}const{children:d}=p;return d&&Array.isArray(d==null?void 0:d[0])&&(d!=null&&d.length)&&(p.children=d==null?void 0:d.map(C=>f(C))),p});return f(t)},aL=async({number:e,key:r,sourceNumber:t,guidInterfaceName:i,SelPCParamInterfaceName:l,servicerAttrListInterfaceName:f,accepterAttrListInterfaceName:c,defaultAttrListInterfaceName:p,commonRequest:g,guidParams:d,pcParam:m,attrReqKey:C="asid",attrListExtraParams:b={}})=>new Promise(async(x,_)=>{var N,z,M,I;let k="",E=[],A={},T={};const D=await g(i||"FWDXGLCreateGUID",d||{"source-number":t});(D==null?void 0:D.ReturnValue)===1&&((N=D==null?void 0:D.data)!=null&&N.GUID)?k=D.data.GUID:_("获取GUID失败");const R=await g(l||"FWDXGLSelPCParam",m||{"source-number":t});if((R==null?void 0:R.ReturnValue)===1){const Y=(z=R.data[e])==null?void 0:z[r],B=(M=R.data[e])==null?void 0:M["properties-type"],P={server:f||"",accepter:c||""};T=R.data;const U=await g(P[B]||p,{[C]:Y,"source-number":t,...b});if((U==null?void 0:U.ReturnValue)===1&&U.data){const H=((I=U.data)==null?void 0:I.attr_list)||[];E=W6(H),A={...U.data,attr_list:E},x({baseData:A,newGUID:k,attrListConfigs:E,selPCParam:T})}else _("请配置属性集")}else _("获取配置失败")}),iL=async(e,r,t)=>await t(e,r);function oL(e){return e.replace(/-([a-z])/g,function(r,t){return t.toUpperCase()})}const Q6=e=>{var l;function r(f){const c={};return f.forEach(p=>{var d,m,C,b,x,_,k;const g=`${p.attrid}_${p.attrtype}`;if(p.attrtype===1&&p.children.length>0&&!Array.isArray(p.children))c[g]={asid:((m=(d=p.children)==null?void 0:d[0])==null?void 0:m.asid)||"",data_list:[r(p.children)]};else if(p.attrtype===1&&p.children.length>0&&Array.isArray(p.children)){let{children:E=[],attrvalue:A}=p||{};A&&(A!=null&&A.length)&&Array.isArray(A)?E=A.map(T=>{var N,z,M,I;const D=(N=Object.values(T))==null?void 0:N.findIndex(Y=>Array.isArray(Y)),R=((z=Object.keys(T))==null?void 0:z[D])||"";if(R){const Y=((M=E==null?void 0:E[0])==null?void 0:M.find(P=>P.attrid===R))||{},{input:B}=(Y==null?void 0:Y.json)||{};if(["file","image","video","audio"].includes(B)){const P=((I=Object.values(T))==null?void 0:I[D])||[],U=P.filter(K=>K.FileId),H=P.filter(K=>{var ee;return K.status==="done"&&((ee=K.response)==null?void 0:ee.data)}).map(K=>K.response.data),V=[...U,...H];T[R]=V}}return J6((E==null?void 0:E[0])||[],T)}):(p.childAsid=((b=(C=E==null?void 0:E[0])==null?void 0:C[0])==null?void 0:b.asid)||"",E=[[]]),E!=null&&E.length&&Array.isArray(E==null?void 0:E[0])&&(c[g]={asid:((_=(x=E==null?void 0:E[0])==null?void 0:x[0])==null?void 0:_.asid)||p.childAsid||"",data_list:(E==null?void 0:E.length)&&((k=E==null?void 0:E[0])==null?void 0:k.length)&&E.map(T=>r(T))||[]})}else c[g]=p.attrvalue}),c}const t=((l=e[0])==null?void 0:l.asid)||"",i=[r(e)];return{data:{asid:t,data_list:i}}},Z6=async({attrList:e,params:r,extra:t={},commonRequest:i})=>{var p;const l=await i("YLFWLRDataDetails",r),f=((p=l==null?void 0:l.data)==null?void 0:p.list)||[];return f.length?await Promise.all(f.map(async g=>await Promise.all((e==null?void 0:e.map(async m=>{const C={...m,...t};if(C.attrvalue=(g==null?void 0:g[m.attrid])||"",m.attrtype===1&&Array.isArray(m.children)&&m.children.length>0){const b=(g==null?void 0:g[m.attrid])||{};C.children=await Z6({attrList:m.children,params:b,extra:t,commonRequest:i})}return C}))||[])))||[]:e.map(g=>({...g,...t,attrvalue:"",children:[]}))},kc=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},Ji=(e,r)=>{const t=e.find(i=>(i==null?void 0:i.dataid)===r);return(t==null?void 0:t.content)??r},X6=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c,langConfig:p=[]})=>{var C;let g=[];const d=async b=>{var _;let x=[];if(c.classify)try{const k=await r(b,{asctypeid:c.classify});(_=k==null?void 0:k.data)!=null&&_.list&&Array.isArray(k.data.list)&&(x=k.data.list.map(E=>({label:`${E.dicid||""}-${E.info||""}`,value:`${E.dicid||""}-${E.info||""}`})))}catch{me.message.error("加载选项失败")}return x},m=async()=>{var b,x;try{const _=((b=c==null?void 0:c["key-field"])==null?void 0:b.list)||[],k=((x=c==null?void 0:c["key-field"])==null?void 0:x.delimiter)||"",E=c==null?void 0:c["field-names"];if(!_.length){me.message.error("请配置key-field");return}const A=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(A!=null&&A.data){const T=A==null?void 0:A.data,D=(T==null?void 0:T.list)||[];let R=[];Array.isArray(T)&&(R=T),Array.isArray(D)&&(R=D),E?g=R:g=R.map(N=>({label:kc(N,k,_),value:kc(N,k,_)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(g=((C=c.data)==null?void 0:C.map(b=>({label:Ji(p,b),value:b})))||[],c.options&&Array.isArray(c.options)&&(g=c.options)):c.inputType==="dictionary"?g=await d(t):c.inputType==="system-dictionary"&&(g=await d(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await m(),g},J6=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),lL=Object.freeze(Object.defineProperty({__proto__:null,getJson:uu,base64ToString:Zh,isBase64:q6,handleSubmitForm:rL,handleBaseAttrList:K6,handleAttrList:W6,handleFormConfig:aL,handleOperationFile:iL,handleKebabToCamel:oL,handleAttrListToObj:Q6,handleAttrListToObjDetail:Z6,handleUrlOptions:kc,getTitle:Ji,handleSelectOptions:X6,handleObjDetailToSignleAttrList:J6},Symbol.toStringTag,{value:"Module"})),eD=async(e,r,t)=>{var i;try{const l=await r(t||"SERATTALLList",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.attr_list)||[]:[]}catch{}},sL=async(e,r,t)=>{var i;try{const l=await r(t||"YLFWLRDataDetails",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.list)||[]:[]}catch{}},uL=async(e,r,t)=>{var l;const i={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"};try{const f=await r(t||i,e);return(f==null?void 0:f.ReturnValue)===1?((l=f==null?void 0:f.data)==null?void 0:l.list)||[]:[]}catch{}},cL=async({params:e,commonRequestWidthParams:r,requestParams:t})=>{const i={PageName:"PCInstanceData",Controlname:"DataProcess"};try{return await r(t||i||{},e)}catch{}},fL=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),tD=(e,r,t)=>({style:{backgroundColor:r!==void 0&&r%2===1?(t==null?void 0:t[0])||"var(--bg-color-2)":(t==null?void 0:t[1])||"var(--bg-color-3)"}}),dL=Object.freeze(Object.defineProperty({__proto__:null,handleGetAttrList:eD,handleGetAttrDetail:sL,handleGetList:uL,handleCallSupportCode:cL,handleObjDetailToSignleAttrList:fL,handleSetTableRowColor:tD,handleFormatMobileDate:(e,r="YYYY-MM-DD")=>(Object.entries(il.cloneDeep(e)).forEach(([t,i])=>{Array.isArray(i)&&i.length>0&&i[0]instanceof Date&&(e[t]=i.map(l=>hn(l).format(r))),i instanceof Date&&(e[t]=hn(i).format(r))}),e)},Symbol.toStringTag,{value:"Module"})),hL=(e,r)=>{const t=new URL(e),i=new URL(r);return t.protocol===i.protocol&&t.host===i.host&&t.port===i.port},pL=e=>{const r=String(e).split("/");return r[r.length-1]},vL=e=>{var t;return(t=e.headers.get("content-disposition"))==null?void 0:t.split(";")[1].split("=")[1]},nD=(e,r)=>{const t=r||pL(e);if(hL(e,window.location.href)){V2(e,t);return}let i=r;fetch(e,{method:"get"}).then(l=>(i||(i=vL(l)),l.blob())).then(l=>{rD(l,i||t)}).catch(()=>{V2(e,"")})},mL=e=>{for(var r=e.split(","),t=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]),l=i.length,f=new Uint8Array(l);l--;)f[l]=i.charCodeAt(l);return new Blob([f],{type:t})},rD=(e,r)=>{let t="";e instanceof Blob?t=window.URL.createObjectURL(e):t=window.URL.createObjectURL(mL(e));const i=window.navigator;if(i.msSaveOrOpenBlob){i.msSaveOrOpenBlob(e,r);return}V2(t,r),window.URL.revokeObjectURL(t)},V2=(e,r)=>{let t=document.createElement("a");t.style.display="none",t.href=e,t.target="_blank",t.download=r,document.body.appendChild(t),t.click(),document.body.removeChild(t)},gL=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:nD,downloadBlob:rD},Symbol.toStringTag,{value:"Module"}));function $2(){const{message:e,modal:r}=me.App.useApp(),t={},i=async({selListData:C,handleSearch:b,handleReset:x,detail:_,styles:k,attributeSetId:E,commonRequest:A,commonRequestWidthParams:T,getTitle:D,searchText:R="搜索",resetText:N="重置",langConfig:z=[]})=>{var M;try{C!=null&&C.length&&_&&C.forEach(V=>{var ee;const K=((ee=V["default-render-data"])==null?void 0:ee.key)||"";K&&(V.attrvalue=(_==null?void 0:_[K])||"")});const I=C.filter(V=>{var K;return((K=V.renderdata)==null?void 0:K.input)!=="tab"&&!(V!=null&&V["default-render-data"])}),Y=I.filter(V=>{var K;return["select","checkbox","radio","mult-select","cascader"].includes((K=V.renderdata)==null?void 0:K.input)});let B=[];if(Y!=null&&Y.length)if((M=t[E])!=null&&M.length)B=t[E];else{const V=await eD({asid:E},A);B=K6(V)||[],t[E]=B||[]}const P=await Promise.all(I.map(async V=>{var ne;const K=V.renderdata||{},{input:ee,width:J}=K||{},q=(K==null?void 0:K["label-col"])||6,te=()=>{const oe=K["default-prompt"];if(D){if(typeof oe=="string"){const ae=D(E||"",oe),se=m(ae);return ee==="range-picker"&&oe&&se?JSON.parse(ae):ae}}else return oe||""};let X="input";switch(ee){case"range-picker":X="rangePicker";break;case"number":X="inputNumber";break;case"select":case"checkbox":case"radio":case"textarea":X=ee;break;case"mult-select":X="select";break;case"time-picker":X="timePicker";break;case"date-picker":X="datePicker";break;case"cascader":X="cascader";break;default:X="input";break}const $={dataIndex:V.attrid,title:V.attrname||"",valueType:X,valueProps:{placeholder:te()},colProps:{},formItemProps:{style:{marginBottom:10,width:typeof J=="string"?`${J}px`:J||240},labelCol:{span:q}}};if(["select","checkbox","radio","mult-select","cascader"].includes(ee)){const oe=V.attrid||"",ae=B.find(we=>we.attrid===oe);let se=(ae==null?void 0:ae.json)||{};!(se!=null&&se.inputType)&&(K!=null&&K["input-type"])&&(se={...se,inputType:K==null?void 0:K["input-type"],"action-url":K==null?void 0:K["action-url"],"field-names":K==null?void 0:K["field-names"],"key-field":{...K==null?void 0:K["key-field"]}});let ve=await X6({item:se||{},commonRequest:A,commonRequestWidthParams:T,langConfig:z||[]});if(!(ve!=null&&ve.length)){const{data:we=[]}=K||{};we!=null&&we.length&&(ve=we==null?void 0:we.map(ce=>({label:ce||"",value:ce||""}))),(ne=K==null?void 0:K.options)!=null&&ne.length&&(ve=(K==null?void 0:K.options)||[])}if(ee==="cascader"){const we=d(ve,K==null?void 0:K["field-names"]);$.valueProps.options=we||[]}else $.valueProps.options=ve||[]}return $}));let U={color:"#ffffff",borderRadius:4,fontSize:14,height:32},H={color:"#333333",borderRadius:4,fontSize:14,height:32,borderColor:"#D9D9D9"};return C!=null&&C.length&&P.push({dataIndex:"btns",valueType:"btns",valueProps:[{btnType:"submit",title:R,type:"primary",shape:"default",style:{...U,...k==null?void 0:k.searchStyle},onClick:V=>b(V,C)},{btnType:"reset",title:N,style:{...H,...k==null?void 0:k.resetStyle},onClick:()=>x(C)}],colProps:{flex:"none"},formItemProps:{style:{marginBottom:10,minWidth:127}}}),{formItems:P,selList:C,attrList:B}}catch{return{formItems:[],selList:[],attrList:[]}}},l=({universalHeader:C,extraBtn:b,operationColumnConfig:x,attributeSetId:_,getTitle:k,downloadText:E="下载",isDefaultWidth:A=!0,otherLangPageId:T,objDefaultLangPageId:D="5000000"})=>{if(!(C!=null&&C.length))return e.error("请配置 universalHeader表头数据");const R=f(C),N=R==null?void 0:R.map(z=>{const M={title:_?(k==null?void 0:k(_,z==null?void 0:z["header-attribute-id"]))||"":(z==null?void 0:z["header-name"])||"",dataIndex:(z==null?void 0:z["header-attribute-id"])||"",width:A?(z==null?void 0:z["header-width"])||180:void 0,render:(B,P)=>{var U,H;if(B&&B&&typeof B=="string"&&(B!=null&&B.includes("FileName"))&&(B!=null&&B.includes("FilePath"))){try{const V=JSON.parse(B);return V!=null&&V.length?Q(me.Flex,{vertical:!0,children:V==null?void 0:V.map(K=>{const{FileName:ee,FilePath:J}=K||{};return Be(me.Space,{children:[Q("span",{children:ee}),Q(me.Button,{type:"link",size:"small",onClick:()=>nD(J),children:E})]})})}):"-"}catch{}return Q(me.Space,{})}if(z!=null&&z["show-lang-data-id"]&&T){if(B&&B&&typeof B=="object"&&((U=Object.keys(B))!=null&&U.includes("delimiter"))){const{list:V,delimiter:K=","}=B||{},ee=V==null?void 0:V.map(J=>{const q=(J==null?void 0:J.split("|"))||[],te=(q==null?void 0:q.length)>1?q[0]:D,X=(q==null?void 0:q.length)>1?q[1]:q[0];return k==null?void 0:k(te,X)});return Q("span",{dangerouslySetInnerHTML:{__html:((H=ee==null?void 0:ee.join(K))==null?void 0:H.replace(/br/g,"<br>"))||"-"}})}return Q(me.Tooltip,{title:B,children:Q("span",{style:{cursor:"pointer"},children:k==null?void 0:k(T,B??"-")})})}return B??"-"}},I=z==null?void 0:z["header-mul-attribute-id"],Y=z==null?void 0:z["show-btn"];return I&&I.list&&Array.isArray(I.list)?M.render=(B,P)=>{const{list:U,delimiter:H=","}=I,V=U.map(ee=>ee?P[ee]??"":"").filter(ee=>ee!==""),K=(V==null?void 0:V.join(H))??"-";return Y&&b?Be(en,{children:[K??"-",b==null?void 0:b(P,K,z)]}):K||"-"}:Y&&b&&(M.render=(B,P)=>{const U=P[M.dataIndex]||"";return Be(en,{children:[U||"-",b(P,U,z)]})}),M});return x&&(N!=null&&N.length)&&N.push(x),N},f=C=>C.slice().sort((b,x)=>{const _=typeof b["header-number"]=="number"?b["header-number"]:1/0,k=typeof x["header-number"]=="number"?x["header-number"]:1/0;return _-k}),c=async({commonRequest:C,refresh:b,interfaceType:x="YLFWLRInstanceDelete",record:_,configData:k,title:E,okText:A,cancelText:T,getTitle:D,pageID:R,deleteItem:N,okType:z="primary",cancelType:M="default"})=>{var I,Y;try{let B=(k==null?void 0:k["must-attrid"])||[];const P=(N==null?void 0:N["source-number"])||(N==null?void 0:N.sourceNumber)||"";if(!(B!=null&&B.length)&&P){const V=await C("YLKHDSelPCParam",{"source-number":Number(P)});V&&V.ReturnValue===1&&V.data&&(B=((Y=(I=V.data)==null?void 0:I[P])==null?void 0:Y["must-attrid"])||[])}if(!(B!=null&&B.length)){e.error("请先配置must-attrid");return}const U={};for(const[V,K]of Object.entries(_))B.includes(V)&&(U[V]=K);const H={instanceid:_==null?void 0:_.instanceid,asid:_==null?void 0:_.asid,...U};r.confirm({title:E||(N==null?void 0:N.title)||"",icon:null,okButtonProps:{type:z},cancelButtonProps:{type:M},okText:A||"",cancelText:T||"",onOk:()=>new Promise(async(V,K)=>{const ee=await C(x,H),J=D&&D(R||"",ee==null?void 0:ee["msg-code"])||(ee==null?void 0:ee.msg);(ee==null?void 0:ee.ReturnValue)===1?(e.success(J),b(),V(ee)):(e.error(J||"删除失败"),K(ee))})})}catch{}},p=({values:C,currentSelList:b,currentActive:x,onSearch:_,tabItems:k})=>{const A={"sel-list":b.map(T=>{var M,I;const{input:D,inputType:R}=(T==null?void 0:T.renderdata)||{};if(D==="tab"&&(R!=null&&R.startsWith("local-"))&&(k!=null&&k.length)&&(x||x===0)){const Y=b.find(V=>D==="tab"&&(R==null?void 0:R.startsWith("local-"))),B=k[x],P=((M=Y==null?void 0:Y.renderdata["key-field"])==null?void 0:M.list)||[],U=((I=Y==null?void 0:Y.renderdata["key-field"])==null?void 0:I.delimiter)||"-",H=P==null?void 0:P.map(V=>B[V]||"").join(U);return{...T,attrvalue:H}}const N=C[T.attrid];let z;return N!=null&&(D==="cascader"&&Array.isArray(N)?z=N.join("|"):Array.isArray(N)&&["range-picker"].includes(D)?z=N.map(Y=>{var B;return((B=Y==null?void 0:Y.format)==null?void 0:B.call(Y,"YYYY-MM-DD"))||Y}).join("~"):Array.isArray(N)?z=N:z=String(N)),{...T,attrvalue:z}}),...C};_(A)},g=({currentSelList:C,tabItems:b,currentActive:x,onSearch:_,setSelList:k})=>{const E=C.map(A=>{var T,D,R,N,z;if(((T=A.renderdata)==null?void 0:T.input)==="tab"&&(b!=null&&b.length)&&(x||x===0)){if((R=(D=A.renderdata)==null?void 0:D.inputType)!=null&&R.startsWith("local-")){const M=C.find(U=>{var H,V,K;return((H=U.renderdata)==null?void 0:H.input)==="tab"&&((K=(V=U.renderdata)==null?void 0:V.inputType)==null?void 0:K.startsWith("local-"))}),I=b[x],Y=((N=M==null?void 0:M.renderdata["key-field"])==null?void 0:N.list)||[],B=((z=M==null?void 0:M.renderdata["key-field"])==null?void 0:z.delimiter)||"-",P=Y==null?void 0:Y.map(U=>(I==null?void 0:I[U])||"").join(B);return{...A,attrvalue:P}}return A}return{...A,attrvalue:""}});k(E),_({"sel-list":E})},d=(C,b)=>{const{label:x,value:_,children:k}=b,E=A=>A.map(T=>{const D={label:T[x],value:T[_],children:[]};return Array.isArray(T[k])&&T[k].length>0&&(D.children=E(T[k])),D});return E(C)},m=C=>{if(typeof C!="string")return!1;try{const b=JSON.parse(C);return Array.isArray(b)}catch{return!1}};return{handleUniversalHeaderToColumns:l,handleSelListToFormItems:i,handleUniversalDelete:c,handleUniversalSearch:p,handleUniversalReset:g,isArrayString:m}}function yL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:p,form:g,langId:d,getTitle:m}=e,C=me.Form.useWatch(p,g),{message:b}=me.App.useApp(),x=r.input,[_,k]=W.useState(e.value),[E,A]=W.useState(!1),[T,D]=W.useState([]),[R,N]=W.useState([]),[z,M]=W.useState(!1),[I,Y]=W.useState({PageNum:1,PageSize:6}),[B,P]=W.useState([]),[U,H]=W.useState(0),[V,K]=W.useState(ne()),{handleUniversalHeaderToColumns:ee}=$2();W.useEffect(()=>{E&&q()},[E,I]);const J=(ae,se)=>{D(ae),N(se)},q=async()=>{var ae,se,ve,we,ce;if(r.inputType==="url"&&(r!=null&&r["action-url"])){M(!0);try{const ye=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...I,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ye==null?void 0:ye.ReturnValue)===0){b.error(ye.msg),M(!1);return}const De=ye==null?void 0:ye.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map((ze,Ne)=>{const dt=(I.PageNum-1)*I.PageSize+Ne;return{...ze,_rowKey:dt}}),ke=(Pe==null?void 0:Pe.filter(ze=>T.includes(ze._rowKey)))||[];N(ke),P([...Pe||[]]),H((De==null?void 0:De.number)||0),M(!1)}catch{M(!1)}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ye={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...I};try{const Pe=await l(ye,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const ze=(ve=((se=Pe==null?void 0:Pe.data)==null?void 0:se.list)||[])==null?void 0:ve.map((Ne,dt)=>{const Xe=(I.PageNum-1)*I.PageSize+dt;return{...Ne,_rowKey:Xe}});H(((we=Pe==null?void 0:Pe.data)==null?void 0:we.number)||0),P([...ze])}const ke=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ke==null?void 0:ke.ReturnValue)===1){const ze=(ce=ke==null?void 0:ke.data)==null?void 0:ce[r==null?void 0:r["instance-source-number"]],Ne=(ze==null?void 0:ze["universal-header"])||[],dt=(ze==null?void 0:ze["attribute-set-id"])||"",Xe=ee({universalHeader:Ne,attributeSetId:dt,getTitle:m,otherLangPageId:"5000000"})||[];K([...Xe])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error")},te=()=>{var ae;if(!t){if(_){const se=r==null?void 0:r["key-field"],ve=se==null?void 0:se[p],{delimiter:we="-",list:ce=[]}=ve||{};if(!se){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ye=(ae=_==null?void 0:_.split(we))==null?void 0:ae[0],De=B==null?void 0:B.findIndex(ze=>Object.values(ze).includes(ye));D([De]);break;case"modal-mult-select":const Pe=_==null?void 0:_.split(","),ke=Pe==null?void 0:Pe.map(ze=>{var dt;const Ne=(dt=ze.split(we))==null?void 0:dt[0];return B==null?void 0:B.findIndex(Xe=>Ne.includes((Xe==null?void 0:Xe.typeid)||(Xe==null?void 0:Xe.instanceid)))});D(ke);break}}A(!0)}},X=async()=>{try{const ae=await xL(R,r,d);k((ae==null?void 0:ae[p])||""),e.onSure(ae),A(!1)}catch(ae){b.error(ae.msg||"参数错误")}},$=()=>{Y({...I,PageNum:1}),A(!1)};function ne(){const ae=r["modal-field-list"];if(!ae)return[];let se=[];for(let ve in ae){let we=ae[ve];const ce={dataIndex:ve,title:we};se=[...se,ce]}return se}const oe=ae=>{Y({...I,PageNum:ae})};return Be(en,{children:[Q(me.Select,{placeholder:Wh({json:r},d),onClick:te,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:E,onOk:X,onCancel:$,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:J},pagination:{total:U,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:E,onOk:X,onCancel:$,width:r["modal-width"]??600,okButtonProps:{disabled:T.length===0},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:J},pagination:{total:U,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})]})}function xL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}let c={};e.forEach(p=>{for(let[g,d]of Object.entries(f)){const m=(d==null?void 0:d.list)??[],C=(d==null?void 0:d.delimiter)??"-",b=m.map(x=>p==null?void 0:p[x]);c[g]=b.join(C)}}),i(c)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}var aD={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Pt,function(){var t="day";return function(i,l,f){var c=function(d){return d.add(4-d.isoWeekday(),t)},p=l.prototype;p.isoWeekYear=function(){return c(this).year()},p.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),t);var m,C,b,x,_=c(this),k=(m=this.isoWeekYear(),C=this.$u,b=(C?f.utc:f)().year(m).startOf("year"),x=4-b.isoWeekday(),b.isoWeekday()>4&&(x+=7),b.add(x,t));return _.diff(k,"week")+1},p.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var g=p.startOf;p.startOf=function(d,m){var C=this.$utils(),b=!!C.u(m)||m;return C.p(d)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):g.bind(this)(d,m)}}})})(aD);const iD=aD.exports;function bL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:p}=me.App.useApp(),g=r.input,[d,m]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=K();W.useEffect(()=>{C&&P()},[C,D]);const B=(J,q)=>{_(J),E(q)},P=async()=>{var J;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const q=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if((q==null?void 0:q.ReturnValue)===0){p.error(q.msg),T(!1);return}const te=q==null?void 0:q.data,X=(J=te==null?void 0:te.list)==null?void 0:J.map((ne,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...ne,_rowKey:ae}}),$=(X==null?void 0:X.filter(ne=>x.includes(ne._rowKey)))||[];E($),z([...X||[]]),I((te==null?void 0:te.number)||0),T(!1)}catch(q){T(!1),p.error(q.msg||"参数错误")}return}p.error("请配置action-url")},U=()=>{var J,q;if(!t){if(d){const te=((J=r==null?void 0:r["key-field"])==null?void 0:J.list)??[],X=((q=r==null?void 0:r["key-field"])==null?void 0:q.delimiter)??"-";if(!te.length){p.error("请配置key-field");return}switch(g){case"modal-select":const $=d==null?void 0:d.split("-"),ne=N==null?void 0:N.findIndex(se=>$.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)));_([ne]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(se=>{var we;const ve=(we=se.split(X))==null?void 0:we[0];return N==null?void 0:N.findIndex(ce=>ve.includes((ce==null?void 0:ce.typeid)||(ce==null?void 0:ce.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const J=await CL(k,r,c);m(J),e.onSure(J),b(!1)}catch(J){p.error(J.msg||"参数错误")}},V=()=>{R({...D,PageNum:1}),b(!1)};function K(){const J=r["modal-field-list"];let q=[];for(let te in J){let X=J[te];const $={dataIndex:te,title:X};q=[...q,$]}return q}const ee=J=>{R({...D,PageNum:J})};return Be(en,{children:[Q(me.Select,{placeholder:Wh({json:r},c),onClick:U,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function CL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let p=e.map(g=>c.map(m=>g[m]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(p)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}const wL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,handleUrlOptions:g,value:d,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x}=e,[_,k]=W.useState([]),[E,A]=W.useState(d||[]);W.useEffect(()=>{T()},[r.inputType,r.classify,r.data,r.options]);const T=async()=>{const D=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});k(D)};return Q(me.Checkbox.Group,{...l,options:_,value:E,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:D=>{A(D),t==null||t(D)},disabled:i})},_L=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C="10001"})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(g);else if(e.inputType==="system-dictionary")T(g);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(P=>({label:`${P.dicid||""}-${P.info||""}`,value:`${P.dicid||""}-${P.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,K,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],P=(e==null?void 0:e["search-field"])||[],U=((K=e==null?void 0:e["key-field"])==null?void 0:K.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...m};M&&(P.forEach(J=>{H[J]=M[J]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const J=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=J==null?void 0:J.data)!=null&&ee.list&&Array.isArray(J.data.list)){const q=J.data.list.map(te=>({...te,label:`${te[B[0]]||""}${U}${te[B[1]]||""}`,value:`${te[B[0]]||""}${U}${te[B[1]]||""}`,children:[],isLeaf:(te==null?void 0:te.subcount)===0}));I(q)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:"请选择",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const P=Y.findIndex(V=>V===B[0]);if(P===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const U=t.map(V=>V.split("-")[P]||"").filter(Boolean);let H=b;for(const[V,K]of U.entries()){if(V===U.length-1)break;const ee=H.filter(te=>te[B[0]]===K);if(ee.length===0)break;const J=ee[0];if(J.children&&J.children.length>0){H=J.children;continue}H=await N(ee)}}}})},SL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,langId:c})=>{const[p,g]=W.useState([]),[d,m]=W.useState(!1);W.useEffect(()=>{(async()=>{var D;if(e.inputType==="url"&&e["action-url"]){m(!0);try{const R=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(D=R==null?void 0:R.data)!=null&&D.list&&Array.isArray(R.data.list)?g(R.data.list):R!=null&&R.data&&Array.isArray(R.data)?g(R.data):Array.isArray(R==null?void 0:R.list)?g(R.list):(R==null?void 0:R.ReturnValue)===1&&(R!=null&&R.data)&&(Array.isArray(R.data)?g(R.data):g([R.data]))}catch{}finally{m(!1)}}else e.data&&Array.isArray(e.data)&&g(e.data)})()},[e.inputType,e["action-url"],e.data]);const C=T=>JSON.stringify(T),b=T=>{const D=C(T);return t===D},x=T=>{if(r)return;const D=C(T);i&&i(D)},_=e["card-image-width"]||200,k=e["card-image-height"]||100,E=e["card-image-field"],A=e["card-info-field"];return Q("div",{style:{...l},children:d?Q("div",{style:{textAlign:"center",padding:"20px"},children:"loading..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"50px"},children:p.map((T,D)=>{const R=b(T);return Be("div",{onClick:()=>x(T),style:{flex:"1 1 auto",width:`${_}px`,padding:"12px 0",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[T[E]&&Q("img",{src:T.picurl,alt:T[A]||"",style:{width:`${_}px`,height:`${k}px`,objectFit:"cover",borderRadius:"8px",marginBottom:"8px"},onError:N=>{N.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:R?"none":"1px solid #d9d9d9",backgroundColor:R?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:R&&Q(d8,{style:{fontSize:"12px",color:"#fff"}})}),T[A]||""]})})]},D)})})})},EL=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1);W.useEffect(()=>{E()},[e.inputType,e.classify,e.data,e.options]);const E=async()=>{k(!0);const A=await Qh({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,item:e});x(A),k(!1)};return Q(me.Select,{placeholder:Wh({json:e},C),mode:e.input==="mult-select"?"multiple":void 0,disabled:r,loading:_,showSearch:!0,value:f,filterOption:(A,T)=>{var D;return((D=T==null?void 0:T.label)==null?void 0:D.toLowerCase().indexOf(A.toLowerCase()))>=0},options:b,style:{...t},allowClear:!0,onChange:A=>{c(A)}})},DL={customUpload:"myUpload-module_customUpload_7c7d3"},kL=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),TL=e=>{const{langId:r="10001"}=e,{action:t,item:i,onChange:l,readonly:f=!1,relatedid:c,uploadText:p=r==="10001"?"上传文件":"Upload File",onRemove:g,list:d=[],uploadType:m,relatedidKey:C}=e,{message:b}=me.App.useApp(),x=(i==null?void 0:i["upload-accept"])||"*",_=i==null?void 0:i.input,k=i==null?void 0:i["upload-size"],E=(i==null?void 0:i["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{d&&d.length&&R(d)},[d]);const Y=async H=>{m==="image"&&(!H.url&&!H.preview&&(H.preview=await kL(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),l&&l(H)},P=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(r==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},U=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(en,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:p})});return Be(en,{children:[Q(me.Upload,{action:t,beforeUpload:P,listType:A,accept:x,fileList:D,onPreview:Y,data:{[C]:c},maxCount:E,onChange:B,onRemove:g,disabled:f,className:DL.customUpload,children:D.length>=E?null:U}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},AL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,value:g,interfaceTypeDict:d,interfaceTypeSysDict:m,actionUrlKey:C,actionUrlExtraParams:b}=e,[x,_]=W.useState([]);W.useEffect(()=>{k()},[r.inputType,r.classify,r.data,r.options]);const k=async()=>{const E=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:d,interfaceTypeSysDict:m,actionUrlKey:C,actionUrlExtraParams:b,item:r});_(E)};return Q(me.Radio.Group,{...l,options:x,onChange:t,disabled:i,value:g,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})};hn.extend(iD);function OL(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:p,relatedidKey:g,actionUrlKey:d,actionUrlExtraParams:m,CustomModalComponent:C,isEdit:b,formShowType:x="form",langId:_,getTitle:k}=e,E=W.useRef([]),{message:A}=me.App.useApp();W.useEffect(()=>{l&&(E.current=l)},[l]);const T=W.useCallback(U=>Array.isArray(U)?U:(U==null?void 0:U.fileList)??[],[]),D=U=>{f(U)},R=W.useCallback(U=>{var ee,J;const H=(ee=U.json)==null?void 0:ee.input,V=(J=U.json)==null?void 0:J.format,K={};switch(H){case"image":case"file":case"video":case"audio":K.getValueFromEvent=T;break;case"date-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY-MM-DD"),K.getValueProps=q=>({value:q?hn(q):null});break;case"time-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY-MM-DD HH:mm:ss"),K.getValueProps=q=>({value:q?hn(q):null});break;case"week-picker":K.getValueFromEvent=q=>`${q==null?void 0:q.year()}-${hn(q).isoWeek()}周`,K.getValueProps=q=>{if(!q)return{value:null};const[te,X]=q.split("-"),$=Number(te),ne=Number(X.replace("周",""));return{value:hn().year($).isoWeek(ne)}};break;case"month-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY-MM"),K.getValueProps=q=>({value:q?hn(q):null});break;case"quarter-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY年第Q季度"),K.getValueProps=q=>({value:q?hn(q,V||"YYYY年第Q季度"):null});break;case"year-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"YYYY"),K.getValueProps=q=>({value:q?hn(q):null});break;case"second-picker":K.getValueFromEvent=q=>q==null?void 0:q.format(V||"HH:mm:ss"),K.getValueProps=q=>({value:q?hn(q,V||"HH:mm:ss"):null});break;case"range-picker":K.getValueFromEvent=q=>q==null?void 0:q.map(te=>te==null?void 0:te.format(V||"YYYY-MM-DD")),K.getValueProps=q=>!(q!=null&&q.length)&&!Array.isArray(q)?{value:null}:{value:(q==null?void 0:q.map(te=>hn(te)))||null};break;case"multiple-date-picker":K.getValueFromEvent=q=>q==null?void 0:q.map(te=>te==null?void 0:te.format(V||"YYYY-MM-DD")),K.getValueProps=q=>({value:(q==null?void 0:q.map(te=>hn(te)))||null});break}return K},[T]),N=W.useCallback(({isActive:U})=>U?Q(b8,{style:{fontSize:18,color:"#999"}}):Q(_8,{style:{fontSize:18,color:"#999"}}),[]),z=(U,H)=>{var V,K,ee,J,q;return Be(me.Flex,{gap:10,vertical:H==="flex",align:"center",children:[Q("span",{children:U.attrname}),((V=U==null?void 0:U.json)==null?void 0:V.instruction)&&H==="icon"&&Q(me.Tooltip,{title:(K=U==null?void 0:U.json)==null?void 0:K.instruction,children:Q(y8,{style:{color:((ee=U==null?void 0:U.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((J=U==null?void 0:U.json)==null?void 0:J["instruction-color"])??"red"},children:(q=U==null?void 0:U.json)==null?void 0:q.instruction})]})},M=W.useCallback(({itemWithJson:U,colNum:H=1,readonly:V=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:J,relatedid:q,form:te,defaultWidth:X=358,parentFormListField:$,isShowLabel:ne=!0})=>{const oe=Dc(U);let ae=U.children||[];Array.isArray(ae==null?void 0:ae[0])&&ae.length&&(ae=ae[0]);const se=ve=>{const we=($==null?void 0:$.parentName)||($==null?void 0:$.name);return we?Array.isArray(we)?[...we,U.attrid,ve.name]:[we,U.attrid,ve.name]:[U.attrid,ve.name]};return Q(me.Col,{span:24/H,children:Q(me.Collapse,{bordered:!1,style:{backgroundColor:"transparent"},expandIcon:({isActive:ve})=>N({isActive:ve}),items:[{key:U.attrid,label:U.attrname,styles:{header:{paddingLeft:0}},children:Q(me.Form.List,{name:$?Array.isArray($.name)?[...$.name,U.attrid]:[$.name,U.attrid]:U.attrid,initialValue:oe,children:(ve,{add:we,remove:ce})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[ve.map(ye=>{const De={...ye,parentName:se(ye)};return Q(me.Card,{style:{width:X+100},size:"small",title:`${U.attrname} ${ye.name+1}`,extra:!b&&Q(v8,{onClick:()=>{ve.length>1?ce(ye.name):A.warning("至少需要保留一个!")}}),children:(ae||[]).map((Pe,ke)=>Q(W.Fragment,{children:P({item:Pe,readonly:V,colNum:H,instructionShowMode:K,relatedid:q,form:te,defaultWidth:X,formItemStyle:J,radioAlign:ee,isFormListItem:!0,formListField:De,isShowLabel:!0})},Pe.attrid||`child-${ke}`))},ye.key)}),!b&&Q(me.Flex,{style:{width:200},children:Be(me.Button,{type:"dashed",onClick:()=>we(),block:!0,children:["+ ",_==="10001"?"新增":"Add"]})})]})})}]},U.attrid)})},[N,Dc]),I=W.useCallback(({itemWithJson:U,colNum:H=1,readonly:V=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:J,relatedid:q,form:te,defaultWidth:X=358,isFormListItem:$=!1,formListField:ne,isShowLabel:oe=!0})=>{var ae,se,ve,we,ce,ye,De;if(((ae=U.json)==null?void 0:ae.hide)===!0)return Q(en,{});if(U.attrtype===1)return M({itemWithJson:U,colNum:H,readonly:V,instructionShowMode:K,radioAlign:ee,formItemStyle:J,relatedid:q,form:te,defaultWidth:X,parentFormListField:ne,isShowLabel:oe});if(U.attrtype===2)return Q(en,{children:"实例信息"});if(U.attrtype===0){const Pe=Dc(U),ke=(se=U.json)==null?void 0:se["default-prompt"],ze=Wh(U,_),{combinations:Ne=[]}=U.json||{};if(Ne!=null&&Ne.length)return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{label:(ve=U==null?void 0:U.json)==null?void 0:ve["combination-name"],required:(we=U.json)==null?void 0:we.must,children:Q(me.Space.Compact,{children:Ne.map((Xe,Zt)=>{var In,Mn,Tn,Gt;let sn=Dc(Xe),kn=X;const jn={},un=Xe.json.input||"text",It=J==null?void 0:J.find(Kn=>Kn.type===un);if(It){const{width:Kn}=(It==null?void 0:It.style)||{};Kn&&(jn.width=Kn)}const on=(In=Xe==null?void 0:Xe.json)==null?void 0:In["combination-width-ratio"];return on&&(kn=X*on),Q(me.Form.Item,{name:ne?Array.isArray(ne.name)?[...ne.name,Xe.attrid]:[ne.name,Xe.attrid]:Xe.attrid,noStyle:!0,initialValue:sn,rules:[...(Mn=Xe.json)!=null&&Mn.must?[{required:!0,message:ke||`${ze}${Xe.attrname}`}]:[],...(Tn=U.json)!=null&&Tn.regexp?[{pattern:new RegExp(U.json.regexp.replace(/^\/|\/$/g,"")),message:((Gt=U.json)==null?void 0:Gt["regexp-message"])||`${U.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(Xe),children:B({item:Xe,readonly:V,formItemStyle:J,radioAlign:ee,relatedid:q,form:te,defaultWidth:kn,customWidth:jn})},Zt)})})},`${U.attrid}+1`)});const dt=$&&ne?Array.isArray(ne.name)?[...ne.name,U.attrid]:[ne.name,U.attrid]:U.attrid;return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{name:dt,label:oe&&z(U,K)||null,initialValue:Pe,rules:[...(ce=U.json)!=null&&ce.must?[{required:!0,message:`${ze}${U.attrname}`}]:[],...(ye=U.json)!=null&&ye.regexp?[{pattern:new RegExp(U.json.regexp.replace(/^\/|\/$/g,"")),message:((De=U.json)==null?void 0:De["regexp-message"])||`${U.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(U),children:B({item:U,readonly:V,formItemStyle:J,radioAlign:ee,relatedid:q,form:te,defaultWidth:X})},U.attrid)})}return null},[z,Dc,R,M]),Y=async U=>{var H;try{const V=(H=U==null?void 0:U.response)==null?void 0:H.data;if(V){if(!r)return;const K=await r({Controlname:"DelFile",PageName:"initializationfile"},V);if((K==null?void 0:K.ReturnValue)!==1)return A.error(K==null?void 0:K.msg),!1}else D(U);return!0}catch{return!1}},B=({item:U,readonly:H=!1,formItemStyle:V=[],radioAlign:K="horizontal",relatedid:ee,form:J,defaultWidth:q=358,customWidth:te={}})=>{var Pe,ke,ze,Ne,dt,Xe,Zt,sn,kn,jn,un,It,on,In,Mn,Tn,Gt,Kn,ka,Lr,qe,at;const X=U.json.input||"text",$=((Pe=U.json)==null?void 0:Pe.format)||"",ne=U.attrid,oe=Dc(U),ae=((ke=U.json)==null?void 0:ke["default-prompt"])||"",se=((ze=U.json)==null?void 0:ze["disable-date-goover"])||!1,ve=Wh(U,_),we=U.json.length&&{maxLength:U.json.length}||{},ce=V.find(ct=>ct.type===X);let ye=(Ne=U.json)==null?void 0:Ne["input-width"];ye&&(ye=x==="table"?Number(ye)-32:ye);const De=ye||q;switch(X){case"label":return Q(me.Input,{disabled:!0,value:((dt=U.json)==null?void 0:dt["label-value"])||U.attrvalue||((Xe=U.json)==null?void 0:Xe.default)||"-",style:{width:De,...ce==null?void 0:ce.style,...te}});case"text":return Q(me.Input,{placeholder:ae||ve,...we,disabled:H||((Zt=U.json)==null?void 0:Zt.readonly),allowClear:!0,style:{width:De,...ce==null?void 0:ce.style,...te}});case"password":return Q(me.Input.Password,{placeholder:ae||ve,...we,disabled:H||((sn=U.json)==null?void 0:sn.readonly),allowClear:!0,style:{width:De,...ce==null?void 0:ce.style,...te}});case"textarea":return Q(me.Input.TextArea,{allowClear:!0,placeholder:ae||ve,rows:5,...we,disabled:H||((kn=U.json)==null?void 0:kn.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}});case"number":return Q(me.InputNumber,{controls:!1,placeholder:ae||ve,...we,disabled:H||((jn=U.json)==null?void 0:jn.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}});case"select":case"mult-select":return Q(EL,{item:U.json,readonly:H||((un=U.json)==null?void 0:un.readonly),style:{width:De,...ce==null?void 0:ce.style,...te},commonRequestWidthParams:r,commonRequest:i,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:_,onChange:ct=>{J.setFieldValue(U.attrid,ct)}});case"modal-mult-select":case"modal-select":return Q(bL,{style:{width:De,...ce==null?void 0:ce.style,...te},item:U.json,value:U.attrvalue||U.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ct=>{J.setFieldValue(U.attrid,ct)},disabled:H||((It=U.json)==null?void 0:It.readonly),langId:_,CustomModalComponent:C});case"mul-field-modal-select":return Q(yL,{style:{width:De,...ce==null?void 0:ce.style,...te},item:U.json,form:J,attrid:ne,getTitle:k,value:U.attrvalue||U.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ct=>{J.setFieldsValue(ct)},disabled:H||((on=U.json)==null?void 0:on.readonly),CustomModalComponent:C,langId:_});case"date-picker":case"time-picker":case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":case"second-picker":{const ct={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};let Ht;return X==="date-picker"&&(Ht=se?$6:void 0),Q(me.DatePicker,{showTime:X==="time-picker",format:$||void 0,picker:ct[X]||"date",disabled:H||((In=U.json)==null?void 0:In.readonly),disabledDate:Ht,placement:"bottomLeft",style:{width:De,...ce==null?void 0:ce.style,...te}})}case"range-picker":return Q(me.DatePicker.RangePicker,{disabledDate:se?$6:void 0,disabled:H||((Mn=U.json)==null?void 0:Mn.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}});case"multiple-date-picker":return Q(me.DatePicker,{multiple:!0,maxTagCount:((Tn=U==null?void 0:U.json)==null?void 0:Tn["max-tag-count"])||2,disabled:H||((Gt=U.json)==null?void 0:Gt.readonly)||!1,style:{width:De,...ce==null?void 0:ce.style,...te}});case"radio":return Q(AL,{radioAlign:K,commonRequest:i,commonRequestWidthParams:r,item:U.json,readonly:H||((Kn=U.json)==null?void 0:Kn.readonly),options:we,handleUrlOptions:kc,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,onChange:ct=>{J.setFieldValue(U.attrid,ct.target.value)}});case"checkbox":return Q(wL,{radioAlign:K,commonRequest:i,commonRequestWidthParams:r,item:U.json,readonly:H||((ka=U.json)==null?void 0:ka.readonly),options:we,value:oe,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,onChange:ct=>{J.setFieldValue(U.attrid,ct.join(","))}});case"audio":case"file":case"image":case"video":return Q(TL,{action:t&&t("initializationfile"),item:U.json,uploadType:X,langId:_,list:oe,readonly:H||((Lr=U.json)==null?void 0:Lr.readonly),relatedid:ee,relatedidKey:g,onRemove:ct=>Y(ct)});case"cascader":return Q(_L,{commonRequestWidthParams:r,commonRequest:i,item:U.json,value:U.attrvalue,style:{width:De,...ce==null?void 0:ce.style,...te},interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:_});case"radio-card":return Q(SL,{item:U.json,readonly:H||((qe=U.json)==null?void 0:qe.readonly),onChange:ct=>{J.setFieldValue(U.attrid,ct)},langId:_,commonRequestWidthParams:r});default:return Q(me.Input,{placeholder:ae||ve,...we,showCount:!0,disabled:H||((at=U.json)==null?void 0:at.readonly),style:{width:De,...ce==null?void 0:ce.style,...te}})}},P=({item:U,readonly:H=!1,colNum:V=1,instructionShowMode:K="icon",relatedid:ee,form:J,defaultWidth:q=358,formItemStyle:te,radioAlign:X="horizontal",isFormListItem:$=!1,formListField:ne,isShowLabel:oe=!0})=>{var ve;const ae=U.info_base64===1?uu(Zh(U.info)):uu(U.info),se={...U,json:{...U==null?void 0:U.json,...ae}};return((ve=se.json)==null?void 0:ve.hide)===!0?null:Q(W.Fragment,{children:I({itemWithJson:se,readonly:H,colNum:V,instructionShowMode:K,relatedid:ee,form:J,defaultWidth:q,formItemStyle:te,radioAlign:X,isFormListItem:$,formListField:ne,isShowLabel:oe})},se.attrid)};return{handleRenderItem:P,handleSetFormItemInitialValue:Dc}}const RL=W.forwardRef((e,r)=>{const{formConfig:t,form:i,readonly:l=!1,relatedid:f,colNum:c=1,colSpace:p=[0,0],instructionShowMode:g="flex",defaultWidth:d=358,commonRequestWidthParams:m,uploadAction:C,commonRequest:b,formItemStyle:x=[],radioAlign:_="horizontal",interfaceTypeChildren:k="YLLRDetailAttrlist",interfaceTypeDict:E="YLZDDictList",interfaceTypeSysDict:A="YLZDSysConfigList",relatedidKey:T="relatedid",actionUrlKey:D="action-url",actionUrlExtraParams:R={},CustomModalComponent:N,formShowType:z="form",formListItemWidth:M,formListItemName:I,isEdit:Y=!1,langId:B="10001",getTitle:P}=e,U=W.useRef([]),H=K=>{U.current.push(K)},{handleRenderItem:V}=OL({commonRequestWidthParams:m,uploadAction:C,commonRequest:b,updateDelFileList:H,formConfig:t,interfaceTypeChildren:k,interfaceTypeDict:E,interfaceTypeSysDict:A,relatedidKey:T,actionUrlKey:D,actionUrlExtraParams:R,CustomModalComponent:N,isEdit:Y,formShowType:z,langId:B,getTitle:P});return W.useImperativeHandle(r,()=>({getDelFileList:()=>U.current})),Q(en,{children:z==="table"?Q(me.Form.List,{name:I||"customFormList",initialValue:[{}],children:(K,{add:ee,remove:J})=>Be(me.Flex,{className:"custom-form-body",style:{position:"relative"},children:[Be("div",{className:"custom-form-list",style:{flex:1,overflowX:"auto"},children:[Q(me.Flex,{align:"center",style:{position:"relative",backgroundColor:"#004d32"},children:Q(me.Flex,{className:"custom-form-list-header",align:"center",children:t==null?void 0:t.map((q,te)=>{var $,ne;const X=(($=q==null?void 0:q.json)==null?void 0:$["input-width"])&&Number((ne=q==null?void 0:q.json)==null?void 0:ne["input-width"])||d;return Be(me.Flex,{style:{width:X,flexShrink:0},align:"center",children:[te!==0&&Q("div",{className:"line"}),Q("div",{className:"custom-form-list-header-item",children:q.attrname})]},te)})})}),K.map(q=>Q(me.Flex,{align:"center",className:"custom-form-list-item-container",children:Q(me.Flex,{className:"custom-form-list-item",align:"center",children:t==null?void 0:t.map((te,X)=>{var ne,oe;const $=((ne=te==null?void 0:te.json)==null?void 0:ne["input-width"])&&Number((oe=te==null?void 0:te.json)==null?void 0:oe["input-width"])||d;return Q(me.Flex,{align:"center",className:"custom-form-list-item-content",justify:"center",style:{width:$,flexShrink:0},children:V({item:te,readonly:l,colNum:c,instructionShowMode:g,relatedid:f,form:i,defaultWidth:d-30,formItemStyle:x,isFormListItem:!0,formListField:q,isShowLabel:!1})},te.attrid||`child-${X}`)})})},q.key))]}),Be(me.Flex,{className:"custom-form-list-right",vertical:!0,style:{position:"sticky",right:0,flexShrink:0,backgroundColor:"#fff",zIndex:1},children:[Q("a",{className:"custom-form-list-add-btn",onClick:()=>ee(),style:{display:"block",textAlign:"center",minWidth:"60px"},children:B==="10001"?"新增":"Add"}),K.map(q=>Q("a",{className:"custom-form-list-del-btn",onClick:()=>J(q.key),style:{display:"block",textAlign:"center",minWidth:"60px"},children:B==="10001"?"删除":"Delete"},q.key))]})]})}):Q(me.Row,{gutter:p,children:t.map((K,ee)=>Q(W.Fragment,{children:V({item:K,readonly:l,colNum:c,instructionShowMode:g,relatedid:f,form:i,defaultWidth:d,formItemStyle:x,radioAlign:_})},K.attrid||`form-item-${ee}`))})})}),oD=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Tc=e=>{var i,l,f,c;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default)||"";if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t.map(p=>new Date(p))}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(p=>new Date(p))}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const p=(c=e.json)==null?void 0:c["cascader-delimiter"];p&&(t=t.split(p).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return e.attrtype===1&&(t=FL(e.children||[])),t||void 0},lD=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},FL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)},NL=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c})=>{var m;let p=[];const g=async C=>{var x;let b=[];if(c.classify)try{const _=await r(C,{asctypeid:c.classify});(x=_==null?void 0:_.data)!=null&&x.list&&Array.isArray(_.data.list)&&(b=_.data.list.map(k=>({label:`${k.dicid||""}-${k.info||""}`,value:`${k.dicid||""}-${k.info||""}`})))}catch{me.message.error("加载选项失败")}return b},d=async()=>{var C,b;try{const x=((C=c==null?void 0:c["key-field"])==null?void 0:C.list)||[],_=((b=c==null?void 0:c["key-field"])==null?void 0:b.delimiter)||"",k=c==null?void 0:c["field-names"];if(!x.length){me.message.error("请配置key-field");return}const E=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(E!=null&&E.data){const A=E==null?void 0:E.data,T=(A==null?void 0:A.list)||[];let D=[];Array.isArray(A)&&(D=A),Array.isArray(T)&&(D=T),k?p=D:p=D.map(R=>({label:lD(R,_,x),value:lD(R,_,x)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(p=((m=c.data)==null?void 0:m.map(C=>({label:C,value:C})))||[],c.options&&Array.isArray(c.options)&&(p=c.options)):c.inputType==="dictionary"?p=await g(t):c.inputType==="system-dictionary"&&(p=await g(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await d(),p};function ML(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:p,form:g,langId:d,getTitle:m}=e,C=me.Form.useWatch(p,g),{message:b}=me.App.useApp(),x=r.input,{handleUniversalHeaderToColumns:_}=$2(),[k,E]=W.useState(e.value),[A,T]=W.useState(!1),[D,R]=W.useState([]),[N,z]=W.useState([]),[M,I]=W.useState(!1),[Y,B]=W.useState({PageNum:1,PageSize:6}),[P,U]=W.useState([]),[H,V]=W.useState(0),[K,ee]=W.useState(ne());W.useEffect(()=>{A&&q()},[A,Y]);const J=(ae,se)=>{R(ae),z(se)},q=async()=>{var ae,se,ve,we,ce;if(r.inputType==="url"&&(r!=null&&r["action-url"])){I(!0);try{const ye=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...Y,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ye==null?void 0:ye.ReturnValue)===0){b.error(ye.msg),I(!1);return}const De=ye==null?void 0:ye.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map((ze,Ne)=>{const dt=(Y.PageNum-1)*Y.PageSize+Ne;return{...ze,_rowKey:dt}}),ke=(Pe==null?void 0:Pe.filter(ze=>D.includes(ze._rowKey)))||[];z(ke),U([...Pe||[]]),V((De==null?void 0:De.number)||0),I(!1)}catch(ye){I(!1),b.error(d==="10001"?ye.msg||"参数错误":"Failed to load data")}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ye={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...Y};try{const Pe=await l(ye,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const ze=(ve=((se=Pe==null?void 0:Pe.data)==null?void 0:se.list)||[])==null?void 0:ve.map((Ne,dt)=>{const Xe=(Y.PageNum-1)*Y.PageSize+dt;return{...Ne,_rowKey:Xe}});V(((we=Pe==null?void 0:Pe.data)==null?void 0:we.number)||0),U([...ze])}const ke=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ke==null?void 0:ke.ReturnValue)===1){const ze=(ce=ke==null?void 0:ke.data)==null?void 0:ce[r==null?void 0:r["instance-source-number"]],Ne=(ze==null?void 0:ze["universal-header"])||[],dt=(ze==null?void 0:ze["attribute-set-id"])||"",Xe=_({universalHeader:Ne,attributeSetId:dt,getTitle:m,otherLangPageId:"5000000"})||[];ee([...Xe])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error"),b.error(d==="10001"?"请配置action-url":"Please configure action-url")},te=()=>{var ae;if(!t){if(k){const se=r==null?void 0:r["key-field"],ve=se==null?void 0:se[p],{delimiter:we="-",list:ce=[]}=ve||{};if(!se){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ye=(ae=k==null?void 0:k.split(we))==null?void 0:ae[0],De=P==null?void 0:P.findIndex(ze=>Object.values(ze).includes(ye));R([De]);break;case"modal-mult-select":const Pe=k==null?void 0:k.split(","),ke=Pe==null?void 0:Pe.map(ze=>{var dt;const Ne=(dt=ze.split(we))==null?void 0:dt[0];return P==null?void 0:P.findIndex(Xe=>Ne.includes((Xe==null?void 0:Xe.typeid)||(Xe==null?void 0:Xe.instanceid)))});R(ke);break}}T(!0)}},X=async()=>{try{const ae=await PL(N,r);E((ae==null?void 0:ae[p])||""),e.onSure(ae),T(!1)}catch(ae){b.error(d==="10001"?ae.msg||"参数错误":"Failed to load data")}},$=()=>{B({...Y,PageNum:1}),T(!1)};function ne(){const ae=r["modal-field-list"];let se=[];for(let ve in ae){let we=ae[ve];const ce={dataIndex:ve,title:we};se=[...se,ce]}return se}const oe=ae=>{B({...Y,PageNum:ae})};return Be(en,{children:[Q(me.Select,{placeholder:d==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:te,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:A,onOk:X,onCancel:$,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:K,loading:M,dataSource:P,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:J},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:A,onOk:X,onCancel:$,width:r["modal-width"]??600,okButtonProps:{disabled:D.length===0},children:Q(me.Table,{columns:K,loading:M,dataSource:P,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:J},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})]})}function PL(e,r){return new Promise((t,i)=>{try{var l=r["key-field"];if(!l){i({msg:"请配置key-field"});return}let f={};e.forEach(c=>{for(let[p,g]of Object.entries(l)){const d=(g==null?void 0:g.list)??[],m=(g==null?void 0:g.delimiter)??"-",C=d.map(b=>c==null?void 0:c[b]);f[p]=C.join(m)}}),t(f)}catch{i({msg:"key-field参数配置错误"})}})}function BL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:p}=me.App.useApp(),g=r.input,[d,m]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=K();W.useEffect(()=>{C&&P()},[C,D]);const B=(J,q)=>{_(J),E(q)},P=async()=>{var J;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const q=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if((q==null?void 0:q.ReturnValue)===0){p.error(q.msg),T(!1);return}const te=q==null?void 0:q.data,X=(J=te==null?void 0:te.list)==null?void 0:J.map((ne,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...ne,_rowKey:ae}}),$=(X==null?void 0:X.filter(ne=>x.includes(ne._rowKey)))||[];E($),z([...X||[]]),I((te==null?void 0:te.number)||0),T(!1)}catch(q){T(!1),p.error(c==="10001"?q.msg||"参数错误":"Failed to load data")}return}p.error(c==="10001"?"请配置action-url":"Please configure action-url")},U=()=>{var J,q;if(!t){if(d){const te=((J=r==null?void 0:r["key-field"])==null?void 0:J.list)??[],X=((q=r==null?void 0:r["key-field"])==null?void 0:q.delimiter)??"-";if(!te.length){p.error(c==="10001"?"请配置key-field":"Please configure key-field");return}switch(g){case"modal-select":const $=d==null?void 0:d.split("-"),ne=N==null?void 0:N.findIndex(se=>$.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)));_([ne]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(se=>{var we;const ve=(we=se.split(X))==null?void 0:we[0];return N==null?void 0:N.findIndex(ce=>ve.includes((ce==null?void 0:ce.typeid)||(ce==null?void 0:ce.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const J=await LL(k,r,c);m(J),e.onSure(J),b(!1)}catch(J){p.error(c==="10001"?J.msg||"参数错误":"Failed to build value")}},V=()=>{R({...D,PageNum:1}),b(!1)};function K(){const J=r["modal-field-list"];let q=[];for(let te in J){let X=J[te];const $={dataIndex:te,title:X};q=[...q,$]}return q}const ee=J=>{R({...D,PageNum:J})};return Be(en,{children:[Q(me.Select,{placeholder:c==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:U,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:J=>J._rowKey,rowSelection:{type:g==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function LL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let p=e.map(g=>c.map(m=>g[m]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(p)}catch{l({msg:t==="10001"?"key-field参数配置错误":"Failed to build value"})}})}const zL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,handleUrlOptions:g,value:d,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]),[A,T]=W.useState(d||[]);W.useEffect(()=>{D()},[r.inputType,r.classify,r.data,r.options]);const D=async()=>{const R=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(R)};return Q(me.Checkbox.Group,{...l,options:k,value:A,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:R=>{T(R),t==null||t(R)},disabled:i})},UL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(g);else if(e.inputType==="system-dictionary")T(g);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(P=>({label:`${P.dicid||""}-${P.info||""}`,value:`${P.dicid||""}-${P.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,K,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],P=(e==null?void 0:e["search-field"])||[],U=((K=e==null?void 0:e["key-field"])==null?void 0:K.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...m};M&&(P.forEach(J=>{H[J]=M[J]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const J=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=J==null?void 0:J.data)!=null&&ee.list&&Array.isArray(J.data.list)){const q=J.data.list.map(te=>({...te,label:`${te[B[0]]||""}${U}${te[B[1]]||""}`,value:`${te[B[0]]||""}${U}${te[B[1]]||""}`,children:[],isLeaf:(te==null?void 0:te.subcount)===0}));I(q)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:C==="10001"?"请选择":"Please select",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const P=Y.findIndex(V=>V===B[0]);if(P===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const U=t.map(V=>V.split("-")[P]||"").filter(Boolean);let H=b;for(const[V,K]of U.entries()){if(V===U.length-1)break;const ee=H.filter(te=>te[B[0]]===K);if(ee.length===0)break;const J=ee[0];if(J.children&&J.children.length>0){H=J.children;continue}H=await N(ee)}}}})},jL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f})=>{const[c,p]=W.useState([]),[g,d]=W.useState(!1);W.useEffect(()=>{(async()=>{var T;if(e.inputType==="url"&&e["action-url"]){d(!0);try{const D=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(T=D==null?void 0:D.data)!=null&&T.list&&Array.isArray(D.data.list)?p(D.data.list):D!=null&&D.data&&Array.isArray(D.data)?p(D.data):Array.isArray(D==null?void 0:D.list)?p(D.list):(D==null?void 0:D.ReturnValue)===1&&(D!=null&&D.data)&&(Array.isArray(D.data)?p(D.data):p([D.data]))}catch{}finally{d(!1)}}else e.data&&Array.isArray(e.data)&&p(e.data)})()},[e.inputType,e["action-url"],e.data]);const m=A=>JSON.stringify(A),C=A=>{const T=m(A);return t===T},b=A=>{if(r)return;const T=m(A);i&&i(T)},x=e["card-image-width"]||200,_=e["card-image-height"]||100,k=e["card-image-field"],E=e["card-info-field"];return Q("div",{style:{...l},children:g?Q("div",{style:{textAlign:"center",padding:"20px"},children:"加载中..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"0px"},children:c.map((A,T)=>{const D=C(A);return Be("div",{onClick:()=>b(A),style:{flex:"1 1 auto",width:`${x}px`,padding:"12px",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[A[k]&&Q("img",{src:A.picurl,alt:A[E]||"",style:{width:`${x}px`,height:`${_}px`,objectFit:"cover",borderRadius:"4px",marginBottom:"8px"},onError:R=>{R.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:D?"none":"1px solid #d9d9d9",backgroundColor:D?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:D&&Q(d8,{style:{fontSize:"12px",color:"#fff"}})}),A[E]||""]})})]},T)})})})},QQ="";function Xh(e,r){if(!e)return r;let t;return typeof e=="function"?t=e():"current"in e?t=e.current:t=e,t}function Mi(){}const Jh=Object.assign,Ac=typeof window<"u";function Jr(e){return e!=null}function Oc(e){return typeof e=="function"}function IL(e){return cd(e)&&Oc(e.then)&&Oc(e.catch)}function cd(e){return e!==null&&typeof e=="object"}function sD(e,r,t){return r.reduce((i,l)=>((!t||e[l]!==void 0)&&(i[l]=e[l]),i),{})}function Y2(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((t,i)=>t+Y2(e,i),""):Object.keys(r).reduce((t,i)=>t+(r[i]?Y2(e,i):""),""):""}function HL(e){return(r,t)=>(r&&typeof r!="string"&&(t=r,r=""),r=r?`${e}__${r}`:e,`${r}${Y2(r,t)}`)}function wn(e,r){return e=`${r||"rv"}-${e}`,[HL(e),e]}function VL(e){e.stopPropagation()}function q2(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&VL(e)}const $L={click:"onClick"};function uD(e,r){const t=Object.assign({},r.props);for(const i of e){const l=$L[i];t[l]=function(f){var c,p;f.stopPropagation(),(p=(c=r.props)[l])===null||p===void 0||p.call(c,f)}}return W.cloneElement(r,t)}const fd=Ac?window:global;let cD=Date.now();function YL(e){const r=Date.now(),t=Math.max(0,16-(r-cD)),i=setTimeout(e,t);return cD=r+t,i}function G2(e){return(fd.requestAnimationFrame||YL).call(fd,e)}function qL(){return Ac?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}function GL(e){const r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function KL(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function WL(e){fD(window,e)}function fD(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}const QL=qL();function dD(){QL&&WL(KL())}function hD(e){return/^\d+(\.\d+)?$/.test(e)}function pD(e){return Number.isNaN?Number.isNaN(e):e!==e}function dl(e){if(Jr(e))return e=String(e),hD(e)?`${e}px`:e}function ZL(e){if(Jr(e)){const r=dl(e);return{width:r,height:r}}return{}}let K2;function XL(){if(!K2){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;K2=parseFloat(r)}return K2}function JL(e){return e=e.replace(/rem/g,""),+e*XL()}function ez(e){return e=e.replace(/vw/g,""),+e*window.innerWidth/100}function tz(e){return e=e.replace(/vh/g,""),+e*window.innerHeight/100}function vD(e){if(typeof e=="number")return e;if(Ac){if(e.indexOf("rem")!==-1)return JL(e);if(e.indexOf("vw")!==-1)return ez(e);if(e.indexOf("vh")!==-1)return tz(e)}return parseFloat(e)}function ep(e,r,t){return Math.min(Math.max(e,r),t)}function mD(e,r,t){const i=e.indexOf(r);return i===-1?e:r==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(t,"")}function nz(e,r=!0,t=!0){r?e=mD(e,".",/\./g):e=e.split(".")[0],t?e=mD(e,"-",/-/g):e=e.replace(/-/,"");const i=r?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function hl(e,r=2){let t=`${e}`;for(;t.length<r;)t=`0${t}`;return t}let gD=!1;if(Ac)try{const e={};Object.defineProperty(e,"passive",{get(){gD=!0}}),window.addEventListener("test-passive",null,e)}catch{}function W2(e,r,t={}){if(!Ac)return;const{target:i=window,passive:l=!1,capture:f=!1,depends:c=[]}=t;let p;const g=()=>{const m=Xh(i);m&&!p&&(m.addEventListener(e,r,gD?{capture:f,passive:l}:f),p=!0)},d=()=>{const m=Xh(i);m&&p&&(m.removeEventListener(e,r,f),p=!1)};W.useEffect(()=>(g(),()=>d()),[i,...c])}function Q2(e){const[r,t]=W.useState(e),i=W.useRef(r),l=W.useCallback(f=>{t(c=>i.current=Oc(f)?f(c):f)},[r]);return[r,l,i]}const rz=()=>{const e=W.useRef(!1);return W.useEffect(()=>(e.current=!1,()=>{e.current=!0}),[]),e},yD=(e={})=>{const r=rz(),[t,i,l]=Q2(e),f=W.useCallback(c=>{r.current||i(p=>Object.assign(Object.assign({},p),Oc(c)?c(p):c))},[]);return[t,f,l]},Rc=(e,r)=>{const t=W.useRef(!1);W.useEffect(()=>{if(!t.current)t.current=!0;else return e()},r)};function xD(e){const r=W.useRef(e);return r.current=e,r}const az=process.env.NODE_ENV==="development";function eZ(e,r){}const bD=e=>{process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=xD(e);W.useEffect(()=>()=>{r.current()},[])};function CD(e,r){if(e===r)return!0;for(let t=0;t<e.length;t++)if(!Object.is(e[t],r[t]))return!1;return!0}const iz=(e=>(t,i,l)=>{const f=W.useRef(!1),c=W.useRef([]),p=W.useRef([]),g=W.useRef();e(()=>{var d;const C=(Array.isArray(l)?l:[l]).map(b=>Xh(b));if(!f.current){f.current=!0,c.current=C,p.current=i,g.current=t();return}(C.length!==c.current.length||!CD(C,c.current)||!CD(i,p.current))&&((d=g.current)===null||d===void 0||d.call(g),c.current=C,p.current=i,g.current=t())}),bD(()=>{var d;(d=g.current)===null||d===void 0||d.call(g),f.current=!1})})(W.useEffect);function oz(e,r){const[t,i]=W.useState(),[l,f]=W.useState();return iz(()=>{const c=Xh(e);if(!c)return;const p=new IntersectionObserver(g=>{for(const d of g)f(d.intersectionRatio),i(d.isIntersecting)},Object.assign(Object.assign({},r),{root:Xh(r==null?void 0:r.root)}));return p.observe(c),()=>{p.disconnect()}},[],e),[t,l]}const wD=10;function lz(e,r){return e>r&&e>wD?"horizontal":r>e&&r>wD?"vertical":""}function _D(){const e=W.useRef(0),r=W.useRef(0),t=W.useRef(0),i=W.useRef(0),l=W.useRef(0),f=W.useRef(0),c=W.useRef(""),p=W.useRef(null),g=()=>c.current==="vertical",d=()=>c.current==="horizontal",m=()=>{t.current=0,i.current=0,l.current=0,f.current=0,c.current="",p.current=null};return{move:x=>{const _=x.touches[0];t.current=_.clientX<0?0:_.clientX-e.current,i.current=_.clientY-r.current,l.current=Math.abs(t.current),f.current=Math.abs(i.current),p.current===null?p.current=!0:p.current=!1,c.current||(c.current=lz(l.current,f.current))},start:x=>{m(),e.current=x.touches[0].clientX,r.current=x.touches[0].clientY},reset:m,startX:e,startY:r,deltaX:t,deltaY:i,offsetX:l,offsetY:f,direction:c,isVertical:g,isHorizontal:d,firstMove:p}}const SD=/scroll|auto/i,sz=Ac?window:void 0;function uz(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function cz(e,r=sz){r===void 0&&(r=window);let t=e;for(;t&&t!==r&&uz(t);){const{overflowY:i}=window.getComputedStyle(t);if(SD.test(i)){if(t.tagName!=="BODY")return t;const l=window.getComputedStyle(t.parentNode).overflowY;if(SD.test(l))return t}t=t.parentNode}return r}const fz=e=>(r,t)=>{const i=W.useRef(!1);e(()=>()=>{i.current=!1},[]),e(()=>{if(!i.current)i.current=!0;else return r()},t)},tp=Ac?W.useLayoutEffect:W.useEffect,dz=fz(tp),ED=()=>{const[,e]=W.useState({});return W.useCallback(()=>e({}),[])};function DD(e){process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=W.useRef(e);r.current=W.useMemo(()=>e,[e]);const t=W.useRef();return t.current||(t.current=function(...i){return r.current.apply(this,i)}),t.current}function np(e){const{value:r,defaultValue:t,onChange:i}=e,l=ED(),f=W.useRef(r!==void 0?r:t);r!==void 0&&(f.current=r);const c=DD((p,g)=>{const d=typeof p=="function"?p(f.current):p;!g&&d===f.current||(f.current=d,l(),i==null||i(d))});return[f.current,c]}const iZ="";function $a(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t}function Z2(e,r,t,i){function l(f){return f instanceof t?f:new t(function(c){c(f)})}return new(t||(t=Promise))(function(f,c){function p(m){try{d(i.next(m))}catch(C){c(C)}}function g(m){try{d(i.throw(m))}catch(C){c(C)}}function d(m){m.done?f(m.value):l(m.value).then(p,g)}d((i=i.apply(e,r||[])).next())})}const oZ="",hz=({bem:e})=>Q(en,{children:Array(12).fill(null).map((r,t)=>Q("i",{className:Re(e("line",String(t+1)))},t))}),pz=({bem:e})=>Q("svg",Object.assign({className:Re(e("circular")),viewBox:"25 25 50 50"},{children:Q("circle",{cx:"50",cy:"50",r:"20",fill:"none"})})),vz=({bem:e})=>Be("div",Object.assign({className:Re(e("ball"))},{children:[Q("div",{}),Q("div",{}),Q("div",{})]})),mz=e=>({spinner:Q(hz,{bem:e}),circular:Q(pz,{bem:e}),ball:Q(vz,{bem:e})}),[Ng]=wn("loading"),X2=e=>{const{className:r,type:t="circular",vertical:i,color:l,size:f,textColor:c,children:p,textSize:g}=e,d=W.useMemo(()=>Object.assign({color:l},ZL(f)),[l,f]),m=()=>p?Q("span",Object.assign({className:Re(Ng("text")),style:{fontSize:dl(g),color:c??l}},{children:p})):null;return Be("div",Object.assign({className:Re(r,Ng([t,{vertical:i}])),style:e.style},{children:[Q("span",Object.assign({className:Re(Ng("spinner",t)),style:d},{children:mz(Ng)[t]})),m()]}))},gz="#fff",rp="rv-hairline",yz=`${rp}--top`,xz=`${rp}--left`,bz=`${rp}--surround`,Cz=`${rp}--top-bottom`,wz=`${rp}-unset--top-bottom`,kD="rv-shadow",_z="__REACT_VANT_COMPONENT",TD=W.createContext({}),[ap]=wn("button"),Sz=e=>{const{color:r,loading:t,className:i,hairline:l,loadingText:f,round:c,square:p,plain:g,block:d,loadingType:m,nativeType:C,iconPosition:b}=e,x=$a(e,["color","loading","className","hairline","loadingText","round","square","plain","block","loadingType","nativeType","iconPosition"]),{parent:_}=W.useContext(TD),k=W.useMemo(()=>e.size||(_==null?void 0:_.size)||"normal",[_==null?void 0:_.size,e.size]),E=W.useMemo(()=>e.type||(_==null?void 0:_.type)||"default",[_==null?void 0:_.type,e.type]),A=W.useMemo(()=>g??(_==null?void 0:_.plain),[_==null?void 0:_.plain,g]),T=W.useMemo(()=>d??(_==null?void 0:_.block),[_==null?void 0:_.block,d]),D=W.useMemo(()=>b||(_==null?void 0:_.iconPosition)||"left",[_==null?void 0:_.iconPosition,b]),R=W.useMemo(()=>{var K;return(K=e.disabled)!==null&&K!==void 0?K:_==null?void 0:_.disabled},[_==null?void 0:_.disabled,e.disabled]),N=W.useMemo(()=>C||(_==null?void 0:_.nativeType)||"button",[_==null?void 0:_.nativeType,C]),M=W.useMemo(()=>e.tag||(_==null?void 0:_.tag)||"button",[_==null?void 0:_.tag,e.tag]),I=Re(i,ap([E,k,{plain:A,loading:t,disabled:R,hairline:l,block:T,round:c,square:p}]),{[bz]:l},e.shadow&&`${kD}--${+e.shadow}`),Y=Object.assign({},e.style);r&&(Y.color=A?r:gz,A||(Y.background=r),r.indexOf("gradient")!==-1?Y.border=0:Y.borderColor=r);const B=K=>{!t&&!R&&e.onClick&&e.onClick(K)},P=()=>{if(t){const{loadingSize:K="20px"}=e;return Q(X2,{className:Re(ap("loading")),size:K,type:m,color:E==="default"?void 0:""})}return null},U=()=>e.loading?P():e.icon?W.cloneElement(e.icon,{className:Re(ap("icon"))}):null,H=()=>{let K;return t?K=f:K=e.children||e.text,K?Q("span",Object.assign({className:Re(ap("text"))},{children:K}),"text"):null};return Q(M,Object.assign({},x,{disabled:R,className:I,style:Y,type:N,onClick:B},{children:(()=>Be("div",Object.assign({className:Re(ap("content"))},{children:[D==="left"&&U(),H(),D==="right"&&U()]})))()}))},[Ez]=wn("button-group"),ip=Object.assign(Sz,{Group:e=>{var{className:r,style:t,children:i,onClick:l}=e,f=$a(e,["className","style","children","onClick"]);return Q("div",Object.assign({onClick:p=>{f.disabled||l==null||l(p)},style:t,className:Re(r,Ez([f.type,{round:f.round,plain:f.plain,disabled:f.disabled}]),f.shadow&&`${kD}--${+f.shadow}`)},{children:Q(TD.Provider,Object.assign({value:{parent:f}},{children:i}))}))}}),dZ="";function ea(...e){const r=Object.assign({},e[0]);return e.forEach(t=>{for(const i in t){const l=t[i];r[i]=r.hasOwnProperty(i)?r[i]:l}}),r}const[AD]=wn("badge"),Dz=e=>{const r=ea(e,{tag:"div",showZero:!0}),{content:t,max:i,dot:l,showZero:f,tag:c="div"}=r,p=c,g=()=>r.content?!0:Jr(t)&&t!==""&&(f||+t!=0),d=()=>!l&&g()?Jr(i)&&hD(t==null?void 0:t.toString())&&+t>i?`${i}+`:t:null,m=()=>{if(g()||r.dot){let C={background:r.color};if(r.offset){const[b,x]=r.offset;r.children?(C.top=dl(x),C.right=dl(b)):(C.marginTop=dl(x),C.marginLeft=dl(b))}return r.children||(C=Object.assign(Object.assign({},r.style),C)),Q("div",Object.assign({className:Re({[r.className]:r.className&&!r.children},AD({dot:r.dot,fixed:!!r.children})),style:C},{children:d()}))}return null};return r.children?Be(p,Object.assign({className:Re(AD("wrapper"),r.className),style:r.style,onClick:r.onClick,onTouchStart:r.onTouchStart},{children:[r.children,m()]})):m()},pZ="";var kz=globalThis&&globalThis.__rest||function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t};function Tz(e){return e.substring(3).replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")}const ls=W.forwardRef((e,r)=>{const{name:t="",className:i,style:l,spin:f,rotate:c,tabIndex:p,onClick:g,children:d}=e,m=kz(e,["name","className","style","spin","rotate","tabIndex","onClick","children"]),C={};c&&(C.msTransform=`rotate(${c}deg)`,C.transform=`rotate(${c}deg)`);const b=t?Tz(t):void 0;let x=p;x===void 0&&g&&(x=-1);const _=Object.assign({role:"img","aria-label":b,focusable:"false","data-icon":b,"aria-hidden":"true",preserveAspectRatio:"xMidYMid meet",ref:r,tabIndex:x,onClick:g,className:["rv-icon",b?`rv-icon-${b}`:"",f?"rv-icon--spin":"",i].join(" ").trim(),style:Object.assign(Object.assign({},l),C)},m);return W.cloneElement(d,_)}),Az=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M494.094 733.426a41.472 41.472 0 01-20.023-11.126L140.16 388.388c-16.272-16.271-16.272-42.653 0-58.925 16.271-16.272 42.653-16.272 58.925 0L503.66 634.037 808.186 329.51c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L533.2 722.347c-10.607 10.607-25.508 14.3-39.106 11.08z",fillRule:"evenodd"})),Oz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrowDown"},e,{ref:r}),Me.createElement(Az,null))),Rz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 01-11.127-20.023z",fillRule:"evenodd"})),Fz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrowLeft"},e,{ref:r}),Me.createElement(Rz,null))),Nz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M513.176 285.05a41.472 41.472 0 0120.024 11.127L867.11 630.089c16.272 16.271 16.272 42.653 0 58.925s-42.654 16.272-58.925 0L503.612 384.44 199.085 688.967c-16.272 16.271-42.654 16.271-58.925 0-16.272-16.272-16.272-42.654 0-58.926L474.07 296.129c10.606-10.606 25.508-14.299 39.105-11.078z",fillRule:"evenodd"})),Mz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrowUp"},e,{ref:r}),Me.createElement(Nz,null))),Pz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M711.156 508.035a41.472 41.472 0 01-11.126 20.023L366.12 861.97c-16.272 16.272-42.654 16.272-58.926 0s-16.272-42.654 0-58.926L611.767 498.47 307.241 193.944c-16.272-16.272-16.272-42.654 0-58.926 16.271-16.272 42.653-16.272 58.925 0L700.078 468.93c10.606 10.606 14.299 25.508 11.078 39.105z",fillRule:"evenodd"})),Bz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgArrow"},e,{ref:r}),Me.createElement(Pz,null))),Lz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M500 55.556c245.46 0 444.444 198.984 444.444 444.444S745.46 944.444 500 944.444 55.556 745.46 55.556 500 254.54 55.556 500 55.556zm176.441 267.887c-10.848-10.848-28.436-10.848-39.284 0L499.665 460.936 362.172 323.443c-10.848-10.848-28.436-10.848-39.284 0-10.848 10.848-10.848 28.436 0 39.284L460.38 500.22 322.888 637.713c-10.848 10.848-10.848 28.436 0 39.284 10.848 10.848 28.436 10.848 39.284 0l137.493-137.493 137.492 137.493c10.848 10.848 28.436 10.848 39.284 0 10.848-10.848 10.848-28.436 0-39.284L538.948 500.22l137.493-137.493c10.848-10.848 10.848-28.436 0-39.284z",fillRule:"evenodd"})),Mg=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgClear"},e,{ref:r}),Me.createElement(Lz,null))),zz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M560.149 501.223l255.344 255.344c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L501.223 560.149 245.88 815.493c-16.272 16.272-42.654 16.272-58.925 0-16.272-16.272-16.272-42.654 0-58.926l255.344-255.344L186.954 245.88c-16.272-16.272-16.272-42.654 0-58.925 16.271-16.272 42.653-16.272 58.925 0l255.344 255.344 255.344-255.344c16.272-16.272 42.654-16.272 58.926 0 16.272 16.271 16.272 42.653 0 58.925L560.149 501.223z",fillRule:"nonzero"})),J2=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgCross"},e,{ref:r}),Me.createElement(zz,null))),Uz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M537.5 537.5v325c0 20.71-16.79 37.5-37.5 37.5s-37.5-16.79-37.5-37.5v-325h-325c-20.71 0-37.5-16.79-37.5-37.5s16.79-37.5 37.5-37.5h325v-325c0-20.71 16.79-37.5 37.5-37.5s37.5 16.79 37.5 37.5v325h325c20.71 0 37.5 16.79 37.5 37.5s-16.79 37.5-37.5 37.5h-325z",fillRule:"nonzero"})),jz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgPlus"},e,{ref:r}),Me.createElement(Uz,null))),Iz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M500 888.889c-214.389 0-388.889-174.5-388.889-388.889S285.611 111.111 500 111.111 888.889 285.611 888.889 500 714.389 888.889 500 888.889m0-833.333c-245.444 0-444.444 199-444.444 444.444 0 245.444 199 444.444 444.444 444.444 245.444 0 444.444-199 444.444-444.444 0-245.444-199-444.444-444.444-444.444m6.456 222.222c-44.612 0-80 12.778-105.612 39.055-26.277 25.667-39.055 60.445-39.055 105.056v1c0 17.944 14.444 32.444 32.389 32.444 17.889 0 32.389-14.5 32.389-32.444 0-.389-.111-1-.111-1 0-26.945 5.444-48.222 16.444-62.889 12.222-17.111 32.333-25.667 59.889-25.667 21.944 0 39.055 6.111 51.222 18.334 11.611 12.222 17.778 28.722 17.778 50.055 0 15.89-5.556 30.5-16.556 44.556l-10.389 11.61c-37.777 33.556-60.333 59-69.61 75.668-13.834 24.944-11.334 48-11.334 48 0 17.888 14.556 32.388 32.444 32.388 17.945 0 29.778-12.333 32.39-32.388 0 0 3.333-18.667 10.055-30.89 5.5-10.944 14.055-21.388 25-31.11 29.389-25.056 46.444-40.945 51.889-47.667 14.666-19.5 22.555-44.556 22.555-74.445 0-36.61-12.166-65.944-35.944-87.333-24.445-21.944-56.167-32.333-95.833-32.333m-10.417 357.15c-12.778 0-23.222 3.666-31.111 12.222-9.222 7.889-13.5 18.333-13.5 31.111 0 12.222 4.278 22.611 13.5 31.167 7.889 8.5 18.333 12.778 31.11 12.778 12.279 0 23.223-4.278 32.39-12.167 8.5-8.611 12.778-18.945 12.778-31.778 0-12.778-4.278-23.222-12.778-31.111-8.556-8.556-19.556-12.222-32.39-12.222",fillRule:"evenodd"})),Hz=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgQuestionO"},e,{ref:r}),Me.createElement(Iz,null))),Vz=e=>Me.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Me.createElement("path",{d:"M119.415 524.046c-9.708-9.693-11.278-24.766-2.72-35.554l20.007-25.223c8.201-10.34 23.543-12.936 34.386-5.699l173.175 115.585c9.134 6.097 24.856 5.303 33.384-1.616l457.6-371.25c10.286-8.345 26.397-7.634 35.412 1.368l11.272 11.255c9.81 9.795 9.096 25.343-1.187 35.611l-491.14 490.414c-15.28 15.258-40.369 14.59-56.099-1.116l-214.09-213.775z",fillRule:"nonzero"})),OD=Me.forwardRef((e,r)=>Me.createElement(ls,Object.assign({name:"SvgSuccess"},e,{ref:r}),Me.createElement(Vz,null))),EZ="",[RD]=wn("cell-group"),$z=e=>{const r=ea(e,{border:!0}),{title:t,border:i,inset:l,card:f}=r,c=f||l,p=()=>Q("div",Object.assign({className:Re(RD({inset:c}),{[Cz]:!c&&i})},{children:r.children})),g=()=>t?Q("div",Object.assign({className:Re(RD("title"))},{children:t})):null;return Be("div",Object.assign({className:r.className,style:r.style},{children:[g(),p()]}))},[dd]=wn("cell"),eC=Object.assign(e=>{const r=()=>Jr(e.label)?Q("div",Object.assign({className:Re(dd("label"),e.labelClass)},{children:e.label})):null,t=()=>Jr(e.title)?Be("div",Object.assign({className:Re(dd("title"),e.titleClass),style:e.titleStyle},{children:[e.title,r()]})):null,i=()=>{const E=Jr(e.title);return Jr(e.children)||Jr(e.value)?Q("div",Object.assign({className:Re(dd("value",{alone:!E}),e.valueClass)},{children:Jr(e.children)?e.children:Q("span",{children:e.value})})):null},l=()=>e.icon?W.cloneElement(e.icon,{className:Re(dd("left-icon"))}):null,f=()=>{if(e.rightIcon)return e.rightIcon;if(e.isLink){const E=Re(dd("right-icon"));return e.arrowDirection==="left"?Q(Fz,{className:E}):e.arrowDirection==="up"?Q(Mz,{className:E}):e.arrowDirection==="down"?Q(Oz,{className:E}):Q(Bz,{className:E})}return null},{className:c,style:p,size:g,center:d,border:m=!0,isLink:C,required:b,onClick:x}=e,_=C||e.clickable,k={center:d,required:b,clickable:_,borderless:!m};return g&&(k[g]=!!g),Be("div",Object.assign({style:p,className:Re(dd(k),c),role:_?"button":void 0,onClick:x},{children:[l(),t(),i(),f(),e.extra]}))},{Group:$z}),AZ="",OZ="";function Pg(e,r){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Pg(e,r)}function FD(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Pg(e,r)}function Yz(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function qz(e,r){e.classList?e.classList.add(r):Yz(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function ND(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Gz(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=ND(e.className,r):e.setAttribute("class",ND(e.className&&e.className.baseVal||"",r))}const MD={disabled:!1};var Kz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.number,wt.exports.shape({enter:wt.exports.number,exit:wt.exports.number,appear:wt.exports.number}).isRequired]):null,Wz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.string,wt.exports.shape({enter:wt.exports.string,exit:wt.exports.string,active:wt.exports.string}),wt.exports.shape({enter:wt.exports.string,enterDone:wt.exports.string,enterActive:wt.exports.string,exit:wt.exports.string,exitDone:wt.exports.string,exitActive:wt.exports.string})]):null;const PD=W.createContext(null);var op="unmounted",Fc="exited",Nc="entering",hd="entered",tC="exiting",ss=function(e){FD(r,e);function r(i,l){var f;f=e.call(this,i,l)||this;var c=l,p=c&&!c.isMounting?i.enter:i.appear,g;return f.appearStatus=null,i.in?p?(g=Fc,f.appearStatus=Nc):g=hd:i.unmountOnExit||i.mountOnEnter?g=op:g=Fc,f.state={status:g},f.nextCallback=null,f}r.getDerivedStateFromProps=function(l,f){var c=l.in;return c&&f.status===op?{status:Fc}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(l){var f=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==Nc&&c!==hd&&(f=Nc):(c===Nc||c===hd)&&(f=tC)}this.updateStatus(!1,f)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var l=this.props.timeout,f,c,p;return f=c=p=l,l!=null&&typeof l!="number"&&(f=l.exit,c=l.enter,p=l.appear!==void 0?l.appear:c),{exit:f,enter:c,appear:p}},t.updateStatus=function(l,f){l===void 0&&(l=!1),f!==null?(this.cancelNextCallback(),f===Nc?this.performEnter(l):this.performExit()):this.props.unmountOnExit&&this.state.status===Fc&&this.setState({status:op})},t.performEnter=function(l){var f=this,c=this.props.enter,p=this.context?this.context.isMounting:l,g=this.props.nodeRef?[p]:[fg.findDOMNode(this),p],d=g[0],m=g[1],C=this.getTimeouts(),b=p?C.appear:C.enter;if(!l&&!c||MD.disabled){this.safeSetState({status:hd},function(){f.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:Nc},function(){f.props.onEntering(d,m),f.onTransitionEnd(b,function(){f.safeSetState({status:hd},function(){f.props.onEntered(d,m)})})})},t.performExit=function(){var l=this,f=this.props.exit,c=this.getTimeouts(),p=this.props.nodeRef?void 0:fg.findDOMNode(this);if(!f||MD.disabled){this.safeSetState({status:Fc},function(){l.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:tC},function(){l.props.onExiting(p),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:Fc},function(){l.props.onExited(p)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(l,f){f=this.setNextCallback(f),this.setState(l,f)},t.setNextCallback=function(l){var f=this,c=!0;return this.nextCallback=function(p){c&&(c=!1,f.nextCallback=null,l(p))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},t.onTransitionEnd=function(l,f){this.setNextCallback(f);var c=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this),p=l==null&&!this.props.addEndListener;if(!c||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var g=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],d=g[0],m=g[1];this.props.addEndListener(d,m)}l!=null&&setTimeout(this.nextCallback,l)},t.render=function(){var l=this.state.status;if(l===op)return null;var f=this.props,c=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var p=_b(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(PD.Provider,{value:null},typeof c=="function"?c(l,p):W.cloneElement(W.Children.only(c),p))},r}(W.Component);ss.contextType=PD,ss.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:wt.exports.shape({current:typeof Element>"u"?wt.exports.any:function(e,r,t,i,l,f){var c=e[r];return wt.exports.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(e,r,t,i,l,f)}}),children:wt.exports.oneOfType([wt.exports.func.isRequired,wt.exports.element.isRequired]).isRequired,in:wt.exports.bool,mountOnEnter:wt.exports.bool,unmountOnExit:wt.exports.bool,appear:wt.exports.bool,enter:wt.exports.bool,exit:wt.exports.bool,timeout:function(r){var t=Kz;r.addEndListener||(t=t.isRequired);for(var i=arguments.length,l=new Array(i>1?i-1:0),f=1;f<i;f++)l[f-1]=arguments[f];return t.apply(void 0,[r].concat(l))},addEndListener:wt.exports.func,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}:{};function pd(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pd,onEntering:pd,onEntered:pd,onExit:pd,onExiting:pd,onExited:pd},ss.UNMOUNTED=op,ss.EXITED=Fc,ss.ENTERING=Nc,ss.ENTERED=hd,ss.EXITING=tC;const BD=ss;var Qz=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return qz(r,i)})},nC=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return Gz(r,i)})},rC=function(e){FD(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(p,g){var d=i.resolveArguments(p,g),m=d[0],C=d[1];i.removeClasses(m,"exit"),i.addClass(m,C?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(p,g)},i.onEntering=function(p,g){var d=i.resolveArguments(p,g),m=d[0],C=d[1],b=C?"appear":"enter";i.addClass(m,b,"active"),i.props.onEntering&&i.props.onEntering(p,g)},i.onEntered=function(p,g){var d=i.resolveArguments(p,g),m=d[0],C=d[1],b=C?"appear":"enter";i.removeClasses(m,b),i.addClass(m,b,"done"),i.props.onEntered&&i.props.onEntered(p,g)},i.onExit=function(p){var g=i.resolveArguments(p),d=g[0];i.removeClasses(d,"appear"),i.removeClasses(d,"enter"),i.addClass(d,"exit","base"),i.props.onExit&&i.props.onExit(p)},i.onExiting=function(p){var g=i.resolveArguments(p),d=g[0];i.addClass(d,"exit","active"),i.props.onExiting&&i.props.onExiting(p)},i.onExited=function(p){var g=i.resolveArguments(p),d=g[0];i.removeClasses(d,"exit"),i.addClass(d,"exit","done"),i.props.onExited&&i.props.onExited(p)},i.resolveArguments=function(p,g){return i.props.nodeRef?[i.props.nodeRef.current,p]:[p,g]},i.getClassNames=function(p){var g=i.props.classNames,d=typeof g=="string",m=d&&g?g+"-":"",C=d?""+m+p:g[p],b=d?C+"-active":g[p+"Active"],x=d?C+"-done":g[p+"Done"];return{baseClassName:C,activeClassName:b,doneClassName:x}},i}var t=r.prototype;return t.addClass=function(l,f,c){var p=this.getClassNames(f)[c+"ClassName"],g=this.getClassNames("enter"),d=g.doneClassName;f==="appear"&&c==="done"&&d&&(p+=" "+d),c==="active"&&l&&l.scrollTop,p&&(this.appliedClasses[f][c]=p,Qz(l,p))},t.removeClasses=function(l,f){var c=this.appliedClasses[f],p=c.base,g=c.active,d=c.done;this.appliedClasses[f]={},p&&nC(l,p),g&&nC(l,g),d&&nC(l,d)},t.render=function(){var l=this.props;l.classNames;var f=_b(l,["classNames"]);return W.createElement(BD,Nr({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(W.Component);rC.defaultProps={classNames:""},rC.propTypes=process.env.NODE_ENV!=="production"?Nr({},BD.propTypes,{classNames:Wz,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}):{};const LD=rC;function pn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const RZ="",[Zz]=wn("overlay"),Xz=e=>{const r=W.useRef(null),t=ea(e,{stopPropagation:["click"],lockScroll:!0,duration:300}),{visible:i,duration:l}=t,f=p=>{t.lockScroll&&q2(p,!0)},c=()=>{const p=Object.assign(Object.assign({zIndex:t.zIndex!==void 0?+t.zIndex:void 0,touchAction:t.lockScroll&&"none"},t.style),t.customStyle);return Jr(l)&&(p.animationDuration=`${l}ms`),uD(t.stopPropagation,Q("div",Object.assign({ref:r,style:p,onClick:g=>{var d;g.target===g.currentTarget&&((d=t.onClick)===null||d===void 0||d.call(t,g))},className:Re(Zz(),t.className)},{children:t.children})))};return W2("touchmove",f,{target:r}),Q(LD,Object.assign({nodeRef:r,mountOnEnter:!0,unmountOnExit:!0,in:i,timeout:l,classNames:"rv-fade"},{children:c()}))};function Jz(e){const{interceptor:r,args:t,done:i,canceled:l}=e;if(r){const f=r.apply(null,t||[]);IL(f)?f.then(c=>{c?i():l&&l()}).catch(Mi):f?i():l&&l()}else i()}function aC(e){return(typeof e=="function"?e():e)||document.body}function Bg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function eU(e,r){if(Bg()&&e){const t=aC(e);return tu.exports.createPortal(r,t)}return r}const tU=W.createContext({});let zD=!1;if(Bg())try{const e={};Object.defineProperty(e,"passive",{get(){zD=!0}}),window.addEventListener("test-passive",null,e)}catch{}let lp=0;const UD="rv-overflow-hidden";function nU(e,r){const t=_D(),i=c=>{t.move(c);const p=t.deltaY.current>0?"10":"01",g=cz(c.target,e.current);if(!g)return;const{scrollHeight:d,offsetHeight:m,scrollTop:C}=g;let b="11";C===0?b=m>=d?"00":"01":C+m>=d&&(b="10"),b!=="11"&&t.isVertical()&&!(parseInt(b,2)&parseInt(p,2))&&c.cancelable&&c.preventDefault()},l=()=>{document.addEventListener("touchstart",t.start),document.addEventListener("touchmove",i,zD?{passive:!1}:!1),lp||document.body.classList.add(UD),lp++},f=()=>{lp&&(document.removeEventListener("touchstart",t.start),document.removeEventListener("touchmove",i),lp--,lp||document.body.classList.remove(UD))};W.useEffect(()=>{if(r)return l(),()=>{f()}},[r])}let jD=2e3;const[Lg]=wn("popup"),sp=W.forwardRef((e,r)=>{var t;const i=ea(e,{duration:300,overlay:!0,lockScroll:!0,position:"center",closeIcon:Q(J2,{}),closeIconPosition:"top-right",closeOnClickOverlay:!0,stopPropagation:["click"],teleport:()=>document.body}),{round:l,closeable:f,title:c,description:p,children:g,duration:d,closeIcon:m,position:C}=i,b=W.useRef(!1),x=W.useRef((t=i.zIndex)!==null&&t!==void 0?t:jD),_=W.useRef(),[k,E]=W.useState(i.visible),[A,T]=W.useState(k),D=W.useMemo(()=>{const V=Object.assign({zIndex:x.current},i.style);if(Jr(i.duration)){const K=i.position==="center"?"animationDuration":"transitionDuration";V[K]=`${i.duration}ms`}return V},[x.current,i.position,i.style,i.duration]),R=()=>{var V;i.zIndex!==void 0?x.current=+i.zIndex:x.current=jD++,b.current=!0,(V=i.onOpen)===null||V===void 0||V.call(i)},N=()=>{Jz({interceptor:i.beforeClose,args:["close"],done:()=>{var V;b.current=!1,(V=i.onClose)===null||V===void 0||V.call(i)}})},z=V=>{var K;(K=i.onClickOverlay)===null||K===void 0||K.call(i,V),i.closeOnClickOverlay&&N()},M=()=>i.overlay?Q(Xz,{visible:k,className:i.overlayClass,customStyle:i.overlayStyle,zIndex:x.current,duration:d,onClick:z}):null,I=V=>{i.onClickCloseIcon&&i.onClickCloseIcon(V),N()},Y=()=>{if(f){const{closeIconPosition:V}=i;return m?Q("div",Object.assign({className:Re(Lg("close-icon",V)),onClick:I},{children:m})):null}return null},B=()=>c?Q("div",Object.assign({className:Re(Lg("title"))},{children:c})):null,P=()=>p?Q("div",Object.assign({className:Re(Lg("description"))},{children:p})):null,U=()=>{const{safeAreaInsetBottom:V}=i;return uD(i.stopPropagation,Be("div",Object.assign({ref:_,style:Object.assign(Object.assign({},D),{display:!k&&!A?"none":void 0}),className:Re(Lg({round:l,[C]:C}),{"rv-safe-area-bottom":V},i.className),onClick:i.onClick},{children:[B(),P(),g,Y()]})))},H=()=>{const{transition:V,destroyOnClose:K,forceRender:ee}=i,J=C==="center"?"rv-fade":`rv-popup-slide-${C}`;return Q(LD,Object.assign({in:k,nodeRef:_,timeout:d,classNames:V||J,mountOnEnter:!ee,unmountOnExit:K,onEnter:R,onEntered:i.onOpened,onExited:()=>{var q;T(!1),(q=i.onClosed)===null||q===void 0||q.call(i)}},{children:U()}))};return W2("popstate",()=>{i.closeOnPopstate&&N()}),tp(()=>{k&&T(!0)},[k]),tp(()=>{E(i.visible)},[i.visible]),nU(_,k&&i.lockScroll),W.useImperativeHandle(r,()=>({popupRef:_})),eU(i.teleport,Be(tU.Provider,Object.assign({value:{visible:k}},{children:[M(),H()]})))}),PZ="",ID=W.createContext({}),[rU]=wn("action-bar"),aU=e=>{const r=ea(e,{safeAreaInsetBottom:!0}),t=W.useMemo(()=>W.Children.toArray(r.children),[r.children]);return Q(ID.Provider,Object.assign({value:{parent:{children:t}}},{children:Q("div",Object.assign({className:Re(r.className,rU(),{"rv-safe-area-bottom":r.safeAreaInsetBottom}),style:r.style},{children:W.Children.toArray(r.children).filter(Boolean).map((i,l)=>W.cloneElement(i,{index:l}))}))}))},[HD]=wn("action-bar-icon"),iU=e=>{const r=()=>{const{badge:t,icon:i}=e;return i?Q(Dz,Object.assign({},t,{className:Re(HD("icon"))},{children:i})):null};return Be("div",Object.assign({role:"button",className:Re(e.className,HD()),style:e.style,tabIndex:0,onClick:e.onClick},{children:[r(),e.children||e.text]}))},[oU]=wn("action-bar-button"),lU=Object.assign(e=>{const{type:r,icon:t,text:i,color:l,loading:f,disabled:c,index:p}=e,{parent:g}=W.useContext(ID),d=W.useMemo(()=>{if(g){const C=g.children[p-1];return!(C&&"isButton"in C.type)}return!1},[p,g]),m=W.useMemo(()=>{if(g){const C=g.children[p+1];return!(C&&"isButton"in C.type)}return!1},[p,g]);return Q(ip,Object.assign({className:Re(e.className,oU([r,{last:m,first:d}])),style:e.style,size:"large",type:r,icon:t,color:l,loading:f,disabled:c,onClick:e.onClick},{children:e.children?e.children:i}))},{isButton:!0}),iC=Object.assign(aU,{Icon:iU,Button:lU});function sU(e,r,t){const i=r[t];Jr(i)&&(!Object.prototype.hasOwnProperty.call(e,t)||!cd(i)?e[t]=i:e[t]=VD(Object(e[t]),r[t]))}function VD(e,r){return Object.keys(r).forEach(t=>{sU(e,r,t)}),e}const uU={locale:VD({name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanPicker:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新...",loading:"加载中..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌信息"},vanAddressList:{add:"新增地址"}},{})},vd=W.createContext(uU),[Co]=wn("dialog"),$D=e=>{const{locale:r}=W.useContext(vd),t=ea(e,{transition:"rv-dialog-bounce",showConfirmButton:!0,closeOnPopstate:!0}),{width:i,title:l,theme:f,visible:c,message:p,className:g,messageAlign:d,closeOnClickOverlay:m,onClickCloseIcon:C}=t,b=$a(t,["width","title","theme","visible","message","className","messageAlign","closeOnClickOverlay","onClickCloseIcon"]),x=()=>t.title?Q("div",Object.assign({className:Re(Co("header",{isolated:!t.message&&!t.children}))},{children:l})):null,_=()=>t.children?Q("div",Object.assign({className:Re(Co("content"))},{children:t.children})):p?Q("div",Object.assign({className:Re(Co("content",{isolated:!l}))},{children:Q("div",Object.assign({className:Re(Co("message",{"has-title":l,[d]:d}))},{children:p}))})):null,k=()=>{var T,D,R,N,z,M;return Be("div",Object.assign({className:Re(yz,Co("footer"))},{children:[t.showCancelButton&&Q(ip,{size:"large",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),style:{color:t.cancelButtonColor},loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(ip,{size:"large",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm"),{[xz]:t.showCancelButton}),round:f==="round-button"||void 0,style:{color:t.confirmButtonColor},loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},E=()=>{var T,D,R,N,z,M;return Be(iC,Object.assign({className:Re(Co("footer"))},{children:[t.showCancelButton&&Q(iC.Button,{type:"warning",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),color:t.cancelButtonColor,loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(iC.Button,{type:"danger",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm")),color:t.confirmButtonColor,loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},A=()=>t.footer?t.footer:t.theme==="round-button"?E():k();return Be(sp,Object.assign({},b,{visible:c,className:Re(Co([f]),g),style:{width:dl(i)},"aria-labelledby":l||p,closeOnClickOverlay:m,onClickCloseIcon:C,onClose:t.onClose,onClosed:t.onClosed},{children:[x(),_(),A()]}))};Number((W.version||"").split(".")[0]);const cU=Number((tu.exports.version||"").split(".")[0]),zg=Object.assign({},v9),{render:fU,unmountComponentAtNode:dU}=zg;let Ug;try{cU>=18&&zg.createRoot&&(Ug=zg.createRoot)}catch{}function YD(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:r}=zg;r&&typeof r=="object"&&(r.usingClientEntryPoint=e)}const jg="__react_vant_root__";function hU(e,r){fU(e,r)}function pU(e,r){YD(!0);const t=r[jg]||Ug(r);YD(!1),t.render(e),r[jg]=t}function qD(e,r){if(Ug){pU(e,r);return}hU(e,r)}function vU(e){return dU(e)}function mU(e){return Z2(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var r;(r=e[jg])===null||r===void 0||r.unmount(),delete e[jg]})})}function GD(e){return Ug?mU(e):vU(e)}const md=$D;md.show=e=>{if(!Bg())return null;const r={overlay:!0,closeable:!1,closeIcon:Q(J2,{}),lockScroll:!0,transition:"rv-dialog-bounce",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1},{onClosed:t,onCancel:i=Mi,onConfirm:l=Mi,onClose:f=Mi,cancelProps:c,confirmProps:p}=e,g=$a(e,["onClosed","onCancel","onConfirm","onClose","cancelProps","confirmProps"]),d=aC(e.teleport),m=document.createElement("div");d.appendChild(m);let C=Mi;return qD(Q(()=>{const[x,_]=W.useState(!1),[k,E]=W.useState(!1),[A,T]=W.useState(!1);W.useEffect(()=>{_(!0)},[]),C=()=>{_(!1),f&&f()};const D=()=>{t&&t(),GD(m)&&m.parentNode&&m.parentNode.removeChild(m)},R=z=>Z2(void 0,void 0,void 0,function*(){const M=setTimeout(()=>T(!0));(yield l(z))!==!1?(clearTimeout(M),C()):(clearTimeout(M),T(!1))}),N=(z,M)=>Z2(void 0,void 0,void 0,function*(){if(M){C();return}const I=setTimeout(()=>E(!0));(yield i(z))!==!1?(clearTimeout(I),C()):(clearTimeout(I),E(!1))});return Q($D,Object.assign({},r,g,{visible:x,teleport:()=>m,cancelProps:Object.assign({loading:k},c),confirmProps:Object.assign({loading:A},p),onClose:C,onCancel:N,onConfirm:R,onClosed:D}))},{}),m),C},md.alert=e=>{const{onConfirm:r=Mi}=e;return new Promise(t=>{md.show(Object.assign(Object.assign({},e),{onConfirm:i=>{r(i),t(i)}}))})},md.confirm=e=>{const{onCancel:r=Mi,onConfirm:t=Mi}=e;return new Promise((i,l)=>{md.show(Object.assign(Object.assign({showCancelButton:!0},e),{onCancel:f=>{r(f),l()},onConfirm:f=>{t(f),i(!0)}}))})};const gU=md,[up]=wn("input"),yU=W.forwardRef((e,r)=>{const t=ea(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),i=W.useRef(),[l,f]=W.useState(!1),c=W.useRef(!1),[p,g]=np(t),{className:d,style:m,align:C,type:b,name:x,placeholder:_,disabled:k,readOnly:E,maxLength:A,autoFocus:T}=t,D=()=>{i!=null&&i.current&&i.current.focus()},R=()=>{i!=null&&i.current&&i.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{g("")},focus:D,blur:R,get nativeElement(){return i.current}}));const N=W.useMemo(()=>{if(t.clearable&&!E){const U=p!=="",H=t.clearTrigger==="always"||t.clearTrigger==="focus"&&l;return U&&H}return!1},[p,t.clearTrigger,l]),z=U=>{var H;let V=U;if(!c.current&&(Jr(A)&&V.length>+A&&(V=V.slice(0,A),(H=t.onOverlimit)===null||H===void 0||H.call(t)),b==="number"||b==="digit")){const K=b==="number";V=nz(V,K,K)}g(V)},M=U=>{var H;f(!0),(H=t.onFocus)===null||H===void 0||H.call(t,U),E&&R()},I=U=>{var H;f(!1),(H=t.onBlur)===null||H===void 0||H.call(t,U),dD()},Y=U=>{var H;(U.key==="Enter"||+U.charCode==13)&&(q2(U),t.type==="search"&&R()),(H=t.onKeyPress)===null||H===void 0||H.call(t,U)},B=()=>{let U=b,H;return b==="number"&&(U="text",H="decimal"),b==="digit"&&(U="tel",H="numeric"),Q("input",{value:p,type:U,inputMode:H,ref:i,name:x,className:Re(up("control")),disabled:k,autoFocus:T,readOnly:E,placeholder:_||"",onBlur:I,onFocus:M,onChange:V=>{var K;return z((K=V==null?void 0:V.currentTarget)===null||K===void 0?void 0:K.value)},onKeyPress:Y,autoCapitalize:t.autoCapitalize,autoCorrect:t.autoCorrect,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onCompositionStart:V=>{var K;c.current=!0,(K=t.onCompositionStart)===null||K===void 0||K.call(t,V)},onCompositionEnd:V=>{var K,ee;c.current=!1,(K=t.onCompositionEnd)===null||K===void 0||K.call(t,V),z((ee=V==null?void 0:V.currentTarget)===null||ee===void 0?void 0:ee.value)},onClick:t.onClick})},P=U=>{var H;g(""),(H=t.onClear)===null||H===void 0||H.call(t,U)};return Be("div",Object.assign({className:Re(up([C]),d),style:m},{children:[t.prefix&&Q("div",Object.assign({className:Re(up("prefix"))},{children:t.prefix})),B(),N&&W.cloneElement(t.clearIcon||Q(Mg,{}),{className:Re(up("clear")),onTouchStart:P}),t.suffix&&Q("div",Object.assign({className:Re(up("suffix"))},{children:t.suffix}))]}))}),[cp]=wn("textarea"),xU=W.forwardRef((e,r)=>{const t=ea(e,{rows:2,clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),[i,l]=W.useState(!1),f=W.useRef(),c=W.useRef(!1),[p,g]=np(t),{className:d,style:m,name:C,rows:b,placeholder:x,disabled:_,readOnly:k,maxLength:E,showWordLimit:A,autoFocus:T}=t,D=()=>{f!=null&&f.current&&f.current.focus()},R=()=>{f!=null&&f.current&&f.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{g("")},focus:D,blur:R,get nativeElement(){return f.current}}));const N=()=>{const H=f.current;if(!H)return;H.style.height="auto";let V=H.scrollHeight;if(cd(t.autoSize)){const{maxHeight:K,minHeight:ee}=t.autoSize;K&&(V=Math.min(V,K)),ee&&(V=Math.max(V,ee))}V&&(H.style.height=`${V}px`)};W.useEffect(()=>{N()},[p]);const z=W.useMemo(()=>cp("control",[{"min-height":!t.autoSize,clear:t.clearable}]),[t.autoSize]),M=H=>{var V;let K=H;c.current||Jr(E)&&K.length>+E&&(K=K.slice(0,E),(V=t.onOverlimit)===null||V===void 0||V.call(t)),g(K)},I=H=>{var V;l(!0),(V=t.onFocus)===null||V===void 0||V.call(t,H),k&&R()},Y=H=>{var V;l(!1),(V=t.onBlur)===null||V===void 0||V.call(t,H),dD()},B=()=>{if(A){const H=(p?`${p}`:"").length;return Q("div",Object.assign({className:Re(cp("word-limit"))},{children:typeof A=="function"?A({currentCount:H,maxLength:E}):Be(en,{children:[Q("span",Object.assign({className:Re(cp("word-num"))},{children:H})),E?`/${E}`:!1]})}))}return null},P=H=>{var V;g(""),(V=t.onClear)===null||V===void 0||V.call(t,H)},U=W.useMemo(()=>{if(t.clearable&&!k){const H=p!=="",V=t.clearTrigger==="always"||t.clearTrigger==="focus"&&i;return H&&V}return!1},[p,t.clearTrigger,i]);return Be("div",Object.assign({className:Re(cp(),d),style:m},{children:[Q("textarea",{ref:f,name:C,rows:b,className:Re(z),value:p,disabled:_,autoFocus:T,readOnly:k,placeholder:x||"",onBlur:Y,onFocus:I,onChange:H=>{var V;return M((V=H==null?void 0:H.currentTarget)===null||V===void 0?void 0:V.value)},onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,autoComplete:t.autoComplete,onCompositionStart:H=>{var V;c.current=!0,(V=t.onCompositionStart)===null||V===void 0||V.call(t,H)},onCompositionEnd:H=>{var V,K;c.current=!1,(V=t.onCompositionEnd)===null||V===void 0||V.call(t,H),M((K=H==null?void 0:H.currentTarget)===null||K===void 0?void 0:K.value)},onClick:t.onClick}),U&&W.cloneElement(t.clearIcon,{className:Re(cp("clear")),onTouchStart:P}),B()]}))}),WZ="",QZ="",cu=Object.assign(yU,{TextArea:xU}),[Pi]=wn("field"),bU=W.forwardRef((e,r)=>{var t;const i=ea(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",formatTrigger:"onChange",defaultValue:""}),l=W.useRef(null),f=W.useRef(null),c=i.type==="textarea"?f:l,p=()=>{c.current&&c.current.focus()},g=()=>{c.current&&c.current.blur()},d=()=>{c.current&&c.current.clear()};W.useImperativeHandle(r,()=>({focus:p,blur:g,clear:d,get nativeElement(){return c.current.nativeElement}}));const m=$=>Jr(i[$])?i[$]:null,C=()=>{const $=m("labelWidth");return $?{width:dl($)}:{}},b=($,ne="onChange")=>{const{formatTrigger:oe,formatter:ae}=i;return ae&&ne===oe?ae($):$},x=$=>{var ne;(ne=i.onChange)===null||ne===void 0||ne.call(i,b($))},_=()=>{const{value:$,defaultValue:ne,align:oe,type:ae,placeholder:se,name:ve,maxLength:we,disabled:ce,readOnly:ye,clearable:De,clearIcon:Pe,clearTrigger:ke,autoFocus:ze,onClear:Ne,onBlur:dt,onFocus:Xe,onKeyPress:Zt,onOverlimit:sn}=i;if(Jr(i.children))return Q("div",Object.assign({className:Re(Pi("children"))},{children:i.children}));const kn={value:$,onChange:x,placeholder:se,name:ve,defaultValue:ne,disabled:ce,clearable:De,clearIcon:Pe,clearTrigger:ke,onClear:Ne,onBlur:dt,onFocus:Xe,onKeyPress:Zt,onOverlimit:sn,autoFocus:ze,readOnly:ye,maxLength:we,onClick:i.onClickInput};return ae==="textarea"?Q(cu.TextArea,Object.assign({ref:f,autoSize:i.autoSize,showWordLimit:i.showWordLimit,rows:i.rows},kn)):Q(cu,Object.assign({ref:l,type:ae,align:oe},kn))},k=()=>{const{leftIcon:$,onClickLeftIcon:ne}=i;return $?Q("div",Object.assign({className:Re(Pi("left-icon")),onClick:ne},{children:$})):null},E=()=>{const{rightIcon:$,onClickRightIcon:ne}=i;return $?Q("div",Object.assign({className:Re(Pi("right-icon")),onClick:ne},{children:$})):null},A=()=>{const $=i.errorMessage;return $?Q("div",Object.assign({className:Re(Pi("error-message"))},{children:$})):null},T=()=>i.intro?Q("div",Object.assign({className:Re(Pi("intro"))},{children:i.intro})):null,D=()=>{const{tooltip:$}=i;if($){let ne=Q(Hz,{}),oe={message:$};if(!(W.isValidElement($)||typeof $=="string")){const ae=$,{icon:se}=ae,ve=$a(ae,["icon"]);ne=se||ne,oe=ve}return Q("div",Object.assign({className:Re(Pi("tooltip")),onClick:()=>gU.show(oe)},{children:ne}))}return null},R=()=>{const{label:$,colon:ne}=i;return $?Be(en,{children:[$,!!ne&&":",D()]}):null},{size:N,center:z,border:M,isLink:I,required:Y,clickable:B,labelAlign:P,className:U,labelClass:H,valueClass:V,controlAlign:K,arrowDirection:ee,disabled:J,titleStyle:q,error:te}=i,X=(t=i.suffix)!==null&&t!==void 0?t:i.button;return Be(eC,Object.assign({title:R(),size:N,icon:k(),center:z,border:M,isLink:I,required:Y,clickable:B,extra:i.extra,titleStyle:Object.assign(Object.assign({},C()),q),valueClass:Re(Pi("value",[K]),V),titleClass:Re(Pi("label",P),H),arrowDirection:ee,onClick:i.onClick,style:i.style,className:Re(Pi({error:te,disabled:J,[`label-${P}`]:P}),U)},{children:[Be("div",Object.assign({className:Re(Pi("body"))},{children:[i.prefix&&Q("div",Object.assign({className:Re(Pi("prefix"))},{children:i.prefix})),Q("div",Object.assign({className:Re(Pi("control-wrapper"))},{children:_()})),E(),X&&Q("div",Object.assign({className:Re(Pi("suffix"))},{children:X}))]})),A(),T()]}))}),CU=Symbol("field"),oC=Object.assign(bU,{[_z]:CU});function wU(e,r,t){return Math.max(r,Math.min(e,t))}const Ea={toVector(e,r){return e===void 0&&(e=r),Array.isArray(e)?e:[e,e]},add(e,r){return[e[0]+r[0],e[1]+r[1]]},sub(e,r){return[e[0]-r[0],e[1]-r[1]]},addTo(e,r){e[0]+=r[0],e[1]+=r[1]},subTo(e,r){e[0]-=r[0],e[1]-=r[1]}};function KD(e,r,t){return r===0||Math.abs(r)===1/0?Math.pow(e,t*5):e*r*t/(r+t*e)}function WD(e,r,t,i=.15){return i===0?wU(e,r,t):e<r?-KD(r-e,t-r,i)+r:e>t?+KD(e-t,t-r,i)+t:e}function _U(e,[r,t],[i,l]){const[[f,c],[p,g]]=e;return[WD(r,f,c,i),WD(t,p,g,l)]}function si(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function QD(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function ar(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?QD(Object(t),!0).forEach(function(i){si(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):QD(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}const ZD={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function XD(e){return e?e[0].toUpperCase()+e.slice(1):""}const SU=["enter","leave"];function EU(e=!1,r){return e&&!SU.includes(r)}function DU(e,r="",t=!1){const i=ZD[e],l=i&&i[r]||r;return"on"+XD(e)+XD(l)+(EU(t,l)?"Capture":"")}const kU=["gotpointercapture","lostpointercapture"];function TU(e){let r=e.substring(2).toLowerCase();const t=!!~r.indexOf("passive");t&&(r=r.replace("passive",""));const i=kU.includes(r)?"capturecapture":"capture",l=!!~r.indexOf(i);return l&&(r=r.replace("capture","")),{device:r,capture:l,passive:t}}function AU(e,r=""){const t=ZD[e],i=t&&t[r]||r;return e+i}function Ig(e){return"touches"in e}function JD(e){return Ig(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function OU(e){return Array.from(e.touches).filter(r=>{var t,i;return r.target===e.currentTarget||((t=e.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,r.target))})}function RU(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function ek(e){return Ig(e)?RU(e)[0]:e}function FU(e){return OU(e).map(r=>r.identifier)}function lC(e){const r=ek(e);return Ig(e)?r.identifier:r.pointerId}function tk(e){const r=ek(e);return[r.clientX,r.clientY]}function NU(e){const r={};if("buttons"in e&&(r.buttons=e.buttons),"shiftKey"in e){const{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f}=e;Object.assign(r,{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f})}return r}function Hg(e,...r){return typeof e=="function"?e(...r):e}function MU(){}function PU(...e){return e.length===0?MU:e.length===1?e[0]:function(){let r;for(const t of e)r=t.apply(this,arguments)||r;return r}}function nk(e,r){return Object.assign({},r,e||{})}const BU=32;class LU{constructor(r,t,i){this.ctrl=r,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:t,ingKey:i,args:l}=this;t[i]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=l,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=r.target,t.currentTarget=r.currentTarget,t.lastOffset=i.from?Hg(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=r.timeStamp}computeValues(r){const t=this.state;t._values=r,t.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:t,config:i,shared:l}=this;t.args=this.args;let f=0;if(r&&(t.event=r,i.preventDefault&&r.cancelable&&t.event.preventDefault(),t.type=r.type,l.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,l.locked=!!document.pointerLockElement,Object.assign(l,NU(r)),l.down=l.pressed=l.buttons%2===1||l.touches>0,f=r.timeStamp-t.timeStamp,t.timeStamp=r.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const z=t._delta.map(Math.abs);Ea.addTo(t._distance,z)}this.axisIntent&&this.axisIntent(r);const[c,p]=t._movement,[g,d]=i.threshold,{_step:m,values:C}=t;if(i.hasCustomTransform?(m[0]===!1&&(m[0]=Math.abs(c)>=g&&C[0]),m[1]===!1&&(m[1]=Math.abs(p)>=d&&C[1])):(m[0]===!1&&(m[0]=Math.abs(c)>=g&&Math.sign(c)*g),m[1]===!1&&(m[1]=Math.abs(p)>=d&&Math.sign(p)*d)),t.intentional=m[0]!==!1||m[1]!==!1,!t.intentional)return;const b=[0,0];if(i.hasCustomTransform){const[z,M]=C;b[0]=m[0]!==!1?z-m[0]:0,b[1]=m[1]!==!1?M-m[1]:0}else b[0]=m[0]!==!1?c-m[0]:0,b[1]=m[1]!==!1?p-m[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(b);const x=t.offset,_=t._active&&!t._blocked||t.active;_&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=l[this.ingKey]=t._active,r&&(t.first&&("bounds"in i&&(t._bounds=Hg(i.bounds,t)),this.setup&&this.setup()),t.movement=b,this.computeOffset()));const[k,E]=t.offset,[[A,T],[D,R]]=t._bounds;t.overflow=[k<A?-1:k>T?1:0,E<D?-1:E>R?1:0],t._movementBound[0]=t.overflow[0]?t._movementBound[0]===!1?t._movement[0]:t._movementBound[0]:!1,t._movementBound[1]=t.overflow[1]?t._movementBound[1]===!1?t._movement[1]:t._movementBound[1]:!1;const N=t._active?i.rubberband||[0,0]:[0,0];if(t.offset=_U(t._bounds,t.offset,N),t.delta=Ea.sub(t.offset,x),this.computeMovement(),_&&(!t.last||f>BU)){t.delta=Ea.sub(t.offset,x);const z=t.delta.map(Math.abs);Ea.addTo(t.distance,z),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&f>0&&(t.velocity=[z[0]/f,z[1]/f])}}emit(){const r=this.state,t=this.shared,i=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!i.triggerAllEvents)return;const l=this.handler(ar(ar(ar({},t),r),{},{[this.aliasKey]:r.values}));l!==void 0&&(r.memo=l)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function zU([e,r],t){const i=Math.abs(e),l=Math.abs(r);if(i>l&&i>t)return"x";if(l>i&&l>t)return"y"}class UU extends LU{constructor(...r){super(...r),si(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Ea.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Ea.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const t=this.state,i=this.config;if(!t.axis&&r){const l=typeof i.axisThreshold=="object"?i.axisThreshold[JD(r)]:i.axisThreshold;t.axis=zU(t._movement,l)}t._blocked=(i.lockDirection||!!i.axis)&&!t.axis||!!i.axis&&i.axis!==t.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const rk=e=>e,ak=.15,sC={enabled(e=!0){return e},eventOptions(e,r,t){return ar(ar({},t.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ak,ak];case!1:return[0,0];default:return Ea.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Ea.toVector(e)},transform(e,r,t){const i=e||t.shared.transform;if(this.hasCustomTransform=!!i,process.env.NODE_ENV==="development"){const l=i||rk;return f=>{const c=l(f);return!isFinite(c[0])||isFinite(c[1]),c}}return i||rk},threshold(e){return Ea.toVector(e,0)}};process.env.NODE_ENV==="development"&&Object.assign(sC,{domTarget(e){if(e!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(e){if(e!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(e){if(e!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const jU=0,fp=ar(ar({},sC),{},{axis(e,r,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(e=jU){return e},bounds(e={}){if(typeof e=="function")return f=>fp.bounds(e(f));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:r=-1/0,right:t=1/0,top:i=-1/0,bottom:l=1/0}=e;return[[r,t],[i,l]]}}),Vg=10,ik={ArrowRight:(e=1)=>[Vg*e,0],ArrowLeft:(e=1)=>[-Vg*e,0],ArrowUp:(e=1)=>[0,-Vg*e],ArrowDown:(e=1)=>[0,Vg*e]};class IU extends UU{constructor(...r){super(...r),si(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const t=r._bounds.getBoundingClientRect(),i=r.currentTarget.getBoundingClientRect(),l={left:t.left-i.left+r.offset[0],right:t.right-i.right+r.offset[0],top:t.top-i.top+r.offset[1],bottom:t.bottom-i.bottom+r.offset[1]};r._bounds=fp.bounds(l)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const t=this.config,i=this.state;if(r.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(r.buttons):t.pointerButtons!==-1&&t.pointerButtons!==r.buttons))return;const l=this.ctrl.setEventIds(r);t.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(l&&l.size>1&&i._pointerActive)&&(this.start(r),this.setupPointer(r),i._pointerId=lC(r),i._pointerActive=!0,this.computeValues(tk(r)),this.computeInitial(),t.preventScrollAxis&&JD(r)!=="mouse"?(i._active=!1,this.setupScrollPrevention(r)):t.delay>0?(this.setupDelayTrigger(r),t.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const t=this.state,i=this.config;if(!t._pointerActive||t.type===r.type&&r.timeStamp===t.timeStamp)return;const l=lC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;const f=tk(r);if(document.pointerLockElement===r.target?t._delta=[r.movementX,r.movementY]:(t._delta=Ea.sub(f,t._values),this.computeValues(f)),Ea.addTo(t._movement,t._delta),this.compute(r),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(r);return}if(i.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{process.env.NODE_ENV}const t=this.state,i=this.config;if(!t._active||!t._pointerActive)return;const l=lC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[f,c]=t._distance;if(t.tap=f<=i.tapsThreshold&&c<=i.tapsThreshold,t.tap&&i.filterTaps)t._force=!0;else{const[p,g]=t.direction,[d,m]=t.velocity,[C,b]=t.movement,[x,_]=i.swipe.velocity,[k,E]=i.swipe.distance,A=i.swipe.duration;t.elapsedTime<A&&(Math.abs(d)>x&&Math.abs(C)>k&&(t.swipe[0]=p),Math.abs(m)>_&&Math.abs(b)>E&&(t.swipe[1]=g))}this.emit()}pointerClick(r){this.state.tap||(r.preventDefault(),r.stopPropagation())}setupPointer(r){const t=this.config,i=t.device;if(process.env.NODE_ENV==="development")try{if(i==="pointer"&&t.preventScrollDelay===void 0){const l="uv"in r?r.sourceEvent.currentTarget:r.currentTarget;window.getComputedStyle(l).touchAction}}catch{}t.pointerLock&&r.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,HU(r);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const t=ik[r.key];if(t){const i=this.state,l=r.shiftKey?10:r.altKey?.1:1;this.start(r),i._delta=t(l),i._keyboardActive=!0,Ea.addTo(i._movement,i._delta),this.compute(r),this.emit()}}keyUp(r){r.key in ik&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const t=this.config.device;r(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(t,"change",this.pointerMove.bind(this)),r(t,"end",this.pointerUp.bind(this)),r(t,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function HU(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const dp=typeof window<"u"&&window.document&&window.document.createElement;function VU(){return dp&&"ontouchstart"in window}function ok(){return VU()||dp&&window.navigator.maxTouchPoints>1}function $U(){return dp&&"onpointerdown"in window}function YU(){return dp&&"exitPointerLock"in window.document}function qU(){try{return"constructor"in GestureEvent}catch{return!1}}const eo={isBrowser:dp,gesture:qU(),touch:ok(),touchscreen:ok(),pointer:$U(),pointerLock:YU()},GU=250,KU=180,WU=.5,QU=50,ZU=250,lk={mouse:0,touch:0,pen:8},sk=ar(ar({},fp),{},{device(e,r,{pointer:{touch:t=!1,lock:i=!1,mouse:l=!1}={}}){return this.pointerLock=i&&eo.pointerLock,eo.touch&&t?"touch":this.pointerLock?"mouse":eo.pointer&&!l?"pointer":eo.touch?"touch":"mouse"},preventScrollAxis(e,r,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&e?GU:void 0,!(!eo.touchscreen||t===!1))return e||(t!==void 0?"y":void 0)},pointerCapture(e,r,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},keys(e=!0){return e},threshold(e,r,{filterTaps:t=!1,tapsThreshold:i=3,axis:l=void 0}){const f=Ea.toVector(e,t?i:l?1:0);return this.filterTaps=t,this.tapsThreshold=i,f},swipe({velocity:e=WU,distance:r=QU,duration:t=ZU}={}){return{velocity:this.transform(Ea.toVector(e)),distance:this.transform(Ea.toVector(r)),duration:t}},delay(e=0){switch(e){case!0:return KU;case!1:return 0;default:return e}},axisThreshold(e){return e?ar(ar({},lk),e):lk}});process.env.NODE_ENV==="development"&&Object.assign(sk,{useTouch(e){if(e!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(e){if(e!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}}),ar(ar({},sC),{},{device(e,r,{shared:t,pointer:{touch:i=!1}={}}){if(t.target&&!eo.touch&&eo.gesture)return"gesture";if(eo.touch&&i)return"touch";if(eo.touchscreen){if(eo.pointer)return"pointer";if(eo.touch)return"touch"}},bounds(e,r,{scaleBounds:t={},angleBounds:i={}}){const l=c=>{const p=nk(Hg(t,c),{min:-1/0,max:1/0});return[p.min,p.max]},f=c=>{const p=nk(Hg(i,c),{min:-1/0,max:1/0});return[p.min,p.max]};return typeof t!="function"&&typeof i!="function"?[l(),f()]:c=>[l(c),f(c)]},threshold(e,r,t){return this.lockDirection=t.axis==="lock",Ea.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e}}),ar(ar({},fp),{},{mouseOnly:(e=!0)=>e}),ar(ar({},fp),{},{mouseOnly:(e=!0)=>e});const uk=new Map,uC=new Map;function XU(e){uk.set(e.key,e.engine),uC.set(e.key,e.resolver)}const JU={key:"drag",engine:IU,resolver:sk};function ej(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function tj(e,r){if(e==null)return{};var t=ej(e,r),i,l;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(l=0;l<f.length;l++)i=f[l],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}const nj={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=eo.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:r=!1}={}){return{passive:e,capture:r}},transform(e){return e}},rj=["target","eventOptions","window","enabled","transform"];function $g(e={},r){const t={};for(const[i,l]of Object.entries(r))switch(typeof l){case"function":if(process.env.NODE_ENV==="development"){const f=l.call(t,e[i],i,e);Number.isNaN(f)||(t[i]=f)}else t[i]=l.call(t,e[i],i,e);break;case"object":t[i]=$g(e[i],l);break;case"boolean":l&&(t[i]=e[i]);break}return t}function aj(e,r){const t=e,{target:i,eventOptions:l,window:f,enabled:c,transform:p}=t,g=tj(t,rj),d={shared:$g({target:i,eventOptions:l,window:f,enabled:c,transform:p},nj)};if(r){const m=uC.get(r);d[r]=$g(ar({shared:d.shared},g),m)}else for(const m in g){const C=uC.get(m);if(C)d[m]=$g(ar({shared:d.shared},g[m]),C);else if(process.env.NODE_ENV==="development"&&!["drag","pinch","scroll","wheel","move","hover"].includes(m)&&m==="domTarget")throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.")}return d}class ck{constructor(r,t){si(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=t}add(r,t,i,l,f){const c=this._listeners,p=AU(t,i),g=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},d=ar(ar({},g),f);r.addEventListener(p,l,d);const m=()=>{r.removeEventListener(p,l,d),c.delete(m)};return c.add(m),m}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class ij{constructor(){si(this,"_timeouts",new Map)}add(r,t,i=140,...l){this.remove(r),this._timeouts.set(r,window.setTimeout(t,i,...l))}remove(r){const t=this._timeouts.get(r);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}let oj=class{constructor(r){si(this,"gestures",new Set),si(this,"_targetEventStore",new ck(this)),si(this,"gestureEventStores",{}),si(this,"gestureTimeoutStores",{}),si(this,"handlers",{}),si(this,"config",{}),si(this,"pointerIds",new Set),si(this,"touchIds",new Set),si(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),lj(this,r)}setEventIds(r){if(Ig(r))return this.touchIds=new Set(FU(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,t){this.handlers=r,this.nativeHandlers=t}applyConfig(r,t){this.config=aj(r,t)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const t=this.config.shared,i={};let l;if(!(t.target&&(l=t.target(),!l))){if(t.enabled){for(const c of this.gestures){const p=this.config[c],g=fk(i,p.eventOptions,!!l);if(p.enabled){const d=uk.get(c);new d(this,r,c).bind(g)}}const f=fk(i,t.eventOptions,!!l);for(const c in this.nativeHandlers)f(c,"",p=>this.nativeHandlers[c](ar(ar({},this.state.shared),{},{event:p,args:r})),void 0,!0)}for(const f in i)i[f]=PU(...i[f]);if(!l)return i;for(const f in i){const{device:c,capture:p,passive:g}=TU(f);this._targetEventStore.add(l,c,"",i[f],{capture:p,passive:g})}}}};function gd(e,r){e.gestures.add(r),e.gestureEventStores[r]=new ck(e,r),e.gestureTimeoutStores[r]=new ij}function lj(e,r){r.drag&&gd(e,"drag"),r.wheel&&gd(e,"wheel"),r.scroll&&gd(e,"scroll"),r.move&&gd(e,"move"),r.pinch&&gd(e,"pinch"),r.hover&&gd(e,"hover")}const fk=(e,r,t)=>(i,l,f,c={},p=!1)=>{var g,d;const m=(g=c.capture)!==null&&g!==void 0?g:r.capture,C=(d=c.passive)!==null&&d!==void 0?d:r.passive;let b=p?i:DU(i,l,m);t&&C&&(b+="Passive"),e[b]=e[b]||[],e[b].push(f)};function sj(e,r={},t,i){const l=W.useMemo(()=>new oj(e),[]);if(l.applyHandlers(e,i),l.applyConfig(r,t),W.useEffect(l.effect.bind(l)),W.useEffect(()=>l.clean.bind(l),[]),r.target===void 0)return l.bind.bind(l)}function uj(e,r){return XU(JU),sj({drag:e},r||{},"drag")}var cC=pp(),Nt=e=>hp(e,cC),fC=pp();Nt.write=e=>hp(e,fC);var Yg=pp();Nt.onStart=e=>hp(e,Yg);var dC=pp();Nt.onFrame=e=>hp(e,dC);var hC=pp();Nt.onFinish=e=>hp(e,hC);var yd=[];Nt.setTimeout=(e,r)=>{const t=Nt.now()+r,i=()=>{const f=yd.findIndex(c=>c.cancel==i);~f&&yd.splice(f,1),du-=~f?1:0},l={time:t,handler:e,cancel:i};return yd.splice(dk(t),0,l),du+=1,hk(),l};var dk=e=>~(~yd.findIndex(r=>r.time>e)||~yd.length);Nt.cancel=e=>{Yg.delete(e),dC.delete(e),hC.delete(e),cC.delete(e),fC.delete(e)},Nt.sync=e=>{vC=!0,Nt.batchedUpdates(e),vC=!1},Nt.throttle=e=>{let r;function t(){try{e(...r)}finally{r=null}}function i(...l){r=l,Nt.onStart(t)}return i.handler=e,i.cancel=()=>{Yg.delete(t),r=null},i};var pC=typeof window<"u"?window.requestAnimationFrame:()=>{};Nt.use=e=>pC=e,Nt.now=typeof performance<"u"?()=>performance.now():Date.now,Nt.batchedUpdates=e=>e(),Nt.catch=console.error,Nt.frameLoop="always",Nt.advance=()=>{Nt.frameLoop!=="demand"||vk()};var fu=-1,du=0,vC=!1;function hp(e,r){vC?(r.delete(e),e(0)):(r.add(e),hk())}function hk(){fu<0&&(fu=0,Nt.frameLoop!=="demand"&&pC(pk))}function cj(){fu=-1}function pk(){~fu&&(pC(pk),Nt.batchedUpdates(vk))}function vk(){const e=fu;fu=Nt.now();const r=dk(fu);if(r&&(mk(yd.splice(0,r),t=>t.handler()),du-=r),!du){cj();return}Yg.flush(),cC.flush(e?Math.min(64,fu-e):16.667),dC.flush(),fC.flush(),hC.flush()}function pp(){let e=new Set,r=e;return{add(t){du+=r==e&&!e.has(t)?1:0,e.add(t)},delete(t){return du-=r==e&&e.has(t)?1:0,e.delete(t)},flush(t){r.size&&(e=new Set,du-=r.size,mk(r,i=>i(t)&&e.add(i)),du+=e.size,r=e)}}}function mk(e,r){e.forEach(t=>{try{r(t)}catch(i){Nt.catch(i)}})}var fj=Object.defineProperty,dj=(e,r)=>{for(var t in r)fj(e,t,{get:r[t],enumerable:!0})},wo={};dj(wo,{assign:()=>pj,colors:()=>hu,createStringInterpolator:()=>yC,skipAnimation:()=>yk,to:()=>gk,willAdvance:()=>xC});function mC(){}var hj=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function us(e,r){if(Ge.arr(e)){if(!Ge.arr(r)||e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}return e===r}var Wt=(e,r)=>e.forEach(r);function pl(e,r,t){if(Ge.arr(e)){for(let i=0;i<e.length;i++)r.call(t,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&r.call(t,e[i],i)}var Bi=e=>Ge.und(e)?[]:Ge.arr(e)?e:[e];function vp(e,r){if(e.size){const t=Array.from(e);e.clear(),Wt(t,r)}}var mp=(e,...r)=>vp(e,t=>t(...r)),gC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yC,gk,hu=null,yk=!1,xC=mC,pj=e=>{e.to&&(gk=e.to),e.now&&(Nt.now=e.now),e.colors!==void 0&&(hu=e.colors),e.skipAnimation!=null&&(yk=e.skipAnimation),e.createStringInterpolator&&(yC=e.createStringInterpolator),e.requestAnimationFrame&&Nt.use(e.requestAnimationFrame),e.batchedUpdates&&(Nt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(xC=e.willAdvance),e.frameLoop&&(Nt.frameLoop=e.frameLoop)},gp=new Set,to=[],bC=[],qg=0,Gg={get idle(){return!gp.size&&!to.length},start(e){qg>e.priority?(gp.add(e),Nt.onStart(vj)):(xk(e),Nt(CC))},advance:CC,sort(e){if(qg)Nt.onFrame(()=>Gg.sort(e));else{const r=to.indexOf(e);~r&&(to.splice(r,1),bk(e))}},clear(){to=[],gp.clear()}};function vj(){gp.forEach(xk),gp.clear(),Nt(CC)}function xk(e){to.includes(e)||bk(e)}function bk(e){to.splice(mj(to,r=>r.priority>e.priority),0,e)}function CC(e){const r=bC;for(let t=0;t<to.length;t++){const i=to[t];qg=i.priority,i.idle||(xC(i),i.advance(e),i.idle||r.push(i))}return qg=0,bC=to,bC.length=0,to=r,to.length>0}function mj(e,r){const t=e.findIndex(r);return t<0?e.length:t}var gj=(e,r,t)=>Math.min(Math.max(t,e),r),yj={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},_o="[-+]?\\d*\\.?\\d+",Kg=_o+"%";function Wg(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var xj=new RegExp("rgb"+Wg(_o,_o,_o)),bj=new RegExp("rgba"+Wg(_o,_o,_o,_o)),Cj=new RegExp("hsl"+Wg(_o,Kg,Kg)),wj=new RegExp("hsla"+Wg(_o,Kg,Kg,_o)),_j=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Sj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ej=/^#([0-9a-fA-F]{6})$/,Dj=/^#([0-9a-fA-F]{8})$/;function kj(e){let r;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(r=Ej.exec(e))?parseInt(r[1]+"ff",16)>>>0:hu&&hu[e]!==void 0?hu[e]:(r=xj.exec(e))?(xd(r[1])<<24|xd(r[2])<<16|xd(r[3])<<8|255)>>>0:(r=bj.exec(e))?(xd(r[1])<<24|xd(r[2])<<16|xd(r[3])<<8|_k(r[4]))>>>0:(r=_j.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=Dj.exec(e))?parseInt(r[1],16)>>>0:(r=Sj.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=Cj.exec(e))?(Ck(wk(r[1]),Qg(r[2]),Qg(r[3]))|255)>>>0:(r=wj.exec(e))?(Ck(wk(r[1]),Qg(r[2]),Qg(r[3]))|_k(r[4]))>>>0:null}function wC(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(r-e)*6*t:t<1/2?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function Ck(e,r,t){const i=t<.5?t*(1+r):t+r-t*r,l=2*t-i,f=wC(l,i,e+1/3),c=wC(l,i,e),p=wC(l,i,e-1/3);return Math.round(f*255)<<24|Math.round(c*255)<<16|Math.round(p*255)<<8}function xd(e){const r=parseInt(e,10);return r<0?0:r>255?255:r}function wk(e){return(parseFloat(e)%360+360)%360/360}function _k(e){const r=parseFloat(e);return r<0?0:r>1?255:Math.round(r*255)}function Qg(e){const r=parseFloat(e);return r<0?0:r>100?1:r/100}function Sk(e){let r=kj(e);if(r===null)return e;r=r||0;const t=(r&4278190080)>>>24,i=(r&16711680)>>>16,l=(r&65280)>>>8,f=(r&255)/255;return`rgba(${t}, ${i}, ${l}, ${f})`}var yp=(e,r,t)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return yp({range:e,output:r,extrapolate:t});if(Ge.str(e.output[0]))return yC(e);const i=e,l=i.output,f=i.range||[0,1],c=i.extrapolateLeft||i.extrapolate||"extend",p=i.extrapolateRight||i.extrapolate||"extend",g=i.easing||(d=>d);return d=>{const m=Aj(d,f);return Tj(d,f[m],f[m+1],l[m],l[m+1],g,c,p,i.map)}};function Tj(e,r,t,i,l,f,c,p,g){let d=g?g(e):e;if(d<r){if(c==="identity")return d;c==="clamp"&&(d=r)}if(d>t){if(p==="identity")return d;p==="clamp"&&(d=t)}return i===l?i:r===t?e<=r?i:l:(r===-1/0?d=-d:t===1/0?d=d-r:d=(d-r)/(t-r),d=f(d),i===-1/0?d=-d:l===1/0?d=d+i:d=d*(l-i)+i,d)}function Aj(e,r){for(var t=1;t<r.length-1&&!(r[t]>=e);++t);return t-1}var Oj=(e,r="end")=>t=>{t=r==="end"?Math.min(t,.999):Math.max(t,.001);const i=t*e,l=r==="end"?Math.floor(i):Math.ceil(i);return gj(0,1,l/e)},Zg=1.70158,Xg=Zg*1.525,Ek=Zg+1,Dk=2*Math.PI/3,kk=2*Math.PI/4.5,Jg=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Rj={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ek*e*e*e-Zg*e*e,easeOutBack:e=>1+Ek*Math.pow(e-1,3)+Zg*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xg+1)*2*e-Xg)/2:(Math.pow(2*e-2,2)*((Xg+1)*(e*2-2)+Xg)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Dk),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Dk)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*kk))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*kk)/2+1,easeInBounce:e=>1-Jg(1-e),easeOutBounce:Jg,easeInOutBounce:e=>e<.5?(1-Jg(1-2*e))/2:(1+Jg(2*e-1))/2,steps:Oj},xp=Symbol.for("FluidValue.get"),bd=Symbol.for("FluidValue.observers"),no=e=>Boolean(e&&e[xp]),ui=e=>e&&e[xp]?e[xp]():e,Tk=e=>e[bd]||null;function Fj(e,r){e.eventObserved?e.eventObserved(r):e(r)}function bp(e,r){const t=e[bd];t&&t.forEach(i=>{Fj(i,r)})}var Ak=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Nj(this,e)}},Nj=(e,r)=>Ok(e,xp,r);function Cd(e,r){if(e[xp]){let t=e[bd];t||Ok(e,bd,t=new Set),t.has(r)||(t.add(r),e.observerAdded&&e.observerAdded(t.size,r))}return r}function Cp(e,r){const t=e[bd];if(t&&t.has(r)){const i=t.size-1;i?t.delete(r):e[bd]=null,e.observerRemoved&&e.observerRemoved(i,r)}}var Ok=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),ey=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Mj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Rk=new RegExp(`(${ey.source})(%|[a-z]+)`,"i"),Pj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ty=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fk=e=>{const[r,t]=Bj(e);if(!r||gC())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(i)return i.trim();if(t&&t.startsWith("--")){const l=window.getComputedStyle(document.documentElement).getPropertyValue(t);return l||e}else{if(t&&ty.test(t))return Fk(t);if(t)return t}return e},Bj=e=>{const r=ty.exec(e);if(!r)return[,];const[,t,i]=r;return[t,i]},_C,Lj=(e,r,t,i,l)=>`rgba(${Math.round(r)}, ${Math.round(t)}, ${Math.round(i)}, ${l})`,Nk=e=>{_C||(_C=hu?new RegExp(`(${Object.keys(hu).join("|")})(?!\\w)`,"g"):/^\b$/);const r=e.output.map(f=>ui(f).replace(ty,Fk).replace(Mj,Sk).replace(_C,Sk)),t=r.map(f=>f.match(ey).map(Number)),l=t[0].map((f,c)=>t.map(p=>{if(!(c in p))throw Error('The arity of each "output" value must be equal');return p[c]})).map(f=>yp({...e,output:f}));return f=>{var g;const c=!Rk.test(r[0])&&((g=r.find(d=>Rk.test(d)))==null?void 0:g.replace(ey,""));let p=0;return r[0].replace(ey,()=>`${l[p++](f)}${c||""}`).replace(Pj,Lj)}},SC="react-spring: ",Mk=e=>{const r=e;let t=!1;if(typeof r!="function")throw new TypeError(`${SC}once requires a function parameter`);return(...i)=>{t||(r(...i),t=!0)}},zj=Mk(console.warn);function Uj(){zj(`${SC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var jj=Mk(console.warn);function Ij(){jj(`${SC}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function ny(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!gC()&&ty.test(e)||e in(hu||{}))}var EC=gC()?W.useEffect:W.useLayoutEffect,Hj=()=>{const e=W.useRef(!1);return EC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Pk(){const e=W.useState()[1],r=Hj();return()=>{r.current&&e(Math.random())}}function Vj(e,r){const[t]=W.useState(()=>({inputs:r,result:e()})),i=W.useRef(),l=i.current;let f=l;return f?Boolean(r&&f.inputs&&$j(r,f.inputs))||(f={inputs:r,result:e()}):f=t,W.useEffect(()=>{i.current=f,l==t&&(t.inputs=t.result=void 0)},[f]),f.result}function $j(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Bk=e=>W.useEffect(e,Yj),Yj=[];function Lk(e){const r=W.useRef();return W.useEffect(()=>{r.current=e}),r.current}var wp=Symbol.for("Animated:node"),qj=e=>!!e&&e[wp]===e,vl=e=>e&&e[wp],DC=(e,r)=>hj(e,wp,r),ry=e=>e&&e[wp]&&e[wp].getPayload(),zk=class{constructor(){DC(this,this)}getPayload(){return this.payload||[]}},_p=class extends zk{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _p(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,r){return Ge.num(e)&&(this.lastPosition=e,r&&(e=Math.round(e/r)*r,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Sp=class extends _p{constructor(e){super(0),this._string=null,this._toString=yp({output:[e,e]})}static create(e){return new Sp(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ge.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=yp({output:[this.getValue(),e]})),this._value=0,super.reset()}},ay={dependencies:null},iy=class extends zk{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const r={};return pl(this.source,(t,i)=>{qj(t)?r[i]=t.getValue(e):no(t)?r[i]=ui(t):e||(r[i]=t)}),r}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wt(this.payload,e=>e.reset())}_makePayload(e){if(e){const r=new Set;return pl(e,this._addToPayload,r),Array.from(r)}}_addToPayload(e){ay.dependencies&&no(e)&&ay.dependencies.add(e);const r=ry(e);r&&Wt(r,t=>this.add(t))}},Uk=class extends iy{constructor(e){super(e)}static create(e){return new Uk(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const r=this.getPayload();return e.length==r.length?r.map((t,i)=>t.setValue(e[i])).some(Boolean):(super.setValue(e.map(Gj)),!0)}};function Gj(e){return(ny(e)?Sp:_p).create(e)}function kC(e){const r=vl(e);return r?r.constructor:Ge.arr(e)?Uk:ny(e)?Sp:_p}var jk=(e,r)=>{const t=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return W.forwardRef((i,l)=>{const f=W.useRef(null),c=t&&W.useCallback(_=>{f.current=Qj(l,_)},[l]),[p,g]=Wj(i,r),d=Pk(),m=()=>{const _=f.current;if(t&&!_)return;(_?r.applyAnimatedValues(_,p.getValue(!0)):!1)===!1&&d()},C=new Kj(m,g),b=W.useRef();EC(()=>(b.current=C,Wt(g,_=>Cd(_,C)),()=>{b.current&&(Wt(b.current.deps,_=>Cp(_,b.current)),Nt.cancel(b.current.update))})),W.useEffect(m,[]),Bk(()=>()=>{const _=b.current;Wt(_.deps,k=>Cp(k,_))});const x=r.getComponentProps(p.getValue());return Me.createElement(e,{...x,ref:c})})},Kj=class{constructor(e,r){this.update=e,this.deps=r}eventObserved(e){e.type=="change"&&Nt.write(this.update)}};function Wj(e,r){const t=new Set;return ay.dependencies=t,e.style&&(e={...e,style:r.createAnimatedStyle(e.style)}),e=new iy(e),ay.dependencies=null,[e,t]}function Qj(e,r){return e&&(Ge.fun(e)?e(r):e.current=r),r}var Ik=Symbol.for("AnimatedComponent"),Zj=(e,{applyAnimatedValues:r=()=>!1,createAnimatedStyle:t=l=>new iy(l),getComponentProps:i=l=>l}={})=>{const l={applyAnimatedValues:r,createAnimatedStyle:t,getComponentProps:i},f=c=>{const p=Hk(c)||"Anonymous";return Ge.str(c)?c=f[c]||(f[c]=jk(c,l)):c=c[Ik]||(c[Ik]=jk(c,l)),c.displayName=`Animated(${p})`,c};return pl(e,(c,p)=>{Ge.arr(e)&&(p=Hk(c)),f[p]=f(c)}),{animated:f}},Hk=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Mc(e,...r){return Ge.fun(e)?e(...r):e}var Ep=(e,r)=>e===!0||!!(r&&e&&(Ge.fun(e)?e(r):Bi(e).includes(r))),Vk=(e,r)=>Ge.obj(e)?r&&e[r]:e,$k=(e,r)=>e.default===!0?e[r]:e.default?e.default[r]:void 0,Xj=e=>e,TC=(e,r=Xj)=>{let t=Jj;e.default&&e.default!==!0&&(e=e.default,t=Object.keys(e));const i={};for(const l of t){const f=r(e[l],l);Ge.und(f)||(i[l]=f)}return i},Jj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eI={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tI(e){const r={};let t=0;if(pl(e,(i,l)=>{eI[l]||(r[l]=i,t++)}),t)return r}function Yk(e){const r=tI(e);if(r){const t={to:r};return pl(e,(i,l)=>l in r||(t[l]=i)),t}return{...e}}function Dp(e){return e=ui(e),Ge.arr(e)?e.map(Dp):ny(e)?wo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function nI(e){for(const r in e)return!0;return!1}function AC(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}function rI(e,r){var t;(t=e.ref)==null||t.delete(e),r==null||r.delete(e)}function aI(e,r){var t;r&&e.ref!==r&&((t=e.ref)==null||t.delete(e),r.add(e),e.ref=r)}var iI={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},OC={...iI.default,mass:1,damping:1,easing:Rj.linear,clamp:!1},oI=class{constructor(){this.velocity=0,Object.assign(this,OC)}};function lI(e,r,t){t&&(t={...t},qk(t,r),r={...t,...r}),qk(e,r),Object.assign(e,r);for(const c in OC)e[c]==null&&(e[c]=OC[c]);let{frequency:i,damping:l}=e;const{mass:f}=e;return Ge.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*f,e.friction=4*Math.PI*l*f/i),e}function qk(e,r){if(!Ge.und(r.decay))e.duration=void 0;else{const t=!Ge.und(r.tension)||!Ge.und(r.friction);(t||!Ge.und(r.frequency)||!Ge.und(r.damping)||!Ge.und(r.mass))&&(e.duration=void 0,e.decay=void 0),t&&(e.frequency=void 0)}}var Gk=[],sI=class{constructor(){this.changed=!1,this.values=Gk,this.toValues=null,this.fromValues=Gk,this.config=new oI,this.immediate=!1}};function Kk(e,{key:r,props:t,defaultProps:i,state:l,actions:f}){return new Promise((c,p)=>{let g,d,m=Ep(t.cancel??(i==null?void 0:i.cancel),r);if(m)x();else{Ge.und(t.pause)||(l.paused=Ep(t.pause,r));let _=i==null?void 0:i.pause;_!==!0&&(_=l.paused||Ep(_,r)),g=Mc(t.delay||0,r),_?(l.resumeQueue.add(b),f.pause()):(f.resume(),b())}function C(){l.resumeQueue.add(b),l.timeouts.delete(d),d.cancel(),g=d.time-Nt.now()}function b(){g>0&&!wo.skipAnimation?(l.delayed=!0,d=Nt.setTimeout(x,g),l.pauseQueue.add(C),l.timeouts.add(d)):x()}function x(){l.delayed&&(l.delayed=!1),l.pauseQueue.delete(C),l.timeouts.delete(d),e<=(l.cancelId||0)&&(m=!0);try{f.start({...t,callId:e,cancel:m},c)}catch(_){p(_)}}})}var RC=(e,r)=>r.length==1?r[0]:r.some(t=>t.cancelled)?wd(e.get()):r.every(t=>t.noop)?Wk(e.get()):So(e.get(),r.every(t=>t.finished)),Wk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),So=(e,r,t=!1)=>({value:e,finished:r,cancelled:t}),wd=e=>({value:e,cancelled:!0,finished:!1});function Qk(e,r,t,i){const{callId:l,parentId:f,onRest:c}=r,{asyncTo:p,promise:g}=t;return!f&&e===p&&!r.reset?g:t.promise=(async()=>{t.asyncId=l,t.asyncTo=e;const d=TC(r,(E,A)=>A==="onRest"?void 0:E);let m,C;const b=new Promise((E,A)=>(m=E,C=A)),x=E=>{const A=l<=(t.cancelId||0)&&wd(i)||l!==t.asyncId&&So(i,!1);if(A)throw E.result=A,C(E),E},_=(E,A)=>{const T=new Zk,D=new Xk;return(async()=>{if(wo.skipAnimation)throw kp(t),D.result=So(i,!1),C(D),D;x(T);const R=Ge.obj(E)?{...E}:{...A,to:E};R.parentId=l,pl(d,(z,M)=>{Ge.und(R[M])&&(R[M]=z)});const N=await i.start(R);return x(T),t.paused&&await new Promise(z=>{t.resumeQueue.add(z)}),N})()};let k;if(wo.skipAnimation)return kp(t),So(i,!1);try{let E;Ge.arr(e)?E=(async A=>{for(const T of A)await _(T)})(e):E=Promise.resolve(e(_,i.stop.bind(i))),await Promise.all([E.then(m),b]),k=So(i.get(),!0,!1)}catch(E){if(E instanceof Zk)k=E.result;else if(E instanceof Xk)k=E.result;else throw E}finally{l==t.asyncId&&(t.asyncId=f,t.asyncTo=f?p:void 0,t.promise=f?g:void 0)}return Ge.fun(c)&&Nt.batchedUpdates(()=>{c(k,i,i.item)}),k})()}function kp(e,r){vp(e.timeouts,t=>t.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,r&&(e.cancelId=r)}var Zk=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Xk=class extends Error{constructor(){super("SkipAnimationSignal")}},FC=e=>e instanceof NC,uI=1,NC=class extends Ak{constructor(){super(...arguments),this.id=uI++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vl(this);return e&&e.getValue()}to(...e){return wo.to(this,e)}interpolate(...e){return Uj(),wo.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,r=!1){bp(this,{type:"change",parent:this,value:e,idle:r})}_onPriorityChange(e){this.idle||Gg.sort(this),bp(this,{type:"priority",parent:this,priority:e})}},Pc=Symbol.for("SpringPhase"),Jk=1,MC=2,PC=4,BC=e=>(e[Pc]&Jk)>0,pu=e=>(e[Pc]&MC)>0,Tp=e=>(e[Pc]&PC)>0,eT=(e,r)=>r?e[Pc]|=MC|Jk:e[Pc]&=~MC,tT=(e,r)=>r?e[Pc]|=PC:e[Pc]&=~PC,cI=class extends NC{constructor(e,r){if(super(),this.animation=new sI,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(e)||!Ge.und(r)){const t=Ge.obj(e)?{...e}:{...r,from:e};Ge.und(t.default)&&(t.default=!0),this.start(t)}}get idle(){return!(pu(this)||this._state.asyncTo)||Tp(this)}get goal(){return ui(this.animation.to)}get velocity(){const e=vl(this);return e instanceof _p?e.lastVelocity||0:e.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return BC(this)}get isAnimating(){return pu(this)}get isPaused(){return Tp(this)}get isDelayed(){return this._state.delayed}advance(e){let r=!0,t=!1;const i=this.animation;let{toValues:l}=i;const{config:f}=i,c=ry(i.to);!c&&no(i.to)&&(l=Bi(ui(i.to))),i.values.forEach((d,m)=>{if(d.done)return;const C=d.constructor==Sp?1:c?c[m].lastPosition:l[m];let b=i.immediate,x=C;if(!b){if(x=d.lastPosition,f.tension<=0){d.done=!0;return}let _=d.elapsedTime+=e;const k=i.fromValues[m],E=d.v0!=null?d.v0:d.v0=Ge.arr(f.velocity)?f.velocity[m]:f.velocity;let A;const T=f.precision||(k==C?.005:Math.min(1,Math.abs(C-k)*.001));if(Ge.und(f.duration))if(f.decay){const D=f.decay===!0?.998:f.decay,R=Math.exp(-(1-D)*_);x=k+E/(1-D)*(1-R),b=Math.abs(d.lastPosition-x)<=T,A=E*R}else{A=d.lastVelocity==null?E:d.lastVelocity;const D=f.restVelocity||T/10,R=f.clamp?0:f.bounce,N=!Ge.und(R),z=k==C?d.v0>0:k<C;let M,I=!1;const Y=1,B=Math.ceil(e/Y);for(let P=0;P<B&&(M=Math.abs(A)>D,!(!M&&(b=Math.abs(C-x)<=T,b)));++P){N&&(I=x==C||x>C==z,I&&(A=-A*R,x=C));const U=-f.tension*1e-6*(x-C),H=-f.friction*.001*A,V=(U+H)/f.mass;A=A+V*Y,x=x+A*Y}}else{let D=1;f.duration>0&&(this._memoizedDuration!==f.duration&&(this._memoizedDuration=f.duration,d.durationProgress>0&&(d.elapsedTime=f.duration*d.durationProgress,_=d.elapsedTime+=e)),D=(f.progress||0)+_/this._memoizedDuration,D=D>1?1:D<0?0:D,d.durationProgress=D),x=k+f.easing(D)*(C-k),A=(x-d.lastPosition)/e,b=D==1}d.lastVelocity=A,Number.isNaN(x)&&(b=!0)}c&&!c[m].done&&(b=!1),b?d.done=!0:r=!1,d.setValue(x,f.round)&&(t=!0)});const p=vl(this),g=p.getValue();if(r){const d=ui(i.to);(g!==d||t)&&!f.decay?(p.setValue(d),this._onChange(d)):t&&f.decay&&this._onChange(g),this._stop()}else t&&this._onChange(g)}set(e){return Nt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pu(this)){const{to:e,config:r}=this.animation;Nt.batchedUpdates(()=>{this._onStart(),r.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,r){let t;return Ge.und(e)?(t=this.queue||[],this.queue=[]):t=[Ge.obj(e)?e:{...r,to:e}],Promise.all(t.map(i=>this._update(i))).then(i=>RC(this,i))}stop(e){const{to:r}=this.animation;return this._focus(this.get()),kp(this._state,e&&this._lastCallId),Nt.batchedUpdates(()=>this._stop(r,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const r=this.key||"";let{to:t,from:i}=e;t=Ge.obj(t)?t[r]:t,(t==null||AC(t))&&(t=void 0),i=Ge.obj(i)?i[r]:i,i==null&&(i=void 0);const l={to:t,from:i};return BC(this)||(e.reverse&&([t,i]=[i,t]),i=ui(i),Ge.und(i)?vl(this)||this._set(t):this._set(i)),l}_update({...e},r){const{key:t,defaultProps:i}=this;e.default&&Object.assign(i,TC(e,(c,p)=>/^on/.test(p)?Vk(c,t):c)),aT(this,e,"onProps"),Rp(this,"onProps",e,this);const l=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const f=this._state;return Kk(++this._lastCallId,{key:t,props:e,defaultProps:i,state:f,actions:{pause:()=>{Tp(this)||(tT(this,!0),mp(f.pauseQueue),Rp(this,"onPause",So(this,Ap(this,this.animation.to)),this))},resume:()=>{Tp(this)&&(tT(this,!1),pu(this)&&this._resume(),mp(f.resumeQueue),Rp(this,"onResume",So(this,Ap(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then(c=>{if(e.loop&&c.finished&&!(r&&c.noop)){const p=nT(e);if(p)return this._update(p,!0)}return c})}_merge(e,r,t){if(r.cancel)return this.stop(!0),t(wd(this));const i=!Ge.und(e.to),l=!Ge.und(e.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return t(wd(this));const{key:f,defaultProps:c,animation:p}=this,{to:g,from:d}=p;let{to:m=g,from:C=d}=e;l&&!i&&(!r.default||Ge.und(m))&&(m=C),r.reverse&&([m,C]=[C,m]);const b=!us(C,d);b&&(p.from=C),C=ui(C);const x=!us(m,g);x&&this._focus(m);const _=AC(r.to),{config:k}=p,{decay:E,velocity:A}=k;(i||l)&&(k.velocity=0),r.config&&!_&&lI(k,Mc(r.config,f),r.config!==c.config?Mc(c.config,f):void 0);let T=vl(this);if(!T||Ge.und(m))return t(So(this,!0));const D=Ge.und(r.reset)?l&&!r.default:!Ge.und(C)&&Ep(r.reset,f),R=D?C:this.get(),N=Dp(m),z=Ge.num(N)||Ge.arr(N)||ny(N),M=!_&&(!z||Ep(c.immediate||r.immediate,f));if(x){const P=kC(m);if(P!==T.constructor)if(M)T=this._set(N);else throw Error(`Cannot animate between ${T.constructor.name} and ${P.name}, as the "to" prop suggests`)}const I=T.constructor;let Y=no(m),B=!1;if(!Y){const P=D||!BC(this)&&b;(x||P)&&(B=us(Dp(R),N),Y=!B),(!us(p.immediate,M)&&!M||!us(k.decay,E)||!us(k.velocity,A))&&(Y=!0)}if(B&&pu(this)&&(p.changed&&!D?Y=!0:Y||this._stop(g)),!_&&((Y||no(g))&&(p.values=T.getPayload(),p.toValues=no(m)?null:I==Sp?[1]:Bi(N)),p.immediate!=M&&(p.immediate=M,!M&&!D&&this._set(g)),Y)){const{onRest:P}=p;Wt(dI,H=>aT(this,r,H));const U=So(this,Ap(this,g));mp(this._pendingCalls,U),this._pendingCalls.add(t),p.changed&&Nt.batchedUpdates(()=>{var H;p.changed=!D,P==null||P(U,this),D?Mc(c.onRest,U):(H=p.onStart)==null||H.call(p,U,this)})}D&&this._set(R),_?t(Qk(r.to,r,this._state,this)):Y?this._start():pu(this)&&!x?this._pendingCalls.add(t):t(Wk(R))}_focus(e){const r=this.animation;e!==r.to&&(Tk(this)&&this._detach(),r.to=e,Tk(this)&&this._attach())}_attach(){let e=0;const{to:r}=this.animation;no(r)&&(Cd(r,this),FC(r)&&(e=r.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;no(e)&&Cp(e,this)}_set(e,r=!0){const t=ui(e);if(!Ge.und(t)){const i=vl(this);if(!i||!us(t,i.getValue())){const l=kC(t);!i||i.constructor!=l?DC(this,l.create(t)):i.setValue(t),i&&Nt.batchedUpdates(()=>{this._onChange(t,r)})}}return vl(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Rp(this,"onStart",So(this,Ap(this,e.to)),this))}_onChange(e,r){r||(this._onStart(),Mc(this.animation.onChange,e,this)),Mc(this.defaultProps.onChange,e,this),super._onChange(e,r)}_start(){const e=this.animation;vl(this).reset(ui(e.to)),e.immediate||(e.fromValues=e.values.map(r=>r.lastPosition)),pu(this)||(eT(this,!0),Tp(this)||this._resume())}_resume(){wo.skipAnimation?this.finish():Gg.start(this)}_stop(e,r){if(pu(this)){eT(this,!1);const t=this.animation;Wt(t.values,l=>{l.done=!0}),t.toValues&&(t.onChange=t.onPause=t.onResume=void 0),bp(this,{type:"idle",parent:this});const i=r?wd(this.get()):So(this.get(),Ap(this,e??t.to));mp(this._pendingCalls,i),t.changed&&(t.changed=!1,Rp(this,"onRest",i,this))}}};function Ap(e,r){const t=Dp(r),i=Dp(e.get());return us(i,t)}function nT(e,r=e.loop,t=e.to){const i=Mc(r);if(i){const l=i!==!0&&Yk(i),f=(l||e).reverse,c=!l||l.reset;return Op({...e,loop:r,default:!1,pause:void 0,to:!f||AC(t)?t:void 0,from:c?e.from:void 0,reset:c,...l})}}function Op(e){const{to:r,from:t}=e=Yk(e),i=new Set;return Ge.obj(r)&&rT(r,i),Ge.obj(t)&&rT(t,i),e.keys=i.size?Array.from(i):null,e}function fI(e){const r=Op(e);return Ge.und(r.default)&&(r.default=TC(r)),r}function rT(e,r){pl(e,(t,i)=>t!=null&&r.add(i))}var dI=["onStart","onRest","onChange","onPause","onResume"];function aT(e,r,t){e.animation[t]=r[t]!==$k(r,t)?Vk(r[t],e.key):void 0}function Rp(e,r,...t){var i,l,f,c;(l=(i=e.animation)[r])==null||l.call(i,...t),(c=(f=e.defaultProps)[r])==null||c.call(f,...t)}var hI=["onStart","onChange","onRest"],pI=1,vI=class{constructor(e,r){this.id=pI++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),r&&(this._flush=r),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((r,t)=>e[t]=r.get()),e}set(e){for(const r in e){const t=e[r];Ge.und(t)||this.springs[r].set(t)}}update(e){return e&&this.queue.push(Op(e)),this}start(e){let{queue:r}=this;return e?r=Bi(e).map(Op):this.queue=[],this._flush?this._flush(this,r):(cT(this,r),LC(this,r))}stop(e,r){if(e!==!!e&&(r=e),r){const t=this.springs;Wt(Bi(r),i=>t[i].stop(!!e))}else kp(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const r=this.springs;Wt(Bi(e),t=>r[t].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const r=this.springs;Wt(Bi(e),t=>r[t].resume())}return this}each(e){pl(this.springs,e)}_onFrame(){const{onStart:e,onChange:r,onRest:t}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,vp(e,([p,g])=>{g.value=this.get(),p(g,this,this._item)}));const f=!i&&this._started,c=l||f&&t.size?this.get():null;l&&r.size&&vp(r,([p,g])=>{g.value=c,p(g,this,this._item)}),f&&(this._started=!1,vp(t,([p,g])=>{g.value=c,p(g,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Nt.onFrame(this._onFrame)}};function LC(e,r){return Promise.all(r.map(t=>iT(e,t))).then(t=>RC(e,t))}async function iT(e,r,t){const{keys:i,to:l,from:f,loop:c,onRest:p,onResolve:g}=r,d=Ge.obj(r.default)&&r.default;c&&(r.loop=!1),l===!1&&(r.to=null),f===!1&&(r.from=null);const m=Ge.arr(l)||Ge.fun(l)?l:void 0;m?(r.to=void 0,r.onRest=void 0,d&&(d.onRest=void 0)):Wt(hI,k=>{const E=r[k];if(Ge.fun(E)){const A=e._events[k];r[k]=({finished:T,cancelled:D})=>{const R=A.get(E);R?(T||(R.finished=!1),D&&(R.cancelled=!0)):A.set(E,{value:null,finished:T||!1,cancelled:D||!1})},d&&(d[k]=r[k])}});const C=e._state;r.pause===!C.paused?(C.paused=r.pause,mp(r.pause?C.pauseQueue:C.resumeQueue)):C.paused&&(r.pause=!0);const b=(i||Object.keys(e.springs)).map(k=>e.springs[k].start(r)),x=r.cancel===!0||$k(r,"cancel")===!0;(m||x&&C.asyncId)&&b.push(Kk(++e._lastAsyncId,{props:r,state:C,actions:{pause:mC,resume:mC,start(k,E){x?(kp(C,e._lastAsyncId),E(wd(e))):(k.onRest=p,E(Qk(m,k,C,e)))}}})),C.paused&&await new Promise(k=>{C.resumeQueue.add(k)});const _=RC(e,await Promise.all(b));if(c&&_.finished&&!(t&&_.noop)){const k=nT(r,c,l);if(k)return cT(e,[k]),iT(e,k,!0)}return g&&Nt.batchedUpdates(()=>g(_,e,e.item)),_}function oT(e,r){const t={...e.springs};return r&&Wt(Bi(r),i=>{Ge.und(i.keys)&&(i=Op(i)),Ge.obj(i.to)||(i={...i,to:void 0}),uT(t,i,l=>sT(l))}),lT(e,t),t}function lT(e,r){pl(r,(t,i)=>{e.springs[i]||(e.springs[i]=t,Cd(t,e))})}function sT(e,r){const t=new cI;return t.key=e,r&&Cd(t,r),t}function uT(e,r,t){r.keys&&Wt(r.keys,i=>{(e[i]||(e[i]=t(i)))._prepareNode(r)})}function cT(e,r){Wt(r,t=>{uT(e.springs,t,i=>sT(i,e))})}var oy=({children:e,...r})=>{const t=W.useContext(ly),i=r.pause||!!t.pause,l=r.immediate||!!t.immediate;r=Vj(()=>({pause:i,immediate:l}),[i,l]);const{Provider:f}=ly;return Me.createElement(f,{value:r},e)},ly=mI(oy,{});oy.Provider=ly.Provider,oy.Consumer=ly.Consumer;function mI(e,r){return Object.assign(e,Me.createContext(r)),e.Provider._context=e,e.Consumer._context=e,e}var gI=()=>{const e=[],r=function(i){Ij();const l=[];return Wt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const p=t(i,f,c);p&&l.push(f.start(p))}}),l};r.current=e,r.add=function(i){e.includes(i)||e.push(i)},r.delete=function(i){const l=e.indexOf(i);~l&&e.splice(l,1)},r.pause=function(){return Wt(e,i=>i.pause(...arguments)),this},r.resume=function(){return Wt(e,i=>i.resume(...arguments)),this},r.set=function(i){Wt(e,(l,f)=>{const c=Ge.fun(i)?i(f,l):i;c&&l.set(c)})},r.start=function(i){const l=[];return Wt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const p=this._getProps(i,f,c);p&&l.push(f.start(p))}}),l},r.stop=function(){return Wt(e,i=>i.stop(...arguments)),this},r.update=function(i){return Wt(e,(l,f)=>l.update(this._getProps(i,l,f))),this};const t=function(i,l,f){return Ge.fun(i)?i(f,l):i};return r._getProps=t,r};function yI(e,r,t){const i=Ge.fun(r)&&r;i&&!t&&(t=[]);const l=W.useMemo(()=>i||arguments.length==3?gI():void 0,[]),f=W.useRef(0),c=Pk(),p=W.useMemo(()=>({ctrls:[],queue:[],flush(A,T){const D=oT(A,T);return f.current>0&&!p.queue.length&&!Object.keys(D).some(N=>!A.springs[N])?LC(A,T):new Promise(N=>{lT(A,D),p.queue.push(()=>{N(LC(A,T))}),c()})}}),[]),g=W.useRef([...p.ctrls]),d=[],m=Lk(e)||0;W.useMemo(()=>{Wt(g.current.slice(e,m),A=>{rI(A,l),A.stop(!0)}),g.current.length=e,C(m,e)},[e]),W.useMemo(()=>{C(0,Math.min(m,e))},t);function C(A,T){for(let D=A;D<T;D++){const R=g.current[D]||(g.current[D]=new vI(null,p.flush)),N=i?i(D,R):r[D];N&&(d[D]=fI(N))}}const b=g.current.map((A,T)=>oT(A,d[T])),x=W.useContext(oy),_=Lk(x),k=x!==_&&nI(x);EC(()=>{f.current++,p.ctrls=g.current;const{queue:A}=p;A.length&&(p.queue=[],Wt(A,T=>T())),Wt(g.current,(T,D)=>{l==null||l.add(T),k&&T.start({default:x});const R=d[D];R&&(aI(T,R.ref),T.ref?T.queue.push(R):T.start(R))})}),Bk(()=>()=>{Wt(p.ctrls,A=>A.stop(!0))});const E=b.map(A=>({...A}));return l?[E,l]:E}function xI(e,r){const t=Ge.fun(e),[[i],l]=yI(1,t?e:[e],t?r||[]:r);return t||arguments.length==2?[i,l]:i}var bI=class extends NC{constructor(e,r){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yp(...r);const t=this._get(),i=kC(t);DC(this,i.create(t))}advance(e){const r=this._get(),t=this.get();us(r,t)||(vl(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&fT(this._active)&&zC(this)}_get(){const e=Ge.arr(this.source)?this.source.map(ui):Bi(ui(this.source));return this.calc(...e)}_start(){this.idle&&!fT(this._active)&&(this.idle=!1,Wt(ry(this),e=>{e.done=!1}),wo.skipAnimation?(Nt.batchedUpdates(()=>this.advance()),zC(this)):Gg.start(this))}_attach(){let e=1;Wt(Bi(this.source),r=>{no(r)&&Cd(r,this),FC(r)&&(r.idle||this._active.add(r),e=Math.max(e,r.priority+1))}),this.priority=e,this._start()}_detach(){Wt(Bi(this.source),e=>{no(e)&&Cp(e,this)}),this._active.clear(),zC(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Bi(this.source).reduce((r,t)=>Math.max(r,(FC(t)?t.priority:0)+1),0))}};function CI(e){return e.idle!==!1}function fT(e){return!e.size||Array.from(e).every(CI)}function zC(e){e.idle||(e.idle=!0,Wt(ry(e),r=>{r.done=!0}),bp(e,{type:"idle",parent:e}))}wo.assign({createStringInterpolator:Nk,to:(e,r)=>new bI(e,r)});var dT=/^--/;function wI(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r=="number"&&r!==0&&!dT.test(e)&&!(Fp.hasOwnProperty(e)&&Fp[e])?r+"px":(""+r).trim()}var hT={};function _I(e,r){if(!e.nodeType||!e.setAttribute)return!1;const t=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:l,children:f,scrollTop:c,scrollLeft:p,viewBox:g,...d}=r,m=Object.values(d),C=Object.keys(d).map(b=>t||e.hasAttribute(b)?b:hT[b]||(hT[b]=b.replace(/([A-Z])/g,x=>"-"+x.toLowerCase())));f!==void 0&&(e.textContent=f);for(const b in l)if(l.hasOwnProperty(b)){const x=wI(b,l[b]);dT.test(b)?e.style.setProperty(b,x):e.style[b]=x}C.forEach((b,x)=>{e.setAttribute(b,m[x])}),i!==void 0&&(e.className=i),c!==void 0&&(e.scrollTop=c),p!==void 0&&(e.scrollLeft=p),g!==void 0&&e.setAttribute("viewBox",g)}var Fp={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},SI=(e,r)=>e+r.charAt(0).toUpperCase()+r.substring(1),EI=["Webkit","Ms","Moz","O"];Fp=Object.keys(Fp).reduce((e,r)=>(EI.forEach(t=>e[SI(t,r)]=e[r]),e),Fp);var DI=/^(matrix|translate|scale|rotate|skew)/,kI=/^(translate)/,TI=/^(rotate|skew)/,UC=(e,r)=>Ge.num(e)&&e!==0?e+r:e,sy=(e,r)=>Ge.arr(e)?e.every(t=>sy(t,r)):Ge.num(e)?e===r:parseFloat(e)===r,AI=class extends iy{constructor({x:e,y:r,z:t,...i}){const l=[],f=[];(e||r||t)&&(l.push([e||0,r||0,t||0]),f.push(c=>[`translate3d(${c.map(p=>UC(p,"px")).join(",")})`,sy(c,0)])),pl(i,(c,p)=>{if(p==="transform")l.push([c||""]),f.push(g=>[g,g===""]);else if(DI.test(p)){if(delete i[p],Ge.und(c))return;const g=kI.test(p)?"px":TI.test(p)?"deg":"";l.push(Bi(c)),f.push(p==="rotate3d"?([d,m,C,b])=>[`rotate3d(${d},${m},${C},${UC(b,g)})`,sy(b,0)]:d=>[`${p}(${d.map(m=>UC(m,g)).join(",")})`,sy(d,p.startsWith("scale")?1:0)])}}),l.length&&(i.transform=new OI(l,f)),super(i)}},OI=class extends Ak{constructor(e,r){super(),this.inputs=e,this.transforms=r,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",r=!0;return Wt(this.inputs,(t,i)=>{const l=ui(t[0]),[f,c]=this.transforms[i](Ge.arr(l)?l:t.map(ui));e+=" "+f,r=r&&c}),r?"none":e}observerAdded(e){e==1&&Wt(this.inputs,r=>Wt(r,t=>no(t)&&Cd(t,this)))}observerRemoved(e){e==0&&Wt(this.inputs,r=>Wt(r,t=>no(t)&&Cp(t,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bp(this,e)}},RI=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];wo.assign({batchedUpdates:tu.exports.unstable_batchedUpdates,createStringInterpolator:Nk,colors:yj});var FI=Zj(RI,{applyAnimatedValues:_I,createAnimatedStyle:e=>new AI(e),getComponentProps:({scrollTop:e,scrollLeft:r,...t})=>t}),pT=FI.animated;function vT(e,r,t){let i=e;return r!==void 0&&(i=Math.max(e,r)),t!==void 0&&(i=Math.min(i,t)),i}const[mT]=wn("indicator"),NI=W.memo(e=>{var{vertical:r}=e,t=$a(e,["vertical"]);const i=[];for(let l=0;l<t.total;l++)i.push(Q("div",{className:Re(mT("dot",{active:t.current===l}))},l));return Q("div",Object.assign({className:Re(t.className,mT({vertical:r})),style:t.style},{children:i}))});let Np=0;function jC(e){e?(Np||document.body.classList.add("rv-toast--unclickable"),Np+=1):Np&&(Np-=1,Np||document.body.classList.remove("rv-toast--unclickable"))}function MI(e){return e===window}const gT=e=>{const r=e;if(MI(r)){const t=r.innerWidth,i=r.innerHeight;return{top:0,left:0,right:t,bottom:i,width:t,height:i}}return r&&r.getBoundingClientRect?r.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function PI(e,r,t){let i,l,f,c,p,g,d=0,m=!1,C=!1,b=!0;const x=!r&&r!==0&&typeof fd.requestAnimationFrame=="function";if(typeof e!="function")throw new TypeError("Expected a function");r=+r||0,cd(t)&&(m=!!t.leading,C="maxWait"in t,f=C?Math.max(+t.maxWait||0,r):f,b="trailing"in t?!!t.trailing:b);function _(B){const P=i,U=l;return i=l=void 0,d=B,c=e.apply(U,P),c}function k(B,P){return x?(fd.cancelAnimationFrame(p),fd.requestAnimationFrame(B)):setTimeout(()=>B(),P)}function E(B){if(x)return fd.cancelAnimationFrame(B);clearTimeout(B)}function A(B){return d=B,p=k(R,r),m?_(B):c}function T(B){const P=B-g,U=B-d,H=r-P;return C?Math.min(H,f-U):H}function D(B){const P=B-g,U=B-d;return g===void 0||P>=r||P<0||C&&U>=f}function R(){const B=Date.now();if(D(B))return N(B);p=k(R,T(B))}function N(B){return p=void 0,b&&i?_(B):(i=l=void 0,c)}function z(){p!==void 0&&E(p),d=0,i=g=l=p=void 0}function M(){return p===void 0?c:N(Date.now())}function I(){return p!==void 0}function Y(...B){const P=Date.now(),U=D(P);if(i=B,l=this,g=P,U){if(p===void 0)return A(g);if(C)return p=k(R,r),_(g)}return p===void 0&&(p=k(R,r)),c}return Y.cancel=z,Y.flush=M,Y.pending=I,Y}const JZ="",[uy]=wn("toast"),BI=e=>{const r=ea(e,{type:"info",duration:2e3,position:"middle",transition:"rv-fade",loadingType:"circular",overlay:!1}),t=()=>{r.closeOnClick&&r.onClose()};W.useEffect(()=>{if(!r.visible){jC(!1);return}let f=!1;const c=r.visible&&r.forbidClick;f!==c&&(f=c,jC(f))},[r.visible,r.forbidClick]);const i=()=>{const{icon:f,type:c,iconSize:p,loadingType:g}=r;if(f||c==="success"||c==="fail"){const m=c==="fail"?Q(J2,{}):Q(OD,{});return W.cloneElement(f||m,{className:Re(uy("icon")),fontSize:p})}return c==="loading"?Q(X2,{className:Re(uy("loading")),type:g}):null},l=()=>{const{message:f}=r;return Jr(f)&&f!==""?Q("div",Object.assign({className:Re(uy("info"))},{children:f})):null};return Be(sp,Object.assign({className:Re([uy([r.position,{[r.type]:!r.icon}]),r.className]),visible:r.visible,overlay:r.overlay,transition:r.transition,overlayClass:r.overlayClass,overlayStyle:r.overlayStyle,closeOnClickOverlay:r.closeOnClickOverlay,lockScroll:!1,onClick:t,onClose:r.onClose,onClosed:r.onClosed,onOpened:r.onOpened,teleport:r.teleport},{children:[i(),l()]}))},IC={message:"",className:"",type:"info",position:"middle",forbidClick:!1,duration:2e3,teleport:()=>document.body},HC=[];let yT=!1,VC=Jh({},IC);const cy=new Map;function xT(){let e=HC.pop();for(;e;)e(),e=HC.pop()}function LI(){setTimeout(xT)}const Bc=e=>{if(!Bg())return null;const r=bT(e),t={config:()=>{},clear:()=>null};let i=0;const{onClose:l,teleport:f}=r,c=document.createElement("div");return aC(f).appendChild(c),qD(Q(()=>{const d=Object.assign({duration:2e3},r),[m,C]=W.useState(!1),[b,x]=W.useState(Object.assign({},d)),_=W.useCallback(()=>{b.forbidClick&&jC(!1),C(!1),window.setTimeout(()=>{GD(c)&&c.parentNode&&c.parentNode.removeChild(c)},+b.duration||+IC.duration)},[c]),k=W.useCallback(()=>{C(!1),l&&l()},[]);return t.clear=_,t.config=W.useCallback(E=>{x(A=>typeof E=="function"?Object.assign(Object.assign({},A),E(A)):Object.assign(Object.assign({},A),E))},[x]),W.useEffect(()=>(C(!0),yT||xT(),HC.push(_),b.duration!==0&&"duration"in b&&(i=window.setTimeout(k,+b.duration)),()=>{i!==0&&window.clearTimeout(i)}),[]),Q(BI,Object.assign({},b,{visible:m,teleport:()=>c,onClose:k,onClosed:_}))},{}),c),t};function bT(e){return cd(e)?e:{message:e}}const zI=e=>r=>Bc(Object.assign(Object.assign(Object.assign(Object.assign({},VC),cy.get(e)),bT(r)),{type:e}));["info","loading","success","fail"].forEach(e=>{Bc[e]=zI(e)}),Bc.allowMultiple=(e=!0)=>{yT=e},Bc.clear=LI;function UI(e,r){typeof e=="string"?cy.set(e,r):Jh(VC,e)}Bc.setDefaultOptions=UI,Bc.resetDefaultOptions=e=>{typeof e=="string"?cy.delete(e):(VC=Jh({},IC),cy.clear())};const CT=Bc;function fy(){const e=W.useRef([]),r=W.useCallback(i=>l=>{l&&(e.current[i]=l)},[]),t=W.useCallback(()=>{e.current=[]},[]);return[e.current,r,t]}const wT=e=>{const{defaultValue:r,value:t}=e||{},[i,l]=W.useState(()=>{if(t!==void 0)return t;if(r!==void 0)return typeof r=="function"?r():r}),f=t!==void 0?t:i;function c(p){l(p)}return[f,c]},rX="",[jI]=wn("swiper-item"),_T=W.forwardRef((e,r)=>{const t=W.useRef(null);W.useImperativeHandle(r,()=>({self:t.current}));const[i]=oz(t,{rootMargin:"-0.1px",threshold:0,root:()=>{var l;return(l=e.trackRef)===null||l===void 0?void 0:l.current}});return Q("div",Object.assign({ref:t,className:Re(e.className,jI({hidden:e.autoHeight&&i===!1})),onClick:e.onClick,style:e.style},{children:e.children}))}),[Lc]=wn("swiper"),II=W.forwardRef((e,r)=>{const t=ea(e,{initialSwipe:0,loop:!0,touchable:!0,enabled:!0,rubberband:!0,autoplay:!1,slideSize:100,trackOffset:0,stuckAtBoundary:!1,preventScroll:!0}),{loop:i,autoplay:l,vertical:f,duration:c,autoHeight:p}=t,g=f?"y":"x",d=t.slideSize/100,m=t.trackOffset/100,{validChildren:C,count:b}=W.useMemo(()=>{let te=0;return{validChildren:W.Children.map(t.children,$=>W.isValidElement($)?$.type!==_T?null:(te++,$):null),count:te}},[t.children]),x=W.useRef(null),[_,k]=fy(),[E,A]=W.useState(()=>t.enabled),[T,D]=W.useState(t.initialSwipe),[R,N,z]=Q2(!1),M=W.useMemo(()=>Object.assign({["--rv-swipe-slide-size"]:`${t.slideSize}%`,["--rv-swipe-track-offset"]:`${t.trackOffset}%`},t.style),[t.slideSize,t.trackOffset,t.style]),I=W.useMemo(()=>d*(b-1)<1?!1:i,[b,i,d]),Y=()=>{const te=x.current;return te?(f?te.offsetHeight:te.offsetWidth)*t.slideSize/100:0},B=te=>{let X=0,$=b-1;return t.stuckAtBoundary&&(X+=(1-d-m)/d,$-=(1-d-m)/d),vT(te,X,$)},[{position:P},U]=xI(()=>({position:B(T)*100,config:{tension:200,friction:30,duration:c},onRest:()=>{if(z.current||!I)return;const te=P.get(),X=100*b,$=$C(te,X);$!==te&&U.start({position:$,immediate:!0})}}),[b]),H=uj(te=>{var X;const $=Y();if(!$||!t.preventScroll&&ST(te.target,(X=_[T])===null||X===void 0?void 0:X.self))return;const ne=f?1:0,oe=te.offset[ne],ae=te.direction[ne],se=te.velocity[ne];if(N(!0),!te.last)U.start({position:oe*100/$,immediate:!0});else{const ve=Math.round((oe+Math.min(se*2e3,$)*ae)/$);K(ve),window.setTimeout(()=>{N(!1)})}},{enabled:E,transform:([te,X])=>[-te,-X],from:()=>{const te=Y();return[P.get()/100*te,P.get()/100*te]},bounds:()=>{if(I)return{};const te=Y(),X=B(0)*te,$=B(b-1)*te;return f?{top:X,bottom:$}:{left:X,right:$}},rubberband:t.rubberband,axis:g,preventScroll:g==="x"?t.preventScroll:!1,pointer:{touch:!0}}),V=()=>t.indicator===void 0||t.indicator===!0?Q("div",Object.assign({className:Re(Lc("indicator",{vertical:f}))},{children:Q(NI,Object.assign({},t.indicatorProps,{vertical:f,total:b,current:T}))})):typeof t.indicator=="function"?t.indicator(b,T):null;function K(te,X=!1){const $=Math.round(te),ne=I?$C($,b):vT($,0,b-1);D(ne),U.start({position:(I?$:B($))*100,immediate:X})}const ee=()=>{K(Math.round(P.get()/100)+1)},J=()=>{K(Math.round(P.get()/100)-1)};W.useImperativeHandle(r,()=>({activeIndex:T,swipeTo:K,swipeNext:ee,swipePrev:J,enable:()=>{A(!0)},disable:()=>{A(!1)}})),tp(()=>{const te=C.length-1;T>te&&K(te,!0)}),Rc(()=>{var te;(te=t.onChange)===null||te===void 0||te.call(t,T)},[T]),W.useEffect(()=>{if(!l||R)return Mi;const te=typeof l=="boolean"?5e3:l,X=window.setInterval(()=>{ee()},te);return()=>{window.clearInterval(X)}},[l,R]);const q=()=>I?Q("div",Object.assign({className:Re(Lc("track-inner",{vertical:f}))},{children:W.Children.map(C,(te,X)=>Q(pT.div,Object.assign({className:Re(Lc("slide")),style:{[g]:P.to($=>{let ne=-$+X*100;const oe=b*100,ae=oe/2;return ne=$C(ne+ae,oe)-ae,`${ne}%`}),[f?"top":"left"]:`-${X*100}%`}},{children:W.cloneElement(te,{ref:k(X),autoHeight:p,trackRef:x})})))})):Q(pT.div,Object.assign({className:Re(Lc("track-inner")),style:{[g]:P.to(te=>`${-te}%`)}},{children:W.Children.map(C,(te,X)=>Q("div",Object.assign({className:Re(Lc("slide"))},{children:W.cloneElement(te,{ref:k(X),autoHeight:p})})))}));return b===0&&void 0,Be("div",Object.assign({className:Re(t.className,Lc({vertical:f})),style:M},{children:[Q("div",Object.assign({ref:x,className:Re(Lc("track",{"allow-touch-move":t.touchable})),onClickCapture:te=>{z.current&&te.stopPropagation()}},t.touchable?H():{},{children:q()})),V()]}))});function $C(e,r){const t=e%r;return t<0?t+r:t}function ST(e,r){return r?e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight?!0:e.parentElement&&e.parentElement!==r?ST(e.parentElement,r):!1:!1}const ET=Object.assign(II,{Item:_T}),HI=e=>{const r=ea(e,{shape:"round",bindGroup:!0}),t=W.useRef(null),i=m=>r.parent&&r.bindGroup?r.parent.props[m]:null,l=W.useMemo(()=>i("disabled")||r.disabled,[r.parent,r.disabled]),f=W.useMemo(()=>i("direction")||null,[r.parent]),c=W.useMemo(()=>{const m=r.checkedColor||i("checkedColor");return m&&r.checked&&!l?{borderColor:m,backgroundColor:m}:{}},[r.checkedColor,r.checked,l]),p=m=>{const{target:C}=m,b=t.current,x=b===C||(b==null?void 0:b.contains(C));!l&&(x||!r.labelDisabled)&&r.onToggle&&r.onToggle(),r.onClick&&r.onClick(m)},g=()=>{const{bem:m,shape:C,checked:b}=r,x=r.iconSize||i("iconSize");return Q("div",Object.assign({ref:t,className:Re(m("icon",[C,{disabled:l,checked:b}])),style:{fontSize:dl(x)}},{children:r.iconRender?r.iconRender({checked:b,disabled:l}):Q(OD,{style:c})}))},d=()=>r.children?Q("span",Object.assign({className:r.bem("label",[r.labelPosition,{disabled:l}])},{children:r.children})):null;return Be("div",Object.assign({role:r.role,className:Re(r.bem([{disabled:l,"label-disabled":r.labelDisabled},f]),r.className),style:r.style,tabIndex:l?-1:0,"aria-checked":r.checked,onClick:p},{children:[r.labelPosition==="left"&&d(),g(),r.labelPosition!=="left"&&d()]}))},sX="";function VI(e){return[e.getFullYear(),e.getMonth()+1]}function YC(e,r){const t=e.getFullYear(),i=r.getFullYear();if(t===i){const l=e.getMonth(),f=r.getMonth();return l===f?0:l>f?1:-1}return t>i?1:-1}function ml(e,r){const t=YC(e,r);if(t===0){const i=e.getDate(),l=r.getDate();return i===l?0:i>l?1:-1}return t}const dy=e=>new Date(e),DT=e=>Array.isArray(e)?e.map(dy):dy(e);function qC(e,r){const t=dy(e);return t.setDate(t.getDate()+r),t}const kT=e=>qC(e,-1),TT=e=>qC(e,1),GC=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function $I(e){const r=e[0].getTime();return(e[1].getTime()-r)/(1e3*60*60*24)+1}function AT(e,r){let t=-1;const i=Array(e);for(;++t<e;)i[t]=r(t);return i}function YI(e){if(!e)return 0;for(;pD(parseInt(e,10));)if(e.length>1)e=e.slice(1);else return 0;return parseInt(e,10)}function KC(e,r){return 32-new Date(e,r-1,32).getDate()}const[Mp]=wn("calendar"),qI=e=>{const r=ea(e,{offset:0}),t=W.useMemo(()=>{const{item:d,index:m,color:C,offset:b,rowHeight:x}=r,_={height:x};if(d.type==="placeholder")return _.width="100%",_;if(m===0&&(_.marginLeft=`${100*b/7}%`),C)switch(d.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":_.background=C;break;case"middle":_.color=C;break}return _},[r.item,r.index,r.color,r.offset,r.rowHeight]),i=()=>{var d;r.item.type!=="disabled"&&((d=r.onClick)===null||d===void 0||d.call(r,r.item))},l=()=>{const{topInfo:d}=r.item;return d||r.topInfoRender?Q("div",Object.assign({className:Re(Mp("top-info"))},{children:r.topInfoRender?r.topInfoRender(r.item):d})):null},f=()=>{const{bottomInfo:d}=r.item;return d||r.bottomInfoRender?Q("div",Object.assign({className:Re(Mp("bottom-info"))},{children:r.bottomInfoRender?r.bottomInfoRender(r.item):d})):null},c=()=>{const{item:d,color:m,rowHeight:C}=r,{type:b,text:x}=d,_=Be(en,{children:[l(),x,f()]});return b==="selected"?Q("div",Object.assign({className:Re(Mp("selected-day")),style:{width:C,height:C,background:m}},{children:_})):_},{type:p,className:g}=r.item;return p==="placeholder"?Q("div",{className:Re(Mp("day")),style:t}):Q("div",Object.assign({role:"gridcell",style:t,className:Re(Mp("day",p),g),tabIndex:p==="disabled"?void 0:-1,onClick:i},{children:c()}))},[hy]=wn("calendar"),GI=W.forwardRef((e,r)=>{const[t,i]=W.useState(),l=W.useRef(),[f,c]=W.useState(),p=W.useRef(0),{locale:g}=W.useContext(vd);W.useEffect(()=>{f&&(p.current=gT(f).height)},[f]);const d=W.useMemo(()=>e.formatMonthTitle?e.formatMonthTitle(e.date):g.vanCalendar.monthTitle(...VI(e.date)),[e.date,e.formatMonthTitle]),m=W.useMemo(()=>dl(e.rowHeight),[e.rowHeight]),C=W.useMemo(()=>{const B=e.date.getDay();return e.firstDayOfWeek?(B+7-e.firstDayOfWeek)%7:B},[e.date,e.firstDayOfWeek]),b=W.useMemo(()=>KC(e.date.getFullYear(),e.date.getMonth()+1),[e.date]),x=W.useMemo(()=>t||!e.lazyRender,[t]),_=()=>d,k=B=>{const P=e.showSubtitle?l.current:f,U=(P==null?void 0:P.getBoundingClientRect().top)-B.getBoundingClientRect().top+B.scrollTop;fD(B,U)},E=B=>{const P=U=>e.currentDate.some(H=>ml(H,U)===0);if(P(B)){const U=kT(B),H=TT(B),V=P(U),K=P(H);return V&&K?"multiple-middle":V?"end":K?"start":"multiple-selected"}return""},A=B=>{const[P,U]=e.currentDate;if(!P)return"";const H=ml(B,P);if(!U)return H===0?"start":"";const V=ml(B,U);return e.allowSameDay&&H===0&&V===0?"start-end":H===0?"start":V===0?"end":H>0&&V<0?"middle":""},T=B=>{const{type:P,minDate:U,maxDate:H,currentDate:V}=e;if(ml(B,U)<0||ml(B,H)>0)return"disabled";if(V===null)return"";if(Array.isArray(V)){if(P==="multiple")return E(B);if(P==="range")return A(B)}else if(P==="single")return ml(B,V)===0?"selected":"";return""},D=B=>{if(e.type==="range"){if(B==="start")return g.vanCalendar.start;if(B==="end")return g.vanCalendar.end;if(B==="start-end")return g.vanCalendar.startEnd}return null},R=()=>e.showMonthTitle?Q("div",Object.assign({className:Re(hy("month-title"))},{children:d})):null,N=()=>e.showMark&&x?Q("div",Object.assign({className:Re(hy("month-mark"))},{children:e.date.getMonth()+1})):null,z=W.useMemo(()=>{const B=Math.ceil((b+C)/7);return Array(B).fill({type:"placeholder"})},[b,C]),M=W.useMemo(()=>{const B=[],P=e.date.getFullYear(),U=e.date.getMonth();for(let H=1;H<=b;H++){const V=new Date(P,U,H),K=T(V);let ee={date:V,type:K,text:H,bottomInfo:D(K)};e.formatter&&(ee=e.formatter(ee)),B.push(ee)}return B},[T,e.date,e.formatter]),I=(B,P)=>Q(qI,{item:B,index:P,color:e.color,offset:C,rowHeight:m,onClick:e.onClick,topInfoRender:e.topInfoRender,bottomInfoRender:e.bottomInfoRender},P),Y=()=>Be("div",Object.assign({ref:l,role:"grid",className:Re(hy("days"))},{children:[N(),(x?M:z).map(I)]}));return W.useImperativeHandle(r,()=>({getTitle:_,getHeight:()=>p.current,setVisible:i,scrollIntoView:k})),Be("div",Object.assign({className:Re(hy("month")),ref:c},{children:[R(),Y()]}))}),[Pp]=wn("calendar"),KI=e=>{const{locale:r}=W.useContext(vd),t=()=>{if(e.showTitle){const c=e.title||r.vanCalendar.title;return Q("div",Object.assign({className:Re(Pp("header-title"))},{children:c}))}return null},i=c=>{var p;(p=e.onClickSubtitle)===null||p===void 0||p.call(e,c)},l=()=>e.showSubtitle?Q("div",Object.assign({className:Re(Pp("header-subtitle")),onClick:i},{children:e.subtitle})):null,f=()=>{const{weekdays:c,firstDayOfWeek:p}=e,g=r.vanCalendar.weekdays,d=c?g.map((C,b)=>c[b]||C):g,m=[...d.slice(p,7),...d.slice(0,p)];return Q("div",Object.assign({className:Re(Pp("weekdays"))},{children:m.map((C,b)=>Q("span",Object.assign({className:Re(Pp("weekday"))},{children:C}),b))}))};return Be("div",Object.assign({className:Re(Pp("header"))},{children:[t(),l(),f()]}))},[_d]=wn("calendar"),WI=GC(),QI=(()=>{const e=GC();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())})(),OT=W.forwardRef((e,r)=>{var t,{className:i,style:l}=e,f=$a(e,["className","style"]);const c=ea(f,{round:!0,poppable:!0,showMark:!0,showTitle:!0,showConfirm:!0,showSubtitle:!0,closeOnPopstate:!0,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,defaultValue:null,type:"single",position:"bottom",maxRange:null,minDate:WI,maxDate:QI,firstDayOfWeek:0,showRangePrompt:!0}),{locale:p}=W.useContext(vd),[g,d]=np({value:c.visible,defaultValue:!1,onChange:$=>{var ne;$===!1&&((ne=c.onClose)===null||ne===void 0||ne.call(c))}}),m=($,ne=c.minDate,oe=c.maxDate)=>ml($,ne)===-1?ne:ml($,oe)===1?oe:$,C=($=c.defaultValue)=>{const{type:ne,minDate:oe,maxDate:ae}=c;if($===null)return $;const se=GC();if(ne==="range"){Array.isArray($)||($=[]);const ve=m($[0]||se,oe,kT(ae)),we=m($[1]||se,TT(oe));return[ve,we]}return ne==="multiple"?Array.isArray($)?$.map(ve=>m(ve)):[m(se)]:((!$||Array.isArray($))&&($=se),m($))},b=W.useRef(),x=W.useRef(0),[_,k]=W.useState(C(c.value===void 0?c.defaultValue:c.value)),[E,A]=yD({subtitle:"",currentDate:_});Rc(()=>{c.value!==void 0&&JSON.stringify(_)!==JSON.stringify(c.value)&&k(c.value)},[c.value]),W.useEffect(()=>{JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_})},[_]);const[T,D]=fy(),R=W.useMemo(()=>c.firstDayOfWeek?+c.firstDayOfWeek%7:0,[c.firstDayOfWeek,c.firstDayOfWeek]),N=W.useMemo(()=>{const $=[],ne=new Date(c.minDate);ne.setDate(1);do $.push(new Date(ne)),ne.setMonth(ne.getMonth()+1);while(YC(ne,c.maxDate)!==1);return $},[c.minDate,c.maxDate]),z=W.useMemo(()=>{const{currentDate:$}=E;if($){if(c.type==="range")return!$[0]||!$[1];if(c.type==="multiple")return!$.length}return!$},[c.type,E.currentDate]),M=()=>{var $;const ne=GL(b.current),oe=ne+x.current,ae=N.map((ye,De)=>T[De].getHeight()),se=ae.reduce((ye,De)=>ye+De,0);if(oe>se&&ne>0)return;let ve=0,we;const ce=[-1,-1];for(let ye=0;ye<N.length;ye++){const De=T[ye];ve<=oe&&ve+ae[ye]>=ne&&(ce[1]=ye,we||(we=De,ce[0]=ye),T[ye].showed||(T[ye].showed=!0,($=c.onMonthShow)===null||$===void 0||$.call(c,{date:De.date,title:De.getTitle()}))),ve+=ae[ye]}N.forEach((ye,De)=>{const Pe=De>=ce[0]-1&&De<=ce[1]+1;T[De].setVisible(Pe)}),we&&we.getTitle()!==E.subtitle&&!c.horizontal&&A({subtitle:we.getTitle()})},I=$=>{G2(()=>{N.some((ne,oe)=>YC(ne,$)===0?(b.current&&T[oe].scrollIntoView(b.current),!0):!1),M()})},Y=()=>{if(c.poppable&&!g)return;const{currentDate:$}=E;if($){const ne=c.type==="single"?$:$[0];I(ne)}else G2(M)},B=()=>{G2(()=>{x.current=Math.floor(gT(b.current).height),Y()})},P=($=C())=>{A({currentDate:$}),Y()},U=$=>{var ne;const{maxRange:oe,rangePrompt:ae,showRangePrompt:se}=c;return oe&&$I($)>oe?(se&&CT.info(ae||p.vanCalendar.rangePrompt(+oe)),(ne=c.onOverRange)===null||ne===void 0||ne.call(c),!1):!0},H=()=>{var $;const ne=DT(E.currentDate);c.poppable&&k(ne),($=c.onConfirm)===null||$===void 0||$.call(c,ne),X.close()},V=($,ne)=>{const oe=ae=>{var se;E.currentDate=ae,A({currentDate:ae}),(se=c.onSelect)===null||se===void 0||se.call(c,DT(E.currentDate))};if(ne&&c.type==="range"&&!U($)){c.showConfirm?oe([$[0],qC($[0],+c.maxRange-1)]):oe($);return}oe($),ne&&!c.showConfirm&&H()},K=$=>{var ne;if(c.readOnly||!$.date)return;const{date:oe}=$,{type:ae}=c,{currentDate:se}=E;if(ae==="range"){if(!se){V([oe]);return}const[ve,we]=se;if(ve&&!we){const ce=ml(oe,ve);ce===1?V([ve,oe],!0):ce===-1?V([oe]):c.allowSameDay&&V([oe,oe],!0)}else V([oe])}else if(ae==="multiple"){if(!se){V([oe]);return}let ve;if(E.currentDate.some((ce,ye)=>{const De=ml(ce,oe)===0;return De&&(ve=ye),De})){const[ce]=se.splice(ve,1);(ne=c.onUnselect)===null||ne===void 0||ne.call(c,dy(ce)),V([...se])}else c.maxRange&&se.length>=c.maxRange?CT(c.rangePrompt||`选择天数不能超过 ${c.maxRange} 天`):V([...se,oe])}else V(oe,!0)},ee=($,ne)=>{const oe=!c.horizontal&&(ne!==0||!c.showSubtitle);return Q(GI,Object.assign({ref:D(ne),date:$,currentDate:E.currentDate,showMonthTitle:oe,firstDayOfWeek:R},sD(c,["type","color","minDate","maxDate","showMark","formatter","rowHeight","showSubtitle","lazyRender","allowSameDay","topInfoRender","bottomInfoRender","formatMonthTitle"]),{onClick:K}),ne)},J=()=>{if(c.footer)return c.footer;if(c.showConfirm){const $=z?c.confirmDisabledText:c.confirmText;return Q(ip,Object.assign({round:!0,block:!0,type:"danger",color:c.color,className:Re(_d("confirm")),disabled:z,nativeType:"button",onClick:H},{children:$||p.vanCalendar.confirm}))}return null},q=()=>Q("div",Object.assign({className:Re(_d("footer"),{"rv-safe-area-bottom":c.safeAreaInsetBottom})},{children:J()})),te=()=>Be("div",Object.assign({className:Re(i,_d()),style:l},{children:[Q(KI,{weekdays:c.weekdays,title:c.title,subtitle:c.subtitle||E.subtitle,showTitle:c.showTitle,showSubtitle:c.showSubtitle,firstDayOfWeek:R,onClickSubtitle:$=>{var ne;(ne=c.onClickSubtitle)===null||ne===void 0||ne.call(c,$)}}),c.horizontal?Q("div",Object.assign({ref:b,className:Re(_d("horizontal-body"))},{children:Q(ET,Object.assign({indicator:()=>null,onChange:$=>{A({subtitle:T[$].getTitle()})}},{children:N.map(($,ne)=>Q(ET.Item,{children:ee($,ne)},$))}))})):Q("div",Object.assign({ref:b,className:Re(_d("body")),onScroll:M},{children:N.map(ee)})),q()]})),X={toggle:()=>{c.poppable&&d($=>!$)},open:()=>{c.poppable&&d(!0)},close:()=>{c.poppable&&d(!1)}};return W.useEffect(()=>{c.poppable||B()},[]),W.useEffect(()=>{c.poppable&&g&&B()},[g]),Rc(()=>{P(C(E.currentDate))},[c.type,c.minDate,c.maxDate]),W.useImperativeHandle(r,()=>Object.assign({reset:P,scrollToDate:I},X)),c.poppable?Be(en,{children:[Q(sp,Object.assign({visible:g,className:Re(_d("popup")),round:c.round,position:c.position,closeable:c.showTitle||c.showSubtitle,closeOnPopstate:c.closeOnPopstate,closeOnClickOverlay:c.closeOnClickOverlay,onClose:X.close,onClosed:()=>{var $;c.poppable&&JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_}),($=c.onClosed)===null||$===void 0||$.call(c)}},{children:te()})),(t=c.children)===null||t===void 0?void 0:t.call(c,_,X)]}):te()});function ZI(e,r){var t;process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const i=xD(e),l=(t=r==null?void 0:r.wait)!==null&&t!==void 0?t:1e3,f=W.useMemo(()=>PI((...c)=>i.current(...c),l,r),[]);return bD(()=>{f.cancel()}),{run:f,cancel:f.cancel,flush:f.flush}}function XI(e,r,t){const[i,l]=W.useState({}),{run:f}=ZI(()=>{l({})},t);W.useEffect(()=>f(),r),Rc(e,[i])}const hX="",RT=W.createContext({}),[JI]=wn("checkbox-group"),eH=W.forwardRef((e,r)=>{const[t,i]=fy(),[l,f]=wT({value:e.value,defaultValue:e.defaultValue}),c=(g={})=>{typeof g=="boolean"&&(g={checked:g});const{checked:d,skipDisabled:m}=g,b=t.filter(x=>x.props.bindGroup?x.props.disabled&&m?x.checked:d??!x.checked:!1).map(x=>x.props.name);f(b),e.onChange(b)},p=g=>{var d;f(g),(d=e.onChange)===null||d===void 0||d.call(e,g)};return W.useImperativeHandle(r,()=>({toggleAll:c})),Q(RT.Provider,Object.assign({value:{parent:{props:e},toggle:p,checked:l||[]}},{children:Q("div",Object.assign({className:Re(e.className,JI([e.direction]))},{children:W.Children.toArray(e.children).filter(Boolean).map((g,d)=>{var m;return((m=g.type)===null||m===void 0?void 0:m.displayName)!=="Checkbox"?g:W.cloneElement(g,{ref:i(d)})})}))}))}),[tH]=wn("checkbox"),FT=W.forwardRef((e,r)=>{const t=ea(e,{bindGroup:!0}),i=W.useContext(RT),{parent:l}=i,f=$a(i,["parent"]),[c,p]=wT({value:t.checked,defaultValue:t.defaultChecked}),g=C=>{const{name:b}=t,{max:x}=l.props,_=f.checked.slice();if(C)!(x&&_.length>=x)&&_.indexOf(b)===-1&&(_.push(b),t.bindGroup&&f.toggle(_));else{const k=_.indexOf(b);k!==-1&&(_.splice(k,1),t.bindGroup&&f.toggle(_))}},d=W.useMemo(()=>l&&t.bindGroup?f.checked.indexOf(t.name)!==-1:c,[f.checked,c]),m=(C=!d)=>{var b;l&&t.bindGroup?g(C):(p(C),(b=t.onChange)===null||b===void 0||b.call(t,C))};return W.useImperativeHandle(r,()=>({toggle:m,checked:d,props:t})),Q(HI,Object.assign({},t,{bem:tH,role:"checkbox",parent:l,checked:d,className:t.className,bindGroup:t.bindGroup,onToggle:m}))});FT.displayName="Checkbox";const NT=Object.assign(FT,{Group:eH}),gX="",MT=200,PT=300,nH=15;function rH(e){const r=window.getComputedStyle(e),t=r.transform||r.webkitTransform,i=t.slice(7,t.length-1).split(", ")[5];return Number(i)}const[WC]=wn("picker-column"),aH=W.memo(W.forwardRef((e,r)=>{const{locale:t}=W.useContext(vd),{valueKey:i,textKey:l,itemHeight:f,visibleItemCount:c,placeholder:p,value:g}=e,d=W.useMemo(()=>vD(f),[f]),m=W.useMemo(()=>Array.isArray(e.options)&&!e.options.length?[]:p?[{[i]:void 0,[l]:p===!0?t.vanPicker.select:p},...e.options]:e.options,[e.options]),C=W.useRef(null),b=W.useRef(!1),x=W.useRef(0),_=W.useRef(null),k=W.useRef(0),E=W.useRef(0),[A,T,D]=yD({offset:0,duration:0}),R=_D(),N=W.useMemo(()=>d*(+c-1)/2,[d,c]),z=q=>{var te,X;q=ep(q,0,m.length);for(let $=q;$<m.length;$+=1)if(!(!((te=m[$])===null||te===void 0)&&te.disabled))return $;for(let $=q-1;$>=0;$-=1)if(!(!((X=m[$])===null||X===void 0)&&X.disabled))return $;return null},M=q=>{e.onSelect(q,e.index)},I=q=>{q=z(q)||0;const te=-q*d,X=()=>{var $;(($=m[q])===null||$===void 0?void 0:$[i])!==g&&M(m[q])};b.current&&te!==D.current.offset?_.current=X:X(),T({offset:te})},Y=q=>{q=z(q)||0;const te=-q*d;T({offset:te})};tp(()=>{if(m.length===0)g!==void 0&&M(void 0);else{let q=m.findIndex(te=>te[i]===g);q<0&&(q=0,M(m[0])),Y(q)}},[g,JSON.stringify(m)]);const B=q=>{b.current||e.readOnly||(_.current=null,T({duration:MT}),I(q))},P=q=>ep(Math.round(-q/d),0,m.length-1),U=(q,te)=>{const X=Math.abs(q/te);q=D.current.offset+X/.003*(q<0?-1:1);const $=P(q);T({duration:+e.swipeDuration}),I($)},H=()=>{b.current=!1,T({duration:0}),_.current&&(_.current(),_.current=null)},V=q=>{if(e.readOnly)return;R.start(q);let{offset:te}=A;if(b.current){const X=rH(C.current);te=Math.min(0,X-N),x.current=te}else x.current=te;T({duration:0,offset:te}),k.current=Date.now(),E.current=x.current,_.current=null},K=q=>{if(e.readOnly)return;R.move(q),R.isVertical()&&(b.current=!0);const te=ep(x.current+R.deltaY.current,-(m.length*d),d);T({offset:te});const X=Date.now();X-k.current>PT&&(k.current=X,E.current=te)},ee=()=>{if(e.readOnly||!b.current)return;const q=D.current.offset-E.current,te=Date.now()-k.current;if(te<PT&&Math.abs(q)>nH){U(q,te);return}const $=P(D.current.offset);T({duration:MT}),I($),setTimeout(()=>{b.current=!1},0)},J=()=>{const q={height:`${e.itemHeight}px`};return m.map((te,X)=>{const{disabled:$}=te,ne={role:"button",style:q,tabIndex:$?-1:0,className:Re(WC("item",{disabled:$,selected:te[i]===g})),onClick:()=>{B(X)}},oe={className:"rv-ellipsis",children:te[l]};return W.createElement("li",Object.assign({},ne,{key:X}),e.optionRender?e.optionRender(te):Q("div",Object.assign({},oe)))})};return W.useImperativeHandle(r,()=>({stopMomentum:H})),Q("div",Object.assign({className:Re(WC(),e.className),onTouchStart:V,onTouchMove:K,onTouchEnd:ee,onTouchCancel:ee},{children:Q("ul",Object.assign({ref:C,style:{transform:`translate3d(0, ${A.offset+N}px, 0)`,transitionDuration:`${A.duration}ms`,transitionProperty:A.duration?"all":"none"},className:Re(WC("wrapper")),onTransitionEnd:H},{children:J()}))}))}),(e,r)=>!(e.index!==r.index||e.value!==r.value||e.onSelect!==r.onSelect||JSON.stringify(e.options)!==JSON.stringify(r.options)));function iH(e,r){const{textKey:t,valueKey:i,childrenKey:l}=r,f=W.useMemo(()=>{if(e.some(d=>typeof d=="object"&&l in d))return"cascade";const g=e[0]||{};return typeof g=="object"?l in g?"cascade":"object":"plain"},[e,l]),c=W.useMemo(()=>{let p=0;function g(d,m){m>p&&(p=m);const C=m+1;d.forEach(b=>{b[l]&&g(b[l],C)})}return g(e,1),p},[e,l]);return f!=="cascade"?e:p=>{const g=[];let d=e,m=0;for(;;){g.push(d.map(x=>{var _;return{[t]:x[t],[i]:(_=x[i])!==null&&_!==void 0?_:x[t]}}));const C=p[m],b=d.find(x=>{var _;return((_=x[i])!==null&&_!==void 0?_:x[t])===C});if(!b||!b[l])break;d=b[l],m++}for(;m<c-1;)g.push([]),m++;return g}}function QC(e){let r=null;return()=>(r===null&&(r=e()),r)}function oH(e,r,t){const{textKey:i,valueKey:l}=r,f=QC(()=>{let d=typeof e=="function"?e(t):e;return Array.isArray(d[0])||(d=[d]),d.map(m=>m.map(C=>typeof C=="string"?{[i]:C,[l]:C}:(l in C||(C[l]=C[i]),C)))}),c=QC(()=>t.map((d,m)=>{var C;const b=f()[m];return b?(C=b.find(x=>x[l]===d))!==null&&C!==void 0?C:void 0:null})),p=QC(()=>t.map((d,m)=>{var C;const b=f()[m];return b&&(C=b.findIndex(x=>x[l]===d))!==null&&C!==void 0?C:null}));return{get columns(){return f()},get items(){return c()},get indexes(){return p()}}}function BT(e,r,t){const i=iH(e,r);return W.useMemo(()=>oH(i,r,t),[e,r,t])}const[cs]=wn("picker");function lH(e){const{locale:r}=W.useContext(vd),t=W.useRef(null),[i,l]=fy(),{text:f,value:c,children:p}=Jh({text:"text",value:"value",children:"children"},e.columnsFieldNames),[g,d]=W.useState(e.value);W.useEffect(()=>{e.value!==void 0&&JSON.stringify(g)!==JSON.stringify(e.value)&&d(e.value)},[e.value]);const m=BT(e.columns,{textKey:f,valueKey:c,childrenKey:p},g),{columns:C,items:b,indexes:x}=m;XI(()=>{var I;JSON.stringify(e.value)!==JSON.stringify(g)&&((I=e.onChange)===null||I===void 0||I.call(e,g,b,x))},[g],{wait:100,leading:!1,trailing:!0});const _=W.useMemo(()=>vD(e.itemHeight),[e.itemHeight]),k=(I,Y)=>{d(B=>{const P=[...B];return P[Y]=I==null?void 0:I[c],P})},E=()=>{var I;i.forEach(Y=>Y.stopMomentum()),(I=e.onConfirm)===null||I===void 0||I.call(e,g,b,x)},A=()=>{var I;(I=e.onCancel)===null||I===void 0||I.call(e)},T=()=>e.title?Q("div",Object.assign({className:Re(cs("title"),"rv-ellipsis")},{children:e.title})):null,D=()=>{const I=e.cancelButtonText||r.cancel;return Q("button",Object.assign({type:"button",className:Re(cs("cancel")),onClick:A},{children:I}))},R=()=>{const I=e.confirmButtonText||r.confirm;return Q("button",Object.assign({type:"button",className:Re(cs("confirm")),onClick:E},{children:I}))},N=()=>e.showToolbar?Q("div",Object.assign({className:Re(cs("toolbar"))},{children:e.toolbar||Be(en,{children:[D(),T(),R()]})})):null,z=()=>C.map((I,Y)=>{const B=Array.isArray(e.placeholder)?e.placeholder[Y]:e.placeholder;return Q(aH,{textKey:f,valueKey:c,ref:l(Y),placeholder:B,optionRender:e.optionRender,readOnly:e.readOnly,value:g[Y],itemHeight:_,index:Y,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,options:I,onSelect:k},Y)}),M=()=>{const I=_*e.visibleItemCount,Y={height:`${_}px`},B={height:`${I}px`},P={backgroundSize:`100% ${(I-_)/2}px`};return Be("div",Object.assign({ref:t,className:Re(cs("columns")),style:B},{children:[z(),Q("div",{className:Re(cs("mask")),style:P}),Q("div",{className:Re(wz,cs("frame")),style:Y})]}))};return W2("touchmove",q2,{target:t.current}),Be("div",Object.assign({className:Re(cs(),e.className)},{children:[e.toolbarPosition==="top"?N():null,e.loading?Q(X2,{className:Re(cs("loading"))}):null,e.columnsTop,M(),e.columnsBottom,e.toolbarPosition==="bottom"?N():null]}))}function sH(e,r){const t=ea(e,{columns:[],itemHeight:44,visibleItemCount:5,swipeDuration:300,showToolbar:!0,placeholder:!0,toolbarPosition:"top"}),{visible:i,popup:l,children:f,defaultValue:c=[]}=t,p=$a(t,["visible","popup","children","defaultValue"]),[g,d]=np({value:i,defaultValue:!1,onChange:U=>{var H;U===!1&&((H=t.onClose)===null||H===void 0||H.call(t))}}),m={toggle:()=>{l&&d(U=>!U)},open:()=>{l&&d(!0)},close:()=>{l&&d(!1)}};W.useImperativeHandle(r,()=>m);const C=Array.isArray(t.value)?t.value:t.value!==void 0?[t.value]:void 0,b=Array.isArray(c)?c:c!==void 0?[c]:[],{text:x,value:_,children:k}=Jh({text:"text",value:"value",children:"children"},t.columnsFieldNames),E=W.useMemo(()=>{const U=t.columns[0]||{};return!(Array.isArray(U)||typeof U=="object"&&k in U)},[t.columns,k]),A=U=>E?U==null?void 0:U[0]:U,[T,D]=np({value:C,defaultValue:b}),R=BT(t.columns,{textKey:x,valueKey:_,childrenKey:k},T),[N,z]=W.useState(T);W.useEffect(()=>{l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[g]),W.useEffect(()=>{!l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[T]);const M=(U,H,V)=>{var K;D(N,!0),(K=t.onConfirm)===null||K===void 0||K.call(t,A(U),A(H),A(V)),l&&m.close()},I=()=>{var U;(U=t.onCancel)===null||U===void 0||U.call(t),l&&m.close()},Y=DD((U,H,V)=>{var K,ee;z(U),l?g&&((K=t.onChange)===null||K===void 0||K.call(t,A(U),A(H),A(V))):(ee=t.onChange)===null||ee===void 0||ee.call(t,A(U),A(H),A(V))}),B=cd(l)?Object.assign({closeOnClickOverlay:!0},l):{closeOnClickOverlay:!0},P=Q(lH,Object.assign({},p,{value:N,onCancel:I,onConfirm:M,onChange:Y}));return l?Be(en,{children:[Q(sp,Object.assign({round:!0,position:"bottom",visible:g,closeOnClickOverlay:!0,onClickOverlay:()=>{B!=null&&B.closeOnClickOverlay&&d(!1)}},B,{children:P})),f==null?void 0:f(A(T),A(R.items),m)]}):P}const ZC=W.forwardRef(sH);function uH(e){return Object.prototype.toString.call(e)==="[object Date]"&&!pD(e.getTime())}const cH=W.forwardRef((e,r)=>{const t=ea(e,{type:"datetime",placeholder:!1,minDate:fH,maxDate:dH,formatter:(M,I)=>I}),{value:i,defaultValue:l,formatter:f,columnsOrder:c,type:p,filter:g,minDate:d,maxDate:m}=t,C=$a(t,["value","defaultValue","formatter","columnsOrder","type","filter","minDate","maxDate"]),b=M=>(uH(M)||(M=new Date),M=Math.max(M,d.getTime()),M=Math.min(M,m.getTime()),new Date(M)),[x,_,k]=Q2(()=>b(i||l)),E=(M,I)=>{const Y=t[`${M}Date`],B=Y.getFullYear();let P=1,U=1,H=0,V=0;return M==="max"&&(P=12,U=KC(I.getFullYear(),I.getMonth()+1),H=23,V=59),I.getFullYear()===B&&(P=Y.getMonth()+1,I.getMonth()+1===P&&(U=Y.getDate(),I.getDate()===U&&(H=Y.getHours(),I.getHours()===H&&(V=Y.getMinutes())))),{[`${M}Year`]:B,[`${M}Month`]:P,[`${M}Date`]:U,[`${M}Hour`]:H,[`${M}Minute`]:V}},A=W.useMemo(()=>{const{maxYear:M,maxDate:I,maxMonth:Y,maxHour:B,maxMinute:P}=E("max",k.current),{minYear:U,minDate:H,minMonth:V,minHour:K,minMinute:ee}=E("min",k.current);let J=[{type:"year",range:[U,M]},{type:"month",range:[V,Y]},{type:"day",range:[H,I]},{type:"hour",range:[K,B]},{type:"minute",range:[ee,P]}];switch(p){case"date":J=J.slice(0,3);break;case"year-month":J=J.slice(0,2);break;case"month-day":J=J.slice(1,3);break;case"datehour":J=J.slice(0,4);break}if(c){const q=c.concat(J.map(te=>te.type));J.sort((te,X)=>q.indexOf(te.type)-q.indexOf(X.type))}return J.map(({type:q,range:te})=>{let X=AT(te[1]-te[0]+1,$=>hl(te[0]+$));return g&&(X=g(q,X)),{type:q,values:X}})},[c,k.current,d,m]),T=W.useMemo(()=>A.map(M=>M.values.map(I=>f(M.type,I))),[A,f]),D=W.useMemo(()=>{const M=t.popup?b(k.current):k.current;return A.map(Y=>{switch(Y.type){case"year":return f("year",`${M.getFullYear()}`);case"month":return f("month",hl(M.getMonth()+1));case"day":return f("day",hl(M.getDate()));case"hour":return f("hour",hl(M.getHours()));case"minute":return f("minute",hl(M.getMinutes()));default:return""}})},[t.value,k.current,b]),R=M=>{const{type:I}=t,Y=ee=>{let J=0;A.forEach((te,X)=>{ee===te.type&&(J=X)});const{values:q}=A[J];return YI(q[M[J]])};let B=null,P=null,U=null;I==="month-day"?(B=(x||d).getFullYear(),P=Y("month"),U=Y("day")):(B=Y("year"),P=Y("month"),U=I==="year-month"?1:Y("day"));const H=KC(B,P);U=U>H?H:U;let V=0,K=0;return I==="datehour"&&(V=+Y("hour")),I==="datetime"&&(V=+Y("hour"),K=+Y("minute")),b(new Date(B,P-1,U,V,K))},N=(M,I,Y)=>{var B;const P=R(Y);_(P),(B=t.onChange)===null||B===void 0||B.call(t,P)},z=()=>{var M;(M=t.onConfirm)===null||M===void 0||M.call(t,x)};return Rc(()=>{const M=b(i);M&&M.valueOf()!==(x==null?void 0:x.valueOf())&&_(M)},[i,g,d,m]),Q(ZC,Object.assign({},C,{value:D,ref:r,columns:T,onChange:N,onConfirm:z,onCancel:t.onCancel},{children:(M,I,Y)=>{var B;return(B=t.children)===null||B===void 0?void 0:B.call(t,i||l,I,Y)}}))}),LT=new Date().getFullYear(),fH=new Date(LT-10,0,1),dH=new Date(LT+10,11,31),hH=cH,pH=W.forwardRef((e,r)=>{const t=ea(e,{minHour:0,maxHour:23,minMinute:0,maxMinute:59,placeholder:!1,defaultValue:"",formatter:(z,M)=>M}),{value:i,defaultValue:l,formatter:f,filter:c,minHour:p,maxHour:g,minMinute:d,maxMinute:m}=t,C=$a(t,["value","defaultValue","formatter","filter","minHour","maxHour","minMinute","maxMinute"]),b=z=>{z||(z=`${hl(p)}:${hl(d)}`);let[M,I]=z.split(":");return M=hl(ep(M,+p,+g)),I=hl(ep(I,+d,+m)),`${M}:${I}`},[x,_]=W.useState(()=>b(i===void 0?l:i)),k=W.useMemo(()=>[{type:"hour",range:[+p,+g]},{type:"minute",range:[+d,+m]}],[p,g,d,m]),E=W.useMemo(()=>k.map(({type:z,range:M})=>{let I=AT(M[1]-M[0]+1,Y=>hl(M[0]+Y));return c&&(I=c(z,I)),{type:z,values:I}}),[k]),A=W.useMemo(()=>E.map(z=>z.values.map(M=>f(z.type,M))),[E]),T=W.useMemo(()=>{const z=(t.popup?b(t.value):x).split(":");return[f("hour",z[0]),f("minute",z[1])]},[t.value,x,b]),D=()=>{var z;(z=t.onConfirm)===null||z===void 0||z.call(t,x)},R=()=>{var z;(z=t.onCancel)===null||z===void 0||z.call(t)},N=z=>{var M;const I=b(z.join(":"));_(I),(M=t.onChange)===null||M===void 0||M.call(t,I)};return Rc(()=>{const z=b(x);_(z)},[c,p,g,d,m]),Rc(()=>{const z=b(i);z!==x&&_(z)},[i]),Q(ZC,Object.assign({},C,{ref:r,columns:A,value:T,onChange:N,onConfirm:D,onCancel:R},{children:(z,M,I)=>{var Y;return(Y=t.children)===null||Y===void 0?void 0:Y.call(t,i,M,I)}}))}),[zT]=wn("datetime-picker"),XC=W.forwardRef((e,r)=>e.type==="time"?Q(pH,Object.assign({ref:r,className:Re(zT())},e)):Q(hH,Object.assign({ref:r,className:Re(zT())},e)));function JC(e){return Array.isArray(e)?e:[e]}const wX="";function UT(e,r){this.v=e,this.k=r}function Da(e,r,t,i){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}Da=function(c,p,g,d){function m(C,b){Da(c,C,function(x){return this._invoke(C,b,x)})}p?l?l(c,p,{value:g,enumerable:!d,configurable:!d,writable:!d}):c[p]=g:(m("next",0),m("throw",1),m("return",2))},Da(e,r,t,i)}function ew(){var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function f(x,_,k,E){var A=_&&_.prototype instanceof p?_:p,T=Object.create(A.prototype);return Da(T,"_invoke",function(D,R,N){var z,M,I,Y=0,B=N||[],P=!1,U={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(K,ee){return z=K,M=0,I=e,U.n=ee,c}};function H(V,K){for(M=V,I=K,r=0;!P&&Y&&!ee&&r<B.length;r++){var ee,J=B[r],q=U.p,te=J[2];V>3?(ee=te===K)&&(I=J[(M=J[4])?5:(M=3,3)],J[4]=J[5]=e):J[0]<=q&&((ee=V<2&&q<J[1])?(M=0,U.v=K,U.n=J[1]):q<te&&(ee=V<3||J[0]>K||K>te)&&(J[4]=V,J[5]=K,U.n=te,M=0))}if(ee||V>1)return c;throw P=!0,K}return function(V,K,ee){if(Y>1)throw TypeError("Generator is already running");for(P&&K===1&&H(K,ee),M=K,I=ee;(r=M<2?e:I)||!P;){z||(M?M<3?(M>1&&(U.n=-1),H(M,I)):U.n=I:U.v=I);try{if(Y=2,z){if(M||(V="next"),r=z[V]){if(!(r=r.call(z,I)))throw TypeError("iterator result is not an object");if(!r.done)return r;I=r.value,M<2&&(M=0)}else M===1&&(r=z.return)&&r.call(z),M<2&&(I=TypeError("The iterator does not provide a '"+V+"' method"),M=1);z=e}else if((r=(P=U.n<0)?I:D.call(R,U))!==c)break}catch(J){z=e,M=1,I=J}finally{Y=1}}return{value:r,done:P}}}(x,k,E),!0),T}var c={};function p(){}function g(){}function d(){}r=Object.getPrototypeOf;var m=[][i]?r(r([][i]())):(Da(r={},i,function(){return this}),r),C=d.prototype=p.prototype=Object.create(m);function b(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,d):(x.__proto__=d,Da(x,l,"GeneratorFunction")),x.prototype=Object.create(C),x}return g.prototype=d,Da(C,"constructor",d),Da(d,"constructor",g),g.displayName="GeneratorFunction",Da(d,l,"GeneratorFunction"),Da(C),Da(C,l,"Generator"),Da(C,i,function(){return this}),Da(C,"toString",function(){return"[object Generator]"}),(ew=function(){return{w:f,m:b}})()}function py(e,r){function t(l,f,c,p){try{var g=e[l](f),d=g.value;return d instanceof UT?r.resolve(d.v).then(function(m){t("next",m,c,p)},function(m){t("throw",m,c,p)}):r.resolve(d).then(function(m){g.value=m,c(g)},function(m){return t("throw",m,c,p)})}catch(m){p(m)}}var i;this.next||(Da(py.prototype),Da(py.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Da(this,"_invoke",function(l,f,c){function p(){return new r(function(g,d){t(l,c,g,d)})}return i=i?i.then(p,p):p()},!0)}function jT(e,r,t,i,l){return new py(ew().w(e,r,t,i),l||Promise)}function vH(e,r,t,i,l){var f=jT(e,r,t,i,l);return f.next().then(function(c){return c.done?c.value:f.next()})}function mH(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function l(){for(;t.length;)if((i=t.pop())in r)return l.value=i,l.done=!1,l;return l.done=!0,l}}function IT(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(Mr(e)+" is not iterable")}function ro(){var e=ew(),r=e.m(ro),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(c){var p=typeof c=="function"&&c.constructor;return!!p&&(p===t||(p.displayName||p.name)==="GeneratorFunction")}var l={throw:1,return:2,break:3,continue:3};function f(c){var p,g;return function(d){p||(p={stop:function(){return g(d.a,2)},catch:function(){return d.v},abrupt:function(C,b){return g(d.a,l[C],b)},delegateYield:function(C,b,x){return p.resultName=b,g(d.d,IT(C),x)},finish:function(C){return g(d.f,C)}},g=function(C,b,x){d.p=p.prev,d.n=p.next;try{return C(b,x)}finally{p.next=d.n}}),p.resultName&&(p[p.resultName]=d.v,p.resultName=void 0),p.sent=d.v,p.next=d.n;try{return c.call(this,p)}finally{d.p=p.prev,d.n=p.next}}}return(ro=function(){return{wrap:function(g,d,m,C){return e.w(f(g),d,m,C&&C.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(g,d){return new UT(g,d)},AsyncIterator:py,async:function(g,d,m,C,b){return(i(d)?jT:vH)(f(g),d,m,C,b)},keys:mH,values:IT}})()}function HT(e,r,t,i,l,f,c){try{var p=e[f](c),g=p.value}catch(d){return void t(d)}p.done?r(g):Promise.resolve(g).then(i,l)}function Bp(e){return function(){var r=this,t=arguments;return new Promise(function(i,l){var f=e.apply(r,t);function c(g){HT(f,i,l,c,p,"next",g)}function p(g){HT(f,i,l,c,p,"throw",g)}c(void 0)})}}function gH(e){if(Array.isArray(e))return Cb(e)}function VT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
197
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function an(e){return gH(e)||VT(e)||wb(e)||yH()}function tw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function $T(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,V4(i.key),i)}}function nw(e,r,t){return r&&$T(e.prototype,r),t&&$T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xH(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Pg(e,r)}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vy(e)}function YT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YT=function(){return!!e})()}function bH(e,r){if(r&&(Mr(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pn(e)}function CH(e){var r=YT();return function(){var t,i=vy(e);if(r){var l=vy(this).constructor;t=Reflect.construct(i,arguments,l)}else t=i.apply(this,arguments);return bH(this,t)}}function rw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return W.Children.forEach(e,function(i){i==null&&!r.keepEmpty||(Array.isArray(i)?t=t.concat(rw(i)):l9(i)&&i.props?t=t.concat(rw(i.props.children,r)):t.push(i))}),t}function qT(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function l(f,c){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=i.has(f);if(_r(!g,"Warning: There may be circular references"),g)return!1;if(f===c)return!0;if(t&&p>1)return!1;i.add(f);var d=p+1;if(Array.isArray(f)){if(!Array.isArray(c)||f.length!==c.length)return!1;for(var m=0;m<f.length;m++)if(!l(f[m],c[m],d))return!1;return!0}if(f&&c&&Mr(f)==="object"&&Mr(c)==="object"){var C=Object.keys(f);return C.length!==Object.keys(c).length?!1:C.every(function(b){return l(f[b],c[b],d)})}return!1}return l(e,r)}var zc="RC_FORM_INTERNAL_HOOKS",Fn=function(){_r(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},vu=Me.createContext({getFieldValue:Fn,getFieldsValue:Fn,getFieldError:Fn,getFieldWarning:Fn,getFieldsError:Fn,isFieldsTouched:Fn,isFieldTouched:Fn,isFieldValidating:Fn,isFieldsValidating:Fn,resetFields:Fn,setFields:Fn,setFieldValue:Fn,setFieldsValue:Fn,validateFields:Fn,submit:Fn,getInternalHooks:function(){return Fn(),{dispatch:Fn,initEntityValue:Fn,registerField:Fn,useSubscribe:Fn,setInitialValues:Fn,destroyForm:Fn,setCallbacks:Fn,registerWatch:Fn,getFields:Fn,setValidateMessages:Fn,setPreserve:Fn,getInitialValue:Fn}}}),my=Me.createContext(null);function aw(e){return e==null?[]:Array.isArray(e)?e:[e]}function wH(e){return e&&!!e._init}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Uc.apply(this,arguments)}function _H(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Lp(e,r)}function iw(e){return iw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iw(e)}function Lp(e,r){return Lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},Lp(e,r)}function SH(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gy(e,r,t){return SH()?gy=Reflect.construct.bind():gy=function(l,f,c){var p=[null];p.push.apply(p,f);var g=Function.bind.apply(l,p),d=new g;return c&&Lp(d,c.prototype),d},gy.apply(null,arguments)}function EH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ow(e){var r=typeof Map=="function"?new Map:void 0;return ow=function(i){if(i===null||!EH(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(i))return r.get(i);r.set(i,l)}function l(){return gy(i,arguments,iw(this).constructor)}return l.prototype=Object.create(i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),Lp(l,i)},ow(e)}var DH=/%[sdj%]/g,GT=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(GT=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(i){return typeof i=="string"})});function lw(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var i=t.field;r[i]=r[i]||[],r[i].push(t)}),r}function Li(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];var l=0,f=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var c=e.replace(DH,function(p){if(p==="%%")return"%";if(l>=f)return p;switch(p){case"%s":return String(t[l++]);case"%d":return Number(t[l++]);case"%j":try{return JSON.stringify(t[l++])}catch{return"[Circular]"}break;default:return p}});return c}return e}function kH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Br(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||kH(r)&&typeof e=="string"&&!e)}function TH(e,r,t){var i=[],l=0,f=e.length;function c(p){i.push.apply(i,p||[]),l++,l===f&&t(i)}e.forEach(function(p){r(p,c)})}function KT(e,r,t){var i=0,l=e.length;function f(c){if(c&&c.length){t(c);return}var p=i;i=i+1,p<l?r(e[p],f):t([])}f([])}function AH(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,e[t]||[])}),r}var WT=function(e){_H(r,e);function r(t,i){var l;return l=e.call(this,"Async Validation Error")||this,l.errors=t,l.fields=i,l}return r}(ow(Error));function OH(e,r,t,i,l){if(r.first){var f=new Promise(function(b,x){var _=function(A){return i(A),A.length?x(new WT(A,lw(A))):b(l)},k=AH(e);KT(k,t,_)});return f.catch(function(b){return b}),f}var c=r.firstFields===!0?Object.keys(e):r.firstFields||[],p=Object.keys(e),g=p.length,d=0,m=[],C=new Promise(function(b,x){var _=function(E){if(m.push.apply(m,E),d++,d===g)return i(m),m.length?x(new WT(m,lw(m))):b(l)};p.length||(i(m),b(l)),p.forEach(function(k){var E=e[k];c.indexOf(k)!==-1?KT(E,t,_):TH(E,t,_)})});return C.catch(function(b){return b}),C}function RH(e){return!!(e&&e.message!==void 0)}function FH(e,r){for(var t=e,i=0;i<r.length;i++){if(t==null)return t;t=t[r[i]]}return t}function QT(e,r){return function(t){var i;return e.fullFields?i=FH(r,e.fullFields):i=r[t.field||e.fullField],RH(t)?(t.field=t.field||e.fullField,t.fieldValue=i,t):{message:typeof t=="function"?t():t,fieldValue:i,field:t.field||e.fullField}}}function ZT(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var i=r[t];typeof i=="object"&&typeof e[t]=="object"?e[t]=Uc({},e[t],i):e[t]=i}}return e}var XT=function(r,t,i,l,f,c){r.required&&(!i.hasOwnProperty(r.field)||Br(t,c||r.type))&&l.push(Li(f.messages.required,r.fullField))},NH=function(r,t,i,l,f){(/^\s+$/.test(t)||t==="")&&l.push(Li(f.messages.whitespace,r.fullField))},yy,MH=function(){if(yy)return yy;var e="[a-fA-F\\d:]",r=function(R){return R&&R.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",l=(`
198
198
  (?:
199
199
  (?:`+i+":){7}(?:"+i+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
@@ -205,4 +205,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
205
205
  (?:`+i+":){1}(?:(?::"+i+"){0,4}:"+t+"|(?::"+i+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
206
206
  (?::(?:(?::`+i+"){0,5}:"+t+"|(?::"+i+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
207
207
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
208
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),f=new RegExp("(?:^"+t+"$)|(?:^"+l+"$)"),c=new RegExp("^"+t+"$"),p=new RegExp("^"+l+"$"),g=function(R){return R&&R.exact?f:new RegExp("(?:"+r(R)+t+r(R)+")|(?:"+r(R)+l+r(R)+")","g")};g.v4=function(D){return D&&D.exact?c:new RegExp(""+r(D)+t+r(D),"g")},g.v6=function(D){return D&&D.exact?p:new RegExp(""+r(D)+l+r(D),"g")};var d="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",C=g.v4().source,b=g.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",k="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",A='(?:[/?#][^\\s"]*)?',T="(?:"+d+"|www\\.)"+m+"(?:localhost|"+C+"|"+b+"|"+x+_+k+")"+E+A;return yy=new RegExp("(?:^"+T+"$)","i"),yy},JT={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},zp={integer:function(r){return zp.number(r)&&parseInt(r,10)===r},float:function(r){return zp.number(r)&&!zp.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!zp.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(JT.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(MH())},hex:function(r){return typeof r=="string"&&!!r.match(JT.hex)}},PH=function(r,t,i,l,f){if(r.required&&t===void 0){XT(r,t,i,l,f);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],p=r.type;c.indexOf(p)>-1?zp[p](t)||l.push(Li(f.messages.types[p],r.fullField,r.type)):p&&typeof t!==r.type&&l.push(Li(f.messages.types[p],r.fullField,r.type))},BH=function(r,t,i,l,f){var c=typeof r.len=="number",p=typeof r.min=="number",g=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=t,C=null,b=typeof t=="number",x=typeof t=="string",_=Array.isArray(t);if(b?C="number":x?C="string":_&&(C="array"),!C)return!1;_&&(m=t.length),x&&(m=t.replace(d,"_").length),c?m!==r.len&&l.push(Li(f.messages[C].len,r.fullField,r.len)):p&&!g&&m<r.min?l.push(Li(f.messages[C].min,r.fullField,r.min)):g&&!p&&m>r.max?l.push(Li(f.messages[C].max,r.fullField,r.max)):p&&g&&(m<r.min||m>r.max)&&l.push(Li(f.messages[C].range,r.fullField,r.min,r.max))},Sd="enum",LH=function(r,t,i,l,f){r[Sd]=Array.isArray(r[Sd])?r[Sd]:[],r[Sd].indexOf(t)===-1&&l.push(Li(f.messages[Sd],r.fullField,r[Sd].join(", ")))},zH=function(r,t,i,l,f){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var c=new RegExp(r.pattern);c.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},qt={required:XT,whitespace:NH,type:PH,range:BH,enum:LH,pattern:zH},UH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t,"string")&&!r.required)return i();qt.required(r,t,l,c,f,"string"),Br(t,"string")||(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f),qt.pattern(r,t,l,c,f),r.whitespace===!0&&qt.whitespace(r,t,l,c,f))}i(c)},jH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt.type(r,t,l,c,f)}i(c)},IH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(t===""&&(t=void 0),Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},HH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt.type(r,t,l,c,f)}i(c)},VH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),Br(t)||qt.type(r,t,l,c,f)}i(c)},$H=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},YH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},qH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(t==null&&!r.required)return i();qt.required(r,t,l,c,f,"array"),t!=null&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},GH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt.type(r,t,l,c,f)}i(c)},KH="enum",WH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt[KH](r,t,l,c,f)}i(c)},QH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t,"string")&&!r.required)return i();qt.required(r,t,l,c,f),Br(t,"string")||qt.pattern(r,t,l,c,f)}i(c)},ZH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t,"date")&&!r.required)return i();if(qt.required(r,t,l,c,f),!Br(t,"date")){var g;t instanceof Date?g=t:g=new Date(t),qt.type(r,g,l,c,f),g&&qt.range(r,g.getTime(),l,c,f)}}i(c)},XH=function(r,t,i,l,f){var c=[],p=Array.isArray(t)?"array":typeof t;qt.required(r,t,l,c,f,p),i(c)},sw=function(r,t,i,l,f){var c=r.type,p=[],g=r.required||!r.required&&l.hasOwnProperty(r.field);if(g){if(Br(t,c)&&!r.required)return i();qt.required(r,t,l,p,f,c),Br(t,c)||qt.type(r,t,l,p,f)}i(p)},JH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f)}i(c)},Up={string:UH,method:jH,number:IH,boolean:HH,regexp:VH,integer:$H,float:YH,array:qH,object:GH,enum:WH,pattern:QH,date:ZH,url:sw,hex:sw,email:sw,required:XH,any:JH};function uw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var cw=uw(),jp=function(){function e(t){this.rules=null,this._messages=cw,this.define(t)}var r=e.prototype;return r.define=function(i){var l=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(f){var c=i[f];l.rules[f]=Array.isArray(c)?c:[c]})},r.messages=function(i){return i&&(this._messages=ZT(uw(),i)),this._messages},r.validate=function(i,l,f){var c=this;l===void 0&&(l={}),f===void 0&&(f=function(){});var p=i,g=l,d=f;if(typeof g=="function"&&(d=g,g={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,p),Promise.resolve(p);function m(k){var E=[],A={};function T(R){if(Array.isArray(R)){var N;E=(N=E).concat.apply(N,R)}else E.push(R)}for(var D=0;D<k.length;D++)T(k[D]);E.length?(A=lw(E),d(E,A)):d(null,p)}if(g.messages){var C=this.messages();C===cw&&(C=uw()),ZT(C,g.messages),g.messages=C}else g.messages=this.messages();var b={},x=g.keys||Object.keys(this.rules);x.forEach(function(k){var E=c.rules[k],A=p[k];E.forEach(function(T){var D=T;typeof D.transform=="function"&&(p===i&&(p=Uc({},p)),A=p[k]=D.transform(A)),typeof D=="function"?D={validator:D}:D=Uc({},D),D.validator=c.getValidationMethod(D),D.validator&&(D.field=k,D.fullField=D.fullField||k,D.type=c.getType(D),b[k]=b[k]||[],b[k].push({rule:D,value:A,source:p,field:k}))})});var _={};return OH(b,g,function(k,E){var A=k.rule,T=(A.type==="object"||A.type==="array")&&(typeof A.fields=="object"||typeof A.defaultField=="object");T=T&&(A.required||!A.required&&k.value),A.field=k.field;function D(z,M){return Uc({},M,{fullField:A.fullField+"."+z,fullFields:A.fullFields?[].concat(A.fullFields,[z]):[z]})}function R(z){z===void 0&&(z=[]);var M=Array.isArray(z)?z:[z];!g.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&A.message!==void 0&&(M=[].concat(A.message));var I=M.map(QT(A,p));if(g.first&&I.length)return _[A.field]=1,E(I);if(!T)E(I);else{if(A.required&&!k.value)return A.message!==void 0?I=[].concat(A.message).map(QT(A,p)):g.error&&(I=[g.error(A,Li(g.messages.required,A.field))]),E(I);var Y={};A.defaultField&&Object.keys(k.value).map(function(U){Y[U]=A.defaultField}),Y=Uc({},Y,k.rule.fields);var B={};Object.keys(Y).forEach(function(U){var H=Y[U],V=Array.isArray(H)?H:[H];B[U]=V.map(D.bind(null,U))});var P=new e(B);P.messages(g.messages),k.rule.options&&(k.rule.options.messages=g.messages,k.rule.options.error=g.error),P.validate(k.value,k.rule.options||g,function(U){var H=[];I&&I.length&&H.push.apply(H,I),U&&U.length&&H.push.apply(H,U),E(H.length?H:null)})}}var N;if(A.asyncValidator)N=A.asyncValidator(A,k.value,R,k.source,g);else if(A.validator){try{N=A.validator(A,k.value,R,k.source,g)}catch(z){console.error==null,g.suppressValidatorError||setTimeout(function(){throw z},0),R(z.message)}N===!0?R():N===!1?R(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||(A.fullField||A.field)+" fails"):N instanceof Array?R(N):N instanceof Error&&R(N.message)}N&&N.then&&N.then(function(){return R()},function(z){return R(z)})},function(k){m(k)},p)},r.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!Up.hasOwnProperty(i.type))throw new Error(Li("Unknown rule type %s",i.type));return i.type||"string"},r.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var l=Object.keys(i),f=l.indexOf("message");return f!==-1&&l.splice(f,1),l.length===1&&l[0]==="required"?Up.required:Up[this.getType(i)]||void 0},e}();jp.register=function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Up[r]=t},jp.warning=GT,jp.messages=cw,jp.validators=Up;var zi="'${name}' is not a valid ${type}",e3={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zi,method:zi,array:zi,object:zi,number:zi,date:zi,boolean:zi,integer:zi,float:zi,regexp:zi,email:zi,url:zi,hex:zi},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function eV(e){return I4(e)||VT(e)||wb(e)||H4()}function gl(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function t3(e,r,t,i){if(!r.length)return t;var l=eV(r),f=l[0],c=l.slice(1),p;return!e&&typeof f=="number"?p=[]:Array.isArray(e)?p=an(e):p=Ft({},e),i&&t===void 0&&c.length===1?delete p[f][c[0]]:p[f]=t3(p[f],c,t,i),p}function Eo(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!gl(e,r.slice(0,-1))?e:t3(e,r,t,i)}function tV(e){return Mr(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function n3(e){return Array.isArray(e)?[]:{}}var nV=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ip(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=n3(r[0]);return r.forEach(function(l){function f(c,p){var g=new Set(p),d=gl(l,c),m=Array.isArray(d);if(m||tV(d)){if(!g.has(d)){g.add(d);var C=gl(i,c);m?i=Eo(i,c,[]):(!C||Mr(C)!=="object")&&(i=Eo(i,c,n3(d))),nV(d).forEach(function(b){f([].concat(an(c),[b]),g)})}}else i=Eo(i,c,d)}f([])}),i}var r3=jp;function rV(e,r){return e.replace(/\$\{\w+\}/g,function(t){var i=t.slice(2,-1);return r[i]})}var a3="CODE_LOGIC_ERROR";function fw(e,r,t,i,l){return dw.apply(this,arguments)}function dw(){return dw=Bp(ro().mark(function e(r,t,i,l,f){var c,p,g,d,m,C,b,x,_;return ro().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=Ft({},i),delete c.ruleIndex,r3.warning=function(){},c.validator&&(p=c.validator,c.validator=function(){try{return p.apply(void 0,arguments)}catch{return Promise.reject(a3)}}),g=null,c&&c.type==="array"&&c.defaultField&&(g=c.defaultField,delete c.defaultField),d=new r3(Le({},r,[c])),m=Ip(e3,l.validateMessages),d.messages(m),C=[],E.prev=10,E.next=13,Promise.resolve(d.validate(Le({},r,t),Ft({},l)));case 13:E.next=18;break;case 15:E.prev=15,E.t0=E.catch(10),E.t0.errors&&(C=E.t0.errors.map(function(A,T){var D=A.message,R=D===a3?m.default:D;return Me.isValidElement(R)?Me.cloneElement(R,{key:"error_".concat(T)}):R}));case 18:if(!(!C.length&&g)){E.next=23;break}return E.next=21,Promise.all(t.map(function(A,T){return fw("".concat(r,".").concat(T),A,g,l,f)}));case 21:return b=E.sent,E.abrupt("return",b.reduce(function(A,T){return[].concat(an(A),an(T))},[]));case 23:return x=Ft(Ft({},i),{},{name:r,enum:(i.enum||[]).join(", ")},f),_=C.map(function(A){return typeof A=="string"?rV(A,x):A}),E.abrupt("return",_);case 26:case"end":return E.stop()}},e,null,[[10,15]])})),dw.apply(this,arguments)}function aV(e,r,t,i,l,f){var c=e.join("."),p=t.map(function(m,C){var b=m.validator,x=Ft(Ft({},m),{},{ruleIndex:C});return b&&(x.validator=function(_,k,E){var A=!1,T=function(){for(var N=arguments.length,z=new Array(N),M=0;M<N;M++)z[M]=arguments[M];Promise.resolve().then(function(){_r(!A,"Your validator function has already return a promise. `callback` will be ignored."),A||E.apply(void 0,z)})},D=b(_,k,T);A=D&&typeof D.then=="function"&&typeof D.catch=="function",_r(A,"`callback` is deprecated. Please return a promise instead."),A&&D.then(function(){E()}).catch(function(R){E(R||" ")})}),x}).sort(function(m,C){var b=m.warningOnly,x=m.ruleIndex,_=C.warningOnly,k=C.ruleIndex;return!!b==!!_?x-k:b?1:-1}),g;if(l===!0)g=new Promise(function(){var m=Bp(ro().mark(function C(b,x){var _,k,E;return ro().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:_=0;case 1:if(!(_<p.length)){T.next=12;break}return k=p[_],T.next=5,fw(c,r,k,i,f);case 5:if(E=T.sent,!E.length){T.next=9;break}return x([{errors:E,rule:k}]),T.abrupt("return");case 9:_+=1,T.next=1;break;case 12:b([]);case 13:case"end":return T.stop()}},C)}));return function(C,b){return m.apply(this,arguments)}}());else{var d=p.map(function(m){return fw(c,r,m,i,f).then(function(C){return{errors:C,rule:m}})});g=(l?oV(d):iV(d)).then(function(m){return Promise.reject(m)})}return g.catch(function(m){return m}),g}function iV(e){return hw.apply(this,arguments)}function hw(){return hw=Bp(ro().mark(function e(r){return ro().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(l){var f,c=(f=[]).concat.apply(f,an(l));return c}));case 1:case"end":return i.stop()}},e)})),hw.apply(this,arguments)}function oV(e){return pw.apply(this,arguments)}function pw(){return pw=Bp(ro().mark(function e(r){var t;return ro().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return t=0,l.abrupt("return",new Promise(function(f){r.forEach(function(c){c.then(function(p){p.errors.length&&f([p]),t+=1,t===r.length&&f([])})})}));case 2:case"end":return l.stop()}},e)})),pw.apply(this,arguments)}function vr(e){return aw(e)}function i3(e,r){var t={};return r.forEach(function(i){var l=gl(e,i);t=Eo(t,i,l)}),t}function Ed(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return o3(r,i,t)})}function o3(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,l){return e[l]===i})}function lV(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Mr(e)!=="object"||Mr(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),l=new Set([].concat(t,i));return an(l).every(function(f){var c=e[f],p=r[f];return typeof c=="function"&&typeof p=="function"?!0:c===p})}function sV(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Mr(r.target)==="object"&&e in r.target?r.target[e]:r}function l3(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var l=e[r],f=r-t;return f>0?[].concat(an(e.slice(0,t)),[l],an(e.slice(t,r)),an(e.slice(r+1,i))):f<0?[].concat(an(e.slice(0,r)),an(e.slice(r+1,t+1)),[l],an(e.slice(t+1,i))):e}var uV=["name"],ao=[];function s3(e,r,t,i,l,f){return typeof e=="function"?e(r,t,"source"in f?{source:f.source}:{}):i!==l}var vw=function(e){xH(t,e);var r=CH(t);function t(i){var l;if(tw(this,t),l=r.call(this,i),Le(pn(l),"state",{resetCount:0}),Le(pn(l),"cancelRegisterFunc",null),Le(pn(l),"mounted",!1),Le(pn(l),"touched",!1),Le(pn(l),"dirty",!1),Le(pn(l),"validatePromise",void 0),Le(pn(l),"prevValidating",void 0),Le(pn(l),"errors",ao),Le(pn(l),"warnings",ao),Le(pn(l),"cancelRegister",function(){var g=l.props,d=g.preserve,m=g.isListField,C=g.name;l.cancelRegisterFunc&&l.cancelRegisterFunc(m,d,vr(C)),l.cancelRegisterFunc=null}),Le(pn(l),"getNamePath",function(){var g=l.props,d=g.name,m=g.fieldContext,C=m.prefixName,b=C===void 0?[]:C;return d!==void 0?[].concat(an(b),an(d)):[]}),Le(pn(l),"getRules",function(){var g=l.props,d=g.rules,m=d===void 0?[]:d,C=g.fieldContext;return m.map(function(b){return typeof b=="function"?b(C):b})}),Le(pn(l),"refresh",function(){l.mounted&&l.setState(function(g){var d=g.resetCount;return{resetCount:d+1}})}),Le(pn(l),"metaCache",null),Le(pn(l),"triggerMetaEvent",function(g){var d=l.props.onMetaChange;if(d){var m=Ft(Ft({},l.getMeta()),{},{destroy:g});qT(l.metaCache,m)||d(m),l.metaCache=m}else l.metaCache=null}),Le(pn(l),"onStoreChange",function(g,d,m){var C=l.props,b=C.shouldUpdate,x=C.dependencies,_=x===void 0?[]:x,k=C.onReset,E=m.store,A=l.getNamePath(),T=l.getValue(g),D=l.getValue(E),R=d&&Ed(d,A);switch(m.type==="valueUpdate"&&m.source==="external"&&!qT(T,D)&&(l.touched=!0,l.dirty=!0,l.validatePromise=null,l.errors=ao,l.warnings=ao,l.triggerMetaEvent()),m.type){case"reset":if(!d||R){l.touched=!1,l.dirty=!1,l.validatePromise=void 0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),k==null||k(),l.refresh();return}break;case"remove":{if(b){l.reRender();return}break}case"setField":{var N=m.data;if(R){"touched"in N&&(l.touched=N.touched),"validating"in N&&!("originRCField"in N)&&(l.validatePromise=N.validating?Promise.resolve([]):null),"errors"in N&&(l.errors=N.errors||ao),"warnings"in N&&(l.warnings=N.warnings||ao),l.dirty=!0,l.triggerMetaEvent(),l.reRender();return}else if("value"in N&&Ed(d,A,!0)){l.reRender();return}if(b&&!A.length&&s3(b,g,E,T,D,m)){l.reRender();return}break}case"dependenciesUpdate":{var z=_.map(vr);if(z.some(function(M){return Ed(m.relatedFields,M)})){l.reRender();return}break}default:if(R||(!_.length||A.length||b)&&s3(b,g,E,T,D,m)){l.reRender();return}break}b===!0&&l.reRender()}),Le(pn(l),"validateRules",function(g){var d=l.getNamePath(),m=l.getValue(),C=g||{},b=C.triggerName,x=C.validateOnly,_=x===void 0?!1:x,k=Promise.resolve().then(Bp(ro().mark(function E(){var A,T,D,R,N,z,M;return ro().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(l.mounted){Y.next=2;break}return Y.abrupt("return",[]);case 2:if(A=l.props,T=A.validateFirst,D=T===void 0?!1:T,R=A.messageVariables,N=A.validateDebounce,z=l.getRules(),b&&(z=z.filter(function(B){return B}).filter(function(B){var P=B.validateTrigger;if(!P)return!0;var U=aw(P);return U.includes(b)})),!(N&&b)){Y.next=10;break}return Y.next=8,new Promise(function(B){setTimeout(B,N)});case 8:if(l.validatePromise===k){Y.next=10;break}return Y.abrupt("return",[]);case 10:return M=aV(d,m,z,g,D,R),M.catch(function(B){return B}).then(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ao;if(l.validatePromise===k){var P;l.validatePromise=null;var U=[],H=[];(P=B.forEach)===null||P===void 0||P.call(B,function(V){var K=V.rule.warningOnly,ee=V.errors,J=ee===void 0?ao:ee;K?H.push.apply(H,an(J)):U.push.apply(U,an(J))}),l.errors=U,l.warnings=H,l.triggerMetaEvent(),l.reRender()}}),Y.abrupt("return",M);case 13:case"end":return Y.stop()}},E)})));return _||(l.validatePromise=k,l.dirty=!0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),l.reRender()),k}),Le(pn(l),"isFieldValidating",function(){return!!l.validatePromise}),Le(pn(l),"isFieldTouched",function(){return l.touched}),Le(pn(l),"isFieldDirty",function(){if(l.dirty||l.props.initialValue!==void 0)return!0;var g=l.props.fieldContext,d=g.getInternalHooks(zc),m=d.getInitialValue;return m(l.getNamePath())!==void 0}),Le(pn(l),"getErrors",function(){return l.errors}),Le(pn(l),"getWarnings",function(){return l.warnings}),Le(pn(l),"isListField",function(){return l.props.isListField}),Le(pn(l),"isList",function(){return l.props.isList}),Le(pn(l),"isPreserve",function(){return l.props.preserve}),Le(pn(l),"getMeta",function(){l.prevValidating=l.isFieldValidating();var g={touched:l.isFieldTouched(),validating:l.prevValidating,errors:l.errors,warnings:l.warnings,name:l.getNamePath(),validated:l.validatePromise===null};return g}),Le(pn(l),"getOnlyChild",function(g){if(typeof g=="function"){var d=l.getMeta();return Ft(Ft({},l.getOnlyChild(g(l.getControlled(),d,l.props.fieldContext))),{},{isFunction:!0})}var m=rw(g);return m.length!==1||!Me.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),Le(pn(l),"getValue",function(g){var d=l.props.fieldContext.getFieldsValue,m=l.getNamePath();return gl(g||d(!0),m)}),Le(pn(l),"getControlled",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=l.props,m=d.name,C=d.trigger,b=d.validateTrigger,x=d.getValueFromEvent,_=d.normalize,k=d.valuePropName,E=d.getValueProps,A=d.fieldContext,T=b!==void 0?b:A.validateTrigger,D=l.getNamePath(),R=A.getInternalHooks,N=A.getFieldsValue,z=R(zc),M=z.dispatch,I=l.getValue(),Y=E||function(V){return Le({},k,V)},B=g[C],P=m!==void 0?Y(I):{};process.env.NODE_ENV!=="production"&&P&&Object.keys(P).forEach(function(V){_r(typeof P[V]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(V,")"))});var U=Ft(Ft({},g),P);U[C]=function(){l.touched=!0,l.dirty=!0,l.triggerMetaEvent();for(var V,K=arguments.length,ee=new Array(K),J=0;J<K;J++)ee[J]=arguments[J];x?V=x.apply(void 0,ee):V=sV.apply(void 0,[k].concat(ee)),_&&(V=_(V,I,N(!0))),M({type:"updateValue",namePath:D,value:V}),B&&B.apply(void 0,ee)};var H=aw(T||[]);return H.forEach(function(V){var K=U[V];U[V]=function(){K&&K.apply(void 0,arguments);var ee=l.props.rules;ee&&ee.length&&M({type:"validateField",namePath:D,triggerName:V})}}),U}),i.fieldContext){var f=i.fieldContext.getInternalHooks,c=f(zc),p=c.initEntityValue;p(pn(l))}return l}return nw(t,[{key:"componentDidMount",value:function(){var l=this.props,f=l.shouldUpdate,c=l.fieldContext;if(this.mounted=!0,c){var p=c.getInternalHooks,g=p(zc),d=g.registerField;this.cancelRegisterFunc=d(this)}f===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var l=this.state.resetCount,f=this.props.children,c=this.getOnlyChild(f),p=c.child,g=c.isFunction,d;return g?d=p:Me.isValidElement(p)?d=Me.cloneElement(p,this.getControlled(p.props)):(_r(!p,"`children` of Field is not validate ReactElement."),d=p),Me.createElement(Me.Fragment,{key:l},d)}}]),t}(Me.Component);Le(vw,"contextType",vu),Le(vw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function mw(e){var r=e.name,t=_h(e,uV),i=Me.useContext(vu),l=Me.useContext(my),f=r!==void 0?vr(r):void 0,c="keep";return t.isListField||(c="_".concat((f||[]).join("_"))),process.env.NODE_ENV!=="production"&&t.preserve===!1&&t.isListField&&f.length<=1&&_r(!1,"`preserve` should not apply on Form.List fields."),Me.createElement(vw,Nr({key:c,name:f,isListField:!!l},t,{fieldContext:i}))}function u3(e){var r=e.name,t=e.initialValue,i=e.children,l=e.rules,f=e.validateTrigger,c=e.isListField,p=Me.useContext(vu),g=Me.useContext(my),d=Me.useRef({keys:[],id:0}),m=d.current,C=Me.useMemo(function(){var k=vr(p.prefixName)||[];return[].concat(an(k),an(vr(r)))},[p.prefixName,r]),b=Me.useMemo(function(){return Ft(Ft({},p),{},{prefixName:C})},[p,C]),x=Me.useMemo(function(){return{getKey:function(E){var A=C.length,T=E[A];return[m.keys[T],E.slice(A+1)]}}},[C]);if(typeof i!="function")return _r(!1,"Form.List only accepts function as children."),null;var _=function(E,A,T){var D=T.source;return D==="internal"?!1:E!==A};return Me.createElement(my.Provider,{value:x},Me.createElement(vu.Provider,{value:b},Me.createElement(mw,{name:[],shouldUpdate:_,rules:l,validateTrigger:f,initialValue:t,isList:!0,isListField:c??!!g},function(k,E){var A=k.value,T=A===void 0?[]:A,D=k.onChange,R=p.getFieldValue,N=function(){var Y=R(C||[]);return Y||[]},z={add:function(Y,B){var P=N();B>=0&&B<=P.length?(m.keys=[].concat(an(m.keys.slice(0,B)),[m.id],an(m.keys.slice(B))),D([].concat(an(P.slice(0,B)),[Y],an(P.slice(B))))):(process.env.NODE_ENV!=="production"&&(B<0||B>P.length)&&_r(!1,"The second parameter of the add function should be a valid positive number."),m.keys=[].concat(an(m.keys),[m.id]),D([].concat(an(P),[Y]))),m.id+=1},remove:function(Y){var B=N(),P=new Set(Array.isArray(Y)?Y:[Y]);P.size<=0||(m.keys=m.keys.filter(function(U,H){return!P.has(H)}),D(B.filter(function(U,H){return!P.has(H)})))},move:function(Y,B){if(Y!==B){var P=N();Y<0||Y>=P.length||B<0||B>=P.length||(m.keys=l3(m.keys,Y,B),D(l3(P,Y,B)))}}},M=T||[];return Array.isArray(M)||(M=[],process.env.NODE_ENV!=="production"&&_r(!1,"Current value of '".concat(C.join(" > "),"' is not an array type."))),i(M.map(function(I,Y){var B=m.keys[Y];return B===void 0&&(m.keys[Y]=m.id,B=m.keys[Y],m.id+=1),{name:Y,key:B,isListField:!0}}),z,E)})))}function cV(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(l,f){e.forEach(function(c,p){c.catch(function(g){return r=!0,g}).then(function(g){t-=1,i[p]=g,!(t>0)&&(r&&f(i),l(i))})})}):Promise.resolve([])}var c3="__@field_split__";function gw(e){return e.map(function(r){return"".concat(Mr(r),":").concat(r)}).join(c3)}var Dd=function(){function e(){tw(this,e),Le(this,"kvs",new Map)}return nw(e,[{key:"set",value:function(t,i){this.kvs.set(gw(t),i)}},{key:"get",value:function(t){return this.kvs.get(gw(t))}},{key:"update",value:function(t,i){var l=this.get(t),f=i(l);f?this.set(t,f):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(gw(t))}},{key:"map",value:function(t){return an(this.kvs.entries()).map(function(i){var l=mc(i,2),f=l[0],c=l[1],p=f.split(c3);return t({key:p.map(function(g){var d=g.match(/^([^:]*):(.*)$/),m=mc(d,3),C=m[1],b=m[2];return C==="number"?Number(b):b}),value:c})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var l=i.key,f=i.value;return t[l.join(".")]=f,null}),t}}]),e}(),fV=["name"],dV=nw(function e(r){var t=this;tw(this,e),Le(this,"formHooked",!1),Le(this,"forceRootUpdate",void 0),Le(this,"subscribable",!0),Le(this,"store",{}),Le(this,"fieldEntities",[]),Le(this,"initialValues",{}),Le(this,"callbacks",{}),Le(this,"validateMessages",null),Le(this,"preserve",null),Le(this,"lastValidatePromise",null),Le(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),Le(this,"getInternalHooks",function(i){return i===zc?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(_r(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Le(this,"useSubscribe",function(i){t.subscribable=i}),Le(this,"prevWithoutPreserves",null),Le(this,"setInitialValues",function(i,l){if(t.initialValues=i||{},l){var f,c=Ip(i,t.store);(f=t.prevWithoutPreserves)===null||f===void 0||f.map(function(p){var g=p.key;c=Eo(c,g,gl(i,g))}),t.prevWithoutPreserves=null,t.updateStore(c)}}),Le(this,"destroyForm",function(){var i=new Dd;t.getFieldEntities(!0).forEach(function(l){t.isMergedPreserve(l.isPreserve())||i.set(l.getNamePath(),!0)}),t.prevWithoutPreserves=i}),Le(this,"getInitialValue",function(i){var l=gl(t.initialValues,i);return i.length?Ip(l):l}),Le(this,"setCallbacks",function(i){t.callbacks=i}),Le(this,"setValidateMessages",function(i){t.validateMessages=i}),Le(this,"setPreserve",function(i){t.preserve=i}),Le(this,"watchList",[]),Le(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(l){return l!==i})}}),Le(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var l=t.getFieldsValue(),f=t.getFieldsValue(!0);t.watchList.forEach(function(c){c(l,f,i)})}}),Le(this,"timeoutId",null),Le(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||_r(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Le(this,"updateStore",function(i){t.store=i}),Le(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(l){return l.getNamePath().length}):t.fieldEntities}),Le(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,l=new Dd;return t.getFieldEntities(i).forEach(function(f){var c=f.getNamePath();l.set(c,f)}),l}),Le(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var l=t.getFieldsMap(!0);return i.map(function(f){var c=vr(f);return l.get(c)||{INVALIDATE_NAME_PATH:vr(f)}})}),Le(this,"getFieldsValue",function(i,l){t.warningUnhooked();var f,c,p;if(i===!0||Array.isArray(i)?(f=i,c=l):i&&Mr(i)==="object"&&(p=i.strict,c=i.filter),f===!0&&!c)return t.store;var g=t.getFieldEntitiesForNamePathList(Array.isArray(f)?f:null),d=[];return g.forEach(function(m){var C,b,x="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(p){var _,k;if((_=(k=m).isList)!==null&&_!==void 0&&_.call(k))return}else if(!f&&(C=(b=m).isListField)!==null&&C!==void 0&&C.call(b))return;if(!c)d.push(x);else{var E="getMeta"in m?m.getMeta():null;c(E)&&d.push(x)}}),i3(t.store,d.map(vr))}),Le(this,"getFieldValue",function(i){t.warningUnhooked();var l=vr(i);return gl(t.store,l)}),Le(this,"getFieldsError",function(i){t.warningUnhooked();var l=t.getFieldEntitiesForNamePathList(i);return l.map(function(f,c){return f&&!("INVALIDATE_NAME_PATH"in f)?{name:f.getNamePath(),errors:f.getErrors(),warnings:f.getWarnings()}:{name:vr(i[c]),errors:[],warnings:[]}})}),Le(this,"getFieldError",function(i){t.warningUnhooked();var l=vr(i),f=t.getFieldsError([l])[0];return f.errors}),Le(this,"getFieldWarning",function(i){t.warningUnhooked();var l=vr(i),f=t.getFieldsError([l])[0];return f.warnings}),Le(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,l=new Array(i),f=0;f<i;f++)l[f]=arguments[f];var c=l[0],p=l[1],g,d=!1;l.length===0?g=null:l.length===1?Array.isArray(c)?(g=c.map(vr),d=!1):(g=null,d=c):(g=c.map(vr),d=p);var m=t.getFieldEntities(!0),C=function(E){return E.isFieldTouched()};if(!g)return d?m.every(function(k){return C(k)||k.isList()}):m.some(C);var b=new Dd;g.forEach(function(k){b.set(k,[])}),m.forEach(function(k){var E=k.getNamePath();g.forEach(function(A){A.every(function(T,D){return E[D]===T})&&b.update(A,function(T){return[].concat(an(T),[k])})})});var x=function(E){return E.some(C)},_=b.map(function(k){var E=k.value;return E});return d?_.every(x):_.some(x)}),Le(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),Le(this,"isFieldsValidating",function(i){t.warningUnhooked();var l=t.getFieldEntities();if(!i)return l.some(function(c){return c.isFieldValidating()});var f=i.map(vr);return l.some(function(c){var p=c.getNamePath();return Ed(f,p)&&c.isFieldValidating()})}),Le(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),Le(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=new Dd,f=t.getFieldEntities(!0);f.forEach(function(g){var d=g.props.initialValue,m=g.getNamePath();if(d!==void 0){var C=l.get(m)||new Set;C.add({entity:g,value:d}),l.set(m,C)}});var c=function(d){d.forEach(function(m){var C=m.props.initialValue;if(C!==void 0){var b=m.getNamePath(),x=t.getInitialValue(b);if(x!==void 0)_r(!1,"Form already set 'initialValues' with path '".concat(b.join("."),"'. Field can not overwrite it."));else{var _=l.get(b);if(_&&_.size>1)_r(!1,"Multiple Field with path '".concat(b.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(_){var k=t.getFieldValue(b),E=m.isListField();!E&&(!i.skipExist||k===void 0)&&t.updateStore(Eo(t.store,b,an(_)[0].value))}}}})},p;i.entities?p=i.entities:i.namePathList?(p=[],i.namePathList.forEach(function(g){var d=l.get(g);if(d){var m;(m=p).push.apply(m,an(an(d).map(function(C){return C.entity})))}})):p=f,c(p)}),Le(this,"resetFields",function(i){t.warningUnhooked();var l=t.store;if(!i){t.updateStore(Ip(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(l,null,{type:"reset"}),t.notifyWatch();return}var f=i.map(vr);f.forEach(function(c){var p=t.getInitialValue(c);t.updateStore(Eo(t.store,c,p))}),t.resetWithFieldInitialValue({namePathList:f}),t.notifyObservers(l,f,{type:"reset"}),t.notifyWatch(f)}),Le(this,"setFields",function(i){t.warningUnhooked();var l=t.store,f=[];i.forEach(function(c){var p=c.name,g=_h(c,fV),d=vr(p);f.push(d),"value"in g&&t.updateStore(Eo(t.store,d,g.value)),t.notifyObservers(l,[d],{type:"setField",data:c})}),t.notifyWatch(f)}),Le(this,"getFields",function(){var i=t.getFieldEntities(!0),l=i.map(function(f){var c=f.getNamePath(),p=f.getMeta(),g=Ft(Ft({},p),{},{name:c,value:t.getFieldValue(c)});return Object.defineProperty(g,"originRCField",{value:!0}),g});return l}),Le(this,"initEntityValue",function(i){var l=i.props.initialValue;if(l!==void 0){var f=i.getNamePath(),c=gl(t.store,f);c===void 0&&t.updateStore(Eo(t.store,f,l))}}),Le(this,"isMergedPreserve",function(i){var l=i!==void 0?i:t.preserve;return l??!0}),Le(this,"registerField",function(i){t.fieldEntities.push(i);var l=i.getNamePath();if(t.notifyWatch([l]),i.props.initialValue!==void 0){var f=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(f,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,p){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(C){return C!==i}),!t.isMergedPreserve(p)&&(!c||g.length>1)){var d=c?void 0:t.getInitialValue(l);if(l.length&&t.getFieldValue(l)!==d&&t.fieldEntities.every(function(C){return!o3(C.getNamePath(),l)})){var m=t.store;t.updateStore(Eo(m,l,d,!0)),t.notifyObservers(m,[l],{type:"remove"}),t.triggerDependenciesUpdate(m,l)}}t.notifyWatch([l])}}),Le(this,"dispatch",function(i){switch(i.type){case"updateValue":{var l=i.namePath,f=i.value;t.updateValue(l,f);break}case"validateField":{var c=i.namePath,p=i.triggerName;t.validateFields([c],{triggerName:p});break}}}),Le(this,"notifyObservers",function(i,l,f){if(t.subscribable){var c=Ft(Ft({},f),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(p){var g=p.onStoreChange;g(i,l,c)})}else t.forceRootUpdate()}),Le(this,"triggerDependenciesUpdate",function(i,l){var f=t.getDependencyChildrenFields(l);return f.length&&t.validateFields(f),t.notifyObservers(i,f,{type:"dependenciesUpdate",relatedFields:[l].concat(an(f))}),f}),Le(this,"updateValue",function(i,l){var f=vr(i),c=t.store;t.updateStore(Eo(t.store,f,l)),t.notifyObservers(c,[f],{type:"valueUpdate",source:"internal"}),t.notifyWatch([f]);var p=t.triggerDependenciesUpdate(c,f),g=t.callbacks.onValuesChange;if(g){var d=i3(t.store,[f]);g(d,t.getFieldsValue())}t.triggerOnFieldsChange([f].concat(an(p)))}),Le(this,"setFieldsValue",function(i){t.warningUnhooked();var l=t.store;if(i){var f=Ip(t.store,i);t.updateStore(f)}t.notifyObservers(l,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),Le(this,"setFieldValue",function(i,l){t.setFields([{name:i,value:l}])}),Le(this,"getDependencyChildrenFields",function(i){var l=new Set,f=[],c=new Dd;t.getFieldEntities().forEach(function(g){var d=g.props.dependencies;(d||[]).forEach(function(m){var C=vr(m);c.update(C,function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return b.add(g),b})})});var p=function g(d){var m=c.get(d)||new Set;m.forEach(function(C){if(!l.has(C)){l.add(C);var b=C.getNamePath();C.isFieldDirty()&&b.length&&(f.push(b),g(b))}})};return p(i),f}),Le(this,"triggerOnFieldsChange",function(i,l){var f=t.callbacks.onFieldsChange;if(f){var c=t.getFields();if(l){var p=new Dd;l.forEach(function(d){var m=d.name,C=d.errors;p.set(m,C)}),c.forEach(function(d){d.errors=p.get(d.name)||d.errors})}var g=c.filter(function(d){var m=d.name;return Ed(i,m)});g.length&&f(g,c)}}),Le(this,"validateFields",function(i,l){t.warningUnhooked();var f,c;Array.isArray(i)||typeof i=="string"||typeof l=="string"?(f=i,c=l):c=i;var p=!!f,g=p?f.map(vr):[],d=[],m=String(Date.now()),C=new Set,b=c||{},x=b.recursive,_=b.dirty;t.getFieldEntities(!0).forEach(function(T){if(p||g.push(T.getNamePath()),!(!T.props.rules||!T.props.rules.length)&&!(_&&!T.isFieldDirty())){var D=T.getNamePath();if(C.add(D.join(m)),!p||Ed(g,D,x)){var R=T.validateRules(Ft({validateMessages:Ft(Ft({},e3),t.validateMessages)},c));d.push(R.then(function(){return{name:D,errors:[],warnings:[]}}).catch(function(N){var z,M=[],I=[];return(z=N.forEach)===null||z===void 0||z.call(N,function(Y){var B=Y.rule.warningOnly,P=Y.errors;B?I.push.apply(I,an(P)):M.push.apply(M,an(P))}),M.length?Promise.reject({name:D,errors:M,warnings:I}):{name:D,errors:M,warnings:I}}))}}});var k=cV(d);t.lastValidatePromise=k,k.catch(function(T){return T}).then(function(T){var D=T.map(function(R){var N=R.name;return N});t.notifyObservers(t.store,D,{type:"validateFinish"}),t.triggerOnFieldsChange(D,T)});var E=k.then(function(){return t.lastValidatePromise===k?Promise.resolve(t.getFieldsValue(g)):Promise.reject([])}).catch(function(T){var D=T.filter(function(R){return R&&R.errors.length});return Promise.reject({values:t.getFieldsValue(g),errorFields:D,outOfDate:t.lastValidatePromise!==k})});E.catch(function(T){return T});var A=g.filter(function(T){return C.has(T.join(m))});return t.triggerOnFieldsChange(A),E}),Le(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var l=t.callbacks.onFinish;if(l)try{l(i)}catch{}}).catch(function(i){var l=t.callbacks.onFinishFailed;l&&l(i)})}),this.forceRootUpdate=r});function yw(e){var r=Me.useRef(),t=Me.useState({}),i=mc(t,2),l=i[1];if(!r.current)if(e)r.current=e;else{var f=function(){l({})},c=new dV(f);r.current=c.getForm()}return[r.current]}var xw=Me.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hV=function(r){var t=r.validateMessages,i=r.onFormChange,l=r.onFormFinish,f=r.children,c=Me.useContext(xw),p=Me.useRef({});return Me.createElement(xw.Provider,{value:Ft(Ft({},c),{},{validateMessages:Ft(Ft({},c.validateMessages),t),triggerFormChange:function(d,m){i&&i(d,{changedFields:m,forms:p.current}),c.triggerFormChange(d,m)},triggerFormFinish:function(d,m){l&&l(d,{values:m,forms:p.current}),c.triggerFormFinish(d,m)},registerForm:function(d,m){d&&(p.current=Ft(Ft({},p.current),{},Le({},d,m))),c.registerForm(d,m)},unregisterForm:function(d){var m=Ft({},p.current);delete m[d],p.current=m,c.unregisterForm(d)}})},f)},pV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],vV=function(r,t){var i=r.name,l=r.initialValues,f=r.fields,c=r.form,p=r.preserve,g=r.children,d=r.component,m=d===void 0?"form":d,C=r.validateMessages,b=r.validateTrigger,x=b===void 0?"onChange":b,_=r.onValuesChange,k=r.onFieldsChange,E=r.onFinish,A=r.onFinishFailed,T=_h(r,pV),D=Me.useContext(xw),R=yw(c),N=mc(R,1),z=N[0],M=z.getInternalHooks(zc),I=M.useSubscribe,Y=M.setInitialValues,B=M.setCallbacks,P=M.setValidateMessages,U=M.setPreserve,H=M.destroyForm;Me.useImperativeHandle(t,function(){return z}),Me.useEffect(function(){return D.registerForm(i,z),function(){D.unregisterForm(i)}},[D,z,i]),P(Ft(Ft({},D.validateMessages),C)),B({onValuesChange:_,onFieldsChange:function(ne){if(D.triggerFormChange(i,ne),k){for(var oe=arguments.length,ae=new Array(oe>1?oe-1:0),se=1;se<oe;se++)ae[se-1]=arguments[se];k.apply(void 0,[ne].concat(ae))}},onFinish:function(ne){D.triggerFormFinish(i,ne),E&&E(ne)},onFinishFailed:A}),U(p);var V=Me.useRef(null);Y(l,!V.current),V.current||(V.current=!0),Me.useEffect(function(){return H},[]);var K,ee=typeof g=="function";if(ee){var J=z.getFieldsValue(!0);K=g(J,z)}else K=g;I(!ee);var q=Me.useRef();Me.useEffect(function(){lV(q.current||[],f||[])||z.setFields(f||[]),q.current=f},[f,z]);var te=Me.useMemo(function(){return Ft(Ft({},z),{},{validateTrigger:x})},[z,x]),Z=Me.createElement(my.Provider,{value:null},Me.createElement(vu.Provider,{value:te},K));return m===!1?Z:Me.createElement(m,Nr({},T,{onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),z.submit()},onReset:function(ne){var oe;ne.preventDefault(),z.resetFields(),(oe=T.onReset)===null||oe===void 0||oe.call(T,ne)}}),Z)};function f3(e){try{return JSON.stringify(e)}catch{return Math.random()}}var mV=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=W.useRef(r);_r(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function bw(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],l=r[1],f=l===void 0?{}:l,c=wH(f)?{form:f}:f,p=c.form,g=W.useState(),d=mc(g,2),m=d[0],C=d[1],b=W.useMemo(function(){return f3(m)},[m]),x=W.useRef(b);x.current=b;var _=W.useContext(vu),k=p||_,E=k&&k._init;process.env.NODE_ENV!=="production"&&_r(r.length===2?p?E:!0:E,"useWatch requires a form instance since it can not auto detect from context.");var A=vr(i),T=W.useRef(A);return T.current=A,mV(A),W.useEffect(function(){if(E){var D=k.getFieldsValue,R=k.getInternalHooks,N=R(zc),z=N.registerWatch,M=function(P,U){var H=c.preserve?U:P;return typeof i=="function"?i(H):gl(H,T.current)},I=z(function(B,P){var U=M(B,P),H=f3(U);x.current!==H&&(x.current=H,C(U))}),Y=M(D(),D(!0));return m!==Y&&C(Y),I}},[E]),m}var gV=Me.forwardRef(vV),kd=gV;kd.FormProvider=hV,kd.Field=mw,kd.List=u3,kd.useForm=yw,kd.useWatch=bw;const yV=e=>{const r=ED(),t=W.useContext(vu);return Be(en,{children:[e.children(t.getFieldsValue(e.to),t),e.to.map(i=>Q(xV,{form:t,namePath:i,onChange:r},i.toString()))]})},xV=W.memo(e=>{const r=bw(e.namePath,e.form);return dz(()=>{e.onChange()},[r]),null}),bV={colon:!1,showValidateMessage:!0,border:!0,labelAlign:"left",controlAlign:"left"},Cw=W.createContext(bV),[d3]=wn("form"),CV=W.forwardRef((e,r)=>{const{className:t,style:i,layout:l,footer:f,children:c,colon:p,required:g,border:d,labelAlign:m,controlAlign:C,showValidateMessage:b=!0}=e,x=$a(e,["className","style","layout","footer","children","colon","required","border","labelAlign","controlAlign","showValidateMessage"]);return Be(kd,Object.assign({className:Re(d3(),t),style:i,ref:r},x,{children:[Q(Cw.Provider,Object.assign({value:{layout:l,colon:p,border:d,required:g,showValidateMessage:b,controlAlign:C,labelAlign:m}},{children:c})),f&&Q("div",Object.assign({className:Re(d3("footer"))},{children:f}))]}))});function wV(e){const r=e.prototype;return!!(r&&r.isReactComponent)}function _V(e){return typeof e=="function"&&!wV(e)&&e.defaultProps===void 0}function h3(e){return!ug.exports.isForwardRef(e)||ug.exports.isFragment(e)?!1:ug.exports.isMemo(e)?h3(e.type):!_V(e.type)}function SV(...e){let r;for(r=0;r<e.length&&e[r]===void 0;r++);return e[r]}const EV=W.memo(e=>{var{children:r}=e,t=$a(e,["children"]);return W.cloneElement(r,t)},(e,r)=>e.value===r.value&&e.update===r.update),[DV]=wn("form-item"),kV=e=>{var r,t,i,l,f,c;const{meta:p}=e,g=$a(e,["meta"]),d=W.useContext(Cw),m=(r=e.layout)!==null&&r!==void 0?r:d.layout,C=(t=e.border)!==null&&t!==void 0?t:d.border,b=(i=e.colon)!==null&&i!==void 0?i:d.colon,x=(l=e.showValidateMessage)!==null&&l!==void 0?l:d.showValidateMessage,_=(f=e.labelAlign)!==null&&f!==void 0?f:d.labelAlign,k=(c=e.controlAlign)!==null&&c!==void 0?c:d.controlAlign,E=p&&p.errors.length>0,A=x&&E?p.errors[0]:null,T=Object.assign(Object.assign({},g),{className:Re(DV({vertical:m==="vertical"}),e.className),colon:b,error:x?!1:E,errorMessage:A,labelAlign:_,controlAlign:k,border:C});return Q(oC,Object.assign({},T,{children:e.children}))},xy=Object.assign(CV,{Item:e=>{const r=W.useContext(Cw),{name:t,noStyle:i,rules:l,trigger:f="onChange",validateTrigger:c=f,shouldUpdate:p,dependencies:g,messageVariables:d,label:m,required:C,disabled:b,children:x,onClick:_}=e,k=$a(e,["name","noStyle","rules","trigger","validateTrigger","shouldUpdate","dependencies","messageVariables","label","required","disabled","children","onClick"]),E=sD(e,["style","className","tooltip","intro","colon","labelWidth","labelAlign","labelClass","showValidateMessage","controlAlign","errorMessageAlign","border","layout","isLink","size","arrowDirection","leftIcon","rightIcon","prefix","suffix"]),{validateTrigger:A}=W.useContext(vu),T=SV(c,A,f),D=W.useRef(null),R=W.useRef(0);R.current+=1;function N(I,Y,B,P){return i?I:Q(kV,Object.assign({htmlFor:Y,meta:B},E,{required:P,label:m,disabled:b,onClick:U=>_==null?void 0:_(U,D)},{children:I}))}const z=typeof x=="function";if(!t&&!z&&!e.dependencies)return N(x);let M={};return typeof m=="string"&&(M.label=m),d&&(M=Object.assign(Object.assign({},M),d)),Q(mw,Object.assign({},k,{name:t,shouldUpdate:p,dependencies:g,rules:l,trigger:f,validateTrigger:T},{children:(I,Y,B)=>{var P;let U=null;const H=C!==void 0?C:(P=r.required)!==null&&P!==void 0?P:l&&l.some(K=>!!(K&&typeof K=="object"&&K.required)),V=(JC(t).length&&Y?Y.name:[]).join("_");if(p&&g&&void 0,z)(p||g)&&!t?U=x(B):(p||g||void 0,t&&void 0);else if(g&&!t);else if(W.isValidElement(x)){x.props.defaultValue&&void 0;const K=Object.assign(Object.assign({},x.props),I);h3(x)&&(K.ref=J=>{const q=x.ref;q&&(typeof q=="function"&&q(J),"current"in q&&(q.current=J)),D.current=J}),K.id||(K.id=V),b&&(K.disabled=b),new Set([...JC(f),...JC(T)]).forEach(J=>{K[J]=(...q)=>{var te,Z,$;(te=I[J])===null||te===void 0||te.call(I,...q),($=(Z=x.props)[J])===null||$===void 0||$.call(Z,...q)}}),U=Q(EV,Object.assign({value:I[e.valuePropName||"value"],update:R.current},{children:W.cloneElement(x,K)}))}else t&&void 0,U=x;return N(U,V,Y,H)}}))},useForm:yw,List:u3,Subscribe:yV,useWatch:bw}),Hp={"checkbox-group":"index-module_checkbox-group_4684b",checkboxGroup:"index-module_checkbox-group_4684b","checkbox-group-header":"index-module_checkbox-group-header_192bd",checkboxGroupHeader:"index-module_checkbox-group-header_192bd","checkbox-group-content":"index-module_checkbox-group-content_f81a1",checkboxGroupContent:"index-module_checkbox-group-content_f81a1","checkbox-item":"index-module_checkbox-item_1b36c",checkboxItem:"index-module_checkbox-item_1b36c","checkbox-group-cancel":"index-module_checkbox-group-cancel_c5cfb",checkboxGroupCancel:"index-module_checkbox-group-cancel_c5cfb"},TV=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C})=>{const[b,x]=W.useState([]);W.useEffect(()=>{e.input==="mult-select"&&f&&Array.isArray(f)&&(T(f||[]),R(f||[]))},[f]),W.useEffect(()=>{_()},[e.inputType,e.classify,e.data,e.options]);const _=async()=>{const N=await NL({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,item:e});x(N)},[k,E]=W.useState(!1),[A,T]=W.useState([]),[D,R]=W.useState([]);return Q(en,{children:e.input==="mult-select"?Be("div",{style:{width:"100%",...t},children:[Q(oC,{style:{padding:0},isLink:!0,readOnly:!0,value:D!=null&&D.length?D==null?void 0:D.join(","):"",onClick:()=>{r||(T([...D]),E(!0))},placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select"}),Q(sp,{visible:k,round:!0,position:"bottom",style:{height:"60vh"},onClose:()=>E(!1),children:Be("div",{className:Hp["checkbox-group"],children:[Be(me.Flex,{justify:"space-between",className:Hp["checkbox-group-header"],children:[Q("a",{className:Hp["checkbox-group-cancel"],onClick:()=>E(!1),children:C==="10001"?"取消":"Cancel"}),Q("a",{onClick:()=>{E(!1),R([...A]),c(A!=null&&A.length?A==null?void 0:A.join(","):"")},children:C==="10001"?"确定":"Confirm"})]}),Q("div",{style:{height:" calc(60vh - 70px)"},className:Hp["checkbox-group-content"],children:Q(NT.Group,{iconSize:"18",onChange:N=>T(N),value:A,children:b.map(N=>Q(NT,{shape:"square",className:Hp["checkbox-item"],name:N.value,children:N.label},N.value))})})]})})]}):Q(ZC,{popup:!0,columns:b,placeholder:"",columnsFieldNames:{text:"value"},onConfirm:c,children:(N,z,M)=>Q(oC,{style:{padding:0,...t},isLink:!0,readOnly:!0,clickable:!0,placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select",value:Array.isArray(N)?N.join(","):N||f,onClick:()=>{r||M.open()}})})})},AV={customUpload:"myUpload-module_customUpload_5ec38"},OV=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),RV=e=>{const{action:r,item:t,onChange:i,readonly:l=!1,relatedid:f,uploadText:c,onRemove:p,list:g=[],uploadType:d,relatedidKey:m,langId:C}=e,{message:b}=me.App.useApp(),x=(t==null?void 0:t["upload-accept"])||"*",_=t==null?void 0:t.input,k=t==null?void 0:t["upload-size"],E=(t==null?void 0:t["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{g&&g.length&&R(g)},[g]);const Y=async H=>{d==="image"&&(!H.url&&!H.preview&&(H.preview=await OV(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),i&&i(H)},P=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(C==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},U=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(en,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:c})});return Be(en,{children:[Q(me.Upload,{action:r,beforeUpload:P,listType:A,accept:x,fileList:D,onPreview:Y,data:{[m]:f},maxCount:E,onChange:B,onRemove:p,disabled:l,className:AV.customUpload,children:D.length>=E?null:U}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},FV=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,handleUrlOptions:g,value:d,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]);W.useEffect(()=>{A()},[r.inputType,r.classify,r.data,r.options]);const A=async()=>{const T=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(T)};return Q(me.Radio.Group,{...l,options:k,onChange:t,disabled:i,value:d,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})};hn.extend(iD);function NV(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:p,relatedidKey:g,actionUrlKey:d,actionUrlExtraParams:m,CustomModalComponent:C,hideAttrList:b=[],langId:x="10001",getTitle:_}=e,k=W.useRef([]),{message:E}=me.App.useApp();W.useEffect(()=>{l&&(k.current=l)},[l]);const A=W.useCallback(P=>Array.isArray(P)?P:(P==null?void 0:P.fileList)??[],[]),T=P=>{f(P)},D=W.useCallback(P=>{var K,ee;const U=(K=P.json)==null?void 0:K.input,H=(ee=P.json)==null?void 0:ee.format,V={};switch(U){case"date-picker":case"range-picker":case"second-picker":case"multiple-date-picker":case"time-picker":V.onClick=(J,q)=>{var te;(te=q.current)==null||te.open()},V.isLink=!0,V.trigger="onConfirm";break;case"image":case"file":case"video":case"audio":V.getValueFromEvent=A;break;case"week-picker":V.getValueFromEvent=J=>`${J==null?void 0:J.year()}-${hn(J).isoWeek()}周`,V.getValueProps=J=>{if(!J)return{value:null};const[q,te]=J.split("-"),Z=Number(q),$=Number(te.replace("周",""));return{value:hn().year(Z).isoWeek($)}};break;case"month-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"YYYY-MM"),V.getValueProps=J=>({value:J?hn(J):null});break;case"quarter-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"YYYY年第Q季度"),V.getValueProps=J=>({value:J?hn(J,H||"YYYY年第Q季度"):null});break;case"year-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"YYYY"),V.getValueProps=J=>({value:J?hn(J):null});break;case"second-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"HH:mm:ss"),V.getValueProps=J=>({value:J?hn(J,H||"HH:mm:ss"):null});break}return V},[A]),R=W.useCallback(({isActive:P})=>P?Q(b8,{style:{fontSize:18,color:"#999"}}):Q(_8,{style:{fontSize:18,color:"#999"}}),[]),N=(P,U)=>{var H,V,K,ee,J;return Be(me.Flex,{gap:10,vertical:U==="flex",align:"center",children:[Q("span",{children:P.attrname}),((H=P==null?void 0:P.json)==null?void 0:H.instruction)&&U==="icon"&&Q(me.Tooltip,{title:(V=P==null?void 0:P.json)==null?void 0:V.instruction,children:Q(y8,{style:{color:((K=P==null?void 0:P.json)==null?void 0:K["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((ee=P==null?void 0:P.json)==null?void 0:ee["instruction-color"])??"red"},children:(J=P==null?void 0:P.json)==null?void 0:J.instruction})]})},z=W.useCallback(({itemWithJson:P,colNum:U=1,readonly:H=!1,instructionShowMode:V="icon",radioAlign:K="horizontal",formItemStyle:ee,relatedid:J,form:q,defaultWidth:te=358,parentFormListField:Z,isShowLabel:$=!0})=>{const ne=Tc(P);let oe=P.children||[];Array.isArray(oe==null?void 0:oe[0])&&oe.length&&(oe=oe[0]);const ae=se=>{const ve=(Z==null?void 0:Z.parentName)||(Z==null?void 0:Z.name);return ve?Array.isArray(ve)?[...ve,P.attrid,se.name]:[ve,P.attrid,se.name]:[P.attrid,se.name]};return Q(me.Col,{span:24/U,children:Q(me.Collapse,{bordered:!1,defaultActiveKey:[P.attrid],style:{backgroundColor:"transparent"},expandIcon:({isActive:se})=>R({isActive:se}),items:[{key:P.attrid,label:P.attrname,styles:{header:{paddingLeft:0}},children:Q(xy.List,{name:Z?Array.isArray(Z.name)?[...Z.name,P.attrid]:[Z.name,P.attrid]:P.attrid,initialValue:ne,children:(se,{add:ve,remove:we})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[se.map(ce=>{const ye={...ce,parentName:ae(ce)};return Q(me.Card,{style:{width:typeof te=="number"?te+100:te},size:"small",title:`${P.attrname} ${ce.name+1}`,extra:Q(v8,{onClick:()=>{se.length>1?we(ce.name):E.warning("至少需要保留一个!")}}),children:(oe||[]).map((De,Pe)=>Q(W.Fragment,{children:B({item:De,readonly:H,colNum:U,instructionShowMode:V,relatedid:J,form:q,defaultWidth:te,formItemStyle:ee,radioAlign:K,isFormListItem:!0,formListField:ye,isShowLabel:!0})},De.attrid||`child-${Pe}`))},ce.key)}),Q(me.Flex,{style:{width:200},children:Q(me.Button,{type:"dashed",onClick:()=>ve(),block:!0,children:"+ 新增"})})]})})}]},P.attrid)})},[R,Tc]),M=W.useCallback(({itemWithJson:P,colNum:U=1,readonly:H=!1,instructionShowMode:V="icon",radioAlign:K="horizontal",formItemStyle:ee,relatedid:J,form:q,defaultWidth:te=358,isFormListItem:Z=!1,formListField:$,isShowLabel:ne=!0})=>{var oe,ae,se,ve,we;if(((oe=P.json)==null?void 0:oe.hide)===!0||b!=null&&b.includes(P.attrid))return Q(en,{});if(P.attrtype===1)return z({itemWithJson:P,colNum:U,readonly:H,instructionShowMode:V,radioAlign:K,formItemStyle:ee,relatedid:J,form:q,defaultWidth:te,parentFormListField:$,isShowLabel:ne});if(P.attrtype===2)return Q(en,{children:"实例信息"});if(P.attrtype===0){const ce=Tc(P),ye=(ae=P.json)==null?void 0:ae["default-prompt"],De=oD(P,x),{combinations:Pe=[]}=P.json||{};if(Pe!=null&&Pe.length)return Q(me.Flex,{children:Pe.map((ze,Ne)=>{var jn,un,It,on,In,Mn,Tn;let dt=Tc(ze),Xe=te;const Zt=ze.json.input||"text",sn=ee==null?void 0:ee.find(Gt=>Gt.type===Zt);sn&&sn!=null&&sn.style;const kn=(jn=ze==null?void 0:ze.json)==null?void 0:jn["combination-width-ratio"];return kn&&(Xe=10*kn),Q(xy.Item,{style:{flex:Xe},label:Ne===0?(un=P==null?void 0:P.json)==null?void 0:un["combination-name"]:Q("div",{style:{visibility:"hidden"},children:(It=P==null?void 0:P.json)==null?void 0:It["combination-name"]}),required:Ne===0?(on=ze.json)==null?void 0:on.must:!1,name:$?Array.isArray($.name)?[...$.name,ze.attrid]:[$.name,ze.attrid]:ze.attrid,initialValue:dt,rules:[...(In=ze.json)!=null&&In.must?[{required:!0,message:ye||`${De}${ze.attrname}`}]:[],...(Mn=P.json)!=null&&Mn.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((Tn=P.json)==null?void 0:Tn["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...D(ze),children:Y({item:ze,readonly:H,formItemStyle:ee,radioAlign:K,relatedid:J,form:q,defaultWidth:Xe,customWidth:{width:"100%"}})},Ne)})});const ke=Z&&$?Array.isArray($.name)?[...$.name,P.attrid]:[$.name,P.attrid]:P.attrid;return Q(xy.Item,{border:!0,name:ke,label:ne&&N(P,V)||null,initialValue:ce,rules:[...(se=P.json)!=null&&se.must?[{required:!0,message:`${De}${P.attrname}`}]:[],...(ve=P.json)!=null&&ve.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((we=P.json)==null?void 0:we["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...D(P),children:Y({item:P,readonly:H,formItemStyle:ee,radioAlign:K,relatedid:J,form:q,defaultWidth:te})},P.attrid)}return null},[N,Tc,D,b,z]),I=async P=>{var U;try{const H=(U=P==null?void 0:P.response)==null?void 0:U.data;if(H){if(!r)return;const V=await r({Controlname:"DelFile",PageName:"initializationfile"},H);if((V==null?void 0:V.ReturnValue)!==1)return E.error((V==null?void 0:V.msg)||"删除文件失败"),!1}else T(P);return!0}catch{return E.error("删除文件失败,请重试"),!1}},Y=({item:P,readonly:U=!1,formItemStyle:H=[],radioAlign:V="horizontal",relatedid:K,form:ee,defaultWidth:J=358,customWidth:q={}})=>{var ve,we,ce;const te=P.json.input||"text",Z=P.attrid,$=Tc(P),ne=((ve=P.json)==null?void 0:ve["default-prompt"])||"",oe=oD(P,x),ae=P.json.length&&{maxLength:P.json.length}||{},se=H.find(ye=>ye.type===te);switch(te){case"label":return Q(cu,{disabled:!0,value:((we=P.json)==null?void 0:we["label-value"])||P.attrvalue||((ce=P.json)==null?void 0:ce.default)||"-",style:{width:J,...se==null?void 0:se.style,...q}});case"text":return Q(cu,{placeholder:ne||oe,...ae,disabled:U,clearable:!0,style:{width:J,...se==null?void 0:se.style,...q}});case"password":return Q(cu,{placeholder:ne||oe,...ae,disabled:U,type:"password",style:{width:J,...se==null?void 0:se.style,...q}});case"textarea":return Q(cu.TextArea,{placeholder:ne||oe,autoSize:{minHeight:80,maxHeight:120},...ae,disabled:U,style:{width:J,...se==null?void 0:se.style,...q}});case"number":return Q(cu,{placeholder:ne||oe,...ae,type:"number",disabled:U,style:{width:J,...se==null?void 0:se.style,...q}});case"mult-select":case"select":return Q(TV,{item:P.json,readonly:U,style:{width:J,...se==null?void 0:se.style,...q},commonRequestWidthParams:r,commonRequest:i,value:$,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x,onChange:ye=>{ee.setFieldValue(P.attrid,ye)}});case"modal-mult-select":case"modal-select":return Q(BL,{style:{width:J,...se==null?void 0:se.style,...q},item:P.json,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ye=>{ee.setFieldValue(P.attrid,ye)},disabled:U,langId:x,CustomModalComponent:C});case"mul-field-modal-select":return Q(ML,{style:{width:J,...se==null?void 0:se.style,...q},item:P.json,form:ee,attrid:Z,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,langId:x,onSure:async ye=>{ee.setFieldsValue(ye)},disabled:U,CustomModalComponent:C,getTitle:_});case"date-picker":return Q(XC,{popup:!0,type:"date",children:ye=>ye?hn(ye).format("YYYY-MM-DD"):x==="10001"?"请选择日期":"Please select a date"});case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":{const ye={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};return Q(me.DatePicker,{picker:ye[te]||"date",disabled:U,placement:"bottomLeft",style:{width:J,...se==null?void 0:se.style,...q}})}case"time-picker":return Q(XC,{popup:{round:!0},type:"datetime",title:x==="10001"?"选择年月日时分":"Select date and time",onConfirm:ye=>{ee.setFieldValue(P.attrid,ye)},children:ye=>ye?Q("span",{style:{color:"#333333"},children:hn(ye).format("YYYY-MM-DD HH:mm")}):x==="10001"?"请选择时间":"Please select time"});case"second-picker":return Q(XC,{popup:{round:!0},type:"time",title:x==="10001"?"选择年月日":"Select time",onConfirm:ye=>{ee.setFieldValue(P.attrid,ye)},children:ye=>ye?Q("span",{style:{color:"#333333"},children:ye}):x==="10001"?"请选择时间":"Please select time"});case"range-picker":return Q(OT,{type:"range",children:(ye,De)=>Q(eC,{style:{padding:0},value:ye?ye.map(Pe=>hn(Pe).format("YYYY-MM-DD")).join("~"):x==="10001"?"请选择日期":"Please select a date",onClick:()=>De.open()})});case"multiple-date-picker":return Q(OT,{type:"multiple",children:(ye,De)=>Q(eC,{style:{padding:0},value:ye?ye.map(Pe=>hn(Pe).format("YYYY-MM-DD")).join(","):x==="10001"?"请选择日期":"Please select a date",onClick:()=>De.open()})});case"radio":return Q(FV,{radioAlign:V,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:U,options:ae,handleUrlOptions:kc,value:$,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x,onChange:ye=>{ee.setFieldValue(P.attrid,ye.target.value)}});case"checkbox":return Q(zL,{radioAlign:V,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:U,options:ae,value:$,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x,onChange:ye=>{ee.setFieldValue(P.attrid,ye.join(","))}});case"audio":case"file":case"image":case"video":return Q(RV,{action:t&&t("initializationfile"),item:P.json,uploadType:te,list:$,readonly:U,uploadText:x==="10001"?"上传文件":"Upload file",relatedid:K,relatedidKey:g,langId:x,onRemove:ye=>I(ye)});case"cascader":return Q(UL,{commonRequestWidthParams:r,commonRequest:i,item:P.json,value:P.attrvalue,style:{width:J,...se==null?void 0:se.style,...q},interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x});case"radio-card":return Q(jL,{item:P.json,readonly:U,onChange:ye=>{ee.setFieldValue(P.attrid,ye)},commonRequestWidthParams:r});default:return Q(cu,{placeholder:oe,...ae,clearable:!0,disabled:U,style:{width:J,...se==null?void 0:se.style,...q}})}},B=({item:P,readonly:U=!1,colNum:H=1,instructionShowMode:V="icon",relatedid:K,form:ee,defaultWidth:J=358,formItemStyle:q,radioAlign:te="horizontal",isFormListItem:Z=!1,formListField:$,isShowLabel:ne=!0})=>{var se;const oe=P.info_base64===1?uu(Zh(P.info)):uu(P.info),ae={...P,json:{...P==null?void 0:P.json,...oe}};return((se=ae.json)==null?void 0:se.hide)===!0?null:Q(W.Fragment,{children:M({itemWithJson:ae,readonly:U,colNum:H,instructionShowMode:V,relatedid:K,form:ee,defaultWidth:J,formItemStyle:q,radioAlign:te,isFormListItem:Z,formListField:$,isShowLabel:ne})},ae.attrid)};return{handleRenderItem:B,handleSetFormItemInitialValue:Tc}}const MV=W.forwardRef((e,r)=>{const{formConfig:t,setFormConfig:i,setAttrList:l,readonly:f=!1,relatedid:c,colNum:p=1,colSpace:g=[0,0],instructionShowMode:d="flex",defaultWidth:m="100%",commonRequestWidthParams:C,uploadAction:b,commonRequest:x,formItemStyle:_=[],radioAlign:k="horizontal",interfaceTypeChildren:E="YLLRDetailAttrlist",interfaceTypeDict:A="YLZDDictList",interfaceTypeSysDict:T="YLZDSysConfigList",relatedidKey:D="relatedid",actionUrlKey:R="action-url",actionUrlExtraParams:N={},CustomModalComponent:z,hideAttrList:M=[],formShowType:I="form",formListItemWidth:Y,formListItemName:B,langId:P="10001",getTitle:U,form:H}=e,V=W.useRef([]),K=J=>{V.current.push(J)},{handleRenderItem:ee}=NV({commonRequestWidthParams:C,uploadAction:b,commonRequest:x,setFormConfig:i,setAttrList:l,updateDelFileList:K,formConfig:t,interfaceTypeChildren:E,interfaceTypeDict:A,interfaceTypeSysDict:T,relatedidKey:D,actionUrlKey:R,actionUrlExtraParams:N,CustomModalComponent:z,hideAttrList:M,langId:P,getTitle:U});return W.useImperativeHandle(r,()=>({getDelFileList:()=>V.current})),Q(en,{children:I==="table"?Q(xy.List,{name:B||"customFormList",initialValue:[{}],children:(J,{add:q,remove:te})=>Be(en,{children:[J.map((Z,$)=>Be("div",{className:"form-list-item",style:{borderRadius:8,marginBottom:10},children:[Be(me.Flex,{justify:"space-between",style:{height:44,marginLeft:16,marginRight:16,borderBottom:"1px solid #E3E3E3"},align:"center",children:[Q("span",{style:{color:"#555555"},children:P==="10001"?`第${$+1}条`:`Record ${$+1}`}),Q("a",{style:{color:"#ff4d4f"},onClick:()=>te($),children:P==="10001"?"删除":"Delete"})]}),Q("div",{className:"form-list-item__control",children:t==null?void 0:t.map((ne,oe)=>Q(W.Fragment,{children:ee({item:ne,readonly:f,colNum:p,instructionShowMode:d,relatedid:c,form:H,defaultWidth:(Y==null?void 0:Y[oe])||m,formItemStyle:_,isFormListItem:!0,formListField:Z})},oe))})]},$)),Q("div",{style:{padding:10},children:Q(ip,{plain:!0,icon:Q(jz,{}),style:{width:"100%"},type:"primary",onClick:()=>q({}),children:P==="10001"?"新增":"Add"})})]})}):Q(me.Row,{gutter:g,children:t.map((J,q)=>Q(W.Fragment,{children:ee({item:J,readonly:f,colNum:p,instructionShowMode:d,relatedid:c,form:H,defaultWidth:m,formItemStyle:_,radioAlign:k})},J.attrid||`form-item-${q}`))})})}),p3={phone:{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号码"},telephone:{pattern:/^[\d -]+$/,message:"请输入正确的电话号码"},email:{pattern:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,message:"请输入正确的邮箱地址"},httpUrl:{pattern:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/,message:"请输入合法的URL"},zipCode:{pattern:/^[0-9]{6}$/,message:"请输入正确的邮政编码"},specificKey:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D()()]*$/,message:"可输入字母、汉字、数字或()"},inputTextarea:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D-\u3002-\uff1f-\uff01-\uff0c-\u3001-\uff1b-\uff1a]*$/,message:"请输入字母、汉字或数字和中文常用字符:?!,、;。"},backendRestrict:{pattern:/^[^'"/\\]*$/,message:`不能输入特殊字符\\'/"`},onetoNinetyNine:{pattern:/^[1-9][0-9]{0,1}$/,message:"请输入1-99的整数"},passwordRule:{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z0-9]{8,12}$/,message:"密码应为字母大小写+数字8-12位组合"},passwordNewRule:{pattern:/^.*(?=.{8,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#¥%&*.()_+~/-]).*$/,message:"密码应为字母大小写+数字+常见字符!@#¥%&*.()_+~/- 8-12位组合"},pureNumber:{pattern:/^[1-9][0-9]*$/,message:"请输入整数类型"},onlyBlankRule:{pattern:/\S/,message:"输入内容不能只有空格"}},PV=Object.freeze(Object.defineProperty({__proto__:null,default:p3},Symbol.toStringTag,{value:"Module"}));class BV{constructor(r){Xf(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=r}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const r=document.getElementById(this.options.id),t=document.createElement("canvas");t.id=this.options.canvasId,t.width=Number(this.options.width),t.height=Number(this.options.height),t.style.cursor="pointer",t.innerHTML="您的浏览器版本不支持canvas",r&&r.appendChild(t),t.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const r=document.getElementById(this.options.canvasId);let t,i=[];if(r.getContext)t=r.getContext("2d");else return;t.textBaseline="middle",t.fillStyle=this.randomColor(180,240),t.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?i=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?i=this.options.numArr:i=this.options.letterArr;for(let l=1;l<=4;l++){const f=i[this.randomNum(0,i.length)];this.options.code+=f,t.font="20px SimHei",t.fillStyle=this.randomColor(50,160),t.shadowBlur=this.randomNum(-3,3),t.shadowColor="rgba(0, 0, 0, 0.3)";const c=Number(this.options.width)/5*l,p=Number(this.options.height)/2,g=this.randomNum(-30,30);t.translate(c,p),t.rotate(g*Math.PI/180),t.fillText(f,0,0),t.rotate(-g*Math.PI/180),t.translate(-c,-p)}for(let l=0;l<2;l++)t.strokeStyle=this.randomColor(40,180),t.beginPath(),t.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),t.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),t.stroke();for(let l=0;l<Number(this.options.width)/10;l++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),t.fill()}validate(r){const t=r.toLowerCase(),i=this.options.code.toLowerCase();return t==i}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(r,t){return Math.floor(Math.random()*(t-r)+r)}randomColor(r,t){const i=this.randomNum(r,t),l=this.randomNum(r,t),f=this.randomNum(r,t);return"rgb("+i+","+l+","+f+")"}}const LV=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:BV},Symbol.toStringTag,{value:"Module"}));var v3={exports:{}};function zV(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ww={exports:{}};const UV=L4(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var m3;function Qt(){return m3||(m3=1,function(e,r){(function(t,i){e.exports=i()})(Pt,function(){var t=t||function(i,l){var f;if(typeof window<"u"&&window.crypto&&(f=window.crypto),typeof self<"u"&&self.crypto&&(f=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(f=globalThis.crypto),!f&&typeof window<"u"&&window.msCrypto&&(f=window.msCrypto),!f&&typeof Pt<"u"&&Pt.crypto&&(f=Pt.crypto),!f&&typeof zV=="function")try{f=UV}catch{}var c=function(){if(f){if(typeof f.getRandomValues=="function")try{return f.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof f.randomBytes=="function")try{return f.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},p=Object.create||function(){function T(){}return function(D){var R;return T.prototype=D,R=new T,T.prototype=null,R}}(),g={},d=g.lib={},m=d.Base=function(){return{extend:function(T){var D=p(this);return T&&D.mixIn(T),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var D in T)T.hasOwnProperty(D)&&(this[D]=T[D]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),C=d.WordArray=m.extend({init:function(T,D){T=this.words=T||[],D!=l?this.sigBytes=D:this.sigBytes=T.length*4},toString:function(T){return(T||x).stringify(this)},concat:function(T){var D=this.words,R=T.words,N=this.sigBytes,z=T.sigBytes;if(this.clamp(),N%4)for(var M=0;M<z;M++){var I=R[M>>>2]>>>24-M%4*8&255;D[N+M>>>2]|=I<<24-(N+M)%4*8}else for(var Y=0;Y<z;Y+=4)D[N+Y>>>2]=R[Y>>>2];return this.sigBytes+=z,this},clamp:function(){var T=this.words,D=this.sigBytes;T[D>>>2]&=4294967295<<32-D%4*8,T.length=i.ceil(D/4)},clone:function(){var T=m.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var D=[],R=0;R<T;R+=4)D.push(c());return new C.init(D,T)}}),b=g.enc={},x=b.Hex={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push((M>>>4).toString(16)),N.push((M&15).toString(16))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N+=2)R[N>>>3]|=parseInt(T.substr(N,2),16)<<24-N%8*4;return new C.init(R,D/2)}},_=b.Latin1={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push(String.fromCharCode(M))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N++)R[N>>>2]|=(T.charCodeAt(N)&255)<<24-N%4*8;return new C.init(R,D)}},k=b.Utf8={stringify:function(T){try{return decodeURIComponent(escape(_.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return _.parse(unescape(encodeURIComponent(T)))}},E=d.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=k.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var D,R=this._data,N=R.words,z=R.sigBytes,M=this.blockSize,I=M*4,Y=z/I;T?Y=i.ceil(Y):Y=i.max((Y|0)-this._minBufferSize,0);var B=Y*M,P=i.min(B*4,z);if(B){for(var U=0;U<B;U+=M)this._doProcessBlock(N,U);D=N.splice(0,B),R.sigBytes-=P}return new C.init(D,P)},clone:function(){var T=m.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0});d.Hasher=E.extend({cfg:m.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){T&&this._append(T);var D=this._doFinalize();return D},blockSize:16,_createHelper:function(T){return function(D,R){return new T.init(R).finalize(D)}},_createHmacHelper:function(T){return function(D,R){return new A.HMAC.init(T,R).finalize(D)}}});var A=g.algo={};return g}(Math);return t})}(ww)),ww.exports}var _w={exports:{}},g3;function by(){return g3||(g3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.Base,p=f.WordArray,g=l.x64={};g.Word=c.extend({init:function(d,m){this.high=d,this.low=m}}),g.WordArray=c.extend({init:function(d,m){d=this.words=d||[],m!=i?this.sigBytes=m:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,m=d.length,C=[],b=0;b<m;b++){var x=d[b];C.push(x.high),C.push(x.low)}return p.create(C,this.sigBytes)},clone:function(){for(var d=c.clone.call(this),m=d.words=this.words.slice(0),C=m.length,b=0;b<C;b++)m[b]=m[b].clone();return d}})}(),t})}(_w)),_w.exports}var Sw={exports:{}},y3;function jV(){return y3||(y3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){if(typeof ArrayBuffer=="function"){var i=t,l=i.lib,f=l.WordArray,c=f.init,p=f.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var d=g.byteLength,m=[],C=0;C<d;C++)m[C>>>2]|=g[C]<<24-C%4*8;c.call(this,m,d)}else c.apply(this,arguments)};p.prototype=f}}(),t.lib.WordArray})}(Sw)),Sw.exports}var Ew={exports:{}},x3;function IV(){return x3||(x3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Utf16=c.Utf16BE={stringify:function(g){for(var d=g.words,m=g.sigBytes,C=[],b=0;b<m;b+=2){var x=d[b>>>2]>>>16-b%4*8&65535;C.push(String.fromCharCode(x))}return C.join("")},parse:function(g){for(var d=g.length,m=[],C=0;C<d;C++)m[C>>>1]|=g.charCodeAt(C)<<16-C%2*16;return f.create(m,d*2)}},c.Utf16LE={stringify:function(g){for(var d=g.words,m=g.sigBytes,C=[],b=0;b<m;b+=2){var x=p(d[b>>>2]>>>16-b%4*8&65535);C.push(String.fromCharCode(x))}return C.join("")},parse:function(g){for(var d=g.length,m=[],C=0;C<d;C++)m[C>>>1]|=p(g.charCodeAt(C)<<16-C%2*16);return f.create(m,d*2)}};function p(g){return g<<8&4278255360|g>>>8&16711935}}(),t.enc.Utf16})}(Ew)),Ew.exports}var Dw={exports:{}},b3;function jc(){return b3||(b3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64={stringify:function(g){var d=g.words,m=g.sigBytes,C=this._map;g.clamp();for(var b=[],x=0;x<m;x+=3)for(var _=d[x>>>2]>>>24-x%4*8&255,k=d[x+1>>>2]>>>24-(x+1)%4*8&255,E=d[x+2>>>2]>>>24-(x+2)%4*8&255,A=_<<16|k<<8|E,T=0;T<4&&x+T*.75<m;T++)b.push(C.charAt(A>>>6*(3-T)&63));var D=C.charAt(64);if(D)for(;b.length%4;)b.push(D);return b.join("")},parse:function(g){var d=g.length,m=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var b=0;b<m.length;b++)C[m.charCodeAt(b)]=b}var x=m.charAt(64);if(x){var _=g.indexOf(x);_!==-1&&(d=_)}return p(g,d,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function p(g,d,m){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=m[g.charCodeAt(x-1)]<<x%4*2,k=m[g.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64})}(Dw)),Dw.exports}var kw={exports:{}},C3;function HV(){return C3||(C3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64url={stringify:function(g,d){d===void 0&&(d=!0);var m=g.words,C=g.sigBytes,b=d?this._safe_map:this._map;g.clamp();for(var x=[],_=0;_<C;_+=3)for(var k=m[_>>>2]>>>24-_%4*8&255,E=m[_+1>>>2]>>>24-(_+1)%4*8&255,A=m[_+2>>>2]>>>24-(_+2)%4*8&255,T=k<<16|E<<8|A,D=0;D<4&&_+D*.75<C;D++)x.push(b.charAt(T>>>6*(3-D)&63));var R=b.charAt(64);if(R)for(;x.length%4;)x.push(R);return x.join("")},parse:function(g,d){d===void 0&&(d=!0);var m=g.length,C=d?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var x=0;x<C.length;x++)b[C.charCodeAt(x)]=x}var _=C.charAt(64);if(_){var k=g.indexOf(_);k!==-1&&(m=k)}return p(g,m,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function p(g,d,m){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=m[g.charCodeAt(x-1)]<<x%4*2,k=m[g.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64url})}(kw)),kw.exports}var Tw={exports:{}},w3;function Ic(){return w3||(w3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.algo,d=[];(function(){for(var k=0;k<64;k++)d[k]=i.abs(i.sin(k+1))*4294967296|0})();var m=g.MD5=p.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,E){for(var A=0;A<16;A++){var T=E+A,D=k[T];k[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var R=this._hash.words,N=k[E+0],z=k[E+1],M=k[E+2],I=k[E+3],Y=k[E+4],B=k[E+5],P=k[E+6],U=k[E+7],H=k[E+8],V=k[E+9],K=k[E+10],ee=k[E+11],J=k[E+12],q=k[E+13],te=k[E+14],Z=k[E+15],$=R[0],ne=R[1],oe=R[2],ae=R[3];$=C($,ne,oe,ae,N,7,d[0]),ae=C(ae,$,ne,oe,z,12,d[1]),oe=C(oe,ae,$,ne,M,17,d[2]),ne=C(ne,oe,ae,$,I,22,d[3]),$=C($,ne,oe,ae,Y,7,d[4]),ae=C(ae,$,ne,oe,B,12,d[5]),oe=C(oe,ae,$,ne,P,17,d[6]),ne=C(ne,oe,ae,$,U,22,d[7]),$=C($,ne,oe,ae,H,7,d[8]),ae=C(ae,$,ne,oe,V,12,d[9]),oe=C(oe,ae,$,ne,K,17,d[10]),ne=C(ne,oe,ae,$,ee,22,d[11]),$=C($,ne,oe,ae,J,7,d[12]),ae=C(ae,$,ne,oe,q,12,d[13]),oe=C(oe,ae,$,ne,te,17,d[14]),ne=C(ne,oe,ae,$,Z,22,d[15]),$=b($,ne,oe,ae,z,5,d[16]),ae=b(ae,$,ne,oe,P,9,d[17]),oe=b(oe,ae,$,ne,ee,14,d[18]),ne=b(ne,oe,ae,$,N,20,d[19]),$=b($,ne,oe,ae,B,5,d[20]),ae=b(ae,$,ne,oe,K,9,d[21]),oe=b(oe,ae,$,ne,Z,14,d[22]),ne=b(ne,oe,ae,$,Y,20,d[23]),$=b($,ne,oe,ae,V,5,d[24]),ae=b(ae,$,ne,oe,te,9,d[25]),oe=b(oe,ae,$,ne,I,14,d[26]),ne=b(ne,oe,ae,$,H,20,d[27]),$=b($,ne,oe,ae,q,5,d[28]),ae=b(ae,$,ne,oe,M,9,d[29]),oe=b(oe,ae,$,ne,U,14,d[30]),ne=b(ne,oe,ae,$,J,20,d[31]),$=x($,ne,oe,ae,B,4,d[32]),ae=x(ae,$,ne,oe,H,11,d[33]),oe=x(oe,ae,$,ne,ee,16,d[34]),ne=x(ne,oe,ae,$,te,23,d[35]),$=x($,ne,oe,ae,z,4,d[36]),ae=x(ae,$,ne,oe,Y,11,d[37]),oe=x(oe,ae,$,ne,U,16,d[38]),ne=x(ne,oe,ae,$,K,23,d[39]),$=x($,ne,oe,ae,q,4,d[40]),ae=x(ae,$,ne,oe,N,11,d[41]),oe=x(oe,ae,$,ne,I,16,d[42]),ne=x(ne,oe,ae,$,P,23,d[43]),$=x($,ne,oe,ae,V,4,d[44]),ae=x(ae,$,ne,oe,J,11,d[45]),oe=x(oe,ae,$,ne,Z,16,d[46]),ne=x(ne,oe,ae,$,M,23,d[47]),$=_($,ne,oe,ae,N,6,d[48]),ae=_(ae,$,ne,oe,U,10,d[49]),oe=_(oe,ae,$,ne,te,15,d[50]),ne=_(ne,oe,ae,$,B,21,d[51]),$=_($,ne,oe,ae,J,6,d[52]),ae=_(ae,$,ne,oe,I,10,d[53]),oe=_(oe,ae,$,ne,K,15,d[54]),ne=_(ne,oe,ae,$,z,21,d[55]),$=_($,ne,oe,ae,H,6,d[56]),ae=_(ae,$,ne,oe,Z,10,d[57]),oe=_(oe,ae,$,ne,P,15,d[58]),ne=_(ne,oe,ae,$,q,21,d[59]),$=_($,ne,oe,ae,Y,6,d[60]),ae=_(ae,$,ne,oe,ee,10,d[61]),oe=_(oe,ae,$,ne,M,15,d[62]),ne=_(ne,oe,ae,$,V,21,d[63]),R[0]=R[0]+$|0,R[1]=R[1]+ne|0,R[2]=R[2]+oe|0,R[3]=R[3]+ae|0},_doFinalize:function(){var k=this._data,E=k.words,A=this._nDataBytes*8,T=k.sigBytes*8;E[T>>>5]|=128<<24-T%32;var D=i.floor(A/4294967296),R=A;E[(T+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E[(T+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k.sigBytes=(E.length+1)*4,this._process();for(var N=this._hash,z=N.words,M=0;M<4;M++){var I=z[M];z[M]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return N},clone:function(){var k=p.clone.call(this);return k._hash=this._hash.clone(),k}});function C(k,E,A,T,D,R,N){var z=k+(E&A|~E&T)+D+N;return(z<<R|z>>>32-R)+E}function b(k,E,A,T,D,R,N){var z=k+(E&T|A&~T)+D+N;return(z<<R|z>>>32-R)+E}function x(k,E,A,T,D,R,N){var z=k+(E^A^T)+D+N;return(z<<R|z>>>32-R)+E}function _(k,E,A,T,D,R,N){var z=k+(A^(E|~T))+D+N;return(z<<R|z>>>32-R)+E}l.MD5=p._createHelper(m),l.HmacMD5=p._createHmacHelper(m)}(Math),t.MD5})}(Tw)),Tw.exports}var Aw={exports:{}},_3;function S3(){return _3||(_3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.Hasher,p=i.algo,g=[],d=p.SHA1=c.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,C){for(var b=this._hash.words,x=b[0],_=b[1],k=b[2],E=b[3],A=b[4],T=0;T<80;T++){if(T<16)g[T]=m[C+T]|0;else{var D=g[T-3]^g[T-8]^g[T-14]^g[T-16];g[T]=D<<1|D>>>31}var R=(x<<5|x>>>27)+A+g[T];T<20?R+=(_&k|~_&E)+1518500249:T<40?R+=(_^k^E)+1859775393:T<60?R+=(_&k|_&E|k&E)-1894007588:R+=(_^k^E)-899497514,A=E,E=k,k=_<<30|_>>>2,_=x,x=R}b[0]=b[0]+x|0,b[1]=b[1]+_|0,b[2]=b[2]+k|0,b[3]=b[3]+E|0,b[4]=b[4]+A|0},_doFinalize:function(){var m=this._data,C=m.words,b=this._nDataBytes*8,x=m.sigBytes*8;return C[x>>>5]|=128<<24-x%32,C[(x+64>>>9<<4)+14]=Math.floor(b/4294967296),C[(x+64>>>9<<4)+15]=b,m.sigBytes=C.length*4,this._process(),this._hash},clone:function(){var m=c.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA1=c._createHelper(d),i.HmacSHA1=c._createHmacHelper(d)}(),t.SHA1})}(Aw)),Aw.exports}var Ow={exports:{}},E3;function Rw(){return E3||(E3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.algo,d=[],m=[];(function(){function x(A){for(var T=i.sqrt(A),D=2;D<=T;D++)if(!(A%D))return!1;return!0}function _(A){return(A-(A|0))*4294967296|0}for(var k=2,E=0;E<64;)x(k)&&(E<8&&(d[E]=_(i.pow(k,1/2))),m[E]=_(i.pow(k,1/3)),E++),k++})();var C=[],b=g.SHA256=p.extend({_doReset:function(){this._hash=new c.init(d.slice(0))},_doProcessBlock:function(x,_){for(var k=this._hash.words,E=k[0],A=k[1],T=k[2],D=k[3],R=k[4],N=k[5],z=k[6],M=k[7],I=0;I<64;I++){if(I<16)C[I]=x[_+I]|0;else{var Y=C[I-15],B=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,P=C[I-2],U=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;C[I]=B+C[I-7]+U+C[I-16]}var H=R&N^~R&z,V=E&A^E&T^A&T,K=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),ee=(R<<26|R>>>6)^(R<<21|R>>>11)^(R<<7|R>>>25),J=M+ee+H+m[I]+C[I],q=K+V;M=z,z=N,N=R,R=D+J|0,D=T,T=A,A=E,E=J+q|0}k[0]=k[0]+E|0,k[1]=k[1]+A|0,k[2]=k[2]+T|0,k[3]=k[3]+D|0,k[4]=k[4]+R|0,k[5]=k[5]+N|0,k[6]=k[6]+z|0,k[7]=k[7]+M|0},_doFinalize:function(){var x=this._data,_=x.words,k=this._nDataBytes*8,E=x.sigBytes*8;return _[E>>>5]|=128<<24-E%32,_[(E+64>>>9<<4)+14]=i.floor(k/4294967296),_[(E+64>>>9<<4)+15]=k,x.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var x=p.clone.call(this);return x._hash=this._hash.clone(),x}});l.SHA256=p._createHelper(b),l.HmacSHA256=p._createHmacHelper(b)}(Math),t.SHA256})}(Ow)),Ow.exports}var Fw={exports:{}},D3;function VV(){return D3||(D3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),Rw())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.algo,p=c.SHA256,g=c.SHA224=p.extend({_doReset:function(){this._hash=new f.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=p._doFinalize.call(this);return d.sigBytes-=4,d}});i.SHA224=p._createHelper(g),i.HmacSHA224=p._createHmacHelper(g)}(),t.SHA224})}(Fw)),Fw.exports}var Nw={exports:{}},k3;function T3(){return k3||(k3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),by())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.Hasher,c=i.x64,p=c.Word,g=c.WordArray,d=i.algo;function m(){return p.create.apply(p,arguments)}var C=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],b=[];(function(){for(var _=0;_<80;_++)b[_]=m()})();var x=d.SHA512=f.extend({_doReset:function(){this._hash=new g.init([new p.init(1779033703,4089235720),new p.init(3144134277,2227873595),new p.init(1013904242,4271175723),new p.init(2773480762,1595750129),new p.init(1359893119,2917565137),new p.init(2600822924,725511199),new p.init(528734635,4215389547),new p.init(1541459225,327033209)])},_doProcessBlock:function(_,k){for(var E=this._hash.words,A=E[0],T=E[1],D=E[2],R=E[3],N=E[4],z=E[5],M=E[6],I=E[7],Y=A.high,B=A.low,P=T.high,U=T.low,H=D.high,V=D.low,K=R.high,ee=R.low,J=N.high,q=N.low,te=z.high,Z=z.low,$=M.high,ne=M.low,oe=I.high,ae=I.low,se=Y,ve=B,we=P,ce=U,ye=H,De=V,Pe=K,ke=ee,ze=J,Ne=q,dt=te,Xe=Z,Zt=$,sn=ne,kn=oe,jn=ae,un=0;un<80;un++){var It,on,In=b[un];if(un<16)on=In.high=_[k+un*2]|0,It=In.low=_[k+un*2+1]|0;else{var Mn=b[un-15],Tn=Mn.high,Gt=Mn.low,Kn=(Tn>>>1|Gt<<31)^(Tn>>>8|Gt<<24)^Tn>>>7,ka=(Gt>>>1|Tn<<31)^(Gt>>>8|Tn<<24)^(Gt>>>7|Tn<<25),Lr=b[un-2],qe=Lr.high,at=Lr.low,ct=(qe>>>19|at<<13)^(qe<<3|at>>>29)^qe>>>6,Ht=(at>>>19|qe<<13)^(at<<3|qe>>>29)^(at>>>6|qe<<26),Nn=b[un-7],ur=Nn.high,Wn=Nn.low,zr=b[un-16],_n=zr.high,na=zr.low;It=ka+Wn,on=Kn+ur+(It>>>0<ka>>>0?1:0),It=It+Ht,on=on+ct+(It>>>0<Ht>>>0?1:0),It=It+na,on=on+_n+(It>>>0<na>>>0?1:0),In.high=on,In.low=It}var vn=ze&dt^~ze&Zt,mn=Ne&Xe^~Ne&sn,yl=se&we^se&ye^we&ye,Do=ve&ce^ve&De^ce&De,xl=(se>>>28|ve<<4)^(se<<30|ve>>>2)^(se<<25|ve>>>7),bl=(ve>>>28|se<<4)^(ve<<30|se>>>2)^(ve<<25|se>>>7),gu=(ze>>>14|Ne<<18)^(ze>>>18|Ne<<14)^(ze<<23|Ne>>>9),ko=(Ne>>>14|ze<<18)^(Ne>>>18|ze<<14)^(Ne<<23|ze>>>9),To=C[un],Ao=To.high,Oo=To.low,Hn=jn+ko,Ur=kn+gu+(Hn>>>0<jn>>>0?1:0),Hn=Hn+mn,Ur=Ur+vn+(Hn>>>0<mn>>>0?1:0),Hn=Hn+Oo,Ur=Ur+Ao+(Hn>>>0<Oo>>>0?1:0),Hn=Hn+It,Ur=Ur+on+(Hn>>>0<It>>>0?1:0),ra=bl+Do,Ya=xl+yl+(ra>>>0<bl>>>0?1:0);kn=Zt,jn=sn,Zt=dt,sn=Xe,dt=ze,Xe=Ne,Ne=ke+Hn|0,ze=Pe+Ur+(Ne>>>0<ke>>>0?1:0)|0,Pe=ye,ke=De,ye=we,De=ce,we=se,ce=ve,ve=Hn+ra|0,se=Ur+Ya+(ve>>>0<Hn>>>0?1:0)|0}B=A.low=B+ve,A.high=Y+se+(B>>>0<ve>>>0?1:0),U=T.low=U+ce,T.high=P+we+(U>>>0<ce>>>0?1:0),V=D.low=V+De,D.high=H+ye+(V>>>0<De>>>0?1:0),ee=R.low=ee+ke,R.high=K+Pe+(ee>>>0<ke>>>0?1:0),q=N.low=q+Ne,N.high=J+ze+(q>>>0<Ne>>>0?1:0),Z=z.low=Z+Xe,z.high=te+dt+(Z>>>0<Xe>>>0?1:0),ne=M.low=ne+sn,M.high=$+Zt+(ne>>>0<sn>>>0?1:0),ae=I.low=ae+jn,I.high=oe+kn+(ae>>>0<jn>>>0?1:0)},_doFinalize:function(){var _=this._data,k=_.words,E=this._nDataBytes*8,A=_.sigBytes*8;k[A>>>5]|=128<<24-A%32,k[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),k[(A+128>>>10<<5)+31]=E,_.sigBytes=k.length*4,this._process();var T=this._hash.toX32();return T},clone:function(){var _=f.clone.call(this);return _._hash=this._hash.clone(),_},blockSize:1024/32});i.SHA512=f._createHelper(x),i.HmacSHA512=f._createHmacHelper(x)}(),t.SHA512})}(Nw)),Nw.exports}var Mw={exports:{}},A3;function $V(){return A3||(A3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),by(),T3())})(Pt,function(t){return function(){var i=t,l=i.x64,f=l.Word,c=l.WordArray,p=i.algo,g=p.SHA512,d=p.SHA384=g.extend({_doReset:function(){this._hash=new c.init([new f.init(3418070365,3238371032),new f.init(1654270250,914150663),new f.init(2438529370,812702999),new f.init(355462360,4144912697),new f.init(1731405415,4290775857),new f.init(2394180231,1750603025),new f.init(3675008525,1694076839),new f.init(1203062813,3204075428)])},_doFinalize:function(){var m=g._doFinalize.call(this);return m.sigBytes-=16,m}});i.SHA384=g._createHelper(d),i.HmacSHA384=g._createHmacHelper(d)}(),t.SHA384})}(Mw)),Mw.exports}var Pw={exports:{}},O3;function YV(){return O3||(O3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),by())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.x64,d=g.Word,m=l.algo,C=[],b=[],x=[];(function(){for(var E=1,A=0,T=0;T<24;T++){C[E+5*A]=(T+1)*(T+2)/2%64;var D=A%5,R=(2*E+3*A)%5;E=D,A=R}for(var E=0;E<5;E++)for(var A=0;A<5;A++)b[E+5*A]=A+(2*E+3*A)%5*5;for(var N=1,z=0;z<24;z++){for(var M=0,I=0,Y=0;Y<7;Y++){if(N&1){var B=(1<<Y)-1;B<32?I^=1<<B:M^=1<<B-32}N&128?N=N<<1^113:N<<=1}x[z]=d.create(M,I)}})();var _=[];(function(){for(var E=0;E<25;E++)_[E]=d.create()})();var k=m.SHA3=p.extend({cfg:p.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var T=this._state,D=this.blockSize/2,R=0;R<D;R++){var N=E[A+2*R],z=E[A+2*R+1];N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360;var M=T[R];M.high^=z,M.low^=N}for(var I=0;I<24;I++){for(var Y=0;Y<5;Y++){for(var B=0,P=0,U=0;U<5;U++){var M=T[Y+5*U];B^=M.high,P^=M.low}var H=_[Y];H.high=B,H.low=P}for(var Y=0;Y<5;Y++)for(var V=_[(Y+4)%5],K=_[(Y+1)%5],ee=K.high,J=K.low,B=V.high^(ee<<1|J>>>31),P=V.low^(J<<1|ee>>>31),U=0;U<5;U++){var M=T[Y+5*U];M.high^=B,M.low^=P}for(var q=1;q<25;q++){var B,P,M=T[q],te=M.high,Z=M.low,$=C[q];$<32?(B=te<<$|Z>>>32-$,P=Z<<$|te>>>32-$):(B=Z<<$-32|te>>>64-$,P=te<<$-32|Z>>>64-$);var ne=_[b[q]];ne.high=B,ne.low=P}var oe=_[0],ae=T[0];oe.high=ae.high,oe.low=ae.low;for(var Y=0;Y<5;Y++)for(var U=0;U<5;U++){var q=Y+5*U,M=T[q],se=_[q],ve=_[(Y+1)%5+5*U],we=_[(Y+2)%5+5*U];M.high=se.high^~ve.high&we.high,M.low=se.low^~ve.low&we.low}var M=T[0],ce=x[I];M.high^=ce.high,M.low^=ce.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var T=E.sigBytes*8,D=this.blockSize*32;A[T>>>5]|=1<<24-T%32,A[(i.ceil((T+1)/D)*D>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var R=this._state,N=this.cfg.outputLength/8,z=N/8,M=[],I=0;I<z;I++){var Y=R[I],B=Y.high,P=Y.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,M.push(P),M.push(B)}return new c.init(M,N)},clone:function(){for(var E=p.clone.call(this),A=E._state=this._state.slice(0),T=0;T<25;T++)A[T]=A[T].clone();return E}});l.SHA3=p._createHelper(k),l.HmacSHA3=p._createHmacHelper(k)}(Math),t.SHA3})}(Pw)),Pw.exports}var Bw={exports:{}},R3;function qV(){return R3||(R3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),m=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=c.create([0,1518500249,1859775393,2400959708,2840853838]),_=c.create([1352829926,1548603684,1836072691,2053994217,0]),k=g.RIPEMD160=p.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(z,M){for(var I=0;I<16;I++){var Y=M+I,B=z[Y];z[Y]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var P=this._hash.words,U=x.words,H=_.words,V=d.words,K=m.words,ee=C.words,J=b.words,q,te,Z,$,ne,oe,ae,se,ve,we;oe=q=P[0],ae=te=P[1],se=Z=P[2],ve=$=P[3],we=ne=P[4];for(var ce,I=0;I<80;I+=1)ce=q+z[M+V[I]]|0,I<16?ce+=E(te,Z,$)+U[0]:I<32?ce+=A(te,Z,$)+U[1]:I<48?ce+=T(te,Z,$)+U[2]:I<64?ce+=D(te,Z,$)+U[3]:ce+=R(te,Z,$)+U[4],ce=ce|0,ce=N(ce,ee[I]),ce=ce+ne|0,q=ne,ne=$,$=N(Z,10),Z=te,te=ce,ce=oe+z[M+K[I]]|0,I<16?ce+=R(ae,se,ve)+H[0]:I<32?ce+=D(ae,se,ve)+H[1]:I<48?ce+=T(ae,se,ve)+H[2]:I<64?ce+=A(ae,se,ve)+H[3]:ce+=E(ae,se,ve)+H[4],ce=ce|0,ce=N(ce,J[I]),ce=ce+we|0,oe=we,we=ve,ve=N(se,10),se=ae,ae=ce;ce=P[1]+Z+ve|0,P[1]=P[2]+$+we|0,P[2]=P[3]+ne+oe|0,P[3]=P[4]+q+ae|0,P[4]=P[0]+te+se|0,P[0]=ce},_doFinalize:function(){var z=this._data,M=z.words,I=this._nDataBytes*8,Y=z.sigBytes*8;M[Y>>>5]|=128<<24-Y%32,M[(Y+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.sigBytes=(M.length+1)*4,this._process();for(var B=this._hash,P=B.words,U=0;U<5;U++){var H=P[U];P[U]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return B},clone:function(){var z=p.clone.call(this);return z._hash=this._hash.clone(),z}});function E(z,M,I){return z^M^I}function A(z,M,I){return z&M|~z&I}function T(z,M,I){return(z|~M)^I}function D(z,M,I){return z&I|M&~I}function R(z,M,I){return z^(M|~I)}function N(z,M){return z<<M|z>>>32-M}l.RIPEMD160=p._createHelper(k),l.HmacRIPEMD160=p._createHmacHelper(k)}(),t.RIPEMD160})}(Bw)),Bw.exports}var Lw={exports:{}},F3;function zw(){return F3||(F3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){(function(){var i=t,l=i.lib,f=l.Base,c=i.enc,p=c.Utf8,g=i.algo;g.HMAC=f.extend({init:function(d,m){d=this._hasher=new d.init,typeof m=="string"&&(m=p.parse(m));var C=d.blockSize,b=C*4;m.sigBytes>b&&(m=d.finalize(m)),m.clamp();for(var x=this._oKey=m.clone(),_=this._iKey=m.clone(),k=x.words,E=_.words,A=0;A<C;A++)k[A]^=1549556828,E[A]^=909522486;x.sigBytes=_.sigBytes=b,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var m=this._hasher,C=m.finalize(d);m.reset();var b=m.finalize(this._oKey.clone().concat(C));return b}})})()})}(Lw)),Lw.exports}var Uw={exports:{}},N3;function GV(){return N3||(N3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),Rw(),zw())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,p=i.algo,g=p.SHA256,d=p.HMAC,m=p.PBKDF2=f.extend({cfg:f.extend({keySize:128/32,hasher:g,iterations:25e4}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,b){for(var x=this.cfg,_=d.create(x.hasher,C),k=c.create(),E=c.create([1]),A=k.words,T=E.words,D=x.keySize,R=x.iterations;A.length<D;){var N=_.update(b).finalize(E);_.reset();for(var z=N.words,M=z.length,I=N,Y=1;Y<R;Y++){I=_.finalize(I),_.reset();for(var B=I.words,P=0;P<M;P++)z[P]^=B[P]}k.concat(N),T[0]++}return k.sigBytes=D*4,k}});i.PBKDF2=function(C,b,x){return m.create(x).compute(C,b)}}(),t.PBKDF2})}(Uw)),Uw.exports}var jw={exports:{}},M3;function mu(){return M3||(M3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),S3(),zw())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,p=i.algo,g=p.MD5,d=p.EvpKDF=f.extend({cfg:f.extend({keySize:128/32,hasher:g,iterations:1}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,C){for(var b,x=this.cfg,_=x.hasher.create(),k=c.create(),E=k.words,A=x.keySize,T=x.iterations;E.length<A;){b&&_.update(b),b=_.update(m).finalize(C),_.reset();for(var D=1;D<T;D++)b=_.finalize(b),_.reset();k.concat(b)}return k.sigBytes=A*4,k}});i.EvpKDF=function(m,C,b){return d.create(b).compute(m,C)}}(),t.EvpKDF})}(jw)),jw.exports}var Iw={exports:{}},P3;function ta(){return P3||(P3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),mu())})(Pt,function(t){t.lib.Cipher||function(i){var l=t,f=l.lib,c=f.Base,p=f.WordArray,g=f.BufferedBlockAlgorithm,d=l.enc;d.Utf8;var m=d.Base64,C=l.algo,b=C.EvpKDF,x=f.Cipher=g.extend({cfg:c.extend(),createEncryptor:function(B,P){return this.create(this._ENC_XFORM_MODE,B,P)},createDecryptor:function(B,P){return this.create(this._DEC_XFORM_MODE,B,P)},init:function(B,P,U){this.cfg=this.cfg.extend(U),this._xformMode=B,this._key=P,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(P){return typeof P=="string"?Y:z}return function(P){return{encrypt:function(U,H,V){return B(H).encrypt(P,U,H,V)},decrypt:function(U,H,V){return B(H).decrypt(P,U,H,V)}}}}()});f.StreamCipher=x.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var _=l.mode={},k=f.BlockCipherMode=c.extend({createEncryptor:function(B,P){return this.Encryptor.create(B,P)},createDecryptor:function(B,P){return this.Decryptor.create(B,P)},init:function(B,P){this._cipher=B,this._iv=P}}),E=_.CBC=function(){var B=k.extend();B.Encryptor=B.extend({processBlock:function(U,H){var V=this._cipher,K=V.blockSize;P.call(this,U,H,K),V.encryptBlock(U,H),this._prevBlock=U.slice(H,H+K)}}),B.Decryptor=B.extend({processBlock:function(U,H){var V=this._cipher,K=V.blockSize,ee=U.slice(H,H+K);V.decryptBlock(U,H),P.call(this,U,H,K),this._prevBlock=ee}});function P(U,H,V){var K,ee=this._iv;ee?(K=ee,this._iv=i):K=this._prevBlock;for(var J=0;J<V;J++)U[H+J]^=K[J]}return B}(),A=l.pad={},T=A.Pkcs7={pad:function(B,P){for(var U=P*4,H=U-B.sigBytes%U,V=H<<24|H<<16|H<<8|H,K=[],ee=0;ee<H;ee+=4)K.push(V);var J=p.create(K,H);B.concat(J)},unpad:function(B){var P=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=P}};f.BlockCipher=x.extend({cfg:x.cfg.extend({mode:E,padding:T}),reset:function(){var B;x.reset.call(this);var P=this.cfg,U=P.iv,H=P.mode;this._xformMode==this._ENC_XFORM_MODE?B=H.createEncryptor:(B=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,U&&U.words):(this._mode=B.call(H,this,U&&U.words),this._mode.__creator=B)},_doProcessBlock:function(B,P){this._mode.processBlock(B,P)},_doFinalize:function(){var B,P=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(P.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),P.unpad(B)),B},blockSize:128/32});var D=f.CipherParams=c.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),R=l.format={},N=R.OpenSSL={stringify:function(B){var P,U=B.ciphertext,H=B.salt;return H?P=p.create([1398893684,1701076831]).concat(H).concat(U):P=U,P.toString(m)},parse:function(B){var P,U=m.parse(B),H=U.words;return H[0]==1398893684&&H[1]==1701076831&&(P=p.create(H.slice(2,4)),H.splice(0,4),U.sigBytes-=16),D.create({ciphertext:U,salt:P})}},z=f.SerializableCipher=c.extend({cfg:c.extend({format:N}),encrypt:function(B,P,U,H){H=this.cfg.extend(H);var V=B.createEncryptor(U,H),K=V.finalize(P),ee=V.cfg;return D.create({ciphertext:K,key:U,iv:ee.iv,algorithm:B,mode:ee.mode,padding:ee.padding,blockSize:B.blockSize,formatter:H.format})},decrypt:function(B,P,U,H){H=this.cfg.extend(H),P=this._parse(P,H.format);var V=B.createDecryptor(U,H).finalize(P.ciphertext);return V},_parse:function(B,P){return typeof B=="string"?P.parse(B,this):B}}),M=l.kdf={},I=M.OpenSSL={execute:function(B,P,U,H,V){if(H||(H=p.random(64/8)),V)var K=b.create({keySize:P+U,hasher:V}).compute(B,H);else var K=b.create({keySize:P+U}).compute(B,H);var ee=p.create(K.words.slice(P),U*4);return K.sigBytes=P*4,D.create({key:K,iv:ee,salt:H})}},Y=f.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:I}),encrypt:function(B,P,U,H){H=this.cfg.extend(H);var V=H.kdf.execute(U,B.keySize,B.ivSize,H.salt,H.hasher);H.iv=V.iv;var K=z.encrypt.call(this,B,P,V.key,H);return K.mixIn(V),K},decrypt:function(B,P,U,H){H=this.cfg.extend(H),P=this._parse(P,H.format);var V=H.kdf.execute(U,B.keySize,B.ivSize,P.salt,H.hasher);H.iv=V.iv;var K=z.decrypt.call(this,B,P,V.key,H);return K}})}()})}(Iw)),Iw.exports}var Hw={exports:{}},B3;function KV(){return B3||(B3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.CFB=function(){var i=t.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize;l.call(this,f,c,g,p),this._prevBlock=f.slice(c,c+g)}}),i.Decryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize,d=f.slice(c,c+g);l.call(this,f,c,g,p),this._prevBlock=d}});function l(f,c,p,g){var d,m=this._iv;m?(d=m.slice(0),this._iv=void 0):d=this._prevBlock,g.encryptBlock(d,0);for(var C=0;C<p;C++)f[c+C]^=d[C]}return i}(),t.mode.CFB})}(Hw)),Hw.exports}var Vw={exports:{}},L3;function WV(){return L3||(L3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.CTR=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize,d=this._iv,m=this._counter;d&&(m=this._counter=d.slice(0),this._iv=void 0);var C=m.slice(0);p.encryptBlock(C,0),m[g-1]=m[g-1]+1|0;for(var b=0;b<g;b++)f[c+b]^=C[b]}});return i.Decryptor=l,i}(),t.mode.CTR})}(Vw)),Vw.exports}var $w={exports:{}},z3;function QV(){return z3||(z3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.CTRGladman=function(){var i=t.lib.BlockCipherMode.extend();function l(p){if((p>>24&255)===255){var g=p>>16&255,d=p>>8&255,m=p&255;g===255?(g=0,d===255?(d=0,m===255?m=0:++m):++d):++g,p=0,p+=g<<16,p+=d<<8,p+=m}else p+=1<<24;return p}function f(p){return(p[0]=l(p[0]))===0&&(p[1]=l(p[1])),p}var c=i.Encryptor=i.extend({processBlock:function(p,g){var d=this._cipher,m=d.blockSize,C=this._iv,b=this._counter;C&&(b=this._counter=C.slice(0),this._iv=void 0),f(b);var x=b.slice(0);d.encryptBlock(x,0);for(var _=0;_<m;_++)p[g+_]^=x[_]}});return i.Decryptor=c,i}(),t.mode.CTRGladman})}($w)),$w.exports}var Yw={exports:{}},U3;function ZV(){return U3||(U3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.OFB=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize,d=this._iv,m=this._keystream;d&&(m=this._keystream=d.slice(0),this._iv=void 0),p.encryptBlock(m,0);for(var C=0;C<g;C++)f[c+C]^=m[C]}});return i.Decryptor=l,i}(),t.mode.OFB})}(Yw)),Yw.exports}var qw={exports:{}},j3;function XV(){return j3||(j3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.ECB=function(){var i=t.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(l,f){this._cipher.encryptBlock(l,f)}}),i.Decryptor=i.extend({processBlock:function(l,f){this._cipher.decryptBlock(l,f)}}),i}(),t.mode.ECB})}(qw)),qw.exports}var Gw={exports:{}},I3;function JV(){return I3||(I3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.AnsiX923={pad:function(i,l){var f=i.sigBytes,c=l*4,p=c-f%c,g=f+p-1;i.clamp(),i.words[g>>>2]|=p<<24-g%4*8,i.sigBytes+=p},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Ansix923})}(Gw)),Gw.exports}var Kw={exports:{}},H3;function e$(){return H3||(H3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.Iso10126={pad:function(i,l){var f=l*4,c=f-i.sigBytes%f;i.concat(t.lib.WordArray.random(c-1)).concat(t.lib.WordArray.create([c<<24],1))},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Iso10126})}(Kw)),Kw.exports}var Ww={exports:{}},V3;function t$(){return V3||(V3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.Iso97971={pad:function(i,l){i.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(i,l)},unpad:function(i){t.pad.ZeroPadding.unpad(i),i.sigBytes--}},t.pad.Iso97971})}(Ww)),Ww.exports}var Qw={exports:{}},$3;function n$(){return $3||($3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.ZeroPadding={pad:function(i,l){var f=l*4;i.clamp(),i.sigBytes+=f-(i.sigBytes%f||f)},unpad:function(i){for(var l=i.words,f=i.sigBytes-1,f=i.sigBytes-1;f>=0;f--)if(l[f>>>2]>>>24-f%4*8&255){i.sigBytes=f+1;break}}},t.pad.ZeroPadding})}(Qw)),Qw.exports}var Zw={exports:{}},Y3;function r$(){return Y3||(Y3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Zw)),Zw.exports}var Xw={exports:{}},q3;function a$(){return q3||(q3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.CipherParams,p=l.enc,g=p.Hex,d=l.format;d.Hex={stringify:function(m){return m.ciphertext.toString(g)},parse:function(m){var C=g.parse(m);return c.create({ciphertext:C})}}}(),t.format.Hex})}(Xw)),Xw.exports}var Jw={exports:{}},G3;function i$(){return G3||(G3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo,p=[],g=[],d=[],m=[],C=[],b=[],x=[],_=[],k=[],E=[];(function(){for(var D=[],R=0;R<256;R++)R<128?D[R]=R<<1:D[R]=R<<1^283;for(var N=0,z=0,R=0;R<256;R++){var M=z^z<<1^z<<2^z<<3^z<<4;M=M>>>8^M&255^99,p[N]=M,g[M]=N;var I=D[N],Y=D[I],B=D[Y],P=D[M]*257^M*16843008;d[N]=P<<24|P>>>8,m[N]=P<<16|P>>>16,C[N]=P<<8|P>>>24,b[N]=P;var P=B*16843009^Y*65537^I*257^N*16843008;x[M]=P<<24|P>>>8,_[M]=P<<16|P>>>16,k[M]=P<<8|P>>>24,E[M]=P,N?(N=I^D[D[D[B^I]]],z^=D[D[z]]):N=z=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],T=c.AES=f.extend({_doReset:function(){var D;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var R=this._keyPriorReset=this._key,N=R.words,z=R.sigBytes/4,M=this._nRounds=z+6,I=(M+1)*4,Y=this._keySchedule=[],B=0;B<I;B++)B<z?Y[B]=N[B]:(D=Y[B-1],B%z?z>6&&B%z==4&&(D=p[D>>>24]<<24|p[D>>>16&255]<<16|p[D>>>8&255]<<8|p[D&255]):(D=D<<8|D>>>24,D=p[D>>>24]<<24|p[D>>>16&255]<<16|p[D>>>8&255]<<8|p[D&255],D^=A[B/z|0]<<24),Y[B]=Y[B-z]^D);for(var P=this._invKeySchedule=[],U=0;U<I;U++){var B=I-U;if(U%4)var D=Y[B];else var D=Y[B-4];U<4||B<=4?P[U]=D:P[U]=x[p[D>>>24]]^_[p[D>>>16&255]]^k[p[D>>>8&255]]^E[p[D&255]]}}},encryptBlock:function(D,R){this._doCryptBlock(D,R,this._keySchedule,d,m,C,b,p)},decryptBlock:function(D,R){var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N,this._doCryptBlock(D,R,this._invKeySchedule,x,_,k,E,g);var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N},_doCryptBlock:function(D,R,N,z,M,I,Y,B){for(var P=this._nRounds,U=D[R]^N[0],H=D[R+1]^N[1],V=D[R+2]^N[2],K=D[R+3]^N[3],ee=4,J=1;J<P;J++){var q=z[U>>>24]^M[H>>>16&255]^I[V>>>8&255]^Y[K&255]^N[ee++],te=z[H>>>24]^M[V>>>16&255]^I[K>>>8&255]^Y[U&255]^N[ee++],Z=z[V>>>24]^M[K>>>16&255]^I[U>>>8&255]^Y[H&255]^N[ee++],$=z[K>>>24]^M[U>>>16&255]^I[H>>>8&255]^Y[V&255]^N[ee++];U=q,H=te,V=Z,K=$}var q=(B[U>>>24]<<24|B[H>>>16&255]<<16|B[V>>>8&255]<<8|B[K&255])^N[ee++],te=(B[H>>>24]<<24|B[V>>>16&255]<<16|B[K>>>8&255]<<8|B[U&255])^N[ee++],Z=(B[V>>>24]<<24|B[K>>>16&255]<<16|B[U>>>8&255]<<8|B[H&255])^N[ee++],$=(B[K>>>24]<<24|B[U>>>16&255]<<16|B[H>>>8&255]<<8|B[V&255])^N[ee++];D[R]=q,D[R+1]=te,D[R+2]=Z,D[R+3]=$},keySize:256/32});i.AES=f._createHelper(T)}(),t.AES})}(Jw)),Jw.exports}var e_={exports:{}},K3;function o$(){return K3||(K3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.BlockCipher,p=i.algo,g=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=p.DES=c.extend({_doReset:function(){for(var A=this._key,T=A.words,D=[],R=0;R<56;R++){var N=g[R]-1;D[R]=T[N>>>5]>>>31-N%32&1}for(var z=this._subKeys=[],M=0;M<16;M++){for(var I=z[M]=[],Y=m[M],R=0;R<24;R++)I[R/6|0]|=D[(d[R]-1+Y)%28]<<31-R%6,I[4+(R/6|0)]|=D[28+(d[R+24]-1+Y)%28]<<31-R%6;I[0]=I[0]<<1|I[0]>>>31;for(var R=1;R<7;R++)I[R]=I[R]>>>(R-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var B=this._invSubKeys=[],R=0;R<16;R++)B[R]=z[15-R]},encryptBlock:function(A,T){this._doCryptBlock(A,T,this._subKeys)},decryptBlock:function(A,T){this._doCryptBlock(A,T,this._invSubKeys)},_doCryptBlock:function(A,T,D){this._lBlock=A[T],this._rBlock=A[T+1],_.call(this,4,252645135),_.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),_.call(this,1,1431655765);for(var R=0;R<16;R++){for(var N=D[R],z=this._lBlock,M=this._rBlock,I=0,Y=0;Y<8;Y++)I|=C[Y][((M^N[Y])&b[Y])>>>0];this._lBlock=M,this._rBlock=z^I}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,_.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),A[T]=this._lBlock,A[T+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function _(A,T){var D=(this._lBlock>>>A^this._rBlock)&T;this._rBlock^=D,this._lBlock^=D<<A}function k(A,T){var D=(this._rBlock>>>A^this._lBlock)&T;this._lBlock^=D,this._rBlock^=D<<A}i.DES=c._createHelper(x);var E=p.TripleDES=c.extend({_doReset:function(){var A=this._key,T=A.words;if(T.length!==2&&T.length!==4&&T.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var D=T.slice(0,2),R=T.length<4?T.slice(0,2):T.slice(2,4),N=T.length<6?T.slice(0,2):T.slice(4,6);this._des1=x.createEncryptor(f.create(D)),this._des2=x.createEncryptor(f.create(R)),this._des3=x.createEncryptor(f.create(N))},encryptBlock:function(A,T){this._des1.encryptBlock(A,T),this._des2.decryptBlock(A,T),this._des3.encryptBlock(A,T)},decryptBlock:function(A,T){this._des3.decryptBlock(A,T),this._des2.encryptBlock(A,T),this._des1.decryptBlock(A,T)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=c._createHelper(E)}(),t.TripleDES})}(e_)),e_.exports}var t_={exports:{}},W3;function l$(){return W3||(W3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,p=c.RC4=f.extend({_doReset:function(){for(var m=this._key,C=m.words,b=m.sigBytes,x=this._S=[],_=0;_<256;_++)x[_]=_;for(var _=0,k=0;_<256;_++){var E=_%b,A=C[E>>>2]>>>24-E%4*8&255;k=(k+x[_]+A)%256;var T=x[_];x[_]=x[k],x[k]=T}this._i=this._j=0},_doProcessBlock:function(m,C){m[C]^=g.call(this)},keySize:256/32,ivSize:0});function g(){for(var m=this._S,C=this._i,b=this._j,x=0,_=0;_<4;_++){C=(C+1)%256,b=(b+m[C])%256;var k=m[C];m[C]=m[b],m[b]=k,x|=m[(m[C]+m[b])%256]<<24-_*8}return this._i=C,this._j=b,x}i.RC4=f._createHelper(p);var d=c.RC4Drop=p.extend({cfg:p.cfg.extend({drop:192}),_doReset:function(){p._doReset.call(this);for(var m=this.cfg.drop;m>0;m--)g.call(this)}});i.RC4Drop=f._createHelper(d)}(),t.RC4})}(t_)),t_.exports}var n_={exports:{}},Q3;function s$(){return Q3||(Q3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,p=[],g=[],d=[],m=c.Rabbit=f.extend({_doReset:function(){for(var b=this._key.words,x=this.cfg.iv,_=0;_<4;_++)b[_]=(b[_]<<8|b[_]>>>24)&16711935|(b[_]<<24|b[_]>>>8)&4278255360;var k=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],E=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var _=0;_<4;_++)C.call(this);for(var _=0;_<8;_++)E[_]^=k[_+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;E[0]^=R,E[1]^=z,E[2]^=N,E[3]^=M,E[4]^=R,E[5]^=z,E[6]^=N,E[7]^=M;for(var _=0;_<4;_++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),p[0]=_[0]^_[5]>>>16^_[3]<<16,p[1]=_[2]^_[7]>>>16^_[5]<<16,p[2]=_[4]^_[1]>>>16^_[7]<<16,p[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)p[k]=(p[k]<<8|p[k]>>>24)&16711935|(p[k]<<24|p[k]>>>8)&4278255360,b[x+k]^=p[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)g[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<g[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<g[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<g[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<g[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<g[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<g[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<g[6]>>>0?1:0)|0,this._b=x[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.Rabbit=f._createHelper(m)}(),t.Rabbit})}(n_)),n_.exports}var r_={exports:{}},Z3;function u$(){return Z3||(Z3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,p=[],g=[],d=[],m=c.RabbitLegacy=f.extend({_doReset:function(){var b=this._key.words,x=this.cfg.iv,_=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],k=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var E=0;E<4;E++)C.call(this);for(var E=0;E<8;E++)k[E]^=_[E+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;k[0]^=R,k[1]^=z,k[2]^=N,k[3]^=M,k[4]^=R,k[5]^=z,k[6]^=N,k[7]^=M;for(var E=0;E<4;E++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),p[0]=_[0]^_[5]>>>16^_[3]<<16,p[1]=_[2]^_[7]>>>16^_[5]<<16,p[2]=_[4]^_[1]>>>16^_[7]<<16,p[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)p[k]=(p[k]<<8|p[k]>>>24)&16711935|(p[k]<<24|p[k]>>>8)&4278255360,b[x+k]^=p[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)g[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<g[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<g[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<g[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<g[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<g[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<g[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<g[6]>>>0?1:0)|0,this._b=x[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.RabbitLegacy=f._createHelper(m)}(),t.RabbitLegacy})}(r_)),r_.exports}var a_={exports:{}},X3;function c$(){return X3||(X3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo;const p=16,g=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var m={pbox:[],sbox:[]};function C(E,A){let T=A>>24&255,D=A>>16&255,R=A>>8&255,N=A&255,z=E.sbox[0][T]+E.sbox[1][D];return z=z^E.sbox[2][R],z=z+E.sbox[3][N],z}function b(E,A,T){let D=A,R=T,N;for(let z=0;z<p;++z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[p],D=D^E.pbox[p+1],{left:D,right:R}}function x(E,A,T){let D=A,R=T,N;for(let z=p+1;z>1;--z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[1],D=D^E.pbox[0],{left:D,right:R}}function _(E,A,T){for(let M=0;M<4;M++){E.sbox[M]=[];for(let I=0;I<256;I++)E.sbox[M][I]=d[M][I]}let D=0;for(let M=0;M<p+2;M++)E.pbox[M]=g[M]^A[D],D++,D>=T&&(D=0);let R=0,N=0,z=0;for(let M=0;M<p+2;M+=2)z=b(E,R,N),R=z.left,N=z.right,E.pbox[M]=R,E.pbox[M+1]=N;for(let M=0;M<4;M++)for(let I=0;I<256;I+=2)z=b(E,R,N),R=z.left,N=z.right,E.sbox[M][I]=R,E.sbox[M][I+1]=N;return!0}var k=c.Blowfish=f.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,T=E.sigBytes/4;_(m,A,T)}},encryptBlock:function(E,A){var T=b(m,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},decryptBlock:function(E,A){var T=x(m,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=f._createHelper(k)}(),t.Blowfish})}(a_)),a_.exports}(function(e,r){(function(t,i,l){e.exports=i(Qt(),by(),jV(),IV(),jc(),HV(),Ic(),S3(),Rw(),VV(),T3(),$V(),YV(),qV(),zw(),GV(),mu(),ta(),KV(),WV(),QV(),ZV(),XV(),JV(),e$(),t$(),n$(),r$(),a$(),i$(),o$(),l$(),s$(),u$(),c$())})(Pt,function(t){return t})})(v3);const fs=v3.exports;class f${constructor(){Xf(this,"salt","SzlDJd#4202")}encrypt(r){if(!r)return;const t=typeof r=="string"?r:JSON.stringify(r);return fs.AES.encrypt(t,this.salt).toString()}decrypt(r){if(r)return fs.AES.decrypt(r,this.salt).toString(fs.enc.Utf8)}}class d${constructor(r){Xf(this,"salt");this.salt=r}encrypt(r){return fs.HmacSHA512(r,this.salt).toString()}}const Gn=class{static rotateLeft(r,t){return r<<t|r>>>32-t}static FFj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|r&i|t&i}static GGj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|~r&i}static P0(r){return r^Gn.rotateLeft(r,9)^Gn.rotateLeft(r,17)}static P1(r){return r^Gn.rotateLeft(r,15)^Gn.rotateLeft(r,23)}static pad(r){const t=r.length*8,i=(448-(t+1)%512+512)%512,l=(t+1+i+64)/8,f=new Uint8Array(l);f.set(r),f[r.length]=128;const c=new Uint8Array(8);return new DataView(c.buffer).setBigUint64(0,BigInt(t),!1),f.set(c,l-8),f}static processBlock(r,t){const i=new Uint32Array(68),l=new Uint32Array(64);for(let x=0;x<16;x++){const _=new DataView(r.buffer,r.byteOffset+x*4,4);i[x]=_.getUint32(0,!1)}for(let x=16;x<68;x++)i[x]=Gn.P1(i[x-16]^i[x-9]^Gn.rotateLeft(i[x-3],15))^Gn.rotateLeft(i[x-13],7)^i[x-6];for(let x=0;x<64;x++)l[x]=i[x]^i[x+4];let f=t[0],c=t[1],p=t[2],g=t[3],d=t[4],m=t[5],C=t[6],b=t[7];for(let x=0;x<64;x++){const _=Gn.rotateLeft(Gn.rotateLeft(f,12)+d+Gn.rotateLeft(Gn.T[x],x),7),k=_^Gn.rotateLeft(f,12),E=Gn.FFj(f,c,p,x)+g+k+l[x],A=Gn.GGj(d,m,C,x)+b+_+i[x];g=p,p=Gn.rotateLeft(c,9),c=f,f=E,b=C,C=Gn.rotateLeft(m,19),m=d,d=Gn.P0(A)}t[0]^=f,t[1]^=c,t[2]^=p,t[3]^=g,t[4]^=d,t[5]^=m,t[6]^=C,t[7]^=b}static hash(r){const t=Gn.pad(r),i=new Uint32Array(Gn.IV);for(let c=0;c<t.length;c+=64){const p=t.slice(c,c+64);Gn.processBlock(p,i)}const l=new Uint8Array(32),f=new DataView(l.buffer);for(let c=0;c<8;c++)f.setUint32(c*4,i[c],!1);return l}static hashHex(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=Gn.hash(t);return Array.from(i).map(l=>l.toString(16).padStart(2,"0")).join("")}};let Hc=Gn;Xf(Hc,"IV",new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214])),Xf(Hc,"T",new Uint32Array(64)),(()=>{for(let r=0;r<16;r++)Gn.T[r]=2043430169;for(let r=16;r<64;r++)Gn.T[r]=2055708042})();class i_{constructor(r){Xf(this,"key");this.key=typeof r=="string"?new TextEncoder().encode(r):r}digest(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=64;let l;if(this.key.length>i)l=Hc.hash(this.key);else{l=new Uint8Array(i),l.set(this.key);for(let C=this.key.length;C<i;C++)l[C]=0}const f=new Uint8Array(i),c=new Uint8Array(i);for(let C=0;C<i;C++)f[C]=l[C]^54,c[C]=l[C]^92;const p=new Uint8Array(f.length+t.length);p.set(f),p.set(t,f.length);const g=Hc.hash(p),d=new Uint8Array(c.length+g.length);return d.set(c),d.set(g,c.length),Hc.hash(d)}digestHex(r){const t=this.digest(r);return Array.from(t).map(i=>i.toString(16).padStart(2,"0")).join("")}static hmac(r,t){return new i_(r).digestHex(t)}}function h$(e){const{imgKey:r="Img"}=e,{data:t,loading:i,error:l,refresh:f}=bb.useRequest(e.request,{debounceWait:300,ready:!0,retryCount:3});return{data:t,renderCaptcha:()=>l?Q(me.Button,{type:"link",title:"验证码加载失败,请重试",icon:Q(K7,{}),onClick:f,children:"点击重试"}):Q("img",{src:il.get(t,[r]),style:{height:"100%",objectFit:"contain",cursor:"pointer"},onClick:f}),loading:i,refresh:f}}function p$(e){const{modal:r,message:t}=me.App.useApp(),[i]=me.Form.useForm(),l=[{dataIndex:"Password",title:"新密码",valueType:"password",valueProps:{placeholder:"请输入新密码"},formItemProps:{rules:[{required:!0,message:"请输入新密码"},p3.passwordNewRule]}},{dataIndex:"NewPassword",title:"确认密码",valueType:"password",valueProps:{placeholder:"请输入确认密码"},formItemProps:{rules:[{required:!0,message:"请输入确认密码"},({getFieldValue:c})=>({validator(p,g){return!g||c("Password")===g?Promise.resolve():Promise.reject(new Error("两次密码输入不一致"))}})]}}];return{handleChangePwd:bb.useLockFn(async(c,p)=>{const g=e==null?void 0:e.modalProps;let d;g!=null&&g.width&&(typeof g.width=="string"||typeof g.width=="number")&&(d=g.width),await r.confirm({title:p||"修改密码",icon:null,wrapClassName:"confirmWrapper",content:Q(y2,{items:l,formProps:{form:i,preserve:!1,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}}}),onOk(){return new Promise((m,C)=>{i.validateFields().then(b=>{c({values:b,resolve:m,reject:C})}).catch(b=>{C(b)})})},...g,width:d})})}}const v$="SzlDJd#4202";function m$(e){const[r,t]=W.useState(null);W.useEffect(()=>{i()},[]);const i=()=>{const l=fs.AES.decrypt(e,v$);try{const f=JSON.parse(l.toString(fs.enc.Utf8));t(f)}catch{}};return r}function g$(e){const{secertKey:r,storageKey:t}=e;return{onParse:f=>{const c=localStorage.getItem(t);if(!c){f(null);return}const p=fs.AES.decrypt(c,r);try{const g=JSON.parse(p.toString(fs.enc.Utf8));f(g)}catch{f(null)}},onSave:f=>{const c=fs.AES.encrypt(JSON.stringify({...f,timestamp:Date.now()}),r);B8(t,c.toString())}}}function y$(e){const{dataSource:r,rowKey:t,defaultRows:i=[]}=e,l=W.useRef(i),[f,c]=W.useState([]),[p,g]=W.useState([]);return W.useEffect(()=>{if(r&&r.length>0){const d=[...r,...l.current];l.current=d.filter((m,C,b)=>b.findIndex(x=>m[t]===x[t])===C)}},[r,t]),W.useEffect(()=>{if(l.current.length>0){let d=[];p.forEach(m=>{const C=l.current.find(b=>b[t]===m);C&&!d.map(b=>b[t]).includes(m)&&d.push(C)}),c(d)}},[l.current,p,t]),{selectedRows:f,selectedKeys:p,setSelectedKeys:g}}function x$({labelSpan:e=3,valueSpan:r=9,imgWidth:t=93,imgHeight:i=93,layoutType:l="row"}){const{message:f}=me.App.useApp(),c=(x,_)=>{try{const k=JSON.parse((x==null?void 0:x.attrvalue)||"{}")||"";return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Q("span",{style:{wordWrap:"break-word"},children:k==null?void 0:k.typename})]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:x==null?void 0:x.attrvalue})]})]},x==null?void 0:x.attrid)}catch{return f.error("房型数据格式错误,转json失败"),null}},p=(x,_)=>{if(typeof(x==null?void 0:x.attrvalue)!="string")return;const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("div",{style:{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:4},children:Q(me.Image,{style:{objectFit:"cover",padding:5},width:t,height:i,src:A==null?void 0:A.FilePath,alt:(x==null?void 0:x.attrname)||"-"})},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},g=(x,_)=>{const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("a",{onClick:()=>window.open(A==null?void 0:A.FilePath),children:(A==null?void 0:A.FileName)||"-"},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},d=(x,_,k,E)=>Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Be("span",{style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word",minWidth:0,flex:1},children:[k||""," ",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Be(me.Col,{span:r,style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word"},children:[k||"",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})]},x==null?void 0:x.attrid),m=({detailList:x=[],attrList:_=[],universalHeader:k=[],operationColumn:E,langConfig:A=[]})=>{var R;let T=[];k!=null&&k.length?T=k==null?void 0:k.map(N=>({title:N==null?void 0:N["header-name"],dataIndex:N==null?void 0:N["header-attribute-id"],key:N==null?void 0:N["header-attribute-id"],width:N==null?void 0:N["header-width"],render:(z,M)=>Ji(A||[],z)})):T=(R=_==null?void 0:_[0])==null?void 0:R.map(N=>{var z;return{title:N==null?void 0:N.attrname,dataIndex:N==null?void 0:N.attrid,key:N==null?void 0:N.attrid,width:((z=N==null?void 0:N.json)==null?void 0:z["input-width"])||200,render:(M,I)=>Ji(A||[],M)}}),E&&(T!=null&&T.length)&&T.push(E);let D=x;return _!=null&&_.length&&(D=_==null?void 0:_.map((N,z)=>({jxqyglbh:z,...C(N)}))),Q(me.Flex,{align:"center",style:{width:"100%"},children:Q(me.Table,{style:{width:"100%"},columns:T,scroll:{x:"max-content"},size:"small",rowKey:"jxqyglbh",onRow:tD,dataSource:D,pagination:!1})})},C=x=>x==null?void 0:x.reduce((_,k)=>(_[k==null?void 0:k.attrid]=k==null?void 0:k.attrvalue,_),{});return{renderDetail:bb.useMemoizedFn(({attrList:x=[],detailList:_=[],span:k=24,type:E="form",universalHeader:A=[],beforeExtraValue:T="",operationColumn:D,langConfig:R=[]})=>E==="table"?Q(W.Fragment,{children:m({detailList:_,attrList:x,universalHeader:A,operationColumn:D})}):Q(me.Row,{gutter:[10,8],children:x==null?void 0:x.map(N=>{if((N==null?void 0:N.attrtype)!==0)return Q(W.Fragment,{},N==null?void 0:N.attrid);const z=N.info_base64===1?uu(Zh(N.info)):uu(N.info);return(z==null?void 0:z.input)==="image"?p(N,k):["file","audio","video"].includes(z==null?void 0:z.input)?g(N,k):(z==null?void 0:z.input)==="radio-card"?c(N,k):d(N,k,T,R)})}))}}Dt.AES=f$,Dt.AuthButton=j6,Dt.BackHeader=c9,Dt.CoralButton=XB,Dt.CreateForm=y2,Dt.CustomPagination=tL,Dt.DynamicForm=RL,Dt.DynamicFormMobile=MV,Dt.EditTable=ZB,Dt.FormRules=PV,Dt.HmacSHA512=d$,Dt.HmacSM3=i_,Dt.LoopSlide=JB,Dt.SearchTable=GB,Dt.UploadFile=o6,Dt.WorkFlowNode=I6,Dt.compressionImage=a6,Dt.download=gL,Dt.fileType=m9,Dt.method=lL,Dt.showWorkFlow=eL,Dt.szxkFunc=dL,Dt.useCaptcha=h$,Dt.useChangePwd=p$,Dt.useConfig=m$,Dt.useDetailRender=x$,Dt.useRemember=g$,Dt.useRowSelection=y$,Dt.useUniversalTable=$2,Dt.utils=E9,Dt.verfyCode=LV,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})});
208
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),f=new RegExp("(?:^"+t+"$)|(?:^"+l+"$)"),c=new RegExp("^"+t+"$"),p=new RegExp("^"+l+"$"),g=function(R){return R&&R.exact?f:new RegExp("(?:"+r(R)+t+r(R)+")|(?:"+r(R)+l+r(R)+")","g")};g.v4=function(D){return D&&D.exact?c:new RegExp(""+r(D)+t+r(D),"g")},g.v6=function(D){return D&&D.exact?p:new RegExp(""+r(D)+l+r(D),"g")};var d="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",C=g.v4().source,b=g.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",k="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",A='(?:[/?#][^\\s"]*)?',T="(?:"+d+"|www\\.)"+m+"(?:localhost|"+C+"|"+b+"|"+x+_+k+")"+E+A;return yy=new RegExp("(?:^"+T+"$)","i"),yy},JT={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},zp={integer:function(r){return zp.number(r)&&parseInt(r,10)===r},float:function(r){return zp.number(r)&&!zp.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!zp.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(JT.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(MH())},hex:function(r){return typeof r=="string"&&!!r.match(JT.hex)}},PH=function(r,t,i,l,f){if(r.required&&t===void 0){XT(r,t,i,l,f);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],p=r.type;c.indexOf(p)>-1?zp[p](t)||l.push(Li(f.messages.types[p],r.fullField,r.type)):p&&typeof t!==r.type&&l.push(Li(f.messages.types[p],r.fullField,r.type))},BH=function(r,t,i,l,f){var c=typeof r.len=="number",p=typeof r.min=="number",g=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=t,C=null,b=typeof t=="number",x=typeof t=="string",_=Array.isArray(t);if(b?C="number":x?C="string":_&&(C="array"),!C)return!1;_&&(m=t.length),x&&(m=t.replace(d,"_").length),c?m!==r.len&&l.push(Li(f.messages[C].len,r.fullField,r.len)):p&&!g&&m<r.min?l.push(Li(f.messages[C].min,r.fullField,r.min)):g&&!p&&m>r.max?l.push(Li(f.messages[C].max,r.fullField,r.max)):p&&g&&(m<r.min||m>r.max)&&l.push(Li(f.messages[C].range,r.fullField,r.min,r.max))},Sd="enum",LH=function(r,t,i,l,f){r[Sd]=Array.isArray(r[Sd])?r[Sd]:[],r[Sd].indexOf(t)===-1&&l.push(Li(f.messages[Sd],r.fullField,r[Sd].join(", ")))},zH=function(r,t,i,l,f){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var c=new RegExp(r.pattern);c.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},qt={required:XT,whitespace:NH,type:PH,range:BH,enum:LH,pattern:zH},UH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t,"string")&&!r.required)return i();qt.required(r,t,l,c,f,"string"),Br(t,"string")||(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f),qt.pattern(r,t,l,c,f),r.whitespace===!0&&qt.whitespace(r,t,l,c,f))}i(c)},jH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt.type(r,t,l,c,f)}i(c)},IH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(t===""&&(t=void 0),Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},HH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt.type(r,t,l,c,f)}i(c)},VH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),Br(t)||qt.type(r,t,l,c,f)}i(c)},$H=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},YH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},qH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(t==null&&!r.required)return i();qt.required(r,t,l,c,f,"array"),t!=null&&(qt.type(r,t,l,c,f),qt.range(r,t,l,c,f))}i(c)},GH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt.type(r,t,l,c,f)}i(c)},KH="enum",WH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f),t!==void 0&&qt[KH](r,t,l,c,f)}i(c)},QH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t,"string")&&!r.required)return i();qt.required(r,t,l,c,f),Br(t,"string")||qt.pattern(r,t,l,c,f)}i(c)},ZH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t,"date")&&!r.required)return i();if(qt.required(r,t,l,c,f),!Br(t,"date")){var g;t instanceof Date?g=t:g=new Date(t),qt.type(r,g,l,c,f),g&&qt.range(r,g.getTime(),l,c,f)}}i(c)},XH=function(r,t,i,l,f){var c=[],p=Array.isArray(t)?"array":typeof t;qt.required(r,t,l,c,f,p),i(c)},sw=function(r,t,i,l,f){var c=r.type,p=[],g=r.required||!r.required&&l.hasOwnProperty(r.field);if(g){if(Br(t,c)&&!r.required)return i();qt.required(r,t,l,p,f,c),Br(t,c)||qt.type(r,t,l,p,f)}i(p)},JH=function(r,t,i,l,f){var c=[],p=r.required||!r.required&&l.hasOwnProperty(r.field);if(p){if(Br(t)&&!r.required)return i();qt.required(r,t,l,c,f)}i(c)},Up={string:UH,method:jH,number:IH,boolean:HH,regexp:VH,integer:$H,float:YH,array:qH,object:GH,enum:WH,pattern:QH,date:ZH,url:sw,hex:sw,email:sw,required:XH,any:JH};function uw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var cw=uw(),jp=function(){function e(t){this.rules=null,this._messages=cw,this.define(t)}var r=e.prototype;return r.define=function(i){var l=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(f){var c=i[f];l.rules[f]=Array.isArray(c)?c:[c]})},r.messages=function(i){return i&&(this._messages=ZT(uw(),i)),this._messages},r.validate=function(i,l,f){var c=this;l===void 0&&(l={}),f===void 0&&(f=function(){});var p=i,g=l,d=f;if(typeof g=="function"&&(d=g,g={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,p),Promise.resolve(p);function m(k){var E=[],A={};function T(R){if(Array.isArray(R)){var N;E=(N=E).concat.apply(N,R)}else E.push(R)}for(var D=0;D<k.length;D++)T(k[D]);E.length?(A=lw(E),d(E,A)):d(null,p)}if(g.messages){var C=this.messages();C===cw&&(C=uw()),ZT(C,g.messages),g.messages=C}else g.messages=this.messages();var b={},x=g.keys||Object.keys(this.rules);x.forEach(function(k){var E=c.rules[k],A=p[k];E.forEach(function(T){var D=T;typeof D.transform=="function"&&(p===i&&(p=Uc({},p)),A=p[k]=D.transform(A)),typeof D=="function"?D={validator:D}:D=Uc({},D),D.validator=c.getValidationMethod(D),D.validator&&(D.field=k,D.fullField=D.fullField||k,D.type=c.getType(D),b[k]=b[k]||[],b[k].push({rule:D,value:A,source:p,field:k}))})});var _={};return OH(b,g,function(k,E){var A=k.rule,T=(A.type==="object"||A.type==="array")&&(typeof A.fields=="object"||typeof A.defaultField=="object");T=T&&(A.required||!A.required&&k.value),A.field=k.field;function D(z,M){return Uc({},M,{fullField:A.fullField+"."+z,fullFields:A.fullFields?[].concat(A.fullFields,[z]):[z]})}function R(z){z===void 0&&(z=[]);var M=Array.isArray(z)?z:[z];!g.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&A.message!==void 0&&(M=[].concat(A.message));var I=M.map(QT(A,p));if(g.first&&I.length)return _[A.field]=1,E(I);if(!T)E(I);else{if(A.required&&!k.value)return A.message!==void 0?I=[].concat(A.message).map(QT(A,p)):g.error&&(I=[g.error(A,Li(g.messages.required,A.field))]),E(I);var Y={};A.defaultField&&Object.keys(k.value).map(function(U){Y[U]=A.defaultField}),Y=Uc({},Y,k.rule.fields);var B={};Object.keys(Y).forEach(function(U){var H=Y[U],V=Array.isArray(H)?H:[H];B[U]=V.map(D.bind(null,U))});var P=new e(B);P.messages(g.messages),k.rule.options&&(k.rule.options.messages=g.messages,k.rule.options.error=g.error),P.validate(k.value,k.rule.options||g,function(U){var H=[];I&&I.length&&H.push.apply(H,I),U&&U.length&&H.push.apply(H,U),E(H.length?H:null)})}}var N;if(A.asyncValidator)N=A.asyncValidator(A,k.value,R,k.source,g);else if(A.validator){try{N=A.validator(A,k.value,R,k.source,g)}catch(z){console.error==null,g.suppressValidatorError||setTimeout(function(){throw z},0),R(z.message)}N===!0?R():N===!1?R(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||(A.fullField||A.field)+" fails"):N instanceof Array?R(N):N instanceof Error&&R(N.message)}N&&N.then&&N.then(function(){return R()},function(z){return R(z)})},function(k){m(k)},p)},r.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!Up.hasOwnProperty(i.type))throw new Error(Li("Unknown rule type %s",i.type));return i.type||"string"},r.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var l=Object.keys(i),f=l.indexOf("message");return f!==-1&&l.splice(f,1),l.length===1&&l[0]==="required"?Up.required:Up[this.getType(i)]||void 0},e}();jp.register=function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Up[r]=t},jp.warning=GT,jp.messages=cw,jp.validators=Up;var zi="'${name}' is not a valid ${type}",e3={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zi,method:zi,array:zi,object:zi,number:zi,date:zi,boolean:zi,integer:zi,float:zi,regexp:zi,email:zi,url:zi,hex:zi},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function eV(e){return I4(e)||VT(e)||wb(e)||H4()}function gl(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function t3(e,r,t,i){if(!r.length)return t;var l=eV(r),f=l[0],c=l.slice(1),p;return!e&&typeof f=="number"?p=[]:Array.isArray(e)?p=an(e):p=Ft({},e),i&&t===void 0&&c.length===1?delete p[f][c[0]]:p[f]=t3(p[f],c,t,i),p}function Eo(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!gl(e,r.slice(0,-1))?e:t3(e,r,t,i)}function tV(e){return Mr(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function n3(e){return Array.isArray(e)?[]:{}}var nV=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ip(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=n3(r[0]);return r.forEach(function(l){function f(c,p){var g=new Set(p),d=gl(l,c),m=Array.isArray(d);if(m||tV(d)){if(!g.has(d)){g.add(d);var C=gl(i,c);m?i=Eo(i,c,[]):(!C||Mr(C)!=="object")&&(i=Eo(i,c,n3(d))),nV(d).forEach(function(b){f([].concat(an(c),[b]),g)})}}else i=Eo(i,c,d)}f([])}),i}var r3=jp;function rV(e,r){return e.replace(/\$\{\w+\}/g,function(t){var i=t.slice(2,-1);return r[i]})}var a3="CODE_LOGIC_ERROR";function fw(e,r,t,i,l){return dw.apply(this,arguments)}function dw(){return dw=Bp(ro().mark(function e(r,t,i,l,f){var c,p,g,d,m,C,b,x,_;return ro().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=Ft({},i),delete c.ruleIndex,r3.warning=function(){},c.validator&&(p=c.validator,c.validator=function(){try{return p.apply(void 0,arguments)}catch{return Promise.reject(a3)}}),g=null,c&&c.type==="array"&&c.defaultField&&(g=c.defaultField,delete c.defaultField),d=new r3(Le({},r,[c])),m=Ip(e3,l.validateMessages),d.messages(m),C=[],E.prev=10,E.next=13,Promise.resolve(d.validate(Le({},r,t),Ft({},l)));case 13:E.next=18;break;case 15:E.prev=15,E.t0=E.catch(10),E.t0.errors&&(C=E.t0.errors.map(function(A,T){var D=A.message,R=D===a3?m.default:D;return Me.isValidElement(R)?Me.cloneElement(R,{key:"error_".concat(T)}):R}));case 18:if(!(!C.length&&g)){E.next=23;break}return E.next=21,Promise.all(t.map(function(A,T){return fw("".concat(r,".").concat(T),A,g,l,f)}));case 21:return b=E.sent,E.abrupt("return",b.reduce(function(A,T){return[].concat(an(A),an(T))},[]));case 23:return x=Ft(Ft({},i),{},{name:r,enum:(i.enum||[]).join(", ")},f),_=C.map(function(A){return typeof A=="string"?rV(A,x):A}),E.abrupt("return",_);case 26:case"end":return E.stop()}},e,null,[[10,15]])})),dw.apply(this,arguments)}function aV(e,r,t,i,l,f){var c=e.join("."),p=t.map(function(m,C){var b=m.validator,x=Ft(Ft({},m),{},{ruleIndex:C});return b&&(x.validator=function(_,k,E){var A=!1,T=function(){for(var N=arguments.length,z=new Array(N),M=0;M<N;M++)z[M]=arguments[M];Promise.resolve().then(function(){_r(!A,"Your validator function has already return a promise. `callback` will be ignored."),A||E.apply(void 0,z)})},D=b(_,k,T);A=D&&typeof D.then=="function"&&typeof D.catch=="function",_r(A,"`callback` is deprecated. Please return a promise instead."),A&&D.then(function(){E()}).catch(function(R){E(R||" ")})}),x}).sort(function(m,C){var b=m.warningOnly,x=m.ruleIndex,_=C.warningOnly,k=C.ruleIndex;return!!b==!!_?x-k:b?1:-1}),g;if(l===!0)g=new Promise(function(){var m=Bp(ro().mark(function C(b,x){var _,k,E;return ro().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:_=0;case 1:if(!(_<p.length)){T.next=12;break}return k=p[_],T.next=5,fw(c,r,k,i,f);case 5:if(E=T.sent,!E.length){T.next=9;break}return x([{errors:E,rule:k}]),T.abrupt("return");case 9:_+=1,T.next=1;break;case 12:b([]);case 13:case"end":return T.stop()}},C)}));return function(C,b){return m.apply(this,arguments)}}());else{var d=p.map(function(m){return fw(c,r,m,i,f).then(function(C){return{errors:C,rule:m}})});g=(l?oV(d):iV(d)).then(function(m){return Promise.reject(m)})}return g.catch(function(m){return m}),g}function iV(e){return hw.apply(this,arguments)}function hw(){return hw=Bp(ro().mark(function e(r){return ro().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(l){var f,c=(f=[]).concat.apply(f,an(l));return c}));case 1:case"end":return i.stop()}},e)})),hw.apply(this,arguments)}function oV(e){return pw.apply(this,arguments)}function pw(){return pw=Bp(ro().mark(function e(r){var t;return ro().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return t=0,l.abrupt("return",new Promise(function(f){r.forEach(function(c){c.then(function(p){p.errors.length&&f([p]),t+=1,t===r.length&&f([])})})}));case 2:case"end":return l.stop()}},e)})),pw.apply(this,arguments)}function vr(e){return aw(e)}function i3(e,r){var t={};return r.forEach(function(i){var l=gl(e,i);t=Eo(t,i,l)}),t}function Ed(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return o3(r,i,t)})}function o3(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,l){return e[l]===i})}function lV(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Mr(e)!=="object"||Mr(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),l=new Set([].concat(t,i));return an(l).every(function(f){var c=e[f],p=r[f];return typeof c=="function"&&typeof p=="function"?!0:c===p})}function sV(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Mr(r.target)==="object"&&e in r.target?r.target[e]:r}function l3(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var l=e[r],f=r-t;return f>0?[].concat(an(e.slice(0,t)),[l],an(e.slice(t,r)),an(e.slice(r+1,i))):f<0?[].concat(an(e.slice(0,r)),an(e.slice(r+1,t+1)),[l],an(e.slice(t+1,i))):e}var uV=["name"],ao=[];function s3(e,r,t,i,l,f){return typeof e=="function"?e(r,t,"source"in f?{source:f.source}:{}):i!==l}var vw=function(e){xH(t,e);var r=CH(t);function t(i){var l;if(tw(this,t),l=r.call(this,i),Le(pn(l),"state",{resetCount:0}),Le(pn(l),"cancelRegisterFunc",null),Le(pn(l),"mounted",!1),Le(pn(l),"touched",!1),Le(pn(l),"dirty",!1),Le(pn(l),"validatePromise",void 0),Le(pn(l),"prevValidating",void 0),Le(pn(l),"errors",ao),Le(pn(l),"warnings",ao),Le(pn(l),"cancelRegister",function(){var g=l.props,d=g.preserve,m=g.isListField,C=g.name;l.cancelRegisterFunc&&l.cancelRegisterFunc(m,d,vr(C)),l.cancelRegisterFunc=null}),Le(pn(l),"getNamePath",function(){var g=l.props,d=g.name,m=g.fieldContext,C=m.prefixName,b=C===void 0?[]:C;return d!==void 0?[].concat(an(b),an(d)):[]}),Le(pn(l),"getRules",function(){var g=l.props,d=g.rules,m=d===void 0?[]:d,C=g.fieldContext;return m.map(function(b){return typeof b=="function"?b(C):b})}),Le(pn(l),"refresh",function(){l.mounted&&l.setState(function(g){var d=g.resetCount;return{resetCount:d+1}})}),Le(pn(l),"metaCache",null),Le(pn(l),"triggerMetaEvent",function(g){var d=l.props.onMetaChange;if(d){var m=Ft(Ft({},l.getMeta()),{},{destroy:g});qT(l.metaCache,m)||d(m),l.metaCache=m}else l.metaCache=null}),Le(pn(l),"onStoreChange",function(g,d,m){var C=l.props,b=C.shouldUpdate,x=C.dependencies,_=x===void 0?[]:x,k=C.onReset,E=m.store,A=l.getNamePath(),T=l.getValue(g),D=l.getValue(E),R=d&&Ed(d,A);switch(m.type==="valueUpdate"&&m.source==="external"&&!qT(T,D)&&(l.touched=!0,l.dirty=!0,l.validatePromise=null,l.errors=ao,l.warnings=ao,l.triggerMetaEvent()),m.type){case"reset":if(!d||R){l.touched=!1,l.dirty=!1,l.validatePromise=void 0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),k==null||k(),l.refresh();return}break;case"remove":{if(b){l.reRender();return}break}case"setField":{var N=m.data;if(R){"touched"in N&&(l.touched=N.touched),"validating"in N&&!("originRCField"in N)&&(l.validatePromise=N.validating?Promise.resolve([]):null),"errors"in N&&(l.errors=N.errors||ao),"warnings"in N&&(l.warnings=N.warnings||ao),l.dirty=!0,l.triggerMetaEvent(),l.reRender();return}else if("value"in N&&Ed(d,A,!0)){l.reRender();return}if(b&&!A.length&&s3(b,g,E,T,D,m)){l.reRender();return}break}case"dependenciesUpdate":{var z=_.map(vr);if(z.some(function(M){return Ed(m.relatedFields,M)})){l.reRender();return}break}default:if(R||(!_.length||A.length||b)&&s3(b,g,E,T,D,m)){l.reRender();return}break}b===!0&&l.reRender()}),Le(pn(l),"validateRules",function(g){var d=l.getNamePath(),m=l.getValue(),C=g||{},b=C.triggerName,x=C.validateOnly,_=x===void 0?!1:x,k=Promise.resolve().then(Bp(ro().mark(function E(){var A,T,D,R,N,z,M;return ro().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(l.mounted){Y.next=2;break}return Y.abrupt("return",[]);case 2:if(A=l.props,T=A.validateFirst,D=T===void 0?!1:T,R=A.messageVariables,N=A.validateDebounce,z=l.getRules(),b&&(z=z.filter(function(B){return B}).filter(function(B){var P=B.validateTrigger;if(!P)return!0;var U=aw(P);return U.includes(b)})),!(N&&b)){Y.next=10;break}return Y.next=8,new Promise(function(B){setTimeout(B,N)});case 8:if(l.validatePromise===k){Y.next=10;break}return Y.abrupt("return",[]);case 10:return M=aV(d,m,z,g,D,R),M.catch(function(B){return B}).then(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ao;if(l.validatePromise===k){var P;l.validatePromise=null;var U=[],H=[];(P=B.forEach)===null||P===void 0||P.call(B,function(V){var K=V.rule.warningOnly,ee=V.errors,J=ee===void 0?ao:ee;K?H.push.apply(H,an(J)):U.push.apply(U,an(J))}),l.errors=U,l.warnings=H,l.triggerMetaEvent(),l.reRender()}}),Y.abrupt("return",M);case 13:case"end":return Y.stop()}},E)})));return _||(l.validatePromise=k,l.dirty=!0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),l.reRender()),k}),Le(pn(l),"isFieldValidating",function(){return!!l.validatePromise}),Le(pn(l),"isFieldTouched",function(){return l.touched}),Le(pn(l),"isFieldDirty",function(){if(l.dirty||l.props.initialValue!==void 0)return!0;var g=l.props.fieldContext,d=g.getInternalHooks(zc),m=d.getInitialValue;return m(l.getNamePath())!==void 0}),Le(pn(l),"getErrors",function(){return l.errors}),Le(pn(l),"getWarnings",function(){return l.warnings}),Le(pn(l),"isListField",function(){return l.props.isListField}),Le(pn(l),"isList",function(){return l.props.isList}),Le(pn(l),"isPreserve",function(){return l.props.preserve}),Le(pn(l),"getMeta",function(){l.prevValidating=l.isFieldValidating();var g={touched:l.isFieldTouched(),validating:l.prevValidating,errors:l.errors,warnings:l.warnings,name:l.getNamePath(),validated:l.validatePromise===null};return g}),Le(pn(l),"getOnlyChild",function(g){if(typeof g=="function"){var d=l.getMeta();return Ft(Ft({},l.getOnlyChild(g(l.getControlled(),d,l.props.fieldContext))),{},{isFunction:!0})}var m=rw(g);return m.length!==1||!Me.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),Le(pn(l),"getValue",function(g){var d=l.props.fieldContext.getFieldsValue,m=l.getNamePath();return gl(g||d(!0),m)}),Le(pn(l),"getControlled",function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=l.props,m=d.name,C=d.trigger,b=d.validateTrigger,x=d.getValueFromEvent,_=d.normalize,k=d.valuePropName,E=d.getValueProps,A=d.fieldContext,T=b!==void 0?b:A.validateTrigger,D=l.getNamePath(),R=A.getInternalHooks,N=A.getFieldsValue,z=R(zc),M=z.dispatch,I=l.getValue(),Y=E||function(V){return Le({},k,V)},B=g[C],P=m!==void 0?Y(I):{};process.env.NODE_ENV!=="production"&&P&&Object.keys(P).forEach(function(V){_r(typeof P[V]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(V,")"))});var U=Ft(Ft({},g),P);U[C]=function(){l.touched=!0,l.dirty=!0,l.triggerMetaEvent();for(var V,K=arguments.length,ee=new Array(K),J=0;J<K;J++)ee[J]=arguments[J];x?V=x.apply(void 0,ee):V=sV.apply(void 0,[k].concat(ee)),_&&(V=_(V,I,N(!0))),M({type:"updateValue",namePath:D,value:V}),B&&B.apply(void 0,ee)};var H=aw(T||[]);return H.forEach(function(V){var K=U[V];U[V]=function(){K&&K.apply(void 0,arguments);var ee=l.props.rules;ee&&ee.length&&M({type:"validateField",namePath:D,triggerName:V})}}),U}),i.fieldContext){var f=i.fieldContext.getInternalHooks,c=f(zc),p=c.initEntityValue;p(pn(l))}return l}return nw(t,[{key:"componentDidMount",value:function(){var l=this.props,f=l.shouldUpdate,c=l.fieldContext;if(this.mounted=!0,c){var p=c.getInternalHooks,g=p(zc),d=g.registerField;this.cancelRegisterFunc=d(this)}f===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var l=this.state.resetCount,f=this.props.children,c=this.getOnlyChild(f),p=c.child,g=c.isFunction,d;return g?d=p:Me.isValidElement(p)?d=Me.cloneElement(p,this.getControlled(p.props)):(_r(!p,"`children` of Field is not validate ReactElement."),d=p),Me.createElement(Me.Fragment,{key:l},d)}}]),t}(Me.Component);Le(vw,"contextType",vu),Le(vw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function mw(e){var r=e.name,t=_h(e,uV),i=Me.useContext(vu),l=Me.useContext(my),f=r!==void 0?vr(r):void 0,c="keep";return t.isListField||(c="_".concat((f||[]).join("_"))),process.env.NODE_ENV!=="production"&&t.preserve===!1&&t.isListField&&f.length<=1&&_r(!1,"`preserve` should not apply on Form.List fields."),Me.createElement(vw,Nr({key:c,name:f,isListField:!!l},t,{fieldContext:i}))}function u3(e){var r=e.name,t=e.initialValue,i=e.children,l=e.rules,f=e.validateTrigger,c=e.isListField,p=Me.useContext(vu),g=Me.useContext(my),d=Me.useRef({keys:[],id:0}),m=d.current,C=Me.useMemo(function(){var k=vr(p.prefixName)||[];return[].concat(an(k),an(vr(r)))},[p.prefixName,r]),b=Me.useMemo(function(){return Ft(Ft({},p),{},{prefixName:C})},[p,C]),x=Me.useMemo(function(){return{getKey:function(E){var A=C.length,T=E[A];return[m.keys[T],E.slice(A+1)]}}},[C]);if(typeof i!="function")return _r(!1,"Form.List only accepts function as children."),null;var _=function(E,A,T){var D=T.source;return D==="internal"?!1:E!==A};return Me.createElement(my.Provider,{value:x},Me.createElement(vu.Provider,{value:b},Me.createElement(mw,{name:[],shouldUpdate:_,rules:l,validateTrigger:f,initialValue:t,isList:!0,isListField:c??!!g},function(k,E){var A=k.value,T=A===void 0?[]:A,D=k.onChange,R=p.getFieldValue,N=function(){var Y=R(C||[]);return Y||[]},z={add:function(Y,B){var P=N();B>=0&&B<=P.length?(m.keys=[].concat(an(m.keys.slice(0,B)),[m.id],an(m.keys.slice(B))),D([].concat(an(P.slice(0,B)),[Y],an(P.slice(B))))):(process.env.NODE_ENV!=="production"&&(B<0||B>P.length)&&_r(!1,"The second parameter of the add function should be a valid positive number."),m.keys=[].concat(an(m.keys),[m.id]),D([].concat(an(P),[Y]))),m.id+=1},remove:function(Y){var B=N(),P=new Set(Array.isArray(Y)?Y:[Y]);P.size<=0||(m.keys=m.keys.filter(function(U,H){return!P.has(H)}),D(B.filter(function(U,H){return!P.has(H)})))},move:function(Y,B){if(Y!==B){var P=N();Y<0||Y>=P.length||B<0||B>=P.length||(m.keys=l3(m.keys,Y,B),D(l3(P,Y,B)))}}},M=T||[];return Array.isArray(M)||(M=[],process.env.NODE_ENV!=="production"&&_r(!1,"Current value of '".concat(C.join(" > "),"' is not an array type."))),i(M.map(function(I,Y){var B=m.keys[Y];return B===void 0&&(m.keys[Y]=m.id,B=m.keys[Y],m.id+=1),{name:Y,key:B,isListField:!0}}),z,E)})))}function cV(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(l,f){e.forEach(function(c,p){c.catch(function(g){return r=!0,g}).then(function(g){t-=1,i[p]=g,!(t>0)&&(r&&f(i),l(i))})})}):Promise.resolve([])}var c3="__@field_split__";function gw(e){return e.map(function(r){return"".concat(Mr(r),":").concat(r)}).join(c3)}var Dd=function(){function e(){tw(this,e),Le(this,"kvs",new Map)}return nw(e,[{key:"set",value:function(t,i){this.kvs.set(gw(t),i)}},{key:"get",value:function(t){return this.kvs.get(gw(t))}},{key:"update",value:function(t,i){var l=this.get(t),f=i(l);f?this.set(t,f):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(gw(t))}},{key:"map",value:function(t){return an(this.kvs.entries()).map(function(i){var l=mc(i,2),f=l[0],c=l[1],p=f.split(c3);return t({key:p.map(function(g){var d=g.match(/^([^:]*):(.*)$/),m=mc(d,3),C=m[1],b=m[2];return C==="number"?Number(b):b}),value:c})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var l=i.key,f=i.value;return t[l.join(".")]=f,null}),t}}]),e}(),fV=["name"],dV=nw(function e(r){var t=this;tw(this,e),Le(this,"formHooked",!1),Le(this,"forceRootUpdate",void 0),Le(this,"subscribable",!0),Le(this,"store",{}),Le(this,"fieldEntities",[]),Le(this,"initialValues",{}),Le(this,"callbacks",{}),Le(this,"validateMessages",null),Le(this,"preserve",null),Le(this,"lastValidatePromise",null),Le(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),Le(this,"getInternalHooks",function(i){return i===zc?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(_r(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Le(this,"useSubscribe",function(i){t.subscribable=i}),Le(this,"prevWithoutPreserves",null),Le(this,"setInitialValues",function(i,l){if(t.initialValues=i||{},l){var f,c=Ip(i,t.store);(f=t.prevWithoutPreserves)===null||f===void 0||f.map(function(p){var g=p.key;c=Eo(c,g,gl(i,g))}),t.prevWithoutPreserves=null,t.updateStore(c)}}),Le(this,"destroyForm",function(){var i=new Dd;t.getFieldEntities(!0).forEach(function(l){t.isMergedPreserve(l.isPreserve())||i.set(l.getNamePath(),!0)}),t.prevWithoutPreserves=i}),Le(this,"getInitialValue",function(i){var l=gl(t.initialValues,i);return i.length?Ip(l):l}),Le(this,"setCallbacks",function(i){t.callbacks=i}),Le(this,"setValidateMessages",function(i){t.validateMessages=i}),Le(this,"setPreserve",function(i){t.preserve=i}),Le(this,"watchList",[]),Le(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(l){return l!==i})}}),Le(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var l=t.getFieldsValue(),f=t.getFieldsValue(!0);t.watchList.forEach(function(c){c(l,f,i)})}}),Le(this,"timeoutId",null),Le(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||_r(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Le(this,"updateStore",function(i){t.store=i}),Le(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(l){return l.getNamePath().length}):t.fieldEntities}),Le(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,l=new Dd;return t.getFieldEntities(i).forEach(function(f){var c=f.getNamePath();l.set(c,f)}),l}),Le(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var l=t.getFieldsMap(!0);return i.map(function(f){var c=vr(f);return l.get(c)||{INVALIDATE_NAME_PATH:vr(f)}})}),Le(this,"getFieldsValue",function(i,l){t.warningUnhooked();var f,c,p;if(i===!0||Array.isArray(i)?(f=i,c=l):i&&Mr(i)==="object"&&(p=i.strict,c=i.filter),f===!0&&!c)return t.store;var g=t.getFieldEntitiesForNamePathList(Array.isArray(f)?f:null),d=[];return g.forEach(function(m){var C,b,x="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(p){var _,k;if((_=(k=m).isList)!==null&&_!==void 0&&_.call(k))return}else if(!f&&(C=(b=m).isListField)!==null&&C!==void 0&&C.call(b))return;if(!c)d.push(x);else{var E="getMeta"in m?m.getMeta():null;c(E)&&d.push(x)}}),i3(t.store,d.map(vr))}),Le(this,"getFieldValue",function(i){t.warningUnhooked();var l=vr(i);return gl(t.store,l)}),Le(this,"getFieldsError",function(i){t.warningUnhooked();var l=t.getFieldEntitiesForNamePathList(i);return l.map(function(f,c){return f&&!("INVALIDATE_NAME_PATH"in f)?{name:f.getNamePath(),errors:f.getErrors(),warnings:f.getWarnings()}:{name:vr(i[c]),errors:[],warnings:[]}})}),Le(this,"getFieldError",function(i){t.warningUnhooked();var l=vr(i),f=t.getFieldsError([l])[0];return f.errors}),Le(this,"getFieldWarning",function(i){t.warningUnhooked();var l=vr(i),f=t.getFieldsError([l])[0];return f.warnings}),Le(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,l=new Array(i),f=0;f<i;f++)l[f]=arguments[f];var c=l[0],p=l[1],g,d=!1;l.length===0?g=null:l.length===1?Array.isArray(c)?(g=c.map(vr),d=!1):(g=null,d=c):(g=c.map(vr),d=p);var m=t.getFieldEntities(!0),C=function(E){return E.isFieldTouched()};if(!g)return d?m.every(function(k){return C(k)||k.isList()}):m.some(C);var b=new Dd;g.forEach(function(k){b.set(k,[])}),m.forEach(function(k){var E=k.getNamePath();g.forEach(function(A){A.every(function(T,D){return E[D]===T})&&b.update(A,function(T){return[].concat(an(T),[k])})})});var x=function(E){return E.some(C)},_=b.map(function(k){var E=k.value;return E});return d?_.every(x):_.some(x)}),Le(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),Le(this,"isFieldsValidating",function(i){t.warningUnhooked();var l=t.getFieldEntities();if(!i)return l.some(function(c){return c.isFieldValidating()});var f=i.map(vr);return l.some(function(c){var p=c.getNamePath();return Ed(f,p)&&c.isFieldValidating()})}),Le(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),Le(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=new Dd,f=t.getFieldEntities(!0);f.forEach(function(g){var d=g.props.initialValue,m=g.getNamePath();if(d!==void 0){var C=l.get(m)||new Set;C.add({entity:g,value:d}),l.set(m,C)}});var c=function(d){d.forEach(function(m){var C=m.props.initialValue;if(C!==void 0){var b=m.getNamePath(),x=t.getInitialValue(b);if(x!==void 0)_r(!1,"Form already set 'initialValues' with path '".concat(b.join("."),"'. Field can not overwrite it."));else{var _=l.get(b);if(_&&_.size>1)_r(!1,"Multiple Field with path '".concat(b.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(_){var k=t.getFieldValue(b),E=m.isListField();!E&&(!i.skipExist||k===void 0)&&t.updateStore(Eo(t.store,b,an(_)[0].value))}}}})},p;i.entities?p=i.entities:i.namePathList?(p=[],i.namePathList.forEach(function(g){var d=l.get(g);if(d){var m;(m=p).push.apply(m,an(an(d).map(function(C){return C.entity})))}})):p=f,c(p)}),Le(this,"resetFields",function(i){t.warningUnhooked();var l=t.store;if(!i){t.updateStore(Ip(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(l,null,{type:"reset"}),t.notifyWatch();return}var f=i.map(vr);f.forEach(function(c){var p=t.getInitialValue(c);t.updateStore(Eo(t.store,c,p))}),t.resetWithFieldInitialValue({namePathList:f}),t.notifyObservers(l,f,{type:"reset"}),t.notifyWatch(f)}),Le(this,"setFields",function(i){t.warningUnhooked();var l=t.store,f=[];i.forEach(function(c){var p=c.name,g=_h(c,fV),d=vr(p);f.push(d),"value"in g&&t.updateStore(Eo(t.store,d,g.value)),t.notifyObservers(l,[d],{type:"setField",data:c})}),t.notifyWatch(f)}),Le(this,"getFields",function(){var i=t.getFieldEntities(!0),l=i.map(function(f){var c=f.getNamePath(),p=f.getMeta(),g=Ft(Ft({},p),{},{name:c,value:t.getFieldValue(c)});return Object.defineProperty(g,"originRCField",{value:!0}),g});return l}),Le(this,"initEntityValue",function(i){var l=i.props.initialValue;if(l!==void 0){var f=i.getNamePath(),c=gl(t.store,f);c===void 0&&t.updateStore(Eo(t.store,f,l))}}),Le(this,"isMergedPreserve",function(i){var l=i!==void 0?i:t.preserve;return l??!0}),Le(this,"registerField",function(i){t.fieldEntities.push(i);var l=i.getNamePath();if(t.notifyWatch([l]),i.props.initialValue!==void 0){var f=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(f,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,p){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(C){return C!==i}),!t.isMergedPreserve(p)&&(!c||g.length>1)){var d=c?void 0:t.getInitialValue(l);if(l.length&&t.getFieldValue(l)!==d&&t.fieldEntities.every(function(C){return!o3(C.getNamePath(),l)})){var m=t.store;t.updateStore(Eo(m,l,d,!0)),t.notifyObservers(m,[l],{type:"remove"}),t.triggerDependenciesUpdate(m,l)}}t.notifyWatch([l])}}),Le(this,"dispatch",function(i){switch(i.type){case"updateValue":{var l=i.namePath,f=i.value;t.updateValue(l,f);break}case"validateField":{var c=i.namePath,p=i.triggerName;t.validateFields([c],{triggerName:p});break}}}),Le(this,"notifyObservers",function(i,l,f){if(t.subscribable){var c=Ft(Ft({},f),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(p){var g=p.onStoreChange;g(i,l,c)})}else t.forceRootUpdate()}),Le(this,"triggerDependenciesUpdate",function(i,l){var f=t.getDependencyChildrenFields(l);return f.length&&t.validateFields(f),t.notifyObservers(i,f,{type:"dependenciesUpdate",relatedFields:[l].concat(an(f))}),f}),Le(this,"updateValue",function(i,l){var f=vr(i),c=t.store;t.updateStore(Eo(t.store,f,l)),t.notifyObservers(c,[f],{type:"valueUpdate",source:"internal"}),t.notifyWatch([f]);var p=t.triggerDependenciesUpdate(c,f),g=t.callbacks.onValuesChange;if(g){var d=i3(t.store,[f]);g(d,t.getFieldsValue())}t.triggerOnFieldsChange([f].concat(an(p)))}),Le(this,"setFieldsValue",function(i){t.warningUnhooked();var l=t.store;if(i){var f=Ip(t.store,i);t.updateStore(f)}t.notifyObservers(l,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),Le(this,"setFieldValue",function(i,l){t.setFields([{name:i,value:l}])}),Le(this,"getDependencyChildrenFields",function(i){var l=new Set,f=[],c=new Dd;t.getFieldEntities().forEach(function(g){var d=g.props.dependencies;(d||[]).forEach(function(m){var C=vr(m);c.update(C,function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return b.add(g),b})})});var p=function g(d){var m=c.get(d)||new Set;m.forEach(function(C){if(!l.has(C)){l.add(C);var b=C.getNamePath();C.isFieldDirty()&&b.length&&(f.push(b),g(b))}})};return p(i),f}),Le(this,"triggerOnFieldsChange",function(i,l){var f=t.callbacks.onFieldsChange;if(f){var c=t.getFields();if(l){var p=new Dd;l.forEach(function(d){var m=d.name,C=d.errors;p.set(m,C)}),c.forEach(function(d){d.errors=p.get(d.name)||d.errors})}var g=c.filter(function(d){var m=d.name;return Ed(i,m)});g.length&&f(g,c)}}),Le(this,"validateFields",function(i,l){t.warningUnhooked();var f,c;Array.isArray(i)||typeof i=="string"||typeof l=="string"?(f=i,c=l):c=i;var p=!!f,g=p?f.map(vr):[],d=[],m=String(Date.now()),C=new Set,b=c||{},x=b.recursive,_=b.dirty;t.getFieldEntities(!0).forEach(function(T){if(p||g.push(T.getNamePath()),!(!T.props.rules||!T.props.rules.length)&&!(_&&!T.isFieldDirty())){var D=T.getNamePath();if(C.add(D.join(m)),!p||Ed(g,D,x)){var R=T.validateRules(Ft({validateMessages:Ft(Ft({},e3),t.validateMessages)},c));d.push(R.then(function(){return{name:D,errors:[],warnings:[]}}).catch(function(N){var z,M=[],I=[];return(z=N.forEach)===null||z===void 0||z.call(N,function(Y){var B=Y.rule.warningOnly,P=Y.errors;B?I.push.apply(I,an(P)):M.push.apply(M,an(P))}),M.length?Promise.reject({name:D,errors:M,warnings:I}):{name:D,errors:M,warnings:I}}))}}});var k=cV(d);t.lastValidatePromise=k,k.catch(function(T){return T}).then(function(T){var D=T.map(function(R){var N=R.name;return N});t.notifyObservers(t.store,D,{type:"validateFinish"}),t.triggerOnFieldsChange(D,T)});var E=k.then(function(){return t.lastValidatePromise===k?Promise.resolve(t.getFieldsValue(g)):Promise.reject([])}).catch(function(T){var D=T.filter(function(R){return R&&R.errors.length});return Promise.reject({values:t.getFieldsValue(g),errorFields:D,outOfDate:t.lastValidatePromise!==k})});E.catch(function(T){return T});var A=g.filter(function(T){return C.has(T.join(m))});return t.triggerOnFieldsChange(A),E}),Le(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var l=t.callbacks.onFinish;if(l)try{l(i)}catch{}}).catch(function(i){var l=t.callbacks.onFinishFailed;l&&l(i)})}),this.forceRootUpdate=r});function yw(e){var r=Me.useRef(),t=Me.useState({}),i=mc(t,2),l=i[1];if(!r.current)if(e)r.current=e;else{var f=function(){l({})},c=new dV(f);r.current=c.getForm()}return[r.current]}var xw=Me.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hV=function(r){var t=r.validateMessages,i=r.onFormChange,l=r.onFormFinish,f=r.children,c=Me.useContext(xw),p=Me.useRef({});return Me.createElement(xw.Provider,{value:Ft(Ft({},c),{},{validateMessages:Ft(Ft({},c.validateMessages),t),triggerFormChange:function(d,m){i&&i(d,{changedFields:m,forms:p.current}),c.triggerFormChange(d,m)},triggerFormFinish:function(d,m){l&&l(d,{values:m,forms:p.current}),c.triggerFormFinish(d,m)},registerForm:function(d,m){d&&(p.current=Ft(Ft({},p.current),{},Le({},d,m))),c.registerForm(d,m)},unregisterForm:function(d){var m=Ft({},p.current);delete m[d],p.current=m,c.unregisterForm(d)}})},f)},pV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],vV=function(r,t){var i=r.name,l=r.initialValues,f=r.fields,c=r.form,p=r.preserve,g=r.children,d=r.component,m=d===void 0?"form":d,C=r.validateMessages,b=r.validateTrigger,x=b===void 0?"onChange":b,_=r.onValuesChange,k=r.onFieldsChange,E=r.onFinish,A=r.onFinishFailed,T=_h(r,pV),D=Me.useContext(xw),R=yw(c),N=mc(R,1),z=N[0],M=z.getInternalHooks(zc),I=M.useSubscribe,Y=M.setInitialValues,B=M.setCallbacks,P=M.setValidateMessages,U=M.setPreserve,H=M.destroyForm;Me.useImperativeHandle(t,function(){return z}),Me.useEffect(function(){return D.registerForm(i,z),function(){D.unregisterForm(i)}},[D,z,i]),P(Ft(Ft({},D.validateMessages),C)),B({onValuesChange:_,onFieldsChange:function(ne){if(D.triggerFormChange(i,ne),k){for(var oe=arguments.length,ae=new Array(oe>1?oe-1:0),se=1;se<oe;se++)ae[se-1]=arguments[se];k.apply(void 0,[ne].concat(ae))}},onFinish:function(ne){D.triggerFormFinish(i,ne),E&&E(ne)},onFinishFailed:A}),U(p);var V=Me.useRef(null);Y(l,!V.current),V.current||(V.current=!0),Me.useEffect(function(){return H},[]);var K,ee=typeof g=="function";if(ee){var J=z.getFieldsValue(!0);K=g(J,z)}else K=g;I(!ee);var q=Me.useRef();Me.useEffect(function(){lV(q.current||[],f||[])||z.setFields(f||[]),q.current=f},[f,z]);var te=Me.useMemo(function(){return Ft(Ft({},z),{},{validateTrigger:x})},[z,x]),X=Me.createElement(my.Provider,{value:null},Me.createElement(vu.Provider,{value:te},K));return m===!1?X:Me.createElement(m,Nr({},T,{onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),z.submit()},onReset:function(ne){var oe;ne.preventDefault(),z.resetFields(),(oe=T.onReset)===null||oe===void 0||oe.call(T,ne)}}),X)};function f3(e){try{return JSON.stringify(e)}catch{return Math.random()}}var mV=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=W.useRef(r);_r(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function bw(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],l=r[1],f=l===void 0?{}:l,c=wH(f)?{form:f}:f,p=c.form,g=W.useState(),d=mc(g,2),m=d[0],C=d[1],b=W.useMemo(function(){return f3(m)},[m]),x=W.useRef(b);x.current=b;var _=W.useContext(vu),k=p||_,E=k&&k._init;process.env.NODE_ENV!=="production"&&_r(r.length===2?p?E:!0:E,"useWatch requires a form instance since it can not auto detect from context.");var A=vr(i),T=W.useRef(A);return T.current=A,mV(A),W.useEffect(function(){if(E){var D=k.getFieldsValue,R=k.getInternalHooks,N=R(zc),z=N.registerWatch,M=function(P,U){var H=c.preserve?U:P;return typeof i=="function"?i(H):gl(H,T.current)},I=z(function(B,P){var U=M(B,P),H=f3(U);x.current!==H&&(x.current=H,C(U))}),Y=M(D(),D(!0));return m!==Y&&C(Y),I}},[E]),m}var gV=Me.forwardRef(vV),kd=gV;kd.FormProvider=hV,kd.Field=mw,kd.List=u3,kd.useForm=yw,kd.useWatch=bw;const yV=e=>{const r=ED(),t=W.useContext(vu);return Be(en,{children:[e.children(t.getFieldsValue(e.to),t),e.to.map(i=>Q(xV,{form:t,namePath:i,onChange:r},i.toString()))]})},xV=W.memo(e=>{const r=bw(e.namePath,e.form);return dz(()=>{e.onChange()},[r]),null}),bV={colon:!1,showValidateMessage:!0,border:!0,labelAlign:"left",controlAlign:"left"},Cw=W.createContext(bV),[d3]=wn("form"),CV=W.forwardRef((e,r)=>{const{className:t,style:i,layout:l,footer:f,children:c,colon:p,required:g,border:d,labelAlign:m,controlAlign:C,showValidateMessage:b=!0}=e,x=$a(e,["className","style","layout","footer","children","colon","required","border","labelAlign","controlAlign","showValidateMessage"]);return Be(kd,Object.assign({className:Re(d3(),t),style:i,ref:r},x,{children:[Q(Cw.Provider,Object.assign({value:{layout:l,colon:p,border:d,required:g,showValidateMessage:b,controlAlign:C,labelAlign:m}},{children:c})),f&&Q("div",Object.assign({className:Re(d3("footer"))},{children:f}))]}))});function wV(e){const r=e.prototype;return!!(r&&r.isReactComponent)}function _V(e){return typeof e=="function"&&!wV(e)&&e.defaultProps===void 0}function h3(e){return!ug.exports.isForwardRef(e)||ug.exports.isFragment(e)?!1:ug.exports.isMemo(e)?h3(e.type):!_V(e.type)}function SV(...e){let r;for(r=0;r<e.length&&e[r]===void 0;r++);return e[r]}const EV=W.memo(e=>{var{children:r}=e,t=$a(e,["children"]);return W.cloneElement(r,t)},(e,r)=>e.value===r.value&&e.update===r.update),[DV]=wn("form-item"),kV=e=>{var r,t,i,l,f,c;const{meta:p}=e,g=$a(e,["meta"]),d=W.useContext(Cw),m=(r=e.layout)!==null&&r!==void 0?r:d.layout,C=(t=e.border)!==null&&t!==void 0?t:d.border,b=(i=e.colon)!==null&&i!==void 0?i:d.colon,x=(l=e.showValidateMessage)!==null&&l!==void 0?l:d.showValidateMessage,_=(f=e.labelAlign)!==null&&f!==void 0?f:d.labelAlign,k=(c=e.controlAlign)!==null&&c!==void 0?c:d.controlAlign,E=p&&p.errors.length>0,A=x&&E?p.errors[0]:null,T=Object.assign(Object.assign({},g),{className:Re(DV({vertical:m==="vertical"}),e.className),colon:b,error:x?!1:E,errorMessage:A,labelAlign:_,controlAlign:k,border:C});return Q(oC,Object.assign({},T,{children:e.children}))},xy=Object.assign(CV,{Item:e=>{const r=W.useContext(Cw),{name:t,noStyle:i,rules:l,trigger:f="onChange",validateTrigger:c=f,shouldUpdate:p,dependencies:g,messageVariables:d,label:m,required:C,disabled:b,children:x,onClick:_}=e,k=$a(e,["name","noStyle","rules","trigger","validateTrigger","shouldUpdate","dependencies","messageVariables","label","required","disabled","children","onClick"]),E=sD(e,["style","className","tooltip","intro","colon","labelWidth","labelAlign","labelClass","showValidateMessage","controlAlign","errorMessageAlign","border","layout","isLink","size","arrowDirection","leftIcon","rightIcon","prefix","suffix"]),{validateTrigger:A}=W.useContext(vu),T=SV(c,A,f),D=W.useRef(null),R=W.useRef(0);R.current+=1;function N(I,Y,B,P){return i?I:Q(kV,Object.assign({htmlFor:Y,meta:B},E,{required:P,label:m,disabled:b,onClick:U=>_==null?void 0:_(U,D)},{children:I}))}const z=typeof x=="function";if(!t&&!z&&!e.dependencies)return N(x);let M={};return typeof m=="string"&&(M.label=m),d&&(M=Object.assign(Object.assign({},M),d)),Q(mw,Object.assign({},k,{name:t,shouldUpdate:p,dependencies:g,rules:l,trigger:f,validateTrigger:T},{children:(I,Y,B)=>{var P;let U=null;const H=C!==void 0?C:(P=r.required)!==null&&P!==void 0?P:l&&l.some(K=>!!(K&&typeof K=="object"&&K.required)),V=(JC(t).length&&Y?Y.name:[]).join("_");if(p&&g&&void 0,z)(p||g)&&!t?U=x(B):(p||g||void 0,t&&void 0);else if(g&&!t);else if(W.isValidElement(x)){x.props.defaultValue&&void 0;const K=Object.assign(Object.assign({},x.props),I);h3(x)&&(K.ref=J=>{const q=x.ref;q&&(typeof q=="function"&&q(J),"current"in q&&(q.current=J)),D.current=J}),K.id||(K.id=V),b&&(K.disabled=b),new Set([...JC(f),...JC(T)]).forEach(J=>{K[J]=(...q)=>{var te,X,$;(te=I[J])===null||te===void 0||te.call(I,...q),($=(X=x.props)[J])===null||$===void 0||$.call(X,...q)}}),U=Q(EV,Object.assign({value:I[e.valuePropName||"value"],update:R.current},{children:W.cloneElement(x,K)}))}else t&&void 0,U=x;return N(U,V,Y,H)}}))},useForm:yw,List:u3,Subscribe:yV,useWatch:bw}),Hp={"checkbox-group":"index-module_checkbox-group_4684b",checkboxGroup:"index-module_checkbox-group_4684b","checkbox-group-header":"index-module_checkbox-group-header_192bd",checkboxGroupHeader:"index-module_checkbox-group-header_192bd","checkbox-group-content":"index-module_checkbox-group-content_f81a1",checkboxGroupContent:"index-module_checkbox-group-content_f81a1","checkbox-item":"index-module_checkbox-item_1b36c",checkboxItem:"index-module_checkbox-item_1b36c","checkbox-group-cancel":"index-module_checkbox-group-cancel_c5cfb",checkboxGroupCancel:"index-module_checkbox-group-cancel_c5cfb"},TV=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,langId:C})=>{const[b,x]=W.useState([]);W.useEffect(()=>{e.input==="mult-select"&&f&&Array.isArray(f)&&(T(f||[]),R(f||[]))},[f]),W.useEffect(()=>{_()},[e.inputType,e.classify,e.data,e.options]);const _=async()=>{const N=await NL({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:p,interfaceTypeSysDict:g,actionUrlKey:d,actionUrlExtraParams:m,item:e});x(N)},[k,E]=W.useState(!1),[A,T]=W.useState([]),[D,R]=W.useState([]);return Q(en,{children:e.input==="mult-select"?Be("div",{style:{width:"100%",...t},children:[Q(oC,{style:{padding:0},isLink:!0,readOnly:!0,value:D!=null&&D.length?D==null?void 0:D.join(","):"",onClick:()=>{r||(T([...D]),E(!0))},placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select"}),Q(sp,{visible:k,round:!0,position:"bottom",style:{height:"60vh"},onClose:()=>E(!1),children:Be("div",{className:Hp["checkbox-group"],children:[Be(me.Flex,{justify:"space-between",className:Hp["checkbox-group-header"],children:[Q("a",{className:Hp["checkbox-group-cancel"],onClick:()=>E(!1),children:C==="10001"?"取消":"Cancel"}),Q("a",{onClick:()=>{E(!1),R([...A]),c(A!=null&&A.length?A==null?void 0:A.join(","):"")},children:C==="10001"?"确定":"Confirm"})]}),Q("div",{style:{height:" calc(60vh - 70px)"},className:Hp["checkbox-group-content"],children:Q(NT.Group,{iconSize:"18",onChange:N=>T(N),value:A,children:b.map(N=>Q(NT,{shape:"square",className:Hp["checkbox-item"],name:N.value,children:N.label},N.value))})})]})})]}):Q(ZC,{popup:!0,columns:b,placeholder:"",columnsFieldNames:{text:"value"},onConfirm:c,children:(N,z,M)=>Q(oC,{style:{padding:0,...t},isLink:!0,readOnly:!0,clickable:!0,placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select",value:Array.isArray(N)?N.join(","):N||f,onClick:()=>{r||M.open()}})})})},AV={customUpload:"myUpload-module_customUpload_5ec38"},OV=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),RV=e=>{const{action:r,item:t,onChange:i,readonly:l=!1,relatedid:f,uploadText:c,onRemove:p,list:g=[],uploadType:d,relatedidKey:m,langId:C}=e,{message:b}=me.App.useApp(),x=(t==null?void 0:t["upload-accept"])||"*",_=t==null?void 0:t.input,k=t==null?void 0:t["upload-size"],E=(t==null?void 0:t["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{g&&g.length&&R(g)},[g]);const Y=async H=>{d==="image"&&(!H.url&&!H.preview&&(H.preview=await OV(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),i&&i(H)},P=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(C==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},U=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(en,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:c})});return Be(en,{children:[Q(me.Upload,{action:r,beforeUpload:P,listType:A,accept:x,fileList:D,onPreview:Y,data:{[m]:f},maxCount:E,onChange:B,onRemove:p,disabled:l,className:AV.customUpload,children:D.length>=E?null:U}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},FV=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:p,handleUrlOptions:g,value:d,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]);W.useEffect(()=>{A()},[r.inputType,r.classify,r.data,r.options]);const A=async()=>{const T=await Qh({commonRequestWidthParams:c,commonRequest:p,interfaceTypeDict:m,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(T)};return Q(me.Radio.Group,{...l,options:k,onChange:t,disabled:i,value:d,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})};hn.extend(iD);function NV(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:p,relatedidKey:g,actionUrlKey:d,actionUrlExtraParams:m,CustomModalComponent:C,hideAttrList:b=[],langId:x="10001",getTitle:_}=e,k=W.useRef([]),{message:E}=me.App.useApp();W.useEffect(()=>{l&&(k.current=l)},[l]);const A=W.useCallback(P=>Array.isArray(P)?P:(P==null?void 0:P.fileList)??[],[]),T=P=>{f(P)},D=W.useCallback(P=>{var K,ee;const U=(K=P.json)==null?void 0:K.input,H=(ee=P.json)==null?void 0:ee.format,V={};switch(U){case"date-picker":case"range-picker":case"second-picker":case"multiple-date-picker":case"time-picker":V.onClick=(J,q)=>{var te;(te=q.current)==null||te.open()},V.isLink=!0,V.trigger="onConfirm";break;case"image":case"file":case"video":case"audio":V.getValueFromEvent=A;break;case"week-picker":V.getValueFromEvent=J=>`${J==null?void 0:J.year()}-${hn(J).isoWeek()}周`,V.getValueProps=J=>{if(!J)return{value:null};const[q,te]=J.split("-"),X=Number(q),$=Number(te.replace("周",""));return{value:hn().year(X).isoWeek($)}};break;case"month-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"YYYY-MM"),V.getValueProps=J=>({value:J?hn(J):null});break;case"quarter-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"YYYY年第Q季度"),V.getValueProps=J=>({value:J?hn(J,H||"YYYY年第Q季度"):null});break;case"year-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"YYYY"),V.getValueProps=J=>({value:J?hn(J):null});break;case"second-picker":V.getValueFromEvent=J=>J==null?void 0:J.format(H||"HH:mm:ss"),V.getValueProps=J=>({value:J?hn(J,H||"HH:mm:ss"):null});break}return V},[A]),R=W.useCallback(({isActive:P})=>P?Q(b8,{style:{fontSize:18,color:"#999"}}):Q(_8,{style:{fontSize:18,color:"#999"}}),[]),N=(P,U)=>{var H,V,K,ee,J;return Be(me.Flex,{gap:10,vertical:U==="flex",align:"center",children:[Q("span",{children:P.attrname}),((H=P==null?void 0:P.json)==null?void 0:H.instruction)&&U==="icon"&&Q(me.Tooltip,{title:(V=P==null?void 0:P.json)==null?void 0:V.instruction,children:Q(y8,{style:{color:((K=P==null?void 0:P.json)==null?void 0:K["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((ee=P==null?void 0:P.json)==null?void 0:ee["instruction-color"])??"red"},children:(J=P==null?void 0:P.json)==null?void 0:J.instruction})]})},z=W.useCallback(({itemWithJson:P,colNum:U=1,readonly:H=!1,instructionShowMode:V="icon",radioAlign:K="horizontal",formItemStyle:ee,relatedid:J,form:q,defaultWidth:te=358,parentFormListField:X,isShowLabel:$=!0})=>{const ne=Tc(P);let oe=P.children||[];Array.isArray(oe==null?void 0:oe[0])&&oe.length&&(oe=oe[0]);const ae=se=>{const ve=(X==null?void 0:X.parentName)||(X==null?void 0:X.name);return ve?Array.isArray(ve)?[...ve,P.attrid,se.name]:[ve,P.attrid,se.name]:[P.attrid,se.name]};return Q(me.Col,{span:24/U,children:Q(me.Collapse,{bordered:!1,defaultActiveKey:[P.attrid],style:{backgroundColor:"transparent"},expandIcon:({isActive:se})=>R({isActive:se}),items:[{key:P.attrid,label:P.attrname,styles:{header:{paddingLeft:0}},children:Q(xy.List,{name:X?Array.isArray(X.name)?[...X.name,P.attrid]:[X.name,P.attrid]:P.attrid,initialValue:ne,children:(se,{add:ve,remove:we})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[se.map(ce=>{const ye={...ce,parentName:ae(ce)};return Q(me.Card,{style:{width:typeof te=="number"?te+100:te},size:"small",title:`${P.attrname} ${ce.name+1}`,extra:Q(v8,{onClick:()=>{se.length>1?we(ce.name):E.warning("至少需要保留一个!")}}),children:(oe||[]).map((De,Pe)=>Q(W.Fragment,{children:B({item:De,readonly:H,colNum:U,instructionShowMode:V,relatedid:J,form:q,defaultWidth:te,formItemStyle:ee,radioAlign:K,isFormListItem:!0,formListField:ye,isShowLabel:!0})},De.attrid||`child-${Pe}`))},ce.key)}),Q(me.Flex,{style:{width:200},children:Q(me.Button,{type:"dashed",onClick:()=>ve(),block:!0,children:"+ 新增"})})]})})}]},P.attrid)})},[R,Tc]),M=W.useCallback(({itemWithJson:P,colNum:U=1,readonly:H=!1,instructionShowMode:V="icon",radioAlign:K="horizontal",formItemStyle:ee,relatedid:J,form:q,defaultWidth:te=358,isFormListItem:X=!1,formListField:$,isShowLabel:ne=!0})=>{var oe,ae,se,ve,we;if(((oe=P.json)==null?void 0:oe.hide)===!0||b!=null&&b.includes(P.attrid))return Q(en,{});if(P.attrtype===1)return z({itemWithJson:P,colNum:U,readonly:H,instructionShowMode:V,radioAlign:K,formItemStyle:ee,relatedid:J,form:q,defaultWidth:te,parentFormListField:$,isShowLabel:ne});if(P.attrtype===2)return Q(en,{children:"实例信息"});if(P.attrtype===0){const ce=Tc(P),ye=(ae=P.json)==null?void 0:ae["default-prompt"],De=oD(P,x),{combinations:Pe=[]}=P.json||{};if(Pe!=null&&Pe.length)return Q(me.Flex,{children:Pe.map((ze,Ne)=>{var jn,un,It,on,In,Mn,Tn;let dt=Tc(ze),Xe=te;const Zt=ze.json.input||"text",sn=ee==null?void 0:ee.find(Gt=>Gt.type===Zt);sn&&sn!=null&&sn.style;const kn=(jn=ze==null?void 0:ze.json)==null?void 0:jn["combination-width-ratio"];return kn&&(Xe=10*kn),Q(xy.Item,{style:{flex:Xe},label:Ne===0?(un=P==null?void 0:P.json)==null?void 0:un["combination-name"]:Q("div",{style:{visibility:"hidden"},children:(It=P==null?void 0:P.json)==null?void 0:It["combination-name"]}),required:Ne===0?(on=ze.json)==null?void 0:on.must:!1,name:$?Array.isArray($.name)?[...$.name,ze.attrid]:[$.name,ze.attrid]:ze.attrid,initialValue:dt,rules:[...(In=ze.json)!=null&&In.must?[{required:!0,message:ye||`${De}${ze.attrname}`}]:[],...(Mn=P.json)!=null&&Mn.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((Tn=P.json)==null?void 0:Tn["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...D(ze),children:Y({item:ze,readonly:H,formItemStyle:ee,radioAlign:K,relatedid:J,form:q,defaultWidth:Xe,customWidth:{width:"100%"}})},Ne)})});const ke=X&&$?Array.isArray($.name)?[...$.name,P.attrid]:[$.name,P.attrid]:P.attrid;return Q(xy.Item,{border:!0,name:ke,label:ne&&N(P,V)||null,initialValue:ce,rules:[...(se=P.json)!=null&&se.must?[{required:!0,message:`${De}${P.attrname}`}]:[],...(ve=P.json)!=null&&ve.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((we=P.json)==null?void 0:we["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...D(P),children:Y({item:P,readonly:H,formItemStyle:ee,radioAlign:K,relatedid:J,form:q,defaultWidth:te})},P.attrid)}return null},[N,Tc,D,b,z]),I=async P=>{var U;try{const H=(U=P==null?void 0:P.response)==null?void 0:U.data;if(H){if(!r)return;const V=await r({Controlname:"DelFile",PageName:"initializationfile"},H);if((V==null?void 0:V.ReturnValue)!==1)return E.error((V==null?void 0:V.msg)||"删除文件失败"),!1}else T(P);return!0}catch{return E.error("删除文件失败,请重试"),!1}},Y=({item:P,readonly:U=!1,formItemStyle:H=[],radioAlign:V="horizontal",relatedid:K,form:ee,defaultWidth:J=358,customWidth:q={}})=>{var ve,we,ce;const te=P.json.input||"text",X=P.attrid,$=Tc(P),ne=((ve=P.json)==null?void 0:ve["default-prompt"])||"",oe=oD(P,x),ae=P.json.length&&{maxLength:P.json.length}||{},se=H.find(ye=>ye.type===te);switch(te){case"label":return Q(cu,{disabled:!0,value:((we=P.json)==null?void 0:we["label-value"])||P.attrvalue||((ce=P.json)==null?void 0:ce.default)||"-",style:{width:J,...se==null?void 0:se.style,...q}});case"text":return Q(cu,{placeholder:ne||oe,...ae,disabled:U,clearable:!0,style:{width:J,...se==null?void 0:se.style,...q}});case"password":return Q(cu,{placeholder:ne||oe,...ae,disabled:U,type:"password",style:{width:J,...se==null?void 0:se.style,...q}});case"textarea":return Q(cu.TextArea,{placeholder:ne||oe,autoSize:{minHeight:80,maxHeight:120},...ae,disabled:U,style:{width:J,...se==null?void 0:se.style,...q}});case"number":return Q(cu,{placeholder:ne||oe,...ae,type:"number",disabled:U,style:{width:J,...se==null?void 0:se.style,...q}});case"mult-select":case"select":return Q(TV,{item:P.json,readonly:U,style:{width:J,...se==null?void 0:se.style,...q},commonRequestWidthParams:r,commonRequest:i,value:$,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x,onChange:ye=>{ee.setFieldValue(P.attrid,ye)}});case"modal-mult-select":case"modal-select":return Q(BL,{style:{width:J,...se==null?void 0:se.style,...q},item:P.json,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ye=>{ee.setFieldValue(P.attrid,ye)},disabled:U,langId:x,CustomModalComponent:C});case"mul-field-modal-select":return Q(ML,{style:{width:J,...se==null?void 0:se.style,...q},item:P.json,form:ee,attrid:X,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,langId:x,onSure:async ye=>{ee.setFieldsValue(ye)},disabled:U,CustomModalComponent:C,getTitle:_});case"date-picker":return Q(XC,{popup:!0,type:"date",children:ye=>ye?hn(ye).format("YYYY-MM-DD"):x==="10001"?"请选择日期":"Please select a date"});case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":{const ye={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};return Q(me.DatePicker,{picker:ye[te]||"date",disabled:U,placement:"bottomLeft",style:{width:J,...se==null?void 0:se.style,...q}})}case"time-picker":return Q(XC,{popup:{round:!0},type:"datetime",title:x==="10001"?"选择年月日时分":"Select date and time",onConfirm:ye=>{ee.setFieldValue(P.attrid,ye)},children:ye=>ye?Q("span",{style:{color:"#333333"},children:hn(ye).format("YYYY-MM-DD HH:mm")}):x==="10001"?"请选择时间":"Please select time"});case"second-picker":return Q(XC,{popup:{round:!0},type:"time",title:x==="10001"?"选择年月日":"Select time",onConfirm:ye=>{ee.setFieldValue(P.attrid,ye)},children:ye=>ye?Q("span",{style:{color:"#333333"},children:ye}):x==="10001"?"请选择时间":"Please select time"});case"range-picker":return Q(OT,{type:"range",children:(ye,De)=>Q(eC,{style:{padding:0},value:ye?ye.map(Pe=>hn(Pe).format("YYYY-MM-DD")).join("~"):x==="10001"?"请选择日期":"Please select a date",onClick:()=>De.open()})});case"multiple-date-picker":return Q(OT,{type:"multiple",children:(ye,De)=>Q(eC,{style:{padding:0},value:ye?ye.map(Pe=>hn(Pe).format("YYYY-MM-DD")).join(","):x==="10001"?"请选择日期":"Please select a date",onClick:()=>De.open()})});case"radio":return Q(FV,{radioAlign:V,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:U,options:ae,handleUrlOptions:kc,value:$,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x,onChange:ye=>{ee.setFieldValue(P.attrid,ye.target.value)}});case"checkbox":return Q(zL,{radioAlign:V,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:U,options:ae,value:$,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x,onChange:ye=>{ee.setFieldValue(P.attrid,ye.join(","))}});case"audio":case"file":case"image":case"video":return Q(RV,{action:t&&t("initializationfile"),item:P.json,uploadType:te,list:$,readonly:U,uploadText:x==="10001"?"上传文件":"Upload file",relatedid:K,relatedidKey:g,langId:x,onRemove:ye=>I(ye)});case"cascader":return Q(UL,{commonRequestWidthParams:r,commonRequest:i,item:P.json,value:P.attrvalue,style:{width:J,...se==null?void 0:se.style,...q},interfaceTypeDict:c,interfaceTypeSysDict:p,actionUrlKey:d,actionUrlExtraParams:m,langId:x});case"radio-card":return Q(jL,{item:P.json,readonly:U,onChange:ye=>{ee.setFieldValue(P.attrid,ye)},commonRequestWidthParams:r});default:return Q(cu,{placeholder:oe,...ae,clearable:!0,disabled:U,style:{width:J,...se==null?void 0:se.style,...q}})}},B=({item:P,readonly:U=!1,colNum:H=1,instructionShowMode:V="icon",relatedid:K,form:ee,defaultWidth:J=358,formItemStyle:q,radioAlign:te="horizontal",isFormListItem:X=!1,formListField:$,isShowLabel:ne=!0})=>{var se;const oe=P.info_base64===1?uu(Zh(P.info)):uu(P.info),ae={...P,json:{...P==null?void 0:P.json,...oe}};return((se=ae.json)==null?void 0:se.hide)===!0?null:Q(W.Fragment,{children:M({itemWithJson:ae,readonly:U,colNum:H,instructionShowMode:V,relatedid:K,form:ee,defaultWidth:J,formItemStyle:q,radioAlign:te,isFormListItem:X,formListField:$,isShowLabel:ne})},ae.attrid)};return{handleRenderItem:B,handleSetFormItemInitialValue:Tc}}const MV=W.forwardRef((e,r)=>{const{formConfig:t,setFormConfig:i,setAttrList:l,readonly:f=!1,relatedid:c,colNum:p=1,colSpace:g=[0,0],instructionShowMode:d="flex",defaultWidth:m="100%",commonRequestWidthParams:C,uploadAction:b,commonRequest:x,formItemStyle:_=[],radioAlign:k="horizontal",interfaceTypeChildren:E="YLLRDetailAttrlist",interfaceTypeDict:A="YLZDDictList",interfaceTypeSysDict:T="YLZDSysConfigList",relatedidKey:D="relatedid",actionUrlKey:R="action-url",actionUrlExtraParams:N={},CustomModalComponent:z,hideAttrList:M=[],formShowType:I="form",formListItemWidth:Y,formListItemName:B,langId:P="10001",getTitle:U,form:H}=e,V=W.useRef([]),K=J=>{V.current.push(J)},{handleRenderItem:ee}=NV({commonRequestWidthParams:C,uploadAction:b,commonRequest:x,setFormConfig:i,setAttrList:l,updateDelFileList:K,formConfig:t,interfaceTypeChildren:E,interfaceTypeDict:A,interfaceTypeSysDict:T,relatedidKey:D,actionUrlKey:R,actionUrlExtraParams:N,CustomModalComponent:z,hideAttrList:M,langId:P,getTitle:U});return W.useImperativeHandle(r,()=>({getDelFileList:()=>V.current})),Q(en,{children:I==="table"?Q(xy.List,{name:B||"customFormList",initialValue:[{}],children:(J,{add:q,remove:te})=>Be(en,{children:[J.map((X,$)=>Be("div",{className:"form-list-item",style:{borderRadius:8,marginBottom:10},children:[Be(me.Flex,{justify:"space-between",style:{height:44,marginLeft:16,marginRight:16,borderBottom:"1px solid #E3E3E3"},align:"center",children:[Q("span",{style:{color:"#555555"},children:P==="10001"?`第${$+1}条`:`Record ${$+1}`}),Q("a",{style:{color:"#ff4d4f"},onClick:()=>te($),children:P==="10001"?"删除":"Delete"})]}),Q("div",{className:"form-list-item__control",children:t==null?void 0:t.map((ne,oe)=>Q(W.Fragment,{children:ee({item:ne,readonly:f,colNum:p,instructionShowMode:d,relatedid:c,form:H,defaultWidth:(Y==null?void 0:Y[oe])||m,formItemStyle:_,isFormListItem:!0,formListField:X})},oe))})]},$)),Q("div",{style:{padding:10},children:Q(ip,{plain:!0,icon:Q(jz,{}),style:{width:"100%"},type:"primary",onClick:()=>q({}),children:P==="10001"?"新增":"Add"})})]})}):Q(me.Row,{gutter:g,children:t.map((J,q)=>Q(W.Fragment,{children:ee({item:J,readonly:f,colNum:p,instructionShowMode:d,relatedid:c,form:H,defaultWidth:m,formItemStyle:_,radioAlign:k})},J.attrid||`form-item-${q}`))})})}),p3={phone:{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号码"},telephone:{pattern:/^[\d -]+$/,message:"请输入正确的电话号码"},email:{pattern:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,message:"请输入正确的邮箱地址"},httpUrl:{pattern:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/,message:"请输入合法的URL"},zipCode:{pattern:/^[0-9]{6}$/,message:"请输入正确的邮政编码"},specificKey:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D()()]*$/,message:"可输入字母、汉字、数字或()"},inputTextarea:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D-\u3002-\uff1f-\uff01-\uff0c-\u3001-\uff1b-\uff1a]*$/,message:"请输入字母、汉字或数字和中文常用字符:?!,、;。"},backendRestrict:{pattern:/^[^'"/\\]*$/,message:`不能输入特殊字符\\'/"`},onetoNinetyNine:{pattern:/^[1-9][0-9]{0,1}$/,message:"请输入1-99的整数"},passwordRule:{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z0-9]{8,12}$/,message:"密码应为字母大小写+数字8-12位组合"},passwordNewRule:{pattern:/^.*(?=.{8,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#¥%&*.()_+~/-]).*$/,message:"密码应为字母大小写+数字+常见字符!@#¥%&*.()_+~/- 8-12位组合"},pureNumber:{pattern:/^[1-9][0-9]*$/,message:"请输入整数类型"},onlyBlankRule:{pattern:/\S/,message:"输入内容不能只有空格"}},PV=Object.freeze(Object.defineProperty({__proto__:null,default:p3},Symbol.toStringTag,{value:"Module"}));class BV{constructor(r){Xf(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=r}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const r=document.getElementById(this.options.id),t=document.createElement("canvas");t.id=this.options.canvasId,t.width=Number(this.options.width),t.height=Number(this.options.height),t.style.cursor="pointer",t.innerHTML="您的浏览器版本不支持canvas",r&&r.appendChild(t),t.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const r=document.getElementById(this.options.canvasId);let t,i=[];if(r.getContext)t=r.getContext("2d");else return;t.textBaseline="middle",t.fillStyle=this.randomColor(180,240),t.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?i=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?i=this.options.numArr:i=this.options.letterArr;for(let l=1;l<=4;l++){const f=i[this.randomNum(0,i.length)];this.options.code+=f,t.font="20px SimHei",t.fillStyle=this.randomColor(50,160),t.shadowBlur=this.randomNum(-3,3),t.shadowColor="rgba(0, 0, 0, 0.3)";const c=Number(this.options.width)/5*l,p=Number(this.options.height)/2,g=this.randomNum(-30,30);t.translate(c,p),t.rotate(g*Math.PI/180),t.fillText(f,0,0),t.rotate(-g*Math.PI/180),t.translate(-c,-p)}for(let l=0;l<2;l++)t.strokeStyle=this.randomColor(40,180),t.beginPath(),t.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),t.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),t.stroke();for(let l=0;l<Number(this.options.width)/10;l++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),t.fill()}validate(r){const t=r.toLowerCase(),i=this.options.code.toLowerCase();return t==i}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(r,t){return Math.floor(Math.random()*(t-r)+r)}randomColor(r,t){const i=this.randomNum(r,t),l=this.randomNum(r,t),f=this.randomNum(r,t);return"rgb("+i+","+l+","+f+")"}}const LV=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:BV},Symbol.toStringTag,{value:"Module"}));var v3={exports:{}};function zV(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ww={exports:{}};const UV=L4(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var m3;function Qt(){return m3||(m3=1,function(e,r){(function(t,i){e.exports=i()})(Pt,function(){var t=t||function(i,l){var f;if(typeof window<"u"&&window.crypto&&(f=window.crypto),typeof self<"u"&&self.crypto&&(f=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(f=globalThis.crypto),!f&&typeof window<"u"&&window.msCrypto&&(f=window.msCrypto),!f&&typeof Pt<"u"&&Pt.crypto&&(f=Pt.crypto),!f&&typeof zV=="function")try{f=UV}catch{}var c=function(){if(f){if(typeof f.getRandomValues=="function")try{return f.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof f.randomBytes=="function")try{return f.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},p=Object.create||function(){function T(){}return function(D){var R;return T.prototype=D,R=new T,T.prototype=null,R}}(),g={},d=g.lib={},m=d.Base=function(){return{extend:function(T){var D=p(this);return T&&D.mixIn(T),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var D in T)T.hasOwnProperty(D)&&(this[D]=T[D]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),C=d.WordArray=m.extend({init:function(T,D){T=this.words=T||[],D!=l?this.sigBytes=D:this.sigBytes=T.length*4},toString:function(T){return(T||x).stringify(this)},concat:function(T){var D=this.words,R=T.words,N=this.sigBytes,z=T.sigBytes;if(this.clamp(),N%4)for(var M=0;M<z;M++){var I=R[M>>>2]>>>24-M%4*8&255;D[N+M>>>2]|=I<<24-(N+M)%4*8}else for(var Y=0;Y<z;Y+=4)D[N+Y>>>2]=R[Y>>>2];return this.sigBytes+=z,this},clamp:function(){var T=this.words,D=this.sigBytes;T[D>>>2]&=4294967295<<32-D%4*8,T.length=i.ceil(D/4)},clone:function(){var T=m.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var D=[],R=0;R<T;R+=4)D.push(c());return new C.init(D,T)}}),b=g.enc={},x=b.Hex={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push((M>>>4).toString(16)),N.push((M&15).toString(16))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N+=2)R[N>>>3]|=parseInt(T.substr(N,2),16)<<24-N%8*4;return new C.init(R,D/2)}},_=b.Latin1={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push(String.fromCharCode(M))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N++)R[N>>>2]|=(T.charCodeAt(N)&255)<<24-N%4*8;return new C.init(R,D)}},k=b.Utf8={stringify:function(T){try{return decodeURIComponent(escape(_.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return _.parse(unescape(encodeURIComponent(T)))}},E=d.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=k.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var D,R=this._data,N=R.words,z=R.sigBytes,M=this.blockSize,I=M*4,Y=z/I;T?Y=i.ceil(Y):Y=i.max((Y|0)-this._minBufferSize,0);var B=Y*M,P=i.min(B*4,z);if(B){for(var U=0;U<B;U+=M)this._doProcessBlock(N,U);D=N.splice(0,B),R.sigBytes-=P}return new C.init(D,P)},clone:function(){var T=m.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0});d.Hasher=E.extend({cfg:m.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){T&&this._append(T);var D=this._doFinalize();return D},blockSize:16,_createHelper:function(T){return function(D,R){return new T.init(R).finalize(D)}},_createHmacHelper:function(T){return function(D,R){return new A.HMAC.init(T,R).finalize(D)}}});var A=g.algo={};return g}(Math);return t})}(ww)),ww.exports}var _w={exports:{}},g3;function by(){return g3||(g3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.Base,p=f.WordArray,g=l.x64={};g.Word=c.extend({init:function(d,m){this.high=d,this.low=m}}),g.WordArray=c.extend({init:function(d,m){d=this.words=d||[],m!=i?this.sigBytes=m:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,m=d.length,C=[],b=0;b<m;b++){var x=d[b];C.push(x.high),C.push(x.low)}return p.create(C,this.sigBytes)},clone:function(){for(var d=c.clone.call(this),m=d.words=this.words.slice(0),C=m.length,b=0;b<C;b++)m[b]=m[b].clone();return d}})}(),t})}(_w)),_w.exports}var Sw={exports:{}},y3;function jV(){return y3||(y3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){if(typeof ArrayBuffer=="function"){var i=t,l=i.lib,f=l.WordArray,c=f.init,p=f.init=function(g){if(g instanceof ArrayBuffer&&(g=new Uint8Array(g)),(g instanceof Int8Array||typeof Uint8ClampedArray<"u"&&g instanceof Uint8ClampedArray||g instanceof Int16Array||g instanceof Uint16Array||g instanceof Int32Array||g instanceof Uint32Array||g instanceof Float32Array||g instanceof Float64Array)&&(g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength)),g instanceof Uint8Array){for(var d=g.byteLength,m=[],C=0;C<d;C++)m[C>>>2]|=g[C]<<24-C%4*8;c.call(this,m,d)}else c.apply(this,arguments)};p.prototype=f}}(),t.lib.WordArray})}(Sw)),Sw.exports}var Ew={exports:{}},x3;function IV(){return x3||(x3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Utf16=c.Utf16BE={stringify:function(g){for(var d=g.words,m=g.sigBytes,C=[],b=0;b<m;b+=2){var x=d[b>>>2]>>>16-b%4*8&65535;C.push(String.fromCharCode(x))}return C.join("")},parse:function(g){for(var d=g.length,m=[],C=0;C<d;C++)m[C>>>1]|=g.charCodeAt(C)<<16-C%2*16;return f.create(m,d*2)}},c.Utf16LE={stringify:function(g){for(var d=g.words,m=g.sigBytes,C=[],b=0;b<m;b+=2){var x=p(d[b>>>2]>>>16-b%4*8&65535);C.push(String.fromCharCode(x))}return C.join("")},parse:function(g){for(var d=g.length,m=[],C=0;C<d;C++)m[C>>>1]|=p(g.charCodeAt(C)<<16-C%2*16);return f.create(m,d*2)}};function p(g){return g<<8&4278255360|g>>>8&16711935}}(),t.enc.Utf16})}(Ew)),Ew.exports}var Dw={exports:{}},b3;function jc(){return b3||(b3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64={stringify:function(g){var d=g.words,m=g.sigBytes,C=this._map;g.clamp();for(var b=[],x=0;x<m;x+=3)for(var _=d[x>>>2]>>>24-x%4*8&255,k=d[x+1>>>2]>>>24-(x+1)%4*8&255,E=d[x+2>>>2]>>>24-(x+2)%4*8&255,A=_<<16|k<<8|E,T=0;T<4&&x+T*.75<m;T++)b.push(C.charAt(A>>>6*(3-T)&63));var D=C.charAt(64);if(D)for(;b.length%4;)b.push(D);return b.join("")},parse:function(g){var d=g.length,m=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var b=0;b<m.length;b++)C[m.charCodeAt(b)]=b}var x=m.charAt(64);if(x){var _=g.indexOf(x);_!==-1&&(d=_)}return p(g,d,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function p(g,d,m){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=m[g.charCodeAt(x-1)]<<x%4*2,k=m[g.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64})}(Dw)),Dw.exports}var kw={exports:{}},C3;function HV(){return C3||(C3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64url={stringify:function(g,d){d===void 0&&(d=!0);var m=g.words,C=g.sigBytes,b=d?this._safe_map:this._map;g.clamp();for(var x=[],_=0;_<C;_+=3)for(var k=m[_>>>2]>>>24-_%4*8&255,E=m[_+1>>>2]>>>24-(_+1)%4*8&255,A=m[_+2>>>2]>>>24-(_+2)%4*8&255,T=k<<16|E<<8|A,D=0;D<4&&_+D*.75<C;D++)x.push(b.charAt(T>>>6*(3-D)&63));var R=b.charAt(64);if(R)for(;x.length%4;)x.push(R);return x.join("")},parse:function(g,d){d===void 0&&(d=!0);var m=g.length,C=d?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var x=0;x<C.length;x++)b[C.charCodeAt(x)]=x}var _=C.charAt(64);if(_){var k=g.indexOf(_);k!==-1&&(m=k)}return p(g,m,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function p(g,d,m){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=m[g.charCodeAt(x-1)]<<x%4*2,k=m[g.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64url})}(kw)),kw.exports}var Tw={exports:{}},w3;function Ic(){return w3||(w3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.algo,d=[];(function(){for(var k=0;k<64;k++)d[k]=i.abs(i.sin(k+1))*4294967296|0})();var m=g.MD5=p.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,E){for(var A=0;A<16;A++){var T=E+A,D=k[T];k[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var R=this._hash.words,N=k[E+0],z=k[E+1],M=k[E+2],I=k[E+3],Y=k[E+4],B=k[E+5],P=k[E+6],U=k[E+7],H=k[E+8],V=k[E+9],K=k[E+10],ee=k[E+11],J=k[E+12],q=k[E+13],te=k[E+14],X=k[E+15],$=R[0],ne=R[1],oe=R[2],ae=R[3];$=C($,ne,oe,ae,N,7,d[0]),ae=C(ae,$,ne,oe,z,12,d[1]),oe=C(oe,ae,$,ne,M,17,d[2]),ne=C(ne,oe,ae,$,I,22,d[3]),$=C($,ne,oe,ae,Y,7,d[4]),ae=C(ae,$,ne,oe,B,12,d[5]),oe=C(oe,ae,$,ne,P,17,d[6]),ne=C(ne,oe,ae,$,U,22,d[7]),$=C($,ne,oe,ae,H,7,d[8]),ae=C(ae,$,ne,oe,V,12,d[9]),oe=C(oe,ae,$,ne,K,17,d[10]),ne=C(ne,oe,ae,$,ee,22,d[11]),$=C($,ne,oe,ae,J,7,d[12]),ae=C(ae,$,ne,oe,q,12,d[13]),oe=C(oe,ae,$,ne,te,17,d[14]),ne=C(ne,oe,ae,$,X,22,d[15]),$=b($,ne,oe,ae,z,5,d[16]),ae=b(ae,$,ne,oe,P,9,d[17]),oe=b(oe,ae,$,ne,ee,14,d[18]),ne=b(ne,oe,ae,$,N,20,d[19]),$=b($,ne,oe,ae,B,5,d[20]),ae=b(ae,$,ne,oe,K,9,d[21]),oe=b(oe,ae,$,ne,X,14,d[22]),ne=b(ne,oe,ae,$,Y,20,d[23]),$=b($,ne,oe,ae,V,5,d[24]),ae=b(ae,$,ne,oe,te,9,d[25]),oe=b(oe,ae,$,ne,I,14,d[26]),ne=b(ne,oe,ae,$,H,20,d[27]),$=b($,ne,oe,ae,q,5,d[28]),ae=b(ae,$,ne,oe,M,9,d[29]),oe=b(oe,ae,$,ne,U,14,d[30]),ne=b(ne,oe,ae,$,J,20,d[31]),$=x($,ne,oe,ae,B,4,d[32]),ae=x(ae,$,ne,oe,H,11,d[33]),oe=x(oe,ae,$,ne,ee,16,d[34]),ne=x(ne,oe,ae,$,te,23,d[35]),$=x($,ne,oe,ae,z,4,d[36]),ae=x(ae,$,ne,oe,Y,11,d[37]),oe=x(oe,ae,$,ne,U,16,d[38]),ne=x(ne,oe,ae,$,K,23,d[39]),$=x($,ne,oe,ae,q,4,d[40]),ae=x(ae,$,ne,oe,N,11,d[41]),oe=x(oe,ae,$,ne,I,16,d[42]),ne=x(ne,oe,ae,$,P,23,d[43]),$=x($,ne,oe,ae,V,4,d[44]),ae=x(ae,$,ne,oe,J,11,d[45]),oe=x(oe,ae,$,ne,X,16,d[46]),ne=x(ne,oe,ae,$,M,23,d[47]),$=_($,ne,oe,ae,N,6,d[48]),ae=_(ae,$,ne,oe,U,10,d[49]),oe=_(oe,ae,$,ne,te,15,d[50]),ne=_(ne,oe,ae,$,B,21,d[51]),$=_($,ne,oe,ae,J,6,d[52]),ae=_(ae,$,ne,oe,I,10,d[53]),oe=_(oe,ae,$,ne,K,15,d[54]),ne=_(ne,oe,ae,$,z,21,d[55]),$=_($,ne,oe,ae,H,6,d[56]),ae=_(ae,$,ne,oe,X,10,d[57]),oe=_(oe,ae,$,ne,P,15,d[58]),ne=_(ne,oe,ae,$,q,21,d[59]),$=_($,ne,oe,ae,Y,6,d[60]),ae=_(ae,$,ne,oe,ee,10,d[61]),oe=_(oe,ae,$,ne,M,15,d[62]),ne=_(ne,oe,ae,$,V,21,d[63]),R[0]=R[0]+$|0,R[1]=R[1]+ne|0,R[2]=R[2]+oe|0,R[3]=R[3]+ae|0},_doFinalize:function(){var k=this._data,E=k.words,A=this._nDataBytes*8,T=k.sigBytes*8;E[T>>>5]|=128<<24-T%32;var D=i.floor(A/4294967296),R=A;E[(T+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E[(T+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k.sigBytes=(E.length+1)*4,this._process();for(var N=this._hash,z=N.words,M=0;M<4;M++){var I=z[M];z[M]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return N},clone:function(){var k=p.clone.call(this);return k._hash=this._hash.clone(),k}});function C(k,E,A,T,D,R,N){var z=k+(E&A|~E&T)+D+N;return(z<<R|z>>>32-R)+E}function b(k,E,A,T,D,R,N){var z=k+(E&T|A&~T)+D+N;return(z<<R|z>>>32-R)+E}function x(k,E,A,T,D,R,N){var z=k+(E^A^T)+D+N;return(z<<R|z>>>32-R)+E}function _(k,E,A,T,D,R,N){var z=k+(A^(E|~T))+D+N;return(z<<R|z>>>32-R)+E}l.MD5=p._createHelper(m),l.HmacMD5=p._createHmacHelper(m)}(Math),t.MD5})}(Tw)),Tw.exports}var Aw={exports:{}},_3;function S3(){return _3||(_3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.Hasher,p=i.algo,g=[],d=p.SHA1=c.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,C){for(var b=this._hash.words,x=b[0],_=b[1],k=b[2],E=b[3],A=b[4],T=0;T<80;T++){if(T<16)g[T]=m[C+T]|0;else{var D=g[T-3]^g[T-8]^g[T-14]^g[T-16];g[T]=D<<1|D>>>31}var R=(x<<5|x>>>27)+A+g[T];T<20?R+=(_&k|~_&E)+1518500249:T<40?R+=(_^k^E)+1859775393:T<60?R+=(_&k|_&E|k&E)-1894007588:R+=(_^k^E)-899497514,A=E,E=k,k=_<<30|_>>>2,_=x,x=R}b[0]=b[0]+x|0,b[1]=b[1]+_|0,b[2]=b[2]+k|0,b[3]=b[3]+E|0,b[4]=b[4]+A|0},_doFinalize:function(){var m=this._data,C=m.words,b=this._nDataBytes*8,x=m.sigBytes*8;return C[x>>>5]|=128<<24-x%32,C[(x+64>>>9<<4)+14]=Math.floor(b/4294967296),C[(x+64>>>9<<4)+15]=b,m.sigBytes=C.length*4,this._process(),this._hash},clone:function(){var m=c.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA1=c._createHelper(d),i.HmacSHA1=c._createHmacHelper(d)}(),t.SHA1})}(Aw)),Aw.exports}var Ow={exports:{}},E3;function Rw(){return E3||(E3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.algo,d=[],m=[];(function(){function x(A){for(var T=i.sqrt(A),D=2;D<=T;D++)if(!(A%D))return!1;return!0}function _(A){return(A-(A|0))*4294967296|0}for(var k=2,E=0;E<64;)x(k)&&(E<8&&(d[E]=_(i.pow(k,1/2))),m[E]=_(i.pow(k,1/3)),E++),k++})();var C=[],b=g.SHA256=p.extend({_doReset:function(){this._hash=new c.init(d.slice(0))},_doProcessBlock:function(x,_){for(var k=this._hash.words,E=k[0],A=k[1],T=k[2],D=k[3],R=k[4],N=k[5],z=k[6],M=k[7],I=0;I<64;I++){if(I<16)C[I]=x[_+I]|0;else{var Y=C[I-15],B=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,P=C[I-2],U=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;C[I]=B+C[I-7]+U+C[I-16]}var H=R&N^~R&z,V=E&A^E&T^A&T,K=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),ee=(R<<26|R>>>6)^(R<<21|R>>>11)^(R<<7|R>>>25),J=M+ee+H+m[I]+C[I],q=K+V;M=z,z=N,N=R,R=D+J|0,D=T,T=A,A=E,E=J+q|0}k[0]=k[0]+E|0,k[1]=k[1]+A|0,k[2]=k[2]+T|0,k[3]=k[3]+D|0,k[4]=k[4]+R|0,k[5]=k[5]+N|0,k[6]=k[6]+z|0,k[7]=k[7]+M|0},_doFinalize:function(){var x=this._data,_=x.words,k=this._nDataBytes*8,E=x.sigBytes*8;return _[E>>>5]|=128<<24-E%32,_[(E+64>>>9<<4)+14]=i.floor(k/4294967296),_[(E+64>>>9<<4)+15]=k,x.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var x=p.clone.call(this);return x._hash=this._hash.clone(),x}});l.SHA256=p._createHelper(b),l.HmacSHA256=p._createHmacHelper(b)}(Math),t.SHA256})}(Ow)),Ow.exports}var Fw={exports:{}},D3;function VV(){return D3||(D3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),Rw())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.algo,p=c.SHA256,g=c.SHA224=p.extend({_doReset:function(){this._hash=new f.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=p._doFinalize.call(this);return d.sigBytes-=4,d}});i.SHA224=p._createHelper(g),i.HmacSHA224=p._createHmacHelper(g)}(),t.SHA224})}(Fw)),Fw.exports}var Nw={exports:{}},k3;function T3(){return k3||(k3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),by())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.Hasher,c=i.x64,p=c.Word,g=c.WordArray,d=i.algo;function m(){return p.create.apply(p,arguments)}var C=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],b=[];(function(){for(var _=0;_<80;_++)b[_]=m()})();var x=d.SHA512=f.extend({_doReset:function(){this._hash=new g.init([new p.init(1779033703,4089235720),new p.init(3144134277,2227873595),new p.init(1013904242,4271175723),new p.init(2773480762,1595750129),new p.init(1359893119,2917565137),new p.init(2600822924,725511199),new p.init(528734635,4215389547),new p.init(1541459225,327033209)])},_doProcessBlock:function(_,k){for(var E=this._hash.words,A=E[0],T=E[1],D=E[2],R=E[3],N=E[4],z=E[5],M=E[6],I=E[7],Y=A.high,B=A.low,P=T.high,U=T.low,H=D.high,V=D.low,K=R.high,ee=R.low,J=N.high,q=N.low,te=z.high,X=z.low,$=M.high,ne=M.low,oe=I.high,ae=I.low,se=Y,ve=B,we=P,ce=U,ye=H,De=V,Pe=K,ke=ee,ze=J,Ne=q,dt=te,Xe=X,Zt=$,sn=ne,kn=oe,jn=ae,un=0;un<80;un++){var It,on,In=b[un];if(un<16)on=In.high=_[k+un*2]|0,It=In.low=_[k+un*2+1]|0;else{var Mn=b[un-15],Tn=Mn.high,Gt=Mn.low,Kn=(Tn>>>1|Gt<<31)^(Tn>>>8|Gt<<24)^Tn>>>7,ka=(Gt>>>1|Tn<<31)^(Gt>>>8|Tn<<24)^(Gt>>>7|Tn<<25),Lr=b[un-2],qe=Lr.high,at=Lr.low,ct=(qe>>>19|at<<13)^(qe<<3|at>>>29)^qe>>>6,Ht=(at>>>19|qe<<13)^(at<<3|qe>>>29)^(at>>>6|qe<<26),Nn=b[un-7],ur=Nn.high,Wn=Nn.low,zr=b[un-16],_n=zr.high,na=zr.low;It=ka+Wn,on=Kn+ur+(It>>>0<ka>>>0?1:0),It=It+Ht,on=on+ct+(It>>>0<Ht>>>0?1:0),It=It+na,on=on+_n+(It>>>0<na>>>0?1:0),In.high=on,In.low=It}var vn=ze&dt^~ze&Zt,mn=Ne&Xe^~Ne&sn,yl=se&we^se&ye^we&ye,Do=ve&ce^ve&De^ce&De,xl=(se>>>28|ve<<4)^(se<<30|ve>>>2)^(se<<25|ve>>>7),bl=(ve>>>28|se<<4)^(ve<<30|se>>>2)^(ve<<25|se>>>7),gu=(ze>>>14|Ne<<18)^(ze>>>18|Ne<<14)^(ze<<23|Ne>>>9),ko=(Ne>>>14|ze<<18)^(Ne>>>18|ze<<14)^(Ne<<23|ze>>>9),To=C[un],Ao=To.high,Oo=To.low,Hn=jn+ko,Ur=kn+gu+(Hn>>>0<jn>>>0?1:0),Hn=Hn+mn,Ur=Ur+vn+(Hn>>>0<mn>>>0?1:0),Hn=Hn+Oo,Ur=Ur+Ao+(Hn>>>0<Oo>>>0?1:0),Hn=Hn+It,Ur=Ur+on+(Hn>>>0<It>>>0?1:0),ra=bl+Do,Ya=xl+yl+(ra>>>0<bl>>>0?1:0);kn=Zt,jn=sn,Zt=dt,sn=Xe,dt=ze,Xe=Ne,Ne=ke+Hn|0,ze=Pe+Ur+(Ne>>>0<ke>>>0?1:0)|0,Pe=ye,ke=De,ye=we,De=ce,we=se,ce=ve,ve=Hn+ra|0,se=Ur+Ya+(ve>>>0<Hn>>>0?1:0)|0}B=A.low=B+ve,A.high=Y+se+(B>>>0<ve>>>0?1:0),U=T.low=U+ce,T.high=P+we+(U>>>0<ce>>>0?1:0),V=D.low=V+De,D.high=H+ye+(V>>>0<De>>>0?1:0),ee=R.low=ee+ke,R.high=K+Pe+(ee>>>0<ke>>>0?1:0),q=N.low=q+Ne,N.high=J+ze+(q>>>0<Ne>>>0?1:0),X=z.low=X+Xe,z.high=te+dt+(X>>>0<Xe>>>0?1:0),ne=M.low=ne+sn,M.high=$+Zt+(ne>>>0<sn>>>0?1:0),ae=I.low=ae+jn,I.high=oe+kn+(ae>>>0<jn>>>0?1:0)},_doFinalize:function(){var _=this._data,k=_.words,E=this._nDataBytes*8,A=_.sigBytes*8;k[A>>>5]|=128<<24-A%32,k[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),k[(A+128>>>10<<5)+31]=E,_.sigBytes=k.length*4,this._process();var T=this._hash.toX32();return T},clone:function(){var _=f.clone.call(this);return _._hash=this._hash.clone(),_},blockSize:1024/32});i.SHA512=f._createHelper(x),i.HmacSHA512=f._createHmacHelper(x)}(),t.SHA512})}(Nw)),Nw.exports}var Mw={exports:{}},A3;function $V(){return A3||(A3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),by(),T3())})(Pt,function(t){return function(){var i=t,l=i.x64,f=l.Word,c=l.WordArray,p=i.algo,g=p.SHA512,d=p.SHA384=g.extend({_doReset:function(){this._hash=new c.init([new f.init(3418070365,3238371032),new f.init(1654270250,914150663),new f.init(2438529370,812702999),new f.init(355462360,4144912697),new f.init(1731405415,4290775857),new f.init(2394180231,1750603025),new f.init(3675008525,1694076839),new f.init(1203062813,3204075428)])},_doFinalize:function(){var m=g._doFinalize.call(this);return m.sigBytes-=16,m}});i.SHA384=g._createHelper(d),i.HmacSHA384=g._createHmacHelper(d)}(),t.SHA384})}(Mw)),Mw.exports}var Pw={exports:{}},O3;function YV(){return O3||(O3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),by())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.x64,d=g.Word,m=l.algo,C=[],b=[],x=[];(function(){for(var E=1,A=0,T=0;T<24;T++){C[E+5*A]=(T+1)*(T+2)/2%64;var D=A%5,R=(2*E+3*A)%5;E=D,A=R}for(var E=0;E<5;E++)for(var A=0;A<5;A++)b[E+5*A]=A+(2*E+3*A)%5*5;for(var N=1,z=0;z<24;z++){for(var M=0,I=0,Y=0;Y<7;Y++){if(N&1){var B=(1<<Y)-1;B<32?I^=1<<B:M^=1<<B-32}N&128?N=N<<1^113:N<<=1}x[z]=d.create(M,I)}})();var _=[];(function(){for(var E=0;E<25;E++)_[E]=d.create()})();var k=m.SHA3=p.extend({cfg:p.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var T=this._state,D=this.blockSize/2,R=0;R<D;R++){var N=E[A+2*R],z=E[A+2*R+1];N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360;var M=T[R];M.high^=z,M.low^=N}for(var I=0;I<24;I++){for(var Y=0;Y<5;Y++){for(var B=0,P=0,U=0;U<5;U++){var M=T[Y+5*U];B^=M.high,P^=M.low}var H=_[Y];H.high=B,H.low=P}for(var Y=0;Y<5;Y++)for(var V=_[(Y+4)%5],K=_[(Y+1)%5],ee=K.high,J=K.low,B=V.high^(ee<<1|J>>>31),P=V.low^(J<<1|ee>>>31),U=0;U<5;U++){var M=T[Y+5*U];M.high^=B,M.low^=P}for(var q=1;q<25;q++){var B,P,M=T[q],te=M.high,X=M.low,$=C[q];$<32?(B=te<<$|X>>>32-$,P=X<<$|te>>>32-$):(B=X<<$-32|te>>>64-$,P=te<<$-32|X>>>64-$);var ne=_[b[q]];ne.high=B,ne.low=P}var oe=_[0],ae=T[0];oe.high=ae.high,oe.low=ae.low;for(var Y=0;Y<5;Y++)for(var U=0;U<5;U++){var q=Y+5*U,M=T[q],se=_[q],ve=_[(Y+1)%5+5*U],we=_[(Y+2)%5+5*U];M.high=se.high^~ve.high&we.high,M.low=se.low^~ve.low&we.low}var M=T[0],ce=x[I];M.high^=ce.high,M.low^=ce.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var T=E.sigBytes*8,D=this.blockSize*32;A[T>>>5]|=1<<24-T%32,A[(i.ceil((T+1)/D)*D>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var R=this._state,N=this.cfg.outputLength/8,z=N/8,M=[],I=0;I<z;I++){var Y=R[I],B=Y.high,P=Y.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,M.push(P),M.push(B)}return new c.init(M,N)},clone:function(){for(var E=p.clone.call(this),A=E._state=this._state.slice(0),T=0;T<25;T++)A[T]=A[T].clone();return E}});l.SHA3=p._createHelper(k),l.HmacSHA3=p._createHmacHelper(k)}(Math),t.SHA3})}(Pw)),Pw.exports}var Bw={exports:{}},R3;function qV(){return R3||(R3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,p=f.Hasher,g=l.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),m=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=c.create([0,1518500249,1859775393,2400959708,2840853838]),_=c.create([1352829926,1548603684,1836072691,2053994217,0]),k=g.RIPEMD160=p.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(z,M){for(var I=0;I<16;I++){var Y=M+I,B=z[Y];z[Y]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var P=this._hash.words,U=x.words,H=_.words,V=d.words,K=m.words,ee=C.words,J=b.words,q,te,X,$,ne,oe,ae,se,ve,we;oe=q=P[0],ae=te=P[1],se=X=P[2],ve=$=P[3],we=ne=P[4];for(var ce,I=0;I<80;I+=1)ce=q+z[M+V[I]]|0,I<16?ce+=E(te,X,$)+U[0]:I<32?ce+=A(te,X,$)+U[1]:I<48?ce+=T(te,X,$)+U[2]:I<64?ce+=D(te,X,$)+U[3]:ce+=R(te,X,$)+U[4],ce=ce|0,ce=N(ce,ee[I]),ce=ce+ne|0,q=ne,ne=$,$=N(X,10),X=te,te=ce,ce=oe+z[M+K[I]]|0,I<16?ce+=R(ae,se,ve)+H[0]:I<32?ce+=D(ae,se,ve)+H[1]:I<48?ce+=T(ae,se,ve)+H[2]:I<64?ce+=A(ae,se,ve)+H[3]:ce+=E(ae,se,ve)+H[4],ce=ce|0,ce=N(ce,J[I]),ce=ce+we|0,oe=we,we=ve,ve=N(se,10),se=ae,ae=ce;ce=P[1]+X+ve|0,P[1]=P[2]+$+we|0,P[2]=P[3]+ne+oe|0,P[3]=P[4]+q+ae|0,P[4]=P[0]+te+se|0,P[0]=ce},_doFinalize:function(){var z=this._data,M=z.words,I=this._nDataBytes*8,Y=z.sigBytes*8;M[Y>>>5]|=128<<24-Y%32,M[(Y+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.sigBytes=(M.length+1)*4,this._process();for(var B=this._hash,P=B.words,U=0;U<5;U++){var H=P[U];P[U]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return B},clone:function(){var z=p.clone.call(this);return z._hash=this._hash.clone(),z}});function E(z,M,I){return z^M^I}function A(z,M,I){return z&M|~z&I}function T(z,M,I){return(z|~M)^I}function D(z,M,I){return z&I|M&~I}function R(z,M,I){return z^(M|~I)}function N(z,M){return z<<M|z>>>32-M}l.RIPEMD160=p._createHelper(k),l.HmacRIPEMD160=p._createHmacHelper(k)}(),t.RIPEMD160})}(Bw)),Bw.exports}var Lw={exports:{}},F3;function zw(){return F3||(F3=1,function(e,r){(function(t,i){e.exports=i(Qt())})(Pt,function(t){(function(){var i=t,l=i.lib,f=l.Base,c=i.enc,p=c.Utf8,g=i.algo;g.HMAC=f.extend({init:function(d,m){d=this._hasher=new d.init,typeof m=="string"&&(m=p.parse(m));var C=d.blockSize,b=C*4;m.sigBytes>b&&(m=d.finalize(m)),m.clamp();for(var x=this._oKey=m.clone(),_=this._iKey=m.clone(),k=x.words,E=_.words,A=0;A<C;A++)k[A]^=1549556828,E[A]^=909522486;x.sigBytes=_.sigBytes=b,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var m=this._hasher,C=m.finalize(d);m.reset();var b=m.finalize(this._oKey.clone().concat(C));return b}})})()})}(Lw)),Lw.exports}var Uw={exports:{}},N3;function GV(){return N3||(N3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),Rw(),zw())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,p=i.algo,g=p.SHA256,d=p.HMAC,m=p.PBKDF2=f.extend({cfg:f.extend({keySize:128/32,hasher:g,iterations:25e4}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,b){for(var x=this.cfg,_=d.create(x.hasher,C),k=c.create(),E=c.create([1]),A=k.words,T=E.words,D=x.keySize,R=x.iterations;A.length<D;){var N=_.update(b).finalize(E);_.reset();for(var z=N.words,M=z.length,I=N,Y=1;Y<R;Y++){I=_.finalize(I),_.reset();for(var B=I.words,P=0;P<M;P++)z[P]^=B[P]}k.concat(N),T[0]++}return k.sigBytes=D*4,k}});i.PBKDF2=function(C,b,x){return m.create(x).compute(C,b)}}(),t.PBKDF2})}(Uw)),Uw.exports}var jw={exports:{}},M3;function mu(){return M3||(M3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),S3(),zw())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,p=i.algo,g=p.MD5,d=p.EvpKDF=f.extend({cfg:f.extend({keySize:128/32,hasher:g,iterations:1}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,C){for(var b,x=this.cfg,_=x.hasher.create(),k=c.create(),E=k.words,A=x.keySize,T=x.iterations;E.length<A;){b&&_.update(b),b=_.update(m).finalize(C),_.reset();for(var D=1;D<T;D++)b=_.finalize(b),_.reset();k.concat(b)}return k.sigBytes=A*4,k}});i.EvpKDF=function(m,C,b){return d.create(b).compute(m,C)}}(),t.EvpKDF})}(jw)),jw.exports}var Iw={exports:{}},P3;function ta(){return P3||(P3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),mu())})(Pt,function(t){t.lib.Cipher||function(i){var l=t,f=l.lib,c=f.Base,p=f.WordArray,g=f.BufferedBlockAlgorithm,d=l.enc;d.Utf8;var m=d.Base64,C=l.algo,b=C.EvpKDF,x=f.Cipher=g.extend({cfg:c.extend(),createEncryptor:function(B,P){return this.create(this._ENC_XFORM_MODE,B,P)},createDecryptor:function(B,P){return this.create(this._DEC_XFORM_MODE,B,P)},init:function(B,P,U){this.cfg=this.cfg.extend(U),this._xformMode=B,this._key=P,this.reset()},reset:function(){g.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(P){return typeof P=="string"?Y:z}return function(P){return{encrypt:function(U,H,V){return B(H).encrypt(P,U,H,V)},decrypt:function(U,H,V){return B(H).decrypt(P,U,H,V)}}}}()});f.StreamCipher=x.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var _=l.mode={},k=f.BlockCipherMode=c.extend({createEncryptor:function(B,P){return this.Encryptor.create(B,P)},createDecryptor:function(B,P){return this.Decryptor.create(B,P)},init:function(B,P){this._cipher=B,this._iv=P}}),E=_.CBC=function(){var B=k.extend();B.Encryptor=B.extend({processBlock:function(U,H){var V=this._cipher,K=V.blockSize;P.call(this,U,H,K),V.encryptBlock(U,H),this._prevBlock=U.slice(H,H+K)}}),B.Decryptor=B.extend({processBlock:function(U,H){var V=this._cipher,K=V.blockSize,ee=U.slice(H,H+K);V.decryptBlock(U,H),P.call(this,U,H,K),this._prevBlock=ee}});function P(U,H,V){var K,ee=this._iv;ee?(K=ee,this._iv=i):K=this._prevBlock;for(var J=0;J<V;J++)U[H+J]^=K[J]}return B}(),A=l.pad={},T=A.Pkcs7={pad:function(B,P){for(var U=P*4,H=U-B.sigBytes%U,V=H<<24|H<<16|H<<8|H,K=[],ee=0;ee<H;ee+=4)K.push(V);var J=p.create(K,H);B.concat(J)},unpad:function(B){var P=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=P}};f.BlockCipher=x.extend({cfg:x.cfg.extend({mode:E,padding:T}),reset:function(){var B;x.reset.call(this);var P=this.cfg,U=P.iv,H=P.mode;this._xformMode==this._ENC_XFORM_MODE?B=H.createEncryptor:(B=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,U&&U.words):(this._mode=B.call(H,this,U&&U.words),this._mode.__creator=B)},_doProcessBlock:function(B,P){this._mode.processBlock(B,P)},_doFinalize:function(){var B,P=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(P.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),P.unpad(B)),B},blockSize:128/32});var D=f.CipherParams=c.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),R=l.format={},N=R.OpenSSL={stringify:function(B){var P,U=B.ciphertext,H=B.salt;return H?P=p.create([1398893684,1701076831]).concat(H).concat(U):P=U,P.toString(m)},parse:function(B){var P,U=m.parse(B),H=U.words;return H[0]==1398893684&&H[1]==1701076831&&(P=p.create(H.slice(2,4)),H.splice(0,4),U.sigBytes-=16),D.create({ciphertext:U,salt:P})}},z=f.SerializableCipher=c.extend({cfg:c.extend({format:N}),encrypt:function(B,P,U,H){H=this.cfg.extend(H);var V=B.createEncryptor(U,H),K=V.finalize(P),ee=V.cfg;return D.create({ciphertext:K,key:U,iv:ee.iv,algorithm:B,mode:ee.mode,padding:ee.padding,blockSize:B.blockSize,formatter:H.format})},decrypt:function(B,P,U,H){H=this.cfg.extend(H),P=this._parse(P,H.format);var V=B.createDecryptor(U,H).finalize(P.ciphertext);return V},_parse:function(B,P){return typeof B=="string"?P.parse(B,this):B}}),M=l.kdf={},I=M.OpenSSL={execute:function(B,P,U,H,V){if(H||(H=p.random(64/8)),V)var K=b.create({keySize:P+U,hasher:V}).compute(B,H);else var K=b.create({keySize:P+U}).compute(B,H);var ee=p.create(K.words.slice(P),U*4);return K.sigBytes=P*4,D.create({key:K,iv:ee,salt:H})}},Y=f.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:I}),encrypt:function(B,P,U,H){H=this.cfg.extend(H);var V=H.kdf.execute(U,B.keySize,B.ivSize,H.salt,H.hasher);H.iv=V.iv;var K=z.encrypt.call(this,B,P,V.key,H);return K.mixIn(V),K},decrypt:function(B,P,U,H){H=this.cfg.extend(H),P=this._parse(P,H.format);var V=H.kdf.execute(U,B.keySize,B.ivSize,P.salt,H.hasher);H.iv=V.iv;var K=z.decrypt.call(this,B,P,V.key,H);return K}})}()})}(Iw)),Iw.exports}var Hw={exports:{}},B3;function KV(){return B3||(B3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.CFB=function(){var i=t.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize;l.call(this,f,c,g,p),this._prevBlock=f.slice(c,c+g)}}),i.Decryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize,d=f.slice(c,c+g);l.call(this,f,c,g,p),this._prevBlock=d}});function l(f,c,p,g){var d,m=this._iv;m?(d=m.slice(0),this._iv=void 0):d=this._prevBlock,g.encryptBlock(d,0);for(var C=0;C<p;C++)f[c+C]^=d[C]}return i}(),t.mode.CFB})}(Hw)),Hw.exports}var Vw={exports:{}},L3;function WV(){return L3||(L3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.CTR=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize,d=this._iv,m=this._counter;d&&(m=this._counter=d.slice(0),this._iv=void 0);var C=m.slice(0);p.encryptBlock(C,0),m[g-1]=m[g-1]+1|0;for(var b=0;b<g;b++)f[c+b]^=C[b]}});return i.Decryptor=l,i}(),t.mode.CTR})}(Vw)),Vw.exports}var $w={exports:{}},z3;function QV(){return z3||(z3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.CTRGladman=function(){var i=t.lib.BlockCipherMode.extend();function l(p){if((p>>24&255)===255){var g=p>>16&255,d=p>>8&255,m=p&255;g===255?(g=0,d===255?(d=0,m===255?m=0:++m):++d):++g,p=0,p+=g<<16,p+=d<<8,p+=m}else p+=1<<24;return p}function f(p){return(p[0]=l(p[0]))===0&&(p[1]=l(p[1])),p}var c=i.Encryptor=i.extend({processBlock:function(p,g){var d=this._cipher,m=d.blockSize,C=this._iv,b=this._counter;C&&(b=this._counter=C.slice(0),this._iv=void 0),f(b);var x=b.slice(0);d.encryptBlock(x,0);for(var _=0;_<m;_++)p[g+_]^=x[_]}});return i.Decryptor=c,i}(),t.mode.CTRGladman})}($w)),$w.exports}var Yw={exports:{}},U3;function ZV(){return U3||(U3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.OFB=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var p=this._cipher,g=p.blockSize,d=this._iv,m=this._keystream;d&&(m=this._keystream=d.slice(0),this._iv=void 0),p.encryptBlock(m,0);for(var C=0;C<g;C++)f[c+C]^=m[C]}});return i.Decryptor=l,i}(),t.mode.OFB})}(Yw)),Yw.exports}var qw={exports:{}},j3;function XV(){return j3||(j3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.mode.ECB=function(){var i=t.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(l,f){this._cipher.encryptBlock(l,f)}}),i.Decryptor=i.extend({processBlock:function(l,f){this._cipher.decryptBlock(l,f)}}),i}(),t.mode.ECB})}(qw)),qw.exports}var Gw={exports:{}},I3;function JV(){return I3||(I3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.AnsiX923={pad:function(i,l){var f=i.sigBytes,c=l*4,p=c-f%c,g=f+p-1;i.clamp(),i.words[g>>>2]|=p<<24-g%4*8,i.sigBytes+=p},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Ansix923})}(Gw)),Gw.exports}var Kw={exports:{}},H3;function e$(){return H3||(H3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.Iso10126={pad:function(i,l){var f=l*4,c=f-i.sigBytes%f;i.concat(t.lib.WordArray.random(c-1)).concat(t.lib.WordArray.create([c<<24],1))},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Iso10126})}(Kw)),Kw.exports}var Ww={exports:{}},V3;function t$(){return V3||(V3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.Iso97971={pad:function(i,l){i.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(i,l)},unpad:function(i){t.pad.ZeroPadding.unpad(i),i.sigBytes--}},t.pad.Iso97971})}(Ww)),Ww.exports}var Qw={exports:{}},$3;function n$(){return $3||($3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.ZeroPadding={pad:function(i,l){var f=l*4;i.clamp(),i.sigBytes+=f-(i.sigBytes%f||f)},unpad:function(i){for(var l=i.words,f=i.sigBytes-1,f=i.sigBytes-1;f>=0;f--)if(l[f>>>2]>>>24-f%4*8&255){i.sigBytes=f+1;break}}},t.pad.ZeroPadding})}(Qw)),Qw.exports}var Zw={exports:{}},Y3;function r$(){return Y3||(Y3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Zw)),Zw.exports}var Xw={exports:{}},q3;function a$(){return q3||(q3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),ta())})(Pt,function(t){return function(i){var l=t,f=l.lib,c=f.CipherParams,p=l.enc,g=p.Hex,d=l.format;d.Hex={stringify:function(m){return m.ciphertext.toString(g)},parse:function(m){var C=g.parse(m);return c.create({ciphertext:C})}}}(),t.format.Hex})}(Xw)),Xw.exports}var Jw={exports:{}},G3;function i$(){return G3||(G3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo,p=[],g=[],d=[],m=[],C=[],b=[],x=[],_=[],k=[],E=[];(function(){for(var D=[],R=0;R<256;R++)R<128?D[R]=R<<1:D[R]=R<<1^283;for(var N=0,z=0,R=0;R<256;R++){var M=z^z<<1^z<<2^z<<3^z<<4;M=M>>>8^M&255^99,p[N]=M,g[M]=N;var I=D[N],Y=D[I],B=D[Y],P=D[M]*257^M*16843008;d[N]=P<<24|P>>>8,m[N]=P<<16|P>>>16,C[N]=P<<8|P>>>24,b[N]=P;var P=B*16843009^Y*65537^I*257^N*16843008;x[M]=P<<24|P>>>8,_[M]=P<<16|P>>>16,k[M]=P<<8|P>>>24,E[M]=P,N?(N=I^D[D[D[B^I]]],z^=D[D[z]]):N=z=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],T=c.AES=f.extend({_doReset:function(){var D;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var R=this._keyPriorReset=this._key,N=R.words,z=R.sigBytes/4,M=this._nRounds=z+6,I=(M+1)*4,Y=this._keySchedule=[],B=0;B<I;B++)B<z?Y[B]=N[B]:(D=Y[B-1],B%z?z>6&&B%z==4&&(D=p[D>>>24]<<24|p[D>>>16&255]<<16|p[D>>>8&255]<<8|p[D&255]):(D=D<<8|D>>>24,D=p[D>>>24]<<24|p[D>>>16&255]<<16|p[D>>>8&255]<<8|p[D&255],D^=A[B/z|0]<<24),Y[B]=Y[B-z]^D);for(var P=this._invKeySchedule=[],U=0;U<I;U++){var B=I-U;if(U%4)var D=Y[B];else var D=Y[B-4];U<4||B<=4?P[U]=D:P[U]=x[p[D>>>24]]^_[p[D>>>16&255]]^k[p[D>>>8&255]]^E[p[D&255]]}}},encryptBlock:function(D,R){this._doCryptBlock(D,R,this._keySchedule,d,m,C,b,p)},decryptBlock:function(D,R){var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N,this._doCryptBlock(D,R,this._invKeySchedule,x,_,k,E,g);var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N},_doCryptBlock:function(D,R,N,z,M,I,Y,B){for(var P=this._nRounds,U=D[R]^N[0],H=D[R+1]^N[1],V=D[R+2]^N[2],K=D[R+3]^N[3],ee=4,J=1;J<P;J++){var q=z[U>>>24]^M[H>>>16&255]^I[V>>>8&255]^Y[K&255]^N[ee++],te=z[H>>>24]^M[V>>>16&255]^I[K>>>8&255]^Y[U&255]^N[ee++],X=z[V>>>24]^M[K>>>16&255]^I[U>>>8&255]^Y[H&255]^N[ee++],$=z[K>>>24]^M[U>>>16&255]^I[H>>>8&255]^Y[V&255]^N[ee++];U=q,H=te,V=X,K=$}var q=(B[U>>>24]<<24|B[H>>>16&255]<<16|B[V>>>8&255]<<8|B[K&255])^N[ee++],te=(B[H>>>24]<<24|B[V>>>16&255]<<16|B[K>>>8&255]<<8|B[U&255])^N[ee++],X=(B[V>>>24]<<24|B[K>>>16&255]<<16|B[U>>>8&255]<<8|B[H&255])^N[ee++],$=(B[K>>>24]<<24|B[U>>>16&255]<<16|B[H>>>8&255]<<8|B[V&255])^N[ee++];D[R]=q,D[R+1]=te,D[R+2]=X,D[R+3]=$},keySize:256/32});i.AES=f._createHelper(T)}(),t.AES})}(Jw)),Jw.exports}var e_={exports:{}},K3;function o$(){return K3||(K3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.BlockCipher,p=i.algo,g=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=p.DES=c.extend({_doReset:function(){for(var A=this._key,T=A.words,D=[],R=0;R<56;R++){var N=g[R]-1;D[R]=T[N>>>5]>>>31-N%32&1}for(var z=this._subKeys=[],M=0;M<16;M++){for(var I=z[M]=[],Y=m[M],R=0;R<24;R++)I[R/6|0]|=D[(d[R]-1+Y)%28]<<31-R%6,I[4+(R/6|0)]|=D[28+(d[R+24]-1+Y)%28]<<31-R%6;I[0]=I[0]<<1|I[0]>>>31;for(var R=1;R<7;R++)I[R]=I[R]>>>(R-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var B=this._invSubKeys=[],R=0;R<16;R++)B[R]=z[15-R]},encryptBlock:function(A,T){this._doCryptBlock(A,T,this._subKeys)},decryptBlock:function(A,T){this._doCryptBlock(A,T,this._invSubKeys)},_doCryptBlock:function(A,T,D){this._lBlock=A[T],this._rBlock=A[T+1],_.call(this,4,252645135),_.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),_.call(this,1,1431655765);for(var R=0;R<16;R++){for(var N=D[R],z=this._lBlock,M=this._rBlock,I=0,Y=0;Y<8;Y++)I|=C[Y][((M^N[Y])&b[Y])>>>0];this._lBlock=M,this._rBlock=z^I}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,_.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),A[T]=this._lBlock,A[T+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function _(A,T){var D=(this._lBlock>>>A^this._rBlock)&T;this._rBlock^=D,this._lBlock^=D<<A}function k(A,T){var D=(this._rBlock>>>A^this._lBlock)&T;this._lBlock^=D,this._rBlock^=D<<A}i.DES=c._createHelper(x);var E=p.TripleDES=c.extend({_doReset:function(){var A=this._key,T=A.words;if(T.length!==2&&T.length!==4&&T.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var D=T.slice(0,2),R=T.length<4?T.slice(0,2):T.slice(2,4),N=T.length<6?T.slice(0,2):T.slice(4,6);this._des1=x.createEncryptor(f.create(D)),this._des2=x.createEncryptor(f.create(R)),this._des3=x.createEncryptor(f.create(N))},encryptBlock:function(A,T){this._des1.encryptBlock(A,T),this._des2.decryptBlock(A,T),this._des3.encryptBlock(A,T)},decryptBlock:function(A,T){this._des3.decryptBlock(A,T),this._des2.encryptBlock(A,T),this._des1.decryptBlock(A,T)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=c._createHelper(E)}(),t.TripleDES})}(e_)),e_.exports}var t_={exports:{}},W3;function l$(){return W3||(W3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,p=c.RC4=f.extend({_doReset:function(){for(var m=this._key,C=m.words,b=m.sigBytes,x=this._S=[],_=0;_<256;_++)x[_]=_;for(var _=0,k=0;_<256;_++){var E=_%b,A=C[E>>>2]>>>24-E%4*8&255;k=(k+x[_]+A)%256;var T=x[_];x[_]=x[k],x[k]=T}this._i=this._j=0},_doProcessBlock:function(m,C){m[C]^=g.call(this)},keySize:256/32,ivSize:0});function g(){for(var m=this._S,C=this._i,b=this._j,x=0,_=0;_<4;_++){C=(C+1)%256,b=(b+m[C])%256;var k=m[C];m[C]=m[b],m[b]=k,x|=m[(m[C]+m[b])%256]<<24-_*8}return this._i=C,this._j=b,x}i.RC4=f._createHelper(p);var d=c.RC4Drop=p.extend({cfg:p.cfg.extend({drop:192}),_doReset:function(){p._doReset.call(this);for(var m=this.cfg.drop;m>0;m--)g.call(this)}});i.RC4Drop=f._createHelper(d)}(),t.RC4})}(t_)),t_.exports}var n_={exports:{}},Q3;function s$(){return Q3||(Q3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,p=[],g=[],d=[],m=c.Rabbit=f.extend({_doReset:function(){for(var b=this._key.words,x=this.cfg.iv,_=0;_<4;_++)b[_]=(b[_]<<8|b[_]>>>24)&16711935|(b[_]<<24|b[_]>>>8)&4278255360;var k=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],E=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var _=0;_<4;_++)C.call(this);for(var _=0;_<8;_++)E[_]^=k[_+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;E[0]^=R,E[1]^=z,E[2]^=N,E[3]^=M,E[4]^=R,E[5]^=z,E[6]^=N,E[7]^=M;for(var _=0;_<4;_++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),p[0]=_[0]^_[5]>>>16^_[3]<<16,p[1]=_[2]^_[7]>>>16^_[5]<<16,p[2]=_[4]^_[1]>>>16^_[7]<<16,p[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)p[k]=(p[k]<<8|p[k]>>>24)&16711935|(p[k]<<24|p[k]>>>8)&4278255360,b[x+k]^=p[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)g[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<g[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<g[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<g[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<g[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<g[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<g[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<g[6]>>>0?1:0)|0,this._b=x[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.Rabbit=f._createHelper(m)}(),t.Rabbit})}(n_)),n_.exports}var r_={exports:{}},Z3;function u$(){return Z3||(Z3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,p=[],g=[],d=[],m=c.RabbitLegacy=f.extend({_doReset:function(){var b=this._key.words,x=this.cfg.iv,_=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],k=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var E=0;E<4;E++)C.call(this);for(var E=0;E<8;E++)k[E]^=_[E+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;k[0]^=R,k[1]^=z,k[2]^=N,k[3]^=M,k[4]^=R,k[5]^=z,k[6]^=N,k[7]^=M;for(var E=0;E<4;E++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),p[0]=_[0]^_[5]>>>16^_[3]<<16,p[1]=_[2]^_[7]>>>16^_[5]<<16,p[2]=_[4]^_[1]>>>16^_[7]<<16,p[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)p[k]=(p[k]<<8|p[k]>>>24)&16711935|(p[k]<<24|p[k]>>>8)&4278255360,b[x+k]^=p[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)g[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<g[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<g[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<g[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<g[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<g[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<g[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<g[6]>>>0?1:0)|0,this._b=x[7]>>>0<g[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.RabbitLegacy=f._createHelper(m)}(),t.RabbitLegacy})}(r_)),r_.exports}var a_={exports:{}},X3;function c$(){return X3||(X3=1,function(e,r){(function(t,i,l){e.exports=i(Qt(),jc(),Ic(),mu(),ta())})(Pt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo;const p=16,g=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var m={pbox:[],sbox:[]};function C(E,A){let T=A>>24&255,D=A>>16&255,R=A>>8&255,N=A&255,z=E.sbox[0][T]+E.sbox[1][D];return z=z^E.sbox[2][R],z=z+E.sbox[3][N],z}function b(E,A,T){let D=A,R=T,N;for(let z=0;z<p;++z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[p],D=D^E.pbox[p+1],{left:D,right:R}}function x(E,A,T){let D=A,R=T,N;for(let z=p+1;z>1;--z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[1],D=D^E.pbox[0],{left:D,right:R}}function _(E,A,T){for(let M=0;M<4;M++){E.sbox[M]=[];for(let I=0;I<256;I++)E.sbox[M][I]=d[M][I]}let D=0;for(let M=0;M<p+2;M++)E.pbox[M]=g[M]^A[D],D++,D>=T&&(D=0);let R=0,N=0,z=0;for(let M=0;M<p+2;M+=2)z=b(E,R,N),R=z.left,N=z.right,E.pbox[M]=R,E.pbox[M+1]=N;for(let M=0;M<4;M++)for(let I=0;I<256;I+=2)z=b(E,R,N),R=z.left,N=z.right,E.sbox[M][I]=R,E.sbox[M][I+1]=N;return!0}var k=c.Blowfish=f.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,T=E.sigBytes/4;_(m,A,T)}},encryptBlock:function(E,A){var T=b(m,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},decryptBlock:function(E,A){var T=x(m,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=f._createHelper(k)}(),t.Blowfish})}(a_)),a_.exports}(function(e,r){(function(t,i,l){e.exports=i(Qt(),by(),jV(),IV(),jc(),HV(),Ic(),S3(),Rw(),VV(),T3(),$V(),YV(),qV(),zw(),GV(),mu(),ta(),KV(),WV(),QV(),ZV(),XV(),JV(),e$(),t$(),n$(),r$(),a$(),i$(),o$(),l$(),s$(),u$(),c$())})(Pt,function(t){return t})})(v3);const fs=v3.exports;class f${constructor(){Xf(this,"salt","SzlDJd#4202")}encrypt(r){if(!r)return;const t=typeof r=="string"?r:JSON.stringify(r);return fs.AES.encrypt(t,this.salt).toString()}decrypt(r){if(r)return fs.AES.decrypt(r,this.salt).toString(fs.enc.Utf8)}}class d${constructor(r){Xf(this,"salt");this.salt=r}encrypt(r){return fs.HmacSHA512(r,this.salt).toString()}}const Gn=class{static rotateLeft(r,t){return r<<t|r>>>32-t}static FFj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|r&i|t&i}static GGj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|~r&i}static P0(r){return r^Gn.rotateLeft(r,9)^Gn.rotateLeft(r,17)}static P1(r){return r^Gn.rotateLeft(r,15)^Gn.rotateLeft(r,23)}static pad(r){const t=r.length*8,i=(448-(t+1)%512+512)%512,l=(t+1+i+64)/8,f=new Uint8Array(l);f.set(r),f[r.length]=128;const c=new Uint8Array(8);return new DataView(c.buffer).setBigUint64(0,BigInt(t),!1),f.set(c,l-8),f}static processBlock(r,t){const i=new Uint32Array(68),l=new Uint32Array(64);for(let x=0;x<16;x++){const _=new DataView(r.buffer,r.byteOffset+x*4,4);i[x]=_.getUint32(0,!1)}for(let x=16;x<68;x++)i[x]=Gn.P1(i[x-16]^i[x-9]^Gn.rotateLeft(i[x-3],15))^Gn.rotateLeft(i[x-13],7)^i[x-6];for(let x=0;x<64;x++)l[x]=i[x]^i[x+4];let f=t[0],c=t[1],p=t[2],g=t[3],d=t[4],m=t[5],C=t[6],b=t[7];for(let x=0;x<64;x++){const _=Gn.rotateLeft(Gn.rotateLeft(f,12)+d+Gn.rotateLeft(Gn.T[x],x),7),k=_^Gn.rotateLeft(f,12),E=Gn.FFj(f,c,p,x)+g+k+l[x],A=Gn.GGj(d,m,C,x)+b+_+i[x];g=p,p=Gn.rotateLeft(c,9),c=f,f=E,b=C,C=Gn.rotateLeft(m,19),m=d,d=Gn.P0(A)}t[0]^=f,t[1]^=c,t[2]^=p,t[3]^=g,t[4]^=d,t[5]^=m,t[6]^=C,t[7]^=b}static hash(r){const t=Gn.pad(r),i=new Uint32Array(Gn.IV);for(let c=0;c<t.length;c+=64){const p=t.slice(c,c+64);Gn.processBlock(p,i)}const l=new Uint8Array(32),f=new DataView(l.buffer);for(let c=0;c<8;c++)f.setUint32(c*4,i[c],!1);return l}static hashHex(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=Gn.hash(t);return Array.from(i).map(l=>l.toString(16).padStart(2,"0")).join("")}};let Hc=Gn;Xf(Hc,"IV",new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214])),Xf(Hc,"T",new Uint32Array(64)),(()=>{for(let r=0;r<16;r++)Gn.T[r]=2043430169;for(let r=16;r<64;r++)Gn.T[r]=2055708042})();class i_{constructor(r){Xf(this,"key");this.key=typeof r=="string"?new TextEncoder().encode(r):r}digest(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=64;let l;if(this.key.length>i)l=Hc.hash(this.key);else{l=new Uint8Array(i),l.set(this.key);for(let C=this.key.length;C<i;C++)l[C]=0}const f=new Uint8Array(i),c=new Uint8Array(i);for(let C=0;C<i;C++)f[C]=l[C]^54,c[C]=l[C]^92;const p=new Uint8Array(f.length+t.length);p.set(f),p.set(t,f.length);const g=Hc.hash(p),d=new Uint8Array(c.length+g.length);return d.set(c),d.set(g,c.length),Hc.hash(d)}digestHex(r){const t=this.digest(r);return Array.from(t).map(i=>i.toString(16).padStart(2,"0")).join("")}static hmac(r,t){return new i_(r).digestHex(t)}}function h$(e){const{imgKey:r="Img"}=e,{data:t,loading:i,error:l,refresh:f}=bb.useRequest(e.request,{debounceWait:300,ready:!0,retryCount:3});return{data:t,renderCaptcha:()=>l?Q(me.Button,{type:"link",title:"验证码加载失败,请重试",icon:Q(K7,{}),onClick:f,children:"点击重试"}):Q("img",{src:il.get(t,[r]),style:{height:"100%",objectFit:"contain",cursor:"pointer"},onClick:f}),loading:i,refresh:f}}function p$(e){const{modal:r,message:t}=me.App.useApp(),[i]=me.Form.useForm(),l=[{dataIndex:"Password",title:"新密码",valueType:"password",valueProps:{placeholder:"请输入新密码"},formItemProps:{rules:[{required:!0,message:"请输入新密码"},p3.passwordNewRule]}},{dataIndex:"NewPassword",title:"确认密码",valueType:"password",valueProps:{placeholder:"请输入确认密码"},formItemProps:{rules:[{required:!0,message:"请输入确认密码"},({getFieldValue:c})=>({validator(p,g){return!g||c("Password")===g?Promise.resolve():Promise.reject(new Error("两次密码输入不一致"))}})]}}];return{handleChangePwd:bb.useLockFn(async(c,p)=>{const g=e==null?void 0:e.modalProps;let d;g!=null&&g.width&&(typeof g.width=="string"||typeof g.width=="number")&&(d=g.width),await r.confirm({title:p||"修改密码",icon:null,wrapClassName:"confirmWrapper",content:Q(y2,{items:l,formProps:{form:i,preserve:!1,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}}}),onOk(){return new Promise((m,C)=>{i.validateFields().then(b=>{c({values:b,resolve:m,reject:C})}).catch(b=>{C(b)})})},...g,width:d})})}}const v$="SzlDJd#4202";function m$(e){const[r,t]=W.useState(null);W.useEffect(()=>{i()},[]);const i=()=>{const l=fs.AES.decrypt(e,v$);try{const f=JSON.parse(l.toString(fs.enc.Utf8));t(f)}catch{}};return r}function g$(e){const{secertKey:r,storageKey:t}=e;return{onParse:f=>{const c=localStorage.getItem(t);if(!c){f(null);return}const p=fs.AES.decrypt(c,r);try{const g=JSON.parse(p.toString(fs.enc.Utf8));f(g)}catch{f(null)}},onSave:f=>{const c=fs.AES.encrypt(JSON.stringify({...f,timestamp:Date.now()}),r);B8(t,c.toString())}}}function y$(e){const{dataSource:r,rowKey:t,defaultRows:i=[]}=e,l=W.useRef(i),[f,c]=W.useState([]),[p,g]=W.useState([]);return W.useEffect(()=>{if(r&&r.length>0){const d=[...r,...l.current];l.current=d.filter((m,C,b)=>b.findIndex(x=>m[t]===x[t])===C)}},[r,t]),W.useEffect(()=>{if(l.current.length>0){let d=[];p.forEach(m=>{const C=l.current.find(b=>b[t]===m);C&&!d.map(b=>b[t]).includes(m)&&d.push(C)}),c(d)}},[l.current,p,t]),{selectedRows:f,selectedKeys:p,setSelectedKeys:g}}function x$({labelSpan:e=3,valueSpan:r=9,imgWidth:t=93,imgHeight:i=93,layoutType:l="row"}){const{message:f}=me.App.useApp(),c=(x,_)=>{try{const k=JSON.parse((x==null?void 0:x.attrvalue)||"{}")||"";return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Q("span",{style:{wordWrap:"break-word"},children:k==null?void 0:k.typename})]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:x==null?void 0:x.attrvalue})]})]},x==null?void 0:x.attrid)}catch{return f.error("房型数据格式错误,转json失败"),null}},p=(x,_)=>{if(typeof(x==null?void 0:x.attrvalue)!="string")return;const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("div",{style:{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:4},children:Q(me.Image,{style:{objectFit:"cover",padding:5},width:t,height:i,src:A==null?void 0:A.FilePath,alt:(x==null?void 0:x.attrname)||"-"})},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},g=(x,_)=>{const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("a",{onClick:()=>window.open(A==null?void 0:A.FilePath),children:(A==null?void 0:A.FileName)||"-"},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},d=(x,_,k,E)=>Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Be("span",{style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word",minWidth:0,flex:1},children:[k||""," ",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})}),l==="row"&&Be(en,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Be(me.Col,{span:r,style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word"},children:[k||"",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})]},x==null?void 0:x.attrid),m=({detailList:x=[],attrList:_=[],universalHeader:k=[],operationColumn:E,langConfig:A=[]})=>{var R;let T=[];k!=null&&k.length?T=k==null?void 0:k.map(N=>({title:N==null?void 0:N["header-name"],dataIndex:N==null?void 0:N["header-attribute-id"],key:N==null?void 0:N["header-attribute-id"],width:N==null?void 0:N["header-width"],render:(z,M)=>Ji(A||[],z)})):T=(R=_==null?void 0:_[0])==null?void 0:R.map(N=>{var z;return{title:N==null?void 0:N.attrname,dataIndex:N==null?void 0:N.attrid,key:N==null?void 0:N.attrid,width:((z=N==null?void 0:N.json)==null?void 0:z["input-width"])||200,render:(M,I)=>Ji(A||[],M)}}),E&&(T!=null&&T.length)&&T.push(E);let D=x;return _!=null&&_.length&&(D=_==null?void 0:_.map((N,z)=>({jxqyglbh:z,...C(N)}))),Q(me.Flex,{align:"center",style:{width:"100%"},children:Q(me.Table,{style:{width:"100%"},columns:T,scroll:{x:"max-content"},size:"small",rowKey:"jxqyglbh",onRow:tD,dataSource:D,pagination:!1})})},C=x=>x==null?void 0:x.reduce((_,k)=>(_[k==null?void 0:k.attrid]=k==null?void 0:k.attrvalue,_),{});return{renderDetail:bb.useMemoizedFn(({attrList:x=[],detailList:_=[],span:k=24,type:E="form",universalHeader:A=[],beforeExtraValue:T="",operationColumn:D,langConfig:R=[]})=>E==="table"?Q(W.Fragment,{children:m({detailList:_,attrList:x,universalHeader:A,operationColumn:D})}):Q(me.Row,{gutter:[10,8],children:x==null?void 0:x.map(N=>{if((N==null?void 0:N.attrtype)!==0)return Q(W.Fragment,{},N==null?void 0:N.attrid);const z=N.info_base64===1?uu(Zh(N.info)):uu(N.info);return(z==null?void 0:z.input)==="image"?p(N,k):["file","audio","video"].includes(z==null?void 0:z.input)?g(N,k):(z==null?void 0:z.input)==="radio-card"?c(N,k):d(N,k,T,R)})}))}}Dt.AES=f$,Dt.AuthButton=j6,Dt.BackHeader=c9,Dt.CoralButton=XB,Dt.CreateForm=y2,Dt.CustomPagination=tL,Dt.DynamicForm=RL,Dt.DynamicFormMobile=MV,Dt.EditTable=ZB,Dt.FormRules=PV,Dt.HmacSHA512=d$,Dt.HmacSM3=i_,Dt.LoopSlide=JB,Dt.SearchTable=GB,Dt.UploadFile=o6,Dt.WorkFlowNode=I6,Dt.compressionImage=a6,Dt.download=gL,Dt.fileType=m9,Dt.method=lL,Dt.showWorkFlow=eL,Dt.szxkFunc=dL,Dt.useCaptcha=h$,Dt.useChangePwd=p$,Dt.useConfig=m$,Dt.useDetailRender=x$,Dt.useRemember=g$,Dt.useRowSelection=y$,Dt.useUniversalTable=$2,Dt.utils=E9,Dt.verfyCode=LV,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})});