ados-rcm 1.1.569 → 1.1.570
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.
package/dist/index.cjs.js
CHANGED
@@ -15,11 +15,11 @@
|
|
15
15
|
*
|
16
16
|
* This source code is licensed under the MIT license found in the
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
18
|
-
*/var c0;function bT(){return c0||(c0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),w=Symbol.iterator,T="@@iterator";function _(ee){if(ee===null||typeof ee!="object")return null;var be=w&&ee[w]||ee[T];return typeof be=="function"?be:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(ee){{for(var be=arguments.length,ze=new Array(be>1?be-1:0),Tt=1;Tt<be;Tt++)ze[Tt-1]=arguments[Tt];D("error",ee,ze)}}function D(ee,be,ze){{var Tt=A.ReactDebugCurrentFrame,jt=Tt.getStackAddendum();jt!==""&&(be+="%s",ze=ze.concat([jt]));var Dt=ze.map(function(er){return String(er)});Dt.unshift("Warning: "+be),Function.prototype.apply.call(console[ee],console,Dt)}}var I=!1,B=!1,F=!1,j=!1,z=!1,G;G=Symbol.for("react.module.reference");function pe(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===n||ee===i||z||ee===o||ee===h||ee===p||j||ee===v||I||B||F||typeof ee=="object"&&ee!==null&&(ee.$$typeof===g||ee.$$typeof===m||ee.$$typeof===a||ee.$$typeof===c||ee.$$typeof===d||ee.$$typeof===G||ee.getModuleId!==void 0))}function P(ee,be,ze){var Tt=ee.displayName;if(Tt)return Tt;var jt=be.displayName||be.name||"";return jt!==""?ze+"("+jt+")":ze}function U(ee){return ee.displayName||"Context"}function V(ee){if(ee==null)return null;if(typeof ee.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ee=="function")return ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if(typeof ee=="object")switch(ee.$$typeof){case c:var be=ee;return U(be)+".Consumer";case a:var ze=ee;return U(ze._context)+".Provider";case d:return P(ee,ee.render,"ForwardRef");case m:var Tt=ee.displayName||null;return Tt!==null?Tt:V(ee.type)||"Memo";case g:{var jt=ee,Dt=jt._payload,er=jt._init;try{return V(er(Dt))}catch{return null}}}return null}var Q=Object.assign,se=0,ue,oe,ae,ge,re,ie,he;function Se(){}Se.__reactDisabledLog=!0;function Le(){{if(se===0){ue=console.log,oe=console.info,ae=console.warn,ge=console.error,re=console.group,ie=console.groupCollapsed,he=console.groupEnd;var ee={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:ee,log:ee,warn:ee,error:ee,group:ee,groupCollapsed:ee,groupEnd:ee})}se++}}function ne(){{if(se--,se===0){var ee={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},ee,{value:ue}),info:Q({},ee,{value:oe}),warn:Q({},ee,{value:ae}),error:Q({},ee,{value:ge}),group:Q({},ee,{value:re}),groupCollapsed:Q({},ee,{value:ie}),groupEnd:Q({},ee,{value:he})})}se<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=A.ReactCurrentDispatcher,ke;function
|
19
|
-
`+ke+ee}}var
|
18
|
+
*/var c0;function bT(){return c0||(c0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),w=Symbol.iterator,T="@@iterator";function _(ee){if(ee===null||typeof ee!="object")return null;var be=w&&ee[w]||ee[T];return typeof be=="function"?be:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(ee){{for(var be=arguments.length,ze=new Array(be>1?be-1:0),Tt=1;Tt<be;Tt++)ze[Tt-1]=arguments[Tt];D("error",ee,ze)}}function D(ee,be,ze){{var Tt=A.ReactDebugCurrentFrame,jt=Tt.getStackAddendum();jt!==""&&(be+="%s",ze=ze.concat([jt]));var Dt=ze.map(function(er){return String(er)});Dt.unshift("Warning: "+be),Function.prototype.apply.call(console[ee],console,Dt)}}var I=!1,B=!1,F=!1,j=!1,z=!1,G;G=Symbol.for("react.module.reference");function pe(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===n||ee===i||z||ee===o||ee===h||ee===p||j||ee===v||I||B||F||typeof ee=="object"&&ee!==null&&(ee.$$typeof===g||ee.$$typeof===m||ee.$$typeof===a||ee.$$typeof===c||ee.$$typeof===d||ee.$$typeof===G||ee.getModuleId!==void 0))}function P(ee,be,ze){var Tt=ee.displayName;if(Tt)return Tt;var jt=be.displayName||be.name||"";return jt!==""?ze+"("+jt+")":ze}function U(ee){return ee.displayName||"Context"}function V(ee){if(ee==null)return null;if(typeof ee.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ee=="function")return ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if(typeof ee=="object")switch(ee.$$typeof){case c:var be=ee;return U(be)+".Consumer";case a:var ze=ee;return U(ze._context)+".Provider";case d:return P(ee,ee.render,"ForwardRef");case m:var Tt=ee.displayName||null;return Tt!==null?Tt:V(ee.type)||"Memo";case g:{var jt=ee,Dt=jt._payload,er=jt._init;try{return V(er(Dt))}catch{return null}}}return null}var Q=Object.assign,se=0,ue,oe,ae,ge,re,ie,he;function Se(){}Se.__reactDisabledLog=!0;function Le(){{if(se===0){ue=console.log,oe=console.info,ae=console.warn,ge=console.error,re=console.group,ie=console.groupCollapsed,he=console.groupEnd;var ee={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:ee,log:ee,warn:ee,error:ee,group:ee,groupCollapsed:ee,groupEnd:ee})}se++}}function ne(){{if(se--,se===0){var ee={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},ee,{value:ue}),info:Q({},ee,{value:oe}),warn:Q({},ee,{value:ae}),error:Q({},ee,{value:ge}),group:Q({},ee,{value:re}),groupCollapsed:Q({},ee,{value:ie}),groupEnd:Q({},ee,{value:he})})}se<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ve=A.ReactCurrentDispatcher,ke;function De(ee,be,ze){{if(ke===void 0)try{throw Error()}catch(jt){var Tt=jt.stack.trim().match(/\n( *(at )?)/);ke=Tt&&Tt[1]||""}return`
|
19
|
+
`+ke+ee}}var Oe=!1,we;{var _e=typeof WeakMap=="function"?WeakMap:Map;we=new _e}function Ae(ee,be){if(!ee||Oe)return"";{var ze=we.get(ee);if(ze!==void 0)return ze}var Tt;Oe=!0;var jt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Dt;Dt=ve.current,ve.current=null,Le();try{if(be){var er=function(){throw Error()};if(Object.defineProperty(er.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(er,[])}catch(lr){Tt=lr}Reflect.construct(ee,[],er)}else{try{er.call()}catch(lr){Tt=lr}ee.call(er.prototype)}}else{try{throw Error()}catch(lr){Tt=lr}ee()}}catch(lr){if(lr&&Tt&&typeof lr.stack=="string"){for(var Jt=lr.stack.split(`
|
20
20
|
`),kt=Tt.stack.split(`
|
21
21
|
`),xe=Jt.length-1,ot=kt.length-1;xe>=1&&ot>=0&&Jt[xe]!==kt[ot];)ot--;for(;xe>=1&&ot>=0;xe--,ot--)if(Jt[xe]!==kt[ot]){if(xe!==1||ot!==1)do if(xe--,ot--,ot<0||Jt[xe]!==kt[ot]){var wt=`
|
22
|
-
`+Jt[xe].replace(" at new "," at ");return ee.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",ee.displayName)),typeof ee=="function"&&we.set(ee,wt),wt}while(xe>=1&&ot>=0);break}}}finally{
|
22
|
+
`+Jt[xe].replace(" at new "," at ");return ee.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",ee.displayName)),typeof ee=="function"&&we.set(ee,wt),wt}while(xe>=1&&ot>=0);break}}}finally{Oe=!1,ve.current=Dt,ne(),Error.prepareStackTrace=jt}var yr=ee?ee.displayName||ee.name:"",Br=yr?De(yr):"";return typeof ee=="function"&&we.set(ee,Br),Br}function $e(ee,be,ze){return Ae(ee,!1)}function Fe(ee){var be=ee.prototype;return!!(be&&be.isReactComponent)}function Qe(ee,be,ze){if(ee==null)return"";if(typeof ee=="function")return Ae(ee,Fe(ee));if(typeof ee=="string")return De(ee);switch(ee){case h:return De("Suspense");case p:return De("SuspenseList")}if(typeof ee=="object")switch(ee.$$typeof){case d:return $e(ee.render);case m:return Qe(ee.type,be,ze);case g:{var Tt=ee,jt=Tt._payload,Dt=Tt._init;try{return Qe(Dt(jt),be,ze)}catch{}}}return""}var Ue=Object.prototype.hasOwnProperty,et={},ct=A.ReactDebugCurrentFrame;function Ct(ee){if(ee){var be=ee._owner,ze=Qe(ee.type,ee._source,be?be.type:null);ct.setExtraStackFrame(ze)}else ct.setExtraStackFrame(null)}function It(ee,be,ze,Tt,jt){{var Dt=Function.call.bind(Ue);for(var er in ee)if(Dt(ee,er)){var Jt=void 0;try{if(typeof ee[er]!="function"){var kt=Error((Tt||"React class")+": "+ze+" type `"+er+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ee[er]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw kt.name="Invariant Violation",kt}Jt=ee[er](be,er,Tt,ze,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(xe){Jt=xe}Jt&&!(Jt instanceof Error)&&(Ct(jt),R("%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).",Tt||"React class",ze,er,typeof Jt),Ct(null)),Jt instanceof Error&&!(Jt.message in et)&&(et[Jt.message]=!0,Ct(jt),R("Failed %s type: %s",ze,Jt.message),Ct(null))}}}var Je=Array.isArray;function Ke(ee){return Je(ee)}function ft(ee){{var be=typeof Symbol=="function"&&Symbol.toStringTag,ze=be&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return ze}}function gt(ee){try{return Pe(ee),!1}catch{return!0}}function Pe(ee){return""+ee}function Xe(ee){if(gt(ee))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(ee)),Pe(ee)}var vt=A.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},xt,Lt;function Qt(ee){if(Ue.call(ee,"ref")){var be=Object.getOwnPropertyDescriptor(ee,"ref").get;if(be&&be.isReactWarning)return!1}return ee.ref!==void 0}function Ut(ee){if(Ue.call(ee,"key")){var be=Object.getOwnPropertyDescriptor(ee,"key").get;if(be&&be.isReactWarning)return!1}return ee.key!==void 0}function fr(ee,be){typeof ee.ref=="string"&&vt.current}function hr(ee,be){{var ze=function(){xt||(xt=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};ze.isReactWarning=!0,Object.defineProperty(ee,"key",{get:ze,configurable:!0})}}function cr(ee,be){{var ze=function(){Lt||(Lt=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",be))};ze.isReactWarning=!0,Object.defineProperty(ee,"ref",{get:ze,configurable:!0})}}var Te=function(ee,be,ze,Tt,jt,Dt,er){var Jt={$$typeof:e,type:ee,key:be,ref:ze,props:er,_owner:Dt};return Jt._store={},Object.defineProperty(Jt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Jt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Tt}),Object.defineProperty(Jt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:jt}),Object.freeze&&(Object.freeze(Jt.props),Object.freeze(Jt)),Jt};function le(ee,be,ze,Tt,jt){{var Dt,er={},Jt=null,kt=null;ze!==void 0&&(Xe(ze),Jt=""+ze),Ut(be)&&(Xe(be.key),Jt=""+be.key),Qt(be)&&(kt=be.ref,fr(be,jt));for(Dt in be)Ue.call(be,Dt)&&!Nt.hasOwnProperty(Dt)&&(er[Dt]=be[Dt]);if(ee&&ee.defaultProps){var xe=ee.defaultProps;for(Dt in xe)er[Dt]===void 0&&(er[Dt]=xe[Dt])}if(Jt||kt){var ot=typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee;Jt&&hr(er,ot),kt&&cr(er,ot)}return Te(ee,Jt,kt,jt,Tt,vt.current,er)}}var st=A.ReactCurrentOwner,yt=A.ReactDebugCurrentFrame;function nt(ee){if(ee){var be=ee._owner,ze=Qe(ee.type,ee._source,be?be.type:null);yt.setExtraStackFrame(ze)}else yt.setExtraStackFrame(null)}var pt;pt=!1;function ht(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function Ft(){{if(st.current){var ee=V(st.current.type);if(ee)return`
|
23
23
|
|
24
24
|
Check the render method of \``+ee+"`."}return""}}function Ve(ee){return""}var at={};function lt(ee){{var be=Ft();if(!be){var ze=typeof ee=="string"?ee:ee.displayName||ee.name;ze&&(be=`
|
25
25
|
|
@@ -35,12 +35,12 @@ React keys must be passed directly to JSX without using spread:
|
|
35
35
|
* Released under MIT license <https://lodash.com/license>
|
36
36
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
37
37
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
38
|
-
*/var wT=lh.exports,d0;function CT(){return d0||(d0=1,function(r,e){(function(){var t,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",m=1,g=2,v=4,w=1,T=2,_=1,A=2,R=4,D=8,I=16,B=32,F=64,j=128,z=256,G=512,pe=30,P="...",U=800,V=16,Q=1,se=2,ue=3,oe=1/0,ae=9007199254740991,ge=17976931348623157e292,re=NaN,ie=4294967295,he=ie-1,Se=ie>>>1,Le=[["ary",j],["bind",_],["bindKey",A],["curry",D],["curryRight",I],["flip",G],["partial",B],["partialRight",F],["rearg",z]],ne="[object Arguments]",ve="[object Array]",ke="[object AsyncFunction]",Pe="[object Boolean]",De="[object Date]",we="[object DOMException]",_e="[object Error]",Ae="[object Function]",$e="[object GeneratorFunction]",Fe="[object Map]",Qe="[object Number]",Ue="[object Null]",et="[object Object]",ct="[object Promise]",Ct="[object Proxy]",It="[object RegExp]",Je="[object Set]",Ke="[object String]",ft="[object Symbol]",gt="[object Undefined]",Ne="[object WeakMap]",Xe="[object WeakSet]",vt="[object ArrayBuffer]",Nt="[object DataView]",xt="[object Float32Array]",Lt="[object Float64Array]",Qt="[object Int8Array]",Ut="[object Int16Array]",fr="[object Int32Array]",hr="[object Uint8Array]",cr="[object Uint8ClampedArray]",Te="[object Uint16Array]",le="[object Uint32Array]",st=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pt=/&(?:amp|lt|gt|quot|#39);/g,ht=/[&<>"']/g,Ft=RegExp(pt.source),Ve=RegExp(ht.source),at=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,_t=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,Wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Yt.source),zt=/^\s+/,xr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ye=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/[()=,{}\[\]\/\s]/,Tt=/\\(\\)?/g,jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,er=/^[-+]0x[0-9a-f]+$/i,Jt=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yr=/($^)/,Br=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",br="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",sn="\\u20d0-\\u20ff",Pn=br+tn+sn,Hr="\\u2700-\\u27bf",rn="a-z\\xdf-\\xf6\\xf8-\\xff",kn="\\xac\\xb1\\xd7\\xf7",Bn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_o="\\u2000-\\u206f",Do=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oo="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Fn=kn+Bn+_o+Do,Cn="['’]",oo="["+lr+"]",mn="["+Fn+"]",An="["+Pn+"]",k="\\d+",$="["+Hr+"]",X="["+rn+"]",ce="[^"+lr+Fn+k+Hr+rn+Oo+"]",qe="\\ud83c[\\udffb-\\udfff]",Be="(?:"+An+"|"+qe+")",tt="[^"+lr+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+Oo+"]",Vt="\\u200d",Rr="(?:"+X+"|"+ce+")",an="(?:"+Gt+"|"+ce+")",In="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Mn="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",ho=Be+"?",Zn="["+zn+"]?",No="(?:"+Vt+"(?:"+[tt,Et,Ht].join("|")+")"+Zn+ho+")*",dn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ao="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kn=Zn+ho+No,io="(?:"+[$,Et,Ht].join("|")+")"+Kn,Pi="(?:"+[tt+An+"?",An,Et,Ht,oo].join("|")+")",yi=RegExp(Cn,"g"),bi=RegExp(An,"g"),Hn=RegExp(qe+"(?="+qe+")|"+Pi+Kn,"g"),Bi=RegExp([Gt+"?"+X+"+"+In+"(?="+[mn,Gt,"$"].join("|")+")",an+"+"+Mn+"(?="+[mn,Gt+Rr,"$"].join("|")+")",Gt+"?"+Rr+"+"+In,Gt+"+"+Mn,Ao,dn,k,io].join("|"),"g"),so=RegExp("["+Vt+lr+Pn+zn+"]"),ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ti=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zr=-1,Ir={};Ir[xt]=Ir[Lt]=Ir[Qt]=Ir[Ut]=Ir[fr]=Ir[hr]=Ir[cr]=Ir[Te]=Ir[le]=!0,Ir[ne]=Ir[ve]=Ir[vt]=Ir[Pe]=Ir[Nt]=Ir[De]=Ir[_e]=Ir[Ae]=Ir[Fe]=Ir[Qe]=Ir[et]=Ir[It]=Ir[Je]=Ir[Ke]=Ir[Ne]=!1;var Fr={};Fr[ne]=Fr[ve]=Fr[vt]=Fr[Nt]=Fr[Pe]=Fr[De]=Fr[xt]=Fr[Lt]=Fr[Qt]=Fr[Ut]=Fr[fr]=Fr[Fe]=Fr[Qe]=Fr[et]=Fr[It]=Fr[Je]=Fr[Ke]=Fr[ft]=Fr[hr]=Fr[cr]=Fr[Te]=Fr[le]=!0,Fr[_e]=Fr[Ae]=Fr[Ne]=!1;var O={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J={"&":"&","<":"<",">":">",'"':""","'":"'"},Ce={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},or=parseFloat,Kt=parseInt,_r=typeof Di=="object"&&Di&&Di.Object===Object&&Di,kr=typeof self=="object"&&self&&self.Object===Object&&self,Cr=_r||kr||Function("return this")(),Mr=e&&!e.nodeType&&e,fn=Mr&&!0&&r&&!r.nodeType&&r,$n=fn&&fn.exports===Mr,nn=$n&&_r.process,Vr=function(){try{var Ie=fn&&fn.require&&fn.require("util").types;return Ie||nn&&nn.binding&&nn.binding("util")}catch{}}(),hn=Vr&&Vr.isArrayBuffer,po=Vr&&Vr.isDate,Eo=Vr&&Vr.isMap,Xn=Vr&&Vr.isRegExp,Fi=Vr&&Vr.isSet,ri=Vr&&Vr.isTypedArray;function vn(Ie,it,Ze){switch(Ze.length){case 0:return Ie.call(it);case 1:return Ie.call(it,Ze[0]);case 2:return Ie.call(it,Ze[0],Ze[1]);case 3:return Ie.call(it,Ze[0],Ze[1],Ze[2])}return Ie.apply(it,Ze)}function Ns(Ie,it,Ze,$t){for(var dr=-1,$r=Ie==null?0:Ie.length;++dr<$r;){var Ln=Ie[dr];it($t,Ln,Ze(Ln),Ie)}return $t}function Jn(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length;++Ze<$t&&it(Ie[Ze],Ze,Ie)!==!1;);return Ie}function Ul(Ie,it){for(var Ze=Ie==null?0:Ie.length;Ze--&&it(Ie[Ze],Ze,Ie)!==!1;);return Ie}function al(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length;++Ze<$t;)if(!it(Ie[Ze],Ze,Ie))return!1;return!0}function ni(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length,dr=0,$r=[];++Ze<$t;){var Ln=Ie[Ze];it(Ln,Ze,Ie)&&($r[dr++]=Ln)}return $r}function ji(Ie,it){var Ze=Ie==null?0:Ie.length;return!!Ze&&zi(Ie,it,0)>-1}function Qn(Ie,it,Ze){for(var $t=-1,dr=Ie==null?0:Ie.length;++$t<dr;)if(Ze(it,Ie[$t]))return!0;return!1}function ln(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length,dr=Array($t);++Ze<$t;)dr[Ze]=it(Ie[Ze],Ze,Ie);return dr}function Po(Ie,it){for(var Ze=-1,$t=it.length,dr=Ie.length;++Ze<$t;)Ie[dr+Ze]=it[Ze];return Ie}function ll(Ie,it,Ze,$t){var dr=-1,$r=Ie==null?0:Ie.length;for($t&&$r&&(Ze=Ie[++dr]);++dr<$r;)Ze=it(Ze,Ie[dr],dr,Ie);return Ze}function Wl(Ie,it,Ze,$t){var dr=Ie==null?0:Ie.length;for($t&&dr&&(Ze=Ie[--dr]);dr--;)Ze=it(Ze,Ie[dr],dr,Ie);return Ze}function as(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length;++Ze<$t;)if(it(Ie[Ze],Ze,Ie))return!0;return!1}var Vl=M("length");function Gl(Ie){return Ie.split("")}function wa(Ie){return Ie.match(be)||[]}function Ps(Ie,it,Ze){var $t;return Ze(Ie,function(dr,$r,Ln){if(it(dr,$r,Ln))return $t=$r,!1}),$t}function Bs(Ie,it,Ze,$t){for(var dr=Ie.length,$r=Ze+($t?1:-1);$t?$r--:++$r<dr;)if(it(Ie[$r],$r,Ie))return $r;return-1}function zi(Ie,it,Ze){return it===it?Rf(Ie,it,Ze):Bs(Ie,Ca,Ze)}function Yl(Ie,it,Ze,$t){for(var dr=Ze-1,$r=Ie.length;++dr<$r;)if($t(Ie[dr],it))return dr;return-1}function Ca(Ie){return Ie!==Ie}function cl(Ie,it){var Ze=Ie==null?0:Ie.length;return Ze?We(Ie,it)/Ze:re}function M(Ie){return function(it){return it==null?t:it[Ie]}}function H(Ie){return function(it){return Ie==null?t:Ie[it]}}function Y(Ie,it,Ze,$t,dr){return dr(Ie,function($r,Ln,Qr){Ze=$t?($t=!1,$r):it(Ze,$r,Ln,Qr)}),Ze}function de(Ie,it){var Ze=Ie.length;for(Ie.sort(it);Ze--;)Ie[Ze]=Ie[Ze].value;return Ie}function We(Ie,it){for(var Ze,$t=-1,dr=Ie.length;++$t<dr;){var $r=it(Ie[$t]);$r!==t&&(Ze=Ze===t?$r:Ze+$r)}return Ze}function He(Ie,it){for(var Ze=-1,$t=Array(Ie);++Ze<Ie;)$t[Ze]=it(Ze);return $t}function ut(Ie,it){return ln(it,function(Ze){return[Ze,Ie[Ze]]})}function Mt(Ie){return Ie&&Ie.slice(0,od(Ie)+1).replace(zt,"")}function Zt(Ie){return function(it){return Ie(it)}}function Sr(Ie,it){return ln(it,function(Ze){return Ie[Ze]})}function pr(Ie,it){return Ie.has(it)}function on(Ie,it){for(var Ze=-1,$t=Ie.length;++Ze<$t&&zi(it,Ie[Ze],0)>-1;);return Ze}function lo(Ie,it){for(var Ze=Ie.length;Ze--&&zi(it,Ie[Ze],0)>-1;);return Ze}function Bo(Ie,it){for(var Ze=Ie.length,$t=0;Ze--;)Ie[Ze]===it&&++$t;return $t}var Fo=H(O),Sa=H(J);function Zl(Ie){return"\\"+rt[Ie]}function Fs(Ie,it){return Ie==null?t:Ie[it]}function _a(Ie){return so.test(Ie)}function Ef(Ie){return ao.test(Ie)}function eu(Ie){for(var it,Ze=[];!(it=Ie.next()).done;)Ze.push(it.value);return Ze}function tu(Ie){var it=-1,Ze=Array(Ie.size);return Ie.forEach(function($t,dr){Ze[++it]=[dr,$t]}),Ze}function nd(Ie,it){return function(Ze){return Ie(it(Ze))}}function Hi(Ie,it){for(var Ze=-1,$t=Ie.length,dr=0,$r=[];++Ze<$t;){var Ln=Ie[Ze];(Ln===it||Ln===p)&&(Ie[Ze]=p,$r[dr++]=Ze)}return $r}function ul(Ie){var it=-1,Ze=Array(Ie.size);return Ie.forEach(function($t){Ze[++it]=$t}),Ze}function Tf(Ie){var it=-1,Ze=Array(Ie.size);return Ie.forEach(function($t){Ze[++it]=[$t,$t]}),Ze}function Rf(Ie,it,Ze){for(var $t=Ze-1,dr=Ie.length;++$t<dr;)if(Ie[$t]===it)return $t;return-1}function kf(Ie,it,Ze){for(var $t=Ze+1;$t--;)if(Ie[$t]===it)return $t;return $t}function Aa(Ie){return _a(Ie)?Kl(Ie):Vl(Ie)}function Sn(Ie){return _a(Ie)?jo(Ie):Gl(Ie)}function od(Ie){for(var it=Ie.length;it--&&xr.test(Ie.charAt(it)););return it}var id=H(Ce);function Kl(Ie){for(var it=Hn.lastIndex=0;Hn.test(Ie);)++it;return it}function jo(Ie){return Ie.match(Hn)||[]}function sd(Ie){return Ie.match(Bi)||[]}var Xl=function Ie(it){it=it==null?Cr:$i.defaults(Cr.Object(),it,$i.pick(Cr,ti));var Ze=it.Array,$t=it.Date,dr=it.Error,$r=it.Function,Ln=it.Math,Qr=it.Object,Ea=it.RegExp,ad=it.String,Zo=it.TypeError,Jl=Ze.prototype,If=$r.prototype,ls=Qr.prototype,cn=it["__core-js_shared__"],cs=If.toString,Xr=ls.hasOwnProperty,ru=0,pn=function(){var s=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),qi=ls.toString,nu=cs.call(Qr),ou=Cr._,iu=Ea("^"+cs.call(Xr).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ta=$n?it.Buffer:t,Ui=it.Symbol,dl=it.Uint8Array,fl=Ta?Ta.allocUnsafe:t,js=nd(Qr.getPrototypeOf,Qr),Ra=Qr.create,Ql=ls.propertyIsEnumerable,Wi=Jl.splice,ec=Ui?Ui.isConcatSpreadable:t,oi=Ui?Ui.iterator:t,Vi=Ui?Ui.toStringTag:t,us=function(){try{var s=Iu(Qr,"defineProperty");return s({},"",{}),s}catch{}}(),Mf=it.clearTimeout!==Cr.clearTimeout&&it.clearTimeout,hl=$t&&$t.now!==Cr.Date.now&&$t.now,ld=it.setTimeout!==Cr.setTimeout&&it.setTimeout,ka=Ln.ceil,zs=Ln.floor,Ia=Qr.getOwnPropertySymbols,tc=Ta?Ta.isBuffer:t,Ma=it.isFinite,pl=Jl.join,cd=nd(Qr.keys,Qr),yn=Ln.max,qn=Ln.min,ds=$t.now,su=it.parseInt,fs=Ln.random,rc=Jl.reverse,xi=Iu(it,"DataView"),hs=Iu(it,"Map"),La=Iu(it,"Promise"),wi=Iu(it,"Set"),Gi=Iu(it,"WeakMap"),Da=Iu(Qr,"create"),gl=Gi&&new Gi,Hs={},ps=Mu(xi),au=Mu(hs),Lf=Mu(La),ud=Mu(wi),Oa=Mu(Gi),gs=Ui?Ui.prototype:t,$s=gs?gs.valueOf:t,ml=gs?gs.toString:t;function Z(s){if(Yn(s)&&!Tr(s)&&!(s instanceof Er)){if(s instanceof co)return s;if(Xr.call(s,"__wrapped__"))return Ty(s)}return new co(s)}var Yi=function(){function s(){}return function(u){if(!Un(u))return{};if(Ra)return Ra(u);s.prototype=u;var x=new s;return s.prototype=t,x}}();function Zi(){}function co(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}Z.templateSettings={escape:at,evaluate:lt,interpolate:_t,variable:"",imports:{_:Z}},Z.prototype=Zi.prototype,Z.prototype.constructor=Z,co.prototype=Yi(Zi.prototype),co.prototype.constructor=co;function Er(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function nc(){var s=new Er(this.__wrapped__);return s.__actions__=xo(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=xo(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=xo(this.__views__),s}function vl(){if(this.__filtered__){var s=new Er(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function oc(){var s=this.__wrapped__.value(),u=this.__dir__,x=Tr(s),L=u<0,W=x?s.length:0,te=$S(0,W,this.__views__),ye=te.start,Ee=te.end,Oe=Ee-ye,mt=L?Ee:ye-1,bt=this.__iteratees__,Rt=bt.length,qt=0,sr=qn(Oe,this.__takeCount__);if(!x||!L&&W==Oe&&sr==Oe)return Ed(s,this.__actions__);var mr=[];e:for(;Oe--&&qt<sr;){mt+=u;for(var Pr=-1,vr=s[mt];++Pr<Rt;){var Ur=bt[Pr],Yr=Ur.iteratee,es=Ur.type,di=Yr(vr);if(es==se)vr=di;else if(!di){if(es==Q)continue e;break e}}mr[qt++]=vr}return mr}Er.prototype=Yi(Zi.prototype),Er.prototype.constructor=Er;function Ci(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function lu(){this.__data__=Da?Da(null):{},this.size=0}function dd(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function fd(s){var u=this.__data__;if(Da){var x=u[s];return x===d?t:x}return Xr.call(u,s)?u[s]:t}function hd(s){var u=this.__data__;return Da?u[s]!==t:Xr.call(u,s)}function Df(s,u){var x=this.__data__;return this.size+=this.has(s)?0:1,x[s]=Da&&u===t?d:u,this}Ci.prototype.clear=lu,Ci.prototype.delete=dd,Ci.prototype.get=fd,Ci.prototype.has=hd,Ci.prototype.set=Df;function Si(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function Of(){this.__data__=[],this.size=0}function Nf(s){var u=this.__data__,x=ii(u,s);if(x<0)return!1;var L=u.length-1;return x==L?u.pop():Wi.call(u,x,1),--this.size,!0}function cu(s){var u=this.__data__,x=ii(u,s);return x<0?t:u[x][1]}function yl(s){return ii(this.__data__,s)>-1}function Pf(s,u){var x=this.__data__,L=ii(x,s);return L<0?(++this.size,x.push([s,u])):x[L][1]=u,this}Si.prototype.clear=Of,Si.prototype.delete=Nf,Si.prototype.get=cu,Si.prototype.has=yl,Si.prototype.set=Pf;function Ki(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function uu(){this.size=0,this.__data__={hash:new Ci,map:new(hs||Si),string:new Ci}}function ic(s){var u=Zh(this,s).delete(s);return this.size-=u?1:0,u}function Bf(s){return Zh(this,s).get(s)}function Ff(s){return Zh(this,s).has(s)}function jf(s,u){var x=Zh(this,s),L=x.size;return x.set(s,u),this.size+=x.size==L?0:1,this}Ki.prototype.clear=uu,Ki.prototype.delete=ic,Ki.prototype.get=Bf,Ki.prototype.has=Ff,Ki.prototype.set=jf;function go(s){var u=-1,x=s==null?0:s.length;for(this.__data__=new Ki;++u<x;)this.add(s[u])}function du(s){return this.__data__.set(s,d),this}function sc(s){return this.__data__.has(s)}go.prototype.add=go.prototype.push=du,go.prototype.has=sc;function Nr(s){var u=this.__data__=new Si(s);this.size=u.size}function zo(){this.__data__=new Si,this.size=0}function Na(s){var u=this.__data__,x=u.delete(s);return this.size=u.size,x}function qs(s){return this.__data__.get(s)}function qr(s){return this.__data__.has(s)}function ms(s,u){var x=this.__data__;if(x instanceof Si){var L=x.__data__;if(!hs||L.length<o-1)return L.push([s,u]),this.size=++x.size,this;x=this.__data__=new Ki(L)}return x.set(s,u),this.size=x.size,this}Nr.prototype.clear=zo,Nr.prototype.delete=Na,Nr.prototype.get=qs,Nr.prototype.has=qr,Nr.prototype.set=ms;function bl(s,u){var x=Tr(s),L=!x&&Lu(s),W=!x&&!L&&Sc(s),te=!x&&!L&&!W&&Dd(s),ye=x||L||W||te,Ee=ye?He(s.length,ad):[],Oe=Ee.length;for(var mt in s)(u||Xr.call(s,mt))&&!(ye&&(mt=="length"||W&&(mt=="offset"||mt=="parent")||te&&(mt=="buffer"||mt=="byteLength"||mt=="byteOffset")||Il(mt,Oe)))&&Ee.push(mt);return Ee}function To(s){var u=s.length;return u?s[Ks(0,u-1)]:t}function Ho(s,u){return Kh(xo(s),Ws(u,0,s.length))}function _i(s){return Kh(xo(s))}function fu(s,u,x){(x!==t&&!ta(s[u],x)||x===t&&!(u in s))&&$o(s,u,x)}function mo(s,u,x){var L=s[u];(!(Xr.call(s,u)&&ta(L,x))||x===t&&!(u in s))&&$o(s,u,x)}function ii(s,u){for(var x=s.length;x--;)if(ta(s[x][0],u))return x;return-1}function Us(s,u,x,L){return vs(s,function(W,te,ye){u(L,W,x(W),ye)}),L}function pd(s,u){return s&&Ko(u,ko(u),s)}function hu(s,u){return s&&Ko(u,ki(u),s)}function $o(s,u,x){u=="__proto__"&&us?us(s,u,{configurable:!0,enumerable:!0,value:x,writable:!0}):s[u]=x}function pu(s,u){for(var x=-1,L=u.length,W=Ze(L),te=s==null;++x<L;)W[x]=te?t:rm(s,u[x]);return W}function Ws(s,u,x){return s===s&&(x!==t&&(s=s<=x?s:x),u!==t&&(s=s>=u?s:u)),s}function vo(s,u,x,L,W,te){var ye,Ee=u&m,Oe=u&g,mt=u&v;if(x&&(ye=W?x(s,L,W,te):x(s)),ye!==t)return ye;if(!Un(s))return s;var bt=Tr(s);if(bt){if(ye=US(s),!Ee)return xo(s,ye)}else{var Rt=Xo(s),qt=Rt==Ae||Rt==$e;if(Sc(s))return Cs(s,Ee);if(Rt==et||Rt==ne||qt&&!W){if(ye=Oe||qt?{}:yy(s),!Ee)return Oe?$f(s,hu(ye,s)):Id(s,pd(ye,s))}else{if(!Fr[Rt])return W?s:{};ye=WS(s,Rt,Ee)}}te||(te=new Nr);var sr=te.get(s);if(sr)return sr;te.set(s,ye),Gy(s)?s.forEach(function(vr){ye.add(vo(vr,u,x,vr,s,te))}):Wy(s)&&s.forEach(function(vr,Ur){ye.set(Ur,vo(vr,u,x,Ur,s,te))});var mr=mt?Oe?$g:Hg:Oe?ki:ko,Pr=bt?t:mr(s);return Jn(Pr||s,function(vr,Ur){Pr&&(Ur=vr,vr=s[Ur]),mo(ye,Ur,vo(vr,u,x,Ur,s,te))}),ye}function gu(s){var u=ko(s);return function(x){return mu(x,s,u)}}function mu(s,u,x){var L=x.length;if(s==null)return!L;for(s=Qr(s);L--;){var W=x[L],te=u[W],ye=s[W];if(ye===t&&!(W in s)||!te(ye))return!1}return!0}function vu(s,u,x){if(typeof s!="function")throw new Zo(a);return Uf(function(){s.apply(t,x)},u)}function Vs(s,u,x,L){var W=-1,te=ji,ye=!0,Ee=s.length,Oe=[],mt=u.length;if(!Ee)return Oe;x&&(u=ln(u,Zt(x))),L?(te=Qn,ye=!1):u.length>=o&&(te=pr,ye=!1,u=new go(u));e:for(;++W<Ee;){var bt=s[W],Rt=x==null?bt:x(bt);if(bt=L||bt!==0?bt:0,ye&&Rt===Rt){for(var qt=mt;qt--;)if(u[qt]===Rt)continue e;Oe.push(bt)}else te(u,Rt,L)||Oe.push(bt)}return Oe}var vs=b(qo),yu=b(lc,!0);function gd(s,u){var x=!0;return vs(s,function(L,W,te){return x=!!u(L,W,te),x}),x}function ac(s,u,x){for(var L=-1,W=s.length;++L<W;){var te=s[L],ye=u(te);if(ye!=null&&(Ee===t?ye===ye&&!Qi(ye):x(ye,Ee)))var Ee=ye,Oe=te}return Oe}function zf(s,u,x,L){var W=s.length;for(x=Lr(x),x<0&&(x=-x>W?0:W+x),L=L===t||L>W?W:Lr(L),L<0&&(L+=W),L=x>L?0:Zy(L);x<L;)s[x++]=u;return s}function md(s,u){var x=[];return vs(s,function(L,W,te){u(L,W,te)&&x.push(L)}),x}function eo(s,u,x,L,W){var te=-1,ye=s.length;for(x||(x=GS),W||(W=[]);++te<ye;){var Ee=s[te];u>0&&x(Ee)?u>1?eo(Ee,u-1,x,L,W):Po(W,Ee):L||(W[W.length]=Ee)}return W}var bu=l(),vd=l(!0);function qo(s,u){return s&&bu(s,u,ko)}function lc(s,u){return s&&vd(s,u,ko)}function Pa(s,u){return ni(u,function(x){return Ml(s[x])})}function ys(s,u){u=Uo(u,s);for(var x=0,L=u.length;s!=null&&x<L;)s=s[Wa(u[x++])];return x&&x==L?s:t}function xl(s,u,x){var L=u(s);return Tr(s)?L:Po(L,x(s))}function Vn(s){return s==null?s===t?gt:Ue:Vi&&Vi in Qr(s)?HS(s):e_(s)}function Gs(s,u){return s>u}function cc(s,u){return s!=null&&Xr.call(s,u)}function Ba(s,u){return s!=null&&u in Qr(s)}function uc(s,u,x){return s>=qn(u,x)&&s<yn(u,x)}function Fa(s,u,x){for(var L=x?Qn:ji,W=s[0].length,te=s.length,ye=te,Ee=Ze(te),Oe=1/0,mt=[];ye--;){var bt=s[ye];ye&&u&&(bt=ln(bt,Zt(u))),Oe=qn(bt.length,Oe),Ee[ye]=!x&&(u||W>=120&&bt.length>=120)?new go(ye&&bt):t}bt=s[0];var Rt=-1,qt=Ee[0];e:for(;++Rt<W&&mt.length<Oe;){var sr=bt[Rt],mr=u?u(sr):sr;if(sr=x||sr!==0?sr:0,!(qt?pr(qt,mr):L(mt,mr,x))){for(ye=te;--ye;){var Pr=Ee[ye];if(!(Pr?pr(Pr,mr):L(s[ye],mr,x)))continue e}qt&&qt.push(mr),mt.push(sr)}}return mt}function dc(s,u,x,L){return qo(s,function(W,te,ye){u(L,x(W),te,ye)}),L}function Ai(s,u,x){u=Uo(u,s),s=Cy(s,u);var L=s==null?s:s[Wa(_s(u))];return L==null?t:vn(L,s,x)}function fc(s){return Yn(s)&&Vn(s)==ne}function Ys(s){return Yn(s)&&Vn(s)==vt}function yd(s){return Yn(s)&&Vn(s)==De}function wl(s,u,x,L,W){return s===u?!0:s==null||u==null||!Yn(s)&&!Yn(u)?s!==s&&u!==u:ja(s,u,x,L,wl,W)}function ja(s,u,x,L,W,te){var ye=Tr(s),Ee=Tr(u),Oe=ye?ve:Xo(s),mt=Ee?ve:Xo(u);Oe=Oe==ne?et:Oe,mt=mt==ne?et:mt;var bt=Oe==et,Rt=mt==et,qt=Oe==mt;if(qt&&Sc(s)){if(!Sc(u))return!1;ye=!0,bt=!1}if(qt&&!bt)return te||(te=new Nr),ye||Dd(s)?gy(s,u,x,L,W,te):jS(s,u,Oe,x,L,W,te);if(!(x&w)){var sr=bt&&Xr.call(s,"__wrapped__"),mr=Rt&&Xr.call(u,"__wrapped__");if(sr||mr){var Pr=sr?s.value():s,vr=mr?u.value():u;return te||(te=new Nr),W(Pr,vr,x,L,te)}}return qt?(te||(te=new Nr),zS(s,u,x,L,W,te)):!1}function za(s){return Yn(s)&&Xo(s)==Fe}function xu(s,u,x,L){var W=x.length,te=W,ye=!L;if(s==null)return!te;for(s=Qr(s);W--;){var Ee=x[W];if(ye&&Ee[2]?Ee[1]!==s[Ee[0]]:!(Ee[0]in s))return!1}for(;++W<te;){Ee=x[W];var Oe=Ee[0],mt=s[Oe],bt=Ee[1];if(ye&&Ee[2]){if(mt===t&&!(Oe in s))return!1}else{var Rt=new Nr;if(L)var qt=L(mt,bt,Oe,s,u,Rt);if(!(qt===t?wl(bt,mt,w|T,L,Rt):qt))return!1}}return!0}function bd(s){if(!Un(s)||ZS(s))return!1;var u=Ml(s)?iu:kt;return u.test(Mu(s))}function Zs(s){return Yn(s)&&Vn(s)==It}function hc(s){return Yn(s)&&Xo(s)==Je}function Xi(s){return Yn(s)&&rp(s.length)&&!!Ir[Vn(s)]}function pc(s){return typeof s=="function"?s:s==null?Ii:typeof s=="object"?Tr(s)?Sl(s[0],s[1]):Ei(s):s0(s)}function Ji(s){if(!qf(s))return cd(s);var u=[];for(var x in Qr(s))Xr.call(s,x)&&x!="constructor"&&u.push(x);return u}function Cl(s){if(!Un(s))return QS(s);var u=qf(s),x=[];for(var L in s)L=="constructor"&&(u||!Xr.call(s,L))||x.push(L);return x}function si(s,u){return s<u}function ai(s,u){var x=-1,L=Ri(s)?Ze(s.length):[];return vs(s,function(W,te,ye){L[++x]=u(W,te,ye)}),L}function Ei(s){var u=Ug(s);return u.length==1&&u[0][2]?xy(u[0][0],u[0][1]):function(x){return x===s||xu(x,s,u)}}function Sl(s,u){return Vg(s)&&by(u)?xy(Wa(s),u):function(x){var L=rm(x,s);return L===t&&L===u?nm(x,s):wl(u,L,w|T)}}function bs(s,u,x,L,W){s!==u&&bu(u,function(te,ye){if(W||(W=new Nr),Un(te))li(s,u,ye,x,bs,L,W);else{var Ee=L?L(Yg(s,ye),te,ye+"",s,u,W):t;Ee===t&&(Ee=te),fu(s,ye,Ee)}},ki)}function li(s,u,x,L,W,te,ye){var Ee=Yg(s,x),Oe=Yg(u,x),mt=ye.get(Oe);if(mt){fu(s,x,mt);return}var bt=te?te(Ee,Oe,x+"",s,u,ye):t,Rt=bt===t;if(Rt){var qt=Tr(Oe),sr=!qt&&Sc(Oe),mr=!qt&&!sr&&Dd(Oe);bt=Oe,qt||sr||mr?Tr(Ee)?bt=Ee:ro(Ee)?bt=xo(Ee):sr?(Rt=!1,bt=Cs(Oe,!0)):mr?(Rt=!1,bt=Tl(Oe,!0)):bt=[]:Wf(Oe)||Lu(Oe)?(bt=Ee,Lu(Ee)?bt=Ky(Ee):(!Un(Ee)||Ml(Ee))&&(bt=yy(Oe))):Rt=!1}Rt&&(ye.set(Oe,bt),W(bt,Oe,L,te,ye),ye.delete(Oe)),fu(s,x,bt)}function Ha(s,u){var x=s.length;if(x)return u+=u<0?x:0,Il(u,x)?s[u]:t}function gc(s,u,x){u.length?u=ln(u,function(te){return Tr(te)?function(ye){return ys(ye,te.length===1?te[0]:te)}:te}):u=[Ii];var L=-1;u=ln(u,Zt(gr()));var W=ai(s,function(te,ye,Ee){var Oe=ln(u,function(mt){return mt(te)});return{criteria:Oe,index:++L,value:te}});return de(W,function(te,ye){return Cc(te,ye,x)})}function _l(s,u){return $a(s,u,function(x,L){return nm(s,L)})}function $a(s,u,x){for(var L=-1,W=u.length,te={};++L<W;){var ye=u[L],Ee=ys(s,ye);x(Ee,ye)&&Xs(te,Uo(ye,s),Ee)}return te}function xd(s){return function(u){return ys(u,s)}}function wu(s,u,x,L){var W=L?Yl:zi,te=-1,ye=u.length,Ee=s;for(s===u&&(u=xo(u)),x&&(Ee=ln(s,Zt(x)));++te<ye;)for(var Oe=0,mt=u[te],bt=x?x(mt):mt;(Oe=W(Ee,bt,Oe,L))>-1;)Ee!==s&&Wi.call(Ee,Oe,1),Wi.call(s,Oe,1);return s}function Cu(s,u){for(var x=s?u.length:0,L=x-1;x--;){var W=u[x];if(x==L||W!==te){var te=W;Il(W)?Wi.call(s,W,1):bo(s,W)}}return s}function Ks(s,u){return s+zs(fs()*(u-s+1))}function Su(s,u,x,L){for(var W=-1,te=yn(ka((u-s)/(x||1)),0),ye=Ze(te);te--;)ye[L?te:++W]=s,s+=x;return ye}function mc(s,u){var x="";if(!s||u<1||u>ae)return x;do u%2&&(x+=s),u=zs(u/2),u&&(s+=s);while(u);return x}function Ar(s,u){return Zg(wy(s,u,Ii),s+"")}function Al(s){return To(Od(s))}function _u(s,u){var x=Od(s);return Kh(x,Ws(u,0,x.length))}function Xs(s,u,x,L){if(!Un(s))return s;u=Uo(u,s);for(var W=-1,te=u.length,ye=te-1,Ee=s;Ee!=null&&++W<te;){var Oe=Wa(u[W]),mt=x;if(Oe==="__proto__"||Oe==="constructor"||Oe==="prototype")return s;if(W!=ye){var bt=Ee[Oe];mt=L?L(bt,Oe,Ee):t,mt===t&&(mt=Un(bt)?bt:Il(u[W+1])?[]:{})}mo(Ee,Oe,mt),Ee=Ee[Oe]}return s}var vc=gl?function(s,u){return gl.set(s,u),s}:Ii,wd=us?function(s,u){return us(s,"toString",{configurable:!0,enumerable:!1,value:im(u),writable:!0})}:Ii;function Cd(s){return Kh(Od(s))}function Ro(s,u,x){var L=-1,W=s.length;u<0&&(u=-u>W?0:W+u),x=x>W?W:x,x<0&&(x+=W),W=u>x?0:x-u>>>0,u>>>=0;for(var te=Ze(W);++L<W;)te[L]=s[L+u];return te}function Sd(s,u){var x;return vs(s,function(L,W,te){return x=u(L,W,te),!x}),!!x}function yc(s,u,x){var L=0,W=s==null?L:s.length;if(typeof u=="number"&&u===u&&W<=Se){for(;L<W;){var te=L+W>>>1,ye=s[te];ye!==null&&!Qi(ye)&&(x?ye<=u:ye<u)?L=te+1:W=te}return W}return Au(s,u,Ii,x)}function Au(s,u,x,L){var W=0,te=s==null?0:s.length;if(te===0)return 0;u=x(u);for(var ye=u!==u,Ee=u===null,Oe=Qi(u),mt=u===t;W<te;){var bt=zs((W+te)/2),Rt=x(s[bt]),qt=Rt!==t,sr=Rt===null,mr=Rt===Rt,Pr=Qi(Rt);if(ye)var vr=L||mr;else mt?vr=mr&&(L||qt):Ee?vr=mr&&qt&&(L||!sr):Oe?vr=mr&&qt&&!sr&&(L||!Pr):sr||Pr?vr=!1:vr=L?Rt<=u:Rt<u;vr?W=bt+1:te=bt}return qn(te,he)}function Eu(s,u){for(var x=-1,L=s.length,W=0,te=[];++x<L;){var ye=s[x],Ee=u?u(ye):ye;if(!x||!ta(Ee,Oe)){var Oe=Ee;te[W++]=ye===0?0:ye}}return te}function _d(s){return typeof s=="number"?s:Qi(s)?re:+s}function yo(s){if(typeof s=="string")return s;if(Tr(s))return ln(s,yo)+"";if(Qi(s))return ml?ml.call(s):"";var u=s+"";return u=="0"&&1/s==-oe?"-0":u}function xs(s,u,x){var L=-1,W=ji,te=s.length,ye=!0,Ee=[],Oe=Ee;if(x)ye=!1,W=Qn;else if(te>=o){var mt=u?null:Ua(s);if(mt)return ul(mt);ye=!1,W=pr,Oe=new go}else Oe=u?[]:Ee;e:for(;++L<te;){var bt=s[L],Rt=u?u(bt):bt;if(bt=x||bt!==0?bt:0,ye&&Rt===Rt){for(var qt=Oe.length;qt--;)if(Oe[qt]===Rt)continue e;u&&Oe.push(Rt),Ee.push(bt)}else W(Oe,Rt,x)||(Oe!==Ee&&Oe.push(Rt),Ee.push(bt))}return Ee}function bo(s,u){return u=Uo(u,s),s=Cy(s,u),s==null||delete s[Wa(_s(u))]}function Ad(s,u,x,L){return Xs(s,u,x(ys(s,u)),L)}function Js(s,u,x,L){for(var W=s.length,te=L?W:-1;(L?te--:++te<W)&&u(s[te],te,s););return x?Ro(s,L?0:te,L?te+1:W):Ro(s,L?te+1:0,L?W:te)}function Ed(s,u){var x=s;return x instanceof Er&&(x=x.value()),ll(u,function(L,W){return W.func.apply(W.thisArg,Po([L],W.args))},x)}function to(s,u,x){var L=s.length;if(L<2)return L?xs(s[0]):[];for(var W=-1,te=Ze(L);++W<L;)for(var ye=s[W],Ee=-1;++Ee<L;)Ee!=W&&(te[W]=Vs(te[W]||ye,s[Ee],u,x));return xs(eo(te,1),u,x)}function Td(s,u,x){for(var L=-1,W=s.length,te=u.length,ye={};++L<W;){var Ee=L<te?u[L]:t;x(ye,s[L],Ee)}return ye}function bc(s){return ro(s)?s:[]}function xc(s){return typeof s=="function"?s:Ii}function Uo(s,u){return Tr(s)?s:Vg(s,u)?[s]:Ey(gn(s))}var Rd=Ar;function ws(s,u,x){var L=s.length;return x=x===t?L:x,!u&&x>=L?s:Ro(s,u,x)}var wc=Mf||function(s){return Cr.clearTimeout(s)};function Cs(s,u){if(u)return s.slice();var x=s.length,L=fl?fl(x):new s.constructor(x);return s.copy(L),L}function Qs(s){var u=new s.constructor(s.byteLength);return new dl(u).set(new dl(s)),u}function Hf(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.byteLength)}function Tu(s){var u=new s.constructor(s.source,Dt.exec(s));return u.lastIndex=s.lastIndex,u}function El(s){return $s?Qr($s.call(s)):{}}function Tl(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.length)}function Ru(s,u){if(s!==u){var x=s!==t,L=s===null,W=s===s,te=Qi(s),ye=u!==t,Ee=u===null,Oe=u===u,mt=Qi(u);if(!Ee&&!mt&&!te&&s>u||te&&ye&&Oe&&!Ee&&!mt||L&&ye&&Oe||!x&&Oe||!W)return 1;if(!L&&!te&&!mt&&s<u||mt&&x&&W&&!L&&!te||Ee&&x&&W||!ye&&W||!Oe)return-1}return 0}function Cc(s,u,x){for(var L=-1,W=s.criteria,te=u.criteria,ye=W.length,Ee=x.length;++L<ye;){var Oe=Ru(W[L],te[L]);if(Oe){if(L>=Ee)return Oe;var mt=x[L];return Oe*(mt=="desc"?-1:1)}}return s.index-u.index}function ku(s,u,x,L){for(var W=-1,te=s.length,ye=x.length,Ee=-1,Oe=u.length,mt=yn(te-ye,0),bt=Ze(Oe+mt),Rt=!L;++Ee<Oe;)bt[Ee]=u[Ee];for(;++W<ye;)(Rt||W<te)&&(bt[x[W]]=s[W]);for(;mt--;)bt[Ee++]=s[W++];return bt}function kd(s,u,x,L){for(var W=-1,te=s.length,ye=-1,Ee=x.length,Oe=-1,mt=u.length,bt=yn(te-Ee,0),Rt=Ze(bt+mt),qt=!L;++W<bt;)Rt[W]=s[W];for(var sr=W;++Oe<mt;)Rt[sr+Oe]=u[Oe];for(;++ye<Ee;)(qt||W<te)&&(Rt[sr+x[ye]]=s[W++]);return Rt}function xo(s,u){var x=-1,L=s.length;for(u||(u=Ze(L));++x<L;)u[x]=s[x];return u}function Ko(s,u,x,L){var W=!x;x||(x={});for(var te=-1,ye=u.length;++te<ye;){var Ee=u[te],Oe=L?L(x[Ee],s[Ee],Ee,x,s):t;Oe===t&&(Oe=s[Ee]),W?$o(x,Ee,Oe):mo(x,Ee,Oe)}return x}function Id(s,u){return Ko(s,Wg(s),u)}function $f(s,u){return Ko(s,my(s),u)}function Rl(s,u){return function(x,L){var W=Tr(x)?Ns:Us,te=u?u():{};return W(x,s,gr(L,2),te)}}function qa(s){return Ar(function(u,x){var L=-1,W=x.length,te=W>1?x[W-1]:t,ye=W>2?x[2]:t;for(te=s.length>3&&typeof te=="function"?(W--,te):t,ye&&ui(x[0],x[1],ye)&&(te=W<3?t:te,W=1),u=Qr(u);++L<W;){var Ee=x[L];Ee&&s(u,Ee,L,te)}return u})}function b(s,u){return function(x,L){if(x==null)return x;if(!Ri(x))return s(x,L);for(var W=x.length,te=u?W:-1,ye=Qr(x);(u?te--:++te<W)&&L(ye[te],te,ye)!==!1;);return x}}function l(s){return function(u,x,L){for(var W=-1,te=Qr(u),ye=L(u),Ee=ye.length;Ee--;){var Oe=ye[s?Ee:++W];if(x(te[Oe],Oe,te)===!1)break}return u}}function f(s,u,x){var L=u&_,W=N(s);function te(){var ye=this&&this!==Cr&&this instanceof te?W:s;return ye.apply(L?x:this,arguments)}return te}function y(s){return function(u){u=gn(u);var x=_a(u)?Sn(u):t,L=x?x[0]:u.charAt(0),W=x?ws(x,1).join(""):u.slice(1);return L[s]()+W}}function E(s){return function(u){return ll(o0(n0(u).replace(yi,"")),s,"")}}function N(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var x=Yi(s.prototype),L=s.apply(x,u);return Un(L)?L:x}}function q(s,u,x){var L=N(s);function W(){for(var te=arguments.length,ye=Ze(te),Ee=te,Oe=Ld(W);Ee--;)ye[Ee]=arguments[Ee];var mt=te<3&&ye[0]!==Oe&&ye[te-1]!==Oe?[]:Hi(ye,Oe);if(te-=mt.length,te<x)return Ss(s,u,je,W.placeholder,t,ye,mt,t,t,x-te);var bt=this&&this!==Cr&&this instanceof W?L:s;return vn(bt,this,ye)}return W}function K(s){return function(u,x,L){var W=Qr(u);if(!Ri(u)){var te=gr(x,3);u=ko(u),x=function(Ee){return te(W[Ee],Ee,W)}}var ye=s(u,x,L);return ye>-1?W[te?u[ye]:ye]:t}}function me(s){return kl(function(u){var x=u.length,L=x,W=co.prototype.thru;for(s&&u.reverse();L--;){var te=u[L];if(typeof te!="function")throw new Zo(a);if(W&&!ye&&Yh(te)=="wrapper")var ye=new co([],!0)}for(L=ye?L:x;++L<x;){te=u[L];var Ee=Yh(te),Oe=Ee=="wrapper"?qg(te):t;Oe&&Gg(Oe[0])&&Oe[1]==(j|D|B|z)&&!Oe[4].length&&Oe[9]==1?ye=ye[Yh(Oe[0])].apply(ye,Oe[3]):ye=te.length==1&&Gg(te)?ye[Ee]():ye.thru(te)}return function(){var mt=arguments,bt=mt[0];if(ye&&mt.length==1&&Tr(bt))return ye.plant(bt).value();for(var Rt=0,qt=x?u[Rt].apply(this,mt):bt;++Rt<x;)qt=u[Rt].call(this,qt);return qt}})}function je(s,u,x,L,W,te,ye,Ee,Oe,mt){var bt=u&j,Rt=u&_,qt=u&A,sr=u&(D|I),mr=u&G,Pr=qt?t:N(s);function vr(){for(var Ur=arguments.length,Yr=Ze(Ur),es=Ur;es--;)Yr[es]=arguments[es];if(sr)var di=Ld(vr),ts=Bo(Yr,di);if(L&&(Yr=ku(Yr,L,W,sr)),te&&(Yr=kd(Yr,te,ye,sr)),Ur-=ts,sr&&Ur<mt){var no=Hi(Yr,di);return Ss(s,u,je,vr.placeholder,x,Yr,no,Ee,Oe,mt-Ur)}var ra=Rt?x:this,Dl=qt?ra[s]:s;return Ur=Yr.length,Ee?Yr=t_(Yr,Ee):mr&&Ur>1&&Yr.reverse(),bt&&Oe<Ur&&(Yr.length=Oe),this&&this!==Cr&&this instanceof vr&&(Dl=Pr||N(Dl)),Dl.apply(ra,Yr)}return vr}function dt(s,u){return function(x,L){return dc(x,s,u(L),{})}}function At(s,u){return function(x,L){var W;if(x===t&&L===t)return u;if(x!==t&&(W=x),L!==t){if(W===t)return L;typeof x=="string"||typeof L=="string"?(x=yo(x),L=yo(L)):(x=_d(x),L=_d(L)),W=s(x,L)}return W}}function Pt(s){return kl(function(u){return u=ln(u,Zt(gr())),Ar(function(x){var L=this;return s(u,function(W){return vn(W,L,x)})})})}function ur(s,u){u=u===t?" ":yo(u);var x=u.length;if(x<2)return x?mc(u,s):u;var L=mc(u,ka(s/Aa(u)));return _a(u)?ws(Sn(L),0,s).join(""):L.slice(0,s)}function Gr(s,u,x,L){var W=u&_,te=N(s);function ye(){for(var Ee=-1,Oe=arguments.length,mt=-1,bt=L.length,Rt=Ze(bt+Oe),qt=this&&this!==Cr&&this instanceof ye?te:s;++mt<bt;)Rt[mt]=L[mt];for(;Oe--;)Rt[mt++]=arguments[++Ee];return vn(qt,W?x:this,Rt)}return ye}function Gn(s){return function(u,x,L){return L&&typeof L!="number"&&ui(u,x,L)&&(x=L=t),u=Ll(u),x===t?(x=u,u=0):x=Ll(x),L=L===t?u<x?1:-1:Ll(L),Su(u,x,L,s)}}function Ti(s){return function(u,x){return typeof u=="string"&&typeof x=="string"||(u=As(u),x=As(x)),s(u,x)}}function Ss(s,u,x,L,W,te,ye,Ee,Oe,mt){var bt=u&D,Rt=bt?ye:t,qt=bt?t:ye,sr=bt?te:t,mr=bt?t:te;u|=bt?B:F,u&=~(bt?F:B),u&R||(u&=-4);var Pr=[s,u,W,sr,Rt,mr,qt,Ee,Oe,mt],vr=x.apply(t,Pr);return Gg(s)&&Sy(vr,Pr),vr.placeholder=L,_y(vr,s,u)}function ci(s){var u=Ln[s];return function(x,L){if(x=As(x),L=L==null?0:qn(Lr(L),292),L&&Ma(x)){var W=(gn(x)+"e").split("e"),te=u(W[0]+"e"+(+W[1]+L));return W=(gn(te)+"e").split("e"),+(W[0]+"e"+(+W[1]-L))}return u(x)}}var Ua=wi&&1/ul(new wi([,-0]))[1]==oe?function(s){return new wi(s)}:lm;function Md(s){return function(u){var x=Xo(u);return x==Fe?tu(u):x==Je?Tf(u):ut(u,s(u))}}function ea(s,u,x,L,W,te,ye,Ee){var Oe=u&A;if(!Oe&&typeof s!="function")throw new Zo(a);var mt=L?L.length:0;if(mt||(u&=-97,L=W=t),ye=ye===t?ye:yn(Lr(ye),0),Ee=Ee===t?Ee:Lr(Ee),mt-=W?W.length:0,u&F){var bt=L,Rt=W;L=W=t}var qt=Oe?t:qg(s),sr=[s,u,x,L,W,bt,Rt,te,ye,Ee];if(qt&&JS(sr,qt),s=sr[0],u=sr[1],x=sr[2],L=sr[3],W=sr[4],Ee=sr[9]=sr[9]===t?Oe?0:s.length:yn(sr[9]-mt,0),!Ee&&u&(D|I)&&(u&=-25),!u||u==_)var mr=f(s,u,x);else u==D||u==I?mr=q(s,u,Ee):(u==B||u==(_|B))&&!W.length?mr=Gr(s,u,x,L):mr=je.apply(t,sr);var Pr=qt?vc:Sy;return _y(Pr(mr,sr),s,u)}function hy(s,u,x,L){return s===t||ta(s,ls[x])&&!Xr.call(L,x)?u:s}function py(s,u,x,L,W,te){return Un(s)&&Un(u)&&(te.set(u,s),bs(s,u,t,py,te),te.delete(u)),s}function FS(s){return Wf(s)?t:s}function gy(s,u,x,L,W,te){var ye=x&w,Ee=s.length,Oe=u.length;if(Ee!=Oe&&!(ye&&Oe>Ee))return!1;var mt=te.get(s),bt=te.get(u);if(mt&&bt)return mt==u&&bt==s;var Rt=-1,qt=!0,sr=x&T?new go:t;for(te.set(s,u),te.set(u,s);++Rt<Ee;){var mr=s[Rt],Pr=u[Rt];if(L)var vr=ye?L(Pr,mr,Rt,u,s,te):L(mr,Pr,Rt,s,u,te);if(vr!==t){if(vr)continue;qt=!1;break}if(sr){if(!as(u,function(Ur,Yr){if(!pr(sr,Yr)&&(mr===Ur||W(mr,Ur,x,L,te)))return sr.push(Yr)})){qt=!1;break}}else if(!(mr===Pr||W(mr,Pr,x,L,te))){qt=!1;break}}return te.delete(s),te.delete(u),qt}function jS(s,u,x,L,W,te,ye){switch(x){case Nt:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case vt:return!(s.byteLength!=u.byteLength||!te(new dl(s),new dl(u)));case Pe:case De:case Qe:return ta(+s,+u);case _e:return s.name==u.name&&s.message==u.message;case It:case Ke:return s==u+"";case Fe:var Ee=tu;case Je:var Oe=L&w;if(Ee||(Ee=ul),s.size!=u.size&&!Oe)return!1;var mt=ye.get(s);if(mt)return mt==u;L|=T,ye.set(s,u);var bt=gy(Ee(s),Ee(u),L,W,te,ye);return ye.delete(s),bt;case ft:if($s)return $s.call(s)==$s.call(u)}return!1}function zS(s,u,x,L,W,te){var ye=x&w,Ee=Hg(s),Oe=Ee.length,mt=Hg(u),bt=mt.length;if(Oe!=bt&&!ye)return!1;for(var Rt=Oe;Rt--;){var qt=Ee[Rt];if(!(ye?qt in u:Xr.call(u,qt)))return!1}var sr=te.get(s),mr=te.get(u);if(sr&&mr)return sr==u&&mr==s;var Pr=!0;te.set(s,u),te.set(u,s);for(var vr=ye;++Rt<Oe;){qt=Ee[Rt];var Ur=s[qt],Yr=u[qt];if(L)var es=ye?L(Yr,Ur,qt,u,s,te):L(Ur,Yr,qt,s,u,te);if(!(es===t?Ur===Yr||W(Ur,Yr,x,L,te):es)){Pr=!1;break}vr||(vr=qt=="constructor")}if(Pr&&!vr){var di=s.constructor,ts=u.constructor;di!=ts&&"constructor"in s&&"constructor"in u&&!(typeof di=="function"&&di instanceof di&&typeof ts=="function"&&ts instanceof ts)&&(Pr=!1)}return te.delete(s),te.delete(u),Pr}function kl(s){return Zg(wy(s,t,Iy),s+"")}function Hg(s){return xl(s,ko,Wg)}function $g(s){return xl(s,ki,my)}var qg=gl?function(s){return gl.get(s)}:lm;function Yh(s){for(var u=s.name+"",x=Hs[u],L=Xr.call(Hs,u)?x.length:0;L--;){var W=x[L],te=W.func;if(te==null||te==s)return W.name}return u}function Ld(s){var u=Xr.call(Z,"placeholder")?Z:s;return u.placeholder}function gr(){var s=Z.iteratee||sm;return s=s===sm?pc:s,arguments.length?s(arguments[0],arguments[1]):s}function Zh(s,u){var x=s.__data__;return YS(u)?x[typeof u=="string"?"string":"hash"]:x.map}function Ug(s){for(var u=ko(s),x=u.length;x--;){var L=u[x],W=s[L];u[x]=[L,W,by(W)]}return u}function Iu(s,u){var x=Fs(s,u);return bd(x)?x:t}function HS(s){var u=Xr.call(s,Vi),x=s[Vi];try{s[Vi]=t;var L=!0}catch{}var W=qi.call(s);return L&&(u?s[Vi]=x:delete s[Vi]),W}var Wg=Ia?function(s){return s==null?[]:(s=Qr(s),ni(Ia(s),function(u){return Ql.call(s,u)}))}:cm,my=Ia?function(s){for(var u=[];s;)Po(u,Wg(s)),s=js(s);return u}:cm,Xo=Vn;(xi&&Xo(new xi(new ArrayBuffer(1)))!=Nt||hs&&Xo(new hs)!=Fe||La&&Xo(La.resolve())!=ct||wi&&Xo(new wi)!=Je||Gi&&Xo(new Gi)!=Ne)&&(Xo=function(s){var u=Vn(s),x=u==et?s.constructor:t,L=x?Mu(x):"";if(L)switch(L){case ps:return Nt;case au:return Fe;case Lf:return ct;case ud:return Je;case Oa:return Ne}return u});function $S(s,u,x){for(var L=-1,W=x.length;++L<W;){var te=x[L],ye=te.size;switch(te.type){case"drop":s+=ye;break;case"dropRight":u-=ye;break;case"take":u=qn(u,s+ye);break;case"takeRight":s=yn(s,u-ye);break}}return{start:s,end:u}}function qS(s){var u=s.match(Ye);return u?u[1].split(ee):[]}function vy(s,u,x){u=Uo(u,s);for(var L=-1,W=u.length,te=!1;++L<W;){var ye=Wa(u[L]);if(!(te=s!=null&&x(s,ye)))break;s=s[ye]}return te||++L!=W?te:(W=s==null?0:s.length,!!W&&rp(W)&&Il(ye,W)&&(Tr(s)||Lu(s)))}function US(s){var u=s.length,x=new s.constructor(u);return u&&typeof s[0]=="string"&&Xr.call(s,"index")&&(x.index=s.index,x.input=s.input),x}function yy(s){return typeof s.constructor=="function"&&!qf(s)?Yi(js(s)):{}}function WS(s,u,x){var L=s.constructor;switch(u){case vt:return Qs(s);case Pe:case De:return new L(+s);case Nt:return Hf(s,x);case xt:case Lt:case Qt:case Ut:case fr:case hr:case cr:case Te:case le:return Tl(s,x);case Fe:return new L;case Qe:case Ke:return new L(s);case It:return Tu(s);case Je:return new L;case ft:return El(s)}}function VS(s,u){var x=u.length;if(!x)return s;var L=x-1;return u[L]=(x>1?"& ":"")+u[L],u=u.join(x>2?", ":" "),s.replace(jr,`{
|
38
|
+
*/var wT=lh.exports,d0;function CT(){return d0||(d0=1,function(r,e){(function(){var t,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",m=1,g=2,v=4,w=1,T=2,_=1,A=2,R=4,D=8,I=16,B=32,F=64,j=128,z=256,G=512,pe=30,P="...",U=800,V=16,Q=1,se=2,ue=3,oe=1/0,ae=9007199254740991,ge=17976931348623157e292,re=NaN,ie=4294967295,he=ie-1,Se=ie>>>1,Le=[["ary",j],["bind",_],["bindKey",A],["curry",D],["curryRight",I],["flip",G],["partial",B],["partialRight",F],["rearg",z]],ne="[object Arguments]",ve="[object Array]",ke="[object AsyncFunction]",De="[object Boolean]",Oe="[object Date]",we="[object DOMException]",_e="[object Error]",Ae="[object Function]",$e="[object GeneratorFunction]",Fe="[object Map]",Qe="[object Number]",Ue="[object Null]",et="[object Object]",ct="[object Promise]",Ct="[object Proxy]",It="[object RegExp]",Je="[object Set]",Ke="[object String]",ft="[object Symbol]",gt="[object Undefined]",Pe="[object WeakMap]",Xe="[object WeakSet]",vt="[object ArrayBuffer]",Nt="[object DataView]",xt="[object Float32Array]",Lt="[object Float64Array]",Qt="[object Int8Array]",Ut="[object Int16Array]",fr="[object Int32Array]",hr="[object Uint8Array]",cr="[object Uint8ClampedArray]",Te="[object Uint16Array]",le="[object Uint32Array]",st=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pt=/&(?:amp|lt|gt|quot|#39);/g,ht=/[&<>"']/g,Ft=RegExp(pt.source),Ve=RegExp(ht.source),at=/<%-([\s\S]+?)%>/g,lt=/<%([\s\S]+?)%>/g,_t=/<%=([\s\S]+?)%>/g,Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,Wt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Yt.source),zt=/^\s+/,xr=/\s/,jr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ye=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/[()=,{}\[\]\/\s]/,Tt=/\\(\\)?/g,jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,er=/^[-+]0x[0-9a-f]+$/i,Jt=/^0b[01]+$/i,kt=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yr=/($^)/,Br=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",br="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",sn="\\u20d0-\\u20ff",Pn=br+tn+sn,Hr="\\u2700-\\u27bf",rn="a-z\\xdf-\\xf6\\xf8-\\xff",kn="\\xac\\xb1\\xd7\\xf7",Bn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_o="\\u2000-\\u206f",Do=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oo="A-Z\\xc0-\\xd6\\xd8-\\xde",zn="\\ufe0e\\ufe0f",Fn=kn+Bn+_o+Do,Cn="['’]",oo="["+lr+"]",mn="["+Fn+"]",An="["+Pn+"]",k="\\d+",$="["+Hr+"]",X="["+rn+"]",ce="[^"+lr+Fn+k+Hr+rn+Oo+"]",qe="\\ud83c[\\udffb-\\udfff]",Be="(?:"+An+"|"+qe+")",tt="[^"+lr+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Ht="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+Oo+"]",Vt="\\u200d",Rr="(?:"+X+"|"+ce+")",an="(?:"+Gt+"|"+ce+")",In="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Mn="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",ho=Be+"?",Zn="["+zn+"]?",No="(?:"+Vt+"(?:"+[tt,Et,Ht].join("|")+")"+Zn+ho+")*",dn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ao="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kn=Zn+ho+No,io="(?:"+[$,Et,Ht].join("|")+")"+Kn,Pi="(?:"+[tt+An+"?",An,Et,Ht,oo].join("|")+")",yi=RegExp(Cn,"g"),bi=RegExp(An,"g"),Hn=RegExp(qe+"(?="+qe+")|"+Pi+Kn,"g"),Bi=RegExp([Gt+"?"+X+"+"+In+"(?="+[mn,Gt,"$"].join("|")+")",an+"+"+Mn+"(?="+[mn,Gt+Rr,"$"].join("|")+")",Gt+"?"+Rr+"+"+In,Gt+"+"+Mn,Ao,dn,k,io].join("|"),"g"),so=RegExp("["+Vt+lr+Pn+zn+"]"),ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ti=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zr=-1,Ir={};Ir[xt]=Ir[Lt]=Ir[Qt]=Ir[Ut]=Ir[fr]=Ir[hr]=Ir[cr]=Ir[Te]=Ir[le]=!0,Ir[ne]=Ir[ve]=Ir[vt]=Ir[De]=Ir[Nt]=Ir[Oe]=Ir[_e]=Ir[Ae]=Ir[Fe]=Ir[Qe]=Ir[et]=Ir[It]=Ir[Je]=Ir[Ke]=Ir[Pe]=!1;var Fr={};Fr[ne]=Fr[ve]=Fr[vt]=Fr[Nt]=Fr[De]=Fr[Oe]=Fr[xt]=Fr[Lt]=Fr[Qt]=Fr[Ut]=Fr[fr]=Fr[Fe]=Fr[Qe]=Fr[et]=Fr[It]=Fr[Je]=Fr[Ke]=Fr[ft]=Fr[hr]=Fr[cr]=Fr[Te]=Fr[le]=!0,Fr[_e]=Fr[Ae]=Fr[Pe]=!1;var O={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J={"&":"&","<":"<",">":">",'"':""","'":"'"},Ce={"&":"&","<":"<",">":">",""":'"',"'":"'"},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},or=parseFloat,Kt=parseInt,_r=typeof Di=="object"&&Di&&Di.Object===Object&&Di,kr=typeof self=="object"&&self&&self.Object===Object&&self,Cr=_r||kr||Function("return this")(),Mr=e&&!e.nodeType&&e,fn=Mr&&!0&&r&&!r.nodeType&&r,$n=fn&&fn.exports===Mr,nn=$n&&_r.process,Vr=function(){try{var Ie=fn&&fn.require&&fn.require("util").types;return Ie||nn&&nn.binding&&nn.binding("util")}catch{}}(),hn=Vr&&Vr.isArrayBuffer,po=Vr&&Vr.isDate,Eo=Vr&&Vr.isMap,Xn=Vr&&Vr.isRegExp,Fi=Vr&&Vr.isSet,ri=Vr&&Vr.isTypedArray;function vn(Ie,it,Ze){switch(Ze.length){case 0:return Ie.call(it);case 1:return Ie.call(it,Ze[0]);case 2:return Ie.call(it,Ze[0],Ze[1]);case 3:return Ie.call(it,Ze[0],Ze[1],Ze[2])}return Ie.apply(it,Ze)}function Ns(Ie,it,Ze,$t){for(var dr=-1,$r=Ie==null?0:Ie.length;++dr<$r;){var Ln=Ie[dr];it($t,Ln,Ze(Ln),Ie)}return $t}function Jn(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length;++Ze<$t&&it(Ie[Ze],Ze,Ie)!==!1;);return Ie}function Ul(Ie,it){for(var Ze=Ie==null?0:Ie.length;Ze--&&it(Ie[Ze],Ze,Ie)!==!1;);return Ie}function al(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length;++Ze<$t;)if(!it(Ie[Ze],Ze,Ie))return!1;return!0}function ni(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length,dr=0,$r=[];++Ze<$t;){var Ln=Ie[Ze];it(Ln,Ze,Ie)&&($r[dr++]=Ln)}return $r}function ji(Ie,it){var Ze=Ie==null?0:Ie.length;return!!Ze&&zi(Ie,it,0)>-1}function Qn(Ie,it,Ze){for(var $t=-1,dr=Ie==null?0:Ie.length;++$t<dr;)if(Ze(it,Ie[$t]))return!0;return!1}function ln(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length,dr=Array($t);++Ze<$t;)dr[Ze]=it(Ie[Ze],Ze,Ie);return dr}function Po(Ie,it){for(var Ze=-1,$t=it.length,dr=Ie.length;++Ze<$t;)Ie[dr+Ze]=it[Ze];return Ie}function ll(Ie,it,Ze,$t){var dr=-1,$r=Ie==null?0:Ie.length;for($t&&$r&&(Ze=Ie[++dr]);++dr<$r;)Ze=it(Ze,Ie[dr],dr,Ie);return Ze}function Wl(Ie,it,Ze,$t){var dr=Ie==null?0:Ie.length;for($t&&dr&&(Ze=Ie[--dr]);dr--;)Ze=it(Ze,Ie[dr],dr,Ie);return Ze}function as(Ie,it){for(var Ze=-1,$t=Ie==null?0:Ie.length;++Ze<$t;)if(it(Ie[Ze],Ze,Ie))return!0;return!1}var Vl=M("length");function Gl(Ie){return Ie.split("")}function wa(Ie){return Ie.match(be)||[]}function Ps(Ie,it,Ze){var $t;return Ze(Ie,function(dr,$r,Ln){if(it(dr,$r,Ln))return $t=$r,!1}),$t}function Bs(Ie,it,Ze,$t){for(var dr=Ie.length,$r=Ze+($t?1:-1);$t?$r--:++$r<dr;)if(it(Ie[$r],$r,Ie))return $r;return-1}function zi(Ie,it,Ze){return it===it?Rf(Ie,it,Ze):Bs(Ie,Ca,Ze)}function Yl(Ie,it,Ze,$t){for(var dr=Ze-1,$r=Ie.length;++dr<$r;)if($t(Ie[dr],it))return dr;return-1}function Ca(Ie){return Ie!==Ie}function cl(Ie,it){var Ze=Ie==null?0:Ie.length;return Ze?We(Ie,it)/Ze:re}function M(Ie){return function(it){return it==null?t:it[Ie]}}function H(Ie){return function(it){return Ie==null?t:Ie[it]}}function Y(Ie,it,Ze,$t,dr){return dr(Ie,function($r,Ln,Qr){Ze=$t?($t=!1,$r):it(Ze,$r,Ln,Qr)}),Ze}function de(Ie,it){var Ze=Ie.length;for(Ie.sort(it);Ze--;)Ie[Ze]=Ie[Ze].value;return Ie}function We(Ie,it){for(var Ze,$t=-1,dr=Ie.length;++$t<dr;){var $r=it(Ie[$t]);$r!==t&&(Ze=Ze===t?$r:Ze+$r)}return Ze}function He(Ie,it){for(var Ze=-1,$t=Array(Ie);++Ze<Ie;)$t[Ze]=it(Ze);return $t}function ut(Ie,it){return ln(it,function(Ze){return[Ze,Ie[Ze]]})}function Mt(Ie){return Ie&&Ie.slice(0,od(Ie)+1).replace(zt,"")}function Zt(Ie){return function(it){return Ie(it)}}function Sr(Ie,it){return ln(it,function(Ze){return Ie[Ze]})}function pr(Ie,it){return Ie.has(it)}function on(Ie,it){for(var Ze=-1,$t=Ie.length;++Ze<$t&&zi(it,Ie[Ze],0)>-1;);return Ze}function lo(Ie,it){for(var Ze=Ie.length;Ze--&&zi(it,Ie[Ze],0)>-1;);return Ze}function Bo(Ie,it){for(var Ze=Ie.length,$t=0;Ze--;)Ie[Ze]===it&&++$t;return $t}var Fo=H(O),Sa=H(J);function Zl(Ie){return"\\"+rt[Ie]}function Fs(Ie,it){return Ie==null?t:Ie[it]}function _a(Ie){return so.test(Ie)}function Ef(Ie){return ao.test(Ie)}function eu(Ie){for(var it,Ze=[];!(it=Ie.next()).done;)Ze.push(it.value);return Ze}function tu(Ie){var it=-1,Ze=Array(Ie.size);return Ie.forEach(function($t,dr){Ze[++it]=[dr,$t]}),Ze}function nd(Ie,it){return function(Ze){return Ie(it(Ze))}}function Hi(Ie,it){for(var Ze=-1,$t=Ie.length,dr=0,$r=[];++Ze<$t;){var Ln=Ie[Ze];(Ln===it||Ln===p)&&(Ie[Ze]=p,$r[dr++]=Ze)}return $r}function ul(Ie){var it=-1,Ze=Array(Ie.size);return Ie.forEach(function($t){Ze[++it]=$t}),Ze}function Tf(Ie){var it=-1,Ze=Array(Ie.size);return Ie.forEach(function($t){Ze[++it]=[$t,$t]}),Ze}function Rf(Ie,it,Ze){for(var $t=Ze-1,dr=Ie.length;++$t<dr;)if(Ie[$t]===it)return $t;return-1}function kf(Ie,it,Ze){for(var $t=Ze+1;$t--;)if(Ie[$t]===it)return $t;return $t}function Aa(Ie){return _a(Ie)?Kl(Ie):Vl(Ie)}function Sn(Ie){return _a(Ie)?jo(Ie):Gl(Ie)}function od(Ie){for(var it=Ie.length;it--&&xr.test(Ie.charAt(it)););return it}var id=H(Ce);function Kl(Ie){for(var it=Hn.lastIndex=0;Hn.test(Ie);)++it;return it}function jo(Ie){return Ie.match(Hn)||[]}function sd(Ie){return Ie.match(Bi)||[]}var Xl=function Ie(it){it=it==null?Cr:$i.defaults(Cr.Object(),it,$i.pick(Cr,ti));var Ze=it.Array,$t=it.Date,dr=it.Error,$r=it.Function,Ln=it.Math,Qr=it.Object,Ea=it.RegExp,ad=it.String,Zo=it.TypeError,Jl=Ze.prototype,If=$r.prototype,ls=Qr.prototype,cn=it["__core-js_shared__"],cs=If.toString,Xr=ls.hasOwnProperty,ru=0,pn=function(){var s=/[^.]+$/.exec(cn&&cn.keys&&cn.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),qi=ls.toString,nu=cs.call(Qr),ou=Cr._,iu=Ea("^"+cs.call(Xr).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ta=$n?it.Buffer:t,Ui=it.Symbol,dl=it.Uint8Array,fl=Ta?Ta.allocUnsafe:t,js=nd(Qr.getPrototypeOf,Qr),Ra=Qr.create,Ql=ls.propertyIsEnumerable,Wi=Jl.splice,ec=Ui?Ui.isConcatSpreadable:t,oi=Ui?Ui.iterator:t,Vi=Ui?Ui.toStringTag:t,us=function(){try{var s=Iu(Qr,"defineProperty");return s({},"",{}),s}catch{}}(),Mf=it.clearTimeout!==Cr.clearTimeout&&it.clearTimeout,hl=$t&&$t.now!==Cr.Date.now&&$t.now,ld=it.setTimeout!==Cr.setTimeout&&it.setTimeout,ka=Ln.ceil,zs=Ln.floor,Ia=Qr.getOwnPropertySymbols,tc=Ta?Ta.isBuffer:t,Ma=it.isFinite,pl=Jl.join,cd=nd(Qr.keys,Qr),yn=Ln.max,qn=Ln.min,ds=$t.now,su=it.parseInt,fs=Ln.random,rc=Jl.reverse,xi=Iu(it,"DataView"),hs=Iu(it,"Map"),La=Iu(it,"Promise"),wi=Iu(it,"Set"),Gi=Iu(it,"WeakMap"),Da=Iu(Qr,"create"),gl=Gi&&new Gi,Hs={},ps=Mu(xi),au=Mu(hs),Lf=Mu(La),ud=Mu(wi),Oa=Mu(Gi),gs=Ui?Ui.prototype:t,$s=gs?gs.valueOf:t,ml=gs?gs.toString:t;function Z(s){if(Yn(s)&&!Tr(s)&&!(s instanceof Er)){if(s instanceof co)return s;if(Xr.call(s,"__wrapped__"))return Ty(s)}return new co(s)}var Yi=function(){function s(){}return function(u){if(!Un(u))return{};if(Ra)return Ra(u);s.prototype=u;var x=new s;return s.prototype=t,x}}();function Zi(){}function co(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=t}Z.templateSettings={escape:at,evaluate:lt,interpolate:_t,variable:"",imports:{_:Z}},Z.prototype=Zi.prototype,Z.prototype.constructor=Z,co.prototype=Yi(Zi.prototype),co.prototype.constructor=co;function Er(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function nc(){var s=new Er(this.__wrapped__);return s.__actions__=xo(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=xo(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=xo(this.__views__),s}function vl(){if(this.__filtered__){var s=new Er(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function oc(){var s=this.__wrapped__.value(),u=this.__dir__,x=Tr(s),L=u<0,W=x?s.length:0,te=$S(0,W,this.__views__),ye=te.start,Ee=te.end,Ne=Ee-ye,mt=L?Ee:ye-1,bt=this.__iteratees__,Rt=bt.length,qt=0,sr=qn(Ne,this.__takeCount__);if(!x||!L&&W==Ne&&sr==Ne)return Ed(s,this.__actions__);var mr=[];e:for(;Ne--&&qt<sr;){mt+=u;for(var Pr=-1,vr=s[mt];++Pr<Rt;){var Ur=bt[Pr],Yr=Ur.iteratee,es=Ur.type,di=Yr(vr);if(es==se)vr=di;else if(!di){if(es==Q)continue e;break e}}mr[qt++]=vr}return mr}Er.prototype=Yi(Zi.prototype),Er.prototype.constructor=Er;function Ci(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function lu(){this.__data__=Da?Da(null):{},this.size=0}function dd(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function fd(s){var u=this.__data__;if(Da){var x=u[s];return x===d?t:x}return Xr.call(u,s)?u[s]:t}function hd(s){var u=this.__data__;return Da?u[s]!==t:Xr.call(u,s)}function Df(s,u){var x=this.__data__;return this.size+=this.has(s)?0:1,x[s]=Da&&u===t?d:u,this}Ci.prototype.clear=lu,Ci.prototype.delete=dd,Ci.prototype.get=fd,Ci.prototype.has=hd,Ci.prototype.set=Df;function Si(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function Of(){this.__data__=[],this.size=0}function Nf(s){var u=this.__data__,x=ii(u,s);if(x<0)return!1;var L=u.length-1;return x==L?u.pop():Wi.call(u,x,1),--this.size,!0}function cu(s){var u=this.__data__,x=ii(u,s);return x<0?t:u[x][1]}function yl(s){return ii(this.__data__,s)>-1}function Pf(s,u){var x=this.__data__,L=ii(x,s);return L<0?(++this.size,x.push([s,u])):x[L][1]=u,this}Si.prototype.clear=Of,Si.prototype.delete=Nf,Si.prototype.get=cu,Si.prototype.has=yl,Si.prototype.set=Pf;function Ki(s){var u=-1,x=s==null?0:s.length;for(this.clear();++u<x;){var L=s[u];this.set(L[0],L[1])}}function uu(){this.size=0,this.__data__={hash:new Ci,map:new(hs||Si),string:new Ci}}function ic(s){var u=Zh(this,s).delete(s);return this.size-=u?1:0,u}function Bf(s){return Zh(this,s).get(s)}function Ff(s){return Zh(this,s).has(s)}function jf(s,u){var x=Zh(this,s),L=x.size;return x.set(s,u),this.size+=x.size==L?0:1,this}Ki.prototype.clear=uu,Ki.prototype.delete=ic,Ki.prototype.get=Bf,Ki.prototype.has=Ff,Ki.prototype.set=jf;function go(s){var u=-1,x=s==null?0:s.length;for(this.__data__=new Ki;++u<x;)this.add(s[u])}function du(s){return this.__data__.set(s,d),this}function sc(s){return this.__data__.has(s)}go.prototype.add=go.prototype.push=du,go.prototype.has=sc;function Nr(s){var u=this.__data__=new Si(s);this.size=u.size}function zo(){this.__data__=new Si,this.size=0}function Na(s){var u=this.__data__,x=u.delete(s);return this.size=u.size,x}function qs(s){return this.__data__.get(s)}function qr(s){return this.__data__.has(s)}function ms(s,u){var x=this.__data__;if(x instanceof Si){var L=x.__data__;if(!hs||L.length<o-1)return L.push([s,u]),this.size=++x.size,this;x=this.__data__=new Ki(L)}return x.set(s,u),this.size=x.size,this}Nr.prototype.clear=zo,Nr.prototype.delete=Na,Nr.prototype.get=qs,Nr.prototype.has=qr,Nr.prototype.set=ms;function bl(s,u){var x=Tr(s),L=!x&&Lu(s),W=!x&&!L&&Sc(s),te=!x&&!L&&!W&&Dd(s),ye=x||L||W||te,Ee=ye?He(s.length,ad):[],Ne=Ee.length;for(var mt in s)(u||Xr.call(s,mt))&&!(ye&&(mt=="length"||W&&(mt=="offset"||mt=="parent")||te&&(mt=="buffer"||mt=="byteLength"||mt=="byteOffset")||Il(mt,Ne)))&&Ee.push(mt);return Ee}function To(s){var u=s.length;return u?s[Ks(0,u-1)]:t}function Ho(s,u){return Kh(xo(s),Ws(u,0,s.length))}function _i(s){return Kh(xo(s))}function fu(s,u,x){(x!==t&&!ta(s[u],x)||x===t&&!(u in s))&&$o(s,u,x)}function mo(s,u,x){var L=s[u];(!(Xr.call(s,u)&&ta(L,x))||x===t&&!(u in s))&&$o(s,u,x)}function ii(s,u){for(var x=s.length;x--;)if(ta(s[x][0],u))return x;return-1}function Us(s,u,x,L){return vs(s,function(W,te,ye){u(L,W,x(W),ye)}),L}function pd(s,u){return s&&Ko(u,ko(u),s)}function hu(s,u){return s&&Ko(u,ki(u),s)}function $o(s,u,x){u=="__proto__"&&us?us(s,u,{configurable:!0,enumerable:!0,value:x,writable:!0}):s[u]=x}function pu(s,u){for(var x=-1,L=u.length,W=Ze(L),te=s==null;++x<L;)W[x]=te?t:rm(s,u[x]);return W}function Ws(s,u,x){return s===s&&(x!==t&&(s=s<=x?s:x),u!==t&&(s=s>=u?s:u)),s}function vo(s,u,x,L,W,te){var ye,Ee=u&m,Ne=u&g,mt=u&v;if(x&&(ye=W?x(s,L,W,te):x(s)),ye!==t)return ye;if(!Un(s))return s;var bt=Tr(s);if(bt){if(ye=US(s),!Ee)return xo(s,ye)}else{var Rt=Xo(s),qt=Rt==Ae||Rt==$e;if(Sc(s))return Cs(s,Ee);if(Rt==et||Rt==ne||qt&&!W){if(ye=Ne||qt?{}:yy(s),!Ee)return Ne?$f(s,hu(ye,s)):Id(s,pd(ye,s))}else{if(!Fr[Rt])return W?s:{};ye=WS(s,Rt,Ee)}}te||(te=new Nr);var sr=te.get(s);if(sr)return sr;te.set(s,ye),Gy(s)?s.forEach(function(vr){ye.add(vo(vr,u,x,vr,s,te))}):Wy(s)&&s.forEach(function(vr,Ur){ye.set(Ur,vo(vr,u,x,Ur,s,te))});var mr=mt?Ne?$g:Hg:Ne?ki:ko,Pr=bt?t:mr(s);return Jn(Pr||s,function(vr,Ur){Pr&&(Ur=vr,vr=s[Ur]),mo(ye,Ur,vo(vr,u,x,Ur,s,te))}),ye}function gu(s){var u=ko(s);return function(x){return mu(x,s,u)}}function mu(s,u,x){var L=x.length;if(s==null)return!L;for(s=Qr(s);L--;){var W=x[L],te=u[W],ye=s[W];if(ye===t&&!(W in s)||!te(ye))return!1}return!0}function vu(s,u,x){if(typeof s!="function")throw new Zo(a);return Uf(function(){s.apply(t,x)},u)}function Vs(s,u,x,L){var W=-1,te=ji,ye=!0,Ee=s.length,Ne=[],mt=u.length;if(!Ee)return Ne;x&&(u=ln(u,Zt(x))),L?(te=Qn,ye=!1):u.length>=o&&(te=pr,ye=!1,u=new go(u));e:for(;++W<Ee;){var bt=s[W],Rt=x==null?bt:x(bt);if(bt=L||bt!==0?bt:0,ye&&Rt===Rt){for(var qt=mt;qt--;)if(u[qt]===Rt)continue e;Ne.push(bt)}else te(u,Rt,L)||Ne.push(bt)}return Ne}var vs=b(qo),yu=b(lc,!0);function gd(s,u){var x=!0;return vs(s,function(L,W,te){return x=!!u(L,W,te),x}),x}function ac(s,u,x){for(var L=-1,W=s.length;++L<W;){var te=s[L],ye=u(te);if(ye!=null&&(Ee===t?ye===ye&&!Qi(ye):x(ye,Ee)))var Ee=ye,Ne=te}return Ne}function zf(s,u,x,L){var W=s.length;for(x=Lr(x),x<0&&(x=-x>W?0:W+x),L=L===t||L>W?W:Lr(L),L<0&&(L+=W),L=x>L?0:Zy(L);x<L;)s[x++]=u;return s}function md(s,u){var x=[];return vs(s,function(L,W,te){u(L,W,te)&&x.push(L)}),x}function eo(s,u,x,L,W){var te=-1,ye=s.length;for(x||(x=GS),W||(W=[]);++te<ye;){var Ee=s[te];u>0&&x(Ee)?u>1?eo(Ee,u-1,x,L,W):Po(W,Ee):L||(W[W.length]=Ee)}return W}var bu=l(),vd=l(!0);function qo(s,u){return s&&bu(s,u,ko)}function lc(s,u){return s&&vd(s,u,ko)}function Pa(s,u){return ni(u,function(x){return Ml(s[x])})}function ys(s,u){u=Uo(u,s);for(var x=0,L=u.length;s!=null&&x<L;)s=s[Wa(u[x++])];return x&&x==L?s:t}function xl(s,u,x){var L=u(s);return Tr(s)?L:Po(L,x(s))}function Vn(s){return s==null?s===t?gt:Ue:Vi&&Vi in Qr(s)?HS(s):e_(s)}function Gs(s,u){return s>u}function cc(s,u){return s!=null&&Xr.call(s,u)}function Ba(s,u){return s!=null&&u in Qr(s)}function uc(s,u,x){return s>=qn(u,x)&&s<yn(u,x)}function Fa(s,u,x){for(var L=x?Qn:ji,W=s[0].length,te=s.length,ye=te,Ee=Ze(te),Ne=1/0,mt=[];ye--;){var bt=s[ye];ye&&u&&(bt=ln(bt,Zt(u))),Ne=qn(bt.length,Ne),Ee[ye]=!x&&(u||W>=120&&bt.length>=120)?new go(ye&&bt):t}bt=s[0];var Rt=-1,qt=Ee[0];e:for(;++Rt<W&&mt.length<Ne;){var sr=bt[Rt],mr=u?u(sr):sr;if(sr=x||sr!==0?sr:0,!(qt?pr(qt,mr):L(mt,mr,x))){for(ye=te;--ye;){var Pr=Ee[ye];if(!(Pr?pr(Pr,mr):L(s[ye],mr,x)))continue e}qt&&qt.push(mr),mt.push(sr)}}return mt}function dc(s,u,x,L){return qo(s,function(W,te,ye){u(L,x(W),te,ye)}),L}function Ai(s,u,x){u=Uo(u,s),s=Cy(s,u);var L=s==null?s:s[Wa(_s(u))];return L==null?t:vn(L,s,x)}function fc(s){return Yn(s)&&Vn(s)==ne}function Ys(s){return Yn(s)&&Vn(s)==vt}function yd(s){return Yn(s)&&Vn(s)==Oe}function wl(s,u,x,L,W){return s===u?!0:s==null||u==null||!Yn(s)&&!Yn(u)?s!==s&&u!==u:ja(s,u,x,L,wl,W)}function ja(s,u,x,L,W,te){var ye=Tr(s),Ee=Tr(u),Ne=ye?ve:Xo(s),mt=Ee?ve:Xo(u);Ne=Ne==ne?et:Ne,mt=mt==ne?et:mt;var bt=Ne==et,Rt=mt==et,qt=Ne==mt;if(qt&&Sc(s)){if(!Sc(u))return!1;ye=!0,bt=!1}if(qt&&!bt)return te||(te=new Nr),ye||Dd(s)?gy(s,u,x,L,W,te):jS(s,u,Ne,x,L,W,te);if(!(x&w)){var sr=bt&&Xr.call(s,"__wrapped__"),mr=Rt&&Xr.call(u,"__wrapped__");if(sr||mr){var Pr=sr?s.value():s,vr=mr?u.value():u;return te||(te=new Nr),W(Pr,vr,x,L,te)}}return qt?(te||(te=new Nr),zS(s,u,x,L,W,te)):!1}function za(s){return Yn(s)&&Xo(s)==Fe}function xu(s,u,x,L){var W=x.length,te=W,ye=!L;if(s==null)return!te;for(s=Qr(s);W--;){var Ee=x[W];if(ye&&Ee[2]?Ee[1]!==s[Ee[0]]:!(Ee[0]in s))return!1}for(;++W<te;){Ee=x[W];var Ne=Ee[0],mt=s[Ne],bt=Ee[1];if(ye&&Ee[2]){if(mt===t&&!(Ne in s))return!1}else{var Rt=new Nr;if(L)var qt=L(mt,bt,Ne,s,u,Rt);if(!(qt===t?wl(bt,mt,w|T,L,Rt):qt))return!1}}return!0}function bd(s){if(!Un(s)||ZS(s))return!1;var u=Ml(s)?iu:kt;return u.test(Mu(s))}function Zs(s){return Yn(s)&&Vn(s)==It}function hc(s){return Yn(s)&&Xo(s)==Je}function Xi(s){return Yn(s)&&rp(s.length)&&!!Ir[Vn(s)]}function pc(s){return typeof s=="function"?s:s==null?Ii:typeof s=="object"?Tr(s)?Sl(s[0],s[1]):Ei(s):s0(s)}function Ji(s){if(!qf(s))return cd(s);var u=[];for(var x in Qr(s))Xr.call(s,x)&&x!="constructor"&&u.push(x);return u}function Cl(s){if(!Un(s))return QS(s);var u=qf(s),x=[];for(var L in s)L=="constructor"&&(u||!Xr.call(s,L))||x.push(L);return x}function si(s,u){return s<u}function ai(s,u){var x=-1,L=Ri(s)?Ze(s.length):[];return vs(s,function(W,te,ye){L[++x]=u(W,te,ye)}),L}function Ei(s){var u=Ug(s);return u.length==1&&u[0][2]?xy(u[0][0],u[0][1]):function(x){return x===s||xu(x,s,u)}}function Sl(s,u){return Vg(s)&&by(u)?xy(Wa(s),u):function(x){var L=rm(x,s);return L===t&&L===u?nm(x,s):wl(u,L,w|T)}}function bs(s,u,x,L,W){s!==u&&bu(u,function(te,ye){if(W||(W=new Nr),Un(te))li(s,u,ye,x,bs,L,W);else{var Ee=L?L(Yg(s,ye),te,ye+"",s,u,W):t;Ee===t&&(Ee=te),fu(s,ye,Ee)}},ki)}function li(s,u,x,L,W,te,ye){var Ee=Yg(s,x),Ne=Yg(u,x),mt=ye.get(Ne);if(mt){fu(s,x,mt);return}var bt=te?te(Ee,Ne,x+"",s,u,ye):t,Rt=bt===t;if(Rt){var qt=Tr(Ne),sr=!qt&&Sc(Ne),mr=!qt&&!sr&&Dd(Ne);bt=Ne,qt||sr||mr?Tr(Ee)?bt=Ee:ro(Ee)?bt=xo(Ee):sr?(Rt=!1,bt=Cs(Ne,!0)):mr?(Rt=!1,bt=Tl(Ne,!0)):bt=[]:Wf(Ne)||Lu(Ne)?(bt=Ee,Lu(Ee)?bt=Ky(Ee):(!Un(Ee)||Ml(Ee))&&(bt=yy(Ne))):Rt=!1}Rt&&(ye.set(Ne,bt),W(bt,Ne,L,te,ye),ye.delete(Ne)),fu(s,x,bt)}function Ha(s,u){var x=s.length;if(x)return u+=u<0?x:0,Il(u,x)?s[u]:t}function gc(s,u,x){u.length?u=ln(u,function(te){return Tr(te)?function(ye){return ys(ye,te.length===1?te[0]:te)}:te}):u=[Ii];var L=-1;u=ln(u,Zt(gr()));var W=ai(s,function(te,ye,Ee){var Ne=ln(u,function(mt){return mt(te)});return{criteria:Ne,index:++L,value:te}});return de(W,function(te,ye){return Cc(te,ye,x)})}function _l(s,u){return $a(s,u,function(x,L){return nm(s,L)})}function $a(s,u,x){for(var L=-1,W=u.length,te={};++L<W;){var ye=u[L],Ee=ys(s,ye);x(Ee,ye)&&Xs(te,Uo(ye,s),Ee)}return te}function xd(s){return function(u){return ys(u,s)}}function wu(s,u,x,L){var W=L?Yl:zi,te=-1,ye=u.length,Ee=s;for(s===u&&(u=xo(u)),x&&(Ee=ln(s,Zt(x)));++te<ye;)for(var Ne=0,mt=u[te],bt=x?x(mt):mt;(Ne=W(Ee,bt,Ne,L))>-1;)Ee!==s&&Wi.call(Ee,Ne,1),Wi.call(s,Ne,1);return s}function Cu(s,u){for(var x=s?u.length:0,L=x-1;x--;){var W=u[x];if(x==L||W!==te){var te=W;Il(W)?Wi.call(s,W,1):bo(s,W)}}return s}function Ks(s,u){return s+zs(fs()*(u-s+1))}function Su(s,u,x,L){for(var W=-1,te=yn(ka((u-s)/(x||1)),0),ye=Ze(te);te--;)ye[L?te:++W]=s,s+=x;return ye}function mc(s,u){var x="";if(!s||u<1||u>ae)return x;do u%2&&(x+=s),u=zs(u/2),u&&(s+=s);while(u);return x}function Ar(s,u){return Zg(wy(s,u,Ii),s+"")}function Al(s){return To(Od(s))}function _u(s,u){var x=Od(s);return Kh(x,Ws(u,0,x.length))}function Xs(s,u,x,L){if(!Un(s))return s;u=Uo(u,s);for(var W=-1,te=u.length,ye=te-1,Ee=s;Ee!=null&&++W<te;){var Ne=Wa(u[W]),mt=x;if(Ne==="__proto__"||Ne==="constructor"||Ne==="prototype")return s;if(W!=ye){var bt=Ee[Ne];mt=L?L(bt,Ne,Ee):t,mt===t&&(mt=Un(bt)?bt:Il(u[W+1])?[]:{})}mo(Ee,Ne,mt),Ee=Ee[Ne]}return s}var vc=gl?function(s,u){return gl.set(s,u),s}:Ii,wd=us?function(s,u){return us(s,"toString",{configurable:!0,enumerable:!1,value:im(u),writable:!0})}:Ii;function Cd(s){return Kh(Od(s))}function Ro(s,u,x){var L=-1,W=s.length;u<0&&(u=-u>W?0:W+u),x=x>W?W:x,x<0&&(x+=W),W=u>x?0:x-u>>>0,u>>>=0;for(var te=Ze(W);++L<W;)te[L]=s[L+u];return te}function Sd(s,u){var x;return vs(s,function(L,W,te){return x=u(L,W,te),!x}),!!x}function yc(s,u,x){var L=0,W=s==null?L:s.length;if(typeof u=="number"&&u===u&&W<=Se){for(;L<W;){var te=L+W>>>1,ye=s[te];ye!==null&&!Qi(ye)&&(x?ye<=u:ye<u)?L=te+1:W=te}return W}return Au(s,u,Ii,x)}function Au(s,u,x,L){var W=0,te=s==null?0:s.length;if(te===0)return 0;u=x(u);for(var ye=u!==u,Ee=u===null,Ne=Qi(u),mt=u===t;W<te;){var bt=zs((W+te)/2),Rt=x(s[bt]),qt=Rt!==t,sr=Rt===null,mr=Rt===Rt,Pr=Qi(Rt);if(ye)var vr=L||mr;else mt?vr=mr&&(L||qt):Ee?vr=mr&&qt&&(L||!sr):Ne?vr=mr&&qt&&!sr&&(L||!Pr):sr||Pr?vr=!1:vr=L?Rt<=u:Rt<u;vr?W=bt+1:te=bt}return qn(te,he)}function Eu(s,u){for(var x=-1,L=s.length,W=0,te=[];++x<L;){var ye=s[x],Ee=u?u(ye):ye;if(!x||!ta(Ee,Ne)){var Ne=Ee;te[W++]=ye===0?0:ye}}return te}function _d(s){return typeof s=="number"?s:Qi(s)?re:+s}function yo(s){if(typeof s=="string")return s;if(Tr(s))return ln(s,yo)+"";if(Qi(s))return ml?ml.call(s):"";var u=s+"";return u=="0"&&1/s==-oe?"-0":u}function xs(s,u,x){var L=-1,W=ji,te=s.length,ye=!0,Ee=[],Ne=Ee;if(x)ye=!1,W=Qn;else if(te>=o){var mt=u?null:Ua(s);if(mt)return ul(mt);ye=!1,W=pr,Ne=new go}else Ne=u?[]:Ee;e:for(;++L<te;){var bt=s[L],Rt=u?u(bt):bt;if(bt=x||bt!==0?bt:0,ye&&Rt===Rt){for(var qt=Ne.length;qt--;)if(Ne[qt]===Rt)continue e;u&&Ne.push(Rt),Ee.push(bt)}else W(Ne,Rt,x)||(Ne!==Ee&&Ne.push(Rt),Ee.push(bt))}return Ee}function bo(s,u){return u=Uo(u,s),s=Cy(s,u),s==null||delete s[Wa(_s(u))]}function Ad(s,u,x,L){return Xs(s,u,x(ys(s,u)),L)}function Js(s,u,x,L){for(var W=s.length,te=L?W:-1;(L?te--:++te<W)&&u(s[te],te,s););return x?Ro(s,L?0:te,L?te+1:W):Ro(s,L?te+1:0,L?W:te)}function Ed(s,u){var x=s;return x instanceof Er&&(x=x.value()),ll(u,function(L,W){return W.func.apply(W.thisArg,Po([L],W.args))},x)}function to(s,u,x){var L=s.length;if(L<2)return L?xs(s[0]):[];for(var W=-1,te=Ze(L);++W<L;)for(var ye=s[W],Ee=-1;++Ee<L;)Ee!=W&&(te[W]=Vs(te[W]||ye,s[Ee],u,x));return xs(eo(te,1),u,x)}function Td(s,u,x){for(var L=-1,W=s.length,te=u.length,ye={};++L<W;){var Ee=L<te?u[L]:t;x(ye,s[L],Ee)}return ye}function bc(s){return ro(s)?s:[]}function xc(s){return typeof s=="function"?s:Ii}function Uo(s,u){return Tr(s)?s:Vg(s,u)?[s]:Ey(gn(s))}var Rd=Ar;function ws(s,u,x){var L=s.length;return x=x===t?L:x,!u&&x>=L?s:Ro(s,u,x)}var wc=Mf||function(s){return Cr.clearTimeout(s)};function Cs(s,u){if(u)return s.slice();var x=s.length,L=fl?fl(x):new s.constructor(x);return s.copy(L),L}function Qs(s){var u=new s.constructor(s.byteLength);return new dl(u).set(new dl(s)),u}function Hf(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.byteLength)}function Tu(s){var u=new s.constructor(s.source,Dt.exec(s));return u.lastIndex=s.lastIndex,u}function El(s){return $s?Qr($s.call(s)):{}}function Tl(s,u){var x=u?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.length)}function Ru(s,u){if(s!==u){var x=s!==t,L=s===null,W=s===s,te=Qi(s),ye=u!==t,Ee=u===null,Ne=u===u,mt=Qi(u);if(!Ee&&!mt&&!te&&s>u||te&&ye&&Ne&&!Ee&&!mt||L&&ye&&Ne||!x&&Ne||!W)return 1;if(!L&&!te&&!mt&&s<u||mt&&x&&W&&!L&&!te||Ee&&x&&W||!ye&&W||!Ne)return-1}return 0}function Cc(s,u,x){for(var L=-1,W=s.criteria,te=u.criteria,ye=W.length,Ee=x.length;++L<ye;){var Ne=Ru(W[L],te[L]);if(Ne){if(L>=Ee)return Ne;var mt=x[L];return Ne*(mt=="desc"?-1:1)}}return s.index-u.index}function ku(s,u,x,L){for(var W=-1,te=s.length,ye=x.length,Ee=-1,Ne=u.length,mt=yn(te-ye,0),bt=Ze(Ne+mt),Rt=!L;++Ee<Ne;)bt[Ee]=u[Ee];for(;++W<ye;)(Rt||W<te)&&(bt[x[W]]=s[W]);for(;mt--;)bt[Ee++]=s[W++];return bt}function kd(s,u,x,L){for(var W=-1,te=s.length,ye=-1,Ee=x.length,Ne=-1,mt=u.length,bt=yn(te-Ee,0),Rt=Ze(bt+mt),qt=!L;++W<bt;)Rt[W]=s[W];for(var sr=W;++Ne<mt;)Rt[sr+Ne]=u[Ne];for(;++ye<Ee;)(qt||W<te)&&(Rt[sr+x[ye]]=s[W++]);return Rt}function xo(s,u){var x=-1,L=s.length;for(u||(u=Ze(L));++x<L;)u[x]=s[x];return u}function Ko(s,u,x,L){var W=!x;x||(x={});for(var te=-1,ye=u.length;++te<ye;){var Ee=u[te],Ne=L?L(x[Ee],s[Ee],Ee,x,s):t;Ne===t&&(Ne=s[Ee]),W?$o(x,Ee,Ne):mo(x,Ee,Ne)}return x}function Id(s,u){return Ko(s,Wg(s),u)}function $f(s,u){return Ko(s,my(s),u)}function Rl(s,u){return function(x,L){var W=Tr(x)?Ns:Us,te=u?u():{};return W(x,s,gr(L,2),te)}}function qa(s){return Ar(function(u,x){var L=-1,W=x.length,te=W>1?x[W-1]:t,ye=W>2?x[2]:t;for(te=s.length>3&&typeof te=="function"?(W--,te):t,ye&&ui(x[0],x[1],ye)&&(te=W<3?t:te,W=1),u=Qr(u);++L<W;){var Ee=x[L];Ee&&s(u,Ee,L,te)}return u})}function b(s,u){return function(x,L){if(x==null)return x;if(!Ri(x))return s(x,L);for(var W=x.length,te=u?W:-1,ye=Qr(x);(u?te--:++te<W)&&L(ye[te],te,ye)!==!1;);return x}}function l(s){return function(u,x,L){for(var W=-1,te=Qr(u),ye=L(u),Ee=ye.length;Ee--;){var Ne=ye[s?Ee:++W];if(x(te[Ne],Ne,te)===!1)break}return u}}function f(s,u,x){var L=u&_,W=N(s);function te(){var ye=this&&this!==Cr&&this instanceof te?W:s;return ye.apply(L?x:this,arguments)}return te}function y(s){return function(u){u=gn(u);var x=_a(u)?Sn(u):t,L=x?x[0]:u.charAt(0),W=x?ws(x,1).join(""):u.slice(1);return L[s]()+W}}function E(s){return function(u){return ll(o0(n0(u).replace(yi,"")),s,"")}}function N(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var x=Yi(s.prototype),L=s.apply(x,u);return Un(L)?L:x}}function q(s,u,x){var L=N(s);function W(){for(var te=arguments.length,ye=Ze(te),Ee=te,Ne=Ld(W);Ee--;)ye[Ee]=arguments[Ee];var mt=te<3&&ye[0]!==Ne&&ye[te-1]!==Ne?[]:Hi(ye,Ne);if(te-=mt.length,te<x)return Ss(s,u,je,W.placeholder,t,ye,mt,t,t,x-te);var bt=this&&this!==Cr&&this instanceof W?L:s;return vn(bt,this,ye)}return W}function K(s){return function(u,x,L){var W=Qr(u);if(!Ri(u)){var te=gr(x,3);u=ko(u),x=function(Ee){return te(W[Ee],Ee,W)}}var ye=s(u,x,L);return ye>-1?W[te?u[ye]:ye]:t}}function me(s){return kl(function(u){var x=u.length,L=x,W=co.prototype.thru;for(s&&u.reverse();L--;){var te=u[L];if(typeof te!="function")throw new Zo(a);if(W&&!ye&&Yh(te)=="wrapper")var ye=new co([],!0)}for(L=ye?L:x;++L<x;){te=u[L];var Ee=Yh(te),Ne=Ee=="wrapper"?qg(te):t;Ne&&Gg(Ne[0])&&Ne[1]==(j|D|B|z)&&!Ne[4].length&&Ne[9]==1?ye=ye[Yh(Ne[0])].apply(ye,Ne[3]):ye=te.length==1&&Gg(te)?ye[Ee]():ye.thru(te)}return function(){var mt=arguments,bt=mt[0];if(ye&&mt.length==1&&Tr(bt))return ye.plant(bt).value();for(var Rt=0,qt=x?u[Rt].apply(this,mt):bt;++Rt<x;)qt=u[Rt].call(this,qt);return qt}})}function je(s,u,x,L,W,te,ye,Ee,Ne,mt){var bt=u&j,Rt=u&_,qt=u&A,sr=u&(D|I),mr=u&G,Pr=qt?t:N(s);function vr(){for(var Ur=arguments.length,Yr=Ze(Ur),es=Ur;es--;)Yr[es]=arguments[es];if(sr)var di=Ld(vr),ts=Bo(Yr,di);if(L&&(Yr=ku(Yr,L,W,sr)),te&&(Yr=kd(Yr,te,ye,sr)),Ur-=ts,sr&&Ur<mt){var no=Hi(Yr,di);return Ss(s,u,je,vr.placeholder,x,Yr,no,Ee,Ne,mt-Ur)}var ra=Rt?x:this,Dl=qt?ra[s]:s;return Ur=Yr.length,Ee?Yr=t_(Yr,Ee):mr&&Ur>1&&Yr.reverse(),bt&&Ne<Ur&&(Yr.length=Ne),this&&this!==Cr&&this instanceof vr&&(Dl=Pr||N(Dl)),Dl.apply(ra,Yr)}return vr}function dt(s,u){return function(x,L){return dc(x,s,u(L),{})}}function At(s,u){return function(x,L){var W;if(x===t&&L===t)return u;if(x!==t&&(W=x),L!==t){if(W===t)return L;typeof x=="string"||typeof L=="string"?(x=yo(x),L=yo(L)):(x=_d(x),L=_d(L)),W=s(x,L)}return W}}function Pt(s){return kl(function(u){return u=ln(u,Zt(gr())),Ar(function(x){var L=this;return s(u,function(W){return vn(W,L,x)})})})}function ur(s,u){u=u===t?" ":yo(u);var x=u.length;if(x<2)return x?mc(u,s):u;var L=mc(u,ka(s/Aa(u)));return _a(u)?ws(Sn(L),0,s).join(""):L.slice(0,s)}function Gr(s,u,x,L){var W=u&_,te=N(s);function ye(){for(var Ee=-1,Ne=arguments.length,mt=-1,bt=L.length,Rt=Ze(bt+Ne),qt=this&&this!==Cr&&this instanceof ye?te:s;++mt<bt;)Rt[mt]=L[mt];for(;Ne--;)Rt[mt++]=arguments[++Ee];return vn(qt,W?x:this,Rt)}return ye}function Gn(s){return function(u,x,L){return L&&typeof L!="number"&&ui(u,x,L)&&(x=L=t),u=Ll(u),x===t?(x=u,u=0):x=Ll(x),L=L===t?u<x?1:-1:Ll(L),Su(u,x,L,s)}}function Ti(s){return function(u,x){return typeof u=="string"&&typeof x=="string"||(u=As(u),x=As(x)),s(u,x)}}function Ss(s,u,x,L,W,te,ye,Ee,Ne,mt){var bt=u&D,Rt=bt?ye:t,qt=bt?t:ye,sr=bt?te:t,mr=bt?t:te;u|=bt?B:F,u&=~(bt?F:B),u&R||(u&=-4);var Pr=[s,u,W,sr,Rt,mr,qt,Ee,Ne,mt],vr=x.apply(t,Pr);return Gg(s)&&Sy(vr,Pr),vr.placeholder=L,_y(vr,s,u)}function ci(s){var u=Ln[s];return function(x,L){if(x=As(x),L=L==null?0:qn(Lr(L),292),L&&Ma(x)){var W=(gn(x)+"e").split("e"),te=u(W[0]+"e"+(+W[1]+L));return W=(gn(te)+"e").split("e"),+(W[0]+"e"+(+W[1]-L))}return u(x)}}var Ua=wi&&1/ul(new wi([,-0]))[1]==oe?function(s){return new wi(s)}:lm;function Md(s){return function(u){var x=Xo(u);return x==Fe?tu(u):x==Je?Tf(u):ut(u,s(u))}}function ea(s,u,x,L,W,te,ye,Ee){var Ne=u&A;if(!Ne&&typeof s!="function")throw new Zo(a);var mt=L?L.length:0;if(mt||(u&=-97,L=W=t),ye=ye===t?ye:yn(Lr(ye),0),Ee=Ee===t?Ee:Lr(Ee),mt-=W?W.length:0,u&F){var bt=L,Rt=W;L=W=t}var qt=Ne?t:qg(s),sr=[s,u,x,L,W,bt,Rt,te,ye,Ee];if(qt&&JS(sr,qt),s=sr[0],u=sr[1],x=sr[2],L=sr[3],W=sr[4],Ee=sr[9]=sr[9]===t?Ne?0:s.length:yn(sr[9]-mt,0),!Ee&&u&(D|I)&&(u&=-25),!u||u==_)var mr=f(s,u,x);else u==D||u==I?mr=q(s,u,Ee):(u==B||u==(_|B))&&!W.length?mr=Gr(s,u,x,L):mr=je.apply(t,sr);var Pr=qt?vc:Sy;return _y(Pr(mr,sr),s,u)}function hy(s,u,x,L){return s===t||ta(s,ls[x])&&!Xr.call(L,x)?u:s}function py(s,u,x,L,W,te){return Un(s)&&Un(u)&&(te.set(u,s),bs(s,u,t,py,te),te.delete(u)),s}function FS(s){return Wf(s)?t:s}function gy(s,u,x,L,W,te){var ye=x&w,Ee=s.length,Ne=u.length;if(Ee!=Ne&&!(ye&&Ne>Ee))return!1;var mt=te.get(s),bt=te.get(u);if(mt&&bt)return mt==u&&bt==s;var Rt=-1,qt=!0,sr=x&T?new go:t;for(te.set(s,u),te.set(u,s);++Rt<Ee;){var mr=s[Rt],Pr=u[Rt];if(L)var vr=ye?L(Pr,mr,Rt,u,s,te):L(mr,Pr,Rt,s,u,te);if(vr!==t){if(vr)continue;qt=!1;break}if(sr){if(!as(u,function(Ur,Yr){if(!pr(sr,Yr)&&(mr===Ur||W(mr,Ur,x,L,te)))return sr.push(Yr)})){qt=!1;break}}else if(!(mr===Pr||W(mr,Pr,x,L,te))){qt=!1;break}}return te.delete(s),te.delete(u),qt}function jS(s,u,x,L,W,te,ye){switch(x){case Nt:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case vt:return!(s.byteLength!=u.byteLength||!te(new dl(s),new dl(u)));case De:case Oe:case Qe:return ta(+s,+u);case _e:return s.name==u.name&&s.message==u.message;case It:case Ke:return s==u+"";case Fe:var Ee=tu;case Je:var Ne=L&w;if(Ee||(Ee=ul),s.size!=u.size&&!Ne)return!1;var mt=ye.get(s);if(mt)return mt==u;L|=T,ye.set(s,u);var bt=gy(Ee(s),Ee(u),L,W,te,ye);return ye.delete(s),bt;case ft:if($s)return $s.call(s)==$s.call(u)}return!1}function zS(s,u,x,L,W,te){var ye=x&w,Ee=Hg(s),Ne=Ee.length,mt=Hg(u),bt=mt.length;if(Ne!=bt&&!ye)return!1;for(var Rt=Ne;Rt--;){var qt=Ee[Rt];if(!(ye?qt in u:Xr.call(u,qt)))return!1}var sr=te.get(s),mr=te.get(u);if(sr&&mr)return sr==u&&mr==s;var Pr=!0;te.set(s,u),te.set(u,s);for(var vr=ye;++Rt<Ne;){qt=Ee[Rt];var Ur=s[qt],Yr=u[qt];if(L)var es=ye?L(Yr,Ur,qt,u,s,te):L(Ur,Yr,qt,s,u,te);if(!(es===t?Ur===Yr||W(Ur,Yr,x,L,te):es)){Pr=!1;break}vr||(vr=qt=="constructor")}if(Pr&&!vr){var di=s.constructor,ts=u.constructor;di!=ts&&"constructor"in s&&"constructor"in u&&!(typeof di=="function"&&di instanceof di&&typeof ts=="function"&&ts instanceof ts)&&(Pr=!1)}return te.delete(s),te.delete(u),Pr}function kl(s){return Zg(wy(s,t,Iy),s+"")}function Hg(s){return xl(s,ko,Wg)}function $g(s){return xl(s,ki,my)}var qg=gl?function(s){return gl.get(s)}:lm;function Yh(s){for(var u=s.name+"",x=Hs[u],L=Xr.call(Hs,u)?x.length:0;L--;){var W=x[L],te=W.func;if(te==null||te==s)return W.name}return u}function Ld(s){var u=Xr.call(Z,"placeholder")?Z:s;return u.placeholder}function gr(){var s=Z.iteratee||sm;return s=s===sm?pc:s,arguments.length?s(arguments[0],arguments[1]):s}function Zh(s,u){var x=s.__data__;return YS(u)?x[typeof u=="string"?"string":"hash"]:x.map}function Ug(s){for(var u=ko(s),x=u.length;x--;){var L=u[x],W=s[L];u[x]=[L,W,by(W)]}return u}function Iu(s,u){var x=Fs(s,u);return bd(x)?x:t}function HS(s){var u=Xr.call(s,Vi),x=s[Vi];try{s[Vi]=t;var L=!0}catch{}var W=qi.call(s);return L&&(u?s[Vi]=x:delete s[Vi]),W}var Wg=Ia?function(s){return s==null?[]:(s=Qr(s),ni(Ia(s),function(u){return Ql.call(s,u)}))}:cm,my=Ia?function(s){for(var u=[];s;)Po(u,Wg(s)),s=js(s);return u}:cm,Xo=Vn;(xi&&Xo(new xi(new ArrayBuffer(1)))!=Nt||hs&&Xo(new hs)!=Fe||La&&Xo(La.resolve())!=ct||wi&&Xo(new wi)!=Je||Gi&&Xo(new Gi)!=Pe)&&(Xo=function(s){var u=Vn(s),x=u==et?s.constructor:t,L=x?Mu(x):"";if(L)switch(L){case ps:return Nt;case au:return Fe;case Lf:return ct;case ud:return Je;case Oa:return Pe}return u});function $S(s,u,x){for(var L=-1,W=x.length;++L<W;){var te=x[L],ye=te.size;switch(te.type){case"drop":s+=ye;break;case"dropRight":u-=ye;break;case"take":u=qn(u,s+ye);break;case"takeRight":s=yn(s,u-ye);break}}return{start:s,end:u}}function qS(s){var u=s.match(Ye);return u?u[1].split(ee):[]}function vy(s,u,x){u=Uo(u,s);for(var L=-1,W=u.length,te=!1;++L<W;){var ye=Wa(u[L]);if(!(te=s!=null&&x(s,ye)))break;s=s[ye]}return te||++L!=W?te:(W=s==null?0:s.length,!!W&&rp(W)&&Il(ye,W)&&(Tr(s)||Lu(s)))}function US(s){var u=s.length,x=new s.constructor(u);return u&&typeof s[0]=="string"&&Xr.call(s,"index")&&(x.index=s.index,x.input=s.input),x}function yy(s){return typeof s.constructor=="function"&&!qf(s)?Yi(js(s)):{}}function WS(s,u,x){var L=s.constructor;switch(u){case vt:return Qs(s);case De:case Oe:return new L(+s);case Nt:return Hf(s,x);case xt:case Lt:case Qt:case Ut:case fr:case hr:case cr:case Te:case le:return Tl(s,x);case Fe:return new L;case Qe:case Ke:return new L(s);case It:return Tu(s);case Je:return new L;case ft:return El(s)}}function VS(s,u){var x=u.length;if(!x)return s;var L=x-1;return u[L]=(x>1?"& ":"")+u[L],u=u.join(x>2?", ":" "),s.replace(jr,`{
|
39
39
|
/* [wrapped with `+u+`] */
|
40
|
-
`)}function GS(s){return Tr(s)||Lu(s)||!!(ec&&s&&s[ec])}function Il(s,u){var x=typeof s;return u=u??ae,!!u&&(x=="number"||x!="symbol"&&ot.test(s))&&s>-1&&s%1==0&&s<u}function ui(s,u,x){if(!Un(x))return!1;var L=typeof u;return(L=="number"?Ri(x)&&Il(u,x.length):L=="string"&&u in x)?ta(x[u],s):!1}function Vg(s,u){if(Tr(s))return!1;var x=typeof s;return x=="number"||x=="symbol"||x=="boolean"||s==null||Qi(s)?!0:Bt.test(s)||!Ot.test(s)||u!=null&&s in Qr(u)}function YS(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function Gg(s){var u=Yh(s),x=Z[u];if(typeof x!="function"||!(u in Er.prototype))return!1;if(s===x)return!0;var L=qg(x);return!!L&&s===L[0]}function ZS(s){return!!pn&&pn in s}var KS=cn?Ml:um;function qf(s){var u=s&&s.constructor,x=typeof u=="function"&&u.prototype||ls;return s===x}function by(s){return s===s&&!Un(s)}function xy(s,u){return function(x){return x==null?!1:x[s]===u&&(u!==t||s in Qr(x))}}function XS(s){var u=ep(s,function(L){return x.size===h&&x.clear(),L}),x=u.cache;return u}function JS(s,u){var x=s[1],L=u[1],W=x|L,te=W<(_|A|j),ye=L==j&&x==D||L==j&&x==z&&s[7].length<=u[8]||L==(j|z)&&u[7].length<=u[8]&&x==D;if(!(te||ye))return s;L&_&&(s[2]=u[2],W|=x&_?0:R);var Ee=u[3];if(Ee){var Oe=s[3];s[3]=Oe?ku(Oe,Ee,u[4]):Ee,s[4]=Oe?Hi(s[3],p):u[4]}return Ee=u[5],Ee&&(Oe=s[5],s[5]=Oe?kd(Oe,Ee,u[6]):Ee,s[6]=Oe?Hi(s[5],p):u[6]),Ee=u[7],Ee&&(s[7]=Ee),L&j&&(s[8]=s[8]==null?u[8]:qn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=W,s}function QS(s){var u=[];if(s!=null)for(var x in Qr(s))u.push(x);return u}function e_(s){return qi.call(s)}function wy(s,u,x){return u=yn(u===t?s.length-1:u,0),function(){for(var L=arguments,W=-1,te=yn(L.length-u,0),ye=Ze(te);++W<te;)ye[W]=L[u+W];W=-1;for(var Ee=Ze(u+1);++W<u;)Ee[W]=L[W];return Ee[u]=x(ye),vn(s,this,Ee)}}function Cy(s,u){return u.length<2?s:ys(s,Ro(u,0,-1))}function t_(s,u){for(var x=s.length,L=qn(u.length,x),W=xo(s);L--;){var te=u[L];s[L]=Il(te,x)?W[te]:t}return s}function Yg(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Sy=Ay(vc),Uf=ld||function(s,u){return Cr.setTimeout(s,u)},Zg=Ay(wd);function _y(s,u,x){var L=u+"";return Zg(s,VS(L,r_(qS(L),x)))}function Ay(s){var u=0,x=0;return function(){var L=ds(),W=V-(L-x);if(x=L,W>0){if(++u>=U)return arguments[0]}else u=0;return s.apply(t,arguments)}}function Kh(s,u){var x=-1,L=s.length,W=L-1;for(u=u===t?L:u;++x<u;){var te=Ks(x,W),ye=s[te];s[te]=s[x],s[x]=ye}return s.length=u,s}var Ey=XS(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(Wt,function(x,L,W,te){u.push(W?te.replace(Tt,"$1"):L||x)}),u});function Wa(s){if(typeof s=="string"||Qi(s))return s;var u=s+"";return u=="0"&&1/s==-oe?"-0":u}function Mu(s){if(s!=null){try{return cs.call(s)}catch{}try{return s+""}catch{}}return""}function r_(s,u){return Jn(Le,function(x){var L="_."+x[0];u&x[1]&&!ji(s,L)&&s.push(L)}),s.sort()}function Ty(s){if(s instanceof Er)return s.clone();var u=new co(s.__wrapped__,s.__chain__);return u.__actions__=xo(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function n_(s,u,x){(x?ui(s,u,x):u===t)?u=1:u=yn(Lr(u),0);var L=s==null?0:s.length;if(!L||u<1)return[];for(var W=0,te=0,ye=Ze(ka(L/u));W<L;)ye[te++]=Ro(s,W,W+=u);return ye}function o_(s){for(var u=-1,x=s==null?0:s.length,L=0,W=[];++u<x;){var te=s[u];te&&(W[L++]=te)}return W}function i_(){var s=arguments.length;if(!s)return[];for(var u=Ze(s-1),x=arguments[0],L=s;L--;)u[L-1]=arguments[L];return Po(Tr(x)?xo(x):[x],eo(u,1))}var s_=Ar(function(s,u){return ro(s)?Vs(s,eo(u,1,ro,!0)):[]}),a_=Ar(function(s,u){var x=_s(u);return ro(x)&&(x=t),ro(s)?Vs(s,eo(u,1,ro,!0),gr(x,2)):[]}),l_=Ar(function(s,u){var x=_s(u);return ro(x)&&(x=t),ro(s)?Vs(s,eo(u,1,ro,!0),t,x):[]});function c_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),Ro(s,u<0?0:u,L)):[]}function u_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),u=L-u,Ro(s,0,u<0?0:u)):[]}function d_(s,u){return s&&s.length?Js(s,gr(u,3),!0,!0):[]}function f_(s,u){return s&&s.length?Js(s,gr(u,3),!0):[]}function h_(s,u,x,L){var W=s==null?0:s.length;return W?(x&&typeof x!="number"&&ui(s,u,x)&&(x=0,L=W),zf(s,u,x,L)):[]}function Ry(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Lr(x);return W<0&&(W=yn(L+W,0)),Bs(s,gr(u,3),W)}function ky(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=L-1;return x!==t&&(W=Lr(x),W=x<0?yn(L+W,0):qn(W,L-1)),Bs(s,gr(u,3),W,!0)}function Iy(s){var u=s==null?0:s.length;return u?eo(s,1):[]}function p_(s){var u=s==null?0:s.length;return u?eo(s,oe):[]}function g_(s,u){var x=s==null?0:s.length;return x?(u=u===t?1:Lr(u),eo(s,u)):[]}function m_(s){for(var u=-1,x=s==null?0:s.length,L={};++u<x;){var W=s[u];L[W[0]]=W[1]}return L}function My(s){return s&&s.length?s[0]:t}function v_(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Lr(x);return W<0&&(W=yn(L+W,0)),zi(s,u,W)}function y_(s){var u=s==null?0:s.length;return u?Ro(s,0,-1):[]}var b_=Ar(function(s){var u=ln(s,bc);return u.length&&u[0]===s[0]?Fa(u):[]}),x_=Ar(function(s){var u=_s(s),x=ln(s,bc);return u===_s(x)?u=t:x.pop(),x.length&&x[0]===s[0]?Fa(x,gr(u,2)):[]}),w_=Ar(function(s){var u=_s(s),x=ln(s,bc);return u=typeof u=="function"?u:t,u&&x.pop(),x.length&&x[0]===s[0]?Fa(x,t,u):[]});function C_(s,u){return s==null?"":pl.call(s,u)}function _s(s){var u=s==null?0:s.length;return u?s[u-1]:t}function S_(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=L;return x!==t&&(W=Lr(x),W=W<0?yn(L+W,0):qn(W,L-1)),u===u?kf(s,u,W):Bs(s,Ca,W,!0)}function __(s,u){return s&&s.length?Ha(s,Lr(u)):t}var A_=Ar(Ly);function Ly(s,u){return s&&s.length&&u&&u.length?wu(s,u):s}function E_(s,u,x){return s&&s.length&&u&&u.length?wu(s,u,gr(x,2)):s}function T_(s,u,x){return s&&s.length&&u&&u.length?wu(s,u,t,x):s}var R_=kl(function(s,u){var x=s==null?0:s.length,L=pu(s,u);return Cu(s,ln(u,function(W){return Il(W,x)?+W:W}).sort(Ru)),L});function k_(s,u){var x=[];if(!(s&&s.length))return x;var L=-1,W=[],te=s.length;for(u=gr(u,3);++L<te;){var ye=s[L];u(ye,L,s)&&(x.push(ye),W.push(L))}return Cu(s,W),x}function Kg(s){return s==null?s:rc.call(s)}function I_(s,u,x){var L=s==null?0:s.length;return L?(x&&typeof x!="number"&&ui(s,u,x)?(u=0,x=L):(u=u==null?0:Lr(u),x=x===t?L:Lr(x)),Ro(s,u,x)):[]}function M_(s,u){return yc(s,u)}function L_(s,u,x){return Au(s,u,gr(x,2))}function D_(s,u){var x=s==null?0:s.length;if(x){var L=yc(s,u);if(L<x&&ta(s[L],u))return L}return-1}function O_(s,u){return yc(s,u,!0)}function N_(s,u,x){return Au(s,u,gr(x,2),!0)}function P_(s,u){var x=s==null?0:s.length;if(x){var L=yc(s,u,!0)-1;if(ta(s[L],u))return L}return-1}function B_(s){return s&&s.length?Eu(s):[]}function F_(s,u){return s&&s.length?Eu(s,gr(u,2)):[]}function j_(s){var u=s==null?0:s.length;return u?Ro(s,1,u):[]}function z_(s,u,x){return s&&s.length?(u=x||u===t?1:Lr(u),Ro(s,0,u<0?0:u)):[]}function H_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),u=L-u,Ro(s,u<0?0:u,L)):[]}function $_(s,u){return s&&s.length?Js(s,gr(u,3),!1,!0):[]}function q_(s,u){return s&&s.length?Js(s,gr(u,3)):[]}var U_=Ar(function(s){return xs(eo(s,1,ro,!0))}),W_=Ar(function(s){var u=_s(s);return ro(u)&&(u=t),xs(eo(s,1,ro,!0),gr(u,2))}),V_=Ar(function(s){var u=_s(s);return u=typeof u=="function"?u:t,xs(eo(s,1,ro,!0),t,u)});function G_(s){return s&&s.length?xs(s):[]}function Y_(s,u){return s&&s.length?xs(s,gr(u,2)):[]}function Z_(s,u){return u=typeof u=="function"?u:t,s&&s.length?xs(s,t,u):[]}function Xg(s){if(!(s&&s.length))return[];var u=0;return s=ni(s,function(x){if(ro(x))return u=yn(x.length,u),!0}),He(u,function(x){return ln(s,M(x))})}function Dy(s,u){if(!(s&&s.length))return[];var x=Xg(s);return u==null?x:ln(x,function(L){return vn(u,t,L)})}var K_=Ar(function(s,u){return ro(s)?Vs(s,u):[]}),X_=Ar(function(s){return to(ni(s,ro))}),J_=Ar(function(s){var u=_s(s);return ro(u)&&(u=t),to(ni(s,ro),gr(u,2))}),Q_=Ar(function(s){var u=_s(s);return u=typeof u=="function"?u:t,to(ni(s,ro),t,u)}),eA=Ar(Xg);function tA(s,u){return Td(s||[],u||[],mo)}function rA(s,u){return Td(s||[],u||[],Xs)}var nA=Ar(function(s){var u=s.length,x=u>1?s[u-1]:t;return x=typeof x=="function"?(s.pop(),x):t,Dy(s,x)});function Oy(s){var u=Z(s);return u.__chain__=!0,u}function oA(s,u){return u(s),s}function Xh(s,u){return u(s)}var iA=kl(function(s){var u=s.length,x=u?s[0]:0,L=this.__wrapped__,W=function(te){return pu(te,s)};return u>1||this.__actions__.length||!(L instanceof Er)||!Il(x)?this.thru(W):(L=L.slice(x,+x+(u?1:0)),L.__actions__.push({func:Xh,args:[W],thisArg:t}),new co(L,this.__chain__).thru(function(te){return u&&!te.length&&te.push(t),te}))});function sA(){return Oy(this)}function aA(){return new co(this.value(),this.__chain__)}function lA(){this.__values__===t&&(this.__values__=Yy(this.value()));var s=this.__index__>=this.__values__.length,u=s?t:this.__values__[this.__index__++];return{done:s,value:u}}function cA(){return this}function uA(s){for(var u,x=this;x instanceof Zi;){var L=Ty(x);L.__index__=0,L.__values__=t,u?W.__wrapped__=L:u=L;var W=L;x=x.__wrapped__}return W.__wrapped__=s,u}function dA(){var s=this.__wrapped__;if(s instanceof Er){var u=s;return this.__actions__.length&&(u=new Er(this)),u=u.reverse(),u.__actions__.push({func:Xh,args:[Kg],thisArg:t}),new co(u,this.__chain__)}return this.thru(Kg)}function fA(){return Ed(this.__wrapped__,this.__actions__)}var hA=Rl(function(s,u,x){Xr.call(s,x)?++s[x]:$o(s,x,1)});function pA(s,u,x){var L=Tr(s)?al:gd;return x&&ui(s,u,x)&&(u=t),L(s,gr(u,3))}function gA(s,u){var x=Tr(s)?ni:md;return x(s,gr(u,3))}var mA=K(Ry),vA=K(ky);function yA(s,u){return eo(Jh(s,u),1)}function bA(s,u){return eo(Jh(s,u),oe)}function xA(s,u,x){return x=x===t?1:Lr(x),eo(Jh(s,u),x)}function Ny(s,u){var x=Tr(s)?Jn:vs;return x(s,gr(u,3))}function Py(s,u){var x=Tr(s)?Ul:yu;return x(s,gr(u,3))}var wA=Rl(function(s,u,x){Xr.call(s,x)?s[x].push(u):$o(s,x,[u])});function CA(s,u,x,L){s=Ri(s)?s:Od(s),x=x&&!L?Lr(x):0;var W=s.length;return x<0&&(x=yn(W+x,0)),np(s)?x<=W&&s.indexOf(u,x)>-1:!!W&&zi(s,u,x)>-1}var SA=Ar(function(s,u,x){var L=-1,W=typeof u=="function",te=Ri(s)?Ze(s.length):[];return vs(s,function(ye){te[++L]=W?vn(u,ye,x):Ai(ye,u,x)}),te}),_A=Rl(function(s,u,x){$o(s,x,u)});function Jh(s,u){var x=Tr(s)?ln:ai;return x(s,gr(u,3))}function AA(s,u,x,L){return s==null?[]:(Tr(u)||(u=u==null?[]:[u]),x=L?t:x,Tr(x)||(x=x==null?[]:[x]),gc(s,u,x))}var EA=Rl(function(s,u,x){s[x?0:1].push(u)},function(){return[[],[]]});function TA(s,u,x){var L=Tr(s)?ll:Y,W=arguments.length<3;return L(s,gr(u,4),x,W,vs)}function RA(s,u,x){var L=Tr(s)?Wl:Y,W=arguments.length<3;return L(s,gr(u,4),x,W,yu)}function kA(s,u){var x=Tr(s)?ni:md;return x(s,tp(gr(u,3)))}function IA(s){var u=Tr(s)?To:Al;return u(s)}function MA(s,u,x){(x?ui(s,u,x):u===t)?u=1:u=Lr(u);var L=Tr(s)?Ho:_u;return L(s,u)}function LA(s){var u=Tr(s)?_i:Cd;return u(s)}function DA(s){if(s==null)return 0;if(Ri(s))return np(s)?Aa(s):s.length;var u=Xo(s);return u==Fe||u==Je?s.size:Ji(s).length}function OA(s,u,x){var L=Tr(s)?as:Sd;return x&&ui(s,u,x)&&(u=t),L(s,gr(u,3))}var NA=Ar(function(s,u){if(s==null)return[];var x=u.length;return x>1&&ui(s,u[0],u[1])?u=[]:x>2&&ui(u[0],u[1],u[2])&&(u=[u[0]]),gc(s,eo(u,1),[])}),Qh=hl||function(){return Cr.Date.now()};function PA(s,u){if(typeof u!="function")throw new Zo(a);return s=Lr(s),function(){if(--s<1)return u.apply(this,arguments)}}function By(s,u,x){return u=x?t:u,u=s&&u==null?s.length:u,ea(s,j,t,t,t,t,u)}function Fy(s,u){var x;if(typeof u!="function")throw new Zo(a);return s=Lr(s),function(){return--s>0&&(x=u.apply(this,arguments)),s<=1&&(u=t),x}}var Jg=Ar(function(s,u,x){var L=_;if(x.length){var W=Hi(x,Ld(Jg));L|=B}return ea(s,L,u,x,W)}),jy=Ar(function(s,u,x){var L=_|A;if(x.length){var W=Hi(x,Ld(jy));L|=B}return ea(u,L,s,x,W)});function zy(s,u,x){u=x?t:u;var L=ea(s,D,t,t,t,t,t,u);return L.placeholder=zy.placeholder,L}function Hy(s,u,x){u=x?t:u;var L=ea(s,I,t,t,t,t,t,u);return L.placeholder=Hy.placeholder,L}function $y(s,u,x){var L,W,te,ye,Ee,Oe,mt=0,bt=!1,Rt=!1,qt=!0;if(typeof s!="function")throw new Zo(a);u=As(u)||0,Un(x)&&(bt=!!x.leading,Rt="maxWait"in x,te=Rt?yn(As(x.maxWait)||0,u):te,qt="trailing"in x?!!x.trailing:qt);function sr(no){var ra=L,Dl=W;return L=W=t,mt=no,ye=s.apply(Dl,ra),ye}function mr(no){return mt=no,Ee=Uf(Ur,u),bt?sr(no):ye}function Pr(no){var ra=no-Oe,Dl=no-mt,a0=u-ra;return Rt?qn(a0,te-Dl):a0}function vr(no){var ra=no-Oe,Dl=no-mt;return Oe===t||ra>=u||ra<0||Rt&&Dl>=te}function Ur(){var no=Qh();if(vr(no))return Yr(no);Ee=Uf(Ur,Pr(no))}function Yr(no){return Ee=t,qt&&L?sr(no):(L=W=t,ye)}function es(){Ee!==t&&wc(Ee),mt=0,L=Oe=W=Ee=t}function di(){return Ee===t?ye:Yr(Qh())}function ts(){var no=Qh(),ra=vr(no);if(L=arguments,W=this,Oe=no,ra){if(Ee===t)return mr(Oe);if(Rt)return wc(Ee),Ee=Uf(Ur,u),sr(Oe)}return Ee===t&&(Ee=Uf(Ur,u)),ye}return ts.cancel=es,ts.flush=di,ts}var BA=Ar(function(s,u){return vu(s,1,u)}),FA=Ar(function(s,u,x){return vu(s,As(u)||0,x)});function jA(s){return ea(s,G)}function ep(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Zo(a);var x=function(){var L=arguments,W=u?u.apply(this,L):L[0],te=x.cache;if(te.has(W))return te.get(W);var ye=s.apply(this,L);return x.cache=te.set(W,ye)||te,ye};return x.cache=new(ep.Cache||Ki),x}ep.Cache=Ki;function tp(s){if(typeof s!="function")throw new Zo(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function zA(s){return Fy(2,s)}var HA=Rd(function(s,u){u=u.length==1&&Tr(u[0])?ln(u[0],Zt(gr())):ln(eo(u,1),Zt(gr()));var x=u.length;return Ar(function(L){for(var W=-1,te=qn(L.length,x);++W<te;)L[W]=u[W].call(this,L[W]);return vn(s,this,L)})}),Qg=Ar(function(s,u){var x=Hi(u,Ld(Qg));return ea(s,B,t,u,x)}),qy=Ar(function(s,u){var x=Hi(u,Ld(qy));return ea(s,F,t,u,x)}),$A=kl(function(s,u){return ea(s,z,t,t,t,u)});function qA(s,u){if(typeof s!="function")throw new Zo(a);return u=u===t?u:Lr(u),Ar(s,u)}function UA(s,u){if(typeof s!="function")throw new Zo(a);return u=u==null?0:yn(Lr(u),0),Ar(function(x){var L=x[u],W=ws(x,0,u);return L&&Po(W,L),vn(s,this,W)})}function WA(s,u,x){var L=!0,W=!0;if(typeof s!="function")throw new Zo(a);return Un(x)&&(L="leading"in x?!!x.leading:L,W="trailing"in x?!!x.trailing:W),$y(s,u,{leading:L,maxWait:u,trailing:W})}function VA(s){return By(s,1)}function GA(s,u){return Qg(xc(u),s)}function YA(){if(!arguments.length)return[];var s=arguments[0];return Tr(s)?s:[s]}function ZA(s){return vo(s,v)}function KA(s,u){return u=typeof u=="function"?u:t,vo(s,v,u)}function XA(s){return vo(s,m|v)}function JA(s,u){return u=typeof u=="function"?u:t,vo(s,m|v,u)}function QA(s,u){return u==null||mu(s,u,ko(u))}function ta(s,u){return s===u||s!==s&&u!==u}var eE=Ti(Gs),tE=Ti(function(s,u){return s>=u}),Lu=fc(function(){return arguments}())?fc:function(s){return Yn(s)&&Xr.call(s,"callee")&&!Ql.call(s,"callee")},Tr=Ze.isArray,rE=hn?Zt(hn):Ys;function Ri(s){return s!=null&&rp(s.length)&&!Ml(s)}function ro(s){return Yn(s)&&Ri(s)}function nE(s){return s===!0||s===!1||Yn(s)&&Vn(s)==Pe}var Sc=tc||um,oE=po?Zt(po):yd;function iE(s){return Yn(s)&&s.nodeType===1&&!Wf(s)}function sE(s){if(s==null)return!0;if(Ri(s)&&(Tr(s)||typeof s=="string"||typeof s.splice=="function"||Sc(s)||Dd(s)||Lu(s)))return!s.length;var u=Xo(s);if(u==Fe||u==Je)return!s.size;if(qf(s))return!Ji(s).length;for(var x in s)if(Xr.call(s,x))return!1;return!0}function aE(s,u){return wl(s,u)}function lE(s,u,x){x=typeof x=="function"?x:t;var L=x?x(s,u):t;return L===t?wl(s,u,t,x):!!L}function em(s){if(!Yn(s))return!1;var u=Vn(s);return u==_e||u==we||typeof s.message=="string"&&typeof s.name=="string"&&!Wf(s)}function cE(s){return typeof s=="number"&&Ma(s)}function Ml(s){if(!Un(s))return!1;var u=Vn(s);return u==Ae||u==$e||u==ke||u==Ct}function Uy(s){return typeof s=="number"&&s==Lr(s)}function rp(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=ae}function Un(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Yn(s){return s!=null&&typeof s=="object"}var Wy=Eo?Zt(Eo):za;function uE(s,u){return s===u||xu(s,u,Ug(u))}function dE(s,u,x){return x=typeof x=="function"?x:t,xu(s,u,Ug(u),x)}function fE(s){return Vy(s)&&s!=+s}function hE(s){if(KS(s))throw new dr(i);return bd(s)}function pE(s){return s===null}function gE(s){return s==null}function Vy(s){return typeof s=="number"||Yn(s)&&Vn(s)==Qe}function Wf(s){if(!Yn(s)||Vn(s)!=et)return!1;var u=js(s);if(u===null)return!0;var x=Xr.call(u,"constructor")&&u.constructor;return typeof x=="function"&&x instanceof x&&cs.call(x)==nu}var tm=Xn?Zt(Xn):Zs;function mE(s){return Uy(s)&&s>=-ae&&s<=ae}var Gy=Fi?Zt(Fi):hc;function np(s){return typeof s=="string"||!Tr(s)&&Yn(s)&&Vn(s)==Ke}function Qi(s){return typeof s=="symbol"||Yn(s)&&Vn(s)==ft}var Dd=ri?Zt(ri):Xi;function vE(s){return s===t}function yE(s){return Yn(s)&&Xo(s)==Ne}function bE(s){return Yn(s)&&Vn(s)==Xe}var xE=Ti(si),wE=Ti(function(s,u){return s<=u});function Yy(s){if(!s)return[];if(Ri(s))return np(s)?Sn(s):xo(s);if(oi&&s[oi])return eu(s[oi]());var u=Xo(s),x=u==Fe?tu:u==Je?ul:Od;return x(s)}function Ll(s){if(!s)return s===0?s:0;if(s=As(s),s===oe||s===-oe){var u=s<0?-1:1;return u*ge}return s===s?s:0}function Lr(s){var u=Ll(s),x=u%1;return u===u?x?u-x:u:0}function Zy(s){return s?Ws(Lr(s),0,ie):0}function As(s){if(typeof s=="number")return s;if(Qi(s))return re;if(Un(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Un(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Mt(s);var x=Jt.test(s);return x||xe.test(s)?Kt(s.slice(2),x?2:8):er.test(s)?re:+s}function Ky(s){return Ko(s,ki(s))}function CE(s){return s?Ws(Lr(s),-ae,ae):s===0?s:0}function gn(s){return s==null?"":yo(s)}var SE=qa(function(s,u){if(qf(u)||Ri(u)){Ko(u,ko(u),s);return}for(var x in u)Xr.call(u,x)&&mo(s,x,u[x])}),Xy=qa(function(s,u){Ko(u,ki(u),s)}),op=qa(function(s,u,x,L){Ko(u,ki(u),s,L)}),_E=qa(function(s,u,x,L){Ko(u,ko(u),s,L)}),AE=kl(pu);function EE(s,u){var x=Yi(s);return u==null?x:pd(x,u)}var TE=Ar(function(s,u){s=Qr(s);var x=-1,L=u.length,W=L>2?u[2]:t;for(W&&ui(u[0],u[1],W)&&(L=1);++x<L;)for(var te=u[x],ye=ki(te),Ee=-1,Oe=ye.length;++Ee<Oe;){var mt=ye[Ee],bt=s[mt];(bt===t||ta(bt,ls[mt])&&!Xr.call(s,mt))&&(s[mt]=te[mt])}return s}),RE=Ar(function(s){return s.push(t,py),vn(Jy,t,s)});function kE(s,u){return Ps(s,gr(u,3),qo)}function IE(s,u){return Ps(s,gr(u,3),lc)}function ME(s,u){return s==null?s:bu(s,gr(u,3),ki)}function LE(s,u){return s==null?s:vd(s,gr(u,3),ki)}function DE(s,u){return s&&qo(s,gr(u,3))}function OE(s,u){return s&&lc(s,gr(u,3))}function NE(s){return s==null?[]:Pa(s,ko(s))}function PE(s){return s==null?[]:Pa(s,ki(s))}function rm(s,u,x){var L=s==null?t:ys(s,u);return L===t?x:L}function BE(s,u){return s!=null&&vy(s,u,cc)}function nm(s,u){return s!=null&&vy(s,u,Ba)}var FE=dt(function(s,u,x){u!=null&&typeof u.toString!="function"&&(u=qi.call(u)),s[u]=x},im(Ii)),jE=dt(function(s,u,x){u!=null&&typeof u.toString!="function"&&(u=qi.call(u)),Xr.call(s,u)?s[u].push(x):s[u]=[x]},gr),zE=Ar(Ai);function ko(s){return Ri(s)?bl(s):Ji(s)}function ki(s){return Ri(s)?bl(s,!0):Cl(s)}function HE(s,u){var x={};return u=gr(u,3),qo(s,function(L,W,te){$o(x,u(L,W,te),L)}),x}function $E(s,u){var x={};return u=gr(u,3),qo(s,function(L,W,te){$o(x,W,u(L,W,te))}),x}var qE=qa(function(s,u,x){bs(s,u,x)}),Jy=qa(function(s,u,x,L){bs(s,u,x,L)}),UE=kl(function(s,u){var x={};if(s==null)return x;var L=!1;u=ln(u,function(te){return te=Uo(te,s),L||(L=te.length>1),te}),Ko(s,$g(s),x),L&&(x=vo(x,m|g|v,FS));for(var W=u.length;W--;)bo(x,u[W]);return x});function WE(s,u){return Qy(s,tp(gr(u)))}var VE=kl(function(s,u){return s==null?{}:_l(s,u)});function Qy(s,u){if(s==null)return{};var x=ln($g(s),function(L){return[L]});return u=gr(u),$a(s,x,function(L,W){return u(L,W[0])})}function GE(s,u,x){u=Uo(u,s);var L=-1,W=u.length;for(W||(W=1,s=t);++L<W;){var te=s==null?t:s[Wa(u[L])];te===t&&(L=W,te=x),s=Ml(te)?te.call(s):te}return s}function YE(s,u,x){return s==null?s:Xs(s,u,x)}function ZE(s,u,x,L){return L=typeof L=="function"?L:t,s==null?s:Xs(s,u,x,L)}var e0=Md(ko),t0=Md(ki);function KE(s,u,x){var L=Tr(s),W=L||Sc(s)||Dd(s);if(u=gr(u,4),x==null){var te=s&&s.constructor;W?x=L?new te:[]:Un(s)?x=Ml(te)?Yi(js(s)):{}:x={}}return(W?Jn:qo)(s,function(ye,Ee,Oe){return u(x,ye,Ee,Oe)}),x}function XE(s,u){return s==null?!0:bo(s,u)}function JE(s,u,x){return s==null?s:Ad(s,u,xc(x))}function QE(s,u,x,L){return L=typeof L=="function"?L:t,s==null?s:Ad(s,u,xc(x),L)}function Od(s){return s==null?[]:Sr(s,ko(s))}function e3(s){return s==null?[]:Sr(s,ki(s))}function t3(s,u,x){return x===t&&(x=u,u=t),x!==t&&(x=As(x),x=x===x?x:0),u!==t&&(u=As(u),u=u===u?u:0),Ws(As(s),u,x)}function r3(s,u,x){return u=Ll(u),x===t?(x=u,u=0):x=Ll(x),s=As(s),uc(s,u,x)}function n3(s,u,x){if(x&&typeof x!="boolean"&&ui(s,u,x)&&(u=x=t),x===t&&(typeof u=="boolean"?(x=u,u=t):typeof s=="boolean"&&(x=s,s=t)),s===t&&u===t?(s=0,u=1):(s=Ll(s),u===t?(u=s,s=0):u=Ll(u)),s>u){var L=s;s=u,u=L}if(x||s%1||u%1){var W=fs();return qn(s+W*(u-s+or("1e-"+((W+"").length-1))),u)}return Ks(s,u)}var o3=E(function(s,u,x){return u=u.toLowerCase(),s+(x?r0(u):u)});function r0(s){return om(gn(s).toLowerCase())}function n0(s){return s=gn(s),s&&s.replace(wt,Fo).replace(bi,"")}function i3(s,u,x){s=gn(s),u=yo(u);var L=s.length;x=x===t?L:Ws(Lr(x),0,L);var W=x;return x-=u.length,x>=0&&s.slice(x,W)==u}function s3(s){return s=gn(s),s&&Ve.test(s)?s.replace(ht,Sa):s}function a3(s){return s=gn(s),s&&ir.test(s)?s.replace(Yt,"\\$&"):s}var l3=E(function(s,u,x){return s+(x?"-":"")+u.toLowerCase()}),c3=E(function(s,u,x){return s+(x?" ":"")+u.toLowerCase()}),u3=y("toLowerCase");function d3(s,u,x){s=gn(s),u=Lr(u);var L=u?Aa(s):0;if(!u||L>=u)return s;var W=(u-L)/2;return ur(zs(W),x)+s+ur(ka(W),x)}function f3(s,u,x){s=gn(s),u=Lr(u);var L=u?Aa(s):0;return u&&L<u?s+ur(u-L,x):s}function h3(s,u,x){s=gn(s),u=Lr(u);var L=u?Aa(s):0;return u&&L<u?ur(u-L,x)+s:s}function p3(s,u,x){return x||u==null?u=0:u&&(u=+u),su(gn(s).replace(zt,""),u||0)}function g3(s,u,x){return(x?ui(s,u,x):u===t)?u=1:u=Lr(u),mc(gn(s),u)}function m3(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var v3=E(function(s,u,x){return s+(x?"_":"")+u.toLowerCase()});function y3(s,u,x){return x&&typeof x!="number"&&ui(s,u,x)&&(u=x=t),x=x===t?ie:x>>>0,x?(s=gn(s),s&&(typeof u=="string"||u!=null&&!tm(u))&&(u=yo(u),!u&&_a(s))?ws(Sn(s),0,x):s.split(u,x)):[]}var b3=E(function(s,u,x){return s+(x?" ":"")+om(u)});function x3(s,u,x){return s=gn(s),x=x==null?0:Ws(Lr(x),0,s.length),u=yo(u),s.slice(x,x+u.length)==u}function w3(s,u,x){var L=Z.templateSettings;x&&ui(s,u,x)&&(u=t),s=gn(s),u=op({},u,L,hy);var W=op({},u.imports,L.imports,hy),te=ko(W),ye=Sr(W,te),Ee,Oe,mt=0,bt=u.interpolate||yr,Rt="__p += '",qt=Ea((u.escape||yr).source+"|"+bt.source+"|"+(bt===_t?jt:yr).source+"|"+(u.evaluate||yr).source+"|$","g"),sr="//# sourceURL="+(Xr.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zr+"]")+`
|
40
|
+
`)}function GS(s){return Tr(s)||Lu(s)||!!(ec&&s&&s[ec])}function Il(s,u){var x=typeof s;return u=u??ae,!!u&&(x=="number"||x!="symbol"&&ot.test(s))&&s>-1&&s%1==0&&s<u}function ui(s,u,x){if(!Un(x))return!1;var L=typeof u;return(L=="number"?Ri(x)&&Il(u,x.length):L=="string"&&u in x)?ta(x[u],s):!1}function Vg(s,u){if(Tr(s))return!1;var x=typeof s;return x=="number"||x=="symbol"||x=="boolean"||s==null||Qi(s)?!0:Bt.test(s)||!Ot.test(s)||u!=null&&s in Qr(u)}function YS(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function Gg(s){var u=Yh(s),x=Z[u];if(typeof x!="function"||!(u in Er.prototype))return!1;if(s===x)return!0;var L=qg(x);return!!L&&s===L[0]}function ZS(s){return!!pn&&pn in s}var KS=cn?Ml:um;function qf(s){var u=s&&s.constructor,x=typeof u=="function"&&u.prototype||ls;return s===x}function by(s){return s===s&&!Un(s)}function xy(s,u){return function(x){return x==null?!1:x[s]===u&&(u!==t||s in Qr(x))}}function XS(s){var u=ep(s,function(L){return x.size===h&&x.clear(),L}),x=u.cache;return u}function JS(s,u){var x=s[1],L=u[1],W=x|L,te=W<(_|A|j),ye=L==j&&x==D||L==j&&x==z&&s[7].length<=u[8]||L==(j|z)&&u[7].length<=u[8]&&x==D;if(!(te||ye))return s;L&_&&(s[2]=u[2],W|=x&_?0:R);var Ee=u[3];if(Ee){var Ne=s[3];s[3]=Ne?ku(Ne,Ee,u[4]):Ee,s[4]=Ne?Hi(s[3],p):u[4]}return Ee=u[5],Ee&&(Ne=s[5],s[5]=Ne?kd(Ne,Ee,u[6]):Ee,s[6]=Ne?Hi(s[5],p):u[6]),Ee=u[7],Ee&&(s[7]=Ee),L&j&&(s[8]=s[8]==null?u[8]:qn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=W,s}function QS(s){var u=[];if(s!=null)for(var x in Qr(s))u.push(x);return u}function e_(s){return qi.call(s)}function wy(s,u,x){return u=yn(u===t?s.length-1:u,0),function(){for(var L=arguments,W=-1,te=yn(L.length-u,0),ye=Ze(te);++W<te;)ye[W]=L[u+W];W=-1;for(var Ee=Ze(u+1);++W<u;)Ee[W]=L[W];return Ee[u]=x(ye),vn(s,this,Ee)}}function Cy(s,u){return u.length<2?s:ys(s,Ro(u,0,-1))}function t_(s,u){for(var x=s.length,L=qn(u.length,x),W=xo(s);L--;){var te=u[L];s[L]=Il(te,x)?W[te]:t}return s}function Yg(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Sy=Ay(vc),Uf=ld||function(s,u){return Cr.setTimeout(s,u)},Zg=Ay(wd);function _y(s,u,x){var L=u+"";return Zg(s,VS(L,r_(qS(L),x)))}function Ay(s){var u=0,x=0;return function(){var L=ds(),W=V-(L-x);if(x=L,W>0){if(++u>=U)return arguments[0]}else u=0;return s.apply(t,arguments)}}function Kh(s,u){var x=-1,L=s.length,W=L-1;for(u=u===t?L:u;++x<u;){var te=Ks(x,W),ye=s[te];s[te]=s[x],s[x]=ye}return s.length=u,s}var Ey=XS(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(Wt,function(x,L,W,te){u.push(W?te.replace(Tt,"$1"):L||x)}),u});function Wa(s){if(typeof s=="string"||Qi(s))return s;var u=s+"";return u=="0"&&1/s==-oe?"-0":u}function Mu(s){if(s!=null){try{return cs.call(s)}catch{}try{return s+""}catch{}}return""}function r_(s,u){return Jn(Le,function(x){var L="_."+x[0];u&x[1]&&!ji(s,L)&&s.push(L)}),s.sort()}function Ty(s){if(s instanceof Er)return s.clone();var u=new co(s.__wrapped__,s.__chain__);return u.__actions__=xo(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function n_(s,u,x){(x?ui(s,u,x):u===t)?u=1:u=yn(Lr(u),0);var L=s==null?0:s.length;if(!L||u<1)return[];for(var W=0,te=0,ye=Ze(ka(L/u));W<L;)ye[te++]=Ro(s,W,W+=u);return ye}function o_(s){for(var u=-1,x=s==null?0:s.length,L=0,W=[];++u<x;){var te=s[u];te&&(W[L++]=te)}return W}function i_(){var s=arguments.length;if(!s)return[];for(var u=Ze(s-1),x=arguments[0],L=s;L--;)u[L-1]=arguments[L];return Po(Tr(x)?xo(x):[x],eo(u,1))}var s_=Ar(function(s,u){return ro(s)?Vs(s,eo(u,1,ro,!0)):[]}),a_=Ar(function(s,u){var x=_s(u);return ro(x)&&(x=t),ro(s)?Vs(s,eo(u,1,ro,!0),gr(x,2)):[]}),l_=Ar(function(s,u){var x=_s(u);return ro(x)&&(x=t),ro(s)?Vs(s,eo(u,1,ro,!0),t,x):[]});function c_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),Ro(s,u<0?0:u,L)):[]}function u_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),u=L-u,Ro(s,0,u<0?0:u)):[]}function d_(s,u){return s&&s.length?Js(s,gr(u,3),!0,!0):[]}function f_(s,u){return s&&s.length?Js(s,gr(u,3),!0):[]}function h_(s,u,x,L){var W=s==null?0:s.length;return W?(x&&typeof x!="number"&&ui(s,u,x)&&(x=0,L=W),zf(s,u,x,L)):[]}function Ry(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Lr(x);return W<0&&(W=yn(L+W,0)),Bs(s,gr(u,3),W)}function ky(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=L-1;return x!==t&&(W=Lr(x),W=x<0?yn(L+W,0):qn(W,L-1)),Bs(s,gr(u,3),W,!0)}function Iy(s){var u=s==null?0:s.length;return u?eo(s,1):[]}function p_(s){var u=s==null?0:s.length;return u?eo(s,oe):[]}function g_(s,u){var x=s==null?0:s.length;return x?(u=u===t?1:Lr(u),eo(s,u)):[]}function m_(s){for(var u=-1,x=s==null?0:s.length,L={};++u<x;){var W=s[u];L[W[0]]=W[1]}return L}function My(s){return s&&s.length?s[0]:t}function v_(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Lr(x);return W<0&&(W=yn(L+W,0)),zi(s,u,W)}function y_(s){var u=s==null?0:s.length;return u?Ro(s,0,-1):[]}var b_=Ar(function(s){var u=ln(s,bc);return u.length&&u[0]===s[0]?Fa(u):[]}),x_=Ar(function(s){var u=_s(s),x=ln(s,bc);return u===_s(x)?u=t:x.pop(),x.length&&x[0]===s[0]?Fa(x,gr(u,2)):[]}),w_=Ar(function(s){var u=_s(s),x=ln(s,bc);return u=typeof u=="function"?u:t,u&&x.pop(),x.length&&x[0]===s[0]?Fa(x,t,u):[]});function C_(s,u){return s==null?"":pl.call(s,u)}function _s(s){var u=s==null?0:s.length;return u?s[u-1]:t}function S_(s,u,x){var L=s==null?0:s.length;if(!L)return-1;var W=L;return x!==t&&(W=Lr(x),W=W<0?yn(L+W,0):qn(W,L-1)),u===u?kf(s,u,W):Bs(s,Ca,W,!0)}function __(s,u){return s&&s.length?Ha(s,Lr(u)):t}var A_=Ar(Ly);function Ly(s,u){return s&&s.length&&u&&u.length?wu(s,u):s}function E_(s,u,x){return s&&s.length&&u&&u.length?wu(s,u,gr(x,2)):s}function T_(s,u,x){return s&&s.length&&u&&u.length?wu(s,u,t,x):s}var R_=kl(function(s,u){var x=s==null?0:s.length,L=pu(s,u);return Cu(s,ln(u,function(W){return Il(W,x)?+W:W}).sort(Ru)),L});function k_(s,u){var x=[];if(!(s&&s.length))return x;var L=-1,W=[],te=s.length;for(u=gr(u,3);++L<te;){var ye=s[L];u(ye,L,s)&&(x.push(ye),W.push(L))}return Cu(s,W),x}function Kg(s){return s==null?s:rc.call(s)}function I_(s,u,x){var L=s==null?0:s.length;return L?(x&&typeof x!="number"&&ui(s,u,x)?(u=0,x=L):(u=u==null?0:Lr(u),x=x===t?L:Lr(x)),Ro(s,u,x)):[]}function M_(s,u){return yc(s,u)}function L_(s,u,x){return Au(s,u,gr(x,2))}function D_(s,u){var x=s==null?0:s.length;if(x){var L=yc(s,u);if(L<x&&ta(s[L],u))return L}return-1}function O_(s,u){return yc(s,u,!0)}function N_(s,u,x){return Au(s,u,gr(x,2),!0)}function P_(s,u){var x=s==null?0:s.length;if(x){var L=yc(s,u,!0)-1;if(ta(s[L],u))return L}return-1}function B_(s){return s&&s.length?Eu(s):[]}function F_(s,u){return s&&s.length?Eu(s,gr(u,2)):[]}function j_(s){var u=s==null?0:s.length;return u?Ro(s,1,u):[]}function z_(s,u,x){return s&&s.length?(u=x||u===t?1:Lr(u),Ro(s,0,u<0?0:u)):[]}function H_(s,u,x){var L=s==null?0:s.length;return L?(u=x||u===t?1:Lr(u),u=L-u,Ro(s,u<0?0:u,L)):[]}function $_(s,u){return s&&s.length?Js(s,gr(u,3),!1,!0):[]}function q_(s,u){return s&&s.length?Js(s,gr(u,3)):[]}var U_=Ar(function(s){return xs(eo(s,1,ro,!0))}),W_=Ar(function(s){var u=_s(s);return ro(u)&&(u=t),xs(eo(s,1,ro,!0),gr(u,2))}),V_=Ar(function(s){var u=_s(s);return u=typeof u=="function"?u:t,xs(eo(s,1,ro,!0),t,u)});function G_(s){return s&&s.length?xs(s):[]}function Y_(s,u){return s&&s.length?xs(s,gr(u,2)):[]}function Z_(s,u){return u=typeof u=="function"?u:t,s&&s.length?xs(s,t,u):[]}function Xg(s){if(!(s&&s.length))return[];var u=0;return s=ni(s,function(x){if(ro(x))return u=yn(x.length,u),!0}),He(u,function(x){return ln(s,M(x))})}function Dy(s,u){if(!(s&&s.length))return[];var x=Xg(s);return u==null?x:ln(x,function(L){return vn(u,t,L)})}var K_=Ar(function(s,u){return ro(s)?Vs(s,u):[]}),X_=Ar(function(s){return to(ni(s,ro))}),J_=Ar(function(s){var u=_s(s);return ro(u)&&(u=t),to(ni(s,ro),gr(u,2))}),Q_=Ar(function(s){var u=_s(s);return u=typeof u=="function"?u:t,to(ni(s,ro),t,u)}),eA=Ar(Xg);function tA(s,u){return Td(s||[],u||[],mo)}function rA(s,u){return Td(s||[],u||[],Xs)}var nA=Ar(function(s){var u=s.length,x=u>1?s[u-1]:t;return x=typeof x=="function"?(s.pop(),x):t,Dy(s,x)});function Oy(s){var u=Z(s);return u.__chain__=!0,u}function oA(s,u){return u(s),s}function Xh(s,u){return u(s)}var iA=kl(function(s){var u=s.length,x=u?s[0]:0,L=this.__wrapped__,W=function(te){return pu(te,s)};return u>1||this.__actions__.length||!(L instanceof Er)||!Il(x)?this.thru(W):(L=L.slice(x,+x+(u?1:0)),L.__actions__.push({func:Xh,args:[W],thisArg:t}),new co(L,this.__chain__).thru(function(te){return u&&!te.length&&te.push(t),te}))});function sA(){return Oy(this)}function aA(){return new co(this.value(),this.__chain__)}function lA(){this.__values__===t&&(this.__values__=Yy(this.value()));var s=this.__index__>=this.__values__.length,u=s?t:this.__values__[this.__index__++];return{done:s,value:u}}function cA(){return this}function uA(s){for(var u,x=this;x instanceof Zi;){var L=Ty(x);L.__index__=0,L.__values__=t,u?W.__wrapped__=L:u=L;var W=L;x=x.__wrapped__}return W.__wrapped__=s,u}function dA(){var s=this.__wrapped__;if(s instanceof Er){var u=s;return this.__actions__.length&&(u=new Er(this)),u=u.reverse(),u.__actions__.push({func:Xh,args:[Kg],thisArg:t}),new co(u,this.__chain__)}return this.thru(Kg)}function fA(){return Ed(this.__wrapped__,this.__actions__)}var hA=Rl(function(s,u,x){Xr.call(s,x)?++s[x]:$o(s,x,1)});function pA(s,u,x){var L=Tr(s)?al:gd;return x&&ui(s,u,x)&&(u=t),L(s,gr(u,3))}function gA(s,u){var x=Tr(s)?ni:md;return x(s,gr(u,3))}var mA=K(Ry),vA=K(ky);function yA(s,u){return eo(Jh(s,u),1)}function bA(s,u){return eo(Jh(s,u),oe)}function xA(s,u,x){return x=x===t?1:Lr(x),eo(Jh(s,u),x)}function Ny(s,u){var x=Tr(s)?Jn:vs;return x(s,gr(u,3))}function Py(s,u){var x=Tr(s)?Ul:yu;return x(s,gr(u,3))}var wA=Rl(function(s,u,x){Xr.call(s,x)?s[x].push(u):$o(s,x,[u])});function CA(s,u,x,L){s=Ri(s)?s:Od(s),x=x&&!L?Lr(x):0;var W=s.length;return x<0&&(x=yn(W+x,0)),np(s)?x<=W&&s.indexOf(u,x)>-1:!!W&&zi(s,u,x)>-1}var SA=Ar(function(s,u,x){var L=-1,W=typeof u=="function",te=Ri(s)?Ze(s.length):[];return vs(s,function(ye){te[++L]=W?vn(u,ye,x):Ai(ye,u,x)}),te}),_A=Rl(function(s,u,x){$o(s,x,u)});function Jh(s,u){var x=Tr(s)?ln:ai;return x(s,gr(u,3))}function AA(s,u,x,L){return s==null?[]:(Tr(u)||(u=u==null?[]:[u]),x=L?t:x,Tr(x)||(x=x==null?[]:[x]),gc(s,u,x))}var EA=Rl(function(s,u,x){s[x?0:1].push(u)},function(){return[[],[]]});function TA(s,u,x){var L=Tr(s)?ll:Y,W=arguments.length<3;return L(s,gr(u,4),x,W,vs)}function RA(s,u,x){var L=Tr(s)?Wl:Y,W=arguments.length<3;return L(s,gr(u,4),x,W,yu)}function kA(s,u){var x=Tr(s)?ni:md;return x(s,tp(gr(u,3)))}function IA(s){var u=Tr(s)?To:Al;return u(s)}function MA(s,u,x){(x?ui(s,u,x):u===t)?u=1:u=Lr(u);var L=Tr(s)?Ho:_u;return L(s,u)}function LA(s){var u=Tr(s)?_i:Cd;return u(s)}function DA(s){if(s==null)return 0;if(Ri(s))return np(s)?Aa(s):s.length;var u=Xo(s);return u==Fe||u==Je?s.size:Ji(s).length}function OA(s,u,x){var L=Tr(s)?as:Sd;return x&&ui(s,u,x)&&(u=t),L(s,gr(u,3))}var NA=Ar(function(s,u){if(s==null)return[];var x=u.length;return x>1&&ui(s,u[0],u[1])?u=[]:x>2&&ui(u[0],u[1],u[2])&&(u=[u[0]]),gc(s,eo(u,1),[])}),Qh=hl||function(){return Cr.Date.now()};function PA(s,u){if(typeof u!="function")throw new Zo(a);return s=Lr(s),function(){if(--s<1)return u.apply(this,arguments)}}function By(s,u,x){return u=x?t:u,u=s&&u==null?s.length:u,ea(s,j,t,t,t,t,u)}function Fy(s,u){var x;if(typeof u!="function")throw new Zo(a);return s=Lr(s),function(){return--s>0&&(x=u.apply(this,arguments)),s<=1&&(u=t),x}}var Jg=Ar(function(s,u,x){var L=_;if(x.length){var W=Hi(x,Ld(Jg));L|=B}return ea(s,L,u,x,W)}),jy=Ar(function(s,u,x){var L=_|A;if(x.length){var W=Hi(x,Ld(jy));L|=B}return ea(u,L,s,x,W)});function zy(s,u,x){u=x?t:u;var L=ea(s,D,t,t,t,t,t,u);return L.placeholder=zy.placeholder,L}function Hy(s,u,x){u=x?t:u;var L=ea(s,I,t,t,t,t,t,u);return L.placeholder=Hy.placeholder,L}function $y(s,u,x){var L,W,te,ye,Ee,Ne,mt=0,bt=!1,Rt=!1,qt=!0;if(typeof s!="function")throw new Zo(a);u=As(u)||0,Un(x)&&(bt=!!x.leading,Rt="maxWait"in x,te=Rt?yn(As(x.maxWait)||0,u):te,qt="trailing"in x?!!x.trailing:qt);function sr(no){var ra=L,Dl=W;return L=W=t,mt=no,ye=s.apply(Dl,ra),ye}function mr(no){return mt=no,Ee=Uf(Ur,u),bt?sr(no):ye}function Pr(no){var ra=no-Ne,Dl=no-mt,a0=u-ra;return Rt?qn(a0,te-Dl):a0}function vr(no){var ra=no-Ne,Dl=no-mt;return Ne===t||ra>=u||ra<0||Rt&&Dl>=te}function Ur(){var no=Qh();if(vr(no))return Yr(no);Ee=Uf(Ur,Pr(no))}function Yr(no){return Ee=t,qt&&L?sr(no):(L=W=t,ye)}function es(){Ee!==t&&wc(Ee),mt=0,L=Ne=W=Ee=t}function di(){return Ee===t?ye:Yr(Qh())}function ts(){var no=Qh(),ra=vr(no);if(L=arguments,W=this,Ne=no,ra){if(Ee===t)return mr(Ne);if(Rt)return wc(Ee),Ee=Uf(Ur,u),sr(Ne)}return Ee===t&&(Ee=Uf(Ur,u)),ye}return ts.cancel=es,ts.flush=di,ts}var BA=Ar(function(s,u){return vu(s,1,u)}),FA=Ar(function(s,u,x){return vu(s,As(u)||0,x)});function jA(s){return ea(s,G)}function ep(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Zo(a);var x=function(){var L=arguments,W=u?u.apply(this,L):L[0],te=x.cache;if(te.has(W))return te.get(W);var ye=s.apply(this,L);return x.cache=te.set(W,ye)||te,ye};return x.cache=new(ep.Cache||Ki),x}ep.Cache=Ki;function tp(s){if(typeof s!="function")throw new Zo(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function zA(s){return Fy(2,s)}var HA=Rd(function(s,u){u=u.length==1&&Tr(u[0])?ln(u[0],Zt(gr())):ln(eo(u,1),Zt(gr()));var x=u.length;return Ar(function(L){for(var W=-1,te=qn(L.length,x);++W<te;)L[W]=u[W].call(this,L[W]);return vn(s,this,L)})}),Qg=Ar(function(s,u){var x=Hi(u,Ld(Qg));return ea(s,B,t,u,x)}),qy=Ar(function(s,u){var x=Hi(u,Ld(qy));return ea(s,F,t,u,x)}),$A=kl(function(s,u){return ea(s,z,t,t,t,u)});function qA(s,u){if(typeof s!="function")throw new Zo(a);return u=u===t?u:Lr(u),Ar(s,u)}function UA(s,u){if(typeof s!="function")throw new Zo(a);return u=u==null?0:yn(Lr(u),0),Ar(function(x){var L=x[u],W=ws(x,0,u);return L&&Po(W,L),vn(s,this,W)})}function WA(s,u,x){var L=!0,W=!0;if(typeof s!="function")throw new Zo(a);return Un(x)&&(L="leading"in x?!!x.leading:L,W="trailing"in x?!!x.trailing:W),$y(s,u,{leading:L,maxWait:u,trailing:W})}function VA(s){return By(s,1)}function GA(s,u){return Qg(xc(u),s)}function YA(){if(!arguments.length)return[];var s=arguments[0];return Tr(s)?s:[s]}function ZA(s){return vo(s,v)}function KA(s,u){return u=typeof u=="function"?u:t,vo(s,v,u)}function XA(s){return vo(s,m|v)}function JA(s,u){return u=typeof u=="function"?u:t,vo(s,m|v,u)}function QA(s,u){return u==null||mu(s,u,ko(u))}function ta(s,u){return s===u||s!==s&&u!==u}var eE=Ti(Gs),tE=Ti(function(s,u){return s>=u}),Lu=fc(function(){return arguments}())?fc:function(s){return Yn(s)&&Xr.call(s,"callee")&&!Ql.call(s,"callee")},Tr=Ze.isArray,rE=hn?Zt(hn):Ys;function Ri(s){return s!=null&&rp(s.length)&&!Ml(s)}function ro(s){return Yn(s)&&Ri(s)}function nE(s){return s===!0||s===!1||Yn(s)&&Vn(s)==De}var Sc=tc||um,oE=po?Zt(po):yd;function iE(s){return Yn(s)&&s.nodeType===1&&!Wf(s)}function sE(s){if(s==null)return!0;if(Ri(s)&&(Tr(s)||typeof s=="string"||typeof s.splice=="function"||Sc(s)||Dd(s)||Lu(s)))return!s.length;var u=Xo(s);if(u==Fe||u==Je)return!s.size;if(qf(s))return!Ji(s).length;for(var x in s)if(Xr.call(s,x))return!1;return!0}function aE(s,u){return wl(s,u)}function lE(s,u,x){x=typeof x=="function"?x:t;var L=x?x(s,u):t;return L===t?wl(s,u,t,x):!!L}function em(s){if(!Yn(s))return!1;var u=Vn(s);return u==_e||u==we||typeof s.message=="string"&&typeof s.name=="string"&&!Wf(s)}function cE(s){return typeof s=="number"&&Ma(s)}function Ml(s){if(!Un(s))return!1;var u=Vn(s);return u==Ae||u==$e||u==ke||u==Ct}function Uy(s){return typeof s=="number"&&s==Lr(s)}function rp(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=ae}function Un(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Yn(s){return s!=null&&typeof s=="object"}var Wy=Eo?Zt(Eo):za;function uE(s,u){return s===u||xu(s,u,Ug(u))}function dE(s,u,x){return x=typeof x=="function"?x:t,xu(s,u,Ug(u),x)}function fE(s){return Vy(s)&&s!=+s}function hE(s){if(KS(s))throw new dr(i);return bd(s)}function pE(s){return s===null}function gE(s){return s==null}function Vy(s){return typeof s=="number"||Yn(s)&&Vn(s)==Qe}function Wf(s){if(!Yn(s)||Vn(s)!=et)return!1;var u=js(s);if(u===null)return!0;var x=Xr.call(u,"constructor")&&u.constructor;return typeof x=="function"&&x instanceof x&&cs.call(x)==nu}var tm=Xn?Zt(Xn):Zs;function mE(s){return Uy(s)&&s>=-ae&&s<=ae}var Gy=Fi?Zt(Fi):hc;function np(s){return typeof s=="string"||!Tr(s)&&Yn(s)&&Vn(s)==Ke}function Qi(s){return typeof s=="symbol"||Yn(s)&&Vn(s)==ft}var Dd=ri?Zt(ri):Xi;function vE(s){return s===t}function yE(s){return Yn(s)&&Xo(s)==Pe}function bE(s){return Yn(s)&&Vn(s)==Xe}var xE=Ti(si),wE=Ti(function(s,u){return s<=u});function Yy(s){if(!s)return[];if(Ri(s))return np(s)?Sn(s):xo(s);if(oi&&s[oi])return eu(s[oi]());var u=Xo(s),x=u==Fe?tu:u==Je?ul:Od;return x(s)}function Ll(s){if(!s)return s===0?s:0;if(s=As(s),s===oe||s===-oe){var u=s<0?-1:1;return u*ge}return s===s?s:0}function Lr(s){var u=Ll(s),x=u%1;return u===u?x?u-x:u:0}function Zy(s){return s?Ws(Lr(s),0,ie):0}function As(s){if(typeof s=="number")return s;if(Qi(s))return re;if(Un(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Un(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Mt(s);var x=Jt.test(s);return x||xe.test(s)?Kt(s.slice(2),x?2:8):er.test(s)?re:+s}function Ky(s){return Ko(s,ki(s))}function CE(s){return s?Ws(Lr(s),-ae,ae):s===0?s:0}function gn(s){return s==null?"":yo(s)}var SE=qa(function(s,u){if(qf(u)||Ri(u)){Ko(u,ko(u),s);return}for(var x in u)Xr.call(u,x)&&mo(s,x,u[x])}),Xy=qa(function(s,u){Ko(u,ki(u),s)}),op=qa(function(s,u,x,L){Ko(u,ki(u),s,L)}),_E=qa(function(s,u,x,L){Ko(u,ko(u),s,L)}),AE=kl(pu);function EE(s,u){var x=Yi(s);return u==null?x:pd(x,u)}var TE=Ar(function(s,u){s=Qr(s);var x=-1,L=u.length,W=L>2?u[2]:t;for(W&&ui(u[0],u[1],W)&&(L=1);++x<L;)for(var te=u[x],ye=ki(te),Ee=-1,Ne=ye.length;++Ee<Ne;){var mt=ye[Ee],bt=s[mt];(bt===t||ta(bt,ls[mt])&&!Xr.call(s,mt))&&(s[mt]=te[mt])}return s}),RE=Ar(function(s){return s.push(t,py),vn(Jy,t,s)});function kE(s,u){return Ps(s,gr(u,3),qo)}function IE(s,u){return Ps(s,gr(u,3),lc)}function ME(s,u){return s==null?s:bu(s,gr(u,3),ki)}function LE(s,u){return s==null?s:vd(s,gr(u,3),ki)}function DE(s,u){return s&&qo(s,gr(u,3))}function OE(s,u){return s&&lc(s,gr(u,3))}function NE(s){return s==null?[]:Pa(s,ko(s))}function PE(s){return s==null?[]:Pa(s,ki(s))}function rm(s,u,x){var L=s==null?t:ys(s,u);return L===t?x:L}function BE(s,u){return s!=null&&vy(s,u,cc)}function nm(s,u){return s!=null&&vy(s,u,Ba)}var FE=dt(function(s,u,x){u!=null&&typeof u.toString!="function"&&(u=qi.call(u)),s[u]=x},im(Ii)),jE=dt(function(s,u,x){u!=null&&typeof u.toString!="function"&&(u=qi.call(u)),Xr.call(s,u)?s[u].push(x):s[u]=[x]},gr),zE=Ar(Ai);function ko(s){return Ri(s)?bl(s):Ji(s)}function ki(s){return Ri(s)?bl(s,!0):Cl(s)}function HE(s,u){var x={};return u=gr(u,3),qo(s,function(L,W,te){$o(x,u(L,W,te),L)}),x}function $E(s,u){var x={};return u=gr(u,3),qo(s,function(L,W,te){$o(x,W,u(L,W,te))}),x}var qE=qa(function(s,u,x){bs(s,u,x)}),Jy=qa(function(s,u,x,L){bs(s,u,x,L)}),UE=kl(function(s,u){var x={};if(s==null)return x;var L=!1;u=ln(u,function(te){return te=Uo(te,s),L||(L=te.length>1),te}),Ko(s,$g(s),x),L&&(x=vo(x,m|g|v,FS));for(var W=u.length;W--;)bo(x,u[W]);return x});function WE(s,u){return Qy(s,tp(gr(u)))}var VE=kl(function(s,u){return s==null?{}:_l(s,u)});function Qy(s,u){if(s==null)return{};var x=ln($g(s),function(L){return[L]});return u=gr(u),$a(s,x,function(L,W){return u(L,W[0])})}function GE(s,u,x){u=Uo(u,s);var L=-1,W=u.length;for(W||(W=1,s=t);++L<W;){var te=s==null?t:s[Wa(u[L])];te===t&&(L=W,te=x),s=Ml(te)?te.call(s):te}return s}function YE(s,u,x){return s==null?s:Xs(s,u,x)}function ZE(s,u,x,L){return L=typeof L=="function"?L:t,s==null?s:Xs(s,u,x,L)}var e0=Md(ko),t0=Md(ki);function KE(s,u,x){var L=Tr(s),W=L||Sc(s)||Dd(s);if(u=gr(u,4),x==null){var te=s&&s.constructor;W?x=L?new te:[]:Un(s)?x=Ml(te)?Yi(js(s)):{}:x={}}return(W?Jn:qo)(s,function(ye,Ee,Ne){return u(x,ye,Ee,Ne)}),x}function XE(s,u){return s==null?!0:bo(s,u)}function JE(s,u,x){return s==null?s:Ad(s,u,xc(x))}function QE(s,u,x,L){return L=typeof L=="function"?L:t,s==null?s:Ad(s,u,xc(x),L)}function Od(s){return s==null?[]:Sr(s,ko(s))}function e3(s){return s==null?[]:Sr(s,ki(s))}function t3(s,u,x){return x===t&&(x=u,u=t),x!==t&&(x=As(x),x=x===x?x:0),u!==t&&(u=As(u),u=u===u?u:0),Ws(As(s),u,x)}function r3(s,u,x){return u=Ll(u),x===t?(x=u,u=0):x=Ll(x),s=As(s),uc(s,u,x)}function n3(s,u,x){if(x&&typeof x!="boolean"&&ui(s,u,x)&&(u=x=t),x===t&&(typeof u=="boolean"?(x=u,u=t):typeof s=="boolean"&&(x=s,s=t)),s===t&&u===t?(s=0,u=1):(s=Ll(s),u===t?(u=s,s=0):u=Ll(u)),s>u){var L=s;s=u,u=L}if(x||s%1||u%1){var W=fs();return qn(s+W*(u-s+or("1e-"+((W+"").length-1))),u)}return Ks(s,u)}var o3=E(function(s,u,x){return u=u.toLowerCase(),s+(x?r0(u):u)});function r0(s){return om(gn(s).toLowerCase())}function n0(s){return s=gn(s),s&&s.replace(wt,Fo).replace(bi,"")}function i3(s,u,x){s=gn(s),u=yo(u);var L=s.length;x=x===t?L:Ws(Lr(x),0,L);var W=x;return x-=u.length,x>=0&&s.slice(x,W)==u}function s3(s){return s=gn(s),s&&Ve.test(s)?s.replace(ht,Sa):s}function a3(s){return s=gn(s),s&&ir.test(s)?s.replace(Yt,"\\$&"):s}var l3=E(function(s,u,x){return s+(x?"-":"")+u.toLowerCase()}),c3=E(function(s,u,x){return s+(x?" ":"")+u.toLowerCase()}),u3=y("toLowerCase");function d3(s,u,x){s=gn(s),u=Lr(u);var L=u?Aa(s):0;if(!u||L>=u)return s;var W=(u-L)/2;return ur(zs(W),x)+s+ur(ka(W),x)}function f3(s,u,x){s=gn(s),u=Lr(u);var L=u?Aa(s):0;return u&&L<u?s+ur(u-L,x):s}function h3(s,u,x){s=gn(s),u=Lr(u);var L=u?Aa(s):0;return u&&L<u?ur(u-L,x)+s:s}function p3(s,u,x){return x||u==null?u=0:u&&(u=+u),su(gn(s).replace(zt,""),u||0)}function g3(s,u,x){return(x?ui(s,u,x):u===t)?u=1:u=Lr(u),mc(gn(s),u)}function m3(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var v3=E(function(s,u,x){return s+(x?"_":"")+u.toLowerCase()});function y3(s,u,x){return x&&typeof x!="number"&&ui(s,u,x)&&(u=x=t),x=x===t?ie:x>>>0,x?(s=gn(s),s&&(typeof u=="string"||u!=null&&!tm(u))&&(u=yo(u),!u&&_a(s))?ws(Sn(s),0,x):s.split(u,x)):[]}var b3=E(function(s,u,x){return s+(x?" ":"")+om(u)});function x3(s,u,x){return s=gn(s),x=x==null?0:Ws(Lr(x),0,s.length),u=yo(u),s.slice(x,x+u.length)==u}function w3(s,u,x){var L=Z.templateSettings;x&&ui(s,u,x)&&(u=t),s=gn(s),u=op({},u,L,hy);var W=op({},u.imports,L.imports,hy),te=ko(W),ye=Sr(W,te),Ee,Ne,mt=0,bt=u.interpolate||yr,Rt="__p += '",qt=Ea((u.escape||yr).source+"|"+bt.source+"|"+(bt===_t?jt:yr).source+"|"+(u.evaluate||yr).source+"|$","g"),sr="//# sourceURL="+(Xr.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zr+"]")+`
|
41
41
|
`;s.replace(qt,function(vr,Ur,Yr,es,di,ts){return Yr||(Yr=es),Rt+=s.slice(mt,ts).replace(Br,Zl),Ur&&(Ee=!0,Rt+=`' +
|
42
42
|
__e(`+Ur+`) +
|
43
|
-
'`),di&&(
|
43
|
+
'`),di&&(Ne=!0,Rt+=`';
|
44
44
|
`+di+`;
|
45
45
|
__p += '`),Yr&&(Rt+=`' +
|
46
46
|
((__t = (`+Yr+`)) == null ? '' : __t) +
|
@@ -48,13 +48,13 @@ __p += '`),Yr&&(Rt+=`' +
|
|
48
48
|
`;var mr=Xr.call(u,"variable")&&u.variable;if(!mr)Rt=`with (obj) {
|
49
49
|
`+Rt+`
|
50
50
|
}
|
51
|
-
`;else if(ze.test(mr))throw new dr(c);Rt=(
|
51
|
+
`;else if(ze.test(mr))throw new dr(c);Rt=(Ne?Rt.replace(st,""):Rt).replace(yt,"$1").replace(nt,"$1;"),Rt="function("+(mr||"obj")+`) {
|
52
52
|
`+(mr?"":`obj || (obj = {});
|
53
|
-
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(
|
53
|
+
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Ne?`, __j = Array.prototype.join;
|
54
54
|
function print() { __p += __j.call(arguments, '') }
|
55
55
|
`:`;
|
56
56
|
`)+Rt+`return __p
|
57
|
-
}`;var Pr=i0(function(){return $r(te,sr+"return "+Rt).apply(t,ye)});if(Pr.source=Rt,em(Pr))throw Pr;return Pr}function C3(s){return gn(s).toLowerCase()}function S3(s){return gn(s).toUpperCase()}function _3(s,u,x){if(s=gn(s),s&&(x||u===t))return Mt(s);if(!s||!(u=yo(u)))return s;var L=Sn(s),W=Sn(u),te=on(L,W),ye=lo(L,W)+1;return ws(L,te,ye).join("")}function A3(s,u,x){if(s=gn(s),s&&(x||u===t))return s.slice(0,od(s)+1);if(!s||!(u=yo(u)))return s;var L=Sn(s),W=lo(L,Sn(u))+1;return ws(L,0,W).join("")}function E3(s,u,x){if(s=gn(s),s&&(x||u===t))return s.replace(zt,"");if(!s||!(u=yo(u)))return s;var L=Sn(s),W=on(L,Sn(u));return ws(L,W).join("")}function T3(s,u){var x=pe,L=P;if(Un(u)){var W="separator"in u?u.separator:W;x="length"in u?Lr(u.length):x,L="omission"in u?yo(u.omission):L}s=gn(s);var te=s.length;if(_a(s)){var ye=Sn(s);te=ye.length}if(x>=te)return s;var Ee=x-Aa(L);if(Ee<1)return L;var Oe=ye?ws(ye,0,Ee).join(""):s.slice(0,Ee);if(W===t)return Oe+L;if(ye&&(Ee+=Oe.length-Ee),tm(W)){if(s.slice(Ee).search(W)){var mt,bt=Oe;for(W.global||(W=Ea(W.source,gn(Dt.exec(W))+"g")),W.lastIndex=0;mt=W.exec(bt);)var Rt=mt.index;Oe=Oe.slice(0,Rt===t?Ee:Rt)}}else if(s.indexOf(yo(W),Ee)!=Ee){var qt=Oe.lastIndexOf(W);qt>-1&&(Oe=Oe.slice(0,qt))}return Oe+L}function R3(s){return s=gn(s),s&&Ft.test(s)?s.replace(pt,id):s}var k3=E(function(s,u,x){return s+(x?" ":"")+u.toUpperCase()}),om=y("toUpperCase");function o0(s,u,x){return s=gn(s),u=x?t:u,u===t?Ef(s)?sd(s):wa(s):s.match(u)||[]}var i0=Ar(function(s,u){try{return vn(s,t,u)}catch(x){return em(x)?x:new dr(x)}}),I3=kl(function(s,u){return Jn(u,function(x){x=Wa(x),$o(s,x,Jg(s[x],s))}),s});function M3(s){var u=s==null?0:s.length,x=gr();return s=u?ln(s,function(L){if(typeof L[1]!="function")throw new Zo(a);return[x(L[0]),L[1]]}):[],Ar(function(L){for(var W=-1;++W<u;){var te=s[W];if(vn(te[0],this,L))return vn(te[1],this,L)}})}function L3(s){return gu(vo(s,m))}function im(s){return function(){return s}}function D3(s,u){return s==null||s!==s?u:s}var O3=me(),N3=me(!0);function Ii(s){return s}function sm(s){return pc(typeof s=="function"?s:vo(s,m))}function P3(s){return Ei(vo(s,m))}function B3(s,u){return Sl(s,vo(u,m))}var F3=Ar(function(s,u){return function(x){return Ai(x,s,u)}}),j3=Ar(function(s,u){return function(x){return Ai(s,x,u)}});function am(s,u,x){var L=ko(u),W=Pa(u,L);x==null&&!(Un(u)&&(W.length||!L.length))&&(x=u,u=s,s=this,W=Pa(u,ko(u)));var te=!(Un(x)&&"chain"in x)||!!x.chain,ye=Ml(s);return Jn(W,function(Ee){var Oe=u[Ee];s[Ee]=Oe,ye&&(s.prototype[Ee]=function(){var mt=this.__chain__;if(te||mt){var bt=s(this.__wrapped__),Rt=bt.__actions__=xo(this.__actions__);return Rt.push({func:Oe,args:arguments,thisArg:s}),bt.__chain__=mt,bt}return Oe.apply(s,Po([this.value()],arguments))})}),s}function z3(){return Cr._===this&&(Cr._=ou),this}function lm(){}function H3(s){return s=Lr(s),Ar(function(u){return Ha(u,s)})}var $3=Pt(ln),q3=Pt(al),U3=Pt(as);function s0(s){return Vg(s)?M(Wa(s)):xd(s)}function W3(s){return function(u){return s==null?t:ys(s,u)}}var V3=Gn(),G3=Gn(!0);function cm(){return[]}function um(){return!1}function Y3(){return{}}function Z3(){return""}function K3(){return!0}function X3(s,u){if(s=Lr(s),s<1||s>ae)return[];var x=ie,L=qn(s,ie);u=gr(u),s-=ie;for(var W=He(L,u);++x<s;)u(x);return W}function J3(s){return Tr(s)?ln(s,Wa):Qi(s)?[s]:xo(Ey(gn(s)))}function Q3(s){var u=++ru;return gn(s)+u}var eT=At(function(s,u){return s+u},0),tT=ci("ceil"),rT=At(function(s,u){return s/u},1),nT=ci("floor");function oT(s){return s&&s.length?ac(s,Ii,Gs):t}function iT(s,u){return s&&s.length?ac(s,gr(u,2),Gs):t}function sT(s){return cl(s,Ii)}function aT(s,u){return cl(s,gr(u,2))}function lT(s){return s&&s.length?ac(s,Ii,si):t}function cT(s,u){return s&&s.length?ac(s,gr(u,2),si):t}var uT=At(function(s,u){return s*u},1),dT=ci("round"),fT=At(function(s,u){return s-u},0);function hT(s){return s&&s.length?We(s,Ii):0}function pT(s,u){return s&&s.length?We(s,gr(u,2)):0}return Z.after=PA,Z.ary=By,Z.assign=SE,Z.assignIn=Xy,Z.assignInWith=op,Z.assignWith=_E,Z.at=AE,Z.before=Fy,Z.bind=Jg,Z.bindAll=I3,Z.bindKey=jy,Z.castArray=YA,Z.chain=Oy,Z.chunk=n_,Z.compact=o_,Z.concat=i_,Z.cond=M3,Z.conforms=L3,Z.constant=im,Z.countBy=hA,Z.create=EE,Z.curry=zy,Z.curryRight=Hy,Z.debounce=$y,Z.defaults=TE,Z.defaultsDeep=RE,Z.defer=BA,Z.delay=FA,Z.difference=s_,Z.differenceBy=a_,Z.differenceWith=l_,Z.drop=c_,Z.dropRight=u_,Z.dropRightWhile=d_,Z.dropWhile=f_,Z.fill=h_,Z.filter=gA,Z.flatMap=yA,Z.flatMapDeep=bA,Z.flatMapDepth=xA,Z.flatten=Iy,Z.flattenDeep=p_,Z.flattenDepth=g_,Z.flip=jA,Z.flow=O3,Z.flowRight=N3,Z.fromPairs=m_,Z.functions=NE,Z.functionsIn=PE,Z.groupBy=wA,Z.initial=y_,Z.intersection=b_,Z.intersectionBy=x_,Z.intersectionWith=w_,Z.invert=FE,Z.invertBy=jE,Z.invokeMap=SA,Z.iteratee=sm,Z.keyBy=_A,Z.keys=ko,Z.keysIn=ki,Z.map=Jh,Z.mapKeys=HE,Z.mapValues=$E,Z.matches=P3,Z.matchesProperty=B3,Z.memoize=ep,Z.merge=qE,Z.mergeWith=Jy,Z.method=F3,Z.methodOf=j3,Z.mixin=am,Z.negate=tp,Z.nthArg=H3,Z.omit=UE,Z.omitBy=WE,Z.once=zA,Z.orderBy=AA,Z.over=$3,Z.overArgs=HA,Z.overEvery=q3,Z.overSome=U3,Z.partial=Qg,Z.partialRight=qy,Z.partition=EA,Z.pick=VE,Z.pickBy=Qy,Z.property=s0,Z.propertyOf=W3,Z.pull=A_,Z.pullAll=Ly,Z.pullAllBy=E_,Z.pullAllWith=T_,Z.pullAt=R_,Z.range=V3,Z.rangeRight=G3,Z.rearg=$A,Z.reject=kA,Z.remove=k_,Z.rest=qA,Z.reverse=Kg,Z.sampleSize=MA,Z.set=YE,Z.setWith=ZE,Z.shuffle=LA,Z.slice=I_,Z.sortBy=NA,Z.sortedUniq=B_,Z.sortedUniqBy=F_,Z.split=y3,Z.spread=UA,Z.tail=j_,Z.take=z_,Z.takeRight=H_,Z.takeRightWhile=$_,Z.takeWhile=q_,Z.tap=oA,Z.throttle=WA,Z.thru=Xh,Z.toArray=Yy,Z.toPairs=e0,Z.toPairsIn=t0,Z.toPath=J3,Z.toPlainObject=Ky,Z.transform=KE,Z.unary=VA,Z.union=U_,Z.unionBy=W_,Z.unionWith=V_,Z.uniq=G_,Z.uniqBy=Y_,Z.uniqWith=Z_,Z.unset=XE,Z.unzip=Xg,Z.unzipWith=Dy,Z.update=JE,Z.updateWith=QE,Z.values=Od,Z.valuesIn=e3,Z.without=K_,Z.words=o0,Z.wrap=GA,Z.xor=X_,Z.xorBy=J_,Z.xorWith=Q_,Z.zip=eA,Z.zipObject=tA,Z.zipObjectDeep=rA,Z.zipWith=nA,Z.entries=e0,Z.entriesIn=t0,Z.extend=Xy,Z.extendWith=op,am(Z,Z),Z.add=eT,Z.attempt=i0,Z.camelCase=o3,Z.capitalize=r0,Z.ceil=tT,Z.clamp=t3,Z.clone=ZA,Z.cloneDeep=XA,Z.cloneDeepWith=JA,Z.cloneWith=KA,Z.conformsTo=QA,Z.deburr=n0,Z.defaultTo=D3,Z.divide=rT,Z.endsWith=i3,Z.eq=ta,Z.escape=s3,Z.escapeRegExp=a3,Z.every=pA,Z.find=mA,Z.findIndex=Ry,Z.findKey=kE,Z.findLast=vA,Z.findLastIndex=ky,Z.findLastKey=IE,Z.floor=nT,Z.forEach=Ny,Z.forEachRight=Py,Z.forIn=ME,Z.forInRight=LE,Z.forOwn=DE,Z.forOwnRight=OE,Z.get=rm,Z.gt=eE,Z.gte=tE,Z.has=BE,Z.hasIn=nm,Z.head=My,Z.identity=Ii,Z.includes=CA,Z.indexOf=v_,Z.inRange=r3,Z.invoke=zE,Z.isArguments=Lu,Z.isArray=Tr,Z.isArrayBuffer=rE,Z.isArrayLike=Ri,Z.isArrayLikeObject=ro,Z.isBoolean=nE,Z.isBuffer=Sc,Z.isDate=oE,Z.isElement=iE,Z.isEmpty=sE,Z.isEqual=aE,Z.isEqualWith=lE,Z.isError=em,Z.isFinite=cE,Z.isFunction=Ml,Z.isInteger=Uy,Z.isLength=rp,Z.isMap=Wy,Z.isMatch=uE,Z.isMatchWith=dE,Z.isNaN=fE,Z.isNative=hE,Z.isNil=gE,Z.isNull=pE,Z.isNumber=Vy,Z.isObject=Un,Z.isObjectLike=Yn,Z.isPlainObject=Wf,Z.isRegExp=tm,Z.isSafeInteger=mE,Z.isSet=Gy,Z.isString=np,Z.isSymbol=Qi,Z.isTypedArray=Dd,Z.isUndefined=vE,Z.isWeakMap=yE,Z.isWeakSet=bE,Z.join=C_,Z.kebabCase=l3,Z.last=_s,Z.lastIndexOf=S_,Z.lowerCase=c3,Z.lowerFirst=u3,Z.lt=xE,Z.lte=wE,Z.max=oT,Z.maxBy=iT,Z.mean=sT,Z.meanBy=aT,Z.min=lT,Z.minBy=cT,Z.stubArray=cm,Z.stubFalse=um,Z.stubObject=Y3,Z.stubString=Z3,Z.stubTrue=K3,Z.multiply=uT,Z.nth=__,Z.noConflict=z3,Z.noop=lm,Z.now=Qh,Z.pad=d3,Z.padEnd=f3,Z.padStart=h3,Z.parseInt=p3,Z.random=n3,Z.reduce=TA,Z.reduceRight=RA,Z.repeat=g3,Z.replace=m3,Z.result=GE,Z.round=dT,Z.runInContext=Ie,Z.sample=IA,Z.size=DA,Z.snakeCase=v3,Z.some=OA,Z.sortedIndex=M_,Z.sortedIndexBy=L_,Z.sortedIndexOf=D_,Z.sortedLastIndex=O_,Z.sortedLastIndexBy=N_,Z.sortedLastIndexOf=P_,Z.startCase=b3,Z.startsWith=x3,Z.subtract=fT,Z.sum=hT,Z.sumBy=pT,Z.template=w3,Z.times=X3,Z.toFinite=Ll,Z.toInteger=Lr,Z.toLength=Zy,Z.toLower=C3,Z.toNumber=As,Z.toSafeInteger=CE,Z.toString=gn,Z.toUpper=S3,Z.trim=_3,Z.trimEnd=A3,Z.trimStart=E3,Z.truncate=T3,Z.unescape=R3,Z.uniqueId=Q3,Z.upperCase=k3,Z.upperFirst=om,Z.each=Ny,Z.eachRight=Py,Z.first=My,am(Z,function(){var s={};return qo(Z,function(u,x){Xr.call(Z.prototype,x)||(s[x]=u)}),s}(),{chain:!1}),Z.VERSION=n,Jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){Z[s].placeholder=Z}),Jn(["drop","take"],function(s,u){Er.prototype[s]=function(x){x=x===t?1:yn(Lr(x),0);var L=this.__filtered__&&!u?new Er(this):this.clone();return L.__filtered__?L.__takeCount__=qn(x,L.__takeCount__):L.__views__.push({size:qn(x,ie),type:s+(L.__dir__<0?"Right":"")}),L},Er.prototype[s+"Right"]=function(x){return this.reverse()[s](x).reverse()}}),Jn(["filter","map","takeWhile"],function(s,u){var x=u+1,L=x==Q||x==ue;Er.prototype[s]=function(W){var te=this.clone();return te.__iteratees__.push({iteratee:gr(W,3),type:x}),te.__filtered__=te.__filtered__||L,te}}),Jn(["head","last"],function(s,u){var x="take"+(u?"Right":"");Er.prototype[s]=function(){return this[x](1).value()[0]}}),Jn(["initial","tail"],function(s,u){var x="drop"+(u?"":"Right");Er.prototype[s]=function(){return this.__filtered__?new Er(this):this[x](1)}}),Er.prototype.compact=function(){return this.filter(Ii)},Er.prototype.find=function(s){return this.filter(s).head()},Er.prototype.findLast=function(s){return this.reverse().find(s)},Er.prototype.invokeMap=Ar(function(s,u){return typeof s=="function"?new Er(this):this.map(function(x){return Ai(x,s,u)})}),Er.prototype.reject=function(s){return this.filter(tp(gr(s)))},Er.prototype.slice=function(s,u){s=Lr(s);var x=this;return x.__filtered__&&(s>0||u<0)?new Er(x):(s<0?x=x.takeRight(-s):s&&(x=x.drop(s)),u!==t&&(u=Lr(u),x=u<0?x.dropRight(-u):x.take(u-s)),x)},Er.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Er.prototype.toArray=function(){return this.take(ie)},qo(Er.prototype,function(s,u){var x=/^(?:filter|find|map|reject)|While$/.test(u),L=/^(?:head|last)$/.test(u),W=Z[L?"take"+(u=="last"?"Right":""):u],te=L||/^find/.test(u);W&&(Z.prototype[u]=function(){var ye=this.__wrapped__,Ee=L?[1]:arguments,Oe=ye instanceof Er,mt=Ee[0],bt=Oe||Tr(ye),Rt=function(Ur){var Yr=W.apply(Z,Po([Ur],Ee));return L&&qt?Yr[0]:Yr};bt&&x&&typeof mt=="function"&&mt.length!=1&&(Oe=bt=!1);var qt=this.__chain__,sr=!!this.__actions__.length,mr=te&&!qt,Pr=Oe&&!sr;if(!te&&bt){ye=Pr?ye:new Er(this);var vr=s.apply(ye,Ee);return vr.__actions__.push({func:Xh,args:[Rt],thisArg:t}),new co(vr,qt)}return mr&&Pr?s.apply(this,Ee):(vr=this.thru(Rt),mr?L?vr.value()[0]:vr.value():vr)})}),Jn(["pop","push","shift","sort","splice","unshift"],function(s){var u=Jl[s],x=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",L=/^(?:pop|shift)$/.test(s);Z.prototype[s]=function(){var W=arguments;if(L&&!this.__chain__){var te=this.value();return u.apply(Tr(te)?te:[],W)}return this[x](function(ye){return u.apply(Tr(ye)?ye:[],W)})}}),qo(Er.prototype,function(s,u){var x=Z[u];if(x){var L=x.name+"";Xr.call(Hs,L)||(Hs[L]=[]),Hs[L].push({name:u,func:x})}}),Hs[je(t,A).name]=[{name:"wrapper",func:t}],Er.prototype.clone=nc,Er.prototype.reverse=vl,Er.prototype.value=oc,Z.prototype.at=iA,Z.prototype.chain=sA,Z.prototype.commit=aA,Z.prototype.next=lA,Z.prototype.plant=uA,Z.prototype.reverse=dA,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=fA,Z.prototype.first=Z.prototype.head,oi&&(Z.prototype[oi]=cA),Z},$i=Xl();fn?((fn.exports=$i)._=$i,Mr._=$i):Cr._=$i}).call(wT)}(lh,lh.exports)),lh.exports}var zc=CT();const Ya=yf(zc),ST=r=>{try{return JSON.parse(r)}catch{return}},_T=(r,e)=>JSON.stringify(r,null,e),AT=r=>Object.keys(r),ET=r=>Object.values(r),TT=r=>Object.entries(r),RT=(r,e)=>{Object.entries(r).forEach(([t,n])=>e(t,n))},kT=(r,e)=>Object.keys(r).includes(e),IT=(r,e)=>Object.entries(r).map((t,n)=>e(t,n)),MT=(r,e)=>Object.entries(r).some(([t,n])=>e(t,n)),LT=(r,e)=>Object.entries(r).find(([t,n])=>e(t,n)),hw=r=>S.isValidElement(r)||typeof r=="string"||typeof r=="number"||typeof r=="boolean"||r===null||r===void 0||Array.isArray(r)&&r.every(hw),DT=(r,e)=>Ya.isEqual(r,e),pw=r=>{const e=window.crypto??window.msCrypto,t=new Uint32Array(1);e.getRandomValues(t);const n=t[0].toString(36);return`key-${r}-${n}`},ar={equal:DT,parse:ST,stringify:_T,key:pw,keys:AT,values:ET,entries:TT,forEach:RT,hasKey:kT,map:IT,some:MT,find:LT,isReactNode:hw},gw="_NoSelect_29290_1",mw="_NoTransition_29290_6",vw="_IsFixedShape_29290_10",yw="_IsCursorPointer_29290_15",bw="_IsInteractive_29290_19",_c={NoSelect:gw,NoTransition:mw,IsFixedShape:vw,IsCursorPointer:yw,IsInteractive:bw},OT="_Display1_11vgm_1",NT="_Display2_11vgm_6",PT="_Title1_11vgm_11",BT="_Title2_11vgm_16",FT="_Title3_11vgm_21",jT="_Headline1_11vgm_26",zT="_Headline2_11vgm_31",HT="_Body1Normal_11vgm_36",$T="_Body1Reading_11vgm_41",qT="_Label1_11vgm_46",UT="_Label2_11vgm_51",WT="_Caption1_11vgm_56",VT="_Caption2_11vgm_61",GT="_Regular_11vgm_66",YT="_Medium_11vgm_70",ZT="_SemiBold_11vgm_74",KT="_Bold_11vgm_78",Wo={Display1:OT,Display2:NT,Title1:PT,Title2:BT,Title3:FT,Headline1:jT,Headline2:zT,Body1Normal:HT,Body1Reading:$T,Label1:qT,Label2:UT,Caption1:WT,Caption2:VT,Regular:GT,Medium:YT,SemiBold:ZT,Bold:KT};function f0(...r){return r.filter(Boolean).join(" ")}const xw={NoSelect:_c.NoSelect,NoTransition:_c.NoTransition,IsClickable:f0(_c.NoSelect,_c.IsCursorPointer,_c.IsFixedShape),IsInteractive:f0(_c.NoSelect,_c.IsCursorPointer,_c.IsInteractive)},ww={Display1:Wo.Display1,Display2:Wo.Display2,Title1:Wo.Title1,Title2:Wo.Title2,Title3:Wo.Title3,Headline1:Wo.Headline1,Headline2:Wo.Headline2,Body1Normal:Wo.Body1Normal,Body1Reading:Wo.Body1Reading,Label1:Wo.Label1,Label2:Wo.Label2,Caption1:Wo.Caption1,Caption2:Wo.Caption2,Regular:Wo.Regular,Medium:Wo.Medium,SemiBold:Wo.SemiBold,Bold:Wo.Bold};let bv={};const wh={...xw,...ww,...bv};let xv=ar.keys(wh);function XT(){Object.assign(wh,bv),xv=ar.keys(wh)}function JT(...r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];xv.includes(n)&&(n=wh[n]),typeof n=="string"&&n!==""&&e.push(n)}return e.join(" ")}function QT(r,...e){const t=[],n=ar.keys(r);for(let o=0;o<e.length;o++){let i=e[o];xv.includes(i)?i=wh[i]:n.includes(i)&&(i=r[i]),typeof i=="string"&&i!==""&&t.push(i)}return t.join(" ")}const Ge={clsx:JT,sclsx:QT,classes:xw,typographies:ww,additionalClasses:bv,updateKeys:XT},Vo={"2xs":12,xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":64},St=(r,e=Vo.md)=>{const t=Vo[r],n=t/e,o={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 0 ${e} ${e}`};if(n<0){const i=(e-t)/2;return{...o,viewBox:`${i} ${i} ${t} ${t}`,transform:`scale(${n})`}}return o},Nd=(r,e=Vo.md)=>{const t=Vo[r],n=40,o=t/e,i={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 ${-(e*n)} ${e*n} ${e*n}`};if(o<0){const a=(e-t)/2;return{...i,viewBox:`${a} ${-(t*n)} ${t*n} ${t*n}`,transform:`scale(${o})`}}return i},_n=(r,e=2)=>({fill:"none",stroke:r,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"}),en=r=>{const{icon:e,style:t,svgRef:n,...o}=r,i=S.useMemo(()=>xg[e],[e]);return C.jsx(i,{...o,style:{...t,flexShrink:0}})},e4=r=>{const e=ar.keys(r);return n=>{const{icon:o,svgRef:i,...a}=n,c=S.useMemo(()=>e.includes(o)?r[o]:xg[o],[o]);return C.jsx(c,{...a})}},xg=Object.freeze({ArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})})},ArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},Chat:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 17.17 18.83 16H4V4h16v13.17zM20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},"Check.Checked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),fill:n,...i,ref:o,children:[C.jsx("rect",{height:"15",rx:"1.5",stroke:t,width:"15",x:"0.5",y:"0.5"}),C.jsx("path",{d:"M6.25009 10.4324L4.22884 8.41116C4.00148 8.1838 3.63305 8.18315 3.40489 8.40971V8.40971C3.17558 8.6374 3.17492 9.00808 3.40343 9.23658L5.54298 11.3761C5.93351 11.7667 6.56667 11.7667 6.9572 11.3761L12.8387 5.49459C13.0659 5.26741 13.0659 4.89908 12.8387 4.6719V4.6719C12.6116 4.44479 12.2435 4.4447 12.0162 4.6717L6.25009 10.4324Z",fill:t})]})},"Check.Indeterminate":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),fill:n,...i,ref:o,children:[C.jsx("rect",{height:"15",rx:"1.5",stroke:t,width:"15",x:"0.5",y:"0.5"}),C.jsx("rect",{fill:t,height:"1",width:"10",x:"3",y:"7"})]})},"Check.UnChecked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r,a=Vo.xs;return C.jsx("svg",{...St(e,a),fill:n,...i,ref:o,children:C.jsx("rect",{height:"15",rx:"1.5",stroke:t,width:"15",x:"0.5",y:"0.5"})})},CircleCheck:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})})},ClipBoard:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},Close:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},Document:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"})})},Menu:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})})},Person:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})},PersonOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),C.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},Reset:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Search:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})},Send:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})},Spinner:(r={})=>{const{size:e="3xl",primaryColor:t="var(--label-strong)",secondaryColor:n="var(--elevation-10)",svgRef:o,...i}=r,a=Vo["3xl"];return C.jsxs("svg",{...St(e,a),fill:"none",strokeWidth:"12",...i,ref:o,children:[C.jsx("circle",{cx:"32",cy:"32",r:"22",stroke:n,style:{...i.style,transition:"stroke var(--Transition)"}}),C.jsx("path",{d:"M10 32C10 29.1109 10.569 26.2501 11.6746 23.581C12.7803 20.9118 14.4008 18.4865 16.4437 16.4436C18.4865 14.4008 20.9118 12.7803 23.581 11.6747C26.2501 10.569 29.1109 10 32 10",stroke:t,style:{...i.style,transition:"stroke var(--Transition)"},children:C.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",calcMode:"spline",dur:"1s",from:"0 32 32",keySplines:"0.27 0.71 0.78 0.44",keyTimes:"0;1",repeatCount:"indefinite",to:"360 32 32",type:"rotate"})})]})},Stop:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M6 6h12v12H6z"})})},TriangleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zm0 5h2v2h-2z"})})},TriangleAlert2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),C.jsx("line",{x1:"12",x2:"12",y1:"9",y2:"13"}),C.jsx("line",{x1:"12",x2:"12.01",y1:"17",y2:"17"})]})},Sun:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e,28),..._n(t),strokeWidth:1,...i,ref:o,children:[C.jsx("circle",{cx:"14",cy:"14",r:"3.5"}),C.jsx("path",{d:"M21.1213 21.1213L19 19"}),C.jsx("path",{d:"M24 14L21 14"}),C.jsx("path",{d:"M9.12132 19L7 21.1213"}),C.jsx("path",{d:"M14 21L14 24"}),C.jsx("path",{d:"M6.99977 7.00002L9.12109 9.12134"}),C.jsx("path",{d:"M4 14L7 14"}),C.jsx("path",{d:"M18.9998 9.12132L21.1211 7"}),C.jsx("path",{d:"M14 7L14 4"})]})},Moon:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:o,...i}=r;return C.jsxs("svg",{...St(e,28),...i,ref:o,children:[C.jsx("mask",{fill:n,id:"path-1-inside-1_640_3082",children:C.jsx("path",{clipRule:"evenodd",d:"M23 14.9271C21.7297 16.1977 19.9746 16.9836 18.036 16.9836C14.1593 16.9836 11.0167 13.841 11.0167 9.96435C11.0167 8.02554 11.8027 6.27032 13.0735 5C8.53643 5.47528 5 9.31228 5 13.9753C5 18.9595 9.04054 23 14.0248 23C18.6876 23 22.5244 19.4639 23 14.9271Z",fillRule:"evenodd"})}),C.jsx("path",{d:"M23 14.9271L23.9945 15.0313L24.2889 12.2235L22.2928 14.2201L23 14.9271ZM13.0735 5L13.7805 5.70724L15.7772 3.71131L12.9694 4.00544L13.0735 5ZM22.2928 14.2201C21.2024 15.3108 19.6987 15.9836 18.036 15.9836V17.9836C20.2505 17.9836 22.257 17.0846 23.7072 15.6341L22.2928 14.2201ZM18.036 15.9836C14.7116 15.9836 12.0167 13.2887 12.0167 9.96435H10.0167C10.0167 14.3933 13.607 17.9836 18.036 17.9836V15.9836ZM12.0167 9.96435C12.0167 8.30147 12.6897 6.79768 13.7805 5.70724L12.3666 4.29276C10.9158 5.74295 10.0167 7.7496 10.0167 9.96435H12.0167ZM6 13.9753C6 9.8296 9.14442 6.41706 13.1777 5.99456L12.9694 4.00544C7.92844 4.5335 4 8.79496 4 13.9753H6ZM14.0248 22C9.59282 22 6 18.4072 6 13.9753H4C4 19.5118 8.48825 24 14.0248 24V22ZM22.0054 14.8228C21.5827 18.8559 18.1703 22 14.0248 22V24C19.2049 24 23.4662 20.0719 23.9945 15.0313L22.0054 14.8228Z",fill:t,mask:"url(#path-1-inside-1_640_3082)"})]})},CCTV:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:o,...i}=r,a=Vo["2xs"];return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("rect",{fill:t,height:"5",width:"1",x:"1",y:"5"}),C.jsx("path",{d:"M1.5 7.5H3L5 5.5",stroke:t}),C.jsx("rect",{fill:t,height:"3",transform:"rotate(45 5.12132 2)",width:"5.13925",x:"5.12132",y:"2"}),C.jsx("rect",{fill:t,height:"2.19393",transform:"rotate(45 8.83633 6.28503)",width:"1",x:"8.83633",y:"6.28503"}),C.jsx("clipPath",{id:"clip0_2241_2464",children:C.jsx("rect",{fill:n,height:"12",width:"12"})})]})},Convert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"})})},KeyboardArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},KeyboardArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})})},Alert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="var(--background-normal)",svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:n,...i,ref:o,children:C.jsxs("g",{clipPath:"url(#clip0_1786_1844)",children:[C.jsx("path",{d:"M11.1238 2.59312C11.5037 1.90234 12.4963 1.90234 12.8762 2.59312L22.1849 19.5181C22.5515 20.1845 22.0693 21 21.3087 21H2.69127C1.93067 21 1.44851 20.1845 1.81506 19.5181L11.1238 2.59312Z",fill:t}),C.jsx("path",{d:"M12.8169 8H11.1691L11.2958 15.0451H12.6902L12.8169 8ZM11.0001 17.0287C10.993 17.5622 11.4508 17.9932 12 18C12.5423 17.9932 12.993 17.5622 13 17.0287C12.993 16.4952 12.5423 16.0575 12 16.0575C11.4508 16.0575 10.993 16.4952 11.0001 17.0287Z",fill:n,style:{...i.style,transition:"fill var(--Transition)"}})]})})},SortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsx("svg",{...St(e,a),fill:"none",...i,ref:o,children:C.jsx("path",{d:"M6 10L9 7L12 10",stroke:t})})},SortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsx("svg",{...St(e,a),fill:"none",...i,ref:o,children:C.jsx("path",{d:"M12 7L9 10L6 7",stroke:t})})},SortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),fill:"none",...i,ref:o,children:[C.jsx("path",{d:"M6 6.75L9 3.75L12 6.75",stroke:t}),C.jsx("path",{d:"M12 11.25L9 14.25L6 11.25",stroke:t})]})},RowSortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),C.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t,opacity:"0.2"})]})},RowSortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t,opacity:"0.2"}),C.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},RowSortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),C.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},Favorite:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},FavoriteDisabled:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r;return C.jsx("svg",{...St(e),..._n(t),fill:n,strokeWidth:"1",...i,ref:o,children:C.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},Main:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t,svgRef:n,...o}=r;return C.jsxs("svg",{height:"84",viewBox:"0 0 118 84",width:"118",...o,ref:n,children:[C.jsx("path",{clipRule:"evenodd",d:"M66.0843 0.94382H8.51123C4.34117 0.94382 0.960666 4.32432 0.960666 8.49438V49.0787C0.960666 53.77 4.76373 57.573 9.45505 57.573H66.0843C70.7756 57.573 74.5787 53.77 74.5787 49.0787V9.4382C74.5787 4.74688 70.7756 0.94382 66.0843 0.94382ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e,fillRule:"evenodd"}),C.jsx("path",{clipRule:"evenodd",d:"M108.556 26.4272H51.927C47.2357 26.4272 43.4326 30.2302 43.4326 34.9216V74.562C43.4326 79.2533 47.2357 83.0564 51.927 83.0564H108.556C113.248 83.0564 117.051 79.2533 117.051 74.562V34.9216C117.051 30.2302 113.248 26.4272 108.556 26.4272ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e,fillRule:"evenodd"}),C.jsx("path",{clipRule:"evenodd",d:"M66.0843 1.88764H8.51123C4.86243 1.88764 1.90449 4.84558 1.90449 8.49438V49.0787C1.90449 53.2487 5.28499 56.6292 9.45505 56.6292H66.0843C70.2543 56.6292 73.6348 53.2487 73.6348 49.0787V9.4382C73.6348 5.26814 70.2543 1.88764 66.0843 1.88764ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e,fillRule:"evenodd"}),C.jsx("path",{clipRule:"evenodd",d:"M108.556 27.371H51.927C47.7569 27.371 44.3764 30.7515 44.3764 34.9216V74.562C44.3764 78.7321 47.7569 82.1126 51.927 82.1126H108.556C112.726 82.1126 116.107 78.7321 116.107 74.562V34.9216C116.107 30.7515 112.726 27.371 108.556 27.371ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e,fillRule:"evenodd"})]})},Frame:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t="none",svgRef:n,...o}=r;return C.jsx("svg",{fill:t,height:"1112",viewBox:"0 0 1482 1112",width:"1482",...o,ref:n,children:C.jsxs("g",{children:[C.jsx("path",{d:"M1481.33 1111.17L399.091 880.19V231.81L1481.33 0.829102V1111.17Z",opacity:"0.22",stroke:e}),C.jsx("path",{d:"M266.279 880.19V231.81L1348.52 0.829102V1111.17L266.279 880.19Z",opacity:"0.48",stroke:e}),C.jsx("path",{d:"M133.48 880.19V231.81L1215.72 0.829102V1111.17L133.48 880.19Z",opacity:"0.74",stroke:e}),C.jsx("path",{d:"M1082.91 1111.17L0.667969 880.19V231.81L1082.91 0.829102V1111.17Z",stroke:e})]})})},FileDownload:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"})})},File:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M15 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V7L15 2ZM6 20V4H14V8H18V20H6ZM16 10V15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V8.5C8 7.03 9.26 5.86 10.76 6.01C12.06 6.14 13 7.33 13 8.64V15H11V8.5C11 8.22 10.78 8 10.5 8C10.22 8 10 8.22 10 8.5V15C10 16.1 10.9 17 12 17C13.1 17 14 16.1 14 15V10H16Z"})})},File2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}),C.jsx("polyline",{points:"13 2 13 9 20 9"})]})},UnPlug:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),overflow:"hidden",strokeWidth:"0.5",...i,ref:o,children:[C.jsx("path",{d:"M7.85 9.679C7.92 9.747 8.03 9.745 8.1 9.674 8.17 9.606 8.17 9.497 8.1 9.428L6.84 8.17 8.17 6.844 9.43 8.103C9.5 8.171 9.61 8.169 9.68 8.098 9.75 8.03 9.75 7.921 9.68 7.852L8.42 6.594 9.39 5.629 8.13 4.377C7.15 3.389 5.56 3.335 4.51 4.254L4.13 3.857C3.29 2.997 2.15 2.511 0.95 2.508L0.35 2.508 0.35 2.862 0.95 2.862C2.05 2.865 3.11 3.312 3.87 4.104L4.26 4.504C3.34 5.555 3.39 7.143 4.38 8.133L5.63 9.385 6.59 8.42ZM4.63 7.883C3.73 6.984 3.73 5.526 4.63 4.627 5.53 3.728 6.98 3.728 7.88 4.627L8.88 5.629 5.63 8.885Z",fill:t,stroke:t}),C.jsx("path",{d:"M16.06 14.167C15.01 14.169 13.99 13.758 13.23 13.021L12.78 12.58C13.69 11.529 13.64 9.946 12.65 8.959L11.4 7.707 7.64 11.464 8.9 12.716C9.89 13.707 11.47 13.757 12.52 12.831L12.99 13.276C13.81 14.076 14.91 14.523 16.06 14.521L16.65 14.521 16.65 14.167ZM9.15 12.465 8.14 11.464 11.4 8.208 12.4 9.21C13.31 10.104 13.31 11.562 12.42 12.466 11.53 13.369 10.07 13.377 9.16 12.483 9.16 12.477 9.15 12.471 9.15 12.465Z",fill:t,stroke:t})]})},CloudSync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),overflow:"hidden",strokeWidth:"0.166718",...i,ref:o,children:[C.jsx("path",{d:"M9.81667 8.6C9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.68333 7.41667 8.61667 6.55 7.43333 6.66667 6.65 6.75 5.98333 7.23333 5.66667 7.95L5.96667 8.08333C6.36667 7.15 7.45 6.73333 8.38333 7.13333 8.96667 7.38333 9.36667 7.91667 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55L9.1 8.18333 8.86667 8.41667 9.65 9.2 10.4333 8.41667 10.2 8.18333 9.81667 8.6Z",fill:t,stroke:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),C.jsx("path",{d:"M7.66667 10.6667C6.75 10.6667 5.98333 10 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1L6.21667 9.46667 6.45 9.23333 5.66667 8.43333 4.88333 9.21667 5.11667 9.45 5.5 9.06667C5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.63333 10.25 6.68333 11.1167 7.88333 11 8.66667 10.9167 9.33333 10.4333 9.65 9.71667L9.35 9.58333C9.05 10.2333 8.4 10.6667 7.66667 10.6667Z",fill:t,stroke:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),C.jsx("path",{d:"M13.4333 7.48333C13.3 6.66667 12.85 5.93333 12.1833 5.45 11.4833 4.96667 10.6333 4.78333 9.8 4.95 9.13333 3.95 8.03333 3.33333 6.83333 3.33333 6.56667 3.33333 6.28333 3.36667 6.01667 3.43333 4.6 3.8 3.53333 4.98333 3.31667 6.43333 2.36667 6.46667 1.5 6.91667 0.933333 7.66667 0.266667 8.6 0.15 9.81667 0.616667 10.8667 1.1 11.9 2.1 12.5833 3.23333 12.65L4.45 12.65 11.3667 12.6667 13.1333 12.6667C14.5667 12.6333 15.7 11.4333 15.6667 10 15.6333 8.71667 14.6833 7.66667 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333ZM15.3333 10.2C15.25 11.3667 14.3 12.3 13.1333 12.3333L11.3667 12.3333 4.45 12.3167 3.25 12.3167C2.25 12.25 1.35 11.65 0.933333 10.7333 0.5 9.8 0.6 8.7 1.2 7.86667 1.71667 7.2 2.48333 6.8 3.33333 6.76667L3.61667 6.75 3.65 6.48333C3.85 5.16667 4.81667 4.1 6.1 3.75 6.33333 3.7 6.58333 3.66667 6.83333 3.66667 7.91667 3.66667 8.93333 4.21667 9.51667 5.13333L9.63333 5.31667 9.85 5.26667C10.5833 5.11667 11.35 5.28333 11.9667 5.71667 12.5667 6.15 12.9667 6.8 13.0833 7.53333L13.1167 7.76667 13.35 7.8C14.55 7.98333 15.3833 9.01667 15.3333 10.2L15.3333 10.2Z",fill:t,stroke:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"})]})},CalendarDay:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})})},DateRange:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})})},PlayArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M8 5v14l11-7z"})})},Mail:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"})})},MailOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),C.jsx("polyline",{points:"22,6 12,13 2,6"})]})},Bell:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),C.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})},Download:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})})},Folder:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})})},FolderPost:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"})})},FolderOpen:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"})})},FolderCopy:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3V6z"}),C.jsx("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})]})},FolderAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"})})},FolderMove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 12v-3h-4v-4h4V8l5 5z"})})},FirstPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),C.jsx("path",{d:"M24 24H0V0h24v24z",fill:"none"})]})},LastPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})})},NavigateBefore:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})},NavigateNext:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})},ListAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14,10H3v2h11V10z M14,6H3v2h11V6z M18,14v-4h-2v4h-4v2h4v4h2v-4h4v-2H18z M3,16h7v-2H3V16z"})})},ListRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14 10H3v2h11v-2zm0-4H3v2h11V6zM3 16h7v-2H3v2zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59 14.41 22z"})})},Cancel:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})})},Article:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"})})},Info:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M11,7h2v2h-2V7z M11,11h2v6h-2V11z M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M12,20 c-4.41,0-8-3.59-8-8s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z"})})},Type:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),C.jsx("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),C.jsx("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})},PersonAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M13 8c0-2.21-1.79-4-4-4S5 5.79 5 8s1.79 4 4 4 4-1.79 4-4m2 2v2h3v3h2v-3h3v-2h-3V7h-2v3zM1 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},CheckNormal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:t})})},Create:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})})},PersonRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14 8c0-2.21-1.79-4-4-4S6 5.79 6 8s1.79 4 4 4 4-1.79 4-4m3 2v2h6v-2zM2 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},Refresh:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Undo:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})})},Return:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M4 15L3.46967 14.4697C3.17678 14.7626 3.17678 15.2374 3.46967 15.5303L4 15ZM7.53033 12.5303C7.82322 12.2374 7.82322 11.7626 7.53033 11.4697C7.23744 11.1768 6.76256 11.1768 6.46967 11.4697L7.53033 12.5303ZM6.46967 18.5303C6.76256 18.8232 7.23744 18.8232 7.53033 18.5303C7.82322 18.2374 7.82322 17.7626 7.53033 17.4697L6.46967 18.5303ZM6.46967 11.4697L3.46967 14.4697L4.53033 15.5303L7.53033 12.5303L6.46967 11.4697ZM3.46967 15.5303L6.46967 18.5303L7.53033 17.4697L4.53033 14.4697L3.46967 15.5303Z",fill:"#333333"}),C.jsx("path",{d:"M11 5.25C10.5858 5.25 10.25 5.58579 10.25 6C10.25 6.41421 10.5858 6.75 11 6.75V5.25ZM4 14.25C3.58579 14.25 3.25 14.5858 3.25 15C3.25 15.4142 3.58579 15.75 4 15.75V14.25ZM11 6.75H16V5.25H11V6.75ZM16 15.75C17.3742 15.75 18.5687 15.0388 19.3991 14.0651C20.2284 13.0926 20.75 11.7983 20.75 10.5H19.25C19.25 11.4109 18.8762 12.3665 18.2577 13.0918C17.6404 13.8157 16.835 14.25 16 14.25V15.75ZM16 6.75C16.8349 6.75 17.6404 7.18427 18.2577 7.90822C18.8762 8.63348 19.25 9.58913 19.25 10.5H20.75C20.75 9.20173 20.2284 7.90738 19.3991 6.93492C18.5687 5.96116 17.3741 5.25 16 5.25V6.75ZM16 14.25H4V15.75H16V14.25Z",fill:"#333333"})]})},Gear:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})})},TriangleUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),..._n(t),...i,ref:o,children:C.jsx("path",{d:"M18 15 L12 9 L6 15"})})},TriangleDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),..._n(t),...i,ref:o,children:C.jsx("path",{d:"M6 9 12 15 18 9"})})},CircleHelp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})})},Cow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("g",{transform:"scale(0.046875 0.046875)",children:C.jsx("path",{d:"M510.256,187.787c-2.16-7.414-6.118-13.725-11.079-18.567c-7.477-7.3-16.818-11.393-26.211-13.777 c-9.43-2.386-19.109-3.114-28.034-3.124c-7.732,0-14.89,0.562-20.744,1.219h0.016c-4.732,0.531-9.07,1.426-12.788,2.103 c-3.697,0.708-6.821,1.156-8.597,1.136l-0.557-0.042c-0.031-0.167-0.063-0.261-0.094-0.48c-2.63-18.598-4.03-36.864-9.06-55.494 c-5.004-18.619-13.976-37.457-30.986-55.826c-8.07-8.83-17.973-13.454-27.476-13.403c-8.43-0.01-15.98,3.489-21.312,8.779 c-5.337,5.279-8.763,12.517-8.784,20.504c-0.005,3.686,0.88,7.466,2.484,11.028l-0.067,0.031c4.992,13.434,7.794,25.784,7.768,35.719 c0,5.935-0.948,10.955-2.754,15.141c-2.77,6.227-7.196,11.111-15.923,15.193c-8.695,4.019-21.816,6.685-40.06,6.664 c-24.388,0.042-39.4-4.759-47.454-11.039c-4.082-3.155-6.697-6.623-8.529-10.819c-1.807-4.186-2.754-9.206-2.754-15.141 c-0.026-9.935,2.77-22.285,7.768-35.719l-0.068-0.02c1.604-3.582,2.489-7.352,2.485-11.028c-0.021-7.997-3.448-15.235-8.784-20.514 c-5.332-5.29-12.882-8.789-21.311-8.789c-9.502-0.042-19.406,4.571-27.476,13.412c-17.01,18.359-25.982,37.207-30.985,55.826 c-5.035,18.63-6.431,36.896-9.06,55.494c-0.032,0.229-0.063,0.312-0.099,0.48l-0.552,0.042c-1.77,0.02-4.894-0.428-8.596-1.136 c-3.718-0.687-8.055-1.572-12.793-2.103h0.01c-5.836-0.646-13.001-1.208-20.733-1.219c-11.892,0.031-25.143,1.25-37.338,6.134 c-6.087,2.458-11.939,5.904-16.906,10.768c-4.962,4.842-8.919,11.153-11.08,18.567C0.563,191.806,0,196.014,0,200.282 c0.099,18.276,9.836,37.583,27.684,53.817c16.844,15.245,41.243,27.617,72.728,33.24c0.114,0.489,0.223,0.896,0.344,1.458 c1.874,8.664,4.102,25.242,8.247,44.591c6.285,29.115,16.896,65.167,39.16,94.835c11.142,14.798,25.31,27.981,43.201,37.364 c17.879,9.404,39.378,14.902,64.636,14.892c37.978,0.083,67.422-12.58,88.905-31.667c32.281-28.669,47.173-70.136,55.613-104.562 c4.186-17.234,6.706-32.854,8.654-44.225c0.912-5.353,1.708-9.748,2.4-12.674c31.496-5.624,55.9-17.994,72.744-33.25 c17.848-16.234,27.58-35.541,27.684-53.817C512,196.014,511.438,191.806,510.256,187.787z M165.549,59.409 c5.118-5.456,9.022-6.508,11.804-6.55c2.499,0,4.665,1,6.316,2.615c1.651,1.624,2.473,3.696,2.453,5.352l-0.625,2.572 l-0.261,0.522l-0.198,0.541c-5.508,14.923-9.076,29.376-9.101,43.133c0,8.195,1.312,16.192,4.498,23.586 c2.526,5.946,6.404,11.288,11.32,15.912c-7.967-0.167-16.605-0.292-24.993-0.396c-13.745-0.168-26.596-0.25-34.136-0.303 c1.818-14.35,3.453-27.606,6.847-40.05C143.884,90.254,150.908,75.321,165.549,59.409z M318.981,441.844 c-16.234,10.59-36.442,17.276-62.98,17.307c-33.38-0.083-56.795-10.528-74.784-26.315c-12.834-11.267-22.712-25.689-30.455-41.195 c0.901-4.78,3.015-9.133,6.436-13.392c6.935-8.612,19.78-16.308,36.791-21.514c16.974-5.258,37.921-8.122,60.576-8.122 c30.204-0.031,57.394,5.144,76.138,14.1c9.383,4.456,16.584,9.809,21.234,15.536c4.483,5.581,6.706,11.33,6.893,17.994 c-0.625,1.156-1.15,2.364-1.801,3.499C347.508,416.477,335.189,431.243,318.981,441.844z M470.002,238.292 c-14.417,13.058-36.708,24.524-67.495,29.033l-2.374,0.344l-1.994,1.333c-2.578,1.79-3.583,3.53-4.39,4.904 c-1.431,2.708-2.014,4.927-2.702,7.571c-1.203,4.864-2.213,10.954-3.473,18.26c-1.524,8.625-3.428,19.124-6.134,30.576 c-7.247,29.665-20.215,66.061-48.03,91.907c-16.028,14.232-36.169,24.516-64.055,24.466c-21.776,0-40.292-4.969-55.129-12.732 c-14.839-7.742-27.058-18.692-36.544-30.747c-19.038-25.604-28.956-57.424-34.635-85.312c-1.642-8.429-2.642-14.843-3.494-19.853 c-0.693-3.697-1.256-5.834-1.943-7.519c-0.688-1.698-1.743-3.24-4.323-5.03l-1.989-1.333l-2.374-0.344 c-30.788-4.509-53.083-15.975-67.5-29.033c-15.05-13.646-22.688-28.674-22.749-38.01c0-1.625,0.396-3.859,1.057-6.283 c1.261-4.849,3.597-10.709,6.665-16.755c5.97-12.085,14.748-24.971,25.422-36.775c2.188,1.828,4.64,3.501,7.441,4.98 c9.854,5.132,22.406,8.838,35.833,9.723c12.073,0.823,24.653-0.057,35.493-3.755c10.859-3.666,20.146-9.648,26.908-17.71 c6.767-8.081,10.94-18.221,11.255-29.685c0-2.073-0.26-3.948-0.64-5.901c-0.26-1.203-0.484-2.452-0.641-3.667 c-1.78-12.632-5.748-24.661-11.853-37.393c-3.062-6.173-6.634-12.165-9.359-17.301c-0.932-1.801-1.776-3.414-2.552-5.155 c4.911-5.416,10.209-10.13,15.51-14.678c12.045-10.674,23.606-19.829,33.336-26.128c7.47,6.566,14.801,14.498,21.238,23.858 c12.843,18.226,20.273,37.197,25.055,55.19c4.794,17.983,6.636,34.864,9.055,50.801c0.78,4.584,1.35,8.114,2.373,11.554 c0.98,3.229,2.306,6.316,4.664,9.208c2.396,2.892,5.74,5.532,10.96,6.409c1.296,0.219,3.84-0.5,7.683-1.187 c3.838-0.641,8.727-1.448,14.168-1.948c5.423-0.625,11.573-1.036,18.168-1.057c8.92,0,18.659,0.667,28.086,2.807 c9.426,2.141,17.48,6.104,23.654,12.281c3.177,3.093,5.784,6.775,7.579,10.938c1.778,4.141,2.74,8.704,2.74,13.314 C492.688,209.625,485.052,224.646,470.002,238.292z"})})})},CircleAlertOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("circle",{cx:"12",cy:"12",r:"10"}),C.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),C.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})},CircleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})},Manager:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("circle",{cx:"10",cy:"8",r:"4"}),C.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})]})},ManagerOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e,96),..._n(t),...i,ref:o,children:[C.jsxs("g",{clipPath:"url(#clip0_1_3)",children:[C.jsx("path",{d:"M80 84V76C80 71.7565 78.3143 67.6869 75.3137 64.6863C72.3131 61.6857 68.2435 60 64 60V70L48 60L32 70V60C27.7565 60 23.6869 61.6857 20.6863 64.6863C17.6857 67.6869 16 71.7565 16 76V84",strokeWidth:"8"}),C.jsx("path",{d:"M48 44C56.8366 44 64 36.8366 64 28C64 19.1634 56.8366 12 48 12C39.1634 12 32 19.1634 32 28C32 36.8366 39.1634 44 48 44Z",strokeWidth:"8"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_1_3",children:C.jsx("rect",{fill:"white",height:"96",width:"96"})})})]})},Admin:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34s-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34s.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25q-.195-.15-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24s.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25q.195.15.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24s-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"})})},Equalizer:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"})})},ABC:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M21 11h-1.5v-.5h-2v3h2V13H21v1c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1zM8 10v5H6.5v-1.5h-2V15H3v-5c0-.55.45-1 1-1h3c.55 0 1 .45 1 1m-1.5.5h-2V12h2zm7 1.5c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1h-4V9h4c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M11 10.5v.75h2v-.75zm2 2.25h-2v.75h2z"})})},Auth:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})})},AuthAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M13.22 22.61c-.4.15-.8.29-1.22.39-5.16-1.26-9-6.45-9-12V5l9-4 9 4v6c0 .9-.11 1.78-.3 2.65-.81-.41-1.73-.65-2.7-.65-3.31 0-6 2.69-6 6 0 1.36.46 2.61 1.22 3.61M19 20v2.99s-1.99.01-2 0V20h-3v-2h3v-3h2v3h3v2z"})})},Switch:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"})})},Add:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})})},Edit:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41"})})},EditOff:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"m14.06 9.02.92.92-1.11 1.11 1.41 1.41 2.52-2.52-3.75-3.75-2.52 2.52 1.41 1.41zm6.65-1.98c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75zM2.81 2.81 1.39 4.22l7.32 7.32L3 17.25V21h3.75l5.71-5.71 7.32 7.32 1.41-1.41zM5.92 19H5v-.92l5.13-5.13.92.92z"})})},Delete:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})})},Save:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})})},Remove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 13H5v-2h14z"})})},Sync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})})},X:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),C.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]})},MoreVertical:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("circle",{cx:"12",cy:"12",r:"1"}),C.jsx("circle",{cx:"12",cy:"5",r:"1"}),C.jsx("circle",{cx:"12",cy:"19",r:"1"})]})},MoreHorizontal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("circle",{cx:"12",cy:"12",r:"1"}),C.jsx("circle",{cx:"19",cy:"12",r:"1"}),C.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},Verified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M10.708 4.03551C11.4008 3.27361 12.5992 3.27361 13.292 4.03551C14.0105 4.82555 15.0715 5.21174 16.1297 5.06835C17.1502 4.93006 18.0682 5.70033 18.1092 6.72935C18.1518 7.79637 18.7163 8.77423 19.6191 9.34458C20.4898 9.89462 20.6979 11.0747 20.0678 11.8894C19.4146 12.7341 19.2185 13.8461 19.5435 14.8633C19.8569 15.8443 19.2577 16.8821 18.2514 17.1012C17.208 17.3284 16.343 18.0542 15.9381 19.0423C15.5476 19.9952 14.4216 20.4051 13.5099 19.9261C12.5646 19.4294 11.4354 19.4294 10.4901 19.9261C9.57843 20.4051 8.45237 19.9952 8.06187 19.0423C7.65695 18.0542 6.79199 17.3284 5.74857 17.1012C4.7423 16.8821 4.14314 15.8443 4.45654 14.8633C4.7815 13.8461 4.58543 12.7341 3.93215 11.8894C3.30214 11.0747 3.51023 9.89462 4.38087 9.34458C5.28366 8.77423 5.84823 7.79637 5.89077 6.72935C5.9318 5.70033 6.84977 4.93006 7.87028 5.06835C8.92848 5.21174 9.98951 4.82555 10.708 4.03551Z",strokeWidth:"1.5"}),C.jsx("path",{clipRule:"evenodd",d:"M16.5682 10.0607L15.5076 9.00002L11.0719 13.4357L8.56068 10.9244L7.50002 11.9851L11.0719 15.557L12.1326 14.4963L12.1326 14.4963L16.5682 10.0607Z",fill:t,fillRule:"evenodd",strokeWidth:0})]})},NonVerified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M10.1531 3.53092C11.1435 2.44181 12.8565 2.44181 13.8469 3.53092V3.53092C14.3994 4.13844 15.2153 4.4354 16.029 4.32514V4.32514C17.4878 4.12747 18.8 5.22853 18.8586 6.69947V6.69947C18.8913 7.51998 19.3255 8.27193 20.0197 8.71052V8.71052C21.2643 9.49677 21.5617 11.1837 20.6611 12.3482V12.3482C20.1588 12.9978 20.008 13.8529 20.2579 14.6351V14.6351C20.7059 16.0374 19.8494 17.5208 18.411 17.834V17.834C17.6086 18.0087 16.9435 18.5668 16.6321 19.3267V19.3267C16.0739 20.6888 14.4643 21.2747 13.1611 20.59V20.59C12.4341 20.2081 11.5659 20.2081 10.8389 20.59V20.59C9.53573 21.2747 7.92608 20.6888 7.36788 19.3267V19.3267C7.05651 18.5668 6.39137 18.0087 5.58901 17.834V17.834C4.1506 17.5208 3.29413 16.0374 3.74211 14.6351V14.6351C3.992 13.8529 3.84122 12.9978 3.33887 12.3482V12.3482C2.43829 11.1837 2.73574 9.49677 3.98029 8.71052V8.71052C4.67452 8.27193 5.10865 7.51998 5.14137 6.69947V6.69947C5.20002 5.22853 6.51221 4.12747 7.97099 4.32514V4.32514C8.78471 4.4354 9.60062 4.13844 10.1531 3.53092V3.53092Z",stroke:"var(--line-normal)",strokeDasharray:"0.75 1.5",strokeLinecap:"round",strokeMiterlimit:"11.4737",strokeWidth:"0.75",style:{...i.style,transition:"stroke var(--Transition)"}}),C.jsx("path",{d:"M16.2224 8.5837L16.4875 8.31854C16.3411 8.17209 16.1037 8.17209 15.9572 8.31854L16.2224 8.5837ZM17.5013 9.86264L17.7665 10.1278C17.9129 9.98136 17.9129 9.74392 17.7665 9.59747L17.5013 9.86264ZM10.8739 13.9322L10.6087 14.1974C10.679 14.2677 10.7744 14.3072 10.8739 14.3072C10.9733 14.3072 11.0687 14.2677 11.139 14.1974L10.8739 13.9322ZM7.84584 10.9042L8.111 10.639C8.04068 10.5687 7.9453 10.5292 7.84584 10.5292C7.74638 10.5292 7.651 10.5687 7.58067 10.639L7.84584 10.9042ZM6.5669 12.1831L6.30174 11.9179C6.15529 12.0644 6.15529 12.3018 6.30174 12.4483L6.5669 12.1831ZM10.8739 16.4901L10.6087 16.7553C10.7552 16.9017 10.9926 16.9017 11.1391 16.7553L10.8739 16.4901ZM12.1528 15.2112L12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L12.1528 15.2112ZM12.1528 15.2111L11.8876 14.946C11.7412 15.0924 11.7412 15.3299 11.8876 15.4763L12.1528 15.2111ZM15.6601 8.61568C15.5136 8.76212 15.5136 8.99956 15.6601 9.14601C15.8065 9.29245 16.044 9.29245 16.1904 9.14601L15.6601 8.61568ZM15.0018 10.3346C15.1483 10.1881 15.1483 9.95068 15.0018 9.80423C14.8554 9.65778 14.618 9.65778 14.4715 9.80423L15.0018 10.3346ZM13.8772 10.3985C13.7308 10.545 13.7308 10.7824 13.8772 10.9288C14.0237 11.0753 14.2611 11.0753 14.4076 10.9288L13.8772 10.3985ZM13.219 12.1174C13.3655 11.9709 13.3655 11.7335 13.219 11.5871C13.0726 11.4406 12.8351 11.4406 12.6887 11.5871L13.219 12.1174ZM12.0944 12.1813C11.948 12.3278 11.948 12.5652 12.0944 12.7117C12.2409 12.8581 12.4783 12.8581 12.6247 12.7117L12.0944 12.1813ZM11.4362 13.9002C11.5826 13.7538 11.5826 13.5163 11.4362 13.3699C11.2897 13.2234 11.0523 13.2234 10.9059 13.3699L11.4362 13.9002ZM10.8867 13.4147C10.7403 13.2683 10.5028 13.2683 10.3564 13.4147C10.2099 13.5611 10.2099 13.7986 10.3564 13.945L10.8867 13.4147ZM9.34703 12.9357C9.49348 13.0821 9.73091 13.0821 9.87736 12.9357C10.0238 12.7892 10.0238 12.5518 9.87736 12.4054L9.34703 12.9357ZM9.37269 11.9007C9.22624 11.7542 8.9888 11.7542 8.84236 11.9007C8.69591 12.0471 8.69591 12.2846 8.84236 12.431L9.37269 11.9007ZM7.83301 11.4217C7.97946 11.5681 8.21689 11.5681 8.36334 11.4217C8.50979 11.2752 8.50979 11.0378 8.36334 10.8913L7.83301 11.4217ZM7.36752 10.8522C7.22107 10.9986 7.22107 11.236 7.36752 11.3825C7.51396 11.5289 7.7514 11.5289 7.89785 11.3825L7.36752 10.8522ZM7.04522 12.2351C7.19167 12.0887 7.19167 11.8512 7.04522 11.7048C6.89878 11.5583 6.66134 11.5583 6.51489 11.7048L7.04522 12.2351ZM6.54101 12.6875C6.68746 12.834 6.9249 12.834 7.07134 12.6875C7.21779 12.5411 7.21779 12.3037 7.07134 12.1572L6.54101 12.6875ZM8.02845 13.1143C7.88201 12.9679 7.64457 12.9679 7.49812 13.1143C7.35168 13.2608 7.35168 13.4982 7.49812 13.6446L8.02845 13.1143ZM7.97668 14.1232C8.12312 14.2697 8.36056 14.2697 8.50701 14.1232C8.65345 13.9768 8.65345 13.7393 8.50701 13.5929L7.97668 14.1232ZM9.46412 14.55C9.31767 14.4035 9.08023 14.4035 8.93379 14.55C8.78734 14.6964 8.78734 14.9339 8.93379 15.0803L9.46412 14.55ZM9.41234 15.5589C9.55879 15.7053 9.79623 15.7053 9.94267 15.5589C10.0891 15.4124 10.0891 15.175 9.94267 15.0285L9.41234 15.5589ZM10.8998 15.9856C10.7533 15.8392 10.5159 15.8392 10.3695 15.9856C10.223 16.1321 10.223 16.3695 10.3695 16.516L10.8998 15.9856ZM11.3522 16.5421C11.4987 16.3957 11.4987 16.1582 11.3522 16.0118C11.2058 15.8653 10.9683 15.8653 10.8219 16.0118L11.3522 16.5421ZM11.6745 15.1591C11.5281 15.3056 11.5281 15.543 11.6745 15.6895C11.821 15.8359 12.0584 15.8359 12.2048 15.6895L11.6745 15.1591ZM12.418 14.946C12.2715 14.7995 12.0341 14.7995 11.8877 14.946C11.7412 15.0924 11.7412 15.3299 11.8877 15.4763L12.418 14.946ZM11.8877 15.4763C12.0341 15.6228 12.2715 15.6228 12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L11.8877 15.4763ZM12.7151 15.1792C12.8616 15.0327 12.8616 14.7953 12.7151 14.6488C12.5687 14.5024 12.3312 14.5024 12.1848 14.6488L12.7151 15.1792ZM13.3733 13.4603C13.2269 13.6067 13.2269 13.8442 13.3733 13.9906C13.5198 14.1371 13.7572 14.1371 13.9037 13.9906L13.3733 13.4603ZM14.498 13.3963C14.6444 13.2499 14.6444 13.0124 14.498 12.866C14.3515 12.7196 14.1141 12.7196 13.9676 12.866L14.498 13.3963ZM15.1562 11.6774C15.0097 11.8239 15.0097 12.0613 15.1562 12.2078C15.3026 12.3542 15.5401 12.3542 15.6865 12.2078L15.1562 11.6774ZM16.2808 11.6135C16.4272 11.4671 16.4272 11.2296 16.2808 11.0832C16.1343 10.9367 15.8969 10.9367 15.7505 11.0832L16.2808 11.6135ZM16.939 9.89461C16.7926 10.0411 16.7926 10.2785 16.939 10.4249C17.0855 10.5714 17.3229 10.5714 17.4693 10.4249L16.939 9.89461ZM17.5533 9.38432C17.4069 9.23787 17.1694 9.23787 17.023 9.38432C16.8765 9.53076 16.8765 9.7682 17.023 9.91465L17.5533 9.38432ZM16.1704 9.06202C16.3168 9.20847 16.5542 9.20847 16.7007 9.06202C16.8471 8.91558 16.8471 8.67814 16.7007 8.53169L16.1704 9.06202ZM15.9572 8.31854L15.6601 8.61568L16.1904 9.14601L16.4875 8.84887L15.9572 8.31854ZM14.4715 9.80423L13.8772 10.3985L14.4076 10.9288L15.0018 10.3346L14.4715 9.80423ZM12.6887 11.5871L12.0944 12.1813L12.6247 12.7117L13.219 12.1174L12.6887 11.5871ZM10.9059 13.3699L10.6087 13.667L11.139 14.1974L11.4362 13.9002L10.9059 13.3699ZM11.139 13.667L10.8867 13.4147L10.3564 13.945L10.6087 14.1974L11.139 13.667ZM9.87736 12.4054L9.37269 11.9007L8.84236 12.431L9.34703 12.9357L9.87736 12.4054ZM8.36334 10.8913L8.111 10.639L7.58067 11.1693L7.83301 11.4217L8.36334 10.8913ZM7.58067 10.639L7.36752 10.8522L7.89785 11.3825L8.111 11.1693L7.58067 10.639ZM6.51489 11.7048L6.30174 11.9179L6.83207 12.4483L7.04522 12.2351L6.51489 11.7048ZM6.30174 12.4483L6.54101 12.6875L7.07134 12.1572L6.83207 11.9179L6.30174 12.4483ZM7.49812 13.6446L7.97668 14.1232L8.50701 13.5929L8.02845 13.1143L7.49812 13.6446ZM8.93379 15.0803L9.41234 15.5589L9.94267 15.0285L9.46412 14.55L8.93379 15.0803ZM10.3695 16.516L10.6087 16.7553L11.1391 16.2249L10.8998 15.9856L10.3695 16.516ZM11.1391 16.7553L11.3522 16.5421L10.8219 16.0118L10.6087 16.2249L11.1391 16.7553ZM12.2048 15.6895L12.418 15.4763L11.8877 14.946L11.6745 15.1591L12.2048 15.6895ZM12.418 14.946L12.418 14.946L11.8877 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 14.946L12.418 14.946L11.8876 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 15.4763L12.7151 15.1792L12.1848 14.6488L11.8876 14.946L12.418 15.4763ZM13.9037 13.9906L14.498 13.3963L13.9676 12.866L13.3733 13.4603L13.9037 13.9906ZM15.6865 12.2078L16.2808 11.6135L15.7505 11.0832L15.1562 11.6774L15.6865 12.2078ZM17.4693 10.4249L17.7665 10.1278L17.2361 9.59747L16.939 9.89461L17.4693 10.4249ZM17.7665 9.59747L17.5533 9.38432L17.023 9.91465L17.2361 10.1278L17.7665 9.59747ZM16.7007 8.53169L16.4875 8.31854L15.9572 8.84887L16.1704 9.06202L16.7007 8.53169Z",fill:"var(--line-normal)",strokeWidth:0,style:{...i.style,transition:"fill var(--Transition)"}})]})},Edit2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),C.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})},Trash:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("polyline",{points:"3 6 5 6 21 6"}),C.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),C.jsx("line",{x1:"10",x2:"10",y1:"11",y2:"17"}),C.jsx("line",{x1:"14",x2:"14",y1:"11",y2:"17"})]})},AddRowBelow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M200-560h560v-240H200v240Zm-80 400v-720h720v720H680v-80h80v-240H200v240h80v80H120Zm360-320Zm0-80v80-80Zm0 0ZM440-80v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddRowAbove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M200-160h560v-240H200v240Zm640 80H120v-720h160v80h-80v240h560v-240h-80v-80h160v720ZM480-480Zm0 80v-80 80Zm0 0Zm-40-240v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColRight:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M160-760v560h240v-560H160ZM80-120v-720h720v160h-80v-80H480v560h240v-80h80v160H80Zm400-360Zm-80 0h80-80Zm0 0Zm320 120v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColLeft:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M800-200v-560H560v560h240Zm-640 80v-160h80v80h240v-560H240v80h-80v-160h720v720H160Zm320-360Zm80 0h-80 80Zm0 0ZM160-360v-80H80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},RemoveCol:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M360-440h240v-80H360v80Zm-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z"})})},RemoveRow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...Nd(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M360-440h240v-80H360v80Z"}),C.jsx("path",{d:"M-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z",transform:"rotate(90 480 -480)"})]})},Table:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsx("svg",{...St(e),..._n(t),...o,ref:n,children:C.jsx("path",{className:"ql-stroke ql-thick",d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"})})},Minus:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsx("svg",{...St(e),..._n(t),...o,ref:n,children:C.jsx("line",{className:"ql-stroke ql-thick",x1:"5",x2:"19",y1:"12",y2:"12"})})},EditorArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="currentColor",svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),...i,ref:o,children:[C.jsx("path",{d:"M11 5L16.1962 10.25H5.80385L11 5Z",fill:t}),C.jsx("path",{d:"M11 19L16.1962 13.75H5.80385L11 19Z",fill:n})]})},Target:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsx("svg",{...St(e),...o,ref:n,children:C.jsx("g",{id:"target",children:C.jsx("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:t,id:"Vector"})})})},DividerExpand:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t,1.5),...o,ref:n,children:[C.jsx("path",{d:"M4 6V18"}),C.jsx("path",{d:"M8 12H20"}),C.jsx("path",{d:"M12 8L8 12L12 16"})]})},AlignLeft:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"17",x2:"3",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"17",x2:"3",y1:"18",y2:"18"})]})},AlignCenter:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"18",x2:"6",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"18",x2:"6",y1:"18",y2:"18"})]})},AlignRight:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"21",x2:"7",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"21",x2:"7",y1:"18",y2:"18"})]})},AlignJustify:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"21",x2:"3",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"21",x2:"3",y1:"18",y2:"18"})]})},Maximize:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("polyline",{points:"15 3 21 3 21 9"}),C.jsx("polyline",{points:"9 21 3 21 3 15"}),C.jsx("line",{x1:"21",x2:"14",y1:"3",y2:"10"}),C.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})},Minimize:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("polyline",{points:"4 14 10 14 10 20"}),C.jsx("polyline",{points:"20 10 14 10 14 4"}),C.jsx("line",{x1:"14",x2:"21",y1:"10",y2:"3"}),C.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})}}),wv=ar.keys(xg),t4={Ok:"Ok",Cancel:"Cancel"},r4={"select n":r=>C.jsxs(C.Fragment,{children:["Select ",r]}),"deselect n":r=>C.jsxs(C.Fragment,{children:["Deselect ",r]}),"Search(Placeholder)":"Search","Search(Button)":"Search",Items:"Items","*Click row for single select":"*Click row for single select","*Change order to row drag":"*Change order to row drag","Loading Contents...":"Loading Contents..."},n4={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select Date":"Select Date"},o4={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select DateRange":"Select DateRange","1일":"1 Day","1주일":"1 Week","1개월":"1 Month","3개월":"3 Months"},i4={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},s4={"Checked n items":r=>C.jsxs(C.Fragment,{children:["Checked ",r," items"]}),"Searched n items":r=>C.jsxs(C.Fragment,{children:["Searched ",r," items"]}),"Total n items":r=>C.jsxs(C.Fragment,{children:["Total ",r," items"]}),"Sort by x":r=>C.jsxs(C.Fragment,{children:["Sort by ",r]}),"Sort up":"Sort up","Sort down":"Sort down",Asc:"Asc",Desc:"Desc","Search(Placeholder)":"Search","Search(Button)":"Search","Clear(Button)":"Clear",Select:"Select","Toggle Filter":"Toggle Filter","No Items":"No Items"},a4={"Select(Placeholder)":"Select"},l4={"Select(Placeholder)":"Select"},c4={"Insert Full Width Table":"Insert Full Width Table",Custom:"Custom",Confirm:"Confirm",Cancel:"Cancel","Copy Cell":"Copy Cell","Cut Cell":"Cut Cell",Row:"Row",Column:"Column","Not Positive Number Error":"Please enter a positive integer",perWidthInsufficient:"The table needs to be converted to a fixed width.",Transparent:"Transparent",Clear:"Clear","Insert Column Right":"Insert Column Right","Insert Column Left":"Insert Column Left","Insert Row Top":"Insert Row Top","Insert Row Bottom":"Insert Row Bottom","Delete Column":"Delete Column","Delete Row":"Delete Row","Delete Table":"Delete Table","Set Background Color":"Set Background Color","Set Border Color":"Set Border Color","Switch Table Width":"Switch Table Width","Insert Table Caption":"Insert Table Caption","Merge Cell":"Merge Cell","Split Cell":"Split Cell","Right click to open properties":"Right click to open properties",Default:"Default","Enter link:":"Enter link:","Enter video:":"Enter video:","Visit URL:":"Visit URL:",Edit:"Edit",Save:"Save",Remove:"Remove"},u4={Asterisk:"Required field"},d4={Delete:"Delete","Fail Download":"Fail Download",Download:"Download","Download List":"Download List","Drop file to select":"Drop file to select","Insert File":"Insert File","Download All":"Download All","Delete All":"Delete All","Unsupported file format detected.":"Unsupported file format detected.","Invalid file(s)":"Invalid file(s)","Supported file format(s)":"Supported file format(s)",and:"and","more file(s)":"more file(s)"},f4={Progress:"Progress"},h4={Expand:"Expand",Collapse:"Collapse"},wr={ADialog:t4,ATree:r4,ADatePicker:n4,ADateRangePicker:o4,AFileBox:i4,ATable:s4,ASelect:a4,AMultiSelect:l4,AEditor:c4,AWrap:u4,AFileUploader:d4,AProgressBar:f4,ADivideFrame:h4};function p4(r,e){ar.keys(e).forEach(t=>{r[t]=e[t]})}const g4=(r,e)=>{p4(wr[r],e)},m4="_AProgressBar_17v9w_1",v4="_Header_17v9w_7",y4="_Percentage_17v9w_13",b4="_BarContainer_17v9w_16",x4="_Bar_17v9w_16",w4="_CustomHeight_17v9w_31",C4="_CustomRadius_17v9w_34",S4="_CustomColor_17v9w_40",Ac={AProgressBar:m4,Header:v4,Percentage:y4,BarContainer:b4,Bar:x4,CustomHeight:w4,CustomRadius:C4,CustomColor:S4},Cw=({progress:r=0,backgroundColor:e,color:t,height:n,borderRadius:o,showPercentage:i=!0,style:a,className:c,resources:d,label:h})=>{const p=S.useMemo(()=>({...wr.AProgressBar,...d}),[d]),m=S.useMemo(()=>h??p.Progress,[h,p]),g=Math.min(Math.max(r,0),100),v=S.useMemo(()=>{const T={};return n&&(T["--progress-bar-height"]=`${n}px`),o&&(T["--progress-bar-radius"]=`${o}px`),e&&(T["--progress-bar-background-custom"]=e),t&&(T["--progress-bar-color-custom"]=t),T},[n,o,e,t]),w=S.useMemo(()=>Ge.clsx(Ac.AProgressBar,n&&Ac.CustomHeight,o&&Ac.CustomRadius,(e||t)&&Ac.CustomColor,c),[n,o,e,t,c]);return C.jsxs("div",{className:w,style:{...v,...a},children:[C.jsxs("div",{className:Ac.Header,children:[C.jsx("div",{className:Ge.clsx("Label1"),children:m}),i&&C.jsxs("div",{className:Ac.Percentage,children:[g,"%"]})]}),C.jsx("div",{className:Ac.BarContainer,children:C.jsx("div",{className:Ac.Bar,style:{width:`${g}%`}})})]})};var Ec={},Du={};/**
|
57
|
+
}`;var Pr=i0(function(){return $r(te,sr+"return "+Rt).apply(t,ye)});if(Pr.source=Rt,em(Pr))throw Pr;return Pr}function C3(s){return gn(s).toLowerCase()}function S3(s){return gn(s).toUpperCase()}function _3(s,u,x){if(s=gn(s),s&&(x||u===t))return Mt(s);if(!s||!(u=yo(u)))return s;var L=Sn(s),W=Sn(u),te=on(L,W),ye=lo(L,W)+1;return ws(L,te,ye).join("")}function A3(s,u,x){if(s=gn(s),s&&(x||u===t))return s.slice(0,od(s)+1);if(!s||!(u=yo(u)))return s;var L=Sn(s),W=lo(L,Sn(u))+1;return ws(L,0,W).join("")}function E3(s,u,x){if(s=gn(s),s&&(x||u===t))return s.replace(zt,"");if(!s||!(u=yo(u)))return s;var L=Sn(s),W=on(L,Sn(u));return ws(L,W).join("")}function T3(s,u){var x=pe,L=P;if(Un(u)){var W="separator"in u?u.separator:W;x="length"in u?Lr(u.length):x,L="omission"in u?yo(u.omission):L}s=gn(s);var te=s.length;if(_a(s)){var ye=Sn(s);te=ye.length}if(x>=te)return s;var Ee=x-Aa(L);if(Ee<1)return L;var Ne=ye?ws(ye,0,Ee).join(""):s.slice(0,Ee);if(W===t)return Ne+L;if(ye&&(Ee+=Ne.length-Ee),tm(W)){if(s.slice(Ee).search(W)){var mt,bt=Ne;for(W.global||(W=Ea(W.source,gn(Dt.exec(W))+"g")),W.lastIndex=0;mt=W.exec(bt);)var Rt=mt.index;Ne=Ne.slice(0,Rt===t?Ee:Rt)}}else if(s.indexOf(yo(W),Ee)!=Ee){var qt=Ne.lastIndexOf(W);qt>-1&&(Ne=Ne.slice(0,qt))}return Ne+L}function R3(s){return s=gn(s),s&&Ft.test(s)?s.replace(pt,id):s}var k3=E(function(s,u,x){return s+(x?" ":"")+u.toUpperCase()}),om=y("toUpperCase");function o0(s,u,x){return s=gn(s),u=x?t:u,u===t?Ef(s)?sd(s):wa(s):s.match(u)||[]}var i0=Ar(function(s,u){try{return vn(s,t,u)}catch(x){return em(x)?x:new dr(x)}}),I3=kl(function(s,u){return Jn(u,function(x){x=Wa(x),$o(s,x,Jg(s[x],s))}),s});function M3(s){var u=s==null?0:s.length,x=gr();return s=u?ln(s,function(L){if(typeof L[1]!="function")throw new Zo(a);return[x(L[0]),L[1]]}):[],Ar(function(L){for(var W=-1;++W<u;){var te=s[W];if(vn(te[0],this,L))return vn(te[1],this,L)}})}function L3(s){return gu(vo(s,m))}function im(s){return function(){return s}}function D3(s,u){return s==null||s!==s?u:s}var O3=me(),N3=me(!0);function Ii(s){return s}function sm(s){return pc(typeof s=="function"?s:vo(s,m))}function P3(s){return Ei(vo(s,m))}function B3(s,u){return Sl(s,vo(u,m))}var F3=Ar(function(s,u){return function(x){return Ai(x,s,u)}}),j3=Ar(function(s,u){return function(x){return Ai(s,x,u)}});function am(s,u,x){var L=ko(u),W=Pa(u,L);x==null&&!(Un(u)&&(W.length||!L.length))&&(x=u,u=s,s=this,W=Pa(u,ko(u)));var te=!(Un(x)&&"chain"in x)||!!x.chain,ye=Ml(s);return Jn(W,function(Ee){var Ne=u[Ee];s[Ee]=Ne,ye&&(s.prototype[Ee]=function(){var mt=this.__chain__;if(te||mt){var bt=s(this.__wrapped__),Rt=bt.__actions__=xo(this.__actions__);return Rt.push({func:Ne,args:arguments,thisArg:s}),bt.__chain__=mt,bt}return Ne.apply(s,Po([this.value()],arguments))})}),s}function z3(){return Cr._===this&&(Cr._=ou),this}function lm(){}function H3(s){return s=Lr(s),Ar(function(u){return Ha(u,s)})}var $3=Pt(ln),q3=Pt(al),U3=Pt(as);function s0(s){return Vg(s)?M(Wa(s)):xd(s)}function W3(s){return function(u){return s==null?t:ys(s,u)}}var V3=Gn(),G3=Gn(!0);function cm(){return[]}function um(){return!1}function Y3(){return{}}function Z3(){return""}function K3(){return!0}function X3(s,u){if(s=Lr(s),s<1||s>ae)return[];var x=ie,L=qn(s,ie);u=gr(u),s-=ie;for(var W=He(L,u);++x<s;)u(x);return W}function J3(s){return Tr(s)?ln(s,Wa):Qi(s)?[s]:xo(Ey(gn(s)))}function Q3(s){var u=++ru;return gn(s)+u}var eT=At(function(s,u){return s+u},0),tT=ci("ceil"),rT=At(function(s,u){return s/u},1),nT=ci("floor");function oT(s){return s&&s.length?ac(s,Ii,Gs):t}function iT(s,u){return s&&s.length?ac(s,gr(u,2),Gs):t}function sT(s){return cl(s,Ii)}function aT(s,u){return cl(s,gr(u,2))}function lT(s){return s&&s.length?ac(s,Ii,si):t}function cT(s,u){return s&&s.length?ac(s,gr(u,2),si):t}var uT=At(function(s,u){return s*u},1),dT=ci("round"),fT=At(function(s,u){return s-u},0);function hT(s){return s&&s.length?We(s,Ii):0}function pT(s,u){return s&&s.length?We(s,gr(u,2)):0}return Z.after=PA,Z.ary=By,Z.assign=SE,Z.assignIn=Xy,Z.assignInWith=op,Z.assignWith=_E,Z.at=AE,Z.before=Fy,Z.bind=Jg,Z.bindAll=I3,Z.bindKey=jy,Z.castArray=YA,Z.chain=Oy,Z.chunk=n_,Z.compact=o_,Z.concat=i_,Z.cond=M3,Z.conforms=L3,Z.constant=im,Z.countBy=hA,Z.create=EE,Z.curry=zy,Z.curryRight=Hy,Z.debounce=$y,Z.defaults=TE,Z.defaultsDeep=RE,Z.defer=BA,Z.delay=FA,Z.difference=s_,Z.differenceBy=a_,Z.differenceWith=l_,Z.drop=c_,Z.dropRight=u_,Z.dropRightWhile=d_,Z.dropWhile=f_,Z.fill=h_,Z.filter=gA,Z.flatMap=yA,Z.flatMapDeep=bA,Z.flatMapDepth=xA,Z.flatten=Iy,Z.flattenDeep=p_,Z.flattenDepth=g_,Z.flip=jA,Z.flow=O3,Z.flowRight=N3,Z.fromPairs=m_,Z.functions=NE,Z.functionsIn=PE,Z.groupBy=wA,Z.initial=y_,Z.intersection=b_,Z.intersectionBy=x_,Z.intersectionWith=w_,Z.invert=FE,Z.invertBy=jE,Z.invokeMap=SA,Z.iteratee=sm,Z.keyBy=_A,Z.keys=ko,Z.keysIn=ki,Z.map=Jh,Z.mapKeys=HE,Z.mapValues=$E,Z.matches=P3,Z.matchesProperty=B3,Z.memoize=ep,Z.merge=qE,Z.mergeWith=Jy,Z.method=F3,Z.methodOf=j3,Z.mixin=am,Z.negate=tp,Z.nthArg=H3,Z.omit=UE,Z.omitBy=WE,Z.once=zA,Z.orderBy=AA,Z.over=$3,Z.overArgs=HA,Z.overEvery=q3,Z.overSome=U3,Z.partial=Qg,Z.partialRight=qy,Z.partition=EA,Z.pick=VE,Z.pickBy=Qy,Z.property=s0,Z.propertyOf=W3,Z.pull=A_,Z.pullAll=Ly,Z.pullAllBy=E_,Z.pullAllWith=T_,Z.pullAt=R_,Z.range=V3,Z.rangeRight=G3,Z.rearg=$A,Z.reject=kA,Z.remove=k_,Z.rest=qA,Z.reverse=Kg,Z.sampleSize=MA,Z.set=YE,Z.setWith=ZE,Z.shuffle=LA,Z.slice=I_,Z.sortBy=NA,Z.sortedUniq=B_,Z.sortedUniqBy=F_,Z.split=y3,Z.spread=UA,Z.tail=j_,Z.take=z_,Z.takeRight=H_,Z.takeRightWhile=$_,Z.takeWhile=q_,Z.tap=oA,Z.throttle=WA,Z.thru=Xh,Z.toArray=Yy,Z.toPairs=e0,Z.toPairsIn=t0,Z.toPath=J3,Z.toPlainObject=Ky,Z.transform=KE,Z.unary=VA,Z.union=U_,Z.unionBy=W_,Z.unionWith=V_,Z.uniq=G_,Z.uniqBy=Y_,Z.uniqWith=Z_,Z.unset=XE,Z.unzip=Xg,Z.unzipWith=Dy,Z.update=JE,Z.updateWith=QE,Z.values=Od,Z.valuesIn=e3,Z.without=K_,Z.words=o0,Z.wrap=GA,Z.xor=X_,Z.xorBy=J_,Z.xorWith=Q_,Z.zip=eA,Z.zipObject=tA,Z.zipObjectDeep=rA,Z.zipWith=nA,Z.entries=e0,Z.entriesIn=t0,Z.extend=Xy,Z.extendWith=op,am(Z,Z),Z.add=eT,Z.attempt=i0,Z.camelCase=o3,Z.capitalize=r0,Z.ceil=tT,Z.clamp=t3,Z.clone=ZA,Z.cloneDeep=XA,Z.cloneDeepWith=JA,Z.cloneWith=KA,Z.conformsTo=QA,Z.deburr=n0,Z.defaultTo=D3,Z.divide=rT,Z.endsWith=i3,Z.eq=ta,Z.escape=s3,Z.escapeRegExp=a3,Z.every=pA,Z.find=mA,Z.findIndex=Ry,Z.findKey=kE,Z.findLast=vA,Z.findLastIndex=ky,Z.findLastKey=IE,Z.floor=nT,Z.forEach=Ny,Z.forEachRight=Py,Z.forIn=ME,Z.forInRight=LE,Z.forOwn=DE,Z.forOwnRight=OE,Z.get=rm,Z.gt=eE,Z.gte=tE,Z.has=BE,Z.hasIn=nm,Z.head=My,Z.identity=Ii,Z.includes=CA,Z.indexOf=v_,Z.inRange=r3,Z.invoke=zE,Z.isArguments=Lu,Z.isArray=Tr,Z.isArrayBuffer=rE,Z.isArrayLike=Ri,Z.isArrayLikeObject=ro,Z.isBoolean=nE,Z.isBuffer=Sc,Z.isDate=oE,Z.isElement=iE,Z.isEmpty=sE,Z.isEqual=aE,Z.isEqualWith=lE,Z.isError=em,Z.isFinite=cE,Z.isFunction=Ml,Z.isInteger=Uy,Z.isLength=rp,Z.isMap=Wy,Z.isMatch=uE,Z.isMatchWith=dE,Z.isNaN=fE,Z.isNative=hE,Z.isNil=gE,Z.isNull=pE,Z.isNumber=Vy,Z.isObject=Un,Z.isObjectLike=Yn,Z.isPlainObject=Wf,Z.isRegExp=tm,Z.isSafeInteger=mE,Z.isSet=Gy,Z.isString=np,Z.isSymbol=Qi,Z.isTypedArray=Dd,Z.isUndefined=vE,Z.isWeakMap=yE,Z.isWeakSet=bE,Z.join=C_,Z.kebabCase=l3,Z.last=_s,Z.lastIndexOf=S_,Z.lowerCase=c3,Z.lowerFirst=u3,Z.lt=xE,Z.lte=wE,Z.max=oT,Z.maxBy=iT,Z.mean=sT,Z.meanBy=aT,Z.min=lT,Z.minBy=cT,Z.stubArray=cm,Z.stubFalse=um,Z.stubObject=Y3,Z.stubString=Z3,Z.stubTrue=K3,Z.multiply=uT,Z.nth=__,Z.noConflict=z3,Z.noop=lm,Z.now=Qh,Z.pad=d3,Z.padEnd=f3,Z.padStart=h3,Z.parseInt=p3,Z.random=n3,Z.reduce=TA,Z.reduceRight=RA,Z.repeat=g3,Z.replace=m3,Z.result=GE,Z.round=dT,Z.runInContext=Ie,Z.sample=IA,Z.size=DA,Z.snakeCase=v3,Z.some=OA,Z.sortedIndex=M_,Z.sortedIndexBy=L_,Z.sortedIndexOf=D_,Z.sortedLastIndex=O_,Z.sortedLastIndexBy=N_,Z.sortedLastIndexOf=P_,Z.startCase=b3,Z.startsWith=x3,Z.subtract=fT,Z.sum=hT,Z.sumBy=pT,Z.template=w3,Z.times=X3,Z.toFinite=Ll,Z.toInteger=Lr,Z.toLength=Zy,Z.toLower=C3,Z.toNumber=As,Z.toSafeInteger=CE,Z.toString=gn,Z.toUpper=S3,Z.trim=_3,Z.trimEnd=A3,Z.trimStart=E3,Z.truncate=T3,Z.unescape=R3,Z.uniqueId=Q3,Z.upperCase=k3,Z.upperFirst=om,Z.each=Ny,Z.eachRight=Py,Z.first=My,am(Z,function(){var s={};return qo(Z,function(u,x){Xr.call(Z.prototype,x)||(s[x]=u)}),s}(),{chain:!1}),Z.VERSION=n,Jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){Z[s].placeholder=Z}),Jn(["drop","take"],function(s,u){Er.prototype[s]=function(x){x=x===t?1:yn(Lr(x),0);var L=this.__filtered__&&!u?new Er(this):this.clone();return L.__filtered__?L.__takeCount__=qn(x,L.__takeCount__):L.__views__.push({size:qn(x,ie),type:s+(L.__dir__<0?"Right":"")}),L},Er.prototype[s+"Right"]=function(x){return this.reverse()[s](x).reverse()}}),Jn(["filter","map","takeWhile"],function(s,u){var x=u+1,L=x==Q||x==ue;Er.prototype[s]=function(W){var te=this.clone();return te.__iteratees__.push({iteratee:gr(W,3),type:x}),te.__filtered__=te.__filtered__||L,te}}),Jn(["head","last"],function(s,u){var x="take"+(u?"Right":"");Er.prototype[s]=function(){return this[x](1).value()[0]}}),Jn(["initial","tail"],function(s,u){var x="drop"+(u?"":"Right");Er.prototype[s]=function(){return this.__filtered__?new Er(this):this[x](1)}}),Er.prototype.compact=function(){return this.filter(Ii)},Er.prototype.find=function(s){return this.filter(s).head()},Er.prototype.findLast=function(s){return this.reverse().find(s)},Er.prototype.invokeMap=Ar(function(s,u){return typeof s=="function"?new Er(this):this.map(function(x){return Ai(x,s,u)})}),Er.prototype.reject=function(s){return this.filter(tp(gr(s)))},Er.prototype.slice=function(s,u){s=Lr(s);var x=this;return x.__filtered__&&(s>0||u<0)?new Er(x):(s<0?x=x.takeRight(-s):s&&(x=x.drop(s)),u!==t&&(u=Lr(u),x=u<0?x.dropRight(-u):x.take(u-s)),x)},Er.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Er.prototype.toArray=function(){return this.take(ie)},qo(Er.prototype,function(s,u){var x=/^(?:filter|find|map|reject)|While$/.test(u),L=/^(?:head|last)$/.test(u),W=Z[L?"take"+(u=="last"?"Right":""):u],te=L||/^find/.test(u);W&&(Z.prototype[u]=function(){var ye=this.__wrapped__,Ee=L?[1]:arguments,Ne=ye instanceof Er,mt=Ee[0],bt=Ne||Tr(ye),Rt=function(Ur){var Yr=W.apply(Z,Po([Ur],Ee));return L&&qt?Yr[0]:Yr};bt&&x&&typeof mt=="function"&&mt.length!=1&&(Ne=bt=!1);var qt=this.__chain__,sr=!!this.__actions__.length,mr=te&&!qt,Pr=Ne&&!sr;if(!te&&bt){ye=Pr?ye:new Er(this);var vr=s.apply(ye,Ee);return vr.__actions__.push({func:Xh,args:[Rt],thisArg:t}),new co(vr,qt)}return mr&&Pr?s.apply(this,Ee):(vr=this.thru(Rt),mr?L?vr.value()[0]:vr.value():vr)})}),Jn(["pop","push","shift","sort","splice","unshift"],function(s){var u=Jl[s],x=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",L=/^(?:pop|shift)$/.test(s);Z.prototype[s]=function(){var W=arguments;if(L&&!this.__chain__){var te=this.value();return u.apply(Tr(te)?te:[],W)}return this[x](function(ye){return u.apply(Tr(ye)?ye:[],W)})}}),qo(Er.prototype,function(s,u){var x=Z[u];if(x){var L=x.name+"";Xr.call(Hs,L)||(Hs[L]=[]),Hs[L].push({name:u,func:x})}}),Hs[je(t,A).name]=[{name:"wrapper",func:t}],Er.prototype.clone=nc,Er.prototype.reverse=vl,Er.prototype.value=oc,Z.prototype.at=iA,Z.prototype.chain=sA,Z.prototype.commit=aA,Z.prototype.next=lA,Z.prototype.plant=uA,Z.prototype.reverse=dA,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=fA,Z.prototype.first=Z.prototype.head,oi&&(Z.prototype[oi]=cA),Z},$i=Xl();fn?((fn.exports=$i)._=$i,Mr._=$i):Cr._=$i}).call(wT)}(lh,lh.exports)),lh.exports}var zc=CT();const Ya=yf(zc),ST=r=>{try{return JSON.parse(r)}catch{return}},_T=(r,e)=>JSON.stringify(r,null,e),AT=r=>Object.keys(r),ET=r=>Object.values(r),TT=r=>Object.entries(r),RT=(r,e)=>{Object.entries(r).forEach(([t,n])=>e(t,n))},kT=(r,e)=>Object.keys(r).includes(e),IT=(r,e)=>Object.entries(r).map((t,n)=>e(t,n)),MT=(r,e)=>Object.entries(r).some(([t,n])=>e(t,n)),LT=(r,e)=>Object.entries(r).find(([t,n])=>e(t,n)),hw=r=>S.isValidElement(r)||typeof r=="string"||typeof r=="number"||typeof r=="boolean"||r===null||r===void 0||Array.isArray(r)&&r.every(hw),DT=(r,e)=>Ya.isEqual(r,e),pw=r=>{const e=window.crypto??window.msCrypto,t=new Uint32Array(1);e.getRandomValues(t);const n=t[0].toString(36);return`key-${r}-${n}`},ar={equal:DT,parse:ST,stringify:_T,key:pw,keys:AT,values:ET,entries:TT,forEach:RT,hasKey:kT,map:IT,some:MT,find:LT,isReactNode:hw},gw="_NoSelect_29290_1",mw="_NoTransition_29290_6",vw="_IsFixedShape_29290_10",yw="_IsCursorPointer_29290_15",bw="_IsInteractive_29290_19",_c={NoSelect:gw,NoTransition:mw,IsFixedShape:vw,IsCursorPointer:yw,IsInteractive:bw},OT="_Display1_11vgm_1",NT="_Display2_11vgm_6",PT="_Title1_11vgm_11",BT="_Title2_11vgm_16",FT="_Title3_11vgm_21",jT="_Headline1_11vgm_26",zT="_Headline2_11vgm_31",HT="_Body1Normal_11vgm_36",$T="_Body1Reading_11vgm_41",qT="_Label1_11vgm_46",UT="_Label2_11vgm_51",WT="_Caption1_11vgm_56",VT="_Caption2_11vgm_61",GT="_Regular_11vgm_66",YT="_Medium_11vgm_70",ZT="_SemiBold_11vgm_74",KT="_Bold_11vgm_78",Wo={Display1:OT,Display2:NT,Title1:PT,Title2:BT,Title3:FT,Headline1:jT,Headline2:zT,Body1Normal:HT,Body1Reading:$T,Label1:qT,Label2:UT,Caption1:WT,Caption2:VT,Regular:GT,Medium:YT,SemiBold:ZT,Bold:KT};function f0(...r){return r.filter(Boolean).join(" ")}const xw={NoSelect:_c.NoSelect,NoTransition:_c.NoTransition,IsClickable:f0(_c.NoSelect,_c.IsCursorPointer,_c.IsFixedShape),IsInteractive:f0(_c.NoSelect,_c.IsCursorPointer,_c.IsInteractive)},ww={Display1:Wo.Display1,Display2:Wo.Display2,Title1:Wo.Title1,Title2:Wo.Title2,Title3:Wo.Title3,Headline1:Wo.Headline1,Headline2:Wo.Headline2,Body1Normal:Wo.Body1Normal,Body1Reading:Wo.Body1Reading,Label1:Wo.Label1,Label2:Wo.Label2,Caption1:Wo.Caption1,Caption2:Wo.Caption2,Regular:Wo.Regular,Medium:Wo.Medium,SemiBold:Wo.SemiBold,Bold:Wo.Bold};let bv={};const wh={...xw,...ww,...bv};let xv=ar.keys(wh);function XT(){Object.assign(wh,bv),xv=ar.keys(wh)}function JT(...r){let e=[];for(let t=0;t<r.length;t++){let n=r[t];xv.includes(n)&&(n=wh[n]),typeof n=="string"&&n!==""&&e.push(n)}return e.join(" ")}function QT(r,...e){const t=[],n=ar.keys(r);for(let o=0;o<e.length;o++){let i=e[o];xv.includes(i)?i=wh[i]:n.includes(i)&&(i=r[i]),typeof i=="string"&&i!==""&&t.push(i)}return t.join(" ")}const Ge={clsx:JT,sclsx:QT,classes:xw,typographies:ww,additionalClasses:bv,updateKeys:XT},Vo={"2xs":12,xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48,"3xl":64},St=(r,e=Vo.md)=>{const t=Vo[r],n=t/e,o={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 0 ${e} ${e}`};if(n<0){const i=(e-t)/2;return{...o,viewBox:`${i} ${i} ${t} ${t}`,transform:`scale(${n})`}}return o},Nd=(r,e=Vo.md)=>{const t=Vo[r],n=40,o=t/e,i={xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:`0 ${-(e*n)} ${e*n} ${e*n}`};if(o<0){const a=(e-t)/2;return{...i,viewBox:`${a} ${-(t*n)} ${t*n} ${t*n}`,transform:`scale(${o})`}}return i},_n=(r,e=2)=>({fill:"none",stroke:r,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"}),en=r=>{const{icon:e,style:t,svgRef:n,...o}=r,i=S.useMemo(()=>xg[e],[e]);return C.jsx(i,{...o,style:{...t,flexShrink:0}})},e4=r=>{const e=ar.keys(r);return n=>{const{icon:o,svgRef:i,...a}=n,c=S.useMemo(()=>e.includes(o)?r[o]:xg[o],[o]);return C.jsx(c,{...a})}},xg=Object.freeze({ArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})})},ArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},Chat:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 17.17 18.83 16H4V4h16v13.17zM20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},"Check.Checked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),fill:n,...i,ref:o,children:[C.jsx("rect",{height:"15",rx:"1.5",stroke:t,width:"15",x:"0.5",y:"0.5"}),C.jsx("path",{d:"M6.25009 10.4324L4.22884 8.41116C4.00148 8.1838 3.63305 8.18315 3.40489 8.40971V8.40971C3.17558 8.6374 3.17492 9.00808 3.40343 9.23658L5.54298 11.3761C5.93351 11.7667 6.56667 11.7667 6.9572 11.3761L12.8387 5.49459C13.0659 5.26741 13.0659 4.89908 12.8387 4.6719V4.6719C12.6116 4.44479 12.2435 4.4447 12.0162 4.6717L6.25009 10.4324Z",fill:t})]})},"Check.Indeterminate":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),fill:n,...i,ref:o,children:[C.jsx("rect",{height:"15",rx:"1.5",stroke:t,width:"15",x:"0.5",y:"0.5"}),C.jsx("rect",{fill:t,height:"1",width:"10",x:"3",y:"7"})]})},"Check.UnChecked":(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r,a=Vo.xs;return C.jsx("svg",{...St(e,a),fill:n,...i,ref:o,children:C.jsx("rect",{height:"15",rx:"1.5",stroke:t,width:"15",x:"0.5",y:"0.5"})})},CircleCheck:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})})},ClipBoard:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})})},Close:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})},Document:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"})})},Menu:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"})})},Person:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})})},PersonOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),C.jsx("circle",{cx:"12",cy:"7",r:"4"})]})},Reset:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Search:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})})},Send:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})},Spinner:(r={})=>{const{size:e="3xl",primaryColor:t="var(--label-strong)",secondaryColor:n="var(--elevation-10)",svgRef:o,...i}=r,a=Vo["3xl"];return C.jsxs("svg",{...St(e,a),fill:"none",strokeWidth:"12",...i,ref:o,children:[C.jsx("circle",{cx:"32",cy:"32",r:"22",stroke:n,style:{...i.style,transition:"stroke var(--Transition)"}}),C.jsx("path",{d:"M10 32C10 29.1109 10.569 26.2501 11.6746 23.581C12.7803 20.9118 14.4008 18.4865 16.4437 16.4436C18.4865 14.4008 20.9118 12.7803 23.581 11.6747C26.2501 10.569 29.1109 10 32 10",stroke:t,style:{...i.style,transition:"stroke var(--Transition)"},children:C.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",calcMode:"spline",dur:"1s",from:"0 32 32",keySplines:"0.27 0.71 0.78 0.44",keyTimes:"0;1",repeatCount:"indefinite",to:"360 32 32",type:"rotate"})})]})},Stop:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M6 6h12v12H6z"})})},TriangleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M2.74 18c-.77 1.33.19 3 1.73 3h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18zM11 11v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zm0 5h2v2h-2z"})})},TriangleAlert2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),C.jsx("line",{x1:"12",x2:"12",y1:"9",y2:"13"}),C.jsx("line",{x1:"12",x2:"12.01",y1:"17",y2:"17"})]})},Sun:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e,28),..._n(t),strokeWidth:1,...i,ref:o,children:[C.jsx("circle",{cx:"14",cy:"14",r:"3.5"}),C.jsx("path",{d:"M21.1213 21.1213L19 19"}),C.jsx("path",{d:"M24 14L21 14"}),C.jsx("path",{d:"M9.12132 19L7 21.1213"}),C.jsx("path",{d:"M14 21L14 24"}),C.jsx("path",{d:"M6.99977 7.00002L9.12109 9.12134"}),C.jsx("path",{d:"M4 14L7 14"}),C.jsx("path",{d:"M18.9998 9.12132L21.1211 7"}),C.jsx("path",{d:"M14 7L14 4"})]})},Moon:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:o,...i}=r;return C.jsxs("svg",{...St(e,28),...i,ref:o,children:[C.jsx("mask",{fill:n,id:"path-1-inside-1_640_3082",children:C.jsx("path",{clipRule:"evenodd",d:"M23 14.9271C21.7297 16.1977 19.9746 16.9836 18.036 16.9836C14.1593 16.9836 11.0167 13.841 11.0167 9.96435C11.0167 8.02554 11.8027 6.27032 13.0735 5C8.53643 5.47528 5 9.31228 5 13.9753C5 18.9595 9.04054 23 14.0248 23C18.6876 23 22.5244 19.4639 23 14.9271Z",fillRule:"evenodd"})}),C.jsx("path",{d:"M23 14.9271L23.9945 15.0313L24.2889 12.2235L22.2928 14.2201L23 14.9271ZM13.0735 5L13.7805 5.70724L15.7772 3.71131L12.9694 4.00544L13.0735 5ZM22.2928 14.2201C21.2024 15.3108 19.6987 15.9836 18.036 15.9836V17.9836C20.2505 17.9836 22.257 17.0846 23.7072 15.6341L22.2928 14.2201ZM18.036 15.9836C14.7116 15.9836 12.0167 13.2887 12.0167 9.96435H10.0167C10.0167 14.3933 13.607 17.9836 18.036 17.9836V15.9836ZM12.0167 9.96435C12.0167 8.30147 12.6897 6.79768 13.7805 5.70724L12.3666 4.29276C10.9158 5.74295 10.0167 7.7496 10.0167 9.96435H12.0167ZM6 13.9753C6 9.8296 9.14442 6.41706 13.1777 5.99456L12.9694 4.00544C7.92844 4.5335 4 8.79496 4 13.9753H6ZM14.0248 22C9.59282 22 6 18.4072 6 13.9753H4C4 19.5118 8.48825 24 14.0248 24V22ZM22.0054 14.8228C21.5827 18.8559 18.1703 22 14.0248 22V24C19.2049 24 23.4662 20.0719 23.9945 15.0313L22.0054 14.8228Z",fill:t,mask:"url(#path-1-inside-1_640_3082)"})]})},CCTV:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="white",svgRef:o,...i}=r,a=Vo["2xs"];return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("rect",{fill:t,height:"5",width:"1",x:"1",y:"5"}),C.jsx("path",{d:"M1.5 7.5H3L5 5.5",stroke:t}),C.jsx("rect",{fill:t,height:"3",transform:"rotate(45 5.12132 2)",width:"5.13925",x:"5.12132",y:"2"}),C.jsx("rect",{fill:t,height:"2.19393",transform:"rotate(45 8.83633 6.28503)",width:"1",x:"8.83633",y:"6.28503"}),C.jsx("clipPath",{id:"clip0_2241_2464",children:C.jsx("rect",{fill:n,height:"12",width:"12"})})]})},Convert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"})})},KeyboardArrowUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})})},KeyboardArrowDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})})},Alert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="var(--background-normal)",svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:n,...i,ref:o,children:C.jsxs("g",{clipPath:"url(#clip0_1786_1844)",children:[C.jsx("path",{d:"M11.1238 2.59312C11.5037 1.90234 12.4963 1.90234 12.8762 2.59312L22.1849 19.5181C22.5515 20.1845 22.0693 21 21.3087 21H2.69127C1.93067 21 1.44851 20.1845 1.81506 19.5181L11.1238 2.59312Z",fill:t}),C.jsx("path",{d:"M12.8169 8H11.1691L11.2958 15.0451H12.6902L12.8169 8ZM11.0001 17.0287C10.993 17.5622 11.4508 17.9932 12 18C12.5423 17.9932 12.993 17.5622 13 17.0287C12.993 16.4952 12.5423 16.0575 12 16.0575C11.4508 16.0575 10.993 16.4952 11.0001 17.0287Z",fill:n,style:{...i.style,transition:"fill var(--Transition)"}})]})})},SortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsx("svg",{...St(e,a),fill:"none",...i,ref:o,children:C.jsx("path",{d:"M6 10L9 7L12 10",stroke:t})})},SortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsx("svg",{...St(e,a),fill:"none",...i,ref:o,children:C.jsx("path",{d:"M12 7L9 10L6 7",stroke:t})})},SortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),fill:"none",...i,ref:o,children:[C.jsx("path",{d:"M6 6.75L9 3.75L12 6.75",stroke:t}),C.jsx("path",{d:"M12 11.25L9 14.25L6 11.25",stroke:t})]})},RowSortUp:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),C.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t,opacity:"0.2"})]})},RowSortDown:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t,opacity:"0.2"}),C.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},RowSortBoth:(r={})=>{const{size:e="xs",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),...i,ref:o,children:[C.jsx("path",{d:"M8 2L10.5981 6.5H5.40192L8 2Z",fill:t}),C.jsx("path",{d:"M8 14L5.40192 9.5L10.5981 9.5L8 14Z",fill:t})]})},Favorite:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},FavoriteDisabled:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="none",svgRef:o,...i}=r;return C.jsx("svg",{...St(e),..._n(t),fill:n,strokeWidth:"1",...i,ref:o,children:C.jsx("path",{d:"M12 4L13.7961 9.52786H19.6085L14.9062 12.9443L16.7023 18.4721L12 15.0557L7.29772 18.4721L9.09383 12.9443L4.39155 9.52786H10.2039L12 4Z"})})},Main:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t,svgRef:n,...o}=r;return C.jsxs("svg",{height:"84",viewBox:"0 0 118 84",width:"118",...o,ref:n,children:[C.jsx("path",{clipRule:"evenodd",d:"M66.0843 0.94382H8.51123C4.34117 0.94382 0.960666 4.32432 0.960666 8.49438V49.0787C0.960666 53.77 4.76373 57.573 9.45505 57.573H66.0843C70.7756 57.573 74.5787 53.77 74.5787 49.0787V9.4382C74.5787 4.74688 70.7756 0.94382 66.0843 0.94382ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e,fillRule:"evenodd"}),C.jsx("path",{clipRule:"evenodd",d:"M108.556 26.4272H51.927C47.2357 26.4272 43.4326 30.2302 43.4326 34.9216V74.562C43.4326 79.2533 47.2357 83.0564 51.927 83.0564H108.556C113.248 83.0564 117.051 79.2533 117.051 74.562V34.9216C117.051 30.2302 113.248 26.4272 108.556 26.4272ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e,fillRule:"evenodd"}),C.jsx("path",{clipRule:"evenodd",d:"M66.0843 1.88764H8.51123C4.86243 1.88764 1.90449 4.84558 1.90449 8.49438V49.0787C1.90449 53.2487 5.28499 56.6292 9.45505 56.6292H66.0843C70.2543 56.6292 73.6348 53.2487 73.6348 49.0787V9.4382C73.6348 5.26814 70.2543 1.88764 66.0843 1.88764ZM8.51123 0C3.81991 0 0.0168457 3.80306 0.0168457 8.49438V49.0787C0.0168457 54.2912 4.24247 58.5169 9.45505 58.5169H66.0843C71.2968 58.5169 75.5225 54.2912 75.5225 49.0787V9.4382C75.5225 4.22563 71.2968 0 66.0843 0H8.51123Z",fill:e,fillRule:"evenodd"}),C.jsx("path",{clipRule:"evenodd",d:"M108.556 27.371H51.927C47.7569 27.371 44.3764 30.7515 44.3764 34.9216V74.562C44.3764 78.7321 47.7569 82.1126 51.927 82.1126H108.556C112.726 82.1126 116.107 78.7321 116.107 74.562V34.9216C116.107 30.7515 112.726 27.371 108.556 27.371ZM51.927 25.4834C46.7144 25.4834 42.4888 29.709 42.4888 34.9216V74.562C42.4888 79.7746 46.7144 84.0002 51.927 84.0002H108.556C113.769 84.0002 117.994 79.7746 117.994 74.562V34.9216C117.994 29.709 113.769 25.4834 108.556 25.4834H51.927Z",fill:e,fillRule:"evenodd"})]})},Frame:(r={})=>{const{primaryColor:e="currentColor",secondaryColor:t="none",svgRef:n,...o}=r;return C.jsx("svg",{fill:t,height:"1112",viewBox:"0 0 1482 1112",width:"1482",...o,ref:n,children:C.jsxs("g",{children:[C.jsx("path",{d:"M1481.33 1111.17L399.091 880.19V231.81L1481.33 0.829102V1111.17Z",opacity:"0.22",stroke:e}),C.jsx("path",{d:"M266.279 880.19V231.81L1348.52 0.829102V1111.17L266.279 880.19Z",opacity:"0.48",stroke:e}),C.jsx("path",{d:"M133.48 880.19V231.81L1215.72 0.829102V1111.17L133.48 880.19Z",opacity:"0.74",stroke:e}),C.jsx("path",{d:"M1082.91 1111.17L0.667969 880.19V231.81L1082.91 0.829102V1111.17Z",stroke:e})]})})},FileDownload:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"})})},File:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M15 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V7L15 2ZM6 20V4H14V8H18V20H6ZM16 10V15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V8.5C8 7.03 9.26 5.86 10.76 6.01C12.06 6.14 13 7.33 13 8.64V15H11V8.5C11 8.22 10.78 8 10.5 8C10.22 8 10 8.22 10 8.5V15C10 16.1 10.9 17 12 17C13.1 17 14 16.1 14 15V10H16Z"})})},File2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}),C.jsx("polyline",{points:"13 2 13 9 20 9"})]})},UnPlug:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),overflow:"hidden",strokeWidth:"0.5",...i,ref:o,children:[C.jsx("path",{d:"M7.85 9.679C7.92 9.747 8.03 9.745 8.1 9.674 8.17 9.606 8.17 9.497 8.1 9.428L6.84 8.17 8.17 6.844 9.43 8.103C9.5 8.171 9.61 8.169 9.68 8.098 9.75 8.03 9.75 7.921 9.68 7.852L8.42 6.594 9.39 5.629 8.13 4.377C7.15 3.389 5.56 3.335 4.51 4.254L4.13 3.857C3.29 2.997 2.15 2.511 0.95 2.508L0.35 2.508 0.35 2.862 0.95 2.862C2.05 2.865 3.11 3.312 3.87 4.104L4.26 4.504C3.34 5.555 3.39 7.143 4.38 8.133L5.63 9.385 6.59 8.42ZM4.63 7.883C3.73 6.984 3.73 5.526 4.63 4.627 5.53 3.728 6.98 3.728 7.88 4.627L8.88 5.629 5.63 8.885Z",fill:t,stroke:t}),C.jsx("path",{d:"M16.06 14.167C15.01 14.169 13.99 13.758 13.23 13.021L12.78 12.58C13.69 11.529 13.64 9.946 12.65 8.959L11.4 7.707 7.64 11.464 8.9 12.716C9.89 13.707 11.47 13.757 12.52 12.831L12.99 13.276C13.81 14.076 14.91 14.523 16.06 14.521L16.65 14.521 16.65 14.167ZM9.15 12.465 8.14 11.464 11.4 8.208 12.4 9.21C13.31 10.104 13.31 11.562 12.42 12.466 11.53 13.369 10.07 13.377 9.16 12.483 9.16 12.477 9.15 12.471 9.15 12.465Z",fill:t,stroke:t})]})},CloudSync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r,a=Vo.xs;return C.jsxs("svg",{...St(e,a),overflow:"hidden",strokeWidth:"0.166718",...i,ref:o,children:[C.jsx("path",{d:"M9.81667 8.6C9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.81667 8.6 9.68333 7.41667 8.61667 6.55 7.43333 6.66667 6.65 6.75 5.98333 7.23333 5.66667 7.95L5.96667 8.08333C6.36667 7.15 7.45 6.73333 8.38333 7.13333 8.96667 7.38333 9.36667 7.91667 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55 9.46667 8.55L9.1 8.18333 8.86667 8.41667 9.65 9.2 10.4333 8.41667 10.2 8.18333 9.81667 8.6Z",fill:t,stroke:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),C.jsx("path",{d:"M7.66667 10.6667C6.75 10.6667 5.98333 10 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1 5.85 9.1L6.21667 9.46667 6.45 9.23333 5.66667 8.43333 4.88333 9.21667 5.11667 9.45 5.5 9.06667C5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.5 9.06667 5.63333 10.25 6.68333 11.1167 7.88333 11 8.66667 10.9167 9.33333 10.4333 9.65 9.71667L9.35 9.58333C9.05 10.2333 8.4 10.6667 7.66667 10.6667Z",fill:t,stroke:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"}),C.jsx("path",{d:"M13.4333 7.48333C13.3 6.66667 12.85 5.93333 12.1833 5.45 11.4833 4.96667 10.6333 4.78333 9.8 4.95 9.13333 3.95 8.03333 3.33333 6.83333 3.33333 6.56667 3.33333 6.28333 3.36667 6.01667 3.43333 4.6 3.8 3.53333 4.98333 3.31667 6.43333 2.36667 6.46667 1.5 6.91667 0.933333 7.66667 0.266667 8.6 0.15 9.81667 0.616667 10.8667 1.1 11.9 2.1 12.5833 3.23333 12.65L4.45 12.65 11.3667 12.6667 13.1333 12.6667C14.5667 12.6333 15.7 11.4333 15.6667 10 15.6333 8.71667 14.6833 7.66667 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333 13.4333 7.48333ZM15.3333 10.2C15.25 11.3667 14.3 12.3 13.1333 12.3333L11.3667 12.3333 4.45 12.3167 3.25 12.3167C2.25 12.25 1.35 11.65 0.933333 10.7333 0.5 9.8 0.6 8.7 1.2 7.86667 1.71667 7.2 2.48333 6.8 3.33333 6.76667L3.61667 6.75 3.65 6.48333C3.85 5.16667 4.81667 4.1 6.1 3.75 6.33333 3.7 6.58333 3.66667 6.83333 3.66667 7.91667 3.66667 8.93333 4.21667 9.51667 5.13333L9.63333 5.31667 9.85 5.26667C10.5833 5.11667 11.35 5.28333 11.9667 5.71667 12.5667 6.15 12.9667 6.8 13.0833 7.53333L13.1167 7.76667 13.35 7.8C14.55 7.98333 15.3833 9.01667 15.3333 10.2L15.3333 10.2Z",fill:t,stroke:t,transform:"matrix(1, 0, 0, 1.0625, 0, 0)"})]})},CalendarDay:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"})})},DateRange:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})})},PlayArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M8 5v14l11-7z"})})},Mail:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"})})},MailOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),C.jsx("polyline",{points:"22,6 12,13 2,6"})]})},Bell:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),C.jsx("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]})},Download:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"})})},Folder:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})})},FolderPost:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"})})},FolderOpen:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"})})},FolderCopy:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3V6z"}),C.jsx("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})]})},FolderAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"})})},FolderMove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 12v-3h-4v-4h4V8l5 5z"})})},FirstPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),C.jsx("path",{d:"M24 24H0V0h24v24z",fill:"none"})]})},LastPage:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})})},NavigateBefore:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})},NavigateNext:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})})},ListAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14,10H3v2h11V10z M14,6H3v2h11V6z M18,14v-4h-2v4h-4v2h4v4h2v-4h4v-2H18z M3,16h7v-2H3V16z"})})},ListRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14 10H3v2h11v-2zm0-4H3v2h11V6zM3 16h7v-2H3v2zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59 14.41 22z"})})},Cancel:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})})},Article:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"})})},Info:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M11,7h2v2h-2V7z M11,11h2v6h-2V11z M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z M12,20 c-4.41,0-8-3.59-8-8s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z"})})},Type:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),C.jsx("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),C.jsx("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})},PersonAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M13 8c0-2.21-1.79-4-4-4S5 5.79 5 8s1.79 4 4 4 4-1.79 4-4m2 2v2h3v3h2v-3h3v-2h-3V7h-2v3zM1 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},CheckNormal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z",fill:t})})},Create:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})})},PersonRemove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M14 8c0-2.21-1.79-4-4-4S6 5.79 6 8s1.79 4 4 4 4-1.79 4-4m3 2v2h6v-2zM2 18v2h16v-2c0-2.66-5.33-4-8-4s-8 1.34-8 4"})})},Refresh:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})})},Undo:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"})})},Return:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M4 15L3.46967 14.4697C3.17678 14.7626 3.17678 15.2374 3.46967 15.5303L4 15ZM7.53033 12.5303C7.82322 12.2374 7.82322 11.7626 7.53033 11.4697C7.23744 11.1768 6.76256 11.1768 6.46967 11.4697L7.53033 12.5303ZM6.46967 18.5303C6.76256 18.8232 7.23744 18.8232 7.53033 18.5303C7.82322 18.2374 7.82322 17.7626 7.53033 17.4697L6.46967 18.5303ZM6.46967 11.4697L3.46967 14.4697L4.53033 15.5303L7.53033 12.5303L6.46967 11.4697ZM3.46967 15.5303L6.46967 18.5303L7.53033 17.4697L4.53033 14.4697L3.46967 15.5303Z",fill:"#333333"}),C.jsx("path",{d:"M11 5.25C10.5858 5.25 10.25 5.58579 10.25 6C10.25 6.41421 10.5858 6.75 11 6.75V5.25ZM4 14.25C3.58579 14.25 3.25 14.5858 3.25 15C3.25 15.4142 3.58579 15.75 4 15.75V14.25ZM11 6.75H16V5.25H11V6.75ZM16 15.75C17.3742 15.75 18.5687 15.0388 19.3991 14.0651C20.2284 13.0926 20.75 11.7983 20.75 10.5H19.25C19.25 11.4109 18.8762 12.3665 18.2577 13.0918C17.6404 13.8157 16.835 14.25 16 14.25V15.75ZM16 6.75C16.8349 6.75 17.6404 7.18427 18.2577 7.90822C18.8762 8.63348 19.25 9.58913 19.25 10.5H20.75C20.75 9.20173 20.2284 7.90738 19.3991 6.93492C18.5687 5.96116 17.3741 5.25 16 5.25V6.75ZM16 14.25H4V15.75H16V14.25Z",fill:"#333333"})]})},Gear:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})})},TriangleUp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),..._n(t),...i,ref:o,children:C.jsx("path",{d:"M18 15 L12 9 L6 15"})})},TriangleDown:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),..._n(t),...i,ref:o,children:C.jsx("path",{d:"M6 9 12 15 18 9"})})},CircleHelp:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})})},Cow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("g",{transform:"scale(0.046875 0.046875)",children:C.jsx("path",{d:"M510.256,187.787c-2.16-7.414-6.118-13.725-11.079-18.567c-7.477-7.3-16.818-11.393-26.211-13.777 c-9.43-2.386-19.109-3.114-28.034-3.124c-7.732,0-14.89,0.562-20.744,1.219h0.016c-4.732,0.531-9.07,1.426-12.788,2.103 c-3.697,0.708-6.821,1.156-8.597,1.136l-0.557-0.042c-0.031-0.167-0.063-0.261-0.094-0.48c-2.63-18.598-4.03-36.864-9.06-55.494 c-5.004-18.619-13.976-37.457-30.986-55.826c-8.07-8.83-17.973-13.454-27.476-13.403c-8.43-0.01-15.98,3.489-21.312,8.779 c-5.337,5.279-8.763,12.517-8.784,20.504c-0.005,3.686,0.88,7.466,2.484,11.028l-0.067,0.031c4.992,13.434,7.794,25.784,7.768,35.719 c0,5.935-0.948,10.955-2.754,15.141c-2.77,6.227-7.196,11.111-15.923,15.193c-8.695,4.019-21.816,6.685-40.06,6.664 c-24.388,0.042-39.4-4.759-47.454-11.039c-4.082-3.155-6.697-6.623-8.529-10.819c-1.807-4.186-2.754-9.206-2.754-15.141 c-0.026-9.935,2.77-22.285,7.768-35.719l-0.068-0.02c1.604-3.582,2.489-7.352,2.485-11.028c-0.021-7.997-3.448-15.235-8.784-20.514 c-5.332-5.29-12.882-8.789-21.311-8.789c-9.502-0.042-19.406,4.571-27.476,13.412c-17.01,18.359-25.982,37.207-30.985,55.826 c-5.035,18.63-6.431,36.896-9.06,55.494c-0.032,0.229-0.063,0.312-0.099,0.48l-0.552,0.042c-1.77,0.02-4.894-0.428-8.596-1.136 c-3.718-0.687-8.055-1.572-12.793-2.103h0.01c-5.836-0.646-13.001-1.208-20.733-1.219c-11.892,0.031-25.143,1.25-37.338,6.134 c-6.087,2.458-11.939,5.904-16.906,10.768c-4.962,4.842-8.919,11.153-11.08,18.567C0.563,191.806,0,196.014,0,200.282 c0.099,18.276,9.836,37.583,27.684,53.817c16.844,15.245,41.243,27.617,72.728,33.24c0.114,0.489,0.223,0.896,0.344,1.458 c1.874,8.664,4.102,25.242,8.247,44.591c6.285,29.115,16.896,65.167,39.16,94.835c11.142,14.798,25.31,27.981,43.201,37.364 c17.879,9.404,39.378,14.902,64.636,14.892c37.978,0.083,67.422-12.58,88.905-31.667c32.281-28.669,47.173-70.136,55.613-104.562 c4.186-17.234,6.706-32.854,8.654-44.225c0.912-5.353,1.708-9.748,2.4-12.674c31.496-5.624,55.9-17.994,72.744-33.25 c17.848-16.234,27.58-35.541,27.684-53.817C512,196.014,511.438,191.806,510.256,187.787z M165.549,59.409 c5.118-5.456,9.022-6.508,11.804-6.55c2.499,0,4.665,1,6.316,2.615c1.651,1.624,2.473,3.696,2.453,5.352l-0.625,2.572 l-0.261,0.522l-0.198,0.541c-5.508,14.923-9.076,29.376-9.101,43.133c0,8.195,1.312,16.192,4.498,23.586 c2.526,5.946,6.404,11.288,11.32,15.912c-7.967-0.167-16.605-0.292-24.993-0.396c-13.745-0.168-26.596-0.25-34.136-0.303 c1.818-14.35,3.453-27.606,6.847-40.05C143.884,90.254,150.908,75.321,165.549,59.409z M318.981,441.844 c-16.234,10.59-36.442,17.276-62.98,17.307c-33.38-0.083-56.795-10.528-74.784-26.315c-12.834-11.267-22.712-25.689-30.455-41.195 c0.901-4.78,3.015-9.133,6.436-13.392c6.935-8.612,19.78-16.308,36.791-21.514c16.974-5.258,37.921-8.122,60.576-8.122 c30.204-0.031,57.394,5.144,76.138,14.1c9.383,4.456,16.584,9.809,21.234,15.536c4.483,5.581,6.706,11.33,6.893,17.994 c-0.625,1.156-1.15,2.364-1.801,3.499C347.508,416.477,335.189,431.243,318.981,441.844z M470.002,238.292 c-14.417,13.058-36.708,24.524-67.495,29.033l-2.374,0.344l-1.994,1.333c-2.578,1.79-3.583,3.53-4.39,4.904 c-1.431,2.708-2.014,4.927-2.702,7.571c-1.203,4.864-2.213,10.954-3.473,18.26c-1.524,8.625-3.428,19.124-6.134,30.576 c-7.247,29.665-20.215,66.061-48.03,91.907c-16.028,14.232-36.169,24.516-64.055,24.466c-21.776,0-40.292-4.969-55.129-12.732 c-14.839-7.742-27.058-18.692-36.544-30.747c-19.038-25.604-28.956-57.424-34.635-85.312c-1.642-8.429-2.642-14.843-3.494-19.853 c-0.693-3.697-1.256-5.834-1.943-7.519c-0.688-1.698-1.743-3.24-4.323-5.03l-1.989-1.333l-2.374-0.344 c-30.788-4.509-53.083-15.975-67.5-29.033c-15.05-13.646-22.688-28.674-22.749-38.01c0-1.625,0.396-3.859,1.057-6.283 c1.261-4.849,3.597-10.709,6.665-16.755c5.97-12.085,14.748-24.971,25.422-36.775c2.188,1.828,4.64,3.501,7.441,4.98 c9.854,5.132,22.406,8.838,35.833,9.723c12.073,0.823,24.653-0.057,35.493-3.755c10.859-3.666,20.146-9.648,26.908-17.71 c6.767-8.081,10.94-18.221,11.255-29.685c0-2.073-0.26-3.948-0.64-5.901c-0.26-1.203-0.484-2.452-0.641-3.667 c-1.78-12.632-5.748-24.661-11.853-37.393c-3.062-6.173-6.634-12.165-9.359-17.301c-0.932-1.801-1.776-3.414-2.552-5.155 c4.911-5.416,10.209-10.13,15.51-14.678c12.045-10.674,23.606-19.829,33.336-26.128c7.47,6.566,14.801,14.498,21.238,23.858 c12.843,18.226,20.273,37.197,25.055,55.19c4.794,17.983,6.636,34.864,9.055,50.801c0.78,4.584,1.35,8.114,2.373,11.554 c0.98,3.229,2.306,6.316,4.664,9.208c2.396,2.892,5.74,5.532,10.96,6.409c1.296,0.219,3.84-0.5,7.683-1.187 c3.838-0.641,8.727-1.448,14.168-1.948c5.423-0.625,11.573-1.036,18.168-1.057c8.92,0,18.659,0.667,28.086,2.807 c9.426,2.141,17.48,6.104,23.654,12.281c3.177,3.093,5.784,6.775,7.579,10.938c1.778,4.141,2.74,8.704,2.74,13.314 C492.688,209.625,485.052,224.646,470.002,238.292z"})})})},CircleAlertOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("circle",{cx:"12",cy:"12",r:"10"}),C.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),C.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})},CircleAlert:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})},Manager:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),fill:t,...i,ref:o,children:[C.jsx("circle",{cx:"10",cy:"8",r:"4"}),C.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})]})},ManagerOutline:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e,96),..._n(t),...i,ref:o,children:[C.jsxs("g",{clipPath:"url(#clip0_1_3)",children:[C.jsx("path",{d:"M80 84V76C80 71.7565 78.3143 67.6869 75.3137 64.6863C72.3131 61.6857 68.2435 60 64 60V70L48 60L32 70V60C27.7565 60 23.6869 61.6857 20.6863 64.6863C17.6857 67.6869 16 71.7565 16 76V84",strokeWidth:"8"}),C.jsx("path",{d:"M48 44C56.8366 44 64 36.8366 64 28C64 19.1634 56.8366 12 48 12C39.1634 12 32 19.1634 32 28C32 36.8366 39.1634 44 48 44Z",strokeWidth:"8"})]}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_1_3",children:C.jsx("rect",{fill:"white",height:"96",width:"96"})})})]})},Admin:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m13.1-8.16c.01-.11.02-.22.02-.34s-.01-.23-.03-.34l.74-.58c.07-.05.08-.15.04-.22l-.7-1.21c-.04-.08-.14-.1-.21-.08l-.86.35c-.18-.14-.38-.25-.59-.34l-.13-.93c-.02-.09-.09-.15-.18-.15h-1.4c-.09 0-.16.06-.17.15l-.13.93c-.21.09-.41.21-.59.34l-.87-.35c-.08-.03-.17 0-.21.08l-.7 1.21c-.04.08-.03.17.04.22l.74.58c-.02.11-.03.23-.03.34s.01.23.03.34l-.74.58c-.07.05-.08.15-.04.22l.7 1.21c.04.08.14.1.21.08l.87-.35c.18.14.38.25.59.34l.13.93c.01.09.08.15.17.15h1.4c.09 0 .16-.06.17-.15l.13-.93c.21-.09.41-.21.59-.34l.87.35c.08.03.17 0 .21-.08l.7-1.21c.04-.08.03-.17-.04-.22zm-2.6.91c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m.42 3.93-.5-.87c-.03-.06-.1-.08-.15-.06l-.62.25q-.195-.15-.42-.24l-.09-.66c-.02-.06-.08-.1-.14-.1h-1c-.06 0-.11.04-.12.11l-.09.66c-.15.06-.29.15-.42.24l-.62-.25c-.06-.02-.12 0-.15.06l-.5.87c-.03.06-.02.12.03.16l.53.41c-.01.08-.02.16-.02.24s.01.17.02.24l-.53.41c-.05.04-.06.11-.03.16l.5.87c.03.06.1.08.15.06l.62-.25q.195.15.42.24l.09.66c.01.07.06.11.12.11h1c.06 0 .12-.04.12-.11l.09-.66c.15-.06.29-.15.42-.24l.62.25c.06.02.12 0 .15-.06l.5-.87c.03-.06.02-.12-.03-.16l-.52-.41c.01-.08.02-.16.02-.24s-.01-.17-.02-.24l.53-.41c.05-.04.06-.11.04-.17m-2.42 1.65c-.46 0-.83-.38-.83-.83 0-.46.38-.83.83-.83s.83.38.83.83c0 .46-.37.83-.83.83M4.74 9h8.53c.27 0 .49-.22.49-.49v-.02c0-.27-.22-.49-.49-.49H13c0-1.48-.81-2.75-2-3.45v.95c0 .28-.22.5-.5.5s-.5-.22-.5-.5V4.14C9.68 4.06 9.35 4 9 4s-.68.06-1 .14V5.5c0 .28-.22.5-.5.5S7 5.78 7 5.5v-.95C5.81 5.25 5 6.52 5 8h-.26c-.27 0-.49.22-.49.49v.03c0 .26.22.48.49.48M9 13c1.86 0 3.41-1.28 3.86-3H5.14c.45 1.72 2 3 3.86 3"})})},Equalizer:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"})})},ABC:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M21 11h-1.5v-.5h-2v3h2V13H21v1c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h3c.55 0 1 .45 1 1zM8 10v5H6.5v-1.5h-2V15H3v-5c0-.55.45-1 1-1h3c.55 0 1 .45 1 1m-1.5.5h-2V12h2zm7 1.5c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1h-4V9h4c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M11 10.5v.75h2v-.75zm2 2.25h-2v.75h2z"})})},Auth:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"})})},AuthAdd:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M13.22 22.61c-.4.15-.8.29-1.22.39-5.16-1.26-9-6.45-9-12V5l9-4 9 4v6c0 .9-.11 1.78-.3 2.65-.81-.41-1.73-.65-2.7-.65-3.31 0-6 2.69-6 6 0 1.36.46 2.61 1.22 3.61M19 20v2.99s-1.99.01-2 0V20h-3v-2h3v-3h2v3h3v2z"})})},Switch:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"})})},Add:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})})},Edit:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92zM20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41"})})},EditOff:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"m14.06 9.02.92.92-1.11 1.11 1.41 1.41 2.52-2.52-3.75-3.75-2.52 2.52 1.41 1.41zm6.65-1.98c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75zM2.81 2.81 1.39 4.22l7.32 7.32L3 17.25V21h3.75l5.71-5.71 7.32 7.32 1.41-1.41zM5.92 19H5v-.92l5.13-5.13.92.92z"})})},Delete:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})})},Save:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})})},Remove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M19 13H5v-2h14z"})})},Sync:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...St(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})})},X:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),C.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]})},MoreVertical:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("circle",{cx:"12",cy:"12",r:"1"}),C.jsx("circle",{cx:"12",cy:"5",r:"1"}),C.jsx("circle",{cx:"12",cy:"19",r:"1"})]})},MoreHorizontal:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("circle",{cx:"12",cy:"12",r:"1"}),C.jsx("circle",{cx:"19",cy:"12",r:"1"}),C.jsx("circle",{cx:"5",cy:"12",r:"1"})]})},Verified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M10.708 4.03551C11.4008 3.27361 12.5992 3.27361 13.292 4.03551C14.0105 4.82555 15.0715 5.21174 16.1297 5.06835C17.1502 4.93006 18.0682 5.70033 18.1092 6.72935C18.1518 7.79637 18.7163 8.77423 19.6191 9.34458C20.4898 9.89462 20.6979 11.0747 20.0678 11.8894C19.4146 12.7341 19.2185 13.8461 19.5435 14.8633C19.8569 15.8443 19.2577 16.8821 18.2514 17.1012C17.208 17.3284 16.343 18.0542 15.9381 19.0423C15.5476 19.9952 14.4216 20.4051 13.5099 19.9261C12.5646 19.4294 11.4354 19.4294 10.4901 19.9261C9.57843 20.4051 8.45237 19.9952 8.06187 19.0423C7.65695 18.0542 6.79199 17.3284 5.74857 17.1012C4.7423 16.8821 4.14314 15.8443 4.45654 14.8633C4.7815 13.8461 4.58543 12.7341 3.93215 11.8894C3.30214 11.0747 3.51023 9.89462 4.38087 9.34458C5.28366 8.77423 5.84823 7.79637 5.89077 6.72935C5.9318 5.70033 6.84977 4.93006 7.87028 5.06835C8.92848 5.21174 9.98951 4.82555 10.708 4.03551Z",strokeWidth:"1.5"}),C.jsx("path",{clipRule:"evenodd",d:"M16.5682 10.0607L15.5076 9.00002L11.0719 13.4357L8.56068 10.9244L7.50002 11.9851L11.0719 15.557L12.1326 14.4963L12.1326 14.4963L16.5682 10.0607Z",fill:t,fillRule:"evenodd",strokeWidth:0})]})},NonVerified:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M10.1531 3.53092C11.1435 2.44181 12.8565 2.44181 13.8469 3.53092V3.53092C14.3994 4.13844 15.2153 4.4354 16.029 4.32514V4.32514C17.4878 4.12747 18.8 5.22853 18.8586 6.69947V6.69947C18.8913 7.51998 19.3255 8.27193 20.0197 8.71052V8.71052C21.2643 9.49677 21.5617 11.1837 20.6611 12.3482V12.3482C20.1588 12.9978 20.008 13.8529 20.2579 14.6351V14.6351C20.7059 16.0374 19.8494 17.5208 18.411 17.834V17.834C17.6086 18.0087 16.9435 18.5668 16.6321 19.3267V19.3267C16.0739 20.6888 14.4643 21.2747 13.1611 20.59V20.59C12.4341 20.2081 11.5659 20.2081 10.8389 20.59V20.59C9.53573 21.2747 7.92608 20.6888 7.36788 19.3267V19.3267C7.05651 18.5668 6.39137 18.0087 5.58901 17.834V17.834C4.1506 17.5208 3.29413 16.0374 3.74211 14.6351V14.6351C3.992 13.8529 3.84122 12.9978 3.33887 12.3482V12.3482C2.43829 11.1837 2.73574 9.49677 3.98029 8.71052V8.71052C4.67452 8.27193 5.10865 7.51998 5.14137 6.69947V6.69947C5.20002 5.22853 6.51221 4.12747 7.97099 4.32514V4.32514C8.78471 4.4354 9.60062 4.13844 10.1531 3.53092V3.53092Z",stroke:"var(--line-normal)",strokeDasharray:"0.75 1.5",strokeLinecap:"round",strokeMiterlimit:"11.4737",strokeWidth:"0.75",style:{...i.style,transition:"stroke var(--Transition)"}}),C.jsx("path",{d:"M16.2224 8.5837L16.4875 8.31854C16.3411 8.17209 16.1037 8.17209 15.9572 8.31854L16.2224 8.5837ZM17.5013 9.86264L17.7665 10.1278C17.9129 9.98136 17.9129 9.74392 17.7665 9.59747L17.5013 9.86264ZM10.8739 13.9322L10.6087 14.1974C10.679 14.2677 10.7744 14.3072 10.8739 14.3072C10.9733 14.3072 11.0687 14.2677 11.139 14.1974L10.8739 13.9322ZM7.84584 10.9042L8.111 10.639C8.04068 10.5687 7.9453 10.5292 7.84584 10.5292C7.74638 10.5292 7.651 10.5687 7.58067 10.639L7.84584 10.9042ZM6.5669 12.1831L6.30174 11.9179C6.15529 12.0644 6.15529 12.3018 6.30174 12.4483L6.5669 12.1831ZM10.8739 16.4901L10.6087 16.7553C10.7552 16.9017 10.9926 16.9017 11.1391 16.7553L10.8739 16.4901ZM12.1528 15.2112L12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L12.1528 15.2112ZM12.1528 15.2111L11.8876 14.946C11.7412 15.0924 11.7412 15.3299 11.8876 15.4763L12.1528 15.2111ZM15.6601 8.61568C15.5136 8.76212 15.5136 8.99956 15.6601 9.14601C15.8065 9.29245 16.044 9.29245 16.1904 9.14601L15.6601 8.61568ZM15.0018 10.3346C15.1483 10.1881 15.1483 9.95068 15.0018 9.80423C14.8554 9.65778 14.618 9.65778 14.4715 9.80423L15.0018 10.3346ZM13.8772 10.3985C13.7308 10.545 13.7308 10.7824 13.8772 10.9288C14.0237 11.0753 14.2611 11.0753 14.4076 10.9288L13.8772 10.3985ZM13.219 12.1174C13.3655 11.9709 13.3655 11.7335 13.219 11.5871C13.0726 11.4406 12.8351 11.4406 12.6887 11.5871L13.219 12.1174ZM12.0944 12.1813C11.948 12.3278 11.948 12.5652 12.0944 12.7117C12.2409 12.8581 12.4783 12.8581 12.6247 12.7117L12.0944 12.1813ZM11.4362 13.9002C11.5826 13.7538 11.5826 13.5163 11.4362 13.3699C11.2897 13.2234 11.0523 13.2234 10.9059 13.3699L11.4362 13.9002ZM10.8867 13.4147C10.7403 13.2683 10.5028 13.2683 10.3564 13.4147C10.2099 13.5611 10.2099 13.7986 10.3564 13.945L10.8867 13.4147ZM9.34703 12.9357C9.49348 13.0821 9.73091 13.0821 9.87736 12.9357C10.0238 12.7892 10.0238 12.5518 9.87736 12.4054L9.34703 12.9357ZM9.37269 11.9007C9.22624 11.7542 8.9888 11.7542 8.84236 11.9007C8.69591 12.0471 8.69591 12.2846 8.84236 12.431L9.37269 11.9007ZM7.83301 11.4217C7.97946 11.5681 8.21689 11.5681 8.36334 11.4217C8.50979 11.2752 8.50979 11.0378 8.36334 10.8913L7.83301 11.4217ZM7.36752 10.8522C7.22107 10.9986 7.22107 11.236 7.36752 11.3825C7.51396 11.5289 7.7514 11.5289 7.89785 11.3825L7.36752 10.8522ZM7.04522 12.2351C7.19167 12.0887 7.19167 11.8512 7.04522 11.7048C6.89878 11.5583 6.66134 11.5583 6.51489 11.7048L7.04522 12.2351ZM6.54101 12.6875C6.68746 12.834 6.9249 12.834 7.07134 12.6875C7.21779 12.5411 7.21779 12.3037 7.07134 12.1572L6.54101 12.6875ZM8.02845 13.1143C7.88201 12.9679 7.64457 12.9679 7.49812 13.1143C7.35168 13.2608 7.35168 13.4982 7.49812 13.6446L8.02845 13.1143ZM7.97668 14.1232C8.12312 14.2697 8.36056 14.2697 8.50701 14.1232C8.65345 13.9768 8.65345 13.7393 8.50701 13.5929L7.97668 14.1232ZM9.46412 14.55C9.31767 14.4035 9.08023 14.4035 8.93379 14.55C8.78734 14.6964 8.78734 14.9339 8.93379 15.0803L9.46412 14.55ZM9.41234 15.5589C9.55879 15.7053 9.79623 15.7053 9.94267 15.5589C10.0891 15.4124 10.0891 15.175 9.94267 15.0285L9.41234 15.5589ZM10.8998 15.9856C10.7533 15.8392 10.5159 15.8392 10.3695 15.9856C10.223 16.1321 10.223 16.3695 10.3695 16.516L10.8998 15.9856ZM11.3522 16.5421C11.4987 16.3957 11.4987 16.1582 11.3522 16.0118C11.2058 15.8653 10.9683 15.8653 10.8219 16.0118L11.3522 16.5421ZM11.6745 15.1591C11.5281 15.3056 11.5281 15.543 11.6745 15.6895C11.821 15.8359 12.0584 15.8359 12.2048 15.6895L11.6745 15.1591ZM12.418 14.946C12.2715 14.7995 12.0341 14.7995 11.8877 14.946C11.7412 15.0924 11.7412 15.3299 11.8877 15.4763L12.418 14.946ZM11.8877 15.4763C12.0341 15.6228 12.2715 15.6228 12.418 15.4763C12.5644 15.3299 12.5644 15.0924 12.418 14.946L11.8877 15.4763ZM12.7151 15.1792C12.8616 15.0327 12.8616 14.7953 12.7151 14.6488C12.5687 14.5024 12.3312 14.5024 12.1848 14.6488L12.7151 15.1792ZM13.3733 13.4603C13.2269 13.6067 13.2269 13.8442 13.3733 13.9906C13.5198 14.1371 13.7572 14.1371 13.9037 13.9906L13.3733 13.4603ZM14.498 13.3963C14.6444 13.2499 14.6444 13.0124 14.498 12.866C14.3515 12.7196 14.1141 12.7196 13.9676 12.866L14.498 13.3963ZM15.1562 11.6774C15.0097 11.8239 15.0097 12.0613 15.1562 12.2078C15.3026 12.3542 15.5401 12.3542 15.6865 12.2078L15.1562 11.6774ZM16.2808 11.6135C16.4272 11.4671 16.4272 11.2296 16.2808 11.0832C16.1343 10.9367 15.8969 10.9367 15.7505 11.0832L16.2808 11.6135ZM16.939 9.89461C16.7926 10.0411 16.7926 10.2785 16.939 10.4249C17.0855 10.5714 17.3229 10.5714 17.4693 10.4249L16.939 9.89461ZM17.5533 9.38432C17.4069 9.23787 17.1694 9.23787 17.023 9.38432C16.8765 9.53076 16.8765 9.7682 17.023 9.91465L17.5533 9.38432ZM16.1704 9.06202C16.3168 9.20847 16.5542 9.20847 16.7007 9.06202C16.8471 8.91558 16.8471 8.67814 16.7007 8.53169L16.1704 9.06202ZM15.9572 8.31854L15.6601 8.61568L16.1904 9.14601L16.4875 8.84887L15.9572 8.31854ZM14.4715 9.80423L13.8772 10.3985L14.4076 10.9288L15.0018 10.3346L14.4715 9.80423ZM12.6887 11.5871L12.0944 12.1813L12.6247 12.7117L13.219 12.1174L12.6887 11.5871ZM10.9059 13.3699L10.6087 13.667L11.139 14.1974L11.4362 13.9002L10.9059 13.3699ZM11.139 13.667L10.8867 13.4147L10.3564 13.945L10.6087 14.1974L11.139 13.667ZM9.87736 12.4054L9.37269 11.9007L8.84236 12.431L9.34703 12.9357L9.87736 12.4054ZM8.36334 10.8913L8.111 10.639L7.58067 11.1693L7.83301 11.4217L8.36334 10.8913ZM7.58067 10.639L7.36752 10.8522L7.89785 11.3825L8.111 11.1693L7.58067 10.639ZM6.51489 11.7048L6.30174 11.9179L6.83207 12.4483L7.04522 12.2351L6.51489 11.7048ZM6.30174 12.4483L6.54101 12.6875L7.07134 12.1572L6.83207 11.9179L6.30174 12.4483ZM7.49812 13.6446L7.97668 14.1232L8.50701 13.5929L8.02845 13.1143L7.49812 13.6446ZM8.93379 15.0803L9.41234 15.5589L9.94267 15.0285L9.46412 14.55L8.93379 15.0803ZM10.3695 16.516L10.6087 16.7553L11.1391 16.2249L10.8998 15.9856L10.3695 16.516ZM11.1391 16.7553L11.3522 16.5421L10.8219 16.0118L10.6087 16.2249L11.1391 16.7553ZM12.2048 15.6895L12.418 15.4763L11.8877 14.946L11.6745 15.1591L12.2048 15.6895ZM12.418 14.946L12.418 14.946L11.8877 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 14.946L12.418 14.946L11.8876 15.4763L11.8877 15.4763L12.418 14.946ZM12.418 15.4763L12.7151 15.1792L12.1848 14.6488L11.8876 14.946L12.418 15.4763ZM13.9037 13.9906L14.498 13.3963L13.9676 12.866L13.3733 13.4603L13.9037 13.9906ZM15.6865 12.2078L16.2808 11.6135L15.7505 11.0832L15.1562 11.6774L15.6865 12.2078ZM17.4693 10.4249L17.7665 10.1278L17.2361 9.59747L16.939 9.89461L17.4693 10.4249ZM17.7665 9.59747L17.5533 9.38432L17.023 9.91465L17.2361 10.1278L17.7665 9.59747ZM16.7007 8.53169L16.4875 8.31854L15.9572 8.84887L16.1704 9.06202L16.7007 8.53169Z",fill:"var(--line-normal)",strokeWidth:0,style:{...i.style,transition:"fill var(--Transition)"}})]})},Edit2:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),C.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})},Trash:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),..._n(t),...i,ref:o,children:[C.jsx("polyline",{points:"3 6 5 6 21 6"}),C.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),C.jsx("line",{x1:"10",x2:"10",y1:"11",y2:"17"}),C.jsx("line",{x1:"14",x2:"14",y1:"11",y2:"17"})]})},AddRowBelow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M200-560h560v-240H200v240Zm-80 400v-720h720v720H680v-80h80v-240H200v240h80v80H120Zm360-320Zm0-80v80-80Zm0 0ZM440-80v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddRowAbove:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M200-160h560v-240H200v240Zm640 80H120v-720h160v80h-80v240h560v-240h-80v-80h160v720ZM480-480Zm0 80v-80 80Zm0 0Zm-40-240v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColRight:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M160-760v560h240v-560H160ZM80-120v-720h720v160h-80v-80H480v560h240v-80h80v160H80Zm400-360Zm-80 0h80-80Zm0 0Zm320 120v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},AddColLeft:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M800-200v-560H560v560h240Zm-640 80v-160h80v80h240v-560H240v80h-80v-160h720v720H160Zm320-360Zm80 0h-80 80Zm0 0ZM160-360v-80H80v-80h80v-80h80v80h80v80h-80v80h-80Z"})})},RemoveCol:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsx("svg",{...Nd(e),fill:t,...i,ref:o,children:C.jsx("path",{d:"M360-440h240v-80H360v80Zm-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z"})})},RemoveRow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n,svgRef:o,...i}=r;return C.jsxs("svg",{...Nd(e),fill:t,...i,ref:o,children:[C.jsx("path",{d:"M360-440h240v-80H360v80Z"}),C.jsx("path",{d:"M-80-120Zm240 0ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h160q33 0 56.5 23.5T440-760v80h-80v-80H200v560h160v-80h80v80q0 33-23.5 56.5T360-120H200Zm400 0q-33 0-56.5-23.5T520-200v-80h80v80h160v-560H600v80h-80v-80q0-33 23.5-56.5T600-840h160q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H600Z",transform:"rotate(90 480 -480)"})]})},Table:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsx("svg",{...St(e),..._n(t),...o,ref:n,children:C.jsx("path",{className:"ql-stroke ql-thick",d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"})})},Minus:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsx("svg",{...St(e),..._n(t),...o,ref:n,children:C.jsx("line",{className:"ql-stroke ql-thick",x1:"5",x2:"19",y1:"12",y2:"12"})})},EditorArrow:(r={})=>{const{size:e="md",primaryColor:t="currentColor",secondaryColor:n="currentColor",svgRef:o,...i}=r;return C.jsxs("svg",{...St(e),...i,ref:o,children:[C.jsx("path",{d:"M11 5L16.1962 10.25H5.80385L11 5Z",fill:t}),C.jsx("path",{d:"M11 19L16.1962 13.75H5.80385L11 19Z",fill:n})]})},Target:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsx("svg",{...St(e),...o,ref:n,children:C.jsx("g",{id:"target",children:C.jsx("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:t,id:"Vector"})})})},DividerExpand:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t,1.5),...o,ref:n,children:[C.jsx("path",{d:"M4 6V18"}),C.jsx("path",{d:"M8 12H20"}),C.jsx("path",{d:"M12 8L8 12L12 16"})]})},AlignLeft:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"17",x2:"3",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"17",x2:"3",y1:"18",y2:"18"})]})},AlignCenter:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"18",x2:"6",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"18",x2:"6",y1:"18",y2:"18"})]})},AlignRight:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"21",x2:"7",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"21",x2:"7",y1:"18",y2:"18"})]})},AlignJustify:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("line",{x1:"21",x2:"3",y1:"10",y2:"10"}),C.jsx("line",{x1:"21",x2:"3",y1:"6",y2:"6"}),C.jsx("line",{x1:"21",x2:"3",y1:"14",y2:"14"}),C.jsx("line",{x1:"21",x2:"3",y1:"18",y2:"18"})]})},Maximize:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("polyline",{points:"15 3 21 3 21 9"}),C.jsx("polyline",{points:"9 21 3 21 3 15"}),C.jsx("line",{x1:"21",x2:"14",y1:"3",y2:"10"}),C.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})},Minimize:(r={})=>{const{size:e="md",primaryColor:t="currentColor",svgRef:n,...o}=r;return C.jsxs("svg",{...St(e),..._n(t),...o,ref:n,children:[C.jsx("polyline",{points:"4 14 10 14 10 20"}),C.jsx("polyline",{points:"20 10 14 10 14 4"}),C.jsx("line",{x1:"14",x2:"21",y1:"10",y2:"3"}),C.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})}}),wv=ar.keys(xg),t4={Ok:"Ok",Cancel:"Cancel"},r4={"select n":r=>C.jsxs(C.Fragment,{children:["Select ",r]}),"deselect n":r=>C.jsxs(C.Fragment,{children:["Deselect ",r]}),"Search(Placeholder)":"Search","Search(Button)":"Search",Items:"Items","*Click row for single select":"*Click row for single select","*Change order to row drag":"*Change order to row drag","Loading Contents...":"Loading Contents..."},n4={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select Date":"Select Date"},o4={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select DateRange":"Select DateRange","1일":"1 Day","1주일":"1 Week","1개월":"1 Month","3개월":"3 Months"},i4={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},s4={"Checked n items":r=>C.jsxs(C.Fragment,{children:["Checked ",r," items"]}),"Searched n items":r=>C.jsxs(C.Fragment,{children:["Searched ",r," items"]}),"Total n items":r=>C.jsxs(C.Fragment,{children:["Total ",r," items"]}),"Sort by x":r=>C.jsxs(C.Fragment,{children:["Sort by ",r]}),"Sort up":"Sort up","Sort down":"Sort down",Asc:"Asc",Desc:"Desc","Search(Placeholder)":"Search","Search(Button)":"Search","Clear(Button)":"Clear",Select:"Select","Toggle Filter":"Toggle Filter","No Items":"No Items"},a4={"Select(Placeholder)":"Select"},l4={"Select(Placeholder)":"Select"},c4={"Insert Full Width Table":"Insert Full Width Table",Custom:"Custom",Confirm:"Confirm",Cancel:"Cancel","Copy Cell":"Copy Cell","Cut Cell":"Cut Cell",Row:"Row",Column:"Column","Not Positive Number Error":"Please enter a positive integer",perWidthInsufficient:"The table needs to be converted to a fixed width.",Transparent:"Transparent",Clear:"Clear","Insert Column Right":"Insert Column Right","Insert Column Left":"Insert Column Left","Insert Row Top":"Insert Row Top","Insert Row Bottom":"Insert Row Bottom","Delete Column":"Delete Column","Delete Row":"Delete Row","Delete Table":"Delete Table","Set Background Color":"Set Background Color","Set Border Color":"Set Border Color","Switch Table Width":"Switch Table Width","Insert Table Caption":"Insert Table Caption","Merge Cell":"Merge Cell","Split Cell":"Split Cell","Right click to open properties":"Right click to open properties",Default:"Default","Enter link:":"Enter link:","Enter video:":"Enter video:","Visit URL:":"Visit URL:",Edit:"Edit",Save:"Save",Remove:"Remove"},u4={Asterisk:"Required field"},d4={Delete:"Delete","Fail Download":"Fail Download",Download:"Download","Download List":"Download List","Drop file to select":"Drop file to select","Insert File":"Insert File","Download All":"Download All","Delete All":"Delete All","Unsupported file format detected.":"Unsupported file format detected.","Invalid file(s)":"Invalid file(s)","Supported file format(s)":"Supported file format(s)",and:"and","more file(s)":"more file(s)"},f4={Progress:"Progress"},h4={Expand:"Expand",Collapse:"Collapse"},wr={ADialog:t4,ATree:r4,ADatePicker:n4,ADateRangePicker:o4,AFileBox:i4,ATable:s4,ASelect:a4,AMultiSelect:l4,AEditor:c4,AWrap:u4,AFileUploader:d4,AProgressBar:f4,ADivideFrame:h4};function p4(r,e){ar.keys(e).forEach(t=>{r[t]=e[t]})}const g4=(r,e)=>{p4(wr[r],e)},m4="_AProgressBar_17v9w_1",v4="_Header_17v9w_7",y4="_Percentage_17v9w_13",b4="_BarContainer_17v9w_16",x4="_Bar_17v9w_16",w4="_CustomHeight_17v9w_31",C4="_CustomRadius_17v9w_34",S4="_CustomColor_17v9w_40",Ac={AProgressBar:m4,Header:v4,Percentage:y4,BarContainer:b4,Bar:x4,CustomHeight:w4,CustomRadius:C4,CustomColor:S4},Cw=({progress:r=0,backgroundColor:e,color:t,height:n,borderRadius:o,showPercentage:i=!0,style:a,className:c,resources:d,label:h})=>{const p=S.useMemo(()=>({...wr.AProgressBar,...d}),[d]),m=S.useMemo(()=>h??p.Progress,[h,p]),g=Math.min(Math.max(r,0),100),v=S.useMemo(()=>{const T={};return n&&(T["--progress-bar-height"]=`${n}px`),o&&(T["--progress-bar-radius"]=`${o}px`),e&&(T["--progress-bar-background-custom"]=e),t&&(T["--progress-bar-color-custom"]=t),T},[n,o,e,t]),w=S.useMemo(()=>Ge.clsx(Ac.AProgressBar,n&&Ac.CustomHeight,o&&Ac.CustomRadius,(e||t)&&Ac.CustomColor,c),[n,o,e,t,c]);return C.jsxs("div",{className:w,style:{...v,...a},children:[C.jsxs("div",{className:Ac.Header,children:[C.jsx("div",{className:Ge.clsx("Label1"),children:m}),i&&C.jsxs("div",{className:Ac.Percentage,children:[g,"%"]})]}),C.jsx("div",{className:Ac.BarContainer,children:C.jsx("div",{className:Ac.Bar,style:{width:`${g}%`}})})]})};var Ec={},Du={};/**
|
58
58
|
* @license React
|
59
59
|
* react-dom-server-legacy.browser.production.min.js
|
60
60
|
*
|
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
68
68
|
`?k.push(`
|
69
69
|
`,X):k.push(""+X))}return typeof Be=="string"&&Be[0]===`
|
70
70
|
`&&k.push(`
|
71
|
-
`),Be;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(U($));for(var In in X)if(t.call(X,In)&&(Be=X[In],Be!=null))switch(In){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,$));default:F(k,ce,In,Be)}return k.push("/>"),null;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 G(k,X,$,ce);case"html":return qe.insertionMode===0&&k.push("<!DOCTYPE html>"),G(k,X,$,ce);default:if($.indexOf("-")===-1&&typeof X.is!="string")return G(k,X,$,ce);k.push(U($)),tt=Be=null;for(Gt in X)if(t.call(X,Gt)&&(Et=X[Gt],Et!=null))switch(Gt){case"children":Be=Et;break;case"dangerouslySetInnerHTML":tt=Et;break;case"style":B(k,ce,Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(Gt)&&typeof Et!="function"&&typeof Et!="symbol"&&k.push(" ",Gt,'="',w(Et),'"')}return k.push(">"),j(k,tt,Be),Be}}function Q(k,$,X){if(k.push('<!--$?--><template id="'),X===null)throw Error(e(395));return k.push(X),k.push('"></template>')}function se(k,$,X,ce){switch(X.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 4:return k.push('<table hidden id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');default:throw Error(e(397))}}function ue(k,$){switch($.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var oe=/[<\u2028\u2029]/g;function ae(k){return JSON.stringify(k).replace(oe,function($){switch($){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ge(k,$){return $=$===void 0?"":$,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:$+"P:",segmentPrefix:$+"S:",boundaryPrefix:$+"B:",idPrefix:$,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function re(k,$,X,ce){return X.generateStaticMarkup?(k.push(w($)),!1):($===""?k=ce:(ce&&k.push("<!-- -->"),k.push(w($)),k=!0),k)}var ie=Object.assign,he=Symbol.for("react.element"),Se=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),Pe=Symbol.for("react.context"),De=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Fe=Symbol.for("react.scope"),Qe=Symbol.for("react.debug_trace_mode"),Ue=Symbol.for("react.legacy_hidden"),et=Symbol.for("react.default_value"),ct=Symbol.iterator;function Ct(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case Le:return"Fragment";case Se:return"Portal";case ve:return"Profiler";case ne:return"StrictMode";case we:return"Suspense";case _e:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case Pe:return(k.displayName||"Context")+".Consumer";case ke:return(k._context.displayName||"Context")+".Provider";case De:var $=k.render;return k=k.displayName,k||(k=$.displayName||$.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Ae:return $=k.displayName||null,$!==null?$:Ct(k.type)||"Memo";case $e:$=k._payload,k=k._init;try{return Ct(k($))}catch{}}return null}var It={};function Je(k,$){if(k=k.contextTypes,!k)return It;var X={},ce;for(ce in k)X[ce]=$[ce];return X}var Ke=null;function ft(k,$){if(k!==$){k.context._currentValue2=k.parentValue,k=k.parent;var X=$.parent;if(k===null){if(X!==null)throw Error(e(401))}else{if(X===null)throw Error(e(401));ft(k,X)}$.context._currentValue2=$.value}}function gt(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&>(k)}function Ne(k){var $=k.parent;$!==null&&Ne($),k.context._currentValue2=k.value}function Xe(k,$){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===$.depth?ft(k,$):Xe(k,$)}function vt(k,$){var X=$.parent;if(X===null)throw Error(e(402));k.depth===X.depth?ft(k,X):vt(k,X),$.context._currentValue2=$.value}function Nt(k){var $=Ke;$!==k&&($===null?Ne(k):k===null?gt($):$.depth===k.depth?ft($,k):$.depth>k.depth?Xe($,k):vt($,k),Ke=k)}var xt={isMounted:function(){return!1},enqueueSetState:function(k,$){k=k._reactInternals,k.queue!==null&&k.queue.push($)},enqueueReplaceState:function(k,$){k=k._reactInternals,k.replace=!0,k.queue=[$]},enqueueForceUpdate:function(){}};function Lt(k,$,X,ce){var qe=k.state!==void 0?k.state:null;k.updater=xt,k.props=X,k.state=qe;var Be={queue:[],replace:!1};k._reactInternals=Be;var tt=$.contextType;if(k.context=typeof tt=="object"&&tt!==null?tt._currentValue2:ce,tt=$.getDerivedStateFromProps,typeof tt=="function"&&(tt=tt(X,qe),qe=tt==null?qe:ie({},qe,tt),k.state=qe),typeof $.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if($=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),$!==k.state&&xt.enqueueReplaceState(k,k.state,null),Be.queue!==null&&0<Be.queue.length)if($=Be.queue,tt=Be.replace,Be.queue=null,Be.replace=!1,tt&&$.length===1)k.state=$[0];else{for(Be=tt?$[0]:k.state,qe=!0,tt=tt?1:0;tt<$.length;tt++){var Et=$[tt];Et=typeof Et=="function"?Et.call(k,Be,X,ce):Et,Et!=null&&(qe?(qe=!1,Be=ie({},Be,Et)):ie(Be,Et))}k.state=Be}else Be.queue=null}var Qt={id:1,overflow:""};function Ut(k,$,X){var ce=k.id;k=k.overflow;var qe=32-fr(ce)-1;ce&=~(1<<qe),X+=1;var Be=32-fr($)+qe;if(30<Be){var tt=qe-qe%5;return Be=(ce&(1<<tt)-1).toString(32),ce>>=tt,qe-=tt,{id:1<<32-fr($)+qe|X<<qe|ce,overflow:Be+k}}return{id:1<<Be|X<<qe|ce,overflow:k}}var fr=Math.clz32?Math.clz32:Te,hr=Math.log,cr=Math.LN2;function Te(k){return k>>>=0,k===0?32:31-(hr(k)/cr|0)|0}function le(k,$){return k===$&&(k!==0||1/k===1/$)||k!==k&&$!==$}var st=typeof Object.is=="function"?Object.is:le,yt=null,nt=null,pt=null,ht=null,Ft=!1,Ve=!1,at=0,lt=null,_t=0;function Ot(){if(yt===null)throw Error(e(321));return yt}function Bt(){if(0<_t)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Wt(){return ht===null?pt===null?(Ft=!1,pt=ht=Bt()):(Ft=!0,ht=pt):ht.next===null?(Ft=!1,ht=ht.next=Bt()):(Ft=!0,ht=ht.next),ht}function Yt(){nt=yt=null,Ve=!1,pt=null,_t=0,ht=lt=null}function ir(k,$){return typeof $=="function"?$(k):$}function zt(k,$,X){if(yt=Ot(),ht=Wt(),Ft){var ce=ht.queue;if($=ce.dispatch,lt!==null&&(X=lt.get(ce),X!==void 0)){lt.delete(ce),ce=ht.memoizedState;do ce=k(ce,X.action),X=X.next;while(X!==null);return ht.memoizedState=ce,[ce,$]}return[ht.memoizedState,$]}return k=k===ir?typeof $=="function"?$():$:X!==void 0?X($):$,ht.memoizedState=k,k=ht.queue={last:null,dispatch:null},k=k.dispatch=jr.bind(null,yt,k),[ht.memoizedState,k]}function xr(k,$){if(yt=Ot(),ht=Wt(),$=$===void 0?null:$,ht!==null){var X=ht.memoizedState;if(X!==null&&$!==null){var ce=X[1];e:if(ce===null)ce=!1;else{for(var qe=0;qe<ce.length&&qe<$.length;qe++)if(!st($[qe],ce[qe])){ce=!1;break e}ce=!0}if(ce)return X[0]}}return k=k(),ht.memoizedState=[k,$],k}function jr(k,$,X){if(25<=_t)throw Error(e(301));if(k===yt)if(Ve=!0,k={action:X,next:null},lt===null&&(lt=new Map),X=lt.get($),X===void 0)lt.set($,k);else{for($=X;$.next!==null;)$=$.next;$.next=k}}function Ye(){throw Error(e(394))}function ee(){}var be={readContext:function(k){return k._currentValue2},useContext:function(k){return Ot(),k._currentValue2},useMemo:xr,useReducer:zt,useRef:function(k){yt=Ot(),ht=Wt();var $=ht.memoizedState;return $===null?(k={current:k},ht.memoizedState=k):$},useState:function(k){return zt(ir,k)},useInsertionEffect:ee,useLayoutEffect:function(){},useCallback:function(k,$){return xr(function(){return k},$)},useImperativeHandle:ee,useEffect:ee,useDebugValue:ee,useDeferredValue:function(k){return Ot(),k},useTransition:function(){return Ot(),[!1,Ye]},useId:function(){var k=nt.treeContext,$=k.overflow;k=k.id,k=(k&~(1<<32-fr(k)-1)).toString(32)+$;var X=ze;if(X===null)throw Error(e(404));return $=at++,k=":"+X.idPrefix+"R"+k,0<$&&(k+="H"+$.toString(32)),k+":"},useMutableSource:function(k,$){return Ot(),$(k._source)},useSyncExternalStore:function(k,$,X){if(X===void 0)throw Error(e(407));return X()}},ze=null,Tt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function jt(k){return console.error(k),null}function Dt(){}function er(k,$,X,ce,qe,Be,tt,Et,Ht){var Gt=[],Vt=new Set;return $={destination:null,responseState:$,progressiveChunkSize:ce===void 0?12800:ce,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Vt,pingedTasks:Gt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:qe===void 0?jt:qe,onAllReady:Dt,onShellReady:tt===void 0?Dt:tt,onShellError:Dt,onFatalError:Dt},X=kt($,0,null,X,!1,!1),X.parentFlushed=!0,k=Jt($,k,null,X,Vt,It,null,Qt),Gt.push(k),$}function Jt(k,$,X,ce,qe,Be,tt,Et){k.allPendingTasks++,X===null?k.pendingRootTasks++:X.pendingTasks++;var Ht={node:$,ping:function(){var Gt=k.pingedTasks;Gt.push(Ht),Gt.length===1&&Bn(k)},blockedBoundary:X,blockedSegment:ce,abortSet:qe,legacyContext:Be,context:tt,treeContext:Et};return qe.add(Ht),Ht}function kt(k,$,X,ce,qe,Be){return{status:0,id:-1,index:$,parentFlushed:!1,chunks:[],children:[],formatContext:ce,boundary:X,lastPushedText:qe,textEmbedded:Be}}function xe(k,$){if(k=k.onError($),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function ot(k,$){var X=k.onShellError;X($),X=k.onFatalError,X($),k.destination!==null?(k.status=2,k.destination.destroy($)):(k.status=1,k.fatalError=$)}function wt(k,$,X,ce,qe){for(yt={},nt=$,at=0,k=X(ce,qe);Ve;)Ve=!1,at=0,_t+=1,ht=null,k=X(ce,qe);return Yt(),k}function yr(k,$,X,ce){var qe=X.render(),Be=ce.childContextTypes;if(Be!=null){var tt=$.legacyContext;if(typeof X.getChildContext!="function")ce=tt;else{X=X.getChildContext();for(var Et in X)if(!(Et in Be))throw Error(e(108,Ct(ce)||"Unknown",Et));ce=ie({},tt,X)}$.legacyContext=ce,br(k,$,qe),$.legacyContext=tt}else br(k,$,qe)}function Br(k,$){if(k&&k.defaultProps){$=ie({},$),k=k.defaultProps;for(var X in k)$[X]===void 0&&($[X]=k[X]);return $}return $}function lr(k,$,X,ce,qe){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){qe=Je(X,$.legacyContext);var Be=X.contextType;Be=new X(ce,typeof Be=="object"&&Be!==null?Be._currentValue2:qe),Lt(Be,X,ce,qe),yr(k,$,Be,X)}else{Be=Je(X,$.legacyContext),qe=wt(k,$,X,ce,Be);var tt=at!==0;if(typeof qe=="object"&&qe!==null&&typeof qe.render=="function"&&qe.$$typeof===void 0)Lt(qe,X,ce,Be),yr(k,$,qe,X);else if(tt){ce=$.treeContext,$.treeContext=Ut(ce,1,0);try{br(k,$,qe)}finally{$.treeContext=ce}}else br(k,$,qe)}else if(typeof X=="string"){switch(qe=$.blockedSegment,Be=V(qe.chunks,X,ce,k.responseState,qe.formatContext),qe.lastPushedText=!1,tt=qe.formatContext,qe.formatContext=D(tt,X,ce),sn(k,$,Be),qe.formatContext=tt,X){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:qe.chunks.push("</",X,">")}qe.lastPushedText=!1}else{switch(X){case Ue:case Qe:case ne:case ve:case Le:br(k,$,ce.children);return;case _e:br(k,$,ce.children);return;case Fe:throw Error(e(343));case we:e:{X=$.blockedBoundary,qe=$.blockedSegment,Be=ce.fallback,ce=ce.children,tt=new Set;var Et={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:tt,errorDigest:null},Ht=kt(k,qe.chunks.length,Et,qe.formatContext,!1,!1);qe.children.push(Ht),qe.lastPushedText=!1;var Gt=kt(k,0,null,qe.formatContext,!1,!1);Gt.parentFlushed=!0,$.blockedBoundary=Et,$.blockedSegment=Gt;try{if(sn(k,$,ce),k.responseState.generateStaticMarkup||Gt.lastPushedText&&Gt.textEmbedded&&Gt.chunks.push("<!-- -->"),Gt.status=1,rn(Et,Gt),Et.pendingTasks===0)break e}catch(Vt){Gt.status=4,Et.forceClientRender=!0,Et.errorDigest=xe(k,Vt)}finally{$.blockedBoundary=X,$.blockedSegment=qe}$=Jt(k,Be,X,Ht,tt,$.legacyContext,$.context,$.treeContext),k.pingedTasks.push($)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case De:if(ce=wt(k,$,X.render,ce,qe),at!==0){X=$.treeContext,$.treeContext=Ut(X,1,0);try{br(k,$,ce)}finally{$.treeContext=X}}else br(k,$,ce);return;case Ae:X=X.type,ce=Br(X,ce),lr(k,$,X,ce,qe);return;case ke:if(qe=ce.children,X=X._context,ce=ce.value,Be=X._currentValue2,X._currentValue2=ce,tt=Ke,Ke=ce={parent:tt,depth:tt===null?0:tt.depth+1,context:X,parentValue:Be,value:ce},$.context=ce,br(k,$,qe),k=Ke,k===null)throw Error(e(403));ce=k.parentValue,k.context._currentValue2=ce===et?k.context._defaultValue:ce,k=Ke=k.parent,$.context=k;return;case Pe:ce=ce.children,ce=ce(X._currentValue2),br(k,$,ce);return;case $e:qe=X._init,X=qe(X._payload),ce=Br(X,ce),lr(k,$,X,ce,void 0);return}throw Error(e(130,X==null?X:typeof X,""))}}function br(k,$,X){if($.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case he:lr(k,$,X.type,X.props,X.ref);return;case Se:throw Error(e(257));case $e:var ce=X._init;X=ce(X._payload),br(k,$,X);return}if(A(X)){tn(k,$,X);return}if(X===null||typeof X!="object"?ce=null:(ce=ct&&X[ct]||X["@@iterator"],ce=typeof ce=="function"?ce:null),ce&&(ce=ce.call(X))){if(X=ce.next(),!X.done){var qe=[];do qe.push(X.value),X=ce.next();while(!X.done);tn(k,$,qe)}return}throw k=Object.prototype.toString.call(X),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":k))}typeof X=="string"?(ce=$.blockedSegment,ce.lastPushedText=re($.blockedSegment.chunks,X,k.responseState,ce.lastPushedText)):typeof X=="number"&&(ce=$.blockedSegment,ce.lastPushedText=re($.blockedSegment.chunks,""+X,k.responseState,ce.lastPushedText))}function tn(k,$,X){for(var ce=X.length,qe=0;qe<ce;qe++){var Be=$.treeContext;$.treeContext=Ut(Be,ce,qe);try{sn(k,$,X[qe])}finally{$.treeContext=Be}}}function sn(k,$,X){var ce=$.blockedSegment.formatContext,qe=$.legacyContext,Be=$.context;try{return br(k,$,X)}catch(Ht){if(Yt(),typeof Ht=="object"&&Ht!==null&&typeof Ht.then=="function"){X=Ht;var tt=$.blockedSegment,Et=kt(k,tt.chunks.length,null,tt.formatContext,tt.lastPushedText,!0);tt.children.push(Et),tt.lastPushedText=!1,k=Jt(k,$.node,$.blockedBoundary,Et,$.abortSet,$.legacyContext,$.context,$.treeContext).ping,X.then(k,k),$.blockedSegment.formatContext=ce,$.legacyContext=qe,$.context=Be,Nt(Be)}else throw $.blockedSegment.formatContext=ce,$.legacyContext=qe,$.context=Be,Nt(Be),Ht}}function Pn(k){var $=k.blockedBoundary;k=k.blockedSegment,k.status=3,kn(this,$,k)}function Hr(k,$,X){var ce=k.blockedBoundary;k.blockedSegment.status=3,ce===null?($.allPendingTasks--,$.status!==2&&($.status=2,$.destination!==null&&$.destination.push(null))):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,k=X===void 0?Error(e(432)):X,ce.errorDigest=$.onError(k),ce.parentFlushed&&$.clientRenderedBoundaries.push(ce)),ce.fallbackAbortableTasks.forEach(function(qe){return Hr(qe,$,X)}),ce.fallbackAbortableTasks.clear(),$.allPendingTasks--,$.allPendingTasks===0&&(ce=$.onAllReady,ce()))}function rn(k,$){if($.chunks.length===0&&$.children.length===1&&$.children[0].boundary===null){var X=$.children[0];X.id=$.id,X.parentFlushed=!0,X.status===1&&rn(k,X)}else k.completedSegments.push($)}function kn(k,$,X){if($===null){if(X.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=X}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Dt,$=k.onShellReady,$())}else $.pendingTasks--,$.forceClientRender||($.pendingTasks===0?(X.parentFlushed&&X.status===1&&rn($,X),$.parentFlushed&&k.completedBoundaries.push($),$.fallbackAbortableTasks.forEach(Pn,k),$.fallbackAbortableTasks.clear()):X.parentFlushed&&X.status===1&&(rn($,X),$.completedSegments.length===1&&$.parentFlushed&&k.partialBoundaries.push($)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Bn(k){if(k.status!==2){var $=Ke,X=Tt.current;Tt.current=be;var ce=ze;ze=k.responseState;try{var qe=k.pingedTasks,Be;for(Be=0;Be<qe.length;Be++){var tt=qe[Be],Et=k,Ht=tt.blockedSegment;if(Ht.status===0){Nt(tt.context);try{br(Et,tt,tt.node),Et.responseState.generateStaticMarkup||Ht.lastPushedText&&Ht.textEmbedded&&Ht.chunks.push("<!-- -->"),tt.abortSet.delete(tt),Ht.status=1,kn(Et,tt.blockedBoundary,Ht)}catch(Mn){if(Yt(),typeof Mn=="object"&&Mn!==null&&typeof Mn.then=="function"){var Gt=tt.ping;Mn.then(Gt,Gt)}else{tt.abortSet.delete(tt),Ht.status=4;var Vt=tt.blockedBoundary,Rr=Mn,an=xe(Et,Rr);if(Vt===null?ot(Et,Rr):(Vt.pendingTasks--,Vt.forceClientRender||(Vt.forceClientRender=!0,Vt.errorDigest=an,Vt.parentFlushed&&Et.clientRenderedBoundaries.push(Vt))),Et.allPendingTasks--,Et.allPendingTasks===0){var In=Et.onAllReady;In()}}}finally{}}}qe.splice(0,Be),k.destination!==null&&Cn(k,k.destination)}catch(Mn){xe(k,Mn),ot(k,Mn)}finally{ze=ce,Tt.current=X,X===be&&Nt($)}}}function _o(k,$,X){switch(X.parentFlushed=!0,X.status){case 0:var ce=X.id=k.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,k=k.responseState,$.push('<template id="'),$.push(k.placeholderPrefix),k=ce.toString(16),$.push(k),$.push('"></template>');case 1:X.status=2;var qe=!0;ce=X.chunks;var Be=0;X=X.children;for(var tt=0;tt<X.length;tt++){for(qe=X[tt];Be<qe.index;Be++)$.push(ce[Be]);qe=Do(k,$,qe)}for(;Be<ce.length-1;Be++)$.push(ce[Be]);return Be<ce.length&&(qe=$.push(ce[Be])),qe;default:throw Error(e(390))}}function Do(k,$,X){var ce=X.boundary;if(ce===null)return _o(k,$,X);if(ce.parentFlushed=!0,ce.forceClientRender)return k.responseState.generateStaticMarkup||(ce=ce.errorDigest,$.push("<!--$!-->"),$.push("<template"),ce&&($.push(' data-dgst="'),ce=w(ce),$.push(ce),$.push('"')),$.push("></template>")),_o(k,$,X),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k;if(0<ce.pendingTasks){ce.rootSegmentID=k.nextSegmentId++,0<ce.completedSegments.length&&k.partialBoundaries.push(ce);var qe=k.responseState,Be=qe.nextSuspenseID++;return qe=qe.boundaryPrefix+Be.toString(16),ce=ce.id=qe,Q($,k.responseState,ce),_o(k,$,X),$.push("<!--/$-->")}if(ce.byteSize>k.progressiveChunkSize)return ce.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ce),Q($,k.responseState,ce.id),_o(k,$,X),$.push("<!--/$-->");if(k.responseState.generateStaticMarkup||$.push("<!--$-->"),X=ce.completedSegments,X.length!==1)throw Error(e(391));return Do(k,$,X[0]),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k}function Oo(k,$,X){return se($,k.responseState,X.formatContext,X.id),Do(k,$,X),ue($,X.formatContext)}function zn(k,$,X){for(var ce=X.completedSegments,qe=0;qe<ce.length;qe++)Fn(k,$,X,ce[qe]);if(ce.length=0,k=k.responseState,ce=X.id,X=X.rootSegmentID,$.push(k.startInlineScript),k.sentCompleteBoundaryFunction?$.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,$.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ce===null)throw Error(e(395));return X=X.toString(16),$.push(ce),$.push('","'),$.push(k.segmentPrefix),$.push(X),$.push('")<\/script>')}function Fn(k,$,X,ce){if(ce.status===2)return!0;var qe=ce.id;if(qe===-1){if((ce.id=X.rootSegmentID)===-1)throw Error(e(392));return Oo(k,$,ce)}return Oo(k,$,ce),k=k.responseState,$.push(k.startInlineScript),k.sentCompleteSegmentFunction?$.push('$RS("'):(k.sentCompleteSegmentFunction=!0,$.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),$.push(k.segmentPrefix),qe=qe.toString(16),$.push(qe),$.push('","'),$.push(k.placeholderPrefix),$.push(qe),$.push('")<\/script>')}function Cn(k,$){try{var X=k.completedRootSegment;if(X!==null&&k.pendingRootTasks===0){Do(k,$,X),k.completedRootSegment=null;var ce=k.responseState.bootstrapChunks;for(X=0;X<ce.length-1;X++)$.push(ce[X]);X<ce.length&&$.push(ce[X])}var qe=k.clientRenderedBoundaries,Be;for(Be=0;Be<qe.length;Be++){var tt=qe[Be];ce=$;var Et=k.responseState,Ht=tt.id,Gt=tt.errorDigest,Vt=tt.errorMessage,Rr=tt.errorComponentStack;if(ce.push(Et.startInlineScript),Et.sentClientRenderFunction?ce.push('$RX("'):(Et.sentClientRenderFunction=!0,ce.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Ht===null)throw Error(e(395));if(ce.push(Ht),ce.push('"'),Gt||Vt||Rr){ce.push(",");var an=ae(Gt||"");ce.push(an)}if(Vt||Rr){ce.push(",");var In=ae(Vt||"");ce.push(In)}if(Rr){ce.push(",");var Mn=ae(Rr);ce.push(Mn)}if(!ce.push(")<\/script>")){k.destination=null,Be++,qe.splice(0,Be);return}}qe.splice(0,Be);var ho=k.completedBoundaries;for(Be=0;Be<ho.length;Be++)if(!zn(k,$,ho[Be])){k.destination=null,Be++,ho.splice(0,Be);return}ho.splice(0,Be);var Zn=k.partialBoundaries;for(Be=0;Be<Zn.length;Be++){var No=Zn[Be];e:{qe=k,tt=$;var dn=No.completedSegments;for(Et=0;Et<dn.length;Et++)if(!Fn(qe,tt,No,dn[Et])){Et++,dn.splice(0,Et);var Ao=!1;break e}dn.splice(0,Et),Ao=!0}if(!Ao){k.destination=null,Be++,Zn.splice(0,Be);return}}Zn.splice(0,Be);var Kn=k.completedBoundaries;for(Be=0;Be<Kn.length;Be++)if(!zn(k,$,Kn[Be])){k.destination=null,Be++,Kn.splice(0,Be);return}Kn.splice(0,Be)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&$.push(null)}}function oo(k,$){try{var X=k.abortableTasks;X.forEach(function(ce){return Hr(ce,k,$)}),X.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ce){xe(k,ce),ot(k,ce)}}function mn(){}function An(k,$,X,ce){var qe=!1,Be=null,tt="",Et={push:function(Gt){return Gt!==null&&(tt+=Gt),!0},destroy:function(Gt){qe=!0,Be=Gt}},Ht=!1;if(k=er(k,ge(X,$?$.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,mn,void 0,function(){Ht=!0}),Bn(k),oo(k,ce),k.status===1)k.status=2,Et.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Et;try{Cn(k,Et)}catch(Gt){xe(k,Gt),ot(k,Gt)}}if(qe)throw Be;if(!Ht)throw Error(e(426));return tt}return Du.renderToNodeStream=function(){throw Error(e(207))},Du.renderToStaticMarkup=function(k,$){return An(k,$,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Du.renderToStaticNodeStream=function(){throw Error(e(208))},Du.renderToString=function(k,$){return An(k,$,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Du.version="18.3.1",Du}var sp={};/**
|
71
|
+
`),Be;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(U($));for(var In in X)if(t.call(X,In)&&(Be=X[In],Be!=null))switch(In){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,$));default:F(k,ce,In,Be)}return k.push("/>"),null;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 G(k,X,$,ce);case"html":return qe.insertionMode===0&&k.push("<!DOCTYPE html>"),G(k,X,$,ce);default:if($.indexOf("-")===-1&&typeof X.is!="string")return G(k,X,$,ce);k.push(U($)),tt=Be=null;for(Gt in X)if(t.call(X,Gt)&&(Et=X[Gt],Et!=null))switch(Gt){case"children":Be=Et;break;case"dangerouslySetInnerHTML":tt=Et;break;case"style":B(k,ce,Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(Gt)&&typeof Et!="function"&&typeof Et!="symbol"&&k.push(" ",Gt,'="',w(Et),'"')}return k.push(">"),j(k,tt,Be),Be}}function Q(k,$,X){if(k.push('<!--$?--><template id="'),X===null)throw Error(e(395));return k.push(X),k.push('"></template>')}function se(k,$,X,ce){switch(X.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 4:return k.push('<table hidden id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push($.segmentPrefix),$=ce.toString(16),k.push($),k.push('">');default:throw Error(e(397))}}function ue(k,$){switch($.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var oe=/[<\u2028\u2029]/g;function ae(k){return JSON.stringify(k).replace(oe,function($){switch($){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ge(k,$){return $=$===void 0?"":$,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:$+"P:",segmentPrefix:$+"S:",boundaryPrefix:$+"B:",idPrefix:$,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function re(k,$,X,ce){return X.generateStaticMarkup?(k.push(w($)),!1):($===""?k=ce:(ce&&k.push("<!-- -->"),k.push(w($)),k=!0),k)}var ie=Object.assign,he=Symbol.for("react.element"),Se=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),ke=Symbol.for("react.provider"),De=Symbol.for("react.context"),Oe=Symbol.for("react.forward_ref"),we=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),Ae=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Fe=Symbol.for("react.scope"),Qe=Symbol.for("react.debug_trace_mode"),Ue=Symbol.for("react.legacy_hidden"),et=Symbol.for("react.default_value"),ct=Symbol.iterator;function Ct(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case Le:return"Fragment";case Se:return"Portal";case ve:return"Profiler";case ne:return"StrictMode";case we:return"Suspense";case _e:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case De:return(k.displayName||"Context")+".Consumer";case ke:return(k._context.displayName||"Context")+".Provider";case Oe:var $=k.render;return k=k.displayName,k||(k=$.displayName||$.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Ae:return $=k.displayName||null,$!==null?$:Ct(k.type)||"Memo";case $e:$=k._payload,k=k._init;try{return Ct(k($))}catch{}}return null}var It={};function Je(k,$){if(k=k.contextTypes,!k)return It;var X={},ce;for(ce in k)X[ce]=$[ce];return X}var Ke=null;function ft(k,$){if(k!==$){k.context._currentValue2=k.parentValue,k=k.parent;var X=$.parent;if(k===null){if(X!==null)throw Error(e(401))}else{if(X===null)throw Error(e(401));ft(k,X)}$.context._currentValue2=$.value}}function gt(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&>(k)}function Pe(k){var $=k.parent;$!==null&&Pe($),k.context._currentValue2=k.value}function Xe(k,$){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===$.depth?ft(k,$):Xe(k,$)}function vt(k,$){var X=$.parent;if(X===null)throw Error(e(402));k.depth===X.depth?ft(k,X):vt(k,X),$.context._currentValue2=$.value}function Nt(k){var $=Ke;$!==k&&($===null?Pe(k):k===null?gt($):$.depth===k.depth?ft($,k):$.depth>k.depth?Xe($,k):vt($,k),Ke=k)}var xt={isMounted:function(){return!1},enqueueSetState:function(k,$){k=k._reactInternals,k.queue!==null&&k.queue.push($)},enqueueReplaceState:function(k,$){k=k._reactInternals,k.replace=!0,k.queue=[$]},enqueueForceUpdate:function(){}};function Lt(k,$,X,ce){var qe=k.state!==void 0?k.state:null;k.updater=xt,k.props=X,k.state=qe;var Be={queue:[],replace:!1};k._reactInternals=Be;var tt=$.contextType;if(k.context=typeof tt=="object"&&tt!==null?tt._currentValue2:ce,tt=$.getDerivedStateFromProps,typeof tt=="function"&&(tt=tt(X,qe),qe=tt==null?qe:ie({},qe,tt),k.state=qe),typeof $.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if($=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),$!==k.state&&xt.enqueueReplaceState(k,k.state,null),Be.queue!==null&&0<Be.queue.length)if($=Be.queue,tt=Be.replace,Be.queue=null,Be.replace=!1,tt&&$.length===1)k.state=$[0];else{for(Be=tt?$[0]:k.state,qe=!0,tt=tt?1:0;tt<$.length;tt++){var Et=$[tt];Et=typeof Et=="function"?Et.call(k,Be,X,ce):Et,Et!=null&&(qe?(qe=!1,Be=ie({},Be,Et)):ie(Be,Et))}k.state=Be}else Be.queue=null}var Qt={id:1,overflow:""};function Ut(k,$,X){var ce=k.id;k=k.overflow;var qe=32-fr(ce)-1;ce&=~(1<<qe),X+=1;var Be=32-fr($)+qe;if(30<Be){var tt=qe-qe%5;return Be=(ce&(1<<tt)-1).toString(32),ce>>=tt,qe-=tt,{id:1<<32-fr($)+qe|X<<qe|ce,overflow:Be+k}}return{id:1<<Be|X<<qe|ce,overflow:k}}var fr=Math.clz32?Math.clz32:Te,hr=Math.log,cr=Math.LN2;function Te(k){return k>>>=0,k===0?32:31-(hr(k)/cr|0)|0}function le(k,$){return k===$&&(k!==0||1/k===1/$)||k!==k&&$!==$}var st=typeof Object.is=="function"?Object.is:le,yt=null,nt=null,pt=null,ht=null,Ft=!1,Ve=!1,at=0,lt=null,_t=0;function Ot(){if(yt===null)throw Error(e(321));return yt}function Bt(){if(0<_t)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Wt(){return ht===null?pt===null?(Ft=!1,pt=ht=Bt()):(Ft=!0,ht=pt):ht.next===null?(Ft=!1,ht=ht.next=Bt()):(Ft=!0,ht=ht.next),ht}function Yt(){nt=yt=null,Ve=!1,pt=null,_t=0,ht=lt=null}function ir(k,$){return typeof $=="function"?$(k):$}function zt(k,$,X){if(yt=Ot(),ht=Wt(),Ft){var ce=ht.queue;if($=ce.dispatch,lt!==null&&(X=lt.get(ce),X!==void 0)){lt.delete(ce),ce=ht.memoizedState;do ce=k(ce,X.action),X=X.next;while(X!==null);return ht.memoizedState=ce,[ce,$]}return[ht.memoizedState,$]}return k=k===ir?typeof $=="function"?$():$:X!==void 0?X($):$,ht.memoizedState=k,k=ht.queue={last:null,dispatch:null},k=k.dispatch=jr.bind(null,yt,k),[ht.memoizedState,k]}function xr(k,$){if(yt=Ot(),ht=Wt(),$=$===void 0?null:$,ht!==null){var X=ht.memoizedState;if(X!==null&&$!==null){var ce=X[1];e:if(ce===null)ce=!1;else{for(var qe=0;qe<ce.length&&qe<$.length;qe++)if(!st($[qe],ce[qe])){ce=!1;break e}ce=!0}if(ce)return X[0]}}return k=k(),ht.memoizedState=[k,$],k}function jr(k,$,X){if(25<=_t)throw Error(e(301));if(k===yt)if(Ve=!0,k={action:X,next:null},lt===null&&(lt=new Map),X=lt.get($),X===void 0)lt.set($,k);else{for($=X;$.next!==null;)$=$.next;$.next=k}}function Ye(){throw Error(e(394))}function ee(){}var be={readContext:function(k){return k._currentValue2},useContext:function(k){return Ot(),k._currentValue2},useMemo:xr,useReducer:zt,useRef:function(k){yt=Ot(),ht=Wt();var $=ht.memoizedState;return $===null?(k={current:k},ht.memoizedState=k):$},useState:function(k){return zt(ir,k)},useInsertionEffect:ee,useLayoutEffect:function(){},useCallback:function(k,$){return xr(function(){return k},$)},useImperativeHandle:ee,useEffect:ee,useDebugValue:ee,useDeferredValue:function(k){return Ot(),k},useTransition:function(){return Ot(),[!1,Ye]},useId:function(){var k=nt.treeContext,$=k.overflow;k=k.id,k=(k&~(1<<32-fr(k)-1)).toString(32)+$;var X=ze;if(X===null)throw Error(e(404));return $=at++,k=":"+X.idPrefix+"R"+k,0<$&&(k+="H"+$.toString(32)),k+":"},useMutableSource:function(k,$){return Ot(),$(k._source)},useSyncExternalStore:function(k,$,X){if(X===void 0)throw Error(e(407));return X()}},ze=null,Tt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function jt(k){return console.error(k),null}function Dt(){}function er(k,$,X,ce,qe,Be,tt,Et,Ht){var Gt=[],Vt=new Set;return $={destination:null,responseState:$,progressiveChunkSize:ce===void 0?12800:ce,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Vt,pingedTasks:Gt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:qe===void 0?jt:qe,onAllReady:Dt,onShellReady:tt===void 0?Dt:tt,onShellError:Dt,onFatalError:Dt},X=kt($,0,null,X,!1,!1),X.parentFlushed=!0,k=Jt($,k,null,X,Vt,It,null,Qt),Gt.push(k),$}function Jt(k,$,X,ce,qe,Be,tt,Et){k.allPendingTasks++,X===null?k.pendingRootTasks++:X.pendingTasks++;var Ht={node:$,ping:function(){var Gt=k.pingedTasks;Gt.push(Ht),Gt.length===1&&Bn(k)},blockedBoundary:X,blockedSegment:ce,abortSet:qe,legacyContext:Be,context:tt,treeContext:Et};return qe.add(Ht),Ht}function kt(k,$,X,ce,qe,Be){return{status:0,id:-1,index:$,parentFlushed:!1,chunks:[],children:[],formatContext:ce,boundary:X,lastPushedText:qe,textEmbedded:Be}}function xe(k,$){if(k=k.onError($),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function ot(k,$){var X=k.onShellError;X($),X=k.onFatalError,X($),k.destination!==null?(k.status=2,k.destination.destroy($)):(k.status=1,k.fatalError=$)}function wt(k,$,X,ce,qe){for(yt={},nt=$,at=0,k=X(ce,qe);Ve;)Ve=!1,at=0,_t+=1,ht=null,k=X(ce,qe);return Yt(),k}function yr(k,$,X,ce){var qe=X.render(),Be=ce.childContextTypes;if(Be!=null){var tt=$.legacyContext;if(typeof X.getChildContext!="function")ce=tt;else{X=X.getChildContext();for(var Et in X)if(!(Et in Be))throw Error(e(108,Ct(ce)||"Unknown",Et));ce=ie({},tt,X)}$.legacyContext=ce,br(k,$,qe),$.legacyContext=tt}else br(k,$,qe)}function Br(k,$){if(k&&k.defaultProps){$=ie({},$),k=k.defaultProps;for(var X in k)$[X]===void 0&&($[X]=k[X]);return $}return $}function lr(k,$,X,ce,qe){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){qe=Je(X,$.legacyContext);var Be=X.contextType;Be=new X(ce,typeof Be=="object"&&Be!==null?Be._currentValue2:qe),Lt(Be,X,ce,qe),yr(k,$,Be,X)}else{Be=Je(X,$.legacyContext),qe=wt(k,$,X,ce,Be);var tt=at!==0;if(typeof qe=="object"&&qe!==null&&typeof qe.render=="function"&&qe.$$typeof===void 0)Lt(qe,X,ce,Be),yr(k,$,qe,X);else if(tt){ce=$.treeContext,$.treeContext=Ut(ce,1,0);try{br(k,$,qe)}finally{$.treeContext=ce}}else br(k,$,qe)}else if(typeof X=="string"){switch(qe=$.blockedSegment,Be=V(qe.chunks,X,ce,k.responseState,qe.formatContext),qe.lastPushedText=!1,tt=qe.formatContext,qe.formatContext=D(tt,X,ce),sn(k,$,Be),qe.formatContext=tt,X){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:qe.chunks.push("</",X,">")}qe.lastPushedText=!1}else{switch(X){case Ue:case Qe:case ne:case ve:case Le:br(k,$,ce.children);return;case _e:br(k,$,ce.children);return;case Fe:throw Error(e(343));case we:e:{X=$.blockedBoundary,qe=$.blockedSegment,Be=ce.fallback,ce=ce.children,tt=new Set;var Et={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:tt,errorDigest:null},Ht=kt(k,qe.chunks.length,Et,qe.formatContext,!1,!1);qe.children.push(Ht),qe.lastPushedText=!1;var Gt=kt(k,0,null,qe.formatContext,!1,!1);Gt.parentFlushed=!0,$.blockedBoundary=Et,$.blockedSegment=Gt;try{if(sn(k,$,ce),k.responseState.generateStaticMarkup||Gt.lastPushedText&&Gt.textEmbedded&&Gt.chunks.push("<!-- -->"),Gt.status=1,rn(Et,Gt),Et.pendingTasks===0)break e}catch(Vt){Gt.status=4,Et.forceClientRender=!0,Et.errorDigest=xe(k,Vt)}finally{$.blockedBoundary=X,$.blockedSegment=qe}$=Jt(k,Be,X,Ht,tt,$.legacyContext,$.context,$.treeContext),k.pingedTasks.push($)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case Oe:if(ce=wt(k,$,X.render,ce,qe),at!==0){X=$.treeContext,$.treeContext=Ut(X,1,0);try{br(k,$,ce)}finally{$.treeContext=X}}else br(k,$,ce);return;case Ae:X=X.type,ce=Br(X,ce),lr(k,$,X,ce,qe);return;case ke:if(qe=ce.children,X=X._context,ce=ce.value,Be=X._currentValue2,X._currentValue2=ce,tt=Ke,Ke=ce={parent:tt,depth:tt===null?0:tt.depth+1,context:X,parentValue:Be,value:ce},$.context=ce,br(k,$,qe),k=Ke,k===null)throw Error(e(403));ce=k.parentValue,k.context._currentValue2=ce===et?k.context._defaultValue:ce,k=Ke=k.parent,$.context=k;return;case De:ce=ce.children,ce=ce(X._currentValue2),br(k,$,ce);return;case $e:qe=X._init,X=qe(X._payload),ce=Br(X,ce),lr(k,$,X,ce,void 0);return}throw Error(e(130,X==null?X:typeof X,""))}}function br(k,$,X){if($.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case he:lr(k,$,X.type,X.props,X.ref);return;case Se:throw Error(e(257));case $e:var ce=X._init;X=ce(X._payload),br(k,$,X);return}if(A(X)){tn(k,$,X);return}if(X===null||typeof X!="object"?ce=null:(ce=ct&&X[ct]||X["@@iterator"],ce=typeof ce=="function"?ce:null),ce&&(ce=ce.call(X))){if(X=ce.next(),!X.done){var qe=[];do qe.push(X.value),X=ce.next();while(!X.done);tn(k,$,qe)}return}throw k=Object.prototype.toString.call(X),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":k))}typeof X=="string"?(ce=$.blockedSegment,ce.lastPushedText=re($.blockedSegment.chunks,X,k.responseState,ce.lastPushedText)):typeof X=="number"&&(ce=$.blockedSegment,ce.lastPushedText=re($.blockedSegment.chunks,""+X,k.responseState,ce.lastPushedText))}function tn(k,$,X){for(var ce=X.length,qe=0;qe<ce;qe++){var Be=$.treeContext;$.treeContext=Ut(Be,ce,qe);try{sn(k,$,X[qe])}finally{$.treeContext=Be}}}function sn(k,$,X){var ce=$.blockedSegment.formatContext,qe=$.legacyContext,Be=$.context;try{return br(k,$,X)}catch(Ht){if(Yt(),typeof Ht=="object"&&Ht!==null&&typeof Ht.then=="function"){X=Ht;var tt=$.blockedSegment,Et=kt(k,tt.chunks.length,null,tt.formatContext,tt.lastPushedText,!0);tt.children.push(Et),tt.lastPushedText=!1,k=Jt(k,$.node,$.blockedBoundary,Et,$.abortSet,$.legacyContext,$.context,$.treeContext).ping,X.then(k,k),$.blockedSegment.formatContext=ce,$.legacyContext=qe,$.context=Be,Nt(Be)}else throw $.blockedSegment.formatContext=ce,$.legacyContext=qe,$.context=Be,Nt(Be),Ht}}function Pn(k){var $=k.blockedBoundary;k=k.blockedSegment,k.status=3,kn(this,$,k)}function Hr(k,$,X){var ce=k.blockedBoundary;k.blockedSegment.status=3,ce===null?($.allPendingTasks--,$.status!==2&&($.status=2,$.destination!==null&&$.destination.push(null))):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,k=X===void 0?Error(e(432)):X,ce.errorDigest=$.onError(k),ce.parentFlushed&&$.clientRenderedBoundaries.push(ce)),ce.fallbackAbortableTasks.forEach(function(qe){return Hr(qe,$,X)}),ce.fallbackAbortableTasks.clear(),$.allPendingTasks--,$.allPendingTasks===0&&(ce=$.onAllReady,ce()))}function rn(k,$){if($.chunks.length===0&&$.children.length===1&&$.children[0].boundary===null){var X=$.children[0];X.id=$.id,X.parentFlushed=!0,X.status===1&&rn(k,X)}else k.completedSegments.push($)}function kn(k,$,X){if($===null){if(X.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=X}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Dt,$=k.onShellReady,$())}else $.pendingTasks--,$.forceClientRender||($.pendingTasks===0?(X.parentFlushed&&X.status===1&&rn($,X),$.parentFlushed&&k.completedBoundaries.push($),$.fallbackAbortableTasks.forEach(Pn,k),$.fallbackAbortableTasks.clear()):X.parentFlushed&&X.status===1&&(rn($,X),$.completedSegments.length===1&&$.parentFlushed&&k.partialBoundaries.push($)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Bn(k){if(k.status!==2){var $=Ke,X=Tt.current;Tt.current=be;var ce=ze;ze=k.responseState;try{var qe=k.pingedTasks,Be;for(Be=0;Be<qe.length;Be++){var tt=qe[Be],Et=k,Ht=tt.blockedSegment;if(Ht.status===0){Nt(tt.context);try{br(Et,tt,tt.node),Et.responseState.generateStaticMarkup||Ht.lastPushedText&&Ht.textEmbedded&&Ht.chunks.push("<!-- -->"),tt.abortSet.delete(tt),Ht.status=1,kn(Et,tt.blockedBoundary,Ht)}catch(Mn){if(Yt(),typeof Mn=="object"&&Mn!==null&&typeof Mn.then=="function"){var Gt=tt.ping;Mn.then(Gt,Gt)}else{tt.abortSet.delete(tt),Ht.status=4;var Vt=tt.blockedBoundary,Rr=Mn,an=xe(Et,Rr);if(Vt===null?ot(Et,Rr):(Vt.pendingTasks--,Vt.forceClientRender||(Vt.forceClientRender=!0,Vt.errorDigest=an,Vt.parentFlushed&&Et.clientRenderedBoundaries.push(Vt))),Et.allPendingTasks--,Et.allPendingTasks===0){var In=Et.onAllReady;In()}}}finally{}}}qe.splice(0,Be),k.destination!==null&&Cn(k,k.destination)}catch(Mn){xe(k,Mn),ot(k,Mn)}finally{ze=ce,Tt.current=X,X===be&&Nt($)}}}function _o(k,$,X){switch(X.parentFlushed=!0,X.status){case 0:var ce=X.id=k.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,k=k.responseState,$.push('<template id="'),$.push(k.placeholderPrefix),k=ce.toString(16),$.push(k),$.push('"></template>');case 1:X.status=2;var qe=!0;ce=X.chunks;var Be=0;X=X.children;for(var tt=0;tt<X.length;tt++){for(qe=X[tt];Be<qe.index;Be++)$.push(ce[Be]);qe=Do(k,$,qe)}for(;Be<ce.length-1;Be++)$.push(ce[Be]);return Be<ce.length&&(qe=$.push(ce[Be])),qe;default:throw Error(e(390))}}function Do(k,$,X){var ce=X.boundary;if(ce===null)return _o(k,$,X);if(ce.parentFlushed=!0,ce.forceClientRender)return k.responseState.generateStaticMarkup||(ce=ce.errorDigest,$.push("<!--$!-->"),$.push("<template"),ce&&($.push(' data-dgst="'),ce=w(ce),$.push(ce),$.push('"')),$.push("></template>")),_o(k,$,X),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k;if(0<ce.pendingTasks){ce.rootSegmentID=k.nextSegmentId++,0<ce.completedSegments.length&&k.partialBoundaries.push(ce);var qe=k.responseState,Be=qe.nextSuspenseID++;return qe=qe.boundaryPrefix+Be.toString(16),ce=ce.id=qe,Q($,k.responseState,ce),_o(k,$,X),$.push("<!--/$-->")}if(ce.byteSize>k.progressiveChunkSize)return ce.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ce),Q($,k.responseState,ce.id),_o(k,$,X),$.push("<!--/$-->");if(k.responseState.generateStaticMarkup||$.push("<!--$-->"),X=ce.completedSegments,X.length!==1)throw Error(e(391));return Do(k,$,X[0]),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k}function Oo(k,$,X){return se($,k.responseState,X.formatContext,X.id),Do(k,$,X),ue($,X.formatContext)}function zn(k,$,X){for(var ce=X.completedSegments,qe=0;qe<ce.length;qe++)Fn(k,$,X,ce[qe]);if(ce.length=0,k=k.responseState,ce=X.id,X=X.rootSegmentID,$.push(k.startInlineScript),k.sentCompleteBoundaryFunction?$.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,$.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ce===null)throw Error(e(395));return X=X.toString(16),$.push(ce),$.push('","'),$.push(k.segmentPrefix),$.push(X),$.push('")<\/script>')}function Fn(k,$,X,ce){if(ce.status===2)return!0;var qe=ce.id;if(qe===-1){if((ce.id=X.rootSegmentID)===-1)throw Error(e(392));return Oo(k,$,ce)}return Oo(k,$,ce),k=k.responseState,$.push(k.startInlineScript),k.sentCompleteSegmentFunction?$.push('$RS("'):(k.sentCompleteSegmentFunction=!0,$.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),$.push(k.segmentPrefix),qe=qe.toString(16),$.push(qe),$.push('","'),$.push(k.placeholderPrefix),$.push(qe),$.push('")<\/script>')}function Cn(k,$){try{var X=k.completedRootSegment;if(X!==null&&k.pendingRootTasks===0){Do(k,$,X),k.completedRootSegment=null;var ce=k.responseState.bootstrapChunks;for(X=0;X<ce.length-1;X++)$.push(ce[X]);X<ce.length&&$.push(ce[X])}var qe=k.clientRenderedBoundaries,Be;for(Be=0;Be<qe.length;Be++){var tt=qe[Be];ce=$;var Et=k.responseState,Ht=tt.id,Gt=tt.errorDigest,Vt=tt.errorMessage,Rr=tt.errorComponentStack;if(ce.push(Et.startInlineScript),Et.sentClientRenderFunction?ce.push('$RX("'):(Et.sentClientRenderFunction=!0,ce.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Ht===null)throw Error(e(395));if(ce.push(Ht),ce.push('"'),Gt||Vt||Rr){ce.push(",");var an=ae(Gt||"");ce.push(an)}if(Vt||Rr){ce.push(",");var In=ae(Vt||"");ce.push(In)}if(Rr){ce.push(",");var Mn=ae(Rr);ce.push(Mn)}if(!ce.push(")<\/script>")){k.destination=null,Be++,qe.splice(0,Be);return}}qe.splice(0,Be);var ho=k.completedBoundaries;for(Be=0;Be<ho.length;Be++)if(!zn(k,$,ho[Be])){k.destination=null,Be++,ho.splice(0,Be);return}ho.splice(0,Be);var Zn=k.partialBoundaries;for(Be=0;Be<Zn.length;Be++){var No=Zn[Be];e:{qe=k,tt=$;var dn=No.completedSegments;for(Et=0;Et<dn.length;Et++)if(!Fn(qe,tt,No,dn[Et])){Et++,dn.splice(0,Et);var Ao=!1;break e}dn.splice(0,Et),Ao=!0}if(!Ao){k.destination=null,Be++,Zn.splice(0,Be);return}}Zn.splice(0,Be);var Kn=k.completedBoundaries;for(Be=0;Be<Kn.length;Be++)if(!zn(k,$,Kn[Be])){k.destination=null,Be++,Kn.splice(0,Be);return}Kn.splice(0,Be)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&$.push(null)}}function oo(k,$){try{var X=k.abortableTasks;X.forEach(function(ce){return Hr(ce,k,$)}),X.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ce){xe(k,ce),ot(k,ce)}}function mn(){}function An(k,$,X,ce){var qe=!1,Be=null,tt="",Et={push:function(Gt){return Gt!==null&&(tt+=Gt),!0},destroy:function(Gt){qe=!0,Be=Gt}},Ht=!1;if(k=er(k,ge(X,$?$.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,mn,void 0,function(){Ht=!0}),Bn(k),oo(k,ce),k.status===1)k.status=2,Et.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Et;try{Cn(k,Et)}catch(Gt){xe(k,Gt),ot(k,Gt)}}if(qe)throw Be;if(!Ht)throw Error(e(426));return tt}return Du.renderToNodeStream=function(){throw Error(e(207))},Du.renderToStaticMarkup=function(k,$){return An(k,$,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Du.renderToStaticNodeStream=function(){throw Error(e(208))},Du.renderToString=function(k,$){return An(k,$,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Du.version="18.3.1",Du}var sp={};/**
|
72
72
|
* @license React
|
73
73
|
* react-dom-server.browser.production.min.js
|
74
74
|
*
|
@@ -76,11 +76,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
76
76
|
*
|
77
77
|
* This source code is licensed under the MIT license found in the
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
79
|
-
*/var p0;function A4(){if(p0)return sp;p0=1;var r=S;function e(M){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+M,Y=1;Y<arguments.length;Y++)H+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+M+"; visit "+H+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function o(M,H){if(H.length!==0)if(512<H.length)0<n&&(M.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),M.enqueue(H);else{var Y=t.length-n;Y<H.length&&(Y===0?M.enqueue(t):(t.set(H.subarray(0,Y),n),M.enqueue(t),H=H.subarray(Y)),t=new Uint8Array(512),n=0),t.set(H,n),n+=H.length}}function i(M,H){return o(M,H),!0}function a(M){t&&0<n&&(M.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var c=new TextEncoder;function d(M){return c.encode(M)}function h(M){return c.encode(M)}function p(M,H){typeof M.error=="function"?M.error(H):M.close()}var m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},w={};function T(M){return m.call(w,M)?!0:m.call(v,M)?!1:g.test(M)?w[M]=!0:(v[M]=!0,!1)}function _(M,H,Y,de,We,He,ut){this.acceptsBooleans=H===2||H===3||H===4,this.attributeName=de,this.attributeNamespace=We,this.mustUseProperty=Y,this.propertyName=M,this.type=H,this.sanitizeURL=He,this.removeEmptyString=ut}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(M){A[M]=new _(M,0,!1,M,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(M){var H=M[0];A[H]=new _(H,1,!1,M[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(M){A[M]=new _(M,2,!1,M.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(M){A[M]=new _(M,2,!1,M,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(M){A[M]=new _(M,3,!1,M.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(M){A[M]=new _(M,3,!0,M,null,!1,!1)}),["capture","download"].forEach(function(M){A[M]=new _(M,4,!1,M,null,!1,!1)}),["cols","rows","size","span"].forEach(function(M){A[M]=new _(M,6,!1,M,null,!1,!1)}),["rowSpan","start"].forEach(function(M){A[M]=new _(M,5,!1,M.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function D(M){return M[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(M){var H=M.replace(R,D);A[H]=new _(H,1,!1,M,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(M){var H=M.replace(R,D);A[H]=new _(H,1,!1,M,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(M){var H=M.replace(R,D);A[H]=new _(H,1,!1,M,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(M){A[M]=new _(M,1,!1,M.toLowerCase(),null,!1,!1)}),A.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(M){A[M]=new _(M,1,!1,M.toLowerCase(),null,!0,!0)});var I={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},B=["Webkit","ms","Moz","O"];Object.keys(I).forEach(function(M){B.forEach(function(H){H=H+M.charAt(0).toUpperCase()+M.substring(1),I[H]=I[M]})});var F=/["'&<>]/;function j(M){if(typeof M=="boolean"||typeof M=="number")return""+M;M=""+M;var H=F.exec(M);if(H){var Y="",de,We=0;for(de=H.index;de<M.length;de++){switch(M.charCodeAt(de)){case 34:H=""";break;case 38:H="&";break;case 39:H="'";break;case 60:H="<";break;case 62:H=">";break;default:continue}We!==de&&(Y+=M.substring(We,de)),We=de+1,Y+=H}M=We!==de?Y+M.substring(We,de):Y}return M}var z=/([A-Z])/g,G=/^ms-/,pe=Array.isArray,P=h("<script>"),U=h("<\/script>"),V=h('<script src="'),Q=h('<script type="module" src="'),se=h('" async=""><\/script>'),ue=/(<\/|<)(s)(cript)/gi;function oe(M,H,Y,de){return""+H+(Y==="s"?"\\u0073":"\\u0053")+de}function ae(M,H,Y,de,We){M=M===void 0?"":M,H=H===void 0?P:h('<script nonce="'+j(H)+'">');var He=[];if(Y!==void 0&&He.push(H,d((""+Y).replace(ue,oe)),U),de!==void 0)for(Y=0;Y<de.length;Y++)He.push(V,d(j(de[Y])),se);if(We!==void 0)for(de=0;de<We.length;de++)He.push(Q,d(j(We[de])),se);return{bootstrapChunks:He,startInlineScript:H,placeholderPrefix:h(M+"P:"),segmentPrefix:h(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function ge(M,H){return{insertionMode:M,selectedValue:H}}function re(M){return ge(M==="http://www.w3.org/2000/svg"?2:M==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ie(M,H,Y){switch(H){case"select":return ge(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return ge(2,null);case"math":return ge(3,null);case"foreignObject":return ge(1,null);case"table":return ge(4,null);case"thead":case"tbody":case"tfoot":return ge(5,null);case"colgroup":return ge(7,null);case"tr":return ge(6,null)}return 4<=M.insertionMode||M.insertionMode===0?ge(1,null):M}var he=h("<!-- -->");function Se(M,H,Y,de){return H===""?de:(de&&M.push(he),M.push(d(j(H))),!0)}var Le=new Map,ne=h(' style="'),ve=h(":"),ke=h(";");function
|
80
|
-
`),Je=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ke=new Map;function ft(M){var H=Ke.get(M);if(H===void 0){if(!Je.test(M))throw Error(e(65,M));H=h("<"+M),Ke.set(M,H)}return H}var gt=h("<!DOCTYPE html>");function
|
79
|
+
*/var p0;function A4(){if(p0)return sp;p0=1;var r=S;function e(M){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+M,Y=1;Y<arguments.length;Y++)H+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+M+"; visit "+H+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function o(M,H){if(H.length!==0)if(512<H.length)0<n&&(M.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),M.enqueue(H);else{var Y=t.length-n;Y<H.length&&(Y===0?M.enqueue(t):(t.set(H.subarray(0,Y),n),M.enqueue(t),H=H.subarray(Y)),t=new Uint8Array(512),n=0),t.set(H,n),n+=H.length}}function i(M,H){return o(M,H),!0}function a(M){t&&0<n&&(M.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var c=new TextEncoder;function d(M){return c.encode(M)}function h(M){return c.encode(M)}function p(M,H){typeof M.error=="function"?M.error(H):M.close()}var m=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},w={};function T(M){return m.call(w,M)?!0:m.call(v,M)?!1:g.test(M)?w[M]=!0:(v[M]=!0,!1)}function _(M,H,Y,de,We,He,ut){this.acceptsBooleans=H===2||H===3||H===4,this.attributeName=de,this.attributeNamespace=We,this.mustUseProperty=Y,this.propertyName=M,this.type=H,this.sanitizeURL=He,this.removeEmptyString=ut}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(M){A[M]=new _(M,0,!1,M,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(M){var H=M[0];A[H]=new _(H,1,!1,M[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(M){A[M]=new _(M,2,!1,M.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(M){A[M]=new _(M,2,!1,M,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(M){A[M]=new _(M,3,!1,M.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(M){A[M]=new _(M,3,!0,M,null,!1,!1)}),["capture","download"].forEach(function(M){A[M]=new _(M,4,!1,M,null,!1,!1)}),["cols","rows","size","span"].forEach(function(M){A[M]=new _(M,6,!1,M,null,!1,!1)}),["rowSpan","start"].forEach(function(M){A[M]=new _(M,5,!1,M.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function D(M){return M[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(M){var H=M.replace(R,D);A[H]=new _(H,1,!1,M,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(M){var H=M.replace(R,D);A[H]=new _(H,1,!1,M,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(M){var H=M.replace(R,D);A[H]=new _(H,1,!1,M,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(M){A[M]=new _(M,1,!1,M.toLowerCase(),null,!1,!1)}),A.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(M){A[M]=new _(M,1,!1,M.toLowerCase(),null,!0,!0)});var I={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},B=["Webkit","ms","Moz","O"];Object.keys(I).forEach(function(M){B.forEach(function(H){H=H+M.charAt(0).toUpperCase()+M.substring(1),I[H]=I[M]})});var F=/["'&<>]/;function j(M){if(typeof M=="boolean"||typeof M=="number")return""+M;M=""+M;var H=F.exec(M);if(H){var Y="",de,We=0;for(de=H.index;de<M.length;de++){switch(M.charCodeAt(de)){case 34:H=""";break;case 38:H="&";break;case 39:H="'";break;case 60:H="<";break;case 62:H=">";break;default:continue}We!==de&&(Y+=M.substring(We,de)),We=de+1,Y+=H}M=We!==de?Y+M.substring(We,de):Y}return M}var z=/([A-Z])/g,G=/^ms-/,pe=Array.isArray,P=h("<script>"),U=h("<\/script>"),V=h('<script src="'),Q=h('<script type="module" src="'),se=h('" async=""><\/script>'),ue=/(<\/|<)(s)(cript)/gi;function oe(M,H,Y,de){return""+H+(Y==="s"?"\\u0073":"\\u0053")+de}function ae(M,H,Y,de,We){M=M===void 0?"":M,H=H===void 0?P:h('<script nonce="'+j(H)+'">');var He=[];if(Y!==void 0&&He.push(H,d((""+Y).replace(ue,oe)),U),de!==void 0)for(Y=0;Y<de.length;Y++)He.push(V,d(j(de[Y])),se);if(We!==void 0)for(de=0;de<We.length;de++)He.push(Q,d(j(We[de])),se);return{bootstrapChunks:He,startInlineScript:H,placeholderPrefix:h(M+"P:"),segmentPrefix:h(M+"S:"),boundaryPrefix:M+"B:",idPrefix:M,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function ge(M,H){return{insertionMode:M,selectedValue:H}}function re(M){return ge(M==="http://www.w3.org/2000/svg"?2:M==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ie(M,H,Y){switch(H){case"select":return ge(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return ge(2,null);case"math":return ge(3,null);case"foreignObject":return ge(1,null);case"table":return ge(4,null);case"thead":case"tbody":case"tfoot":return ge(5,null);case"colgroup":return ge(7,null);case"tr":return ge(6,null)}return 4<=M.insertionMode||M.insertionMode===0?ge(1,null):M}var he=h("<!-- -->");function Se(M,H,Y,de){return H===""?de:(de&&M.push(he),M.push(d(j(H))),!0)}var Le=new Map,ne=h(' style="'),ve=h(":"),ke=h(";");function De(M,H,Y){if(typeof Y!="object")throw Error(e(62));H=!0;for(var de in Y)if(m.call(Y,de)){var We=Y[de];if(We!=null&&typeof We!="boolean"&&We!==""){if(de.indexOf("--")===0){var He=d(j(de));We=d(j((""+We).trim()))}else{He=de;var ut=Le.get(He);ut!==void 0||(ut=h(j(He.replace(z,"-$1").toLowerCase().replace(G,"-ms-"))),Le.set(He,ut)),He=ut,We=typeof We=="number"?We===0||m.call(I,de)?d(""+We):d(We+"px"):d(j((""+We).trim()))}H?(H=!1,M.push(ne,He,ve,We)):M.push(ke,He,ve,We)}}H||M.push(_e)}var Oe=h(" "),we=h('="'),_e=h('"'),Ae=h('=""');function $e(M,H,Y,de){switch(Y){case"style":De(M,H,de);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Y.length)||Y[0]!=="o"&&Y[0]!=="O"||Y[1]!=="n"&&Y[1]!=="N"){if(H=A.hasOwnProperty(Y)?A[Y]:null,H!==null){switch(typeof de){case"function":case"symbol":return;case"boolean":if(!H.acceptsBooleans)return}switch(Y=d(H.attributeName),H.type){case 3:de&&M.push(Oe,Y,Ae);break;case 4:de===!0?M.push(Oe,Y,Ae):de!==!1&&M.push(Oe,Y,we,d(j(de)),_e);break;case 5:isNaN(de)||M.push(Oe,Y,we,d(j(de)),_e);break;case 6:!isNaN(de)&&1<=de&&M.push(Oe,Y,we,d(j(de)),_e);break;default:H.sanitizeURL&&(de=""+de),M.push(Oe,Y,we,d(j(de)),_e)}}else if(T(Y)){switch(typeof de){case"function":case"symbol":return;case"boolean":if(H=Y.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")return}M.push(Oe,d(Y),we,d(j(de)),_e)}}}var Fe=h(">"),Qe=h("/>");function Ue(M,H,Y){if(H!=null){if(Y!=null)throw Error(e(60));if(typeof H!="object"||!("__html"in H))throw Error(e(61));H=H.__html,H!=null&&M.push(d(""+H))}}function et(M){var H="";return r.Children.forEach(M,function(Y){Y!=null&&(H+=Y)}),H}var ct=h(' selected=""');function Ct(M,H,Y,de){M.push(ft(Y));var We=Y=null,He;for(He in H)if(m.call(H,He)){var ut=H[He];if(ut!=null)switch(He){case"children":Y=ut;break;case"dangerouslySetInnerHTML":We=ut;break;default:$e(M,de,He,ut)}}return M.push(Fe),Ue(M,We,Y),typeof Y=="string"?(M.push(d(j(Y))),null):Y}var It=h(`
|
80
|
+
`),Je=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ke=new Map;function ft(M){var H=Ke.get(M);if(H===void 0){if(!Je.test(M))throw Error(e(65,M));H=h("<"+M),Ke.set(M,H)}return H}var gt=h("<!DOCTYPE html>");function Pe(M,H,Y,de,We){switch(H){case"select":M.push(ft("select"));var He=null,ut=null;for(pr in Y)if(m.call(Y,pr)){var Mt=Y[pr];if(Mt!=null)switch(pr){case"children":He=Mt;break;case"dangerouslySetInnerHTML":ut=Mt;break;case"defaultValue":case"value":break;default:$e(M,de,pr,Mt)}}return M.push(Fe),Ue(M,ut,He),He;case"option":ut=We.selectedValue,M.push(ft("option"));var Zt=Mt=null,Sr=null,pr=null;for(He in Y)if(m.call(Y,He)){var on=Y[He];if(on!=null)switch(He){case"children":Mt=on;break;case"selected":Sr=on;break;case"dangerouslySetInnerHTML":pr=on;break;case"value":Zt=on;default:$e(M,de,He,on)}}if(ut!=null)if(Y=Zt!==null?""+Zt:et(Mt),pe(ut)){for(de=0;de<ut.length;de++)if(""+ut[de]===Y){M.push(ct);break}}else""+ut===Y&&M.push(ct);else Sr&&M.push(ct);return M.push(Fe),Ue(M,pr,Mt),Mt;case"textarea":M.push(ft("textarea")),pr=ut=He=null;for(Mt in Y)if(m.call(Y,Mt)&&(Zt=Y[Mt],Zt!=null))switch(Mt){case"children":pr=Zt;break;case"value":He=Zt;break;case"defaultValue":ut=Zt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:$e(M,de,Mt,Zt)}if(He===null&&ut!==null&&(He=ut),M.push(Fe),pr!=null){if(He!=null)throw Error(e(92));if(pe(pr)&&1<pr.length)throw Error(e(93));He=""+pr}return typeof He=="string"&&He[0]===`
|
81
81
|
`&&M.push(It),He!==null&&M.push(d(j(""+He))),null;case"input":M.push(ft("input")),Zt=pr=Mt=He=null;for(ut in Y)if(m.call(Y,ut)&&(Sr=Y[ut],Sr!=null))switch(ut){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Zt=Sr;break;case"defaultValue":Mt=Sr;break;case"checked":pr=Sr;break;case"value":He=Sr;break;default:$e(M,de,ut,Sr)}return pr!==null?$e(M,de,"checked",pr):Zt!==null&&$e(M,de,"checked",Zt),He!==null?$e(M,de,"value",He):Mt!==null&&$e(M,de,"value",Mt),M.push(Qe),null;case"menuitem":M.push(ft("menuitem"));for(var lo in Y)if(m.call(Y,lo)&&(He=Y[lo],He!=null))switch(lo){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:$e(M,de,lo,He)}return M.push(Fe),null;case"title":M.push(ft("title")),He=null;for(on in Y)if(m.call(Y,on)&&(ut=Y[on],ut!=null))switch(on){case"children":He=ut;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:$e(M,de,on,ut)}return M.push(Fe),He;case"listing":case"pre":M.push(ft(H)),ut=He=null;for(Zt in Y)if(m.call(Y,Zt)&&(Mt=Y[Zt],Mt!=null))switch(Zt){case"children":He=Mt;break;case"dangerouslySetInnerHTML":ut=Mt;break;default:$e(M,de,Zt,Mt)}if(M.push(Fe),ut!=null){if(He!=null)throw Error(e(60));if(typeof ut!="object"||!("__html"in ut))throw Error(e(61));Y=ut.__html,Y!=null&&(typeof Y=="string"&&0<Y.length&&Y[0]===`
|
82
82
|
`?M.push(It,d(Y)):M.push(d(""+Y)))}return typeof He=="string"&&He[0]===`
|
83
|
-
`&&M.push(It),He;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":M.push(ft(H));for(var Bo in Y)if(m.call(Y,Bo)&&(He=Y[Bo],He!=null))switch(Bo){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,H));default:$e(M,de,Bo,He)}return M.push(Qe),null;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 Ct(M,Y,H,de);case"html":return We.insertionMode===0&&M.push(gt),Ct(M,Y,H,de);default:if(H.indexOf("-")===-1&&typeof Y.is!="string")return Ct(M,Y,H,de);M.push(ft(H)),ut=He=null;for(Sr in Y)if(m.call(Y,Sr)&&(Mt=Y[Sr],Mt!=null))switch(Sr){case"children":He=Mt;break;case"dangerouslySetInnerHTML":ut=Mt;break;case"style":Pe(M,de,Mt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Sr)&&typeof Mt!="function"&&typeof Mt!="symbol"&&M.push(De,d(Sr),we,d(j(Mt)),_e)}return M.push(Fe),Ue(M,ut,He),He}}var Xe=h("</"),vt=h(">"),Nt=h('<template id="'),xt=h('"></template>'),Lt=h("<!--$-->"),Qt=h('<!--$?--><template id="'),Ut=h('"></template>'),fr=h("<!--$!-->"),hr=h("<!--/$-->"),cr=h("<template"),Te=h('"'),le=h(' data-dgst="');h(' data-msg="'),h(' data-stck="');var st=h("></template>");function yt(M,H,Y){if(o(M,Qt),Y===null)throw Error(e(395));return o(M,Y),i(M,Ut)}var nt=h('<div hidden id="'),pt=h('">'),ht=h("</div>"),Ft=h('<svg aria-hidden="true" style="display:none" id="'),Ve=h('">'),at=h("</svg>"),lt=h('<math aria-hidden="true" style="display:none" id="'),_t=h('">'),Ot=h("</math>"),Bt=h('<table hidden id="'),Wt=h('">'),Yt=h("</table>"),ir=h('<table hidden><tbody id="'),zt=h('">'),xr=h("</tbody></table>"),jr=h('<table hidden><tr id="'),Ye=h('">'),ee=h("</tr></table>"),be=h('<table hidden><colgroup id="'),ze=h('">'),Tt=h("</colgroup></table>");function jt(M,H,Y,de){switch(Y.insertionMode){case 0:case 1:return o(M,nt),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,pt);case 2:return o(M,Ft),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,Ve);case 3:return o(M,lt),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,_t);case 4:return o(M,Bt),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,Wt);case 5:return o(M,ir),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,zt);case 6:return o(M,jr),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,Ye);case 7:return o(M,be),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,ze);default:throw Error(e(397))}}function Dt(M,H){switch(H.insertionMode){case 0:case 1:return i(M,ht);case 2:return i(M,at);case 3:return i(M,Ot);case 4:return i(M,Yt);case 5:return i(M,xr);case 6:return i(M,ee);case 7:return i(M,Tt);default:throw Error(e(397))}}var er=h('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Jt=h('$RS("'),kt=h('","'),xe=h('")<\/script>'),ot=h('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),wt=h('$RC("'),yr=h('","'),Br=h('")<\/script>'),lr=h('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),br=h('$RX("'),tn=h('"'),sn=h(")<\/script>"),Pn=h(","),Hr=/[<\u2028\u2029]/g;function rn(M){return JSON.stringify(M).replace(Hr,function(H){switch(H){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var kn=Object.assign,Bn=Symbol.for("react.element"),_o=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),Oo=Symbol.for("react.strict_mode"),zn=Symbol.for("react.profiler"),Fn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),oo=Symbol.for("react.forward_ref"),mn=Symbol.for("react.suspense"),An=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.scope"),ce=Symbol.for("react.debug_trace_mode"),qe=Symbol.for("react.legacy_hidden"),Be=Symbol.for("react.default_value"),tt=Symbol.iterator;function Et(M){if(M==null)return null;if(typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case Do:return"Fragment";case _o:return"Portal";case zn:return"Profiler";case Oo:return"StrictMode";case mn:return"Suspense";case An:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case Cn:return(M.displayName||"Context")+".Consumer";case Fn:return(M._context.displayName||"Context")+".Provider";case oo:var H=M.render;return M=M.displayName,M||(M=H.displayName||H.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case k:return H=M.displayName||null,H!==null?H:Et(M.type)||"Memo";case $:H=M._payload,M=M._init;try{return Et(M(H))}catch{}}return null}var Ht={};function Gt(M,H){if(M=M.contextTypes,!M)return Ht;var Y={},de;for(de in M)Y[de]=H[de];return Y}var Vt=null;function Rr(M,H){if(M!==H){M.context._currentValue=M.parentValue,M=M.parent;var Y=H.parent;if(M===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));Rr(M,Y)}H.context._currentValue=H.value}}function an(M){M.context._currentValue=M.parentValue,M=M.parent,M!==null&&an(M)}function In(M){var H=M.parent;H!==null&&In(H),M.context._currentValue=M.value}function Mn(M,H){if(M.context._currentValue=M.parentValue,M=M.parent,M===null)throw Error(e(402));M.depth===H.depth?Rr(M,H):Mn(M,H)}function ho(M,H){var Y=H.parent;if(Y===null)throw Error(e(402));M.depth===Y.depth?Rr(M,Y):ho(M,Y),H.context._currentValue=H.value}function Zn(M){var H=Vt;H!==M&&(H===null?In(M):M===null?an(H):H.depth===M.depth?Rr(H,M):H.depth>M.depth?Mn(H,M):ho(H,M),Vt=M)}var No={isMounted:function(){return!1},enqueueSetState:function(M,H){M=M._reactInternals,M.queue!==null&&M.queue.push(H)},enqueueReplaceState:function(M,H){M=M._reactInternals,M.replace=!0,M.queue=[H]},enqueueForceUpdate:function(){}};function dn(M,H,Y,de){var We=M.state!==void 0?M.state:null;M.updater=No,M.props=Y,M.state=We;var He={queue:[],replace:!1};M._reactInternals=He;var ut=H.contextType;if(M.context=typeof ut=="object"&&ut!==null?ut._currentValue:de,ut=H.getDerivedStateFromProps,typeof ut=="function"&&(ut=ut(Y,We),We=ut==null?We:kn({},We,ut),M.state=We),typeof H.getDerivedStateFromProps!="function"&&typeof M.getSnapshotBeforeUpdate!="function"&&(typeof M.UNSAFE_componentWillMount=="function"||typeof M.componentWillMount=="function"))if(H=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),H!==M.state&&No.enqueueReplaceState(M,M.state,null),He.queue!==null&&0<He.queue.length)if(H=He.queue,ut=He.replace,He.queue=null,He.replace=!1,ut&&H.length===1)M.state=H[0];else{for(He=ut?H[0]:M.state,We=!0,ut=ut?1:0;ut<H.length;ut++){var Mt=H[ut];Mt=typeof Mt=="function"?Mt.call(M,He,Y,de):Mt,Mt!=null&&(We?(We=!1,He=kn({},He,Mt)):kn(He,Mt))}M.state=He}else He.queue=null}var Ao={id:1,overflow:""};function Kn(M,H,Y){var de=M.id;M=M.overflow;var We=32-io(de)-1;de&=~(1<<We),Y+=1;var He=32-io(H)+We;if(30<He){var ut=We-We%5;return He=(de&(1<<ut)-1).toString(32),de>>=ut,We-=ut,{id:1<<32-io(H)+We|Y<<We|de,overflow:He+M}}return{id:1<<He|Y<<We|de,overflow:M}}var io=Math.clz32?Math.clz32:bi,Pi=Math.log,yi=Math.LN2;function bi(M){return M>>>=0,M===0?32:31-(Pi(M)/yi|0)|0}function Hn(M,H){return M===H&&(M!==0||1/M===1/H)||M!==M&&H!==H}var Bi=typeof Object.is=="function"?Object.is:Hn,so=null,ao=null,ti=null,zr=null,Ir=!1,Fr=!1,O=0,J=null,Ce=0;function rt(){if(so===null)throw Error(e(321));return so}function or(){if(0<Ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return zr===null?ti===null?(Ir=!1,ti=zr=or()):(Ir=!0,zr=ti):zr.next===null?(Ir=!1,zr=zr.next=or()):(Ir=!0,zr=zr.next),zr}function _r(){ao=so=null,Fr=!1,ti=null,Ce=0,zr=J=null}function kr(M,H){return typeof H=="function"?H(M):H}function Cr(M,H,Y){if(so=rt(),zr=Kt(),Ir){var de=zr.queue;if(H=de.dispatch,J!==null&&(Y=J.get(de),Y!==void 0)){J.delete(de),de=zr.memoizedState;do de=M(de,Y.action),Y=Y.next;while(Y!==null);return zr.memoizedState=de,[de,H]}return[zr.memoizedState,H]}return M=M===kr?typeof H=="function"?H():H:Y!==void 0?Y(H):H,zr.memoizedState=M,M=zr.queue={last:null,dispatch:null},M=M.dispatch=fn.bind(null,so,M),[zr.memoizedState,M]}function Mr(M,H){if(so=rt(),zr=Kt(),H=H===void 0?null:H,zr!==null){var Y=zr.memoizedState;if(Y!==null&&H!==null){var de=Y[1];e:if(de===null)de=!1;else{for(var We=0;We<de.length&&We<H.length;We++)if(!Bi(H[We],de[We])){de=!1;break e}de=!0}if(de)return Y[0]}}return M=M(),zr.memoizedState=[M,H],M}function fn(M,H,Y){if(25<=Ce)throw Error(e(301));if(M===so)if(Fr=!0,M={action:Y,next:null},J===null&&(J=new Map),Y=J.get(H),Y===void 0)J.set(H,M);else{for(H=Y;H.next!==null;)H=H.next;H.next=M}}function $n(){throw Error(e(394))}function nn(){}var Vr={readContext:function(M){return M._currentValue},useContext:function(M){return rt(),M._currentValue},useMemo:Mr,useReducer:Cr,useRef:function(M){so=rt(),zr=Kt();var H=zr.memoizedState;return H===null?(M={current:M},zr.memoizedState=M):H},useState:function(M){return Cr(kr,M)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(M,H){return Mr(function(){return M},H)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(M){return rt(),M},useTransition:function(){return rt(),[!1,$n]},useId:function(){var M=ao.treeContext,H=M.overflow;M=M.id,M=(M&~(1<<32-io(M)-1)).toString(32)+H;var Y=hn;if(Y===null)throw Error(e(404));return H=O++,M=":"+Y.idPrefix+"R"+M,0<H&&(M+="H"+H.toString(32)),M+":"},useMutableSource:function(M,H){return rt(),H(M._source)},useSyncExternalStore:function(M,H,Y){if(Y===void 0)throw Error(e(407));return Y()}},hn=null,po=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Eo(M){return console.error(M),null}function Xn(){}function Fi(M,H,Y,de,We,He,ut,Mt,Zt){var Sr=[],pr=new Set;return H={destination:null,responseState:H,progressiveChunkSize:de===void 0?12800:de,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pr,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:We===void 0?Eo:We,onAllReady:He===void 0?Xn:He,onShellReady:ut===void 0?Xn:ut,onShellError:Mt===void 0?Xn:Mt,onFatalError:Zt===void 0?Xn:Zt},Y=vn(H,0,null,Y,!1,!1),Y.parentFlushed=!0,M=ri(H,M,null,Y,pr,Ht,null,Ao),Sr.push(M),H}function ri(M,H,Y,de,We,He,ut,Mt){M.allPendingTasks++,Y===null?M.pendingRootTasks++:Y.pendingTasks++;var Zt={node:H,ping:function(){var Sr=M.pingedTasks;Sr.push(Zt),Sr.length===1&&Gl(M)},blockedBoundary:Y,blockedSegment:de,abortSet:We,legacyContext:He,context:ut,treeContext:Mt};return We.add(Zt),Zt}function vn(M,H,Y,de,We,He){return{status:0,id:-1,index:H,parentFlushed:!1,chunks:[],children:[],formatContext:de,boundary:Y,lastPushedText:We,textEmbedded:He}}function Ns(M,H){if(M=M.onError(H),M!=null&&typeof M!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof M+'" instead');return M}function Jn(M,H){var Y=M.onShellError;Y(H),Y=M.onFatalError,Y(H),M.destination!==null?(M.status=2,p(M.destination,H)):(M.status=1,M.fatalError=H)}function Ul(M,H,Y,de,We){for(so={},ao=H,O=0,M=Y(de,We);Fr;)Fr=!1,O=0,Ce+=1,zr=null,M=Y(de,We);return _r(),M}function al(M,H,Y,de){var We=Y.render(),He=de.childContextTypes;if(He!=null){var ut=H.legacyContext;if(typeof Y.getChildContext!="function")de=ut;else{Y=Y.getChildContext();for(var Mt in Y)if(!(Mt in He))throw Error(e(108,Et(de)||"Unknown",Mt));de=kn({},ut,Y)}H.legacyContext=de,Qn(M,H,We),H.legacyContext=ut}else Qn(M,H,We)}function ni(M,H){if(M&&M.defaultProps){H=kn({},H),M=M.defaultProps;for(var Y in M)H[Y]===void 0&&(H[Y]=M[Y]);return H}return H}function ji(M,H,Y,de,We){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){We=Gt(Y,H.legacyContext);var He=Y.contextType;He=new Y(de,typeof He=="object"&&He!==null?He._currentValue:We),dn(He,Y,de,We),al(M,H,He,Y)}else{He=Gt(Y,H.legacyContext),We=Ul(M,H,Y,de,He);var ut=O!==0;if(typeof We=="object"&&We!==null&&typeof We.render=="function"&&We.$$typeof===void 0)dn(We,Y,de,He),al(M,H,We,Y);else if(ut){de=H.treeContext,H.treeContext=Kn(de,1,0);try{Qn(M,H,We)}finally{H.treeContext=de}}else Qn(M,H,We)}else if(typeof Y=="string"){switch(We=H.blockedSegment,He=Ne(We.chunks,Y,de,M.responseState,We.formatContext),We.lastPushedText=!1,ut=We.formatContext,We.formatContext=ie(ut,Y,de),Po(M,H,He),We.formatContext=ut,Y){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:We.chunks.push(Xe,d(Y),vt)}We.lastPushedText=!1}else{switch(Y){case qe:case ce:case Oo:case zn:case Do:Qn(M,H,de.children);return;case An:Qn(M,H,de.children);return;case X:throw Error(e(343));case mn:e:{Y=H.blockedBoundary,We=H.blockedSegment,He=de.fallback,de=de.children,ut=new Set;var Mt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ut,errorDigest:null},Zt=vn(M,We.chunks.length,Mt,We.formatContext,!1,!1);We.children.push(Zt),We.lastPushedText=!1;var Sr=vn(M,0,null,We.formatContext,!1,!1);Sr.parentFlushed=!0,H.blockedBoundary=Mt,H.blockedSegment=Sr;try{if(Po(M,H,de),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(he),Sr.status=1,as(Mt,Sr),Mt.pendingTasks===0)break e}catch(pr){Sr.status=4,Mt.forceClientRender=!0,Mt.errorDigest=Ns(M,pr)}finally{H.blockedBoundary=Y,H.blockedSegment=We}H=ri(M,He,Y,Zt,ut,H.legacyContext,H.context,H.treeContext),M.pingedTasks.push(H)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case oo:if(de=Ul(M,H,Y.render,de,We),O!==0){Y=H.treeContext,H.treeContext=Kn(Y,1,0);try{Qn(M,H,de)}finally{H.treeContext=Y}}else Qn(M,H,de);return;case k:Y=Y.type,de=ni(Y,de),ji(M,H,Y,de,We);return;case Fn:if(We=de.children,Y=Y._context,de=de.value,He=Y._currentValue,Y._currentValue=de,ut=Vt,Vt=de={parent:ut,depth:ut===null?0:ut.depth+1,context:Y,parentValue:He,value:de},H.context=de,Qn(M,H,We),M=Vt,M===null)throw Error(e(403));de=M.parentValue,M.context._currentValue=de===Be?M.context._defaultValue:de,M=Vt=M.parent,H.context=M;return;case Cn:de=de.children,de=de(Y._currentValue),Qn(M,H,de);return;case $:We=Y._init,Y=We(Y._payload),de=ni(Y,de),ji(M,H,Y,de,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function Qn(M,H,Y){if(H.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Bn:ji(M,H,Y.type,Y.props,Y.ref);return;case _o:throw Error(e(257));case $:var de=Y._init;Y=de(Y._payload),Qn(M,H,Y);return}if(pe(Y)){ln(M,H,Y);return}if(Y===null||typeof Y!="object"?de=null:(de=tt&&Y[tt]||Y["@@iterator"],de=typeof de=="function"?de:null),de&&(de=de.call(Y))){if(Y=de.next(),!Y.done){var We=[];do We.push(Y.value),Y=de.next();while(!Y.done);ln(M,H,We)}return}throw M=Object.prototype.toString.call(Y),Error(e(31,M==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":M))}typeof Y=="string"?(de=H.blockedSegment,de.lastPushedText=Se(H.blockedSegment.chunks,Y,M.responseState,de.lastPushedText)):typeof Y=="number"&&(de=H.blockedSegment,de.lastPushedText=Se(H.blockedSegment.chunks,""+Y,M.responseState,de.lastPushedText))}function ln(M,H,Y){for(var de=Y.length,We=0;We<de;We++){var He=H.treeContext;H.treeContext=Kn(He,de,We);try{Po(M,H,Y[We])}finally{H.treeContext=He}}}function Po(M,H,Y){var de=H.blockedSegment.formatContext,We=H.legacyContext,He=H.context;try{return Qn(M,H,Y)}catch(Zt){if(_r(),typeof Zt=="object"&&Zt!==null&&typeof Zt.then=="function"){Y=Zt;var ut=H.blockedSegment,Mt=vn(M,ut.chunks.length,null,ut.formatContext,ut.lastPushedText,!0);ut.children.push(Mt),ut.lastPushedText=!1,M=ri(M,H.node,H.blockedBoundary,Mt,H.abortSet,H.legacyContext,H.context,H.treeContext).ping,Y.then(M,M),H.blockedSegment.formatContext=de,H.legacyContext=We,H.context=He,Zn(He)}else throw H.blockedSegment.formatContext=de,H.legacyContext=We,H.context=He,Zn(He),Zt}}function ll(M){var H=M.blockedBoundary;M=M.blockedSegment,M.status=3,Vl(this,H,M)}function Wl(M,H,Y){var de=M.blockedBoundary;M.blockedSegment.status=3,de===null?(H.allPendingTasks--,H.status!==2&&(H.status=2,H.destination!==null&&H.destination.close())):(de.pendingTasks--,de.forceClientRender||(de.forceClientRender=!0,M=Y===void 0?Error(e(432)):Y,de.errorDigest=H.onError(M),de.parentFlushed&&H.clientRenderedBoundaries.push(de)),de.fallbackAbortableTasks.forEach(function(We){return Wl(We,H,Y)}),de.fallbackAbortableTasks.clear(),H.allPendingTasks--,H.allPendingTasks===0&&(de=H.onAllReady,de()))}function as(M,H){if(H.chunks.length===0&&H.children.length===1&&H.children[0].boundary===null){var Y=H.children[0];Y.id=H.id,Y.parentFlushed=!0,Y.status===1&&as(M,Y)}else M.completedSegments.push(H)}function Vl(M,H,Y){if(H===null){if(Y.parentFlushed){if(M.completedRootSegment!==null)throw Error(e(389));M.completedRootSegment=Y}M.pendingRootTasks--,M.pendingRootTasks===0&&(M.onShellError=Xn,H=M.onShellReady,H())}else H.pendingTasks--,H.forceClientRender||(H.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&as(H,Y),H.parentFlushed&&M.completedBoundaries.push(H),H.fallbackAbortableTasks.forEach(ll,M),H.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(as(H,Y),H.completedSegments.length===1&&H.parentFlushed&&M.partialBoundaries.push(H)));M.allPendingTasks--,M.allPendingTasks===0&&(M=M.onAllReady,M())}function Gl(M){if(M.status!==2){var H=Vt,Y=po.current;po.current=Vr;var de=hn;hn=M.responseState;try{var We=M.pingedTasks,He;for(He=0;He<We.length;He++){var ut=We[He],Mt=M,Zt=ut.blockedSegment;if(Zt.status===0){Zn(ut.context);try{Qn(Mt,ut,ut.node),Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push(he),ut.abortSet.delete(ut),Zt.status=1,Vl(Mt,ut.blockedBoundary,Zt)}catch(Fo){if(_r(),typeof Fo=="object"&&Fo!==null&&typeof Fo.then=="function"){var Sr=ut.ping;Fo.then(Sr,Sr)}else{ut.abortSet.delete(ut),Zt.status=4;var pr=ut.blockedBoundary,on=Fo,lo=Ns(Mt,on);if(pr===null?Jn(Mt,on):(pr.pendingTasks--,pr.forceClientRender||(pr.forceClientRender=!0,pr.errorDigest=lo,pr.parentFlushed&&Mt.clientRenderedBoundaries.push(pr))),Mt.allPendingTasks--,Mt.allPendingTasks===0){var Bo=Mt.onAllReady;Bo()}}}finally{}}}We.splice(0,He),M.destination!==null&&Ca(M,M.destination)}catch(Fo){Ns(M,Fo),Jn(M,Fo)}finally{hn=de,po.current=Y,Y===Vr&&Zn(H)}}}function wa(M,H,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var de=Y.id=M.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,M=M.responseState,o(H,Nt),o(H,M.placeholderPrefix),M=d(de.toString(16)),o(H,M),i(H,xt);case 1:Y.status=2;var We=!0;de=Y.chunks;var He=0;Y=Y.children;for(var ut=0;ut<Y.length;ut++){for(We=Y[ut];He<We.index;He++)o(H,de[He]);We=Ps(M,H,We)}for(;He<de.length-1;He++)o(H,de[He]);return He<de.length&&(We=i(H,de[He])),We;default:throw Error(e(390))}}function Ps(M,H,Y){var de=Y.boundary;if(de===null)return wa(M,H,Y);if(de.parentFlushed=!0,de.forceClientRender)de=de.errorDigest,i(H,fr),o(H,cr),de&&(o(H,le),o(H,d(j(de))),o(H,Te)),i(H,st),wa(M,H,Y);else if(0<de.pendingTasks){de.rootSegmentID=M.nextSegmentId++,0<de.completedSegments.length&&M.partialBoundaries.push(de);var We=M.responseState,He=We.nextSuspenseID++;We=h(We.boundaryPrefix+He.toString(16)),de=de.id=We,yt(H,M.responseState,de),wa(M,H,Y)}else if(de.byteSize>M.progressiveChunkSize)de.rootSegmentID=M.nextSegmentId++,M.completedBoundaries.push(de),yt(H,M.responseState,de.id),wa(M,H,Y);else{if(i(H,Lt),Y=de.completedSegments,Y.length!==1)throw Error(e(391));Ps(M,H,Y[0])}return i(H,hr)}function Bs(M,H,Y){return jt(H,M.responseState,Y.formatContext,Y.id),Ps(M,H,Y),Dt(H,Y.formatContext)}function zi(M,H,Y){for(var de=Y.completedSegments,We=0;We<de.length;We++)Yl(M,H,Y,de[We]);if(de.length=0,M=M.responseState,de=Y.id,Y=Y.rootSegmentID,o(H,M.startInlineScript),M.sentCompleteBoundaryFunction?o(H,wt):(M.sentCompleteBoundaryFunction=!0,o(H,ot)),de===null)throw Error(e(395));return Y=d(Y.toString(16)),o(H,de),o(H,yr),o(H,M.segmentPrefix),o(H,Y),i(H,Br)}function Yl(M,H,Y,de){if(de.status===2)return!0;var We=de.id;if(We===-1){if((de.id=Y.rootSegmentID)===-1)throw Error(e(392));return Bs(M,H,de)}return Bs(M,H,de),M=M.responseState,o(H,M.startInlineScript),M.sentCompleteSegmentFunction?o(H,Jt):(M.sentCompleteSegmentFunction=!0,o(H,er)),o(H,M.segmentPrefix),We=d(We.toString(16)),o(H,We),o(H,kt),o(H,M.placeholderPrefix),o(H,We),i(H,xe)}function Ca(M,H){t=new Uint8Array(512),n=0;try{var Y=M.completedRootSegment;if(Y!==null&&M.pendingRootTasks===0){Ps(M,H,Y),M.completedRootSegment=null;var de=M.responseState.bootstrapChunks;for(Y=0;Y<de.length-1;Y++)o(H,de[Y]);Y<de.length&&i(H,de[Y])}var We=M.clientRenderedBoundaries,He;for(He=0;He<We.length;He++){var ut=We[He];de=H;var Mt=M.responseState,Zt=ut.id,Sr=ut.errorDigest,pr=ut.errorMessage,on=ut.errorComponentStack;if(o(de,Mt.startInlineScript),Mt.sentClientRenderFunction?o(de,br):(Mt.sentClientRenderFunction=!0,o(de,lr)),Zt===null)throw Error(e(395));o(de,Zt),o(de,tn),(Sr||pr||on)&&(o(de,Pn),o(de,d(rn(Sr||"")))),(pr||on)&&(o(de,Pn),o(de,d(rn(pr||"")))),on&&(o(de,Pn),o(de,d(rn(on)))),i(de,sn)}We.splice(0,He);var lo=M.completedBoundaries;for(He=0;He<lo.length;He++)zi(M,H,lo[He]);lo.splice(0,He),a(H),t=new Uint8Array(512),n=0;var Bo=M.partialBoundaries;for(He=0;He<Bo.length;He++){var Fo=Bo[He];e:{We=M,ut=H;var Sa=Fo.completedSegments;for(Mt=0;Mt<Sa.length;Mt++)if(!Yl(We,ut,Fo,Sa[Mt])){Mt++,Sa.splice(0,Mt);var Zl=!1;break e}Sa.splice(0,Mt),Zl=!0}if(!Zl){M.destination=null,He++,Bo.splice(0,He);return}}Bo.splice(0,He);var Fs=M.completedBoundaries;for(He=0;He<Fs.length;He++)zi(M,H,Fs[He]);Fs.splice(0,He)}finally{a(H),M.allPendingTasks===0&&M.pingedTasks.length===0&&M.clientRenderedBoundaries.length===0&&M.completedBoundaries.length===0&&H.close()}}function cl(M,H){try{var Y=M.abortableTasks;Y.forEach(function(de){return Wl(de,M,H)}),Y.clear(),M.destination!==null&&Ca(M,M.destination)}catch(de){Ns(M,de),Jn(M,de)}}return sp.renderToReadableStream=function(M,H){return new Promise(function(Y,de){var We,He,ut=new Promise(function(pr,on){He=pr,We=on}),Mt=Fi(M,ae(H?H.identifierPrefix:void 0,H?H.nonce:void 0,H?H.bootstrapScriptContent:void 0,H?H.bootstrapScripts:void 0,H?H.bootstrapModules:void 0),re(H?H.namespaceURI:void 0),H?H.progressiveChunkSize:void 0,H?H.onError:void 0,He,function(){var pr=new ReadableStream({type:"bytes",pull:function(on){if(Mt.status===1)Mt.status=2,p(on,Mt.fatalError);else if(Mt.status!==2&&Mt.destination===null){Mt.destination=on;try{Ca(Mt,on)}catch(lo){Ns(Mt,lo),Jn(Mt,lo)}}},cancel:function(){cl(Mt)}},{highWaterMark:0});pr.allReady=ut,Y(pr)},function(pr){ut.catch(function(){}),de(pr)},We);if(H&&H.signal){var Zt=H.signal,Sr=function(){cl(Mt,Zt.reason),Zt.removeEventListener("abort",Sr)};Zt.addEventListener("abort",Sr)}Gl(Mt)})},sp.version="18.3.1",sp}var Ou={};/**
|
83
|
+
`&&M.push(It),He;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":M.push(ft(H));for(var Bo in Y)if(m.call(Y,Bo)&&(He=Y[Bo],He!=null))switch(Bo){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,H));default:$e(M,de,Bo,He)}return M.push(Qe),null;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 Ct(M,Y,H,de);case"html":return We.insertionMode===0&&M.push(gt),Ct(M,Y,H,de);default:if(H.indexOf("-")===-1&&typeof Y.is!="string")return Ct(M,Y,H,de);M.push(ft(H)),ut=He=null;for(Sr in Y)if(m.call(Y,Sr)&&(Mt=Y[Sr],Mt!=null))switch(Sr){case"children":He=Mt;break;case"dangerouslySetInnerHTML":ut=Mt;break;case"style":De(M,de,Mt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Sr)&&typeof Mt!="function"&&typeof Mt!="symbol"&&M.push(Oe,d(Sr),we,d(j(Mt)),_e)}return M.push(Fe),Ue(M,ut,He),He}}var Xe=h("</"),vt=h(">"),Nt=h('<template id="'),xt=h('"></template>'),Lt=h("<!--$-->"),Qt=h('<!--$?--><template id="'),Ut=h('"></template>'),fr=h("<!--$!-->"),hr=h("<!--/$-->"),cr=h("<template"),Te=h('"'),le=h(' data-dgst="');h(' data-msg="'),h(' data-stck="');var st=h("></template>");function yt(M,H,Y){if(o(M,Qt),Y===null)throw Error(e(395));return o(M,Y),i(M,Ut)}var nt=h('<div hidden id="'),pt=h('">'),ht=h("</div>"),Ft=h('<svg aria-hidden="true" style="display:none" id="'),Ve=h('">'),at=h("</svg>"),lt=h('<math aria-hidden="true" style="display:none" id="'),_t=h('">'),Ot=h("</math>"),Bt=h('<table hidden id="'),Wt=h('">'),Yt=h("</table>"),ir=h('<table hidden><tbody id="'),zt=h('">'),xr=h("</tbody></table>"),jr=h('<table hidden><tr id="'),Ye=h('">'),ee=h("</tr></table>"),be=h('<table hidden><colgroup id="'),ze=h('">'),Tt=h("</colgroup></table>");function jt(M,H,Y,de){switch(Y.insertionMode){case 0:case 1:return o(M,nt),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,pt);case 2:return o(M,Ft),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,Ve);case 3:return o(M,lt),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,_t);case 4:return o(M,Bt),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,Wt);case 5:return o(M,ir),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,zt);case 6:return o(M,jr),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,Ye);case 7:return o(M,be),o(M,H.segmentPrefix),o(M,d(de.toString(16))),i(M,ze);default:throw Error(e(397))}}function Dt(M,H){switch(H.insertionMode){case 0:case 1:return i(M,ht);case 2:return i(M,at);case 3:return i(M,Ot);case 4:return i(M,Yt);case 5:return i(M,xr);case 6:return i(M,ee);case 7:return i(M,Tt);default:throw Error(e(397))}}var er=h('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Jt=h('$RS("'),kt=h('","'),xe=h('")<\/script>'),ot=h('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),wt=h('$RC("'),yr=h('","'),Br=h('")<\/script>'),lr=h('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),br=h('$RX("'),tn=h('"'),sn=h(")<\/script>"),Pn=h(","),Hr=/[<\u2028\u2029]/g;function rn(M){return JSON.stringify(M).replace(Hr,function(H){switch(H){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var kn=Object.assign,Bn=Symbol.for("react.element"),_o=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),Oo=Symbol.for("react.strict_mode"),zn=Symbol.for("react.profiler"),Fn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),oo=Symbol.for("react.forward_ref"),mn=Symbol.for("react.suspense"),An=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.scope"),ce=Symbol.for("react.debug_trace_mode"),qe=Symbol.for("react.legacy_hidden"),Be=Symbol.for("react.default_value"),tt=Symbol.iterator;function Et(M){if(M==null)return null;if(typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case Do:return"Fragment";case _o:return"Portal";case zn:return"Profiler";case Oo:return"StrictMode";case mn:return"Suspense";case An:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case Cn:return(M.displayName||"Context")+".Consumer";case Fn:return(M._context.displayName||"Context")+".Provider";case oo:var H=M.render;return M=M.displayName,M||(M=H.displayName||H.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case k:return H=M.displayName||null,H!==null?H:Et(M.type)||"Memo";case $:H=M._payload,M=M._init;try{return Et(M(H))}catch{}}return null}var Ht={};function Gt(M,H){if(M=M.contextTypes,!M)return Ht;var Y={},de;for(de in M)Y[de]=H[de];return Y}var Vt=null;function Rr(M,H){if(M!==H){M.context._currentValue=M.parentValue,M=M.parent;var Y=H.parent;if(M===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));Rr(M,Y)}H.context._currentValue=H.value}}function an(M){M.context._currentValue=M.parentValue,M=M.parent,M!==null&&an(M)}function In(M){var H=M.parent;H!==null&&In(H),M.context._currentValue=M.value}function Mn(M,H){if(M.context._currentValue=M.parentValue,M=M.parent,M===null)throw Error(e(402));M.depth===H.depth?Rr(M,H):Mn(M,H)}function ho(M,H){var Y=H.parent;if(Y===null)throw Error(e(402));M.depth===Y.depth?Rr(M,Y):ho(M,Y),H.context._currentValue=H.value}function Zn(M){var H=Vt;H!==M&&(H===null?In(M):M===null?an(H):H.depth===M.depth?Rr(H,M):H.depth>M.depth?Mn(H,M):ho(H,M),Vt=M)}var No={isMounted:function(){return!1},enqueueSetState:function(M,H){M=M._reactInternals,M.queue!==null&&M.queue.push(H)},enqueueReplaceState:function(M,H){M=M._reactInternals,M.replace=!0,M.queue=[H]},enqueueForceUpdate:function(){}};function dn(M,H,Y,de){var We=M.state!==void 0?M.state:null;M.updater=No,M.props=Y,M.state=We;var He={queue:[],replace:!1};M._reactInternals=He;var ut=H.contextType;if(M.context=typeof ut=="object"&&ut!==null?ut._currentValue:de,ut=H.getDerivedStateFromProps,typeof ut=="function"&&(ut=ut(Y,We),We=ut==null?We:kn({},We,ut),M.state=We),typeof H.getDerivedStateFromProps!="function"&&typeof M.getSnapshotBeforeUpdate!="function"&&(typeof M.UNSAFE_componentWillMount=="function"||typeof M.componentWillMount=="function"))if(H=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),H!==M.state&&No.enqueueReplaceState(M,M.state,null),He.queue!==null&&0<He.queue.length)if(H=He.queue,ut=He.replace,He.queue=null,He.replace=!1,ut&&H.length===1)M.state=H[0];else{for(He=ut?H[0]:M.state,We=!0,ut=ut?1:0;ut<H.length;ut++){var Mt=H[ut];Mt=typeof Mt=="function"?Mt.call(M,He,Y,de):Mt,Mt!=null&&(We?(We=!1,He=kn({},He,Mt)):kn(He,Mt))}M.state=He}else He.queue=null}var Ao={id:1,overflow:""};function Kn(M,H,Y){var de=M.id;M=M.overflow;var We=32-io(de)-1;de&=~(1<<We),Y+=1;var He=32-io(H)+We;if(30<He){var ut=We-We%5;return He=(de&(1<<ut)-1).toString(32),de>>=ut,We-=ut,{id:1<<32-io(H)+We|Y<<We|de,overflow:He+M}}return{id:1<<He|Y<<We|de,overflow:M}}var io=Math.clz32?Math.clz32:bi,Pi=Math.log,yi=Math.LN2;function bi(M){return M>>>=0,M===0?32:31-(Pi(M)/yi|0)|0}function Hn(M,H){return M===H&&(M!==0||1/M===1/H)||M!==M&&H!==H}var Bi=typeof Object.is=="function"?Object.is:Hn,so=null,ao=null,ti=null,zr=null,Ir=!1,Fr=!1,O=0,J=null,Ce=0;function rt(){if(so===null)throw Error(e(321));return so}function or(){if(0<Ce)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return zr===null?ti===null?(Ir=!1,ti=zr=or()):(Ir=!0,zr=ti):zr.next===null?(Ir=!1,zr=zr.next=or()):(Ir=!0,zr=zr.next),zr}function _r(){ao=so=null,Fr=!1,ti=null,Ce=0,zr=J=null}function kr(M,H){return typeof H=="function"?H(M):H}function Cr(M,H,Y){if(so=rt(),zr=Kt(),Ir){var de=zr.queue;if(H=de.dispatch,J!==null&&(Y=J.get(de),Y!==void 0)){J.delete(de),de=zr.memoizedState;do de=M(de,Y.action),Y=Y.next;while(Y!==null);return zr.memoizedState=de,[de,H]}return[zr.memoizedState,H]}return M=M===kr?typeof H=="function"?H():H:Y!==void 0?Y(H):H,zr.memoizedState=M,M=zr.queue={last:null,dispatch:null},M=M.dispatch=fn.bind(null,so,M),[zr.memoizedState,M]}function Mr(M,H){if(so=rt(),zr=Kt(),H=H===void 0?null:H,zr!==null){var Y=zr.memoizedState;if(Y!==null&&H!==null){var de=Y[1];e:if(de===null)de=!1;else{for(var We=0;We<de.length&&We<H.length;We++)if(!Bi(H[We],de[We])){de=!1;break e}de=!0}if(de)return Y[0]}}return M=M(),zr.memoizedState=[M,H],M}function fn(M,H,Y){if(25<=Ce)throw Error(e(301));if(M===so)if(Fr=!0,M={action:Y,next:null},J===null&&(J=new Map),Y=J.get(H),Y===void 0)J.set(H,M);else{for(H=Y;H.next!==null;)H=H.next;H.next=M}}function $n(){throw Error(e(394))}function nn(){}var Vr={readContext:function(M){return M._currentValue},useContext:function(M){return rt(),M._currentValue},useMemo:Mr,useReducer:Cr,useRef:function(M){so=rt(),zr=Kt();var H=zr.memoizedState;return H===null?(M={current:M},zr.memoizedState=M):H},useState:function(M){return Cr(kr,M)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(M,H){return Mr(function(){return M},H)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(M){return rt(),M},useTransition:function(){return rt(),[!1,$n]},useId:function(){var M=ao.treeContext,H=M.overflow;M=M.id,M=(M&~(1<<32-io(M)-1)).toString(32)+H;var Y=hn;if(Y===null)throw Error(e(404));return H=O++,M=":"+Y.idPrefix+"R"+M,0<H&&(M+="H"+H.toString(32)),M+":"},useMutableSource:function(M,H){return rt(),H(M._source)},useSyncExternalStore:function(M,H,Y){if(Y===void 0)throw Error(e(407));return Y()}},hn=null,po=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Eo(M){return console.error(M),null}function Xn(){}function Fi(M,H,Y,de,We,He,ut,Mt,Zt){var Sr=[],pr=new Set;return H={destination:null,responseState:H,progressiveChunkSize:de===void 0?12800:de,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:pr,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:We===void 0?Eo:We,onAllReady:He===void 0?Xn:He,onShellReady:ut===void 0?Xn:ut,onShellError:Mt===void 0?Xn:Mt,onFatalError:Zt===void 0?Xn:Zt},Y=vn(H,0,null,Y,!1,!1),Y.parentFlushed=!0,M=ri(H,M,null,Y,pr,Ht,null,Ao),Sr.push(M),H}function ri(M,H,Y,de,We,He,ut,Mt){M.allPendingTasks++,Y===null?M.pendingRootTasks++:Y.pendingTasks++;var Zt={node:H,ping:function(){var Sr=M.pingedTasks;Sr.push(Zt),Sr.length===1&&Gl(M)},blockedBoundary:Y,blockedSegment:de,abortSet:We,legacyContext:He,context:ut,treeContext:Mt};return We.add(Zt),Zt}function vn(M,H,Y,de,We,He){return{status:0,id:-1,index:H,parentFlushed:!1,chunks:[],children:[],formatContext:de,boundary:Y,lastPushedText:We,textEmbedded:He}}function Ns(M,H){if(M=M.onError(H),M!=null&&typeof M!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof M+'" instead');return M}function Jn(M,H){var Y=M.onShellError;Y(H),Y=M.onFatalError,Y(H),M.destination!==null?(M.status=2,p(M.destination,H)):(M.status=1,M.fatalError=H)}function Ul(M,H,Y,de,We){for(so={},ao=H,O=0,M=Y(de,We);Fr;)Fr=!1,O=0,Ce+=1,zr=null,M=Y(de,We);return _r(),M}function al(M,H,Y,de){var We=Y.render(),He=de.childContextTypes;if(He!=null){var ut=H.legacyContext;if(typeof Y.getChildContext!="function")de=ut;else{Y=Y.getChildContext();for(var Mt in Y)if(!(Mt in He))throw Error(e(108,Et(de)||"Unknown",Mt));de=kn({},ut,Y)}H.legacyContext=de,Qn(M,H,We),H.legacyContext=ut}else Qn(M,H,We)}function ni(M,H){if(M&&M.defaultProps){H=kn({},H),M=M.defaultProps;for(var Y in M)H[Y]===void 0&&(H[Y]=M[Y]);return H}return H}function ji(M,H,Y,de,We){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){We=Gt(Y,H.legacyContext);var He=Y.contextType;He=new Y(de,typeof He=="object"&&He!==null?He._currentValue:We),dn(He,Y,de,We),al(M,H,He,Y)}else{He=Gt(Y,H.legacyContext),We=Ul(M,H,Y,de,He);var ut=O!==0;if(typeof We=="object"&&We!==null&&typeof We.render=="function"&&We.$$typeof===void 0)dn(We,Y,de,He),al(M,H,We,Y);else if(ut){de=H.treeContext,H.treeContext=Kn(de,1,0);try{Qn(M,H,We)}finally{H.treeContext=de}}else Qn(M,H,We)}else if(typeof Y=="string"){switch(We=H.blockedSegment,He=Pe(We.chunks,Y,de,M.responseState,We.formatContext),We.lastPushedText=!1,ut=We.formatContext,We.formatContext=ie(ut,Y,de),Po(M,H,He),We.formatContext=ut,Y){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:We.chunks.push(Xe,d(Y),vt)}We.lastPushedText=!1}else{switch(Y){case qe:case ce:case Oo:case zn:case Do:Qn(M,H,de.children);return;case An:Qn(M,H,de.children);return;case X:throw Error(e(343));case mn:e:{Y=H.blockedBoundary,We=H.blockedSegment,He=de.fallback,de=de.children,ut=new Set;var Mt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:ut,errorDigest:null},Zt=vn(M,We.chunks.length,Mt,We.formatContext,!1,!1);We.children.push(Zt),We.lastPushedText=!1;var Sr=vn(M,0,null,We.formatContext,!1,!1);Sr.parentFlushed=!0,H.blockedBoundary=Mt,H.blockedSegment=Sr;try{if(Po(M,H,de),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(he),Sr.status=1,as(Mt,Sr),Mt.pendingTasks===0)break e}catch(pr){Sr.status=4,Mt.forceClientRender=!0,Mt.errorDigest=Ns(M,pr)}finally{H.blockedBoundary=Y,H.blockedSegment=We}H=ri(M,He,Y,Zt,ut,H.legacyContext,H.context,H.treeContext),M.pingedTasks.push(H)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case oo:if(de=Ul(M,H,Y.render,de,We),O!==0){Y=H.treeContext,H.treeContext=Kn(Y,1,0);try{Qn(M,H,de)}finally{H.treeContext=Y}}else Qn(M,H,de);return;case k:Y=Y.type,de=ni(Y,de),ji(M,H,Y,de,We);return;case Fn:if(We=de.children,Y=Y._context,de=de.value,He=Y._currentValue,Y._currentValue=de,ut=Vt,Vt=de={parent:ut,depth:ut===null?0:ut.depth+1,context:Y,parentValue:He,value:de},H.context=de,Qn(M,H,We),M=Vt,M===null)throw Error(e(403));de=M.parentValue,M.context._currentValue=de===Be?M.context._defaultValue:de,M=Vt=M.parent,H.context=M;return;case Cn:de=de.children,de=de(Y._currentValue),Qn(M,H,de);return;case $:We=Y._init,Y=We(Y._payload),de=ni(Y,de),ji(M,H,Y,de,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function Qn(M,H,Y){if(H.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Bn:ji(M,H,Y.type,Y.props,Y.ref);return;case _o:throw Error(e(257));case $:var de=Y._init;Y=de(Y._payload),Qn(M,H,Y);return}if(pe(Y)){ln(M,H,Y);return}if(Y===null||typeof Y!="object"?de=null:(de=tt&&Y[tt]||Y["@@iterator"],de=typeof de=="function"?de:null),de&&(de=de.call(Y))){if(Y=de.next(),!Y.done){var We=[];do We.push(Y.value),Y=de.next();while(!Y.done);ln(M,H,We)}return}throw M=Object.prototype.toString.call(Y),Error(e(31,M==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":M))}typeof Y=="string"?(de=H.blockedSegment,de.lastPushedText=Se(H.blockedSegment.chunks,Y,M.responseState,de.lastPushedText)):typeof Y=="number"&&(de=H.blockedSegment,de.lastPushedText=Se(H.blockedSegment.chunks,""+Y,M.responseState,de.lastPushedText))}function ln(M,H,Y){for(var de=Y.length,We=0;We<de;We++){var He=H.treeContext;H.treeContext=Kn(He,de,We);try{Po(M,H,Y[We])}finally{H.treeContext=He}}}function Po(M,H,Y){var de=H.blockedSegment.formatContext,We=H.legacyContext,He=H.context;try{return Qn(M,H,Y)}catch(Zt){if(_r(),typeof Zt=="object"&&Zt!==null&&typeof Zt.then=="function"){Y=Zt;var ut=H.blockedSegment,Mt=vn(M,ut.chunks.length,null,ut.formatContext,ut.lastPushedText,!0);ut.children.push(Mt),ut.lastPushedText=!1,M=ri(M,H.node,H.blockedBoundary,Mt,H.abortSet,H.legacyContext,H.context,H.treeContext).ping,Y.then(M,M),H.blockedSegment.formatContext=de,H.legacyContext=We,H.context=He,Zn(He)}else throw H.blockedSegment.formatContext=de,H.legacyContext=We,H.context=He,Zn(He),Zt}}function ll(M){var H=M.blockedBoundary;M=M.blockedSegment,M.status=3,Vl(this,H,M)}function Wl(M,H,Y){var de=M.blockedBoundary;M.blockedSegment.status=3,de===null?(H.allPendingTasks--,H.status!==2&&(H.status=2,H.destination!==null&&H.destination.close())):(de.pendingTasks--,de.forceClientRender||(de.forceClientRender=!0,M=Y===void 0?Error(e(432)):Y,de.errorDigest=H.onError(M),de.parentFlushed&&H.clientRenderedBoundaries.push(de)),de.fallbackAbortableTasks.forEach(function(We){return Wl(We,H,Y)}),de.fallbackAbortableTasks.clear(),H.allPendingTasks--,H.allPendingTasks===0&&(de=H.onAllReady,de()))}function as(M,H){if(H.chunks.length===0&&H.children.length===1&&H.children[0].boundary===null){var Y=H.children[0];Y.id=H.id,Y.parentFlushed=!0,Y.status===1&&as(M,Y)}else M.completedSegments.push(H)}function Vl(M,H,Y){if(H===null){if(Y.parentFlushed){if(M.completedRootSegment!==null)throw Error(e(389));M.completedRootSegment=Y}M.pendingRootTasks--,M.pendingRootTasks===0&&(M.onShellError=Xn,H=M.onShellReady,H())}else H.pendingTasks--,H.forceClientRender||(H.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&as(H,Y),H.parentFlushed&&M.completedBoundaries.push(H),H.fallbackAbortableTasks.forEach(ll,M),H.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(as(H,Y),H.completedSegments.length===1&&H.parentFlushed&&M.partialBoundaries.push(H)));M.allPendingTasks--,M.allPendingTasks===0&&(M=M.onAllReady,M())}function Gl(M){if(M.status!==2){var H=Vt,Y=po.current;po.current=Vr;var de=hn;hn=M.responseState;try{var We=M.pingedTasks,He;for(He=0;He<We.length;He++){var ut=We[He],Mt=M,Zt=ut.blockedSegment;if(Zt.status===0){Zn(ut.context);try{Qn(Mt,ut,ut.node),Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push(he),ut.abortSet.delete(ut),Zt.status=1,Vl(Mt,ut.blockedBoundary,Zt)}catch(Fo){if(_r(),typeof Fo=="object"&&Fo!==null&&typeof Fo.then=="function"){var Sr=ut.ping;Fo.then(Sr,Sr)}else{ut.abortSet.delete(ut),Zt.status=4;var pr=ut.blockedBoundary,on=Fo,lo=Ns(Mt,on);if(pr===null?Jn(Mt,on):(pr.pendingTasks--,pr.forceClientRender||(pr.forceClientRender=!0,pr.errorDigest=lo,pr.parentFlushed&&Mt.clientRenderedBoundaries.push(pr))),Mt.allPendingTasks--,Mt.allPendingTasks===0){var Bo=Mt.onAllReady;Bo()}}}finally{}}}We.splice(0,He),M.destination!==null&&Ca(M,M.destination)}catch(Fo){Ns(M,Fo),Jn(M,Fo)}finally{hn=de,po.current=Y,Y===Vr&&Zn(H)}}}function wa(M,H,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var de=Y.id=M.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,M=M.responseState,o(H,Nt),o(H,M.placeholderPrefix),M=d(de.toString(16)),o(H,M),i(H,xt);case 1:Y.status=2;var We=!0;de=Y.chunks;var He=0;Y=Y.children;for(var ut=0;ut<Y.length;ut++){for(We=Y[ut];He<We.index;He++)o(H,de[He]);We=Ps(M,H,We)}for(;He<de.length-1;He++)o(H,de[He]);return He<de.length&&(We=i(H,de[He])),We;default:throw Error(e(390))}}function Ps(M,H,Y){var de=Y.boundary;if(de===null)return wa(M,H,Y);if(de.parentFlushed=!0,de.forceClientRender)de=de.errorDigest,i(H,fr),o(H,cr),de&&(o(H,le),o(H,d(j(de))),o(H,Te)),i(H,st),wa(M,H,Y);else if(0<de.pendingTasks){de.rootSegmentID=M.nextSegmentId++,0<de.completedSegments.length&&M.partialBoundaries.push(de);var We=M.responseState,He=We.nextSuspenseID++;We=h(We.boundaryPrefix+He.toString(16)),de=de.id=We,yt(H,M.responseState,de),wa(M,H,Y)}else if(de.byteSize>M.progressiveChunkSize)de.rootSegmentID=M.nextSegmentId++,M.completedBoundaries.push(de),yt(H,M.responseState,de.id),wa(M,H,Y);else{if(i(H,Lt),Y=de.completedSegments,Y.length!==1)throw Error(e(391));Ps(M,H,Y[0])}return i(H,hr)}function Bs(M,H,Y){return jt(H,M.responseState,Y.formatContext,Y.id),Ps(M,H,Y),Dt(H,Y.formatContext)}function zi(M,H,Y){for(var de=Y.completedSegments,We=0;We<de.length;We++)Yl(M,H,Y,de[We]);if(de.length=0,M=M.responseState,de=Y.id,Y=Y.rootSegmentID,o(H,M.startInlineScript),M.sentCompleteBoundaryFunction?o(H,wt):(M.sentCompleteBoundaryFunction=!0,o(H,ot)),de===null)throw Error(e(395));return Y=d(Y.toString(16)),o(H,de),o(H,yr),o(H,M.segmentPrefix),o(H,Y),i(H,Br)}function Yl(M,H,Y,de){if(de.status===2)return!0;var We=de.id;if(We===-1){if((de.id=Y.rootSegmentID)===-1)throw Error(e(392));return Bs(M,H,de)}return Bs(M,H,de),M=M.responseState,o(H,M.startInlineScript),M.sentCompleteSegmentFunction?o(H,Jt):(M.sentCompleteSegmentFunction=!0,o(H,er)),o(H,M.segmentPrefix),We=d(We.toString(16)),o(H,We),o(H,kt),o(H,M.placeholderPrefix),o(H,We),i(H,xe)}function Ca(M,H){t=new Uint8Array(512),n=0;try{var Y=M.completedRootSegment;if(Y!==null&&M.pendingRootTasks===0){Ps(M,H,Y),M.completedRootSegment=null;var de=M.responseState.bootstrapChunks;for(Y=0;Y<de.length-1;Y++)o(H,de[Y]);Y<de.length&&i(H,de[Y])}var We=M.clientRenderedBoundaries,He;for(He=0;He<We.length;He++){var ut=We[He];de=H;var Mt=M.responseState,Zt=ut.id,Sr=ut.errorDigest,pr=ut.errorMessage,on=ut.errorComponentStack;if(o(de,Mt.startInlineScript),Mt.sentClientRenderFunction?o(de,br):(Mt.sentClientRenderFunction=!0,o(de,lr)),Zt===null)throw Error(e(395));o(de,Zt),o(de,tn),(Sr||pr||on)&&(o(de,Pn),o(de,d(rn(Sr||"")))),(pr||on)&&(o(de,Pn),o(de,d(rn(pr||"")))),on&&(o(de,Pn),o(de,d(rn(on)))),i(de,sn)}We.splice(0,He);var lo=M.completedBoundaries;for(He=0;He<lo.length;He++)zi(M,H,lo[He]);lo.splice(0,He),a(H),t=new Uint8Array(512),n=0;var Bo=M.partialBoundaries;for(He=0;He<Bo.length;He++){var Fo=Bo[He];e:{We=M,ut=H;var Sa=Fo.completedSegments;for(Mt=0;Mt<Sa.length;Mt++)if(!Yl(We,ut,Fo,Sa[Mt])){Mt++,Sa.splice(0,Mt);var Zl=!1;break e}Sa.splice(0,Mt),Zl=!0}if(!Zl){M.destination=null,He++,Bo.splice(0,He);return}}Bo.splice(0,He);var Fs=M.completedBoundaries;for(He=0;He<Fs.length;He++)zi(M,H,Fs[He]);Fs.splice(0,He)}finally{a(H),M.allPendingTasks===0&&M.pingedTasks.length===0&&M.clientRenderedBoundaries.length===0&&M.completedBoundaries.length===0&&H.close()}}function cl(M,H){try{var Y=M.abortableTasks;Y.forEach(function(de){return Wl(de,M,H)}),Y.clear(),M.destination!==null&&Ca(M,M.destination)}catch(de){Ns(M,de),Jn(M,de)}}return sp.renderToReadableStream=function(M,H){return new Promise(function(Y,de){var We,He,ut=new Promise(function(pr,on){He=pr,We=on}),Mt=Fi(M,ae(H?H.identifierPrefix:void 0,H?H.nonce:void 0,H?H.bootstrapScriptContent:void 0,H?H.bootstrapScripts:void 0,H?H.bootstrapModules:void 0),re(H?H.namespaceURI:void 0),H?H.progressiveChunkSize:void 0,H?H.onError:void 0,He,function(){var pr=new ReadableStream({type:"bytes",pull:function(on){if(Mt.status===1)Mt.status=2,p(on,Mt.fatalError);else if(Mt.status!==2&&Mt.destination===null){Mt.destination=on;try{Ca(Mt,on)}catch(lo){Ns(Mt,lo),Jn(Mt,lo)}}},cancel:function(){cl(Mt)}},{highWaterMark:0});pr.allReady=ut,Y(pr)},function(pr){ut.catch(function(){}),de(pr)},We);if(H&&H.signal){var Zt=H.signal,Sr=function(){cl(Mt,Zt.reason),Zt.removeEventListener("abort",Sr)};Zt.addEventListener("abort",Sr)}Gl(Mt)})},sp.version="18.3.1",sp}var Ou={};/**
|
84
84
|
* @license React
|
85
85
|
* react-dom-server-legacy.browser.development.js
|
86
86
|
*
|
@@ -88,7 +88,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
88
88
|
*
|
89
89
|
* This source code is licensed under the MIT license found in the
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
91
|
-
*/var g0;function E4(){return g0||(g0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("warn",l,y)}}function o(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("error",l,y)}}function i(l,f,y){{var E=t.ReactDebugCurrentFrame,N=E.getStackAddendum();N!==""&&(f+="%s",y=y.concat([N]));var q=y.map(function(K){return String(K)});q.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,q)}}function a(l){l()}function c(l){}function d(l,f){h(l,f)}function h(l,f){return l.push(f)}function p(l){}function m(l){l.push(null)}function g(l){return l}function v(l){return l}function w(l,f){l.destroy(f)}function T(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,y=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return y}}function _(l){try{return A(l),!1}catch{return!0}}function A(l){return""+l}function R(l,f){if(_(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function D(l,f){if(_(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function I(l){if(_(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",T(l)),A(l)}var B=Object.prototype.hasOwnProperty,F=0,j=1,z=2,G=3,pe=4,P=5,U=6,V=":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",Q=V+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",se=new RegExp("^["+V+"]["+Q+"]*$"),ue={},oe={};function ae(l){return B.call(oe,l)?!0:B.call(ue,l)?!1:se.test(l)?(oe[l]=!0,!0):(ue[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function ge(l,f,y,E){if(y!==null&&y.type===F)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(y!==null)return!y.acceptsBooleans;var N=l.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function re(l){return he.hasOwnProperty(l)?he[l]:null}function ie(l,f,y,E,N,q,K){this.acceptsBooleans=f===z||f===G||f===pe,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=y,this.propertyName=l,this.type=f,this.sanitizeURL=q,this.removeEmptyString=K}var he={},Se=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Se.forEach(function(l){he[l]=new ie(l,F,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],y=l[1];he[f]=new ie(f,j,!1,y,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){he[l]=new ie(l,z,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){he[l]=new ie(l,z,!1,l,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(l){he[l]=new ie(l,G,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){he[l]=new ie(l,G,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){he[l]=new ie(l,pe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){he[l]=new ie(l,U,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){he[l]=new ie(l,P,!1,l.toLowerCase(),null,!1,!1)});var Le=/[\-\:]([a-z])/g,ne=function(l){return l[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(l){var f=l.replace(Le,ne);he[f]=new ie(f,j,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(Le,ne);he[f]=new ie(f,j,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(Le,ne);he[f]=new ie(f,j,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){he[l]=new ie(l,j,!1,l.toLowerCase(),null,!1,!1)});var ve="xlinkHref";he[ve]=new ie("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){he[l]=new ie(l,j,!1,l.toLowerCase(),null,!0,!0)});var ke={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 Pe(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var De=["Webkit","ms","Moz","O"];Object.keys(ke).forEach(function(l){De.forEach(function(f){ke[Pe(f,l)]=ke[l]})});var we={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _e(l,f){we[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||o("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`."),f.onChange||f.readOnly||f.disabled||f.checked==null||o("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 Ae(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){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 $e={"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},Fe={},Qe=new RegExp("^(aria)-["+Q+"]*$"),Ue=new RegExp("^(aria)[A-Z]["+Q+"]*$");function et(l,f){{if(B.call(Fe,f)&&Fe[f])return!0;if(Ue.test(f)){var y="aria-"+f.slice(4).toLowerCase(),E=$e.hasOwnProperty(y)?y:null;if(E==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),Fe[f]=!0,!0;if(f!==E)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,E),Fe[f]=!0,!0}if(Qe.test(f)){var N=f.toLowerCase(),q=$e.hasOwnProperty(N)?N:null;if(q==null)return Fe[f]=!0,!1;if(f!==q)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,q),Fe[f]=!0,!0}}return!0}function ct(l,f){{var y=[];for(var E in f){var N=et(l,E);N||y.push(E)}var q=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l):y.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l)}}function Ct(l,f){Ae(l,f)||ct(l,f)}var It=!1;function Je(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!It&&(It=!0,l==="select"&&f.multiple?o("`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.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var Ke={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"},ft=function(){};{var gt={},Ne=/^on./,Xe=/^on[^A-Z]/,vt=new RegExp("^(aria)-["+Q+"]*$"),Nt=new RegExp("^(aria)[A-Z]["+Q+"]*$");ft=function(l,f,y,E){if(B.call(gt,f)&>[f])return!0;var N=f.toLowerCase();if(N==="onfocusin"||N==="onfocusout")return o("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."),gt[f]=!0,!0;if(E!=null){var q=E.registrationNameDependencies,K=E.possibleRegistrationNames;if(q.hasOwnProperty(f))return!0;var me=K.hasOwnProperty(N)?K[N]:null;if(me!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",f,me),gt[f]=!0,!0;if(Ne.test(f))return o("Unknown event handler property `%s`. It will be ignored.",f),gt[f]=!0,!0}else if(Ne.test(f))return Xe.test(f)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),gt[f]=!0,!0;if(vt.test(f)||Nt.test(f))return!0;if(N==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),gt[f]=!0,!0;if(N==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),gt[f]=!0,!0;if(N==="is"&&y!==null&&y!==void 0&&typeof y!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof y),gt[f]=!0,!0;if(typeof y=="number"&&isNaN(y))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),gt[f]=!0,!0;var je=re(f),dt=je!==null&&je.type===F;if(Ke.hasOwnProperty(N)){var At=Ke[N];if(At!==f)return o("Invalid DOM property `%s`. Did you mean `%s`?",f,At),gt[f]=!0,!0}else if(!dt&&f!==N)return o("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.",f,N),gt[f]=!0,!0;return typeof y=="boolean"&&ge(f,y,je)?(y?o('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()}.',y,f,f,y,f):o('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.',y,f,f,y,f,f,f),gt[f]=!0,!0):dt?!0:ge(f,y,je)?(gt[f]=!0,!1):((y==="false"||y==="true")&&je!==null&&je.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",y,f,y==="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".',f,y),gt[f]=!0),!0)}}var xt=function(l,f,y){{var E=[];for(var N in f){var q=ft(l,N,f[N],y);q||E.push(N)}var K=E.map(function(me){return"`"+me+"`"}).join(", ");E.length===1?o("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 ",K,l):E.length>1&&o("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 ",K,l)}};function Lt(l,f,y){Ae(l,f)||xt(l,f,y)}var Qt=function(){};{var Ut=/^(?:webkit|moz|o)[A-Z]/,fr=/^-ms-/,hr=/-(.)/g,cr=/;\s*$/,Te={},le={},st=!1,yt=!1,nt=function(l){return l.replace(hr,function(f,y){return y.toUpperCase()})},pt=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,nt(l.replace(fr,"ms-"))))},ht=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},Ft=function(l,f){le.hasOwnProperty(f)&&le[f]||(le[f]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(cr,"")))},Ve=function(l,f){st||(st=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},at=function(l,f){yt||(yt=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Qt=function(l,f){l.indexOf("-")>-1?pt(l):Ut.test(l)?ht(l):cr.test(f)&&Ft(l,f),typeof f=="number"&&(isNaN(f)?Ve(l,f):isFinite(f)||at(l,f))}}var lt=Qt,_t=/["'&<>]/;function Ot(l){I(l);var f=""+l,y=_t.exec(f);if(!y)return f;var E,N="",q,K=0;for(q=y.index;q<f.length;q++){switch(f.charCodeAt(q)){case 34:E=""";break;case 38:E="&";break;case 39:E="'";break;case 60:E="<";break;case 62:E=">";break;default:continue}K!==q&&(N+=f.substring(K,q)),K=q+1,N+=E}return K!==q?N+f.substring(K,q):N}function Bt(l){return typeof l=="boolean"||typeof l=="number"?""+l:Ot(l)}var Wt=/([A-Z])/g,Yt=/^ms-/;function ir(l){return l.replace(Wt,"-$1").toLowerCase().replace(Yt,"-ms-")}var zt=/^[\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,xr=!1;function jr(l){!xr&&zt.test(l)&&(xr=!0,o("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(l)))}var Ye=Array.isArray;function ee(l){return Ye(l)}var be="<script>";function ze(l,f,y,E,N){var q=l===void 0?"":l,K=be,me=[];return{bootstrapChunks:me,startInlineScript:K,placeholderPrefix:q+"P:",segmentPrefix:q+"S:",boundaryPrefix:q+"B:",idPrefix:q,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Tt=0,jt=1,Dt=2,er=3,Jt=4,kt=5,xe=6,ot=7;function wt(l,f){return{insertionMode:l,selectedValue:f}}function yr(l,f,y){switch(f){case"select":return wt(jt,y.value!=null?y.value:y.defaultValue);case"svg":return wt(Dt,null);case"math":return wt(er,null);case"foreignObject":return wt(jt,null);case"table":return wt(Jt,null);case"thead":case"tbody":case"tfoot":return wt(kt,null);case"colgroup":return wt(ot,null);case"tr":return wt(xe,null)}return l.insertionMode>=Jt||l.insertionMode===Tt?wt(jt,null):l}var Br=null;function lr(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function br(l,f,y){var E=l.idPrefix,N=":"+E+"R"+f;return y>0&&(N+="H"+y.toString(32)),N+":"}function tn(l){return Bt(l)}var sn="<!-- -->";function Pn(l,f,y,E){return f===""?E:(E&&l.push(sn),l.push(tn(f)),!0)}function Hr(l,f,y,E){y&&E&&l.push(sn)}var rn=new Map;function kn(l){var f=rn.get(l);if(f!==void 0)return f;var y=Bt(ir(l));return rn.set(l,y),y}var Bn=' style="',_o=":",Do=";";function Oo(l,f,y){if(typeof y!="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.");var E=!0;for(var N in y)if(B.call(y,N)){var q=y[N];if(!(q==null||typeof q=="boolean"||q==="")){var K=void 0,me=void 0,je=N.indexOf("--")===0;je?(K=Bt(N),D(q,N),me=Bt((""+q).trim())):(lt(N,q),K=kn(N),typeof q=="number"?q!==0&&!B.call(ke,N)?me=q+"px":me=""+q:(D(q,N),me=Bt((""+q).trim()))),E?(E=!1,l.push(Bn,K,_o,me)):l.push(Do,K,_o,me)}}E||l.push(Cn)}var zn=" ",Fn='="',Cn='"',oo='=""';function mn(l,f,y,E){switch(y){case"style":{Oo(l,f,E);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(y.length>2&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))){var N=re(y);if(N!==null){switch(typeof E){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}var q=N.attributeName,K=q;switch(N.type){case G:E&&l.push(zn,K,oo);return;case pe:E===!0?l.push(zn,K,oo):E===!1||l.push(zn,K,Fn,Bt(E),Cn);return;case P:isNaN(E)||l.push(zn,K,Fn,Bt(E),Cn);break;case U:!isNaN(E)&&E>=1&&l.push(zn,K,Fn,Bt(E),Cn);break;default:N.sanitizeURL&&(R(E,q),E=""+E,jr(E)),l.push(zn,K,Fn,Bt(E),Cn)}}else if(ae(y)){switch(typeof E){case"function":case"symbol":return;case"boolean":{var me=y.toLowerCase().slice(0,5);if(me!=="data-"&&me!=="aria-")return}}l.push(zn,y,Fn,Bt(E),Cn)}}}var An=">",k="/>";function $(l,f,y){if(f!=null){if(y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof f!="object"||!("__html"in f))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var E=f.__html;E!=null&&(I(E),l.push(""+E))}}var X=!1,ce=!1,qe=!1,Be=!1,tt=!1,Et=!1,Ht=!1;function Gt(l,f){{var y=l[f];if(y!=null){var E=ee(y);l.multiple&&!E?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&E&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function Vt(l,f,y){_e("select",f),Gt(f,"value"),Gt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!qe&&(o("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"),qe=!0),l.push(Hn("select"));var E=null,N=null;for(var q in f)if(B.call(f,q)){var K=f[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"defaultValue":case"value":break;default:mn(l,y,q,K);break}}return l.push(An),$(l,N,E),E}function Rr(l){var f="";return r.Children.forEach(l,function(y){y!=null&&(f+=y,!tt&&typeof y!="string"&&typeof y!="number"&&(tt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}var an=' selected=""';function In(l,f,y,E){var N=E.selectedValue;l.push(Hn("option"));var q=null,K=null,me=null,je=null;for(var dt in f)if(B.call(f,dt)){var At=f[dt];if(At==null)continue;switch(dt){case"children":q=At;break;case"selected":me=At,Ht||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ht=!0);break;case"dangerouslySetInnerHTML":je=At;break;case"value":K=At;default:mn(l,y,dt,At);break}}if(N!=null){var Pt;if(K!==null?(R(K,"value"),Pt=""+K):(je!==null&&(Et||(Et=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pt=Rr(q)),ee(N))for(var ur=0;ur<N.length;ur++){R(N[ur],"value");var Gr=""+N[ur];if(Gr===Pt){l.push(an);break}}else R(N,"select.value"),""+N===Pt&&l.push(an)}else me&&l.push(an);return l.push(An),$(l,je,q),q}function Mn(l,f,y){_e("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!ce&&(o("%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","A component",f.type),ce=!0),f.value!==void 0&&f.defaultValue!==void 0&&!X&&(o("%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","A component",f.type),X=!0),l.push(Hn("input"));var E=null,N=null,q=null,K=null;for(var me in f)if(B.call(f,me)){var je=f[me];if(je==null)continue;switch(me){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":K=je;break;case"defaultValue":N=je;break;case"checked":q=je;break;case"value":E=je;break;default:mn(l,y,me,je);break}}return q!==null?mn(l,y,"checked",q):K!==null&&mn(l,y,"checked",K),E!==null?mn(l,y,"value",E):N!==null&&mn(l,y,"value",N),l.push(k),null}function ho(l,f,y){_e("textarea",f),f.value!==void 0&&f.defaultValue!==void 0&&!Be&&(o("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"),Be=!0),l.push(Hn("textarea"));var E=null,N=null,q=null;for(var K in f)if(B.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":q=me;break;case"value":E=me;break;case"defaultValue":N=me;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:mn(l,y,K,me);break}}if(E===null&&N!==null&&(E=N),l.push(An),q!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),E!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ee(q)){if(q.length>1)throw new Error("<textarea> can only have at most one child.");I(q[0]),E=""+q[0]}I(q),E=""+q}return typeof E=="string"&&E[0]===`
|
91
|
+
*/var g0;function E4(){return g0||(g0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("warn",l,y)}}function o(l){{for(var f=arguments.length,y=new Array(f>1?f-1:0),E=1;E<f;E++)y[E-1]=arguments[E];i("error",l,y)}}function i(l,f,y){{var E=t.ReactDebugCurrentFrame,N=E.getStackAddendum();N!==""&&(f+="%s",y=y.concat([N]));var q=y.map(function(K){return String(K)});q.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,q)}}function a(l){l()}function c(l){}function d(l,f){h(l,f)}function h(l,f){return l.push(f)}function p(l){}function m(l){l.push(null)}function g(l){return l}function v(l){return l}function w(l,f){l.destroy(f)}function T(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,y=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return y}}function _(l){try{return A(l),!1}catch{return!0}}function A(l){return""+l}function R(l,f){if(_(l))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function D(l,f){if(_(l))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",f,T(l)),A(l)}function I(l){if(_(l))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",T(l)),A(l)}var B=Object.prototype.hasOwnProperty,F=0,j=1,z=2,G=3,pe=4,P=5,U=6,V=":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",Q=V+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",se=new RegExp("^["+V+"]["+Q+"]*$"),ue={},oe={};function ae(l){return B.call(oe,l)?!0:B.call(ue,l)?!1:se.test(l)?(oe[l]=!0,!0):(ue[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function ge(l,f,y,E){if(y!==null&&y.type===F)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(y!==null)return!y.acceptsBooleans;var N=l.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function re(l){return he.hasOwnProperty(l)?he[l]:null}function ie(l,f,y,E,N,q,K){this.acceptsBooleans=f===z||f===G||f===pe,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=y,this.propertyName=l,this.type=f,this.sanitizeURL=q,this.removeEmptyString=K}var he={},Se=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Se.forEach(function(l){he[l]=new ie(l,F,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],y=l[1];he[f]=new ie(f,j,!1,y,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){he[l]=new ie(l,z,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){he[l]=new ie(l,z,!1,l,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(l){he[l]=new ie(l,G,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){he[l]=new ie(l,G,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){he[l]=new ie(l,pe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){he[l]=new ie(l,U,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){he[l]=new ie(l,P,!1,l.toLowerCase(),null,!1,!1)});var Le=/[\-\:]([a-z])/g,ne=function(l){return l[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(l){var f=l.replace(Le,ne);he[f]=new ie(f,j,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(Le,ne);he[f]=new ie(f,j,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(Le,ne);he[f]=new ie(f,j,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){he[l]=new ie(l,j,!1,l.toLowerCase(),null,!1,!1)});var ve="xlinkHref";he[ve]=new ie("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){he[l]=new ie(l,j,!1,l.toLowerCase(),null,!0,!0)});var ke={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 De(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var Oe=["Webkit","ms","Moz","O"];Object.keys(ke).forEach(function(l){Oe.forEach(function(f){ke[De(f,l)]=ke[l]})});var we={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function _e(l,f){we[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||o("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`."),f.onChange||f.readOnly||f.disabled||f.checked==null||o("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 Ae(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){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 $e={"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},Fe={},Qe=new RegExp("^(aria)-["+Q+"]*$"),Ue=new RegExp("^(aria)[A-Z]["+Q+"]*$");function et(l,f){{if(B.call(Fe,f)&&Fe[f])return!0;if(Ue.test(f)){var y="aria-"+f.slice(4).toLowerCase(),E=$e.hasOwnProperty(y)?y:null;if(E==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),Fe[f]=!0,!0;if(f!==E)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,E),Fe[f]=!0,!0}if(Qe.test(f)){var N=f.toLowerCase(),q=$e.hasOwnProperty(N)?N:null;if(q==null)return Fe[f]=!0,!1;if(f!==q)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,q),Fe[f]=!0,!0}}return!0}function ct(l,f){{var y=[];for(var E in f){var N=et(l,E);N||y.push(E)}var q=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l):y.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l)}}function Ct(l,f){Ae(l,f)||ct(l,f)}var It=!1;function Je(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!It&&(It=!0,l==="select"&&f.multiple?o("`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.",l):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var Ke={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"},ft=function(){};{var gt={},Pe=/^on./,Xe=/^on[^A-Z]/,vt=new RegExp("^(aria)-["+Q+"]*$"),Nt=new RegExp("^(aria)[A-Z]["+Q+"]*$");ft=function(l,f,y,E){if(B.call(gt,f)&>[f])return!0;var N=f.toLowerCase();if(N==="onfocusin"||N==="onfocusout")return o("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."),gt[f]=!0,!0;if(E!=null){var q=E.registrationNameDependencies,K=E.possibleRegistrationNames;if(q.hasOwnProperty(f))return!0;var me=K.hasOwnProperty(N)?K[N]:null;if(me!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",f,me),gt[f]=!0,!0;if(Pe.test(f))return o("Unknown event handler property `%s`. It will be ignored.",f),gt[f]=!0,!0}else if(Pe.test(f))return Xe.test(f)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),gt[f]=!0,!0;if(vt.test(f)||Nt.test(f))return!0;if(N==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),gt[f]=!0,!0;if(N==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),gt[f]=!0,!0;if(N==="is"&&y!==null&&y!==void 0&&typeof y!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof y),gt[f]=!0,!0;if(typeof y=="number"&&isNaN(y))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),gt[f]=!0,!0;var je=re(f),dt=je!==null&&je.type===F;if(Ke.hasOwnProperty(N)){var At=Ke[N];if(At!==f)return o("Invalid DOM property `%s`. Did you mean `%s`?",f,At),gt[f]=!0,!0}else if(!dt&&f!==N)return o("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.",f,N),gt[f]=!0,!0;return typeof y=="boolean"&&ge(f,y,je)?(y?o('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()}.',y,f,f,y,f):o('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.',y,f,f,y,f,f,f),gt[f]=!0,!0):dt?!0:ge(f,y,je)?(gt[f]=!0,!1):((y==="false"||y==="true")&&je!==null&&je.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",y,f,y==="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".',f,y),gt[f]=!0),!0)}}var xt=function(l,f,y){{var E=[];for(var N in f){var q=ft(l,N,f[N],y);q||E.push(N)}var K=E.map(function(me){return"`"+me+"`"}).join(", ");E.length===1?o("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 ",K,l):E.length>1&&o("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 ",K,l)}};function Lt(l,f,y){Ae(l,f)||xt(l,f,y)}var Qt=function(){};{var Ut=/^(?:webkit|moz|o)[A-Z]/,fr=/^-ms-/,hr=/-(.)/g,cr=/;\s*$/,Te={},le={},st=!1,yt=!1,nt=function(l){return l.replace(hr,function(f,y){return y.toUpperCase()})},pt=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,nt(l.replace(fr,"ms-"))))},ht=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},Ft=function(l,f){le.hasOwnProperty(f)&&le[f]||(le[f]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(cr,"")))},Ve=function(l,f){st||(st=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},at=function(l,f){yt||(yt=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Qt=function(l,f){l.indexOf("-")>-1?pt(l):Ut.test(l)?ht(l):cr.test(f)&&Ft(l,f),typeof f=="number"&&(isNaN(f)?Ve(l,f):isFinite(f)||at(l,f))}}var lt=Qt,_t=/["'&<>]/;function Ot(l){I(l);var f=""+l,y=_t.exec(f);if(!y)return f;var E,N="",q,K=0;for(q=y.index;q<f.length;q++){switch(f.charCodeAt(q)){case 34:E=""";break;case 38:E="&";break;case 39:E="'";break;case 60:E="<";break;case 62:E=">";break;default:continue}K!==q&&(N+=f.substring(K,q)),K=q+1,N+=E}return K!==q?N+f.substring(K,q):N}function Bt(l){return typeof l=="boolean"||typeof l=="number"?""+l:Ot(l)}var Wt=/([A-Z])/g,Yt=/^ms-/;function ir(l){return l.replace(Wt,"-$1").toLowerCase().replace(Yt,"-ms-")}var zt=/^[\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,xr=!1;function jr(l){!xr&&zt.test(l)&&(xr=!0,o("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(l)))}var Ye=Array.isArray;function ee(l){return Ye(l)}var be="<script>";function ze(l,f,y,E,N){var q=l===void 0?"":l,K=be,me=[];return{bootstrapChunks:me,startInlineScript:K,placeholderPrefix:q+"P:",segmentPrefix:q+"S:",boundaryPrefix:q+"B:",idPrefix:q,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Tt=0,jt=1,Dt=2,er=3,Jt=4,kt=5,xe=6,ot=7;function wt(l,f){return{insertionMode:l,selectedValue:f}}function yr(l,f,y){switch(f){case"select":return wt(jt,y.value!=null?y.value:y.defaultValue);case"svg":return wt(Dt,null);case"math":return wt(er,null);case"foreignObject":return wt(jt,null);case"table":return wt(Jt,null);case"thead":case"tbody":case"tfoot":return wt(kt,null);case"colgroup":return wt(ot,null);case"tr":return wt(xe,null)}return l.insertionMode>=Jt||l.insertionMode===Tt?wt(jt,null):l}var Br=null;function lr(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function br(l,f,y){var E=l.idPrefix,N=":"+E+"R"+f;return y>0&&(N+="H"+y.toString(32)),N+":"}function tn(l){return Bt(l)}var sn="<!-- -->";function Pn(l,f,y,E){return f===""?E:(E&&l.push(sn),l.push(tn(f)),!0)}function Hr(l,f,y,E){y&&E&&l.push(sn)}var rn=new Map;function kn(l){var f=rn.get(l);if(f!==void 0)return f;var y=Bt(ir(l));return rn.set(l,y),y}var Bn=' style="',_o=":",Do=";";function Oo(l,f,y){if(typeof y!="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.");var E=!0;for(var N in y)if(B.call(y,N)){var q=y[N];if(!(q==null||typeof q=="boolean"||q==="")){var K=void 0,me=void 0,je=N.indexOf("--")===0;je?(K=Bt(N),D(q,N),me=Bt((""+q).trim())):(lt(N,q),K=kn(N),typeof q=="number"?q!==0&&!B.call(ke,N)?me=q+"px":me=""+q:(D(q,N),me=Bt((""+q).trim()))),E?(E=!1,l.push(Bn,K,_o,me)):l.push(Do,K,_o,me)}}E||l.push(Cn)}var zn=" ",Fn='="',Cn='"',oo='=""';function mn(l,f,y,E){switch(y){case"style":{Oo(l,f,E);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(y.length>2&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))){var N=re(y);if(N!==null){switch(typeof E){case"function":case"symbol":return;case"boolean":if(!N.acceptsBooleans)return}var q=N.attributeName,K=q;switch(N.type){case G:E&&l.push(zn,K,oo);return;case pe:E===!0?l.push(zn,K,oo):E===!1||l.push(zn,K,Fn,Bt(E),Cn);return;case P:isNaN(E)||l.push(zn,K,Fn,Bt(E),Cn);break;case U:!isNaN(E)&&E>=1&&l.push(zn,K,Fn,Bt(E),Cn);break;default:N.sanitizeURL&&(R(E,q),E=""+E,jr(E)),l.push(zn,K,Fn,Bt(E),Cn)}}else if(ae(y)){switch(typeof E){case"function":case"symbol":return;case"boolean":{var me=y.toLowerCase().slice(0,5);if(me!=="data-"&&me!=="aria-")return}}l.push(zn,y,Fn,Bt(E),Cn)}}}var An=">",k="/>";function $(l,f,y){if(f!=null){if(y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof f!="object"||!("__html"in f))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var E=f.__html;E!=null&&(I(E),l.push(""+E))}}var X=!1,ce=!1,qe=!1,Be=!1,tt=!1,Et=!1,Ht=!1;function Gt(l,f){{var y=l[f];if(y!=null){var E=ee(y);l.multiple&&!E?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&E&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function Vt(l,f,y){_e("select",f),Gt(f,"value"),Gt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!qe&&(o("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"),qe=!0),l.push(Hn("select"));var E=null,N=null;for(var q in f)if(B.call(f,q)){var K=f[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"defaultValue":case"value":break;default:mn(l,y,q,K);break}}return l.push(An),$(l,N,E),E}function Rr(l){var f="";return r.Children.forEach(l,function(y){y!=null&&(f+=y,!tt&&typeof y!="string"&&typeof y!="number"&&(tt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}var an=' selected=""';function In(l,f,y,E){var N=E.selectedValue;l.push(Hn("option"));var q=null,K=null,me=null,je=null;for(var dt in f)if(B.call(f,dt)){var At=f[dt];if(At==null)continue;switch(dt){case"children":q=At;break;case"selected":me=At,Ht||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ht=!0);break;case"dangerouslySetInnerHTML":je=At;break;case"value":K=At;default:mn(l,y,dt,At);break}}if(N!=null){var Pt;if(K!==null?(R(K,"value"),Pt=""+K):(je!==null&&(Et||(Et=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Pt=Rr(q)),ee(N))for(var ur=0;ur<N.length;ur++){R(N[ur],"value");var Gr=""+N[ur];if(Gr===Pt){l.push(an);break}}else R(N,"select.value"),""+N===Pt&&l.push(an)}else me&&l.push(an);return l.push(An),$(l,je,q),q}function Mn(l,f,y){_e("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!ce&&(o("%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","A component",f.type),ce=!0),f.value!==void 0&&f.defaultValue!==void 0&&!X&&(o("%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","A component",f.type),X=!0),l.push(Hn("input"));var E=null,N=null,q=null,K=null;for(var me in f)if(B.call(f,me)){var je=f[me];if(je==null)continue;switch(me){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":K=je;break;case"defaultValue":N=je;break;case"checked":q=je;break;case"value":E=je;break;default:mn(l,y,me,je);break}}return q!==null?mn(l,y,"checked",q):K!==null&&mn(l,y,"checked",K),E!==null?mn(l,y,"value",E):N!==null&&mn(l,y,"value",N),l.push(k),null}function ho(l,f,y){_e("textarea",f),f.value!==void 0&&f.defaultValue!==void 0&&!Be&&(o("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"),Be=!0),l.push(Hn("textarea"));var E=null,N=null,q=null;for(var K in f)if(B.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":q=me;break;case"value":E=me;break;case"defaultValue":N=me;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:mn(l,y,K,me);break}}if(E===null&&N!==null&&(E=N),l.push(An),q!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),E!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ee(q)){if(q.length>1)throw new Error("<textarea> can only have at most one child.");I(q[0]),E=""+q[0]}I(q),E=""+q}return typeof E=="string"&&E[0]===`
|
92
92
|
`&&l.push(io),E!==null&&(R(E,"value"),l.push(tn(""+E))),null}function Zn(l,f,y,E){l.push(Hn(y));for(var N in f)if(B.call(f,N)){var q=f[N];if(q==null)continue;switch(N){case"children":case"dangerouslySetInnerHTML":throw new Error(y+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mn(l,E,N,q);break}}return l.push(k),null}function No(l,f,y){l.push(Hn("menuitem"));for(var E in f)if(B.call(f,E)){var N=f[E];if(N==null)continue;switch(E){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:mn(l,y,E,N);break}}return l.push(An),null}function dn(l,f,y){l.push(Hn("title"));var E=null;for(var N in f)if(B.call(f,N)){var q=f[N];if(q==null)continue;switch(N){case"children":E=q;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:mn(l,y,N,q);break}}l.push(An);{var K=Array.isArray(E)&&E.length<2?E[0]||null:E;Array.isArray(E)&&E.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):K!=null&&K.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):K!=null&&typeof K!="string"&&typeof K!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return E}function Ao(l,f,y,E){l.push(Hn(y));var N=null,q=null;for(var K in f)if(B.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":N=me;break;case"dangerouslySetInnerHTML":q=me;break;default:mn(l,E,K,me);break}}return l.push(An),$(l,q,N),typeof N=="string"?(l.push(tn(N)),null):N}function Kn(l,f,y,E){l.push(Hn(y));var N=null,q=null;for(var K in f)if(B.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":N=me;break;case"dangerouslySetInnerHTML":q=me;break;case"style":Oo(l,E,me);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ae(K)&&typeof me!="function"&&typeof me!="symbol"&&l.push(zn,K,Fn,Bt(me),Cn);break}}return l.push(An),$(l,q,N),N}var io=`
|
93
93
|
`;function Pi(l,f,y,E){l.push(Hn(y));var N=null,q=null;for(var K in f)if(B.call(f,K)){var me=f[K];if(me==null)continue;switch(K){case"children":N=me;break;case"dangerouslySetInnerHTML":q=me;break;default:mn(l,E,K,me);break}}if(l.push(An),q!=null){if(N!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof q!="object"||!("__html"in q))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var je=q.__html;je!=null&&(typeof je=="string"&&je.length>0&&je[0]===`
|
94
94
|
`?l.push(io,je):(I(je),l.push(""+je)))}return typeof N=="string"&&N[0]===`
|
@@ -127,11 +127,11 @@ Error generating stack: `+E.message+`
|
|
127
127
|
*
|
128
128
|
* This source code is licensed under the MIT license found in the
|
129
129
|
* LICENSE file in the root directory of this source tree.
|
130
|
-
*/var m0;function T4(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("warn",b,f)}}function o(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("error",b,f)}}function i(b,l,f){{var y=t.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(l+="%s",f=f.concat([E]));var N=f.map(function(q){return String(q)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[b],console,N)}}function a(b){b()}var c=512,d=null,h=0;function p(b){d=new Uint8Array(c),h=0}function m(b,l){if(l.length!==0){if(l.length>c){h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=new Uint8Array(c),h=0),b.enqueue(l);return}var f=l,y=d.length-h;y<f.length&&(y===0?b.enqueue(d):(d.set(f.subarray(0,y),h),b.enqueue(d),f=f.subarray(y)),d=new Uint8Array(c),h=0),d.set(f,h),h+=f.length}}function g(b,l){return m(b,l),!0}function v(b){d&&h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=null,h=0)}function w(b){b.close()}var T=new TextEncoder;function _(b){return T.encode(b)}function A(b){return T.encode(b)}function R(b,l){typeof b.error=="function"?b.error(l):b.close()}function D(b){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&b[Symbol.toStringTag]||b.constructor.name||"Object";return f}}function I(b){try{return B(b),!1}catch{return!0}}function B(b){return""+b}function F(b,l){if(I(b))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),B(b)}function j(b,l){if(I(b))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),B(b)}function z(b){if(I(b))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",D(b)),B(b)}var G=Object.prototype.hasOwnProperty,pe=0,P=1,U=2,V=3,Q=4,se=5,ue=6,oe=":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",ae=oe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+oe+"]["+ae+"]*$"),re={},ie={};function he(b){return G.call(ie,b)?!0:G.call(re,b)?!1:ge.test(b)?(ie[b]=!0,!0):(re[b]=!0,o("Invalid attribute name: `%s`",b),!1)}function Se(b,l,f,y){if(f!==null&&f.type===pe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var E=b.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function Le(b){return ve.hasOwnProperty(b)?ve[b]:null}function ne(b,l,f,y,E,N,q){this.acceptsBooleans=l===U||l===V||l===Q,this.attributeName=y,this.attributeNamespace=E,this.mustUseProperty=f,this.propertyName=b,this.type=l,this.sanitizeURL=N,this.removeEmptyString=q}var ve={},ke=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ke.forEach(function(b){ve[b]=new ne(b,pe,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var l=b[0],f=b[1];ve[l]=new ne(l,P,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){ve[b]=new ne(b,U,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){ve[b]=new ne(b,U,!1,b,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(b){ve[b]=new ne(b,V,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){ve[b]=new ne(b,V,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){ve[b]=new ne(b,Q,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){ve[b]=new ne(b,ue,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){ve[b]=new ne(b,se,!1,b.toLowerCase(),null,!1,!1)});var Pe=/[\-\:]([a-z])/g,De=function(b){return b[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(b){var l=b.replace(Pe,De);ve[l]=new ne(l,P,!1,b,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(b){var l=b.replace(Pe,De);ve[l]=new ne(l,P,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var l=b.replace(Pe,De);ve[l]=new ne(l,P,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){ve[b]=new ne(b,P,!1,b.toLowerCase(),null,!1,!1)});var we="xlinkHref";ve[we]=new ne("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){ve[b]=new ne(b,P,!1,b.toLowerCase(),null,!0,!0)});var _e={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 Ae(b,l){return b+l.charAt(0).toUpperCase()+l.substring(1)}var $e=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(b){$e.forEach(function(l){_e[Ae(l,b)]=_e[b]})});var Fe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qe(b,l){Fe[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||o("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`."),l.onChange||l.readOnly||l.disabled||l.checked==null||o("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 Ue(b,l){if(b.indexOf("-")===-1)return typeof l.is=="string";switch(b){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 et={"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},ct={},Ct=new RegExp("^(aria)-["+ae+"]*$"),It=new RegExp("^(aria)[A-Z]["+ae+"]*$");function Je(b,l){{if(G.call(ct,l)&&ct[l])return!0;if(It.test(l)){var f="aria-"+l.slice(4).toLowerCase(),y=et.hasOwnProperty(f)?f:null;if(y==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),ct[l]=!0,!0;if(l!==y)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,y),ct[l]=!0,!0}if(Ct.test(l)){var E=l.toLowerCase(),N=et.hasOwnProperty(E)?E:null;if(N==null)return ct[l]=!0,!1;if(l!==N)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,N),ct[l]=!0,!0}}return!0}function Ke(b,l){{var f=[];for(var y in l){var E=Je(b,y);E||f.push(y)}var N=f.map(function(q){return"`"+q+"`"}).join(", ");f.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b):f.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b)}}function ft(b,l){Ue(b,l)||Ke(b,l)}var gt=!1;function Ne(b,l){{if(b!=="input"&&b!=="textarea"&&b!=="select")return;l!=null&&l.value===null&&!gt&&(gt=!0,b==="select"&&l.multiple?o("`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.",b):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",b))}}var Xe={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"},vt=function(){};{var Nt={},xt=/^on./,Lt=/^on[^A-Z]/,Qt=new RegExp("^(aria)-["+ae+"]*$"),Ut=new RegExp("^(aria)[A-Z]["+ae+"]*$");vt=function(b,l,f,y){if(G.call(Nt,l)&&Nt[l])return!0;var E=l.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return o("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."),Nt[l]=!0,!0;if(y!=null){var N=y.registrationNameDependencies,q=y.possibleRegistrationNames;if(N.hasOwnProperty(l))return!0;var K=q.hasOwnProperty(E)?q[E]:null;if(K!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",l,K),Nt[l]=!0,!0;if(xt.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),Nt[l]=!0,!0}else if(xt.test(l))return Lt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),Nt[l]=!0,!0;if(Qt.test(l)||Ut.test(l))return!0;if(E==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Nt[l]=!0,!0;if(E==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Nt[l]=!0,!0;if(E==="is"&&f!==null&&f!==void 0&&typeof f!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),Nt[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),Nt[l]=!0,!0;var me=Le(l),je=me!==null&&me.type===pe;if(Xe.hasOwnProperty(E)){var dt=Xe[E];if(dt!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,dt),Nt[l]=!0,!0}else if(!je&&l!==E)return o("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.",l,E),Nt[l]=!0,!0;return typeof f=="boolean"&&Se(l,f,me)?(f?o('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()}.',f,l,l,f,l):o('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.',f,l,l,f,l,l,l),Nt[l]=!0,!0):je?!0:Se(l,f,me)?(Nt[l]=!0,!1):((f==="false"||f==="true")&&me!==null&&me.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="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".',l,f),Nt[l]=!0),!0)}}var fr=function(b,l,f){{var y=[];for(var E in l){var N=vt(b,E,l[E],f);N||y.push(E)}var q=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("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 ",q,b):y.length>1&&o("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 ",q,b)}};function hr(b,l,f){Ue(b,l)||fr(b,l,f)}var cr=function(){};{var Te=/^(?:webkit|moz|o)[A-Z]/,le=/^-ms-/,st=/-(.)/g,yt=/;\s*$/,nt={},pt={},ht=!1,Ft=!1,Ve=function(b){return b.replace(st,function(l,f){return f.toUpperCase()})},at=function(b){nt.hasOwnProperty(b)&&nt[b]||(nt[b]=!0,o("Unsupported style property %s. Did you mean %s?",b,Ve(b.replace(le,"ms-"))))},lt=function(b){nt.hasOwnProperty(b)&&nt[b]||(nt[b]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",b,b.charAt(0).toUpperCase()+b.slice(1)))},_t=function(b,l){pt.hasOwnProperty(l)&&pt[l]||(pt[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,b,l.replace(yt,"")))},Ot=function(b,l){ht||(ht=!0,o("`NaN` is an invalid value for the `%s` css style property.",b))},Bt=function(b,l){Ft||(Ft=!0,o("`Infinity` is an invalid value for the `%s` css style property.",b))};cr=function(b,l){b.indexOf("-")>-1?at(b):Te.test(b)?lt(b):yt.test(l)&&_t(b,l),typeof l=="number"&&(isNaN(l)?Ot(b,l):isFinite(l)||Bt(b,l))}}var Wt=cr,Yt=/["'&<>]/;function ir(b){z(b);var l=""+b,f=Yt.exec(l);if(!f)return l;var y,E="",N,q=0;for(N=f.index;N<l.length;N++){switch(l.charCodeAt(N)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}q!==N&&(E+=l.substring(q,N)),q=N+1,E+=y}return q!==N?E+l.substring(q,N):E}function zt(b){return typeof b=="boolean"||typeof b=="number"?""+b:ir(b)}var xr=/([A-Z])/g,jr=/^ms-/;function Ye(b){return b.replace(xr,"-$1").toLowerCase().replace(jr,"-ms-")}var ee=/^[\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,be=!1;function ze(b){!be&&ee.test(b)&&(be=!0,o("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(b)))}var Tt=Array.isArray;function jt(b){return Tt(b)}var Dt=A("<script>"),er=A("<\/script>"),Jt=A('<script src="'),kt=A('<script type="module" src="'),xe=A('" async=""><\/script>');function ot(b){return z(b),(""+b).replace(wt,yr)}var wt=/(<\/|<)(s)(cript)/gi,yr=function(b,l,f,y){return""+l+(f==="s"?"\\u0073":"\\u0053")+y};function Br(b,l,f,y,E){var N=b===void 0?"":b,q=l===void 0?Dt:A('<script nonce="'+zt(l)+'">'),K=[];if(f!==void 0&&K.push(q,_(ot(f)),er),y!==void 0)for(var me=0;me<y.length;me++)K.push(Jt,_(zt(y[me])),xe);if(E!==void 0)for(var je=0;je<E.length;je++)K.push(kt,_(zt(E[je])),xe);return{bootstrapChunks:K,startInlineScript:q,placeholderPrefix:A(N+"P:"),segmentPrefix:A(N+"S:"),boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var lr=0,br=1,tn=2,sn=3,Pn=4,Hr=5,rn=6,kn=7;function Bn(b,l){return{insertionMode:b,selectedValue:l}}function _o(b){var l=b==="http://www.w3.org/2000/svg"?tn:b==="http://www.w3.org/1998/Math/MathML"?sn:lr;return Bn(l,null)}function Do(b,l,f){switch(l){case"select":return Bn(br,f.value!=null?f.value:f.defaultValue);case"svg":return Bn(tn,null);case"math":return Bn(sn,null);case"foreignObject":return Bn(br,null);case"table":return Bn(Pn,null);case"thead":case"tbody":case"tfoot":return Bn(Hr,null);case"colgroup":return Bn(kn,null);case"tr":return Bn(rn,null)}return b.insertionMode>=Pn||b.insertionMode===lr?Bn(br,null):b}var Oo=null;function zn(b){var l=b.nextSuspenseID++;return A(b.boundaryPrefix+l.toString(16))}function Fn(b,l,f){var y=b.idPrefix,E=":"+y+"R"+l;return f>0&&(E+="H"+f.toString(32)),E+":"}function Cn(b){return zt(b)}var oo=A("<!-- -->");function mn(b,l,f,y){return l===""?y:(y&&b.push(oo),b.push(_(Cn(l))),!0)}function An(b,l,f,y){f&&y&&b.push(oo)}var k=new Map;function $(b){var l=k.get(b);if(l!==void 0)return l;var f=A(zt(Ye(b)));return k.set(b,f),f}var X=A(' style="'),ce=A(":"),qe=A(";");function Be(b,l,f){if(typeof f!="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.");var y=!0;for(var E in f)if(G.call(f,E)){var N=f[E];if(!(N==null||typeof N=="boolean"||N==="")){var q=void 0,K=void 0,me=E.indexOf("--")===0;me?(q=_(zt(E)),j(N,E),K=_(zt((""+N).trim()))):(Wt(E,N),q=$(E),typeof N=="number"?N!==0&&!G.call(_e,E)?K=_(N+"px"):K=_(""+N):(j(N,E),K=_(zt((""+N).trim())))),y?(y=!1,b.push(X,q,ce,K)):b.push(qe,q,ce,K)}}y||b.push(Ht)}var tt=A(" "),Et=A('="'),Ht=A('"'),Gt=A('=""');function Vt(b,l,f,y){switch(f){case"style":{Be(b,l,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var E=Le(f);if(E!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var N=E.attributeName,q=_(N);switch(E.type){case V:y&&b.push(tt,q,Gt);return;case Q:y===!0?b.push(tt,q,Gt):y===!1||b.push(tt,q,Et,_(zt(y)),Ht);return;case se:isNaN(y)||b.push(tt,q,Et,_(zt(y)),Ht);break;case ue:!isNaN(y)&&y>=1&&b.push(tt,q,Et,_(zt(y)),Ht);break;default:E.sanitizeURL&&(F(y,N),y=""+y,ze(y)),b.push(tt,q,Et,_(zt(y)),Ht)}}else if(he(f)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var K=f.toLowerCase().slice(0,5);if(K!=="data-"&&K!=="aria-")return}}b.push(tt,_(f),Et,_(zt(y)),Ht)}}}var Rr=A(">"),an=A("/>");function In(b,l,f){if(l!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=l.__html;y!=null&&(z(y),b.push(_(""+y)))}}var Mn=!1,ho=!1,Zn=!1,No=!1,dn=!1,Ao=!1,Kn=!1;function io(b,l){{var f=b[l];if(f!=null){var y=jt(f);b.multiple&&!y?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!b.multiple&&y&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Pi(b,l,f){Qe("select",l),io(l,"value"),io(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Zn&&(o("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"),Zn=!0),b.push(or("select"));var y=null,E=null;for(var N in l)if(G.call(l,N)){var q=l[N];if(q==null)continue;switch(N){case"children":y=q;break;case"dangerouslySetInnerHTML":E=q;break;case"defaultValue":case"value":break;default:Vt(b,f,N,q);break}}return b.push(Rr),In(b,E,y),y}function yi(b){var l="";return r.Children.forEach(b,function(f){f!=null&&(l+=f,!dn&&typeof f!="string"&&typeof f!="number"&&(dn=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var bi=A(' selected=""');function Hn(b,l,f,y){var E=y.selectedValue;b.push(or("option"));var N=null,q=null,K=null,me=null;for(var je in l)if(G.call(l,je)){var dt=l[je];if(dt==null)continue;switch(je){case"children":N=dt;break;case"selected":K=dt,Kn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kn=!0);break;case"dangerouslySetInnerHTML":me=dt;break;case"value":q=dt;default:Vt(b,f,je,dt);break}}if(E!=null){var At;if(q!==null?(F(q,"value"),At=""+q):(me!==null&&(Ao||(Ao=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),At=yi(N)),jt(E))for(var Pt=0;Pt<E.length;Pt++){F(E[Pt],"value");var ur=""+E[Pt];if(ur===At){b.push(bi);break}}else F(E,"select.value"),""+E===At&&b.push(bi)}else K&&b.push(bi);return b.push(Rr),In(b,me,N),N}function Bi(b,l,f){Qe("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!ho&&(o("%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","A component",l.type),ho=!0),l.value!==void 0&&l.defaultValue!==void 0&&!Mn&&(o("%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","A component",l.type),Mn=!0),b.push(or("input"));var y=null,E=null,N=null,q=null;for(var K in l)if(G.call(l,K)){var me=l[K];if(me==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":q=me;break;case"defaultValue":E=me;break;case"checked":N=me;break;case"value":y=me;break;default:Vt(b,f,K,me);break}}return N!==null?Vt(b,f,"checked",N):q!==null&&Vt(b,f,"checked",q),y!==null?Vt(b,f,"value",y):E!==null&&Vt(b,f,"value",E),b.push(an),null}function so(b,l,f){Qe("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!No&&(o("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"),No=!0),b.push(or("textarea"));var y=null,E=null,N=null;for(var q in l)if(G.call(l,q)){var K=l[q];if(K==null)continue;switch(q){case"children":N=K;break;case"value":y=K;break;case"defaultValue":E=K;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Vt(b,f,q,K);break}}if(y===null&&E!==null&&(y=E),b.push(Rr),N!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jt(N)){if(N.length>1)throw new Error("<textarea> can only have at most one child.");z(N[0]),y=""+N[0]}z(N),y=""+N}return typeof y=="string"&&y[0]===`
|
130
|
+
*/var m0;function T4(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var r=S,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("warn",b,f)}}function o(b){{for(var l=arguments.length,f=new Array(l>1?l-1:0),y=1;y<l;y++)f[y-1]=arguments[y];i("error",b,f)}}function i(b,l,f){{var y=t.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(l+="%s",f=f.concat([E]));var N=f.map(function(q){return String(q)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[b],console,N)}}function a(b){b()}var c=512,d=null,h=0;function p(b){d=new Uint8Array(c),h=0}function m(b,l){if(l.length!==0){if(l.length>c){h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=new Uint8Array(c),h=0),b.enqueue(l);return}var f=l,y=d.length-h;y<f.length&&(y===0?b.enqueue(d):(d.set(f.subarray(0,y),h),b.enqueue(d),f=f.subarray(y)),d=new Uint8Array(c),h=0),d.set(f,h),h+=f.length}}function g(b,l){return m(b,l),!0}function v(b){d&&h>0&&(b.enqueue(new Uint8Array(d.buffer,0,h)),d=null,h=0)}function w(b){b.close()}var T=new TextEncoder;function _(b){return T.encode(b)}function A(b){return T.encode(b)}function R(b,l){typeof b.error=="function"?b.error(l):b.close()}function D(b){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&b[Symbol.toStringTag]||b.constructor.name||"Object";return f}}function I(b){try{return B(b),!1}catch{return!0}}function B(b){return""+b}function F(b,l){if(I(b))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),B(b)}function j(b,l){if(I(b))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,D(b)),B(b)}function z(b){if(I(b))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",D(b)),B(b)}var G=Object.prototype.hasOwnProperty,pe=0,P=1,U=2,V=3,Q=4,se=5,ue=6,oe=":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",ae=oe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+oe+"]["+ae+"]*$"),re={},ie={};function he(b){return G.call(ie,b)?!0:G.call(re,b)?!1:ge.test(b)?(ie[b]=!0,!0):(re[b]=!0,o("Invalid attribute name: `%s`",b),!1)}function Se(b,l,f,y){if(f!==null&&f.type===pe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var E=b.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function Le(b){return ve.hasOwnProperty(b)?ve[b]:null}function ne(b,l,f,y,E,N,q){this.acceptsBooleans=l===U||l===V||l===Q,this.attributeName=y,this.attributeNamespace=E,this.mustUseProperty=f,this.propertyName=b,this.type=l,this.sanitizeURL=N,this.removeEmptyString=q}var ve={},ke=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ke.forEach(function(b){ve[b]=new ne(b,pe,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var l=b[0],f=b[1];ve[l]=new ne(l,P,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){ve[b]=new ne(b,U,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){ve[b]=new ne(b,U,!1,b,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(b){ve[b]=new ne(b,V,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){ve[b]=new ne(b,V,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){ve[b]=new ne(b,Q,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){ve[b]=new ne(b,ue,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){ve[b]=new ne(b,se,!1,b.toLowerCase(),null,!1,!1)});var De=/[\-\:]([a-z])/g,Oe=function(b){return b[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(b){var l=b.replace(De,Oe);ve[l]=new ne(l,P,!1,b,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(b){var l=b.replace(De,Oe);ve[l]=new ne(l,P,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var l=b.replace(De,Oe);ve[l]=new ne(l,P,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){ve[b]=new ne(b,P,!1,b.toLowerCase(),null,!1,!1)});var we="xlinkHref";ve[we]=new ne("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){ve[b]=new ne(b,P,!1,b.toLowerCase(),null,!0,!0)});var _e={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 Ae(b,l){return b+l.charAt(0).toUpperCase()+l.substring(1)}var $e=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(b){$e.forEach(function(l){_e[Ae(l,b)]=_e[b]})});var Fe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Qe(b,l){Fe[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||o("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`."),l.onChange||l.readOnly||l.disabled||l.checked==null||o("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 Ue(b,l){if(b.indexOf("-")===-1)return typeof l.is=="string";switch(b){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 et={"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},ct={},Ct=new RegExp("^(aria)-["+ae+"]*$"),It=new RegExp("^(aria)[A-Z]["+ae+"]*$");function Je(b,l){{if(G.call(ct,l)&&ct[l])return!0;if(It.test(l)){var f="aria-"+l.slice(4).toLowerCase(),y=et.hasOwnProperty(f)?f:null;if(y==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),ct[l]=!0,!0;if(l!==y)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,y),ct[l]=!0,!0}if(Ct.test(l)){var E=l.toLowerCase(),N=et.hasOwnProperty(E)?E:null;if(N==null)return ct[l]=!0,!1;if(l!==N)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,N),ct[l]=!0,!0}}return!0}function Ke(b,l){{var f=[];for(var y in l){var E=Je(b,y);E||f.push(y)}var N=f.map(function(q){return"`"+q+"`"}).join(", ");f.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b):f.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,b)}}function ft(b,l){Ue(b,l)||Ke(b,l)}var gt=!1;function Pe(b,l){{if(b!=="input"&&b!=="textarea"&&b!=="select")return;l!=null&&l.value===null&&!gt&&(gt=!0,b==="select"&&l.multiple?o("`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.",b):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",b))}}var Xe={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"},vt=function(){};{var Nt={},xt=/^on./,Lt=/^on[^A-Z]/,Qt=new RegExp("^(aria)-["+ae+"]*$"),Ut=new RegExp("^(aria)[A-Z]["+ae+"]*$");vt=function(b,l,f,y){if(G.call(Nt,l)&&Nt[l])return!0;var E=l.toLowerCase();if(E==="onfocusin"||E==="onfocusout")return o("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."),Nt[l]=!0,!0;if(y!=null){var N=y.registrationNameDependencies,q=y.possibleRegistrationNames;if(N.hasOwnProperty(l))return!0;var K=q.hasOwnProperty(E)?q[E]:null;if(K!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",l,K),Nt[l]=!0,!0;if(xt.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),Nt[l]=!0,!0}else if(xt.test(l))return Lt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),Nt[l]=!0,!0;if(Qt.test(l)||Ut.test(l))return!0;if(E==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Nt[l]=!0,!0;if(E==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Nt[l]=!0,!0;if(E==="is"&&f!==null&&f!==void 0&&typeof f!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),Nt[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),Nt[l]=!0,!0;var me=Le(l),je=me!==null&&me.type===pe;if(Xe.hasOwnProperty(E)){var dt=Xe[E];if(dt!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,dt),Nt[l]=!0,!0}else if(!je&&l!==E)return o("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.",l,E),Nt[l]=!0,!0;return typeof f=="boolean"&&Se(l,f,me)?(f?o('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()}.',f,l,l,f,l):o('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.',f,l,l,f,l,l,l),Nt[l]=!0,!0):je?!0:Se(l,f,me)?(Nt[l]=!0,!1):((f==="false"||f==="true")&&me!==null&&me.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="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".',l,f),Nt[l]=!0),!0)}}var fr=function(b,l,f){{var y=[];for(var E in l){var N=vt(b,E,l[E],f);N||y.push(E)}var q=y.map(function(K){return"`"+K+"`"}).join(", ");y.length===1?o("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 ",q,b):y.length>1&&o("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 ",q,b)}};function hr(b,l,f){Ue(b,l)||fr(b,l,f)}var cr=function(){};{var Te=/^(?:webkit|moz|o)[A-Z]/,le=/^-ms-/,st=/-(.)/g,yt=/;\s*$/,nt={},pt={},ht=!1,Ft=!1,Ve=function(b){return b.replace(st,function(l,f){return f.toUpperCase()})},at=function(b){nt.hasOwnProperty(b)&&nt[b]||(nt[b]=!0,o("Unsupported style property %s. Did you mean %s?",b,Ve(b.replace(le,"ms-"))))},lt=function(b){nt.hasOwnProperty(b)&&nt[b]||(nt[b]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",b,b.charAt(0).toUpperCase()+b.slice(1)))},_t=function(b,l){pt.hasOwnProperty(l)&&pt[l]||(pt[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,b,l.replace(yt,"")))},Ot=function(b,l){ht||(ht=!0,o("`NaN` is an invalid value for the `%s` css style property.",b))},Bt=function(b,l){Ft||(Ft=!0,o("`Infinity` is an invalid value for the `%s` css style property.",b))};cr=function(b,l){b.indexOf("-")>-1?at(b):Te.test(b)?lt(b):yt.test(l)&&_t(b,l),typeof l=="number"&&(isNaN(l)?Ot(b,l):isFinite(l)||Bt(b,l))}}var Wt=cr,Yt=/["'&<>]/;function ir(b){z(b);var l=""+b,f=Yt.exec(l);if(!f)return l;var y,E="",N,q=0;for(N=f.index;N<l.length;N++){switch(l.charCodeAt(N)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}q!==N&&(E+=l.substring(q,N)),q=N+1,E+=y}return q!==N?E+l.substring(q,N):E}function zt(b){return typeof b=="boolean"||typeof b=="number"?""+b:ir(b)}var xr=/([A-Z])/g,jr=/^ms-/;function Ye(b){return b.replace(xr,"-$1").toLowerCase().replace(jr,"-ms-")}var ee=/^[\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,be=!1;function ze(b){!be&&ee.test(b)&&(be=!0,o("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(b)))}var Tt=Array.isArray;function jt(b){return Tt(b)}var Dt=A("<script>"),er=A("<\/script>"),Jt=A('<script src="'),kt=A('<script type="module" src="'),xe=A('" async=""><\/script>');function ot(b){return z(b),(""+b).replace(wt,yr)}var wt=/(<\/|<)(s)(cript)/gi,yr=function(b,l,f,y){return""+l+(f==="s"?"\\u0073":"\\u0053")+y};function Br(b,l,f,y,E){var N=b===void 0?"":b,q=l===void 0?Dt:A('<script nonce="'+zt(l)+'">'),K=[];if(f!==void 0&&K.push(q,_(ot(f)),er),y!==void 0)for(var me=0;me<y.length;me++)K.push(Jt,_(zt(y[me])),xe);if(E!==void 0)for(var je=0;je<E.length;je++)K.push(kt,_(zt(E[je])),xe);return{bootstrapChunks:K,startInlineScript:q,placeholderPrefix:A(N+"P:"),segmentPrefix:A(N+"S:"),boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var lr=0,br=1,tn=2,sn=3,Pn=4,Hr=5,rn=6,kn=7;function Bn(b,l){return{insertionMode:b,selectedValue:l}}function _o(b){var l=b==="http://www.w3.org/2000/svg"?tn:b==="http://www.w3.org/1998/Math/MathML"?sn:lr;return Bn(l,null)}function Do(b,l,f){switch(l){case"select":return Bn(br,f.value!=null?f.value:f.defaultValue);case"svg":return Bn(tn,null);case"math":return Bn(sn,null);case"foreignObject":return Bn(br,null);case"table":return Bn(Pn,null);case"thead":case"tbody":case"tfoot":return Bn(Hr,null);case"colgroup":return Bn(kn,null);case"tr":return Bn(rn,null)}return b.insertionMode>=Pn||b.insertionMode===lr?Bn(br,null):b}var Oo=null;function zn(b){var l=b.nextSuspenseID++;return A(b.boundaryPrefix+l.toString(16))}function Fn(b,l,f){var y=b.idPrefix,E=":"+y+"R"+l;return f>0&&(E+="H"+f.toString(32)),E+":"}function Cn(b){return zt(b)}var oo=A("<!-- -->");function mn(b,l,f,y){return l===""?y:(y&&b.push(oo),b.push(_(Cn(l))),!0)}function An(b,l,f,y){f&&y&&b.push(oo)}var k=new Map;function $(b){var l=k.get(b);if(l!==void 0)return l;var f=A(zt(Ye(b)));return k.set(b,f),f}var X=A(' style="'),ce=A(":"),qe=A(";");function Be(b,l,f){if(typeof f!="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.");var y=!0;for(var E in f)if(G.call(f,E)){var N=f[E];if(!(N==null||typeof N=="boolean"||N==="")){var q=void 0,K=void 0,me=E.indexOf("--")===0;me?(q=_(zt(E)),j(N,E),K=_(zt((""+N).trim()))):(Wt(E,N),q=$(E),typeof N=="number"?N!==0&&!G.call(_e,E)?K=_(N+"px"):K=_(""+N):(j(N,E),K=_(zt((""+N).trim())))),y?(y=!1,b.push(X,q,ce,K)):b.push(qe,q,ce,K)}}y||b.push(Ht)}var tt=A(" "),Et=A('="'),Ht=A('"'),Gt=A('=""');function Vt(b,l,f,y){switch(f){case"style":{Be(b,l,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var E=Le(f);if(E!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var N=E.attributeName,q=_(N);switch(E.type){case V:y&&b.push(tt,q,Gt);return;case Q:y===!0?b.push(tt,q,Gt):y===!1||b.push(tt,q,Et,_(zt(y)),Ht);return;case se:isNaN(y)||b.push(tt,q,Et,_(zt(y)),Ht);break;case ue:!isNaN(y)&&y>=1&&b.push(tt,q,Et,_(zt(y)),Ht);break;default:E.sanitizeURL&&(F(y,N),y=""+y,ze(y)),b.push(tt,q,Et,_(zt(y)),Ht)}}else if(he(f)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var K=f.toLowerCase().slice(0,5);if(K!=="data-"&&K!=="aria-")return}}b.push(tt,_(f),Et,_(zt(y)),Ht)}}}var Rr=A(">"),an=A("/>");function In(b,l,f){if(l!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=l.__html;y!=null&&(z(y),b.push(_(""+y)))}}var Mn=!1,ho=!1,Zn=!1,No=!1,dn=!1,Ao=!1,Kn=!1;function io(b,l){{var f=b[l];if(f!=null){var y=jt(f);b.multiple&&!y?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!b.multiple&&y&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Pi(b,l,f){Qe("select",l),io(l,"value"),io(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Zn&&(o("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"),Zn=!0),b.push(or("select"));var y=null,E=null;for(var N in l)if(G.call(l,N)){var q=l[N];if(q==null)continue;switch(N){case"children":y=q;break;case"dangerouslySetInnerHTML":E=q;break;case"defaultValue":case"value":break;default:Vt(b,f,N,q);break}}return b.push(Rr),In(b,E,y),y}function yi(b){var l="";return r.Children.forEach(b,function(f){f!=null&&(l+=f,!dn&&typeof f!="string"&&typeof f!="number"&&(dn=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var bi=A(' selected=""');function Hn(b,l,f,y){var E=y.selectedValue;b.push(or("option"));var N=null,q=null,K=null,me=null;for(var je in l)if(G.call(l,je)){var dt=l[je];if(dt==null)continue;switch(je){case"children":N=dt;break;case"selected":K=dt,Kn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kn=!0);break;case"dangerouslySetInnerHTML":me=dt;break;case"value":q=dt;default:Vt(b,f,je,dt);break}}if(E!=null){var At;if(q!==null?(F(q,"value"),At=""+q):(me!==null&&(Ao||(Ao=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),At=yi(N)),jt(E))for(var Pt=0;Pt<E.length;Pt++){F(E[Pt],"value");var ur=""+E[Pt];if(ur===At){b.push(bi);break}}else F(E,"select.value"),""+E===At&&b.push(bi)}else K&&b.push(bi);return b.push(Rr),In(b,me,N),N}function Bi(b,l,f){Qe("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!ho&&(o("%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","A component",l.type),ho=!0),l.value!==void 0&&l.defaultValue!==void 0&&!Mn&&(o("%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","A component",l.type),Mn=!0),b.push(or("input"));var y=null,E=null,N=null,q=null;for(var K in l)if(G.call(l,K)){var me=l[K];if(me==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":q=me;break;case"defaultValue":E=me;break;case"checked":N=me;break;case"value":y=me;break;default:Vt(b,f,K,me);break}}return N!==null?Vt(b,f,"checked",N):q!==null&&Vt(b,f,"checked",q),y!==null?Vt(b,f,"value",y):E!==null&&Vt(b,f,"value",E),b.push(an),null}function so(b,l,f){Qe("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!No&&(o("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"),No=!0),b.push(or("textarea"));var y=null,E=null,N=null;for(var q in l)if(G.call(l,q)){var K=l[q];if(K==null)continue;switch(q){case"children":N=K;break;case"value":y=K;break;case"defaultValue":E=K;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Vt(b,f,q,K);break}}if(y===null&&E!==null&&(y=E),b.push(Rr),N!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jt(N)){if(N.length>1)throw new Error("<textarea> can only have at most one child.");z(N[0]),y=""+N[0]}z(N),y=""+N}return typeof y=="string"&&y[0]===`
|
131
131
|
`&&b.push(O),y!==null&&(F(y,"value"),b.push(_(Cn(""+y)))),null}function ao(b,l,f,y){b.push(or(f));for(var E in l)if(G.call(l,E)){var N=l[E];if(N==null)continue;switch(E){case"children":case"dangerouslySetInnerHTML":throw new Error(f+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(b,y,E,N);break}}return b.push(an),null}function ti(b,l,f){b.push(or("menuitem"));for(var y in l)if(G.call(l,y)){var E=l[y];if(E==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Vt(b,f,y,E);break}}return b.push(Rr),null}function zr(b,l,f){b.push(or("title"));var y=null;for(var E in l)if(G.call(l,E)){var N=l[E];if(N==null)continue;switch(E){case"children":y=N;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Vt(b,f,E,N);break}}b.push(Rr);{var q=Array.isArray(y)&&y.length<2?y[0]||null:y;Array.isArray(y)&&y.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):q!=null&&q.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):q!=null&&typeof q!="string"&&typeof q!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return y}function Ir(b,l,f,y){b.push(or(f));var E=null,N=null;for(var q in l)if(G.call(l,q)){var K=l[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;default:Vt(b,y,q,K);break}}return b.push(Rr),In(b,N,E),typeof E=="string"?(b.push(_(Cn(E))),null):E}function Fr(b,l,f,y){b.push(or(f));var E=null,N=null;for(var q in l)if(G.call(l,q)){var K=l[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"style":Be(b,y,K);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:he(q)&&typeof K!="function"&&typeof K!="symbol"&&b.push(tt,_(q),Et,_(zt(K)),Ht);break}}return b.push(Rr),In(b,N,E),E}var O=A(`
|
132
132
|
`);function J(b,l,f,y){b.push(or(f));var E=null,N=null;for(var q in l)if(G.call(l,q)){var K=l[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;default:Vt(b,y,q,K);break}}if(b.push(Rr),N!=null){if(E!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof N!="object"||!("__html"in N))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var me=N.__html;me!=null&&(typeof me=="string"&&me.length>0&&me[0]===`
|
133
133
|
`?b.push(O,_(me)):(z(me),b.push(_(""+me))))}return typeof E=="string"&&E[0]===`
|
134
|
-
`&&b.push(O),E}var Ce=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,rt=new Map;function or(b){var l=rt.get(b);if(l===void 0){if(!Ce.test(b))throw new Error("Invalid tag: "+b);l=A("<"+b),rt.set(b,l)}return l}var Kt=A("<!DOCTYPE html>");function _r(b,l,f,y,E){switch(ft(l,f),
|
134
|
+
`&&b.push(O),E}var Ce=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,rt=new Map;function or(b){var l=rt.get(b);if(l===void 0){if(!Ce.test(b))throw new Error("Invalid tag: "+b);l=A("<"+b),rt.set(b,l)}return l}var Kt=A("<!DOCTYPE html>");function _r(b,l,f,y,E){switch(ft(l,f),Pe(l,f),hr(l,f,null),!f.suppressContentEditableWarning&&f.contentEditable&&f.children!=null&&o("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."),E.insertionMode!==tn&&E.insertionMode!==sn&&l.indexOf("-")===-1&&typeof f.is!="string"&&l.toLowerCase()!==l&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return Pi(b,f,y);case"option":return Hn(b,f,y,E);case"textarea":return so(b,f,y);case"input":return Bi(b,f,y);case"menuitem":return ti(b,f,y);case"title":return zr(b,f,y);case"listing":case"pre":return J(b,f,l,y);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ao(b,f,l,y);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 Ir(b,f,l,y);case"html":return E.insertionMode===lr&&b.push(Kt),Ir(b,f,l,y);default:return l.indexOf("-")===-1&&typeof f.is!="string"?Ir(b,f,l,y):Fr(b,f,l,y)}}var kr=A("</"),Cr=A(">");function Mr(b,l,f){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:b.push(kr,_(l),Cr)}}function fn(b,l){for(var f=l.bootstrapChunks,y=0;y<f.length-1;y++)m(b,f[y]);return y<f.length?g(b,f[y]):!0}var $n=A('<template id="'),nn=A('"></template>');function Vr(b,l,f){m(b,$n),m(b,l.placeholderPrefix);var y=_(f.toString(16));return m(b,y),g(b,nn)}var hn=A("<!--$-->"),po=A('<!--$?--><template id="'),Eo=A('"></template>'),Xn=A("<!--$!-->"),Fi=A("<!--/$-->"),ri=A("<template"),vn=A('"'),Ns=A(' data-dgst="'),Jn=A(' data-msg="'),Ul=A(' data-stck="'),al=A("></template>");function ni(b,l){return g(b,hn)}function ji(b,l,f){if(m(b,po),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(b,f),g(b,Eo)}function Qn(b,l,f,y,E){var N;return N=g(b,Xn),m(b,ri),f&&(m(b,Ns),m(b,_(zt(f))),m(b,vn)),y&&(m(b,Jn),m(b,_(zt(y))),m(b,vn)),E&&(m(b,Ul),m(b,_(zt(E))),m(b,vn)),N=g(b,al),N}function ln(b,l){return g(b,Fi)}function Po(b,l){return g(b,Fi)}function ll(b,l){return g(b,Fi)}var Wl=A('<div hidden id="'),as=A('">'),Vl=A("</div>"),Gl=A('<svg aria-hidden="true" style="display:none" id="'),wa=A('">'),Ps=A("</svg>"),Bs=A('<math aria-hidden="true" style="display:none" id="'),zi=A('">'),Yl=A("</math>"),Ca=A('<table hidden id="'),cl=A('">'),M=A("</table>"),H=A('<table hidden><tbody id="'),Y=A('">'),de=A("</tbody></table>"),We=A('<table hidden><tr id="'),He=A('">'),ut=A("</tr></table>"),Mt=A('<table hidden><colgroup id="'),Zt=A('">'),Sr=A("</colgroup></table>");function pr(b,l,f,y){switch(f.insertionMode){case lr:case br:return m(b,Wl),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,as);case tn:return m(b,Gl),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,wa);case sn:return m(b,Bs),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,zi);case Pn:return m(b,Ca),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,cl);case Hr:return m(b,H),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,Y);case rn:return m(b,We),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,He);case kn:return m(b,Mt),m(b,l.segmentPrefix),m(b,_(y.toString(16))),g(b,Zt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function on(b,l){switch(l.insertionMode){case lr:case br:return g(b,Vl);case tn:return g(b,Ps);case sn:return g(b,Yl);case Pn:return g(b,M);case Hr:return g(b,de);case rn:return g(b,ut);case kn:return g(b,Sr);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var lo="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Bo='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Fo='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Sa=A(lo+';$RS("'),Zl=A('$RS("'),Fs=A('","'),_a=A('")<\/script>');function Ef(b,l,f){m(b,l.startInlineScript),l.sentCompleteSegmentFunction?m(b,Zl):(l.sentCompleteSegmentFunction=!0,m(b,Sa)),m(b,l.segmentPrefix);var y=_(f.toString(16));return m(b,y),m(b,Fs),m(b,l.placeholderPrefix),m(b,y),g(b,_a)}var eu=A(Bo+';$RC("'),tu=A('$RC("'),nd=A('","'),Hi=A('")<\/script>');function ul(b,l,f,y){if(m(b,l.startInlineScript),l.sentCompleteBoundaryFunction?m(b,tu):(l.sentCompleteBoundaryFunction=!0,m(b,eu)),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var E=_(y.toString(16));return m(b,f),m(b,nd),m(b,l.segmentPrefix),m(b,E),g(b,Hi)}var Tf=A(Fo+';$RX("'),Rf=A('$RX("'),kf=A('"'),Aa=A(")<\/script>"),Sn=A(",");function od(b,l,f,y,E,N){if(m(b,l.startInlineScript),l.sentClientRenderFunction?m(b,Rf):(l.sentClientRenderFunction=!0,m(b,Tf)),f===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(b,f),m(b,kf),(y||E||N)&&(m(b,Sn),m(b,_(Kl(y||"")))),(E||N)&&(m(b,Sn),m(b,_(Kl(E||"")))),N&&(m(b,Sn),m(b,_(Kl(N)))),g(b,Aa)}var id=/[<\u2028\u2029]/g;function Kl(b){var l=JSON.stringify(b);return l.replace(id,function(f){switch(f){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var jo=Object.assign,sd=Symbol.for("react.element"),Xl=Symbol.for("react.portal"),$i=Symbol.for("react.fragment"),Ie=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),Ze=Symbol.for("react.provider"),$t=Symbol.for("react.context"),dr=Symbol.for("react.forward_ref"),$r=Symbol.for("react.suspense"),Ln=Symbol.for("react.suspense_list"),Qr=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),ad=Symbol.for("react.scope"),Zo=Symbol.for("react.debug_trace_mode"),Jl=Symbol.for("react.legacy_hidden"),If=Symbol.for("react.default_value"),ls=Symbol.iterator,cn="@@iterator";function cs(b){if(b===null||typeof b!="object")return null;var l=ls&&b[ls]||b[cn];return typeof l=="function"?l:null}function Xr(b,l,f){var y=b.displayName;if(y)return y;var E=l.displayName||l.name||"";return E!==""?f+"("+E+")":f}function ru(b){return b.displayName||"Context"}function pn(b){if(b==null)return null;if(typeof b.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case $i:return"Fragment";case Xl:return"Portal";case it:return"Profiler";case Ie:return"StrictMode";case $r:return"Suspense";case Ln:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case $t:var l=b;return ru(l)+".Consumer";case Ze:var f=b;return ru(f._context)+".Provider";case dr:return Xr(b,b.render,"ForwardRef");case Qr:var y=b.displayName||null;return y!==null?y:pn(b.type)||"Memo";case Ea:{var E=b,N=E._payload,q=E._init;try{return pn(q(N))}catch{return null}}}return null}var qi=0,nu,ou,iu,Ta,Ui,dl,fl;function js(){}js.__reactDisabledLog=!0;function Ra(){{if(qi===0){nu=console.log,ou=console.info,iu=console.warn,Ta=console.error,Ui=console.group,dl=console.groupCollapsed,fl=console.groupEnd;var b={configurable:!0,enumerable:!0,value:js,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}qi++}}function Ql(){{if(qi--,qi===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:jo({},b,{value:nu}),info:jo({},b,{value:ou}),warn:jo({},b,{value:iu}),error:jo({},b,{value:Ta}),group:jo({},b,{value:Ui}),groupCollapsed:jo({},b,{value:dl}),groupEnd:jo({},b,{value:fl})})}qi<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wi=t.ReactCurrentDispatcher,ec;function oi(b,l,f){{if(ec===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);ec=y&&y[1]||""}return`
|
135
135
|
`+ec+b}}var Vi=!1,us;{var Mf=typeof WeakMap=="function"?WeakMap:Map;us=new Mf}function hl(b,l){if(!b||Vi)return"";{var f=us.get(b);if(f!==void 0)return f}var y;Vi=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var N;N=Wi.current,Wi.current=null,Ra();try{if(l){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(Gr){y=Gr}Reflect.construct(b,[],q)}else{try{q.call()}catch(Gr){y=Gr}b.call(q.prototype)}}else{try{throw Error()}catch(Gr){y=Gr}b()}}catch(Gr){if(Gr&&y&&typeof Gr.stack=="string"){for(var K=Gr.stack.split(`
|
136
136
|
`),me=y.stack.split(`
|
137
137
|
`),je=K.length-1,dt=me.length-1;je>=1&&dt>=0&&K[je]!==me[dt];)dt--;for(;je>=1&&dt>=0;je--,dt--)if(K[je]!==me[dt]){if(je!==1||dt!==1)do if(je--,dt--,dt<0||K[je]!==me[dt]){var At=`
|
@@ -158,14 +158,14 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
158
158
|
Previous: %s
|
159
159
|
Incoming: %s`,ii,"["+b.join(", ")+"]","["+l.join(", ")+"]");for(var f=0;f<l.length&&f<b.length;f++)if(!Nr(b[f],l[f]))return!1;return!0}function hu(){if(_i>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function $o(){return qr===null?qs===null?(ms=!1,qs=qr=hu()):(ms=!0,qr=qs):qr.next===null?(ms=!1,qr=qr.next=hu()):(ms=!0,qr=qr.next),qr}function pu(b,l){zo=l,Na=b,mo=!1,To=0}function Ws(b,l,f,y){for(;bl;)bl=!1,To=0,_i+=1,qr=null,f=b(l,y);return gu(),f}function vo(){var b=To!==0;return b}function gu(){mo=!1,zo=null,Na=null,bl=!1,qs=null,_i=0,Ho=null,qr=null}function mu(b){return mo&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Oa(b)}function vu(b){return ii="useContext",Us(),Oa(b)}function Vs(b,l){return typeof l=="function"?l(b):l}function vs(b){return ii="useState",yu(Vs,b)}function yu(b,l,f){if(b!==Vs&&(ii="useReducer"),zo=Us(),qr=$o(),ms){var y=qr.queue,E=y.dispatch;if(Ho!==null){var N=Ho.get(y);if(N!==void 0){Ho.delete(y);var q=qr.memoizedState,K=N;do{var me=K.action;mo=!0,q=b(q,me),mo=!1,K=K.next}while(K!==null);return qr.memoizedState=q,[q,E]}}return[qr.memoizedState,E]}else{mo=!0;var je;b===Vs?je=typeof l=="function"?l():l:je=f!==void 0?f(l):l,mo=!1,qr.memoizedState=je;var dt=qr.queue={last:null,dispatch:null},At=dt.dispatch=md.bind(null,zo,dt);return[qr.memoizedState,At]}}function gd(b,l){zo=Us(),qr=$o();var f=l===void 0?null:l;if(qr!==null){var y=qr.memoizedState;if(y!==null&&f!==null){var E=y[1];if(pd(f,E))return y[0]}}mo=!0;var N=b();return mo=!1,qr.memoizedState=[N,f],N}function ac(b){zo=Us(),qr=$o();var l=qr.memoizedState;if(l===null){var f={current:b};return Object.seal(f),qr.memoizedState=f,f}else return l}function zf(b,l){ii="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function md(b,l,f){if(_i>=fu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(b===zo){bl=!0;var y={action:f,next:null};Ho===null&&(Ho=new Map);var E=Ho.get(l);if(E===void 0)Ho.set(l,y);else{for(var N=E;N.next!==null;)N=N.next;N.next=y}}}function eo(b,l){return gd(function(){return b},l)}function bu(b,l,f){return Us(),l(b._source)}function vd(b,l,f){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return f()}function qo(b){return Us(),b}function lc(){throw new Error("startTransition cannot be called during server rendering.")}function Pa(){return Us(),[!1,lc]}function ys(){var b=Na,l=Ki(b.treeContext),f=Gs;if(f===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var y=To++;return Fn(f,l,y)}function xl(){}var Vn={readContext:mu,useContext:vu,useMemo:gd,useReducer:yu,useRef:ac,useState:vs,useInsertionEffect:xl,useLayoutEffect:zf,useCallback:eo,useImperativeHandle:xl,useEffect:xl,useDebugValue:xl,useDeferredValue:qo,useTransition:Pa,useId:ys,useMutableSource:bu,useSyncExternalStore:vd},Gs=null;function cc(b){Gs=b}function Ba(b){try{var l="",f=b;do{switch(f.tag){case 0:l+=oi(f.type,null,null);break;case 1:l+=ka(f.type,null,null);break;case 2:l+=ld(f.type,null,null);break}f=f.parent}while(f);return l}catch(y){return`
|
160
160
|
Error generating stack: `+y.message+`
|
161
|
-
`+y.stack}}var uc=t.ReactCurrentDispatcher,Fa=t.ReactDebugCurrentFrame,dc=0,Ai=1,fc=2,Ys=3,yd=4,wl=0,ja=1,za=2,xu=12800;function bd(b){return console.error(b),null}function Zs(){}function hc(b,l,f,y,E,N,q,K,me){var je=[],dt=new Set,At={destination:null,responseState:l,progressiveChunkSize:y===void 0?xu:y,status:wl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:je,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?bd:E,onAllReady:N===void 0?Zs:N,onShellReady:q===void 0?Zs:q,onShellError:K===void 0?Zs:K,onFatalError:me===void 0?Zs:me},Pt=Cl(At,0,null,f,!1,!1);Pt.parentFlushed=!0;var ur=Ji(At,b,null,Pt,dt,qn,rc,Pf);return je.push(ur),At}function Xi(b,l){var f=b.pingedTasks;f.push(l),f.length===1&&a(function(){return Tu(b)})}function pc(b,l){return{id:Oo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ji(b,l,f,y,E,N,q,K){b.allPendingTasks++,f===null?b.pendingRootTasks++:f.pendingTasks++;var me={node:l,ping:function(){return Xi(b,me)},blockedBoundary:f,blockedSegment:y,abortSet:E,legacyContext:N,context:q,treeContext:K};return me.componentStack=null,E.add(me),me}function Cl(b,l,f,y,E,N){return{status:dc,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:f,lastPushedText:E,textEmbedded:N}}var si=null;function ai(){return si===null||si.componentStack===null?"":Ba(si.componentStack)}function Ei(b,l){b.componentStack={tag:0,parent:b.componentStack,type:l}}function Sl(b,l){b.componentStack={tag:1,parent:b.componentStack,type:l}}function bs(b,l){b.componentStack={tag:2,parent:b.componentStack,type:l}}function li(b){b.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):b.componentStack=b.componentStack.parent}var Ha=null;function gc(b,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var y=Ha||ai();Ha=null,b.errorMessage=f,b.errorComponentStack=y}}function _l(b,l){var f=b.onError(l);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function $a(b,l){var f=b.onShellError;f(l);var y=b.onFatalError;y(l),b.destination!==null?(b.status=za,R(b.destination,l)):(b.status=ja,b.fatalError=l)}function xd(b,l,f){Ei(l,"Suspense");var y=l.blockedBoundary,E=l.blockedSegment,N=f.fallback,q=f.children,K=new Set,me=pc(b,K),je=E.chunks.length,dt=Cl(b,je,me,E.formatContext,!1,!1);E.children.push(dt),E.lastPushedText=!1;var At=Cl(b,0,null,E.formatContext,!1,!1);At.parentFlushed=!0,l.blockedBoundary=me,l.blockedSegment=At;try{if(Uo(b,l,q),An(At.chunks,b.responseState,At.lastPushedText,At.textEmbedded),At.status=Ai,Cs(me,At),me.pendingTasks===0){li(l);return}}catch(ur){At.status=yd,me.forceClientRender=!0,me.errorDigest=_l(b,ur),gc(me,ur)}finally{l.blockedBoundary=y,l.blockedSegment=E}var Pt=Ji(b,N,y,dt,K,l.legacyContext,l.context,l.treeContext);Pt.componentStack=l.componentStack,b.pingedTasks.push(Pt),li(l)}function wu(b,l,f,y){Ei(l,f);var E=l.blockedSegment,N=_r(E.chunks,f,y,b.responseState,E.formatContext);E.lastPushedText=!1;var q=E.formatContext;E.formatContext=Do(q,f,y),Uo(b,l,N),E.formatContext=q,Mr(E.chunks,f),E.lastPushedText=!1,li(l)}function Cu(b){return b.prototype&&b.prototype.isReactComponent}function Ks(b,l,f,y,E){var N={};pu(l,N);var q=f(y,E);return Ws(f,y,q,E)}function Su(b,l,f,y,E){var N=f.render();f.props!==E&&(vc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(y)||"a component"),vc=!0);{var q=y.childContextTypes;if(q!=null){var K=l.legacyContext,me=su(f,y,K,q);l.legacyContext=me,to(b,l,N),l.legacyContext=K;return}}to(b,l,N)}function mc(b,l,f,y){bs(l,f);var E=ds(f,l.legacyContext),N=Si(f,y,E);yl(N,f,y,E),Su(b,l,N,f,y),li(l)}var Ar={},Al={},_u={},Xs={},vc=!1,wd={},Cd=!1,Ro=!1,Sd=!1;function yc(b,l,f,y){var E;if(E=ds(f,l.legacyContext),Sl(l,f),f.prototype&&typeof f.prototype.render=="function"){var N=pn(f)||"Unknown";Ar[N]||(o("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.",N,N),Ar[N]=!0)}var q=Ks(b,l,f,y,E),K=vo();if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){var me=pn(f)||"Unknown";Al[me]||(o("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.",me,me,me),Al[me]=!0)}if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){{var je=pn(f)||"Unknown";Al[je]||(o("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.",je,je,je),Al[je]=!0)}yl(q,f,y,E),Su(b,l,q,f,y)}else if(Au(f),K){var dt=l.treeContext,At=1,Pt=0;l.treeContext=uu(dt,At,Pt);try{to(b,l,q)}finally{l.treeContext=dt}}else to(b,l,q);li(l)}function Au(b){{if(b&&b.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",b.displayName||b.name||"Component"),b.defaultProps!==void 0){var l=pn(b)||"Unknown";wd[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),wd[l]=!0)}if(typeof b.getDerivedStateFromProps=="function"){var f=pn(b)||"Unknown";Xs[f]||(o("%s: Function components do not support getDerivedStateFromProps.",f),Xs[f]=!0)}if(typeof b.contextType=="object"&&b.contextType!==null){var y=pn(b)||"Unknown";_u[y]||(o("%s: Function components do not support contextType.",y),_u[y]=!0)}}}function Eu(b,l){if(b&&b.defaultProps){var f=jo({},l),y=b.defaultProps;for(var E in y)f[E]===void 0&&(f[E]=y[E]);return f}return l}function _d(b,l,f,y,E){Sl(l,f.render);var N=Ks(b,l,f.render,y,E),q=vo();if(q){var K=l.treeContext,me=1,je=0;l.treeContext=uu(K,me,je);try{to(b,l,N)}finally{l.treeContext=K}}else to(b,l,N);li(l)}function yo(b,l,f,y,E){var N=f.type,q=Eu(N,y);Js(b,l,N,q,E)}function xs(b,l,f,y){f._context===void 0?f!==f.Consumer&&(Sd||(Sd=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var E=y.children;typeof E!="function"&&o("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.");var N=Oa(f),q=E(N);to(b,l,q)}function bo(b,l,f,y){var E=f._context,N=y.value,q=y.children,K;K=l.context,l.context=au(E,N),to(b,l,q),l.context=Lf(E),K!==l.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Ad(b,l,f,y,E){Ei(l,"Lazy");var N=f._payload,q=f._init,K=q(N),me=Eu(K,y);Js(b,l,K,me,E),li(l)}function Js(b,l,f,y,E){if(typeof f=="function")if(Cu(f)){mc(b,l,f,y);return}else{yc(b,l,f,y);return}if(typeof f=="string"){wu(b,l,f,y);return}switch(f){case Jl:case Zo:case Ie:case it:case $i:{to(b,l,y.children);return}case Ln:{Ei(l,"SuspenseList"),to(b,l,y.children),li(l);return}case ad:throw new Error("ReactDOMServer does not yet support scope components.");case $r:{xd(b,l,y);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case dr:{_d(b,l,f,y,E);return}case Qr:{yo(b,l,f,y,E);return}case Ze:{bo(b,l,f,y);return}case $t:{xs(b,l,f,y);return}case Ea:{Ad(b,l,f,y);return}}var N="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+N))}function Ed(b,l){typeof Symbol=="function"&&b[Symbol.toStringTag]==="Generator"&&(Cd||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Cd=!0),b.entries===l&&(Ro||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ro=!0)}function to(b,l,f){try{return Td(b,l,f)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||(Ha=Ha!==null?Ha:ai()),y}}function Td(b,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case sd:{var y=f,E=y.type,N=y.props,q=y.ref;Js(b,l,E,N,q);return}case Xl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ea:{var K=f,me=K._payload,je=K._init,dt;try{dt=je(me)}catch(ci){throw typeof ci=="object"&&ci!==null&&typeof ci.then=="function"&&Ei(l,"Lazy"),ci}to(b,l,dt);return}}if(jt(f)){bc(b,l,f);return}var At=cs(f);if(At){Ed(f,At);var Pt=At.call(f);if(Pt){var ur=Pt.next();if(!ur.done){var Gr=[];do Gr.push(ur.value),ur=Pt.next();while(!ur.done);bc(b,l,Gr);return}return}}var Gn=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(Gn==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":Gn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Ti=l.blockedSegment;Ti.lastPushedText=mn(l.blockedSegment.chunks,f,b.responseState,Ti.lastPushedText);return}if(typeof f=="number"){var Ss=l.blockedSegment;Ss.lastPushedText=mn(l.blockedSegment.chunks,""+f,b.responseState,Ss.lastPushedText);return}typeof f=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function bc(b,l,f){for(var y=f.length,E=0;E<y;E++){var N=l.treeContext;l.treeContext=uu(N,y,E);try{Uo(b,l,f[E])}finally{l.treeContext=N}}}function xc(b,l,f){var y=l.blockedSegment,E=y.chunks.length,N=Cl(b,E,null,y.formatContext,y.lastPushedText,!0);y.children.push(N),y.lastPushedText=!1;var q=Ji(b,l.node,l.blockedBoundary,N,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(q.componentStack=l.componentStack.parent);var K=q.ping;f.then(K,K)}function Uo(b,l,f){var y=l.blockedSegment.formatContext,E=l.legacyContext,N=l.context,q=null;q=l.componentStack;try{return to(b,l,f)}catch(K){if(gu(),typeof K=="object"&&K!==null&&typeof K.then=="function"){xc(b,l,K),l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q;return}else throw l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q,K}}function Rd(b,l,f,y){var E=_l(b,y);if(l===null?$a(b,y):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,gc(l,y),l.parentFlushed&&b.clientRenderedBoundaries.push(l))),b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function ws(b){var l=this,f=b.blockedBoundary,y=b.blockedSegment;y.status=Ys,Qs(l,f,y)}function wc(b,l,f){var y=b.blockedBoundary,E=b.blockedSegment;if(E.status=Ys,y===null)l.allPendingTasks--,l.status!==za&&(l.status=za,l.destination!==null&&w(l.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var N=f===void 0?new Error("The render was aborted by the server without a reason."):f;y.errorDigest=l.onError(N);{var q="The server did not finish this Suspense boundary: ";N&&typeof N.message=="string"?N=q+N.message:N=q+String(N);var K=si;si=b;try{gc(y,N)}finally{si=K}}y.parentFlushed&&l.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(je){return wc(je,l,f)}),y.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var me=l.onAllReady;me()}}}function Cs(b,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===Ai&&Cs(b,f)}else{var y=b.completedSegments;y.push(l)}}function Qs(b,l,f){if(l===null){if(f.parentFlushed){if(b.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");b.completedRootSegment=f}if(b.pendingRootTasks--,b.pendingRootTasks===0){b.onShellError=Zs;var y=b.onShellReady;y()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===Ai&&Cs(l,f),l.parentFlushed&&b.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ws,b),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===Ai){Cs(l,f);var E=l.completedSegments;E.length===1&&l.parentFlushed&&b.partialBoundaries.push(l)}}if(b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function Hf(b,l){var f=l.blockedSegment;if(f.status===dc){ps(l.context);var y=null;y=si,si=l;try{to(b,l,l.node),An(f.chunks,b.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=Ai,Qs(b,l.blockedBoundary,f)}catch(N){if(gu(),typeof N=="object"&&N!==null&&typeof N.then=="function"){var E=l.ping;N.then(E,E)}else l.abortSet.delete(l),f.status=yd,Rd(b,l.blockedBoundary,f,N)}finally{si=y}}}function Tu(b){if(b.status!==za){var l=ud(),f=uc.current;uc.current=Vn;var y;y=Fa.getCurrentStack,Fa.getCurrentStack=ai;var E=Gs;cc(b.responseState);try{var N=b.pingedTasks,q;for(q=0;q<N.length;q++){var K=N[q];Hf(b,K)}N.splice(0,q),b.destination!==null&&Ko(b,b.destination)}catch(me){_l(b,me),$a(b,me)}finally{cc(E),uc.current=f,Fa.getCurrentStack=y,f===Vn&&ps(l)}}}function El(b,l,f){switch(f.parentFlushed=!0,f.status){case dc:{var y=f.id=b.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,Vr(l,b.responseState,y)}case Ai:{f.status=fc;for(var E=!0,N=f.chunks,q=0,K=f.children,me=0;me<K.length;me++){for(var je=K[me];q<je.index;q++)m(l,N[q]);E=Tl(b,l,je)}for(;q<N.length-1;q++)m(l,N[q]);return q<N.length&&(E=g(l,N[q])),E}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Tl(b,l,f){var y=f.boundary;if(y===null)return El(b,l,f);if(y.parentFlushed=!0,y.forceClientRender)return Qn(l,b.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),El(b,l,f),ll(l,b.responseState);if(y.pendingTasks>0){y.rootSegmentID=b.nextSegmentId++,y.completedSegments.length>0&&b.partialBoundaries.push(y);var E=y.id=zn(b.responseState);return ji(l,b.responseState,E),El(b,l,f),Po(l,b.responseState)}else{if(y.byteSize>b.progressiveChunkSize)return y.rootSegmentID=b.nextSegmentId++,b.completedBoundaries.push(y),ji(l,b.responseState,y.id),El(b,l,f),Po(l,b.responseState);ni(l,b.responseState);var N=y.completedSegments;if(N.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var q=N[0];return Tl(b,l,q),ln(l,b.responseState)}}function Ru(b,l,f){return od(l,b.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function Cc(b,l,f){return pr(l,b.responseState,f.formatContext,f.id),Tl(b,l,f),on(l,f.formatContext)}function ku(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];xo(b,l,f,N)}return y.length=0,ul(l,b.responseState,f.id,f.rootSegmentID)}function kd(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];if(!xo(b,l,f,N))return E++,y.splice(0,E),!1}return y.splice(0,E),!0}function xo(b,l,f,y){if(y.status===fc)return!0;var E=y.id;if(E===-1){var N=y.id=f.rootSegmentID;if(N===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Cc(b,l,y)}else return Cc(b,l,y),Ef(l,b.responseState,E)}function Ko(b,l){p();try{var f=b.completedRootSegment;f!==null&&b.pendingRootTasks===0&&(Tl(b,l,f),b.completedRootSegment=null,fn(l,b.responseState));var y=b.clientRenderedBoundaries,E;for(E=0;E<y.length;E++){var N=y[E];Ru(b,l,N)}y.splice(0,E);var q=b.completedBoundaries;for(E=0;E<q.length;E++){var K=q[E];ku(b,l,K)}q.splice(0,E),v(l),p(l);var me=b.partialBoundaries;for(E=0;E<me.length;E++){var je=me[E];if(!kd(b,l,je)){b.destination=null,E++,me.splice(0,E);return}}me.splice(0,E);var dt=b.completedBoundaries;for(E=0;E<dt.length;E++){var At=dt[E];ku(b,l,At)}dt.splice(0,E)}finally{v(l),b.allPendingTasks===0&&b.pingedTasks.length===0&&b.clientRenderedBoundaries.length===0&&b.completedBoundaries.length===0&&(b.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),w(l))}}function Id(b){a(function(){return Tu(b)})}function $f(b,l){if(b.status===ja){b.status=za,R(l,b.fatalError);return}if(b.status!==za&&b.destination===null){b.destination=l;try{Ko(b,l)}catch(f){_l(b,f),$a(b,f)}}}function Rl(b,l){try{var f=b.abortableTasks;f.forEach(function(y){return wc(y,b,l)}),f.clear(),b.destination!==null&&Ko(b,b.destination)}catch(y){_l(b,y),$a(b,y)}}function qa(b,l){return new Promise(function(f,y){var E,N,q=new Promise(function(Pt,ur){N=Pt,E=ur});function K(){var Pt=new ReadableStream({type:"bytes",pull:function(ur){$f(je,ur)},cancel:function(ur){Rl(je)}},{highWaterMark:0});Pt.allReady=q,f(Pt)}function me(Pt){q.catch(function(){}),y(Pt)}var je=hc(b,Br(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),_o(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,N,K,me,E);if(l&&l.signal){var dt=l.signal,At=function(){Rl(je,dt.reason),dt.removeEventListener("abort",At)};dt.addEventListener("abort",At)}Id(je)})}ap.renderToReadableStream=qa,ap.version=e}()),ap}var v0;function R4(){if(v0)return Ec;v0=1;var r,e;return process.env.NODE_ENV==="production"?(r=_4(),e=A4()):(r=E4(),e=T4()),Ec.version=r.version,Ec.renderToString=r.renderToString,Ec.renderToStaticMarkup=r.renderToStaticMarkup,Ec.renderToNodeStream=r.renderToNodeStream,Ec.renderToStaticNodeStream=r.renderToStaticNodeStream,Ec.renderToReadableStream=e.renderToReadableStream,Ec}var Sw=R4();const Gd=yf(Sw);function ch(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Hu={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var o,i,a,c,d,h;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const p=this._canvas.getContext("2d");if(p){p.font=e;const m=p.measureText(r).width;return this._charWidthMap.set(t,m),m}}catch{}let n;return r===" "?n=parseInt(((o=e.match(/(\d+)px/))==null?void 0:o[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((a=e.match(/(\d+)px/))==null?void 0:a[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((c=e.match(/(\d+)px/))==null?void 0:c[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((d=e.match(/(\d+)px/))==null?void 0:d[1])||"14")*.25:n=parseInt(((h=e.match(/(\d+)px/))==null?void 0:h[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(S.isValidElement(r))try{const t=Sw.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var i;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,o=this._cache.get(n);if(o!==void 0)return o;try{this._canvas||(this._canvas=document.createElement("canvas"));const a=this._canvas.getContext("2d");if(a){a.font=t;const c=a.measureText(r),d=Math.ceil(c.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(p=>this._cache.delete(p)),this._cache.set(n,d),d}}catch{}try{const a=document.createElement("span");a.style.font=t,a.style.position="absolute",a.style.visibility="hidden",a.style.whiteSpace="nowrap",a.textContent=r,document.body.appendChild(a);const c=Math.ceil(a.getBoundingClientRect().width);return document.body.removeChild(a),this._cache.set(n,c),c}catch{}try{let a=0;for(let d=0;d<r.length;d++)a+=this.measureCharWidth(r[d],t);a*=.95;const c=Math.ceil(a);return this._cache.set(n,c),c}catch{}try{const a=parseInt(((i=t.match(/(\d+)px/))==null?void 0:i[1])||"14");let c=0;for(let h=0;h<r.length;h++){const p=r[h];p===" "?c+=.33:/^[A-Z]$/.test(p)?c+=.67:/^[a-z]$/.test(p)?c+=.5:/^\d$/.test(p)?c+=.6:/^[.,;:!?]$/.test(p)?c+=.25:c+=.67}const d=Math.ceil(c*a);return this._cache.set(n,d),d}catch{const c=r.length*10;return this._cache.set(n,c),c}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:o="",optionRenderer:i,type:a="Primary",isMulti:c=!1}){if(!r.current)return 200;try{let d=0;if(e&&e.length>0){const v=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(T,_)=>e[Math.floor(_*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],w=Array.from(new Set(v.filter(Boolean)));for(const T of w){if(!T)continue;const _=this.measureRenderedOptionWidth(T,i);d=Math.max(d,_)}}let h=0;if(!c&&t)h=this.measureRenderedOptionWidth(t,i);else if(c&&n&&n.length){if(n.length===1)h=this.measureRenderedOptionWidth(n[0],i);else if(h=this.measureTextWidth(`${n.length} selected`),n.length>0){let v=0;for(const w of n){const T=this.measureRenderedOptionWidth(w,i);v=Math.max(v,T)}h=Math.max(h,v)}}let p=0;o&&(p=this.measureReactNodeWidth(o));const g=Math.max(d,h,p,50);if(r.current){const v=window.getComputedStyle(r.current),w=parseFloat(v.paddingLeft||"0")+parseFloat(v.paddingRight||"0"),T=parseFloat(v.borderLeftWidth||"0")+parseFloat(v.borderRightWidth||"0"),_=a==="Primary"?30:20,A=c?24:0,R=Math.ceil(g*.05)+10;return Math.ceil(g+w+T+_+A+R)}return g+60}catch{return 200}}};var Io=(r=>(r.E="East",r.N="North",r.S="South",r.W="West",r))(Io||{}),bf=(r=>(r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.N="North",r.NE="NorthEast",r.NW="NorthWest",r.S="South",r.SE="SouthEast",r.SW="SouthWest",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(bf||{});function Cv(r,e,t,n){if(!r.current||!e.current)return;const o=r.current.getBoundingClientRect(),i=e.current.getBoundingClientRect();let a={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":a=i?{bottom:window.innerHeight-o.top,left:o.left+o.width/2-i.width/2}:{bottom:window.innerHeight-o.top,left:o.left};break;case"NorthWest":a={bottom:window.innerHeight-o.top,left:o.left};break;case"NorthEast":a={bottom:window.innerHeight-o.top,right:window.innerWidth-o.left-o.width};break;case"South":a=i?{top:o.bottom,left:o.left+o.width/2-i.width/2}:{top:o.bottom,left:o.left};break;case"SouthWest":a={top:o.bottom,left:o.left};break;case"SouthEast":a={top:o.bottom,right:window.innerWidth-o.left-o.width};break;case"East":a=i?{top:o.top+o.height/2-i.height/2,left:o.right}:{top:o.top,left:o.right};break;case"EastNorth":a={bottom:window.innerHeight-o.top-o.height,left:o.right};break;case"EastSouth":a={top:o.top,left:o.right};break;case"West":a=i?{top:o.top+o.height/2-i.height/2,right:window.innerWidth-o.left}:{top:o.top,right:window.innerWidth-o.left};break;case"WestNorth":a={bottom:window.innerHeight-o.top-o.height,right:window.innerWidth-o.left};break;case"WestSouth":a={top:o.top,right:window.innerWidth-o.left};break;default:a={top:o.top,left:o.left}}n&&(n.x&&a.left&&(a.left+=n.x),n.y&&a.top&&(a.top+=n.y)),a=Aw(a,i),e.current.style.top=a.top+"px",e.current.style.left=a.left+"px",e.current.style.bottom=a.bottom+"px",e.current.style.right=a.right+"px"}function _w(r,e,t,n){if(!r)return;const o=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!o)return;const i=r.getBoundingClientRect(),a=o.getBoundingClientRect();let c={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":c=a?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-a.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":c={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":c={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":c=a?{top:i.bottom,left:i.left+i.width/2-a.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":c={top:i.bottom,left:i.left};break;case"SouthEast":c={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":c=a?{top:i.top+i.height/2-a.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":c={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":c={top:i.top,left:i.right};break;case"West":c=a?{top:i.top+i.height/2-a.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":c={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":c={top:i.top,right:window.innerWidth-i.left};break;default:c={top:i.top,left:i.left}}return n&&(n.x&&c.left&&(c.left+=n.x),n.y&&c.top&&(c.top+=n.y)),c=Aw(c,a),o.style.top=c.top+"px",o.style.left=c.left+"px",o.style.bottom=c.bottom+"px",o.style.right=c.right+"px",c}function Aw(r,e,t=10){return r.left&&r.left<t&&(r.left=t),r.right&&r.right<t&&(r.right=t),r.top&&r.top<t&&(r.top=t),r.bottom&&r.bottom<t&&(r.bottom=t),r.left&&e&&r.left+e.width>window.innerWidth-t&&(r.left=window.innerWidth-e.width-t),r.right&&e&&r.right+e.width>window.innerWidth-t&&(r.right=window.innerWidth-e.width-t),r.top&&e&&r.top+e.height>window.innerHeight-t&&(r.top=window.innerHeight-e.height-t),r.bottom&&e&&r.bottom+e.height>window.innerHeight-t&&(r.bottom=window.innerHeight-e.height-t),r}function Pu(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const k4="_Tooltip_1khnz_1",I4="_Arrow_1khnz_17",y0={Tooltip:k4,Arrow:I4},Ew=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:o=10,direction:i=Io.S}=r,[a,c]=S.useState(!1),d=S.useRef(null),h=S.useRef(null),p=S.useRef(null),m=S.useCallback(()=>{c(!0),p.current&&(clearTimeout(p.current),p.current=null);const T=setTimeout(()=>b0(t,d,h,o,i),n);p.current=T},[t,n,o,i]),g=S.useCallback(()=>c(!1),[]);S.useEffect(()=>{const T=t.current;if(T)return T.addEventListener("mouseenter",m),T.addEventListener("mouseleave",g),()=>{T.removeEventListener("mouseenter",m),T.removeEventListener("mouseleave",g)}},[t,g,m]);const v=S.useCallback(()=>{b0(t,d,h,o,i)},[t,o,i]);S.useEffect(()=>{if(!t.current||!d.current||!a)return;const T=t.current.parentElement;let _=T;for(;_;)_.addEventListener("scroll",v),_=_.parentElement;return()=>{let A=T;for(;A;)A.removeEventListener("scroll",v),A=A.parentElement}},[t,v,a]),S.useEffect(()=>{v()},[e,v]);const w=S.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!a||w?null:Ls.createPortal(C.jsxs("div",{ref:d,className:Ge.clsx(y0.Tooltip,"NoSelect"),children:[e,C.jsx("div",{ref:h,className:y0.Arrow})]}),document.body)},lp="5px solid var(--ATooltip_background-color)";function b0(r,e,t,n,o=Io.S){if(!r.current||!e.current||!t.current)return;const i=M4(r.current,e.current,n,o);if(!i)return;const{left:a,top:c,arrowDir:d,arrow:h}=i;e.current.style.left=`${a}px`,e.current.style.top=`${c}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",d===Io.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderBottom=lp):d===Io.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderTop=lp):d===Io.W?(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=lp):d===Io.E&&(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=lp)}const Tc=5;function M4(r,e,t,n){const o=r.getBoundingClientRect(),i=e.getBoundingClientRect();function a(){if(window.innerHeight-o.bottom>i.height+t){const p=o.bottom+t,m=o.left+(o.width-i.width)/2,g=ch(m,Tc,window.innerWidth-Tc-i.width),v=Io.N;return{left:g,top:p,arrowDir:v,arrow:{left:m-g}}}}function c(){if(o.top>i.height+t){const p=o.top-i.height-t,m=o.left+(o.width-i.width)/2,g=ch(m,Tc,window.innerWidth-Tc-i.width),v=Io.S;return{left:g,top:p,arrowDir:v,arrow:{left:m-g}}}}function d(){if(window.innerWidth-o.right>i.width+t){const p=o.right+t,m=o.top+(o.height-i.height)/2,g=ch(m,Tc,window.innerHeight-Tc-i.height),v=Io.W;return{left:p,top:g,arrowDir:v,arrow:{top:m-g}}}}function h(){if(o.left>i.width+t){const p=o.left-i.width-t,m=o.top+(o.height-i.height)/2,g=ch(m,Tc,window.innerHeight-Tc-i.height),v=Io.E;return{left:p,top:g,arrowDir:v,arrow:{top:m-g}}}}if(n===Io.E)return d()||h()||a()||c();if(n===Io.S)return a()||c()||d()||h();if(n===Io.W)return h()||d()||a()||c();if(n===Io.N)return c()||a()||d()||h()}const L4="_ABase_c7a1t_1",D4="_UseDimming_c7a1t_6",O4="_Dimmer_c7a1t_6",N4="_Spinner_c7a1t_9",P4="_Dimmed_c7a1t_12",B4="_HasProgress_c7a1t_18",F4="_IsDimmed_c7a1t_36",j4="_IsLoading_c7a1t_41",z4="_IsDisabled_c7a1t_46",Pd={ABase:L4,UseDimming:D4,Dimmer:O4,Spinner:N4,Dimmed:P4,HasProgress:B4,IsDimmed:F4,IsLoading:j4,IsDisabled:z4},Kr=r=>{const{children:e,abaseRef:t,abaseCallbackRef:n,isDisabled:o,isLoading:i,isDimmed:a,tooltip:c,tooltipDistance:d=10,tooltipDelay:h=0,tooltipDirection:p=Io.S,progress:m,ProgressRenderer:g=H4,progressProps:v,...w}=r,T=S.useRef(null),_=S.useMemo(()=>t??T,[t]),A=S.useMemo(()=>typeof o=="string"&&o!==""?o:c!==void 0?c:"",[o,c]),R=S.useMemo(()=>o||i||a,[o,i,a]),D=S.useMemo(()=>o!==void 0||i!==void 0||a!==void 0,[o,i,a]),I=typeof m=="number"&&i;return C.jsxs("div",{...w,ref:n||_,className:Ge.clsx(w.className,Pd.ABase,D&&Pd.UseDimming,R&&Pd.Dimmed,I&&Pd.HasProgress),children:[e,D&&C.jsx("div",{className:Ge.sclsx(Pd,"Dimmer",o&&"IsDisabled",i&&"IsLoading",a&&"IsDimmed",I&&"HasProgress")}),i&&C.jsxs("div",{className:Ge.sclsx(Pd,"Spinner",o&&"IsDisabled",i&&"IsLoading",I&&"HasProgress"),children:[C.jsx(en,{icon:"Spinner"}),I&&C.jsx(g,{progress:m,...v})]}),C.jsx(Ew,{delay:h,direction:p,distance:d,targetRef:_,tooltip:A})]})},H4=({progress:r,...e})=>C.jsx(Cw,{progress:r,...e}),$4="_AButton_vulhu_1",q4="_Primary_vulhu_14",U4="_Secondary_vulhu_19",W4="_Alter_vulhu_24",V4="_AIconButton_vulhu_30",G4="_AThemeButton_vulhu_71",Ch={AButton:$4,Primary:q4,Secondary:U4,Alter:W4,AIconButton:V4,AThemeButton:G4},Y4=["Primary","Secondary","Alter","Raw"],Go=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...o}=r,i=S.useMemo(()=>o.isDisabled||o.isLoading,[o.isDisabled,o.isLoading]),a=S.useCallback(c=>{i||t==null||t(c)},[i,t]);return C.jsx(Kr,{...o,className:Ge.clsx(o.className,Ch.AButton,e!=="Raw"&&Ch[e],"IsClickable",!i&&!n&&"IsInteractive"),onClick:a})},Z4=["Primary","Secondary","Raw"],So=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:o,isDisabled:i,isLoading:a,tooltip:c,className:d,...h}=r,p=S.useMemo(()=>i||a,[i,a]),m=S.useCallback(v=>{p||o==null||o(v)},[p,o]),g=S.useMemo(()=>wv.includes(e)?C.jsx(en,{icon:e,size:t}):e,[e,t]);return C.jsx(Kr,{className:Ge.clsx(Ch.AIconButton,!i&&!a&&"IsClickable",n!=="Raw"&&Ch[n],d),isDisabled:i,isLoading:a,tooltip:c,onClick:m,...h,children:g})};function wn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=S.useState(e);return S.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const K4="_AWrap_u1f1h_1",X4="_Label_u1f1h_8",J4="_Asterisk_u1f1h_19",Q4="_HelperTextConatiner_u1f1h_23",e5="_HelperText_u1f1h_23",Bd={AWrap:K4,Label:X4,Asterisk:J4,HelperTextConatiner:Q4,HelperText:e5,Error:"_Error_u1f1h_38"},t5=["Default","Error"],Zu=r=>{if(!r)return[{},{}];const e={},t={},n=["errorMessage","helperText","label","labelProps","wrapId","wrapProps","wrapType"];for(const o in r)n.includes(o)?e[o]=r[o]:t[o]=r[o];return[e,t]},Wc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:o="Default",label:i,labelProps:a,wrapId:c,children:d}=r,h=S.useRef(null),[p,m]=S.useState({height:0}),g=S.useRef(null),[v,w]=S.useMemo(()=>{let _=n,A=o;if(Array.isArray(t)){const R=t.filter(Boolean);R.length>0&&([_,A]=[R,"Error"])}else t&&([_,A]=[t,"Error"]);return Array.isArray(_)&&(A!=="Error"&&(_=_.filter(Boolean)),_=_.map((R,D)=>C.jsxs(S.Fragment,{children:[R,C.jsx("br",{})]},ar.key(D)))),[_,A]},[n,t,o]);S.useEffect(()=>{if(!v||!h.current)m({height:0});else{const _=h.current.getBoundingClientRect();m({height:_.height,marginTop:_.height===0?0:6})}},[v]);const T=S.useMemo(()=>{switch(typeof(a==null?void 0:a.prefix)){case"string":return C.jsx(en,{height:"1rem",icon:a.prefix,width:"1rem"});case"boolean":return C.jsx(en,{height:10,icon:"Target",width:10});default:return a==null?void 0:a.prefix}},[a==null?void 0:a.prefix]);return C.jsxs("div",{...e,ref:g,className:Ge.clsx(e==null?void 0:e.className,Bd.AWrap),id:c,children:[i&&C.jsxs("div",{className:Ge.clsx(Bd.Label,"NoSelect",a==null?void 0:a.className),style:a==null?void 0:a.style,children:[a==null?void 0:a.leftAddon,T,i,(a==null?void 0:a.asterisk)&&C.jsx(Kr,{className:Bd.Asterisk,tooltip:wr.AWrap.Asterisk,children:"*"}),a==null?void 0:a.rightAddon]}),d,v!==void 0&&C.jsx("div",{className:Ge.clsx(Bd.HelperTextConatiner,"NoSelect"),style:p,children:C.jsx("div",{ref:h,className:Ge.clsx(Bd.HelperText,Bd[w]),children:v})})]})},r5="_ASwitch_nlcij_1",n5="_Track_nlcij_6",o5="_Truthy_nlcij_13",i5="_Thumb_nlcij_17",Yf={ASwitch:r5,Track:n5,Truthy:o5,Thumb:i5},Tw=r=>{const{useCheck:e,...t}=r,[{wrapId:n,wrapProps:o,labelProps:i,...a},c]=Zu(t),[d,h]=wn(e,!1),p=S.useCallback(m=>{var g;c.isDisabled||c.isLoading||(h==null||h(!d),(g=c.onClick)==null||g.call(c,m))},[c,d,h]);return C.jsx(Wc,{wrapId:n,wrapProps:o,labelProps:i,...a,children:C.jsx(Kr,{...c,className:Yf.ASwitch,onClick:p,children:C.jsx("div",{className:Ge.clsx(Yf.Track,d&&Yf.Truthy),children:C.jsx("div",{className:Ge.clsx(Yf.Thumb,d&&Yf.Truthy)})})})})},s5={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-95","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-10","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},Lo=zc.cloneDeep(s5);ar.keys(Lo.semantic).forEach(r=>{const e=Lo.semantic[r];ar.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const wg=ar.keys(Lo.palette),Rw=ar.keys(Lo.palette[wg[0]]);function a5(){return fo.paletteMode}function l5(r,e=fo.paletteMode){return Lo.palette[e][r]}function c5(r){return Sg(r)}const Kp=[];function kw(r){fo.paletteMode=r,Rw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.palette[r][e])),Kp.forEach(e=>e(r))}function Iw(r,e="all"){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?wg.forEach(i=>{Lo.palette[i][n]=o}):Lo.palette[e][n]=o)})}const sf=ar.keys(Lo.semantic),Mw=ar.keys(Lo.semantic[sf[0]]);function u5(){return fo.semanticMode}function d5(r,e=fo.semanticMode){return Lo.semantic[e][r]}function f5(r){return Sg(r)}const Xp=[];function Sv(r){fo.semanticMode=r,document.documentElement.setAttribute("data-theme",r),Mw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.semantic[r][e])),Xp.forEach(e=>e(r)),fo.save==="localStorage"?localStorage.setItem("semanticMode",r):fo.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function Lw(r,e=fo.semanticMode){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?sf.forEach(i=>{Lo.semantic[i][n]=o}):Lo.semantic[e][n]=o)})}const Dw=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition","Transition-Enabled"],Ow=["ABase_Dimming_background-color"],Nw=["ATooltip_background-color","ATooltip_color"],Pw=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],Bw=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],Fw=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],jw=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_hover_border","AEditor_Error_focus_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],zw=["ACheckBox_color"],Hw=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],$w=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],qw=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],Uw=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],Ww=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],Vw=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],Gw=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],Yw=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],Zw=["AListView_border-thin","AListView_border-thick"],Kw=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],Xw=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],Jw=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],Qw=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],eC=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],tC=["ADivideFrame_DividerInner_background-color"],rC=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],nC=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],oC=["AWrap_Error_color"],iC=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],sC=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],h5=[...Dw,...Ow,...Nw,...Pw,...Bw,...Fw,...jw,...zw,...Hw,...$w,...qw,...Uw,...Ww,...Vw,...Gw,...Yw,...Zw,...Kw,...Xw,...Jw,...Qw,...eC,...tC,...rC,...nC,...oC,...iC,...sC],Cg={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","Transition-Enabled":"1","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_hover_border:"1px solid var(--alert-danger)",AEditor_Error_focus_border:"1px solid var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AFileUploader_background-color":"var(--background-normal)",AFileUploader_brand_color:"var(--acent-brand)",AFileUploader_disabled_color:"var(--label-neutral)",AFileUploader_error_color:"var(--alert-danger)",AFileUploader_text_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function p5(r){return Cg[r]}function g5(r){return Sg(r)}function aC(r){ar.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),Cg[t]=n)})}function m5(r){ar.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const o=Lo.semantic[fo.semanticMode][n];o!==void 0&&(document.documentElement.style.setProperty(t,o),Cg[t]=o)})}const fo={paletteMode:wg[0],semanticMode:sf[0],save:"",followDeviceSetting:!1};function v5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(fo.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),o=a=>{fo.semanticMode=a.matches?"dark":"light"};o(n);const i=a=>o(a);n.addEventListener("change",i)}if(e!==void 0){if(fo.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");sf.includes(n)&&(fo.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");sf.includes(n)&&(fo.semanticMode=n)}}r!==void 0&&(fo.semanticMode=r),kw(fo.paletteMode),Sv(fo.semanticMode),Iw(Lo.palette[fo.paletteMode]),Lw(Lo.semantic[fo.semanticMode]),aC(Cg)}function y5(r){r.type==="semanticModeChange"?Xp.push(r.listener):r.type==="paletteModeChange"?Kp.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function b5(r){if(r.type==="semanticModeChange"){const e=Xp.indexOf(r.listener);e!==-1&&Xp.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Kp.indexOf(r.listener);e!==-1&&Kp.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function Sg(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function x5(r){Object.assign(Ge.additionalClasses,r),Ge.updateKeys(),Ge.additionalClasses=Ge.additionalClasses}const uh={getCurrentPaletteMode:a5,getPaletteValue:l5,getPaletteDeepValue:c5,changePaletteMode:kw,editPalette:Iw,getCurrentSemanticMode:u5,getSemanticValue:d5,getSemanticDeepValue:f5,changeSemanticMode:Sv,editSemantic:Lw,getComponentStyleValue:p5,getComponentStyleDeepValue:g5,editComponentStyle:aC,editComponentStyleWithSemantic:m5,init:v5,addEventListener:y5,removeEventListener:b5,getDeepValue:Sg,addClasses:x5},w5=r=>{const{onChange:e,onClick:t,type:n="Icon",...o}=r,[i,a]=S.useState(uh.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),c=S.useCallback(d=>{const h=uh.getCurrentSemanticMode();let p="light";h==="light"?p="dark":h==="dark"&&(p="light"),uh.changeSemanticMode(p),a(C5[p]),e==null||e(p),t==null||t(d)},[e,t]);if(n==="Icon")return C.jsx(So,{...o,className:Ge.clsx(Ch.AThemeButton,o.className,"IsInteractive"),icon:i,type:"Raw",onClick:c});if(n==="Switch")return C.jsx(Tw,{...o,useCheck:[uh.getCurrentSemanticMode()==="dark",c]})},C5={light:"Sun",dark:"Moon"},S5="_ACheckBoxWrap_1ozuz_1",_5="_ACheckBox_1ozuz_1",x0={ACheckBoxWrap:S5,ACheckBox:_5},af=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:o,onClick:i,...a}=r,[c,d]=wn(e,!1),h=S.useCallback(p=>{n||o||(d==null||d(!c),i==null||i(p))},[n,o,i,c,d]);return C.jsx(Kr,{...a,className:Ge.clsx(a.className,x0.ACheckBoxWrap),isDisabled:n,isLoading:o,onClick:h,children:C.jsx(en,{className:x0.ACheckBox,icon:t?"Check.Indeterminate":c?"Check.Checked":"Check.UnChecked"})})};function A5(r){return typeof r=="function"}function E5(r,e){return A5(r)?r(e):r}const Or={getContent:E5};class w0{constructor(e){fe(this,"capacity");fe(this,"cache",new Map);this.capacity=e}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}delete(e){return this.cache.delete(e)}clear(){this.cache.clear()}entries(){return Array.from(this.cache.entries())}}const ju=class ju{constructor(){fe(this,"databases",{});fe(this,"caches",{});fe(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return ju.instance||(ju.instance=new ju),ju.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new w0(this.DEFAULT_CACHE_SIZE)),this.caches[n]}async getDB(e,t,n=1){return this.databases[e]?this.databases[e]:new Promise((o,i)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),i(new Error("IndexedDB not supported"));return}const a=window.indexedDB.open(e,n);a.onerror=c=>{console.error("IndexedDB 연결 오류:",c.target.error),i(c.target.error)},a.onsuccess=c=>{const d=c.target.result;this.databases[e]=d,o(d)},a.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(t)||d.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,n){this.getCache(e,t).put(n.id,{...n});const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const p=c.put(n);p.onsuccess=()=>d(),p.onerror=m=>{console.error("데이터 저장 오류:",m.target.error),h(m.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.put(d.id,{...d}));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=p=>{console.error("배치 저장 오류:",p.target.error),h(p.target.error)},n.forEach(p=>c.put(p))})}async get(e,t,n){const o=this.getCache(e,t),i=o.get(n);if(i)return i;const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((h,p)=>{const m=d.get(n);m.onsuccess=()=>{const g=m.result;g&&o.put(n,g),h(g||null)},m.onerror=g=>{console.error("데이터 조회 오류:",g.target.error),p(g.target.error)}})}async getByIndex(e,t,n,o){const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((h,p)=>{const m=d.getAll(o);m.onsuccess=()=>{const g=m.result,v=this.getCache(e,t);g.forEach(w=>{w&&w.id&&v.put(w.id,w)}),h(g)},m.onerror=g=>{console.error("인덱스 조회 오류:",g.target.error),p(g.target.error)}})}async delete(e,t,n){this.getCache(e,t).delete(n);const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const p=c.delete(n);p.onsuccess=()=>d(),p.onerror=m=>{console.error("데이터 삭제 오류:",m.target.error),h(m.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.delete(d));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=p=>{console.error("배치 삭제 오류:",p.target.error),h(p.target.error)},n.forEach(p=>c.delete(p))})}async getAll(e,t){const i=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((a,c)=>{const d=i.getAll();d.onsuccess=()=>{const h=d.result,p={},m=this.getCache(e,t);h.forEach(g=>{g.id&&(p[g.id]=g,m.put(g.id,g))}),a(p)},d.onerror=h=>{console.error("데이터 전체 조회 오류:",h.target.error),c(h.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((c,d)=>{const h=a.clear();h.onsuccess=()=>c(),h.onerror=p=>{console.error("데이터 초기화 오류:",p.target.error),d(p.target.error)}})}getCached(e,t,n){return this.getCache(e,t).get(n)||null}clearCached(e,t){this.getCache(e,t).clear()}setCacheSize(e,t,n){const o=`${e}_${t}`,a=this.getCache(e,t).entries();this.caches[o]=new w0(n);for(const[c,d]of a)this.caches[o].get(c)===void 0&&c!==void 0&&this.caches[o].put(c,d)}};fe(ju,"instance");let O1=ju;const na=O1.getInstance(),sa={save:(r,e,t)=>na.save(r,e,t),get:(r,e,t)=>na.get(r,e,t),delete:(r,e,t)=>na.delete(r,e,t),getAll:(r,e)=>na.getAll(r,e),clear:(r,e)=>na.clear(r,e),batchSave:(r,e,t)=>na.batchSave(r,e,t),batchDelete:(r,e,t)=>na.batchDelete(r,e,t),getByIndex:(r,e,t,n)=>na.getByIndex(r,e,t,n),getCached:(r,e,t)=>na.getCached(r,e,t),clearCached:(r,e)=>na.clearCached(r,e),setCacheSize:(r,e,t)=>na.setCacheSize(r,e,t)};function lC(r,e,t={}){const{dataFieldName:n="data"}=t,[o,i]=S.useState(!1),[a,c]=S.useState(null),d=S.useRef(new Map);S.useEffect(()=>{const z=d.current;return()=>{z.forEach(G=>G.abort()),z.clear()}},[]);const h=S.useCallback(z=>{const G=d.current,pe=G.get(z);pe&&pe.abort();const P=new AbortController;return G.set(z,P),P},[]),p=S.useCallback(z=>{d.current.delete(z)},[]),m=S.useCallback(async(z,G)=>{try{i(!0),c(null),h(z);const pe=await G();return p(z),pe}catch(pe){return pe instanceof Error&&pe.name==="AbortError"||c(pe instanceof Error?pe:new Error(String(pe))),null}finally{i(!1)}},[h,p]),g=S.useCallback(async(z,G)=>z?await m(`save_${z}`,async()=>(await sa.save(r,e,{id:z,[n]:G,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,m]),v=S.useCallback(async z=>z.length?await m(`batch_save_${Date.now()}`,async()=>{const G=z.map(pe=>({id:pe.id,[n]:pe.data,updatedAt:new Date().toISOString()}));return await sa.batchSave(r,e,G),!0})===!0:!1,[r,e,n,m]),w=S.useCallback(async z=>z?await m(`get_${z}`,async()=>{const G=await sa.get(r,e,z);return(G==null?void 0:G[n])||null}):null,[r,e,n,m]),T=S.useCallback(z=>{if(!z)return null;const G=sa.getCached(r,e,z);return(G==null?void 0:G[n])||null},[r,e,n]),_=S.useCallback(async z=>z?await m(`delete_${z}`,async()=>(await sa.delete(r,e,z),!0))===!0:!1,[r,e,m]),A=S.useCallback(async z=>z.length?await m(`batch_delete_${Date.now()}`,async()=>(await sa.batchDelete(r,e,z),!0))===!0:!1,[r,e,m]),R=S.useCallback(async()=>await m(`get_all_${Date.now()}`,async()=>{const z=await sa.getAll(r,e);return Object.entries(z).reduce((G,[pe,P])=>(G[pe]=P[n],G),{})})||{},[r,e,n,m]),D=S.useCallback(async()=>await m(`clear_all_${Date.now()}`,async()=>(await sa.clear(r,e),!0))===!0,[r,e,m]),I=S.useCallback(z=>{const G=d.current.get(z);G&&(G.abort(),d.current.delete(z))},[]),B=S.useCallback(()=>{new Map(d.current).forEach(G=>G.abort()),d.current.clear()},[]),F=S.useCallback(z=>{sa.setCacheSize(r,e,z)},[r,e]),j=S.useCallback(()=>{sa.clearCached(r,e)},[r,e]);return{save:g,get:w,delete:_,getAll:R,clearAll:D,batchSave:v,batchDelete:A,getCached:T,setCacheSize:F,clearCache:j,cancelOperation:I,cancelAllOperations:B,isLoading:o,error:a}}const T5="LayoutDB",R5="layouts";function cC(){const r=lC(T5,R5,{dataFieldName:"lengths"}),[e,t]=S.useState({}),n=S.useRef({}),o=async(p,m)=>await r.save(p,m),i=async p=>await r.get(p),a=p=>r.getCached(p),c=p=>{const m=a(p);return m?{data:m,isLoaded:!0}:n.current[p]!==void 0?{data:n.current[p],isLoaded:!!e[p]}:(e[p]||(n.current[p]=null,i(p).then(g=>{n.current[p]=g,t(v=>({...v,[p]:!0}))})),{data:null,isLoaded:!1})},d=async p=>(t(m=>{const g={...m};return delete g[p],g}),n.current[p]!==void 0&&delete n.current[p],await r.delete(p)),h=S.useCallback(()=>{t({}),n.current={}},[]);return{save:o,get:i,getCached:a,getSync:c,deleteItem:d,resetSyncState:h,isLoading:r.isLoading,error:r.error}}const k5="_ARowFrame_1vo43_1",I5="_AColFrame_1vo43_7",M5="_AOverflowFrame_1vo43_13",L5="_ADivideFrame_1vo43_22",D5="_Row_1vo43_30",O5="_Col_1vo43_33",N5="_FadeIn_1vo43_36",P5="_NoTransition_1vo43_39",B5="_ChildFrame_1vo43_43",F5="_Divider_1vo43_61",j5="_IsMoving_1vo43_69",z5="_NoDraggable_1vo43_69",H5="_DividerInner_1vo43_72",$5="_IsClicked_1vo43_97",q5="_RemoteButton_1vo43_132",U5="_isExpanded_1vo43_139",uo={ARowFrame:k5,AColFrame:I5,AOverflowFrame:M5,ADivideFrame:L5,Row:D5,Col:O5,FadeIn:N5,NoTransition:P5,ChildFrame:B5,Divider:F5,IsMoving:j5,NoDraggable:z5,DividerInner:H5,IsClicked:$5,RemoteButton:q5,isExpanded:U5},Rn=r=>C.jsx(Kr,{...r,className:Ge.clsx(uo.ARowFrame,r.className),children:r.children}),uC=r=>C.jsx("div",{...r,className:Ge.clsx(uo.AColFrame,r.className),children:r.children}),el=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:o,className:i,noOverflowTooltip:a,...c}=r,d=S.useRef(null),h=S.useMemo(()=>n??d,[n]),[p,m]=S.useState(!1),g=S.useCallback(()=>m(!0),[]),v=S.useCallback(()=>m(!1),[]);S.useEffect(()=>{const T=h.current;if(T)return T.addEventListener("mouseenter",g),T.addEventListener("mouseleave",v),()=>{T.removeEventListener("mouseenter",g),T.removeEventListener("mouseleave",v)}},[h,g,v]);const w=S.useMemo(()=>o?"":a||!p||!h.current?e:h.current.scrollWidth>h.current.clientWidth?t:e,[h,o,t,e,a,p]);return C.jsx(Kr,{...c,children:t,abaseRef:h,className:Ge.clsx(uo.AOverflowFrame,i),isDisabled:o,tooltip:w})},dC=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:C.jsx(S.Suspense,{children:t[e]})},fC=S.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:o=40,children:i,childStyle:a,childClassName:c,dividerStyle:d,dividerClassName:h,dividerPadding:p,dividerInnerClassName:m,dividerInnerStyle:g,showRemote:v,ShowRemoteRenderer:w=W5,noDividerDraggable:T,resources:_,...A}=r,R=S.useMemo(()=>({...wr.ADivideFrame,..._}),[_]),D=S.useRef(null),I=S.useRef(!1),B=S.useRef(!0),F=S.useRef(n),[j,z]=S.useState(),[G,pe]=S.useState(n),[P,U]=S.useState("FadeOut"),[V,Q]=S.useState(!1),{save:se,getSync:ue,deleteItem:oe}=cC(),ae=S.useCallback(()=>{B.current&&requestAnimationFrame(()=>{B.current=!1,U("FadeIn")})},[]),ge=S.useMemo(()=>{let we;return Array.isArray(i)?we=i:we=[i],we.filter(Boolean)},[i]),re=S.useMemo(()=>e&&!v,[e,v]),ie=S.useCallback(()=>{if(!re){ae();return}try{const we=String(e),{data:_e,isLoaded:Ae}=ue(we);_e?(pe(_e),Ae&&ae()):Ae?(pe(n),se(String(e),n),ae()):pe(n)}catch{pe(n),ae()}},[re,ae,e,ue,n,se]);S.useEffect(()=>{if(re){ie();const we=String(e),_e=()=>{const{isLoaded:Ae}=ue(we);Ae?ae():requestAnimationFrame(_e)};_e()}else ae()},[re,ie,ae,e,ue]),S.useEffect(()=>{F.current!==n&&(F.current=n,I.current||(pe(n),re&&se(String(e),n)),I.current=!1)},[re,n,e,se]);const he=S.useMemo(()=>{const we=p??0;return typeof o=="number"?Array(ge.length).fill(o+we):o.map(_e=>_e+we)},[o,ge.length,p]),Se=S.useMemo(()=>(j==null?void 0:j.lefts)||G,[j,G]),Le=S.useRef({x:0,y:0}),ne=S.useCallback((we,_e,Ae)=>{const $e=Se[we],Fe=we===0?0:Se[we-1],Qe=$e-Fe,Ue={...a,...V5(t,Qe,_e)};return p!==void 0&&(t==="Row"?(Ae||(Ue.paddingLeft=p),_e||(Ue.paddingRight=p)):(Ae||(Ue.paddingTop=p),_e||(Ue.paddingBottom=p))),Ue},[Se,a,t,p]),ve=S.useCallback(()=>{if(!(!v||t!=="Row")){if(V)pe(n),I.current=!1;else{const we=ge.length;if(we<=1)return;const _e=[],Ae=[];for(let Fe=0;Fe<we;Fe++)typeof o=="number"?Ae.push(o):Ae.push(o[Fe]||o[0]);let $e=0;for(let Fe=0;Fe<we-1;Fe++)$e+=Ae[Fe],_e.push($e);pe(_e),I.current=!0}Q(we=>!we),B.current=!1}},[v,t,V,ge.length,n,o]),ke=S.useCallback((we,_e)=>{if(_e)return Ae=>{if(!D.current)return;B.current=!1;const $e=D.current;Le.current={x:Ae.clientX,y:Ae.clientY},z({idx:we,lefts:[...G]});let Fe=[...G];const Qe=et=>{const ct=$e.getBoundingClientRect(),Ct=t==="Row"?ct.left:ct.top,It=t==="Row"?ct.width:ct.height;Fe=Y5(G,t,we,et,Ct,It,he),z({idx:we,lefts:Fe})},Ue=()=>{z(void 0),pe(Fe),I.current=!0,re&&se(String(e),Fe),window.removeEventListener("mousemove",Qe),window.removeEventListener("mouseup",Ue)};window.addEventListener("mousemove",Qe),window.addEventListener("mouseup",Ue)}},[G,t,he,re,e,se]),Pe=S.useCallback(we=>{if(we)return()=>{pe(n),I.current=!1,z(void 0),re&&oe(String(e))}},[n,re,e,oe]),De=S.useMemo(()=>ge.map((we,_e)=>{const Ae=v&&(V||!V&&_e===ge.length-2);return!(T||Ae)}),[ge,v,V,T]);return C.jsx("div",{...A,ref:D,className:Ge.clsx(uo.ADivideFrame,r.className,uo[t],uo[P],B.current&&uo.NoTransition),children:ge.map((we,_e)=>{const Ae=_e===0,$e=_e===ge.length-1,Fe=ne(_e,$e,Ae),Qe=Se[_e],Ue=De[_e],et=ke(_e,Ue),ct=Pe(Ue);return C.jsxs(S.Fragment,{children:[C.jsxs("div",{style:Fe,className:Ge.clsx(uo.ChildFrame,c,j&&uo.IsMoving,B.current&&uo.NoTransition,uo[t]),children:[$e&&v&&t==="Row"&&C.jsx(w,{handleToggleExpand:ve,isExpanded:V,resources:R}),we]}),!$e&&C.jsx("div",{"data-nodraggable":Ue?void 0:"true",className:Ge.clsx(uo.Divider,uo[t],"NoSelect",j&&uo.IsMoving,(j==null?void 0:j.idx)===_e&&uo.IsClicked,B.current&&uo.NoTransition,!Ue&&uo.NoDraggable,h),style:{...d,...G5(t,Qe)},onDoubleClick:ct,onMouseDown:et,children:C.jsx("div",{className:Ge.clsx(uo.DividerInner,m),style:{...g}})})]},_e)})})});fC.displayName="ADivideFrame";const W5=r=>{const{handleToggleExpand:e,isExpanded:t,resources:n}=r;return C.jsx(So,{className:Ge.clsx(uo.RemoteButton,t&&uo.isExpanded),icon:"DividerExpand",iconSize:"md",tabIndex:0,tooltip:t?n.Collapse:n.Expand,type:"Raw",onClick:e})};function V5(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function G5(r,e){return r==="Col"?{top:e}:{left:e}}function Y5(r,e,t,n,o,i,a){const c=[...r];let d=e==="Row"?n.clientX-o-r[t]:n.clientY-o-r[t];const h=[],p=[];let m=0;for(let v=0;v<=a.length;v++)h[v]=m,v<a.length&&(m+=a[v]);let g=0;for(let v=a.length-2;v>=0;v--)g+=a[v],p[v]=g;if(p[a.length-1]=0,d<0){let v=c[t]+d;if(v<=h[t+1])for(let w=0;w<=t;w++)c[w]=h[w+1];else if(c[t]=v,t>0)for(let w=t-1;w>=0&&v-c[w]<a[w];w--)c[w]=v-a[t],v=c[w]}else if(d>0){let v=c[t]+d;const w=t===a.length-2?a[a.length-1]:0;if(v>=i-p[t]-w)for(let T=t;T<r.length;T++)c[T]=i-p[T]-(T===r.length-1?0:w);else if(c[t]=v,t<r.length-1)for(let T=t+1;T<r.length&&c[T]-v<a[T];T++)c[T]=v+a[T],v=c[T]}return c}const Ku=()=>C.jsx("div",{style:{display:"flex",flexGrow:1}}),Z5="_ASpace_1okqf_1",K5={ASpace:Z5},Nn=r=>{const{h:e,w:t,...n}=r;return C.jsx("div",{...n,className:Ge.clsx(K5.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},X5="_AChipsContainer_1ag9v_1",J5="_AChip_1ag9v_1",Q5="_Clickable_1ag9v_21",eR="_AChipDelete_1ag9v_26",tR="_IsHover_1ag9v_40",rR="_AChipDeleteIcon_1ag9v_45",Xd={AChipsContainer:X5,AChip:J5,Clickable:Q5,AChipDelete:eR,IsHover:tR,AChipDeleteIcon:rR},nR=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:o,ChipOnDelete:i,ChipOnClick:a,ChipIcon:c,className:d,style:h,ButtonRenderer:p=hC,gap:m=8,...g}=r,[v,w]=wn(e,[]),T=S.useCallback(A=>{!w||!i||(i({label:A}),w(v.filter(R=>R!==A)))},[w,i,v]),_=S.useCallback(A=>{const R={label:A};return{label:A,useLabel:[A,()=>{}],style:Or.getContent(n,R),className:Or.getContent(o,R),icon:Or.getContent(c,R),onDelete:()=>T(A),onClick:a?()=>a({label:A}):void 0}},[o,c,a,n,T]);return C.jsx(Kr,{...g,className:Ge.clsx(Xd.AChipsContainer,d),style:{...h,alignItems:t,gap:m},children:v.map((A,R)=>C.jsx(_v,{..._(A),ButtonRenderer:p},R))})},_v=r=>{const{label:e,useLabel:t,icon:n,className:o,onDelete:i,onClick:a,ButtonRenderer:c=hC,width:d="fit-content",style:h,...p}=r;return e===void 0?C.jsx(C.Fragment,{}):C.jsxs(Kr,{...p,className:Ge.clsx("NoSelect",Xd.AChip,a&&Xd.Clickable,a&&"IsClickable",o),style:{...h,width:d},onClick:a,children:[C.jsx(el,{children:e}),c({...r})]})},hC=r=>{const{label:e,icon:t,onDelete:n,useLabel:o}=r,[,i]=wn(o,e),[a,c]=S.useState(!1),d=S.useCallback(m=>{n&&(m.stopPropagation(),i==null||i(void 0),n(r))},[n,r,i]),h=()=>{c(!0)},p=()=>{c(!1)};return C.jsx(C.Fragment,{children:n&&C.jsxs(C.Fragment,{children:[C.jsx(Ku,{}),C.jsx(Nn,{w:24}),C.jsx(Kr,{className:Ge.clsx(Xd.AChipDelete,"IsClickable",a&&Xd.IsHover)}),C.jsx(So,{className:Xd.AChipDeleteIcon,icon:t||C.jsx(en,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:d,onMouseEnter:h,onMouseLeave:p})]})})},$u=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`},oR=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),o=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=o.toString().padStart(2,"0"),e},iR=/[a-zA-Z0-9]/,sR=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,aR=/^[a-zA-Z0-9._-]+$/,lR=/^[0-9a-fA-F-]+$/i,cR=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,uR=/^\S*$/,dR=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,fR=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,hR=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,pR=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,gR={hasKr:r=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(r),hasMalKr:r=>/[ㄱ-ㅎㅏ-ㅣ]/.test(r),hasBlank:r=>/\s/.test(r),isBlank:r=>/^\s*$/.test(r),isUuid:r=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(r),isEmail:r=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(r),isAlphabet:r=>/^[a-zA-Z]*$/.test(r),isAlphaNumeric:r=>/^[a-zA-Z0-9]*$/.test(r),isKr:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(r),isKrNumeric:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(r),isNumeric:r=>/^[0-9]$/.test(r),isLenMinMax:(r,e)=>t=>!(r!==void 0&&t.length<r||e!==void 0&&t.length>e)},mR=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const e=Math.random()*16|0;return(r=="x"?e:e&3|8).toString(16)}),Av={secondToTime:oR,validate:gR,FileSizeTrans:$u,uuid:mR},vR=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:o,actionRef:i,...a}=r,[{wrapId:c,wrapProps:d,labelProps:h,...p},m]=Zu(a),[g,v]=S.useState(0),[w,T]=S.useState(!o);S.useEffect(()=>{if(!w||m.isDisabled||m.isLoading)return;const B=setInterval(()=>v(F=>F+1),t);return()=>clearInterval(B)},[t,w,m.isDisabled,m.isLoading]);const _=S.useCallback(()=>{n==null||n(),T(!1)},[n]);S.useEffect(()=>{g>=e&&!m.isDisabled&&!m.isLoading&&_()},[g,e,_,m.isDisabled,m.isLoading]);const A=S.useCallback(()=>{m.isDisabled||T(!0)},[m.isDisabled]),R=S.useCallback(()=>{m.isDisabled||T(!1)},[m.isDisabled]),D=S.useCallback(()=>{m.isDisabled||(T(!1),v(0))},[m.isDisabled]);S.useEffect(()=>{i&&(i.current={start:A,stop:R,reset:D,setTicks:v})},[i,A,R,D]);const I=e-g;return C.jsx(Wc,{wrapId:c,wrapProps:d,labelProps:h,...p,children:C.jsx(Kr,{...m,children:Av.secondToTime(I>0?I:0)})})};function ha(r){const e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate();return`${e}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}function yR(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function bR(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function xR(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function C0(r,e){return ha(r)===ha(e)}function Jd(r,e){return ha(r)>ha(e)}function Jp(r,e){return ha(r)>=ha(e)}function Qp(r,e){return ha(r)<ha(e)}function eg(r,e){return ha(r)<=ha(e)}function S0(r,e,t){return Jd(r,t)?Jd(e,t)&&Qp(e,r):Jd(e,r)&&Qp(e,t)}function _0(r,e,t){return Jd(r,t)?Jp(e,t)&&eg(e,r):Jp(e,r)&&eg(e,t)}const tr={toString:ha,toDate:yR,makeSDate:bR,makeEDate:xR,"===":C0,">":Jd,">=":Jp,"<":Qp,"<=":eg,"s<d<e|e<d<s":S0,"s<=d<=e|e<=d<=s":_0,eq:C0,g:Jd,ge:Jp,l:Qp,le:eg,b:S0,be:_0},wR="_InputContainer_44opg_7",CR="_AInput_44opg_21",SR="_LeftAddon_44opg_43",_R="_RightAddon_44opg_49",AR="_ErrorHelperText_44opg_55",ER="_Primary_44opg_59",TR="_UnAvailable_44opg_64",RR="_Secondary_44opg_75",kR="_ReadOnly_44opg_90",gi={InputContainer:wR,AInput:CR,LeftAddon:SR,RightAddon:_R,ErrorHelperText:AR,Primary:ER,UnAvailable:TR,Secondary:RR,ReadOnly:kR,Error:"_Error_44opg_55"},IR=["Primary","Secondary","ReadOnly","Error"],Vc=r=>{const{onEnterPress:e,type:t="Primary",inputRef:n,useValue:o,isReadonly:i,placeholder:a,minLength:c,maxLength:d,tabIndex:h,autoFocus:p,isPassword:m,autoComplete:g="off",inputProps:v,LeftAddon:w,RightAddon:T,dataList:_=[],id:A=(v==null?void 0:v.id)??Av.uuid(),...R}=r,[{wrapId:D,wrapProps:I,labelProps:B,...F},j]=Zu(R),z=S.useMemo(()=>MR(F.errorMessage)?"Error":t,[F.errorMessage,t]),G=S.useMemo(()=>z==="ReadOnly"?!0:i,[z,i]),pe=S.useMemo(()=>j.isDisabled||j.isLoading,[j.isDisabled,j.isLoading]),[P,U]=wn(o,""),V=S.useCallback(se=>{var ue;pe||((ue=v==null?void 0:v.onKeyDown)==null||ue.call(v,se),["Escape","Enter","ArrowUp","ArrowDown"].includes(se.key)||se.stopPropagation(),se.key==="Enter"&&e&&e(se.currentTarget.value))},[pe,v,e]),Q=S.useCallback(se=>{var ue;pe||c&&se.target.value.length<c||(U==null||U(se.target.value),(ue=v==null?void 0:v.onChange)==null||ue.call(v,se))},[pe,c,U,v]);return m?C.jsx(Wc,{wrapId:D,wrapProps:I,labelProps:B,...F,children:C.jsx("form",{onSubmit:se=>se.preventDefault(),children:C.jsxs(Kr,{...j,className:Ge.clsx(gi.InputContainer,gi[z],pe&&gi.UnAvailable,j.className),children:[w&&C.jsx("div",{className:gi.LeftAddon,children:w}),C.jsx("input",{...v,ref:n,autoComplete:g,autoFocus:p,className:Ge.clsx(gi.AInput,z==="Error"&&gi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:j.isDisabled||j.isLoading?-1:h,type:"password",value:P,onChange:Q,onKeyDown:V}),_.length>0&&C.jsx("datalist",{id:`${A}-datalist`,children:_.map((se,ue)=>C.jsx("option",{value:se},ue))}),T&&C.jsx("div",{className:Ge.clsx(gi.RightAddon,"NoSelect"),children:T})]})})}):C.jsx(Wc,{wrapId:D,wrapProps:I,labelProps:B,...F,children:C.jsxs(Kr,{...j,className:Ge.clsx(gi.InputContainer,gi[z],pe&&gi.UnAvailable,j.className),children:[w&&C.jsx("div",{className:gi.LeftAddon,children:w}),C.jsx("input",{...v,ref:n,autoComplete:g,autoFocus:p,className:Ge.clsx(gi.AInput,z==="Error"&&gi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:j.isDisabled||j.isLoading?-1:h,value:P,onChange:Q,onKeyDown:V}),_.length>0&&C.jsx("datalist",{id:`${A}-datalist`,children:_.map((se,ue)=>C.jsx("option",{value:se},ue))}),T&&C.jsx("div",{className:gi.RightAddon,children:T})]})})};function MR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const LR="_ASelect_vvzf4_1",DR="_Arrow_vvzf4_14",OR="_Primary_vvzf4_23",NR="_UnAvailable_vvzf4_34",PR="_IsOpen_vvzf4_34",BR="_Secondary_vvzf4_41",FR="_Placeholder_vvzf4_57",jR="_ValuesContainer_vvzf4_61",zR="_Values_vvzf4_61",HR="_Options_vvzf4_80",$R="_Option_vvzf4_80",qR="_Selected_vvzf4_122",UR="_CheckBox_vvzf4_129",rs={ASelect:LR,Arrow:DR,Primary:OR,UnAvailable:NR,IsOpen:PR,Secondary:BR,Placeholder:FR,ValuesContainer:jR,Values:zR,Options:HR,Option:$R,Selected:qR,CheckBox:UR},WR=["Primary","Secondary"],Gc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.ASelect["Select(Placeholder)"],onClose:i,OptionRenderer:a=GR,SelectedRenderer:c=YR,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[_,A]=wn(t,e[0]),[R,D]=S.useState(void 0),[I,B]=S.useState(!1),[F,j]=S.useState(!1),z=S.useRef(e),G=S.useRef(null),pe=S.useCallback(()=>j(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(j(!0),setTimeout(()=>B(!0),0),setTimeout(()=>dm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),U=S.useCallback(()=>{B(!1),j(!0),i==null||i()},[i]),V=S.useCallback(re=>{var ie;I?U():P(),setTimeout(()=>dm(T,w,e,d,h),0),(ie=g.onClick)==null||ie.call(g,re)},[w,g,e,I,U,P,d,h]),Q=S.useCallback(()=>{dm(T,w,e,d,h)},[w,e,d,h]);S.useEffect(()=>{if(!I||!w.current)return;const re=w.current;let ie=re.parentElement;for(;ie;)ie.addEventListener("scroll",Q),ie=ie.parentElement;return()=>{let he=re.parentElement;for(;he;)he.removeEventListener("scroll",Q),he=he.parentElement}},[w,I,Q]),S.useEffect(()=>{if(I)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[I,Q]);const se=S.useCallback(re=>{re[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!I)return;const re=new IntersectionObserver(se,{threshold:0});return w.current&&re.observe(w.current),()=>re.disconnect()},[w,I,se]);const ue=S.useCallback(re=>{const ie=re.target,he=w.current,Se=T.current;!he||!ie||!Se||!he.contains(ie)&&!Se.contains(ie)&&U()},[w,U]),oe=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(I)return setTimeout(()=>document.addEventListener("mousedown",ue),0),()=>document.removeEventListener("mousedown",ue)},[I,ue]);const ae=S.useCallback((re,ie)=>{re.stopPropagation(),re.preventDefault(),A==null||A(ie),U()},[A,U]),ge=S.useCallback(()=>{if(!m||!w.current)return;const re=Hu.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOption:_,placeholder:o,optionRenderer:ie=>ie===null?null:a({option:ie}),type:n,isMulti:!1});D(re)},[m,w,e,_,o,a,n]);return S.useEffect(()=>m?((e!==z.current||R===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{ge(),G.current=null,z.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[m,e,ge,R]),S.useEffect(()=>()=>{typeof Hu.clearCache=="function"&&Hu.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ge.clsx(g.className,rs.ASelect,"NoSelect",I&&rs.IsOpen,oe&&rs.UnAvailable,rs[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:rs.ValuesContainer,children:C.jsx("div",{className:Ge.clsx(rs.Values,(_==null||_==="")&&rs.Placeholder),children:C.jsx(c,{OptionRenderer:a,placeholder:o,selectedOption:_})})}),C.jsx("div",{...p,className:Ge.clsx(rs.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:I?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(I||F)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ge.clsx(rs.Options,rs[n]),style:{opacity:+I,visibility:I?"visible":"hidden",pointerEvents:I?void 0:"none",borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0,width:R?`${R}px`:m?"100px":void 0},onTransitionEnd:pe,children:e.map((re,ie)=>{const he=_===re,Se=w.current?window.getComputedStyle(w.current):void 0;return re===null?null:C.jsx("div",{className:Ge.clsx(rs.Option,he&&rs.Selected,"NoSelect",rs[n]),style:{height:Se==null?void 0:Se.height},onClick:Le=>ae(Le,re),children:C.jsx(a,{option:re})},ie)})}),document.body)]})};function dm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=VR(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function VR(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const GR=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},YR=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:C.jsx(t,{option:e})},ZR="_Anchor_27s50_1",KR="_Primary_27s50_18",XR="_Secondary_27s50_21",JR="_Placeholder_27s50_25",QR="_Icon_27s50_30",ek="_ADatePicker_27s50_37",tk="_StringInputWrap_27s50_48",rk="_StringInputContainer_27s50_53",nk="_StringInput_27s50_48",ok="_IsIdx_27s50_68",ik="_CalendarContainer_27s50_72",sk="_Header_27s50_78",ak="_Prev_27s50_82",lk="_Next_27s50_83",ck="_MonthYear_27s50_116",uk="_Select_27s50_121",dk="_Calendar_27s50_72",fk="_Cell_27s50_131",hk="_IsNotCurrentMonth_27s50_143",pk="_IsSelected_27s50_147",gk="_IsDisabled_27s50_151",mk="_IsHovered_27s50_154",vk="_Week_27s50_158",yk="_WeekDay_27s50_163",bn={Anchor:ZR,Primary:KR,Secondary:XR,Placeholder:JR,Icon:QR,ADatePicker:ek,StringInputWrap:tk,StringInputContainer:rk,StringInput:nk,String:"_String_27s50_48",IsIdx:ok,CalendarContainer:ik,Header:sk,Prev:ak,Next:lk,MonthYear:ck,Select:uk,Calendar:dk,Cell:fk,IsNotCurrentMonth:hk,IsSelected:pk,IsDisabled:gk,IsHovered:mk,Week:vk,WeekDay:yk},bk="_Anchor_1x8q1_1",xk="_Primary_1x8q1_18",wk="_Secondary_1x8q1_22",Ck="_Placeholder_1x8q1_26",Sk="_Icon_1x8q1_31",_k="_ADateRangePicker_1x8q1_38",Ak="_StringInputWrap_1x8q1_49",Ek="_StringInputContainer_1x8q1_53",Tk="_StringInput_1x8q1_49",Rk="_IsIdx_1x8q1_69",kk="_CalendarContainer_1x8q1_73",Ik="_Header_1x8q1_79",Mk="_Prev_1x8q1_83",Lk="_Next_1x8q1_84",Dk="_MonthYear_1x8q1_117",Ok="_Select_1x8q1_122",Nk="_Calendar_1x8q1_73",Pk="_Cell_1x8q1_132",Bk="_IsNotCurrentMonth_1x8q1_144",Fk="_IsSelected_1x8q1_148",jk="_IsDisabled_1x8q1_152",zk="_IsHovered_1x8q1_155",Hk="_Week_1x8q1_159",$k="_WeekDay_1x8q1_164",qk="_ChoiceButton_1x8q1_168",Zr={Anchor:bk,Primary:xk,Secondary:wk,Placeholder:Ck,Icon:Sk,ADateRangePicker:_k,StringInputWrap:Ak,StringInputContainer:Ek,StringInput:Tk,String:"_String_1x8q1_49",IsIdx:Rk,CalendarContainer:kk,Header:Ik,Prev:Mk,Next:Lk,MonthYear:Dk,Select:Ok,Calendar:Nk,Cell:Pk,IsNotCurrentMonth:Bk,IsSelected:Fk,IsDisabled:jk,IsHovered:zk,Week:Hk,WeekDay:$k,ChoiceButton:qk},Ev=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,yearsOptionSize:p,noDefaultChoices:m,LeftAddon:g,RightAddon:v,placeholder:w,noClearButton:T,resources:_,onClick:A,...R}=r,D=S.useMemo(()=>({...wr.ADateRangePicker,..._}),[_]),I=S.useMemo(()=>w??D["Select DateRange"],[w,D]),[B,F]=S.useMemo(()=>{let le,st;if(a&&(le=tr.makeSDate(a)),c&&(st=tr.makeEDate(c)),le&&st&&tr["<"](st,le)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const yt=le;le=st,st=yt}return[le,st]},[a,c]),[j,z]=S.useState("sD"),[G,pe]=wn(n,void 0),P=S.useCallback(le=>{pe&&(le===void 0?(pe(void 0),Ae(""),Qe("")):(pe({sDate:tr.makeSDate(le.sDate),eDate:tr.makeEDate(le.eDate)}),Ae(tr.toString(le.sDate)),Qe(tr.toString(le.eDate))))},[pe]);S.useEffect(()=>{G&&(Ae(tr.toString(G.sDate)),Qe(tr.toString(G.eDate)))},[G]);const U=S.useCallback(le=>{if(!pe)return;let st=G?G.sDate:tr.makeSDate(le);le=tr.makeEDate(le),pe({sDate:st,eDate:le}),Ae(tr.toString(st)),Qe(tr.toString(le))},[pe,G]),[V,Q]=S.useState(),[se,ue]=S.useState(),oe=S.useCallback(le=>{j==="sD"&&P({sDate:le,eDate:le}),Q(le),ue(le)},[j,P,Q]),ae=S.useCallback(le=>{j==="sD"?V&&(tr.eq(V,le)?z("eD"):tr[">"](le,V)?(U(le),Q(void 0)):(P({sDate:le,eDate:V}),Q(void 0))):(G?tr["<"](le,G.sDate)?P({sDate:le,eDate:G.eDate}):U(le):P({sDate:le,eDate:le}),Q(void 0),z("sD"))},[U,V,z,j,P,G,Q]),ge=S.useCallback(le=>{V&&ue(le)},[V]),re=S.useCallback(()=>{ue(void 0),Q(void 0),z("sD")},[z,Q]),[ie,he]=S.useState(A0(G,B,F)),Se=S.useMemo(()=>Tv(ie.year,B,F,p),[ie.year,B,F,p]),Le=S.useMemo(()=>Sh(ie.year,B,F),[B,F,ie.year]),ne=S.useCallback(le=>{if(!Se.includes(le))return;const st={month:ie.month,year:le},yt=Sh(st.year,B,F);yt.length<1||(yt.includes(st.month)||(st.month<yt[0]?st.month=yt[0]:st.month>yt[yt.length-1]&&(st.month=yt[yt.length-1])),he(st))},[B,F,Se,ie.month]),ve=S.useCallback(le=>{Le.includes(le)&&he({month:le,year:ie.year})},[Le,ie.year]),ke=S.useMemo(()=>F?new Date(ie.year,ie.month+1,1)>F:!1,[ie,F]),Pe=S.useCallback(()=>{if(ke||Le.length<1)return;const le=ie.month+1;le>11?he({month:Le[0],year:ie.year+1}):he({month:le,year:ie.year})},[ke,Le,ie]),De=S.useMemo(()=>B?new Date(ie.year,ie.month,0)<B:!1,[ie,B]),we=S.useCallback(()=>{if(De||Le.length<1)return;const le=ie.month-1;le<Le[0]?he({month:Le[Le.length-1],year:ie.year-1}):he({month:le,year:ie.year})},[De,Le,ie]),[_e,Ae]=S.useState(G!=null&&G.sDate?tr.toString(G.sDate):""),$e=S.useCallback(le=>{if(le.length>10||(Ae(le),le.length<10)||!pe)return;let st=tr.toDate(le);if(!st)return;B&&st<B&&(st=B),F&&st>F&&(st=F);let yt=G?G.eDate:st;G&&tr[">"](st,yt)&&([st,yt]=E0(st,yt)),P({sDate:st,eDate:yt}),he({month:st.getMonth(),year:st.getFullYear()})},[pe,P,G,B,F]),[Fe,Qe]=S.useState(G!=null&&G.eDate?tr.toString(G.eDate):""),Ue=S.useCallback(le=>{if(le.length>10||(Qe(le),le.length<10)||!pe)return;let st=tr.toDate(le);if(!st)return;B&&st<B&&(st=B),F&&st>F&&(st=F);let yt=G?G.sDate:st;G&&tr[">"](yt,st)&&([yt,st]=E0(yt,st)),P({sDate:yt,eDate:st}),he({month:st.getMonth(),year:st.getFullYear()})},[pe,P,G,B,F]),et=S.useCallback(()=>{G&&(Ae(tr.toString(G.sDate)),Qe(tr.toString(G.eDate)))},[G]),ct=S.useMemo(()=>{const{month:le,year:st}=ie,yt=new Date(st,le,1),nt=new Date(st,le+1,0),pt=[];for(let Ft=0;Ft<yt.getDay();Ft++){const at=new Date(st,le,0).getDate()-yt.getDay()+Ft+1,lt=new Date(st,le-1,at),_t=B&&B>lt||F&&F<lt,Ot=G?tr.be(G.sDate,lt,G.eDate):!1,Bt=se&&G&&tr.be(G.sDate,lt,se);pt.push({day:at,isSelected:Ot,isHovered:Bt,date:lt,isDisabled:_t,isCurrentMonth:!1})}for(let Ft=1;Ft<=nt.getDate();Ft++){const Ve=new Date(st,le,Ft),at=B&&B>Ve||F&&F<Ve,lt=G?tr.be(G.sDate,Ve,G.eDate):!1,_t=se&&G&&tr.be(G.sDate,Ve,se);pt.push({day:Ft,isSelected:lt,isHovered:_t,date:Ve,isDisabled:at,isCurrentMonth:!0})}for(let Ft=0;Ft<7-nt.getDay()-1;Ft++){const Ve=new Date(st,le+1,Ft+1),at=B&&B>Ve||F&&F<Ve,lt=G?tr.be(G.sDate,Ve,G.eDate):!1,_t=se&&G&&tr.be(G.sDate,Ve,se);pt.push({day:Ft+1,isSelected:lt,isHovered:_t,date:Ve,isDisabled:at,isCurrentMonth:!1})}const ht=[];for(let Ft=0;Ft<pt.length/7;Ft++)ht.push(C.jsx("div",{className:Zr.Week,children:pt.slice(Ft*7,Ft*7+7).map((Ve,at)=>C.jsx(Go,{isDisabled:Ve.isDisabled,type:"Raw",className:Ge.clsx(Zr.Cell,Ve.isDisabled?Zr.IsDisabled:Ve.isCurrentMonth?Ve.isSelected?Zr.IsSelected:Ve.isHovered&&Zr.IsHovered:Zr.IsNotCurrentMonth),onMouseDown:()=>Ve.isCurrentMonth&&oe(Ve.date),onMouseEnter:()=>Ve.isCurrentMonth&&ge(Ve.date),onMouseUp:()=>Ve.isCurrentMonth&&ae(Ve.date),children:Ve.day},at))},Ft));return ht},[ie,se,G,B,F,oe,ae,ge]),Ct=S.useRef(null),It=S.useCallback(()=>{Ct&&Cv(Ct,Ne,i)},[Ct,i]),[Je,Ke]=S.useState(!1),[ft,gt]=S.useState(!1),Ne=S.useRef(null),Xe=S.useCallback(()=>{d||h||(Ke(!0),setTimeout(()=>gt(!0),0),setTimeout(()=>It(),0),he(A0(G,B,F)))},[d,h,G,It,B,F]),vt=S.useCallback(()=>{d||h||(Ke(!0),gt(!1))},[d,h]),Nt=S.useMemo(()=>ft?vt:Xe,[ft,Xe,vt]),xt=S.useCallback(()=>Ke(!1),[]),Lt=S.useCallback(le=>{const st=document.getElementById("root"),yt=le.target,nt=Ne.current,pt=Ct.current;!st||!nt||!yt||!pt||!nt.contains(yt)&&st.contains(yt)&&!pt.contains(yt)&&vt()},[vt]);S.useEffect(()=>{if(ft)return setTimeout(()=>document.addEventListener("mousedown",Lt),0),()=>document.removeEventListener("mousedown",Lt)},[ft,Lt]);const Qt=S.useCallback(()=>{It()},[It]);S.useEffect(()=>{if(!ft||!(Ct!=null&&Ct.current))return;const le=Ct.current;let st=le.parentElement;for(;st;)st.addEventListener("scroll",Qt),st=st.parentElement;return()=>{let yt=le.parentElement;for(;yt;)yt.removeEventListener("scroll",Qt),yt=yt.parentElement}},[Ct,ft,Qt]),S.useEffect(()=>{if(ft)return window.addEventListener("resize",Qt),()=>window.removeEventListener("resize",Qt)},[ft,Qt]);const Ut=S.useCallback(le=>{le[0].intersectionRatio===0&&vt()},[vt]);S.useEffect(()=>{if(!ft)return;const le=new IntersectionObserver(Ut,{threshold:0});return Ne.current&&le.observe(Ne.current),()=>le.disconnect()},[Ne,ft,Ut]),S.useEffect(()=>{o&&(o.current={open:Xe,close:vt,toggle:Nt})},[o,Xe,vt,Nt]),S.useEffect(()=>{if(!G)return;let le={sDate:G.sDate,eDate:G.eDate};B&&(tr["<"](G.sDate,B)&&(le.sDate=B),tr["<"](G.eDate,B)&&(le.eDate=B)),F&&(tr[">"](G.sDate,F)&&(le.sDate=F),tr[">"](G.eDate,F)&&(le.eDate=F)),(le.sDate!==G.sDate||le.eDate!==G.eDate)&&P(le)},[B,F,G,P]);const fr=S.useCallback(le=>{A==null||A(le),Nt()},[A,Nt]),hr=S.useCallback(le=>{P(void 0),vt(),le.stopPropagation()},[P,vt]),cr=S.useCallback(()=>G?C.jsx(So,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:hr}):null,[G,hr]),Te=S.useMemo(()=>G?`${tr.toString(G.sDate)} ~ ${tr.toString(G.eDate)}`:C.jsx("span",{className:Zr.Placeholder,children:I}),[G,I]);return C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{...R,abaseRef:Ct,className:Ge.clsx(Zr.Anchor,"IsClickable",Zr[e],t),isDisabled:d,isLoading:h,onClick:fr,children:[g,e==="Primary"&&C.jsxs(C.Fragment,{children:[C.jsx(en,{className:Ge.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),C.jsx(Nn,{w:4})]}),Te,C.jsx(Ku,{}),!T&&C.jsx(cr,{}),e==="Secondary"&&C.jsx(en,{className:Ge.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),v&&v]}),(ft||Je)&&Ls.createPortal(C.jsxs("div",{ref:Ne,className:Zr.ADateRangePicker,style:{opacity:+ft,visibility:ft?"visible":"hidden"},onMouseLeave:re,onTransitionEnd:xt,children:[C.jsxs("div",{className:Zr.StringInputContainer,children:[C.jsxs(Rn,{children:[C.jsx(Vc,{className:Ge.clsx(Zr.String,j==="sD"&&se&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[_e,$e],wrapProps:{className:Zr.StringInputWrap},onBlur:et}),C.jsx(Nn,{w:8}),C.jsx(Vc,{className:Ge.clsx(Zr.String,j==="eD"&&se&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[Fe,Ue],wrapProps:{className:Zr.StringInputWrap},onBlur:et})]}),!m&&C.jsxs(Rn,{style:{marginTop:4},children:[C.jsx(cp,{children:D["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),C.jsx(cp,{children:D["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),C.jsx(cp,{children:D["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),C.jsx(cp,{children:D["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),C.jsxs("div",{className:Zr.CalendarContainer,children:[C.jsxs(Rn,{className:Zr.Header,children:[C.jsx(Go,{className:Zr.Prev,isDisabled:De,type:"Raw",onClick:we}),C.jsxs("div",{className:Zr.MonthYear,children:[C.jsx(Gc,{isAutoWidth:!0,className:Zr.Select,OptionRenderer:le=>D.months(le.option),options:Le,SelectedRenderer:le=>D.months(le.selectedOption),type:"Secondary",useSelect:[ie.month,ve]}),C.jsx(Nn,{w:8}),C.jsx(Gc,{isAutoWidth:!0,className:Zr.Select,options:Se,type:"Secondary",useSelect:[ie.year,ne]})]}),C.jsx(Go,{className:Zr.Next,isDisabled:ke,type:"Raw",onClick:Pe})]}),C.jsx(Nn,{h:10}),C.jsxs("div",{className:Zr.Calendar,children:[C.jsx("div",{className:Zr.Week,children:[0,1,2,3,4,5,6].map(le=>C.jsx("div",{className:Ge.clsx(Zr.WeekDay,Zr.Cell),children:D.weekDays(le)},le))}),ct]})]})]}),document.body)]})};function Sh(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let o=11;t&&t.getFullYear()===r&&(o=t.getMonth());const i=[];for(let a=n;a<=o;a++)i.push(a);return i}function Tv(r,e,t,n=5){const o=[];let i=r-n/2+n%2/2;e&&i<e.getFullYear()&&(i=e.getFullYear());let a=i+n-1;t&&a>t.getFullYear()&&(a=t.getFullYear());for(let c=i;c<=a;c++)o.push(c);return o}function A0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&tr["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&tr[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function E0(r,e){return[e,r]}const cp=r=>C.jsx(Go,{className:Ge.clsx(Zr.ChoiceButton,"Headline2"),type:"Secondary",...r}),Uk=["Primary","Secondary","Raw"],Rv=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,placeholder:p,LeftAddon:m,RightAddon:g,resources:v,noClearButton:w,onClick:T,..._}=r,A=S.useMemo(()=>({...wr.ADatePicker,...v}),[v]),R=S.useMemo(()=>p??A["Select Date"],[p,A]),[D,I]=S.useMemo(()=>{let Ne,Xe;return a&&(Ne=tr.makeSDate(a)),c&&(Xe=tr.makeEDate(c)),Ne&&Xe&&tr["<"](Xe,Ne)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[tr.makeSDate(Xe),tr.makeEDate(Ne)]):[Ne,Xe]},[a,c]),[B,F]=wn(n,null),[j,z]=S.useState(B?tr.toString(B):""),[G,pe]=S.useState(()=>{const Ne=B??new Date;return D&&Ne<D?D.getMonth():I&&Ne>I?I.getMonth():(Ne??new Date).getMonth()}),[P,U]=S.useState(()=>{const Ne=B??new Date;return D&&Ne<D?D.getFullYear():I&&Ne>I?I.getFullYear():(Ne??new Date).getFullYear()}),V=S.useCallback(Ne=>{U(Ne);const Xe=Sh(Ne,D,I);Xe.includes(G)||(G<Xe[0]?pe(Xe[0]):G>Xe[Xe.length-1]&&pe(Xe[Xe.length-1]))},[D,I,G]),Q=S.useCallback(Ne=>{if(Ne.length>10||(z(Ne),Ne.length<10)||!F)return;let Xe=tr.toDate(Ne);Xe&&(D&&Xe<D&&(Xe=D),I&&Xe>I&&(Xe=I),F(Xe),U(Xe.getFullYear()),pe(Xe.getMonth()))},[F,D,I]),se=S.useCallback(Ne=>{const Xe=P+Ne;Xe<0||U(Xe)},[P]),ue=S.useCallback(Ne=>{const Xe=G+Ne;Xe<0?(pe(11),se(-1)):Xe>11?(pe(0),se(1)):pe(Xe)},[G,se]),oe=S.useCallback(Ne=>{F&&(Ne===void 0?(F(void 0),z("")):(F(Ne),z(tr.toString(Ne))))},[F]),ae=S.useMemo(()=>{const Ne=new Date(P,G,0);return D&&Ne<D},[P,G,D]),ge=S.useMemo(()=>{const Ne=new Date(P,G+1,1);return I&&Ne>I},[P,G,I]),re=S.useCallback(()=>{ae||ue(-1)},[ue,ae]),ie=S.useCallback(()=>{ge||ue(1)},[ue,ge]),[he,Se]=S.useState(null),Le=S.useCallback(()=>{F&&Se(null)},[F]),ne=S.useCallback(Ne=>{F&&Se(Ne)},[F]),ve=S.useMemo(()=>{const Ne=new Date(P,G,1),Xe=new Date(P,G+1,0),vt=[];for(let xt=0;xt<Ne.getDay();xt++){const Qt=new Date(P,G,0).getDate()-Ne.getDay()+xt+1,Ut=new Date(P,G-1,Qt),fr=D&&D>Ut||I&&I<Ut,hr=B&&tr.eq(Ut,B),cr=he&&tr.eq(Ut,he);vt.push({day:Qt,isSelected:hr,date:Ut,isDisabled:fr,isHovered:cr,isCurrentMonth:!1})}for(let xt=1;xt<=Xe.getDate();xt++){const Lt=new Date(P,G,xt),Qt=D&&D>Lt||I&&I<Lt,Ut=B&&tr.eq(Lt,B),fr=he&&tr.eq(Lt,he);vt.push({day:xt,isSelected:Ut,date:Lt,isDisabled:Qt,isHovered:fr,isCurrentMonth:!0})}for(let xt=0;xt<7-Xe.getDay()-1;xt++){const Lt=new Date(P,G+1,xt+1),Qt=D&&D>Lt||I&&I<Lt,Ut=B&&tr.eq(Lt,B),fr=he&&tr.eq(Lt,he);vt.push({day:xt+1,isSelected:Ut,date:Lt,isDisabled:Qt,isHovered:fr,isCurrentMonth:!1})}const Nt=[];for(let xt=0;xt<vt.length/7;xt++)Nt.push(C.jsx("div",{className:bn.Week,children:vt.slice(xt*7,xt*7+7).map((Lt,Qt)=>C.jsx(Go,{isDisabled:Lt.isDisabled,type:"Raw",className:Ge.clsx(bn.Cell,Lt.isDisabled?bn.IsDisabled:Lt.isCurrentMonth?Lt.isSelected?bn.IsSelected:Lt.isHovered&&bn.IsHovered:bn.IsNotCurrentMonth),onClick:()=>Lt.isCurrentMonth&&oe(Lt.date),onMouseEnter:()=>Lt.isCurrentMonth&&ne(Lt.date),onMouseLeave:()=>Lt.isCurrentMonth&&Le(),children:Lt.day},Qt))},xt));return Nt},[G,oe,B,P,D,I,he,Le,ne]),ke=S.useRef(null),Pe=S.useCallback(()=>{ke&&Cv(ke,$e,i)},[ke,i]),[De,we]=S.useState(!1),[_e,Ae]=S.useState(!1),$e=S.useRef(null),Fe=S.useCallback(()=>{d||h||(we(!0),setTimeout(()=>Ae(!0),0),setTimeout(()=>Pe(),0),z(B?tr.toString(B):""),pe(()=>{const Ne=B??new Date;return D&&Ne<D?D.getMonth():I&&Ne>I?I.getMonth():Ne.getMonth()}),U(()=>{const Ne=B??new Date;return D&&Ne<D?D.getFullYear():I&&Ne>I?I.getFullYear():Ne.getFullYear()}))},[d,h,B,Pe,D,I]),Qe=S.useCallback(()=>{d||h||(we(!0),Ae(!1))},[d,h]),Ue=S.useMemo(()=>_e?Qe:Fe,[_e,Fe,Qe]),et=S.useCallback(()=>we(!1),[]),ct=S.useCallback(Ne=>{const Xe=document.getElementById("root"),vt=Ne.target,Nt=$e.current,xt=ke.current;!Xe||!Nt||!vt||!xt||!Nt.contains(vt)&&Xe.contains(vt)&&!xt.contains(vt)&&Qe()},[Qe]);S.useEffect(()=>{if(_e)return setTimeout(()=>document.addEventListener("mousedown",ct),0),()=>document.removeEventListener("mousedown",ct)},[_e,ct]);const Ct=S.useCallback(()=>{Pe()},[Pe]);S.useEffect(()=>{if(!_e||!(ke!=null&&ke.current))return;const Ne=ke.current;let Xe=Ne.parentElement;for(;Xe;)Xe.addEventListener("scroll",Ct),Xe=Xe.parentElement;return()=>{let vt=Ne.parentElement;for(;vt;)vt.removeEventListener("scroll",Ct),vt=vt.parentElement}},[ke,_e,Ct]),S.useEffect(()=>{if(_e)return window.addEventListener("resize",Ct),()=>window.removeEventListener("resize",Ct)},[_e,Ct]);const It=S.useCallback(Ne=>{Ne[0].intersectionRatio===0&&Qe()},[Qe]);S.useEffect(()=>{if(!_e)return;const Ne=new IntersectionObserver(It,{threshold:0});return $e.current&&Ne.observe($e.current),()=>Ne.disconnect()},[$e,_e,It]),S.useEffect(()=>{o&&(o.current={open:Fe,close:Qe,toggle:Ue})},[o,Fe,Qe,Ue]);const Je=S.useCallback(Ne=>{T==null||T(Ne),Ue()},[T,Ue]),Ke=S.useCallback(Ne=>{oe(void 0),Qe(),Ne.stopPropagation()},[oe,Qe]),ft=S.useCallback(()=>B?C.jsx(So,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Ke}):null,[B,Ke]),gt=S.useMemo(()=>B?tr.toString(B):C.jsx("span",{className:bn.Placeholder,children:R}),[B,R]);return C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{..._,abaseRef:ke,className:Ge.clsx(bn.Anchor,"IsClickable",bn[e],t),isDisabled:d,isLoading:h,onClick:Je,children:[m,e==="Primary"&&C.jsxs(C.Fragment,{children:[C.jsx(en,{className:Ge.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),C.jsx(Nn,{w:4})]}),gt,C.jsx(Ku,{}),!w&&C.jsx(ft,{}),e==="Secondary"&&C.jsx(en,{className:Ge.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),g&&g]}),(_e||De)&&Ls.createPortal(C.jsxs("div",{ref:$e,className:bn.ADatePicker,style:{opacity:+_e,visibility:_e?"visible":"hidden"},onTransitionEnd:et,children:[C.jsx("div",{className:bn.StringInputContainer,children:C.jsx(Vc,{className:bn.String,inputProps:{className:bn.StringInput},maxLength:B?30:11,placeholder:"YYYY-MM-DD",useValue:[j,Q],wrapProps:{className:bn.StringInputWrap}})}),C.jsxs("div",{className:bn.CalendarContainer,children:[C.jsxs(Rn,{className:bn.Header,children:[C.jsx(Go,{className:bn.Prev,isDisabled:ae,type:"Raw",onClick:re}),C.jsxs("div",{className:bn.MonthYear,children:[C.jsx(Gc,{isAutoWidth:!0,className:bn.Select,OptionRenderer:Ne=>A.months(Ne.option),options:Sh(P,D,I),SelectedRenderer:Ne=>A.months(Ne.selectedOption),type:"Secondary",useSelect:[G,pe]}),C.jsx(Nn,{w:8}),C.jsx(Gc,{isAutoWidth:!0,className:bn.Select,options:Tv(P,D,I),type:"Secondary",useSelect:[P,V]})]}),C.jsx(Go,{className:bn.Next,isDisabled:ge,type:"Raw",onClick:ie})]}),C.jsx(Nn,{h:10}),C.jsxs("div",{className:bn.Calendar,children:[C.jsx("div",{className:bn.Week,children:[0,1,2,3,4,5,6].map(Ne=>C.jsx("div",{className:Ge.clsx(bn.WeekDay,bn.Cell),children:A.weekDays(Ne)},Ne))}),ve]})]})]}),document.body)]})},Wk="_Paper_e69j5_1",Vk="_Card_e69j5_15",Gk="_Body_e69j5_26",Yk="_Title_e69j5_35",Zk="_Content_e69j5_42",Kk="_Action_e69j5_45",Xk="_Button_e69j5_58",Za={Paper:Wk,Card:Vk,Body:Gk,Title:Yk,Content:Zk,Action:Kk,Button:Xk},Jk=["okCancel","cancelOk","ok","cancel","none"],Qk=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:o,style:i,titleStyle:a,bodyStyle:c,contentStyle:d,okButtonStyle:h,cancelButtonStyle:p,actionStyle:m,onOk:g,onCancel:v,onClose:w,onEnterPress:T,onEscPress:_,onSpacePress:A,onPaperClick:R,noDim:D=!1,isLoading:I,isOkDisabled:B,isOkLoading:F,isCancelDisabled:j,isCancelLoading:z,buttonNoInteractive:G,okButtonClassName:pe,cancelButtonClassName:P,progress:U,ProgressRenderer:V,progressProps:Q,resources:se}=r,ue=S.useMemo(()=>({...wr.ADialog,...se}),[se]),[oe,ae]=S.useState(0);S.useEffect(()=>ae(1),[]);const ge=S.useCallback(()=>{ae(0)},[]),re=S.useCallback(()=>{if(!oe){const[,Fe]=e.state.useIsOpen;Fe==null||Fe(!1),w==null||w()}},[oe,w,e]),ie=S.useCallback(async()=>{if(!oe||t==="cancel"||t==="none"||I||B||F)return;const{event:Fe,e:Qe}=Pu();await(g==null?void 0:g(Qe)),!Fe.preventDefault&&ge()},[oe,t,ge,g,B,I,F]),he=S.useCallback(async()=>{if(!oe||t==="ok"||t==="none"||I||j||z)return;const{event:Fe,e:Qe}=Pu();await(v==null?void 0:v(Qe)),!Fe.preventDefault&&ge()},[oe,t,ge,v,j,I,z]);S.useEffect(()=>{e&&e.state.setAction({close:ge,ok:ie,cancel:he})},[e,ge,ie,he]);const Se=S.useCallback(async()=>{if(I)return;const{event:Fe,e:Qe}=Pu();await(T==null?void 0:T(Qe)),!Fe.preventDefault&&ie()},[T,I,ie]),Le=S.useCallback(async()=>{if(I)return;const{event:Fe,e:Qe}=Pu();await(A==null?void 0:A(Qe)),!Fe.preventDefault&&ie()},[A,I,ie]),ne=S.useCallback(async()=>{if(I)return;const{event:Fe,e:Qe}=Pu();await(_==null?void 0:_(Qe)),!Fe.preventDefault&&he()},[_,I,he]),ve=S.useRef(null),ke=S.useCallback(Fe=>{const Qe=document.body.getElementsByClassName(Za.Paper);Qe.length===0||Qe[Qe.length-1]!==ve.current||(Fe.key==="Enter"&&oe?Se():Fe.key===" "&&oe?Le():Fe.key==="Escape"&&oe&&ne())},[oe,Se,Le,ne]);S.useEffect(()=>{if(oe)return window.addEventListener("keydown",ke),()=>window.removeEventListener("keydown",ke)},[oe,ke]);const Pe=S.useRef(!1),De=S.useRef(!1),we=S.useCallback(()=>{Pe.current=!0},[]),_e=S.useCallback(()=>{Pe.current=!1,De.current=!1},[]),Ae=S.useCallback(()=>{De.current=!0},[]),$e=S.useCallback(async()=>{if(I)return;const Fe=!De.current||Pe.current;if(Pe.current=!1,De.current=!1,Fe)return;const{event:Qe,e:Ue}=Pu();await(R==null?void 0:R(Ue)),!Qe.preventDefault&&he()},[R,I,he]);return Ls.createPortal(C.jsx("div",{ref:ve,className:Za.Paper,style:{backgroundColor:D?"transparent":void 0,pointerEvents:oe?void 0:"none",opacity:oe},onMouseDown:Ae,onMouseUp:$e,onTransitionEnd:re,children:C.jsxs(Kr,{className:Za.Card,isLoading:I,progress:U,progressProps:Q,ProgressRenderer:V,style:i,onMouseDown:we,onMouseUp:_e,children:[C.jsxs("div",{className:Za.Body,style:c,children:[n&&C.jsx(e6,{title:n,titleStyle:a}),o&&C.jsx("div",{className:Za.Content,style:d,children:o})]}),t!=="none"&&C.jsx(t6,{type:t,ok:ie,cancel:he,resources:ue,isOkDisabled:B,isOkLoading:F,isCancelDisabled:j,isCancelLoading:z,okButtonStyle:h,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:G,okButtonClassName:pe,cancelButtonClassName:P})]})}),document.body)},e6=r=>{const{title:e,titleStyle:t}=r;return C.jsx("div",{className:Ge.clsx(Za.Title,"NoSelect","Title3"),style:t,children:e})},t6=r=>{const{type:e,ok:t,cancel:n,resources:o,isOkDisabled:i,isOkLoading:a,isCancelDisabled:c,isCancelLoading:d,okButtonStyle:h,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:g,okButtonClassName:v,cancelButtonClassName:w}=r,T=S.useMemo(()=>({onClick:t,isDisabled:i,isLoading:a,children:o.Ok,style:h,noInteractive:g,className:Ge.clsx(Za.Button,v)}),[t,i,a,o.Ok,h,g,v]),_=S.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:c,isLoading:d,children:o.Cancel,style:p,noInteractive:g,className:Ge.clsx(Za.Button,w)}),[n,c,d,o.Cancel,p,g,w]);if(e==="okCancel"||e==="ok")return C.jsxs("div",{className:Za.Action,style:{...m},children:[C.jsx(Go,{...T}),e==="okCancel"&&C.jsxs(C.Fragment,{children:[C.jsx(Nn,{w:8}),C.jsx(Go,{..._})]})]},e);if(e==="cancelOk"||e==="cancel")return C.jsxs("div",{className:Za.Action,children:[C.jsx(Go,{..._}),e==="cancelOk"&&C.jsxs(C.Fragment,{children:[C.jsx(Nn,{w:8}),C.jsx(Go,{...T})]})]},e)},r6=r=>{const e=S.useMemo(()=>Math.random().toFixed(32),[]),t=S.useMemo(()=>{const v={};return r.forEach(w=>{v[w]=w+e}),v},[r,e]),n=S.useMemo(()=>[],[]),o=S.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[i,a]=S.useState([]),c=S.useRef((()=>{const v={};return o.forEach(w=>{v[w]={open:()=>a(T=>[...T,w]),close:()=>{},ok:()=>{},cancel:()=>{}}}),v})()),d=S.useMemo(()=>{const v={};return o.forEach(w=>{v[w]=T=>{a(_=>!T&&_.includes(w)?_.filter(A=>A!==w):T&&!_.includes(w)?[..._,w]:_)}}),v},[o]),h=S.useMemo(()=>{const v={};return o.forEach(w=>{const _=[i.includes(w),d[w]],A=R=>{c.current[w]={...c.current[w],...R}};v[w]={useIsOpen:_,setAction:A}}),v},[i,d,o]),p=S.useMemo(()=>{const v={};return o.forEach(w=>{const T=()=>c.current[w].open(),_=()=>c.current[w].close(),A=()=>c.current[w].ok(),R=()=>c.current[w].cancel();v[w]={open:T,close:_,ok:A,cancel:R}}),v},[o]),m=S.useMemo(()=>({}),[]),g=S.useMemo(()=>(o.forEach(v=>{m[v]={state:h[v],action:p[v]}}),m),[m,o,h,p]);return S.useEffect(()=>(Object.keys(g).forEach(w=>{const T=g[w],_=t[w],A=ua.find(R=>{R.id});A?A.core=T:ua.push({id:_,core:T})}),()=>{const w=Object.keys(g),T=ua.filter(_=>w.includes(_.id));ua.length=0,ua.push(...T)}),[g,t]),g},n6=()=>{const r=S.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=S.useState(!1),n=S.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),o=S.useMemo(()=>({useIsOpen:[e,t],setAction:d=>{n.current={...n.current,...d}}}),[e]),i=S.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),a=S.useMemo(()=>({}),[]),c=S.useMemo(()=>(a.state=o,a.action=i,a),[a,o,i]);return S.useEffect(()=>{const d=ua.find(h=>h.id===r);return d?d.core=c:ua.push({id:r,core:c}),()=>{const h=ua.filter(p=>p.id!==r);ua.length=0,ua.push(...h)}},[r,c]),c},o6=r=>{const{dlgCore:e,children:t}=r,[n,o]=S.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return S.useEffect(()=>()=>o==null?void 0:o(!1),[o]),C.jsx(S.Suspense,{children:n&&t})},i6=r=>e=>{const{dlgCore:t}=e;return C.jsx(o6,{dlgCore:t,children:S.cloneElement(C.jsx(r,{...e}),{dlgCore:t})})},ua=[],s6={closeAllDlgs:()=>{ua.forEach(r=>{r.core.action.close()})}},a6="_AFileBox_1hlo1_1",l6="_SelectedFile_1hlo1_16",c6="_Dropping_1hlo1_26",kv={AFileBox:a6,SelectedFile:l6,Dropping:c6},u6=r=>{const{useFile:e,FileRenderer:t=d6,SelectRenderer:n=f6,DropRenderer:o=h6,resources:i,accept:a="",onInvalidFileFormat:c,fileSelectButtonClassName:d,isDisabled:h,isLoading:p,className:m,...g}=r,v=S.useMemo(()=>({...wr.AFileBox,...i}),[i]),w=S.useRef(null),T=S.useRef(null),[_,A]=wn(e,null),[R,D]=S.useState(!1),I=S.useMemo(()=>a.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[a]),B=S.useCallback(Q=>{if(I.length===0)return!1;const se=Q.name.split(".").pop();return se?!I.includes(`.${se}`):!0},[I]),F=S.useCallback(Q=>{if(A)if(B(Q)){c==null||c();return}else A(Q);else return},[A,B,c]),j=S.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&F(Q.target.files[0])},[F]),z=S.useCallback(Q=>{Q.preventDefault(),D(!1),!(h||p)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&F(Q.dataTransfer.files[0])},[F,h,p]),G=S.useCallback(Q=>{Q.preventDefault(),!(h||p)&&D(!0)},[h,p]),pe=S.useCallback(Q=>{Q.target===w.current&&Q.relatedTarget.contains(w.current.parentElement)&&(Q.preventDefault(),D(!1))},[]),P=S.useCallback(Q=>Q.preventDefault(),[]),U=S.useCallback(()=>{var Q;(Q=T.current)==null||Q.click()},[]),V=S.useMemo(()=>R?C.jsx(o,{resources:v}):_?C.jsx(t,{file:_,useFile:e}):C.jsx(n,{fileSelectButtonClassName:d,resources:v,onClick:U}),[t,n,o,v,R,_,e,d,U]);return C.jsxs(Kr,{...g,abaseRef:w,className:Ge.clsx(kv.AFileBox,m),isDisabled:h,isLoading:p,onDragEnter:G,onDragLeave:pe,onDragOver:P,onDrop:z,children:[C.jsx("input",{ref:T,accept:a,style:{display:"none"},type:"file",value:"",onChange:j}),V]})},d6=r=>{const{file:e,useFile:t}=r,[,n]=wn(t,null);return C.jsxs(Rn,{className:kv.SelectedFile,style:{backgroundColor:""},children:[C.jsx(en,{icon:"File"}),C.jsx(el,{children:e.name}),C.jsx(So,{icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},type:"Raw",onClick:()=>n==null?void 0:n(null)})]})},f6=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return C.jsxs(Rn,{className:Ge.clsx("NoSelect"),style:{gap:4},children:[C.jsx(Go,{className:n,onClick:e,children:t["Select File"]}),t["or Drag & Drop"]]})},h6=r=>{const{resources:e}=r;return C.jsxs(uC,{className:Ge.clsx(kv.Dropping,"NoSelect","Headline2"),children:[C.jsx(en,{icon:"FileDownload"}),e["drop file to select"]]})};async function p6(r){const e=new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{o.result?typeof o.result=="string"?t(o.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},o.onerror=n,o.readAsDataURL(r)});try{return await e}catch{return}}function g6(r,e){var c,d;const t=r.split(","),n=(d=(c=t[0])==null?void 0:c.match(/:(.*?);/))==null?void 0:d[1],o=atob(t[1]);let i=o.length;const a=new Uint8Array(i);for(;i--;)a[i]=o.charCodeAt(i);return new File([a],e,{type:n})}const pC=r=>r.idx!==void 0?r.idx.toString():`${r.name}-${r.size}-${r.lastModified||""}`,Bu={toBase64:p6,toFile:g6,getFileKey:pC},m6="_AFileUploader_i2nun_1",v6="_LabelContainer_i2nun_16",y6="_LabelButton_i2nun_25",b6="_Disabled_i2nun_31",x6="_Delete_i2nun_34",w6="_FileSize_i2nun_38",C6="_TotalFileSize_i2nun_45",S6="_FileBox_i2nun_49",_6="_FileBoxFullSize_i2nun_68",A6="_SelectRenderer_i2nun_75",E6="_ChipsContainer_i2nun_87",T6="_FileChip_i2nun_100",R6="_FileChipContent_i2nun_113",k6="_FileNameContainer_i2nun_124",I6="_ButtonRenderer_i2nun_130",M6="_ErrorBorder_i2nun_141",L6="_ErrorColor_i2nun_145",D6="_ErrorCursor_i2nun_149",O6="_DropIdle_i2nun_159",En={AFileUploader:m6,LabelContainer:v6,LabelButton:y6,Disabled:b6,Delete:x6,FileSize:w6,TotalFileSize:C6,FileBox:S6,FileBoxFullSize:_6,SelectRenderer:A6,ChipsContainer:E6,FileChip:T6,FileChipContent:R6,FileNameContainer:k6,ButtonRenderer:I6,ErrorBorder:M6,ErrorColor:L6,ErrorCursor:D6,DropIdle:O6},N6=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:o,onDownload:i})=>{const[a,c]=S.useState(!1);return C.jsx(So,{className:Ge.clsx(e,t,n),icon:a?"FileDownload":"CircleAlertOutline",iconSize:"sm",tooltip:o["Fail Download"],type:"Raw",onClick:()=>i(r),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)})},P6=r=>{const{useFiles:e,accept:t,onInvalidFileFormat:n,onDownload:o,onDownloadCsv:i,onDelete:a,type:c,limit:d=1024*1024*1024,maxFileCount:h,useError:p,isLoading:m,resources:g,className:v,onDownloadAll:w,csvFilename:T,..._}=r,[{wrapId:A,wrapProps:R,labelProps:D,...I},B]=Zu(_),F=S.useMemo(()=>({...wr.AFileUploader,...g}),[g]),[j,z]=wn(e,void 0),[G,pe]=wn(p,!1),[P,U]=S.useState({}),[V,Q]=S.useState(!1),se=S.useRef(0),ue=S.useRef({}),oe=S.useRef(null),ae=S.useRef(null),ge=S.useMemo(()=>(j==null?void 0:j.reduce((Je,Ke)=>Je+Ke.size,0))||0,[j]);S.useEffect(()=>{pe&&pe(ge>d)},[ge,d,pe]);const re=S.useCallback(Je=>{var gt;if(!t||t==="*"||t==="")return!0;const Ke=t.split(",").map(Ne=>Ne.trim()),ft=`.${(gt=Je.name.split(".").pop())==null?void 0:gt.toLowerCase()}`;return Ke.includes(ft)?!0:Ke.some(Ne=>{var Xe;if(Ne.startsWith("."))return!1;if(Ne.endsWith("/*")){const vt=Ne.split("/")[0];return(Xe=Je.type)==null?void 0:Xe.startsWith(`${vt}/`)}return Je.type===Ne})},[t]),ie=S.useCallback((Je,Ke)=>{const ft={...ue.current};ft[Je]=Ke,ue.current=ft,U(ft)},[U]),he=S.useCallback(Je=>{const Ke=Bu.getFileKey(Je);return P[Ke]||"Normal"},[P]),Se=S.useCallback(Je=>m||he(Je)==="Loading",[m,he]),Le=S.useCallback(Je=>he(Je)==="Error"||c==="Upload"&&Je.size>d,[he,d,c]),ne=S.useMemo(()=>j!=null&&j.length?c==="Download"?j.every(Le):!1:!0,[j,c,Le]),ve=S.useCallback(()=>{oe.current&&(oe.current.value="")},[]),ke=S.useMemo(()=>!h||!(j!=null&&j.length)?!1:j.length>=h,[j,h]),Pe=S.useCallback(Je=>{if(!z)return;const Ke=[];let ft=!1,gt=[],Ne=h?h-((j==null?void 0:j.length)||0):1/0;if(!(Ne<=0)){if(Array.from(Je).forEach((Xe,vt)=>{if(vt>=Ne)return;if(!re(Xe)){ft=!0,gt.push(Xe.name);return}const Nt=Xe;Nt.uniqueId=`file-${Date.now()}-${se.current++}`,Ke.push(Nt)}),ft)if(n)n();else{const Xe=t?t.replace(/,/g,", "):"",vt=Xe?`${F["Supported file format(s)"]}: ${Xe}`:"",Nt=gt.length>3?`${gt.slice(0,3).join(", ")} ${F.and} ${gt.length-3} ${F["more file(s)"]}`:gt.join(", ");alert(`${F["Unsupported file format detected."]}
|
161
|
+
`+y.stack}}var uc=t.ReactCurrentDispatcher,Fa=t.ReactDebugCurrentFrame,dc=0,Ai=1,fc=2,Ys=3,yd=4,wl=0,ja=1,za=2,xu=12800;function bd(b){return console.error(b),null}function Zs(){}function hc(b,l,f,y,E,N,q,K,me){var je=[],dt=new Set,At={destination:null,responseState:l,progressiveChunkSize:y===void 0?xu:y,status:wl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:je,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?bd:E,onAllReady:N===void 0?Zs:N,onShellReady:q===void 0?Zs:q,onShellError:K===void 0?Zs:K,onFatalError:me===void 0?Zs:me},Pt=Cl(At,0,null,f,!1,!1);Pt.parentFlushed=!0;var ur=Ji(At,b,null,Pt,dt,qn,rc,Pf);return je.push(ur),At}function Xi(b,l){var f=b.pingedTasks;f.push(l),f.length===1&&a(function(){return Tu(b)})}function pc(b,l){return{id:Oo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ji(b,l,f,y,E,N,q,K){b.allPendingTasks++,f===null?b.pendingRootTasks++:f.pendingTasks++;var me={node:l,ping:function(){return Xi(b,me)},blockedBoundary:f,blockedSegment:y,abortSet:E,legacyContext:N,context:q,treeContext:K};return me.componentStack=null,E.add(me),me}function Cl(b,l,f,y,E,N){return{status:dc,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:y,boundary:f,lastPushedText:E,textEmbedded:N}}var si=null;function ai(){return si===null||si.componentStack===null?"":Ba(si.componentStack)}function Ei(b,l){b.componentStack={tag:0,parent:b.componentStack,type:l}}function Sl(b,l){b.componentStack={tag:1,parent:b.componentStack,type:l}}function bs(b,l){b.componentStack={tag:2,parent:b.componentStack,type:l}}function li(b){b.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):b.componentStack=b.componentStack.parent}var Ha=null;function gc(b,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var y=Ha||ai();Ha=null,b.errorMessage=f,b.errorComponentStack=y}}function _l(b,l){var f=b.onError(l);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function $a(b,l){var f=b.onShellError;f(l);var y=b.onFatalError;y(l),b.destination!==null?(b.status=za,R(b.destination,l)):(b.status=ja,b.fatalError=l)}function xd(b,l,f){Ei(l,"Suspense");var y=l.blockedBoundary,E=l.blockedSegment,N=f.fallback,q=f.children,K=new Set,me=pc(b,K),je=E.chunks.length,dt=Cl(b,je,me,E.formatContext,!1,!1);E.children.push(dt),E.lastPushedText=!1;var At=Cl(b,0,null,E.formatContext,!1,!1);At.parentFlushed=!0,l.blockedBoundary=me,l.blockedSegment=At;try{if(Uo(b,l,q),An(At.chunks,b.responseState,At.lastPushedText,At.textEmbedded),At.status=Ai,Cs(me,At),me.pendingTasks===0){li(l);return}}catch(ur){At.status=yd,me.forceClientRender=!0,me.errorDigest=_l(b,ur),gc(me,ur)}finally{l.blockedBoundary=y,l.blockedSegment=E}var Pt=Ji(b,N,y,dt,K,l.legacyContext,l.context,l.treeContext);Pt.componentStack=l.componentStack,b.pingedTasks.push(Pt),li(l)}function wu(b,l,f,y){Ei(l,f);var E=l.blockedSegment,N=_r(E.chunks,f,y,b.responseState,E.formatContext);E.lastPushedText=!1;var q=E.formatContext;E.formatContext=Do(q,f,y),Uo(b,l,N),E.formatContext=q,Mr(E.chunks,f),E.lastPushedText=!1,li(l)}function Cu(b){return b.prototype&&b.prototype.isReactComponent}function Ks(b,l,f,y,E){var N={};pu(l,N);var q=f(y,E);return Ws(f,y,q,E)}function Su(b,l,f,y,E){var N=f.render();f.props!==E&&(vc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(y)||"a component"),vc=!0);{var q=y.childContextTypes;if(q!=null){var K=l.legacyContext,me=su(f,y,K,q);l.legacyContext=me,to(b,l,N),l.legacyContext=K;return}}to(b,l,N)}function mc(b,l,f,y){bs(l,f);var E=ds(f,l.legacyContext),N=Si(f,y,E);yl(N,f,y,E),Su(b,l,N,f,y),li(l)}var Ar={},Al={},_u={},Xs={},vc=!1,wd={},Cd=!1,Ro=!1,Sd=!1;function yc(b,l,f,y){var E;if(E=ds(f,l.legacyContext),Sl(l,f),f.prototype&&typeof f.prototype.render=="function"){var N=pn(f)||"Unknown";Ar[N]||(o("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.",N,N),Ar[N]=!0)}var q=Ks(b,l,f,y,E),K=vo();if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){var me=pn(f)||"Unknown";Al[me]||(o("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.",me,me,me),Al[me]=!0)}if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){{var je=pn(f)||"Unknown";Al[je]||(o("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.",je,je,je),Al[je]=!0)}yl(q,f,y,E),Su(b,l,q,f,y)}else if(Au(f),K){var dt=l.treeContext,At=1,Pt=0;l.treeContext=uu(dt,At,Pt);try{to(b,l,q)}finally{l.treeContext=dt}}else to(b,l,q);li(l)}function Au(b){{if(b&&b.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",b.displayName||b.name||"Component"),b.defaultProps!==void 0){var l=pn(b)||"Unknown";wd[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),wd[l]=!0)}if(typeof b.getDerivedStateFromProps=="function"){var f=pn(b)||"Unknown";Xs[f]||(o("%s: Function components do not support getDerivedStateFromProps.",f),Xs[f]=!0)}if(typeof b.contextType=="object"&&b.contextType!==null){var y=pn(b)||"Unknown";_u[y]||(o("%s: Function components do not support contextType.",y),_u[y]=!0)}}}function Eu(b,l){if(b&&b.defaultProps){var f=jo({},l),y=b.defaultProps;for(var E in y)f[E]===void 0&&(f[E]=y[E]);return f}return l}function _d(b,l,f,y,E){Sl(l,f.render);var N=Ks(b,l,f.render,y,E),q=vo();if(q){var K=l.treeContext,me=1,je=0;l.treeContext=uu(K,me,je);try{to(b,l,N)}finally{l.treeContext=K}}else to(b,l,N);li(l)}function yo(b,l,f,y,E){var N=f.type,q=Eu(N,y);Js(b,l,N,q,E)}function xs(b,l,f,y){f._context===void 0?f!==f.Consumer&&(Sd||(Sd=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var E=y.children;typeof E!="function"&&o("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.");var N=Oa(f),q=E(N);to(b,l,q)}function bo(b,l,f,y){var E=f._context,N=y.value,q=y.children,K;K=l.context,l.context=au(E,N),to(b,l,q),l.context=Lf(E),K!==l.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Ad(b,l,f,y,E){Ei(l,"Lazy");var N=f._payload,q=f._init,K=q(N),me=Eu(K,y);Js(b,l,K,me,E),li(l)}function Js(b,l,f,y,E){if(typeof f=="function")if(Cu(f)){mc(b,l,f,y);return}else{yc(b,l,f,y);return}if(typeof f=="string"){wu(b,l,f,y);return}switch(f){case Jl:case Zo:case Ie:case it:case $i:{to(b,l,y.children);return}case Ln:{Ei(l,"SuspenseList"),to(b,l,y.children),li(l);return}case ad:throw new Error("ReactDOMServer does not yet support scope components.");case $r:{xd(b,l,y);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case dr:{_d(b,l,f,y,E);return}case Qr:{yo(b,l,f,y,E);return}case Ze:{bo(b,l,f,y);return}case $t:{xs(b,l,f,y);return}case Ea:{Ad(b,l,f,y);return}}var N="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(N+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+N))}function Ed(b,l){typeof Symbol=="function"&&b[Symbol.toStringTag]==="Generator"&&(Cd||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Cd=!0),b.entries===l&&(Ro||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ro=!0)}function to(b,l,f){try{return Td(b,l,f)}catch(y){throw typeof y=="object"&&y!==null&&typeof y.then=="function"||(Ha=Ha!==null?Ha:ai()),y}}function Td(b,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case sd:{var y=f,E=y.type,N=y.props,q=y.ref;Js(b,l,E,N,q);return}case Xl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Ea:{var K=f,me=K._payload,je=K._init,dt;try{dt=je(me)}catch(ci){throw typeof ci=="object"&&ci!==null&&typeof ci.then=="function"&&Ei(l,"Lazy"),ci}to(b,l,dt);return}}if(jt(f)){bc(b,l,f);return}var At=cs(f);if(At){Ed(f,At);var Pt=At.call(f);if(Pt){var ur=Pt.next();if(!ur.done){var Gr=[];do Gr.push(ur.value),ur=Pt.next();while(!ur.done);bc(b,l,Gr);return}return}}var Gn=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(Gn==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":Gn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Ti=l.blockedSegment;Ti.lastPushedText=mn(l.blockedSegment.chunks,f,b.responseState,Ti.lastPushedText);return}if(typeof f=="number"){var Ss=l.blockedSegment;Ss.lastPushedText=mn(l.blockedSegment.chunks,""+f,b.responseState,Ss.lastPushedText);return}typeof f=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function bc(b,l,f){for(var y=f.length,E=0;E<y;E++){var N=l.treeContext;l.treeContext=uu(N,y,E);try{Uo(b,l,f[E])}finally{l.treeContext=N}}}function xc(b,l,f){var y=l.blockedSegment,E=y.chunks.length,N=Cl(b,E,null,y.formatContext,y.lastPushedText,!0);y.children.push(N),y.lastPushedText=!1;var q=Ji(b,l.node,l.blockedBoundary,N,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(q.componentStack=l.componentStack.parent);var K=q.ping;f.then(K,K)}function Uo(b,l,f){var y=l.blockedSegment.formatContext,E=l.legacyContext,N=l.context,q=null;q=l.componentStack;try{return to(b,l,f)}catch(K){if(gu(),typeof K=="object"&&K!==null&&typeof K.then=="function"){xc(b,l,K),l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q;return}else throw l.blockedSegment.formatContext=y,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q,K}}function Rd(b,l,f,y){var E=_l(b,y);if(l===null?$a(b,y):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,gc(l,y),l.parentFlushed&&b.clientRenderedBoundaries.push(l))),b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function ws(b){var l=this,f=b.blockedBoundary,y=b.blockedSegment;y.status=Ys,Qs(l,f,y)}function wc(b,l,f){var y=b.blockedBoundary,E=b.blockedSegment;if(E.status=Ys,y===null)l.allPendingTasks--,l.status!==za&&(l.status=za,l.destination!==null&&w(l.destination));else{if(y.pendingTasks--,!y.forceClientRender){y.forceClientRender=!0;var N=f===void 0?new Error("The render was aborted by the server without a reason."):f;y.errorDigest=l.onError(N);{var q="The server did not finish this Suspense boundary: ";N&&typeof N.message=="string"?N=q+N.message:N=q+String(N);var K=si;si=b;try{gc(y,N)}finally{si=K}}y.parentFlushed&&l.clientRenderedBoundaries.push(y)}if(y.fallbackAbortableTasks.forEach(function(je){return wc(je,l,f)}),y.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var me=l.onAllReady;me()}}}function Cs(b,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===Ai&&Cs(b,f)}else{var y=b.completedSegments;y.push(l)}}function Qs(b,l,f){if(l===null){if(f.parentFlushed){if(b.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");b.completedRootSegment=f}if(b.pendingRootTasks--,b.pendingRootTasks===0){b.onShellError=Zs;var y=b.onShellReady;y()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===Ai&&Cs(l,f),l.parentFlushed&&b.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ws,b),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===Ai){Cs(l,f);var E=l.completedSegments;E.length===1&&l.parentFlushed&&b.partialBoundaries.push(l)}}if(b.allPendingTasks--,b.allPendingTasks===0){var N=b.onAllReady;N()}}function Hf(b,l){var f=l.blockedSegment;if(f.status===dc){ps(l.context);var y=null;y=si,si=l;try{to(b,l,l.node),An(f.chunks,b.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=Ai,Qs(b,l.blockedBoundary,f)}catch(N){if(gu(),typeof N=="object"&&N!==null&&typeof N.then=="function"){var E=l.ping;N.then(E,E)}else l.abortSet.delete(l),f.status=yd,Rd(b,l.blockedBoundary,f,N)}finally{si=y}}}function Tu(b){if(b.status!==za){var l=ud(),f=uc.current;uc.current=Vn;var y;y=Fa.getCurrentStack,Fa.getCurrentStack=ai;var E=Gs;cc(b.responseState);try{var N=b.pingedTasks,q;for(q=0;q<N.length;q++){var K=N[q];Hf(b,K)}N.splice(0,q),b.destination!==null&&Ko(b,b.destination)}catch(me){_l(b,me),$a(b,me)}finally{cc(E),uc.current=f,Fa.getCurrentStack=y,f===Vn&&ps(l)}}}function El(b,l,f){switch(f.parentFlushed=!0,f.status){case dc:{var y=f.id=b.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,Vr(l,b.responseState,y)}case Ai:{f.status=fc;for(var E=!0,N=f.chunks,q=0,K=f.children,me=0;me<K.length;me++){for(var je=K[me];q<je.index;q++)m(l,N[q]);E=Tl(b,l,je)}for(;q<N.length-1;q++)m(l,N[q]);return q<N.length&&(E=g(l,N[q])),E}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Tl(b,l,f){var y=f.boundary;if(y===null)return El(b,l,f);if(y.parentFlushed=!0,y.forceClientRender)return Qn(l,b.responseState,y.errorDigest,y.errorMessage,y.errorComponentStack),El(b,l,f),ll(l,b.responseState);if(y.pendingTasks>0){y.rootSegmentID=b.nextSegmentId++,y.completedSegments.length>0&&b.partialBoundaries.push(y);var E=y.id=zn(b.responseState);return ji(l,b.responseState,E),El(b,l,f),Po(l,b.responseState)}else{if(y.byteSize>b.progressiveChunkSize)return y.rootSegmentID=b.nextSegmentId++,b.completedBoundaries.push(y),ji(l,b.responseState,y.id),El(b,l,f),Po(l,b.responseState);ni(l,b.responseState);var N=y.completedSegments;if(N.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var q=N[0];return Tl(b,l,q),ln(l,b.responseState)}}function Ru(b,l,f){return od(l,b.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function Cc(b,l,f){return pr(l,b.responseState,f.formatContext,f.id),Tl(b,l,f),on(l,f.formatContext)}function ku(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];xo(b,l,f,N)}return y.length=0,ul(l,b.responseState,f.id,f.rootSegmentID)}function kd(b,l,f){for(var y=f.completedSegments,E=0;E<y.length;E++){var N=y[E];if(!xo(b,l,f,N))return E++,y.splice(0,E),!1}return y.splice(0,E),!0}function xo(b,l,f,y){if(y.status===fc)return!0;var E=y.id;if(E===-1){var N=y.id=f.rootSegmentID;if(N===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Cc(b,l,y)}else return Cc(b,l,y),Ef(l,b.responseState,E)}function Ko(b,l){p();try{var f=b.completedRootSegment;f!==null&&b.pendingRootTasks===0&&(Tl(b,l,f),b.completedRootSegment=null,fn(l,b.responseState));var y=b.clientRenderedBoundaries,E;for(E=0;E<y.length;E++){var N=y[E];Ru(b,l,N)}y.splice(0,E);var q=b.completedBoundaries;for(E=0;E<q.length;E++){var K=q[E];ku(b,l,K)}q.splice(0,E),v(l),p(l);var me=b.partialBoundaries;for(E=0;E<me.length;E++){var je=me[E];if(!kd(b,l,je)){b.destination=null,E++,me.splice(0,E);return}}me.splice(0,E);var dt=b.completedBoundaries;for(E=0;E<dt.length;E++){var At=dt[E];ku(b,l,At)}dt.splice(0,E)}finally{v(l),b.allPendingTasks===0&&b.pingedTasks.length===0&&b.clientRenderedBoundaries.length===0&&b.completedBoundaries.length===0&&(b.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),w(l))}}function Id(b){a(function(){return Tu(b)})}function $f(b,l){if(b.status===ja){b.status=za,R(l,b.fatalError);return}if(b.status!==za&&b.destination===null){b.destination=l;try{Ko(b,l)}catch(f){_l(b,f),$a(b,f)}}}function Rl(b,l){try{var f=b.abortableTasks;f.forEach(function(y){return wc(y,b,l)}),f.clear(),b.destination!==null&&Ko(b,b.destination)}catch(y){_l(b,y),$a(b,y)}}function qa(b,l){return new Promise(function(f,y){var E,N,q=new Promise(function(Pt,ur){N=Pt,E=ur});function K(){var Pt=new ReadableStream({type:"bytes",pull:function(ur){$f(je,ur)},cancel:function(ur){Rl(je)}},{highWaterMark:0});Pt.allReady=q,f(Pt)}function me(Pt){q.catch(function(){}),y(Pt)}var je=hc(b,Br(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),_o(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,N,K,me,E);if(l&&l.signal){var dt=l.signal,At=function(){Rl(je,dt.reason),dt.removeEventListener("abort",At)};dt.addEventListener("abort",At)}Id(je)})}ap.renderToReadableStream=qa,ap.version=e}()),ap}var v0;function R4(){if(v0)return Ec;v0=1;var r,e;return process.env.NODE_ENV==="production"?(r=_4(),e=A4()):(r=E4(),e=T4()),Ec.version=r.version,Ec.renderToString=r.renderToString,Ec.renderToStaticMarkup=r.renderToStaticMarkup,Ec.renderToNodeStream=r.renderToNodeStream,Ec.renderToStaticNodeStream=r.renderToStaticNodeStream,Ec.renderToReadableStream=e.renderToReadableStream,Ec}var Sw=R4();const Gd=yf(Sw);function ch(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Hu={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var o,i,a,c,d,h;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const p=this._canvas.getContext("2d");if(p){p.font=e;const m=p.measureText(r).width;return this._charWidthMap.set(t,m),m}}catch{}let n;return r===" "?n=parseInt(((o=e.match(/(\d+)px/))==null?void 0:o[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((a=e.match(/(\d+)px/))==null?void 0:a[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((c=e.match(/(\d+)px/))==null?void 0:c[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((d=e.match(/(\d+)px/))==null?void 0:d[1])||"14")*.25:n=parseInt(((h=e.match(/(\d+)px/))==null?void 0:h[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(S.isValidElement(r))try{const t=Sw.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var i;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,o=this._cache.get(n);if(o!==void 0)return o;try{this._canvas||(this._canvas=document.createElement("canvas"));const a=this._canvas.getContext("2d");if(a){a.font=t;const c=a.measureText(r),d=Math.ceil(c.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(p=>this._cache.delete(p)),this._cache.set(n,d),d}}catch{}try{const a=document.createElement("span");a.style.font=t,a.style.position="absolute",a.style.visibility="hidden",a.style.whiteSpace="nowrap",a.textContent=r,document.body.appendChild(a);const c=Math.ceil(a.getBoundingClientRect().width);return document.body.removeChild(a),this._cache.set(n,c),c}catch{}try{let a=0;for(let d=0;d<r.length;d++)a+=this.measureCharWidth(r[d],t);a*=.95;const c=Math.ceil(a);return this._cache.set(n,c),c}catch{}try{const a=parseInt(((i=t.match(/(\d+)px/))==null?void 0:i[1])||"14");let c=0;for(let h=0;h<r.length;h++){const p=r[h];p===" "?c+=.33:/^[A-Z]$/.test(p)?c+=.67:/^[a-z]$/.test(p)?c+=.5:/^\d$/.test(p)?c+=.6:/^[.,;:!?]$/.test(p)?c+=.25:c+=.67}const d=Math.ceil(c*a);return this._cache.set(n,d),d}catch{const c=r.length*10;return this._cache.set(n,c),c}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:o="",optionRenderer:i,type:a="Primary",isMulti:c=!1}){if(!r.current)return 200;try{let d=0;if(e&&e.length>0){const v=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(T,_)=>e[Math.floor(_*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],w=Array.from(new Set(v.filter(Boolean)));for(const T of w){if(!T)continue;const _=this.measureRenderedOptionWidth(T,i);d=Math.max(d,_)}}let h=0;if(!c&&t)h=this.measureRenderedOptionWidth(t,i);else if(c&&n&&n.length){if(n.length===1)h=this.measureRenderedOptionWidth(n[0],i);else if(h=this.measureTextWidth(`${n.length} selected`),n.length>0){let v=0;for(const w of n){const T=this.measureRenderedOptionWidth(w,i);v=Math.max(v,T)}h=Math.max(h,v)}}let p=0;o&&(p=this.measureReactNodeWidth(o));const g=Math.max(d,h,p,50);if(r.current){const v=window.getComputedStyle(r.current),w=parseFloat(v.paddingLeft||"0")+parseFloat(v.paddingRight||"0"),T=parseFloat(v.borderLeftWidth||"0")+parseFloat(v.borderRightWidth||"0"),_=a==="Primary"?30:20,A=c?24:0,R=Math.ceil(g*.05)+10;return Math.ceil(g+w+T+_+A+R)}return g+60}catch{return 200}}};var Io=(r=>(r.E="East",r.N="North",r.S="South",r.W="West",r))(Io||{}),bf=(r=>(r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.N="North",r.NE="NorthEast",r.NW="NorthWest",r.S="South",r.SE="SouthEast",r.SW="SouthWest",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(bf||{});function Cv(r,e,t,n){if(!r.current||!e.current)return;const o=r.current.getBoundingClientRect(),i=e.current.getBoundingClientRect();let a={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":a=i?{bottom:window.innerHeight-o.top,left:o.left+o.width/2-i.width/2}:{bottom:window.innerHeight-o.top,left:o.left};break;case"NorthWest":a={bottom:window.innerHeight-o.top,left:o.left};break;case"NorthEast":a={bottom:window.innerHeight-o.top,right:window.innerWidth-o.left-o.width};break;case"South":a=i?{top:o.bottom,left:o.left+o.width/2-i.width/2}:{top:o.bottom,left:o.left};break;case"SouthWest":a={top:o.bottom,left:o.left};break;case"SouthEast":a={top:o.bottom,right:window.innerWidth-o.left-o.width};break;case"East":a=i?{top:o.top+o.height/2-i.height/2,left:o.right}:{top:o.top,left:o.right};break;case"EastNorth":a={bottom:window.innerHeight-o.top-o.height,left:o.right};break;case"EastSouth":a={top:o.top,left:o.right};break;case"West":a=i?{top:o.top+o.height/2-i.height/2,right:window.innerWidth-o.left}:{top:o.top,right:window.innerWidth-o.left};break;case"WestNorth":a={bottom:window.innerHeight-o.top-o.height,right:window.innerWidth-o.left};break;case"WestSouth":a={top:o.top,right:window.innerWidth-o.left};break;default:a={top:o.top,left:o.left}}n&&(n.x&&a.left&&(a.left+=n.x),n.y&&a.top&&(a.top+=n.y)),a=Aw(a,i),e.current.style.top=a.top+"px",e.current.style.left=a.left+"px",e.current.style.bottom=a.bottom+"px",e.current.style.right=a.right+"px"}function _w(r,e,t,n){if(!r)return;const o=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!o)return;const i=r.getBoundingClientRect(),a=o.getBoundingClientRect();let c={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":c=a?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-a.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":c={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":c={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":c=a?{top:i.bottom,left:i.left+i.width/2-a.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":c={top:i.bottom,left:i.left};break;case"SouthEast":c={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":c=a?{top:i.top+i.height/2-a.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":c={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":c={top:i.top,left:i.right};break;case"West":c=a?{top:i.top+i.height/2-a.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":c={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":c={top:i.top,right:window.innerWidth-i.left};break;default:c={top:i.top,left:i.left}}return n&&(n.x&&c.left&&(c.left+=n.x),n.y&&c.top&&(c.top+=n.y)),c=Aw(c,a),o.style.top=c.top+"px",o.style.left=c.left+"px",o.style.bottom=c.bottom+"px",o.style.right=c.right+"px",c}function Aw(r,e,t=10){return r.left&&r.left<t&&(r.left=t),r.right&&r.right<t&&(r.right=t),r.top&&r.top<t&&(r.top=t),r.bottom&&r.bottom<t&&(r.bottom=t),r.left&&e&&r.left+e.width>window.innerWidth-t&&(r.left=window.innerWidth-e.width-t),r.right&&e&&r.right+e.width>window.innerWidth-t&&(r.right=window.innerWidth-e.width-t),r.top&&e&&r.top+e.height>window.innerHeight-t&&(r.top=window.innerHeight-e.height-t),r.bottom&&e&&r.bottom+e.height>window.innerHeight-t&&(r.bottom=window.innerHeight-e.height-t),r}function Pu(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const k4="_Tooltip_1khnz_1",I4="_Arrow_1khnz_17",y0={Tooltip:k4,Arrow:I4},Ew=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:o=10,direction:i=Io.S}=r,[a,c]=S.useState(!1),d=S.useRef(null),h=S.useRef(null),p=S.useRef(null),m=S.useCallback(()=>{c(!0),p.current&&(clearTimeout(p.current),p.current=null);const T=setTimeout(()=>b0(t,d,h,o,i),n);p.current=T},[t,n,o,i]),g=S.useCallback(()=>c(!1),[]);S.useEffect(()=>{const T=t.current;if(T)return T.addEventListener("mouseenter",m),T.addEventListener("mouseleave",g),()=>{T.removeEventListener("mouseenter",m),T.removeEventListener("mouseleave",g)}},[t,g,m]);const v=S.useCallback(()=>{b0(t,d,h,o,i)},[t,o,i]);S.useEffect(()=>{if(!t.current||!d.current||!a)return;const T=t.current.parentElement;let _=T;for(;_;)_.addEventListener("scroll",v),_=_.parentElement;return()=>{let A=T;for(;A;)A.removeEventListener("scroll",v),A=A.parentElement}},[t,v,a]),S.useEffect(()=>{v()},[e,v]);const w=S.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!a||w?null:Ls.createPortal(C.jsxs("div",{ref:d,className:Ge.clsx(y0.Tooltip,"NoSelect"),children:[e,C.jsx("div",{ref:h,className:y0.Arrow})]}),document.body)},lp="5px solid var(--ATooltip_background-color)";function b0(r,e,t,n,o=Io.S){if(!r.current||!e.current||!t.current)return;const i=M4(r.current,e.current,n,o);if(!i)return;const{left:a,top:c,arrowDir:d,arrow:h}=i;e.current.style.left=`${a}px`,e.current.style.top=`${c}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",d===Io.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderBottom=lp):d===Io.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${h.left??0}px)`,t.current.style.borderTop=lp):d===Io.W?(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=lp):d===Io.E&&(t.current.style.top=`calc(50% - 5px + ${h.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=lp)}const Tc=5;function M4(r,e,t,n){const o=r.getBoundingClientRect(),i=e.getBoundingClientRect();function a(){if(window.innerHeight-o.bottom>i.height+t){const p=o.bottom+t,m=o.left+(o.width-i.width)/2,g=ch(m,Tc,window.innerWidth-Tc-i.width),v=Io.N;return{left:g,top:p,arrowDir:v,arrow:{left:m-g}}}}function c(){if(o.top>i.height+t){const p=o.top-i.height-t,m=o.left+(o.width-i.width)/2,g=ch(m,Tc,window.innerWidth-Tc-i.width),v=Io.S;return{left:g,top:p,arrowDir:v,arrow:{left:m-g}}}}function d(){if(window.innerWidth-o.right>i.width+t){const p=o.right+t,m=o.top+(o.height-i.height)/2,g=ch(m,Tc,window.innerHeight-Tc-i.height),v=Io.W;return{left:p,top:g,arrowDir:v,arrow:{top:m-g}}}}function h(){if(o.left>i.width+t){const p=o.left-i.width-t,m=o.top+(o.height-i.height)/2,g=ch(m,Tc,window.innerHeight-Tc-i.height),v=Io.E;return{left:p,top:g,arrowDir:v,arrow:{top:m-g}}}}if(n===Io.E)return d()||h()||a()||c();if(n===Io.S)return a()||c()||d()||h();if(n===Io.W)return h()||d()||a()||c();if(n===Io.N)return c()||a()||d()||h()}const L4="_ABase_c7a1t_1",D4="_UseDimming_c7a1t_6",O4="_Dimmer_c7a1t_6",N4="_Spinner_c7a1t_9",P4="_Dimmed_c7a1t_12",B4="_HasProgress_c7a1t_18",F4="_IsDimmed_c7a1t_36",j4="_IsLoading_c7a1t_41",z4="_IsDisabled_c7a1t_46",Pd={ABase:L4,UseDimming:D4,Dimmer:O4,Spinner:N4,Dimmed:P4,HasProgress:B4,IsDimmed:F4,IsLoading:j4,IsDisabled:z4},Kr=r=>{const{children:e,abaseRef:t,abaseCallbackRef:n,isDisabled:o,isLoading:i,isDimmed:a,tooltip:c,tooltipDistance:d=10,tooltipDelay:h=0,tooltipDirection:p=Io.S,progress:m,ProgressRenderer:g=H4,progressProps:v,...w}=r,T=S.useRef(null),_=S.useMemo(()=>t??T,[t]),A=S.useMemo(()=>typeof o=="string"&&o!==""?o:c!==void 0?c:"",[o,c]),R=S.useMemo(()=>o||i||a,[o,i,a]),D=S.useMemo(()=>o!==void 0||i!==void 0||a!==void 0,[o,i,a]),I=typeof m=="number"&&i;return C.jsxs("div",{...w,ref:n||_,className:Ge.clsx(w.className,Pd.ABase,D&&Pd.UseDimming,R&&Pd.Dimmed,I&&Pd.HasProgress),children:[e,D&&C.jsx("div",{className:Ge.sclsx(Pd,"Dimmer",o&&"IsDisabled",i&&"IsLoading",a&&"IsDimmed",I&&"HasProgress")}),i&&C.jsxs("div",{className:Ge.sclsx(Pd,"Spinner",o&&"IsDisabled",i&&"IsLoading",I&&"HasProgress"),children:[C.jsx(en,{icon:"Spinner"}),I&&C.jsx(g,{progress:m,...v})]}),C.jsx(Ew,{delay:h,direction:p,distance:d,targetRef:_,tooltip:A})]})},H4=({progress:r,...e})=>C.jsx(Cw,{progress:r,...e}),$4="_AButton_vulhu_1",q4="_Primary_vulhu_14",U4="_Secondary_vulhu_19",W4="_Alter_vulhu_24",V4="_AIconButton_vulhu_30",G4="_AThemeButton_vulhu_71",Ch={AButton:$4,Primary:q4,Secondary:U4,Alter:W4,AIconButton:V4,AThemeButton:G4},Y4=["Primary","Secondary","Alter","Raw"],Go=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...o}=r,i=S.useMemo(()=>o.isDisabled||o.isLoading,[o.isDisabled,o.isLoading]),a=S.useCallback(c=>{i||t==null||t(c)},[i,t]);return C.jsx(Kr,{...o,className:Ge.clsx(o.className,Ch.AButton,e!=="Raw"&&Ch[e],"IsClickable",!i&&!n&&"IsInteractive"),onClick:a})},Z4=["Primary","Secondary","Raw"],So=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:o,isDisabled:i,isLoading:a,tooltip:c,className:d,...h}=r,p=S.useMemo(()=>i||a,[i,a]),m=S.useCallback(v=>{p||o==null||o(v)},[p,o]),g=S.useMemo(()=>wv.includes(e)?C.jsx(en,{icon:e,size:t}):e,[e,t]);return C.jsx(Kr,{className:Ge.clsx(Ch.AIconButton,!i&&!a&&"IsClickable",n!=="Raw"&&Ch[n],d),isDisabled:i,isLoading:a,tooltip:c,onClick:m,...h,children:g})};function wn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=S.useState(e);return S.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const K4="_AWrap_u1f1h_1",X4="_Label_u1f1h_8",J4="_Asterisk_u1f1h_19",Q4="_HelperTextConatiner_u1f1h_23",e5="_HelperText_u1f1h_23",Bd={AWrap:K4,Label:X4,Asterisk:J4,HelperTextConatiner:Q4,HelperText:e5,Error:"_Error_u1f1h_38"},t5=["Default","Error"],Zu=r=>{if(!r)return[{},{}];const e={},t={},n=["errorMessage","helperText","label","labelProps","wrapId","wrapProps","wrapType"];for(const o in r)n.includes(o)?e[o]=r[o]:t[o]=r[o];return[e,t]},Wc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:o="Default",label:i,labelProps:a,wrapId:c,children:d}=r,h=S.useRef(null),[p,m]=S.useState({height:0}),g=S.useRef(null),[v,w]=S.useMemo(()=>{let _=n,A=o;if(Array.isArray(t)){const R=t.filter(Boolean);R.length>0&&([_,A]=[R,"Error"])}else t&&([_,A]=[t,"Error"]);return Array.isArray(_)&&(A!=="Error"&&(_=_.filter(Boolean)),_=_.map((R,D)=>C.jsxs(S.Fragment,{children:[R,C.jsx("br",{})]},ar.key(D)))),[_,A]},[n,t,o]);S.useEffect(()=>{if(!v||!h.current)m({height:0});else{const _=h.current.getBoundingClientRect();m({height:_.height,marginTop:_.height===0?0:6})}},[v]);const T=S.useMemo(()=>{switch(typeof(a==null?void 0:a.prefix)){case"string":return C.jsx(en,{height:"1rem",icon:a.prefix,width:"1rem"});case"boolean":return C.jsx(en,{height:10,icon:"Target",width:10});default:return a==null?void 0:a.prefix}},[a==null?void 0:a.prefix]);return C.jsxs("div",{...e,ref:g,className:Ge.clsx(e==null?void 0:e.className,Bd.AWrap),id:c,children:[i&&C.jsxs("div",{className:Ge.clsx(Bd.Label,"NoSelect",a==null?void 0:a.className),style:a==null?void 0:a.style,children:[a==null?void 0:a.leftAddon,T,i,(a==null?void 0:a.asterisk)&&C.jsx(Kr,{className:Bd.Asterisk,tooltip:wr.AWrap.Asterisk,children:"*"}),a==null?void 0:a.rightAddon]}),d,v!==void 0&&C.jsx("div",{className:Ge.clsx(Bd.HelperTextConatiner,"NoSelect"),style:p,children:C.jsx("div",{ref:h,className:Ge.clsx(Bd.HelperText,Bd[w]),children:v})})]})},r5="_ASwitch_nlcij_1",n5="_Track_nlcij_6",o5="_Truthy_nlcij_13",i5="_Thumb_nlcij_17",Yf={ASwitch:r5,Track:n5,Truthy:o5,Thumb:i5},Tw=r=>{const{useCheck:e,...t}=r,[{wrapId:n,wrapProps:o,labelProps:i,...a},c]=Zu(t),[d,h]=wn(e,!1),p=S.useCallback(m=>{var g;c.isDisabled||c.isLoading||(h==null||h(!d),(g=c.onClick)==null||g.call(c,m))},[c,d,h]);return C.jsx(Wc,{wrapId:n,wrapProps:o,labelProps:i,...a,children:C.jsx(Kr,{...c,className:Yf.ASwitch,onClick:p,children:C.jsx("div",{className:Ge.clsx(Yf.Track,d&&Yf.Truthy),children:C.jsx("div",{className:Ge.clsx(Yf.Thumb,d&&Yf.Truthy)})})})})},s5={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-95","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-10","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},Lo=zc.cloneDeep(s5);ar.keys(Lo.semantic).forEach(r=>{const e=Lo.semantic[r];ar.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const wg=ar.keys(Lo.palette),Rw=ar.keys(Lo.palette[wg[0]]);function a5(){return fo.paletteMode}function l5(r,e=fo.paletteMode){return Lo.palette[e][r]}function c5(r){return Sg(r)}const Kp=[];function kw(r){fo.paletteMode=r,Rw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.palette[r][e])),Kp.forEach(e=>e(r))}function Iw(r,e="all"){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?wg.forEach(i=>{Lo.palette[i][n]=o}):Lo.palette[e][n]=o)})}const sf=ar.keys(Lo.semantic),Mw=ar.keys(Lo.semantic[sf[0]]);function u5(){return fo.semanticMode}function d5(r,e=fo.semanticMode){return Lo.semantic[e][r]}function f5(r){return Sg(r)}const Xp=[];function Sv(r){fo.semanticMode=r,document.documentElement.setAttribute("data-theme",r),Mw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.semantic[r][e])),Xp.forEach(e=>e(r)),fo.save==="localStorage"?localStorage.setItem("semanticMode",r):fo.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function Lw(r,e=fo.semanticMode){ar.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?sf.forEach(i=>{Lo.semantic[i][n]=o}):Lo.semantic[e][n]=o)})}const Dw=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition","Transition-Enabled"],Ow=["ABase_Dimming_background-color"],Nw=["ATooltip_background-color","ATooltip_color"],Pw=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],Bw=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],Fw=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],jw=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_hover_border","AEditor_Error_focus_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],zw=["ACheckBox_color"],Hw=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],$w=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],qw=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],Uw=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],Ww=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],Vw=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],Gw=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],Yw=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],Zw=["AListView_border-thin","AListView_border-thick"],Kw=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],Xw=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],Jw=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],Qw=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],eC=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],tC=["ADivideFrame_DividerInner_background-color"],rC=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],nC=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],oC=["AWrap_Error_color"],iC=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],sC=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],h5=[...Dw,...Ow,...Nw,...Pw,...Bw,...Fw,...jw,...zw,...Hw,...$w,...qw,...Uw,...Ww,...Vw,...Gw,...Yw,...Zw,...Kw,...Xw,...Jw,...Qw,...eC,...tC,...rC,...nC,...oC,...iC,...sC],Cg={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","Transition-Enabled":"1","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_hover_border:"1px solid var(--alert-danger)",AEditor_Error_focus_border:"1px solid var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AFileUploader_background-color":"var(--background-normal)",AFileUploader_brand_color:"var(--acent-brand)",AFileUploader_disabled_color:"var(--label-neutral)",AFileUploader_error_color:"var(--alert-danger)",AFileUploader_text_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function p5(r){return Cg[r]}function g5(r){return Sg(r)}function aC(r){ar.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),Cg[t]=n)})}function m5(r){ar.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const o=Lo.semantic[fo.semanticMode][n];o!==void 0&&(document.documentElement.style.setProperty(t,o),Cg[t]=o)})}const fo={paletteMode:wg[0],semanticMode:sf[0],save:"",followDeviceSetting:!1};function v5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(fo.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),o=a=>{fo.semanticMode=a.matches?"dark":"light"};o(n);const i=a=>o(a);n.addEventListener("change",i)}if(e!==void 0){if(fo.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");sf.includes(n)&&(fo.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");sf.includes(n)&&(fo.semanticMode=n)}}r!==void 0&&(fo.semanticMode=r),kw(fo.paletteMode),Sv(fo.semanticMode),Iw(Lo.palette[fo.paletteMode]),Lw(Lo.semantic[fo.semanticMode]),aC(Cg)}function y5(r){r.type==="semanticModeChange"?Xp.push(r.listener):r.type==="paletteModeChange"?Kp.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function b5(r){if(r.type==="semanticModeChange"){const e=Xp.indexOf(r.listener);e!==-1&&Xp.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Kp.indexOf(r.listener);e!==-1&&Kp.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function Sg(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function x5(r){Object.assign(Ge.additionalClasses,r),Ge.updateKeys(),Ge.additionalClasses=Ge.additionalClasses}const uh={getCurrentPaletteMode:a5,getPaletteValue:l5,getPaletteDeepValue:c5,changePaletteMode:kw,editPalette:Iw,getCurrentSemanticMode:u5,getSemanticValue:d5,getSemanticDeepValue:f5,changeSemanticMode:Sv,editSemantic:Lw,getComponentStyleValue:p5,getComponentStyleDeepValue:g5,editComponentStyle:aC,editComponentStyleWithSemantic:m5,init:v5,addEventListener:y5,removeEventListener:b5,getDeepValue:Sg,addClasses:x5},w5=r=>{const{onChange:e,onClick:t,type:n="Icon",...o}=r,[i,a]=S.useState(uh.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),c=S.useCallback(d=>{const h=uh.getCurrentSemanticMode();let p="light";h==="light"?p="dark":h==="dark"&&(p="light"),uh.changeSemanticMode(p),a(C5[p]),e==null||e(p),t==null||t(d)},[e,t]);if(n==="Icon")return C.jsx(So,{...o,className:Ge.clsx(Ch.AThemeButton,o.className,"IsInteractive"),icon:i,type:"Raw",onClick:c});if(n==="Switch")return C.jsx(Tw,{...o,useCheck:[uh.getCurrentSemanticMode()==="dark",c]})},C5={light:"Sun",dark:"Moon"},S5="_ACheckBoxWrap_1ozuz_1",_5="_ACheckBox_1ozuz_1",x0={ACheckBoxWrap:S5,ACheckBox:_5},af=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:o,onClick:i,...a}=r,[c,d]=wn(e,!1),h=S.useCallback(p=>{n||o||(d==null||d(!c),i==null||i(p))},[n,o,i,c,d]);return C.jsx(Kr,{...a,className:Ge.clsx(a.className,x0.ACheckBoxWrap),isDisabled:n,isLoading:o,onClick:h,children:C.jsx(en,{className:x0.ACheckBox,icon:t?"Check.Indeterminate":c?"Check.Checked":"Check.UnChecked"})})};function A5(r){return typeof r=="function"}function E5(r,e){return A5(r)?r(e):r}const Or={getContent:E5};class w0{constructor(e){fe(this,"capacity");fe(this,"cache",new Map);this.capacity=e}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(e,t)}delete(e){return this.cache.delete(e)}clear(){this.cache.clear()}entries(){return Array.from(this.cache.entries())}}const ju=class ju{constructor(){fe(this,"databases",{});fe(this,"caches",{});fe(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return ju.instance||(ju.instance=new ju),ju.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new w0(this.DEFAULT_CACHE_SIZE)),this.caches[n]}async getDB(e,t,n=1){return this.databases[e]?this.databases[e]:new Promise((o,i)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),i(new Error("IndexedDB not supported"));return}const a=window.indexedDB.open(e,n);a.onerror=c=>{console.error("IndexedDB 연결 오류:",c.target.error),i(c.target.error)},a.onsuccess=c=>{const d=c.target.result;this.databases[e]=d,o(d)},a.onupgradeneeded=c=>{const d=c.target.result;d.objectStoreNames.contains(t)||d.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,n){this.getCache(e,t).put(n.id,{...n});const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const p=c.put(n);p.onsuccess=()=>d(),p.onerror=m=>{console.error("데이터 저장 오류:",m.target.error),h(m.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.put(d.id,{...d}));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=p=>{console.error("배치 저장 오류:",p.target.error),h(p.target.error)},n.forEach(p=>c.put(p))})}async get(e,t,n){const o=this.getCache(e,t),i=o.get(n);if(i)return i;const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((h,p)=>{const m=d.get(n);m.onsuccess=()=>{const g=m.result;g&&o.put(n,g),h(g||null)},m.onerror=g=>{console.error("데이터 조회 오류:",g.target.error),p(g.target.error)}})}async getByIndex(e,t,n,o){const d=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((h,p)=>{const m=d.getAll(o);m.onsuccess=()=>{const g=m.result,v=this.getCache(e,t);g.forEach(w=>{w&&w.id&&v.put(w.id,w)}),h(g)},m.onerror=g=>{console.error("인덱스 조회 오류:",g.target.error),p(g.target.error)}})}async delete(e,t,n){this.getCache(e,t).delete(n);const c=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((d,h)=>{const p=c.delete(n);p.onsuccess=()=>d(),p.onerror=m=>{console.error("데이터 삭제 오류:",m.target.error),h(m.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(d=>o.delete(d));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((d,h)=>{a.oncomplete=()=>d(),a.onerror=p=>{console.error("배치 삭제 오류:",p.target.error),h(p.target.error)},n.forEach(p=>c.delete(p))})}async getAll(e,t){const i=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((a,c)=>{const d=i.getAll();d.onsuccess=()=>{const h=d.result,p={},m=this.getCache(e,t);h.forEach(g=>{g.id&&(p[g.id]=g,m.put(g.id,g))}),a(p)},d.onerror=h=>{console.error("데이터 전체 조회 오류:",h.target.error),c(h.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((c,d)=>{const h=a.clear();h.onsuccess=()=>c(),h.onerror=p=>{console.error("데이터 초기화 오류:",p.target.error),d(p.target.error)}})}getCached(e,t,n){return this.getCache(e,t).get(n)||null}clearCached(e,t){this.getCache(e,t).clear()}setCacheSize(e,t,n){const o=`${e}_${t}`,a=this.getCache(e,t).entries();this.caches[o]=new w0(n);for(const[c,d]of a)this.caches[o].get(c)===void 0&&c!==void 0&&this.caches[o].put(c,d)}};fe(ju,"instance");let O1=ju;const na=O1.getInstance(),sa={save:(r,e,t)=>na.save(r,e,t),get:(r,e,t)=>na.get(r,e,t),delete:(r,e,t)=>na.delete(r,e,t),getAll:(r,e)=>na.getAll(r,e),clear:(r,e)=>na.clear(r,e),batchSave:(r,e,t)=>na.batchSave(r,e,t),batchDelete:(r,e,t)=>na.batchDelete(r,e,t),getByIndex:(r,e,t,n)=>na.getByIndex(r,e,t,n),getCached:(r,e,t)=>na.getCached(r,e,t),clearCached:(r,e)=>na.clearCached(r,e),setCacheSize:(r,e,t)=>na.setCacheSize(r,e,t)};function lC(r,e,t={}){const{dataFieldName:n="data"}=t,[o,i]=S.useState(!1),[a,c]=S.useState(null),d=S.useRef(new Map);S.useEffect(()=>{const z=d.current;return()=>{z.forEach(G=>G.abort()),z.clear()}},[]);const h=S.useCallback(z=>{const G=d.current,pe=G.get(z);pe&&pe.abort();const P=new AbortController;return G.set(z,P),P},[]),p=S.useCallback(z=>{d.current.delete(z)},[]),m=S.useCallback(async(z,G)=>{try{i(!0),c(null),h(z);const pe=await G();return p(z),pe}catch(pe){return pe instanceof Error&&pe.name==="AbortError"||c(pe instanceof Error?pe:new Error(String(pe))),null}finally{i(!1)}},[h,p]),g=S.useCallback(async(z,G)=>z?await m(`save_${z}`,async()=>(await sa.save(r,e,{id:z,[n]:G,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,m]),v=S.useCallback(async z=>z.length?await m(`batch_save_${Date.now()}`,async()=>{const G=z.map(pe=>({id:pe.id,[n]:pe.data,updatedAt:new Date().toISOString()}));return await sa.batchSave(r,e,G),!0})===!0:!1,[r,e,n,m]),w=S.useCallback(async z=>z?await m(`get_${z}`,async()=>{const G=await sa.get(r,e,z);return(G==null?void 0:G[n])||null}):null,[r,e,n,m]),T=S.useCallback(z=>{if(!z)return null;const G=sa.getCached(r,e,z);return(G==null?void 0:G[n])||null},[r,e,n]),_=S.useCallback(async z=>z?await m(`delete_${z}`,async()=>(await sa.delete(r,e,z),!0))===!0:!1,[r,e,m]),A=S.useCallback(async z=>z.length?await m(`batch_delete_${Date.now()}`,async()=>(await sa.batchDelete(r,e,z),!0))===!0:!1,[r,e,m]),R=S.useCallback(async()=>await m(`get_all_${Date.now()}`,async()=>{const z=await sa.getAll(r,e);return Object.entries(z).reduce((G,[pe,P])=>(G[pe]=P[n],G),{})})||{},[r,e,n,m]),D=S.useCallback(async()=>await m(`clear_all_${Date.now()}`,async()=>(await sa.clear(r,e),!0))===!0,[r,e,m]),I=S.useCallback(z=>{const G=d.current.get(z);G&&(G.abort(),d.current.delete(z))},[]),B=S.useCallback(()=>{new Map(d.current).forEach(G=>G.abort()),d.current.clear()},[]),F=S.useCallback(z=>{sa.setCacheSize(r,e,z)},[r,e]),j=S.useCallback(()=>{sa.clearCached(r,e)},[r,e]);return{save:g,get:w,delete:_,getAll:R,clearAll:D,batchSave:v,batchDelete:A,getCached:T,setCacheSize:F,clearCache:j,cancelOperation:I,cancelAllOperations:B,isLoading:o,error:a}}const T5="LayoutDB",R5="layouts";function cC(){const r=lC(T5,R5,{dataFieldName:"lengths"}),[e,t]=S.useState({}),n=S.useRef({}),o=async(p,m)=>await r.save(p,m),i=async p=>await r.get(p),a=p=>r.getCached(p),c=p=>{const m=a(p);return m?{data:m,isLoaded:!0}:n.current[p]!==void 0?{data:n.current[p],isLoaded:!!e[p]}:(e[p]||(n.current[p]=null,i(p).then(g=>{n.current[p]=g,t(v=>({...v,[p]:!0}))})),{data:null,isLoaded:!1})},d=async p=>(t(m=>{const g={...m};return delete g[p],g}),n.current[p]!==void 0&&delete n.current[p],await r.delete(p)),h=S.useCallback(()=>{t({}),n.current={}},[]);return{save:o,get:i,getCached:a,getSync:c,deleteItem:d,resetSyncState:h,isLoading:r.isLoading,error:r.error}}const k5="_ARowFrame_1vo43_1",I5="_AColFrame_1vo43_7",M5="_AOverflowFrame_1vo43_13",L5="_ADivideFrame_1vo43_22",D5="_Row_1vo43_30",O5="_Col_1vo43_33",N5="_FadeIn_1vo43_36",P5="_NoTransition_1vo43_39",B5="_ChildFrame_1vo43_43",F5="_Divider_1vo43_61",j5="_IsMoving_1vo43_69",z5="_NoDraggable_1vo43_69",H5="_DividerInner_1vo43_72",$5="_IsClicked_1vo43_97",q5="_RemoteButton_1vo43_132",U5="_isExpanded_1vo43_139",uo={ARowFrame:k5,AColFrame:I5,AOverflowFrame:M5,ADivideFrame:L5,Row:D5,Col:O5,FadeIn:N5,NoTransition:P5,ChildFrame:B5,Divider:F5,IsMoving:j5,NoDraggable:z5,DividerInner:H5,IsClicked:$5,RemoteButton:q5,isExpanded:U5},Rn=r=>C.jsx(Kr,{...r,className:Ge.clsx(uo.ARowFrame,r.className),children:r.children}),uC=r=>C.jsx("div",{...r,className:Ge.clsx(uo.AColFrame,r.className),children:r.children}),el=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:o,className:i,noOverflowTooltip:a,...c}=r,d=S.useRef(null),h=S.useMemo(()=>n??d,[n]),[p,m]=S.useState(!1),g=S.useCallback(()=>m(!0),[]),v=S.useCallback(()=>m(!1),[]);S.useEffect(()=>{const T=h.current;if(T)return T.addEventListener("mouseenter",g),T.addEventListener("mouseleave",v),()=>{T.removeEventListener("mouseenter",g),T.removeEventListener("mouseleave",v)}},[h,g,v]);const w=S.useMemo(()=>o?"":a||!p||!h.current?e:h.current.scrollWidth>h.current.clientWidth?t:e,[h,o,t,e,a,p]);return C.jsx(Kr,{...c,children:t,abaseRef:h,className:Ge.clsx(uo.AOverflowFrame,i),isDisabled:o,tooltip:w})},dC=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:C.jsx(S.Suspense,{children:t[e]})},fC=S.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:o=40,children:i,childStyle:a,childClassName:c,dividerStyle:d,dividerClassName:h,dividerPadding:p,dividerInnerClassName:m,dividerInnerStyle:g,showRemote:v,ShowRemoteRenderer:w=W5,noDividerDraggable:T,resources:_,...A}=r,R=S.useMemo(()=>({...wr.ADivideFrame,..._}),[_]),D=S.useRef(null),I=S.useRef(!1),B=S.useRef(!0),F=S.useRef(n),[j,z]=S.useState(),[G,pe]=S.useState(n),[P,U]=S.useState("FadeOut"),[V,Q]=S.useState(!1),{save:se,getSync:ue,deleteItem:oe}=cC(),ae=S.useCallback(()=>{B.current&&requestAnimationFrame(()=>{B.current=!1,U("FadeIn")})},[]),ge=S.useMemo(()=>{let we;return Array.isArray(i)?we=i:we=[i],we.filter(Boolean)},[i]),re=S.useMemo(()=>e&&!v,[e,v]),ie=S.useCallback(()=>{if(!re){ae();return}try{const we=String(e),{data:_e,isLoaded:Ae}=ue(we);_e?(pe(_e),Ae&&ae()):Ae?(pe(n),se(String(e),n),ae()):pe(n)}catch{pe(n),ae()}},[re,ae,e,ue,n,se]);S.useEffect(()=>{if(re){ie();const we=String(e),_e=()=>{const{isLoaded:Ae}=ue(we);Ae?ae():requestAnimationFrame(_e)};_e()}else ae()},[re,ie,ae,e,ue]),S.useEffect(()=>{F.current!==n&&(F.current=n,I.current||(pe(n),re&&se(String(e),n)),I.current=!1)},[re,n,e,se]);const he=S.useMemo(()=>{const we=p??0;return typeof o=="number"?Array(ge.length).fill(o+we):o.map(_e=>_e+we)},[o,ge.length,p]),Se=S.useMemo(()=>(j==null?void 0:j.lefts)||G,[j,G]),Le=S.useRef({x:0,y:0}),ne=S.useCallback((we,_e,Ae)=>{const $e=Se[we],Fe=we===0?0:Se[we-1],Qe=$e-Fe,Ue={...a,...V5(t,Qe,_e)};return p!==void 0&&(t==="Row"?(Ae||(Ue.paddingLeft=p),_e||(Ue.paddingRight=p)):(Ae||(Ue.paddingTop=p),_e||(Ue.paddingBottom=p))),Ue},[Se,a,t,p]),ve=S.useCallback(()=>{if(!(!v||t!=="Row")){if(V)pe(n),I.current=!1;else{const we=ge.length;if(we<=1)return;const _e=[],Ae=[];for(let Fe=0;Fe<we;Fe++)typeof o=="number"?Ae.push(o):Ae.push(o[Fe]||o[0]);let $e=0;for(let Fe=0;Fe<we-1;Fe++)$e+=Ae[Fe],_e.push($e);pe(_e),I.current=!0}Q(we=>!we),B.current=!1}},[v,t,V,ge.length,n,o]),ke=S.useCallback((we,_e)=>{if(_e)return Ae=>{if(!D.current)return;B.current=!1;const $e=D.current;Le.current={x:Ae.clientX,y:Ae.clientY},z({idx:we,lefts:[...G]});let Fe=[...G];const Qe=et=>{const ct=$e.getBoundingClientRect(),Ct=t==="Row"?ct.left:ct.top,It=t==="Row"?ct.width:ct.height;Fe=Y5(G,t,we,et,Ct,It,he),z({idx:we,lefts:Fe})},Ue=()=>{z(void 0),pe(Fe),I.current=!0,re&&se(String(e),Fe),window.removeEventListener("mousemove",Qe),window.removeEventListener("mouseup",Ue)};window.addEventListener("mousemove",Qe),window.addEventListener("mouseup",Ue)}},[G,t,he,re,e,se]),De=S.useCallback(we=>{if(we)return()=>{pe(n),I.current=!1,z(void 0),re&&oe(String(e))}},[n,re,e,oe]),Oe=S.useMemo(()=>ge.map((we,_e)=>{const Ae=v&&(V||!V&&_e===ge.length-2);return!(T||Ae)}),[ge,v,V,T]);return C.jsx("div",{...A,ref:D,className:Ge.clsx(uo.ADivideFrame,r.className,uo[t],uo[P],B.current&&uo.NoTransition),children:ge.map((we,_e)=>{const Ae=_e===0,$e=_e===ge.length-1,Fe=ne(_e,$e,Ae),Qe=Se[_e],Ue=Oe[_e],et=ke(_e,Ue),ct=De(Ue);return C.jsxs(S.Fragment,{children:[C.jsxs("div",{style:Fe,className:Ge.clsx(uo.ChildFrame,c,j&&uo.IsMoving,B.current&&uo.NoTransition,uo[t]),children:[$e&&v&&t==="Row"&&C.jsx(w,{handleToggleExpand:ve,isExpanded:V,resources:R}),we]}),!$e&&C.jsx("div",{"data-nodraggable":Ue?void 0:"true",className:Ge.clsx(uo.Divider,uo[t],"NoSelect",j&&uo.IsMoving,(j==null?void 0:j.idx)===_e&&uo.IsClicked,B.current&&uo.NoTransition,!Ue&&uo.NoDraggable,h),style:{...d,...G5(t,Qe)},onDoubleClick:ct,onMouseDown:et,children:C.jsx("div",{className:Ge.clsx(uo.DividerInner,m),style:{...g}})})]},_e)})})});fC.displayName="ADivideFrame";const W5=r=>{const{handleToggleExpand:e,isExpanded:t,resources:n}=r;return C.jsx(So,{className:Ge.clsx(uo.RemoteButton,t&&uo.isExpanded),icon:"DividerExpand",iconSize:"md",tabIndex:0,tooltip:t?n.Collapse:n.Expand,type:"Raw",onClick:e})};function V5(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function G5(r,e){return r==="Col"?{top:e}:{left:e}}function Y5(r,e,t,n,o,i,a){const c=[...r];let d=e==="Row"?n.clientX-o-r[t]:n.clientY-o-r[t];const h=[],p=[];let m=0;for(let v=0;v<=a.length;v++)h[v]=m,v<a.length&&(m+=a[v]);let g=0;for(let v=a.length-2;v>=0;v--)g+=a[v],p[v]=g;if(p[a.length-1]=0,d<0){let v=c[t]+d;if(v<=h[t+1])for(let w=0;w<=t;w++)c[w]=h[w+1];else if(c[t]=v,t>0)for(let w=t-1;w>=0&&v-c[w]<a[w];w--)c[w]=v-a[t],v=c[w]}else if(d>0){let v=c[t]+d;const w=t===a.length-2?a[a.length-1]:0;if(v>=i-p[t]-w)for(let T=t;T<r.length;T++)c[T]=i-p[T]-(T===r.length-1?0:w);else if(c[t]=v,t<r.length-1)for(let T=t+1;T<r.length&&c[T]-v<a[T];T++)c[T]=v+a[T],v=c[T]}return c}const Ku=()=>C.jsx("div",{style:{display:"flex",flexGrow:1}}),Z5="_ASpace_1okqf_1",K5={ASpace:Z5},Nn=r=>{const{h:e,w:t,...n}=r;return C.jsx("div",{...n,className:Ge.clsx(K5.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},X5="_AChipsContainer_1ag9v_1",J5="_AChip_1ag9v_1",Q5="_Clickable_1ag9v_21",eR="_AChipDelete_1ag9v_26",tR="_IsHover_1ag9v_40",rR="_AChipDeleteIcon_1ag9v_45",Xd={AChipsContainer:X5,AChip:J5,Clickable:Q5,AChipDelete:eR,IsHover:tR,AChipDeleteIcon:rR},nR=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:o,ChipOnDelete:i,ChipOnClick:a,ChipIcon:c,className:d,style:h,ButtonRenderer:p=hC,gap:m=8,...g}=r,[v,w]=wn(e,[]),T=S.useCallback(A=>{!w||!i||(i({label:A}),w(v.filter(R=>R!==A)))},[w,i,v]),_=S.useCallback(A=>{const R={label:A};return{label:A,useLabel:[A,()=>{}],style:Or.getContent(n,R),className:Or.getContent(o,R),icon:Or.getContent(c,R),onDelete:()=>T(A),onClick:a?()=>a({label:A}):void 0}},[o,c,a,n,T]);return C.jsx(Kr,{...g,className:Ge.clsx(Xd.AChipsContainer,d),style:{...h,alignItems:t,gap:m},children:v.map((A,R)=>C.jsx(_v,{..._(A),ButtonRenderer:p},R))})},_v=r=>{const{label:e,useLabel:t,icon:n,className:o,onDelete:i,onClick:a,ButtonRenderer:c=hC,width:d="fit-content",style:h,...p}=r;return e===void 0?C.jsx(C.Fragment,{}):C.jsxs(Kr,{...p,className:Ge.clsx("NoSelect",Xd.AChip,a&&Xd.Clickable,a&&"IsClickable",o),style:{...h,width:d},onClick:a,children:[C.jsx(el,{children:e}),c({...r})]})},hC=r=>{const{label:e,icon:t,onDelete:n,useLabel:o}=r,[,i]=wn(o,e),[a,c]=S.useState(!1),d=S.useCallback(m=>{n&&(m.stopPropagation(),i==null||i(void 0),n(r))},[n,r,i]),h=()=>{c(!0)},p=()=>{c(!1)};return C.jsx(C.Fragment,{children:n&&C.jsxs(C.Fragment,{children:[C.jsx(Ku,{}),C.jsx(Nn,{w:24}),C.jsx(Kr,{className:Ge.clsx(Xd.AChipDelete,"IsClickable",a&&Xd.IsHover)}),C.jsx(So,{className:Xd.AChipDeleteIcon,icon:t||C.jsx(en,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:d,onMouseEnter:h,onMouseLeave:p})]})})},$u=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`},oR=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),o=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=o.toString().padStart(2,"0"),e},iR=/[a-zA-Z0-9]/,sR=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,aR=/^[a-zA-Z0-9._-]+$/,lR=/^[0-9a-fA-F-]+$/i,cR=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,uR=/^\S*$/,dR=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,fR=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,hR=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,pR=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,gR={hasKr:r=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(r),hasMalKr:r=>/[ㄱ-ㅎㅏ-ㅣ]/.test(r),hasBlank:r=>/\s/.test(r),isBlank:r=>/^\s*$/.test(r),isUuid:r=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(r),isEmail:r=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(r),isAlphabet:r=>/^[a-zA-Z]*$/.test(r),isAlphaNumeric:r=>/^[a-zA-Z0-9]*$/.test(r),isKr:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(r),isKrNumeric:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(r),isNumeric:r=>/^[0-9]$/.test(r),isLenMinMax:(r,e)=>t=>!(r!==void 0&&t.length<r||e!==void 0&&t.length>e)},mR=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const e=Math.random()*16|0;return(r=="x"?e:e&3|8).toString(16)}),Av={secondToTime:oR,validate:gR,FileSizeTrans:$u,uuid:mR},vR=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:o,actionRef:i,...a}=r,[{wrapId:c,wrapProps:d,labelProps:h,...p},m]=Zu(a),[g,v]=S.useState(0),[w,T]=S.useState(!o);S.useEffect(()=>{if(!w||m.isDisabled||m.isLoading)return;const B=setInterval(()=>v(F=>F+1),t);return()=>clearInterval(B)},[t,w,m.isDisabled,m.isLoading]);const _=S.useCallback(()=>{n==null||n(),T(!1)},[n]);S.useEffect(()=>{g>=e&&!m.isDisabled&&!m.isLoading&&_()},[g,e,_,m.isDisabled,m.isLoading]);const A=S.useCallback(()=>{m.isDisabled||T(!0)},[m.isDisabled]),R=S.useCallback(()=>{m.isDisabled||T(!1)},[m.isDisabled]),D=S.useCallback(()=>{m.isDisabled||(T(!1),v(0))},[m.isDisabled]);S.useEffect(()=>{i&&(i.current={start:A,stop:R,reset:D,setTicks:v})},[i,A,R,D]);const I=e-g;return C.jsx(Wc,{wrapId:c,wrapProps:d,labelProps:h,...p,children:C.jsx(Kr,{...m,children:Av.secondToTime(I>0?I:0)})})};function ha(r){const e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate();return`${e}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}function yR(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function bR(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function xR(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function C0(r,e){return ha(r)===ha(e)}function Jd(r,e){return ha(r)>ha(e)}function Jp(r,e){return ha(r)>=ha(e)}function Qp(r,e){return ha(r)<ha(e)}function eg(r,e){return ha(r)<=ha(e)}function S0(r,e,t){return Jd(r,t)?Jd(e,t)&&Qp(e,r):Jd(e,r)&&Qp(e,t)}function _0(r,e,t){return Jd(r,t)?Jp(e,t)&&eg(e,r):Jp(e,r)&&eg(e,t)}const tr={toString:ha,toDate:yR,makeSDate:bR,makeEDate:xR,"===":C0,">":Jd,">=":Jp,"<":Qp,"<=":eg,"s<d<e|e<d<s":S0,"s<=d<=e|e<=d<=s":_0,eq:C0,g:Jd,ge:Jp,l:Qp,le:eg,b:S0,be:_0},wR="_InputContainer_44opg_7",CR="_AInput_44opg_21",SR="_LeftAddon_44opg_43",_R="_RightAddon_44opg_49",AR="_ErrorHelperText_44opg_55",ER="_Primary_44opg_59",TR="_UnAvailable_44opg_64",RR="_Secondary_44opg_75",kR="_ReadOnly_44opg_90",gi={InputContainer:wR,AInput:CR,LeftAddon:SR,RightAddon:_R,ErrorHelperText:AR,Primary:ER,UnAvailable:TR,Secondary:RR,ReadOnly:kR,Error:"_Error_44opg_55"},IR=["Primary","Secondary","ReadOnly","Error"],Vc=r=>{const{onEnterPress:e,type:t="Primary",inputRef:n,useValue:o,isReadonly:i,placeholder:a,minLength:c,maxLength:d,tabIndex:h,autoFocus:p,isPassword:m,autoComplete:g="off",inputProps:v,LeftAddon:w,RightAddon:T,dataList:_=[],id:A=(v==null?void 0:v.id)??Av.uuid(),...R}=r,[{wrapId:D,wrapProps:I,labelProps:B,...F},j]=Zu(R),z=S.useMemo(()=>MR(F.errorMessage)?"Error":t,[F.errorMessage,t]),G=S.useMemo(()=>z==="ReadOnly"?!0:i,[z,i]),pe=S.useMemo(()=>j.isDisabled||j.isLoading,[j.isDisabled,j.isLoading]),[P,U]=wn(o,""),V=S.useCallback(se=>{var ue;pe||((ue=v==null?void 0:v.onKeyDown)==null||ue.call(v,se),["Escape","Enter","ArrowUp","ArrowDown"].includes(se.key)||se.stopPropagation(),se.key==="Enter"&&e&&e(se.currentTarget.value))},[pe,v,e]),Q=S.useCallback(se=>{var ue;pe||c&&se.target.value.length<c||(U==null||U(se.target.value),(ue=v==null?void 0:v.onChange)==null||ue.call(v,se))},[pe,c,U,v]);return m?C.jsx(Wc,{wrapId:D,wrapProps:I,labelProps:B,...F,children:C.jsx("form",{onSubmit:se=>se.preventDefault(),children:C.jsxs(Kr,{...j,className:Ge.clsx(gi.InputContainer,gi[z],pe&&gi.UnAvailable,j.className),children:[w&&C.jsx("div",{className:gi.LeftAddon,children:w}),C.jsx("input",{...v,ref:n,autoComplete:g,autoFocus:p,className:Ge.clsx(gi.AInput,z==="Error"&&gi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:j.isDisabled||j.isLoading?-1:h,type:"password",value:P,onChange:Q,onKeyDown:V}),_.length>0&&C.jsx("datalist",{id:`${A}-datalist`,children:_.map((se,ue)=>C.jsx("option",{value:se},ue))}),T&&C.jsx("div",{className:Ge.clsx(gi.RightAddon,"NoSelect"),children:T})]})})}):C.jsx(Wc,{wrapId:D,wrapProps:I,labelProps:B,...F,children:C.jsxs(Kr,{...j,className:Ge.clsx(gi.InputContainer,gi[z],pe&&gi.UnAvailable,j.className),children:[w&&C.jsx("div",{className:gi.LeftAddon,children:w}),C.jsx("input",{...v,ref:n,autoComplete:g,autoFocus:p,className:Ge.clsx(gi.AInput,z==="Error"&&gi.InputError,v==null?void 0:v.className),id:A,list:`${A}-datalist`,maxLength:d,placeholder:a,readOnly:G,tabIndex:j.isDisabled||j.isLoading?-1:h,value:P,onChange:Q,onKeyDown:V}),_.length>0&&C.jsx("datalist",{id:`${A}-datalist`,children:_.map((se,ue)=>C.jsx("option",{value:se},ue))}),T&&C.jsx("div",{className:gi.RightAddon,children:T})]})})};function MR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const LR="_ASelect_vvzf4_1",DR="_Arrow_vvzf4_14",OR="_Primary_vvzf4_23",NR="_UnAvailable_vvzf4_34",PR="_IsOpen_vvzf4_34",BR="_Secondary_vvzf4_41",FR="_Placeholder_vvzf4_57",jR="_ValuesContainer_vvzf4_61",zR="_Values_vvzf4_61",HR="_Options_vvzf4_80",$R="_Option_vvzf4_80",qR="_Selected_vvzf4_122",UR="_CheckBox_vvzf4_129",rs={ASelect:LR,Arrow:DR,Primary:OR,UnAvailable:NR,IsOpen:PR,Secondary:BR,Placeholder:FR,ValuesContainer:jR,Values:zR,Options:HR,Option:$R,Selected:qR,CheckBox:UR},WR=["Primary","Secondary"],Gc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.ASelect["Select(Placeholder)"],onClose:i,OptionRenderer:a=GR,SelectedRenderer:c=YR,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[_,A]=wn(t,e[0]),[R,D]=S.useState(void 0),[I,B]=S.useState(!1),[F,j]=S.useState(!1),z=S.useRef(e),G=S.useRef(null),pe=S.useCallback(()=>j(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(j(!0),setTimeout(()=>B(!0),0),setTimeout(()=>dm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),U=S.useCallback(()=>{B(!1),j(!0),i==null||i()},[i]),V=S.useCallback(re=>{var ie;I?U():P(),setTimeout(()=>dm(T,w,e,d,h),0),(ie=g.onClick)==null||ie.call(g,re)},[w,g,e,I,U,P,d,h]),Q=S.useCallback(()=>{dm(T,w,e,d,h)},[w,e,d,h]);S.useEffect(()=>{if(!I||!w.current)return;const re=w.current;let ie=re.parentElement;for(;ie;)ie.addEventListener("scroll",Q),ie=ie.parentElement;return()=>{let he=re.parentElement;for(;he;)he.removeEventListener("scroll",Q),he=he.parentElement}},[w,I,Q]),S.useEffect(()=>{if(I)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[I,Q]);const se=S.useCallback(re=>{re[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!I)return;const re=new IntersectionObserver(se,{threshold:0});return w.current&&re.observe(w.current),()=>re.disconnect()},[w,I,se]);const ue=S.useCallback(re=>{const ie=re.target,he=w.current,Se=T.current;!he||!ie||!Se||!he.contains(ie)&&!Se.contains(ie)&&U()},[w,U]),oe=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(I)return setTimeout(()=>document.addEventListener("mousedown",ue),0),()=>document.removeEventListener("mousedown",ue)},[I,ue]);const ae=S.useCallback((re,ie)=>{re.stopPropagation(),re.preventDefault(),A==null||A(ie),U()},[A,U]),ge=S.useCallback(()=>{if(!m||!w.current)return;const re=Hu.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOption:_,placeholder:o,optionRenderer:ie=>ie===null?null:a({option:ie}),type:n,isMulti:!1});D(re)},[m,w,e,_,o,a,n]);return S.useEffect(()=>m?((e!==z.current||R===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{ge(),G.current=null,z.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[m,e,ge,R]),S.useEffect(()=>()=>{typeof Hu.clearCache=="function"&&Hu.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ge.clsx(g.className,rs.ASelect,"NoSelect",I&&rs.IsOpen,oe&&rs.UnAvailable,rs[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:rs.ValuesContainer,children:C.jsx("div",{className:Ge.clsx(rs.Values,(_==null||_==="")&&rs.Placeholder),children:C.jsx(c,{OptionRenderer:a,placeholder:o,selectedOption:_})})}),C.jsx("div",{...p,className:Ge.clsx(rs.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:I?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(I||F)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ge.clsx(rs.Options,rs[n]),style:{opacity:+I,visibility:I?"visible":"hidden",pointerEvents:I?void 0:"none",borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0,width:R?`${R}px`:m?"100px":void 0},onTransitionEnd:pe,children:e.map((re,ie)=>{const he=_===re,Se=w.current?window.getComputedStyle(w.current):void 0;return re===null?null:C.jsx("div",{className:Ge.clsx(rs.Option,he&&rs.Selected,"NoSelect",rs[n]),style:{height:Se==null?void 0:Se.height},onClick:Le=>ae(Le,re),children:C.jsx(a,{option:re})},ie)})}),document.body)]})};function dm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=VR(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function VR(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const GR=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},YR=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:C.jsx(t,{option:e})},ZR="_Anchor_27s50_1",KR="_Primary_27s50_18",XR="_Secondary_27s50_21",JR="_Placeholder_27s50_25",QR="_Icon_27s50_30",ek="_ADatePicker_27s50_37",tk="_StringInputWrap_27s50_48",rk="_StringInputContainer_27s50_53",nk="_StringInput_27s50_48",ok="_IsIdx_27s50_68",ik="_CalendarContainer_27s50_72",sk="_Header_27s50_78",ak="_Prev_27s50_82",lk="_Next_27s50_83",ck="_MonthYear_27s50_116",uk="_Select_27s50_121",dk="_Calendar_27s50_72",fk="_Cell_27s50_131",hk="_IsNotCurrentMonth_27s50_143",pk="_IsSelected_27s50_147",gk="_IsDisabled_27s50_151",mk="_IsHovered_27s50_154",vk="_Week_27s50_158",yk="_WeekDay_27s50_163",bn={Anchor:ZR,Primary:KR,Secondary:XR,Placeholder:JR,Icon:QR,ADatePicker:ek,StringInputWrap:tk,StringInputContainer:rk,StringInput:nk,String:"_String_27s50_48",IsIdx:ok,CalendarContainer:ik,Header:sk,Prev:ak,Next:lk,MonthYear:ck,Select:uk,Calendar:dk,Cell:fk,IsNotCurrentMonth:hk,IsSelected:pk,IsDisabled:gk,IsHovered:mk,Week:vk,WeekDay:yk},bk="_Anchor_1x8q1_1",xk="_Primary_1x8q1_18",wk="_Secondary_1x8q1_22",Ck="_Placeholder_1x8q1_26",Sk="_Icon_1x8q1_31",_k="_ADateRangePicker_1x8q1_38",Ak="_StringInputWrap_1x8q1_49",Ek="_StringInputContainer_1x8q1_53",Tk="_StringInput_1x8q1_49",Rk="_IsIdx_1x8q1_69",kk="_CalendarContainer_1x8q1_73",Ik="_Header_1x8q1_79",Mk="_Prev_1x8q1_83",Lk="_Next_1x8q1_84",Dk="_MonthYear_1x8q1_117",Ok="_Select_1x8q1_122",Nk="_Calendar_1x8q1_73",Pk="_Cell_1x8q1_132",Bk="_IsNotCurrentMonth_1x8q1_144",Fk="_IsSelected_1x8q1_148",jk="_IsDisabled_1x8q1_152",zk="_IsHovered_1x8q1_155",Hk="_Week_1x8q1_159",$k="_WeekDay_1x8q1_164",qk="_ChoiceButton_1x8q1_168",Zr={Anchor:bk,Primary:xk,Secondary:wk,Placeholder:Ck,Icon:Sk,ADateRangePicker:_k,StringInputWrap:Ak,StringInputContainer:Ek,StringInput:Tk,String:"_String_1x8q1_49",IsIdx:Rk,CalendarContainer:kk,Header:Ik,Prev:Mk,Next:Lk,MonthYear:Dk,Select:Ok,Calendar:Nk,Cell:Pk,IsNotCurrentMonth:Bk,IsSelected:Fk,IsDisabled:jk,IsHovered:zk,Week:Hk,WeekDay:$k,ChoiceButton:qk},Ev=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,yearsOptionSize:p,noDefaultChoices:m,LeftAddon:g,RightAddon:v,placeholder:w,noClearButton:T,resources:_,onClick:A,...R}=r,D=S.useMemo(()=>({...wr.ADateRangePicker,..._}),[_]),I=S.useMemo(()=>w??D["Select DateRange"],[w,D]),[B,F]=S.useMemo(()=>{let le,st;if(a&&(le=tr.makeSDate(a)),c&&(st=tr.makeEDate(c)),le&&st&&tr["<"](st,le)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const yt=le;le=st,st=yt}return[le,st]},[a,c]),[j,z]=S.useState("sD"),[G,pe]=wn(n,void 0),P=S.useCallback(le=>{pe&&(le===void 0?(pe(void 0),Ae(""),Qe("")):(pe({sDate:tr.makeSDate(le.sDate),eDate:tr.makeEDate(le.eDate)}),Ae(tr.toString(le.sDate)),Qe(tr.toString(le.eDate))))},[pe]);S.useEffect(()=>{G&&(Ae(tr.toString(G.sDate)),Qe(tr.toString(G.eDate)))},[G]);const U=S.useCallback(le=>{if(!pe)return;let st=G?G.sDate:tr.makeSDate(le);le=tr.makeEDate(le),pe({sDate:st,eDate:le}),Ae(tr.toString(st)),Qe(tr.toString(le))},[pe,G]),[V,Q]=S.useState(),[se,ue]=S.useState(),oe=S.useCallback(le=>{j==="sD"&&P({sDate:le,eDate:le}),Q(le),ue(le)},[j,P,Q]),ae=S.useCallback(le=>{j==="sD"?V&&(tr.eq(V,le)?z("eD"):tr[">"](le,V)?(U(le),Q(void 0)):(P({sDate:le,eDate:V}),Q(void 0))):(G?tr["<"](le,G.sDate)?P({sDate:le,eDate:G.eDate}):U(le):P({sDate:le,eDate:le}),Q(void 0),z("sD"))},[U,V,z,j,P,G,Q]),ge=S.useCallback(le=>{V&&ue(le)},[V]),re=S.useCallback(()=>{ue(void 0),Q(void 0),z("sD")},[z,Q]),[ie,he]=S.useState(A0(G,B,F)),Se=S.useMemo(()=>Tv(ie.year,B,F,p),[ie.year,B,F,p]),Le=S.useMemo(()=>Sh(ie.year,B,F),[B,F,ie.year]),ne=S.useCallback(le=>{if(!Se.includes(le))return;const st={month:ie.month,year:le},yt=Sh(st.year,B,F);yt.length<1||(yt.includes(st.month)||(st.month<yt[0]?st.month=yt[0]:st.month>yt[yt.length-1]&&(st.month=yt[yt.length-1])),he(st))},[B,F,Se,ie.month]),ve=S.useCallback(le=>{Le.includes(le)&&he({month:le,year:ie.year})},[Le,ie.year]),ke=S.useMemo(()=>F?new Date(ie.year,ie.month+1,1)>F:!1,[ie,F]),De=S.useCallback(()=>{if(ke||Le.length<1)return;const le=ie.month+1;le>11?he({month:Le[0],year:ie.year+1}):he({month:le,year:ie.year})},[ke,Le,ie]),Oe=S.useMemo(()=>B?new Date(ie.year,ie.month,0)<B:!1,[ie,B]),we=S.useCallback(()=>{if(Oe||Le.length<1)return;const le=ie.month-1;le<Le[0]?he({month:Le[Le.length-1],year:ie.year-1}):he({month:le,year:ie.year})},[Oe,Le,ie]),[_e,Ae]=S.useState(G!=null&&G.sDate?tr.toString(G.sDate):""),$e=S.useCallback(le=>{if(le.length>10||(Ae(le),le.length<10)||!pe)return;let st=tr.toDate(le);if(!st)return;B&&st<B&&(st=B),F&&st>F&&(st=F);let yt=G?G.eDate:st;G&&tr[">"](st,yt)&&([st,yt]=E0(st,yt)),P({sDate:st,eDate:yt}),he({month:st.getMonth(),year:st.getFullYear()})},[pe,P,G,B,F]),[Fe,Qe]=S.useState(G!=null&&G.eDate?tr.toString(G.eDate):""),Ue=S.useCallback(le=>{if(le.length>10||(Qe(le),le.length<10)||!pe)return;let st=tr.toDate(le);if(!st)return;B&&st<B&&(st=B),F&&st>F&&(st=F);let yt=G?G.sDate:st;G&&tr[">"](yt,st)&&([yt,st]=E0(yt,st)),P({sDate:yt,eDate:st}),he({month:st.getMonth(),year:st.getFullYear()})},[pe,P,G,B,F]),et=S.useCallback(()=>{G&&(Ae(tr.toString(G.sDate)),Qe(tr.toString(G.eDate)))},[G]),ct=S.useMemo(()=>{const{month:le,year:st}=ie,yt=new Date(st,le,1),nt=new Date(st,le+1,0),pt=[];for(let Ft=0;Ft<yt.getDay();Ft++){const at=new Date(st,le,0).getDate()-yt.getDay()+Ft+1,lt=new Date(st,le-1,at),_t=B&&B>lt||F&&F<lt,Ot=G?tr.be(G.sDate,lt,G.eDate):!1,Bt=se&&G&&tr.be(G.sDate,lt,se);pt.push({day:at,isSelected:Ot,isHovered:Bt,date:lt,isDisabled:_t,isCurrentMonth:!1})}for(let Ft=1;Ft<=nt.getDate();Ft++){const Ve=new Date(st,le,Ft),at=B&&B>Ve||F&&F<Ve,lt=G?tr.be(G.sDate,Ve,G.eDate):!1,_t=se&&G&&tr.be(G.sDate,Ve,se);pt.push({day:Ft,isSelected:lt,isHovered:_t,date:Ve,isDisabled:at,isCurrentMonth:!0})}for(let Ft=0;Ft<7-nt.getDay()-1;Ft++){const Ve=new Date(st,le+1,Ft+1),at=B&&B>Ve||F&&F<Ve,lt=G?tr.be(G.sDate,Ve,G.eDate):!1,_t=se&&G&&tr.be(G.sDate,Ve,se);pt.push({day:Ft+1,isSelected:lt,isHovered:_t,date:Ve,isDisabled:at,isCurrentMonth:!1})}const ht=[];for(let Ft=0;Ft<pt.length/7;Ft++)ht.push(C.jsx("div",{className:Zr.Week,children:pt.slice(Ft*7,Ft*7+7).map((Ve,at)=>C.jsx(Go,{isDisabled:Ve.isDisabled,type:"Raw",className:Ge.clsx(Zr.Cell,Ve.isDisabled?Zr.IsDisabled:Ve.isCurrentMonth?Ve.isSelected?Zr.IsSelected:Ve.isHovered&&Zr.IsHovered:Zr.IsNotCurrentMonth),onMouseDown:()=>Ve.isCurrentMonth&&oe(Ve.date),onMouseEnter:()=>Ve.isCurrentMonth&&ge(Ve.date),onMouseUp:()=>Ve.isCurrentMonth&&ae(Ve.date),children:Ve.day},at))},Ft));return ht},[ie,se,G,B,F,oe,ae,ge]),Ct=S.useRef(null),It=S.useCallback(()=>{Ct&&Cv(Ct,Pe,i)},[Ct,i]),[Je,Ke]=S.useState(!1),[ft,gt]=S.useState(!1),Pe=S.useRef(null),Xe=S.useCallback(()=>{d||h||(Ke(!0),setTimeout(()=>gt(!0),0),setTimeout(()=>It(),0),he(A0(G,B,F)))},[d,h,G,It,B,F]),vt=S.useCallback(()=>{d||h||(Ke(!0),gt(!1))},[d,h]),Nt=S.useMemo(()=>ft?vt:Xe,[ft,Xe,vt]),xt=S.useCallback(()=>Ke(!1),[]),Lt=S.useCallback(le=>{const st=document.getElementById("root"),yt=le.target,nt=Pe.current,pt=Ct.current;!st||!nt||!yt||!pt||!nt.contains(yt)&&st.contains(yt)&&!pt.contains(yt)&&vt()},[vt]);S.useEffect(()=>{if(ft)return setTimeout(()=>document.addEventListener("mousedown",Lt),0),()=>document.removeEventListener("mousedown",Lt)},[ft,Lt]);const Qt=S.useCallback(()=>{It()},[It]);S.useEffect(()=>{if(!ft||!(Ct!=null&&Ct.current))return;const le=Ct.current;let st=le.parentElement;for(;st;)st.addEventListener("scroll",Qt),st=st.parentElement;return()=>{let yt=le.parentElement;for(;yt;)yt.removeEventListener("scroll",Qt),yt=yt.parentElement}},[Ct,ft,Qt]),S.useEffect(()=>{if(ft)return window.addEventListener("resize",Qt),()=>window.removeEventListener("resize",Qt)},[ft,Qt]);const Ut=S.useCallback(le=>{le[0].intersectionRatio===0&&vt()},[vt]);S.useEffect(()=>{if(!ft)return;const le=new IntersectionObserver(Ut,{threshold:0});return Pe.current&&le.observe(Pe.current),()=>le.disconnect()},[Pe,ft,Ut]),S.useEffect(()=>{o&&(o.current={open:Xe,close:vt,toggle:Nt})},[o,Xe,vt,Nt]),S.useEffect(()=>{if(!G)return;let le={sDate:G.sDate,eDate:G.eDate};B&&(tr["<"](G.sDate,B)&&(le.sDate=B),tr["<"](G.eDate,B)&&(le.eDate=B)),F&&(tr[">"](G.sDate,F)&&(le.sDate=F),tr[">"](G.eDate,F)&&(le.eDate=F)),(le.sDate!==G.sDate||le.eDate!==G.eDate)&&P(le)},[B,F,G,P]);const fr=S.useCallback(le=>{A==null||A(le),Nt()},[A,Nt]),hr=S.useCallback(le=>{P(void 0),vt(),le.stopPropagation()},[P,vt]),cr=S.useCallback(()=>G?C.jsx(So,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:hr}):null,[G,hr]),Te=S.useMemo(()=>G?`${tr.toString(G.sDate)} ~ ${tr.toString(G.eDate)}`:C.jsx("span",{className:Zr.Placeholder,children:I}),[G,I]);return C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{...R,abaseRef:Ct,className:Ge.clsx(Zr.Anchor,"IsClickable",Zr[e],t),isDisabled:d,isLoading:h,onClick:fr,children:[g,e==="Primary"&&C.jsxs(C.Fragment,{children:[C.jsx(en,{className:Ge.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),C.jsx(Nn,{w:4})]}),Te,C.jsx(Ku,{}),!T&&C.jsx(cr,{}),e==="Secondary"&&C.jsx(en,{className:Ge.clsx(Zr.Icon,Zr[e]),icon:"CalendarDay"}),v&&v]}),(ft||Je)&&Ls.createPortal(C.jsxs("div",{ref:Pe,className:Zr.ADateRangePicker,style:{opacity:+ft,visibility:ft?"visible":"hidden"},onMouseLeave:re,onTransitionEnd:xt,children:[C.jsxs("div",{className:Zr.StringInputContainer,children:[C.jsxs(Rn,{children:[C.jsx(Vc,{className:Ge.clsx(Zr.String,j==="sD"&&se&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[_e,$e],wrapProps:{className:Zr.StringInputWrap},onBlur:et}),C.jsx(Nn,{w:8}),C.jsx(Vc,{className:Ge.clsx(Zr.String,j==="eD"&&se&&Zr.IsIdx),inputProps:{className:Zr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[Fe,Ue],wrapProps:{className:Zr.StringInputWrap},onBlur:et})]}),!m&&C.jsxs(Rn,{style:{marginTop:4},children:[C.jsx(cp,{children:D["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),C.jsx(cp,{children:D["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),C.jsx(cp,{children:D["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),C.jsx(cp,{children:D["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),C.jsxs("div",{className:Zr.CalendarContainer,children:[C.jsxs(Rn,{className:Zr.Header,children:[C.jsx(Go,{className:Zr.Prev,isDisabled:Oe,type:"Raw",onClick:we}),C.jsxs("div",{className:Zr.MonthYear,children:[C.jsx(Gc,{isAutoWidth:!0,className:Zr.Select,OptionRenderer:le=>D.months(le.option),options:Le,SelectedRenderer:le=>D.months(le.selectedOption),type:"Secondary",useSelect:[ie.month,ve]}),C.jsx(Nn,{w:8}),C.jsx(Gc,{isAutoWidth:!0,className:Zr.Select,options:Se,type:"Secondary",useSelect:[ie.year,ne]})]}),C.jsx(Go,{className:Zr.Next,isDisabled:ke,type:"Raw",onClick:De})]}),C.jsx(Nn,{h:10}),C.jsxs("div",{className:Zr.Calendar,children:[C.jsx("div",{className:Zr.Week,children:[0,1,2,3,4,5,6].map(le=>C.jsx("div",{className:Ge.clsx(Zr.WeekDay,Zr.Cell),children:D.weekDays(le)},le))}),ct]})]})]}),document.body)]})};function Sh(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let o=11;t&&t.getFullYear()===r&&(o=t.getMonth());const i=[];for(let a=n;a<=o;a++)i.push(a);return i}function Tv(r,e,t,n=5){const o=[];let i=r-n/2+n%2/2;e&&i<e.getFullYear()&&(i=e.getFullYear());let a=i+n-1;t&&a>t.getFullYear()&&(a=t.getFullYear());for(let c=i;c<=a;c++)o.push(c);return o}function A0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&tr["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&tr[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function E0(r,e){return[e,r]}const cp=r=>C.jsx(Go,{className:Ge.clsx(Zr.ChoiceButton,"Headline2"),type:"Secondary",...r}),Uk=["Primary","Secondary","Raw"],Rv=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:d,isLoading:h,placeholder:p,LeftAddon:m,RightAddon:g,resources:v,noClearButton:w,onClick:T,..._}=r,A=S.useMemo(()=>({...wr.ADatePicker,...v}),[v]),R=S.useMemo(()=>p??A["Select Date"],[p,A]),[D,I]=S.useMemo(()=>{let Pe,Xe;return a&&(Pe=tr.makeSDate(a)),c&&(Xe=tr.makeEDate(c)),Pe&&Xe&&tr["<"](Xe,Pe)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[tr.makeSDate(Xe),tr.makeEDate(Pe)]):[Pe,Xe]},[a,c]),[B,F]=wn(n,null),[j,z]=S.useState(B?tr.toString(B):""),[G,pe]=S.useState(()=>{const Pe=B??new Date;return D&&Pe<D?D.getMonth():I&&Pe>I?I.getMonth():(Pe??new Date).getMonth()}),[P,U]=S.useState(()=>{const Pe=B??new Date;return D&&Pe<D?D.getFullYear():I&&Pe>I?I.getFullYear():(Pe??new Date).getFullYear()}),V=S.useCallback(Pe=>{U(Pe);const Xe=Sh(Pe,D,I);Xe.includes(G)||(G<Xe[0]?pe(Xe[0]):G>Xe[Xe.length-1]&&pe(Xe[Xe.length-1]))},[D,I,G]),Q=S.useCallback(Pe=>{if(Pe.length>10||(z(Pe),Pe.length<10)||!F)return;let Xe=tr.toDate(Pe);Xe&&(D&&Xe<D&&(Xe=D),I&&Xe>I&&(Xe=I),F(Xe),U(Xe.getFullYear()),pe(Xe.getMonth()))},[F,D,I]),se=S.useCallback(Pe=>{const Xe=P+Pe;Xe<0||U(Xe)},[P]),ue=S.useCallback(Pe=>{const Xe=G+Pe;Xe<0?(pe(11),se(-1)):Xe>11?(pe(0),se(1)):pe(Xe)},[G,se]),oe=S.useCallback(Pe=>{F&&(Pe===void 0?(F(void 0),z("")):(F(Pe),z(tr.toString(Pe))))},[F]),ae=S.useMemo(()=>{const Pe=new Date(P,G,0);return D&&Pe<D},[P,G,D]),ge=S.useMemo(()=>{const Pe=new Date(P,G+1,1);return I&&Pe>I},[P,G,I]),re=S.useCallback(()=>{ae||ue(-1)},[ue,ae]),ie=S.useCallback(()=>{ge||ue(1)},[ue,ge]),[he,Se]=S.useState(null),Le=S.useCallback(()=>{F&&Se(null)},[F]),ne=S.useCallback(Pe=>{F&&Se(Pe)},[F]),ve=S.useMemo(()=>{const Pe=new Date(P,G,1),Xe=new Date(P,G+1,0),vt=[];for(let xt=0;xt<Pe.getDay();xt++){const Qt=new Date(P,G,0).getDate()-Pe.getDay()+xt+1,Ut=new Date(P,G-1,Qt),fr=D&&D>Ut||I&&I<Ut,hr=B&&tr.eq(Ut,B),cr=he&&tr.eq(Ut,he);vt.push({day:Qt,isSelected:hr,date:Ut,isDisabled:fr,isHovered:cr,isCurrentMonth:!1})}for(let xt=1;xt<=Xe.getDate();xt++){const Lt=new Date(P,G,xt),Qt=D&&D>Lt||I&&I<Lt,Ut=B&&tr.eq(Lt,B),fr=he&&tr.eq(Lt,he);vt.push({day:xt,isSelected:Ut,date:Lt,isDisabled:Qt,isHovered:fr,isCurrentMonth:!0})}for(let xt=0;xt<7-Xe.getDay()-1;xt++){const Lt=new Date(P,G+1,xt+1),Qt=D&&D>Lt||I&&I<Lt,Ut=B&&tr.eq(Lt,B),fr=he&&tr.eq(Lt,he);vt.push({day:xt+1,isSelected:Ut,date:Lt,isDisabled:Qt,isHovered:fr,isCurrentMonth:!1})}const Nt=[];for(let xt=0;xt<vt.length/7;xt++)Nt.push(C.jsx("div",{className:bn.Week,children:vt.slice(xt*7,xt*7+7).map((Lt,Qt)=>C.jsx(Go,{isDisabled:Lt.isDisabled,type:"Raw",className:Ge.clsx(bn.Cell,Lt.isDisabled?bn.IsDisabled:Lt.isCurrentMonth?Lt.isSelected?bn.IsSelected:Lt.isHovered&&bn.IsHovered:bn.IsNotCurrentMonth),onClick:()=>Lt.isCurrentMonth&&oe(Lt.date),onMouseEnter:()=>Lt.isCurrentMonth&&ne(Lt.date),onMouseLeave:()=>Lt.isCurrentMonth&&Le(),children:Lt.day},Qt))},xt));return Nt},[G,oe,B,P,D,I,he,Le,ne]),ke=S.useRef(null),De=S.useCallback(()=>{ke&&Cv(ke,$e,i)},[ke,i]),[Oe,we]=S.useState(!1),[_e,Ae]=S.useState(!1),$e=S.useRef(null),Fe=S.useCallback(()=>{d||h||(we(!0),setTimeout(()=>Ae(!0),0),setTimeout(()=>De(),0),z(B?tr.toString(B):""),pe(()=>{const Pe=B??new Date;return D&&Pe<D?D.getMonth():I&&Pe>I?I.getMonth():Pe.getMonth()}),U(()=>{const Pe=B??new Date;return D&&Pe<D?D.getFullYear():I&&Pe>I?I.getFullYear():Pe.getFullYear()}))},[d,h,B,De,D,I]),Qe=S.useCallback(()=>{d||h||(we(!0),Ae(!1))},[d,h]),Ue=S.useMemo(()=>_e?Qe:Fe,[_e,Fe,Qe]),et=S.useCallback(()=>we(!1),[]),ct=S.useCallback(Pe=>{const Xe=document.getElementById("root"),vt=Pe.target,Nt=$e.current,xt=ke.current;!Xe||!Nt||!vt||!xt||!Nt.contains(vt)&&Xe.contains(vt)&&!xt.contains(vt)&&Qe()},[Qe]);S.useEffect(()=>{if(_e)return setTimeout(()=>document.addEventListener("mousedown",ct),0),()=>document.removeEventListener("mousedown",ct)},[_e,ct]);const Ct=S.useCallback(()=>{De()},[De]);S.useEffect(()=>{if(!_e||!(ke!=null&&ke.current))return;const Pe=ke.current;let Xe=Pe.parentElement;for(;Xe;)Xe.addEventListener("scroll",Ct),Xe=Xe.parentElement;return()=>{let vt=Pe.parentElement;for(;vt;)vt.removeEventListener("scroll",Ct),vt=vt.parentElement}},[ke,_e,Ct]),S.useEffect(()=>{if(_e)return window.addEventListener("resize",Ct),()=>window.removeEventListener("resize",Ct)},[_e,Ct]);const It=S.useCallback(Pe=>{Pe[0].intersectionRatio===0&&Qe()},[Qe]);S.useEffect(()=>{if(!_e)return;const Pe=new IntersectionObserver(It,{threshold:0});return $e.current&&Pe.observe($e.current),()=>Pe.disconnect()},[$e,_e,It]),S.useEffect(()=>{o&&(o.current={open:Fe,close:Qe,toggle:Ue})},[o,Fe,Qe,Ue]);const Je=S.useCallback(Pe=>{T==null||T(Pe),Ue()},[T,Ue]),Ke=S.useCallback(Pe=>{oe(void 0),Qe(),Pe.stopPropagation()},[oe,Qe]),ft=S.useCallback(()=>B?C.jsx(So,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Ke}):null,[B,Ke]),gt=S.useMemo(()=>B?tr.toString(B):C.jsx("span",{className:bn.Placeholder,children:R}),[B,R]);return C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{..._,abaseRef:ke,className:Ge.clsx(bn.Anchor,"IsClickable",bn[e],t),isDisabled:d,isLoading:h,onClick:Je,children:[m,e==="Primary"&&C.jsxs(C.Fragment,{children:[C.jsx(en,{className:Ge.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),C.jsx(Nn,{w:4})]}),gt,C.jsx(Ku,{}),!w&&C.jsx(ft,{}),e==="Secondary"&&C.jsx(en,{className:Ge.clsx(bn.Icon,bn[e]),icon:"CalendarDay"}),g&&g]}),(_e||Oe)&&Ls.createPortal(C.jsxs("div",{ref:$e,className:bn.ADatePicker,style:{opacity:+_e,visibility:_e?"visible":"hidden"},onTransitionEnd:et,children:[C.jsx("div",{className:bn.StringInputContainer,children:C.jsx(Vc,{className:bn.String,inputProps:{className:bn.StringInput},maxLength:B?30:11,placeholder:"YYYY-MM-DD",useValue:[j,Q],wrapProps:{className:bn.StringInputWrap}})}),C.jsxs("div",{className:bn.CalendarContainer,children:[C.jsxs(Rn,{className:bn.Header,children:[C.jsx(Go,{className:bn.Prev,isDisabled:ae,type:"Raw",onClick:re}),C.jsxs("div",{className:bn.MonthYear,children:[C.jsx(Gc,{isAutoWidth:!0,className:bn.Select,OptionRenderer:Pe=>A.months(Pe.option),options:Sh(P,D,I),SelectedRenderer:Pe=>A.months(Pe.selectedOption),type:"Secondary",useSelect:[G,pe]}),C.jsx(Nn,{w:8}),C.jsx(Gc,{isAutoWidth:!0,className:bn.Select,options:Tv(P,D,I),type:"Secondary",useSelect:[P,V]})]}),C.jsx(Go,{className:bn.Next,isDisabled:ge,type:"Raw",onClick:ie})]}),C.jsx(Nn,{h:10}),C.jsxs("div",{className:bn.Calendar,children:[C.jsx("div",{className:bn.Week,children:[0,1,2,3,4,5,6].map(Pe=>C.jsx("div",{className:Ge.clsx(bn.WeekDay,bn.Cell),children:A.weekDays(Pe)},Pe))}),ve]})]})]}),document.body)]})},Wk="_Paper_e69j5_1",Vk="_Card_e69j5_15",Gk="_Body_e69j5_26",Yk="_Title_e69j5_35",Zk="_Content_e69j5_42",Kk="_Action_e69j5_45",Xk="_Button_e69j5_58",Za={Paper:Wk,Card:Vk,Body:Gk,Title:Yk,Content:Zk,Action:Kk,Button:Xk},Jk=["okCancel","cancelOk","ok","cancel","none"],Qk=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:o,style:i,titleStyle:a,bodyStyle:c,contentStyle:d,okButtonStyle:h,cancelButtonStyle:p,actionStyle:m,onOk:g,onCancel:v,onClose:w,onEnterPress:T,onEscPress:_,onSpacePress:A,onPaperClick:R,noDim:D=!1,isLoading:I,isOkDisabled:B,isOkLoading:F,isCancelDisabled:j,isCancelLoading:z,buttonNoInteractive:G,okButtonClassName:pe,cancelButtonClassName:P,progress:U,ProgressRenderer:V,progressProps:Q,resources:se}=r,ue=S.useMemo(()=>({...wr.ADialog,...se}),[se]),[oe,ae]=S.useState(0);S.useEffect(()=>ae(1),[]);const ge=S.useCallback(()=>{ae(0)},[]),re=S.useCallback(()=>{if(!oe){const[,Fe]=e.state.useIsOpen;Fe==null||Fe(!1),w==null||w()}},[oe,w,e]),ie=S.useCallback(async()=>{if(!oe||t==="cancel"||t==="none"||I||B||F)return;const{event:Fe,e:Qe}=Pu();await(g==null?void 0:g(Qe)),!Fe.preventDefault&&ge()},[oe,t,ge,g,B,I,F]),he=S.useCallback(async()=>{if(!oe||t==="ok"||t==="none"||I||j||z)return;const{event:Fe,e:Qe}=Pu();await(v==null?void 0:v(Qe)),!Fe.preventDefault&&ge()},[oe,t,ge,v,j,I,z]);S.useEffect(()=>{e&&e.state.setAction({close:ge,ok:ie,cancel:he})},[e,ge,ie,he]);const Se=S.useCallback(async()=>{if(I)return;const{event:Fe,e:Qe}=Pu();await(T==null?void 0:T(Qe)),!Fe.preventDefault&&ie()},[T,I,ie]),Le=S.useCallback(async()=>{if(I)return;const{event:Fe,e:Qe}=Pu();await(A==null?void 0:A(Qe)),!Fe.preventDefault&&ie()},[A,I,ie]),ne=S.useCallback(async()=>{if(I)return;const{event:Fe,e:Qe}=Pu();await(_==null?void 0:_(Qe)),!Fe.preventDefault&&he()},[_,I,he]),ve=S.useRef(null),ke=S.useCallback(Fe=>{const Qe=document.body.getElementsByClassName(Za.Paper);Qe.length===0||Qe[Qe.length-1]!==ve.current||(Fe.key==="Enter"&&oe?Se():Fe.key===" "&&oe?Le():Fe.key==="Escape"&&oe&&ne())},[oe,Se,Le,ne]);S.useEffect(()=>{if(oe)return window.addEventListener("keydown",ke),()=>window.removeEventListener("keydown",ke)},[oe,ke]);const De=S.useRef(!1),Oe=S.useRef(!1),we=S.useCallback(()=>{De.current=!0},[]),_e=S.useCallback(()=>{De.current=!1,Oe.current=!1},[]),Ae=S.useCallback(()=>{Oe.current=!0},[]),$e=S.useCallback(async()=>{if(I)return;const Fe=!Oe.current||De.current;if(De.current=!1,Oe.current=!1,Fe)return;const{event:Qe,e:Ue}=Pu();await(R==null?void 0:R(Ue)),!Qe.preventDefault&&he()},[R,I,he]);return Ls.createPortal(C.jsx("div",{ref:ve,className:Za.Paper,style:{backgroundColor:D?"transparent":void 0,pointerEvents:oe?void 0:"none",opacity:oe},onMouseDown:Ae,onMouseUp:$e,onTransitionEnd:re,children:C.jsxs(Kr,{className:Za.Card,isLoading:I,progress:U,progressProps:Q,ProgressRenderer:V,style:i,onMouseDown:we,onMouseUp:_e,children:[C.jsxs("div",{className:Za.Body,style:c,children:[n&&C.jsx(e6,{title:n,titleStyle:a}),o&&C.jsx("div",{className:Za.Content,style:d,children:o})]}),t!=="none"&&C.jsx(t6,{type:t,ok:ie,cancel:he,resources:ue,isOkDisabled:B,isOkLoading:F,isCancelDisabled:j,isCancelLoading:z,okButtonStyle:h,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:G,okButtonClassName:pe,cancelButtonClassName:P})]})}),document.body)},e6=r=>{const{title:e,titleStyle:t}=r;return C.jsx("div",{className:Ge.clsx(Za.Title,"NoSelect","Title3"),style:t,children:e})},t6=r=>{const{type:e,ok:t,cancel:n,resources:o,isOkDisabled:i,isOkLoading:a,isCancelDisabled:c,isCancelLoading:d,okButtonStyle:h,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:g,okButtonClassName:v,cancelButtonClassName:w}=r,T=S.useMemo(()=>({onClick:t,isDisabled:i,isLoading:a,children:o.Ok,style:h,noInteractive:g,className:Ge.clsx(Za.Button,v)}),[t,i,a,o.Ok,h,g,v]),_=S.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:c,isLoading:d,children:o.Cancel,style:p,noInteractive:g,className:Ge.clsx(Za.Button,w)}),[n,c,d,o.Cancel,p,g,w]);if(e==="okCancel"||e==="ok")return C.jsxs("div",{className:Za.Action,style:{...m},children:[C.jsx(Go,{...T}),e==="okCancel"&&C.jsxs(C.Fragment,{children:[C.jsx(Nn,{w:8}),C.jsx(Go,{..._})]})]},e);if(e==="cancelOk"||e==="cancel")return C.jsxs("div",{className:Za.Action,children:[C.jsx(Go,{..._}),e==="cancelOk"&&C.jsxs(C.Fragment,{children:[C.jsx(Nn,{w:8}),C.jsx(Go,{...T})]})]},e)},r6=r=>{const e=S.useMemo(()=>Math.random().toFixed(32),[]),t=S.useMemo(()=>{const v={};return r.forEach(w=>{v[w]=w+e}),v},[r,e]),n=S.useMemo(()=>[],[]),o=S.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[i,a]=S.useState([]),c=S.useRef((()=>{const v={};return o.forEach(w=>{v[w]={open:()=>a(T=>[...T,w]),close:()=>{},ok:()=>{},cancel:()=>{}}}),v})()),d=S.useMemo(()=>{const v={};return o.forEach(w=>{v[w]=T=>{a(_=>!T&&_.includes(w)?_.filter(A=>A!==w):T&&!_.includes(w)?[..._,w]:_)}}),v},[o]),h=S.useMemo(()=>{const v={};return o.forEach(w=>{const _=[i.includes(w),d[w]],A=R=>{c.current[w]={...c.current[w],...R}};v[w]={useIsOpen:_,setAction:A}}),v},[i,d,o]),p=S.useMemo(()=>{const v={};return o.forEach(w=>{const T=()=>c.current[w].open(),_=()=>c.current[w].close(),A=()=>c.current[w].ok(),R=()=>c.current[w].cancel();v[w]={open:T,close:_,ok:A,cancel:R}}),v},[o]),m=S.useMemo(()=>({}),[]),g=S.useMemo(()=>(o.forEach(v=>{m[v]={state:h[v],action:p[v]}}),m),[m,o,h,p]);return S.useEffect(()=>(Object.keys(g).forEach(w=>{const T=g[w],_=t[w],A=ua.find(R=>{R.id});A?A.core=T:ua.push({id:_,core:T})}),()=>{const w=Object.keys(g),T=ua.filter(_=>w.includes(_.id));ua.length=0,ua.push(...T)}),[g,t]),g},n6=()=>{const r=S.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=S.useState(!1),n=S.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),o=S.useMemo(()=>({useIsOpen:[e,t],setAction:d=>{n.current={...n.current,...d}}}),[e]),i=S.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),a=S.useMemo(()=>({}),[]),c=S.useMemo(()=>(a.state=o,a.action=i,a),[a,o,i]);return S.useEffect(()=>{const d=ua.find(h=>h.id===r);return d?d.core=c:ua.push({id:r,core:c}),()=>{const h=ua.filter(p=>p.id!==r);ua.length=0,ua.push(...h)}},[r,c]),c},o6=r=>{const{dlgCore:e,children:t}=r,[n,o]=S.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return S.useEffect(()=>()=>o==null?void 0:o(!1),[o]),C.jsx(S.Suspense,{children:n&&t})},i6=r=>e=>{const{dlgCore:t}=e;return C.jsx(o6,{dlgCore:t,children:S.cloneElement(C.jsx(r,{...e}),{dlgCore:t})})},ua=[],s6={closeAllDlgs:()=>{ua.forEach(r=>{r.core.action.close()})}},a6="_AFileBox_1hlo1_1",l6="_SelectedFile_1hlo1_16",c6="_Dropping_1hlo1_26",kv={AFileBox:a6,SelectedFile:l6,Dropping:c6},u6=r=>{const{useFile:e,FileRenderer:t=d6,SelectRenderer:n=f6,DropRenderer:o=h6,resources:i,accept:a="",onInvalidFileFormat:c,fileSelectButtonClassName:d,isDisabled:h,isLoading:p,className:m,...g}=r,v=S.useMemo(()=>({...wr.AFileBox,...i}),[i]),w=S.useRef(null),T=S.useRef(null),[_,A]=wn(e,null),[R,D]=S.useState(!1),I=S.useMemo(()=>a.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[a]),B=S.useCallback(Q=>{if(I.length===0)return!1;const se=Q.name.split(".").pop();return se?!I.includes(`.${se}`):!0},[I]),F=S.useCallback(Q=>{if(A)if(B(Q)){c==null||c();return}else A(Q);else return},[A,B,c]),j=S.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&F(Q.target.files[0])},[F]),z=S.useCallback(Q=>{Q.preventDefault(),D(!1),!(h||p)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&F(Q.dataTransfer.files[0])},[F,h,p]),G=S.useCallback(Q=>{Q.preventDefault(),!(h||p)&&D(!0)},[h,p]),pe=S.useCallback(Q=>{Q.target===w.current&&Q.relatedTarget.contains(w.current.parentElement)&&(Q.preventDefault(),D(!1))},[]),P=S.useCallback(Q=>Q.preventDefault(),[]),U=S.useCallback(()=>{var Q;(Q=T.current)==null||Q.click()},[]),V=S.useMemo(()=>R?C.jsx(o,{resources:v}):_?C.jsx(t,{file:_,useFile:e}):C.jsx(n,{fileSelectButtonClassName:d,resources:v,onClick:U}),[t,n,o,v,R,_,e,d,U]);return C.jsxs(Kr,{...g,abaseRef:w,className:Ge.clsx(kv.AFileBox,m),isDisabled:h,isLoading:p,onDragEnter:G,onDragLeave:pe,onDragOver:P,onDrop:z,children:[C.jsx("input",{ref:T,accept:a,style:{display:"none"},type:"file",value:"",onChange:j}),V]})},d6=r=>{const{file:e,useFile:t}=r,[,n]=wn(t,null);return C.jsxs(Rn,{className:kv.SelectedFile,style:{backgroundColor:""},children:[C.jsx(en,{icon:"File"}),C.jsx(el,{children:e.name}),C.jsx(So,{icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},type:"Raw",onClick:()=>n==null?void 0:n(null)})]})},f6=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return C.jsxs(Rn,{className:Ge.clsx("NoSelect"),style:{gap:4},children:[C.jsx(Go,{className:n,onClick:e,children:t["Select File"]}),t["or Drag & Drop"]]})},h6=r=>{const{resources:e}=r;return C.jsxs(uC,{className:Ge.clsx(kv.Dropping,"NoSelect","Headline2"),children:[C.jsx(en,{icon:"FileDownload"}),e["drop file to select"]]})};async function p6(r){const e=new Promise((t,n)=>{const o=new FileReader;o.onloadend=()=>{o.result?typeof o.result=="string"?t(o.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},o.onerror=n,o.readAsDataURL(r)});try{return await e}catch{return}}function g6(r,e){var c,d;const t=r.split(","),n=(d=(c=t[0])==null?void 0:c.match(/:(.*?);/))==null?void 0:d[1],o=atob(t[1]);let i=o.length;const a=new Uint8Array(i);for(;i--;)a[i]=o.charCodeAt(i);return new File([a],e,{type:n})}const pC=r=>r.idx!==void 0?r.idx.toString():`${r.name}-${r.size}-${r.lastModified||""}`,Bu={toBase64:p6,toFile:g6,getFileKey:pC},m6="_AFileUploader_i2nun_1",v6="_LabelContainer_i2nun_16",y6="_LabelButton_i2nun_25",b6="_Disabled_i2nun_31",x6="_Delete_i2nun_34",w6="_FileSize_i2nun_38",C6="_TotalFileSize_i2nun_45",S6="_FileBox_i2nun_49",_6="_FileBoxFullSize_i2nun_68",A6="_SelectRenderer_i2nun_75",E6="_ChipsContainer_i2nun_87",T6="_FileChip_i2nun_100",R6="_FileChipContent_i2nun_113",k6="_FileNameContainer_i2nun_124",I6="_ButtonRenderer_i2nun_130",M6="_ErrorBorder_i2nun_141",L6="_ErrorColor_i2nun_145",D6="_ErrorCursor_i2nun_149",O6="_DropIdle_i2nun_159",En={AFileUploader:m6,LabelContainer:v6,LabelButton:y6,Disabled:b6,Delete:x6,FileSize:w6,TotalFileSize:C6,FileBox:S6,FileBoxFullSize:_6,SelectRenderer:A6,ChipsContainer:E6,FileChip:T6,FileChipContent:R6,FileNameContainer:k6,ButtonRenderer:I6,ErrorBorder:M6,ErrorColor:L6,ErrorCursor:D6,DropIdle:O6},N6=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:o,onDownload:i})=>{const[a,c]=S.useState(!1);return C.jsx(So,{className:Ge.clsx(e,t,n),icon:a?"FileDownload":"CircleAlertOutline",iconSize:"sm",tooltip:o["Fail Download"],type:"Raw",onClick:()=>i(r),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1)})},P6=r=>{const{useFiles:e,accept:t,onInvalidFileFormat:n,onDownload:o,onDownloadCsv:i,onDelete:a,type:c,limit:d=1024*1024*1024,maxFileCount:h,useError:p,isLoading:m,resources:g,className:v,onDownloadAll:w,csvFilename:T,..._}=r,[{wrapId:A,wrapProps:R,labelProps:D,...I},B]=Zu(_),F=S.useMemo(()=>({...wr.AFileUploader,...g}),[g]),[j,z]=wn(e,void 0),[G,pe]=wn(p,!1),[P,U]=S.useState({}),[V,Q]=S.useState(!1),se=S.useRef(0),ue=S.useRef({}),oe=S.useRef(null),ae=S.useRef(null),ge=S.useMemo(()=>(j==null?void 0:j.reduce((Je,Ke)=>Je+Ke.size,0))||0,[j]);S.useEffect(()=>{pe&&pe(ge>d)},[ge,d,pe]);const re=S.useCallback(Je=>{var gt;if(!t||t==="*"||t==="")return!0;const Ke=t.split(",").map(Pe=>Pe.trim()),ft=`.${(gt=Je.name.split(".").pop())==null?void 0:gt.toLowerCase()}`;return Ke.includes(ft)?!0:Ke.some(Pe=>{var Xe;if(Pe.startsWith("."))return!1;if(Pe.endsWith("/*")){const vt=Pe.split("/")[0];return(Xe=Je.type)==null?void 0:Xe.startsWith(`${vt}/`)}return Je.type===Pe})},[t]),ie=S.useCallback((Je,Ke)=>{const ft={...ue.current};ft[Je]=Ke,ue.current=ft,U(ft)},[U]),he=S.useCallback(Je=>{const Ke=Bu.getFileKey(Je);return P[Ke]||"Normal"},[P]),Se=S.useCallback(Je=>m||he(Je)==="Loading",[m,he]),Le=S.useCallback(Je=>he(Je)==="Error"||c==="Upload"&&Je.size>d,[he,d,c]),ne=S.useMemo(()=>j!=null&&j.length?c==="Download"?j.every(Le):!1:!0,[j,c,Le]),ve=S.useCallback(()=>{oe.current&&(oe.current.value="")},[]),ke=S.useMemo(()=>!h||!(j!=null&&j.length)?!1:j.length>=h,[j,h]),De=S.useCallback(Je=>{if(!z)return;const Ke=[];let ft=!1,gt=[],Pe=h?h-((j==null?void 0:j.length)||0):1/0;if(!(Pe<=0)){if(Array.from(Je).forEach((Xe,vt)=>{if(vt>=Pe)return;if(!re(Xe)){ft=!0,gt.push(Xe.name);return}const Nt=Xe;Nt.uniqueId=`file-${Date.now()}-${se.current++}`,Ke.push(Nt)}),ft)if(n)n();else{const Xe=t?t.replace(/,/g,", "):"",vt=Xe?`${F["Supported file format(s)"]}: ${Xe}`:"",Nt=gt.length>3?`${gt.slice(0,3).join(", ")} ${F.and} ${gt.length-3} ${F["more file(s)"]}`:gt.join(", ");alert(`${F["Unsupported file format detected."]}
|
162
162
|
|
163
163
|
${F["Invalid file(s)"]}: ${Nt}${vt?`
|
164
164
|
|
165
|
-
`+vt:""}`)}Ke.length>0&&z([...j||[],...Ke])}},[z,re,n,t,F,j,h]),De=S.useCallback(()=>{var Je;return(Je=oe.current)==null?void 0:Je.click()},[]),we=S.useCallback(Je=>{const Ke=Je.target.files;Ke!=null&&Ke.length&&(Pe(Ke),ve())},[Pe,ve]),_e=S.useCallback(Je=>{if(a==null||a(Je),!z||!j)return;const Ke=Bu.getFileKey(Je),ft=j.filter(gt=>Bu.getFileKey(gt)!==Ke);z(ft),ve()},[a,z,j,ve]),Ae=S.useCallback(()=>{z&&(z([]),ve())},[z,ve]),$e=S.useCallback(Je=>{if(!o)return Promise.resolve();const Ke=Bu.getFileKey(Je);return ue.current[Ke]==="Loading"?Promise.resolve():(ie(Ke,"Loading"),new Promise(ft=>{o(Je,gt=>{ie(Ke,gt),ft()})}))},[o,ie]),Fe=S.useCallback(async()=>{if(j!=null&&j.length){if(U){const Je={...ue.current};j.forEach(Ke=>{Je[Bu.getFileKey(Ke)]="Loading"}),ue.current=Je,U(Je)}if(w){w(j,Je=>{if(U){const Ke={...ue.current,...Je};ue.current=Ke,U(Ke)}});return}for(const Je of j){if(!o)continue;const Ke=Bu.getFileKey(Je);await new Promise(ft=>{o(Je,gt=>{if(U){const Ne={...ue.current};Ne[Ke]=gt,ue.current=Ne,U(Ne)}ft()})})}}},[j,o,w,U]),Qe=S.useCallback(()=>{!(j!=null&&j.length)||!i||i(j)},[j,i]),Ue=S.useMemo(()=>{const Je=Ke=>(Ke.preventDefault(),Ke.stopPropagation(),Ke);return{onDragEnter:Ke=>{Je(Ke),!G&&!m&&Q(!0)},onDragOver:Ke=>{Je(Ke),!G&&!m&&Ke.dataTransfer&&(Ke.dataTransfer.dropEffect="copy")},onDragLeave:Ke=>{var gt;Je(Ke);const ft=(gt=ae.current)==null?void 0:gt.contains(Ke.relatedTarget);(!Ke.relatedTarget||!ft)&&Q(!1)},onDrop:Ke=>{var ft;Je(Ke),Q(!1),!G&&!m&&((ft=Ke.dataTransfer.files)!=null&&ft.length)&&Pe(Ke.dataTransfer.files)}}},[G,m,Pe]),et=S.useMemo(()=>{const Je=Ge.clsx(En.ButtonRenderer,"NoSelect");return{upload:Ke=>C.jsx(So,{className:Je,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:F.Delete,type:"Raw",onClick:()=>_e(Ke)}),loading:()=>C.jsx(So,{className:Je,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Ke=>C.jsx(N6,{baseClass:Je,errorClass:En.ErrorColor,errorCursorClass:En.ErrorCursor,file:Ke,resources:F,onDownload:$e}),download:Ke=>C.jsx(So,{className:Je,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:F.Download,type:"Raw",onClick:()=>$e(Ke)}),view:()=>null}},[F,_e,$e]),ct=S.useCallback((Je,Ke)=>{const ft=Se(Je),gt=Le(Je),Ne=()=>c==="Upload"?et.upload(Je):c==="View"?et.view():ft?et.loading():gt?et.error(Je):et.download(Je);return C.jsx(_v,{ButtonRenderer:Ne,className:Ge.clsx(En.FileChip,gt&&En.ErrorBorder),label:C.jsx("div",{className:En.FileChipContent,children:C.jsxs(Rn,{className:En.FileNameContainer,children:[C.jsx(el,{children:Je.name,className:Ge.clsx(gt&&En.ErrorColor)}),C.jsx("span",{children:$u(Je.size),className:En.FileSize})]})})},Ke)},[Se,Le,c,et]),Ct=S.useCallback(()=>C.jsx("div",{className:Ge.clsx(En.FileBox,G&&En.ErrorBorder,G&&En.ErrorColor,G&&En.ErrorCursor,ke&&En.Disabled,V&&!(j!=null&&j.length)&&En.FileBoxFullSize),...Ue,ref:ae,children:V?C.jsxs(Rn,{className:Ge.clsx("NoSelect"),style:{gap:4,display:j!=null&&j.length?"flex":"none"},children:[C.jsx(en,{icon:"FileDownload"}),C.jsx("span",{children:F["Drop file to select"]})]}):C.jsxs(Go,{className:Ge.clsx(En.SelectRenderer,"NoSelect"),isDisabled:G||m||ke,type:"Raw",onClick:De,children:[F["Insert File"],h&&` ${(j==null?void 0:j.length)||0} / ${h}`]})}),[G,ke,V,j==null?void 0:j.length,Ue,F,m,De,h]),It=S.useMemo(()=>{const Je=c==="Upload",Ke=c==="View",ft=Je?F["Delete All"]:F["Download All"],gt=Je?Ae:Fe,Ne=(j==null?void 0:j.some(Xe=>Se(Xe)))||!1;return C.jsxs(Rn,{className:En.LabelContainer,children:[I.label,c==="Upload"&&C.jsxs(el,{className:Ge.clsx(En.TotalFileSize,"NoSelect"),children:["(",C.jsx("span",{className:Ge.clsx(G&&En.ErrorColor),children:$u(ge)})," / ",$u(d),")"]}),!Ke&&C.jsx("span",{children:ft,className:Ge.clsx(En.LabelButton,"Label1",(ne||Ne)&&En.Disabled,Je&&En.Delete),onClick:!ne&&!Ne?gt:void 0}),i&&C.jsx("span",{children:F["Download List"]||"Download List",className:Ge.clsx(En.LabelButton,"Label1",!(j!=null&&j.length)&&En.Disabled),style:{marginLeft:"auto"},onClick:j!=null&&j.length?Qe:void 0})]})},[c,F,Ae,Fe,j,I.label,G,ge,d,ne,i,Qe,Se]);return c==="Download"&&!(j!=null&&j.length)?null:C.jsxs(Wc,{wrapId:A,wrapProps:R,labelProps:D,...I,label:It,children:[C.jsx("input",{ref:oe,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:we}),C.jsxs(Kr,{...B,className:Ge.clsx(En.AFileUploader,v),children:[C.jsxs(Rn,{className:En.ChipsContainer,children:[c==="Upload"&&Ct(),j==null?void 0:j.map(ct)]}),c==="Upload"&&C.jsx(Kr,{className:Ge.clsx(En.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ue,abaseRef:ae,onClick:Je=>Je.preventDefault(),children:!(j!=null&&j.length)&&C.jsxs(Rn,{style:{gap:4},children:[C.jsx(en,{icon:"FileDownload",size:"2xl"}),C.jsx("span",{children:F["Drop file to select"]})]})})]})]})},B6="_AFloatMenu_xco8u_1",F6="_Content_xco8u_10",T0={AFloatMenu:B6,Content:F6},gC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=bf.ES,width:h=137}=r,p=S.useMemo(()=>({content:j6,...t}),[t]),m=S.useMemo(()=>{const P={};return ar.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,v]=S.useState(null),w=S.useCallback(P=>{_w(P,D,d,o),v(P)},[d,o]),[T,_]=S.useState(!1),[A,R]=S.useState(!1),D=S.useRef(null),I=S.useCallback(P=>{R(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),B=S.useCallback(()=>{_(!1),R(!0),i==null||i()},[i]),F=S.useCallback(()=>R(!1),[]),j=S.useCallback(async P=>{const U=document.getElementById("root"),V=P.target,Q=D.current;!U||!Q||!V||!Q.contains(V)&&U.contains(V)&&(await(c==null?void 0:c(P)),B())},[B,c]);S.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",j),0),()=>document.removeEventListener("mousedown",j)},[T,j]);const z=S.useCallback(()=>{g&&w(g)},[w,g]);S.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",z),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",z),U=U.parentElement}},[g,T,z]),S.useEffect(()=>{if(T)return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[T,z]);const G=S.useCallback(P=>{P[0].intersectionRatio===0&&B()},[B]);S.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),S.useEffect(()=>{n&&(n.current={open:I,close:B})},[n,I,B]);const pe=S.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),B()},[T,a,B,m]);return!T&&!A?null:Ls.createPortal(C.jsx("div",{ref:D,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:F,children:ar.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:ue=Io.E,...oe}=V;return se?null:(Q=Or.getContent(V.content,{defKey:P,def:V}),S.createElement(Kr,{...oe,key:U,className:Ge.clsx(T0.Content,"Label2","IsClickable",oe.className),tooltipDirection:ue,onClick:ae=>{var ge;pe==null||pe(P),(ge=oe.onClick)==null||ge.call(oe,ae)}},Q))})}),document.body)},j6=r=>r.defKey;function z6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const mC={parseInt:z6},H6=`${Number.MAX_SAFE_INTEGER}`.length-1,$6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,p=S.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):H6,[n,o]),[m,g]=wn(i,""),v=S.useCallback(A=>{if(g)if(c&&A.startsWith("*"))g("*");else if(A==="")g("");else if(A==="-")g("-");else{A=A.replace(/[^0-9-]/g,"");try{const R=mC.parseInt(A);R!==void 0&&(n!==void 0&&R<n?g(`${n}`):o!==void 0&&R>o?g(`${o}`):g(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[g,c,n,o]),w=S.useRef(null),T=S.useCallback(A=>{var R;(R=w.current)==null||R.blur(),a==null||a(A)},[a]),_=S.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return C.jsx(Vc,{...h,autoComplete:"off",className:Ge.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:_,RightAddon:r.unit&&C.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},q6="_AListView_k7t2d_1",U6="_Row_k7t2d_10",W6="_Label_k7t2d_20",V6="_Content_k7t2d_30",up={AListView:q6,Row:U6,Label:W6,Content:V6},G6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,style:c,...d}=r,h=a?"":"var(--AListView_border-thin)",p=a?"":"var(--AListView_border-thick)",m=S.useMemo(()=>({content:Z6,label:Y6,...t}),[t]),g=S.useMemo(()=>{const v={};return ar.keys(e).forEach(w=>{const T=e[w],_={...m,...T};v[w]=_}),v},[m,e]);return C.jsx(Kr,{...d,className:Ge.clsx(up.AListView,d.className),style:{...c,borderTop:h},children:ar.map(g,([v])=>{const w={...m,...g[v]},T=Or.getContent(w.label,{defKey:v,item:n,def:w}),_=Or.getContent(w.content,{defKey:v,item:n||{[v]:""},def:w}),A=Or.getContent(w.bold||"label",{defKey:v,item:n,def:w});return C.jsxs("div",{className:up.Row,style:{height:o,borderBottom:h},children:[C.jsx("div",{className:Ge.clsx(up.Label,"NoSelect",A!=="content"&&"Bold"),style:{width:i,minWidth:i,maxWidth:i,borderLeft:p,paddingLeft:a?0:10},children:C.jsx(el,{children:T})}),C.jsx("div",{className:Ge.clsx(up.Content,A!=="label"&&"Bold"),style:{borderLeft:p,borderRight:p},children:C.jsx(el,{style:{width:"100%",padding:a?0:10},children:_})})]},v)})})},Y6=r=>r.defKey,Z6=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},K6="_ALoadingBorder_kwc1g_1",X6="_ProgressBar_kwc1g_9",J6="_IsLoading_kwc1g_15",Q6="_Cover_kwc1g_19",Zf={ALoadingBorder:K6,ProgressBar:X6,IsLoading:J6,Cover:Q6},Iv=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),C.jsxs("div",{className:Zf.ALoadingBorder,children:[C.jsx("div",{className:Ge.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),C.jsx("div",{className:Ge.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},eI="_Container_ez8dc_1",tI="_Option_ez8dc_7",rI="_RadioButton_ez8dc_14",nI="_InnerCircle_ez8dc_24",oI="_isChecked_ez8dc_29",Yd={Container:eI,Option:tI,RadioButton:rI,InnerCircle:nI,isChecked:oI},iI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=vC}=r,[c,d]=wn(t,e[0]);return C.jsx("div",{className:Yd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:d==null?void 0:d(h);return C.jsxs(Rn,{className:Ge.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[C.jsx(sI,{innerRadius:i,isChecked:c===h,radius:o},p),C.jsx(a,{option:h})]},p)})})},vC=({option:r})=>r,sI=({isChecked:r,radius:e,innerRadius:t})=>C.jsx(Kr,{className:Ge.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:C.jsx(Kr,{className:Ge.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),aI="_AMultiSelect_19uuu_1",lI="_Arrow_19uuu_15",cI="_Primary_19uuu_24",uI="_UnAvailable_19uuu_35",dI="_IsOpen_19uuu_35",fI="_Secondary_19uuu_42",hI="_Placeholder_19uuu_58",pI="_ValuesContainer_19uuu_63",gI="_Values_19uuu_63",mI="_Options_19uuu_82",vI="_Option_19uuu_82",yI="_Selected_19uuu_124",bI="_CheckBox_19uuu_131",Mi={AMultiSelect:aI,Arrow:lI,Primary:cI,UnAvailable:uI,IsOpen:dI,Secondary:fI,Placeholder:hI,ValuesContainer:pI,Values:gI,Options:mI,Option:vI,Selected:yI,CheckBox:bI},xI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=CI,OptionRenderer:c=SI,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[_,A]=wn(t,[]),[R,D]=S.useState(void 0),I=S.useRef(e),B=S.useRef(null),[F,j]=S.useState(!1),[z,G]=S.useState(!1),pe=S.useCallback(()=>G(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>j(!0),0),setTimeout(()=>fm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),U=S.useCallback(()=>{j(!1),G(!0),i==null||i()},[i]),V=S.useCallback(re=>{var ie;F?U():P(),setTimeout(()=>fm(T,w,e,d,h),0),(ie=g.onClick)==null||ie.call(g,re)},[w,g,e,F,U,P,d,h]),Q=S.useCallback(()=>{fm(T,w,e,d,h)},[w,e,d,h]);S.useEffect(()=>{if(!F||!w.current)return;const re=w.current;let ie=re.parentElement;for(;ie;)ie.addEventListener("scroll",Q),ie=ie.parentElement;return()=>{let he=re.parentElement;for(;he;)he.removeEventListener("scroll",Q),he=he.parentElement}},[w,F,Q]),S.useEffect(()=>{if(F)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[F,Q]);const se=S.useCallback(re=>{re[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!F)return;const re=new IntersectionObserver(se,{threshold:0});return w.current&&re.observe(w.current),()=>re.disconnect()},[w,F,se]);const ue=S.useCallback(re=>{const ie=re.target,he=w.current,Se=T.current;!he||!ie||!Se||!he.contains(ie)&&!Se.contains(ie)&&U()},[w,U]),oe=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(F)return setTimeout(()=>document.addEventListener("mousedown",ue),0),()=>document.removeEventListener("mousedown",ue)},[F,ue]);const ae=S.useCallback((re,ie)=>{re.stopPropagation(),re.preventDefault();let he=[..._];he.includes(ie)?he=he.filter(Se=>Se!==ie):he.push(ie),A==null||A(he)},[_,A]),ge=S.useCallback(()=>{if(!m||!w.current)return;const re=Hu.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ie=>c({option:ie}),type:n,isMulti:!0});D(re)},[m,w,e,_,o,c,n]);return S.useEffect(()=>m?((e!==I.current||R===void 0)&&(B.current!==null&&cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{ge(),B.current=null,I.current=[...e]})),()=>{B.current!==null&&(cancelAnimationFrame(B.current),B.current=null)}):void 0,[m,e,ge,R]),S.useEffect(()=>()=>{typeof Hu.clearCache=="function"&&Hu.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ge.clsx(g.className,Mi.AMultiSelect,"NoSelect",F&&Mi.IsOpen,oe&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:Mi.ValuesContainer,children:C.jsx("div",{className:Ge.clsx(Mi.Values,_.length<1&&Mi.Placeholder),children:C.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),C.jsx("div",{...p,className:Ge.clsx(Mi.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:F?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(F||z)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ge.clsx(Mi.Options,Mi[n]),style:{opacity:+F,visibility:F?"visible":"hidden",pointerEvents:F?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:pe,children:e.map((re,ie)=>{var Se;const he=_.includes(re);return C.jsxs("div",{className:Ge.clsx(Mi.Option,he&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Se=w.current)==null?void 0:Se.getBoundingClientRect().height},onClick:Le=>ae(Le,re),children:[C.jsx(af,{className:Mi.CheckBox,useCheck:[+he,void 0]}),C.jsx(c,{option:re})]},ie)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=wI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function wI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const CI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?C.jsx(e,{option:t[0]}):`${t.length} selected`},SI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},_I="_Container_10ion_1",AI="_Steps_10ion_9",EI="_Step_10ion_9",TI="_OutCircle_10ion_26",RI="_IsOver_10ion_37",kI="_InCircle_10ion_41",II="_Line_10ion_54",MI="_Left_10ion_66",LI="_Right_10ion_69",DI="_ContentContainer_10ion_73",OI="_Content_10ion_73",fi={Container:_I,Steps:AI,Step:EI,OutCircle:TI,IsOver:RI,InCircle:kI,Line:II,Left:MI,Right:LI,ContentContainer:DI,Content:OI},NI=r=>{const{useSelect:e,steps:t,StepRenderer:n=R0,ContentRenderer:o=R0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=S.useRef(null),[a,c]=wn(e,t[0]),d=S.useCallback(p=>c==null?void 0:c(p),[c]),h=S.useMemo(()=>t.indexOf(a),[a,t]);return S.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),C.jsxs("div",{className:fi.Container,children:[C.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return C.jsxs("div",{className:fi.Step,children:[m!==0&&C.jsx("div",{className:Ge.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&C.jsx("div",{className:Ge.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),C.jsx(Go,{className:Ge.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>d(p),children:C.jsx("div",{className:Ge.clsx(fi.InCircle,v&&fi.IsOver)})}),C.jsx(n,{step:p,stepIdx:g})]},m)})}),C.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return C.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:C.jsx(o,{step:p,stepIdx:g})},m)})})]})},R0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},PI="_ATab_2c2d2_1",BI="_Option_2c2d2_9",FI="_Underline_2c2d2_23",jI="_IsSelected_2c2d2_23",zI="_IndicatorTrack_2c2d2_34",HI="_Indicator_2c2d2_34",$I="_Primary_2c2d2_50",qI="_Secondary_2c2d2_57",UI="_IsDisabled_2c2d2_67",WI="_Tertiary_2c2d2_81",VI="_Quaternary_2c2d2_111",Rc={ATab:PI,Option:BI,Underline:FI,IsSelected:jI,IndicatorTrack:zI,Indicator:HI,Primary:$I,Secondary:qI,IsDisabled:UI,Tertiary:WI,Quaternary:VI},GI=["Primary","Secondary","Tertiary","Quaternary"],yC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=YI,RightAddon:h,color:p,selectedColor:m,underline:g,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=S.useMemo(()=>e.findIndex(ie=>!(n!=null&&n(ie))),[e,n]),_=o==="Tertiary"?2:0,A=o==="Secondary"?8:0,R=S.useMemo(()=>_+A,[_,A]),D=o==="Tertiary"?2:0,I=S.useMemo(()=>(A-_-D-D)/e.length,[e.length,_,A,D]),[B,F]=wn(t,e[T]),j=S.useRef([]),z=S.useCallback(ie=>F==null?void 0:F(ie),[F]),G=S.useMemo(()=>typeof c=="number"?c+"px":c,[c]),pe=S.useMemo(()=>e.indexOf(B),[e,B]),P=S.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),U=S.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=S.useState(0),[se,ue]=S.useState(0),[oe,ae]=S.useState(U),ge=S.useMemo(()=>{let ie;switch(G){case void 0:ie=`calc(${P} * ${pe})`;break;case"fit-content":ie=`calc(${V}px)`;break;default:ie=`calc((${G} + ${R}px) * ${pe})`;break}return`calc(${ie} + ${D}px)`},[G,D,P,pe,V,R]),re=S.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${se}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,se]);return S.useEffect(()=>{var he,Se;if(e.includes(B)||F==null||F(e[T]),G!=="fit-content"){ae(U);return}let ie=0;j.current.forEach((Le,ne)=>{ne<pe&&Le.current&&(ie+=Le.current.offsetWidth+R)}),Q(ie),ae(`calc(${((Se=(he=j.current[pe])==null?void 0:he.current)==null?void 0:Se.offsetWidth)||0}px)`),ue(j.current.reduce((Le,ne)=>{var ve;return Le+((((ve=ne.current)==null?void 0:ve.offsetWidth)||0)+R-I)},0))},[G,j,e,B,F,T,I,R,pe,U]),C.jsxs("div",{...i,className:Ge.clsx(Rc.ATab,"Headline2",Rc[o],i==null?void 0:i.className),children:[C.jsx("div",{...v,className:Ge.clsx(Rc.Indicator,v==null?void 0:v.className),style:{minWidth:oe,left:ge,marginLeft:_,...v==null?void 0:v.style}}),C.jsx("div",{...w,className:Ge.clsx(Rc.IndicatorTrack,w==null?void 0:w.className),style:{width:re,...w==null?void 0:w.style}}),C.jsx(Nn,{w:D}),e.map((ie,he)=>{const Se=n==null?void 0:n(ie);return j.current[he]||(j.current[he]=S.createRef()),C.jsx(Kr,{abaseRef:j.current[he],...a,isDisabled:Se,className:Ge.clsx(Rc.Option,Se&&Rc.IsDiabled,ie===B&&Rc.IsSelected,"IsClickable",g&&Rc.Underline,a==null?void 0:a.className),style:{minWidth:U,maxWidth:U,marginLeft:_,marginRight:A,"--color":ie===B&&m||p,...a==null?void 0:a.style},onClick:Le=>{!Se&&z(ie),a&&a.onClick&&a.onClick(Le)},children:C.jsx(d,{option:ie})},he)}),C.jsx(Nn,{w:D+D+_}),h&&C.jsxs(C.Fragment,{children:[C.jsx(Ku,{}),h]})]})},YI=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function bC(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const xC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Or.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Or.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Or.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Or.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.eq(p,o)}const h=Or.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.be(o.sDate,p,o.eDate)}const h=Or.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.be(o.sDate,p,o.eDate)}return!1}},ZI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??xC[a.type])==null?void 0:d(c,e,i,a)}))}),n},KI=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Or.getContent(o.content,{defKey:n,def:o,item:a}),h=Or.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},XI=(r,e,t)=>r.slice((e-1)*t,e*t),wC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},JI=(r,e,t,n)=>{const o=wC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},QI=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Or.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Or.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const _=t[T],A=Or.getContent(_.content,{defKey:T,def:_,item:g});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const R=g[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
|
166
|
-
`),h=new Blob([d],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(h),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},e8=r=>{const e=ar.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},t8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},r8=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Pl={applyFilteration:ZI,applySortation:KI,applyPagination:XI,getPages:wC,getRangedPages:JI,downloadCsv:QI,getSingleFilterValue:e8,getMultiFilterValues:t8,getSelectFilterValue:r8},n8="_ATable_12zow_1",o8={ATable:n8};function CC(r,e,t,n){S.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const i8="_BodyHeader_ys4y0_1",s8="_TRow_ys4y0_7",a8="_OverflowSpace_ys4y0_11",l8="_BodyBody_ys4y0_16",c8="_IsSelected_ys4y0_35",u8="_IsSelectable_ys4y0_39",d8="_IsRowMarked_ys4y0_47",f8="_TH_ys4y0_52",h8="_TD_ys4y0_57",p8="_IsMarked_ys4y0_57",g8="_Resizer_ys4y0_76",m8="_IsMoving_ys4y0_88",v8="_IsResizable_ys4y0_91",y8="_ResizerCenter_ys4y0_94",b8="_ResizerOut_ys4y0_100",x8="_ResizerIn_ys4y0_104",w8="_IsClicked_ys4y0_139",C8="_NoItems_ys4y0_146",S8="_Content_ys4y0_152",Dn={BodyHeader:i8,TRow:s8,OverflowSpace:a8,BodyBody:l8,IsSelected:c8,IsSelectable:u8,IsRowMarked:d8,TH:f8,TD:h8,IsMarked:p8,Resizer:g8,IsMoving:m8,IsResizable:v8,ResizerCenter:y8,ResizerOut:b8,ResizerIn:x8,IsClicked:w8,NoItems:C8,Content:S8},Bc=25,hm=50,_8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:d,useSortation:h,pagination:p,pagedItems:m,noMarking:g,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:_=T8,isRowRendered:A,rowHeight:R,resources:D}=r,[I,B]=S.useMemo(()=>o??[],[o]),F=S.useCallback(Ue=>{i||!B||!I||c!=null&&c(Ue)||(a?I.some(et=>t(et,Ue))?B(I.filter(et=>!t(et,Ue))):B([...I,Ue]):B([Ue]))},[I,c,B,t,i,a]);S.useEffect(()=>{a||!I||!B||I.length>1&&B([I[I.length-1]])},[I,B,a]),S.useEffect(()=>{if(!I||!B)return;I.filter(et=>c==null?void 0:c(et)).length>0&&B(I.filter(et=>!(c!=null&&c(et))))},[I,B,c]);const[j,z]=h,G=S.useCallback((Ue,et)=>{z&&((j==null?void 0:j.defKey)===Ue?j.isAsc===!0?z({defKey:Ue,isAsc:!1,sortF:et}):j.isAsc===!1?z(void 0):z({defKey:Ue,isAsc:!0,sortF:et}):z({defKey:Ue,isAsc:!0,sortF:et}))},[j,z]),[pe,P]=S.useState({elem:null,row:null}),U=S.useRef(null),V=S.useRef(null),Q=S.useCallback(()=>P({elem:U.current,row:V.current}),[]);S.useEffect(()=>Q(),[m.length,Q]),CC(window,"resize",Q);const[se,ue]=S.useState(R);S.useEffect(()=>{const{row:Ue}=pe;Ue!=null&&ue(Ue.clientHeight)},[pe,se]);const oe=S.useMemo(()=>{const{elem:Ue}=pe;return Ue?Math.floor(Ue.clientHeight/se):0},[pe,se]),ae=S.useMemo(()=>T||(m.length<=oe?oe:m.length),[oe,T,m]),ge=S.useMemo(()=>{if(T!==void 0)return T*se},[T,se]),re=S.useMemo(()=>ge,[ge]),ie=S.useMemo(()=>{const{elem:Ue}=pe;return Ue?Ue.getBoundingClientRect().height/se<m.length:!1},[pe,se,m.length]),[he,Se]=S.useState(),Le=S.useMemo(()=>{const{elem:Ue}=pe;return!he||!Ue?"100%":Ue.clientHeight+(A?0:50)},[he,A,pe]),ne=S.useRef(null),[ve,ke]=S.useState({}),Pe=S.useRef({x:0,y:0}),De=S.useRef({}),we=S.useMemo(()=>ar.keys(ve),[ve]),_e=S.useCallback((Ue,et)=>{const ct=ne.current;if(!ct)return;const Ct=[];ct.childNodes.forEach(ft=>{ft.classList.contains(Dn.TH)&&Ct.push(ft)});const It={};ar.keys(e).forEach((ft,gt)=>{const Ne=Ct[gt];if(!Ne)return;const Xe=Ne.getBoundingClientRect().width;It[ft]=Xe}),De.current=It,Se(et),Pe.current={x:Ue.clientX,y:Ue.clientY};const Je=ft=>{if(!ne.current)return;const Ne=ft.clientX-Pe.current.x,Xe=E8(e,et,De.current,Ne);ke(Xe)};document.addEventListener("mousemove",Je);const Ke=()=>{Se(void 0),document.removeEventListener("mousemove",Je),document.removeEventListener("mouseup",Ke)};document.addEventListener("mouseup",Ke)},[e]),Ae=S.useCallback(()=>{Se(void 0),ke({})},[]),$e=S.useMemo(()=>{if(we.length===0){const ct={},Ct=ar.keys(e);for(let It=0;It<Ct.length;It++){const Je=Ct[It],Ke=e[Je],ft=Or.getContent(Ke.colSpan,{defKey:Je,def:Ke}),gt=Ke.width??80,Ne=Ke.minWidth??Bc,Xe=Ke.maxWidth,vt={width:gt,minWidth:Ne,maxWidth:Xe,flexGrow:ft??1};if(ct[Je]=vt,ft!==void 0){for(let Nt=1;Nt<Math.min(ft,Ct.length-It);Nt++){const xt=e[Ct[It+Nt]],Lt=xt.width??80,Qt=xt.minWidth??Bc,Ut=xt.maxWidth;vt.width+=Lt,vt.minWidth+=Qt,vt.maxWidth!==void 0&&(Ut!==void 0?vt.maxWidth+=Ut:vt.maxWidth=void 0)}It+=ft-1}}return ct}const Ue={},et=ar.keys(e);for(let ct=0;ct<et.length;ct++){let Ct=et[ct];const It=e[Ct];let Je=ve[Ct];const Ke=Or.getContent(It.colSpan,{defKey:Ct,def:It}),ft=It.minWidth??Bc,gt=It.maxWidth,Ne={width:Je,minWidth:ft,maxWidth:gt,flexGrow:Ke??1};if(Ue[Ct]=Ne,Ke!==void 0){for(let Xe=1;Xe<Math.min(Ke,et.length-ct);Xe++){const vt=e[et[ct+Xe]],Nt=ve[et[ct+Xe]],xt=vt.minWidth??Bc,Lt=vt.maxWidth;Ne.width+=Nt,Ne.minWidth+=xt,Ne.maxWidth!==void 0&&(Lt!==void 0?Ne.maxWidth+=Lt:Ne.maxWidth=void 0)}ct+=Ke-1}}return Ue},[e,we,ve]),Fe=S.useRef(null),Qe=S.useMemo(()=>Pl.getSingleFilterValue(d),[d]);return S.useEffect(()=>{U.current&&U.current.scrollTo({top:0})},[p.page]),S.useEffect(()=>{A&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,A]),C.jsxs(C.Fragment,{children:[C.jsx(Iv,{isLoading:w}),C.jsx("div",{ref:Fe,className:Ge.clsx(Dn.BodyHeader,he!==void 0&&Dn.IsClicked),style:{display:v||A?"none":"flex"},children:C.jsx("div",{ref:ne,className:Dn.TRow,style:{minHeight:hm,maxHeight:hm},children:ar.map(e,([Ue],et)=>{const ct=e[Ue],Ct=Or.getContent(ct.hContent,{defKey:Ue,def:ct}),It=ct.name,Je=et===ar.keys(e).length-1,Ke=ct.width??80,ft=ct.minWidth??Bc,gt=ct.maxWidth,Ne={width:Ke,minWidth:ft,maxWidth:gt,justifyContent:Or.getContent(ct.hAlign,{defKey:Ue,def:ct})??"flex-start",...Or.getContent(ct.hStyle,{defKey:Ue,def:ct})};we.includes(Ue)&&(Ne.width=ve[Ue]);const Xe=ct.isSortable,vt=(j==null?void 0:j.defKey)===Ue,Nt=j==null?void 0:j.isAsc;return C.jsxs(S.Fragment,{children:[C.jsxs("div",{className:Ge.clsx(Dn.TH,"Label1",Xe?"IsClickable":"NoSelect"),style:Ne,onClick:()=>Xe&&G(Ue,ct.sortF),children:[C.jsx(el,{children:Ct??It,className:Dn.Content}),Xe&&C.jsx(en,{icon:vt?Nt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Je&&C.jsxs("div",{className:Ge.sclsx(Dn,"Resizer","IsResizable","NoSelect",he!==void 0&&"IsMoving"),onDoubleClick:Ae,onMouseDown:xt=>_e(xt,Ue),children:[C.jsx("div",{className:Dn.ResizerOut}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerCenter,style:{height:Le}}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerOut})]}),Je&&C.jsx(Nn,{className:Dn.OverflowSpace,h:hm,style:{color:Ne.color,backgroundColor:Ne.backgroundColor,transition:Ne.transition},w:"var(--Scrollbar-width)"})]},Ue)})})}),C.jsxs("div",{ref:U,className:Ge.clsx(Dn.BodyBody,he!==void 0&&Dn.IsClicked),style:{overflowY:ie?"scroll":"hidden",minHeight:ge,maxHeight:re},children:[m.map((Ue,et)=>{const ct=Or.getContent(n,{item:Ue}),Ct=B&&!i,It=I==null?void 0:I.some(gt=>t(gt,Ue)),Je=I&&(c==null?void 0:c(Ue)),Ke=typeof Je=="string"?Je:void 0,ft={...Ue};return A&&ar.keys(e).forEach(gt=>{const Ne=e[gt],Xe=Or.getContent(Ne.content,{defKey:gt,def:Ne,item:Ue});let vt=!1;if(Qe&&!g){const Nt=Or.getContent(Ne.asText,{defKey:gt,def:Ne,item:Ue});Nt!==void 0?vt=Nt.toString().toLowerCase().includes(Qe.toLowerCase()):["string","number"].includes(typeof Xe)&&Xe!==void 0&&Xe!==null&&(vt=Xe.toString().toLowerCase().includes(Qe.toLowerCase()))}ft[gt]=C.jsx("span",{className:Ge.clsx(vt&&Dn.IsRowMarked),children:ft[gt]})}),C.jsx(Kr,{isDisabled:Je,tooltip:Ke,...ct,abaseRef:It?V:void 0,className:Ge.clsx(ct==null?void 0:ct.className,Ct&&Dn.IsSelectable,It&&Dn.IsSelected),onClick:gt=>{var Ne;F(Ue),(Ne=ct==null?void 0:ct.onClick)==null||Ne.call(ct,gt)},children:C.jsx(_,{defs:e,isBodyBodyOverflowed:ie,item:Ue,markedItem:ft,noMarking:g,rowHeight:R,singleFilterValue:Qe,spanWidths:$e})},et)}),C.jsx(A8,{isRowRendered:A,itemsLength:m.length,resources:D,rowHeight:se,showRows:ae})]})]})},A8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=S.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,d)=>C.jsx("div",{className:Ge.clsx(Dn.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&d===Math.floor(e/2)&&C.jsx(Rn,{className:Dn.NoItems,children:n["No Items"]})},d))};function E8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,d=i;if(n<0){for(;n<0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=p.minWidth??Bc,w=g.maxWidth,T=o[h],_=o[m];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=-n;R=Math.min(R,A),T-R<=v&&c--,w!==void 0&&_+R>=w&&d++,o[h]=T-R,o[m]=_+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=g.minWidth??Bc,w=p.maxWidth,T=o[m],_=o[h];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=n;R=Math.min(R,A),T-R<=v&&d++,w!==void 0&&_+R>=w&&c--,o[m]=T-R,o[h]=_+R,n-=R}return o}return o}const T8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return C.jsx("div",{className:Ge.clsx(Dn.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([d],h)=>{const p=o[d];if(p===void 0)return null;const m=h===ar.keys(e).length-1,g=e[d],v=Or.getContent(g.content,{defKey:d,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Or.getContent(g.align,{defKey:d,def:g,item:t})??"flex-start",...Or.getContent(g.style,{defKey:d,def:g,item:t})};let T=!1;if(i&&!n){const _=Or.getContent(g.asText,{defKey:d,def:g,item:t});_!==void 0?T=_.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return C.jsxs(S.Fragment,{children:[C.jsx("div",{className:Ge.clsx(Dn.TD,"Label1",T&&Dn.IsMarked),style:w,children:C.jsx(el,{children:v,className:Dn.Content})}),!a&&m&&C.jsx(Nn,{className:Dn.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},d)})})},R8="_ATableFooter_w090q_1",k8="_Button_w090q_10",I8="_IsSelected_w090q_26",M8="_IsDisabled_w090q_31",oa={ATableFooter:R8,Button:k8,IsSelected:I8,IsDisabled:M8},L8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=S.useMemo(()=>e[e.length-1],[e]);return C.jsxs(Rn,{className:oa.ATableFooter,children:[C.jsx(en,{className:Ge.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),C.jsx(en,{className:Ge.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>C.jsx("div",{className:Ge.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),C.jsx(en,{className:Ge.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),C.jsx(en,{className:Ge.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},D8="_Filter_1b9j0_1",O8="_SelectFilter_1b9j0_11",N8="_MainFilter_1b9j0_15",P8="_IsOpen_1b9j0_26",B8="_SubFilters_1b9j0_30",F8="_Input_1b9j0_44",j8="_Main_1b9j0_15",z8="_Sub_1b9j0_30",H8="_Actions_1b9j0_62",$8="_Icon_1b9j0_67",q8="_LeftIcon_1b9j0_74",U8="_CircleAlertOutline_1b9j0_79",W8="_Rotate_1b9j0_87",Dr={Filter:D8,SelectFilter:O8,MainFilter:N8,IsOpen:P8,SubFilters:B8,Input:F8,Main:j8,Sub:z8,Actions:H8,Icon:$8,LeftIcon:q8,CircleAlertOutline:U8,Rotate:W8},V8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:d,placeholder:h}=r,[p,m]=S.useState([]),[g,v]=S.useMemo(()=>t,[t]),w=S.useMemo(()=>c==="Select",[c]),T=S.useMemo(()=>ar.keys(g).map(ne=>String(ne)),[g]),[_,A]=S.useState(w&&T.length>0?T[0]:null),R=S.useCallback((ne,ve,ke)=>{if(!v)return;const Pe={...g};ne.value=ve,v(Pe),m(De=>De.map((we,_e)=>_e===(ke?ke+1:0)?"":we))},[g,v]),D=S.useMemo(()=>{let ne=[],ve=ar.keys(g);w&&_&&(ve=ve.filter(ke=>ke===_));for(const ke of ve)ne.push({key:ke,def:e[ke],filter:g[ke]});return ne},[g,e,w,_]),I=S.useMemo(()=>D.length>0?D[0]:null,[D]),B=S.useMemo(()=>p.length>0?p[0]:"",[p]),F=S.useMemo(()=>D.length>1?D.slice(1):[],[D]),j=S.useMemo(()=>p.length>1?p.slice(1):[],[p]),z=S.useMemo(()=>F.length>0,[F]),[G,pe]=S.useState(!1),[P,U]=S.useState(!1),V=S.useRef(null),Q=S.useCallback(()=>pe(!1),[]),se=S.useRef(null),ue=S.useCallback(()=>{U(!1),pe(!0),se.current&&(document.removeEventListener("mousedown",se.current),se.current=null)},[]),oe=S.useCallback(()=>{const ne=ve=>{const ke=document.getElementById("root"),Pe=ve.target,De=V.current;!ke||!De||!Pe||!De.contains(Pe)&&ke.contains(Pe)&&ue()};return se.current=ne,ne},[ue]),ae=S.useCallback(()=>{pe(!0),U(!0),setTimeout(()=>{const ne=oe();document.addEventListener("mousedown",ne)},0)},[oe]),ge=S.useMemo(()=>P?ue:ae,[P,ae,ue]),re=S.useCallback(()=>{const ne=D.map((ve,ke)=>ve.filter.type==="String"&&ve.filter.validation?ve.filter.validation(ve.filter.value||""):ve.filter.type==="Date"&&ve.filter.validation||ve.filter.type==="DateRange"&&ve.filter.validation?ve.filter.validation(ve.filter.value):p[ke]);return m(ne),ne.every(ve=>!ve)},[p,D]),ie=S.useCallback(ne=>{ne.key==="Enter"?(re()&&o.apply(),ne.stopPropagation()):ne.key==="Escape"&&(U(!1),ne.currentTarget.focus(),ne.currentTarget.blur(),ne.stopPropagation())},[re,U,o]),he=S.useMemo(()=>({open:ae,close:ue,toggle:ge,validate:re}),[ae,ue,ge,re]),Se=S.useCallback(()=>{o.clear()},[o]),Le=S.useCallback(ne=>{if(!v||!ne)return;A(ne);const ve={...g};ar.keys(ve).forEach(ke=>{if(ke!==ne&&ve[ke])switch(ve[ke].type){case"String":ve[ke].value="";break;case"Select":ve[ke].value=null;break;case"Date":ve[ke].value=void 0;break;case"DateRange":ve[ke].value=void 0;break}}),m([]),v(ve),o.clear(),setTimeout(()=>{var Pe;const ke=(Pe=V.current)==null?void 0:Pe.querySelector("input");ke&&ke.focus()},0)},[g,v,m,o]);return I?C.jsxs(C.Fragment,{children:[w&&C.jsx(Gc,{isAutoWidth:!0,className:Ge.clsx(Dr.SelectFilter),options:T,type:"Secondary",useSelect:[_,Le],OptionRenderer:({option:ne})=>{const ve=e[ne];let ke;if(ve!=null&&ve.hContent){const Pe={defKey:ne,def:ve};ke=typeof ve.hContent=="function"?ve.hContent(Pe):ve.hContent}else{const Pe=g[ne],De=(ve==null?void 0:ve.name)||(Pe==null?void 0:Pe.placeholder)||String(ne);ke=C.jsx("span",{children:De})}return ke}}),C.jsxs("div",{ref:V,className:Ge.clsx(Dr.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:ie,onClick:ne=>{ne.preventDefault(),ne.stopPropagation()},children:[C.jsx(G8,{errorMessage:B,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:z,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:he,resources:d,onChange:R}),!w&&C.jsx(Y8,{errorMessages:j,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:d,subFilterSets:F,validate:re,onChange:R,onClearClick:Se,onTransitionEnd:Q})]})]}):null},G8=r=>{var g,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:d,resources:h,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const _=[e.filter.value??"",I=>o(e.filter,I)],A=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:R??"Type",isOpen:d,tooltip:D}),C.jsx(Vc,{autoFocus:e.filter.autoFocus,className:Ge.clsx(Dr.Input,Dr.Main),dataList:e.filter.dataList,LeftAddon:t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:A??h["Search(Placeholder)"],type:p?"Error":"Primary",useValue:_,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:C.jsx(fp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const _=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],A=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:R??"Menu",isOpen:d,tooltip:D}),C.jsx(Gc,{className:Ge.clsx(Dr.Input,Dr.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:A,useSelect:_,SelectedRenderer:({OptionRenderer:I,selectedOption:B})=>B===null?A||e.filter.placeholder:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),C.jsx(I,{option:B}),C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:d,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const _=[e.filter.value,I=>o(e.filter,I)],A=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:R??"CalendarDay",isOpen:d,tooltip:D}),C.jsx(Rv,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:A,type:"Raw",useDate:_,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Nn,{w:d?0:6}),C.jsx(Ga,{icon:R??"CalendarDay",isOpen:!d,tooltip:D}),C.jsx(Nn,{w:d?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const _=[e.filter.value,B=>o(e.filter,B)],{noDefaultChoices:A}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,I=e.filter.iconTooltip??R;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:D??"CalendarDay",isOpen:d,tooltip:I}),C.jsx(Ev,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:A,placeholder:R,type:"Raw",useDateRange:_,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Nn,{w:d?0:6}),C.jsx(Ga,{icon:D??"CalendarDay",isOpen:!d,tooltip:I}),C.jsx(Nn,{w:d?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}return null},dp=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return C.jsx(So,{className:Dr.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Dr.Rotate),onClick:i=>{i.currentTarget.classList.add(Dr.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},fp=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:d}=r,h=S.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=S.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=S.useCallback(g=>{g.stopPropagation(),t.validate()&&d.apply()},[t,d]);return C.jsxs(S.Fragment,{children:[i&&C.jsx(So,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&C.jsx(So,{className:Dr.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&C.jsx(So,{className:Dr.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&C.jsx(So,{className:Dr.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},Y8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:d,placeholder:h,filterF:p,validate:m}=r;return!o&&!i?null:C.jsxs("div",{className:Dr.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,v)=>{var w,T,_,A;if(g.filter.type==="String"){const R=[g.filter.value??"",j=>t(g.filter,j,v)],D=d[v],I=h??g.filter.placeholder??((w=g.def)==null?void 0:w.name),B=g.filter.icon,F=g.filter.iconTooltip??I;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:B??"Type",tooltip:F}),C.jsx(Vc,{autoFocus:g.filter.autoFocus,className:Ge.clsx(Dr.Input,Dr.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&C.jsx(So,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Select"){const R=[g.filter.value??null,F=>t(g.filter,F)],D=h??g.filter.placeholder??((T=g.def)==null?void 0:T.name),I=g.filter.icon,B=g.filter.iconTooltip??D;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:I??"Menu",tooltip:B}),C.jsx(Gc,{arrowProps:{style:{marginRight:4}},className:Ge.clsx(Dr.Input,Dr.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:D,type:"Secondary",useSelect:R}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Date"){const R=[g.filter.value,F=>t(g.filter,F)],D=h??g.filter.placeholder??((_=g.def)==null?void 0:_.name),I=g.filter.icon,B=g.filter.iconTooltip??D;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:I??"CalendarDay",tooltip:B}),C.jsx(Rv,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:C.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:D,type:"Raw",useDate:R}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="DateRange"){const R=[g.filter.value,j=>t(g.filter,j)],{noDefaultChoices:D}=g.filter,I=h??g.filter.placeholder??((A=g.def)==null?void 0:A.name),B=g.filter.icon,F=g.filter.iconTooltip??I;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:B??"CalendarDay",tooltip:F}),C.jsx(Ev,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:C.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:D,placeholder:I,type:"Raw",useDateRange:R})]},v)}else return null}),C.jsxs(Rn,{className:Dr.Actions,children:[C.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),C.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ga=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return C.jsx(So,{className:Dr.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},Z8="_ATableHeader_1hzfz_1",K8="_LeftHeaderContent_1hzfz_11",X8="_RightHeaderContent_1hzfz_19",J8="_TopRightAddon_1hzfz_27",Q8="_HItem_1hzfz_32",Nu={ATableHeader:Z8,LeftHeaderContent:K8,RightHeaderContent:X8,TopRightAddon:J8,HItem:Q8},e9=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:d,noCount:h,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:_}=r,[A]=S.useMemo(()=>o||[],[o]),R=S.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[D]=i,[I,B]=v,[F,j]=S.useState(!1),z=S.useMemo(()=>{const oe=ar.values(D).filter(re=>re.type==="DateRange"),ae=ar.keys(D).filter(re=>oe.includes(D[re])),ge=ar.keys(e).filter(re=>e[re].isSortable);return ae.length>0?(ae.length>1&&j(!0),ge.map(ie=>ae.includes(ie)?[ie+"_Asc",ie+"_Desc"]:ie).flat()):ge},[e,D]),G=S.useMemo(()=>r.isRowRendered&&z.length>0,[z.length,r.isRowRendered]),pe=S.useCallback((oe,ae)=>{B&&(I==null?void 0:I.defKey)===oe&&(I.isAsc===!0?B({defKey:oe,isAsc:!1,sortF:ae}):B({defKey:oe,isAsc:!0,sortF:ae}))},[I,B]),P=S.useRef(),[U,V]=S.useState(),[Q,se]=S.useState(I?I.defKey:z[0]),ue=S.useMemo(()=>{if(!U)return{};const oe=e[U];return{SortUp:{onClick:()=>{B==null||B({defKey:U,isAsc:!0,sortF:oe.sortF}),se(U)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{B==null||B({defKey:U,isAsc:!1,sortF:oe.sortF}),se(U)},content:()=>w["Sort down"]}}},[B,U,e,w]);return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:Ge.clsx(Nu.ATableHeader),children:[C.jsxs("div",{className:Ge.clsx(Nu.LeftHeaderContent,"NoSelect"),children:[C.jsxs(Rn,{style:{marginBottom:G?8:0},children:[m&&C.jsx("div",{className:Ge.clsx(Nu.HItem),children:m}),t&&C.jsx("div",{className:Ge.clsx(Nu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&C.jsxs("div",{className:Ge.clsx(Nu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,A&&A.length>0&&C.jsxs(C.Fragment,{children:[" / ",w["Checked n items"](A.length)]})]})]}),G&&C.jsx(yC,{options:z,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:oe=>{var re;const ae=oe.currentTarget.textContent;if(ae===w[ae])return;oe.currentTarget.querySelector("svg")===null&&((re=P.current)==null||re.open(oe.currentTarget))}},OptionRenderer:oe=>{const ae=/_Asc|_Desc/.test(oe.option),ge=(I==null?void 0:I.defKey)===oe.option,re=Q===oe.option,ie=I==null?void 0:I.isAsc,he=()=>{if(ae){V(void 0),se(oe.option);const[ne,ve]=oe.option.split("_"),ke=ve==="Asc";B==null||B({defKey:ne,isAsc:ke,sortF:e[ne].sortF})}else re?pe(oe.option,e[oe.option].sortF):V(oe.option)},Le=ae?(ne=>{const[ve,ke]=ne.split("_");return(F?ve+" ":"")+w[ke]})(oe.option):w["Sort by x"](oe.option);return C.jsxs(Rn,{className:Ge.clsx(!(ae&&re)&&"IsClickable"),style:{height:"100%"},onClick:he,children:[Le,re&&!ae&&C.jsx(en,{icon:ge?ie?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},oe.option)}})]}),C.jsx(Ku,{}),C.jsxs("div",{className:Ge.clsx(Nu.RightHeaderContent,"NoSelect"),children:[!d&&C.jsx(V8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:z.length>0,isRowRendered:r.isRowRendered,placeholder:_,resources:w,useFilteration:i}),g&&C.jsx(Rn,{children:g,className:Ge.clsx(Nu.TopRightAddon)})]})]}),C.jsx(gC,{actionRef:P,defs:ue,position:bf.S,width:100,onClose:()=>V(void 0)})]})},t9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:d,checkDisabled:h,isLoading:p,isDisabled:m,title:g,entireItems:v,onStateChange:w,pagedItems:T,totalCount:_,useFilteration:A,useToggleFilteration:R,filterType:D="Default",placeholder:I,rowHeight:B=40,usePagination:F,useSortation:j,showRows:z,noHeader:G,noDefHeader:pe,noFooter:P,noFilter:U,noCount:V,noMarking:Q,noStateChangeOnMount:se,TopLeftAddon:ue,TopRightAddon:oe,actionRef:ae,RowRenderer:ge,resources:re}=r,ie=S.useMemo(()=>({...wr.ATable,...re}),[re]),he=S.useCallback((be,ze)=>t!==void 0?Array.isArray(t)?t.every(Tt=>Ya.isEqual(be[Tt],ze[Tt])):Ya.isEqual(be[t],ze[t]):Ya.isEqual(be,ze),[t]),Se=S.useMemo(()=>({content:r9,...n}),[n]),Le=S.useMemo(()=>{const be={};return ar.keys(e).forEach(ze=>{const Tt=e[ze],jt={...Se,...Tt};be[ze]=jt}),be},[Se,e]),[ne,ve]=wn(Ya.cloneDeep(A),{"":{type:"String",placeholder:ie["Search(Placeholder)"],value:""}}),[ke,Pe]=wn(Ya.cloneDeep(R),void 0),[De,we]=S.useState(!1),[_e,Ae]=S.useMemo(()=>De&&ke?[ke,Pe]:[ne,ve],[ne,De,ve,Pe,ke]),[$e,Fe]=S.useState(_e),Qe=S.useMemo(()=>v?Pl.applyFilteration(v,Le,$e):[],[v,Le,$e]),Ue=S.useMemo(()=>{for(const be in $e){const ze=$e[be];if(ze.value!==void 0&&ze.value!==null&&ze.value!=="")return!0}return!1},[$e]),[et,ct]=wn(j,void 0),Ct=S.useMemo(()=>Pl.applySortation(Qe,Le,et),[Qe,Le,et]),It=S.useMemo(()=>{if(T!==void 0)return Pl.applySortation(T,Le,et)},[T,Le,et]),[Je,Ke]=wn(F,{page:1,pageSize:50,pageRange:10}),ft=S.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Je}),[Je]),{pagedItems:gt,totalCount:Ne,pagination:Xe}=S.useMemo(()=>{const be={...ft};if(It!==void 0){let ze=_??It.length;const Tt=Pl.getPages(ze,be.pageSize);return be.page>Tt.length?be.page=Tt.length:be.page<1&&(be.page=1),{pagedItems:It,totalCount:ze,pagination:be}}else if(v!==void 0){const ze=_??Ct.length,Tt=Pl.getPages(ze,be.pageSize);return be.page>Tt.length?be.page=Tt.length:be.page<1&&(be.page=1),{pagedItems:Pl.applyPagination(Ct,be.page,be.pageSize),totalCount:ze,pagination:be}}else return{pagedItems:[],totalCount:_??0,pagination:ft}},[v,It,_,ft,Ct]),{pages:vt,rangedPages:Nt}=S.useMemo(()=>Pl.getRangedPages(Xe.page,Ne,Xe.pageSize,Xe.pageRange),[Ne,Xe.pageSize,Xe.page,Xe.pageRange]),[xt,Lt]=S.useMemo(()=>d??[],[d]),Qt=S.useMemo(()=>gt.filter(be=>xt==null?void 0:xt.some(ze=>he(ze,be))),[gt,xt,he]),Ut=S.useMemo(()=>gt.filter(be=>!(h!=null&&h(be))),[gt,h]),fr=S.useMemo(()=>Ut.length>0&&Ut.every(be=>Qt.some(ze=>he(ze,be))),[Qt,Ut,he]),hr=S.useMemo(()=>fr?!1:Ut.some(be=>Qt.some(ze=>he(ze,be))),[Qt,Ut,fr,he]),cr=S.useCallback(()=>{!xt||!Lt||m||Lt(fr||hr?xt.filter(be=>!Ut.some(ze=>he(ze,be))):[...xt,...Ut])},[xt,Lt,fr,hr,Ut,m,he]),Te=S.useCallback(be=>{!xt||!Lt||m||(xt.some(ze=>he(ze,be))?Lt(xt.filter(ze=>!he(ze,be))):Lt([...xt,be]))},[xt,Lt,m,he]);S.useEffect(()=>{if(!Lt||!xt||!h)return;xt.filter(ze=>h(ze)).length>0&&Lt(xt.filter(ze=>!h(ze)))},[h,xt,Lt]);const le=S.useMemo(()=>({hContent:xt&&C.jsx(af,{isIndeterminate:hr,useCheck:[fr,cr]}),content:be=>{const{item:ze}=be,Tt=h==null?void 0:h(ze),jt=typeof Tt=="string"?Tt:void 0,Dt=xt==null?void 0:xt.some(er=>he(er,ze));return C.jsx(af,{isDisabled:Tt,style:{zIndex:1},tooltip:jt,useCheck:[Dt,()=>Te(ze)],onClick:er=>er.stopPropagation()})},minWidth:32,maxWidth:32}),[xt,fr,hr,he,cr,h,Te]),st=S.useMemo(()=>d?{checkDef:le,...Le}:Le,[Le,le,d]),[yt,nt]=S.useState(!1),pt=S.useMemo(()=>p??yt,[p,yt]),ht=S.useCallback(async be=>{w&&(nt(!0),await w(be),nt(!1)),Ke==null||Ke(be.pagination),ct==null||ct(be.sortation),Fe(be.filteration)},[w,Ke,ct]);S.useEffect(()=>{if(!ae)return;const be=Tt=>{const jt={entireItems:v,filteration:_e,pagination:Xe,sortation:et},Dt=Tt?Tt(jt):jt;ht(Dt)},ze=Tt=>{const jt={...Xe,page:1},Dt=Tt?Tt(_e):_e;ht({entireItems:v,filteration:Dt,pagination:jt,sortation:et}),Ae==null||Ae(Dt)};ae.current={fireOnStateChange:be,applyFilteration:ze}},[ae,ht,v,Ae,_e,Xe,et]);const Ft=S.useCallback(be=>{be.page===Xe.page&&be.pageSize===Xe.pageSize||(be.page<1?be.page=1:be.page>vt[vt.length-1]&&(be.page=vt[vt.length-1]),ht({entireItems:v,filteration:$e,pagination:be,sortation:et}))},[Xe,vt,ht,v,$e,et]),Ve=S.useCallback(be=>{Ae&&Ae(be)},[Ae]),at=S.useCallback(be=>{ht({entireItems:v,filteration:$e,pagination:Xe,sortation:be})},[ht,v,$e,Xe]),lt=S.useCallback(be=>{Ft({...Xe,page:be})},[Ft,Xe]),_t=S.useCallback(()=>{lt(Xe.page-1)},[lt,Xe.page]),Ot=S.useCallback(()=>{lt(Xe.page+1)},[lt,Xe.page]),Bt=S.useCallback(()=>{lt(1)},[lt]),Wt=S.useCallback(()=>{lt(vt[vt.length-1])},[lt,vt]),Yt=S.useMemo(()=>({move:lt,movePrev:_t,moveNext:Ot,moveFirst:Bt,moveLast:Wt}),[lt,_t,Ot,Bt,Wt]),ir=S.useCallback(()=>{const be={...Xe,page:1};ht({entireItems:v,filteration:_e,pagination:be,sortation:et})},[_e,Xe,ht,v,et]),zt=S.useCallback(()=>{we(!De)},[De]),xr=S.useCallback(()=>{De&&ke?Pe==null||Pe(k0(ke)):Ae==null||Ae(k0(ne))},[De,ke,Pe,ne,Ae]),jr=S.useMemo(()=>({apply:ir,toggle:zt,clear:xr}),[ir,zt,xr]);bC(()=>{se||ht({entireItems:v,filteration:_e,pagination:Xe,sortation:et})});const Ye=S.useMemo(()=>ar.map(Le,([ze])=>Le[ze].minWidth??Bc).reduce((ze,Tt)=>ze+Tt,0),[Le]),ee=S.useMemo(()=>ge!==void 0,[ge]);return C.jsxs(Kr,{className:o8.ATable,isDisabled:m,style:{minWidth:Ye},children:[!G&&C.jsx(e9,{defs:Le,filterF:jr,filterType:D,hasToggleFilteration:ke!==void 0,isFiltered:Ue,isRowRendered:ee,noCount:V,noFilter:U,placeholder:I,resources:ie,title:g,TopLeftAddon:ue,TopRightAddon:oe,totalCount:Ne,useCheck:d&&xt?[xt,Lt]:void 0,useFilteration:[_e,Ve],useSortation:[et,at]}),C.jsx(_8,{appliedFilteration:$e,defs:st,isEqual:he,isLoading:pt,isRowRendered:ee,isSelectMulti:a,isTableDisabled:m,noDefHeader:pe,noMarking:Q,pagedItems:gt,pagination:Xe,resources:ie,rowHeight:B,RowRenderer:ge,rProps:o,selectDisabled:c,showRows:z,useSelect:i,useSortation:[et,at]}),!P&&C.jsx(L8,{pageF:Yt,pages:vt,pagination:Xe,rangedPages:Nt})]})},r9=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function k0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const n9="_AText_1asz6_1",o9={AText:n9},SC=r=>{const{text:e,styled:t,style:n}=r,o=S.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?C.jsx("b",{children:e}):C.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1?C.jsx("b",{children:hp(t)}):""]},c)):i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1&&C.jsx("span",{style:n,children:hp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return C.jsx("div",{className:Ge.clsx("Body1Reading",o9.AText,"NoSelect"),children:o})};function hp(r){const e=r.split(`
|
167
|
-
`);return e.map((t,n)=>C.jsxs(S.Fragment,{children:[t,n!==e.length-1&&C.jsx("br",{})]},n))}const i9="_Base_cpm4t_7",s9="_ATextArea_cpm4t_11",a9="_Primary_cpm4t_34",l9="_UnAvailable_cpm4t_39",c9="_Secondary_cpm4t_47",u9="_ReadOnly_cpm4t_59",pp={Base:i9,ATextArea:s9,Primary:a9,UnAvailable:l9,Secondary:c9,ReadOnly:u9,Error:"_Error_cpm4t_66"},d9=["Primary","Secondary","ReadOnly","Error"],f9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:d,maxLength:h,tabIndex:p,autoFocus:m,textAreaProps:g,...v}=r,[{wrapId:w,wrapProps:T,labelProps:_,...A},R]=Zu(v),D=S.useMemo(()=>h9(t)?"Error":n,[t,n]),I=S.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),B=S.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[F,j]=wn(i,""),z=S.useCallback(P=>{j&&j(P)},[j]),G=S.useCallback(P=>{var U;B||(z(P.target.value),(U=g==null?void 0:g.onChange)==null||U.call(g,P))},[B,z,g]),pe=S.useCallback(P=>{var U;if(!B){if((U=g==null?void 0:g.onKeyDown)==null||U.call(g,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[B,e,g]);return C.jsx(Wc,{wrapId:w,wrapProps:T,labelProps:_,...A,children:C.jsx(Kr,{...R,className:Ge.clsx(pp.Base,R.className),children:C.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ge.clsx(pp.ATextArea,pp[D],B&&pp.UnAvailable,g==null?void 0:g.className),maxLength:h,placeholder:d,readOnly:I,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:p,value:F,onChange:G,onKeyDown:pe})})})};function h9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:_C,setPrototypeOf:I0,isFrozen:p9,getPrototypeOf:g9,getOwnPropertyDescriptor:m9}=Object;let{freeze:mi,seal:Os,create:AC}=Object,{apply:N1,construct:P1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});N1||(N1=function(e,t,n){return e.apply(t,n)});P1||(P1=function(e,t){return new e(...t)});const gp=vi(Array.prototype.forEach),v9=vi(Array.prototype.lastIndexOf),M0=vi(Array.prototype.pop),Kf=vi(Array.prototype.push),y9=vi(Array.prototype.splice),Hp=vi(String.prototype.toLowerCase),pm=vi(String.prototype.toString),L0=vi(String.prototype.match),Xf=vi(String.prototype.replace),b9=vi(String.prototype.indexOf),x9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),hi=vi(RegExp.prototype.test),Jf=w9(TypeError);function vi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return N1(r,e,n)}}function w9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hp;I0&&I0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(p9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function C9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Nl(r){const e=AC(null);for(const[t,n]of _C(r))aa(r,t)&&(Array.isArray(n)?e[t]=C9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Nl(n):e[t]=n);return e}function Qf(r,e){for(;r!==null;){const n=m9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=g9(r)}function t(){return null}return t}const D0=mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gm=mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mm=mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S9=mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vm=mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O0=mi(["#text"]),N0=mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ym=mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P0=mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mp=mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),E9=Os(/<%[\w\W]*|[\w\W]*%>/gm),T9=Os(/\$\{[\w\W]*/gm),R9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),k9=Os(/^aria-[\-\w]+$/),EC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),I9=Os(/^(?:\w+script|data):/i),M9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TC=Os(/^html$/i),L9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var B0=Object.freeze({__proto__:null,ARIA_ATTR:k9,ATTR_WHITESPACE:M9,CUSTOM_ELEMENT:L9,DATA_ATTR:R9,DOCTYPE_NAME:TC,ERB_EXPR:E9,IS_ALLOWED_URI:EC,IS_SCRIPT_OR_DATA:I9,MUSTACHE_EXPR:A9,TMPLIT_EXPR:T9});const eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},D9=function(){return typeof window>"u"?null:window},O9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},F0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function RC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:D9();const e=kt=>RC(kt);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==eh.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:h,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:v}=r,w=d.prototype,T=Qf(w,"cloneNode"),_=Qf(w,"remove"),A=Qf(w,"nextSibling"),R=Qf(w,"childNodes"),D=Qf(w,"parentNode");if(typeof a=="function"){const kt=t.createElement("template");kt.content&&kt.content.ownerDocument&&(t=kt.content.ownerDocument)}let I,B="";const{implementation:F,createNodeIterator:j,createDocumentFragment:z,getElementsByTagName:G}=t,{importNode:pe}=n;let P=F0();e.isSupported=typeof _C=="function"&&typeof D=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:ae,CUSTOM_ELEMENT:ge}=B0;let{IS_ALLOWED_URI:re}=B0,ie=null;const he=Wr({},[...D0,...gm,...mm,...vm,...O0]);let Se=null;const Le=Wr({},[...N0,...ym,...P0,...mp]);let ne=Object.seal(AC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ke=null,Pe=!0,De=!0,we=!1,_e=!0,Ae=!1,$e=!0,Fe=!1,Qe=!1,Ue=!1,et=!1,ct=!1,Ct=!1,It=!0,Je=!1;const Ke="user-content-";let ft=!0,gt=!1,Ne={},Xe=null;const vt=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Nt=null;const xt=Wr({},["audio","video","img","source","image","track"]);let Lt=null;const Qt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ut="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",hr="http://www.w3.org/1999/xhtml";let cr=hr,Te=!1,le=null;const st=Wr({},[Ut,fr,hr],pm);let yt=Wr({},["mi","mo","mn","ms","mtext"]),nt=Wr({},["annotation-xml"]);const pt=Wr({},["title","style","font","a","script"]);let ht=null;const Ft=["application/xhtml+xml","text/html"],Ve="text/html";let at=null,lt=null;const _t=t.createElement("form"),Ot=function(xe){return xe instanceof RegExp||xe instanceof Function},Bt=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(lt&<===xe)){if((!xe||typeof xe!="object")&&(xe={}),xe=Nl(xe),ht=Ft.indexOf(xe.PARSER_MEDIA_TYPE)===-1?Ve:xe.PARSER_MEDIA_TYPE,at=ht==="application/xhtml+xml"?pm:Hp,ie=aa(xe,"ALLOWED_TAGS")?Wr({},xe.ALLOWED_TAGS,at):he,Se=aa(xe,"ALLOWED_ATTR")?Wr({},xe.ALLOWED_ATTR,at):Le,le=aa(xe,"ALLOWED_NAMESPACES")?Wr({},xe.ALLOWED_NAMESPACES,pm):st,Lt=aa(xe,"ADD_URI_SAFE_ATTR")?Wr(Nl(Qt),xe.ADD_URI_SAFE_ATTR,at):Qt,Nt=aa(xe,"ADD_DATA_URI_TAGS")?Wr(Nl(xt),xe.ADD_DATA_URI_TAGS,at):xt,Xe=aa(xe,"FORBID_CONTENTS")?Wr({},xe.FORBID_CONTENTS,at):vt,ve=aa(xe,"FORBID_TAGS")?Wr({},xe.FORBID_TAGS,at):Nl({}),ke=aa(xe,"FORBID_ATTR")?Wr({},xe.FORBID_ATTR,at):Nl({}),Ne=aa(xe,"USE_PROFILES")?xe.USE_PROFILES:!1,Pe=xe.ALLOW_ARIA_ATTR!==!1,De=xe.ALLOW_DATA_ATTR!==!1,we=xe.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=xe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=xe.SAFE_FOR_TEMPLATES||!1,$e=xe.SAFE_FOR_XML!==!1,Fe=xe.WHOLE_DOCUMENT||!1,et=xe.RETURN_DOM||!1,ct=xe.RETURN_DOM_FRAGMENT||!1,Ct=xe.RETURN_TRUSTED_TYPE||!1,Ue=xe.FORCE_BODY||!1,It=xe.SANITIZE_DOM!==!1,Je=xe.SANITIZE_NAMED_PROPS||!1,ft=xe.KEEP_CONTENT!==!1,gt=xe.IN_PLACE||!1,re=xe.ALLOWED_URI_REGEXP||EC,cr=xe.NAMESPACE||hr,yt=xe.MATHML_TEXT_INTEGRATION_POINTS||yt,nt=xe.HTML_INTEGRATION_POINTS||nt,ne=xe.CUSTOM_ELEMENT_HANDLING||{},xe.CUSTOM_ELEMENT_HANDLING&&Ot(xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&Ot(xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&typeof xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(De=!1),ct&&(et=!0),Ne&&(ie=Wr({},O0),Se=[],Ne.html===!0&&(Wr(ie,D0),Wr(Se,N0)),Ne.svg===!0&&(Wr(ie,gm),Wr(Se,ym),Wr(Se,mp)),Ne.svgFilters===!0&&(Wr(ie,mm),Wr(Se,ym),Wr(Se,mp)),Ne.mathMl===!0&&(Wr(ie,vm),Wr(Se,P0),Wr(Se,mp))),xe.ADD_TAGS&&(ie===he&&(ie=Nl(ie)),Wr(ie,xe.ADD_TAGS,at)),xe.ADD_ATTR&&(Se===Le&&(Se=Nl(Se)),Wr(Se,xe.ADD_ATTR,at)),xe.ADD_URI_SAFE_ATTR&&Wr(Lt,xe.ADD_URI_SAFE_ATTR,at),xe.FORBID_CONTENTS&&(Xe===vt&&(Xe=Nl(Xe)),Wr(Xe,xe.FORBID_CONTENTS,at)),ft&&(ie["#text"]=!0),Fe&&Wr(ie,["html","head","body"]),ie.table&&(Wr(ie,["tbody"]),delete ve.tbody),xe.TRUSTED_TYPES_POLICY){if(typeof xe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=xe.TRUSTED_TYPES_POLICY,B=I.createHTML("")}else I===void 0&&(I=O9(v,o)),I!==null&&typeof B=="string"&&(B=I.createHTML(""));mi&&mi(xe),lt=xe}},Wt=Wr({},[...gm,...mm,...S9]),Yt=Wr({},[...vm,..._9]),ir=function(xe){let ot=D(xe);(!ot||!ot.tagName)&&(ot={namespaceURI:cr,tagName:"template"});const wt=Hp(xe.tagName),yr=Hp(ot.tagName);return le[xe.namespaceURI]?xe.namespaceURI===fr?ot.namespaceURI===hr?wt==="svg":ot.namespaceURI===Ut?wt==="svg"&&(yr==="annotation-xml"||yt[yr]):!!Wt[wt]:xe.namespaceURI===Ut?ot.namespaceURI===hr?wt==="math":ot.namespaceURI===fr?wt==="math"&&nt[yr]:!!Yt[wt]:xe.namespaceURI===hr?ot.namespaceURI===fr&&!nt[yr]||ot.namespaceURI===Ut&&!yt[yr]?!1:!Yt[wt]&&(pt[wt]||!Wt[wt]):!!(ht==="application/xhtml+xml"&&le[xe.namespaceURI]):!1},zt=function(xe){Kf(e.removed,{element:xe});try{D(xe).removeChild(xe)}catch{_(xe)}},xr=function(xe,ot){try{Kf(e.removed,{attribute:ot.getAttributeNode(xe),from:ot})}catch{Kf(e.removed,{attribute:null,from:ot})}if(ot.removeAttribute(xe),xe==="is")if(et||ct)try{zt(ot)}catch{}else try{ot.setAttribute(xe,"")}catch{}},jr=function(xe){let ot=null,wt=null;if(Ue)xe="<remove></remove>"+xe;else{const lr=L0(xe,/^[\r\n\t ]+/);wt=lr&&lr[0]}ht==="application/xhtml+xml"&&cr===hr&&(xe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+xe+"</body></html>");const yr=I?I.createHTML(xe):xe;if(cr===hr)try{ot=new g().parseFromString(yr,ht)}catch{}if(!ot||!ot.documentElement){ot=F.createDocument(cr,"template",null);try{ot.documentElement.innerHTML=Te?B:yr}catch{}}const Br=ot.body||ot.documentElement;return xe&&wt&&Br.insertBefore(t.createTextNode(wt),Br.childNodes[0]||null),cr===hr?G.call(ot,Fe?"html":"body")[0]:Fe?ot.documentElement:Br},Ye=function(xe){return j.call(xe.ownerDocument||xe,xe,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ee=function(xe){return xe instanceof m&&(typeof xe.nodeName!="string"||typeof xe.textContent!="string"||typeof xe.removeChild!="function"||!(xe.attributes instanceof p)||typeof xe.removeAttribute!="function"||typeof xe.setAttribute!="function"||typeof xe.namespaceURI!="string"||typeof xe.insertBefore!="function"||typeof xe.hasChildNodes!="function")},be=function(xe){return typeof c=="function"&&xe instanceof c};function ze(kt,xe,ot){gp(kt,wt=>{wt.call(e,xe,ot,lt)})}const Tt=function(xe){let ot=null;if(ze(P.beforeSanitizeElements,xe,null),ee(xe))return zt(xe),!0;const wt=at(xe.nodeName);if(ze(P.uponSanitizeElement,xe,{tagName:wt,allowedTags:ie}),$e&&xe.hasChildNodes()&&!be(xe.firstElementChild)&&hi(/<[/\w!]/g,xe.innerHTML)&&hi(/<[/\w!]/g,xe.textContent)||xe.nodeType===eh.progressingInstruction||$e&&xe.nodeType===eh.comment&&hi(/<[/\w]/g,xe.data))return zt(xe),!0;if(!ie[wt]||ve[wt]){if(!ve[wt]&&Dt(wt)&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,wt)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(wt)))return!1;if(ft&&!Xe[wt]){const yr=D(xe)||xe.parentNode,Br=R(xe)||xe.childNodes;if(Br&&yr){const lr=Br.length;for(let br=lr-1;br>=0;--br){const tn=T(Br[br],!0);tn.__removalCount=(xe.__removalCount||0)+1,yr.insertBefore(tn,A(xe))}}}return zt(xe),!0}return xe instanceof d&&!ir(xe)||(wt==="noscript"||wt==="noembed"||wt==="noframes")&&hi(/<\/no(script|embed|frames)/i,xe.innerHTML)?(zt(xe),!0):(Ae&&xe.nodeType===eh.text&&(ot=xe.textContent,gp([U,V,Q],yr=>{ot=Xf(ot,yr," ")}),xe.textContent!==ot&&(Kf(e.removed,{element:xe.cloneNode()}),xe.textContent=ot)),ze(P.afterSanitizeElements,xe,null),!1)},jt=function(xe,ot,wt){if(It&&(ot==="id"||ot==="name")&&(wt in t||wt in _t))return!1;if(!(De&&!ke[ot]&&hi(se,ot))){if(!(Pe&&hi(ue,ot))){if(!Se[ot]||ke[ot]){if(!(Dt(xe)&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,xe)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(xe))&&(ne.attributeNameCheck instanceof RegExp&&hi(ne.attributeNameCheck,ot)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(ot))||ot==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,wt)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(wt))))return!1}else if(!Lt[ot]){if(!hi(re,Xf(wt,ae,""))){if(!((ot==="src"||ot==="xlink:href"||ot==="href")&&xe!=="script"&&b9(wt,"data:")===0&&Nt[xe])){if(!(we&&!hi(oe,Xf(wt,ae,"")))){if(wt)return!1}}}}}}return!0},Dt=function(xe){return xe!=="annotation-xml"&&L0(xe,ge)},er=function(xe){ze(P.beforeSanitizeAttributes,xe,null);const{attributes:ot}=xe;if(!ot||ee(xe))return;const wt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let yr=ot.length;for(;yr--;){const Br=ot[yr],{name:lr,namespaceURI:br,value:tn}=Br,sn=at(lr),Pn=tn;let Hr=lr==="value"?Pn:x9(Pn);if(wt.attrName=sn,wt.attrValue=Hr,wt.keepAttr=!0,wt.forceKeepAttr=void 0,ze(P.uponSanitizeAttribute,xe,wt),Hr=wt.attrValue,Je&&(sn==="id"||sn==="name")&&(xr(lr,xe),Hr=Ke+Hr),$e&&hi(/((--!?|])>)|<\/(style|title)/i,Hr)){xr(lr,xe);continue}if(wt.forceKeepAttr)continue;if(!wt.keepAttr){xr(lr,xe);continue}if(!_e&&hi(/\/>/i,Hr)){xr(lr,xe);continue}Ae&&gp([U,V,Q],kn=>{Hr=Xf(Hr,kn," ")});const rn=at(xe.nodeName);if(!jt(rn,sn,Hr)){xr(lr,xe);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!br)switch(v.getAttributeType(rn,sn)){case"TrustedHTML":{Hr=I.createHTML(Hr);break}case"TrustedScriptURL":{Hr=I.createScriptURL(Hr);break}}if(Hr!==Pn)try{br?xe.setAttributeNS(br,lr,Hr):xe.setAttribute(lr,Hr),ee(xe)?zt(xe):M0(e.removed)}catch{xr(lr,xe)}}ze(P.afterSanitizeAttributes,xe,null)},Jt=function kt(xe){let ot=null;const wt=Ye(xe);for(ze(P.beforeSanitizeShadowDOM,xe,null);ot=wt.nextNode();)ze(P.uponSanitizeShadowNode,ot,null),Tt(ot),er(ot),ot.content instanceof i&&kt(ot.content);ze(P.afterSanitizeShadowDOM,xe,null)};return e.sanitize=function(kt){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=null,wt=null,yr=null,Br=null;if(Te=!kt,Te&&(kt="<!-->"),typeof kt!="string"&&!be(kt))if(typeof kt.toString=="function"){if(kt=kt.toString(),typeof kt!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!e.isSupported)return kt;if(Qe||Bt(xe),e.removed=[],typeof kt=="string"&&(gt=!1),gt){if(kt.nodeName){const tn=at(kt.nodeName);if(!ie[tn]||ve[tn])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(kt instanceof c)ot=jr("<!---->"),wt=ot.ownerDocument.importNode(kt,!0),wt.nodeType===eh.element&&wt.nodeName==="BODY"||wt.nodeName==="HTML"?ot=wt:ot.appendChild(wt);else{if(!et&&!Ae&&!Fe&&kt.indexOf("<")===-1)return I&&Ct?I.createHTML(kt):kt;if(ot=jr(kt),!ot)return et?null:Ct?B:""}ot&&Ue&&zt(ot.firstChild);const lr=Ye(gt?kt:ot);for(;yr=lr.nextNode();)Tt(yr),er(yr),yr.content instanceof i&&Jt(yr.content);if(gt)return kt;if(et){if(ct)for(Br=z.call(ot.ownerDocument);ot.firstChild;)Br.appendChild(ot.firstChild);else Br=ot;return(Se.shadowroot||Se.shadowrootmode)&&(Br=pe.call(n,Br,!0)),Br}let br=Fe?ot.outerHTML:ot.innerHTML;return Fe&&ie["!doctype"]&&ot.ownerDocument&&ot.ownerDocument.doctype&&ot.ownerDocument.doctype.name&&hi(TC,ot.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+ot.ownerDocument.doctype.name+`>
|
168
|
-
`+br),Ae&&gp([U,V,Q],tn=>{br=Xf(br,tn," ")}),I&&Ct?I.createHTML(br):br},e.setConfig=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(kt),Qe=!0},e.clearConfig=function(){lt=null,Qe=!1},e.isValidAttribute=function(kt,xe,ot){lt||Bt({});const wt=at(kt),yr=at(xe);return jt(wt,yr,ot)},e.addHook=function(kt,xe){typeof xe=="function"&&Kf(P[kt],xe)},e.removeHook=function(kt,xe){if(xe!==void 0){const ot=v9(P[kt],xe);return ot===-1?void 0:y9(P[kt],ot,1)[0]}return M0(P[kt])},e.removeHooks=function(kt){P[kt]=[]},e.removeAllHooks=function(){P=F0()},e}var N9=RC(),vp={exports:{}},bm,j0;function P9(){if(j0)return bm;j0=1;var r=-1,e=1,t=0;function n(P,U,V,Q,se){if(P===U)return P?[[t,P]]:[];if(V!=null){var ue=G(P,U,V);if(ue)return ue}var oe=c(P,U),ae=P.substring(0,oe);P=P.substring(oe),U=U.substring(oe),oe=h(P,U);var ge=P.substring(P.length-oe);P=P.substring(0,P.length-oe),U=U.substring(0,U.length-oe);var re=o(P,U);return ae&&re.unshift([t,ae]),ge&&re.push([t,ge]),R(re,se),Q&&m(re),re}function o(P,U){var V;if(!P)return[[e,U]];if(!U)return[[r,P]];var Q=P.length>U.length?P:U,se=P.length>U.length?U:P,ue=Q.indexOf(se);if(ue!==-1)return V=[[e,Q.substring(0,ue)],[t,se],[e,Q.substring(ue+se.length)]],P.length>U.length&&(V[0][0]=V[2][0]=r),V;if(se.length===1)return[[r,P],[e,U]];var oe=p(P,U);if(oe){var ae=oe[0],ge=oe[1],re=oe[2],ie=oe[3],he=oe[4],Se=n(ae,re),Le=n(ge,ie);return Se.concat([[t,he]],Le)}return i(P,U)}function i(P,U){for(var V=P.length,Q=U.length,se=Math.ceil((V+Q)/2),ue=se,oe=2*se,ae=new Array(oe),ge=new Array(oe),re=0;re<oe;re++)ae[re]=-1,ge[re]=-1;ae[ue+1]=0,ge[ue+1]=0;for(var ie=V-Q,he=ie%2!==0,Se=0,Le=0,ne=0,ve=0,ke=0;ke<se;ke++){for(var Pe=-ke+Se;Pe<=ke-Le;Pe+=2){var De=ue+Pe,we;Pe===-ke||Pe!==ke&&ae[De-1]<ae[De+1]?we=ae[De+1]:we=ae[De-1]+1;for(var _e=we-Pe;we<V&&_e<Q&&P.charAt(we)===U.charAt(_e);)we++,_e++;if(ae[De]=we,we>V)Le+=2;else if(_e>Q)Se+=2;else if(he){var Ae=ue+ie-Pe;if(Ae>=0&&Ae<oe&&ge[Ae]!==-1){var $e=V-ge[Ae];if(we>=$e)return a(P,U,we,_e)}}}for(var Fe=-ke+ne;Fe<=ke-ve;Fe+=2){var Ae=ue+Fe,$e;Fe===-ke||Fe!==ke&&ge[Ae-1]<ge[Ae+1]?$e=ge[Ae+1]:$e=ge[Ae-1]+1;for(var Qe=$e-Fe;$e<V&&Qe<Q&&P.charAt(V-$e-1)===U.charAt(Q-Qe-1);)$e++,Qe++;if(ge[Ae]=$e,$e>V)ve+=2;else if(Qe>Q)ne+=2;else if(!he){var De=ue+ie-Fe;if(De>=0&&De<oe&&ae[De]!==-1){var we=ae[De],_e=ue+we-De;if($e=V-$e,we>=$e)return a(P,U,we,_e)}}}}return[[r,P],[e,U]]}function a(P,U,V,Q){var se=P.substring(0,V),ue=U.substring(0,Q),oe=P.substring(V),ae=U.substring(Q),ge=n(se,ue),re=n(oe,ae);return ge.concat(re)}function c(P,U){if(!P||!U||P.charAt(0)!==U.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,U.length),se=Q,ue=0;V<se;)P.substring(ue,se)==U.substring(ue,se)?(V=se,ue=V):Q=se,se=Math.floor((Q-V)/2+V);return D(P.charCodeAt(se-1))&&se--,se}function d(P,U){var V=P.length,Q=U.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(U=U.substring(0,V));var se=Math.min(V,Q);if(P==U)return se;for(var ue=0,oe=1;;){var ae=P.substring(se-oe),ge=U.indexOf(ae);if(ge==-1)return ue;oe+=ge,(ge==0||P.substring(se-oe)==U.substring(0,oe))&&(ue=oe,oe++)}}function h(P,U){if(!P||!U||P.slice(-1)!==U.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,U.length),se=Q,ue=0;V<se;)P.substring(P.length-se,P.length-ue)==U.substring(U.length-se,U.length-ue)?(V=se,ue=V):Q=se,se=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-se))&&se--,se}function p(P,U){var V=P.length>U.length?P:U,Q=P.length>U.length?U:P;if(V.length<4||Q.length*2<V.length)return null;function se(Le,ne,ve){for(var ke=Le.substring(ve,ve+Math.floor(Le.length/4)),Pe=-1,De="",we,_e,Ae,$e;(Pe=ne.indexOf(ke,Pe+1))!==-1;){var Fe=c(Le.substring(ve),ne.substring(Pe)),Qe=h(Le.substring(0,ve),ne.substring(0,Pe));De.length<Qe+Fe&&(De=ne.substring(Pe-Qe,Pe)+ne.substring(Pe,Pe+Fe),we=Le.substring(0,ve-Qe),_e=Le.substring(ve+Fe),Ae=ne.substring(0,Pe-Qe),$e=ne.substring(Pe+Fe))}return De.length*2>=Le.length?[we,_e,Ae,$e,De]:null}var ue=se(V,Q,Math.ceil(V.length/4)),oe=se(V,Q,Math.ceil(V.length/2)),ae;if(!ue&&!oe)return null;oe?ue?ae=ue[4].length>oe[4].length?ue:oe:ae=oe:ae=ue;var ge,re,ie,he;P.length>U.length?(ge=ae[0],re=ae[1],ie=ae[2],he=ae[3]):(ie=ae[0],he=ae[1],ge=ae[2],re=ae[3]);var Se=ae[4];return[ge,re,ie,he,Se]}function m(P){for(var U=!1,V=[],Q=0,se=null,ue=0,oe=0,ae=0,ge=0,re=0;ue<P.length;)P[ue][0]==t?(V[Q++]=ue,oe=ge,ae=re,ge=0,re=0,se=P[ue][1]):(P[ue][0]==e?ge+=P[ue][1].length:re+=P[ue][1].length,se&&se.length<=Math.max(oe,ae)&&se.length<=Math.max(ge,re)&&(P.splice(V[Q-1],0,[r,se]),P[V[Q-1]+1][0]=e,Q--,Q--,ue=Q>0?V[Q-1]:-1,oe=0,ae=0,ge=0,re=0,se=null,U=!0)),ue++;for(U&&R(P),A(P),ue=1;ue<P.length;){if(P[ue-1][0]==r&&P[ue][0]==e){var ie=P[ue-1][1],he=P[ue][1],Se=d(ie,he),Le=d(he,ie);Se>=Le?(Se>=ie.length/2||Se>=he.length/2)&&(P.splice(ue,0,[t,he.substring(0,Se)]),P[ue-1][1]=ie.substring(0,ie.length-Se),P[ue+1][1]=he.substring(Se),ue++):(Le>=ie.length/2||Le>=he.length/2)&&(P.splice(ue,0,[t,ie.substring(0,Le)]),P[ue-1][0]=e,P[ue-1][1]=he.substring(0,he.length-Le),P[ue+1][0]=r,P[ue+1][1]=ie.substring(Le),ue++),ue++}ue++}}var g=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,_=/^\r?\n\r?\n/;function A(P){function U(Le,ne){if(!Le||!ne)return 6;var ve=Le.charAt(Le.length-1),ke=ne.charAt(0),Pe=ve.match(g),De=ke.match(g),we=Pe&&ve.match(v),_e=De&&ke.match(v),Ae=we&&ve.match(w),$e=_e&&ke.match(w),Fe=Ae&&Le.match(T),Qe=$e&&ne.match(_);return Fe||Qe?5:Ae||$e?4:Pe&&!we&&_e?3:we||_e?2:Pe||De?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],se=P[V][1],ue=P[V+1][1],oe=h(Q,se);if(oe){var ae=se.substring(se.length-oe);Q=Q.substring(0,Q.length-oe),se=ae+se.substring(0,se.length-oe),ue=ae+ue}for(var ge=Q,re=se,ie=ue,he=U(Q,se)+U(se,ue);se.charAt(0)===ue.charAt(0);){Q+=se.charAt(0),se=se.substring(1)+ue.charAt(0),ue=ue.substring(1);var Se=U(Q,se)+U(se,ue);Se>=he&&(he=Se,ge=Q,re=se,ie=ue)}P[V-1][1]!=ge&&(ge?P[V-1][1]=ge:(P.splice(V-1,1),V--),P[V][1]=re,ie?P[V+1][1]=ie:(P.splice(V+1,1),V--))}V++}}function R(P,U){P.push([t,""]);for(var V=0,Q=0,se=0,ue="",oe="",ae;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:se++,oe+=P[V][1],V++;break;case r:Q++,ue+=P[V][1],V++;break;case t:var ge=V-se-Q-1;if(U){if(ge>=0&&F(P[ge][1])){var re=P[ge][1].slice(-1);if(P[ge][1]=P[ge][1].slice(0,-1),ue=re+ue,oe=re+oe,!P[ge][1]){P.splice(ge,1),V--;var ie=ge-1;P[ie]&&P[ie][0]===e&&(se++,oe=P[ie][1]+oe,ie--),P[ie]&&P[ie][0]===r&&(Q++,ue=P[ie][1]+ue,ie--),ge=ie}}if(B(P[V][1])){var re=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),ue+=re,oe+=re}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(ue.length>0||oe.length>0){ue.length>0&&oe.length>0&&(ae=c(oe,ue),ae!==0&&(ge>=0?P[ge][1]+=oe.substring(0,ae):(P.splice(0,0,[t,oe.substring(0,ae)]),V++),oe=oe.substring(ae),ue=ue.substring(ae)),ae=h(oe,ue),ae!==0&&(P[V][1]=oe.substring(oe.length-ae)+P[V][1],oe=oe.substring(0,oe.length-ae),ue=ue.substring(0,ue.length-ae)));var he=se+Q;ue.length===0&&oe.length===0?(P.splice(V-he,he),V=V-he):ue.length===0?(P.splice(V-he,he,[e,oe]),V=V-he+1):oe.length===0?(P.splice(V-he,he,[r,ue]),V=V-he+1):(P.splice(V-he,he,[r,ue],[e,oe]),V=V-he+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,se=0,Q=0,ue="",oe="";break}}P[P.length-1][1]===""&&P.pop();var Se=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),Se=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),Se=!0)),V++;Se&&R(P,U)}function D(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function B(P){return I(P.charCodeAt(0))}function F(P){return D(P.charCodeAt(P.length-1))}function j(P){for(var U=[],V=0;V<P.length;V++)P[V][1].length>0&&U.push(P[V]);return U}function z(P,U,V,Q){return F(P)||B(Q)?null:j([[t,P],[r,U],[e,V],[t,Q]])}function G(P,U,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,se=typeof V=="number"?null:V.newRange,ue=P.length,oe=U.length;if(Q.length===0&&(se===null||se.length===0)){var ae=Q.index,ge=P.slice(0,ae),re=P.slice(ae),ie=se?se.index:null;e:{var he=ae+oe-ue;if(ie!==null&&ie!==he||he<0||he>oe)break e;var Se=U.slice(0,he),Le=U.slice(he);if(Le!==re)break e;var ne=Math.min(ae,he),ve=ge.slice(0,ne),ke=Se.slice(0,ne);if(ve!==ke)break e;var Pe=ge.slice(ne),De=Se.slice(ne);return z(ve,Pe,De,re)}e:{if(ie!==null&&ie!==ae)break e;var we=ae,Se=U.slice(0,we),Le=U.slice(we);if(Se!==ge)break e;var _e=Math.min(ue-we,oe-we),Ae=re.slice(re.length-_e),$e=Le.slice(Le.length-_e);if(Ae!==$e)break e;var Pe=re.slice(0,re.length-_e),De=Le.slice(0,Le.length-_e);return z(ge,Pe,De,Ae)}}if(Q.length>0&&se&&se.length===0)e:{var ve=P.slice(0,Q.index),Ae=P.slice(Q.index+Q.length),ne=ve.length,_e=Ae.length;if(oe<ne+_e)break e;var ke=U.slice(0,ne),$e=U.slice(oe-_e);if(ve!==ke||Ae!==$e)break e;var Pe=P.slice(ne,ue-_e),De=U.slice(ne,oe-_e);return z(ve,Pe,De,Ae)}return null}function pe(P,U,V,Q){return n(P,U,V,Q,!0)}return pe.INSERT=e,pe.DELETE=r,pe.EQUAL=t,bm=pe,bm}var dh={exports:{}};dh.exports;var z0;function kC(){return z0||(z0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",_="[object RegExp]",A="[object Set]",R="[object String]",D="[object Symbol]",I="[object WeakMap]",B="[object ArrayBuffer]",F="[object DataView]",j="[object Float32Array]",z="[object Float64Array]",G="[object Int8Array]",pe="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",se="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,oe=/\w*$/,ae=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,re={};re[i]=re[a]=re[B]=re[F]=re[c]=re[d]=re[j]=re[z]=re[G]=re[pe]=re[P]=re[g]=re[v]=re[w]=re[_]=re[A]=re[R]=re[D]=re[U]=re[V]=re[Q]=re[se]=!0,re[h]=re[p]=re[I]=!1;var ie=typeof Di=="object"&&Di&&Di.Object===Object&&Di,he=typeof self=="object"&&self&&self.Object===Object&&self,Se=ie||he||Function("return this")(),Le=e&&!e.nodeType&&e,ne=Le&&!0&&r&&!r.nodeType&&r,ve=ne&&ne.exports===Le;function ke(O,J){return O.set(J[0],J[1]),O}function Pe(O,J){return O.add(J),O}function De(O,J){for(var Ce=-1,rt=O?O.length:0;++Ce<rt&&J(O[Ce],Ce,O)!==!1;);return O}function we(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function _e(O,J,Ce,rt){for(var or=-1,Kt=O?O.length:0;++or<Kt;)Ce=J(Ce,O[or],or,O);return Ce}function Ae(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function $e(O,J){return O==null?void 0:O[J]}function Fe(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function Qe(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function Ue(O,J){return function(Ce){return O(J(Ce))}}function et(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var ct=Array.prototype,Ct=Function.prototype,It=Object.prototype,Je=Se["__core-js_shared__"],Ke=function(){var O=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ft=Ct.toString,gt=It.hasOwnProperty,Ne=It.toString,Xe=RegExp("^"+ft.call(gt).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=ve?Se.Buffer:void 0,Nt=Se.Symbol,xt=Se.Uint8Array,Lt=Ue(Object.getPrototypeOf,Object),Qt=Object.create,Ut=It.propertyIsEnumerable,fr=ct.splice,hr=Object.getOwnPropertySymbols,cr=vt?vt.isBuffer:void 0,Te=Ue(Object.keys,Object),le=Ht(Se,"DataView"),st=Ht(Se,"Map"),yt=Ht(Se,"Promise"),nt=Ht(Se,"Set"),pt=Ht(Se,"WeakMap"),ht=Ht(Object,"create"),Ft=dn(le),Ve=dn(st),at=dn(yt),lt=dn(nt),_t=dn(pt),Ot=Nt?Nt.prototype:void 0,Bt=Ot?Ot.valueOf:void 0;function Wt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function Yt(){this.__data__=ht?ht(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function zt(O){var J=this.__data__;if(ht){var Ce=J[O];return Ce===n?void 0:Ce}return gt.call(J,O)?J[O]:void 0}function xr(O){var J=this.__data__;return ht?J[O]!==void 0:gt.call(J,O)}function jr(O,J){var Ce=this.__data__;return Ce[O]=ht&&J===void 0?n:J,this}Wt.prototype.clear=Yt,Wt.prototype.delete=ir,Wt.prototype.get=zt,Wt.prototype.has=xr,Wt.prototype.set=jr;function Ye(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function ee(){this.__data__=[]}function be(O){var J=this.__data__,Ce=Hr(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():fr.call(J,Ce,1),!0}function ze(O){var J=this.__data__,Ce=Hr(J,O);return Ce<0?void 0:J[Ce][1]}function Tt(O){return Hr(this.__data__,O)>-1}function jt(O,J){var Ce=this.__data__,rt=Hr(Ce,O);return rt<0?Ce.push([O,J]):Ce[rt][1]=J,this}Ye.prototype.clear=ee,Ye.prototype.delete=be,Ye.prototype.get=ze,Ye.prototype.has=Tt,Ye.prototype.set=jt;function Dt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__={hash:new Wt,map:new(st||Ye),string:new Wt}}function Jt(O){return Et(this,O).delete(O)}function kt(O){return Et(this,O).get(O)}function xe(O){return Et(this,O).has(O)}function ot(O,J){return Et(this,O).set(O,J),this}Dt.prototype.clear=er,Dt.prototype.delete=Jt,Dt.prototype.get=kt,Dt.prototype.has=xe,Dt.prototype.set=ot;function wt(O){this.__data__=new Ye(O)}function yr(){this.__data__=new Ye}function Br(O){return this.__data__.delete(O)}function lr(O){return this.__data__.get(O)}function br(O){return this.__data__.has(O)}function tn(O,J){var Ce=this.__data__;if(Ce instanceof Ye){var rt=Ce.__data__;if(!st||rt.length<t-1)return rt.push([O,J]),this;Ce=this.__data__=new Dt(rt)}return Ce.set(O,J),this}wt.prototype.clear=yr,wt.prototype.delete=Br,wt.prototype.get=lr,wt.prototype.has=br,wt.prototype.set=tn;function sn(O,J){var Ce=Pi(O)||io(O)?Ae(O.length,String):[],rt=Ce.length,or=!!rt;for(var Kt in O)gt.call(O,Kt)&&!(or&&(Kt=="length"||Mn(Kt,rt)))&&Ce.push(Kt);return Ce}function Pn(O,J,Ce){var rt=O[J];(!(gt.call(O,J)&&Kn(rt,Ce))||Ce===void 0&&!(J in O))&&(O[J]=Ce)}function Hr(O,J){for(var Ce=O.length;Ce--;)if(Kn(O[Ce][0],J))return Ce;return-1}function rn(O,J){return O&&qe(J,zr(J),O)}function kn(O,J,Ce,rt,or,Kt,_r){var kr;if(rt&&(kr=Kt?rt(O,or,Kt,_r):rt(O)),kr!==void 0)return kr;if(!ao(O))return O;var Cr=Pi(O);if(Cr){if(kr=Rr(O),!J)return ce(O,kr)}else{var Mr=Vt(O),fn=Mr==p||Mr==m;if(Hn(O))return Fn(O,J);if(Mr==w||Mr==i||fn&&!Kt){if(Fe(O))return Kt?O:{};if(kr=an(fn?{}:O),!J)return Be(O,rn(kr,O))}else{if(!re[Mr])return Kt?O:{};kr=In(O,Mr,kn,J)}}_r||(_r=new wt);var $n=_r.get(O);if($n)return $n;if(_r.set(O,kr),!Cr)var nn=Ce?tt(O):zr(O);return De(nn||O,function(Vr,hn){nn&&(hn=Vr,Vr=O[hn]),Pn(kr,hn,kn(Vr,J,Ce,rt,hn,O,_r))}),kr}function Bn(O){return ao(O)?Qt(O):{}}function _o(O,J,Ce){var rt=J(O);return Pi(O)?rt:we(rt,Ce(O))}function Do(O){return Ne.call(O)}function Oo(O){if(!ao(O)||Zn(O))return!1;var J=Bi(O)||Fe(O)?Xe:ae;return J.test(dn(O))}function zn(O){if(!No(O))return Te(O);var J=[];for(var Ce in Object(O))gt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function Fn(O,J){if(J)return O.slice();var Ce=new O.constructor(O.length);return O.copy(Ce),Ce}function Cn(O){var J=new O.constructor(O.byteLength);return new xt(J).set(new xt(O)),J}function oo(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.byteLength)}function mn(O,J,Ce){var rt=J?Ce(Qe(O),!0):Qe(O);return _e(rt,ke,new O.constructor)}function An(O){var J=new O.constructor(O.source,oe.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,Ce){var rt=J?Ce(et(O),!0):et(O);return _e(rt,Pe,new O.constructor)}function $(O){return Bt?Object(Bt.call(O)):{}}function X(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.length)}function ce(O,J){var Ce=-1,rt=O.length;for(J||(J=Array(rt));++Ce<rt;)J[Ce]=O[Ce];return J}function qe(O,J,Ce,rt){Ce||(Ce={});for(var or=-1,Kt=J.length;++or<Kt;){var _r=J[or],kr=void 0;Pn(Ce,_r,kr===void 0?O[_r]:kr)}return Ce}function Be(O,J){return qe(O,Gt(O),J)}function tt(O){return _o(O,zr,Gt)}function Et(O,J){var Ce=O.__data__;return ho(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Ht(O,J){var Ce=$e(O,J);return Oo(Ce)?Ce:void 0}var Gt=hr?Ue(hr,Object):Ir,Vt=Do;(le&&Vt(new le(new ArrayBuffer(1)))!=F||st&&Vt(new st)!=g||yt&&Vt(yt.resolve())!=T||nt&&Vt(new nt)!=A||pt&&Vt(new pt)!=I)&&(Vt=function(O){var J=Ne.call(O),Ce=J==w?O.constructor:void 0,rt=Ce?dn(Ce):void 0;if(rt)switch(rt){case Ft:return F;case Ve:return g;case at:return T;case lt:return A;case _t:return I}return J});function Rr(O){var J=O.length,Ce=O.constructor(J);return J&&typeof O[0]=="string"&>.call(O,"index")&&(Ce.index=O.index,Ce.input=O.input),Ce}function an(O){return typeof O.constructor=="function"&&!No(O)?Bn(Lt(O)):{}}function In(O,J,Ce,rt){var or=O.constructor;switch(J){case B:return Cn(O);case c:case d:return new or(+O);case F:return oo(O,rt);case j:case z:case G:case pe:case P:case U:case V:case Q:case se:return X(O,rt);case g:return mn(O,rt,Ce);case v:case R:return new or(O);case _:return An(O);case A:return k(O,rt,Ce);case D:return $(O)}}function Mn(O,J){return J=J??o,!!J&&(typeof O=="number"||ge.test(O))&&O>-1&&O%1==0&&O<J}function ho(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Zn(O){return!!Ke&&Ke in O}function No(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||It;return O===Ce}function dn(O){if(O!=null){try{return ft.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O){return kn(O,!0,!0)}function Kn(O,J){return O===J||O!==O&&J!==J}function io(O){return bi(O)&>.call(O,"callee")&&(!Ut.call(O,"callee")||Ne.call(O)==i)}var Pi=Array.isArray;function yi(O){return O!=null&&so(O.length)&&!Bi(O)}function bi(O){return ti(O)&&yi(O)}var Hn=cr||Fr;function Bi(O){var J=ao(O)?Ne.call(O):"";return J==p||J==m}function so(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function ao(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function ti(O){return!!O&&typeof O=="object"}function zr(O){return yi(O)?sn(O):zn(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Ao}(dh,dh.exports)),dh.exports}var fh={exports:{}};fh.exports;var H0;function IC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",_="[object Number]",A="[object Null]",R="[object Object]",D="[object Promise]",I="[object Proxy]",B="[object RegExp]",F="[object Set]",j="[object String]",z="[object Symbol]",G="[object Undefined]",pe="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",ue="[object Int16Array]",oe="[object Int32Array]",ae="[object Uint8Array]",ge="[object Uint8ClampedArray]",re="[object Uint16Array]",ie="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,Se=/^\[object .+?Constructor\]$/,Le=/^(?:0|[1-9]\d*)$/,ne={};ne[V]=ne[Q]=ne[se]=ne[ue]=ne[oe]=ne[ae]=ne[ge]=ne[re]=ne[ie]=!0,ne[c]=ne[d]=ne[P]=ne[p]=ne[U]=ne[m]=ne[g]=ne[v]=ne[T]=ne[_]=ne[R]=ne[B]=ne[F]=ne[j]=ne[pe]=!1;var ve=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ke=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ve||ke||Function("return this")(),De=e&&!e.nodeType&&e,we=De&&!0&&r&&!r.nodeType&&r,_e=we&&we.exports===De,Ae=_e&&ve.process,$e=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),Fe=$e&&$e.isTypedArray;function Qe(O,J){for(var Ce=-1,rt=O==null?0:O.length,or=0,Kt=[];++Ce<rt;){var _r=O[Ce];J(_r,Ce,O)&&(Kt[or++]=_r)}return Kt}function Ue(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function et(O,J){for(var Ce=-1,rt=O==null?0:O.length;++Ce<rt;)if(J(O[Ce],Ce,O))return!0;return!1}function ct(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function Ct(O){return function(J){return O(J)}}function It(O,J){return O.has(J)}function Je(O,J){return O==null?void 0:O[J]}function Ke(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function ft(O,J){return function(Ce){return O(J(Ce))}}function gt(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var Ne=Array.prototype,Xe=Function.prototype,vt=Object.prototype,Nt=Pe["__core-js_shared__"],xt=Xe.toString,Lt=vt.hasOwnProperty,Qt=function(){var O=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Ut=vt.toString,fr=RegExp("^"+xt.call(Lt).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=_e?Pe.Buffer:void 0,cr=Pe.Symbol,Te=Pe.Uint8Array,le=vt.propertyIsEnumerable,st=Ne.splice,yt=cr?cr.toStringTag:void 0,nt=Object.getOwnPropertySymbols,pt=hr?hr.isBuffer:void 0,ht=ft(Object.keys,Object),Ft=Gt(Pe,"DataView"),Ve=Gt(Pe,"Map"),at=Gt(Pe,"Promise"),lt=Gt(Pe,"Set"),_t=Gt(Pe,"WeakMap"),Ot=Gt(Object,"create"),Bt=dn(Ft),Wt=dn(Ve),Yt=dn(at),ir=dn(lt),zt=dn(_t),xr=cr?cr.prototype:void 0,jr=xr?xr.valueOf:void 0;function Ye(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function ee(){this.__data__=Ot?Ot(null):{},this.size=0}function be(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function ze(O){var J=this.__data__;if(Ot){var Ce=J[O];return Ce===n?void 0:Ce}return Lt.call(J,O)?J[O]:void 0}function Tt(O){var J=this.__data__;return Ot?J[O]!==void 0:Lt.call(J,O)}function jt(O,J){var Ce=this.__data__;return this.size+=this.has(O)?0:1,Ce[O]=Ot&&J===void 0?n:J,this}Ye.prototype.clear=ee,Ye.prototype.delete=be,Ye.prototype.get=ze,Ye.prototype.has=Tt,Ye.prototype.set=jt;function Dt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__=[],this.size=0}function Jt(O){var J=this.__data__,Ce=Fn(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():st.call(J,Ce,1),--this.size,!0}function kt(O){var J=this.__data__,Ce=Fn(J,O);return Ce<0?void 0:J[Ce][1]}function xe(O){return Fn(this.__data__,O)>-1}function ot(O,J){var Ce=this.__data__,rt=Fn(Ce,O);return rt<0?(++this.size,Ce.push([O,J])):Ce[rt][1]=J,this}Dt.prototype.clear=er,Dt.prototype.delete=Jt,Dt.prototype.get=kt,Dt.prototype.has=xe,Dt.prototype.set=ot;function wt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function yr(){this.size=0,this.__data__={hash:new Ye,map:new(Ve||Dt),string:new Ye}}function Br(O){var J=Ht(this,O).delete(O);return this.size-=J?1:0,J}function lr(O){return Ht(this,O).get(O)}function br(O){return Ht(this,O).has(O)}function tn(O,J){var Ce=Ht(this,O),rt=Ce.size;return Ce.set(O,J),this.size+=Ce.size==rt?0:1,this}wt.prototype.clear=yr,wt.prototype.delete=Br,wt.prototype.get=lr,wt.prototype.has=br,wt.prototype.set=tn;function sn(O){var J=-1,Ce=O==null?0:O.length;for(this.__data__=new wt;++J<Ce;)this.add(O[J])}function Pn(O){return this.__data__.set(O,n),this}function Hr(O){return this.__data__.has(O)}sn.prototype.add=sn.prototype.push=Pn,sn.prototype.has=Hr;function rn(O){var J=this.__data__=new Dt(O);this.size=J.size}function kn(){this.__data__=new Dt,this.size=0}function Bn(O){var J=this.__data__,Ce=J.delete(O);return this.size=J.size,Ce}function _o(O){return this.__data__.get(O)}function Do(O){return this.__data__.has(O)}function Oo(O,J){var Ce=this.__data__;if(Ce instanceof Dt){var rt=Ce.__data__;if(!Ve||rt.length<t-1)return rt.push([O,J]),this.size=++Ce.size,this;Ce=this.__data__=new wt(rt)}return Ce.set(O,J),this.size=Ce.size,this}rn.prototype.clear=kn,rn.prototype.delete=Bn,rn.prototype.get=_o,rn.prototype.has=Do,rn.prototype.set=Oo;function zn(O,J){var Ce=io(O),rt=!Ce&&Kn(O),or=!Ce&&!rt&&yi(O),Kt=!Ce&&!rt&&!or&&ti(O),_r=Ce||rt||or||Kt,kr=_r?ct(O.length,String):[],Cr=kr.length;for(var Mr in O)Lt.call(O,Mr)&&!(_r&&(Mr=="length"||or&&(Mr=="offset"||Mr=="parent")||Kt&&(Mr=="buffer"||Mr=="byteLength"||Mr=="byteOffset")||In(Mr,Cr)))&&kr.push(Mr);return kr}function Fn(O,J){for(var Ce=O.length;Ce--;)if(Ao(O[Ce][0],J))return Ce;return-1}function Cn(O,J,Ce){var rt=J(O);return io(O)?rt:Ue(rt,Ce(O))}function oo(O){return O==null?O===void 0?G:A:yt&&yt in Object(O)?Vt(O):No(O)}function mn(O){return ao(O)&&oo(O)==c}function An(O,J,Ce,rt,or){return O===J?!0:O==null||J==null||!ao(O)&&!ao(J)?O!==O&&J!==J:k(O,J,Ce,rt,An,or)}function k(O,J,Ce,rt,or,Kt){var _r=io(O),kr=io(J),Cr=_r?d:an(O),Mr=kr?d:an(J);Cr=Cr==c?R:Cr,Mr=Mr==c?R:Mr;var fn=Cr==R,$n=Mr==R,nn=Cr==Mr;if(nn&&yi(O)){if(!yi(J))return!1;_r=!0,fn=!1}if(nn&&!fn)return Kt||(Kt=new rn),_r||ti(O)?qe(O,J,Ce,rt,or,Kt):Be(O,J,Cr,Ce,rt,or,Kt);if(!(Ce&o)){var Vr=fn&&Lt.call(O,"__wrapped__"),hn=$n&&Lt.call(J,"__wrapped__");if(Vr||hn){var po=Vr?O.value():O,Eo=hn?J.value():J;return Kt||(Kt=new rn),or(po,Eo,Ce,rt,Kt)}}return nn?(Kt||(Kt=new rn),tt(O,J,Ce,rt,or,Kt)):!1}function $(O){if(!so(O)||ho(O))return!1;var J=Hn(O)?fr:Se;return J.test(dn(O))}function X(O){return ao(O)&&Bi(O.length)&&!!ne[oo(O)]}function ce(O){if(!Zn(O))return ht(O);var J=[];for(var Ce in Object(O))Lt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function qe(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=O.length,Cr=J.length;if(kr!=Cr&&!(_r&&Cr>kr))return!1;var Mr=Kt.get(O);if(Mr&&Kt.get(J))return Mr==J;var fn=-1,$n=!0,nn=Ce&i?new sn:void 0;for(Kt.set(O,J),Kt.set(J,O);++fn<kr;){var Vr=O[fn],hn=J[fn];if(rt)var po=_r?rt(hn,Vr,fn,J,O,Kt):rt(Vr,hn,fn,O,J,Kt);if(po!==void 0){if(po)continue;$n=!1;break}if(nn){if(!et(J,function(Eo,Xn){if(!It(nn,Xn)&&(Vr===Eo||or(Vr,Eo,Ce,rt,Kt)))return nn.push(Xn)})){$n=!1;break}}else if(!(Vr===hn||or(Vr,hn,Ce,rt,Kt))){$n=!1;break}}return Kt.delete(O),Kt.delete(J),$n}function Be(O,J,Ce,rt,or,Kt,_r){switch(Ce){case U:if(O.byteLength!=J.byteLength||O.byteOffset!=J.byteOffset)return!1;O=O.buffer,J=J.buffer;case P:return!(O.byteLength!=J.byteLength||!Kt(new Te(O),new Te(J)));case p:case m:case _:return Ao(+O,+J);case g:return O.name==J.name&&O.message==J.message;case B:case j:return O==J+"";case T:var kr=Ke;case F:var Cr=rt&o;if(kr||(kr=gt),O.size!=J.size&&!Cr)return!1;var Mr=_r.get(O);if(Mr)return Mr==J;rt|=i,_r.set(O,J);var fn=qe(kr(O),kr(J),rt,or,Kt,_r);return _r.delete(O),fn;case z:if(jr)return jr.call(O)==jr.call(J)}return!1}function tt(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=Et(O),Cr=kr.length,Mr=Et(J),fn=Mr.length;if(Cr!=fn&&!_r)return!1;for(var $n=Cr;$n--;){var nn=kr[$n];if(!(_r?nn in J:Lt.call(J,nn)))return!1}var Vr=Kt.get(O);if(Vr&&Kt.get(J))return Vr==J;var hn=!0;Kt.set(O,J),Kt.set(J,O);for(var po=_r;++$n<Cr;){nn=kr[$n];var Eo=O[nn],Xn=J[nn];if(rt)var Fi=_r?rt(Xn,Eo,nn,J,O,Kt):rt(Eo,Xn,nn,O,J,Kt);if(!(Fi===void 0?Eo===Xn||or(Eo,Xn,Ce,rt,Kt):Fi)){hn=!1;break}po||(po=nn=="constructor")}if(hn&&!po){var ri=O.constructor,vn=J.constructor;ri!=vn&&"constructor"in O&&"constructor"in J&&!(typeof ri=="function"&&ri instanceof ri&&typeof vn=="function"&&vn instanceof vn)&&(hn=!1)}return Kt.delete(O),Kt.delete(J),hn}function Et(O){return Cn(O,zr,Rr)}function Ht(O,J){var Ce=O.__data__;return Mn(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Gt(O,J){var Ce=Je(O,J);return $(Ce)?Ce:void 0}function Vt(O){var J=Lt.call(O,yt),Ce=O[yt];try{O[yt]=void 0;var rt=!0}catch{}var or=Ut.call(O);return rt&&(J?O[yt]=Ce:delete O[yt]),or}var Rr=nt?function(O){return O==null?[]:(O=Object(O),Qe(nt(O),function(J){return le.call(O,J)}))}:Ir,an=oo;(Ft&&an(new Ft(new ArrayBuffer(1)))!=U||Ve&&an(new Ve)!=T||at&&an(at.resolve())!=D||lt&&an(new lt)!=F||_t&&an(new _t)!=pe)&&(an=function(O){var J=oo(O),Ce=J==R?O.constructor:void 0,rt=Ce?dn(Ce):"";if(rt)switch(rt){case Bt:return U;case Wt:return T;case Yt:return D;case ir:return F;case zt:return pe}return J});function In(O,J){return J=J??a,!!J&&(typeof O=="number"||Le.test(O))&&O>-1&&O%1==0&&O<J}function Mn(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function ho(O){return!!Qt&&Qt in O}function Zn(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||vt;return O===Ce}function No(O){return Ut.call(O)}function dn(O){if(O!=null){try{return xt.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O,J){return O===J||O!==O&&J!==J}var Kn=mn(function(){return arguments}())?mn:function(O){return ao(O)&&Lt.call(O,"callee")&&!le.call(O,"callee")},io=Array.isArray;function Pi(O){return O!=null&&Bi(O.length)&&!Hn(O)}var yi=pt||Fr;function bi(O,J){return An(O,J)}function Hn(O){if(!so(O))return!1;var J=oo(O);return J==v||J==w||J==h||J==I}function Bi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function so(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function ao(O){return O!=null&&typeof O=="object"}var ti=Fe?Ct(Fe):X;function zr(O){return Pi(O)?zn(O):ce(O)}function Ir(){return[]}function Fr(){return!1}r.exports=bi}(fh,fh.exports)),fh.exports}var yp={},$0;function B9(){if($0)return yp;$0=1,Object.defineProperty(yp,"__esModule",{value:!0});const r=kC(),e=IC();var t;return function(n){function o(d={},h={},p=!1){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});let m=r(h);p||(m=Object.keys(m).reduce((g,v)=>(m[v]!=null&&(g[v]=m[v]),g),{}));for(const g in d)d[g]!==void 0&&h[g]===void 0&&(m[g]=d[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(d={},h={}){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});const p=Object.keys(d).concat(Object.keys(h)).reduce((m,g)=>(e(d[g],h[g])||(m[g]=h[g]===void 0?null:h[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(d={},h={}){d=d||{};const p=Object.keys(h).reduce((m,g)=>(h[g]!==d[g]&&d[g]!==void 0&&(m[g]=h[g]),m),{});return Object.keys(d).reduce((m,g)=>(d[g]!==h[g]&&h[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(d,h,p=!1){if(typeof d!="object")return h;if(typeof h!="object")return;if(!p)return h;const m=Object.keys(h).reduce((g,v)=>(d[v]===void 0&&(g[v]=h[v]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),yp.default=t,yp}var bp={},q0;function MC(){if(q0)return bp;q0=1,Object.defineProperty(bp,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),bp.default=r,bp}var xp={},U0;function F9(){if(U0)return xp;U0=1,Object.defineProperty(xp,"__esModule",{value:!0});const r=MC();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return xp.default=e,xp}var W0;function j9(){return W0||(W0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=P9(),n=kC(),o=IC(),i=B9();e.AttributeMap=i.default;const a=MC();e.Op=a.default;const c=F9();e.OpIterator=c.default;const d="\0",h=(m,g)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(g)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(g)[0]}`);return[v,m[v],g[v]]};class p{constructor(g){Array.isArray(g)?this.ops=g:g!=null&&Array.isArray(g.ops)?this.ops=g.ops:this.ops=[]}static registerEmbed(g,v){this.handlers[g]=v}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const v=this.handlers[g];if(!v)throw new Error(`no handlers for embed type "${g}"`);return v}insert(g,v){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,v){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(g){let v=this.ops.length,w=this.ops[v-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(g),this;if(o(g.attributes,w.attributes)){if(typeof g.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this}}return v===this.ops.length?this.ops.push(g):this.ops.splice(v,0,g),this}chop(){const g=this.ops[this.ops.length-1];return g&&typeof g.retain=="number"&&!g.attributes&&this.ops.pop(),this}filter(g){return this.ops.filter(g)}forEach(g){this.ops.forEach(g)}map(g){return this.ops.map(g)}partition(g){const v=[],w=[];return this.forEach(T=>{(g(T)?v:w).push(T)}),[v,w]}reduce(g,v){return this.ops.reduce(g,v)}changeLength(){return this.reduce((g,v)=>v.insert?g+a.default.length(v):v.delete?g-v.delete:g,0)}length(){return this.reduce((g,v)=>g+a.default.length(v),0)}slice(g=0,v=1/0){const w=[],T=new c.default(this.ops);let _=0;for(;_<v&&T.hasNext();){let A;_<g?A=T.next(g-_):(A=T.next(v-_),w.push(A)),_+=a.default.length(A)}return new p(w)}compose(g){const v=new c.default(this.ops),w=new c.default(g.ops),T=[],_=w.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){let R=_.retain;for(;v.peekType()==="insert"&&v.peekLength()<=R;)R-=v.peekLength(),T.push(v.next());_.retain-R>0&&w.next(_.retain-R)}const A=new p(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")A.push(w.next());else if(v.peekType()==="delete")A.push(v.next());else{const R=Math.min(v.peekLength(),w.peekLength()),D=v.next(R),I=w.next(R);if(I.retain){const B={};if(typeof D.retain=="number")B.retain=typeof I.retain=="number"?R:I.retain;else if(typeof I.retain=="number")D.retain==null?B.insert=D.insert:B.retain=D.retain;else{const j=D.retain==null?"insert":"retain",[z,G,pe]=h(D[j],I.retain),P=p.getHandler(z);B[j]={[z]:P.compose(G,pe,j==="retain")}}const F=i.default.compose(D.attributes,I.attributes,typeof D.retain=="number");if(F&&(B.attributes=F),A.push(B),!w.hasNext()&&o(A.ops[A.ops.length-1],B)){const j=new p(v.rest());return A.concat(j).chop()}}else typeof I.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&A.push(I)}return A.chop()}concat(g){const v=new p(this.ops.slice());return g.ops.length>0&&(v.push(g.ops[0]),v.ops=v.ops.concat(g.ops.slice(1))),v}diff(g,v){if(this.ops===g.ops)return new p;const w=[this,g].map(D=>D.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:d;const B=D===g?"on":"with";throw new Error("diff() called "+B+" non-document")}).join("")),T=new p,_=t(w[0],w[1],v,!0),A=new c.default(this.ops),R=new c.default(g.ops);return _.forEach(D=>{let I=D[1].length;for(;I>0;){let B=0;switch(D[0]){case t.INSERT:B=Math.min(R.peekLength(),I),T.push(R.next(B));break;case t.DELETE:B=Math.min(I,A.peekLength()),A.next(B),T.delete(B);break;case t.EQUAL:B=Math.min(A.peekLength(),R.peekLength(),I);const F=A.next(B),j=R.next(B);o(F.insert,j.insert)?T.retain(B,i.default.diff(F.attributes,j.attributes)):T.push(j).delete(B);break}I-=B}}),T.chop()}eachLine(g,v=`
|
165
|
+
`+vt:""}`)}Ke.length>0&&z([...j||[],...Ke])}},[z,re,n,t,F,j,h]),Oe=S.useCallback(()=>{var Je;return(Je=oe.current)==null?void 0:Je.click()},[]),we=S.useCallback(Je=>{const Ke=Je.target.files;Ke!=null&&Ke.length&&(De(Ke),ve())},[De,ve]),_e=S.useCallback(Je=>{if(a==null||a(Je),!z||!j)return;const Ke=Bu.getFileKey(Je),ft=j.filter(gt=>Bu.getFileKey(gt)!==Ke);z(ft),ve()},[a,z,j,ve]),Ae=S.useCallback(()=>{z&&(z([]),ve())},[z,ve]),$e=S.useCallback(Je=>{if(!o)return Promise.resolve();const Ke=Bu.getFileKey(Je);return ue.current[Ke]==="Loading"?Promise.resolve():(ie(Ke,"Loading"),new Promise(ft=>{o(Je,gt=>{ie(Ke,gt),ft()})}))},[o,ie]),Fe=S.useCallback(async()=>{if(j!=null&&j.length){if(U){const Je={...ue.current};j.forEach(Ke=>{Je[Bu.getFileKey(Ke)]="Loading"}),ue.current=Je,U(Je)}if(w){w(j,Je=>{if(U){const Ke={...ue.current,...Je};ue.current=Ke,U(Ke)}});return}for(const Je of j){if(!o)continue;const Ke=Bu.getFileKey(Je);await new Promise(ft=>{o(Je,gt=>{if(U){const Pe={...ue.current};Pe[Ke]=gt,ue.current=Pe,U(Pe)}ft()})})}}},[j,o,w,U]),Qe=S.useCallback(()=>{!(j!=null&&j.length)||!i||i(j)},[j,i]),Ue=S.useMemo(()=>{const Je=Ke=>(Ke.preventDefault(),Ke.stopPropagation(),Ke);return{onDragEnter:Ke=>{Je(Ke),!G&&!m&&Q(!0)},onDragOver:Ke=>{Je(Ke),!G&&!m&&Ke.dataTransfer&&(Ke.dataTransfer.dropEffect="copy")},onDragLeave:Ke=>{var gt;Je(Ke);const ft=(gt=ae.current)==null?void 0:gt.contains(Ke.relatedTarget);(!Ke.relatedTarget||!ft)&&Q(!1)},onDrop:Ke=>{var ft;Je(Ke),Q(!1),!G&&!m&&((ft=Ke.dataTransfer.files)!=null&&ft.length)&&De(Ke.dataTransfer.files)}}},[G,m,De]),et=S.useMemo(()=>{const Je=Ge.clsx(En.ButtonRenderer,"NoSelect");return{upload:Ke=>C.jsx(So,{className:Je,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:F.Delete,type:"Raw",onClick:()=>_e(Ke)}),loading:()=>C.jsx(So,{className:Je,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Ke=>C.jsx(N6,{baseClass:Je,errorClass:En.ErrorColor,errorCursorClass:En.ErrorCursor,file:Ke,resources:F,onDownload:$e}),download:Ke=>C.jsx(So,{className:Je,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:F.Download,type:"Raw",onClick:()=>$e(Ke)}),view:()=>null}},[F,_e,$e]),ct=S.useCallback((Je,Ke)=>{const ft=Se(Je),gt=Le(Je),Pe=()=>c==="Upload"?et.upload(Je):c==="View"?et.view():ft?et.loading():gt?et.error(Je):et.download(Je);return C.jsx(_v,{ButtonRenderer:Pe,className:Ge.clsx(En.FileChip,gt&&En.ErrorBorder),label:C.jsx("div",{className:En.FileChipContent,children:C.jsxs(Rn,{className:En.FileNameContainer,children:[C.jsx(el,{children:Je.name,className:Ge.clsx(gt&&En.ErrorColor)}),C.jsx("span",{children:$u(Je.size),className:En.FileSize})]})})},Ke)},[Se,Le,c,et]),Ct=S.useCallback(()=>C.jsx("div",{className:Ge.clsx(En.FileBox,G&&En.ErrorBorder,G&&En.ErrorColor,G&&En.ErrorCursor,ke&&En.Disabled,V&&!(j!=null&&j.length)&&En.FileBoxFullSize),...Ue,ref:ae,children:V?C.jsxs(Rn,{className:Ge.clsx("NoSelect"),style:{gap:4,display:j!=null&&j.length?"flex":"none"},children:[C.jsx(en,{icon:"FileDownload"}),C.jsx("span",{children:F["Drop file to select"]})]}):C.jsxs(Go,{className:Ge.clsx(En.SelectRenderer,"NoSelect"),isDisabled:G||m||ke,type:"Raw",onClick:Oe,children:[F["Insert File"],h&&` ${(j==null?void 0:j.length)||0} / ${h}`]})}),[G,ke,V,j==null?void 0:j.length,Ue,F,m,Oe,h]),It=S.useMemo(()=>{const Je=c==="Upload",Ke=c==="View",ft=Je?F["Delete All"]:F["Download All"],gt=Je?Ae:Fe,Pe=(j==null?void 0:j.some(Xe=>Se(Xe)))||!1;return C.jsxs(Rn,{className:En.LabelContainer,children:[I.label,c==="Upload"&&C.jsxs(el,{className:Ge.clsx(En.TotalFileSize,"NoSelect"),children:["(",C.jsx("span",{className:Ge.clsx(G&&En.ErrorColor),children:$u(ge)})," / ",$u(d),")"]}),!Ke&&C.jsx("span",{children:ft,className:Ge.clsx(En.LabelButton,"Label1",(ne||Pe)&&En.Disabled,Je&&En.Delete),onClick:!ne&&!Pe?gt:void 0}),i&&C.jsx("span",{children:F["Download List"]||"Download List",className:Ge.clsx(En.LabelButton,"Label1",!(j!=null&&j.length)&&En.Disabled),style:{marginLeft:"auto"},onClick:j!=null&&j.length?Qe:void 0})]})},[c,F,Ae,Fe,j,I.label,G,ge,d,ne,i,Qe,Se]);return c==="Download"&&!(j!=null&&j.length)?null:C.jsxs(Wc,{wrapId:A,wrapProps:R,labelProps:D,...I,label:It,children:[C.jsx("input",{ref:oe,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:we}),C.jsxs(Kr,{...B,className:Ge.clsx(En.AFileUploader,v),children:[C.jsxs(Rn,{className:En.ChipsContainer,children:[c==="Upload"&&Ct(),j==null?void 0:j.map(ct)]}),c==="Upload"&&C.jsx(Kr,{className:Ge.clsx(En.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ue,abaseRef:ae,onClick:Je=>Je.preventDefault(),children:!(j!=null&&j.length)&&C.jsxs(Rn,{style:{gap:4},children:[C.jsx(en,{icon:"FileDownload",size:"2xl"}),C.jsx("span",{children:F["Drop file to select"]})]})})]})]})},B6="_AFloatMenu_xco8u_1",F6="_Content_xco8u_10",T0={AFloatMenu:B6,Content:F6},gC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=bf.ES,width:h=137}=r,p=S.useMemo(()=>({content:j6,...t}),[t]),m=S.useMemo(()=>{const P={};return ar.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,v]=S.useState(null),w=S.useCallback(P=>{_w(P,D,d,o),v(P)},[d,o]),[T,_]=S.useState(!1),[A,R]=S.useState(!1),D=S.useRef(null),I=S.useCallback(P=>{R(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),B=S.useCallback(()=>{_(!1),R(!0),i==null||i()},[i]),F=S.useCallback(()=>R(!1),[]),j=S.useCallback(async P=>{const U=document.getElementById("root"),V=P.target,Q=D.current;!U||!Q||!V||!Q.contains(V)&&U.contains(V)&&(await(c==null?void 0:c(P)),B())},[B,c]);S.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",j),0),()=>document.removeEventListener("mousedown",j)},[T,j]);const z=S.useCallback(()=>{g&&w(g)},[w,g]);S.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",z),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",z),U=U.parentElement}},[g,T,z]),S.useEffect(()=>{if(T)return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[T,z]);const G=S.useCallback(P=>{P[0].intersectionRatio===0&&B()},[B]);S.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),S.useEffect(()=>{n&&(n.current={open:I,close:B})},[n,I,B]);const pe=S.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),B()},[T,a,B,m]);return!T&&!A?null:Ls.createPortal(C.jsx("div",{ref:D,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:F,children:ar.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:ue=Io.E,...oe}=V;return se?null:(Q=Or.getContent(V.content,{defKey:P,def:V}),S.createElement(Kr,{...oe,key:U,className:Ge.clsx(T0.Content,"Label2","IsClickable",oe.className),tooltipDirection:ue,onClick:ae=>{var ge;pe==null||pe(P),(ge=oe.onClick)==null||ge.call(oe,ae)}},Q))})}),document.body)},j6=r=>r.defKey;function z6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const mC={parseInt:z6},H6=`${Number.MAX_SAFE_INTEGER}`.length-1,$6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,p=S.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):H6,[n,o]),[m,g]=wn(i,""),v=S.useCallback(A=>{if(g)if(c&&A.startsWith("*"))g("*");else if(A==="")g("");else if(A==="-")g("-");else{A=A.replace(/[^0-9-]/g,"");try{const R=mC.parseInt(A);R!==void 0&&(n!==void 0&&R<n?g(`${n}`):o!==void 0&&R>o?g(`${o}`):g(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[g,c,n,o]),w=S.useRef(null),T=S.useCallback(A=>{var R;(R=w.current)==null||R.blur(),a==null||a(A)},[a]),_=S.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return C.jsx(Vc,{...h,autoComplete:"off",className:Ge.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:_,RightAddon:r.unit&&C.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},q6="_AListView_k7t2d_1",U6="_Row_k7t2d_10",W6="_Label_k7t2d_20",V6="_Content_k7t2d_30",up={AListView:q6,Row:U6,Label:W6,Content:V6},G6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,style:c,...d}=r,h=a?"":"var(--AListView_border-thin)",p=a?"":"var(--AListView_border-thick)",m=S.useMemo(()=>({content:Z6,label:Y6,...t}),[t]),g=S.useMemo(()=>{const v={};return ar.keys(e).forEach(w=>{const T=e[w],_={...m,...T};v[w]=_}),v},[m,e]);return C.jsx(Kr,{...d,className:Ge.clsx(up.AListView,d.className),style:{...c,borderTop:h},children:ar.map(g,([v])=>{const w={...m,...g[v]},T=Or.getContent(w.label,{defKey:v,item:n,def:w}),_=Or.getContent(w.content,{defKey:v,item:n||{[v]:""},def:w}),A=Or.getContent(w.bold||"label",{defKey:v,item:n,def:w});return C.jsxs("div",{className:up.Row,style:{height:o,borderBottom:h},children:[C.jsx("div",{className:Ge.clsx(up.Label,"NoSelect",A!=="content"&&"Bold"),style:{width:i,minWidth:i,maxWidth:i,borderLeft:p,paddingLeft:a?0:10},children:C.jsx(el,{children:T})}),C.jsx("div",{className:Ge.clsx(up.Content,A!=="label"&&"Bold"),style:{borderLeft:p,borderRight:p},children:C.jsx(el,{style:{width:"100%",padding:a?0:10},children:_})})]},v)})})},Y6=r=>r.defKey,Z6=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},K6="_ALoadingBorder_kwc1g_1",X6="_ProgressBar_kwc1g_9",J6="_IsLoading_kwc1g_15",Q6="_Cover_kwc1g_19",Zf={ALoadingBorder:K6,ProgressBar:X6,IsLoading:J6,Cover:Q6},Iv=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),C.jsxs("div",{className:Zf.ALoadingBorder,children:[C.jsx("div",{className:Ge.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),C.jsx("div",{className:Ge.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},eI="_Container_ez8dc_1",tI="_Option_ez8dc_7",rI="_RadioButton_ez8dc_14",nI="_InnerCircle_ez8dc_24",oI="_isChecked_ez8dc_29",Yd={Container:eI,Option:tI,RadioButton:rI,InnerCircle:nI,isChecked:oI},iI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=vC}=r,[c,d]=wn(t,e[0]);return C.jsx("div",{className:Yd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:d==null?void 0:d(h);return C.jsxs(Rn,{className:Ge.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[C.jsx(sI,{innerRadius:i,isChecked:c===h,radius:o},p),C.jsx(a,{option:h})]},p)})})},vC=({option:r})=>r,sI=({isChecked:r,radius:e,innerRadius:t})=>C.jsx(Kr,{className:Ge.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:C.jsx(Kr,{className:Ge.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),aI="_AMultiSelect_19uuu_1",lI="_Arrow_19uuu_15",cI="_Primary_19uuu_24",uI="_UnAvailable_19uuu_35",dI="_IsOpen_19uuu_35",fI="_Secondary_19uuu_42",hI="_Placeholder_19uuu_58",pI="_ValuesContainer_19uuu_63",gI="_Values_19uuu_63",mI="_Options_19uuu_82",vI="_Option_19uuu_82",yI="_Selected_19uuu_124",bI="_CheckBox_19uuu_131",Mi={AMultiSelect:aI,Arrow:lI,Primary:cI,UnAvailable:uI,IsOpen:dI,Secondary:fI,Placeholder:hI,ValuesContainer:pI,Values:gI,Options:mI,Option:vI,Selected:yI,CheckBox:bI},xI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=CI,OptionRenderer:c=SI,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[_,A]=wn(t,[]),[R,D]=S.useState(void 0),I=S.useRef(e),B=S.useRef(null),[F,j]=S.useState(!1),[z,G]=S.useState(!1),pe=S.useCallback(()=>G(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>j(!0),0),setTimeout(()=>fm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),U=S.useCallback(()=>{j(!1),G(!0),i==null||i()},[i]),V=S.useCallback(re=>{var ie;F?U():P(),setTimeout(()=>fm(T,w,e,d,h),0),(ie=g.onClick)==null||ie.call(g,re)},[w,g,e,F,U,P,d,h]),Q=S.useCallback(()=>{fm(T,w,e,d,h)},[w,e,d,h]);S.useEffect(()=>{if(!F||!w.current)return;const re=w.current;let ie=re.parentElement;for(;ie;)ie.addEventListener("scroll",Q),ie=ie.parentElement;return()=>{let he=re.parentElement;for(;he;)he.removeEventListener("scroll",Q),he=he.parentElement}},[w,F,Q]),S.useEffect(()=>{if(F)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[F,Q]);const se=S.useCallback(re=>{re[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!F)return;const re=new IntersectionObserver(se,{threshold:0});return w.current&&re.observe(w.current),()=>re.disconnect()},[w,F,se]);const ue=S.useCallback(re=>{const ie=re.target,he=w.current,Se=T.current;!he||!ie||!Se||!he.contains(ie)&&!Se.contains(ie)&&U()},[w,U]),oe=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(F)return setTimeout(()=>document.addEventListener("mousedown",ue),0),()=>document.removeEventListener("mousedown",ue)},[F,ue]);const ae=S.useCallback((re,ie)=>{re.stopPropagation(),re.preventDefault();let he=[..._];he.includes(ie)?he=he.filter(Se=>Se!==ie):he.push(ie),A==null||A(he)},[_,A]),ge=S.useCallback(()=>{if(!m||!w.current)return;const re=Hu.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ie=>c({option:ie}),type:n,isMulti:!0});D(re)},[m,w,e,_,o,c,n]);return S.useEffect(()=>m?((e!==I.current||R===void 0)&&(B.current!==null&&cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{ge(),B.current=null,I.current=[...e]})),()=>{B.current!==null&&(cancelAnimationFrame(B.current),B.current=null)}):void 0,[m,e,ge,R]),S.useEffect(()=>()=>{typeof Hu.clearCache=="function"&&Hu.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Kr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ge.clsx(g.className,Mi.AMultiSelect,"NoSelect",F&&Mi.IsOpen,oe&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:Mi.ValuesContainer,children:C.jsx("div",{className:Ge.clsx(Mi.Values,_.length<1&&Mi.Placeholder),children:C.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),C.jsx("div",{...p,className:Ge.clsx(Mi.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:F?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(F||z)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ge.clsx(Mi.Options,Mi[n]),style:{opacity:+F,visibility:F?"visible":"hidden",pointerEvents:F?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:pe,children:e.map((re,ie)=>{var Se;const he=_.includes(re);return C.jsxs("div",{className:Ge.clsx(Mi.Option,he&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Se=w.current)==null?void 0:Se.getBoundingClientRect().height},onClick:Le=>ae(Le,re),children:[C.jsx(af,{className:Mi.CheckBox,useCheck:[+he,void 0]}),C.jsx(c,{option:re})]},ie)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=wI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function wI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const CI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?C.jsx(e,{option:t[0]}):`${t.length} selected`},SI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},_I="_Container_10ion_1",AI="_Steps_10ion_9",EI="_Step_10ion_9",TI="_OutCircle_10ion_26",RI="_IsOver_10ion_37",kI="_InCircle_10ion_41",II="_Line_10ion_54",MI="_Left_10ion_66",LI="_Right_10ion_69",DI="_ContentContainer_10ion_73",OI="_Content_10ion_73",fi={Container:_I,Steps:AI,Step:EI,OutCircle:TI,IsOver:RI,InCircle:kI,Line:II,Left:MI,Right:LI,ContentContainer:DI,Content:OI},NI=r=>{const{useSelect:e,steps:t,StepRenderer:n=R0,ContentRenderer:o=R0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=S.useRef(null),[a,c]=wn(e,t[0]),d=S.useCallback(p=>c==null?void 0:c(p),[c]),h=S.useMemo(()=>t.indexOf(a),[a,t]);return S.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),C.jsxs("div",{className:fi.Container,children:[C.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return C.jsxs("div",{className:fi.Step,children:[m!==0&&C.jsx("div",{className:Ge.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&C.jsx("div",{className:Ge.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),C.jsx(Go,{className:Ge.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>d(p),children:C.jsx("div",{className:Ge.clsx(fi.InCircle,v&&fi.IsOver)})}),C.jsx(n,{step:p,stepIdx:g})]},m)})}),C.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return C.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:C.jsx(o,{step:p,stepIdx:g})},m)})})]})},R0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},PI="_ATab_2c2d2_1",BI="_Option_2c2d2_9",FI="_Underline_2c2d2_23",jI="_IsSelected_2c2d2_23",zI="_IndicatorTrack_2c2d2_34",HI="_Indicator_2c2d2_34",$I="_Primary_2c2d2_50",qI="_Secondary_2c2d2_57",UI="_IsDisabled_2c2d2_67",WI="_Tertiary_2c2d2_81",VI="_Quaternary_2c2d2_111",Rc={ATab:PI,Option:BI,Underline:FI,IsSelected:jI,IndicatorTrack:zI,Indicator:HI,Primary:$I,Secondary:qI,IsDisabled:UI,Tertiary:WI,Quaternary:VI},GI=["Primary","Secondary","Tertiary","Quaternary"],yC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=YI,RightAddon:h,color:p,selectedColor:m,underline:g,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=S.useMemo(()=>e.findIndex(ie=>!(n!=null&&n(ie))),[e,n]),_=o==="Tertiary"?2:0,A=o==="Secondary"?8:0,R=S.useMemo(()=>_+A,[_,A]),D=o==="Tertiary"?2:0,I=S.useMemo(()=>(A-_-D-D)/e.length,[e.length,_,A,D]),[B,F]=wn(t,e[T]),j=S.useRef([]),z=S.useCallback(ie=>F==null?void 0:F(ie),[F]),G=S.useMemo(()=>typeof c=="number"?c+"px":c,[c]),pe=S.useMemo(()=>e.indexOf(B),[e,B]),P=S.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),U=S.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=S.useState(0),[se,ue]=S.useState(0),[oe,ae]=S.useState(U),ge=S.useMemo(()=>{let ie;switch(G){case void 0:ie=`calc(${P} * ${pe})`;break;case"fit-content":ie=`calc(${V}px)`;break;default:ie=`calc((${G} + ${R}px) * ${pe})`;break}return`calc(${ie} + ${D}px)`},[G,D,P,pe,V,R]),re=S.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${se}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,se]);return S.useEffect(()=>{var he,Se;if(e.includes(B)||F==null||F(e[T]),G!=="fit-content"){ae(U);return}let ie=0;j.current.forEach((Le,ne)=>{ne<pe&&Le.current&&(ie+=Le.current.offsetWidth+R)}),Q(ie),ae(`calc(${((Se=(he=j.current[pe])==null?void 0:he.current)==null?void 0:Se.offsetWidth)||0}px)`),ue(j.current.reduce((Le,ne)=>{var ve;return Le+((((ve=ne.current)==null?void 0:ve.offsetWidth)||0)+R-I)},0))},[G,j,e,B,F,T,I,R,pe,U]),C.jsxs("div",{...i,className:Ge.clsx(Rc.ATab,"Headline2",Rc[o],i==null?void 0:i.className),children:[C.jsx("div",{...v,className:Ge.clsx(Rc.Indicator,v==null?void 0:v.className),style:{minWidth:oe,left:ge,marginLeft:_,...v==null?void 0:v.style}}),C.jsx("div",{...w,className:Ge.clsx(Rc.IndicatorTrack,w==null?void 0:w.className),style:{width:re,...w==null?void 0:w.style}}),C.jsx(Nn,{w:D}),e.map((ie,he)=>{const Se=n==null?void 0:n(ie);return j.current[he]||(j.current[he]=S.createRef()),C.jsx(Kr,{abaseRef:j.current[he],...a,isDisabled:Se,className:Ge.clsx(Rc.Option,Se&&Rc.IsDiabled,ie===B&&Rc.IsSelected,"IsClickable",g&&Rc.Underline,a==null?void 0:a.className),style:{minWidth:U,maxWidth:U,marginLeft:_,marginRight:A,"--color":ie===B&&m||p,...a==null?void 0:a.style},onClick:Le=>{!Se&&z(ie),a&&a.onClick&&a.onClick(Le)},children:C.jsx(d,{option:ie})},he)}),C.jsx(Nn,{w:D+D+_}),h&&C.jsxs(C.Fragment,{children:[C.jsx(Ku,{}),h]})]})},YI=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function bC(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const xC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Or.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Or.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Or.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Or.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.eq(p,o)}const h=Or.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Or.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.be(o.sDate,p,o.eDate)}const h=Or.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.be(o.sDate,p,o.eDate)}return!1}},ZI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??xC[a.type])==null?void 0:d(c,e,i,a)}))}),n},KI=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Or.getContent(o.content,{defKey:n,def:o,item:a}),h=Or.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},XI=(r,e,t)=>r.slice((e-1)*t,e*t),wC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},JI=(r,e,t,n)=>{const o=wC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},QI=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Or.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Or.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const _=t[T],A=Or.getContent(_.content,{defKey:T,def:_,item:g});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const R=g[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
|
166
|
+
`),h=new Blob([d],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(h),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},e8=r=>{const e=ar.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},t8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},r8=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Pl={applyFilteration:ZI,applySortation:KI,applyPagination:XI,getPages:wC,getRangedPages:JI,downloadCsv:QI,getSingleFilterValue:e8,getMultiFilterValues:t8,getSelectFilterValue:r8},n8="_ATable_12zow_1",o8={ATable:n8};function CC(r,e,t,n){S.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const i8="_BodyHeader_ys4y0_1",s8="_TRow_ys4y0_7",a8="_OverflowSpace_ys4y0_11",l8="_BodyBody_ys4y0_16",c8="_IsSelected_ys4y0_35",u8="_IsSelectable_ys4y0_39",d8="_IsRowMarked_ys4y0_47",f8="_TH_ys4y0_52",h8="_TD_ys4y0_57",p8="_IsMarked_ys4y0_57",g8="_Resizer_ys4y0_76",m8="_IsMoving_ys4y0_88",v8="_IsResizable_ys4y0_91",y8="_ResizerCenter_ys4y0_94",b8="_ResizerOut_ys4y0_100",x8="_ResizerIn_ys4y0_104",w8="_IsClicked_ys4y0_139",C8="_NoItems_ys4y0_146",S8="_Content_ys4y0_152",Dn={BodyHeader:i8,TRow:s8,OverflowSpace:a8,BodyBody:l8,IsSelected:c8,IsSelectable:u8,IsRowMarked:d8,TH:f8,TD:h8,IsMarked:p8,Resizer:g8,IsMoving:m8,IsResizable:v8,ResizerCenter:y8,ResizerOut:b8,ResizerIn:x8,IsClicked:w8,NoItems:C8,Content:S8},Bc=25,hm=50,_8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:d,useSortation:h,pagination:p,pagedItems:m,noMarking:g,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:_=T8,isRowRendered:A,rowHeight:R,resources:D}=r,[I,B]=S.useMemo(()=>o??[],[o]),F=S.useCallback(Ue=>{i||!B||!I||c!=null&&c(Ue)||(a?I.some(et=>t(et,Ue))?B(I.filter(et=>!t(et,Ue))):B([...I,Ue]):B([Ue]))},[I,c,B,t,i,a]);S.useEffect(()=>{a||!I||!B||I.length>1&&B([I[I.length-1]])},[I,B,a]),S.useEffect(()=>{if(!I||!B)return;I.filter(et=>c==null?void 0:c(et)).length>0&&B(I.filter(et=>!(c!=null&&c(et))))},[I,B,c]);const[j,z]=h,G=S.useCallback((Ue,et)=>{z&&((j==null?void 0:j.defKey)===Ue?j.isAsc===!0?z({defKey:Ue,isAsc:!1,sortF:et}):j.isAsc===!1?z(void 0):z({defKey:Ue,isAsc:!0,sortF:et}):z({defKey:Ue,isAsc:!0,sortF:et}))},[j,z]),[pe,P]=S.useState({elem:null,row:null}),U=S.useRef(null),V=S.useRef(null),Q=S.useCallback(()=>P({elem:U.current,row:V.current}),[]);S.useEffect(()=>Q(),[m.length,Q]),CC(window,"resize",Q);const[se,ue]=S.useState(R);S.useEffect(()=>{const{row:Ue}=pe;Ue!=null&&ue(Ue.clientHeight)},[pe,se]);const oe=S.useMemo(()=>{const{elem:Ue}=pe;return Ue?Math.floor(Ue.clientHeight/se):0},[pe,se]),ae=S.useMemo(()=>T||(m.length<=oe?oe:m.length),[oe,T,m]),ge=S.useMemo(()=>{if(T!==void 0)return T*se},[T,se]),re=S.useMemo(()=>ge,[ge]),ie=S.useMemo(()=>{const{elem:Ue}=pe;return Ue?Ue.getBoundingClientRect().height/se<m.length:!1},[pe,se,m.length]),[he,Se]=S.useState(),Le=S.useMemo(()=>{const{elem:Ue}=pe;return!he||!Ue?"100%":Ue.clientHeight+(A?0:50)},[he,A,pe]),ne=S.useRef(null),[ve,ke]=S.useState({}),De=S.useRef({x:0,y:0}),Oe=S.useRef({}),we=S.useMemo(()=>ar.keys(ve),[ve]),_e=S.useCallback((Ue,et)=>{const ct=ne.current;if(!ct)return;const Ct=[];ct.childNodes.forEach(ft=>{ft.classList.contains(Dn.TH)&&Ct.push(ft)});const It={};ar.keys(e).forEach((ft,gt)=>{const Pe=Ct[gt];if(!Pe)return;const Xe=Pe.getBoundingClientRect().width;It[ft]=Xe}),Oe.current=It,Se(et),De.current={x:Ue.clientX,y:Ue.clientY};const Je=ft=>{if(!ne.current)return;const Pe=ft.clientX-De.current.x,Xe=E8(e,et,Oe.current,Pe);ke(Xe)};document.addEventListener("mousemove",Je);const Ke=()=>{Se(void 0),document.removeEventListener("mousemove",Je),document.removeEventListener("mouseup",Ke)};document.addEventListener("mouseup",Ke)},[e]),Ae=S.useCallback(()=>{Se(void 0),ke({})},[]),$e=S.useMemo(()=>{if(we.length===0){const ct={},Ct=ar.keys(e);for(let It=0;It<Ct.length;It++){const Je=Ct[It],Ke=e[Je],ft=Or.getContent(Ke.colSpan,{defKey:Je,def:Ke}),gt=Ke.width??80,Pe=Ke.minWidth??Bc,Xe=Ke.maxWidth,vt={width:gt,minWidth:Pe,maxWidth:Xe,flexGrow:ft??1};if(ct[Je]=vt,ft!==void 0){for(let Nt=1;Nt<Math.min(ft,Ct.length-It);Nt++){const xt=e[Ct[It+Nt]],Lt=xt.width??80,Qt=xt.minWidth??Bc,Ut=xt.maxWidth;vt.width+=Lt,vt.minWidth+=Qt,vt.maxWidth!==void 0&&(Ut!==void 0?vt.maxWidth+=Ut:vt.maxWidth=void 0)}It+=ft-1}}return ct}const Ue={},et=ar.keys(e);for(let ct=0;ct<et.length;ct++){let Ct=et[ct];const It=e[Ct];let Je=ve[Ct];const Ke=Or.getContent(It.colSpan,{defKey:Ct,def:It}),ft=It.minWidth??Bc,gt=It.maxWidth,Pe={width:Je,minWidth:ft,maxWidth:gt,flexGrow:Ke??1};if(Ue[Ct]=Pe,Ke!==void 0){for(let Xe=1;Xe<Math.min(Ke,et.length-ct);Xe++){const vt=e[et[ct+Xe]],Nt=ve[et[ct+Xe]],xt=vt.minWidth??Bc,Lt=vt.maxWidth;Pe.width+=Nt,Pe.minWidth+=xt,Pe.maxWidth!==void 0&&(Lt!==void 0?Pe.maxWidth+=Lt:Pe.maxWidth=void 0)}ct+=Ke-1}}return Ue},[e,we,ve]),Fe=S.useRef(null),Qe=S.useMemo(()=>Pl.getSingleFilterValue(d),[d]);return S.useEffect(()=>{U.current&&U.current.scrollTo({top:0})},[p.page]),S.useEffect(()=>{A&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,A]),C.jsxs(C.Fragment,{children:[C.jsx(Iv,{isLoading:w}),C.jsx("div",{ref:Fe,className:Ge.clsx(Dn.BodyHeader,he!==void 0&&Dn.IsClicked),style:{display:v||A?"none":"flex"},children:C.jsx("div",{ref:ne,className:Dn.TRow,style:{minHeight:hm,maxHeight:hm},children:ar.map(e,([Ue],et)=>{const ct=e[Ue],Ct=Or.getContent(ct.hContent,{defKey:Ue,def:ct}),It=ct.name,Je=et===ar.keys(e).length-1,Ke=ct.width??80,ft=ct.minWidth??Bc,gt=ct.maxWidth,Pe={width:Ke,minWidth:ft,maxWidth:gt,justifyContent:Or.getContent(ct.hAlign,{defKey:Ue,def:ct})??"flex-start",...Or.getContent(ct.hStyle,{defKey:Ue,def:ct})};we.includes(Ue)&&(Pe.width=ve[Ue]);const Xe=ct.isSortable,vt=(j==null?void 0:j.defKey)===Ue,Nt=j==null?void 0:j.isAsc;return C.jsxs(S.Fragment,{children:[C.jsxs("div",{className:Ge.clsx(Dn.TH,"Label1",Xe?"IsClickable":"NoSelect"),style:Pe,onClick:()=>Xe&&G(Ue,ct.sortF),children:[C.jsx(el,{children:Ct??It,className:Dn.Content}),Xe&&C.jsx(en,{icon:vt?Nt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Je&&C.jsxs("div",{className:Ge.sclsx(Dn,"Resizer","IsResizable","NoSelect",he!==void 0&&"IsMoving"),onDoubleClick:Ae,onMouseDown:xt=>_e(xt,Ue),children:[C.jsx("div",{className:Dn.ResizerOut}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerCenter,style:{height:Le}}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerOut})]}),Je&&C.jsx(Nn,{className:Dn.OverflowSpace,h:hm,style:{color:Pe.color,backgroundColor:Pe.backgroundColor,transition:Pe.transition},w:"var(--Scrollbar-width)"})]},Ue)})})}),C.jsxs("div",{ref:U,className:Ge.clsx(Dn.BodyBody,he!==void 0&&Dn.IsClicked),style:{overflowY:ie?"scroll":"hidden",minHeight:ge,maxHeight:re},children:[m.map((Ue,et)=>{const ct=Or.getContent(n,{item:Ue}),Ct=B&&!i,It=I==null?void 0:I.some(gt=>t(gt,Ue)),Je=I&&(c==null?void 0:c(Ue)),Ke=typeof Je=="string"?Je:void 0,ft={...Ue};return A&&ar.keys(e).forEach(gt=>{const Pe=e[gt],Xe=Or.getContent(Pe.content,{defKey:gt,def:Pe,item:Ue});let vt=!1;if(Qe&&!g){const Nt=Or.getContent(Pe.asText,{defKey:gt,def:Pe,item:Ue});Nt!==void 0?vt=Nt.toString().toLowerCase().includes(Qe.toLowerCase()):["string","number"].includes(typeof Xe)&&Xe!==void 0&&Xe!==null&&(vt=Xe.toString().toLowerCase().includes(Qe.toLowerCase()))}ft[gt]=C.jsx("span",{className:Ge.clsx(vt&&Dn.IsRowMarked),children:ft[gt]})}),C.jsx(Kr,{isDisabled:Je,tooltip:Ke,...ct,abaseRef:It?V:void 0,className:Ge.clsx(ct==null?void 0:ct.className,Ct&&Dn.IsSelectable,It&&Dn.IsSelected),onClick:gt=>{var Pe;F(Ue),(Pe=ct==null?void 0:ct.onClick)==null||Pe.call(ct,gt)},children:C.jsx(_,{defs:e,isBodyBodyOverflowed:ie,item:Ue,markedItem:ft,noMarking:g,rowHeight:R,singleFilterValue:Qe,spanWidths:$e})},et)}),C.jsx(A8,{isRowRendered:A,itemsLength:m.length,resources:D,rowHeight:se,showRows:ae})]})]})},A8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=S.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,d)=>C.jsx("div",{className:Ge.clsx(Dn.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&d===Math.floor(e/2)&&C.jsx(Rn,{className:Dn.NoItems,children:n["No Items"]})},d))};function E8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,d=i;if(n<0){for(;n<0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=p.minWidth??Bc,w=g.maxWidth,T=o[h],_=o[m];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=-n;R=Math.min(R,A),T-R<=v&&c--,w!==void 0&&_+R>=w&&d++,o[h]=T-R,o[m]=_+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=g.minWidth??Bc,w=p.maxWidth,T=o[m],_=o[h];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=n;R=Math.min(R,A),T-R<=v&&d++,w!==void 0&&_+R>=w&&c--,o[m]=T-R,o[h]=_+R,n-=R}return o}return o}const T8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return C.jsx("div",{className:Ge.clsx(Dn.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([d],h)=>{const p=o[d];if(p===void 0)return null;const m=h===ar.keys(e).length-1,g=e[d],v=Or.getContent(g.content,{defKey:d,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Or.getContent(g.align,{defKey:d,def:g,item:t})??"flex-start",...Or.getContent(g.style,{defKey:d,def:g,item:t})};let T=!1;if(i&&!n){const _=Or.getContent(g.asText,{defKey:d,def:g,item:t});_!==void 0?T=_.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return C.jsxs(S.Fragment,{children:[C.jsx("div",{className:Ge.clsx(Dn.TD,"Label1",T&&Dn.IsMarked),style:w,children:C.jsx(el,{children:v,className:Dn.Content})}),!a&&m&&C.jsx(Nn,{className:Dn.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},d)})})},R8="_ATableFooter_w090q_1",k8="_Button_w090q_10",I8="_IsSelected_w090q_26",M8="_IsDisabled_w090q_31",oa={ATableFooter:R8,Button:k8,IsSelected:I8,IsDisabled:M8},L8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=S.useMemo(()=>e[e.length-1],[e]);return C.jsxs(Rn,{className:oa.ATableFooter,children:[C.jsx(en,{className:Ge.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),C.jsx(en,{className:Ge.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>C.jsx("div",{className:Ge.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),C.jsx(en,{className:Ge.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),C.jsx(en,{className:Ge.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},D8="_Filter_1b9j0_1",O8="_SelectFilter_1b9j0_11",N8="_MainFilter_1b9j0_15",P8="_IsOpen_1b9j0_26",B8="_SubFilters_1b9j0_30",F8="_Input_1b9j0_44",j8="_Main_1b9j0_15",z8="_Sub_1b9j0_30",H8="_Actions_1b9j0_62",$8="_Icon_1b9j0_67",q8="_LeftIcon_1b9j0_74",U8="_CircleAlertOutline_1b9j0_79",W8="_Rotate_1b9j0_87",Dr={Filter:D8,SelectFilter:O8,MainFilter:N8,IsOpen:P8,SubFilters:B8,Input:F8,Main:j8,Sub:z8,Actions:H8,Icon:$8,LeftIcon:q8,CircleAlertOutline:U8,Rotate:W8},V8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:d,placeholder:h}=r,[p,m]=S.useState([]),[g,v]=S.useMemo(()=>t,[t]),w=S.useMemo(()=>c==="Select",[c]),T=S.useMemo(()=>ar.keys(g).map(ne=>String(ne)),[g]),[_,A]=S.useState(w&&T.length>0?T[0]:null),R=S.useCallback((ne,ve,ke)=>{if(!v)return;const De={...g};ne.value=ve,v(De),m(Oe=>Oe.map((we,_e)=>_e===(ke?ke+1:0)?"":we))},[g,v]),D=S.useMemo(()=>{let ne=[],ve=ar.keys(g);w&&_&&(ve=ve.filter(ke=>ke===_));for(const ke of ve)ne.push({key:ke,def:e[ke],filter:g[ke]});return ne},[g,e,w,_]),I=S.useMemo(()=>D.length>0?D[0]:null,[D]),B=S.useMemo(()=>p.length>0?p[0]:"",[p]),F=S.useMemo(()=>D.length>1?D.slice(1):[],[D]),j=S.useMemo(()=>p.length>1?p.slice(1):[],[p]),z=S.useMemo(()=>F.length>0,[F]),[G,pe]=S.useState(!1),[P,U]=S.useState(!1),V=S.useRef(null),Q=S.useCallback(()=>pe(!1),[]),se=S.useRef(null),ue=S.useCallback(()=>{U(!1),pe(!0),se.current&&(document.removeEventListener("mousedown",se.current),se.current=null)},[]),oe=S.useCallback(()=>{const ne=ve=>{const ke=document.getElementById("root"),De=ve.target,Oe=V.current;!ke||!Oe||!De||!Oe.contains(De)&&ke.contains(De)&&ue()};return se.current=ne,ne},[ue]),ae=S.useCallback(()=>{pe(!0),U(!0),setTimeout(()=>{const ne=oe();document.addEventListener("mousedown",ne)},0)},[oe]),ge=S.useMemo(()=>P?ue:ae,[P,ae,ue]),re=S.useCallback(()=>{const ne=D.map((ve,ke)=>ve.filter.type==="String"&&ve.filter.validation?ve.filter.validation(ve.filter.value||""):ve.filter.type==="Date"&&ve.filter.validation||ve.filter.type==="DateRange"&&ve.filter.validation?ve.filter.validation(ve.filter.value):p[ke]);return m(ne),ne.every(ve=>!ve)},[p,D]),ie=S.useCallback(ne=>{ne.key==="Enter"?(re()&&o.apply(),ne.stopPropagation()):ne.key==="Escape"&&(U(!1),ne.currentTarget.focus(),ne.currentTarget.blur(),ne.stopPropagation())},[re,U,o]),he=S.useMemo(()=>({open:ae,close:ue,toggle:ge,validate:re}),[ae,ue,ge,re]),Se=S.useCallback(()=>{o.clear()},[o]),Le=S.useCallback(ne=>{if(!v||!ne)return;A(ne);const ve={...g};ar.keys(ve).forEach(ke=>{if(ke!==ne&&ve[ke])switch(ve[ke].type){case"String":ve[ke].value="";break;case"Select":ve[ke].value=null;break;case"Date":ve[ke].value=void 0;break;case"DateRange":ve[ke].value=void 0;break}}),m([]),v(ve),o.clear(),setTimeout(()=>{var De;const ke=(De=V.current)==null?void 0:De.querySelector("input");ke&&ke.focus()},0)},[g,v,m,o]);return I?C.jsxs(C.Fragment,{children:[w&&C.jsx(Gc,{isAutoWidth:!0,className:Ge.clsx(Dr.SelectFilter),options:T,type:"Secondary",useSelect:[_,Le],OptionRenderer:({option:ne})=>{const ve=e[ne];let ke;if(ve!=null&&ve.hContent){const De={defKey:ne,def:ve};ke=typeof ve.hContent=="function"?ve.hContent(De):ve.hContent}else{const De=g[ne],Oe=(ve==null?void 0:ve.name)||(De==null?void 0:De.placeholder)||String(ne);ke=C.jsx("span",{children:Oe})}return ke}}),C.jsxs("div",{ref:V,className:Ge.clsx(Dr.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:ie,onClick:ne=>{ne.preventDefault(),ne.stopPropagation()},children:[C.jsx(G8,{errorMessage:B,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:z,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:he,resources:d,onChange:R}),!w&&C.jsx(Y8,{errorMessages:j,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:d,subFilterSets:F,validate:re,onChange:R,onClearClick:Se,onTransitionEnd:Q})]})]}):null},G8=r=>{var g,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:d,resources:h,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const _=[e.filter.value??"",I=>o(e.filter,I)],A=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:R??"Type",isOpen:d,tooltip:D}),C.jsx(Vc,{autoFocus:e.filter.autoFocus,className:Ge.clsx(Dr.Input,Dr.Main),dataList:e.filter.dataList,LeftAddon:t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:A??h["Search(Placeholder)"],type:p?"Error":"Primary",useValue:_,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:C.jsx(fp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const _=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],A=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:R??"Menu",isOpen:d,tooltip:D}),C.jsx(Gc,{className:Ge.clsx(Dr.Input,Dr.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:A,useSelect:_,SelectedRenderer:({OptionRenderer:I,selectedOption:B})=>B===null?A||e.filter.placeholder:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),C.jsx(I,{option:B}),C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:d,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const _=[e.filter.value,I=>o(e.filter,I)],A=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:R??"CalendarDay",isOpen:d,tooltip:D}),C.jsx(Rv,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:A,type:"Raw",useDate:_,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Nn,{w:d?0:6}),C.jsx(Ga,{icon:R??"CalendarDay",isOpen:!d,tooltip:D}),C.jsx(Nn,{w:d?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const _=[e.filter.value,B=>o(e.filter,B)],{noDefaultChoices:A}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,I=e.filter.iconTooltip??R;return C.jsxs("div",{className:Ge.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[C.jsx(Ga,{icon:D??"CalendarDay",isOpen:d,tooltip:I}),C.jsx(Ev,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:A,placeholder:R,type:"Raw",useDateRange:_,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Nn,{w:d?0:6}),C.jsx(Ga,{icon:D??"CalendarDay",isOpen:!d,tooltip:I}),C.jsx(Nn,{w:d?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}return null},dp=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return C.jsx(So,{className:Dr.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Dr.Rotate),onClick:i=>{i.currentTarget.classList.add(Dr.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},fp=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:d}=r,h=S.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=S.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=S.useCallback(g=>{g.stopPropagation(),t.validate()&&d.apply()},[t,d]);return C.jsxs(S.Fragment,{children:[i&&C.jsx(So,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&C.jsx(So,{className:Dr.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&C.jsx(So,{className:Dr.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&C.jsx(So,{className:Dr.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},Y8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:d,placeholder:h,filterF:p,validate:m}=r;return!o&&!i?null:C.jsxs("div",{className:Dr.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,v)=>{var w,T,_,A;if(g.filter.type==="String"){const R=[g.filter.value??"",j=>t(g.filter,j,v)],D=d[v],I=h??g.filter.placeholder??((w=g.def)==null?void 0:w.name),B=g.filter.icon,F=g.filter.iconTooltip??I;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:B??"Type",tooltip:F}),C.jsx(Vc,{autoFocus:g.filter.autoFocus,className:Ge.clsx(Dr.Input,Dr.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&C.jsx(So,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Select"){const R=[g.filter.value??null,F=>t(g.filter,F)],D=h??g.filter.placeholder??((T=g.def)==null?void 0:T.name),I=g.filter.icon,B=g.filter.iconTooltip??D;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:I??"Menu",tooltip:B}),C.jsx(Gc,{arrowProps:{style:{marginRight:4}},className:Ge.clsx(Dr.Input,Dr.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:D,type:"Secondary",useSelect:R}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Date"){const R=[g.filter.value,F=>t(g.filter,F)],D=h??g.filter.placeholder??((_=g.def)==null?void 0:_.name),I=g.filter.icon,B=g.filter.iconTooltip??D;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:I??"CalendarDay",tooltip:B}),C.jsx(Rv,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:C.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:D,type:"Raw",useDate:R}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="DateRange"){const R=[g.filter.value,j=>t(g.filter,j)],{noDefaultChoices:D}=g.filter,I=h??g.filter.placeholder??((A=g.def)==null?void 0:A.name),B=g.filter.icon,F=g.filter.iconTooltip??I;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:B??"CalendarDay",tooltip:F}),C.jsx(Ev,{className:Ge.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:C.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:D,placeholder:I,type:"Raw",useDateRange:R})]},v)}else return null}),C.jsxs(Rn,{className:Dr.Actions,children:[C.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),C.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ga=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return C.jsx(So,{className:Dr.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},Z8="_ATableHeader_1hzfz_1",K8="_LeftHeaderContent_1hzfz_11",X8="_RightHeaderContent_1hzfz_19",J8="_TopRightAddon_1hzfz_27",Q8="_HItem_1hzfz_32",Nu={ATableHeader:Z8,LeftHeaderContent:K8,RightHeaderContent:X8,TopRightAddon:J8,HItem:Q8},e9=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:d,noCount:h,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:_}=r,[A]=S.useMemo(()=>o||[],[o]),R=S.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[D]=i,[I,B]=v,[F,j]=S.useState(!1),z=S.useMemo(()=>{const oe=ar.values(D).filter(re=>re.type==="DateRange"),ae=ar.keys(D).filter(re=>oe.includes(D[re])),ge=ar.keys(e).filter(re=>e[re].isSortable);return ae.length>0?(ae.length>1&&j(!0),ge.map(ie=>ae.includes(ie)?[ie+"_Asc",ie+"_Desc"]:ie).flat()):ge},[e,D]),G=S.useMemo(()=>r.isRowRendered&&z.length>0,[z.length,r.isRowRendered]),pe=S.useCallback((oe,ae)=>{B&&(I==null?void 0:I.defKey)===oe&&(I.isAsc===!0?B({defKey:oe,isAsc:!1,sortF:ae}):B({defKey:oe,isAsc:!0,sortF:ae}))},[I,B]),P=S.useRef(),[U,V]=S.useState(),[Q,se]=S.useState(I?I.defKey:z[0]),ue=S.useMemo(()=>{if(!U)return{};const oe=e[U];return{SortUp:{onClick:()=>{B==null||B({defKey:U,isAsc:!0,sortF:oe.sortF}),se(U)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{B==null||B({defKey:U,isAsc:!1,sortF:oe.sortF}),se(U)},content:()=>w["Sort down"]}}},[B,U,e,w]);return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:Ge.clsx(Nu.ATableHeader),children:[C.jsxs("div",{className:Ge.clsx(Nu.LeftHeaderContent,"NoSelect"),children:[C.jsxs(Rn,{style:{marginBottom:G?8:0},children:[m&&C.jsx("div",{className:Ge.clsx(Nu.HItem),children:m}),t&&C.jsx("div",{className:Ge.clsx(Nu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&C.jsxs("div",{className:Ge.clsx(Nu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,A&&A.length>0&&C.jsxs(C.Fragment,{children:[" / ",w["Checked n items"](A.length)]})]})]}),G&&C.jsx(yC,{options:z,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:oe=>{var re;const ae=oe.currentTarget.textContent;if(ae===w[ae])return;oe.currentTarget.querySelector("svg")===null&&((re=P.current)==null||re.open(oe.currentTarget))}},OptionRenderer:oe=>{const ae=/_Asc|_Desc/.test(oe.option),ge=(I==null?void 0:I.defKey)===oe.option,re=Q===oe.option,ie=I==null?void 0:I.isAsc,he=()=>{if(ae){V(void 0),se(oe.option);const[ne,ve]=oe.option.split("_"),ke=ve==="Asc";B==null||B({defKey:ne,isAsc:ke,sortF:e[ne].sortF})}else re?pe(oe.option,e[oe.option].sortF):V(oe.option)},Le=ae?(ne=>{const[ve,ke]=ne.split("_");return(F?ve+" ":"")+w[ke]})(oe.option):w["Sort by x"](oe.option);return C.jsxs(Rn,{className:Ge.clsx(!(ae&&re)&&"IsClickable"),style:{height:"100%"},onClick:he,children:[Le,re&&!ae&&C.jsx(en,{icon:ge?ie?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},oe.option)}})]}),C.jsx(Ku,{}),C.jsxs("div",{className:Ge.clsx(Nu.RightHeaderContent,"NoSelect"),children:[!d&&C.jsx(V8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:z.length>0,isRowRendered:r.isRowRendered,placeholder:_,resources:w,useFilteration:i}),g&&C.jsx(Rn,{children:g,className:Ge.clsx(Nu.TopRightAddon)})]})]}),C.jsx(gC,{actionRef:P,defs:ue,position:bf.S,width:100,onClose:()=>V(void 0)})]})},t9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:d,checkDisabled:h,isLoading:p,isDisabled:m,title:g,entireItems:v,onStateChange:w,pagedItems:T,totalCount:_,useFilteration:A,useToggleFilteration:R,filterType:D="Default",placeholder:I,rowHeight:B=40,usePagination:F,useSortation:j,showRows:z,noHeader:G,noDefHeader:pe,noFooter:P,noFilter:U,noCount:V,noMarking:Q,noStateChangeOnMount:se,TopLeftAddon:ue,TopRightAddon:oe,actionRef:ae,RowRenderer:ge,resources:re}=r,ie=S.useMemo(()=>({...wr.ATable,...re}),[re]),he=S.useCallback((be,ze)=>t!==void 0?Array.isArray(t)?t.every(Tt=>Ya.isEqual(be[Tt],ze[Tt])):Ya.isEqual(be[t],ze[t]):Ya.isEqual(be,ze),[t]),Se=S.useMemo(()=>({content:r9,...n}),[n]),Le=S.useMemo(()=>{const be={};return ar.keys(e).forEach(ze=>{const Tt=e[ze],jt={...Se,...Tt};be[ze]=jt}),be},[Se,e]),[ne,ve]=wn(Ya.cloneDeep(A),{"":{type:"String",placeholder:ie["Search(Placeholder)"],value:""}}),[ke,De]=wn(Ya.cloneDeep(R),void 0),[Oe,we]=S.useState(!1),[_e,Ae]=S.useMemo(()=>Oe&&ke?[ke,De]:[ne,ve],[ne,Oe,ve,De,ke]),[$e,Fe]=S.useState(_e),Qe=S.useMemo(()=>v?Pl.applyFilteration(v,Le,$e):[],[v,Le,$e]),Ue=S.useMemo(()=>{for(const be in $e){const ze=$e[be];if(ze.value!==void 0&&ze.value!==null&&ze.value!=="")return!0}return!1},[$e]),[et,ct]=wn(j,void 0),Ct=S.useMemo(()=>Pl.applySortation(Qe,Le,et),[Qe,Le,et]),It=S.useMemo(()=>{if(T!==void 0)return Pl.applySortation(T,Le,et)},[T,Le,et]),[Je,Ke]=wn(F,{page:1,pageSize:50,pageRange:10}),ft=S.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Je}),[Je]),{pagedItems:gt,totalCount:Pe,pagination:Xe}=S.useMemo(()=>{const be={...ft};if(It!==void 0){let ze=_??It.length;const Tt=Pl.getPages(ze,be.pageSize);return be.page>Tt.length?be.page=Tt.length:be.page<1&&(be.page=1),{pagedItems:It,totalCount:ze,pagination:be}}else if(v!==void 0){const ze=_??Ct.length,Tt=Pl.getPages(ze,be.pageSize);return be.page>Tt.length?be.page=Tt.length:be.page<1&&(be.page=1),{pagedItems:Pl.applyPagination(Ct,be.page,be.pageSize),totalCount:ze,pagination:be}}else return{pagedItems:[],totalCount:_??0,pagination:ft}},[v,It,_,ft,Ct]),{pages:vt,rangedPages:Nt}=S.useMemo(()=>Pl.getRangedPages(Xe.page,Pe,Xe.pageSize,Xe.pageRange),[Pe,Xe.pageSize,Xe.page,Xe.pageRange]),[xt,Lt]=S.useMemo(()=>d??[],[d]),Qt=S.useMemo(()=>gt.filter(be=>xt==null?void 0:xt.some(ze=>he(ze,be))),[gt,xt,he]),Ut=S.useMemo(()=>gt.filter(be=>!(h!=null&&h(be))),[gt,h]),fr=S.useMemo(()=>Ut.length>0&&Ut.every(be=>Qt.some(ze=>he(ze,be))),[Qt,Ut,he]),hr=S.useMemo(()=>fr?!1:Ut.some(be=>Qt.some(ze=>he(ze,be))),[Qt,Ut,fr,he]),cr=S.useCallback(()=>{!xt||!Lt||m||Lt(fr||hr?xt.filter(be=>!Ut.some(ze=>he(ze,be))):[...xt,...Ut])},[xt,Lt,fr,hr,Ut,m,he]),Te=S.useCallback(be=>{!xt||!Lt||m||(xt.some(ze=>he(ze,be))?Lt(xt.filter(ze=>!he(ze,be))):Lt([...xt,be]))},[xt,Lt,m,he]);S.useEffect(()=>{if(!Lt||!xt||!h)return;xt.filter(ze=>h(ze)).length>0&&Lt(xt.filter(ze=>!h(ze)))},[h,xt,Lt]);const le=S.useMemo(()=>({hContent:xt&&C.jsx(af,{isIndeterminate:hr,useCheck:[fr,cr]}),content:be=>{const{item:ze}=be,Tt=h==null?void 0:h(ze),jt=typeof Tt=="string"?Tt:void 0,Dt=xt==null?void 0:xt.some(er=>he(er,ze));return C.jsx(af,{isDisabled:Tt,style:{zIndex:1},tooltip:jt,useCheck:[Dt,()=>Te(ze)],onClick:er=>er.stopPropagation()})},minWidth:32,maxWidth:32}),[xt,fr,hr,he,cr,h,Te]),st=S.useMemo(()=>d?{checkDef:le,...Le}:Le,[Le,le,d]),[yt,nt]=S.useState(!1),pt=S.useMemo(()=>p??yt,[p,yt]),ht=S.useCallback(async be=>{w&&(nt(!0),await w(be),nt(!1)),Ke==null||Ke(be.pagination),ct==null||ct(be.sortation),Fe(be.filteration)},[w,Ke,ct]);S.useEffect(()=>{if(!ae)return;const be=Tt=>{const jt={entireItems:v,filteration:_e,pagination:Xe,sortation:et},Dt=Tt?Tt(jt):jt;ht(Dt)},ze=Tt=>{const jt={...Xe,page:1},Dt=Tt?Tt(_e):_e;ht({entireItems:v,filteration:Dt,pagination:jt,sortation:et}),Ae==null||Ae(Dt)};ae.current={fireOnStateChange:be,applyFilteration:ze}},[ae,ht,v,Ae,_e,Xe,et]);const Ft=S.useCallback(be=>{be.page===Xe.page&&be.pageSize===Xe.pageSize||(be.page<1?be.page=1:be.page>vt[vt.length-1]&&(be.page=vt[vt.length-1]),ht({entireItems:v,filteration:$e,pagination:be,sortation:et}))},[Xe,vt,ht,v,$e,et]),Ve=S.useCallback(be=>{Ae&&Ae(be)},[Ae]),at=S.useCallback(be=>{ht({entireItems:v,filteration:$e,pagination:Xe,sortation:be})},[ht,v,$e,Xe]),lt=S.useCallback(be=>{Ft({...Xe,page:be})},[Ft,Xe]),_t=S.useCallback(()=>{lt(Xe.page-1)},[lt,Xe.page]),Ot=S.useCallback(()=>{lt(Xe.page+1)},[lt,Xe.page]),Bt=S.useCallback(()=>{lt(1)},[lt]),Wt=S.useCallback(()=>{lt(vt[vt.length-1])},[lt,vt]),Yt=S.useMemo(()=>({move:lt,movePrev:_t,moveNext:Ot,moveFirst:Bt,moveLast:Wt}),[lt,_t,Ot,Bt,Wt]),ir=S.useCallback(()=>{const be={...Xe,page:1};ht({entireItems:v,filteration:_e,pagination:be,sortation:et})},[_e,Xe,ht,v,et]),zt=S.useCallback(()=>{we(!Oe)},[Oe]),xr=S.useCallback(()=>{Oe&&ke?De==null||De(k0(ke)):Ae==null||Ae(k0(ne))},[Oe,ke,De,ne,Ae]),jr=S.useMemo(()=>({apply:ir,toggle:zt,clear:xr}),[ir,zt,xr]);bC(()=>{se||ht({entireItems:v,filteration:_e,pagination:Xe,sortation:et})});const Ye=S.useMemo(()=>ar.map(Le,([ze])=>Le[ze].minWidth??Bc).reduce((ze,Tt)=>ze+Tt,0),[Le]),ee=S.useMemo(()=>ge!==void 0,[ge]);return C.jsxs(Kr,{className:o8.ATable,isDisabled:m,style:{minWidth:Ye},children:[!G&&C.jsx(e9,{defs:Le,filterF:jr,filterType:D,hasToggleFilteration:ke!==void 0,isFiltered:Ue,isRowRendered:ee,noCount:V,noFilter:U,placeholder:I,resources:ie,title:g,TopLeftAddon:ue,TopRightAddon:oe,totalCount:Pe,useCheck:d&&xt?[xt,Lt]:void 0,useFilteration:[_e,Ve],useSortation:[et,at]}),C.jsx(_8,{appliedFilteration:$e,defs:st,isEqual:he,isLoading:pt,isRowRendered:ee,isSelectMulti:a,isTableDisabled:m,noDefHeader:pe,noMarking:Q,pagedItems:gt,pagination:Xe,resources:ie,rowHeight:B,RowRenderer:ge,rProps:o,selectDisabled:c,showRows:z,useSelect:i,useSortation:[et,at]}),!P&&C.jsx(L8,{pageF:Yt,pages:vt,pagination:Xe,rangedPages:Nt})]})},r9=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function k0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const n9="_AText_1asz6_1",o9={AText:n9},SC=r=>{const{text:e,styled:t,style:n}=r,o=S.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?C.jsx("b",{children:e}):C.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1?C.jsx("b",{children:hp(t)}):""]},c)):i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1&&C.jsx("span",{style:n,children:hp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return C.jsx("div",{className:Ge.clsx("Body1Reading",o9.AText,"NoSelect"),children:o})};function hp(r){const e=r.split(`
|
167
|
+
`);return e.map((t,n)=>C.jsxs(S.Fragment,{children:[t,n!==e.length-1&&C.jsx("br",{})]},n))}const i9="_Base_cpm4t_7",s9="_ATextArea_cpm4t_11",a9="_Primary_cpm4t_34",l9="_UnAvailable_cpm4t_39",c9="_Secondary_cpm4t_47",u9="_ReadOnly_cpm4t_59",pp={Base:i9,ATextArea:s9,Primary:a9,UnAvailable:l9,Secondary:c9,ReadOnly:u9,Error:"_Error_cpm4t_66"},d9=["Primary","Secondary","ReadOnly","Error"],f9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:d,maxLength:h,tabIndex:p,autoFocus:m,textAreaProps:g,...v}=r,[{wrapId:w,wrapProps:T,labelProps:_,...A},R]=Zu(v),D=S.useMemo(()=>h9(t)?"Error":n,[t,n]),I=S.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),B=S.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[F,j]=wn(i,""),z=S.useCallback(P=>{j&&j(P)},[j]),G=S.useCallback(P=>{var U;B||(z(P.target.value),(U=g==null?void 0:g.onChange)==null||U.call(g,P))},[B,z,g]),pe=S.useCallback(P=>{var U;if(!B){if((U=g==null?void 0:g.onKeyDown)==null||U.call(g,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[B,e,g]);return C.jsx(Wc,{wrapId:w,wrapProps:T,labelProps:_,...A,children:C.jsx(Kr,{...R,className:Ge.clsx(pp.Base,R.className),children:C.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ge.clsx(pp.ATextArea,pp[D],B&&pp.UnAvailable,g==null?void 0:g.className),maxLength:h,placeholder:d,readOnly:I,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:p,value:F,onChange:G,onKeyDown:pe})})})};function h9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:_C,setPrototypeOf:I0,isFrozen:p9,getPrototypeOf:g9,getOwnPropertyDescriptor:m9}=Object;let{freeze:mi,seal:Os,create:AC}=Object,{apply:N1,construct:P1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});N1||(N1=function(e,t,n){return e.apply(t,n)});P1||(P1=function(e,t){return new e(...t)});const gp=vi(Array.prototype.forEach),v9=vi(Array.prototype.lastIndexOf),M0=vi(Array.prototype.pop),Kf=vi(Array.prototype.push),y9=vi(Array.prototype.splice),Hp=vi(String.prototype.toLowerCase),pm=vi(String.prototype.toString),L0=vi(String.prototype.match),Xf=vi(String.prototype.replace),b9=vi(String.prototype.indexOf),x9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),hi=vi(RegExp.prototype.test),Jf=w9(TypeError);function vi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return N1(r,e,n)}}function w9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hp;I0&&I0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(p9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function C9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Nl(r){const e=AC(null);for(const[t,n]of _C(r))aa(r,t)&&(Array.isArray(n)?e[t]=C9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Nl(n):e[t]=n);return e}function Qf(r,e){for(;r!==null;){const n=m9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=g9(r)}function t(){return null}return t}const D0=mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gm=mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mm=mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),S9=mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vm=mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O0=mi(["#text"]),N0=mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ym=mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P0=mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mp=mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),E9=Os(/<%[\w\W]*|[\w\W]*%>/gm),T9=Os(/\$\{[\w\W]*/gm),R9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),k9=Os(/^aria-[\-\w]+$/),EC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),I9=Os(/^(?:\w+script|data):/i),M9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TC=Os(/^html$/i),L9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var B0=Object.freeze({__proto__:null,ARIA_ATTR:k9,ATTR_WHITESPACE:M9,CUSTOM_ELEMENT:L9,DATA_ATTR:R9,DOCTYPE_NAME:TC,ERB_EXPR:E9,IS_ALLOWED_URI:EC,IS_SCRIPT_OR_DATA:I9,MUSTACHE_EXPR:A9,TMPLIT_EXPR:T9});const eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},D9=function(){return typeof window>"u"?null:window},O9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},F0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function RC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:D9();const e=kt=>RC(kt);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==eh.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:h,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:v}=r,w=d.prototype,T=Qf(w,"cloneNode"),_=Qf(w,"remove"),A=Qf(w,"nextSibling"),R=Qf(w,"childNodes"),D=Qf(w,"parentNode");if(typeof a=="function"){const kt=t.createElement("template");kt.content&&kt.content.ownerDocument&&(t=kt.content.ownerDocument)}let I,B="";const{implementation:F,createNodeIterator:j,createDocumentFragment:z,getElementsByTagName:G}=t,{importNode:pe}=n;let P=F0();e.isSupported=typeof _C=="function"&&typeof D=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:ae,CUSTOM_ELEMENT:ge}=B0;let{IS_ALLOWED_URI:re}=B0,ie=null;const he=Wr({},[...D0,...gm,...mm,...vm,...O0]);let Se=null;const Le=Wr({},[...N0,...ym,...P0,...mp]);let ne=Object.seal(AC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ke=null,De=!0,Oe=!0,we=!1,_e=!0,Ae=!1,$e=!0,Fe=!1,Qe=!1,Ue=!1,et=!1,ct=!1,Ct=!1,It=!0,Je=!1;const Ke="user-content-";let ft=!0,gt=!1,Pe={},Xe=null;const vt=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Nt=null;const xt=Wr({},["audio","video","img","source","image","track"]);let Lt=null;const Qt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ut="http://www.w3.org/1998/Math/MathML",fr="http://www.w3.org/2000/svg",hr="http://www.w3.org/1999/xhtml";let cr=hr,Te=!1,le=null;const st=Wr({},[Ut,fr,hr],pm);let yt=Wr({},["mi","mo","mn","ms","mtext"]),nt=Wr({},["annotation-xml"]);const pt=Wr({},["title","style","font","a","script"]);let ht=null;const Ft=["application/xhtml+xml","text/html"],Ve="text/html";let at=null,lt=null;const _t=t.createElement("form"),Ot=function(xe){return xe instanceof RegExp||xe instanceof Function},Bt=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(lt&<===xe)){if((!xe||typeof xe!="object")&&(xe={}),xe=Nl(xe),ht=Ft.indexOf(xe.PARSER_MEDIA_TYPE)===-1?Ve:xe.PARSER_MEDIA_TYPE,at=ht==="application/xhtml+xml"?pm:Hp,ie=aa(xe,"ALLOWED_TAGS")?Wr({},xe.ALLOWED_TAGS,at):he,Se=aa(xe,"ALLOWED_ATTR")?Wr({},xe.ALLOWED_ATTR,at):Le,le=aa(xe,"ALLOWED_NAMESPACES")?Wr({},xe.ALLOWED_NAMESPACES,pm):st,Lt=aa(xe,"ADD_URI_SAFE_ATTR")?Wr(Nl(Qt),xe.ADD_URI_SAFE_ATTR,at):Qt,Nt=aa(xe,"ADD_DATA_URI_TAGS")?Wr(Nl(xt),xe.ADD_DATA_URI_TAGS,at):xt,Xe=aa(xe,"FORBID_CONTENTS")?Wr({},xe.FORBID_CONTENTS,at):vt,ve=aa(xe,"FORBID_TAGS")?Wr({},xe.FORBID_TAGS,at):Nl({}),ke=aa(xe,"FORBID_ATTR")?Wr({},xe.FORBID_ATTR,at):Nl({}),Pe=aa(xe,"USE_PROFILES")?xe.USE_PROFILES:!1,De=xe.ALLOW_ARIA_ATTR!==!1,Oe=xe.ALLOW_DATA_ATTR!==!1,we=xe.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=xe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=xe.SAFE_FOR_TEMPLATES||!1,$e=xe.SAFE_FOR_XML!==!1,Fe=xe.WHOLE_DOCUMENT||!1,et=xe.RETURN_DOM||!1,ct=xe.RETURN_DOM_FRAGMENT||!1,Ct=xe.RETURN_TRUSTED_TYPE||!1,Ue=xe.FORCE_BODY||!1,It=xe.SANITIZE_DOM!==!1,Je=xe.SANITIZE_NAMED_PROPS||!1,ft=xe.KEEP_CONTENT!==!1,gt=xe.IN_PLACE||!1,re=xe.ALLOWED_URI_REGEXP||EC,cr=xe.NAMESPACE||hr,yt=xe.MATHML_TEXT_INTEGRATION_POINTS||yt,nt=xe.HTML_INTEGRATION_POINTS||nt,ne=xe.CUSTOM_ELEMENT_HANDLING||{},xe.CUSTOM_ELEMENT_HANDLING&&Ot(xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&Ot(xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&typeof xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(Oe=!1),ct&&(et=!0),Pe&&(ie=Wr({},O0),Se=[],Pe.html===!0&&(Wr(ie,D0),Wr(Se,N0)),Pe.svg===!0&&(Wr(ie,gm),Wr(Se,ym),Wr(Se,mp)),Pe.svgFilters===!0&&(Wr(ie,mm),Wr(Se,ym),Wr(Se,mp)),Pe.mathMl===!0&&(Wr(ie,vm),Wr(Se,P0),Wr(Se,mp))),xe.ADD_TAGS&&(ie===he&&(ie=Nl(ie)),Wr(ie,xe.ADD_TAGS,at)),xe.ADD_ATTR&&(Se===Le&&(Se=Nl(Se)),Wr(Se,xe.ADD_ATTR,at)),xe.ADD_URI_SAFE_ATTR&&Wr(Lt,xe.ADD_URI_SAFE_ATTR,at),xe.FORBID_CONTENTS&&(Xe===vt&&(Xe=Nl(Xe)),Wr(Xe,xe.FORBID_CONTENTS,at)),ft&&(ie["#text"]=!0),Fe&&Wr(ie,["html","head","body"]),ie.table&&(Wr(ie,["tbody"]),delete ve.tbody),xe.TRUSTED_TYPES_POLICY){if(typeof xe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=xe.TRUSTED_TYPES_POLICY,B=I.createHTML("")}else I===void 0&&(I=O9(v,o)),I!==null&&typeof B=="string"&&(B=I.createHTML(""));mi&&mi(xe),lt=xe}},Wt=Wr({},[...gm,...mm,...S9]),Yt=Wr({},[...vm,..._9]),ir=function(xe){let ot=D(xe);(!ot||!ot.tagName)&&(ot={namespaceURI:cr,tagName:"template"});const wt=Hp(xe.tagName),yr=Hp(ot.tagName);return le[xe.namespaceURI]?xe.namespaceURI===fr?ot.namespaceURI===hr?wt==="svg":ot.namespaceURI===Ut?wt==="svg"&&(yr==="annotation-xml"||yt[yr]):!!Wt[wt]:xe.namespaceURI===Ut?ot.namespaceURI===hr?wt==="math":ot.namespaceURI===fr?wt==="math"&&nt[yr]:!!Yt[wt]:xe.namespaceURI===hr?ot.namespaceURI===fr&&!nt[yr]||ot.namespaceURI===Ut&&!yt[yr]?!1:!Yt[wt]&&(pt[wt]||!Wt[wt]):!!(ht==="application/xhtml+xml"&&le[xe.namespaceURI]):!1},zt=function(xe){Kf(e.removed,{element:xe});try{D(xe).removeChild(xe)}catch{_(xe)}},xr=function(xe,ot){try{Kf(e.removed,{attribute:ot.getAttributeNode(xe),from:ot})}catch{Kf(e.removed,{attribute:null,from:ot})}if(ot.removeAttribute(xe),xe==="is")if(et||ct)try{zt(ot)}catch{}else try{ot.setAttribute(xe,"")}catch{}},jr=function(xe){let ot=null,wt=null;if(Ue)xe="<remove></remove>"+xe;else{const lr=L0(xe,/^[\r\n\t ]+/);wt=lr&&lr[0]}ht==="application/xhtml+xml"&&cr===hr&&(xe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+xe+"</body></html>");const yr=I?I.createHTML(xe):xe;if(cr===hr)try{ot=new g().parseFromString(yr,ht)}catch{}if(!ot||!ot.documentElement){ot=F.createDocument(cr,"template",null);try{ot.documentElement.innerHTML=Te?B:yr}catch{}}const Br=ot.body||ot.documentElement;return xe&&wt&&Br.insertBefore(t.createTextNode(wt),Br.childNodes[0]||null),cr===hr?G.call(ot,Fe?"html":"body")[0]:Fe?ot.documentElement:Br},Ye=function(xe){return j.call(xe.ownerDocument||xe,xe,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ee=function(xe){return xe instanceof m&&(typeof xe.nodeName!="string"||typeof xe.textContent!="string"||typeof xe.removeChild!="function"||!(xe.attributes instanceof p)||typeof xe.removeAttribute!="function"||typeof xe.setAttribute!="function"||typeof xe.namespaceURI!="string"||typeof xe.insertBefore!="function"||typeof xe.hasChildNodes!="function")},be=function(xe){return typeof c=="function"&&xe instanceof c};function ze(kt,xe,ot){gp(kt,wt=>{wt.call(e,xe,ot,lt)})}const Tt=function(xe){let ot=null;if(ze(P.beforeSanitizeElements,xe,null),ee(xe))return zt(xe),!0;const wt=at(xe.nodeName);if(ze(P.uponSanitizeElement,xe,{tagName:wt,allowedTags:ie}),$e&&xe.hasChildNodes()&&!be(xe.firstElementChild)&&hi(/<[/\w!]/g,xe.innerHTML)&&hi(/<[/\w!]/g,xe.textContent)||xe.nodeType===eh.progressingInstruction||$e&&xe.nodeType===eh.comment&&hi(/<[/\w]/g,xe.data))return zt(xe),!0;if(!ie[wt]||ve[wt]){if(!ve[wt]&&Dt(wt)&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,wt)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(wt)))return!1;if(ft&&!Xe[wt]){const yr=D(xe)||xe.parentNode,Br=R(xe)||xe.childNodes;if(Br&&yr){const lr=Br.length;for(let br=lr-1;br>=0;--br){const tn=T(Br[br],!0);tn.__removalCount=(xe.__removalCount||0)+1,yr.insertBefore(tn,A(xe))}}}return zt(xe),!0}return xe instanceof d&&!ir(xe)||(wt==="noscript"||wt==="noembed"||wt==="noframes")&&hi(/<\/no(script|embed|frames)/i,xe.innerHTML)?(zt(xe),!0):(Ae&&xe.nodeType===eh.text&&(ot=xe.textContent,gp([U,V,Q],yr=>{ot=Xf(ot,yr," ")}),xe.textContent!==ot&&(Kf(e.removed,{element:xe.cloneNode()}),xe.textContent=ot)),ze(P.afterSanitizeElements,xe,null),!1)},jt=function(xe,ot,wt){if(It&&(ot==="id"||ot==="name")&&(wt in t||wt in _t))return!1;if(!(Oe&&!ke[ot]&&hi(se,ot))){if(!(De&&hi(ue,ot))){if(!Se[ot]||ke[ot]){if(!(Dt(xe)&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,xe)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(xe))&&(ne.attributeNameCheck instanceof RegExp&&hi(ne.attributeNameCheck,ot)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(ot))||ot==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,wt)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(wt))))return!1}else if(!Lt[ot]){if(!hi(re,Xf(wt,ae,""))){if(!((ot==="src"||ot==="xlink:href"||ot==="href")&&xe!=="script"&&b9(wt,"data:")===0&&Nt[xe])){if(!(we&&!hi(oe,Xf(wt,ae,"")))){if(wt)return!1}}}}}}return!0},Dt=function(xe){return xe!=="annotation-xml"&&L0(xe,ge)},er=function(xe){ze(P.beforeSanitizeAttributes,xe,null);const{attributes:ot}=xe;if(!ot||ee(xe))return;const wt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let yr=ot.length;for(;yr--;){const Br=ot[yr],{name:lr,namespaceURI:br,value:tn}=Br,sn=at(lr),Pn=tn;let Hr=lr==="value"?Pn:x9(Pn);if(wt.attrName=sn,wt.attrValue=Hr,wt.keepAttr=!0,wt.forceKeepAttr=void 0,ze(P.uponSanitizeAttribute,xe,wt),Hr=wt.attrValue,Je&&(sn==="id"||sn==="name")&&(xr(lr,xe),Hr=Ke+Hr),$e&&hi(/((--!?|])>)|<\/(style|title)/i,Hr)){xr(lr,xe);continue}if(wt.forceKeepAttr)continue;if(!wt.keepAttr){xr(lr,xe);continue}if(!_e&&hi(/\/>/i,Hr)){xr(lr,xe);continue}Ae&&gp([U,V,Q],kn=>{Hr=Xf(Hr,kn," ")});const rn=at(xe.nodeName);if(!jt(rn,sn,Hr)){xr(lr,xe);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!br)switch(v.getAttributeType(rn,sn)){case"TrustedHTML":{Hr=I.createHTML(Hr);break}case"TrustedScriptURL":{Hr=I.createScriptURL(Hr);break}}if(Hr!==Pn)try{br?xe.setAttributeNS(br,lr,Hr):xe.setAttribute(lr,Hr),ee(xe)?zt(xe):M0(e.removed)}catch{xr(lr,xe)}}ze(P.afterSanitizeAttributes,xe,null)},Jt=function kt(xe){let ot=null;const wt=Ye(xe);for(ze(P.beforeSanitizeShadowDOM,xe,null);ot=wt.nextNode();)ze(P.uponSanitizeShadowNode,ot,null),Tt(ot),er(ot),ot.content instanceof i&&kt(ot.content);ze(P.afterSanitizeShadowDOM,xe,null)};return e.sanitize=function(kt){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=null,wt=null,yr=null,Br=null;if(Te=!kt,Te&&(kt="<!-->"),typeof kt!="string"&&!be(kt))if(typeof kt.toString=="function"){if(kt=kt.toString(),typeof kt!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!e.isSupported)return kt;if(Qe||Bt(xe),e.removed=[],typeof kt=="string"&&(gt=!1),gt){if(kt.nodeName){const tn=at(kt.nodeName);if(!ie[tn]||ve[tn])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(kt instanceof c)ot=jr("<!---->"),wt=ot.ownerDocument.importNode(kt,!0),wt.nodeType===eh.element&&wt.nodeName==="BODY"||wt.nodeName==="HTML"?ot=wt:ot.appendChild(wt);else{if(!et&&!Ae&&!Fe&&kt.indexOf("<")===-1)return I&&Ct?I.createHTML(kt):kt;if(ot=jr(kt),!ot)return et?null:Ct?B:""}ot&&Ue&&zt(ot.firstChild);const lr=Ye(gt?kt:ot);for(;yr=lr.nextNode();)Tt(yr),er(yr),yr.content instanceof i&&Jt(yr.content);if(gt)return kt;if(et){if(ct)for(Br=z.call(ot.ownerDocument);ot.firstChild;)Br.appendChild(ot.firstChild);else Br=ot;return(Se.shadowroot||Se.shadowrootmode)&&(Br=pe.call(n,Br,!0)),Br}let br=Fe?ot.outerHTML:ot.innerHTML;return Fe&&ie["!doctype"]&&ot.ownerDocument&&ot.ownerDocument.doctype&&ot.ownerDocument.doctype.name&&hi(TC,ot.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+ot.ownerDocument.doctype.name+`>
|
168
|
+
`+br),Ae&&gp([U,V,Q],tn=>{br=Xf(br,tn," ")}),I&&Ct?I.createHTML(br):br},e.setConfig=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(kt),Qe=!0},e.clearConfig=function(){lt=null,Qe=!1},e.isValidAttribute=function(kt,xe,ot){lt||Bt({});const wt=at(kt),yr=at(xe);return jt(wt,yr,ot)},e.addHook=function(kt,xe){typeof xe=="function"&&Kf(P[kt],xe)},e.removeHook=function(kt,xe){if(xe!==void 0){const ot=v9(P[kt],xe);return ot===-1?void 0:y9(P[kt],ot,1)[0]}return M0(P[kt])},e.removeHooks=function(kt){P[kt]=[]},e.removeAllHooks=function(){P=F0()},e}var N9=RC(),vp={exports:{}},bm,j0;function P9(){if(j0)return bm;j0=1;var r=-1,e=1,t=0;function n(P,U,V,Q,se){if(P===U)return P?[[t,P]]:[];if(V!=null){var ue=G(P,U,V);if(ue)return ue}var oe=c(P,U),ae=P.substring(0,oe);P=P.substring(oe),U=U.substring(oe),oe=h(P,U);var ge=P.substring(P.length-oe);P=P.substring(0,P.length-oe),U=U.substring(0,U.length-oe);var re=o(P,U);return ae&&re.unshift([t,ae]),ge&&re.push([t,ge]),R(re,se),Q&&m(re),re}function o(P,U){var V;if(!P)return[[e,U]];if(!U)return[[r,P]];var Q=P.length>U.length?P:U,se=P.length>U.length?U:P,ue=Q.indexOf(se);if(ue!==-1)return V=[[e,Q.substring(0,ue)],[t,se],[e,Q.substring(ue+se.length)]],P.length>U.length&&(V[0][0]=V[2][0]=r),V;if(se.length===1)return[[r,P],[e,U]];var oe=p(P,U);if(oe){var ae=oe[0],ge=oe[1],re=oe[2],ie=oe[3],he=oe[4],Se=n(ae,re),Le=n(ge,ie);return Se.concat([[t,he]],Le)}return i(P,U)}function i(P,U){for(var V=P.length,Q=U.length,se=Math.ceil((V+Q)/2),ue=se,oe=2*se,ae=new Array(oe),ge=new Array(oe),re=0;re<oe;re++)ae[re]=-1,ge[re]=-1;ae[ue+1]=0,ge[ue+1]=0;for(var ie=V-Q,he=ie%2!==0,Se=0,Le=0,ne=0,ve=0,ke=0;ke<se;ke++){for(var De=-ke+Se;De<=ke-Le;De+=2){var Oe=ue+De,we;De===-ke||De!==ke&&ae[Oe-1]<ae[Oe+1]?we=ae[Oe+1]:we=ae[Oe-1]+1;for(var _e=we-De;we<V&&_e<Q&&P.charAt(we)===U.charAt(_e);)we++,_e++;if(ae[Oe]=we,we>V)Le+=2;else if(_e>Q)Se+=2;else if(he){var Ae=ue+ie-De;if(Ae>=0&&Ae<oe&&ge[Ae]!==-1){var $e=V-ge[Ae];if(we>=$e)return a(P,U,we,_e)}}}for(var Fe=-ke+ne;Fe<=ke-ve;Fe+=2){var Ae=ue+Fe,$e;Fe===-ke||Fe!==ke&&ge[Ae-1]<ge[Ae+1]?$e=ge[Ae+1]:$e=ge[Ae-1]+1;for(var Qe=$e-Fe;$e<V&&Qe<Q&&P.charAt(V-$e-1)===U.charAt(Q-Qe-1);)$e++,Qe++;if(ge[Ae]=$e,$e>V)ve+=2;else if(Qe>Q)ne+=2;else if(!he){var Oe=ue+ie-Fe;if(Oe>=0&&Oe<oe&&ae[Oe]!==-1){var we=ae[Oe],_e=ue+we-Oe;if($e=V-$e,we>=$e)return a(P,U,we,_e)}}}}return[[r,P],[e,U]]}function a(P,U,V,Q){var se=P.substring(0,V),ue=U.substring(0,Q),oe=P.substring(V),ae=U.substring(Q),ge=n(se,ue),re=n(oe,ae);return ge.concat(re)}function c(P,U){if(!P||!U||P.charAt(0)!==U.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,U.length),se=Q,ue=0;V<se;)P.substring(ue,se)==U.substring(ue,se)?(V=se,ue=V):Q=se,se=Math.floor((Q-V)/2+V);return D(P.charCodeAt(se-1))&&se--,se}function d(P,U){var V=P.length,Q=U.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(U=U.substring(0,V));var se=Math.min(V,Q);if(P==U)return se;for(var ue=0,oe=1;;){var ae=P.substring(se-oe),ge=U.indexOf(ae);if(ge==-1)return ue;oe+=ge,(ge==0||P.substring(se-oe)==U.substring(0,oe))&&(ue=oe,oe++)}}function h(P,U){if(!P||!U||P.slice(-1)!==U.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,U.length),se=Q,ue=0;V<se;)P.substring(P.length-se,P.length-ue)==U.substring(U.length-se,U.length-ue)?(V=se,ue=V):Q=se,se=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-se))&&se--,se}function p(P,U){var V=P.length>U.length?P:U,Q=P.length>U.length?U:P;if(V.length<4||Q.length*2<V.length)return null;function se(Le,ne,ve){for(var ke=Le.substring(ve,ve+Math.floor(Le.length/4)),De=-1,Oe="",we,_e,Ae,$e;(De=ne.indexOf(ke,De+1))!==-1;){var Fe=c(Le.substring(ve),ne.substring(De)),Qe=h(Le.substring(0,ve),ne.substring(0,De));Oe.length<Qe+Fe&&(Oe=ne.substring(De-Qe,De)+ne.substring(De,De+Fe),we=Le.substring(0,ve-Qe),_e=Le.substring(ve+Fe),Ae=ne.substring(0,De-Qe),$e=ne.substring(De+Fe))}return Oe.length*2>=Le.length?[we,_e,Ae,$e,Oe]:null}var ue=se(V,Q,Math.ceil(V.length/4)),oe=se(V,Q,Math.ceil(V.length/2)),ae;if(!ue&&!oe)return null;oe?ue?ae=ue[4].length>oe[4].length?ue:oe:ae=oe:ae=ue;var ge,re,ie,he;P.length>U.length?(ge=ae[0],re=ae[1],ie=ae[2],he=ae[3]):(ie=ae[0],he=ae[1],ge=ae[2],re=ae[3]);var Se=ae[4];return[ge,re,ie,he,Se]}function m(P){for(var U=!1,V=[],Q=0,se=null,ue=0,oe=0,ae=0,ge=0,re=0;ue<P.length;)P[ue][0]==t?(V[Q++]=ue,oe=ge,ae=re,ge=0,re=0,se=P[ue][1]):(P[ue][0]==e?ge+=P[ue][1].length:re+=P[ue][1].length,se&&se.length<=Math.max(oe,ae)&&se.length<=Math.max(ge,re)&&(P.splice(V[Q-1],0,[r,se]),P[V[Q-1]+1][0]=e,Q--,Q--,ue=Q>0?V[Q-1]:-1,oe=0,ae=0,ge=0,re=0,se=null,U=!0)),ue++;for(U&&R(P),A(P),ue=1;ue<P.length;){if(P[ue-1][0]==r&&P[ue][0]==e){var ie=P[ue-1][1],he=P[ue][1],Se=d(ie,he),Le=d(he,ie);Se>=Le?(Se>=ie.length/2||Se>=he.length/2)&&(P.splice(ue,0,[t,he.substring(0,Se)]),P[ue-1][1]=ie.substring(0,ie.length-Se),P[ue+1][1]=he.substring(Se),ue++):(Le>=ie.length/2||Le>=he.length/2)&&(P.splice(ue,0,[t,ie.substring(0,Le)]),P[ue-1][0]=e,P[ue-1][1]=he.substring(0,he.length-Le),P[ue+1][0]=r,P[ue+1][1]=ie.substring(Le),ue++),ue++}ue++}}var g=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,_=/^\r?\n\r?\n/;function A(P){function U(Le,ne){if(!Le||!ne)return 6;var ve=Le.charAt(Le.length-1),ke=ne.charAt(0),De=ve.match(g),Oe=ke.match(g),we=De&&ve.match(v),_e=Oe&&ke.match(v),Ae=we&&ve.match(w),$e=_e&&ke.match(w),Fe=Ae&&Le.match(T),Qe=$e&&ne.match(_);return Fe||Qe?5:Ae||$e?4:De&&!we&&_e?3:we||_e?2:De||Oe?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],se=P[V][1],ue=P[V+1][1],oe=h(Q,se);if(oe){var ae=se.substring(se.length-oe);Q=Q.substring(0,Q.length-oe),se=ae+se.substring(0,se.length-oe),ue=ae+ue}for(var ge=Q,re=se,ie=ue,he=U(Q,se)+U(se,ue);se.charAt(0)===ue.charAt(0);){Q+=se.charAt(0),se=se.substring(1)+ue.charAt(0),ue=ue.substring(1);var Se=U(Q,se)+U(se,ue);Se>=he&&(he=Se,ge=Q,re=se,ie=ue)}P[V-1][1]!=ge&&(ge?P[V-1][1]=ge:(P.splice(V-1,1),V--),P[V][1]=re,ie?P[V+1][1]=ie:(P.splice(V+1,1),V--))}V++}}function R(P,U){P.push([t,""]);for(var V=0,Q=0,se=0,ue="",oe="",ae;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:se++,oe+=P[V][1],V++;break;case r:Q++,ue+=P[V][1],V++;break;case t:var ge=V-se-Q-1;if(U){if(ge>=0&&F(P[ge][1])){var re=P[ge][1].slice(-1);if(P[ge][1]=P[ge][1].slice(0,-1),ue=re+ue,oe=re+oe,!P[ge][1]){P.splice(ge,1),V--;var ie=ge-1;P[ie]&&P[ie][0]===e&&(se++,oe=P[ie][1]+oe,ie--),P[ie]&&P[ie][0]===r&&(Q++,ue=P[ie][1]+ue,ie--),ge=ie}}if(B(P[V][1])){var re=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),ue+=re,oe+=re}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(ue.length>0||oe.length>0){ue.length>0&&oe.length>0&&(ae=c(oe,ue),ae!==0&&(ge>=0?P[ge][1]+=oe.substring(0,ae):(P.splice(0,0,[t,oe.substring(0,ae)]),V++),oe=oe.substring(ae),ue=ue.substring(ae)),ae=h(oe,ue),ae!==0&&(P[V][1]=oe.substring(oe.length-ae)+P[V][1],oe=oe.substring(0,oe.length-ae),ue=ue.substring(0,ue.length-ae)));var he=se+Q;ue.length===0&&oe.length===0?(P.splice(V-he,he),V=V-he):ue.length===0?(P.splice(V-he,he,[e,oe]),V=V-he+1):oe.length===0?(P.splice(V-he,he,[r,ue]),V=V-he+1):(P.splice(V-he,he,[r,ue],[e,oe]),V=V-he+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,se=0,Q=0,ue="",oe="";break}}P[P.length-1][1]===""&&P.pop();var Se=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),Se=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),Se=!0)),V++;Se&&R(P,U)}function D(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function B(P){return I(P.charCodeAt(0))}function F(P){return D(P.charCodeAt(P.length-1))}function j(P){for(var U=[],V=0;V<P.length;V++)P[V][1].length>0&&U.push(P[V]);return U}function z(P,U,V,Q){return F(P)||B(Q)?null:j([[t,P],[r,U],[e,V],[t,Q]])}function G(P,U,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,se=typeof V=="number"?null:V.newRange,ue=P.length,oe=U.length;if(Q.length===0&&(se===null||se.length===0)){var ae=Q.index,ge=P.slice(0,ae),re=P.slice(ae),ie=se?se.index:null;e:{var he=ae+oe-ue;if(ie!==null&&ie!==he||he<0||he>oe)break e;var Se=U.slice(0,he),Le=U.slice(he);if(Le!==re)break e;var ne=Math.min(ae,he),ve=ge.slice(0,ne),ke=Se.slice(0,ne);if(ve!==ke)break e;var De=ge.slice(ne),Oe=Se.slice(ne);return z(ve,De,Oe,re)}e:{if(ie!==null&&ie!==ae)break e;var we=ae,Se=U.slice(0,we),Le=U.slice(we);if(Se!==ge)break e;var _e=Math.min(ue-we,oe-we),Ae=re.slice(re.length-_e),$e=Le.slice(Le.length-_e);if(Ae!==$e)break e;var De=re.slice(0,re.length-_e),Oe=Le.slice(0,Le.length-_e);return z(ge,De,Oe,Ae)}}if(Q.length>0&&se&&se.length===0)e:{var ve=P.slice(0,Q.index),Ae=P.slice(Q.index+Q.length),ne=ve.length,_e=Ae.length;if(oe<ne+_e)break e;var ke=U.slice(0,ne),$e=U.slice(oe-_e);if(ve!==ke||Ae!==$e)break e;var De=P.slice(ne,ue-_e),Oe=U.slice(ne,oe-_e);return z(ve,De,Oe,Ae)}return null}function pe(P,U,V,Q){return n(P,U,V,Q,!0)}return pe.INSERT=e,pe.DELETE=r,pe.EQUAL=t,bm=pe,bm}var dh={exports:{}};dh.exports;var z0;function kC(){return z0||(z0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",_="[object RegExp]",A="[object Set]",R="[object String]",D="[object Symbol]",I="[object WeakMap]",B="[object ArrayBuffer]",F="[object DataView]",j="[object Float32Array]",z="[object Float64Array]",G="[object Int8Array]",pe="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",se="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,oe=/\w*$/,ae=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,re={};re[i]=re[a]=re[B]=re[F]=re[c]=re[d]=re[j]=re[z]=re[G]=re[pe]=re[P]=re[g]=re[v]=re[w]=re[_]=re[A]=re[R]=re[D]=re[U]=re[V]=re[Q]=re[se]=!0,re[h]=re[p]=re[I]=!1;var ie=typeof Di=="object"&&Di&&Di.Object===Object&&Di,he=typeof self=="object"&&self&&self.Object===Object&&self,Se=ie||he||Function("return this")(),Le=e&&!e.nodeType&&e,ne=Le&&!0&&r&&!r.nodeType&&r,ve=ne&&ne.exports===Le;function ke(O,J){return O.set(J[0],J[1]),O}function De(O,J){return O.add(J),O}function Oe(O,J){for(var Ce=-1,rt=O?O.length:0;++Ce<rt&&J(O[Ce],Ce,O)!==!1;);return O}function we(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function _e(O,J,Ce,rt){for(var or=-1,Kt=O?O.length:0;++or<Kt;)Ce=J(Ce,O[or],or,O);return Ce}function Ae(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function $e(O,J){return O==null?void 0:O[J]}function Fe(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function Qe(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function Ue(O,J){return function(Ce){return O(J(Ce))}}function et(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var ct=Array.prototype,Ct=Function.prototype,It=Object.prototype,Je=Se["__core-js_shared__"],Ke=function(){var O=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ft=Ct.toString,gt=It.hasOwnProperty,Pe=It.toString,Xe=RegExp("^"+ft.call(gt).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=ve?Se.Buffer:void 0,Nt=Se.Symbol,xt=Se.Uint8Array,Lt=Ue(Object.getPrototypeOf,Object),Qt=Object.create,Ut=It.propertyIsEnumerable,fr=ct.splice,hr=Object.getOwnPropertySymbols,cr=vt?vt.isBuffer:void 0,Te=Ue(Object.keys,Object),le=Ht(Se,"DataView"),st=Ht(Se,"Map"),yt=Ht(Se,"Promise"),nt=Ht(Se,"Set"),pt=Ht(Se,"WeakMap"),ht=Ht(Object,"create"),Ft=dn(le),Ve=dn(st),at=dn(yt),lt=dn(nt),_t=dn(pt),Ot=Nt?Nt.prototype:void 0,Bt=Ot?Ot.valueOf:void 0;function Wt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function Yt(){this.__data__=ht?ht(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function zt(O){var J=this.__data__;if(ht){var Ce=J[O];return Ce===n?void 0:Ce}return gt.call(J,O)?J[O]:void 0}function xr(O){var J=this.__data__;return ht?J[O]!==void 0:gt.call(J,O)}function jr(O,J){var Ce=this.__data__;return Ce[O]=ht&&J===void 0?n:J,this}Wt.prototype.clear=Yt,Wt.prototype.delete=ir,Wt.prototype.get=zt,Wt.prototype.has=xr,Wt.prototype.set=jr;function Ye(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function ee(){this.__data__=[]}function be(O){var J=this.__data__,Ce=Hr(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():fr.call(J,Ce,1),!0}function ze(O){var J=this.__data__,Ce=Hr(J,O);return Ce<0?void 0:J[Ce][1]}function Tt(O){return Hr(this.__data__,O)>-1}function jt(O,J){var Ce=this.__data__,rt=Hr(Ce,O);return rt<0?Ce.push([O,J]):Ce[rt][1]=J,this}Ye.prototype.clear=ee,Ye.prototype.delete=be,Ye.prototype.get=ze,Ye.prototype.has=Tt,Ye.prototype.set=jt;function Dt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__={hash:new Wt,map:new(st||Ye),string:new Wt}}function Jt(O){return Et(this,O).delete(O)}function kt(O){return Et(this,O).get(O)}function xe(O){return Et(this,O).has(O)}function ot(O,J){return Et(this,O).set(O,J),this}Dt.prototype.clear=er,Dt.prototype.delete=Jt,Dt.prototype.get=kt,Dt.prototype.has=xe,Dt.prototype.set=ot;function wt(O){this.__data__=new Ye(O)}function yr(){this.__data__=new Ye}function Br(O){return this.__data__.delete(O)}function lr(O){return this.__data__.get(O)}function br(O){return this.__data__.has(O)}function tn(O,J){var Ce=this.__data__;if(Ce instanceof Ye){var rt=Ce.__data__;if(!st||rt.length<t-1)return rt.push([O,J]),this;Ce=this.__data__=new Dt(rt)}return Ce.set(O,J),this}wt.prototype.clear=yr,wt.prototype.delete=Br,wt.prototype.get=lr,wt.prototype.has=br,wt.prototype.set=tn;function sn(O,J){var Ce=Pi(O)||io(O)?Ae(O.length,String):[],rt=Ce.length,or=!!rt;for(var Kt in O)gt.call(O,Kt)&&!(or&&(Kt=="length"||Mn(Kt,rt)))&&Ce.push(Kt);return Ce}function Pn(O,J,Ce){var rt=O[J];(!(gt.call(O,J)&&Kn(rt,Ce))||Ce===void 0&&!(J in O))&&(O[J]=Ce)}function Hr(O,J){for(var Ce=O.length;Ce--;)if(Kn(O[Ce][0],J))return Ce;return-1}function rn(O,J){return O&&qe(J,zr(J),O)}function kn(O,J,Ce,rt,or,Kt,_r){var kr;if(rt&&(kr=Kt?rt(O,or,Kt,_r):rt(O)),kr!==void 0)return kr;if(!ao(O))return O;var Cr=Pi(O);if(Cr){if(kr=Rr(O),!J)return ce(O,kr)}else{var Mr=Vt(O),fn=Mr==p||Mr==m;if(Hn(O))return Fn(O,J);if(Mr==w||Mr==i||fn&&!Kt){if(Fe(O))return Kt?O:{};if(kr=an(fn?{}:O),!J)return Be(O,rn(kr,O))}else{if(!re[Mr])return Kt?O:{};kr=In(O,Mr,kn,J)}}_r||(_r=new wt);var $n=_r.get(O);if($n)return $n;if(_r.set(O,kr),!Cr)var nn=Ce?tt(O):zr(O);return Oe(nn||O,function(Vr,hn){nn&&(hn=Vr,Vr=O[hn]),Pn(kr,hn,kn(Vr,J,Ce,rt,hn,O,_r))}),kr}function Bn(O){return ao(O)?Qt(O):{}}function _o(O,J,Ce){var rt=J(O);return Pi(O)?rt:we(rt,Ce(O))}function Do(O){return Pe.call(O)}function Oo(O){if(!ao(O)||Zn(O))return!1;var J=Bi(O)||Fe(O)?Xe:ae;return J.test(dn(O))}function zn(O){if(!No(O))return Te(O);var J=[];for(var Ce in Object(O))gt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function Fn(O,J){if(J)return O.slice();var Ce=new O.constructor(O.length);return O.copy(Ce),Ce}function Cn(O){var J=new O.constructor(O.byteLength);return new xt(J).set(new xt(O)),J}function oo(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.byteLength)}function mn(O,J,Ce){var rt=J?Ce(Qe(O),!0):Qe(O);return _e(rt,ke,new O.constructor)}function An(O){var J=new O.constructor(O.source,oe.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,Ce){var rt=J?Ce(et(O),!0):et(O);return _e(rt,De,new O.constructor)}function $(O){return Bt?Object(Bt.call(O)):{}}function X(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.length)}function ce(O,J){var Ce=-1,rt=O.length;for(J||(J=Array(rt));++Ce<rt;)J[Ce]=O[Ce];return J}function qe(O,J,Ce,rt){Ce||(Ce={});for(var or=-1,Kt=J.length;++or<Kt;){var _r=J[or],kr=void 0;Pn(Ce,_r,kr===void 0?O[_r]:kr)}return Ce}function Be(O,J){return qe(O,Gt(O),J)}function tt(O){return _o(O,zr,Gt)}function Et(O,J){var Ce=O.__data__;return ho(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Ht(O,J){var Ce=$e(O,J);return Oo(Ce)?Ce:void 0}var Gt=hr?Ue(hr,Object):Ir,Vt=Do;(le&&Vt(new le(new ArrayBuffer(1)))!=F||st&&Vt(new st)!=g||yt&&Vt(yt.resolve())!=T||nt&&Vt(new nt)!=A||pt&&Vt(new pt)!=I)&&(Vt=function(O){var J=Pe.call(O),Ce=J==w?O.constructor:void 0,rt=Ce?dn(Ce):void 0;if(rt)switch(rt){case Ft:return F;case Ve:return g;case at:return T;case lt:return A;case _t:return I}return J});function Rr(O){var J=O.length,Ce=O.constructor(J);return J&&typeof O[0]=="string"&>.call(O,"index")&&(Ce.index=O.index,Ce.input=O.input),Ce}function an(O){return typeof O.constructor=="function"&&!No(O)?Bn(Lt(O)):{}}function In(O,J,Ce,rt){var or=O.constructor;switch(J){case B:return Cn(O);case c:case d:return new or(+O);case F:return oo(O,rt);case j:case z:case G:case pe:case P:case U:case V:case Q:case se:return X(O,rt);case g:return mn(O,rt,Ce);case v:case R:return new or(O);case _:return An(O);case A:return k(O,rt,Ce);case D:return $(O)}}function Mn(O,J){return J=J??o,!!J&&(typeof O=="number"||ge.test(O))&&O>-1&&O%1==0&&O<J}function ho(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Zn(O){return!!Ke&&Ke in O}function No(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||It;return O===Ce}function dn(O){if(O!=null){try{return ft.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O){return kn(O,!0,!0)}function Kn(O,J){return O===J||O!==O&&J!==J}function io(O){return bi(O)&>.call(O,"callee")&&(!Ut.call(O,"callee")||Pe.call(O)==i)}var Pi=Array.isArray;function yi(O){return O!=null&&so(O.length)&&!Bi(O)}function bi(O){return ti(O)&&yi(O)}var Hn=cr||Fr;function Bi(O){var J=ao(O)?Pe.call(O):"";return J==p||J==m}function so(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function ao(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function ti(O){return!!O&&typeof O=="object"}function zr(O){return yi(O)?sn(O):zn(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Ao}(dh,dh.exports)),dh.exports}var fh={exports:{}};fh.exports;var H0;function IC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",_="[object Number]",A="[object Null]",R="[object Object]",D="[object Promise]",I="[object Proxy]",B="[object RegExp]",F="[object Set]",j="[object String]",z="[object Symbol]",G="[object Undefined]",pe="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",ue="[object Int16Array]",oe="[object Int32Array]",ae="[object Uint8Array]",ge="[object Uint8ClampedArray]",re="[object Uint16Array]",ie="[object Uint32Array]",he=/[\\^$.*+?()[\]{}|]/g,Se=/^\[object .+?Constructor\]$/,Le=/^(?:0|[1-9]\d*)$/,ne={};ne[V]=ne[Q]=ne[se]=ne[ue]=ne[oe]=ne[ae]=ne[ge]=ne[re]=ne[ie]=!0,ne[c]=ne[d]=ne[P]=ne[p]=ne[U]=ne[m]=ne[g]=ne[v]=ne[T]=ne[_]=ne[R]=ne[B]=ne[F]=ne[j]=ne[pe]=!1;var ve=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ke=typeof self=="object"&&self&&self.Object===Object&&self,De=ve||ke||Function("return this")(),Oe=e&&!e.nodeType&&e,we=Oe&&!0&&r&&!r.nodeType&&r,_e=we&&we.exports===Oe,Ae=_e&&ve.process,$e=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),Fe=$e&&$e.isTypedArray;function Qe(O,J){for(var Ce=-1,rt=O==null?0:O.length,or=0,Kt=[];++Ce<rt;){var _r=O[Ce];J(_r,Ce,O)&&(Kt[or++]=_r)}return Kt}function Ue(O,J){for(var Ce=-1,rt=J.length,or=O.length;++Ce<rt;)O[or+Ce]=J[Ce];return O}function et(O,J){for(var Ce=-1,rt=O==null?0:O.length;++Ce<rt;)if(J(O[Ce],Ce,O))return!0;return!1}function ct(O,J){for(var Ce=-1,rt=Array(O);++Ce<O;)rt[Ce]=J(Ce);return rt}function Ct(O){return function(J){return O(J)}}function It(O,J){return O.has(J)}function Je(O,J){return O==null?void 0:O[J]}function Ke(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt,or){Ce[++J]=[or,rt]}),Ce}function ft(O,J){return function(Ce){return O(J(Ce))}}function gt(O){var J=-1,Ce=Array(O.size);return O.forEach(function(rt){Ce[++J]=rt}),Ce}var Pe=Array.prototype,Xe=Function.prototype,vt=Object.prototype,Nt=De["__core-js_shared__"],xt=Xe.toString,Lt=vt.hasOwnProperty,Qt=function(){var O=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Ut=vt.toString,fr=RegExp("^"+xt.call(Lt).replace(he,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=_e?De.Buffer:void 0,cr=De.Symbol,Te=De.Uint8Array,le=vt.propertyIsEnumerable,st=Pe.splice,yt=cr?cr.toStringTag:void 0,nt=Object.getOwnPropertySymbols,pt=hr?hr.isBuffer:void 0,ht=ft(Object.keys,Object),Ft=Gt(De,"DataView"),Ve=Gt(De,"Map"),at=Gt(De,"Promise"),lt=Gt(De,"Set"),_t=Gt(De,"WeakMap"),Ot=Gt(Object,"create"),Bt=dn(Ft),Wt=dn(Ve),Yt=dn(at),ir=dn(lt),zt=dn(_t),xr=cr?cr.prototype:void 0,jr=xr?xr.valueOf:void 0;function Ye(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function ee(){this.__data__=Ot?Ot(null):{},this.size=0}function be(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function ze(O){var J=this.__data__;if(Ot){var Ce=J[O];return Ce===n?void 0:Ce}return Lt.call(J,O)?J[O]:void 0}function Tt(O){var J=this.__data__;return Ot?J[O]!==void 0:Lt.call(J,O)}function jt(O,J){var Ce=this.__data__;return this.size+=this.has(O)?0:1,Ce[O]=Ot&&J===void 0?n:J,this}Ye.prototype.clear=ee,Ye.prototype.delete=be,Ye.prototype.get=ze,Ye.prototype.has=Tt,Ye.prototype.set=jt;function Dt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function er(){this.__data__=[],this.size=0}function Jt(O){var J=this.__data__,Ce=Fn(J,O);if(Ce<0)return!1;var rt=J.length-1;return Ce==rt?J.pop():st.call(J,Ce,1),--this.size,!0}function kt(O){var J=this.__data__,Ce=Fn(J,O);return Ce<0?void 0:J[Ce][1]}function xe(O){return Fn(this.__data__,O)>-1}function ot(O,J){var Ce=this.__data__,rt=Fn(Ce,O);return rt<0?(++this.size,Ce.push([O,J])):Ce[rt][1]=J,this}Dt.prototype.clear=er,Dt.prototype.delete=Jt,Dt.prototype.get=kt,Dt.prototype.has=xe,Dt.prototype.set=ot;function wt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var rt=O[J];this.set(rt[0],rt[1])}}function yr(){this.size=0,this.__data__={hash:new Ye,map:new(Ve||Dt),string:new Ye}}function Br(O){var J=Ht(this,O).delete(O);return this.size-=J?1:0,J}function lr(O){return Ht(this,O).get(O)}function br(O){return Ht(this,O).has(O)}function tn(O,J){var Ce=Ht(this,O),rt=Ce.size;return Ce.set(O,J),this.size+=Ce.size==rt?0:1,this}wt.prototype.clear=yr,wt.prototype.delete=Br,wt.prototype.get=lr,wt.prototype.has=br,wt.prototype.set=tn;function sn(O){var J=-1,Ce=O==null?0:O.length;for(this.__data__=new wt;++J<Ce;)this.add(O[J])}function Pn(O){return this.__data__.set(O,n),this}function Hr(O){return this.__data__.has(O)}sn.prototype.add=sn.prototype.push=Pn,sn.prototype.has=Hr;function rn(O){var J=this.__data__=new Dt(O);this.size=J.size}function kn(){this.__data__=new Dt,this.size=0}function Bn(O){var J=this.__data__,Ce=J.delete(O);return this.size=J.size,Ce}function _o(O){return this.__data__.get(O)}function Do(O){return this.__data__.has(O)}function Oo(O,J){var Ce=this.__data__;if(Ce instanceof Dt){var rt=Ce.__data__;if(!Ve||rt.length<t-1)return rt.push([O,J]),this.size=++Ce.size,this;Ce=this.__data__=new wt(rt)}return Ce.set(O,J),this.size=Ce.size,this}rn.prototype.clear=kn,rn.prototype.delete=Bn,rn.prototype.get=_o,rn.prototype.has=Do,rn.prototype.set=Oo;function zn(O,J){var Ce=io(O),rt=!Ce&&Kn(O),or=!Ce&&!rt&&yi(O),Kt=!Ce&&!rt&&!or&&ti(O),_r=Ce||rt||or||Kt,kr=_r?ct(O.length,String):[],Cr=kr.length;for(var Mr in O)Lt.call(O,Mr)&&!(_r&&(Mr=="length"||or&&(Mr=="offset"||Mr=="parent")||Kt&&(Mr=="buffer"||Mr=="byteLength"||Mr=="byteOffset")||In(Mr,Cr)))&&kr.push(Mr);return kr}function Fn(O,J){for(var Ce=O.length;Ce--;)if(Ao(O[Ce][0],J))return Ce;return-1}function Cn(O,J,Ce){var rt=J(O);return io(O)?rt:Ue(rt,Ce(O))}function oo(O){return O==null?O===void 0?G:A:yt&&yt in Object(O)?Vt(O):No(O)}function mn(O){return ao(O)&&oo(O)==c}function An(O,J,Ce,rt,or){return O===J?!0:O==null||J==null||!ao(O)&&!ao(J)?O!==O&&J!==J:k(O,J,Ce,rt,An,or)}function k(O,J,Ce,rt,or,Kt){var _r=io(O),kr=io(J),Cr=_r?d:an(O),Mr=kr?d:an(J);Cr=Cr==c?R:Cr,Mr=Mr==c?R:Mr;var fn=Cr==R,$n=Mr==R,nn=Cr==Mr;if(nn&&yi(O)){if(!yi(J))return!1;_r=!0,fn=!1}if(nn&&!fn)return Kt||(Kt=new rn),_r||ti(O)?qe(O,J,Ce,rt,or,Kt):Be(O,J,Cr,Ce,rt,or,Kt);if(!(Ce&o)){var Vr=fn&&Lt.call(O,"__wrapped__"),hn=$n&&Lt.call(J,"__wrapped__");if(Vr||hn){var po=Vr?O.value():O,Eo=hn?J.value():J;return Kt||(Kt=new rn),or(po,Eo,Ce,rt,Kt)}}return nn?(Kt||(Kt=new rn),tt(O,J,Ce,rt,or,Kt)):!1}function $(O){if(!so(O)||ho(O))return!1;var J=Hn(O)?fr:Se;return J.test(dn(O))}function X(O){return ao(O)&&Bi(O.length)&&!!ne[oo(O)]}function ce(O){if(!Zn(O))return ht(O);var J=[];for(var Ce in Object(O))Lt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function qe(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=O.length,Cr=J.length;if(kr!=Cr&&!(_r&&Cr>kr))return!1;var Mr=Kt.get(O);if(Mr&&Kt.get(J))return Mr==J;var fn=-1,$n=!0,nn=Ce&i?new sn:void 0;for(Kt.set(O,J),Kt.set(J,O);++fn<kr;){var Vr=O[fn],hn=J[fn];if(rt)var po=_r?rt(hn,Vr,fn,J,O,Kt):rt(Vr,hn,fn,O,J,Kt);if(po!==void 0){if(po)continue;$n=!1;break}if(nn){if(!et(J,function(Eo,Xn){if(!It(nn,Xn)&&(Vr===Eo||or(Vr,Eo,Ce,rt,Kt)))return nn.push(Xn)})){$n=!1;break}}else if(!(Vr===hn||or(Vr,hn,Ce,rt,Kt))){$n=!1;break}}return Kt.delete(O),Kt.delete(J),$n}function Be(O,J,Ce,rt,or,Kt,_r){switch(Ce){case U:if(O.byteLength!=J.byteLength||O.byteOffset!=J.byteOffset)return!1;O=O.buffer,J=J.buffer;case P:return!(O.byteLength!=J.byteLength||!Kt(new Te(O),new Te(J)));case p:case m:case _:return Ao(+O,+J);case g:return O.name==J.name&&O.message==J.message;case B:case j:return O==J+"";case T:var kr=Ke;case F:var Cr=rt&o;if(kr||(kr=gt),O.size!=J.size&&!Cr)return!1;var Mr=_r.get(O);if(Mr)return Mr==J;rt|=i,_r.set(O,J);var fn=qe(kr(O),kr(J),rt,or,Kt,_r);return _r.delete(O),fn;case z:if(jr)return jr.call(O)==jr.call(J)}return!1}function tt(O,J,Ce,rt,or,Kt){var _r=Ce&o,kr=Et(O),Cr=kr.length,Mr=Et(J),fn=Mr.length;if(Cr!=fn&&!_r)return!1;for(var $n=Cr;$n--;){var nn=kr[$n];if(!(_r?nn in J:Lt.call(J,nn)))return!1}var Vr=Kt.get(O);if(Vr&&Kt.get(J))return Vr==J;var hn=!0;Kt.set(O,J),Kt.set(J,O);for(var po=_r;++$n<Cr;){nn=kr[$n];var Eo=O[nn],Xn=J[nn];if(rt)var Fi=_r?rt(Xn,Eo,nn,J,O,Kt):rt(Eo,Xn,nn,O,J,Kt);if(!(Fi===void 0?Eo===Xn||or(Eo,Xn,Ce,rt,Kt):Fi)){hn=!1;break}po||(po=nn=="constructor")}if(hn&&!po){var ri=O.constructor,vn=J.constructor;ri!=vn&&"constructor"in O&&"constructor"in J&&!(typeof ri=="function"&&ri instanceof ri&&typeof vn=="function"&&vn instanceof vn)&&(hn=!1)}return Kt.delete(O),Kt.delete(J),hn}function Et(O){return Cn(O,zr,Rr)}function Ht(O,J){var Ce=O.__data__;return Mn(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Gt(O,J){var Ce=Je(O,J);return $(Ce)?Ce:void 0}function Vt(O){var J=Lt.call(O,yt),Ce=O[yt];try{O[yt]=void 0;var rt=!0}catch{}var or=Ut.call(O);return rt&&(J?O[yt]=Ce:delete O[yt]),or}var Rr=nt?function(O){return O==null?[]:(O=Object(O),Qe(nt(O),function(J){return le.call(O,J)}))}:Ir,an=oo;(Ft&&an(new Ft(new ArrayBuffer(1)))!=U||Ve&&an(new Ve)!=T||at&&an(at.resolve())!=D||lt&&an(new lt)!=F||_t&&an(new _t)!=pe)&&(an=function(O){var J=oo(O),Ce=J==R?O.constructor:void 0,rt=Ce?dn(Ce):"";if(rt)switch(rt){case Bt:return U;case Wt:return T;case Yt:return D;case ir:return F;case zt:return pe}return J});function In(O,J){return J=J??a,!!J&&(typeof O=="number"||Le.test(O))&&O>-1&&O%1==0&&O<J}function Mn(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function ho(O){return!!Qt&&Qt in O}function Zn(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||vt;return O===Ce}function No(O){return Ut.call(O)}function dn(O){if(O!=null){try{return xt.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O,J){return O===J||O!==O&&J!==J}var Kn=mn(function(){return arguments}())?mn:function(O){return ao(O)&&Lt.call(O,"callee")&&!le.call(O,"callee")},io=Array.isArray;function Pi(O){return O!=null&&Bi(O.length)&&!Hn(O)}var yi=pt||Fr;function bi(O,J){return An(O,J)}function Hn(O){if(!so(O))return!1;var J=oo(O);return J==v||J==w||J==h||J==I}function Bi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function so(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function ao(O){return O!=null&&typeof O=="object"}var ti=Fe?Ct(Fe):X;function zr(O){return Pi(O)?zn(O):ce(O)}function Ir(){return[]}function Fr(){return!1}r.exports=bi}(fh,fh.exports)),fh.exports}var yp={},$0;function B9(){if($0)return yp;$0=1,Object.defineProperty(yp,"__esModule",{value:!0});const r=kC(),e=IC();var t;return function(n){function o(d={},h={},p=!1){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});let m=r(h);p||(m=Object.keys(m).reduce((g,v)=>(m[v]!=null&&(g[v]=m[v]),g),{}));for(const g in d)d[g]!==void 0&&h[g]===void 0&&(m[g]=d[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(d={},h={}){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});const p=Object.keys(d).concat(Object.keys(h)).reduce((m,g)=>(e(d[g],h[g])||(m[g]=h[g]===void 0?null:h[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(d={},h={}){d=d||{};const p=Object.keys(h).reduce((m,g)=>(h[g]!==d[g]&&d[g]!==void 0&&(m[g]=h[g]),m),{});return Object.keys(d).reduce((m,g)=>(d[g]!==h[g]&&h[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(d,h,p=!1){if(typeof d!="object")return h;if(typeof h!="object")return;if(!p)return h;const m=Object.keys(h).reduce((g,v)=>(d[v]===void 0&&(g[v]=h[v]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),yp.default=t,yp}var bp={},q0;function MC(){if(q0)return bp;q0=1,Object.defineProperty(bp,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),bp.default=r,bp}var xp={},U0;function F9(){if(U0)return xp;U0=1,Object.defineProperty(xp,"__esModule",{value:!0});const r=MC();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return xp.default=e,xp}var W0;function j9(){return W0||(W0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=P9(),n=kC(),o=IC(),i=B9();e.AttributeMap=i.default;const a=MC();e.Op=a.default;const c=F9();e.OpIterator=c.default;const d="\0",h=(m,g)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(g)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(g)[0]}`);return[v,m[v],g[v]]};class p{constructor(g){Array.isArray(g)?this.ops=g:g!=null&&Array.isArray(g.ops)?this.ops=g.ops:this.ops=[]}static registerEmbed(g,v){this.handlers[g]=v}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const v=this.handlers[g];if(!v)throw new Error(`no handlers for embed type "${g}"`);return v}insert(g,v){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,v){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(g){let v=this.ops.length,w=this.ops[v-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(g),this;if(o(g.attributes,w.attributes)){if(typeof g.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this}}return v===this.ops.length?this.ops.push(g):this.ops.splice(v,0,g),this}chop(){const g=this.ops[this.ops.length-1];return g&&typeof g.retain=="number"&&!g.attributes&&this.ops.pop(),this}filter(g){return this.ops.filter(g)}forEach(g){this.ops.forEach(g)}map(g){return this.ops.map(g)}partition(g){const v=[],w=[];return this.forEach(T=>{(g(T)?v:w).push(T)}),[v,w]}reduce(g,v){return this.ops.reduce(g,v)}changeLength(){return this.reduce((g,v)=>v.insert?g+a.default.length(v):v.delete?g-v.delete:g,0)}length(){return this.reduce((g,v)=>g+a.default.length(v),0)}slice(g=0,v=1/0){const w=[],T=new c.default(this.ops);let _=0;for(;_<v&&T.hasNext();){let A;_<g?A=T.next(g-_):(A=T.next(v-_),w.push(A)),_+=a.default.length(A)}return new p(w)}compose(g){const v=new c.default(this.ops),w=new c.default(g.ops),T=[],_=w.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){let R=_.retain;for(;v.peekType()==="insert"&&v.peekLength()<=R;)R-=v.peekLength(),T.push(v.next());_.retain-R>0&&w.next(_.retain-R)}const A=new p(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")A.push(w.next());else if(v.peekType()==="delete")A.push(v.next());else{const R=Math.min(v.peekLength(),w.peekLength()),D=v.next(R),I=w.next(R);if(I.retain){const B={};if(typeof D.retain=="number")B.retain=typeof I.retain=="number"?R:I.retain;else if(typeof I.retain=="number")D.retain==null?B.insert=D.insert:B.retain=D.retain;else{const j=D.retain==null?"insert":"retain",[z,G,pe]=h(D[j],I.retain),P=p.getHandler(z);B[j]={[z]:P.compose(G,pe,j==="retain")}}const F=i.default.compose(D.attributes,I.attributes,typeof D.retain=="number");if(F&&(B.attributes=F),A.push(B),!w.hasNext()&&o(A.ops[A.ops.length-1],B)){const j=new p(v.rest());return A.concat(j).chop()}}else typeof I.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&A.push(I)}return A.chop()}concat(g){const v=new p(this.ops.slice());return g.ops.length>0&&(v.push(g.ops[0]),v.ops=v.ops.concat(g.ops.slice(1))),v}diff(g,v){if(this.ops===g.ops)return new p;const w=[this,g].map(D=>D.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:d;const B=D===g?"on":"with";throw new Error("diff() called "+B+" non-document")}).join("")),T=new p,_=t(w[0],w[1],v,!0),A=new c.default(this.ops),R=new c.default(g.ops);return _.forEach(D=>{let I=D[1].length;for(;I>0;){let B=0;switch(D[0]){case t.INSERT:B=Math.min(R.peekLength(),I),T.push(R.next(B));break;case t.DELETE:B=Math.min(I,A.peekLength()),A.next(B),T.delete(B);break;case t.EQUAL:B=Math.min(A.peekLength(),R.peekLength(),I);const F=A.next(B),j=R.next(B);o(F.insert,j.insert)?T.retain(B,i.default.diff(F.attributes,j.attributes)):T.push(j).delete(B);break}I-=B}}),T.chop()}eachLine(g,v=`
|
169
169
|
`){const w=new c.default(this.ops);let T=new p,_=0;for(;w.hasNext();){if(w.peekType()!=="insert")return;const A=w.peek(),R=a.default.length(A)-w.peekLength(),D=typeof A.insert=="string"?A.insert.indexOf(v,R)-R:-1;if(D<0)T.push(w.next());else if(D>0)T.push(w.next(D));else{if(g(T,w.next(1).attributes||{},_)===!1)return;_+=1,T=new p}}T.length()>0&&g(T,{},_)}invert(g){const v=new p;return this.reduce((w,T)=>{if(T.insert)v.delete(a.default.length(T));else{if(typeof T.retain=="number"&&T.attributes==null)return v.retain(T.retain),w+T.retain;if(T.delete||typeof T.retain=="number"){const _=T.delete||T.retain;return g.slice(w,w+_).forEach(R=>{T.delete?v.push(R):T.retain&&T.attributes&&v.retain(a.default.length(R),i.default.invert(T.attributes,R.attributes))}),w+_}else if(typeof T.retain=="object"&&T.retain!==null){const _=g.slice(w,w+1),A=new c.default(_.ops).next(),[R,D,I]=h(T.retain,A.insert),B=p.getHandler(R);return v.retain({[R]:B.invert(D,I)},i.default.invert(T.attributes,A.attributes)),w+1}}return w},0),v.chop()}transform(g,v=!1){if(v=!!v,typeof g=="number")return this.transformPosition(g,v);const w=g,T=new c.default(this.ops),_=new c.default(w.ops),A=new p;for(;T.hasNext()||_.hasNext();)if(T.peekType()==="insert"&&(v||_.peekType()!=="insert"))A.retain(a.default.length(T.next()));else if(_.peekType()==="insert")A.push(_.next());else{const R=Math.min(T.peekLength(),_.peekLength()),D=T.next(R),I=_.next(R);if(D.delete)continue;if(I.delete)A.push(I);else{const B=D.retain,F=I.retain;let j=typeof F=="object"&&F!==null?F:R;if(typeof B=="object"&&B!==null&&typeof F=="object"&&F!==null){const z=Object.keys(B)[0];if(z===Object.keys(F)[0]){const G=p.getHandler(z);G&&(j={[z]:G.transform(B[z],F[z],v)})}}A.retain(j,i.default.transform(D.attributes,I.attributes,v))}}return A.chop()}transformPosition(g,v=!1){v=!!v;const w=new c.default(this.ops);let T=0;for(;w.hasNext()&&T<=g;){const _=w.peekLength(),A=w.peekType();if(w.next(),A==="delete"){g-=Math.min(_,g-T);continue}else A==="insert"&&(T<g||!v)&&(g+=_);T+=_}return g}}p.Op=a.default,p.OpIterator=c.default,p.AttributeMap=i.default,p.handlers={},e.default=p,r.exports=p,r.exports.default=p}(vp,vp.exports)),vp.exports}var Ds=j9();const rr=yf(Ds);var LC=typeof global=="object"&&global&&global.Object===Object&&global,z9=typeof self=="object"&&self&&self.Object===Object&&self,il=LC||z9||Function("return this")(),Yc=il.Symbol,DC=Object.prototype,H9=DC.hasOwnProperty,$9=DC.toString,th=Yc?Yc.toStringTag:void 0;function q9(r){var e=H9.call(r,th),t=r[th];try{r[th]=void 0;var n=!0}catch{}var o=$9.call(r);return n&&(e?r[th]=t:delete r[th]),o}var U9=Object.prototype,W9=U9.toString;function V9(r){return W9.call(r)}var G9="[object Null]",Y9="[object Undefined]",V0=Yc?Yc.toStringTag:void 0;function xf(r){return r==null?r===void 0?Y9:G9:V0&&V0 in Object(r)?q9(r):V9(r)}function jl(r){return r!=null&&typeof r=="object"}var Wu=Array.isArray;function Xc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function OC(r){return r}var Z9="[object AsyncFunction]",K9="[object Function]",X9="[object GeneratorFunction]",J9="[object Proxy]";function Mv(r){if(!Xc(r))return!1;var e=xf(r);return e==K9||e==X9||e==Z9||e==J9}var xm=il["__core-js_shared__"],G0=function(){var r=/[^.]+$/.exec(xm&&xm.keys&&xm.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Q9(r){return!!G0&&G0 in r}var eM=Function.prototype,tM=eM.toString;function Xu(r){if(r!=null){try{return tM.call(r)}catch{}try{return r+""}catch{}}return""}var rM=/[\\^$.*+?()[\]{}|]/g,nM=/^\[object .+?Constructor\]$/,oM=Function.prototype,iM=Object.prototype,sM=oM.toString,aM=iM.hasOwnProperty,lM=RegExp("^"+sM.call(aM).replace(rM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cM(r){if(!Xc(r)||Q9(r))return!1;var e=Mv(r)?lM:nM;return e.test(Xu(r))}function uM(r,e){return r==null?void 0:r[e]}function Ju(r,e){var t=uM(r,e);return cM(t)?t:void 0}var B1=Ju(il,"WeakMap"),Y0=Object.create,dM=function(){function r(){}return function(e){if(!Xc(e))return{};if(Y0)return Y0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function fM(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function hM(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var pM=800,gM=16,mM=Date.now;function vM(r){var e=0,t=0;return function(){var n=mM(),o=gM-(n-t);if(t=n,o>0){if(++e>=pM)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function yM(r){return function(){return r}}var tg=function(){try{var r=Ju(Object,"defineProperty");return r({},"",{}),r}catch{}}(),bM=tg?function(r,e){return tg(r,"toString",{configurable:!0,enumerable:!1,value:yM(e),writable:!0})}:OC,xM=vM(bM);function wM(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var CM=9007199254740991,SM=/^(?:0|[1-9]\d*)$/;function NC(r,e){var t=typeof r;return e=e??CM,!!e&&(t=="number"||t!="symbol"&&SM.test(r))&&r>-1&&r%1==0&&r<e}function Lv(r,e,t){e=="__proto__"&&tg?tg(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function Bh(r,e){return r===e||r!==r&&e!==e}var _M=Object.prototype,AM=_M.hasOwnProperty;function PC(r,e,t){var n=r[e];(!(AM.call(r,e)&&Bh(n,t))||t===void 0&&!(e in r))&&Lv(r,e,t)}function EM(r,e,t,n){var o=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var c=e[i],d=void 0;d===void 0&&(d=r[c]),o?Lv(t,c,d):PC(t,c,d)}return t}var Z0=Math.max;function TM(r,e,t){return e=Z0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,o=-1,i=Z0(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=t(a),fM(r,this,c)}}function RM(r,e){return xM(TM(r,e,OC),r+"")}var kM=9007199254740991;function BC(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=kM}function _g(r){return r!=null&&BC(r.length)&&!Mv(r)}function IM(r,e,t){if(!Xc(t))return!1;var n=typeof e;return(n=="number"?_g(t)&&NC(e,t.length):n=="string"&&e in t)?Bh(t[e],r):!1}function MM(r){return RM(function(e,t){var n=-1,o=t.length,i=o>1?t[o-1]:void 0,a=o>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(o--,i):void 0,a&&IM(t[0],t[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var c=t[n];c&&r(e,c,n,i)}return e})}var LM=Object.prototype;function Dv(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||LM;return r===t}function DM(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var OM="[object Arguments]";function K0(r){return jl(r)&&xf(r)==OM}var FC=Object.prototype,NM=FC.hasOwnProperty,PM=FC.propertyIsEnumerable,F1=K0(function(){return arguments}())?K0:function(r){return jl(r)&&NM.call(r,"callee")&&!PM.call(r,"callee")};function BM(){return!1}var jC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,X0=jC&&typeof module=="object"&&module&&!module.nodeType&&module,FM=X0&&X0.exports===jC,J0=FM?il.Buffer:void 0,jM=J0?J0.isBuffer:void 0,_h=jM||BM,zM="[object Arguments]",HM="[object Array]",$M="[object Boolean]",qM="[object Date]",UM="[object Error]",WM="[object Function]",VM="[object Map]",GM="[object Number]",YM="[object Object]",ZM="[object RegExp]",KM="[object Set]",XM="[object String]",JM="[object WeakMap]",QM="[object ArrayBuffer]",eL="[object DataView]",tL="[object Float32Array]",rL="[object Float64Array]",nL="[object Int8Array]",oL="[object Int16Array]",iL="[object Int32Array]",sL="[object Uint8Array]",aL="[object Uint8ClampedArray]",lL="[object Uint16Array]",cL="[object Uint32Array]",On={};On[tL]=On[rL]=On[nL]=On[oL]=On[iL]=On[sL]=On[aL]=On[lL]=On[cL]=!0;On[zM]=On[HM]=On[QM]=On[$M]=On[eL]=On[qM]=On[UM]=On[WM]=On[VM]=On[GM]=On[YM]=On[ZM]=On[KM]=On[XM]=On[JM]=!1;function uL(r){return jl(r)&&BC(r.length)&&!!On[xf(r)]}function Ov(r){return function(e){return r(e)}}var zC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ph=zC&&typeof module=="object"&&module&&!module.nodeType&&module,dL=ph&&ph.exports===zC,wm=dL&&LC.process,lf=function(){try{var r=ph&&ph.require&&ph.require("util").types;return r||wm&&wm.binding&&wm.binding("util")}catch{}}(),Q0=lf&&lf.isTypedArray,Nv=Q0?Ov(Q0):uL,fL=Object.prototype,hL=fL.hasOwnProperty;function HC(r,e){var t=Wu(r),n=!t&&F1(r),o=!t&&!n&&_h(r),i=!t&&!n&&!o&&Nv(r),a=t||n||o||i,c=a?DM(r.length,String):[],d=c.length;for(var h in r)(e||hL.call(r,h))&&!(a&&(h=="length"||o&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||NC(h,d)))&&c.push(h);return c}function $C(r,e){return function(t){return r(e(t))}}var pL=$C(Object.keys,Object),gL=Object.prototype,mL=gL.hasOwnProperty;function vL(r){if(!Dv(r))return pL(r);var e=[];for(var t in Object(r))mL.call(r,t)&&t!="constructor"&&e.push(t);return e}function yL(r){return _g(r)?HC(r):vL(r)}function bL(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var xL=Object.prototype,wL=xL.hasOwnProperty;function CL(r){if(!Xc(r))return bL(r);var e=Dv(r),t=[];for(var n in r)n=="constructor"&&(e||!wL.call(r,n))||t.push(n);return t}function qC(r){return _g(r)?HC(r,!0):CL(r)}var Ah=Ju(Object,"create");function SL(){this.__data__=Ah?Ah(null):{},this.size=0}function _L(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var AL="__lodash_hash_undefined__",EL=Object.prototype,TL=EL.hasOwnProperty;function RL(r){var e=this.__data__;if(Ah){var t=e[r];return t===AL?void 0:t}return TL.call(e,r)?e[r]:void 0}var kL=Object.prototype,IL=kL.hasOwnProperty;function ML(r){var e=this.__data__;return Ah?e[r]!==void 0:IL.call(e,r)}var LL="__lodash_hash_undefined__";function DL(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Ah&&e===void 0?LL:e,this}function Vu(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Vu.prototype.clear=SL;Vu.prototype.delete=_L;Vu.prototype.get=RL;Vu.prototype.has=ML;Vu.prototype.set=DL;function OL(){this.__data__=[],this.size=0}function Ag(r,e){for(var t=r.length;t--;)if(Bh(r[t][0],e))return t;return-1}var NL=Array.prototype,PL=NL.splice;function BL(r){var e=this.__data__,t=Ag(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():PL.call(e,t,1),--this.size,!0}function FL(r){var e=this.__data__,t=Ag(e,r);return t<0?void 0:e[t][1]}function jL(r){return Ag(this.__data__,r)>-1}function zL(r,e){var t=this.__data__,n=Ag(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function $l(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}$l.prototype.clear=OL;$l.prototype.delete=BL;$l.prototype.get=FL;$l.prototype.has=jL;$l.prototype.set=zL;var Eh=Ju(il,"Map");function HL(){this.size=0,this.__data__={hash:new Vu,map:new(Eh||$l),string:new Vu}}function $L(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function Eg(r,e){var t=r.__data__;return $L(e)?t[typeof e=="string"?"string":"hash"]:t.map}function qL(r){var e=Eg(this,r).delete(r);return this.size-=e?1:0,e}function UL(r){return Eg(this,r).get(r)}function WL(r){return Eg(this,r).has(r)}function VL(r,e){var t=Eg(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Qu(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Qu.prototype.clear=HL;Qu.prototype.delete=qL;Qu.prototype.get=UL;Qu.prototype.has=WL;Qu.prototype.set=VL;function GL(r,e){for(var t=-1,n=e.length,o=r.length;++t<n;)r[o+t]=e[t];return r}var UC=$C(Object.getPrototypeOf,Object),YL="[object Object]",ZL=Function.prototype,KL=Object.prototype,WC=ZL.toString,XL=KL.hasOwnProperty,JL=WC.call(Object);function QL(r){if(!jl(r)||xf(r)!=YL)return!1;var e=UC(r);if(e===null)return!0;var t=XL.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&WC.call(t)==JL}function e7(){this.__data__=new $l,this.size=0}function t7(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function r7(r){return this.__data__.get(r)}function n7(r){return this.__data__.has(r)}var o7=200;function i7(r,e){var t=this.__data__;if(t instanceof $l){var n=t.__data__;if(!Eh||n.length<o7-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Qu(n)}return t.set(r,e),this.size=t.size,this}function Xa(r){var e=this.__data__=new $l(r);this.size=e.size}Xa.prototype.clear=e7;Xa.prototype.delete=t7;Xa.prototype.get=r7;Xa.prototype.has=n7;Xa.prototype.set=i7;var VC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,eb=VC&&typeof module=="object"&&module&&!module.nodeType&&module,s7=eb&&eb.exports===VC,tb=s7?il.Buffer:void 0,rb=tb?tb.allocUnsafe:void 0;function GC(r,e){if(e)return r.slice();var t=r.length,n=rb?rb(t):new r.constructor(t);return r.copy(n),n}function a7(r,e){for(var t=-1,n=r==null?0:r.length,o=0,i=[];++t<n;){var a=r[t];e(a,t,r)&&(i[o++]=a)}return i}function l7(){return[]}var c7=Object.prototype,u7=c7.propertyIsEnumerable,nb=Object.getOwnPropertySymbols,d7=nb?function(r){return r==null?[]:(r=Object(r),a7(nb(r),function(e){return u7.call(r,e)}))}:l7;function f7(r,e,t){var n=e(r);return Wu(r)?n:GL(n,t(r))}function j1(r){return f7(r,yL,d7)}var z1=Ju(il,"DataView"),H1=Ju(il,"Promise"),$1=Ju(il,"Set"),ob="[object Map]",h7="[object Object]",ib="[object Promise]",sb="[object Set]",ab="[object WeakMap]",lb="[object DataView]",p7=Xu(z1),g7=Xu(Eh),m7=Xu(H1),v7=Xu($1),y7=Xu(B1),ca=xf;(z1&&ca(new z1(new ArrayBuffer(1)))!=lb||Eh&&ca(new Eh)!=ob||H1&&ca(H1.resolve())!=ib||$1&&ca(new $1)!=sb||B1&&ca(new B1)!=ab)&&(ca=function(r){var e=xf(r),t=e==h7?r.constructor:void 0,n=t?Xu(t):"";if(n)switch(n){case p7:return lb;case g7:return ob;case m7:return ib;case v7:return sb;case y7:return ab}return e});var b7=Object.prototype,x7=b7.hasOwnProperty;function w7(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&x7.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var rg=il.Uint8Array;function Pv(r){var e=new r.constructor(r.byteLength);return new rg(e).set(new rg(r)),e}function C7(r,e){var t=Pv(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var S7=/\w*$/;function _7(r){var e=new r.constructor(r.source,S7.exec(r));return e.lastIndex=r.lastIndex,e}var cb=Yc?Yc.prototype:void 0,ub=cb?cb.valueOf:void 0;function A7(r){return ub?Object(ub.call(r)):{}}function YC(r,e){var t=e?Pv(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var E7="[object Boolean]",T7="[object Date]",R7="[object Map]",k7="[object Number]",I7="[object RegExp]",M7="[object Set]",L7="[object String]",D7="[object Symbol]",O7="[object ArrayBuffer]",N7="[object DataView]",P7="[object Float32Array]",B7="[object Float64Array]",F7="[object Int8Array]",j7="[object Int16Array]",z7="[object Int32Array]",H7="[object Uint8Array]",$7="[object Uint8ClampedArray]",q7="[object Uint16Array]",U7="[object Uint32Array]";function W7(r,e,t){var n=r.constructor;switch(e){case O7:return Pv(r);case E7:case T7:return new n(+r);case N7:return C7(r);case P7:case B7:case F7:case j7:case z7:case H7:case $7:case q7:case U7:return YC(r,t);case R7:return new n;case k7:case L7:return new n(r);case I7:return _7(r);case M7:return new n;case D7:return A7(r)}}function ZC(r){return typeof r.constructor=="function"&&!Dv(r)?dM(UC(r)):{}}var V7="[object Map]";function G7(r){return jl(r)&&ca(r)==V7}var db=lf&&lf.isMap,Y7=db?Ov(db):G7,Z7="[object Set]";function K7(r){return jl(r)&&ca(r)==Z7}var fb=lf&&lf.isSet,X7=fb?Ov(fb):K7,J7=1,KC="[object Arguments]",Q7="[object Array]",eD="[object Boolean]",tD="[object Date]",rD="[object Error]",XC="[object Function]",nD="[object GeneratorFunction]",oD="[object Map]",iD="[object Number]",JC="[object Object]",sD="[object RegExp]",aD="[object Set]",lD="[object String]",cD="[object Symbol]",uD="[object WeakMap]",dD="[object ArrayBuffer]",fD="[object DataView]",hD="[object Float32Array]",pD="[object Float64Array]",gD="[object Int8Array]",mD="[object Int16Array]",vD="[object Int32Array]",yD="[object Uint8Array]",bD="[object Uint8ClampedArray]",xD="[object Uint16Array]",wD="[object Uint32Array]",Tn={};Tn[KC]=Tn[Q7]=Tn[dD]=Tn[fD]=Tn[eD]=Tn[tD]=Tn[hD]=Tn[pD]=Tn[gD]=Tn[mD]=Tn[vD]=Tn[oD]=Tn[iD]=Tn[JC]=Tn[sD]=Tn[aD]=Tn[lD]=Tn[cD]=Tn[yD]=Tn[bD]=Tn[xD]=Tn[wD]=!0;Tn[rD]=Tn[XC]=Tn[uD]=!1;function $p(r,e,t,n,o,i){var a,c=e&J7;if(a!==void 0)return a;if(!Xc(r))return r;var d=Wu(r);if(d)a=w7(r);else{var h=ca(r),p=h==XC||h==nD;if(_h(r))return GC(r,c);if(h==JC||h==KC||p&&!o)a=p?{}:ZC(r);else{if(!Tn[h])return o?r:{};a=W7(r,h,c)}}i||(i=new Xa);var m=i.get(r);if(m)return m;i.set(r,a),X7(r)?r.forEach(function(w){a.add($p(w,e,t,w,r,i))}):Y7(r)&&r.forEach(function(w,T){a.set(T,$p(w,e,t,T,r,i))});var g=j1,v=d?void 0:g(r);return wM(v||r,function(w,T){v&&(T=w,w=r[T]),PC(a,T,$p(w,e,t,T,r,i))}),a}var CD=1,SD=4;function Qd(r){return $p(r,CD|SD)}var _D="__lodash_hash_undefined__";function AD(r){return this.__data__.set(r,_D),this}function ED(r){return this.__data__.has(r)}function ng(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Qu;++e<t;)this.add(r[e])}ng.prototype.add=ng.prototype.push=AD;ng.prototype.has=ED;function TD(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function RD(r,e){return r.has(e)}var kD=1,ID=2;function QC(r,e,t,n,o,i){var a=t&kD,c=r.length,d=e.length;if(c!=d&&!(a&&d>c))return!1;var h=i.get(r),p=i.get(e);if(h&&p)return h==e&&p==r;var m=-1,g=!0,v=t&ID?new ng:void 0;for(i.set(r,e),i.set(e,r);++m<c;){var w=r[m],T=e[m];if(n)var _=a?n(T,w,m,e,r,i):n(w,T,m,r,e,i);if(_!==void 0){if(_)continue;g=!1;break}if(v){if(!TD(e,function(A,R){if(!RD(v,R)&&(w===A||o(w,A,t,n,i)))return v.push(R)})){g=!1;break}}else if(!(w===T||o(w,T,t,n,i))){g=!1;break}}return i.delete(r),i.delete(e),g}function MD(r){var e=-1,t=Array(r.size);return r.forEach(function(n,o){t[++e]=[o,n]}),t}function LD(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var DD=1,OD=2,ND="[object Boolean]",PD="[object Date]",BD="[object Error]",FD="[object Map]",jD="[object Number]",zD="[object RegExp]",HD="[object Set]",$D="[object String]",qD="[object Symbol]",UD="[object ArrayBuffer]",WD="[object DataView]",hb=Yc?Yc.prototype:void 0,Cm=hb?hb.valueOf:void 0;function VD(r,e,t,n,o,i,a){switch(t){case WD:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case UD:return!(r.byteLength!=e.byteLength||!i(new rg(r),new rg(e)));case ND:case PD:case jD:return Bh(+r,+e);case BD:return r.name==e.name&&r.message==e.message;case zD:case $D:return r==e+"";case FD:var c=MD;case HD:var d=nⅅif(c||(c=LD),r.size!=e.size&&!d)return!1;var h=a.get(r);if(h)return h==e;n|=OD,a.set(r,e);var p=QC(c(r),c(e),n,o,i,a);return a.delete(r),p;case qD:if(Cm)return Cm.call(r)==Cm.call(e)}return!1}var GD=1,YD=Object.prototype,ZD=YD.hasOwnProperty;function KD(r,e,t,n,o,i){var a=t&GD,c=j1(r),d=c.length,h=j1(e),p=h.length;if(d!=p&&!a)return!1;for(var m=d;m--;){var g=c[m];if(!(a?g in e:ZD.call(e,g)))return!1}var v=i.get(r),w=i.get(e);if(v&&w)return v==e&&w==r;var T=!0;i.set(r,e),i.set(e,r);for(var _=a;++m<d;){g=c[m];var A=r[g],R=e[g];if(n)var D=a?n(R,A,g,e,r,i):n(A,R,g,r,e,i);if(!(D===void 0?A===R||o(A,R,t,n,i):D)){T=!1;break}_||(_=g=="constructor")}if(T&&!_){var I=r.constructor,B=e.constructor;I!=B&&"constructor"in r&&"constructor"in e&&!(typeof I=="function"&&I instanceof I&&typeof B=="function"&&B instanceof B)&&(T=!1)}return i.delete(r),i.delete(e),T}var XD=1,pb="[object Arguments]",gb="[object Array]",wp="[object Object]",JD=Object.prototype,mb=JD.hasOwnProperty;function QD(r,e,t,n,o,i){var a=Wu(r),c=Wu(e),d=a?gb:ca(r),h=c?gb:ca(e);d=d==pb?wp:d,h=h==pb?wp:h;var p=d==wp,m=h==wp,g=d==h;if(g&&_h(r)){if(!_h(e))return!1;a=!0,p=!1}if(g&&!p)return i||(i=new Xa),a||Nv(r)?QC(r,e,t,n,o,i):VD(r,e,d,t,n,o,i);if(!(t&XD)){var v=p&&mb.call(r,"__wrapped__"),w=m&&mb.call(e,"__wrapped__");if(v||w){var T=v?r.value():r,_=w?e.value():e;return i||(i=new Xa),o(T,_,t,n,i)}}return g?(i||(i=new Xa),KD(r,e,t,n,o,i)):!1}function e2(r,e,t,n,o){return r===e?!0:r==null||e==null||!jl(r)&&!jl(e)?r!==r&&e!==e:QD(r,e,t,n,e2,o)}function eO(r){return function(e,t,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var d=a[++o];if(t(i[d],d,i)===!1)break}return e}}var tO=eO();function q1(r,e,t){(t!==void 0&&!Bh(r[e],t)||t===void 0&&!(e in r))&&Lv(r,e,t)}function rO(r){return jl(r)&&_g(r)}function U1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function nO(r){return EM(r,qC(r))}function oO(r,e,t,n,o,i,a){var c=U1(r,t),d=U1(e,t),h=a.get(d);if(h){q1(r,t,h);return}var p=i?i(c,d,t+"",r,e,a):void 0,m=p===void 0;if(m){var g=Wu(d),v=!g&&_h(d),w=!g&&!v&&Nv(d);p=d,g||v||w?Wu(c)?p=c:rO(c)?p=hM(c):v?(m=!1,p=GC(d,!0)):w?(m=!1,p=YC(d,!0)):p=[]:QL(d)||F1(d)?(p=c,F1(c)?p=nO(c):(!Xc(c)||Mv(c))&&(p=ZC(d))):m=!1}m&&(a.set(d,p),o(p,d,n,i,a),a.delete(d)),q1(r,t,p)}function t2(r,e,t,n,o){r!==e&&tO(e,function(i,a){if(o||(o=new Xa),Xc(i))oO(r,e,a,t,t2,n,o);else{var c=n?n(U1(r,a),i,a+"",r,e,o):void 0;c===void 0&&(c=i),q1(r,a,c)}},qC)}function Fc(r,e){return e2(r,e)}var Uc=MM(function(r,e,t){t2(r,e,t)}),nr=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(nr||{});class tl{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const o=nr.TYPE&nr.ATTRIBUTE;this.scope=n.scope!=null?n.scope&nr.LEVEL|o:nr.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class ef extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const r2=class W1{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const o=this.query(t);if(o==null)throw new ef(`Unable to create ${t} blot`);const i=o,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(n),c=new i(e,a,n);return W1.blots.set(c.domNode,c),c}find(e,t=!1){return W1.find(e,t)}query(e,t=nr.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&nr.LEVEL&nr.BLOCK?n=this.types.block:e&nr.LEVEL&nr.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(o=>(n=this.classes[o],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&nr.LEVEL&n.scope&&t&nr.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,o="attrName"in t;if(!n&&!o)throw new ef("Invalid definition");if(n&&t.blotName==="abstract")throw new ef("Cannot register abstract class");const i=n?t.blotName:o?t.attrName:void 0;return this.types[i]=t,o?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};r2.blots=new WeakMap;let cf=r2;function vb(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class iO extends tl{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){vb(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(vb(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const ya=iO;function Sm(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class sO extends tl{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Sm(this.keyName)]=t,!0):!1}remove(e){e.style[Sm(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Sm(this.keyName)];return this.canAdd(e,t)?t:""}}const Jc=sO;class aO{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=cf.find(this.domNode);if(e==null)return;const t=tl.keys(this.domNode),n=ya.keys(this.domNode),o=Jc.keys(this.domNode);t.concat(n).concat(o).forEach(i=>{const a=e.scroll.query(i,nr.ATTRIBUTE);a instanceof tl&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Tg=aO,n2=class{constructor(e,t){this.scroll=e,this.domNode=t,cf.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new ef("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),cf.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,o){const i=this.isolate(e,t);if(this.scroll.query(n,nr.BLOT)!=null&&o)i.wrap(n,o);else if(this.scroll.query(n,nr.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(n,o)}}insertAt(e,t,n){const o=n==null?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(o,i||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new ef(`Cannot wrap ${e}`);return n.appendChild(this),n}};n2.blotName="abstract";let o2=n2;const i2=class extends o2{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};i2.scope=nr.INLINE_BLOT;let lO=i2;const Jo=lO;class cO{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),o=0;for(;n;){if(n===e)return o;o+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let o=n();for(;o;){const i=o.length();if(e<i||t&&e===i&&(o.next==null||o.next.length()!==0))return[o,e];e-=i,o=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[o,i]=this.find(e);let a=e-i;const c=this.iterator(o);let d=c();for(;d&&a<e+t;){const h=d.length();e>a?n(d,e-a,Math.min(t,a+h-e)):n(d,0,Math.min(h,e+t-a)),a+=h,d=c()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let o=n();for(;o;)t=e(t,o),o=n();return t}}function yb(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(nr.INLINE);return Array.from(r.childNodes).forEach(o=>{n.domNode.appendChild(o)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const s2=class Dc extends o2{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Dc.uiClass&&this.uiNode.classList.add(Dc.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new cO,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=yb(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof ef)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,o,i)=>{n.deleteAt(o,i)})}descendant(e,t=0){const[n,o]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,o]:n instanceof Dc?n.descendant(e,o):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let o=[],i=n;return this.children.forEachAt(t,n,(a,c,d)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&o.push(a),a instanceof Dc&&(o=o.concat(a.descendants(e,c,i))),i-=d}),o}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===nr.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Dc?t.unwrap():t.remove())})}formatAt(e,t,n,o){this.children.forEachAt(e,t,(i,a,c)=>{i.formatAt(a,c,n,o)})}insertAt(e,t,n){const[o,i]=this.children.find(e);if(o)o.insertAt(i,t,n);else{const a=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,o]=this.children.find(e,t),i=[[this,e]];return n instanceof Dc?i.concat(n.path(o,t)):(n!=null&&i.push([n,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Dc&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(o,i,a)=>{const c=o.split(i,t);c!=null&&n.appendChild(c)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],o=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),o.push(...i.removedNodes))}),o.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const c=yb(i,this.scroll);(c.next!==a||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,a||void 0))}),this.enforceAllowedChildren()}};s2.uiClass="";let uO=s2;const fa=uO;function dO(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Hd=class $d extends fa{static create(e){return super.create(e)}static formats(e,t){const n=t.query($d.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Tg(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof $d||(n=n.wrap($d.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,nr.INLINE);if(n==null)return;n instanceof tl?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,o){this.formats()[n]!=null||this.scroll.query(n,nr.ATTRIBUTE)?this.isolate(e,t).format(n,o):super.formatAt(e,t,n,o)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof $d&&n.prev===this&&dO(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof $d&&this.attributes.move(n),n}};Hd.allowedChildren=[Hd,Jo],Hd.blotName="inline",Hd.scope=nr.INLINE_BLOT,Hd.tagName="SPAN";let fO=Hd;const Bv=fO,qd=class V1 extends fa{static create(e){return super.create(e)}static formats(e,t){const n=t.query(V1.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Tg(this.domNode)}format(e,t){const n=this.scroll.query(e,nr.BLOCK);n!=null&&(n instanceof tl?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(V1.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,o){this.scroll.query(n,nr.BLOCK)!=null?this.format(n,o):super.formatAt(e,t,n,o)}insertAt(e,t,n){if(n==null||this.scroll.query(t,nr.INLINE)!=null)super.insertAt(e,t,n);else{const o=this.split(e);if(o!=null){const i=this.scroll.create(t,n);o.parent.insertBefore(i,o)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};qd.blotName="block",qd.scope=nr.BLOCK_BLOT,qd.tagName="P",qd.allowedChildren=[Bv,qd,Jo];let hO=qd;const Th=hO,G1=class extends fa{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,o){super.formatAt(e,t,n,o),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};G1.blotName="container",G1.scope=nr.BLOCK_BLOT;let pO=G1;const Rg=pO;class gO extends Jo{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,o){e===0&&t===this.length()?this.format(n,o):super.formatAt(e,t,n,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ss=gO,mO={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},vO=100,Ud=class extends fa{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,mO),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=nr.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,o){this.update(),super.formatAt(e,t,n,o)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)e.push(o.pop());const i=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(n.has(d.domNode)||n.set(d.domNode,[]),h&&i(d.parent))},a=d=>{n.has(d.domNode)&&(d instanceof fa&&d.children.forEach(a),n.delete(d.domNode),d.optimize(t))};let c=e;for(let d=0;c.length>0;d+=1){if(d>=vO)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(h=>{const p=this.find(h.target,!0);p!=null&&(p.domNode===h.target&&(h.type==="childList"?(i(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(m=>{const g=this.find(m,!1);i(g,!1),g instanceof fa&&g.children.forEach(v=>{i(v,!1)})})):h.type==="attributes"&&i(p.prev)),i(p))}),this.children.forEach(a),c=Array.from(this.observer.takeRecords()),o=c.slice();o.length>0;)e.push(o.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(o=>{const i=this.find(o.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(o),null):(n.set(i.domNode,[o]),i)}).forEach(o=>{o!=null&&o!==this&&n.has(o.domNode)&&o.update(n.get(o.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};Ud.blotName="scroll",Ud.defaultChild=Th,Ud.allowedChildren=[Th,Rg],Ud.scope=nr.BLOCK_BLOT,Ud.tagName="DIV";let yO=Ud;const Fv=yO,Y1=class a2 extends Jo{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof a2&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Y1.blotName="text",Y1.scope=nr.INLINE_BLOT;let bO=Y1;const og=bO,xO=Object.freeze(Object.defineProperty({__proto__:null,Attributor:tl,AttributorStore:Tg,BlockBlot:Th,ClassAttributor:ya,ContainerBlot:Rg,EmbedBlot:ss,InlineBlot:Bv,LeafBlot:Jo,ParentBlot:fa,Registry:cf,Scope:nr,ScrollBlot:Fv,StyleAttributor:Jc,TextBlot:og},Symbol.toStringTag,{value:"Module"}));class ba extends ss{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}ba.blotName="break";ba.tagName="BR";let pa=class extends og{};const wO={"&":"&","<":"<",">":">",'"':""","'":"'"};function kg(r){return r.replace(/[&<>"']/g,e=>wO[e])}const Va=class Va extends Bv{static compare(e,t){const n=Va.order.indexOf(e),o=Va.order.indexOf(t);return n>=0||o>=0?n-o:e===t?0:e<t?-1:1}formatAt(e,t,n,o){if(Va.compare(this.statics.blotName,n)<0&&this.scroll.query(n,nr.BLOT)){const i=this.isolate(e,t);o&&i.wrap(n,o)}else super.formatAt(e,t,n,o)}optimize(e){if(super.optimize(e),this.parent instanceof Va&&Va.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};fe(Va,"allowedChildren",[Va,ba,ss,pa]),fe(Va,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let rl=Va;const bb=1;class Yo extends Th{constructor(){super(...arguments);fe(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=l2(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,o,i){n<=0||(this.scroll.query(o,nr.BLOCK)?t+n===this.length()&&this.format(o,i):super.formatAt(t,Math.min(n,this.length()-t-1),o,i),this.cache={})}insertAt(t,n,o){if(o!=null){super.insertAt(t,n,o),this.cache={};return}if(n.length===0)return;const i=n.split(`
|
170
170
|
`),a=i.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let c=this;i.reduce((d,h)=>(c=c.split(d,!0),c.insertAt(0,h),h.length),t+a.length)}insertBefore(t,n){const{head:o}=this.children;super.insertBefore(t,n),o instanceof ba&&o.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+bb),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-bb)){const i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const o=super.split(t,n);return this.cache={},o}}Yo.blotName="block";Yo.tagName="P";Yo.defaultChild=ba;Yo.allowedChildren=[ba,rl,ss,pa];let Ms=class extends ss{attach(){super.attach(),this.attributes=new Tg(this.domNode)}delta(){return new rr().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,nr.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,o){this.format(n,o)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const o=t.split(`
|
171
171
|
`),i=o.pop(),a=o.map(d=>{const h=this.scroll.create(Yo.blotName);return h.insertAt(0,d),h}),c=this.split(e);a.forEach(d=>{this.parent.insertBefore(d,c)}),i&&this.parent.insertBefore(this.scroll.create("text",i),c)}};Ms.scope=nr.BLOCK_BLOT;function l2(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Jo).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),ks(n,{},e)),new rr).insert(`
|
@@ -215,8 +215,8 @@ ${kg(this.code(e,t))}
|
|
215
215
|
`,{[Qo.blotName]:t}),a.insert(c)),i)],new WeakMap)}}T2.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const xh=class xh extends Yo{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Gv()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===xh.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};fe(xh,"blotName","table"),fe(xh,"tagName","TD");let da=xh;class Hl extends ed{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),o=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===o.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const n=t.formats(),o=t.next.formats();if(n.table!==o.table){const i=this.splitAfter(t);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}fe(Hl,"blotName","table-row"),fe(Hl,"tagName","TR");class Ja extends ed{}fe(Ja,"blotName","table-body"),fe(Ja,"tagName","TBODY");class ff extends ed{balanceCells(){const e=this.descendants(Hl),t=e.reduce((n,o)=>Math.max(o.children.length,n),0);e.forEach(n=>{new Array(t-n.children.length).fill(0).forEach(()=>{let o;n.children.head!=null&&(o=da.formats(n.children.head.domNode));const i=this.scroll.create(da.blotName,o);n.appendChild(i),i.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(Ja);t==null||t.children.head==null||t.children.forEach(n=>{const o=n.children.at(e);o!=null&&o.remove()})}insertColumn(e){const[t]=this.descendant(Ja);t==null||t.children.head==null||t.children.forEach(n=>{const o=n.children.at(e),i=da.formats(n.children.head.domNode),a=this.scroll.create(da.blotName,i);n.insertBefore(a,o)})}insertRow(e){const[t]=this.descendant(Ja);if(t==null||t.children.head==null)return;const n=Gv(),o=this.scroll.create(Hl.blotName);t.children.head.children.forEach(()=>{const a=this.scroll.create(da.blotName,n);o.appendChild(a)});const i=t.children.at(e);t.insertBefore(o,i)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}fe(ff,"blotName","table-container"),fe(ff,"tagName","TABLE");ff.allowedChildren=[Ja];Ja.requiredContainer=ff;Ja.allowedChildren=[Hl];Hl.requiredContainer=Ja;Hl.allowedChildren=[da];da.requiredContainer=Hl;function Gv(){return`row-${Math.random().toString(36).slice(2,6)}`}class NN extends xa{static register(){Re.register(da),Re.register(Hl),Re.register(Ja),Re.register(ff)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(ff).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(Re.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Re.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(Re.sources.USER),this.quill.setSelection(t,Re.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==da.blotName)return[null,null,null,-1];const o=t.parent;return[o.parent.parent,o,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,o,i]=this.getTable(t);if(i==null)return;const a=i.cellOffset();n.insertColumn(a+e),this.quill.update(Re.sources.USER);let c=o.rowOffset();e===0&&(c+=1),this.quill.setSelection(t.index+c,t.length,Re.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,o,i]=this.getTable(t);if(i==null)return;const a=o.rowOffset();n.insertRow(a+e),this.quill.update(Re.sources.USER),e>0?this.quill.setSelection(t,Re.sources.SILENT):this.quill.setSelection(t.index+o.children.length,t.length,Re.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(n==null)return;const o=new Array(e).fill(0).reduce(i=>{const a=new Array(t).fill(`
|
216
216
|
`).join("");return i.insert(a,{table:Gv()})},new rr().retain(n.index));this.quill.updateContents(o,Re.sources.USER),this.quill.setSelection(n.index,Re.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Re.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Re.events.TEXT_CHANGE,(n,o,i)=>{i===Re.sources.USER&&this.balanceTables()}),!0):!1)})}}const Bb=ql("quill:toolbar");let Yv=class extends xa{constructor(e,t){var n,o;if(super(e,t),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),PN(i,this.options.container),(o=(n=e.container)==null?void 0:n.parentNode)==null||o.insertBefore(i,e.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Bb.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var c;const a=(c=this.options.handlers)==null?void 0:c[i];a&&this.addHandler(i,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(Re.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(o=>o.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){Bb.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,o=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const c=e.options[e.selectedIndex];c.hasAttribute("selected")?i=!1:i=c.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),o.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,i);else if(this.quill.scroll.query(t).prototype instanceof ss){if(i=prompt(`Enter ${t}`),!i)return;this.quill.updateContents(new rr().retain(a.index).delete(a.length).insert({[t]:i}),Re.sources.USER)}else this.quill.format(t,i,Re.sources.USER);this.update(a)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[o,i]=n;if(i.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(t[o]==null)a=i.querySelector("option[selected]");else if(!Array.isArray(t[o])){let c=t[o];typeof c=="string"&&(c=c.replace(/"/g,'\\"')),a=i.querySelector(`option[value="${c}"]`)}a==null?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const a=t[o],c=a===i.getAttribute("value")||a!=null&&a.toString()===i.getAttribute("value")||a==null&&!i.getAttribute("value");i.classList.toggle("ql-active",c),i.setAttribute("aria-pressed",c.toString())}else{const a=t[o]!=null;i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}})}};Yv.DEFAULTS={};function Fb(r,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),t!=null?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),r.appendChild(n)}function PN(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(o=>{if(typeof o=="string")Fb(n,o);else{const i=Object.keys(o)[0],a=o[i];Array.isArray(a)?BN(n,i,a):Fb(n,i,a)}}),r.appendChild(n)})}function BN(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(o=>{const i=document.createElement("option");o!==!1?i.setAttribute("value",String(o)):i.setAttribute("selected","selected"),n.appendChild(i)}),r.appendChild(n)}Yv.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,nr.INLINE)!=null&&this.quill.format(t,!1,Re.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Re.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",Re.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,Re.sources.USER),this.quill.format("direction",r,Re.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if(r==="+1"||r==="-1"){let o=r==="+1"?1:-1;t.direction==="rtl"&&(o*=-1),this.quill.format("indent",n+o,Re.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Re.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);r==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Re.sources.USER):this.quill.format("list","unchecked",Re.sources.USER):this.quill.format("list",r,Re.sources.USER)}}};const FN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',jN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',zN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',HN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',$N='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',qN='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',UN='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',WN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',jb='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',VN='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',GN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',YN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',ZN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',KN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',XN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',JN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',QN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',eP='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',tP='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',rP='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',nP='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',oP='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',iP='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',sP='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',aP='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',lP='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',cP='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',uP='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',dP='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',fP='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',hP='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',pP='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',gP='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Ih={align:{"":FN,center:jN,right:zN,justify:HN},background:$N,blockquote:qN,bold:UN,clean:WN,code:jb,"code-block":jb,color:VN,direction:{"":GN,rtl:YN},formula:ZN,header:{1:KN,2:XN,3:JN,4:QN,5:eP,6:tP},italic:rP,image:nP,indent:{"+1":oP,"-1":iP},link:sP,list:{bullet:aP,check:lP,ordered:cP},script:{sub:uP,super:dP},strike:fP,table:hP,underline:pP,video:gP},mP='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let zb=0;function Hb(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class Ig{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Hb(this.label,"aria-expanded"),Hb(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",o=>{switch(o.key){case"Enter":this.selectItem(t,!0),o.preventDefault();break;case"Escape":this.escape(),o.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=mP,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${zb}`,zb+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),t.selected===!0&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");e!==n&&(n!=null&&n.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class R2 extends Ig{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=o:n.style.fill=o)}}class k2 extends Ig{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const vP=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class I2{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,vP(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const o=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>o.right&&(a=o.right-i.right,this.root.style.left=`${t+a}px`),i.left<o.left&&(a=o.left-i.left,this.root.style.left=`${t+a}px`),i.bottom>o.bottom){const c=i.bottom-i.top,d=e.bottom-e.top+c;this.root.style.top=`${n-d}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const yP=[!1,"center","right","justify"],bP=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],xP=[!1,"serif","monospace"],wP=["1","2","3",!1],CP=["small",!1,"large","huge"];class Hh extends df{constructor(e,t){super(e,t);const n=o=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(o.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(o.target)||i.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),t[i]!=null))if(i==="direction")n.innerHTML=t[i][""]+t[i].rtl;else if(typeof t[i]=="string")n.innerHTML=t[i];else{const a=n.value||"";a!=null&&t[i][a]&&(n.innerHTML=t[i][a])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(o=>{if(o.classList.contains("ql-align")&&(o.querySelector("option")==null&&rh(o,yP),typeof t.align=="object"))return new k2(o,t.align);if(o.classList.contains("ql-background")||o.classList.contains("ql-color")){const i=o.classList.contains("ql-background")?"background":"color";return o.querySelector("option")==null&&rh(o,bP,i==="background"?"#ffffff":"#000000"),new R2(o,t[i])}return o.querySelector("option")==null&&(o.classList.contains("ql-font")?rh(o,xP):o.classList.contains("ql-header")?rh(o,wP):o.classList.contains("ql-size")&&rh(o,CP)),new Ig(o)});const n=()=>{this.pickers.forEach(o=>{o.update()})};this.quill.on(Xt.events.EDITOR_CHANGE,n)}}Hh.DEFAULTS=Uc({},df.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class M2 extends I2{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Xt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Xt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=SP(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,Xt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Xt.sources.USER),this.quill.setSelection(n+2,Xt.sources.USER)}break}}this.textbox.value="",this.hide()}}function SP(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}function rh(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const o=document.createElement("option");n===t?o.setAttribute("selected","selected"):o.setAttribute("value",String(n)),r.appendChild(o)})}const _P=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class L2 extends M2{constructor(e,t){super(e,t),this.quill.on(Xt.events.EDITOR_CHANGE,(n,o,i,a)=>{if(n===Xt.events.SELECTION_CHANGE)if(o!=null&&o.length>0&&a===Xt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(o.index,o.length);if(c.length===1){const d=this.quill.getBounds(o);d!=null&&this.position(d)}else{const d=c[c.length-1],h=this.quill.getIndex(d),p=Math.min(d.length()-1,o.index+o.length-h),m=this.quill.getBounds(new Gu(h,p));m!=null&&this.position(m)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Xt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",t!==0&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}fe(L2,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class D2 extends Hh{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=_P),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new L2(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Ih),this.buildPickers(e.container.querySelectorAll("select"),Ih))}}D2.DEFAULTS=Uc({},Hh.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Re.sources.USER)}}}}});const AP=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class O2 extends M2{constructor(){super(...arguments);fe(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Xt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Xt.events.SELECTION_CHANGE,(t,n,o)=>{if(t!=null){if(t.length===0&&o===Xt.sources.USER){const[i,a]=this.quill.scroll.descendant($c,t.index);if(i!=null){this.linkRange=new Gu(t.index-a,i.length());const c=$c.formats(i.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const d=this.quill.getBounds(this.linkRange);d!=null&&this.position(d);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}fe(O2,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class N2 extends Hh{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=AP),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Ih),this.buildPickers(e.container.querySelectorAll("select"),Ih),this.tooltip=new O2(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}N2.DEFAULTS=Uc({},Hh.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,Re.sources.USER)}}}}});Re.register({"attributors/attribute/direction":h2,"attributors/class/align":u2,"attributors/class/background":HO,"attributors/class/color":zO,"attributors/class/direction":p2,"attributors/class/font":v2,"attributors/class/size":b2,"attributors/style/align":d2,"attributors/style/background":$v,"attributors/style/color":Hv,"attributors/style/direction":g2,"attributors/style/font":y2,"attributors/style/size":x2},!0);Re.register({"formats/align":u2,"formats/direction":p2,"formats/indent":LN,"formats/background":$v,"formats/color":Hv,"formats/font":v2,"formats/size":b2,"formats/blockquote":Q1,"formats/code-block":Qo,"formats/header":ev,"formats/list":zh,"formats/bold":kh,"formats/code":qv,"formats/italic":tv,"formats/link":$c,"formats/script":rv,"formats/strike":nv,"formats/underline":ov,"formats/formula":qp,"formats/image":DN,"formats/video":Up,"modules/syntax":T2,"modules/table":NN,"modules/toolbar":Yv,"themes/bubble":D2,"themes/snow":N2,"ui/icons":Ih,"ui/picker":Ig,"ui/icon-picker":k2,"ui/color-picker":R2,"ui/tooltip":I2},!0);class Mg extends S.Component{constructor(e){super(e),this.editingAreaRef=S.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,o,i,a)=>{var c,d;n==="text-change"?(c=this.onEditorChangeText)==null||c.call(this,this.editor.root.innerHTML,o,a,this.unprivilegedEditor):n==="selection-change"&&((d=this.onEditorChangeSelection)==null||d.call(this,o,a,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(S.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(S.Children.count(e.children)){const t=S.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),o=e.value??"";this.isEqualValue(o,n)||this.setEditorContents(this.editor,o)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!Fc(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Fc(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const n=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:o}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const i=this.editor;i.setContents(n),$b(()=>this.setEditorSelection(i,o))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var n;if(!this.editor)return;this.unhookEditor(this.editor);const e=(n=this.props.modules)==null?void 0:n.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const o=document.querySelector(".ql-toolbar");o&&o.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new Re(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?Fc(e.ops,t.ops):Fc(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),$b(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var n;(n=e==null?void 0:e.scroll)!=null&&n.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state,o={key:n,ref:this.editingAreaRef};return S.Children.count(e)?S.cloneElement(S.Children.only(e),o):t?S.createElement("pre",{...o}):S.createElement("div",{...o})}render(){return S.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,o){var a,c;if(!this.editor)return;const i=this.isDelta(this.value)?o.getContents():o.getHTML();i!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=i,(c=(a=this.props).onChange)==null||c.call(a,e,t,n,o))}onEditorChangeSelection(e,t,n){var c,d,h,p,m,g;if(!this.editor)return;const o=this.getEditorSelection(),i=!o&&e,a=o&&!e;Fc(e,o)||(this.selection=e,(d=(c=this.props).onChangeSelection)==null||d.call(c,e,t,n),i?(p=(h=this.props).onFocus)==null||p.call(h,e,t,n):a&&((g=(m=this.props).onBlur)==null||g.call(m,o,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Mg.displayName="React Quill";Mg.Quill=Re;Mg.defaultProps={theme:"snow",modules:{},readOnly:!1};function $b(r){Promise.resolve().then(r)}class P2{constructor(e,t={}){fe(this,"quill");fe(this,"options");fe(this,"_toolbarEl",null);fe(this,"_button",null);fe(this,"_resizeObserver",null);fe(this,"_placeholder",null);if(this.quill=e,this.options=t,this.options.type==="Raw")return;if(this.options.type==="ReadOnly"){this._createButton();return}const n=e.getModule("toolbar");if(!n){console.warn("Toolbar module not found");return}if(this._toolbarEl=n.container,!this._toolbarEl){console.warn("Toolbar container not found");return}this._createButton()}_createButton(){switch(this.options.type){case"ReadOnly":this._createReadOnlyButton();break;case"Error":case"Primary":this._createToolbarButton();break}}_createToolbarButton(){this._toolbarEl&&(!this.options.maximize||!this.options.minimize||(this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-right-action"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",this._toolbarEl.classList.add("ql-toolbar-has-right-action"),this._toolbarEl.append(this._button)))}_createReadOnlyButton(){var n;const e=(n=this.quill.root)==null?void 0:n.closest(".ql-container");if(!e||!this.options.maximize||!this.options.minimize)return;this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-readonly-fullscreen"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",e.appendChild(this._button),this._checkScrollbar(),requestAnimationFrame(()=>this._checkScrollbar());const t=this.quill.root;this._resizeObserver=new ResizeObserver(()=>this._checkScrollbar()),this._resizeObserver.observe(t)}_checkScrollbar(){const e=this.quill.root,t=e==null?void 0:e.closest(".ql-container");if(!e||!t||!this._button)return;e.scrollHeight>e.clientHeight?(t.classList.add("ql-has-v-scrollbar"),this._button.style.removeProperty("right")):(t.classList.remove("ql-has-v-scrollbar"),this._button.style.removeProperty("right"))}_toggleFullscreen(e){var i,a;e.preventDefault();const t=(i=this.quill.root)==null?void 0:i.closest(".ql-container");if(!t)throw new Error("Quill editor container not exist");let n=t.closest(".ql-editor-wrap");if(n){if(t instanceof HTMLElement&&(t.classList.remove("is-fullscreen"),t.style.height=""),this._placeholder){const c=t.parentElement;this._placeholder.after(c),this._placeholder.remove(),this._placeholder=null}n.remove(),this._button&&(this._button.classList.remove("ql-active"),this._button.innerHTML=this.options.maximize??""),document.documentElement.style.removeProperty("overflow");return}if(n=document.createElement("div"),n.classList.add("ql-editor-wrap"),t instanceof HTMLElement){const c=((a=this._toolbarEl)==null?void 0:a.offsetHeight)||0;t.style.height=`calc(100% - ${c}px)`,t.classList.add("is-fullscreen")}const o=t.parentElement;this._placeholder=document.createComment("ql-fullscreen-placeholder"),o.after(this._placeholder),n.append(o),document.body.append(n),this._button&&(this._button.classList.add("ql-active"),this._button.innerHTML=this.options.minimize??""),document.documentElement.style.overflow="hidden"}}window.QuillToggleFullscreenButton=P2;var Dm={exports:{}},qb;function EP(){return qb||(qb=1,function(r,e){(function(t,n){r.exports=n()})(window,function(){return function(t){var n={};function o(i){if(n[i])return n[i].exports;var a=n[i]={i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=t,o.c=n,o.d=function(i,a,c){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:c})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var d in i)o.d(c,d,(function(h){return i[h]}).bind(null,d));return c},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=17)}([function(t,n,o){var i=o(7),a=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",c=Object.prototype.toString,d=Array.prototype.concat,h=Object.defineProperty,p=o(25)(),m=h&&p,g=function(w,T,_,A){var R;(!(T in w)||typeof(R=A)=="function"&&c.call(R)==="[object Function]"&&A())&&(m?h(w,T,{configurable:!0,enumerable:!1,value:_,writable:!0}):w[T]=_)},v=function(w,T){var _=arguments.length>2?arguments[2]:{},A=i(T);a&&(A=d.call(A,Object.getOwnPropertySymbols(T)));for(var R=0;R<A.length;R+=1)g(w,A[R],T[A[R]],_[A[R]])};v.supportsDescriptors=!!m,t.exports=v},function(t,n,o){var i=o(9);t.exports=function(){return i()&&!!Symbol.toStringTag}},function(t,n,o){var i=SyntaxError,a=Function,c=TypeError,d=function(V){try{return a('"use strict"; return ('+V+").constructor;")()}catch{}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch{h=null}var p=function(){throw new c},m=h?function(){try{return p}catch{try{return h(arguments,"callee").get}catch{return p}}}():p,g=o(21)(),v=Object.getPrototypeOf||function(V){return V.__proto__},w={},T=typeof Uint8Array>"u"?void 0:v(Uint8Array),_={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":g?v([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?v(v([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&g?v(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&g?v(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?v(""[Symbol.iterator]()):void 0,"%Symbol%":g?Symbol:void 0,"%SyntaxError%":i,"%ThrowTypeError%":m,"%TypedArray%":T,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet},A={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=o(3),D=o(23),I=R.call(Function.call,Array.prototype.concat),B=R.call(Function.apply,Array.prototype.splice),F=R.call(Function.call,String.prototype.replace),j=R.call(Function.call,String.prototype.slice),z=R.call(Function.call,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pe=/\\(\\)?/g,P=function(V){var Q=j(V,0,1),se=j(V,-1);if(Q==="%"&&se!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&Q!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var ue=[];return F(V,G,function(oe,ae,ge,re){ue[ue.length]=ge?F(re,pe,"$1"):ae||oe}),ue},U=function(V,Q){var se,ue=V;if(D(A,ue)&&(ue="%"+(se=A[ue])[0]+"%"),D(_,ue)){var oe=_[ue];if(oe===w&&(oe=function ae(ge){var re;if(ge==="%AsyncFunction%")re=d("async function () {}");else if(ge==="%GeneratorFunction%")re=d("function* () {}");else if(ge==="%AsyncGeneratorFunction%")re=d("async function* () {}");else if(ge==="%AsyncGenerator%"){var ie=ae("%AsyncGeneratorFunction%");ie&&(re=ie.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var he=ae("%AsyncGenerator%");he&&(re=v(he.prototype))}return _[ge]=re,re}(ue)),oe===void 0&&!Q)throw new c("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:se,name:ue,value:oe}}throw new i("intrinsic "+V+" does not exist!")};t.exports=function(V,Q){if(typeof V!="string"||V.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new c('"allowMissing" argument must be a boolean');if(z(/^%?[^%]*%?$/g,V)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var se=P(V),ue=se.length>0?se[0]:"",oe=U("%"+ue+"%",Q),ae=oe.name,ge=oe.value,re=!1,ie=oe.alias;ie&&(ue=ie[0],B(se,I([0,1],ie)));for(var he=1,Se=!0;he<se.length;he+=1){var Le=se[he],ne=j(Le,0,1),ve=j(Le,-1);if((ne==='"'||ne==="'"||ne==="`"||ve==='"'||ve==="'"||ve==="`")&&ne!==ve)throw new i("property names with quotes must have matching quotes");if(Le!=="constructor"&&Se||(re=!0),D(_,ae="%"+(ue+="."+Le)+"%"))ge=_[ae];else if(ge!=null){if(!(Le in ge)){if(!Q)throw new c("base intrinsic for "+V+" exists, but the property is not available.");return}if(h&&he+1>=se.length){var ke=h(ge,Le);ge=(Se=!!ke)&&"get"in ke&&!("originalValue"in ke.get)?ke.get:ge[Le]}else Se=D(ge,Le),ge=ge[Le];Se&&!re&&(_[ae]=ge)}}return ge}},function(t,n,o){var i=o(22);t.exports=Function.prototype.bind||i},function(t,n,o){var i=o(3),a=o(2),c=a("%Function.prototype.apply%"),d=a("%Function.prototype.call%"),h=a("%Reflect.apply%",!0)||i.call(d,c),p=a("%Object.getOwnPropertyDescriptor%",!0),m=a("%Object.defineProperty%",!0),g=a("%Math.max%");if(m)try{m({},"a",{value:1})}catch{m=null}t.exports=function(w){var T=h(i,d,arguments);if(p&&m){var _=p(T,"length");_.configurable&&m(T,"length",{value:1+g(0,w.length-(arguments.length-1))})}return T};var v=function(){return h(i,c,arguments)};m?m(t.exports,"apply",{value:v}):t.exports.apply=v},function(t,n,o){var i=o(18),a=o(6),c=o(15),d=o(32),h="\0",p=function(m){Array.isArray(m)?this.ops=m:m!=null&&Array.isArray(m.ops)?this.ops=m.ops:this.ops=[]};p.prototype.insert=function(m,g){var v={};return m.length===0?this:(v.insert=m,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v))},p.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},p.prototype.retain=function(m,g){if(m<=0)return this;var v={retain:m};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v)},p.prototype.push=function(m){var g=this.ops.length,v=this.ops[g-1];if(m=c(!0,{},m),typeof v=="object"){if(typeof m.delete=="number"&&typeof v.delete=="number")return this.ops[g-1]={delete:v.delete+m.delete},this;if(typeof v.delete=="number"&&m.insert!=null&&(g-=1,typeof(v=this.ops[g-1])!="object"))return this.ops.unshift(m),this;if(a(m.attributes,v.attributes)){if(typeof m.insert=="string"&&typeof v.insert=="string")return this.ops[g-1]={insert:v.insert+m.insert},typeof m.attributes=="object"&&(this.ops[g-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof v.retain=="number")return this.ops[g-1]={retain:v.retain+m.retain},typeof m.attributes=="object"&&(this.ops[g-1].attributes=m.attributes),this}}return g===this.ops.length?this.ops.push(m):this.ops.splice(g,0,m),this},p.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},p.prototype.filter=function(m){return this.ops.filter(m)},p.prototype.forEach=function(m){this.ops.forEach(m)},p.prototype.map=function(m){return this.ops.map(m)},p.prototype.partition=function(m){var g=[],v=[];return this.forEach(function(w){(m(w)?g:v).push(w)}),[g,v]},p.prototype.reduce=function(m,g){return this.ops.reduce(m,g)},p.prototype.changeLength=function(){return this.reduce(function(m,g){return g.insert?m+d.length(g):g.delete?m-g.delete:m},0)},p.prototype.length=function(){return this.reduce(function(m,g){return m+d.length(g)},0)},p.prototype.slice=function(m,g){m=m||0,typeof g!="number"&&(g=1/0);for(var v=[],w=d.iterator(this.ops),T=0;T<g&&w.hasNext();){var _;T<m?_=w.next(m-T):(_=w.next(g-T),v.push(_)),T+=d.length(_)}return new p(v)},p.prototype.compose=function(m){var g=d.iterator(this.ops),v=d.iterator(m.ops),w=[],T=v.peek();if(T!=null&&typeof T.retain=="number"&&T.attributes==null){for(var _=T.retain;g.peekType()==="insert"&&g.peekLength()<=_;)_-=g.peekLength(),w.push(g.next());T.retain-_>0&&v.next(T.retain-_)}for(var A=new p(w);g.hasNext()||v.hasNext();)if(v.peekType()==="insert")A.push(v.next());else if(g.peekType()==="delete")A.push(g.next());else{var R=Math.min(g.peekLength(),v.peekLength()),D=g.next(R),I=v.next(R);if(typeof I.retain=="number"){var B={};typeof D.retain=="number"?B.retain=R:B.insert=D.insert;var F=d.attributes.compose(D.attributes,I.attributes,typeof D.retain=="number");if(F&&(B.attributes=F),A.push(B),!v.hasNext()&&a(A.ops[A.ops.length-1],B)){var j=new p(g.rest());return A.concat(j).chop()}}else typeof I.delete=="number"&&typeof D.retain=="number"&&A.push(I)}return A.chop()},p.prototype.concat=function(m){var g=new p(this.ops.slice());return m.ops.length>0&&(g.push(m.ops[0]),g.ops=g.ops.concat(m.ops.slice(1))),g},p.prototype.diff=function(m,g){if(this.ops===m.ops)return new p;var v=[this,m].map(function(R){return R.map(function(D){if(D.insert!=null)return typeof D.insert=="string"?D.insert:h;throw new Error("diff() called "+(R===m?"on":"with")+" non-document")}).join("")}),w=new p,T=i(v[0],v[1],g),_=d.iterator(this.ops),A=d.iterator(m.ops);return T.forEach(function(R){for(var D=R[1].length;D>0;){var I=0;switch(R[0]){case i.INSERT:I=Math.min(A.peekLength(),D),w.push(A.next(I));break;case i.DELETE:I=Math.min(D,_.peekLength()),_.next(I),w.delete(I);break;case i.EQUAL:I=Math.min(_.peekLength(),A.peekLength(),D);var B=_.next(I),F=A.next(I);a(B.insert,F.insert)?w.retain(I,d.attributes.diff(B.attributes,F.attributes)):w.push(F).delete(I)}D-=I}}),w.chop()},p.prototype.eachLine=function(m,g){g=g||`
|
217
217
|
`;for(var v=d.iterator(this.ops),w=new p,T=0;v.hasNext();){if(v.peekType()!=="insert")return;var _=v.peek(),A=d.length(_)-v.peekLength(),R=typeof _.insert=="string"?_.insert.indexOf(g,A)-A:-1;if(R<0)w.push(v.next());else if(R>0)w.push(v.next(R));else{if(m(w,v.next(1).attributes||{},T)===!1)return;T+=1,w=new p}}w.length()>0&&m(w,{},T)},p.prototype.transform=function(m,g){if(g=!!g,typeof m=="number")return this.transformPosition(m,g);for(var v=d.iterator(this.ops),w=d.iterator(m.ops),T=new p;v.hasNext()||w.hasNext();)if(v.peekType()!=="insert"||!g&&w.peekType()==="insert")if(w.peekType()==="insert")T.push(w.next());else{var _=Math.min(v.peekLength(),w.peekLength()),A=v.next(_),R=w.next(_);if(A.delete)continue;R.delete?T.push(R):T.retain(_,d.attributes.transform(A.attributes,R.attributes,g))}else T.retain(d.length(v.next()));return T.chop()},p.prototype.transformPosition=function(m,g){g=!!g;for(var v=d.iterator(this.ops),w=0;v.hasNext()&&w<=m;){var T=v.peekLength(),_=v.peekType();v.next(),_!=="delete"?(_==="insert"&&(w<m||!g)&&(m+=T),w+=T):m-=Math.min(T,m-w)}return m},t.exports=p},function(t,n,o){var i=o(7),a=o(20),c=o(24),d=o(27),h=o(28),p=o(31),m=Date.prototype.getTime;function g(T,_,A){var R=A||{};return!!(R.strict?c(T,_):T===_)||(!T||!_||typeof T!="object"&&typeof _!="object"?R.strict?c(T,_):T==_:function(D,I,B){var F,j;if(typeof D!=typeof I||v(D)||v(I)||D.prototype!==I.prototype||a(D)!==a(I))return!1;var z=d(D),G=d(I);if(z!==G)return!1;if(z||G)return D.source===I.source&&h(D)===h(I);if(p(D)&&p(I))return m.call(D)===m.call(I);var pe=w(D),P=w(I);if(pe!==P)return!1;if(pe||P){if(D.length!==I.length)return!1;for(F=0;F<D.length;F++)if(D[F]!==I[F])return!1;return!0}if(typeof D!=typeof I)return!1;try{var U=i(D),V=i(I)}catch{return!1}if(U.length!==V.length)return!1;for(U.sort(),V.sort(),F=U.length-1;F>=0;F--)if(U[F]!=V[F])return!1;for(F=U.length-1;F>=0;F--)if(j=U[F],!g(D[j],I[j],B))return!1;return!0}(T,_,R))}function v(T){return T==null}function w(T){return!(!T||typeof T!="object"||typeof T.length!="number")&&typeof T.copy=="function"&&typeof T.slice=="function"&&!(T.length>0&&typeof T[0]!="number")}t.exports=g},function(t,n,o){var i=Array.prototype.slice,a=o(8),c=Object.keys,d=c?function(p){return c(p)}:o(19),h=Object.keys;d.shim=function(){return Object.keys?function(){var p=Object.keys(arguments);return p&&p.length===arguments.length}(1,2)||(Object.keys=function(p){return a(p)?h(i.call(p)):h(p)}):Object.keys=d,Object.keys||d},t.exports=d},function(t,n,o){var i=Object.prototype.toString;t.exports=function(a){var c=i.call(a),d=c==="[object Arguments]";return d||(d=c!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&i.call(a.callee)==="[object Function]"),d}},function(t,n,o){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},a=Symbol("test"),c=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;for(a in i[a]=42,i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var d=Object.getOwnPropertySymbols(i);if(d.length!==1||d[0]!==a||!Object.prototype.propertyIsEnumerable.call(i,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(i,a);if(h.value!==42||h.enumerable!==!0)return!1}return!0}},function(t,n,o){var i=o(2),a=o(4),c=a(i("String.prototype.indexOf"));t.exports=function(d,h){var p=i(d,!!h);return typeof p=="function"&&c(d,".prototype.")>-1?a(p):p}},function(t,n,o){var i=function(a){return a!=a};t.exports=function(a,c){return a===0&&c===0?1/a==1/c:a===c||!(!i(a)||!i(c))}},function(t,n,o){var i=o(11);t.exports=function(){return typeof Object.is=="function"?Object.is:i}},function(t,n,o){var i=o(29).functionsHaveConfigurableNames(),a=Object,c=TypeError;t.exports=function(){if(this!=null&&this!==a(this))throw new c("RegExp.prototype.flags getter called on non-object");var d="";return this.hasIndices&&(d+="d"),this.global&&(d+="g"),this.ignoreCase&&(d+="i"),this.multiline&&(d+="m"),this.dotAll&&(d+="s"),this.unicode&&(d+="u"),this.sticky&&(d+="y"),d},i&&Object.defineProperty&&Object.defineProperty(t.exports,"name",{value:"get flags"})},function(t,n,o){var i=o(13),a=o(0).supportsDescriptors,c=Object.getOwnPropertyDescriptor;t.exports=function(){if(a&&/a/gim.flags==="gim"){var d=c(RegExp.prototype,"flags");if(d&&typeof d.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var h="",p={};if(Object.defineProperty(p,"hasIndices",{get:function(){h+="d"}}),Object.defineProperty(p,"sticky",{get:function(){h+="y"}}),h==="dy")return d.get}}return i}},function(t,n,o){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=function(v){return typeof Array.isArray=="function"?Array.isArray(v):a.call(v)==="[object Array]"},p=function(v){if(!v||a.call(v)!=="[object Object]")return!1;var w,T=i.call(v,"constructor"),_=v.constructor&&v.constructor.prototype&&i.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!T&&!_)return!1;for(w in v);return w===void 0||i.call(v,w)},m=function(v,w){c&&w.name==="__proto__"?c(v,w.name,{enumerable:!0,configurable:!0,value:w.newValue,writable:!0}):v[w.name]=w.newValue},g=function(v,w){if(w==="__proto__"){if(!i.call(v,w))return;if(d)return d(v,w).value}return v[w]};t.exports=function v(){var w,T,_,A,R,D,I=arguments[0],B=1,F=arguments.length,j=!1;for(typeof I=="boolean"&&(j=I,I=arguments[1]||{},B=2),(I==null||typeof I!="object"&&typeof I!="function")&&(I={});B<F;++B)if((w=arguments[B])!=null)for(T in w)_=g(I,T),I!==(A=g(w,T))&&(j&&A&&(p(A)||(R=h(A)))?(R?(R=!1,D=_&&h(_)?_:[]):D=_&&p(_)?_:{},m(I,{name:T,newValue:v(j,D,A)})):A!==void 0&&m(I,{name:T,newValue:A}));return I}},function(t,n,o){const i=typeof URL>"u"?o(33).URL:URL,a=(d,h)=>h.some(p=>p instanceof RegExp?p.test(d):p===d),c=(d,h)=>{if(h={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...h},Reflect.has(h,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(h,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(h,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(d=d.trim(),/^data:/i.test(d))return((g,{stripHash:v})=>{const w=g.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!w)throw new Error("Invalid URL: "+g);const T=w[1].split(";"),_=w[2],A=v?"":w[3];let R=!1;T[T.length-1]==="base64"&&(T.pop(),R=!0);const D=(T.shift()||"").toLowerCase(),I=[...T.map(B=>{let[F,j=""]=B.split("=").map(z=>z.trim());return F==="charset"&&(j=j.toLowerCase(),j==="us-ascii")?"":`${F}${j?"="+j:""}`}).filter(Boolean)];return R&&I.push("base64"),(I.length!==0||D&&D!=="text/plain")&&I.unshift(D),`data:${I.join(";")},${R?_.trim():_}${A?"#"+A:""}`})(d,h);const p=d.startsWith("//");!p&&/^\.*\//.test(d)||(d=d.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,h.defaultProtocol));const m=new i(d);if(h.forceHttp&&h.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(h.forceHttp&&m.protocol==="https:"&&(m.protocol="http:"),h.forceHttps&&m.protocol==="http:"&&(m.protocol="https:"),h.stripAuthentication&&(m.username="",m.password=""),h.stripHash&&(m.hash=""),m.pathname&&(m.pathname=m.pathname.replace(/((?!:).|^)\/{2,}/g,(g,v)=>/^(?!\/)/g.test(v)?v+"/":"/")),m.pathname&&(m.pathname=decodeURI(m.pathname)),h.removeDirectoryIndex===!0&&(h.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(h.removeDirectoryIndex)&&h.removeDirectoryIndex.length>0){let g=m.pathname.split("/");const v=g[g.length-1];a(v,h.removeDirectoryIndex)&&(g=g.slice(0,g.length-1),m.pathname=g.slice(1).join("/")+"/")}if(m.hostname&&(m.hostname=m.hostname.replace(/\.$/,""),h.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(m.hostname)&&(m.hostname=m.hostname.replace(/^www\./,""))),Array.isArray(h.removeQueryParameters))for(const g of[...m.searchParams.keys()])a(g,h.removeQueryParameters)&&m.searchParams.delete(g);return h.sortQueryParameters&&m.searchParams.sort(),h.removeTrailingSlash&&(m.pathname=m.pathname.replace(/\/$/,"")),d=m.toString(),!h.removeTrailingSlash&&m.pathname!=="/"||m.hash!==""||(d=d.replace(/\/$/,"")),p&&!h.normalizeProtocol&&(d=d.replace(/^http:\/\//,"//")),h.stripProtocol&&(d=d.replace(/^(?:https?:)?\/\//,"")),d};t.exports=c,t.exports.default=c},function(t,n,o){o.r(n),o.d(n,"default",function(){return _});var i=o(5),a=o.n(i),c=o(16),d=o.n(c);function h(A,R){return function(D){if(Array.isArray(D))return D}(A)||function(D,I){var B=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(B!=null){var F,j,z=[],G=!0,pe=!1;try{for(B=B.call(D);!(G=(F=B.next()).done)&&(z.push(F.value),!I||z.length!==I);G=!0);}catch(P){pe=!0,j=P}finally{try{G||B.return==null||B.return()}finally{if(pe)throw j}}return z}}(A,R)||function(D,I){if(D){if(typeof D=="string")return p(D,I);var B=Object.prototype.toString.call(D).slice(8,-1);if(B==="Object"&&D.constructor&&(B=D.constructor.name),B==="Map"||B==="Set")return Array.from(D);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return p(D,I)}}(A,R)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
218
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p(A,R){(R==null||R>A.length)&&(R=A.length);for(var D=0,I=new Array(R);D<R;D++)I[D]=A[D];return I}function m(A,R){var D=Object.keys(A);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(A);R&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(A,B).enumerable})),D.push.apply(D,I)}return D}function g(A){for(var R=1;R<arguments.length;R++){var D=arguments[R]!=null?arguments[R]:{};R%2?m(Object(D),!0).forEach(function(I){v(A,I,D[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(D)):m(Object(D)).forEach(function(I){Object.defineProperty(A,I,Object.getOwnPropertyDescriptor(D,I))})}return A}function v(A,R,D){return R in A?Object.defineProperty(A,R,{value:D,enumerable:!0,configurable:!0,writable:!0}):A[R]=D,A}function w(A,R){for(var D=0;D<R.length;D++){var I=R[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(A,I.key,I)}}var T={globalRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,urlRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,globalMailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,mailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,normalizeRegularExpression:/(https?:\/\/|www\.)[\S]+/i,normalizeUrlOptions:{stripWWW:!1}},_=function(){function A(I,B){var F=this;(function(j,z){if(!(j instanceof z))throw new TypeError("Cannot call a class as a function")})(this,A),this.quill=I,B=B||{},this.options=g(g({},T),B),this.urlNormalizer=function(j){return F.normalize(j)},this.mailNormalizer=function(j){return"mailto:".concat(j)},this.registerTypeListener(),this.registerPasteListener(),this.registerBlurListener()}var R,D;return R=A,(D=[{key:"registerPasteListener",value:function(){var I=this;this.quill.clipboard.addMatcher("A",function(B,F){var j,z=B.getAttribute("href"),G=(j=F.ops[0])===null||j===void 0?void 0:j.attributes;return(G==null?void 0:G.link)!=null&&(G.link=z),F}),this.quill.clipboard.addMatcher(Node.TEXT_NODE,function(B,F){if(typeof B.data=="string"){var j=I.options.globalRegularExpression,z=I.options.globalMailRegularExpression;j.lastIndex=0,z.lastIndex=0;for(var G=new a.a,pe=0,P=j.exec(B.data),U=z.exec(B.data),V=function(se,ue,oe){var ae=B.data.substring(pe,se.index);G.insert(ae);var ge=se[0];return G.insert(ge,{link:oe(ge)}),pe=ue.lastIndex,ue.exec(B.data)};P!==null||U!==null;)if(P===null)U=V(U,z,I.mailNormalizer);else if(U===null)P=V(P,j,I.urlNormalizer);else if(U.index<=P.index){for(;P!==null&&P.index<z.lastIndex;)P=j.exec(B.data);U=V(U,z,I.mailNormalizer)}else{for(;U!==null&&U.index<j.lastIndex;)U=z.exec(B.data);P=V(P,j,I.urlNormalizer)}if(pe>0){var Q=B.data.substring(pe);G.insert(Q),F.ops=G.ops}return F}})}},{key:"registerTypeListener",value:function(){var I=this;this.quill.on("text-change",function(B){var F=B.ops;if(!(!F||F.length<1||F.length>2)){var j=F[F.length-1];j.insert&&typeof j.insert=="string"&&j.insert.match(/\s/)&&I.checkTextForUrl(!!j.insert.match(/ |\t/))}})}},{key:"registerBlurListener",value:function(){var I=this;this.quill.root.addEventListener("blur",function(){I.checkTextForUrl()})}},{key:"checkTextForUrl",value:function(){var I=arguments.length>0&&arguments[0]!==void 0&&arguments[0],B=this.quill.getSelection();if(B){var F=this.quill.getLeaf(B.index),j=h(F,1),z=j[0],G=this.quill.getIndex(z);if(z.text){var pe=B.index-G,P=z.text.slice(0,pe);if(P&&z.parent.domNode.localName!=="a"){var U=z.text[pe];if(U==null||!U.match(/\S/)){var V=I?/\s\s$/:/\s$/;if(!P.match(V)){var Q=P.match(this.options.urlRegularExpression),se=P.match(this.options.mailRegularExpression);Q?this.handleMatches(G,P,Q,this.urlNormalizer):se&&this.handleMatches(G,P,se,this.mailNormalizer)}}}}}}},{key:"handleMatches",value:function(I,B,F,j){var z=F.pop(),G=B.lastIndexOf(z);B.split(z).pop().match(/\S/)||this.updateText(I+G,z.trim(),j)}},{key:"updateText",value:function(I,B,F){var j=new a.a().retain(I).retain(B.length,{link:F(B)});this.quill.updateContents(j)}},{key:"normalize",value:function(I){if(this.options.normalizeRegularExpression.test(I))try{return d()(I,this.options.normalizeUrlOptions)}catch(B){console.error(B)}return I}}])&&w(R.prototype,D),Object.defineProperty(R,"prototype",{writable:!1}),A}();window!=null&&window.Quill&&window.Quill.register("modules/magicUrl",_)},function(t,n){function o(p,m,g){if(p==m)return p?[[0,p]]:[];(g<0||p.length<g)&&(g=null);var v=a(p,m),w=p.substring(0,v);v=c(p=p.substring(v),m=m.substring(v));var T=p.substring(p.length-v),_=function(A,R){var D;if(!A)return[[1,R]];if(!R)return[[-1,A]];var I=A.length>R.length?A:R,B=A.length>R.length?R:A,F=I.indexOf(B);if(F!=-1)return D=[[1,I.substring(0,F)],[0,B],[1,I.substring(F+B.length)]],A.length>R.length&&(D[0][0]=D[2][0]=-1),D;if(B.length==1)return[[-1,A],[1,R]];var j=function(se,ue){var oe=se.length>ue.length?se:ue,ae=se.length>ue.length?ue:se;if(oe.length<4||2*ae.length<oe.length)return null;function ge(Pe,De,we){for(var _e,Ae,$e,Fe,Qe=Pe.substring(we,we+Math.floor(Pe.length/4)),Ue=-1,et="";(Ue=De.indexOf(Qe,Ue+1))!=-1;){var ct=a(Pe.substring(we),De.substring(Ue)),Ct=c(Pe.substring(0,we),De.substring(0,Ue));et.length<Ct+ct&&(et=De.substring(Ue-Ct,Ue)+De.substring(Ue,Ue+ct),_e=Pe.substring(0,we-Ct),Ae=Pe.substring(we+ct),$e=De.substring(0,Ue-Ct),Fe=De.substring(Ue+ct))}return 2*et.length>=Pe.length?[_e,Ae,$e,Fe,et]:null}var re,ie,he,Se,Le,ne=ge(oe,ae,Math.ceil(oe.length/4)),ve=ge(oe,ae,Math.ceil(oe.length/2));if(!ne&&!ve)return null;re=ve?ne&&ne[4].length>ve[4].length?ne:ve:ne,se.length>ue.length?(ie=re[0],he=re[1],Se=re[2],Le=re[3]):(Se=re[0],Le=re[1],ie=re[2],he=re[3]);var ke=re[4];return[ie,he,Se,Le,ke]}(A,R);if(j){var z=j[0],G=j[1],pe=j[2],P=j[3],U=j[4],V=o(z,pe),Q=o(G,P);return V.concat([[0,U]],Q)}return function(se,ue){for(var oe=se.length,ae=ue.length,ge=Math.ceil((oe+ae)/2),re=ge,ie=2*ge,he=new Array(ie),Se=new Array(ie),Le=0;Le<ie;Le++)he[Le]=-1,Se[Le]=-1;he[re+1]=0,Se[re+1]=0;for(var ne=oe-ae,ve=ne%2!=0,ke=0,Pe=0,De=0,we=0,_e=0;_e<ge;_e++){for(var Ae=-_e+ke;Ae<=_e-Pe;Ae+=2){for(var $e=re+Ae,Fe=(Ct=Ae==-_e||Ae!=_e&&he[$e-1]<he[$e+1]?he[$e+1]:he[$e-1]+1)-Ae;Ct<oe&&Fe<ae&&se.charAt(Ct)==ue.charAt(Fe);)Ct++,Fe++;if(he[$e]=Ct,Ct>oe)Pe+=2;else if(Fe>ae)ke+=2;else if(ve&&(et=re+ne-Ae)>=0&&et<ie&&Se[et]!=-1){var Qe=oe-Se[et];if(Ct>=Qe)return i(se,ue,Ct,Fe)}}for(var Ue=-_e+De;Ue<=_e-we;Ue+=2){for(var et=re+Ue,ct=(Qe=Ue==-_e||Ue!=_e&&Se[et-1]<Se[et+1]?Se[et+1]:Se[et-1]+1)-Ue;Qe<oe&&ct<ae&&se.charAt(oe-Qe-1)==ue.charAt(ae-ct-1);)Qe++,ct++;if(Se[et]=Qe,Qe>oe)we+=2;else if(ct>ae)De+=2;else if(!ve&&($e=re+ne-Ue)>=0&&$e<ie&&he[$e]!=-1){var Ct=he[$e];if(Fe=re+Ct-$e,Ct>=(Qe=oe-Qe))return i(se,ue,Ct,Fe)}}}return[[-1,se],[1,ue]]}(A,R)}(p=p.substring(0,p.length-v),m=m.substring(0,m.length-v));return w&&_.unshift([0,w]),T&&_.push([0,T]),function A(R){R.push([0,""]);for(var D,I=0,B=0,F=0,j="",z="";I<R.length;)switch(R[I][0]){case 1:F++,z+=R[I][1],I++;break;case-1:B++,j+=R[I][1],I++;break;case 0:B+F>1?(B!==0&&F!==0&&((D=a(z,j))!==0&&(I-B-F>0&&R[I-B-F-1][0]==0?R[I-B-F-1][1]+=z.substring(0,D):(R.splice(0,0,[0,z.substring(0,D)]),I++),z=z.substring(D),j=j.substring(D)),(D=c(z,j))!==0&&(R[I][1]=z.substring(z.length-D)+R[I][1],z=z.substring(0,z.length-D),j=j.substring(0,j.length-D))),B===0?R.splice(I-F,B+F,[1,z]):F===0?R.splice(I-B,B+F,[-1,j]):R.splice(I-B-F,B+F,[-1,j],[1,z]),I=I-B-F+(B?1:0)+(F?1:0)+1):I!==0&&R[I-1][0]==0?(R[I-1][1]+=R[I][1],R.splice(I,1)):I++,F=0,B=0,j="",z=""}R[R.length-1][1]===""&&R.pop();var G=!1;for(I=1;I<R.length-1;)R[I-1][0]==0&&R[I+1][0]==0&&(R[I][1].substring(R[I][1].length-R[I-1][1].length)==R[I-1][1]?(R[I][1]=R[I-1][1]+R[I][1].substring(0,R[I][1].length-R[I-1][1].length),R[I+1][1]=R[I-1][1]+R[I+1][1],R.splice(I-1,1),G=!0):R[I][1].substring(0,R[I+1][1].length)==R[I+1][1]&&(R[I-1][1]+=R[I+1][1],R[I][1]=R[I][1].substring(R[I+1][1].length)+R[I+1][1],R.splice(I+1,1),G=!0)),I++;G&&A(R)}(_),g!=null&&(_=function(A,R){var D=function(G,pe){if(pe===0)return[0,G];for(var P=0,U=0;U<G.length;U++){var V=G[U];if(V[0]===-1||V[0]===0){var Q=P+V[1].length;if(pe===Q)return[U+1,G];if(pe<Q){G=G.slice();var se=pe-P,ue=[V[0],V[1].slice(0,se)],oe=[V[0],V[1].slice(se)];return G.splice(U,1,ue,oe),[U+1,G]}P=Q}}throw new Error("cursor_pos is out of bounds!")}(A,R),I=D[1],B=D[0],F=I[B],j=I[B+1];if(F==null||F[0]!==0)return A;if(j!=null&&F[1]+j[1]===j[1]+F[1])return I.splice(B,2,j,F),h(I,B,2);if(j!=null&&j[1].indexOf(F[1])===0){I.splice(B,2,[j[0],F[1]],[0,F[1]]);var z=j[1].slice(F[1].length);return z.length>0&&I.splice(B+2,0,[j[0],z]),h(I,B,3)}return A}(_,g)),_=function(A){for(var R=!1,D=function(j){return j.charCodeAt(0)>=56320&&j.charCodeAt(0)<=57343},I=2;I<A.length;I+=1)A[I-2][0]===0&&(B=A[I-2][1]).charCodeAt(B.length-1)>=55296&&B.charCodeAt(B.length-1)<=56319&&A[I-1][0]===-1&&D(A[I-1][1])&&A[I][0]===1&&D(A[I][1])&&(R=!0,A[I-1][1]=A[I-2][1].slice(-1)+A[I-1][1],A[I][1]=A[I-2][1].slice(-1)+A[I][1],A[I-2][1]=A[I-2][1].slice(0,-1));var B;if(!R)return A;var F=[];for(I=0;I<A.length;I+=1)A[I][1].length>0&&F.push(A[I]);return F}(_)}function i(p,m,g,v){var w=p.substring(0,g),T=m.substring(0,v),_=p.substring(g),A=m.substring(v),R=o(w,T),D=o(_,A);return R.concat(D)}function a(p,m){if(!p||!m||p.charAt(0)!=m.charAt(0))return 0;for(var g=0,v=Math.min(p.length,m.length),w=v,T=0;g<w;)p.substring(T,w)==m.substring(T,w)?T=g=w:v=w,w=Math.floor((v-g)/2+g);return w}function c(p,m){if(!p||!m||p.charAt(p.length-1)!=m.charAt(m.length-1))return 0;for(var g=0,v=Math.min(p.length,m.length),w=v,T=0;g<w;)p.substring(p.length-w,p.length-T)==m.substring(m.length-w,m.length-T)?T=g=w:v=w,w=Math.floor((v-g)/2+g);return w}var d=o;function h(p,m,g){for(var v=m+g-1;v>=0&&v>=m-1;v--)if(v+1<p.length){var w=p[v],T=p[v+1];w[0]===T[1]&&p.splice(v,2,[w[0],w[1]+T[1]])}return p}d.INSERT=1,d.DELETE=-1,d.EQUAL=0,t.exports=d},function(t,n,o){var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=o(8),h=Object.prototype.propertyIsEnumerable,p=!h.call({toString:null},"toString"),m=h.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(_){var A=_.constructor;return A&&A.prototype===_},w={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},T=function(){if(typeof window>"u")return!1;for(var _ in window)try{if(!w["$"+_]&&a.call(window,_)&&window[_]!==null&&typeof window[_]=="object")try{v(window[_])}catch{return!0}}catch{return!0}return!1}();i=function(_){var A=_!==null&&typeof _=="object",R=c.call(_)==="[object Function]",D=d(_),I=A&&c.call(_)==="[object String]",B=[];if(!A&&!R&&!D)throw new TypeError("Object.keys called on a non-object");var F=m&&R;if(I&&_.length>0&&!a.call(_,0))for(var j=0;j<_.length;++j)B.push(String(j));if(D&&_.length>0)for(var z=0;z<_.length;++z)B.push(String(z));else for(var G in _)F&&G==="prototype"||!a.call(_,G)||B.push(String(G));if(p)for(var pe=function(U){if(typeof window>"u"||!T)return v(U);try{return v(U)}catch{return!1}}(_),P=0;P<g.length;++P)pe&&g[P]==="constructor"||!a.call(_,g[P])||B.push(g[P]);return B}}t.exports=i},function(t,n,o){var i=o(1)(),a=o(10)("Object.prototype.toString"),c=function(p){return!(i&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&a(p)==="[object Arguments]"},d=function(p){return!!c(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&a(p)!=="[object Array]"&&a(p.callee)==="[object Function]"},h=function(){return c(arguments)}();c.isLegacyArguments=d,t.exports=h?c:d},function(t,n,o){var i=typeof Symbol<"u"&&Symbol,a=o(9);t.exports=function(){return typeof i=="function"&&typeof Symbol=="function"&&typeof i("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&a()}},function(t,n,o){var i="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString;t.exports=function(d){var h=this;if(typeof h!="function"||c.call(h)!=="[object Function]")throw new TypeError(i+h);for(var p,m=a.call(arguments,1),g=function(){if(this instanceof p){var A=h.apply(this,m.concat(a.call(arguments)));return Object(A)===A?A:this}return h.apply(d,m.concat(a.call(arguments)))},v=Math.max(0,h.length-m.length),w=[],T=0;T<v;T++)w.push("$"+T);if(p=Function("binder","return function ("+w.join(",")+"){ return binder.apply(this,arguments); }")(g),h.prototype){var _=function(){};_.prototype=h.prototype,p.prototype=new _,_.prototype=null}return p}},function(t,n,o){var i=o(3);t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},function(t,n,o){var i=o(0),a=o(4),c=o(11),d=o(12),h=o(26),p=a(d(),Object);i(p,{getPolyfill:d,implementation:c,shim:h}),t.exports=p},function(t,n,o){var i=o(2)("%Object.defineProperty%",!0),a=function(){if(i)try{return i({},"a",{value:1}),!0}catch{return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return i([],"length",{value:1}).length!==1}catch{return!0}},t.exports=a},function(t,n,o){var i=o(12),a=o(0);t.exports=function(){var c=i();return a(Object,{is:c},{is:function(){return Object.is!==c}}),c}},function(t,n,o){var i,a,c,d,h=o(10),p=o(1)();if(p){i=h("Object.prototype.hasOwnProperty"),a=h("RegExp.prototype.exec"),c={};var m=function(){throw c};d={toString:m,valueOf:m},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=m)}var g=h("Object.prototype.toString"),v=Object.getOwnPropertyDescriptor;t.exports=p?function(w){if(!w||typeof w!="object")return!1;var T=v(w,"lastIndex");if(!(T&&i(T,"value")))return!1;try{a(w,d)}catch(_){return _===c}}:function(w){return!(!w||typeof w!="object"&&typeof w!="function")&&g(w)==="[object RegExp]"}},function(t,n,o){var i=o(0),a=o(4),c=o(13),d=o(14),h=o(30),p=a(d());i(p,{getPolyfill:d,implementation:c,shim:h}),t.exports=p},function(t,n,o){var i=function(){return typeof(function(){}).name=="string"},a=Object.getOwnPropertyDescriptor;if(a)try{a([],"length")}catch{a=null}i.functionsHaveConfigurableNames=function(){if(!i()||!a)return!1;var d=a(function(){},"name");return!!d&&!!d.configurable};var c=Function.prototype.bind;i.boundFunctionsHaveNames=function(){return i()&&typeof c=="function"&&(function(){}).bind().name!==""},t.exports=i},function(t,n,o){var i=o(0).supportsDescriptors,a=o(14),c=Object.getOwnPropertyDescriptor,d=Object.defineProperty,h=TypeError,p=Object.getPrototypeOf,m=/a/;t.exports=function(){if(!i||!p)throw new h("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var g=a(),v=p(m),w=c(v,"flags");return w&&w.get===g||d(v,"flags",{configurable:!0,enumerable:!1,get:g}),g}},function(t,n,o){var i=Date.prototype.getDay,a=Object.prototype.toString,c=o(1)();t.exports=function(d){return typeof d=="object"&&d!==null&&(c?function(h){try{return i.call(h),!0}catch{return!1}}(d):a.call(d)==="[object Date]")}},function(t,n,o){var i=o(6),a=o(15),c={attributes:{compose:function(h,p,m){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var g=a(!0,{},p);for(var v in m||(g=Object.keys(g).reduce(function(w,T){return g[T]!=null&&(w[T]=g[T]),w},{})),h)h[v]!==void 0&&p[v]===void 0&&(g[v]=h[v]);return Object.keys(g).length>0?g:void 0},diff:function(h,p){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var m=Object.keys(h).concat(Object.keys(p)).reduce(function(g,v){return i(h[v],p[v])||(g[v]=p[v]===void 0?null:p[v]),g},{});return Object.keys(m).length>0?m:void 0},transform:function(h,p,m){if(typeof h!="object")return p;if(typeof p=="object"){if(!m)return p;var g=Object.keys(p).reduce(function(v,w){return h[w]===void 0&&(v[w]=p[w]),v},{});return Object.keys(g).length>0?g:void 0}}},iterator:function(h){return new d(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function d(h){this.ops=h,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(h){h||(h=1/0);var p=this.ops[this.index];if(p){var m=this.offset,g=c.length(p);if(h>=g-m?(h=g-m,this.index+=1,this.offset=0):this.offset+=h,typeof p.delete=="number")return{delete:h};var v={};return p.attributes&&(v.attributes=p.attributes),typeof p.retain=="number"?v.retain=h:typeof p.insert=="string"?v.insert=p.insert.substr(m,h):v.insert=p.insert,v}return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},d.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,p=this.index,m=this.next(),g=this.ops.slice(this.index);return this.offset=h,this.index=p,[m].concat(g)}return[]},t.exports=c},function(t,n,o){var i=o(34),a=o(37);function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}n.parse=B,n.resolve=function(F,j){return B(F,!1,!0).resolve(j)},n.resolveObject=function(F,j){return F?B(F,!1,!0).resolveObject(j):j},n.format=function(F){return a.isString(F)&&(F=B(F)),F instanceof c?F.format():c.prototype.format.call(F)},n.Url=c;var d=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
219
|
-
`," "]),g=["'"].concat(m),v=["%","/","?",";","#"].concat(g),w=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,A={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},D={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=o(38);function B(F,j,z){if(F&&a.isObject(F)&&F instanceof c)return F;var G=new c;return G.parse(F,j,z),G}c.prototype.parse=function(F,j,z){if(!a.isString(F))throw new TypeError("Parameter 'url' must be a string, not "+typeof F);var G=F.indexOf("?"),pe=G!==-1&&G<F.indexOf("#")?"?":"#",P=F.split(pe);P[0]=P[0].replace(/\\/g,"/");var U=F=P.join(pe);if(U=U.trim(),!z&&F.split("#").length===1){var V=p.exec(U);if(V)return this.path=U,this.href=U,this.pathname=V[1],V[2]?(this.search=V[2],this.query=j?I.parse(this.search.substr(1)):this.search.substr(1)):j&&(this.search="",this.query={}),this}var Q=d.exec(U);if(Q){var se=(Q=Q[0]).toLowerCase();this.protocol=se,U=U.substr(Q.length)}if(z||Q||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var ue=U.substr(0,2)==="//";!ue||Q&&R[Q]||(U=U.substr(2),this.slashes=!0)}if(!R[Q]&&(ue||Q&&!D[Q])){for(var oe,ae,ge=-1,re=0;re<w.length;re++)(ie=U.indexOf(w[re]))!==-1&&(ge===-1||ie<ge)&&(ge=ie);for((ae=ge===-1?U.lastIndexOf("@"):U.lastIndexOf("@",ge))!==-1&&(oe=U.slice(0,ae),U=U.slice(ae+1),this.auth=decodeURIComponent(oe)),ge=-1,re=0;re<v.length;re++){var ie;(ie=U.indexOf(v[re]))!==-1&&(ge===-1||ie<ge)&&(ge=ie)}ge===-1&&(ge=U.length),this.host=U.slice(0,ge),U=U.slice(ge),this.parseHost(),this.hostname=this.hostname||"";var he=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!he)for(var Se=this.hostname.split(/\./),Le=(re=0,Se.length);re<Le;re++){var ne=Se[re];if(ne&&!ne.match(T)){for(var ve="",ke=0,Pe=ne.length;ke<Pe;ke++)ne.charCodeAt(ke)>127?ve+="x":ve+=ne[ke];if(!ve.match(T)){var De=Se.slice(0,re),we=Se.slice(re+1),_e=ne.match(_);_e&&(De.push(_e[1]),we.unshift(_e[2])),we.length&&(U="/"+we.join(".")+U),this.hostname=De.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),he||(this.hostname=i.toASCII(this.hostname));var Ae=this.port?":"+this.port:"",$e=this.hostname||"";this.host=$e+Ae,this.href+=this.host,he&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!A[se])for(re=0,Le=g.length;re<Le;re++){var Fe=g[re];if(U.indexOf(Fe)!==-1){var Qe=encodeURIComponent(Fe);Qe===Fe&&(Qe=escape(Fe)),U=U.split(Fe).join(Qe)}}var Ue=U.indexOf("#");Ue!==-1&&(this.hash=U.substr(Ue),U=U.slice(0,Ue));var et=U.indexOf("?");if(et!==-1?(this.search=U.substr(et),this.query=U.substr(et+1),j&&(this.query=I.parse(this.query)),U=U.slice(0,et)):j&&(this.search="",this.query={}),U&&(this.pathname=U),D[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Ae=this.pathname||"";var ct=this.search||"";this.path=Ae+ct}return this.href=this.format(),this},c.prototype.format=function(){var F=this.auth||"";F&&(F=(F=encodeURIComponent(F)).replace(/%3A/i,":"),F+="@");var j=this.protocol||"",z=this.pathname||"",G=this.hash||"",pe=!1,P="";this.host?pe=F+this.host:this.hostname&&(pe=F+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(pe+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(P=I.stringify(this.query));var U=this.search||P&&"?"+P||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||D[j])&&pe!==!1?(pe="//"+(pe||""),z&&z.charAt(0)!=="/"&&(z="/"+z)):pe||(pe=""),G&&G.charAt(0)!=="#"&&(G="#"+G),U&&U.charAt(0)!=="?"&&(U="?"+U),j+pe+(z=z.replace(/[?#]/g,function(V){return encodeURIComponent(V)}))+(U=U.replace("#","%23"))+G},c.prototype.resolve=function(F){return this.resolveObject(B(F,!1,!0)).format()},c.prototype.resolveObject=function(F){if(a.isString(F)){var j=new c;j.parse(F,!1,!0),F=j}for(var z=new c,G=Object.keys(this),pe=0;pe<G.length;pe++){var P=G[pe];z[P]=this[P]}if(z.hash=F.hash,F.href==="")return z.href=z.format(),z;if(F.slashes&&!F.protocol){for(var U=Object.keys(F),V=0;V<U.length;V++){var Q=U[V];Q!=="protocol"&&(z[Q]=F[Q])}return D[z.protocol]&&z.hostname&&!z.pathname&&(z.path=z.pathname="/"),z.href=z.format(),z}if(F.protocol&&F.protocol!==z.protocol){if(!D[F.protocol]){for(var se=Object.keys(F),ue=0;ue<se.length;ue++){var oe=se[ue];z[oe]=F[oe]}return z.href=z.format(),z}if(z.protocol=F.protocol,F.host||R[F.protocol])z.pathname=F.pathname;else{for(var ae=(F.pathname||"").split("/");ae.length&&!(F.host=ae.shift()););F.host||(F.host=""),F.hostname||(F.hostname=""),ae[0]!==""&&ae.unshift(""),ae.length<2&&ae.unshift(""),z.pathname=ae.join("/")}if(z.search=F.search,z.query=F.query,z.host=F.host||"",z.auth=F.auth,z.hostname=F.hostname||F.host,z.port=F.port,z.pathname||z.search){var ge=z.pathname||"",re=z.search||"";z.path=ge+re}return z.slashes=z.slashes||F.slashes,z.href=z.format(),z}var ie=z.pathname&&z.pathname.charAt(0)==="/",he=F.host||F.pathname&&F.pathname.charAt(0)==="/",Se=he||ie||z.host&&F.pathname,Le=Se,ne=z.pathname&&z.pathname.split("/")||[],ve=(ae=F.pathname&&F.pathname.split("/")||[],z.protocol&&!D[z.protocol]);if(ve&&(z.hostname="",z.port=null,z.host&&(ne[0]===""?ne[0]=z.host:ne.unshift(z.host)),z.host="",F.protocol&&(F.hostname=null,F.port=null,F.host&&(ae[0]===""?ae[0]=F.host:ae.unshift(F.host)),F.host=null),Se=Se&&(ae[0]===""||ne[0]==="")),he)z.host=F.host||F.host===""?F.host:z.host,z.hostname=F.hostname||F.hostname===""?F.hostname:z.hostname,z.search=F.search,z.query=F.query,ne=ae;else if(ae.length)ne||(ne=[]),ne.pop(),ne=ne.concat(ae),z.search=F.search,z.query=F.query;else if(!a.isNullOrUndefined(F.search))return ve&&(z.hostname=z.host=ne.shift(),(_e=!!(z.host&&z.host.indexOf("@")>0)&&z.host.split("@"))&&(z.auth=_e.shift(),z.host=z.hostname=_e.shift())),z.search=F.search,z.query=F.query,a.isNull(z.pathname)&&a.isNull(z.search)||(z.path=(z.pathname?z.pathname:"")+(z.search?z.search:"")),z.href=z.format(),z;if(!ne.length)return z.pathname=null,z.search?z.path="/"+z.search:z.path=null,z.href=z.format(),z;for(var ke=ne.slice(-1)[0],Pe=(z.host||F.host||ne.length>1)&&(ke==="."||ke==="..")||ke==="",De=0,we=ne.length;we>=0;we--)(ke=ne[we])==="."?ne.splice(we,1):ke===".."?(ne.splice(we,1),De++):De&&(ne.splice(we,1),De--);if(!Se&&!Le)for(;De--;De)ne.unshift("..");!Se||ne[0]===""||ne[0]&&ne[0].charAt(0)==="/"||ne.unshift(""),Pe&&ne.join("/").substr(-1)!=="/"&&ne.push("");var _e,Ae=ne[0]===""||ne[0]&&ne[0].charAt(0)==="/";return ve&&(z.hostname=z.host=Ae?"":ne.length?ne.shift():"",(_e=!!(z.host&&z.host.indexOf("@")>0)&&z.host.split("@"))&&(z.auth=_e.shift(),z.host=z.hostname=_e.shift())),(Se=Se||z.host&&ne.length)&&!Ae&&ne.unshift(""),ne.length?z.pathname=ne.join("/"):(z.pathname=null,z.path=null),a.isNull(z.pathname)&&a.isNull(z.search)||(z.path=(z.pathname?z.pathname:"")+(z.search?z.search:"")),z.auth=F.auth||z.auth,z.slashes=z.slashes||F.slashes,z.href=z.format(),z},c.prototype.parseHost=function(){var F=this.host,j=h.exec(F);j&&((j=j[0])!==":"&&(this.port=j.substr(1)),F=F.substr(0,F.length-j.length)),F&&(this.hostname=F)}},function(t,n,o){(function(i,a){var c;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(d){n&&n.nodeType,i&&i.nodeType;var h=typeof a=="object"&&a;h.global!==h&&h.window!==h&&h.self;var p,m=2147483647,g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=Math.floor,A=String.fromCharCode;function R(P){throw new RangeError(T[P])}function D(P,U){for(var V=P.length,Q=[];V--;)Q[V]=U(P[V]);return Q}function I(P,U){var V=P.split("@"),Q="";return V.length>1&&(Q=V[0]+"@",P=V[1]),Q+D((P=P.replace(w,".")).split("."),U).join(".")}function B(P){for(var U,V,Q=[],se=0,ue=P.length;se<ue;)(U=P.charCodeAt(se++))>=55296&&U<=56319&&se<ue?(64512&(V=P.charCodeAt(se++)))==56320?Q.push(((1023&U)<<10)+(1023&V)+65536):(Q.push(U),se--):Q.push(U);return Q}function F(P){return D(P,function(U){var V="";return U>65535&&(V+=A((U-=65536)>>>10&1023|55296),U=56320|1023&U),V+=A(U)}).join("")}function j(P,U){return P+22+75*(P<26)-((U!=0)<<5)}function z(P,U,V){var Q=0;for(P=V?_(P/700):P>>1,P+=_(P/U);P>455;Q+=36)P=_(P/35);return _(Q+36*P/(P+38))}function G(P){var U,V,Q,se,ue,oe,ae,ge,re,ie,he,Se=[],Le=P.length,ne=0,ve=128,ke=72;for((V=P.lastIndexOf("-"))<0&&(V=0),Q=0;Q<V;++Q)P.charCodeAt(Q)>=128&&R("not-basic"),Se.push(P.charCodeAt(Q));for(se=V>0?V+1:0;se<Le;){for(ue=ne,oe=1,ae=36;se>=Le&&R("invalid-input"),((ge=(he=P.charCodeAt(se++))-48<10?he-22:he-65<26?he-65:he-97<26?he-97:36)>=36||ge>_((m-ne)/oe))&&R("overflow"),ne+=ge*oe,!(ge<(re=ae<=ke?1:ae>=ke+26?26:ae-ke));ae+=36)oe>_(m/(ie=36-re))&&R("overflow"),oe*=ie;ke=z(ne-ue,U=Se.length+1,ue==0),_(ne/U)>m-ve&&R("overflow"),ve+=_(ne/U),ne%=U,Se.splice(ne++,0,ve)}return F(Se)}function pe(P){var U,V,Q,se,ue,oe,ae,ge,re,ie,he,Se,Le,ne,ve,ke=[];for(Se=(P=B(P)).length,U=128,V=0,ue=72,oe=0;oe<Se;++oe)(he=P[oe])<128&&ke.push(A(he));for(Q=se=ke.length,se&&ke.push("-");Q<Se;){for(ae=m,oe=0;oe<Se;++oe)(he=P[oe])>=U&&he<ae&&(ae=he);for(ae-U>_((m-V)/(Le=Q+1))&&R("overflow"),V+=(ae-U)*Le,U=ae,oe=0;oe<Se;++oe)if((he=P[oe])<U&&++V>m&&R("overflow"),he==U){for(ge=V,re=36;!(ge<(ie=re<=ue?1:re>=ue+26?26:re-ue));re+=36)ve=ge-ie,ne=36-ie,ke.push(A(j(ie+ve%ne,0))),ge=_(ve/ne);ke.push(A(j(ge,0))),ue=z(V,Le,Q==se),V=0,++Q}++V,++U}return ke.join("")}p={version:"1.4.1",ucs2:{decode:B,encode:F},decode:G,encode:pe,toASCII:function(P){return I(P,function(U){return v.test(U)?"xn--"+pe(U):U})},toUnicode:function(P){return I(P,function(U){return g.test(U)?G(U.slice(4).toLowerCase()):U})}},(c=(function(){return p}).call(n,o,n,i))===void 0||(i.exports=c)})()}).call(this,o(35)(t),o(36))},function(t,n){t.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(t,n){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}t.exports=o},function(t,n,o){t.exports={isString:function(i){return typeof i=="string"},isObject:function(i){return typeof i=="object"&&i!==null},isNull:function(i){return i===null},isNullOrUndefined:function(i){return i==null}}},function(t,n,o){n.decode=n.parse=o(39),n.encode=n.stringify=o(40)},function(t,n,o){function i(c,d){return Object.prototype.hasOwnProperty.call(c,d)}t.exports=function(c,d,h,p){d=d||"&",h=h||"=";var m={};if(typeof c!="string"||c.length===0)return m;var g=/\+/g;c=c.split(d);var v=1e3;p&&typeof p.maxKeys=="number"&&(v=p.maxKeys);var w=c.length;v>0&&w>v&&(w=v);for(var T=0;T<w;++T){var _,A,R,D,I=c[T].replace(g,"%20"),B=I.indexOf(h);B>=0?(_=I.substr(0,B),A=I.substr(B+1)):(_=I,A=""),R=decodeURIComponent(_),D=decodeURIComponent(A),i(m,R)?a(m[R])?m[R].push(D):m[R]=[m[R],D]:m[R]=D}return m};var a=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"}},function(t,n,o){var i=function(h){switch(typeof h){case"string":return h;case"boolean":return h?"true":"false";case"number":return isFinite(h)?h:"";default:return""}};t.exports=function(h,p,m,g){return p=p||"&",m=m||"=",h===null&&(h=void 0),typeof h=="object"?c(d(h),function(v){var w=encodeURIComponent(i(v))+m;return a(h[v])?c(h[v],function(T){return w+encodeURIComponent(i(T))}).join(p):w+encodeURIComponent(i(h[v]))}).join(p):g?encodeURIComponent(i(g))+m+encodeURIComponent(i(h)):""};var a=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"};function c(h,p){if(h.map)return h.map(p);for(var m=[],g=0;g<h.length;g++)m.push(p(h[g],g));return m}var d=Object.keys||function(h){var p=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&p.push(m);return p}}])})}(Dm)),Dm.exports}var TP=EP();const RP=yf(TP),Me={container:"table-up-container",tableCaption:"table-up-caption",tableWrapper:"table-up",tableMain:"table-up-main",tableColgroup:"table-up-colgroup",tableCol:"table-up-col",tableBody:"table-up-body",tableRow:"table-up-row",tableCell:"table-up-cell",tableCellInner:"table-up-cell-inner"},Wn={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},ig={AFTER_TABLE_RESIZE:"after-table-resize"},Om={moduleName:"table-up"},kP=[["rgb(255, 255, 255)","rgb(0, 0, 0)","rgb(72, 83, 104)","rgb(41, 114, 244)","rgb(0, 163, 245)","rgb(49, 155, 98)","rgb(222, 60, 54)","rgb(248, 136, 37)","rgb(245, 196, 0)","rgb(153, 56, 215)"],["rgb(242, 242, 242)","rgb(127, 127, 127)","rgb(243, 245, 247)","rgb(229, 239, 255)","rgb(229, 246, 255)","rgb(234, 250, 241)","rgb(254, 233, 232)","rgb(254, 243, 235)","rgb(254, 249, 227)","rgb(253, 235, 255)"],["rgb(216, 216, 216)","rgb(89, 89, 89)","rgb(197, 202, 211)","rgb(199, 220, 255)","rgb(199, 236, 255)","rgb(195, 234, 213)","rgb(255, 201, 199)","rgb(255, 220, 196)","rgb(255, 238, 173)","rgb(242, 199, 255)"],["rgb(191, 191, 191)","rgb(63, 63, 63)","rgb(128, 139, 158)","rgb(153, 190, 255)","rgb(153, 221, 255)","rgb(152, 215, 182)","rgb(255, 156, 153)","rgb(255, 186, 132)","rgb(255, 226, 112)","rgb(213, 142, 255)"],["rgb(165, 165, 165)","rgb(38, 38, 38)","rgb(53, 59, 69)","rgb(20, 80, 184)","rgb(18, 116, 165)","rgb(39, 124, 79)","rgb(158, 30, 26)","rgb(184, 96, 20)","rgb(163, 130, 0)","rgb(94, 34, 129)"],["rgb(147, 147, 147)","rgb(13, 13, 13)","rgb(36, 39, 46)","rgb(12, 48, 110)","rgb(10, 65, 92)","rgb(24, 78, 50)","rgb(88, 17, 14)","rgb(92, 48, 10)","rgb(102, 82, 0)","rgb(59, 21, 81)"]],IP="table-up",MP=new Set([Me.tableCellInner]),LP=r=>MP.has(r.statics.blotName);function B2(r){return r&&r.parent?LP(r.parent)?!0:B2(r.parent):!1}function ei(r,e=IP){let t=e?`${e}-`:"";return{b:()=>`${t}${r}`,be:n=>n?`${t}${r}__${n}`:"",bm:n=>n?`${t}${r}--${n}`:"",bem:(n,o)=>n&&o?`${t}${r}__${n}--${o}`:"",ns:n=>n?`${t}${n}`:"",bs:n=>n?`${t}${r}-${n}`:"",cv:n=>n?`--${t}${n}`:"",is:n=>`is-${n}`}}function jn(r,e){let t=r.parent;for(;t&&t.statics.blotName!==e&&t!==r.scroll;)t=t.parent;if(t===r.scroll)throw Error(`${r.statics.blotName} must be a child of ${e}`);return t}function hf(r,e){let t=Array(e.length),n=new Map(e.map((i,a)=>[i,a])),o=r.parent;for(;o&&o!==r.scroll&&n.size!==0;){if(n.has(o.statics.blotName)){let i=n.get(o.statics.blotName);t[i]=o,n.delete(o.statics.blotName)}o=o.parent}if(n.size>0)throw Error(`${r.statics.blotName} must be a child of ${Array.from(n.keys()).join(", ")}`);return t}function Ub(r){let e=new Map,t=r;for(;t&&t.statics.blotName!=="scroll";)e.set(t.statics.blotName,t),t=t.parent;return e}function DP(r,e){let t=[],n=r.children.iterator(),o=null;for(;o=n();)o instanceof e&&t.push(o);return t}function OP(r,e,t){for(let n of Object.getOwnPropertyNames(e))t&&t.test(n)||Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n));return r}function NP(r,e){let t=class extends r{constructor(...n){super(...n)}};for(let n of e)OP(t.prototype,n.prototype,/^constructor$/);return t}function Tp(r,e){return r.prototype instanceof e}function rf(r,e){return r=Math.min(e,Math.max(0,Number.parseFloat(`${r}`))),Math.abs(r-e)<1e-6?1:r%e/Number.parseFloat(e)}function Wb(r){return{h:Math.min(360,Math.max(0,r.h)),s:Math.min(100,Math.max(0,r.s)),b:Math.min(100,Math.max(0,r.b)),a:Math.min(1,Math.max(0,r.a))}}function PP(r){r=r.startsWith("#")?r.slice(1):r;let e=Number.parseInt(r.slice(0,2),16),t=Number.parseInt(r.slice(2,4),16),n=Number.parseInt(r.slice(4,6),16),o=Number((Number.parseInt(r.slice(6,8)||"ff",16)/255).toFixed(2));return{r:e,g:t,b:n,a:o}}function Vb(r){let{r:e,g:t,b:n,a:o}=r;e=rf(e,255),t=rf(t,255),n=rf(n,255);let i=Math.max(e,t,n),a=Math.min(e,t,n),c,d=i,h=i-a,p=i===0?0:h/i;if(i===a)c=0;else{switch(i){case e:c=(t-n)/h+(t<n?6:0);break;case t:c=(n-e)/h+2;break;case n:c=(e-t)/h+4;break}c/=6}return{h:c*360,s:p*100,b:d*100,a:o}}function Wp(r){let{h:e,s:t,b:n,a:o}=r;e=rf(e,360)*6,t=rf(t,100),n=rf(n,100);let i=Math.floor(e),a=e-i,c=n*(1-t),d=n*(1-a*t),h=n*(1-(1-a)*t),p=i%6,m=[n,d,c,c,h,n][p],g=[h,n,n,d,c,c][p],v=[c,c,h,n,n,d][p];return{r:Math.round(m*255),g:Math.round(g*255),b:Math.round(v*255),a:o}}function F2(r){let e=[r.r.toString(16),r.g.toString(16),r.b.toString(16),Math.round(r.a*255).toString(16)];for(let t in e)e[t].length===1&&(e[t]=`0${e[t]}`);return e.join("")}const Gb=r=>F2(Wp(r)),iv=r=>typeof r=="function",BP=Array.isArray,qu=r=>typeof r=="string",FP=r=>typeof r=="number",Rp=r=>typeof r=="object"&&!!r,jP=r=>!Number.isNaN(r)&&Number(r)>0;function sg(r){let{type:e="default",content:t}=r||{},n=ei("button"),o=document.createElement("button");return o.classList.add(n.b(),e),t&&(qu(t)?o.textContent=t:o.appendChild(t)),o}function zP(r={}){let e=230,t=150,n=10,o=Vb(PP(r.color||"#ff0000")),i=ei("color-picker"),a=document.createElement("div");a.classList.add(i.b());let c=document.createElement("div");c.classList.add(i.be("content"));let d=document.createElement("div");d.classList.add(i.be("selector"));let h=document.createElement("div");h.classList.add(i.be("background")),d.appendChild(h);let p=document.createElement("div");p.classList.add(i.be("background-handle")),h.appendChild(p);let m=document.createElement("div");m.classList.add(i.be("alpha"));let g=document.createElement("div");g.classList.add(i.be("alpha-bg"));let v=document.createElement("div");v.classList.add(i.be("alpha-handle")),m.appendChild(g),m.appendChild(v);let w=document.createElement("div");w.classList.add(i.be("hue"));let T=document.createElement("div");T.classList.add(i.be("hue-handle")),w.appendChild(T);let _=document.createElement("div");_.classList.add(i.be("action"));let[A,R,D,I]=["r","g","b","a"].map(ve=>{let ke=document.createElement("div");ke.classList.add(i.be("action-item"),ve);let Pe=document.createElement("label");Pe.textContent=ve.toUpperCase();let De=document.createElement("input");return De.classList.add(i.be("input")),De.addEventListener("input",()=>{De.value=De.value.replaceAll(/[^0-9]/g,"")}),De.addEventListener("change",()=>{let we=Math.round(Number(De.value));ve==="a"&&(we/=100);let _e=Wb(Vb(Object.assign({},Wp(o),{[ve]:we})));se(_e),Q()}),ke.appendChild(Pe),ke.appendChild(De),_.appendChild(ke),De});c.appendChild(w),c.appendChild(d),c.appendChild(m),a.appendChild(c),a.appendChild(_);let B=!1,F=!1,j=!1;function z(){let ve=Gb(o);for(let[ke,Pe]of[A,R,D].entries())Pe.value=String(Number.parseInt(ve[ke*2]+ve[ke*2+1],16));I.value=String((o.a*100).toFixed(0))}function G(){Object.assign(p.style,{left:`${Math.floor(e*o.s/100)}px`,top:`${Math.floor(t*(100-o.b)/100)}px`})}function pe(){d.style.backgroundColor=`#${F2(Wp({h:o.h,s:100,b:100,a:1}))}`}function P(){T.style.top=`${Math.floor(t-t*o.h/360)}px`}function U(){v.style.left=`${o.a*100}%`}function V(){let{r:ve,g:ke,b:Pe}=Wp(o);g.style.background=`linear-gradient(to right, rgba(${ve}, ${ke}, ${Pe}, 0) 0%, rgba(${ve}, ${ke}, ${Pe}, 1) 100%)`}function Q(){G(),pe(),P(),U(),V(),z()}function se(ve){o=Wb(Object.assign({},o,ve)),z(),r.onChange&&r.onChange(`#${Gb(o)}`)}function ue(ve){let ke=d.getBoundingClientRect(),Pe=ke.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),De=ke.left+document.body.scrollLeft,we=Math.floor(100*Math.max(0,Math.min(e,ve.pageX-De))/e),_e=Math.floor(100*(t-Math.max(0,Math.min(t,ve.pageY-Pe)))/t);se({s:we,b:_e}),Q()}function oe(ve){let ke=w.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,ve.pageY-ke)))/t)}),Q()}function ae(ve){let{pageX:ke}=ve,Pe=m.getBoundingClientRect(),De=ke-Pe.left;De=Math.max(n/2,De),De=Math.min(De,Pe.width-n/2),se({a:Math.round((De-10/2)/(Pe.width-10)*100)/100}),Q()}function ge(ve){B&&(ve.preventDefault(),ue(ve)),F&&(ve.preventDefault(),oe(ve)),j&&(ve.preventDefault(),ae(ve))}function re(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",re),B=!1}function ie(ve){document.addEventListener("mousemove",ge),document.addEventListener("mouseup",re),B=!0,ue(ve)}d.addEventListener("mousedown",ie);function he(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",he),F=!1}function Se(ve){document.addEventListener("mousemove",ge),document.addEventListener("mouseup",he),F=!0,oe(ve)}w.addEventListener("mousedown",Se);function Le(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",Le),j=!1}function ne(ve){document.addEventListener("mousemove",ge),document.addEventListener("mouseup",Le),j=!0,ae(ve)}return m.addEventListener("mousedown",ne),Q(),a}let Yb=8e3;function j2({child:r,target:e=document.body,beforeClose:t=()=>{}}={}){let n=ei("dialog"),o=e,i=document.createElement("div");i.classList.add(n.b()),i.style.zIndex=String(Yb);let a=document.createElement("div");if(a.classList.add(n.be("overlay")),i.appendChild(a),r){let h=document.createElement("div");h.classList.add(n.be("content")),h.appendChild(r),a.appendChild(h),h.addEventListener("click",p=>{p.stopPropagation()})}let c=getComputedStyle(o).overflow;o.style.overflow="hidden",o.appendChild(i);let d=()=>{t(),i.remove(),o.style.overflow=c};return i.addEventListener("click",d),Yb+=1,{dialog:i,close:d}}function Zb(r,e){let t=ei("input");e.type||(e.type="text"),e.value||(e.value="");let n=document.createElement("div");if(n.classList.add(t.be("item")),r){let c=document.createElement("span");c.classList.add(t.be("label")),c.textContent=r,n.appendChild(c)}let o=document.createElement("div");o.classList.add(t.be("input"));let i=document.createElement("input");for(let c in e)i.setAttribute(c,e[c]);return(e.max||e.min)&&i.addEventListener("blur",()=>{e.max&&e.max<=Number(i.value)&&(i.value=String(e.max)),e.min&&e.min>=Number(i.value)&&(i.value=String(e.min))}),o.appendChild(i),n.appendChild(o),i.addEventListener("focus",()=>{o.classList.add("focus")}),i.addEventListener("blur",()=>{o.classList.remove("focus")}),{item:n,input:i,errorTip:c=>{let d;return o.classList.contains("error")?d=o.querySelector(`.${t.be("error-tip")}`):(d=document.createElement("span"),d.classList.add(t.be("error-tip")),o.appendChild(d)),d.textContent=c,o.classList.add("error"),{removeError:()=>{o.classList.remove("error"),d.remove()}}}}}async function HP(r={}){let e=ei("creator"),t=document.createElement("div");t.classList.add(e.b());let n=document.createElement("div");n.classList.add(e.be("input"));let{item:o,input:i,errorTip:a}=Zb(r.rowText||"Row",{type:"number",value:String(r.row||""),max:99}),{item:c,input:d,errorTip:h}=Zb(r.colText||"Column",{type:"number",value:String(r.col||""),max:99});n.appendChild(o),n.appendChild(c),t.appendChild(n);let p=document.createElement("div");p.classList.add(e.be("control"));let m=sg({type:"confirm",content:r.confirmText||"Confirm"}),g=sg({type:"default",content:r.cancelText||"Cancel"});p.appendChild(m),p.appendChild(g),t.appendChild(p);let v=(T=Number(i.value),_=Number(d.value))=>{if(Number.isNaN(T)||T<=0){a(r.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(_)||_<=0){h(r.notPositiveNumberError||"Please enter a positive integer");return}return{row:T,col:_}},w=T=>{T.key==="Escape"&&(close(),document.removeEventListener("keydown",w))};return new Promise((T,_)=>{let{close:A}=j2({child:t,beforeClose:_});i.focus();for(let R of[i,d])R.addEventListener("keydown",D=>{if(D.key==="Enter"){let I=v();I&&(T(I),A())}});m.addEventListener("click",async()=>{let R=v();R&&(T(R),A())}),document.addEventListener("keydown",w),g.addEventListener("click",A)})}function $P(r={}){let e=ei("select-box"),t=document.createElement("div");t.classList.add(e.b());let n=document.createElement("div");n.classList.add(e.be("block"));for(let i=0;i<(r.row||8);i++)for(let a=0;a<(r.col||8);a++){let c=document.createElement("div");c.classList.add(e.be("item")),c.dataset.row=String(i+1),c.dataset.col=String(a+1),n.appendChild(c)}let o=()=>{let{row:i,col:a}=t.dataset;for(let d of Array.from(n.querySelectorAll(".active")))d.classList.remove("active");if(!i||!a)return;let c=Array.from(n.children);for(let d=0;d<c.length;d++){let{row:h,col:p}=c[d].dataset;if(h>i&&p>a)return;h<=i&&p<=a?c[d].classList.add("active"):c[d].classList.remove("active")}};if(n.addEventListener("mousemove",i=>{if(!i.target)return;let{row:a,col:c}=i.target.dataset;!a||!c||(t.dataset.row=a,t.dataset.col=c,o())}),n.addEventListener("mouseleave",()=>{t.removeAttribute("data-row"),t.removeAttribute("data-col"),o()}),n.addEventListener("click",()=>{let{row:i,col:a}=t.dataset;!i||!a||r.onSelect&&r.onSelect(Number(i),Number(a))}),t.appendChild(n),r.customBtn){let i=r.texts||{},a=document.createElement("div");a.classList.add(e.be("custom")),a.textContent=i.customBtnText||"Custom",a.addEventListener("click",async()=>{let c=await HP(i);c&&r.onSelect&&r.onSelect(c.row,c.col)}),t.appendChild(a)}return t}const ag=Math.min,Uu=Math.max,lg=Math.round,kp=Math.floor,Qa=r=>({x:r,y:r}),qP={left:"right",right:"left",bottom:"top",top:"bottom"},UP={start:"end",end:"start"};function Kb(r,e,t){return Uu(r,ag(e,t))}function pf(r,e){return typeof r=="function"?r(e):r}function Zc(r){return r.split("-")[0]}function Lg(r){return r.split("-")[1]}function Zv(r){return r==="x"?"y":"x"}function z2(r){return r==="y"?"height":"width"}function Fl(r){return["top","bottom"].includes(Zc(r))?"y":"x"}function H2(r){return Zv(Fl(r))}function WP(r,e,t){t===void 0&&(t=!1);let n=Lg(r),o=H2(r),i=z2(o),a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=cg(a)),[a,cg(a)]}function VP(r){let e=cg(r);return[sv(r),e,sv(e)]}function sv(r){return r.replace(/start|end/g,e=>UP[e])}function GP(r,e,t){let n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?e?o:n:e?n:o;case"left":case"right":return e?i:a;default:return[]}}function YP(r,e,t,n){let o=Lg(r),i=GP(Zc(r),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(sv)))),i}function cg(r){return r.replace(/left|right|bottom|top/g,e=>qP[e])}function ZP(r){return{top:0,right:0,bottom:0,left:0,...r}}function KP(r){return typeof r=="number"?{top:r,right:r,bottom:r,left:r}:ZP(r)}function ug(r){let{x:e,y:t,width:n,height:o}=r;return{width:n,height:o,top:t,left:e,right:e+n,bottom:t+o,x:e,y:t}}function Xb(r,e,t){let{reference:n,floating:o}=r,i=Fl(e),a=H2(e),c=z2(a),d=Zc(e),h=i==="y",p=n.x+n.width/2-o.width/2,m=n.y+n.height/2-o.height/2,g=n[c]/2-o[c]/2,v;switch(d){case"top":v={x:p,y:n.y-o.height};break;case"bottom":v={x:p,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:m};break;case"left":v={x:n.x-o.width,y:m};break;default:v={x:n.x,y:n.y}}switch(Lg(e)){case"start":v[a]-=g*(t&&h?-1:1);break;case"end":v[a]+=g*(t&&h?-1:1);break}return v}const XP=async(r,e,t)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,c=i.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(e)),h=await a.getElementRects({reference:r,floating:e,strategy:o}),{x:p,y:m}=Xb(h,n,d),g=n,v={},w=0;for(let T=0;T<c.length;T++){let{name:_,fn:A}=c[T],{x:R,y:D,data:I,reset:B}=await A({x:p,y:m,initialPlacement:n,placement:g,strategy:o,middlewareData:v,rects:h,platform:a,elements:{reference:r,floating:e}});p=R??p,m=D??m,v={...v,[_]:{...v[_],...I}},B&&w<=50&&(w++,typeof B=="object"&&(B.placement&&(g=B.placement),B.rects&&(h=B.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:o}):B.rects),{x:p,y:m}=Xb(h,g,d)),T=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:v}};async function $2(r,e){e===void 0&&(e={});let{x:t,y:n,platform:o,rects:i,elements:a,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=pf(e,r),v=KP(g),w=p==="floating"?"reference":"floating",T=a[m?w:p],_=ug(await o.getClippingRect({element:await(o.isElement==null?void 0:o.isElement(T))??!0?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:c})),A=p==="floating"?{x:t,y:n,width:i.floating.width,height:i.floating.height}:i.reference,R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),D=await(o.isElement==null?void 0:o.isElement(R))&&await(o.getScale==null?void 0:o.getScale(R))||{x:1,y:1},I=ug(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:R,strategy:c}):A);return{top:(_.top-I.top+v.top)/D.y,bottom:(I.bottom-_.bottom+v.bottom)/D.y,left:(_.left-I.left+v.left)/D.x,right:(I.right-_.right+v.right)/D.x}}const JP=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var pe,P,U,V;var t;let{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:d}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...T}=pf(r,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let _=Zc(n),A=Fl(a),R=Zc(a)===a,D=await(c.isRTL==null?void 0:c.isRTL(d.floating)),I=m||(R||!w?[cg(a)]:VP(a)),B=v!=="none";!m&&B&&I.push(...YP(a,w,v,D));let F=[a,...I],j=await $2(e,T),z=[],G=((pe=o.flip)==null?void 0:pe.overflows)||[];if(h&&z.push(j[_]),p){let Q=WP(n,i,D);z.push(j[Q[0]],j[Q[1]])}if(G=[...G,{placement:n,overflows:z}],!z.every(Q=>Q<=0)){let Q=(((P=o.flip)==null?void 0:P.index)||0)+1,se=F[Q];if(se&&(!(p==="alignment"?A!==Fl(se):!1)||G.every(ae=>ae.overflows[0]>0&&Fl(ae.placement)===A)))return{data:{index:Q,overflows:G},reset:{placement:se}};let ue=(U=G.filter(oe=>oe.overflows[0]<=0).sort((oe,ae)=>oe.overflows[1]-ae.overflows[1])[0])==null?void 0:U.placement;if(!ue)switch(g){case"bestFit":{let oe=(V=G.filter(ae=>{if(B){let ge=Fl(ae.placement);return ge===A||ge==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ge=>ge>0).reduce((ge,re)=>ge+re,0)]).sort((ae,ge)=>ae[1]-ge[1])[0])==null?void 0:V[0];oe&&(ue=oe);break}case"initialPlacement":ue=a;break}if(n!==ue)return{reset:{placement:ue}}}return{}}}};async function QP(r,e){let{placement:t,platform:n,elements:o}=r,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Zc(t),c=Lg(t),d=Fl(t)==="y",h=["left","top"].includes(a)?-1:1,p=i&&d?-1:1,m=pf(e,r),{mainAxis:g,crossAxis:v,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof w=="number"&&(v=c==="end"?w*-1:w),d?{x:v*p,y:g*h}:{x:g*h,y:v*p}}const eB=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var d;var t;let{x:n,y:o,placement:i,middlewareData:a}=e,c=await QP(e,r);return i===((d=a.offset)==null?void 0:d.placement)&&(t=a.arrow)!=null&&t.alignmentOffset?{}:{x:n+c.x,y:o+c.y,data:{...c,placement:i}}}}},tB=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:_=>{let{x:A,y:R}=_;return{x:A,y:R}}},...d}=pf(r,e),h={x:t,y:n},p=await $2(e,d),m=Fl(Zc(o)),g=Zv(m),v=h[g],w=h[m];if(i){let _=g==="y"?"top":"left",A=g==="y"?"bottom":"right",R=v+p[_],D=v-p[A];v=Kb(R,v,D)}if(a){let _=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=w+p[_],D=w-p[A];w=Kb(R,w,D)}let T=c.fn({...e,[g]:v,[m]:w});return{...T,data:{x:T.x-t,y:T.y-n,enabled:{[g]:i,[m]:a}}}}}},rB=function(r){return r===void 0&&(r={}),{options:r,fn(e){var A,R;let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=pf(r,e),p={x:t,y:n},m=Fl(o),g=Zv(m),v=p[g],w=p[m],T=pf(c,e),_=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(d){let D=g==="y"?"height":"width",I=i.reference[g]-i.floating[D]+_.mainAxis,B=i.reference[g]+i.reference[D]-_.mainAxis;v<I?v=I:v>B&&(v=B)}if(h){let D=g==="y"?"width":"height",I=["top","left"].includes(Zc(o)),B=i.reference[m]-i.floating[D]+(I&&((A=a.offset)==null?void 0:A[m])||0)+(I?0:_.crossAxis),F=i.reference[m]+i.reference[D]+(I?0:((R=a.offset)==null?void 0:R[m])||0)-(I?_.crossAxis:0);w<B?w=B:w>F&&(w=F)}return{[g]:v,[m]:w}}}};function Dg(){return typeof window<"u"}function wf(r){return q2(r)?(r.nodeName||"").toLowerCase():"#document"}function is(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function sl(r){var e;return(e=(q2(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function q2(r){return Dg()?r instanceof Node||r instanceof is(r).Node:!1}function ga(r){return Dg()?r instanceof Element||r instanceof is(r).Element:!1}function nl(r){return Dg()?r instanceof HTMLElement||r instanceof is(r).HTMLElement:!1}function Jb(r){return!Dg()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof is(r).ShadowRoot}function $h(r){let{overflow:e,overflowX:t,overflowY:n,display:o}=ma(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(o)}function nB(r){return["table","td","th"].includes(wf(r))}function Og(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function Kv(r){let e=Xv(),t=ga(r)?ma(r):r;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function oB(r){let e=Kc(r);for(;nl(e)&&!gf(e);){if(Kv(e))return e;if(Og(e))return null;e=Kc(e)}return null}function Xv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gf(r){return["html","body","#document"].includes(wf(r))}function ma(r){return is(r).getComputedStyle(r)}function Ng(r){return ga(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Kc(r){if(wf(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Jb(r)&&r.host||sl(r);return Jb(e)?e.host:e}function U2(r){let e=Kc(r);return gf(e)?r.ownerDocument?r.ownerDocument.body:r.body:nl(e)&&$h(e)?e:U2(e)}function Mh(r,e,t){var a;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=U2(r),o=n===((a=r.ownerDocument)==null?void 0:a.body),i=is(n);if(o){let c=av(i);return e.concat(i,i.visualViewport||[],$h(n)?n:[],c&&t?Mh(c):[])}return e.concat(n,Mh(n,[],t))}function av(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function W2(r){let e=ma(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,o=nl(r),i=o?r.offsetWidth:t,a=o?r.offsetHeight:n,c=lg(t)!==i||lg(n)!==a;return c&&(t=i,n=a),{width:t,height:n,$:c}}function Jv(r){return ga(r)?r:r.contextElement}function nf(r){let e=Jv(r);if(!nl(e))return Qa(1);let t=e.getBoundingClientRect(),{width:n,height:o,$:i}=W2(e),a=(i?lg(t.width):t.width)/n,c=(i?lg(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const iB=Qa(0);function V2(r){let e=is(r);return!Xv()||!e.visualViewport?iB:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sB(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==is(r)?!1:e}function Yu(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let o=r.getBoundingClientRect(),i=Jv(r),a=Qa(1);e&&(n?ga(n)&&(a=nf(n)):a=nf(r));let c=sB(i,t,n)?V2(i):Qa(0),d=(o.left+c.x)/a.x,h=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(i){let g=is(i),v=n&&ga(n)?is(n):n,w=g,T=av(w);for(;T&&n&&v!==w;){let _=nf(T),A=T.getBoundingClientRect(),R=ma(T),D=A.left+(T.clientLeft+parseFloat(R.paddingLeft))*_.x,I=A.top+(T.clientTop+parseFloat(R.paddingTop))*_.y;d*=_.x,h*=_.y,p*=_.x,m*=_.y,d+=D,h+=I,w=is(T),T=av(w)}}return ug({width:p,height:m,x:d,y:h})}function Qv(r,e){let t=Ng(r).scrollLeft;return e?e.left+t:Yu(sl(r)).left+t}function G2(r,e,t){t===void 0&&(t=!1);let n=r.getBoundingClientRect(),o=n.left+e.scrollLeft-(t?0:Qv(r,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function aB(r){let{elements:e,rect:t,offsetParent:n,strategy:o}=r,i=o==="fixed",a=sl(n),c=e?Og(e.floating):!1;if(n===a||c&&i)return t;let d={scrollLeft:0,scrollTop:0},h=Qa(1),p=Qa(0),m=nl(n);if((m||!m&&!i)&&((wf(n)!=="body"||$h(a))&&(d=Ng(n)),nl(n))){let v=Yu(n);h=nf(n),p.x=v.x+n.clientLeft,p.y=v.y+n.clientTop}let g=a&&!m&&!i?G2(a,d,!0):Qa(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+p.x+g.x,y:t.y*h.y-d.scrollTop*h.y+p.y+g.y}}function lB(r){return Array.from(r.getClientRects())}function cB(r){let e=sl(r),t=Ng(r),n=r.ownerDocument.body,o=Uu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Uu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Qv(r),c=-t.scrollTop;return ma(n).direction==="rtl"&&(a+=Uu(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:c}}function uB(r,e){let t=is(r),n=sl(r),o=t.visualViewport,i=n.clientWidth,a=n.clientHeight,c=0,d=0;if(o){i=o.width,a=o.height;let h=Xv();(!h||h&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:i,height:a,x:c,y:d}}function dB(r,e){let t=Yu(r,!0,e==="fixed"),n=t.top+r.clientTop,o=t.left+r.clientLeft,i=nl(r)?nf(r):Qa(1),a=r.clientWidth*i.x,c=r.clientHeight*i.y,d=o*i.x,h=n*i.y;return{width:a,height:c,x:d,y:h}}function Qb(r,e,t){let n;if(e==="viewport")n=uB(r,t);else if(e==="document")n=cB(sl(r));else if(ga(e))n=dB(e,t);else{let o=V2(r);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ug(n)}function Y2(r,e){let t=Kc(r);return t===e||!ga(t)||gf(t)?!1:ma(t).position==="fixed"||Y2(t,e)}function fB(r,e){let t=e.get(r);if(t)return t;let n=Mh(r,[],!1).filter(c=>ga(c)&&wf(c)!=="body"),o=null,i=ma(r).position==="fixed",a=i?Kc(r):r;for(;ga(a)&&!gf(a);){let c=ma(a),d=Kv(a);!d&&c.position==="fixed"&&(o=null),(i?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$h(a)&&!d&&Y2(r,a))?n=n.filter(p=>p!==a):o=c,a=Kc(a)}return e.set(r,n),n}function hB(r){let{element:e,boundary:t,rootBoundary:n,strategy:o}=r,i=t==="clippingAncestors"?Og(e)?[]:fB(e,this._c):[].concat(t),a=[...i,n],c=a[0],d=a.reduce((h,p)=>{let m=Qb(e,p,o);return h.top=Uu(m.top,h.top),h.right=ag(m.right,h.right),h.bottom=ag(m.bottom,h.bottom),h.left=Uu(m.left,h.left),h},Qb(e,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function pB(r){let{width:e,height:t}=W2(r);return{width:e,height:t}}function gB(r,e,t){let n=nl(e),o=sl(e),i=t==="fixed",a=Yu(r,!0,i,e),c={scrollLeft:0,scrollTop:0},d=Qa(0);function h(){d.x=Qv(o)}if(n||!n&&!i)if((wf(e)!=="body"||$h(o))&&(c=Ng(e)),n){let v=Yu(e,!0,i,e);d.x=v.x+e.clientLeft,d.y=v.y+e.clientTop}else o&&h();i&&!n&&o&&h();let p=o&&!n&&!i?G2(o,c):Qa(0),m=a.left+c.scrollLeft-d.x-p.x,g=a.top+c.scrollTop-d.y-p.y;return{x:m,y:g,width:a.width,height:a.height}}function Nm(r){return ma(r).position==="static"}function ex(r,e){if(!nl(r)||ma(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return sl(r)===t&&(t=t.ownerDocument.body),t}function Z2(r,e){let t=is(r);if(Og(r))return t;if(!nl(r)){let o=Kc(r);for(;o&&!gf(o);){if(ga(o)&&!Nm(o))return o;o=Kc(o)}return t}let n=ex(r,e);for(;n&&nB(n)&&Nm(n);)n=ex(n,e);return n&&gf(n)&&Nm(n)&&!Kv(n)?t:n||oB(r)||t}const mB=async function(r){let e=this.getOffsetParent||Z2,t=this.getDimensions,n=await t(r.floating);return{reference:gB(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vB(r){return ma(r).direction==="rtl"}const yB={convertOffsetParentRelativeRectToViewportRelativeRect:aB,getDocumentElement:sl,getClippingRect:hB,getOffsetParent:Z2,getElementRects:mB,getClientRects:lB,getDimensions:pB,getScale:nf,isElement:ga,isRTL:vB};function K2(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function bB(r,e){let t=null,n,o=sl(r);function i(){var c;clearTimeout(n),(c=t)==null||c.disconnect(),t=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();let h=r.getBoundingClientRect(),{left:p,top:m,width:g,height:v}=h;if(c||e(),!g||!v)return;let w=kp(m),T=kp(o.clientWidth-(p+g)),_=kp(o.clientHeight-(m+v)),A=kp(p),R=-w+"px "+-T+"px "+-_+"px "+-A+"px",D={rootMargin:R,threshold:Uu(0,ag(1,d))||1},I=!0;function B(F){let j=F[0].intersectionRatio;if(j!==d){if(!I)return a();j?a(!1,j):n=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!K2(h,r.getBoundingClientRect())&&a(),I=!1}try{t=new IntersectionObserver(B,{...D,root:o.ownerDocument})}catch{t=new IntersectionObserver(B,D)}t.observe(r)}return a(!0),i}function xB(r,e,t,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=Jv(r),p=o||i?[...h?Mh(h):[],...Mh(e)]:[];p.forEach(A=>{o&&A.addEventListener("scroll",t,{passive:!0}),i&&A.addEventListener("resize",t)});let m=h&&c?bB(h,t):null,g=-1,v=null;a&&(v=new ResizeObserver(A=>{let[R]=A;R&&R.target===h&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=v)==null||D.observe(e)})),t()}),h&&!d&&v.observe(h),v.observe(e));let w,T=d?Yu(r):null;d&&_();function _(){let A=Yu(r);T&&!K2(T,A)&&t(),T=A,w=requestAnimationFrame(_)}return t(),()=>{var A;p.forEach(R=>{o&&R.removeEventListener("scroll",t),i&&R.removeEventListener("resize",t)}),m==null||m(),(A=v)==null||A.disconnect(),v=null,d&&cancelAnimationFrame(w)}}const X2=eB,J2=tB,Q2=JP,eS=rB,tS=(r,e,t)=>{let n=new Map,o={platform:yB,...t},i={...o.platform,_c:n};return XP(r,e,{...o,platform:i})};function wB(r,e,t,n,o){return r.addEventListener("transitionend",t,n),setTimeout(()=>{t()},e)}const CB=4;let Ip;function Pm(r,e={}){let{msg:t="",delay:n=150,content:o,direction:i="bottom",type:a="hover",container:c,onOpen:d,onClose:h,closed:p,onDestroy:m}=e,g=ei("tooltip");if(t||o){Ip||(Ip=document.createElement("div"),document.body.appendChild(Ip));let v=c||Ip,w=document.createElement("div");w.classList.add(g.b(),"hidden","transparent"),o?w.appendChild(o):t&&(w.textContent=t);let T,_,A,R=()=>{A&&A(),tS(r,w,{placement:i,middleware:[Q2(),J2({limiter:eS()}),X2(CB)]}).then(({x:Q,y:se})=>{Object.assign(w.style,{left:`${Q}px`,top:`${se}px`})})},D=()=>{w.classList.add("hidden"),v.contains(w)&&v.removeChild(w),A&&A(),p&&p()},I=(Q=!1)=>{_&&clearTimeout(_),T=setTimeout(()=>{if(d){let se=d(Q);if(!Q&&se)return}v.appendChild(w),w.removeEventListener("transitionend",D),w.classList.remove("hidden"),A=xB(r,w,R),w.classList.remove("transparent")},n)},B=(Q=!1)=>{T&&clearTimeout(T),_=setTimeout(()=>{if(h){let se=h(Q);if(!Q&&se)return}wB(w,150,D,{once:!0}),w.classList.add("transparent")},n)},F=()=>{let Q=[r,w],se=B.bind(void 0,!1),ue=I.bind(void 0,!1);return{prepare:()=>{for(let ae of Q)ae.addEventListener("mouseenter",ue),ae.addEventListener("mouseleave",se)},show:I,hide:B,destroy:()=>{for(let ae of Q)ae.removeEventListener("mouseenter",ue),ae.removeEventListener("mouseleave",se)}}},j=()=>{let Q=ue=>{ue.stopPropagation(),B(!1)},se=ue=>{ue.stopPropagation(),I(),document.removeEventListener("click",Q),document.addEventListener("click",Q,{once:!0})};return{prepare:()=>{w.addEventListener("click",ue=>ue.stopPropagation()),r.addEventListener("click",se)},show:I,hide:(ue=!1)=>{B(ue),document.removeEventListener("click",Q)},destroy:()=>{r.removeEventListener("click",se),document.removeEventListener("click",Q)}}},z={hover:F,click:j},{prepare:G,show:pe,hide:P,destroy:U}=z[a]();return G(),{show:pe,hide:P,destroy:()=>{P(!0),m&&m(),U(),A&&A(),w.remove()}}}return null}function SB(r,e,t=0,n=!0){let{x:o,y:i,x1:a,y1:c}=r,{x:d,y:h,x1:p,y1:m}=e,g,v;return n?(g=a<d+t||o-t>p,v=c<h+t||i-t>m):(g=a<=d+t||o-t>=p,v=c<=h+t||i-t>=m),!(g||v)}function _B(r,e){let t=e.getBoundingClientRect();return{x:r.x-t.x-e.scrollLeft,y:r.y-t.y-e.scrollTop,x1:r.x-t.x-e.scrollLeft+r.width,y1:r.y-t.y-e.scrollTop+r.height,width:r.width,height:r.height}}const Mp=8;function AB(r){let{left:e,top:t,width:n,height:o}=r,{clientWidth:i,clientHeight:a}=document.documentElement,c=!1,d=!1;return e+n>i?(e=i-n-Mp,c=!0):e<0&&(e=Mp,c=!0),t+o>a?(t=a-o-Mp,d=!0):t<0&&(t=Mp,d=!0),{left:e,top:t,leftLimited:c,topLimited:d}}function EB(r,e={}){let t=Symbol("ignoreFirstBind"),n=new Set,o=new ResizeObserver(d=>{e.ignoreFirstBind&&d.some(h=>{let p=h.target,m=p[t];return p[t]=!0,!m})||r(d)}),i=o.observe;o.observe=(d,h)=>{n.add(d),i.call(o,d,h)};let a=o.unobserve;o.unobserve=d=>{n.has(d)&&(n.delete(d),d[t]=void 0),a.call(o,d)};let c=o.disconnect;return o.disconnect=()=>{for(let d of n.values())d[t]=void 0;c.call(o)},o}function dg(r,e){r.addEventListener("scroll",e),this.scrollHandler.push([r,e])}function Vp(){for(let r=0;r<this.scrollHandler.length;r++){let[e,t]=this.scrollHandler[r];e.removeEventListener("scroll",t)}this.scrollHandler=[]}function nh(r){return{y:r.scrollTop,x:r.scrollLeft}}function fg(r){let e={},t=r.trim().split(";");for(let n=0;n<t.length;n++){let o=t[n].trim();if(!o)continue;let i=o.indexOf(":");if(i===-1)continue;let a=o.slice(0,Math.max(0,i)).trim(),c=o.slice(Math.max(0,i+1)).trim();e[mf(a)]=c}return e}function lv(r){return Object.entries(r).map(([e,t])=>`${TB(e)}: ${t};`).join(" ")}function TB(r){return r.replaceAll(/([A-Z])/g," $1").trim().split(" ").join("-").toLowerCase()}function mf(r){return r.replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())}const wo=()=>Math.random().toString(36).slice(2);function rS(r,e){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{r.apply(this,n)},e)}}const Bm=Re.import("parchment"),tx=Re.import("blots/container"),RB=Re.import("blots/block"),kB=Re.import("blots/block/embed");var Ts,Qc=(Ts=class extends tx{static create(e){let t=document.createElement(this.tagName);return this.className&&t.classList.add(this.className),t}optimize(e){if(this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove();this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}enforceAllowedChildren(){this.children.forEach(e=>{this.statics.allowedChildren.some(n=>e instanceof n)||(e.statics.scope===Bm.Scope.BLOCK_BLOT?(e.parent instanceof Ts?(e.next!=null&&e.parent.splitAfter(e),e.prev!=null&&e.parent.splitAfter(e.prev)):(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev)),e.parent.unwrap()):e instanceof Bm.ParentBlot?e.unwrap():e.remove())})}},fe(Ts,"tagName"),fe(Ts,"blotName",Me.container),fe(Ts,"scope",Bm.Scope.BLOCK_BLOT),fe(Ts,"allowedChildren",[RB,kB,tx]),fe(Ts,"requiredContainer"),fe(Ts,"defaultChild"),Ts);const qc=r=>jP(r)?r:1,rx=Re.import("blots/block"),IB=Re.import("blots/block/embed");var Mc,Oi=(Mc=class extends Qc{static isAllowStyle(r){let e=mf(r);for(let t of this.allowStyle)if(e.startsWith(mf(t)))return!0;return!1}static create(r){let{tableId:e,rowId:t,colId:n,rowspan:o,colspan:i,style:a,emptyRow:c}=r,d=super.create();d.dataset.tableId=e,d.dataset.rowId=t,d.dataset.colId=n,d.dataset.rowspan=String(qc(o)),d.dataset.colspan=String(qc(i)),a&&(d.dataset.style=a);try{c&&(d.dataset.emptyRow=JSON.stringify(c))}catch{}return d}static formats(r){let{tableId:e,rowId:t,colId:n,rowspan:o,colspan:i,style:a,emptyRow:c}=r.dataset,d={tableId:String(e),rowId:String(t),colId:String(n),rowspan:Number(qc(o)),colspan:Number(qc(i))};a&&(d.style=a);try{c&&(d.emptyRow=JSON.parse(c))}catch{}return d}constructor(r,e,t){super(r,e),e.setAttribute("contenteditable",String(r.isEnabled()))}setFormatValue(r,e,t=!1){if(t){if(!this.statics.isAllowStyle(r))return;this.parent&&this.parent.statics.blotName===Me.tableCell&&this.parent.setFormatValue(r,e)}else{if(!this.statics.allowDataAttrs.has(r))return;let o=`data-${r}`;e?this.domNode.setAttribute(o,e):this.domNode.removeAttribute(o),this.parent&&this.parent.statics.blotName===Me.tableCell&&this.parent.setFormatValue(r,e)}let n=this.descendants(rx,0);for(let o of n)o.cache={}}get tableId(){return this.domNode.dataset.tableId}get rowId(){return this.domNode.dataset.rowId}set rowId(r){this.setFormatValue("row-id",r)}get colId(){return this.domNode.dataset.colId}set colId(r){this.setFormatValue("col-id",r)}get rowspan(){return Number(this.domNode.dataset.rowspan)}set rowspan(r){this.setFormatValue("rowspan",r)}get colspan(){return Number(this.domNode.dataset.colspan)}set colspan(r){this.setFormatValue("colspan",r)}get emptyRow(){try{return JSON.parse(this.domNode.dataset.emptyRow)}catch{return[]}}set emptyRow(r){if(this.emptyRow.toString()!==r.toString())try{r.length>0?this.setFormatValue("empty-row",JSON.stringify(r),!1):this.setFormatValue("empty-row",null,!1)}catch{this.setFormatValue("empty-row",null,!1)}}getColumnIndex(){return jn(this,Me.tableMain).getColIds().indexOf(this.colId)}setStyleByString(r){let e=fg(r);for(let[t,n]of Object.entries(e))this.setFormatValue(t,n,!0)}formatAt(r,e,t,n){this.children.length===0&&(this.appendChild(this.scroll.create(this.statics.defaultChild.blotName)),e+=1),super.formatAt(r,e,t,n),n&&n.style&&this.setStyleByString(n.style)}insertAt(r,e,t){let[n]=this.children.find(r);if(!n&&this.statics.defaultChild){let o=this.scroll.create(this.statics.defaultChild.blotName||"block");this.appendChild(o)}super.insertAt(r,e,t)}formats(){let r=this.statics.formats(this.domNode);return{[this.statics.blotName]:r}}checkMerge(){let{colId:r,rowId:e,colspan:t,rowspan:n}=this,o=this.next;return o!==null&&o.statics.blotName===this.statics.blotName&&o.rowId===e&&o.colId===r&&o.colspan===t&&o.rowspan===n}optimize(){let r=this.parent,e=this.statics.formats(this.domNode);if(this.prev&&this.prev instanceof IB){let n=this.prev;if(this.insertBefore(n,this.children.head),this.length()<=1){let o=this.scroll.create("block");this.insertBefore(o,n.next)}}let t=r!==null&&r.statics.blotName!==Me.tableCell;if(t&&(this.wrap(Me.tableCell,e),this.children.length===0)){let n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove()),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0?this.remove():this.domNode.dataset.style&&t&&r.domNode.style.cssText!==this.domNode.dataset.style&&this.setStyleByString(this.domNode.dataset.style)}insertBefore(r,e){if(r.statics.blotName===this.statics.blotName){let t=r,n=this.statics.formats(t.domNode),o=this.statics.formats(this.domNode);if(Object.entries(o).every(([a,c])=>String(c)===String(n[a]))){let a=this.split(e?e.offset():0);return this.parent.insertBefore(t,a)}else{let[a,c]=hf(this,[Me.tableRow,Me.tableCell]);if(e){let d=e.offset(),h=this.length();if(d+1<h){let p=this.scroll.create(Me.tableCellInner,o);this.children.forEachAt(d+1,this.length(),m=>{p.appendChild(m)}),a.insertBefore(p.wrap(Me.tableCell,o),c.next)}}if(this.rowId!==t.rowId){if(e){let p=e.offset(a);a.split(p)}else if(c.next){let p=c.next.offset(a);a.split(p)}let d=this.scroll.create(Me.tableRow,n),h=this.scroll.create(Me.tableCell,n);return h.appendChild(t),d.appendChild(h),a.parent.insertBefore(d,a.next)}return a.insertBefore(t.wrap(Me.tableCell,n),e?c:c.next)}}else if(r.statics.blotName===Me.tableCol){try{let t=jn(this,Me.tableBody),n=this.offset(t),o=t.split(n);t.parent.insertBefore(r,o),r.optimize({})}catch{console.warn("TableCellInner not in TableBody")}return}super.insertBefore(r,e)}},fe(Mc,"blotName",Me.tableCellInner),fe(Mc,"tagName","div"),fe(Mc,"className","ql-table-cell-inner"),fe(Mc,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),fe(Mc,"defaultChild",rx),fe(Mc,"allowStyle",new Set(["background-color","border","height"])),Mc),ih,Ka=(ih=class extends Qc{static create(r){let e=super.create();return e.dataset.tableId=r.tableId,e.dataset.rowId=r.rowId,e}get rowId(){return this.domNode.dataset.rowId}get tableId(){return this.domNode.dataset.tableId}setHeight(r){this.foreachCellInner(e=>{e.setFormatValue("height",r,!0)})}getCellByColId(r,e){let t=jn(this,Me.tableMain),n=t.getColIds(),o=n.indexOf(r),i=this.children.iterator(),a=null;for(;a=i();){if(a.colId===r)return a;let c=n.indexOf(a.colId);if(c<o&&c+a.colspan>o)return a}return this[e]&&this[e].statics.blotName===Me.tableRow?this[e].getCellByColId(r,e):null}insertCell(r,e){let t=[],n=this.children.iterator(),o=0,i;for(;(i=n())&&(o+=i.colspan,!(o>r));)if(i.rowspan!==1)for(let a=0;a<i.rowspan-1;a++)t[a]=(t[a]||0)+i.colspan;if(i&&o-i.colspan<r){let a=i.getCellInner();a.colspan+=1,i.rowspan!==1&&(t.skipRowNum=i.rowspan-1)}else{let a=this.scroll.create(Me.tableCell,e),c=this.scroll.create(Me.tableCellInner,e),d=this.scroll.create("block");d.appendChild(this.scroll.create("break")),c.appendChild(d),a.appendChild(c),this.insertBefore(a,i)}return t}getCellByColumIndex(r){let e=[],t=null,n=0;if(r<0)return[t,n,e];let o=this.children.iterator();for(;t=o();){if(n+=t.colspan,t.rowspan!==1)for(let i=0;i<t.rowspan-1;i++)e[i]=(e[i]||0)+t.colspan;if(n>r)break}return[t,n,e]}removeCell(r){if(r<0)return[];let e=this.getCellByColumIndex(r),[t,n]=e,o=e[2];if(!t)return o;if(n-t.colspan<r||t.colspan>1){let[i]=t.descendants(Oi);if(t.colspan!==1&&r===n-t.colspan){let a=jn(this,Me.tableMain),c=a.getColIds();i.colId=c[c.indexOf(i.colId)+1]}t.rowspan!==1&&(o.skipRowNum=t.rowspan-1),--i.colspan}else t.remove();return o}foreachCellInner(r){let e=this.children.iterator(),t=0,n;for(;n=e();){let[o]=n.descendants(Oi);if(r(o,t++))break}}checkMerge(){let r=this.next;return r!==null&&r.statics.blotName===this.statics.blotName&&r.rowId===this.rowId}optimize(r){let e=this.parent,{tableId:t}=this;e!==null&&e.statics.blotName!==Me.tableBody&&this.wrap(Me.tableBody,t),this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName),this.enforceAllowedChildren(),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}},fe(ih,"blotName",Me.tableRow),fe(ih,"tagName","tr"),fe(ih,"className","ql-table-row"),ih),Fp,jc=(Fp=class extends Qc{static create(r){let e=super.create();return e.dataset.tableId=r,e}get tableId(){return this.domNode.dataset.tableId}insertRow(r){let e=jn(this,Me.tableMain);if(!e)return;let t=e.getColIds(),n=this.descendants(Ka),o=new Set(t),i=0;for(let h of n){if(i===r)break;h.foreachCellInner(p=>{if(i+p.rowspan>r&&(p.rowspan+=1,o.delete(p.colId),p.colspan!==1)){let m=t.indexOf(p.colId);for(let g=0;g<p.colspan-1;g++)o.delete(t[m+g+1])}}),i+=1}let a=e.tableId,c=wo(),d=this.scroll.create(Me.tableRow,{tableId:a,rowId:c});for(let h of o){let p=this.scroll.create("break"),m=p.wrap("block"),g=m.wrap(Me.tableCellInner,{tableId:a,rowId:c,colId:h,rowspan:1,colspan:1}),v=g.wrap(Me.tableCell,{tableId:a,rowId:c,colId:h,rowspan:1,colspan:1});d.appendChild(v)}this.insertBefore(d,n[r]||null)}checkMerge(){let r=this.next;return r!==null&&r.statics.blotName===this.statics.blotName&&r.tableId===this.tableId}optimize(r){let e=this.parent;if(e!==null&&e.statics.blotName!==Me.tableMain){let{tableId:t}=this;this.wrap(Me.tableMain,{tableId:t})}super.optimize(r)}},fe(Fp,"blotName",Me.tableBody),fe(Fp,"tagName","tbody"),Fp);const MB=Re.import("parchment"),LB=Re.import("blots/block"),DB=Re.import("blots/container");var cv=class extends LB{replaceWith(r,e){let t=qu(r)?this.scroll.create(r,e):r;if(t instanceof MB.ParentBlot)if(t.statics.blotName===Me.tableCellInner){let n=this.parent;if(n.statics.blotName===Me.tableCellInner){if(n==null||n.insertBefore(t,this.prev?null:this.next),n.statics.blotName===Me.tableCellInner){let o=this;for(;o;){let i=o.next;t.appendChild(o),o=i}}else t.appendChild(this);if(n&&n.length()===0){n.remove(),n.parent.statics.blotName===Me.tableCell&&n.parent.length()===0&&n.parent.remove();let o=n.parent.parent;o.statics.blotName===Me.tableRow&&o.children.length===0&&o.remove()}}else n instanceof DB?n.parent.insertBefore(t,n):n==null||n.insertBefore(t,this.next),t.appendChild(this);return t}else this.moveChildren(t);return this.parent!=null&&(this.parent.insertBefore(t,this.next),this.remove()),this.attributes.copy(t),t}format(r,e){if(r===Me.tableCellInner&&this.parent.statics.blotName===r&&!e)try{jn(this,Me.tableCellInner).unwrap()}catch{console.error("unwrap TableCellInner error")}else super.format(r,e)}};const OB=Re.import("blots/block/embed");var nx=class extends OB{delta(){let r=super.delta(),e=uv(this);return e[Me.tableCellInner]&&r.insert(`
|
218
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p(A,R){(R==null||R>A.length)&&(R=A.length);for(var D=0,I=new Array(R);D<R;D++)I[D]=A[D];return I}function m(A,R){var D=Object.keys(A);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(A);R&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(A,B).enumerable})),D.push.apply(D,I)}return D}function g(A){for(var R=1;R<arguments.length;R++){var D=arguments[R]!=null?arguments[R]:{};R%2?m(Object(D),!0).forEach(function(I){v(A,I,D[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(D)):m(Object(D)).forEach(function(I){Object.defineProperty(A,I,Object.getOwnPropertyDescriptor(D,I))})}return A}function v(A,R,D){return R in A?Object.defineProperty(A,R,{value:D,enumerable:!0,configurable:!0,writable:!0}):A[R]=D,A}function w(A,R){for(var D=0;D<R.length;D++){var I=R[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(A,I.key,I)}}var T={globalRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,urlRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,globalMailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,mailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,normalizeRegularExpression:/(https?:\/\/|www\.)[\S]+/i,normalizeUrlOptions:{stripWWW:!1}},_=function(){function A(I,B){var F=this;(function(j,z){if(!(j instanceof z))throw new TypeError("Cannot call a class as a function")})(this,A),this.quill=I,B=B||{},this.options=g(g({},T),B),this.urlNormalizer=function(j){return F.normalize(j)},this.mailNormalizer=function(j){return"mailto:".concat(j)},this.registerTypeListener(),this.registerPasteListener(),this.registerBlurListener()}var R,D;return R=A,(D=[{key:"registerPasteListener",value:function(){var I=this;this.quill.clipboard.addMatcher("A",function(B,F){var j,z=B.getAttribute("href"),G=(j=F.ops[0])===null||j===void 0?void 0:j.attributes;return(G==null?void 0:G.link)!=null&&(G.link=z),F}),this.quill.clipboard.addMatcher(Node.TEXT_NODE,function(B,F){if(typeof B.data=="string"){var j=I.options.globalRegularExpression,z=I.options.globalMailRegularExpression;j.lastIndex=0,z.lastIndex=0;for(var G=new a.a,pe=0,P=j.exec(B.data),U=z.exec(B.data),V=function(se,ue,oe){var ae=B.data.substring(pe,se.index);G.insert(ae);var ge=se[0];return G.insert(ge,{link:oe(ge)}),pe=ue.lastIndex,ue.exec(B.data)};P!==null||U!==null;)if(P===null)U=V(U,z,I.mailNormalizer);else if(U===null)P=V(P,j,I.urlNormalizer);else if(U.index<=P.index){for(;P!==null&&P.index<z.lastIndex;)P=j.exec(B.data);U=V(U,z,I.mailNormalizer)}else{for(;U!==null&&U.index<j.lastIndex;)U=z.exec(B.data);P=V(P,j,I.urlNormalizer)}if(pe>0){var Q=B.data.substring(pe);G.insert(Q),F.ops=G.ops}return F}})}},{key:"registerTypeListener",value:function(){var I=this;this.quill.on("text-change",function(B){var F=B.ops;if(!(!F||F.length<1||F.length>2)){var j=F[F.length-1];j.insert&&typeof j.insert=="string"&&j.insert.match(/\s/)&&I.checkTextForUrl(!!j.insert.match(/ |\t/))}})}},{key:"registerBlurListener",value:function(){var I=this;this.quill.root.addEventListener("blur",function(){I.checkTextForUrl()})}},{key:"checkTextForUrl",value:function(){var I=arguments.length>0&&arguments[0]!==void 0&&arguments[0],B=this.quill.getSelection();if(B){var F=this.quill.getLeaf(B.index),j=h(F,1),z=j[0],G=this.quill.getIndex(z);if(z.text){var pe=B.index-G,P=z.text.slice(0,pe);if(P&&z.parent.domNode.localName!=="a"){var U=z.text[pe];if(U==null||!U.match(/\S/)){var V=I?/\s\s$/:/\s$/;if(!P.match(V)){var Q=P.match(this.options.urlRegularExpression),se=P.match(this.options.mailRegularExpression);Q?this.handleMatches(G,P,Q,this.urlNormalizer):se&&this.handleMatches(G,P,se,this.mailNormalizer)}}}}}}},{key:"handleMatches",value:function(I,B,F,j){var z=F.pop(),G=B.lastIndexOf(z);B.split(z).pop().match(/\S/)||this.updateText(I+G,z.trim(),j)}},{key:"updateText",value:function(I,B,F){var j=new a.a().retain(I).retain(B.length,{link:F(B)});this.quill.updateContents(j)}},{key:"normalize",value:function(I){if(this.options.normalizeRegularExpression.test(I))try{return d()(I,this.options.normalizeUrlOptions)}catch(B){console.error(B)}return I}}])&&w(R.prototype,D),Object.defineProperty(R,"prototype",{writable:!1}),A}();window!=null&&window.Quill&&window.Quill.register("modules/magicUrl",_)},function(t,n){function o(p,m,g){if(p==m)return p?[[0,p]]:[];(g<0||p.length<g)&&(g=null);var v=a(p,m),w=p.substring(0,v);v=c(p=p.substring(v),m=m.substring(v));var T=p.substring(p.length-v),_=function(A,R){var D;if(!A)return[[1,R]];if(!R)return[[-1,A]];var I=A.length>R.length?A:R,B=A.length>R.length?R:A,F=I.indexOf(B);if(F!=-1)return D=[[1,I.substring(0,F)],[0,B],[1,I.substring(F+B.length)]],A.length>R.length&&(D[0][0]=D[2][0]=-1),D;if(B.length==1)return[[-1,A],[1,R]];var j=function(se,ue){var oe=se.length>ue.length?se:ue,ae=se.length>ue.length?ue:se;if(oe.length<4||2*ae.length<oe.length)return null;function ge(De,Oe,we){for(var _e,Ae,$e,Fe,Qe=De.substring(we,we+Math.floor(De.length/4)),Ue=-1,et="";(Ue=Oe.indexOf(Qe,Ue+1))!=-1;){var ct=a(De.substring(we),Oe.substring(Ue)),Ct=c(De.substring(0,we),Oe.substring(0,Ue));et.length<Ct+ct&&(et=Oe.substring(Ue-Ct,Ue)+Oe.substring(Ue,Ue+ct),_e=De.substring(0,we-Ct),Ae=De.substring(we+ct),$e=Oe.substring(0,Ue-Ct),Fe=Oe.substring(Ue+ct))}return 2*et.length>=De.length?[_e,Ae,$e,Fe,et]:null}var re,ie,he,Se,Le,ne=ge(oe,ae,Math.ceil(oe.length/4)),ve=ge(oe,ae,Math.ceil(oe.length/2));if(!ne&&!ve)return null;re=ve?ne&&ne[4].length>ve[4].length?ne:ve:ne,se.length>ue.length?(ie=re[0],he=re[1],Se=re[2],Le=re[3]):(Se=re[0],Le=re[1],ie=re[2],he=re[3]);var ke=re[4];return[ie,he,Se,Le,ke]}(A,R);if(j){var z=j[0],G=j[1],pe=j[2],P=j[3],U=j[4],V=o(z,pe),Q=o(G,P);return V.concat([[0,U]],Q)}return function(se,ue){for(var oe=se.length,ae=ue.length,ge=Math.ceil((oe+ae)/2),re=ge,ie=2*ge,he=new Array(ie),Se=new Array(ie),Le=0;Le<ie;Le++)he[Le]=-1,Se[Le]=-1;he[re+1]=0,Se[re+1]=0;for(var ne=oe-ae,ve=ne%2!=0,ke=0,De=0,Oe=0,we=0,_e=0;_e<ge;_e++){for(var Ae=-_e+ke;Ae<=_e-De;Ae+=2){for(var $e=re+Ae,Fe=(Ct=Ae==-_e||Ae!=_e&&he[$e-1]<he[$e+1]?he[$e+1]:he[$e-1]+1)-Ae;Ct<oe&&Fe<ae&&se.charAt(Ct)==ue.charAt(Fe);)Ct++,Fe++;if(he[$e]=Ct,Ct>oe)De+=2;else if(Fe>ae)ke+=2;else if(ve&&(et=re+ne-Ae)>=0&&et<ie&&Se[et]!=-1){var Qe=oe-Se[et];if(Ct>=Qe)return i(se,ue,Ct,Fe)}}for(var Ue=-_e+Oe;Ue<=_e-we;Ue+=2){for(var et=re+Ue,ct=(Qe=Ue==-_e||Ue!=_e&&Se[et-1]<Se[et+1]?Se[et+1]:Se[et-1]+1)-Ue;Qe<oe&&ct<ae&&se.charAt(oe-Qe-1)==ue.charAt(ae-ct-1);)Qe++,ct++;if(Se[et]=Qe,Qe>oe)we+=2;else if(ct>ae)Oe+=2;else if(!ve&&($e=re+ne-Ue)>=0&&$e<ie&&he[$e]!=-1){var Ct=he[$e];if(Fe=re+Ct-$e,Ct>=(Qe=oe-Qe))return i(se,ue,Ct,Fe)}}}return[[-1,se],[1,ue]]}(A,R)}(p=p.substring(0,p.length-v),m=m.substring(0,m.length-v));return w&&_.unshift([0,w]),T&&_.push([0,T]),function A(R){R.push([0,""]);for(var D,I=0,B=0,F=0,j="",z="";I<R.length;)switch(R[I][0]){case 1:F++,z+=R[I][1],I++;break;case-1:B++,j+=R[I][1],I++;break;case 0:B+F>1?(B!==0&&F!==0&&((D=a(z,j))!==0&&(I-B-F>0&&R[I-B-F-1][0]==0?R[I-B-F-1][1]+=z.substring(0,D):(R.splice(0,0,[0,z.substring(0,D)]),I++),z=z.substring(D),j=j.substring(D)),(D=c(z,j))!==0&&(R[I][1]=z.substring(z.length-D)+R[I][1],z=z.substring(0,z.length-D),j=j.substring(0,j.length-D))),B===0?R.splice(I-F,B+F,[1,z]):F===0?R.splice(I-B,B+F,[-1,j]):R.splice(I-B-F,B+F,[-1,j],[1,z]),I=I-B-F+(B?1:0)+(F?1:0)+1):I!==0&&R[I-1][0]==0?(R[I-1][1]+=R[I][1],R.splice(I,1)):I++,F=0,B=0,j="",z=""}R[R.length-1][1]===""&&R.pop();var G=!1;for(I=1;I<R.length-1;)R[I-1][0]==0&&R[I+1][0]==0&&(R[I][1].substring(R[I][1].length-R[I-1][1].length)==R[I-1][1]?(R[I][1]=R[I-1][1]+R[I][1].substring(0,R[I][1].length-R[I-1][1].length),R[I+1][1]=R[I-1][1]+R[I+1][1],R.splice(I-1,1),G=!0):R[I][1].substring(0,R[I+1][1].length)==R[I+1][1]&&(R[I-1][1]+=R[I+1][1],R[I][1]=R[I][1].substring(R[I+1][1].length)+R[I+1][1],R.splice(I+1,1),G=!0)),I++;G&&A(R)}(_),g!=null&&(_=function(A,R){var D=function(G,pe){if(pe===0)return[0,G];for(var P=0,U=0;U<G.length;U++){var V=G[U];if(V[0]===-1||V[0]===0){var Q=P+V[1].length;if(pe===Q)return[U+1,G];if(pe<Q){G=G.slice();var se=pe-P,ue=[V[0],V[1].slice(0,se)],oe=[V[0],V[1].slice(se)];return G.splice(U,1,ue,oe),[U+1,G]}P=Q}}throw new Error("cursor_pos is out of bounds!")}(A,R),I=D[1],B=D[0],F=I[B],j=I[B+1];if(F==null||F[0]!==0)return A;if(j!=null&&F[1]+j[1]===j[1]+F[1])return I.splice(B,2,j,F),h(I,B,2);if(j!=null&&j[1].indexOf(F[1])===0){I.splice(B,2,[j[0],F[1]],[0,F[1]]);var z=j[1].slice(F[1].length);return z.length>0&&I.splice(B+2,0,[j[0],z]),h(I,B,3)}return A}(_,g)),_=function(A){for(var R=!1,D=function(j){return j.charCodeAt(0)>=56320&&j.charCodeAt(0)<=57343},I=2;I<A.length;I+=1)A[I-2][0]===0&&(B=A[I-2][1]).charCodeAt(B.length-1)>=55296&&B.charCodeAt(B.length-1)<=56319&&A[I-1][0]===-1&&D(A[I-1][1])&&A[I][0]===1&&D(A[I][1])&&(R=!0,A[I-1][1]=A[I-2][1].slice(-1)+A[I-1][1],A[I][1]=A[I-2][1].slice(-1)+A[I][1],A[I-2][1]=A[I-2][1].slice(0,-1));var B;if(!R)return A;var F=[];for(I=0;I<A.length;I+=1)A[I][1].length>0&&F.push(A[I]);return F}(_)}function i(p,m,g,v){var w=p.substring(0,g),T=m.substring(0,v),_=p.substring(g),A=m.substring(v),R=o(w,T),D=o(_,A);return R.concat(D)}function a(p,m){if(!p||!m||p.charAt(0)!=m.charAt(0))return 0;for(var g=0,v=Math.min(p.length,m.length),w=v,T=0;g<w;)p.substring(T,w)==m.substring(T,w)?T=g=w:v=w,w=Math.floor((v-g)/2+g);return w}function c(p,m){if(!p||!m||p.charAt(p.length-1)!=m.charAt(m.length-1))return 0;for(var g=0,v=Math.min(p.length,m.length),w=v,T=0;g<w;)p.substring(p.length-w,p.length-T)==m.substring(m.length-w,m.length-T)?T=g=w:v=w,w=Math.floor((v-g)/2+g);return w}var d=o;function h(p,m,g){for(var v=m+g-1;v>=0&&v>=m-1;v--)if(v+1<p.length){var w=p[v],T=p[v+1];w[0]===T[1]&&p.splice(v,2,[w[0],w[1]+T[1]])}return p}d.INSERT=1,d.DELETE=-1,d.EQUAL=0,t.exports=d},function(t,n,o){var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=o(8),h=Object.prototype.propertyIsEnumerable,p=!h.call({toString:null},"toString"),m=h.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(_){var A=_.constructor;return A&&A.prototype===_},w={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},T=function(){if(typeof window>"u")return!1;for(var _ in window)try{if(!w["$"+_]&&a.call(window,_)&&window[_]!==null&&typeof window[_]=="object")try{v(window[_])}catch{return!0}}catch{return!0}return!1}();i=function(_){var A=_!==null&&typeof _=="object",R=c.call(_)==="[object Function]",D=d(_),I=A&&c.call(_)==="[object String]",B=[];if(!A&&!R&&!D)throw new TypeError("Object.keys called on a non-object");var F=m&&R;if(I&&_.length>0&&!a.call(_,0))for(var j=0;j<_.length;++j)B.push(String(j));if(D&&_.length>0)for(var z=0;z<_.length;++z)B.push(String(z));else for(var G in _)F&&G==="prototype"||!a.call(_,G)||B.push(String(G));if(p)for(var pe=function(U){if(typeof window>"u"||!T)return v(U);try{return v(U)}catch{return!1}}(_),P=0;P<g.length;++P)pe&&g[P]==="constructor"||!a.call(_,g[P])||B.push(g[P]);return B}}t.exports=i},function(t,n,o){var i=o(1)(),a=o(10)("Object.prototype.toString"),c=function(p){return!(i&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&a(p)==="[object Arguments]"},d=function(p){return!!c(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&a(p)!=="[object Array]"&&a(p.callee)==="[object Function]"},h=function(){return c(arguments)}();c.isLegacyArguments=d,t.exports=h?c:d},function(t,n,o){var i=typeof Symbol<"u"&&Symbol,a=o(9);t.exports=function(){return typeof i=="function"&&typeof Symbol=="function"&&typeof i("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&a()}},function(t,n,o){var i="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString;t.exports=function(d){var h=this;if(typeof h!="function"||c.call(h)!=="[object Function]")throw new TypeError(i+h);for(var p,m=a.call(arguments,1),g=function(){if(this instanceof p){var A=h.apply(this,m.concat(a.call(arguments)));return Object(A)===A?A:this}return h.apply(d,m.concat(a.call(arguments)))},v=Math.max(0,h.length-m.length),w=[],T=0;T<v;T++)w.push("$"+T);if(p=Function("binder","return function ("+w.join(",")+"){ return binder.apply(this,arguments); }")(g),h.prototype){var _=function(){};_.prototype=h.prototype,p.prototype=new _,_.prototype=null}return p}},function(t,n,o){var i=o(3);t.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},function(t,n,o){var i=o(0),a=o(4),c=o(11),d=o(12),h=o(26),p=a(d(),Object);i(p,{getPolyfill:d,implementation:c,shim:h}),t.exports=p},function(t,n,o){var i=o(2)("%Object.defineProperty%",!0),a=function(){if(i)try{return i({},"a",{value:1}),!0}catch{return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return i([],"length",{value:1}).length!==1}catch{return!0}},t.exports=a},function(t,n,o){var i=o(12),a=o(0);t.exports=function(){var c=i();return a(Object,{is:c},{is:function(){return Object.is!==c}}),c}},function(t,n,o){var i,a,c,d,h=o(10),p=o(1)();if(p){i=h("Object.prototype.hasOwnProperty"),a=h("RegExp.prototype.exec"),c={};var m=function(){throw c};d={toString:m,valueOf:m},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=m)}var g=h("Object.prototype.toString"),v=Object.getOwnPropertyDescriptor;t.exports=p?function(w){if(!w||typeof w!="object")return!1;var T=v(w,"lastIndex");if(!(T&&i(T,"value")))return!1;try{a(w,d)}catch(_){return _===c}}:function(w){return!(!w||typeof w!="object"&&typeof w!="function")&&g(w)==="[object RegExp]"}},function(t,n,o){var i=o(0),a=o(4),c=o(13),d=o(14),h=o(30),p=a(d());i(p,{getPolyfill:d,implementation:c,shim:h}),t.exports=p},function(t,n,o){var i=function(){return typeof(function(){}).name=="string"},a=Object.getOwnPropertyDescriptor;if(a)try{a([],"length")}catch{a=null}i.functionsHaveConfigurableNames=function(){if(!i()||!a)return!1;var d=a(function(){},"name");return!!d&&!!d.configurable};var c=Function.prototype.bind;i.boundFunctionsHaveNames=function(){return i()&&typeof c=="function"&&(function(){}).bind().name!==""},t.exports=i},function(t,n,o){var i=o(0).supportsDescriptors,a=o(14),c=Object.getOwnPropertyDescriptor,d=Object.defineProperty,h=TypeError,p=Object.getPrototypeOf,m=/a/;t.exports=function(){if(!i||!p)throw new h("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var g=a(),v=p(m),w=c(v,"flags");return w&&w.get===g||d(v,"flags",{configurable:!0,enumerable:!1,get:g}),g}},function(t,n,o){var i=Date.prototype.getDay,a=Object.prototype.toString,c=o(1)();t.exports=function(d){return typeof d=="object"&&d!==null&&(c?function(h){try{return i.call(h),!0}catch{return!1}}(d):a.call(d)==="[object Date]")}},function(t,n,o){var i=o(6),a=o(15),c={attributes:{compose:function(h,p,m){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var g=a(!0,{},p);for(var v in m||(g=Object.keys(g).reduce(function(w,T){return g[T]!=null&&(w[T]=g[T]),w},{})),h)h[v]!==void 0&&p[v]===void 0&&(g[v]=h[v]);return Object.keys(g).length>0?g:void 0},diff:function(h,p){typeof h!="object"&&(h={}),typeof p!="object"&&(p={});var m=Object.keys(h).concat(Object.keys(p)).reduce(function(g,v){return i(h[v],p[v])||(g[v]=p[v]===void 0?null:p[v]),g},{});return Object.keys(m).length>0?m:void 0},transform:function(h,p,m){if(typeof h!="object")return p;if(typeof p=="object"){if(!m)return p;var g=Object.keys(p).reduce(function(v,w){return h[w]===void 0&&(v[w]=p[w]),v},{});return Object.keys(g).length>0?g:void 0}}},iterator:function(h){return new d(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function d(h){this.ops=h,this.index=0,this.offset=0}d.prototype.hasNext=function(){return this.peekLength()<1/0},d.prototype.next=function(h){h||(h=1/0);var p=this.ops[this.index];if(p){var m=this.offset,g=c.length(p);if(h>=g-m?(h=g-m,this.index+=1,this.offset=0):this.offset+=h,typeof p.delete=="number")return{delete:h};var v={};return p.attributes&&(v.attributes=p.attributes),typeof p.retain=="number"?v.retain=h:typeof p.insert=="string"?v.insert=p.insert.substr(m,h):v.insert=p.insert,v}return{retain:1/0}},d.prototype.peek=function(){return this.ops[this.index]},d.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},d.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},d.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,p=this.index,m=this.next(),g=this.ops.slice(this.index);return this.offset=h,this.index=p,[m].concat(g)}return[]},t.exports=c},function(t,n,o){var i=o(34),a=o(37);function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}n.parse=B,n.resolve=function(F,j){return B(F,!1,!0).resolve(j)},n.resolveObject=function(F,j){return F?B(F,!1,!0).resolveObject(j):j},n.format=function(F){return a.isString(F)&&(F=B(F)),F instanceof c?F.format():c.prototype.format.call(F)},n.Url=c;var d=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
219
|
+
`," "]),g=["'"].concat(m),v=["%","/","?",";","#"].concat(g),w=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,A={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},D={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=o(38);function B(F,j,z){if(F&&a.isObject(F)&&F instanceof c)return F;var G=new c;return G.parse(F,j,z),G}c.prototype.parse=function(F,j,z){if(!a.isString(F))throw new TypeError("Parameter 'url' must be a string, not "+typeof F);var G=F.indexOf("?"),pe=G!==-1&&G<F.indexOf("#")?"?":"#",P=F.split(pe);P[0]=P[0].replace(/\\/g,"/");var U=F=P.join(pe);if(U=U.trim(),!z&&F.split("#").length===1){var V=p.exec(U);if(V)return this.path=U,this.href=U,this.pathname=V[1],V[2]?(this.search=V[2],this.query=j?I.parse(this.search.substr(1)):this.search.substr(1)):j&&(this.search="",this.query={}),this}var Q=d.exec(U);if(Q){var se=(Q=Q[0]).toLowerCase();this.protocol=se,U=U.substr(Q.length)}if(z||Q||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var ue=U.substr(0,2)==="//";!ue||Q&&R[Q]||(U=U.substr(2),this.slashes=!0)}if(!R[Q]&&(ue||Q&&!D[Q])){for(var oe,ae,ge=-1,re=0;re<w.length;re++)(ie=U.indexOf(w[re]))!==-1&&(ge===-1||ie<ge)&&(ge=ie);for((ae=ge===-1?U.lastIndexOf("@"):U.lastIndexOf("@",ge))!==-1&&(oe=U.slice(0,ae),U=U.slice(ae+1),this.auth=decodeURIComponent(oe)),ge=-1,re=0;re<v.length;re++){var ie;(ie=U.indexOf(v[re]))!==-1&&(ge===-1||ie<ge)&&(ge=ie)}ge===-1&&(ge=U.length),this.host=U.slice(0,ge),U=U.slice(ge),this.parseHost(),this.hostname=this.hostname||"";var he=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!he)for(var Se=this.hostname.split(/\./),Le=(re=0,Se.length);re<Le;re++){var ne=Se[re];if(ne&&!ne.match(T)){for(var ve="",ke=0,De=ne.length;ke<De;ke++)ne.charCodeAt(ke)>127?ve+="x":ve+=ne[ke];if(!ve.match(T)){var Oe=Se.slice(0,re),we=Se.slice(re+1),_e=ne.match(_);_e&&(Oe.push(_e[1]),we.unshift(_e[2])),we.length&&(U="/"+we.join(".")+U),this.hostname=Oe.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),he||(this.hostname=i.toASCII(this.hostname));var Ae=this.port?":"+this.port:"",$e=this.hostname||"";this.host=$e+Ae,this.href+=this.host,he&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!A[se])for(re=0,Le=g.length;re<Le;re++){var Fe=g[re];if(U.indexOf(Fe)!==-1){var Qe=encodeURIComponent(Fe);Qe===Fe&&(Qe=escape(Fe)),U=U.split(Fe).join(Qe)}}var Ue=U.indexOf("#");Ue!==-1&&(this.hash=U.substr(Ue),U=U.slice(0,Ue));var et=U.indexOf("?");if(et!==-1?(this.search=U.substr(et),this.query=U.substr(et+1),j&&(this.query=I.parse(this.query)),U=U.slice(0,et)):j&&(this.search="",this.query={}),U&&(this.pathname=U),D[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Ae=this.pathname||"";var ct=this.search||"";this.path=Ae+ct}return this.href=this.format(),this},c.prototype.format=function(){var F=this.auth||"";F&&(F=(F=encodeURIComponent(F)).replace(/%3A/i,":"),F+="@");var j=this.protocol||"",z=this.pathname||"",G=this.hash||"",pe=!1,P="";this.host?pe=F+this.host:this.hostname&&(pe=F+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(pe+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(P=I.stringify(this.query));var U=this.search||P&&"?"+P||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||D[j])&&pe!==!1?(pe="//"+(pe||""),z&&z.charAt(0)!=="/"&&(z="/"+z)):pe||(pe=""),G&&G.charAt(0)!=="#"&&(G="#"+G),U&&U.charAt(0)!=="?"&&(U="?"+U),j+pe+(z=z.replace(/[?#]/g,function(V){return encodeURIComponent(V)}))+(U=U.replace("#","%23"))+G},c.prototype.resolve=function(F){return this.resolveObject(B(F,!1,!0)).format()},c.prototype.resolveObject=function(F){if(a.isString(F)){var j=new c;j.parse(F,!1,!0),F=j}for(var z=new c,G=Object.keys(this),pe=0;pe<G.length;pe++){var P=G[pe];z[P]=this[P]}if(z.hash=F.hash,F.href==="")return z.href=z.format(),z;if(F.slashes&&!F.protocol){for(var U=Object.keys(F),V=0;V<U.length;V++){var Q=U[V];Q!=="protocol"&&(z[Q]=F[Q])}return D[z.protocol]&&z.hostname&&!z.pathname&&(z.path=z.pathname="/"),z.href=z.format(),z}if(F.protocol&&F.protocol!==z.protocol){if(!D[F.protocol]){for(var se=Object.keys(F),ue=0;ue<se.length;ue++){var oe=se[ue];z[oe]=F[oe]}return z.href=z.format(),z}if(z.protocol=F.protocol,F.host||R[F.protocol])z.pathname=F.pathname;else{for(var ae=(F.pathname||"").split("/");ae.length&&!(F.host=ae.shift()););F.host||(F.host=""),F.hostname||(F.hostname=""),ae[0]!==""&&ae.unshift(""),ae.length<2&&ae.unshift(""),z.pathname=ae.join("/")}if(z.search=F.search,z.query=F.query,z.host=F.host||"",z.auth=F.auth,z.hostname=F.hostname||F.host,z.port=F.port,z.pathname||z.search){var ge=z.pathname||"",re=z.search||"";z.path=ge+re}return z.slashes=z.slashes||F.slashes,z.href=z.format(),z}var ie=z.pathname&&z.pathname.charAt(0)==="/",he=F.host||F.pathname&&F.pathname.charAt(0)==="/",Se=he||ie||z.host&&F.pathname,Le=Se,ne=z.pathname&&z.pathname.split("/")||[],ve=(ae=F.pathname&&F.pathname.split("/")||[],z.protocol&&!D[z.protocol]);if(ve&&(z.hostname="",z.port=null,z.host&&(ne[0]===""?ne[0]=z.host:ne.unshift(z.host)),z.host="",F.protocol&&(F.hostname=null,F.port=null,F.host&&(ae[0]===""?ae[0]=F.host:ae.unshift(F.host)),F.host=null),Se=Se&&(ae[0]===""||ne[0]==="")),he)z.host=F.host||F.host===""?F.host:z.host,z.hostname=F.hostname||F.hostname===""?F.hostname:z.hostname,z.search=F.search,z.query=F.query,ne=ae;else if(ae.length)ne||(ne=[]),ne.pop(),ne=ne.concat(ae),z.search=F.search,z.query=F.query;else if(!a.isNullOrUndefined(F.search))return ve&&(z.hostname=z.host=ne.shift(),(_e=!!(z.host&&z.host.indexOf("@")>0)&&z.host.split("@"))&&(z.auth=_e.shift(),z.host=z.hostname=_e.shift())),z.search=F.search,z.query=F.query,a.isNull(z.pathname)&&a.isNull(z.search)||(z.path=(z.pathname?z.pathname:"")+(z.search?z.search:"")),z.href=z.format(),z;if(!ne.length)return z.pathname=null,z.search?z.path="/"+z.search:z.path=null,z.href=z.format(),z;for(var ke=ne.slice(-1)[0],De=(z.host||F.host||ne.length>1)&&(ke==="."||ke==="..")||ke==="",Oe=0,we=ne.length;we>=0;we--)(ke=ne[we])==="."?ne.splice(we,1):ke===".."?(ne.splice(we,1),Oe++):Oe&&(ne.splice(we,1),Oe--);if(!Se&&!Le)for(;Oe--;Oe)ne.unshift("..");!Se||ne[0]===""||ne[0]&&ne[0].charAt(0)==="/"||ne.unshift(""),De&&ne.join("/").substr(-1)!=="/"&&ne.push("");var _e,Ae=ne[0]===""||ne[0]&&ne[0].charAt(0)==="/";return ve&&(z.hostname=z.host=Ae?"":ne.length?ne.shift():"",(_e=!!(z.host&&z.host.indexOf("@")>0)&&z.host.split("@"))&&(z.auth=_e.shift(),z.host=z.hostname=_e.shift())),(Se=Se||z.host&&ne.length)&&!Ae&&ne.unshift(""),ne.length?z.pathname=ne.join("/"):(z.pathname=null,z.path=null),a.isNull(z.pathname)&&a.isNull(z.search)||(z.path=(z.pathname?z.pathname:"")+(z.search?z.search:"")),z.auth=F.auth||z.auth,z.slashes=z.slashes||F.slashes,z.href=z.format(),z},c.prototype.parseHost=function(){var F=this.host,j=h.exec(F);j&&((j=j[0])!==":"&&(this.port=j.substr(1)),F=F.substr(0,F.length-j.length)),F&&(this.hostname=F)}},function(t,n,o){(function(i,a){var c;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(d){n&&n.nodeType,i&&i.nodeType;var h=typeof a=="object"&&a;h.global!==h&&h.window!==h&&h.self;var p,m=2147483647,g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=Math.floor,A=String.fromCharCode;function R(P){throw new RangeError(T[P])}function D(P,U){for(var V=P.length,Q=[];V--;)Q[V]=U(P[V]);return Q}function I(P,U){var V=P.split("@"),Q="";return V.length>1&&(Q=V[0]+"@",P=V[1]),Q+D((P=P.replace(w,".")).split("."),U).join(".")}function B(P){for(var U,V,Q=[],se=0,ue=P.length;se<ue;)(U=P.charCodeAt(se++))>=55296&&U<=56319&&se<ue?(64512&(V=P.charCodeAt(se++)))==56320?Q.push(((1023&U)<<10)+(1023&V)+65536):(Q.push(U),se--):Q.push(U);return Q}function F(P){return D(P,function(U){var V="";return U>65535&&(V+=A((U-=65536)>>>10&1023|55296),U=56320|1023&U),V+=A(U)}).join("")}function j(P,U){return P+22+75*(P<26)-((U!=0)<<5)}function z(P,U,V){var Q=0;for(P=V?_(P/700):P>>1,P+=_(P/U);P>455;Q+=36)P=_(P/35);return _(Q+36*P/(P+38))}function G(P){var U,V,Q,se,ue,oe,ae,ge,re,ie,he,Se=[],Le=P.length,ne=0,ve=128,ke=72;for((V=P.lastIndexOf("-"))<0&&(V=0),Q=0;Q<V;++Q)P.charCodeAt(Q)>=128&&R("not-basic"),Se.push(P.charCodeAt(Q));for(se=V>0?V+1:0;se<Le;){for(ue=ne,oe=1,ae=36;se>=Le&&R("invalid-input"),((ge=(he=P.charCodeAt(se++))-48<10?he-22:he-65<26?he-65:he-97<26?he-97:36)>=36||ge>_((m-ne)/oe))&&R("overflow"),ne+=ge*oe,!(ge<(re=ae<=ke?1:ae>=ke+26?26:ae-ke));ae+=36)oe>_(m/(ie=36-re))&&R("overflow"),oe*=ie;ke=z(ne-ue,U=Se.length+1,ue==0),_(ne/U)>m-ve&&R("overflow"),ve+=_(ne/U),ne%=U,Se.splice(ne++,0,ve)}return F(Se)}function pe(P){var U,V,Q,se,ue,oe,ae,ge,re,ie,he,Se,Le,ne,ve,ke=[];for(Se=(P=B(P)).length,U=128,V=0,ue=72,oe=0;oe<Se;++oe)(he=P[oe])<128&&ke.push(A(he));for(Q=se=ke.length,se&&ke.push("-");Q<Se;){for(ae=m,oe=0;oe<Se;++oe)(he=P[oe])>=U&&he<ae&&(ae=he);for(ae-U>_((m-V)/(Le=Q+1))&&R("overflow"),V+=(ae-U)*Le,U=ae,oe=0;oe<Se;++oe)if((he=P[oe])<U&&++V>m&&R("overflow"),he==U){for(ge=V,re=36;!(ge<(ie=re<=ue?1:re>=ue+26?26:re-ue));re+=36)ve=ge-ie,ne=36-ie,ke.push(A(j(ie+ve%ne,0))),ge=_(ve/ne);ke.push(A(j(ge,0))),ue=z(V,Le,Q==se),V=0,++Q}++V,++U}return ke.join("")}p={version:"1.4.1",ucs2:{decode:B,encode:F},decode:G,encode:pe,toASCII:function(P){return I(P,function(U){return v.test(U)?"xn--"+pe(U):U})},toUnicode:function(P){return I(P,function(U){return g.test(U)?G(U.slice(4).toLowerCase()):U})}},(c=(function(){return p}).call(n,o,n,i))===void 0||(i.exports=c)})()}).call(this,o(35)(t),o(36))},function(t,n){t.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(t,n){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}t.exports=o},function(t,n,o){t.exports={isString:function(i){return typeof i=="string"},isObject:function(i){return typeof i=="object"&&i!==null},isNull:function(i){return i===null},isNullOrUndefined:function(i){return i==null}}},function(t,n,o){n.decode=n.parse=o(39),n.encode=n.stringify=o(40)},function(t,n,o){function i(c,d){return Object.prototype.hasOwnProperty.call(c,d)}t.exports=function(c,d,h,p){d=d||"&",h=h||"=";var m={};if(typeof c!="string"||c.length===0)return m;var g=/\+/g;c=c.split(d);var v=1e3;p&&typeof p.maxKeys=="number"&&(v=p.maxKeys);var w=c.length;v>0&&w>v&&(w=v);for(var T=0;T<w;++T){var _,A,R,D,I=c[T].replace(g,"%20"),B=I.indexOf(h);B>=0?(_=I.substr(0,B),A=I.substr(B+1)):(_=I,A=""),R=decodeURIComponent(_),D=decodeURIComponent(A),i(m,R)?a(m[R])?m[R].push(D):m[R]=[m[R],D]:m[R]=D}return m};var a=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"}},function(t,n,o){var i=function(h){switch(typeof h){case"string":return h;case"boolean":return h?"true":"false";case"number":return isFinite(h)?h:"";default:return""}};t.exports=function(h,p,m,g){return p=p||"&",m=m||"=",h===null&&(h=void 0),typeof h=="object"?c(d(h),function(v){var w=encodeURIComponent(i(v))+m;return a(h[v])?c(h[v],function(T){return w+encodeURIComponent(i(T))}).join(p):w+encodeURIComponent(i(h[v]))}).join(p):g?encodeURIComponent(i(g))+m+encodeURIComponent(i(h)):""};var a=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"};function c(h,p){if(h.map)return h.map(p);for(var m=[],g=0;g<h.length;g++)m.push(p(h[g],g));return m}var d=Object.keys||function(h){var p=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&p.push(m);return p}}])})}(Dm)),Dm.exports}var TP=EP();const RP=yf(TP),Me={container:"table-up-container",tableCaption:"table-up-caption",tableWrapper:"table-up",tableMain:"table-up-main",tableColgroup:"table-up-colgroup",tableCol:"table-up-col",tableBody:"table-up-body",tableRow:"table-up-row",tableCell:"table-up-cell",tableCellInner:"table-up-cell-inner"},Wn={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},ig={AFTER_TABLE_RESIZE:"after-table-resize"},Om={moduleName:"table-up"},kP=[["rgb(255, 255, 255)","rgb(0, 0, 0)","rgb(72, 83, 104)","rgb(41, 114, 244)","rgb(0, 163, 245)","rgb(49, 155, 98)","rgb(222, 60, 54)","rgb(248, 136, 37)","rgb(245, 196, 0)","rgb(153, 56, 215)"],["rgb(242, 242, 242)","rgb(127, 127, 127)","rgb(243, 245, 247)","rgb(229, 239, 255)","rgb(229, 246, 255)","rgb(234, 250, 241)","rgb(254, 233, 232)","rgb(254, 243, 235)","rgb(254, 249, 227)","rgb(253, 235, 255)"],["rgb(216, 216, 216)","rgb(89, 89, 89)","rgb(197, 202, 211)","rgb(199, 220, 255)","rgb(199, 236, 255)","rgb(195, 234, 213)","rgb(255, 201, 199)","rgb(255, 220, 196)","rgb(255, 238, 173)","rgb(242, 199, 255)"],["rgb(191, 191, 191)","rgb(63, 63, 63)","rgb(128, 139, 158)","rgb(153, 190, 255)","rgb(153, 221, 255)","rgb(152, 215, 182)","rgb(255, 156, 153)","rgb(255, 186, 132)","rgb(255, 226, 112)","rgb(213, 142, 255)"],["rgb(165, 165, 165)","rgb(38, 38, 38)","rgb(53, 59, 69)","rgb(20, 80, 184)","rgb(18, 116, 165)","rgb(39, 124, 79)","rgb(158, 30, 26)","rgb(184, 96, 20)","rgb(163, 130, 0)","rgb(94, 34, 129)"],["rgb(147, 147, 147)","rgb(13, 13, 13)","rgb(36, 39, 46)","rgb(12, 48, 110)","rgb(10, 65, 92)","rgb(24, 78, 50)","rgb(88, 17, 14)","rgb(92, 48, 10)","rgb(102, 82, 0)","rgb(59, 21, 81)"]],IP="table-up",MP=new Set([Me.tableCellInner]),LP=r=>MP.has(r.statics.blotName);function B2(r){return r&&r.parent?LP(r.parent)?!0:B2(r.parent):!1}function ei(r,e=IP){let t=e?`${e}-`:"";return{b:()=>`${t}${r}`,be:n=>n?`${t}${r}__${n}`:"",bm:n=>n?`${t}${r}--${n}`:"",bem:(n,o)=>n&&o?`${t}${r}__${n}--${o}`:"",ns:n=>n?`${t}${n}`:"",bs:n=>n?`${t}${r}-${n}`:"",cv:n=>n?`--${t}${n}`:"",is:n=>`is-${n}`}}function jn(r,e){let t=r.parent;for(;t&&t.statics.blotName!==e&&t!==r.scroll;)t=t.parent;if(t===r.scroll)throw Error(`${r.statics.blotName} must be a child of ${e}`);return t}function hf(r,e){let t=Array(e.length),n=new Map(e.map((i,a)=>[i,a])),o=r.parent;for(;o&&o!==r.scroll&&n.size!==0;){if(n.has(o.statics.blotName)){let i=n.get(o.statics.blotName);t[i]=o,n.delete(o.statics.blotName)}o=o.parent}if(n.size>0)throw Error(`${r.statics.blotName} must be a child of ${Array.from(n.keys()).join(", ")}`);return t}function Ub(r){let e=new Map,t=r;for(;t&&t.statics.blotName!=="scroll";)e.set(t.statics.blotName,t),t=t.parent;return e}function DP(r,e){let t=[],n=r.children.iterator(),o=null;for(;o=n();)o instanceof e&&t.push(o);return t}function OP(r,e,t){for(let n of Object.getOwnPropertyNames(e))t&&t.test(n)||Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n));return r}function NP(r,e){let t=class extends r{constructor(...n){super(...n)}};for(let n of e)OP(t.prototype,n.prototype,/^constructor$/);return t}function Tp(r,e){return r.prototype instanceof e}function rf(r,e){return r=Math.min(e,Math.max(0,Number.parseFloat(`${r}`))),Math.abs(r-e)<1e-6?1:r%e/Number.parseFloat(e)}function Wb(r){return{h:Math.min(360,Math.max(0,r.h)),s:Math.min(100,Math.max(0,r.s)),b:Math.min(100,Math.max(0,r.b)),a:Math.min(1,Math.max(0,r.a))}}function PP(r){r=r.startsWith("#")?r.slice(1):r;let e=Number.parseInt(r.slice(0,2),16),t=Number.parseInt(r.slice(2,4),16),n=Number.parseInt(r.slice(4,6),16),o=Number((Number.parseInt(r.slice(6,8)||"ff",16)/255).toFixed(2));return{r:e,g:t,b:n,a:o}}function Vb(r){let{r:e,g:t,b:n,a:o}=r;e=rf(e,255),t=rf(t,255),n=rf(n,255);let i=Math.max(e,t,n),a=Math.min(e,t,n),c,d=i,h=i-a,p=i===0?0:h/i;if(i===a)c=0;else{switch(i){case e:c=(t-n)/h+(t<n?6:0);break;case t:c=(n-e)/h+2;break;case n:c=(e-t)/h+4;break}c/=6}return{h:c*360,s:p*100,b:d*100,a:o}}function Wp(r){let{h:e,s:t,b:n,a:o}=r;e=rf(e,360)*6,t=rf(t,100),n=rf(n,100);let i=Math.floor(e),a=e-i,c=n*(1-t),d=n*(1-a*t),h=n*(1-(1-a)*t),p=i%6,m=[n,d,c,c,h,n][p],g=[h,n,n,d,c,c][p],v=[c,c,h,n,n,d][p];return{r:Math.round(m*255),g:Math.round(g*255),b:Math.round(v*255),a:o}}function F2(r){let e=[r.r.toString(16),r.g.toString(16),r.b.toString(16),Math.round(r.a*255).toString(16)];for(let t in e)e[t].length===1&&(e[t]=`0${e[t]}`);return e.join("")}const Gb=r=>F2(Wp(r)),iv=r=>typeof r=="function",BP=Array.isArray,qu=r=>typeof r=="string",FP=r=>typeof r=="number",Rp=r=>typeof r=="object"&&!!r,jP=r=>!Number.isNaN(r)&&Number(r)>0;function sg(r){let{type:e="default",content:t}=r||{},n=ei("button"),o=document.createElement("button");return o.classList.add(n.b(),e),t&&(qu(t)?o.textContent=t:o.appendChild(t)),o}function zP(r={}){let e=230,t=150,n=10,o=Vb(PP(r.color||"#ff0000")),i=ei("color-picker"),a=document.createElement("div");a.classList.add(i.b());let c=document.createElement("div");c.classList.add(i.be("content"));let d=document.createElement("div");d.classList.add(i.be("selector"));let h=document.createElement("div");h.classList.add(i.be("background")),d.appendChild(h);let p=document.createElement("div");p.classList.add(i.be("background-handle")),h.appendChild(p);let m=document.createElement("div");m.classList.add(i.be("alpha"));let g=document.createElement("div");g.classList.add(i.be("alpha-bg"));let v=document.createElement("div");v.classList.add(i.be("alpha-handle")),m.appendChild(g),m.appendChild(v);let w=document.createElement("div");w.classList.add(i.be("hue"));let T=document.createElement("div");T.classList.add(i.be("hue-handle")),w.appendChild(T);let _=document.createElement("div");_.classList.add(i.be("action"));let[A,R,D,I]=["r","g","b","a"].map(ve=>{let ke=document.createElement("div");ke.classList.add(i.be("action-item"),ve);let De=document.createElement("label");De.textContent=ve.toUpperCase();let Oe=document.createElement("input");return Oe.classList.add(i.be("input")),Oe.addEventListener("input",()=>{Oe.value=Oe.value.replaceAll(/[^0-9]/g,"")}),Oe.addEventListener("change",()=>{let we=Math.round(Number(Oe.value));ve==="a"&&(we/=100);let _e=Wb(Vb(Object.assign({},Wp(o),{[ve]:we})));se(_e),Q()}),ke.appendChild(De),ke.appendChild(Oe),_.appendChild(ke),Oe});c.appendChild(w),c.appendChild(d),c.appendChild(m),a.appendChild(c),a.appendChild(_);let B=!1,F=!1,j=!1;function z(){let ve=Gb(o);for(let[ke,De]of[A,R,D].entries())De.value=String(Number.parseInt(ve[ke*2]+ve[ke*2+1],16));I.value=String((o.a*100).toFixed(0))}function G(){Object.assign(p.style,{left:`${Math.floor(e*o.s/100)}px`,top:`${Math.floor(t*(100-o.b)/100)}px`})}function pe(){d.style.backgroundColor=`#${F2(Wp({h:o.h,s:100,b:100,a:1}))}`}function P(){T.style.top=`${Math.floor(t-t*o.h/360)}px`}function U(){v.style.left=`${o.a*100}%`}function V(){let{r:ve,g:ke,b:De}=Wp(o);g.style.background=`linear-gradient(to right, rgba(${ve}, ${ke}, ${De}, 0) 0%, rgba(${ve}, ${ke}, ${De}, 1) 100%)`}function Q(){G(),pe(),P(),U(),V(),z()}function se(ve){o=Wb(Object.assign({},o,ve)),z(),r.onChange&&r.onChange(`#${Gb(o)}`)}function ue(ve){let ke=d.getBoundingClientRect(),De=ke.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),Oe=ke.left+document.body.scrollLeft,we=Math.floor(100*Math.max(0,Math.min(e,ve.pageX-Oe))/e),_e=Math.floor(100*(t-Math.max(0,Math.min(t,ve.pageY-De)))/t);se({s:we,b:_e}),Q()}function oe(ve){let ke=w.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,ve.pageY-ke)))/t)}),Q()}function ae(ve){let{pageX:ke}=ve,De=m.getBoundingClientRect(),Oe=ke-De.left;Oe=Math.max(n/2,Oe),Oe=Math.min(Oe,De.width-n/2),se({a:Math.round((Oe-10/2)/(De.width-10)*100)/100}),Q()}function ge(ve){B&&(ve.preventDefault(),ue(ve)),F&&(ve.preventDefault(),oe(ve)),j&&(ve.preventDefault(),ae(ve))}function re(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",re),B=!1}function ie(ve){document.addEventListener("mousemove",ge),document.addEventListener("mouseup",re),B=!0,ue(ve)}d.addEventListener("mousedown",ie);function he(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",he),F=!1}function Se(ve){document.addEventListener("mousemove",ge),document.addEventListener("mouseup",he),F=!0,oe(ve)}w.addEventListener("mousedown",Se);function Le(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",Le),j=!1}function ne(ve){document.addEventListener("mousemove",ge),document.addEventListener("mouseup",Le),j=!0,ae(ve)}return m.addEventListener("mousedown",ne),Q(),a}let Yb=8e3;function j2({child:r,target:e=document.body,beforeClose:t=()=>{}}={}){let n=ei("dialog"),o=e,i=document.createElement("div");i.classList.add(n.b()),i.style.zIndex=String(Yb);let a=document.createElement("div");if(a.classList.add(n.be("overlay")),i.appendChild(a),r){let h=document.createElement("div");h.classList.add(n.be("content")),h.appendChild(r),a.appendChild(h),h.addEventListener("click",p=>{p.stopPropagation()})}let c=getComputedStyle(o).overflow;o.style.overflow="hidden",o.appendChild(i);let d=()=>{t(),i.remove(),o.style.overflow=c};return i.addEventListener("click",d),Yb+=1,{dialog:i,close:d}}function Zb(r,e){let t=ei("input");e.type||(e.type="text"),e.value||(e.value="");let n=document.createElement("div");if(n.classList.add(t.be("item")),r){let c=document.createElement("span");c.classList.add(t.be("label")),c.textContent=r,n.appendChild(c)}let o=document.createElement("div");o.classList.add(t.be("input"));let i=document.createElement("input");for(let c in e)i.setAttribute(c,e[c]);return(e.max||e.min)&&i.addEventListener("blur",()=>{e.max&&e.max<=Number(i.value)&&(i.value=String(e.max)),e.min&&e.min>=Number(i.value)&&(i.value=String(e.min))}),o.appendChild(i),n.appendChild(o),i.addEventListener("focus",()=>{o.classList.add("focus")}),i.addEventListener("blur",()=>{o.classList.remove("focus")}),{item:n,input:i,errorTip:c=>{let d;return o.classList.contains("error")?d=o.querySelector(`.${t.be("error-tip")}`):(d=document.createElement("span"),d.classList.add(t.be("error-tip")),o.appendChild(d)),d.textContent=c,o.classList.add("error"),{removeError:()=>{o.classList.remove("error"),d.remove()}}}}}async function HP(r={}){let e=ei("creator"),t=document.createElement("div");t.classList.add(e.b());let n=document.createElement("div");n.classList.add(e.be("input"));let{item:o,input:i,errorTip:a}=Zb(r.rowText||"Row",{type:"number",value:String(r.row||""),max:99}),{item:c,input:d,errorTip:h}=Zb(r.colText||"Column",{type:"number",value:String(r.col||""),max:99});n.appendChild(o),n.appendChild(c),t.appendChild(n);let p=document.createElement("div");p.classList.add(e.be("control"));let m=sg({type:"confirm",content:r.confirmText||"Confirm"}),g=sg({type:"default",content:r.cancelText||"Cancel"});p.appendChild(m),p.appendChild(g),t.appendChild(p);let v=(T=Number(i.value),_=Number(d.value))=>{if(Number.isNaN(T)||T<=0){a(r.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(_)||_<=0){h(r.notPositiveNumberError||"Please enter a positive integer");return}return{row:T,col:_}},w=T=>{T.key==="Escape"&&(close(),document.removeEventListener("keydown",w))};return new Promise((T,_)=>{let{close:A}=j2({child:t,beforeClose:_});i.focus();for(let R of[i,d])R.addEventListener("keydown",D=>{if(D.key==="Enter"){let I=v();I&&(T(I),A())}});m.addEventListener("click",async()=>{let R=v();R&&(T(R),A())}),document.addEventListener("keydown",w),g.addEventListener("click",A)})}function $P(r={}){let e=ei("select-box"),t=document.createElement("div");t.classList.add(e.b());let n=document.createElement("div");n.classList.add(e.be("block"));for(let i=0;i<(r.row||8);i++)for(let a=0;a<(r.col||8);a++){let c=document.createElement("div");c.classList.add(e.be("item")),c.dataset.row=String(i+1),c.dataset.col=String(a+1),n.appendChild(c)}let o=()=>{let{row:i,col:a}=t.dataset;for(let d of Array.from(n.querySelectorAll(".active")))d.classList.remove("active");if(!i||!a)return;let c=Array.from(n.children);for(let d=0;d<c.length;d++){let{row:h,col:p}=c[d].dataset;if(h>i&&p>a)return;h<=i&&p<=a?c[d].classList.add("active"):c[d].classList.remove("active")}};if(n.addEventListener("mousemove",i=>{if(!i.target)return;let{row:a,col:c}=i.target.dataset;!a||!c||(t.dataset.row=a,t.dataset.col=c,o())}),n.addEventListener("mouseleave",()=>{t.removeAttribute("data-row"),t.removeAttribute("data-col"),o()}),n.addEventListener("click",()=>{let{row:i,col:a}=t.dataset;!i||!a||r.onSelect&&r.onSelect(Number(i),Number(a))}),t.appendChild(n),r.customBtn){let i=r.texts||{},a=document.createElement("div");a.classList.add(e.be("custom")),a.textContent=i.customBtnText||"Custom",a.addEventListener("click",async()=>{let c=await HP(i);c&&r.onSelect&&r.onSelect(c.row,c.col)}),t.appendChild(a)}return t}const ag=Math.min,Uu=Math.max,lg=Math.round,kp=Math.floor,Qa=r=>({x:r,y:r}),qP={left:"right",right:"left",bottom:"top",top:"bottom"},UP={start:"end",end:"start"};function Kb(r,e,t){return Uu(r,ag(e,t))}function pf(r,e){return typeof r=="function"?r(e):r}function Zc(r){return r.split("-")[0]}function Lg(r){return r.split("-")[1]}function Zv(r){return r==="x"?"y":"x"}function z2(r){return r==="y"?"height":"width"}function Fl(r){return["top","bottom"].includes(Zc(r))?"y":"x"}function H2(r){return Zv(Fl(r))}function WP(r,e,t){t===void 0&&(t=!1);let n=Lg(r),o=H2(r),i=z2(o),a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=cg(a)),[a,cg(a)]}function VP(r){let e=cg(r);return[sv(r),e,sv(e)]}function sv(r){return r.replace(/start|end/g,e=>UP[e])}function GP(r,e,t){let n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?e?o:n:e?n:o;case"left":case"right":return e?i:a;default:return[]}}function YP(r,e,t,n){let o=Lg(r),i=GP(Zc(r),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(sv)))),i}function cg(r){return r.replace(/left|right|bottom|top/g,e=>qP[e])}function ZP(r){return{top:0,right:0,bottom:0,left:0,...r}}function KP(r){return typeof r=="number"?{top:r,right:r,bottom:r,left:r}:ZP(r)}function ug(r){let{x:e,y:t,width:n,height:o}=r;return{width:n,height:o,top:t,left:e,right:e+n,bottom:t+o,x:e,y:t}}function Xb(r,e,t){let{reference:n,floating:o}=r,i=Fl(e),a=H2(e),c=z2(a),d=Zc(e),h=i==="y",p=n.x+n.width/2-o.width/2,m=n.y+n.height/2-o.height/2,g=n[c]/2-o[c]/2,v;switch(d){case"top":v={x:p,y:n.y-o.height};break;case"bottom":v={x:p,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:m};break;case"left":v={x:n.x-o.width,y:m};break;default:v={x:n.x,y:n.y}}switch(Lg(e)){case"start":v[a]-=g*(t&&h?-1:1);break;case"end":v[a]+=g*(t&&h?-1:1);break}return v}const XP=async(r,e,t)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,c=i.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(e)),h=await a.getElementRects({reference:r,floating:e,strategy:o}),{x:p,y:m}=Xb(h,n,d),g=n,v={},w=0;for(let T=0;T<c.length;T++){let{name:_,fn:A}=c[T],{x:R,y:D,data:I,reset:B}=await A({x:p,y:m,initialPlacement:n,placement:g,strategy:o,middlewareData:v,rects:h,platform:a,elements:{reference:r,floating:e}});p=R??p,m=D??m,v={...v,[_]:{...v[_],...I}},B&&w<=50&&(w++,typeof B=="object"&&(B.placement&&(g=B.placement),B.rects&&(h=B.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:o}):B.rects),{x:p,y:m}=Xb(h,g,d)),T=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:v}};async function $2(r,e){e===void 0&&(e={});let{x:t,y:n,platform:o,rects:i,elements:a,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=pf(e,r),v=KP(g),w=p==="floating"?"reference":"floating",T=a[m?w:p],_=ug(await o.getClippingRect({element:await(o.isElement==null?void 0:o.isElement(T))??!0?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:c})),A=p==="floating"?{x:t,y:n,width:i.floating.width,height:i.floating.height}:i.reference,R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),D=await(o.isElement==null?void 0:o.isElement(R))&&await(o.getScale==null?void 0:o.getScale(R))||{x:1,y:1},I=ug(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:R,strategy:c}):A);return{top:(_.top-I.top+v.top)/D.y,bottom:(I.bottom-_.bottom+v.bottom)/D.y,left:(_.left-I.left+v.left)/D.x,right:(I.right-_.right+v.right)/D.x}}const JP=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var pe,P,U,V;var t;let{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:d}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...T}=pf(r,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let _=Zc(n),A=Fl(a),R=Zc(a)===a,D=await(c.isRTL==null?void 0:c.isRTL(d.floating)),I=m||(R||!w?[cg(a)]:VP(a)),B=v!=="none";!m&&B&&I.push(...YP(a,w,v,D));let F=[a,...I],j=await $2(e,T),z=[],G=((pe=o.flip)==null?void 0:pe.overflows)||[];if(h&&z.push(j[_]),p){let Q=WP(n,i,D);z.push(j[Q[0]],j[Q[1]])}if(G=[...G,{placement:n,overflows:z}],!z.every(Q=>Q<=0)){let Q=(((P=o.flip)==null?void 0:P.index)||0)+1,se=F[Q];if(se&&(!(p==="alignment"?A!==Fl(se):!1)||G.every(ae=>ae.overflows[0]>0&&Fl(ae.placement)===A)))return{data:{index:Q,overflows:G},reset:{placement:se}};let ue=(U=G.filter(oe=>oe.overflows[0]<=0).sort((oe,ae)=>oe.overflows[1]-ae.overflows[1])[0])==null?void 0:U.placement;if(!ue)switch(g){case"bestFit":{let oe=(V=G.filter(ae=>{if(B){let ge=Fl(ae.placement);return ge===A||ge==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(ge=>ge>0).reduce((ge,re)=>ge+re,0)]).sort((ae,ge)=>ae[1]-ge[1])[0])==null?void 0:V[0];oe&&(ue=oe);break}case"initialPlacement":ue=a;break}if(n!==ue)return{reset:{placement:ue}}}return{}}}};async function QP(r,e){let{placement:t,platform:n,elements:o}=r,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Zc(t),c=Lg(t),d=Fl(t)==="y",h=["left","top"].includes(a)?-1:1,p=i&&d?-1:1,m=pf(e,r),{mainAxis:g,crossAxis:v,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof w=="number"&&(v=c==="end"?w*-1:w),d?{x:v*p,y:g*h}:{x:g*h,y:v*p}}const eB=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var d;var t;let{x:n,y:o,placement:i,middlewareData:a}=e,c=await QP(e,r);return i===((d=a.offset)==null?void 0:d.placement)&&(t=a.arrow)!=null&&t.alignmentOffset?{}:{x:n+c.x,y:o+c.y,data:{...c,placement:i}}}}},tB=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:_=>{let{x:A,y:R}=_;return{x:A,y:R}}},...d}=pf(r,e),h={x:t,y:n},p=await $2(e,d),m=Fl(Zc(o)),g=Zv(m),v=h[g],w=h[m];if(i){let _=g==="y"?"top":"left",A=g==="y"?"bottom":"right",R=v+p[_],D=v-p[A];v=Kb(R,v,D)}if(a){let _=m==="y"?"top":"left",A=m==="y"?"bottom":"right",R=w+p[_],D=w-p[A];w=Kb(R,w,D)}let T=c.fn({...e,[g]:v,[m]:w});return{...T,data:{x:T.x-t,y:T.y-n,enabled:{[g]:i,[m]:a}}}}}},rB=function(r){return r===void 0&&(r={}),{options:r,fn(e){var A,R;let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=pf(r,e),p={x:t,y:n},m=Fl(o),g=Zv(m),v=p[g],w=p[m],T=pf(c,e),_=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(d){let D=g==="y"?"height":"width",I=i.reference[g]-i.floating[D]+_.mainAxis,B=i.reference[g]+i.reference[D]-_.mainAxis;v<I?v=I:v>B&&(v=B)}if(h){let D=g==="y"?"width":"height",I=["top","left"].includes(Zc(o)),B=i.reference[m]-i.floating[D]+(I&&((A=a.offset)==null?void 0:A[m])||0)+(I?0:_.crossAxis),F=i.reference[m]+i.reference[D]+(I?0:((R=a.offset)==null?void 0:R[m])||0)-(I?_.crossAxis:0);w<B?w=B:w>F&&(w=F)}return{[g]:v,[m]:w}}}};function Dg(){return typeof window<"u"}function wf(r){return q2(r)?(r.nodeName||"").toLowerCase():"#document"}function is(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function sl(r){var e;return(e=(q2(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function q2(r){return Dg()?r instanceof Node||r instanceof is(r).Node:!1}function ga(r){return Dg()?r instanceof Element||r instanceof is(r).Element:!1}function nl(r){return Dg()?r instanceof HTMLElement||r instanceof is(r).HTMLElement:!1}function Jb(r){return!Dg()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof is(r).ShadowRoot}function $h(r){let{overflow:e,overflowX:t,overflowY:n,display:o}=ma(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(o)}function nB(r){return["table","td","th"].includes(wf(r))}function Og(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function Kv(r){let e=Xv(),t=ga(r)?ma(r):r;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function oB(r){let e=Kc(r);for(;nl(e)&&!gf(e);){if(Kv(e))return e;if(Og(e))return null;e=Kc(e)}return null}function Xv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gf(r){return["html","body","#document"].includes(wf(r))}function ma(r){return is(r).getComputedStyle(r)}function Ng(r){return ga(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Kc(r){if(wf(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Jb(r)&&r.host||sl(r);return Jb(e)?e.host:e}function U2(r){let e=Kc(r);return gf(e)?r.ownerDocument?r.ownerDocument.body:r.body:nl(e)&&$h(e)?e:U2(e)}function Mh(r,e,t){var a;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=U2(r),o=n===((a=r.ownerDocument)==null?void 0:a.body),i=is(n);if(o){let c=av(i);return e.concat(i,i.visualViewport||[],$h(n)?n:[],c&&t?Mh(c):[])}return e.concat(n,Mh(n,[],t))}function av(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function W2(r){let e=ma(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,o=nl(r),i=o?r.offsetWidth:t,a=o?r.offsetHeight:n,c=lg(t)!==i||lg(n)!==a;return c&&(t=i,n=a),{width:t,height:n,$:c}}function Jv(r){return ga(r)?r:r.contextElement}function nf(r){let e=Jv(r);if(!nl(e))return Qa(1);let t=e.getBoundingClientRect(),{width:n,height:o,$:i}=W2(e),a=(i?lg(t.width):t.width)/n,c=(i?lg(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const iB=Qa(0);function V2(r){let e=is(r);return!Xv()||!e.visualViewport?iB:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sB(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==is(r)?!1:e}function Yu(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let o=r.getBoundingClientRect(),i=Jv(r),a=Qa(1);e&&(n?ga(n)&&(a=nf(n)):a=nf(r));let c=sB(i,t,n)?V2(i):Qa(0),d=(o.left+c.x)/a.x,h=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(i){let g=is(i),v=n&&ga(n)?is(n):n,w=g,T=av(w);for(;T&&n&&v!==w;){let _=nf(T),A=T.getBoundingClientRect(),R=ma(T),D=A.left+(T.clientLeft+parseFloat(R.paddingLeft))*_.x,I=A.top+(T.clientTop+parseFloat(R.paddingTop))*_.y;d*=_.x,h*=_.y,p*=_.x,m*=_.y,d+=D,h+=I,w=is(T),T=av(w)}}return ug({width:p,height:m,x:d,y:h})}function Qv(r,e){let t=Ng(r).scrollLeft;return e?e.left+t:Yu(sl(r)).left+t}function G2(r,e,t){t===void 0&&(t=!1);let n=r.getBoundingClientRect(),o=n.left+e.scrollLeft-(t?0:Qv(r,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function aB(r){let{elements:e,rect:t,offsetParent:n,strategy:o}=r,i=o==="fixed",a=sl(n),c=e?Og(e.floating):!1;if(n===a||c&&i)return t;let d={scrollLeft:0,scrollTop:0},h=Qa(1),p=Qa(0),m=nl(n);if((m||!m&&!i)&&((wf(n)!=="body"||$h(a))&&(d=Ng(n)),nl(n))){let v=Yu(n);h=nf(n),p.x=v.x+n.clientLeft,p.y=v.y+n.clientTop}let g=a&&!m&&!i?G2(a,d,!0):Qa(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+p.x+g.x,y:t.y*h.y-d.scrollTop*h.y+p.y+g.y}}function lB(r){return Array.from(r.getClientRects())}function cB(r){let e=sl(r),t=Ng(r),n=r.ownerDocument.body,o=Uu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Uu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Qv(r),c=-t.scrollTop;return ma(n).direction==="rtl"&&(a+=Uu(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:c}}function uB(r,e){let t=is(r),n=sl(r),o=t.visualViewport,i=n.clientWidth,a=n.clientHeight,c=0,d=0;if(o){i=o.width,a=o.height;let h=Xv();(!h||h&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:i,height:a,x:c,y:d}}function dB(r,e){let t=Yu(r,!0,e==="fixed"),n=t.top+r.clientTop,o=t.left+r.clientLeft,i=nl(r)?nf(r):Qa(1),a=r.clientWidth*i.x,c=r.clientHeight*i.y,d=o*i.x,h=n*i.y;return{width:a,height:c,x:d,y:h}}function Qb(r,e,t){let n;if(e==="viewport")n=uB(r,t);else if(e==="document")n=cB(sl(r));else if(ga(e))n=dB(e,t);else{let o=V2(r);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ug(n)}function Y2(r,e){let t=Kc(r);return t===e||!ga(t)||gf(t)?!1:ma(t).position==="fixed"||Y2(t,e)}function fB(r,e){let t=e.get(r);if(t)return t;let n=Mh(r,[],!1).filter(c=>ga(c)&&wf(c)!=="body"),o=null,i=ma(r).position==="fixed",a=i?Kc(r):r;for(;ga(a)&&!gf(a);){let c=ma(a),d=Kv(a);!d&&c.position==="fixed"&&(o=null),(i?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$h(a)&&!d&&Y2(r,a))?n=n.filter(p=>p!==a):o=c,a=Kc(a)}return e.set(r,n),n}function hB(r){let{element:e,boundary:t,rootBoundary:n,strategy:o}=r,i=t==="clippingAncestors"?Og(e)?[]:fB(e,this._c):[].concat(t),a=[...i,n],c=a[0],d=a.reduce((h,p)=>{let m=Qb(e,p,o);return h.top=Uu(m.top,h.top),h.right=ag(m.right,h.right),h.bottom=ag(m.bottom,h.bottom),h.left=Uu(m.left,h.left),h},Qb(e,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function pB(r){let{width:e,height:t}=W2(r);return{width:e,height:t}}function gB(r,e,t){let n=nl(e),o=sl(e),i=t==="fixed",a=Yu(r,!0,i,e),c={scrollLeft:0,scrollTop:0},d=Qa(0);function h(){d.x=Qv(o)}if(n||!n&&!i)if((wf(e)!=="body"||$h(o))&&(c=Ng(e)),n){let v=Yu(e,!0,i,e);d.x=v.x+e.clientLeft,d.y=v.y+e.clientTop}else o&&h();i&&!n&&o&&h();let p=o&&!n&&!i?G2(o,c):Qa(0),m=a.left+c.scrollLeft-d.x-p.x,g=a.top+c.scrollTop-d.y-p.y;return{x:m,y:g,width:a.width,height:a.height}}function Nm(r){return ma(r).position==="static"}function ex(r,e){if(!nl(r)||ma(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return sl(r)===t&&(t=t.ownerDocument.body),t}function Z2(r,e){let t=is(r);if(Og(r))return t;if(!nl(r)){let o=Kc(r);for(;o&&!gf(o);){if(ga(o)&&!Nm(o))return o;o=Kc(o)}return t}let n=ex(r,e);for(;n&&nB(n)&&Nm(n);)n=ex(n,e);return n&&gf(n)&&Nm(n)&&!Kv(n)?t:n||oB(r)||t}const mB=async function(r){let e=this.getOffsetParent||Z2,t=this.getDimensions,n=await t(r.floating);return{reference:gB(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function vB(r){return ma(r).direction==="rtl"}const yB={convertOffsetParentRelativeRectToViewportRelativeRect:aB,getDocumentElement:sl,getClippingRect:hB,getOffsetParent:Z2,getElementRects:mB,getClientRects:lB,getDimensions:pB,getScale:nf,isElement:ga,isRTL:vB};function K2(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function bB(r,e){let t=null,n,o=sl(r);function i(){var c;clearTimeout(n),(c=t)==null||c.disconnect(),t=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),i();let h=r.getBoundingClientRect(),{left:p,top:m,width:g,height:v}=h;if(c||e(),!g||!v)return;let w=kp(m),T=kp(o.clientWidth-(p+g)),_=kp(o.clientHeight-(m+v)),A=kp(p),R=-w+"px "+-T+"px "+-_+"px "+-A+"px",D={rootMargin:R,threshold:Uu(0,ag(1,d))||1},I=!0;function B(F){let j=F[0].intersectionRatio;if(j!==d){if(!I)return a();j?a(!1,j):n=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!K2(h,r.getBoundingClientRect())&&a(),I=!1}try{t=new IntersectionObserver(B,{...D,root:o.ownerDocument})}catch{t=new IntersectionObserver(B,D)}t.observe(r)}return a(!0),i}function xB(r,e,t,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,h=Jv(r),p=o||i?[...h?Mh(h):[],...Mh(e)]:[];p.forEach(A=>{o&&A.addEventListener("scroll",t,{passive:!0}),i&&A.addEventListener("resize",t)});let m=h&&c?bB(h,t):null,g=-1,v=null;a&&(v=new ResizeObserver(A=>{let[R]=A;R&&R.target===h&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=v)==null||D.observe(e)})),t()}),h&&!d&&v.observe(h),v.observe(e));let w,T=d?Yu(r):null;d&&_();function _(){let A=Yu(r);T&&!K2(T,A)&&t(),T=A,w=requestAnimationFrame(_)}return t(),()=>{var A;p.forEach(R=>{o&&R.removeEventListener("scroll",t),i&&R.removeEventListener("resize",t)}),m==null||m(),(A=v)==null||A.disconnect(),v=null,d&&cancelAnimationFrame(w)}}const X2=eB,J2=tB,Q2=JP,eS=rB,tS=(r,e,t)=>{let n=new Map,o={platform:yB,...t},i={...o.platform,_c:n};return XP(r,e,{...o,platform:i})};function wB(r,e,t,n,o){return r.addEventListener("transitionend",t,n),setTimeout(()=>{t()},e)}const CB=4;let Ip;function Pm(r,e={}){let{msg:t="",delay:n=150,content:o,direction:i="bottom",type:a="hover",container:c,onOpen:d,onClose:h,closed:p,onDestroy:m}=e,g=ei("tooltip");if(t||o){Ip||(Ip=document.createElement("div"),document.body.appendChild(Ip));let v=c||Ip,w=document.createElement("div");w.classList.add(g.b(),"hidden","transparent"),o?w.appendChild(o):t&&(w.textContent=t);let T,_,A,R=()=>{A&&A(),tS(r,w,{placement:i,middleware:[Q2(),J2({limiter:eS()}),X2(CB)]}).then(({x:Q,y:se})=>{Object.assign(w.style,{left:`${Q}px`,top:`${se}px`})})},D=()=>{w.classList.add("hidden"),v.contains(w)&&v.removeChild(w),A&&A(),p&&p()},I=(Q=!1)=>{_&&clearTimeout(_),T=setTimeout(()=>{if(d){let se=d(Q);if(!Q&&se)return}v.appendChild(w),w.removeEventListener("transitionend",D),w.classList.remove("hidden"),A=xB(r,w,R),w.classList.remove("transparent")},n)},B=(Q=!1)=>{T&&clearTimeout(T),_=setTimeout(()=>{if(h){let se=h(Q);if(!Q&&se)return}wB(w,150,D,{once:!0}),w.classList.add("transparent")},n)},F=()=>{let Q=[r,w],se=B.bind(void 0,!1),ue=I.bind(void 0,!1);return{prepare:()=>{for(let ae of Q)ae.addEventListener("mouseenter",ue),ae.addEventListener("mouseleave",se)},show:I,hide:B,destroy:()=>{for(let ae of Q)ae.removeEventListener("mouseenter",ue),ae.removeEventListener("mouseleave",se)}}},j=()=>{let Q=ue=>{ue.stopPropagation(),B(!1)},se=ue=>{ue.stopPropagation(),I(),document.removeEventListener("click",Q),document.addEventListener("click",Q,{once:!0})};return{prepare:()=>{w.addEventListener("click",ue=>ue.stopPropagation()),r.addEventListener("click",se)},show:I,hide:(ue=!1)=>{B(ue),document.removeEventListener("click",Q)},destroy:()=>{r.removeEventListener("click",se),document.removeEventListener("click",Q)}}},z={hover:F,click:j},{prepare:G,show:pe,hide:P,destroy:U}=z[a]();return G(),{show:pe,hide:P,destroy:()=>{P(!0),m&&m(),U(),A&&A(),w.remove()}}}return null}function SB(r,e,t=0,n=!0){let{x:o,y:i,x1:a,y1:c}=r,{x:d,y:h,x1:p,y1:m}=e,g,v;return n?(g=a<d+t||o-t>p,v=c<h+t||i-t>m):(g=a<=d+t||o-t>=p,v=c<=h+t||i-t>=m),!(g||v)}function _B(r,e){let t=e.getBoundingClientRect();return{x:r.x-t.x-e.scrollLeft,y:r.y-t.y-e.scrollTop,x1:r.x-t.x-e.scrollLeft+r.width,y1:r.y-t.y-e.scrollTop+r.height,width:r.width,height:r.height}}const Mp=8;function AB(r){let{left:e,top:t,width:n,height:o}=r,{clientWidth:i,clientHeight:a}=document.documentElement,c=!1,d=!1;return e+n>i?(e=i-n-Mp,c=!0):e<0&&(e=Mp,c=!0),t+o>a?(t=a-o-Mp,d=!0):t<0&&(t=Mp,d=!0),{left:e,top:t,leftLimited:c,topLimited:d}}function EB(r,e={}){let t=Symbol("ignoreFirstBind"),n=new Set,o=new ResizeObserver(d=>{e.ignoreFirstBind&&d.some(h=>{let p=h.target,m=p[t];return p[t]=!0,!m})||r(d)}),i=o.observe;o.observe=(d,h)=>{n.add(d),i.call(o,d,h)};let a=o.unobserve;o.unobserve=d=>{n.has(d)&&(n.delete(d),d[t]=void 0),a.call(o,d)};let c=o.disconnect;return o.disconnect=()=>{for(let d of n.values())d[t]=void 0;c.call(o)},o}function dg(r,e){r.addEventListener("scroll",e),this.scrollHandler.push([r,e])}function Vp(){for(let r=0;r<this.scrollHandler.length;r++){let[e,t]=this.scrollHandler[r];e.removeEventListener("scroll",t)}this.scrollHandler=[]}function nh(r){return{y:r.scrollTop,x:r.scrollLeft}}function fg(r){let e={},t=r.trim().split(";");for(let n=0;n<t.length;n++){let o=t[n].trim();if(!o)continue;let i=o.indexOf(":");if(i===-1)continue;let a=o.slice(0,Math.max(0,i)).trim(),c=o.slice(Math.max(0,i+1)).trim();e[mf(a)]=c}return e}function lv(r){return Object.entries(r).map(([e,t])=>`${TB(e)}: ${t};`).join(" ")}function TB(r){return r.replaceAll(/([A-Z])/g," $1").trim().split(" ").join("-").toLowerCase()}function mf(r){return r.replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())}const wo=()=>Math.random().toString(36).slice(2);function rS(r,e){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{r.apply(this,n)},e)}}const Bm=Re.import("parchment"),tx=Re.import("blots/container"),RB=Re.import("blots/block"),kB=Re.import("blots/block/embed");var Ts,Qc=(Ts=class extends tx{static create(e){let t=document.createElement(this.tagName);return this.className&&t.classList.add(this.className),t}optimize(e){if(this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove();this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}enforceAllowedChildren(){this.children.forEach(e=>{this.statics.allowedChildren.some(n=>e instanceof n)||(e.statics.scope===Bm.Scope.BLOCK_BLOT?(e.parent instanceof Ts?(e.next!=null&&e.parent.splitAfter(e),e.prev!=null&&e.parent.splitAfter(e.prev)):(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev)),e.parent.unwrap()):e instanceof Bm.ParentBlot?e.unwrap():e.remove())})}},fe(Ts,"tagName"),fe(Ts,"blotName",Me.container),fe(Ts,"scope",Bm.Scope.BLOCK_BLOT),fe(Ts,"allowedChildren",[RB,kB,tx]),fe(Ts,"requiredContainer"),fe(Ts,"defaultChild"),Ts);const qc=r=>jP(r)?r:1,rx=Re.import("blots/block"),IB=Re.import("blots/block/embed");var Mc,Oi=(Mc=class extends Qc{static isAllowStyle(r){let e=mf(r);for(let t of this.allowStyle)if(e.startsWith(mf(t)))return!0;return!1}static create(r){let{tableId:e,rowId:t,colId:n,rowspan:o,colspan:i,style:a,emptyRow:c}=r,d=super.create();d.dataset.tableId=e,d.dataset.rowId=t,d.dataset.colId=n,d.dataset.rowspan=String(qc(o)),d.dataset.colspan=String(qc(i)),a&&(d.dataset.style=a);try{c&&(d.dataset.emptyRow=JSON.stringify(c))}catch{}return d}static formats(r){let{tableId:e,rowId:t,colId:n,rowspan:o,colspan:i,style:a,emptyRow:c}=r.dataset,d={tableId:String(e),rowId:String(t),colId:String(n),rowspan:Number(qc(o)),colspan:Number(qc(i))};a&&(d.style=a);try{c&&(d.emptyRow=JSON.parse(c))}catch{}return d}constructor(r,e,t){super(r,e),e.setAttribute("contenteditable",String(r.isEnabled()))}setFormatValue(r,e,t=!1){if(t){if(!this.statics.isAllowStyle(r))return;this.parent&&this.parent.statics.blotName===Me.tableCell&&this.parent.setFormatValue(r,e)}else{if(!this.statics.allowDataAttrs.has(r))return;let o=`data-${r}`;e?this.domNode.setAttribute(o,e):this.domNode.removeAttribute(o),this.parent&&this.parent.statics.blotName===Me.tableCell&&this.parent.setFormatValue(r,e)}let n=this.descendants(rx,0);for(let o of n)o.cache={}}get tableId(){return this.domNode.dataset.tableId}get rowId(){return this.domNode.dataset.rowId}set rowId(r){this.setFormatValue("row-id",r)}get colId(){return this.domNode.dataset.colId}set colId(r){this.setFormatValue("col-id",r)}get rowspan(){return Number(this.domNode.dataset.rowspan)}set rowspan(r){this.setFormatValue("rowspan",r)}get colspan(){return Number(this.domNode.dataset.colspan)}set colspan(r){this.setFormatValue("colspan",r)}get emptyRow(){try{return JSON.parse(this.domNode.dataset.emptyRow)}catch{return[]}}set emptyRow(r){if(this.emptyRow.toString()!==r.toString())try{r.length>0?this.setFormatValue("empty-row",JSON.stringify(r),!1):this.setFormatValue("empty-row",null,!1)}catch{this.setFormatValue("empty-row",null,!1)}}getColumnIndex(){return jn(this,Me.tableMain).getColIds().indexOf(this.colId)}setStyleByString(r){let e=fg(r);for(let[t,n]of Object.entries(e))this.setFormatValue(t,n,!0)}formatAt(r,e,t,n){this.children.length===0&&(this.appendChild(this.scroll.create(this.statics.defaultChild.blotName)),e+=1),super.formatAt(r,e,t,n),n&&n.style&&this.setStyleByString(n.style)}insertAt(r,e,t){let[n]=this.children.find(r);if(!n&&this.statics.defaultChild){let o=this.scroll.create(this.statics.defaultChild.blotName||"block");this.appendChild(o)}super.insertAt(r,e,t)}formats(){let r=this.statics.formats(this.domNode);return{[this.statics.blotName]:r}}checkMerge(){let{colId:r,rowId:e,colspan:t,rowspan:n}=this,o=this.next;return o!==null&&o.statics.blotName===this.statics.blotName&&o.rowId===e&&o.colId===r&&o.colspan===t&&o.rowspan===n}optimize(){let r=this.parent,e=this.statics.formats(this.domNode);if(this.prev&&this.prev instanceof IB){let n=this.prev;if(this.insertBefore(n,this.children.head),this.length()<=1){let o=this.scroll.create("block");this.insertBefore(o,n.next)}}let t=r!==null&&r.statics.blotName!==Me.tableCell;if(t&&(this.wrap(Me.tableCell,e),this.children.length===0)){let n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove()),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0?this.remove():this.domNode.dataset.style&&t&&r.domNode.style.cssText!==this.domNode.dataset.style&&this.setStyleByString(this.domNode.dataset.style)}insertBefore(r,e){if(r.statics.blotName===this.statics.blotName){let t=r,n=this.statics.formats(t.domNode),o=this.statics.formats(this.domNode);if(Object.entries(o).every(([a,c])=>String(c)===String(n[a]))){let a=this.split(e?e.offset():0);return this.parent.insertBefore(t,a)}else{let[a,c]=hf(this,[Me.tableRow,Me.tableCell]);if(e){let d=e.offset(),h=this.length();if(d+1<h){let p=this.scroll.create(Me.tableCellInner,o);this.children.forEachAt(d+1,this.length(),m=>{p.appendChild(m)}),a.insertBefore(p.wrap(Me.tableCell,o),c.next)}}if(this.rowId!==t.rowId){if(e){let p=e.offset(a);a.split(p)}else if(c.next){let p=c.next.offset(a);a.split(p)}let d=this.scroll.create(Me.tableRow,n),h=this.scroll.create(Me.tableCell,n);return h.appendChild(t),d.appendChild(h),a.parent.insertBefore(d,a.next)}return a.insertBefore(t.wrap(Me.tableCell,n),e?c:c.next)}}else if(r.statics.blotName===Me.tableCol){try{let t=jn(this,Me.tableBody),n=this.offset(t),o=t.split(n);t.parent.insertBefore(r,o),r.optimize({})}catch{console.warn("TableCellInner not in TableBody")}return}super.insertBefore(r,e)}},fe(Mc,"blotName",Me.tableCellInner),fe(Mc,"tagName","div"),fe(Mc,"className","ql-table-cell-inner"),fe(Mc,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),fe(Mc,"defaultChild",rx),fe(Mc,"allowStyle",new Set(["background-color","border","height"])),Mc),ih,Ka=(ih=class extends Qc{static create(r){let e=super.create();return e.dataset.tableId=r.tableId,e.dataset.rowId=r.rowId,e}get rowId(){return this.domNode.dataset.rowId}get tableId(){return this.domNode.dataset.tableId}setHeight(r){this.foreachCellInner(e=>{e.setFormatValue("height",r,!0)})}getCellByColId(r,e){let t=jn(this,Me.tableMain),n=t.getColIds(),o=n.indexOf(r),i=this.children.iterator(),a=null;for(;a=i();){if(a.colId===r)return a;let c=n.indexOf(a.colId);if(c<o&&c+a.colspan>o)return a}return this[e]&&this[e].statics.blotName===Me.tableRow?this[e].getCellByColId(r,e):null}insertCell(r,e){let t=[],n=this.children.iterator(),o=0,i;for(;(i=n())&&(o+=i.colspan,!(o>r));)if(i.rowspan!==1)for(let a=0;a<i.rowspan-1;a++)t[a]=(t[a]||0)+i.colspan;if(i&&o-i.colspan<r){let a=i.getCellInner();a.colspan+=1,i.rowspan!==1&&(t.skipRowNum=i.rowspan-1)}else{let a=this.scroll.create(Me.tableCell,e),c=this.scroll.create(Me.tableCellInner,e),d=this.scroll.create("block");d.appendChild(this.scroll.create("break")),c.appendChild(d),a.appendChild(c),this.insertBefore(a,i)}return t}getCellByColumIndex(r){let e=[],t=null,n=0;if(r<0)return[t,n,e];let o=this.children.iterator();for(;t=o();){if(n+=t.colspan,t.rowspan!==1)for(let i=0;i<t.rowspan-1;i++)e[i]=(e[i]||0)+t.colspan;if(n>r)break}return[t,n,e]}removeCell(r){if(r<0)return[];let e=this.getCellByColumIndex(r),[t,n]=e,o=e[2];if(!t)return o;if(n-t.colspan<r||t.colspan>1){let[i]=t.descendants(Oi);if(t.colspan!==1&&r===n-t.colspan){let a=jn(this,Me.tableMain),c=a.getColIds();i.colId=c[c.indexOf(i.colId)+1]}t.rowspan!==1&&(o.skipRowNum=t.rowspan-1),--i.colspan}else t.remove();return o}foreachCellInner(r){let e=this.children.iterator(),t=0,n;for(;n=e();){let[o]=n.descendants(Oi);if(r(o,t++))break}}checkMerge(){let r=this.next;return r!==null&&r.statics.blotName===this.statics.blotName&&r.rowId===this.rowId}optimize(r){let e=this.parent,{tableId:t}=this;e!==null&&e.statics.blotName!==Me.tableBody&&this.wrap(Me.tableBody,t),this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName),this.enforceAllowedChildren(),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}},fe(ih,"blotName",Me.tableRow),fe(ih,"tagName","tr"),fe(ih,"className","ql-table-row"),ih),Fp,jc=(Fp=class extends Qc{static create(r){let e=super.create();return e.dataset.tableId=r,e}get tableId(){return this.domNode.dataset.tableId}insertRow(r){let e=jn(this,Me.tableMain);if(!e)return;let t=e.getColIds(),n=this.descendants(Ka),o=new Set(t),i=0;for(let h of n){if(i===r)break;h.foreachCellInner(p=>{if(i+p.rowspan>r&&(p.rowspan+=1,o.delete(p.colId),p.colspan!==1)){let m=t.indexOf(p.colId);for(let g=0;g<p.colspan-1;g++)o.delete(t[m+g+1])}}),i+=1}let a=e.tableId,c=wo(),d=this.scroll.create(Me.tableRow,{tableId:a,rowId:c});for(let h of o){let p=this.scroll.create("break"),m=p.wrap("block"),g=m.wrap(Me.tableCellInner,{tableId:a,rowId:c,colId:h,rowspan:1,colspan:1}),v=g.wrap(Me.tableCell,{tableId:a,rowId:c,colId:h,rowspan:1,colspan:1});d.appendChild(v)}this.insertBefore(d,n[r]||null)}checkMerge(){let r=this.next;return r!==null&&r.statics.blotName===this.statics.blotName&&r.tableId===this.tableId}optimize(r){let e=this.parent;if(e!==null&&e.statics.blotName!==Me.tableMain){let{tableId:t}=this;this.wrap(Me.tableMain,{tableId:t})}super.optimize(r)}},fe(Fp,"blotName",Me.tableBody),fe(Fp,"tagName","tbody"),Fp);const MB=Re.import("parchment"),LB=Re.import("blots/block"),DB=Re.import("blots/container");var cv=class extends LB{replaceWith(r,e){let t=qu(r)?this.scroll.create(r,e):r;if(t instanceof MB.ParentBlot)if(t.statics.blotName===Me.tableCellInner){let n=this.parent;if(n.statics.blotName===Me.tableCellInner){if(n==null||n.insertBefore(t,this.prev?null:this.next),n.statics.blotName===Me.tableCellInner){let o=this;for(;o;){let i=o.next;t.appendChild(o),o=i}}else t.appendChild(this);if(n&&n.length()===0){n.remove(),n.parent.statics.blotName===Me.tableCell&&n.parent.length()===0&&n.parent.remove();let o=n.parent.parent;o.statics.blotName===Me.tableRow&&o.children.length===0&&o.remove()}}else n instanceof DB?n.parent.insertBefore(t,n):n==null||n.insertBefore(t,this.next),t.appendChild(this);return t}else this.moveChildren(t);return this.parent!=null&&(this.parent.insertBefore(t,this.next),this.remove()),this.attributes.copy(t),t}format(r,e){if(r===Me.tableCellInner&&this.parent.statics.blotName===r&&!e)try{jn(this,Me.tableCellInner).unwrap()}catch{console.error("unwrap TableCellInner error")}else super.format(r,e)}};const OB=Re.import("blots/block/embed");var nx=class extends OB{delta(){let r=super.delta(),e=uv(this);return e[Me.tableCellInner]&&r.insert(`
|
220
220
|
`,{[Me.tableCellInner]:e[Me.tableCellInner]}),r}length(){return uv(this)[Me.tableCellInner]&&(!this.next||this.next.length()<=1)?super.length()+1:super.length()}};function uv(r,e={},t=!0){return r==null||("formats"in r&&typeof r.formats=="function"&&(e={...e,...r.formats()},t&&delete e["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?e:uv(r.parent,e,t)}const ox=Re.import("parchment"),NB=Re.import("blots/scroll");var PB=class extends NB{enable(r=!0){let e=Re.import(`formats/${Me.tableCellInner}`),t=this.domNode.querySelectorAll(`.${e.className}`);for(let i of Array.from(t))i.setAttribute("contenteditable",String(!!r));let n=Re.import(`formats/${Me.tableCaption}`),o=this.domNode.querySelectorAll(`.${n.className}`);for(let i of Array.from(o))i.setAttribute("contenteditable",String(!!r));super.enable(r)}createBlock(r,e){let t,n={};if(r[Me.tableCellInner])t=Me.tableCellInner;else for(let[a,c]of Object.entries(r))this.query(a,ox.Scope.BLOCK&ox.Scope.BLOT)!=null?t=a:n[a]=c;t===Me.tableCellInner&&(n={...r},delete n[t]);let o=this.create(t||this.statics.defaultChild.blotName,t?r[t]:void 0);this.insertBefore(o,e||void 0);let i=o.length();o instanceof Oi&&i===0&&(i+=1);for(let[a,c]of Object.entries(n))o.formatAt(0,i,a,c);return o}},BB=`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">\r
|
221
221
|
<!-- Icon from Tabler Icons by Paweł Kuna - https://github.com/tabler/tabler-icons/blob/master/LICENSE -->\r
|
222
222
|
<path\r
|
@@ -357,11 +357,11 @@ received: ${r.quality}
|
|
357
357
|
received: ${r.imageType}
|
358
358
|
-> using default image/jpeg`),r.imageType="image/jpeg")}function $F(r,e){r.keepImageTypes??(r.keepImageTypes=[]),r.keepImageTypes&&!Array.isArray(r.keepImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: ${r.keepImageTypes} -> using default []`),r.keepImageTypes=[]),r.ignoreImageTypes??(r.ignoreImageTypes=[]),r.ignoreImageTypes&&!Array.isArray(r.ignoreImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: ${r.ignoreImageTypes} -> using default []`),r.ignoreImageTypes=[])}function qF(r,e){r.handleOnPaste&&typeof r.handleOnPaste!="boolean"&&typeof r.handleOnPaste!="function"&&(e.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean" or a "function", received: ${r.ignoreImageTypes} -> using default true`),r.handleOnPaste=!0),r.insertIntoEditor&&typeof r.insertIntoEditor!="function"&&(e.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: ${r.insertIntoEditor} -> using default undefined`),r.insertIntoEditor=void 0)}function lx(r){return!!/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i.exec(r)}class UF{constructor(e,t,n,o){fe(this,"localDrag",!1);this.quill=e,this.onNewDataUrl=t,this.logger=n,this.handleOnPaste=o,this.quill.root.addEventListener("dragstart",i=>this.handleDragStart(i),!1),this.quill.root.addEventListener("dragend",i=>this.handleDragEnd(i),!1),this.quill.root.addEventListener("drop",i=>this.handleDrop(i),!0),this.handleOnPaste!==!1&&this.quill.root.addEventListener("paste",i=>this.handlePaste(i),!0)}handleDragStart(e){this.localDrag=!0}handleDragEnd(e){this.localDrag=!1}async handleDrop(e){var a,c,d,h;if(this.localDrag)return;e.preventDefault();const t=document.getSelection();if(t&&document.caretPositionFromPoint){const p=document.caretPositionFromPoint(e.clientX,e.clientY);p&&t.setBaseAndExtent(p.offsetNode,p.offset,p.offsetNode,p.offset)}this.logger.log("handleDrop",{evt:e});const n=(a=e.dataTransfer)==null?void 0:a.files,o=Array.from(n||[]).filter(p=>lx(p.type));if(o.length>0){e.stopPropagation(),this.logger.log("handleDrop","found files",{evt:e,files:n,imageFiles:o}),await this.pasteFilesIntoQuill(o);return}if((c=e.dataTransfer)!=null&&c.items){e.stopPropagation(),this.logger.log("handleDrop","found items",{evt:e,files:n,imageFiles:o}),await this.handleDataTransferList((d=e.dataTransfer)==null?void 0:d.items,e);return}const i=(h=e.dataTransfer)==null?void 0:h.getData("URL");if(this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:i}),i){const p=await(await fetch(i)).blob();this.logger.log("handleDrop","blob from drag event",{evt:e,files:n,imageFiles:o}),await this.pasteFilesIntoQuill([p])}}async handlePaste(e){var t;typeof this.handleOnPaste=="function"&&!this.handleOnPaste(e)||await this.handleDataTransferList((t=e.clipboardData)==null?void 0:t.items,e)}async handleDataTransferList(e,t){const n=Array.from(e||[]),o=n.filter(c=>c.kind==="file"&&lx(c.type)),i=n.map(c=>({type:c.type,kind:c.kind}));if(this.logger.log("handleDataTransferList",{fileTypes:i,imageCount:o.length}),!o.length)return;t.preventDefault(),t.stopPropagation();const a=o.map(c=>c.getAsFile());await this.pasteFilesIntoQuill(a)}async pasteFilesIntoQuill(e){this.logger.log(" pasteFilesIntoQuill",`pasting ${e.length} images...`),await Promise.all(e.map(async(t,n)=>{if(!t)return;const o=await oS(t);this.logger.log(" pasteFilesIntoQuill",`pasting image (${n})`),this.onNewDataUrl(o)})),this.logger.log(" pasteFilesIntoQuill","done")}}class Dh{constructor(e,t){fe(this,"quill");fe(this,"range");fe(this,"options");fe(this,"imageDrop");fe(this,"fileHolder");fe(this,"Logger");this.quill=e,this.options=t||{};const n=!!t.debug,o=!!t.suppressErrorLogging;this.Logger=new NF(n,o),FF(t,this.Logger);const i=async c=>{this.Logger.log("onImageDrop",{dataUrl:c});const d=await this.downscaleImageFromUrl(c);this.insertToEditor(d,Dh.b64toBlob(d))};this.imageDrop=new UF(e,i,this.Logger,typeof this.options.handleOnPaste=="function"?this.options.handleOnPaste:this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:t,quill:e,debug:n});const a=this.quill.getModule("toolbar");a?a.addHandler("image",()=>this.selectLocalImage()):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}static b64toBlob(e){const t=atob(e.split(",")[1]),n=e.slice(5).split(";")[0],o=new ArrayBuffer(t.length);let i=new Uint8Array(o);for(let a=0;a<t.length;a++)i[a]=t.charCodeAt(a);return new Blob([o],{type:n})}destroy(){this.imageDrop&&console.warn("ImageDrop instance cleanup")}selectLocalImage(e){this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=()=>this.fileChanged().then(()=>e&&e()),document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(()=>{this.fileHolder&&document.body.removeChild(this.fileHolder)})}async fileChanged(e){var a;const t=e||((a=this.fileHolder)==null?void 0:a.files);if(!(t!=null&&t.length))return;const n=t[0];if(this.Logger.log("fileChanged",{file:n}),!n)return;const o=await oS(n),i=await this.downscaleImageFromUrl(o);this.insertToEditor(i,Dh.b64toBlob(i))}async downscaleImageFromUrl(e){const t=await BF(this.Logger,e,{maxWidth:this.options.maxWidth,maxHeight:this.options.maxHeight,imageType:this.options.imageType,keepImageTypes:this.options.keepImageTypes,ignoreImageTypes:this.options.ignoreImageTypes,imageQuality:this.options.quality});return this.Logger.log("downscaleImageFromUrl",{dataUrl:e,dataUrlCompressed:t}),t}insertToEditor(e,t){if(this.options.insertIntoEditor)this.options.insertIntoEditor(e,t,this.quill);else{this.Logger.log("insertToEditor",{url:e}),this.range=this.quill.getSelection();const n=this.range;if(!n)return;this.logFileSize(e),this.quill.insertEmbed(n.index,"image",`${e}`,"user"),n.index++,this.quill.setSelection(n,"api")}}logFileSize(e){const o=(Math.round((e.length-"data:image/png;base64,".length)*3/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+o+" kb")}}window.imageCompressor=Dh;const Oh={OVERLAY:"ql-image-resizer-overlay",HANDLE:"ql-image-resizer-handle",DISPLAY:"ql-image-resizer-display",TOOLBAR:"ql-image-resizer-toolbar",TOOLBAR_BUTTON:"ql-image-resizer-toolbar-button"},Ic={BACKSPACE:8,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40},Dp=(r,e)=>{const t=r?"top":"bottom",n=e?"left":"right",o=r===e?"nwse-resize":"nesw-resize";return{[t]:"-5px",[n]:"-5px",cursor:o}},WF={tl:Dp(!0,!0),tr:Dp(!0,!1),bl:Dp(!1,!0),br:Dp(!1,!1)},VF={modules:["DisplaySize","Toolbar","Resize","Keyboard"],embedTags:["VIDEO","IFRAME"],tools:["left","center","right","justify"],contentOptions:[{attribute:["width"],limit:{minWidth:100},blotName:"image"},{attribute:["width","height"],limit:{minWidth:200,ratio:.5625},blotName:"video"}]},GF=Re.import("formats/image");class Yp extends GF{static get ATTRIBUTES(){return["alt","height","width","class","style","data-align"]}static formats(e){return this.ATTRIBUTES.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)??""),t),{})}format(e,t){this.constructor.ATTRIBUTES.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}fe(Yp,"blotName","image"),fe(Yp,"tagName","img"),fe(Yp,"scope",nr.INLINE);Re.register("formats/image",Yp,!0);class qh{constructor(e){fe(this,"resizer");fe(this,"quill");fe(this,"overlay");fe(this,"activeEle");fe(this,"blot");fe(this,"options");fe(this,"requestUpdate");this.resizer=e,this.quill=e.quill,this.overlay=e.overlay,this.activeEle=e.activeEle,this.blot=e.blot,this.options=e.options,this.requestUpdate=()=>e.onUpdate(!0)}onCreate(){}onDestroy(){}onUpdate(){}}class YF extends qh{constructor(){super(...arguments);fe(this,"display")}onCreate(){var t;this.display=document.createElement("div"),this.display.className=Li[Oh.DISPLAY],(t=this.overlay)==null||t.appendChild(this.display)}onUpdate(){if(!this.display||!this.activeEle)return;const[t,n]=[this.activeEle.offsetWidth,this.activeEle.offsetHeight];this.display.innerHTML=`${t} × ${n}`,this.positionDisplay(t,n)}positionDisplay(t,n){var c;if(!this.display)return;const o=this.display.getBoundingClientRect(),i=t>120&&n>30,a=((c=this.activeEle)==null?void 0:c.style.float)==="right";Object.assign(this.display.style,{right:i?"4px":a?"auto":`-${o.width+4}px`,bottom:i?"4px":`-${o.height+4}px`,left:i?"auto":a?`-${o.width+4}px`:"auto"})}}class ZF extends qh{constructor(){super(...arguments);fe(this,"boxes",[]);fe(this,"dragBox",null);fe(this,"dragStartX",0);fe(this,"dragStartY",0);fe(this,"contentOption");fe(this,"preDragSize",{width:0,height:0});fe(this,"naturalSize",[0,0]);fe(this,"handleDragProxy",null);fe(this,"handleMouseupProxy",null);fe(this,"handleMousedown",t=>{!this.blot||!this.activeEle||(this.dragBox=t.target,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.preDragSize={width:this.activeEle.offsetWidth,height:this.activeEle.offsetHeight},this.naturalSize=this.getNaturalSize(),this.setCursor(window.getComputedStyle(this.dragBox).cursor),this.handleDragProxy=this.handleDrag.bind(this),this.handleMouseupProxy=this.handleMouseup.bind(this),document.addEventListener("mousemove",this.handleDragProxy,!0),document.addEventListener("mouseup",this.handleMouseupProxy,!0))});fe(this,"handleMouseup",t=>{if(!this.activeEle||!this.blot||!this.contentOption)return;const n=this.calcSize(t,this.contentOption.limit);Object.assign(this.activeEle,n),Object.assign(this.activeEle.style,{width:null,height:null}),this.setCursor(""),this.removeEventListeners()});fe(this,"handleDrag",t=>{!this.activeEle||!this.blot||!this.contentOption||(Object.assign(this.activeEle.style,this.calcSize(t,{...this.contentOption.limit,unit:!0})),this.requestUpdate())});fe(this,"handleDoubleClick",t=>{if(!this.blot||!this.activeEle||!this.contentOption)return;t.stopPropagation();const[n,o]=this.naturalSize,i={};this.contentOption.attribute.includes("width")&&(i.width=n),this.contentOption.attribute.includes("height")&&(i.height=o);const a=this.applyConstraints(i,this.contentOption.limit);Object.assign(this.activeEle,a),this.requestUpdate()})}onCreate(){!this.blot||!this.options.contentOptions||(this.contentOption=this.options.contentOptions.find(t=>t.blotName===this.blot.statics.blotName),this.boxes=[],["tl","tr","br","bl"].forEach(this.addBox.bind(this)))}onDestroy(){this.setCursor("")}addBox(t){var o;const n=document.createElement("div");n.className=`${Li[Oh.HANDLE]} ${t}`,n.addEventListener("mousedown",this.handleMousedown,!1),n.addEventListener("dblclick",this.handleDoubleClick,!1),Object.assign(n.style,WF[t]),(o=this.overlay)==null||o.appendChild(n),this.boxes.push(n)}removeEventListeners(){this.handleDragProxy&&(document.removeEventListener("mousemove",this.handleDragProxy,!0),this.handleDragProxy=null),this.handleMouseupProxy&&(document.removeEventListener("mouseup",this.handleMouseupProxy,!0),this.handleMouseupProxy=null)}calcSize(t,n={}){var d;if(!this.dragBox||!this.activeEle)return{};const o=t.clientX-this.dragStartX,i=t.clientY-this.dragStartY,a=this.dragBox===this.boxes[0]||this.dragBox===this.boxes[3]?-1:1,c={};return(d=this.contentOption)!=null&&d.attribute?this.contentOption.attribute.forEach(h=>c[h]=this.preDragSize[h]):c.width=this.preDragSize.width,c.width&&(c.width=Math.round(this.preDragSize.width+o*a)),c.height&&(c.height=Math.round(this.preDragSize.height+i*a)),this.applyConstraints(c,n)}applyConstraints(t,n={}){const o=typeof t.width=="string"?parseInt(t.width,10):t.width||0,i=typeof t.height=="string"?parseInt(t.height,10):t.height||0;let a=o,c=i;if(n.ratio){a=this.applyLimit(a,n.minWidth,n.maxWidth),c=a*n.ratio;const h=this.applyLimit(c,n.minHeight,n.maxHeight);h!==c&&(c=h,a=c/n.ratio)}else o&&(a=this.applyLimit(a,n.minWidth,n.maxWidth)),i&&(c=this.applyLimit(c,n.minHeight,n.maxHeight));const d={};return t.width!==void 0&&(d.width=n.unit?`${a}px`:a),t.height!==void 0&&(d.height=n.unit?`${c}px`:c),d}applyLimit(t,n,o){let i=t;return n!==void 0&&(i=Math.max(n,i)),o!==void 0&&(i=Math.min(o,i)),i}getNaturalSize(){if(!this.activeEle)return[0,0];const t=this.activeEle.getAttribute("data-size");if(!t){const n=this.activeEle,o=[n.offsetWidth,n.offsetHeight];return n.setAttribute("data-size",o.join(",")),o}return t.split(",").map(Number)}setCursor(t){[document.body,this.activeEle].forEach(n=>n&&(n.style.cursor=t))}}const Pc=class Pc extends qh{constructor(){super(...arguments);fe(this,"keyboardProxy",null)}static injectInit(t){var o;const n=(o=t.keyboard)==null?void 0:o.bindings;n&&[Pc.keys.LEFT,Pc.keys.RIGHT].forEach(i=>(n[i]||[]).unshift(Pc.makeArrowHandler(i)))}static makeArrowHandler(t){const n=t===Pc.keys.LEFT;return{key:t,shiftKey:!1,altKey:null,[n?"prefix":"suffix"]:/^$/,handler(o){const i=this.quill;if(!i.resizer)return!0;let a=o.index;const c=t===Pc.keys.RIGHT,[d]=i.getLine(a+(n?-1:0));if(!d)return!0;if(i.resizer.judgeShow(d))return!1;const h=i.getIndex(d);if(c&&h+d.length()-1===a)return!0;c&&(a+=o.length+1);const[p]=i.getLeaf(a);if(!p)return!0;const m=p.offset(p.parent),g=p.constructor&&"scope"in p.constructor&&p.constructor.scope===nr.BLOCK_BLOT;if(n&&(g&&a===m||a===0||a===h))return!0;let v=p;if(n&&m===0){const[w]=i.getLeaf(a-1);w&&(v=w)}return!v||!i.resizer.judgeShow(v)}}}onCreate(){this.keyboardProxy=this.keyboardHandle.bind(this),document.addEventListener("keydown",this.keyboardProxy,!0)}onDestroy(){this.keyboardProxy&&document.removeEventListener("keydown",this.keyboardProxy,!0)}keyboardHandle(t){if(t.defaultPrevented||t.shiftKey||t.ctrlKey||t.altKey||!this.activeEle)return;const n=t.keyCode;let o=this.blot.offset(this.quill.scroll),i=null,a=!1;n===Ic.BACKSPACE||n===Ic.DELETE?(this.handleDelete(),a=!0):n>=Ic.LEFT&&n<=Ic.DOWN&&([o,i]=this.handleArrowKeys(n,o),a=!0),a&&(t.stopPropagation(),t.preventDefault()),!(i&&this.resizer.judgeShow(i,i.domNode))&&(this.quill.setSelection(o),this.resizer.hide())}handleDelete(){this.blot&&(this.blot.deleteAt(0,1),this.blot.parent.optimize({}))}handleArrowKeys(t,n){let o=null;return t===Ic.RIGHT?n+=this.blot.length()||1:t===Ic.UP?(n=this.getOtherLineIndex(-1),o=this.quill.getLeaf(n)[0]):t===Ic.DOWN&&(n=this.getOtherLineIndex(1),o=this.quill.getLeaf(n)[0]),[n,o]}getOtherLineIndex(t){if(!this.blot)return 0;const n=this.blot.offset(this.quill.scroll),[o]=this.quill.getLine(n);if(!o)return n;const i=this.blot.offset(o)+1,a=t>0?o.next:o.prev;if(!a)return n;let c=a.length();return a.statics.blotName==="block"&&c--,a.offset(this.quill.scroll)+Math.min(c,i)}};fe(Pc,"keys",Ic);let hg=Pc;const Kd=class Kd extends qh{constructor(t){super(t);fe(this,"toolbar");fe(this,"blot");this.blot=t.blot}createStyleTool(t,n){const o={left:{float:"left"},right:{float:"right"},center:{display:"block",margin:"0 auto",float:"none"},justify:{display:"block",float:"none",margin:"0",width:"100%"}};return{icon:t,apply:i=>{const a=o[n];Object.assign(i.style,a),i.setAttribute("data-align",n)},isApplied:i=>{const a=i.style;switch(n){case"center":return a.float==="none";case"justify":return a.display==="block"&&a.width==="100%";case"left":case"right":return a.float===n;default:return!1}}}}onCreate(){var t;this.toolbar=document.createElement("div"),this.toolbar.className=Li[Oh.TOOLBAR],(t=this.overlay)==null||t.appendChild(this.toolbar),Object.keys(Kd.Tools).forEach(n=>{const o=n;Kd.Tools[o]=this.createStyleTool(Kd.Tools[o].icon,o)}),this._addToolbarButtons()}_addToolbarButtons(){if(!this.toolbar||!this.activeEle)return;const{Tools:t}=this.constructor;this.options.tools.forEach(n=>{const o=n,i=t[o];if(!i)return;const a=document.createElement("button");a.type="button",a.className=Li[Oh.TOOLBAR_BUTTON],a.innerHTML=Gd.renderToString(C.jsx(en,{icon:i.icon,size:"xs"})),a.setAttribute("data-tool",o),i.isApplied&&i.isApplied.call(this,this.activeEle)&&(a.style.backgroundColor="var(--AEditor_Addon_Secondary_color)"),this.addButtonClickHandler(a,i),this.toolbar.appendChild(a)})}addButtonClickHandler(t,n){!this.activeEle||!this.blot||t.addEventListener("click",o=>{var a;if(o.stopPropagation(),n.handler&&n.handler.call(this,o,t,this.activeEle)!==!0)return;const i=n.isApplied&&n.isApplied.call(this,this.activeEle);return this.toolbar&&Array.from(this.toolbar.querySelectorAll("button")).forEach(c=>c.style.backgroundColor=""),i?(this.activeEle.style.cssText="",this.activeEle.setAttribute("data-align","")):(t.style.backgroundColor="var(--AEditor_Addon_Secondary_color)",(a=n.apply)==null||a.call(n,this.activeEle)),this.requestUpdate(),!1})}};fe(Kd,"Tools",{left:{icon:"AlignLeft"},center:{icon:"AlignCenter"},right:{icon:"AlignRight"},justify:{icon:"AlignJustify"}});let fv=Kd;class iS{constructor(e,t={}){fe(this,"quill");fe(this,"options");fe(this,"moduleClasses");fe(this,"modules",[]);fe(this,"blot");fe(this,"selectedBlots",[]);fe(this,"embedClassName","");fe(this,"activeEle");fe(this,"overlay");fe(this,"updateFromModule",!1);fe(this,"hideProxy",null);fe(this,"updateOverlayPositionProxy",null);var o;e.resizer=this,this.quill=e;const n=t.modules?[...t.modules]:null;this.options={...VF,...t},n&&(this.options.modules=n),document.execCommand("enableObjectResizing",!1,"false"),this.moduleClasses=this.options.modules,this.quill.root.addEventListener("mousedown",this.handleClick.bind(this),!1),this.quill.on("text-change",this.handleChange.bind(this)),this.quill.container.style.position=this.quill.container.style.position||"relative",this.quill.on("selection-change",this.addBlotsSelectedClass.bind(this)),hg.injectInit(this.quill),(o=this.options.embedTags)!=null&&o.length&&this.initializeEmbed()}initializeModules(){this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.modules=this.moduleClasses.map(e=>new(this.constructor.Modules[e]||e)(this)),this.modules.forEach(e=>e.onCreate()),this.repositionElements(),this.modules.forEach(e=>e.onUpdate())}initializeEmbed(){if(!this.options.embedTags.length)return;this.embedClassName=`ql-${Array.from({length},()=>[Math.floor(Math.random()*62)]).join("")}`;const e=[""].concat(this.options.embedTags).join(`, .${this.embedClassName} `).slice(2)+"{pointer-events: none;}",t=document.createElement("style");t.textContent=e,this.quill.container.appendChild(t),this.quill.root.classList.add(this.embedClassName)}onUpdate(e){this.updateFromModule=!!e,this.repositionElements(),this.modules.forEach(t=>t.onUpdate())}handleClick(e){if(this.overlay&&(e.target===this.overlay||this.overlay.contains(e.target)))return;let t=e.target;if(t=this.getEventTarget(e,t),t!=null&&t.tagName){const n=this.quill.scroll.find(t);if(n&&this.judgeShow(n,t)){e.preventDefault();return}}this.activeEle&&this.hide()}getEventTarget(e,t){var i;const n=(i=this.options.embedTags)==null?void 0:i.join();if(!n)return t;const o=this.quill.root;return(t===o||t.querySelectorAll(n).length)&&(o.classList.remove(this.embedClassName),t=document.elementFromPoint(e.clientX,e.clientY),o.classList.add(this.embedClassName)),t}judgeShow(e,t){if(!e||!this.options.contentOptions)return!1;!t&&e.domNode&&(t=e.domNode);const n=this.options.contentOptions.find(i=>i.blotName===e.statics.blotName);if(!n)return!1;if(this.activeEle===t)return!0;const o=n.limit||{};return!o.minWidth||o.minWidth&&t.offsetWidth>=o.minWidth?(this.activeEle&&this.hide(),this.activeEle=t,this.blot=e,this.showOverlay(),this.initializeModules(),!0):!1}handleChange(e,t,n){if(this.updateFromModule){this.updateFromModule=!1;return}n!=="user"||!this.overlay||!this.activeEle||this.onUpdate()}showOverlay(){this.overlay&&this.hideOverlay(),this.quill.setSelection(null),[document.body,this.quill.root].forEach(e=>e.style.userSelect="none"),this.overlay=document.createElement("div"),this.overlay.className=`${Li[Oh.OVERLAY]}`,this.overlay.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation(),this.quill.root.scrollTop+=e.deltaY*.5},{passive:!1}),this.quill.container.appendChild(this.overlay),this.hideProxy=()=>this.activeEle&&this.hide(),this.updateOverlayPositionProxy=()=>this.overlay&&(this.overlay.style.marginTop=-1*this.quill.root.scrollTop+"px"),this.quill.root.addEventListener("input",this.hideProxy,!0),this.quill.root.addEventListener("scroll",this.updateOverlayPositionProxy),this.repositionElements()}hideOverlay(){this.overlay&&(this.quill.container.removeChild(this.overlay),this.overlay=void 0,this.hideProxy&&this.quill.root.removeEventListener("input",this.hideProxy,!0),this.updateOverlayPositionProxy&&this.quill.root.removeEventListener("scroll",this.updateOverlayPositionProxy),[document.body,this.quill.root].forEach(e=>e.style.userSelect=""))}repositionElements(){if(!this.overlay||!this.activeEle)return;const e=this.quill.container,t=this.activeEle.getBoundingClientRect(),n=e.getBoundingClientRect();Object.assign(this.overlay.style,{left:`${t.left-n.left-1+e.scrollLeft}px`,top:`${t.top-n.top+this.quill.root.scrollTop}px`,width:`${t.width}px`,height:`${t.height}px`,marginTop:-1*this.quill.root.scrollTop+"px"})}addBlotsSelectedClass(e){if(!e){this.selectedBlots=[];return}try{const t=o=>{var i;return["image","iframe","video"].includes((i=o.statics)==null?void 0:i.blotName)},n=this.quill.scroll.descendants(t,e.index,e.length);this.selectedBlots=n.filter(o=>!o.statics||!this.options.contentOptions?!1:!!this.options.contentOptions.find(i=>i.blotName===o.statics.blotName))}catch{}}hide(){this.hideOverlay(),this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.activeEle=void 0,this.blot=void 0}}fe(iS,"Modules",{Base:qh,DisplaySize:YF,Toolbar:fv,Resize:ZF,Keyboard:hg});const Op=Re.import("delta"),KF=Re.import("modules/clipboard");function XF(r){let e=Number.parseFloat(r.getAttribute("width")||String(Wn.colDefaultWidth));if(Number.isNaN(e)){const t=r.style.width;e=t?Number.parseFloat(t):r.offsetWidth}return e}function JF(r,e){const t=new Array(e).fill(Wn.colDefaultWidth),n=Array.from(r.querySelectorAll("tr"));for(const o of n){const i=Array.from(o.querySelectorAll("td"));for(const[a,c]of i.entries())if(a<e){const d=XF(c);t[a]=d||t[a]}else break}return t}class QF extends KF{constructor(t,n){super(t,n);fe(this,"tableId",wo());fe(this,"rowId",wo());fe(this,"colIds",[]);fe(this,"rowspanCount",[]);fe(this,"cellCount",0);fe(this,"colCount",0);fe(this,"STYLE_PROPERTIES",["color","background","background-color","mso-pattern","border","border-color","border-top","border-right","border-bottom","border-left"]);this.quill=t,this.addMatcher("table",this.matchTable.bind(this)),this.addMatcher("colgroup",this.matchColgroup.bind(this)),this.addMatcher("col",this.matchCol.bind(this)),this.addMatcher("tr",this.matchTr.bind(this)),this.addMatcher("td",this.matchTd.bind(this)),this.addMatcher("th",this.matchTd.bind(this)),this.addMatcher("caption",this.matchCaption.bind(this))}matchTable(t,n){if(n.ops.length===0)return n;const o=[],i=[];let a=-1;for(let h=0;h<n.ops.length;h++){const{attributes:p,insert:m}=n.ops[h],{table:g,[Me.tableCell]:v,...w}=p||{},T=zc.isObject(m)&&m[Me.tableCol];T?i.push({insert:m}):o.push({attributes:w,insert:m}),!(w!=null&&w[Me.tableCellInner])&&!T&&(a=h)}const d=JF(t,this.colIds.length).reduce((h,p,m)=>(i[m]?h.push(i[m]):h.push({insert:{[Me.tableCol]:{tableId:this.tableId,colId:this.colIds[m],width:p,full:!0}}}),h),[]);return o.splice(a+1,0,...d),this.tableId=wo(),this.colIds=[],this.rowspanCount=[],this.cellCount=0,this.colCount=0,new Op(o)}matchColgroup(t,n){const o=[];for(let i=0;i<n.ops.length;i++){const a=n.ops[i];a&&zc.isObject(a.insert)&&a.insert[Me.tableCol]&&o.push(a)}return new Op(o)}matchCol(t){this.colIds[this.colCount]=wo();const n=new Op().insert({[Me.tableCol]:Object.assign(zu.value(t),{tableId:this.tableId,colId:this.colIds[this.colCount]})});return this.colCount+=1,n}matchTr(t,n){this.rowId=wo(),this.cellCount=0;for(const[o,i]of this.rowspanCount.entries())i.rowspan>0&&(i.rowspan-=1),i.rowspan<=0&&(this.rowspanCount[o]={rowspan:0,colspan:0});return n}matchTd(t,n){const o=t,i=ns.formats(o);if(!this.colIds[this.cellCount]||!this.rowspanCount[this.cellCount])for(let p=this.cellCount;p>=0;p--)this.colIds[p]||(this.colIds[p]=wo()),this.rowspanCount[p]||(this.rowspanCount[p]={rowspan:0,colspan:0});const{colspan:a}=this.rowspanCount[this.cellCount];this.cellCount+=a,i.rowspan>0&&(this.rowspanCount[this.cellCount]={rowspan:i.rowspan,colspan:i.colspan});const c=this.colIds[this.cellCount];this.cellCount+=i.colspan;const d=Object.assign(i,{tableId:this.tableId,rowId:this.rowId,colId:c});this.handleBorderNoneStyles(o,d);const h=[];for(const p of n.ops){const{attributes:m={},...g}=p,{[Me.tableCell]:v,...w}=m;h.push({...g,attributes:{...w,[Me.tableCellInner]:d}})}return(h.length<=0||!zc.isString(h[h.length-1].insert)||!h[h.length-1].insert.endsWith(`
|
359
359
|
`))&&h.push({insert:`
|
360
|
-
`,attributes:{[Me.tableCellInner]:d}}),new Op(h)}handleBorderNoneStyles(t,n){if(!(n!=null&&n.style))return;["border",...["top","right","bottom","left"].flatMap(i=>[`border-${i}`,`border-${i}-style`])].filter(i=>t.style[i]==="none").forEach(i=>n.style=n.style.replaceAll(new RegExp(`${i}:none;?`,"g"),""))}convert({html:t,text:n},o={}){if(t){const c=new DOMParser().parseFromString(t,"text/html");this.preprocessTableHtml(c),this.mergeClassStylesToInline(c),t=c.body.innerHTML}const i=super.convert({html:t,text:n},o);if(o[Me.tableCellInner])for(const a of i.ops){if(zc.isObject(a.insert)&&a.insert[Me.tableCol]){a.insert="";continue}a.attributes||(a.attributes={}),a.attributes[Me.tableCellInner]=o[Me.tableCellInner]}return i}parseStyleWithFilter(t,n){if(!t)return{};const o={};let i="",a="",c=!0,d=0;for(let h=0;h<t.length;h++){const p=t[h];p===":"&&c?(i=t.substring(d,h).trim(),d=h+1,c=!1):p===";"&&(!c&&i&&(a=t.substring(d,h).trim(),(!n||n(i))&&(o[i]=a)),d=h+1,c=!0)}return!c&&i&&d<t.length&&(a=t.substring(d).trim(),(!n||n(i))&&(o[i]=a)),o}mergeClassStylesToInline(t){var n;try{const o=t.querySelectorAll("td[class], th[class]");if(o.length===0)return;const i=new Set;for(const p of o)(p.getAttribute("class")||"").split(/\s+/).filter(Boolean).forEach(g=>i.add(g));if(i.size===0)return;const a=t.querySelectorAll("style");if(a.length===0)return;const c=Array.from(a).map(p=>p.textContent||"").join("");if(!c)return;const d={},h=p=>this.STYLE_PROPERTIES.some(m=>p.startsWith(m));for(const p of i){const m=new RegExp(`\\.${p}[^{]*{([^}]*)}`,"g");let g;for(;(g=m.exec(c))!==null;){const v=g[1],w=this.parseStyleWithFilter(v),T={};let _=!1;for(const A in w)h(A)&&(T[A]=w[A],_=!0);_&&(d[p]=T)}}if(Object.keys(d).length===0)return;for(let p=0;p<o.length;p++){const m=o[p],g=((n=m.getAttribute("class"))==null?void 0:n.split(/\s+/).filter(Boolean))||[],v=m.getAttribute("style")||"",w=this.parseStyleWithFilter(v);let T=!1;for(const _ of g){const A=d[_];if(A)for(const R in A)w[R]||(w[R]=A[R],T=!0)}if(T){let _="";for(const A in w)_+=A+":"+w[A]+";";_&&m.setAttribute("style",_)}m.removeAttribute("class")}}catch(o){console.error("스타일 처리 오류",o)}}matchCaption(t,n){for(let o=0;o<n.ops.length;o++){const i=n.ops[o],{attributes:a}=i;a&&a[Me.tableCaption]&&(a[Me.tableCaption].tableId=this.tableId,i.attributes=a)}return n}preprocessTableHtml(t){try{const n=t.querySelectorAll("table");for(const o of Array.from(n))o.querySelectorAll("tr").length!==0&&(this.cleanupTableStyles(o),this.applyRowspanHeights(o),this.fixRowspanCells(o));this.mergeClassStylesToInline(t)}catch(n){console.error("테이블 전처리 오류",n)}}cleanupTableStyles(t){const n=t.querySelectorAll("td, th, tr, colgroup");for(const o of n){const i=o;i.removeAttribute("height");const a=i.getAttribute("style");if(a){const c=a.replace(/height\s*:[^;]*;?/gi,"").trim();i.setAttribute("style",c||"")}}}applyRowspanHeights(t){const o=t.querySelectorAll("td, th");t.style.borderCollapse="collapse";for(const i of o){const a=i,d=parseInt(a.getAttribute("rowspan")||"1")*24,h=a.getAttribute("style")||"",p=h+(h?"; ":"")+`height: ${d}px`;a.setAttribute("style",p)}}fixRowspanCells(t){const n=t.querySelectorAll("tr");if(n.length<=1)return;const o=[],i=new Map;for(let a=0;a<n.length;a++){const d=n[a].querySelectorAll("td, th");if(d.length===0&&a<n.length-1){o.push(a);continue}for(const h of Array.from(d)){const p=parseInt(h.getAttribute("rowspan")||"1");if(p>1)for(let m=1;m<p;m++){const g=a+m;if(g>=n.length)break;i.has(g)||i.set(g,[]),i.get(g).push(h)}}}o.length>0&&this.processEmptyRows(o,n,i)}processEmptyRows(t,n,o){for(const i of t){const a=o.get(i);if(a)for(const c of a){const d=parseInt(c.getAttribute("rowspan")||"1");d>1&&c.setAttribute("rowspan",(d-1).toString())}}for(const i of t.reverse())n[i].remove()}}class ej extends nS{fixUnusuaDeletelTable(){}mergeCells(e){if(!this.table||!this.tableSelection)return;const t=this.tableSelection.selectedTds||[];if(t.length>1&&(e=t),!e||e.length<=1)return;const n=jn(e[0],Me.tableMain),o=n.getRows(),i=e.map(g=>{if(!g||!g.parent||!g.parent.domNode)return null;const v=g.parent.domNode;if(!v)return null;const w=o.findIndex(A=>A.rowId===g.rowId);if(w===-1)return null;const T=g.getColumnIndex();if(T===-1)return null;const _=v.getBoundingClientRect();return!_||_.width===0||_.height===0?null:{td:g,rowIndex:w,colIndex:T,rowspan:g.rowspan,colspan:g.colspan,visualLeft:_.left,visualRight:_.right,visualTop:_.top,visualBottom:_.bottom}}).filter(Boolean);if(i.length<=1)return;i.sort((g,v)=>g.visualTop-v.visualTop||g.visualLeft-v.visualLeft);const a=i[0],c=a.td,d=Math.max(...i.map(g=>g.rowIndex+g.rowspan-1)),h=Math.max(...i.map(g=>g.colIndex+g.colspan-1)),p=d-a.rowIndex+1,m=h-a.colIndex+1;for(const g of i)g.td!==c&&(g.td.moveChildren(c),g.td.parent.remove());c.rowspan=p,c.colspan=m,this.fixTableByRemove(n)}}Re.register({"modules/imageCompress":Dh,"modules/resize":iS,"modules/tableUp":ej,"modules/magicUrl":RP,"formats/divider":dv,"modules/clipboard":QF,"modules/copy":LF,"modules/toggleFullscreen":P2},!0);const Zd={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},tj={getCharLength:r=>Array.from(r).length,calculateTextSize:r=>{if(!r.ops||r.ops.length===0)return 0;let e=0;for(const t of r.ops)if(typeof t.insert=="string")e+=new TextEncoder().encode(t.insert).length-1;else if(typeof t.insert=="object"&&t.insert.image){const n=t.insert.image;n&&(e+=Zd.IMAGE_SIZES.get(n)||Math.ceil(n.length*Zd.QUALITY))}return e}},rj=r=>{const{type:e="Primary",editorRef:t,useValue:n,useError:o,placeholder:i,tabIndex:a,autoFocus:c,editorProps:d,style:h,minHeight:p,maxHeight:m,contentHeight:g,contentMaxHeight:v=1e3,toolbarSize:w="Med",toolbarType:T="Default",readOnly:_,limitPosition:A="Bottom",maxLength:R,size:D=100,editorClassName:I,editorStyle:B,noImageResize:F,...j}=r,[{wrapId:z,wrapProps:G,labelProps:pe,...P},U]=Zu(j),V=S.useMemo(()=>e==="ReadOnly"||_,[e,_]),Q=S.useMemo(()=>g?20:0,[g]),[se,ue]=S.useState(w==="Med"?40:50),oe=S.useMemo(()=>V?0:se,[V,se]),[ae,ge]=S.useMemo(()=>!o||V||A==="Top"?[0,0]:[20,6],[o,V,A]),re=S.useMemo(()=>ae+ge,[ae,ge]),[ie,he]=S.useState(g),[Se,Le]=S.useState(!1),[ne,ve]=S.useState(!1),ke=S.useRef(null),Pe=S.useRef(0),De=S.useRef(0),we=S.useMemo(()=>P.label?24:0,[P.label]),_e=S.useMemo(()=>T==="Title",[T]),Ae=S.useMemo(()=>g||p||_e,[g,p,_e]),$e=S.useMemo(()=>Ae?"fit-content":m?m+we:`calc(100% - ${we}px)`,[Ae,m,we]),Fe=S.useMemo(()=>{if(g){if(ie)switch(e){case"ReadOnly":return ie;case"Raw":return ie+re;default:return ie+oe+re}}else return},[g,ie,e,oe,re]),Qe=S.useMemo(()=>{if(!(!m||m<=oe+re))switch(e){case"ReadOnly":return m;case"Raw":return m-re;default:return m-oe-re}},[e,oe,re,m]),Ue=S.useMemo(()=>{if(p&&g){const Ve=Math.min(p-oe-re,g);return V?Ve:Ve+oe+re}else return p||(g?void 0:`calc(100% - ${we}px)`)},[p,g,we,oe,re,V]),et=S.useMemo(()=>(Array.isArray(P.errorMessage)?P.errorMessage.some(Boolean):!!P.errorMessage)?"Error":e,[P.errorMessage,e]),ct=S.useCallback(Ve=>{let at=Ve;at=N9.sanitize(Ve);const lt=document.createElement("div");return lt.innerHTML=at,new Re(lt,{readOnly:!0}).getContents()},[]),[Ct,It]=wn(n,""),[Je,Ke]=S.useState(()=>ct(Ct));S.useEffect(()=>{It===void 0&&Ke(ct(Ct))},[ct,It,Ct]);const ft=S.useMemo(()=>C.jsx(nj,{htmlDelta:Je,isReadonly:V,limit:D*Zd.KB,useError:o}),[Je,V,D,o]),gt=S.useRef(null),Ne=S.useRef([]),[Xe,vt]=S.useState(!0);S.useEffect(()=>{const Ve=setTimeout(()=>vt(!1),0);return()=>{clearTimeout(Ve),Ne.current.forEach(at=>at()),Ne.current=[]}},[]);const Nt=S.useCallback((Ve,at)=>{if(!g)return at;const lt=p?p-oe-re:g,_t=Math.max(lt,0),Ot=m?m-oe-re:v;return Math.min(Ot,Math.max(_t,at+Ve))},[g,p,oe,re,m,v]),xt=S.useCallback(Ve=>{if(!Se||!g)return;const at=Ve.clientY-De.current,lt=Nt(at,Pe.current);ie!==lt&&he(lt),Ve.preventDefault(),Ve.stopPropagation()},[Se,g,Nt,ie]),Lt=S.useCallback(Ve=>{Le(!1),ve(!1),document.removeEventListener("mousemove",xt),document.removeEventListener("mouseup",Lt),Ve.preventDefault(),Ve.stopPropagation()},[xt]),Qt=S.useCallback(Ve=>{if(!g)return;if(Ve.detail===2){he(g);return}ie===void 0?(he(g),Pe.current=g):Pe.current=ie,Le(!0),ve(!0),De.current=Ve.clientY;const at=_t=>{if(!g)return;const Ot=_t.clientY-De.current,Bt=Nt(Ot,Pe.current);he(Bt),_t.preventDefault(),_t.stopPropagation()},lt=_t=>{Le(!1),ve(!1),document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",lt),_t.preventDefault(),_t.stopPropagation()};document.addEventListener("mousemove",at),document.addEventListener("mouseup",lt),Ve.preventDefault(),Ve.stopPropagation()},[g,ie,Nt]),Ut=S.useCallback((Ve,at,lt,_t)=>{if(lt!=="user"&<!=="api")return;const Ot=_t.getContents(),Bt=_t.getLength()-1,Wt=R!==void 0&&Bt>R,Yt=ee=>ee.replace(/\s{2,}/g,be=>" ".repeat(be.length)),ir=Ve.replace(/<p><br><\/p>/gi,"").trim(),zt=Yt(ir);if(!Wt){Ke(Ot),It==null||It(zt);return}const xr=fr(Ot,R);Ke(xr);const jr=new Re(document.createElement("div"));jr.setContents(xr);const Ye=Yt(jr.root.innerHTML.replace(/<p><br><\/p>/gi,"").trim());It==null||It(Ye)},[R,It]),fr=(Ve,at)=>{var Ot,Bt,Wt;if(!Ve.ops)return Ve;const lt=new rr;let _t=0;for(const Yt of Ve.ops){if(_t>=at)break;if(Yt.insert&&typeof Yt.insert=="string"){const ir=Yt.insert,zt=at-_t;if(ir.length<=zt)(Ot=lt.ops)==null||Ot.push(Yt),_t+=ir.length;else{const xr={...Yt,insert:ir.substring(0,zt)};(Bt=lt.ops)==null||Bt.push(xr),_t+=zt;break}}else _t<at&&((Wt=lt.ops)==null||Wt.push(Yt),_t+=1)}return lt},hr=S.useCallback(Ve=>{var Ot,Bt;const at=Ve.getEditor().container;if(!at)return null;const lt=(Ot=at.closest(".AEditorContainer"))==null?void 0:Ot.querySelector(".ql-toolbar");return lt||((Bt=at.parentElement)==null?void 0:Bt.querySelector(".ql-toolbar"))||null},[]),cr=S.useCallback((Ve,at,lt,_t)=>{if(!Ve)return;const Ot=lt;Ve.addEventListener(at,Ot,_t),Ne.current.push(()=>Ve.removeEventListener(at,Ot,_t))},[]),Te=S.useCallback((Ve,at,lt)=>{const _t=at.getFormat();Ve.forEach(Ot=>{if(_t[Ot]){const Bt=_t[Ot],Wt=`.ql-${Ot}`,Yt=lt.querySelector(`${Wt} .ql-picker-label`),ir=lt.querySelectorAll(`${Wt} .ql-picker-item`),zt=Array.from(ir).find(xr=>xr.getAttribute("data-value")===Bt);zt&&(zt.classList.add("ql-selected"),Yt==null||Yt.classList.add("ql-active"))}})},[]),le=S.useCallback(Ve=>{if(!Ve.length)return;const _t=Ve[0].target.getBoundingClientRect(),Ot=Math.ceil(_t.height);ue(Bt=>Math.abs(Bt-Ot)<.1?Bt:Ot)},[]),st=S.useCallback((Ve,at)=>{if(Ve.key!=="Backspace")return;const lt=at.getSelection(!1);if(!lt||lt.length>0)return;const _t=lt.index;if(_t<=0)return;const[Ot]=at.getLine(_t);if(Ot&&_t===at.getIndex(Ot)||at.getFormat(_t,1).link)return;const Bt=at.getFormat(_t-1,1);if(Bt.link){Ve.preventDefault();let Wt=_t-1;for(;Wt>0&&at.getFormat(Wt-1,1).link===Bt.link;)Wt--;const[Yt]=at.scroll.descendant(ir=>{var zt;return((zt=ir==null?void 0:ir.statics)==null?void 0:zt.blotName)==="link"},Wt);if(Yt!=null&&Yt.domNode){const ir=(Yt.domNode.textContent||"").length;at.removeFormat(Wt,ir)}}},[]),yt=S.useCallback(()=>({clipboard:{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>!1],["blockquote",()=>!1],["hr",()=>!1]]},copy:{isTitleMode:!0},keyboard:{bindings:{enter:{key:"Enter",handler:()=>!1},newline:{key:"Enter",shiftKey:!0,handler:()=>!1},tab:{key:"Tab",handler:()=>!1},"remove-newline":{key:"Backspace",collapsed:!0,format:["blockquote","list","code-block"],offset:0,handler:function(Ve){const{blockquote:at,list:lt,["code-block"]:_t}=Ve.getFormat();return at||lt||_t?(Ve.format("blockquote",!1),Ve.format("list",!1),Ve.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),nt=S.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,toggleFullscreen:{type:et,maximize:Gd.renderToString(C.jsx(en,{icon:"Maximize",size:w==="Med"?"sm":"md"})),minimize:Gd.renderToString(C.jsx(en,{icon:"Minimize",size:w==="Med"?"sm":"md"}))},imageCompress:{quality:Zd.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:Ve=>{var at,lt;try{const _t=(at=Ve.clipboardData)==null?void 0:at.items;if(!_t)return!0;const Ot=Array.from(_t).some(Yt=>{const ir=Yt.type.toLowerCase();return ir.includes("Excel")||ir.includes("text/html")}),Bt=(lt=Ve.clipboardData)==null?void 0:lt.getData("text/html"),Wt=Bt&&(Bt.includes("<table")||Bt.includes("<tbody")||Bt.includes("<td"));return!(Ot||Wt)}catch(_t){return console.warn("Error in handleOnPaste:",_t),!0}},insertIntoEditor:(Ve,at,lt)=>{Zd.IMAGE_SIZES.has(Ve)||Zd.IMAGE_SIZES.set(Ve,at.size);const _t=lt.getSelection();_t&<.insertEmbed(_t.index,"image",Ve,Re.sources.USER)}},...!V&&{...!F&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:Gd.renderToString(C.jsx(en,{icon:"Table",size:w==="Med"?"sm":"md",strokeWidth:2.5})),resize:fF,resizeScale:hF,customSelect:xF,selection:gF,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:uF,tableMenuOptions:{localstorageKey:"used-color",tipText:!0,tools:[Jr.InsertCaption,Jr.InsertTop,Jr.InsertRight,Jr.InsertBottom,Jr.InsertLeft,Jr.Break,Jr.MergeCell,Jr.SplitCell,Jr.Break,Jr.DeleteRow,Jr.DeleteColumn,Jr.DeleteTable,Jr.Break,Jr.BackgroundColor,Jr.BorderColor,Jr.Break,Jr.CopyCell,Jr.CutCell,Jr.Break,Jr.SwitchWidth]}},texts:{fullCheckboxText:wr.AEditor["Insert Full Width Table"],customBtnText:wr.AEditor.Custom,confirmText:wr.AEditor.Confirm,cancelText:wr.AEditor.Cancel,rowText:wr.AEditor.Row,colText:wr.AEditor.Column,CopyCell:wr.AEditor["Copy Cell"],CutCell:wr.AEditor["Cut Cell"],notPositiveNumberError:wr.AEditor["Not Positive Number Error"],custom:wr.AEditor.Custom,clear:wr.AEditor.Clear,transparent:wr.AEditor.Transparent,perWidthInsufficient:wr.AEditor.perWidthInsufficient,InsertTop:wr.AEditor["Insert Row Top"],InsertRight:wr.AEditor["Insert Column Right"],InsertBottom:wr.AEditor["Insert Row Bottom"],InsertLeft:wr.AEditor["Insert Column Left"],MergeCell:wr.AEditor["Merge Cell"],SplitCell:wr.AEditor["Split Cell"],DeleteRow:wr.AEditor["Delete Row"],DeleteColumn:wr.AEditor["Delete Column"],DeleteTable:wr.AEditor["Delete Table"],BackgroundColor:wr.AEditor["Set Background Color"],BorderColor:wr.AEditor["Set Border Color"],SwitchWidth:wr.AEditor["Switch Table Width"],InsertCaption:wr.AEditor["Insert Table Caption"]}},toolbar:{container:[[{header:[1,2,3,!1,4]}],["bold","italic","underline","strike","blockquote","divider",{[nS.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const Ve=this.quill,at=Ve.getSelection(!0);if(!at)return;const lt=Math.min(at.index+1,Ve.getLength()-1);Ve.insertEmbed(lt,"divider",!0,Re.sources.USER),setTimeout(()=>Ve.setSelection(Math.min(lt+1,Ve.getLength()-1),0,Re.sources.SILENT),0)}}}}}),[V,F,w]),pt=S.useMemo(()=>_e?yt():nt(),[_e,yt,nt]),ht=S.useCallback(Ve=>{if(!Ve)return;const at=Ve.getEditor();if(!at)return;const lt=at.root,_t=hr(Ve);lt&&I&<.classList.add(...I.split(" ")),lt&&B&&Object.entries(B).forEach(([Bt,Wt])=>{const Yt=Bt.replace(/([A-Z])/g,ir=>`-${ir[0].toLowerCase()}`);lt.style[Yt]=Wt}),cr(lt,"keydown",Bt=>st(Bt,at));const Ot=new ResizeObserver(le);if(_t){Ot.observe(_t),Ne.current.push(()=>Ot.disconnect());const Bt=["header","color","background"];Bt.forEach(Wt=>{const Yt=_t.querySelector(`.ql-${Wt} .ql-picker-label`);Yt&&cr(Yt,"click",()=>Te(Bt,at,_t))})}},[hr,I,B,cr,le,st,Te]),Ft=S.useCallback(Ve=>{if(Ne.current.forEach(lt=>lt()),Ne.current=[],gt.current=Ve,!Ve){zc.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const at=Ve;at.copyContent=lt=>{Ve.getEditor().getModule("copy").copyContent(lt)},zc.isFunction(t)?t(at):t&&(t.current=at),ht(Ve)},[t,ht]);return C.jsx(Wc,{wrapId:z,...P,label:C.jsxs(Rn,{style:{gap:4},children:[P.label,A==="Top"&&ft]}),labelProps:{...pe,style:{minHeight:P.label?20:void 0,marginBottom:P.label?4:0,...pe==null?void 0:pe.style}},wrapProps:{...G,className:Ge.clsx(G==null?void 0:G.className,!Ae&&Li.AEditorWrapper),style:{...G==null?void 0:G.style,height:$e}},children:C.jsxs(Kr,{...U,className:Ge.clsx(U.className,Li.AEditorContainer,Xe&&"NoTransition"),style:{...h,height:Fe,minHeight:Ue},children:[C.jsx(Mg,{...d,ref:Ft,preserveWhitespace:!0,modules:pt,placeholder:i,readOnly:V,theme:"snow",value:Je,className:Ge.clsx(d==null?void 0:d.className,Li.AEditor,Li[et],_e&&"Title",Xe&&"NoTransition"),style:{...d==null?void 0:d.style,maxHeight:Qe?Qe+oe:void 0,"--icon-size":`${w==="Med"?20:24}px`,"--editor-padding":_e?"8px 12px":"12px","--toolbar-padding":`${w==="Med"?7.5:12.5}px`,"--content-height":_e?"fit-content":ie?`${ie}px`:"100%","--content-max-height":Qe?`${Qe}px`:"100%","--default-text":`'${wr.AEditor.Default}'`,"--visit-url-text":`'${wr.AEditor["Visit URL:"]}'`,"--enter-link-text":`'${wr.AEditor["Enter link:"]}'`,"--enter-video-text":`'${wr.AEditor["Enter video:"]}'`,"--edit-text":`'${wr.AEditor.Edit}'`,"--save-text":`'${wr.AEditor.Save}'`,"--remove-text":`'${wr.AEditor.Remove}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Gd.renderToString(C.jsx(en,{icon:"EditorArrow"})))}`,"--title-color-picker-row":_e?1:4,"--title-header-font-size":`${w==="Med"?12:14}px`},onChange:Ut}),g&&C.jsxs(C.Fragment,{children:[C.jsx("div",{ref:ke,className:Ge.clsx(Li.Resizer,Xe&&"NoTransition"),style:{height:Q,bottom:o&&!V?re:0},onMouseDown:Qt}),C.jsx("div",{children:`${Math.round(ie)}px`,className:Ge.clsx(Li.Indicator,"NoSelect","Label1",Xe&&"NoTransition"),style:{height:Q,bottom:o&&!V?re:0,display:ne?"flex":"none"}})]}),C.jsx("div",{children:ft,className:Ge.clsx(Li.LimitContainer,"NoSelect",Xe&&"NoTransition"),style:{marginTop:ge,minHeight:ae,display:A==="Bottom"?"flex":"none"}})]})})},nj=({htmlDelta:r,limit:e,useError:t,isReadonly:n})=>{const[o,i]=wn(t,!1),a=S.useMemo(()=>tj.calculateTextSize(r),[r]);return S.useEffect(()=>{i&&i(a>e)},[a,e,i]),!t||n?null:C.jsxs(el,{className:Li.Limit,children:["(",C.jsx("span",{className:Ge.clsx(o&&Li.Error),children:$u(a)})," / ",$u(e),")"]})};function oj(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return S.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const Pg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Cf(r){const e=Object.prototype.toString.call(r);return e==="[object Window]"||e==="[object global]"}function ty(r){return"nodeType"in r}function Ni(r){var e,t;return r?Cf(r)?r:ty(r)&&(e=(t=r.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function ry(r){const{Document:e}=Ni(r);return r instanceof e}function Uh(r){return Cf(r)?!1:r instanceof Ni(r).HTMLElement}function sS(r){return r instanceof Ni(r).SVGElement}function Sf(r){return r?Cf(r)?r.document:ty(r)?ry(r)?r:Uh(r)||sS(r)?r.ownerDocument:document:document:document}const ol=Pg?S.useLayoutEffect:S.useEffect;function ny(r){const e=S.useRef(r);return ol(()=>{e.current=r}),S.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}function ij(){const r=S.useRef(null),e=S.useCallback((n,o)=>{r.current=setInterval(n,o)},[]),t=S.useCallback(()=>{r.current!==null&&(clearInterval(r.current),r.current=null)},[]);return[e,t]}function Nh(r,e){e===void 0&&(e=[r]);const t=S.useRef(r);return ol(()=>{t.current!==r&&(t.current=r)},e),t}function Wh(r,e){const t=S.useRef();return S.useMemo(()=>{const n=r(t.current);return t.current=n,n},[...e])}function pg(r){const e=ny(r),t=S.useRef(null),n=S.useCallback(o=>{o!==t.current&&(e==null||e(o,t.current)),t.current=o},[]);return[t,n]}function hv(r){const e=S.useRef();return S.useEffect(()=>{e.current=r},[r]),e.current}let Fm={};function Vh(r,e){return S.useMemo(()=>{if(e)return e;const t=Fm[r]==null?0:Fm[r]+1;return Fm[r]=t,r+"-"+t},[r,e])}function aS(r){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce((i,a)=>{const c=Object.entries(a);for(const[d,h]of c){const p=i[d];p!=null&&(i[d]=p+r*h)}return i},{...e})}}const of=aS(1),gg=aS(-1);function sj(r){return"clientX"in r&&"clientY"in r}function oy(r){if(!r)return!1;const{KeyboardEvent:e}=Ni(r.target);return e&&r instanceof e}function aj(r){if(!r)return!1;const{TouchEvent:e}=Ni(r.target);return e&&r instanceof e}function pv(r){if(aj(r)){if(r.touches&&r.touches.length){const{clientX:e,clientY:t}=r.touches[0];return{x:e,y:t}}else if(r.changedTouches&&r.changedTouches.length){const{clientX:e,clientY:t}=r.changedTouches[0];return{x:e,y:t}}}return sj(r)?{x:r.clientX,y:r.clientY}:null}const Ph=Object.freeze({Translate:{toString(r){if(!r)return;const{x:e,y:t}=r;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(r){if(!r)return;const{scaleX:e,scaleY:t}=r;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(r){if(r)return[Ph.Translate.toString(r),Ph.Scale.toString(r)].join(" ")}},Transition:{toString(r){let{property:e,duration:t,easing:n}=r;return e+" "+t+"ms "+n}}}),cx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lj(r){return r.matches(cx)?r:r.querySelector(cx)}const cj={display:"none"};function uj(r){let{id:e,value:t}=r;return S.createElement("div",{id:e,style:cj},t)}function dj(r){let{id:e,announcement:t,ariaLiveType:n="assertive"}=r;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return S.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},t)}function fj(){const[r,e]=S.useState("");return{announce:S.useCallback(n=>{n!=null&&e(n)},[]),announcement:r}}const lS=S.createContext(null);function hj(r){const e=S.useContext(lS);S.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(r)},[r,e])}function pj(){const[r]=S.useState(()=>new Set),e=S.useCallback(n=>(r.add(n),()=>r.delete(n)),[r]);return[S.useCallback(n=>{let{type:o,event:i}=n;r.forEach(a=>{var c;return(c=a[o])==null?void 0:c.call(a,i)})},[r]),e]}const gj={draggable:`
|
360
|
+
`,attributes:{[Me.tableCellInner]:d}}),new Op(h)}handleBorderNoneStyles(t,n){if(!(n!=null&&n.style))return;["border",...["top","right","bottom","left"].flatMap(i=>[`border-${i}`,`border-${i}-style`])].filter(i=>t.style[i]==="none").forEach(i=>n.style=n.style.replaceAll(new RegExp(`${i}:none;?`,"g"),""))}convert({html:t,text:n},o={}){if(t){const c=new DOMParser().parseFromString(t,"text/html");this.preprocessTableHtml(c),this.mergeClassStylesToInline(c),t=c.body.innerHTML}const i=super.convert({html:t,text:n},o);if(o[Me.tableCellInner])for(const a of i.ops){if(zc.isObject(a.insert)&&a.insert[Me.tableCol]){a.insert="";continue}a.attributes||(a.attributes={}),a.attributes[Me.tableCellInner]=o[Me.tableCellInner]}return i}parseStyleWithFilter(t,n){if(!t)return{};const o={};let i="",a="",c=!0,d=0;for(let h=0;h<t.length;h++){const p=t[h];p===":"&&c?(i=t.substring(d,h).trim(),d=h+1,c=!1):p===";"&&(!c&&i&&(a=t.substring(d,h).trim(),(!n||n(i))&&(o[i]=a)),d=h+1,c=!0)}return!c&&i&&d<t.length&&(a=t.substring(d).trim(),(!n||n(i))&&(o[i]=a)),o}mergeClassStylesToInline(t){var n;try{const o=t.querySelectorAll("td[class], th[class]");if(o.length===0)return;const i=new Set;for(const p of o)(p.getAttribute("class")||"").split(/\s+/).filter(Boolean).forEach(g=>i.add(g));if(i.size===0)return;const a=t.querySelectorAll("style");if(a.length===0)return;const c=Array.from(a).map(p=>p.textContent||"").join("");if(!c)return;const d={},h=p=>this.STYLE_PROPERTIES.some(m=>p.startsWith(m));for(const p of i){const m=new RegExp(`\\.${p}[^{]*{([^}]*)}`,"g");let g;for(;(g=m.exec(c))!==null;){const v=g[1],w=this.parseStyleWithFilter(v),T={};let _=!1;for(const A in w)h(A)&&(T[A]=w[A],_=!0);_&&(d[p]=T)}}if(Object.keys(d).length===0)return;for(let p=0;p<o.length;p++){const m=o[p],g=((n=m.getAttribute("class"))==null?void 0:n.split(/\s+/).filter(Boolean))||[],v=m.getAttribute("style")||"",w=this.parseStyleWithFilter(v);let T=!1;for(const _ of g){const A=d[_];if(A)for(const R in A)w[R]||(w[R]=A[R],T=!0)}if(T){let _="";for(const A in w)_+=A+":"+w[A]+";";_&&m.setAttribute("style",_)}m.removeAttribute("class")}}catch(o){console.error("스타일 처리 오류",o)}}matchCaption(t,n){for(let o=0;o<n.ops.length;o++){const i=n.ops[o],{attributes:a}=i;a&&a[Me.tableCaption]&&(a[Me.tableCaption].tableId=this.tableId,i.attributes=a)}return n}preprocessTableHtml(t){try{const n=t.querySelectorAll("table");for(const o of Array.from(n))o.querySelectorAll("tr").length!==0&&(this.cleanupTableStyles(o),this.applyRowspanHeights(o),this.fixRowspanCells(o));this.mergeClassStylesToInline(t)}catch(n){console.error("테이블 전처리 오류",n)}}cleanupTableStyles(t){const n=t.querySelectorAll("td, th, tr, colgroup");for(const o of n){const i=o;i.removeAttribute("height");const a=i.getAttribute("style");if(a){const c=a.replace(/height\s*:[^;]*;?/gi,"").trim();i.setAttribute("style",c||"")}}}applyRowspanHeights(t){const o=t.querySelectorAll("td, th");t.style.borderCollapse="collapse";for(const i of o){const a=i,d=parseInt(a.getAttribute("rowspan")||"1")*24,h=a.getAttribute("style")||"",p=h+(h?"; ":"")+`height: ${d}px`;a.setAttribute("style",p)}}fixRowspanCells(t){const n=t.querySelectorAll("tr");if(n.length<=1)return;const o=[],i=new Map;for(let a=0;a<n.length;a++){const d=n[a].querySelectorAll("td, th");if(d.length===0&&a<n.length-1){o.push(a);continue}for(const h of Array.from(d)){const p=parseInt(h.getAttribute("rowspan")||"1");if(p>1)for(let m=1;m<p;m++){const g=a+m;if(g>=n.length)break;i.has(g)||i.set(g,[]),i.get(g).push(h)}}}o.length>0&&this.processEmptyRows(o,n,i)}processEmptyRows(t,n,o){for(const i of t){const a=o.get(i);if(a)for(const c of a){const d=parseInt(c.getAttribute("rowspan")||"1");d>1&&c.setAttribute("rowspan",(d-1).toString())}}for(const i of t.reverse())n[i].remove()}}class ej extends nS{fixUnusuaDeletelTable(){}mergeCells(e){if(!this.table||!this.tableSelection)return;const t=this.tableSelection.selectedTds||[];if(t.length>1&&(e=t),!e||e.length<=1)return;const n=jn(e[0],Me.tableMain),o=n.getRows(),i=e.map(g=>{if(!g||!g.parent||!g.parent.domNode)return null;const v=g.parent.domNode;if(!v)return null;const w=o.findIndex(A=>A.rowId===g.rowId);if(w===-1)return null;const T=g.getColumnIndex();if(T===-1)return null;const _=v.getBoundingClientRect();return!_||_.width===0||_.height===0?null:{td:g,rowIndex:w,colIndex:T,rowspan:g.rowspan,colspan:g.colspan,visualLeft:_.left,visualRight:_.right,visualTop:_.top,visualBottom:_.bottom}}).filter(Boolean);if(i.length<=1)return;i.sort((g,v)=>g.visualTop-v.visualTop||g.visualLeft-v.visualLeft);const a=i[0],c=a.td,d=Math.max(...i.map(g=>g.rowIndex+g.rowspan-1)),h=Math.max(...i.map(g=>g.colIndex+g.colspan-1)),p=d-a.rowIndex+1,m=h-a.colIndex+1;for(const g of i)g.td!==c&&(g.td.moveChildren(c),g.td.parent.remove());c.rowspan=p,c.colspan=m,this.fixTableByRemove(n)}}Re.register({"modules/imageCompress":Dh,"modules/resize":iS,"modules/tableUp":ej,"modules/magicUrl":RP,"formats/divider":dv,"modules/clipboard":QF,"modules/copy":LF,"modules/toggleFullscreen":P2},!0);const Zd={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},tj={getCharLength:r=>Array.from(r).length,calculateTextSize:r=>{if(!r.ops||r.ops.length===0)return 0;let e=0;for(const t of r.ops)if(typeof t.insert=="string")e+=new TextEncoder().encode(t.insert).length-1;else if(typeof t.insert=="object"&&t.insert.image){const n=t.insert.image;n&&(e+=Zd.IMAGE_SIZES.get(n)||Math.ceil(n.length*Zd.QUALITY))}return e}},rj=r=>{const{type:e="Primary",editorRef:t,useValue:n,useError:o,placeholder:i,tabIndex:a,autoFocus:c,editorProps:d,style:h,minHeight:p,maxHeight:m,contentHeight:g,contentMaxHeight:v=1e3,toolbarSize:w="Med",toolbarType:T="Default",readOnly:_,limitPosition:A="Bottom",maxLength:R,size:D=100,editorClassName:I,editorStyle:B,noImageResize:F,...j}=r,[{wrapId:z,wrapProps:G,labelProps:pe,...P},U]=Zu(j),V=S.useMemo(()=>e==="ReadOnly"||_,[e,_]),Q=S.useMemo(()=>g?20:0,[g]),[se,ue]=S.useState(w==="Med"?40:50),oe=S.useMemo(()=>V?0:se,[V,se]),[ae,ge]=S.useMemo(()=>!o||V||A==="Top"?[0,0]:[20,6],[o,V,A]),re=S.useMemo(()=>ae+ge,[ae,ge]),[ie,he]=S.useState(g),[Se,Le]=S.useState(!1),[ne,ve]=S.useState(!1),ke=S.useRef(null),De=S.useRef(0),Oe=S.useRef(0),we=S.useMemo(()=>P.label?24:0,[P.label]),_e=S.useMemo(()=>T==="Title",[T]),Ae=S.useMemo(()=>g||p||_e,[g,p,_e]),$e=S.useMemo(()=>Ae?"fit-content":m?m+we:`calc(100% - ${we}px)`,[Ae,m,we]),Fe=S.useMemo(()=>{if(g){if(ie)switch(e){case"ReadOnly":return ie;case"Raw":return ie+re;default:return ie+oe+re}}else return},[g,ie,e,oe,re]),Qe=S.useMemo(()=>{if(!(!m||m<=oe+re))switch(e){case"ReadOnly":return m;case"Raw":return m-re;default:return m-oe-re}},[e,oe,re,m]),Ue=S.useMemo(()=>{if(p&&g){const Ve=Math.min(p-oe-re,g);return V?Ve:Ve+oe+re}else return p||(g?void 0:`calc(100% - ${we}px)`)},[p,g,we,oe,re,V]),et=S.useMemo(()=>(Array.isArray(P.errorMessage)?P.errorMessage.some(Boolean):!!P.errorMessage)?"Error":e,[P.errorMessage,e]),ct=S.useCallback(Ve=>{let at=Ve;at=N9.sanitize(Ve);const lt=document.createElement("div");return lt.innerHTML=at,new Re(lt,{readOnly:!0}).getContents()},[]),[Ct,It]=wn(n,""),[Je,Ke]=S.useState(()=>ct(Ct));S.useEffect(()=>{It===void 0&&Ke(ct(Ct))},[ct,It,Ct]);const ft=S.useMemo(()=>C.jsx(nj,{htmlDelta:Je,isReadonly:V,limit:D*Zd.KB,useError:o}),[Je,V,D,o]),gt=S.useRef(null),Pe=S.useRef([]),[Xe,vt]=S.useState(!0);S.useEffect(()=>{const Ve=setTimeout(()=>vt(!1),0);return()=>{clearTimeout(Ve),Pe.current.forEach(at=>at()),Pe.current=[]}},[]);const Nt=S.useCallback((Ve,at)=>{if(!g)return at;const lt=p?p-oe-re:g,_t=Math.max(lt,0),Ot=m?m-oe-re:v;return Math.min(Ot,Math.max(_t,at+Ve))},[g,p,oe,re,m,v]),xt=S.useCallback(Ve=>{if(!Se||!g)return;const at=Ve.clientY-Oe.current,lt=Nt(at,De.current);ie!==lt&&he(lt),Ve.preventDefault(),Ve.stopPropagation()},[Se,g,Nt,ie]),Lt=S.useCallback(Ve=>{Le(!1),ve(!1),document.removeEventListener("mousemove",xt),document.removeEventListener("mouseup",Lt),Ve.preventDefault(),Ve.stopPropagation()},[xt]),Qt=S.useCallback(Ve=>{if(!g)return;if(Ve.detail===2){he(g);return}ie===void 0?(he(g),De.current=g):De.current=ie,Le(!0),ve(!0),Oe.current=Ve.clientY;const at=_t=>{if(!g)return;const Ot=_t.clientY-Oe.current,Bt=Nt(Ot,De.current);he(Bt),_t.preventDefault(),_t.stopPropagation()},lt=_t=>{Le(!1),ve(!1),document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",lt),_t.preventDefault(),_t.stopPropagation()};document.addEventListener("mousemove",at),document.addEventListener("mouseup",lt),Ve.preventDefault(),Ve.stopPropagation()},[g,ie,Nt]),Ut=S.useCallback((Ve,at,lt,_t)=>{if(lt!=="user"&<!=="api")return;const Ot=_t.getContents(),Bt=_t.getLength()-1,Wt=R!==void 0&&Bt>R,Yt=ee=>ee.replace(/\s{2,}/g,be=>" ".repeat(be.length)),ir=Ve.replace(/<p><br><\/p>/gi,"").trim(),zt=Yt(ir);if(!Wt){Ke(Ot),It==null||It(zt);return}const xr=fr(Ot,R);Ke(xr);const jr=new Re(document.createElement("div"));jr.setContents(xr);const Ye=Yt(jr.root.innerHTML.replace(/<p><br><\/p>/gi,"").trim());It==null||It(Ye)},[R,It]),fr=(Ve,at)=>{var Ot,Bt,Wt;if(!Ve.ops)return Ve;const lt=new rr;let _t=0;for(const Yt of Ve.ops){if(_t>=at)break;if(Yt.insert&&typeof Yt.insert=="string"){const ir=Yt.insert,zt=at-_t;if(ir.length<=zt)(Ot=lt.ops)==null||Ot.push(Yt),_t+=ir.length;else{const xr={...Yt,insert:ir.substring(0,zt)};(Bt=lt.ops)==null||Bt.push(xr),_t+=zt;break}}else _t<at&&((Wt=lt.ops)==null||Wt.push(Yt),_t+=1)}return lt},hr=S.useCallback(Ve=>{var Ot,Bt;const at=Ve.getEditor().container;if(!at)return null;const lt=(Ot=at.closest(".AEditorContainer"))==null?void 0:Ot.querySelector(".ql-toolbar");return lt||((Bt=at.parentElement)==null?void 0:Bt.querySelector(".ql-toolbar"))||null},[]),cr=S.useCallback((Ve,at,lt,_t)=>{if(!Ve)return;const Ot=lt;Ve.addEventListener(at,Ot,_t),Pe.current.push(()=>Ve.removeEventListener(at,Ot,_t))},[]),Te=S.useCallback((Ve,at,lt)=>{const _t=at.getFormat();Ve.forEach(Ot=>{if(_t[Ot]){const Bt=_t[Ot],Wt=`.ql-${Ot}`,Yt=lt.querySelector(`${Wt} .ql-picker-label`),ir=lt.querySelectorAll(`${Wt} .ql-picker-item`),zt=Array.from(ir).find(xr=>xr.getAttribute("data-value")===Bt);zt&&(zt.classList.add("ql-selected"),Yt==null||Yt.classList.add("ql-active"))}})},[]),le=S.useCallback(Ve=>{if(!Ve.length)return;const _t=Ve[0].target.getBoundingClientRect(),Ot=Math.ceil(_t.height);ue(Bt=>Math.abs(Bt-Ot)<.1?Bt:Ot)},[]),st=S.useCallback((Ve,at)=>{if(Ve.key!=="Backspace")return;const lt=at.getSelection(!1);if(!lt||lt.length>0)return;const _t=lt.index;if(_t<=0)return;const[Ot]=at.getLine(_t);if(Ot&&_t===at.getIndex(Ot)||at.getFormat(_t,1).link)return;const Bt=at.getFormat(_t-1,1);if(Bt.link){Ve.preventDefault();let Wt=_t-1;for(;Wt>0&&at.getFormat(Wt-1,1).link===Bt.link;)Wt--;const[Yt]=at.scroll.descendant(ir=>{var zt;return((zt=ir==null?void 0:ir.statics)==null?void 0:zt.blotName)==="link"},Wt);if(Yt!=null&&Yt.domNode){const ir=(Yt.domNode.textContent||"").length;at.removeFormat(Wt,ir)}}},[]),yt=S.useCallback(()=>({clipboard:{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>!1],["blockquote",()=>!1],["hr",()=>!1]]},copy:{isTitleMode:!0},keyboard:{bindings:{enter:{key:"Enter",handler:()=>!1},newline:{key:"Enter",shiftKey:!0,handler:()=>!1},tab:{key:"Tab",handler:()=>!1},"remove-newline":{key:"Backspace",collapsed:!0,format:["blockquote","list","code-block"],offset:0,handler:function(Ve){const{blockquote:at,list:lt,["code-block"]:_t}=Ve.getFormat();return at||lt||_t?(Ve.format("blockquote",!1),Ve.format("list",!1),Ve.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),nt=S.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,toggleFullscreen:{type:et,maximize:Gd.renderToString(C.jsx(en,{icon:"Maximize",size:w==="Med"?"sm":"md"})),minimize:Gd.renderToString(C.jsx(en,{icon:"Minimize",size:w==="Med"?"sm":"md"}))},imageCompress:{quality:Zd.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:Ve=>{var at,lt;try{const _t=(at=Ve.clipboardData)==null?void 0:at.items;if(!_t)return!0;const Ot=Array.from(_t).some(Yt=>{const ir=Yt.type.toLowerCase();return ir.includes("Excel")||ir.includes("text/html")}),Bt=(lt=Ve.clipboardData)==null?void 0:lt.getData("text/html"),Wt=Bt&&(Bt.includes("<table")||Bt.includes("<tbody")||Bt.includes("<td"));return!(Ot||Wt)}catch(_t){return console.warn("Error in handleOnPaste:",_t),!0}},insertIntoEditor:(Ve,at,lt)=>{Zd.IMAGE_SIZES.has(Ve)||Zd.IMAGE_SIZES.set(Ve,at.size);const _t=lt.getSelection();_t&<.insertEmbed(_t.index,"image",Ve,Re.sources.USER)}},...!V&&{...!F&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:Gd.renderToString(C.jsx(en,{icon:"Table",size:w==="Med"?"sm":"md",strokeWidth:2.5})),resize:fF,resizeScale:hF,customSelect:xF,selection:gF,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:uF,tableMenuOptions:{localstorageKey:"used-color",tipText:!0,tools:[Jr.InsertCaption,Jr.InsertTop,Jr.InsertRight,Jr.InsertBottom,Jr.InsertLeft,Jr.Break,Jr.MergeCell,Jr.SplitCell,Jr.Break,Jr.DeleteRow,Jr.DeleteColumn,Jr.DeleteTable,Jr.Break,Jr.BackgroundColor,Jr.BorderColor,Jr.Break,Jr.CopyCell,Jr.CutCell,Jr.Break,Jr.SwitchWidth]}},texts:{fullCheckboxText:wr.AEditor["Insert Full Width Table"],customBtnText:wr.AEditor.Custom,confirmText:wr.AEditor.Confirm,cancelText:wr.AEditor.Cancel,rowText:wr.AEditor.Row,colText:wr.AEditor.Column,CopyCell:wr.AEditor["Copy Cell"],CutCell:wr.AEditor["Cut Cell"],notPositiveNumberError:wr.AEditor["Not Positive Number Error"],custom:wr.AEditor.Custom,clear:wr.AEditor.Clear,transparent:wr.AEditor.Transparent,perWidthInsufficient:wr.AEditor.perWidthInsufficient,InsertTop:wr.AEditor["Insert Row Top"],InsertRight:wr.AEditor["Insert Column Right"],InsertBottom:wr.AEditor["Insert Row Bottom"],InsertLeft:wr.AEditor["Insert Column Left"],MergeCell:wr.AEditor["Merge Cell"],SplitCell:wr.AEditor["Split Cell"],DeleteRow:wr.AEditor["Delete Row"],DeleteColumn:wr.AEditor["Delete Column"],DeleteTable:wr.AEditor["Delete Table"],BackgroundColor:wr.AEditor["Set Background Color"],BorderColor:wr.AEditor["Set Border Color"],SwitchWidth:wr.AEditor["Switch Table Width"],InsertCaption:wr.AEditor["Insert Table Caption"]}},toolbar:{container:[[{header:[1,2,3,!1,4]}],["bold","italic","underline","strike","blockquote","divider",{[nS.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const Ve=this.quill,at=Ve.getSelection(!0);if(!at)return;const lt=Math.min(at.index+1,Ve.getLength()-1);Ve.insertEmbed(lt,"divider",!0,Re.sources.USER),setTimeout(()=>Ve.setSelection(Math.min(lt+1,Ve.getLength()-1),0,Re.sources.SILENT),0)}}}}}),[V,F,w]),pt=S.useMemo(()=>_e?yt():nt(),[_e,yt,nt]),ht=S.useCallback(Ve=>{if(!Ve)return;const at=Ve.getEditor();if(!at)return;const lt=at.root,_t=hr(Ve);lt&&I&<.classList.add(...I.split(" ")),lt&&B&&Object.entries(B).forEach(([Bt,Wt])=>{const Yt=Bt.replace(/([A-Z])/g,ir=>`-${ir[0].toLowerCase()}`);lt.style[Yt]=Wt}),cr(lt,"keydown",Bt=>st(Bt,at));const Ot=new ResizeObserver(le);if(_t){Ot.observe(_t),Pe.current.push(()=>Ot.disconnect());const Bt=["header","color","background"];Bt.forEach(Wt=>{const Yt=_t.querySelector(`.ql-${Wt} .ql-picker-label`);Yt&&cr(Yt,"click",()=>Te(Bt,at,_t))})}},[hr,I,B,cr,le,st,Te]),Ft=S.useCallback(Ve=>{if(Pe.current.forEach(lt=>lt()),Pe.current=[],gt.current=Ve,!Ve){zc.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const at=Ve;at.copyContent=lt=>{Ve.getEditor().getModule("copy").copyContent(lt)},zc.isFunction(t)?t(at):t&&(t.current=at),ht(Ve)},[t,ht]);return C.jsx(Wc,{wrapId:z,...P,label:C.jsxs(Rn,{style:{gap:4},children:[P.label,A==="Top"&&ft]}),labelProps:{...pe,style:{minHeight:P.label?20:void 0,marginBottom:P.label?4:0,...pe==null?void 0:pe.style}},wrapProps:{...G,className:Ge.clsx(G==null?void 0:G.className,!Ae&&Li.AEditorWrapper),style:{...G==null?void 0:G.style,height:$e}},children:C.jsxs(Kr,{...U,className:Ge.clsx(U.className,Li.AEditorContainer,Xe&&"NoTransition"),style:{...h,height:Fe,minHeight:Ue},children:[C.jsx(Mg,{...d,ref:Ft,preserveWhitespace:!0,modules:pt,placeholder:i,readOnly:V,theme:"snow",value:Je,className:Ge.clsx(d==null?void 0:d.className,Li.AEditor,Li[et],_e&&"Title",Xe&&"NoTransition"),style:{...d==null?void 0:d.style,maxHeight:Qe?Qe+oe:void 0,"--icon-size":`${w==="Med"?20:24}px`,"--editor-padding":_e?"8px 12px":"12px","--toolbar-padding":`${w==="Med"?7.5:12.5}px`,"--content-height":_e?"fit-content":ie?`${ie}px`:"100%","--content-max-height":Qe?`${Qe}px`:"100%","--default-text":`'${wr.AEditor.Default}'`,"--visit-url-text":`'${wr.AEditor["Visit URL:"]}'`,"--enter-link-text":`'${wr.AEditor["Enter link:"]}'`,"--enter-video-text":`'${wr.AEditor["Enter video:"]}'`,"--edit-text":`'${wr.AEditor.Edit}'`,"--save-text":`'${wr.AEditor.Save}'`,"--remove-text":`'${wr.AEditor.Remove}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Gd.renderToString(C.jsx(en,{icon:"EditorArrow"})))}`,"--title-color-picker-row":_e?1:4,"--title-header-font-size":`${w==="Med"?12:14}px`},onChange:Ut}),g&&C.jsxs(C.Fragment,{children:[C.jsx("div",{ref:ke,className:Ge.clsx(Li.Resizer,Xe&&"NoTransition"),style:{height:Q,bottom:o&&!V?re:0},onMouseDown:Qt}),C.jsx("div",{children:`${Math.round(ie)}px`,className:Ge.clsx(Li.Indicator,"NoSelect","Label1",Xe&&"NoTransition"),style:{height:Q,bottom:o&&!V?re:0,display:ne?"flex":"none"}})]}),C.jsx("div",{children:ft,className:Ge.clsx(Li.LimitContainer,"NoSelect",Xe&&"NoTransition"),style:{marginTop:ge,minHeight:ae,display:A==="Bottom"?"flex":"none"}})]})})},nj=({htmlDelta:r,limit:e,useError:t,isReadonly:n})=>{const[o,i]=wn(t,!1),a=S.useMemo(()=>tj.calculateTextSize(r),[r]);return S.useEffect(()=>{i&&i(a>e)},[a,e,i]),!t||n?null:C.jsxs(el,{className:Li.Limit,children:["(",C.jsx("span",{className:Ge.clsx(o&&Li.Error),children:$u(a)})," / ",$u(e),")"]})};function oj(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return S.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const Pg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Cf(r){const e=Object.prototype.toString.call(r);return e==="[object Window]"||e==="[object global]"}function ty(r){return"nodeType"in r}function Ni(r){var e,t;return r?Cf(r)?r:ty(r)&&(e=(t=r.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function ry(r){const{Document:e}=Ni(r);return r instanceof e}function Uh(r){return Cf(r)?!1:r instanceof Ni(r).HTMLElement}function sS(r){return r instanceof Ni(r).SVGElement}function Sf(r){return r?Cf(r)?r.document:ty(r)?ry(r)?r:Uh(r)||sS(r)?r.ownerDocument:document:document:document}const ol=Pg?S.useLayoutEffect:S.useEffect;function ny(r){const e=S.useRef(r);return ol(()=>{e.current=r}),S.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}function ij(){const r=S.useRef(null),e=S.useCallback((n,o)=>{r.current=setInterval(n,o)},[]),t=S.useCallback(()=>{r.current!==null&&(clearInterval(r.current),r.current=null)},[]);return[e,t]}function Nh(r,e){e===void 0&&(e=[r]);const t=S.useRef(r);return ol(()=>{t.current!==r&&(t.current=r)},e),t}function Wh(r,e){const t=S.useRef();return S.useMemo(()=>{const n=r(t.current);return t.current=n,n},[...e])}function pg(r){const e=ny(r),t=S.useRef(null),n=S.useCallback(o=>{o!==t.current&&(e==null||e(o,t.current)),t.current=o},[]);return[t,n]}function hv(r){const e=S.useRef();return S.useEffect(()=>{e.current=r},[r]),e.current}let Fm={};function Vh(r,e){return S.useMemo(()=>{if(e)return e;const t=Fm[r]==null?0:Fm[r]+1;return Fm[r]=t,r+"-"+t},[r,e])}function aS(r){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return n.reduce((i,a)=>{const c=Object.entries(a);for(const[d,h]of c){const p=i[d];p!=null&&(i[d]=p+r*h)}return i},{...e})}}const of=aS(1),gg=aS(-1);function sj(r){return"clientX"in r&&"clientY"in r}function oy(r){if(!r)return!1;const{KeyboardEvent:e}=Ni(r.target);return e&&r instanceof e}function aj(r){if(!r)return!1;const{TouchEvent:e}=Ni(r.target);return e&&r instanceof e}function pv(r){if(aj(r)){if(r.touches&&r.touches.length){const{clientX:e,clientY:t}=r.touches[0];return{x:e,y:t}}else if(r.changedTouches&&r.changedTouches.length){const{clientX:e,clientY:t}=r.changedTouches[0];return{x:e,y:t}}}return sj(r)?{x:r.clientX,y:r.clientY}:null}const Ph=Object.freeze({Translate:{toString(r){if(!r)return;const{x:e,y:t}=r;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(r){if(!r)return;const{scaleX:e,scaleY:t}=r;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(r){if(r)return[Ph.Translate.toString(r),Ph.Scale.toString(r)].join(" ")}},Transition:{toString(r){let{property:e,duration:t,easing:n}=r;return e+" "+t+"ms "+n}}}),cx="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function lj(r){return r.matches(cx)?r:r.querySelector(cx)}const cj={display:"none"};function uj(r){let{id:e,value:t}=r;return S.createElement("div",{id:e,style:cj},t)}function dj(r){let{id:e,announcement:t,ariaLiveType:n="assertive"}=r;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return S.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},t)}function fj(){const[r,e]=S.useState("");return{announce:S.useCallback(n=>{n!=null&&e(n)},[]),announcement:r}}const lS=S.createContext(null);function hj(r){const e=S.useContext(lS);S.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(r)},[r,e])}function pj(){const[r]=S.useState(()=>new Set),e=S.useCallback(n=>(r.add(n),()=>r.delete(n)),[r]);return[S.useCallback(n=>{let{type:o,event:i}=n;r.forEach(a=>{var c;return(c=a[o])==null?void 0:c.call(a,i)})},[r]),e]}const gj={draggable:`
|
361
361
|
To pick up a draggable item, press the space bar.
|
362
362
|
While dragging, use the arrow keys to move the item.
|
363
363
|
Press space again to drop the item in its new position, or press escape to cancel.
|
364
|
-
`},mj={onDragStart(r){let{active:e}=r;return"Picked up draggable item "+e.id+"."},onDragOver(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(r){let{active:e}=r;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function vj(r){let{announcements:e=mj,container:t,hiddenTextDescribedById:n,screenReaderInstructions:o=gj}=r;const{announce:i,announcement:a}=fj(),c=Vh("DndLiveRegion"),[d,h]=S.useState(!1);if(S.useEffect(()=>{h(!0)},[]),hj(S.useMemo(()=>({onDragStart(m){let{active:g}=m;i(e.onDragStart({active:g}))},onDragMove(m){let{active:g,over:v}=m;e.onDragMove&&i(e.onDragMove({active:g,over:v}))},onDragOver(m){let{active:g,over:v}=m;i(e.onDragOver({active:g,over:v}))},onDragEnd(m){let{active:g,over:v}=m;i(e.onDragEnd({active:g,over:v}))},onDragCancel(m){let{active:g,over:v}=m;i(e.onDragCancel({active:g,over:v}))}}),[i,e])),!d)return null;const p=S.createElement(S.Fragment,null,S.createElement(uj,{id:n,value:o.draggable}),S.createElement(dj,{id:c,announcement:a}));return t?Ls.createPortal(p,t):p}var Co;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(Co||(Co={}));function mg(){}function ux(r,e){return S.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function yj(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return S.useMemo(()=>[...e].filter(n=>n!=null),[...e])}const va=Object.freeze({x:0,y:0});function bj(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function xj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return t-n}function wj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return n-t}function Cj(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function dx(r,e,t){return e===void 0&&(e=r.left),t===void 0&&(t=r.top),{x:e+r.width*.5,y:t+r.height*.5}}const Sj=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=dx(e,e.left,e.top),i=[];for(const a of n){const{id:c}=a,d=t.get(c);if(d){const h=bj(dx(d),o);i.push({id:c,data:{droppableContainer:a,value:h}})}}return i.sort(xj)};function _j(r,e){const t=Math.max(e.top,r.top),n=Math.max(e.left,r.left),o=Math.min(e.left+e.width,r.left+r.width),i=Math.min(e.top+e.height,r.top+r.height),a=o-n,c=i-t;if(n<o&&t<i){const d=e.width*e.height,h=r.width*r.height,p=a*c,m=p/(d+h-p);return Number(m.toFixed(4))}return 0}const Aj=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=[];for(const i of n){const{id:a}=i,c=t.get(a);if(c){const d=_j(c,e);d>0&&o.push({id:a,data:{droppableContainer:i,value:d}})}}return o.sort(wj)};function Ej(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function cS(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:va}function Tj(r){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,c)=>({...a,top:a.top+r*c.y,bottom:a.bottom+r*c.y,left:a.left+r*c.x,right:a.right+r*c.x}),{...t})}}const Rj=Tj(1);function kj(r){if(r.startsWith("matrix3d(")){const e=r.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(r.startsWith("matrix(")){const e=r.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Ij(r,e,t){const n=kj(e);if(!n)return r;const{scaleX:o,scaleY:i,x:a,y:c}=n,d=r.left-a-(1-o)*parseFloat(t),h=r.top-c-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),p=o?r.width/o:r.width,m=i?r.height/i:r.height;return{width:p,height:m,top:h,right:d+p,bottom:h+m,left:d}}const Mj={ignoreTransform:!1};function _f(r,e){e===void 0&&(e=Mj);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:h,transformOrigin:p}=Ni(r).getComputedStyle(r);h&&(t=Ij(t,h,p))}const{top:n,left:o,width:i,height:a,bottom:c,right:d}=t;return{top:n,left:o,width:i,height:a,bottom:c,right:d}}function fx(r){return _f(r,{ignoreTransform:!0})}function Lj(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Dj(r,e){return e===void 0&&(e=Ni(r).getComputedStyle(r)),e.position==="fixed"}function Oj(r,e){e===void 0&&(e=Ni(r).getComputedStyle(r));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=e[o];return typeof i=="string"?t.test(i):!1})}function iy(r,e){const t=[];function n(o){if(e!=null&&t.length>=e||!o)return t;if(ry(o)&&o.scrollingElement!=null&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!Uh(o)||sS(o)||t.includes(o))return t;const i=Ni(r).getComputedStyle(o);return o!==r&&Oj(o,i)&&t.push(o),Dj(o,i)?t:n(o.parentNode)}return r?n(r):t}function uS(r){const[e]=iy(r,1);return e??null}function jm(r){return!Pg||!r?null:Cf(r)?r:ty(r)?ry(r)||r===Sf(r).scrollingElement?window:Uh(r)?r:null:null}function dS(r){return Cf(r)?r.scrollX:r.scrollLeft}function fS(r){return Cf(r)?r.scrollY:r.scrollTop}function gv(r){return{x:dS(r),y:fS(r)}}var Mo;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Mo||(Mo={}));function hS(r){return!Pg||!r?!1:r===document.scrollingElement}function pS(r){const e={x:0,y:0},t=hS(r)?{height:window.innerHeight,width:window.innerWidth}:{height:r.clientHeight,width:r.clientWidth},n={x:r.scrollWidth-t.width,y:r.scrollHeight-t.height},o=r.scrollTop<=e.y,i=r.scrollLeft<=e.x,a=r.scrollTop>=n.y,c=r.scrollLeft>=n.x;return{isTop:o,isLeft:i,isBottom:a,isRight:c,maxScroll:n,minScroll:e}}const Nj={x:.2,y:.2};function Pj(r,e,t,n,o){let{top:i,left:a,right:c,bottom:d}=t;n===void 0&&(n=10),o===void 0&&(o=Nj);const{isTop:h,isBottom:p,isLeft:m,isRight:g}=pS(r),v={x:0,y:0},w={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!h&&i<=e.top+T.height?(v.y=Mo.Backward,w.y=n*Math.abs((e.top+T.height-i)/T.height)):!p&&d>=e.bottom-T.height&&(v.y=Mo.Forward,w.y=n*Math.abs((e.bottom-T.height-d)/T.height)),!g&&c>=e.right-T.width?(v.x=Mo.Forward,w.x=n*Math.abs((e.right-T.width-c)/T.width)):!m&&a<=e.left+T.width&&(v.x=Mo.Backward,w.x=n*Math.abs((e.left+T.width-a)/T.width)),{direction:v,speed:w}}function Bj(r){if(r===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:e,left:t,right:n,bottom:o}=r.getBoundingClientRect();return{top:e,left:t,right:n,bottom:o,width:r.clientWidth,height:r.clientHeight}}function gS(r){return r.reduce((e,t)=>of(e,gv(t)),va)}function Fj(r){return r.reduce((e,t)=>e+dS(t),0)}function jj(r){return r.reduce((e,t)=>e+fS(t),0)}function zj(r,e){if(e===void 0&&(e=_f),!r)return;const{top:t,left:n,bottom:o,right:i}=e(r);uS(r)&&(o<=0||i<=0||t>=window.innerHeight||n>=window.innerWidth)&&r.scrollIntoView({block:"center",inline:"center"})}const Hj=[["x",["left","right"],Fj],["y",["top","bottom"],jj]];class sy{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=iy(t),o=gS(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,a,c]of Hj)for(const d of a)Object.defineProperty(this,d,{get:()=>{const h=c(n),p=o[i]-h;return this.rect[d]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class mh{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...t)})},this.target=e}add(e,t,n){var o;(o=this.target)==null||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function $j(r){const{EventTarget:e}=Ni(r);return r instanceof e?r:Sf(r)}function zm(r,e){const t=Math.abs(r.x),n=Math.abs(r.y);return typeof e=="number"?Math.sqrt(t**2+n**2)>e:"x"in e&&"y"in e?t>e.x&&n>e.y:"x"in e?t>e.x:"y"in e?n>e.y:!1}var Rs;(function(r){r.Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange"})(Rs||(Rs={}));function hx(r){r.preventDefault()}function qj(r){r.stopPropagation()}var un;(function(r){r.Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab"})(un||(un={}));const mS={start:[un.Space,un.Enter],cancel:[un.Esc],end:[un.Space,un.Enter,un.Tab]},Uj=(r,e)=>{let{currentCoordinates:t}=e;switch(r.code){case un.Right:return{...t,x:t.x+25};case un.Left:return{...t,x:t.x-25};case un.Down:return{...t,y:t.y+25};case un.Up:return{...t,y:t.y-25}}};class ay{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new mh(Sf(t)),this.windowListeners=new mh(Ni(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Rs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&zj(n),t(va)}handleKeyDown(e){if(oy(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=mS,coordinateGetter:a=Uj,scrollBehavior:c="smooth"}=o,{code:d}=e;if(i.end.includes(d)){this.handleEnd(e);return}if(i.cancel.includes(d)){this.handleCancel(e);return}const{collisionRect:h}=n.current,p=h?{x:h.left,y:h.top}:va;this.referenceCoordinates||(this.referenceCoordinates=p);const m=a(e,{active:t,context:n.current,currentCoordinates:p});if(m){const g=gg(m,p),v={x:0,y:0},{scrollableAncestors:w}=n.current;for(const T of w){const _=e.code,{isTop:A,isRight:R,isLeft:D,isBottom:I,maxScroll:B,minScroll:F}=pS(T),j=Bj(T),z={x:Math.min(_===un.Right?j.right-j.width/2:j.right,Math.max(_===un.Right?j.left:j.left+j.width/2,m.x)),y:Math.min(_===un.Down?j.bottom-j.height/2:j.bottom,Math.max(_===un.Down?j.top:j.top+j.height/2,m.y))},G=_===un.Right&&!R||_===un.Left&&!D,pe=_===un.Down&&!I||_===un.Up&&!A;if(G&&z.x!==m.x){const P=T.scrollLeft+g.x,U=_===un.Right&&P<=B.x||_===un.Left&&P>=F.x;if(U&&!g.y){T.scrollTo({left:P,behavior:c});return}U?v.x=T.scrollLeft-P:v.x=_===un.Right?T.scrollLeft-B.x:T.scrollLeft-F.x,v.x&&T.scrollBy({left:-v.x,behavior:c});break}else if(pe&&z.y!==m.y){const P=T.scrollTop+g.y,U=_===un.Down&&P<=B.y||_===un.Up&&P>=F.y;if(U&&!g.x){T.scrollTo({top:P,behavior:c});return}U?v.y=T.scrollTop-P:v.y=_===un.Down?T.scrollTop-B.y:T.scrollTop-F.y,v.y&&T.scrollBy({top:-v.y,behavior:c});break}}this.handleMove(e,of(gg(m,this.referenceCoordinates),v))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ay.activators=[{eventName:"onKeyDown",handler:(r,e,t)=>{let{keyboardCodes:n=mS,onActivation:o}=e,{active:i}=t;const{code:a}=r.nativeEvent;if(n.start.includes(a)){const c=i.activatorNode.current;return c&&r.target!==c?!1:(r.preventDefault(),o==null||o({event:r.nativeEvent}),!0)}return!1}}];function px(r){return!!(r&&"distance"in r)}function gx(r){return!!(r&&"delay"in r)}class ly{constructor(e,t,n){var o;n===void 0&&(n=$j(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=Sf(a),this.documentListeners=new mh(this.document),this.listeners=new mh(n),this.windowListeners=new mh(Ni(a)),this.initialCoordinates=(o=pv(i))!=null?o:va,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.DragStart,hx),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),this.windowListeners.add(Rs.ContextMenu,hx),this.documentListeners.add(Rs.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gx(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(px(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Rs.Click,qj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Rs.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:c}}=i;if(!o)return;const d=(t=pv(e))!=null?t:va,h=gg(o,d);if(!n&&c){if(px(c)){if(c.tolerance!=null&&zm(h,c.tolerance))return this.handleCancel();if(zm(h,c.distance))return this.handleStart()}if(gx(c)&&zm(h,c.tolerance))return this.handleCancel();this.handlePending(c,h);return}e.cancelable&&e.preventDefault(),a(d)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===un.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const Wj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class cy extends ly{constructor(e){const{event:t}=e,n=Sf(t.target);super(e,Wj,n)}}cy.activators=[{eventName:"onPointerDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return!t.isPrimary||t.button!==0?!1:(n==null||n({event:t}),!0)}}];const Vj={move:{name:"mousemove"},end:{name:"mouseup"}};var mv;(function(r){r[r.RightClick=2]="RightClick"})(mv||(mv={}));class Gj extends ly{constructor(e){super(e,Vj,Sf(e.event.target))}}Gj.activators=[{eventName:"onMouseDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return t.button===mv.RightClick?!1:(n==null||n({event:t}),!0)}}];const Hm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Yj extends ly{constructor(e){super(e,Hm)}static setup(){return window.addEventListener(Hm.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Hm.move.name,e)};function e(){}}}Yj.activators=[{eventName:"onTouchStart",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;const{touches:o}=t;return o.length>1?!1:(n==null||n({event:t}),!0)}}];var vh;(function(r){r[r.Pointer=0]="Pointer",r[r.DraggableRect=1]="DraggableRect"})(vh||(vh={}));var vg;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(vg||(vg={}));function Zj(r){let{acceleration:e,activator:t=vh.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:c=vg.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:p,delta:m,threshold:g}=r;const v=Xj({delta:m,disabled:!i}),[w,T]=ij(),_=S.useRef({x:0,y:0}),A=S.useRef({x:0,y:0}),R=S.useMemo(()=>{switch(t){case vh.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case vh.DraggableRect:return o}},[t,o,d]),D=S.useRef(null),I=S.useCallback(()=>{const F=D.current;if(!F)return;const j=_.current.x*A.current.x,z=_.current.y*A.current.y;F.scrollBy(j,z)},[]),B=S.useMemo(()=>c===vg.TreeOrder?[...h].reverse():h,[c,h]);S.useEffect(()=>{if(!i||!h.length||!R){T();return}for(const F of B){if((n==null?void 0:n(F))===!1)continue;const j=h.indexOf(F),z=p[j];if(!z)continue;const{direction:G,speed:pe}=Pj(F,z,R,e,g);for(const P of["x","y"])v[P][G[P]]||(pe[P]=0,G[P]=0);if(pe.x>0||pe.y>0){T(),D.current=F,w(I,a),_.current=pe,A.current=G;return}}_.current={x:0,y:0},A.current={x:0,y:0},T()},[e,I,n,T,i,a,JSON.stringify(R),JSON.stringify(v),w,h,B,p,JSON.stringify(g)])}const Kj={x:{[Mo.Backward]:!1,[Mo.Forward]:!1},y:{[Mo.Backward]:!1,[Mo.Forward]:!1}};function Xj(r){let{delta:e,disabled:t}=r;const n=hv(e);return Wh(o=>{if(t||!n||!o)return Kj;const i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[Mo.Backward]:o.x[Mo.Backward]||i.x===-1,[Mo.Forward]:o.x[Mo.Forward]||i.x===1},y:{[Mo.Backward]:o.y[Mo.Backward]||i.y===-1,[Mo.Forward]:o.y[Mo.Forward]||i.y===1}}},[t,e,n])}function Jj(r,e){const t=e!=null?r.get(e):void 0,n=t?t.node.current:null;return Wh(o=>{var i;return e==null?null:(i=n??o)!=null?i:null},[n,e])}function Qj(r,e){return S.useMemo(()=>r.reduce((t,n)=>{const{sensor:o}=n,i=o.activators.map(a=>({eventName:a.eventName,handler:e(a.handler,n)}));return[...t,...i]},[]),[r,e])}var vf;(function(r){r[r.Always=0]="Always",r[r.BeforeDragging=1]="BeforeDragging",r[r.WhileDragging=2]="WhileDragging"})(vf||(vf={}));var vv;(function(r){r.Optimized="optimized"})(vv||(vv={}));const mx=new Map;function ez(r,e){let{dragging:t,dependencies:n,config:o}=e;const[i,a]=S.useState(null),{frequency:c,measure:d,strategy:h}=o,p=S.useRef(r),m=_(),g=Nh(m),v=S.useCallback(function(A){A===void 0&&(A=[]),!g.current&&a(R=>R===null?A:R.concat(A.filter(D=>!R.includes(D))))},[g]),w=S.useRef(null),T=Wh(A=>{if(m&&!t)return mx;if(!A||A===mx||p.current!==r||i!=null){const R=new Map;for(let D of r){if(!D)continue;if(i&&i.length>0&&!i.includes(D.id)&&D.rect.current){R.set(D.id,D.rect.current);continue}const I=D.node.current,B=I?new sy(d(I),I):null;D.rect.current=B,B&&R.set(D.id,B)}return R}return A},[r,i,t,m,d]);return S.useEffect(()=>{p.current=r},[r]),S.useEffect(()=>{m||v()},[t,m]),S.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),S.useEffect(()=>{m||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{v(),w.current=null},c))},[c,m,v,...n]),{droppableRects:T,measureDroppableContainers:v,measuringScheduled:i!=null};function _(){switch(h){case vf.Always:return!1;case vf.BeforeDragging:return t;default:return!t}}}function vS(r,e){return Wh(t=>r?t||(typeof e=="function"?e(r):r):null,[e,r])}function tz(r,e){return vS(r,e)}function rz(r){let{callback:e,disabled:t}=r;const n=ny(e),o=S.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,t]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Bg(r){let{callback:e,disabled:t}=r;const n=ny(e),o=S.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[t]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function nz(r){return new sy(_f(r),r)}function vx(r,e,t){e===void 0&&(e=nz);const[n,o]=S.useState(null);function i(){o(d=>{if(!r)return null;if(r.isConnected===!1){var h;return(h=d??t)!=null?h:null}const p=e(r);return JSON.stringify(d)===JSON.stringify(p)?d:p})}const a=rz({callback(d){if(r)for(const h of d){const{type:p,target:m}=h;if(p==="childList"&&m instanceof HTMLElement&&m.contains(r)){i();break}}}}),c=Bg({callback:i});return ol(()=>{i(),r?(c==null||c.observe(r),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),a==null||a.disconnect())},[r]),n}function oz(r){const e=vS(r);return cS(r,e)}const yx=[];function iz(r){const e=S.useRef(r),t=Wh(n=>r?n&&n!==yx&&r&&e.current&&r.parentNode===e.current.parentNode?n:iy(r):yx,[r]);return S.useEffect(()=>{e.current=r},[r]),t}function sz(r){const[e,t]=S.useState(null),n=S.useRef(r),o=S.useCallback(i=>{const a=jm(i.target);a&&t(c=>c?(c.set(a,gv(a)),new Map(c)):null)},[]);return S.useEffect(()=>{const i=n.current;if(r!==i){a(i);const c=r.map(d=>{const h=jm(d);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,gv(h)]):null}).filter(d=>d!=null);t(c.length?new Map(c):null),n.current=r}return()=>{a(r),a(i)};function a(c){c.forEach(d=>{const h=jm(d);h==null||h.removeEventListener("scroll",o)})}},[o,r]),S.useMemo(()=>r.length?e?Array.from(e.values()).reduce((i,a)=>of(i,a),va):gS(r):va,[r,e])}function bx(r,e){e===void 0&&(e=[]);const t=S.useRef(null);return S.useEffect(()=>{t.current=null},e),S.useEffect(()=>{const n=r!==va;n&&!t.current&&(t.current=r),!n&&t.current&&(t.current=null)},[r]),t.current?gg(r,t.current):va}function az(r){S.useEffect(()=>{if(!Pg)return;const e=r.map(t=>{let{sensor:n}=t;return n.setup==null?void 0:n.setup()});return()=>{for(const t of e)t==null||t()}},r.map(e=>{let{sensor:t}=e;return t}))}function lz(r,e){return S.useMemo(()=>r.reduce((t,n)=>{let{eventName:o,handler:i}=n;return t[o]=a=>{i(a,e)},t},{}),[r,e])}function yS(r){return S.useMemo(()=>r?Lj(r):null,[r])}const xx=[];function cz(r,e){e===void 0&&(e=_f);const[t]=r,n=yS(t?Ni(t):null),[o,i]=S.useState(xx);function a(){i(()=>r.length?r.map(d=>hS(d)?n:new sy(e(d),d)):xx)}const c=Bg({callback:a});return ol(()=>{c==null||c.disconnect(),a(),r.forEach(d=>c==null?void 0:c.observe(d))},[r]),o}function uz(r){if(!r)return null;if(r.children.length>1)return r;const e=r.children[0];return Uh(e)?e:r}function dz(r){let{measure:e}=r;const[t,n]=S.useState(null),o=S.useCallback(h=>{for(const{target:p}of h)if(Uh(p)){n(m=>{const g=e(p);return m?{...m,width:g.width,height:g.height}:g});break}},[e]),i=Bg({callback:o}),a=S.useCallback(h=>{const p=uz(h);i==null||i.disconnect(),p&&(i==null||i.observe(p)),n(p?e(p):null)},[e,i]),[c,d]=pg(a);return S.useMemo(()=>({nodeRef:c,rect:t,setRef:d}),[t,c,d])}const fz=[{sensor:cy,options:{}},{sensor:ay,options:{}}],hz={current:{}},Zp={draggable:{measure:fx},droppable:{measure:fx,strategy:vf.WhileDragging,frequency:vv.Optimized},dragOverlay:{measure:_f}};class yh extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return(t=(n=this.get(e))==null?void 0:n.node.current)!=null?t:void 0}}const pz={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new yh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:mg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zp,measureDroppableContainers:mg,windowRect:null,measuringScheduled:!1},gz={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:mg,draggableNodes:new Map,over:null,measureDroppableContainers:mg},Fg=S.createContext(gz),bS=S.createContext(pz);function mz(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yh}}}function vz(r,e){switch(e.type){case Co.DragStart:return{...r,draggable:{...r.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Co.DragMove:return r.draggable.active==null?r:{...r,draggable:{...r.draggable,translate:{x:e.coordinates.x-r.draggable.initialCoordinates.x,y:e.coordinates.y-r.draggable.initialCoordinates.y}}};case Co.DragEnd:case Co.DragCancel:return{...r,draggable:{...r.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Co.RegisterDroppable:{const{element:t}=e,{id:n}=t,o=new yh(r.droppable.containers);return o.set(n,t),{...r,droppable:{...r.droppable,containers:o}}}case Co.SetDroppableDisabled:{const{id:t,key:n,disabled:o}=e,i=r.droppable.containers.get(t);if(!i||n!==i.key)return r;const a=new yh(r.droppable.containers);return a.set(t,{...i,disabled:o}),{...r,droppable:{...r.droppable,containers:a}}}case Co.UnregisterDroppable:{const{id:t,key:n}=e,o=r.droppable.containers.get(t);if(!o||n!==o.key)return r;const i=new yh(r.droppable.containers);return i.delete(t),{...r,droppable:{...r.droppable,containers:i}}}default:return r}}function yz(r){let{disabled:e}=r;const{active:t,activatorEvent:n,draggableNodes:o}=S.useContext(Fg),i=hv(n),a=hv(t==null?void 0:t.id);return S.useEffect(()=>{if(!e&&!n&&i&&a!=null){if(!oy(i)||document.activeElement===i.target)return;const c=o.get(a);if(!c)return;const{activatorNode:d,node:h}=c;if(!d.current&&!h.current)return;requestAnimationFrame(()=>{for(const p of[d.current,h.current]){if(!p)continue;const m=lj(p);if(m){m.focus();break}}})}},[n,e,o,a,i]),null}function bz(r,e){let{transform:t,...n}=e;return r!=null&&r.length?r.reduce((o,i)=>i({transform:o,...n}),t):t}function xz(r){return S.useMemo(()=>({draggable:{...Zp.draggable,...r==null?void 0:r.draggable},droppable:{...Zp.droppable,...r==null?void 0:r.droppable},dragOverlay:{...Zp.dragOverlay,...r==null?void 0:r.dragOverlay}}),[r==null?void 0:r.draggable,r==null?void 0:r.droppable,r==null?void 0:r.dragOverlay])}function wz(r){let{activeNode:e,measure:t,initialRect:n,config:o=!0}=r;const i=S.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;ol(()=>{if(!a&&!c||!e){i.current=!1;return}if(i.current||!n)return;const h=e==null?void 0:e.node.current;if(!h||h.isConnected===!1)return;const p=t(h),m=cS(p,n);if(a||(m.x=0),c||(m.y=0),i.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const g=uS(h);g&&g.scrollBy({top:m.y,left:m.x})}},[e,a,c,n,t])}const xS=S.createContext({...va,scaleX:1,scaleY:1});var Oc;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Oc||(Oc={}));const Cz=S.memo(function(e){var t,n,o,i;let{id:a,accessibility:c,autoScroll:d=!0,children:h,sensors:p=fz,collisionDetection:m=Aj,measuring:g,modifiers:v,...w}=e;const T=S.useReducer(vz,void 0,mz),[_,A]=T,[R,D]=pj(),[I,B]=S.useState(Oc.Uninitialized),F=I===Oc.Initialized,{draggable:{active:j,nodes:z,translate:G},droppable:{containers:pe}}=_,P=j!=null?z.get(j):null,U=S.useRef({initial:null,translated:null}),V=S.useMemo(()=>{var ht;return j!=null?{id:j,data:(ht=P==null?void 0:P.data)!=null?ht:hz,rect:U}:null},[j,P]),Q=S.useRef(null),[se,ue]=S.useState(null),[oe,ae]=S.useState(null),ge=Nh(w,Object.values(w)),re=Vh("DndDescribedBy",a),ie=S.useMemo(()=>pe.getEnabled(),[pe]),he=xz(g),{droppableRects:Se,measureDroppableContainers:Le,measuringScheduled:ne}=ez(ie,{dragging:F,dependencies:[G.x,G.y],config:he.droppable}),ve=Jj(z,j),ke=S.useMemo(()=>oe?pv(oe):null,[oe]),Pe=pt(),De=tz(ve,he.draggable.measure);wz({activeNode:j!=null?z.get(j):null,config:Pe.layoutShiftCompensation,initialRect:De,measure:he.draggable.measure});const we=vx(ve,he.draggable.measure,De),_e=vx(ve?ve.parentElement:null),Ae=S.useRef({activatorEvent:null,active:null,activeNode:ve,collisionRect:null,collisions:null,droppableRects:Se,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:pe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=pe.getNodeFor((t=Ae.current.over)==null?void 0:t.id),Fe=dz({measure:he.dragOverlay.measure}),Qe=(n=Fe.nodeRef.current)!=null?n:ve,Ue=F?(o=Fe.rect)!=null?o:we:null,et=!!(Fe.nodeRef.current&&Fe.rect),ct=oz(et?null:we),Ct=yS(Qe?Ni(Qe):null),It=iz(F?$e??ve:null),Je=cz(It),Ke=bz(v,{transform:{x:G.x-ct.x,y:G.y-ct.y,scaleX:1,scaleY:1},activatorEvent:oe,active:V,activeNodeRect:we,containerNodeRect:_e,draggingNodeRect:Ue,over:Ae.current.over,overlayNodeRect:Fe.rect,scrollableAncestors:It,scrollableAncestorRects:Je,windowRect:Ct}),ft=ke?of(ke,G):null,gt=sz(It),Ne=bx(gt),Xe=bx(gt,[we]),vt=of(Ke,Ne),Nt=Ue?Rj(Ue,Ke):null,xt=V&&Nt?m({active:V,collisionRect:Nt,droppableRects:Se,droppableContainers:ie,pointerCoordinates:ft}):null,Lt=Cj(xt,"id"),[Qt,Ut]=S.useState(null),fr=et?Ke:of(Ke,Xe),hr=Ej(fr,(i=Qt==null?void 0:Qt.rect)!=null?i:null,we),cr=S.useRef(null),Te=S.useCallback((ht,Ft)=>{let{sensor:Ve,options:at}=Ft;if(Q.current==null)return;const lt=z.get(Q.current);if(!lt)return;const _t=ht.nativeEvent,Ot=new Ve({active:Q.current,activeNode:lt,event:_t,options:at,context:Ae,onAbort(Wt){if(!z.get(Wt))return;const{onDragAbort:ir}=ge.current,zt={id:Wt};ir==null||ir(zt),R({type:"onDragAbort",event:zt})},onPending(Wt,Yt,ir,zt){if(!z.get(Wt))return;const{onDragPending:jr}=ge.current,Ye={id:Wt,constraint:Yt,initialCoordinates:ir,offset:zt};jr==null||jr(Ye),R({type:"onDragPending",event:Ye})},onStart(Wt){const Yt=Q.current;if(Yt==null)return;const ir=z.get(Yt);if(!ir)return;const{onDragStart:zt}=ge.current,xr={activatorEvent:_t,active:{id:Yt,data:ir.data,rect:U}};Ls.unstable_batchedUpdates(()=>{zt==null||zt(xr),B(Oc.Initializing),A({type:Co.DragStart,initialCoordinates:Wt,active:Yt}),R({type:"onDragStart",event:xr}),ue(cr.current),ae(_t)})},onMove(Wt){A({type:Co.DragMove,coordinates:Wt})},onEnd:Bt(Co.DragEnd),onCancel:Bt(Co.DragCancel)});cr.current=Ot;function Bt(Wt){return async function(){const{active:ir,collisions:zt,over:xr,scrollAdjustedTranslate:jr}=Ae.current;let Ye=null;if(ir&&jr){const{cancelDrop:ee}=ge.current;Ye={activatorEvent:_t,active:ir,collisions:zt,delta:jr,over:xr},Wt===Co.DragEnd&&typeof ee=="function"&&await Promise.resolve(ee(Ye))&&(Wt=Co.DragCancel)}Q.current=null,Ls.unstable_batchedUpdates(()=>{A({type:Wt}),B(Oc.Uninitialized),Ut(null),ue(null),ae(null),cr.current=null;const ee=Wt===Co.DragEnd?"onDragEnd":"onDragCancel";if(Ye){const be=ge.current[ee];be==null||be(Ye),R({type:ee,event:Ye})}})}}},[z]),le=S.useCallback((ht,Ft)=>(Ve,at)=>{const lt=Ve.nativeEvent,_t=z.get(at);if(Q.current!==null||!_t||lt.dndKit||lt.defaultPrevented)return;const Ot={active:_t};ht(Ve,Ft.options,Ot)===!0&&(lt.dndKit={capturedBy:Ft.sensor},Q.current=at,Te(Ve,Ft))},[z,Te]),st=Qj(p,le);az(p),ol(()=>{we&&I===Oc.Initializing&&B(Oc.Initialized)},[we,I]),S.useEffect(()=>{const{onDragMove:ht}=ge.current,{active:Ft,activatorEvent:Ve,collisions:at,over:lt}=Ae.current;if(!Ft||!Ve)return;const _t={active:Ft,activatorEvent:Ve,collisions:at,delta:{x:vt.x,y:vt.y},over:lt};Ls.unstable_batchedUpdates(()=>{ht==null||ht(_t),R({type:"onDragMove",event:_t})})},[vt.x,vt.y]),S.useEffect(()=>{const{active:ht,activatorEvent:Ft,collisions:Ve,droppableContainers:at,scrollAdjustedTranslate:lt}=Ae.current;if(!ht||Q.current==null||!Ft||!lt)return;const{onDragOver:_t}=ge.current,Ot=at.get(Lt),Bt=Ot&&Ot.rect.current?{id:Ot.id,rect:Ot.rect.current,data:Ot.data,disabled:Ot.disabled}:null,Wt={active:ht,activatorEvent:Ft,collisions:Ve,delta:{x:lt.x,y:lt.y},over:Bt};Ls.unstable_batchedUpdates(()=>{Ut(Bt),_t==null||_t(Wt),R({type:"onDragOver",event:Wt})})},[Lt]),ol(()=>{Ae.current={activatorEvent:oe,active:V,activeNode:ve,collisionRect:Nt,collisions:xt,droppableRects:Se,draggableNodes:z,draggingNode:Qe,draggingNodeRect:Ue,droppableContainers:pe,over:Qt,scrollableAncestors:It,scrollAdjustedTranslate:vt},U.current={initial:Ue,translated:Nt}},[V,ve,xt,Nt,z,Qe,Ue,Se,pe,Qt,It,vt]),Zj({...Pe,delta:G,draggingRect:Nt,pointerCoordinates:ft,scrollableAncestors:It,scrollableAncestorRects:Je});const yt=S.useMemo(()=>({active:V,activeNode:ve,activeNodeRect:we,activatorEvent:oe,collisions:xt,containerNodeRect:_e,dragOverlay:Fe,draggableNodes:z,droppableContainers:pe,droppableRects:Se,over:Qt,measureDroppableContainers:Le,scrollableAncestors:It,scrollableAncestorRects:Je,measuringConfiguration:he,measuringScheduled:ne,windowRect:Ct}),[V,ve,we,oe,xt,_e,Fe,z,pe,Se,Qt,Le,It,Je,he,ne,Ct]),nt=S.useMemo(()=>({activatorEvent:oe,activators:st,active:V,activeNodeRect:we,ariaDescribedById:{draggable:re},dispatch:A,draggableNodes:z,over:Qt,measureDroppableContainers:Le}),[oe,st,V,we,A,re,z,Qt,Le]);return S.createElement(lS.Provider,{value:D},S.createElement(Fg.Provider,{value:nt},S.createElement(bS.Provider,{value:yt},S.createElement(xS.Provider,{value:hr},h)),S.createElement(yz,{disabled:(c==null?void 0:c.restoreFocus)===!1})),S.createElement(vj,{...c,hiddenTextDescribedById:re}));function pt(){const ht=(se==null?void 0:se.autoScrollEnabled)===!1,Ft=typeof d=="object"?d.enabled===!1:d===!1,Ve=F&&!ht&&!Ft;return typeof d=="object"?{...d,enabled:Ve}:{enabled:Ve}}}),Sz=S.createContext(null),wx="button",_z="Draggable";function Az(r){let{id:e,data:t,disabled:n=!1,attributes:o}=r;const i=Vh(_z),{activators:a,activatorEvent:c,active:d,activeNodeRect:h,ariaDescribedById:p,draggableNodes:m,over:g}=S.useContext(Fg),{role:v=wx,roleDescription:w="draggable",tabIndex:T=0}=o??{},_=(d==null?void 0:d.id)===e,A=S.useContext(_?xS:Sz),[R,D]=pg(),[I,B]=pg(),F=lz(a,e),j=Nh(t);ol(()=>(m.set(e,{id:e,key:i,node:R,activatorNode:I,data:j}),()=>{const G=m.get(e);G&&G.key===i&&m.delete(e)}),[m,e]);const z=S.useMemo(()=>({role:v,tabIndex:T,"aria-disabled":n,"aria-pressed":_&&v===wx?!0:void 0,"aria-roledescription":w,"aria-describedby":p.draggable}),[n,v,T,_,w,p.draggable]);return{active:d,activatorEvent:c,activeNodeRect:h,attributes:z,isDragging:_,listeners:n?void 0:F,node:R,over:g,setNodeRef:D,setActivatorNodeRef:B,transform:A}}function Ez(){return S.useContext(bS)}const Tz="Droppable",Rz={timeout:25};function kz(r){let{data:e,disabled:t=!1,id:n,resizeObserverConfig:o}=r;const i=Vh(Tz),{active:a,dispatch:c,over:d,measureDroppableContainers:h}=S.useContext(Fg),p=S.useRef({disabled:t}),m=S.useRef(!1),g=S.useRef(null),v=S.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:_}={...Rz,...o},A=Nh(T??n),R=S.useCallback(()=>{if(!m.current){m.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{h(Array.isArray(A.current)?A.current:[A.current]),v.current=null},_)},[_]),D=Bg({callback:R,disabled:w||!a}),I=S.useCallback((z,G)=>{D&&(G&&(D.unobserve(G),m.current=!1),z&&D.observe(z))},[D]),[B,F]=pg(I),j=Nh(e);return S.useEffect(()=>{!D||!B.current||(D.disconnect(),m.current=!1,D.observe(B.current))},[B,D]),S.useEffect(()=>(c({type:Co.RegisterDroppable,element:{id:n,key:i,disabled:t,node:B,rect:g,data:j}}),()=>c({type:Co.UnregisterDroppable,key:i,id:n})),[n]),S.useEffect(()=>{t!==p.current.disabled&&(c({type:Co.SetDroppableDisabled,id:n,key:i,disabled:t}),p.current.disabled=t)},[n,i,t,c]),{active:a,rect:g,isOver:(d==null?void 0:d.id)===n,node:B,over:d,setNodeRef:F}}function wS(r,e,t){const n={...r};return e.top+r.y<=t.top?n.y=t.top-e.top:e.bottom+r.y>=t.top+t.height&&(n.y=t.top+t.height-e.bottom),e.left+r.x<=t.left?n.x=t.left-e.left:e.right+r.x>=t.left+t.width&&(n.x=t.left+t.width-e.right),n}const Iz=r=>{let{containerNodeRect:e,draggingNodeRect:t,transform:n}=r;return!t||!e?n:wS(n,t,e)},Mz=r=>{let{transform:e,draggingNodeRect:t,windowRect:n}=r;return!t||!n?e:wS(e,t,n)};function yg(r,e,t){const n=r.slice();return n.splice(t<0?n.length+t:t,0,n.splice(e,1)[0]),n}function Lz(r,e){return r.reduce((t,n,o)=>{const i=e.get(n);return i&&(t[o]=i),t},Array(r.length))}function Np(r){return r!==null&&r>=0}function Dz(r,e){if(r===e)return!0;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function Oz(r){return typeof r=="boolean"?{draggable:r,droppable:r}:r}const CS=r=>{let{rects:e,activeIndex:t,overIndex:n,index:o}=r;const i=yg(e,n,t),a=e[o],c=i[o];return!c||!a?null:{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}},Pp={scaleX:1,scaleY:1},Nz=r=>{var e;let{activeIndex:t,activeNodeRect:n,index:o,rects:i,overIndex:a}=r;const c=(e=i[t])!=null?e:n;if(!c)return null;if(o===t){const h=i[a];return h?{x:0,y:t<a?h.top+h.height-(c.top+c.height):h.top-c.top,...Pp}:null}const d=Pz(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-d,...Pp}:o<t&&o>=a?{x:0,y:c.height+d,...Pp}:{x:0,y:0,...Pp}};function Pz(r,e,t){const n=r[e],o=r[e-1],i=r[e+1];return n?t<e?o?n.top-(o.top+o.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):o?n.top-(o.top+o.height):0:0}const SS="Sortable",_S=S.createContext({activeIndex:-1,containerId:SS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:CS,disabled:{draggable:!1,droppable:!1}});function Bz(r){let{children:e,id:t,items:n,strategy:o=CS,disabled:i=!1}=r;const{active:a,dragOverlay:c,droppableRects:d,over:h,measureDroppableContainers:p}=Ez(),m=Vh(SS,t),g=c.rect!==null,v=S.useMemo(()=>n.map(F=>typeof F=="object"&&"id"in F?F.id:F),[n]),w=a!=null,T=a?v.indexOf(a.id):-1,_=h?v.indexOf(h.id):-1,A=S.useRef(v),R=!Dz(v,A.current),D=_!==-1&&T===-1||R,I=Oz(i);ol(()=>{R&&w&&p(v)},[R,v,w,p]),S.useEffect(()=>{A.current=v},[v]);const B=S.useMemo(()=>({activeIndex:T,containerId:m,disabled:I,disableTransforms:D,items:v,overIndex:_,useDragOverlay:g,sortedRects:Lz(v,d),strategy:o}),[T,m,I.draggable,I.droppable,D,v,_,d,g,o]);return S.createElement(_S.Provider,{value:B},e)}const Fz=r=>{let{id:e,items:t,activeIndex:n,overIndex:o}=r;return yg(t,n,o).indexOf(e)},jz=r=>{let{containerId:e,isSorting:t,wasDragging:n,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:d,transition:h}=r;return!h||!n||c!==i&&o===a?!1:t?!0:a!==o&&e===d},zz={duration:200,easing:"ease"},AS="transform",Hz=Ph.Transition.toString({property:AS,duration:0,easing:"linear"}),$z={roleDescription:"sortable"};function qz(r){let{disabled:e,index:t,node:n,rect:o}=r;const[i,a]=S.useState(null),c=S.useRef(t);return ol(()=>{if(!e&&t!==c.current&&n.current){const d=o.current;if(d){const h=_f(n.current,{ignoreTransform:!0}),p={x:d.left-h.left,y:d.top-h.top,scaleX:d.width/h.width,scaleY:d.height/h.height};(p.x||p.y)&&a(p)}}t!==c.current&&(c.current=t)},[e,t,n,o]),S.useEffect(()=>{i&&a(null)},[i]),i}function Uz(r){let{animateLayoutChanges:e=jz,attributes:t,disabled:n,data:o,getNewIndex:i=Fz,id:a,strategy:c,resizeObserverConfig:d,transition:h=zz}=r;const{items:p,containerId:m,activeIndex:g,disabled:v,disableTransforms:w,sortedRects:T,overIndex:_,useDragOverlay:A,strategy:R}=S.useContext(_S),D=Wz(n,v),I=p.indexOf(a),B=S.useMemo(()=>({sortable:{containerId:m,index:I,items:p},...o}),[m,o,I,p]),F=S.useMemo(()=>p.slice(p.indexOf(a)),[p,a]),{rect:j,node:z,isOver:G,setNodeRef:pe}=kz({id:a,data:B,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:F,...d}}),{active:P,activatorEvent:U,activeNodeRect:V,attributes:Q,setNodeRef:se,listeners:ue,isDragging:oe,over:ae,setActivatorNodeRef:ge,transform:re}=Az({id:a,data:B,attributes:{...$z,...t},disabled:D.draggable}),ie=oj(pe,se),he=!!P,Se=he&&!w&&Np(g)&&Np(_),Le=!A&&oe,ne=Le&&Se?re:null,ke=Se?ne??(c??R)({rects:T,activeNodeRect:V,activeIndex:g,overIndex:_,index:I}):null,Pe=Np(g)&&Np(_)?i({id:a,items:p,activeIndex:g,overIndex:_}):I,De=P==null?void 0:P.id,we=S.useRef({activeId:De,items:p,newIndex:Pe,containerId:m}),_e=p!==we.current.items,Ae=e({active:P,containerId:m,isDragging:oe,isSorting:he,id:a,index:I,items:p,newIndex:we.current.newIndex,previousItems:we.current.items,previousContainerId:we.current.containerId,transition:h,wasDragging:we.current.activeId!=null}),$e=qz({disabled:!Ae,index:I,node:z,rect:j});return S.useEffect(()=>{he&&we.current.newIndex!==Pe&&(we.current.newIndex=Pe),m!==we.current.containerId&&(we.current.containerId=m),p!==we.current.items&&(we.current.items=p)},[he,Pe,m,p]),S.useEffect(()=>{if(De===we.current.activeId)return;if(De!=null&&we.current.activeId==null){we.current.activeId=De;return}const Qe=setTimeout(()=>{we.current.activeId=De},50);return()=>clearTimeout(Qe)},[De]),{active:P,activeIndex:g,attributes:Q,data:B,rect:j,index:I,newIndex:Pe,items:p,isOver:G,isSorting:he,isDragging:oe,listeners:ue,node:z,overIndex:_,over:ae,setNodeRef:ie,setActivatorNodeRef:ge,setDroppableNodeRef:pe,setDraggableNodeRef:se,transform:$e??ke,transition:Fe()};function Fe(){if($e||_e&&we.current.newIndex===I)return Hz;if(!(Le&&!oy(U)||!h)&&(he||Ae))return Ph.Transition.toString({...h,property:AS})}}function Wz(r,e){var t,n;return typeof r=="boolean"?{draggable:r,droppable:!1}:{draggable:(t=r==null?void 0:r.draggable)!=null?t:e.draggable,droppable:(n=r==null?void 0:r.droppable)!=null?n:e.droppable}}un.Down,un.Right,un.Up,un.Left;function bg(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=bg(t.children,e);if(n)return n}}function Gh(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&Gh(t.children,e)}function ES(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>t.push(e(n,o))),t}function TS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!TS(t.children,e))return!1}return!0}function Vz(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>{e(n,o)&&t.push(n)}),t}function Gz(r){Array.isArray(r)||(r=[r]);let e=0;return Gh(r,()=>e++),e}function Yz(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const o=bg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,e))}),i=bg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,t))});if(o===void 0&&i===void 0){const a=r.findIndex(d=>n(d,e)),c=r.findIndex(d=>n(d,t));return r.splice(a,1),r.splice(c,0,e),[...r]}else if(o!==void 0&&i!==void 0&&n(o,i)&&o.children){const a=o.children.findIndex(d=>n(d,e)),c=o.children.findIndex(d=>n(d,t));return a===void 0||c===void 0?null:(o.children.splice(a,1),o.children.splice(c,0,e),o.children=[...o.children],[...r])}return null}function Zz(r,e,t){const n=[],o=[...e];for(;o.length>0;){const i=o.shift();if(i&&!n.find(a=>t(a,i))&&(n.push(i),!(!i.children||i.children.length<1)))for(const a of i.children)o.push(a)}return n}function Kz(r,e,t){Array.isArray(r)||(r=[r]);const n=ES(r,a=>a),o=[],i=[...e];for(;i.length>0;){const a=i.shift();if(!a||o.find(d=>t(d,a)))continue;o.push(a);const c=n.find(d=>{var h;return(h=d.children)==null?void 0:h.some(p=>t(p,a))});c&&i.push(c)}return o}const Nc={find:bg,forEach:Gh,map:ES,every:TS,filter:Vz,length:Gz,replace:Yz,descendants:Zz,ancestors:Kz},Xz="_AWrap_1tiv0_1",Jz="_AContainer_1tiv0_10",Qz="_ATree_1tiv0_18",eH="_ATreeBody_1tiv0_30",tH="_CoverBorder_1tiv0_36",rH="_InsertBorder_1tiv0_45",nH="_ATreeHeader_1tiv0_76",oH="_ATreeBodyHeader_1tiv0_82",iH="_ATreeBodyHeaderResources_1tiv0_92",sH="_ATreeItem_1tiv0_98",aH="_IsSelectUsed_1tiv0_114",lH="_IsSelected_1tiv0_117",cH="_IsSearchSelected_1tiv0_122",uH="_IsHovered_1tiv0_133",dH="_CheckBox_1tiv0_137",fH="_Indents_1tiv0_149",hH="_ExpandIcon_1tiv0_156",pH="_Content_1tiv0_168",gH="_RightSticky_1tiv0_177",mH="_SearchInputWrap_1tiv0_187",vH="_SearchInput_1tiv0_187",yH="_RightAddon_1tiv0_199",bH="_RightAddonIcon_1tiv0_210",xH="_Loader_1tiv0_217",wH="_IsChildOfDragSource_1tiv0_222",xn={AWrap:Xz,AContainer:Jz,ATree:Qz,ATreeBody:eH,CoverBorder:tH,InsertBorder:rH,ATreeHeader:nH,ATreeBodyHeader:oH,ATreeBodyHeaderResources:iH,ATreeItem:sH,IsSelectUsed:aH,IsSelected:lH,IsSearchSelected:cH,IsHovered:uH,CheckBox:dH,Indents:fH,ExpandIcon:hH,Content:pH,RightSticky:gH,SearchInputWrap:mH,SearchInput:vH,RightAddon:yH,RightAddonIcon:bH,Loader:xH,IsChildOfDragSource:wH},CH=r=>{const{isEqual:e,item:t,itemId:n,selectDisabled:o,selectUnused:i,isParentDisabled:a,indents:c,extIndents:d,useExpand:h,useSelect:p,useSearch:m,showCheckbox:g,icons:v,iconWidth:w,isSelectMulti:T,isDraggable:_,isParentCheckHovered:A,hoverdItem:R,onMouseOver:D,onMouseLeave:I,ContentRenderer:B,TreeItemRenderer:F,RightStickyAddon:j,resources:z,containerRef:G,TreeItemStyle:pe,TreeItemClassName:P,searchItemStyle:U,searchItemClassName:V,height:Q,isDragSrcItem:se,isChildOfDragItem:ue}=r,{children:oe}=S.useMemo(()=>t,[t]),[ae,ge]=S.useMemo(()=>h,[h]),[re,ie]=S.useMemo(()=>p,[p]),[he,Se]=S.useMemo(()=>m,[m]),Le=S.useMemo(()=>i?i(t):!1,[i,t]),ne=S.useMemo(()=>!o||a?a:o(t),[o,a,t]),ve=S.useMemo(()=>ae.some(nt=>e(nt,t)),[ae,e,t]),ke=S.useMemo(()=>!oe||oe.length<1?"noChild":ve?"expanded":"collapsed",[oe,ve]),Pe=S.useMemo(()=>Or.getContent(v,r),[v,r]),De=S.useMemo(()=>{const nt=Pe[ke];return wv.includes(nt)?C.jsx(en,{icon:nt,style:{width:w,height:w}}):nt},[Pe,w,ke]),we=S.useCallback(nt=>{!ge||ke==="noChild"||(ge(ve?ae.filter(pt=>!e(pt,t)):[...ae,t]),nt.stopPropagation())},[ge,ae,ve,t,e,ke]),_e=S.useMemo(()=>re.some(nt=>e(nt,t)),[re,e,t]),Ae=S.useCallback(()=>{!ie||ne||(ie(T?_e?re.filter(nt=>!e(nt,t)):[...re,t]:[t]),he&&Se&&he.items.some(nt=>e(nt,t))&&Se({...he,item:t}))},[T,ne,_e,he,Se,ie,e,re,t]),$e=S.useMemo(()=>he==null?void 0:he.items.some(nt=>e(nt,t)),[he,e,t]),Fe=S.useMemo(()=>$e&&(he==null?void 0:he.item)&&e(he.item,t),[$e,he,e,t]),Qe=S.useRef(null),Ue=S.useRef(null),{attributes:et,listeners:ct,setNodeRef:Ct,transform:It,transition:Je,isDragging:Ke}=Uz({id:n||`item-${JSON.stringify(t)}`,disabled:!_||!!a||!n}),ft=S.useMemo(()=>ue?ue(t):!1,[ue,t]),gt=S.useMemo(()=>{const nt=It?{transform:Ph.Transform.toString(It),transition:Je,opacity:Ke?.5:1,zIndex:Ke?1:"auto"}:{};return se||ft?{...nt,opacity:.5,zIndex:10}:nt},[It,Je,Ke,se,ft]);S.useEffect(()=>{n&&Ct&&Ue.current&&Ct(Ue.current)},[n,Ct]),S.useEffect(()=>{setTimeout(()=>{if(Fe&&Qe.current&&G.current){const{top:nt,bottom:pt}=Qe.current.getBoundingClientRect(),{top:ht,bottom:Ft}=G.current.getBoundingClientRect();(nt<ht||pt>Ft)&&Qe.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[G,Fe]);const[Ne,Xe]=S.useState(!1),vt=S.useCallback(()=>!ne&&Xe(!0),[ne]),Nt=S.useCallback(()=>!ne&&Xe(!1),[ne]),xt=S.useMemo(()=>Nc.map(t,nt=>nt).filter(nt=>!(o!=null&&o(nt))&&!(i!=null&&i(nt))),[o,i,t]),Lt=S.useMemo(()=>!g||!T?!1:_e&&xt.some(nt=>re.some(pt=>e(nt,pt)))&&xt.some(nt=>!re.some(pt=>e(nt,pt))),[g,T,_e,xt,e,re]),Qt=S.useMemo(()=>g?T?xt.every(nt=>re.some(pt=>e(nt,pt))):re.some(nt=>e(nt,t)):!1,[g,T,xt,t,e,re]),Ut=S.useCallback(()=>{if(!(!ie||ne))if(T)if(_e){const nt=re.filter(pt=>!(i!=null&&i(pt))&&!(o!=null&&o(pt))&&xt.some(ht=>e(ht,pt)));nt.length>0&&ie(re.filter(pt=>!nt.some(ht=>e(pt,ht))))}else{const nt=xt.filter(pt=>!(i!=null&&i(pt))&&!(o!=null&&o(pt))&&!re.some(ht=>e(ht,pt)));nt.length>0&&ie([...re,...nt])}else ie([t])},[ne,o,i,T,ie,e,_e,re,xt,t]),fr=S.useCallback(nt=>{ne||Ut(),nt.stopPropagation()},[ne,Ut]),hr=S.useMemo(()=>{if(!g||!T||ne)return"";if(_e){const pt=re.filter(ht=>!(i!=null&&i(ht))&&!(o!=null&&o(ht))&&xt.some(Ft=>e(Ft,ht)));if(pt.length>0)return z["deselect n"](pt.length)}const nt=xt.filter(pt=>!(i!=null&&i(pt))&&!(o!=null&&o(pt))&&!re.some(ht=>e(ht,pt)));return z["select n"](nt.length)},[o,i,z,ne,g,T,_e,xt,e,re]),cr=S.useMemo(()=>Or.getContent(j,r),[j,r]),Te=S.useMemo(()=>Or.getContent(pe,r),[r,pe]),le=S.useMemo(()=>Or.getContent(P,r),[r,P]),st=S.useMemo(()=>Or.getContent(V,r),[r,V]),yt=S.useMemo(()=>Or.getContent(U,r),[r,U]);return C.jsxs(S.Fragment,{children:[C.jsxs(Kr,{abaseRef:Ue,isDisabled:ne,className:Ge.clsx(xn.ATreeItem,_e&&xn.IsSelected,!ne&&(Ne||A)&&xn.IsHovered,$e&&xn.IsSearched,Fe&&(st||xn.IsSearchSelected),!Le&&xn.IsSelectUsed,ft&&xn.IsChildOfDragSource,"NoSelect",le),style:{...Te,...Fe&&yt?yt:{},"--ATreeItem_height":`${Q}px`,...gt||{}},onClick:Ae,onMouseLeave:nt=>I==null?void 0:I(nt,t),onMouseOver:nt=>D==null?void 0:D(nt,t),..._&&!ne&&et?et:{},..._&&!ne&&ct?ct:{},children:[g&&C.jsx(af,{className:xn.CheckBox,isDisabled:ne,isIndeterminate:Lt,tooltip:hr,useCheck:[+Qt,Ut],style:{visibility:ne||Le?"hidden":"visible",zIndex:ne||Le?0:2},onClick:fr,onMouseOut:Nt,onMouseOver:vt}),C.jsx("div",{className:xn.Indents,style:{paddingLeft:g?0:Pe.noChild?12:0},children:c.map((nt,pt)=>{const ht=pt===c.length-1;return C.jsx(dC,{value:nt,map:{Collapsed:d?d({iconWidth:w}).collapsed:C.jsx(_H,{iconWidth:w}),Expanded:d?d({iconWidth:w,isLast:ht}).expanded:C.jsx(SH,{iconWidth:w,isLast:ht}),IsLast:d?d({iconWidth:w}).isLast:C.jsx(AH,{iconWidth:w})}},pt)})}),De&&C.jsx("div",{className:xn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:we,children:De}),C.jsx("div",{className:Ge.clsx(xn.Content,"NoSelect"),children:C.jsx(B,{containerRef:G,ContentRenderer:B,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,indents:c,isDraggable:_,isEqual:e,isParentCheckHovered:T&&(Ne||A),isSelectMulti:T,item:t,itemId:n,resources:z,RightStickyAddon:j,searchItemClassName:st,searchItemStyle:U,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:F,TreeItemStyle:pe,useExpand:h,useSearch:m,useSelect:p,onMouseLeave:I,onMouseOver:D})}),cr&&C.jsx("div",{className:xn.RightSticky,children:cr})]}),ve&&(oe==null?void 0:oe.map((nt,pt)=>C.jsx(F,{containerRef:G,ContentRenderer:B,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,isChildOfDragItem:ue,isDraggable:_,isDragSrcItem:se,isEqual:e,isParentCheckHovered:T&&(Ne||A),isSelectMulti:T,item:nt,itemId:n?`${n}-child-${pt}`:void 0,resources:z,RightStickyAddon:j,searchItemClassName:st,searchItemStyle:U,selectDisabled:o,selectUnused:i,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:F,TreeItemStyle:pe,useExpand:h,useSearch:m,useSelect:p,indents:[...c.map(ht=>ht==="IsLast"?"Collapsed":ht),pt===oe.length-1?"IsLast":"Expanded"],onMouseLeave:I,onMouseOver:D},pt)))]})},SH=({iconWidth:r,isLast:e})=>C.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&C.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),_H=({iconWidth:r})=>C.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),AH=({iconWidth:r})=>C.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),EH=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:o,searchDown:i,searchEnter:a,isDisabled:c,isLoading:d,resources:h,maxLength:p,autoFocus:m}=r,g=S.useCallback(T=>{T.key==="Enter"?a():T.key==="ArrowDown"?i():T.key==="ArrowUp"&&o(),T.preventDefault(),T.stopPropagation()},[i,a,o]),v=S.useCallback(T=>{n(T)},[n]),w=S.useMemo(()=>c||d?-1:void 0,[c,d]);return C.jsx(Vc,{autoFocus:m,className:xn.SearchInput,isDisabled:c,maxLength:p,placeholder:h["Search(Placeholder)"],tabIndex:w,useValue:[(t==null?void 0:t.keyword)??"",v],RightAddon:C.jsx(TH,{isEqual:e,resources:h,searchDown:i,searchEnter:a,searchResult:t,searchUp:o}),wrapProps:{className:xn.SearchInputWrap},onKeyDown:g})},TH=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:o,searchEnter:i,resources:a}=r,c=S.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(w=>t.item&&e(w,t.item))+1,[t,e]),d=S.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),h=S.useMemo(()=>c<2,[c]),p=S.useMemo(()=>c>=d,[c,d]),m=S.useCallback(w=>{w.stopPropagation(),!h&&n()},[n,h]),g=S.useCallback(w=>{w.stopPropagation(),!p&&o()},[o,p]),v=S.useCallback(w=>{w.stopPropagation(),i()},[i]);return C.jsx("div",{className:Ge.clsx(xn.RightAddon,"NoSelect"),children:t?C.jsxs(C.Fragment,{children:[c,"/",d,C.jsx(Kr,{isDisabled:h,onClick:m,children:C.jsx(en,{className:xn.RightAddonIcon,icon:"ArrowUp",mask:""})}),C.jsx(Kr,{isDisabled:p,onClick:g,children:C.jsx(en,{className:xn.RightAddonIcon,icon:"ArrowDown"})})]}):C.jsx(So,{className:xn.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:v})})},RH=r=>{var jr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:o,useExpand:i,useSelect:a,useSearch:c,showCheckbox:d,iconWidth:h=24,icons:p={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:m,isSelectMulti:g=!1,noSearch:v=!1,isDraggable:w,noSyncSearchSelect:T=!1,actionRef:_,placeholder:A,searchPredicate:R=IH,isDisabled:D,isLoading:I,ContentRenderer:B=kH,TreeItemRenderer:F=CH,RightStickyAddon:j,TopRightAddon:z,TreeTopAddon:G,resources:pe,maxLength:P,autoFocus:U,TreeItemStyle:V,TreeItemClassName:Q,OverflowPadding:se,insertBorder:ue,width:oe,searchItemClassName:ae,searchItemStyle:ge,height:re=40,...ie}=r,he=S.useMemo(()=>({...wr.ATree,...pe}),[pe]),Se=S.useCallback((Ye,ee)=>!Ye||!ee?!1:e!==void 0?Array.isArray(e)?e.every(be=>Ye&&ee&&Ye[be]!==void 0&&ee[be]!==void 0&&Ya.isEqual(Ye[be],ee[be])):Ye&&ee&&Ye[e]!==void 0&&ee[e]!==void 0&&Ya.isEqual(Ye[e],ee[e]):Ya.isEqual(Ye,ee),[e]),Le=S.useRef(null),[ne,ve]=wn(o,[]),ke=S.useMemo(()=>Nc.map(ne,Ye=>Ye),[ne]),[Pe,De]=wn(i,[]),[we,_e]=wn(a,[]),[Ae,$e]=wn(c,void 0),Fe=S.useCallback(Ye=>{if(D||!De||Pe.some(ze=>Se(ze,Ye)))return;const ee=[];let be=Ye;for(;be;){const ze=be;Pe.find(Tt=>Se(Tt,ze))||ee.push(ze),be=ke.find(Tt=>{var jt;return(jt=Tt.children)==null?void 0:jt.some(Dt=>Se(Dt,ze))})}De([...Pe,...ee])},[Pe,D,Se,De,ke]),Qe=S.useCallback(()=>{!De||D||De([...ke])},[ke,D,De]),Ue=S.useCallback(()=>{!De||D||De([])},[De,D]),et=S.useCallback(Ye=>{!_e||D||n!=null&&n(Ye)||(_e([Ye]),Fe(Ye))},[_e,D,n,Fe]),ct=S.useCallback(Ye=>{if(!$e||D)return;if(!Ye||v){$e(void 0),T||_e==null||_e([]);return}const ee=Nc.filter(ne,ze=>R(Ye,ze));let be;if(ee.find(ze=>(Ae==null?void 0:Ae.item)&&Se(ze,Ae.item))?be=Ae==null?void 0:Ae.item:ee.length>0&&(be=ee[0]),$e({keyword:Ye,items:ee,item:be}),be&&Fe(be),_e&&!T)if(g)_e(ee);else{const ze=ee.find(Tt=>be&&Se(Tt,be));_e(ze?[ze]:[])}},[ne,D,Se,R,$e,_e,Fe,T,v,g,Ae]),Ct=S.useRef(!1);S.useEffect(()=>{Ct.current=!0},[ne]),S.useEffect(()=>{Ae&&Ct.current&&(ct(Ae.keyword),Ct.current=!1)},[ct,Ae]);const It=S.useCallback(()=>{if(!Ae||!$e||D)return;let Ye=Ae.items.findIndex(ee=>Ae.item&&Se(ee,Ae.item))-1;Ye<0||($e({...Ae,item:Ae.items[Ye]}),Fe(Ae.items[Ye]),T||et(Ae.items[Ye]))},[Ae,Fe,$e,D,et,Se,T]),Je=S.useCallback(()=>{if(!Ae||!$e||D)return;let Ye=Ae.items.findIndex(ee=>Ae.item&&Se(ee,Ae.item))+1;Ye>=Ae.items.length||($e({...Ae,item:Ae.items[Ye]}),Fe(Ae.items[Ye]),T||et(Ae.items[Ye]))},[Ae,Fe,D,$e,et,Se,T]),Ke=S.useCallback(()=>{if(!Ae||!$e||D)return;let Ye=Ae.items.findIndex(be=>Ae.item&&Se(be,Ae.item));if(!T||n!=null&&n(Ae.items[Ye])){Je();return}if(we.some(be=>Ae.item&&Se(be,Ae.item))){let be=Ye+1;const ze=Ae.items[be];if(be>=Ae.items.length)return;$e({...Ae,item:ze}),et(ze)}else et(Ae.items[Ye])},[Ae,$e,D,we,T,Je,Se,et,n]),[ft,gt]=S.useState(!1),Ne=S.useCallback(()=>gt(!0),[]),Xe=S.useCallback(()=>gt(!1),[]),vt=S.useMemo(()=>n?Nc.map(ne,Ye=>Ye).filter(Ye=>!n(Ye)):t?Nc.map(ne,Ye=>Ye).filter(Ye=>!t(Ye)):Nc.map(ne,Ye=>Ye),[n,t,ne]),Nt=S.useMemo(()=>!d||!g?!1:we.length>0&&vt.length>we.length,[d,g,we,vt]),xt=S.useMemo(()=>!d||!g?!1:we.length>0&&vt.length===we.length,[d,g,we,vt]),Lt=S.useCallback(()=>{if(!_e||!g||D)return;const Ye=we.filter(ee=>!(n!=null&&n(ee))&&!(t!=null&&t(ee))&&vt.some(be=>Se(be,ee)));if(Ye.length>0)_e(we.filter(ee=>!Ye.some(be=>Se(ee,be))));else{const ee=vt.filter(be=>!(n!=null&&n(be))&&!(t!=null&&t(be))&&!we.some(ze=>Se(ze,be)));ee.length>0&&_e([...we,...ee])}},[g,D,n,t,_e,we,vt,Se]),Qt=S.useMemo(()=>{if(!d||!g||D)return"";const Ye=we.filter(ee=>!(n!=null&&n(ee))&&!(t!=null&&t(ee))&&vt.some(be=>Se(be,ee)));if(Ye.length>0)return he["deselect n"](Ye.length);{const ee=vt.filter(be=>!(n!=null&&n(be))&&!(t!=null&&t(be))&&!we.some(ze=>Se(ze,be)));return he["select n"](ee.length)}},[n,t,D,he,d,g,vt,we,Se]),[Ut,fr]=S.useState(),hr=yj(ux(cy,{activationConstraint:{distance:8}}),ux(ay)),cr=S.useRef(new Map),Te=S.useCallback(Ye=>{if(!cr.current.has(Ye)){const ee=`item_${Ya.uniqueId()}`;cr.current.set(Ye,ee)}return cr.current.get(Ye)},[]),le=S.useCallback(Ye=>ke.find(ee=>Te(ee)===Ye),[ke,Te]),st=S.useCallback(Ye=>!Ut||!Ut.children?!1:Ut.children.some(be=>Se(be,Ye))?!0:Ut.children.some(be=>be.children?Nc.find(be,ze=>Se(ze,Ye))!==void 0:!1),[Ut,Se]),yt=S.useCallback(Ye=>{if(!w||D)return;const ee=le(Ye.active.id);ee&&fr(ee)},[w,D,le]),nt=S.useCallback((Ye,ee,be,ze)=>{const Tt=Ye.findIndex(Dt=>ze(Dt,ee)),jt=Ye.findIndex(Dt=>ze(Dt,be));return Tt!==-1&&jt!==-1?yg(Ye,Tt,jt):Ye.map(Dt=>{if(!Dt.children)return Dt;const er=Dt.children.findIndex(kt=>ze(kt,ee)),Jt=Dt.children.findIndex(kt=>ze(kt,be));return er!==-1&&Jt!==-1?{...Dt,children:yg(Dt.children,er,Jt)}:Dt.children?{...Dt,children:nt(Dt.children,ee,be,ze)}:Dt})},[]),pt=S.useCallback(Ye=>{!w||D||!Ut||!Ye.over||le(Ye.over.id)},[w,D,Ut,le]),ht=S.useCallback(Ye=>{if(!w||D||!ve||!Ut||!Ye.over)return;const ee=le(Ye.over.id);if(!ee||Se(Ut,ee)){fr(void 0);return}const be=nt(ne,Ut,ee,Se);ve(be),fr(void 0)},[w,D,ve,Ut,le,Se,ne,nt]),Ft=S.useMemo(()=>ne.map(Ye=>Te(Ye)),[ne,Te]);S.useEffect(()=>{var Ye;d||(Ye=Le.current)==null||Ye.scrollTo(0,0)},[d,Le]),S.useEffect(()=>{!g&&we.length>1&&(_e==null||_e([we[we.length-1]]))},[g,_e,we]),S.useEffect(()=>{_&&(_.current={expandAll:Qe,collapseAll:Ue})},[_,Qe,Ue]),S.useEffect(()=>{if(!t||!_e)return;const Ye=we.filter(ee=>!t(ee));we.length!==Ye.length&&_e(Ye)},[t,we,_e]),S.useEffect(()=>{if(!n||!_e)return;const Ye=we.filter(ee=>!n(ee));we.length!==Ye.length&&_e(Ye)},[n,we,_e]),S.useEffect(()=>{$e&&$e(void 0)},[$e]);const[Ve,at]=S.useState(!1);S.useEffect(()=>{at(Ye=>!Ye)},[ne]);const[lt,_t]=S.useState(null),Ot=S.useCallback((Ye,ee)=>{D||(Ye.stopPropagation(),Ye.preventDefault(),_t(ee))},[D]),Bt=S.useCallback((Ye,ee)=>{lt===null||D||Se(ee,lt)&&(Ye.stopPropagation(),Ye.preventDefault(),_t(null))},[lt,D,Se]),Wt=S.useRef(null),[Yt,ir]=S.useState(!1),[zt,xr]=S.useState((jr=Wt.current)==null?void 0:jr.scrollHeight);return S.useEffect(()=>{if(Pe.length<0)return;const Ye=Le.current,ee=Wt.current,be=Ye.clientHeight<ee.clientHeight;xr(be?ee.scrollHeight:Ye.clientHeight),ir(be)},[Pe]),C.jsxs(Kr,{...ie,className:Ge.clsx(ie.className,xn.AWrap),isDisabled:D,children:[(!v||z)&&C.jsxs(Rn,{className:xn.ATreeHeader,children:[!v&&C.jsx(EH,{autoFocus:U,initSearch:ct,isDisabled:D,isEqual:Se,isLoading:I,maxLength:P,resources:he,searchDown:Je,searchEnter:Ke,searchResult:Ae,searchUp:It}),!v&&z&&C.jsx(Nn,{w:8}),z]}),(!v||z||d&&g||w)&&C.jsx(Iv,{isLoading:I&&ne.length!==0}),(d&&g||w)&&C.jsxs("div",{className:Ge.clsx(xn.ATreeBodyHeader,"NoSelect"),children:[d&&C.jsx(af,{className:xn.CheckBox,isDisabled:D,isIndeterminate:Nt,tooltip:Qt,useCheck:[+xt,()=>Lt()],onMouseOut:Xe,onMouseOver:Ne}),he.Items,C.jsx(Ku,{}),C.jsxs("div",{className:Ge.clsx(xn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Yt?8:0},children:[C.jsx("span",{children:d&&he["*Click row for single select"]}),C.jsx("span",{children:w&&he["*Change order to row drag"]})]})]}),C.jsx("div",{ref:Le,className:Ge.clsx(ie.className,xn.AContainer),children:C.jsxs("div",{className:xn.ATree,style:{minWidth:oe||"fit-content",marginRight:se&&Yt?8:0},children:[C.jsxs("div",{ref:Wt,className:xn.ATreeBody,children:[ne.length===0?I?C.jsx(MH,{text:he["Loading Contents..."]}):A:G,C.jsx(Cz,{collisionDetection:Sj,modifiers:[Iz,Mz],sensors:hr,measuring:{droppable:{strategy:vf.Always}},onDragEnd:ht,onDragOver:pt,onDragStart:yt,children:C.jsx(Bz,{items:Ft,strategy:Nz,children:ne.map((Ye,ee)=>C.jsx(F,{containerRef:Le,ContentRenderer:B,extIndents:m,height:re,hoverdItem:lt,icons:p,iconWidth:h,indents:[],isChildOfDragItem:st,isDraggable:w,isDragSrcItem:Se(Ye,Ut),isEqual:Se,isParentCheckHovered:g&&ft,isParentDisabled:D,isSelectMulti:g,item:Ye,itemId:Te(Ye),resources:he,RightStickyAddon:j,searchItemClassName:ae,searchItemStyle:ge,selectDisabled:t,selectUnused:n,showCheckbox:d,TreeItemClassName:Q,TreeItemRenderer:F,TreeItemStyle:V,useExpand:[Pe,De],useSearch:[Ae,$e],useSelect:[we,_e],onMouseLeave:Bt,onMouseOver:Ot},`${ee}${Ve}`))})})]}),ue&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:xn.CoverBorder}),C.jsx("div",{className:xn.InsertBorder,style:{"--InsertBorder_height":`${re}px`,height:Yt?zt:"100%"}})]})]})})]})},kH=r=>{const{item:e}=r,t={};return ar.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function IH(r,e){return ar.some(e,(t,n)=>{var o;return(o=ar.stringify(n))==null?void 0:o.toLowerCase().includes(r.toLowerCase())})}const MH=r=>{const{text:e}=r;return C.jsxs(Rn,{className:Ge.clsx(xn.Loader,"NoSelect"),children:[C.jsx(en,{height:40,icon:"Spinner",style:{height:40},width:40}),C.jsx(SC,{text:e})]})};var $m,Cx;function Af(){return Cx||(Cx=1,$m=TypeError),$m}const LH={},DH=Object.freeze(Object.defineProperty({__proto__:null,default:LH},Symbol.toStringTag,{value:"Module"})),OH=vT(DH);var qm,Sx;function jg(){if(Sx)return qm;Sx=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,c=o&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,T=Object.prototype.toString,_=Function.prototype.toString,A=String.prototype.match,R=String.prototype.slice,D=String.prototype.replace,I=String.prototype.toUpperCase,B=String.prototype.toLowerCase,F=RegExp.prototype.test,j=Array.prototype.concat,z=Array.prototype.join,G=Array.prototype.slice,pe=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,U=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,ue=Object.prototype.propertyIsEnumerable,oe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Te){return Te.__proto__}:null);function ae(Te,le){if(Te===1/0||Te===-1/0||Te!==Te||Te&&Te>-1e3&&Te<1e3||F.call(/e/,le))return le;var st=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Te=="number"){var yt=Te<0?-pe(-Te):pe(Te);if(yt!==Te){var nt=String(yt),pt=R.call(le,nt.length+1);return D.call(nt,st,"$&_")+"."+D.call(D.call(pt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(le,st,"$&_")}var ge=OH,re=ge.custom,ie=Fe(re)?re:null,he={__proto__:null,double:'"',single:"'"},Se={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};qm=function Te(le,st,yt,nt){var pt=st||{};if(et(pt,"quoteStyle")&&!et(he,pt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(pt,"maxStringLength")&&(typeof pt.maxStringLength=="number"?pt.maxStringLength<0&&pt.maxStringLength!==1/0:pt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ht=et(pt,"customInspect")?pt.customInspect:!0;if(typeof ht!="boolean"&&ht!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(pt,"indent")&&pt.indent!==null&&pt.indent!==" "&&!(parseInt(pt.indent,10)===pt.indent&&pt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(et(pt,"numericSeparator")&&typeof pt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ft=pt.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return vt(le,pt);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var Ve=String(le);return Ft?ae(le,Ve):Ve}if(typeof le=="bigint"){var at=String(le)+"n";return Ft?ae(le,at):at}var lt=typeof pt.depth>"u"?5:pt.depth;if(typeof yt>"u"&&(yt=0),yt>=lt&<>0&&typeof le=="object")return ke(le)?"[Array]":"[Object]";var _t=fr(pt,yt);if(typeof nt>"u")nt=[];else if(It(nt,le)>=0)return"[Circular]";function Ot(kt,xe,ot){if(xe&&(nt=G.call(nt),nt.push(xe)),ot){var wt={depth:pt.depth};return et(pt,"quoteStyle")&&(wt.quoteStyle=pt.quoteStyle),Te(kt,wt,yt+1,nt)}return Te(kt,pt,yt+1,nt)}if(typeof le=="function"&&!De(le)){var Bt=Ct(le),Wt=cr(le,Ot);return"[Function"+(Bt?": "+Bt:" (anonymous)")+"]"+(Wt.length>0?" { "+z.call(Wt,", ")+" }":"")}if(Fe(le)){var Yt=Q?D.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(le);return typeof le=="object"&&!Q?xt(Yt):Yt}if(Xe(le)){for(var ir="<"+B.call(String(le.nodeName)),zt=le.attributes||[],xr=0;xr<zt.length;xr++)ir+=" "+zt[xr].name+"="+Le(ne(zt[xr].value),"double",pt);return ir+=">",le.childNodes&&le.childNodes.length&&(ir+="..."),ir+="</"+B.call(String(le.nodeName))+">",ir}if(ke(le)){if(le.length===0)return"[]";var jr=cr(le,Ot);return _t&&!Ut(jr)?"["+hr(jr,_t)+"]":"[ "+z.call(jr,", ")+" ]"}if(we(le)){var Ye=cr(le,Ot);return!("cause"in Error.prototype)&&"cause"in le&&!ue.call(le,"cause")?"{ ["+String(le)+"] "+z.call(j.call("[cause]: "+Ot(le.cause),Ye),", ")+" }":Ye.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+z.call(Ye,", ")+" }"}if(typeof le=="object"&&ht){if(ie&&typeof le[ie]=="function"&&ge)return ge(le,{depth:lt-yt});if(ht!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(Je(le)){var ee=[];return n&&n.call(le,function(kt,xe){ee.push(Ot(xe,le,!0)+" => "+Ot(kt,le))}),Qt("Map",t.call(le),ee,_t)}if(gt(le)){var be=[];return c&&c.call(le,function(kt){be.push(Ot(kt,le))}),Qt("Set",a.call(le),be,_t)}if(Ke(le))return Lt("WeakMap");if(Ne(le))return Lt("WeakSet");if(ft(le))return Lt("WeakRef");if(Ae(le))return xt(Ot(Number(le)));if(Qe(le))return xt(Ot(P.call(le)));if($e(le))return xt(w.call(le));if(_e(le))return xt(Ot(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof Di<"u"&&le===Di)return"{ [object globalThis] }";if(!Pe(le)&&!De(le)){var ze=cr(le,Ot),Tt=oe?oe(le)===Object.prototype:le instanceof Object||le.constructor===Object,jt=le instanceof Object?"":"null prototype",Dt=!Tt&&se&&Object(le)===le&&se in le?R.call(ct(le),8,-1):jt?"Object":"",er=Tt||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",Jt=er+(Dt||jt?"["+z.call(j.call([],Dt||[],jt||[]),": ")+"] ":"");return ze.length===0?Jt+"{}":_t?Jt+"{"+hr(ze,_t)+"}":Jt+"{ "+z.call(ze,", ")+" }"}return String(le)};function Le(Te,le,st){var yt=st.quoteStyle||le,nt=he[yt];return nt+Te+nt}function ne(Te){return D.call(String(Te),/"/g,""")}function ve(Te){return!se||!(typeof Te=="object"&&(se in Te||typeof Te[se]<"u"))}function ke(Te){return ct(Te)==="[object Array]"&&ve(Te)}function Pe(Te){return ct(Te)==="[object Date]"&&ve(Te)}function De(Te){return ct(Te)==="[object RegExp]"&&ve(Te)}function we(Te){return ct(Te)==="[object Error]"&&ve(Te)}function _e(Te){return ct(Te)==="[object String]"&&ve(Te)}function Ae(Te){return ct(Te)==="[object Number]"&&ve(Te)}function $e(Te){return ct(Te)==="[object Boolean]"&&ve(Te)}function Fe(Te){if(Q)return Te&&typeof Te=="object"&&Te instanceof Symbol;if(typeof Te=="symbol")return!0;if(!Te||typeof Te!="object"||!V)return!1;try{return V.call(Te),!0}catch{}return!1}function Qe(Te){if(!Te||typeof Te!="object"||!P)return!1;try{return P.call(Te),!0}catch{}return!1}var Ue=Object.prototype.hasOwnProperty||function(Te){return Te in this};function et(Te,le){return Ue.call(Te,le)}function ct(Te){return T.call(Te)}function Ct(Te){if(Te.name)return Te.name;var le=A.call(_.call(Te),/^function\s*([\w$]+)/);return le?le[1]:null}function It(Te,le){if(Te.indexOf)return Te.indexOf(le);for(var st=0,yt=Te.length;st<yt;st++)if(Te[st]===le)return st;return-1}function Je(Te){if(!t||!Te||typeof Te!="object")return!1;try{t.call(Te);try{a.call(Te)}catch{return!0}return Te instanceof Map}catch{}return!1}function Ke(Te){if(!h||!Te||typeof Te!="object")return!1;try{h.call(Te,h);try{m.call(Te,m)}catch{return!0}return Te instanceof WeakMap}catch{}return!1}function ft(Te){if(!v||!Te||typeof Te!="object")return!1;try{return v.call(Te),!0}catch{}return!1}function gt(Te){if(!a||!Te||typeof Te!="object")return!1;try{a.call(Te);try{t.call(Te)}catch{return!0}return Te instanceof Set}catch{}return!1}function Ne(Te){if(!m||!Te||typeof Te!="object")return!1;try{m.call(Te,m);try{h.call(Te,h)}catch{return!0}return Te instanceof WeakSet}catch{}return!1}function Xe(Te){return!Te||typeof Te!="object"?!1:typeof HTMLElement<"u"&&Te instanceof HTMLElement?!0:typeof Te.nodeName=="string"&&typeof Te.getAttribute=="function"}function vt(Te,le){if(Te.length>le.maxStringLength){var st=Te.length-le.maxStringLength,yt="... "+st+" more character"+(st>1?"s":"");return vt(R.call(Te,0,le.maxStringLength),le)+yt}var nt=Se[le.quoteStyle||"single"];nt.lastIndex=0;var pt=D.call(D.call(Te,nt,"\\$1"),/[\x00-\x1f]/g,Nt);return Le(pt,"single",le)}function Nt(Te){var le=Te.charCodeAt(0),st={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return st?"\\"+st:"\\x"+(le<16?"0":"")+I.call(le.toString(16))}function xt(Te){return"Object("+Te+")"}function Lt(Te){return Te+" { ? }"}function Qt(Te,le,st,yt){var nt=yt?hr(st,yt):z.call(st,", ");return Te+" ("+le+") {"+nt+"}"}function Ut(Te){for(var le=0;le<Te.length;le++)if(It(Te[le],`
|
364
|
+
`},mj={onDragStart(r){let{active:e}=r;return"Picked up draggable item "+e.id+"."},onDragOver(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(r){let{active:e}=r;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function vj(r){let{announcements:e=mj,container:t,hiddenTextDescribedById:n,screenReaderInstructions:o=gj}=r;const{announce:i,announcement:a}=fj(),c=Vh("DndLiveRegion"),[d,h]=S.useState(!1);if(S.useEffect(()=>{h(!0)},[]),hj(S.useMemo(()=>({onDragStart(m){let{active:g}=m;i(e.onDragStart({active:g}))},onDragMove(m){let{active:g,over:v}=m;e.onDragMove&&i(e.onDragMove({active:g,over:v}))},onDragOver(m){let{active:g,over:v}=m;i(e.onDragOver({active:g,over:v}))},onDragEnd(m){let{active:g,over:v}=m;i(e.onDragEnd({active:g,over:v}))},onDragCancel(m){let{active:g,over:v}=m;i(e.onDragCancel({active:g,over:v}))}}),[i,e])),!d)return null;const p=S.createElement(S.Fragment,null,S.createElement(uj,{id:n,value:o.draggable}),S.createElement(dj,{id:c,announcement:a}));return t?Ls.createPortal(p,t):p}var Co;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(Co||(Co={}));function mg(){}function ux(r,e){return S.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function yj(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return S.useMemo(()=>[...e].filter(n=>n!=null),[...e])}const va=Object.freeze({x:0,y:0});function bj(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function xj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return t-n}function wj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return n-t}function Cj(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function dx(r,e,t){return e===void 0&&(e=r.left),t===void 0&&(t=r.top),{x:e+r.width*.5,y:t+r.height*.5}}const Sj=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=dx(e,e.left,e.top),i=[];for(const a of n){const{id:c}=a,d=t.get(c);if(d){const h=bj(dx(d),o);i.push({id:c,data:{droppableContainer:a,value:h}})}}return i.sort(xj)};function _j(r,e){const t=Math.max(e.top,r.top),n=Math.max(e.left,r.left),o=Math.min(e.left+e.width,r.left+r.width),i=Math.min(e.top+e.height,r.top+r.height),a=o-n,c=i-t;if(n<o&&t<i){const d=e.width*e.height,h=r.width*r.height,p=a*c,m=p/(d+h-p);return Number(m.toFixed(4))}return 0}const Aj=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=[];for(const i of n){const{id:a}=i,c=t.get(a);if(c){const d=_j(c,e);d>0&&o.push({id:a,data:{droppableContainer:i,value:d}})}}return o.sort(wj)};function Ej(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function cS(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:va}function Tj(r){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((a,c)=>({...a,top:a.top+r*c.y,bottom:a.bottom+r*c.y,left:a.left+r*c.x,right:a.right+r*c.x}),{...t})}}const Rj=Tj(1);function kj(r){if(r.startsWith("matrix3d(")){const e=r.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(r.startsWith("matrix(")){const e=r.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Ij(r,e,t){const n=kj(e);if(!n)return r;const{scaleX:o,scaleY:i,x:a,y:c}=n,d=r.left-a-(1-o)*parseFloat(t),h=r.top-c-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),p=o?r.width/o:r.width,m=i?r.height/i:r.height;return{width:p,height:m,top:h,right:d+p,bottom:h+m,left:d}}const Mj={ignoreTransform:!1};function _f(r,e){e===void 0&&(e=Mj);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:h,transformOrigin:p}=Ni(r).getComputedStyle(r);h&&(t=Ij(t,h,p))}const{top:n,left:o,width:i,height:a,bottom:c,right:d}=t;return{top:n,left:o,width:i,height:a,bottom:c,right:d}}function fx(r){return _f(r,{ignoreTransform:!0})}function Lj(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Dj(r,e){return e===void 0&&(e=Ni(r).getComputedStyle(r)),e.position==="fixed"}function Oj(r,e){e===void 0&&(e=Ni(r).getComputedStyle(r));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=e[o];return typeof i=="string"?t.test(i):!1})}function iy(r,e){const t=[];function n(o){if(e!=null&&t.length>=e||!o)return t;if(ry(o)&&o.scrollingElement!=null&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!Uh(o)||sS(o)||t.includes(o))return t;const i=Ni(r).getComputedStyle(o);return o!==r&&Oj(o,i)&&t.push(o),Dj(o,i)?t:n(o.parentNode)}return r?n(r):t}function uS(r){const[e]=iy(r,1);return e??null}function jm(r){return!Pg||!r?null:Cf(r)?r:ty(r)?ry(r)||r===Sf(r).scrollingElement?window:Uh(r)?r:null:null}function dS(r){return Cf(r)?r.scrollX:r.scrollLeft}function fS(r){return Cf(r)?r.scrollY:r.scrollTop}function gv(r){return{x:dS(r),y:fS(r)}}var Mo;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Mo||(Mo={}));function hS(r){return!Pg||!r?!1:r===document.scrollingElement}function pS(r){const e={x:0,y:0},t=hS(r)?{height:window.innerHeight,width:window.innerWidth}:{height:r.clientHeight,width:r.clientWidth},n={x:r.scrollWidth-t.width,y:r.scrollHeight-t.height},o=r.scrollTop<=e.y,i=r.scrollLeft<=e.x,a=r.scrollTop>=n.y,c=r.scrollLeft>=n.x;return{isTop:o,isLeft:i,isBottom:a,isRight:c,maxScroll:n,minScroll:e}}const Nj={x:.2,y:.2};function Pj(r,e,t,n,o){let{top:i,left:a,right:c,bottom:d}=t;n===void 0&&(n=10),o===void 0&&(o=Nj);const{isTop:h,isBottom:p,isLeft:m,isRight:g}=pS(r),v={x:0,y:0},w={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!h&&i<=e.top+T.height?(v.y=Mo.Backward,w.y=n*Math.abs((e.top+T.height-i)/T.height)):!p&&d>=e.bottom-T.height&&(v.y=Mo.Forward,w.y=n*Math.abs((e.bottom-T.height-d)/T.height)),!g&&c>=e.right-T.width?(v.x=Mo.Forward,w.x=n*Math.abs((e.right-T.width-c)/T.width)):!m&&a<=e.left+T.width&&(v.x=Mo.Backward,w.x=n*Math.abs((e.left+T.width-a)/T.width)),{direction:v,speed:w}}function Bj(r){if(r===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:e,left:t,right:n,bottom:o}=r.getBoundingClientRect();return{top:e,left:t,right:n,bottom:o,width:r.clientWidth,height:r.clientHeight}}function gS(r){return r.reduce((e,t)=>of(e,gv(t)),va)}function Fj(r){return r.reduce((e,t)=>e+dS(t),0)}function jj(r){return r.reduce((e,t)=>e+fS(t),0)}function zj(r,e){if(e===void 0&&(e=_f),!r)return;const{top:t,left:n,bottom:o,right:i}=e(r);uS(r)&&(o<=0||i<=0||t>=window.innerHeight||n>=window.innerWidth)&&r.scrollIntoView({block:"center",inline:"center"})}const Hj=[["x",["left","right"],Fj],["y",["top","bottom"],jj]];class sy{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=iy(t),o=gS(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,a,c]of Hj)for(const d of a)Object.defineProperty(this,d,{get:()=>{const h=c(n),p=o[i]-h;return this.rect[d]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class mh{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...t)})},this.target=e}add(e,t,n){var o;(o=this.target)==null||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function $j(r){const{EventTarget:e}=Ni(r);return r instanceof e?r:Sf(r)}function zm(r,e){const t=Math.abs(r.x),n=Math.abs(r.y);return typeof e=="number"?Math.sqrt(t**2+n**2)>e:"x"in e&&"y"in e?t>e.x&&n>e.y:"x"in e?t>e.x:"y"in e?n>e.y:!1}var Rs;(function(r){r.Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange"})(Rs||(Rs={}));function hx(r){r.preventDefault()}function qj(r){r.stopPropagation()}var un;(function(r){r.Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab"})(un||(un={}));const mS={start:[un.Space,un.Enter],cancel:[un.Esc],end:[un.Space,un.Enter,un.Tab]},Uj=(r,e)=>{let{currentCoordinates:t}=e;switch(r.code){case un.Right:return{...t,x:t.x+25};case un.Left:return{...t,x:t.x-25};case un.Down:return{...t,y:t.y+25};case un.Up:return{...t,y:t.y-25}}};class ay{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new mh(Sf(t)),this.windowListeners=new mh(Ni(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Rs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&zj(n),t(va)}handleKeyDown(e){if(oy(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=mS,coordinateGetter:a=Uj,scrollBehavior:c="smooth"}=o,{code:d}=e;if(i.end.includes(d)){this.handleEnd(e);return}if(i.cancel.includes(d)){this.handleCancel(e);return}const{collisionRect:h}=n.current,p=h?{x:h.left,y:h.top}:va;this.referenceCoordinates||(this.referenceCoordinates=p);const m=a(e,{active:t,context:n.current,currentCoordinates:p});if(m){const g=gg(m,p),v={x:0,y:0},{scrollableAncestors:w}=n.current;for(const T of w){const _=e.code,{isTop:A,isRight:R,isLeft:D,isBottom:I,maxScroll:B,minScroll:F}=pS(T),j=Bj(T),z={x:Math.min(_===un.Right?j.right-j.width/2:j.right,Math.max(_===un.Right?j.left:j.left+j.width/2,m.x)),y:Math.min(_===un.Down?j.bottom-j.height/2:j.bottom,Math.max(_===un.Down?j.top:j.top+j.height/2,m.y))},G=_===un.Right&&!R||_===un.Left&&!D,pe=_===un.Down&&!I||_===un.Up&&!A;if(G&&z.x!==m.x){const P=T.scrollLeft+g.x,U=_===un.Right&&P<=B.x||_===un.Left&&P>=F.x;if(U&&!g.y){T.scrollTo({left:P,behavior:c});return}U?v.x=T.scrollLeft-P:v.x=_===un.Right?T.scrollLeft-B.x:T.scrollLeft-F.x,v.x&&T.scrollBy({left:-v.x,behavior:c});break}else if(pe&&z.y!==m.y){const P=T.scrollTop+g.y,U=_===un.Down&&P<=B.y||_===un.Up&&P>=F.y;if(U&&!g.x){T.scrollTo({top:P,behavior:c});return}U?v.y=T.scrollTop-P:v.y=_===un.Down?T.scrollTop-B.y:T.scrollTop-F.y,v.y&&T.scrollBy({top:-v.y,behavior:c});break}}this.handleMove(e,of(gg(m,this.referenceCoordinates),v))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ay.activators=[{eventName:"onKeyDown",handler:(r,e,t)=>{let{keyboardCodes:n=mS,onActivation:o}=e,{active:i}=t;const{code:a}=r.nativeEvent;if(n.start.includes(a)){const c=i.activatorNode.current;return c&&r.target!==c?!1:(r.preventDefault(),o==null||o({event:r.nativeEvent}),!0)}return!1}}];function px(r){return!!(r&&"distance"in r)}function gx(r){return!!(r&&"delay"in r)}class ly{constructor(e,t,n){var o;n===void 0&&(n=$j(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:a}=i;this.props=e,this.events=t,this.document=Sf(a),this.documentListeners=new mh(this.document),this.listeners=new mh(n),this.windowListeners=new mh(Ni(a)),this.initialCoordinates=(o=pv(i))!=null?o:va,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Rs.Resize,this.handleCancel),this.windowListeners.add(Rs.DragStart,hx),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),this.windowListeners.add(Rs.ContextMenu,hx),this.documentListeners.add(Rs.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gx(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(px(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Rs.Click,qj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Rs.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:c}}=i;if(!o)return;const d=(t=pv(e))!=null?t:va,h=gg(o,d);if(!n&&c){if(px(c)){if(c.tolerance!=null&&zm(h,c.tolerance))return this.handleCancel();if(zm(h,c.distance))return this.handleStart()}if(gx(c)&&zm(h,c.tolerance))return this.handleCancel();this.handlePending(c,h);return}e.cancelable&&e.preventDefault(),a(d)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===un.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const Wj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class cy extends ly{constructor(e){const{event:t}=e,n=Sf(t.target);super(e,Wj,n)}}cy.activators=[{eventName:"onPointerDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return!t.isPrimary||t.button!==0?!1:(n==null||n({event:t}),!0)}}];const Vj={move:{name:"mousemove"},end:{name:"mouseup"}};var mv;(function(r){r[r.RightClick=2]="RightClick"})(mv||(mv={}));class Gj extends ly{constructor(e){super(e,Vj,Sf(e.event.target))}}Gj.activators=[{eventName:"onMouseDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return t.button===mv.RightClick?!1:(n==null||n({event:t}),!0)}}];const Hm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Yj extends ly{constructor(e){super(e,Hm)}static setup(){return window.addEventListener(Hm.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Hm.move.name,e)};function e(){}}}Yj.activators=[{eventName:"onTouchStart",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;const{touches:o}=t;return o.length>1?!1:(n==null||n({event:t}),!0)}}];var vh;(function(r){r[r.Pointer=0]="Pointer",r[r.DraggableRect=1]="DraggableRect"})(vh||(vh={}));var vg;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(vg||(vg={}));function Zj(r){let{acceleration:e,activator:t=vh.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:c=vg.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:p,delta:m,threshold:g}=r;const v=Xj({delta:m,disabled:!i}),[w,T]=ij(),_=S.useRef({x:0,y:0}),A=S.useRef({x:0,y:0}),R=S.useMemo(()=>{switch(t){case vh.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case vh.DraggableRect:return o}},[t,o,d]),D=S.useRef(null),I=S.useCallback(()=>{const F=D.current;if(!F)return;const j=_.current.x*A.current.x,z=_.current.y*A.current.y;F.scrollBy(j,z)},[]),B=S.useMemo(()=>c===vg.TreeOrder?[...h].reverse():h,[c,h]);S.useEffect(()=>{if(!i||!h.length||!R){T();return}for(const F of B){if((n==null?void 0:n(F))===!1)continue;const j=h.indexOf(F),z=p[j];if(!z)continue;const{direction:G,speed:pe}=Pj(F,z,R,e,g);for(const P of["x","y"])v[P][G[P]]||(pe[P]=0,G[P]=0);if(pe.x>0||pe.y>0){T(),D.current=F,w(I,a),_.current=pe,A.current=G;return}}_.current={x:0,y:0},A.current={x:0,y:0},T()},[e,I,n,T,i,a,JSON.stringify(R),JSON.stringify(v),w,h,B,p,JSON.stringify(g)])}const Kj={x:{[Mo.Backward]:!1,[Mo.Forward]:!1},y:{[Mo.Backward]:!1,[Mo.Forward]:!1}};function Xj(r){let{delta:e,disabled:t}=r;const n=hv(e);return Wh(o=>{if(t||!n||!o)return Kj;const i={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[Mo.Backward]:o.x[Mo.Backward]||i.x===-1,[Mo.Forward]:o.x[Mo.Forward]||i.x===1},y:{[Mo.Backward]:o.y[Mo.Backward]||i.y===-1,[Mo.Forward]:o.y[Mo.Forward]||i.y===1}}},[t,e,n])}function Jj(r,e){const t=e!=null?r.get(e):void 0,n=t?t.node.current:null;return Wh(o=>{var i;return e==null?null:(i=n??o)!=null?i:null},[n,e])}function Qj(r,e){return S.useMemo(()=>r.reduce((t,n)=>{const{sensor:o}=n,i=o.activators.map(a=>({eventName:a.eventName,handler:e(a.handler,n)}));return[...t,...i]},[]),[r,e])}var vf;(function(r){r[r.Always=0]="Always",r[r.BeforeDragging=1]="BeforeDragging",r[r.WhileDragging=2]="WhileDragging"})(vf||(vf={}));var vv;(function(r){r.Optimized="optimized"})(vv||(vv={}));const mx=new Map;function ez(r,e){let{dragging:t,dependencies:n,config:o}=e;const[i,a]=S.useState(null),{frequency:c,measure:d,strategy:h}=o,p=S.useRef(r),m=_(),g=Nh(m),v=S.useCallback(function(A){A===void 0&&(A=[]),!g.current&&a(R=>R===null?A:R.concat(A.filter(D=>!R.includes(D))))},[g]),w=S.useRef(null),T=Wh(A=>{if(m&&!t)return mx;if(!A||A===mx||p.current!==r||i!=null){const R=new Map;for(let D of r){if(!D)continue;if(i&&i.length>0&&!i.includes(D.id)&&D.rect.current){R.set(D.id,D.rect.current);continue}const I=D.node.current,B=I?new sy(d(I),I):null;D.rect.current=B,B&&R.set(D.id,B)}return R}return A},[r,i,t,m,d]);return S.useEffect(()=>{p.current=r},[r]),S.useEffect(()=>{m||v()},[t,m]),S.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),S.useEffect(()=>{m||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{v(),w.current=null},c))},[c,m,v,...n]),{droppableRects:T,measureDroppableContainers:v,measuringScheduled:i!=null};function _(){switch(h){case vf.Always:return!1;case vf.BeforeDragging:return t;default:return!t}}}function vS(r,e){return Wh(t=>r?t||(typeof e=="function"?e(r):r):null,[e,r])}function tz(r,e){return vS(r,e)}function rz(r){let{callback:e,disabled:t}=r;const n=ny(e),o=S.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,t]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Bg(r){let{callback:e,disabled:t}=r;const n=ny(e),o=S.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[t]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function nz(r){return new sy(_f(r),r)}function vx(r,e,t){e===void 0&&(e=nz);const[n,o]=S.useState(null);function i(){o(d=>{if(!r)return null;if(r.isConnected===!1){var h;return(h=d??t)!=null?h:null}const p=e(r);return JSON.stringify(d)===JSON.stringify(p)?d:p})}const a=rz({callback(d){if(r)for(const h of d){const{type:p,target:m}=h;if(p==="childList"&&m instanceof HTMLElement&&m.contains(r)){i();break}}}}),c=Bg({callback:i});return ol(()=>{i(),r?(c==null||c.observe(r),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),a==null||a.disconnect())},[r]),n}function oz(r){const e=vS(r);return cS(r,e)}const yx=[];function iz(r){const e=S.useRef(r),t=Wh(n=>r?n&&n!==yx&&r&&e.current&&r.parentNode===e.current.parentNode?n:iy(r):yx,[r]);return S.useEffect(()=>{e.current=r},[r]),t}function sz(r){const[e,t]=S.useState(null),n=S.useRef(r),o=S.useCallback(i=>{const a=jm(i.target);a&&t(c=>c?(c.set(a,gv(a)),new Map(c)):null)},[]);return S.useEffect(()=>{const i=n.current;if(r!==i){a(i);const c=r.map(d=>{const h=jm(d);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,gv(h)]):null}).filter(d=>d!=null);t(c.length?new Map(c):null),n.current=r}return()=>{a(r),a(i)};function a(c){c.forEach(d=>{const h=jm(d);h==null||h.removeEventListener("scroll",o)})}},[o,r]),S.useMemo(()=>r.length?e?Array.from(e.values()).reduce((i,a)=>of(i,a),va):gS(r):va,[r,e])}function bx(r,e){e===void 0&&(e=[]);const t=S.useRef(null);return S.useEffect(()=>{t.current=null},e),S.useEffect(()=>{const n=r!==va;n&&!t.current&&(t.current=r),!n&&t.current&&(t.current=null)},[r]),t.current?gg(r,t.current):va}function az(r){S.useEffect(()=>{if(!Pg)return;const e=r.map(t=>{let{sensor:n}=t;return n.setup==null?void 0:n.setup()});return()=>{for(const t of e)t==null||t()}},r.map(e=>{let{sensor:t}=e;return t}))}function lz(r,e){return S.useMemo(()=>r.reduce((t,n)=>{let{eventName:o,handler:i}=n;return t[o]=a=>{i(a,e)},t},{}),[r,e])}function yS(r){return S.useMemo(()=>r?Lj(r):null,[r])}const xx=[];function cz(r,e){e===void 0&&(e=_f);const[t]=r,n=yS(t?Ni(t):null),[o,i]=S.useState(xx);function a(){i(()=>r.length?r.map(d=>hS(d)?n:new sy(e(d),d)):xx)}const c=Bg({callback:a});return ol(()=>{c==null||c.disconnect(),a(),r.forEach(d=>c==null?void 0:c.observe(d))},[r]),o}function uz(r){if(!r)return null;if(r.children.length>1)return r;const e=r.children[0];return Uh(e)?e:r}function dz(r){let{measure:e}=r;const[t,n]=S.useState(null),o=S.useCallback(h=>{for(const{target:p}of h)if(Uh(p)){n(m=>{const g=e(p);return m?{...m,width:g.width,height:g.height}:g});break}},[e]),i=Bg({callback:o}),a=S.useCallback(h=>{const p=uz(h);i==null||i.disconnect(),p&&(i==null||i.observe(p)),n(p?e(p):null)},[e,i]),[c,d]=pg(a);return S.useMemo(()=>({nodeRef:c,rect:t,setRef:d}),[t,c,d])}const fz=[{sensor:cy,options:{}},{sensor:ay,options:{}}],hz={current:{}},Zp={draggable:{measure:fx},droppable:{measure:fx,strategy:vf.WhileDragging,frequency:vv.Optimized},dragOverlay:{measure:_f}};class yh extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return(t=(n=this.get(e))==null?void 0:n.node.current)!=null?t:void 0}}const pz={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new yh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:mg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zp,measureDroppableContainers:mg,windowRect:null,measuringScheduled:!1},gz={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:mg,draggableNodes:new Map,over:null,measureDroppableContainers:mg},Fg=S.createContext(gz),bS=S.createContext(pz);function mz(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yh}}}function vz(r,e){switch(e.type){case Co.DragStart:return{...r,draggable:{...r.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Co.DragMove:return r.draggable.active==null?r:{...r,draggable:{...r.draggable,translate:{x:e.coordinates.x-r.draggable.initialCoordinates.x,y:e.coordinates.y-r.draggable.initialCoordinates.y}}};case Co.DragEnd:case Co.DragCancel:return{...r,draggable:{...r.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Co.RegisterDroppable:{const{element:t}=e,{id:n}=t,o=new yh(r.droppable.containers);return o.set(n,t),{...r,droppable:{...r.droppable,containers:o}}}case Co.SetDroppableDisabled:{const{id:t,key:n,disabled:o}=e,i=r.droppable.containers.get(t);if(!i||n!==i.key)return r;const a=new yh(r.droppable.containers);return a.set(t,{...i,disabled:o}),{...r,droppable:{...r.droppable,containers:a}}}case Co.UnregisterDroppable:{const{id:t,key:n}=e,o=r.droppable.containers.get(t);if(!o||n!==o.key)return r;const i=new yh(r.droppable.containers);return i.delete(t),{...r,droppable:{...r.droppable,containers:i}}}default:return r}}function yz(r){let{disabled:e}=r;const{active:t,activatorEvent:n,draggableNodes:o}=S.useContext(Fg),i=hv(n),a=hv(t==null?void 0:t.id);return S.useEffect(()=>{if(!e&&!n&&i&&a!=null){if(!oy(i)||document.activeElement===i.target)return;const c=o.get(a);if(!c)return;const{activatorNode:d,node:h}=c;if(!d.current&&!h.current)return;requestAnimationFrame(()=>{for(const p of[d.current,h.current]){if(!p)continue;const m=lj(p);if(m){m.focus();break}}})}},[n,e,o,a,i]),null}function bz(r,e){let{transform:t,...n}=e;return r!=null&&r.length?r.reduce((o,i)=>i({transform:o,...n}),t):t}function xz(r){return S.useMemo(()=>({draggable:{...Zp.draggable,...r==null?void 0:r.draggable},droppable:{...Zp.droppable,...r==null?void 0:r.droppable},dragOverlay:{...Zp.dragOverlay,...r==null?void 0:r.dragOverlay}}),[r==null?void 0:r.draggable,r==null?void 0:r.droppable,r==null?void 0:r.dragOverlay])}function wz(r){let{activeNode:e,measure:t,initialRect:n,config:o=!0}=r;const i=S.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;ol(()=>{if(!a&&!c||!e){i.current=!1;return}if(i.current||!n)return;const h=e==null?void 0:e.node.current;if(!h||h.isConnected===!1)return;const p=t(h),m=cS(p,n);if(a||(m.x=0),c||(m.y=0),i.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){const g=uS(h);g&&g.scrollBy({top:m.y,left:m.x})}},[e,a,c,n,t])}const xS=S.createContext({...va,scaleX:1,scaleY:1});var Oc;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Oc||(Oc={}));const Cz=S.memo(function(e){var t,n,o,i;let{id:a,accessibility:c,autoScroll:d=!0,children:h,sensors:p=fz,collisionDetection:m=Aj,measuring:g,modifiers:v,...w}=e;const T=S.useReducer(vz,void 0,mz),[_,A]=T,[R,D]=pj(),[I,B]=S.useState(Oc.Uninitialized),F=I===Oc.Initialized,{draggable:{active:j,nodes:z,translate:G},droppable:{containers:pe}}=_,P=j!=null?z.get(j):null,U=S.useRef({initial:null,translated:null}),V=S.useMemo(()=>{var ht;return j!=null?{id:j,data:(ht=P==null?void 0:P.data)!=null?ht:hz,rect:U}:null},[j,P]),Q=S.useRef(null),[se,ue]=S.useState(null),[oe,ae]=S.useState(null),ge=Nh(w,Object.values(w)),re=Vh("DndDescribedBy",a),ie=S.useMemo(()=>pe.getEnabled(),[pe]),he=xz(g),{droppableRects:Se,measureDroppableContainers:Le,measuringScheduled:ne}=ez(ie,{dragging:F,dependencies:[G.x,G.y],config:he.droppable}),ve=Jj(z,j),ke=S.useMemo(()=>oe?pv(oe):null,[oe]),De=pt(),Oe=tz(ve,he.draggable.measure);wz({activeNode:j!=null?z.get(j):null,config:De.layoutShiftCompensation,initialRect:Oe,measure:he.draggable.measure});const we=vx(ve,he.draggable.measure,Oe),_e=vx(ve?ve.parentElement:null),Ae=S.useRef({activatorEvent:null,active:null,activeNode:ve,collisionRect:null,collisions:null,droppableRects:Se,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:pe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=pe.getNodeFor((t=Ae.current.over)==null?void 0:t.id),Fe=dz({measure:he.dragOverlay.measure}),Qe=(n=Fe.nodeRef.current)!=null?n:ve,Ue=F?(o=Fe.rect)!=null?o:we:null,et=!!(Fe.nodeRef.current&&Fe.rect),ct=oz(et?null:we),Ct=yS(Qe?Ni(Qe):null),It=iz(F?$e??ve:null),Je=cz(It),Ke=bz(v,{transform:{x:G.x-ct.x,y:G.y-ct.y,scaleX:1,scaleY:1},activatorEvent:oe,active:V,activeNodeRect:we,containerNodeRect:_e,draggingNodeRect:Ue,over:Ae.current.over,overlayNodeRect:Fe.rect,scrollableAncestors:It,scrollableAncestorRects:Je,windowRect:Ct}),ft=ke?of(ke,G):null,gt=sz(It),Pe=bx(gt),Xe=bx(gt,[we]),vt=of(Ke,Pe),Nt=Ue?Rj(Ue,Ke):null,xt=V&&Nt?m({active:V,collisionRect:Nt,droppableRects:Se,droppableContainers:ie,pointerCoordinates:ft}):null,Lt=Cj(xt,"id"),[Qt,Ut]=S.useState(null),fr=et?Ke:of(Ke,Xe),hr=Ej(fr,(i=Qt==null?void 0:Qt.rect)!=null?i:null,we),cr=S.useRef(null),Te=S.useCallback((ht,Ft)=>{let{sensor:Ve,options:at}=Ft;if(Q.current==null)return;const lt=z.get(Q.current);if(!lt)return;const _t=ht.nativeEvent,Ot=new Ve({active:Q.current,activeNode:lt,event:_t,options:at,context:Ae,onAbort(Wt){if(!z.get(Wt))return;const{onDragAbort:ir}=ge.current,zt={id:Wt};ir==null||ir(zt),R({type:"onDragAbort",event:zt})},onPending(Wt,Yt,ir,zt){if(!z.get(Wt))return;const{onDragPending:jr}=ge.current,Ye={id:Wt,constraint:Yt,initialCoordinates:ir,offset:zt};jr==null||jr(Ye),R({type:"onDragPending",event:Ye})},onStart(Wt){const Yt=Q.current;if(Yt==null)return;const ir=z.get(Yt);if(!ir)return;const{onDragStart:zt}=ge.current,xr={activatorEvent:_t,active:{id:Yt,data:ir.data,rect:U}};Ls.unstable_batchedUpdates(()=>{zt==null||zt(xr),B(Oc.Initializing),A({type:Co.DragStart,initialCoordinates:Wt,active:Yt}),R({type:"onDragStart",event:xr}),ue(cr.current),ae(_t)})},onMove(Wt){A({type:Co.DragMove,coordinates:Wt})},onEnd:Bt(Co.DragEnd),onCancel:Bt(Co.DragCancel)});cr.current=Ot;function Bt(Wt){return async function(){const{active:ir,collisions:zt,over:xr,scrollAdjustedTranslate:jr}=Ae.current;let Ye=null;if(ir&&jr){const{cancelDrop:ee}=ge.current;Ye={activatorEvent:_t,active:ir,collisions:zt,delta:jr,over:xr},Wt===Co.DragEnd&&typeof ee=="function"&&await Promise.resolve(ee(Ye))&&(Wt=Co.DragCancel)}Q.current=null,Ls.unstable_batchedUpdates(()=>{A({type:Wt}),B(Oc.Uninitialized),Ut(null),ue(null),ae(null),cr.current=null;const ee=Wt===Co.DragEnd?"onDragEnd":"onDragCancel";if(Ye){const be=ge.current[ee];be==null||be(Ye),R({type:ee,event:Ye})}})}}},[z]),le=S.useCallback((ht,Ft)=>(Ve,at)=>{const lt=Ve.nativeEvent,_t=z.get(at);if(Q.current!==null||!_t||lt.dndKit||lt.defaultPrevented)return;const Ot={active:_t};ht(Ve,Ft.options,Ot)===!0&&(lt.dndKit={capturedBy:Ft.sensor},Q.current=at,Te(Ve,Ft))},[z,Te]),st=Qj(p,le);az(p),ol(()=>{we&&I===Oc.Initializing&&B(Oc.Initialized)},[we,I]),S.useEffect(()=>{const{onDragMove:ht}=ge.current,{active:Ft,activatorEvent:Ve,collisions:at,over:lt}=Ae.current;if(!Ft||!Ve)return;const _t={active:Ft,activatorEvent:Ve,collisions:at,delta:{x:vt.x,y:vt.y},over:lt};Ls.unstable_batchedUpdates(()=>{ht==null||ht(_t),R({type:"onDragMove",event:_t})})},[vt.x,vt.y]),S.useEffect(()=>{const{active:ht,activatorEvent:Ft,collisions:Ve,droppableContainers:at,scrollAdjustedTranslate:lt}=Ae.current;if(!ht||Q.current==null||!Ft||!lt)return;const{onDragOver:_t}=ge.current,Ot=at.get(Lt),Bt=Ot&&Ot.rect.current?{id:Ot.id,rect:Ot.rect.current,data:Ot.data,disabled:Ot.disabled}:null,Wt={active:ht,activatorEvent:Ft,collisions:Ve,delta:{x:lt.x,y:lt.y},over:Bt};Ls.unstable_batchedUpdates(()=>{Ut(Bt),_t==null||_t(Wt),R({type:"onDragOver",event:Wt})})},[Lt]),ol(()=>{Ae.current={activatorEvent:oe,active:V,activeNode:ve,collisionRect:Nt,collisions:xt,droppableRects:Se,draggableNodes:z,draggingNode:Qe,draggingNodeRect:Ue,droppableContainers:pe,over:Qt,scrollableAncestors:It,scrollAdjustedTranslate:vt},U.current={initial:Ue,translated:Nt}},[V,ve,xt,Nt,z,Qe,Ue,Se,pe,Qt,It,vt]),Zj({...De,delta:G,draggingRect:Nt,pointerCoordinates:ft,scrollableAncestors:It,scrollableAncestorRects:Je});const yt=S.useMemo(()=>({active:V,activeNode:ve,activeNodeRect:we,activatorEvent:oe,collisions:xt,containerNodeRect:_e,dragOverlay:Fe,draggableNodes:z,droppableContainers:pe,droppableRects:Se,over:Qt,measureDroppableContainers:Le,scrollableAncestors:It,scrollableAncestorRects:Je,measuringConfiguration:he,measuringScheduled:ne,windowRect:Ct}),[V,ve,we,oe,xt,_e,Fe,z,pe,Se,Qt,Le,It,Je,he,ne,Ct]),nt=S.useMemo(()=>({activatorEvent:oe,activators:st,active:V,activeNodeRect:we,ariaDescribedById:{draggable:re},dispatch:A,draggableNodes:z,over:Qt,measureDroppableContainers:Le}),[oe,st,V,we,A,re,z,Qt,Le]);return S.createElement(lS.Provider,{value:D},S.createElement(Fg.Provider,{value:nt},S.createElement(bS.Provider,{value:yt},S.createElement(xS.Provider,{value:hr},h)),S.createElement(yz,{disabled:(c==null?void 0:c.restoreFocus)===!1})),S.createElement(vj,{...c,hiddenTextDescribedById:re}));function pt(){const ht=(se==null?void 0:se.autoScrollEnabled)===!1,Ft=typeof d=="object"?d.enabled===!1:d===!1,Ve=F&&!ht&&!Ft;return typeof d=="object"?{...d,enabled:Ve}:{enabled:Ve}}}),Sz=S.createContext(null),wx="button",_z="Draggable";function Az(r){let{id:e,data:t,disabled:n=!1,attributes:o}=r;const i=Vh(_z),{activators:a,activatorEvent:c,active:d,activeNodeRect:h,ariaDescribedById:p,draggableNodes:m,over:g}=S.useContext(Fg),{role:v=wx,roleDescription:w="draggable",tabIndex:T=0}=o??{},_=(d==null?void 0:d.id)===e,A=S.useContext(_?xS:Sz),[R,D]=pg(),[I,B]=pg(),F=lz(a,e),j=Nh(t);ol(()=>(m.set(e,{id:e,key:i,node:R,activatorNode:I,data:j}),()=>{const G=m.get(e);G&&G.key===i&&m.delete(e)}),[m,e]);const z=S.useMemo(()=>({role:v,tabIndex:T,"aria-disabled":n,"aria-pressed":_&&v===wx?!0:void 0,"aria-roledescription":w,"aria-describedby":p.draggable}),[n,v,T,_,w,p.draggable]);return{active:d,activatorEvent:c,activeNodeRect:h,attributes:z,isDragging:_,listeners:n?void 0:F,node:R,over:g,setNodeRef:D,setActivatorNodeRef:B,transform:A}}function Ez(){return S.useContext(bS)}const Tz="Droppable",Rz={timeout:25};function kz(r){let{data:e,disabled:t=!1,id:n,resizeObserverConfig:o}=r;const i=Vh(Tz),{active:a,dispatch:c,over:d,measureDroppableContainers:h}=S.useContext(Fg),p=S.useRef({disabled:t}),m=S.useRef(!1),g=S.useRef(null),v=S.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:_}={...Rz,...o},A=Nh(T??n),R=S.useCallback(()=>{if(!m.current){m.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{h(Array.isArray(A.current)?A.current:[A.current]),v.current=null},_)},[_]),D=Bg({callback:R,disabled:w||!a}),I=S.useCallback((z,G)=>{D&&(G&&(D.unobserve(G),m.current=!1),z&&D.observe(z))},[D]),[B,F]=pg(I),j=Nh(e);return S.useEffect(()=>{!D||!B.current||(D.disconnect(),m.current=!1,D.observe(B.current))},[B,D]),S.useEffect(()=>(c({type:Co.RegisterDroppable,element:{id:n,key:i,disabled:t,node:B,rect:g,data:j}}),()=>c({type:Co.UnregisterDroppable,key:i,id:n})),[n]),S.useEffect(()=>{t!==p.current.disabled&&(c({type:Co.SetDroppableDisabled,id:n,key:i,disabled:t}),p.current.disabled=t)},[n,i,t,c]),{active:a,rect:g,isOver:(d==null?void 0:d.id)===n,node:B,over:d,setNodeRef:F}}function wS(r,e,t){const n={...r};return e.top+r.y<=t.top?n.y=t.top-e.top:e.bottom+r.y>=t.top+t.height&&(n.y=t.top+t.height-e.bottom),e.left+r.x<=t.left?n.x=t.left-e.left:e.right+r.x>=t.left+t.width&&(n.x=t.left+t.width-e.right),n}const Iz=r=>{let{containerNodeRect:e,draggingNodeRect:t,transform:n}=r;return!t||!e?n:wS(n,t,e)},Mz=r=>{let{transform:e,draggingNodeRect:t,windowRect:n}=r;return!t||!n?e:wS(e,t,n)};function yg(r,e,t){const n=r.slice();return n.splice(t<0?n.length+t:t,0,n.splice(e,1)[0]),n}function Lz(r,e){return r.reduce((t,n,o)=>{const i=e.get(n);return i&&(t[o]=i),t},Array(r.length))}function Np(r){return r!==null&&r>=0}function Dz(r,e){if(r===e)return!0;if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!==e[t])return!1;return!0}function Oz(r){return typeof r=="boolean"?{draggable:r,droppable:r}:r}const CS=r=>{let{rects:e,activeIndex:t,overIndex:n,index:o}=r;const i=yg(e,n,t),a=e[o],c=i[o];return!c||!a?null:{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}},Pp={scaleX:1,scaleY:1},Nz=r=>{var e;let{activeIndex:t,activeNodeRect:n,index:o,rects:i,overIndex:a}=r;const c=(e=i[t])!=null?e:n;if(!c)return null;if(o===t){const h=i[a];return h?{x:0,y:t<a?h.top+h.height-(c.top+c.height):h.top-c.top,...Pp}:null}const d=Pz(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-d,...Pp}:o<t&&o>=a?{x:0,y:c.height+d,...Pp}:{x:0,y:0,...Pp}};function Pz(r,e,t){const n=r[e],o=r[e-1],i=r[e+1];return n?t<e?o?n.top-(o.top+o.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):o?n.top-(o.top+o.height):0:0}const SS="Sortable",_S=S.createContext({activeIndex:-1,containerId:SS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:CS,disabled:{draggable:!1,droppable:!1}});function Bz(r){let{children:e,id:t,items:n,strategy:o=CS,disabled:i=!1}=r;const{active:a,dragOverlay:c,droppableRects:d,over:h,measureDroppableContainers:p}=Ez(),m=Vh(SS,t),g=c.rect!==null,v=S.useMemo(()=>n.map(F=>typeof F=="object"&&"id"in F?F.id:F),[n]),w=a!=null,T=a?v.indexOf(a.id):-1,_=h?v.indexOf(h.id):-1,A=S.useRef(v),R=!Dz(v,A.current),D=_!==-1&&T===-1||R,I=Oz(i);ol(()=>{R&&w&&p(v)},[R,v,w,p]),S.useEffect(()=>{A.current=v},[v]);const B=S.useMemo(()=>({activeIndex:T,containerId:m,disabled:I,disableTransforms:D,items:v,overIndex:_,useDragOverlay:g,sortedRects:Lz(v,d),strategy:o}),[T,m,I.draggable,I.droppable,D,v,_,d,g,o]);return S.createElement(_S.Provider,{value:B},e)}const Fz=r=>{let{id:e,items:t,activeIndex:n,overIndex:o}=r;return yg(t,n,o).indexOf(e)},jz=r=>{let{containerId:e,isSorting:t,wasDragging:n,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:d,transition:h}=r;return!h||!n||c!==i&&o===a?!1:t?!0:a!==o&&e===d},zz={duration:200,easing:"ease"},AS="transform",Hz=Ph.Transition.toString({property:AS,duration:0,easing:"linear"}),$z={roleDescription:"sortable"};function qz(r){let{disabled:e,index:t,node:n,rect:o}=r;const[i,a]=S.useState(null),c=S.useRef(t);return ol(()=>{if(!e&&t!==c.current&&n.current){const d=o.current;if(d){const h=_f(n.current,{ignoreTransform:!0}),p={x:d.left-h.left,y:d.top-h.top,scaleX:d.width/h.width,scaleY:d.height/h.height};(p.x||p.y)&&a(p)}}t!==c.current&&(c.current=t)},[e,t,n,o]),S.useEffect(()=>{i&&a(null)},[i]),i}function Uz(r){let{animateLayoutChanges:e=jz,attributes:t,disabled:n,data:o,getNewIndex:i=Fz,id:a,strategy:c,resizeObserverConfig:d,transition:h=zz}=r;const{items:p,containerId:m,activeIndex:g,disabled:v,disableTransforms:w,sortedRects:T,overIndex:_,useDragOverlay:A,strategy:R}=S.useContext(_S),D=Wz(n,v),I=p.indexOf(a),B=S.useMemo(()=>({sortable:{containerId:m,index:I,items:p},...o}),[m,o,I,p]),F=S.useMemo(()=>p.slice(p.indexOf(a)),[p,a]),{rect:j,node:z,isOver:G,setNodeRef:pe}=kz({id:a,data:B,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:F,...d}}),{active:P,activatorEvent:U,activeNodeRect:V,attributes:Q,setNodeRef:se,listeners:ue,isDragging:oe,over:ae,setActivatorNodeRef:ge,transform:re}=Az({id:a,data:B,attributes:{...$z,...t},disabled:D.draggable}),ie=oj(pe,se),he=!!P,Se=he&&!w&&Np(g)&&Np(_),Le=!A&&oe,ne=Le&&Se?re:null,ke=Se?ne??(c??R)({rects:T,activeNodeRect:V,activeIndex:g,overIndex:_,index:I}):null,De=Np(g)&&Np(_)?i({id:a,items:p,activeIndex:g,overIndex:_}):I,Oe=P==null?void 0:P.id,we=S.useRef({activeId:Oe,items:p,newIndex:De,containerId:m}),_e=p!==we.current.items,Ae=e({active:P,containerId:m,isDragging:oe,isSorting:he,id:a,index:I,items:p,newIndex:we.current.newIndex,previousItems:we.current.items,previousContainerId:we.current.containerId,transition:h,wasDragging:we.current.activeId!=null}),$e=qz({disabled:!Ae,index:I,node:z,rect:j});return S.useEffect(()=>{he&&we.current.newIndex!==De&&(we.current.newIndex=De),m!==we.current.containerId&&(we.current.containerId=m),p!==we.current.items&&(we.current.items=p)},[he,De,m,p]),S.useEffect(()=>{if(Oe===we.current.activeId)return;if(Oe!=null&&we.current.activeId==null){we.current.activeId=Oe;return}const Qe=setTimeout(()=>{we.current.activeId=Oe},50);return()=>clearTimeout(Qe)},[Oe]),{active:P,activeIndex:g,attributes:Q,data:B,rect:j,index:I,newIndex:De,items:p,isOver:G,isSorting:he,isDragging:oe,listeners:ue,node:z,overIndex:_,over:ae,setNodeRef:ie,setActivatorNodeRef:ge,setDroppableNodeRef:pe,setDraggableNodeRef:se,transform:$e??ke,transition:Fe()};function Fe(){if($e||_e&&we.current.newIndex===I)return Hz;if(!(Le&&!oy(U)||!h)&&(he||Ae))return Ph.Transition.toString({...h,property:AS})}}function Wz(r,e){var t,n;return typeof r=="boolean"?{draggable:r,droppable:!1}:{draggable:(t=r==null?void 0:r.draggable)!=null?t:e.draggable,droppable:(n=r==null?void 0:r.droppable)!=null?n:e.droppable}}un.Down,un.Right,un.Up,un.Left;function bg(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=bg(t.children,e);if(n)return n}}function Gh(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&Gh(t.children,e)}function ES(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>t.push(e(n,o))),t}function TS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!TS(t.children,e))return!1}return!0}function Vz(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>{e(n,o)&&t.push(n)}),t}function Gz(r){Array.isArray(r)||(r=[r]);let e=0;return Gh(r,()=>e++),e}function Yz(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const o=bg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,e))}),i=bg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(d=>n(d,t))});if(o===void 0&&i===void 0){const a=r.findIndex(d=>n(d,e)),c=r.findIndex(d=>n(d,t));return r.splice(a,1),r.splice(c,0,e),[...r]}else if(o!==void 0&&i!==void 0&&n(o,i)&&o.children){const a=o.children.findIndex(d=>n(d,e)),c=o.children.findIndex(d=>n(d,t));return a===void 0||c===void 0?null:(o.children.splice(a,1),o.children.splice(c,0,e),o.children=[...o.children],[...r])}return null}function Zz(r,e,t){const n=[],o=[...e];for(;o.length>0;){const i=o.shift();if(i&&!n.find(a=>t(a,i))&&(n.push(i),!(!i.children||i.children.length<1)))for(const a of i.children)o.push(a)}return n}function Kz(r,e,t){Array.isArray(r)||(r=[r]);const n=ES(r,a=>a),o=[],i=[...e];for(;i.length>0;){const a=i.shift();if(!a||o.find(d=>t(d,a)))continue;o.push(a);const c=n.find(d=>{var h;return(h=d.children)==null?void 0:h.some(p=>t(p,a))});c&&i.push(c)}return o}const Nc={find:bg,forEach:Gh,map:ES,every:TS,filter:Vz,length:Gz,replace:Yz,descendants:Zz,ancestors:Kz},Xz="_AWrap_1tiv0_1",Jz="_AContainer_1tiv0_10",Qz="_ATree_1tiv0_18",eH="_ATreeBody_1tiv0_30",tH="_CoverBorder_1tiv0_36",rH="_InsertBorder_1tiv0_45",nH="_ATreeHeader_1tiv0_76",oH="_ATreeBodyHeader_1tiv0_82",iH="_ATreeBodyHeaderResources_1tiv0_92",sH="_ATreeItem_1tiv0_98",aH="_IsSelectUsed_1tiv0_114",lH="_IsSelected_1tiv0_117",cH="_IsSearchSelected_1tiv0_122",uH="_IsHovered_1tiv0_133",dH="_CheckBox_1tiv0_137",fH="_Indents_1tiv0_149",hH="_ExpandIcon_1tiv0_156",pH="_Content_1tiv0_168",gH="_RightSticky_1tiv0_177",mH="_SearchInputWrap_1tiv0_187",vH="_SearchInput_1tiv0_187",yH="_RightAddon_1tiv0_199",bH="_RightAddonIcon_1tiv0_210",xH="_Loader_1tiv0_217",wH="_IsChildOfDragSource_1tiv0_222",xn={AWrap:Xz,AContainer:Jz,ATree:Qz,ATreeBody:eH,CoverBorder:tH,InsertBorder:rH,ATreeHeader:nH,ATreeBodyHeader:oH,ATreeBodyHeaderResources:iH,ATreeItem:sH,IsSelectUsed:aH,IsSelected:lH,IsSearchSelected:cH,IsHovered:uH,CheckBox:dH,Indents:fH,ExpandIcon:hH,Content:pH,RightSticky:gH,SearchInputWrap:mH,SearchInput:vH,RightAddon:yH,RightAddonIcon:bH,Loader:xH,IsChildOfDragSource:wH},CH=r=>{const{isEqual:e,item:t,itemId:n,selectDisabled:o,selectUnused:i,isParentDisabled:a,indents:c,extIndents:d,useExpand:h,useSelect:p,useSearch:m,showCheckbox:g,icons:v,iconWidth:w,isSelectMulti:T,isDraggable:_,isParentCheckHovered:A,hoverdItem:R,onMouseOver:D,onMouseLeave:I,ContentRenderer:B,TreeItemRenderer:F,RightStickyAddon:j,resources:z,containerRef:G,TreeItemStyle:pe,TreeItemClassName:P,searchItemStyle:U,searchItemClassName:V,height:Q,isDragSrcItem:se,isChildOfDragItem:ue}=r,{children:oe}=S.useMemo(()=>t,[t]),[ae,ge]=S.useMemo(()=>h,[h]),[re,ie]=S.useMemo(()=>p,[p]),[he,Se]=S.useMemo(()=>m,[m]),Le=S.useMemo(()=>i?i(t):!1,[i,t]),ne=S.useMemo(()=>!o||a?a:o(t),[o,a,t]),ve=S.useMemo(()=>ae.some(nt=>e(nt,t)),[ae,e,t]),ke=S.useMemo(()=>!oe||oe.length<1?"noChild":ve?"expanded":"collapsed",[oe,ve]),De=S.useMemo(()=>Or.getContent(v,r),[v,r]),Oe=S.useMemo(()=>{const nt=De==null?void 0:De[ke];return wv.includes(nt)?C.jsx(en,{icon:nt,style:{width:w,height:w}}):nt},[De,w,ke]),we=S.useCallback(nt=>{!ge||ke==="noChild"||(ge(ve?ae.filter(pt=>!e(pt,t)):[...ae,t]),nt.stopPropagation())},[ge,ae,ve,t,e,ke]),_e=S.useMemo(()=>re.some(nt=>e(nt,t)),[re,e,t]),Ae=S.useCallback(()=>{!ie||ne||(ie(T?_e?re.filter(nt=>!e(nt,t)):[...re,t]:[t]),he&&Se&&he.items.some(nt=>e(nt,t))&&Se({...he,item:t}))},[T,ne,_e,he,Se,ie,e,re,t]),$e=S.useMemo(()=>he==null?void 0:he.items.some(nt=>e(nt,t)),[he,e,t]),Fe=S.useMemo(()=>$e&&(he==null?void 0:he.item)&&e(he.item,t),[$e,he,e,t]),Qe=S.useRef(null),Ue=S.useRef(null),{attributes:et,listeners:ct,setNodeRef:Ct,transform:It,transition:Je,isDragging:Ke}=Uz({id:n||`item-${JSON.stringify(t)}`,disabled:!_||!!a||!n}),ft=S.useMemo(()=>ue?ue(t):!1,[ue,t]),gt=S.useMemo(()=>{const nt=It?{transform:Ph.Transform.toString(It),transition:Je,opacity:Ke?.5:1,zIndex:Ke?1:"auto"}:{};return se||ft?{...nt,opacity:.5,zIndex:10}:nt},[It,Je,Ke,se,ft]);S.useEffect(()=>{n&&Ct&&Ue.current&&Ct(Ue.current)},[n,Ct]),S.useEffect(()=>{setTimeout(()=>{if(Fe&&Qe.current&&G.current){const{top:nt,bottom:pt}=Qe.current.getBoundingClientRect(),{top:ht,bottom:Ft}=G.current.getBoundingClientRect();(nt<ht||pt>Ft)&&Qe.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[G,Fe]);const[Pe,Xe]=S.useState(!1),vt=S.useCallback(()=>!ne&&Xe(!0),[ne]),Nt=S.useCallback(()=>!ne&&Xe(!1),[ne]),xt=S.useMemo(()=>Nc.map(t,nt=>nt).filter(nt=>!(o!=null&&o(nt))&&!(i!=null&&i(nt))),[o,i,t]),Lt=S.useMemo(()=>!g||!T?!1:_e&&xt.some(nt=>re.some(pt=>e(nt,pt)))&&xt.some(nt=>!re.some(pt=>e(nt,pt))),[g,T,_e,xt,e,re]),Qt=S.useMemo(()=>g?T?xt.every(nt=>re.some(pt=>e(nt,pt))):re.some(nt=>e(nt,t)):!1,[g,T,xt,t,e,re]),Ut=S.useCallback(()=>{if(!(!ie||ne))if(T)if(_e){const nt=re.filter(pt=>!(i!=null&&i(pt))&&!(o!=null&&o(pt))&&xt.some(ht=>e(ht,pt)));nt.length>0&&ie(re.filter(pt=>!nt.some(ht=>e(pt,ht))))}else{const nt=xt.filter(pt=>!(i!=null&&i(pt))&&!(o!=null&&o(pt))&&!re.some(ht=>e(ht,pt)));nt.length>0&&ie([...re,...nt])}else ie([t])},[ne,o,i,T,ie,e,_e,re,xt,t]),fr=S.useCallback(nt=>{ne||Ut(),nt.stopPropagation()},[ne,Ut]),hr=S.useMemo(()=>{if(!g||!T||ne)return"";if(_e){const pt=re.filter(ht=>!(i!=null&&i(ht))&&!(o!=null&&o(ht))&&xt.some(Ft=>e(Ft,ht)));if(pt.length>0)return z["deselect n"](pt.length)}const nt=xt.filter(pt=>!(i!=null&&i(pt))&&!(o!=null&&o(pt))&&!re.some(ht=>e(ht,pt)));return z["select n"](nt.length)},[o,i,z,ne,g,T,_e,xt,e,re]),cr=S.useMemo(()=>Or.getContent(j,r),[j,r]),Te=S.useMemo(()=>Or.getContent(pe,r),[r,pe]),le=S.useMemo(()=>Or.getContent(P,r),[r,P]),st=S.useMemo(()=>Or.getContent(V,r),[r,V]),yt=S.useMemo(()=>Or.getContent(U,r),[r,U]);return C.jsxs(S.Fragment,{children:[C.jsxs(Kr,{abaseRef:Ue,isDisabled:ne,className:Ge.clsx(xn.ATreeItem,_e&&xn.IsSelected,!ne&&(Pe||A)&&xn.IsHovered,$e&&xn.IsSearched,Fe&&(st||xn.IsSearchSelected),!Le&&xn.IsSelectUsed,ft&&xn.IsChildOfDragSource,"NoSelect",le),style:{...Te,...Fe&&yt?yt:{},"--ATreeItem_height":`${Q}px`,...gt||{}},onClick:Ae,onMouseLeave:nt=>I==null?void 0:I(nt,t),onMouseOver:nt=>D==null?void 0:D(nt,t),..._&&!ne&&et?et:{},..._&&!ne&&ct?ct:{},children:[g&&C.jsx(af,{className:xn.CheckBox,isDisabled:ne,isIndeterminate:Lt,tooltip:hr,useCheck:[+Qt,Ut],style:{visibility:ne||Le?"hidden":"visible",zIndex:ne||Le?0:2},onClick:fr,onMouseOut:Nt,onMouseOver:vt}),C.jsx("div",{className:xn.Indents,style:{paddingLeft:g?0:De!=null&&De.noChild?12:0},children:c.map((nt,pt)=>{const ht=pt===c.length-1;return C.jsx(dC,{value:nt,map:{Collapsed:d?d({iconWidth:w}).collapsed:C.jsx(_H,{iconWidth:w}),Expanded:d?d({iconWidth:w,isLast:ht}).expanded:C.jsx(SH,{iconWidth:w,isLast:ht}),IsLast:d?d({iconWidth:w}).isLast:C.jsx(AH,{iconWidth:w})}},pt)})}),Oe&&C.jsx("div",{className:xn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:we,children:Oe}),C.jsx("div",{className:Ge.clsx(xn.Content,"NoSelect"),children:C.jsx(B,{containerRef:G,ContentRenderer:B,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,indents:c,isDraggable:_,isEqual:e,isParentCheckHovered:T&&(Pe||A),isSelectMulti:T,item:t,itemId:n,resources:z,RightStickyAddon:j,searchItemClassName:st,searchItemStyle:U,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:F,TreeItemStyle:pe,useExpand:h,useSearch:m,useSelect:p,onMouseLeave:I,onMouseOver:D})}),cr&&C.jsx("div",{className:xn.RightSticky,children:cr})]}),ve&&(oe==null?void 0:oe.map((nt,pt)=>C.jsx(F,{containerRef:G,ContentRenderer:B,extIndents:d,height:Q,hoverdItem:R,icons:v,iconWidth:w,isChildOfDragItem:ue,isDraggable:_,isDragSrcItem:se,isEqual:e,isParentCheckHovered:T&&(Pe||A),isSelectMulti:T,item:nt,itemId:n?`${n}-child-${pt}`:void 0,resources:z,RightStickyAddon:j,searchItemClassName:st,searchItemStyle:U,selectDisabled:o,selectUnused:i,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:F,TreeItemStyle:pe,useExpand:h,useSearch:m,useSelect:p,indents:[...c.map(ht=>ht==="IsLast"?"Collapsed":ht),pt===oe.length-1?"IsLast":"Expanded"],onMouseLeave:I,onMouseOver:D},pt)))]})},SH=({iconWidth:r,isLast:e})=>C.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&C.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),_H=({iconWidth:r})=>C.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),AH=({iconWidth:r})=>C.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),EH=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:o,searchDown:i,searchEnter:a,isDisabled:c,isLoading:d,resources:h,maxLength:p,autoFocus:m}=r,g=S.useCallback(T=>{T.key==="Enter"?a():T.key==="ArrowDown"?i():T.key==="ArrowUp"&&o(),T.preventDefault(),T.stopPropagation()},[i,a,o]),v=S.useCallback(T=>{n(T)},[n]),w=S.useMemo(()=>c||d?-1:void 0,[c,d]);return C.jsx(Vc,{autoFocus:m,className:xn.SearchInput,isDisabled:c,maxLength:p,placeholder:h["Search(Placeholder)"],tabIndex:w,useValue:[(t==null?void 0:t.keyword)??"",v],RightAddon:C.jsx(TH,{isEqual:e,resources:h,searchDown:i,searchEnter:a,searchResult:t,searchUp:o}),wrapProps:{className:xn.SearchInputWrap},onKeyDown:g})},TH=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:o,searchEnter:i,resources:a}=r,c=S.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(w=>t.item&&e(w,t.item))+1,[t,e]),d=S.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),h=S.useMemo(()=>c<2,[c]),p=S.useMemo(()=>c>=d,[c,d]),m=S.useCallback(w=>{w.stopPropagation(),!h&&n()},[n,h]),g=S.useCallback(w=>{w.stopPropagation(),!p&&o()},[o,p]),v=S.useCallback(w=>{w.stopPropagation(),i()},[i]);return C.jsx("div",{className:Ge.clsx(xn.RightAddon,"NoSelect"),children:t?C.jsxs(C.Fragment,{children:[c,"/",d,C.jsx(Kr,{isDisabled:h,onClick:m,children:C.jsx(en,{className:xn.RightAddonIcon,icon:"ArrowUp",mask:""})}),C.jsx(Kr,{isDisabled:p,onClick:g,children:C.jsx(en,{className:xn.RightAddonIcon,icon:"ArrowDown"})})]}):C.jsx(So,{className:xn.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:v})})},RH=r=>{var jr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:o,useExpand:i,useSelect:a,useSearch:c,showCheckbox:d,iconWidth:h=24,icons:p={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:m,isSelectMulti:g=!1,noSearch:v=!1,isDraggable:w,noSyncSearchSelect:T=!1,actionRef:_,placeholder:A,searchPredicate:R=IH,isDisabled:D,isLoading:I,ContentRenderer:B=kH,TreeItemRenderer:F=CH,RightStickyAddon:j,TopRightAddon:z,TreeTopAddon:G,resources:pe,maxLength:P,autoFocus:U,TreeItemStyle:V,TreeItemClassName:Q,OverflowPadding:se,insertBorder:ue,width:oe,searchItemClassName:ae,searchItemStyle:ge,height:re=40,...ie}=r,he=S.useMemo(()=>({...wr.ATree,...pe}),[pe]),Se=S.useCallback((Ye,ee)=>!Ye||!ee?!1:e!==void 0?Array.isArray(e)?e.every(be=>Ye&&ee&&Ye[be]!==void 0&&ee[be]!==void 0&&Ya.isEqual(Ye[be],ee[be])):Ye&&ee&&Ye[e]!==void 0&&ee[e]!==void 0&&Ya.isEqual(Ye[e],ee[e]):Ya.isEqual(Ye,ee),[e]),Le=S.useRef(null),[ne,ve]=wn(o,[]),ke=S.useMemo(()=>Nc.map(ne,Ye=>Ye),[ne]),[De,Oe]=wn(i,[]),[we,_e]=wn(a,[]),[Ae,$e]=wn(c,void 0),Fe=S.useCallback(Ye=>{if(D||!Oe||De.some(ze=>Se(ze,Ye)))return;const ee=[];let be=Ye;for(;be;){const ze=be;De.find(Tt=>Se(Tt,ze))||ee.push(ze),be=ke.find(Tt=>{var jt;return(jt=Tt.children)==null?void 0:jt.some(Dt=>Se(Dt,ze))})}Oe([...De,...ee])},[De,D,Se,Oe,ke]),Qe=S.useCallback(()=>{!Oe||D||Oe([...ke])},[ke,D,Oe]),Ue=S.useCallback(()=>{!Oe||D||Oe([])},[Oe,D]),et=S.useCallback(Ye=>{!_e||D||n!=null&&n(Ye)||(_e([Ye]),Fe(Ye))},[_e,D,n,Fe]),ct=S.useCallback(Ye=>{if(!$e||D)return;if(!Ye||v){$e(void 0),T||_e==null||_e([]);return}const ee=Nc.filter(ne,ze=>R(Ye,ze));let be;if(ee.find(ze=>(Ae==null?void 0:Ae.item)&&Se(ze,Ae.item))?be=Ae==null?void 0:Ae.item:ee.length>0&&(be=ee[0]),$e({keyword:Ye,items:ee,item:be}),be&&Fe(be),_e&&!T)if(g)_e(ee);else{const ze=ee.find(Tt=>be&&Se(Tt,be));_e(ze?[ze]:[])}},[ne,D,Se,R,$e,_e,Fe,T,v,g,Ae]),Ct=S.useRef(!1);S.useEffect(()=>{Ct.current=!0},[ne]),S.useEffect(()=>{Ae&&Ct.current&&(ct(Ae.keyword),Ct.current=!1)},[ct,Ae]);const It=S.useCallback(()=>{if(!Ae||!$e||D)return;let Ye=Ae.items.findIndex(ee=>Ae.item&&Se(ee,Ae.item))-1;Ye<0||($e({...Ae,item:Ae.items[Ye]}),Fe(Ae.items[Ye]),T||et(Ae.items[Ye]))},[Ae,Fe,$e,D,et,Se,T]),Je=S.useCallback(()=>{if(!Ae||!$e||D)return;let Ye=Ae.items.findIndex(ee=>Ae.item&&Se(ee,Ae.item))+1;Ye>=Ae.items.length||($e({...Ae,item:Ae.items[Ye]}),Fe(Ae.items[Ye]),T||et(Ae.items[Ye]))},[Ae,Fe,D,$e,et,Se,T]),Ke=S.useCallback(()=>{if(!Ae||!$e||D)return;let Ye=Ae.items.findIndex(be=>Ae.item&&Se(be,Ae.item));if(!T||n!=null&&n(Ae.items[Ye])){Je();return}if(we.some(be=>Ae.item&&Se(be,Ae.item))){let be=Ye+1;const ze=Ae.items[be];if(be>=Ae.items.length)return;$e({...Ae,item:ze}),et(ze)}else et(Ae.items[Ye])},[Ae,$e,D,we,T,Je,Se,et,n]),[ft,gt]=S.useState(!1),Pe=S.useCallback(()=>gt(!0),[]),Xe=S.useCallback(()=>gt(!1),[]),vt=S.useMemo(()=>n?Nc.map(ne,Ye=>Ye).filter(Ye=>!n(Ye)):t?Nc.map(ne,Ye=>Ye).filter(Ye=>!t(Ye)):Nc.map(ne,Ye=>Ye),[n,t,ne]),Nt=S.useMemo(()=>!d||!g?!1:we.length>0&&vt.length>we.length,[d,g,we,vt]),xt=S.useMemo(()=>!d||!g?!1:we.length>0&&vt.length===we.length,[d,g,we,vt]),Lt=S.useCallback(()=>{if(!_e||!g||D)return;const Ye=we.filter(ee=>!(n!=null&&n(ee))&&!(t!=null&&t(ee))&&vt.some(be=>Se(be,ee)));if(Ye.length>0)_e(we.filter(ee=>!Ye.some(be=>Se(ee,be))));else{const ee=vt.filter(be=>!(n!=null&&n(be))&&!(t!=null&&t(be))&&!we.some(ze=>Se(ze,be)));ee.length>0&&_e([...we,...ee])}},[g,D,n,t,_e,we,vt,Se]),Qt=S.useMemo(()=>{if(!d||!g||D)return"";const Ye=we.filter(ee=>!(n!=null&&n(ee))&&!(t!=null&&t(ee))&&vt.some(be=>Se(be,ee)));if(Ye.length>0)return he["deselect n"](Ye.length);{const ee=vt.filter(be=>!(n!=null&&n(be))&&!(t!=null&&t(be))&&!we.some(ze=>Se(ze,be)));return he["select n"](ee.length)}},[n,t,D,he,d,g,vt,we,Se]),[Ut,fr]=S.useState(),hr=yj(ux(cy,{activationConstraint:{distance:8}}),ux(ay)),cr=S.useRef(new Map),Te=S.useCallback(Ye=>{if(!cr.current.has(Ye)){const ee=`item_${Ya.uniqueId()}`;cr.current.set(Ye,ee)}return cr.current.get(Ye)},[]),le=S.useCallback(Ye=>ke.find(ee=>Te(ee)===Ye),[ke,Te]),st=S.useCallback(Ye=>!Ut||!Ut.children?!1:Ut.children.some(be=>Se(be,Ye))?!0:Ut.children.some(be=>be.children?Nc.find(be,ze=>Se(ze,Ye))!==void 0:!1),[Ut,Se]),yt=S.useCallback(Ye=>{if(!w||D)return;const ee=le(Ye.active.id);ee&&fr(ee)},[w,D,le]),nt=S.useCallback((Ye,ee,be,ze)=>{const Tt=Ye.findIndex(Dt=>ze(Dt,ee)),jt=Ye.findIndex(Dt=>ze(Dt,be));return Tt!==-1&&jt!==-1?yg(Ye,Tt,jt):Ye.map(Dt=>{if(!Dt.children)return Dt;const er=Dt.children.findIndex(kt=>ze(kt,ee)),Jt=Dt.children.findIndex(kt=>ze(kt,be));return er!==-1&&Jt!==-1?{...Dt,children:yg(Dt.children,er,Jt)}:Dt.children?{...Dt,children:nt(Dt.children,ee,be,ze)}:Dt})},[]),pt=S.useCallback(Ye=>{!w||D||!Ut||!Ye.over||le(Ye.over.id)},[w,D,Ut,le]),ht=S.useCallback(Ye=>{if(!w||D||!ve||!Ut||!Ye.over)return;const ee=le(Ye.over.id);if(!ee||Se(Ut,ee)){fr(void 0);return}const be=nt(ne,Ut,ee,Se);ve(be),fr(void 0)},[w,D,ve,Ut,le,Se,ne,nt]),Ft=S.useMemo(()=>ne.map(Ye=>Te(Ye)),[ne,Te]);S.useEffect(()=>{var Ye;d||(Ye=Le.current)==null||Ye.scrollTo(0,0)},[d,Le]),S.useEffect(()=>{!g&&we.length>1&&(_e==null||_e([we[we.length-1]]))},[g,_e,we]),S.useEffect(()=>{_&&(_.current={expandAll:Qe,collapseAll:Ue})},[_,Qe,Ue]),S.useEffect(()=>{if(!t||!_e)return;const Ye=we.filter(ee=>!t(ee));we.length!==Ye.length&&_e(Ye)},[t,we,_e]),S.useEffect(()=>{if(!n||!_e)return;const Ye=we.filter(ee=>!n(ee));we.length!==Ye.length&&_e(Ye)},[n,we,_e]),S.useEffect(()=>{$e&&$e(void 0)},[$e]);const[Ve,at]=S.useState(!1);S.useEffect(()=>{at(Ye=>!Ye)},[ne]);const[lt,_t]=S.useState(null),Ot=S.useCallback((Ye,ee)=>{D||(Ye.stopPropagation(),Ye.preventDefault(),_t(ee))},[D]),Bt=S.useCallback((Ye,ee)=>{lt===null||D||Se(ee,lt)&&(Ye.stopPropagation(),Ye.preventDefault(),_t(null))},[lt,D,Se]),Wt=S.useRef(null),[Yt,ir]=S.useState(!1),[zt,xr]=S.useState((jr=Wt.current)==null?void 0:jr.scrollHeight);return S.useEffect(()=>{if(De.length<0)return;const Ye=Le.current,ee=Wt.current,be=Ye.clientHeight<ee.clientHeight;xr(be?ee.scrollHeight:Ye.clientHeight),ir(be)},[De]),C.jsxs(Kr,{...ie,className:Ge.clsx(ie.className,xn.AWrap),isDisabled:D,children:[(!v||z)&&C.jsxs(Rn,{className:xn.ATreeHeader,children:[!v&&C.jsx(EH,{autoFocus:U,initSearch:ct,isDisabled:D,isEqual:Se,isLoading:I,maxLength:P,resources:he,searchDown:Je,searchEnter:Ke,searchResult:Ae,searchUp:It}),!v&&z&&C.jsx(Nn,{w:8}),z]}),(!v||z||d&&g||w)&&C.jsx(Iv,{isLoading:I&&ne.length!==0}),(d&&g||w)&&C.jsxs("div",{className:Ge.clsx(xn.ATreeBodyHeader,"NoSelect"),children:[d&&C.jsx(af,{className:xn.CheckBox,isDisabled:D,isIndeterminate:Nt,tooltip:Qt,useCheck:[+xt,()=>Lt()],onMouseOut:Xe,onMouseOver:Pe}),he.Items,C.jsx(Ku,{}),C.jsxs("div",{className:Ge.clsx(xn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Yt?8:0},children:[C.jsx("span",{children:d&&he["*Click row for single select"]}),C.jsx("span",{children:w&&he["*Change order to row drag"]})]})]}),C.jsx("div",{ref:Le,className:Ge.clsx(ie.className,xn.AContainer),children:C.jsxs("div",{className:xn.ATree,style:{minWidth:oe||"fit-content",marginRight:se&&Yt?8:0},children:[C.jsxs("div",{ref:Wt,className:xn.ATreeBody,children:[ne.length===0?I?C.jsx(MH,{text:he["Loading Contents..."]}):A:G,C.jsx(Cz,{collisionDetection:Sj,modifiers:[Iz,Mz],sensors:hr,measuring:{droppable:{strategy:vf.Always}},onDragEnd:ht,onDragOver:pt,onDragStart:yt,children:C.jsx(Bz,{items:Ft,strategy:Nz,children:ne.map((Ye,ee)=>C.jsx(F,{containerRef:Le,ContentRenderer:B,extIndents:m,height:re,hoverdItem:lt,icons:p,iconWidth:h,indents:[],isChildOfDragItem:st,isDraggable:w,isDragSrcItem:Se(Ye,Ut),isEqual:Se,isParentCheckHovered:g&&ft,isParentDisabled:D,isSelectMulti:g,item:Ye,itemId:Te(Ye),resources:he,RightStickyAddon:j,searchItemClassName:ae,searchItemStyle:ge,selectDisabled:t,selectUnused:n,showCheckbox:d,TreeItemClassName:Q,TreeItemRenderer:F,TreeItemStyle:V,useExpand:[De,Oe],useSearch:[Ae,$e],useSelect:[we,_e],onMouseLeave:Bt,onMouseOver:Ot},`${ee}${Ve}`))})})]}),ue&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:xn.CoverBorder}),C.jsx("div",{className:xn.InsertBorder,style:{"--InsertBorder_height":`${re}px`,height:Yt?zt:"100%"}})]})]})})]})},kH=r=>{const{item:e}=r,t={};return ar.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function IH(r,e){return ar.some(e,(t,n)=>{var o;return(o=ar.stringify(n))==null?void 0:o.toLowerCase().includes(r.toLowerCase())})}const MH=r=>{const{text:e}=r;return C.jsxs(Rn,{className:Ge.clsx(xn.Loader,"NoSelect"),children:[C.jsx(en,{height:40,icon:"Spinner",style:{height:40},width:40}),C.jsx(SC,{text:e})]})};var $m,Cx;function Af(){return Cx||(Cx=1,$m=TypeError),$m}const LH={},DH=Object.freeze(Object.defineProperty({__proto__:null,default:LH},Symbol.toStringTag,{value:"Module"})),OH=vT(DH);var qm,Sx;function jg(){if(Sx)return qm;Sx=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&typeof i.get=="function"?i.get:null,c=o&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,T=Object.prototype.toString,_=Function.prototype.toString,A=String.prototype.match,R=String.prototype.slice,D=String.prototype.replace,I=String.prototype.toUpperCase,B=String.prototype.toLowerCase,F=RegExp.prototype.test,j=Array.prototype.concat,z=Array.prototype.join,G=Array.prototype.slice,pe=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,U=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="object",se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Q||!0)?Symbol.toStringTag:null,ue=Object.prototype.propertyIsEnumerable,oe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Te){return Te.__proto__}:null);function ae(Te,le){if(Te===1/0||Te===-1/0||Te!==Te||Te&&Te>-1e3&&Te<1e3||F.call(/e/,le))return le;var st=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Te=="number"){var yt=Te<0?-pe(-Te):pe(Te);if(yt!==Te){var nt=String(yt),pt=R.call(le,nt.length+1);return D.call(nt,st,"$&_")+"."+D.call(D.call(pt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(le,st,"$&_")}var ge=OH,re=ge.custom,ie=Fe(re)?re:null,he={__proto__:null,double:'"',single:"'"},Se={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};qm=function Te(le,st,yt,nt){var pt=st||{};if(et(pt,"quoteStyle")&&!et(he,pt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(pt,"maxStringLength")&&(typeof pt.maxStringLength=="number"?pt.maxStringLength<0&&pt.maxStringLength!==1/0:pt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ht=et(pt,"customInspect")?pt.customInspect:!0;if(typeof ht!="boolean"&&ht!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(pt,"indent")&&pt.indent!==null&&pt.indent!==" "&&!(parseInt(pt.indent,10)===pt.indent&&pt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(et(pt,"numericSeparator")&&typeof pt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ft=pt.numericSeparator;if(typeof le>"u")return"undefined";if(le===null)return"null";if(typeof le=="boolean")return le?"true":"false";if(typeof le=="string")return vt(le,pt);if(typeof le=="number"){if(le===0)return 1/0/le>0?"0":"-0";var Ve=String(le);return Ft?ae(le,Ve):Ve}if(typeof le=="bigint"){var at=String(le)+"n";return Ft?ae(le,at):at}var lt=typeof pt.depth>"u"?5:pt.depth;if(typeof yt>"u"&&(yt=0),yt>=lt&<>0&&typeof le=="object")return ke(le)?"[Array]":"[Object]";var _t=fr(pt,yt);if(typeof nt>"u")nt=[];else if(It(nt,le)>=0)return"[Circular]";function Ot(kt,xe,ot){if(xe&&(nt=G.call(nt),nt.push(xe)),ot){var wt={depth:pt.depth};return et(pt,"quoteStyle")&&(wt.quoteStyle=pt.quoteStyle),Te(kt,wt,yt+1,nt)}return Te(kt,pt,yt+1,nt)}if(typeof le=="function"&&!Oe(le)){var Bt=Ct(le),Wt=cr(le,Ot);return"[Function"+(Bt?": "+Bt:" (anonymous)")+"]"+(Wt.length>0?" { "+z.call(Wt,", ")+" }":"")}if(Fe(le)){var Yt=Q?D.call(String(le),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(le);return typeof le=="object"&&!Q?xt(Yt):Yt}if(Xe(le)){for(var ir="<"+B.call(String(le.nodeName)),zt=le.attributes||[],xr=0;xr<zt.length;xr++)ir+=" "+zt[xr].name+"="+Le(ne(zt[xr].value),"double",pt);return ir+=">",le.childNodes&&le.childNodes.length&&(ir+="..."),ir+="</"+B.call(String(le.nodeName))+">",ir}if(ke(le)){if(le.length===0)return"[]";var jr=cr(le,Ot);return _t&&!Ut(jr)?"["+hr(jr,_t)+"]":"[ "+z.call(jr,", ")+" ]"}if(we(le)){var Ye=cr(le,Ot);return!("cause"in Error.prototype)&&"cause"in le&&!ue.call(le,"cause")?"{ ["+String(le)+"] "+z.call(j.call("[cause]: "+Ot(le.cause),Ye),", ")+" }":Ye.length===0?"["+String(le)+"]":"{ ["+String(le)+"] "+z.call(Ye,", ")+" }"}if(typeof le=="object"&&ht){if(ie&&typeof le[ie]=="function"&&ge)return ge(le,{depth:lt-yt});if(ht!=="symbol"&&typeof le.inspect=="function")return le.inspect()}if(Je(le)){var ee=[];return n&&n.call(le,function(kt,xe){ee.push(Ot(xe,le,!0)+" => "+Ot(kt,le))}),Qt("Map",t.call(le),ee,_t)}if(gt(le)){var be=[];return c&&c.call(le,function(kt){be.push(Ot(kt,le))}),Qt("Set",a.call(le),be,_t)}if(Ke(le))return Lt("WeakMap");if(Pe(le))return Lt("WeakSet");if(ft(le))return Lt("WeakRef");if(Ae(le))return xt(Ot(Number(le)));if(Qe(le))return xt(Ot(P.call(le)));if($e(le))return xt(w.call(le));if(_e(le))return xt(Ot(String(le)));if(typeof window<"u"&&le===window)return"{ [object Window] }";if(typeof globalThis<"u"&&le===globalThis||typeof Di<"u"&&le===Di)return"{ [object globalThis] }";if(!De(le)&&!Oe(le)){var ze=cr(le,Ot),Tt=oe?oe(le)===Object.prototype:le instanceof Object||le.constructor===Object,jt=le instanceof Object?"":"null prototype",Dt=!Tt&&se&&Object(le)===le&&se in le?R.call(ct(le),8,-1):jt?"Object":"",er=Tt||typeof le.constructor!="function"?"":le.constructor.name?le.constructor.name+" ":"",Jt=er+(Dt||jt?"["+z.call(j.call([],Dt||[],jt||[]),": ")+"] ":"");return ze.length===0?Jt+"{}":_t?Jt+"{"+hr(ze,_t)+"}":Jt+"{ "+z.call(ze,", ")+" }"}return String(le)};function Le(Te,le,st){var yt=st.quoteStyle||le,nt=he[yt];return nt+Te+nt}function ne(Te){return D.call(String(Te),/"/g,""")}function ve(Te){return!se||!(typeof Te=="object"&&(se in Te||typeof Te[se]<"u"))}function ke(Te){return ct(Te)==="[object Array]"&&ve(Te)}function De(Te){return ct(Te)==="[object Date]"&&ve(Te)}function Oe(Te){return ct(Te)==="[object RegExp]"&&ve(Te)}function we(Te){return ct(Te)==="[object Error]"&&ve(Te)}function _e(Te){return ct(Te)==="[object String]"&&ve(Te)}function Ae(Te){return ct(Te)==="[object Number]"&&ve(Te)}function $e(Te){return ct(Te)==="[object Boolean]"&&ve(Te)}function Fe(Te){if(Q)return Te&&typeof Te=="object"&&Te instanceof Symbol;if(typeof Te=="symbol")return!0;if(!Te||typeof Te!="object"||!V)return!1;try{return V.call(Te),!0}catch{}return!1}function Qe(Te){if(!Te||typeof Te!="object"||!P)return!1;try{return P.call(Te),!0}catch{}return!1}var Ue=Object.prototype.hasOwnProperty||function(Te){return Te in this};function et(Te,le){return Ue.call(Te,le)}function ct(Te){return T.call(Te)}function Ct(Te){if(Te.name)return Te.name;var le=A.call(_.call(Te),/^function\s*([\w$]+)/);return le?le[1]:null}function It(Te,le){if(Te.indexOf)return Te.indexOf(le);for(var st=0,yt=Te.length;st<yt;st++)if(Te[st]===le)return st;return-1}function Je(Te){if(!t||!Te||typeof Te!="object")return!1;try{t.call(Te);try{a.call(Te)}catch{return!0}return Te instanceof Map}catch{}return!1}function Ke(Te){if(!h||!Te||typeof Te!="object")return!1;try{h.call(Te,h);try{m.call(Te,m)}catch{return!0}return Te instanceof WeakMap}catch{}return!1}function ft(Te){if(!v||!Te||typeof Te!="object")return!1;try{return v.call(Te),!0}catch{}return!1}function gt(Te){if(!a||!Te||typeof Te!="object")return!1;try{a.call(Te);try{t.call(Te)}catch{return!0}return Te instanceof Set}catch{}return!1}function Pe(Te){if(!m||!Te||typeof Te!="object")return!1;try{m.call(Te,m);try{h.call(Te,h)}catch{return!0}return Te instanceof WeakSet}catch{}return!1}function Xe(Te){return!Te||typeof Te!="object"?!1:typeof HTMLElement<"u"&&Te instanceof HTMLElement?!0:typeof Te.nodeName=="string"&&typeof Te.getAttribute=="function"}function vt(Te,le){if(Te.length>le.maxStringLength){var st=Te.length-le.maxStringLength,yt="... "+st+" more character"+(st>1?"s":"");return vt(R.call(Te,0,le.maxStringLength),le)+yt}var nt=Se[le.quoteStyle||"single"];nt.lastIndex=0;var pt=D.call(D.call(Te,nt,"\\$1"),/[\x00-\x1f]/g,Nt);return Le(pt,"single",le)}function Nt(Te){var le=Te.charCodeAt(0),st={8:"b",9:"t",10:"n",12:"f",13:"r"}[le];return st?"\\"+st:"\\x"+(le<16?"0":"")+I.call(le.toString(16))}function xt(Te){return"Object("+Te+")"}function Lt(Te){return Te+" { ? }"}function Qt(Te,le,st,yt){var nt=yt?hr(st,yt):z.call(st,", ");return Te+" ("+le+") {"+nt+"}"}function Ut(Te){for(var le=0;le<Te.length;le++)if(It(Te[le],`
|
365
365
|
`)>=0)return!1;return!0}function fr(Te,le){var st;if(Te.indent===" ")st=" ";else if(typeof Te.indent=="number"&&Te.indent>0)st=z.call(Array(Te.indent+1)," ");else return null;return{base:st,prev:z.call(Array(le+1),st)}}function hr(Te,le){if(Te.length===0)return"";var st=`
|
366
366
|
`+le.prev+le.base;return st+z.call(Te,","+st)+`
|
367
|
-
`+le.prev}function cr(Te,le){var st=ke(Te),yt=[];if(st){yt.length=Te.length;for(var nt=0;nt<Te.length;nt++)yt[nt]=et(Te,nt)?le(Te[nt],Te):""}var pt=typeof U=="function"?U(Te):[],ht;if(Q){ht={};for(var Ft=0;Ft<pt.length;Ft++)ht["$"+pt[Ft]]=pt[Ft]}for(var Ve in Te)et(Te,Ve)&&(st&&String(Number(Ve))===Ve&&Ve<Te.length||Q&&ht["$"+Ve]instanceof Symbol||(F.call(/[^\w$]/,Ve)?yt.push(le(Ve,Te)+": "+le(Te[Ve],Te)):yt.push(Ve+": "+le(Te[Ve],Te))));if(typeof U=="function")for(var at=0;at<pt.length;at++)ue.call(Te,pt[at])&&yt.push("["+le(pt[at])+"]: "+le(Te[pt[at]],Te));return yt}return qm}var Um,_x;function NH(){if(_x)return Um;_x=1;var r=jg(),e=Af(),t=function(c,d,h){for(var p=c,m;(m=p.next)!=null;p=m)if(m.key===d)return p.next=m.next,h||(m.next=c.next,c.next=m),m},n=function(c,d){if(c){var h=t(c,d);return h&&h.value}},o=function(c,d,h){var p=t(c,d);p?p.value=h:c.next={key:d,next:c.next,value:h}},i=function(c,d){return c?!!t(c,d):!1},a=function(c,d){if(c)return t(c,d,!0)};return Um=function(){var d,h={assert:function(p){if(!h.has(p))throw new e("Side channel does not contain "+r(p))},delete:function(p){var m=d&&d.next,g=a(d,p);return g&&m&&m===g&&(d=void 0),!!g},get:function(p){return n(d,p)},has:function(p){return i(d,p)},set:function(p,m){d||(d={next:void 0}),o(d,p,m)}};return h},Um}var Wm,Ax;function RS(){return Ax||(Ax=1,Wm=Object),Wm}var Vm,Ex;function PH(){return Ex||(Ex=1,Vm=Error),Vm}var Gm,Tx;function BH(){return Tx||(Tx=1,Gm=EvalError),Gm}var Ym,Rx;function FH(){return Rx||(Rx=1,Ym=RangeError),Ym}var Zm,kx;function jH(){return kx||(kx=1,Zm=ReferenceError),Zm}var Km,Ix;function zH(){return Ix||(Ix=1,Km=SyntaxError),Km}var Xm,Mx;function HH(){return Mx||(Mx=1,Xm=URIError),Xm}var Jm,Lx;function $H(){return Lx||(Lx=1,Jm=Math.abs),Jm}var Qm,Dx;function qH(){return Dx||(Dx=1,Qm=Math.floor),Qm}var e1,Ox;function UH(){return Ox||(Ox=1,e1=Math.max),e1}var t1,Nx;function WH(){return Nx||(Nx=1,t1=Math.min),t1}var r1,Px;function VH(){return Px||(Px=1,r1=Math.pow),r1}var n1,Bx;function GH(){return Bx||(Bx=1,n1=Math.round),n1}var o1,Fx;function YH(){return Fx||(Fx=1,o1=Number.isNaN||function(e){return e!==e}),o1}var i1,jx;function ZH(){if(jx)return i1;jx=1;var r=YH();return i1=function(t){return r(t)||t===0?t:t<0?-1:1},i1}var s1,zx;function KH(){return zx||(zx=1,s1=Object.getOwnPropertyDescriptor),s1}var a1,Hx;function kS(){if(Hx)return a1;Hx=1;var r=KH();if(r)try{r([],"length")}catch{r=null}return a1=r,a1}var l1,$x;function XH(){if($x)return l1;$x=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return l1=r,l1}var c1,qx;function JH(){return qx||(qx=1,c1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,t);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),c1}var u1,Ux;function QH(){if(Ux)return u1;Ux=1;var r=typeof Symbol<"u"&&Symbol,e=JH();return u1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},u1}var d1,Wx;function IS(){return Wx||(Wx=1,d1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),d1}var f1,Vx;function MS(){if(Vx)return f1;Vx=1;var r=RS();return f1=r.getPrototypeOf||null,f1}var h1,Gx;function e$(){if(Gx)return h1;Gx=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(d,h){for(var p=[],m=0;m<d.length;m+=1)p[m]=d[m];for(var g=0;g<h.length;g+=1)p[g+d.length]=h[g];return p},i=function(d,h){for(var p=[],m=h,g=0;m<d.length;m+=1,g+=1)p[g]=d[m];return p},a=function(c,d){for(var h="",p=0;p<c.length;p+=1)h+=c[p],p+1<c.length&&(h+=d);return h};return h1=function(d){var h=this;if(typeof h!="function"||e.apply(h)!==n)throw new TypeError(r+h);for(var p=i(arguments,1),m,g=function(){if(this instanceof m){var A=h.apply(this,o(p,arguments));return Object(A)===A?A:this}return h.apply(d,o(p,arguments))},v=t(0,h.length-p.length),w=[],T=0;T<v;T++)w[T]="$"+T;if(m=Function("binder","return function ("+a(w,",")+"){ return binder.apply(this,arguments); }")(g),h.prototype){var _=function(){};_.prototype=h.prototype,m.prototype=new _,_.prototype=null}return m},h1}var p1,Yx;function zg(){if(Yx)return p1;Yx=1;var r=e$();return p1=Function.prototype.bind||r,p1}var g1,Zx;function uy(){return Zx||(Zx=1,g1=Function.prototype.call),g1}var m1,Kx;function LS(){return Kx||(Kx=1,m1=Function.prototype.apply),m1}var v1,Xx;function t$(){return Xx||(Xx=1,v1=typeof Reflect<"u"&&Reflect&&Reflect.apply),v1}var y1,Jx;function r$(){if(Jx)return y1;Jx=1;var r=zg(),e=LS(),t=uy(),n=t$();return y1=n||r.call(t,e),y1}var b1,Qx;function DS(){if(Qx)return b1;Qx=1;var r=zg(),e=Af(),t=uy(),n=r$();return b1=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},b1}var x1,ew;function n$(){if(ew)return x1;ew=1;var r=DS(),e=kS(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!t&&e&&e(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return x1=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,x1}var w1,tw;function o$(){if(tw)return w1;tw=1;var r=IS(),e=MS(),t=n$();return w1=r?function(o){return r(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:t?function(o){return t(o)}:null,w1}var C1,rw;function i$(){if(rw)return C1;rw=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=zg();return C1=t.call(r,e),C1}var S1,nw;function dy(){if(nw)return S1;nw=1;var r,e=RS(),t=PH(),n=BH(),o=FH(),i=jH(),a=zH(),c=Af(),d=HH(),h=$H(),p=qH(),m=UH(),g=WH(),v=VH(),w=GH(),T=ZH(),_=Function,A=function(De){try{return _('"use strict"; return ('+De+").constructor;")()}catch{}},R=kS(),D=XH(),I=function(){throw new c},B=R?function(){try{return arguments.callee,I}catch{try{return R(arguments,"callee").get}catch{return I}}}():I,F=QH()(),j=o$(),z=MS(),G=IS(),pe=LS(),P=uy(),U={},V=typeof Uint8Array>"u"||!j?r:j(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":F&&j?j([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":F&&j?j(j([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!F||!j?r:j(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!F||!j?r:j(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":F&&j?j(""[Symbol.iterator]()):r,"%Symbol%":F?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":B,"%TypedArray%":V,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":pe,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":z,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":v,"%Math.round%":w,"%Math.sign%":T,"%Reflect.getPrototypeOf%":G};if(j)try{null.error}catch(De){var se=j(j(De));Q["%Error.prototype%"]=se}var ue=function De(we){var _e;if(we==="%AsyncFunction%")_e=A("async function () {}");else if(we==="%GeneratorFunction%")_e=A("function* () {}");else if(we==="%AsyncGeneratorFunction%")_e=A("async function* () {}");else if(we==="%AsyncGenerator%"){var Ae=De("%AsyncGeneratorFunction%");Ae&&(_e=Ae.prototype)}else if(we==="%AsyncIteratorPrototype%"){var $e=De("%AsyncGenerator%");$e&&j&&(_e=j($e.prototype))}return Q[we]=_e,_e},oe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=zg(),ge=i$(),re=ae.call(P,Array.prototype.concat),ie=ae.call(pe,Array.prototype.splice),he=ae.call(P,String.prototype.replace),Se=ae.call(P,String.prototype.slice),Le=ae.call(P,RegExp.prototype.exec),ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ve=/\\(\\)?/g,ke=function(we){var _e=Se(we,0,1),Ae=Se(we,-1);if(_e==="%"&&Ae!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Ae==="%"&&_e!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var $e=[];return he(we,ne,function(Fe,Qe,Ue,et){$e[$e.length]=Ue?he(et,ve,"$1"):Qe||Fe}),$e},Pe=function(we,_e){var Ae=we,$e;if(ge(oe,Ae)&&($e=oe[Ae],Ae="%"+$e[0]+"%"),ge(Q,Ae)){var Fe=Q[Ae];if(Fe===U&&(Fe=ue(Ae)),typeof Fe>"u"&&!_e)throw new c("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:$e,name:Ae,value:Fe}}throw new a("intrinsic "+we+" does not exist!")};return S1=function(we,_e){if(typeof we!="string"||we.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _e!="boolean")throw new c('"allowMissing" argument must be a boolean');if(Le(/^%?[^%]*%?$/,we)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ae=ke(we),$e=Ae.length>0?Ae[0]:"",Fe=Pe("%"+$e+"%",_e),Qe=Fe.name,Ue=Fe.value,et=!1,ct=Fe.alias;ct&&($e=ct[0],ie(Ae,re([0,1],ct)));for(var Ct=1,It=!0;Ct<Ae.length;Ct+=1){var Je=Ae[Ct],Ke=Se(Je,0,1),ft=Se(Je,-1);if((Ke==='"'||Ke==="'"||Ke==="`"||ft==='"'||ft==="'"||ft==="`")&&Ke!==ft)throw new a("property names with quotes must have matching quotes");if((Je==="constructor"||!It)&&(et=!0),$e+="."+Je,Qe="%"+$e+"%",ge(Q,Qe))Ue=Q[Qe];else if(Ue!=null){if(!(Je in Ue)){if(!_e)throw new c("base intrinsic for "+we+" exists, but the property is not available.");return}if(R&&Ct+1>=Ae.length){var gt=R(Ue,Je);It=!!gt,It&&"get"in gt&&!("originalValue"in gt.get)?Ue=gt.get:Ue=Ue[Je]}else It=ge(Ue,Je),Ue=Ue[Je];It&&!et&&(Q[Qe]=Ue)}}return Ue},S1}var _1,ow;function OS(){if(ow)return _1;ow=1;var r=dy(),e=DS(),t=e([r("%String.prototype.indexOf%")]);return _1=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e([a]):a},_1}var A1,iw;function NS(){if(iw)return A1;iw=1;var r=dy(),e=OS(),t=jg(),n=Af(),o=r("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return A1=!!o&&function(){var m,g={assert:function(v){if(!g.has(v))throw new n("Side channel does not contain "+t(v))},delete:function(v){if(m){var w=d(m,v);return h(m)===0&&(m=void 0),w}return!1},get:function(v){if(m)return i(m,v)},has:function(v){return m?c(m,v):!1},set:function(v,w){m||(m=new o),a(m,v,w)}};return g},A1}var E1,sw;function s$(){if(sw)return E1;sw=1;var r=dy(),e=OS(),t=jg(),n=NS(),o=Af(),i=r("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return E1=i?function(){var m,g,v={assert:function(w){if(!v.has(w))throw new o("Side channel does not contain "+t(w))},delete:function(w){if(i&&w&&(typeof w=="object"||typeof w=="function")){if(m)return h(m,w)}else if(n&&g)return g.delete(w);return!1},get:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?a(m,w):g&&g.get(w)},has:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?d(m,w):!!g&&g.has(w)},set:function(w,T){i&&w&&(typeof w=="object"||typeof w=="function")?(m||(m=new i),c(m,w,T)):n&&(g||(g=n()),g.set(w,T))}};return v}:n,E1}var T1,aw;function a$(){if(aw)return T1;aw=1;var r=Af(),e=jg(),t=NH(),n=NS(),o=s$(),i=o||n||t;return T1=function(){var c,d={assert:function(h){if(!d.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){return!!c&&c.delete(h)},get:function(h){return c&&c.get(h)},has:function(h){return!!c&&c.has(h)},set:function(h,p){c||(c=i()),c.set(h,p)}};return d},T1}var R1,lw;function fy(){if(lw)return R1;lw=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return R1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},R1}var k1,cw;function PS(){if(cw)return k1;cw=1;var r=fy(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var _=[],A=0;A<256;++A)_.push("%"+((A<16?"0":"")+A.toString(16)).toUpperCase());return _}(),o=function(A){for(;A.length>1;){var R=A.pop(),D=R.obj[R.prop];if(t(D)){for(var I=[],B=0;B<D.length;++B)typeof D[B]<"u"&&I.push(D[B]);R.obj[R.prop]=I}}},i=function(A,R){for(var D=R&&R.plainObjects?{__proto__:null}:{},I=0;I<A.length;++I)typeof A[I]<"u"&&(D[I]=A[I]);return D},a=function _(A,R,D){if(!R)return A;if(typeof R!="object"&&typeof R!="function"){if(t(A))A.push(R);else if(A&&typeof A=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,R))&&(A[R]=!0);else return[A,R];return A}if(!A||typeof A!="object")return[A].concat(R);var I=A;return t(A)&&!t(R)&&(I=i(A,D)),t(A)&&t(R)?(R.forEach(function(B,F){if(e.call(A,F)){var j=A[F];j&&typeof j=="object"&&B&&typeof B=="object"?A[F]=_(j,B,D):A.push(B)}else A[F]=B}),A):Object.keys(R).reduce(function(B,F){var j=R[F];return e.call(B,F)?B[F]=_(B[F],j,D):B[F]=j,B},I)},c=function(A,R){return Object.keys(R).reduce(function(D,I){return D[I]=R[I],D},A)},d=function(_,A,R){var D=_.replace(/\+/g," ");if(R==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},h=1024,p=function(A,R,D,I,B){if(A.length===0)return A;var F=A;if(typeof A=="symbol"?F=Symbol.prototype.toString.call(A):typeof A!="string"&&(F=String(A)),D==="iso-8859-1")return escape(F).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var j="",z=0;z<F.length;z+=h){for(var G=F.length>=h?F.slice(z,z+h):F,pe=[],P=0;P<G.length;++P){var U=G.charCodeAt(P);if(U===45||U===46||U===95||U===126||U>=48&&U<=57||U>=65&&U<=90||U>=97&&U<=122||B===r.RFC1738&&(U===40||U===41)){pe[pe.length]=G.charAt(P);continue}if(U<128){pe[pe.length]=n[U];continue}if(U<2048){pe[pe.length]=n[192|U>>6]+n[128|U&63];continue}if(U<55296||U>=57344){pe[pe.length]=n[224|U>>12]+n[128|U>>6&63]+n[128|U&63];continue}P+=1,U=65536+((U&1023)<<10|G.charCodeAt(P)&1023),pe[pe.length]=n[240|U>>18]+n[128|U>>12&63]+n[128|U>>6&63]+n[128|U&63]}j+=pe.join("")}return j},m=function(A){for(var R=[{obj:{o:A},prop:"o"}],D=[],I=0;I<R.length;++I)for(var B=R[I],F=B.obj[B.prop],j=Object.keys(F),z=0;z<j.length;++z){var G=j[z],pe=F[G];typeof pe=="object"&&pe!==null&&D.indexOf(pe)===-1&&(R.push({obj:F,prop:G}),D.push(pe))}return o(R),A},g=function(A){return Object.prototype.toString.call(A)==="[object RegExp]"},v=function(A){return!A||typeof A!="object"?!1:!!(A.constructor&&A.constructor.isBuffer&&A.constructor.isBuffer(A))},w=function(A,R){return[].concat(A,R)},T=function(A,R){if(t(A)){for(var D=[],I=0;I<A.length;I+=1)D.push(R(A[I]));return D}return R(A)};return k1={arrayToObject:i,assign:c,combine:w,compact:m,decode:d,encode:p,isBuffer:v,isRegExp:g,maybeMap:T,merge:a},k1}var I1,uw;function l$(){if(uw)return I1;uw=1;var r=a$(),e=PS(),t=fy(),n=Object.prototype.hasOwnProperty,o={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,A){return _+"["+A+"]"},repeat:function(_){return _}},i=Array.isArray,a=Array.prototype.push,c=function(T,_){a.apply(T,i(_)?_:[_])},d=Date.prototype.toISOString,h=t.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:t.formatters[h],indices:!1,serializeDate:function(_){return d.call(_)},skipNulls:!1,strictNullHandling:!1},m=function(_){return typeof _=="string"||typeof _=="number"||typeof _=="boolean"||typeof _=="symbol"||typeof _=="bigint"},g={},v=function T(_,A,R,D,I,B,F,j,z,G,pe,P,U,V,Q,se,ue,oe){for(var ae=_,ge=oe,re=0,ie=!1;(ge=ge.get(g))!==void 0&&!ie;){var he=ge.get(_);if(re+=1,typeof he<"u"){if(he===re)throw new RangeError("Cyclic object value");ie=!0}typeof ge.get(g)>"u"&&(re=0)}if(typeof G=="function"?ae=G(A,ae):ae instanceof Date?ae=U(ae):R==="comma"&&i(ae)&&(ae=e.maybeMap(ae,function(Qe){return Qe instanceof Date?U(Qe):Qe})),ae===null){if(B)return z&&!se?z(A,p.encoder,ue,"key",V):A;ae=""}if(m(ae)||e.isBuffer(ae)){if(z){var Se=se?A:z(A,p.encoder,ue,"key",V);return[Q(Se)+"="+Q(z(ae,p.encoder,ue,"value",V))]}return[Q(A)+"="+Q(String(ae))]}var Le=[];if(typeof ae>"u")return Le;var ne;if(R==="comma"&&i(ae))se&&z&&(ae=e.maybeMap(ae,z)),ne=[{value:ae.length>0?ae.join(",")||null:void 0}];else if(i(G))ne=G;else{var ve=Object.keys(ae);ne=pe?ve.sort(pe):ve}var ke=j?String(A).replace(/\./g,"%2E"):String(A),Pe=D&&i(ae)&&ae.length===1?ke+"[]":ke;if(I&&i(ae)&&ae.length===0)return Pe+"[]";for(var De=0;De<ne.length;++De){var we=ne[De],_e=typeof we=="object"&&we&&typeof we.value<"u"?we.value:ae[we];if(!(F&&_e===null)){var Ae=P&&j?String(we).replace(/\./g,"%2E"):String(we),$e=i(ae)?typeof R=="function"?R(Pe,Ae):Pe:Pe+(P?"."+Ae:"["+Ae+"]");oe.set(_,re);var Fe=r();Fe.set(g,oe),c(Le,T(_e,$e,R,D,I,B,F,j,R==="comma"&&se&&i(ae)?null:z,G,pe,P,U,V,Q,se,ue,Fe))}}return Le},w=function(_){if(!_)return p;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys<"u"&&typeof _.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder<"u"&&typeof _.encoder!="function")throw new TypeError("Encoder has to be a function.");var A=_.charset||p.charset;if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var R=t.default;if(typeof _.format<"u"){if(!n.call(t.formatters,_.format))throw new TypeError("Unknown format option provided.");R=_.format}var D=t.formatters[R],I=p.filter;(typeof _.filter=="function"||i(_.filter))&&(I=_.filter);var B;if(_.arrayFormat in o?B=_.arrayFormat:"indices"in _?B=_.indices?"indices":"repeat":B=p.arrayFormat,"commaRoundTrip"in _&&typeof _.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var F=typeof _.allowDots>"u"?_.encodeDotInKeys===!0?!0:p.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix=="boolean"?_.addQueryPrefix:p.addQueryPrefix,allowDots:F,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:B,charset:A,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!_.commaRoundTrip,delimiter:typeof _.delimiter>"u"?p.delimiter:_.delimiter,encode:typeof _.encode=="boolean"?_.encode:p.encode,encodeDotInKeys:typeof _.encodeDotInKeys=="boolean"?_.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof _.encoder=="function"?_.encoder:p.encoder,encodeValuesOnly:typeof _.encodeValuesOnly=="boolean"?_.encodeValuesOnly:p.encodeValuesOnly,filter:I,format:R,formatter:D,serializeDate:typeof _.serializeDate=="function"?_.serializeDate:p.serializeDate,skipNulls:typeof _.skipNulls=="boolean"?_.skipNulls:p.skipNulls,sort:typeof _.sort=="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:p.strictNullHandling}};return I1=function(T,_){var A=T,R=w(_),D,I;typeof R.filter=="function"?(I=R.filter,A=I("",A)):i(R.filter)&&(I=R.filter,D=I);var B=[];if(typeof A!="object"||A===null)return"";var F=o[R.arrayFormat],j=F==="comma"&&R.commaRoundTrip;D||(D=Object.keys(A)),R.sort&&D.sort(R.sort);for(var z=r(),G=0;G<D.length;++G){var pe=D[G],P=A[pe];R.skipNulls&&P===null||c(B,v(P,pe,F,j,R.allowEmptyArrays,R.strictNullHandling,R.skipNulls,R.encodeDotInKeys,R.encode?R.encoder:null,R.filter,R.sort,R.allowDots,R.serializeDate,R.format,R.formatter,R.encodeValuesOnly,R.charset,z))}var U=B.join(R.delimiter),V=R.addQueryPrefix===!0?"?":"";return R.charsetSentinel&&(R.charset==="iso-8859-1"?V+="utf8=%26%2310003%3B&":V+="utf8=%E2%9C%93&"),U.length>0?V+U:""},I1}var M1,dw;function c$(){if(dw)return M1;dw=1;var r=PS(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(g){return g.replace(/&#(\d+);/g,function(v,w){return String.fromCharCode(parseInt(w,10))})},i=function(g,v,w){if(g&&typeof g=="string"&&v.comma&&g.indexOf(",")>-1)return g.split(",");if(v.throwOnLimitExceeded&&w>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return g},a="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(v,w){var T={__proto__:null},_=w.ignoreQueryPrefix?v.replace(/^\?/,""):v;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var A=w.parameterLimit===1/0?void 0:w.parameterLimit,R=_.split(w.delimiter,w.throwOnLimitExceeded?A+1:A);if(w.throwOnLimitExceeded&&R.length>A)throw new RangeError("Parameter limit exceeded. Only "+A+" parameter"+(A===1?"":"s")+" allowed.");var D=-1,I,B=w.charset;if(w.charsetSentinel)for(I=0;I<R.length;++I)R[I].indexOf("utf8=")===0&&(R[I]===c?B="utf-8":R[I]===a&&(B="iso-8859-1"),D=I,I=R.length);for(I=0;I<R.length;++I)if(I!==D){var F=R[I],j=F.indexOf("]="),z=j===-1?F.indexOf("="):j+1,G,pe;z===-1?(G=w.decoder(F,n.decoder,B,"key"),pe=w.strictNullHandling?null:""):(G=w.decoder(F.slice(0,z),n.decoder,B,"key"),pe=r.maybeMap(i(F.slice(z+1),w,t(T[G])?T[G].length:0),function(U){return w.decoder(U,n.decoder,B,"value")})),pe&&w.interpretNumericEntities&&B==="iso-8859-1"&&(pe=o(String(pe))),F.indexOf("[]=")>-1&&(pe=t(pe)?[pe]:pe);var P=e.call(T,G);P&&w.duplicates==="combine"?T[G]=r.combine(T[G],pe):(!P||w.duplicates==="last")&&(T[G]=pe)}return T},h=function(g,v,w,T){var _=0;if(g.length>0&&g[g.length-1]==="[]"){var A=g.slice(0,-1).join("");_=Array.isArray(v)&&v[A]?v[A].length:0}for(var R=T?v:i(v,w,_),D=g.length-1;D>=0;--D){var I,B=g[D];if(B==="[]"&&w.parseArrays)I=w.allowEmptyArrays&&(R===""||w.strictNullHandling&&R===null)?[]:r.combine([],R);else{I=w.plainObjects?{__proto__:null}:{};var F=B.charAt(0)==="["&&B.charAt(B.length-1)==="]"?B.slice(1,-1):B,j=w.decodeDotInKeys?F.replace(/%2E/g,"."):F,z=parseInt(j,10);!w.parseArrays&&j===""?I={0:R}:!isNaN(z)&&B!==j&&String(z)===j&&z>=0&&w.parseArrays&&z<=w.arrayLimit?(I=[],I[z]=R):j!=="__proto__"&&(I[j]=R)}R=I}return R},p=function(v,w,T,_){if(v){var A=T.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,R=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,I=T.depth>0&&R.exec(A),B=I?A.slice(0,I.index):A,F=[];if(B){if(!T.plainObjects&&e.call(Object.prototype,B)&&!T.allowPrototypes)return;F.push(B)}for(var j=0;T.depth>0&&(I=D.exec(A))!==null&&j<T.depth;){if(j+=1,!T.plainObjects&&e.call(Object.prototype,I[1].slice(1,-1))&&!T.allowPrototypes)return;F.push(I[1])}if(I){if(T.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+T.depth+" and strictDepth is true");F.push("["+A.slice(I.index)+"]")}return h(F,w,T,_)}},m=function(v){if(!v)return n;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.decodeDotInKeys<"u"&&typeof v.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(v.decoder!==null&&typeof v.decoder<"u"&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof v.throwOnLimitExceeded<"u"&&typeof v.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var w=typeof v.charset>"u"?n.charset:v.charset,T=typeof v.duplicates>"u"?n.duplicates:v.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var _=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:n.allowDots:!!v.allowDots;return{allowDots:_,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:n.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:n.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:n.arrayLimit,charset:w,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:n.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:n.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:n.decoder,delimiter:typeof v.delimiter=="string"||r.isRegExp(v.delimiter)?v.delimiter:n.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:n.depth,duplicates:T,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:n.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:n.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:n.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return M1=function(g,v){var w=m(v);if(g===""||g===null||typeof g>"u")return w.plainObjects?{__proto__:null}:{};for(var T=typeof g=="string"?d(g,w):g,_=w.plainObjects?{__proto__:null}:{},A=Object.keys(T),R=0;R<A.length;++R){var D=A[R],I=p(D,T[D],w,typeof g=="string");_=r.merge(_,I,w)}return w.allowSparse===!0?_:r.compact(_)},M1}var L1,fw;function u$(){if(fw)return L1;fw=1;var r=l$(),e=c$(),t=fy();return L1={formats:t,parse:e,stringify:r},L1}var d$=u$();const f$=yf(d$),yv={StoredContexts:{},defaultHandler:()=>{}},BS={Init:()=>{},Create:r=>{const e=r.method+r.url;return yv.StoredContexts[e]=r,h$(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{yv.defaultHandler=r}};function h$(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:o,method:i,stream:a,paramType:c}=r;const{po:d,onStream:h,onStreamEnd:p,noDefaultHandle:m=[]}=n??{};(c==="query"||i==="GET")&&d!==void 0&&(o+="?"+f$.stringify(d,{arrayFormat:"comma"}));const g={method:i,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(c==="form"){const T=new FormData;if(d!==void 0)for(const _ in d){const A=d[_];T.append(_,A)}g.body=T}else(c==="body"||c===void 0&&r.method!=="GET")&&(g.body=JSON.stringify(d),g.headers["Content-Type"]="application/json;charset=UTF-8");let v={errorCode:0,message:""};const w=Date.now();o=BS.FetchBaseUrl()+o;try{let T=await fetch(o,g);if(T.ok===!1)return v.errorCode=T.status,v.message=T.statusText,v;{const _=new TextDecoder("utf-8");if(a){if(T.body){let A=T.body.getReader(),R="";for(;;){const D=await A.read();if(D.done)break;const I=_.decode(D.value).trim();R+=I;let B=null;try{const F=I.split("\0");let j=F[F.length-1];for(let z=F.length-2;z>=0;z--)if(F[z].trim().length!==0){j=F[z];break}B=await JSON.parse(j)}catch{try{const j=R.split("\0");let z=j[j.length-1];for(let G=j.length-2;G>=0;G--)if(j[G].trim().length!==0){z=j[G];break}B=await JSON.parse(z)}catch{}}if(B!=null&&(Object.keys(B).includes("err_code")?v.errorCode=B.err_code:(v.errorCode=0,v.data=B,R="",D.done?p==null||p(v.data):h==null||h(v.data))),D.done)break}}}else if(T.body){const R=await T.body.getReader().read(),D=_.decode(R.value);if(D==="null")return v;{let I=await JSON.parse(D.replaceAll("\0",""));Object.keys(I).includes("err_code")?(v.errorCode=I.err_code,v.message=I.err_msg):v.data=I}}}}catch(T){console.warn(T),v.errorCode=-1,v.message=T.message}return console.debug(`${e} ${Date.now()-w}ms`),m!==!0&&await yv.defaultHandler(v,m),v}}}exports.ABase=Kr;exports.ABaseStyleKeys=Ow;exports.AButton=Go;exports.AButtonStyleKeys=Pw;exports.AButtonTypes=Y4;exports.ACheckBox=af;exports.ACheckBoxStyleKeys=zw;exports.AChip=_v;exports.AChipKeys=sC;exports.AChips=nR;exports.AClock=vR;exports.AColFrame=uC;exports.ADatePicker=Rv;exports.ADatePickerStyleKeys=Xw;exports.ADatePickerTypes=Uk;exports.ADateRangePicker=Ev;exports.ADateRangePickerStyleKeys=Jw;exports.ADialog=Qk;exports.ADialogStyleKeys=Hw;exports.ADialogTypes=Jk;exports.ADivideFrame=fC;exports.AEditor=rj;exports.AEditorStyleKeys=jw;exports.AFileBox=u6;exports.AFileBoxStyleKeys=Gw;exports.AFileUploader=P6;exports.AFileUploaderStyleKeys=Yw;exports.AFloatMenu=gC;exports.AFloatMenuKeys=rC;exports.AFrameStyleKeys=tC;exports.AGrow=Ku;exports.AIcon=en;exports.AIconButton=So;exports.AIconButtonStyleKeys=Qw;exports.AIconButtonTypes=Z4;exports.AIconHOC=e4;exports.AIcons=wv;exports.AInput=Vc;exports.AInputStyleKeys=Bw;exports.AInputTypes=IR;exports.AListView=G6;exports.AListViewStyleKeys=Zw;exports.ALoadingBorder=Iv;exports.ALoadingBorderKeys=nC;exports.AMultiSelect=xI;exports.AMultiSelectStyleKeys=qw;exports.ANumInput=$6;exports.AOverflowFrame=el;exports.AProgressBar=Cw;exports.ARadioSelect=iI;exports.ARadioSelectKeys=iC;exports.ARowFrame=Rn;exports.ASelect=Gc;exports.ASelectStyleKeys=$w;exports.ASelectTypes=WR;exports.ASpace=Nn;exports.AStepper=NI;exports.AStepperStyleKeys=Kw;exports.ASwitch=Tw;exports.ASwitchFrame=dC;exports.ASwitchStyleKeys=Ww;exports.ATab=yC;exports.ATabStyleKeys=Vw;exports.ATabTypes=GI;exports.ATable=t9;exports.ATableStyleKeys=eC;exports.AText=SC;exports.ATextArea=f9;exports.ATextAreaStyleKeys=Fw;exports.ATextAreaTypes=d9;exports.AThemeButton=w5;exports.AThemes=uh;exports.ATooltip=Ew;exports.ATooltipStyleKeys=Nw;exports.ATree=RH;exports.ATreeStyleKeys=Uw;exports.AWrap=Wc;exports.AWrapKeys=oC;exports.AWrapPropsExtract=Zu;exports.AWrapTypes=t5;exports.ApiContext=BS;exports.BodyStyleKeys=Dw;exports.CreateADC=i6;exports.DefaultOptionRenderer=vC;exports.EDir12=bf;exports.EDir4=Io;exports.FileSizeTrans=$u;exports.Icons=xg;exports.IsCursorPointer=yw;exports.IsFixedShape=vw;exports.IsInteractive=bw;exports.NoSelect=gw;exports.NoTransition=mw;exports.Resources=wr;exports.SetResources=g4;exports.alphanumericRegex=iR;exports.bound=ch;exports.cbF=Or;exports.changeSemanticMode=Sv;exports.componentStyleKeys=h5;exports.createEvent=Pu;exports.dateF=tr;exports.dbF=sa;exports.defaultPredicate=xC;exports.dlgF=s6;exports.emailIdRegex=aR;exports.emailRegex=sR;exports.fileF=Bu;exports.getFileKey=pC;exports.getMonthsOptions=Sh;exports.getYearsOptions=Tv;exports.hangulRegex=cR;exports.hexRegex=lR;exports.key=pw;exports.noHanguljamoRegex=dR;exports.noSpaceRegex=uR;exports.numF=mC;exports.objF=ar;exports.paletteKeys=Rw;exports.paletteModes=wg;exports.passwordRegex=hR;exports.refinedDesignTokens=Lo;exports.sF=Ge;exports.semanticKeys=Mw;exports.semanticModes=sf;exports.setDir12Style=Cv;exports.setDir12StyleElem=_w;exports.specialCharRegex=fR;exports.strF=Av;exports.tableF=Pl;exports.textMeasurement=Hu;exports.treeF=Nc;exports.useADialogCore=n6;exports.useADialogCores=r6;exports.useDB=lC;exports.useEvent=CC;exports.useInit=bC;exports.useLayoutDB=cC;exports.useValues=wn;exports.uuidRegex=pR;
|
367
|
+
`+le.prev}function cr(Te,le){var st=ke(Te),yt=[];if(st){yt.length=Te.length;for(var nt=0;nt<Te.length;nt++)yt[nt]=et(Te,nt)?le(Te[nt],Te):""}var pt=typeof U=="function"?U(Te):[],ht;if(Q){ht={};for(var Ft=0;Ft<pt.length;Ft++)ht["$"+pt[Ft]]=pt[Ft]}for(var Ve in Te)et(Te,Ve)&&(st&&String(Number(Ve))===Ve&&Ve<Te.length||Q&&ht["$"+Ve]instanceof Symbol||(F.call(/[^\w$]/,Ve)?yt.push(le(Ve,Te)+": "+le(Te[Ve],Te)):yt.push(Ve+": "+le(Te[Ve],Te))));if(typeof U=="function")for(var at=0;at<pt.length;at++)ue.call(Te,pt[at])&&yt.push("["+le(pt[at])+"]: "+le(Te[pt[at]],Te));return yt}return qm}var Um,_x;function NH(){if(_x)return Um;_x=1;var r=jg(),e=Af(),t=function(c,d,h){for(var p=c,m;(m=p.next)!=null;p=m)if(m.key===d)return p.next=m.next,h||(m.next=c.next,c.next=m),m},n=function(c,d){if(c){var h=t(c,d);return h&&h.value}},o=function(c,d,h){var p=t(c,d);p?p.value=h:c.next={key:d,next:c.next,value:h}},i=function(c,d){return c?!!t(c,d):!1},a=function(c,d){if(c)return t(c,d,!0)};return Um=function(){var d,h={assert:function(p){if(!h.has(p))throw new e("Side channel does not contain "+r(p))},delete:function(p){var m=d&&d.next,g=a(d,p);return g&&m&&m===g&&(d=void 0),!!g},get:function(p){return n(d,p)},has:function(p){return i(d,p)},set:function(p,m){d||(d={next:void 0}),o(d,p,m)}};return h},Um}var Wm,Ax;function RS(){return Ax||(Ax=1,Wm=Object),Wm}var Vm,Ex;function PH(){return Ex||(Ex=1,Vm=Error),Vm}var Gm,Tx;function BH(){return Tx||(Tx=1,Gm=EvalError),Gm}var Ym,Rx;function FH(){return Rx||(Rx=1,Ym=RangeError),Ym}var Zm,kx;function jH(){return kx||(kx=1,Zm=ReferenceError),Zm}var Km,Ix;function zH(){return Ix||(Ix=1,Km=SyntaxError),Km}var Xm,Mx;function HH(){return Mx||(Mx=1,Xm=URIError),Xm}var Jm,Lx;function $H(){return Lx||(Lx=1,Jm=Math.abs),Jm}var Qm,Dx;function qH(){return Dx||(Dx=1,Qm=Math.floor),Qm}var e1,Ox;function UH(){return Ox||(Ox=1,e1=Math.max),e1}var t1,Nx;function WH(){return Nx||(Nx=1,t1=Math.min),t1}var r1,Px;function VH(){return Px||(Px=1,r1=Math.pow),r1}var n1,Bx;function GH(){return Bx||(Bx=1,n1=Math.round),n1}var o1,Fx;function YH(){return Fx||(Fx=1,o1=Number.isNaN||function(e){return e!==e}),o1}var i1,jx;function ZH(){if(jx)return i1;jx=1;var r=YH();return i1=function(t){return r(t)||t===0?t:t<0?-1:1},i1}var s1,zx;function KH(){return zx||(zx=1,s1=Object.getOwnPropertyDescriptor),s1}var a1,Hx;function kS(){if(Hx)return a1;Hx=1;var r=KH();if(r)try{r([],"length")}catch{r=null}return a1=r,a1}var l1,$x;function XH(){if($x)return l1;$x=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return l1=r,l1}var c1,qx;function JH(){return qx||(qx=1,c1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,t);if(c.value!==o||c.enumerable!==!0)return!1}return!0}),c1}var u1,Ux;function QH(){if(Ux)return u1;Ux=1;var r=typeof Symbol<"u"&&Symbol,e=JH();return u1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},u1}var d1,Wx;function IS(){return Wx||(Wx=1,d1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),d1}var f1,Vx;function MS(){if(Vx)return f1;Vx=1;var r=RS();return f1=r.getPrototypeOf||null,f1}var h1,Gx;function e$(){if(Gx)return h1;Gx=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(d,h){for(var p=[],m=0;m<d.length;m+=1)p[m]=d[m];for(var g=0;g<h.length;g+=1)p[g+d.length]=h[g];return p},i=function(d,h){for(var p=[],m=h,g=0;m<d.length;m+=1,g+=1)p[g]=d[m];return p},a=function(c,d){for(var h="",p=0;p<c.length;p+=1)h+=c[p],p+1<c.length&&(h+=d);return h};return h1=function(d){var h=this;if(typeof h!="function"||e.apply(h)!==n)throw new TypeError(r+h);for(var p=i(arguments,1),m,g=function(){if(this instanceof m){var A=h.apply(this,o(p,arguments));return Object(A)===A?A:this}return h.apply(d,o(p,arguments))},v=t(0,h.length-p.length),w=[],T=0;T<v;T++)w[T]="$"+T;if(m=Function("binder","return function ("+a(w,",")+"){ return binder.apply(this,arguments); }")(g),h.prototype){var _=function(){};_.prototype=h.prototype,m.prototype=new _,_.prototype=null}return m},h1}var p1,Yx;function zg(){if(Yx)return p1;Yx=1;var r=e$();return p1=Function.prototype.bind||r,p1}var g1,Zx;function uy(){return Zx||(Zx=1,g1=Function.prototype.call),g1}var m1,Kx;function LS(){return Kx||(Kx=1,m1=Function.prototype.apply),m1}var v1,Xx;function t$(){return Xx||(Xx=1,v1=typeof Reflect<"u"&&Reflect&&Reflect.apply),v1}var y1,Jx;function r$(){if(Jx)return y1;Jx=1;var r=zg(),e=LS(),t=uy(),n=t$();return y1=n||r.call(t,e),y1}var b1,Qx;function DS(){if(Qx)return b1;Qx=1;var r=zg(),e=Af(),t=uy(),n=r$();return b1=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},b1}var x1,ew;function n$(){if(ew)return x1;ew=1;var r=DS(),e=kS(),t;try{t=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!t&&e&&e(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return x1=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,x1}var w1,tw;function o$(){if(tw)return w1;tw=1;var r=IS(),e=MS(),t=n$();return w1=r?function(o){return r(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:t?function(o){return t(o)}:null,w1}var C1,rw;function i$(){if(rw)return C1;rw=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=zg();return C1=t.call(r,e),C1}var S1,nw;function dy(){if(nw)return S1;nw=1;var r,e=RS(),t=PH(),n=BH(),o=FH(),i=jH(),a=zH(),c=Af(),d=HH(),h=$H(),p=qH(),m=UH(),g=WH(),v=VH(),w=GH(),T=ZH(),_=Function,A=function(Oe){try{return _('"use strict"; return ('+Oe+").constructor;")()}catch{}},R=kS(),D=XH(),I=function(){throw new c},B=R?function(){try{return arguments.callee,I}catch{try{return R(arguments,"callee").get}catch{return I}}}():I,F=QH()(),j=o$(),z=MS(),G=IS(),pe=LS(),P=uy(),U={},V=typeof Uint8Array>"u"||!j?r:j(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":F&&j?j([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":U,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":F&&j?j(j([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!F||!j?r:j(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!F||!j?r:j(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":F&&j?j(""[Symbol.iterator]()):r,"%Symbol%":F?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":B,"%TypedArray%":V,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":pe,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":z,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":v,"%Math.round%":w,"%Math.sign%":T,"%Reflect.getPrototypeOf%":G};if(j)try{null.error}catch(Oe){var se=j(j(Oe));Q["%Error.prototype%"]=se}var ue=function Oe(we){var _e;if(we==="%AsyncFunction%")_e=A("async function () {}");else if(we==="%GeneratorFunction%")_e=A("function* () {}");else if(we==="%AsyncGeneratorFunction%")_e=A("async function* () {}");else if(we==="%AsyncGenerator%"){var Ae=Oe("%AsyncGeneratorFunction%");Ae&&(_e=Ae.prototype)}else if(we==="%AsyncIteratorPrototype%"){var $e=Oe("%AsyncGenerator%");$e&&j&&(_e=j($e.prototype))}return Q[we]=_e,_e},oe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=zg(),ge=i$(),re=ae.call(P,Array.prototype.concat),ie=ae.call(pe,Array.prototype.splice),he=ae.call(P,String.prototype.replace),Se=ae.call(P,String.prototype.slice),Le=ae.call(P,RegExp.prototype.exec),ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ve=/\\(\\)?/g,ke=function(we){var _e=Se(we,0,1),Ae=Se(we,-1);if(_e==="%"&&Ae!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Ae==="%"&&_e!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var $e=[];return he(we,ne,function(Fe,Qe,Ue,et){$e[$e.length]=Ue?he(et,ve,"$1"):Qe||Fe}),$e},De=function(we,_e){var Ae=we,$e;if(ge(oe,Ae)&&($e=oe[Ae],Ae="%"+$e[0]+"%"),ge(Q,Ae)){var Fe=Q[Ae];if(Fe===U&&(Fe=ue(Ae)),typeof Fe>"u"&&!_e)throw new c("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:$e,name:Ae,value:Fe}}throw new a("intrinsic "+we+" does not exist!")};return S1=function(we,_e){if(typeof we!="string"||we.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof _e!="boolean")throw new c('"allowMissing" argument must be a boolean');if(Le(/^%?[^%]*%?$/,we)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ae=ke(we),$e=Ae.length>0?Ae[0]:"",Fe=De("%"+$e+"%",_e),Qe=Fe.name,Ue=Fe.value,et=!1,ct=Fe.alias;ct&&($e=ct[0],ie(Ae,re([0,1],ct)));for(var Ct=1,It=!0;Ct<Ae.length;Ct+=1){var Je=Ae[Ct],Ke=Se(Je,0,1),ft=Se(Je,-1);if((Ke==='"'||Ke==="'"||Ke==="`"||ft==='"'||ft==="'"||ft==="`")&&Ke!==ft)throw new a("property names with quotes must have matching quotes");if((Je==="constructor"||!It)&&(et=!0),$e+="."+Je,Qe="%"+$e+"%",ge(Q,Qe))Ue=Q[Qe];else if(Ue!=null){if(!(Je in Ue)){if(!_e)throw new c("base intrinsic for "+we+" exists, but the property is not available.");return}if(R&&Ct+1>=Ae.length){var gt=R(Ue,Je);It=!!gt,It&&"get"in gt&&!("originalValue"in gt.get)?Ue=gt.get:Ue=Ue[Je]}else It=ge(Ue,Je),Ue=Ue[Je];It&&!et&&(Q[Qe]=Ue)}}return Ue},S1}var _1,ow;function OS(){if(ow)return _1;ow=1;var r=dy(),e=DS(),t=e([r("%String.prototype.indexOf%")]);return _1=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e([a]):a},_1}var A1,iw;function NS(){if(iw)return A1;iw=1;var r=dy(),e=OS(),t=jg(),n=Af(),o=r("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return A1=!!o&&function(){var m,g={assert:function(v){if(!g.has(v))throw new n("Side channel does not contain "+t(v))},delete:function(v){if(m){var w=d(m,v);return h(m)===0&&(m=void 0),w}return!1},get:function(v){if(m)return i(m,v)},has:function(v){return m?c(m,v):!1},set:function(v,w){m||(m=new o),a(m,v,w)}};return g},A1}var E1,sw;function s$(){if(sw)return E1;sw=1;var r=dy(),e=OS(),t=jg(),n=NS(),o=Af(),i=r("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return E1=i?function(){var m,g,v={assert:function(w){if(!v.has(w))throw new o("Side channel does not contain "+t(w))},delete:function(w){if(i&&w&&(typeof w=="object"||typeof w=="function")){if(m)return h(m,w)}else if(n&&g)return g.delete(w);return!1},get:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?a(m,w):g&&g.get(w)},has:function(w){return i&&w&&(typeof w=="object"||typeof w=="function")&&m?d(m,w):!!g&&g.has(w)},set:function(w,T){i&&w&&(typeof w=="object"||typeof w=="function")?(m||(m=new i),c(m,w,T)):n&&(g||(g=n()),g.set(w,T))}};return v}:n,E1}var T1,aw;function a$(){if(aw)return T1;aw=1;var r=Af(),e=jg(),t=NH(),n=NS(),o=s$(),i=o||n||t;return T1=function(){var c,d={assert:function(h){if(!d.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){return!!c&&c.delete(h)},get:function(h){return c&&c.get(h)},has:function(h){return!!c&&c.has(h)},set:function(h,p){c||(c=i()),c.set(h,p)}};return d},T1}var R1,lw;function fy(){if(lw)return R1;lw=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return R1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},R1}var k1,cw;function PS(){if(cw)return k1;cw=1;var r=fy(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var _=[],A=0;A<256;++A)_.push("%"+((A<16?"0":"")+A.toString(16)).toUpperCase());return _}(),o=function(A){for(;A.length>1;){var R=A.pop(),D=R.obj[R.prop];if(t(D)){for(var I=[],B=0;B<D.length;++B)typeof D[B]<"u"&&I.push(D[B]);R.obj[R.prop]=I}}},i=function(A,R){for(var D=R&&R.plainObjects?{__proto__:null}:{},I=0;I<A.length;++I)typeof A[I]<"u"&&(D[I]=A[I]);return D},a=function _(A,R,D){if(!R)return A;if(typeof R!="object"&&typeof R!="function"){if(t(A))A.push(R);else if(A&&typeof A=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,R))&&(A[R]=!0);else return[A,R];return A}if(!A||typeof A!="object")return[A].concat(R);var I=A;return t(A)&&!t(R)&&(I=i(A,D)),t(A)&&t(R)?(R.forEach(function(B,F){if(e.call(A,F)){var j=A[F];j&&typeof j=="object"&&B&&typeof B=="object"?A[F]=_(j,B,D):A.push(B)}else A[F]=B}),A):Object.keys(R).reduce(function(B,F){var j=R[F];return e.call(B,F)?B[F]=_(B[F],j,D):B[F]=j,B},I)},c=function(A,R){return Object.keys(R).reduce(function(D,I){return D[I]=R[I],D},A)},d=function(_,A,R){var D=_.replace(/\+/g," ");if(R==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},h=1024,p=function(A,R,D,I,B){if(A.length===0)return A;var F=A;if(typeof A=="symbol"?F=Symbol.prototype.toString.call(A):typeof A!="string"&&(F=String(A)),D==="iso-8859-1")return escape(F).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var j="",z=0;z<F.length;z+=h){for(var G=F.length>=h?F.slice(z,z+h):F,pe=[],P=0;P<G.length;++P){var U=G.charCodeAt(P);if(U===45||U===46||U===95||U===126||U>=48&&U<=57||U>=65&&U<=90||U>=97&&U<=122||B===r.RFC1738&&(U===40||U===41)){pe[pe.length]=G.charAt(P);continue}if(U<128){pe[pe.length]=n[U];continue}if(U<2048){pe[pe.length]=n[192|U>>6]+n[128|U&63];continue}if(U<55296||U>=57344){pe[pe.length]=n[224|U>>12]+n[128|U>>6&63]+n[128|U&63];continue}P+=1,U=65536+((U&1023)<<10|G.charCodeAt(P)&1023),pe[pe.length]=n[240|U>>18]+n[128|U>>12&63]+n[128|U>>6&63]+n[128|U&63]}j+=pe.join("")}return j},m=function(A){for(var R=[{obj:{o:A},prop:"o"}],D=[],I=0;I<R.length;++I)for(var B=R[I],F=B.obj[B.prop],j=Object.keys(F),z=0;z<j.length;++z){var G=j[z],pe=F[G];typeof pe=="object"&&pe!==null&&D.indexOf(pe)===-1&&(R.push({obj:F,prop:G}),D.push(pe))}return o(R),A},g=function(A){return Object.prototype.toString.call(A)==="[object RegExp]"},v=function(A){return!A||typeof A!="object"?!1:!!(A.constructor&&A.constructor.isBuffer&&A.constructor.isBuffer(A))},w=function(A,R){return[].concat(A,R)},T=function(A,R){if(t(A)){for(var D=[],I=0;I<A.length;I+=1)D.push(R(A[I]));return D}return R(A)};return k1={arrayToObject:i,assign:c,combine:w,compact:m,decode:d,encode:p,isBuffer:v,isRegExp:g,maybeMap:T,merge:a},k1}var I1,uw;function l$(){if(uw)return I1;uw=1;var r=a$(),e=PS(),t=fy(),n=Object.prototype.hasOwnProperty,o={brackets:function(_){return _+"[]"},comma:"comma",indices:function(_,A){return _+"["+A+"]"},repeat:function(_){return _}},i=Array.isArray,a=Array.prototype.push,c=function(T,_){a.apply(T,i(_)?_:[_])},d=Date.prototype.toISOString,h=t.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:t.formatters[h],indices:!1,serializeDate:function(_){return d.call(_)},skipNulls:!1,strictNullHandling:!1},m=function(_){return typeof _=="string"||typeof _=="number"||typeof _=="boolean"||typeof _=="symbol"||typeof _=="bigint"},g={},v=function T(_,A,R,D,I,B,F,j,z,G,pe,P,U,V,Q,se,ue,oe){for(var ae=_,ge=oe,re=0,ie=!1;(ge=ge.get(g))!==void 0&&!ie;){var he=ge.get(_);if(re+=1,typeof he<"u"){if(he===re)throw new RangeError("Cyclic object value");ie=!0}typeof ge.get(g)>"u"&&(re=0)}if(typeof G=="function"?ae=G(A,ae):ae instanceof Date?ae=U(ae):R==="comma"&&i(ae)&&(ae=e.maybeMap(ae,function(Qe){return Qe instanceof Date?U(Qe):Qe})),ae===null){if(B)return z&&!se?z(A,p.encoder,ue,"key",V):A;ae=""}if(m(ae)||e.isBuffer(ae)){if(z){var Se=se?A:z(A,p.encoder,ue,"key",V);return[Q(Se)+"="+Q(z(ae,p.encoder,ue,"value",V))]}return[Q(A)+"="+Q(String(ae))]}var Le=[];if(typeof ae>"u")return Le;var ne;if(R==="comma"&&i(ae))se&&z&&(ae=e.maybeMap(ae,z)),ne=[{value:ae.length>0?ae.join(",")||null:void 0}];else if(i(G))ne=G;else{var ve=Object.keys(ae);ne=pe?ve.sort(pe):ve}var ke=j?String(A).replace(/\./g,"%2E"):String(A),De=D&&i(ae)&&ae.length===1?ke+"[]":ke;if(I&&i(ae)&&ae.length===0)return De+"[]";for(var Oe=0;Oe<ne.length;++Oe){var we=ne[Oe],_e=typeof we=="object"&&we&&typeof we.value<"u"?we.value:ae[we];if(!(F&&_e===null)){var Ae=P&&j?String(we).replace(/\./g,"%2E"):String(we),$e=i(ae)?typeof R=="function"?R(De,Ae):De:De+(P?"."+Ae:"["+Ae+"]");oe.set(_,re);var Fe=r();Fe.set(g,oe),c(Le,T(_e,$e,R,D,I,B,F,j,R==="comma"&&se&&i(ae)?null:z,G,pe,P,U,V,Q,se,ue,Fe))}}return Le},w=function(_){if(!_)return p;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.encodeDotInKeys<"u"&&typeof _.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(_.encoder!==null&&typeof _.encoder<"u"&&typeof _.encoder!="function")throw new TypeError("Encoder has to be a function.");var A=_.charset||p.charset;if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var R=t.default;if(typeof _.format<"u"){if(!n.call(t.formatters,_.format))throw new TypeError("Unknown format option provided.");R=_.format}var D=t.formatters[R],I=p.filter;(typeof _.filter=="function"||i(_.filter))&&(I=_.filter);var B;if(_.arrayFormat in o?B=_.arrayFormat:"indices"in _?B=_.indices?"indices":"repeat":B=p.arrayFormat,"commaRoundTrip"in _&&typeof _.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var F=typeof _.allowDots>"u"?_.encodeDotInKeys===!0?!0:p.allowDots:!!_.allowDots;return{addQueryPrefix:typeof _.addQueryPrefix=="boolean"?_.addQueryPrefix:p.addQueryPrefix,allowDots:F,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:B,charset:A,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!_.commaRoundTrip,delimiter:typeof _.delimiter>"u"?p.delimiter:_.delimiter,encode:typeof _.encode=="boolean"?_.encode:p.encode,encodeDotInKeys:typeof _.encodeDotInKeys=="boolean"?_.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof _.encoder=="function"?_.encoder:p.encoder,encodeValuesOnly:typeof _.encodeValuesOnly=="boolean"?_.encodeValuesOnly:p.encodeValuesOnly,filter:I,format:R,formatter:D,serializeDate:typeof _.serializeDate=="function"?_.serializeDate:p.serializeDate,skipNulls:typeof _.skipNulls=="boolean"?_.skipNulls:p.skipNulls,sort:typeof _.sort=="function"?_.sort:null,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:p.strictNullHandling}};return I1=function(T,_){var A=T,R=w(_),D,I;typeof R.filter=="function"?(I=R.filter,A=I("",A)):i(R.filter)&&(I=R.filter,D=I);var B=[];if(typeof A!="object"||A===null)return"";var F=o[R.arrayFormat],j=F==="comma"&&R.commaRoundTrip;D||(D=Object.keys(A)),R.sort&&D.sort(R.sort);for(var z=r(),G=0;G<D.length;++G){var pe=D[G],P=A[pe];R.skipNulls&&P===null||c(B,v(P,pe,F,j,R.allowEmptyArrays,R.strictNullHandling,R.skipNulls,R.encodeDotInKeys,R.encode?R.encoder:null,R.filter,R.sort,R.allowDots,R.serializeDate,R.format,R.formatter,R.encodeValuesOnly,R.charset,z))}var U=B.join(R.delimiter),V=R.addQueryPrefix===!0?"?":"";return R.charsetSentinel&&(R.charset==="iso-8859-1"?V+="utf8=%26%2310003%3B&":V+="utf8=%E2%9C%93&"),U.length>0?V+U:""},I1}var M1,dw;function c$(){if(dw)return M1;dw=1;var r=PS(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(g){return g.replace(/&#(\d+);/g,function(v,w){return String.fromCharCode(parseInt(w,10))})},i=function(g,v,w){if(g&&typeof g=="string"&&v.comma&&g.indexOf(",")>-1)return g.split(",");if(v.throwOnLimitExceeded&&w>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return g},a="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(v,w){var T={__proto__:null},_=w.ignoreQueryPrefix?v.replace(/^\?/,""):v;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var A=w.parameterLimit===1/0?void 0:w.parameterLimit,R=_.split(w.delimiter,w.throwOnLimitExceeded?A+1:A);if(w.throwOnLimitExceeded&&R.length>A)throw new RangeError("Parameter limit exceeded. Only "+A+" parameter"+(A===1?"":"s")+" allowed.");var D=-1,I,B=w.charset;if(w.charsetSentinel)for(I=0;I<R.length;++I)R[I].indexOf("utf8=")===0&&(R[I]===c?B="utf-8":R[I]===a&&(B="iso-8859-1"),D=I,I=R.length);for(I=0;I<R.length;++I)if(I!==D){var F=R[I],j=F.indexOf("]="),z=j===-1?F.indexOf("="):j+1,G,pe;z===-1?(G=w.decoder(F,n.decoder,B,"key"),pe=w.strictNullHandling?null:""):(G=w.decoder(F.slice(0,z),n.decoder,B,"key"),pe=r.maybeMap(i(F.slice(z+1),w,t(T[G])?T[G].length:0),function(U){return w.decoder(U,n.decoder,B,"value")})),pe&&w.interpretNumericEntities&&B==="iso-8859-1"&&(pe=o(String(pe))),F.indexOf("[]=")>-1&&(pe=t(pe)?[pe]:pe);var P=e.call(T,G);P&&w.duplicates==="combine"?T[G]=r.combine(T[G],pe):(!P||w.duplicates==="last")&&(T[G]=pe)}return T},h=function(g,v,w,T){var _=0;if(g.length>0&&g[g.length-1]==="[]"){var A=g.slice(0,-1).join("");_=Array.isArray(v)&&v[A]?v[A].length:0}for(var R=T?v:i(v,w,_),D=g.length-1;D>=0;--D){var I,B=g[D];if(B==="[]"&&w.parseArrays)I=w.allowEmptyArrays&&(R===""||w.strictNullHandling&&R===null)?[]:r.combine([],R);else{I=w.plainObjects?{__proto__:null}:{};var F=B.charAt(0)==="["&&B.charAt(B.length-1)==="]"?B.slice(1,-1):B,j=w.decodeDotInKeys?F.replace(/%2E/g,"."):F,z=parseInt(j,10);!w.parseArrays&&j===""?I={0:R}:!isNaN(z)&&B!==j&&String(z)===j&&z>=0&&w.parseArrays&&z<=w.arrayLimit?(I=[],I[z]=R):j!=="__proto__"&&(I[j]=R)}R=I}return R},p=function(v,w,T,_){if(v){var A=T.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,R=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,I=T.depth>0&&R.exec(A),B=I?A.slice(0,I.index):A,F=[];if(B){if(!T.plainObjects&&e.call(Object.prototype,B)&&!T.allowPrototypes)return;F.push(B)}for(var j=0;T.depth>0&&(I=D.exec(A))!==null&&j<T.depth;){if(j+=1,!T.plainObjects&&e.call(Object.prototype,I[1].slice(1,-1))&&!T.allowPrototypes)return;F.push(I[1])}if(I){if(T.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+T.depth+" and strictDepth is true");F.push("["+A.slice(I.index)+"]")}return h(F,w,T,_)}},m=function(v){if(!v)return n;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.decodeDotInKeys<"u"&&typeof v.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(v.decoder!==null&&typeof v.decoder<"u"&&typeof v.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof v.throwOnLimitExceeded<"u"&&typeof v.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var w=typeof v.charset>"u"?n.charset:v.charset,T=typeof v.duplicates>"u"?n.duplicates:v.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var _=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:n.allowDots:!!v.allowDots;return{allowDots:_,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:n.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:n.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:n.arrayLimit,charset:w,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:n.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:n.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:n.decoder,delimiter:typeof v.delimiter=="string"||r.isRegExp(v.delimiter)?v.delimiter:n.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:n.depth,duplicates:T,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:n.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:n.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:n.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return M1=function(g,v){var w=m(v);if(g===""||g===null||typeof g>"u")return w.plainObjects?{__proto__:null}:{};for(var T=typeof g=="string"?d(g,w):g,_=w.plainObjects?{__proto__:null}:{},A=Object.keys(T),R=0;R<A.length;++R){var D=A[R],I=p(D,T[D],w,typeof g=="string");_=r.merge(_,I,w)}return w.allowSparse===!0?_:r.compact(_)},M1}var L1,fw;function u$(){if(fw)return L1;fw=1;var r=l$(),e=c$(),t=fy();return L1={formats:t,parse:e,stringify:r},L1}var d$=u$();const f$=yf(d$),yv={StoredContexts:{},defaultHandler:()=>{}},BS={Init:()=>{},Create:r=>{const e=r.method+r.url;return yv.StoredContexts[e]=r,h$(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{yv.defaultHandler=r}};function h$(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:o,method:i,stream:a,paramType:c}=r;const{po:d,onStream:h,onStreamEnd:p,noDefaultHandle:m=[]}=n??{};(c==="query"||i==="GET")&&d!==void 0&&(o+="?"+f$.stringify(d,{arrayFormat:"comma"}));const g={method:i,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(c==="form"){const T=new FormData;if(d!==void 0)for(const _ in d){const A=d[_];T.append(_,A)}g.body=T}else(c==="body"||c===void 0&&r.method!=="GET")&&(g.body=JSON.stringify(d),g.headers["Content-Type"]="application/json;charset=UTF-8");let v={errorCode:0,message:""};const w=Date.now();o=BS.FetchBaseUrl()+o;try{let T=await fetch(o,g);if(T.ok===!1)return v.errorCode=T.status,v.message=T.statusText,v;{const _=new TextDecoder("utf-8");if(a){if(T.body){let A=T.body.getReader(),R="";for(;;){const D=await A.read();if(D.done)break;const I=_.decode(D.value).trim();R+=I;let B=null;try{const F=I.split("\0");let j=F[F.length-1];for(let z=F.length-2;z>=0;z--)if(F[z].trim().length!==0){j=F[z];break}B=await JSON.parse(j)}catch{try{const j=R.split("\0");let z=j[j.length-1];for(let G=j.length-2;G>=0;G--)if(j[G].trim().length!==0){z=j[G];break}B=await JSON.parse(z)}catch{}}if(B!=null&&(Object.keys(B).includes("err_code")?v.errorCode=B.err_code:(v.errorCode=0,v.data=B,R="",D.done?p==null||p(v.data):h==null||h(v.data))),D.done)break}}}else if(T.body){const R=await T.body.getReader().read(),D=_.decode(R.value);if(D==="null")return v;{let I=await JSON.parse(D.replaceAll("\0",""));Object.keys(I).includes("err_code")?(v.errorCode=I.err_code,v.message=I.err_msg):v.data=I}}}}catch(T){console.warn(T),v.errorCode=-1,v.message=T.message}return console.debug(`${e} ${Date.now()-w}ms`),m!==!0&&await yv.defaultHandler(v,m),v}}}exports.ABase=Kr;exports.ABaseStyleKeys=Ow;exports.AButton=Go;exports.AButtonStyleKeys=Pw;exports.AButtonTypes=Y4;exports.ACheckBox=af;exports.ACheckBoxStyleKeys=zw;exports.AChip=_v;exports.AChipKeys=sC;exports.AChips=nR;exports.AClock=vR;exports.AColFrame=uC;exports.ADatePicker=Rv;exports.ADatePickerStyleKeys=Xw;exports.ADatePickerTypes=Uk;exports.ADateRangePicker=Ev;exports.ADateRangePickerStyleKeys=Jw;exports.ADialog=Qk;exports.ADialogStyleKeys=Hw;exports.ADialogTypes=Jk;exports.ADivideFrame=fC;exports.AEditor=rj;exports.AEditorStyleKeys=jw;exports.AFileBox=u6;exports.AFileBoxStyleKeys=Gw;exports.AFileUploader=P6;exports.AFileUploaderStyleKeys=Yw;exports.AFloatMenu=gC;exports.AFloatMenuKeys=rC;exports.AFrameStyleKeys=tC;exports.AGrow=Ku;exports.AIcon=en;exports.AIconButton=So;exports.AIconButtonStyleKeys=Qw;exports.AIconButtonTypes=Z4;exports.AIconHOC=e4;exports.AIcons=wv;exports.AInput=Vc;exports.AInputStyleKeys=Bw;exports.AInputTypes=IR;exports.AListView=G6;exports.AListViewStyleKeys=Zw;exports.ALoadingBorder=Iv;exports.ALoadingBorderKeys=nC;exports.AMultiSelect=xI;exports.AMultiSelectStyleKeys=qw;exports.ANumInput=$6;exports.AOverflowFrame=el;exports.AProgressBar=Cw;exports.ARadioSelect=iI;exports.ARadioSelectKeys=iC;exports.ARowFrame=Rn;exports.ASelect=Gc;exports.ASelectStyleKeys=$w;exports.ASelectTypes=WR;exports.ASpace=Nn;exports.AStepper=NI;exports.AStepperStyleKeys=Kw;exports.ASwitch=Tw;exports.ASwitchFrame=dC;exports.ASwitchStyleKeys=Ww;exports.ATab=yC;exports.ATabStyleKeys=Vw;exports.ATabTypes=GI;exports.ATable=t9;exports.ATableStyleKeys=eC;exports.AText=SC;exports.ATextArea=f9;exports.ATextAreaStyleKeys=Fw;exports.ATextAreaTypes=d9;exports.AThemeButton=w5;exports.AThemes=uh;exports.ATooltip=Ew;exports.ATooltipStyleKeys=Nw;exports.ATree=RH;exports.ATreeStyleKeys=Uw;exports.AWrap=Wc;exports.AWrapKeys=oC;exports.AWrapPropsExtract=Zu;exports.AWrapTypes=t5;exports.ApiContext=BS;exports.BodyStyleKeys=Dw;exports.CreateADC=i6;exports.DefaultOptionRenderer=vC;exports.EDir12=bf;exports.EDir4=Io;exports.FileSizeTrans=$u;exports.Icons=xg;exports.IsCursorPointer=yw;exports.IsFixedShape=vw;exports.IsInteractive=bw;exports.NoSelect=gw;exports.NoTransition=mw;exports.Resources=wr;exports.SetResources=g4;exports.alphanumericRegex=iR;exports.bound=ch;exports.cbF=Or;exports.changeSemanticMode=Sv;exports.componentStyleKeys=h5;exports.createEvent=Pu;exports.dateF=tr;exports.dbF=sa;exports.defaultPredicate=xC;exports.dlgF=s6;exports.emailIdRegex=aR;exports.emailRegex=sR;exports.fileF=Bu;exports.getFileKey=pC;exports.getMonthsOptions=Sh;exports.getYearsOptions=Tv;exports.hangulRegex=cR;exports.hexRegex=lR;exports.key=pw;exports.noHanguljamoRegex=dR;exports.noSpaceRegex=uR;exports.numF=mC;exports.objF=ar;exports.paletteKeys=Rw;exports.paletteModes=wg;exports.passwordRegex=hR;exports.refinedDesignTokens=Lo;exports.sF=Ge;exports.semanticKeys=Mw;exports.semanticModes=sf;exports.setDir12Style=Cv;exports.setDir12StyleElem=_w;exports.specialCharRegex=fR;exports.strF=Av;exports.tableF=Pl;exports.textMeasurement=Hu;exports.treeF=Nc;exports.useADialogCore=n6;exports.useADialogCores=r6;exports.useDB=lC;exports.useEvent=CC;exports.useInit=bC;exports.useLayoutDB=cC;exports.useValues=wn;exports.uuidRegex=pR;
|