ados-rcm 1.1.637 → 1.1.639
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 +25 -25
- package/dist/index.es.js +2352 -2350
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15,15 +15,15 @@
|
|
|
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 u0;function xT(){return u0||(u0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,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"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w=Symbol.iterator,T="@@iterator";function A(pe){if(pe===null||typeof pe!="object")return null;var pt=w&&pe[w]||pe[T];return typeof pt=="function"?pt:null}var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(pe){{for(var pt=arguments.length,It=new Array(pt>1?pt-1:0),je=1;je<pt;je++)It[je-1]=arguments[je];D("error",pe,It)}}function D(pe,pt,It){{var je=_.ReactDebugCurrentFrame,Ee=je.getStackAddendum();Ee!==""&&(pt+="%s",It=It.concat([Ee]));var qe=It.map(function(Tt){return String(Tt)});qe.unshift("Warning: "+pt),Function.prototype.apply.call(console[pe],console,qe)}}var M=!1,F=!1,B=!1,z=!1,j=!1,G;G=Symbol.for("react.module.reference");function fe(pe){return!!(typeof pe=="string"||typeof pe=="function"||pe===n||pe===i||j||pe===o||pe===f||pe===p||z||pe===b||M||F||B||typeof pe=="object"&&pe!==null&&(pe.$$typeof===g||pe.$$typeof===m||pe.$$typeof===a||pe.$$typeof===c||pe.$$typeof===u||pe.$$typeof===G||pe.getModuleId!==void 0))}function P(pe,pt,It){var je=pe.displayName;if(je)return je;var Ee=pt.displayName||pt.name||"";return Ee!==""?It+"("+Ee+")":It}function U(pe){return pe.displayName||"Context"}function V(pe){if(pe==null)return null;if(typeof pe.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof pe=="function")return pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof pe=="object")switch(pe.$$typeof){case c:var pt=pe;return U(pt)+".Consumer";case a:var It=pe;return U(It._context)+".Provider";case u:return P(pe,pe.render,"ForwardRef");case m:var je=pe.displayName||null;return je!==null?je:V(pe.type)||"Memo";case g:{var Ee=pe,qe=Ee._payload,Tt=Ee._init;try{return V(Tt(qe))}catch{return null}}}return null}var Q=Object.assign,se=0,te,re,ne,be,ie,de,me;function Ae(){}Ae.__reactDisabledLog=!0;function
|
|
19
|
-
`+we+pe}}var Ce=!1,Se;{var Ie=typeof WeakMap=="function"?WeakMap:Map;Se=new Ie}function et(pe,pt){if(!pe||Ce)return"";{var It=Se.get(pe);if(It!==void 0)return It}var je;Ce=!0;var Ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var qe;qe=ge.current,ge.current=null,
|
|
18
|
+
*/var u0;function xT(){return u0||(u0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,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"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w=Symbol.iterator,T="@@iterator";function A(pe){if(pe===null||typeof pe!="object")return null;var pt=w&&pe[w]||pe[T];return typeof pt=="function"?pt:null}var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(pe){{for(var pt=arguments.length,It=new Array(pt>1?pt-1:0),je=1;je<pt;je++)It[je-1]=arguments[je];D("error",pe,It)}}function D(pe,pt,It){{var je=_.ReactDebugCurrentFrame,Ee=je.getStackAddendum();Ee!==""&&(pt+="%s",It=It.concat([Ee]));var qe=It.map(function(Tt){return String(Tt)});qe.unshift("Warning: "+pt),Function.prototype.apply.call(console[pe],console,qe)}}var M=!1,F=!1,B=!1,z=!1,j=!1,G;G=Symbol.for("react.module.reference");function fe(pe){return!!(typeof pe=="string"||typeof pe=="function"||pe===n||pe===i||j||pe===o||pe===f||pe===p||z||pe===b||M||F||B||typeof pe=="object"&&pe!==null&&(pe.$$typeof===g||pe.$$typeof===m||pe.$$typeof===a||pe.$$typeof===c||pe.$$typeof===u||pe.$$typeof===G||pe.getModuleId!==void 0))}function P(pe,pt,It){var je=pe.displayName;if(je)return je;var Ee=pt.displayName||pt.name||"";return Ee!==""?It+"("+Ee+")":It}function U(pe){return pe.displayName||"Context"}function V(pe){if(pe==null)return null;if(typeof pe.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof pe=="function")return pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof pe=="object")switch(pe.$$typeof){case c:var pt=pe;return U(pt)+".Consumer";case a:var It=pe;return U(It._context)+".Provider";case u:return P(pe,pe.render,"ForwardRef");case m:var je=pe.displayName||null;return je!==null?je:V(pe.type)||"Memo";case g:{var Ee=pe,qe=Ee._payload,Tt=Ee._init;try{return V(Tt(qe))}catch{return null}}}return null}var Q=Object.assign,se=0,te,re,ne,be,ie,de,me;function Ae(){}Ae.__reactDisabledLog=!0;function Oe(){{if(se===0){te=console.log,re=console.info,ne=console.warn,be=console.error,ie=console.group,de=console.groupCollapsed,me=console.groupEnd;var pe={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:pe,log:pe,warn:pe,error:pe,group:pe,groupCollapsed:pe,groupEnd:pe})}se++}}function oe(){{if(se--,se===0){var pe={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},pe,{value:te}),info:Q({},pe,{value:re}),warn:Q({},pe,{value:ne}),error:Q({},pe,{value:be}),group:Q({},pe,{value:ie}),groupCollapsed:Q({},pe,{value:de}),groupEnd:Q({},pe,{value:me})})}se<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=_.ReactCurrentDispatcher,we;function Le(pe,pt,It){{if(we===void 0)try{throw Error()}catch(Ee){var je=Ee.stack.trim().match(/\n( *(at )?)/);we=je&&je[1]||""}return`
|
|
19
|
+
`+we+pe}}var Ce=!1,Se;{var Ie=typeof WeakMap=="function"?WeakMap:Map;Se=new Ie}function et(pe,pt){if(!pe||Ce)return"";{var It=Se.get(pe);if(It!==void 0)return It}var je;Ce=!0;var Ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var qe;qe=ge.current,ge.current=null,Oe();try{if(pt){var Tt=function(){throw Error()};if(Object.defineProperty(Tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Tt,[])}catch(ur){je=ur}Reflect.construct(pe,[],Tt)}else{try{Tt.call()}catch(ur){je=ur}pe.call(Tt.prototype)}}else{try{throw Error()}catch(ur){je=ur}pe()}}catch(ur){if(ur&&je&&typeof ur.stack=="string"){for(var $t=ur.stack.split(`
|
|
20
20
|
`),_t=je.stack.split(`
|
|
21
21
|
`),he=$t.length-1,ct=_t.length-1;he>=1&&ct>=0&&$t[he]!==_t[ct];)ct--;for(;he>=1&&ct>=0;he--,ct--)if($t[he]!==_t[ct]){if(he!==1||ct!==1)do if(he--,ct--,ct<0||$t[he]!==_t[ct]){var wt=`
|
|
22
|
-
`+$t[he].replace(" at new "," at ");return pe.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",pe.displayName)),typeof pe=="function"&&Se.set(pe,wt),wt}while(he>=1&&ct>=0);break}}}finally{Ce=!1,ge.current=qe,oe(),Error.prepareStackTrace=Ee}var fr=pe?pe.displayName||pe.name:"",Fr=fr?Le(fr):"";return typeof pe=="function"&&Se.set(pe,Fr),Fr}function Je(pe,pt,It){return et(pe,!1)}function Qe(pe){var pt=pe.prototype;return!!(pt&&pt.isReactComponent)}function Ze(pe,pt,It){if(pe==null)return"";if(typeof pe=="function")return et(pe,Qe(pe));if(typeof pe=="string")return Le(pe);switch(pe){case f:return Le("Suspense");case p:return Le("SuspenseList")}if(typeof pe=="object")switch(pe.$$typeof){case u:return Je(pe.render);case m:return Ze(pe.type,pt,It);case g:{var je=pe,Ee=je._payload,qe=je._init;try{return Ze(qe(Ee),pt,It)}catch{}}}return""}var Ke=Object.prototype.hasOwnProperty,ht={},Pe=_.ReactDebugCurrentFrame;function Ne(pe){if(pe){var pt=pe._owner,It=Ze(pe.type,pe._source,pt?pt.type:null);Pe.setExtraStackFrame(It)}else Pe.setExtraStackFrame(null)}function Xe(pe,pt,It,je,Ee){{var qe=Function.call.bind(Ke);for(var Tt in pe)if(qe(pe,Tt)){var $t=void 0;try{if(typeof pe[Tt]!="function"){var _t=Error((je||"React class")+": "+It+" type `"+Tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof pe[Tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _t.name="Invariant Violation",_t}$t=pe[Tt](pt,Tt,je,It,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){$t=he}$t&&!($t instanceof Error)&&(Ne(Ee),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).",je||"React class",It,Tt,typeof $t),Ne(null)),$t instanceof Error&&!($t.message in ht)&&(ht[$t.message]=!0,Ne(Ee),R("Failed %s type: %s",It,$t.message),Ne(null))}}}var We=Array.isArray;function Ve(pe){return We(pe)}function
|
|
22
|
+
`+$t[he].replace(" at new "," at ");return pe.displayName&&wt.includes("<anonymous>")&&(wt=wt.replace("<anonymous>",pe.displayName)),typeof pe=="function"&&Se.set(pe,wt),wt}while(he>=1&&ct>=0);break}}}finally{Ce=!1,ge.current=qe,oe(),Error.prepareStackTrace=Ee}var fr=pe?pe.displayName||pe.name:"",Fr=fr?Le(fr):"";return typeof pe=="function"&&Se.set(pe,Fr),Fr}function Je(pe,pt,It){return et(pe,!1)}function Qe(pe){var pt=pe.prototype;return!!(pt&&pt.isReactComponent)}function Ze(pe,pt,It){if(pe==null)return"";if(typeof pe=="function")return et(pe,Qe(pe));if(typeof pe=="string")return Le(pe);switch(pe){case f:return Le("Suspense");case p:return Le("SuspenseList")}if(typeof pe=="object")switch(pe.$$typeof){case u:return Je(pe.render);case m:return Ze(pe.type,pt,It);case g:{var je=pe,Ee=je._payload,qe=je._init;try{return Ze(qe(Ee),pt,It)}catch{}}}return""}var Ke=Object.prototype.hasOwnProperty,ht={},Pe=_.ReactDebugCurrentFrame;function Ne(pe){if(pe){var pt=pe._owner,It=Ze(pe.type,pe._source,pt?pt.type:null);Pe.setExtraStackFrame(It)}else Pe.setExtraStackFrame(null)}function Xe(pe,pt,It,je,Ee){{var qe=Function.call.bind(Ke);for(var Tt in pe)if(qe(pe,Tt)){var $t=void 0;try{if(typeof pe[Tt]!="function"){var _t=Error((je||"React class")+": "+It+" type `"+Tt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof pe[Tt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _t.name="Invariant Violation",_t}$t=pe[Tt](pt,Tt,je,It,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){$t=he}$t&&!($t instanceof Error)&&(Ne(Ee),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).",je||"React class",It,Tt,typeof $t),Ne(null)),$t instanceof Error&&!($t.message in ht)&&(ht[$t.message]=!0,Ne(Ee),R("Failed %s type: %s",It,$t.message),Ne(null))}}}var We=Array.isArray;function Ve(pe){return We(pe)}function lt(pe){{var pt=typeof Symbol=="function"&&Symbol.toStringTag,It=pt&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return It}}function st(pe){try{return De(pe),!1}catch{return!0}}function De(pe){return""+pe}function at(pe){if(st(pe))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lt(pe)),De(pe)}var mt=_.ReactCurrentOwner,ut={key:!0,ref:!0,__self:!0,__source:!0},Dt,Bt;function Pt(pe){if(Ke.call(pe,"ref")){var pt=Object.getOwnPropertyDescriptor(pe,"ref").get;if(pt&&pt.isReactWarning)return!1}return pe.ref!==void 0}function Xt(pe){if(Ke.call(pe,"key")){var pt=Object.getOwnPropertyDescriptor(pe,"key").get;if(pt&&pt.isReactWarning)return!1}return pe.key!==void 0}function ar(pe,pt){typeof pe.ref=="string"&&mt.current}function Kt(pe,pt){{var It=function(){Dt||(Dt=!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)",pt))};It.isReactWarning=!0,Object.defineProperty(pe,"key",{get:It,configurable:!0})}}function cr(pe,pt){{var It=function(){Bt||(Bt=!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)",pt))};It.isReactWarning=!0,Object.defineProperty(pe,"ref",{get:It,configurable:!0})}}var Te=function(pe,pt,It,je,Ee,qe,Tt){var $t={$$typeof:e,type:pe,key:pt,ref:It,props:Tt,_owner:qe};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function ae(pe,pt,It,je,Ee){{var qe,Tt={},$t=null,_t=null;It!==void 0&&(at(It),$t=""+It),Xt(pt)&&(at(pt.key),$t=""+pt.key),Pt(pt)&&(_t=pt.ref,ar(pt,Ee));for(qe in pt)Ke.call(pt,qe)&&!ut.hasOwnProperty(qe)&&(Tt[qe]=pt[qe]);if(pe&&pe.defaultProps){var he=pe.defaultProps;for(qe in he)Tt[qe]===void 0&&(Tt[qe]=he[qe])}if($t||_t){var ct=typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe;$t&&Kt(Tt,ct),_t&&cr(Tt,ct)}return Te(pe,$t,_t,Ee,je,mt.current,Tt)}}var it=_.ReactCurrentOwner,bt=_.ReactDebugCurrentFrame;function qt(pe){if(pe){var pt=pe._owner,It=Ze(pe.type,pe._source,pt?pt.type:null);bt.setExtraStackFrame(It)}else bt.setExtraStackFrame(null)}var Ft;Ft=!1;function Lt(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===e}function Ht(){{if(it.current){var pe=V(it.current.type);if(pe)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+pe+"`."}return""}}function Ue(pe){return""}var dt={};function yt(pe){{var pt=Ht();if(!pt){var It=typeof pe=="string"?pe:pe.displayName||pe.name;It&&(pt=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+It+">.")}return pt}}function Et(pe,pt){{if(!pe._store||pe._store.validated||pe.key!=null)return;pe._store.validated=!0;var It=yt(pt);if(dt[It])return;dt[It]=!0;var je="";pe&&pe._owner&&pe._owner!==it.current&&(je=" It was passed a child from "+V(pe._owner.type)+"."),qt(pe),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',It,je),qt(null)}}function Nt(pe,pt){{if(typeof pe!="object")return;if(Ve(pe))for(var It=0;It<pe.length;It++){var je=pe[It];
|
|
26
|
+
Check the top-level render call using <`+It+">.")}return pt}}function Et(pe,pt){{if(!pe._store||pe._store.validated||pe.key!=null)return;pe._store.validated=!0;var It=yt(pt);if(dt[It])return;dt[It]=!0;var je="";pe&&pe._owner&&pe._owner!==it.current&&(je=" It was passed a child from "+V(pe._owner.type)+"."),qt(pe),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',It,je),qt(null)}}function Nt(pe,pt){{if(typeof pe!="object")return;if(Ve(pe))for(var It=0;It<pe.length;It++){var je=pe[It];Lt(je)&&Et(je,pt)}else if(Lt(pe))pe._store&&(pe._store.validated=!0);else if(pe){var Ee=A(pe);if(typeof Ee=="function"&&Ee!==pe.entries)for(var qe=Ee.call(pe),Tt;!(Tt=qe.next()).done;)Lt(Tt.value)&&Et(Tt.value,pt)}}}function rt(pe){{var pt=pe.type;if(pt==null||typeof pt=="string")return;var It;if(typeof pt=="function")It=pt.propTypes;else if(typeof pt=="object"&&(pt.$$typeof===u||pt.$$typeof===m))It=pt.propTypes;else return;if(It){var je=V(pt);Xe(It,pe.props,"prop",je,pe)}else if(pt.PropTypes!==void 0&&!Ft){Ft=!0;var Ee=V(pt);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ee||"Unknown")}typeof pt.getDefaultProps=="function"&&!pt.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function St(pe){{for(var pt=Object.keys(pe.props),It=0;It<pt.length;It++){var je=pt[It];if(je!=="children"&&je!=="key"){qt(pe),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",je),qt(null);break}}pe.ref!==null&&(qt(pe),R("Invalid attribute `ref` supplied to `React.Fragment`."),qt(null))}}var jt={};function tr(pe,pt,It,je,Ee,qe){{var Tt=fe(pe);if(!Tt){var $t="";(pe===void 0||typeof pe=="object"&&pe!==null&&Object.keys(pe).length===0)&&($t+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _t=Ue();_t?$t+=_t:$t+=Ht();var he;pe===null?he="null":Ve(pe)?he="array":pe!==void 0&&pe.$$typeof===e?(he="<"+(V(pe.type)||"Unknown")+" />",$t=" Did you accidentally export a JSX literal instead of a component?"):he=typeof pe,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,$t)}var ct=ae(pe,pt,It,Ee,qe);if(ct==null)return ct;if(Tt){var wt=pt.children;if(wt!==void 0)if(je)if(Ve(wt)){for(var fr=0;fr<wt.length;fr++)Nt(wt[fr],pe);Object.freeze&&Object.freeze(wt)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Nt(wt,pe)}if(Ke.call(pt,"key")){var Fr=V(pe),ur=Object.keys(pt).filter(function(sn){return sn!=="key"}),xr=ur.length>0?"{key: someKey, "+ur.join(": ..., ")+": ...}":"{key: someKey}";if(!jt[Fr+xr]){var tn=ur.length>0?"{"+ur.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -35,9 +35,9 @@ 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 CT=lh.exports,f0;function ST(){return f0||(f0=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`",u="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",m=1,g=2,b=4,w=1,T=2,A=1,_=2,R=4,D=8,M=16,F=32,B=64,z=128,j=256,G=512,fe=30,P="...",U=800,V=16,Q=1,se=2,te=3,re=1/0,ne=9007199254740991,be=17976931348623157e292,ie=NaN,de=4294967295,me=de-1,Ae=de>>>1,De=[["ary",z],["bind",A],["bindKey",_],["curry",D],["curryRight",M],["flip",G],["partial",F],["partialRight",B],["rearg",j]],oe="[object Arguments]",ge="[object Array]",we="[object AsyncFunction]",Le="[object Boolean]",Ce="[object Date]",Se="[object DOMException]",Ie="[object Error]",et="[object Function]",Je="[object GeneratorFunction]",Qe="[object Map]",Ze="[object Number]",Ke="[object Null]",ht="[object Object]",Pe="[object Promise]",Ne="[object Proxy]",Xe="[object RegExp]",We="[object Set]",Ve="[object String]",at="[object Symbol]",lt="[object Undefined]",Oe="[object WeakMap]",st="[object WeakSet]",mt="[object ArrayBuffer]",ut="[object DataView]",Lt="[object Float32Array]",Bt="[object Float64Array]",Pt="[object Int8Array]",Xt="[object Int16Array]",ar="[object Int32Array]",Kt="[object Uint8Array]",cr="[object Uint8ClampedArray]",Te="[object Uint16Array]",ae="[object Uint32Array]",it=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,qt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ft=/&(?:amp|lt|gt|quot|#39);/g,Dt=/[&<>"']/g,Ht=RegExp(Ft.source),Ue=RegExp(Dt.source),dt=/<%-([\s\S]+?)%>/g,yt=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jt=/[\\^$.*+?()[\]{}|]/g,tr=RegExp(jt.source),Ut=/^\s+/,br=/\s/,Nr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pr=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,It=/[()=,{}\[\]\/\s]/,je=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Tt=/^[-+]0x[0-9a-f]+$/i,$t=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fr=/($^)/,Fr=/['\n\r\u2028\u2029\\]/g,ur="\\ud800-\\udfff",xr="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",sn="\\u20d0-\\u20ff",Pn=xr+tn+sn,Hr="\\u2700-\\u27bf",rn="a-z\\xdf-\\xf6\\xf8-\\xff",In="\\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",Hn="\\ufe0e\\ufe0f",Fn=In+Bn+_o+Do,Cn="['’]",io="["+ur+"]",yn="["+Fn+"]",En="["+Pn+"]",k="\\d+",$="["+Hr+"]",X="["+rn+"]",le="[^"+ur+Fn+k+Hr+rn+Oo+"]",$e="\\ud83c[\\udffb-\\udfff]",Fe="(?:"+En+"|"+$e+")",nt="[^"+ur+"]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="["+Oo+"]",Yt="\\u200d",kr="(?:"+X+"|"+le+")",an="(?:"+Zt+"|"+le+")",Mn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Ln="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",po=Fe+"?",Kn="["+Hn+"]?",No="(?:"+Yt+"(?:"+[nt,kt,Wt].join("|")+")"+Kn+po+")*",dn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ao="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xn=Kn+po+No,so="(?:"+[$,kt,Wt].join("|")+")"+Xn,Pi="(?:"+[nt+En+"?",En,kt,Wt,io].join("|")+")",yi=RegExp(Cn,"g"),bi=RegExp(En,"g"),$n=RegExp($e+"(?="+$e+")|"+Pi+Xn,"g"),Bi=RegExp([Zt+"?"+X+"+"+Mn+"(?="+[yn,Zt,"$"].join("|")+")",an+"+"+Ln+"(?="+[yn,Zt+kr,"$"].join("|")+")",Zt+"?"+kr+"+"+Mn,Zt+"+"+Ln,Ao,dn,k,so].join("|"),"g"),ao=RegExp("["+Yt+ur+Pn+Hn+"]"),lo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ri=["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,Mr={};Mr[Lt]=Mr[Bt]=Mr[Pt]=Mr[Xt]=Mr[ar]=Mr[Kt]=Mr[cr]=Mr[Te]=Mr[ae]=!0,Mr[oe]=Mr[ge]=Mr[mt]=Mr[Le]=Mr[ut]=Mr[Ce]=Mr[Ie]=Mr[et]=Mr[Qe]=Mr[Ze]=Mr[ht]=Mr[Xe]=Mr[We]=Mr[Ve]=Mr[Oe]=!1;var jr={};jr[oe]=jr[ge]=jr[mt]=jr[ut]=jr[Le]=jr[Ce]=jr[Lt]=jr[Bt]=jr[Pt]=jr[Xt]=jr[ar]=jr[Qe]=jr[Ze]=jr[ht]=jr[Xe]=jr[We]=jr[Ve]=jr[at]=jr[Kt]=jr[cr]=jr[Te]=jr[ae]=!0,jr[Ie]=jr[et]=jr[Oe]=!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={"&":"&","<":"<",">":">",'"':""","'":"'"},xe={"&":"&","<":"<",">":">",""":'"',"'":"'"},ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ir=parseFloat,Qt=parseInt,_r=typeof Di=="object"&&Di&&Di.Object===Object&&Di,Ir=typeof self=="object"&&self&&self.Object===Object&&self,Cr=_r||Ir||Function("return this")(),Lr=e&&!e.nodeType&&e,fn=Lr&&!0&&r&&!r.nodeType&&r,qn=fn&&fn.exports===Lr,nn=qn&&_r.process,Vr=function(){try{var ke=fn&&fn.require&&fn.require("util").types;return ke||nn&&nn.binding&&nn.binding("util")}catch{}}(),hn=Vr&&Vr.isArrayBuffer,go=Vr&&Vr.isDate,Eo=Vr&&Vr.isMap,Jn=Vr&&Vr.isRegExp,Fi=Vr&&Vr.isSet,ni=Vr&&Vr.isTypedArray;function bn(ke,ft,tt){switch(tt.length){case 0:return ke.call(ft);case 1:return ke.call(ft,tt[0]);case 2:return ke.call(ft,tt[0],tt[1]);case 3:return ke.call(ft,tt[0],tt[1],tt[2])}return ke.apply(ft,tt)}function Ns(ke,ft,tt,Vt){for(var hr=-1,$r=ke==null?0:ke.length;++hr<$r;){var Dn=ke[hr];ft(Vt,Dn,tt(Dn),ke)}return Vt}function Qn(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length;++tt<Vt&&ft(ke[tt],tt,ke)!==!1;);return ke}function Vl(ke,ft){for(var tt=ke==null?0:ke.length;tt--&&ft(ke[tt],tt,ke)!==!1;);return ke}function ll(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length;++tt<Vt;)if(!ft(ke[tt],tt,ke))return!1;return!0}function oi(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length,hr=0,$r=[];++tt<Vt;){var Dn=ke[tt];ft(Dn,tt,ke)&&($r[hr++]=Dn)}return $r}function ji(ke,ft){var tt=ke==null?0:ke.length;return!!tt&&zi(ke,ft,0)>-1}function eo(ke,ft,tt){for(var Vt=-1,hr=ke==null?0:ke.length;++Vt<hr;)if(tt(ft,ke[Vt]))return!0;return!1}function ln(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length,hr=Array(Vt);++tt<Vt;)hr[tt]=ft(ke[tt],tt,ke);return hr}function Po(ke,ft){for(var tt=-1,Vt=ft.length,hr=ke.length;++tt<Vt;)ke[hr+tt]=ft[tt];return ke}function cl(ke,ft,tt,Vt){var hr=-1,$r=ke==null?0:ke.length;for(Vt&&$r&&(tt=ke[++hr]);++hr<$r;)tt=ft(tt,ke[hr],hr,ke);return tt}function Gl(ke,ft,tt,Vt){var hr=ke==null?0:ke.length;for(Vt&&hr&&(tt=ke[--hr]);hr--;)tt=ft(tt,ke[hr],hr,ke);return tt}function as(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length;++tt<Vt;)if(ft(ke[tt],tt,ke))return!0;return!1}var Yl=I("length");function Zl(ke){return ke.split("")}function wa(ke){return ke.match(pt)||[]}function Ps(ke,ft,tt){var Vt;return tt(ke,function(hr,$r,Dn){if(ft(hr,$r,Dn))return Vt=$r,!1}),Vt}function Bs(ke,ft,tt,Vt){for(var hr=ke.length,$r=tt+(Vt?1:-1);Vt?$r--:++$r<hr;)if(ft(ke[$r],$r,ke))return $r;return-1}function zi(ke,ft,tt){return ft===ft?Rf(ke,ft,tt):Bs(ke,Ca,tt)}function Kl(ke,ft,tt,Vt){for(var hr=tt-1,$r=ke.length;++hr<$r;)if(Vt(ke[hr],ft))return hr;return-1}function Ca(ke){return ke!==ke}function ul(ke,ft){var tt=ke==null?0:ke.length;return tt?Ge(ke,ft)/tt:ie}function I(ke){return function(ft){return ft==null?t:ft[ke]}}function H(ke){return function(ft){return ke==null?t:ke[ft]}}function Y(ke,ft,tt,Vt,hr){return hr(ke,function($r,Dn,Qr){tt=Vt?(Vt=!1,$r):ft(tt,$r,Dn,Qr)}),tt}function ce(ke,ft){var tt=ke.length;for(ke.sort(ft);tt--;)ke[tt]=ke[tt].value;return ke}function Ge(ke,ft){for(var tt,Vt=-1,hr=ke.length;++Vt<hr;){var $r=ft(ke[Vt]);$r!==t&&(tt=tt===t?$r:tt+$r)}return tt}function He(ke,ft){for(var tt=-1,Vt=Array(ke);++tt<ke;)Vt[tt]=ft(tt);return Vt}function gt(ke,ft){return ln(ft,function(tt){return[tt,ke[tt]]})}function Ot(ke){return ke&&ke.slice(0,id(ke)+1).replace(Ut,"")}function Jt(ke){return function(ft){return ke(ft)}}function Sr(ke,ft){return ln(ft,function(tt){return ke[tt]})}function gr(ke,ft){return ke.has(ft)}function on(ke,ft){for(var tt=-1,Vt=ke.length;++tt<Vt&&zi(ft,ke[tt],0)>-1;);return tt}function co(ke,ft){for(var tt=ke.length;tt--&&zi(ft,ke[tt],0)>-1;);return tt}function Bo(ke,ft){for(var tt=ke.length,Vt=0;tt--;)ke[tt]===ft&&++Vt;return Vt}var Fo=H(O),Sa=H(J);function Xl(ke){return"\\"+ot[ke]}function Fs(ke,ft){return ke==null?t:ke[ft]}function _a(ke){return ao.test(ke)}function Ef(ke){return lo.test(ke)}function eu(ke){for(var ft,tt=[];!(ft=ke.next()).done;)tt.push(ft.value);return tt}function tu(ke){var ft=-1,tt=Array(ke.size);return ke.forEach(function(Vt,hr){tt[++ft]=[hr,Vt]}),tt}function od(ke,ft){return function(tt){return ke(ft(tt))}}function Hi(ke,ft){for(var tt=-1,Vt=ke.length,hr=0,$r=[];++tt<Vt;){var Dn=ke[tt];(Dn===ft||Dn===p)&&(ke[tt]=p,$r[hr++]=tt)}return $r}function dl(ke){var ft=-1,tt=Array(ke.size);return ke.forEach(function(Vt){tt[++ft]=Vt}),tt}function Tf(ke){var ft=-1,tt=Array(ke.size);return ke.forEach(function(Vt){tt[++ft]=[Vt,Vt]}),tt}function Rf(ke,ft,tt){for(var Vt=tt-1,hr=ke.length;++Vt<hr;)if(ke[Vt]===ft)return Vt;return-1}function kf(ke,ft,tt){for(var Vt=tt+1;Vt--;)if(ke[Vt]===ft)return Vt;return Vt}function Aa(ke){return _a(ke)?Jl(ke):Yl(ke)}function Sn(ke){return _a(ke)?jo(ke):Zl(ke)}function id(ke){for(var ft=ke.length;ft--&&br.test(ke.charAt(ft)););return ft}var sd=H(xe);function Jl(ke){for(var ft=$n.lastIndex=0;$n.test(ke);)++ft;return ft}function jo(ke){return ke.match($n)||[]}function ad(ke){return ke.match(Bi)||[]}var Ql=function ke(ft){ft=ft==null?Cr:$i.defaults(Cr.Object(),ft,$i.pick(Cr,ri));var tt=ft.Array,Vt=ft.Date,hr=ft.Error,$r=ft.Function,Dn=ft.Math,Qr=ft.Object,Ea=ft.RegExp,ld=ft.String,Zo=ft.TypeError,ec=tt.prototype,If=$r.prototype,ls=Qr.prototype,cn=ft["__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(jt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ta=qn?ft.Buffer:t,Ui=ft.Symbol,fl=ft.Uint8Array,hl=Ta?Ta.allocUnsafe:t,js=od(Qr.getPrototypeOf,Qr),Ra=Qr.create,tc=ls.propertyIsEnumerable,Wi=ec.splice,rc=Ui?Ui.isConcatSpreadable:t,ii=Ui?Ui.iterator:t,Vi=Ui?Ui.toStringTag:t,us=function(){try{var s=Iu(Qr,"defineProperty");return s({},"",{}),s}catch{}}(),Mf=ft.clearTimeout!==Cr.clearTimeout&&ft.clearTimeout,pl=Vt&&Vt.now!==Cr.Date.now&&Vt.now,cd=ft.setTimeout!==Cr.setTimeout&&ft.setTimeout,ka=Dn.ceil,zs=Dn.floor,Ia=Qr.getOwnPropertySymbols,nc=Ta?Ta.isBuffer:t,Ma=ft.isFinite,gl=ec.join,ud=od(Qr.keys,Qr),xn=Dn.max,Un=Dn.min,ds=Vt.now,su=ft.parseInt,fs=Dn.random,oc=ec.reverse,xi=Iu(ft,"DataView"),hs=Iu(ft,"Map"),La=Iu(ft,"Promise"),wi=Iu(ft,"Set"),Gi=Iu(ft,"WeakMap"),Da=Iu(Qr,"create"),ml=Gi&&new Gi,Hs={},ps=Mu(xi),au=Mu(hs),Lf=Mu(La),dd=Mu(wi),Oa=Mu(Gi),gs=Ui?Ui.prototype:t,$s=gs?gs.valueOf:t,vl=gs?gs.toString:t;function Z(s){if(Zn(s)&&!Rr(s)&&!(s instanceof Tr)){if(s instanceof uo)return s;if(Xr.call(s,"__wrapped__"))return Ry(s)}return new uo(s)}var Yi=function(){function s(){}return function(d){if(!Wn(d))return{};if(Ra)return Ra(d);s.prototype=d;var x=new s;return s.prototype=t,x}}();function Zi(){}function uo(s,d){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=t}Z.templateSettings={escape:dt,evaluate:yt,interpolate:Et,variable:"",imports:{_:Z}},Z.prototype=Zi.prototype,Z.prototype.constructor=Z,uo.prototype=Yi(Zi.prototype),uo.prototype.constructor=uo;function Tr(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function ic(){var s=new Tr(this.__wrapped__);return s.__actions__=wo(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=wo(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=wo(this.__views__),s}function yl(){if(this.__filtered__){var s=new Tr(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function sc(){var s=this.__wrapped__.value(),d=this.__dir__,x=Rr(s),L=d<0,W=x?s.length:0,ee=qS(0,W,this.__views__),ye=ee.start,_e=ee.end,Be=_e-ye,xt=L?_e:ye-1,Ct=this.__iteratees__,Mt=Ct.length,Gt=0,sr=Un(Be,this.__takeCount__);if(!x||!L&&W==Be&&sr==Be)return Td(s,this.__actions__);var vr=[];e:for(;Be--&&Gt<sr;){xt+=d;for(var Br=-1,yr=s[xt];++Br<Mt;){var Ur=Ct[Br],Zr=Ur.iteratee,es=Ur.type,fi=Zr(yr);if(es==se)yr=fi;else if(!fi){if(es==Q)continue e;break e}}vr[Gt++]=yr}return vr}Tr.prototype=Yi(Zi.prototype),Tr.prototype.constructor=Tr;function Ci(s){var d=-1,x=s==null?0:s.length;for(this.clear();++d<x;){var L=s[d];this.set(L[0],L[1])}}function lu(){this.__data__=Da?Da(null):{},this.size=0}function fd(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}function hd(s){var d=this.__data__;if(Da){var x=d[s];return x===u?t:x}return Xr.call(d,s)?d[s]:t}function pd(s){var d=this.__data__;return Da?d[s]!==t:Xr.call(d,s)}function Df(s,d){var x=this.__data__;return this.size+=this.has(s)?0:1,x[s]=Da&&d===t?u:d,this}Ci.prototype.clear=lu,Ci.prototype.delete=fd,Ci.prototype.get=hd,Ci.prototype.has=pd,Ci.prototype.set=Df;function Si(s){var d=-1,x=s==null?0:s.length;for(this.clear();++d<x;){var L=s[d];this.set(L[0],L[1])}}function Of(){this.__data__=[],this.size=0}function Nf(s){var d=this.__data__,x=si(d,s);if(x<0)return!1;var L=d.length-1;return x==L?d.pop():Wi.call(d,x,1),--this.size,!0}function cu(s){var d=this.__data__,x=si(d,s);return x<0?t:d[x][1]}function bl(s){return si(this.__data__,s)>-1}function Pf(s,d){var x=this.__data__,L=si(x,s);return L<0?(++this.size,x.push([s,d])):x[L][1]=d,this}Si.prototype.clear=Of,Si.prototype.delete=Nf,Si.prototype.get=cu,Si.prototype.has=bl,Si.prototype.set=Pf;function Ki(s){var d=-1,x=s==null?0:s.length;for(this.clear();++d<x;){var L=s[d];this.set(L[0],L[1])}}function uu(){this.size=0,this.__data__={hash:new Ci,map:new(hs||Si),string:new Ci}}function ac(s){var d=Zh(this,s).delete(s);return this.size-=d?1:0,d}function Bf(s){return Zh(this,s).get(s)}function Ff(s){return Zh(this,s).has(s)}function jf(s,d){var x=Zh(this,s),L=x.size;return x.set(s,d),this.size+=x.size==L?0:1,this}Ki.prototype.clear=uu,Ki.prototype.delete=ac,Ki.prototype.get=Bf,Ki.prototype.has=Ff,Ki.prototype.set=jf;function mo(s){var d=-1,x=s==null?0:s.length;for(this.__data__=new Ki;++d<x;)this.add(s[d])}function du(s){return this.__data__.set(s,u),this}function lc(s){return this.__data__.has(s)}mo.prototype.add=mo.prototype.push=du,mo.prototype.has=lc;function Pr(s){var d=this.__data__=new Si(s);this.size=d.size}function zo(){this.__data__=new Si,this.size=0}function Na(s){var d=this.__data__,x=d.delete(s);return this.size=d.size,x}function qs(s){return this.__data__.get(s)}function qr(s){return this.__data__.has(s)}function ms(s,d){var x=this.__data__;if(x instanceof Si){var L=x.__data__;if(!hs||L.length<o-1)return L.push([s,d]),this.size=++x.size,this;x=this.__data__=new Ki(L)}return x.set(s,d),this.size=x.size,this}Pr.prototype.clear=zo,Pr.prototype.delete=Na,Pr.prototype.get=qs,Pr.prototype.has=qr,Pr.prototype.set=ms;function xl(s,d){var x=Rr(s),L=!x&&Lu(s),W=!x&&!L&&Ac(s),ee=!x&&!L&&!W&&Od(s),ye=x||L||W||ee,_e=ye?He(s.length,ld):[],Be=_e.length;for(var xt in s)(d||Xr.call(s,xt))&&!(ye&&(xt=="length"||W&&(xt=="offset"||xt=="parent")||ee&&(xt=="buffer"||xt=="byteLength"||xt=="byteOffset")||Ml(xt,Be)))&&_e.push(xt);return _e}function To(s){var d=s.length;return d?s[Ks(0,d-1)]:t}function Ho(s,d){return Kh(wo(s),Ws(d,0,s.length))}function _i(s){return Kh(wo(s))}function fu(s,d,x){(x!==t&&!ta(s[d],x)||x===t&&!(d in s))&&$o(s,d,x)}function vo(s,d,x){var L=s[d];(!(Xr.call(s,d)&&ta(L,x))||x===t&&!(d in s))&&$o(s,d,x)}function si(s,d){for(var x=s.length;x--;)if(ta(s[x][0],d))return x;return-1}function Us(s,d,x,L){return vs(s,function(W,ee,ye){d(L,W,x(W),ye)}),L}function gd(s,d){return s&&Ko(d,ko(d),s)}function hu(s,d){return s&&Ko(d,ki(d),s)}function $o(s,d,x){d=="__proto__"&&us?us(s,d,{configurable:!0,enumerable:!0,value:x,writable:!0}):s[d]=x}function pu(s,d){for(var x=-1,L=d.length,W=tt(L),ee=s==null;++x<L;)W[x]=ee?t:nm(s,d[x]);return W}function Ws(s,d,x){return s===s&&(x!==t&&(s=s<=x?s:x),d!==t&&(s=s>=d?s:d)),s}function yo(s,d,x,L,W,ee){var ye,_e=d&m,Be=d&g,xt=d&b;if(x&&(ye=W?x(s,L,W,ee):x(s)),ye!==t)return ye;if(!Wn(s))return s;var Ct=Rr(s);if(Ct){if(ye=WS(s),!_e)return wo(s,ye)}else{var Mt=Xo(s),Gt=Mt==et||Mt==Je;if(Ac(s))return Cs(s,_e);if(Mt==ht||Mt==oe||Gt&&!W){if(ye=Be||Gt?{}:by(s),!_e)return Be?$f(s,hu(ye,s)):Md(s,gd(ye,s))}else{if(!jr[Mt])return W?s:{};ye=VS(s,Mt,_e)}}ee||(ee=new Pr);var sr=ee.get(s);if(sr)return sr;ee.set(s,ye),Yy(s)?s.forEach(function(yr){ye.add(yo(yr,d,x,yr,s,ee))}):Vy(s)&&s.forEach(function(yr,Ur){ye.set(Ur,yo(yr,d,x,Ur,s,ee))});var vr=xt?Be?qg:$g:Be?ki:ko,Br=Ct?t:vr(s);return Qn(Br||s,function(yr,Ur){Br&&(Ur=yr,yr=s[Ur]),vo(ye,Ur,yo(yr,d,x,Ur,s,ee))}),ye}function gu(s){var d=ko(s);return function(x){return mu(x,s,d)}}function mu(s,d,x){var L=x.length;if(s==null)return!L;for(s=Qr(s);L--;){var W=x[L],ee=d[W],ye=s[W];if(ye===t&&!(W in s)||!ee(ye))return!1}return!0}function vu(s,d,x){if(typeof s!="function")throw new Zo(a);return Uf(function(){s.apply(t,x)},d)}function Vs(s,d,x,L){var W=-1,ee=ji,ye=!0,_e=s.length,Be=[],xt=d.length;if(!_e)return Be;x&&(d=ln(d,Jt(x))),L?(ee=eo,ye=!1):d.length>=o&&(ee=gr,ye=!1,d=new mo(d));e:for(;++W<_e;){var Ct=s[W],Mt=x==null?Ct:x(Ct);if(Ct=L||Ct!==0?Ct:0,ye&&Mt===Mt){for(var Gt=xt;Gt--;)if(d[Gt]===Mt)continue e;Be.push(Ct)}else ee(d,Mt,L)||Be.push(Ct)}return Be}var vs=y(qo),yu=y(uc,!0);function md(s,d){var x=!0;return vs(s,function(L,W,ee){return x=!!d(L,W,ee),x}),x}function cc(s,d,x){for(var L=-1,W=s.length;++L<W;){var ee=s[L],ye=d(ee);if(ye!=null&&(_e===t?ye===ye&&!Qi(ye):x(ye,_e)))var _e=ye,Be=ee}return Be}function zf(s,d,x,L){var W=s.length;for(x=Dr(x),x<0&&(x=-x>W?0:W+x),L=L===t||L>W?W:Dr(L),L<0&&(L+=W),L=x>L?0:Ky(L);x<L;)s[x++]=d;return s}function vd(s,d){var x=[];return vs(s,function(L,W,ee){d(L,W,ee)&&x.push(L)}),x}function to(s,d,x,L,W){var ee=-1,ye=s.length;for(x||(x=YS),W||(W=[]);++ee<ye;){var _e=s[ee];d>0&&x(_e)?d>1?to(_e,d-1,x,L,W):Po(W,_e):L||(W[W.length]=_e)}return W}var bu=l(),yd=l(!0);function qo(s,d){return s&&bu(s,d,ko)}function uc(s,d){return s&&yd(s,d,ko)}function Pa(s,d){return oi(d,function(x){return Ll(s[x])})}function ys(s,d){d=Uo(d,s);for(var x=0,L=d.length;s!=null&&x<L;)s=s[Wa(d[x++])];return x&&x==L?s:t}function wl(s,d,x){var L=d(s);return Rr(s)?L:Po(L,x(s))}function Gn(s){return s==null?s===t?lt:Ke:Vi&&Vi in Qr(s)?$S(s):t_(s)}function Gs(s,d){return s>d}function dc(s,d){return s!=null&&Xr.call(s,d)}function Ba(s,d){return s!=null&&d in Qr(s)}function fc(s,d,x){return s>=Un(d,x)&&s<xn(d,x)}function Fa(s,d,x){for(var L=x?eo:ji,W=s[0].length,ee=s.length,ye=ee,_e=tt(ee),Be=1/0,xt=[];ye--;){var Ct=s[ye];ye&&d&&(Ct=ln(Ct,Jt(d))),Be=Un(Ct.length,Be),_e[ye]=!x&&(d||W>=120&&Ct.length>=120)?new mo(ye&&Ct):t}Ct=s[0];var Mt=-1,Gt=_e[0];e:for(;++Mt<W&&xt.length<Be;){var sr=Ct[Mt],vr=d?d(sr):sr;if(sr=x||sr!==0?sr:0,!(Gt?gr(Gt,vr):L(xt,vr,x))){for(ye=ee;--ye;){var Br=_e[ye];if(!(Br?gr(Br,vr):L(s[ye],vr,x)))continue e}Gt&&Gt.push(vr),xt.push(sr)}}return xt}function hc(s,d,x,L){return qo(s,function(W,ee,ye){d(L,x(W),ee,ye)}),L}function Ai(s,d,x){d=Uo(d,s),s=Sy(s,d);var L=s==null?s:s[Wa(_s(d))];return L==null?t:bn(L,s,x)}function pc(s){return Zn(s)&&Gn(s)==oe}function Ys(s){return Zn(s)&&Gn(s)==mt}function bd(s){return Zn(s)&&Gn(s)==Ce}function Cl(s,d,x,L,W){return s===d?!0:s==null||d==null||!Zn(s)&&!Zn(d)?s!==s&&d!==d:ja(s,d,x,L,Cl,W)}function ja(s,d,x,L,W,ee){var ye=Rr(s),_e=Rr(d),Be=ye?ge:Xo(s),xt=_e?ge:Xo(d);Be=Be==oe?ht:Be,xt=xt==oe?ht:xt;var Ct=Be==ht,Mt=xt==ht,Gt=Be==xt;if(Gt&&Ac(s)){if(!Ac(d))return!1;ye=!0,Ct=!1}if(Gt&&!Ct)return ee||(ee=new Pr),ye||Od(s)?my(s,d,x,L,W,ee):zS(s,d,Be,x,L,W,ee);if(!(x&w)){var sr=Ct&&Xr.call(s,"__wrapped__"),vr=Mt&&Xr.call(d,"__wrapped__");if(sr||vr){var Br=sr?s.value():s,yr=vr?d.value():d;return ee||(ee=new Pr),W(Br,yr,x,L,ee)}}return Gt?(ee||(ee=new Pr),HS(s,d,x,L,W,ee)):!1}function za(s){return Zn(s)&&Xo(s)==Qe}function xu(s,d,x,L){var W=x.length,ee=W,ye=!L;if(s==null)return!ee;for(s=Qr(s);W--;){var _e=x[W];if(ye&&_e[2]?_e[1]!==s[_e[0]]:!(_e[0]in s))return!1}for(;++W<ee;){_e=x[W];var Be=_e[0],xt=s[Be],Ct=_e[1];if(ye&&_e[2]){if(xt===t&&!(Be in s))return!1}else{var Mt=new Pr;if(L)var Gt=L(xt,Ct,Be,s,d,Mt);if(!(Gt===t?Cl(Ct,xt,w|T,L,Mt):Gt))return!1}}return!0}function xd(s){if(!Wn(s)||KS(s))return!1;var d=Ll(s)?iu:_t;return d.test(Mu(s))}function Zs(s){return Zn(s)&&Gn(s)==Xe}function gc(s){return Zn(s)&&Xo(s)==We}function Xi(s){return Zn(s)&&rp(s.length)&&!!Mr[Gn(s)]}function mc(s){return typeof s=="function"?s:s==null?Ii:typeof s=="object"?Rr(s)?_l(s[0],s[1]):Ei(s):a0(s)}function Ji(s){if(!qf(s))return ud(s);var d=[];for(var x in Qr(s))Xr.call(s,x)&&x!="constructor"&&d.push(x);return d}function Sl(s){if(!Wn(s))return e_(s);var d=qf(s),x=[];for(var L in s)L=="constructor"&&(d||!Xr.call(s,L))||x.push(L);return x}function ai(s,d){return s<d}function li(s,d){var x=-1,L=Ri(s)?tt(s.length):[];return vs(s,function(W,ee,ye){L[++x]=d(W,ee,ye)}),L}function Ei(s){var d=Wg(s);return d.length==1&&d[0][2]?wy(d[0][0],d[0][1]):function(x){return x===s||xu(x,s,d)}}function _l(s,d){return Gg(s)&&xy(d)?wy(Wa(s),d):function(x){var L=nm(x,s);return L===t&&L===d?om(x,s):Cl(d,L,w|T)}}function bs(s,d,x,L,W){s!==d&&bu(d,function(ee,ye){if(W||(W=new Pr),Wn(ee))ci(s,d,ye,x,bs,L,W);else{var _e=L?L(Zg(s,ye),ee,ye+"",s,d,W):t;_e===t&&(_e=ee),fu(s,ye,_e)}},ki)}function ci(s,d,x,L,W,ee,ye){var _e=Zg(s,x),Be=Zg(d,x),xt=ye.get(Be);if(xt){fu(s,x,xt);return}var Ct=ee?ee(_e,Be,x+"",s,d,ye):t,Mt=Ct===t;if(Mt){var Gt=Rr(Be),sr=!Gt&&Ac(Be),vr=!Gt&&!sr&&Od(Be);Ct=Be,Gt||sr||vr?Rr(_e)?Ct=_e:no(_e)?Ct=wo(_e):sr?(Mt=!1,Ct=Cs(Be,!0)):vr?(Mt=!1,Ct=Rl(Be,!0)):Ct=[]:Wf(Be)||Lu(Be)?(Ct=_e,Lu(_e)?Ct=Xy(_e):(!Wn(_e)||Ll(_e))&&(Ct=by(Be))):Mt=!1}Mt&&(ye.set(Be,Ct),W(Ct,Be,L,ee,ye),ye.delete(Be)),fu(s,x,Ct)}function Ha(s,d){var x=s.length;if(x)return d+=d<0?x:0,Ml(d,x)?s[d]:t}function vc(s,d,x){d.length?d=ln(d,function(ee){return Rr(ee)?function(ye){return ys(ye,ee.length===1?ee[0]:ee)}:ee}):d=[Ii];var L=-1;d=ln(d,Jt(mr()));var W=li(s,function(ee,ye,_e){var Be=ln(d,function(xt){return xt(ee)});return{criteria:Be,index:++L,value:ee}});return ce(W,function(ee,ye){return _c(ee,ye,x)})}function Al(s,d){return $a(s,d,function(x,L){return om(s,L)})}function $a(s,d,x){for(var L=-1,W=d.length,ee={};++L<W;){var ye=d[L],_e=ys(s,ye);x(_e,ye)&&Xs(ee,Uo(ye,s),_e)}return ee}function wd(s){return function(d){return ys(d,s)}}function wu(s,d,x,L){var W=L?Kl:zi,ee=-1,ye=d.length,_e=s;for(s===d&&(d=wo(d)),x&&(_e=ln(s,Jt(x)));++ee<ye;)for(var Be=0,xt=d[ee],Ct=x?x(xt):xt;(Be=W(_e,Ct,Be,L))>-1;)_e!==s&&Wi.call(_e,Be,1),Wi.call(s,Be,1);return s}function Cu(s,d){for(var x=s?d.length:0,L=x-1;x--;){var W=d[x];if(x==L||W!==ee){var ee=W;Ml(W)?Wi.call(s,W,1):xo(s,W)}}return s}function Ks(s,d){return s+zs(fs()*(d-s+1))}function Su(s,d,x,L){for(var W=-1,ee=xn(ka((d-s)/(x||1)),0),ye=tt(ee);ee--;)ye[L?ee:++W]=s,s+=x;return ye}function yc(s,d){var x="";if(!s||d<1||d>ne)return x;do d%2&&(x+=s),d=zs(d/2),d&&(s+=s);while(d);return x}function Ar(s,d){return Kg(Cy(s,d,Ii),s+"")}function El(s){return To(Nd(s))}function _u(s,d){var x=Nd(s);return Kh(x,Ws(d,0,x.length))}function Xs(s,d,x,L){if(!Wn(s))return s;d=Uo(d,s);for(var W=-1,ee=d.length,ye=ee-1,_e=s;_e!=null&&++W<ee;){var Be=Wa(d[W]),xt=x;if(Be==="__proto__"||Be==="constructor"||Be==="prototype")return s;if(W!=ye){var Ct=_e[Be];xt=L?L(Ct,Be,_e):t,xt===t&&(xt=Wn(Ct)?Ct:Ml(d[W+1])?[]:{})}vo(_e,Be,xt),_e=_e[Be]}return s}var bc=ml?function(s,d){return ml.set(s,d),s}:Ii,Cd=us?function(s,d){return us(s,"toString",{configurable:!0,enumerable:!1,value:sm(d),writable:!0})}:Ii;function Sd(s){return Kh(Nd(s))}function Ro(s,d,x){var L=-1,W=s.length;d<0&&(d=-d>W?0:W+d),x=x>W?W:x,x<0&&(x+=W),W=d>x?0:x-d>>>0,d>>>=0;for(var ee=tt(W);++L<W;)ee[L]=s[L+d];return ee}function _d(s,d){var x;return vs(s,function(L,W,ee){return x=d(L,W,ee),!x}),!!x}function xc(s,d,x){var L=0,W=s==null?L:s.length;if(typeof d=="number"&&d===d&&W<=Ae){for(;L<W;){var ee=L+W>>>1,ye=s[ee];ye!==null&&!Qi(ye)&&(x?ye<=d:ye<d)?L=ee+1:W=ee}return W}return Au(s,d,Ii,x)}function Au(s,d,x,L){var W=0,ee=s==null?0:s.length;if(ee===0)return 0;d=x(d);for(var ye=d!==d,_e=d===null,Be=Qi(d),xt=d===t;W<ee;){var Ct=zs((W+ee)/2),Mt=x(s[Ct]),Gt=Mt!==t,sr=Mt===null,vr=Mt===Mt,Br=Qi(Mt);if(ye)var yr=L||vr;else xt?yr=vr&&(L||Gt):_e?yr=vr&&Gt&&(L||!sr):Be?yr=vr&&Gt&&!sr&&(L||!Br):sr||Br?yr=!1:yr=L?Mt<=d:Mt<d;yr?W=Ct+1:ee=Ct}return Un(ee,me)}function Eu(s,d){for(var x=-1,L=s.length,W=0,ee=[];++x<L;){var ye=s[x],_e=d?d(ye):ye;if(!x||!ta(_e,Be)){var Be=_e;ee[W++]=ye===0?0:ye}}return ee}function Ad(s){return typeof s=="number"?s:Qi(s)?ie:+s}function bo(s){if(typeof s=="string")return s;if(Rr(s))return ln(s,bo)+"";if(Qi(s))return vl?vl.call(s):"";var d=s+"";return d=="0"&&1/s==-re?"-0":d}function xs(s,d,x){var L=-1,W=ji,ee=s.length,ye=!0,_e=[],Be=_e;if(x)ye=!1,W=eo;else if(ee>=o){var xt=d?null:Ua(s);if(xt)return dl(xt);ye=!1,W=gr,Be=new mo}else Be=d?[]:_e;e:for(;++L<ee;){var Ct=s[L],Mt=d?d(Ct):Ct;if(Ct=x||Ct!==0?Ct:0,ye&&Mt===Mt){for(var Gt=Be.length;Gt--;)if(Be[Gt]===Mt)continue e;d&&Be.push(Mt),_e.push(Ct)}else W(Be,Mt,x)||(Be!==_e&&Be.push(Mt),_e.push(Ct))}return _e}function xo(s,d){return d=Uo(d,s),s=Sy(s,d),s==null||delete s[Wa(_s(d))]}function Ed(s,d,x,L){return Xs(s,d,x(ys(s,d)),L)}function Js(s,d,x,L){for(var W=s.length,ee=L?W:-1;(L?ee--:++ee<W)&&d(s[ee],ee,s););return x?Ro(s,L?0:ee,L?ee+1:W):Ro(s,L?ee+1:0,L?W:ee)}function Td(s,d){var x=s;return x instanceof Tr&&(x=x.value()),cl(d,function(L,W){return W.func.apply(W.thisArg,Po([L],W.args))},x)}function ro(s,d,x){var L=s.length;if(L<2)return L?xs(s[0]):[];for(var W=-1,ee=tt(L);++W<L;)for(var ye=s[W],_e=-1;++_e<L;)_e!=W&&(ee[W]=Vs(ee[W]||ye,s[_e],d,x));return xs(to(ee,1),d,x)}function Rd(s,d,x){for(var L=-1,W=s.length,ee=d.length,ye={};++L<W;){var _e=L<ee?d[L]:t;x(ye,s[L],_e)}return ye}function wc(s){return no(s)?s:[]}function Cc(s){return typeof s=="function"?s:Ii}function Uo(s,d){return Rr(s)?s:Gg(s,d)?[s]:Ty(gn(s))}var kd=Ar;function ws(s,d,x){var L=s.length;return x=x===t?L:x,!d&&x>=L?s:Ro(s,d,x)}var Sc=Mf||function(s){return Cr.clearTimeout(s)};function Cs(s,d){if(d)return s.slice();var x=s.length,L=hl?hl(x):new s.constructor(x);return s.copy(L),L}function Qs(s){var d=new s.constructor(s.byteLength);return new fl(d).set(new fl(s)),d}function Hf(s,d){var x=d?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.byteLength)}function Tu(s){var d=new s.constructor(s.source,qe.exec(s));return d.lastIndex=s.lastIndex,d}function Tl(s){return $s?Qr($s.call(s)):{}}function Rl(s,d){var x=d?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.length)}function Ru(s,d){if(s!==d){var x=s!==t,L=s===null,W=s===s,ee=Qi(s),ye=d!==t,_e=d===null,Be=d===d,xt=Qi(d);if(!_e&&!xt&&!ee&&s>d||ee&&ye&&Be&&!_e&&!xt||L&&ye&&Be||!x&&Be||!W)return 1;if(!L&&!ee&&!xt&&s<d||xt&&x&&W&&!L&&!ee||_e&&x&&W||!ye&&W||!Be)return-1}return 0}function _c(s,d,x){for(var L=-1,W=s.criteria,ee=d.criteria,ye=W.length,_e=x.length;++L<ye;){var Be=Ru(W[L],ee[L]);if(Be){if(L>=_e)return Be;var xt=x[L];return Be*(xt=="desc"?-1:1)}}return s.index-d.index}function ku(s,d,x,L){for(var W=-1,ee=s.length,ye=x.length,_e=-1,Be=d.length,xt=xn(ee-ye,0),Ct=tt(Be+xt),Mt=!L;++_e<Be;)Ct[_e]=d[_e];for(;++W<ye;)(Mt||W<ee)&&(Ct[x[W]]=s[W]);for(;xt--;)Ct[_e++]=s[W++];return Ct}function Id(s,d,x,L){for(var W=-1,ee=s.length,ye=-1,_e=x.length,Be=-1,xt=d.length,Ct=xn(ee-_e,0),Mt=tt(Ct+xt),Gt=!L;++W<Ct;)Mt[W]=s[W];for(var sr=W;++Be<xt;)Mt[sr+Be]=d[Be];for(;++ye<_e;)(Gt||W<ee)&&(Mt[sr+x[ye]]=s[W++]);return Mt}function wo(s,d){var x=-1,L=s.length;for(d||(d=tt(L));++x<L;)d[x]=s[x];return d}function Ko(s,d,x,L){var W=!x;x||(x={});for(var ee=-1,ye=d.length;++ee<ye;){var _e=d[ee],Be=L?L(x[_e],s[_e],_e,x,s):t;Be===t&&(Be=s[_e]),W?$o(x,_e,Be):vo(x,_e,Be)}return x}function Md(s,d){return Ko(s,Vg(s),d)}function $f(s,d){return Ko(s,vy(s),d)}function kl(s,d){return function(x,L){var W=Rr(x)?Ns:Us,ee=d?d():{};return W(x,s,mr(L,2),ee)}}function qa(s){return Ar(function(d,x){var L=-1,W=x.length,ee=W>1?x[W-1]:t,ye=W>2?x[2]:t;for(ee=s.length>3&&typeof ee=="function"?(W--,ee):t,ye&&di(x[0],x[1],ye)&&(ee=W<3?t:ee,W=1),d=Qr(d);++L<W;){var _e=x[L];_e&&s(d,_e,L,ee)}return d})}function y(s,d){return function(x,L){if(x==null)return x;if(!Ri(x))return s(x,L);for(var W=x.length,ee=d?W:-1,ye=Qr(x);(d?ee--:++ee<W)&&L(ye[ee],ee,ye)!==!1;);return x}}function l(s){return function(d,x,L){for(var W=-1,ee=Qr(d),ye=L(d),_e=ye.length;_e--;){var Be=ye[s?_e:++W];if(x(ee[Be],Be,ee)===!1)break}return d}}function h(s,d,x){var L=d&A,W=N(s);function ee(){var ye=this&&this!==Cr&&this instanceof ee?W:s;return ye.apply(L?x:this,arguments)}return ee}function v(s){return function(d){d=gn(d);var x=_a(d)?Sn(d):t,L=x?x[0]:d.charAt(0),W=x?ws(x,1).join(""):d.slice(1);return L[s]()+W}}function E(s){return function(d){return cl(i0(o0(d).replace(yi,"")),s,"")}}function N(s){return function(){var d=arguments;switch(d.length){case 0:return new s;case 1:return new s(d[0]);case 2:return new s(d[0],d[1]);case 3:return new s(d[0],d[1],d[2]);case 4:return new s(d[0],d[1],d[2],d[3]);case 5:return new s(d[0],d[1],d[2],d[3],d[4]);case 6:return new s(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new s(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var x=Yi(s.prototype),L=s.apply(x,d);return Wn(L)?L:x}}function q(s,d,x){var L=N(s);function W(){for(var ee=arguments.length,ye=tt(ee),_e=ee,Be=Dd(W);_e--;)ye[_e]=arguments[_e];var xt=ee<3&&ye[0]!==Be&&ye[ee-1]!==Be?[]:Hi(ye,Be);if(ee-=xt.length,ee<x)return Ss(s,d,ze,W.placeholder,t,ye,xt,t,t,x-ee);var Ct=this&&this!==Cr&&this instanceof W?L:s;return bn(Ct,this,ye)}return W}function K(s){return function(d,x,L){var W=Qr(d);if(!Ri(d)){var ee=mr(x,3);d=ko(d),x=function(_e){return ee(W[_e],_e,W)}}var ye=s(d,x,L);return ye>-1?W[ee?d[ye]:ye]:t}}function ve(s){return Il(function(d){var x=d.length,L=x,W=uo.prototype.thru;for(s&&d.reverse();L--;){var ee=d[L];if(typeof ee!="function")throw new Zo(a);if(W&&!ye&&Yh(ee)=="wrapper")var ye=new uo([],!0)}for(L=ye?L:x;++L<x;){ee=d[L];var _e=Yh(ee),Be=_e=="wrapper"?Ug(ee):t;Be&&Yg(Be[0])&&Be[1]==(z|D|F|j)&&!Be[4].length&&Be[9]==1?ye=ye[Yh(Be[0])].apply(ye,Be[3]):ye=ee.length==1&&Yg(ee)?ye[_e]():ye.thru(ee)}return function(){var xt=arguments,Ct=xt[0];if(ye&&xt.length==1&&Rr(Ct))return ye.plant(Ct).value();for(var Mt=0,Gt=x?d[Mt].apply(this,xt):Ct;++Mt<x;)Gt=d[Mt].call(this,Gt);return Gt}})}function ze(s,d,x,L,W,ee,ye,_e,Be,xt){var Ct=d&z,Mt=d&A,Gt=d&_,sr=d&(D|M),vr=d&G,Br=Gt?t:N(s);function yr(){for(var Ur=arguments.length,Zr=tt(Ur),es=Ur;es--;)Zr[es]=arguments[es];if(sr)var fi=Dd(yr),ts=Bo(Zr,fi);if(L&&(Zr=ku(Zr,L,W,sr)),ee&&(Zr=Id(Zr,ee,ye,sr)),Ur-=ts,sr&&Ur<xt){var oo=Hi(Zr,fi);return Ss(s,d,ze,yr.placeholder,x,Zr,oo,_e,Be,xt-Ur)}var ra=Mt?x:this,Ol=Gt?ra[s]:s;return Ur=Zr.length,_e?Zr=r_(Zr,_e):vr&&Ur>1&&Zr.reverse(),Ct&&Be<Ur&&(Zr.length=Be),this&&this!==Cr&&this instanceof yr&&(Ol=Br||N(Ol)),Ol.apply(ra,Zr)}return yr}function vt(s,d){return function(x,L){return hc(x,s,d(L),{})}}function Rt(s,d){return function(x,L){var W;if(x===t&&L===t)return d;if(x!==t&&(W=x),L!==t){if(W===t)return L;typeof x=="string"||typeof L=="string"?(x=bo(x),L=bo(L)):(x=Ad(x),L=Ad(L)),W=s(x,L)}return W}}function zt(s){return Il(function(d){return d=ln(d,Jt(mr())),Ar(function(x){var L=this;return s(d,function(W){return bn(W,L,x)})})})}function dr(s,d){d=d===t?" ":bo(d);var x=d.length;if(x<2)return x?yc(d,s):d;var L=yc(d,ka(s/Aa(d)));return _a(d)?ws(Sn(L),0,s).join(""):L.slice(0,s)}function Gr(s,d,x,L){var W=d&A,ee=N(s);function ye(){for(var _e=-1,Be=arguments.length,xt=-1,Ct=L.length,Mt=tt(Ct+Be),Gt=this&&this!==Cr&&this instanceof ye?ee:s;++xt<Ct;)Mt[xt]=L[xt];for(;Be--;)Mt[xt++]=arguments[++_e];return bn(Gt,W?x:this,Mt)}return ye}function Yn(s){return function(d,x,L){return L&&typeof L!="number"&&di(d,x,L)&&(x=L=t),d=Dl(d),x===t?(x=d,d=0):x=Dl(x),L=L===t?d<x?1:-1:Dl(L),Su(d,x,L,s)}}function Ti(s){return function(d,x){return typeof d=="string"&&typeof x=="string"||(d=As(d),x=As(x)),s(d,x)}}function Ss(s,d,x,L,W,ee,ye,_e,Be,xt){var Ct=d&D,Mt=Ct?ye:t,Gt=Ct?t:ye,sr=Ct?ee:t,vr=Ct?t:ee;d|=Ct?F:B,d&=~(Ct?B:F),d&R||(d&=-4);var Br=[s,d,W,sr,Mt,vr,Gt,_e,Be,xt],yr=x.apply(t,Br);return Yg(s)&&_y(yr,Br),yr.placeholder=L,Ay(yr,s,d)}function ui(s){var d=Dn[s];return function(x,L){if(x=As(x),L=L==null?0:Un(Dr(L),292),L&&Ma(x)){var W=(gn(x)+"e").split("e"),ee=d(W[0]+"e"+(+W[1]+L));return W=(gn(ee)+"e").split("e"),+(W[0]+"e"+(+W[1]-L))}return d(x)}}var Ua=wi&&1/dl(new wi([,-0]))[1]==re?function(s){return new wi(s)}:cm;function Ld(s){return function(d){var x=Xo(d);return x==Qe?tu(d):x==We?Tf(d):gt(d,s(d))}}function ea(s,d,x,L,W,ee,ye,_e){var Be=d&_;if(!Be&&typeof s!="function")throw new Zo(a);var xt=L?L.length:0;if(xt||(d&=-97,L=W=t),ye=ye===t?ye:xn(Dr(ye),0),_e=_e===t?_e:Dr(_e),xt-=W?W.length:0,d&B){var Ct=L,Mt=W;L=W=t}var Gt=Be?t:Ug(s),sr=[s,d,x,L,W,Ct,Mt,ee,ye,_e];if(Gt&&QS(sr,Gt),s=sr[0],d=sr[1],x=sr[2],L=sr[3],W=sr[4],_e=sr[9]=sr[9]===t?Be?0:s.length:xn(sr[9]-xt,0),!_e&&d&(D|M)&&(d&=-25),!d||d==A)var vr=h(s,d,x);else d==D||d==M?vr=q(s,d,_e):(d==F||d==(A|F))&&!W.length?vr=Gr(s,d,x,L):vr=ze.apply(t,sr);var Br=Gt?bc:_y;return Ay(Br(vr,sr),s,d)}function py(s,d,x,L){return s===t||ta(s,ls[x])&&!Xr.call(L,x)?d:s}function gy(s,d,x,L,W,ee){return Wn(s)&&Wn(d)&&(ee.set(d,s),bs(s,d,t,gy,ee),ee.delete(d)),s}function jS(s){return Wf(s)?t:s}function my(s,d,x,L,W,ee){var ye=x&w,_e=s.length,Be=d.length;if(_e!=Be&&!(ye&&Be>_e))return!1;var xt=ee.get(s),Ct=ee.get(d);if(xt&&Ct)return xt==d&&Ct==s;var Mt=-1,Gt=!0,sr=x&T?new mo:t;for(ee.set(s,d),ee.set(d,s);++Mt<_e;){var vr=s[Mt],Br=d[Mt];if(L)var yr=ye?L(Br,vr,Mt,d,s,ee):L(vr,Br,Mt,s,d,ee);if(yr!==t){if(yr)continue;Gt=!1;break}if(sr){if(!as(d,function(Ur,Zr){if(!gr(sr,Zr)&&(vr===Ur||W(vr,Ur,x,L,ee)))return sr.push(Zr)})){Gt=!1;break}}else if(!(vr===Br||W(vr,Br,x,L,ee))){Gt=!1;break}}return ee.delete(s),ee.delete(d),Gt}function zS(s,d,x,L,W,ee,ye){switch(x){case ut:if(s.byteLength!=d.byteLength||s.byteOffset!=d.byteOffset)return!1;s=s.buffer,d=d.buffer;case mt:return!(s.byteLength!=d.byteLength||!ee(new fl(s),new fl(d)));case Le:case Ce:case Ze:return ta(+s,+d);case Ie:return s.name==d.name&&s.message==d.message;case Xe:case Ve:return s==d+"";case Qe:var _e=tu;case We:var Be=L&w;if(_e||(_e=dl),s.size!=d.size&&!Be)return!1;var xt=ye.get(s);if(xt)return xt==d;L|=T,ye.set(s,d);var Ct=my(_e(s),_e(d),L,W,ee,ye);return ye.delete(s),Ct;case at:if($s)return $s.call(s)==$s.call(d)}return!1}function HS(s,d,x,L,W,ee){var ye=x&w,_e=$g(s),Be=_e.length,xt=$g(d),Ct=xt.length;if(Be!=Ct&&!ye)return!1;for(var Mt=Be;Mt--;){var Gt=_e[Mt];if(!(ye?Gt in d:Xr.call(d,Gt)))return!1}var sr=ee.get(s),vr=ee.get(d);if(sr&&vr)return sr==d&&vr==s;var Br=!0;ee.set(s,d),ee.set(d,s);for(var yr=ye;++Mt<Be;){Gt=_e[Mt];var Ur=s[Gt],Zr=d[Gt];if(L)var es=ye?L(Zr,Ur,Gt,d,s,ee):L(Ur,Zr,Gt,s,d,ee);if(!(es===t?Ur===Zr||W(Ur,Zr,x,L,ee):es)){Br=!1;break}yr||(yr=Gt=="constructor")}if(Br&&!yr){var fi=s.constructor,ts=d.constructor;fi!=ts&&"constructor"in s&&"constructor"in d&&!(typeof fi=="function"&&fi instanceof fi&&typeof ts=="function"&&ts instanceof ts)&&(Br=!1)}return ee.delete(s),ee.delete(d),Br}function Il(s){return Kg(Cy(s,t,My),s+"")}function $g(s){return wl(s,ko,Vg)}function qg(s){return wl(s,ki,vy)}var Ug=ml?function(s){return ml.get(s)}:cm;function Yh(s){for(var d=s.name+"",x=Hs[d],L=Xr.call(Hs,d)?x.length:0;L--;){var W=x[L],ee=W.func;if(ee==null||ee==s)return W.name}return d}function Dd(s){var d=Xr.call(Z,"placeholder")?Z:s;return d.placeholder}function mr(){var s=Z.iteratee||am;return s=s===am?mc:s,arguments.length?s(arguments[0],arguments[1]):s}function Zh(s,d){var x=s.__data__;return ZS(d)?x[typeof d=="string"?"string":"hash"]:x.map}function Wg(s){for(var d=ko(s),x=d.length;x--;){var L=d[x],W=s[L];d[x]=[L,W,xy(W)]}return d}function Iu(s,d){var x=Fs(s,d);return xd(x)?x:t}function $S(s){var d=Xr.call(s,Vi),x=s[Vi];try{s[Vi]=t;var L=!0}catch{}var W=qi.call(s);return L&&(d?s[Vi]=x:delete s[Vi]),W}var Vg=Ia?function(s){return s==null?[]:(s=Qr(s),oi(Ia(s),function(d){return tc.call(s,d)}))}:um,vy=Ia?function(s){for(var d=[];s;)Po(d,Vg(s)),s=js(s);return d}:um,Xo=Gn;(xi&&Xo(new xi(new ArrayBuffer(1)))!=ut||hs&&Xo(new hs)!=Qe||La&&Xo(La.resolve())!=Pe||wi&&Xo(new wi)!=We||Gi&&Xo(new Gi)!=Oe)&&(Xo=function(s){var d=Gn(s),x=d==ht?s.constructor:t,L=x?Mu(x):"";if(L)switch(L){case ps:return ut;case au:return Qe;case Lf:return Pe;case dd:return We;case Oa:return Oe}return d});function qS(s,d,x){for(var L=-1,W=x.length;++L<W;){var ee=x[L],ye=ee.size;switch(ee.type){case"drop":s+=ye;break;case"dropRight":d-=ye;break;case"take":d=Un(d,s+ye);break;case"takeRight":s=xn(s,d-ye);break}}return{start:s,end:d}}function US(s){var d=s.match(pr);return d?d[1].split(pe):[]}function yy(s,d,x){d=Uo(d,s);for(var L=-1,W=d.length,ee=!1;++L<W;){var ye=Wa(d[L]);if(!(ee=s!=null&&x(s,ye)))break;s=s[ye]}return ee||++L!=W?ee:(W=s==null?0:s.length,!!W&&rp(W)&&Ml(ye,W)&&(Rr(s)||Lu(s)))}function WS(s){var d=s.length,x=new s.constructor(d);return d&&typeof s[0]=="string"&&Xr.call(s,"index")&&(x.index=s.index,x.input=s.input),x}function by(s){return typeof s.constructor=="function"&&!qf(s)?Yi(js(s)):{}}function VS(s,d,x){var L=s.constructor;switch(d){case mt:return Qs(s);case Le:case Ce:return new L(+s);case ut:return Hf(s,x);case Lt:case Bt:case Pt:case Xt:case ar:case Kt:case cr:case Te:case ae:return Rl(s,x);case Qe:return new L;case Ze:case Ve:return new L(s);case Xe:return Tu(s);case We:return new L;case at:return Tl(s)}}function GS(s,d){var x=d.length;if(!x)return s;var L=x-1;return d[L]=(x>1?"& ":"")+d[L],d=d.join(x>2?", ":" "),s.replace(Nr,`{
|
|
38
|
+
*/var CT=lh.exports,f0;function ST(){return f0||(f0=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`",u="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",m=1,g=2,b=4,w=1,T=2,A=1,_=2,R=4,D=8,M=16,F=32,B=64,z=128,j=256,G=512,fe=30,P="...",U=800,V=16,Q=1,se=2,te=3,re=1/0,ne=9007199254740991,be=17976931348623157e292,ie=NaN,de=4294967295,me=de-1,Ae=de>>>1,Oe=[["ary",z],["bind",A],["bindKey",_],["curry",D],["curryRight",M],["flip",G],["partial",F],["partialRight",B],["rearg",j]],oe="[object Arguments]",ge="[object Array]",we="[object AsyncFunction]",Le="[object Boolean]",Ce="[object Date]",Se="[object DOMException]",Ie="[object Error]",et="[object Function]",Je="[object GeneratorFunction]",Qe="[object Map]",Ze="[object Number]",Ke="[object Null]",ht="[object Object]",Pe="[object Promise]",Ne="[object Proxy]",Xe="[object RegExp]",We="[object Set]",Ve="[object String]",lt="[object Symbol]",st="[object Undefined]",De="[object WeakMap]",at="[object WeakSet]",mt="[object ArrayBuffer]",ut="[object DataView]",Dt="[object Float32Array]",Bt="[object Float64Array]",Pt="[object Int8Array]",Xt="[object Int16Array]",ar="[object Int32Array]",Kt="[object Uint8Array]",cr="[object Uint8ClampedArray]",Te="[object Uint16Array]",ae="[object Uint32Array]",it=/\b__p \+= '';/g,bt=/\b(__p \+=) '' \+/g,qt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ft=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Ht=RegExp(Ft.source),Ue=RegExp(Lt.source),dt=/<%-([\s\S]+?)%>/g,yt=/<%([\s\S]+?)%>/g,Et=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rt=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jt=/[\\^$.*+?()[\]{}|]/g,tr=RegExp(jt.source),Ut=/^\s+/,br=/\s/,Nr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pr=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,It=/[()=,{}\[\]\/\s]/,je=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Tt=/^[-+]0x[0-9a-f]+$/i,$t=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fr=/($^)/,Fr=/['\n\r\u2028\u2029\\]/g,ur="\\ud800-\\udfff",xr="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",sn="\\u20d0-\\u20ff",Pn=xr+tn+sn,Hr="\\u2700-\\u27bf",rn="a-z\\xdf-\\xf6\\xf8-\\xff",In="\\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",Hn="\\ufe0e\\ufe0f",Fn=In+Bn+_o+Do,Cn="['’]",io="["+ur+"]",yn="["+Fn+"]",En="["+Pn+"]",k="\\d+",$="["+Hr+"]",X="["+rn+"]",le="[^"+ur+Fn+k+Hr+rn+Oo+"]",$e="\\ud83c[\\udffb-\\udfff]",Fe="(?:"+En+"|"+$e+")",nt="[^"+ur+"]",kt="(?:\\ud83c[\\udde6-\\uddff]){2}",Wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="["+Oo+"]",Yt="\\u200d",kr="(?:"+X+"|"+le+")",an="(?:"+Zt+"|"+le+")",Mn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Ln="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",po=Fe+"?",Kn="["+Hn+"]?",No="(?:"+Yt+"(?:"+[nt,kt,Wt].join("|")+")"+Kn+po+")*",dn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ao="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xn=Kn+po+No,so="(?:"+[$,kt,Wt].join("|")+")"+Xn,Pi="(?:"+[nt+En+"?",En,kt,Wt,io].join("|")+")",yi=RegExp(Cn,"g"),bi=RegExp(En,"g"),$n=RegExp($e+"(?="+$e+")|"+Pi+Xn,"g"),Bi=RegExp([Zt+"?"+X+"+"+Mn+"(?="+[yn,Zt,"$"].join("|")+")",an+"+"+Ln+"(?="+[yn,Zt+kr,"$"].join("|")+")",Zt+"?"+kr+"+"+Mn,Zt+"+"+Ln,Ao,dn,k,so].join("|"),"g"),ao=RegExp("["+Yt+ur+Pn+Hn+"]"),lo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ri=["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,Mr={};Mr[Dt]=Mr[Bt]=Mr[Pt]=Mr[Xt]=Mr[ar]=Mr[Kt]=Mr[cr]=Mr[Te]=Mr[ae]=!0,Mr[oe]=Mr[ge]=Mr[mt]=Mr[Le]=Mr[ut]=Mr[Ce]=Mr[Ie]=Mr[et]=Mr[Qe]=Mr[Ze]=Mr[ht]=Mr[Xe]=Mr[We]=Mr[Ve]=Mr[De]=!1;var jr={};jr[oe]=jr[ge]=jr[mt]=jr[ut]=jr[Le]=jr[Ce]=jr[Dt]=jr[Bt]=jr[Pt]=jr[Xt]=jr[ar]=jr[Qe]=jr[Ze]=jr[ht]=jr[Xe]=jr[We]=jr[Ve]=jr[lt]=jr[Kt]=jr[cr]=jr[Te]=jr[ae]=!0,jr[Ie]=jr[et]=jr[De]=!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={"&":"&","<":"<",">":">",'"':""","'":"'"},xe={"&":"&","<":"<",">":">",""":'"',"'":"'"},ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ir=parseFloat,Qt=parseInt,_r=typeof Di=="object"&&Di&&Di.Object===Object&&Di,Ir=typeof self=="object"&&self&&self.Object===Object&&self,Cr=_r||Ir||Function("return this")(),Lr=e&&!e.nodeType&&e,fn=Lr&&!0&&r&&!r.nodeType&&r,qn=fn&&fn.exports===Lr,nn=qn&&_r.process,Vr=function(){try{var ke=fn&&fn.require&&fn.require("util").types;return ke||nn&&nn.binding&&nn.binding("util")}catch{}}(),hn=Vr&&Vr.isArrayBuffer,go=Vr&&Vr.isDate,Eo=Vr&&Vr.isMap,Jn=Vr&&Vr.isRegExp,Fi=Vr&&Vr.isSet,ni=Vr&&Vr.isTypedArray;function bn(ke,ft,tt){switch(tt.length){case 0:return ke.call(ft);case 1:return ke.call(ft,tt[0]);case 2:return ke.call(ft,tt[0],tt[1]);case 3:return ke.call(ft,tt[0],tt[1],tt[2])}return ke.apply(ft,tt)}function Ns(ke,ft,tt,Vt){for(var hr=-1,$r=ke==null?0:ke.length;++hr<$r;){var Dn=ke[hr];ft(Vt,Dn,tt(Dn),ke)}return Vt}function Qn(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length;++tt<Vt&&ft(ke[tt],tt,ke)!==!1;);return ke}function Vl(ke,ft){for(var tt=ke==null?0:ke.length;tt--&&ft(ke[tt],tt,ke)!==!1;);return ke}function ll(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length;++tt<Vt;)if(!ft(ke[tt],tt,ke))return!1;return!0}function oi(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length,hr=0,$r=[];++tt<Vt;){var Dn=ke[tt];ft(Dn,tt,ke)&&($r[hr++]=Dn)}return $r}function ji(ke,ft){var tt=ke==null?0:ke.length;return!!tt&&zi(ke,ft,0)>-1}function eo(ke,ft,tt){for(var Vt=-1,hr=ke==null?0:ke.length;++Vt<hr;)if(tt(ft,ke[Vt]))return!0;return!1}function ln(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length,hr=Array(Vt);++tt<Vt;)hr[tt]=ft(ke[tt],tt,ke);return hr}function Po(ke,ft){for(var tt=-1,Vt=ft.length,hr=ke.length;++tt<Vt;)ke[hr+tt]=ft[tt];return ke}function cl(ke,ft,tt,Vt){var hr=-1,$r=ke==null?0:ke.length;for(Vt&&$r&&(tt=ke[++hr]);++hr<$r;)tt=ft(tt,ke[hr],hr,ke);return tt}function Gl(ke,ft,tt,Vt){var hr=ke==null?0:ke.length;for(Vt&&hr&&(tt=ke[--hr]);hr--;)tt=ft(tt,ke[hr],hr,ke);return tt}function as(ke,ft){for(var tt=-1,Vt=ke==null?0:ke.length;++tt<Vt;)if(ft(ke[tt],tt,ke))return!0;return!1}var Yl=I("length");function Zl(ke){return ke.split("")}function wa(ke){return ke.match(pt)||[]}function Ps(ke,ft,tt){var Vt;return tt(ke,function(hr,$r,Dn){if(ft(hr,$r,Dn))return Vt=$r,!1}),Vt}function Bs(ke,ft,tt,Vt){for(var hr=ke.length,$r=tt+(Vt?1:-1);Vt?$r--:++$r<hr;)if(ft(ke[$r],$r,ke))return $r;return-1}function zi(ke,ft,tt){return ft===ft?Rf(ke,ft,tt):Bs(ke,Ca,tt)}function Kl(ke,ft,tt,Vt){for(var hr=tt-1,$r=ke.length;++hr<$r;)if(Vt(ke[hr],ft))return hr;return-1}function Ca(ke){return ke!==ke}function ul(ke,ft){var tt=ke==null?0:ke.length;return tt?Ge(ke,ft)/tt:ie}function I(ke){return function(ft){return ft==null?t:ft[ke]}}function H(ke){return function(ft){return ke==null?t:ke[ft]}}function Y(ke,ft,tt,Vt,hr){return hr(ke,function($r,Dn,Qr){tt=Vt?(Vt=!1,$r):ft(tt,$r,Dn,Qr)}),tt}function ce(ke,ft){var tt=ke.length;for(ke.sort(ft);tt--;)ke[tt]=ke[tt].value;return ke}function Ge(ke,ft){for(var tt,Vt=-1,hr=ke.length;++Vt<hr;){var $r=ft(ke[Vt]);$r!==t&&(tt=tt===t?$r:tt+$r)}return tt}function He(ke,ft){for(var tt=-1,Vt=Array(ke);++tt<ke;)Vt[tt]=ft(tt);return Vt}function gt(ke,ft){return ln(ft,function(tt){return[tt,ke[tt]]})}function Ot(ke){return ke&&ke.slice(0,id(ke)+1).replace(Ut,"")}function Jt(ke){return function(ft){return ke(ft)}}function Sr(ke,ft){return ln(ft,function(tt){return ke[tt]})}function gr(ke,ft){return ke.has(ft)}function on(ke,ft){for(var tt=-1,Vt=ke.length;++tt<Vt&&zi(ft,ke[tt],0)>-1;);return tt}function co(ke,ft){for(var tt=ke.length;tt--&&zi(ft,ke[tt],0)>-1;);return tt}function Bo(ke,ft){for(var tt=ke.length,Vt=0;tt--;)ke[tt]===ft&&++Vt;return Vt}var Fo=H(O),Sa=H(J);function Xl(ke){return"\\"+ot[ke]}function Fs(ke,ft){return ke==null?t:ke[ft]}function _a(ke){return ao.test(ke)}function Ef(ke){return lo.test(ke)}function eu(ke){for(var ft,tt=[];!(ft=ke.next()).done;)tt.push(ft.value);return tt}function tu(ke){var ft=-1,tt=Array(ke.size);return ke.forEach(function(Vt,hr){tt[++ft]=[hr,Vt]}),tt}function od(ke,ft){return function(tt){return ke(ft(tt))}}function Hi(ke,ft){for(var tt=-1,Vt=ke.length,hr=0,$r=[];++tt<Vt;){var Dn=ke[tt];(Dn===ft||Dn===p)&&(ke[tt]=p,$r[hr++]=tt)}return $r}function dl(ke){var ft=-1,tt=Array(ke.size);return ke.forEach(function(Vt){tt[++ft]=Vt}),tt}function Tf(ke){var ft=-1,tt=Array(ke.size);return ke.forEach(function(Vt){tt[++ft]=[Vt,Vt]}),tt}function Rf(ke,ft,tt){for(var Vt=tt-1,hr=ke.length;++Vt<hr;)if(ke[Vt]===ft)return Vt;return-1}function kf(ke,ft,tt){for(var Vt=tt+1;Vt--;)if(ke[Vt]===ft)return Vt;return Vt}function Aa(ke){return _a(ke)?Jl(ke):Yl(ke)}function Sn(ke){return _a(ke)?jo(ke):Zl(ke)}function id(ke){for(var ft=ke.length;ft--&&br.test(ke.charAt(ft)););return ft}var sd=H(xe);function Jl(ke){for(var ft=$n.lastIndex=0;$n.test(ke);)++ft;return ft}function jo(ke){return ke.match($n)||[]}function ad(ke){return ke.match(Bi)||[]}var Ql=function ke(ft){ft=ft==null?Cr:$i.defaults(Cr.Object(),ft,$i.pick(Cr,ri));var tt=ft.Array,Vt=ft.Date,hr=ft.Error,$r=ft.Function,Dn=ft.Math,Qr=ft.Object,Ea=ft.RegExp,ld=ft.String,Zo=ft.TypeError,ec=tt.prototype,If=$r.prototype,ls=Qr.prototype,cn=ft["__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(jt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ta=qn?ft.Buffer:t,Ui=ft.Symbol,fl=ft.Uint8Array,hl=Ta?Ta.allocUnsafe:t,js=od(Qr.getPrototypeOf,Qr),Ra=Qr.create,tc=ls.propertyIsEnumerable,Wi=ec.splice,rc=Ui?Ui.isConcatSpreadable:t,ii=Ui?Ui.iterator:t,Vi=Ui?Ui.toStringTag:t,us=function(){try{var s=Iu(Qr,"defineProperty");return s({},"",{}),s}catch{}}(),Mf=ft.clearTimeout!==Cr.clearTimeout&&ft.clearTimeout,pl=Vt&&Vt.now!==Cr.Date.now&&Vt.now,cd=ft.setTimeout!==Cr.setTimeout&&ft.setTimeout,ka=Dn.ceil,zs=Dn.floor,Ia=Qr.getOwnPropertySymbols,nc=Ta?Ta.isBuffer:t,Ma=ft.isFinite,gl=ec.join,ud=od(Qr.keys,Qr),xn=Dn.max,Un=Dn.min,ds=Vt.now,su=ft.parseInt,fs=Dn.random,oc=ec.reverse,xi=Iu(ft,"DataView"),hs=Iu(ft,"Map"),La=Iu(ft,"Promise"),wi=Iu(ft,"Set"),Gi=Iu(ft,"WeakMap"),Da=Iu(Qr,"create"),ml=Gi&&new Gi,Hs={},ps=Mu(xi),au=Mu(hs),Lf=Mu(La),dd=Mu(wi),Oa=Mu(Gi),gs=Ui?Ui.prototype:t,$s=gs?gs.valueOf:t,vl=gs?gs.toString:t;function Z(s){if(Zn(s)&&!Rr(s)&&!(s instanceof Tr)){if(s instanceof uo)return s;if(Xr.call(s,"__wrapped__"))return Ry(s)}return new uo(s)}var Yi=function(){function s(){}return function(d){if(!Wn(d))return{};if(Ra)return Ra(d);s.prototype=d;var x=new s;return s.prototype=t,x}}();function Zi(){}function uo(s,d){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=t}Z.templateSettings={escape:dt,evaluate:yt,interpolate:Et,variable:"",imports:{_:Z}},Z.prototype=Zi.prototype,Z.prototype.constructor=Z,uo.prototype=Yi(Zi.prototype),uo.prototype.constructor=uo;function Tr(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function ic(){var s=new Tr(this.__wrapped__);return s.__actions__=wo(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=wo(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=wo(this.__views__),s}function yl(){if(this.__filtered__){var s=new Tr(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function sc(){var s=this.__wrapped__.value(),d=this.__dir__,x=Rr(s),L=d<0,W=x?s.length:0,ee=qS(0,W,this.__views__),ye=ee.start,_e=ee.end,Be=_e-ye,xt=L?_e:ye-1,Ct=this.__iteratees__,Mt=Ct.length,Gt=0,sr=Un(Be,this.__takeCount__);if(!x||!L&&W==Be&&sr==Be)return Td(s,this.__actions__);var vr=[];e:for(;Be--&&Gt<sr;){xt+=d;for(var Br=-1,yr=s[xt];++Br<Mt;){var Ur=Ct[Br],Zr=Ur.iteratee,es=Ur.type,fi=Zr(yr);if(es==se)yr=fi;else if(!fi){if(es==Q)continue e;break e}}vr[Gt++]=yr}return vr}Tr.prototype=Yi(Zi.prototype),Tr.prototype.constructor=Tr;function Ci(s){var d=-1,x=s==null?0:s.length;for(this.clear();++d<x;){var L=s[d];this.set(L[0],L[1])}}function lu(){this.__data__=Da?Da(null):{},this.size=0}function fd(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}function hd(s){var d=this.__data__;if(Da){var x=d[s];return x===u?t:x}return Xr.call(d,s)?d[s]:t}function pd(s){var d=this.__data__;return Da?d[s]!==t:Xr.call(d,s)}function Df(s,d){var x=this.__data__;return this.size+=this.has(s)?0:1,x[s]=Da&&d===t?u:d,this}Ci.prototype.clear=lu,Ci.prototype.delete=fd,Ci.prototype.get=hd,Ci.prototype.has=pd,Ci.prototype.set=Df;function Si(s){var d=-1,x=s==null?0:s.length;for(this.clear();++d<x;){var L=s[d];this.set(L[0],L[1])}}function Of(){this.__data__=[],this.size=0}function Nf(s){var d=this.__data__,x=si(d,s);if(x<0)return!1;var L=d.length-1;return x==L?d.pop():Wi.call(d,x,1),--this.size,!0}function cu(s){var d=this.__data__,x=si(d,s);return x<0?t:d[x][1]}function bl(s){return si(this.__data__,s)>-1}function Pf(s,d){var x=this.__data__,L=si(x,s);return L<0?(++this.size,x.push([s,d])):x[L][1]=d,this}Si.prototype.clear=Of,Si.prototype.delete=Nf,Si.prototype.get=cu,Si.prototype.has=bl,Si.prototype.set=Pf;function Ki(s){var d=-1,x=s==null?0:s.length;for(this.clear();++d<x;){var L=s[d];this.set(L[0],L[1])}}function uu(){this.size=0,this.__data__={hash:new Ci,map:new(hs||Si),string:new Ci}}function ac(s){var d=Zh(this,s).delete(s);return this.size-=d?1:0,d}function Bf(s){return Zh(this,s).get(s)}function Ff(s){return Zh(this,s).has(s)}function jf(s,d){var x=Zh(this,s),L=x.size;return x.set(s,d),this.size+=x.size==L?0:1,this}Ki.prototype.clear=uu,Ki.prototype.delete=ac,Ki.prototype.get=Bf,Ki.prototype.has=Ff,Ki.prototype.set=jf;function mo(s){var d=-1,x=s==null?0:s.length;for(this.__data__=new Ki;++d<x;)this.add(s[d])}function du(s){return this.__data__.set(s,u),this}function lc(s){return this.__data__.has(s)}mo.prototype.add=mo.prototype.push=du,mo.prototype.has=lc;function Pr(s){var d=this.__data__=new Si(s);this.size=d.size}function zo(){this.__data__=new Si,this.size=0}function Na(s){var d=this.__data__,x=d.delete(s);return this.size=d.size,x}function qs(s){return this.__data__.get(s)}function qr(s){return this.__data__.has(s)}function ms(s,d){var x=this.__data__;if(x instanceof Si){var L=x.__data__;if(!hs||L.length<o-1)return L.push([s,d]),this.size=++x.size,this;x=this.__data__=new Ki(L)}return x.set(s,d),this.size=x.size,this}Pr.prototype.clear=zo,Pr.prototype.delete=Na,Pr.prototype.get=qs,Pr.prototype.has=qr,Pr.prototype.set=ms;function xl(s,d){var x=Rr(s),L=!x&&Lu(s),W=!x&&!L&&Ac(s),ee=!x&&!L&&!W&&Od(s),ye=x||L||W||ee,_e=ye?He(s.length,ld):[],Be=_e.length;for(var xt in s)(d||Xr.call(s,xt))&&!(ye&&(xt=="length"||W&&(xt=="offset"||xt=="parent")||ee&&(xt=="buffer"||xt=="byteLength"||xt=="byteOffset")||Ml(xt,Be)))&&_e.push(xt);return _e}function To(s){var d=s.length;return d?s[Ks(0,d-1)]:t}function Ho(s,d){return Kh(wo(s),Ws(d,0,s.length))}function _i(s){return Kh(wo(s))}function fu(s,d,x){(x!==t&&!ta(s[d],x)||x===t&&!(d in s))&&$o(s,d,x)}function vo(s,d,x){var L=s[d];(!(Xr.call(s,d)&&ta(L,x))||x===t&&!(d in s))&&$o(s,d,x)}function si(s,d){for(var x=s.length;x--;)if(ta(s[x][0],d))return x;return-1}function Us(s,d,x,L){return vs(s,function(W,ee,ye){d(L,W,x(W),ye)}),L}function gd(s,d){return s&&Ko(d,ko(d),s)}function hu(s,d){return s&&Ko(d,ki(d),s)}function $o(s,d,x){d=="__proto__"&&us?us(s,d,{configurable:!0,enumerable:!0,value:x,writable:!0}):s[d]=x}function pu(s,d){for(var x=-1,L=d.length,W=tt(L),ee=s==null;++x<L;)W[x]=ee?t:nm(s,d[x]);return W}function Ws(s,d,x){return s===s&&(x!==t&&(s=s<=x?s:x),d!==t&&(s=s>=d?s:d)),s}function yo(s,d,x,L,W,ee){var ye,_e=d&m,Be=d&g,xt=d&b;if(x&&(ye=W?x(s,L,W,ee):x(s)),ye!==t)return ye;if(!Wn(s))return s;var Ct=Rr(s);if(Ct){if(ye=WS(s),!_e)return wo(s,ye)}else{var Mt=Xo(s),Gt=Mt==et||Mt==Je;if(Ac(s))return Cs(s,_e);if(Mt==ht||Mt==oe||Gt&&!W){if(ye=Be||Gt?{}:by(s),!_e)return Be?$f(s,hu(ye,s)):Md(s,gd(ye,s))}else{if(!jr[Mt])return W?s:{};ye=VS(s,Mt,_e)}}ee||(ee=new Pr);var sr=ee.get(s);if(sr)return sr;ee.set(s,ye),Yy(s)?s.forEach(function(yr){ye.add(yo(yr,d,x,yr,s,ee))}):Vy(s)&&s.forEach(function(yr,Ur){ye.set(Ur,yo(yr,d,x,Ur,s,ee))});var vr=xt?Be?qg:$g:Be?ki:ko,Br=Ct?t:vr(s);return Qn(Br||s,function(yr,Ur){Br&&(Ur=yr,yr=s[Ur]),vo(ye,Ur,yo(yr,d,x,Ur,s,ee))}),ye}function gu(s){var d=ko(s);return function(x){return mu(x,s,d)}}function mu(s,d,x){var L=x.length;if(s==null)return!L;for(s=Qr(s);L--;){var W=x[L],ee=d[W],ye=s[W];if(ye===t&&!(W in s)||!ee(ye))return!1}return!0}function vu(s,d,x){if(typeof s!="function")throw new Zo(a);return Uf(function(){s.apply(t,x)},d)}function Vs(s,d,x,L){var W=-1,ee=ji,ye=!0,_e=s.length,Be=[],xt=d.length;if(!_e)return Be;x&&(d=ln(d,Jt(x))),L?(ee=eo,ye=!1):d.length>=o&&(ee=gr,ye=!1,d=new mo(d));e:for(;++W<_e;){var Ct=s[W],Mt=x==null?Ct:x(Ct);if(Ct=L||Ct!==0?Ct:0,ye&&Mt===Mt){for(var Gt=xt;Gt--;)if(d[Gt]===Mt)continue e;Be.push(Ct)}else ee(d,Mt,L)||Be.push(Ct)}return Be}var vs=y(qo),yu=y(uc,!0);function md(s,d){var x=!0;return vs(s,function(L,W,ee){return x=!!d(L,W,ee),x}),x}function cc(s,d,x){for(var L=-1,W=s.length;++L<W;){var ee=s[L],ye=d(ee);if(ye!=null&&(_e===t?ye===ye&&!Qi(ye):x(ye,_e)))var _e=ye,Be=ee}return Be}function zf(s,d,x,L){var W=s.length;for(x=Dr(x),x<0&&(x=-x>W?0:W+x),L=L===t||L>W?W:Dr(L),L<0&&(L+=W),L=x>L?0:Ky(L);x<L;)s[x++]=d;return s}function vd(s,d){var x=[];return vs(s,function(L,W,ee){d(L,W,ee)&&x.push(L)}),x}function to(s,d,x,L,W){var ee=-1,ye=s.length;for(x||(x=YS),W||(W=[]);++ee<ye;){var _e=s[ee];d>0&&x(_e)?d>1?to(_e,d-1,x,L,W):Po(W,_e):L||(W[W.length]=_e)}return W}var bu=l(),yd=l(!0);function qo(s,d){return s&&bu(s,d,ko)}function uc(s,d){return s&&yd(s,d,ko)}function Pa(s,d){return oi(d,function(x){return Ll(s[x])})}function ys(s,d){d=Uo(d,s);for(var x=0,L=d.length;s!=null&&x<L;)s=s[Wa(d[x++])];return x&&x==L?s:t}function wl(s,d,x){var L=d(s);return Rr(s)?L:Po(L,x(s))}function Gn(s){return s==null?s===t?st:Ke:Vi&&Vi in Qr(s)?$S(s):t_(s)}function Gs(s,d){return s>d}function dc(s,d){return s!=null&&Xr.call(s,d)}function Ba(s,d){return s!=null&&d in Qr(s)}function fc(s,d,x){return s>=Un(d,x)&&s<xn(d,x)}function Fa(s,d,x){for(var L=x?eo:ji,W=s[0].length,ee=s.length,ye=ee,_e=tt(ee),Be=1/0,xt=[];ye--;){var Ct=s[ye];ye&&d&&(Ct=ln(Ct,Jt(d))),Be=Un(Ct.length,Be),_e[ye]=!x&&(d||W>=120&&Ct.length>=120)?new mo(ye&&Ct):t}Ct=s[0];var Mt=-1,Gt=_e[0];e:for(;++Mt<W&&xt.length<Be;){var sr=Ct[Mt],vr=d?d(sr):sr;if(sr=x||sr!==0?sr:0,!(Gt?gr(Gt,vr):L(xt,vr,x))){for(ye=ee;--ye;){var Br=_e[ye];if(!(Br?gr(Br,vr):L(s[ye],vr,x)))continue e}Gt&&Gt.push(vr),xt.push(sr)}}return xt}function hc(s,d,x,L){return qo(s,function(W,ee,ye){d(L,x(W),ee,ye)}),L}function Ai(s,d,x){d=Uo(d,s),s=Sy(s,d);var L=s==null?s:s[Wa(_s(d))];return L==null?t:bn(L,s,x)}function pc(s){return Zn(s)&&Gn(s)==oe}function Ys(s){return Zn(s)&&Gn(s)==mt}function bd(s){return Zn(s)&&Gn(s)==Ce}function Cl(s,d,x,L,W){return s===d?!0:s==null||d==null||!Zn(s)&&!Zn(d)?s!==s&&d!==d:ja(s,d,x,L,Cl,W)}function ja(s,d,x,L,W,ee){var ye=Rr(s),_e=Rr(d),Be=ye?ge:Xo(s),xt=_e?ge:Xo(d);Be=Be==oe?ht:Be,xt=xt==oe?ht:xt;var Ct=Be==ht,Mt=xt==ht,Gt=Be==xt;if(Gt&&Ac(s)){if(!Ac(d))return!1;ye=!0,Ct=!1}if(Gt&&!Ct)return ee||(ee=new Pr),ye||Od(s)?my(s,d,x,L,W,ee):zS(s,d,Be,x,L,W,ee);if(!(x&w)){var sr=Ct&&Xr.call(s,"__wrapped__"),vr=Mt&&Xr.call(d,"__wrapped__");if(sr||vr){var Br=sr?s.value():s,yr=vr?d.value():d;return ee||(ee=new Pr),W(Br,yr,x,L,ee)}}return Gt?(ee||(ee=new Pr),HS(s,d,x,L,W,ee)):!1}function za(s){return Zn(s)&&Xo(s)==Qe}function xu(s,d,x,L){var W=x.length,ee=W,ye=!L;if(s==null)return!ee;for(s=Qr(s);W--;){var _e=x[W];if(ye&&_e[2]?_e[1]!==s[_e[0]]:!(_e[0]in s))return!1}for(;++W<ee;){_e=x[W];var Be=_e[0],xt=s[Be],Ct=_e[1];if(ye&&_e[2]){if(xt===t&&!(Be in s))return!1}else{var Mt=new Pr;if(L)var Gt=L(xt,Ct,Be,s,d,Mt);if(!(Gt===t?Cl(Ct,xt,w|T,L,Mt):Gt))return!1}}return!0}function xd(s){if(!Wn(s)||KS(s))return!1;var d=Ll(s)?iu:_t;return d.test(Mu(s))}function Zs(s){return Zn(s)&&Gn(s)==Xe}function gc(s){return Zn(s)&&Xo(s)==We}function Xi(s){return Zn(s)&&rp(s.length)&&!!Mr[Gn(s)]}function mc(s){return typeof s=="function"?s:s==null?Ii:typeof s=="object"?Rr(s)?_l(s[0],s[1]):Ei(s):a0(s)}function Ji(s){if(!qf(s))return ud(s);var d=[];for(var x in Qr(s))Xr.call(s,x)&&x!="constructor"&&d.push(x);return d}function Sl(s){if(!Wn(s))return e_(s);var d=qf(s),x=[];for(var L in s)L=="constructor"&&(d||!Xr.call(s,L))||x.push(L);return x}function ai(s,d){return s<d}function li(s,d){var x=-1,L=Ri(s)?tt(s.length):[];return vs(s,function(W,ee,ye){L[++x]=d(W,ee,ye)}),L}function Ei(s){var d=Wg(s);return d.length==1&&d[0][2]?wy(d[0][0],d[0][1]):function(x){return x===s||xu(x,s,d)}}function _l(s,d){return Gg(s)&&xy(d)?wy(Wa(s),d):function(x){var L=nm(x,s);return L===t&&L===d?om(x,s):Cl(d,L,w|T)}}function bs(s,d,x,L,W){s!==d&&bu(d,function(ee,ye){if(W||(W=new Pr),Wn(ee))ci(s,d,ye,x,bs,L,W);else{var _e=L?L(Zg(s,ye),ee,ye+"",s,d,W):t;_e===t&&(_e=ee),fu(s,ye,_e)}},ki)}function ci(s,d,x,L,W,ee,ye){var _e=Zg(s,x),Be=Zg(d,x),xt=ye.get(Be);if(xt){fu(s,x,xt);return}var Ct=ee?ee(_e,Be,x+"",s,d,ye):t,Mt=Ct===t;if(Mt){var Gt=Rr(Be),sr=!Gt&&Ac(Be),vr=!Gt&&!sr&&Od(Be);Ct=Be,Gt||sr||vr?Rr(_e)?Ct=_e:no(_e)?Ct=wo(_e):sr?(Mt=!1,Ct=Cs(Be,!0)):vr?(Mt=!1,Ct=Rl(Be,!0)):Ct=[]:Wf(Be)||Lu(Be)?(Ct=_e,Lu(_e)?Ct=Xy(_e):(!Wn(_e)||Ll(_e))&&(Ct=by(Be))):Mt=!1}Mt&&(ye.set(Be,Ct),W(Ct,Be,L,ee,ye),ye.delete(Be)),fu(s,x,Ct)}function Ha(s,d){var x=s.length;if(x)return d+=d<0?x:0,Ml(d,x)?s[d]:t}function vc(s,d,x){d.length?d=ln(d,function(ee){return Rr(ee)?function(ye){return ys(ye,ee.length===1?ee[0]:ee)}:ee}):d=[Ii];var L=-1;d=ln(d,Jt(mr()));var W=li(s,function(ee,ye,_e){var Be=ln(d,function(xt){return xt(ee)});return{criteria:Be,index:++L,value:ee}});return ce(W,function(ee,ye){return _c(ee,ye,x)})}function Al(s,d){return $a(s,d,function(x,L){return om(s,L)})}function $a(s,d,x){for(var L=-1,W=d.length,ee={};++L<W;){var ye=d[L],_e=ys(s,ye);x(_e,ye)&&Xs(ee,Uo(ye,s),_e)}return ee}function wd(s){return function(d){return ys(d,s)}}function wu(s,d,x,L){var W=L?Kl:zi,ee=-1,ye=d.length,_e=s;for(s===d&&(d=wo(d)),x&&(_e=ln(s,Jt(x)));++ee<ye;)for(var Be=0,xt=d[ee],Ct=x?x(xt):xt;(Be=W(_e,Ct,Be,L))>-1;)_e!==s&&Wi.call(_e,Be,1),Wi.call(s,Be,1);return s}function Cu(s,d){for(var x=s?d.length:0,L=x-1;x--;){var W=d[x];if(x==L||W!==ee){var ee=W;Ml(W)?Wi.call(s,W,1):xo(s,W)}}return s}function Ks(s,d){return s+zs(fs()*(d-s+1))}function Su(s,d,x,L){for(var W=-1,ee=xn(ka((d-s)/(x||1)),0),ye=tt(ee);ee--;)ye[L?ee:++W]=s,s+=x;return ye}function yc(s,d){var x="";if(!s||d<1||d>ne)return x;do d%2&&(x+=s),d=zs(d/2),d&&(s+=s);while(d);return x}function Ar(s,d){return Kg(Cy(s,d,Ii),s+"")}function El(s){return To(Nd(s))}function _u(s,d){var x=Nd(s);return Kh(x,Ws(d,0,x.length))}function Xs(s,d,x,L){if(!Wn(s))return s;d=Uo(d,s);for(var W=-1,ee=d.length,ye=ee-1,_e=s;_e!=null&&++W<ee;){var Be=Wa(d[W]),xt=x;if(Be==="__proto__"||Be==="constructor"||Be==="prototype")return s;if(W!=ye){var Ct=_e[Be];xt=L?L(Ct,Be,_e):t,xt===t&&(xt=Wn(Ct)?Ct:Ml(d[W+1])?[]:{})}vo(_e,Be,xt),_e=_e[Be]}return s}var bc=ml?function(s,d){return ml.set(s,d),s}:Ii,Cd=us?function(s,d){return us(s,"toString",{configurable:!0,enumerable:!1,value:sm(d),writable:!0})}:Ii;function Sd(s){return Kh(Nd(s))}function Ro(s,d,x){var L=-1,W=s.length;d<0&&(d=-d>W?0:W+d),x=x>W?W:x,x<0&&(x+=W),W=d>x?0:x-d>>>0,d>>>=0;for(var ee=tt(W);++L<W;)ee[L]=s[L+d];return ee}function _d(s,d){var x;return vs(s,function(L,W,ee){return x=d(L,W,ee),!x}),!!x}function xc(s,d,x){var L=0,W=s==null?L:s.length;if(typeof d=="number"&&d===d&&W<=Ae){for(;L<W;){var ee=L+W>>>1,ye=s[ee];ye!==null&&!Qi(ye)&&(x?ye<=d:ye<d)?L=ee+1:W=ee}return W}return Au(s,d,Ii,x)}function Au(s,d,x,L){var W=0,ee=s==null?0:s.length;if(ee===0)return 0;d=x(d);for(var ye=d!==d,_e=d===null,Be=Qi(d),xt=d===t;W<ee;){var Ct=zs((W+ee)/2),Mt=x(s[Ct]),Gt=Mt!==t,sr=Mt===null,vr=Mt===Mt,Br=Qi(Mt);if(ye)var yr=L||vr;else xt?yr=vr&&(L||Gt):_e?yr=vr&&Gt&&(L||!sr):Be?yr=vr&&Gt&&!sr&&(L||!Br):sr||Br?yr=!1:yr=L?Mt<=d:Mt<d;yr?W=Ct+1:ee=Ct}return Un(ee,me)}function Eu(s,d){for(var x=-1,L=s.length,W=0,ee=[];++x<L;){var ye=s[x],_e=d?d(ye):ye;if(!x||!ta(_e,Be)){var Be=_e;ee[W++]=ye===0?0:ye}}return ee}function Ad(s){return typeof s=="number"?s:Qi(s)?ie:+s}function bo(s){if(typeof s=="string")return s;if(Rr(s))return ln(s,bo)+"";if(Qi(s))return vl?vl.call(s):"";var d=s+"";return d=="0"&&1/s==-re?"-0":d}function xs(s,d,x){var L=-1,W=ji,ee=s.length,ye=!0,_e=[],Be=_e;if(x)ye=!1,W=eo;else if(ee>=o){var xt=d?null:Ua(s);if(xt)return dl(xt);ye=!1,W=gr,Be=new mo}else Be=d?[]:_e;e:for(;++L<ee;){var Ct=s[L],Mt=d?d(Ct):Ct;if(Ct=x||Ct!==0?Ct:0,ye&&Mt===Mt){for(var Gt=Be.length;Gt--;)if(Be[Gt]===Mt)continue e;d&&Be.push(Mt),_e.push(Ct)}else W(Be,Mt,x)||(Be!==_e&&Be.push(Mt),_e.push(Ct))}return _e}function xo(s,d){return d=Uo(d,s),s=Sy(s,d),s==null||delete s[Wa(_s(d))]}function Ed(s,d,x,L){return Xs(s,d,x(ys(s,d)),L)}function Js(s,d,x,L){for(var W=s.length,ee=L?W:-1;(L?ee--:++ee<W)&&d(s[ee],ee,s););return x?Ro(s,L?0:ee,L?ee+1:W):Ro(s,L?ee+1:0,L?W:ee)}function Td(s,d){var x=s;return x instanceof Tr&&(x=x.value()),cl(d,function(L,W){return W.func.apply(W.thisArg,Po([L],W.args))},x)}function ro(s,d,x){var L=s.length;if(L<2)return L?xs(s[0]):[];for(var W=-1,ee=tt(L);++W<L;)for(var ye=s[W],_e=-1;++_e<L;)_e!=W&&(ee[W]=Vs(ee[W]||ye,s[_e],d,x));return xs(to(ee,1),d,x)}function Rd(s,d,x){for(var L=-1,W=s.length,ee=d.length,ye={};++L<W;){var _e=L<ee?d[L]:t;x(ye,s[L],_e)}return ye}function wc(s){return no(s)?s:[]}function Cc(s){return typeof s=="function"?s:Ii}function Uo(s,d){return Rr(s)?s:Gg(s,d)?[s]:Ty(gn(s))}var kd=Ar;function ws(s,d,x){var L=s.length;return x=x===t?L:x,!d&&x>=L?s:Ro(s,d,x)}var Sc=Mf||function(s){return Cr.clearTimeout(s)};function Cs(s,d){if(d)return s.slice();var x=s.length,L=hl?hl(x):new s.constructor(x);return s.copy(L),L}function Qs(s){var d=new s.constructor(s.byteLength);return new fl(d).set(new fl(s)),d}function Hf(s,d){var x=d?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.byteLength)}function Tu(s){var d=new s.constructor(s.source,qe.exec(s));return d.lastIndex=s.lastIndex,d}function Tl(s){return $s?Qr($s.call(s)):{}}function Rl(s,d){var x=d?Qs(s.buffer):s.buffer;return new s.constructor(x,s.byteOffset,s.length)}function Ru(s,d){if(s!==d){var x=s!==t,L=s===null,W=s===s,ee=Qi(s),ye=d!==t,_e=d===null,Be=d===d,xt=Qi(d);if(!_e&&!xt&&!ee&&s>d||ee&&ye&&Be&&!_e&&!xt||L&&ye&&Be||!x&&Be||!W)return 1;if(!L&&!ee&&!xt&&s<d||xt&&x&&W&&!L&&!ee||_e&&x&&W||!ye&&W||!Be)return-1}return 0}function _c(s,d,x){for(var L=-1,W=s.criteria,ee=d.criteria,ye=W.length,_e=x.length;++L<ye;){var Be=Ru(W[L],ee[L]);if(Be){if(L>=_e)return Be;var xt=x[L];return Be*(xt=="desc"?-1:1)}}return s.index-d.index}function ku(s,d,x,L){for(var W=-1,ee=s.length,ye=x.length,_e=-1,Be=d.length,xt=xn(ee-ye,0),Ct=tt(Be+xt),Mt=!L;++_e<Be;)Ct[_e]=d[_e];for(;++W<ye;)(Mt||W<ee)&&(Ct[x[W]]=s[W]);for(;xt--;)Ct[_e++]=s[W++];return Ct}function Id(s,d,x,L){for(var W=-1,ee=s.length,ye=-1,_e=x.length,Be=-1,xt=d.length,Ct=xn(ee-_e,0),Mt=tt(Ct+xt),Gt=!L;++W<Ct;)Mt[W]=s[W];for(var sr=W;++Be<xt;)Mt[sr+Be]=d[Be];for(;++ye<_e;)(Gt||W<ee)&&(Mt[sr+x[ye]]=s[W++]);return Mt}function wo(s,d){var x=-1,L=s.length;for(d||(d=tt(L));++x<L;)d[x]=s[x];return d}function Ko(s,d,x,L){var W=!x;x||(x={});for(var ee=-1,ye=d.length;++ee<ye;){var _e=d[ee],Be=L?L(x[_e],s[_e],_e,x,s):t;Be===t&&(Be=s[_e]),W?$o(x,_e,Be):vo(x,_e,Be)}return x}function Md(s,d){return Ko(s,Vg(s),d)}function $f(s,d){return Ko(s,vy(s),d)}function kl(s,d){return function(x,L){var W=Rr(x)?Ns:Us,ee=d?d():{};return W(x,s,mr(L,2),ee)}}function qa(s){return Ar(function(d,x){var L=-1,W=x.length,ee=W>1?x[W-1]:t,ye=W>2?x[2]:t;for(ee=s.length>3&&typeof ee=="function"?(W--,ee):t,ye&&di(x[0],x[1],ye)&&(ee=W<3?t:ee,W=1),d=Qr(d);++L<W;){var _e=x[L];_e&&s(d,_e,L,ee)}return d})}function y(s,d){return function(x,L){if(x==null)return x;if(!Ri(x))return s(x,L);for(var W=x.length,ee=d?W:-1,ye=Qr(x);(d?ee--:++ee<W)&&L(ye[ee],ee,ye)!==!1;);return x}}function l(s){return function(d,x,L){for(var W=-1,ee=Qr(d),ye=L(d),_e=ye.length;_e--;){var Be=ye[s?_e:++W];if(x(ee[Be],Be,ee)===!1)break}return d}}function h(s,d,x){var L=d&A,W=N(s);function ee(){var ye=this&&this!==Cr&&this instanceof ee?W:s;return ye.apply(L?x:this,arguments)}return ee}function v(s){return function(d){d=gn(d);var x=_a(d)?Sn(d):t,L=x?x[0]:d.charAt(0),W=x?ws(x,1).join(""):d.slice(1);return L[s]()+W}}function E(s){return function(d){return cl(i0(o0(d).replace(yi,"")),s,"")}}function N(s){return function(){var d=arguments;switch(d.length){case 0:return new s;case 1:return new s(d[0]);case 2:return new s(d[0],d[1]);case 3:return new s(d[0],d[1],d[2]);case 4:return new s(d[0],d[1],d[2],d[3]);case 5:return new s(d[0],d[1],d[2],d[3],d[4]);case 6:return new s(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new s(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var x=Yi(s.prototype),L=s.apply(x,d);return Wn(L)?L:x}}function q(s,d,x){var L=N(s);function W(){for(var ee=arguments.length,ye=tt(ee),_e=ee,Be=Dd(W);_e--;)ye[_e]=arguments[_e];var xt=ee<3&&ye[0]!==Be&&ye[ee-1]!==Be?[]:Hi(ye,Be);if(ee-=xt.length,ee<x)return Ss(s,d,ze,W.placeholder,t,ye,xt,t,t,x-ee);var Ct=this&&this!==Cr&&this instanceof W?L:s;return bn(Ct,this,ye)}return W}function K(s){return function(d,x,L){var W=Qr(d);if(!Ri(d)){var ee=mr(x,3);d=ko(d),x=function(_e){return ee(W[_e],_e,W)}}var ye=s(d,x,L);return ye>-1?W[ee?d[ye]:ye]:t}}function ve(s){return Il(function(d){var x=d.length,L=x,W=uo.prototype.thru;for(s&&d.reverse();L--;){var ee=d[L];if(typeof ee!="function")throw new Zo(a);if(W&&!ye&&Yh(ee)=="wrapper")var ye=new uo([],!0)}for(L=ye?L:x;++L<x;){ee=d[L];var _e=Yh(ee),Be=_e=="wrapper"?Ug(ee):t;Be&&Yg(Be[0])&&Be[1]==(z|D|F|j)&&!Be[4].length&&Be[9]==1?ye=ye[Yh(Be[0])].apply(ye,Be[3]):ye=ee.length==1&&Yg(ee)?ye[_e]():ye.thru(ee)}return function(){var xt=arguments,Ct=xt[0];if(ye&&xt.length==1&&Rr(Ct))return ye.plant(Ct).value();for(var Mt=0,Gt=x?d[Mt].apply(this,xt):Ct;++Mt<x;)Gt=d[Mt].call(this,Gt);return Gt}})}function ze(s,d,x,L,W,ee,ye,_e,Be,xt){var Ct=d&z,Mt=d&A,Gt=d&_,sr=d&(D|M),vr=d&G,Br=Gt?t:N(s);function yr(){for(var Ur=arguments.length,Zr=tt(Ur),es=Ur;es--;)Zr[es]=arguments[es];if(sr)var fi=Dd(yr),ts=Bo(Zr,fi);if(L&&(Zr=ku(Zr,L,W,sr)),ee&&(Zr=Id(Zr,ee,ye,sr)),Ur-=ts,sr&&Ur<xt){var oo=Hi(Zr,fi);return Ss(s,d,ze,yr.placeholder,x,Zr,oo,_e,Be,xt-Ur)}var ra=Mt?x:this,Ol=Gt?ra[s]:s;return Ur=Zr.length,_e?Zr=r_(Zr,_e):vr&&Ur>1&&Zr.reverse(),Ct&&Be<Ur&&(Zr.length=Be),this&&this!==Cr&&this instanceof yr&&(Ol=Br||N(Ol)),Ol.apply(ra,Zr)}return yr}function vt(s,d){return function(x,L){return hc(x,s,d(L),{})}}function Rt(s,d){return function(x,L){var W;if(x===t&&L===t)return d;if(x!==t&&(W=x),L!==t){if(W===t)return L;typeof x=="string"||typeof L=="string"?(x=bo(x),L=bo(L)):(x=Ad(x),L=Ad(L)),W=s(x,L)}return W}}function zt(s){return Il(function(d){return d=ln(d,Jt(mr())),Ar(function(x){var L=this;return s(d,function(W){return bn(W,L,x)})})})}function dr(s,d){d=d===t?" ":bo(d);var x=d.length;if(x<2)return x?yc(d,s):d;var L=yc(d,ka(s/Aa(d)));return _a(d)?ws(Sn(L),0,s).join(""):L.slice(0,s)}function Gr(s,d,x,L){var W=d&A,ee=N(s);function ye(){for(var _e=-1,Be=arguments.length,xt=-1,Ct=L.length,Mt=tt(Ct+Be),Gt=this&&this!==Cr&&this instanceof ye?ee:s;++xt<Ct;)Mt[xt]=L[xt];for(;Be--;)Mt[xt++]=arguments[++_e];return bn(Gt,W?x:this,Mt)}return ye}function Yn(s){return function(d,x,L){return L&&typeof L!="number"&&di(d,x,L)&&(x=L=t),d=Dl(d),x===t?(x=d,d=0):x=Dl(x),L=L===t?d<x?1:-1:Dl(L),Su(d,x,L,s)}}function Ti(s){return function(d,x){return typeof d=="string"&&typeof x=="string"||(d=As(d),x=As(x)),s(d,x)}}function Ss(s,d,x,L,W,ee,ye,_e,Be,xt){var Ct=d&D,Mt=Ct?ye:t,Gt=Ct?t:ye,sr=Ct?ee:t,vr=Ct?t:ee;d|=Ct?F:B,d&=~(Ct?B:F),d&R||(d&=-4);var Br=[s,d,W,sr,Mt,vr,Gt,_e,Be,xt],yr=x.apply(t,Br);return Yg(s)&&_y(yr,Br),yr.placeholder=L,Ay(yr,s,d)}function ui(s){var d=Dn[s];return function(x,L){if(x=As(x),L=L==null?0:Un(Dr(L),292),L&&Ma(x)){var W=(gn(x)+"e").split("e"),ee=d(W[0]+"e"+(+W[1]+L));return W=(gn(ee)+"e").split("e"),+(W[0]+"e"+(+W[1]-L))}return d(x)}}var Ua=wi&&1/dl(new wi([,-0]))[1]==re?function(s){return new wi(s)}:cm;function Ld(s){return function(d){var x=Xo(d);return x==Qe?tu(d):x==We?Tf(d):gt(d,s(d))}}function ea(s,d,x,L,W,ee,ye,_e){var Be=d&_;if(!Be&&typeof s!="function")throw new Zo(a);var xt=L?L.length:0;if(xt||(d&=-97,L=W=t),ye=ye===t?ye:xn(Dr(ye),0),_e=_e===t?_e:Dr(_e),xt-=W?W.length:0,d&B){var Ct=L,Mt=W;L=W=t}var Gt=Be?t:Ug(s),sr=[s,d,x,L,W,Ct,Mt,ee,ye,_e];if(Gt&&QS(sr,Gt),s=sr[0],d=sr[1],x=sr[2],L=sr[3],W=sr[4],_e=sr[9]=sr[9]===t?Be?0:s.length:xn(sr[9]-xt,0),!_e&&d&(D|M)&&(d&=-25),!d||d==A)var vr=h(s,d,x);else d==D||d==M?vr=q(s,d,_e):(d==F||d==(A|F))&&!W.length?vr=Gr(s,d,x,L):vr=ze.apply(t,sr);var Br=Gt?bc:_y;return Ay(Br(vr,sr),s,d)}function py(s,d,x,L){return s===t||ta(s,ls[x])&&!Xr.call(L,x)?d:s}function gy(s,d,x,L,W,ee){return Wn(s)&&Wn(d)&&(ee.set(d,s),bs(s,d,t,gy,ee),ee.delete(d)),s}function jS(s){return Wf(s)?t:s}function my(s,d,x,L,W,ee){var ye=x&w,_e=s.length,Be=d.length;if(_e!=Be&&!(ye&&Be>_e))return!1;var xt=ee.get(s),Ct=ee.get(d);if(xt&&Ct)return xt==d&&Ct==s;var Mt=-1,Gt=!0,sr=x&T?new mo:t;for(ee.set(s,d),ee.set(d,s);++Mt<_e;){var vr=s[Mt],Br=d[Mt];if(L)var yr=ye?L(Br,vr,Mt,d,s,ee):L(vr,Br,Mt,s,d,ee);if(yr!==t){if(yr)continue;Gt=!1;break}if(sr){if(!as(d,function(Ur,Zr){if(!gr(sr,Zr)&&(vr===Ur||W(vr,Ur,x,L,ee)))return sr.push(Zr)})){Gt=!1;break}}else if(!(vr===Br||W(vr,Br,x,L,ee))){Gt=!1;break}}return ee.delete(s),ee.delete(d),Gt}function zS(s,d,x,L,W,ee,ye){switch(x){case ut:if(s.byteLength!=d.byteLength||s.byteOffset!=d.byteOffset)return!1;s=s.buffer,d=d.buffer;case mt:return!(s.byteLength!=d.byteLength||!ee(new fl(s),new fl(d)));case Le:case Ce:case Ze:return ta(+s,+d);case Ie:return s.name==d.name&&s.message==d.message;case Xe:case Ve:return s==d+"";case Qe:var _e=tu;case We:var Be=L&w;if(_e||(_e=dl),s.size!=d.size&&!Be)return!1;var xt=ye.get(s);if(xt)return xt==d;L|=T,ye.set(s,d);var Ct=my(_e(s),_e(d),L,W,ee,ye);return ye.delete(s),Ct;case lt:if($s)return $s.call(s)==$s.call(d)}return!1}function HS(s,d,x,L,W,ee){var ye=x&w,_e=$g(s),Be=_e.length,xt=$g(d),Ct=xt.length;if(Be!=Ct&&!ye)return!1;for(var Mt=Be;Mt--;){var Gt=_e[Mt];if(!(ye?Gt in d:Xr.call(d,Gt)))return!1}var sr=ee.get(s),vr=ee.get(d);if(sr&&vr)return sr==d&&vr==s;var Br=!0;ee.set(s,d),ee.set(d,s);for(var yr=ye;++Mt<Be;){Gt=_e[Mt];var Ur=s[Gt],Zr=d[Gt];if(L)var es=ye?L(Zr,Ur,Gt,d,s,ee):L(Ur,Zr,Gt,s,d,ee);if(!(es===t?Ur===Zr||W(Ur,Zr,x,L,ee):es)){Br=!1;break}yr||(yr=Gt=="constructor")}if(Br&&!yr){var fi=s.constructor,ts=d.constructor;fi!=ts&&"constructor"in s&&"constructor"in d&&!(typeof fi=="function"&&fi instanceof fi&&typeof ts=="function"&&ts instanceof ts)&&(Br=!1)}return ee.delete(s),ee.delete(d),Br}function Il(s){return Kg(Cy(s,t,My),s+"")}function $g(s){return wl(s,ko,Vg)}function qg(s){return wl(s,ki,vy)}var Ug=ml?function(s){return ml.get(s)}:cm;function Yh(s){for(var d=s.name+"",x=Hs[d],L=Xr.call(Hs,d)?x.length:0;L--;){var W=x[L],ee=W.func;if(ee==null||ee==s)return W.name}return d}function Dd(s){var d=Xr.call(Z,"placeholder")?Z:s;return d.placeholder}function mr(){var s=Z.iteratee||am;return s=s===am?mc:s,arguments.length?s(arguments[0],arguments[1]):s}function Zh(s,d){var x=s.__data__;return ZS(d)?x[typeof d=="string"?"string":"hash"]:x.map}function Wg(s){for(var d=ko(s),x=d.length;x--;){var L=d[x],W=s[L];d[x]=[L,W,xy(W)]}return d}function Iu(s,d){var x=Fs(s,d);return xd(x)?x:t}function $S(s){var d=Xr.call(s,Vi),x=s[Vi];try{s[Vi]=t;var L=!0}catch{}var W=qi.call(s);return L&&(d?s[Vi]=x:delete s[Vi]),W}var Vg=Ia?function(s){return s==null?[]:(s=Qr(s),oi(Ia(s),function(d){return tc.call(s,d)}))}:um,vy=Ia?function(s){for(var d=[];s;)Po(d,Vg(s)),s=js(s);return d}:um,Xo=Gn;(xi&&Xo(new xi(new ArrayBuffer(1)))!=ut||hs&&Xo(new hs)!=Qe||La&&Xo(La.resolve())!=Pe||wi&&Xo(new wi)!=We||Gi&&Xo(new Gi)!=De)&&(Xo=function(s){var d=Gn(s),x=d==ht?s.constructor:t,L=x?Mu(x):"";if(L)switch(L){case ps:return ut;case au:return Qe;case Lf:return Pe;case dd:return We;case Oa:return De}return d});function qS(s,d,x){for(var L=-1,W=x.length;++L<W;){var ee=x[L],ye=ee.size;switch(ee.type){case"drop":s+=ye;break;case"dropRight":d-=ye;break;case"take":d=Un(d,s+ye);break;case"takeRight":s=xn(s,d-ye);break}}return{start:s,end:d}}function US(s){var d=s.match(pr);return d?d[1].split(pe):[]}function yy(s,d,x){d=Uo(d,s);for(var L=-1,W=d.length,ee=!1;++L<W;){var ye=Wa(d[L]);if(!(ee=s!=null&&x(s,ye)))break;s=s[ye]}return ee||++L!=W?ee:(W=s==null?0:s.length,!!W&&rp(W)&&Ml(ye,W)&&(Rr(s)||Lu(s)))}function WS(s){var d=s.length,x=new s.constructor(d);return d&&typeof s[0]=="string"&&Xr.call(s,"index")&&(x.index=s.index,x.input=s.input),x}function by(s){return typeof s.constructor=="function"&&!qf(s)?Yi(js(s)):{}}function VS(s,d,x){var L=s.constructor;switch(d){case mt:return Qs(s);case Le:case Ce:return new L(+s);case ut:return Hf(s,x);case Dt:case Bt:case Pt:case Xt:case ar:case Kt:case cr:case Te:case ae:return Rl(s,x);case Qe:return new L;case Ze:case Ve:return new L(s);case Xe:return Tu(s);case We:return new L;case lt:return Tl(s)}}function GS(s,d){var x=d.length;if(!x)return s;var L=x-1;return d[L]=(x>1?"& ":"")+d[L],d=d.join(x>2?", ":" "),s.replace(Nr,`{
|
|
39
39
|
/* [wrapped with `+d+`] */
|
|
40
|
-
`)}function YS(s){return Rr(s)||Lu(s)||!!(rc&&s&&s[rc])}function Ml(s,d){var x=typeof s;return d=d??ne,!!d&&(x=="number"||x!="symbol"&&ct.test(s))&&s>-1&&s%1==0&&s<d}function di(s,d,x){if(!Wn(x))return!1;var L=typeof d;return(L=="number"?Ri(x)&&Ml(d,x.length):L=="string"&&d in x)?ta(x[d],s):!1}function Gg(s,d){if(Rr(s))return!1;var x=typeof s;return x=="number"||x=="symbol"||x=="boolean"||s==null||Qi(s)?!0:rt.test(s)||!Nt.test(s)||d!=null&&s in Qr(d)}function ZS(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function Yg(s){var d=Yh(s),x=Z[d];if(typeof x!="function"||!(d in Tr.prototype))return!1;if(s===x)return!0;var L=Ug(x);return!!L&&s===L[0]}function KS(s){return!!pn&&pn in s}var XS=cn?Ll:dm;function qf(s){var d=s&&s.constructor,x=typeof d=="function"&&d.prototype||ls;return s===x}function xy(s){return s===s&&!Wn(s)}function wy(s,d){return function(x){return x==null?!1:x[s]===d&&(d!==t||s in Qr(x))}}function JS(s){var d=ep(s,function(L){return x.size===f&&x.clear(),L}),x=d.cache;return d}function QS(s,d){var x=s[1],L=d[1],W=x|L,ee=W<(A|_|z),ye=L==z&&x==D||L==z&&x==j&&s[7].length<=d[8]||L==(z|j)&&d[7].length<=d[8]&&x==D;if(!(ee||ye))return s;L&A&&(s[2]=d[2],W|=x&A?0:R);var _e=d[3];if(_e){var Be=s[3];s[3]=Be?ku(Be,_e,d[4]):_e,s[4]=Be?Hi(s[3],p):d[4]}return _e=d[5],_e&&(Be=s[5],s[5]=Be?Id(Be,_e,d[6]):_e,s[6]=Be?Hi(s[5],p):d[6]),_e=d[7],_e&&(s[7]=_e),L&z&&(s[8]=s[8]==null?d[8]:Un(s[8],d[8])),s[9]==null&&(s[9]=d[9]),s[0]=d[0],s[1]=W,s}function e_(s){var d=[];if(s!=null)for(var x in Qr(s))d.push(x);return d}function t_(s){return qi.call(s)}function Cy(s,d,x){return d=xn(d===t?s.length-1:d,0),function(){for(var L=arguments,W=-1,ee=xn(L.length-d,0),ye=tt(ee);++W<ee;)ye[W]=L[d+W];W=-1;for(var _e=tt(d+1);++W<d;)_e[W]=L[W];return _e[d]=x(ye),bn(s,this,_e)}}function Sy(s,d){return d.length<2?s:ys(s,Ro(d,0,-1))}function r_(s,d){for(var x=s.length,L=Un(d.length,x),W=wo(s);L--;){var ee=d[L];s[L]=Ml(ee,x)?W[ee]:t}return s}function Zg(s,d){if(!(d==="constructor"&&typeof s[d]=="function")&&d!="__proto__")return s[d]}var _y=Ey(bc),Uf=cd||function(s,d){return Cr.setTimeout(s,d)},Kg=Ey(Cd);function Ay(s,d,x){var L=d+"";return Kg(s,GS(L,n_(US(L),x)))}function Ey(s){var d=0,x=0;return function(){var L=ds(),W=V-(L-x);if(x=L,W>0){if(++d>=U)return arguments[0]}else d=0;return s.apply(t,arguments)}}function Kh(s,d){var x=-1,L=s.length,W=L-1;for(d=d===t?L:d;++x<d;){var ee=Ks(x,W),ye=s[ee];s[ee]=s[x],s[x]=ye}return s.length=d,s}var Ty=JS(function(s){var d=[];return s.charCodeAt(0)===46&&d.push(""),s.replace(St,function(x,L,W,ee){d.push(W?ee.replace(je,"$1"):L||x)}),d});function Wa(s){if(typeof s=="string"||Qi(s))return s;var d=s+"";return d=="0"&&1/s==-re?"-0":d}function Mu(s){if(s!=null){try{return cs.call(s)}catch{}try{return s+""}catch{}}return""}function n_(s,d){return Qn(De,function(x){var L="_."+x[0];d&x[1]&&!ji(s,L)&&s.push(L)}),s.sort()}function Ry(s){if(s instanceof Tr)return s.clone();var d=new uo(s.__wrapped__,s.__chain__);return d.__actions__=wo(s.__actions__),d.__index__=s.__index__,d.__values__=s.__values__,d}function o_(s,d,x){(x?di(s,d,x):d===t)?d=1:d=xn(Dr(d),0);var L=s==null?0:s.length;if(!L||d<1)return[];for(var W=0,ee=0,ye=tt(ka(L/d));W<L;)ye[ee++]=Ro(s,W,W+=d);return ye}function i_(s){for(var d=-1,x=s==null?0:s.length,L=0,W=[];++d<x;){var ee=s[d];ee&&(W[L++]=ee)}return W}function s_(){var s=arguments.length;if(!s)return[];for(var d=tt(s-1),x=arguments[0],L=s;L--;)d[L-1]=arguments[L];return Po(Rr(x)?wo(x):[x],to(d,1))}var a_=Ar(function(s,d){return no(s)?Vs(s,to(d,1,no,!0)):[]}),l_=Ar(function(s,d){var x=_s(d);return no(x)&&(x=t),no(s)?Vs(s,to(d,1,no,!0),mr(x,2)):[]}),c_=Ar(function(s,d){var x=_s(d);return no(x)&&(x=t),no(s)?Vs(s,to(d,1,no,!0),t,x):[]});function u_(s,d,x){var L=s==null?0:s.length;return L?(d=x||d===t?1:Dr(d),Ro(s,d<0?0:d,L)):[]}function d_(s,d,x){var L=s==null?0:s.length;return L?(d=x||d===t?1:Dr(d),d=L-d,Ro(s,0,d<0?0:d)):[]}function f_(s,d){return s&&s.length?Js(s,mr(d,3),!0,!0):[]}function h_(s,d){return s&&s.length?Js(s,mr(d,3),!0):[]}function p_(s,d,x,L){var W=s==null?0:s.length;return W?(x&&typeof x!="number"&&di(s,d,x)&&(x=0,L=W),zf(s,d,x,L)):[]}function ky(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Dr(x);return W<0&&(W=xn(L+W,0)),Bs(s,mr(d,3),W)}function Iy(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=L-1;return x!==t&&(W=Dr(x),W=x<0?xn(L+W,0):Un(W,L-1)),Bs(s,mr(d,3),W,!0)}function My(s){var d=s==null?0:s.length;return d?to(s,1):[]}function g_(s){var d=s==null?0:s.length;return d?to(s,re):[]}function m_(s,d){var x=s==null?0:s.length;return x?(d=d===t?1:Dr(d),to(s,d)):[]}function v_(s){for(var d=-1,x=s==null?0:s.length,L={};++d<x;){var W=s[d];L[W[0]]=W[1]}return L}function Ly(s){return s&&s.length?s[0]:t}function y_(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Dr(x);return W<0&&(W=xn(L+W,0)),zi(s,d,W)}function b_(s){var d=s==null?0:s.length;return d?Ro(s,0,-1):[]}var x_=Ar(function(s){var d=ln(s,wc);return d.length&&d[0]===s[0]?Fa(d):[]}),w_=Ar(function(s){var d=_s(s),x=ln(s,wc);return d===_s(x)?d=t:x.pop(),x.length&&x[0]===s[0]?Fa(x,mr(d,2)):[]}),C_=Ar(function(s){var d=_s(s),x=ln(s,wc);return d=typeof d=="function"?d:t,d&&x.pop(),x.length&&x[0]===s[0]?Fa(x,t,d):[]});function S_(s,d){return s==null?"":gl.call(s,d)}function _s(s){var d=s==null?0:s.length;return d?s[d-1]:t}function __(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=L;return x!==t&&(W=Dr(x),W=W<0?xn(L+W,0):Un(W,L-1)),d===d?kf(s,d,W):Bs(s,Ca,W,!0)}function A_(s,d){return s&&s.length?Ha(s,Dr(d)):t}var E_=Ar(Dy);function Dy(s,d){return s&&s.length&&d&&d.length?wu(s,d):s}function T_(s,d,x){return s&&s.length&&d&&d.length?wu(s,d,mr(x,2)):s}function R_(s,d,x){return s&&s.length&&d&&d.length?wu(s,d,t,x):s}var k_=Il(function(s,d){var x=s==null?0:s.length,L=pu(s,d);return Cu(s,ln(d,function(W){return Ml(W,x)?+W:W}).sort(Ru)),L});function I_(s,d){var x=[];if(!(s&&s.length))return x;var L=-1,W=[],ee=s.length;for(d=mr(d,3);++L<ee;){var ye=s[L];d(ye,L,s)&&(x.push(ye),W.push(L))}return Cu(s,W),x}function Xg(s){return s==null?s:oc.call(s)}function M_(s,d,x){var L=s==null?0:s.length;return L?(x&&typeof x!="number"&&di(s,d,x)?(d=0,x=L):(d=d==null?0:Dr(d),x=x===t?L:Dr(x)),Ro(s,d,x)):[]}function L_(s,d){return xc(s,d)}function D_(s,d,x){return Au(s,d,mr(x,2))}function O_(s,d){var x=s==null?0:s.length;if(x){var L=xc(s,d);if(L<x&&ta(s[L],d))return L}return-1}function N_(s,d){return xc(s,d,!0)}function P_(s,d,x){return Au(s,d,mr(x,2),!0)}function B_(s,d){var x=s==null?0:s.length;if(x){var L=xc(s,d,!0)-1;if(ta(s[L],d))return L}return-1}function F_(s){return s&&s.length?Eu(s):[]}function j_(s,d){return s&&s.length?Eu(s,mr(d,2)):[]}function z_(s){var d=s==null?0:s.length;return d?Ro(s,1,d):[]}function H_(s,d,x){return s&&s.length?(d=x||d===t?1:Dr(d),Ro(s,0,d<0?0:d)):[]}function $_(s,d,x){var L=s==null?0:s.length;return L?(d=x||d===t?1:Dr(d),d=L-d,Ro(s,d<0?0:d,L)):[]}function q_(s,d){return s&&s.length?Js(s,mr(d,3),!1,!0):[]}function U_(s,d){return s&&s.length?Js(s,mr(d,3)):[]}var W_=Ar(function(s){return xs(to(s,1,no,!0))}),V_=Ar(function(s){var d=_s(s);return no(d)&&(d=t),xs(to(s,1,no,!0),mr(d,2))}),G_=Ar(function(s){var d=_s(s);return d=typeof d=="function"?d:t,xs(to(s,1,no,!0),t,d)});function Y_(s){return s&&s.length?xs(s):[]}function Z_(s,d){return s&&s.length?xs(s,mr(d,2)):[]}function K_(s,d){return d=typeof d=="function"?d:t,s&&s.length?xs(s,t,d):[]}function Jg(s){if(!(s&&s.length))return[];var d=0;return s=oi(s,function(x){if(no(x))return d=xn(x.length,d),!0}),He(d,function(x){return ln(s,I(x))})}function Oy(s,d){if(!(s&&s.length))return[];var x=Jg(s);return d==null?x:ln(x,function(L){return bn(d,t,L)})}var X_=Ar(function(s,d){return no(s)?Vs(s,d):[]}),J_=Ar(function(s){return ro(oi(s,no))}),Q_=Ar(function(s){var d=_s(s);return no(d)&&(d=t),ro(oi(s,no),mr(d,2))}),eA=Ar(function(s){var d=_s(s);return d=typeof d=="function"?d:t,ro(oi(s,no),t,d)}),tA=Ar(Jg);function rA(s,d){return Rd(s||[],d||[],vo)}function nA(s,d){return Rd(s||[],d||[],Xs)}var oA=Ar(function(s){var d=s.length,x=d>1?s[d-1]:t;return x=typeof x=="function"?(s.pop(),x):t,Oy(s,x)});function Ny(s){var d=Z(s);return d.__chain__=!0,d}function iA(s,d){return d(s),s}function Xh(s,d){return d(s)}var sA=Il(function(s){var d=s.length,x=d?s[0]:0,L=this.__wrapped__,W=function(ee){return pu(ee,s)};return d>1||this.__actions__.length||!(L instanceof Tr)||!Ml(x)?this.thru(W):(L=L.slice(x,+x+(d?1:0)),L.__actions__.push({func:Xh,args:[W],thisArg:t}),new uo(L,this.__chain__).thru(function(ee){return d&&!ee.length&&ee.push(t),ee}))});function aA(){return Ny(this)}function lA(){return new uo(this.value(),this.__chain__)}function cA(){this.__values__===t&&(this.__values__=Zy(this.value()));var s=this.__index__>=this.__values__.length,d=s?t:this.__values__[this.__index__++];return{done:s,value:d}}function uA(){return this}function dA(s){for(var d,x=this;x instanceof Zi;){var L=Ry(x);L.__index__=0,L.__values__=t,d?W.__wrapped__=L:d=L;var W=L;x=x.__wrapped__}return W.__wrapped__=s,d}function fA(){var s=this.__wrapped__;if(s instanceof Tr){var d=s;return this.__actions__.length&&(d=new Tr(this)),d=d.reverse(),d.__actions__.push({func:Xh,args:[Xg],thisArg:t}),new uo(d,this.__chain__)}return this.thru(Xg)}function hA(){return Td(this.__wrapped__,this.__actions__)}var pA=kl(function(s,d,x){Xr.call(s,x)?++s[x]:$o(s,x,1)});function gA(s,d,x){var L=Rr(s)?ll:md;return x&&di(s,d,x)&&(d=t),L(s,mr(d,3))}function mA(s,d){var x=Rr(s)?oi:vd;return x(s,mr(d,3))}var vA=K(ky),yA=K(Iy);function bA(s,d){return to(Jh(s,d),1)}function xA(s,d){return to(Jh(s,d),re)}function wA(s,d,x){return x=x===t?1:Dr(x),to(Jh(s,d),x)}function Py(s,d){var x=Rr(s)?Qn:vs;return x(s,mr(d,3))}function By(s,d){var x=Rr(s)?Vl:yu;return x(s,mr(d,3))}var CA=kl(function(s,d,x){Xr.call(s,x)?s[x].push(d):$o(s,x,[d])});function SA(s,d,x,L){s=Ri(s)?s:Nd(s),x=x&&!L?Dr(x):0;var W=s.length;return x<0&&(x=xn(W+x,0)),np(s)?x<=W&&s.indexOf(d,x)>-1:!!W&&zi(s,d,x)>-1}var _A=Ar(function(s,d,x){var L=-1,W=typeof d=="function",ee=Ri(s)?tt(s.length):[];return vs(s,function(ye){ee[++L]=W?bn(d,ye,x):Ai(ye,d,x)}),ee}),AA=kl(function(s,d,x){$o(s,x,d)});function Jh(s,d){var x=Rr(s)?ln:li;return x(s,mr(d,3))}function EA(s,d,x,L){return s==null?[]:(Rr(d)||(d=d==null?[]:[d]),x=L?t:x,Rr(x)||(x=x==null?[]:[x]),vc(s,d,x))}var TA=kl(function(s,d,x){s[x?0:1].push(d)},function(){return[[],[]]});function RA(s,d,x){var L=Rr(s)?cl:Y,W=arguments.length<3;return L(s,mr(d,4),x,W,vs)}function kA(s,d,x){var L=Rr(s)?Gl:Y,W=arguments.length<3;return L(s,mr(d,4),x,W,yu)}function IA(s,d){var x=Rr(s)?oi:vd;return x(s,tp(mr(d,3)))}function MA(s){var d=Rr(s)?To:El;return d(s)}function LA(s,d,x){(x?di(s,d,x):d===t)?d=1:d=Dr(d);var L=Rr(s)?Ho:_u;return L(s,d)}function DA(s){var d=Rr(s)?_i:Sd;return d(s)}function OA(s){if(s==null)return 0;if(Ri(s))return np(s)?Aa(s):s.length;var d=Xo(s);return d==Qe||d==We?s.size:Ji(s).length}function NA(s,d,x){var L=Rr(s)?as:_d;return x&&di(s,d,x)&&(d=t),L(s,mr(d,3))}var PA=Ar(function(s,d){if(s==null)return[];var x=d.length;return x>1&&di(s,d[0],d[1])?d=[]:x>2&&di(d[0],d[1],d[2])&&(d=[d[0]]),vc(s,to(d,1),[])}),Qh=pl||function(){return Cr.Date.now()};function BA(s,d){if(typeof d!="function")throw new Zo(a);return s=Dr(s),function(){if(--s<1)return d.apply(this,arguments)}}function Fy(s,d,x){return d=x?t:d,d=s&&d==null?s.length:d,ea(s,z,t,t,t,t,d)}function jy(s,d){var x;if(typeof d!="function")throw new Zo(a);return s=Dr(s),function(){return--s>0&&(x=d.apply(this,arguments)),s<=1&&(d=t),x}}var Qg=Ar(function(s,d,x){var L=A;if(x.length){var W=Hi(x,Dd(Qg));L|=F}return ea(s,L,d,x,W)}),zy=Ar(function(s,d,x){var L=A|_;if(x.length){var W=Hi(x,Dd(zy));L|=F}return ea(d,L,s,x,W)});function Hy(s,d,x){d=x?t:d;var L=ea(s,D,t,t,t,t,t,d);return L.placeholder=Hy.placeholder,L}function $y(s,d,x){d=x?t:d;var L=ea(s,M,t,t,t,t,t,d);return L.placeholder=$y.placeholder,L}function qy(s,d,x){var L,W,ee,ye,_e,Be,xt=0,Ct=!1,Mt=!1,Gt=!0;if(typeof s!="function")throw new Zo(a);d=As(d)||0,Wn(x)&&(Ct=!!x.leading,Mt="maxWait"in x,ee=Mt?xn(As(x.maxWait)||0,d):ee,Gt="trailing"in x?!!x.trailing:Gt);function sr(oo){var ra=L,Ol=W;return L=W=t,xt=oo,ye=s.apply(Ol,ra),ye}function vr(oo){return xt=oo,_e=Uf(Ur,d),Ct?sr(oo):ye}function Br(oo){var ra=oo-Be,Ol=oo-xt,l0=d-ra;return Mt?Un(l0,ee-Ol):l0}function yr(oo){var ra=oo-Be,Ol=oo-xt;return Be===t||ra>=d||ra<0||Mt&&Ol>=ee}function Ur(){var oo=Qh();if(yr(oo))return Zr(oo);_e=Uf(Ur,Br(oo))}function Zr(oo){return _e=t,Gt&&L?sr(oo):(L=W=t,ye)}function es(){_e!==t&&Sc(_e),xt=0,L=Be=W=_e=t}function fi(){return _e===t?ye:Zr(Qh())}function ts(){var oo=Qh(),ra=yr(oo);if(L=arguments,W=this,Be=oo,ra){if(_e===t)return vr(Be);if(Mt)return Sc(_e),_e=Uf(Ur,d),sr(Be)}return _e===t&&(_e=Uf(Ur,d)),ye}return ts.cancel=es,ts.flush=fi,ts}var FA=Ar(function(s,d){return vu(s,1,d)}),jA=Ar(function(s,d,x){return vu(s,As(d)||0,x)});function zA(s){return ea(s,G)}function ep(s,d){if(typeof s!="function"||d!=null&&typeof d!="function")throw new Zo(a);var x=function(){var L=arguments,W=d?d.apply(this,L):L[0],ee=x.cache;if(ee.has(W))return ee.get(W);var ye=s.apply(this,L);return x.cache=ee.set(W,ye)||ee,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 d=arguments;switch(d.length){case 0:return!s.call(this);case 1:return!s.call(this,d[0]);case 2:return!s.call(this,d[0],d[1]);case 3:return!s.call(this,d[0],d[1],d[2])}return!s.apply(this,d)}}function HA(s){return jy(2,s)}var $A=kd(function(s,d){d=d.length==1&&Rr(d[0])?ln(d[0],Jt(mr())):ln(to(d,1),Jt(mr()));var x=d.length;return Ar(function(L){for(var W=-1,ee=Un(L.length,x);++W<ee;)L[W]=d[W].call(this,L[W]);return bn(s,this,L)})}),em=Ar(function(s,d){var x=Hi(d,Dd(em));return ea(s,F,t,d,x)}),Uy=Ar(function(s,d){var x=Hi(d,Dd(Uy));return ea(s,B,t,d,x)}),qA=Il(function(s,d){return ea(s,j,t,t,t,d)});function UA(s,d){if(typeof s!="function")throw new Zo(a);return d=d===t?d:Dr(d),Ar(s,d)}function WA(s,d){if(typeof s!="function")throw new Zo(a);return d=d==null?0:xn(Dr(d),0),Ar(function(x){var L=x[d],W=ws(x,0,d);return L&&Po(W,L),bn(s,this,W)})}function VA(s,d,x){var L=!0,W=!0;if(typeof s!="function")throw new Zo(a);return Wn(x)&&(L="leading"in x?!!x.leading:L,W="trailing"in x?!!x.trailing:W),qy(s,d,{leading:L,maxWait:d,trailing:W})}function GA(s){return Fy(s,1)}function YA(s,d){return em(Cc(d),s)}function ZA(){if(!arguments.length)return[];var s=arguments[0];return Rr(s)?s:[s]}function KA(s){return yo(s,b)}function XA(s,d){return d=typeof d=="function"?d:t,yo(s,b,d)}function JA(s){return yo(s,m|b)}function QA(s,d){return d=typeof d=="function"?d:t,yo(s,m|b,d)}function eE(s,d){return d==null||mu(s,d,ko(d))}function ta(s,d){return s===d||s!==s&&d!==d}var tE=Ti(Gs),rE=Ti(function(s,d){return s>=d}),Lu=pc(function(){return arguments}())?pc:function(s){return Zn(s)&&Xr.call(s,"callee")&&!tc.call(s,"callee")},Rr=tt.isArray,nE=hn?Jt(hn):Ys;function Ri(s){return s!=null&&rp(s.length)&&!Ll(s)}function no(s){return Zn(s)&&Ri(s)}function oE(s){return s===!0||s===!1||Zn(s)&&Gn(s)==Le}var Ac=nc||dm,iE=go?Jt(go):bd;function sE(s){return Zn(s)&&s.nodeType===1&&!Wf(s)}function aE(s){if(s==null)return!0;if(Ri(s)&&(Rr(s)||typeof s=="string"||typeof s.splice=="function"||Ac(s)||Od(s)||Lu(s)))return!s.length;var d=Xo(s);if(d==Qe||d==We)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 lE(s,d){return Cl(s,d)}function cE(s,d,x){x=typeof x=="function"?x:t;var L=x?x(s,d):t;return L===t?Cl(s,d,t,x):!!L}function tm(s){if(!Zn(s))return!1;var d=Gn(s);return d==Ie||d==Se||typeof s.message=="string"&&typeof s.name=="string"&&!Wf(s)}function uE(s){return typeof s=="number"&&Ma(s)}function Ll(s){if(!Wn(s))return!1;var d=Gn(s);return d==et||d==Je||d==we||d==Ne}function Wy(s){return typeof s=="number"&&s==Dr(s)}function rp(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=ne}function Wn(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}function Zn(s){return s!=null&&typeof s=="object"}var Vy=Eo?Jt(Eo):za;function dE(s,d){return s===d||xu(s,d,Wg(d))}function fE(s,d,x){return x=typeof x=="function"?x:t,xu(s,d,Wg(d),x)}function hE(s){return Gy(s)&&s!=+s}function pE(s){if(XS(s))throw new hr(i);return xd(s)}function gE(s){return s===null}function mE(s){return s==null}function Gy(s){return typeof s=="number"||Zn(s)&&Gn(s)==Ze}function Wf(s){if(!Zn(s)||Gn(s)!=ht)return!1;var d=js(s);if(d===null)return!0;var x=Xr.call(d,"constructor")&&d.constructor;return typeof x=="function"&&x instanceof x&&cs.call(x)==nu}var rm=Jn?Jt(Jn):Zs;function vE(s){return Wy(s)&&s>=-ne&&s<=ne}var Yy=Fi?Jt(Fi):gc;function np(s){return typeof s=="string"||!Rr(s)&&Zn(s)&&Gn(s)==Ve}function Qi(s){return typeof s=="symbol"||Zn(s)&&Gn(s)==at}var Od=ni?Jt(ni):Xi;function yE(s){return s===t}function bE(s){return Zn(s)&&Xo(s)==Oe}function xE(s){return Zn(s)&&Gn(s)==st}var wE=Ti(ai),CE=Ti(function(s,d){return s<=d});function Zy(s){if(!s)return[];if(Ri(s))return np(s)?Sn(s):wo(s);if(ii&&s[ii])return eu(s[ii]());var d=Xo(s),x=d==Qe?tu:d==We?dl:Nd;return x(s)}function Dl(s){if(!s)return s===0?s:0;if(s=As(s),s===re||s===-re){var d=s<0?-1:1;return d*be}return s===s?s:0}function Dr(s){var d=Dl(s),x=d%1;return d===d?x?d-x:d:0}function Ky(s){return s?Ws(Dr(s),0,de):0}function As(s){if(typeof s=="number")return s;if(Qi(s))return ie;if(Wn(s)){var d=typeof s.valueOf=="function"?s.valueOf():s;s=Wn(d)?d+"":d}if(typeof s!="string")return s===0?s:+s;s=Ot(s);var x=$t.test(s);return x||he.test(s)?Qt(s.slice(2),x?2:8):Tt.test(s)?ie:+s}function Xy(s){return Ko(s,ki(s))}function SE(s){return s?Ws(Dr(s),-ne,ne):s===0?s:0}function gn(s){return s==null?"":bo(s)}var _E=qa(function(s,d){if(qf(d)||Ri(d)){Ko(d,ko(d),s);return}for(var x in d)Xr.call(d,x)&&vo(s,x,d[x])}),Jy=qa(function(s,d){Ko(d,ki(d),s)}),op=qa(function(s,d,x,L){Ko(d,ki(d),s,L)}),AE=qa(function(s,d,x,L){Ko(d,ko(d),s,L)}),EE=Il(pu);function TE(s,d){var x=Yi(s);return d==null?x:gd(x,d)}var RE=Ar(function(s,d){s=Qr(s);var x=-1,L=d.length,W=L>2?d[2]:t;for(W&&di(d[0],d[1],W)&&(L=1);++x<L;)for(var ee=d[x],ye=ki(ee),_e=-1,Be=ye.length;++_e<Be;){var xt=ye[_e],Ct=s[xt];(Ct===t||ta(Ct,ls[xt])&&!Xr.call(s,xt))&&(s[xt]=ee[xt])}return s}),kE=Ar(function(s){return s.push(t,gy),bn(Qy,t,s)});function IE(s,d){return Ps(s,mr(d,3),qo)}function ME(s,d){return Ps(s,mr(d,3),uc)}function LE(s,d){return s==null?s:bu(s,mr(d,3),ki)}function DE(s,d){return s==null?s:yd(s,mr(d,3),ki)}function OE(s,d){return s&&qo(s,mr(d,3))}function NE(s,d){return s&&uc(s,mr(d,3))}function PE(s){return s==null?[]:Pa(s,ko(s))}function BE(s){return s==null?[]:Pa(s,ki(s))}function nm(s,d,x){var L=s==null?t:ys(s,d);return L===t?x:L}function FE(s,d){return s!=null&&yy(s,d,dc)}function om(s,d){return s!=null&&yy(s,d,Ba)}var jE=vt(function(s,d,x){d!=null&&typeof d.toString!="function"&&(d=qi.call(d)),s[d]=x},sm(Ii)),zE=vt(function(s,d,x){d!=null&&typeof d.toString!="function"&&(d=qi.call(d)),Xr.call(s,d)?s[d].push(x):s[d]=[x]},mr),HE=Ar(Ai);function ko(s){return Ri(s)?xl(s):Ji(s)}function ki(s){return Ri(s)?xl(s,!0):Sl(s)}function $E(s,d){var x={};return d=mr(d,3),qo(s,function(L,W,ee){$o(x,d(L,W,ee),L)}),x}function qE(s,d){var x={};return d=mr(d,3),qo(s,function(L,W,ee){$o(x,W,d(L,W,ee))}),x}var UE=qa(function(s,d,x){bs(s,d,x)}),Qy=qa(function(s,d,x,L){bs(s,d,x,L)}),WE=Il(function(s,d){var x={};if(s==null)return x;var L=!1;d=ln(d,function(ee){return ee=Uo(ee,s),L||(L=ee.length>1),ee}),Ko(s,qg(s),x),L&&(x=yo(x,m|g|b,jS));for(var W=d.length;W--;)xo(x,d[W]);return x});function VE(s,d){return e0(s,tp(mr(d)))}var GE=Il(function(s,d){return s==null?{}:Al(s,d)});function e0(s,d){if(s==null)return{};var x=ln(qg(s),function(L){return[L]});return d=mr(d),$a(s,x,function(L,W){return d(L,W[0])})}function YE(s,d,x){d=Uo(d,s);var L=-1,W=d.length;for(W||(W=1,s=t);++L<W;){var ee=s==null?t:s[Wa(d[L])];ee===t&&(L=W,ee=x),s=Ll(ee)?ee.call(s):ee}return s}function ZE(s,d,x){return s==null?s:Xs(s,d,x)}function KE(s,d,x,L){return L=typeof L=="function"?L:t,s==null?s:Xs(s,d,x,L)}var t0=Ld(ko),r0=Ld(ki);function XE(s,d,x){var L=Rr(s),W=L||Ac(s)||Od(s);if(d=mr(d,4),x==null){var ee=s&&s.constructor;W?x=L?new ee:[]:Wn(s)?x=Ll(ee)?Yi(js(s)):{}:x={}}return(W?Qn:qo)(s,function(ye,_e,Be){return d(x,ye,_e,Be)}),x}function JE(s,d){return s==null?!0:xo(s,d)}function QE(s,d,x){return s==null?s:Ed(s,d,Cc(x))}function e3(s,d,x,L){return L=typeof L=="function"?L:t,s==null?s:Ed(s,d,Cc(x),L)}function Nd(s){return s==null?[]:Sr(s,ko(s))}function t3(s){return s==null?[]:Sr(s,ki(s))}function r3(s,d,x){return x===t&&(x=d,d=t),x!==t&&(x=As(x),x=x===x?x:0),d!==t&&(d=As(d),d=d===d?d:0),Ws(As(s),d,x)}function n3(s,d,x){return d=Dl(d),x===t?(x=d,d=0):x=Dl(x),s=As(s),fc(s,d,x)}function o3(s,d,x){if(x&&typeof x!="boolean"&&di(s,d,x)&&(d=x=t),x===t&&(typeof d=="boolean"?(x=d,d=t):typeof s=="boolean"&&(x=s,s=t)),s===t&&d===t?(s=0,d=1):(s=Dl(s),d===t?(d=s,s=0):d=Dl(d)),s>d){var L=s;s=d,d=L}if(x||s%1||d%1){var W=fs();return Un(s+W*(d-s+ir("1e-"+((W+"").length-1))),d)}return Ks(s,d)}var i3=E(function(s,d,x){return d=d.toLowerCase(),s+(x?n0(d):d)});function n0(s){return im(gn(s).toLowerCase())}function o0(s){return s=gn(s),s&&s.replace(wt,Fo).replace(bi,"")}function s3(s,d,x){s=gn(s),d=bo(d);var L=s.length;x=x===t?L:Ws(Dr(x),0,L);var W=x;return x-=d.length,x>=0&&s.slice(x,W)==d}function a3(s){return s=gn(s),s&&Ue.test(s)?s.replace(Dt,Sa):s}function l3(s){return s=gn(s),s&&tr.test(s)?s.replace(jt,"\\$&"):s}var c3=E(function(s,d,x){return s+(x?"-":"")+d.toLowerCase()}),u3=E(function(s,d,x){return s+(x?" ":"")+d.toLowerCase()}),d3=v("toLowerCase");function f3(s,d,x){s=gn(s),d=Dr(d);var L=d?Aa(s):0;if(!d||L>=d)return s;var W=(d-L)/2;return dr(zs(W),x)+s+dr(ka(W),x)}function h3(s,d,x){s=gn(s),d=Dr(d);var L=d?Aa(s):0;return d&&L<d?s+dr(d-L,x):s}function p3(s,d,x){s=gn(s),d=Dr(d);var L=d?Aa(s):0;return d&&L<d?dr(d-L,x)+s:s}function g3(s,d,x){return x||d==null?d=0:d&&(d=+d),su(gn(s).replace(Ut,""),d||0)}function m3(s,d,x){return(x?di(s,d,x):d===t)?d=1:d=Dr(d),yc(gn(s),d)}function v3(){var s=arguments,d=gn(s[0]);return s.length<3?d:d.replace(s[1],s[2])}var y3=E(function(s,d,x){return s+(x?"_":"")+d.toLowerCase()});function b3(s,d,x){return x&&typeof x!="number"&&di(s,d,x)&&(d=x=t),x=x===t?de:x>>>0,x?(s=gn(s),s&&(typeof d=="string"||d!=null&&!rm(d))&&(d=bo(d),!d&&_a(s))?ws(Sn(s),0,x):s.split(d,x)):[]}var x3=E(function(s,d,x){return s+(x?" ":"")+im(d)});function w3(s,d,x){return s=gn(s),x=x==null?0:Ws(Dr(x),0,s.length),d=bo(d),s.slice(x,x+d.length)==d}function C3(s,d,x){var L=Z.templateSettings;x&&di(s,d,x)&&(d=t),s=gn(s),d=op({},d,L,py);var W=op({},d.imports,L.imports,py),ee=ko(W),ye=Sr(W,ee),_e,Be,xt=0,Ct=d.interpolate||fr,Mt="__p += '",Gt=Ea((d.escape||fr).source+"|"+Ct.source+"|"+(Ct===Et?Ee:fr).source+"|"+(d.evaluate||fr).source+"|$","g"),sr="//# sourceURL="+(Xr.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zr+"]")+`
|
|
40
|
+
`)}function YS(s){return Rr(s)||Lu(s)||!!(rc&&s&&s[rc])}function Ml(s,d){var x=typeof s;return d=d??ne,!!d&&(x=="number"||x!="symbol"&&ct.test(s))&&s>-1&&s%1==0&&s<d}function di(s,d,x){if(!Wn(x))return!1;var L=typeof d;return(L=="number"?Ri(x)&&Ml(d,x.length):L=="string"&&d in x)?ta(x[d],s):!1}function Gg(s,d){if(Rr(s))return!1;var x=typeof s;return x=="number"||x=="symbol"||x=="boolean"||s==null||Qi(s)?!0:rt.test(s)||!Nt.test(s)||d!=null&&s in Qr(d)}function ZS(s){var d=typeof s;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?s!=="__proto__":s===null}function Yg(s){var d=Yh(s),x=Z[d];if(typeof x!="function"||!(d in Tr.prototype))return!1;if(s===x)return!0;var L=Ug(x);return!!L&&s===L[0]}function KS(s){return!!pn&&pn in s}var XS=cn?Ll:dm;function qf(s){var d=s&&s.constructor,x=typeof d=="function"&&d.prototype||ls;return s===x}function xy(s){return s===s&&!Wn(s)}function wy(s,d){return function(x){return x==null?!1:x[s]===d&&(d!==t||s in Qr(x))}}function JS(s){var d=ep(s,function(L){return x.size===f&&x.clear(),L}),x=d.cache;return d}function QS(s,d){var x=s[1],L=d[1],W=x|L,ee=W<(A|_|z),ye=L==z&&x==D||L==z&&x==j&&s[7].length<=d[8]||L==(z|j)&&d[7].length<=d[8]&&x==D;if(!(ee||ye))return s;L&A&&(s[2]=d[2],W|=x&A?0:R);var _e=d[3];if(_e){var Be=s[3];s[3]=Be?ku(Be,_e,d[4]):_e,s[4]=Be?Hi(s[3],p):d[4]}return _e=d[5],_e&&(Be=s[5],s[5]=Be?Id(Be,_e,d[6]):_e,s[6]=Be?Hi(s[5],p):d[6]),_e=d[7],_e&&(s[7]=_e),L&z&&(s[8]=s[8]==null?d[8]:Un(s[8],d[8])),s[9]==null&&(s[9]=d[9]),s[0]=d[0],s[1]=W,s}function e_(s){var d=[];if(s!=null)for(var x in Qr(s))d.push(x);return d}function t_(s){return qi.call(s)}function Cy(s,d,x){return d=xn(d===t?s.length-1:d,0),function(){for(var L=arguments,W=-1,ee=xn(L.length-d,0),ye=tt(ee);++W<ee;)ye[W]=L[d+W];W=-1;for(var _e=tt(d+1);++W<d;)_e[W]=L[W];return _e[d]=x(ye),bn(s,this,_e)}}function Sy(s,d){return d.length<2?s:ys(s,Ro(d,0,-1))}function r_(s,d){for(var x=s.length,L=Un(d.length,x),W=wo(s);L--;){var ee=d[L];s[L]=Ml(ee,x)?W[ee]:t}return s}function Zg(s,d){if(!(d==="constructor"&&typeof s[d]=="function")&&d!="__proto__")return s[d]}var _y=Ey(bc),Uf=cd||function(s,d){return Cr.setTimeout(s,d)},Kg=Ey(Cd);function Ay(s,d,x){var L=d+"";return Kg(s,GS(L,n_(US(L),x)))}function Ey(s){var d=0,x=0;return function(){var L=ds(),W=V-(L-x);if(x=L,W>0){if(++d>=U)return arguments[0]}else d=0;return s.apply(t,arguments)}}function Kh(s,d){var x=-1,L=s.length,W=L-1;for(d=d===t?L:d;++x<d;){var ee=Ks(x,W),ye=s[ee];s[ee]=s[x],s[x]=ye}return s.length=d,s}var Ty=JS(function(s){var d=[];return s.charCodeAt(0)===46&&d.push(""),s.replace(St,function(x,L,W,ee){d.push(W?ee.replace(je,"$1"):L||x)}),d});function Wa(s){if(typeof s=="string"||Qi(s))return s;var d=s+"";return d=="0"&&1/s==-re?"-0":d}function Mu(s){if(s!=null){try{return cs.call(s)}catch{}try{return s+""}catch{}}return""}function n_(s,d){return Qn(Oe,function(x){var L="_."+x[0];d&x[1]&&!ji(s,L)&&s.push(L)}),s.sort()}function Ry(s){if(s instanceof Tr)return s.clone();var d=new uo(s.__wrapped__,s.__chain__);return d.__actions__=wo(s.__actions__),d.__index__=s.__index__,d.__values__=s.__values__,d}function o_(s,d,x){(x?di(s,d,x):d===t)?d=1:d=xn(Dr(d),0);var L=s==null?0:s.length;if(!L||d<1)return[];for(var W=0,ee=0,ye=tt(ka(L/d));W<L;)ye[ee++]=Ro(s,W,W+=d);return ye}function i_(s){for(var d=-1,x=s==null?0:s.length,L=0,W=[];++d<x;){var ee=s[d];ee&&(W[L++]=ee)}return W}function s_(){var s=arguments.length;if(!s)return[];for(var d=tt(s-1),x=arguments[0],L=s;L--;)d[L-1]=arguments[L];return Po(Rr(x)?wo(x):[x],to(d,1))}var a_=Ar(function(s,d){return no(s)?Vs(s,to(d,1,no,!0)):[]}),l_=Ar(function(s,d){var x=_s(d);return no(x)&&(x=t),no(s)?Vs(s,to(d,1,no,!0),mr(x,2)):[]}),c_=Ar(function(s,d){var x=_s(d);return no(x)&&(x=t),no(s)?Vs(s,to(d,1,no,!0),t,x):[]});function u_(s,d,x){var L=s==null?0:s.length;return L?(d=x||d===t?1:Dr(d),Ro(s,d<0?0:d,L)):[]}function d_(s,d,x){var L=s==null?0:s.length;return L?(d=x||d===t?1:Dr(d),d=L-d,Ro(s,0,d<0?0:d)):[]}function f_(s,d){return s&&s.length?Js(s,mr(d,3),!0,!0):[]}function h_(s,d){return s&&s.length?Js(s,mr(d,3),!0):[]}function p_(s,d,x,L){var W=s==null?0:s.length;return W?(x&&typeof x!="number"&&di(s,d,x)&&(x=0,L=W),zf(s,d,x,L)):[]}function ky(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Dr(x);return W<0&&(W=xn(L+W,0)),Bs(s,mr(d,3),W)}function Iy(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=L-1;return x!==t&&(W=Dr(x),W=x<0?xn(L+W,0):Un(W,L-1)),Bs(s,mr(d,3),W,!0)}function My(s){var d=s==null?0:s.length;return d?to(s,1):[]}function g_(s){var d=s==null?0:s.length;return d?to(s,re):[]}function m_(s,d){var x=s==null?0:s.length;return x?(d=d===t?1:Dr(d),to(s,d)):[]}function v_(s){for(var d=-1,x=s==null?0:s.length,L={};++d<x;){var W=s[d];L[W[0]]=W[1]}return L}function Ly(s){return s&&s.length?s[0]:t}function y_(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=x==null?0:Dr(x);return W<0&&(W=xn(L+W,0)),zi(s,d,W)}function b_(s){var d=s==null?0:s.length;return d?Ro(s,0,-1):[]}var x_=Ar(function(s){var d=ln(s,wc);return d.length&&d[0]===s[0]?Fa(d):[]}),w_=Ar(function(s){var d=_s(s),x=ln(s,wc);return d===_s(x)?d=t:x.pop(),x.length&&x[0]===s[0]?Fa(x,mr(d,2)):[]}),C_=Ar(function(s){var d=_s(s),x=ln(s,wc);return d=typeof d=="function"?d:t,d&&x.pop(),x.length&&x[0]===s[0]?Fa(x,t,d):[]});function S_(s,d){return s==null?"":gl.call(s,d)}function _s(s){var d=s==null?0:s.length;return d?s[d-1]:t}function __(s,d,x){var L=s==null?0:s.length;if(!L)return-1;var W=L;return x!==t&&(W=Dr(x),W=W<0?xn(L+W,0):Un(W,L-1)),d===d?kf(s,d,W):Bs(s,Ca,W,!0)}function A_(s,d){return s&&s.length?Ha(s,Dr(d)):t}var E_=Ar(Dy);function Dy(s,d){return s&&s.length&&d&&d.length?wu(s,d):s}function T_(s,d,x){return s&&s.length&&d&&d.length?wu(s,d,mr(x,2)):s}function R_(s,d,x){return s&&s.length&&d&&d.length?wu(s,d,t,x):s}var k_=Il(function(s,d){var x=s==null?0:s.length,L=pu(s,d);return Cu(s,ln(d,function(W){return Ml(W,x)?+W:W}).sort(Ru)),L});function I_(s,d){var x=[];if(!(s&&s.length))return x;var L=-1,W=[],ee=s.length;for(d=mr(d,3);++L<ee;){var ye=s[L];d(ye,L,s)&&(x.push(ye),W.push(L))}return Cu(s,W),x}function Xg(s){return s==null?s:oc.call(s)}function M_(s,d,x){var L=s==null?0:s.length;return L?(x&&typeof x!="number"&&di(s,d,x)?(d=0,x=L):(d=d==null?0:Dr(d),x=x===t?L:Dr(x)),Ro(s,d,x)):[]}function L_(s,d){return xc(s,d)}function D_(s,d,x){return Au(s,d,mr(x,2))}function O_(s,d){var x=s==null?0:s.length;if(x){var L=xc(s,d);if(L<x&&ta(s[L],d))return L}return-1}function N_(s,d){return xc(s,d,!0)}function P_(s,d,x){return Au(s,d,mr(x,2),!0)}function B_(s,d){var x=s==null?0:s.length;if(x){var L=xc(s,d,!0)-1;if(ta(s[L],d))return L}return-1}function F_(s){return s&&s.length?Eu(s):[]}function j_(s,d){return s&&s.length?Eu(s,mr(d,2)):[]}function z_(s){var d=s==null?0:s.length;return d?Ro(s,1,d):[]}function H_(s,d,x){return s&&s.length?(d=x||d===t?1:Dr(d),Ro(s,0,d<0?0:d)):[]}function $_(s,d,x){var L=s==null?0:s.length;return L?(d=x||d===t?1:Dr(d),d=L-d,Ro(s,d<0?0:d,L)):[]}function q_(s,d){return s&&s.length?Js(s,mr(d,3),!1,!0):[]}function U_(s,d){return s&&s.length?Js(s,mr(d,3)):[]}var W_=Ar(function(s){return xs(to(s,1,no,!0))}),V_=Ar(function(s){var d=_s(s);return no(d)&&(d=t),xs(to(s,1,no,!0),mr(d,2))}),G_=Ar(function(s){var d=_s(s);return d=typeof d=="function"?d:t,xs(to(s,1,no,!0),t,d)});function Y_(s){return s&&s.length?xs(s):[]}function Z_(s,d){return s&&s.length?xs(s,mr(d,2)):[]}function K_(s,d){return d=typeof d=="function"?d:t,s&&s.length?xs(s,t,d):[]}function Jg(s){if(!(s&&s.length))return[];var d=0;return s=oi(s,function(x){if(no(x))return d=xn(x.length,d),!0}),He(d,function(x){return ln(s,I(x))})}function Oy(s,d){if(!(s&&s.length))return[];var x=Jg(s);return d==null?x:ln(x,function(L){return bn(d,t,L)})}var X_=Ar(function(s,d){return no(s)?Vs(s,d):[]}),J_=Ar(function(s){return ro(oi(s,no))}),Q_=Ar(function(s){var d=_s(s);return no(d)&&(d=t),ro(oi(s,no),mr(d,2))}),eA=Ar(function(s){var d=_s(s);return d=typeof d=="function"?d:t,ro(oi(s,no),t,d)}),tA=Ar(Jg);function rA(s,d){return Rd(s||[],d||[],vo)}function nA(s,d){return Rd(s||[],d||[],Xs)}var oA=Ar(function(s){var d=s.length,x=d>1?s[d-1]:t;return x=typeof x=="function"?(s.pop(),x):t,Oy(s,x)});function Ny(s){var d=Z(s);return d.__chain__=!0,d}function iA(s,d){return d(s),s}function Xh(s,d){return d(s)}var sA=Il(function(s){var d=s.length,x=d?s[0]:0,L=this.__wrapped__,W=function(ee){return pu(ee,s)};return d>1||this.__actions__.length||!(L instanceof Tr)||!Ml(x)?this.thru(W):(L=L.slice(x,+x+(d?1:0)),L.__actions__.push({func:Xh,args:[W],thisArg:t}),new uo(L,this.__chain__).thru(function(ee){return d&&!ee.length&&ee.push(t),ee}))});function aA(){return Ny(this)}function lA(){return new uo(this.value(),this.__chain__)}function cA(){this.__values__===t&&(this.__values__=Zy(this.value()));var s=this.__index__>=this.__values__.length,d=s?t:this.__values__[this.__index__++];return{done:s,value:d}}function uA(){return this}function dA(s){for(var d,x=this;x instanceof Zi;){var L=Ry(x);L.__index__=0,L.__values__=t,d?W.__wrapped__=L:d=L;var W=L;x=x.__wrapped__}return W.__wrapped__=s,d}function fA(){var s=this.__wrapped__;if(s instanceof Tr){var d=s;return this.__actions__.length&&(d=new Tr(this)),d=d.reverse(),d.__actions__.push({func:Xh,args:[Xg],thisArg:t}),new uo(d,this.__chain__)}return this.thru(Xg)}function hA(){return Td(this.__wrapped__,this.__actions__)}var pA=kl(function(s,d,x){Xr.call(s,x)?++s[x]:$o(s,x,1)});function gA(s,d,x){var L=Rr(s)?ll:md;return x&&di(s,d,x)&&(d=t),L(s,mr(d,3))}function mA(s,d){var x=Rr(s)?oi:vd;return x(s,mr(d,3))}var vA=K(ky),yA=K(Iy);function bA(s,d){return to(Jh(s,d),1)}function xA(s,d){return to(Jh(s,d),re)}function wA(s,d,x){return x=x===t?1:Dr(x),to(Jh(s,d),x)}function Py(s,d){var x=Rr(s)?Qn:vs;return x(s,mr(d,3))}function By(s,d){var x=Rr(s)?Vl:yu;return x(s,mr(d,3))}var CA=kl(function(s,d,x){Xr.call(s,x)?s[x].push(d):$o(s,x,[d])});function SA(s,d,x,L){s=Ri(s)?s:Nd(s),x=x&&!L?Dr(x):0;var W=s.length;return x<0&&(x=xn(W+x,0)),np(s)?x<=W&&s.indexOf(d,x)>-1:!!W&&zi(s,d,x)>-1}var _A=Ar(function(s,d,x){var L=-1,W=typeof d=="function",ee=Ri(s)?tt(s.length):[];return vs(s,function(ye){ee[++L]=W?bn(d,ye,x):Ai(ye,d,x)}),ee}),AA=kl(function(s,d,x){$o(s,x,d)});function Jh(s,d){var x=Rr(s)?ln:li;return x(s,mr(d,3))}function EA(s,d,x,L){return s==null?[]:(Rr(d)||(d=d==null?[]:[d]),x=L?t:x,Rr(x)||(x=x==null?[]:[x]),vc(s,d,x))}var TA=kl(function(s,d,x){s[x?0:1].push(d)},function(){return[[],[]]});function RA(s,d,x){var L=Rr(s)?cl:Y,W=arguments.length<3;return L(s,mr(d,4),x,W,vs)}function kA(s,d,x){var L=Rr(s)?Gl:Y,W=arguments.length<3;return L(s,mr(d,4),x,W,yu)}function IA(s,d){var x=Rr(s)?oi:vd;return x(s,tp(mr(d,3)))}function MA(s){var d=Rr(s)?To:El;return d(s)}function LA(s,d,x){(x?di(s,d,x):d===t)?d=1:d=Dr(d);var L=Rr(s)?Ho:_u;return L(s,d)}function DA(s){var d=Rr(s)?_i:Sd;return d(s)}function OA(s){if(s==null)return 0;if(Ri(s))return np(s)?Aa(s):s.length;var d=Xo(s);return d==Qe||d==We?s.size:Ji(s).length}function NA(s,d,x){var L=Rr(s)?as:_d;return x&&di(s,d,x)&&(d=t),L(s,mr(d,3))}var PA=Ar(function(s,d){if(s==null)return[];var x=d.length;return x>1&&di(s,d[0],d[1])?d=[]:x>2&&di(d[0],d[1],d[2])&&(d=[d[0]]),vc(s,to(d,1),[])}),Qh=pl||function(){return Cr.Date.now()};function BA(s,d){if(typeof d!="function")throw new Zo(a);return s=Dr(s),function(){if(--s<1)return d.apply(this,arguments)}}function Fy(s,d,x){return d=x?t:d,d=s&&d==null?s.length:d,ea(s,z,t,t,t,t,d)}function jy(s,d){var x;if(typeof d!="function")throw new Zo(a);return s=Dr(s),function(){return--s>0&&(x=d.apply(this,arguments)),s<=1&&(d=t),x}}var Qg=Ar(function(s,d,x){var L=A;if(x.length){var W=Hi(x,Dd(Qg));L|=F}return ea(s,L,d,x,W)}),zy=Ar(function(s,d,x){var L=A|_;if(x.length){var W=Hi(x,Dd(zy));L|=F}return ea(d,L,s,x,W)});function Hy(s,d,x){d=x?t:d;var L=ea(s,D,t,t,t,t,t,d);return L.placeholder=Hy.placeholder,L}function $y(s,d,x){d=x?t:d;var L=ea(s,M,t,t,t,t,t,d);return L.placeholder=$y.placeholder,L}function qy(s,d,x){var L,W,ee,ye,_e,Be,xt=0,Ct=!1,Mt=!1,Gt=!0;if(typeof s!="function")throw new Zo(a);d=As(d)||0,Wn(x)&&(Ct=!!x.leading,Mt="maxWait"in x,ee=Mt?xn(As(x.maxWait)||0,d):ee,Gt="trailing"in x?!!x.trailing:Gt);function sr(oo){var ra=L,Ol=W;return L=W=t,xt=oo,ye=s.apply(Ol,ra),ye}function vr(oo){return xt=oo,_e=Uf(Ur,d),Ct?sr(oo):ye}function Br(oo){var ra=oo-Be,Ol=oo-xt,l0=d-ra;return Mt?Un(l0,ee-Ol):l0}function yr(oo){var ra=oo-Be,Ol=oo-xt;return Be===t||ra>=d||ra<0||Mt&&Ol>=ee}function Ur(){var oo=Qh();if(yr(oo))return Zr(oo);_e=Uf(Ur,Br(oo))}function Zr(oo){return _e=t,Gt&&L?sr(oo):(L=W=t,ye)}function es(){_e!==t&&Sc(_e),xt=0,L=Be=W=_e=t}function fi(){return _e===t?ye:Zr(Qh())}function ts(){var oo=Qh(),ra=yr(oo);if(L=arguments,W=this,Be=oo,ra){if(_e===t)return vr(Be);if(Mt)return Sc(_e),_e=Uf(Ur,d),sr(Be)}return _e===t&&(_e=Uf(Ur,d)),ye}return ts.cancel=es,ts.flush=fi,ts}var FA=Ar(function(s,d){return vu(s,1,d)}),jA=Ar(function(s,d,x){return vu(s,As(d)||0,x)});function zA(s){return ea(s,G)}function ep(s,d){if(typeof s!="function"||d!=null&&typeof d!="function")throw new Zo(a);var x=function(){var L=arguments,W=d?d.apply(this,L):L[0],ee=x.cache;if(ee.has(W))return ee.get(W);var ye=s.apply(this,L);return x.cache=ee.set(W,ye)||ee,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 d=arguments;switch(d.length){case 0:return!s.call(this);case 1:return!s.call(this,d[0]);case 2:return!s.call(this,d[0],d[1]);case 3:return!s.call(this,d[0],d[1],d[2])}return!s.apply(this,d)}}function HA(s){return jy(2,s)}var $A=kd(function(s,d){d=d.length==1&&Rr(d[0])?ln(d[0],Jt(mr())):ln(to(d,1),Jt(mr()));var x=d.length;return Ar(function(L){for(var W=-1,ee=Un(L.length,x);++W<ee;)L[W]=d[W].call(this,L[W]);return bn(s,this,L)})}),em=Ar(function(s,d){var x=Hi(d,Dd(em));return ea(s,F,t,d,x)}),Uy=Ar(function(s,d){var x=Hi(d,Dd(Uy));return ea(s,B,t,d,x)}),qA=Il(function(s,d){return ea(s,j,t,t,t,d)});function UA(s,d){if(typeof s!="function")throw new Zo(a);return d=d===t?d:Dr(d),Ar(s,d)}function WA(s,d){if(typeof s!="function")throw new Zo(a);return d=d==null?0:xn(Dr(d),0),Ar(function(x){var L=x[d],W=ws(x,0,d);return L&&Po(W,L),bn(s,this,W)})}function VA(s,d,x){var L=!0,W=!0;if(typeof s!="function")throw new Zo(a);return Wn(x)&&(L="leading"in x?!!x.leading:L,W="trailing"in x?!!x.trailing:W),qy(s,d,{leading:L,maxWait:d,trailing:W})}function GA(s){return Fy(s,1)}function YA(s,d){return em(Cc(d),s)}function ZA(){if(!arguments.length)return[];var s=arguments[0];return Rr(s)?s:[s]}function KA(s){return yo(s,b)}function XA(s,d){return d=typeof d=="function"?d:t,yo(s,b,d)}function JA(s){return yo(s,m|b)}function QA(s,d){return d=typeof d=="function"?d:t,yo(s,m|b,d)}function eE(s,d){return d==null||mu(s,d,ko(d))}function ta(s,d){return s===d||s!==s&&d!==d}var tE=Ti(Gs),rE=Ti(function(s,d){return s>=d}),Lu=pc(function(){return arguments}())?pc:function(s){return Zn(s)&&Xr.call(s,"callee")&&!tc.call(s,"callee")},Rr=tt.isArray,nE=hn?Jt(hn):Ys;function Ri(s){return s!=null&&rp(s.length)&&!Ll(s)}function no(s){return Zn(s)&&Ri(s)}function oE(s){return s===!0||s===!1||Zn(s)&&Gn(s)==Le}var Ac=nc||dm,iE=go?Jt(go):bd;function sE(s){return Zn(s)&&s.nodeType===1&&!Wf(s)}function aE(s){if(s==null)return!0;if(Ri(s)&&(Rr(s)||typeof s=="string"||typeof s.splice=="function"||Ac(s)||Od(s)||Lu(s)))return!s.length;var d=Xo(s);if(d==Qe||d==We)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 lE(s,d){return Cl(s,d)}function cE(s,d,x){x=typeof x=="function"?x:t;var L=x?x(s,d):t;return L===t?Cl(s,d,t,x):!!L}function tm(s){if(!Zn(s))return!1;var d=Gn(s);return d==Ie||d==Se||typeof s.message=="string"&&typeof s.name=="string"&&!Wf(s)}function uE(s){return typeof s=="number"&&Ma(s)}function Ll(s){if(!Wn(s))return!1;var d=Gn(s);return d==et||d==Je||d==we||d==Ne}function Wy(s){return typeof s=="number"&&s==Dr(s)}function rp(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=ne}function Wn(s){var d=typeof s;return s!=null&&(d=="object"||d=="function")}function Zn(s){return s!=null&&typeof s=="object"}var Vy=Eo?Jt(Eo):za;function dE(s,d){return s===d||xu(s,d,Wg(d))}function fE(s,d,x){return x=typeof x=="function"?x:t,xu(s,d,Wg(d),x)}function hE(s){return Gy(s)&&s!=+s}function pE(s){if(XS(s))throw new hr(i);return xd(s)}function gE(s){return s===null}function mE(s){return s==null}function Gy(s){return typeof s=="number"||Zn(s)&&Gn(s)==Ze}function Wf(s){if(!Zn(s)||Gn(s)!=ht)return!1;var d=js(s);if(d===null)return!0;var x=Xr.call(d,"constructor")&&d.constructor;return typeof x=="function"&&x instanceof x&&cs.call(x)==nu}var rm=Jn?Jt(Jn):Zs;function vE(s){return Wy(s)&&s>=-ne&&s<=ne}var Yy=Fi?Jt(Fi):gc;function np(s){return typeof s=="string"||!Rr(s)&&Zn(s)&&Gn(s)==Ve}function Qi(s){return typeof s=="symbol"||Zn(s)&&Gn(s)==lt}var Od=ni?Jt(ni):Xi;function yE(s){return s===t}function bE(s){return Zn(s)&&Xo(s)==De}function xE(s){return Zn(s)&&Gn(s)==at}var wE=Ti(ai),CE=Ti(function(s,d){return s<=d});function Zy(s){if(!s)return[];if(Ri(s))return np(s)?Sn(s):wo(s);if(ii&&s[ii])return eu(s[ii]());var d=Xo(s),x=d==Qe?tu:d==We?dl:Nd;return x(s)}function Dl(s){if(!s)return s===0?s:0;if(s=As(s),s===re||s===-re){var d=s<0?-1:1;return d*be}return s===s?s:0}function Dr(s){var d=Dl(s),x=d%1;return d===d?x?d-x:d:0}function Ky(s){return s?Ws(Dr(s),0,de):0}function As(s){if(typeof s=="number")return s;if(Qi(s))return ie;if(Wn(s)){var d=typeof s.valueOf=="function"?s.valueOf():s;s=Wn(d)?d+"":d}if(typeof s!="string")return s===0?s:+s;s=Ot(s);var x=$t.test(s);return x||he.test(s)?Qt(s.slice(2),x?2:8):Tt.test(s)?ie:+s}function Xy(s){return Ko(s,ki(s))}function SE(s){return s?Ws(Dr(s),-ne,ne):s===0?s:0}function gn(s){return s==null?"":bo(s)}var _E=qa(function(s,d){if(qf(d)||Ri(d)){Ko(d,ko(d),s);return}for(var x in d)Xr.call(d,x)&&vo(s,x,d[x])}),Jy=qa(function(s,d){Ko(d,ki(d),s)}),op=qa(function(s,d,x,L){Ko(d,ki(d),s,L)}),AE=qa(function(s,d,x,L){Ko(d,ko(d),s,L)}),EE=Il(pu);function TE(s,d){var x=Yi(s);return d==null?x:gd(x,d)}var RE=Ar(function(s,d){s=Qr(s);var x=-1,L=d.length,W=L>2?d[2]:t;for(W&&di(d[0],d[1],W)&&(L=1);++x<L;)for(var ee=d[x],ye=ki(ee),_e=-1,Be=ye.length;++_e<Be;){var xt=ye[_e],Ct=s[xt];(Ct===t||ta(Ct,ls[xt])&&!Xr.call(s,xt))&&(s[xt]=ee[xt])}return s}),kE=Ar(function(s){return s.push(t,gy),bn(Qy,t,s)});function IE(s,d){return Ps(s,mr(d,3),qo)}function ME(s,d){return Ps(s,mr(d,3),uc)}function LE(s,d){return s==null?s:bu(s,mr(d,3),ki)}function DE(s,d){return s==null?s:yd(s,mr(d,3),ki)}function OE(s,d){return s&&qo(s,mr(d,3))}function NE(s,d){return s&&uc(s,mr(d,3))}function PE(s){return s==null?[]:Pa(s,ko(s))}function BE(s){return s==null?[]:Pa(s,ki(s))}function nm(s,d,x){var L=s==null?t:ys(s,d);return L===t?x:L}function FE(s,d){return s!=null&&yy(s,d,dc)}function om(s,d){return s!=null&&yy(s,d,Ba)}var jE=vt(function(s,d,x){d!=null&&typeof d.toString!="function"&&(d=qi.call(d)),s[d]=x},sm(Ii)),zE=vt(function(s,d,x){d!=null&&typeof d.toString!="function"&&(d=qi.call(d)),Xr.call(s,d)?s[d].push(x):s[d]=[x]},mr),HE=Ar(Ai);function ko(s){return Ri(s)?xl(s):Ji(s)}function ki(s){return Ri(s)?xl(s,!0):Sl(s)}function $E(s,d){var x={};return d=mr(d,3),qo(s,function(L,W,ee){$o(x,d(L,W,ee),L)}),x}function qE(s,d){var x={};return d=mr(d,3),qo(s,function(L,W,ee){$o(x,W,d(L,W,ee))}),x}var UE=qa(function(s,d,x){bs(s,d,x)}),Qy=qa(function(s,d,x,L){bs(s,d,x,L)}),WE=Il(function(s,d){var x={};if(s==null)return x;var L=!1;d=ln(d,function(ee){return ee=Uo(ee,s),L||(L=ee.length>1),ee}),Ko(s,qg(s),x),L&&(x=yo(x,m|g|b,jS));for(var W=d.length;W--;)xo(x,d[W]);return x});function VE(s,d){return e0(s,tp(mr(d)))}var GE=Il(function(s,d){return s==null?{}:Al(s,d)});function e0(s,d){if(s==null)return{};var x=ln(qg(s),function(L){return[L]});return d=mr(d),$a(s,x,function(L,W){return d(L,W[0])})}function YE(s,d,x){d=Uo(d,s);var L=-1,W=d.length;for(W||(W=1,s=t);++L<W;){var ee=s==null?t:s[Wa(d[L])];ee===t&&(L=W,ee=x),s=Ll(ee)?ee.call(s):ee}return s}function ZE(s,d,x){return s==null?s:Xs(s,d,x)}function KE(s,d,x,L){return L=typeof L=="function"?L:t,s==null?s:Xs(s,d,x,L)}var t0=Ld(ko),r0=Ld(ki);function XE(s,d,x){var L=Rr(s),W=L||Ac(s)||Od(s);if(d=mr(d,4),x==null){var ee=s&&s.constructor;W?x=L?new ee:[]:Wn(s)?x=Ll(ee)?Yi(js(s)):{}:x={}}return(W?Qn:qo)(s,function(ye,_e,Be){return d(x,ye,_e,Be)}),x}function JE(s,d){return s==null?!0:xo(s,d)}function QE(s,d,x){return s==null?s:Ed(s,d,Cc(x))}function e3(s,d,x,L){return L=typeof L=="function"?L:t,s==null?s:Ed(s,d,Cc(x),L)}function Nd(s){return s==null?[]:Sr(s,ko(s))}function t3(s){return s==null?[]:Sr(s,ki(s))}function r3(s,d,x){return x===t&&(x=d,d=t),x!==t&&(x=As(x),x=x===x?x:0),d!==t&&(d=As(d),d=d===d?d:0),Ws(As(s),d,x)}function n3(s,d,x){return d=Dl(d),x===t?(x=d,d=0):x=Dl(x),s=As(s),fc(s,d,x)}function o3(s,d,x){if(x&&typeof x!="boolean"&&di(s,d,x)&&(d=x=t),x===t&&(typeof d=="boolean"?(x=d,d=t):typeof s=="boolean"&&(x=s,s=t)),s===t&&d===t?(s=0,d=1):(s=Dl(s),d===t?(d=s,s=0):d=Dl(d)),s>d){var L=s;s=d,d=L}if(x||s%1||d%1){var W=fs();return Un(s+W*(d-s+ir("1e-"+((W+"").length-1))),d)}return Ks(s,d)}var i3=E(function(s,d,x){return d=d.toLowerCase(),s+(x?n0(d):d)});function n0(s){return im(gn(s).toLowerCase())}function o0(s){return s=gn(s),s&&s.replace(wt,Fo).replace(bi,"")}function s3(s,d,x){s=gn(s),d=bo(d);var L=s.length;x=x===t?L:Ws(Dr(x),0,L);var W=x;return x-=d.length,x>=0&&s.slice(x,W)==d}function a3(s){return s=gn(s),s&&Ue.test(s)?s.replace(Lt,Sa):s}function l3(s){return s=gn(s),s&&tr.test(s)?s.replace(jt,"\\$&"):s}var c3=E(function(s,d,x){return s+(x?"-":"")+d.toLowerCase()}),u3=E(function(s,d,x){return s+(x?" ":"")+d.toLowerCase()}),d3=v("toLowerCase");function f3(s,d,x){s=gn(s),d=Dr(d);var L=d?Aa(s):0;if(!d||L>=d)return s;var W=(d-L)/2;return dr(zs(W),x)+s+dr(ka(W),x)}function h3(s,d,x){s=gn(s),d=Dr(d);var L=d?Aa(s):0;return d&&L<d?s+dr(d-L,x):s}function p3(s,d,x){s=gn(s),d=Dr(d);var L=d?Aa(s):0;return d&&L<d?dr(d-L,x)+s:s}function g3(s,d,x){return x||d==null?d=0:d&&(d=+d),su(gn(s).replace(Ut,""),d||0)}function m3(s,d,x){return(x?di(s,d,x):d===t)?d=1:d=Dr(d),yc(gn(s),d)}function v3(){var s=arguments,d=gn(s[0]);return s.length<3?d:d.replace(s[1],s[2])}var y3=E(function(s,d,x){return s+(x?"_":"")+d.toLowerCase()});function b3(s,d,x){return x&&typeof x!="number"&&di(s,d,x)&&(d=x=t),x=x===t?de:x>>>0,x?(s=gn(s),s&&(typeof d=="string"||d!=null&&!rm(d))&&(d=bo(d),!d&&_a(s))?ws(Sn(s),0,x):s.split(d,x)):[]}var x3=E(function(s,d,x){return s+(x?" ":"")+im(d)});function w3(s,d,x){return s=gn(s),x=x==null?0:Ws(Dr(x),0,s.length),d=bo(d),s.slice(x,x+d.length)==d}function C3(s,d,x){var L=Z.templateSettings;x&&di(s,d,x)&&(d=t),s=gn(s),d=op({},d,L,py);var W=op({},d.imports,L.imports,py),ee=ko(W),ye=Sr(W,ee),_e,Be,xt=0,Ct=d.interpolate||fr,Mt="__p += '",Gt=Ea((d.escape||fr).source+"|"+Ct.source+"|"+(Ct===Et?Ee:fr).source+"|"+(d.evaluate||fr).source+"|$","g"),sr="//# sourceURL="+(Xr.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zr+"]")+`
|
|
41
41
|
`;s.replace(Gt,function(yr,Ur,Zr,es,fi,ts){return Zr||(Zr=es),Mt+=s.slice(xt,ts).replace(Fr,Xl),Ur&&(_e=!0,Mt+=`' +
|
|
42
42
|
__e(`+Ur+`) +
|
|
43
43
|
'`),fi&&(Be=!0,Mt+=`';
|
|
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
68
68
|
`?k.push(`
|
|
69
69
|
`,X):k.push(""+X))}return typeof Fe=="string"&&Fe[0]===`
|
|
70
70
|
`&&k.push(`
|
|
71
|
-
`),Fe;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 Mn in X)if(t.call(X,Mn)&&(Fe=X[Mn],Fe!=null))switch(Mn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,$));default:B(k,le,Mn,Fe)}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,$,le);case"html":return $e.insertionMode===0&&k.push("<!DOCTYPE html>"),G(k,X,$,le);default:if($.indexOf("-")===-1&&typeof X.is!="string")return G(k,X,$,le);k.push(U($)),nt=Fe=null;for(Zt in X)if(t.call(X,Zt)&&(kt=X[Zt],kt!=null))switch(Zt){case"children":Fe=kt;break;case"dangerouslySetInnerHTML":nt=kt;break;case"style":F(k,le,kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(Zt)&&typeof kt!="function"&&typeof kt!="symbol"&&k.push(" ",Zt,'="',w(kt),'"')}return k.push(">"),z(k,nt,Fe),Fe}}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,le){switch(X.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 4:return k.push('<table hidden id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');default:throw Error(e(397))}}function te(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 re=/[<\u2028\u2029]/g;function ne(k){return JSON.stringify(k).replace(re,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 be(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 ie(k,$,X,le){return X.generateStaticMarkup?(k.push(w($)),!1):($===""?k=le:(le&&k.push("<!-- -->"),k.push(w($)),k=!0),k)}var de=Object.assign,me=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),De=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),Le=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Ie=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Qe=Symbol.for("react.scope"),Ze=Symbol.for("react.debug_trace_mode"),Ke=Symbol.for("react.legacy_hidden"),ht=Symbol.for("react.default_value"),Pe=Symbol.iterator;function Ne(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 De:return"Fragment";case Ae:return"Portal";case ge:return"Profiler";case oe:return"StrictMode";case Se:return"Suspense";case Ie:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case Le:return(k.displayName||"Context")+".Consumer";case we:return(k._context.displayName||"Context")+".Provider";case Ce:var $=k.render;return k=k.displayName,k||(k=$.displayName||$.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case et:return $=k.displayName||null,$!==null?$:Ne(k.type)||"Memo";case Je:$=k._payload,k=k._init;try{return Ne(k($))}catch{}}return null}var Xe={};function We(k,$){if(k=k.contextTypes,!k)return Xe;var X={},le;for(le in k)X[le]=$[le];return X}var Ve=null;function at(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));at(k,X)}$.context._currentValue2=$.value}}function lt(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&<(k)}function Oe(k){var $=k.parent;$!==null&&Oe($),k.context._currentValue2=k.value}function st(k,$){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===$.depth?at(k,$):st(k,$)}function mt(k,$){var X=$.parent;if(X===null)throw Error(e(402));k.depth===X.depth?at(k,X):mt(k,X),$.context._currentValue2=$.value}function ut(k){var $=Ve;$!==k&&($===null?Oe(k):k===null?lt($):$.depth===k.depth?at($,k):$.depth>k.depth?st($,k):mt($,k),Ve=k)}var Lt={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 Bt(k,$,X,le){var $e=k.state!==void 0?k.state:null;k.updater=Lt,k.props=X,k.state=$e;var Fe={queue:[],replace:!1};k._reactInternals=Fe;var nt=$.contextType;if(k.context=typeof nt=="object"&&nt!==null?nt._currentValue2:le,nt=$.getDerivedStateFromProps,typeof nt=="function"&&(nt=nt(X,$e),$e=nt==null?$e:de({},$e,nt),k.state=$e),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&&Lt.enqueueReplaceState(k,k.state,null),Fe.queue!==null&&0<Fe.queue.length)if($=Fe.queue,nt=Fe.replace,Fe.queue=null,Fe.replace=!1,nt&&$.length===1)k.state=$[0];else{for(Fe=nt?$[0]:k.state,$e=!0,nt=nt?1:0;nt<$.length;nt++){var kt=$[nt];kt=typeof kt=="function"?kt.call(k,Fe,X,le):kt,kt!=null&&($e?($e=!1,Fe=de({},Fe,kt)):de(Fe,kt))}k.state=Fe}else Fe.queue=null}var Pt={id:1,overflow:""};function Xt(k,$,X){var le=k.id;k=k.overflow;var $e=32-ar(le)-1;le&=~(1<<$e),X+=1;var Fe=32-ar($)+$e;if(30<Fe){var nt=$e-$e%5;return Fe=(le&(1<<nt)-1).toString(32),le>>=nt,$e-=nt,{id:1<<32-ar($)+$e|X<<$e|le,overflow:Fe+k}}return{id:1<<Fe|X<<$e|le,overflow:k}}var ar=Math.clz32?Math.clz32:Te,Kt=Math.log,cr=Math.LN2;function Te(k){return k>>>=0,k===0?32:31-(Kt(k)/cr|0)|0}function ae(k,$){return k===$&&(k!==0||1/k===1/$)||k!==k&&$!==$}var it=typeof Object.is=="function"?Object.is:ae,bt=null,qt=null,Ft=null,Dt=null,Ht=!1,Ue=!1,dt=0,yt=null,Et=0;function Nt(){if(bt===null)throw Error(e(321));return bt}function rt(){if(0<Et)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function St(){return Dt===null?Ft===null?(Ht=!1,Ft=Dt=rt()):(Ht=!0,Dt=Ft):Dt.next===null?(Ht=!1,Dt=Dt.next=rt()):(Ht=!0,Dt=Dt.next),Dt}function jt(){qt=bt=null,Ue=!1,Ft=null,Et=0,Dt=yt=null}function tr(k,$){return typeof $=="function"?$(k):$}function Ut(k,$,X){if(bt=Nt(),Dt=St(),Ht){var le=Dt.queue;if($=le.dispatch,yt!==null&&(X=yt.get(le),X!==void 0)){yt.delete(le),le=Dt.memoizedState;do le=k(le,X.action),X=X.next;while(X!==null);return Dt.memoizedState=le,[le,$]}return[Dt.memoizedState,$]}return k=k===tr?typeof $=="function"?$():$:X!==void 0?X($):$,Dt.memoizedState=k,k=Dt.queue={last:null,dispatch:null},k=k.dispatch=Nr.bind(null,bt,k),[Dt.memoizedState,k]}function br(k,$){if(bt=Nt(),Dt=St(),$=$===void 0?null:$,Dt!==null){var X=Dt.memoizedState;if(X!==null&&$!==null){var le=X[1];e:if(le===null)le=!1;else{for(var $e=0;$e<le.length&&$e<$.length;$e++)if(!it($[$e],le[$e])){le=!1;break e}le=!0}if(le)return X[0]}}return k=k(),Dt.memoizedState=[k,$],k}function Nr(k,$,X){if(25<=Et)throw Error(e(301));if(k===bt)if(Ue=!0,k={action:X,next:null},yt===null&&(yt=new Map),X=yt.get($),X===void 0)yt.set($,k);else{for($=X;$.next!==null;)$=$.next;$.next=k}}function pr(){throw Error(e(394))}function pe(){}var pt={readContext:function(k){return k._currentValue2},useContext:function(k){return Nt(),k._currentValue2},useMemo:br,useReducer:Ut,useRef:function(k){bt=Nt(),Dt=St();var $=Dt.memoizedState;return $===null?(k={current:k},Dt.memoizedState=k):$},useState:function(k){return Ut(tr,k)},useInsertionEffect:pe,useLayoutEffect:function(){},useCallback:function(k,$){return br(function(){return k},$)},useImperativeHandle:pe,useEffect:pe,useDebugValue:pe,useDeferredValue:function(k){return Nt(),k},useTransition:function(){return Nt(),[!1,pr]},useId:function(){var k=qt.treeContext,$=k.overflow;k=k.id,k=(k&~(1<<32-ar(k)-1)).toString(32)+$;var X=It;if(X===null)throw Error(e(404));return $=dt++,k=":"+X.idPrefix+"R"+k,0<$&&(k+="H"+$.toString(32)),k+":"},useMutableSource:function(k,$){return Nt(),$(k._source)},useSyncExternalStore:function(k,$,X){if(X===void 0)throw Error(e(407));return X()}},It=null,je=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ee(k){return console.error(k),null}function qe(){}function Tt(k,$,X,le,$e,Fe,nt,kt,Wt){var Zt=[],Yt=new Set;return $={destination:null,responseState:$,progressiveChunkSize:le===void 0?12800:le,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Yt,pingedTasks:Zt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:$e===void 0?Ee:$e,onAllReady:qe,onShellReady:nt===void 0?qe:nt,onShellError:qe,onFatalError:qe},X=_t($,0,null,X,!1,!1),X.parentFlushed=!0,k=$t($,k,null,X,Yt,Xe,null,Pt),Zt.push(k),$}function $t(k,$,X,le,$e,Fe,nt,kt){k.allPendingTasks++,X===null?k.pendingRootTasks++:X.pendingTasks++;var Wt={node:$,ping:function(){var Zt=k.pingedTasks;Zt.push(Wt),Zt.length===1&&Bn(k)},blockedBoundary:X,blockedSegment:le,abortSet:$e,legacyContext:Fe,context:nt,treeContext:kt};return $e.add(Wt),Wt}function _t(k,$,X,le,$e,Fe){return{status:0,id:-1,index:$,parentFlushed:!1,chunks:[],children:[],formatContext:le,boundary:X,lastPushedText:$e,textEmbedded:Fe}}function he(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 ct(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,le,$e){for(bt={},qt=$,dt=0,k=X(le,$e);Ue;)Ue=!1,dt=0,Et+=1,Dt=null,k=X(le,$e);return jt(),k}function fr(k,$,X,le){var $e=X.render(),Fe=le.childContextTypes;if(Fe!=null){var nt=$.legacyContext;if(typeof X.getChildContext!="function")le=nt;else{X=X.getChildContext();for(var kt in X)if(!(kt in Fe))throw Error(e(108,Ne(le)||"Unknown",kt));le=de({},nt,X)}$.legacyContext=le,xr(k,$,$e),$.legacyContext=nt}else xr(k,$,$e)}function Fr(k,$){if(k&&k.defaultProps){$=de({},$),k=k.defaultProps;for(var X in k)$[X]===void 0&&($[X]=k[X]);return $}return $}function ur(k,$,X,le,$e){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){$e=We(X,$.legacyContext);var Fe=X.contextType;Fe=new X(le,typeof Fe=="object"&&Fe!==null?Fe._currentValue2:$e),Bt(Fe,X,le,$e),fr(k,$,Fe,X)}else{Fe=We(X,$.legacyContext),$e=wt(k,$,X,le,Fe);var nt=dt!==0;if(typeof $e=="object"&&$e!==null&&typeof $e.render=="function"&&$e.$$typeof===void 0)Bt($e,X,le,Fe),fr(k,$,$e,X);else if(nt){le=$.treeContext,$.treeContext=Xt(le,1,0);try{xr(k,$,$e)}finally{$.treeContext=le}}else xr(k,$,$e)}else if(typeof X=="string"){switch($e=$.blockedSegment,Fe=V($e.chunks,X,le,k.responseState,$e.formatContext),$e.lastPushedText=!1,nt=$e.formatContext,$e.formatContext=D(nt,X,le),sn(k,$,Fe),$e.formatContext=nt,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:$e.chunks.push("</",X,">")}$e.lastPushedText=!1}else{switch(X){case Ke:case Ze:case oe:case ge:case De:xr(k,$,le.children);return;case Ie:xr(k,$,le.children);return;case Qe:throw Error(e(343));case Se:e:{X=$.blockedBoundary,$e=$.blockedSegment,Fe=le.fallback,le=le.children,nt=new Set;var kt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:nt,errorDigest:null},Wt=_t(k,$e.chunks.length,kt,$e.formatContext,!1,!1);$e.children.push(Wt),$e.lastPushedText=!1;var Zt=_t(k,0,null,$e.formatContext,!1,!1);Zt.parentFlushed=!0,$.blockedBoundary=kt,$.blockedSegment=Zt;try{if(sn(k,$,le),k.responseState.generateStaticMarkup||Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push("<!-- -->"),Zt.status=1,rn(kt,Zt),kt.pendingTasks===0)break e}catch(Yt){Zt.status=4,kt.forceClientRender=!0,kt.errorDigest=he(k,Yt)}finally{$.blockedBoundary=X,$.blockedSegment=$e}$=$t(k,Fe,X,Wt,nt,$.legacyContext,$.context,$.treeContext),k.pingedTasks.push($)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case Ce:if(le=wt(k,$,X.render,le,$e),dt!==0){X=$.treeContext,$.treeContext=Xt(X,1,0);try{xr(k,$,le)}finally{$.treeContext=X}}else xr(k,$,le);return;case et:X=X.type,le=Fr(X,le),ur(k,$,X,le,$e);return;case we:if($e=le.children,X=X._context,le=le.value,Fe=X._currentValue2,X._currentValue2=le,nt=Ve,Ve=le={parent:nt,depth:nt===null?0:nt.depth+1,context:X,parentValue:Fe,value:le},$.context=le,xr(k,$,$e),k=Ve,k===null)throw Error(e(403));le=k.parentValue,k.context._currentValue2=le===ht?k.context._defaultValue:le,k=Ve=k.parent,$.context=k;return;case Le:le=le.children,le=le(X._currentValue2),xr(k,$,le);return;case Je:$e=X._init,X=$e(X._payload),le=Fr(X,le),ur(k,$,X,le,void 0);return}throw Error(e(130,X==null?X:typeof X,""))}}function xr(k,$,X){if($.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case me:ur(k,$,X.type,X.props,X.ref);return;case Ae:throw Error(e(257));case Je:var le=X._init;X=le(X._payload),xr(k,$,X);return}if(_(X)){tn(k,$,X);return}if(X===null||typeof X!="object"?le=null:(le=Pe&&X[Pe]||X["@@iterator"],le=typeof le=="function"?le:null),le&&(le=le.call(X))){if(X=le.next(),!X.done){var $e=[];do $e.push(X.value),X=le.next();while(!X.done);tn(k,$,$e)}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"?(le=$.blockedSegment,le.lastPushedText=ie($.blockedSegment.chunks,X,k.responseState,le.lastPushedText)):typeof X=="number"&&(le=$.blockedSegment,le.lastPushedText=ie($.blockedSegment.chunks,""+X,k.responseState,le.lastPushedText))}function tn(k,$,X){for(var le=X.length,$e=0;$e<le;$e++){var Fe=$.treeContext;$.treeContext=Xt(Fe,le,$e);try{sn(k,$,X[$e])}finally{$.treeContext=Fe}}}function sn(k,$,X){var le=$.blockedSegment.formatContext,$e=$.legacyContext,Fe=$.context;try{return xr(k,$,X)}catch(Wt){if(jt(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){X=Wt;var nt=$.blockedSegment,kt=_t(k,nt.chunks.length,null,nt.formatContext,nt.lastPushedText,!0);nt.children.push(kt),nt.lastPushedText=!1,k=$t(k,$.node,$.blockedBoundary,kt,$.abortSet,$.legacyContext,$.context,$.treeContext).ping,X.then(k,k),$.blockedSegment.formatContext=le,$.legacyContext=$e,$.context=Fe,ut(Fe)}else throw $.blockedSegment.formatContext=le,$.legacyContext=$e,$.context=Fe,ut(Fe),Wt}}function Pn(k){var $=k.blockedBoundary;k=k.blockedSegment,k.status=3,In(this,$,k)}function Hr(k,$,X){var le=k.blockedBoundary;k.blockedSegment.status=3,le===null?($.allPendingTasks--,$.status!==2&&($.status=2,$.destination!==null&&$.destination.push(null))):(le.pendingTasks--,le.forceClientRender||(le.forceClientRender=!0,k=X===void 0?Error(e(432)):X,le.errorDigest=$.onError(k),le.parentFlushed&&$.clientRenderedBoundaries.push(le)),le.fallbackAbortableTasks.forEach(function($e){return Hr($e,$,X)}),le.fallbackAbortableTasks.clear(),$.allPendingTasks--,$.allPendingTasks===0&&(le=$.onAllReady,le()))}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 In(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=qe,$=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 $=Ve,X=je.current;je.current=pt;var le=It;It=k.responseState;try{var $e=k.pingedTasks,Fe;for(Fe=0;Fe<$e.length;Fe++){var nt=$e[Fe],kt=k,Wt=nt.blockedSegment;if(Wt.status===0){ut(nt.context);try{xr(kt,nt,nt.node),kt.responseState.generateStaticMarkup||Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push("<!-- -->"),nt.abortSet.delete(nt),Wt.status=1,In(kt,nt.blockedBoundary,Wt)}catch(Ln){if(jt(),typeof Ln=="object"&&Ln!==null&&typeof Ln.then=="function"){var Zt=nt.ping;Ln.then(Zt,Zt)}else{nt.abortSet.delete(nt),Wt.status=4;var Yt=nt.blockedBoundary,kr=Ln,an=he(kt,kr);if(Yt===null?ct(kt,kr):(Yt.pendingTasks--,Yt.forceClientRender||(Yt.forceClientRender=!0,Yt.errorDigest=an,Yt.parentFlushed&&kt.clientRenderedBoundaries.push(Yt))),kt.allPendingTasks--,kt.allPendingTasks===0){var Mn=kt.onAllReady;Mn()}}}finally{}}}$e.splice(0,Fe),k.destination!==null&&Cn(k,k.destination)}catch(Ln){he(k,Ln),ct(k,Ln)}finally{It=le,je.current=X,X===pt&&ut($)}}}function _o(k,$,X){switch(X.parentFlushed=!0,X.status){case 0:var le=X.id=k.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,k=k.responseState,$.push('<template id="'),$.push(k.placeholderPrefix),k=le.toString(16),$.push(k),$.push('"></template>');case 1:X.status=2;var $e=!0;le=X.chunks;var Fe=0;X=X.children;for(var nt=0;nt<X.length;nt++){for($e=X[nt];Fe<$e.index;Fe++)$.push(le[Fe]);$e=Do(k,$,$e)}for(;Fe<le.length-1;Fe++)$.push(le[Fe]);return Fe<le.length&&($e=$.push(le[Fe])),$e;default:throw Error(e(390))}}function Do(k,$,X){var le=X.boundary;if(le===null)return _o(k,$,X);if(le.parentFlushed=!0,le.forceClientRender)return k.responseState.generateStaticMarkup||(le=le.errorDigest,$.push("<!--$!-->"),$.push("<template"),le&&($.push(' data-dgst="'),le=w(le),$.push(le),$.push('"')),$.push("></template>")),_o(k,$,X),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k;if(0<le.pendingTasks){le.rootSegmentID=k.nextSegmentId++,0<le.completedSegments.length&&k.partialBoundaries.push(le);var $e=k.responseState,Fe=$e.nextSuspenseID++;return $e=$e.boundaryPrefix+Fe.toString(16),le=le.id=$e,Q($,k.responseState,le),_o(k,$,X),$.push("<!--/$-->")}if(le.byteSize>k.progressiveChunkSize)return le.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(le),Q($,k.responseState,le.id),_o(k,$,X),$.push("<!--/$-->");if(k.responseState.generateStaticMarkup||$.push("<!--$-->"),X=le.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),te($,X.formatContext)}function Hn(k,$,X){for(var le=X.completedSegments,$e=0;$e<le.length;$e++)Fn(k,$,X,le[$e]);if(le.length=0,k=k.responseState,le=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("')),le===null)throw Error(e(395));return X=X.toString(16),$.push(le),$.push('","'),$.push(k.segmentPrefix),$.push(X),$.push('")<\/script>')}function Fn(k,$,X,le){if(le.status===2)return!0;var $e=le.id;if($e===-1){if((le.id=X.rootSegmentID)===-1)throw Error(e(392));return Oo(k,$,le)}return Oo(k,$,le),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),$e=$e.toString(16),$.push($e),$.push('","'),$.push(k.placeholderPrefix),$.push($e),$.push('")<\/script>')}function Cn(k,$){try{var X=k.completedRootSegment;if(X!==null&&k.pendingRootTasks===0){Do(k,$,X),k.completedRootSegment=null;var le=k.responseState.bootstrapChunks;for(X=0;X<le.length-1;X++)$.push(le[X]);X<le.length&&$.push(le[X])}var $e=k.clientRenderedBoundaries,Fe;for(Fe=0;Fe<$e.length;Fe++){var nt=$e[Fe];le=$;var kt=k.responseState,Wt=nt.id,Zt=nt.errorDigest,Yt=nt.errorMessage,kr=nt.errorComponentStack;if(le.push(kt.startInlineScript),kt.sentClientRenderFunction?le.push('$RX("'):(kt.sentClientRenderFunction=!0,le.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("')),Wt===null)throw Error(e(395));if(le.push(Wt),le.push('"'),Zt||Yt||kr){le.push(",");var an=ne(Zt||"");le.push(an)}if(Yt||kr){le.push(",");var Mn=ne(Yt||"");le.push(Mn)}if(kr){le.push(",");var Ln=ne(kr);le.push(Ln)}if(!le.push(")<\/script>")){k.destination=null,Fe++,$e.splice(0,Fe);return}}$e.splice(0,Fe);var po=k.completedBoundaries;for(Fe=0;Fe<po.length;Fe++)if(!Hn(k,$,po[Fe])){k.destination=null,Fe++,po.splice(0,Fe);return}po.splice(0,Fe);var Kn=k.partialBoundaries;for(Fe=0;Fe<Kn.length;Fe++){var No=Kn[Fe];e:{$e=k,nt=$;var dn=No.completedSegments;for(kt=0;kt<dn.length;kt++)if(!Fn($e,nt,No,dn[kt])){kt++,dn.splice(0,kt);var Ao=!1;break e}dn.splice(0,kt),Ao=!0}if(!Ao){k.destination=null,Fe++,Kn.splice(0,Fe);return}}Kn.splice(0,Fe);var Xn=k.completedBoundaries;for(Fe=0;Fe<Xn.length;Fe++)if(!Hn(k,$,Xn[Fe])){k.destination=null,Fe++,Xn.splice(0,Fe);return}Xn.splice(0,Fe)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&$.push(null)}}function io(k,$){try{var X=k.abortableTasks;X.forEach(function(le){return Hr(le,k,$)}),X.clear(),k.destination!==null&&Cn(k,k.destination)}catch(le){he(k,le),ct(k,le)}}function yn(){}function En(k,$,X,le){var $e=!1,Fe=null,nt="",kt={push:function(Zt){return Zt!==null&&(nt+=Zt),!0},destroy:function(Zt){$e=!0,Fe=Zt}},Wt=!1;if(k=Tt(k,be(X,$?$.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,yn,void 0,function(){Wt=!0}),Bn(k),io(k,le),k.status===1)k.status=2,kt.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=kt;try{Cn(k,kt)}catch(Zt){he(k,Zt),ct(k,Zt)}}if($e)throw Fe;if(!Wt)throw Error(e(426));return nt}return Ou.renderToNodeStream=function(){throw Error(e(207))},Ou.renderToStaticMarkup=function(k,$){return En(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')},Ou.renderToStaticNodeStream=function(){throw Error(e(208))},Ou.renderToString=function(k,$){return En(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')},Ou.version="18.3.1",Ou}var sp={};/**
|
|
71
|
+
`),Fe;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 Mn in X)if(t.call(X,Mn)&&(Fe=X[Mn],Fe!=null))switch(Mn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,$));default:B(k,le,Mn,Fe)}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,$,le);case"html":return $e.insertionMode===0&&k.push("<!DOCTYPE html>"),G(k,X,$,le);default:if($.indexOf("-")===-1&&typeof X.is!="string")return G(k,X,$,le);k.push(U($)),nt=Fe=null;for(Zt in X)if(t.call(X,Zt)&&(kt=X[Zt],kt!=null))switch(Zt){case"children":Fe=kt;break;case"dangerouslySetInnerHTML":nt=kt;break;case"style":F(k,le,kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(Zt)&&typeof kt!="function"&&typeof kt!="symbol"&&k.push(" ",Zt,'="',w(kt),'"')}return k.push(">"),z(k,nt,Fe),Fe}}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,le){switch(X.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 4:return k.push('<table hidden id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push($.segmentPrefix),$=le.toString(16),k.push($),k.push('">');default:throw Error(e(397))}}function te(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 re=/[<\u2028\u2029]/g;function ne(k){return JSON.stringify(k).replace(re,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 be(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 ie(k,$,X,le){return X.generateStaticMarkup?(k.push(w($)),!1):($===""?k=le:(le&&k.push("<!-- -->"),k.push(w($)),k=!0),k)}var de=Object.assign,me=Symbol.for("react.element"),Ae=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ge=Symbol.for("react.profiler"),we=Symbol.for("react.provider"),Le=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Ie=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Qe=Symbol.for("react.scope"),Ze=Symbol.for("react.debug_trace_mode"),Ke=Symbol.for("react.legacy_hidden"),ht=Symbol.for("react.default_value"),Pe=Symbol.iterator;function Ne(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 Oe:return"Fragment";case Ae:return"Portal";case ge:return"Profiler";case oe:return"StrictMode";case Se:return"Suspense";case Ie:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case Le:return(k.displayName||"Context")+".Consumer";case we:return(k._context.displayName||"Context")+".Provider";case Ce:var $=k.render;return k=k.displayName,k||(k=$.displayName||$.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case et:return $=k.displayName||null,$!==null?$:Ne(k.type)||"Memo";case Je:$=k._payload,k=k._init;try{return Ne(k($))}catch{}}return null}var Xe={};function We(k,$){if(k=k.contextTypes,!k)return Xe;var X={},le;for(le in k)X[le]=$[le];return X}var Ve=null;function lt(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));lt(k,X)}$.context._currentValue2=$.value}}function st(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&st(k)}function De(k){var $=k.parent;$!==null&&De($),k.context._currentValue2=k.value}function at(k,$){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===$.depth?lt(k,$):at(k,$)}function mt(k,$){var X=$.parent;if(X===null)throw Error(e(402));k.depth===X.depth?lt(k,X):mt(k,X),$.context._currentValue2=$.value}function ut(k){var $=Ve;$!==k&&($===null?De(k):k===null?st($):$.depth===k.depth?lt($,k):$.depth>k.depth?at($,k):mt($,k),Ve=k)}var Dt={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 Bt(k,$,X,le){var $e=k.state!==void 0?k.state:null;k.updater=Dt,k.props=X,k.state=$e;var Fe={queue:[],replace:!1};k._reactInternals=Fe;var nt=$.contextType;if(k.context=typeof nt=="object"&&nt!==null?nt._currentValue2:le,nt=$.getDerivedStateFromProps,typeof nt=="function"&&(nt=nt(X,$e),$e=nt==null?$e:de({},$e,nt),k.state=$e),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&&Dt.enqueueReplaceState(k,k.state,null),Fe.queue!==null&&0<Fe.queue.length)if($=Fe.queue,nt=Fe.replace,Fe.queue=null,Fe.replace=!1,nt&&$.length===1)k.state=$[0];else{for(Fe=nt?$[0]:k.state,$e=!0,nt=nt?1:0;nt<$.length;nt++){var kt=$[nt];kt=typeof kt=="function"?kt.call(k,Fe,X,le):kt,kt!=null&&($e?($e=!1,Fe=de({},Fe,kt)):de(Fe,kt))}k.state=Fe}else Fe.queue=null}var Pt={id:1,overflow:""};function Xt(k,$,X){var le=k.id;k=k.overflow;var $e=32-ar(le)-1;le&=~(1<<$e),X+=1;var Fe=32-ar($)+$e;if(30<Fe){var nt=$e-$e%5;return Fe=(le&(1<<nt)-1).toString(32),le>>=nt,$e-=nt,{id:1<<32-ar($)+$e|X<<$e|le,overflow:Fe+k}}return{id:1<<Fe|X<<$e|le,overflow:k}}var ar=Math.clz32?Math.clz32:Te,Kt=Math.log,cr=Math.LN2;function Te(k){return k>>>=0,k===0?32:31-(Kt(k)/cr|0)|0}function ae(k,$){return k===$&&(k!==0||1/k===1/$)||k!==k&&$!==$}var it=typeof Object.is=="function"?Object.is:ae,bt=null,qt=null,Ft=null,Lt=null,Ht=!1,Ue=!1,dt=0,yt=null,Et=0;function Nt(){if(bt===null)throw Error(e(321));return bt}function rt(){if(0<Et)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function St(){return Lt===null?Ft===null?(Ht=!1,Ft=Lt=rt()):(Ht=!0,Lt=Ft):Lt.next===null?(Ht=!1,Lt=Lt.next=rt()):(Ht=!0,Lt=Lt.next),Lt}function jt(){qt=bt=null,Ue=!1,Ft=null,Et=0,Lt=yt=null}function tr(k,$){return typeof $=="function"?$(k):$}function Ut(k,$,X){if(bt=Nt(),Lt=St(),Ht){var le=Lt.queue;if($=le.dispatch,yt!==null&&(X=yt.get(le),X!==void 0)){yt.delete(le),le=Lt.memoizedState;do le=k(le,X.action),X=X.next;while(X!==null);return Lt.memoizedState=le,[le,$]}return[Lt.memoizedState,$]}return k=k===tr?typeof $=="function"?$():$:X!==void 0?X($):$,Lt.memoizedState=k,k=Lt.queue={last:null,dispatch:null},k=k.dispatch=Nr.bind(null,bt,k),[Lt.memoizedState,k]}function br(k,$){if(bt=Nt(),Lt=St(),$=$===void 0?null:$,Lt!==null){var X=Lt.memoizedState;if(X!==null&&$!==null){var le=X[1];e:if(le===null)le=!1;else{for(var $e=0;$e<le.length&&$e<$.length;$e++)if(!it($[$e],le[$e])){le=!1;break e}le=!0}if(le)return X[0]}}return k=k(),Lt.memoizedState=[k,$],k}function Nr(k,$,X){if(25<=Et)throw Error(e(301));if(k===bt)if(Ue=!0,k={action:X,next:null},yt===null&&(yt=new Map),X=yt.get($),X===void 0)yt.set($,k);else{for($=X;$.next!==null;)$=$.next;$.next=k}}function pr(){throw Error(e(394))}function pe(){}var pt={readContext:function(k){return k._currentValue2},useContext:function(k){return Nt(),k._currentValue2},useMemo:br,useReducer:Ut,useRef:function(k){bt=Nt(),Lt=St();var $=Lt.memoizedState;return $===null?(k={current:k},Lt.memoizedState=k):$},useState:function(k){return Ut(tr,k)},useInsertionEffect:pe,useLayoutEffect:function(){},useCallback:function(k,$){return br(function(){return k},$)},useImperativeHandle:pe,useEffect:pe,useDebugValue:pe,useDeferredValue:function(k){return Nt(),k},useTransition:function(){return Nt(),[!1,pr]},useId:function(){var k=qt.treeContext,$=k.overflow;k=k.id,k=(k&~(1<<32-ar(k)-1)).toString(32)+$;var X=It;if(X===null)throw Error(e(404));return $=dt++,k=":"+X.idPrefix+"R"+k,0<$&&(k+="H"+$.toString(32)),k+":"},useMutableSource:function(k,$){return Nt(),$(k._source)},useSyncExternalStore:function(k,$,X){if(X===void 0)throw Error(e(407));return X()}},It=null,je=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ee(k){return console.error(k),null}function qe(){}function Tt(k,$,X,le,$e,Fe,nt,kt,Wt){var Zt=[],Yt=new Set;return $={destination:null,responseState:$,progressiveChunkSize:le===void 0?12800:le,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Yt,pingedTasks:Zt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:$e===void 0?Ee:$e,onAllReady:qe,onShellReady:nt===void 0?qe:nt,onShellError:qe,onFatalError:qe},X=_t($,0,null,X,!1,!1),X.parentFlushed=!0,k=$t($,k,null,X,Yt,Xe,null,Pt),Zt.push(k),$}function $t(k,$,X,le,$e,Fe,nt,kt){k.allPendingTasks++,X===null?k.pendingRootTasks++:X.pendingTasks++;var Wt={node:$,ping:function(){var Zt=k.pingedTasks;Zt.push(Wt),Zt.length===1&&Bn(k)},blockedBoundary:X,blockedSegment:le,abortSet:$e,legacyContext:Fe,context:nt,treeContext:kt};return $e.add(Wt),Wt}function _t(k,$,X,le,$e,Fe){return{status:0,id:-1,index:$,parentFlushed:!1,chunks:[],children:[],formatContext:le,boundary:X,lastPushedText:$e,textEmbedded:Fe}}function he(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 ct(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,le,$e){for(bt={},qt=$,dt=0,k=X(le,$e);Ue;)Ue=!1,dt=0,Et+=1,Lt=null,k=X(le,$e);return jt(),k}function fr(k,$,X,le){var $e=X.render(),Fe=le.childContextTypes;if(Fe!=null){var nt=$.legacyContext;if(typeof X.getChildContext!="function")le=nt;else{X=X.getChildContext();for(var kt in X)if(!(kt in Fe))throw Error(e(108,Ne(le)||"Unknown",kt));le=de({},nt,X)}$.legacyContext=le,xr(k,$,$e),$.legacyContext=nt}else xr(k,$,$e)}function Fr(k,$){if(k&&k.defaultProps){$=de({},$),k=k.defaultProps;for(var X in k)$[X]===void 0&&($[X]=k[X]);return $}return $}function ur(k,$,X,le,$e){if(typeof X=="function")if(X.prototype&&X.prototype.isReactComponent){$e=We(X,$.legacyContext);var Fe=X.contextType;Fe=new X(le,typeof Fe=="object"&&Fe!==null?Fe._currentValue2:$e),Bt(Fe,X,le,$e),fr(k,$,Fe,X)}else{Fe=We(X,$.legacyContext),$e=wt(k,$,X,le,Fe);var nt=dt!==0;if(typeof $e=="object"&&$e!==null&&typeof $e.render=="function"&&$e.$$typeof===void 0)Bt($e,X,le,Fe),fr(k,$,$e,X);else if(nt){le=$.treeContext,$.treeContext=Xt(le,1,0);try{xr(k,$,$e)}finally{$.treeContext=le}}else xr(k,$,$e)}else if(typeof X=="string"){switch($e=$.blockedSegment,Fe=V($e.chunks,X,le,k.responseState,$e.formatContext),$e.lastPushedText=!1,nt=$e.formatContext,$e.formatContext=D(nt,X,le),sn(k,$,Fe),$e.formatContext=nt,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:$e.chunks.push("</",X,">")}$e.lastPushedText=!1}else{switch(X){case Ke:case Ze:case oe:case ge:case Oe:xr(k,$,le.children);return;case Ie:xr(k,$,le.children);return;case Qe:throw Error(e(343));case Se:e:{X=$.blockedBoundary,$e=$.blockedSegment,Fe=le.fallback,le=le.children,nt=new Set;var kt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:nt,errorDigest:null},Wt=_t(k,$e.chunks.length,kt,$e.formatContext,!1,!1);$e.children.push(Wt),$e.lastPushedText=!1;var Zt=_t(k,0,null,$e.formatContext,!1,!1);Zt.parentFlushed=!0,$.blockedBoundary=kt,$.blockedSegment=Zt;try{if(sn(k,$,le),k.responseState.generateStaticMarkup||Zt.lastPushedText&&Zt.textEmbedded&&Zt.chunks.push("<!-- -->"),Zt.status=1,rn(kt,Zt),kt.pendingTasks===0)break e}catch(Yt){Zt.status=4,kt.forceClientRender=!0,kt.errorDigest=he(k,Yt)}finally{$.blockedBoundary=X,$.blockedSegment=$e}$=$t(k,Fe,X,Wt,nt,$.legacyContext,$.context,$.treeContext),k.pingedTasks.push($)}return}if(typeof X=="object"&&X!==null)switch(X.$$typeof){case Ce:if(le=wt(k,$,X.render,le,$e),dt!==0){X=$.treeContext,$.treeContext=Xt(X,1,0);try{xr(k,$,le)}finally{$.treeContext=X}}else xr(k,$,le);return;case et:X=X.type,le=Fr(X,le),ur(k,$,X,le,$e);return;case we:if($e=le.children,X=X._context,le=le.value,Fe=X._currentValue2,X._currentValue2=le,nt=Ve,Ve=le={parent:nt,depth:nt===null?0:nt.depth+1,context:X,parentValue:Fe,value:le},$.context=le,xr(k,$,$e),k=Ve,k===null)throw Error(e(403));le=k.parentValue,k.context._currentValue2=le===ht?k.context._defaultValue:le,k=Ve=k.parent,$.context=k;return;case Le:le=le.children,le=le(X._currentValue2),xr(k,$,le);return;case Je:$e=X._init,X=$e(X._payload),le=Fr(X,le),ur(k,$,X,le,void 0);return}throw Error(e(130,X==null?X:typeof X,""))}}function xr(k,$,X){if($.node=X,typeof X=="object"&&X!==null){switch(X.$$typeof){case me:ur(k,$,X.type,X.props,X.ref);return;case Ae:throw Error(e(257));case Je:var le=X._init;X=le(X._payload),xr(k,$,X);return}if(_(X)){tn(k,$,X);return}if(X===null||typeof X!="object"?le=null:(le=Pe&&X[Pe]||X["@@iterator"],le=typeof le=="function"?le:null),le&&(le=le.call(X))){if(X=le.next(),!X.done){var $e=[];do $e.push(X.value),X=le.next();while(!X.done);tn(k,$,$e)}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"?(le=$.blockedSegment,le.lastPushedText=ie($.blockedSegment.chunks,X,k.responseState,le.lastPushedText)):typeof X=="number"&&(le=$.blockedSegment,le.lastPushedText=ie($.blockedSegment.chunks,""+X,k.responseState,le.lastPushedText))}function tn(k,$,X){for(var le=X.length,$e=0;$e<le;$e++){var Fe=$.treeContext;$.treeContext=Xt(Fe,le,$e);try{sn(k,$,X[$e])}finally{$.treeContext=Fe}}}function sn(k,$,X){var le=$.blockedSegment.formatContext,$e=$.legacyContext,Fe=$.context;try{return xr(k,$,X)}catch(Wt){if(jt(),typeof Wt=="object"&&Wt!==null&&typeof Wt.then=="function"){X=Wt;var nt=$.blockedSegment,kt=_t(k,nt.chunks.length,null,nt.formatContext,nt.lastPushedText,!0);nt.children.push(kt),nt.lastPushedText=!1,k=$t(k,$.node,$.blockedBoundary,kt,$.abortSet,$.legacyContext,$.context,$.treeContext).ping,X.then(k,k),$.blockedSegment.formatContext=le,$.legacyContext=$e,$.context=Fe,ut(Fe)}else throw $.blockedSegment.formatContext=le,$.legacyContext=$e,$.context=Fe,ut(Fe),Wt}}function Pn(k){var $=k.blockedBoundary;k=k.blockedSegment,k.status=3,In(this,$,k)}function Hr(k,$,X){var le=k.blockedBoundary;k.blockedSegment.status=3,le===null?($.allPendingTasks--,$.status!==2&&($.status=2,$.destination!==null&&$.destination.push(null))):(le.pendingTasks--,le.forceClientRender||(le.forceClientRender=!0,k=X===void 0?Error(e(432)):X,le.errorDigest=$.onError(k),le.parentFlushed&&$.clientRenderedBoundaries.push(le)),le.fallbackAbortableTasks.forEach(function($e){return Hr($e,$,X)}),le.fallbackAbortableTasks.clear(),$.allPendingTasks--,$.allPendingTasks===0&&(le=$.onAllReady,le()))}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 In(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=qe,$=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 $=Ve,X=je.current;je.current=pt;var le=It;It=k.responseState;try{var $e=k.pingedTasks,Fe;for(Fe=0;Fe<$e.length;Fe++){var nt=$e[Fe],kt=k,Wt=nt.blockedSegment;if(Wt.status===0){ut(nt.context);try{xr(kt,nt,nt.node),kt.responseState.generateStaticMarkup||Wt.lastPushedText&&Wt.textEmbedded&&Wt.chunks.push("<!-- -->"),nt.abortSet.delete(nt),Wt.status=1,In(kt,nt.blockedBoundary,Wt)}catch(Ln){if(jt(),typeof Ln=="object"&&Ln!==null&&typeof Ln.then=="function"){var Zt=nt.ping;Ln.then(Zt,Zt)}else{nt.abortSet.delete(nt),Wt.status=4;var Yt=nt.blockedBoundary,kr=Ln,an=he(kt,kr);if(Yt===null?ct(kt,kr):(Yt.pendingTasks--,Yt.forceClientRender||(Yt.forceClientRender=!0,Yt.errorDigest=an,Yt.parentFlushed&&kt.clientRenderedBoundaries.push(Yt))),kt.allPendingTasks--,kt.allPendingTasks===0){var Mn=kt.onAllReady;Mn()}}}finally{}}}$e.splice(0,Fe),k.destination!==null&&Cn(k,k.destination)}catch(Ln){he(k,Ln),ct(k,Ln)}finally{It=le,je.current=X,X===pt&&ut($)}}}function _o(k,$,X){switch(X.parentFlushed=!0,X.status){case 0:var le=X.id=k.nextSegmentId++;return X.lastPushedText=!1,X.textEmbedded=!1,k=k.responseState,$.push('<template id="'),$.push(k.placeholderPrefix),k=le.toString(16),$.push(k),$.push('"></template>');case 1:X.status=2;var $e=!0;le=X.chunks;var Fe=0;X=X.children;for(var nt=0;nt<X.length;nt++){for($e=X[nt];Fe<$e.index;Fe++)$.push(le[Fe]);$e=Do(k,$,$e)}for(;Fe<le.length-1;Fe++)$.push(le[Fe]);return Fe<le.length&&($e=$.push(le[Fe])),$e;default:throw Error(e(390))}}function Do(k,$,X){var le=X.boundary;if(le===null)return _o(k,$,X);if(le.parentFlushed=!0,le.forceClientRender)return k.responseState.generateStaticMarkup||(le=le.errorDigest,$.push("<!--$!-->"),$.push("<template"),le&&($.push(' data-dgst="'),le=w(le),$.push(le),$.push('"')),$.push("></template>")),_o(k,$,X),k=k.responseState.generateStaticMarkup?!0:$.push("<!--/$-->"),k;if(0<le.pendingTasks){le.rootSegmentID=k.nextSegmentId++,0<le.completedSegments.length&&k.partialBoundaries.push(le);var $e=k.responseState,Fe=$e.nextSuspenseID++;return $e=$e.boundaryPrefix+Fe.toString(16),le=le.id=$e,Q($,k.responseState,le),_o(k,$,X),$.push("<!--/$-->")}if(le.byteSize>k.progressiveChunkSize)return le.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(le),Q($,k.responseState,le.id),_o(k,$,X),$.push("<!--/$-->");if(k.responseState.generateStaticMarkup||$.push("<!--$-->"),X=le.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),te($,X.formatContext)}function Hn(k,$,X){for(var le=X.completedSegments,$e=0;$e<le.length;$e++)Fn(k,$,X,le[$e]);if(le.length=0,k=k.responseState,le=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("')),le===null)throw Error(e(395));return X=X.toString(16),$.push(le),$.push('","'),$.push(k.segmentPrefix),$.push(X),$.push('")<\/script>')}function Fn(k,$,X,le){if(le.status===2)return!0;var $e=le.id;if($e===-1){if((le.id=X.rootSegmentID)===-1)throw Error(e(392));return Oo(k,$,le)}return Oo(k,$,le),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),$e=$e.toString(16),$.push($e),$.push('","'),$.push(k.placeholderPrefix),$.push($e),$.push('")<\/script>')}function Cn(k,$){try{var X=k.completedRootSegment;if(X!==null&&k.pendingRootTasks===0){Do(k,$,X),k.completedRootSegment=null;var le=k.responseState.bootstrapChunks;for(X=0;X<le.length-1;X++)$.push(le[X]);X<le.length&&$.push(le[X])}var $e=k.clientRenderedBoundaries,Fe;for(Fe=0;Fe<$e.length;Fe++){var nt=$e[Fe];le=$;var kt=k.responseState,Wt=nt.id,Zt=nt.errorDigest,Yt=nt.errorMessage,kr=nt.errorComponentStack;if(le.push(kt.startInlineScript),kt.sentClientRenderFunction?le.push('$RX("'):(kt.sentClientRenderFunction=!0,le.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("')),Wt===null)throw Error(e(395));if(le.push(Wt),le.push('"'),Zt||Yt||kr){le.push(",");var an=ne(Zt||"");le.push(an)}if(Yt||kr){le.push(",");var Mn=ne(Yt||"");le.push(Mn)}if(kr){le.push(",");var Ln=ne(kr);le.push(Ln)}if(!le.push(")<\/script>")){k.destination=null,Fe++,$e.splice(0,Fe);return}}$e.splice(0,Fe);var po=k.completedBoundaries;for(Fe=0;Fe<po.length;Fe++)if(!Hn(k,$,po[Fe])){k.destination=null,Fe++,po.splice(0,Fe);return}po.splice(0,Fe);var Kn=k.partialBoundaries;for(Fe=0;Fe<Kn.length;Fe++){var No=Kn[Fe];e:{$e=k,nt=$;var dn=No.completedSegments;for(kt=0;kt<dn.length;kt++)if(!Fn($e,nt,No,dn[kt])){kt++,dn.splice(0,kt);var Ao=!1;break e}dn.splice(0,kt),Ao=!0}if(!Ao){k.destination=null,Fe++,Kn.splice(0,Fe);return}}Kn.splice(0,Fe);var Xn=k.completedBoundaries;for(Fe=0;Fe<Xn.length;Fe++)if(!Hn(k,$,Xn[Fe])){k.destination=null,Fe++,Xn.splice(0,Fe);return}Xn.splice(0,Fe)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&$.push(null)}}function io(k,$){try{var X=k.abortableTasks;X.forEach(function(le){return Hr(le,k,$)}),X.clear(),k.destination!==null&&Cn(k,k.destination)}catch(le){he(k,le),ct(k,le)}}function yn(){}function En(k,$,X,le){var $e=!1,Fe=null,nt="",kt={push:function(Zt){return Zt!==null&&(nt+=Zt),!0},destroy:function(Zt){$e=!0,Fe=Zt}},Wt=!1;if(k=Tt(k,be(X,$?$.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,yn,void 0,function(){Wt=!0}),Bn(k),io(k,le),k.status===1)k.status=2,kt.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=kt;try{Cn(k,kt)}catch(Zt){he(k,Zt),ct(k,Zt)}}if($e)throw Fe;if(!Wt)throw Error(e(426));return nt}return Ou.renderToNodeStream=function(){throw Error(e(207))},Ou.renderToStaticMarkup=function(k,$){return En(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')},Ou.renderToStaticNodeStream=function(){throw Error(e(208))},Ou.renderToString=function(k,$){return En(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')},Ou.version="18.3.1",Ou}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 g0;function E4(){if(g0)return sp;g0=1;var r=C;function e(I){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+I,Y=1;Y<arguments.length;Y++)H+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+I+"; 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(I,H){if(H.length!==0)if(512<H.length)0<n&&(I.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),I.enqueue(H);else{var Y=t.length-n;Y<H.length&&(Y===0?I.enqueue(t):(t.set(H.subarray(0,Y),n),I.enqueue(t),H=H.subarray(Y)),t=new Uint8Array(512),n=0),t.set(H,n),n+=H.length}}function i(I,H){return o(I,H),!0}function a(I){t&&0<n&&(I.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var c=new TextEncoder;function u(I){return c.encode(I)}function f(I){return c.encode(I)}function p(I,H){typeof I.error=="function"?I.error(H):I.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]*$/,b={},w={};function T(I){return m.call(w,I)?!0:m.call(b,I)?!1:g.test(I)?w[I]=!0:(b[I]=!0,!1)}function A(I,H,Y,ce,Ge,He,gt){this.acceptsBooleans=H===2||H===3||H===4,this.attributeName=ce,this.attributeNamespace=Ge,this.mustUseProperty=Y,this.propertyName=I,this.type=H,this.sanitizeURL=He,this.removeEmptyString=gt}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){_[I]=new A(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(I){var H=I[0];_[H]=new A(H,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){_[I]=new A(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){_[I]=new A(I,2,!1,I,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(I){_[I]=new A(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){_[I]=new A(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){_[I]=new A(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){_[I]=new A(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){_[I]=new A(I,5,!1,I.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function D(I){return I[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(I){var H=I.replace(R,D);_[H]=new A(H,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var H=I.replace(R,D);_[H]=new A(H,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var H=I.replace(R,D);_[H]=new A(H,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){_[I]=new A(I,1,!1,I.toLowerCase(),null,!1,!1)}),_.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){_[I]=new A(I,1,!1,I.toLowerCase(),null,!0,!0)});var M={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},F=["Webkit","ms","Moz","O"];Object.keys(M).forEach(function(I){F.forEach(function(H){H=H+I.charAt(0).toUpperCase()+I.substring(1),M[H]=M[I]})});var B=/["'&<>]/;function z(I){if(typeof I=="boolean"||typeof I=="number")return""+I;I=""+I;var H=B.exec(I);if(H){var Y="",ce,Ge=0;for(ce=H.index;ce<I.length;ce++){switch(I.charCodeAt(ce)){case 34:H=""";break;case 38:H="&";break;case 39:H="'";break;case 60:H="<";break;case 62:H=">";break;default:continue}Ge!==ce&&(Y+=I.substring(Ge,ce)),Ge=ce+1,Y+=H}I=Ge!==ce?Y+I.substring(Ge,ce):Y}return I}var j=/([A-Z])/g,G=/^ms-/,fe=Array.isArray,P=f("<script>"),U=f("<\/script>"),V=f('<script src="'),Q=f('<script type="module" src="'),se=f('" async=""><\/script>'),te=/(<\/|<)(s)(cript)/gi;function re(I,H,Y,ce){return""+H+(Y==="s"?"\\u0073":"\\u0053")+ce}function ne(I,H,Y,ce,Ge){I=I===void 0?"":I,H=H===void 0?P:f('<script nonce="'+z(H)+'">');var He=[];if(Y!==void 0&&He.push(H,u((""+Y).replace(te,re)),U),ce!==void 0)for(Y=0;Y<ce.length;Y++)He.push(V,u(z(ce[Y])),se);if(Ge!==void 0)for(ce=0;ce<Ge.length;ce++)He.push(Q,u(z(Ge[ce])),se);return{bootstrapChunks:He,startInlineScript:H,placeholderPrefix:f(I+"P:"),segmentPrefix:f(I+"S:"),boundaryPrefix:I+"B:",idPrefix:I,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function be(I,H){return{insertionMode:I,selectedValue:H}}function ie(I){return be(I==="http://www.w3.org/2000/svg"?2:I==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function de(I,H,Y){switch(H){case"select":return be(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return be(2,null);case"math":return be(3,null);case"foreignObject":return be(1,null);case"table":return be(4,null);case"thead":case"tbody":case"tfoot":return be(5,null);case"colgroup":return be(7,null);case"tr":return be(6,null)}return 4<=I.insertionMode||I.insertionMode===0?be(1,null):I}var me=f("<!-- -->");function Ae(I,H,Y,ce){return H===""?ce:(ce&&I.push(me),I.push(u(z(H))),!0)}var
|
|
80
|
-
`),We=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ve=new Map;function
|
|
81
|
-
`&&I.push(Xe),He!==null&&I.push(u(z(""+He))),null;case"input":I.push(
|
|
79
|
+
*/var g0;function E4(){if(g0)return sp;g0=1;var r=C;function e(I){for(var H="https://reactjs.org/docs/error-decoder.html?invariant="+I,Y=1;Y<arguments.length;Y++)H+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+I+"; 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(I,H){if(H.length!==0)if(512<H.length)0<n&&(I.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),I.enqueue(H);else{var Y=t.length-n;Y<H.length&&(Y===0?I.enqueue(t):(t.set(H.subarray(0,Y),n),I.enqueue(t),H=H.subarray(Y)),t=new Uint8Array(512),n=0),t.set(H,n),n+=H.length}}function i(I,H){return o(I,H),!0}function a(I){t&&0<n&&(I.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var c=new TextEncoder;function u(I){return c.encode(I)}function f(I){return c.encode(I)}function p(I,H){typeof I.error=="function"?I.error(H):I.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]*$/,b={},w={};function T(I){return m.call(w,I)?!0:m.call(b,I)?!1:g.test(I)?w[I]=!0:(b[I]=!0,!1)}function A(I,H,Y,ce,Ge,He,gt){this.acceptsBooleans=H===2||H===3||H===4,this.attributeName=ce,this.attributeNamespace=Ge,this.mustUseProperty=Y,this.propertyName=I,this.type=H,this.sanitizeURL=He,this.removeEmptyString=gt}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){_[I]=new A(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(I){var H=I[0];_[H]=new A(H,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){_[I]=new A(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){_[I]=new A(I,2,!1,I,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(I){_[I]=new A(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){_[I]=new A(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){_[I]=new A(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){_[I]=new A(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){_[I]=new A(I,5,!1,I.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function D(I){return I[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(I){var H=I.replace(R,D);_[H]=new A(H,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var H=I.replace(R,D);_[H]=new A(H,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var H=I.replace(R,D);_[H]=new A(H,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){_[I]=new A(I,1,!1,I.toLowerCase(),null,!1,!1)}),_.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){_[I]=new A(I,1,!1,I.toLowerCase(),null,!0,!0)});var M={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},F=["Webkit","ms","Moz","O"];Object.keys(M).forEach(function(I){F.forEach(function(H){H=H+I.charAt(0).toUpperCase()+I.substring(1),M[H]=M[I]})});var B=/["'&<>]/;function z(I){if(typeof I=="boolean"||typeof I=="number")return""+I;I=""+I;var H=B.exec(I);if(H){var Y="",ce,Ge=0;for(ce=H.index;ce<I.length;ce++){switch(I.charCodeAt(ce)){case 34:H=""";break;case 38:H="&";break;case 39:H="'";break;case 60:H="<";break;case 62:H=">";break;default:continue}Ge!==ce&&(Y+=I.substring(Ge,ce)),Ge=ce+1,Y+=H}I=Ge!==ce?Y+I.substring(Ge,ce):Y}return I}var j=/([A-Z])/g,G=/^ms-/,fe=Array.isArray,P=f("<script>"),U=f("<\/script>"),V=f('<script src="'),Q=f('<script type="module" src="'),se=f('" async=""><\/script>'),te=/(<\/|<)(s)(cript)/gi;function re(I,H,Y,ce){return""+H+(Y==="s"?"\\u0073":"\\u0053")+ce}function ne(I,H,Y,ce,Ge){I=I===void 0?"":I,H=H===void 0?P:f('<script nonce="'+z(H)+'">');var He=[];if(Y!==void 0&&He.push(H,u((""+Y).replace(te,re)),U),ce!==void 0)for(Y=0;Y<ce.length;Y++)He.push(V,u(z(ce[Y])),se);if(Ge!==void 0)for(ce=0;ce<Ge.length;ce++)He.push(Q,u(z(Ge[ce])),se);return{bootstrapChunks:He,startInlineScript:H,placeholderPrefix:f(I+"P:"),segmentPrefix:f(I+"S:"),boundaryPrefix:I+"B:",idPrefix:I,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function be(I,H){return{insertionMode:I,selectedValue:H}}function ie(I){return be(I==="http://www.w3.org/2000/svg"?2:I==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function de(I,H,Y){switch(H){case"select":return be(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return be(2,null);case"math":return be(3,null);case"foreignObject":return be(1,null);case"table":return be(4,null);case"thead":case"tbody":case"tfoot":return be(5,null);case"colgroup":return be(7,null);case"tr":return be(6,null)}return 4<=I.insertionMode||I.insertionMode===0?be(1,null):I}var me=f("<!-- -->");function Ae(I,H,Y,ce){return H===""?ce:(ce&&I.push(me),I.push(u(z(H))),!0)}var Oe=new Map,oe=f(' style="'),ge=f(":"),we=f(";");function Le(I,H,Y){if(typeof Y!="object")throw Error(e(62));H=!0;for(var ce in Y)if(m.call(Y,ce)){var Ge=Y[ce];if(Ge!=null&&typeof Ge!="boolean"&&Ge!==""){if(ce.indexOf("--")===0){var He=u(z(ce));Ge=u(z((""+Ge).trim()))}else{He=ce;var gt=Oe.get(He);gt!==void 0||(gt=f(z(He.replace(j,"-$1").toLowerCase().replace(G,"-ms-"))),Oe.set(He,gt)),He=gt,Ge=typeof Ge=="number"?Ge===0||m.call(M,ce)?u(""+Ge):u(Ge+"px"):u(z((""+Ge).trim()))}H?(H=!1,I.push(oe,He,ge,Ge)):I.push(we,He,ge,Ge)}}H||I.push(Ie)}var Ce=f(" "),Se=f('="'),Ie=f('"'),et=f('=""');function Je(I,H,Y,ce){switch(Y){case"style":Le(I,H,ce);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=_.hasOwnProperty(Y)?_[Y]:null,H!==null){switch(typeof ce){case"function":case"symbol":return;case"boolean":if(!H.acceptsBooleans)return}switch(Y=u(H.attributeName),H.type){case 3:ce&&I.push(Ce,Y,et);break;case 4:ce===!0?I.push(Ce,Y,et):ce!==!1&&I.push(Ce,Y,Se,u(z(ce)),Ie);break;case 5:isNaN(ce)||I.push(Ce,Y,Se,u(z(ce)),Ie);break;case 6:!isNaN(ce)&&1<=ce&&I.push(Ce,Y,Se,u(z(ce)),Ie);break;default:H.sanitizeURL&&(ce=""+ce),I.push(Ce,Y,Se,u(z(ce)),Ie)}}else if(T(Y)){switch(typeof ce){case"function":case"symbol":return;case"boolean":if(H=Y.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")return}I.push(Ce,u(Y),Se,u(z(ce)),Ie)}}}var Qe=f(">"),Ze=f("/>");function Ke(I,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&&I.push(u(""+H))}}function ht(I){var H="";return r.Children.forEach(I,function(Y){Y!=null&&(H+=Y)}),H}var Pe=f(' selected=""');function Ne(I,H,Y,ce){I.push(lt(Y));var Ge=Y=null,He;for(He in H)if(m.call(H,He)){var gt=H[He];if(gt!=null)switch(He){case"children":Y=gt;break;case"dangerouslySetInnerHTML":Ge=gt;break;default:Je(I,ce,He,gt)}}return I.push(Qe),Ke(I,Ge,Y),typeof Y=="string"?(I.push(u(z(Y))),null):Y}var Xe=f(`
|
|
80
|
+
`),We=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ve=new Map;function lt(I){var H=Ve.get(I);if(H===void 0){if(!We.test(I))throw Error(e(65,I));H=f("<"+I),Ve.set(I,H)}return H}var st=f("<!DOCTYPE html>");function De(I,H,Y,ce,Ge){switch(H){case"select":I.push(lt("select"));var He=null,gt=null;for(gr in Y)if(m.call(Y,gr)){var Ot=Y[gr];if(Ot!=null)switch(gr){case"children":He=Ot;break;case"dangerouslySetInnerHTML":gt=Ot;break;case"defaultValue":case"value":break;default:Je(I,ce,gr,Ot)}}return I.push(Qe),Ke(I,gt,He),He;case"option":gt=Ge.selectedValue,I.push(lt("option"));var Jt=Ot=null,Sr=null,gr=null;for(He in Y)if(m.call(Y,He)){var on=Y[He];if(on!=null)switch(He){case"children":Ot=on;break;case"selected":Sr=on;break;case"dangerouslySetInnerHTML":gr=on;break;case"value":Jt=on;default:Je(I,ce,He,on)}}if(gt!=null)if(Y=Jt!==null?""+Jt:ht(Ot),fe(gt)){for(ce=0;ce<gt.length;ce++)if(""+gt[ce]===Y){I.push(Pe);break}}else""+gt===Y&&I.push(Pe);else Sr&&I.push(Pe);return I.push(Qe),Ke(I,gr,Ot),Ot;case"textarea":I.push(lt("textarea")),gr=gt=He=null;for(Ot in Y)if(m.call(Y,Ot)&&(Jt=Y[Ot],Jt!=null))switch(Ot){case"children":gr=Jt;break;case"value":He=Jt;break;case"defaultValue":gt=Jt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Je(I,ce,Ot,Jt)}if(He===null&>!==null&&(He=gt),I.push(Qe),gr!=null){if(He!=null)throw Error(e(92));if(fe(gr)&&1<gr.length)throw Error(e(93));He=""+gr}return typeof He=="string"&&He[0]===`
|
|
81
|
+
`&&I.push(Xe),He!==null&&I.push(u(z(""+He))),null;case"input":I.push(lt("input")),Jt=gr=Ot=He=null;for(gt in Y)if(m.call(Y,gt)&&(Sr=Y[gt],Sr!=null))switch(gt){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Jt=Sr;break;case"defaultValue":Ot=Sr;break;case"checked":gr=Sr;break;case"value":He=Sr;break;default:Je(I,ce,gt,Sr)}return gr!==null?Je(I,ce,"checked",gr):Jt!==null&&Je(I,ce,"checked",Jt),He!==null?Je(I,ce,"value",He):Ot!==null&&Je(I,ce,"value",Ot),I.push(Ze),null;case"menuitem":I.push(lt("menuitem"));for(var co in Y)if(m.call(Y,co)&&(He=Y[co],He!=null))switch(co){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Je(I,ce,co,He)}return I.push(Qe),null;case"title":I.push(lt("title")),He=null;for(on in Y)if(m.call(Y,on)&&(gt=Y[on],gt!=null))switch(on){case"children":He=gt;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Je(I,ce,on,gt)}return I.push(Qe),He;case"listing":case"pre":I.push(lt(H)),gt=He=null;for(Jt in Y)if(m.call(Y,Jt)&&(Ot=Y[Jt],Ot!=null))switch(Jt){case"children":He=Ot;break;case"dangerouslySetInnerHTML":gt=Ot;break;default:Je(I,ce,Jt,Ot)}if(I.push(Qe),gt!=null){if(He!=null)throw Error(e(60));if(typeof gt!="object"||!("__html"in gt))throw Error(e(61));Y=gt.__html,Y!=null&&(typeof Y=="string"&&0<Y.length&&Y[0]===`
|
|
82
82
|
`?I.push(Xe,u(Y)):I.push(u(""+Y)))}return typeof He=="string"&&He[0]===`
|
|
83
|
-
`&&I.push(Xe),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":I.push(at(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:Je(I,ce,Bo,He)}return I.push(Ze),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 Ne(I,Y,H,ce);case"html":return Ge.insertionMode===0&&I.push(lt),Ne(I,Y,H,ce);default:if(H.indexOf("-")===-1&&typeof Y.is!="string")return Ne(I,Y,H,ce);I.push(at(H)),gt=He=null;for(Sr in Y)if(m.call(Y,Sr)&&(Ot=Y[Sr],Ot!=null))switch(Sr){case"children":He=Ot;break;case"dangerouslySetInnerHTML":gt=Ot;break;case"style":Le(I,ce,Ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Sr)&&typeof Ot!="function"&&typeof Ot!="symbol"&&I.push(Ce,u(Sr),Se,u(z(Ot)),Ie)}return I.push(Qe),Ke(I,gt,He),He}}var st=f("</"),mt=f(">"),ut=f('<template id="'),Lt=f('"></template>'),Bt=f("<!--$-->"),Pt=f('<!--$?--><template id="'),Xt=f('"></template>'),ar=f("<!--$!-->"),Kt=f("<!--/$-->"),cr=f("<template"),Te=f('"'),ae=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var it=f("></template>");function bt(I,H,Y){if(o(I,Pt),Y===null)throw Error(e(395));return o(I,Y),i(I,Xt)}var qt=f('<div hidden id="'),Ft=f('">'),Dt=f("</div>"),Ht=f('<svg aria-hidden="true" style="display:none" id="'),Ue=f('">'),dt=f("</svg>"),yt=f('<math aria-hidden="true" style="display:none" id="'),Et=f('">'),Nt=f("</math>"),rt=f('<table hidden id="'),St=f('">'),jt=f("</table>"),tr=f('<table hidden><tbody id="'),Ut=f('">'),br=f("</tbody></table>"),Nr=f('<table hidden><tr id="'),pr=f('">'),pe=f("</tr></table>"),pt=f('<table hidden><colgroup id="'),It=f('">'),je=f("</colgroup></table>");function Ee(I,H,Y,ce){switch(Y.insertionMode){case 0:case 1:return o(I,qt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Ft);case 2:return o(I,Ht),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Ue);case 3:return o(I,yt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Et);case 4:return o(I,rt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,St);case 5:return o(I,tr),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Ut);case 6:return o(I,Nr),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,pr);case 7:return o(I,pt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,It);default:throw Error(e(397))}}function qe(I,H){switch(H.insertionMode){case 0:case 1:return i(I,Dt);case 2:return i(I,dt);case 3:return i(I,Nt);case 4:return i(I,jt);case 5:return i(I,br);case 6:return i(I,pe);case 7:return i(I,je);default:throw Error(e(397))}}var Tt=f('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("'),$t=f('$RS("'),_t=f('","'),he=f('")<\/script>'),ct=f('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=f('$RC("'),fr=f('","'),Fr=f('")<\/script>'),ur=f('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("'),xr=f('$RX("'),tn=f('"'),sn=f(")<\/script>"),Pn=f(","),Hr=/[<\u2028\u2029]/g;function rn(I){return JSON.stringify(I).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 In=Object.assign,Bn=Symbol.for("react.element"),_o=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),Oo=Symbol.for("react.strict_mode"),Hn=Symbol.for("react.profiler"),Fn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),io=Symbol.for("react.forward_ref"),yn=Symbol.for("react.suspense"),En=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.scope"),le=Symbol.for("react.debug_trace_mode"),$e=Symbol.for("react.legacy_hidden"),Fe=Symbol.for("react.default_value"),nt=Symbol.iterator;function kt(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case Do:return"Fragment";case _o:return"Portal";case Hn:return"Profiler";case Oo:return"StrictMode";case yn:return"Suspense";case En:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case Cn:return(I.displayName||"Context")+".Consumer";case Fn:return(I._context.displayName||"Context")+".Provider";case io:var H=I.render;return I=I.displayName,I||(I=H.displayName||H.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case k:return H=I.displayName||null,H!==null?H:kt(I.type)||"Memo";case $:H=I._payload,I=I._init;try{return kt(I(H))}catch{}}return null}var Wt={};function Zt(I,H){if(I=I.contextTypes,!I)return Wt;var Y={},ce;for(ce in I)Y[ce]=H[ce];return Y}var Yt=null;function kr(I,H){if(I!==H){I.context._currentValue=I.parentValue,I=I.parent;var Y=H.parent;if(I===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));kr(I,Y)}H.context._currentValue=H.value}}function an(I){I.context._currentValue=I.parentValue,I=I.parent,I!==null&&an(I)}function Mn(I){var H=I.parent;H!==null&&Mn(H),I.context._currentValue=I.value}function Ln(I,H){if(I.context._currentValue=I.parentValue,I=I.parent,I===null)throw Error(e(402));I.depth===H.depth?kr(I,H):Ln(I,H)}function po(I,H){var Y=H.parent;if(Y===null)throw Error(e(402));I.depth===Y.depth?kr(I,Y):po(I,Y),H.context._currentValue=H.value}function Kn(I){var H=Yt;H!==I&&(H===null?Mn(I):I===null?an(H):H.depth===I.depth?kr(H,I):H.depth>I.depth?Ln(H,I):po(H,I),Yt=I)}var No={isMounted:function(){return!1},enqueueSetState:function(I,H){I=I._reactInternals,I.queue!==null&&I.queue.push(H)},enqueueReplaceState:function(I,H){I=I._reactInternals,I.replace=!0,I.queue=[H]},enqueueForceUpdate:function(){}};function dn(I,H,Y,ce){var Ge=I.state!==void 0?I.state:null;I.updater=No,I.props=Y,I.state=Ge;var He={queue:[],replace:!1};I._reactInternals=He;var gt=H.contextType;if(I.context=typeof gt=="object"&>!==null?gt._currentValue:ce,gt=H.getDerivedStateFromProps,typeof gt=="function"&&(gt=gt(Y,Ge),Ge=gt==null?Ge:In({},Ge,gt),I.state=Ge),typeof H.getDerivedStateFromProps!="function"&&typeof I.getSnapshotBeforeUpdate!="function"&&(typeof I.UNSAFE_componentWillMount=="function"||typeof I.componentWillMount=="function"))if(H=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),H!==I.state&&No.enqueueReplaceState(I,I.state,null),He.queue!==null&&0<He.queue.length)if(H=He.queue,gt=He.replace,He.queue=null,He.replace=!1,gt&&H.length===1)I.state=H[0];else{for(He=gt?H[0]:I.state,Ge=!0,gt=gt?1:0;gt<H.length;gt++){var Ot=H[gt];Ot=typeof Ot=="function"?Ot.call(I,He,Y,ce):Ot,Ot!=null&&(Ge?(Ge=!1,He=In({},He,Ot)):In(He,Ot))}I.state=He}else He.queue=null}var Ao={id:1,overflow:""};function Xn(I,H,Y){var ce=I.id;I=I.overflow;var Ge=32-so(ce)-1;ce&=~(1<<Ge),Y+=1;var He=32-so(H)+Ge;if(30<He){var gt=Ge-Ge%5;return He=(ce&(1<<gt)-1).toString(32),ce>>=gt,Ge-=gt,{id:1<<32-so(H)+Ge|Y<<Ge|ce,overflow:He+I}}return{id:1<<He|Y<<Ge|ce,overflow:I}}var so=Math.clz32?Math.clz32:bi,Pi=Math.log,yi=Math.LN2;function bi(I){return I>>>=0,I===0?32:31-(Pi(I)/yi|0)|0}function $n(I,H){return I===H&&(I!==0||1/I===1/H)||I!==I&&H!==H}var Bi=typeof Object.is=="function"?Object.is:$n,ao=null,lo=null,ri=null,zr=null,Mr=!1,jr=!1,O=0,J=null,xe=0;function ot(){if(ao===null)throw Error(e(321));return ao}function ir(){if(0<xe)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Qt(){return zr===null?ri===null?(Mr=!1,ri=zr=ir()):(Mr=!0,zr=ri):zr.next===null?(Mr=!1,zr=zr.next=ir()):(Mr=!0,zr=zr.next),zr}function _r(){lo=ao=null,jr=!1,ri=null,xe=0,zr=J=null}function Ir(I,H){return typeof H=="function"?H(I):H}function Cr(I,H,Y){if(ao=ot(),zr=Qt(),Mr){var ce=zr.queue;if(H=ce.dispatch,J!==null&&(Y=J.get(ce),Y!==void 0)){J.delete(ce),ce=zr.memoizedState;do ce=I(ce,Y.action),Y=Y.next;while(Y!==null);return zr.memoizedState=ce,[ce,H]}return[zr.memoizedState,H]}return I=I===Ir?typeof H=="function"?H():H:Y!==void 0?Y(H):H,zr.memoizedState=I,I=zr.queue={last:null,dispatch:null},I=I.dispatch=fn.bind(null,ao,I),[zr.memoizedState,I]}function Lr(I,H){if(ao=ot(),zr=Qt(),H=H===void 0?null:H,zr!==null){var Y=zr.memoizedState;if(Y!==null&&H!==null){var ce=Y[1];e:if(ce===null)ce=!1;else{for(var Ge=0;Ge<ce.length&&Ge<H.length;Ge++)if(!Bi(H[Ge],ce[Ge])){ce=!1;break e}ce=!0}if(ce)return Y[0]}}return I=I(),zr.memoizedState=[I,H],I}function fn(I,H,Y){if(25<=xe)throw Error(e(301));if(I===ao)if(jr=!0,I={action:Y,next:null},J===null&&(J=new Map),Y=J.get(H),Y===void 0)J.set(H,I);else{for(H=Y;H.next!==null;)H=H.next;H.next=I}}function qn(){throw Error(e(394))}function nn(){}var Vr={readContext:function(I){return I._currentValue},useContext:function(I){return ot(),I._currentValue},useMemo:Lr,useReducer:Cr,useRef:function(I){ao=ot(),zr=Qt();var H=zr.memoizedState;return H===null?(I={current:I},zr.memoizedState=I):H},useState:function(I){return Cr(Ir,I)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(I,H){return Lr(function(){return I},H)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(I){return ot(),I},useTransition:function(){return ot(),[!1,qn]},useId:function(){var I=lo.treeContext,H=I.overflow;I=I.id,I=(I&~(1<<32-so(I)-1)).toString(32)+H;var Y=hn;if(Y===null)throw Error(e(404));return H=O++,I=":"+Y.idPrefix+"R"+I,0<H&&(I+="H"+H.toString(32)),I+":"},useMutableSource:function(I,H){return ot(),H(I._source)},useSyncExternalStore:function(I,H,Y){if(Y===void 0)throw Error(e(407));return Y()}},hn=null,go=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Eo(I){return console.error(I),null}function Jn(){}function Fi(I,H,Y,ce,Ge,He,gt,Ot,Jt){var Sr=[],gr=new Set;return H={destination:null,responseState:H,progressiveChunkSize:ce===void 0?12800:ce,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:gr,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ge===void 0?Eo:Ge,onAllReady:He===void 0?Jn:He,onShellReady:gt===void 0?Jn:gt,onShellError:Ot===void 0?Jn:Ot,onFatalError:Jt===void 0?Jn:Jt},Y=bn(H,0,null,Y,!1,!1),Y.parentFlushed=!0,I=ni(H,I,null,Y,gr,Wt,null,Ao),Sr.push(I),H}function ni(I,H,Y,ce,Ge,He,gt,Ot){I.allPendingTasks++,Y===null?I.pendingRootTasks++:Y.pendingTasks++;var Jt={node:H,ping:function(){var Sr=I.pingedTasks;Sr.push(Jt),Sr.length===1&&Zl(I)},blockedBoundary:Y,blockedSegment:ce,abortSet:Ge,legacyContext:He,context:gt,treeContext:Ot};return Ge.add(Jt),Jt}function bn(I,H,Y,ce,Ge,He){return{status:0,id:-1,index:H,parentFlushed:!1,chunks:[],children:[],formatContext:ce,boundary:Y,lastPushedText:Ge,textEmbedded:He}}function Ns(I,H){if(I=I.onError(H),I!=null&&typeof I!="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 I+'" instead');return I}function Qn(I,H){var Y=I.onShellError;Y(H),Y=I.onFatalError,Y(H),I.destination!==null?(I.status=2,p(I.destination,H)):(I.status=1,I.fatalError=H)}function Vl(I,H,Y,ce,Ge){for(ao={},lo=H,O=0,I=Y(ce,Ge);jr;)jr=!1,O=0,xe+=1,zr=null,I=Y(ce,Ge);return _r(),I}function ll(I,H,Y,ce){var Ge=Y.render(),He=ce.childContextTypes;if(He!=null){var gt=H.legacyContext;if(typeof Y.getChildContext!="function")ce=gt;else{Y=Y.getChildContext();for(var Ot in Y)if(!(Ot in He))throw Error(e(108,kt(ce)||"Unknown",Ot));ce=In({},gt,Y)}H.legacyContext=ce,eo(I,H,Ge),H.legacyContext=gt}else eo(I,H,Ge)}function oi(I,H){if(I&&I.defaultProps){H=In({},H),I=I.defaultProps;for(var Y in I)H[Y]===void 0&&(H[Y]=I[Y]);return H}return H}function ji(I,H,Y,ce,Ge){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){Ge=Zt(Y,H.legacyContext);var He=Y.contextType;He=new Y(ce,typeof He=="object"&&He!==null?He._currentValue:Ge),dn(He,Y,ce,Ge),ll(I,H,He,Y)}else{He=Zt(Y,H.legacyContext),Ge=Vl(I,H,Y,ce,He);var gt=O!==0;if(typeof Ge=="object"&&Ge!==null&&typeof Ge.render=="function"&&Ge.$$typeof===void 0)dn(Ge,Y,ce,He),ll(I,H,Ge,Y);else if(gt){ce=H.treeContext,H.treeContext=Xn(ce,1,0);try{eo(I,H,Ge)}finally{H.treeContext=ce}}else eo(I,H,Ge)}else if(typeof Y=="string"){switch(Ge=H.blockedSegment,He=Oe(Ge.chunks,Y,ce,I.responseState,Ge.formatContext),Ge.lastPushedText=!1,gt=Ge.formatContext,Ge.formatContext=de(gt,Y,ce),Po(I,H,He),Ge.formatContext=gt,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:Ge.chunks.push(st,u(Y),mt)}Ge.lastPushedText=!1}else{switch(Y){case $e:case le:case Oo:case Hn:case Do:eo(I,H,ce.children);return;case En:eo(I,H,ce.children);return;case X:throw Error(e(343));case yn:e:{Y=H.blockedBoundary,Ge=H.blockedSegment,He=ce.fallback,ce=ce.children,gt=new Set;var Ot={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:gt,errorDigest:null},Jt=bn(I,Ge.chunks.length,Ot,Ge.formatContext,!1,!1);Ge.children.push(Jt),Ge.lastPushedText=!1;var Sr=bn(I,0,null,Ge.formatContext,!1,!1);Sr.parentFlushed=!0,H.blockedBoundary=Ot,H.blockedSegment=Sr;try{if(Po(I,H,ce),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(me),Sr.status=1,as(Ot,Sr),Ot.pendingTasks===0)break e}catch(gr){Sr.status=4,Ot.forceClientRender=!0,Ot.errorDigest=Ns(I,gr)}finally{H.blockedBoundary=Y,H.blockedSegment=Ge}H=ni(I,He,Y,Jt,gt,H.legacyContext,H.context,H.treeContext),I.pingedTasks.push(H)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case io:if(ce=Vl(I,H,Y.render,ce,Ge),O!==0){Y=H.treeContext,H.treeContext=Xn(Y,1,0);try{eo(I,H,ce)}finally{H.treeContext=Y}}else eo(I,H,ce);return;case k:Y=Y.type,ce=oi(Y,ce),ji(I,H,Y,ce,Ge);return;case Fn:if(Ge=ce.children,Y=Y._context,ce=ce.value,He=Y._currentValue,Y._currentValue=ce,gt=Yt,Yt=ce={parent:gt,depth:gt===null?0:gt.depth+1,context:Y,parentValue:He,value:ce},H.context=ce,eo(I,H,Ge),I=Yt,I===null)throw Error(e(403));ce=I.parentValue,I.context._currentValue=ce===Fe?I.context._defaultValue:ce,I=Yt=I.parent,H.context=I;return;case Cn:ce=ce.children,ce=ce(Y._currentValue),eo(I,H,ce);return;case $:Ge=Y._init,Y=Ge(Y._payload),ce=oi(Y,ce),ji(I,H,Y,ce,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function eo(I,H,Y){if(H.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Bn:ji(I,H,Y.type,Y.props,Y.ref);return;case _o:throw Error(e(257));case $:var ce=Y._init;Y=ce(Y._payload),eo(I,H,Y);return}if(fe(Y)){ln(I,H,Y);return}if(Y===null||typeof Y!="object"?ce=null:(ce=nt&&Y[nt]||Y["@@iterator"],ce=typeof ce=="function"?ce:null),ce&&(ce=ce.call(Y))){if(Y=ce.next(),!Y.done){var Ge=[];do Ge.push(Y.value),Y=ce.next();while(!Y.done);ln(I,H,Ge)}return}throw I=Object.prototype.toString.call(Y),Error(e(31,I==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":I))}typeof Y=="string"?(ce=H.blockedSegment,ce.lastPushedText=Ae(H.blockedSegment.chunks,Y,I.responseState,ce.lastPushedText)):typeof Y=="number"&&(ce=H.blockedSegment,ce.lastPushedText=Ae(H.blockedSegment.chunks,""+Y,I.responseState,ce.lastPushedText))}function ln(I,H,Y){for(var ce=Y.length,Ge=0;Ge<ce;Ge++){var He=H.treeContext;H.treeContext=Xn(He,ce,Ge);try{Po(I,H,Y[Ge])}finally{H.treeContext=He}}}function Po(I,H,Y){var ce=H.blockedSegment.formatContext,Ge=H.legacyContext,He=H.context;try{return eo(I,H,Y)}catch(Jt){if(_r(),typeof Jt=="object"&&Jt!==null&&typeof Jt.then=="function"){Y=Jt;var gt=H.blockedSegment,Ot=bn(I,gt.chunks.length,null,gt.formatContext,gt.lastPushedText,!0);gt.children.push(Ot),gt.lastPushedText=!1,I=ni(I,H.node,H.blockedBoundary,Ot,H.abortSet,H.legacyContext,H.context,H.treeContext).ping,Y.then(I,I),H.blockedSegment.formatContext=ce,H.legacyContext=Ge,H.context=He,Kn(He)}else throw H.blockedSegment.formatContext=ce,H.legacyContext=Ge,H.context=He,Kn(He),Jt}}function cl(I){var H=I.blockedBoundary;I=I.blockedSegment,I.status=3,Yl(this,H,I)}function Gl(I,H,Y){var ce=I.blockedBoundary;I.blockedSegment.status=3,ce===null?(H.allPendingTasks--,H.status!==2&&(H.status=2,H.destination!==null&&H.destination.close())):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,I=Y===void 0?Error(e(432)):Y,ce.errorDigest=H.onError(I),ce.parentFlushed&&H.clientRenderedBoundaries.push(ce)),ce.fallbackAbortableTasks.forEach(function(Ge){return Gl(Ge,H,Y)}),ce.fallbackAbortableTasks.clear(),H.allPendingTasks--,H.allPendingTasks===0&&(ce=H.onAllReady,ce()))}function as(I,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(I,Y)}else I.completedSegments.push(H)}function Yl(I,H,Y){if(H===null){if(Y.parentFlushed){if(I.completedRootSegment!==null)throw Error(e(389));I.completedRootSegment=Y}I.pendingRootTasks--,I.pendingRootTasks===0&&(I.onShellError=Jn,H=I.onShellReady,H())}else H.pendingTasks--,H.forceClientRender||(H.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&as(H,Y),H.parentFlushed&&I.completedBoundaries.push(H),H.fallbackAbortableTasks.forEach(cl,I),H.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(as(H,Y),H.completedSegments.length===1&&H.parentFlushed&&I.partialBoundaries.push(H)));I.allPendingTasks--,I.allPendingTasks===0&&(I=I.onAllReady,I())}function Zl(I){if(I.status!==2){var H=Yt,Y=go.current;go.current=Vr;var ce=hn;hn=I.responseState;try{var Ge=I.pingedTasks,He;for(He=0;He<Ge.length;He++){var gt=Ge[He],Ot=I,Jt=gt.blockedSegment;if(Jt.status===0){Kn(gt.context);try{eo(Ot,gt,gt.node),Jt.lastPushedText&&Jt.textEmbedded&&Jt.chunks.push(me),gt.abortSet.delete(gt),Jt.status=1,Yl(Ot,gt.blockedBoundary,Jt)}catch(Fo){if(_r(),typeof Fo=="object"&&Fo!==null&&typeof Fo.then=="function"){var Sr=gt.ping;Fo.then(Sr,Sr)}else{gt.abortSet.delete(gt),Jt.status=4;var gr=gt.blockedBoundary,on=Fo,co=Ns(Ot,on);if(gr===null?Qn(Ot,on):(gr.pendingTasks--,gr.forceClientRender||(gr.forceClientRender=!0,gr.errorDigest=co,gr.parentFlushed&&Ot.clientRenderedBoundaries.push(gr))),Ot.allPendingTasks--,Ot.allPendingTasks===0){var Bo=Ot.onAllReady;Bo()}}}finally{}}}Ge.splice(0,He),I.destination!==null&&Ca(I,I.destination)}catch(Fo){Ns(I,Fo),Qn(I,Fo)}finally{hn=ce,go.current=Y,Y===Vr&&Kn(H)}}}function wa(I,H,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var ce=Y.id=I.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,I=I.responseState,o(H,ut),o(H,I.placeholderPrefix),I=u(ce.toString(16)),o(H,I),i(H,Lt);case 1:Y.status=2;var Ge=!0;ce=Y.chunks;var He=0;Y=Y.children;for(var gt=0;gt<Y.length;gt++){for(Ge=Y[gt];He<Ge.index;He++)o(H,ce[He]);Ge=Ps(I,H,Ge)}for(;He<ce.length-1;He++)o(H,ce[He]);return He<ce.length&&(Ge=i(H,ce[He])),Ge;default:throw Error(e(390))}}function Ps(I,H,Y){var ce=Y.boundary;if(ce===null)return wa(I,H,Y);if(ce.parentFlushed=!0,ce.forceClientRender)ce=ce.errorDigest,i(H,ar),o(H,cr),ce&&(o(H,ae),o(H,u(z(ce))),o(H,Te)),i(H,it),wa(I,H,Y);else if(0<ce.pendingTasks){ce.rootSegmentID=I.nextSegmentId++,0<ce.completedSegments.length&&I.partialBoundaries.push(ce);var Ge=I.responseState,He=Ge.nextSuspenseID++;Ge=f(Ge.boundaryPrefix+He.toString(16)),ce=ce.id=Ge,bt(H,I.responseState,ce),wa(I,H,Y)}else if(ce.byteSize>I.progressiveChunkSize)ce.rootSegmentID=I.nextSegmentId++,I.completedBoundaries.push(ce),bt(H,I.responseState,ce.id),wa(I,H,Y);else{if(i(H,Bt),Y=ce.completedSegments,Y.length!==1)throw Error(e(391));Ps(I,H,Y[0])}return i(H,Kt)}function Bs(I,H,Y){return Ee(H,I.responseState,Y.formatContext,Y.id),Ps(I,H,Y),qe(H,Y.formatContext)}function zi(I,H,Y){for(var ce=Y.completedSegments,Ge=0;Ge<ce.length;Ge++)Kl(I,H,Y,ce[Ge]);if(ce.length=0,I=I.responseState,ce=Y.id,Y=Y.rootSegmentID,o(H,I.startInlineScript),I.sentCompleteBoundaryFunction?o(H,wt):(I.sentCompleteBoundaryFunction=!0,o(H,ct)),ce===null)throw Error(e(395));return Y=u(Y.toString(16)),o(H,ce),o(H,fr),o(H,I.segmentPrefix),o(H,Y),i(H,Fr)}function Kl(I,H,Y,ce){if(ce.status===2)return!0;var Ge=ce.id;if(Ge===-1){if((ce.id=Y.rootSegmentID)===-1)throw Error(e(392));return Bs(I,H,ce)}return Bs(I,H,ce),I=I.responseState,o(H,I.startInlineScript),I.sentCompleteSegmentFunction?o(H,$t):(I.sentCompleteSegmentFunction=!0,o(H,Tt)),o(H,I.segmentPrefix),Ge=u(Ge.toString(16)),o(H,Ge),o(H,_t),o(H,I.placeholderPrefix),o(H,Ge),i(H,he)}function Ca(I,H){t=new Uint8Array(512),n=0;try{var Y=I.completedRootSegment;if(Y!==null&&I.pendingRootTasks===0){Ps(I,H,Y),I.completedRootSegment=null;var ce=I.responseState.bootstrapChunks;for(Y=0;Y<ce.length-1;Y++)o(H,ce[Y]);Y<ce.length&&i(H,ce[Y])}var Ge=I.clientRenderedBoundaries,He;for(He=0;He<Ge.length;He++){var gt=Ge[He];ce=H;var Ot=I.responseState,Jt=gt.id,Sr=gt.errorDigest,gr=gt.errorMessage,on=gt.errorComponentStack;if(o(ce,Ot.startInlineScript),Ot.sentClientRenderFunction?o(ce,xr):(Ot.sentClientRenderFunction=!0,o(ce,ur)),Jt===null)throw Error(e(395));o(ce,Jt),o(ce,tn),(Sr||gr||on)&&(o(ce,Pn),o(ce,u(rn(Sr||"")))),(gr||on)&&(o(ce,Pn),o(ce,u(rn(gr||"")))),on&&(o(ce,Pn),o(ce,u(rn(on)))),i(ce,sn)}Ge.splice(0,He);var co=I.completedBoundaries;for(He=0;He<co.length;He++)zi(I,H,co[He]);co.splice(0,He),a(H),t=new Uint8Array(512),n=0;var Bo=I.partialBoundaries;for(He=0;He<Bo.length;He++){var Fo=Bo[He];e:{Ge=I,gt=H;var Sa=Fo.completedSegments;for(Ot=0;Ot<Sa.length;Ot++)if(!Kl(Ge,gt,Fo,Sa[Ot])){Ot++,Sa.splice(0,Ot);var Xl=!1;break e}Sa.splice(0,Ot),Xl=!0}if(!Xl){I.destination=null,He++,Bo.splice(0,He);return}}Bo.splice(0,He);var Fs=I.completedBoundaries;for(He=0;He<Fs.length;He++)zi(I,H,Fs[He]);Fs.splice(0,He)}finally{a(H),I.allPendingTasks===0&&I.pingedTasks.length===0&&I.clientRenderedBoundaries.length===0&&I.completedBoundaries.length===0&&H.close()}}function ul(I,H){try{var Y=I.abortableTasks;Y.forEach(function(ce){return Gl(ce,I,H)}),Y.clear(),I.destination!==null&&Ca(I,I.destination)}catch(ce){Ns(I,ce),Qn(I,ce)}}return sp.renderToReadableStream=function(I,H){return new Promise(function(Y,ce){var Ge,He,gt=new Promise(function(gr,on){He=gr,Ge=on}),Ot=Fi(I,ne(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),ie(H?H.namespaceURI:void 0),H?H.progressiveChunkSize:void 0,H?H.onError:void 0,He,function(){var gr=new ReadableStream({type:"bytes",pull:function(on){if(Ot.status===1)Ot.status=2,p(on,Ot.fatalError);else if(Ot.status!==2&&Ot.destination===null){Ot.destination=on;try{Ca(Ot,on)}catch(co){Ns(Ot,co),Qn(Ot,co)}}},cancel:function(){ul(Ot)}},{highWaterMark:0});gr.allReady=gt,Y(gr)},function(gr){gt.catch(function(){}),ce(gr)},Ge);if(H&&H.signal){var Jt=H.signal,Sr=function(){ul(Ot,Jt.reason),Jt.removeEventListener("abort",Sr)};Jt.addEventListener("abort",Sr)}Zl(Ot)})},sp.version="18.3.1",sp}var Nu={};/**
|
|
83
|
+
`&&I.push(Xe),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":I.push(lt(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:Je(I,ce,Bo,He)}return I.push(Ze),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 Ne(I,Y,H,ce);case"html":return Ge.insertionMode===0&&I.push(st),Ne(I,Y,H,ce);default:if(H.indexOf("-")===-1&&typeof Y.is!="string")return Ne(I,Y,H,ce);I.push(lt(H)),gt=He=null;for(Sr in Y)if(m.call(Y,Sr)&&(Ot=Y[Sr],Ot!=null))switch(Sr){case"children":He=Ot;break;case"dangerouslySetInnerHTML":gt=Ot;break;case"style":Le(I,ce,Ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:T(Sr)&&typeof Ot!="function"&&typeof Ot!="symbol"&&I.push(Ce,u(Sr),Se,u(z(Ot)),Ie)}return I.push(Qe),Ke(I,gt,He),He}}var at=f("</"),mt=f(">"),ut=f('<template id="'),Dt=f('"></template>'),Bt=f("<!--$-->"),Pt=f('<!--$?--><template id="'),Xt=f('"></template>'),ar=f("<!--$!-->"),Kt=f("<!--/$-->"),cr=f("<template"),Te=f('"'),ae=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var it=f("></template>");function bt(I,H,Y){if(o(I,Pt),Y===null)throw Error(e(395));return o(I,Y),i(I,Xt)}var qt=f('<div hidden id="'),Ft=f('">'),Lt=f("</div>"),Ht=f('<svg aria-hidden="true" style="display:none" id="'),Ue=f('">'),dt=f("</svg>"),yt=f('<math aria-hidden="true" style="display:none" id="'),Et=f('">'),Nt=f("</math>"),rt=f('<table hidden id="'),St=f('">'),jt=f("</table>"),tr=f('<table hidden><tbody id="'),Ut=f('">'),br=f("</tbody></table>"),Nr=f('<table hidden><tr id="'),pr=f('">'),pe=f("</tr></table>"),pt=f('<table hidden><colgroup id="'),It=f('">'),je=f("</colgroup></table>");function Ee(I,H,Y,ce){switch(Y.insertionMode){case 0:case 1:return o(I,qt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Ft);case 2:return o(I,Ht),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Ue);case 3:return o(I,yt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Et);case 4:return o(I,rt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,St);case 5:return o(I,tr),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,Ut);case 6:return o(I,Nr),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,pr);case 7:return o(I,pt),o(I,H.segmentPrefix),o(I,u(ce.toString(16))),i(I,It);default:throw Error(e(397))}}function qe(I,H){switch(H.insertionMode){case 0:case 1:return i(I,Lt);case 2:return i(I,dt);case 3:return i(I,Nt);case 4:return i(I,jt);case 5:return i(I,br);case 6:return i(I,pe);case 7:return i(I,je);default:throw Error(e(397))}}var Tt=f('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("'),$t=f('$RS("'),_t=f('","'),he=f('")<\/script>'),ct=f('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=f('$RC("'),fr=f('","'),Fr=f('")<\/script>'),ur=f('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("'),xr=f('$RX("'),tn=f('"'),sn=f(")<\/script>"),Pn=f(","),Hr=/[<\u2028\u2029]/g;function rn(I){return JSON.stringify(I).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 In=Object.assign,Bn=Symbol.for("react.element"),_o=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),Oo=Symbol.for("react.strict_mode"),Hn=Symbol.for("react.profiler"),Fn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),io=Symbol.for("react.forward_ref"),yn=Symbol.for("react.suspense"),En=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.scope"),le=Symbol.for("react.debug_trace_mode"),$e=Symbol.for("react.legacy_hidden"),Fe=Symbol.for("react.default_value"),nt=Symbol.iterator;function kt(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case Do:return"Fragment";case _o:return"Portal";case Hn:return"Profiler";case Oo:return"StrictMode";case yn:return"Suspense";case En:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case Cn:return(I.displayName||"Context")+".Consumer";case Fn:return(I._context.displayName||"Context")+".Provider";case io:var H=I.render;return I=I.displayName,I||(I=H.displayName||H.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case k:return H=I.displayName||null,H!==null?H:kt(I.type)||"Memo";case $:H=I._payload,I=I._init;try{return kt(I(H))}catch{}}return null}var Wt={};function Zt(I,H){if(I=I.contextTypes,!I)return Wt;var Y={},ce;for(ce in I)Y[ce]=H[ce];return Y}var Yt=null;function kr(I,H){if(I!==H){I.context._currentValue=I.parentValue,I=I.parent;var Y=H.parent;if(I===null){if(Y!==null)throw Error(e(401))}else{if(Y===null)throw Error(e(401));kr(I,Y)}H.context._currentValue=H.value}}function an(I){I.context._currentValue=I.parentValue,I=I.parent,I!==null&&an(I)}function Mn(I){var H=I.parent;H!==null&&Mn(H),I.context._currentValue=I.value}function Ln(I,H){if(I.context._currentValue=I.parentValue,I=I.parent,I===null)throw Error(e(402));I.depth===H.depth?kr(I,H):Ln(I,H)}function po(I,H){var Y=H.parent;if(Y===null)throw Error(e(402));I.depth===Y.depth?kr(I,Y):po(I,Y),H.context._currentValue=H.value}function Kn(I){var H=Yt;H!==I&&(H===null?Mn(I):I===null?an(H):H.depth===I.depth?kr(H,I):H.depth>I.depth?Ln(H,I):po(H,I),Yt=I)}var No={isMounted:function(){return!1},enqueueSetState:function(I,H){I=I._reactInternals,I.queue!==null&&I.queue.push(H)},enqueueReplaceState:function(I,H){I=I._reactInternals,I.replace=!0,I.queue=[H]},enqueueForceUpdate:function(){}};function dn(I,H,Y,ce){var Ge=I.state!==void 0?I.state:null;I.updater=No,I.props=Y,I.state=Ge;var He={queue:[],replace:!1};I._reactInternals=He;var gt=H.contextType;if(I.context=typeof gt=="object"&>!==null?gt._currentValue:ce,gt=H.getDerivedStateFromProps,typeof gt=="function"&&(gt=gt(Y,Ge),Ge=gt==null?Ge:In({},Ge,gt),I.state=Ge),typeof H.getDerivedStateFromProps!="function"&&typeof I.getSnapshotBeforeUpdate!="function"&&(typeof I.UNSAFE_componentWillMount=="function"||typeof I.componentWillMount=="function"))if(H=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),H!==I.state&&No.enqueueReplaceState(I,I.state,null),He.queue!==null&&0<He.queue.length)if(H=He.queue,gt=He.replace,He.queue=null,He.replace=!1,gt&&H.length===1)I.state=H[0];else{for(He=gt?H[0]:I.state,Ge=!0,gt=gt?1:0;gt<H.length;gt++){var Ot=H[gt];Ot=typeof Ot=="function"?Ot.call(I,He,Y,ce):Ot,Ot!=null&&(Ge?(Ge=!1,He=In({},He,Ot)):In(He,Ot))}I.state=He}else He.queue=null}var Ao={id:1,overflow:""};function Xn(I,H,Y){var ce=I.id;I=I.overflow;var Ge=32-so(ce)-1;ce&=~(1<<Ge),Y+=1;var He=32-so(H)+Ge;if(30<He){var gt=Ge-Ge%5;return He=(ce&(1<<gt)-1).toString(32),ce>>=gt,Ge-=gt,{id:1<<32-so(H)+Ge|Y<<Ge|ce,overflow:He+I}}return{id:1<<He|Y<<Ge|ce,overflow:I}}var so=Math.clz32?Math.clz32:bi,Pi=Math.log,yi=Math.LN2;function bi(I){return I>>>=0,I===0?32:31-(Pi(I)/yi|0)|0}function $n(I,H){return I===H&&(I!==0||1/I===1/H)||I!==I&&H!==H}var Bi=typeof Object.is=="function"?Object.is:$n,ao=null,lo=null,ri=null,zr=null,Mr=!1,jr=!1,O=0,J=null,xe=0;function ot(){if(ao===null)throw Error(e(321));return ao}function ir(){if(0<xe)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Qt(){return zr===null?ri===null?(Mr=!1,ri=zr=ir()):(Mr=!0,zr=ri):zr.next===null?(Mr=!1,zr=zr.next=ir()):(Mr=!0,zr=zr.next),zr}function _r(){lo=ao=null,jr=!1,ri=null,xe=0,zr=J=null}function Ir(I,H){return typeof H=="function"?H(I):H}function Cr(I,H,Y){if(ao=ot(),zr=Qt(),Mr){var ce=zr.queue;if(H=ce.dispatch,J!==null&&(Y=J.get(ce),Y!==void 0)){J.delete(ce),ce=zr.memoizedState;do ce=I(ce,Y.action),Y=Y.next;while(Y!==null);return zr.memoizedState=ce,[ce,H]}return[zr.memoizedState,H]}return I=I===Ir?typeof H=="function"?H():H:Y!==void 0?Y(H):H,zr.memoizedState=I,I=zr.queue={last:null,dispatch:null},I=I.dispatch=fn.bind(null,ao,I),[zr.memoizedState,I]}function Lr(I,H){if(ao=ot(),zr=Qt(),H=H===void 0?null:H,zr!==null){var Y=zr.memoizedState;if(Y!==null&&H!==null){var ce=Y[1];e:if(ce===null)ce=!1;else{for(var Ge=0;Ge<ce.length&&Ge<H.length;Ge++)if(!Bi(H[Ge],ce[Ge])){ce=!1;break e}ce=!0}if(ce)return Y[0]}}return I=I(),zr.memoizedState=[I,H],I}function fn(I,H,Y){if(25<=xe)throw Error(e(301));if(I===ao)if(jr=!0,I={action:Y,next:null},J===null&&(J=new Map),Y=J.get(H),Y===void 0)J.set(H,I);else{for(H=Y;H.next!==null;)H=H.next;H.next=I}}function qn(){throw Error(e(394))}function nn(){}var Vr={readContext:function(I){return I._currentValue},useContext:function(I){return ot(),I._currentValue},useMemo:Lr,useReducer:Cr,useRef:function(I){ao=ot(),zr=Qt();var H=zr.memoizedState;return H===null?(I={current:I},zr.memoizedState=I):H},useState:function(I){return Cr(Ir,I)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(I,H){return Lr(function(){return I},H)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(I){return ot(),I},useTransition:function(){return ot(),[!1,qn]},useId:function(){var I=lo.treeContext,H=I.overflow;I=I.id,I=(I&~(1<<32-so(I)-1)).toString(32)+H;var Y=hn;if(Y===null)throw Error(e(404));return H=O++,I=":"+Y.idPrefix+"R"+I,0<H&&(I+="H"+H.toString(32)),I+":"},useMutableSource:function(I,H){return ot(),H(I._source)},useSyncExternalStore:function(I,H,Y){if(Y===void 0)throw Error(e(407));return Y()}},hn=null,go=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Eo(I){return console.error(I),null}function Jn(){}function Fi(I,H,Y,ce,Ge,He,gt,Ot,Jt){var Sr=[],gr=new Set;return H={destination:null,responseState:H,progressiveChunkSize:ce===void 0?12800:ce,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:gr,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ge===void 0?Eo:Ge,onAllReady:He===void 0?Jn:He,onShellReady:gt===void 0?Jn:gt,onShellError:Ot===void 0?Jn:Ot,onFatalError:Jt===void 0?Jn:Jt},Y=bn(H,0,null,Y,!1,!1),Y.parentFlushed=!0,I=ni(H,I,null,Y,gr,Wt,null,Ao),Sr.push(I),H}function ni(I,H,Y,ce,Ge,He,gt,Ot){I.allPendingTasks++,Y===null?I.pendingRootTasks++:Y.pendingTasks++;var Jt={node:H,ping:function(){var Sr=I.pingedTasks;Sr.push(Jt),Sr.length===1&&Zl(I)},blockedBoundary:Y,blockedSegment:ce,abortSet:Ge,legacyContext:He,context:gt,treeContext:Ot};return Ge.add(Jt),Jt}function bn(I,H,Y,ce,Ge,He){return{status:0,id:-1,index:H,parentFlushed:!1,chunks:[],children:[],formatContext:ce,boundary:Y,lastPushedText:Ge,textEmbedded:He}}function Ns(I,H){if(I=I.onError(H),I!=null&&typeof I!="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 I+'" instead');return I}function Qn(I,H){var Y=I.onShellError;Y(H),Y=I.onFatalError,Y(H),I.destination!==null?(I.status=2,p(I.destination,H)):(I.status=1,I.fatalError=H)}function Vl(I,H,Y,ce,Ge){for(ao={},lo=H,O=0,I=Y(ce,Ge);jr;)jr=!1,O=0,xe+=1,zr=null,I=Y(ce,Ge);return _r(),I}function ll(I,H,Y,ce){var Ge=Y.render(),He=ce.childContextTypes;if(He!=null){var gt=H.legacyContext;if(typeof Y.getChildContext!="function")ce=gt;else{Y=Y.getChildContext();for(var Ot in Y)if(!(Ot in He))throw Error(e(108,kt(ce)||"Unknown",Ot));ce=In({},gt,Y)}H.legacyContext=ce,eo(I,H,Ge),H.legacyContext=gt}else eo(I,H,Ge)}function oi(I,H){if(I&&I.defaultProps){H=In({},H),I=I.defaultProps;for(var Y in I)H[Y]===void 0&&(H[Y]=I[Y]);return H}return H}function ji(I,H,Y,ce,Ge){if(typeof Y=="function")if(Y.prototype&&Y.prototype.isReactComponent){Ge=Zt(Y,H.legacyContext);var He=Y.contextType;He=new Y(ce,typeof He=="object"&&He!==null?He._currentValue:Ge),dn(He,Y,ce,Ge),ll(I,H,He,Y)}else{He=Zt(Y,H.legacyContext),Ge=Vl(I,H,Y,ce,He);var gt=O!==0;if(typeof Ge=="object"&&Ge!==null&&typeof Ge.render=="function"&&Ge.$$typeof===void 0)dn(Ge,Y,ce,He),ll(I,H,Ge,Y);else if(gt){ce=H.treeContext,H.treeContext=Xn(ce,1,0);try{eo(I,H,Ge)}finally{H.treeContext=ce}}else eo(I,H,Ge)}else if(typeof Y=="string"){switch(Ge=H.blockedSegment,He=De(Ge.chunks,Y,ce,I.responseState,Ge.formatContext),Ge.lastPushedText=!1,gt=Ge.formatContext,Ge.formatContext=de(gt,Y,ce),Po(I,H,He),Ge.formatContext=gt,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:Ge.chunks.push(at,u(Y),mt)}Ge.lastPushedText=!1}else{switch(Y){case $e:case le:case Oo:case Hn:case Do:eo(I,H,ce.children);return;case En:eo(I,H,ce.children);return;case X:throw Error(e(343));case yn:e:{Y=H.blockedBoundary,Ge=H.blockedSegment,He=ce.fallback,ce=ce.children,gt=new Set;var Ot={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:gt,errorDigest:null},Jt=bn(I,Ge.chunks.length,Ot,Ge.formatContext,!1,!1);Ge.children.push(Jt),Ge.lastPushedText=!1;var Sr=bn(I,0,null,Ge.formatContext,!1,!1);Sr.parentFlushed=!0,H.blockedBoundary=Ot,H.blockedSegment=Sr;try{if(Po(I,H,ce),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(me),Sr.status=1,as(Ot,Sr),Ot.pendingTasks===0)break e}catch(gr){Sr.status=4,Ot.forceClientRender=!0,Ot.errorDigest=Ns(I,gr)}finally{H.blockedBoundary=Y,H.blockedSegment=Ge}H=ni(I,He,Y,Jt,gt,H.legacyContext,H.context,H.treeContext),I.pingedTasks.push(H)}return}if(typeof Y=="object"&&Y!==null)switch(Y.$$typeof){case io:if(ce=Vl(I,H,Y.render,ce,Ge),O!==0){Y=H.treeContext,H.treeContext=Xn(Y,1,0);try{eo(I,H,ce)}finally{H.treeContext=Y}}else eo(I,H,ce);return;case k:Y=Y.type,ce=oi(Y,ce),ji(I,H,Y,ce,Ge);return;case Fn:if(Ge=ce.children,Y=Y._context,ce=ce.value,He=Y._currentValue,Y._currentValue=ce,gt=Yt,Yt=ce={parent:gt,depth:gt===null?0:gt.depth+1,context:Y,parentValue:He,value:ce},H.context=ce,eo(I,H,Ge),I=Yt,I===null)throw Error(e(403));ce=I.parentValue,I.context._currentValue=ce===Fe?I.context._defaultValue:ce,I=Yt=I.parent,H.context=I;return;case Cn:ce=ce.children,ce=ce(Y._currentValue),eo(I,H,ce);return;case $:Ge=Y._init,Y=Ge(Y._payload),ce=oi(Y,ce),ji(I,H,Y,ce,void 0);return}throw Error(e(130,Y==null?Y:typeof Y,""))}}function eo(I,H,Y){if(H.node=Y,typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Bn:ji(I,H,Y.type,Y.props,Y.ref);return;case _o:throw Error(e(257));case $:var ce=Y._init;Y=ce(Y._payload),eo(I,H,Y);return}if(fe(Y)){ln(I,H,Y);return}if(Y===null||typeof Y!="object"?ce=null:(ce=nt&&Y[nt]||Y["@@iterator"],ce=typeof ce=="function"?ce:null),ce&&(ce=ce.call(Y))){if(Y=ce.next(),!Y.done){var Ge=[];do Ge.push(Y.value),Y=ce.next();while(!Y.done);ln(I,H,Ge)}return}throw I=Object.prototype.toString.call(Y),Error(e(31,I==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":I))}typeof Y=="string"?(ce=H.blockedSegment,ce.lastPushedText=Ae(H.blockedSegment.chunks,Y,I.responseState,ce.lastPushedText)):typeof Y=="number"&&(ce=H.blockedSegment,ce.lastPushedText=Ae(H.blockedSegment.chunks,""+Y,I.responseState,ce.lastPushedText))}function ln(I,H,Y){for(var ce=Y.length,Ge=0;Ge<ce;Ge++){var He=H.treeContext;H.treeContext=Xn(He,ce,Ge);try{Po(I,H,Y[Ge])}finally{H.treeContext=He}}}function Po(I,H,Y){var ce=H.blockedSegment.formatContext,Ge=H.legacyContext,He=H.context;try{return eo(I,H,Y)}catch(Jt){if(_r(),typeof Jt=="object"&&Jt!==null&&typeof Jt.then=="function"){Y=Jt;var gt=H.blockedSegment,Ot=bn(I,gt.chunks.length,null,gt.formatContext,gt.lastPushedText,!0);gt.children.push(Ot),gt.lastPushedText=!1,I=ni(I,H.node,H.blockedBoundary,Ot,H.abortSet,H.legacyContext,H.context,H.treeContext).ping,Y.then(I,I),H.blockedSegment.formatContext=ce,H.legacyContext=Ge,H.context=He,Kn(He)}else throw H.blockedSegment.formatContext=ce,H.legacyContext=Ge,H.context=He,Kn(He),Jt}}function cl(I){var H=I.blockedBoundary;I=I.blockedSegment,I.status=3,Yl(this,H,I)}function Gl(I,H,Y){var ce=I.blockedBoundary;I.blockedSegment.status=3,ce===null?(H.allPendingTasks--,H.status!==2&&(H.status=2,H.destination!==null&&H.destination.close())):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,I=Y===void 0?Error(e(432)):Y,ce.errorDigest=H.onError(I),ce.parentFlushed&&H.clientRenderedBoundaries.push(ce)),ce.fallbackAbortableTasks.forEach(function(Ge){return Gl(Ge,H,Y)}),ce.fallbackAbortableTasks.clear(),H.allPendingTasks--,H.allPendingTasks===0&&(ce=H.onAllReady,ce()))}function as(I,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(I,Y)}else I.completedSegments.push(H)}function Yl(I,H,Y){if(H===null){if(Y.parentFlushed){if(I.completedRootSegment!==null)throw Error(e(389));I.completedRootSegment=Y}I.pendingRootTasks--,I.pendingRootTasks===0&&(I.onShellError=Jn,H=I.onShellReady,H())}else H.pendingTasks--,H.forceClientRender||(H.pendingTasks===0?(Y.parentFlushed&&Y.status===1&&as(H,Y),H.parentFlushed&&I.completedBoundaries.push(H),H.fallbackAbortableTasks.forEach(cl,I),H.fallbackAbortableTasks.clear()):Y.parentFlushed&&Y.status===1&&(as(H,Y),H.completedSegments.length===1&&H.parentFlushed&&I.partialBoundaries.push(H)));I.allPendingTasks--,I.allPendingTasks===0&&(I=I.onAllReady,I())}function Zl(I){if(I.status!==2){var H=Yt,Y=go.current;go.current=Vr;var ce=hn;hn=I.responseState;try{var Ge=I.pingedTasks,He;for(He=0;He<Ge.length;He++){var gt=Ge[He],Ot=I,Jt=gt.blockedSegment;if(Jt.status===0){Kn(gt.context);try{eo(Ot,gt,gt.node),Jt.lastPushedText&&Jt.textEmbedded&&Jt.chunks.push(me),gt.abortSet.delete(gt),Jt.status=1,Yl(Ot,gt.blockedBoundary,Jt)}catch(Fo){if(_r(),typeof Fo=="object"&&Fo!==null&&typeof Fo.then=="function"){var Sr=gt.ping;Fo.then(Sr,Sr)}else{gt.abortSet.delete(gt),Jt.status=4;var gr=gt.blockedBoundary,on=Fo,co=Ns(Ot,on);if(gr===null?Qn(Ot,on):(gr.pendingTasks--,gr.forceClientRender||(gr.forceClientRender=!0,gr.errorDigest=co,gr.parentFlushed&&Ot.clientRenderedBoundaries.push(gr))),Ot.allPendingTasks--,Ot.allPendingTasks===0){var Bo=Ot.onAllReady;Bo()}}}finally{}}}Ge.splice(0,He),I.destination!==null&&Ca(I,I.destination)}catch(Fo){Ns(I,Fo),Qn(I,Fo)}finally{hn=ce,go.current=Y,Y===Vr&&Kn(H)}}}function wa(I,H,Y){switch(Y.parentFlushed=!0,Y.status){case 0:var ce=Y.id=I.nextSegmentId++;return Y.lastPushedText=!1,Y.textEmbedded=!1,I=I.responseState,o(H,ut),o(H,I.placeholderPrefix),I=u(ce.toString(16)),o(H,I),i(H,Dt);case 1:Y.status=2;var Ge=!0;ce=Y.chunks;var He=0;Y=Y.children;for(var gt=0;gt<Y.length;gt++){for(Ge=Y[gt];He<Ge.index;He++)o(H,ce[He]);Ge=Ps(I,H,Ge)}for(;He<ce.length-1;He++)o(H,ce[He]);return He<ce.length&&(Ge=i(H,ce[He])),Ge;default:throw Error(e(390))}}function Ps(I,H,Y){var ce=Y.boundary;if(ce===null)return wa(I,H,Y);if(ce.parentFlushed=!0,ce.forceClientRender)ce=ce.errorDigest,i(H,ar),o(H,cr),ce&&(o(H,ae),o(H,u(z(ce))),o(H,Te)),i(H,it),wa(I,H,Y);else if(0<ce.pendingTasks){ce.rootSegmentID=I.nextSegmentId++,0<ce.completedSegments.length&&I.partialBoundaries.push(ce);var Ge=I.responseState,He=Ge.nextSuspenseID++;Ge=f(Ge.boundaryPrefix+He.toString(16)),ce=ce.id=Ge,bt(H,I.responseState,ce),wa(I,H,Y)}else if(ce.byteSize>I.progressiveChunkSize)ce.rootSegmentID=I.nextSegmentId++,I.completedBoundaries.push(ce),bt(H,I.responseState,ce.id),wa(I,H,Y);else{if(i(H,Bt),Y=ce.completedSegments,Y.length!==1)throw Error(e(391));Ps(I,H,Y[0])}return i(H,Kt)}function Bs(I,H,Y){return Ee(H,I.responseState,Y.formatContext,Y.id),Ps(I,H,Y),qe(H,Y.formatContext)}function zi(I,H,Y){for(var ce=Y.completedSegments,Ge=0;Ge<ce.length;Ge++)Kl(I,H,Y,ce[Ge]);if(ce.length=0,I=I.responseState,ce=Y.id,Y=Y.rootSegmentID,o(H,I.startInlineScript),I.sentCompleteBoundaryFunction?o(H,wt):(I.sentCompleteBoundaryFunction=!0,o(H,ct)),ce===null)throw Error(e(395));return Y=u(Y.toString(16)),o(H,ce),o(H,fr),o(H,I.segmentPrefix),o(H,Y),i(H,Fr)}function Kl(I,H,Y,ce){if(ce.status===2)return!0;var Ge=ce.id;if(Ge===-1){if((ce.id=Y.rootSegmentID)===-1)throw Error(e(392));return Bs(I,H,ce)}return Bs(I,H,ce),I=I.responseState,o(H,I.startInlineScript),I.sentCompleteSegmentFunction?o(H,$t):(I.sentCompleteSegmentFunction=!0,o(H,Tt)),o(H,I.segmentPrefix),Ge=u(Ge.toString(16)),o(H,Ge),o(H,_t),o(H,I.placeholderPrefix),o(H,Ge),i(H,he)}function Ca(I,H){t=new Uint8Array(512),n=0;try{var Y=I.completedRootSegment;if(Y!==null&&I.pendingRootTasks===0){Ps(I,H,Y),I.completedRootSegment=null;var ce=I.responseState.bootstrapChunks;for(Y=0;Y<ce.length-1;Y++)o(H,ce[Y]);Y<ce.length&&i(H,ce[Y])}var Ge=I.clientRenderedBoundaries,He;for(He=0;He<Ge.length;He++){var gt=Ge[He];ce=H;var Ot=I.responseState,Jt=gt.id,Sr=gt.errorDigest,gr=gt.errorMessage,on=gt.errorComponentStack;if(o(ce,Ot.startInlineScript),Ot.sentClientRenderFunction?o(ce,xr):(Ot.sentClientRenderFunction=!0,o(ce,ur)),Jt===null)throw Error(e(395));o(ce,Jt),o(ce,tn),(Sr||gr||on)&&(o(ce,Pn),o(ce,u(rn(Sr||"")))),(gr||on)&&(o(ce,Pn),o(ce,u(rn(gr||"")))),on&&(o(ce,Pn),o(ce,u(rn(on)))),i(ce,sn)}Ge.splice(0,He);var co=I.completedBoundaries;for(He=0;He<co.length;He++)zi(I,H,co[He]);co.splice(0,He),a(H),t=new Uint8Array(512),n=0;var Bo=I.partialBoundaries;for(He=0;He<Bo.length;He++){var Fo=Bo[He];e:{Ge=I,gt=H;var Sa=Fo.completedSegments;for(Ot=0;Ot<Sa.length;Ot++)if(!Kl(Ge,gt,Fo,Sa[Ot])){Ot++,Sa.splice(0,Ot);var Xl=!1;break e}Sa.splice(0,Ot),Xl=!0}if(!Xl){I.destination=null,He++,Bo.splice(0,He);return}}Bo.splice(0,He);var Fs=I.completedBoundaries;for(He=0;He<Fs.length;He++)zi(I,H,Fs[He]);Fs.splice(0,He)}finally{a(H),I.allPendingTasks===0&&I.pingedTasks.length===0&&I.clientRenderedBoundaries.length===0&&I.completedBoundaries.length===0&&H.close()}}function ul(I,H){try{var Y=I.abortableTasks;Y.forEach(function(ce){return Gl(ce,I,H)}),Y.clear(),I.destination!==null&&Ca(I,I.destination)}catch(ce){Ns(I,ce),Qn(I,ce)}}return sp.renderToReadableStream=function(I,H){return new Promise(function(Y,ce){var Ge,He,gt=new Promise(function(gr,on){He=gr,Ge=on}),Ot=Fi(I,ne(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),ie(H?H.namespaceURI:void 0),H?H.progressiveChunkSize:void 0,H?H.onError:void 0,He,function(){var gr=new ReadableStream({type:"bytes",pull:function(on){if(Ot.status===1)Ot.status=2,p(on,Ot.fatalError);else if(Ot.status!==2&&Ot.destination===null){Ot.destination=on;try{Ca(Ot,on)}catch(co){Ns(Ot,co),Qn(Ot,co)}}},cancel:function(){ul(Ot)}},{highWaterMark:0});gr.allReady=gt,Y(gr)},function(gr){gt.catch(function(){}),ce(gr)},Ge);if(H&&H.signal){var Jt=H.signal,Sr=function(){ul(Ot,Jt.reason),Jt.removeEventListener("abort",Sr)};Jt.addEventListener("abort",Sr)}Zl(Ot)})},sp.version="18.3.1",sp}var Nu={};/**
|
|
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 m0;function T4(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(l){{for(var h=arguments.length,v=new Array(h>1?h-1:0),E=1;E<h;E++)v[E-1]=arguments[E];i("warn",l,v)}}function o(l){{for(var h=arguments.length,v=new Array(h>1?h-1:0),E=1;E<h;E++)v[E-1]=arguments[E];i("error",l,v)}}function i(l,h,v){{var E=t.ReactDebugCurrentFrame,N=E.getStackAddendum();N!==""&&(h+="%s",v=v.concat([N]));var q=v.map(function(K){return String(K)});q.unshift("Warning: "+h),Function.prototype.apply.call(console[l],console,q)}}function a(l){l()}function c(l){}function u(l,h){f(l,h)}function f(l,h){return l.push(h)}function p(l){}function m(l){l.push(null)}function g(l){return l}function b(l){return l}function w(l,h){l.destroy(h)}function T(l){{var h=typeof Symbol=="function"&&Symbol.toStringTag,v=h&&l[Symbol.toStringTag]||l.constructor.name||"Object";return v}}function A(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function R(l,h){if(A(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.",h,T(l)),_(l)}function D(l,h){if(A(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.",h,T(l)),_(l)}function M(l){if(A(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)),_(l)}var F=Object.prototype.hasOwnProperty,B=0,z=1,j=2,G=3,fe=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+"]*$"),te={},re={};function ne(l){return F.call(re,l)?!0:F.call(te,l)?!1:se.test(l)?(re[l]=!0,!0):(te[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function be(l,h,v,E){if(v!==null&&v.type===B)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":{if(v!==null)return!v.acceptsBooleans;var N=l.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function ie(l){return me.hasOwnProperty(l)?me[l]:null}function de(l,h,v,E,N,q,K){this.acceptsBooleans=h===j||h===G||h===fe,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=v,this.propertyName=l,this.type=h,this.sanitizeURL=q,this.removeEmptyString=K}var me={},Ae=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ae.forEach(function(l){me[l]=new de(l,B,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var h=l[0],v=l[1];me[h]=new de(h,z,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){me[l]=new de(l,j,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){me[l]=new de(l,j,!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){me[l]=new de(l,G,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){me[l]=new de(l,G,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){me[l]=new de(l,fe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){me[l]=new de(l,U,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){me[l]=new de(l,P,!1,l.toLowerCase(),null,!1,!1)});var De=/[\-\:]([a-z])/g,oe=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 h=l.replace(De,oe);me[h]=new de(h,z,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var h=l.replace(De,oe);me[h]=new de(h,z,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var h=l.replace(De,oe);me[h]=new de(h,z,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){me[l]=new de(l,z,!1,l.toLowerCase(),null,!1,!1)});var ge="xlinkHref";me[ge]=new de("xlinkHref",z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){me[l]=new de(l,z,!1,l.toLowerCase(),null,!0,!0)});var we={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 Le(l,h){return l+h.charAt(0).toUpperCase()+h.substring(1)}var Ce=["Webkit","ms","Moz","O"];Object.keys(we).forEach(function(l){Ce.forEach(function(h){we[Le(h,l)]=we[l]})});var Se={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ie(l,h){Se[h.type]||h.onChange||h.onInput||h.readOnly||h.disabled||h.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`."),h.onChange||h.readOnly||h.disabled||h.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 et(l,h){if(l.indexOf("-")===-1)return typeof h.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 Je={"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},Qe={},Ze=new RegExp("^(aria)-["+Q+"]*$"),Ke=new RegExp("^(aria)[A-Z]["+Q+"]*$");function ht(l,h){{if(F.call(Qe,h)&&Qe[h])return!0;if(Ke.test(h)){var v="aria-"+h.slice(4).toLowerCase(),E=Je.hasOwnProperty(v)?v:null;if(E==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",h),Qe[h]=!0,!0;if(h!==E)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",h,E),Qe[h]=!0,!0}if(Ze.test(h)){var N=h.toLowerCase(),q=Je.hasOwnProperty(N)?N:null;if(q==null)return Qe[h]=!0,!1;if(h!==q)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",h,q),Qe[h]=!0,!0}}return!0}function Pe(l,h){{var v=[];for(var E in h){var N=ht(l,E);N||v.push(E)}var q=v.map(function(K){return"`"+K+"`"}).join(", ");v.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l):v.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l)}}function Ne(l,h){et(l,h)||Pe(l,h)}var Xe=!1;function We(l,h){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;h!=null&&h.value===null&&!Xe&&(Xe=!0,l==="select"&&h.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 Ve={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"},at=function(){};{var lt={},Oe=/^on./,st=/^on[^A-Z]/,mt=new RegExp("^(aria)-["+Q+"]*$"),ut=new RegExp("^(aria)[A-Z]["+Q+"]*$");at=function(l,h,v,E){if(F.call(lt,h)&<[h])return!0;var N=h.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."),lt[h]=!0,!0;if(E!=null){var q=E.registrationNameDependencies,K=E.possibleRegistrationNames;if(q.hasOwnProperty(h))return!0;var ve=K.hasOwnProperty(N)?K[N]:null;if(ve!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",h,ve),lt[h]=!0,!0;if(Oe.test(h))return o("Unknown event handler property `%s`. It will be ignored.",h),lt[h]=!0,!0}else if(Oe.test(h))return st.test(h)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",h),lt[h]=!0,!0;if(mt.test(h)||ut.test(h))return!0;if(N==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lt[h]=!0,!0;if(N==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lt[h]=!0,!0;if(N==="is"&&v!==null&&v!==void 0&&typeof v!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof v),lt[h]=!0,!0;if(typeof v=="number"&&isNaN(v))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",h),lt[h]=!0,!0;var ze=ie(h),vt=ze!==null&&ze.type===B;if(Ve.hasOwnProperty(N)){var Rt=Ve[N];if(Rt!==h)return o("Invalid DOM property `%s`. Did you mean `%s`?",h,Rt),lt[h]=!0,!0}else if(!vt&&h!==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.",h,N),lt[h]=!0,!0;return typeof v=="boolean"&&be(h,v,ze)?(v?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()}.',v,h,h,v,h):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.',v,h,h,v,h,h,h),lt[h]=!0,!0):vt?!0:be(h,v,ze)?(lt[h]=!0,!1):((v==="false"||v==="true")&&ze!==null&&ze.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",v,h,v==="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".',h,v),lt[h]=!0),!0)}}var Lt=function(l,h,v){{var E=[];for(var N in h){var q=at(l,N,h[N],v);q||E.push(N)}var K=E.map(function(ve){return"`"+ve+"`"}).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 Bt(l,h,v){et(l,h)||Lt(l,h,v)}var Pt=function(){};{var Xt=/^(?:webkit|moz|o)[A-Z]/,ar=/^-ms-/,Kt=/-(.)/g,cr=/;\s*$/,Te={},ae={},it=!1,bt=!1,qt=function(l){return l.replace(Kt,function(h,v){return v.toUpperCase()})},Ft=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,qt(l.replace(ar,"ms-"))))},Dt=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)))},Ht=function(l,h){ae.hasOwnProperty(h)&&ae[h]||(ae[h]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,h.replace(cr,"")))},Ue=function(l,h){it||(it=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},dt=function(l,h){bt||(bt=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Pt=function(l,h){l.indexOf("-")>-1?Ft(l):Xt.test(l)?Dt(l):cr.test(h)&&Ht(l,h),typeof h=="number"&&(isNaN(h)?Ue(l,h):isFinite(h)||dt(l,h))}}var yt=Pt,Et=/["'&<>]/;function Nt(l){M(l);var h=""+l,v=Et.exec(h);if(!v)return h;var E,N="",q,K=0;for(q=v.index;q<h.length;q++){switch(h.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+=h.substring(K,q)),K=q+1,N+=E}return K!==q?N+h.substring(K,q):N}function rt(l){return typeof l=="boolean"||typeof l=="number"?""+l:Nt(l)}var St=/([A-Z])/g,jt=/^ms-/;function tr(l){return l.replace(St,"-$1").toLowerCase().replace(jt,"-ms-")}var Ut=/^[\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,br=!1;function Nr(l){!br&&Ut.test(l)&&(br=!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 pr=Array.isArray;function pe(l){return pr(l)}var pt="<script>";function It(l,h,v,E,N){var q=l===void 0?"":l,K=pt,ve=[];return{bootstrapChunks:ve,startInlineScript:K,placeholderPrefix:q+"P:",segmentPrefix:q+"S:",boundaryPrefix:q+"B:",idPrefix:q,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var je=0,Ee=1,qe=2,Tt=3,$t=4,_t=5,he=6,ct=7;function wt(l,h){return{insertionMode:l,selectedValue:h}}function fr(l,h,v){switch(h){case"select":return wt(Ee,v.value!=null?v.value:v.defaultValue);case"svg":return wt(qe,null);case"math":return wt(Tt,null);case"foreignObject":return wt(Ee,null);case"table":return wt($t,null);case"thead":case"tbody":case"tfoot":return wt(_t,null);case"colgroup":return wt(ct,null);case"tr":return wt(he,null)}return l.insertionMode>=$t||l.insertionMode===je?wt(Ee,null):l}var Fr=null;function ur(l){var h=l.nextSuspenseID++;return l.boundaryPrefix+h.toString(16)}function xr(l,h,v){var E=l.idPrefix,N=":"+E+"R"+h;return v>0&&(N+="H"+v.toString(32)),N+":"}function tn(l){return rt(l)}var sn="<!-- -->";function Pn(l,h,v,E){return h===""?E:(E&&l.push(sn),l.push(tn(h)),!0)}function Hr(l,h,v,E){v&&E&&l.push(sn)}var rn=new Map;function In(l){var h=rn.get(l);if(h!==void 0)return h;var v=rt(tr(l));return rn.set(l,v),v}var Bn=' style="',_o=":",Do=";";function Oo(l,h,v){if(typeof v!="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 v)if(F.call(v,N)){var q=v[N];if(!(q==null||typeof q=="boolean"||q==="")){var K=void 0,ve=void 0,ze=N.indexOf("--")===0;ze?(K=rt(N),D(q,N),ve=rt((""+q).trim())):(yt(N,q),K=In(N),typeof q=="number"?q!==0&&!F.call(we,N)?ve=q+"px":ve=""+q:(D(q,N),ve=rt((""+q).trim()))),E?(E=!1,l.push(Bn,K,_o,ve)):l.push(Do,K,_o,ve)}}E||l.push(Cn)}var Hn=" ",Fn='="',Cn='"',io='=""';function yn(l,h,v,E){switch(v){case"style":{Oo(l,h,E);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(v.length>2&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N"))){var N=ie(v);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(Hn,K,io);return;case fe:E===!0?l.push(Hn,K,io):E===!1||l.push(Hn,K,Fn,rt(E),Cn);return;case P:isNaN(E)||l.push(Hn,K,Fn,rt(E),Cn);break;case U:!isNaN(E)&&E>=1&&l.push(Hn,K,Fn,rt(E),Cn);break;default:N.sanitizeURL&&(R(E,q),E=""+E,Nr(E)),l.push(Hn,K,Fn,rt(E),Cn)}}else if(ne(v)){switch(typeof E){case"function":case"symbol":return;case"boolean":{var ve=v.toLowerCase().slice(0,5);if(ve!=="data-"&&ve!=="aria-")return}}l.push(Hn,v,Fn,rt(E),Cn)}}}var En=">",k="/>";function $(l,h,v){if(h!=null){if(v!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof h!="object"||!("__html"in h))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=h.__html;E!=null&&(M(E),l.push(""+E))}}var X=!1,le=!1,$e=!1,Fe=!1,nt=!1,kt=!1,Wt=!1;function Zt(l,h){{var v=l[h];if(v!=null){var E=pe(v);l.multiple&&!E?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",h):!l.multiple&&E&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",h)}}}function Yt(l,h,v){Ie("select",h),Zt(h,"value"),Zt(h,"defaultValue"),h.value!==void 0&&h.defaultValue!==void 0&&!$e&&(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"),$e=!0),l.push($n("select"));var E=null,N=null;for(var q in h)if(F.call(h,q)){var K=h[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"defaultValue":case"value":break;default:yn(l,v,q,K);break}}return l.push(En),$(l,N,E),E}function kr(l){var h="";return r.Children.forEach(l,function(v){v!=null&&(h+=v,!nt&&typeof v!="string"&&typeof v!="number"&&(nt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),h}var an=' selected=""';function Mn(l,h,v,E){var N=E.selectedValue;l.push($n("option"));var q=null,K=null,ve=null,ze=null;for(var vt in h)if(F.call(h,vt)){var Rt=h[vt];if(Rt==null)continue;switch(vt){case"children":q=Rt;break;case"selected":ve=Rt,Wt||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Wt=!0);break;case"dangerouslySetInnerHTML":ze=Rt;break;case"value":K=Rt;default:yn(l,v,vt,Rt);break}}if(N!=null){var zt;if(K!==null?(R(K,"value"),zt=""+K):(ze!==null&&(kt||(kt=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),zt=kr(q)),pe(N))for(var dr=0;dr<N.length;dr++){R(N[dr],"value");var Gr=""+N[dr];if(Gr===zt){l.push(an);break}}else R(N,"select.value"),""+N===zt&&l.push(an)}else ve&&l.push(an);return l.push(En),$(l,ze,q),q}function Ln(l,h,v){Ie("input",h),h.checked!==void 0&&h.defaultChecked!==void 0&&!le&&(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",h.type),le=!0),h.value!==void 0&&h.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",h.type),X=!0),l.push($n("input"));var E=null,N=null,q=null,K=null;for(var ve in h)if(F.call(h,ve)){var ze=h[ve];if(ze==null)continue;switch(ve){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":K=ze;break;case"defaultValue":N=ze;break;case"checked":q=ze;break;case"value":E=ze;break;default:yn(l,v,ve,ze);break}}return q!==null?yn(l,v,"checked",q):K!==null&&yn(l,v,"checked",K),E!==null?yn(l,v,"value",E):N!==null&&yn(l,v,"value",N),l.push(k),null}function po(l,h,v){Ie("textarea",h),h.value!==void 0&&h.defaultValue!==void 0&&!Fe&&(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"),Fe=!0),l.push($n("textarea"));var E=null,N=null,q=null;for(var K in h)if(F.call(h,K)){var ve=h[K];if(ve==null)continue;switch(K){case"children":q=ve;break;case"value":E=ve;break;case"defaultValue":N=ve;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:yn(l,v,K,ve);break}}if(E===null&&N!==null&&(E=N),l.push(En),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(pe(q)){if(q.length>1)throw new Error("<textarea> can only have at most one child.");M(q[0]),E=""+q[0]}M(q),E=""+q}return typeof E=="string"&&E[0]===`
|
|
91
|
+
*/var m0;function T4(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(l){{for(var h=arguments.length,v=new Array(h>1?h-1:0),E=1;E<h;E++)v[E-1]=arguments[E];i("warn",l,v)}}function o(l){{for(var h=arguments.length,v=new Array(h>1?h-1:0),E=1;E<h;E++)v[E-1]=arguments[E];i("error",l,v)}}function i(l,h,v){{var E=t.ReactDebugCurrentFrame,N=E.getStackAddendum();N!==""&&(h+="%s",v=v.concat([N]));var q=v.map(function(K){return String(K)});q.unshift("Warning: "+h),Function.prototype.apply.call(console[l],console,q)}}function a(l){l()}function c(l){}function u(l,h){f(l,h)}function f(l,h){return l.push(h)}function p(l){}function m(l){l.push(null)}function g(l){return l}function b(l){return l}function w(l,h){l.destroy(h)}function T(l){{var h=typeof Symbol=="function"&&Symbol.toStringTag,v=h&&l[Symbol.toStringTag]||l.constructor.name||"Object";return v}}function A(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function R(l,h){if(A(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.",h,T(l)),_(l)}function D(l,h){if(A(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.",h,T(l)),_(l)}function M(l){if(A(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)),_(l)}var F=Object.prototype.hasOwnProperty,B=0,z=1,j=2,G=3,fe=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+"]*$"),te={},re={};function ne(l){return F.call(re,l)?!0:F.call(te,l)?!1:se.test(l)?(re[l]=!0,!0):(te[l]=!0,o("Invalid attribute name: `%s`",l),!1)}function be(l,h,v,E){if(v!==null&&v.type===B)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":{if(v!==null)return!v.acceptsBooleans;var N=l.toLowerCase().slice(0,5);return N!=="data-"&&N!=="aria-"}default:return!1}}function ie(l){return me.hasOwnProperty(l)?me[l]:null}function de(l,h,v,E,N,q,K){this.acceptsBooleans=h===j||h===G||h===fe,this.attributeName=E,this.attributeNamespace=N,this.mustUseProperty=v,this.propertyName=l,this.type=h,this.sanitizeURL=q,this.removeEmptyString=K}var me={},Ae=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ae.forEach(function(l){me[l]=new de(l,B,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var h=l[0],v=l[1];me[h]=new de(h,z,!1,v,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){me[l]=new de(l,j,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){me[l]=new de(l,j,!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){me[l]=new de(l,G,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){me[l]=new de(l,G,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){me[l]=new de(l,fe,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){me[l]=new de(l,U,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){me[l]=new de(l,P,!1,l.toLowerCase(),null,!1,!1)});var Oe=/[\-\:]([a-z])/g,oe=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 h=l.replace(Oe,oe);me[h]=new de(h,z,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var h=l.replace(Oe,oe);me[h]=new de(h,z,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var h=l.replace(Oe,oe);me[h]=new de(h,z,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){me[l]=new de(l,z,!1,l.toLowerCase(),null,!1,!1)});var ge="xlinkHref";me[ge]=new de("xlinkHref",z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){me[l]=new de(l,z,!1,l.toLowerCase(),null,!0,!0)});var we={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 Le(l,h){return l+h.charAt(0).toUpperCase()+h.substring(1)}var Ce=["Webkit","ms","Moz","O"];Object.keys(we).forEach(function(l){Ce.forEach(function(h){we[Le(h,l)]=we[l]})});var Se={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ie(l,h){Se[h.type]||h.onChange||h.onInput||h.readOnly||h.disabled||h.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`."),h.onChange||h.readOnly||h.disabled||h.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 et(l,h){if(l.indexOf("-")===-1)return typeof h.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 Je={"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},Qe={},Ze=new RegExp("^(aria)-["+Q+"]*$"),Ke=new RegExp("^(aria)[A-Z]["+Q+"]*$");function ht(l,h){{if(F.call(Qe,h)&&Qe[h])return!0;if(Ke.test(h)){var v="aria-"+h.slice(4).toLowerCase(),E=Je.hasOwnProperty(v)?v:null;if(E==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",h),Qe[h]=!0,!0;if(h!==E)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",h,E),Qe[h]=!0,!0}if(Ze.test(h)){var N=h.toLowerCase(),q=Je.hasOwnProperty(N)?N:null;if(q==null)return Qe[h]=!0,!1;if(h!==q)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",h,q),Qe[h]=!0,!0}}return!0}function Pe(l,h){{var v=[];for(var E in h){var N=ht(l,E);N||v.push(E)}var q=v.map(function(K){return"`"+K+"`"}).join(", ");v.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l):v.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",q,l)}}function Ne(l,h){et(l,h)||Pe(l,h)}var Xe=!1;function We(l,h){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;h!=null&&h.value===null&&!Xe&&(Xe=!0,l==="select"&&h.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 Ve={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"},lt=function(){};{var st={},De=/^on./,at=/^on[^A-Z]/,mt=new RegExp("^(aria)-["+Q+"]*$"),ut=new RegExp("^(aria)[A-Z]["+Q+"]*$");lt=function(l,h,v,E){if(F.call(st,h)&&st[h])return!0;var N=h.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."),st[h]=!0,!0;if(E!=null){var q=E.registrationNameDependencies,K=E.possibleRegistrationNames;if(q.hasOwnProperty(h))return!0;var ve=K.hasOwnProperty(N)?K[N]:null;if(ve!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",h,ve),st[h]=!0,!0;if(De.test(h))return o("Unknown event handler property `%s`. It will be ignored.",h),st[h]=!0,!0}else if(De.test(h))return at.test(h)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",h),st[h]=!0,!0;if(mt.test(h)||ut.test(h))return!0;if(N==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),st[h]=!0,!0;if(N==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),st[h]=!0,!0;if(N==="is"&&v!==null&&v!==void 0&&typeof v!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof v),st[h]=!0,!0;if(typeof v=="number"&&isNaN(v))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",h),st[h]=!0,!0;var ze=ie(h),vt=ze!==null&&ze.type===B;if(Ve.hasOwnProperty(N)){var Rt=Ve[N];if(Rt!==h)return o("Invalid DOM property `%s`. Did you mean `%s`?",h,Rt),st[h]=!0,!0}else if(!vt&&h!==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.",h,N),st[h]=!0,!0;return typeof v=="boolean"&&be(h,v,ze)?(v?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()}.',v,h,h,v,h):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.',v,h,h,v,h,h,h),st[h]=!0,!0):vt?!0:be(h,v,ze)?(st[h]=!0,!1):((v==="false"||v==="true")&&ze!==null&&ze.type===G&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",v,h,v==="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".',h,v),st[h]=!0),!0)}}var Dt=function(l,h,v){{var E=[];for(var N in h){var q=lt(l,N,h[N],v);q||E.push(N)}var K=E.map(function(ve){return"`"+ve+"`"}).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 Bt(l,h,v){et(l,h)||Dt(l,h,v)}var Pt=function(){};{var Xt=/^(?:webkit|moz|o)[A-Z]/,ar=/^-ms-/,Kt=/-(.)/g,cr=/;\s*$/,Te={},ae={},it=!1,bt=!1,qt=function(l){return l.replace(Kt,function(h,v){return v.toUpperCase()})},Ft=function(l){Te.hasOwnProperty(l)&&Te[l]||(Te[l]=!0,o("Unsupported style property %s. Did you mean %s?",l,qt(l.replace(ar,"ms-"))))},Lt=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)))},Ht=function(l,h){ae.hasOwnProperty(h)&&ae[h]||(ae[h]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,h.replace(cr,"")))},Ue=function(l,h){it||(it=!0,o("`NaN` is an invalid value for the `%s` css style property.",l))},dt=function(l,h){bt||(bt=!0,o("`Infinity` is an invalid value for the `%s` css style property.",l))};Pt=function(l,h){l.indexOf("-")>-1?Ft(l):Xt.test(l)?Lt(l):cr.test(h)&&Ht(l,h),typeof h=="number"&&(isNaN(h)?Ue(l,h):isFinite(h)||dt(l,h))}}var yt=Pt,Et=/["'&<>]/;function Nt(l){M(l);var h=""+l,v=Et.exec(h);if(!v)return h;var E,N="",q,K=0;for(q=v.index;q<h.length;q++){switch(h.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+=h.substring(K,q)),K=q+1,N+=E}return K!==q?N+h.substring(K,q):N}function rt(l){return typeof l=="boolean"||typeof l=="number"?""+l:Nt(l)}var St=/([A-Z])/g,jt=/^ms-/;function tr(l){return l.replace(St,"-$1").toLowerCase().replace(jt,"-ms-")}var Ut=/^[\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,br=!1;function Nr(l){!br&&Ut.test(l)&&(br=!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 pr=Array.isArray;function pe(l){return pr(l)}var pt="<script>";function It(l,h,v,E,N){var q=l===void 0?"":l,K=pt,ve=[];return{bootstrapChunks:ve,startInlineScript:K,placeholderPrefix:q+"P:",segmentPrefix:q+"S:",boundaryPrefix:q+"B:",idPrefix:q,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var je=0,Ee=1,qe=2,Tt=3,$t=4,_t=5,he=6,ct=7;function wt(l,h){return{insertionMode:l,selectedValue:h}}function fr(l,h,v){switch(h){case"select":return wt(Ee,v.value!=null?v.value:v.defaultValue);case"svg":return wt(qe,null);case"math":return wt(Tt,null);case"foreignObject":return wt(Ee,null);case"table":return wt($t,null);case"thead":case"tbody":case"tfoot":return wt(_t,null);case"colgroup":return wt(ct,null);case"tr":return wt(he,null)}return l.insertionMode>=$t||l.insertionMode===je?wt(Ee,null):l}var Fr=null;function ur(l){var h=l.nextSuspenseID++;return l.boundaryPrefix+h.toString(16)}function xr(l,h,v){var E=l.idPrefix,N=":"+E+"R"+h;return v>0&&(N+="H"+v.toString(32)),N+":"}function tn(l){return rt(l)}var sn="<!-- -->";function Pn(l,h,v,E){return h===""?E:(E&&l.push(sn),l.push(tn(h)),!0)}function Hr(l,h,v,E){v&&E&&l.push(sn)}var rn=new Map;function In(l){var h=rn.get(l);if(h!==void 0)return h;var v=rt(tr(l));return rn.set(l,v),v}var Bn=' style="',_o=":",Do=";";function Oo(l,h,v){if(typeof v!="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 v)if(F.call(v,N)){var q=v[N];if(!(q==null||typeof q=="boolean"||q==="")){var K=void 0,ve=void 0,ze=N.indexOf("--")===0;ze?(K=rt(N),D(q,N),ve=rt((""+q).trim())):(yt(N,q),K=In(N),typeof q=="number"?q!==0&&!F.call(we,N)?ve=q+"px":ve=""+q:(D(q,N),ve=rt((""+q).trim()))),E?(E=!1,l.push(Bn,K,_o,ve)):l.push(Do,K,_o,ve)}}E||l.push(Cn)}var Hn=" ",Fn='="',Cn='"',io='=""';function yn(l,h,v,E){switch(v){case"style":{Oo(l,h,E);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(v.length>2&&(v[0]==="o"||v[0]==="O")&&(v[1]==="n"||v[1]==="N"))){var N=ie(v);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(Hn,K,io);return;case fe:E===!0?l.push(Hn,K,io):E===!1||l.push(Hn,K,Fn,rt(E),Cn);return;case P:isNaN(E)||l.push(Hn,K,Fn,rt(E),Cn);break;case U:!isNaN(E)&&E>=1&&l.push(Hn,K,Fn,rt(E),Cn);break;default:N.sanitizeURL&&(R(E,q),E=""+E,Nr(E)),l.push(Hn,K,Fn,rt(E),Cn)}}else if(ne(v)){switch(typeof E){case"function":case"symbol":return;case"boolean":{var ve=v.toLowerCase().slice(0,5);if(ve!=="data-"&&ve!=="aria-")return}}l.push(Hn,v,Fn,rt(E),Cn)}}}var En=">",k="/>";function $(l,h,v){if(h!=null){if(v!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof h!="object"||!("__html"in h))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=h.__html;E!=null&&(M(E),l.push(""+E))}}var X=!1,le=!1,$e=!1,Fe=!1,nt=!1,kt=!1,Wt=!1;function Zt(l,h){{var v=l[h];if(v!=null){var E=pe(v);l.multiple&&!E?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",h):!l.multiple&&E&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",h)}}}function Yt(l,h,v){Ie("select",h),Zt(h,"value"),Zt(h,"defaultValue"),h.value!==void 0&&h.defaultValue!==void 0&&!$e&&(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"),$e=!0),l.push($n("select"));var E=null,N=null;for(var q in h)if(F.call(h,q)){var K=h[q];if(K==null)continue;switch(q){case"children":E=K;break;case"dangerouslySetInnerHTML":N=K;break;case"defaultValue":case"value":break;default:yn(l,v,q,K);break}}return l.push(En),$(l,N,E),E}function kr(l){var h="";return r.Children.forEach(l,function(v){v!=null&&(h+=v,!nt&&typeof v!="string"&&typeof v!="number"&&(nt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),h}var an=' selected=""';function Mn(l,h,v,E){var N=E.selectedValue;l.push($n("option"));var q=null,K=null,ve=null,ze=null;for(var vt in h)if(F.call(h,vt)){var Rt=h[vt];if(Rt==null)continue;switch(vt){case"children":q=Rt;break;case"selected":ve=Rt,Wt||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Wt=!0);break;case"dangerouslySetInnerHTML":ze=Rt;break;case"value":K=Rt;default:yn(l,v,vt,Rt);break}}if(N!=null){var zt;if(K!==null?(R(K,"value"),zt=""+K):(ze!==null&&(kt||(kt=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),zt=kr(q)),pe(N))for(var dr=0;dr<N.length;dr++){R(N[dr],"value");var Gr=""+N[dr];if(Gr===zt){l.push(an);break}}else R(N,"select.value"),""+N===zt&&l.push(an)}else ve&&l.push(an);return l.push(En),$(l,ze,q),q}function Ln(l,h,v){Ie("input",h),h.checked!==void 0&&h.defaultChecked!==void 0&&!le&&(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",h.type),le=!0),h.value!==void 0&&h.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",h.type),X=!0),l.push($n("input"));var E=null,N=null,q=null,K=null;for(var ve in h)if(F.call(h,ve)){var ze=h[ve];if(ze==null)continue;switch(ve){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":K=ze;break;case"defaultValue":N=ze;break;case"checked":q=ze;break;case"value":E=ze;break;default:yn(l,v,ve,ze);break}}return q!==null?yn(l,v,"checked",q):K!==null&&yn(l,v,"checked",K),E!==null?yn(l,v,"value",E):N!==null&&yn(l,v,"value",N),l.push(k),null}function po(l,h,v){Ie("textarea",h),h.value!==void 0&&h.defaultValue!==void 0&&!Fe&&(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"),Fe=!0),l.push($n("textarea"));var E=null,N=null,q=null;for(var K in h)if(F.call(h,K)){var ve=h[K];if(ve==null)continue;switch(K){case"children":q=ve;break;case"value":E=ve;break;case"defaultValue":N=ve;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:yn(l,v,K,ve);break}}if(E===null&&N!==null&&(E=N),l.push(En),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(pe(q)){if(q.length>1)throw new Error("<textarea> can only have at most one child.");M(q[0]),E=""+q[0]}M(q),E=""+q}return typeof E=="string"&&E[0]===`
|
|
92
92
|
`&&l.push(so),E!==null&&(R(E,"value"),l.push(tn(""+E))),null}function Kn(l,h,v,E){l.push($n(v));for(var N in h)if(F.call(h,N)){var q=h[N];if(q==null)continue;switch(N){case"children":case"dangerouslySetInnerHTML":throw new Error(v+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:yn(l,E,N,q);break}}return l.push(k),null}function No(l,h,v){l.push($n("menuitem"));for(var E in h)if(F.call(h,E)){var N=h[E];if(N==null)continue;switch(E){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:yn(l,v,E,N);break}}return l.push(En),null}function dn(l,h,v){l.push($n("title"));var E=null;for(var N in h)if(F.call(h,N)){var q=h[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:yn(l,v,N,q);break}}l.push(En);{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,h,v,E){l.push($n(v));var N=null,q=null;for(var K in h)if(F.call(h,K)){var ve=h[K];if(ve==null)continue;switch(K){case"children":N=ve;break;case"dangerouslySetInnerHTML":q=ve;break;default:yn(l,E,K,ve);break}}return l.push(En),$(l,q,N),typeof N=="string"?(l.push(tn(N)),null):N}function Xn(l,h,v,E){l.push($n(v));var N=null,q=null;for(var K in h)if(F.call(h,K)){var ve=h[K];if(ve==null)continue;switch(K){case"children":N=ve;break;case"dangerouslySetInnerHTML":q=ve;break;case"style":Oo(l,E,ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ne(K)&&typeof ve!="function"&&typeof ve!="symbol"&&l.push(Hn,K,Fn,rt(ve),Cn);break}}return l.push(En),$(l,q,N),N}var so=`
|
|
93
93
|
`;function Pi(l,h,v,E){l.push($n(v));var N=null,q=null;for(var K in h)if(F.call(h,K)){var ve=h[K];if(ve==null)continue;switch(K){case"children":N=ve;break;case"dangerouslySetInnerHTML":q=ve;break;default:yn(l,E,K,ve);break}}if(l.push(En),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 ze=q.__html;ze!=null&&(typeof ze=="string"&&ze.length>0&&ze[0]===`
|
|
94
94
|
`?l.push(so,ze):(M(ze),l.push(""+ze)))}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 v0;function R4(){return v0||(v0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(y){{for(var l=arguments.length,h=new Array(l>1?l-1:0),v=1;v<l;v++)h[v-1]=arguments[v];i("warn",y,h)}}function o(y){{for(var l=arguments.length,h=new Array(l>1?l-1:0),v=1;v<l;v++)h[v-1]=arguments[v];i("error",y,h)}}function i(y,l,h){{var v=t.ReactDebugCurrentFrame,E=v.getStackAddendum();E!==""&&(l+="%s",h=h.concat([E]));var N=h.map(function(q){return String(q)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[y],console,N)}}function a(y){y()}var c=512,u=null,f=0;function p(y){u=new Uint8Array(c),f=0}function m(y,l){if(l.length!==0){if(l.length>c){f>0&&(y.enqueue(new Uint8Array(u.buffer,0,f)),u=new Uint8Array(c),f=0),y.enqueue(l);return}var h=l,v=u.length-f;v<h.length&&(v===0?y.enqueue(u):(u.set(h.subarray(0,v),f),y.enqueue(u),h=h.subarray(v)),u=new Uint8Array(c),f=0),u.set(h,f),f+=h.length}}function g(y,l){return m(y,l),!0}function b(y){u&&f>0&&(y.enqueue(new Uint8Array(u.buffer,0,f)),u=null,f=0)}function w(y){y.close()}var T=new TextEncoder;function A(y){return T.encode(y)}function _(y){return T.encode(y)}function R(y,l){typeof y.error=="function"?y.error(l):y.close()}function D(y){{var l=typeof Symbol=="function"&&Symbol.toStringTag,h=l&&y[Symbol.toStringTag]||y.constructor.name||"Object";return h}}function M(y){try{return F(y),!1}catch{return!0}}function F(y){return""+y}function B(y,l){if(M(y))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(y)),F(y)}function z(y,l){if(M(y))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(y)),F(y)}function j(y){if(M(y))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(y)),F(y)}var G=Object.prototype.hasOwnProperty,fe=0,P=1,U=2,V=3,Q=4,se=5,te=6,re=":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",ne=re+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("^["+re+"]["+ne+"]*$"),ie={},de={};function me(y){return G.call(de,y)?!0:G.call(ie,y)?!1:be.test(y)?(de[y]=!0,!0):(ie[y]=!0,o("Invalid attribute name: `%s`",y),!1)}function Ae(y,l,h,v){if(h!==null&&h.type===fe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var E=y.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function De(y){return ge.hasOwnProperty(y)?ge[y]:null}function oe(y,l,h,v,E,N,q){this.acceptsBooleans=l===U||l===V||l===Q,this.attributeName=v,this.attributeNamespace=E,this.mustUseProperty=h,this.propertyName=y,this.type=l,this.sanitizeURL=N,this.removeEmptyString=q}var ge={},we=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];we.forEach(function(y){ge[y]=new oe(y,fe,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var l=y[0],h=y[1];ge[l]=new oe(l,P,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){ge[y]=new oe(y,U,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){ge[y]=new oe(y,U,!1,y,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(y){ge[y]=new oe(y,V,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){ge[y]=new oe(y,V,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){ge[y]=new oe(y,Q,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){ge[y]=new oe(y,te,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){ge[y]=new oe(y,se,!1,y.toLowerCase(),null,!1,!1)});var Le=/[\-\:]([a-z])/g,Ce=function(y){return y[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(y){var l=y.replace(Le,Ce);ge[l]=new oe(l,P,!1,y,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(y){var l=y.replace(Le,Ce);ge[l]=new oe(l,P,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var l=y.replace(Le,Ce);ge[l]=new oe(l,P,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){ge[y]=new oe(y,P,!1,y.toLowerCase(),null,!1,!1)});var Se="xlinkHref";ge[Se]=new oe("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){ge[y]=new oe(y,P,!1,y.toLowerCase(),null,!0,!0)});var Ie={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 et(y,l){return y+l.charAt(0).toUpperCase()+l.substring(1)}var Je=["Webkit","ms","Moz","O"];Object.keys(Ie).forEach(function(y){Je.forEach(function(l){Ie[et(l,y)]=Ie[y]})});var Qe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ze(y,l){Qe[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 Ke(y,l){if(y.indexOf("-")===-1)return typeof l.is=="string";switch(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!1;default:return!0}}var ht={"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},Pe={},Ne=new RegExp("^(aria)-["+ne+"]*$"),Xe=new RegExp("^(aria)[A-Z]["+ne+"]*$");function We(y,l){{if(G.call(Pe,l)&&Pe[l])return!0;if(Xe.test(l)){var h="aria-"+l.slice(4).toLowerCase(),v=ht.hasOwnProperty(h)?h:null;if(v==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Pe[l]=!0,!0;if(l!==v)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,v),Pe[l]=!0,!0}if(Ne.test(l)){var E=l.toLowerCase(),N=ht.hasOwnProperty(E)?E:null;if(N==null)return Pe[l]=!0,!1;if(l!==N)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,N),Pe[l]=!0,!0}}return!0}function Ve(y,l){{var h=[];for(var v in l){var E=We(y,v);E||h.push(v)}var N=h.map(function(q){return"`"+q+"`"}).join(", ");h.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,y):h.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,y)}}function at(y,l){Ke(y,l)||Ve(y,l)}var lt=!1;function Oe(y,l){{if(y!=="input"&&y!=="textarea"&&y!=="select")return;l!=null&&l.value===null&&!lt&&(lt=!0,y==="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.",y):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",y))}}var st={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"},mt=function(){};{var ut={},Lt=/^on./,Bt=/^on[^A-Z]/,Pt=new RegExp("^(aria)-["+ne+"]*$"),Xt=new RegExp("^(aria)[A-Z]["+ne+"]*$");mt=function(y,l,h,v){if(G.call(ut,l)&&ut[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."),ut[l]=!0,!0;if(v!=null){var N=v.registrationNameDependencies,q=v.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),ut[l]=!0,!0;if(Lt.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),ut[l]=!0,!0}else if(Lt.test(l))return Bt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),ut[l]=!0,!0;if(Pt.test(l)||Xt.test(l))return!0;if(E==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ut[l]=!0,!0;if(E==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ut[l]=!0,!0;if(E==="is"&&h!==null&&h!==void 0&&typeof h!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),ut[l]=!0,!0;if(typeof h=="number"&&isNaN(h))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),ut[l]=!0,!0;var ve=De(l),ze=ve!==null&&ve.type===fe;if(st.hasOwnProperty(E)){var vt=st[E];if(vt!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,vt),ut[l]=!0,!0}else if(!ze&&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),ut[l]=!0,!0;return typeof h=="boolean"&&Ae(l,h,ve)?(h?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()}.',h,l,l,h,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.',h,l,l,h,l,l,l),ut[l]=!0,!0):ze?!0:Ae(l,h,ve)?(ut[l]=!0,!1):((h==="false"||h==="true")&&ve!==null&&ve.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,l,h==="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,h),ut[l]=!0),!0)}}var ar=function(y,l,h){{var v=[];for(var E in l){var N=mt(y,E,l[E],h);N||v.push(E)}var q=v.map(function(K){return"`"+K+"`"}).join(", ");v.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,y):v.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,y)}};function Kt(y,l,h){Ke(y,l)||ar(y,l,h)}var cr=function(){};{var Te=/^(?:webkit|moz|o)[A-Z]/,ae=/^-ms-/,it=/-(.)/g,bt=/;\s*$/,qt={},Ft={},Dt=!1,Ht=!1,Ue=function(y){return y.replace(it,function(l,h){return h.toUpperCase()})},dt=function(y){qt.hasOwnProperty(y)&&qt[y]||(qt[y]=!0,o("Unsupported style property %s. Did you mean %s?",y,Ue(y.replace(ae,"ms-"))))},yt=function(y){qt.hasOwnProperty(y)&&qt[y]||(qt[y]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",y,y.charAt(0).toUpperCase()+y.slice(1)))},Et=function(y,l){Ft.hasOwnProperty(l)&&Ft[l]||(Ft[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,y,l.replace(bt,"")))},Nt=function(y,l){Dt||(Dt=!0,o("`NaN` is an invalid value for the `%s` css style property.",y))},rt=function(y,l){Ht||(Ht=!0,o("`Infinity` is an invalid value for the `%s` css style property.",y))};cr=function(y,l){y.indexOf("-")>-1?dt(y):Te.test(y)?yt(y):bt.test(l)&&Et(y,l),typeof l=="number"&&(isNaN(l)?Nt(y,l):isFinite(l)||rt(y,l))}}var St=cr,jt=/["'&<>]/;function tr(y){j(y);var l=""+y,h=jt.exec(l);if(!h)return l;var v,E="",N,q=0;for(N=h.index;N<l.length;N++){switch(l.charCodeAt(N)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}q!==N&&(E+=l.substring(q,N)),q=N+1,E+=v}return q!==N?E+l.substring(q,N):E}function Ut(y){return typeof y=="boolean"||typeof y=="number"?""+y:tr(y)}var br=/([A-Z])/g,Nr=/^ms-/;function pr(y){return y.replace(br,"-$1").toLowerCase().replace(Nr,"-ms-")}var pe=/^[\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,pt=!1;function It(y){!pt&&pe.test(y)&&(pt=!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(y)))}var je=Array.isArray;function Ee(y){return je(y)}var qe=_("<script>"),Tt=_("<\/script>"),$t=_('<script src="'),_t=_('<script type="module" src="'),he=_('" async=""><\/script>');function ct(y){return j(y),(""+y).replace(wt,fr)}var wt=/(<\/|<)(s)(cript)/gi,fr=function(y,l,h,v){return""+l+(h==="s"?"\\u0073":"\\u0053")+v};function Fr(y,l,h,v,E){var N=y===void 0?"":y,q=l===void 0?qe:_('<script nonce="'+Ut(l)+'">'),K=[];if(h!==void 0&&K.push(q,A(ct(h)),Tt),v!==void 0)for(var ve=0;ve<v.length;ve++)K.push($t,A(Ut(v[ve])),he);if(E!==void 0)for(var ze=0;ze<E.length;ze++)K.push(_t,A(Ut(E[ze])),he);return{bootstrapChunks:K,startInlineScript:q,placeholderPrefix:_(N+"P:"),segmentPrefix:_(N+"S:"),boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ur=0,xr=1,tn=2,sn=3,Pn=4,Hr=5,rn=6,In=7;function Bn(y,l){return{insertionMode:y,selectedValue:l}}function _o(y){var l=y==="http://www.w3.org/2000/svg"?tn:y==="http://www.w3.org/1998/Math/MathML"?sn:ur;return Bn(l,null)}function Do(y,l,h){switch(l){case"select":return Bn(xr,h.value!=null?h.value:h.defaultValue);case"svg":return Bn(tn,null);case"math":return Bn(sn,null);case"foreignObject":return Bn(xr,null);case"table":return Bn(Pn,null);case"thead":case"tbody":case"tfoot":return Bn(Hr,null);case"colgroup":return Bn(In,null);case"tr":return Bn(rn,null)}return y.insertionMode>=Pn||y.insertionMode===ur?Bn(xr,null):y}var Oo=null;function Hn(y){var l=y.nextSuspenseID++;return _(y.boundaryPrefix+l.toString(16))}function Fn(y,l,h){var v=y.idPrefix,E=":"+v+"R"+l;return h>0&&(E+="H"+h.toString(32)),E+":"}function Cn(y){return Ut(y)}var io=_("<!-- -->");function yn(y,l,h,v){return l===""?v:(v&&y.push(io),y.push(A(Cn(l))),!0)}function En(y,l,h,v){h&&v&&y.push(io)}var k=new Map;function $(y){var l=k.get(y);if(l!==void 0)return l;var h=_(Ut(pr(y)));return k.set(y,h),h}var X=_(' style="'),le=_(":"),$e=_(";");function Fe(y,l,h){if(typeof h!="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 v=!0;for(var E in h)if(G.call(h,E)){var N=h[E];if(!(N==null||typeof N=="boolean"||N==="")){var q=void 0,K=void 0,ve=E.indexOf("--")===0;ve?(q=A(Ut(E)),z(N,E),K=A(Ut((""+N).trim()))):(St(E,N),q=$(E),typeof N=="number"?N!==0&&!G.call(Ie,E)?K=A(N+"px"):K=A(""+N):(z(N,E),K=A(Ut((""+N).trim())))),v?(v=!1,y.push(X,q,le,K)):y.push($e,q,le,K)}}v||y.push(Wt)}var nt=_(" "),kt=_('="'),Wt=_('"'),Zt=_('=""');function Yt(y,l,h,v){switch(h){case"style":{Fe(y,l,v);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(h.length>2&&(h[0]==="o"||h[0]==="O")&&(h[1]==="n"||h[1]==="N"))){var E=De(h);if(E!==null){switch(typeof v){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var N=E.attributeName,q=A(N);switch(E.type){case V:v&&y.push(nt,q,Zt);return;case Q:v===!0?y.push(nt,q,Zt):v===!1||y.push(nt,q,kt,A(Ut(v)),Wt);return;case se:isNaN(v)||y.push(nt,q,kt,A(Ut(v)),Wt);break;case te:!isNaN(v)&&v>=1&&y.push(nt,q,kt,A(Ut(v)),Wt);break;default:E.sanitizeURL&&(B(v,N),v=""+v,It(v)),y.push(nt,q,kt,A(Ut(v)),Wt)}}else if(me(h)){switch(typeof v){case"function":case"symbol":return;case"boolean":{var K=h.toLowerCase().slice(0,5);if(K!=="data-"&&K!=="aria-")return}}y.push(nt,A(h),kt,A(Ut(v)),Wt)}}}var kr=_(">"),an=_("/>");function Mn(y,l,h){if(l!=null){if(h!=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 v=l.__html;v!=null&&(j(v),y.push(A(""+v)))}}var Ln=!1,po=!1,Kn=!1,No=!1,dn=!1,Ao=!1,Xn=!1;function so(y,l){{var h=y[l];if(h!=null){var v=Ee(h);y.multiple&&!v?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!y.multiple&&v&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Pi(y,l,h){Ze("select",l),so(l,"value"),so(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Kn&&(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"),Kn=!0),y.push(ir("select"));var v=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":v=q;break;case"dangerouslySetInnerHTML":E=q;break;case"defaultValue":case"value":break;default:Yt(y,h,N,q);break}}return y.push(kr),Mn(y,E,v),v}function yi(y){var l="";return r.Children.forEach(y,function(h){h!=null&&(l+=h,!dn&&typeof h!="string"&&typeof h!="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=_(' selected=""');function $n(y,l,h,v){var E=v.selectedValue;y.push(ir("option"));var N=null,q=null,K=null,ve=null;for(var ze in l)if(G.call(l,ze)){var vt=l[ze];if(vt==null)continue;switch(ze){case"children":N=vt;break;case"selected":K=vt,Xn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Xn=!0);break;case"dangerouslySetInnerHTML":ve=vt;break;case"value":q=vt;default:Yt(y,h,ze,vt);break}}if(E!=null){var Rt;if(q!==null?(B(q,"value"),Rt=""+q):(ve!==null&&(Ao||(Ao=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Rt=yi(N)),Ee(E))for(var zt=0;zt<E.length;zt++){B(E[zt],"value");var dr=""+E[zt];if(dr===Rt){y.push(bi);break}}else B(E,"select.value"),""+E===Rt&&y.push(bi)}else K&&y.push(bi);return y.push(kr),Mn(y,ve,N),N}function Bi(y,l,h){Ze("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!po&&(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),po=!0),l.value!==void 0&&l.defaultValue!==void 0&&!Ln&&(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),Ln=!0),y.push(ir("input"));var v=null,E=null,N=null,q=null;for(var K in l)if(G.call(l,K)){var ve=l[K];if(ve==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=ve;break;case"defaultValue":E=ve;break;case"checked":N=ve;break;case"value":v=ve;break;default:Yt(y,h,K,ve);break}}return N!==null?Yt(y,h,"checked",N):q!==null&&Yt(y,h,"checked",q),v!==null?Yt(y,h,"value",v):E!==null&&Yt(y,h,"value",E),y.push(an),null}function ao(y,l,h){Ze("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),y.push(ir("textarea"));var v=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":v=K;break;case"defaultValue":E=K;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Yt(y,h,q,K);break}}if(v===null&&E!==null&&(v=E),y.push(kr),N!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),v!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ee(N)){if(N.length>1)throw new Error("<textarea> can only have at most one child.");j(N[0]),v=""+N[0]}j(N),v=""+N}return typeof v=="string"&&v[0]===`
|
|
130
|
+
*/var v0;function R4(){return v0||(v0=1,process.env.NODE_ENV!=="production"&&function(){var r=C,e="18.3.1",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(y){{for(var l=arguments.length,h=new Array(l>1?l-1:0),v=1;v<l;v++)h[v-1]=arguments[v];i("warn",y,h)}}function o(y){{for(var l=arguments.length,h=new Array(l>1?l-1:0),v=1;v<l;v++)h[v-1]=arguments[v];i("error",y,h)}}function i(y,l,h){{var v=t.ReactDebugCurrentFrame,E=v.getStackAddendum();E!==""&&(l+="%s",h=h.concat([E]));var N=h.map(function(q){return String(q)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[y],console,N)}}function a(y){y()}var c=512,u=null,f=0;function p(y){u=new Uint8Array(c),f=0}function m(y,l){if(l.length!==0){if(l.length>c){f>0&&(y.enqueue(new Uint8Array(u.buffer,0,f)),u=new Uint8Array(c),f=0),y.enqueue(l);return}var h=l,v=u.length-f;v<h.length&&(v===0?y.enqueue(u):(u.set(h.subarray(0,v),f),y.enqueue(u),h=h.subarray(v)),u=new Uint8Array(c),f=0),u.set(h,f),f+=h.length}}function g(y,l){return m(y,l),!0}function b(y){u&&f>0&&(y.enqueue(new Uint8Array(u.buffer,0,f)),u=null,f=0)}function w(y){y.close()}var T=new TextEncoder;function A(y){return T.encode(y)}function _(y){return T.encode(y)}function R(y,l){typeof y.error=="function"?y.error(l):y.close()}function D(y){{var l=typeof Symbol=="function"&&Symbol.toStringTag,h=l&&y[Symbol.toStringTag]||y.constructor.name||"Object";return h}}function M(y){try{return F(y),!1}catch{return!0}}function F(y){return""+y}function B(y,l){if(M(y))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(y)),F(y)}function z(y,l){if(M(y))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(y)),F(y)}function j(y){if(M(y))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(y)),F(y)}var G=Object.prototype.hasOwnProperty,fe=0,P=1,U=2,V=3,Q=4,se=5,te=6,re=":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",ne=re+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("^["+re+"]["+ne+"]*$"),ie={},de={};function me(y){return G.call(de,y)?!0:G.call(ie,y)?!1:be.test(y)?(de[y]=!0,!0):(ie[y]=!0,o("Invalid attribute name: `%s`",y),!1)}function Ae(y,l,h,v){if(h!==null&&h.type===fe)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var E=y.toLowerCase().slice(0,5);return E!=="data-"&&E!=="aria-"}default:return!1}}function Oe(y){return ge.hasOwnProperty(y)?ge[y]:null}function oe(y,l,h,v,E,N,q){this.acceptsBooleans=l===U||l===V||l===Q,this.attributeName=v,this.attributeNamespace=E,this.mustUseProperty=h,this.propertyName=y,this.type=l,this.sanitizeURL=N,this.removeEmptyString=q}var ge={},we=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];we.forEach(function(y){ge[y]=new oe(y,fe,!1,y,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(y){var l=y[0],h=y[1];ge[l]=new oe(l,P,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(y){ge[y]=new oe(y,U,!1,y.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(y){ge[y]=new oe(y,U,!1,y,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(y){ge[y]=new oe(y,V,!1,y.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(y){ge[y]=new oe(y,V,!0,y,null,!1,!1)}),["capture","download"].forEach(function(y){ge[y]=new oe(y,Q,!1,y,null,!1,!1)}),["cols","rows","size","span"].forEach(function(y){ge[y]=new oe(y,te,!1,y,null,!1,!1)}),["rowSpan","start"].forEach(function(y){ge[y]=new oe(y,se,!1,y.toLowerCase(),null,!1,!1)});var Le=/[\-\:]([a-z])/g,Ce=function(y){return y[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(y){var l=y.replace(Le,Ce);ge[l]=new oe(l,P,!1,y,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(y){var l=y.replace(Le,Ce);ge[l]=new oe(l,P,!1,y,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(y){var l=y.replace(Le,Ce);ge[l]=new oe(l,P,!1,y,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(y){ge[y]=new oe(y,P,!1,y.toLowerCase(),null,!1,!1)});var Se="xlinkHref";ge[Se]=new oe("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(y){ge[y]=new oe(y,P,!1,y.toLowerCase(),null,!0,!0)});var Ie={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 et(y,l){return y+l.charAt(0).toUpperCase()+l.substring(1)}var Je=["Webkit","ms","Moz","O"];Object.keys(Ie).forEach(function(y){Je.forEach(function(l){Ie[et(l,y)]=Ie[y]})});var Qe={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ze(y,l){Qe[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 Ke(y,l){if(y.indexOf("-")===-1)return typeof l.is=="string";switch(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!1;default:return!0}}var ht={"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},Pe={},Ne=new RegExp("^(aria)-["+ne+"]*$"),Xe=new RegExp("^(aria)[A-Z]["+ne+"]*$");function We(y,l){{if(G.call(Pe,l)&&Pe[l])return!0;if(Xe.test(l)){var h="aria-"+l.slice(4).toLowerCase(),v=ht.hasOwnProperty(h)?h:null;if(v==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Pe[l]=!0,!0;if(l!==v)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,v),Pe[l]=!0,!0}if(Ne.test(l)){var E=l.toLowerCase(),N=ht.hasOwnProperty(E)?E:null;if(N==null)return Pe[l]=!0,!1;if(l!==N)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,N),Pe[l]=!0,!0}}return!0}function Ve(y,l){{var h=[];for(var v in l){var E=We(y,v);E||h.push(v)}var N=h.map(function(q){return"`"+q+"`"}).join(", ");h.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,y):h.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",N,y)}}function lt(y,l){Ke(y,l)||Ve(y,l)}var st=!1;function De(y,l){{if(y!=="input"&&y!=="textarea"&&y!=="select")return;l!=null&&l.value===null&&!st&&(st=!0,y==="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.",y):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",y))}}var at={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"},mt=function(){};{var ut={},Dt=/^on./,Bt=/^on[^A-Z]/,Pt=new RegExp("^(aria)-["+ne+"]*$"),Xt=new RegExp("^(aria)[A-Z]["+ne+"]*$");mt=function(y,l,h,v){if(G.call(ut,l)&&ut[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."),ut[l]=!0,!0;if(v!=null){var N=v.registrationNameDependencies,q=v.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),ut[l]=!0,!0;if(Dt.test(l))return o("Unknown event handler property `%s`. It will be ignored.",l),ut[l]=!0,!0}else if(Dt.test(l))return Bt.test(l)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),ut[l]=!0,!0;if(Pt.test(l)||Xt.test(l))return!0;if(E==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ut[l]=!0,!0;if(E==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ut[l]=!0,!0;if(E==="is"&&h!==null&&h!==void 0&&typeof h!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),ut[l]=!0,!0;if(typeof h=="number"&&isNaN(h))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),ut[l]=!0,!0;var ve=Oe(l),ze=ve!==null&&ve.type===fe;if(at.hasOwnProperty(E)){var vt=at[E];if(vt!==l)return o("Invalid DOM property `%s`. Did you mean `%s`?",l,vt),ut[l]=!0,!0}else if(!ze&&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),ut[l]=!0,!0;return typeof h=="boolean"&&Ae(l,h,ve)?(h?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()}.',h,l,l,h,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.',h,l,l,h,l,l,l),ut[l]=!0,!0):ze?!0:Ae(l,h,ve)?(ut[l]=!0,!1):((h==="false"||h==="true")&&ve!==null&&ve.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,l,h==="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,h),ut[l]=!0),!0)}}var ar=function(y,l,h){{var v=[];for(var E in l){var N=mt(y,E,l[E],h);N||v.push(E)}var q=v.map(function(K){return"`"+K+"`"}).join(", ");v.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,y):v.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,y)}};function Kt(y,l,h){Ke(y,l)||ar(y,l,h)}var cr=function(){};{var Te=/^(?:webkit|moz|o)[A-Z]/,ae=/^-ms-/,it=/-(.)/g,bt=/;\s*$/,qt={},Ft={},Lt=!1,Ht=!1,Ue=function(y){return y.replace(it,function(l,h){return h.toUpperCase()})},dt=function(y){qt.hasOwnProperty(y)&&qt[y]||(qt[y]=!0,o("Unsupported style property %s. Did you mean %s?",y,Ue(y.replace(ae,"ms-"))))},yt=function(y){qt.hasOwnProperty(y)&&qt[y]||(qt[y]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",y,y.charAt(0).toUpperCase()+y.slice(1)))},Et=function(y,l){Ft.hasOwnProperty(l)&&Ft[l]||(Ft[l]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,y,l.replace(bt,"")))},Nt=function(y,l){Lt||(Lt=!0,o("`NaN` is an invalid value for the `%s` css style property.",y))},rt=function(y,l){Ht||(Ht=!0,o("`Infinity` is an invalid value for the `%s` css style property.",y))};cr=function(y,l){y.indexOf("-")>-1?dt(y):Te.test(y)?yt(y):bt.test(l)&&Et(y,l),typeof l=="number"&&(isNaN(l)?Nt(y,l):isFinite(l)||rt(y,l))}}var St=cr,jt=/["'&<>]/;function tr(y){j(y);var l=""+y,h=jt.exec(l);if(!h)return l;var v,E="",N,q=0;for(N=h.index;N<l.length;N++){switch(l.charCodeAt(N)){case 34:v=""";break;case 38:v="&";break;case 39:v="'";break;case 60:v="<";break;case 62:v=">";break;default:continue}q!==N&&(E+=l.substring(q,N)),q=N+1,E+=v}return q!==N?E+l.substring(q,N):E}function Ut(y){return typeof y=="boolean"||typeof y=="number"?""+y:tr(y)}var br=/([A-Z])/g,Nr=/^ms-/;function pr(y){return y.replace(br,"-$1").toLowerCase().replace(Nr,"-ms-")}var pe=/^[\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,pt=!1;function It(y){!pt&&pe.test(y)&&(pt=!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(y)))}var je=Array.isArray;function Ee(y){return je(y)}var qe=_("<script>"),Tt=_("<\/script>"),$t=_('<script src="'),_t=_('<script type="module" src="'),he=_('" async=""><\/script>');function ct(y){return j(y),(""+y).replace(wt,fr)}var wt=/(<\/|<)(s)(cript)/gi,fr=function(y,l,h,v){return""+l+(h==="s"?"\\u0073":"\\u0053")+v};function Fr(y,l,h,v,E){var N=y===void 0?"":y,q=l===void 0?qe:_('<script nonce="'+Ut(l)+'">'),K=[];if(h!==void 0&&K.push(q,A(ct(h)),Tt),v!==void 0)for(var ve=0;ve<v.length;ve++)K.push($t,A(Ut(v[ve])),he);if(E!==void 0)for(var ze=0;ze<E.length;ze++)K.push(_t,A(Ut(E[ze])),he);return{bootstrapChunks:K,startInlineScript:q,placeholderPrefix:_(N+"P:"),segmentPrefix:_(N+"S:"),boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ur=0,xr=1,tn=2,sn=3,Pn=4,Hr=5,rn=6,In=7;function Bn(y,l){return{insertionMode:y,selectedValue:l}}function _o(y){var l=y==="http://www.w3.org/2000/svg"?tn:y==="http://www.w3.org/1998/Math/MathML"?sn:ur;return Bn(l,null)}function Do(y,l,h){switch(l){case"select":return Bn(xr,h.value!=null?h.value:h.defaultValue);case"svg":return Bn(tn,null);case"math":return Bn(sn,null);case"foreignObject":return Bn(xr,null);case"table":return Bn(Pn,null);case"thead":case"tbody":case"tfoot":return Bn(Hr,null);case"colgroup":return Bn(In,null);case"tr":return Bn(rn,null)}return y.insertionMode>=Pn||y.insertionMode===ur?Bn(xr,null):y}var Oo=null;function Hn(y){var l=y.nextSuspenseID++;return _(y.boundaryPrefix+l.toString(16))}function Fn(y,l,h){var v=y.idPrefix,E=":"+v+"R"+l;return h>0&&(E+="H"+h.toString(32)),E+":"}function Cn(y){return Ut(y)}var io=_("<!-- -->");function yn(y,l,h,v){return l===""?v:(v&&y.push(io),y.push(A(Cn(l))),!0)}function En(y,l,h,v){h&&v&&y.push(io)}var k=new Map;function $(y){var l=k.get(y);if(l!==void 0)return l;var h=_(Ut(pr(y)));return k.set(y,h),h}var X=_(' style="'),le=_(":"),$e=_(";");function Fe(y,l,h){if(typeof h!="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 v=!0;for(var E in h)if(G.call(h,E)){var N=h[E];if(!(N==null||typeof N=="boolean"||N==="")){var q=void 0,K=void 0,ve=E.indexOf("--")===0;ve?(q=A(Ut(E)),z(N,E),K=A(Ut((""+N).trim()))):(St(E,N),q=$(E),typeof N=="number"?N!==0&&!G.call(Ie,E)?K=A(N+"px"):K=A(""+N):(z(N,E),K=A(Ut((""+N).trim())))),v?(v=!1,y.push(X,q,le,K)):y.push($e,q,le,K)}}v||y.push(Wt)}var nt=_(" "),kt=_('="'),Wt=_('"'),Zt=_('=""');function Yt(y,l,h,v){switch(h){case"style":{Fe(y,l,v);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(h.length>2&&(h[0]==="o"||h[0]==="O")&&(h[1]==="n"||h[1]==="N"))){var E=Oe(h);if(E!==null){switch(typeof v){case"function":case"symbol":return;case"boolean":if(!E.acceptsBooleans)return}var N=E.attributeName,q=A(N);switch(E.type){case V:v&&y.push(nt,q,Zt);return;case Q:v===!0?y.push(nt,q,Zt):v===!1||y.push(nt,q,kt,A(Ut(v)),Wt);return;case se:isNaN(v)||y.push(nt,q,kt,A(Ut(v)),Wt);break;case te:!isNaN(v)&&v>=1&&y.push(nt,q,kt,A(Ut(v)),Wt);break;default:E.sanitizeURL&&(B(v,N),v=""+v,It(v)),y.push(nt,q,kt,A(Ut(v)),Wt)}}else if(me(h)){switch(typeof v){case"function":case"symbol":return;case"boolean":{var K=h.toLowerCase().slice(0,5);if(K!=="data-"&&K!=="aria-")return}}y.push(nt,A(h),kt,A(Ut(v)),Wt)}}}var kr=_(">"),an=_("/>");function Mn(y,l,h){if(l!=null){if(h!=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 v=l.__html;v!=null&&(j(v),y.push(A(""+v)))}}var Ln=!1,po=!1,Kn=!1,No=!1,dn=!1,Ao=!1,Xn=!1;function so(y,l){{var h=y[l];if(h!=null){var v=Ee(h);y.multiple&&!v?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!y.multiple&&v&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Pi(y,l,h){Ze("select",l),so(l,"value"),so(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!Kn&&(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"),Kn=!0),y.push(ir("select"));var v=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":v=q;break;case"dangerouslySetInnerHTML":E=q;break;case"defaultValue":case"value":break;default:Yt(y,h,N,q);break}}return y.push(kr),Mn(y,E,v),v}function yi(y){var l="";return r.Children.forEach(y,function(h){h!=null&&(l+=h,!dn&&typeof h!="string"&&typeof h!="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=_(' selected=""');function $n(y,l,h,v){var E=v.selectedValue;y.push(ir("option"));var N=null,q=null,K=null,ve=null;for(var ze in l)if(G.call(l,ze)){var vt=l[ze];if(vt==null)continue;switch(ze){case"children":N=vt;break;case"selected":K=vt,Xn||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Xn=!0);break;case"dangerouslySetInnerHTML":ve=vt;break;case"value":q=vt;default:Yt(y,h,ze,vt);break}}if(E!=null){var Rt;if(q!==null?(B(q,"value"),Rt=""+q):(ve!==null&&(Ao||(Ao=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Rt=yi(N)),Ee(E))for(var zt=0;zt<E.length;zt++){B(E[zt],"value");var dr=""+E[zt];if(dr===Rt){y.push(bi);break}}else B(E,"select.value"),""+E===Rt&&y.push(bi)}else K&&y.push(bi);return y.push(kr),Mn(y,ve,N),N}function Bi(y,l,h){Ze("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!po&&(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),po=!0),l.value!==void 0&&l.defaultValue!==void 0&&!Ln&&(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),Ln=!0),y.push(ir("input"));var v=null,E=null,N=null,q=null;for(var K in l)if(G.call(l,K)){var ve=l[K];if(ve==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=ve;break;case"defaultValue":E=ve;break;case"checked":N=ve;break;case"value":v=ve;break;default:Yt(y,h,K,ve);break}}return N!==null?Yt(y,h,"checked",N):q!==null&&Yt(y,h,"checked",q),v!==null?Yt(y,h,"value",v):E!==null&&Yt(y,h,"value",E),y.push(an),null}function ao(y,l,h){Ze("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),y.push(ir("textarea"));var v=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":v=K;break;case"defaultValue":E=K;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Yt(y,h,q,K);break}}if(v===null&&E!==null&&(v=E),y.push(kr),N!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),v!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ee(N)){if(N.length>1)throw new Error("<textarea> can only have at most one child.");j(N[0]),v=""+N[0]}j(N),v=""+N}return typeof v=="string"&&v[0]===`
|
|
131
131
|
`&&y.push(O),v!==null&&(B(v,"value"),y.push(A(Cn(""+v)))),null}function lo(y,l,h,v){y.push(ir(h));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(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Yt(y,v,E,N);break}}return y.push(an),null}function ri(y,l,h){y.push(ir("menuitem"));for(var v in l)if(G.call(l,v)){var E=l[v];if(E==null)continue;switch(v){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Yt(y,h,v,E);break}}return y.push(kr),null}function zr(y,l,h){y.push(ir("title"));var v=null;for(var E in l)if(G.call(l,E)){var N=l[E];if(N==null)continue;switch(E){case"children":v=N;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Yt(y,h,E,N);break}}y.push(kr);{var q=Array.isArray(v)&&v.length<2?v[0]||null:v;Array.isArray(v)&&v.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 v}function Mr(y,l,h,v){y.push(ir(h));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:Yt(y,v,q,K);break}}return y.push(kr),Mn(y,N,E),typeof E=="string"?(y.push(A(Cn(E))),null):E}function jr(y,l,h,v){y.push(ir(h));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":Fe(y,v,K);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:me(q)&&typeof K!="function"&&typeof K!="symbol"&&y.push(nt,A(q),kt,A(Ut(K)),Wt);break}}return y.push(kr),Mn(y,N,E),E}var O=_(`
|
|
132
132
|
`);function J(y,l,h,v){y.push(ir(h));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:Yt(y,v,q,K);break}}if(y.push(kr),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 ve=N.__html;ve!=null&&(typeof ve=="string"&&ve.length>0&&ve[0]===`
|
|
133
133
|
`?y.push(O,A(ve)):(j(ve),y.push(A(""+ve))))}return typeof E=="string"&&E[0]===`
|
|
134
|
-
`&&y.push(O),E}var xe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ot=new Map;function ir(y){var l=ot.get(y);if(l===void 0){if(!xe.test(y))throw new Error("Invalid tag: "+y);l=_("<"+y),ot.set(y,l)}return l}var Qt=_("<!DOCTYPE html>");function _r(y,l,h,v,E){switch(
|
|
134
|
+
`&&y.push(O),E}var xe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ot=new Map;function ir(y){var l=ot.get(y);if(l===void 0){if(!xe.test(y))throw new Error("Invalid tag: "+y);l=_("<"+y),ot.set(y,l)}return l}var Qt=_("<!DOCTYPE html>");function _r(y,l,h,v,E){switch(lt(l,h),De(l,h),Kt(l,h,null),!h.suppressContentEditableWarning&&h.contentEditable&&h.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 h.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(y,h,v);case"option":return $n(y,h,v,E);case"textarea":return ao(y,h,v);case"input":return Bi(y,h,v);case"menuitem":return ri(y,h,v);case"title":return zr(y,h,v);case"listing":case"pre":return J(y,h,l,v);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 lo(y,h,l,v);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 Mr(y,h,l,v);case"html":return E.insertionMode===ur&&y.push(Qt),Mr(y,h,l,v);default:return l.indexOf("-")===-1&&typeof h.is!="string"?Mr(y,h,l,v):jr(y,h,l,v)}}var Ir=_("</"),Cr=_(">");function Lr(y,l,h){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:y.push(Ir,A(l),Cr)}}function fn(y,l){for(var h=l.bootstrapChunks,v=0;v<h.length-1;v++)m(y,h[v]);return v<h.length?g(y,h[v]):!0}var qn=_('<template id="'),nn=_('"></template>');function Vr(y,l,h){m(y,qn),m(y,l.placeholderPrefix);var v=A(h.toString(16));return m(y,v),g(y,nn)}var hn=_("<!--$-->"),go=_('<!--$?--><template id="'),Eo=_('"></template>'),Jn=_("<!--$!-->"),Fi=_("<!--/$-->"),ni=_("<template"),bn=_('"'),Ns=_(' data-dgst="'),Qn=_(' data-msg="'),Vl=_(' data-stck="'),ll=_("></template>");function oi(y,l){return g(y,hn)}function ji(y,l,h){if(m(y,go),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(y,h),g(y,Eo)}function eo(y,l,h,v,E){var N;return N=g(y,Jn),m(y,ni),h&&(m(y,Ns),m(y,A(Ut(h))),m(y,bn)),v&&(m(y,Qn),m(y,A(Ut(v))),m(y,bn)),E&&(m(y,Vl),m(y,A(Ut(E))),m(y,bn)),N=g(y,ll),N}function ln(y,l){return g(y,Fi)}function Po(y,l){return g(y,Fi)}function cl(y,l){return g(y,Fi)}var Gl=_('<div hidden id="'),as=_('">'),Yl=_("</div>"),Zl=_('<svg aria-hidden="true" style="display:none" id="'),wa=_('">'),Ps=_("</svg>"),Bs=_('<math aria-hidden="true" style="display:none" id="'),zi=_('">'),Kl=_("</math>"),Ca=_('<table hidden id="'),ul=_('">'),I=_("</table>"),H=_('<table hidden><tbody id="'),Y=_('">'),ce=_("</tbody></table>"),Ge=_('<table hidden><tr id="'),He=_('">'),gt=_("</tr></table>"),Ot=_('<table hidden><colgroup id="'),Jt=_('">'),Sr=_("</colgroup></table>");function gr(y,l,h,v){switch(h.insertionMode){case ur:case xr:return m(y,Gl),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,as);case tn:return m(y,Zl),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,wa);case sn:return m(y,Bs),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,zi);case Pn:return m(y,Ca),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,ul);case Hr:return m(y,H),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,Y);case rn:return m(y,Ge),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,He);case In:return m(y,Ot),m(y,l.segmentPrefix),m(y,A(v.toString(16))),g(y,Jt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function on(y,l){switch(l.insertionMode){case ur:case xr:return g(y,Yl);case tn:return g(y,Ps);case sn:return g(y,Kl);case Pn:return g(y,I);case Hr:return g(y,ce);case rn:return g(y,gt);case In:return g(y,Sr);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var co="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=_(co+';$RS("'),Xl=_('$RS("'),Fs=_('","'),_a=_('")<\/script>');function Ef(y,l,h){m(y,l.startInlineScript),l.sentCompleteSegmentFunction?m(y,Xl):(l.sentCompleteSegmentFunction=!0,m(y,Sa)),m(y,l.segmentPrefix);var v=A(h.toString(16));return m(y,v),m(y,Fs),m(y,l.placeholderPrefix),m(y,v),g(y,_a)}var eu=_(Bo+';$RC("'),tu=_('$RC("'),od=_('","'),Hi=_('")<\/script>');function dl(y,l,h,v){if(m(y,l.startInlineScript),l.sentCompleteBoundaryFunction?m(y,tu):(l.sentCompleteBoundaryFunction=!0,m(y,eu)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var E=A(v.toString(16));return m(y,h),m(y,od),m(y,l.segmentPrefix),m(y,E),g(y,Hi)}var Tf=_(Fo+';$RX("'),Rf=_('$RX("'),kf=_('"'),Aa=_(")<\/script>"),Sn=_(",");function id(y,l,h,v,E,N){if(m(y,l.startInlineScript),l.sentClientRenderFunction?m(y,Rf):(l.sentClientRenderFunction=!0,m(y,Tf)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return m(y,h),m(y,kf),(v||E||N)&&(m(y,Sn),m(y,A(Jl(v||"")))),(E||N)&&(m(y,Sn),m(y,A(Jl(E||"")))),N&&(m(y,Sn),m(y,A(Jl(N)))),g(y,Aa)}var sd=/[<\u2028\u2029]/g;function Jl(y){var l=JSON.stringify(y);return l.replace(sd,function(h){switch(h){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,ad=Symbol.for("react.element"),Ql=Symbol.for("react.portal"),$i=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),ft=Symbol.for("react.profiler"),tt=Symbol.for("react.provider"),Vt=Symbol.for("react.context"),hr=Symbol.for("react.forward_ref"),$r=Symbol.for("react.suspense"),Dn=Symbol.for("react.suspense_list"),Qr=Symbol.for("react.memo"),Ea=Symbol.for("react.lazy"),ld=Symbol.for("react.scope"),Zo=Symbol.for("react.debug_trace_mode"),ec=Symbol.for("react.legacy_hidden"),If=Symbol.for("react.default_value"),ls=Symbol.iterator,cn="@@iterator";function cs(y){if(y===null||typeof y!="object")return null;var l=ls&&y[ls]||y[cn];return typeof l=="function"?l:null}function Xr(y,l,h){var v=y.displayName;if(v)return v;var E=l.displayName||l.name||"";return E!==""?h+"("+E+")":h}function ru(y){return y.displayName||"Context"}function pn(y){if(y==null)return null;if(typeof y.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case $i:return"Fragment";case Ql:return"Portal";case ft:return"Profiler";case ke:return"StrictMode";case $r:return"Suspense";case Dn:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case Vt:var l=y;return ru(l)+".Consumer";case tt:var h=y;return ru(h._context)+".Provider";case hr:return Xr(y,y.render,"ForwardRef");case Qr:var v=y.displayName||null;return v!==null?v:pn(y.type)||"Memo";case Ea:{var E=y,N=E._payload,q=E._init;try{return pn(q(N))}catch{return null}}}return null}var qi=0,nu,ou,iu,Ta,Ui,fl,hl;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,fl=console.groupCollapsed,hl=console.groupEnd;var y={configurable:!0,enumerable:!0,value:js,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}qi++}}function tc(){{if(qi--,qi===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:jo({},y,{value:nu}),info:jo({},y,{value:ou}),warn:jo({},y,{value:iu}),error:jo({},y,{value:Ta}),group:jo({},y,{value:Ui}),groupCollapsed:jo({},y,{value:fl}),groupEnd:jo({},y,{value:hl})})}qi<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wi=t.ReactCurrentDispatcher,rc;function ii(y,l,h){{if(rc===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);rc=v&&v[1]||""}return`
|
|
135
135
|
`+rc+y}}var Vi=!1,us;{var Mf=typeof WeakMap=="function"?WeakMap:Map;us=new Mf}function pl(y,l){if(!y||Vi)return"";{var h=us.get(y);if(h!==void 0)return h}var v;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){v=Gr}Reflect.construct(y,[],q)}else{try{q.call()}catch(Gr){v=Gr}y.call(q.prototype)}}else{try{throw Error()}catch(Gr){v=Gr}y()}}catch(Gr){if(Gr&&v&&typeof Gr.stack=="string"){for(var K=Gr.stack.split(`
|
|
136
136
|
`),ve=v.stack.split(`
|
|
137
137
|
`),ze=K.length-1,vt=ve.length-1;ze>=1&&vt>=0&&K[ze]!==ve[vt];)vt--;for(;ze>=1&&vt>=0;ze--,vt--)if(K[ze]!==ve[vt]){if(ze!==1||vt!==1)do if(ze--,vt--,vt<0||K[ze]!==ve[vt]){var Rt=`
|
|
@@ -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`,si,"["+y.join(", ")+"]","["+l.join(", ")+"]");for(var h=0;h<l.length&&h<y.length;h++)if(!Pr(y[h],l[h]))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(y,l){zo=l,Na=y,vo=!1,To=0}function Ws(y,l,h,v){for(;xl;)xl=!1,To=0,_i+=1,qr=null,h=y(l,v);return gu(),h}function yo(){var y=To!==0;return y}function gu(){vo=!1,zo=null,Na=null,xl=!1,qs=null,_i=0,Ho=null,qr=null}function mu(y){return vo&&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(y)}function vu(y){return si="useContext",Us(),Oa(y)}function Vs(y,l){return typeof l=="function"?l(y):l}function vs(y){return si="useState",yu(Vs,y)}function yu(y,l,h){if(y!==Vs&&(si="useReducer"),zo=Us(),qr=$o(),ms){var v=qr.queue,E=v.dispatch;if(Ho!==null){var N=Ho.get(v);if(N!==void 0){Ho.delete(v);var q=qr.memoizedState,K=N;do{var ve=K.action;vo=!0,q=y(q,ve),vo=!1,K=K.next}while(K!==null);return qr.memoizedState=q,[q,E]}}return[qr.memoizedState,E]}else{vo=!0;var ze;y===Vs?ze=typeof l=="function"?l():l:ze=h!==void 0?h(l):l,vo=!1,qr.memoizedState=ze;var vt=qr.queue={last:null,dispatch:null},Rt=vt.dispatch=vd.bind(null,zo,vt);return[qr.memoizedState,Rt]}}function md(y,l){zo=Us(),qr=$o();var h=l===void 0?null:l;if(qr!==null){var v=qr.memoizedState;if(v!==null&&h!==null){var E=v[1];if(gd(h,E))return v[0]}}vo=!0;var N=y();return vo=!1,qr.memoizedState=[N,h],N}function cc(y){zo=Us(),qr=$o();var l=qr.memoizedState;if(l===null){var h={current:y};return Object.seal(h),qr.memoizedState=h,h}else return l}function zf(y,l){si="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 vd(y,l,h){if(_i>=fu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(y===zo){xl=!0;var v={action:h,next:null};Ho===null&&(Ho=new Map);var E=Ho.get(l);if(E===void 0)Ho.set(l,v);else{for(var N=E;N.next!==null;)N=N.next;N.next=v}}}function to(y,l){return md(function(){return y},l)}function bu(y,l,h){return Us(),l(y._source)}function yd(y,l,h){if(h===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return h()}function qo(y){return Us(),y}function uc(){throw new Error("startTransition cannot be called during server rendering.")}function Pa(){return Us(),[!1,uc]}function ys(){var y=Na,l=Ki(y.treeContext),h=Gs;if(h===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var v=To++;return Fn(h,l,v)}function wl(){}var Gn={readContext:mu,useContext:vu,useMemo:md,useReducer:yu,useRef:cc,useState:vs,useInsertionEffect:wl,useLayoutEffect:zf,useCallback:to,useImperativeHandle:wl,useEffect:wl,useDebugValue:wl,useDeferredValue:qo,useTransition:Pa,useId:ys,useMutableSource:bu,useSyncExternalStore:yd},Gs=null;function dc(y){Gs=y}function Ba(y){try{var l="",h=y;do{switch(h.tag){case 0:l+=ii(h.type,null,null);break;case 1:l+=ka(h.type,null,null);break;case 2:l+=cd(h.type,null,null);break}h=h.parent}while(h);return l}catch(v){return`
|
|
160
160
|
Error generating stack: `+v.message+`
|
|
161
|
-
`+v.stack}}var fc=t.ReactCurrentDispatcher,Fa=t.ReactDebugCurrentFrame,hc=0,Ai=1,pc=2,Ys=3,bd=4,Cl=0,ja=1,za=2,xu=12800;function xd(y){return console.error(y),null}function Zs(){}function gc(y,l,h,v,E,N,q,K,ve){var ze=[],vt=new Set,Rt={destination:null,responseState:l,progressiveChunkSize:v===void 0?xu:v,status:Cl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:vt,pingedTasks:ze,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?xd:E,onAllReady:N===void 0?Zs:N,onShellReady:q===void 0?Zs:q,onShellError:K===void 0?Zs:K,onFatalError:ve===void 0?Zs:ve},zt=Sl(Rt,0,null,h,!1,!1);zt.parentFlushed=!0;var dr=Ji(Rt,y,null,zt,vt,Un,oc,Pf);return ze.push(dr),Rt}function Xi(y,l){var h=y.pingedTasks;h.push(l),h.length===1&&a(function(){return Tu(y)})}function mc(y,l){return{id:Oo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ji(y,l,h,v,E,N,q,K){y.allPendingTasks++,h===null?y.pendingRootTasks++:h.pendingTasks++;var ve={node:l,ping:function(){return Xi(y,ve)},blockedBoundary:h,blockedSegment:v,abortSet:E,legacyContext:N,context:q,treeContext:K};return ve.componentStack=null,E.add(ve),ve}function Sl(y,l,h,v,E,N){return{status:hc,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:v,boundary:h,lastPushedText:E,textEmbedded:N}}var ai=null;function li(){return ai===null||ai.componentStack===null?"":Ba(ai.componentStack)}function Ei(y,l){y.componentStack={tag:0,parent:y.componentStack,type:l}}function _l(y,l){y.componentStack={tag:1,parent:y.componentStack,type:l}}function bs(y,l){y.componentStack={tag:2,parent:y.componentStack,type:l}}function ci(y){y.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):y.componentStack=y.componentStack.parent}var Ha=null;function vc(y,l){{var h;typeof l=="string"?h=l:l&&typeof l.message=="string"?h=l.message:h=String(l);var v=Ha||li();Ha=null,y.errorMessage=h,y.errorComponentStack=v}}function Al(y,l){var h=y.onError(l);if(h!=null&&typeof h!="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 h+'" instead');return h}function $a(y,l){var h=y.onShellError;h(l);var v=y.onFatalError;v(l),y.destination!==null?(y.status=za,R(y.destination,l)):(y.status=ja,y.fatalError=l)}function wd(y,l,h){Ei(l,"Suspense");var v=l.blockedBoundary,E=l.blockedSegment,N=h.fallback,q=h.children,K=new Set,ve=mc(y,K),ze=E.chunks.length,vt=Sl(y,ze,ve,E.formatContext,!1,!1);E.children.push(vt),E.lastPushedText=!1;var Rt=Sl(y,0,null,E.formatContext,!1,!1);Rt.parentFlushed=!0,l.blockedBoundary=ve,l.blockedSegment=Rt;try{if(Uo(y,l,q),En(Rt.chunks,y.responseState,Rt.lastPushedText,Rt.textEmbedded),Rt.status=Ai,Cs(ve,Rt),ve.pendingTasks===0){ci(l);return}}catch(dr){Rt.status=bd,ve.forceClientRender=!0,ve.errorDigest=Al(y,dr),vc(ve,dr)}finally{l.blockedBoundary=v,l.blockedSegment=E}var zt=Ji(y,N,v,vt,K,l.legacyContext,l.context,l.treeContext);zt.componentStack=l.componentStack,y.pingedTasks.push(zt),ci(l)}function wu(y,l,h,v){Ei(l,h);var E=l.blockedSegment,N=_r(E.chunks,h,v,y.responseState,E.formatContext);E.lastPushedText=!1;var q=E.formatContext;E.formatContext=Do(q,h,v),Uo(y,l,N),E.formatContext=q,Lr(E.chunks,h),E.lastPushedText=!1,ci(l)}function Cu(y){return y.prototype&&y.prototype.isReactComponent}function Ks(y,l,h,v,E){var N={};pu(l,N);var q=h(v,E);return Ws(h,v,q,E)}function Su(y,l,h,v,E){var N=h.render();h.props!==E&&(bc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(v)||"a component"),bc=!0);{var q=v.childContextTypes;if(q!=null){var K=l.legacyContext,ve=su(h,v,K,q);l.legacyContext=ve,ro(y,l,N),l.legacyContext=K;return}}ro(y,l,N)}function yc(y,l,h,v){bs(l,h);var E=ds(h,l.legacyContext),N=Si(h,v,E);bl(N,h,v,E),Su(y,l,N,h,v),ci(l)}var Ar={},El={},_u={},Xs={},bc=!1,Cd={},Sd=!1,Ro=!1,_d=!1;function xc(y,l,h,v){var E;if(E=ds(h,l.legacyContext),_l(l,h),h.prototype&&typeof h.prototype.render=="function"){var N=pn(h)||"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(y,l,h,v,E),K=yo();if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){var ve=pn(h)||"Unknown";El[ve]||(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.",ve,ve,ve),El[ve]=!0)}if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){{var ze=pn(h)||"Unknown";El[ze]||(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.",ze,ze,ze),El[ze]=!0)}bl(q,h,v,E),Su(y,l,q,h,v)}else if(Au(h),K){var vt=l.treeContext,Rt=1,zt=0;l.treeContext=uu(vt,Rt,zt);try{ro(y,l,q)}finally{l.treeContext=vt}}else ro(y,l,q);ci(l)}function Au(y){{if(y&&y.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",y.displayName||y.name||"Component"),y.defaultProps!==void 0){var l=pn(y)||"Unknown";Cd[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Cd[l]=!0)}if(typeof y.getDerivedStateFromProps=="function"){var h=pn(y)||"Unknown";Xs[h]||(o("%s: Function components do not support getDerivedStateFromProps.",h),Xs[h]=!0)}if(typeof y.contextType=="object"&&y.contextType!==null){var v=pn(y)||"Unknown";_u[v]||(o("%s: Function components do not support contextType.",v),_u[v]=!0)}}}function Eu(y,l){if(y&&y.defaultProps){var h=jo({},l),v=y.defaultProps;for(var E in v)h[E]===void 0&&(h[E]=v[E]);return h}return l}function Ad(y,l,h,v,E){_l(l,h.render);var N=Ks(y,l,h.render,v,E),q=yo();if(q){var K=l.treeContext,ve=1,ze=0;l.treeContext=uu(K,ve,ze);try{ro(y,l,N)}finally{l.treeContext=K}}else ro(y,l,N);ci(l)}function bo(y,l,h,v,E){var N=h.type,q=Eu(N,v);Js(y,l,N,q,E)}function xs(y,l,h,v){h._context===void 0?h!==h.Consumer&&(_d||(_d=!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?"))):h=h._context;var E=v.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(h),q=E(N);ro(y,l,q)}function xo(y,l,h,v){var E=h._context,N=v.value,q=v.children,K;K=l.context,l.context=au(E,N),ro(y,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 Ed(y,l,h,v,E){Ei(l,"Lazy");var N=h._payload,q=h._init,K=q(N),ve=Eu(K,v);Js(y,l,K,ve,E),ci(l)}function Js(y,l,h,v,E){if(typeof h=="function")if(Cu(h)){yc(y,l,h,v);return}else{xc(y,l,h,v);return}if(typeof h=="string"){wu(y,l,h,v);return}switch(h){case ec:case Zo:case ke:case ft:case $i:{ro(y,l,v.children);return}case Dn:{Ei(l,"SuspenseList"),ro(y,l,v.children),ci(l);return}case ld:throw new Error("ReactDOMServer does not yet support scope components.");case $r:{wd(y,l,v);return}}if(typeof h=="object"&&h!==null)switch(h.$$typeof){case hr:{Ad(y,l,h,v,E);return}case Qr:{bo(y,l,h,v,E);return}case tt:{xo(y,l,h,v);return}case Vt:{xs(y,l,h,v);return}case Ea:{Ed(y,l,h,v);return}}var N="";throw(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).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: "+(h==null?h:typeof h)+"."+N))}function Td(y,l){typeof Symbol=="function"&&y[Symbol.toStringTag]==="Generator"&&(Sd||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."),Sd=!0),y.entries===l&&(Ro||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ro=!0)}function ro(y,l,h){try{return Rd(y,l,h)}catch(v){throw typeof v=="object"&&v!==null&&typeof v.then=="function"||(Ha=Ha!==null?Ha:li()),v}}function Rd(y,l,h){if(l.node=h,typeof h=="object"&&h!==null){switch(h.$$typeof){case ad:{var v=h,E=v.type,N=v.props,q=v.ref;Js(y,l,E,N,q);return}case Ql: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=h,ve=K._payload,ze=K._init,vt;try{vt=ze(ve)}catch(ui){throw typeof ui=="object"&&ui!==null&&typeof ui.then=="function"&&Ei(l,"Lazy"),ui}ro(y,l,vt);return}}if(Ee(h)){wc(y,l,h);return}var Rt=cs(h);if(Rt){Td(h,Rt);var zt=Rt.call(h);if(zt){var dr=zt.next();if(!dr.done){var Gr=[];do Gr.push(dr.value),dr=zt.next();while(!dr.done);wc(y,l,Gr);return}return}}var Yn=Object.prototype.toString.call(h);throw new Error("Objects are not valid as a React child (found: "+(Yn==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":Yn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof h=="string"){var Ti=l.blockedSegment;Ti.lastPushedText=yn(l.blockedSegment.chunks,h,y.responseState,Ti.lastPushedText);return}if(typeof h=="number"){var Ss=l.blockedSegment;Ss.lastPushedText=yn(l.blockedSegment.chunks,""+h,y.responseState,Ss.lastPushedText);return}typeof h=="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 wc(y,l,h){for(var v=h.length,E=0;E<v;E++){var N=l.treeContext;l.treeContext=uu(N,v,E);try{Uo(y,l,h[E])}finally{l.treeContext=N}}}function Cc(y,l,h){var v=l.blockedSegment,E=v.chunks.length,N=Sl(y,E,null,v.formatContext,v.lastPushedText,!0);v.children.push(N),v.lastPushedText=!1;var q=Ji(y,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;h.then(K,K)}function Uo(y,l,h){var v=l.blockedSegment.formatContext,E=l.legacyContext,N=l.context,q=null;q=l.componentStack;try{return ro(y,l,h)}catch(K){if(gu(),typeof K=="object"&&K!==null&&typeof K.then=="function"){Cc(y,l,K),l.blockedSegment.formatContext=v,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q;return}else throw l.blockedSegment.formatContext=v,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q,K}}function kd(y,l,h,v){var E=Al(y,v);if(l===null?$a(y,v):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,vc(l,v),l.parentFlushed&&y.clientRenderedBoundaries.push(l))),y.allPendingTasks--,y.allPendingTasks===0){var N=y.onAllReady;N()}}function ws(y){var l=this,h=y.blockedBoundary,v=y.blockedSegment;v.status=Ys,Qs(l,h,v)}function Sc(y,l,h){var v=y.blockedBoundary,E=y.blockedSegment;if(E.status=Ys,v===null)l.allPendingTasks--,l.status!==za&&(l.status=za,l.destination!==null&&w(l.destination));else{if(v.pendingTasks--,!v.forceClientRender){v.forceClientRender=!0;var N=h===void 0?new Error("The render was aborted by the server without a reason."):h;v.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=ai;ai=y;try{vc(v,N)}finally{ai=K}}v.parentFlushed&&l.clientRenderedBoundaries.push(v)}if(v.fallbackAbortableTasks.forEach(function(ze){return Sc(ze,l,h)}),v.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var ve=l.onAllReady;ve()}}}function Cs(y,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var h=l.children[0];h.id=l.id,h.parentFlushed=!0,h.status===Ai&&Cs(y,h)}else{var v=y.completedSegments;v.push(l)}}function Qs(y,l,h){if(l===null){if(h.parentFlushed){if(y.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");y.completedRootSegment=h}if(y.pendingRootTasks--,y.pendingRootTasks===0){y.onShellError=Zs;var v=y.onShellReady;v()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)h.parentFlushed&&h.status===Ai&&Cs(l,h),l.parentFlushed&&y.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ws,y),l.fallbackAbortableTasks.clear();else if(h.parentFlushed&&h.status===Ai){Cs(l,h);var E=l.completedSegments;E.length===1&&l.parentFlushed&&y.partialBoundaries.push(l)}}if(y.allPendingTasks--,y.allPendingTasks===0){var N=y.onAllReady;N()}}function Hf(y,l){var h=l.blockedSegment;if(h.status===hc){ps(l.context);var v=null;v=ai,ai=l;try{ro(y,l,l.node),En(h.chunks,y.responseState,h.lastPushedText,h.textEmbedded),l.abortSet.delete(l),h.status=Ai,Qs(y,l.blockedBoundary,h)}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),h.status=bd,kd(y,l.blockedBoundary,h,N)}finally{ai=v}}}function Tu(y){if(y.status!==za){var l=dd(),h=fc.current;fc.current=Gn;var v;v=Fa.getCurrentStack,Fa.getCurrentStack=li;var E=Gs;dc(y.responseState);try{var N=y.pingedTasks,q;for(q=0;q<N.length;q++){var K=N[q];Hf(y,K)}N.splice(0,q),y.destination!==null&&Ko(y,y.destination)}catch(ve){Al(y,ve),$a(y,ve)}finally{dc(E),fc.current=h,Fa.getCurrentStack=v,h===Gn&&ps(l)}}}function Tl(y,l,h){switch(h.parentFlushed=!0,h.status){case hc:{var v=h.id=y.nextSegmentId++;return h.lastPushedText=!1,h.textEmbedded=!1,Vr(l,y.responseState,v)}case Ai:{h.status=pc;for(var E=!0,N=h.chunks,q=0,K=h.children,ve=0;ve<K.length;ve++){for(var ze=K[ve];q<ze.index;q++)m(l,N[q]);E=Rl(y,l,ze)}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 Rl(y,l,h){var v=h.boundary;if(v===null)return Tl(y,l,h);if(v.parentFlushed=!0,v.forceClientRender)return eo(l,y.responseState,v.errorDigest,v.errorMessage,v.errorComponentStack),Tl(y,l,h),cl(l,y.responseState);if(v.pendingTasks>0){v.rootSegmentID=y.nextSegmentId++,v.completedSegments.length>0&&y.partialBoundaries.push(v);var E=v.id=Hn(y.responseState);return ji(l,y.responseState,E),Tl(y,l,h),Po(l,y.responseState)}else{if(v.byteSize>y.progressiveChunkSize)return v.rootSegmentID=y.nextSegmentId++,y.completedBoundaries.push(v),ji(l,y.responseState,v.id),Tl(y,l,h),Po(l,y.responseState);oi(l,y.responseState);var N=v.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 Rl(y,l,q),ln(l,y.responseState)}}function Ru(y,l,h){return id(l,y.responseState,h.id,h.errorDigest,h.errorMessage,h.errorComponentStack)}function _c(y,l,h){return gr(l,y.responseState,h.formatContext,h.id),Rl(y,l,h),on(l,h.formatContext)}function ku(y,l,h){for(var v=h.completedSegments,E=0;E<v.length;E++){var N=v[E];wo(y,l,h,N)}return v.length=0,dl(l,y.responseState,h.id,h.rootSegmentID)}function Id(y,l,h){for(var v=h.completedSegments,E=0;E<v.length;E++){var N=v[E];if(!wo(y,l,h,N))return E++,v.splice(0,E),!1}return v.splice(0,E),!0}function wo(y,l,h,v){if(v.status===pc)return!0;var E=v.id;if(E===-1){var N=v.id=h.rootSegmentID;if(N===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return _c(y,l,v)}else return _c(y,l,v),Ef(l,y.responseState,E)}function Ko(y,l){p();try{var h=y.completedRootSegment;h!==null&&y.pendingRootTasks===0&&(Rl(y,l,h),y.completedRootSegment=null,fn(l,y.responseState));var v=y.clientRenderedBoundaries,E;for(E=0;E<v.length;E++){var N=v[E];Ru(y,l,N)}v.splice(0,E);var q=y.completedBoundaries;for(E=0;E<q.length;E++){var K=q[E];ku(y,l,K)}q.splice(0,E),b(l),p(l);var ve=y.partialBoundaries;for(E=0;E<ve.length;E++){var ze=ve[E];if(!Id(y,l,ze)){y.destination=null,E++,ve.splice(0,E);return}}ve.splice(0,E);var vt=y.completedBoundaries;for(E=0;E<vt.length;E++){var Rt=vt[E];ku(y,l,Rt)}vt.splice(0,E)}finally{b(l),y.allPendingTasks===0&&y.pingedTasks.length===0&&y.clientRenderedBoundaries.length===0&&y.completedBoundaries.length===0&&(y.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),w(l))}}function Md(y){a(function(){return Tu(y)})}function $f(y,l){if(y.status===ja){y.status=za,R(l,y.fatalError);return}if(y.status!==za&&y.destination===null){y.destination=l;try{Ko(y,l)}catch(h){Al(y,h),$a(y,h)}}}function kl(y,l){try{var h=y.abortableTasks;h.forEach(function(v){return Sc(v,y,l)}),h.clear(),y.destination!==null&&Ko(y,y.destination)}catch(v){Al(y,v),$a(y,v)}}function qa(y,l){return new Promise(function(h,v){var E,N,q=new Promise(function(zt,dr){N=zt,E=dr});function K(){var zt=new ReadableStream({type:"bytes",pull:function(dr){$f(ze,dr)},cancel:function(dr){kl(ze)}},{highWaterMark:0});zt.allReady=q,h(zt)}function ve(zt){q.catch(function(){}),v(zt)}var ze=gc(y,Fr(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,ve,E);if(l&&l.signal){var vt=l.signal,Rt=function(){kl(ze,vt.reason),vt.removeEventListener("abort",Rt)};vt.addEventListener("abort",Rt)}Md(ze)})}ap.renderToReadableStream=qa,ap.version=e}()),ap}var y0;function k4(){if(y0)return Rc;y0=1;var r,e;return process.env.NODE_ENV==="production"?(r=A4(),e=E4()):(r=T4(),e=R4()),Rc.version=r.version,Rc.renderToString=r.renderToString,Rc.renderToStaticMarkup=r.renderToStaticMarkup,Rc.renderToNodeStream=r.renderToNodeStream,Rc.renderToStaticNodeStream=r.renderToStaticNodeStream,Rc.renderToReadableStream=e.renderToReadableStream,Rc}var _w=k4();const Gd=yf(_w);function ch(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const $u={_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,u,f;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(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.25:n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[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(C.isValidElement(r))try{const t=_w.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),u=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,u),u}}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 u=0;u<r.length;u++)a+=this.measureCharWidth(r[u],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 f=0;f<r.length;f++){const p=r[f];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 u=Math.ceil(c*a);return this._cache.set(n,u),u}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 u=0;if(e&&e.length>0){const b=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(T,A)=>e[Math.floor(A*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],w=Array.from(new Set(b.filter(Boolean)));for(const T of w){if(!T)continue;const A=this.measureRenderedOptionWidth(T,i);u=Math.max(u,A)}}let f=0;if(!c&&t)f=this.measureRenderedOptionWidth(t,i);else if(c&&n&&n.length){if(n.length===1)f=this.measureRenderedOptionWidth(n[0],i);else if(f=this.measureTextWidth(`${n.length} selected`),n.length>0){let b=0;for(const w of n){const T=this.measureRenderedOptionWidth(w,i);b=Math.max(b,T)}f=Math.max(f,b)}}let p=0;o&&(p=this.measureReactNodeWidth(o));const g=Math.max(u,f,p,50);if(r.current){const b=window.getComputedStyle(r.current),w=parseFloat(b.paddingLeft||"0")+parseFloat(b.paddingRight||"0"),T=parseFloat(b.borderLeftWidth||"0")+parseFloat(b.borderRightWidth||"0"),A=a==="Primary"?30:20,_=c?24:0,R=Math.ceil(g*.05)+10;return Math.ceil(g+w+T+A+_+R)}return g+60}catch{return 200}}};function Aw(r,e){const[t,n]=C.useState(0);return C.useEffect(()=>{const o=()=>{const a=r.current,c=e.current;if(!a||!c)return n(0);const u=a.getBoundingClientRect(),f=c.getBoundingClientRect(),p=Math.max(0,Math.round(u.right-f.left));p!==t&&n(p)};o();const i=new ResizeObserver(o);return r.current&&i.observe(r.current),e.current&&i.observe(e.current),window.addEventListener("resize",o),()=>{i.disconnect(),window.removeEventListener("resize",o)}},[r,e,t]),t}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 Sv(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=Tw(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 Ew(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=Tw(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 Tw(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 Bu(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const I4="_Tooltip_1khnz_1",M4="_Arrow_1khnz_17",b0={Tooltip:I4,Arrow:M4},Rw=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:o=10,direction:i=Io.S}=r,[a,c]=C.useState(!1),u=C.useRef(null),f=C.useRef(null),p=C.useRef(null),m=C.useCallback(()=>{c(!0),p.current&&(clearTimeout(p.current),p.current=null);const T=setTimeout(()=>x0(t,u,f,o,i),n);p.current=T},[t,n,o,i]),g=C.useCallback(()=>c(!1),[]);C.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 b=C.useCallback(()=>{x0(t,u,f,o,i)},[t,o,i]);C.useEffect(()=>{if(!t.current||!u.current||!a)return;const T=t.current.parentElement;let A=T;for(;A;)A.addEventListener("scroll",b),A=A.parentElement;return()=>{let _=T;for(;_;)_.removeEventListener("scroll",b),_=_.parentElement}},[t,b,a]),C.useEffect(()=>{b()},[e,b]);const w=C.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(S.jsxs("div",{ref:u,className:Ye.clsx(b0.Tooltip,"NoSelect"),children:[e,S.jsx("div",{ref:f,className:b0.Arrow})]}),document.body)},lp="5px solid var(--ATooltip_background-color)";function x0(r,e,t,n,o=Io.S){if(!r.current||!e.current||!t.current)return;const i=L4(r.current,e.current,n,o);if(!i)return;const{left:a,top:c,arrowDir:u,arrow:f}=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",u===Io.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${f.left??0}px)`,t.current.style.borderBottom=lp):u===Io.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${f.left??0}px)`,t.current.style.borderTop=lp):u===Io.W?(t.current.style.top=`calc(50% - 5px + ${f.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=lp):u===Io.E&&(t.current.style.top=`calc(50% - 5px + ${f.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=lp)}const kc=5;function L4(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,kc,window.innerWidth-kc-i.width),b=Io.N;return{left:g,top:p,arrowDir:b,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,kc,window.innerWidth-kc-i.width),b=Io.S;return{left:g,top:p,arrowDir:b,arrow:{left:m-g}}}}function u(){if(window.innerWidth-o.right>i.width+t){const p=o.right+t,m=o.top+(o.height-i.height)/2,g=ch(m,kc,window.innerHeight-kc-i.height),b=Io.W;return{left:p,top:g,arrowDir:b,arrow:{top:m-g}}}}function f(){if(o.left>i.width+t){const p=o.left-i.width-t,m=o.top+(o.height-i.height)/2,g=ch(m,kc,window.innerHeight-kc-i.height),b=Io.E;return{left:p,top:g,arrowDir:b,arrow:{top:m-g}}}}if(n===Io.E)return u()||f()||a()||c();if(n===Io.S)return a()||c()||u()||f();if(n===Io.W)return f()||u()||a()||c();if(n===Io.N)return c()||a()||u()||f()}const D4="_ABase_c7a1t_1",O4="_UseDimming_c7a1t_6",N4="_Dimmer_c7a1t_6",P4="_Spinner_c7a1t_9",B4="_Dimmed_c7a1t_12",F4="_HasProgress_c7a1t_18",j4="_IsDimmed_c7a1t_36",z4="_IsLoading_c7a1t_41",H4="_IsDisabled_c7a1t_46",Pd={ABase:D4,UseDimming:O4,Dimmer:N4,Spinner:P4,Dimmed:B4,HasProgress:F4,IsDimmed:j4,IsLoading:z4,IsDisabled:H4},Yr=r=>{const{children:e,abaseRef:t,abaseCallbackRef:n,isDisabled:o,isLoading:i,isDimmed:a,tooltip:c,tooltipDistance:u=10,tooltipDelay:f=0,tooltipDirection:p=Io.S,progress:m,ProgressRenderer:g=$4,progressProps:b,...w}=r,T=C.useRef(null),A=C.useMemo(()=>t??T,[t]),_=C.useMemo(()=>typeof o=="string"&&o!==""?o:c!==void 0?c:"",[o,c]),R=C.useMemo(()=>o||i||a,[o,i,a]),D=C.useMemo(()=>o!==void 0||i!==void 0||a!==void 0,[o,i,a]),M=typeof m=="number"&&i;return S.jsxs("div",{...w,ref:n||A,className:Ye.clsx(w.className,Pd.ABase,D&&Pd.UseDimming,R&&Pd.Dimmed,M&&Pd.HasProgress),children:[e,D&&S.jsx("div",{className:Ye.sclsx(Pd,"Dimmer",o&&"IsDisabled",i&&"IsLoading",a&&"IsDimmed",M&&"HasProgress")}),i&&S.jsxs("div",{className:Ye.sclsx(Pd,"Spinner",o&&"IsDisabled",i&&"IsLoading",M&&"HasProgress"),children:[S.jsx(en,{icon:"Spinner"}),M&&S.jsx(g,{progress:m,...b})]}),S.jsx(Rw,{delay:f,direction:p,distance:u,targetRef:A,tooltip:_})]})},$4=({progress:r,...e})=>S.jsx(Sw,{progress:r,...e}),q4="_AButton_vulhu_1",U4="_Primary_vulhu_14",W4="_Secondary_vulhu_19",V4="_Alter_vulhu_24",G4="_AIconButton_vulhu_30",Y4="_AThemeButton_vulhu_71",Ch={AButton:q4,Primary:U4,Secondary:W4,Alter:V4,AIconButton:G4,AThemeButton:Y4},Z4=["Primary","Secondary","Alter","Raw"],Go=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...o}=r,i=C.useMemo(()=>o.isDisabled||o.isLoading,[o.isDisabled,o.isLoading]),a=C.useCallback(c=>{i||t==null||t(c)},[i,t]);return S.jsx(Yr,{...o,className:Ye.clsx(o.className,Ch.AButton,e!=="Raw"&&Ch[e],"IsClickable",!i&&!n&&"IsInteractive"),onClick:a})},K4=["Primary","Secondary","Raw"],ho=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:o,isDisabled:i,isLoading:a,tooltip:c,className:u,...f}=r,p=C.useMemo(()=>i||a,[i,a]),m=C.useCallback(b=>{p||o==null||o(b)},[p,o]),g=C.useMemo(()=>Cv.includes(e)?S.jsx(en,{icon:e,size:t}):e,[e,t]);return S.jsx(Yr,{className:Ye.clsx(Ch.AIconButton,!i&&!a&&"IsClickable",n!=="Raw"&&Ch[n],u),isDisabled:i,isLoading:a,tooltip:c,onClick:m,...f,children:g})};function vn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=C.useState(e);return C.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const X4="_AWrap_u1f1h_1",J4="_Label_u1f1h_8",Q4="_Asterisk_u1f1h_19",e5="_HelperTextConatiner_u1f1h_23",t5="_HelperText_u1f1h_23",Bd={AWrap:X4,Label:J4,Asterisk:Q4,HelperTextConatiner:e5,HelperText:t5,Error:"_Error_u1f1h_38"},r5=["Default","Error"],Ku=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]},Vc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:o="Default",label:i,labelProps:a,wrapId:c,children:u}=r,f=C.useRef(null),[p,m]=C.useState({height:0}),g=C.useRef(null),[b,w]=C.useMemo(()=>{let A=n,_=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"&&(A=A.filter(Boolean)),A=A.map((R,D)=>S.jsxs(C.Fragment,{children:[R,S.jsx("br",{})]},lr.key(D)))),[A,_]},[n,t,o]);C.useEffect(()=>{if(!b||!f.current)m({height:0});else{const A=f.current.getBoundingClientRect();m({height:A.height,marginTop:A.height===0?0:6})}},[b]);const T=C.useMemo(()=>{switch(typeof(a==null?void 0:a.prefix)){case"string":return S.jsx(en,{height:"1rem",icon:a.prefix,width:"1rem"});case"boolean":return S.jsx(en,{height:10,icon:"Target",width:10});default:return a==null?void 0:a.prefix}},[a==null?void 0:a.prefix]);return S.jsxs("div",{...e,ref:g,className:Ye.clsx(e==null?void 0:e.className,Bd.AWrap),id:c,children:[i&&S.jsxs("div",{className:Ye.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)&&S.jsx(Yr,{className:Bd.Asterisk,tooltip:wr.AWrap.Asterisk,children:"*"}),a==null?void 0:a.rightAddon]}),u,b!==void 0&&S.jsx("div",{className:Ye.clsx(Bd.HelperTextConatiner,"NoSelect"),style:p,children:S.jsx("div",{ref:f,className:Ye.clsx(Bd.HelperText,Bd[w]),children:b})})]})},n5="_ASwitch_nlcij_1",o5="_Track_nlcij_6",i5="_Truthy_nlcij_13",s5="_Thumb_nlcij_17",Yf={ASwitch:n5,Track:o5,Truthy:i5,Thumb:s5},kw=r=>{const{useCheck:e,...t}=r,[{wrapId:n,wrapProps:o,labelProps:i,...a},c]=Ku(t),[u,f]=vn(e,!1),p=C.useCallback(m=>{var g;c.isDisabled||c.isLoading||(f==null||f(!u),(g=c.onClick)==null||g.call(c,m))},[c,u,f]);return S.jsx(Vc,{wrapId:n,wrapProps:o,labelProps:i,...a,children:S.jsx(Yr,{...c,className:Yf.ASwitch,onClick:p,children:S.jsx("div",{className:Ye.clsx(Yf.Track,u&&Yf.Truthy),children:S.jsx("div",{className:Ye.clsx(Yf.Thumb,u&&Yf.Truthy)})})})})},a5={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=Hc.cloneDeep(a5);lr.keys(Lo.semantic).forEach(r=>{const e=Lo.semantic[r];lr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const Cg=lr.keys(Lo.palette),Iw=lr.keys(Lo.palette[Cg[0]]);function l5(){return fo.paletteMode}function c5(r,e=fo.paletteMode){return Lo.palette[e][r]}function u5(r){return _g(r)}const Xp=[];function Mw(r){fo.paletteMode=r,Iw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.palette[r][e])),Xp.forEach(e=>e(r))}function Lw(r,e="all"){lr.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?Cg.forEach(i=>{Lo.palette[i][n]=o}):Lo.palette[e][n]=o)})}const sf=lr.keys(Lo.semantic),Dw=lr.keys(Lo.semantic[sf[0]]);function d5(){return fo.semanticMode}function f5(r,e=fo.semanticMode){return Lo.semantic[e][r]}function h5(r){return _g(r)}const Jp=[];function _v(r){fo.semanticMode=r,document.documentElement.setAttribute("data-theme",r),Dw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.semantic[r][e])),Jp.forEach(e=>e(r)),fo.save==="localStorage"?localStorage.setItem("semanticMode",r):fo.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function Ow(r,e=fo.semanticMode){lr.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 Nw=["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"],Pw=["ABase_Dimming_background-color"],Bw=["ATooltip_background-color","ATooltip_color"],Fw=["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"],jw=["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"],zw=["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"],Hw=["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"],$w=["ACheckBox_color"],qw=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],Uw=["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"],Ww=["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"],Vw=["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"],Gw=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],Yw=["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"],Zw=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],Kw=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],Xw=["AListView_border-thin","AListView_border-thick"],Jw=["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"],Qw=["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"],eC=["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"],tC=["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"],rC=["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"],nC=["ADivideFrame_DividerInner_background-color"],oC=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],iC=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],sC=["AWrap_Error_color"],aC=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],lC=["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"],p5=[...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,...aC,...lC],Sg={"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 g5(r){return Sg[r]}function m5(r){return _g(r)}function cC(r){lr.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),Sg[t]=n)})}function v5(r){lr.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),Sg[t]=o)})}const fo={paletteMode:Cg[0],semanticMode:sf[0],save:"",followDeviceSetting:!1};function y5({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),Mw(fo.paletteMode),_v(fo.semanticMode),Lw(Lo.palette[fo.paletteMode]),Ow(Lo.semantic[fo.semanticMode]),cC(Sg)}function b5(r){r.type==="semanticModeChange"?Jp.push(r.listener):r.type==="paletteModeChange"?Xp.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function x5(r){if(r.type==="semanticModeChange"){const e=Jp.indexOf(r.listener);e!==-1&&Jp.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Xp.indexOf(r.listener);e!==-1&&Xp.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function _g(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function w5(r){Object.assign(Ye.additionalClasses,r),Ye.updateKeys(),Ye.additionalClasses=Ye.additionalClasses}const uh={getCurrentPaletteMode:l5,getPaletteValue:c5,getPaletteDeepValue:u5,changePaletteMode:Mw,editPalette:Lw,getCurrentSemanticMode:d5,getSemanticValue:f5,getSemanticDeepValue:h5,changeSemanticMode:_v,editSemantic:Ow,getComponentStyleValue:g5,getComponentStyleDeepValue:m5,editComponentStyle:cC,editComponentStyleWithSemantic:v5,init:y5,addEventListener:b5,removeEventListener:x5,getDeepValue:_g,addClasses:w5},C5=r=>{const{onChange:e,onClick:t,type:n="Icon",...o}=r,[i,a]=C.useState(uh.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),c=C.useCallback(u=>{const f=uh.getCurrentSemanticMode();let p="light";f==="light"?p="dark":f==="dark"&&(p="light"),uh.changeSemanticMode(p),a(S5[p]),e==null||e(p),t==null||t(u)},[e,t]);if(n==="Icon")return S.jsx(ho,{...o,className:Ye.clsx(Ch.AThemeButton,o.className,"IsInteractive"),icon:i,type:"Raw",onClick:c});if(n==="Switch")return S.jsx(kw,{...o,useCheck:[uh.getCurrentSemanticMode()==="dark",c]})},S5={light:"Sun",dark:"Moon"},_5="_ACheckBoxWrap_1ozuz_1",A5="_ACheckBox_1ozuz_1",w0={ACheckBoxWrap:_5,ACheckBox:A5},af=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:o,onClick:i,...a}=r,[c,u]=vn(e,!1),f=C.useCallback(p=>{n||o||(u==null||u(!c),i==null||i(p))},[n,o,i,c,u]);return S.jsx(Yr,{...a,className:Ye.clsx(a.className,w0.ACheckBoxWrap),isDisabled:n,isLoading:o,onClick:f,children:S.jsx(en,{className:w0.ACheckBox,icon:t?"Check.Indeterminate":c?"Check.Checked":"Check.UnChecked"})})};function E5(r){return typeof r=="function"}function T5(r,e){return E5(r)?r(e):r}const Er={getContent:T5};class C0{constructor(e){ue(this,"capacity");ue(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 zu=class zu{constructor(){ue(this,"databases",{});ue(this,"caches",{});ue(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return zu.instance||(zu.instance=new zu),zu.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new C0(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 u=c.target.result;this.databases[e]=u,o(u)},a.onupgradeneeded=c=>{const u=c.target.result;u.objectStoreNames.contains(t)||u.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((u,f)=>{const p=c.put(n);p.onsuccess=()=>u(),p.onerror=m=>{console.error("데이터 저장 오류:",m.target.error),f(m.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(u=>o.put(u.id,{...u}));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((u,f)=>{a.oncomplete=()=>u(),a.onerror=p=>{console.error("배치 저장 오류:",p.target.error),f(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 u=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((f,p)=>{const m=u.get(n);m.onsuccess=()=>{const g=m.result;g&&o.put(n,g),f(g||null)},m.onerror=g=>{console.error("데이터 조회 오류:",g.target.error),p(g.target.error)}})}async getByIndex(e,t,n,o){const u=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((f,p)=>{const m=u.getAll(o);m.onsuccess=()=>{const g=m.result,b=this.getCache(e,t);g.forEach(w=>{w&&w.id&&b.put(w.id,w)}),f(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((u,f)=>{const p=c.delete(n);p.onsuccess=()=>u(),p.onerror=m=>{console.error("데이터 삭제 오류:",m.target.error),f(m.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(u=>o.delete(u));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((u,f)=>{a.oncomplete=()=>u(),a.onerror=p=>{console.error("배치 삭제 오류:",p.target.error),f(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 u=i.getAll();u.onsuccess=()=>{const f=u.result,p={},m=this.getCache(e,t);f.forEach(g=>{g.id&&(p[g.id]=g,m.put(g.id,g))}),a(p)},u.onerror=f=>{console.error("데이터 전체 조회 오류:",f.target.error),c(f.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,u)=>{const f=a.clear();f.onsuccess=()=>c(),f.onerror=p=>{console.error("데이터 초기화 오류:",p.target.error),u(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 C0(n);for(const[c,u]of a)this.caches[o].get(c)===void 0&&c!==void 0&&this.caches[o].put(c,u)}};ue(zu,"instance");let N1=zu;const na=N1.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 uC(r,e,t={}){const{dataFieldName:n="data"}=t,[o,i]=C.useState(!1),[a,c]=C.useState(null),u=C.useRef(new Map);C.useEffect(()=>{const j=u.current;return()=>{j.forEach(G=>G.abort()),j.clear()}},[]);const f=C.useCallback(j=>{const G=u.current,fe=G.get(j);fe&&fe.abort();const P=new AbortController;return G.set(j,P),P},[]),p=C.useCallback(j=>{u.current.delete(j)},[]),m=C.useCallback(async(j,G)=>{try{i(!0),c(null),f(j);const fe=await G();return p(j),fe}catch(fe){return fe instanceof Error&&fe.name==="AbortError"||c(fe instanceof Error?fe:new Error(String(fe))),null}finally{i(!1)}},[f,p]),g=C.useCallback(async(j,G)=>j?await m(`save_${j}`,async()=>(await sa.save(r,e,{id:j,[n]:G,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,m]),b=C.useCallback(async j=>j.length?await m(`batch_save_${Date.now()}`,async()=>{const G=j.map(fe=>({id:fe.id,[n]:fe.data,updatedAt:new Date().toISOString()}));return await sa.batchSave(r,e,G),!0})===!0:!1,[r,e,n,m]),w=C.useCallback(async j=>j?await m(`get_${j}`,async()=>{const G=await sa.get(r,e,j);return(G==null?void 0:G[n])||null}):null,[r,e,n,m]),T=C.useCallback(j=>{if(!j)return null;const G=sa.getCached(r,e,j);return(G==null?void 0:G[n])||null},[r,e,n]),A=C.useCallback(async j=>j?await m(`delete_${j}`,async()=>(await sa.delete(r,e,j),!0))===!0:!1,[r,e,m]),_=C.useCallback(async j=>j.length?await m(`batch_delete_${Date.now()}`,async()=>(await sa.batchDelete(r,e,j),!0))===!0:!1,[r,e,m]),R=C.useCallback(async()=>await m(`get_all_${Date.now()}`,async()=>{const j=await sa.getAll(r,e);return Object.entries(j).reduce((G,[fe,P])=>(G[fe]=P[n],G),{})})||{},[r,e,n,m]),D=C.useCallback(async()=>await m(`clear_all_${Date.now()}`,async()=>(await sa.clear(r,e),!0))===!0,[r,e,m]),M=C.useCallback(j=>{const G=u.current.get(j);G&&(G.abort(),u.current.delete(j))},[]),F=C.useCallback(()=>{new Map(u.current).forEach(G=>G.abort()),u.current.clear()},[]),B=C.useCallback(j=>{sa.setCacheSize(r,e,j)},[r,e]),z=C.useCallback(()=>{sa.clearCached(r,e)},[r,e]);return{save:g,get:w,delete:A,getAll:R,clearAll:D,batchSave:b,batchDelete:_,getCached:T,setCacheSize:B,clearCache:z,cancelOperation:M,cancelAllOperations:F,isLoading:o,error:a}}const R5="LayoutDB",k5="layouts";function dC(){const r=uC(R5,k5,{dataFieldName:"lengths"}),[e,t]=C.useState({}),n=C.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(b=>({...b,[p]:!0}))})),{data:null,isLoaded:!1})},u=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)),f=C.useCallback(()=>{t({}),n.current={}},[]);return{save:o,get:i,getCached:a,getSync:c,deleteItem:u,resetSyncState:f,isLoading:r.isLoading,error:r.error}}const I5="_ARowFrame_j9gdv_1",M5="_AColFrame_j9gdv_7",L5="_AOverflowFrame_j9gdv_13",D5="_ADivideFrame_j9gdv_22",O5="_Row_j9gdv_30",N5="_Col_j9gdv_33",P5="_FadeIn_j9gdv_36",B5="_NoTransition_j9gdv_39",F5="_ChildFrame_j9gdv_43",j5="_ExpandButtonOverlay_j9gdv_61",z5="_Divider_j9gdv_68",H5="_IsMoving_j9gdv_76",$5="_NoDraggable_j9gdv_76",q5="_DividerInner_j9gdv_79",U5="_IsClicked_j9gdv_104",W5="_RemoteButton_j9gdv_139",V5="_isExpanded_j9gdv_146",G5="_ExpandButton_j9gdv_61",An={ARowFrame:I5,AColFrame:M5,AOverflowFrame:L5,ADivideFrame:D5,Row:O5,Col:N5,FadeIn:P5,NoTransition:B5,ChildFrame:F5,ExpandButtonOverlay:j5,Divider:z5,IsMoving:H5,NoDraggable:$5,DividerInner:q5,IsClicked:U5,RemoteButton:W5,isExpanded:V5,"fade-in":"_fade-in_j9gdv_1",ExpandButton:G5},kn=r=>S.jsx(Yr,{...r,className:Ye.clsx(An.ARowFrame,r.className),children:r.children}),fC=r=>S.jsx("div",{...r,className:Ye.clsx(An.AColFrame,r.className),children:r.children}),tl=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:o,className:i,noOverflowTooltip:a,...c}=r,u=C.useRef(null),f=C.useMemo(()=>n??u,[n]),[p,m]=C.useState(!1),g=C.useCallback(()=>m(!0),[]),b=C.useCallback(()=>m(!1),[]);C.useEffect(()=>{const T=f.current;if(T)return T.addEventListener("mouseenter",g),T.addEventListener("mouseleave",b),()=>{T.removeEventListener("mouseenter",g),T.removeEventListener("mouseleave",b)}},[f,g,b]);const w=C.useMemo(()=>{if(o)return"";if(a||!p)return e;const T=f.current;return T&&T.scrollWidth>T.clientWidth?t:e},[f,o,t,e,a,p]);return S.jsx(Yr,{...c,children:t,abaseRef:f,className:Ye.clsx(An.AOverflowFrame,i),isDisabled:o,tooltip:w})},hC=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:S.jsx(C.Suspense,{children:t[e]})},pC=C.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:o=40,expandLayerLength:i=40,children:a,childStyle:c,childClassName:u,dividerStyle:f,dividerClassName:p,dividerPadding:m,dividerInnerClassName:g,dividerInnerStyle:b,showRemote:w,ShowRemoteRenderer:T=Y5,noDividerDraggable:A,resources:_,showExpandButton:R,...D}=r,M=C.useMemo(()=>({...wr.ADivideFrame,..._}),[_]),F=C.useRef(null),B=C.useRef(!1),z=C.useRef(!0),j=C.useRef(n),[G,fe]=C.useState(),[P,U]=C.useState("FadeOut"),[V,Q]=C.useState(!1),[se,te]=C.useState(null),{save:re,get:ne,deleteItem:be}=dC(),ie=C.useCallback(()=>{z.current&&requestAnimationFrame(()=>{z.current=!1,U("FadeIn")})},[]),de=C.useMemo(()=>{let Ne;return Array.isArray(a)?Ne=a:Ne=[a],Ne.filter(Boolean)},[a]),me=C.useMemo(()=>de.length,[de.length]),Ae=C.useMemo(()=>de.length-1,[de.length]),De=C.useMemo(()=>e?String(e):"",[e]),oe=C.useMemo(()=>e&&!w,[e,w]),ge=C.useCallback(async()=>{if(!oe){te(n),ie();return}try{const Ne=await ne(De);Ne?te(Ne):(te(n),re(De,n)),ie()}catch{te(n),ie()}},[oe,ie,De,ne,n,re]);C.useEffect(()=>{ge()},[ge]),C.useEffect(()=>{j.current!==n&&(j.current=n,B.current||(te(n),oe&&re(De,n)),B.current=!1)},[oe,n,De,re]);const we=C.useMemo(()=>{const Ne=m??0;return typeof o=="number"?Array(me).fill(o+Ne):o.map(Xe=>Xe+Ne)},[o,me,m]),Le=C.useMemo(()=>(G==null?void 0:G.lefts)||se||[],[G,se]),Ce=C.useRef({x:0,y:0}),Se=C.useCallback((Ne,Xe,We)=>{const Ve=Le[Ne],at=Ne===0?0:Le[Ne-1],lt=Ve-at,Oe={...c,...Z5(t,lt,Xe)};return m!==void 0&&(t==="Row"?(We||(Oe.paddingLeft=m),Xe||(Oe.paddingRight=m)):(We||(Oe.paddingTop=m),Xe||(Oe.paddingBottom=m))),Oe},[Le,c,t,m]),Ie=C.useCallback(()=>{if(!(!w||t!=="Row")){if(V)te(n),B.current=!1;else{if(me<=1)return;const Ne=[];let Xe=0;for(let We=0;We<me-1;We++){const Ve=typeof o=="number"?o:o[We]||o[0];Xe+=Ve,Ne.push(Xe)}te(Ne),B.current=!0}Q(Ne=>!Ne),z.current=!1}},[w,t,V,me,n,o]),et=C.useCallback((Ne,Xe)=>{if(Xe)return We=>{if(!F.current||!se)return;z.current=!1;const Ve=F.current;Ce.current={x:We.clientX,y:We.clientY};const at=Ve.getBoundingClientRect(),lt=t==="Row"?at.left:at.top,Oe=t==="Row"?at.width:at.height;let st=[...se];fe({idx:Ne,lefts:st});const mt=Lt=>{st=Q5(se,t,Ne,Lt,lt,Oe,we),fe({idx:Ne,lefts:st})},ut=()=>{fe(void 0),te(st),B.current=!0,oe&&re(De,st),window.removeEventListener("mousemove",mt),window.removeEventListener("mouseup",ut)};window.addEventListener("mousemove",mt),window.addEventListener("mouseup",ut)}},[se,t,we,oe,De,re]),Je=C.useCallback(Ne=>{if(Ne)return()=>{te(n),B.current=!1,fe(void 0),oe&&be(De)}},[n,oe,De,be]),Qe=C.useMemo(()=>de.map((Ne,Xe)=>{const We=w&&(V||!V&&Xe===Ae-1);return!(A||We)}),[de,w,V,A,Ae]),Ze=C.useMemo(()=>{if(!R||!F.current||P!=="FadeIn")return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const Ne=F.current.getBoundingClientRect(),Xe=t==="Row"?Ne.width:Ne.height;if(Xe===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const We=[];for(let lt=0;lt<me;lt++){const Oe=Le[lt],st=lt===0?0:Le[lt-1],mt=lt===Ae?Xe-st:Oe-st,ut=Array.isArray(we)?we[lt]:we[0],Lt=typeof i=="number"?i:i[lt]||i[0]||40;ut>Lt||We.push({actualLength:mt,minLength:ut,isCollapsed:mt<=ut})}const Ve=We.reduce((lt,Oe,st)=>(Oe.isCollapsed&<.push(st),lt),[]);if(Ve.length===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};let at=-1;return Ve.includes(0)?at=0:Ve.includes(Ae)?at=Ae:at=Ve[0],{hasCollapsedAreas:!0,collapsedAreaIndex:at}},[R,P,t,me,Ae,Le,we,i]),Ke=C.useCallback(()=>{R&&(te(n),B.current=!1,oe&&re(De,n),z.current=!1)},[R,n,oe,De,re]),ht=C.useMemo(()=>Qe.map((Ne,Xe)=>et(Xe,Ne)),[Qe,et]),Pe=C.useMemo(()=>Qe.map(Ne=>Je(Ne)),[Qe,Je]);return se?S.jsx("div",{...D,ref:F,className:Ye.clsx(An.ADivideFrame,r.className,An[t],An[P],z.current&&An.NoTransition),children:de.map((Ne,Xe)=>{const We=Xe===0,Ve=Xe===Ae,at=Se(Xe,Ve,We),lt=Le[Xe],Oe=Qe[Xe],st=ht[Xe],mt=Pe[Xe];return S.jsxs(C.Fragment,{children:[S.jsxs("div",{style:at,className:Ye.clsx(An.ChildFrame,u,G&&An.IsMoving,z.current&&An.NoTransition,An[t]),children:[Ve&&w&&t==="Row"&&S.jsx(T,{handleToggleExpand:Ie,isExpanded:V,resources:M}),Ne,R&&Ze.hasCollapsedAreas&&Ze.collapsedAreaIndex===Xe&&S.jsxs(S.Fragment,{children:[S.jsx(Yr,{className:Ye.clsx(An.ExpandButtonOverlay,An[t]),onClick:Ke}),S.jsx(ho,{className:Ye.clsx(An.ExpandButton,An[t]),icon:X5(Xe,me),tooltip:M.Expand,type:"Raw",style:{transform:J5(Xe,t)},onClick:Ke})]})]}),!Ve&&S.jsx("div",{"data-nodraggable":Oe?void 0:"true",className:Ye.clsx(An.Divider,An[t],"NoSelect",G&&An.IsMoving,(G==null?void 0:G.idx)===Xe&&An.IsClicked,z.current&&An.NoTransition,!Oe&&An.NoDraggable,p),style:{...f,...K5(t,lt)},onDoubleClick:mt,onMouseDown:st,children:S.jsx("div",{className:Ye.clsx(An.DividerInner,g),style:{...b}})})]},Xe)})}):S.jsx("div",{...D,ref:F,className:Ye.clsx(An.ADivideFrame,r.className,An[t],An.FadeOut,An.NoTransition),style:{...D.style,visibility:"hidden",pointerEvents:"none"}})});pC.displayName="ADivideFrame";const Y5=r=>{const{handleToggleExpand:e,isExpanded:t,resources:n}=r;return S.jsx(ho,{className:Ye.clsx(An.RemoteButton,t&&An.isExpanded),icon:"DividerExpand",iconSize:"md",tabIndex:0,tooltip:t?n.Collapse:n.Expand,type:"Raw",onClick:e})};function Z5(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function K5(r,e){return r==="Col"?{top:e}:{left:e}}function X5(r,e){const t=r===0,n=r===e-1;return t||n?"DividerExpand":"DividerMiddle"}function J5(r,e){const t=r===0;let n="";return e==="Row"&&t?n=" rotate(180deg)":e==="Col"&&(n=t?" rotate(-90deg)":" rotate(90deg)"),`translate(-50%, -50%)${n}`}function Q5(r,e,t,n,o,i,a){const c=[...r],u=e==="Row"?n.clientX-o-r[t]:n.clientY-o-r[t];if(u===0)return c;const f=a.length,p=r.length,m=t+1,g=[],b=[];let w=0;for(let _=0;_<=f;_++)g[_]=w,_<f&&(w+=a[_]);let T=0;for(let _=f-2;_>=0;_--)T+=a[_+1],b[_]=T;b[f-1]=0;let A=c[t]+u;if(u<0){if(A<=g[m])for(let _=0;_<=t;_++)c[_]=g[_+1];else if(c[t]=A,t>0)for(let _=t-1;_>=0&&A-c[_]<a[_+1];_--)c[_]=A-a[_+1],A=c[_]}else{const _=t===f-2?a[f-1]:0;if(A>=i-b[t]-_)for(let R=t;R<p;R++)c[R]=i-b[R]-(R===p-1?0:_);else if(c[t]=A,t<p-1)for(let R=m;R<p&&c[R]-A<a[R];R++)c[R]=A+a[R],A=c[R]}return c}const Xu=()=>S.jsx("div",{style:{display:"flex",flexGrow:1}}),e6="_ASpace_1okqf_1",t6={ASpace:e6},zn=r=>{const{h:e,w:t,...n}=r;return S.jsx("div",{...n,className:Ye.clsx(t6.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},r6="_AChipsContainer_1ag9v_1",n6="_AChip_1ag9v_1",o6="_Clickable_1ag9v_21",i6="_AChipDelete_1ag9v_26",s6="_IsHover_1ag9v_40",a6="_AChipDeleteIcon_1ag9v_45",Xd={AChipsContainer:r6,AChip:n6,Clickable:o6,AChipDelete:i6,IsHover:s6,AChipDeleteIcon:a6},l6=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:o,ChipOnDelete:i,ChipOnClick:a,ChipIcon:c,className:u,style:f,ButtonRenderer:p=gC,gap:m=8,...g}=r,[b,w]=vn(e,[]),T=C.useCallback(_=>{!w||!i||(i({label:_}),w(b.filter(R=>R!==_)))},[w,i,b]),A=C.useCallback(_=>{const R={label:_};return{label:_,useLabel:[_,()=>{}],style:Er.getContent(n,R),className:Er.getContent(o,R),icon:Er.getContent(c,R),onDelete:()=>T(_),onClick:a?()=>a({label:_}):void 0}},[o,c,a,n,T]);return S.jsx(Yr,{...g,className:Ye.clsx(Xd.AChipsContainer,u),style:{...f,alignItems:t,gap:m},children:b.map((_,R)=>S.jsx(Av,{...A(_),ButtonRenderer:p},R))})},Av=r=>{const{label:e,useLabel:t,icon:n,className:o,onDelete:i,onClick:a,ButtonRenderer:c=gC,width:u="fit-content",style:f,...p}=r;return e===void 0?S.jsx(S.Fragment,{}):S.jsxs(Yr,{...p,className:Ye.clsx("NoSelect",Xd.AChip,a&&Xd.Clickable,a&&"IsClickable",o),style:{...f,width:u},onClick:a,children:[S.jsx(tl,{children:e}),c({...r})]})},gC=r=>{const{label:e,icon:t,onDelete:n,useLabel:o}=r,[,i]=vn(o,e),[a,c]=C.useState(!1),u=C.useCallback(m=>{n&&(m.stopPropagation(),i==null||i(void 0),n(r))},[n,r,i]),f=()=>{c(!0)},p=()=>{c(!1)};return S.jsx(S.Fragment,{children:n&&S.jsxs(S.Fragment,{children:[S.jsx(Xu,{}),S.jsx(zn,{w:24}),S.jsx(Yr,{className:Ye.clsx(Xd.AChipDelete,"IsClickable",a&&Xd.IsHover)}),S.jsx(ho,{className:Xd.AChipDeleteIcon,icon:t||S.jsx(en,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:u,onMouseEnter:f,onMouseLeave:p})]})})},qu=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]}`},c6=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},u6=/[a-zA-Z0-9]/,d6=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,f6=/^[a-zA-Z0-9._-]+$/,h6=/^[0-9a-fA-F-]+$/i,p6=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,g6=/^\S*$/,m6=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,v6=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,y6=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,b6=/^[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}$/,x6={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)},w6=()=>"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)}),Ev={secondToTime:c6,validate:x6,FileSizeTrans:qu,uuid:w6},C6=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:o,actionRef:i,...a}=r,[{wrapId:c,wrapProps:u,labelProps:f,...p},m]=Ku(a),[g,b]=C.useState(0),[w,T]=C.useState(!o);C.useEffect(()=>{if(!w||m.isDisabled||m.isLoading)return;const F=setInterval(()=>b(B=>B+1),t);return()=>clearInterval(F)},[t,w,m.isDisabled,m.isLoading]);const A=C.useCallback(()=>{n==null||n(),T(!1)},[n]);C.useEffect(()=>{g>=e&&!m.isDisabled&&!m.isLoading&&A()},[g,e,A,m.isDisabled,m.isLoading]);const _=C.useCallback(()=>{m.isDisabled||T(!0)},[m.isDisabled]),R=C.useCallback(()=>{m.isDisabled||T(!1)},[m.isDisabled]),D=C.useCallback(()=>{m.isDisabled||(T(!1),b(0))},[m.isDisabled]);C.useEffect(()=>{i&&(i.current={start:_,stop:R,reset:D,setTicks:b})},[i,_,R,D]);const M=e-g;return S.jsx(Vc,{wrapId:c,wrapProps:u,labelProps:f,...p,children:S.jsx(Yr,{...m,children:Ev.secondToTime(M>0?M: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 S6(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function _6(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function A6(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function S0(r,e){return ha(r)===ha(e)}function Jd(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 tg(r,e){return ha(r)<=ha(e)}function _0(r,e,t){return Jd(r,t)?Jd(e,t)&&eg(e,r):Jd(e,r)&&eg(e,t)}function A0(r,e,t){return Jd(r,t)?Qp(e,t)&&tg(e,r):Qp(e,r)&&tg(e,t)}const rr={toString:ha,toDate:S6,makeSDate:_6,makeEDate:A6,"===":S0,">":Jd,">=":Qp,"<":eg,"<=":tg,"s<d<e|e<d<s":_0,"s<=d<=e|e<=d<=s":A0,eq:S0,g:Jd,ge:Qp,l:eg,le:tg,b:_0,be:A0},E6="_InputContainer_16eoo_7",T6="_AInput_16eoo_21",R6="_LeftAddon_16eoo_43",k6="_RightAddon_16eoo_50",I6="_ErrorHelperText_16eoo_57",M6="_Primary_16eoo_61",L6="_UnAvailable_16eoo_66",D6="_Secondary_16eoo_77",O6="_ReadOnly_16eoo_92",N6="_ANumInputUnitSelect_16eoo_108",Jo={InputContainer:E6,AInput:T6,LeftAddon:R6,RightAddon:k6,ErrorHelperText:I6,Primary:M6,UnAvailable:L6,Secondary:D6,ReadOnly:O6,Error:"_Error_16eoo_57",ANumInputUnitSelect:N6},P6=["Primary","Secondary","ReadOnly","Error"],Gc=r=>{const{onEnterPress:e,type:t="Primary",inputRef:n,useValue:o,isReadonly:i,placeholder:a,minLength:c,maxLength:u,tabIndex:f,autoFocus:p,isPassword:m,autoComplete:g="off",inputProps:b,LeftAddon:w,RightAddon:T,dataList:A=[],id:_=(b==null?void 0:b.id)??Ev.uuid(),...R}=r,[{wrapId:D,wrapProps:M,labelProps:F,...B},z]=Ku(R),j=C.useMemo(()=>B6(B.errorMessage)?"Error":t,[B.errorMessage,t]),G=C.useMemo(()=>j==="ReadOnly"?!0:i,[j,i]),fe=C.useMemo(()=>z.isDisabled||z.isLoading,[z.isDisabled,z.isLoading]),[P,U]=vn(o,""),V=C.useCallback(se=>{var te;fe||((te=b==null?void 0:b.onKeyDown)==null||te.call(b,se),["Escape","Enter","ArrowUp","ArrowDown"].includes(se.key)||se.stopPropagation(),se.key==="Enter"&&e&&e(se.currentTarget.value))},[fe,b,e]),Q=C.useCallback(se=>{var te;fe||c&&se.target.value.length<c||(U==null||U(se.target.value),(te=b==null?void 0:b.onChange)==null||te.call(b,se))},[fe,c,U,b]);return m?S.jsx(Vc,{wrapId:D,wrapProps:M,labelProps:F,...B,children:S.jsx("form",{onSubmit:se=>se.preventDefault(),children:S.jsxs(Yr,{...z,className:Ye.clsx(Jo.InputContainer,Jo[j],fe&&Jo.UnAvailable,z.className),children:[w&&S.jsx("div",{className:Jo.LeftAddon,children:w}),S.jsx("input",{...b,ref:n,autoComplete:g,autoFocus:p,className:Ye.clsx(Jo.AInput,j==="Error"&&Jo.InputError,b==null?void 0:b.className),id:_,list:`${_}-datalist`,maxLength:u,placeholder:a,readOnly:G,tabIndex:z.isDisabled||z.isLoading?-1:f,type:"password",value:P,onChange:Q,onKeyDown:V}),A.length>0&&S.jsx("datalist",{id:`${_}-datalist`,children:A.map((se,te)=>S.jsx("option",{value:se},te))}),T&&S.jsx("div",{className:Ye.clsx(Jo.RightAddon,"NoSelect"),children:T})]})})}):S.jsx(Vc,{wrapId:D,wrapProps:M,labelProps:F,...B,children:S.jsxs(Yr,{...z,className:Ye.clsx(Jo.InputContainer,Jo[j],fe&&Jo.UnAvailable,z.className),children:[w&&S.jsx("div",{className:Jo.LeftAddon,children:w}),S.jsx("input",{...b,ref:n,autoComplete:g,autoFocus:p,className:Ye.clsx(Jo.AInput,j==="Error"&&Jo.InputError,b==null?void 0:b.className),id:_,list:`${_}-datalist`,maxLength:u,placeholder:a,readOnly:G,tabIndex:z.isDisabled||z.isLoading?-1:f,value:P,onChange:Q,onKeyDown:V}),A.length>0&&S.jsx("datalist",{id:`${_}-datalist`,children:A.map((se,te)=>S.jsx("option",{value:se},te))}),T&&S.jsx("div",{className:Jo.RightAddon,children:T})]})})};function B6(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const F6="_ASelect_1gbzd_1",j6="_Arrow_1gbzd_14",z6="_Primary_1gbzd_23",H6="_UnAvailable_1gbzd_34",$6="_IsOpen_1gbzd_34",q6="_Secondary_1gbzd_41",U6="_Placeholder_1gbzd_57",W6="_ValuesContainer_1gbzd_61",V6="_Values_1gbzd_61",G6="_Options_1gbzd_80",Y6="_Raw_1gbzd_93",Z6="_Option_1gbzd_80",K6="_Selected_1gbzd_122",X6="_CheckBox_1gbzd_129",rs={ASelect:F6,Arrow:j6,Primary:z6,UnAvailable:H6,IsOpen:$6,Secondary:q6,Placeholder:U6,ValuesContainer:W6,Values:V6,Options:G6,Raw:Y6,Option:Z6,Selected:K6,CheckBox:X6},J6=["Primary","Secondary","Raw"],zl=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.ASelect["Select(Placeholder)"],onClose:i,OptionRenderer:a=eR,SelectedRenderer:c=tR,minShowRows:u=2,maxShowRows:f=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,b=C.useRef(null),w=C.useMemo(()=>g.abaseRef??b,[g.abaseRef]),T=C.useRef(null),[A,_]=vn(t,e[0]),[R,D]=C.useState(void 0),[M,F]=C.useState(!1),[B,z]=C.useState(!1),j=C.useRef(e),G=C.useRef(null),fe=C.useCallback(()=>z(!1),[]),P=C.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(z(!0),setTimeout(()=>F(!0),0),setTimeout(()=>fm(T,w,e,u,f),0))},[w,g.isDisabled,g.isLoading,e,u,f]),U=C.useCallback(()=>{F(!1),z(!0),i==null||i()},[i]),V=C.useCallback(ie=>{var de;M?U():P(),setTimeout(()=>fm(T,w,e,u,f),0),(de=g.onClick)==null||de.call(g,ie)},[w,g,e,M,U,P,u,f]),Q=C.useCallback(()=>{fm(T,w,e,u,f)},[w,e,u,f]);C.useEffect(()=>{if(!M||!w.current)return;const ie=w.current;let de=ie.parentElement;for(;de;)de.addEventListener("scroll",Q),de=de.parentElement;return()=>{let me=ie.parentElement;for(;me;)me.removeEventListener("scroll",Q),me=me.parentElement}},[w,M,Q]),C.useEffect(()=>{if(M)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[M,Q]);const se=C.useCallback(ie=>{ie[0].intersectionRatio===0&&U()},[U]);C.useEffect(()=>{if(!M)return;const ie=new IntersectionObserver(se,{threshold:0});return w.current&&ie.observe(w.current),()=>ie.disconnect()},[w,M,se]);const te=C.useCallback(ie=>{const de=ie.target,me=w.current,Ae=T.current;!me||!de||!Ae||!me.contains(de)&&!Ae.contains(de)&&U()},[w,U]),re=C.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);C.useEffect(()=>{if(M)return setTimeout(()=>document.addEventListener("mousedown",te),0),()=>document.removeEventListener("mousedown",te)},[M,te]);const ne=C.useCallback((ie,de)=>{ie.stopPropagation(),ie.preventDefault(),_==null||_(de),U()},[_,U]),be=C.useCallback(()=>{if(!m||!w.current)return;const ie=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOption:A,placeholder:o,optionRenderer:de=>de===null?null:a({option:de}),type:n,isMulti:!1});D(ie)},[m,w,e,A,o,a,n]);return C.useEffect(()=>m?((e!==j.current||R===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{be(),G.current=null,j.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[m,e,be,R]),C.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ye.clsx(g.className,rs.ASelect,"NoSelect",M&&rs.IsOpen,re&&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:[S.jsx("div",{className:rs.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(rs.Values,(A==null||A==="")&&rs.Placeholder),children:S.jsx(c,{OptionRenderer:a,placeholder:o,selectedOption:A})})}),S.jsx("div",{...p,className:Ye.clsx(rs.Arrow,p==null?void 0:p.className),children:S.jsx(en,{icon:"TriangleDown",style:{transform:M?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(M||B)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(rs.Options,rs[n]),style:{opacity:+M,visibility:M?"visible":"hidden",pointerEvents:M?void 0:"none",borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0,width:R?`${R}px`:m?"100px":void 0},onTransitionEnd:fe,children:e.map((ie,de)=>{const me=A===ie,Ae=w.current?window.getComputedStyle(w.current):void 0;return ie===null?null:S.jsx("div",{className:Ye.clsx(rs.Option,me&&rs.Selected,"NoSelect",rs[n]),style:{height:Ae==null?void 0:Ae.height},onClick:De=>ne(De,ie),children:S.jsx(a,{option:ie})},de)})}),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=Q6(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 Q6(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 eR=r=>{const{option:e}=r;return lr.isReactNode(e)?e:null},tR=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:S.jsx(t,{option:e})},rR="_Anchor_1l5ql_1",nR="_Primary_1l5ql_18",oR="_Secondary_1l5ql_21",iR="_Placeholder_1l5ql_25",sR="_Icon_1l5ql_30",aR="_ADatePicker_1l5ql_40",lR="_StringInputWrap_1l5ql_51",cR="_StringInputContainer_1l5ql_56",uR="_StringInput_1l5ql_51",dR="_IsIdx_1l5ql_71",fR="_CalendarContainer_1l5ql_75",hR="_Header_1l5ql_81",pR="_Prev_1l5ql_85",gR="_Next_1l5ql_86",mR="_MonthYear_1l5ql_119",vR="_Select_1l5ql_124",yR="_Calendar_1l5ql_75",bR="_Cell_1l5ql_134",xR="_IsNotCurrentMonth_1l5ql_146",wR="_IsSelected_1l5ql_150",CR="_IsDisabled_1l5ql_154",SR="_IsHovered_1l5ql_157",_R="_Week_1l5ql_161",AR="_WeekDay_1l5ql_166",wn={Anchor:rR,Primary:nR,Secondary:oR,Placeholder:iR,Icon:sR,ADatePicker:aR,StringInputWrap:lR,StringInputContainer:cR,StringInput:uR,String:"_String_1l5ql_51",IsIdx:dR,CalendarContainer:fR,Header:hR,Prev:pR,Next:gR,MonthYear:mR,Select:vR,Calendar:yR,Cell:bR,IsNotCurrentMonth:xR,IsSelected:wR,IsDisabled:CR,IsHovered:SR,Week:_R,WeekDay:AR},ER="_Anchor_5u6hq_1",TR="_Primary_5u6hq_18",RR="_Secondary_5u6hq_22",kR="_Placeholder_5u6hq_26",IR="_Icon_5u6hq_31",MR="_ADateRangePicker_5u6hq_41",LR="_StringInputWrap_5u6hq_52",DR="_StringInputContainer_5u6hq_56",OR="_StringInput_5u6hq_52",NR="_IsIdx_5u6hq_72",PR="_CalendarContainer_5u6hq_76",BR="_Header_5u6hq_82",FR="_Prev_5u6hq_86",jR="_Next_5u6hq_87",zR="_MonthYear_5u6hq_120",HR="_Select_5u6hq_125",$R="_Calendar_5u6hq_76",qR="_Cell_5u6hq_135",UR="_IsNotCurrentMonth_5u6hq_147",WR="_IsSelected_5u6hq_151",VR="_IsDisabled_5u6hq_155",GR="_IsHovered_5u6hq_158",YR="_Week_5u6hq_162",ZR="_WeekDay_5u6hq_167",KR="_ChoiceButton_5u6hq_171",Kr={Anchor:ER,Primary:TR,Secondary:RR,Placeholder:kR,Icon:IR,ADateRangePicker:MR,StringInputWrap:LR,StringInputContainer:DR,StringInput:OR,String:"_String_5u6hq_52",IsIdx:NR,CalendarContainer:PR,Header:BR,Prev:FR,Next:jR,MonthYear:zR,Select:HR,Calendar:$R,Cell:qR,IsNotCurrentMonth:UR,IsSelected:WR,IsDisabled:VR,IsHovered:GR,Week:YR,WeekDay:ZR,ChoiceButton:KR},Tv=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:u,isLoading:f,yearsOptionSize:p,noDefaultChoices:m,LeftAddon:g,RightAddon:b,placeholder:w,noClearButton:T,resources:A,onClick:_,...R}=r,D=C.useMemo(()=>({...wr.ADateRangePicker,...A}),[A]),M=C.useMemo(()=>w??D["Select DateRange"],[w,D]),[F,B]=C.useMemo(()=>{let ae,it;if(a&&(ae=rr.makeSDate(a)),c&&(it=rr.makeEDate(c)),ae&&it&&rr["<"](it,ae)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const bt=ae;ae=it,it=bt}return[ae,it]},[a,c]),[z,j]=C.useState("sD"),[G,fe]=vn(n,void 0),P=C.useCallback(ae=>{fe&&(ae===void 0?(fe(void 0),et(""),Ze("")):(fe({sDate:rr.makeSDate(ae.sDate),eDate:rr.makeEDate(ae.eDate)}),et(rr.toString(ae.sDate)),Ze(rr.toString(ae.eDate))))},[fe]);C.useEffect(()=>{G&&(et(rr.toString(G.sDate)),Ze(rr.toString(G.eDate)))},[G]);const U=C.useCallback(ae=>{if(!fe)return;let it=G?G.sDate:rr.makeSDate(ae);ae=rr.makeEDate(ae),fe({sDate:it,eDate:ae}),et(rr.toString(it)),Ze(rr.toString(ae))},[fe,G]),[V,Q]=C.useState(),[se,te]=C.useState(),re=C.useCallback(ae=>{z==="sD"&&P({sDate:ae,eDate:ae}),Q(ae),te(ae)},[z,P,Q]),ne=C.useCallback(ae=>{z==="sD"?V&&(rr.eq(V,ae)?j("eD"):rr[">"](ae,V)?(U(ae),Q(void 0)):(P({sDate:ae,eDate:V}),Q(void 0))):(G?rr["<"](ae,G.sDate)?P({sDate:ae,eDate:G.eDate}):U(ae):P({sDate:ae,eDate:ae}),Q(void 0),j("sD"))},[U,V,j,z,P,G,Q]),be=C.useCallback(ae=>{V&&te(ae)},[V]),ie=C.useCallback(()=>{te(void 0),Q(void 0),j("sD")},[j,Q]),[de,me]=C.useState(E0(G,F,B)),Ae=C.useMemo(()=>Rv(de.year,F,B,p),[de.year,F,B,p]),De=C.useMemo(()=>Sh(de.year,F,B),[F,B,de.year]),oe=C.useCallback(ae=>{if(!Ae.includes(ae))return;const it={month:de.month,year:ae},bt=Sh(it.year,F,B);bt.length<1||(bt.includes(it.month)||(it.month<bt[0]?it.month=bt[0]:it.month>bt[bt.length-1]&&(it.month=bt[bt.length-1])),me(it))},[F,B,Ae,de.month]),ge=C.useCallback(ae=>{De.includes(ae)&&me({month:ae,year:de.year})},[De,de.year]),we=C.useMemo(()=>B?new Date(de.year,de.month+1,1)>B:!1,[de,B]),Le=C.useCallback(()=>{if(we||De.length<1)return;const ae=de.month+1;ae>11?me({month:De[0],year:de.year+1}):me({month:ae,year:de.year})},[we,De,de]),Ce=C.useMemo(()=>F?new Date(de.year,de.month,0)<F:!1,[de,F]),Se=C.useCallback(()=>{if(Ce||De.length<1)return;const ae=de.month-1;ae<De[0]?me({month:De[De.length-1],year:de.year-1}):me({month:ae,year:de.year})},[Ce,De,de]),[Ie,et]=C.useState(G!=null&&G.sDate?rr.toString(G.sDate):""),Je=C.useCallback(ae=>{if(ae.length>10||(et(ae),ae.length<10)||!fe)return;let it=rr.toDate(ae);if(!it)return;F&&it<F&&(it=F),B&&it>B&&(it=B);let bt=G?G.eDate:it;G&&rr[">"](it,bt)&&([it,bt]=T0(it,bt)),P({sDate:it,eDate:bt}),me({month:it.getMonth(),year:it.getFullYear()})},[fe,P,G,F,B]),[Qe,Ze]=C.useState(G!=null&&G.eDate?rr.toString(G.eDate):""),Ke=C.useCallback(ae=>{if(ae.length>10||(Ze(ae),ae.length<10)||!fe)return;let it=rr.toDate(ae);if(!it)return;F&&it<F&&(it=F),B&&it>B&&(it=B);let bt=G?G.sDate:it;G&&rr[">"](bt,it)&&([bt,it]=T0(bt,it)),P({sDate:bt,eDate:it}),me({month:it.getMonth(),year:it.getFullYear()})},[fe,P,G,F,B]),ht=C.useCallback(()=>{G&&(et(rr.toString(G.sDate)),Ze(rr.toString(G.eDate)))},[G]),Pe=C.useMemo(()=>{const{month:ae,year:it}=de,bt=new Date(it,ae,1),qt=new Date(it,ae+1,0),Ft=[];for(let Ht=0;Ht<bt.getDay();Ht++){const dt=new Date(it,ae,0).getDate()-bt.getDay()+Ht+1,yt=new Date(it,ae-1,dt),Et=F&&F>yt||B&&B<yt,Nt=G?rr.be(G.sDate,yt,G.eDate):!1,rt=se&&G&&rr.be(G.sDate,yt,se);Ft.push({day:dt,isSelected:Nt,isHovered:rt,date:yt,isDisabled:Et,isCurrentMonth:!1})}for(let Ht=1;Ht<=qt.getDate();Ht++){const Ue=new Date(it,ae,Ht),dt=F&&F>Ue||B&&B<Ue,yt=G?rr.be(G.sDate,Ue,G.eDate):!1,Et=se&&G&&rr.be(G.sDate,Ue,se);Ft.push({day:Ht,isSelected:yt,isHovered:Et,date:Ue,isDisabled:dt,isCurrentMonth:!0})}for(let Ht=0;Ht<7-qt.getDay()-1;Ht++){const Ue=new Date(it,ae+1,Ht+1),dt=F&&F>Ue||B&&B<Ue,yt=G?rr.be(G.sDate,Ue,G.eDate):!1,Et=se&&G&&rr.be(G.sDate,Ue,se);Ft.push({day:Ht+1,isSelected:yt,isHovered:Et,date:Ue,isDisabled:dt,isCurrentMonth:!1})}const Dt=[];for(let Ht=0;Ht<Ft.length/7;Ht++)Dt.push(S.jsx("div",{className:Kr.Week,children:Ft.slice(Ht*7,Ht*7+7).map((Ue,dt)=>S.jsx(Go,{isDisabled:Ue.isDisabled,type:"Raw",className:Ye.clsx(Kr.Cell,Ue.isDisabled?Kr.IsDisabled:Ue.isCurrentMonth?Ue.isSelected?Kr.IsSelected:Ue.isHovered&&Kr.IsHovered:Kr.IsNotCurrentMonth),onMouseDown:()=>Ue.isCurrentMonth&&re(Ue.date),onMouseEnter:()=>Ue.isCurrentMonth&&be(Ue.date),onMouseUp:()=>Ue.isCurrentMonth&&ne(Ue.date),children:Ue.day},dt))},Ht));return Dt},[de,se,G,F,B,re,ne,be]),Ne=C.useRef(null),Xe=C.useCallback(()=>{Ne&&Sv(Ne,Oe,i)},[Ne,i]),[We,Ve]=C.useState(!1),[at,lt]=C.useState(!1),Oe=C.useRef(null),st=C.useCallback(()=>{u||f||(Ve(!0),setTimeout(()=>lt(!0),0),setTimeout(()=>Xe(),0),me(E0(G,F,B)))},[u,f,G,Xe,F,B]),mt=C.useCallback(()=>{u||f||(Ve(!0),lt(!1))},[u,f]),ut=C.useMemo(()=>at?mt:st,[at,st,mt]),Lt=C.useCallback(()=>Ve(!1),[]),Bt=C.useCallback(ae=>{const it=document.getElementById("root"),bt=ae.target,qt=Oe.current,Ft=Ne.current;!it||!qt||!bt||!Ft||!qt.contains(bt)&&it.contains(bt)&&!Ft.contains(bt)&&mt()},[mt]);C.useEffect(()=>{if(at)return setTimeout(()=>document.addEventListener("mousedown",Bt),0),()=>document.removeEventListener("mousedown",Bt)},[at,Bt]);const Pt=C.useCallback(()=>{Xe()},[Xe]);C.useEffect(()=>{if(!at||!(Ne!=null&&Ne.current))return;const ae=Ne.current;let it=ae.parentElement;for(;it;)it.addEventListener("scroll",Pt),it=it.parentElement;return()=>{let bt=ae.parentElement;for(;bt;)bt.removeEventListener("scroll",Pt),bt=bt.parentElement}},[Ne,at,Pt]),C.useEffect(()=>{if(at)return window.addEventListener("resize",Pt),()=>window.removeEventListener("resize",Pt)},[at,Pt]);const Xt=C.useCallback(ae=>{ae[0].intersectionRatio===0&&mt()},[mt]);C.useEffect(()=>{if(!at)return;const ae=new IntersectionObserver(Xt,{threshold:0});return Oe.current&&ae.observe(Oe.current),()=>ae.disconnect()},[Oe,at,Xt]),C.useEffect(()=>{o&&(o.current={open:st,close:mt,toggle:ut})},[o,st,mt,ut]),C.useEffect(()=>{if(!G)return;let ae={sDate:G.sDate,eDate:G.eDate};F&&(rr["<"](G.sDate,F)&&(ae.sDate=F),rr["<"](G.eDate,F)&&(ae.eDate=F)),B&&(rr[">"](G.sDate,B)&&(ae.sDate=B),rr[">"](G.eDate,B)&&(ae.eDate=B)),(ae.sDate!==G.sDate||ae.eDate!==G.eDate)&&P(ae)},[F,B,G,P]);const ar=C.useCallback(ae=>{_==null||_(ae),ut()},[_,ut]),Kt=C.useCallback(ae=>{P(void 0),mt(),ae.stopPropagation()},[P,mt]),cr=C.useCallback(()=>G?S.jsx(ho,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Kt}):null,[G,Kt]),Te=C.useMemo(()=>G?`${rr.toString(G.sDate)} ~ ${rr.toString(G.eDate)}`:S.jsx("span",{className:Kr.Placeholder,children:M}),[G,M]);return S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...R,abaseRef:Ne,className:Ye.clsx(Kr.Anchor,"IsClickable",Kr[e],t),isDisabled:u,isLoading:f,onClick:ar,children:[g,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(en,{className:Ye.clsx(Kr.Icon,Kr[e]),icon:"CalendarDay"}),S.jsx(zn,{w:4})]}),Te,S.jsx(Xu,{}),!T&&S.jsx(cr,{}),e==="Secondary"&&S.jsx(en,{className:Ye.clsx(Kr.Icon,Kr[e]),icon:"CalendarDay"}),b&&b]}),(at||We)&&Ls.createPortal(S.jsxs("div",{ref:Oe,className:Kr.ADateRangePicker,style:{opacity:+at,visibility:at?"visible":"hidden"},onMouseLeave:ie,onTransitionEnd:Lt,children:[S.jsxs("div",{className:Kr.StringInputContainer,children:[S.jsxs(kn,{children:[S.jsx(Gc,{className:Ye.clsx(Kr.String,z==="sD"&&se&&Kr.IsIdx),inputProps:{className:Kr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[Ie,Je],wrapProps:{className:Kr.StringInputWrap},onBlur:ht}),S.jsx(zn,{w:8}),S.jsx(Gc,{className:Ye.clsx(Kr.String,z==="eD"&&se&&Kr.IsIdx),inputProps:{className:Kr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[Qe,Ke],wrapProps:{className:Kr.StringInputWrap},onBlur:ht})]}),!m&&S.jsxs(kn,{style:{marginTop:4},children:[S.jsx(cp,{children:D["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),S.jsx(cp,{children:D["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),S.jsx(cp,{children:D["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),S.jsx(cp,{children:D["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),S.jsxs("div",{className:Kr.CalendarContainer,children:[S.jsxs(kn,{className:Kr.Header,children:[S.jsx(Go,{className:Kr.Prev,isDisabled:Ce,type:"Raw",onClick:Se}),S.jsxs("div",{className:Kr.MonthYear,children:[S.jsx(zl,{isAutoWidth:!0,className:Kr.Select,OptionRenderer:ae=>D.months(ae.option),options:De,SelectedRenderer:ae=>D.months(ae.selectedOption),type:"Secondary",useSelect:[de.month,ge]}),S.jsx(zn,{w:8}),S.jsx(zl,{isAutoWidth:!0,className:Kr.Select,options:Ae,type:"Secondary",useSelect:[de.year,oe]})]}),S.jsx(Go,{className:Kr.Next,isDisabled:we,type:"Raw",onClick:Le})]}),S.jsx(zn,{h:10}),S.jsxs("div",{className:Kr.Calendar,children:[S.jsx("div",{className:Kr.Week,children:[0,1,2,3,4,5,6].map(ae=>S.jsx("div",{className:Ye.clsx(Kr.WeekDay,Kr.Cell),children:D.weekDays(ae)},ae))}),Pe]})]})]}),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 Rv(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 E0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&rr["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&rr[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function T0(r,e){return[e,r]}const cp=r=>S.jsx(Go,{className:Ye.clsx(Kr.ChoiceButton,"Headline2"),type:"Secondary",...r}),XR=["Primary","Secondary","Raw"],kv=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:u,isLoading:f,placeholder:p,LeftAddon:m,RightAddon:g,resources:b,noClearButton:w,onClick:T,...A}=r,_=C.useMemo(()=>({...wr.ADatePicker,...b}),[b]),R=C.useMemo(()=>p??_["Select Date"],[p,_]),[D,M]=C.useMemo(()=>{let Oe,st;return a&&(Oe=rr.makeSDate(a)),c&&(st=rr.makeEDate(c)),Oe&&st&&rr["<"](st,Oe)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[rr.makeSDate(st),rr.makeEDate(Oe)]):[Oe,st]},[a,c]),[F,B]=vn(n,null),[z,j]=C.useState(F?rr.toString(F):""),[G,fe]=C.useState(()=>{const Oe=F??new Date;return D&&Oe<D?D.getMonth():M&&Oe>M?M.getMonth():(Oe??new Date).getMonth()}),[P,U]=C.useState(()=>{const Oe=F??new Date;return D&&Oe<D?D.getFullYear():M&&Oe>M?M.getFullYear():(Oe??new Date).getFullYear()}),V=C.useCallback(Oe=>{U(Oe);const st=Sh(Oe,D,M);st.includes(G)||(G<st[0]?fe(st[0]):G>st[st.length-1]&&fe(st[st.length-1]))},[D,M,G]),Q=C.useCallback(Oe=>{if(Oe.length>10||(j(Oe),Oe.length<10)||!B)return;let st=rr.toDate(Oe);st&&(D&&st<D&&(st=D),M&&st>M&&(st=M),B(st),U(st.getFullYear()),fe(st.getMonth()))},[B,D,M]),se=C.useCallback(Oe=>{const st=P+Oe;st<0||U(st)},[P]),te=C.useCallback(Oe=>{const st=G+Oe;st<0?(fe(11),se(-1)):st>11?(fe(0),se(1)):fe(st)},[G,se]),re=C.useCallback(Oe=>{B&&(Oe===void 0?(B(void 0),j("")):(B(Oe),j(rr.toString(Oe))))},[B]),ne=C.useMemo(()=>{const Oe=new Date(P,G,0);return D&&Oe<D},[P,G,D]),be=C.useMemo(()=>{const Oe=new Date(P,G+1,1);return M&&Oe>M},[P,G,M]),ie=C.useCallback(()=>{ne||te(-1)},[te,ne]),de=C.useCallback(()=>{be||te(1)},[te,be]),[me,Ae]=C.useState(null),De=C.useCallback(()=>{B&&Ae(null)},[B]),oe=C.useCallback(Oe=>{B&&Ae(Oe)},[B]),ge=C.useMemo(()=>{const Oe=new Date(P,G,1),st=new Date(P,G+1,0),mt=[];for(let Lt=0;Lt<Oe.getDay();Lt++){const Pt=new Date(P,G,0).getDate()-Oe.getDay()+Lt+1,Xt=new Date(P,G-1,Pt),ar=D&&D>Xt||M&&M<Xt,Kt=F&&rr.eq(Xt,F),cr=me&&rr.eq(Xt,me);mt.push({day:Pt,isSelected:Kt,date:Xt,isDisabled:ar,isHovered:cr,isCurrentMonth:!1})}for(let Lt=1;Lt<=st.getDate();Lt++){const Bt=new Date(P,G,Lt),Pt=D&&D>Bt||M&&M<Bt,Xt=F&&rr.eq(Bt,F),ar=me&&rr.eq(Bt,me);mt.push({day:Lt,isSelected:Xt,date:Bt,isDisabled:Pt,isHovered:ar,isCurrentMonth:!0})}for(let Lt=0;Lt<7-st.getDay()-1;Lt++){const Bt=new Date(P,G+1,Lt+1),Pt=D&&D>Bt||M&&M<Bt,Xt=F&&rr.eq(Bt,F),ar=me&&rr.eq(Bt,me);mt.push({day:Lt+1,isSelected:Xt,date:Bt,isDisabled:Pt,isHovered:ar,isCurrentMonth:!1})}const ut=[];for(let Lt=0;Lt<mt.length/7;Lt++)ut.push(S.jsx("div",{className:wn.Week,children:mt.slice(Lt*7,Lt*7+7).map((Bt,Pt)=>S.jsx(Go,{isDisabled:Bt.isDisabled,type:"Raw",className:Ye.clsx(wn.Cell,Bt.isDisabled?wn.IsDisabled:Bt.isCurrentMonth?Bt.isSelected?wn.IsSelected:Bt.isHovered&&wn.IsHovered:wn.IsNotCurrentMonth),onClick:()=>Bt.isCurrentMonth&&re(Bt.date),onMouseEnter:()=>Bt.isCurrentMonth&&oe(Bt.date),onMouseLeave:()=>Bt.isCurrentMonth&&De(),children:Bt.day},Pt))},Lt));return ut},[G,re,F,P,D,M,me,De,oe]),we=C.useRef(null),Le=C.useCallback(()=>{we&&Sv(we,Je,i)},[we,i]),[Ce,Se]=C.useState(!1),[Ie,et]=C.useState(!1),Je=C.useRef(null),Qe=C.useCallback(()=>{u||f||(Se(!0),setTimeout(()=>et(!0),0),setTimeout(()=>Le(),0),j(F?rr.toString(F):""),fe(()=>{const Oe=F??new Date;return D&&Oe<D?D.getMonth():M&&Oe>M?M.getMonth():Oe.getMonth()}),U(()=>{const Oe=F??new Date;return D&&Oe<D?D.getFullYear():M&&Oe>M?M.getFullYear():Oe.getFullYear()}))},[u,f,F,Le,D,M]),Ze=C.useCallback(()=>{u||f||(Se(!0),et(!1))},[u,f]),Ke=C.useMemo(()=>Ie?Ze:Qe,[Ie,Qe,Ze]),ht=C.useCallback(()=>Se(!1),[]),Pe=C.useCallback(Oe=>{const st=document.getElementById("root"),mt=Oe.target,ut=Je.current,Lt=we.current;!st||!ut||!mt||!Lt||!ut.contains(mt)&&st.contains(mt)&&!Lt.contains(mt)&&Ze()},[Ze]);C.useEffect(()=>{if(Ie)return setTimeout(()=>document.addEventListener("mousedown",Pe),0),()=>document.removeEventListener("mousedown",Pe)},[Ie,Pe]);const Ne=C.useCallback(()=>{Le()},[Le]);C.useEffect(()=>{if(!Ie||!(we!=null&&we.current))return;const Oe=we.current;let st=Oe.parentElement;for(;st;)st.addEventListener("scroll",Ne),st=st.parentElement;return()=>{let mt=Oe.parentElement;for(;mt;)mt.removeEventListener("scroll",Ne),mt=mt.parentElement}},[we,Ie,Ne]),C.useEffect(()=>{if(Ie)return window.addEventListener("resize",Ne),()=>window.removeEventListener("resize",Ne)},[Ie,Ne]);const Xe=C.useCallback(Oe=>{Oe[0].intersectionRatio===0&&Ze()},[Ze]);C.useEffect(()=>{if(!Ie)return;const Oe=new IntersectionObserver(Xe,{threshold:0});return Je.current&&Oe.observe(Je.current),()=>Oe.disconnect()},[Je,Ie,Xe]),C.useEffect(()=>{o&&(o.current={open:Qe,close:Ze,toggle:Ke})},[o,Qe,Ze,Ke]);const We=C.useCallback(Oe=>{T==null||T(Oe),Ke()},[T,Ke]),Ve=C.useCallback(Oe=>{re(void 0),Ze(),Oe.stopPropagation()},[re,Ze]),at=C.useCallback(()=>F?S.jsx(ho,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Ve}):null,[F,Ve]),lt=C.useMemo(()=>F?rr.toString(F):S.jsx("span",{className:wn.Placeholder,children:R}),[F,R]);return S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...A,abaseRef:we,className:Ye.clsx(wn.Anchor,"IsClickable",wn[e],t),isDisabled:u,isLoading:f,onClick:We,children:[m,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(en,{className:Ye.clsx(wn.Icon,wn[e]),icon:"CalendarDay"}),S.jsx(zn,{w:4})]}),lt,S.jsx(Xu,{}),!w&&S.jsx(at,{}),e==="Secondary"&&S.jsx(en,{className:Ye.clsx(wn.Icon,wn[e]),icon:"CalendarDay"}),g&&g]}),(Ie||Ce)&&Ls.createPortal(S.jsxs("div",{ref:Je,className:wn.ADatePicker,style:{opacity:+Ie,visibility:Ie?"visible":"hidden"},onTransitionEnd:ht,children:[S.jsx("div",{className:wn.StringInputContainer,children:S.jsx(Gc,{className:wn.String,inputProps:{className:wn.StringInput},maxLength:F?30:11,placeholder:"YYYY-MM-DD",useValue:[z,Q],wrapProps:{className:wn.StringInputWrap}})}),S.jsxs("div",{className:wn.CalendarContainer,children:[S.jsxs(kn,{className:wn.Header,children:[S.jsx(Go,{className:wn.Prev,isDisabled:ne,type:"Raw",onClick:ie}),S.jsxs("div",{className:wn.MonthYear,children:[S.jsx(zl,{isAutoWidth:!0,className:wn.Select,OptionRenderer:Oe=>_.months(Oe.option),options:Sh(P,D,M),SelectedRenderer:Oe=>_.months(Oe.selectedOption),type:"Secondary",useSelect:[G,fe]}),S.jsx(zn,{w:8}),S.jsx(zl,{isAutoWidth:!0,className:wn.Select,options:Rv(P,D,M),type:"Secondary",useSelect:[P,V]})]}),S.jsx(Go,{className:wn.Next,isDisabled:be,type:"Raw",onClick:de})]}),S.jsx(zn,{h:10}),S.jsxs("div",{className:wn.Calendar,children:[S.jsx("div",{className:wn.Week,children:[0,1,2,3,4,5,6].map(Oe=>S.jsx("div",{className:Ye.clsx(wn.WeekDay,wn.Cell),children:_.weekDays(Oe)},Oe))}),ge]})]})]}),document.body)]})},JR="_Paper_e69j5_1",QR="_Card_e69j5_15",ek="_Body_e69j5_26",tk="_Title_e69j5_35",rk="_Content_e69j5_42",nk="_Action_e69j5_45",ok="_Button_e69j5_58",Ka={Paper:JR,Card:QR,Body:ek,Title:tk,Content:rk,Action:nk,Button:ok},ik=["okCancel","cancelOk","ok","cancel","none"],sk=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:o,style:i,titleStyle:a,bodyStyle:c,contentStyle:u,okButtonStyle:f,cancelButtonStyle:p,actionStyle:m,onOk:g,onCancel:b,onClose:w,onEnterPress:T,onEscPress:A,onSpacePress:_,onPaperClick:R,noDim:D=!1,isLoading:M,isOkDisabled:F,isOkLoading:B,isCancelDisabled:z,isCancelLoading:j,isChanged:G,buttonNoInteractive:fe,okButtonClassName:P,cancelButtonClassName:U,progress:V,ProgressRenderer:Q,progressProps:se,resources:te}=r,re=C.useMemo(()=>({...wr.ADialog,...te}),[te]),[ne,be]=C.useState(0);C.useEffect(()=>be(1),[]);const ie=C.useCallback(()=>{be(0)},[]),de=C.useCallback(()=>{if(!ne){const[,Ze]=e.state.useIsOpen;Ze==null||Ze(!1),w==null||w()}},[ne,w,e]),me=C.useCallback(async()=>{if(!ne||t==="cancel"||t==="none"||M||F||B)return;const{event:Ze,e:Ke}=Bu();await(g==null?void 0:g(Ke)),!Ze.preventDefault&&ie()},[ne,t,ie,g,F,M,B]),Ae=C.useCallback(async()=>{if(!ne||t==="ok"||t==="none"||M||z||j)return;const{event:Ze,e:Ke}=Bu();await(b==null?void 0:b(Ke)),!Ze.preventDefault&&ie()},[ne,t,ie,b,z,M,j]);C.useEffect(()=>{e&&e.state.setAction({close:ie,ok:me,cancel:Ae})},[e,ie,me,Ae]);const De=C.useCallback(async()=>{if(M)return;const{event:Ze,e:Ke}=Bu();await(T==null?void 0:T(Ke)),!Ze.preventDefault&&me()},[T,M,me]),oe=C.useCallback(async()=>{if(M)return;const{event:Ze,e:Ke}=Bu();await(_==null?void 0:_(Ke)),!Ze.preventDefault&&me()},[_,M,me]),ge=C.useCallback(async()=>{if(M)return;const{event:Ze,e:Ke}=Bu();await(A==null?void 0:A(Ke)),!Ze.preventDefault&&(G||Ae())},[A,M,Ae,G]),we=C.useRef(null),Le=C.useCallback(Ze=>{const Ke=document.body.getElementsByClassName(Ka.Paper);Ke.length===0||Ke[Ke.length-1]!==we.current||(Ze.key==="Enter"&&ne?De():Ze.key===" "&&ne?oe():Ze.key==="Escape"&&ne&&ge())},[ne,De,oe,ge]);C.useEffect(()=>{if(ne)return window.addEventListener("keydown",Le),()=>window.removeEventListener("keydown",Le)},[ne,Le]);const Ce=C.useRef(!1),Se=C.useRef(!1),Ie=C.useCallback(()=>{Ce.current=!0},[]),et=C.useCallback(()=>{Ce.current=!1,Se.current=!1},[]),Je=C.useCallback(()=>{Se.current=!0},[]),Qe=C.useCallback(async()=>{if(M)return;const Ze=!Se.current||Ce.current;if(Ce.current=!1,Se.current=!1,Ze)return;const{event:Ke,e:ht}=Bu();await(R==null?void 0:R(ht)),!Ke.preventDefault&&(G||Ae())},[R,M,Ae,G]);return Ls.createPortal(S.jsx("div",{ref:we,className:Ka.Paper,style:{backgroundColor:D?"transparent":void 0,pointerEvents:ne?void 0:"none",opacity:ne},onMouseDown:Je,onMouseUp:Qe,onTransitionEnd:de,children:S.jsxs(Yr,{className:Ka.Card,isLoading:M,progress:V,progressProps:se,ProgressRenderer:Q,style:i,onMouseDown:Ie,onMouseUp:et,children:[S.jsxs("div",{className:Ka.Body,style:c,children:[n&&S.jsx(ak,{title:n,titleStyle:a}),o&&S.jsx("div",{className:Ka.Content,style:u,children:o})]}),t!=="none"&&S.jsx(lk,{type:t,ok:me,cancel:Ae,resources:re,isOkDisabled:F,isOkLoading:B,isCancelDisabled:z,isCancelLoading:j,okButtonStyle:f,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:fe,okButtonClassName:P,cancelButtonClassName:U})]})}),document.body)},ak=r=>{const{title:e,titleStyle:t}=r;return S.jsx("div",{className:Ye.clsx(Ka.Title,"NoSelect","Title3"),style:t,children:e})},lk=r=>{const{type:e,ok:t,cancel:n,resources:o,isOkDisabled:i,isOkLoading:a,isCancelDisabled:c,isCancelLoading:u,okButtonStyle:f,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:g,okButtonClassName:b,cancelButtonClassName:w}=r,T=C.useMemo(()=>({onClick:t,isDisabled:i,isLoading:a,children:o.Ok,style:f,noInteractive:g,className:Ye.clsx(Ka.Button,b)}),[t,i,a,o.Ok,f,g,b]),A=C.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:c,isLoading:u,children:o.Cancel,style:p,noInteractive:g,className:Ye.clsx(Ka.Button,w)}),[n,c,u,o.Cancel,p,g,w]);if(e==="okCancel"||e==="ok")return S.jsxs("div",{className:Ka.Action,style:{...m},children:[S.jsx(Go,{...T}),e==="okCancel"&&S.jsxs(S.Fragment,{children:[S.jsx(zn,{w:8}),S.jsx(Go,{...A})]})]},e);if(e==="cancelOk"||e==="cancel")return S.jsxs("div",{className:Ka.Action,children:[S.jsx(Go,{...A}),e==="cancelOk"&&S.jsxs(S.Fragment,{children:[S.jsx(zn,{w:8}),S.jsx(Go,{...T})]})]},e)},ck=r=>{const e=C.useMemo(()=>Math.random().toFixed(32),[]),t=C.useMemo(()=>{const b={};return r.forEach(w=>{b[w]=w+e}),b},[r,e]),n=C.useMemo(()=>[],[]),o=C.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[i,a]=C.useState([]),c=C.useRef((()=>{const b={};return o.forEach(w=>{b[w]={open:()=>a(T=>[...T,w]),close:()=>{},ok:()=>{},cancel:()=>{}}}),b})()),u=C.useMemo(()=>{const b={};return o.forEach(w=>{b[w]=T=>{a(A=>!T&&A.includes(w)?A.filter(_=>_!==w):T&&!A.includes(w)?[...A,w]:A)}}),b},[o]),f=C.useMemo(()=>{const b={};return o.forEach(w=>{const A=[i.includes(w),u[w]],_=R=>{c.current[w]={...c.current[w],...R}};b[w]={useIsOpen:A,setAction:_}}),b},[i,u,o]),p=C.useMemo(()=>{const b={};return o.forEach(w=>{const T=()=>c.current[w].open(),A=()=>c.current[w].close(),_=()=>c.current[w].ok(),R=()=>c.current[w].cancel();b[w]={open:T,close:A,ok:_,cancel:R}}),b},[o]),m=C.useMemo(()=>({}),[]),g=C.useMemo(()=>(o.forEach(b=>{m[b]={state:f[b],action:p[b]}}),m),[m,o,f,p]);return C.useEffect(()=>(Object.keys(g).forEach(w=>{const T=g[w],A=t[w],_=ua.find(R=>{R.id});_?_.core=T:ua.push({id:A,core:T})}),()=>{const w=Object.keys(g),T=ua.filter(A=>w.includes(A.id));ua.length=0,ua.push(...T)}),[g,t]),g},uk=()=>{const r=C.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=C.useState(!1),n=C.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),o=C.useMemo(()=>({useIsOpen:[e,t],setAction:u=>{n.current={...n.current,...u}}}),[e]),i=C.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),a=C.useMemo(()=>({}),[]),c=C.useMemo(()=>(a.state=o,a.action=i,a),[a,o,i]);return C.useEffect(()=>{const u=ua.find(f=>f.id===r);return u?u.core=c:ua.push({id:r,core:c}),()=>{const f=ua.filter(p=>p.id!==r);ua.length=0,ua.push(...f)}},[r,c]),c},dk=r=>{const{dlgCore:e,children:t}=r,[n,o]=C.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return C.useEffect(()=>()=>o==null?void 0:o(!1),[o]),S.jsx(C.Suspense,{children:n&&t})},fk=r=>e=>{const{dlgCore:t}=e;return S.jsx(dk,{dlgCore:t,children:C.cloneElement(S.jsx(r,{...e}),{dlgCore:t})})},ua=[],hk={closeAllDlgs:()=>{ua.forEach(r=>{r.core.action.close()})}},pk="_AFileBox_1hlo1_1",gk="_SelectedFile_1hlo1_16",mk="_Dropping_1hlo1_26",Iv={AFileBox:pk,SelectedFile:gk,Dropping:mk},vk=r=>{const{useFile:e,FileRenderer:t=yk,SelectRenderer:n=bk,DropRenderer:o=xk,resources:i,accept:a="",onInvalidFileFormat:c,fileSelectButtonClassName:u,isDisabled:f,isLoading:p,className:m,...g}=r,b=C.useMemo(()=>({...wr.AFileBox,...i}),[i]),w=C.useRef(null),T=C.useRef(null),[A,_]=vn(e,null),[R,D]=C.useState(!1),M=C.useMemo(()=>a.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[a]),F=C.useCallback(Q=>{if(M.length===0)return!1;const se=Q.name.split(".").pop();return se?!M.includes(`.${se}`):!0},[M]),B=C.useCallback(Q=>{if(_)if(F(Q)){c==null||c();return}else _(Q);else return},[_,F,c]),z=C.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&B(Q.target.files[0])},[B]),j=C.useCallback(Q=>{Q.preventDefault(),D(!1),!(f||p)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&B(Q.dataTransfer.files[0])},[B,f,p]),G=C.useCallback(Q=>{Q.preventDefault(),!(f||p)&&D(!0)},[f,p]),fe=C.useCallback(Q=>{Q.target===w.current&&Q.relatedTarget.contains(w.current.parentElement)&&(Q.preventDefault(),D(!1))},[]),P=C.useCallback(Q=>Q.preventDefault(),[]),U=C.useCallback(()=>{var Q;(Q=T.current)==null||Q.click()},[]),V=C.useMemo(()=>R?S.jsx(o,{resources:b}):A?S.jsx(t,{file:A,useFile:e}):S.jsx(n,{fileSelectButtonClassName:u,resources:b,onClick:U}),[t,n,o,b,R,A,e,u,U]);return S.jsxs(Yr,{...g,abaseRef:w,className:Ye.clsx(Iv.AFileBox,m),isDisabled:f,isLoading:p,onDragEnter:G,onDragLeave:fe,onDragOver:P,onDrop:j,children:[S.jsx("input",{ref:T,accept:a,style:{display:"none"},type:"file",value:"",onChange:z}),V]})},yk=r=>{const{file:e,useFile:t}=r,[,n]=vn(t,null);return S.jsxs(kn,{className:Iv.SelectedFile,style:{backgroundColor:""},children:[S.jsx(en,{icon:"File"}),S.jsx(tl,{children:e.name}),S.jsx(ho,{icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},type:"Raw",onClick:()=>n==null?void 0:n(null)})]})},bk=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return S.jsxs(kn,{className:Ye.clsx("NoSelect"),style:{gap:4},children:[S.jsx(Go,{className:n,onClick:e,children:t["Select File"]}),t["or Drag & Drop"]]})},xk=r=>{const{resources:e}=r;return S.jsxs(fC,{className:Ye.clsx(Iv.Dropping,"NoSelect","Headline2"),children:[S.jsx(en,{icon:"FileDownload"}),e["drop file to select"]]})};async function wk(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 Ck(r,e){var c,u;const t=r.split(","),n=(u=(c=t[0])==null?void 0:c.match(/:(.*?);/))==null?void 0:u[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 mC=r=>r.idx?r.idx.toString():`${r.name}-${r.size}-${r.lastModified||""}`,Fu={toBase64:wk,toFile:Ck,getFileKey:mC},Sk="_AFileUploader_i2nun_1",_k="_LabelContainer_i2nun_16",Ak="_LabelButton_i2nun_25",Ek="_Disabled_i2nun_31",Tk="_Delete_i2nun_34",Rk="_FileSize_i2nun_38",kk="_TotalFileSize_i2nun_45",Ik="_FileBox_i2nun_49",Mk="_FileBoxFullSize_i2nun_68",Lk="_SelectRenderer_i2nun_75",Dk="_ChipsContainer_i2nun_87",Ok="_FileChip_i2nun_100",Nk="_FileChipContent_i2nun_113",Pk="_FileNameContainer_i2nun_124",Bk="_ButtonRenderer_i2nun_130",Fk="_ErrorBorder_i2nun_141",jk="_ErrorColor_i2nun_145",zk="_ErrorCursor_i2nun_149",Hk="_DropIdle_i2nun_159",Tn={AFileUploader:Sk,LabelContainer:_k,LabelButton:Ak,Disabled:Ek,Delete:Tk,FileSize:Rk,TotalFileSize:kk,FileBox:Ik,FileBoxFullSize:Mk,SelectRenderer:Lk,ChipsContainer:Dk,FileChip:Ok,FileChipContent:Nk,FileNameContainer:Pk,ButtonRenderer:Bk,ErrorBorder:Fk,ErrorColor:jk,ErrorCursor:zk,DropIdle:Hk},$k=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:o,onDownload:i})=>{const[a,c]=C.useState(!1);return S.jsx(ho,{className:Ye.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)})},qk=r=>{const{useFiles:e,accept:t,onInvalidFileFormat:n,onDownload:o,onDownloadCsv:i,onDelete:a,type:c,limit:u=1024*1024*1024,maxFileCount:f,useError:p,isLoading:m,resources:g,className:b,onDownloadAll:w,csvFilename:T,...A}=r,[{wrapId:_,wrapProps:R,labelProps:D,...M},F]=Ku(A),B=C.useMemo(()=>({...wr.AFileUploader,...g}),[g]),[z,j]=vn(e,void 0),[G,fe]=vn(p,!1),[P,U]=C.useState({}),[V,Q]=C.useState(!1),se=C.useRef(0),te=C.useRef({}),re=C.useRef(null),ne=C.useRef(null),be=C.useMemo(()=>(z==null?void 0:z.reduce((We,Ve)=>We+Ve.size,0))||0,[z]);C.useEffect(()=>{fe&&fe(be>u)},[be,u,fe]);const ie=C.useCallback(We=>{var lt;if(!t||t==="*"||t==="")return!0;const Ve=t.split(",").map(Oe=>Oe.trim()),at=`.${(lt=We.name.split(".").pop())==null?void 0:lt.toLowerCase()}`;return Ve.includes(at)?!0:Ve.some(Oe=>{var st;if(Oe.startsWith("."))return!1;if(Oe.endsWith("/*")){const mt=Oe.split("/")[0];return(st=We.type)==null?void 0:st.startsWith(`${mt}/`)}return We.type===Oe})},[t]),de=C.useCallback((We,Ve)=>{const at={...te.current};at[We]=Ve,te.current=at,U(at)},[U]),me=C.useCallback(We=>{const Ve=Fu.getFileKey(We);return P[Ve]||"Normal"},[P]),Ae=C.useCallback(We=>m||me(We)==="Loading",[m,me]),De=C.useCallback(We=>me(We)==="Error"||c==="Upload"&&We.size>u,[me,u,c]),oe=C.useMemo(()=>z!=null&&z.length?c==="Download"?z.every(De):!1:!0,[z,c,De]),ge=C.useCallback(()=>{re.current&&(re.current.value="")},[]),we=C.useMemo(()=>!f||!(z!=null&&z.length)?!1:z.length>=f,[z,f]),Le=C.useCallback(We=>{if(!j)return;const Ve=[];let at=!1,lt=[],Oe=f?f-((z==null?void 0:z.length)||0):1/0;if(!(Oe<=0)){if(Array.from(We).forEach((st,mt)=>{if(mt>=Oe)return;if(!ie(st)){at=!0,lt.push(st.name);return}const ut=st;ut.uniqueId=`file-${Date.now()}-${se.current++}`,Ve.push(ut)}),at)if(n)n();else{const st=t?t.replace(/,/g,", "):"",mt=st?`${B["Supported file format(s)"]}: ${st}`:"",ut=lt.length>3?`${lt.slice(0,3).join(", ")} ${B.and} ${lt.length-3} ${B["more file(s)"]}`:lt.join(", ");alert(`${B["Unsupported file format detected."]}
|
|
161
|
+
`+v.stack}}var fc=t.ReactCurrentDispatcher,Fa=t.ReactDebugCurrentFrame,hc=0,Ai=1,pc=2,Ys=3,bd=4,Cl=0,ja=1,za=2,xu=12800;function xd(y){return console.error(y),null}function Zs(){}function gc(y,l,h,v,E,N,q,K,ve){var ze=[],vt=new Set,Rt={destination:null,responseState:l,progressiveChunkSize:v===void 0?xu:v,status:Cl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:vt,pingedTasks:ze,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:E===void 0?xd:E,onAllReady:N===void 0?Zs:N,onShellReady:q===void 0?Zs:q,onShellError:K===void 0?Zs:K,onFatalError:ve===void 0?Zs:ve},zt=Sl(Rt,0,null,h,!1,!1);zt.parentFlushed=!0;var dr=Ji(Rt,y,null,zt,vt,Un,oc,Pf);return ze.push(dr),Rt}function Xi(y,l){var h=y.pingedTasks;h.push(l),h.length===1&&a(function(){return Tu(y)})}function mc(y,l){return{id:Oo,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Ji(y,l,h,v,E,N,q,K){y.allPendingTasks++,h===null?y.pendingRootTasks++:h.pendingTasks++;var ve={node:l,ping:function(){return Xi(y,ve)},blockedBoundary:h,blockedSegment:v,abortSet:E,legacyContext:N,context:q,treeContext:K};return ve.componentStack=null,E.add(ve),ve}function Sl(y,l,h,v,E,N){return{status:hc,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:v,boundary:h,lastPushedText:E,textEmbedded:N}}var ai=null;function li(){return ai===null||ai.componentStack===null?"":Ba(ai.componentStack)}function Ei(y,l){y.componentStack={tag:0,parent:y.componentStack,type:l}}function _l(y,l){y.componentStack={tag:1,parent:y.componentStack,type:l}}function bs(y,l){y.componentStack={tag:2,parent:y.componentStack,type:l}}function ci(y){y.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):y.componentStack=y.componentStack.parent}var Ha=null;function vc(y,l){{var h;typeof l=="string"?h=l:l&&typeof l.message=="string"?h=l.message:h=String(l);var v=Ha||li();Ha=null,y.errorMessage=h,y.errorComponentStack=v}}function Al(y,l){var h=y.onError(l);if(h!=null&&typeof h!="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 h+'" instead');return h}function $a(y,l){var h=y.onShellError;h(l);var v=y.onFatalError;v(l),y.destination!==null?(y.status=za,R(y.destination,l)):(y.status=ja,y.fatalError=l)}function wd(y,l,h){Ei(l,"Suspense");var v=l.blockedBoundary,E=l.blockedSegment,N=h.fallback,q=h.children,K=new Set,ve=mc(y,K),ze=E.chunks.length,vt=Sl(y,ze,ve,E.formatContext,!1,!1);E.children.push(vt),E.lastPushedText=!1;var Rt=Sl(y,0,null,E.formatContext,!1,!1);Rt.parentFlushed=!0,l.blockedBoundary=ve,l.blockedSegment=Rt;try{if(Uo(y,l,q),En(Rt.chunks,y.responseState,Rt.lastPushedText,Rt.textEmbedded),Rt.status=Ai,Cs(ve,Rt),ve.pendingTasks===0){ci(l);return}}catch(dr){Rt.status=bd,ve.forceClientRender=!0,ve.errorDigest=Al(y,dr),vc(ve,dr)}finally{l.blockedBoundary=v,l.blockedSegment=E}var zt=Ji(y,N,v,vt,K,l.legacyContext,l.context,l.treeContext);zt.componentStack=l.componentStack,y.pingedTasks.push(zt),ci(l)}function wu(y,l,h,v){Ei(l,h);var E=l.blockedSegment,N=_r(E.chunks,h,v,y.responseState,E.formatContext);E.lastPushedText=!1;var q=E.formatContext;E.formatContext=Do(q,h,v),Uo(y,l,N),E.formatContext=q,Lr(E.chunks,h),E.lastPushedText=!1,ci(l)}function Cu(y){return y.prototype&&y.prototype.isReactComponent}function Ks(y,l,h,v,E){var N={};pu(l,N);var q=h(v,E);return Ws(h,v,q,E)}function Su(y,l,h,v,E){var N=h.render();h.props!==E&&(bc||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(v)||"a component"),bc=!0);{var q=v.childContextTypes;if(q!=null){var K=l.legacyContext,ve=su(h,v,K,q);l.legacyContext=ve,ro(y,l,N),l.legacyContext=K;return}}ro(y,l,N)}function yc(y,l,h,v){bs(l,h);var E=ds(h,l.legacyContext),N=Si(h,v,E);bl(N,h,v,E),Su(y,l,N,h,v),ci(l)}var Ar={},El={},_u={},Xs={},bc=!1,Cd={},Sd=!1,Ro=!1,_d=!1;function xc(y,l,h,v){var E;if(E=ds(h,l.legacyContext),_l(l,h),h.prototype&&typeof h.prototype.render=="function"){var N=pn(h)||"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(y,l,h,v,E),K=yo();if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){var ve=pn(h)||"Unknown";El[ve]||(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.",ve,ve,ve),El[ve]=!0)}if(typeof q=="object"&&q!==null&&typeof q.render=="function"&&q.$$typeof===void 0){{var ze=pn(h)||"Unknown";El[ze]||(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.",ze,ze,ze),El[ze]=!0)}bl(q,h,v,E),Su(y,l,q,h,v)}else if(Au(h),K){var vt=l.treeContext,Rt=1,zt=0;l.treeContext=uu(vt,Rt,zt);try{ro(y,l,q)}finally{l.treeContext=vt}}else ro(y,l,q);ci(l)}function Au(y){{if(y&&y.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",y.displayName||y.name||"Component"),y.defaultProps!==void 0){var l=pn(y)||"Unknown";Cd[l]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Cd[l]=!0)}if(typeof y.getDerivedStateFromProps=="function"){var h=pn(y)||"Unknown";Xs[h]||(o("%s: Function components do not support getDerivedStateFromProps.",h),Xs[h]=!0)}if(typeof y.contextType=="object"&&y.contextType!==null){var v=pn(y)||"Unknown";_u[v]||(o("%s: Function components do not support contextType.",v),_u[v]=!0)}}}function Eu(y,l){if(y&&y.defaultProps){var h=jo({},l),v=y.defaultProps;for(var E in v)h[E]===void 0&&(h[E]=v[E]);return h}return l}function Ad(y,l,h,v,E){_l(l,h.render);var N=Ks(y,l,h.render,v,E),q=yo();if(q){var K=l.treeContext,ve=1,ze=0;l.treeContext=uu(K,ve,ze);try{ro(y,l,N)}finally{l.treeContext=K}}else ro(y,l,N);ci(l)}function bo(y,l,h,v,E){var N=h.type,q=Eu(N,v);Js(y,l,N,q,E)}function xs(y,l,h,v){h._context===void 0?h!==h.Consumer&&(_d||(_d=!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?"))):h=h._context;var E=v.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(h),q=E(N);ro(y,l,q)}function xo(y,l,h,v){var E=h._context,N=v.value,q=v.children,K;K=l.context,l.context=au(E,N),ro(y,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 Ed(y,l,h,v,E){Ei(l,"Lazy");var N=h._payload,q=h._init,K=q(N),ve=Eu(K,v);Js(y,l,K,ve,E),ci(l)}function Js(y,l,h,v,E){if(typeof h=="function")if(Cu(h)){yc(y,l,h,v);return}else{xc(y,l,h,v);return}if(typeof h=="string"){wu(y,l,h,v);return}switch(h){case ec:case Zo:case ke:case ft:case $i:{ro(y,l,v.children);return}case Dn:{Ei(l,"SuspenseList"),ro(y,l,v.children),ci(l);return}case ld:throw new Error("ReactDOMServer does not yet support scope components.");case $r:{wd(y,l,v);return}}if(typeof h=="object"&&h!==null)switch(h.$$typeof){case hr:{Ad(y,l,h,v,E);return}case Qr:{bo(y,l,h,v,E);return}case tt:{xo(y,l,h,v);return}case Vt:{xs(y,l,h,v);return}case Ea:{Ed(y,l,h,v);return}}var N="";throw(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).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: "+(h==null?h:typeof h)+"."+N))}function Td(y,l){typeof Symbol=="function"&&y[Symbol.toStringTag]==="Generator"&&(Sd||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."),Sd=!0),y.entries===l&&(Ro||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ro=!0)}function ro(y,l,h){try{return Rd(y,l,h)}catch(v){throw typeof v=="object"&&v!==null&&typeof v.then=="function"||(Ha=Ha!==null?Ha:li()),v}}function Rd(y,l,h){if(l.node=h,typeof h=="object"&&h!==null){switch(h.$$typeof){case ad:{var v=h,E=v.type,N=v.props,q=v.ref;Js(y,l,E,N,q);return}case Ql: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=h,ve=K._payload,ze=K._init,vt;try{vt=ze(ve)}catch(ui){throw typeof ui=="object"&&ui!==null&&typeof ui.then=="function"&&Ei(l,"Lazy"),ui}ro(y,l,vt);return}}if(Ee(h)){wc(y,l,h);return}var Rt=cs(h);if(Rt){Td(h,Rt);var zt=Rt.call(h);if(zt){var dr=zt.next();if(!dr.done){var Gr=[];do Gr.push(dr.value),dr=zt.next();while(!dr.done);wc(y,l,Gr);return}return}}var Yn=Object.prototype.toString.call(h);throw new Error("Objects are not valid as a React child (found: "+(Yn==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":Yn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof h=="string"){var Ti=l.blockedSegment;Ti.lastPushedText=yn(l.blockedSegment.chunks,h,y.responseState,Ti.lastPushedText);return}if(typeof h=="number"){var Ss=l.blockedSegment;Ss.lastPushedText=yn(l.blockedSegment.chunks,""+h,y.responseState,Ss.lastPushedText);return}typeof h=="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 wc(y,l,h){for(var v=h.length,E=0;E<v;E++){var N=l.treeContext;l.treeContext=uu(N,v,E);try{Uo(y,l,h[E])}finally{l.treeContext=N}}}function Cc(y,l,h){var v=l.blockedSegment,E=v.chunks.length,N=Sl(y,E,null,v.formatContext,v.lastPushedText,!0);v.children.push(N),v.lastPushedText=!1;var q=Ji(y,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;h.then(K,K)}function Uo(y,l,h){var v=l.blockedSegment.formatContext,E=l.legacyContext,N=l.context,q=null;q=l.componentStack;try{return ro(y,l,h)}catch(K){if(gu(),typeof K=="object"&&K!==null&&typeof K.then=="function"){Cc(y,l,K),l.blockedSegment.formatContext=v,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q;return}else throw l.blockedSegment.formatContext=v,l.legacyContext=E,l.context=N,ps(N),l.componentStack=q,K}}function kd(y,l,h,v){var E=Al(y,v);if(l===null?$a(y,v):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=E,vc(l,v),l.parentFlushed&&y.clientRenderedBoundaries.push(l))),y.allPendingTasks--,y.allPendingTasks===0){var N=y.onAllReady;N()}}function ws(y){var l=this,h=y.blockedBoundary,v=y.blockedSegment;v.status=Ys,Qs(l,h,v)}function Sc(y,l,h){var v=y.blockedBoundary,E=y.blockedSegment;if(E.status=Ys,v===null)l.allPendingTasks--,l.status!==za&&(l.status=za,l.destination!==null&&w(l.destination));else{if(v.pendingTasks--,!v.forceClientRender){v.forceClientRender=!0;var N=h===void 0?new Error("The render was aborted by the server without a reason."):h;v.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=ai;ai=y;try{vc(v,N)}finally{ai=K}}v.parentFlushed&&l.clientRenderedBoundaries.push(v)}if(v.fallbackAbortableTasks.forEach(function(ze){return Sc(ze,l,h)}),v.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var ve=l.onAllReady;ve()}}}function Cs(y,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var h=l.children[0];h.id=l.id,h.parentFlushed=!0,h.status===Ai&&Cs(y,h)}else{var v=y.completedSegments;v.push(l)}}function Qs(y,l,h){if(l===null){if(h.parentFlushed){if(y.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");y.completedRootSegment=h}if(y.pendingRootTasks--,y.pendingRootTasks===0){y.onShellError=Zs;var v=y.onShellReady;v()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)h.parentFlushed&&h.status===Ai&&Cs(l,h),l.parentFlushed&&y.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ws,y),l.fallbackAbortableTasks.clear();else if(h.parentFlushed&&h.status===Ai){Cs(l,h);var E=l.completedSegments;E.length===1&&l.parentFlushed&&y.partialBoundaries.push(l)}}if(y.allPendingTasks--,y.allPendingTasks===0){var N=y.onAllReady;N()}}function Hf(y,l){var h=l.blockedSegment;if(h.status===hc){ps(l.context);var v=null;v=ai,ai=l;try{ro(y,l,l.node),En(h.chunks,y.responseState,h.lastPushedText,h.textEmbedded),l.abortSet.delete(l),h.status=Ai,Qs(y,l.blockedBoundary,h)}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),h.status=bd,kd(y,l.blockedBoundary,h,N)}finally{ai=v}}}function Tu(y){if(y.status!==za){var l=dd(),h=fc.current;fc.current=Gn;var v;v=Fa.getCurrentStack,Fa.getCurrentStack=li;var E=Gs;dc(y.responseState);try{var N=y.pingedTasks,q;for(q=0;q<N.length;q++){var K=N[q];Hf(y,K)}N.splice(0,q),y.destination!==null&&Ko(y,y.destination)}catch(ve){Al(y,ve),$a(y,ve)}finally{dc(E),fc.current=h,Fa.getCurrentStack=v,h===Gn&&ps(l)}}}function Tl(y,l,h){switch(h.parentFlushed=!0,h.status){case hc:{var v=h.id=y.nextSegmentId++;return h.lastPushedText=!1,h.textEmbedded=!1,Vr(l,y.responseState,v)}case Ai:{h.status=pc;for(var E=!0,N=h.chunks,q=0,K=h.children,ve=0;ve<K.length;ve++){for(var ze=K[ve];q<ze.index;q++)m(l,N[q]);E=Rl(y,l,ze)}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 Rl(y,l,h){var v=h.boundary;if(v===null)return Tl(y,l,h);if(v.parentFlushed=!0,v.forceClientRender)return eo(l,y.responseState,v.errorDigest,v.errorMessage,v.errorComponentStack),Tl(y,l,h),cl(l,y.responseState);if(v.pendingTasks>0){v.rootSegmentID=y.nextSegmentId++,v.completedSegments.length>0&&y.partialBoundaries.push(v);var E=v.id=Hn(y.responseState);return ji(l,y.responseState,E),Tl(y,l,h),Po(l,y.responseState)}else{if(v.byteSize>y.progressiveChunkSize)return v.rootSegmentID=y.nextSegmentId++,y.completedBoundaries.push(v),ji(l,y.responseState,v.id),Tl(y,l,h),Po(l,y.responseState);oi(l,y.responseState);var N=v.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 Rl(y,l,q),ln(l,y.responseState)}}function Ru(y,l,h){return id(l,y.responseState,h.id,h.errorDigest,h.errorMessage,h.errorComponentStack)}function _c(y,l,h){return gr(l,y.responseState,h.formatContext,h.id),Rl(y,l,h),on(l,h.formatContext)}function ku(y,l,h){for(var v=h.completedSegments,E=0;E<v.length;E++){var N=v[E];wo(y,l,h,N)}return v.length=0,dl(l,y.responseState,h.id,h.rootSegmentID)}function Id(y,l,h){for(var v=h.completedSegments,E=0;E<v.length;E++){var N=v[E];if(!wo(y,l,h,N))return E++,v.splice(0,E),!1}return v.splice(0,E),!0}function wo(y,l,h,v){if(v.status===pc)return!0;var E=v.id;if(E===-1){var N=v.id=h.rootSegmentID;if(N===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return _c(y,l,v)}else return _c(y,l,v),Ef(l,y.responseState,E)}function Ko(y,l){p();try{var h=y.completedRootSegment;h!==null&&y.pendingRootTasks===0&&(Rl(y,l,h),y.completedRootSegment=null,fn(l,y.responseState));var v=y.clientRenderedBoundaries,E;for(E=0;E<v.length;E++){var N=v[E];Ru(y,l,N)}v.splice(0,E);var q=y.completedBoundaries;for(E=0;E<q.length;E++){var K=q[E];ku(y,l,K)}q.splice(0,E),b(l),p(l);var ve=y.partialBoundaries;for(E=0;E<ve.length;E++){var ze=ve[E];if(!Id(y,l,ze)){y.destination=null,E++,ve.splice(0,E);return}}ve.splice(0,E);var vt=y.completedBoundaries;for(E=0;E<vt.length;E++){var Rt=vt[E];ku(y,l,Rt)}vt.splice(0,E)}finally{b(l),y.allPendingTasks===0&&y.pingedTasks.length===0&&y.clientRenderedBoundaries.length===0&&y.completedBoundaries.length===0&&(y.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),w(l))}}function Md(y){a(function(){return Tu(y)})}function $f(y,l){if(y.status===ja){y.status=za,R(l,y.fatalError);return}if(y.status!==za&&y.destination===null){y.destination=l;try{Ko(y,l)}catch(h){Al(y,h),$a(y,h)}}}function kl(y,l){try{var h=y.abortableTasks;h.forEach(function(v){return Sc(v,y,l)}),h.clear(),y.destination!==null&&Ko(y,y.destination)}catch(v){Al(y,v),$a(y,v)}}function qa(y,l){return new Promise(function(h,v){var E,N,q=new Promise(function(zt,dr){N=zt,E=dr});function K(){var zt=new ReadableStream({type:"bytes",pull:function(dr){$f(ze,dr)},cancel:function(dr){kl(ze)}},{highWaterMark:0});zt.allReady=q,h(zt)}function ve(zt){q.catch(function(){}),v(zt)}var ze=gc(y,Fr(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,ve,E);if(l&&l.signal){var vt=l.signal,Rt=function(){kl(ze,vt.reason),vt.removeEventListener("abort",Rt)};vt.addEventListener("abort",Rt)}Md(ze)})}ap.renderToReadableStream=qa,ap.version=e}()),ap}var y0;function k4(){if(y0)return Rc;y0=1;var r,e;return process.env.NODE_ENV==="production"?(r=A4(),e=E4()):(r=T4(),e=R4()),Rc.version=r.version,Rc.renderToString=r.renderToString,Rc.renderToStaticMarkup=r.renderToStaticMarkup,Rc.renderToNodeStream=r.renderToNodeStream,Rc.renderToStaticNodeStream=r.renderToStaticNodeStream,Rc.renderToReadableStream=e.renderToReadableStream,Rc}var _w=k4();const Gd=yf(_w);function ch(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const $u={_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,u,f;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(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.25:n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[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(C.isValidElement(r))try{const t=_w.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),u=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,u),u}}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 u=0;u<r.length;u++)a+=this.measureCharWidth(r[u],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 f=0;f<r.length;f++){const p=r[f];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 u=Math.ceil(c*a);return this._cache.set(n,u),u}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 u=0;if(e&&e.length>0){const b=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(T,A)=>e[Math.floor(A*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],w=Array.from(new Set(b.filter(Boolean)));for(const T of w){if(!T)continue;const A=this.measureRenderedOptionWidth(T,i);u=Math.max(u,A)}}let f=0;if(!c&&t)f=this.measureRenderedOptionWidth(t,i);else if(c&&n&&n.length){if(n.length===1)f=this.measureRenderedOptionWidth(n[0],i);else if(f=this.measureTextWidth(`${n.length} selected`),n.length>0){let b=0;for(const w of n){const T=this.measureRenderedOptionWidth(w,i);b=Math.max(b,T)}f=Math.max(f,b)}}let p=0;o&&(p=this.measureReactNodeWidth(o));const g=Math.max(u,f,p,50);if(r.current){const b=window.getComputedStyle(r.current),w=parseFloat(b.paddingLeft||"0")+parseFloat(b.paddingRight||"0"),T=parseFloat(b.borderLeftWidth||"0")+parseFloat(b.borderRightWidth||"0"),A=a==="Primary"?30:20,_=c?24:0,R=Math.ceil(g*.05)+10;return Math.ceil(g+w+T+A+_+R)}return g+60}catch{return 200}}};function Aw(r,e){const[t,n]=C.useState(0);return C.useEffect(()=>{const o=()=>{const a=r.current,c=e.current;if(!a||!c)return n(0);const u=a.getBoundingClientRect(),f=c.getBoundingClientRect(),p=Math.max(0,Math.round(u.right-f.left));p!==t&&n(p)};o();const i=new ResizeObserver(o);return r.current&&i.observe(r.current),e.current&&i.observe(e.current),window.addEventListener("resize",o),()=>{i.disconnect(),window.removeEventListener("resize",o)}},[r,e,t]),t}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 Sv(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=Tw(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 Ew(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=Tw(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 Tw(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 Bu(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const I4="_Tooltip_1khnz_1",M4="_Arrow_1khnz_17",b0={Tooltip:I4,Arrow:M4},Rw=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:o=10,direction:i=Io.S}=r,[a,c]=C.useState(!1),u=C.useRef(null),f=C.useRef(null),p=C.useRef(null),m=C.useCallback(()=>{c(!0),p.current&&(clearTimeout(p.current),p.current=null);const T=setTimeout(()=>x0(t,u,f,o,i),n);p.current=T},[t,n,o,i]),g=C.useCallback(()=>c(!1),[]);C.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 b=C.useCallback(()=>{x0(t,u,f,o,i)},[t,o,i]);C.useEffect(()=>{if(!t.current||!u.current||!a)return;const T=t.current.parentElement;let A=T;for(;A;)A.addEventListener("scroll",b),A=A.parentElement;return()=>{let _=T;for(;_;)_.removeEventListener("scroll",b),_=_.parentElement}},[t,b,a]),C.useEffect(()=>{b()},[e,b]);const w=C.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(S.jsxs("div",{ref:u,className:Ye.clsx(b0.Tooltip,"NoSelect"),children:[e,S.jsx("div",{ref:f,className:b0.Arrow})]}),document.body)},lp="5px solid var(--ATooltip_background-color)";function x0(r,e,t,n,o=Io.S){if(!r.current||!e.current||!t.current)return;const i=L4(r.current,e.current,n,o);if(!i)return;const{left:a,top:c,arrowDir:u,arrow:f}=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",u===Io.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${f.left??0}px)`,t.current.style.borderBottom=lp):u===Io.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${f.left??0}px)`,t.current.style.borderTop=lp):u===Io.W?(t.current.style.top=`calc(50% - 5px + ${f.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=lp):u===Io.E&&(t.current.style.top=`calc(50% - 5px + ${f.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=lp)}const kc=5;function L4(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,kc,window.innerWidth-kc-i.width),b=Io.N;return{left:g,top:p,arrowDir:b,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,kc,window.innerWidth-kc-i.width),b=Io.S;return{left:g,top:p,arrowDir:b,arrow:{left:m-g}}}}function u(){if(window.innerWidth-o.right>i.width+t){const p=o.right+t,m=o.top+(o.height-i.height)/2,g=ch(m,kc,window.innerHeight-kc-i.height),b=Io.W;return{left:p,top:g,arrowDir:b,arrow:{top:m-g}}}}function f(){if(o.left>i.width+t){const p=o.left-i.width-t,m=o.top+(o.height-i.height)/2,g=ch(m,kc,window.innerHeight-kc-i.height),b=Io.E;return{left:p,top:g,arrowDir:b,arrow:{top:m-g}}}}if(n===Io.E)return u()||f()||a()||c();if(n===Io.S)return a()||c()||u()||f();if(n===Io.W)return f()||u()||a()||c();if(n===Io.N)return c()||a()||u()||f()}const D4="_ABase_c7a1t_1",O4="_UseDimming_c7a1t_6",N4="_Dimmer_c7a1t_6",P4="_Spinner_c7a1t_9",B4="_Dimmed_c7a1t_12",F4="_HasProgress_c7a1t_18",j4="_IsDimmed_c7a1t_36",z4="_IsLoading_c7a1t_41",H4="_IsDisabled_c7a1t_46",Pd={ABase:D4,UseDimming:O4,Dimmer:N4,Spinner:P4,Dimmed:B4,HasProgress:F4,IsDimmed:j4,IsLoading:z4,IsDisabled:H4},Yr=r=>{const{children:e,abaseRef:t,abaseCallbackRef:n,isDisabled:o,isLoading:i,isDimmed:a,tooltip:c,tooltipDistance:u=10,tooltipDelay:f=0,tooltipDirection:p=Io.S,progress:m,ProgressRenderer:g=$4,progressProps:b,...w}=r,T=C.useRef(null),A=C.useMemo(()=>t??T,[t]),_=C.useMemo(()=>typeof o=="string"&&o!==""?o:c!==void 0?c:"",[o,c]),R=C.useMemo(()=>o||i||a,[o,i,a]),D=C.useMemo(()=>o!==void 0||i!==void 0||a!==void 0,[o,i,a]),M=typeof m=="number"&&i;return S.jsxs("div",{...w,ref:n||A,className:Ye.clsx(w.className,Pd.ABase,D&&Pd.UseDimming,R&&Pd.Dimmed,M&&Pd.HasProgress),children:[e,D&&S.jsx("div",{className:Ye.sclsx(Pd,"Dimmer",o&&"IsDisabled",i&&"IsLoading",a&&"IsDimmed",M&&"HasProgress")}),i&&S.jsxs("div",{className:Ye.sclsx(Pd,"Spinner",o&&"IsDisabled",i&&"IsLoading",M&&"HasProgress"),children:[S.jsx(en,{icon:"Spinner"}),M&&S.jsx(g,{progress:m,...b})]}),S.jsx(Rw,{delay:f,direction:p,distance:u,targetRef:A,tooltip:_})]})},$4=({progress:r,...e})=>S.jsx(Sw,{progress:r,...e}),q4="_AButton_vulhu_1",U4="_Primary_vulhu_14",W4="_Secondary_vulhu_19",V4="_Alter_vulhu_24",G4="_AIconButton_vulhu_30",Y4="_AThemeButton_vulhu_71",Ch={AButton:q4,Primary:U4,Secondary:W4,Alter:V4,AIconButton:G4,AThemeButton:Y4},Z4=["Primary","Secondary","Alter","Raw"],Go=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...o}=r,i=C.useMemo(()=>o.isDisabled||o.isLoading,[o.isDisabled,o.isLoading]),a=C.useCallback(c=>{i||t==null||t(c)},[i,t]);return S.jsx(Yr,{...o,className:Ye.clsx(o.className,Ch.AButton,e!=="Raw"&&Ch[e],"IsClickable",!i&&!n&&"IsInteractive"),onClick:a})},K4=["Primary","Secondary","Raw"],ho=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:o,isDisabled:i,isLoading:a,tooltip:c,className:u,...f}=r,p=C.useMemo(()=>i||a,[i,a]),m=C.useCallback(b=>{p||o==null||o(b)},[p,o]),g=C.useMemo(()=>Cv.includes(e)?S.jsx(en,{icon:e,size:t}):e,[e,t]);return S.jsx(Yr,{className:Ye.clsx(Ch.AIconButton,!i&&!a&&"IsClickable",n!=="Raw"&&Ch[n],u),isDisabled:i,isLoading:a,tooltip:c,onClick:m,...f,children:g})};function vn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=C.useState(e);return C.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const X4="_AWrap_u1f1h_1",J4="_Label_u1f1h_8",Q4="_Asterisk_u1f1h_19",e5="_HelperTextConatiner_u1f1h_23",t5="_HelperText_u1f1h_23",Bd={AWrap:X4,Label:J4,Asterisk:Q4,HelperTextConatiner:e5,HelperText:t5,Error:"_Error_u1f1h_38"},r5=["Default","Error"],Ku=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]},Vc=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:o="Default",label:i,labelProps:a,wrapId:c,children:u}=r,f=C.useRef(null),[p,m]=C.useState({height:0}),g=C.useRef(null),[b,w]=C.useMemo(()=>{let A=n,_=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"&&(A=A.filter(Boolean)),A=A.map((R,D)=>S.jsxs(C.Fragment,{children:[R,S.jsx("br",{})]},lr.key(D)))),[A,_]},[n,t,o]);C.useEffect(()=>{if(!b||!f.current)m({height:0});else{const A=f.current.getBoundingClientRect();m({height:A.height,marginTop:A.height===0?0:6})}},[b]);const T=C.useMemo(()=>{switch(typeof(a==null?void 0:a.prefix)){case"string":return S.jsx(en,{height:"1rem",icon:a.prefix,width:"1rem"});case"boolean":return S.jsx(en,{height:10,icon:"Target",width:10});default:return a==null?void 0:a.prefix}},[a==null?void 0:a.prefix]);return S.jsxs("div",{...e,ref:g,className:Ye.clsx(e==null?void 0:e.className,Bd.AWrap),id:c,children:[i&&S.jsxs("div",{className:Ye.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)&&S.jsx(Yr,{className:Bd.Asterisk,tooltip:wr.AWrap.Asterisk,children:"*"}),a==null?void 0:a.rightAddon]}),u,b!==void 0&&S.jsx("div",{className:Ye.clsx(Bd.HelperTextConatiner,"NoSelect"),style:p,children:S.jsx("div",{ref:f,className:Ye.clsx(Bd.HelperText,Bd[w]),children:b})})]})},n5="_ASwitch_nlcij_1",o5="_Track_nlcij_6",i5="_Truthy_nlcij_13",s5="_Thumb_nlcij_17",Yf={ASwitch:n5,Track:o5,Truthy:i5,Thumb:s5},kw=r=>{const{useCheck:e,...t}=r,[{wrapId:n,wrapProps:o,labelProps:i,...a},c]=Ku(t),[u,f]=vn(e,!1),p=C.useCallback(m=>{var g;c.isDisabled||c.isLoading||(f==null||f(!u),(g=c.onClick)==null||g.call(c,m))},[c,u,f]);return S.jsx(Vc,{wrapId:n,wrapProps:o,labelProps:i,...a,children:S.jsx(Yr,{...c,className:Yf.ASwitch,onClick:p,children:S.jsx("div",{className:Ye.clsx(Yf.Track,u&&Yf.Truthy),children:S.jsx("div",{className:Ye.clsx(Yf.Thumb,u&&Yf.Truthy)})})})})},a5={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=Hc.cloneDeep(a5);lr.keys(Lo.semantic).forEach(r=>{const e=Lo.semantic[r];lr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const Cg=lr.keys(Lo.palette),Iw=lr.keys(Lo.palette[Cg[0]]);function l5(){return fo.paletteMode}function c5(r,e=fo.paletteMode){return Lo.palette[e][r]}function u5(r){return _g(r)}const Xp=[];function Mw(r){fo.paletteMode=r,Iw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.palette[r][e])),Xp.forEach(e=>e(r))}function Lw(r,e="all"){lr.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(document.documentElement.style.setProperty(`--${n}`,o),e==="all"?Cg.forEach(i=>{Lo.palette[i][n]=o}):Lo.palette[e][n]=o)})}const sf=lr.keys(Lo.semantic),Dw=lr.keys(Lo.semantic[sf[0]]);function d5(){return fo.semanticMode}function f5(r,e=fo.semanticMode){return Lo.semantic[e][r]}function h5(r){return _g(r)}const Jp=[];function _v(r){fo.semanticMode=r,document.documentElement.setAttribute("data-theme",r),Dw.forEach(e=>document.documentElement.style.setProperty(`--${e}`,Lo.semantic[r][e])),Jp.forEach(e=>e(r)),fo.save==="localStorage"?localStorage.setItem("semanticMode",r):fo.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function Ow(r,e=fo.semanticMode){lr.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 Nw=["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"],Pw=["ABase_Dimming_background-color"],Bw=["ATooltip_background-color","ATooltip_color"],Fw=["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"],jw=["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"],zw=["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"],Hw=["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"],$w=["ACheckBox_color"],qw=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],Uw=["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"],Ww=["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"],Vw=["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"],Gw=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],Yw=["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"],Zw=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],Kw=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],Xw=["AListView_border-thin","AListView_border-thick"],Jw=["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"],Qw=["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"],eC=["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"],tC=["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"],rC=["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"],nC=["ADivideFrame_DividerInner_background-color"],oC=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],iC=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],sC=["AWrap_Error_color"],aC=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],lC=["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"],p5=[...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,...aC,...lC],Sg={"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 g5(r){return Sg[r]}function m5(r){return _g(r)}function cC(r){lr.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),Sg[t]=n)})}function v5(r){lr.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),Sg[t]=o)})}const fo={paletteMode:Cg[0],semanticMode:sf[0],save:"",followDeviceSetting:!1};function y5({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),Mw(fo.paletteMode),_v(fo.semanticMode),Lw(Lo.palette[fo.paletteMode]),Ow(Lo.semantic[fo.semanticMode]),cC(Sg)}function b5(r){r.type==="semanticModeChange"?Jp.push(r.listener):r.type==="paletteModeChange"?Xp.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function x5(r){if(r.type==="semanticModeChange"){const e=Jp.indexOf(r.listener);e!==-1&&Jp.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Xp.indexOf(r.listener);e!==-1&&Xp.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function _g(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function w5(r){Object.assign(Ye.additionalClasses,r),Ye.updateKeys(),Ye.additionalClasses=Ye.additionalClasses}const uh={getCurrentPaletteMode:l5,getPaletteValue:c5,getPaletteDeepValue:u5,changePaletteMode:Mw,editPalette:Lw,getCurrentSemanticMode:d5,getSemanticValue:f5,getSemanticDeepValue:h5,changeSemanticMode:_v,editSemantic:Ow,getComponentStyleValue:g5,getComponentStyleDeepValue:m5,editComponentStyle:cC,editComponentStyleWithSemantic:v5,init:y5,addEventListener:b5,removeEventListener:x5,getDeepValue:_g,addClasses:w5},C5=r=>{const{onChange:e,onClick:t,type:n="Icon",...o}=r,[i,a]=C.useState(uh.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),c=C.useCallback(u=>{const f=uh.getCurrentSemanticMode();let p="light";f==="light"?p="dark":f==="dark"&&(p="light"),uh.changeSemanticMode(p),a(S5[p]),e==null||e(p),t==null||t(u)},[e,t]);if(n==="Icon")return S.jsx(ho,{...o,className:Ye.clsx(Ch.AThemeButton,o.className,"IsInteractive"),icon:i,type:"Raw",onClick:c});if(n==="Switch")return S.jsx(kw,{...o,useCheck:[uh.getCurrentSemanticMode()==="dark",c]})},S5={light:"Sun",dark:"Moon"},_5="_ACheckBoxWrap_1ozuz_1",A5="_ACheckBox_1ozuz_1",w0={ACheckBoxWrap:_5,ACheckBox:A5},af=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:o,onClick:i,...a}=r,[c,u]=vn(e,!1),f=C.useCallback(p=>{n||o||(u==null||u(!c),i==null||i(p))},[n,o,i,c,u]);return S.jsx(Yr,{...a,className:Ye.clsx(a.className,w0.ACheckBoxWrap),isDisabled:n,isLoading:o,onClick:f,children:S.jsx(en,{className:w0.ACheckBox,icon:t?"Check.Indeterminate":c?"Check.Checked":"Check.UnChecked"})})};function E5(r){return typeof r=="function"}function T5(r,e){return E5(r)?r(e):r}const Er={getContent:T5};class C0{constructor(e){ue(this,"capacity");ue(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 zu=class zu{constructor(){ue(this,"databases",{});ue(this,"caches",{});ue(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return zu.instance||(zu.instance=new zu),zu.instance}getCache(e,t){const n=`${e}_${t}`;return this.caches[n]||(this.caches[n]=new C0(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 u=c.target.result;this.databases[e]=u,o(u)},a.onupgradeneeded=c=>{const u=c.target.result;u.objectStoreNames.contains(t)||u.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((u,f)=>{const p=c.put(n);p.onsuccess=()=>u(),p.onerror=m=>{console.error("데이터 저장 오류:",m.target.error),f(m.target.error)}})}async batchSave(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(u=>o.put(u.id,{...u}));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((u,f)=>{a.oncomplete=()=>u(),a.onerror=p=>{console.error("배치 저장 오류:",p.target.error),f(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 u=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((f,p)=>{const m=u.get(n);m.onsuccess=()=>{const g=m.result;g&&o.put(n,g),f(g||null)},m.onerror=g=>{console.error("데이터 조회 오류:",g.target.error),p(g.target.error)}})}async getByIndex(e,t,n,o){const u=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(n);return new Promise((f,p)=>{const m=u.getAll(o);m.onsuccess=()=>{const g=m.result,b=this.getCache(e,t);g.forEach(w=>{w&&w.id&&b.put(w.id,w)}),f(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((u,f)=>{const p=c.delete(n);p.onsuccess=()=>u(),p.onerror=m=>{console.error("데이터 삭제 오류:",m.target.error),f(m.target.error)}})}async batchDelete(e,t,n){if(n.length===0)return;const o=this.getCache(e,t);n.forEach(u=>o.delete(u));const a=(await this.getDB(e,t)).transaction([t],"readwrite"),c=a.objectStore(t);return new Promise((u,f)=>{a.oncomplete=()=>u(),a.onerror=p=>{console.error("배치 삭제 오류:",p.target.error),f(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 u=i.getAll();u.onsuccess=()=>{const f=u.result,p={},m=this.getCache(e,t);f.forEach(g=>{g.id&&(p[g.id]=g,m.put(g.id,g))}),a(p)},u.onerror=f=>{console.error("데이터 전체 조회 오류:",f.target.error),c(f.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,u)=>{const f=a.clear();f.onsuccess=()=>c(),f.onerror=p=>{console.error("데이터 초기화 오류:",p.target.error),u(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 C0(n);for(const[c,u]of a)this.caches[o].get(c)===void 0&&c!==void 0&&this.caches[o].put(c,u)}};ue(zu,"instance");let N1=zu;const na=N1.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 uC(r,e,t={}){const{dataFieldName:n="data"}=t,[o,i]=C.useState(!1),[a,c]=C.useState(null),u=C.useRef(new Map);C.useEffect(()=>{const j=u.current;return()=>{j.forEach(G=>G.abort()),j.clear()}},[]);const f=C.useCallback(j=>{const G=u.current,fe=G.get(j);fe&&fe.abort();const P=new AbortController;return G.set(j,P),P},[]),p=C.useCallback(j=>{u.current.delete(j)},[]),m=C.useCallback(async(j,G)=>{try{i(!0),c(null),f(j);const fe=await G();return p(j),fe}catch(fe){return fe instanceof Error&&fe.name==="AbortError"||c(fe instanceof Error?fe:new Error(String(fe))),null}finally{i(!1)}},[f,p]),g=C.useCallback(async(j,G)=>j?await m(`save_${j}`,async()=>(await sa.save(r,e,{id:j,[n]:G,updatedAt:new Date().toISOString()}),!0))===!0:!1,[r,e,n,m]),b=C.useCallback(async j=>j.length?await m(`batch_save_${Date.now()}`,async()=>{const G=j.map(fe=>({id:fe.id,[n]:fe.data,updatedAt:new Date().toISOString()}));return await sa.batchSave(r,e,G),!0})===!0:!1,[r,e,n,m]),w=C.useCallback(async j=>j?await m(`get_${j}`,async()=>{const G=await sa.get(r,e,j);return(G==null?void 0:G[n])||null}):null,[r,e,n,m]),T=C.useCallback(j=>{if(!j)return null;const G=sa.getCached(r,e,j);return(G==null?void 0:G[n])||null},[r,e,n]),A=C.useCallback(async j=>j?await m(`delete_${j}`,async()=>(await sa.delete(r,e,j),!0))===!0:!1,[r,e,m]),_=C.useCallback(async j=>j.length?await m(`batch_delete_${Date.now()}`,async()=>(await sa.batchDelete(r,e,j),!0))===!0:!1,[r,e,m]),R=C.useCallback(async()=>await m(`get_all_${Date.now()}`,async()=>{const j=await sa.getAll(r,e);return Object.entries(j).reduce((G,[fe,P])=>(G[fe]=P[n],G),{})})||{},[r,e,n,m]),D=C.useCallback(async()=>await m(`clear_all_${Date.now()}`,async()=>(await sa.clear(r,e),!0))===!0,[r,e,m]),M=C.useCallback(j=>{const G=u.current.get(j);G&&(G.abort(),u.current.delete(j))},[]),F=C.useCallback(()=>{new Map(u.current).forEach(G=>G.abort()),u.current.clear()},[]),B=C.useCallback(j=>{sa.setCacheSize(r,e,j)},[r,e]),z=C.useCallback(()=>{sa.clearCached(r,e)},[r,e]);return{save:g,get:w,delete:A,getAll:R,clearAll:D,batchSave:b,batchDelete:_,getCached:T,setCacheSize:B,clearCache:z,cancelOperation:M,cancelAllOperations:F,isLoading:o,error:a}}const R5="LayoutDB",k5="layouts";function dC(){const r=uC(R5,k5,{dataFieldName:"lengths"}),[e,t]=C.useState({}),n=C.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(b=>({...b,[p]:!0}))})),{data:null,isLoaded:!1})},u=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)),f=C.useCallback(()=>{t({}),n.current={}},[]);return{save:o,get:i,getCached:a,getSync:c,deleteItem:u,resetSyncState:f,isLoading:r.isLoading,error:r.error}}const I5="_ARowFrame_j9gdv_1",M5="_AColFrame_j9gdv_7",L5="_AOverflowFrame_j9gdv_13",D5="_ADivideFrame_j9gdv_22",O5="_Row_j9gdv_30",N5="_Col_j9gdv_33",P5="_FadeIn_j9gdv_36",B5="_NoTransition_j9gdv_39",F5="_ChildFrame_j9gdv_43",j5="_ExpandButtonOverlay_j9gdv_61",z5="_Divider_j9gdv_68",H5="_IsMoving_j9gdv_76",$5="_NoDraggable_j9gdv_76",q5="_DividerInner_j9gdv_79",U5="_IsClicked_j9gdv_104",W5="_RemoteButton_j9gdv_139",V5="_isExpanded_j9gdv_146",G5="_ExpandButton_j9gdv_61",An={ARowFrame:I5,AColFrame:M5,AOverflowFrame:L5,ADivideFrame:D5,Row:O5,Col:N5,FadeIn:P5,NoTransition:B5,ChildFrame:F5,ExpandButtonOverlay:j5,Divider:z5,IsMoving:H5,NoDraggable:$5,DividerInner:q5,IsClicked:U5,RemoteButton:W5,isExpanded:V5,"fade-in":"_fade-in_j9gdv_1",ExpandButton:G5},kn=r=>S.jsx(Yr,{...r,className:Ye.clsx(An.ARowFrame,r.className),children:r.children}),fC=r=>S.jsx("div",{...r,className:Ye.clsx(An.AColFrame,r.className),children:r.children}),tl=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:o,className:i,noOverflowTooltip:a,...c}=r,u=C.useRef(null),f=C.useMemo(()=>n??u,[n]),[p,m]=C.useState(!1),g=C.useCallback(()=>m(!0),[]),b=C.useCallback(()=>m(!1),[]);C.useEffect(()=>{const T=f.current;if(T)return T.addEventListener("mouseenter",g),T.addEventListener("mouseleave",b),()=>{T.removeEventListener("mouseenter",g),T.removeEventListener("mouseleave",b)}},[f,g,b]);const w=C.useMemo(()=>{if(o)return"";if(a||!p)return e;const T=f.current;return T&&T.scrollWidth>T.clientWidth?t:e},[f,o,t,e,a,p]);return S.jsx(Yr,{...c,children:t,abaseRef:f,className:Ye.clsx(An.AOverflowFrame,i),isDisabled:o,tooltip:w})},hC=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:S.jsx(C.Suspense,{children:t[e]})},pC=C.memo(r=>{const{pk:e,direction:t="Row",lefts:n,minLength:o=40,expandLayerLength:i=40,children:a,childStyle:c,childClassName:u,dividerStyle:f,dividerClassName:p,dividerPadding:m,dividerInnerClassName:g,dividerInnerStyle:b,showRemote:w,ShowRemoteRenderer:T=Y5,noDividerDraggable:A,resources:_,showExpandButton:R,...D}=r,M=C.useMemo(()=>({...wr.ADivideFrame,..._}),[_]),F=C.useRef(null),B=C.useRef(!1),z=C.useRef(!0),j=C.useRef(n),[G,fe]=C.useState(),[P,U]=C.useState("FadeOut"),[V,Q]=C.useState(!1),[se,te]=C.useState(null),{save:re,get:ne,deleteItem:be}=dC(),ie=C.useCallback(()=>{z.current&&requestAnimationFrame(()=>{z.current=!1,U("FadeIn")})},[]),de=C.useMemo(()=>{let Ne;return Array.isArray(a)?Ne=a:Ne=[a],Ne.filter(Boolean)},[a]),me=C.useMemo(()=>de.length,[de.length]),Ae=C.useMemo(()=>de.length-1,[de.length]),Oe=C.useMemo(()=>e?String(e):"",[e]),oe=C.useMemo(()=>e&&!w,[e,w]),ge=C.useCallback(async()=>{if(!oe){te(n),ie();return}try{const Ne=await ne(Oe);Ne?te(Ne):(te(n),re(Oe,n)),ie()}catch{te(n),ie()}},[oe,ie,Oe,ne,n,re]);C.useEffect(()=>{ge()},[ge]),C.useEffect(()=>{j.current!==n&&(j.current=n,B.current||(te(n),oe&&re(Oe,n)),B.current=!1)},[oe,n,Oe,re]);const we=C.useMemo(()=>{const Ne=m??0;return typeof o=="number"?Array(me).fill(o+Ne):o.map(Xe=>Xe+Ne)},[o,me,m]),Le=C.useMemo(()=>(G==null?void 0:G.lefts)||se||[],[G,se]),Ce=C.useRef({x:0,y:0}),Se=C.useCallback((Ne,Xe,We)=>{const Ve=Le[Ne],lt=Ne===0?0:Le[Ne-1],st=Ve-lt,De={...c,...Z5(t,st,Xe)};return m!==void 0&&(t==="Row"?(We||(De.paddingLeft=m),Xe||(De.paddingRight=m)):(We||(De.paddingTop=m),Xe||(De.paddingBottom=m))),De},[Le,c,t,m]),Ie=C.useCallback(()=>{if(!(!w||t!=="Row")){if(V)te(n),B.current=!1;else{if(me<=1)return;const Ne=[];let Xe=0;for(let We=0;We<me-1;We++){const Ve=typeof o=="number"?o:o[We]||o[0];Xe+=Ve,Ne.push(Xe)}te(Ne),B.current=!0}Q(Ne=>!Ne),z.current=!1}},[w,t,V,me,n,o]),et=C.useCallback((Ne,Xe)=>{if(Xe)return We=>{if(!F.current||!se)return;z.current=!1;const Ve=F.current;Ce.current={x:We.clientX,y:We.clientY};const lt=Ve.getBoundingClientRect(),st=t==="Row"?lt.left:lt.top,De=t==="Row"?lt.width:lt.height;let at=[...se];fe({idx:Ne,lefts:at});const mt=Dt=>{at=Q5(se,t,Ne,Dt,st,De,we),fe({idx:Ne,lefts:at})},ut=()=>{fe(void 0),te(at),B.current=!0,oe&&re(Oe,at),window.removeEventListener("mousemove",mt),window.removeEventListener("mouseup",ut)};window.addEventListener("mousemove",mt),window.addEventListener("mouseup",ut)}},[se,t,we,oe,Oe,re]),Je=C.useCallback(Ne=>{if(Ne)return()=>{te(n),B.current=!1,fe(void 0),oe&&be(Oe)}},[n,oe,Oe,be]),Qe=C.useMemo(()=>de.map((Ne,Xe)=>{const We=w&&(V||!V&&Xe===Ae-1);return!(A||We)}),[de,w,V,A,Ae]),Ze=C.useMemo(()=>{if(!R||!F.current||P!=="FadeIn")return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const Ne=F.current.getBoundingClientRect(),Xe=t==="Row"?Ne.width:Ne.height;if(Xe===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const We=[];for(let st=0;st<me;st++){const De=Le[st],at=st===0?0:Le[st-1],mt=st===Ae?Xe-at:De-at,ut=Array.isArray(we)?we[st]:we[0];(typeof i=="number"?i:i[st]||i[0]||40)<ut||We.push({panelIndex:st,actualLength:mt,minLength:ut,isCollapsed:mt<=ut})}const Ve=We.reduce((st,De)=>(De.isCollapsed&&st.push(De.panelIndex),st),[]);if(Ve.length===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};let lt=-1;return Ve.includes(0)?lt=0:Ve.includes(Ae)?lt=Ae:lt=Ve[0],{hasCollapsedAreas:!0,collapsedAreaIndex:lt}},[R,P,t,me,Ae,Le,we,i]),Ke=C.useCallback(()=>{R&&(te(n),B.current=!1,oe&&re(Oe,n),z.current=!1)},[R,n,oe,Oe,re]),ht=C.useMemo(()=>Qe.map((Ne,Xe)=>et(Xe,Ne)),[Qe,et]),Pe=C.useMemo(()=>Qe.map(Ne=>Je(Ne)),[Qe,Je]);return se?S.jsx("div",{...D,ref:F,className:Ye.clsx(An.ADivideFrame,r.className,An[t],An[P],z.current&&An.NoTransition),children:de.map((Ne,Xe)=>{const We=Xe===0,Ve=Xe===Ae,lt=Se(Xe,Ve,We),st=Le[Xe],De=Qe[Xe],at=ht[Xe],mt=Pe[Xe];return S.jsxs(C.Fragment,{children:[S.jsxs("div",{style:lt,className:Ye.clsx(An.ChildFrame,u,G&&An.IsMoving,z.current&&An.NoTransition,An[t]),children:[Ve&&w&&t==="Row"&&S.jsx(T,{handleToggleExpand:Ie,isExpanded:V,resources:M}),Ne,R&&Ze.hasCollapsedAreas&&Ze.collapsedAreaIndex===Xe&&S.jsxs(S.Fragment,{children:[S.jsx(Yr,{className:Ye.clsx(An.ExpandButtonOverlay,An[t]),onClick:Ke}),S.jsx(ho,{className:Ye.clsx(An.ExpandButton,An[t]),icon:X5(Xe,me),tooltip:M.Expand,type:"Raw",style:{transform:J5(Xe,t)},onClick:Ke})]})]}),!Ve&&S.jsx("div",{"data-nodraggable":De?void 0:"true",className:Ye.clsx(An.Divider,An[t],"NoSelect",G&&An.IsMoving,(G==null?void 0:G.idx)===Xe&&An.IsClicked,z.current&&An.NoTransition,!De&&An.NoDraggable,p),style:{...f,...K5(t,st)},onDoubleClick:mt,onMouseDown:at,children:S.jsx("div",{className:Ye.clsx(An.DividerInner,g),style:{...b}})})]},Xe)})}):S.jsx("div",{...D,ref:F,className:Ye.clsx(An.ADivideFrame,r.className,An[t],An.FadeOut,An.NoTransition),style:{...D.style,visibility:"hidden",pointerEvents:"none"}})});pC.displayName="ADivideFrame";const Y5=r=>{const{handleToggleExpand:e,isExpanded:t,resources:n}=r;return S.jsx(ho,{className:Ye.clsx(An.RemoteButton,t&&An.isExpanded),icon:"DividerExpand",iconSize:"md",tabIndex:0,tooltip:t?n.Collapse:n.Expand,type:"Raw",onClick:e})};function Z5(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function K5(r,e){return r==="Col"?{top:e}:{left:e}}function X5(r,e){const t=r===0,n=r===e-1;return t||n?"DividerExpand":"DividerMiddle"}function J5(r,e){const t=r===0;let n="";return e==="Row"&&t?n=" rotate(180deg)":e==="Col"&&(n=t?" rotate(-90deg)":" rotate(90deg)"),`translate(-50%, -50%)${n}`}function Q5(r,e,t,n,o,i,a){const c=[...r],u=e==="Row"?n.clientX-o-r[t]:n.clientY-o-r[t];if(u===0)return c;const f=a.length,p=r.length,m=t+1,g=[],b=[];let w=0;for(let _=0;_<=f;_++)g[_]=w,_<f&&(w+=a[_]);let T=0;for(let _=f-2;_>=0;_--)T+=a[_+1],b[_]=T;b[f-1]=0;let A=c[t]+u;if(u<0){if(A<=g[m])for(let _=0;_<=t;_++)c[_]=g[_+1];else if(c[t]=A,t>0)for(let _=t-1;_>=0&&A-c[_]<a[_+1];_--)c[_]=A-a[_+1],A=c[_]}else{const _=t===f-2?a[f-1]:0;if(A>=i-b[t]-_)for(let R=t;R<p;R++)c[R]=i-b[R]-(R===p-1?0:_);else if(c[t]=A,t<p-1)for(let R=m;R<p&&c[R]-A<a[R];R++)c[R]=A+a[R],A=c[R]}return c}const Xu=()=>S.jsx("div",{style:{display:"flex",flexGrow:1}}),e6="_ASpace_1okqf_1",t6={ASpace:e6},zn=r=>{const{h:e,w:t,...n}=r;return S.jsx("div",{...n,className:Ye.clsx(t6.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},r6="_AChipsContainer_1ag9v_1",n6="_AChip_1ag9v_1",o6="_Clickable_1ag9v_21",i6="_AChipDelete_1ag9v_26",s6="_IsHover_1ag9v_40",a6="_AChipDeleteIcon_1ag9v_45",Xd={AChipsContainer:r6,AChip:n6,Clickable:o6,AChipDelete:i6,IsHover:s6,AChipDeleteIcon:a6},l6=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:o,ChipOnDelete:i,ChipOnClick:a,ChipIcon:c,className:u,style:f,ButtonRenderer:p=gC,gap:m=8,...g}=r,[b,w]=vn(e,[]),T=C.useCallback(_=>{!w||!i||(i({label:_}),w(b.filter(R=>R!==_)))},[w,i,b]),A=C.useCallback(_=>{const R={label:_};return{label:_,useLabel:[_,()=>{}],style:Er.getContent(n,R),className:Er.getContent(o,R),icon:Er.getContent(c,R),onDelete:()=>T(_),onClick:a?()=>a({label:_}):void 0}},[o,c,a,n,T]);return S.jsx(Yr,{...g,className:Ye.clsx(Xd.AChipsContainer,u),style:{...f,alignItems:t,gap:m},children:b.map((_,R)=>S.jsx(Av,{...A(_),ButtonRenderer:p},R))})},Av=r=>{const{label:e,useLabel:t,icon:n,className:o,onDelete:i,onClick:a,ButtonRenderer:c=gC,width:u="fit-content",style:f,...p}=r;return e===void 0?S.jsx(S.Fragment,{}):S.jsxs(Yr,{...p,className:Ye.clsx("NoSelect",Xd.AChip,a&&Xd.Clickable,a&&"IsClickable",o),style:{...f,width:u},onClick:a,children:[S.jsx(tl,{children:e}),c({...r})]})},gC=r=>{const{label:e,icon:t,onDelete:n,useLabel:o}=r,[,i]=vn(o,e),[a,c]=C.useState(!1),u=C.useCallback(m=>{n&&(m.stopPropagation(),i==null||i(void 0),n(r))},[n,r,i]),f=()=>{c(!0)},p=()=>{c(!1)};return S.jsx(S.Fragment,{children:n&&S.jsxs(S.Fragment,{children:[S.jsx(Xu,{}),S.jsx(zn,{w:24}),S.jsx(Yr,{className:Ye.clsx(Xd.AChipDelete,"IsClickable",a&&Xd.IsHover)}),S.jsx(ho,{className:Xd.AChipDeleteIcon,icon:t||S.jsx(en,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:u,onMouseEnter:f,onMouseLeave:p})]})})},qu=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]}`},c6=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},u6=/[a-zA-Z0-9]/,d6=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,f6=/^[a-zA-Z0-9._-]+$/,h6=/^[0-9a-fA-F-]+$/i,p6=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,g6=/^\S*$/,m6=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,v6=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,y6=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,b6=/^[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}$/,x6={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)},w6=()=>"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)}),Ev={secondToTime:c6,validate:x6,FileSizeTrans:qu,uuid:w6},C6=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:o,actionRef:i,...a}=r,[{wrapId:c,wrapProps:u,labelProps:f,...p},m]=Ku(a),[g,b]=C.useState(0),[w,T]=C.useState(!o);C.useEffect(()=>{if(!w||m.isDisabled||m.isLoading)return;const F=setInterval(()=>b(B=>B+1),t);return()=>clearInterval(F)},[t,w,m.isDisabled,m.isLoading]);const A=C.useCallback(()=>{n==null||n(),T(!1)},[n]);C.useEffect(()=>{g>=e&&!m.isDisabled&&!m.isLoading&&A()},[g,e,A,m.isDisabled,m.isLoading]);const _=C.useCallback(()=>{m.isDisabled||T(!0)},[m.isDisabled]),R=C.useCallback(()=>{m.isDisabled||T(!1)},[m.isDisabled]),D=C.useCallback(()=>{m.isDisabled||(T(!1),b(0))},[m.isDisabled]);C.useEffect(()=>{i&&(i.current={start:_,stop:R,reset:D,setTicks:b})},[i,_,R,D]);const M=e-g;return S.jsx(Vc,{wrapId:c,wrapProps:u,labelProps:f,...p,children:S.jsx(Yr,{...m,children:Ev.secondToTime(M>0?M: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 S6(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function _6(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function A6(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function S0(r,e){return ha(r)===ha(e)}function Jd(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 tg(r,e){return ha(r)<=ha(e)}function _0(r,e,t){return Jd(r,t)?Jd(e,t)&&eg(e,r):Jd(e,r)&&eg(e,t)}function A0(r,e,t){return Jd(r,t)?Qp(e,t)&&tg(e,r):Qp(e,r)&&tg(e,t)}const rr={toString:ha,toDate:S6,makeSDate:_6,makeEDate:A6,"===":S0,">":Jd,">=":Qp,"<":eg,"<=":tg,"s<d<e|e<d<s":_0,"s<=d<=e|e<=d<=s":A0,eq:S0,g:Jd,ge:Qp,l:eg,le:tg,b:_0,be:A0},E6="_InputContainer_16eoo_7",T6="_AInput_16eoo_21",R6="_LeftAddon_16eoo_43",k6="_RightAddon_16eoo_50",I6="_ErrorHelperText_16eoo_57",M6="_Primary_16eoo_61",L6="_UnAvailable_16eoo_66",D6="_Secondary_16eoo_77",O6="_ReadOnly_16eoo_92",N6="_ANumInputUnitSelect_16eoo_108",Jo={InputContainer:E6,AInput:T6,LeftAddon:R6,RightAddon:k6,ErrorHelperText:I6,Primary:M6,UnAvailable:L6,Secondary:D6,ReadOnly:O6,Error:"_Error_16eoo_57",ANumInputUnitSelect:N6},P6=["Primary","Secondary","ReadOnly","Error"],Gc=r=>{const{onEnterPress:e,type:t="Primary",inputRef:n,useValue:o,isReadonly:i,placeholder:a,minLength:c,maxLength:u,tabIndex:f,autoFocus:p,isPassword:m,autoComplete:g="off",inputProps:b,LeftAddon:w,RightAddon:T,dataList:A=[],id:_=(b==null?void 0:b.id)??Ev.uuid(),...R}=r,[{wrapId:D,wrapProps:M,labelProps:F,...B},z]=Ku(R),j=C.useMemo(()=>B6(B.errorMessage)?"Error":t,[B.errorMessage,t]),G=C.useMemo(()=>j==="ReadOnly"?!0:i,[j,i]),fe=C.useMemo(()=>z.isDisabled||z.isLoading,[z.isDisabled,z.isLoading]),[P,U]=vn(o,""),V=C.useCallback(se=>{var te;fe||((te=b==null?void 0:b.onKeyDown)==null||te.call(b,se),["Escape","Enter","ArrowUp","ArrowDown"].includes(se.key)||se.stopPropagation(),se.key==="Enter"&&e&&e(se.currentTarget.value))},[fe,b,e]),Q=C.useCallback(se=>{var te;fe||c&&se.target.value.length<c||(U==null||U(se.target.value),(te=b==null?void 0:b.onChange)==null||te.call(b,se))},[fe,c,U,b]);return m?S.jsx(Vc,{wrapId:D,wrapProps:M,labelProps:F,...B,children:S.jsx("form",{onSubmit:se=>se.preventDefault(),children:S.jsxs(Yr,{...z,className:Ye.clsx(Jo.InputContainer,Jo[j],fe&&Jo.UnAvailable,z.className),children:[w&&S.jsx("div",{className:Jo.LeftAddon,children:w}),S.jsx("input",{...b,ref:n,autoComplete:g,autoFocus:p,className:Ye.clsx(Jo.AInput,j==="Error"&&Jo.InputError,b==null?void 0:b.className),id:_,list:`${_}-datalist`,maxLength:u,placeholder:a,readOnly:G,tabIndex:z.isDisabled||z.isLoading?-1:f,type:"password",value:P,onChange:Q,onKeyDown:V}),A.length>0&&S.jsx("datalist",{id:`${_}-datalist`,children:A.map((se,te)=>S.jsx("option",{value:se},te))}),T&&S.jsx("div",{className:Ye.clsx(Jo.RightAddon,"NoSelect"),children:T})]})})}):S.jsx(Vc,{wrapId:D,wrapProps:M,labelProps:F,...B,children:S.jsxs(Yr,{...z,className:Ye.clsx(Jo.InputContainer,Jo[j],fe&&Jo.UnAvailable,z.className),children:[w&&S.jsx("div",{className:Jo.LeftAddon,children:w}),S.jsx("input",{...b,ref:n,autoComplete:g,autoFocus:p,className:Ye.clsx(Jo.AInput,j==="Error"&&Jo.InputError,b==null?void 0:b.className),id:_,list:`${_}-datalist`,maxLength:u,placeholder:a,readOnly:G,tabIndex:z.isDisabled||z.isLoading?-1:f,value:P,onChange:Q,onKeyDown:V}),A.length>0&&S.jsx("datalist",{id:`${_}-datalist`,children:A.map((se,te)=>S.jsx("option",{value:se},te))}),T&&S.jsx("div",{className:Jo.RightAddon,children:T})]})})};function B6(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const F6="_ASelect_1gbzd_1",j6="_Arrow_1gbzd_14",z6="_Primary_1gbzd_23",H6="_UnAvailable_1gbzd_34",$6="_IsOpen_1gbzd_34",q6="_Secondary_1gbzd_41",U6="_Placeholder_1gbzd_57",W6="_ValuesContainer_1gbzd_61",V6="_Values_1gbzd_61",G6="_Options_1gbzd_80",Y6="_Raw_1gbzd_93",Z6="_Option_1gbzd_80",K6="_Selected_1gbzd_122",X6="_CheckBox_1gbzd_129",rs={ASelect:F6,Arrow:j6,Primary:z6,UnAvailable:H6,IsOpen:$6,Secondary:q6,Placeholder:U6,ValuesContainer:W6,Values:V6,Options:G6,Raw:Y6,Option:Z6,Selected:K6,CheckBox:X6},J6=["Primary","Secondary","Raw"],zl=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.ASelect["Select(Placeholder)"],onClose:i,OptionRenderer:a=eR,SelectedRenderer:c=tR,minShowRows:u=2,maxShowRows:f=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,b=C.useRef(null),w=C.useMemo(()=>g.abaseRef??b,[g.abaseRef]),T=C.useRef(null),[A,_]=vn(t,e[0]),[R,D]=C.useState(void 0),[M,F]=C.useState(!1),[B,z]=C.useState(!1),j=C.useRef(e),G=C.useRef(null),fe=C.useCallback(()=>z(!1),[]),P=C.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(z(!0),setTimeout(()=>F(!0),0),setTimeout(()=>fm(T,w,e,u,f),0))},[w,g.isDisabled,g.isLoading,e,u,f]),U=C.useCallback(()=>{F(!1),z(!0),i==null||i()},[i]),V=C.useCallback(ie=>{var de;M?U():P(),setTimeout(()=>fm(T,w,e,u,f),0),(de=g.onClick)==null||de.call(g,ie)},[w,g,e,M,U,P,u,f]),Q=C.useCallback(()=>{fm(T,w,e,u,f)},[w,e,u,f]);C.useEffect(()=>{if(!M||!w.current)return;const ie=w.current;let de=ie.parentElement;for(;de;)de.addEventListener("scroll",Q),de=de.parentElement;return()=>{let me=ie.parentElement;for(;me;)me.removeEventListener("scroll",Q),me=me.parentElement}},[w,M,Q]),C.useEffect(()=>{if(M)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[M,Q]);const se=C.useCallback(ie=>{ie[0].intersectionRatio===0&&U()},[U]);C.useEffect(()=>{if(!M)return;const ie=new IntersectionObserver(se,{threshold:0});return w.current&&ie.observe(w.current),()=>ie.disconnect()},[w,M,se]);const te=C.useCallback(ie=>{const de=ie.target,me=w.current,Ae=T.current;!me||!de||!Ae||!me.contains(de)&&!Ae.contains(de)&&U()},[w,U]),re=C.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);C.useEffect(()=>{if(M)return setTimeout(()=>document.addEventListener("mousedown",te),0),()=>document.removeEventListener("mousedown",te)},[M,te]);const ne=C.useCallback((ie,de)=>{ie.stopPropagation(),ie.preventDefault(),_==null||_(de),U()},[_,U]),be=C.useCallback(()=>{if(!m||!w.current)return;const ie=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOption:A,placeholder:o,optionRenderer:de=>de===null?null:a({option:de}),type:n,isMulti:!1});D(ie)},[m,w,e,A,o,a,n]);return C.useEffect(()=>m?((e!==j.current||R===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{be(),G.current=null,j.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[m,e,be,R]),C.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ye.clsx(g.className,rs.ASelect,"NoSelect",M&&rs.IsOpen,re&&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:[S.jsx("div",{className:rs.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(rs.Values,(A==null||A==="")&&rs.Placeholder),children:S.jsx(c,{OptionRenderer:a,placeholder:o,selectedOption:A})})}),S.jsx("div",{...p,className:Ye.clsx(rs.Arrow,p==null?void 0:p.className),children:S.jsx(en,{icon:"TriangleDown",style:{transform:M?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(M||B)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(rs.Options,rs[n]),style:{opacity:+M,visibility:M?"visible":"hidden",pointerEvents:M?void 0:"none",borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0,width:R?`${R}px`:m?"100px":void 0},onTransitionEnd:fe,children:e.map((ie,de)=>{const me=A===ie,Ae=w.current?window.getComputedStyle(w.current):void 0;return ie===null?null:S.jsx("div",{className:Ye.clsx(rs.Option,me&&rs.Selected,"NoSelect",rs[n]),style:{height:Ae==null?void 0:Ae.height},onClick:Oe=>ne(Oe,ie),children:S.jsx(a,{option:ie})},de)})}),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=Q6(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 Q6(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 eR=r=>{const{option:e}=r;return lr.isReactNode(e)?e:null},tR=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:S.jsx(t,{option:e})},rR="_Anchor_1l5ql_1",nR="_Primary_1l5ql_18",oR="_Secondary_1l5ql_21",iR="_Placeholder_1l5ql_25",sR="_Icon_1l5ql_30",aR="_ADatePicker_1l5ql_40",lR="_StringInputWrap_1l5ql_51",cR="_StringInputContainer_1l5ql_56",uR="_StringInput_1l5ql_51",dR="_IsIdx_1l5ql_71",fR="_CalendarContainer_1l5ql_75",hR="_Header_1l5ql_81",pR="_Prev_1l5ql_85",gR="_Next_1l5ql_86",mR="_MonthYear_1l5ql_119",vR="_Select_1l5ql_124",yR="_Calendar_1l5ql_75",bR="_Cell_1l5ql_134",xR="_IsNotCurrentMonth_1l5ql_146",wR="_IsSelected_1l5ql_150",CR="_IsDisabled_1l5ql_154",SR="_IsHovered_1l5ql_157",_R="_Week_1l5ql_161",AR="_WeekDay_1l5ql_166",wn={Anchor:rR,Primary:nR,Secondary:oR,Placeholder:iR,Icon:sR,ADatePicker:aR,StringInputWrap:lR,StringInputContainer:cR,StringInput:uR,String:"_String_1l5ql_51",IsIdx:dR,CalendarContainer:fR,Header:hR,Prev:pR,Next:gR,MonthYear:mR,Select:vR,Calendar:yR,Cell:bR,IsNotCurrentMonth:xR,IsSelected:wR,IsDisabled:CR,IsHovered:SR,Week:_R,WeekDay:AR},ER="_Anchor_5u6hq_1",TR="_Primary_5u6hq_18",RR="_Secondary_5u6hq_22",kR="_Placeholder_5u6hq_26",IR="_Icon_5u6hq_31",MR="_ADateRangePicker_5u6hq_41",LR="_StringInputWrap_5u6hq_52",DR="_StringInputContainer_5u6hq_56",OR="_StringInput_5u6hq_52",NR="_IsIdx_5u6hq_72",PR="_CalendarContainer_5u6hq_76",BR="_Header_5u6hq_82",FR="_Prev_5u6hq_86",jR="_Next_5u6hq_87",zR="_MonthYear_5u6hq_120",HR="_Select_5u6hq_125",$R="_Calendar_5u6hq_76",qR="_Cell_5u6hq_135",UR="_IsNotCurrentMonth_5u6hq_147",WR="_IsSelected_5u6hq_151",VR="_IsDisabled_5u6hq_155",GR="_IsHovered_5u6hq_158",YR="_Week_5u6hq_162",ZR="_WeekDay_5u6hq_167",KR="_ChoiceButton_5u6hq_171",Kr={Anchor:ER,Primary:TR,Secondary:RR,Placeholder:kR,Icon:IR,ADateRangePicker:MR,StringInputWrap:LR,StringInputContainer:DR,StringInput:OR,String:"_String_5u6hq_52",IsIdx:NR,CalendarContainer:PR,Header:BR,Prev:FR,Next:jR,MonthYear:zR,Select:HR,Calendar:$R,Cell:qR,IsNotCurrentMonth:UR,IsSelected:WR,IsDisabled:VR,IsHovered:GR,Week:YR,WeekDay:ZR,ChoiceButton:KR},Tv=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:u,isLoading:f,yearsOptionSize:p,noDefaultChoices:m,LeftAddon:g,RightAddon:b,placeholder:w,noClearButton:T,resources:A,onClick:_,...R}=r,D=C.useMemo(()=>({...wr.ADateRangePicker,...A}),[A]),M=C.useMemo(()=>w??D["Select DateRange"],[w,D]),[F,B]=C.useMemo(()=>{let ae,it;if(a&&(ae=rr.makeSDate(a)),c&&(it=rr.makeEDate(c)),ae&&it&&rr["<"](it,ae)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const bt=ae;ae=it,it=bt}return[ae,it]},[a,c]),[z,j]=C.useState("sD"),[G,fe]=vn(n,void 0),P=C.useCallback(ae=>{fe&&(ae===void 0?(fe(void 0),et(""),Ze("")):(fe({sDate:rr.makeSDate(ae.sDate),eDate:rr.makeEDate(ae.eDate)}),et(rr.toString(ae.sDate)),Ze(rr.toString(ae.eDate))))},[fe]);C.useEffect(()=>{G&&(et(rr.toString(G.sDate)),Ze(rr.toString(G.eDate)))},[G]);const U=C.useCallback(ae=>{if(!fe)return;let it=G?G.sDate:rr.makeSDate(ae);ae=rr.makeEDate(ae),fe({sDate:it,eDate:ae}),et(rr.toString(it)),Ze(rr.toString(ae))},[fe,G]),[V,Q]=C.useState(),[se,te]=C.useState(),re=C.useCallback(ae=>{z==="sD"&&P({sDate:ae,eDate:ae}),Q(ae),te(ae)},[z,P,Q]),ne=C.useCallback(ae=>{z==="sD"?V&&(rr.eq(V,ae)?j("eD"):rr[">"](ae,V)?(U(ae),Q(void 0)):(P({sDate:ae,eDate:V}),Q(void 0))):(G?rr["<"](ae,G.sDate)?P({sDate:ae,eDate:G.eDate}):U(ae):P({sDate:ae,eDate:ae}),Q(void 0),j("sD"))},[U,V,j,z,P,G,Q]),be=C.useCallback(ae=>{V&&te(ae)},[V]),ie=C.useCallback(()=>{te(void 0),Q(void 0),j("sD")},[j,Q]),[de,me]=C.useState(E0(G,F,B)),Ae=C.useMemo(()=>Rv(de.year,F,B,p),[de.year,F,B,p]),Oe=C.useMemo(()=>Sh(de.year,F,B),[F,B,de.year]),oe=C.useCallback(ae=>{if(!Ae.includes(ae))return;const it={month:de.month,year:ae},bt=Sh(it.year,F,B);bt.length<1||(bt.includes(it.month)||(it.month<bt[0]?it.month=bt[0]:it.month>bt[bt.length-1]&&(it.month=bt[bt.length-1])),me(it))},[F,B,Ae,de.month]),ge=C.useCallback(ae=>{Oe.includes(ae)&&me({month:ae,year:de.year})},[Oe,de.year]),we=C.useMemo(()=>B?new Date(de.year,de.month+1,1)>B:!1,[de,B]),Le=C.useCallback(()=>{if(we||Oe.length<1)return;const ae=de.month+1;ae>11?me({month:Oe[0],year:de.year+1}):me({month:ae,year:de.year})},[we,Oe,de]),Ce=C.useMemo(()=>F?new Date(de.year,de.month,0)<F:!1,[de,F]),Se=C.useCallback(()=>{if(Ce||Oe.length<1)return;const ae=de.month-1;ae<Oe[0]?me({month:Oe[Oe.length-1],year:de.year-1}):me({month:ae,year:de.year})},[Ce,Oe,de]),[Ie,et]=C.useState(G!=null&&G.sDate?rr.toString(G.sDate):""),Je=C.useCallback(ae=>{if(ae.length>10||(et(ae),ae.length<10)||!fe)return;let it=rr.toDate(ae);if(!it)return;F&&it<F&&(it=F),B&&it>B&&(it=B);let bt=G?G.eDate:it;G&&rr[">"](it,bt)&&([it,bt]=T0(it,bt)),P({sDate:it,eDate:bt}),me({month:it.getMonth(),year:it.getFullYear()})},[fe,P,G,F,B]),[Qe,Ze]=C.useState(G!=null&&G.eDate?rr.toString(G.eDate):""),Ke=C.useCallback(ae=>{if(ae.length>10||(Ze(ae),ae.length<10)||!fe)return;let it=rr.toDate(ae);if(!it)return;F&&it<F&&(it=F),B&&it>B&&(it=B);let bt=G?G.sDate:it;G&&rr[">"](bt,it)&&([bt,it]=T0(bt,it)),P({sDate:bt,eDate:it}),me({month:it.getMonth(),year:it.getFullYear()})},[fe,P,G,F,B]),ht=C.useCallback(()=>{G&&(et(rr.toString(G.sDate)),Ze(rr.toString(G.eDate)))},[G]),Pe=C.useMemo(()=>{const{month:ae,year:it}=de,bt=new Date(it,ae,1),qt=new Date(it,ae+1,0),Ft=[];for(let Ht=0;Ht<bt.getDay();Ht++){const dt=new Date(it,ae,0).getDate()-bt.getDay()+Ht+1,yt=new Date(it,ae-1,dt),Et=F&&F>yt||B&&B<yt,Nt=G?rr.be(G.sDate,yt,G.eDate):!1,rt=se&&G&&rr.be(G.sDate,yt,se);Ft.push({day:dt,isSelected:Nt,isHovered:rt,date:yt,isDisabled:Et,isCurrentMonth:!1})}for(let Ht=1;Ht<=qt.getDate();Ht++){const Ue=new Date(it,ae,Ht),dt=F&&F>Ue||B&&B<Ue,yt=G?rr.be(G.sDate,Ue,G.eDate):!1,Et=se&&G&&rr.be(G.sDate,Ue,se);Ft.push({day:Ht,isSelected:yt,isHovered:Et,date:Ue,isDisabled:dt,isCurrentMonth:!0})}for(let Ht=0;Ht<7-qt.getDay()-1;Ht++){const Ue=new Date(it,ae+1,Ht+1),dt=F&&F>Ue||B&&B<Ue,yt=G?rr.be(G.sDate,Ue,G.eDate):!1,Et=se&&G&&rr.be(G.sDate,Ue,se);Ft.push({day:Ht+1,isSelected:yt,isHovered:Et,date:Ue,isDisabled:dt,isCurrentMonth:!1})}const Lt=[];for(let Ht=0;Ht<Ft.length/7;Ht++)Lt.push(S.jsx("div",{className:Kr.Week,children:Ft.slice(Ht*7,Ht*7+7).map((Ue,dt)=>S.jsx(Go,{isDisabled:Ue.isDisabled,type:"Raw",className:Ye.clsx(Kr.Cell,Ue.isDisabled?Kr.IsDisabled:Ue.isCurrentMonth?Ue.isSelected?Kr.IsSelected:Ue.isHovered&&Kr.IsHovered:Kr.IsNotCurrentMonth),onMouseDown:()=>Ue.isCurrentMonth&&re(Ue.date),onMouseEnter:()=>Ue.isCurrentMonth&&be(Ue.date),onMouseUp:()=>Ue.isCurrentMonth&&ne(Ue.date),children:Ue.day},dt))},Ht));return Lt},[de,se,G,F,B,re,ne,be]),Ne=C.useRef(null),Xe=C.useCallback(()=>{Ne&&Sv(Ne,De,i)},[Ne,i]),[We,Ve]=C.useState(!1),[lt,st]=C.useState(!1),De=C.useRef(null),at=C.useCallback(()=>{u||f||(Ve(!0),setTimeout(()=>st(!0),0),setTimeout(()=>Xe(),0),me(E0(G,F,B)))},[u,f,G,Xe,F,B]),mt=C.useCallback(()=>{u||f||(Ve(!0),st(!1))},[u,f]),ut=C.useMemo(()=>lt?mt:at,[lt,at,mt]),Dt=C.useCallback(()=>Ve(!1),[]),Bt=C.useCallback(ae=>{const it=document.getElementById("root"),bt=ae.target,qt=De.current,Ft=Ne.current;!it||!qt||!bt||!Ft||!qt.contains(bt)&&it.contains(bt)&&!Ft.contains(bt)&&mt()},[mt]);C.useEffect(()=>{if(lt)return setTimeout(()=>document.addEventListener("mousedown",Bt),0),()=>document.removeEventListener("mousedown",Bt)},[lt,Bt]);const Pt=C.useCallback(()=>{Xe()},[Xe]);C.useEffect(()=>{if(!lt||!(Ne!=null&&Ne.current))return;const ae=Ne.current;let it=ae.parentElement;for(;it;)it.addEventListener("scroll",Pt),it=it.parentElement;return()=>{let bt=ae.parentElement;for(;bt;)bt.removeEventListener("scroll",Pt),bt=bt.parentElement}},[Ne,lt,Pt]),C.useEffect(()=>{if(lt)return window.addEventListener("resize",Pt),()=>window.removeEventListener("resize",Pt)},[lt,Pt]);const Xt=C.useCallback(ae=>{ae[0].intersectionRatio===0&&mt()},[mt]);C.useEffect(()=>{if(!lt)return;const ae=new IntersectionObserver(Xt,{threshold:0});return De.current&&ae.observe(De.current),()=>ae.disconnect()},[De,lt,Xt]),C.useEffect(()=>{o&&(o.current={open:at,close:mt,toggle:ut})},[o,at,mt,ut]),C.useEffect(()=>{if(!G)return;let ae={sDate:G.sDate,eDate:G.eDate};F&&(rr["<"](G.sDate,F)&&(ae.sDate=F),rr["<"](G.eDate,F)&&(ae.eDate=F)),B&&(rr[">"](G.sDate,B)&&(ae.sDate=B),rr[">"](G.eDate,B)&&(ae.eDate=B)),(ae.sDate!==G.sDate||ae.eDate!==G.eDate)&&P(ae)},[F,B,G,P]);const ar=C.useCallback(ae=>{_==null||_(ae),ut()},[_,ut]),Kt=C.useCallback(ae=>{P(void 0),mt(),ae.stopPropagation()},[P,mt]),cr=C.useCallback(()=>G?S.jsx(ho,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Kt}):null,[G,Kt]),Te=C.useMemo(()=>G?`${rr.toString(G.sDate)} ~ ${rr.toString(G.eDate)}`:S.jsx("span",{className:Kr.Placeholder,children:M}),[G,M]);return S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...R,abaseRef:Ne,className:Ye.clsx(Kr.Anchor,"IsClickable",Kr[e],t),isDisabled:u,isLoading:f,onClick:ar,children:[g,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(en,{className:Ye.clsx(Kr.Icon,Kr[e]),icon:"CalendarDay"}),S.jsx(zn,{w:4})]}),Te,S.jsx(Xu,{}),!T&&S.jsx(cr,{}),e==="Secondary"&&S.jsx(en,{className:Ye.clsx(Kr.Icon,Kr[e]),icon:"CalendarDay"}),b&&b]}),(lt||We)&&Ls.createPortal(S.jsxs("div",{ref:De,className:Kr.ADateRangePicker,style:{opacity:+lt,visibility:lt?"visible":"hidden"},onMouseLeave:ie,onTransitionEnd:Dt,children:[S.jsxs("div",{className:Kr.StringInputContainer,children:[S.jsxs(kn,{children:[S.jsx(Gc,{className:Ye.clsx(Kr.String,z==="sD"&&se&&Kr.IsIdx),inputProps:{className:Kr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[Ie,Je],wrapProps:{className:Kr.StringInputWrap},onBlur:ht}),S.jsx(zn,{w:8}),S.jsx(Gc,{className:Ye.clsx(Kr.String,z==="eD"&&se&&Kr.IsIdx),inputProps:{className:Kr.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[Qe,Ke],wrapProps:{className:Kr.StringInputWrap},onBlur:ht})]}),!m&&S.jsxs(kn,{style:{marginTop:4},children:[S.jsx(cp,{children:D["1일"],onClick:()=>P({sDate:new Date,eDate:new Date})}),S.jsx(cp,{children:D["1주일"],onClick:()=>P({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),S.jsx(cp,{children:D["1개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),S.jsx(cp,{children:D["3개월"],onClick:()=>P({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),S.jsxs("div",{className:Kr.CalendarContainer,children:[S.jsxs(kn,{className:Kr.Header,children:[S.jsx(Go,{className:Kr.Prev,isDisabled:Ce,type:"Raw",onClick:Se}),S.jsxs("div",{className:Kr.MonthYear,children:[S.jsx(zl,{isAutoWidth:!0,className:Kr.Select,OptionRenderer:ae=>D.months(ae.option),options:Oe,SelectedRenderer:ae=>D.months(ae.selectedOption),type:"Secondary",useSelect:[de.month,ge]}),S.jsx(zn,{w:8}),S.jsx(zl,{isAutoWidth:!0,className:Kr.Select,options:Ae,type:"Secondary",useSelect:[de.year,oe]})]}),S.jsx(Go,{className:Kr.Next,isDisabled:we,type:"Raw",onClick:Le})]}),S.jsx(zn,{h:10}),S.jsxs("div",{className:Kr.Calendar,children:[S.jsx("div",{className:Kr.Week,children:[0,1,2,3,4,5,6].map(ae=>S.jsx("div",{className:Ye.clsx(Kr.WeekDay,Kr.Cell),children:D.weekDays(ae)},ae))}),Pe]})]})]}),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 Rv(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 E0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&rr["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&rr[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function T0(r,e){return[e,r]}const cp=r=>S.jsx(Go,{className:Ye.clsx(Kr.ChoiceButton,"Headline2"),type:"Secondary",...r}),XR=["Primary","Secondary","Raw"],kv=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:o,position:i=bf.SE,minDate:a,maxDate:c,isDisabled:u,isLoading:f,placeholder:p,LeftAddon:m,RightAddon:g,resources:b,noClearButton:w,onClick:T,...A}=r,_=C.useMemo(()=>({...wr.ADatePicker,...b}),[b]),R=C.useMemo(()=>p??_["Select Date"],[p,_]),[D,M]=C.useMemo(()=>{let De,at;return a&&(De=rr.makeSDate(a)),c&&(at=rr.makeEDate(c)),De&&at&&rr["<"](at,De)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[rr.makeSDate(at),rr.makeEDate(De)]):[De,at]},[a,c]),[F,B]=vn(n,null),[z,j]=C.useState(F?rr.toString(F):""),[G,fe]=C.useState(()=>{const De=F??new Date;return D&&De<D?D.getMonth():M&&De>M?M.getMonth():(De??new Date).getMonth()}),[P,U]=C.useState(()=>{const De=F??new Date;return D&&De<D?D.getFullYear():M&&De>M?M.getFullYear():(De??new Date).getFullYear()}),V=C.useCallback(De=>{U(De);const at=Sh(De,D,M);at.includes(G)||(G<at[0]?fe(at[0]):G>at[at.length-1]&&fe(at[at.length-1]))},[D,M,G]),Q=C.useCallback(De=>{if(De.length>10||(j(De),De.length<10)||!B)return;let at=rr.toDate(De);at&&(D&&at<D&&(at=D),M&&at>M&&(at=M),B(at),U(at.getFullYear()),fe(at.getMonth()))},[B,D,M]),se=C.useCallback(De=>{const at=P+De;at<0||U(at)},[P]),te=C.useCallback(De=>{const at=G+De;at<0?(fe(11),se(-1)):at>11?(fe(0),se(1)):fe(at)},[G,se]),re=C.useCallback(De=>{B&&(De===void 0?(B(void 0),j("")):(B(De),j(rr.toString(De))))},[B]),ne=C.useMemo(()=>{const De=new Date(P,G,0);return D&&De<D},[P,G,D]),be=C.useMemo(()=>{const De=new Date(P,G+1,1);return M&&De>M},[P,G,M]),ie=C.useCallback(()=>{ne||te(-1)},[te,ne]),de=C.useCallback(()=>{be||te(1)},[te,be]),[me,Ae]=C.useState(null),Oe=C.useCallback(()=>{B&&Ae(null)},[B]),oe=C.useCallback(De=>{B&&Ae(De)},[B]),ge=C.useMemo(()=>{const De=new Date(P,G,1),at=new Date(P,G+1,0),mt=[];for(let Dt=0;Dt<De.getDay();Dt++){const Pt=new Date(P,G,0).getDate()-De.getDay()+Dt+1,Xt=new Date(P,G-1,Pt),ar=D&&D>Xt||M&&M<Xt,Kt=F&&rr.eq(Xt,F),cr=me&&rr.eq(Xt,me);mt.push({day:Pt,isSelected:Kt,date:Xt,isDisabled:ar,isHovered:cr,isCurrentMonth:!1})}for(let Dt=1;Dt<=at.getDate();Dt++){const Bt=new Date(P,G,Dt),Pt=D&&D>Bt||M&&M<Bt,Xt=F&&rr.eq(Bt,F),ar=me&&rr.eq(Bt,me);mt.push({day:Dt,isSelected:Xt,date:Bt,isDisabled:Pt,isHovered:ar,isCurrentMonth:!0})}for(let Dt=0;Dt<7-at.getDay()-1;Dt++){const Bt=new Date(P,G+1,Dt+1),Pt=D&&D>Bt||M&&M<Bt,Xt=F&&rr.eq(Bt,F),ar=me&&rr.eq(Bt,me);mt.push({day:Dt+1,isSelected:Xt,date:Bt,isDisabled:Pt,isHovered:ar,isCurrentMonth:!1})}const ut=[];for(let Dt=0;Dt<mt.length/7;Dt++)ut.push(S.jsx("div",{className:wn.Week,children:mt.slice(Dt*7,Dt*7+7).map((Bt,Pt)=>S.jsx(Go,{isDisabled:Bt.isDisabled,type:"Raw",className:Ye.clsx(wn.Cell,Bt.isDisabled?wn.IsDisabled:Bt.isCurrentMonth?Bt.isSelected?wn.IsSelected:Bt.isHovered&&wn.IsHovered:wn.IsNotCurrentMonth),onClick:()=>Bt.isCurrentMonth&&re(Bt.date),onMouseEnter:()=>Bt.isCurrentMonth&&oe(Bt.date),onMouseLeave:()=>Bt.isCurrentMonth&&Oe(),children:Bt.day},Pt))},Dt));return ut},[G,re,F,P,D,M,me,Oe,oe]),we=C.useRef(null),Le=C.useCallback(()=>{we&&Sv(we,Je,i)},[we,i]),[Ce,Se]=C.useState(!1),[Ie,et]=C.useState(!1),Je=C.useRef(null),Qe=C.useCallback(()=>{u||f||(Se(!0),setTimeout(()=>et(!0),0),setTimeout(()=>Le(),0),j(F?rr.toString(F):""),fe(()=>{const De=F??new Date;return D&&De<D?D.getMonth():M&&De>M?M.getMonth():De.getMonth()}),U(()=>{const De=F??new Date;return D&&De<D?D.getFullYear():M&&De>M?M.getFullYear():De.getFullYear()}))},[u,f,F,Le,D,M]),Ze=C.useCallback(()=>{u||f||(Se(!0),et(!1))},[u,f]),Ke=C.useMemo(()=>Ie?Ze:Qe,[Ie,Qe,Ze]),ht=C.useCallback(()=>Se(!1),[]),Pe=C.useCallback(De=>{const at=document.getElementById("root"),mt=De.target,ut=Je.current,Dt=we.current;!at||!ut||!mt||!Dt||!ut.contains(mt)&&at.contains(mt)&&!Dt.contains(mt)&&Ze()},[Ze]);C.useEffect(()=>{if(Ie)return setTimeout(()=>document.addEventListener("mousedown",Pe),0),()=>document.removeEventListener("mousedown",Pe)},[Ie,Pe]);const Ne=C.useCallback(()=>{Le()},[Le]);C.useEffect(()=>{if(!Ie||!(we!=null&&we.current))return;const De=we.current;let at=De.parentElement;for(;at;)at.addEventListener("scroll",Ne),at=at.parentElement;return()=>{let mt=De.parentElement;for(;mt;)mt.removeEventListener("scroll",Ne),mt=mt.parentElement}},[we,Ie,Ne]),C.useEffect(()=>{if(Ie)return window.addEventListener("resize",Ne),()=>window.removeEventListener("resize",Ne)},[Ie,Ne]);const Xe=C.useCallback(De=>{De[0].intersectionRatio===0&&Ze()},[Ze]);C.useEffect(()=>{if(!Ie)return;const De=new IntersectionObserver(Xe,{threshold:0});return Je.current&&De.observe(Je.current),()=>De.disconnect()},[Je,Ie,Xe]),C.useEffect(()=>{o&&(o.current={open:Qe,close:Ze,toggle:Ke})},[o,Qe,Ze,Ke]);const We=C.useCallback(De=>{T==null||T(De),Ke()},[T,Ke]),Ve=C.useCallback(De=>{re(void 0),Ze(),De.stopPropagation()},[re,Ze]),lt=C.useCallback(()=>F?S.jsx(ho,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Ve}):null,[F,Ve]),st=C.useMemo(()=>F?rr.toString(F):S.jsx("span",{className:wn.Placeholder,children:R}),[F,R]);return S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...A,abaseRef:we,className:Ye.clsx(wn.Anchor,"IsClickable",wn[e],t),isDisabled:u,isLoading:f,onClick:We,children:[m,e==="Primary"&&S.jsxs(S.Fragment,{children:[S.jsx(en,{className:Ye.clsx(wn.Icon,wn[e]),icon:"CalendarDay"}),S.jsx(zn,{w:4})]}),st,S.jsx(Xu,{}),!w&&S.jsx(lt,{}),e==="Secondary"&&S.jsx(en,{className:Ye.clsx(wn.Icon,wn[e]),icon:"CalendarDay"}),g&&g]}),(Ie||Ce)&&Ls.createPortal(S.jsxs("div",{ref:Je,className:wn.ADatePicker,style:{opacity:+Ie,visibility:Ie?"visible":"hidden"},onTransitionEnd:ht,children:[S.jsx("div",{className:wn.StringInputContainer,children:S.jsx(Gc,{className:wn.String,inputProps:{className:wn.StringInput},maxLength:F?30:11,placeholder:"YYYY-MM-DD",useValue:[z,Q],wrapProps:{className:wn.StringInputWrap}})}),S.jsxs("div",{className:wn.CalendarContainer,children:[S.jsxs(kn,{className:wn.Header,children:[S.jsx(Go,{className:wn.Prev,isDisabled:ne,type:"Raw",onClick:ie}),S.jsxs("div",{className:wn.MonthYear,children:[S.jsx(zl,{isAutoWidth:!0,className:wn.Select,OptionRenderer:De=>_.months(De.option),options:Sh(P,D,M),SelectedRenderer:De=>_.months(De.selectedOption),type:"Secondary",useSelect:[G,fe]}),S.jsx(zn,{w:8}),S.jsx(zl,{isAutoWidth:!0,className:wn.Select,options:Rv(P,D,M),type:"Secondary",useSelect:[P,V]})]}),S.jsx(Go,{className:wn.Next,isDisabled:be,type:"Raw",onClick:de})]}),S.jsx(zn,{h:10}),S.jsxs("div",{className:wn.Calendar,children:[S.jsx("div",{className:wn.Week,children:[0,1,2,3,4,5,6].map(De=>S.jsx("div",{className:Ye.clsx(wn.WeekDay,wn.Cell),children:_.weekDays(De)},De))}),ge]})]})]}),document.body)]})},JR="_Paper_e69j5_1",QR="_Card_e69j5_15",ek="_Body_e69j5_26",tk="_Title_e69j5_35",rk="_Content_e69j5_42",nk="_Action_e69j5_45",ok="_Button_e69j5_58",Ka={Paper:JR,Card:QR,Body:ek,Title:tk,Content:rk,Action:nk,Button:ok},ik=["okCancel","cancelOk","ok","cancel","none"],sk=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:o,style:i,titleStyle:a,bodyStyle:c,contentStyle:u,okButtonStyle:f,cancelButtonStyle:p,actionStyle:m,onOk:g,onCancel:b,onClose:w,onEnterPress:T,onEscPress:A,onSpacePress:_,onPaperClick:R,noDim:D=!1,isLoading:M,isOkDisabled:F,isOkLoading:B,isCancelDisabled:z,isCancelLoading:j,isChanged:G,buttonNoInteractive:fe,okButtonClassName:P,cancelButtonClassName:U,progress:V,ProgressRenderer:Q,progressProps:se,resources:te}=r,re=C.useMemo(()=>({...wr.ADialog,...te}),[te]),[ne,be]=C.useState(0);C.useEffect(()=>be(1),[]);const ie=C.useCallback(()=>{be(0)},[]),de=C.useCallback(()=>{if(!ne){const[,Ze]=e.state.useIsOpen;Ze==null||Ze(!1),w==null||w()}},[ne,w,e]),me=C.useCallback(async()=>{if(!ne||t==="cancel"||t==="none"||M||F||B)return;const{event:Ze,e:Ke}=Bu();await(g==null?void 0:g(Ke)),!Ze.preventDefault&&ie()},[ne,t,ie,g,F,M,B]),Ae=C.useCallback(async()=>{if(!ne||t==="ok"||t==="none"||M||z||j)return;const{event:Ze,e:Ke}=Bu();await(b==null?void 0:b(Ke)),!Ze.preventDefault&&ie()},[ne,t,ie,b,z,M,j]);C.useEffect(()=>{e&&e.state.setAction({close:ie,ok:me,cancel:Ae})},[e,ie,me,Ae]);const Oe=C.useCallback(async()=>{if(M)return;const{event:Ze,e:Ke}=Bu();await(T==null?void 0:T(Ke)),!Ze.preventDefault&&me()},[T,M,me]),oe=C.useCallback(async()=>{if(M)return;const{event:Ze,e:Ke}=Bu();await(_==null?void 0:_(Ke)),!Ze.preventDefault&&me()},[_,M,me]),ge=C.useCallback(async()=>{if(M)return;const{event:Ze,e:Ke}=Bu();await(A==null?void 0:A(Ke)),!Ze.preventDefault&&(G||Ae())},[A,M,Ae,G]),we=C.useRef(null),Le=C.useCallback(Ze=>{const Ke=document.body.getElementsByClassName(Ka.Paper);Ke.length===0||Ke[Ke.length-1]!==we.current||(Ze.key==="Enter"&&ne?Oe():Ze.key===" "&&ne?oe():Ze.key==="Escape"&&ne&&ge())},[ne,Oe,oe,ge]);C.useEffect(()=>{if(ne)return window.addEventListener("keydown",Le),()=>window.removeEventListener("keydown",Le)},[ne,Le]);const Ce=C.useRef(!1),Se=C.useRef(!1),Ie=C.useCallback(()=>{Ce.current=!0},[]),et=C.useCallback(()=>{Ce.current=!1,Se.current=!1},[]),Je=C.useCallback(()=>{Se.current=!0},[]),Qe=C.useCallback(async()=>{if(M)return;const Ze=!Se.current||Ce.current;if(Ce.current=!1,Se.current=!1,Ze)return;const{event:Ke,e:ht}=Bu();await(R==null?void 0:R(ht)),!Ke.preventDefault&&(G||Ae())},[R,M,Ae,G]);return Ls.createPortal(S.jsx("div",{ref:we,className:Ka.Paper,style:{backgroundColor:D?"transparent":void 0,pointerEvents:ne?void 0:"none",opacity:ne},onMouseDown:Je,onMouseUp:Qe,onTransitionEnd:de,children:S.jsxs(Yr,{className:Ka.Card,isLoading:M,progress:V,progressProps:se,ProgressRenderer:Q,style:i,onMouseDown:Ie,onMouseUp:et,children:[S.jsxs("div",{className:Ka.Body,style:c,children:[n&&S.jsx(ak,{title:n,titleStyle:a}),o&&S.jsx("div",{className:Ka.Content,style:u,children:o})]}),t!=="none"&&S.jsx(lk,{type:t,ok:me,cancel:Ae,resources:re,isOkDisabled:F,isOkLoading:B,isCancelDisabled:z,isCancelLoading:j,okButtonStyle:f,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:fe,okButtonClassName:P,cancelButtonClassName:U})]})}),document.body)},ak=r=>{const{title:e,titleStyle:t}=r;return S.jsx("div",{className:Ye.clsx(Ka.Title,"NoSelect","Title3"),style:t,children:e})},lk=r=>{const{type:e,ok:t,cancel:n,resources:o,isOkDisabled:i,isOkLoading:a,isCancelDisabled:c,isCancelLoading:u,okButtonStyle:f,cancelButtonStyle:p,actionStyle:m,buttonNoInteractive:g,okButtonClassName:b,cancelButtonClassName:w}=r,T=C.useMemo(()=>({onClick:t,isDisabled:i,isLoading:a,children:o.Ok,style:f,noInteractive:g,className:Ye.clsx(Ka.Button,b)}),[t,i,a,o.Ok,f,g,b]),A=C.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:c,isLoading:u,children:o.Cancel,style:p,noInteractive:g,className:Ye.clsx(Ka.Button,w)}),[n,c,u,o.Cancel,p,g,w]);if(e==="okCancel"||e==="ok")return S.jsxs("div",{className:Ka.Action,style:{...m},children:[S.jsx(Go,{...T}),e==="okCancel"&&S.jsxs(S.Fragment,{children:[S.jsx(zn,{w:8}),S.jsx(Go,{...A})]})]},e);if(e==="cancelOk"||e==="cancel")return S.jsxs("div",{className:Ka.Action,children:[S.jsx(Go,{...A}),e==="cancelOk"&&S.jsxs(S.Fragment,{children:[S.jsx(zn,{w:8}),S.jsx(Go,{...T})]})]},e)},ck=r=>{const e=C.useMemo(()=>Math.random().toFixed(32),[]),t=C.useMemo(()=>{const b={};return r.forEach(w=>{b[w]=w+e}),b},[r,e]),n=C.useMemo(()=>[],[]),o=C.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[i,a]=C.useState([]),c=C.useRef((()=>{const b={};return o.forEach(w=>{b[w]={open:()=>a(T=>[...T,w]),close:()=>{},ok:()=>{},cancel:()=>{}}}),b})()),u=C.useMemo(()=>{const b={};return o.forEach(w=>{b[w]=T=>{a(A=>!T&&A.includes(w)?A.filter(_=>_!==w):T&&!A.includes(w)?[...A,w]:A)}}),b},[o]),f=C.useMemo(()=>{const b={};return o.forEach(w=>{const A=[i.includes(w),u[w]],_=R=>{c.current[w]={...c.current[w],...R}};b[w]={useIsOpen:A,setAction:_}}),b},[i,u,o]),p=C.useMemo(()=>{const b={};return o.forEach(w=>{const T=()=>c.current[w].open(),A=()=>c.current[w].close(),_=()=>c.current[w].ok(),R=()=>c.current[w].cancel();b[w]={open:T,close:A,ok:_,cancel:R}}),b},[o]),m=C.useMemo(()=>({}),[]),g=C.useMemo(()=>(o.forEach(b=>{m[b]={state:f[b],action:p[b]}}),m),[m,o,f,p]);return C.useEffect(()=>(Object.keys(g).forEach(w=>{const T=g[w],A=t[w],_=ua.find(R=>{R.id});_?_.core=T:ua.push({id:A,core:T})}),()=>{const w=Object.keys(g),T=ua.filter(A=>w.includes(A.id));ua.length=0,ua.push(...T)}),[g,t]),g},uk=()=>{const r=C.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=C.useState(!1),n=C.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),o=C.useMemo(()=>({useIsOpen:[e,t],setAction:u=>{n.current={...n.current,...u}}}),[e]),i=C.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),a=C.useMemo(()=>({}),[]),c=C.useMemo(()=>(a.state=o,a.action=i,a),[a,o,i]);return C.useEffect(()=>{const u=ua.find(f=>f.id===r);return u?u.core=c:ua.push({id:r,core:c}),()=>{const f=ua.filter(p=>p.id!==r);ua.length=0,ua.push(...f)}},[r,c]),c},dk=r=>{const{dlgCore:e,children:t}=r,[n,o]=C.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return C.useEffect(()=>()=>o==null?void 0:o(!1),[o]),S.jsx(C.Suspense,{children:n&&t})},fk=r=>e=>{const{dlgCore:t}=e;return S.jsx(dk,{dlgCore:t,children:C.cloneElement(S.jsx(r,{...e}),{dlgCore:t})})},ua=[],hk={closeAllDlgs:()=>{ua.forEach(r=>{r.core.action.close()})}},pk="_AFileBox_1hlo1_1",gk="_SelectedFile_1hlo1_16",mk="_Dropping_1hlo1_26",Iv={AFileBox:pk,SelectedFile:gk,Dropping:mk},vk=r=>{const{useFile:e,FileRenderer:t=yk,SelectRenderer:n=bk,DropRenderer:o=xk,resources:i,accept:a="",onInvalidFileFormat:c,fileSelectButtonClassName:u,isDisabled:f,isLoading:p,className:m,...g}=r,b=C.useMemo(()=>({...wr.AFileBox,...i}),[i]),w=C.useRef(null),T=C.useRef(null),[A,_]=vn(e,null),[R,D]=C.useState(!1),M=C.useMemo(()=>a.split(",").map(Q=>Q.trim()).filter(Q=>Q.length>0&&Q.startsWith(".")),[a]),F=C.useCallback(Q=>{if(M.length===0)return!1;const se=Q.name.split(".").pop();return se?!M.includes(`.${se}`):!0},[M]),B=C.useCallback(Q=>{if(_)if(F(Q)){c==null||c();return}else _(Q);else return},[_,F,c]),z=C.useCallback(Q=>{Q.target.files&&Q.target.files.length>0&&B(Q.target.files[0])},[B]),j=C.useCallback(Q=>{Q.preventDefault(),D(!1),!(f||p)&&Q.dataTransfer.files&&Q.dataTransfer.files.length>0&&B(Q.dataTransfer.files[0])},[B,f,p]),G=C.useCallback(Q=>{Q.preventDefault(),!(f||p)&&D(!0)},[f,p]),fe=C.useCallback(Q=>{Q.target===w.current&&Q.relatedTarget.contains(w.current.parentElement)&&(Q.preventDefault(),D(!1))},[]),P=C.useCallback(Q=>Q.preventDefault(),[]),U=C.useCallback(()=>{var Q;(Q=T.current)==null||Q.click()},[]),V=C.useMemo(()=>R?S.jsx(o,{resources:b}):A?S.jsx(t,{file:A,useFile:e}):S.jsx(n,{fileSelectButtonClassName:u,resources:b,onClick:U}),[t,n,o,b,R,A,e,u,U]);return S.jsxs(Yr,{...g,abaseRef:w,className:Ye.clsx(Iv.AFileBox,m),isDisabled:f,isLoading:p,onDragEnter:G,onDragLeave:fe,onDragOver:P,onDrop:j,children:[S.jsx("input",{ref:T,accept:a,style:{display:"none"},type:"file",value:"",onChange:z}),V]})},yk=r=>{const{file:e,useFile:t}=r,[,n]=vn(t,null);return S.jsxs(kn,{className:Iv.SelectedFile,style:{backgroundColor:""},children:[S.jsx(en,{icon:"File"}),S.jsx(tl,{children:e.name}),S.jsx(ho,{icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},type:"Raw",onClick:()=>n==null?void 0:n(null)})]})},bk=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return S.jsxs(kn,{className:Ye.clsx("NoSelect"),style:{gap:4},children:[S.jsx(Go,{className:n,onClick:e,children:t["Select File"]}),t["or Drag & Drop"]]})},xk=r=>{const{resources:e}=r;return S.jsxs(fC,{className:Ye.clsx(Iv.Dropping,"NoSelect","Headline2"),children:[S.jsx(en,{icon:"FileDownload"}),e["drop file to select"]]})};async function wk(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 Ck(r,e){var c,u;const t=r.split(","),n=(u=(c=t[0])==null?void 0:c.match(/:(.*?);/))==null?void 0:u[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 mC=r=>r.idx?r.idx.toString():`${r.name}-${r.size}-${r.lastModified||""}`,Fu={toBase64:wk,toFile:Ck,getFileKey:mC},Sk="_AFileUploader_i2nun_1",_k="_LabelContainer_i2nun_16",Ak="_LabelButton_i2nun_25",Ek="_Disabled_i2nun_31",Tk="_Delete_i2nun_34",Rk="_FileSize_i2nun_38",kk="_TotalFileSize_i2nun_45",Ik="_FileBox_i2nun_49",Mk="_FileBoxFullSize_i2nun_68",Lk="_SelectRenderer_i2nun_75",Dk="_ChipsContainer_i2nun_87",Ok="_FileChip_i2nun_100",Nk="_FileChipContent_i2nun_113",Pk="_FileNameContainer_i2nun_124",Bk="_ButtonRenderer_i2nun_130",Fk="_ErrorBorder_i2nun_141",jk="_ErrorColor_i2nun_145",zk="_ErrorCursor_i2nun_149",Hk="_DropIdle_i2nun_159",Tn={AFileUploader:Sk,LabelContainer:_k,LabelButton:Ak,Disabled:Ek,Delete:Tk,FileSize:Rk,TotalFileSize:kk,FileBox:Ik,FileBoxFullSize:Mk,SelectRenderer:Lk,ChipsContainer:Dk,FileChip:Ok,FileChipContent:Nk,FileNameContainer:Pk,ButtonRenderer:Bk,ErrorBorder:Fk,ErrorColor:jk,ErrorCursor:zk,DropIdle:Hk},$k=({file:r,baseClass:e,errorClass:t,errorCursorClass:n,resources:o,onDownload:i})=>{const[a,c]=C.useState(!1);return S.jsx(ho,{className:Ye.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)})},qk=r=>{const{useFiles:e,accept:t,onInvalidFileFormat:n,onDownload:o,onDownloadCsv:i,onDelete:a,type:c,limit:u=1024*1024*1024,maxFileCount:f,useError:p,isLoading:m,resources:g,className:b,onDownloadAll:w,csvFilename:T,...A}=r,[{wrapId:_,wrapProps:R,labelProps:D,...M},F]=Ku(A),B=C.useMemo(()=>({...wr.AFileUploader,...g}),[g]),[z,j]=vn(e,void 0),[G,fe]=vn(p,!1),[P,U]=C.useState({}),[V,Q]=C.useState(!1),se=C.useRef(0),te=C.useRef({}),re=C.useRef(null),ne=C.useRef(null),be=C.useMemo(()=>(z==null?void 0:z.reduce((We,Ve)=>We+Ve.size,0))||0,[z]);C.useEffect(()=>{fe&&fe(be>u)},[be,u,fe]);const ie=C.useCallback(We=>{var st;if(!t||t==="*"||t==="")return!0;const Ve=t.split(",").map(De=>De.trim()),lt=`.${(st=We.name.split(".").pop())==null?void 0:st.toLowerCase()}`;return Ve.includes(lt)?!0:Ve.some(De=>{var at;if(De.startsWith("."))return!1;if(De.endsWith("/*")){const mt=De.split("/")[0];return(at=We.type)==null?void 0:at.startsWith(`${mt}/`)}return We.type===De})},[t]),de=C.useCallback((We,Ve)=>{const lt={...te.current};lt[We]=Ve,te.current=lt,U(lt)},[U]),me=C.useCallback(We=>{const Ve=Fu.getFileKey(We);return P[Ve]||"Normal"},[P]),Ae=C.useCallback(We=>m||me(We)==="Loading",[m,me]),Oe=C.useCallback(We=>me(We)==="Error"||c==="Upload"&&We.size>u,[me,u,c]),oe=C.useMemo(()=>z!=null&&z.length?c==="Download"?z.every(Oe):!1:!0,[z,c,Oe]),ge=C.useCallback(()=>{re.current&&(re.current.value="")},[]),we=C.useMemo(()=>!f||!(z!=null&&z.length)?!1:z.length>=f,[z,f]),Le=C.useCallback(We=>{if(!j)return;const Ve=[];let lt=!1,st=[],De=f?f-((z==null?void 0:z.length)||0):1/0;if(!(De<=0)){if(Array.from(We).forEach((at,mt)=>{if(mt>=De)return;if(!ie(at)){lt=!0,st.push(at.name);return}const ut=at;ut.uniqueId=`file-${Date.now()}-${se.current++}`,Ve.push(ut)}),lt)if(n)n();else{const at=t?t.replace(/,/g,", "):"",mt=at?`${B["Supported file format(s)"]}: ${at}`:"",ut=st.length>3?`${st.slice(0,3).join(", ")} ${B.and} ${st.length-3} ${B["more file(s)"]}`:st.join(", ");alert(`${B["Unsupported file format detected."]}
|
|
162
162
|
|
|
163
163
|
${B["Invalid file(s)"]}: ${ut}${mt?`
|
|
164
164
|
|
|
165
|
-
`+mt:""}`)}Ve.length>0&&j([...z||[],...Ve])}},[j,ie,n,t,B,z,f]),Ce=C.useCallback(()=>{var We;return(We=re.current)==null?void 0:We.click()},[]),Se=C.useCallback(We=>{const Ve=We.target.files;Ve!=null&&Ve.length&&(Le(Ve),ge())},[Le,ge]),Ie=C.useCallback(We=>{if(a==null||a(We),!j||!z)return;const Ve=Fu.getFileKey(We),at=z.filter(lt=>Fu.getFileKey(lt)!==Ve);j(at),ge()},[a,j,z,ge]),et=C.useCallback(()=>{j&&(j([]),ge())},[j,ge]),Je=C.useCallback(We=>{if(!o)return Promise.resolve();const Ve=Fu.getFileKey(We);return te.current[Ve]==="Loading"?Promise.resolve():(de(Ve,"Loading"),new Promise(at=>{o(We,lt=>{de(Ve,lt),at()})}))},[o,de]),Qe=C.useCallback(async()=>{if(z!=null&&z.length){if(U){const We={...te.current};z.forEach(Ve=>{We[Fu.getFileKey(Ve)]="Loading"}),te.current=We,U(We)}if(w){w(z,We=>{if(U){const Ve={...te.current,...We};te.current=Ve,U(Ve)}});return}for(const We of z){if(!o)continue;const Ve=Fu.getFileKey(We);await new Promise(at=>{o(We,lt=>{if(U){const Oe={...te.current};Oe[Ve]=lt,te.current=Oe,U(Oe)}at()})})}}},[z,o,w,U]),Ze=C.useCallback(()=>{!(z!=null&&z.length)||!i||i(z)},[z,i]),Ke=C.useMemo(()=>{const We=Ve=>(Ve.preventDefault(),Ve.stopPropagation(),Ve);return{onDragEnter:Ve=>{We(Ve),!G&&!m&&Q(!0)},onDragOver:Ve=>{We(Ve),!G&&!m&&Ve.dataTransfer&&(Ve.dataTransfer.dropEffect="copy")},onDragLeave:Ve=>{var lt;We(Ve);const at=(lt=ne.current)==null?void 0:lt.contains(Ve.relatedTarget);(!Ve.relatedTarget||!at)&&Q(!1)},onDrop:Ve=>{var at;We(Ve),Q(!1),!G&&!m&&((at=Ve.dataTransfer.files)!=null&&at.length)&&Le(Ve.dataTransfer.files)}}},[G,m,Le]),ht=C.useMemo(()=>{const We=Ye.clsx(Tn.ButtonRenderer,"NoSelect");return{upload:Ve=>S.jsx(ho,{className:We,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>Ie(Ve)}),loading:()=>S.jsx(ho,{className:We,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Ve=>S.jsx($k,{baseClass:We,errorClass:Tn.ErrorColor,errorCursorClass:Tn.ErrorCursor,file:Ve,resources:B,onDownload:Je}),download:Ve=>S.jsx(ho,{className:We,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Je(Ve)}),view:()=>null}},[B,Ie,Je]),Pe=C.useCallback((We,Ve)=>{const at=Ae(We),lt=De(We),Oe=()=>c==="Upload"?ht.upload(We):c==="View"?ht.view():at?ht.loading():lt?ht.error(We):ht.download(We);return S.jsx(Av,{ButtonRenderer:Oe,className:Ye.clsx(Tn.FileChip,lt&&Tn.ErrorBorder),label:S.jsx("div",{className:Tn.FileChipContent,children:S.jsxs(kn,{className:Tn.FileNameContainer,children:[S.jsx(tl,{children:We.name,className:Ye.clsx(lt&&Tn.ErrorColor)}),S.jsx("span",{children:qu(We.size),className:Tn.FileSize})]})})},Ve)},[Ae,De,c,ht]),Ne=C.useCallback(()=>S.jsx("div",{className:Ye.clsx(Tn.FileBox,G&&Tn.ErrorBorder,G&&Tn.ErrorColor,G&&Tn.ErrorCursor,we&&Tn.Disabled,V&&!(z!=null&&z.length)&&Tn.FileBoxFullSize),...Ke,ref:ne,children:V?S.jsxs(kn,{className:Ye.clsx("NoSelect"),style:{gap:4,display:z!=null&&z.length?"flex":"none"},children:[S.jsx(en,{icon:"FileDownload"}),S.jsx("span",{children:B["Drop file to select"]})]}):S.jsxs(Go,{className:Ye.clsx(Tn.SelectRenderer,"NoSelect"),isDisabled:G||m||we,type:"Raw",onClick:Ce,children:[B["Insert File"],f&&` ${(z==null?void 0:z.length)||0} / ${f}`]})}),[G,we,V,z==null?void 0:z.length,Ke,B,m,Ce,f]),Xe=C.useMemo(()=>{const We=c==="Upload",Ve=c==="View",at=We?B["Delete All"]:B["Download All"],lt=We?et:Qe,Oe=(z==null?void 0:z.some(st=>Ae(st)))||!1;return S.jsxs(kn,{className:Tn.LabelContainer,children:[M.label,c==="Upload"&&S.jsxs(tl,{className:Ye.clsx(Tn.TotalFileSize,"NoSelect"),children:["(",S.jsx("span",{className:Ye.clsx(G&&Tn.ErrorColor),children:qu(be)})," / ",qu(u),")"]}),!Ve&&S.jsx("span",{children:at,className:Ye.clsx(Tn.LabelButton,"Label1",(oe||Oe)&&Tn.Disabled,We&&Tn.Delete),onClick:!oe&&!Oe?lt:void 0}),i&&S.jsx("span",{children:B["Download List"]||"Download List",className:Ye.clsx(Tn.LabelButton,"Label1",!(z!=null&&z.length)&&Tn.Disabled),style:{marginLeft:"auto"},onClick:z!=null&&z.length?Ze:void 0})]})},[c,B,et,Qe,z,M.label,G,be,u,oe,i,Ze,Ae]);return c!=="Upload"&&!(z!=null&&z.length)?null:S.jsxs(Vc,{wrapId:_,wrapProps:R,labelProps:D,...M,label:Xe,children:[S.jsx("input",{ref:re,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Se}),S.jsxs(Yr,{...F,className:Ye.clsx(Tn.AFileUploader,b),children:[S.jsxs(kn,{className:Tn.ChipsContainer,children:[c==="Upload"&&Ne(),z==null?void 0:z.map(Pe)]}),c==="Upload"&&S.jsx(Yr,{className:Ye.clsx(Tn.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ke,abaseRef:ne,onClick:We=>We.preventDefault(),children:!(z!=null&&z.length)&&S.jsxs(kn,{style:{gap:4},children:[S.jsx(en,{icon:"FileDownload",size:"2xl"}),S.jsx("span",{children:B["Drop file to select"]})]})})]})]})},Uk="_AFloatMenu_xco8u_1",Wk="_Content_xco8u_10",R0={AFloatMenu:Uk,Content:Wk},vC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:u=bf.ES,width:f=137}=r,p=C.useMemo(()=>({content:Vk,...t}),[t]),m=C.useMemo(()=>{const P={};return lr.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,b]=C.useState(null),w=C.useCallback(P=>{Ew(P,D,u,o),b(P)},[u,o]),[T,A]=C.useState(!1),[_,R]=C.useState(!1),D=C.useRef(null),M=C.useCallback(P=>{R(!0),setTimeout(()=>A(!0),0),setTimeout(()=>w(P),0)},[w]),F=C.useCallback(()=>{A(!1),R(!0),i==null||i()},[i]),B=C.useCallback(()=>R(!1),[]),z=C.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)),F())},[F,c]);C.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",z),0),()=>document.removeEventListener("mousedown",z)},[T,z]);const j=C.useCallback(()=>{g&&w(g)},[w,g]);C.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",j),U=U.parentElement}},[g,T,j]),C.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=C.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);C.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),C.useEffect(()=>{n&&(n.current={open:M,close:F})},[n,M,F]);const fe=C.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!_?null:Ls.createPortal(S.jsx("div",{ref:D,className:R0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:f},onTransitionEnd:B,children:lr.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:te=Io.E,...re}=V;return se?null:(Q=Er.getContent(V.content,{defKey:P,def:V}),C.createElement(Yr,{...re,key:U,className:Ye.clsx(R0.Content,"Label2","IsClickable",re.className),tooltipDirection:te,onClick:ne=>{var be;fe==null||fe(P),(be=re.onClick)==null||be.call(re,ne)}},Q))})}),document.body)},Vk=r=>r.defKey;function Gk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const Hp={parseInt:Gk},Yk=`${Number.MAX_SAFE_INTEGER}`.length-1,Zk=r=>{const{unit:e,unitMargin:t=4,unitOptions:n,useSelectUnit:o,type:i="Secondary",min:a,max:c,unitSelectWidth:u,unitOptionsRenderer:f,useValue:p,onEnterPress:m,canAsterisk:g=!1,onFocus:b,...w}=r,T=C.useMemo(()=>c!==void 0&&a!==void 0?Math.max(`${c}`.length+1,`${a}`.length+1):Yk,[a,c]),[A,_]=vn(p,""),[R,D]=C.useState(!1),[M,F]=C.useState(""),B=C.useRef(null),z=C.useMemo(()=>{if(!A||!_)return String(A);const te=String(A),re=Hp.parseInt(te);if(re!==void 0){if(a!==void 0&&re<a){const ne=`${a}`;return _(ne),ne}if(c!==void 0&&re>c){const ne=`${c}`;return _(ne),ne}}return te},[A,a,c,_]),j=C.useCallback(te=>{if(R){if(c!==void 0&&te!==""){const re=Hp.parseInt(te);if(re!==void 0&&re>c){F(`${c}`);return}}F(te)}else _&&_(te)},[R,_,c]),G=C.useCallback(()=>{D(!0),F(z)},[z]),fe=C.useCallback(te=>{if(D(!1),!_)return;const re=te.target.value;let ne=re;if(re===""||re==="-")ne=a!==void 0?`${a}`:re;else{const be=Hp.parseInt(re);be===void 0?ne=a!==void 0?`${a}`:re:a!==void 0&&be<a?ne=`${a}`:c!==void 0&&be>c&&(ne=`${c}`)}ne!==re&&(te.target.value=ne),_(ne)},[_,a,c]),P=C.useCallback(te=>{var re;(re=B.current)==null||re.blur(),m==null||m(te)},[m]),U=C.useMemo(()=>a===void 0&&c===void 0?e??"number":`${a??""}~${c??""}`,[a,c,e]),[V,Q]=vn(o,(n==null?void 0:n[0])??""),se=C.useMemo(()=>n?S.jsx(zl,{className:Jo.ANumInputUnitSelect,OptionRenderer:f,options:n,style:{maxWidth:u||"fit-content"},type:"Raw",useSelect:[V,Q],arrowProps:{style:{color:"var(--label-normal)",marginLeft:4,marginRight:t}}}):e&&S.jsx("span",{style:{marginRight:t},children:e}),[n,f,u,V,Q,t,e]);return S.jsx(Gc,{...w,autoComplete:"off",className:Ye.clsx(Jo.ANumInput,r.className),inputRef:B,maxLength:T,placeholder:U,RightAddon:se,type:i,useValue:[R?M:z,j],onBlur:fe,onEnterPress:P,onFocus:G})},Kk="_AListView_1nv5l_1",Xk="_Row_1nv5l_10",Jk="_Label_1nv5l_19",Qk="_Content_1nv5l_29",up={AListView:Kk,Row:Xk,Label:Jk,Content:Qk},eI=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,onlyMiddleBorder:c,rowGap:u,middleBorder:f,rowBottomBorder:p,outerBorder:m,style:g,labelClassName:b,contentClassName:w,labelStyle:T,contentStyle:A,..._}=r,R=a||c,D=R?"":p||"var(--AListView_border-thin)",M=R?"":m||"var(--AListView_border-thick)",F=a?"":f||"var(--AListView_border-thick)",B=C.useMemo(()=>({content:rI,label:tI,...t}),[t]),z=C.useMemo(()=>{const j={};return lr.keys(e).forEach(G=>{const fe=e[G],P={...B,...fe};j[G]=P}),j},[B,e]);return S.jsx(Yr,{..._,className:Ye.clsx(up.AListView,_.className),style:{...g,borderTop:D},children:lr.map(z,([j],G)=>{const fe={...B,...z[j]},P=Er.getContent(fe.label,{defKey:j,item:n,def:fe}),U=Er.getContent(fe.content,{defKey:j,item:n||{[j]:""},def:fe}),V=Er.getContent(fe.bold||"label",{defKey:j,item:n,def:fe});return S.jsxs("div",{className:up.Row,style:{height:fe.fixedHeight?o:void 0,minHeight:fe.fixedHeight?o:void 0,maxHeight:fe.fixedHeight?o:void 0,borderBottom:D,marginTop:G===0?0:typeof u=="number"?`${u}px`:u},children:[S.jsx("div",{className:Ye.clsx(up.Label,"NoSelect",V!=="content"&&"Bold",b),style:{width:i,minWidth:i,maxWidth:i,borderLeft:M,paddingLeft:R?0:10,...T},children:S.jsx(tl,{children:P})}),S.jsx("div",{className:Ye.clsx(up.Content,V!=="label"&&"Bold",w),style:{borderLeft:F,borderRight:M,...A},children:S.jsx(tl,{style:{width:"100%",padding:R?0:10},children:U})})]},j)})})},tI=r=>r.defKey,rI=r=>{const{defKey:e,item:t}=r;if(t)if(lr.hasKey(t,e)){const n=t[e];return lr.isReactNode(n)?n:null}else return null;else return null},nI="_ALoadingBorder_kwc1g_1",oI="_ProgressBar_kwc1g_9",iI="_IsLoading_kwc1g_15",sI="_Cover_kwc1g_19",Zf={ALoadingBorder:nI,ProgressBar:oI,IsLoading:iI,Cover:sI},Mv=r=>{const{isLoading:e}=r,[t,n]=C.useState(!1),o=C.useRef(null);return C.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),S.jsxs("div",{className:Zf.ALoadingBorder,children:[S.jsx("div",{className:Ye.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),S.jsx("div",{className:Ye.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},aI="_Container_ez8dc_1",lI="_Option_ez8dc_7",cI="_RadioButton_ez8dc_14",uI="_InnerCircle_ez8dc_24",dI="_isChecked_ez8dc_29",Yd={Container:aI,Option:lI,RadioButton:cI,InnerCircle:uI,isChecked:dI},fI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=yC}=r,[c,u]=vn(t,e[0]);return S.jsx("div",{className:Yd.Container,children:e.map((f,p)=>{const m=n==null?void 0:n(f),g=()=>m?null:u==null?void 0:u(f);return S.jsxs(kn,{className:Ye.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[S.jsx(hI,{innerRadius:i,isChecked:c===f,radius:o},p),S.jsx(a,{option:f})]},p)})})},yC=({option:r})=>r,hI=({isChecked:r,radius:e,innerRadius:t})=>S.jsx(Yr,{className:Ye.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:S.jsx(Yr,{className:Ye.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),pI="_AMultiSelect_19uuu_1",gI="_Arrow_19uuu_15",mI="_Primary_19uuu_24",vI="_UnAvailable_19uuu_35",yI="_IsOpen_19uuu_35",bI="_Secondary_19uuu_42",xI="_Placeholder_19uuu_58",wI="_ValuesContainer_19uuu_63",CI="_Values_19uuu_63",SI="_Options_19uuu_82",_I="_Option_19uuu_82",AI="_Selected_19uuu_124",EI="_CheckBox_19uuu_131",Mi={AMultiSelect:pI,Arrow:gI,Primary:mI,UnAvailable:vI,IsOpen:yI,Secondary:bI,Placeholder:xI,ValuesContainer:wI,Values:CI,Options:SI,Option:_I,Selected:AI,CheckBox:EI},TI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=kI,OptionRenderer:c=II,minShowRows:u=2,maxShowRows:f=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,b=C.useRef(null),w=C.useMemo(()=>g.abaseRef??b,[g.abaseRef]),T=C.useRef(null),[A,_]=vn(t,[]),[R,D]=C.useState(void 0),M=C.useRef(e),F=C.useRef(null),[B,z]=C.useState(!1),[j,G]=C.useState(!1),fe=C.useCallback(()=>G(!1),[]),P=C.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>z(!0),0),setTimeout(()=>hm(T,w,e,u,f),0))},[w,g.isDisabled,g.isLoading,e,u,f]),U=C.useCallback(()=>{z(!1),G(!0),i==null||i()},[i]),V=C.useCallback(ie=>{var de;B?U():P(),setTimeout(()=>hm(T,w,e,u,f),0),(de=g.onClick)==null||de.call(g,ie)},[w,g,e,B,U,P,u,f]),Q=C.useCallback(()=>{hm(T,w,e,u,f)},[w,e,u,f]);C.useEffect(()=>{if(!B||!w.current)return;const ie=w.current;let de=ie.parentElement;for(;de;)de.addEventListener("scroll",Q),de=de.parentElement;return()=>{let me=ie.parentElement;for(;me;)me.removeEventListener("scroll",Q),me=me.parentElement}},[w,B,Q]),C.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const se=C.useCallback(ie=>{ie[0].intersectionRatio===0&&U()},[U]);C.useEffect(()=>{if(!B)return;const ie=new IntersectionObserver(se,{threshold:0});return w.current&&ie.observe(w.current),()=>ie.disconnect()},[w,B,se]);const te=C.useCallback(ie=>{const de=ie.target,me=w.current,Ae=T.current;!me||!de||!Ae||!me.contains(de)&&!Ae.contains(de)&&U()},[w,U]),re=C.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);C.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",te),0),()=>document.removeEventListener("mousedown",te)},[B,te]);const ne=C.useCallback((ie,de)=>{ie.stopPropagation(),ie.preventDefault();let me=[...A];me.includes(de)?me=me.filter(Ae=>Ae!==de):me.push(de),_==null||_(me)},[A,_]),be=C.useCallback(()=>{if(!m||!w.current)return;const ie=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:A,placeholder:o,optionRenderer:de=>c({option:de}),type:n,isMulti:!0});D(ie)},[m,w,e,A,o,c,n]);return C.useEffect(()=>m?((e!==M.current||R===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{be(),F.current=null,M.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,be,R]),C.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ye.clsx(g.className,Mi.AMultiSelect,"NoSelect",B&&Mi.IsOpen,re&&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:[S.jsx("div",{className:Mi.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(Mi.Values,A.length<1&&Mi.Placeholder),children:S.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:A})})}),S.jsx("div",{...p,className:Ye.clsx(Mi.Arrow,p==null?void 0:p.className),children:S.jsx(en,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(Mi.Options,Mi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:fe,children:e.map((ie,de)=>{var Ae;const me=A.includes(ie);return S.jsxs("div",{className:Ye.clsx(Mi.Option,me&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Ae=w.current)==null?void 0:Ae.getBoundingClientRect().height},onClick:De=>ne(De,ie),children:[S.jsx(af,{className:Mi.CheckBox,useCheck:[+me,void 0]}),S.jsx(c,{option:ie})]},de)})}),document.body)]})};function hm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=RI(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 RI(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 kI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?S.jsx(e,{option:t[0]}):`${t.length} selected`},II=r=>{const{option:e}=r;return lr.isReactNode(e)?e:null},MI="_Container_10ion_1",LI="_Steps_10ion_9",DI="_Step_10ion_9",OI="_OutCircle_10ion_26",NI="_IsOver_10ion_37",PI="_InCircle_10ion_41",BI="_Line_10ion_54",FI="_Left_10ion_66",jI="_Right_10ion_69",zI="_ContentContainer_10ion_73",HI="_Content_10ion_73",hi={Container:MI,Steps:LI,Step:DI,OutCircle:OI,IsOver:NI,InCircle:PI,Line:BI,Left:FI,Right:jI,ContentContainer:zI,Content:HI},$I=r=>{const{useSelect:e,steps:t,StepRenderer:n=k0,ContentRenderer:o=k0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=C.useRef(null),[a,c]=vn(e,t[0]),u=C.useCallback(p=>c==null?void 0:c(p),[c]),f=C.useMemo(()=>t.indexOf(a),[a,t]);return C.useEffect(()=>{f<0&&u(t[0])},[f,t,u]),S.jsxs("div",{className:hi.Container,children:[S.jsx("div",{className:hi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),b=f>=m,w=f>m;return S.jsxs("div",{className:hi.Step,children:[m!==0&&S.jsx("div",{className:Ye.clsx(hi.Line,hi.Left,b&&hi.IsOver)}),m!==t.length-1&&S.jsx("div",{className:Ye.clsx(hi.Line,hi.Right,w&&hi.IsOver)}),S.jsx(Go,{className:Ye.clsx(hi.OutCircle,b&&hi.IsOver),type:"Raw",onClick:()=>u(p),children:S.jsx("div",{className:Ye.clsx(hi.InCircle,b&&hi.IsOver)})}),S.jsx(n,{step:p,stepIdx:g})]},m)})}),S.jsx("div",{ref:i,className:hi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return S.jsx("div",{className:hi.Content,style:m===0?{marginLeft:`${f*-100}%`}:{},children:S.jsx(o,{step:p,stepIdx:g})},m)})})]})},k0=r=>{const{step:e}=r;return typeof e=="object"?lr.stringify(e):e},qI="_ATab_9eg6z_1",UI="_Addon_9eg6z_9",WI="_Option_9eg6z_14",VI="_Underline_9eg6z_26",GI="_IsSelected_9eg6z_26",YI="_IndicatorTrack_9eg6z_37",ZI="_Indicator_9eg6z_37",KI="_Primary_9eg6z_54",XI="_Secondary_9eg6z_57",JI="_IsDisabled_9eg6z_63",QI="_Tertiary_9eg6z_77",e8="_Quaternary_9eg6z_101",Va={ATab:qI,Addon:UI,Option:WI,Underline:VI,IsSelected:GI,IndicatorTrack:YI,Indicator:ZI,Primary:KI,Secondary:XI,IsDisabled:JI,Tertiary:QI,Quaternary:e8},t8=["Primary","Secondary","Tertiary","Quaternary"],bC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:u=r8,RightAddon:f,LeftAddon:p,color:m,selectedColor:g,underline:b,indicatorProps:w,indicatorTrackProps:T,height:A=40}=r;if(e.length===0)throw new Error("options should have at least one element");const _=C.useMemo(()=>e.findIndex(we=>!(n!=null&&n(we))),[e,n]),R=o==="Tertiary",D=o==="Secondary",M=R?A*.1:0,F=D?8:0,B=C.useMemo(()=>M+F,[M,F]),z=C.useMemo(()=>(F-M)/e.length,[e.length,M,F]),[j,G]=vn(t,e[_]),fe=C.useRef([]),P=C.useCallback(we=>G==null?void 0:G(we),[G]),U=C.useMemo(()=>typeof c=="number"?c+"px":c,[c]),V=C.useMemo(()=>e.indexOf(j),[e,j]),Q=C.useMemo(()=>`calc(${100/e.length}% + ${z}px)`,[e.length,z]),se=C.useMemo(()=>U||`calc(${Q} - ${B}px)`,[Q,B,U]),[te,re]=C.useState(0),[ne,be]=C.useState(0),[ie,de]=C.useState(se),me=C.useRef(null),Ae=C.useRef(null),De=Aw(Ae,me),oe=C.useMemo(()=>{let we;switch(U){case void 0:we=`calc(${Q} * ${V})`;break;case"fit-content":we=`calc(${te}px)`;break;default:we=`calc((${U} + ${B}px) * ${V})`;break}return we},[U,Q,V,te,B]),ge=C.useMemo(()=>{switch(U){case void 0:return;case"fit-content":return`calc(${ne}px)`;default:return`calc((${U} + ${B}px - ${z}px) * ${e.length})`}},[U,z,B,e,ne]);return C.useEffect(()=>{var Le,Ce;if(e.includes(j)||G==null||G(e[_]),U!=="fit-content"){de(se);return}let we=0;fe.current.forEach((Se,Ie)=>{Ie<V&&Se.current&&(we+=Se.current.offsetWidth+B)}),re(we),de(`calc(${((Ce=(Le=fe.current[V])==null?void 0:Le.current)==null?void 0:Ce.offsetWidth)||0}px)`),be(fe.current.reduce((Se,Ie)=>{var et;return Se+((((et=Ie.current)==null?void 0:et.offsetWidth)||0)+B-z)},0))},[U,fe,e,j,G,_,z,B,V,se]),S.jsxs("div",{ref:me,...i,className:Ye.clsx(Va.ATab,"Headline2",Va[o],i==null?void 0:i.className),style:{minHeight:A,height:A,maxHeight:A},children:[p&&S.jsx("div",{ref:Ae,className:Va.Addon,children:p}),S.jsx("div",{...w,className:Ye.clsx(Va.Indicator,w==null?void 0:w.className),style:{minWidth:ie,left:oe,marginLeft:M,transform:`translate(${De??0}px, ${R?"-50%":"0"})`,height:R?A-M*2:void 0,...w==null?void 0:w.style}}),S.jsx("div",{...T,className:Ye.clsx(Va.IndicatorTrack,T==null?void 0:T.className),style:{width:ge,marginLeft:R?De:0,height:A,...T==null?void 0:T.style}}),e.map((we,Le)=>{const Ce=n==null?void 0:n(we);return fe.current[Le]||(fe.current[Le]=C.createRef()),S.jsx(Yr,{abaseRef:fe.current[Le],...a,isDisabled:Ce,className:Ye.clsx(Va.Option,Ce&&Va.IsDiabled,we===j&&Va.IsSelected,"IsClickable",b&&Va.Underline,a==null?void 0:a.className),style:{minWidth:se,maxWidth:se,marginLeft:M,marginRight:F,"--color":we===j&&g||m,height:A,...a==null?void 0:a.style},onClick:Se=>{!Ce&&P(we),a&&a.onClick&&a.onClick(Se)},children:S.jsx(u,{option:we})},Le)}),S.jsx(zn,{w:M}),f&&S.jsxs(S.Fragment,{children:[S.jsx(Xu,{}),S.jsx("div",{className:Va.Addon,children:f})]})]})},r8=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=lr.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 xC(...r){const e=C.useRef(!1);C.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const wC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return lr.keys(e).some(p=>{const m=e[p],g=Er.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const b=Er.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof b)&&b!==void 0&&b!==null?b.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return u.toString().toLowerCase().includes(o.toLowerCase());const f=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof f)&&f!==void 0&&f!==null?f.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return o.toString().toLowerCase()===u.toString().toLowerCase();const f=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof f)&&f!==void 0&&f!==null?o.toString().toLowerCase()===f.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=rr.toDate(u.toString());return p&&rr.eq(p,o)}const f=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof f)&&f!==void 0&&f!==null){const p=rr.toDate(f.toString());return p&&rr.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=rr.toDate(u.toString());return p&&rr.be(o.sDate,p,o.eDate)}const f=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof f)&&f!==void 0&&f!==null){const p=rr.toDate(f.toString());return p&&rr.be(o.sDate,p,o.eDate)}return!1}},n8=(r,e,t)=>{let n=r;return lr.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var u;return(u=a.predicate??wC[a.type])==null?void 0:u(c,e,i,a)}))}),n},o8=(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 u=Er.getContent(o.content,{defKey:n,def:o,item:a}),f=Er.getContent(o.content,{defKey:n,def:o,item:c});return typeof u=="string"&&typeof f=="string"?u<f?-1:u>f?1:0:typeof u=="number"&&typeof f=="number"?u-f:typeof u=="string"&&typeof f=="number"?-1:typeof u=="number"&&typeof f=="string"||u===void 0&&f!==void 0?1:u!==void 0&&f===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 u=i(a,c);return t.isAsc?u:-u})},i8=(r,e,t)=>r.slice((e-1)*t,e*t),CC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},s8=(r,e,t,n)=>{const o=CC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,u=o.slice(a-1,c);return{pages:o,rangedPages:u}},a8=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const b=t[g],w=Er.getContent(b.hContent,{defKey:g,def:b});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Er.getContent(b.name,{defKey:g,def:b});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 b=[];o.forEach(T=>{const A=t[T],_=Er.getContent(A.content,{defKey:T,def:A,item:g});if(_!==void 0){if(typeof _=="string"){b.push(_);return}else if(typeof _=="number"){b.push(_.toString());return}}const R=g[T];typeof R=="string"?b.push(R):typeof R=="number"?b.push(R.toString()):b.push("")});const w=b.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,u="\uFEFF"+n.join(`
|
|
166
|
-
`),f=new Blob([u],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(f),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},l8=r=>{const e=lr.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},c8=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},u8=r=>{const e=lr.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}},Bl={applyFilteration:n8,applySortation:o8,applyPagination:i8,getPages:CC,getRangedPages:s8,downloadCsv:a8,getSingleFilterValue:l8,getMultiFilterValues:c8,getSelectFilterValue:u8},d8="_ATable_12zow_1",f8={ATable:d8};function SC(r,e,t,n){C.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const h8="_BodyHeader_ys4y0_1",p8="_TRow_ys4y0_7",g8="_OverflowSpace_ys4y0_11",m8="_BodyBody_ys4y0_16",v8="_IsSelected_ys4y0_35",y8="_IsSelectable_ys4y0_39",b8="_IsRowMarked_ys4y0_47",x8="_TH_ys4y0_52",w8="_TD_ys4y0_57",C8="_IsMarked_ys4y0_57",S8="_Resizer_ys4y0_76",_8="_IsMoving_ys4y0_88",A8="_IsResizable_ys4y0_91",E8="_ResizerCenter_ys4y0_94",T8="_ResizerOut_ys4y0_100",R8="_ResizerIn_ys4y0_104",k8="_IsClicked_ys4y0_139",I8="_NoItems_ys4y0_146",M8="_Content_ys4y0_152",On={BodyHeader:h8,TRow:p8,OverflowSpace:g8,BodyBody:m8,IsSelected:v8,IsSelectable:y8,IsRowMarked:b8,TH:x8,TD:w8,IsMarked:C8,Resizer:S8,IsMoving:_8,IsResizable:A8,ResizerCenter:E8,ResizerOut:T8,ResizerIn:R8,IsClicked:k8,NoItems:I8,Content:M8},Fc=25,pm=50,L8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:u,useSortation:f,pagination:p,pagedItems:m,noMarking:g,noDefHeader:b,isLoading:w,onScrollToSelectedReady:T,showRows:A,RowRenderer:_=N8,isRowRendered:R,rowHeight:D,resources:M}=r,[F,B]=C.useMemo(()=>o??[],[o]),z=C.useCallback(Pe=>{i||!B||!F||c!=null&&c(Pe)||(a?F.some(Ne=>t(Ne,Pe))?B(F.filter(Ne=>!t(Ne,Pe))):B([...F,Pe]):B([Pe]))},[F,c,B,t,i,a]);C.useEffect(()=>{a||!F||!B||F.length>1&&B([F[F.length-1]])},[F,B,a]),C.useEffect(()=>{if(!F||!B)return;F.filter(Ne=>c==null?void 0:c(Ne)).length>0&&B(F.filter(Ne=>!(c!=null&&c(Ne))))},[F,B,c]);const[j,G]=f,fe=C.useCallback((Pe,Ne)=>{G&&((j==null?void 0:j.defKey)===Pe?j.isAsc===!0?G({defKey:Pe,isAsc:!1,sortF:Ne}):j.isAsc===!1?G(void 0):G({defKey:Pe,isAsc:!0,sortF:Ne}):G({defKey:Pe,isAsc:!0,sortF:Ne}))},[j,G]),[P,U]=C.useState({elem:null,row:null}),V=C.useRef(null),Q=C.useRef(null),se=C.useCallback(()=>U({elem:V.current,row:Q.current}),[]);C.useEffect(()=>se(),[m.length,se]),SC(window,"resize",se);const[te,re]=C.useState(D);C.useEffect(()=>{const{row:Pe}=P;Pe!=null&&re(Pe.clientHeight)},[P,te]);const ne=C.useMemo(()=>{const{elem:Pe}=P;return Pe?Math.floor(Pe.clientHeight/te):0},[P,te]),be=C.useMemo(()=>A||(m.length<=ne?ne:m.length),[ne,A,m]),ie=C.useMemo(()=>{if(A!==void 0)return A*te},[A,te]),de=C.useMemo(()=>ie,[ie]),me=C.useMemo(()=>{const{elem:Pe}=P;return Pe?Pe.getBoundingClientRect().height/te<m.length:!1},[P,te,m.length]),[Ae,De]=C.useState(),oe=C.useMemo(()=>{const{elem:Pe}=P;return!Ae||!Pe?"100%":Pe.clientHeight+(R?0:50)},[Ae,R,P]),ge=C.useRef(null),[we,Le]=C.useState({}),Ce=C.useRef({x:0,y:0}),Se=C.useRef({}),Ie=C.useMemo(()=>lr.keys(we),[we]),et=C.useCallback((Pe,Ne)=>{const Xe=ge.current;if(!Xe)return;const We=[];Xe.childNodes.forEach(Oe=>{Oe.classList.contains(On.TH)&&We.push(Oe)});const Ve={};lr.keys(e).forEach((Oe,st)=>{const mt=We[st];if(!mt)return;const ut=mt.getBoundingClientRect().width;Ve[Oe]=ut}),Se.current=Ve,De(Ne),Ce.current={x:Pe.clientX,y:Pe.clientY};const at=Oe=>{if(!ge.current)return;const mt=Oe.clientX-Ce.current.x,ut=O8(e,Ne,Se.current,mt);Le(ut)};document.addEventListener("mousemove",at);const lt=()=>{De(void 0),document.removeEventListener("mousemove",at),document.removeEventListener("mouseup",lt)};document.addEventListener("mouseup",lt)},[e]),Je=C.useCallback(()=>{De(void 0),Le({})},[]),Qe=C.useMemo(()=>{if(Ie.length===0){const Xe={},We=lr.keys(e);for(let Ve=0;Ve<We.length;Ve++){const at=We[Ve],lt=e[at],Oe=Er.getContent(lt.colSpan,{defKey:at,def:lt}),st=lt.width??80,mt=lt.minWidth??Fc,ut=lt.maxWidth,Lt={width:st,minWidth:mt,maxWidth:ut,flexGrow:Oe??1};if(Xe[at]=Lt,Oe!==void 0){for(let Bt=1;Bt<Math.min(Oe,We.length-Ve);Bt++){const Pt=e[We[Ve+Bt]],Xt=Pt.width??80,ar=Pt.minWidth??Fc,Kt=Pt.maxWidth;Lt.width+=Xt,Lt.minWidth+=ar,Lt.maxWidth!==void 0&&(Kt!==void 0?Lt.maxWidth+=Kt:Lt.maxWidth=void 0)}Ve+=Oe-1}}return Xe}const Pe={},Ne=lr.keys(e);for(let Xe=0;Xe<Ne.length;Xe++){let We=Ne[Xe];const Ve=e[We];let at=we[We];const lt=Er.getContent(Ve.colSpan,{defKey:We,def:Ve}),Oe=Ve.minWidth??Fc,st=Ve.maxWidth,mt={width:at,minWidth:Oe,maxWidth:st,flexGrow:lt??1};if(Pe[We]=mt,lt!==void 0){for(let ut=1;ut<Math.min(lt,Ne.length-Xe);ut++){const Lt=e[Ne[Xe+ut]],Bt=we[Ne[Xe+ut]],Pt=Lt.minWidth??Fc,Xt=Lt.maxWidth;mt.width+=Bt,mt.minWidth+=Pt,mt.maxWidth!==void 0&&(Xt!==void 0?mt.maxWidth+=Xt:mt.maxWidth=void 0)}Xe+=lt-1}}return Pe},[e,Ie,we]),Ze=C.useRef(null),Ke=C.useMemo(()=>Bl.getSingleFilterValue(u),[u]);C.useEffect(()=>{V.current&&V.current.scrollTo({top:0})},[p.page]);const ht=C.useCallback((Pe="center")=>{F&&F.length>0&&requestAnimationFrame(()=>{var Ne;return(Ne=Q.current)==null?void 0:Ne.scrollIntoView({behavior:"auto",block:Pe})})},[F]);return C.useEffect(()=>{T==null||T(ht)},[T,ht]),S.jsxs(S.Fragment,{children:[S.jsx(Mv,{isLoading:w}),S.jsx("div",{ref:Ze,className:Ye.clsx(On.BodyHeader,Ae!==void 0&&On.IsClicked),style:{display:b||R?"none":"flex"},children:S.jsx("div",{ref:ge,className:On.TRow,style:{minHeight:pm,maxHeight:pm},children:lr.map(e,([Pe],Ne)=>{const Xe=e[Pe],We=Er.getContent(Xe.hContent,{defKey:Pe,def:Xe}),Ve=Xe.name,at=Ne===lr.keys(e).length-1,lt=Xe.width??80,Oe=Xe.minWidth??Fc,st=Xe.maxWidth,mt={width:lt,minWidth:Oe,maxWidth:st,justifyContent:Er.getContent(Xe.hAlign,{defKey:Pe,def:Xe})??"flex-start",...Er.getContent(Xe.hStyle,{defKey:Pe,def:Xe})};Ie.includes(Pe)&&(mt.width=we[Pe]);const ut=Xe.isSortable,Lt=(j==null?void 0:j.defKey)===Pe,Bt=j==null?void 0:j.isAsc;return S.jsxs(C.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(On.TH,"Label1",ut?"IsClickable":"NoSelect"),style:mt,onClick:()=>ut&&fe(Pe,Xe.sortF),children:[S.jsx(tl,{children:We??Ve,className:On.Content}),ut&&S.jsx(en,{icon:Lt?Bt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!at&&S.jsxs("div",{className:Ye.sclsx(On,"Resizer","IsResizable","NoSelect",Ae!==void 0&&"IsMoving"),onDoubleClick:Je,onMouseDown:Pt=>et(Pt,Pe),children:[S.jsx("div",{className:On.ResizerOut}),S.jsx("div",{className:On.ResizerIn}),S.jsx("div",{className:On.ResizerCenter,style:{height:oe}}),S.jsx("div",{className:On.ResizerIn}),S.jsx("div",{className:On.ResizerOut})]}),at&&S.jsx(zn,{className:On.OverflowSpace,h:pm,style:{color:mt.color,backgroundColor:mt.backgroundColor,transition:mt.transition},w:"var(--Scrollbar-width)"})]},Pe)})})}),S.jsxs("div",{ref:V,className:Ye.clsx(On.BodyBody,Ae!==void 0&&On.IsClicked),style:{overflowY:me?"scroll":"hidden",minHeight:ie,maxHeight:de},children:[m.map((Pe,Ne)=>{const Xe=Er.getContent(n,{item:Pe}),We=B&&!i,Ve=F==null?void 0:F.some(st=>t(st,Pe)),at=F&&(c==null?void 0:c(Pe)),lt=typeof at=="string"?at:void 0,Oe={...Pe};return R&&lr.keys(e).forEach(st=>{const mt=e[st],ut=Er.getContent(mt.content,{defKey:st,def:mt,item:Pe});let Lt=!1;if(Ke&&!g){const Bt=Er.getContent(mt.asText,{defKey:st,def:mt,item:Pe});Bt!==void 0?Lt=Bt.toString().toLowerCase().includes(Ke.toLowerCase()):["string","number"].includes(typeof ut)&&ut!==void 0&&ut!==null&&(Lt=ut.toString().toLowerCase().includes(Ke.toLowerCase()))}Oe[st]=S.jsx("span",{className:Ye.clsx(Lt&&On.IsRowMarked),children:Oe[st]})}),S.jsx(Yr,{isDisabled:at,tooltip:lt,...Xe,abaseRef:Ve?Q:void 0,className:Ye.clsx(Xe==null?void 0:Xe.className,We&&On.IsSelectable,Ve&&On.IsSelected),onClick:st=>{var mt;z(Pe),(mt=Xe==null?void 0:Xe.onClick)==null||mt.call(Xe,st)},children:S.jsx(_,{defs:e,isBodyBodyOverflowed:me,item:Pe,markedItem:Oe,noMarking:g,rowHeight:D,singleFilterValue:Ke,spanWidths:Qe})},Ne)}),S.jsx(D8,{isRowRendered:R,itemsLength:m.length,resources:M,rowHeight:te,showRows:be})]})]})},D8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=C.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,u)=>S.jsx("div",{className:Ye.clsx(On.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&u===Math.floor(e/2)&&S.jsx(kn,{className:On.NoItems,children:n["No Items"]})},u))};function O8(r,e,t,n){const o={...t},i=lr.keys(r).findIndex(f=>f===e)+1,a=Object.entries(r);let c=i-1,u=i;if(n<0){for(;n<0&&!(c<0||u>=a.length);){const[f,p]=[a[c][0],a[c][1]],[m,g]=[a[u][0],a[u][1]],b=p.minWidth??Fc,w=g.maxWidth,T=o[f],A=o[m];let _=T-b;w!==void 0&&(_=Math.min(_,w-A));let R=-n;R=Math.min(R,_),T-R<=b&&c--,w!==void 0&&A+R>=w&&u++,o[f]=T-R,o[m]=A+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||u>=a.length);){const[f,p]=[a[c][0],a[c][1]],[m,g]=[a[u][0],a[u][1]],b=g.minWidth??Fc,w=p.maxWidth,T=o[m],A=o[f];let _=T-b;w!==void 0&&(_=Math.min(_,w-A));let R=n;R=Math.min(R,_),T-R<=b&&u++,w!==void 0&&A+R>=w&&c--,o[m]=T-R,o[f]=A+R,n-=R}return o}return o}const N8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return S.jsx("div",{className:Ye.clsx(On.TRow),style:{minHeight:c,maxHeight:c},children:lr.map(e,([u],f)=>{const p=o[u];if(p===void 0)return null;const m=f===lr.keys(e).length-1,g=e[u],b=Er.getContent(g.content,{defKey:u,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Er.getContent(g.align,{defKey:u,def:g,item:t})??"flex-start",...Er.getContent(g.style,{defKey:u,def:g,item:t})};let T=!1;if(i&&!n){const A=Er.getContent(g.asText,{defKey:u,def:g,item:t});A!==void 0?T=A.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof b)&&b!==void 0&&b!==null&&(T=b.toString().toLowerCase().includes(i.toLowerCase()))}return S.jsxs(C.Fragment,{children:[S.jsx("div",{className:Ye.clsx(On.TD,"Label1",T&&On.IsMarked),style:w,children:S.jsx(tl,{children:b,className:On.Content})}),!a&&m&&S.jsx(zn,{className:On.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},u)})})},P8="_ATableFooter_w090q_1",B8="_Button_w090q_10",F8="_IsSelected_w090q_26",j8="_IsDisabled_w090q_31",oa={ATableFooter:P8,Button:B8,IsSelected:F8,IsDisabled:j8},z8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=C.useMemo(()=>e[e.length-1],[e]);return S.jsxs(kn,{className:oa.ATableFooter,children:[S.jsx(en,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),S.jsx(en,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>S.jsx("div",{className:Ye.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),S.jsx(en,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),S.jsx(en,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},H8="_Filter_1b9j0_1",$8="_SelectFilter_1b9j0_11",q8="_MainFilter_1b9j0_15",U8="_IsOpen_1b9j0_26",W8="_SubFilters_1b9j0_30",V8="_Input_1b9j0_44",G8="_Main_1b9j0_15",Y8="_Sub_1b9j0_30",Z8="_Actions_1b9j0_62",K8="_Icon_1b9j0_67",X8="_LeftIcon_1b9j0_74",J8="_CircleAlertOutline_1b9j0_79",Q8="_Rotate_1b9j0_87",Or={Filter:H8,SelectFilter:$8,MainFilter:q8,IsOpen:U8,SubFilters:W8,Input:V8,Main:G8,Sub:Y8,Actions:Z8,Icon:K8,LeftIcon:X8,CircleAlertOutline:J8,Rotate:Q8},e9=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:u,placeholder:f}=r,[p,m]=C.useState([]),[g,b]=C.useMemo(()=>t,[t]),w=C.useMemo(()=>c==="Select",[c]),T=C.useMemo(()=>lr.keys(g).map(oe=>String(oe)),[g]),[A,_]=C.useState(w&&T.length>0?T[0]:null),R=C.useCallback((oe,ge,we)=>{if(!b)return;const Le={...g};oe.value=ge,b(Le),m(Ce=>Ce.map((Se,Ie)=>Ie===(we?we+1:0)?"":Se))},[g,b]),D=C.useMemo(()=>{let oe=[],ge=lr.keys(g);w&&A&&(ge=ge.filter(we=>we===A));for(const we of ge)oe.push({key:we,def:e[we],filter:g[we]});return oe},[g,e,w,A]),M=C.useMemo(()=>D.length>0?D[0]:null,[D]),F=C.useMemo(()=>p.length>0?p[0]:"",[p]),B=C.useMemo(()=>D.length>1?D.slice(1):[],[D]),z=C.useMemo(()=>p.length>1?p.slice(1):[],[p]),j=C.useMemo(()=>B.length>0,[B]),[G,fe]=C.useState(!1),[P,U]=C.useState(!1),V=C.useRef(null),Q=C.useCallback(()=>fe(!1),[]),se=C.useRef(null),te=C.useCallback(()=>{U(!1),fe(!0),se.current&&(document.removeEventListener("mousedown",se.current),se.current=null)},[]),re=C.useCallback(()=>{const oe=ge=>{const we=document.getElementById("root"),Le=ge.target,Ce=V.current;!we||!Ce||!Le||!Ce.contains(Le)&&we.contains(Le)&&te()};return se.current=oe,oe},[te]),ne=C.useCallback(()=>{fe(!0),U(!0),setTimeout(()=>{const oe=re();document.addEventListener("mousedown",oe)},0)},[re]),be=C.useMemo(()=>P?te:ne,[P,ne,te]),ie=C.useCallback(()=>{const oe=D.map((ge,we)=>ge.filter.type==="String"&&ge.filter.validation?ge.filter.validation(ge.filter.value||""):ge.filter.type==="Date"&&ge.filter.validation||ge.filter.type==="DateRange"&&ge.filter.validation?ge.filter.validation(ge.filter.value):p[we]);return m(oe),oe.every(ge=>!ge)},[p,D]),de=C.useCallback(oe=>{oe.key==="Enter"?(ie()&&o.apply(),oe.stopPropagation()):oe.key==="Escape"&&(U(!1),oe.currentTarget.focus(),oe.currentTarget.blur(),oe.stopPropagation())},[ie,U,o]),me=C.useMemo(()=>({open:ne,close:te,toggle:be,validate:ie}),[ne,te,be,ie]),Ae=C.useCallback(()=>{o.clear()},[o]),De=C.useCallback(oe=>{if(!b||!oe)return;_(oe);const ge={...g};lr.keys(ge).forEach(we=>{if(we!==oe&&ge[we])switch(ge[we].type){case"String":ge[we].value="";break;case"Select":ge[we].value=null;break;case"Date":ge[we].value=void 0;break;case"DateRange":ge[we].value=void 0;break}}),m([]),b(ge),o.clear(),setTimeout(()=>{var Le;const we=(Le=V.current)==null?void 0:Le.querySelector("input");we&&we.focus()},0)},[g,b,m,o]);return M?S.jsxs(S.Fragment,{children:[w&&S.jsx(zl,{isAutoWidth:!0,className:Ye.clsx(Or.SelectFilter),options:T,type:"Secondary",useSelect:[A,De],OptionRenderer:({option:oe})=>{const ge=e[oe];let we;if(ge!=null&&ge.hContent){const Le={defKey:oe,def:ge};we=typeof ge.hContent=="function"?ge.hContent(Le):ge.hContent}else{const Le=g[oe],Ce=(ge==null?void 0:ge.name)||(Le==null?void 0:Le.placeholder)||String(oe);we=S.jsx("span",{children:Ce})}return we}}),S.jsxs("div",{ref:V,className:Ye.clsx(Or.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:de,onClick:oe=>{oe.preventDefault(),oe.stopPropagation()},children:[S.jsx(t9,{errorMessage:F,filterF:o,filterSet:M,hasSelectFilterType:w,hasSubFilters:j,hasToggleFilteration:n,isOpen:P,placeholder:f,popupF:me,resources:u,onChange:R}),!w&&S.jsx(r9,{errorMessages:z,filterF:o,isOpen:P,isTransitioning:G,placeholder:f,resources:u,subFilterSets:B,validate:ie,onChange:R,onClearClick:Ae,onTransitionEnd:Q})]})]}):null},t9=r=>{var g,b,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:u,resources:f,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const A=[e.filter.value??"",M=>o(e.filter,M)],_=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:R??"Type",isOpen:u,tooltip:D}),S.jsx(Gc,{autoFocus:e.filter.autoFocus,className:Ye.clsx(Or.Input,Or.Main),dataList:e.filter.dataList,LeftAddon:t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),maxLength:e.filter.maxLength,placeholder:_??f["Search(Placeholder)"],type:p?"Error":"Primary",useValue:A,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:S.jsx(fp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:f})})]})}else if(e.filter.type==="Select"){const A=[e.filter.value??null,M=>{o(e.filter,M),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],_=m??e.filter.placeholder??((b=e.def)==null?void 0:b.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:R??"Menu",isOpen:u,tooltip:D}),S.jsx(zl,{className:Ye.clsx(Or.Input,Or.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:_,useSelect:A,SelectedRenderer:({OptionRenderer:M,selectedOption:F})=>F===null?_||e.filter.placeholder:S.jsxs(S.Fragment,{children:[t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),S.jsx(M,{option:F}),S.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:u,popupF:c,resources:f})]})})]})}else if(e.filter.type==="Date"){const A=[e.filter.value,M=>o(e.filter,M)],_=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:R??"CalendarDay",isOpen:u,tooltip:D}),S.jsx(kv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:_,type:"Raw",useDate:A,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),!t&&S.jsx(zn,{w:u?0:6}),S.jsx(Ya,{icon:R??"CalendarDay",isOpen:!u,tooltip:D}),S.jsx(zn,{w:u?8:0})]}),RightAddon:S.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:f})})]})}else if(e.filter.type==="DateRange"){const A=[e.filter.value,F=>o(e.filter,F)],{noDefaultChoices:_}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,M=e.filter.iconTooltip??R;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:D??"CalendarDay",isOpen:u,tooltip:M}),S.jsx(Tv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:_,placeholder:R,type:"Raw",useDateRange:A,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),!t&&S.jsx(zn,{w:u?0:6}),S.jsx(Ya,{icon:D??"CalendarDay",isOpen:!u,tooltip:M}),S.jsx(zn,{w:u?8:0})]}),RightAddon:S.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:f})})]})}return null},dp=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return S.jsx(ho,{className:Or.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Or.Rotate),onClick:i=>{i.currentTarget.classList.add(Or.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:u}=r,f=C.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=C.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=C.useCallback(g=>{g.stopPropagation(),t.validate()&&u.apply()},[t,u]);return S.jsxs(C.Fragment,{children:[i&&S.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&S.jsx(ho,{className:Or.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:f}),e&&!c&&S.jsx(ho,{className:Or.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&S.jsx(ho,{className:Or.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})]})},r9=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:u,placeholder:f,filterF:p,validate:m}=r;return!o&&!i?null:S.jsxs("div",{className:Or.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,b)=>{var w,T,A,_;if(g.filter.type==="String"){const R=[g.filter.value??"",z=>t(g.filter,z,b)],D=u[b],M=f??g.filter.placeholder??((w=g.def)==null?void 0:w.name),F=g.filter.icon,B=g.filter.iconTooltip??M;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"Type",tooltip:B}),S.jsx(Gc,{autoFocus:g.filter.autoFocus,className:Ye.clsx(Or.Input,Or.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:M??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&S.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),S.jsx(zn,{h:8})]},b)}else if(g.filter.type==="Select"){const R=[g.filter.value??null,B=>t(g.filter,B)],D=f??g.filter.placeholder??((T=g.def)==null?void 0:T.name),M=g.filter.icon,F=g.filter.iconTooltip??D;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:M??"Menu",tooltip:F}),S.jsx(zl,{arrowProps:{style:{marginRight:4}},className:Ye.clsx(Or.Input,Or.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:D,type:"Secondary",useSelect:R}),S.jsx(zn,{h:8})]},b)}else if(g.filter.type==="Date"){const R=[g.filter.value,B=>t(g.filter,B)],D=f??g.filter.placeholder??((A=g.def)==null?void 0:A.name),M=g.filter.icon,F=g.filter.iconTooltip??D;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:M??"CalendarDay",tooltip:F}),S.jsx(kv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:S.jsx(zn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:D,type:"Raw",useDate:R}),S.jsx(zn,{h:8})]},b)}else if(g.filter.type==="DateRange"){const R=[g.filter.value,z=>t(g.filter,z)],{noDefaultChoices:D}=g.filter,M=f??g.filter.placeholder??((_=g.def)==null?void 0:_.name),F=g.filter.icon,B=g.filter.iconTooltip??M;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"CalendarDay",tooltip:B}),S.jsx(Tv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:S.jsx(zn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:D,placeholder:M,type:"Raw",useDateRange:R})]},b)}else return null}),S.jsxs(kn,{className:Or.Actions,children:[S.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),S.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return S.jsx(ho,{className:Or.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},n9="_ATableHeader_1hzfz_1",o9="_LeftHeaderContent_1hzfz_11",i9="_RightHeaderContent_1hzfz_19",s9="_TopRightAddon_1hzfz_27",a9="_HItem_1hzfz_32",Pu={ATableHeader:n9,LeftHeaderContent:o9,RightHeaderContent:i9,TopRightAddon:s9,HItem:a9},l9=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:u,noCount:f,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:b,resources:w=wr.ATable,filterType:T,placeholder:A}=r,[_]=C.useMemo(()=>o||[],[o]),R=C.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[D]=i,[M,F]=b,[B,z]=C.useState(!1),j=C.useMemo(()=>{const re=lr.values(D).filter(ie=>ie.type==="DateRange"),ne=lr.keys(D).filter(ie=>re.includes(D[ie])),be=lr.keys(e).filter(ie=>e[ie].isSortable);return ne.length>0?(ne.length>1&&z(!0),be.map(de=>ne.includes(de)?[de+"_Asc",de+"_Desc"]:de).flat()):be},[e,D]),G=C.useMemo(()=>r.isRowRendered&&j.length>0,[j.length,r.isRowRendered]),fe=C.useCallback((re,ne)=>{F&&(M==null?void 0:M.defKey)===re&&(M.isAsc===!0?F({defKey:re,isAsc:!1,sortF:ne}):F({defKey:re,isAsc:!0,sortF:ne}))},[M,F]),P=C.useRef(),[U,V]=C.useState(),[Q,se]=C.useState(M?M.defKey:j[0]),te=C.useMemo(()=>{if(!U)return{};const re=e[U];return{SortUp:{onClick:()=>{F==null||F({defKey:U,isAsc:!0,sortF:re.sortF}),se(U)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{F==null||F({defKey:U,isAsc:!1,sortF:re.sortF}),se(U)},content:()=>w["Sort down"]}}},[F,U,e,w]);return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Pu.ATableHeader),children:[S.jsxs("div",{className:Ye.clsx(Pu.LeftHeaderContent,"NoSelect"),children:[S.jsxs(kn,{style:{marginBottom:G?8:0},children:[m&&S.jsx("div",{className:Ye.clsx(Pu.HItem),children:m}),t&&S.jsx("div",{className:Ye.clsx(Pu.HItem),style:{whiteSpace:"nowrap"},children:t}),!f&&S.jsxs("div",{className:Ye.clsx(Pu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,_&&_.length>0&&S.jsxs(S.Fragment,{children:[" / ",w["Checked n items"](_.length)]})]})]}),G&&S.jsx(bC,{options:j,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:re=>{var ie;const ne=re.currentTarget.textContent;if(ne===w[ne])return;re.currentTarget.querySelector("svg")===null&&((ie=P.current)==null||ie.open(re.currentTarget))}},OptionRenderer:re=>{const ne=/_Asc|_Desc/.test(re.option),be=(M==null?void 0:M.defKey)===re.option,ie=Q===re.option,de=M==null?void 0:M.isAsc,me=()=>{if(ne){V(void 0),se(re.option);const[oe,ge]=re.option.split("_"),we=ge==="Asc";F==null||F({defKey:oe,isAsc:we,sortF:e[oe].sortF})}else ie?fe(re.option,e[re.option].sortF):V(re.option)},De=ne?(oe=>{const[ge,we]=oe.split("_");return(B?ge+" ":"")+w[we]})(re.option):w["Sort by x"](re.option);return S.jsxs(kn,{className:Ye.clsx(!(ne&&ie)&&"IsClickable"),style:{height:"100%"},onClick:me,children:[De,ie&&!ne&&S.jsx(en,{icon:be?de?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},re.option)}})]}),S.jsx(Xu,{}),S.jsxs("div",{className:Ye.clsx(Pu.RightHeaderContent,"NoSelect"),children:[!u&&S.jsx(e9,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:j.length>0,isRowRendered:r.isRowRendered,placeholder:A,resources:w,useFilteration:i}),g&&S.jsx(kn,{children:g,className:Ye.clsx(Pu.TopRightAddon)})]})]}),S.jsx(vC,{actionRef:P,defs:te,position:bf.S,width:100,onClose:()=>V(void 0)})]})},c9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:u,checkDisabled:f,isLoading:p,isDisabled:m,title:g,entireItems:b,onStateChange:w,pagedItems:T,pageNumber:A,totalCount:_,useFilteration:R,useToggleFilteration:D,filterType:M="Default",placeholder:F,rowHeight:B=40,usePagination:z,useSortation:j,showRows:G,noHeader:fe,noDefHeader:P,noFooter:U,noFilter:V,noCount:Q,noMarking:se,noStateChangeOnMount:te,TopLeftAddon:re,TopRightAddon:ne,actionRef:be,RowRenderer:ie,resources:de}=r,me=C.useMemo(()=>({...wr.ATable,...de}),[de]),Ae=C.useRef(null),De=C.useCallback((Ee,qe)=>t!==void 0?Array.isArray(t)?t.every(Tt=>Za.isEqual(Ee[Tt],qe[Tt])):Za.isEqual(Ee[t],qe[t]):Za.isEqual(Ee,qe),[t]),oe=C.useMemo(()=>({content:u9,...n}),[n]),ge=C.useMemo(()=>{const Ee={};return lr.keys(e).forEach(qe=>{const Tt=e[qe],$t={...oe,...Tt};Ee[qe]=$t}),Ee},[oe,e]),[we,Le]=vn(Za.cloneDeep(R),{"":{type:"String",placeholder:me["Search(Placeholder)"],value:""}}),[Ce,Se]=vn(Za.cloneDeep(D),void 0),[Ie,et]=C.useState(!1),[Je,Qe]=C.useMemo(()=>Ie&&Ce?[Ce,Se]:[we,Le],[we,Ie,Le,Se,Ce]),[Ze,Ke]=C.useState(Je),ht=C.useMemo(()=>b?Bl.applyFilteration(b,ge,Ze):[],[b,ge,Ze]),Pe=C.useMemo(()=>{for(const Ee in Ze){const qe=Ze[Ee];if(qe.value!==void 0&&qe.value!==null&&qe.value!=="")return!0}return!1},[Ze]),[Ne,Xe]=vn(j,void 0),We=C.useMemo(()=>Bl.applySortation(ht,ge,Ne),[ht,ge,Ne]),Ve=C.useMemo(()=>{if(T!==void 0)return Bl.applySortation(T,ge,Ne)},[T,ge,Ne]),[at,lt]=vn(z,{page:1,pageSize:50,pageRange:10}),Oe=C.useMemo(()=>{const Ee=A??at.page??1;return{pageSize:50,pageRange:10,...at,page:Ee}},[at,A]),{pagedItems:st,totalCount:mt,pagination:ut}=C.useMemo(()=>{const Ee={...Oe};if(Ve!==void 0){let qe=_??Ve.length;const Tt=Bl.getPages(qe,Ee.pageSize);return Ee.page>Tt.length?Ee.page=Tt.length:Ee.page<1&&(Ee.page=1),{pagedItems:Ve,totalCount:qe,pagination:Ee}}else if(b!==void 0){const qe=_??We.length,Tt=Bl.getPages(qe,Ee.pageSize);return Ee.page>Tt.length?Ee.page=Tt.length:Ee.page<1&&(Ee.page=1),{pagedItems:Bl.applyPagination(We,Ee.page,Ee.pageSize),totalCount:qe,pagination:Ee}}else return{pagedItems:[],totalCount:_??0,pagination:Oe}},[b,Ve,_,Oe,We]),{pages:Lt,rangedPages:Bt}=C.useMemo(()=>Bl.getRangedPages(ut.page,mt,ut.pageSize,ut.pageRange),[mt,ut.pageSize,ut.page,ut.pageRange]),[Pt,Xt]=C.useMemo(()=>u??[],[u]),ar=C.useMemo(()=>st.filter(Ee=>Pt==null?void 0:Pt.some(qe=>De(qe,Ee))),[st,Pt,De]),Kt=C.useMemo(()=>st.filter(Ee=>!(f!=null&&f(Ee))),[st,f]),cr=C.useMemo(()=>Kt.length>0&&Kt.every(Ee=>ar.some(qe=>De(qe,Ee))),[ar,Kt,De]),Te=C.useMemo(()=>cr?!1:Kt.some(Ee=>ar.some(qe=>De(qe,Ee))),[ar,Kt,cr,De]),ae=C.useCallback(()=>{!Pt||!Xt||m||Xt(cr||Te?Pt.filter(Ee=>!Kt.some(qe=>De(qe,Ee))):[...Pt,...Kt])},[Pt,Xt,cr,Te,Kt,m,De]),it=C.useCallback(Ee=>{!Pt||!Xt||m||(Pt.some(qe=>De(qe,Ee))?Xt(Pt.filter(qe=>!De(qe,Ee))):Xt([...Pt,Ee]))},[Pt,Xt,m,De]);C.useEffect(()=>{if(!Xt||!Pt||!f)return;Pt.filter(qe=>f(qe)).length>0&&Xt(Pt.filter(qe=>!f(qe)))},[f,Pt,Xt]);const bt=C.useMemo(()=>({hContent:Pt&&S.jsx(af,{isIndeterminate:Te,useCheck:[cr,ae]}),content:Ee=>{const{item:qe}=Ee,Tt=f==null?void 0:f(qe),$t=typeof Tt=="string"?Tt:void 0,_t=Pt==null?void 0:Pt.some(he=>De(he,qe));return S.jsx(af,{isDisabled:Tt,style:{zIndex:1},tooltip:$t,useCheck:[_t,()=>it(qe)],onClick:he=>he.stopPropagation()})},minWidth:32,maxWidth:32}),[Pt,cr,Te,De,ae,f,it]),qt=C.useMemo(()=>u?{checkDef:bt,...ge}:ge,[ge,bt,u]),[Ft,Dt]=C.useState(!1),Ht=C.useMemo(()=>p??Ft,[p,Ft]),Ue=C.useCallback(async Ee=>{w&&(Dt(!0),await w(Ee),Dt(!1)),lt==null||lt(Ee.pagination),Xe==null||Xe(Ee.sortation),Ke(Ee.filteration)},[w,lt,Xe]),dt=C.useCallback(Ee=>{var qe;(qe=Ae.current)==null||qe.call(Ae,Ee)},[]);C.useEffect(()=>{if(!be)return;const Ee=Tt=>{const $t={entireItems:b,filteration:Je,pagination:ut,sortation:Ne},_t=Tt?Tt($t):$t;Ue(_t)},qe=Tt=>{const $t={...ut,page:1},_t=Tt?Tt(Je):Je;Ue({entireItems:b,filteration:_t,pagination:$t,sortation:Ne}),Qe==null||Qe(_t)};be.current={fireOnStateChange:Ee,applyFilteration:qe,scrollToSelected:dt}},[be,Ue,b,Qe,Je,ut,Ne,dt]);const yt=C.useCallback(Ee=>{Ee.page===ut.page&&Ee.pageSize===ut.pageSize||(Ee.page<1?Ee.page=1:Ee.page>Lt[Lt.length-1]&&(Ee.page=Lt[Lt.length-1]),Ue({entireItems:b,filteration:Ze,pagination:Ee,sortation:Ne}))},[ut,Lt,Ue,b,Ze,Ne]),Et=C.useCallback(Ee=>{Qe&&Qe(Ee)},[Qe]),Nt=C.useCallback(Ee=>{Ue({entireItems:b,filteration:Ze,pagination:ut,sortation:Ee})},[Ue,b,Ze,ut]),rt=C.useCallback(Ee=>{yt({...ut,page:Ee})},[yt,ut]),St=C.useCallback(()=>{rt(ut.page-1)},[rt,ut.page]),jt=C.useCallback(()=>{rt(ut.page+1)},[rt,ut.page]),tr=C.useCallback(()=>{rt(1)},[rt]),Ut=C.useCallback(()=>{rt(Lt[Lt.length-1])},[rt,Lt]),br=C.useMemo(()=>({move:rt,movePrev:St,moveNext:jt,moveFirst:tr,moveLast:Ut}),[rt,St,jt,tr,Ut]),Nr=C.useCallback(()=>{const Ee={...ut,page:1};Ue({entireItems:b,filteration:Je,pagination:Ee,sortation:Ne})},[Je,ut,Ue,b,Ne]),pr=C.useCallback(()=>{et(!Ie)},[Ie]),pe=C.useCallback(()=>{Ie&&Ce?Se==null||Se(I0(Ce)):Qe==null||Qe(I0(we))},[Ie,Ce,Se,we,Qe]),pt=C.useMemo(()=>({apply:Nr,toggle:pr,clear:pe}),[Nr,pr,pe]);xC(()=>{te||Ue({entireItems:b,filteration:Je,pagination:ut,sortation:Ne})});const It=C.useMemo(()=>lr.map(ge,([qe])=>ge[qe].minWidth??Fc).reduce((qe,Tt)=>qe+Tt,0),[ge]),je=C.useMemo(()=>ie!==void 0,[ie]);return S.jsxs(Yr,{className:f8.ATable,isDisabled:m,style:{minWidth:It},children:[!fe&&S.jsx(l9,{defs:ge,filterF:pt,filterType:M,hasToggleFilteration:Ce!==void 0,isFiltered:Pe,isRowRendered:je,noCount:Q,noFilter:V,placeholder:F,resources:me,title:g,TopLeftAddon:re,TopRightAddon:ne,totalCount:mt,useCheck:u&&Pt?[Pt,Xt]:void 0,useFilteration:[Je,Et],useSortation:[Ne,Nt]}),S.jsx(L8,{appliedFilteration:Ze,defs:qt,isEqual:De,isLoading:Ht,isRowRendered:je,isSelectMulti:a,isTableDisabled:m,noDefHeader:P,noMarking:se,pagedItems:st,pagination:ut,resources:me,rowHeight:B,RowRenderer:ie,rProps:o,selectDisabled:c,showRows:G,useSelect:i,useSortation:[Ne,Nt],onScrollToSelectedReady:Ee=>Ae.current=Ee}),!U&&S.jsx(z8,{pageF:br,pages:Lt,pagination:ut,rangedPages:Bt})]})},u9=r=>{const{defKey:e,item:t}=r;if(lr.hasKey(t,e)){const n=t[e];return lr.isReactNode(n)?n:null}else return null};function I0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const d9="_AText_1asz6_1",f9={AText:d9},_C=r=>{const{text:e,styled:t,style:n}=r,o=C.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?S.jsx("b",{children:e}):S.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>S.jsxs(C.Fragment,{children:[hp(a),c<i.length-1?S.jsx("b",{children:hp(t)}):""]},c)):i.map((a,c)=>S.jsxs(C.Fragment,{children:[hp(a),c<i.length-1&&S.jsx("span",{style:n,children:hp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return S.jsx("div",{className:Ye.clsx("Body1Reading",f9.AText,"NoSelect"),children:o})};function hp(r){const e=r.split(`
|
|
167
|
-
`);return e.map((t,n)=>S.jsxs(C.Fragment,{children:[t,n!==e.length-1&&S.jsx("br",{})]},n))}const h9="_Base_cpm4t_7",p9="_ATextArea_cpm4t_11",g9="_Primary_cpm4t_34",m9="_UnAvailable_cpm4t_39",v9="_Secondary_cpm4t_47",y9="_ReadOnly_cpm4t_59",pp={Base:h9,ATextArea:p9,Primary:g9,UnAvailable:m9,Secondary:v9,ReadOnly:y9,Error:"_Error_cpm4t_66"},b9=["Primary","Secondary","ReadOnly","Error"],x9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:u,maxLength:f,tabIndex:p,autoFocus:m,textAreaProps:g,...b}=r,[{wrapId:w,wrapProps:T,labelProps:A,..._},R]=Ku(b),D=C.useMemo(()=>w9(t)?"Error":n,[t,n]),M=C.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),F=C.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[B,z]=vn(i,""),j=C.useCallback(P=>{z&&z(P)},[z]),G=C.useCallback(P=>{var U;F||(j(P.target.value),(U=g==null?void 0:g.onChange)==null||U.call(g,P))},[F,j,g]),fe=C.useCallback(P=>{var U;if(!F){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()}},[F,e,g]);return S.jsx(Vc,{wrapId:w,wrapProps:T,labelProps:A,..._,children:S.jsx(Yr,{...R,className:Ye.clsx(pp.Base,R.className),children:S.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ye.clsx(pp.ATextArea,pp[D],F&&pp.UnAvailable,g==null?void 0:g.className),maxLength:f,placeholder:u,readOnly:M,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:p,value:B,onChange:G,onKeyDown:fe})})})};function w9(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:AC,setPrototypeOf:M0,isFrozen:C9,getPrototypeOf:S9,getOwnPropertyDescriptor:_9}=Object;let{freeze:mi,seal:Os,create:EC}=Object,{apply:P1,construct:B1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});P1||(P1=function(e,t,n){return e.apply(t,n)});B1||(B1=function(e,t){return new e(...t)});const gp=vi(Array.prototype.forEach),A9=vi(Array.prototype.lastIndexOf),L0=vi(Array.prototype.pop),Kf=vi(Array.prototype.push),E9=vi(Array.prototype.splice),$p=vi(String.prototype.toLowerCase),gm=vi(String.prototype.toString),D0=vi(String.prototype.match),Xf=vi(String.prototype.replace),T9=vi(String.prototype.indexOf),R9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),pi=vi(RegExp.prototype.test),Jf=k9(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 P1(r,e,n)}}function k9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return B1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$p;M0&&M0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(C9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function I9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Pl(r){const e=EC(null);for(const[t,n]of AC(r))aa(r,t)&&(Array.isArray(n)?e[t]=I9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Pl(n):e[t]=n);return e}function Qf(r,e){for(;r!==null;){const n=_9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=S9(r)}function t(){return null}return t}const O0=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"]),mm=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"]),vm=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"]),M9=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"]),ym=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"]),L9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N0=mi(["#text"]),P0=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"]),bm=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"]),B0=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"]),D9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),O9=Os(/<%[\w\W]*|[\w\W]*%>/gm),N9=Os(/\$\{[\w\W]*/gm),P9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),B9=Os(/^aria-[\-\w]+$/),TC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F9=Os(/^(?:\w+script|data):/i),j9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RC=Os(/^html$/i),z9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var F0=Object.freeze({__proto__:null,ARIA_ATTR:B9,ATTR_WHITESPACE:j9,CUSTOM_ELEMENT:z9,DATA_ATTR:P9,DOCTYPE_NAME:RC,ERB_EXPR:O9,IS_ALLOWED_URI:TC,IS_SCRIPT_OR_DATA:F9,MUSTACHE_EXPR:D9,TMPLIT_EXPR:N9});const eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},H9=function(){return typeof window>"u"?null:window},$9=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}},j0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H9();const e=_t=>kC(_t);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:u,NodeFilter:f,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:b}=r,w=u.prototype,T=Qf(w,"cloneNode"),A=Qf(w,"remove"),_=Qf(w,"nextSibling"),R=Qf(w,"childNodes"),D=Qf(w,"parentNode");if(typeof a=="function"){const _t=t.createElement("template");_t.content&&_t.content.ownerDocument&&(t=_t.content.ownerDocument)}let M,F="";const{implementation:B,createNodeIterator:z,createDocumentFragment:j,getElementsByTagName:G}=t,{importNode:fe}=n;let P=j0();e.isSupported=typeof AC=="function"&&typeof D=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:te,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:be}=F0;let{IS_ALLOWED_URI:ie}=F0,de=null;const me=Wr({},[...O0,...mm,...vm,...ym,...N0]);let Ae=null;const De=Wr({},[...P0,...bm,...B0,...mp]);let oe=Object.seal(EC(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}})),ge=null,we=null,Le=!0,Ce=!0,Se=!1,Ie=!0,et=!1,Je=!0,Qe=!1,Ze=!1,Ke=!1,ht=!1,Pe=!1,Ne=!1,Xe=!0,We=!1;const Ve="user-content-";let at=!0,lt=!1,Oe={},st=null;const mt=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 ut=null;const Lt=Wr({},["audio","video","img","source","image","track"]);let Bt=null;const Pt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",ar="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml";let cr=Kt,Te=!1,ae=null;const it=Wr({},[Xt,ar,Kt],gm);let bt=Wr({},["mi","mo","mn","ms","mtext"]),qt=Wr({},["annotation-xml"]);const Ft=Wr({},["title","style","font","a","script"]);let Dt=null;const Ht=["application/xhtml+xml","text/html"],Ue="text/html";let dt=null,yt=null;const Et=t.createElement("form"),Nt=function(he){return he instanceof RegExp||he instanceof Function},rt=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yt&&yt===he)){if((!he||typeof he!="object")&&(he={}),he=Pl(he),Dt=Ht.indexOf(he.PARSER_MEDIA_TYPE)===-1?Ue:he.PARSER_MEDIA_TYPE,dt=Dt==="application/xhtml+xml"?gm:$p,de=aa(he,"ALLOWED_TAGS")?Wr({},he.ALLOWED_TAGS,dt):me,Ae=aa(he,"ALLOWED_ATTR")?Wr({},he.ALLOWED_ATTR,dt):De,ae=aa(he,"ALLOWED_NAMESPACES")?Wr({},he.ALLOWED_NAMESPACES,gm):it,Bt=aa(he,"ADD_URI_SAFE_ATTR")?Wr(Pl(Pt),he.ADD_URI_SAFE_ATTR,dt):Pt,ut=aa(he,"ADD_DATA_URI_TAGS")?Wr(Pl(Lt),he.ADD_DATA_URI_TAGS,dt):Lt,st=aa(he,"FORBID_CONTENTS")?Wr({},he.FORBID_CONTENTS,dt):mt,ge=aa(he,"FORBID_TAGS")?Wr({},he.FORBID_TAGS,dt):Pl({}),we=aa(he,"FORBID_ATTR")?Wr({},he.FORBID_ATTR,dt):Pl({}),Oe=aa(he,"USE_PROFILES")?he.USE_PROFILES:!1,Le=he.ALLOW_ARIA_ATTR!==!1,Ce=he.ALLOW_DATA_ATTR!==!1,Se=he.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=he.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=he.SAFE_FOR_TEMPLATES||!1,Je=he.SAFE_FOR_XML!==!1,Qe=he.WHOLE_DOCUMENT||!1,ht=he.RETURN_DOM||!1,Pe=he.RETURN_DOM_FRAGMENT||!1,Ne=he.RETURN_TRUSTED_TYPE||!1,Ke=he.FORCE_BODY||!1,Xe=he.SANITIZE_DOM!==!1,We=he.SANITIZE_NAMED_PROPS||!1,at=he.KEEP_CONTENT!==!1,lt=he.IN_PLACE||!1,ie=he.ALLOWED_URI_REGEXP||TC,cr=he.NAMESPACE||Kt,bt=he.MATHML_TEXT_INTEGRATION_POINTS||bt,qt=he.HTML_INTEGRATION_POINTS||qt,oe=he.CUSTOM_ELEMENT_HANDLING||{},he.CUSTOM_ELEMENT_HANDLING&&Nt(he.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=he.CUSTOM_ELEMENT_HANDLING.tagNameCheck),he.CUSTOM_ELEMENT_HANDLING&&Nt(he.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=he.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),he.CUSTOM_ELEMENT_HANDLING&&typeof he.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=he.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(Ce=!1),Pe&&(ht=!0),Oe&&(de=Wr({},N0),Ae=[],Oe.html===!0&&(Wr(de,O0),Wr(Ae,P0)),Oe.svg===!0&&(Wr(de,mm),Wr(Ae,bm),Wr(Ae,mp)),Oe.svgFilters===!0&&(Wr(de,vm),Wr(Ae,bm),Wr(Ae,mp)),Oe.mathMl===!0&&(Wr(de,ym),Wr(Ae,B0),Wr(Ae,mp))),he.ADD_TAGS&&(de===me&&(de=Pl(de)),Wr(de,he.ADD_TAGS,dt)),he.ADD_ATTR&&(Ae===De&&(Ae=Pl(Ae)),Wr(Ae,he.ADD_ATTR,dt)),he.ADD_URI_SAFE_ATTR&&Wr(Bt,he.ADD_URI_SAFE_ATTR,dt),he.FORBID_CONTENTS&&(st===mt&&(st=Pl(st)),Wr(st,he.FORBID_CONTENTS,dt)),at&&(de["#text"]=!0),Qe&&Wr(de,["html","head","body"]),de.table&&(Wr(de,["tbody"]),delete ge.tbody),he.TRUSTED_TYPES_POLICY){if(typeof he.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof he.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=he.TRUSTED_TYPES_POLICY,F=M.createHTML("")}else M===void 0&&(M=$9(b,o)),M!==null&&typeof F=="string"&&(F=M.createHTML(""));mi&&mi(he),yt=he}},St=Wr({},[...mm,...vm,...M9]),jt=Wr({},[...ym,...L9]),tr=function(he){let ct=D(he);(!ct||!ct.tagName)&&(ct={namespaceURI:cr,tagName:"template"});const wt=$p(he.tagName),fr=$p(ct.tagName);return ae[he.namespaceURI]?he.namespaceURI===ar?ct.namespaceURI===Kt?wt==="svg":ct.namespaceURI===Xt?wt==="svg"&&(fr==="annotation-xml"||bt[fr]):!!St[wt]:he.namespaceURI===Xt?ct.namespaceURI===Kt?wt==="math":ct.namespaceURI===ar?wt==="math"&&qt[fr]:!!jt[wt]:he.namespaceURI===Kt?ct.namespaceURI===ar&&!qt[fr]||ct.namespaceURI===Xt&&!bt[fr]?!1:!jt[wt]&&(Ft[wt]||!St[wt]):!!(Dt==="application/xhtml+xml"&&ae[he.namespaceURI]):!1},Ut=function(he){Kf(e.removed,{element:he});try{D(he).removeChild(he)}catch{A(he)}},br=function(he,ct){try{Kf(e.removed,{attribute:ct.getAttributeNode(he),from:ct})}catch{Kf(e.removed,{attribute:null,from:ct})}if(ct.removeAttribute(he),he==="is")if(ht||Pe)try{Ut(ct)}catch{}else try{ct.setAttribute(he,"")}catch{}},Nr=function(he){let ct=null,wt=null;if(Ke)he="<remove></remove>"+he;else{const ur=D0(he,/^[\r\n\t ]+/);wt=ur&&ur[0]}Dt==="application/xhtml+xml"&&cr===Kt&&(he='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+he+"</body></html>");const fr=M?M.createHTML(he):he;if(cr===Kt)try{ct=new g().parseFromString(fr,Dt)}catch{}if(!ct||!ct.documentElement){ct=B.createDocument(cr,"template",null);try{ct.documentElement.innerHTML=Te?F:fr}catch{}}const Fr=ct.body||ct.documentElement;return he&&wt&&Fr.insertBefore(t.createTextNode(wt),Fr.childNodes[0]||null),cr===Kt?G.call(ct,Qe?"html":"body")[0]:Qe?ct.documentElement:Fr},pr=function(he){return z.call(he.ownerDocument||he,he,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},pe=function(he){return he instanceof m&&(typeof he.nodeName!="string"||typeof he.textContent!="string"||typeof he.removeChild!="function"||!(he.attributes instanceof p)||typeof he.removeAttribute!="function"||typeof he.setAttribute!="function"||typeof he.namespaceURI!="string"||typeof he.insertBefore!="function"||typeof he.hasChildNodes!="function")},pt=function(he){return typeof c=="function"&&he instanceof c};function It(_t,he,ct){gp(_t,wt=>{wt.call(e,he,ct,yt)})}const je=function(he){let ct=null;if(It(P.beforeSanitizeElements,he,null),pe(he))return Ut(he),!0;const wt=dt(he.nodeName);if(It(P.uponSanitizeElement,he,{tagName:wt,allowedTags:de}),Je&&he.hasChildNodes()&&!pt(he.firstElementChild)&&pi(/<[/\w!]/g,he.innerHTML)&&pi(/<[/\w!]/g,he.textContent)||he.nodeType===eh.progressingInstruction||Je&&he.nodeType===eh.comment&&pi(/<[/\w]/g,he.data))return Ut(he),!0;if(!de[wt]||ge[wt]){if(!ge[wt]&&qe(wt)&&(oe.tagNameCheck instanceof RegExp&&pi(oe.tagNameCheck,wt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(wt)))return!1;if(at&&!st[wt]){const fr=D(he)||he.parentNode,Fr=R(he)||he.childNodes;if(Fr&&fr){const ur=Fr.length;for(let xr=ur-1;xr>=0;--xr){const tn=T(Fr[xr],!0);tn.__removalCount=(he.__removalCount||0)+1,fr.insertBefore(tn,_(he))}}}return Ut(he),!0}return he instanceof u&&!tr(he)||(wt==="noscript"||wt==="noembed"||wt==="noframes")&&pi(/<\/no(script|embed|frames)/i,he.innerHTML)?(Ut(he),!0):(et&&he.nodeType===eh.text&&(ct=he.textContent,gp([U,V,Q],fr=>{ct=Xf(ct,fr," ")}),he.textContent!==ct&&(Kf(e.removed,{element:he.cloneNode()}),he.textContent=ct)),It(P.afterSanitizeElements,he,null),!1)},Ee=function(he,ct,wt){if(Xe&&(ct==="id"||ct==="name")&&(wt in t||wt in Et))return!1;if(!(Ce&&!we[ct]&&pi(se,ct))){if(!(Le&&pi(te,ct))){if(!Ae[ct]||we[ct]){if(!(qe(he)&&(oe.tagNameCheck instanceof RegExp&&pi(oe.tagNameCheck,he)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(he))&&(oe.attributeNameCheck instanceof RegExp&&pi(oe.attributeNameCheck,ct)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(ct))||ct==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&pi(oe.tagNameCheck,wt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(wt))))return!1}else if(!Bt[ct]){if(!pi(ie,Xf(wt,ne,""))){if(!((ct==="src"||ct==="xlink:href"||ct==="href")&&he!=="script"&&T9(wt,"data:")===0&&ut[he])){if(!(Se&&!pi(re,Xf(wt,ne,"")))){if(wt)return!1}}}}}}return!0},qe=function(he){return he!=="annotation-xml"&&D0(he,be)},Tt=function(he){It(P.beforeSanitizeAttributes,he,null);const{attributes:ct}=he;if(!ct||pe(he))return;const wt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let fr=ct.length;for(;fr--;){const Fr=ct[fr],{name:ur,namespaceURI:xr,value:tn}=Fr,sn=dt(ur),Pn=tn;let Hr=ur==="value"?Pn:R9(Pn);if(wt.attrName=sn,wt.attrValue=Hr,wt.keepAttr=!0,wt.forceKeepAttr=void 0,It(P.uponSanitizeAttribute,he,wt),Hr=wt.attrValue,We&&(sn==="id"||sn==="name")&&(br(ur,he),Hr=Ve+Hr),Je&&pi(/((--!?|])>)|<\/(style|title)/i,Hr)){br(ur,he);continue}if(wt.forceKeepAttr)continue;if(!wt.keepAttr){br(ur,he);continue}if(!Ie&&pi(/\/>/i,Hr)){br(ur,he);continue}et&&gp([U,V,Q],In=>{Hr=Xf(Hr,In," ")});const rn=dt(he.nodeName);if(!Ee(rn,sn,Hr)){br(ur,he);continue}if(M&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!xr)switch(b.getAttributeType(rn,sn)){case"TrustedHTML":{Hr=M.createHTML(Hr);break}case"TrustedScriptURL":{Hr=M.createScriptURL(Hr);break}}if(Hr!==Pn)try{xr?he.setAttributeNS(xr,ur,Hr):he.setAttribute(ur,Hr),pe(he)?Ut(he):L0(e.removed)}catch{br(ur,he)}}It(P.afterSanitizeAttributes,he,null)},$t=function _t(he){let ct=null;const wt=pr(he);for(It(P.beforeSanitizeShadowDOM,he,null);ct=wt.nextNode();)It(P.uponSanitizeShadowNode,ct,null),je(ct),Tt(ct),ct.content instanceof i&&_t(ct.content);It(P.afterSanitizeShadowDOM,he,null)};return e.sanitize=function(_t){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=null,wt=null,fr=null,Fr=null;if(Te=!_t,Te&&(_t="<!-->"),typeof _t!="string"&&!pt(_t))if(typeof _t.toString=="function"){if(_t=_t.toString(),typeof _t!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!e.isSupported)return _t;if(Ze||rt(he),e.removed=[],typeof _t=="string"&&(lt=!1),lt){if(_t.nodeName){const tn=dt(_t.nodeName);if(!de[tn]||ge[tn])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(_t instanceof c)ct=Nr("<!---->"),wt=ct.ownerDocument.importNode(_t,!0),wt.nodeType===eh.element&&wt.nodeName==="BODY"||wt.nodeName==="HTML"?ct=wt:ct.appendChild(wt);else{if(!ht&&!et&&!Qe&&_t.indexOf("<")===-1)return M&&Ne?M.createHTML(_t):_t;if(ct=Nr(_t),!ct)return ht?null:Ne?F:""}ct&&Ke&&Ut(ct.firstChild);const ur=pr(lt?_t:ct);for(;fr=ur.nextNode();)je(fr),Tt(fr),fr.content instanceof i&&$t(fr.content);if(lt)return _t;if(ht){if(Pe)for(Fr=j.call(ct.ownerDocument);ct.firstChild;)Fr.appendChild(ct.firstChild);else Fr=ct;return(Ae.shadowroot||Ae.shadowrootmode)&&(Fr=fe.call(n,Fr,!0)),Fr}let xr=Qe?ct.outerHTML:ct.innerHTML;return Qe&&de["!doctype"]&&ct.ownerDocument&&ct.ownerDocument.doctype&&ct.ownerDocument.doctype.name&&pi(RC,ct.ownerDocument.doctype.name)&&(xr="<!DOCTYPE "+ct.ownerDocument.doctype.name+`>
|
|
168
|
-
`+xr),et&&gp([U,V,Q],tn=>{xr=Xf(xr,tn," ")}),M&&Ne?M.createHTML(xr):xr},e.setConfig=function(){let _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(_t),Ze=!0},e.clearConfig=function(){yt=null,Ze=!1},e.isValidAttribute=function(_t,he,ct){yt||rt({});const wt=dt(_t),fr=dt(he);return Ee(wt,fr,ct)},e.addHook=function(_t,he){typeof he=="function"&&Kf(P[_t],he)},e.removeHook=function(_t,he){if(he!==void 0){const ct=A9(P[_t],he);return ct===-1?void 0:E9(P[_t],ct,1)[0]}return L0(P[_t])},e.removeHooks=function(_t){P[_t]=[]},e.removeAllHooks=function(){P=j0()},e}var q9=kC(),vp={exports:{}},xm,z0;function U9(){if(z0)return xm;z0=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 te=G(P,U,V);if(te)return te}var re=c(P,U),ne=P.substring(0,re);P=P.substring(re),U=U.substring(re),re=f(P,U);var be=P.substring(P.length-re);P=P.substring(0,P.length-re),U=U.substring(0,U.length-re);var ie=o(P,U);return ne&&ie.unshift([t,ne]),be&&ie.push([t,be]),R(ie,se),Q&&m(ie),ie}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,te=Q.indexOf(se);if(te!==-1)return V=[[e,Q.substring(0,te)],[t,se],[e,Q.substring(te+se.length)]],P.length>U.length&&(V[0][0]=V[2][0]=r),V;if(se.length===1)return[[r,P],[e,U]];var re=p(P,U);if(re){var ne=re[0],be=re[1],ie=re[2],de=re[3],me=re[4],Ae=n(ne,ie),De=n(be,de);return Ae.concat([[t,me]],De)}return i(P,U)}function i(P,U){for(var V=P.length,Q=U.length,se=Math.ceil((V+Q)/2),te=se,re=2*se,ne=new Array(re),be=new Array(re),ie=0;ie<re;ie++)ne[ie]=-1,be[ie]=-1;ne[te+1]=0,be[te+1]=0;for(var de=V-Q,me=de%2!==0,Ae=0,De=0,oe=0,ge=0,we=0;we<se;we++){for(var Le=-we+Ae;Le<=we-De;Le+=2){var Ce=te+Le,Se;Le===-we||Le!==we&&ne[Ce-1]<ne[Ce+1]?Se=ne[Ce+1]:Se=ne[Ce-1]+1;for(var Ie=Se-Le;Se<V&&Ie<Q&&P.charAt(Se)===U.charAt(Ie);)Se++,Ie++;if(ne[Ce]=Se,Se>V)De+=2;else if(Ie>Q)Ae+=2;else if(me){var et=te+de-Le;if(et>=0&&et<re&&be[et]!==-1){var Je=V-be[et];if(Se>=Je)return a(P,U,Se,Ie)}}}for(var Qe=-we+oe;Qe<=we-ge;Qe+=2){var et=te+Qe,Je;Qe===-we||Qe!==we&&be[et-1]<be[et+1]?Je=be[et+1]:Je=be[et-1]+1;for(var Ze=Je-Qe;Je<V&&Ze<Q&&P.charAt(V-Je-1)===U.charAt(Q-Ze-1);)Je++,Ze++;if(be[et]=Je,Je>V)ge+=2;else if(Ze>Q)oe+=2;else if(!me){var Ce=te+de-Qe;if(Ce>=0&&Ce<re&&ne[Ce]!==-1){var Se=ne[Ce],Ie=te+Se-Ce;if(Je=V-Je,Se>=Je)return a(P,U,Se,Ie)}}}}return[[r,P],[e,U]]}function a(P,U,V,Q){var se=P.substring(0,V),te=U.substring(0,Q),re=P.substring(V),ne=U.substring(Q),be=n(se,te),ie=n(re,ne);return be.concat(ie)}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,te=0;V<se;)P.substring(te,se)==U.substring(te,se)?(V=se,te=V):Q=se,se=Math.floor((Q-V)/2+V);return D(P.charCodeAt(se-1))&&se--,se}function u(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 te=0,re=1;;){var ne=P.substring(se-re),be=U.indexOf(ne);if(be==-1)return te;re+=be,(be==0||P.substring(se-re)==U.substring(0,re))&&(te=re,re++)}}function f(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,te=0;V<se;)P.substring(P.length-se,P.length-te)==U.substring(U.length-se,U.length-te)?(V=se,te=V):Q=se,se=Math.floor((Q-V)/2+V);return M(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(De,oe,ge){for(var we=De.substring(ge,ge+Math.floor(De.length/4)),Le=-1,Ce="",Se,Ie,et,Je;(Le=oe.indexOf(we,Le+1))!==-1;){var Qe=c(De.substring(ge),oe.substring(Le)),Ze=f(De.substring(0,ge),oe.substring(0,Le));Ce.length<Ze+Qe&&(Ce=oe.substring(Le-Ze,Le)+oe.substring(Le,Le+Qe),Se=De.substring(0,ge-Ze),Ie=De.substring(ge+Qe),et=oe.substring(0,Le-Ze),Je=oe.substring(Le+Qe))}return Ce.length*2>=De.length?[Se,Ie,et,Je,Ce]:null}var te=se(V,Q,Math.ceil(V.length/4)),re=se(V,Q,Math.ceil(V.length/2)),ne;if(!te&&!re)return null;re?te?ne=te[4].length>re[4].length?te:re:ne=re:ne=te;var be,ie,de,me;P.length>U.length?(be=ne[0],ie=ne[1],de=ne[2],me=ne[3]):(de=ne[0],me=ne[1],be=ne[2],ie=ne[3]);var Ae=ne[4];return[be,ie,de,me,Ae]}function m(P){for(var U=!1,V=[],Q=0,se=null,te=0,re=0,ne=0,be=0,ie=0;te<P.length;)P[te][0]==t?(V[Q++]=te,re=be,ne=ie,be=0,ie=0,se=P[te][1]):(P[te][0]==e?be+=P[te][1].length:ie+=P[te][1].length,se&&se.length<=Math.max(re,ne)&&se.length<=Math.max(be,ie)&&(P.splice(V[Q-1],0,[r,se]),P[V[Q-1]+1][0]=e,Q--,Q--,te=Q>0?V[Q-1]:-1,re=0,ne=0,be=0,ie=0,se=null,U=!0)),te++;for(U&&R(P),_(P),te=1;te<P.length;){if(P[te-1][0]==r&&P[te][0]==e){var de=P[te-1][1],me=P[te][1],Ae=u(de,me),De=u(me,de);Ae>=De?(Ae>=de.length/2||Ae>=me.length/2)&&(P.splice(te,0,[t,me.substring(0,Ae)]),P[te-1][1]=de.substring(0,de.length-Ae),P[te+1][1]=me.substring(Ae),te++):(De>=de.length/2||De>=me.length/2)&&(P.splice(te,0,[t,de.substring(0,De)]),P[te-1][0]=e,P[te-1][1]=me.substring(0,me.length-De),P[te+1][0]=r,P[te+1][1]=de.substring(De),te++),te++}te++}}var g=/[^a-zA-Z0-9]/,b=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,A=/^\r?\n\r?\n/;function _(P){function U(De,oe){if(!De||!oe)return 6;var ge=De.charAt(De.length-1),we=oe.charAt(0),Le=ge.match(g),Ce=we.match(g),Se=Le&&ge.match(b),Ie=Ce&&we.match(b),et=Se&&ge.match(w),Je=Ie&&we.match(w),Qe=et&&De.match(T),Ze=Je&&oe.match(A);return Qe||Ze?5:et||Je?4:Le&&!Se&&Ie?3:Se||Ie?2:Le||Ce?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],te=P[V+1][1],re=f(Q,se);if(re){var ne=se.substring(se.length-re);Q=Q.substring(0,Q.length-re),se=ne+se.substring(0,se.length-re),te=ne+te}for(var be=Q,ie=se,de=te,me=U(Q,se)+U(se,te);se.charAt(0)===te.charAt(0);){Q+=se.charAt(0),se=se.substring(1)+te.charAt(0),te=te.substring(1);var Ae=U(Q,se)+U(se,te);Ae>=me&&(me=Ae,be=Q,ie=se,de=te)}P[V-1][1]!=be&&(be?P[V-1][1]=be:(P.splice(V-1,1),V--),P[V][1]=ie,de?P[V+1][1]=de:(P.splice(V+1,1),V--))}V++}}function R(P,U){P.push([t,""]);for(var V=0,Q=0,se=0,te="",re="",ne;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:se++,re+=P[V][1],V++;break;case r:Q++,te+=P[V][1],V++;break;case t:var be=V-se-Q-1;if(U){if(be>=0&&B(P[be][1])){var ie=P[be][1].slice(-1);if(P[be][1]=P[be][1].slice(0,-1),te=ie+te,re=ie+re,!P[be][1]){P.splice(be,1),V--;var de=be-1;P[de]&&P[de][0]===e&&(se++,re=P[de][1]+re,de--),P[de]&&P[de][0]===r&&(Q++,te=P[de][1]+te,de--),be=de}}if(F(P[V][1])){var ie=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),te+=ie,re+=ie}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(te.length>0||re.length>0){te.length>0&&re.length>0&&(ne=c(re,te),ne!==0&&(be>=0?P[be][1]+=re.substring(0,ne):(P.splice(0,0,[t,re.substring(0,ne)]),V++),re=re.substring(ne),te=te.substring(ne)),ne=f(re,te),ne!==0&&(P[V][1]=re.substring(re.length-ne)+P[V][1],re=re.substring(0,re.length-ne),te=te.substring(0,te.length-ne)));var me=se+Q;te.length===0&&re.length===0?(P.splice(V-me,me),V=V-me):te.length===0?(P.splice(V-me,me,[e,re]),V=V-me+1):re.length===0?(P.splice(V-me,me,[r,te]),V=V-me+1):(P.splice(V-me,me,[r,te],[e,re]),V=V-me+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,se=0,Q=0,te="",re="";break}}P[P.length-1][1]===""&&P.pop();var Ae=!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),Ae=!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),Ae=!0)),V++;Ae&&R(P,U)}function D(P){return P>=55296&&P<=56319}function M(P){return P>=56320&&P<=57343}function F(P){return M(P.charCodeAt(0))}function B(P){return D(P.charCodeAt(P.length-1))}function z(P){for(var U=[],V=0;V<P.length;V++)P[V][1].length>0&&U.push(P[V]);return U}function j(P,U,V,Q){return B(P)||F(Q)?null:z([[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,te=P.length,re=U.length;if(Q.length===0&&(se===null||se.length===0)){var ne=Q.index,be=P.slice(0,ne),ie=P.slice(ne),de=se?se.index:null;e:{var me=ne+re-te;if(de!==null&&de!==me||me<0||me>re)break e;var Ae=U.slice(0,me),De=U.slice(me);if(De!==ie)break e;var oe=Math.min(ne,me),ge=be.slice(0,oe),we=Ae.slice(0,oe);if(ge!==we)break e;var Le=be.slice(oe),Ce=Ae.slice(oe);return j(ge,Le,Ce,ie)}e:{if(de!==null&&de!==ne)break e;var Se=ne,Ae=U.slice(0,Se),De=U.slice(Se);if(Ae!==be)break e;var Ie=Math.min(te-Se,re-Se),et=ie.slice(ie.length-Ie),Je=De.slice(De.length-Ie);if(et!==Je)break e;var Le=ie.slice(0,ie.length-Ie),Ce=De.slice(0,De.length-Ie);return j(be,Le,Ce,et)}}if(Q.length>0&&se&&se.length===0)e:{var ge=P.slice(0,Q.index),et=P.slice(Q.index+Q.length),oe=ge.length,Ie=et.length;if(re<oe+Ie)break e;var we=U.slice(0,oe),Je=U.slice(re-Ie);if(ge!==we||et!==Je)break e;var Le=P.slice(oe,te-Ie),Ce=U.slice(oe,re-Ie);return j(ge,Le,Ce,et)}return null}function fe(P,U,V,Q){return n(P,U,V,Q,!0)}return fe.INSERT=e,fe.DELETE=r,fe.EQUAL=t,xm=fe,xm}var dh={exports:{}};dh.exports;var H0;function IC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",u="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",w="[object Object]",T="[object Promise]",A="[object RegExp]",_="[object Set]",R="[object String]",D="[object Symbol]",M="[object WeakMap]",F="[object ArrayBuffer]",B="[object DataView]",z="[object Float32Array]",j="[object Float64Array]",G="[object Int8Array]",fe="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",se="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,ne=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,ie={};ie[i]=ie[a]=ie[F]=ie[B]=ie[c]=ie[u]=ie[z]=ie[j]=ie[G]=ie[fe]=ie[P]=ie[g]=ie[b]=ie[w]=ie[A]=ie[_]=ie[R]=ie[D]=ie[U]=ie[V]=ie[Q]=ie[se]=!0,ie[f]=ie[p]=ie[M]=!1;var de=typeof Di=="object"&&Di&&Di.Object===Object&&Di,me=typeof self=="object"&&self&&self.Object===Object&&self,Ae=de||me||Function("return this")(),De=e&&!e.nodeType&&e,oe=De&&!0&&r&&!r.nodeType&&r,ge=oe&&oe.exports===De;function we(O,J){return O.set(J[0],J[1]),O}function Le(O,J){return O.add(J),O}function Ce(O,J){for(var xe=-1,ot=O?O.length:0;++xe<ot&&J(O[xe],xe,O)!==!1;);return O}function Se(O,J){for(var xe=-1,ot=J.length,ir=O.length;++xe<ot;)O[ir+xe]=J[xe];return O}function Ie(O,J,xe,ot){for(var ir=-1,Qt=O?O.length:0;++ir<Qt;)xe=J(xe,O[ir],ir,O);return xe}function et(O,J){for(var xe=-1,ot=Array(O);++xe<O;)ot[xe]=J(xe);return ot}function Je(O,J){return O==null?void 0:O[J]}function Qe(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function Ze(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot,ir){xe[++J]=[ir,ot]}),xe}function Ke(O,J){return function(xe){return O(J(xe))}}function ht(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot){xe[++J]=ot}),xe}var Pe=Array.prototype,Ne=Function.prototype,Xe=Object.prototype,We=Ae["__core-js_shared__"],Ve=function(){var O=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),at=Ne.toString,lt=Xe.hasOwnProperty,Oe=Xe.toString,st=RegExp("^"+at.call(lt).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=ge?Ae.Buffer:void 0,ut=Ae.Symbol,Lt=Ae.Uint8Array,Bt=Ke(Object.getPrototypeOf,Object),Pt=Object.create,Xt=Xe.propertyIsEnumerable,ar=Pe.splice,Kt=Object.getOwnPropertySymbols,cr=mt?mt.isBuffer:void 0,Te=Ke(Object.keys,Object),ae=Wt(Ae,"DataView"),it=Wt(Ae,"Map"),bt=Wt(Ae,"Promise"),qt=Wt(Ae,"Set"),Ft=Wt(Ae,"WeakMap"),Dt=Wt(Object,"create"),Ht=dn(ae),Ue=dn(it),dt=dn(bt),yt=dn(qt),Et=dn(Ft),Nt=ut?ut.prototype:void 0,rt=Nt?Nt.valueOf:void 0;function St(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function jt(){this.__data__=Dt?Dt(null):{}}function tr(O){return this.has(O)&&delete this.__data__[O]}function Ut(O){var J=this.__data__;if(Dt){var xe=J[O];return xe===n?void 0:xe}return lt.call(J,O)?J[O]:void 0}function br(O){var J=this.__data__;return Dt?J[O]!==void 0:lt.call(J,O)}function Nr(O,J){var xe=this.__data__;return xe[O]=Dt&&J===void 0?n:J,this}St.prototype.clear=jt,St.prototype.delete=tr,St.prototype.get=Ut,St.prototype.has=br,St.prototype.set=Nr;function pr(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function pe(){this.__data__=[]}function pt(O){var J=this.__data__,xe=Hr(J,O);if(xe<0)return!1;var ot=J.length-1;return xe==ot?J.pop():ar.call(J,xe,1),!0}function It(O){var J=this.__data__,xe=Hr(J,O);return xe<0?void 0:J[xe][1]}function je(O){return Hr(this.__data__,O)>-1}function Ee(O,J){var xe=this.__data__,ot=Hr(xe,O);return ot<0?xe.push([O,J]):xe[ot][1]=J,this}pr.prototype.clear=pe,pr.prototype.delete=pt,pr.prototype.get=It,pr.prototype.has=je,pr.prototype.set=Ee;function qe(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Tt(){this.__data__={hash:new St,map:new(it||pr),string:new St}}function $t(O){return kt(this,O).delete(O)}function _t(O){return kt(this,O).get(O)}function he(O){return kt(this,O).has(O)}function ct(O,J){return kt(this,O).set(O,J),this}qe.prototype.clear=Tt,qe.prototype.delete=$t,qe.prototype.get=_t,qe.prototype.has=he,qe.prototype.set=ct;function wt(O){this.__data__=new pr(O)}function fr(){this.__data__=new pr}function Fr(O){return this.__data__.delete(O)}function ur(O){return this.__data__.get(O)}function xr(O){return this.__data__.has(O)}function tn(O,J){var xe=this.__data__;if(xe instanceof pr){var ot=xe.__data__;if(!it||ot.length<t-1)return ot.push([O,J]),this;xe=this.__data__=new qe(ot)}return xe.set(O,J),this}wt.prototype.clear=fr,wt.prototype.delete=Fr,wt.prototype.get=ur,wt.prototype.has=xr,wt.prototype.set=tn;function sn(O,J){var xe=Pi(O)||so(O)?et(O.length,String):[],ot=xe.length,ir=!!ot;for(var Qt in O)lt.call(O,Qt)&&!(ir&&(Qt=="length"||Ln(Qt,ot)))&&xe.push(Qt);return xe}function Pn(O,J,xe){var ot=O[J];(!(lt.call(O,J)&&Xn(ot,xe))||xe===void 0&&!(J in O))&&(O[J]=xe)}function Hr(O,J){for(var xe=O.length;xe--;)if(Xn(O[xe][0],J))return xe;return-1}function rn(O,J){return O&&$e(J,zr(J),O)}function In(O,J,xe,ot,ir,Qt,_r){var Ir;if(ot&&(Ir=Qt?ot(O,ir,Qt,_r):ot(O)),Ir!==void 0)return Ir;if(!lo(O))return O;var Cr=Pi(O);if(Cr){if(Ir=kr(O),!J)return le(O,Ir)}else{var Lr=Yt(O),fn=Lr==p||Lr==m;if($n(O))return Fn(O,J);if(Lr==w||Lr==i||fn&&!Qt){if(Qe(O))return Qt?O:{};if(Ir=an(fn?{}:O),!J)return Fe(O,rn(Ir,O))}else{if(!ie[Lr])return Qt?O:{};Ir=Mn(O,Lr,In,J)}}_r||(_r=new wt);var qn=_r.get(O);if(qn)return qn;if(_r.set(O,Ir),!Cr)var nn=xe?nt(O):zr(O);return Ce(nn||O,function(Vr,hn){nn&&(hn=Vr,Vr=O[hn]),Pn(Ir,hn,In(Vr,J,xe,ot,hn,O,_r))}),Ir}function Bn(O){return lo(O)?Pt(O):{}}function _o(O,J,xe){var ot=J(O);return Pi(O)?ot:Se(ot,xe(O))}function Do(O){return Oe.call(O)}function Oo(O){if(!lo(O)||Kn(O))return!1;var J=Bi(O)||Qe(O)?st:ne;return J.test(dn(O))}function Hn(O){if(!No(O))return Te(O);var J=[];for(var xe in Object(O))lt.call(O,xe)&&xe!="constructor"&&J.push(xe);return J}function Fn(O,J){if(J)return O.slice();var xe=new O.constructor(O.length);return O.copy(xe),xe}function Cn(O){var J=new O.constructor(O.byteLength);return new Lt(J).set(new Lt(O)),J}function io(O,J){var xe=J?Cn(O.buffer):O.buffer;return new O.constructor(xe,O.byteOffset,O.byteLength)}function yn(O,J,xe){var ot=J?xe(Ze(O),!0):Ze(O);return Ie(ot,we,new O.constructor)}function En(O){var J=new O.constructor(O.source,re.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,xe){var ot=J?xe(ht(O),!0):ht(O);return Ie(ot,Le,new O.constructor)}function $(O){return rt?Object(rt.call(O)):{}}function X(O,J){var xe=J?Cn(O.buffer):O.buffer;return new O.constructor(xe,O.byteOffset,O.length)}function le(O,J){var xe=-1,ot=O.length;for(J||(J=Array(ot));++xe<ot;)J[xe]=O[xe];return J}function $e(O,J,xe,ot){xe||(xe={});for(var ir=-1,Qt=J.length;++ir<Qt;){var _r=J[ir],Ir=void 0;Pn(xe,_r,Ir===void 0?O[_r]:Ir)}return xe}function Fe(O,J){return $e(O,Zt(O),J)}function nt(O){return _o(O,zr,Zt)}function kt(O,J){var xe=O.__data__;return po(J)?xe[typeof J=="string"?"string":"hash"]:xe.map}function Wt(O,J){var xe=Je(O,J);return Oo(xe)?xe:void 0}var Zt=Kt?Ke(Kt,Object):Mr,Yt=Do;(ae&&Yt(new ae(new ArrayBuffer(1)))!=B||it&&Yt(new it)!=g||bt&&Yt(bt.resolve())!=T||qt&&Yt(new qt)!=_||Ft&&Yt(new Ft)!=M)&&(Yt=function(O){var J=Oe.call(O),xe=J==w?O.constructor:void 0,ot=xe?dn(xe):void 0;if(ot)switch(ot){case Ht:return B;case Ue:return g;case dt:return T;case yt:return _;case Et:return M}return J});function kr(O){var J=O.length,xe=O.constructor(J);return J&&typeof O[0]=="string"&<.call(O,"index")&&(xe.index=O.index,xe.input=O.input),xe}function an(O){return typeof O.constructor=="function"&&!No(O)?Bn(Bt(O)):{}}function Mn(O,J,xe,ot){var ir=O.constructor;switch(J){case F:return Cn(O);case c:case u:return new ir(+O);case B:return io(O,ot);case z:case j:case G:case fe:case P:case U:case V:case Q:case se:return X(O,ot);case g:return yn(O,ot,xe);case b:case R:return new ir(O);case A:return En(O);case _:return k(O,ot,xe);case D:return $(O)}}function Ln(O,J){return J=J??o,!!J&&(typeof O=="number"||be.test(O))&&O>-1&&O%1==0&&O<J}function po(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Kn(O){return!!Ve&&Ve in O}function No(O){var J=O&&O.constructor,xe=typeof J=="function"&&J.prototype||Xe;return O===xe}function dn(O){if(O!=null){try{return at.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O){return In(O,!0,!0)}function Xn(O,J){return O===J||O!==O&&J!==J}function so(O){return bi(O)&<.call(O,"callee")&&(!Xt.call(O,"callee")||Oe.call(O)==i)}var Pi=Array.isArray;function yi(O){return O!=null&&ao(O.length)&&!Bi(O)}function bi(O){return ri(O)&&yi(O)}var $n=cr||jr;function Bi(O){var J=lo(O)?Oe.call(O):"";return J==p||J==m}function ao(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function lo(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function ri(O){return!!O&&typeof O=="object"}function zr(O){return yi(O)?sn(O):Hn(O)}function Mr(){return[]}function jr(){return!1}r.exports=Ao}(dh,dh.exports)),dh.exports}var fh={exports:{}};fh.exports;var $0;function MC(){return $0||($0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",b="[object Function]",w="[object GeneratorFunction]",T="[object Map]",A="[object Number]",_="[object Null]",R="[object Object]",D="[object Promise]",M="[object Proxy]",F="[object RegExp]",B="[object Set]",z="[object String]",j="[object Symbol]",G="[object Undefined]",fe="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",te="[object Int16Array]",re="[object Int32Array]",ne="[object Uint8Array]",be="[object Uint8ClampedArray]",ie="[object Uint16Array]",de="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,Ae=/^\[object .+?Constructor\]$/,De=/^(?:0|[1-9]\d*)$/,oe={};oe[V]=oe[Q]=oe[se]=oe[te]=oe[re]=oe[ne]=oe[be]=oe[ie]=oe[de]=!0,oe[c]=oe[u]=oe[P]=oe[p]=oe[U]=oe[m]=oe[g]=oe[b]=oe[T]=oe[A]=oe[R]=oe[F]=oe[B]=oe[z]=oe[fe]=!1;var ge=typeof Di=="object"&&Di&&Di.Object===Object&&Di,we=typeof self=="object"&&self&&self.Object===Object&&self,Le=ge||we||Function("return this")(),Ce=e&&!e.nodeType&&e,Se=Ce&&!0&&r&&!r.nodeType&&r,Ie=Se&&Se.exports===Ce,et=Ie&&ge.process,Je=function(){try{return et&&et.binding&&et.binding("util")}catch{}}(),Qe=Je&&Je.isTypedArray;function Ze(O,J){for(var xe=-1,ot=O==null?0:O.length,ir=0,Qt=[];++xe<ot;){var _r=O[xe];J(_r,xe,O)&&(Qt[ir++]=_r)}return Qt}function Ke(O,J){for(var xe=-1,ot=J.length,ir=O.length;++xe<ot;)O[ir+xe]=J[xe];return O}function ht(O,J){for(var xe=-1,ot=O==null?0:O.length;++xe<ot;)if(J(O[xe],xe,O))return!0;return!1}function Pe(O,J){for(var xe=-1,ot=Array(O);++xe<O;)ot[xe]=J(xe);return ot}function Ne(O){return function(J){return O(J)}}function Xe(O,J){return O.has(J)}function We(O,J){return O==null?void 0:O[J]}function Ve(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot,ir){xe[++J]=[ir,ot]}),xe}function at(O,J){return function(xe){return O(J(xe))}}function lt(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot){xe[++J]=ot}),xe}var Oe=Array.prototype,st=Function.prototype,mt=Object.prototype,ut=Le["__core-js_shared__"],Lt=st.toString,Bt=mt.hasOwnProperty,Pt=function(){var O=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Xt=mt.toString,ar=RegExp("^"+Lt.call(Bt).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=Ie?Le.Buffer:void 0,cr=Le.Symbol,Te=Le.Uint8Array,ae=mt.propertyIsEnumerable,it=Oe.splice,bt=cr?cr.toStringTag:void 0,qt=Object.getOwnPropertySymbols,Ft=Kt?Kt.isBuffer:void 0,Dt=at(Object.keys,Object),Ht=Zt(Le,"DataView"),Ue=Zt(Le,"Map"),dt=Zt(Le,"Promise"),yt=Zt(Le,"Set"),Et=Zt(Le,"WeakMap"),Nt=Zt(Object,"create"),rt=dn(Ht),St=dn(Ue),jt=dn(dt),tr=dn(yt),Ut=dn(Et),br=cr?cr.prototype:void 0,Nr=br?br.valueOf:void 0;function pr(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function pe(){this.__data__=Nt?Nt(null):{},this.size=0}function pt(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function It(O){var J=this.__data__;if(Nt){var xe=J[O];return xe===n?void 0:xe}return Bt.call(J,O)?J[O]:void 0}function je(O){var J=this.__data__;return Nt?J[O]!==void 0:Bt.call(J,O)}function Ee(O,J){var xe=this.__data__;return this.size+=this.has(O)?0:1,xe[O]=Nt&&J===void 0?n:J,this}pr.prototype.clear=pe,pr.prototype.delete=pt,pr.prototype.get=It,pr.prototype.has=je,pr.prototype.set=Ee;function qe(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Tt(){this.__data__=[],this.size=0}function $t(O){var J=this.__data__,xe=Fn(J,O);if(xe<0)return!1;var ot=J.length-1;return xe==ot?J.pop():it.call(J,xe,1),--this.size,!0}function _t(O){var J=this.__data__,xe=Fn(J,O);return xe<0?void 0:J[xe][1]}function he(O){return Fn(this.__data__,O)>-1}function ct(O,J){var xe=this.__data__,ot=Fn(xe,O);return ot<0?(++this.size,xe.push([O,J])):xe[ot][1]=J,this}qe.prototype.clear=Tt,qe.prototype.delete=$t,qe.prototype.get=_t,qe.prototype.has=he,qe.prototype.set=ct;function wt(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function fr(){this.size=0,this.__data__={hash:new pr,map:new(Ue||qe),string:new pr}}function Fr(O){var J=Wt(this,O).delete(O);return this.size-=J?1:0,J}function ur(O){return Wt(this,O).get(O)}function xr(O){return Wt(this,O).has(O)}function tn(O,J){var xe=Wt(this,O),ot=xe.size;return xe.set(O,J),this.size+=xe.size==ot?0:1,this}wt.prototype.clear=fr,wt.prototype.delete=Fr,wt.prototype.get=ur,wt.prototype.has=xr,wt.prototype.set=tn;function sn(O){var J=-1,xe=O==null?0:O.length;for(this.__data__=new wt;++J<xe;)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 qe(O);this.size=J.size}function In(){this.__data__=new qe,this.size=0}function Bn(O){var J=this.__data__,xe=J.delete(O);return this.size=J.size,xe}function _o(O){return this.__data__.get(O)}function Do(O){return this.__data__.has(O)}function Oo(O,J){var xe=this.__data__;if(xe instanceof qe){var ot=xe.__data__;if(!Ue||ot.length<t-1)return ot.push([O,J]),this.size=++xe.size,this;xe=this.__data__=new wt(ot)}return xe.set(O,J),this.size=xe.size,this}rn.prototype.clear=In,rn.prototype.delete=Bn,rn.prototype.get=_o,rn.prototype.has=Do,rn.prototype.set=Oo;function Hn(O,J){var xe=so(O),ot=!xe&&Xn(O),ir=!xe&&!ot&&yi(O),Qt=!xe&&!ot&&!ir&&ri(O),_r=xe||ot||ir||Qt,Ir=_r?Pe(O.length,String):[],Cr=Ir.length;for(var Lr in O)Bt.call(O,Lr)&&!(_r&&(Lr=="length"||ir&&(Lr=="offset"||Lr=="parent")||Qt&&(Lr=="buffer"||Lr=="byteLength"||Lr=="byteOffset")||Mn(Lr,Cr)))&&Ir.push(Lr);return Ir}function Fn(O,J){for(var xe=O.length;xe--;)if(Ao(O[xe][0],J))return xe;return-1}function Cn(O,J,xe){var ot=J(O);return so(O)?ot:Ke(ot,xe(O))}function io(O){return O==null?O===void 0?G:_:bt&&bt in Object(O)?Yt(O):No(O)}function yn(O){return lo(O)&&io(O)==c}function En(O,J,xe,ot,ir){return O===J?!0:O==null||J==null||!lo(O)&&!lo(J)?O!==O&&J!==J:k(O,J,xe,ot,En,ir)}function k(O,J,xe,ot,ir,Qt){var _r=so(O),Ir=so(J),Cr=_r?u:an(O),Lr=Ir?u:an(J);Cr=Cr==c?R:Cr,Lr=Lr==c?R:Lr;var fn=Cr==R,qn=Lr==R,nn=Cr==Lr;if(nn&&yi(O)){if(!yi(J))return!1;_r=!0,fn=!1}if(nn&&!fn)return Qt||(Qt=new rn),_r||ri(O)?$e(O,J,xe,ot,ir,Qt):Fe(O,J,Cr,xe,ot,ir,Qt);if(!(xe&o)){var Vr=fn&&Bt.call(O,"__wrapped__"),hn=qn&&Bt.call(J,"__wrapped__");if(Vr||hn){var go=Vr?O.value():O,Eo=hn?J.value():J;return Qt||(Qt=new rn),ir(go,Eo,xe,ot,Qt)}}return nn?(Qt||(Qt=new rn),nt(O,J,xe,ot,ir,Qt)):!1}function $(O){if(!ao(O)||po(O))return!1;var J=$n(O)?ar:Ae;return J.test(dn(O))}function X(O){return lo(O)&&Bi(O.length)&&!!oe[io(O)]}function le(O){if(!Kn(O))return Dt(O);var J=[];for(var xe in Object(O))Bt.call(O,xe)&&xe!="constructor"&&J.push(xe);return J}function $e(O,J,xe,ot,ir,Qt){var _r=xe&o,Ir=O.length,Cr=J.length;if(Ir!=Cr&&!(_r&&Cr>Ir))return!1;var Lr=Qt.get(O);if(Lr&&Qt.get(J))return Lr==J;var fn=-1,qn=!0,nn=xe&i?new sn:void 0;for(Qt.set(O,J),Qt.set(J,O);++fn<Ir;){var Vr=O[fn],hn=J[fn];if(ot)var go=_r?ot(hn,Vr,fn,J,O,Qt):ot(Vr,hn,fn,O,J,Qt);if(go!==void 0){if(go)continue;qn=!1;break}if(nn){if(!ht(J,function(Eo,Jn){if(!Xe(nn,Jn)&&(Vr===Eo||ir(Vr,Eo,xe,ot,Qt)))return nn.push(Jn)})){qn=!1;break}}else if(!(Vr===hn||ir(Vr,hn,xe,ot,Qt))){qn=!1;break}}return Qt.delete(O),Qt.delete(J),qn}function Fe(O,J,xe,ot,ir,Qt,_r){switch(xe){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||!Qt(new Te(O),new Te(J)));case p:case m:case A:return Ao(+O,+J);case g:return O.name==J.name&&O.message==J.message;case F:case z:return O==J+"";case T:var Ir=Ve;case B:var Cr=ot&o;if(Ir||(Ir=lt),O.size!=J.size&&!Cr)return!1;var Lr=_r.get(O);if(Lr)return Lr==J;ot|=i,_r.set(O,J);var fn=$e(Ir(O),Ir(J),ot,ir,Qt,_r);return _r.delete(O),fn;case j:if(Nr)return Nr.call(O)==Nr.call(J)}return!1}function nt(O,J,xe,ot,ir,Qt){var _r=xe&o,Ir=kt(O),Cr=Ir.length,Lr=kt(J),fn=Lr.length;if(Cr!=fn&&!_r)return!1;for(var qn=Cr;qn--;){var nn=Ir[qn];if(!(_r?nn in J:Bt.call(J,nn)))return!1}var Vr=Qt.get(O);if(Vr&&Qt.get(J))return Vr==J;var hn=!0;Qt.set(O,J),Qt.set(J,O);for(var go=_r;++qn<Cr;){nn=Ir[qn];var Eo=O[nn],Jn=J[nn];if(ot)var Fi=_r?ot(Jn,Eo,nn,J,O,Qt):ot(Eo,Jn,nn,O,J,Qt);if(!(Fi===void 0?Eo===Jn||ir(Eo,Jn,xe,ot,Qt):Fi)){hn=!1;break}go||(go=nn=="constructor")}if(hn&&!go){var ni=O.constructor,bn=J.constructor;ni!=bn&&"constructor"in O&&"constructor"in J&&!(typeof ni=="function"&&ni instanceof ni&&typeof bn=="function"&&bn instanceof bn)&&(hn=!1)}return Qt.delete(O),Qt.delete(J),hn}function kt(O){return Cn(O,zr,kr)}function Wt(O,J){var xe=O.__data__;return Ln(J)?xe[typeof J=="string"?"string":"hash"]:xe.map}function Zt(O,J){var xe=We(O,J);return $(xe)?xe:void 0}function Yt(O){var J=Bt.call(O,bt),xe=O[bt];try{O[bt]=void 0;var ot=!0}catch{}var ir=Xt.call(O);return ot&&(J?O[bt]=xe:delete O[bt]),ir}var kr=qt?function(O){return O==null?[]:(O=Object(O),Ze(qt(O),function(J){return ae.call(O,J)}))}:Mr,an=io;(Ht&&an(new Ht(new ArrayBuffer(1)))!=U||Ue&&an(new Ue)!=T||dt&&an(dt.resolve())!=D||yt&&an(new yt)!=B||Et&&an(new Et)!=fe)&&(an=function(O){var J=io(O),xe=J==R?O.constructor:void 0,ot=xe?dn(xe):"";if(ot)switch(ot){case rt:return U;case St:return T;case jt:return D;case tr:return B;case Ut:return fe}return J});function Mn(O,J){return J=J??a,!!J&&(typeof O=="number"||De.test(O))&&O>-1&&O%1==0&&O<J}function Ln(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function po(O){return!!Pt&&Pt in O}function Kn(O){var J=O&&O.constructor,xe=typeof J=="function"&&J.prototype||mt;return O===xe}function No(O){return Xt.call(O)}function dn(O){if(O!=null){try{return Lt.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O,J){return O===J||O!==O&&J!==J}var Xn=yn(function(){return arguments}())?yn:function(O){return lo(O)&&Bt.call(O,"callee")&&!ae.call(O,"callee")},so=Array.isArray;function Pi(O){return O!=null&&Bi(O.length)&&!$n(O)}var yi=Ft||jr;function bi(O,J){return En(O,J)}function $n(O){if(!ao(O))return!1;var J=io(O);return J==b||J==w||J==f||J==M}function Bi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function ao(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function lo(O){return O!=null&&typeof O=="object"}var ri=Qe?Ne(Qe):X;function zr(O){return Pi(O)?Hn(O):le(O)}function Mr(){return[]}function jr(){return!1}r.exports=bi}(fh,fh.exports)),fh.exports}var yp={},q0;function W9(){if(q0)return yp;q0=1,Object.defineProperty(yp,"__esModule",{value:!0});const r=IC(),e=MC();var t;return function(n){function o(u={},f={},p=!1){typeof u!="object"&&(u={}),typeof f!="object"&&(f={});let m=r(f);p||(m=Object.keys(m).reduce((g,b)=>(m[b]!=null&&(g[b]=m[b]),g),{}));for(const g in u)u[g]!==void 0&&f[g]===void 0&&(m[g]=u[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(u={},f={}){typeof u!="object"&&(u={}),typeof f!="object"&&(f={});const p=Object.keys(u).concat(Object.keys(f)).reduce((m,g)=>(e(u[g],f[g])||(m[g]=f[g]===void 0?null:f[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(u={},f={}){u=u||{};const p=Object.keys(f).reduce((m,g)=>(f[g]!==u[g]&&u[g]!==void 0&&(m[g]=f[g]),m),{});return Object.keys(u).reduce((m,g)=>(u[g]!==f[g]&&f[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(u,f,p=!1){if(typeof u!="object")return f;if(typeof f!="object")return;if(!p)return f;const m=Object.keys(f).reduce((g,b)=>(u[b]===void 0&&(g[b]=f[b]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),yp.default=t,yp}var bp={},U0;function LC(){if(U0)return bp;U0=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={},W0;function V9(){if(W0)return xp;W0=1,Object.defineProperty(xp,"__esModule",{value:!0});const r=LC();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 V0;function G9(){return V0||(V0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=U9(),n=IC(),o=MC(),i=W9();e.AttributeMap=i.default;const a=LC();e.Op=a.default;const c=V9();e.OpIterator=c.default;const u="\0",f=(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 b=Object.keys(m)[0];if(!b||b!==Object.keys(g)[0])throw new Error(`embed types not matched: ${b} != ${Object.keys(g)[0]}`);return[b,m[b],g[b]]};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,b){this.handlers[g]=b}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const b=this.handlers[g];if(!b)throw new Error(`no handlers for embed type "${g}"`);return b}insert(g,b){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(w.attributes=b),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,b){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(w.attributes=b),this.push(w)}push(g){let b=this.ops.length,w=this.ops[b-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[b-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(b-=1,w=this.ops[b-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[b-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[b-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[b-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[b-1].attributes=g.attributes),this}}return b===this.ops.length?this.ops.push(g):this.ops.splice(b,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 b=[],w=[];return this.forEach(T=>{(g(T)?b:w).push(T)}),[b,w]}reduce(g,b){return this.ops.reduce(g,b)}changeLength(){return this.reduce((g,b)=>b.insert?g+a.default.length(b):b.delete?g-b.delete:g,0)}length(){return this.reduce((g,b)=>g+a.default.length(b),0)}slice(g=0,b=1/0){const w=[],T=new c.default(this.ops);let A=0;for(;A<b&&T.hasNext();){let _;A<g?_=T.next(g-A):(_=T.next(b-A),w.push(_)),A+=a.default.length(_)}return new p(w)}compose(g){const b=new c.default(this.ops),w=new c.default(g.ops),T=[],A=w.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let R=A.retain;for(;b.peekType()==="insert"&&b.peekLength()<=R;)R-=b.peekLength(),T.push(b.next());A.retain-R>0&&w.next(A.retain-R)}const _=new p(T);for(;b.hasNext()||w.hasNext();)if(w.peekType()==="insert")_.push(w.next());else if(b.peekType()==="delete")_.push(b.next());else{const R=Math.min(b.peekLength(),w.peekLength()),D=b.next(R),M=w.next(R);if(M.retain){const F={};if(typeof D.retain=="number")F.retain=typeof M.retain=="number"?R:M.retain;else if(typeof M.retain=="number")D.retain==null?F.insert=D.insert:F.retain=D.retain;else{const z=D.retain==null?"insert":"retain",[j,G,fe]=f(D[z],M.retain),P=p.getHandler(j);F[z]={[j]:P.compose(G,fe,z==="retain")}}const B=i.default.compose(D.attributes,M.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),_.push(F),!w.hasNext()&&o(_.ops[_.ops.length-1],F)){const z=new p(b.rest());return _.concat(z).chop()}}else typeof M.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&_.push(M)}return _.chop()}concat(g){const b=new p(this.ops.slice());return g.ops.length>0&&(b.push(g.ops[0]),b.ops=b.ops.concat(g.ops.slice(1))),b}diff(g,b){if(this.ops===g.ops)return new p;const w=[this,g].map(D=>D.map(M=>{if(M.insert!=null)return typeof M.insert=="string"?M.insert:u;const F=D===g?"on":"with";throw new Error("diff() called "+F+" non-document")}).join("")),T=new p,A=t(w[0],w[1],b,!0),_=new c.default(this.ops),R=new c.default(g.ops);return A.forEach(D=>{let M=D[1].length;for(;M>0;){let F=0;switch(D[0]){case t.INSERT:F=Math.min(R.peekLength(),M),T.push(R.next(F));break;case t.DELETE:F=Math.min(M,_.peekLength()),_.next(F),T.delete(F);break;case t.EQUAL:F=Math.min(_.peekLength(),R.peekLength(),M);const B=_.next(F),z=R.next(F);o(B.insert,z.insert)?T.retain(F,i.default.diff(B.attributes,z.attributes)):T.push(z).delete(F);break}M-=F}}),T.chop()}eachLine(g,b=`
|
|
165
|
+
`+mt:""}`)}Ve.length>0&&j([...z||[],...Ve])}},[j,ie,n,t,B,z,f]),Ce=C.useCallback(()=>{var We;return(We=re.current)==null?void 0:We.click()},[]),Se=C.useCallback(We=>{const Ve=We.target.files;Ve!=null&&Ve.length&&(Le(Ve),ge())},[Le,ge]),Ie=C.useCallback(We=>{if(a==null||a(We),!j||!z)return;const Ve=Fu.getFileKey(We),lt=z.filter(st=>Fu.getFileKey(st)!==Ve);j(lt),ge()},[a,j,z,ge]),et=C.useCallback(()=>{j&&(j([]),ge())},[j,ge]),Je=C.useCallback(We=>{if(!o)return Promise.resolve();const Ve=Fu.getFileKey(We);return te.current[Ve]==="Loading"?Promise.resolve():(de(Ve,"Loading"),new Promise(lt=>{o(We,st=>{de(Ve,st),lt()})}))},[o,de]),Qe=C.useCallback(async()=>{if(z!=null&&z.length){if(U){const We={...te.current};z.forEach(Ve=>{We[Fu.getFileKey(Ve)]="Loading"}),te.current=We,U(We)}if(w){w(z,We=>{if(U){const Ve={...te.current,...We};te.current=Ve,U(Ve)}});return}for(const We of z){if(!o)continue;const Ve=Fu.getFileKey(We);await new Promise(lt=>{o(We,st=>{if(U){const De={...te.current};De[Ve]=st,te.current=De,U(De)}lt()})})}}},[z,o,w,U]),Ze=C.useCallback(()=>{!(z!=null&&z.length)||!i||i(z)},[z,i]),Ke=C.useMemo(()=>{const We=Ve=>(Ve.preventDefault(),Ve.stopPropagation(),Ve);return{onDragEnter:Ve=>{We(Ve),!G&&!m&&Q(!0)},onDragOver:Ve=>{We(Ve),!G&&!m&&Ve.dataTransfer&&(Ve.dataTransfer.dropEffect="copy")},onDragLeave:Ve=>{var st;We(Ve);const lt=(st=ne.current)==null?void 0:st.contains(Ve.relatedTarget);(!Ve.relatedTarget||!lt)&&Q(!1)},onDrop:Ve=>{var lt;We(Ve),Q(!1),!G&&!m&&((lt=Ve.dataTransfer.files)!=null&<.length)&&Le(Ve.dataTransfer.files)}}},[G,m,Le]),ht=C.useMemo(()=>{const We=Ye.clsx(Tn.ButtonRenderer,"NoSelect");return{upload:Ve=>S.jsx(ho,{className:We,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>Ie(Ve)}),loading:()=>S.jsx(ho,{className:We,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Ve=>S.jsx($k,{baseClass:We,errorClass:Tn.ErrorColor,errorCursorClass:Tn.ErrorCursor,file:Ve,resources:B,onDownload:Je}),download:Ve=>S.jsx(ho,{className:We,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Je(Ve)}),view:()=>null}},[B,Ie,Je]),Pe=C.useCallback((We,Ve)=>{const lt=Ae(We),st=Oe(We),De=()=>c==="Upload"?ht.upload(We):c==="View"?ht.view():lt?ht.loading():st?ht.error(We):ht.download(We);return S.jsx(Av,{ButtonRenderer:De,className:Ye.clsx(Tn.FileChip,st&&Tn.ErrorBorder),label:S.jsx("div",{className:Tn.FileChipContent,children:S.jsxs(kn,{className:Tn.FileNameContainer,children:[S.jsx(tl,{children:We.name,className:Ye.clsx(st&&Tn.ErrorColor)}),S.jsx("span",{children:qu(We.size),className:Tn.FileSize})]})})},Ve)},[Ae,Oe,c,ht]),Ne=C.useCallback(()=>S.jsx("div",{className:Ye.clsx(Tn.FileBox,G&&Tn.ErrorBorder,G&&Tn.ErrorColor,G&&Tn.ErrorCursor,we&&Tn.Disabled,V&&!(z!=null&&z.length)&&Tn.FileBoxFullSize),...Ke,ref:ne,children:V?S.jsxs(kn,{className:Ye.clsx("NoSelect"),style:{gap:4,display:z!=null&&z.length?"flex":"none"},children:[S.jsx(en,{icon:"FileDownload"}),S.jsx("span",{children:B["Drop file to select"]})]}):S.jsxs(Go,{className:Ye.clsx(Tn.SelectRenderer,"NoSelect"),isDisabled:G||m||we,type:"Raw",onClick:Ce,children:[B["Insert File"],f&&` ${(z==null?void 0:z.length)||0} / ${f}`]})}),[G,we,V,z==null?void 0:z.length,Ke,B,m,Ce,f]),Xe=C.useMemo(()=>{const We=c==="Upload",Ve=c==="View",lt=We?B["Delete All"]:B["Download All"],st=We?et:Qe,De=(z==null?void 0:z.some(at=>Ae(at)))||!1;return S.jsxs(kn,{className:Tn.LabelContainer,children:[M.label,c==="Upload"&&S.jsxs(tl,{className:Ye.clsx(Tn.TotalFileSize,"NoSelect"),children:["(",S.jsx("span",{className:Ye.clsx(G&&Tn.ErrorColor),children:qu(be)})," / ",qu(u),")"]}),!Ve&&S.jsx("span",{children:lt,className:Ye.clsx(Tn.LabelButton,"Label1",(oe||De)&&Tn.Disabled,We&&Tn.Delete),onClick:!oe&&!De?st:void 0}),i&&S.jsx("span",{children:B["Download List"]||"Download List",className:Ye.clsx(Tn.LabelButton,"Label1",!(z!=null&&z.length)&&Tn.Disabled),style:{marginLeft:"auto"},onClick:z!=null&&z.length?Ze:void 0})]})},[c,B,et,Qe,z,M.label,G,be,u,oe,i,Ze,Ae]);return c!=="Upload"&&!(z!=null&&z.length)?null:S.jsxs(Vc,{wrapId:_,wrapProps:R,labelProps:D,...M,label:Xe,children:[S.jsx("input",{ref:re,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Se}),S.jsxs(Yr,{...F,className:Ye.clsx(Tn.AFileUploader,b),children:[S.jsxs(kn,{className:Tn.ChipsContainer,children:[c==="Upload"&&Ne(),z==null?void 0:z.map(Pe)]}),c==="Upload"&&S.jsx(Yr,{className:Ye.clsx(Tn.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ke,abaseRef:ne,onClick:We=>We.preventDefault(),children:!(z!=null&&z.length)&&S.jsxs(kn,{style:{gap:4},children:[S.jsx(en,{icon:"FileDownload",size:"2xl"}),S.jsx("span",{children:B["Drop file to select"]})]})})]})]})},Uk="_AFloatMenu_xco8u_1",Wk="_Content_xco8u_10",R0={AFloatMenu:Uk,Content:Wk},vC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:u=bf.ES,width:f=137}=r,p=C.useMemo(()=>({content:Vk,...t}),[t]),m=C.useMemo(()=>{const P={};return lr.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,b]=C.useState(null),w=C.useCallback(P=>{Ew(P,D,u,o),b(P)},[u,o]),[T,A]=C.useState(!1),[_,R]=C.useState(!1),D=C.useRef(null),M=C.useCallback(P=>{R(!0),setTimeout(()=>A(!0),0),setTimeout(()=>w(P),0)},[w]),F=C.useCallback(()=>{A(!1),R(!0),i==null||i()},[i]),B=C.useCallback(()=>R(!1),[]),z=C.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)),F())},[F,c]);C.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",z),0),()=>document.removeEventListener("mousedown",z)},[T,z]);const j=C.useCallback(()=>{g&&w(g)},[w,g]);C.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",j),U=U.parentElement}},[g,T,j]),C.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=C.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);C.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),C.useEffect(()=>{n&&(n.current={open:M,close:F})},[n,M,F]);const fe=C.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!_?null:Ls.createPortal(S.jsx("div",{ref:D,className:R0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:f},onTransitionEnd:B,children:lr.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:te=Io.E,...re}=V;return se?null:(Q=Er.getContent(V.content,{defKey:P,def:V}),C.createElement(Yr,{...re,key:U,className:Ye.clsx(R0.Content,"Label2","IsClickable",re.className),tooltipDirection:te,onClick:ne=>{var be;fe==null||fe(P),(be=re.onClick)==null||be.call(re,ne)}},Q))})}),document.body)},Vk=r=>r.defKey;function Gk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const Hp={parseInt:Gk},Yk=`${Number.MAX_SAFE_INTEGER}`.length-1,Zk=r=>{const{unit:e,unitMargin:t=4,unitOptions:n,useSelectUnit:o,type:i="Secondary",min:a,max:c,unitSelectWidth:u,unitOptionsRenderer:f,useValue:p,onEnterPress:m,canAsterisk:g=!1,onFocus:b,...w}=r,T=C.useMemo(()=>c!==void 0&&a!==void 0?Math.max(`${c}`.length+1,`${a}`.length+1):Yk,[a,c]),[A,_]=vn(p,""),[R,D]=C.useState(!1),[M,F]=C.useState(""),B=C.useRef(null),z=C.useMemo(()=>{if(!A||!_)return String(A);const te=String(A),re=Hp.parseInt(te);if(re!==void 0){if(a!==void 0&&re<a){const ne=`${a}`;return _(ne),ne}if(c!==void 0&&re>c){const ne=`${c}`;return _(ne),ne}}return te},[A,a,c,_]),j=C.useCallback(te=>{if(R){if(c!==void 0&&te!==""){const re=Hp.parseInt(te);if(re!==void 0&&re>c){F(`${c}`);return}}F(te)}else _&&_(te)},[R,_,c]),G=C.useCallback(()=>{D(!0),F(z)},[z]),fe=C.useCallback(te=>{if(D(!1),!_)return;const re=te.target.value;let ne=re;if(re===""||re==="-")ne=a!==void 0?`${a}`:re;else{const be=Hp.parseInt(re);be===void 0?ne=a!==void 0?`${a}`:re:a!==void 0&&be<a?ne=`${a}`:c!==void 0&&be>c&&(ne=`${c}`)}ne!==re&&(te.target.value=ne),_(ne)},[_,a,c]),P=C.useCallback(te=>{var re;(re=B.current)==null||re.blur(),m==null||m(te)},[m]),U=C.useMemo(()=>a===void 0&&c===void 0?e??"number":`${a??""}~${c??""}`,[a,c,e]),[V,Q]=vn(o,(n==null?void 0:n[0])??""),se=C.useMemo(()=>n?S.jsx(zl,{className:Jo.ANumInputUnitSelect,OptionRenderer:f,options:n,style:{maxWidth:u||"fit-content"},type:"Raw",useSelect:[V,Q],arrowProps:{style:{color:"var(--label-normal)",marginLeft:4,marginRight:t}}}):e&&S.jsx("span",{style:{marginRight:t},children:e}),[n,f,u,V,Q,t,e]);return S.jsx(Gc,{...w,autoComplete:"off",className:Ye.clsx(Jo.ANumInput,r.className),inputRef:B,maxLength:T,placeholder:U,RightAddon:se,type:i,useValue:[R?M:z,j],onBlur:fe,onEnterPress:P,onFocus:G})},Kk="_AListView_1nv5l_1",Xk="_Row_1nv5l_10",Jk="_Label_1nv5l_19",Qk="_Content_1nv5l_29",up={AListView:Kk,Row:Xk,Label:Jk,Content:Qk},eI=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,onlyMiddleBorder:c,rowGap:u,middleBorder:f,rowBottomBorder:p,outerBorder:m,style:g,labelClassName:b,contentClassName:w,labelStyle:T,contentStyle:A,..._}=r,R=a||c,D=R?"":p||"var(--AListView_border-thin)",M=R?"":m||"var(--AListView_border-thick)",F=a?"":f||"var(--AListView_border-thick)",B=C.useMemo(()=>({content:rI,label:tI,...t}),[t]),z=C.useMemo(()=>{const j={};return lr.keys(e).forEach(G=>{const fe=e[G],P={...B,...fe};j[G]=P}),j},[B,e]);return S.jsx(Yr,{..._,className:Ye.clsx(up.AListView,_.className),style:{...g,borderTop:D},children:lr.map(z,([j],G)=>{const fe={...B,...z[j]},P=Er.getContent(fe.label,{defKey:j,item:n,def:fe}),U=Er.getContent(fe.content,{defKey:j,item:n||{[j]:""},def:fe}),V=Er.getContent(fe.bold||"label",{defKey:j,item:n,def:fe});return S.jsxs("div",{className:up.Row,style:{height:fe.fixedHeight?o:void 0,minHeight:fe.fixedHeight?o:void 0,maxHeight:fe.fixedHeight?o:void 0,borderBottom:D,marginTop:G===0?0:typeof u=="number"?`${u}px`:u},children:[S.jsx("div",{className:Ye.clsx(up.Label,"NoSelect",V!=="content"&&"Bold",b),style:{width:i,minWidth:i,maxWidth:i,borderLeft:M,paddingLeft:R?0:10,...T},children:S.jsx(tl,{children:P})}),S.jsx("div",{className:Ye.clsx(up.Content,V!=="label"&&"Bold",w),style:{borderLeft:F,borderRight:M,...A},children:S.jsx(tl,{style:{width:"100%",padding:R?0:10},children:U})})]},j)})})},tI=r=>r.defKey,rI=r=>{const{defKey:e,item:t}=r;if(t)if(lr.hasKey(t,e)){const n=t[e];return lr.isReactNode(n)?n:null}else return null;else return null},nI="_ALoadingBorder_kwc1g_1",oI="_ProgressBar_kwc1g_9",iI="_IsLoading_kwc1g_15",sI="_Cover_kwc1g_19",Zf={ALoadingBorder:nI,ProgressBar:oI,IsLoading:iI,Cover:sI},Mv=r=>{const{isLoading:e}=r,[t,n]=C.useState(!1),o=C.useRef(null);return C.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),S.jsxs("div",{className:Zf.ALoadingBorder,children:[S.jsx("div",{className:Ye.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),S.jsx("div",{className:Ye.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},aI="_Container_ez8dc_1",lI="_Option_ez8dc_7",cI="_RadioButton_ez8dc_14",uI="_InnerCircle_ez8dc_24",dI="_isChecked_ez8dc_29",Yd={Container:aI,Option:lI,RadioButton:cI,InnerCircle:uI,isChecked:dI},fI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=yC}=r,[c,u]=vn(t,e[0]);return S.jsx("div",{className:Yd.Container,children:e.map((f,p)=>{const m=n==null?void 0:n(f),g=()=>m?null:u==null?void 0:u(f);return S.jsxs(kn,{className:Ye.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[S.jsx(hI,{innerRadius:i,isChecked:c===f,radius:o},p),S.jsx(a,{option:f})]},p)})})},yC=({option:r})=>r,hI=({isChecked:r,radius:e,innerRadius:t})=>S.jsx(Yr,{className:Ye.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:S.jsx(Yr,{className:Ye.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),pI="_AMultiSelect_19uuu_1",gI="_Arrow_19uuu_15",mI="_Primary_19uuu_24",vI="_UnAvailable_19uuu_35",yI="_IsOpen_19uuu_35",bI="_Secondary_19uuu_42",xI="_Placeholder_19uuu_58",wI="_ValuesContainer_19uuu_63",CI="_Values_19uuu_63",SI="_Options_19uuu_82",_I="_Option_19uuu_82",AI="_Selected_19uuu_124",EI="_CheckBox_19uuu_131",Mi={AMultiSelect:pI,Arrow:gI,Primary:mI,UnAvailable:vI,IsOpen:yI,Secondary:bI,Placeholder:xI,ValuesContainer:wI,Values:CI,Options:SI,Option:_I,Selected:AI,CheckBox:EI},TI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=kI,OptionRenderer:c=II,minShowRows:u=2,maxShowRows:f=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,b=C.useRef(null),w=C.useMemo(()=>g.abaseRef??b,[g.abaseRef]),T=C.useRef(null),[A,_]=vn(t,[]),[R,D]=C.useState(void 0),M=C.useRef(e),F=C.useRef(null),[B,z]=C.useState(!1),[j,G]=C.useState(!1),fe=C.useCallback(()=>G(!1),[]),P=C.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>z(!0),0),setTimeout(()=>hm(T,w,e,u,f),0))},[w,g.isDisabled,g.isLoading,e,u,f]),U=C.useCallback(()=>{z(!1),G(!0),i==null||i()},[i]),V=C.useCallback(ie=>{var de;B?U():P(),setTimeout(()=>hm(T,w,e,u,f),0),(de=g.onClick)==null||de.call(g,ie)},[w,g,e,B,U,P,u,f]),Q=C.useCallback(()=>{hm(T,w,e,u,f)},[w,e,u,f]);C.useEffect(()=>{if(!B||!w.current)return;const ie=w.current;let de=ie.parentElement;for(;de;)de.addEventListener("scroll",Q),de=de.parentElement;return()=>{let me=ie.parentElement;for(;me;)me.removeEventListener("scroll",Q),me=me.parentElement}},[w,B,Q]),C.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const se=C.useCallback(ie=>{ie[0].intersectionRatio===0&&U()},[U]);C.useEffect(()=>{if(!B)return;const ie=new IntersectionObserver(se,{threshold:0});return w.current&&ie.observe(w.current),()=>ie.disconnect()},[w,B,se]);const te=C.useCallback(ie=>{const de=ie.target,me=w.current,Ae=T.current;!me||!de||!Ae||!me.contains(de)&&!Ae.contains(de)&&U()},[w,U]),re=C.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);C.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",te),0),()=>document.removeEventListener("mousedown",te)},[B,te]);const ne=C.useCallback((ie,de)=>{ie.stopPropagation(),ie.preventDefault();let me=[...A];me.includes(de)?me=me.filter(Ae=>Ae!==de):me.push(de),_==null||_(me)},[A,_]),be=C.useCallback(()=>{if(!m||!w.current)return;const ie=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:A,placeholder:o,optionRenderer:de=>c({option:de}),type:n,isMulti:!0});D(ie)},[m,w,e,A,o,c,n]);return C.useEffect(()=>m?((e!==M.current||R===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{be(),F.current=null,M.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,be,R]),C.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ye.clsx(g.className,Mi.AMultiSelect,"NoSelect",B&&Mi.IsOpen,re&&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:[S.jsx("div",{className:Mi.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(Mi.Values,A.length<1&&Mi.Placeholder),children:S.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:A})})}),S.jsx("div",{...p,className:Ye.clsx(Mi.Arrow,p==null?void 0:p.className),children:S.jsx(en,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(Mi.Options,Mi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:fe,children:e.map((ie,de)=>{var Ae;const me=A.includes(ie);return S.jsxs("div",{className:Ye.clsx(Mi.Option,me&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Ae=w.current)==null?void 0:Ae.getBoundingClientRect().height},onClick:Oe=>ne(Oe,ie),children:[S.jsx(af,{className:Mi.CheckBox,useCheck:[+me,void 0]}),S.jsx(c,{option:ie})]},de)})}),document.body)]})};function hm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=RI(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 RI(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 kI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?S.jsx(e,{option:t[0]}):`${t.length} selected`},II=r=>{const{option:e}=r;return lr.isReactNode(e)?e:null},MI="_Container_10ion_1",LI="_Steps_10ion_9",DI="_Step_10ion_9",OI="_OutCircle_10ion_26",NI="_IsOver_10ion_37",PI="_InCircle_10ion_41",BI="_Line_10ion_54",FI="_Left_10ion_66",jI="_Right_10ion_69",zI="_ContentContainer_10ion_73",HI="_Content_10ion_73",hi={Container:MI,Steps:LI,Step:DI,OutCircle:OI,IsOver:NI,InCircle:PI,Line:BI,Left:FI,Right:jI,ContentContainer:zI,Content:HI},$I=r=>{const{useSelect:e,steps:t,StepRenderer:n=k0,ContentRenderer:o=k0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=C.useRef(null),[a,c]=vn(e,t[0]),u=C.useCallback(p=>c==null?void 0:c(p),[c]),f=C.useMemo(()=>t.indexOf(a),[a,t]);return C.useEffect(()=>{f<0&&u(t[0])},[f,t,u]),S.jsxs("div",{className:hi.Container,children:[S.jsx("div",{className:hi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),b=f>=m,w=f>m;return S.jsxs("div",{className:hi.Step,children:[m!==0&&S.jsx("div",{className:Ye.clsx(hi.Line,hi.Left,b&&hi.IsOver)}),m!==t.length-1&&S.jsx("div",{className:Ye.clsx(hi.Line,hi.Right,w&&hi.IsOver)}),S.jsx(Go,{className:Ye.clsx(hi.OutCircle,b&&hi.IsOver),type:"Raw",onClick:()=>u(p),children:S.jsx("div",{className:Ye.clsx(hi.InCircle,b&&hi.IsOver)})}),S.jsx(n,{step:p,stepIdx:g})]},m)})}),S.jsx("div",{ref:i,className:hi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return S.jsx("div",{className:hi.Content,style:m===0?{marginLeft:`${f*-100}%`}:{},children:S.jsx(o,{step:p,stepIdx:g})},m)})})]})},k0=r=>{const{step:e}=r;return typeof e=="object"?lr.stringify(e):e},qI="_ATab_9eg6z_1",UI="_Addon_9eg6z_9",WI="_Option_9eg6z_14",VI="_Underline_9eg6z_26",GI="_IsSelected_9eg6z_26",YI="_IndicatorTrack_9eg6z_37",ZI="_Indicator_9eg6z_37",KI="_Primary_9eg6z_54",XI="_Secondary_9eg6z_57",JI="_IsDisabled_9eg6z_63",QI="_Tertiary_9eg6z_77",e8="_Quaternary_9eg6z_101",Va={ATab:qI,Addon:UI,Option:WI,Underline:VI,IsSelected:GI,IndicatorTrack:YI,Indicator:ZI,Primary:KI,Secondary:XI,IsDisabled:JI,Tertiary:QI,Quaternary:e8},t8=["Primary","Secondary","Tertiary","Quaternary"],bC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:u=r8,RightAddon:f,LeftAddon:p,color:m,selectedColor:g,underline:b,indicatorProps:w,indicatorTrackProps:T,height:A=40}=r;if(e.length===0)throw new Error("options should have at least one element");const _=C.useMemo(()=>e.findIndex(we=>!(n!=null&&n(we))),[e,n]),R=o==="Tertiary",D=o==="Secondary",M=R?A*.1:0,F=D?8:0,B=C.useMemo(()=>M+F,[M,F]),z=C.useMemo(()=>(F-M)/e.length,[e.length,M,F]),[j,G]=vn(t,e[_]),fe=C.useRef([]),P=C.useCallback(we=>G==null?void 0:G(we),[G]),U=C.useMemo(()=>typeof c=="number"?c+"px":c,[c]),V=C.useMemo(()=>e.indexOf(j),[e,j]),Q=C.useMemo(()=>`calc(${100/e.length}% + ${z}px)`,[e.length,z]),se=C.useMemo(()=>U||`calc(${Q} - ${B}px)`,[Q,B,U]),[te,re]=C.useState(0),[ne,be]=C.useState(0),[ie,de]=C.useState(se),me=C.useRef(null),Ae=C.useRef(null),Oe=Aw(Ae,me),oe=C.useMemo(()=>{let we;switch(U){case void 0:we=`calc(${Q} * ${V})`;break;case"fit-content":we=`calc(${te}px)`;break;default:we=`calc((${U} + ${B}px) * ${V})`;break}return we},[U,Q,V,te,B]),ge=C.useMemo(()=>{switch(U){case void 0:return;case"fit-content":return`calc(${ne}px)`;default:return`calc((${U} + ${B}px - ${z}px) * ${e.length})`}},[U,z,B,e,ne]);return C.useEffect(()=>{var Le,Ce;if(e.includes(j)||G==null||G(e[_]),U!=="fit-content"){de(se);return}let we=0;fe.current.forEach((Se,Ie)=>{Ie<V&&Se.current&&(we+=Se.current.offsetWidth+B)}),re(we),de(`calc(${((Ce=(Le=fe.current[V])==null?void 0:Le.current)==null?void 0:Ce.offsetWidth)||0}px)`),be(fe.current.reduce((Se,Ie)=>{var et;return Se+((((et=Ie.current)==null?void 0:et.offsetWidth)||0)+B-z)},0))},[U,fe,e,j,G,_,z,B,V,se]),S.jsxs("div",{ref:me,...i,className:Ye.clsx(Va.ATab,"Headline2",Va[o],i==null?void 0:i.className),style:{minHeight:A,height:A,maxHeight:A},children:[p&&S.jsx("div",{ref:Ae,className:Va.Addon,children:p}),S.jsx("div",{...w,className:Ye.clsx(Va.Indicator,w==null?void 0:w.className),style:{minWidth:ie,left:oe,marginLeft:M,transform:`translate(${Oe??0}px, ${R?"-50%":"0"})`,height:R?A-M*2:void 0,...w==null?void 0:w.style}}),S.jsx("div",{...T,className:Ye.clsx(Va.IndicatorTrack,T==null?void 0:T.className),style:{width:ge,marginLeft:R?Oe:0,height:A,...T==null?void 0:T.style}}),e.map((we,Le)=>{const Ce=n==null?void 0:n(we);return fe.current[Le]||(fe.current[Le]=C.createRef()),S.jsx(Yr,{abaseRef:fe.current[Le],...a,isDisabled:Ce,className:Ye.clsx(Va.Option,Ce&&Va.IsDiabled,we===j&&Va.IsSelected,"IsClickable",b&&Va.Underline,a==null?void 0:a.className),style:{minWidth:se,maxWidth:se,marginLeft:M,marginRight:F,"--color":we===j&&g||m,height:A,...a==null?void 0:a.style},onClick:Se=>{!Ce&&P(we),a&&a.onClick&&a.onClick(Se)},children:S.jsx(u,{option:we})},Le)}),S.jsx(zn,{w:M}),f&&S.jsxs(S.Fragment,{children:[S.jsx(Xu,{}),S.jsx("div",{className:Va.Addon,children:f})]})]})},r8=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=lr.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 xC(...r){const e=C.useRef(!1);C.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const wC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return lr.keys(e).some(p=>{const m=e[p],g=Er.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const b=Er.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof b)&&b!==void 0&&b!==null?b.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return u.toString().toLowerCase().includes(o.toLowerCase());const f=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof f)&&f!==void 0&&f!==null?f.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0)return o.toString().toLowerCase()===u.toString().toLowerCase();const f=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof f)&&f!==void 0&&f!==null?o.toString().toLowerCase()===f.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=rr.toDate(u.toString());return p&&rr.eq(p,o)}const f=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof f)&&f!==void 0&&f!==null){const p=rr.toDate(f.toString());return p&&rr.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=lr.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],u=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(u!==void 0){const p=rr.toDate(u.toString());return p&&rr.be(o.sDate,p,o.eDate)}const f=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof f)&&f!==void 0&&f!==null){const p=rr.toDate(f.toString());return p&&rr.be(o.sDate,p,o.eDate)}return!1}},n8=(r,e,t)=>{let n=r;return lr.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var u;return(u=a.predicate??wC[a.type])==null?void 0:u(c,e,i,a)}))}),n},o8=(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 u=Er.getContent(o.content,{defKey:n,def:o,item:a}),f=Er.getContent(o.content,{defKey:n,def:o,item:c});return typeof u=="string"&&typeof f=="string"?u<f?-1:u>f?1:0:typeof u=="number"&&typeof f=="number"?u-f:typeof u=="string"&&typeof f=="number"?-1:typeof u=="number"&&typeof f=="string"||u===void 0&&f!==void 0?1:u!==void 0&&f===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 u=i(a,c);return t.isAsc?u:-u})},i8=(r,e,t)=>r.slice((e-1)*t,e*t),CC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},s8=(r,e,t,n)=>{const o=CC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,u=o.slice(a-1,c);return{pages:o,rangedPages:u}},a8=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const b=t[g],w=Er.getContent(b.hContent,{defKey:g,def:b});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Er.getContent(b.name,{defKey:g,def:b});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 b=[];o.forEach(T=>{const A=t[T],_=Er.getContent(A.content,{defKey:T,def:A,item:g});if(_!==void 0){if(typeof _=="string"){b.push(_);return}else if(typeof _=="number"){b.push(_.toString());return}}const R=g[T];typeof R=="string"?b.push(R):typeof R=="number"?b.push(R.toString()):b.push("")});const w=b.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,u="\uFEFF"+n.join(`
|
|
166
|
+
`),f=new Blob([u],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(f),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},l8=r=>{const e=lr.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},c8=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},u8=r=>{const e=lr.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}},Bl={applyFilteration:n8,applySortation:o8,applyPagination:i8,getPages:CC,getRangedPages:s8,downloadCsv:a8,getSingleFilterValue:l8,getMultiFilterValues:c8,getSelectFilterValue:u8},d8="_ATable_12zow_1",f8={ATable:d8};function SC(r,e,t,n){C.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const h8="_BodyHeader_ys4y0_1",p8="_TRow_ys4y0_7",g8="_OverflowSpace_ys4y0_11",m8="_BodyBody_ys4y0_16",v8="_IsSelected_ys4y0_35",y8="_IsSelectable_ys4y0_39",b8="_IsRowMarked_ys4y0_47",x8="_TH_ys4y0_52",w8="_TD_ys4y0_57",C8="_IsMarked_ys4y0_57",S8="_Resizer_ys4y0_76",_8="_IsMoving_ys4y0_88",A8="_IsResizable_ys4y0_91",E8="_ResizerCenter_ys4y0_94",T8="_ResizerOut_ys4y0_100",R8="_ResizerIn_ys4y0_104",k8="_IsClicked_ys4y0_139",I8="_NoItems_ys4y0_146",M8="_Content_ys4y0_152",On={BodyHeader:h8,TRow:p8,OverflowSpace:g8,BodyBody:m8,IsSelected:v8,IsSelectable:y8,IsRowMarked:b8,TH:x8,TD:w8,IsMarked:C8,Resizer:S8,IsMoving:_8,IsResizable:A8,ResizerCenter:E8,ResizerOut:T8,ResizerIn:R8,IsClicked:k8,NoItems:I8,Content:M8},Fc=25,pm=50,L8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:u,useSortation:f,pagination:p,pagedItems:m,noMarking:g,noDefHeader:b,isLoading:w,onScrollToSelectedReady:T,showRows:A,RowRenderer:_=N8,isRowRendered:R,rowHeight:D,resources:M}=r,[F,B]=C.useMemo(()=>o??[],[o]),z=C.useCallback(Pe=>{i||!B||!F||c!=null&&c(Pe)||(a?F.some(Ne=>t(Ne,Pe))?B(F.filter(Ne=>!t(Ne,Pe))):B([...F,Pe]):B([Pe]))},[F,c,B,t,i,a]);C.useEffect(()=>{a||!F||!B||F.length>1&&B([F[F.length-1]])},[F,B,a]),C.useEffect(()=>{if(!F||!B)return;F.filter(Ne=>c==null?void 0:c(Ne)).length>0&&B(F.filter(Ne=>!(c!=null&&c(Ne))))},[F,B,c]);const[j,G]=f,fe=C.useCallback((Pe,Ne)=>{G&&((j==null?void 0:j.defKey)===Pe?j.isAsc===!0?G({defKey:Pe,isAsc:!1,sortF:Ne}):j.isAsc===!1?G(void 0):G({defKey:Pe,isAsc:!0,sortF:Ne}):G({defKey:Pe,isAsc:!0,sortF:Ne}))},[j,G]),[P,U]=C.useState({elem:null,row:null}),V=C.useRef(null),Q=C.useRef(null),se=C.useCallback(()=>U({elem:V.current,row:Q.current}),[]);C.useEffect(()=>se(),[m.length,se]),SC(window,"resize",se);const[te,re]=C.useState(D);C.useEffect(()=>{const{row:Pe}=P;Pe!=null&&re(Pe.clientHeight)},[P,te]);const ne=C.useMemo(()=>{const{elem:Pe}=P;return Pe?Math.floor(Pe.clientHeight/te):0},[P,te]),be=C.useMemo(()=>A||(m.length<=ne?ne:m.length),[ne,A,m]),ie=C.useMemo(()=>{if(A!==void 0)return A*te},[A,te]),de=C.useMemo(()=>ie,[ie]),me=C.useMemo(()=>{const{elem:Pe}=P;return Pe?Pe.getBoundingClientRect().height/te<m.length:!1},[P,te,m.length]),[Ae,Oe]=C.useState(),oe=C.useMemo(()=>{const{elem:Pe}=P;return!Ae||!Pe?"100%":Pe.clientHeight+(R?0:50)},[Ae,R,P]),ge=C.useRef(null),[we,Le]=C.useState({}),Ce=C.useRef({x:0,y:0}),Se=C.useRef({}),Ie=C.useMemo(()=>lr.keys(we),[we]),et=C.useCallback((Pe,Ne)=>{const Xe=ge.current;if(!Xe)return;const We=[];Xe.childNodes.forEach(De=>{De.classList.contains(On.TH)&&We.push(De)});const Ve={};lr.keys(e).forEach((De,at)=>{const mt=We[at];if(!mt)return;const ut=mt.getBoundingClientRect().width;Ve[De]=ut}),Se.current=Ve,Oe(Ne),Ce.current={x:Pe.clientX,y:Pe.clientY};const lt=De=>{if(!ge.current)return;const mt=De.clientX-Ce.current.x,ut=O8(e,Ne,Se.current,mt);Le(ut)};document.addEventListener("mousemove",lt);const st=()=>{Oe(void 0),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",st)};document.addEventListener("mouseup",st)},[e]),Je=C.useCallback(()=>{Oe(void 0),Le({})},[]),Qe=C.useMemo(()=>{if(Ie.length===0){const Xe={},We=lr.keys(e);for(let Ve=0;Ve<We.length;Ve++){const lt=We[Ve],st=e[lt],De=Er.getContent(st.colSpan,{defKey:lt,def:st}),at=st.width??80,mt=st.minWidth??Fc,ut=st.maxWidth,Dt={width:at,minWidth:mt,maxWidth:ut,flexGrow:De??1};if(Xe[lt]=Dt,De!==void 0){for(let Bt=1;Bt<Math.min(De,We.length-Ve);Bt++){const Pt=e[We[Ve+Bt]],Xt=Pt.width??80,ar=Pt.minWidth??Fc,Kt=Pt.maxWidth;Dt.width+=Xt,Dt.minWidth+=ar,Dt.maxWidth!==void 0&&(Kt!==void 0?Dt.maxWidth+=Kt:Dt.maxWidth=void 0)}Ve+=De-1}}return Xe}const Pe={},Ne=lr.keys(e);for(let Xe=0;Xe<Ne.length;Xe++){let We=Ne[Xe];const Ve=e[We];let lt=we[We];const st=Er.getContent(Ve.colSpan,{defKey:We,def:Ve}),De=Ve.minWidth??Fc,at=Ve.maxWidth,mt={width:lt,minWidth:De,maxWidth:at,flexGrow:st??1};if(Pe[We]=mt,st!==void 0){for(let ut=1;ut<Math.min(st,Ne.length-Xe);ut++){const Dt=e[Ne[Xe+ut]],Bt=we[Ne[Xe+ut]],Pt=Dt.minWidth??Fc,Xt=Dt.maxWidth;mt.width+=Bt,mt.minWidth+=Pt,mt.maxWidth!==void 0&&(Xt!==void 0?mt.maxWidth+=Xt:mt.maxWidth=void 0)}Xe+=st-1}}return Pe},[e,Ie,we]),Ze=C.useRef(null),Ke=C.useMemo(()=>Bl.getSingleFilterValue(u),[u]);C.useEffect(()=>{V.current&&V.current.scrollTo({top:0})},[p.page]);const ht=C.useCallback((Pe="center")=>{F&&F.length>0&&requestAnimationFrame(()=>{var Ne;return(Ne=Q.current)==null?void 0:Ne.scrollIntoView({behavior:"auto",block:Pe})})},[F]);return C.useEffect(()=>{T==null||T(ht)},[T,ht]),S.jsxs(S.Fragment,{children:[S.jsx(Mv,{isLoading:w}),S.jsx("div",{ref:Ze,className:Ye.clsx(On.BodyHeader,Ae!==void 0&&On.IsClicked),style:{display:b||R?"none":"flex"},children:S.jsx("div",{ref:ge,className:On.TRow,style:{minHeight:pm,maxHeight:pm},children:lr.map(e,([Pe],Ne)=>{const Xe=e[Pe],We=Er.getContent(Xe.hContent,{defKey:Pe,def:Xe}),Ve=Xe.name,lt=Ne===lr.keys(e).length-1,st=Xe.width??80,De=Xe.minWidth??Fc,at=Xe.maxWidth,mt={width:st,minWidth:De,maxWidth:at,justifyContent:Er.getContent(Xe.hAlign,{defKey:Pe,def:Xe})??"flex-start",...Er.getContent(Xe.hStyle,{defKey:Pe,def:Xe})};Ie.includes(Pe)&&(mt.width=we[Pe]);const ut=Xe.isSortable,Dt=(j==null?void 0:j.defKey)===Pe,Bt=j==null?void 0:j.isAsc;return S.jsxs(C.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(On.TH,"Label1",ut?"IsClickable":"NoSelect"),style:mt,onClick:()=>ut&&fe(Pe,Xe.sortF),children:[S.jsx(tl,{children:We??Ve,className:On.Content}),ut&&S.jsx(en,{icon:Dt?Bt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!lt&&S.jsxs("div",{className:Ye.sclsx(On,"Resizer","IsResizable","NoSelect",Ae!==void 0&&"IsMoving"),onDoubleClick:Je,onMouseDown:Pt=>et(Pt,Pe),children:[S.jsx("div",{className:On.ResizerOut}),S.jsx("div",{className:On.ResizerIn}),S.jsx("div",{className:On.ResizerCenter,style:{height:oe}}),S.jsx("div",{className:On.ResizerIn}),S.jsx("div",{className:On.ResizerOut})]}),lt&&S.jsx(zn,{className:On.OverflowSpace,h:pm,style:{color:mt.color,backgroundColor:mt.backgroundColor,transition:mt.transition},w:"var(--Scrollbar-width)"})]},Pe)})})}),S.jsxs("div",{ref:V,className:Ye.clsx(On.BodyBody,Ae!==void 0&&On.IsClicked),style:{overflowY:me?"scroll":"hidden",minHeight:ie,maxHeight:de},children:[m.map((Pe,Ne)=>{const Xe=Er.getContent(n,{item:Pe}),We=B&&!i,Ve=F==null?void 0:F.some(at=>t(at,Pe)),lt=F&&(c==null?void 0:c(Pe)),st=typeof lt=="string"?lt:void 0,De={...Pe};return R&&lr.keys(e).forEach(at=>{const mt=e[at],ut=Er.getContent(mt.content,{defKey:at,def:mt,item:Pe});let Dt=!1;if(Ke&&!g){const Bt=Er.getContent(mt.asText,{defKey:at,def:mt,item:Pe});Bt!==void 0?Dt=Bt.toString().toLowerCase().includes(Ke.toLowerCase()):["string","number"].includes(typeof ut)&&ut!==void 0&&ut!==null&&(Dt=ut.toString().toLowerCase().includes(Ke.toLowerCase()))}De[at]=S.jsx("span",{className:Ye.clsx(Dt&&On.IsRowMarked),children:De[at]})}),S.jsx(Yr,{isDisabled:lt,tooltip:st,...Xe,abaseRef:Ve?Q:void 0,className:Ye.clsx(Xe==null?void 0:Xe.className,We&&On.IsSelectable,Ve&&On.IsSelected),onClick:at=>{var mt;z(Pe),(mt=Xe==null?void 0:Xe.onClick)==null||mt.call(Xe,at)},children:S.jsx(_,{defs:e,isBodyBodyOverflowed:me,item:Pe,markedItem:De,noMarking:g,rowHeight:D,singleFilterValue:Ke,spanWidths:Qe})},Ne)}),S.jsx(D8,{isRowRendered:R,itemsLength:m.length,resources:M,rowHeight:te,showRows:be})]})]})},D8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=C.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,u)=>S.jsx("div",{className:Ye.clsx(On.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&u===Math.floor(e/2)&&S.jsx(kn,{className:On.NoItems,children:n["No Items"]})},u))};function O8(r,e,t,n){const o={...t},i=lr.keys(r).findIndex(f=>f===e)+1,a=Object.entries(r);let c=i-1,u=i;if(n<0){for(;n<0&&!(c<0||u>=a.length);){const[f,p]=[a[c][0],a[c][1]],[m,g]=[a[u][0],a[u][1]],b=p.minWidth??Fc,w=g.maxWidth,T=o[f],A=o[m];let _=T-b;w!==void 0&&(_=Math.min(_,w-A));let R=-n;R=Math.min(R,_),T-R<=b&&c--,w!==void 0&&A+R>=w&&u++,o[f]=T-R,o[m]=A+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||u>=a.length);){const[f,p]=[a[c][0],a[c][1]],[m,g]=[a[u][0],a[u][1]],b=g.minWidth??Fc,w=p.maxWidth,T=o[m],A=o[f];let _=T-b;w!==void 0&&(_=Math.min(_,w-A));let R=n;R=Math.min(R,_),T-R<=b&&u++,w!==void 0&&A+R>=w&&c--,o[m]=T-R,o[f]=A+R,n-=R}return o}return o}const N8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return S.jsx("div",{className:Ye.clsx(On.TRow),style:{minHeight:c,maxHeight:c},children:lr.map(e,([u],f)=>{const p=o[u];if(p===void 0)return null;const m=f===lr.keys(e).length-1,g=e[u],b=Er.getContent(g.content,{defKey:u,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Er.getContent(g.align,{defKey:u,def:g,item:t})??"flex-start",...Er.getContent(g.style,{defKey:u,def:g,item:t})};let T=!1;if(i&&!n){const A=Er.getContent(g.asText,{defKey:u,def:g,item:t});A!==void 0?T=A.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof b)&&b!==void 0&&b!==null&&(T=b.toString().toLowerCase().includes(i.toLowerCase()))}return S.jsxs(C.Fragment,{children:[S.jsx("div",{className:Ye.clsx(On.TD,"Label1",T&&On.IsMarked),style:w,children:S.jsx(tl,{children:b,className:On.Content})}),!a&&m&&S.jsx(zn,{className:On.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},u)})})},P8="_ATableFooter_w090q_1",B8="_Button_w090q_10",F8="_IsSelected_w090q_26",j8="_IsDisabled_w090q_31",oa={ATableFooter:P8,Button:B8,IsSelected:F8,IsDisabled:j8},z8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=C.useMemo(()=>e[e.length-1],[e]);return S.jsxs(kn,{className:oa.ATableFooter,children:[S.jsx(en,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),S.jsx(en,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>S.jsx("div",{className:Ye.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),S.jsx(en,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),S.jsx(en,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},H8="_Filter_1b9j0_1",$8="_SelectFilter_1b9j0_11",q8="_MainFilter_1b9j0_15",U8="_IsOpen_1b9j0_26",W8="_SubFilters_1b9j0_30",V8="_Input_1b9j0_44",G8="_Main_1b9j0_15",Y8="_Sub_1b9j0_30",Z8="_Actions_1b9j0_62",K8="_Icon_1b9j0_67",X8="_LeftIcon_1b9j0_74",J8="_CircleAlertOutline_1b9j0_79",Q8="_Rotate_1b9j0_87",Or={Filter:H8,SelectFilter:$8,MainFilter:q8,IsOpen:U8,SubFilters:W8,Input:V8,Main:G8,Sub:Y8,Actions:Z8,Icon:K8,LeftIcon:X8,CircleAlertOutline:J8,Rotate:Q8},e9=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:u,placeholder:f}=r,[p,m]=C.useState([]),[g,b]=C.useMemo(()=>t,[t]),w=C.useMemo(()=>c==="Select",[c]),T=C.useMemo(()=>lr.keys(g).map(oe=>String(oe)),[g]),[A,_]=C.useState(w&&T.length>0?T[0]:null),R=C.useCallback((oe,ge,we)=>{if(!b)return;const Le={...g};oe.value=ge,b(Le),m(Ce=>Ce.map((Se,Ie)=>Ie===(we?we+1:0)?"":Se))},[g,b]),D=C.useMemo(()=>{let oe=[],ge=lr.keys(g);w&&A&&(ge=ge.filter(we=>we===A));for(const we of ge)oe.push({key:we,def:e[we],filter:g[we]});return oe},[g,e,w,A]),M=C.useMemo(()=>D.length>0?D[0]:null,[D]),F=C.useMemo(()=>p.length>0?p[0]:"",[p]),B=C.useMemo(()=>D.length>1?D.slice(1):[],[D]),z=C.useMemo(()=>p.length>1?p.slice(1):[],[p]),j=C.useMemo(()=>B.length>0,[B]),[G,fe]=C.useState(!1),[P,U]=C.useState(!1),V=C.useRef(null),Q=C.useCallback(()=>fe(!1),[]),se=C.useRef(null),te=C.useCallback(()=>{U(!1),fe(!0),se.current&&(document.removeEventListener("mousedown",se.current),se.current=null)},[]),re=C.useCallback(()=>{const oe=ge=>{const we=document.getElementById("root"),Le=ge.target,Ce=V.current;!we||!Ce||!Le||!Ce.contains(Le)&&we.contains(Le)&&te()};return se.current=oe,oe},[te]),ne=C.useCallback(()=>{fe(!0),U(!0),setTimeout(()=>{const oe=re();document.addEventListener("mousedown",oe)},0)},[re]),be=C.useMemo(()=>P?te:ne,[P,ne,te]),ie=C.useCallback(()=>{const oe=D.map((ge,we)=>ge.filter.type==="String"&&ge.filter.validation?ge.filter.validation(ge.filter.value||""):ge.filter.type==="Date"&&ge.filter.validation||ge.filter.type==="DateRange"&&ge.filter.validation?ge.filter.validation(ge.filter.value):p[we]);return m(oe),oe.every(ge=>!ge)},[p,D]),de=C.useCallback(oe=>{oe.key==="Enter"?(ie()&&o.apply(),oe.stopPropagation()):oe.key==="Escape"&&(U(!1),oe.currentTarget.focus(),oe.currentTarget.blur(),oe.stopPropagation())},[ie,U,o]),me=C.useMemo(()=>({open:ne,close:te,toggle:be,validate:ie}),[ne,te,be,ie]),Ae=C.useCallback(()=>{o.clear()},[o]),Oe=C.useCallback(oe=>{if(!b||!oe)return;_(oe);const ge={...g};lr.keys(ge).forEach(we=>{if(we!==oe&&ge[we])switch(ge[we].type){case"String":ge[we].value="";break;case"Select":ge[we].value=null;break;case"Date":ge[we].value=void 0;break;case"DateRange":ge[we].value=void 0;break}}),m([]),b(ge),o.clear(),setTimeout(()=>{var Le;const we=(Le=V.current)==null?void 0:Le.querySelector("input");we&&we.focus()},0)},[g,b,m,o]);return M?S.jsxs(S.Fragment,{children:[w&&S.jsx(zl,{isAutoWidth:!0,className:Ye.clsx(Or.SelectFilter),options:T,type:"Secondary",useSelect:[A,Oe],OptionRenderer:({option:oe})=>{const ge=e[oe];let we;if(ge!=null&&ge.hContent){const Le={defKey:oe,def:ge};we=typeof ge.hContent=="function"?ge.hContent(Le):ge.hContent}else{const Le=g[oe],Ce=(ge==null?void 0:ge.name)||(Le==null?void 0:Le.placeholder)||String(oe);we=S.jsx("span",{children:Ce})}return we}}),S.jsxs("div",{ref:V,className:Ye.clsx(Or.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:de,onClick:oe=>{oe.preventDefault(),oe.stopPropagation()},children:[S.jsx(t9,{errorMessage:F,filterF:o,filterSet:M,hasSelectFilterType:w,hasSubFilters:j,hasToggleFilteration:n,isOpen:P,placeholder:f,popupF:me,resources:u,onChange:R}),!w&&S.jsx(r9,{errorMessages:z,filterF:o,isOpen:P,isTransitioning:G,placeholder:f,resources:u,subFilterSets:B,validate:ie,onChange:R,onClearClick:Ae,onTransitionEnd:Q})]})]}):null},t9=r=>{var g,b,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:u,resources:f,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const A=[e.filter.value??"",M=>o(e.filter,M)],_=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:R??"Type",isOpen:u,tooltip:D}),S.jsx(Gc,{autoFocus:e.filter.autoFocus,className:Ye.clsx(Or.Input,Or.Main),dataList:e.filter.dataList,LeftAddon:t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),maxLength:e.filter.maxLength,placeholder:_??f["Search(Placeholder)"],type:p?"Error":"Primary",useValue:A,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:S.jsx(fp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:f})})]})}else if(e.filter.type==="Select"){const A=[e.filter.value??null,M=>{o(e.filter,M),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],_=m??e.filter.placeholder??((b=e.def)==null?void 0:b.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:R??"Menu",isOpen:u,tooltip:D}),S.jsx(zl,{className:Ye.clsx(Or.Input,Or.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:_,useSelect:A,SelectedRenderer:({OptionRenderer:M,selectedOption:F})=>F===null?_||e.filter.placeholder:S.jsxs(S.Fragment,{children:[t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),S.jsx(M,{option:F}),S.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:u,popupF:c,resources:f})]})})]})}else if(e.filter.type==="Date"){const A=[e.filter.value,M=>o(e.filter,M)],_=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:R??"CalendarDay",isOpen:u,tooltip:D}),S.jsx(kv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:_,type:"Raw",useDate:A,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),!t&&S.jsx(zn,{w:u?0:6}),S.jsx(Ya,{icon:R??"CalendarDay",isOpen:!u,tooltip:D}),S.jsx(zn,{w:u?8:0})]}),RightAddon:S.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:f})})]})}else if(e.filter.type==="DateRange"){const A=[e.filter.value,F=>o(e.filter,F)],{noDefaultChoices:_}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,M=e.filter.iconTooltip??R;return S.jsxs("div",{className:Ye.clsx(Or.MainFilter,u&&Or.IsOpen),children:[S.jsx(Ya,{icon:D??"CalendarDay",isOpen:u,tooltip:M}),S.jsx(Tv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:_,placeholder:R,type:"Raw",useDateRange:A,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(dp,{isOpen:u,filterF:i,popupF:c,resources:f}),!t&&S.jsx(zn,{w:u?0:6}),S.jsx(Ya,{icon:D??"CalendarDay",isOpen:!u,tooltip:M}),S.jsx(zn,{w:u?8:0})]}),RightAddon:S.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:u,popupF:c,resources:f})})]})}return null},dp=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return S.jsx(ho,{className:Or.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Or.Rotate),onClick:i=>{i.currentTarget.classList.add(Or.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:u}=r,f=C.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=C.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=C.useCallback(g=>{g.stopPropagation(),t.validate()&&u.apply()},[t,u]);return S.jsxs(C.Fragment,{children:[i&&S.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&S.jsx(ho,{className:Or.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:f}),e&&!c&&S.jsx(ho,{className:Or.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&S.jsx(ho,{className:Or.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})]})},r9=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:u,placeholder:f,filterF:p,validate:m}=r;return!o&&!i?null:S.jsxs("div",{className:Or.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,b)=>{var w,T,A,_;if(g.filter.type==="String"){const R=[g.filter.value??"",z=>t(g.filter,z,b)],D=u[b],M=f??g.filter.placeholder??((w=g.def)==null?void 0:w.name),F=g.filter.icon,B=g.filter.iconTooltip??M;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"Type",tooltip:B}),S.jsx(Gc,{autoFocus:g.filter.autoFocus,className:Ye.clsx(Or.Input,Or.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:M??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&S.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),S.jsx(zn,{h:8})]},b)}else if(g.filter.type==="Select"){const R=[g.filter.value??null,B=>t(g.filter,B)],D=f??g.filter.placeholder??((T=g.def)==null?void 0:T.name),M=g.filter.icon,F=g.filter.iconTooltip??D;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:M??"Menu",tooltip:F}),S.jsx(zl,{arrowProps:{style:{marginRight:4}},className:Ye.clsx(Or.Input,Or.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:D,type:"Secondary",useSelect:R}),S.jsx(zn,{h:8})]},b)}else if(g.filter.type==="Date"){const R=[g.filter.value,B=>t(g.filter,B)],D=f??g.filter.placeholder??((A=g.def)==null?void 0:A.name),M=g.filter.icon,F=g.filter.iconTooltip??D;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:M??"CalendarDay",tooltip:F}),S.jsx(kv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:S.jsx(zn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:D,type:"Raw",useDate:R}),S.jsx(zn,{h:8})]},b)}else if(g.filter.type==="DateRange"){const R=[g.filter.value,z=>t(g.filter,z)],{noDefaultChoices:D}=g.filter,M=f??g.filter.placeholder??((_=g.def)==null?void 0:_.name),F=g.filter.icon,B=g.filter.iconTooltip??M;return S.jsxs(kn,{style:{marginBottom:6},children:[S.jsx(Ya,{icon:F??"CalendarDay",tooltip:B}),S.jsx(Tv,{className:Ye.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:S.jsx(zn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:D,placeholder:M,type:"Raw",useDateRange:R})]},b)}else return null}),S.jsxs(kn,{className:Or.Actions,children:[S.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),S.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return S.jsx(ho,{className:Or.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},n9="_ATableHeader_1hzfz_1",o9="_LeftHeaderContent_1hzfz_11",i9="_RightHeaderContent_1hzfz_19",s9="_TopRightAddon_1hzfz_27",a9="_HItem_1hzfz_32",Pu={ATableHeader:n9,LeftHeaderContent:o9,RightHeaderContent:i9,TopRightAddon:s9,HItem:a9},l9=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:u,noCount:f,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:b,resources:w=wr.ATable,filterType:T,placeholder:A}=r,[_]=C.useMemo(()=>o||[],[o]),R=C.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[D]=i,[M,F]=b,[B,z]=C.useState(!1),j=C.useMemo(()=>{const re=lr.values(D).filter(ie=>ie.type==="DateRange"),ne=lr.keys(D).filter(ie=>re.includes(D[ie])),be=lr.keys(e).filter(ie=>e[ie].isSortable);return ne.length>0?(ne.length>1&&z(!0),be.map(de=>ne.includes(de)?[de+"_Asc",de+"_Desc"]:de).flat()):be},[e,D]),G=C.useMemo(()=>r.isRowRendered&&j.length>0,[j.length,r.isRowRendered]),fe=C.useCallback((re,ne)=>{F&&(M==null?void 0:M.defKey)===re&&(M.isAsc===!0?F({defKey:re,isAsc:!1,sortF:ne}):F({defKey:re,isAsc:!0,sortF:ne}))},[M,F]),P=C.useRef(),[U,V]=C.useState(),[Q,se]=C.useState(M?M.defKey:j[0]),te=C.useMemo(()=>{if(!U)return{};const re=e[U];return{SortUp:{onClick:()=>{F==null||F({defKey:U,isAsc:!0,sortF:re.sortF}),se(U)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{F==null||F({defKey:U,isAsc:!1,sortF:re.sortF}),se(U)},content:()=>w["Sort down"]}}},[F,U,e,w]);return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Pu.ATableHeader),children:[S.jsxs("div",{className:Ye.clsx(Pu.LeftHeaderContent,"NoSelect"),children:[S.jsxs(kn,{style:{marginBottom:G?8:0},children:[m&&S.jsx("div",{className:Ye.clsx(Pu.HItem),children:m}),t&&S.jsx("div",{className:Ye.clsx(Pu.HItem),style:{whiteSpace:"nowrap"},children:t}),!f&&S.jsxs("div",{className:Ye.clsx(Pu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,_&&_.length>0&&S.jsxs(S.Fragment,{children:[" / ",w["Checked n items"](_.length)]})]})]}),G&&S.jsx(bC,{options:j,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:re=>{var ie;const ne=re.currentTarget.textContent;if(ne===w[ne])return;re.currentTarget.querySelector("svg")===null&&((ie=P.current)==null||ie.open(re.currentTarget))}},OptionRenderer:re=>{const ne=/_Asc|_Desc/.test(re.option),be=(M==null?void 0:M.defKey)===re.option,ie=Q===re.option,de=M==null?void 0:M.isAsc,me=()=>{if(ne){V(void 0),se(re.option);const[oe,ge]=re.option.split("_"),we=ge==="Asc";F==null||F({defKey:oe,isAsc:we,sortF:e[oe].sortF})}else ie?fe(re.option,e[re.option].sortF):V(re.option)},Oe=ne?(oe=>{const[ge,we]=oe.split("_");return(B?ge+" ":"")+w[we]})(re.option):w["Sort by x"](re.option);return S.jsxs(kn,{className:Ye.clsx(!(ne&&ie)&&"IsClickable"),style:{height:"100%"},onClick:me,children:[Oe,ie&&!ne&&S.jsx(en,{icon:be?de?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},re.option)}})]}),S.jsx(Xu,{}),S.jsxs("div",{className:Ye.clsx(Pu.RightHeaderContent,"NoSelect"),children:[!u&&S.jsx(e9,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:j.length>0,isRowRendered:r.isRowRendered,placeholder:A,resources:w,useFilteration:i}),g&&S.jsx(kn,{children:g,className:Ye.clsx(Pu.TopRightAddon)})]})]}),S.jsx(vC,{actionRef:P,defs:te,position:bf.S,width:100,onClose:()=>V(void 0)})]})},c9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:u,checkDisabled:f,isLoading:p,isDisabled:m,title:g,entireItems:b,onStateChange:w,pagedItems:T,pageNumber:A,totalCount:_,useFilteration:R,useToggleFilteration:D,filterType:M="Default",placeholder:F,rowHeight:B=40,usePagination:z,useSortation:j,showRows:G,noHeader:fe,noDefHeader:P,noFooter:U,noFilter:V,noCount:Q,noMarking:se,noStateChangeOnMount:te,TopLeftAddon:re,TopRightAddon:ne,actionRef:be,RowRenderer:ie,resources:de}=r,me=C.useMemo(()=>({...wr.ATable,...de}),[de]),Ae=C.useRef(null),Oe=C.useCallback((Ee,qe)=>t!==void 0?Array.isArray(t)?t.every(Tt=>Za.isEqual(Ee[Tt],qe[Tt])):Za.isEqual(Ee[t],qe[t]):Za.isEqual(Ee,qe),[t]),oe=C.useMemo(()=>({content:u9,...n}),[n]),ge=C.useMemo(()=>{const Ee={};return lr.keys(e).forEach(qe=>{const Tt=e[qe],$t={...oe,...Tt};Ee[qe]=$t}),Ee},[oe,e]),[we,Le]=vn(Za.cloneDeep(R),{"":{type:"String",placeholder:me["Search(Placeholder)"],value:""}}),[Ce,Se]=vn(Za.cloneDeep(D),void 0),[Ie,et]=C.useState(!1),[Je,Qe]=C.useMemo(()=>Ie&&Ce?[Ce,Se]:[we,Le],[we,Ie,Le,Se,Ce]),[Ze,Ke]=C.useState(Je),ht=C.useMemo(()=>b?Bl.applyFilteration(b,ge,Ze):[],[b,ge,Ze]),Pe=C.useMemo(()=>{for(const Ee in Ze){const qe=Ze[Ee];if(qe.value!==void 0&&qe.value!==null&&qe.value!=="")return!0}return!1},[Ze]),[Ne,Xe]=vn(j,void 0),We=C.useMemo(()=>Bl.applySortation(ht,ge,Ne),[ht,ge,Ne]),Ve=C.useMemo(()=>{if(T!==void 0)return Bl.applySortation(T,ge,Ne)},[T,ge,Ne]),[lt,st]=vn(z,{page:1,pageSize:50,pageRange:10}),De=C.useMemo(()=>{const Ee=A??lt.page??1;return{pageSize:50,pageRange:10,...lt,page:Ee}},[lt,A]),{pagedItems:at,totalCount:mt,pagination:ut}=C.useMemo(()=>{const Ee={...De};if(Ve!==void 0){let qe=_??Ve.length;const Tt=Bl.getPages(qe,Ee.pageSize);return Ee.page>Tt.length?Ee.page=Tt.length:Ee.page<1&&(Ee.page=1),{pagedItems:Ve,totalCount:qe,pagination:Ee}}else if(b!==void 0){const qe=_??We.length,Tt=Bl.getPages(qe,Ee.pageSize);return Ee.page>Tt.length?Ee.page=Tt.length:Ee.page<1&&(Ee.page=1),{pagedItems:Bl.applyPagination(We,Ee.page,Ee.pageSize),totalCount:qe,pagination:Ee}}else return{pagedItems:[],totalCount:_??0,pagination:De}},[b,Ve,_,De,We]),{pages:Dt,rangedPages:Bt}=C.useMemo(()=>Bl.getRangedPages(ut.page,mt,ut.pageSize,ut.pageRange),[mt,ut.pageSize,ut.page,ut.pageRange]),[Pt,Xt]=C.useMemo(()=>u??[],[u]),ar=C.useMemo(()=>at.filter(Ee=>Pt==null?void 0:Pt.some(qe=>Oe(qe,Ee))),[at,Pt,Oe]),Kt=C.useMemo(()=>at.filter(Ee=>!(f!=null&&f(Ee))),[at,f]),cr=C.useMemo(()=>Kt.length>0&&Kt.every(Ee=>ar.some(qe=>Oe(qe,Ee))),[ar,Kt,Oe]),Te=C.useMemo(()=>cr?!1:Kt.some(Ee=>ar.some(qe=>Oe(qe,Ee))),[ar,Kt,cr,Oe]),ae=C.useCallback(()=>{!Pt||!Xt||m||Xt(cr||Te?Pt.filter(Ee=>!Kt.some(qe=>Oe(qe,Ee))):[...Pt,...Kt])},[Pt,Xt,cr,Te,Kt,m,Oe]),it=C.useCallback(Ee=>{!Pt||!Xt||m||(Pt.some(qe=>Oe(qe,Ee))?Xt(Pt.filter(qe=>!Oe(qe,Ee))):Xt([...Pt,Ee]))},[Pt,Xt,m,Oe]);C.useEffect(()=>{if(!Xt||!Pt||!f)return;Pt.filter(qe=>f(qe)).length>0&&Xt(Pt.filter(qe=>!f(qe)))},[f,Pt,Xt]);const bt=C.useMemo(()=>({hContent:Pt&&S.jsx(af,{isIndeterminate:Te,useCheck:[cr,ae]}),content:Ee=>{const{item:qe}=Ee,Tt=f==null?void 0:f(qe),$t=typeof Tt=="string"?Tt:void 0,_t=Pt==null?void 0:Pt.some(he=>Oe(he,qe));return S.jsx(af,{isDisabled:Tt,style:{zIndex:1},tooltip:$t,useCheck:[_t,()=>it(qe)],onClick:he=>he.stopPropagation()})},minWidth:32,maxWidth:32}),[Pt,cr,Te,Oe,ae,f,it]),qt=C.useMemo(()=>u?{checkDef:bt,...ge}:ge,[ge,bt,u]),[Ft,Lt]=C.useState(!1),Ht=C.useMemo(()=>p??Ft,[p,Ft]),Ue=C.useCallback(async Ee=>{w&&(Lt(!0),await w(Ee),Lt(!1)),st==null||st(Ee.pagination),Xe==null||Xe(Ee.sortation),Ke(Ee.filteration)},[w,st,Xe]),dt=C.useCallback(Ee=>{var qe;(qe=Ae.current)==null||qe.call(Ae,Ee)},[]);C.useEffect(()=>{if(!be)return;const Ee=Tt=>{const $t={entireItems:b,filteration:Je,pagination:ut,sortation:Ne},_t=Tt?Tt($t):$t;Ue(_t)},qe=Tt=>{const $t={...ut,page:1},_t=Tt?Tt(Je):Je;Ue({entireItems:b,filteration:_t,pagination:$t,sortation:Ne}),Qe==null||Qe(_t)};be.current={fireOnStateChange:Ee,applyFilteration:qe,scrollToSelected:dt}},[be,Ue,b,Qe,Je,ut,Ne,dt]);const yt=C.useCallback(Ee=>{Ee.page===ut.page&&Ee.pageSize===ut.pageSize||(Ee.page<1?Ee.page=1:Ee.page>Dt[Dt.length-1]&&(Ee.page=Dt[Dt.length-1]),Ue({entireItems:b,filteration:Ze,pagination:Ee,sortation:Ne}))},[ut,Dt,Ue,b,Ze,Ne]),Et=C.useCallback(Ee=>{Qe&&Qe(Ee)},[Qe]),Nt=C.useCallback(Ee=>{Ue({entireItems:b,filteration:Ze,pagination:ut,sortation:Ee})},[Ue,b,Ze,ut]),rt=C.useCallback(Ee=>{yt({...ut,page:Ee})},[yt,ut]),St=C.useCallback(()=>{rt(ut.page-1)},[rt,ut.page]),jt=C.useCallback(()=>{rt(ut.page+1)},[rt,ut.page]),tr=C.useCallback(()=>{rt(1)},[rt]),Ut=C.useCallback(()=>{rt(Dt[Dt.length-1])},[rt,Dt]),br=C.useMemo(()=>({move:rt,movePrev:St,moveNext:jt,moveFirst:tr,moveLast:Ut}),[rt,St,jt,tr,Ut]),Nr=C.useCallback(()=>{const Ee={...ut,page:1};Ue({entireItems:b,filteration:Je,pagination:Ee,sortation:Ne})},[Je,ut,Ue,b,Ne]),pr=C.useCallback(()=>{et(!Ie)},[Ie]),pe=C.useCallback(()=>{Ie&&Ce?Se==null||Se(I0(Ce)):Qe==null||Qe(I0(we))},[Ie,Ce,Se,we,Qe]),pt=C.useMemo(()=>({apply:Nr,toggle:pr,clear:pe}),[Nr,pr,pe]);xC(()=>{te||Ue({entireItems:b,filteration:Je,pagination:ut,sortation:Ne})});const It=C.useMemo(()=>lr.map(ge,([qe])=>ge[qe].minWidth??Fc).reduce((qe,Tt)=>qe+Tt,0),[ge]),je=C.useMemo(()=>ie!==void 0,[ie]);return S.jsxs(Yr,{className:f8.ATable,isDisabled:m,style:{minWidth:It},children:[!fe&&S.jsx(l9,{defs:ge,filterF:pt,filterType:M,hasToggleFilteration:Ce!==void 0,isFiltered:Pe,isRowRendered:je,noCount:Q,noFilter:V,placeholder:F,resources:me,title:g,TopLeftAddon:re,TopRightAddon:ne,totalCount:mt,useCheck:u&&Pt?[Pt,Xt]:void 0,useFilteration:[Je,Et],useSortation:[Ne,Nt]}),S.jsx(L8,{appliedFilteration:Ze,defs:qt,isEqual:Oe,isLoading:Ht,isRowRendered:je,isSelectMulti:a,isTableDisabled:m,noDefHeader:P,noMarking:se,pagedItems:at,pagination:ut,resources:me,rowHeight:B,RowRenderer:ie,rProps:o,selectDisabled:c,showRows:G,useSelect:i,useSortation:[Ne,Nt],onScrollToSelectedReady:Ee=>Ae.current=Ee}),!U&&S.jsx(z8,{pageF:br,pages:Dt,pagination:ut,rangedPages:Bt})]})},u9=r=>{const{defKey:e,item:t}=r;if(lr.hasKey(t,e)){const n=t[e];return lr.isReactNode(n)?n:null}else return null};function I0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const d9="_AText_1asz6_1",f9={AText:d9},_C=r=>{const{text:e,styled:t,style:n}=r,o=C.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?S.jsx("b",{children:e}):S.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>S.jsxs(C.Fragment,{children:[hp(a),c<i.length-1?S.jsx("b",{children:hp(t)}):""]},c)):i.map((a,c)=>S.jsxs(C.Fragment,{children:[hp(a),c<i.length-1&&S.jsx("span",{style:n,children:hp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return S.jsx("div",{className:Ye.clsx("Body1Reading",f9.AText,"NoSelect"),children:o})};function hp(r){const e=r.split(`
|
|
167
|
+
`);return e.map((t,n)=>S.jsxs(C.Fragment,{children:[t,n!==e.length-1&&S.jsx("br",{})]},n))}const h9="_Base_cpm4t_7",p9="_ATextArea_cpm4t_11",g9="_Primary_cpm4t_34",m9="_UnAvailable_cpm4t_39",v9="_Secondary_cpm4t_47",y9="_ReadOnly_cpm4t_59",pp={Base:h9,ATextArea:p9,Primary:g9,UnAvailable:m9,Secondary:v9,ReadOnly:y9,Error:"_Error_cpm4t_66"},b9=["Primary","Secondary","ReadOnly","Error"],x9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:u,maxLength:f,tabIndex:p,autoFocus:m,textAreaProps:g,...b}=r,[{wrapId:w,wrapProps:T,labelProps:A,..._},R]=Ku(b),D=C.useMemo(()=>w9(t)?"Error":n,[t,n]),M=C.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),F=C.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[B,z]=vn(i,""),j=C.useCallback(P=>{z&&z(P)},[z]),G=C.useCallback(P=>{var U;F||(j(P.target.value),(U=g==null?void 0:g.onChange)==null||U.call(g,P))},[F,j,g]),fe=C.useCallback(P=>{var U;if(!F){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()}},[F,e,g]);return S.jsx(Vc,{wrapId:w,wrapProps:T,labelProps:A,..._,children:S.jsx(Yr,{...R,className:Ye.clsx(pp.Base,R.className),children:S.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ye.clsx(pp.ATextArea,pp[D],F&&pp.UnAvailable,g==null?void 0:g.className),maxLength:f,placeholder:u,readOnly:M,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:p,value:B,onChange:G,onKeyDown:fe})})})};function w9(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:AC,setPrototypeOf:M0,isFrozen:C9,getPrototypeOf:S9,getOwnPropertyDescriptor:_9}=Object;let{freeze:mi,seal:Os,create:EC}=Object,{apply:P1,construct:B1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});P1||(P1=function(e,t,n){return e.apply(t,n)});B1||(B1=function(e,t){return new e(...t)});const gp=vi(Array.prototype.forEach),A9=vi(Array.prototype.lastIndexOf),L0=vi(Array.prototype.pop),Kf=vi(Array.prototype.push),E9=vi(Array.prototype.splice),$p=vi(String.prototype.toLowerCase),gm=vi(String.prototype.toString),D0=vi(String.prototype.match),Xf=vi(String.prototype.replace),T9=vi(String.prototype.indexOf),R9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),pi=vi(RegExp.prototype.test),Jf=k9(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 P1(r,e,n)}}function k9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return B1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$p;M0&&M0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(C9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function I9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Pl(r){const e=EC(null);for(const[t,n]of AC(r))aa(r,t)&&(Array.isArray(n)?e[t]=I9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Pl(n):e[t]=n);return e}function Qf(r,e){for(;r!==null;){const n=_9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=S9(r)}function t(){return null}return t}const O0=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"]),mm=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"]),vm=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"]),M9=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"]),ym=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"]),L9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N0=mi(["#text"]),P0=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"]),bm=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"]),B0=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"]),D9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),O9=Os(/<%[\w\W]*|[\w\W]*%>/gm),N9=Os(/\$\{[\w\W]*/gm),P9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),B9=Os(/^aria-[\-\w]+$/),TC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),F9=Os(/^(?:\w+script|data):/i),j9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RC=Os(/^html$/i),z9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var F0=Object.freeze({__proto__:null,ARIA_ATTR:B9,ATTR_WHITESPACE:j9,CUSTOM_ELEMENT:z9,DATA_ATTR:P9,DOCTYPE_NAME:RC,ERB_EXPR:O9,IS_ALLOWED_URI:TC,IS_SCRIPT_OR_DATA:F9,MUSTACHE_EXPR:D9,TMPLIT_EXPR:N9});const eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},H9=function(){return typeof window>"u"?null:window},$9=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}},j0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H9();const e=_t=>kC(_t);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:u,NodeFilter:f,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:b}=r,w=u.prototype,T=Qf(w,"cloneNode"),A=Qf(w,"remove"),_=Qf(w,"nextSibling"),R=Qf(w,"childNodes"),D=Qf(w,"parentNode");if(typeof a=="function"){const _t=t.createElement("template");_t.content&&_t.content.ownerDocument&&(t=_t.content.ownerDocument)}let M,F="";const{implementation:B,createNodeIterator:z,createDocumentFragment:j,getElementsByTagName:G}=t,{importNode:fe}=n;let P=j0();e.isSupported=typeof AC=="function"&&typeof D=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:te,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:be}=F0;let{IS_ALLOWED_URI:ie}=F0,de=null;const me=Wr({},[...O0,...mm,...vm,...ym,...N0]);let Ae=null;const Oe=Wr({},[...P0,...bm,...B0,...mp]);let oe=Object.seal(EC(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}})),ge=null,we=null,Le=!0,Ce=!0,Se=!1,Ie=!0,et=!1,Je=!0,Qe=!1,Ze=!1,Ke=!1,ht=!1,Pe=!1,Ne=!1,Xe=!0,We=!1;const Ve="user-content-";let lt=!0,st=!1,De={},at=null;const mt=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 ut=null;const Dt=Wr({},["audio","video","img","source","image","track"]);let Bt=null;const Pt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xt="http://www.w3.org/1998/Math/MathML",ar="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml";let cr=Kt,Te=!1,ae=null;const it=Wr({},[Xt,ar,Kt],gm);let bt=Wr({},["mi","mo","mn","ms","mtext"]),qt=Wr({},["annotation-xml"]);const Ft=Wr({},["title","style","font","a","script"]);let Lt=null;const Ht=["application/xhtml+xml","text/html"],Ue="text/html";let dt=null,yt=null;const Et=t.createElement("form"),Nt=function(he){return he instanceof RegExp||he instanceof Function},rt=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yt&&yt===he)){if((!he||typeof he!="object")&&(he={}),he=Pl(he),Lt=Ht.indexOf(he.PARSER_MEDIA_TYPE)===-1?Ue:he.PARSER_MEDIA_TYPE,dt=Lt==="application/xhtml+xml"?gm:$p,de=aa(he,"ALLOWED_TAGS")?Wr({},he.ALLOWED_TAGS,dt):me,Ae=aa(he,"ALLOWED_ATTR")?Wr({},he.ALLOWED_ATTR,dt):Oe,ae=aa(he,"ALLOWED_NAMESPACES")?Wr({},he.ALLOWED_NAMESPACES,gm):it,Bt=aa(he,"ADD_URI_SAFE_ATTR")?Wr(Pl(Pt),he.ADD_URI_SAFE_ATTR,dt):Pt,ut=aa(he,"ADD_DATA_URI_TAGS")?Wr(Pl(Dt),he.ADD_DATA_URI_TAGS,dt):Dt,at=aa(he,"FORBID_CONTENTS")?Wr({},he.FORBID_CONTENTS,dt):mt,ge=aa(he,"FORBID_TAGS")?Wr({},he.FORBID_TAGS,dt):Pl({}),we=aa(he,"FORBID_ATTR")?Wr({},he.FORBID_ATTR,dt):Pl({}),De=aa(he,"USE_PROFILES")?he.USE_PROFILES:!1,Le=he.ALLOW_ARIA_ATTR!==!1,Ce=he.ALLOW_DATA_ATTR!==!1,Se=he.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=he.ALLOW_SELF_CLOSE_IN_ATTR!==!1,et=he.SAFE_FOR_TEMPLATES||!1,Je=he.SAFE_FOR_XML!==!1,Qe=he.WHOLE_DOCUMENT||!1,ht=he.RETURN_DOM||!1,Pe=he.RETURN_DOM_FRAGMENT||!1,Ne=he.RETURN_TRUSTED_TYPE||!1,Ke=he.FORCE_BODY||!1,Xe=he.SANITIZE_DOM!==!1,We=he.SANITIZE_NAMED_PROPS||!1,lt=he.KEEP_CONTENT!==!1,st=he.IN_PLACE||!1,ie=he.ALLOWED_URI_REGEXP||TC,cr=he.NAMESPACE||Kt,bt=he.MATHML_TEXT_INTEGRATION_POINTS||bt,qt=he.HTML_INTEGRATION_POINTS||qt,oe=he.CUSTOM_ELEMENT_HANDLING||{},he.CUSTOM_ELEMENT_HANDLING&&Nt(he.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=he.CUSTOM_ELEMENT_HANDLING.tagNameCheck),he.CUSTOM_ELEMENT_HANDLING&&Nt(he.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=he.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),he.CUSTOM_ELEMENT_HANDLING&&typeof he.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=he.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(Ce=!1),Pe&&(ht=!0),De&&(de=Wr({},N0),Ae=[],De.html===!0&&(Wr(de,O0),Wr(Ae,P0)),De.svg===!0&&(Wr(de,mm),Wr(Ae,bm),Wr(Ae,mp)),De.svgFilters===!0&&(Wr(de,vm),Wr(Ae,bm),Wr(Ae,mp)),De.mathMl===!0&&(Wr(de,ym),Wr(Ae,B0),Wr(Ae,mp))),he.ADD_TAGS&&(de===me&&(de=Pl(de)),Wr(de,he.ADD_TAGS,dt)),he.ADD_ATTR&&(Ae===Oe&&(Ae=Pl(Ae)),Wr(Ae,he.ADD_ATTR,dt)),he.ADD_URI_SAFE_ATTR&&Wr(Bt,he.ADD_URI_SAFE_ATTR,dt),he.FORBID_CONTENTS&&(at===mt&&(at=Pl(at)),Wr(at,he.FORBID_CONTENTS,dt)),lt&&(de["#text"]=!0),Qe&&Wr(de,["html","head","body"]),de.table&&(Wr(de,["tbody"]),delete ge.tbody),he.TRUSTED_TYPES_POLICY){if(typeof he.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof he.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=he.TRUSTED_TYPES_POLICY,F=M.createHTML("")}else M===void 0&&(M=$9(b,o)),M!==null&&typeof F=="string"&&(F=M.createHTML(""));mi&&mi(he),yt=he}},St=Wr({},[...mm,...vm,...M9]),jt=Wr({},[...ym,...L9]),tr=function(he){let ct=D(he);(!ct||!ct.tagName)&&(ct={namespaceURI:cr,tagName:"template"});const wt=$p(he.tagName),fr=$p(ct.tagName);return ae[he.namespaceURI]?he.namespaceURI===ar?ct.namespaceURI===Kt?wt==="svg":ct.namespaceURI===Xt?wt==="svg"&&(fr==="annotation-xml"||bt[fr]):!!St[wt]:he.namespaceURI===Xt?ct.namespaceURI===Kt?wt==="math":ct.namespaceURI===ar?wt==="math"&&qt[fr]:!!jt[wt]:he.namespaceURI===Kt?ct.namespaceURI===ar&&!qt[fr]||ct.namespaceURI===Xt&&!bt[fr]?!1:!jt[wt]&&(Ft[wt]||!St[wt]):!!(Lt==="application/xhtml+xml"&&ae[he.namespaceURI]):!1},Ut=function(he){Kf(e.removed,{element:he});try{D(he).removeChild(he)}catch{A(he)}},br=function(he,ct){try{Kf(e.removed,{attribute:ct.getAttributeNode(he),from:ct})}catch{Kf(e.removed,{attribute:null,from:ct})}if(ct.removeAttribute(he),he==="is")if(ht||Pe)try{Ut(ct)}catch{}else try{ct.setAttribute(he,"")}catch{}},Nr=function(he){let ct=null,wt=null;if(Ke)he="<remove></remove>"+he;else{const ur=D0(he,/^[\r\n\t ]+/);wt=ur&&ur[0]}Lt==="application/xhtml+xml"&&cr===Kt&&(he='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+he+"</body></html>");const fr=M?M.createHTML(he):he;if(cr===Kt)try{ct=new g().parseFromString(fr,Lt)}catch{}if(!ct||!ct.documentElement){ct=B.createDocument(cr,"template",null);try{ct.documentElement.innerHTML=Te?F:fr}catch{}}const Fr=ct.body||ct.documentElement;return he&&wt&&Fr.insertBefore(t.createTextNode(wt),Fr.childNodes[0]||null),cr===Kt?G.call(ct,Qe?"html":"body")[0]:Qe?ct.documentElement:Fr},pr=function(he){return z.call(he.ownerDocument||he,he,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},pe=function(he){return he instanceof m&&(typeof he.nodeName!="string"||typeof he.textContent!="string"||typeof he.removeChild!="function"||!(he.attributes instanceof p)||typeof he.removeAttribute!="function"||typeof he.setAttribute!="function"||typeof he.namespaceURI!="string"||typeof he.insertBefore!="function"||typeof he.hasChildNodes!="function")},pt=function(he){return typeof c=="function"&&he instanceof c};function It(_t,he,ct){gp(_t,wt=>{wt.call(e,he,ct,yt)})}const je=function(he){let ct=null;if(It(P.beforeSanitizeElements,he,null),pe(he))return Ut(he),!0;const wt=dt(he.nodeName);if(It(P.uponSanitizeElement,he,{tagName:wt,allowedTags:de}),Je&&he.hasChildNodes()&&!pt(he.firstElementChild)&&pi(/<[/\w!]/g,he.innerHTML)&&pi(/<[/\w!]/g,he.textContent)||he.nodeType===eh.progressingInstruction||Je&&he.nodeType===eh.comment&&pi(/<[/\w]/g,he.data))return Ut(he),!0;if(!de[wt]||ge[wt]){if(!ge[wt]&&qe(wt)&&(oe.tagNameCheck instanceof RegExp&&pi(oe.tagNameCheck,wt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(wt)))return!1;if(lt&&!at[wt]){const fr=D(he)||he.parentNode,Fr=R(he)||he.childNodes;if(Fr&&fr){const ur=Fr.length;for(let xr=ur-1;xr>=0;--xr){const tn=T(Fr[xr],!0);tn.__removalCount=(he.__removalCount||0)+1,fr.insertBefore(tn,_(he))}}}return Ut(he),!0}return he instanceof u&&!tr(he)||(wt==="noscript"||wt==="noembed"||wt==="noframes")&&pi(/<\/no(script|embed|frames)/i,he.innerHTML)?(Ut(he),!0):(et&&he.nodeType===eh.text&&(ct=he.textContent,gp([U,V,Q],fr=>{ct=Xf(ct,fr," ")}),he.textContent!==ct&&(Kf(e.removed,{element:he.cloneNode()}),he.textContent=ct)),It(P.afterSanitizeElements,he,null),!1)},Ee=function(he,ct,wt){if(Xe&&(ct==="id"||ct==="name")&&(wt in t||wt in Et))return!1;if(!(Ce&&!we[ct]&&pi(se,ct))){if(!(Le&&pi(te,ct))){if(!Ae[ct]||we[ct]){if(!(qe(he)&&(oe.tagNameCheck instanceof RegExp&&pi(oe.tagNameCheck,he)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(he))&&(oe.attributeNameCheck instanceof RegExp&&pi(oe.attributeNameCheck,ct)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(ct))||ct==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&pi(oe.tagNameCheck,wt)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(wt))))return!1}else if(!Bt[ct]){if(!pi(ie,Xf(wt,ne,""))){if(!((ct==="src"||ct==="xlink:href"||ct==="href")&&he!=="script"&&T9(wt,"data:")===0&&ut[he])){if(!(Se&&!pi(re,Xf(wt,ne,"")))){if(wt)return!1}}}}}}return!0},qe=function(he){return he!=="annotation-xml"&&D0(he,be)},Tt=function(he){It(P.beforeSanitizeAttributes,he,null);const{attributes:ct}=he;if(!ct||pe(he))return;const wt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let fr=ct.length;for(;fr--;){const Fr=ct[fr],{name:ur,namespaceURI:xr,value:tn}=Fr,sn=dt(ur),Pn=tn;let Hr=ur==="value"?Pn:R9(Pn);if(wt.attrName=sn,wt.attrValue=Hr,wt.keepAttr=!0,wt.forceKeepAttr=void 0,It(P.uponSanitizeAttribute,he,wt),Hr=wt.attrValue,We&&(sn==="id"||sn==="name")&&(br(ur,he),Hr=Ve+Hr),Je&&pi(/((--!?|])>)|<\/(style|title)/i,Hr)){br(ur,he);continue}if(wt.forceKeepAttr)continue;if(!wt.keepAttr){br(ur,he);continue}if(!Ie&&pi(/\/>/i,Hr)){br(ur,he);continue}et&&gp([U,V,Q],In=>{Hr=Xf(Hr,In," ")});const rn=dt(he.nodeName);if(!Ee(rn,sn,Hr)){br(ur,he);continue}if(M&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!xr)switch(b.getAttributeType(rn,sn)){case"TrustedHTML":{Hr=M.createHTML(Hr);break}case"TrustedScriptURL":{Hr=M.createScriptURL(Hr);break}}if(Hr!==Pn)try{xr?he.setAttributeNS(xr,ur,Hr):he.setAttribute(ur,Hr),pe(he)?Ut(he):L0(e.removed)}catch{br(ur,he)}}It(P.afterSanitizeAttributes,he,null)},$t=function _t(he){let ct=null;const wt=pr(he);for(It(P.beforeSanitizeShadowDOM,he,null);ct=wt.nextNode();)It(P.uponSanitizeShadowNode,ct,null),je(ct),Tt(ct),ct.content instanceof i&&_t(ct.content);It(P.afterSanitizeShadowDOM,he,null)};return e.sanitize=function(_t){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=null,wt=null,fr=null,Fr=null;if(Te=!_t,Te&&(_t="<!-->"),typeof _t!="string"&&!pt(_t))if(typeof _t.toString=="function"){if(_t=_t.toString(),typeof _t!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!e.isSupported)return _t;if(Ze||rt(he),e.removed=[],typeof _t=="string"&&(st=!1),st){if(_t.nodeName){const tn=dt(_t.nodeName);if(!de[tn]||ge[tn])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(_t instanceof c)ct=Nr("<!---->"),wt=ct.ownerDocument.importNode(_t,!0),wt.nodeType===eh.element&&wt.nodeName==="BODY"||wt.nodeName==="HTML"?ct=wt:ct.appendChild(wt);else{if(!ht&&!et&&!Qe&&_t.indexOf("<")===-1)return M&&Ne?M.createHTML(_t):_t;if(ct=Nr(_t),!ct)return ht?null:Ne?F:""}ct&&Ke&&Ut(ct.firstChild);const ur=pr(st?_t:ct);for(;fr=ur.nextNode();)je(fr),Tt(fr),fr.content instanceof i&&$t(fr.content);if(st)return _t;if(ht){if(Pe)for(Fr=j.call(ct.ownerDocument);ct.firstChild;)Fr.appendChild(ct.firstChild);else Fr=ct;return(Ae.shadowroot||Ae.shadowrootmode)&&(Fr=fe.call(n,Fr,!0)),Fr}let xr=Qe?ct.outerHTML:ct.innerHTML;return Qe&&de["!doctype"]&&ct.ownerDocument&&ct.ownerDocument.doctype&&ct.ownerDocument.doctype.name&&pi(RC,ct.ownerDocument.doctype.name)&&(xr="<!DOCTYPE "+ct.ownerDocument.doctype.name+`>
|
|
168
|
+
`+xr),et&&gp([U,V,Q],tn=>{xr=Xf(xr,tn," ")}),M&&Ne?M.createHTML(xr):xr},e.setConfig=function(){let _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(_t),Ze=!0},e.clearConfig=function(){yt=null,Ze=!1},e.isValidAttribute=function(_t,he,ct){yt||rt({});const wt=dt(_t),fr=dt(he);return Ee(wt,fr,ct)},e.addHook=function(_t,he){typeof he=="function"&&Kf(P[_t],he)},e.removeHook=function(_t,he){if(he!==void 0){const ct=A9(P[_t],he);return ct===-1?void 0:E9(P[_t],ct,1)[0]}return L0(P[_t])},e.removeHooks=function(_t){P[_t]=[]},e.removeAllHooks=function(){P=j0()},e}var q9=kC(),vp={exports:{}},xm,z0;function U9(){if(z0)return xm;z0=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 te=G(P,U,V);if(te)return te}var re=c(P,U),ne=P.substring(0,re);P=P.substring(re),U=U.substring(re),re=f(P,U);var be=P.substring(P.length-re);P=P.substring(0,P.length-re),U=U.substring(0,U.length-re);var ie=o(P,U);return ne&&ie.unshift([t,ne]),be&&ie.push([t,be]),R(ie,se),Q&&m(ie),ie}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,te=Q.indexOf(se);if(te!==-1)return V=[[e,Q.substring(0,te)],[t,se],[e,Q.substring(te+se.length)]],P.length>U.length&&(V[0][0]=V[2][0]=r),V;if(se.length===1)return[[r,P],[e,U]];var re=p(P,U);if(re){var ne=re[0],be=re[1],ie=re[2],de=re[3],me=re[4],Ae=n(ne,ie),Oe=n(be,de);return Ae.concat([[t,me]],Oe)}return i(P,U)}function i(P,U){for(var V=P.length,Q=U.length,se=Math.ceil((V+Q)/2),te=se,re=2*se,ne=new Array(re),be=new Array(re),ie=0;ie<re;ie++)ne[ie]=-1,be[ie]=-1;ne[te+1]=0,be[te+1]=0;for(var de=V-Q,me=de%2!==0,Ae=0,Oe=0,oe=0,ge=0,we=0;we<se;we++){for(var Le=-we+Ae;Le<=we-Oe;Le+=2){var Ce=te+Le,Se;Le===-we||Le!==we&&ne[Ce-1]<ne[Ce+1]?Se=ne[Ce+1]:Se=ne[Ce-1]+1;for(var Ie=Se-Le;Se<V&&Ie<Q&&P.charAt(Se)===U.charAt(Ie);)Se++,Ie++;if(ne[Ce]=Se,Se>V)Oe+=2;else if(Ie>Q)Ae+=2;else if(me){var et=te+de-Le;if(et>=0&&et<re&&be[et]!==-1){var Je=V-be[et];if(Se>=Je)return a(P,U,Se,Ie)}}}for(var Qe=-we+oe;Qe<=we-ge;Qe+=2){var et=te+Qe,Je;Qe===-we||Qe!==we&&be[et-1]<be[et+1]?Je=be[et+1]:Je=be[et-1]+1;for(var Ze=Je-Qe;Je<V&&Ze<Q&&P.charAt(V-Je-1)===U.charAt(Q-Ze-1);)Je++,Ze++;if(be[et]=Je,Je>V)ge+=2;else if(Ze>Q)oe+=2;else if(!me){var Ce=te+de-Qe;if(Ce>=0&&Ce<re&&ne[Ce]!==-1){var Se=ne[Ce],Ie=te+Se-Ce;if(Je=V-Je,Se>=Je)return a(P,U,Se,Ie)}}}}return[[r,P],[e,U]]}function a(P,U,V,Q){var se=P.substring(0,V),te=U.substring(0,Q),re=P.substring(V),ne=U.substring(Q),be=n(se,te),ie=n(re,ne);return be.concat(ie)}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,te=0;V<se;)P.substring(te,se)==U.substring(te,se)?(V=se,te=V):Q=se,se=Math.floor((Q-V)/2+V);return D(P.charCodeAt(se-1))&&se--,se}function u(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 te=0,re=1;;){var ne=P.substring(se-re),be=U.indexOf(ne);if(be==-1)return te;re+=be,(be==0||P.substring(se-re)==U.substring(0,re))&&(te=re,re++)}}function f(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,te=0;V<se;)P.substring(P.length-se,P.length-te)==U.substring(U.length-se,U.length-te)?(V=se,te=V):Q=se,se=Math.floor((Q-V)/2+V);return M(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(Oe,oe,ge){for(var we=Oe.substring(ge,ge+Math.floor(Oe.length/4)),Le=-1,Ce="",Se,Ie,et,Je;(Le=oe.indexOf(we,Le+1))!==-1;){var Qe=c(Oe.substring(ge),oe.substring(Le)),Ze=f(Oe.substring(0,ge),oe.substring(0,Le));Ce.length<Ze+Qe&&(Ce=oe.substring(Le-Ze,Le)+oe.substring(Le,Le+Qe),Se=Oe.substring(0,ge-Ze),Ie=Oe.substring(ge+Qe),et=oe.substring(0,Le-Ze),Je=oe.substring(Le+Qe))}return Ce.length*2>=Oe.length?[Se,Ie,et,Je,Ce]:null}var te=se(V,Q,Math.ceil(V.length/4)),re=se(V,Q,Math.ceil(V.length/2)),ne;if(!te&&!re)return null;re?te?ne=te[4].length>re[4].length?te:re:ne=re:ne=te;var be,ie,de,me;P.length>U.length?(be=ne[0],ie=ne[1],de=ne[2],me=ne[3]):(de=ne[0],me=ne[1],be=ne[2],ie=ne[3]);var Ae=ne[4];return[be,ie,de,me,Ae]}function m(P){for(var U=!1,V=[],Q=0,se=null,te=0,re=0,ne=0,be=0,ie=0;te<P.length;)P[te][0]==t?(V[Q++]=te,re=be,ne=ie,be=0,ie=0,se=P[te][1]):(P[te][0]==e?be+=P[te][1].length:ie+=P[te][1].length,se&&se.length<=Math.max(re,ne)&&se.length<=Math.max(be,ie)&&(P.splice(V[Q-1],0,[r,se]),P[V[Q-1]+1][0]=e,Q--,Q--,te=Q>0?V[Q-1]:-1,re=0,ne=0,be=0,ie=0,se=null,U=!0)),te++;for(U&&R(P),_(P),te=1;te<P.length;){if(P[te-1][0]==r&&P[te][0]==e){var de=P[te-1][1],me=P[te][1],Ae=u(de,me),Oe=u(me,de);Ae>=Oe?(Ae>=de.length/2||Ae>=me.length/2)&&(P.splice(te,0,[t,me.substring(0,Ae)]),P[te-1][1]=de.substring(0,de.length-Ae),P[te+1][1]=me.substring(Ae),te++):(Oe>=de.length/2||Oe>=me.length/2)&&(P.splice(te,0,[t,de.substring(0,Oe)]),P[te-1][0]=e,P[te-1][1]=me.substring(0,me.length-Oe),P[te+1][0]=r,P[te+1][1]=de.substring(Oe),te++),te++}te++}}var g=/[^a-zA-Z0-9]/,b=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,A=/^\r?\n\r?\n/;function _(P){function U(Oe,oe){if(!Oe||!oe)return 6;var ge=Oe.charAt(Oe.length-1),we=oe.charAt(0),Le=ge.match(g),Ce=we.match(g),Se=Le&&ge.match(b),Ie=Ce&&we.match(b),et=Se&&ge.match(w),Je=Ie&&we.match(w),Qe=et&&Oe.match(T),Ze=Je&&oe.match(A);return Qe||Ze?5:et||Je?4:Le&&!Se&&Ie?3:Se||Ie?2:Le||Ce?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],te=P[V+1][1],re=f(Q,se);if(re){var ne=se.substring(se.length-re);Q=Q.substring(0,Q.length-re),se=ne+se.substring(0,se.length-re),te=ne+te}for(var be=Q,ie=se,de=te,me=U(Q,se)+U(se,te);se.charAt(0)===te.charAt(0);){Q+=se.charAt(0),se=se.substring(1)+te.charAt(0),te=te.substring(1);var Ae=U(Q,se)+U(se,te);Ae>=me&&(me=Ae,be=Q,ie=se,de=te)}P[V-1][1]!=be&&(be?P[V-1][1]=be:(P.splice(V-1,1),V--),P[V][1]=ie,de?P[V+1][1]=de:(P.splice(V+1,1),V--))}V++}}function R(P,U){P.push([t,""]);for(var V=0,Q=0,se=0,te="",re="",ne;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:se++,re+=P[V][1],V++;break;case r:Q++,te+=P[V][1],V++;break;case t:var be=V-se-Q-1;if(U){if(be>=0&&B(P[be][1])){var ie=P[be][1].slice(-1);if(P[be][1]=P[be][1].slice(0,-1),te=ie+te,re=ie+re,!P[be][1]){P.splice(be,1),V--;var de=be-1;P[de]&&P[de][0]===e&&(se++,re=P[de][1]+re,de--),P[de]&&P[de][0]===r&&(Q++,te=P[de][1]+te,de--),be=de}}if(F(P[V][1])){var ie=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),te+=ie,re+=ie}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(te.length>0||re.length>0){te.length>0&&re.length>0&&(ne=c(re,te),ne!==0&&(be>=0?P[be][1]+=re.substring(0,ne):(P.splice(0,0,[t,re.substring(0,ne)]),V++),re=re.substring(ne),te=te.substring(ne)),ne=f(re,te),ne!==0&&(P[V][1]=re.substring(re.length-ne)+P[V][1],re=re.substring(0,re.length-ne),te=te.substring(0,te.length-ne)));var me=se+Q;te.length===0&&re.length===0?(P.splice(V-me,me),V=V-me):te.length===0?(P.splice(V-me,me,[e,re]),V=V-me+1):re.length===0?(P.splice(V-me,me,[r,te]),V=V-me+1):(P.splice(V-me,me,[r,te],[e,re]),V=V-me+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,se=0,Q=0,te="",re="";break}}P[P.length-1][1]===""&&P.pop();var Ae=!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),Ae=!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),Ae=!0)),V++;Ae&&R(P,U)}function D(P){return P>=55296&&P<=56319}function M(P){return P>=56320&&P<=57343}function F(P){return M(P.charCodeAt(0))}function B(P){return D(P.charCodeAt(P.length-1))}function z(P){for(var U=[],V=0;V<P.length;V++)P[V][1].length>0&&U.push(P[V]);return U}function j(P,U,V,Q){return B(P)||F(Q)?null:z([[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,te=P.length,re=U.length;if(Q.length===0&&(se===null||se.length===0)){var ne=Q.index,be=P.slice(0,ne),ie=P.slice(ne),de=se?se.index:null;e:{var me=ne+re-te;if(de!==null&&de!==me||me<0||me>re)break e;var Ae=U.slice(0,me),Oe=U.slice(me);if(Oe!==ie)break e;var oe=Math.min(ne,me),ge=be.slice(0,oe),we=Ae.slice(0,oe);if(ge!==we)break e;var Le=be.slice(oe),Ce=Ae.slice(oe);return j(ge,Le,Ce,ie)}e:{if(de!==null&&de!==ne)break e;var Se=ne,Ae=U.slice(0,Se),Oe=U.slice(Se);if(Ae!==be)break e;var Ie=Math.min(te-Se,re-Se),et=ie.slice(ie.length-Ie),Je=Oe.slice(Oe.length-Ie);if(et!==Je)break e;var Le=ie.slice(0,ie.length-Ie),Ce=Oe.slice(0,Oe.length-Ie);return j(be,Le,Ce,et)}}if(Q.length>0&&se&&se.length===0)e:{var ge=P.slice(0,Q.index),et=P.slice(Q.index+Q.length),oe=ge.length,Ie=et.length;if(re<oe+Ie)break e;var we=U.slice(0,oe),Je=U.slice(re-Ie);if(ge!==we||et!==Je)break e;var Le=P.slice(oe,te-Ie),Ce=U.slice(oe,re-Ie);return j(ge,Le,Ce,et)}return null}function fe(P,U,V,Q){return n(P,U,V,Q,!0)}return fe.INSERT=e,fe.DELETE=r,fe.EQUAL=t,xm=fe,xm}var dh={exports:{}};dh.exports;var H0;function IC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",u="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",w="[object Object]",T="[object Promise]",A="[object RegExp]",_="[object Set]",R="[object String]",D="[object Symbol]",M="[object WeakMap]",F="[object ArrayBuffer]",B="[object DataView]",z="[object Float32Array]",j="[object Float64Array]",G="[object Int8Array]",fe="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",se="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,ne=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,ie={};ie[i]=ie[a]=ie[F]=ie[B]=ie[c]=ie[u]=ie[z]=ie[j]=ie[G]=ie[fe]=ie[P]=ie[g]=ie[b]=ie[w]=ie[A]=ie[_]=ie[R]=ie[D]=ie[U]=ie[V]=ie[Q]=ie[se]=!0,ie[f]=ie[p]=ie[M]=!1;var de=typeof Di=="object"&&Di&&Di.Object===Object&&Di,me=typeof self=="object"&&self&&self.Object===Object&&self,Ae=de||me||Function("return this")(),Oe=e&&!e.nodeType&&e,oe=Oe&&!0&&r&&!r.nodeType&&r,ge=oe&&oe.exports===Oe;function we(O,J){return O.set(J[0],J[1]),O}function Le(O,J){return O.add(J),O}function Ce(O,J){for(var xe=-1,ot=O?O.length:0;++xe<ot&&J(O[xe],xe,O)!==!1;);return O}function Se(O,J){for(var xe=-1,ot=J.length,ir=O.length;++xe<ot;)O[ir+xe]=J[xe];return O}function Ie(O,J,xe,ot){for(var ir=-1,Qt=O?O.length:0;++ir<Qt;)xe=J(xe,O[ir],ir,O);return xe}function et(O,J){for(var xe=-1,ot=Array(O);++xe<O;)ot[xe]=J(xe);return ot}function Je(O,J){return O==null?void 0:O[J]}function Qe(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function Ze(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot,ir){xe[++J]=[ir,ot]}),xe}function Ke(O,J){return function(xe){return O(J(xe))}}function ht(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot){xe[++J]=ot}),xe}var Pe=Array.prototype,Ne=Function.prototype,Xe=Object.prototype,We=Ae["__core-js_shared__"],Ve=function(){var O=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),lt=Ne.toString,st=Xe.hasOwnProperty,De=Xe.toString,at=RegExp("^"+lt.call(st).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=ge?Ae.Buffer:void 0,ut=Ae.Symbol,Dt=Ae.Uint8Array,Bt=Ke(Object.getPrototypeOf,Object),Pt=Object.create,Xt=Xe.propertyIsEnumerable,ar=Pe.splice,Kt=Object.getOwnPropertySymbols,cr=mt?mt.isBuffer:void 0,Te=Ke(Object.keys,Object),ae=Wt(Ae,"DataView"),it=Wt(Ae,"Map"),bt=Wt(Ae,"Promise"),qt=Wt(Ae,"Set"),Ft=Wt(Ae,"WeakMap"),Lt=Wt(Object,"create"),Ht=dn(ae),Ue=dn(it),dt=dn(bt),yt=dn(qt),Et=dn(Ft),Nt=ut?ut.prototype:void 0,rt=Nt?Nt.valueOf:void 0;function St(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function jt(){this.__data__=Lt?Lt(null):{}}function tr(O){return this.has(O)&&delete this.__data__[O]}function Ut(O){var J=this.__data__;if(Lt){var xe=J[O];return xe===n?void 0:xe}return st.call(J,O)?J[O]:void 0}function br(O){var J=this.__data__;return Lt?J[O]!==void 0:st.call(J,O)}function Nr(O,J){var xe=this.__data__;return xe[O]=Lt&&J===void 0?n:J,this}St.prototype.clear=jt,St.prototype.delete=tr,St.prototype.get=Ut,St.prototype.has=br,St.prototype.set=Nr;function pr(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function pe(){this.__data__=[]}function pt(O){var J=this.__data__,xe=Hr(J,O);if(xe<0)return!1;var ot=J.length-1;return xe==ot?J.pop():ar.call(J,xe,1),!0}function It(O){var J=this.__data__,xe=Hr(J,O);return xe<0?void 0:J[xe][1]}function je(O){return Hr(this.__data__,O)>-1}function Ee(O,J){var xe=this.__data__,ot=Hr(xe,O);return ot<0?xe.push([O,J]):xe[ot][1]=J,this}pr.prototype.clear=pe,pr.prototype.delete=pt,pr.prototype.get=It,pr.prototype.has=je,pr.prototype.set=Ee;function qe(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Tt(){this.__data__={hash:new St,map:new(it||pr),string:new St}}function $t(O){return kt(this,O).delete(O)}function _t(O){return kt(this,O).get(O)}function he(O){return kt(this,O).has(O)}function ct(O,J){return kt(this,O).set(O,J),this}qe.prototype.clear=Tt,qe.prototype.delete=$t,qe.prototype.get=_t,qe.prototype.has=he,qe.prototype.set=ct;function wt(O){this.__data__=new pr(O)}function fr(){this.__data__=new pr}function Fr(O){return this.__data__.delete(O)}function ur(O){return this.__data__.get(O)}function xr(O){return this.__data__.has(O)}function tn(O,J){var xe=this.__data__;if(xe instanceof pr){var ot=xe.__data__;if(!it||ot.length<t-1)return ot.push([O,J]),this;xe=this.__data__=new qe(ot)}return xe.set(O,J),this}wt.prototype.clear=fr,wt.prototype.delete=Fr,wt.prototype.get=ur,wt.prototype.has=xr,wt.prototype.set=tn;function sn(O,J){var xe=Pi(O)||so(O)?et(O.length,String):[],ot=xe.length,ir=!!ot;for(var Qt in O)st.call(O,Qt)&&!(ir&&(Qt=="length"||Ln(Qt,ot)))&&xe.push(Qt);return xe}function Pn(O,J,xe){var ot=O[J];(!(st.call(O,J)&&Xn(ot,xe))||xe===void 0&&!(J in O))&&(O[J]=xe)}function Hr(O,J){for(var xe=O.length;xe--;)if(Xn(O[xe][0],J))return xe;return-1}function rn(O,J){return O&&$e(J,zr(J),O)}function In(O,J,xe,ot,ir,Qt,_r){var Ir;if(ot&&(Ir=Qt?ot(O,ir,Qt,_r):ot(O)),Ir!==void 0)return Ir;if(!lo(O))return O;var Cr=Pi(O);if(Cr){if(Ir=kr(O),!J)return le(O,Ir)}else{var Lr=Yt(O),fn=Lr==p||Lr==m;if($n(O))return Fn(O,J);if(Lr==w||Lr==i||fn&&!Qt){if(Qe(O))return Qt?O:{};if(Ir=an(fn?{}:O),!J)return Fe(O,rn(Ir,O))}else{if(!ie[Lr])return Qt?O:{};Ir=Mn(O,Lr,In,J)}}_r||(_r=new wt);var qn=_r.get(O);if(qn)return qn;if(_r.set(O,Ir),!Cr)var nn=xe?nt(O):zr(O);return Ce(nn||O,function(Vr,hn){nn&&(hn=Vr,Vr=O[hn]),Pn(Ir,hn,In(Vr,J,xe,ot,hn,O,_r))}),Ir}function Bn(O){return lo(O)?Pt(O):{}}function _o(O,J,xe){var ot=J(O);return Pi(O)?ot:Se(ot,xe(O))}function Do(O){return De.call(O)}function Oo(O){if(!lo(O)||Kn(O))return!1;var J=Bi(O)||Qe(O)?at:ne;return J.test(dn(O))}function Hn(O){if(!No(O))return Te(O);var J=[];for(var xe in Object(O))st.call(O,xe)&&xe!="constructor"&&J.push(xe);return J}function Fn(O,J){if(J)return O.slice();var xe=new O.constructor(O.length);return O.copy(xe),xe}function Cn(O){var J=new O.constructor(O.byteLength);return new Dt(J).set(new Dt(O)),J}function io(O,J){var xe=J?Cn(O.buffer):O.buffer;return new O.constructor(xe,O.byteOffset,O.byteLength)}function yn(O,J,xe){var ot=J?xe(Ze(O),!0):Ze(O);return Ie(ot,we,new O.constructor)}function En(O){var J=new O.constructor(O.source,re.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,xe){var ot=J?xe(ht(O),!0):ht(O);return Ie(ot,Le,new O.constructor)}function $(O){return rt?Object(rt.call(O)):{}}function X(O,J){var xe=J?Cn(O.buffer):O.buffer;return new O.constructor(xe,O.byteOffset,O.length)}function le(O,J){var xe=-1,ot=O.length;for(J||(J=Array(ot));++xe<ot;)J[xe]=O[xe];return J}function $e(O,J,xe,ot){xe||(xe={});for(var ir=-1,Qt=J.length;++ir<Qt;){var _r=J[ir],Ir=void 0;Pn(xe,_r,Ir===void 0?O[_r]:Ir)}return xe}function Fe(O,J){return $e(O,Zt(O),J)}function nt(O){return _o(O,zr,Zt)}function kt(O,J){var xe=O.__data__;return po(J)?xe[typeof J=="string"?"string":"hash"]:xe.map}function Wt(O,J){var xe=Je(O,J);return Oo(xe)?xe:void 0}var Zt=Kt?Ke(Kt,Object):Mr,Yt=Do;(ae&&Yt(new ae(new ArrayBuffer(1)))!=B||it&&Yt(new it)!=g||bt&&Yt(bt.resolve())!=T||qt&&Yt(new qt)!=_||Ft&&Yt(new Ft)!=M)&&(Yt=function(O){var J=De.call(O),xe=J==w?O.constructor:void 0,ot=xe?dn(xe):void 0;if(ot)switch(ot){case Ht:return B;case Ue:return g;case dt:return T;case yt:return _;case Et:return M}return J});function kr(O){var J=O.length,xe=O.constructor(J);return J&&typeof O[0]=="string"&&st.call(O,"index")&&(xe.index=O.index,xe.input=O.input),xe}function an(O){return typeof O.constructor=="function"&&!No(O)?Bn(Bt(O)):{}}function Mn(O,J,xe,ot){var ir=O.constructor;switch(J){case F:return Cn(O);case c:case u:return new ir(+O);case B:return io(O,ot);case z:case j:case G:case fe:case P:case U:case V:case Q:case se:return X(O,ot);case g:return yn(O,ot,xe);case b:case R:return new ir(O);case A:return En(O);case _:return k(O,ot,xe);case D:return $(O)}}function Ln(O,J){return J=J??o,!!J&&(typeof O=="number"||be.test(O))&&O>-1&&O%1==0&&O<J}function po(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Kn(O){return!!Ve&&Ve in O}function No(O){var J=O&&O.constructor,xe=typeof J=="function"&&J.prototype||Xe;return O===xe}function dn(O){if(O!=null){try{return lt.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O){return In(O,!0,!0)}function Xn(O,J){return O===J||O!==O&&J!==J}function so(O){return bi(O)&&st.call(O,"callee")&&(!Xt.call(O,"callee")||De.call(O)==i)}var Pi=Array.isArray;function yi(O){return O!=null&&ao(O.length)&&!Bi(O)}function bi(O){return ri(O)&&yi(O)}var $n=cr||jr;function Bi(O){var J=lo(O)?De.call(O):"";return J==p||J==m}function ao(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function lo(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function ri(O){return!!O&&typeof O=="object"}function zr(O){return yi(O)?sn(O):Hn(O)}function Mr(){return[]}function jr(){return!1}r.exports=Ao}(dh,dh.exports)),dh.exports}var fh={exports:{}};fh.exports;var $0;function MC(){return $0||($0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",b="[object Function]",w="[object GeneratorFunction]",T="[object Map]",A="[object Number]",_="[object Null]",R="[object Object]",D="[object Promise]",M="[object Proxy]",F="[object RegExp]",B="[object Set]",z="[object String]",j="[object Symbol]",G="[object Undefined]",fe="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",te="[object Int16Array]",re="[object Int32Array]",ne="[object Uint8Array]",be="[object Uint8ClampedArray]",ie="[object Uint16Array]",de="[object Uint32Array]",me=/[\\^$.*+?()[\]{}|]/g,Ae=/^\[object .+?Constructor\]$/,Oe=/^(?:0|[1-9]\d*)$/,oe={};oe[V]=oe[Q]=oe[se]=oe[te]=oe[re]=oe[ne]=oe[be]=oe[ie]=oe[de]=!0,oe[c]=oe[u]=oe[P]=oe[p]=oe[U]=oe[m]=oe[g]=oe[b]=oe[T]=oe[A]=oe[R]=oe[F]=oe[B]=oe[z]=oe[fe]=!1;var ge=typeof Di=="object"&&Di&&Di.Object===Object&&Di,we=typeof self=="object"&&self&&self.Object===Object&&self,Le=ge||we||Function("return this")(),Ce=e&&!e.nodeType&&e,Se=Ce&&!0&&r&&!r.nodeType&&r,Ie=Se&&Se.exports===Ce,et=Ie&&ge.process,Je=function(){try{return et&&et.binding&&et.binding("util")}catch{}}(),Qe=Je&&Je.isTypedArray;function Ze(O,J){for(var xe=-1,ot=O==null?0:O.length,ir=0,Qt=[];++xe<ot;){var _r=O[xe];J(_r,xe,O)&&(Qt[ir++]=_r)}return Qt}function Ke(O,J){for(var xe=-1,ot=J.length,ir=O.length;++xe<ot;)O[ir+xe]=J[xe];return O}function ht(O,J){for(var xe=-1,ot=O==null?0:O.length;++xe<ot;)if(J(O[xe],xe,O))return!0;return!1}function Pe(O,J){for(var xe=-1,ot=Array(O);++xe<O;)ot[xe]=J(xe);return ot}function Ne(O){return function(J){return O(J)}}function Xe(O,J){return O.has(J)}function We(O,J){return O==null?void 0:O[J]}function Ve(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot,ir){xe[++J]=[ir,ot]}),xe}function lt(O,J){return function(xe){return O(J(xe))}}function st(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot){xe[++J]=ot}),xe}var De=Array.prototype,at=Function.prototype,mt=Object.prototype,ut=Le["__core-js_shared__"],Dt=at.toString,Bt=mt.hasOwnProperty,Pt=function(){var O=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Xt=mt.toString,ar=RegExp("^"+Dt.call(Bt).replace(me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=Ie?Le.Buffer:void 0,cr=Le.Symbol,Te=Le.Uint8Array,ae=mt.propertyIsEnumerable,it=De.splice,bt=cr?cr.toStringTag:void 0,qt=Object.getOwnPropertySymbols,Ft=Kt?Kt.isBuffer:void 0,Lt=lt(Object.keys,Object),Ht=Zt(Le,"DataView"),Ue=Zt(Le,"Map"),dt=Zt(Le,"Promise"),yt=Zt(Le,"Set"),Et=Zt(Le,"WeakMap"),Nt=Zt(Object,"create"),rt=dn(Ht),St=dn(Ue),jt=dn(dt),tr=dn(yt),Ut=dn(Et),br=cr?cr.prototype:void 0,Nr=br?br.valueOf:void 0;function pr(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function pe(){this.__data__=Nt?Nt(null):{},this.size=0}function pt(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function It(O){var J=this.__data__;if(Nt){var xe=J[O];return xe===n?void 0:xe}return Bt.call(J,O)?J[O]:void 0}function je(O){var J=this.__data__;return Nt?J[O]!==void 0:Bt.call(J,O)}function Ee(O,J){var xe=this.__data__;return this.size+=this.has(O)?0:1,xe[O]=Nt&&J===void 0?n:J,this}pr.prototype.clear=pe,pr.prototype.delete=pt,pr.prototype.get=It,pr.prototype.has=je,pr.prototype.set=Ee;function qe(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Tt(){this.__data__=[],this.size=0}function $t(O){var J=this.__data__,xe=Fn(J,O);if(xe<0)return!1;var ot=J.length-1;return xe==ot?J.pop():it.call(J,xe,1),--this.size,!0}function _t(O){var J=this.__data__,xe=Fn(J,O);return xe<0?void 0:J[xe][1]}function he(O){return Fn(this.__data__,O)>-1}function ct(O,J){var xe=this.__data__,ot=Fn(xe,O);return ot<0?(++this.size,xe.push([O,J])):xe[ot][1]=J,this}qe.prototype.clear=Tt,qe.prototype.delete=$t,qe.prototype.get=_t,qe.prototype.has=he,qe.prototype.set=ct;function wt(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function fr(){this.size=0,this.__data__={hash:new pr,map:new(Ue||qe),string:new pr}}function Fr(O){var J=Wt(this,O).delete(O);return this.size-=J?1:0,J}function ur(O){return Wt(this,O).get(O)}function xr(O){return Wt(this,O).has(O)}function tn(O,J){var xe=Wt(this,O),ot=xe.size;return xe.set(O,J),this.size+=xe.size==ot?0:1,this}wt.prototype.clear=fr,wt.prototype.delete=Fr,wt.prototype.get=ur,wt.prototype.has=xr,wt.prototype.set=tn;function sn(O){var J=-1,xe=O==null?0:O.length;for(this.__data__=new wt;++J<xe;)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 qe(O);this.size=J.size}function In(){this.__data__=new qe,this.size=0}function Bn(O){var J=this.__data__,xe=J.delete(O);return this.size=J.size,xe}function _o(O){return this.__data__.get(O)}function Do(O){return this.__data__.has(O)}function Oo(O,J){var xe=this.__data__;if(xe instanceof qe){var ot=xe.__data__;if(!Ue||ot.length<t-1)return ot.push([O,J]),this.size=++xe.size,this;xe=this.__data__=new wt(ot)}return xe.set(O,J),this.size=xe.size,this}rn.prototype.clear=In,rn.prototype.delete=Bn,rn.prototype.get=_o,rn.prototype.has=Do,rn.prototype.set=Oo;function Hn(O,J){var xe=so(O),ot=!xe&&Xn(O),ir=!xe&&!ot&&yi(O),Qt=!xe&&!ot&&!ir&&ri(O),_r=xe||ot||ir||Qt,Ir=_r?Pe(O.length,String):[],Cr=Ir.length;for(var Lr in O)Bt.call(O,Lr)&&!(_r&&(Lr=="length"||ir&&(Lr=="offset"||Lr=="parent")||Qt&&(Lr=="buffer"||Lr=="byteLength"||Lr=="byteOffset")||Mn(Lr,Cr)))&&Ir.push(Lr);return Ir}function Fn(O,J){for(var xe=O.length;xe--;)if(Ao(O[xe][0],J))return xe;return-1}function Cn(O,J,xe){var ot=J(O);return so(O)?ot:Ke(ot,xe(O))}function io(O){return O==null?O===void 0?G:_:bt&&bt in Object(O)?Yt(O):No(O)}function yn(O){return lo(O)&&io(O)==c}function En(O,J,xe,ot,ir){return O===J?!0:O==null||J==null||!lo(O)&&!lo(J)?O!==O&&J!==J:k(O,J,xe,ot,En,ir)}function k(O,J,xe,ot,ir,Qt){var _r=so(O),Ir=so(J),Cr=_r?u:an(O),Lr=Ir?u:an(J);Cr=Cr==c?R:Cr,Lr=Lr==c?R:Lr;var fn=Cr==R,qn=Lr==R,nn=Cr==Lr;if(nn&&yi(O)){if(!yi(J))return!1;_r=!0,fn=!1}if(nn&&!fn)return Qt||(Qt=new rn),_r||ri(O)?$e(O,J,xe,ot,ir,Qt):Fe(O,J,Cr,xe,ot,ir,Qt);if(!(xe&o)){var Vr=fn&&Bt.call(O,"__wrapped__"),hn=qn&&Bt.call(J,"__wrapped__");if(Vr||hn){var go=Vr?O.value():O,Eo=hn?J.value():J;return Qt||(Qt=new rn),ir(go,Eo,xe,ot,Qt)}}return nn?(Qt||(Qt=new rn),nt(O,J,xe,ot,ir,Qt)):!1}function $(O){if(!ao(O)||po(O))return!1;var J=$n(O)?ar:Ae;return J.test(dn(O))}function X(O){return lo(O)&&Bi(O.length)&&!!oe[io(O)]}function le(O){if(!Kn(O))return Lt(O);var J=[];for(var xe in Object(O))Bt.call(O,xe)&&xe!="constructor"&&J.push(xe);return J}function $e(O,J,xe,ot,ir,Qt){var _r=xe&o,Ir=O.length,Cr=J.length;if(Ir!=Cr&&!(_r&&Cr>Ir))return!1;var Lr=Qt.get(O);if(Lr&&Qt.get(J))return Lr==J;var fn=-1,qn=!0,nn=xe&i?new sn:void 0;for(Qt.set(O,J),Qt.set(J,O);++fn<Ir;){var Vr=O[fn],hn=J[fn];if(ot)var go=_r?ot(hn,Vr,fn,J,O,Qt):ot(Vr,hn,fn,O,J,Qt);if(go!==void 0){if(go)continue;qn=!1;break}if(nn){if(!ht(J,function(Eo,Jn){if(!Xe(nn,Jn)&&(Vr===Eo||ir(Vr,Eo,xe,ot,Qt)))return nn.push(Jn)})){qn=!1;break}}else if(!(Vr===hn||ir(Vr,hn,xe,ot,Qt))){qn=!1;break}}return Qt.delete(O),Qt.delete(J),qn}function Fe(O,J,xe,ot,ir,Qt,_r){switch(xe){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||!Qt(new Te(O),new Te(J)));case p:case m:case A:return Ao(+O,+J);case g:return O.name==J.name&&O.message==J.message;case F:case z:return O==J+"";case T:var Ir=Ve;case B:var Cr=ot&o;if(Ir||(Ir=st),O.size!=J.size&&!Cr)return!1;var Lr=_r.get(O);if(Lr)return Lr==J;ot|=i,_r.set(O,J);var fn=$e(Ir(O),Ir(J),ot,ir,Qt,_r);return _r.delete(O),fn;case j:if(Nr)return Nr.call(O)==Nr.call(J)}return!1}function nt(O,J,xe,ot,ir,Qt){var _r=xe&o,Ir=kt(O),Cr=Ir.length,Lr=kt(J),fn=Lr.length;if(Cr!=fn&&!_r)return!1;for(var qn=Cr;qn--;){var nn=Ir[qn];if(!(_r?nn in J:Bt.call(J,nn)))return!1}var Vr=Qt.get(O);if(Vr&&Qt.get(J))return Vr==J;var hn=!0;Qt.set(O,J),Qt.set(J,O);for(var go=_r;++qn<Cr;){nn=Ir[qn];var Eo=O[nn],Jn=J[nn];if(ot)var Fi=_r?ot(Jn,Eo,nn,J,O,Qt):ot(Eo,Jn,nn,O,J,Qt);if(!(Fi===void 0?Eo===Jn||ir(Eo,Jn,xe,ot,Qt):Fi)){hn=!1;break}go||(go=nn=="constructor")}if(hn&&!go){var ni=O.constructor,bn=J.constructor;ni!=bn&&"constructor"in O&&"constructor"in J&&!(typeof ni=="function"&&ni instanceof ni&&typeof bn=="function"&&bn instanceof bn)&&(hn=!1)}return Qt.delete(O),Qt.delete(J),hn}function kt(O){return Cn(O,zr,kr)}function Wt(O,J){var xe=O.__data__;return Ln(J)?xe[typeof J=="string"?"string":"hash"]:xe.map}function Zt(O,J){var xe=We(O,J);return $(xe)?xe:void 0}function Yt(O){var J=Bt.call(O,bt),xe=O[bt];try{O[bt]=void 0;var ot=!0}catch{}var ir=Xt.call(O);return ot&&(J?O[bt]=xe:delete O[bt]),ir}var kr=qt?function(O){return O==null?[]:(O=Object(O),Ze(qt(O),function(J){return ae.call(O,J)}))}:Mr,an=io;(Ht&&an(new Ht(new ArrayBuffer(1)))!=U||Ue&&an(new Ue)!=T||dt&&an(dt.resolve())!=D||yt&&an(new yt)!=B||Et&&an(new Et)!=fe)&&(an=function(O){var J=io(O),xe=J==R?O.constructor:void 0,ot=xe?dn(xe):"";if(ot)switch(ot){case rt:return U;case St:return T;case jt:return D;case tr:return B;case Ut:return fe}return J});function Mn(O,J){return J=J??a,!!J&&(typeof O=="number"||Oe.test(O))&&O>-1&&O%1==0&&O<J}function Ln(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function po(O){return!!Pt&&Pt in O}function Kn(O){var J=O&&O.constructor,xe=typeof J=="function"&&J.prototype||mt;return O===xe}function No(O){return Xt.call(O)}function dn(O){if(O!=null){try{return Dt.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O,J){return O===J||O!==O&&J!==J}var Xn=yn(function(){return arguments}())?yn:function(O){return lo(O)&&Bt.call(O,"callee")&&!ae.call(O,"callee")},so=Array.isArray;function Pi(O){return O!=null&&Bi(O.length)&&!$n(O)}var yi=Ft||jr;function bi(O,J){return En(O,J)}function $n(O){if(!ao(O))return!1;var J=io(O);return J==b||J==w||J==f||J==M}function Bi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function ao(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function lo(O){return O!=null&&typeof O=="object"}var ri=Qe?Ne(Qe):X;function zr(O){return Pi(O)?Hn(O):le(O)}function Mr(){return[]}function jr(){return!1}r.exports=bi}(fh,fh.exports)),fh.exports}var yp={},q0;function W9(){if(q0)return yp;q0=1,Object.defineProperty(yp,"__esModule",{value:!0});const r=IC(),e=MC();var t;return function(n){function o(u={},f={},p=!1){typeof u!="object"&&(u={}),typeof f!="object"&&(f={});let m=r(f);p||(m=Object.keys(m).reduce((g,b)=>(m[b]!=null&&(g[b]=m[b]),g),{}));for(const g in u)u[g]!==void 0&&f[g]===void 0&&(m[g]=u[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(u={},f={}){typeof u!="object"&&(u={}),typeof f!="object"&&(f={});const p=Object.keys(u).concat(Object.keys(f)).reduce((m,g)=>(e(u[g],f[g])||(m[g]=f[g]===void 0?null:f[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(u={},f={}){u=u||{};const p=Object.keys(f).reduce((m,g)=>(f[g]!==u[g]&&u[g]!==void 0&&(m[g]=f[g]),m),{});return Object.keys(u).reduce((m,g)=>(u[g]!==f[g]&&f[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(u,f,p=!1){if(typeof u!="object")return f;if(typeof f!="object")return;if(!p)return f;const m=Object.keys(f).reduce((g,b)=>(u[b]===void 0&&(g[b]=f[b]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),yp.default=t,yp}var bp={},U0;function LC(){if(U0)return bp;U0=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={},W0;function V9(){if(W0)return xp;W0=1,Object.defineProperty(xp,"__esModule",{value:!0});const r=LC();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 V0;function G9(){return V0||(V0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=U9(),n=IC(),o=MC(),i=W9();e.AttributeMap=i.default;const a=LC();e.Op=a.default;const c=V9();e.OpIterator=c.default;const u="\0",f=(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 b=Object.keys(m)[0];if(!b||b!==Object.keys(g)[0])throw new Error(`embed types not matched: ${b} != ${Object.keys(g)[0]}`);return[b,m[b],g[b]]};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,b){this.handlers[g]=b}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const b=this.handlers[g];if(!b)throw new Error(`no handlers for embed type "${g}"`);return b}insert(g,b){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(w.attributes=b),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,b){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return b!=null&&typeof b=="object"&&Object.keys(b).length>0&&(w.attributes=b),this.push(w)}push(g){let b=this.ops.length,w=this.ops[b-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[b-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(b-=1,w=this.ops[b-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[b-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[b-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[b-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[b-1].attributes=g.attributes),this}}return b===this.ops.length?this.ops.push(g):this.ops.splice(b,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 b=[],w=[];return this.forEach(T=>{(g(T)?b:w).push(T)}),[b,w]}reduce(g,b){return this.ops.reduce(g,b)}changeLength(){return this.reduce((g,b)=>b.insert?g+a.default.length(b):b.delete?g-b.delete:g,0)}length(){return this.reduce((g,b)=>g+a.default.length(b),0)}slice(g=0,b=1/0){const w=[],T=new c.default(this.ops);let A=0;for(;A<b&&T.hasNext();){let _;A<g?_=T.next(g-A):(_=T.next(b-A),w.push(_)),A+=a.default.length(_)}return new p(w)}compose(g){const b=new c.default(this.ops),w=new c.default(g.ops),T=[],A=w.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let R=A.retain;for(;b.peekType()==="insert"&&b.peekLength()<=R;)R-=b.peekLength(),T.push(b.next());A.retain-R>0&&w.next(A.retain-R)}const _=new p(T);for(;b.hasNext()||w.hasNext();)if(w.peekType()==="insert")_.push(w.next());else if(b.peekType()==="delete")_.push(b.next());else{const R=Math.min(b.peekLength(),w.peekLength()),D=b.next(R),M=w.next(R);if(M.retain){const F={};if(typeof D.retain=="number")F.retain=typeof M.retain=="number"?R:M.retain;else if(typeof M.retain=="number")D.retain==null?F.insert=D.insert:F.retain=D.retain;else{const z=D.retain==null?"insert":"retain",[j,G,fe]=f(D[z],M.retain),P=p.getHandler(j);F[z]={[j]:P.compose(G,fe,z==="retain")}}const B=i.default.compose(D.attributes,M.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),_.push(F),!w.hasNext()&&o(_.ops[_.ops.length-1],F)){const z=new p(b.rest());return _.concat(z).chop()}}else typeof M.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&_.push(M)}return _.chop()}concat(g){const b=new p(this.ops.slice());return g.ops.length>0&&(b.push(g.ops[0]),b.ops=b.ops.concat(g.ops.slice(1))),b}diff(g,b){if(this.ops===g.ops)return new p;const w=[this,g].map(D=>D.map(M=>{if(M.insert!=null)return typeof M.insert=="string"?M.insert:u;const F=D===g?"on":"with";throw new Error("diff() called "+F+" non-document")}).join("")),T=new p,A=t(w[0],w[1],b,!0),_=new c.default(this.ops),R=new c.default(g.ops);return A.forEach(D=>{let M=D[1].length;for(;M>0;){let F=0;switch(D[0]){case t.INSERT:F=Math.min(R.peekLength(),M),T.push(R.next(F));break;case t.DELETE:F=Math.min(M,_.peekLength()),_.next(F),T.delete(F);break;case t.EQUAL:F=Math.min(_.peekLength(),R.peekLength(),M);const B=_.next(F),z=R.next(F);o(B.insert,z.insert)?T.retain(F,i.default.diff(B.attributes,z.attributes)):T.push(z).delete(F);break}M-=F}}),T.chop()}eachLine(g,b=`
|
|
169
169
|
`){const w=new c.default(this.ops);let T=new p,A=0;for(;w.hasNext();){if(w.peekType()!=="insert")return;const _=w.peek(),R=a.default.length(_)-w.peekLength(),D=typeof _.insert=="string"?_.insert.indexOf(b,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||{},A)===!1)return;A+=1,T=new p}}T.length()>0&&g(T,{},A)}invert(g){const b=new p;return this.reduce((w,T)=>{if(T.insert)b.delete(a.default.length(T));else{if(typeof T.retain=="number"&&T.attributes==null)return b.retain(T.retain),w+T.retain;if(T.delete||typeof T.retain=="number"){const A=T.delete||T.retain;return g.slice(w,w+A).forEach(R=>{T.delete?b.push(R):T.retain&&T.attributes&&b.retain(a.default.length(R),i.default.invert(T.attributes,R.attributes))}),w+A}else if(typeof T.retain=="object"&&T.retain!==null){const A=g.slice(w,w+1),_=new c.default(A.ops).next(),[R,D,M]=f(T.retain,_.insert),F=p.getHandler(R);return b.retain({[R]:F.invert(D,M)},i.default.invert(T.attributes,_.attributes)),w+1}}return w},0),b.chop()}transform(g,b=!1){if(b=!!b,typeof g=="number")return this.transformPosition(g,b);const w=g,T=new c.default(this.ops),A=new c.default(w.ops),_=new p;for(;T.hasNext()||A.hasNext();)if(T.peekType()==="insert"&&(b||A.peekType()!=="insert"))_.retain(a.default.length(T.next()));else if(A.peekType()==="insert")_.push(A.next());else{const R=Math.min(T.peekLength(),A.peekLength()),D=T.next(R),M=A.next(R);if(D.delete)continue;if(M.delete)_.push(M);else{const F=D.retain,B=M.retain;let z=typeof B=="object"&&B!==null?B:R;if(typeof F=="object"&&F!==null&&typeof B=="object"&&B!==null){const j=Object.keys(F)[0];if(j===Object.keys(B)[0]){const G=p.getHandler(j);G&&(z={[j]:G.transform(F[j],B[j],b)})}}_.retain(z,i.default.transform(D.attributes,M.attributes,b))}}return _.chop()}transformPosition(g,b=!1){b=!!b;const w=new c.default(this.ops);let T=0;for(;w.hasNext()&&T<=g;){const A=w.peekLength(),_=w.peekType();if(w.next(),_==="delete"){g-=Math.min(A,g-T);continue}else _==="insert"&&(T<g||!b)&&(g+=A);T+=A}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=G9();const nr=yf(Ds);var DC=typeof global=="object"&&global&&global.Object===Object&&global,Y9=typeof self=="object"&&self&&self.Object===Object&&self,sl=DC||Y9||Function("return this")(),Yc=sl.Symbol,OC=Object.prototype,Z9=OC.hasOwnProperty,K9=OC.toString,th=Yc?Yc.toStringTag:void 0;function X9(r){var e=Z9.call(r,th),t=r[th];try{r[th]=void 0;var n=!0}catch{}var o=K9.call(r);return n&&(e?r[th]=t:delete r[th]),o}var J9=Object.prototype,Q9=J9.toString;function eM(r){return Q9.call(r)}var tM="[object Null]",rM="[object Undefined]",G0=Yc?Yc.toStringTag:void 0;function xf(r){return r==null?r===void 0?rM:tM:G0&&G0 in Object(r)?X9(r):eM(r)}function Hl(r){return r!=null&&typeof r=="object"}var Vu=Array.isArray;function Xc(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function NC(r){return r}var nM="[object AsyncFunction]",oM="[object Function]",iM="[object GeneratorFunction]",sM="[object Proxy]";function Lv(r){if(!Xc(r))return!1;var e=xf(r);return e==oM||e==iM||e==nM||e==sM}var wm=sl["__core-js_shared__"],Y0=function(){var r=/[^.]+$/.exec(wm&&wm.keys&&wm.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function aM(r){return!!Y0&&Y0 in r}var lM=Function.prototype,cM=lM.toString;function Ju(r){if(r!=null){try{return cM.call(r)}catch{}try{return r+""}catch{}}return""}var uM=/[\\^$.*+?()[\]{}|]/g,dM=/^\[object .+?Constructor\]$/,fM=Function.prototype,hM=Object.prototype,pM=fM.toString,gM=hM.hasOwnProperty,mM=RegExp("^"+pM.call(gM).replace(uM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vM(r){if(!Xc(r)||aM(r))return!1;var e=Lv(r)?mM:dM;return e.test(Ju(r))}function yM(r,e){return r==null?void 0:r[e]}function Qu(r,e){var t=yM(r,e);return vM(t)?t:void 0}var F1=Qu(sl,"WeakMap"),Z0=Object.create,bM=function(){function r(){}return function(e){if(!Xc(e))return{};if(Z0)return Z0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function xM(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 wM(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var CM=800,SM=16,_M=Date.now;function AM(r){var e=0,t=0;return function(){var n=_M(),o=SM-(n-t);if(t=n,o>0){if(++e>=CM)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function EM(r){return function(){return r}}var rg=function(){try{var r=Qu(Object,"defineProperty");return r({},"",{}),r}catch{}}(),TM=rg?function(r,e){return rg(r,"toString",{configurable:!0,enumerable:!1,value:EM(e),writable:!0})}:NC,RM=AM(TM);function kM(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var IM=9007199254740991,MM=/^(?:0|[1-9]\d*)$/;function PC(r,e){var t=typeof r;return e=e??IM,!!e&&(t=="number"||t!="symbol"&&MM.test(r))&&r>-1&&r%1==0&&r<e}function Dv(r,e,t){e=="__proto__"&&rg?rg(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 LM=Object.prototype,DM=LM.hasOwnProperty;function BC(r,e,t){var n=r[e];(!(DM.call(r,e)&&Bh(n,t))||t===void 0&&!(e in r))&&Dv(r,e,t)}function OM(r,e,t,n){var o=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var c=e[i],u=void 0;u===void 0&&(u=r[c]),o?Dv(t,c,u):BC(t,c,u)}return t}var K0=Math.max;function NM(r,e,t){return e=K0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,o=-1,i=K0(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),xM(r,this,c)}}function PM(r,e){return RM(NM(r,e,NC),r+"")}var BM=9007199254740991;function FC(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=BM}function Ag(r){return r!=null&&FC(r.length)&&!Lv(r)}function FM(r,e,t){if(!Xc(t))return!1;var n=typeof e;return(n=="number"?Ag(t)&&PC(e,t.length):n=="string"&&e in t)?Bh(t[e],r):!1}function jM(r){return PM(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&&FM(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 zM=Object.prototype;function Ov(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||zM;return r===t}function HM(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var $M="[object Arguments]";function X0(r){return Hl(r)&&xf(r)==$M}var jC=Object.prototype,qM=jC.hasOwnProperty,UM=jC.propertyIsEnumerable,j1=X0(function(){return arguments}())?X0:function(r){return Hl(r)&&qM.call(r,"callee")&&!UM.call(r,"callee")};function WM(){return!1}var zC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,J0=zC&&typeof module=="object"&&module&&!module.nodeType&&module,VM=J0&&J0.exports===zC,Q0=VM?sl.Buffer:void 0,GM=Q0?Q0.isBuffer:void 0,_h=GM||WM,YM="[object Arguments]",ZM="[object Array]",KM="[object Boolean]",XM="[object Date]",JM="[object Error]",QM="[object Function]",eL="[object Map]",tL="[object Number]",rL="[object Object]",nL="[object RegExp]",oL="[object Set]",iL="[object String]",sL="[object WeakMap]",aL="[object ArrayBuffer]",lL="[object DataView]",cL="[object Float32Array]",uL="[object Float64Array]",dL="[object Int8Array]",fL="[object Int16Array]",hL="[object Int32Array]",pL="[object Uint8Array]",gL="[object Uint8ClampedArray]",mL="[object Uint16Array]",vL="[object Uint32Array]",Nn={};Nn[cL]=Nn[uL]=Nn[dL]=Nn[fL]=Nn[hL]=Nn[pL]=Nn[gL]=Nn[mL]=Nn[vL]=!0;Nn[YM]=Nn[ZM]=Nn[aL]=Nn[KM]=Nn[lL]=Nn[XM]=Nn[JM]=Nn[QM]=Nn[eL]=Nn[tL]=Nn[rL]=Nn[nL]=Nn[oL]=Nn[iL]=Nn[sL]=!1;function yL(r){return Hl(r)&&FC(r.length)&&!!Nn[xf(r)]}function Nv(r){return function(e){return r(e)}}var HC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ph=HC&&typeof module=="object"&&module&&!module.nodeType&&module,bL=ph&&ph.exports===HC,Cm=bL&&DC.process,lf=function(){try{var r=ph&&ph.require&&ph.require("util").types;return r||Cm&&Cm.binding&&Cm.binding("util")}catch{}}(),eb=lf&&lf.isTypedArray,Pv=eb?Nv(eb):yL,xL=Object.prototype,wL=xL.hasOwnProperty;function $C(r,e){var t=Vu(r),n=!t&&j1(r),o=!t&&!n&&_h(r),i=!t&&!n&&!o&&Pv(r),a=t||n||o||i,c=a?HM(r.length,String):[],u=c.length;for(var f in r)(e||wL.call(r,f))&&!(a&&(f=="length"||o&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||PC(f,u)))&&c.push(f);return c}function qC(r,e){return function(t){return r(e(t))}}var CL=qC(Object.keys,Object),SL=Object.prototype,_L=SL.hasOwnProperty;function AL(r){if(!Ov(r))return CL(r);var e=[];for(var t in Object(r))_L.call(r,t)&&t!="constructor"&&e.push(t);return e}function EL(r){return Ag(r)?$C(r):AL(r)}function TL(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var RL=Object.prototype,kL=RL.hasOwnProperty;function IL(r){if(!Xc(r))return TL(r);var e=Ov(r),t=[];for(var n in r)n=="constructor"&&(e||!kL.call(r,n))||t.push(n);return t}function UC(r){return Ag(r)?$C(r,!0):IL(r)}var Ah=Qu(Object,"create");function ML(){this.__data__=Ah?Ah(null):{},this.size=0}function LL(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var DL="__lodash_hash_undefined__",OL=Object.prototype,NL=OL.hasOwnProperty;function PL(r){var e=this.__data__;if(Ah){var t=e[r];return t===DL?void 0:t}return NL.call(e,r)?e[r]:void 0}var BL=Object.prototype,FL=BL.hasOwnProperty;function jL(r){var e=this.__data__;return Ah?e[r]!==void 0:FL.call(e,r)}var zL="__lodash_hash_undefined__";function HL(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Ah&&e===void 0?zL:e,this}function Gu(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])}}Gu.prototype.clear=ML;Gu.prototype.delete=LL;Gu.prototype.get=PL;Gu.prototype.has=jL;Gu.prototype.set=HL;function $L(){this.__data__=[],this.size=0}function Eg(r,e){for(var t=r.length;t--;)if(Bh(r[t][0],e))return t;return-1}var qL=Array.prototype,UL=qL.splice;function WL(r){var e=this.__data__,t=Eg(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():UL.call(e,t,1),--this.size,!0}function VL(r){var e=this.__data__,t=Eg(e,r);return t<0?void 0:e[t][1]}function GL(r){return Eg(this.__data__,r)>-1}function YL(r,e){var t=this.__data__,n=Eg(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function Ul(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])}}Ul.prototype.clear=$L;Ul.prototype.delete=WL;Ul.prototype.get=VL;Ul.prototype.has=GL;Ul.prototype.set=YL;var Eh=Qu(sl,"Map");function ZL(){this.size=0,this.__data__={hash:new Gu,map:new(Eh||Ul),string:new Gu}}function KL(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function Tg(r,e){var t=r.__data__;return KL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function XL(r){var e=Tg(this,r).delete(r);return this.size-=e?1:0,e}function JL(r){return Tg(this,r).get(r)}function QL(r){return Tg(this,r).has(r)}function eD(r,e){var t=Tg(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function ed(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])}}ed.prototype.clear=ZL;ed.prototype.delete=XL;ed.prototype.get=JL;ed.prototype.has=QL;ed.prototype.set=eD;function tD(r,e){for(var t=-1,n=e.length,o=r.length;++t<n;)r[o+t]=e[t];return r}var WC=qC(Object.getPrototypeOf,Object),rD="[object Object]",nD=Function.prototype,oD=Object.prototype,VC=nD.toString,iD=oD.hasOwnProperty,sD=VC.call(Object);function aD(r){if(!Hl(r)||xf(r)!=rD)return!1;var e=WC(r);if(e===null)return!0;var t=iD.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&VC.call(t)==sD}function lD(){this.__data__=new Ul,this.size=0}function cD(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function uD(r){return this.__data__.get(r)}function dD(r){return this.__data__.has(r)}var fD=200;function hD(r,e){var t=this.__data__;if(t instanceof Ul){var n=t.__data__;if(!Eh||n.length<fD-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new ed(n)}return t.set(r,e),this.size=t.size,this}function Ja(r){var e=this.__data__=new Ul(r);this.size=e.size}Ja.prototype.clear=lD;Ja.prototype.delete=cD;Ja.prototype.get=uD;Ja.prototype.has=dD;Ja.prototype.set=hD;var GC=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tb=GC&&typeof module=="object"&&module&&!module.nodeType&&module,pD=tb&&tb.exports===GC,rb=pD?sl.Buffer:void 0,nb=rb?rb.allocUnsafe:void 0;function YC(r,e){if(e)return r.slice();var t=r.length,n=nb?nb(t):new r.constructor(t);return r.copy(n),n}function gD(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 mD(){return[]}var vD=Object.prototype,yD=vD.propertyIsEnumerable,ob=Object.getOwnPropertySymbols,bD=ob?function(r){return r==null?[]:(r=Object(r),gD(ob(r),function(e){return yD.call(r,e)}))}:mD;function xD(r,e,t){var n=e(r);return Vu(r)?n:tD(n,t(r))}function z1(r){return xD(r,EL,bD)}var H1=Qu(sl,"DataView"),$1=Qu(sl,"Promise"),q1=Qu(sl,"Set"),ib="[object Map]",wD="[object Object]",sb="[object Promise]",ab="[object Set]",lb="[object WeakMap]",cb="[object DataView]",CD=Ju(H1),SD=Ju(Eh),_D=Ju($1),AD=Ju(q1),ED=Ju(F1),ca=xf;(H1&&ca(new H1(new ArrayBuffer(1)))!=cb||Eh&&ca(new Eh)!=ib||$1&&ca($1.resolve())!=sb||q1&&ca(new q1)!=ab||F1&&ca(new F1)!=lb)&&(ca=function(r){var e=xf(r),t=e==wD?r.constructor:void 0,n=t?Ju(t):"";if(n)switch(n){case CD:return cb;case SD:return ib;case _D:return sb;case AD:return ab;case ED:return lb}return e});var TD=Object.prototype,RD=TD.hasOwnProperty;function kD(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&RD.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var ng=sl.Uint8Array;function Bv(r){var e=new r.constructor(r.byteLength);return new ng(e).set(new ng(r)),e}function ID(r,e){var t=Bv(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var MD=/\w*$/;function LD(r){var e=new r.constructor(r.source,MD.exec(r));return e.lastIndex=r.lastIndex,e}var ub=Yc?Yc.prototype:void 0,db=ub?ub.valueOf:void 0;function DD(r){return db?Object(db.call(r)):{}}function ZC(r,e){var t=e?Bv(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var OD="[object Boolean]",ND="[object Date]",PD="[object Map]",BD="[object Number]",FD="[object RegExp]",jD="[object Set]",zD="[object String]",HD="[object Symbol]",$D="[object ArrayBuffer]",qD="[object DataView]",UD="[object Float32Array]",WD="[object Float64Array]",VD="[object Int8Array]",GD="[object Int16Array]",YD="[object Int32Array]",ZD="[object Uint8Array]",KD="[object Uint8ClampedArray]",XD="[object Uint16Array]",JD="[object Uint32Array]";function QD(r,e,t){var n=r.constructor;switch(e){case $D:return Bv(r);case OD:case ND:return new n(+r);case qD:return ID(r);case UD:case WD:case VD:case GD:case YD:case ZD:case KD:case XD:case JD:return ZC(r,t);case PD:return new n;case BD:case zD:return new n(r);case FD:return LD(r);case jD:return new n;case HD:return DD(r)}}function KC(r){return typeof r.constructor=="function"&&!Ov(r)?bM(WC(r)):{}}var e7="[object Map]";function t7(r){return Hl(r)&&ca(r)==e7}var fb=lf&&lf.isMap,r7=fb?Nv(fb):t7,n7="[object Set]";function o7(r){return Hl(r)&&ca(r)==n7}var hb=lf&&lf.isSet,i7=hb?Nv(hb):o7,s7=1,XC="[object Arguments]",a7="[object Array]",l7="[object Boolean]",c7="[object Date]",u7="[object Error]",JC="[object Function]",d7="[object GeneratorFunction]",f7="[object Map]",h7="[object Number]",QC="[object Object]",p7="[object RegExp]",g7="[object Set]",m7="[object String]",v7="[object Symbol]",y7="[object WeakMap]",b7="[object ArrayBuffer]",x7="[object DataView]",w7="[object Float32Array]",C7="[object Float64Array]",S7="[object Int8Array]",_7="[object Int16Array]",A7="[object Int32Array]",E7="[object Uint8Array]",T7="[object Uint8ClampedArray]",R7="[object Uint16Array]",k7="[object Uint32Array]",Rn={};Rn[XC]=Rn[a7]=Rn[b7]=Rn[x7]=Rn[l7]=Rn[c7]=Rn[w7]=Rn[C7]=Rn[S7]=Rn[_7]=Rn[A7]=Rn[f7]=Rn[h7]=Rn[QC]=Rn[p7]=Rn[g7]=Rn[m7]=Rn[v7]=Rn[E7]=Rn[T7]=Rn[R7]=Rn[k7]=!0;Rn[u7]=Rn[JC]=Rn[y7]=!1;function qp(r,e,t,n,o,i){var a,c=e&s7;if(a!==void 0)return a;if(!Xc(r))return r;var u=Vu(r);if(u)a=kD(r);else{var f=ca(r),p=f==JC||f==d7;if(_h(r))return YC(r,c);if(f==QC||f==XC||p&&!o)a=p?{}:KC(r);else{if(!Rn[f])return o?r:{};a=QD(r,f,c)}}i||(i=new Ja);var m=i.get(r);if(m)return m;i.set(r,a),i7(r)?r.forEach(function(w){a.add(qp(w,e,t,w,r,i))}):r7(r)&&r.forEach(function(w,T){a.set(T,qp(w,e,t,T,r,i))});var g=z1,b=u?void 0:g(r);return kM(b||r,function(w,T){b&&(T=w,w=r[T]),BC(a,T,qp(w,e,t,T,r,i))}),a}var I7=1,M7=4;function Qd(r){return qp(r,I7|M7)}var L7="__lodash_hash_undefined__";function D7(r){return this.__data__.set(r,L7),this}function O7(r){return this.__data__.has(r)}function og(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ed;++e<t;)this.add(r[e])}og.prototype.add=og.prototype.push=D7;og.prototype.has=O7;function N7(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 P7(r,e){return r.has(e)}var B7=1,F7=2;function e2(r,e,t,n,o,i){var a=t&B7,c=r.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var f=i.get(r),p=i.get(e);if(f&&p)return f==e&&p==r;var m=-1,g=!0,b=t&F7?new og:void 0;for(i.set(r,e),i.set(e,r);++m<c;){var w=r[m],T=e[m];if(n)var A=a?n(T,w,m,e,r,i):n(w,T,m,r,e,i);if(A!==void 0){if(A)continue;g=!1;break}if(b){if(!N7(e,function(_,R){if(!P7(b,R)&&(w===_||o(w,_,t,n,i)))return b.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 j7(r){var e=-1,t=Array(r.size);return r.forEach(function(n,o){t[++e]=[o,n]}),t}function z7(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var H7=1,$7=2,q7="[object Boolean]",U7="[object Date]",W7="[object Error]",V7="[object Map]",G7="[object Number]",Y7="[object RegExp]",Z7="[object Set]",K7="[object String]",X7="[object Symbol]",J7="[object ArrayBuffer]",Q7="[object DataView]",pb=Yc?Yc.prototype:void 0,Sm=pb?pb.valueOf:void 0;function eO(r,e,t,n,o,i,a){switch(t){case Q7:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case J7:return!(r.byteLength!=e.byteLength||!i(new ng(r),new ng(e)));case q7:case U7:case G7:return Bh(+r,+e);case W7:return r.name==e.name&&r.message==e.message;case Y7:case K7:return r==e+"";case V7:var c=j7;case Z7:var u=n&H7;if(c||(c=z7),r.size!=e.size&&!u)return!1;var f=a.get(r);if(f)return f==e;n|=$7,a.set(r,e);var p=e2(c(r),c(e),n,o,i,a);return a.delete(r),p;case X7:if(Sm)return Sm.call(r)==Sm.call(e)}return!1}var tO=1,rO=Object.prototype,nO=rO.hasOwnProperty;function oO(r,e,t,n,o,i){var a=t&tO,c=z1(r),u=c.length,f=z1(e),p=f.length;if(u!=p&&!a)return!1;for(var m=u;m--;){var g=c[m];if(!(a?g in e:nO.call(e,g)))return!1}var b=i.get(r),w=i.get(e);if(b&&w)return b==e&&w==r;var T=!0;i.set(r,e),i.set(e,r);for(var A=a;++m<u;){g=c[m];var _=r[g],R=e[g];if(n)var D=a?n(R,_,g,e,r,i):n(_,R,g,r,e,i);if(!(D===void 0?_===R||o(_,R,t,n,i):D)){T=!1;break}A||(A=g=="constructor")}if(T&&!A){var M=r.constructor,F=e.constructor;M!=F&&"constructor"in r&&"constructor"in e&&!(typeof M=="function"&&M instanceof M&&typeof F=="function"&&F instanceof F)&&(T=!1)}return i.delete(r),i.delete(e),T}var iO=1,gb="[object Arguments]",mb="[object Array]",wp="[object Object]",sO=Object.prototype,vb=sO.hasOwnProperty;function aO(r,e,t,n,o,i){var a=Vu(r),c=Vu(e),u=a?mb:ca(r),f=c?mb:ca(e);u=u==gb?wp:u,f=f==gb?wp:f;var p=u==wp,m=f==wp,g=u==f;if(g&&_h(r)){if(!_h(e))return!1;a=!0,p=!1}if(g&&!p)return i||(i=new Ja),a||Pv(r)?e2(r,e,t,n,o,i):eO(r,e,u,t,n,o,i);if(!(t&iO)){var b=p&&vb.call(r,"__wrapped__"),w=m&&vb.call(e,"__wrapped__");if(b||w){var T=b?r.value():r,A=w?e.value():e;return i||(i=new Ja),o(T,A,t,n,i)}}return g?(i||(i=new Ja),oO(r,e,t,n,o,i)):!1}function t2(r,e,t,n,o){return r===e?!0:r==null||e==null||!Hl(r)&&!Hl(e)?r!==r&&e!==e:aO(r,e,t,n,t2,o)}function lO(r){return function(e,t,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[++o];if(t(i[u],u,i)===!1)break}return e}}var cO=lO();function U1(r,e,t){(t!==void 0&&!Bh(r[e],t)||t===void 0&&!(e in r))&&Dv(r,e,t)}function uO(r){return Hl(r)&&Ag(r)}function W1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function dO(r){return OM(r,UC(r))}function fO(r,e,t,n,o,i,a){var c=W1(r,t),u=W1(e,t),f=a.get(u);if(f){U1(r,t,f);return}var p=i?i(c,u,t+"",r,e,a):void 0,m=p===void 0;if(m){var g=Vu(u),b=!g&&_h(u),w=!g&&!b&&Pv(u);p=u,g||b||w?Vu(c)?p=c:uO(c)?p=wM(c):b?(m=!1,p=YC(u,!0)):w?(m=!1,p=ZC(u,!0)):p=[]:aD(u)||j1(u)?(p=c,j1(c)?p=dO(c):(!Xc(c)||Lv(c))&&(p=KC(u))):m=!1}m&&(a.set(u,p),o(p,u,n,i,a),a.delete(u)),U1(r,t,p)}function r2(r,e,t,n,o){r!==e&&cO(e,function(i,a){if(o||(o=new Ja),Xc(i))fO(r,e,a,t,r2,n,o);else{var c=n?n(W1(r,a),i,a+"",r,e,o):void 0;c===void 0&&(c=i),U1(r,a,c)}},UC)}function jc(r,e){return t2(r,e)}var Wc=jM(function(r,e,t){r2(r,e,t)}),or=(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))(or||{});class rl{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const o=or.TYPE&or.ATTRIBUTE;this.scope=n.scope!=null?n.scope&or.LEVEL|o:or.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 n2=class V1{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 V1.blots.set(c.domNode,c),c}find(e,t=!1){return V1.find(e,t)}query(e,t=or.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&or.LEVEL&or.BLOCK?n=this.types.block:e&or.LEVEL&or.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&or.LEVEL&n.scope&&t&or.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})}};n2.blots=new WeakMap;let cf=n2;function yb(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class hO extends rl{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){yb(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(yb(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const ya=hO;function _m(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class pO extends rl{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[_m(this.keyName)]=t,!0):!1}remove(e){e.style[_m(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[_m(this.keyName)];return this.canAdd(e,t)?t:""}}const Jc=pO;class gO{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=rl.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,or.ATTRIBUTE);a instanceof rl&&(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 Rg=gO,o2=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,or.BLOT)!=null&&o)i.wrap(n,o);else if(this.scroll.query(n,or.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}};o2.blotName="abstract";let i2=o2;const s2=class extends i2{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}}};s2.scope=or.INLINE_BLOT;let mO=s2;const Qo=mO;class vO{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 u=c();for(;u&&a<e+t;){const f=u.length();e>a?n(u,e-a,Math.min(t,a+f-e)):n(u,0,Math.min(f,e+t-a)),a+=f,u=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 bb(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(or.INLINE);return Array.from(r.childNodes).forEach(o=>{n.domNode.appendChild(o)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const a2=class Oc extends i2{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,Oc.uiClass&&this.uiNode.classList.add(Oc.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new vO,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=bb(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 Oc?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,u)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&o.push(a),a instanceof Oc&&(o=o.concat(a.descendants(e,c,i))),i-=u}),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===or.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Oc?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 Oc?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 Oc&&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=bb(i,this.scroll);(c.next!==a||c.next==null)&&(c.parent!=null&&c.parent.removeChild(this),this.insertBefore(c,a||void 0))}),this.enforceAllowedChildren()}};a2.uiClass="";let yO=a2;const fa=yO;function bO(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 Rg(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,or.INLINE);if(n==null)return;n instanceof rl?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,or.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&&bO(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,Qo],Hd.blotName="inline",Hd.scope=or.INLINE_BLOT,Hd.tagName="SPAN";let xO=Hd;const Fv=xO,qd=class G1 extends fa{static create(e){return super.create(e)}static formats(e,t){const n=t.query(G1.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 Rg(this.domNode)}format(e,t){const n=this.scroll.query(e,or.BLOCK);n!=null&&(n instanceof rl?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(G1.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,or.BLOCK)!=null?this.format(n,o):super.formatAt(e,t,n,o)}insertAt(e,t,n){if(n==null||this.scroll.query(t,or.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=or.BLOCK_BLOT,qd.tagName="P",qd.allowedChildren=[Fv,qd,Qo];let wO=qd;const Th=wO,Y1=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())}};Y1.blotName="container",Y1.scope=or.BLOCK_BLOT;let CO=Y1;const kg=CO;class SO extends Qo{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=SO,_O={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},AO=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,_O),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=or.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=(u,f=!0)=>{u==null||u===this||u.domNode.parentNode!=null&&(n.has(u.domNode)||n.set(u.domNode,[]),f&&i(u.parent))},a=u=>{n.has(u.domNode)&&(u instanceof fa&&u.children.forEach(a),n.delete(u.domNode),u.optimize(t))};let c=e;for(let u=0;c.length>0;u+=1){if(u>=AO)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(f=>{const p=this.find(f.target,!0);p!=null&&(p.domNode===f.target&&(f.type==="childList"?(i(this.find(f.previousSibling,!1)),Array.from(f.addedNodes).forEach(m=>{const g=this.find(m,!1);i(g,!1),g instanceof fa&&g.children.forEach(b=>{i(b,!1)})})):f.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,kg],Ud.scope=or.BLOCK_BLOT,Ud.tagName="DIV";let EO=Ud;const jv=EO,Z1=class l2 extends Qo{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 l2&&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}};Z1.blotName="text",Z1.scope=or.INLINE_BLOT;let TO=Z1;const ig=TO,RO=Object.freeze(Object.defineProperty({__proto__:null,Attributor:rl,AttributorStore:Rg,BlockBlot:Th,ClassAttributor:ya,ContainerBlot:kg,EmbedBlot:ss,InlineBlot:Fv,LeafBlot:Qo,ParentBlot:fa,Registry:cf,Scope:or,ScrollBlot:jv,StyleAttributor:Jc,TextBlot:ig},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 ig{};const kO={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ig(r){return r.replace(/[&<>"']/g,e=>kO[e])}const Ga=class Ga extends Fv{static compare(e,t){const n=Ga.order.indexOf(e),o=Ga.order.indexOf(t);return n>=0||o>=0?n-o:e===t?0:e<t?-1:1}formatAt(e,t,n,o){if(Ga.compare(this.statics.blotName,n)<0&&this.scroll.query(n,or.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 Ga&&Ga.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};ue(Ga,"allowedChildren",[Ga,ba,ss,pa]),ue(Ga,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let nl=Ga;const xb=1;class Yo extends Th{constructor(){super(...arguments);ue(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=c2(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,o,i){n<=0||(this.scroll.query(o,or.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((u,f)=>(c=c.split(u,!0),c.insertAt(0,f),f.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()+xb),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()-xb)){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,nl,ss,pa];let Ms=class extends ss{attach(){super.attach(),this.attributes=new Rg(this.domNode)}delta(){return new nr().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,or.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(u=>{const f=this.scroll.create(Yo.blotName);return f.insertAt(0,u),f}),c=this.split(e);a.forEach(u=>{this.parent.insertBefore(u,c)}),i&&this.parent.insertBefore(this.scroll.create("text",i),c)}};Ms.scope=or.BLOCK_BLOT;function c2(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Qo).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),ks(n,{},e)),new nr).insert(`
|
|
@@ -213,10 +213,10 @@ ${Ig(this.code(e,t))}
|
|
|
213
213
|
`,{[ei.blotName]:t}),o.insert(i)),new nr);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(ei.className),n.innerHTML=$N(this.options.hljs,t,e),Gv(this.quill.scroll,n,[(o,i)=>{const a=hh.value(o);return a?i.compose(new nr().retain(i.length(),{[$l.blotName]:a})):i}],[(o,i)=>o.data.split(`
|
|
214
214
|
`).reduce((a,c,u)=>(u!==0&&a.insert(`
|
|
215
215
|
`,{[ei.blotName]:t}),a.insert(c)),i)],new WeakMap)}}R2.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",Yv()),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()}};ue(xh,"blotName","table"),ue(xh,"tagName","TD");let da=xh;class ql extends td{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}}ue(ql,"blotName","table-row"),ue(ql,"tagName","TR");class Qa extends td{}ue(Qa,"blotName","table-body"),ue(Qa,"tagName","TBODY");class ff extends td{balanceCells(){const e=this.descendants(ql),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(Qa);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(Qa);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(Qa);if(t==null||t.children.head==null)return;const n=Yv(),o=this.scroll.create(ql.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)}}ue(ff,"blotName","table-container"),ue(ff,"tagName","TABLE");ff.allowedChildren=[Qa];Qa.requiredContainer=ff;Qa.allowedChildren=[ql];ql.requiredContainer=Qa;ql.allowedChildren=[da];da.requiredContainer=ql;function Yv(){return`row-${Math.random().toString(36).slice(2,6)}`}class qN extends xa{static register(){Re.register(da),Re.register(ql),Re.register(Qa),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
|
-
`).join("");return i.insert(a,{table:Yv()})},new nr().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 Fb=Wl("quill:toolbar");let Zv=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"),UN(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)){Fb.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){Fb.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 nr().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())}})}};Zv.DEFAULTS={};function jb(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 UN(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")jb(n,o);else{const i=Object.keys(o)[0],a=o[i];Array.isArray(a)?WN(n,i,a):jb(n,i,a)}}),r.appendChild(n)})}function WN(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)}Zv.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,or.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 VN='<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>',GN='<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>',YN='<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>',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="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',KN='<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>',XN='<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>',JN='<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>',QN='<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>',zb='<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>',eP='<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>',tP='<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>',rP='<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>',nP='<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>',oP='<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>',iP='<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>',sP='<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>',aP='<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>',lP='<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>',cP='<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>',uP='<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>',dP='<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>',fP='<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>',hP='<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>',pP='<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>',gP='<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>',mP='<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>',vP='<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>',yP='<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>',bP='<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>',xP='<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>',wP='<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>',CP='<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>',SP='<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:{"":VN,center:GN,right:YN,justify:ZN},background:KN,blockquote:XN,bold:JN,clean:QN,code:zb,"code-block":zb,color:eP,direction:{"":tP,rtl:rP},formula:nP,header:{1:oP,2:iP,3:sP,4:aP,5:lP,6:cP},italic:uP,image:dP,indent:{"+1":fP,"-1":hP},link:pP,list:{bullet:gP,check:mP,ordered:vP},script:{sub:yP,super:bP},strike:xP,table:wP,underline:CP,video:SP},_P='<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 Hb=0;function $b(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class Mg{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"),$b(this.label,"aria-expanded"),$b(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=_P,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-${Hb}`,Hb+=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 k2 extends Mg{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 I2 extends Mg{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 AP=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class M2{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,AP(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,u=e.bottom-e.top+c;this.root.style.top=`${n-u}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const EP=[!1,"center","right","justify"],TP=["#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"],RP=[!1,"serif","monospace"],kP=["1","2","3",!1],IP=["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,EP),typeof t.align=="object"))return new I2(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,TP,i==="background"?"#ffffff":"#000000"),new k2(o,t[i])}return o.querySelector("option")==null&&(o.classList.contains("ql-font")?rh(o,RP):o.classList.contains("ql-header")?rh(o,kP):o.classList.contains("ql-size")&&rh(o,IP)),new Mg(o)});const n=()=>{this.pickers.forEach(o=>{o.update()})};this.quill.on(er.events.EDITOR_CHANGE,n)}}Hh.DEFAULTS=Wc({},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 L2 extends M2{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,er.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,er.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=MP(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,er.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",er.sources.USER),this.quill.setSelection(n+2,er.sources.USER)}break}}this.textbox.value="",this.hide()}}function MP(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 LP=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class D2 extends L2{constructor(e,t){super(e,t),this.quill.on(er.events.EDITOR_CHANGE,(n,o,i,a)=>{if(n===er.events.SELECTION_CHANGE)if(o!=null&&o.length>0&&a===er.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 u=this.quill.getBounds(o);u!=null&&this.position(u)}else{const u=c[c.length-1],f=this.quill.getIndex(u),p=Math.min(u.length()-1,o.index+o.length-f),m=this.quill.getBounds(new Yu(f,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(er.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}}ue(D2,"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 O2 extends Hh{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=LP),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new D2(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))}}O2.DEFAULTS=Wc({},Hh.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Re.sources.USER)}}}}});const DP=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class N2 extends L2{constructor(){super(...arguments);ue(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,er.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(er.events.SELECTION_CHANGE,(t,n,o)=>{if(t!=null){if(t.length===0&&o===er.sources.USER){const[i,a]=this.quill.scroll.descendant(qc,t.index);if(i!=null){this.linkRange=new Yu(t.index-a,i.length());const c=qc.formats(i.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ue(N2,"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 P2 extends Hh{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=DP),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 N2(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)}))}}P2.DEFAULTS=Wc({},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":p2,"attributors/class/align":d2,"attributors/class/background":ZO,"attributors/class/color":YO,"attributors/class/direction":g2,"attributors/class/font":y2,"attributors/class/size":x2,"attributors/style/align":f2,"attributors/style/background":qv,"attributors/style/color":$v,"attributors/style/direction":m2,"attributors/style/font":b2,"attributors/style/size":w2},!0);Re.register({"formats/align":d2,"formats/direction":g2,"formats/indent":zN,"formats/background":qv,"formats/color":$v,"formats/font":y2,"formats/size":x2,"formats/blockquote":ev,"formats/code-block":ei,"formats/header":tv,"formats/list":zh,"formats/bold":kh,"formats/code":Uv,"formats/italic":rv,"formats/link":qc,"formats/script":nv,"formats/strike":ov,"formats/underline":iv,"formats/formula":Up,"formats/image":HN,"formats/video":Wp,"modules/syntax":R2,"modules/table":qN,"modules/toolbar":Zv,"themes/bubble":O2,"themes/snow":P2,"ui/icons":Ih,"ui/picker":Mg,"ui/icon-picker":I2,"ui/color-picker":k2,"ui/tooltip":M2},!0);class Lg extends C.Component{constructor(e){super(e),this.editingAreaRef=C.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,u;n==="text-change"?(c=this.onEditorChangeText)==null||c.call(this,this.editor.root.innerHTML,o,a,this.unprivilegedEditor):n==="selection-change"&&((u=this.onEditorChangeSelection)==null||u.call(this,o,a,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(C.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(C.Children.count(e.children)){const t=C.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=>!jc(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!jc(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),qb(()=>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)?jc(e.ops,t.ops):jc(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),qb(()=>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 C.Children.count(e)?C.cloneElement(C.Children.only(e),o):t?C.createElement("pre",{...o}):C.createElement("div",{...o})}render(){return C.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,u,f,p,m,g;if(!this.editor)return;const o=this.getEditorSelection(),i=!o&&e,a=o&&!e;jc(e,o)||(this.selection=e,(u=(c=this.props).onChangeSelection)==null||u.call(c,e,t,n),i?(p=(f=this.props).onFocus)==null||p.call(f,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())}}Lg.displayName="React Quill";Lg.Quill=Re;Lg.defaultProps={theme:"snow",modules:{},readOnly:!1};function qb(r){Promise.resolve().then(r)}class B2{constructor(e,t={}){ue(this,"quill");ue(this,"options");ue(this,"_toolbarEl",null);ue(this,"_button",null);ue(this,"_resizeObserver",null);ue(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=B2;var Om={exports:{}},Ub;function OP(){return Ub||(Ub=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 u in i)o.d(c,u,(function(f){return i[f]}).bind(null,u));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,u=Array.prototype.concat,f=Object.defineProperty,p=o(25)(),m=f&&p,g=function(w,T,A,_){var R;(!(T in w)||typeof(R=_)=="function"&&c.call(R)==="[object Function]"&&_())&&(m?f(w,T,{configurable:!0,enumerable:!1,value:A,writable:!0}):w[T]=A)},b=function(w,T){var A=arguments.length>2?arguments[2]:{},_=i(T);a&&(_=u.call(_,Object.getOwnPropertySymbols(T)));for(var R=0;R<_.length;R+=1)g(w,_[R],T[_[R]],A[_[R]])};b.supportsDescriptors=!!m,t.exports=b},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,u=function(V){try{return a('"use strict"; return ('+V+").constructor;")()}catch{}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch{f=null}var p=function(){throw new c},m=f?function(){try{return p}catch{try{return f(arguments,"callee").get}catch{return p}}}():p,g=o(21)(),b=Object.getPrototypeOf||function(V){return V.__proto__},w={},T=typeof Uint8Array>"u"?void 0:b(Uint8Array),A={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":g?b([][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?b(b([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&g?b(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?b(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?b(""[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},_={"%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),M=R.call(Function.call,Array.prototype.concat),F=R.call(Function.apply,Array.prototype.splice),B=R.call(Function.call,String.prototype.replace),z=R.call(Function.call,String.prototype.slice),j=R.call(Function.call,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,P=function(V){var Q=z(V,0,1),se=z(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 te=[];return B(V,G,function(re,ne,be,ie){te[te.length]=be?B(ie,fe,"$1"):ne||re}),te},U=function(V,Q){var se,te=V;if(D(_,te)&&(te="%"+(se=_[te])[0]+"%"),D(A,te)){var re=A[te];if(re===w&&(re=function ne(be){var ie;if(be==="%AsyncFunction%")ie=u("async function () {}");else if(be==="%GeneratorFunction%")ie=u("function* () {}");else if(be==="%AsyncGeneratorFunction%")ie=u("async function* () {}");else if(be==="%AsyncGenerator%"){var de=ne("%AsyncGeneratorFunction%");de&&(ie=de.prototype)}else if(be==="%AsyncIteratorPrototype%"){var me=ne("%AsyncGenerator%");me&&(ie=b(me.prototype))}return A[be]=ie,ie}(te)),re===void 0&&!Q)throw new c("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:se,name:te,value:re}}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(j(/^%?[^%]*%?$/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),te=se.length>0?se[0]:"",re=U("%"+te+"%",Q),ne=re.name,be=re.value,ie=!1,de=re.alias;de&&(te=de[0],F(se,M([0,1],de)));for(var me=1,Ae=!0;me<se.length;me+=1){var De=se[me],oe=z(De,0,1),ge=z(De,-1);if((oe==='"'||oe==="'"||oe==="`"||ge==='"'||ge==="'"||ge==="`")&&oe!==ge)throw new i("property names with quotes must have matching quotes");if(De!=="constructor"&&Ae||(ie=!0),D(A,ne="%"+(te+="."+De)+"%"))be=A[ne];else if(be!=null){if(!(De in be)){if(!Q)throw new c("base intrinsic for "+V+" exists, but the property is not available.");return}if(f&&me+1>=se.length){var we=f(be,De);be=(Ae=!!we)&&"get"in we&&!("originalValue"in we.get)?we.get:be[De]}else Ae=D(be,De),be=be[De];Ae&&!ie&&(A[ne]=be)}}return be}},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%"),u=a("%Function.prototype.call%"),f=a("%Reflect.apply%",!0)||i.call(u,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=f(i,u,arguments);if(p&&m){var A=p(T,"length");A.configurable&&m(T,"length",{value:1+g(0,w.length-(arguments.length-1))})}return T};var b=function(){return f(i,c,arguments)};m?m(t.exports,"apply",{value:b}):t.exports.apply=b},function(t,n,o){var i=o(18),a=o(6),c=o(15),u=o(32),f="\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 b={};return m.length===0?this:(b.insert=m,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(b.attributes=g),this.push(b))},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 b={retain:m};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(b.attributes=g),this.push(b)},p.prototype.push=function(m){var g=this.ops.length,b=this.ops[g-1];if(m=c(!0,{},m),typeof b=="object"){if(typeof m.delete=="number"&&typeof b.delete=="number")return this.ops[g-1]={delete:b.delete+m.delete},this;if(typeof b.delete=="number"&&m.insert!=null&&(g-=1,typeof(b=this.ops[g-1])!="object"))return this.ops.unshift(m),this;if(a(m.attributes,b.attributes)){if(typeof m.insert=="string"&&typeof b.insert=="string")return this.ops[g-1]={insert:b.insert+m.insert},typeof m.attributes=="object"&&(this.ops[g-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof b.retain=="number")return this.ops[g-1]={retain:b.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=[],b=[];return this.forEach(function(w){(m(w)?g:b).push(w)}),[g,b]},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+u.length(g):g.delete?m-g.delete:m},0)},p.prototype.length=function(){return this.reduce(function(m,g){return m+u.length(g)},0)},p.prototype.slice=function(m,g){m=m||0,typeof g!="number"&&(g=1/0);for(var b=[],w=u.iterator(this.ops),T=0;T<g&&w.hasNext();){var A;T<m?A=w.next(m-T):(A=w.next(g-T),b.push(A)),T+=u.length(A)}return new p(b)},p.prototype.compose=function(m){var g=u.iterator(this.ops),b=u.iterator(m.ops),w=[],T=b.peek();if(T!=null&&typeof T.retain=="number"&&T.attributes==null){for(var A=T.retain;g.peekType()==="insert"&&g.peekLength()<=A;)A-=g.peekLength(),w.push(g.next());T.retain-A>0&&b.next(T.retain-A)}for(var _=new p(w);g.hasNext()||b.hasNext();)if(b.peekType()==="insert")_.push(b.next());else if(g.peekType()==="delete")_.push(g.next());else{var R=Math.min(g.peekLength(),b.peekLength()),D=g.next(R),M=b.next(R);if(typeof M.retain=="number"){var F={};typeof D.retain=="number"?F.retain=R:F.insert=D.insert;var B=u.attributes.compose(D.attributes,M.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),_.push(F),!b.hasNext()&&a(_.ops[_.ops.length-1],F)){var z=new p(g.rest());return _.concat(z).chop()}}else typeof M.delete=="number"&&typeof D.retain=="number"&&_.push(M)}return _.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 b=[this,m].map(function(R){return R.map(function(D){if(D.insert!=null)return typeof D.insert=="string"?D.insert:f;throw new Error("diff() called "+(R===m?"on":"with")+" non-document")}).join("")}),w=new p,T=i(b[0],b[1],g),A=u.iterator(this.ops),_=u.iterator(m.ops);return T.forEach(function(R){for(var D=R[1].length;D>0;){var M=0;switch(R[0]){case i.INSERT:M=Math.min(_.peekLength(),D),w.push(_.next(M));break;case i.DELETE:M=Math.min(D,A.peekLength()),A.next(M),w.delete(M);break;case i.EQUAL:M=Math.min(A.peekLength(),_.peekLength(),D);var F=A.next(M),B=_.next(M);a(F.insert,B.insert)?w.retain(M,u.attributes.diff(F.attributes,B.attributes)):w.push(B).delete(M)}D-=M}}),w.chop()},p.prototype.eachLine=function(m,g){g=g||`
|
|
216
|
+
`).join("");return i.insert(a,{table:Yv()})},new nr().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 Fb=Wl("quill:toolbar");let Zv=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"),UN(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)){Fb.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){Fb.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 nr().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())}})}};Zv.DEFAULTS={};function jb(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 UN(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")jb(n,o);else{const i=Object.keys(o)[0],a=o[i];Array.isArray(a)?WN(n,i,a):jb(n,i,a)}}),r.appendChild(n)})}function WN(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)}Zv.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,or.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 VN='<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>',GN='<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>',YN='<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>',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="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',KN='<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>',XN='<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>',JN='<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>',QN='<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>',zb='<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>',eP='<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>',tP='<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>',rP='<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>',nP='<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>',oP='<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>',iP='<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>',sP='<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>',aP='<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>',lP='<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>',cP='<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>',uP='<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>',dP='<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>',fP='<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>',hP='<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>',pP='<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>',gP='<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>',mP='<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>',vP='<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>',yP='<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>',bP='<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>',xP='<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>',wP='<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>',CP='<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>',SP='<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:{"":VN,center:GN,right:YN,justify:ZN},background:KN,blockquote:XN,bold:JN,clean:QN,code:zb,"code-block":zb,color:eP,direction:{"":tP,rtl:rP},formula:nP,header:{1:oP,2:iP,3:sP,4:aP,5:lP,6:cP},italic:uP,image:dP,indent:{"+1":fP,"-1":hP},link:pP,list:{bullet:gP,check:mP,ordered:vP},script:{sub:yP,super:bP},strike:xP,table:wP,underline:CP,video:SP},_P='<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 Hb=0;function $b(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class Mg{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"),$b(this.label,"aria-expanded"),$b(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=_P,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-${Hb}`,Hb+=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 k2 extends Mg{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 I2 extends Mg{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 AP=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class M2{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,AP(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,u=e.bottom-e.top+c;this.root.style.top=`${n-u}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const EP=[!1,"center","right","justify"],TP=["#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"],RP=[!1,"serif","monospace"],kP=["1","2","3",!1],IP=["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,EP),typeof t.align=="object"))return new I2(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,TP,i==="background"?"#ffffff":"#000000"),new k2(o,t[i])}return o.querySelector("option")==null&&(o.classList.contains("ql-font")?rh(o,RP):o.classList.contains("ql-header")?rh(o,kP):o.classList.contains("ql-size")&&rh(o,IP)),new Mg(o)});const n=()=>{this.pickers.forEach(o=>{o.update()})};this.quill.on(er.events.EDITOR_CHANGE,n)}}Hh.DEFAULTS=Wc({},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 L2 extends M2{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,er.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,er.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=MP(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,er.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",er.sources.USER),this.quill.setSelection(n+2,er.sources.USER)}break}}this.textbox.value="",this.hide()}}function MP(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 LP=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class D2 extends L2{constructor(e,t){super(e,t),this.quill.on(er.events.EDITOR_CHANGE,(n,o,i,a)=>{if(n===er.events.SELECTION_CHANGE)if(o!=null&&o.length>0&&a===er.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 u=this.quill.getBounds(o);u!=null&&this.position(u)}else{const u=c[c.length-1],f=this.quill.getIndex(u),p=Math.min(u.length()-1,o.index+o.length-f),m=this.quill.getBounds(new Yu(f,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(er.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}}ue(D2,"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 O2 extends Hh{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=LP),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new D2(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))}}O2.DEFAULTS=Wc({},Hh.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Re.sources.USER)}}}}});const DP=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class N2 extends L2{constructor(){super(...arguments);ue(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,er.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(er.events.SELECTION_CHANGE,(t,n,o)=>{if(t!=null){if(t.length===0&&o===er.sources.USER){const[i,a]=this.quill.scroll.descendant(qc,t.index);if(i!=null){this.linkRange=new Yu(t.index-a,i.length());const c=qc.formats(i.domNode);this.preview.textContent=c,this.preview.setAttribute("href",c),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ue(N2,"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 P2 extends Hh{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=DP),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 N2(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)}))}}P2.DEFAULTS=Wc({},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":p2,"attributors/class/align":d2,"attributors/class/background":ZO,"attributors/class/color":YO,"attributors/class/direction":g2,"attributors/class/font":y2,"attributors/class/size":x2,"attributors/style/align":f2,"attributors/style/background":qv,"attributors/style/color":$v,"attributors/style/direction":m2,"attributors/style/font":b2,"attributors/style/size":w2},!0);Re.register({"formats/align":d2,"formats/direction":g2,"formats/indent":zN,"formats/background":qv,"formats/color":$v,"formats/font":y2,"formats/size":x2,"formats/blockquote":ev,"formats/code-block":ei,"formats/header":tv,"formats/list":zh,"formats/bold":kh,"formats/code":Uv,"formats/italic":rv,"formats/link":qc,"formats/script":nv,"formats/strike":ov,"formats/underline":iv,"formats/formula":Up,"formats/image":HN,"formats/video":Wp,"modules/syntax":R2,"modules/table":qN,"modules/toolbar":Zv,"themes/bubble":O2,"themes/snow":P2,"ui/icons":Ih,"ui/picker":Mg,"ui/icon-picker":I2,"ui/color-picker":k2,"ui/tooltip":M2},!0);class Lg extends C.Component{constructor(e){super(e),this.editingAreaRef=C.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,u;n==="text-change"?(c=this.onEditorChangeText)==null||c.call(this,this.editor.root.innerHTML,o,a,this.unprivilegedEditor):n==="selection-change"&&((u=this.onEditorChangeSelection)==null||u.call(this,o,a,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(C.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(C.Children.count(e.children)){const t=C.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=>!jc(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!jc(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),qb(()=>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)?jc(e.ops,t.ops):jc(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),qb(()=>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 C.Children.count(e)?C.cloneElement(C.Children.only(e),o):t?C.createElement("pre",{...o}):C.createElement("div",{...o})}render(){return C.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,u,f,p,m,g;if(!this.editor)return;const o=this.getEditorSelection(),i=!o&&e,a=o&&!e;jc(e,o)||(this.selection=e,(u=(c=this.props).onChangeSelection)==null||u.call(c,e,t,n),i?(p=(f=this.props).onFocus)==null||p.call(f,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())}}Lg.displayName="React Quill";Lg.Quill=Re;Lg.defaultProps={theme:"snow",modules:{},readOnly:!1};function qb(r){Promise.resolve().then(r)}class B2{constructor(e,t={}){ue(this,"quill");ue(this,"options");ue(this,"_toolbarEl",null);ue(this,"_button",null);ue(this,"_resizeObserver",null);ue(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=B2;var Om={exports:{}},Ub;function OP(){return Ub||(Ub=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 u in i)o.d(c,u,(function(f){return i[f]}).bind(null,u));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,u=Array.prototype.concat,f=Object.defineProperty,p=o(25)(),m=f&&p,g=function(w,T,A,_){var R;(!(T in w)||typeof(R=_)=="function"&&c.call(R)==="[object Function]"&&_())&&(m?f(w,T,{configurable:!0,enumerable:!1,value:A,writable:!0}):w[T]=A)},b=function(w,T){var A=arguments.length>2?arguments[2]:{},_=i(T);a&&(_=u.call(_,Object.getOwnPropertySymbols(T)));for(var R=0;R<_.length;R+=1)g(w,_[R],T[_[R]],A[_[R]])};b.supportsDescriptors=!!m,t.exports=b},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,u=function(V){try{return a('"use strict"; return ('+V+").constructor;")()}catch{}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch{f=null}var p=function(){throw new c},m=f?function(){try{return p}catch{try{return f(arguments,"callee").get}catch{return p}}}():p,g=o(21)(),b=Object.getPrototypeOf||function(V){return V.__proto__},w={},T=typeof Uint8Array>"u"?void 0:b(Uint8Array),A={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":g?b([][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?b(b([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&g?b(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?b(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?b(""[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},_={"%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),M=R.call(Function.call,Array.prototype.concat),F=R.call(Function.apply,Array.prototype.splice),B=R.call(Function.call,String.prototype.replace),z=R.call(Function.call,String.prototype.slice),j=R.call(Function.call,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,P=function(V){var Q=z(V,0,1),se=z(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 te=[];return B(V,G,function(re,ne,be,ie){te[te.length]=be?B(ie,fe,"$1"):ne||re}),te},U=function(V,Q){var se,te=V;if(D(_,te)&&(te="%"+(se=_[te])[0]+"%"),D(A,te)){var re=A[te];if(re===w&&(re=function ne(be){var ie;if(be==="%AsyncFunction%")ie=u("async function () {}");else if(be==="%GeneratorFunction%")ie=u("function* () {}");else if(be==="%AsyncGeneratorFunction%")ie=u("async function* () {}");else if(be==="%AsyncGenerator%"){var de=ne("%AsyncGeneratorFunction%");de&&(ie=de.prototype)}else if(be==="%AsyncIteratorPrototype%"){var me=ne("%AsyncGenerator%");me&&(ie=b(me.prototype))}return A[be]=ie,ie}(te)),re===void 0&&!Q)throw new c("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:se,name:te,value:re}}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(j(/^%?[^%]*%?$/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),te=se.length>0?se[0]:"",re=U("%"+te+"%",Q),ne=re.name,be=re.value,ie=!1,de=re.alias;de&&(te=de[0],F(se,M([0,1],de)));for(var me=1,Ae=!0;me<se.length;me+=1){var Oe=se[me],oe=z(Oe,0,1),ge=z(Oe,-1);if((oe==='"'||oe==="'"||oe==="`"||ge==='"'||ge==="'"||ge==="`")&&oe!==ge)throw new i("property names with quotes must have matching quotes");if(Oe!=="constructor"&&Ae||(ie=!0),D(A,ne="%"+(te+="."+Oe)+"%"))be=A[ne];else if(be!=null){if(!(Oe in be)){if(!Q)throw new c("base intrinsic for "+V+" exists, but the property is not available.");return}if(f&&me+1>=se.length){var we=f(be,Oe);be=(Ae=!!we)&&"get"in we&&!("originalValue"in we.get)?we.get:be[Oe]}else Ae=D(be,Oe),be=be[Oe];Ae&&!ie&&(A[ne]=be)}}return be}},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%"),u=a("%Function.prototype.call%"),f=a("%Reflect.apply%",!0)||i.call(u,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=f(i,u,arguments);if(p&&m){var A=p(T,"length");A.configurable&&m(T,"length",{value:1+g(0,w.length-(arguments.length-1))})}return T};var b=function(){return f(i,c,arguments)};m?m(t.exports,"apply",{value:b}):t.exports.apply=b},function(t,n,o){var i=o(18),a=o(6),c=o(15),u=o(32),f="\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 b={};return m.length===0?this:(b.insert=m,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(b.attributes=g),this.push(b))},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 b={retain:m};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(b.attributes=g),this.push(b)},p.prototype.push=function(m){var g=this.ops.length,b=this.ops[g-1];if(m=c(!0,{},m),typeof b=="object"){if(typeof m.delete=="number"&&typeof b.delete=="number")return this.ops[g-1]={delete:b.delete+m.delete},this;if(typeof b.delete=="number"&&m.insert!=null&&(g-=1,typeof(b=this.ops[g-1])!="object"))return this.ops.unshift(m),this;if(a(m.attributes,b.attributes)){if(typeof m.insert=="string"&&typeof b.insert=="string")return this.ops[g-1]={insert:b.insert+m.insert},typeof m.attributes=="object"&&(this.ops[g-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof b.retain=="number")return this.ops[g-1]={retain:b.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=[],b=[];return this.forEach(function(w){(m(w)?g:b).push(w)}),[g,b]},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+u.length(g):g.delete?m-g.delete:m},0)},p.prototype.length=function(){return this.reduce(function(m,g){return m+u.length(g)},0)},p.prototype.slice=function(m,g){m=m||0,typeof g!="number"&&(g=1/0);for(var b=[],w=u.iterator(this.ops),T=0;T<g&&w.hasNext();){var A;T<m?A=w.next(m-T):(A=w.next(g-T),b.push(A)),T+=u.length(A)}return new p(b)},p.prototype.compose=function(m){var g=u.iterator(this.ops),b=u.iterator(m.ops),w=[],T=b.peek();if(T!=null&&typeof T.retain=="number"&&T.attributes==null){for(var A=T.retain;g.peekType()==="insert"&&g.peekLength()<=A;)A-=g.peekLength(),w.push(g.next());T.retain-A>0&&b.next(T.retain-A)}for(var _=new p(w);g.hasNext()||b.hasNext();)if(b.peekType()==="insert")_.push(b.next());else if(g.peekType()==="delete")_.push(g.next());else{var R=Math.min(g.peekLength(),b.peekLength()),D=g.next(R),M=b.next(R);if(typeof M.retain=="number"){var F={};typeof D.retain=="number"?F.retain=R:F.insert=D.insert;var B=u.attributes.compose(D.attributes,M.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),_.push(F),!b.hasNext()&&a(_.ops[_.ops.length-1],F)){var z=new p(g.rest());return _.concat(z).chop()}}else typeof M.delete=="number"&&typeof D.retain=="number"&&_.push(M)}return _.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 b=[this,m].map(function(R){return R.map(function(D){if(D.insert!=null)return typeof D.insert=="string"?D.insert:f;throw new Error("diff() called "+(R===m?"on":"with")+" non-document")}).join("")}),w=new p,T=i(b[0],b[1],g),A=u.iterator(this.ops),_=u.iterator(m.ops);return T.forEach(function(R){for(var D=R[1].length;D>0;){var M=0;switch(R[0]){case i.INSERT:M=Math.min(_.peekLength(),D),w.push(_.next(M));break;case i.DELETE:M=Math.min(D,A.peekLength()),A.next(M),w.delete(M);break;case i.EQUAL:M=Math.min(A.peekLength(),_.peekLength(),D);var F=A.next(M),B=_.next(M);a(F.insert,B.insert)?w.retain(M,u.attributes.diff(F.attributes,B.attributes)):w.push(B).delete(M)}D-=M}}),w.chop()},p.prototype.eachLine=function(m,g){g=g||`
|
|
217
217
|
`;for(var b=u.iterator(this.ops),w=new p,T=0;b.hasNext();){if(b.peekType()!=="insert")return;var A=b.peek(),_=u.length(A)-b.peekLength(),R=typeof A.insert=="string"?A.insert.indexOf(g,_)-_:-1;if(R<0)w.push(b.next());else if(R>0)w.push(b.next(R));else{if(m(w,b.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 b=u.iterator(this.ops),w=u.iterator(m.ops),T=new p;b.hasNext()||w.hasNext();)if(b.peekType()!=="insert"||!g&&w.peekType()==="insert")if(w.peekType()==="insert")T.push(w.next());else{var A=Math.min(b.peekLength(),w.peekLength()),_=b.next(A),R=w.next(A);if(_.delete)continue;R.delete?T.push(R):T.retain(A,u.attributes.transform(_.attributes,R.attributes,g))}else T.retain(u.length(b.next()));return T.chop()},p.prototype.transformPosition=function(m,g){g=!!g;for(var b=u.iterator(this.ops),w=0;b.hasNext()&&w<=m;){var T=b.peekLength(),A=b.peekType();b.next(),A!=="delete"?(A==="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),u=o(27),f=o(28),p=o(31),m=Date.prototype.getTime;function g(T,A,_){var R=_||{};return!!(R.strict?c(T,A):T===A)||(!T||!A||typeof T!="object"&&typeof A!="object"?R.strict?c(T,A):T==A:function(D,M,F){var B,z;if(typeof D!=typeof M||b(D)||b(M)||D.prototype!==M.prototype||a(D)!==a(M))return!1;var j=u(D),G=u(M);if(j!==G)return!1;if(j||G)return D.source===M.source&&f(D)===f(M);if(p(D)&&p(M))return m.call(D)===m.call(M);var fe=w(D),P=w(M);if(fe!==P)return!1;if(fe||P){if(D.length!==M.length)return!1;for(B=0;B<D.length;B++)if(D[B]!==M[B])return!1;return!0}if(typeof D!=typeof M)return!1;try{var U=i(D),V=i(M)}catch{return!1}if(U.length!==V.length)return!1;for(U.sort(),V.sort(),B=U.length-1;B>=0;B--)if(U[B]!=V[B])return!1;for(B=U.length-1;B>=0;B--)if(z=U[B],!g(D[z],M[z],F))return!1;return!0}(T,A,R))}function b(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,u=c?function(p){return c(p)}:o(19),f=Object.keys;u.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)?f(i.call(p)):f(p)}):Object.keys=u,Object.keys||u},t.exports=u},function(t,n,o){var i=Object.prototype.toString;t.exports=function(a){var c=i.call(a),u=c==="[object Arguments]";return u||(u=c!=="[object Array]"&&a!==null&&typeof a=="object"&&typeof a.length=="number"&&a.length>=0&&i.call(a.callee)==="[object Function]"),u}},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 u=Object.getOwnPropertySymbols(i);if(u.length!==1||u[0]!==a||!Object.prototype.propertyIsEnumerable.call(i,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(i,a);if(f.value!==42||f.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(u,f){var p=i(u,!!f);return typeof p=="function"&&c(u,".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 u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.sticky&&(u+="y"),u},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 u=c(RegExp.prototype,"flags");if(u&&typeof u.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var f="",p={};if(Object.defineProperty(p,"hasIndices",{get:function(){f+="d"}}),Object.defineProperty(p,"sticky",{get:function(){f+="y"}}),f==="dy")return u.get}}return i}},function(t,n,o){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(b){return typeof Array.isArray=="function"?Array.isArray(b):a.call(b)==="[object Array]"},p=function(b){if(!b||a.call(b)!=="[object Object]")return!1;var w,T=i.call(b,"constructor"),A=b.constructor&&b.constructor.prototype&&i.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!T&&!A)return!1;for(w in b);return w===void 0||i.call(b,w)},m=function(b,w){c&&w.name==="__proto__"?c(b,w.name,{enumerable:!0,configurable:!0,value:w.newValue,writable:!0}):b[w.name]=w.newValue},g=function(b,w){if(w==="__proto__"){if(!i.call(b,w))return;if(u)return u(b,w).value}return b[w]};t.exports=function b(){var w,T,A,_,R,D,M=arguments[0],F=1,B=arguments.length,z=!1;for(typeof M=="boolean"&&(z=M,M=arguments[1]||{},F=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});F<B;++F)if((w=arguments[F])!=null)for(T in w)A=g(M,T),M!==(_=g(w,T))&&(z&&_&&(p(_)||(R=f(_)))?(R?(R=!1,D=A&&f(A)?A:[]):D=A&&p(A)?A:{},m(M,{name:T,newValue:b(z,D,_)})):_!==void 0&&m(M,{name:T,newValue:_}));return M}},function(t,n,o){const i=typeof URL>"u"?o(33).URL:URL,a=(u,f)=>f.some(p=>p instanceof RegExp?p.test(u):p===u),c=(u,f)=>{if(f={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...f},Reflect.has(f,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(f,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(f,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(u=u.trim(),/^data:/i.test(u))return((g,{stripHash:b})=>{const w=g.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!w)throw new Error("Invalid URL: "+g);const T=w[1].split(";"),A=w[2],_=b?"":w[3];let R=!1;T[T.length-1]==="base64"&&(T.pop(),R=!0);const D=(T.shift()||"").toLowerCase(),M=[...T.map(F=>{let[B,z=""]=F.split("=").map(j=>j.trim());return B==="charset"&&(z=z.toLowerCase(),z==="us-ascii")?"":`${B}${z?"="+z:""}`}).filter(Boolean)];return R&&M.push("base64"),(M.length!==0||D&&D!=="text/plain")&&M.unshift(D),`data:${M.join(";")},${R?A.trim():A}${_?"#"+_:""}`})(u,f);const p=u.startsWith("//");!p&&/^\.*\//.test(u)||(u=u.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,f.defaultProtocol));const m=new i(u);if(f.forceHttp&&f.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(f.forceHttp&&m.protocol==="https:"&&(m.protocol="http:"),f.forceHttps&&m.protocol==="http:"&&(m.protocol="https:"),f.stripAuthentication&&(m.username="",m.password=""),f.stripHash&&(m.hash=""),m.pathname&&(m.pathname=m.pathname.replace(/((?!:).|^)\/{2,}/g,(g,b)=>/^(?!\/)/g.test(b)?b+"/":"/")),m.pathname&&(m.pathname=decodeURI(m.pathname)),f.removeDirectoryIndex===!0&&(f.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(f.removeDirectoryIndex)&&f.removeDirectoryIndex.length>0){let g=m.pathname.split("/");const b=g[g.length-1];a(b,f.removeDirectoryIndex)&&(g=g.slice(0,g.length-1),m.pathname=g.slice(1).join("/")+"/")}if(m.hostname&&(m.hostname=m.hostname.replace(/\.$/,""),f.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(m.hostname)&&(m.hostname=m.hostname.replace(/^www\./,""))),Array.isArray(f.removeQueryParameters))for(const g of[...m.searchParams.keys()])a(g,f.removeQueryParameters)&&m.searchParams.delete(g);return f.sortQueryParameters&&m.searchParams.sort(),f.removeTrailingSlash&&(m.pathname=m.pathname.replace(/\/$/,"")),u=m.toString(),!f.removeTrailingSlash&&m.pathname!=="/"||m.hash!==""||(u=u.replace(/\/$/,"")),p&&!f.normalizeProtocol&&(u=u.replace(/^http:\/\//,"//")),f.stripProtocol&&(u=u.replace(/^(?:https?:)?\/\//,"")),u};t.exports=c,t.exports.default=c},function(t,n,o){o.r(n),o.d(n,"default",function(){return A});var i=o(5),a=o.n(i),c=o(16),u=o.n(c);function f(_,R){return function(D){if(Array.isArray(D))return D}(_)||function(D,M){var F=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(F!=null){var B,z,j=[],G=!0,fe=!1;try{for(F=F.call(D);!(G=(B=F.next()).done)&&(j.push(B.value),!M||j.length!==M);G=!0);}catch(P){fe=!0,z=P}finally{try{G||F.return==null||F.return()}finally{if(fe)throw z}}return j}}(_,R)||function(D,M){if(D){if(typeof D=="string")return p(D,M);var F=Object.prototype.toString.call(D).slice(8,-1);if(F==="Object"&&D.constructor&&(F=D.constructor.name),F==="Map"||F==="Set")return Array.from(D);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return p(D,M)}}(_,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(_,R){(R==null||R>_.length)&&(R=_.length);for(var D=0,M=new Array(R);D<R;D++)M[D]=_[D];return M}function m(_,R){var D=Object.keys(_);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(_);R&&(M=M.filter(function(F){return Object.getOwnPropertyDescriptor(_,F).enumerable})),D.push.apply(D,M)}return D}function g(_){for(var R=1;R<arguments.length;R++){var D=arguments[R]!=null?arguments[R]:{};R%2?m(Object(D),!0).forEach(function(M){b(_,M,D[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(D)):m(Object(D)).forEach(function(M){Object.defineProperty(_,M,Object.getOwnPropertyDescriptor(D,M))})}return _}function b(_,R,D){return R in _?Object.defineProperty(_,R,{value:D,enumerable:!0,configurable:!0,writable:!0}):_[R]=D,_}function w(_,R){for(var D=0;D<R.length;D++){var M=R[D];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}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}},A=function(){function _(M,F){var B=this;(function(z,j){if(!(z instanceof j))throw new TypeError("Cannot call a class as a function")})(this,_),this.quill=M,F=F||{},this.options=g(g({},T),F),this.urlNormalizer=function(z){return B.normalize(z)},this.mailNormalizer=function(z){return"mailto:".concat(z)},this.registerTypeListener(),this.registerPasteListener(),this.registerBlurListener()}var R,D;return R=_,(D=[{key:"registerPasteListener",value:function(){var M=this;this.quill.clipboard.addMatcher("A",function(F,B){var z,j=F.getAttribute("href"),G=(z=B.ops[0])===null||z===void 0?void 0:z.attributes;return(G==null?void 0:G.link)!=null&&(G.link=j),B}),this.quill.clipboard.addMatcher(Node.TEXT_NODE,function(F,B){if(typeof F.data=="string"){var z=M.options.globalRegularExpression,j=M.options.globalMailRegularExpression;z.lastIndex=0,j.lastIndex=0;for(var G=new a.a,fe=0,P=z.exec(F.data),U=j.exec(F.data),V=function(se,te,re){var ne=F.data.substring(fe,se.index);G.insert(ne);var be=se[0];return G.insert(be,{link:re(be)}),fe=te.lastIndex,te.exec(F.data)};P!==null||U!==null;)if(P===null)U=V(U,j,M.mailNormalizer);else if(U===null)P=V(P,z,M.urlNormalizer);else if(U.index<=P.index){for(;P!==null&&P.index<j.lastIndex;)P=z.exec(F.data);U=V(U,j,M.mailNormalizer)}else{for(;U!==null&&U.index<z.lastIndex;)U=j.exec(F.data);P=V(P,z,M.urlNormalizer)}if(fe>0){var Q=F.data.substring(fe);G.insert(Q),B.ops=G.ops}return B}})}},{key:"registerTypeListener",value:function(){var M=this;this.quill.on("text-change",function(F){var B=F.ops;if(!(!B||B.length<1||B.length>2)){var z=B[B.length-1];z.insert&&typeof z.insert=="string"&&z.insert.match(/\s/)&&M.checkTextForUrl(!!z.insert.match(/ |\t/))}})}},{key:"registerBlurListener",value:function(){var M=this;this.quill.root.addEventListener("blur",function(){M.checkTextForUrl()})}},{key:"checkTextForUrl",value:function(){var M=arguments.length>0&&arguments[0]!==void 0&&arguments[0],F=this.quill.getSelection();if(F){var B=this.quill.getLeaf(F.index),z=f(B,1),j=z[0],G=this.quill.getIndex(j);if(j.text){var fe=F.index-G,P=j.text.slice(0,fe);if(P&&j.parent.domNode.localName!=="a"){var U=j.text[fe];if(U==null||!U.match(/\S/)){var V=M?/\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(M,F,B,z){var j=B.pop(),G=F.lastIndexOf(j);F.split(j).pop().match(/\S/)||this.updateText(M+G,j.trim(),z)}},{key:"updateText",value:function(M,F,B){var z=new a.a().retain(M).retain(F.length,{link:B(F)});this.quill.updateContents(z)}},{key:"normalize",value:function(M){if(this.options.normalizeRegularExpression.test(M))try{return u()(M,this.options.normalizeUrlOptions)}catch(F){console.error(F)}return M}}])&&w(R.prototype,D),Object.defineProperty(R,"prototype",{writable:!1}),_}();window!=null&&window.Quill&&window.Quill.register("modules/magicUrl",A)},function(t,n){function o(p,m,g){if(p==m)return p?[[0,p]]:[];(g<0||p.length<g)&&(g=null);var b=a(p,m),w=p.substring(0,b);b=c(p=p.substring(b),m=m.substring(b));var T=p.substring(p.length-b),A=function(_,R){var D;if(!_)return[[1,R]];if(!R)return[[-1,_]];var M=_.length>R.length?_:R,F=_.length>R.length?R:_,B=M.indexOf(F);if(B!=-1)return D=[[1,M.substring(0,B)],[0,F],[1,M.substring(B+F.length)]],_.length>R.length&&(D[0][0]=D[2][0]=-1),D;if(F.length==1)return[[-1,_],[1,R]];var z=function(se,te){var re=se.length>te.length?se:te,ne=se.length>te.length?te:se;if(re.length<4||2*ne.length<re.length)return null;function be(Le,Ce,Se){for(var Ie,et,Je,Qe,Ze=Le.substring(Se,Se+Math.floor(Le.length/4)),Ke=-1,ht="";(Ke=Ce.indexOf(Ze,Ke+1))!=-1;){var Pe=a(Le.substring(Se),Ce.substring(Ke)),Ne=c(Le.substring(0,Se),Ce.substring(0,Ke));ht.length<Ne+Pe&&(ht=Ce.substring(Ke-Ne,Ke)+Ce.substring(Ke,Ke+Pe),Ie=Le.substring(0,Se-Ne),et=Le.substring(Se+Pe),Je=Ce.substring(0,Ke-Ne),Qe=Ce.substring(Ke+Pe))}return 2*ht.length>=Le.length?[Ie,et,Je,Qe,ht]:null}var ie,de,me,Ae,De,oe=be(re,ne,Math.ceil(re.length/4)),ge=be(re,ne,Math.ceil(re.length/2));if(!oe&&!ge)return null;ie=ge?oe&&oe[4].length>ge[4].length?oe:ge:oe,se.length>te.length?(de=ie[0],me=ie[1],Ae=ie[2],De=ie[3]):(Ae=ie[0],De=ie[1],de=ie[2],me=ie[3]);var we=ie[4];return[de,me,Ae,De,we]}(_,R);if(z){var j=z[0],G=z[1],fe=z[2],P=z[3],U=z[4],V=o(j,fe),Q=o(G,P);return V.concat([[0,U]],Q)}return function(se,te){for(var re=se.length,ne=te.length,be=Math.ceil((re+ne)/2),ie=be,de=2*be,me=new Array(de),Ae=new Array(de),De=0;De<de;De++)me[De]=-1,Ae[De]=-1;me[ie+1]=0,Ae[ie+1]=0;for(var oe=re-ne,ge=oe%2!=0,we=0,Le=0,Ce=0,Se=0,Ie=0;Ie<be;Ie++){for(var et=-Ie+we;et<=Ie-Le;et+=2){for(var Je=ie+et,Qe=(Ne=et==-Ie||et!=Ie&&me[Je-1]<me[Je+1]?me[Je+1]:me[Je-1]+1)-et;Ne<re&&Qe<ne&&se.charAt(Ne)==te.charAt(Qe);)Ne++,Qe++;if(me[Je]=Ne,Ne>re)Le+=2;else if(Qe>ne)we+=2;else if(ge&&(ht=ie+oe-et)>=0&&ht<de&&Ae[ht]!=-1){var Ze=re-Ae[ht];if(Ne>=Ze)return i(se,te,Ne,Qe)}}for(var Ke=-Ie+Ce;Ke<=Ie-Se;Ke+=2){for(var ht=ie+Ke,Pe=(Ze=Ke==-Ie||Ke!=Ie&&Ae[ht-1]<Ae[ht+1]?Ae[ht+1]:Ae[ht-1]+1)-Ke;Ze<re&&Pe<ne&&se.charAt(re-Ze-1)==te.charAt(ne-Pe-1);)Ze++,Pe++;if(Ae[ht]=Ze,Ze>re)Se+=2;else if(Pe>ne)Ce+=2;else if(!ge&&(Je=ie+oe-Ke)>=0&&Je<de&&me[Je]!=-1){var Ne=me[Je];if(Qe=ie+Ne-Je,Ne>=(Ze=re-Ze))return i(se,te,Ne,Qe)}}}return[[-1,se],[1,te]]}(_,R)}(p=p.substring(0,p.length-b),m=m.substring(0,m.length-b));return w&&A.unshift([0,w]),T&&A.push([0,T]),function _(R){R.push([0,""]);for(var D,M=0,F=0,B=0,z="",j="";M<R.length;)switch(R[M][0]){case 1:B++,j+=R[M][1],M++;break;case-1:F++,z+=R[M][1],M++;break;case 0:F+B>1?(F!==0&&B!==0&&((D=a(j,z))!==0&&(M-F-B>0&&R[M-F-B-1][0]==0?R[M-F-B-1][1]+=j.substring(0,D):(R.splice(0,0,[0,j.substring(0,D)]),M++),j=j.substring(D),z=z.substring(D)),(D=c(j,z))!==0&&(R[M][1]=j.substring(j.length-D)+R[M][1],j=j.substring(0,j.length-D),z=z.substring(0,z.length-D))),F===0?R.splice(M-B,F+B,[1,j]):B===0?R.splice(M-F,F+B,[-1,z]):R.splice(M-F-B,F+B,[-1,z],[1,j]),M=M-F-B+(F?1:0)+(B?1:0)+1):M!==0&&R[M-1][0]==0?(R[M-1][1]+=R[M][1],R.splice(M,1)):M++,B=0,F=0,z="",j=""}R[R.length-1][1]===""&&R.pop();var G=!1;for(M=1;M<R.length-1;)R[M-1][0]==0&&R[M+1][0]==0&&(R[M][1].substring(R[M][1].length-R[M-1][1].length)==R[M-1][1]?(R[M][1]=R[M-1][1]+R[M][1].substring(0,R[M][1].length-R[M-1][1].length),R[M+1][1]=R[M-1][1]+R[M+1][1],R.splice(M-1,1),G=!0):R[M][1].substring(0,R[M+1][1].length)==R[M+1][1]&&(R[M-1][1]+=R[M+1][1],R[M][1]=R[M][1].substring(R[M+1][1].length)+R[M+1][1],R.splice(M+1,1),G=!0)),M++;G&&_(R)}(A),g!=null&&(A=function(_,R){var D=function(G,fe){if(fe===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(fe===Q)return[U+1,G];if(fe<Q){G=G.slice();var se=fe-P,te=[V[0],V[1].slice(0,se)],re=[V[0],V[1].slice(se)];return G.splice(U,1,te,re),[U+1,G]}P=Q}}throw new Error("cursor_pos is out of bounds!")}(_,R),M=D[1],F=D[0],B=M[F],z=M[F+1];if(B==null||B[0]!==0)return _;if(z!=null&&B[1]+z[1]===z[1]+B[1])return M.splice(F,2,z,B),f(M,F,2);if(z!=null&&z[1].indexOf(B[1])===0){M.splice(F,2,[z[0],B[1]],[0,B[1]]);var j=z[1].slice(B[1].length);return j.length>0&&M.splice(F+2,0,[z[0],j]),f(M,F,3)}return _}(A,g)),A=function(_){for(var R=!1,D=function(z){return z.charCodeAt(0)>=56320&&z.charCodeAt(0)<=57343},M=2;M<_.length;M+=1)_[M-2][0]===0&&(F=_[M-2][1]).charCodeAt(F.length-1)>=55296&&F.charCodeAt(F.length-1)<=56319&&_[M-1][0]===-1&&D(_[M-1][1])&&_[M][0]===1&&D(_[M][1])&&(R=!0,_[M-1][1]=_[M-2][1].slice(-1)+_[M-1][1],_[M][1]=_[M-2][1].slice(-1)+_[M][1],_[M-2][1]=_[M-2][1].slice(0,-1));var F;if(!R)return _;var B=[];for(M=0;M<_.length;M+=1)_[M][1].length>0&&B.push(_[M]);return B}(A)}function i(p,m,g,b){var w=p.substring(0,g),T=m.substring(0,b),A=p.substring(g),_=m.substring(b),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,b=Math.min(p.length,m.length),w=b,T=0;g<w;)p.substring(T,w)==m.substring(T,w)?T=g=w:b=w,w=Math.floor((b-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,b=Math.min(p.length,m.length),w=b,T=0;g<w;)p.substring(p.length-w,p.length-T)==m.substring(m.length-w,m.length-T)?T=g=w:b=w,w=Math.floor((b-g)/2+g);return w}var u=o;function f(p,m,g){for(var b=m+g-1;b>=0&&b>=m-1;b--)if(b+1<p.length){var w=p[b],T=p[b+1];w[0]===T[1]&&p.splice(b,2,[w[0],w[1]+T[1]])}return p}u.INSERT=1,u.DELETE=-1,u.EQUAL=0,t.exports=u},function(t,n,o){var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,c=Object.prototype.toString,u=o(8),f=Object.prototype.propertyIsEnumerable,p=!f.call({toString:null},"toString"),m=f.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],b=function(A){var _=A.constructor;return _&&_.prototype===A},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 A in window)try{if(!w["$"+A]&&a.call(window,A)&&window[A]!==null&&typeof window[A]=="object")try{b(window[A])}catch{return!0}}catch{return!0}return!1}();i=function(A){var _=A!==null&&typeof A=="object",R=c.call(A)==="[object Function]",D=u(A),M=_&&c.call(A)==="[object String]",F=[];if(!_&&!R&&!D)throw new TypeError("Object.keys called on a non-object");var B=m&&R;if(M&&A.length>0&&!a.call(A,0))for(var z=0;z<A.length;++z)F.push(String(z));if(D&&A.length>0)for(var j=0;j<A.length;++j)F.push(String(j));else for(var G in A)B&&G==="prototype"||!a.call(A,G)||F.push(String(G));if(p)for(var fe=function(U){if(typeof window>"u"||!T)return b(U);try{return b(U)}catch{return!1}}(A),P=0;P<g.length;++P)fe&&g[P]==="constructor"||!a.call(A,g[P])||F.push(g[P]);return F}}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]"},u=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]"},f=function(){return c(arguments)}();c.isLegacyArguments=u,t.exports=f?c:u},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(u){var f=this;if(typeof f!="function"||c.call(f)!=="[object Function]")throw new TypeError(i+f);for(var p,m=a.call(arguments,1),g=function(){if(this instanceof p){var _=f.apply(this,m.concat(a.call(arguments)));return Object(_)===_?_:this}return f.apply(u,m.concat(a.call(arguments)))},b=Math.max(0,f.length-m.length),w=[],T=0;T<b;T++)w.push("$"+T);if(p=Function("binder","return function ("+w.join(",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var A=function(){};A.prototype=f.prototype,p.prototype=new A,A.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),u=o(12),f=o(26),p=a(u(),Object);i(p,{getPolyfill:u,implementation:c,shim:f}),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,u,f=o(10),p=o(1)();if(p){i=f("Object.prototype.hasOwnProperty"),a=f("RegExp.prototype.exec"),c={};var m=function(){throw c};u={toString:m,valueOf:m},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=m)}var g=f("Object.prototype.toString"),b=Object.getOwnPropertyDescriptor;t.exports=p?function(w){if(!w||typeof w!="object")return!1;var T=b(w,"lastIndex");if(!(T&&i(T,"value")))return!1;try{a(w,u)}catch(A){return A===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),u=o(14),f=o(30),p=a(u());i(p,{getPolyfill:u,implementation:c,shim:f}),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 u=a(function(){},"name");return!!u&&!!u.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,u=Object.defineProperty,f=TypeError,p=Object.getPrototypeOf,m=/a/;t.exports=function(){if(!i||!p)throw new f("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var g=a(),b=p(m),w=c(b,"flags");return w&&w.get===g||u(b,"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(u){return typeof u=="object"&&u!==null&&(c?function(f){try{return i.call(f),!0}catch{return!1}}(u):a.call(u)==="[object Date]")}},function(t,n,o){var i=o(6),a=o(15),c={attributes:{compose:function(f,p,m){typeof f!="object"&&(f={}),typeof p!="object"&&(p={});var g=a(!0,{},p);for(var b in m||(g=Object.keys(g).reduce(function(w,T){return g[T]!=null&&(w[T]=g[T]),w},{})),f)f[b]!==void 0&&p[b]===void 0&&(g[b]=f[b]);return Object.keys(g).length>0?g:void 0},diff:function(f,p){typeof f!="object"&&(f={}),typeof p!="object"&&(p={});var m=Object.keys(f).concat(Object.keys(p)).reduce(function(g,b){return i(f[b],p[b])||(g[b]=p[b]===void 0?null:p[b]),g},{});return Object.keys(m).length>0?m:void 0},transform:function(f,p,m){if(typeof f!="object")return p;if(typeof p=="object"){if(!m)return p;var g=Object.keys(p).reduce(function(b,w){return f[w]===void 0&&(b[w]=p[w]),b},{});return Object.keys(g).length>0?g:void 0}}},iterator:function(f){return new u(f)},length:function(f){return typeof f.delete=="number"?f.delete:typeof f.retain=="number"?f.retain:typeof f.insert=="string"?f.insert.length:1}};function u(f){this.ops=f,this.index=0,this.offset=0}u.prototype.hasNext=function(){return this.peekLength()<1/0},u.prototype.next=function(f){f||(f=1/0);var p=this.ops[this.index];if(p){var m=this.offset,g=c.length(p);if(f>=g-m?(f=g-m,this.index+=1,this.offset=0):this.offset+=f,typeof p.delete=="number")return{delete:f};var b={};return p.attributes&&(b.attributes=p.attributes),typeof p.retain=="number"?b.retain=f:typeof p.insert=="string"?b.insert=p.insert.substr(m,f):b.insert=p.insert,b}return{retain:1/0}},u.prototype.peek=function(){return this.ops[this.index]},u.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},u.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"},u.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,p=this.index,m=this.next(),g=this.ops.slice(this.index);return this.offset=f,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=F,n.resolve=function(B,z){return F(B,!1,!0).resolve(z)},n.resolveObject=function(B,z){return B?F(B,!1,!0).resolveObject(z):z},n.format=function(B){return a.isString(B)&&(B=F(B)),B instanceof c?B.format():c.prototype.format.call(B)},n.Url=c;var u=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
219
|
-
`," "]),g=["'"].concat(m),b=["%","/","?",";","#"].concat(g),w=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={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},M=o(38);function F(B,z,j){if(B&&a.isObject(B)&&B instanceof c)return B;var G=new c;return G.parse(B,z,j),G}c.prototype.parse=function(B,z,j){if(!a.isString(B))throw new TypeError("Parameter 'url' must be a string, not "+typeof B);var G=B.indexOf("?"),fe=G!==-1&&G<B.indexOf("#")?"?":"#",P=B.split(fe);P[0]=P[0].replace(/\\/g,"/");var U=B=P.join(fe);if(U=U.trim(),!j&&B.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=z?M.parse(this.search.substr(1)):this.search.substr(1)):z&&(this.search="",this.query={}),this}var Q=u.exec(U);if(Q){var se=(Q=Q[0]).toLowerCase();this.protocol=se,U=U.substr(Q.length)}if(j||Q||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=U.substr(0,2)==="//";!te||Q&&R[Q]||(U=U.substr(2),this.slashes=!0)}if(!R[Q]&&(te||Q&&!D[Q])){for(var re,ne,be=-1,ie=0;ie<w.length;ie++)(de=U.indexOf(w[ie]))!==-1&&(be===-1||de<be)&&(be=de);for((ne=be===-1?U.lastIndexOf("@"):U.lastIndexOf("@",be))!==-1&&(re=U.slice(0,ne),U=U.slice(ne+1),this.auth=decodeURIComponent(re)),be=-1,ie=0;ie<b.length;ie++){var de;(de=U.indexOf(b[ie]))!==-1&&(be===-1||de<be)&&(be=de)}be===-1&&(be=U.length),this.host=U.slice(0,be),U=U.slice(be),this.parseHost(),this.hostname=this.hostname||"";var me=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!me)for(var Ae=this.hostname.split(/\./),De=(ie=0,Ae.length);ie<De;ie++){var oe=Ae[ie];if(oe&&!oe.match(T)){for(var ge="",we=0,Le=oe.length;we<Le;we++)oe.charCodeAt(we)>127?ge+="x":ge+=oe[we];if(!ge.match(T)){var Ce=Ae.slice(0,ie),Se=Ae.slice(ie+1),Ie=oe.match(A);Ie&&(Ce.push(Ie[1]),Se.unshift(Ie[2])),Se.length&&(U="/"+Se.join(".")+U),this.hostname=Ce.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),me||(this.hostname=i.toASCII(this.hostname));var et=this.port?":"+this.port:"",Je=this.hostname||"";this.host=Je+et,this.href+=this.host,me&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!_[se])for(ie=0,De=g.length;ie<De;ie++){var Qe=g[ie];if(U.indexOf(Qe)!==-1){var Ze=encodeURIComponent(Qe);Ze===Qe&&(Ze=escape(Qe)),U=U.split(Qe).join(Ze)}}var Ke=U.indexOf("#");Ke!==-1&&(this.hash=U.substr(Ke),U=U.slice(0,Ke));var ht=U.indexOf("?");if(ht!==-1?(this.search=U.substr(ht),this.query=U.substr(ht+1),z&&(this.query=M.parse(this.query)),U=U.slice(0,ht)):z&&(this.search="",this.query={}),U&&(this.pathname=U),D[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){et=this.pathname||"";var Pe=this.search||"";this.path=et+Pe}return this.href=this.format(),this},c.prototype.format=function(){var B=this.auth||"";B&&(B=(B=encodeURIComponent(B)).replace(/%3A/i,":"),B+="@");var z=this.protocol||"",j=this.pathname||"",G=this.hash||"",fe=!1,P="";this.host?fe=B+this.host:this.hostname&&(fe=B+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(P=M.stringify(this.query));var U=this.search||P&&"?"+P||"";return z&&z.substr(-1)!==":"&&(z+=":"),this.slashes||(!z||D[z])&&fe!==!1?(fe="//"+(fe||""),j&&j.charAt(0)!=="/"&&(j="/"+j)):fe||(fe=""),G&&G.charAt(0)!=="#"&&(G="#"+G),U&&U.charAt(0)!=="?"&&(U="?"+U),z+fe+(j=j.replace(/[?#]/g,function(V){return encodeURIComponent(V)}))+(U=U.replace("#","%23"))+G},c.prototype.resolve=function(B){return this.resolveObject(F(B,!1,!0)).format()},c.prototype.resolveObject=function(B){if(a.isString(B)){var z=new c;z.parse(B,!1,!0),B=z}for(var j=new c,G=Object.keys(this),fe=0;fe<G.length;fe++){var P=G[fe];j[P]=this[P]}if(j.hash=B.hash,B.href==="")return j.href=j.format(),j;if(B.slashes&&!B.protocol){for(var U=Object.keys(B),V=0;V<U.length;V++){var Q=U[V];Q!=="protocol"&&(j[Q]=B[Q])}return D[j.protocol]&&j.hostname&&!j.pathname&&(j.path=j.pathname="/"),j.href=j.format(),j}if(B.protocol&&B.protocol!==j.protocol){if(!D[B.protocol]){for(var se=Object.keys(B),te=0;te<se.length;te++){var re=se[te];j[re]=B[re]}return j.href=j.format(),j}if(j.protocol=B.protocol,B.host||R[B.protocol])j.pathname=B.pathname;else{for(var ne=(B.pathname||"").split("/");ne.length&&!(B.host=ne.shift()););B.host||(B.host=""),B.hostname||(B.hostname=""),ne[0]!==""&&ne.unshift(""),ne.length<2&&ne.unshift(""),j.pathname=ne.join("/")}if(j.search=B.search,j.query=B.query,j.host=B.host||"",j.auth=B.auth,j.hostname=B.hostname||B.host,j.port=B.port,j.pathname||j.search){var be=j.pathname||"",ie=j.search||"";j.path=be+ie}return j.slashes=j.slashes||B.slashes,j.href=j.format(),j}var de=j.pathname&&j.pathname.charAt(0)==="/",me=B.host||B.pathname&&B.pathname.charAt(0)==="/",Ae=me||de||j.host&&B.pathname,De=Ae,oe=j.pathname&&j.pathname.split("/")||[],ge=(ne=B.pathname&&B.pathname.split("/")||[],j.protocol&&!D[j.protocol]);if(ge&&(j.hostname="",j.port=null,j.host&&(oe[0]===""?oe[0]=j.host:oe.unshift(j.host)),j.host="",B.protocol&&(B.hostname=null,B.port=null,B.host&&(ne[0]===""?ne[0]=B.host:ne.unshift(B.host)),B.host=null),Ae=Ae&&(ne[0]===""||oe[0]==="")),me)j.host=B.host||B.host===""?B.host:j.host,j.hostname=B.hostname||B.hostname===""?B.hostname:j.hostname,j.search=B.search,j.query=B.query,oe=ne;else if(ne.length)oe||(oe=[]),oe.pop(),oe=oe.concat(ne),j.search=B.search,j.query=B.query;else if(!a.isNullOrUndefined(B.search))return ge&&(j.hostname=j.host=oe.shift(),(Ie=!!(j.host&&j.host.indexOf("@")>0)&&j.host.split("@"))&&(j.auth=Ie.shift(),j.host=j.hostname=Ie.shift())),j.search=B.search,j.query=B.query,a.isNull(j.pathname)&&a.isNull(j.search)||(j.path=(j.pathname?j.pathname:"")+(j.search?j.search:"")),j.href=j.format(),j;if(!oe.length)return j.pathname=null,j.search?j.path="/"+j.search:j.path=null,j.href=j.format(),j;for(var we=oe.slice(-1)[0],Le=(j.host||B.host||oe.length>1)&&(we==="."||we==="..")||we==="",Ce=0,Se=oe.length;Se>=0;Se--)(we=oe[Se])==="."?oe.splice(Se,1):we===".."?(oe.splice(Se,1),Ce++):Ce&&(oe.splice(Se,1),Ce--);if(!Ae&&!De)for(;Ce--;Ce)oe.unshift("..");!Ae||oe[0]===""||oe[0]&&oe[0].charAt(0)==="/"||oe.unshift(""),Le&&oe.join("/").substr(-1)!=="/"&&oe.push("");var Ie,et=oe[0]===""||oe[0]&&oe[0].charAt(0)==="/";return ge&&(j.hostname=j.host=et?"":oe.length?oe.shift():"",(Ie=!!(j.host&&j.host.indexOf("@")>0)&&j.host.split("@"))&&(j.auth=Ie.shift(),j.host=j.hostname=Ie.shift())),(Ae=Ae||j.host&&oe.length)&&!et&&oe.unshift(""),oe.length?j.pathname=oe.join("/"):(j.pathname=null,j.path=null),a.isNull(j.pathname)&&a.isNull(j.search)||(j.path=(j.pathname?j.pathname:"")+(j.search?j.search:"")),j.auth=B.auth||j.auth,j.slashes=j.slashes||B.slashes,j.href=j.format(),j},c.prototype.parseHost=function(){var B=this.host,z=f.exec(B);z&&((z=z[0])!==":"&&(this.port=z.substr(1)),B=B.substr(0,B.length-z.length)),B&&(this.hostname=B)}},function(t,n,o){(function(i,a){var c;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(u){n&&n.nodeType,i&&i.nodeType;var f=typeof a=="object"&&a;f.global!==f&&f.window!==f&&f.self;var p,m=2147483647,g=/^xn--/,b=/[^\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"},A=Math.floor,_=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 M(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 F(P){for(var U,V,Q=[],se=0,te=P.length;se<te;)(U=P.charCodeAt(se++))>=55296&&U<=56319&&se<te?(64512&(V=P.charCodeAt(se++)))==56320?Q.push(((1023&U)<<10)+(1023&V)+65536):(Q.push(U),se--):Q.push(U);return Q}function B(P){return D(P,function(U){var V="";return U>65535&&(V+=_((U-=65536)>>>10&1023|55296),U=56320|1023&U),V+=_(U)}).join("")}function z(P,U){return P+22+75*(P<26)-((U!=0)<<5)}function j(P,U,V){var Q=0;for(P=V?A(P/700):P>>1,P+=A(P/U);P>455;Q+=36)P=A(P/35);return A(Q+36*P/(P+38))}function G(P){var U,V,Q,se,te,re,ne,be,ie,de,me,Ae=[],De=P.length,oe=0,ge=128,we=72;for((V=P.lastIndexOf("-"))<0&&(V=0),Q=0;Q<V;++Q)P.charCodeAt(Q)>=128&&R("not-basic"),Ae.push(P.charCodeAt(Q));for(se=V>0?V+1:0;se<De;){for(te=oe,re=1,ne=36;se>=De&&R("invalid-input"),((be=(me=P.charCodeAt(se++))-48<10?me-22:me-65<26?me-65:me-97<26?me-97:36)>=36||be>A((m-oe)/re))&&R("overflow"),oe+=be*re,!(be<(ie=ne<=we?1:ne>=we+26?26:ne-we));ne+=36)re>A(m/(de=36-ie))&&R("overflow"),re*=de;we=j(oe-te,U=Ae.length+1,te==0),A(oe/U)>m-ge&&R("overflow"),ge+=A(oe/U),oe%=U,Ae.splice(oe++,0,ge)}return B(Ae)}function fe(P){var U,V,Q,se,te,re,ne,be,ie,de,me,Ae,De,oe,ge,we=[];for(Ae=(P=F(P)).length,U=128,V=0,te=72,re=0;re<Ae;++re)(me=P[re])<128&&we.push(_(me));for(Q=se=we.length,se&&we.push("-");Q<Ae;){for(ne=m,re=0;re<Ae;++re)(me=P[re])>=U&&me<ne&&(ne=me);for(ne-U>A((m-V)/(De=Q+1))&&R("overflow"),V+=(ne-U)*De,U=ne,re=0;re<Ae;++re)if((me=P[re])<U&&++V>m&&R("overflow"),me==U){for(be=V,ie=36;!(be<(de=ie<=te?1:ie>=te+26?26:ie-te));ie+=36)ge=be-de,oe=36-de,we.push(_(z(de+ge%oe,0))),be=A(ge/oe);we.push(_(z(be,0))),te=j(V,De,Q==se),V=0,++Q}++V,++U}return we.join("")}p={version:"1.4.1",ucs2:{decode:F,encode:B},decode:G,encode:fe,toASCII:function(P){return M(P,function(U){return b.test(U)?"xn--"+fe(U):U})},toUnicode:function(P){return M(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,u){return Object.prototype.hasOwnProperty.call(c,u)}t.exports=function(c,u,f,p){u=u||"&",f=f||"=";var m={};if(typeof c!="string"||c.length===0)return m;var g=/\+/g;c=c.split(u);var b=1e3;p&&typeof p.maxKeys=="number"&&(b=p.maxKeys);var w=c.length;b>0&&w>b&&(w=b);for(var T=0;T<w;++T){var A,_,R,D,M=c[T].replace(g,"%20"),F=M.indexOf(f);F>=0?(A=M.substr(0,F),_=M.substr(F+1)):(A=M,_=""),R=decodeURIComponent(A),D=decodeURIComponent(_),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(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};t.exports=function(f,p,m,g){return p=p||"&",m=m||"=",f===null&&(f=void 0),typeof f=="object"?c(u(f),function(b){var w=encodeURIComponent(i(b))+m;return a(f[b])?c(f[b],function(T){return w+encodeURIComponent(i(T))}).join(p):w+encodeURIComponent(i(f[b]))}).join(p):g?encodeURIComponent(i(g))+m+encodeURIComponent(i(f)):""};var a=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function c(f,p){if(f.map)return f.map(p);for(var m=[],g=0;g<f.length;g++)m.push(p(f[g],g));return m}var u=Object.keys||function(f){var p=[];for(var m in f)Object.prototype.hasOwnProperty.call(f,m)&&p.push(m);return p}}])})}(Om)),Om.exports}var NP=OP();const PP=yf(NP),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"},Vn={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},sg={AFTER_TABLE_RESIZE:"after-table-resize"},Nm={moduleName:"table-up"},BP=[["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)"]],FP="table-up",jP=new Set([Me.tableCellInner]),zP=r=>jP.has(r.statics.blotName);function F2(r){return r&&r.parent?zP(r.parent)?!0:F2(r.parent):!1}function ti(r,e=FP){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 Wb(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 HP(r,e){let t=[],n=r.children.iterator(),o=null;for(;o=n();)o instanceof e&&t.push(o);return t}function $P(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 qP(r,e){let t=class extends r{constructor(...n){super(...n)}};for(let n of e)$P(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 Vb(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 UP(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 Gb(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,u=i,f=i-a,p=i===0?0:f/i;if(i===a)c=0;else{switch(i){case e:c=(t-n)/f+(t<n?6:0);break;case t:c=(n-e)/f+2;break;case n:c=(e-t)/f+4;break}c/=6}return{h:c*360,s:p*100,b:u*100,a:o}}function Vp(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),u=n*(1-a*t),f=n*(1-(1-a)*t),p=i%6,m=[n,u,c,c,f,n][p],g=[f,n,n,u,c,c][p],b=[c,c,f,n,n,u][p];return{r:Math.round(m*255),g:Math.round(g*255),b:Math.round(b*255),a:o}}function j2(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 Yb=r=>j2(Vp(r)),sv=r=>typeof r=="function",WP=Array.isArray,Uu=r=>typeof r=="string",VP=r=>typeof r=="number",Rp=r=>typeof r=="object"&&!!r,GP=r=>!Number.isNaN(r)&&Number(r)>0;function ag(r){let{type:e="default",content:t}=r||{},n=ti("button"),o=document.createElement("button");return o.classList.add(n.b(),e),t&&(Uu(t)?o.textContent=t:o.appendChild(t)),o}function YP(r={}){let e=230,t=150,n=10,o=Gb(UP(r.color||"#ff0000")),i=ti("color-picker"),a=document.createElement("div");a.classList.add(i.b());let c=document.createElement("div");c.classList.add(i.be("content"));let u=document.createElement("div");u.classList.add(i.be("selector"));let f=document.createElement("div");f.classList.add(i.be("background")),u.appendChild(f);let p=document.createElement("div");p.classList.add(i.be("background-handle")),f.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 b=document.createElement("div");b.classList.add(i.be("alpha-handle")),m.appendChild(g),m.appendChild(b);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 A=document.createElement("div");A.classList.add(i.be("action"));let[_,R,D,M]=["r","g","b","a"].map(ge=>{let we=document.createElement("div");we.classList.add(i.be("action-item"),ge);let Le=document.createElement("label");Le.textContent=ge.toUpperCase();let Ce=document.createElement("input");return Ce.classList.add(i.be("input")),Ce.addEventListener("input",()=>{Ce.value=Ce.value.replaceAll(/[^0-9]/g,"")}),Ce.addEventListener("change",()=>{let Se=Math.round(Number(Ce.value));ge==="a"&&(Se/=100);let Ie=Vb(Gb(Object.assign({},Vp(o),{[ge]:Se})));se(Ie),Q()}),we.appendChild(Le),we.appendChild(Ce),A.appendChild(we),Ce});c.appendChild(w),c.appendChild(u),c.appendChild(m),a.appendChild(c),a.appendChild(A);let F=!1,B=!1,z=!1;function j(){let ge=Yb(o);for(let[we,Le]of[_,R,D].entries())Le.value=String(Number.parseInt(ge[we*2]+ge[we*2+1],16));M.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 fe(){u.style.backgroundColor=`#${j2(Vp({h:o.h,s:100,b:100,a:1}))}`}function P(){T.style.top=`${Math.floor(t-t*o.h/360)}px`}function U(){b.style.left=`${o.a*100}%`}function V(){let{r:ge,g:we,b:Le}=Vp(o);g.style.background=`linear-gradient(to right, rgba(${ge}, ${we}, ${Le}, 0) 0%, rgba(${ge}, ${we}, ${Le}, 1) 100%)`}function Q(){G(),fe(),P(),U(),V(),j()}function se(ge){o=Vb(Object.assign({},o,ge)),j(),r.onChange&&r.onChange(`#${Yb(o)}`)}function te(ge){let we=u.getBoundingClientRect(),Le=we.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),Ce=we.left+document.body.scrollLeft,Se=Math.floor(100*Math.max(0,Math.min(e,ge.pageX-Ce))/e),Ie=Math.floor(100*(t-Math.max(0,Math.min(t,ge.pageY-Le)))/t);se({s:Se,b:Ie}),Q()}function re(ge){let we=w.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,ge.pageY-we)))/t)}),Q()}function ne(ge){let{pageX:we}=ge,Le=m.getBoundingClientRect(),Ce=we-Le.left;Ce=Math.max(n/2,Ce),Ce=Math.min(Ce,Le.width-n/2),se({a:Math.round((Ce-10/2)/(Le.width-10)*100)/100}),Q()}function be(ge){F&&(ge.preventDefault(),te(ge)),B&&(ge.preventDefault(),re(ge)),z&&(ge.preventDefault(),ne(ge))}function ie(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",ie),F=!1}function de(ge){document.addEventListener("mousemove",be),document.addEventListener("mouseup",ie),F=!0,te(ge)}u.addEventListener("mousedown",de);function me(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",me),B=!1}function Ae(ge){document.addEventListener("mousemove",be),document.addEventListener("mouseup",me),B=!0,re(ge)}w.addEventListener("mousedown",Ae);function De(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",De),z=!1}function oe(ge){document.addEventListener("mousemove",be),document.addEventListener("mouseup",De),z=!0,ne(ge)}return m.addEventListener("mousedown",oe),Q(),a}let Zb=8e3;function z2({child:r,target:e=document.body,beforeClose:t=()=>{}}={}){let n=ti("dialog"),o=e,i=document.createElement("div");i.classList.add(n.b()),i.style.zIndex=String(Zb);let a=document.createElement("div");if(a.classList.add(n.be("overlay")),i.appendChild(a),r){let f=document.createElement("div");f.classList.add(n.be("content")),f.appendChild(r),a.appendChild(f),f.addEventListener("click",p=>{p.stopPropagation()})}let c=getComputedStyle(o).overflow;o.style.overflow="hidden",o.appendChild(i);let u=()=>{t(),i.remove(),o.style.overflow=c};return i.addEventListener("click",u),Zb+=1,{dialog:i,close:u}}function Kb(r,e){let t=ti("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 u;return o.classList.contains("error")?u=o.querySelector(`.${t.be("error-tip")}`):(u=document.createElement("span"),u.classList.add(t.be("error-tip")),o.appendChild(u)),u.textContent=c,o.classList.add("error"),{removeError:()=>{o.classList.remove("error"),u.remove()}}}}}async function ZP(r={}){let e=ti("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}=Kb(r.rowText||"Row",{type:"number",value:String(r.row||""),max:99}),{item:c,input:u,errorTip:f}=Kb(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=ag({type:"confirm",content:r.confirmText||"Confirm"}),g=ag({type:"default",content:r.cancelText||"Cancel"});p.appendChild(m),p.appendChild(g),t.appendChild(p);let b=(T=Number(i.value),A=Number(u.value))=>{if(Number.isNaN(T)||T<=0){a(r.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(A)||A<=0){f(r.notPositiveNumberError||"Please enter a positive integer");return}return{row:T,col:A}},w=T=>{T.key==="Escape"&&(close(),document.removeEventListener("keydown",w))};return new Promise((T,A)=>{let{close:_}=z2({child:t,beforeClose:A});i.focus();for(let R of[i,u])R.addEventListener("keydown",D=>{if(D.key==="Enter"){let M=b();M&&(T(M),_())}});m.addEventListener("click",async()=>{let R=b();R&&(T(R),_())}),document.addEventListener("keydown",w),g.addEventListener("click",_)})}function KP(r={}){let e=ti("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 u of Array.from(n.querySelectorAll(".active")))u.classList.remove("active");if(!i||!a)return;let c=Array.from(n.children);for(let u=0;u<c.length;u++){let{row:f,col:p}=c[u].dataset;if(f>i&&p>a)return;f<=i&&p<=a?c[u].classList.add("active"):c[u].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 ZP(i);c&&r.onSelect&&r.onSelect(c.row,c.col)}),t.appendChild(a)}return t}const lg=Math.min,Wu=Math.max,cg=Math.round,kp=Math.floor,el=r=>({x:r,y:r}),XP={left:"right",right:"left",bottom:"top",top:"bottom"},JP={start:"end",end:"start"};function Xb(r,e,t){return Wu(r,lg(e,t))}function pf(r,e){return typeof r=="function"?r(e):r}function Zc(r){return r.split("-")[0]}function Dg(r){return r.split("-")[1]}function Kv(r){return r==="x"?"y":"x"}function H2(r){return r==="y"?"height":"width"}function jl(r){return["top","bottom"].includes(Zc(r))?"y":"x"}function $2(r){return Kv(jl(r))}function QP(r,e,t){t===void 0&&(t=!1);let n=Dg(r),o=$2(r),i=H2(o),a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=ug(a)),[a,ug(a)]}function eB(r){let e=ug(r);return[av(r),e,av(e)]}function av(r){return r.replace(/start|end/g,e=>JP[e])}function tB(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 rB(r,e,t,n){let o=Dg(r),i=tB(Zc(r),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(av)))),i}function ug(r){return r.replace(/left|right|bottom|top/g,e=>XP[e])}function nB(r){return{top:0,right:0,bottom:0,left:0,...r}}function oB(r){return typeof r=="number"?{top:r,right:r,bottom:r,left:r}:nB(r)}function dg(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 Jb(r,e,t){let{reference:n,floating:o}=r,i=jl(e),a=$2(e),c=H2(a),u=Zc(e),f=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,b;switch(u){case"top":b={x:p,y:n.y-o.height};break;case"bottom":b={x:p,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:m};break;case"left":b={x:n.x-o.width,y:m};break;default:b={x:n.x,y:n.y}}switch(Dg(e)){case"start":b[a]-=g*(t&&f?-1:1);break;case"end":b[a]+=g*(t&&f?-1:1);break}return b}const iB=async(r,e,t)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,c=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(e)),f=await a.getElementRects({reference:r,floating:e,strategy:o}),{x:p,y:m}=Jb(f,n,u),g=n,b={},w=0;for(let T=0;T<c.length;T++){let{name:A,fn:_}=c[T],{x:R,y:D,data:M,reset:F}=await _({x:p,y:m,initialPlacement:n,placement:g,strategy:o,middlewareData:b,rects:f,platform:a,elements:{reference:r,floating:e}});p=R??p,m=D??m,b={...b,[A]:{...b[A],...M}},F&&w<=50&&(w++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(f=F.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:o}):F.rects),{x:p,y:m}=Jb(f,g,u)),T=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:b}};async function q2(r,e){e===void 0&&(e={});let{x:t,y:n,platform:o,rects:i,elements:a,strategy:c}=r,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=pf(e,r),b=oB(g),w=p==="floating"?"reference":"floating",T=a[m?w:p],A=dg(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:u,rootBoundary:f,strategy:c})),_=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},M=dg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:R,strategy:c}):_);return{top:(A.top-M.top+b.top)/D.y,bottom:(M.bottom-A.bottom+b.bottom)/D.y,left:(A.left-M.left+b.left)/D.x,right:(M.right-A.right+b.right)/D.x}}const sB=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var fe,P,U,V;var t;let{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...T}=pf(r,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let A=Zc(n),_=jl(a),R=Zc(a)===a,D=await(c.isRTL==null?void 0:c.isRTL(u.floating)),M=m||(R||!w?[ug(a)]:eB(a)),F=b!=="none";!m&&F&&M.push(...rB(a,w,b,D));let B=[a,...M],z=await q2(e,T),j=[],G=((fe=o.flip)==null?void 0:fe.overflows)||[];if(f&&j.push(z[A]),p){let Q=QP(n,i,D);j.push(z[Q[0]],z[Q[1]])}if(G=[...G,{placement:n,overflows:j}],!j.every(Q=>Q<=0)){let Q=(((P=o.flip)==null?void 0:P.index)||0)+1,se=B[Q];if(se&&(!(p==="alignment"?_!==jl(se):!1)||G.every(ne=>ne.overflows[0]>0&&jl(ne.placement)===_)))return{data:{index:Q,overflows:G},reset:{placement:se}};let te=(U=G.filter(re=>re.overflows[0]<=0).sort((re,ne)=>re.overflows[1]-ne.overflows[1])[0])==null?void 0:U.placement;if(!te)switch(g){case"bestFit":{let re=(V=G.filter(ne=>{if(F){let be=jl(ne.placement);return be===_||be==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(be=>be>0).reduce((be,ie)=>be+ie,0)]).sort((ne,be)=>ne[1]-be[1])[0])==null?void 0:V[0];re&&(te=re);break}case"initialPlacement":te=a;break}if(n!==te)return{reset:{placement:te}}}return{}}}};async function aB(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=Dg(t),u=jl(t)==="y",f=["left","top"].includes(a)?-1:1,p=i&&u?-1:1,m=pf(e,r),{mainAxis:g,crossAxis:b,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"&&(b=c==="end"?w*-1:w),u?{x:b*p,y:g*f}:{x:g*f,y:b*p}}const lB=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var u;var t;let{x:n,y:o,placement:i,middlewareData:a}=e,c=await aB(e,r);return i===((u=a.offset)==null?void 0:u.placement)&&(t=a.arrow)!=null&&t.alignmentOffset?{}:{x:n+c.x,y:o+c.y,data:{...c,placement:i}}}}},cB=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:A=>{let{x:_,y:R}=A;return{x:_,y:R}}},...u}=pf(r,e),f={x:t,y:n},p=await q2(e,u),m=jl(Zc(o)),g=Kv(m),b=f[g],w=f[m];if(i){let A=g==="y"?"top":"left",_=g==="y"?"bottom":"right",R=b+p[A],D=b-p[_];b=Xb(R,b,D)}if(a){let A=m==="y"?"top":"left",_=m==="y"?"bottom":"right",R=w+p[A],D=w-p[_];w=Xb(R,w,D)}let T=c.fn({...e,[g]:b,[m]:w});return{...T,data:{x:T.x-t,y:T.y-n,enabled:{[g]:i,[m]:a}}}}}},uB=function(r){return r===void 0&&(r={}),{options:r,fn(e){var _,R;let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:c=0,mainAxis:u=!0,crossAxis:f=!0}=pf(r,e),p={x:t,y:n},m=jl(o),g=Kv(m),b=p[g],w=p[m],T=pf(c,e),A=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(u){let D=g==="y"?"height":"width",M=i.reference[g]-i.floating[D]+A.mainAxis,F=i.reference[g]+i.reference[D]-A.mainAxis;b<M?b=M:b>F&&(b=F)}if(f){let D=g==="y"?"width":"height",M=["top","left"].includes(Zc(o)),F=i.reference[m]-i.floating[D]+(M&&((_=a.offset)==null?void 0:_[m])||0)+(M?0:A.crossAxis),B=i.reference[m]+i.reference[D]+(M?0:((R=a.offset)==null?void 0:R[m])||0)-(M?A.crossAxis:0);w<F?w=F:w>B&&(w=B)}return{[g]:b,[m]:w}}}};function Og(){return typeof window<"u"}function wf(r){return U2(r)?(r.nodeName||"").toLowerCase():"#document"}function is(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function al(r){var e;return(e=(U2(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function U2(r){return Og()?r instanceof Node||r instanceof is(r).Node:!1}function ga(r){return Og()?r instanceof Element||r instanceof is(r).Element:!1}function ol(r){return Og()?r instanceof HTMLElement||r instanceof is(r).HTMLElement:!1}function Qb(r){return!Og()||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 dB(r){return["table","td","th"].includes(wf(r))}function Ng(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function Xv(r){let e=Jv(),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 fB(r){let e=Kc(r);for(;ol(e)&&!gf(e);){if(Xv(e))return e;if(Ng(e))return null;e=Kc(e)}return null}function Jv(){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 Pg(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||Qb(r)&&r.host||al(r);return Qb(e)?e.host:e}function W2(r){let e=Kc(r);return gf(e)?r.ownerDocument?r.ownerDocument.body:r.body:ol(e)&&$h(e)?e:W2(e)}function Mh(r,e,t){var a;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=W2(r),o=n===((a=r.ownerDocument)==null?void 0:a.body),i=is(n);if(o){let c=lv(i);return e.concat(i,i.visualViewport||[],$h(n)?n:[],c&&t?Mh(c):[])}return e.concat(n,Mh(n,[],t))}function lv(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function V2(r){let e=ma(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,o=ol(r),i=o?r.offsetWidth:t,a=o?r.offsetHeight:n,c=cg(t)!==i||cg(n)!==a;return c&&(t=i,n=a),{width:t,height:n,$:c}}function Qv(r){return ga(r)?r:r.contextElement}function nf(r){let e=Qv(r);if(!ol(e))return el(1);let t=e.getBoundingClientRect(),{width:n,height:o,$:i}=V2(e),a=(i?cg(t.width):t.width)/n,c=(i?cg(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const hB=el(0);function G2(r){let e=is(r);return!Jv()||!e.visualViewport?hB:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function pB(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==is(r)?!1:e}function Zu(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let o=r.getBoundingClientRect(),i=Qv(r),a=el(1);e&&(n?ga(n)&&(a=nf(n)):a=nf(r));let c=pB(i,t,n)?G2(i):el(0),u=(o.left+c.x)/a.x,f=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(i){let g=is(i),b=n&&ga(n)?is(n):n,w=g,T=lv(w);for(;T&&n&&b!==w;){let A=nf(T),_=T.getBoundingClientRect(),R=ma(T),D=_.left+(T.clientLeft+parseFloat(R.paddingLeft))*A.x,M=_.top+(T.clientTop+parseFloat(R.paddingTop))*A.y;u*=A.x,f*=A.y,p*=A.x,m*=A.y,u+=D,f+=M,w=is(T),T=lv(w)}}return dg({width:p,height:m,x:u,y:f})}function ey(r,e){let t=Pg(r).scrollLeft;return e?e.left+t:Zu(al(r)).left+t}function Y2(r,e,t){t===void 0&&(t=!1);let n=r.getBoundingClientRect(),o=n.left+e.scrollLeft-(t?0:ey(r,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function gB(r){let{elements:e,rect:t,offsetParent:n,strategy:o}=r,i=o==="fixed",a=al(n),c=e?Ng(e.floating):!1;if(n===a||c&&i)return t;let u={scrollLeft:0,scrollTop:0},f=el(1),p=el(0),m=ol(n);if((m||!m&&!i)&&((wf(n)!=="body"||$h(a))&&(u=Pg(n)),ol(n))){let b=Zu(n);f=nf(n),p.x=b.x+n.clientLeft,p.y=b.y+n.clientTop}let g=a&&!m&&!i?Y2(a,u,!0):el(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+p.x+g.x,y:t.y*f.y-u.scrollTop*f.y+p.y+g.y}}function mB(r){return Array.from(r.getClientRects())}function vB(r){let e=al(r),t=Pg(r),n=r.ownerDocument.body,o=Wu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Wu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+ey(r),c=-t.scrollTop;return ma(n).direction==="rtl"&&(a+=Wu(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:c}}function yB(r,e){let t=is(r),n=al(r),o=t.visualViewport,i=n.clientWidth,a=n.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;let f=Jv();(!f||f&&e==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c,y:u}}function bB(r,e){let t=Zu(r,!0,e==="fixed"),n=t.top+r.clientTop,o=t.left+r.clientLeft,i=ol(r)?nf(r):el(1),a=r.clientWidth*i.x,c=r.clientHeight*i.y,u=o*i.x,f=n*i.y;return{width:a,height:c,x:u,y:f}}function ex(r,e,t){let n;if(e==="viewport")n=yB(r,t);else if(e==="document")n=vB(al(r));else if(ga(e))n=bB(e,t);else{let o=G2(r);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return dg(n)}function Z2(r,e){let t=Kc(r);return t===e||!ga(t)||gf(t)?!1:ma(t).position==="fixed"||Z2(t,e)}function xB(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),u=Xv(a);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$h(a)&&!u&&Z2(r,a))?n=n.filter(p=>p!==a):o=c,a=Kc(a)}return e.set(r,n),n}function wB(r){let{element:e,boundary:t,rootBoundary:n,strategy:o}=r,i=t==="clippingAncestors"?Ng(e)?[]:xB(e,this._c):[].concat(t),a=[...i,n],c=a[0],u=a.reduce((f,p)=>{let m=ex(e,p,o);return f.top=Wu(m.top,f.top),f.right=lg(m.right,f.right),f.bottom=lg(m.bottom,f.bottom),f.left=Wu(m.left,f.left),f},ex(e,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function CB(r){let{width:e,height:t}=V2(r);return{width:e,height:t}}function SB(r,e,t){let n=ol(e),o=al(e),i=t==="fixed",a=Zu(r,!0,i,e),c={scrollLeft:0,scrollTop:0},u=el(0);function f(){u.x=ey(o)}if(n||!n&&!i)if((wf(e)!=="body"||$h(o))&&(c=Pg(e)),n){let b=Zu(e,!0,i,e);u.x=b.x+e.clientLeft,u.y=b.y+e.clientTop}else o&&f();i&&!n&&o&&f();let p=o&&!n&&!i?Y2(o,c):el(0),m=a.left+c.scrollLeft-u.x-p.x,g=a.top+c.scrollTop-u.y-p.y;return{x:m,y:g,width:a.width,height:a.height}}function Pm(r){return ma(r).position==="static"}function tx(r,e){if(!ol(r)||ma(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return al(r)===t&&(t=t.ownerDocument.body),t}function K2(r,e){let t=is(r);if(Ng(r))return t;if(!ol(r)){let o=Kc(r);for(;o&&!gf(o);){if(ga(o)&&!Pm(o))return o;o=Kc(o)}return t}let n=tx(r,e);for(;n&&dB(n)&&Pm(n);)n=tx(n,e);return n&&gf(n)&&Pm(n)&&!Xv(n)?t:n||fB(r)||t}const _B=async function(r){let e=this.getOffsetParent||K2,t=this.getDimensions,n=await t(r.floating);return{reference:SB(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AB(r){return ma(r).direction==="rtl"}const EB={convertOffsetParentRelativeRectToViewportRelativeRect:gB,getDocumentElement:al,getClippingRect:wB,getOffsetParent:K2,getElementRects:_B,getClientRects:mB,getDimensions:CB,getScale:nf,isElement:ga,isRTL:AB};function X2(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function TB(r,e){let t=null,n,o=al(r);function i(){var c;clearTimeout(n),(c=t)==null||c.disconnect(),t=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();let f=r.getBoundingClientRect(),{left:p,top:m,width:g,height:b}=f;if(c||e(),!g||!b)return;let w=kp(m),T=kp(o.clientWidth-(p+g)),A=kp(o.clientHeight-(m+b)),_=kp(p),R=-w+"px "+-T+"px "+-A+"px "+-_+"px",D={rootMargin:R,threshold:Wu(0,lg(1,u))||1},M=!0;function F(B){let z=B[0].intersectionRatio;if(z!==u){if(!M)return a();z?a(!1,z):n=setTimeout(()=>{a(!1,1e-7)},1e3)}z===1&&!X2(f,r.getBoundingClientRect())&&a(),M=!1}try{t=new IntersectionObserver(F,{...D,root:o.ownerDocument})}catch{t=new IntersectionObserver(F,D)}t.observe(r)}return a(!0),i}function RB(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:u=!1}=n,f=Qv(r),p=o||i?[...f?Mh(f):[],...Mh(e)]:[];p.forEach(_=>{o&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});let m=f&&c?TB(f,t):null,g=-1,b=null;a&&(b=new ResizeObserver(_=>{let[R]=_;R&&R.target===f&&b&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(e)})),t()}),f&&!u&&b.observe(f),b.observe(e));let w,T=u?Zu(r):null;u&&A();function A(){let _=Zu(r);T&&!X2(T,_)&&t(),T=_,w=requestAnimationFrame(A)}return t(),()=>{var _;p.forEach(R=>{o&&R.removeEventListener("scroll",t),i&&R.removeEventListener("resize",t)}),m==null||m(),(_=b)==null||_.disconnect(),b=null,u&&cancelAnimationFrame(w)}}const J2=lB,Q2=cB,eS=sB,tS=uB,rS=(r,e,t)=>{let n=new Map,o={platform:EB,...t},i={...o.platform,_c:n};return iB(r,e,{...o,platform:i})};function kB(r,e,t,n,o){return r.addEventListener("transitionend",t,n),setTimeout(()=>{t()},e)}const IB=4;let Ip;function Bm(r,e={}){let{msg:t="",delay:n=150,content:o,direction:i="bottom",type:a="hover",container:c,onOpen:u,onClose:f,closed:p,onDestroy:m}=e,g=ti("tooltip");if(t||o){Ip||(Ip=document.createElement("div"),document.body.appendChild(Ip));let b=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=()=>{_&&_(),rS(r,w,{placement:i,middleware:[eS(),Q2({limiter:tS()}),J2(IB)]}).then(({x:Q,y:se})=>{Object.assign(w.style,{left:`${Q}px`,top:`${se}px`})})},D=()=>{w.classList.add("hidden"),b.contains(w)&&b.removeChild(w),_&&_(),p&&p()},M=(Q=!1)=>{A&&clearTimeout(A),T=setTimeout(()=>{if(u){let se=u(Q);if(!Q&&se)return}b.appendChild(w),w.removeEventListener("transitionend",D),w.classList.remove("hidden"),_=RB(r,w,R),w.classList.remove("transparent")},n)},F=(Q=!1)=>{T&&clearTimeout(T),A=setTimeout(()=>{if(f){let se=f(Q);if(!Q&&se)return}kB(w,150,D,{once:!0}),w.classList.add("transparent")},n)},B=()=>{let Q=[r,w],se=F.bind(void 0,!1),te=M.bind(void 0,!1);return{prepare:()=>{for(let ne of Q)ne.addEventListener("mouseenter",te),ne.addEventListener("mouseleave",se)},show:M,hide:F,destroy:()=>{for(let ne of Q)ne.removeEventListener("mouseenter",te),ne.removeEventListener("mouseleave",se)}}},z=()=>{let Q=te=>{te.stopPropagation(),F(!1)},se=te=>{te.stopPropagation(),M(),document.removeEventListener("click",Q),document.addEventListener("click",Q,{once:!0})};return{prepare:()=>{w.addEventListener("click",te=>te.stopPropagation()),r.addEventListener("click",se)},show:M,hide:(te=!1)=>{F(te),document.removeEventListener("click",Q)},destroy:()=>{r.removeEventListener("click",se),document.removeEventListener("click",Q)}}},j={hover:B,click:z},{prepare:G,show:fe,hide:P,destroy:U}=j[a]();return G(),{show:fe,hide:P,destroy:()=>{P(!0),m&&m(),U(),_&&_(),w.remove()}}}return null}function MB(r,e,t=0,n=!0){let{x:o,y:i,x1:a,y1:c}=r,{x:u,y:f,x1:p,y1:m}=e,g,b;return n?(g=a<u+t||o-t>p,b=c<f+t||i-t>m):(g=a<=u+t||o-t>=p,b=c<=f+t||i-t>=m),!(g||b)}function LB(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 DB(r){let{left:e,top:t,width:n,height:o}=r,{clientWidth:i,clientHeight:a}=document.documentElement,c=!1,u=!1;return e+n>i?(e=i-n-Mp,c=!0):e<0&&(e=Mp,c=!0),t+o>a?(t=a-o-Mp,u=!0):t<0&&(t=Mp,u=!0),{left:e,top:t,leftLimited:c,topLimited:u}}function OB(r,e={}){let t=Symbol("ignoreFirstBind"),n=new Set,o=new ResizeObserver(u=>{e.ignoreFirstBind&&u.some(f=>{let p=f.target,m=p[t];return p[t]=!0,!m})||r(u)}),i=o.observe;o.observe=(u,f)=>{n.add(u),i.call(o,u,f)};let a=o.unobserve;o.unobserve=u=>{n.has(u)&&(n.delete(u),u[t]=void 0),a.call(o,u)};let c=o.disconnect;return o.disconnect=()=>{for(let u of n.values())u[t]=void 0;c.call(o)},o}function fg(r,e){r.addEventListener("scroll",e),this.scrollHandler.push([r,e])}function Gp(){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 hg(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 cv(r){return Object.entries(r).map(([e,t])=>`${NB(e)}: ${t};`).join(" ")}function NB(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 Co=()=>Math.random().toString(36).slice(2);function nS(r,e){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{r.apply(this,n)},e)}}const Fm=Re.import("parchment"),rx=Re.import("blots/container"),PB=Re.import("blots/block"),BB=Re.import("blots/block/embed");var Ts,Qc=(Ts=class extends rx{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===Fm.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 Fm.ParentBlot?e.unwrap():e.remove())})}},ue(Ts,"tagName"),ue(Ts,"blotName",Me.container),ue(Ts,"scope",Fm.Scope.BLOCK_BLOT),ue(Ts,"allowedChildren",[PB,BB,rx]),ue(Ts,"requiredContainer"),ue(Ts,"defaultChild"),Ts);const Uc=r=>GP(r)?r:1,nx=Re.import("blots/block"),FB=Re.import("blots/block/embed");var Lc,Oi=(Lc=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,u=super.create();u.dataset.tableId=e,u.dataset.rowId=t,u.dataset.colId=n,u.dataset.rowspan=String(Uc(o)),u.dataset.colspan=String(Uc(i)),a&&(u.dataset.style=a);try{c&&(u.dataset.emptyRow=JSON.stringify(c))}catch{}return u}static formats(r){let{tableId:e,rowId:t,colId:n,rowspan:o,colspan:i,style:a,emptyRow:c}=r.dataset,u={tableId:String(e),rowId:String(t),colId:String(n),rowspan:Number(Uc(o)),colspan:Number(Uc(i))};a&&(u.style=a);try{c&&(u.emptyRow=JSON.parse(c))}catch{}return u}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(nx,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=hg(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 FB){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 u=e.offset(),f=this.length();if(u+1<f){let p=this.scroll.create(Me.tableCellInner,o);this.children.forEachAt(u+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 u=this.scroll.create(Me.tableRow,n),f=this.scroll.create(Me.tableCell,n);return f.appendChild(t),u.appendChild(f),a.parent.insertBefore(u,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)}},ue(Lc,"blotName",Me.tableCellInner),ue(Lc,"tagName","div"),ue(Lc,"className","ql-table-cell-inner"),ue(Lc,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),ue(Lc,"defaultChild",nx),ue(Lc,"allowStyle",new Set(["background-color","border","height"])),Lc),ih,Xa=(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),u=this.scroll.create("block");u.appendChild(this.scroll.create("break")),c.appendChild(u),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())}},ue(ih,"blotName",Me.tableRow),ue(ih,"tagName","tr"),ue(ih,"className","ql-table-row"),ih),Fp,zc=(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(Xa),o=new Set(t),i=0;for(let f of n){if(i===r)break;f.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=Co(),u=this.scroll.create(Me.tableRow,{tableId:a,rowId:c});for(let f of o){let p=this.scroll.create("break"),m=p.wrap("block"),g=m.wrap(Me.tableCellInner,{tableId:a,rowId:c,colId:f,rowspan:1,colspan:1}),b=g.wrap(Me.tableCell,{tableId:a,rowId:c,colId:f,rowspan:1,colspan:1});u.appendChild(b)}this.insertBefore(u,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)}},ue(Fp,"blotName",Me.tableBody),ue(Fp,"tagName","tbody"),Fp);const jB=Re.import("parchment"),zB=Re.import("blots/block"),HB=Re.import("blots/container");var uv=class extends zB{replaceWith(r,e){let t=Uu(r)?this.scroll.create(r,e):r;if(t instanceof jB.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 HB?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 $B=Re.import("blots/block/embed");var ox=class extends $B{delta(){let r=super.delta(),e=dv(this);return e[Me.tableCellInner]&&r.insert(`
|
|
218
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p(_,R){(R==null||R>_.length)&&(R=_.length);for(var D=0,M=new Array(R);D<R;D++)M[D]=_[D];return M}function m(_,R){var D=Object.keys(_);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(_);R&&(M=M.filter(function(F){return Object.getOwnPropertyDescriptor(_,F).enumerable})),D.push.apply(D,M)}return D}function g(_){for(var R=1;R<arguments.length;R++){var D=arguments[R]!=null?arguments[R]:{};R%2?m(Object(D),!0).forEach(function(M){b(_,M,D[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(D)):m(Object(D)).forEach(function(M){Object.defineProperty(_,M,Object.getOwnPropertyDescriptor(D,M))})}return _}function b(_,R,D){return R in _?Object.defineProperty(_,R,{value:D,enumerable:!0,configurable:!0,writable:!0}):_[R]=D,_}function w(_,R){for(var D=0;D<R.length;D++){var M=R[D];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}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}},A=function(){function _(M,F){var B=this;(function(z,j){if(!(z instanceof j))throw new TypeError("Cannot call a class as a function")})(this,_),this.quill=M,F=F||{},this.options=g(g({},T),F),this.urlNormalizer=function(z){return B.normalize(z)},this.mailNormalizer=function(z){return"mailto:".concat(z)},this.registerTypeListener(),this.registerPasteListener(),this.registerBlurListener()}var R,D;return R=_,(D=[{key:"registerPasteListener",value:function(){var M=this;this.quill.clipboard.addMatcher("A",function(F,B){var z,j=F.getAttribute("href"),G=(z=B.ops[0])===null||z===void 0?void 0:z.attributes;return(G==null?void 0:G.link)!=null&&(G.link=j),B}),this.quill.clipboard.addMatcher(Node.TEXT_NODE,function(F,B){if(typeof F.data=="string"){var z=M.options.globalRegularExpression,j=M.options.globalMailRegularExpression;z.lastIndex=0,j.lastIndex=0;for(var G=new a.a,fe=0,P=z.exec(F.data),U=j.exec(F.data),V=function(se,te,re){var ne=F.data.substring(fe,se.index);G.insert(ne);var be=se[0];return G.insert(be,{link:re(be)}),fe=te.lastIndex,te.exec(F.data)};P!==null||U!==null;)if(P===null)U=V(U,j,M.mailNormalizer);else if(U===null)P=V(P,z,M.urlNormalizer);else if(U.index<=P.index){for(;P!==null&&P.index<j.lastIndex;)P=z.exec(F.data);U=V(U,j,M.mailNormalizer)}else{for(;U!==null&&U.index<z.lastIndex;)U=j.exec(F.data);P=V(P,z,M.urlNormalizer)}if(fe>0){var Q=F.data.substring(fe);G.insert(Q),B.ops=G.ops}return B}})}},{key:"registerTypeListener",value:function(){var M=this;this.quill.on("text-change",function(F){var B=F.ops;if(!(!B||B.length<1||B.length>2)){var z=B[B.length-1];z.insert&&typeof z.insert=="string"&&z.insert.match(/\s/)&&M.checkTextForUrl(!!z.insert.match(/ |\t/))}})}},{key:"registerBlurListener",value:function(){var M=this;this.quill.root.addEventListener("blur",function(){M.checkTextForUrl()})}},{key:"checkTextForUrl",value:function(){var M=arguments.length>0&&arguments[0]!==void 0&&arguments[0],F=this.quill.getSelection();if(F){var B=this.quill.getLeaf(F.index),z=f(B,1),j=z[0],G=this.quill.getIndex(j);if(j.text){var fe=F.index-G,P=j.text.slice(0,fe);if(P&&j.parent.domNode.localName!=="a"){var U=j.text[fe];if(U==null||!U.match(/\S/)){var V=M?/\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(M,F,B,z){var j=B.pop(),G=F.lastIndexOf(j);F.split(j).pop().match(/\S/)||this.updateText(M+G,j.trim(),z)}},{key:"updateText",value:function(M,F,B){var z=new a.a().retain(M).retain(F.length,{link:B(F)});this.quill.updateContents(z)}},{key:"normalize",value:function(M){if(this.options.normalizeRegularExpression.test(M))try{return u()(M,this.options.normalizeUrlOptions)}catch(F){console.error(F)}return M}}])&&w(R.prototype,D),Object.defineProperty(R,"prototype",{writable:!1}),_}();window!=null&&window.Quill&&window.Quill.register("modules/magicUrl",A)},function(t,n){function o(p,m,g){if(p==m)return p?[[0,p]]:[];(g<0||p.length<g)&&(g=null);var b=a(p,m),w=p.substring(0,b);b=c(p=p.substring(b),m=m.substring(b));var T=p.substring(p.length-b),A=function(_,R){var D;if(!_)return[[1,R]];if(!R)return[[-1,_]];var M=_.length>R.length?_:R,F=_.length>R.length?R:_,B=M.indexOf(F);if(B!=-1)return D=[[1,M.substring(0,B)],[0,F],[1,M.substring(B+F.length)]],_.length>R.length&&(D[0][0]=D[2][0]=-1),D;if(F.length==1)return[[-1,_],[1,R]];var z=function(se,te){var re=se.length>te.length?se:te,ne=se.length>te.length?te:se;if(re.length<4||2*ne.length<re.length)return null;function be(Le,Ce,Se){for(var Ie,et,Je,Qe,Ze=Le.substring(Se,Se+Math.floor(Le.length/4)),Ke=-1,ht="";(Ke=Ce.indexOf(Ze,Ke+1))!=-1;){var Pe=a(Le.substring(Se),Ce.substring(Ke)),Ne=c(Le.substring(0,Se),Ce.substring(0,Ke));ht.length<Ne+Pe&&(ht=Ce.substring(Ke-Ne,Ke)+Ce.substring(Ke,Ke+Pe),Ie=Le.substring(0,Se-Ne),et=Le.substring(Se+Pe),Je=Ce.substring(0,Ke-Ne),Qe=Ce.substring(Ke+Pe))}return 2*ht.length>=Le.length?[Ie,et,Je,Qe,ht]:null}var ie,de,me,Ae,Oe,oe=be(re,ne,Math.ceil(re.length/4)),ge=be(re,ne,Math.ceil(re.length/2));if(!oe&&!ge)return null;ie=ge?oe&&oe[4].length>ge[4].length?oe:ge:oe,se.length>te.length?(de=ie[0],me=ie[1],Ae=ie[2],Oe=ie[3]):(Ae=ie[0],Oe=ie[1],de=ie[2],me=ie[3]);var we=ie[4];return[de,me,Ae,Oe,we]}(_,R);if(z){var j=z[0],G=z[1],fe=z[2],P=z[3],U=z[4],V=o(j,fe),Q=o(G,P);return V.concat([[0,U]],Q)}return function(se,te){for(var re=se.length,ne=te.length,be=Math.ceil((re+ne)/2),ie=be,de=2*be,me=new Array(de),Ae=new Array(de),Oe=0;Oe<de;Oe++)me[Oe]=-1,Ae[Oe]=-1;me[ie+1]=0,Ae[ie+1]=0;for(var oe=re-ne,ge=oe%2!=0,we=0,Le=0,Ce=0,Se=0,Ie=0;Ie<be;Ie++){for(var et=-Ie+we;et<=Ie-Le;et+=2){for(var Je=ie+et,Qe=(Ne=et==-Ie||et!=Ie&&me[Je-1]<me[Je+1]?me[Je+1]:me[Je-1]+1)-et;Ne<re&&Qe<ne&&se.charAt(Ne)==te.charAt(Qe);)Ne++,Qe++;if(me[Je]=Ne,Ne>re)Le+=2;else if(Qe>ne)we+=2;else if(ge&&(ht=ie+oe-et)>=0&&ht<de&&Ae[ht]!=-1){var Ze=re-Ae[ht];if(Ne>=Ze)return i(se,te,Ne,Qe)}}for(var Ke=-Ie+Ce;Ke<=Ie-Se;Ke+=2){for(var ht=ie+Ke,Pe=(Ze=Ke==-Ie||Ke!=Ie&&Ae[ht-1]<Ae[ht+1]?Ae[ht+1]:Ae[ht-1]+1)-Ke;Ze<re&&Pe<ne&&se.charAt(re-Ze-1)==te.charAt(ne-Pe-1);)Ze++,Pe++;if(Ae[ht]=Ze,Ze>re)Se+=2;else if(Pe>ne)Ce+=2;else if(!ge&&(Je=ie+oe-Ke)>=0&&Je<de&&me[Je]!=-1){var Ne=me[Je];if(Qe=ie+Ne-Je,Ne>=(Ze=re-Ze))return i(se,te,Ne,Qe)}}}return[[-1,se],[1,te]]}(_,R)}(p=p.substring(0,p.length-b),m=m.substring(0,m.length-b));return w&&A.unshift([0,w]),T&&A.push([0,T]),function _(R){R.push([0,""]);for(var D,M=0,F=0,B=0,z="",j="";M<R.length;)switch(R[M][0]){case 1:B++,j+=R[M][1],M++;break;case-1:F++,z+=R[M][1],M++;break;case 0:F+B>1?(F!==0&&B!==0&&((D=a(j,z))!==0&&(M-F-B>0&&R[M-F-B-1][0]==0?R[M-F-B-1][1]+=j.substring(0,D):(R.splice(0,0,[0,j.substring(0,D)]),M++),j=j.substring(D),z=z.substring(D)),(D=c(j,z))!==0&&(R[M][1]=j.substring(j.length-D)+R[M][1],j=j.substring(0,j.length-D),z=z.substring(0,z.length-D))),F===0?R.splice(M-B,F+B,[1,j]):B===0?R.splice(M-F,F+B,[-1,z]):R.splice(M-F-B,F+B,[-1,z],[1,j]),M=M-F-B+(F?1:0)+(B?1:0)+1):M!==0&&R[M-1][0]==0?(R[M-1][1]+=R[M][1],R.splice(M,1)):M++,B=0,F=0,z="",j=""}R[R.length-1][1]===""&&R.pop();var G=!1;for(M=1;M<R.length-1;)R[M-1][0]==0&&R[M+1][0]==0&&(R[M][1].substring(R[M][1].length-R[M-1][1].length)==R[M-1][1]?(R[M][1]=R[M-1][1]+R[M][1].substring(0,R[M][1].length-R[M-1][1].length),R[M+1][1]=R[M-1][1]+R[M+1][1],R.splice(M-1,1),G=!0):R[M][1].substring(0,R[M+1][1].length)==R[M+1][1]&&(R[M-1][1]+=R[M+1][1],R[M][1]=R[M][1].substring(R[M+1][1].length)+R[M+1][1],R.splice(M+1,1),G=!0)),M++;G&&_(R)}(A),g!=null&&(A=function(_,R){var D=function(G,fe){if(fe===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(fe===Q)return[U+1,G];if(fe<Q){G=G.slice();var se=fe-P,te=[V[0],V[1].slice(0,se)],re=[V[0],V[1].slice(se)];return G.splice(U,1,te,re),[U+1,G]}P=Q}}throw new Error("cursor_pos is out of bounds!")}(_,R),M=D[1],F=D[0],B=M[F],z=M[F+1];if(B==null||B[0]!==0)return _;if(z!=null&&B[1]+z[1]===z[1]+B[1])return M.splice(F,2,z,B),f(M,F,2);if(z!=null&&z[1].indexOf(B[1])===0){M.splice(F,2,[z[0],B[1]],[0,B[1]]);var j=z[1].slice(B[1].length);return j.length>0&&M.splice(F+2,0,[z[0],j]),f(M,F,3)}return _}(A,g)),A=function(_){for(var R=!1,D=function(z){return z.charCodeAt(0)>=56320&&z.charCodeAt(0)<=57343},M=2;M<_.length;M+=1)_[M-2][0]===0&&(F=_[M-2][1]).charCodeAt(F.length-1)>=55296&&F.charCodeAt(F.length-1)<=56319&&_[M-1][0]===-1&&D(_[M-1][1])&&_[M][0]===1&&D(_[M][1])&&(R=!0,_[M-1][1]=_[M-2][1].slice(-1)+_[M-1][1],_[M][1]=_[M-2][1].slice(-1)+_[M][1],_[M-2][1]=_[M-2][1].slice(0,-1));var F;if(!R)return _;var B=[];for(M=0;M<_.length;M+=1)_[M][1].length>0&&B.push(_[M]);return B}(A)}function i(p,m,g,b){var w=p.substring(0,g),T=m.substring(0,b),A=p.substring(g),_=m.substring(b),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,b=Math.min(p.length,m.length),w=b,T=0;g<w;)p.substring(T,w)==m.substring(T,w)?T=g=w:b=w,w=Math.floor((b-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,b=Math.min(p.length,m.length),w=b,T=0;g<w;)p.substring(p.length-w,p.length-T)==m.substring(m.length-w,m.length-T)?T=g=w:b=w,w=Math.floor((b-g)/2+g);return w}var u=o;function f(p,m,g){for(var b=m+g-1;b>=0&&b>=m-1;b--)if(b+1<p.length){var w=p[b],T=p[b+1];w[0]===T[1]&&p.splice(b,2,[w[0],w[1]+T[1]])}return p}u.INSERT=1,u.DELETE=-1,u.EQUAL=0,t.exports=u},function(t,n,o){var i;if(!Object.keys){var a=Object.prototype.hasOwnProperty,c=Object.prototype.toString,u=o(8),f=Object.prototype.propertyIsEnumerable,p=!f.call({toString:null},"toString"),m=f.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],b=function(A){var _=A.constructor;return _&&_.prototype===A},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 A in window)try{if(!w["$"+A]&&a.call(window,A)&&window[A]!==null&&typeof window[A]=="object")try{b(window[A])}catch{return!0}}catch{return!0}return!1}();i=function(A){var _=A!==null&&typeof A=="object",R=c.call(A)==="[object Function]",D=u(A),M=_&&c.call(A)==="[object String]",F=[];if(!_&&!R&&!D)throw new TypeError("Object.keys called on a non-object");var B=m&&R;if(M&&A.length>0&&!a.call(A,0))for(var z=0;z<A.length;++z)F.push(String(z));if(D&&A.length>0)for(var j=0;j<A.length;++j)F.push(String(j));else for(var G in A)B&&G==="prototype"||!a.call(A,G)||F.push(String(G));if(p)for(var fe=function(U){if(typeof window>"u"||!T)return b(U);try{return b(U)}catch{return!1}}(A),P=0;P<g.length;++P)fe&&g[P]==="constructor"||!a.call(A,g[P])||F.push(g[P]);return F}}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]"},u=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]"},f=function(){return c(arguments)}();c.isLegacyArguments=u,t.exports=f?c:u},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(u){var f=this;if(typeof f!="function"||c.call(f)!=="[object Function]")throw new TypeError(i+f);for(var p,m=a.call(arguments,1),g=function(){if(this instanceof p){var _=f.apply(this,m.concat(a.call(arguments)));return Object(_)===_?_:this}return f.apply(u,m.concat(a.call(arguments)))},b=Math.max(0,f.length-m.length),w=[],T=0;T<b;T++)w.push("$"+T);if(p=Function("binder","return function ("+w.join(",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var A=function(){};A.prototype=f.prototype,p.prototype=new A,A.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),u=o(12),f=o(26),p=a(u(),Object);i(p,{getPolyfill:u,implementation:c,shim:f}),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,u,f=o(10),p=o(1)();if(p){i=f("Object.prototype.hasOwnProperty"),a=f("RegExp.prototype.exec"),c={};var m=function(){throw c};u={toString:m,valueOf:m},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=m)}var g=f("Object.prototype.toString"),b=Object.getOwnPropertyDescriptor;t.exports=p?function(w){if(!w||typeof w!="object")return!1;var T=b(w,"lastIndex");if(!(T&&i(T,"value")))return!1;try{a(w,u)}catch(A){return A===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),u=o(14),f=o(30),p=a(u());i(p,{getPolyfill:u,implementation:c,shim:f}),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 u=a(function(){},"name");return!!u&&!!u.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,u=Object.defineProperty,f=TypeError,p=Object.getPrototypeOf,m=/a/;t.exports=function(){if(!i||!p)throw new f("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var g=a(),b=p(m),w=c(b,"flags");return w&&w.get===g||u(b,"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(u){return typeof u=="object"&&u!==null&&(c?function(f){try{return i.call(f),!0}catch{return!1}}(u):a.call(u)==="[object Date]")}},function(t,n,o){var i=o(6),a=o(15),c={attributes:{compose:function(f,p,m){typeof f!="object"&&(f={}),typeof p!="object"&&(p={});var g=a(!0,{},p);for(var b in m||(g=Object.keys(g).reduce(function(w,T){return g[T]!=null&&(w[T]=g[T]),w},{})),f)f[b]!==void 0&&p[b]===void 0&&(g[b]=f[b]);return Object.keys(g).length>0?g:void 0},diff:function(f,p){typeof f!="object"&&(f={}),typeof p!="object"&&(p={});var m=Object.keys(f).concat(Object.keys(p)).reduce(function(g,b){return i(f[b],p[b])||(g[b]=p[b]===void 0?null:p[b]),g},{});return Object.keys(m).length>0?m:void 0},transform:function(f,p,m){if(typeof f!="object")return p;if(typeof p=="object"){if(!m)return p;var g=Object.keys(p).reduce(function(b,w){return f[w]===void 0&&(b[w]=p[w]),b},{});return Object.keys(g).length>0?g:void 0}}},iterator:function(f){return new u(f)},length:function(f){return typeof f.delete=="number"?f.delete:typeof f.retain=="number"?f.retain:typeof f.insert=="string"?f.insert.length:1}};function u(f){this.ops=f,this.index=0,this.offset=0}u.prototype.hasNext=function(){return this.peekLength()<1/0},u.prototype.next=function(f){f||(f=1/0);var p=this.ops[this.index];if(p){var m=this.offset,g=c.length(p);if(f>=g-m?(f=g-m,this.index+=1,this.offset=0):this.offset+=f,typeof p.delete=="number")return{delete:f};var b={};return p.attributes&&(b.attributes=p.attributes),typeof p.retain=="number"?b.retain=f:typeof p.insert=="string"?b.insert=p.insert.substr(m,f):b.insert=p.insert,b}return{retain:1/0}},u.prototype.peek=function(){return this.ops[this.index]},u.prototype.peekLength=function(){return this.ops[this.index]?c.length(this.ops[this.index])-this.offset:1/0},u.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"},u.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,p=this.index,m=this.next(),g=this.ops.slice(this.index);return this.offset=f,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=F,n.resolve=function(B,z){return F(B,!1,!0).resolve(z)},n.resolveObject=function(B,z){return B?F(B,!1,!0).resolveObject(z):z},n.format=function(B){return a.isString(B)&&(B=F(B)),B instanceof c?B.format():c.prototype.format.call(B)},n.Url=c;var u=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,m=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
219
|
+
`," "]),g=["'"].concat(m),b=["%","/","?",";","#"].concat(g),w=["/","?","#"],T=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={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},M=o(38);function F(B,z,j){if(B&&a.isObject(B)&&B instanceof c)return B;var G=new c;return G.parse(B,z,j),G}c.prototype.parse=function(B,z,j){if(!a.isString(B))throw new TypeError("Parameter 'url' must be a string, not "+typeof B);var G=B.indexOf("?"),fe=G!==-1&&G<B.indexOf("#")?"?":"#",P=B.split(fe);P[0]=P[0].replace(/\\/g,"/");var U=B=P.join(fe);if(U=U.trim(),!j&&B.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=z?M.parse(this.search.substr(1)):this.search.substr(1)):z&&(this.search="",this.query={}),this}var Q=u.exec(U);if(Q){var se=(Q=Q[0]).toLowerCase();this.protocol=se,U=U.substr(Q.length)}if(j||Q||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=U.substr(0,2)==="//";!te||Q&&R[Q]||(U=U.substr(2),this.slashes=!0)}if(!R[Q]&&(te||Q&&!D[Q])){for(var re,ne,be=-1,ie=0;ie<w.length;ie++)(de=U.indexOf(w[ie]))!==-1&&(be===-1||de<be)&&(be=de);for((ne=be===-1?U.lastIndexOf("@"):U.lastIndexOf("@",be))!==-1&&(re=U.slice(0,ne),U=U.slice(ne+1),this.auth=decodeURIComponent(re)),be=-1,ie=0;ie<b.length;ie++){var de;(de=U.indexOf(b[ie]))!==-1&&(be===-1||de<be)&&(be=de)}be===-1&&(be=U.length),this.host=U.slice(0,be),U=U.slice(be),this.parseHost(),this.hostname=this.hostname||"";var me=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!me)for(var Ae=this.hostname.split(/\./),Oe=(ie=0,Ae.length);ie<Oe;ie++){var oe=Ae[ie];if(oe&&!oe.match(T)){for(var ge="",we=0,Le=oe.length;we<Le;we++)oe.charCodeAt(we)>127?ge+="x":ge+=oe[we];if(!ge.match(T)){var Ce=Ae.slice(0,ie),Se=Ae.slice(ie+1),Ie=oe.match(A);Ie&&(Ce.push(Ie[1]),Se.unshift(Ie[2])),Se.length&&(U="/"+Se.join(".")+U),this.hostname=Ce.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),me||(this.hostname=i.toASCII(this.hostname));var et=this.port?":"+this.port:"",Je=this.hostname||"";this.host=Je+et,this.href+=this.host,me&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),U[0]!=="/"&&(U="/"+U))}if(!_[se])for(ie=0,Oe=g.length;ie<Oe;ie++){var Qe=g[ie];if(U.indexOf(Qe)!==-1){var Ze=encodeURIComponent(Qe);Ze===Qe&&(Ze=escape(Qe)),U=U.split(Qe).join(Ze)}}var Ke=U.indexOf("#");Ke!==-1&&(this.hash=U.substr(Ke),U=U.slice(0,Ke));var ht=U.indexOf("?");if(ht!==-1?(this.search=U.substr(ht),this.query=U.substr(ht+1),z&&(this.query=M.parse(this.query)),U=U.slice(0,ht)):z&&(this.search="",this.query={}),U&&(this.pathname=U),D[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){et=this.pathname||"";var Pe=this.search||"";this.path=et+Pe}return this.href=this.format(),this},c.prototype.format=function(){var B=this.auth||"";B&&(B=(B=encodeURIComponent(B)).replace(/%3A/i,":"),B+="@");var z=this.protocol||"",j=this.pathname||"",G=this.hash||"",fe=!1,P="";this.host?fe=B+this.host:this.hostname&&(fe=B+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(P=M.stringify(this.query));var U=this.search||P&&"?"+P||"";return z&&z.substr(-1)!==":"&&(z+=":"),this.slashes||(!z||D[z])&&fe!==!1?(fe="//"+(fe||""),j&&j.charAt(0)!=="/"&&(j="/"+j)):fe||(fe=""),G&&G.charAt(0)!=="#"&&(G="#"+G),U&&U.charAt(0)!=="?"&&(U="?"+U),z+fe+(j=j.replace(/[?#]/g,function(V){return encodeURIComponent(V)}))+(U=U.replace("#","%23"))+G},c.prototype.resolve=function(B){return this.resolveObject(F(B,!1,!0)).format()},c.prototype.resolveObject=function(B){if(a.isString(B)){var z=new c;z.parse(B,!1,!0),B=z}for(var j=new c,G=Object.keys(this),fe=0;fe<G.length;fe++){var P=G[fe];j[P]=this[P]}if(j.hash=B.hash,B.href==="")return j.href=j.format(),j;if(B.slashes&&!B.protocol){for(var U=Object.keys(B),V=0;V<U.length;V++){var Q=U[V];Q!=="protocol"&&(j[Q]=B[Q])}return D[j.protocol]&&j.hostname&&!j.pathname&&(j.path=j.pathname="/"),j.href=j.format(),j}if(B.protocol&&B.protocol!==j.protocol){if(!D[B.protocol]){for(var se=Object.keys(B),te=0;te<se.length;te++){var re=se[te];j[re]=B[re]}return j.href=j.format(),j}if(j.protocol=B.protocol,B.host||R[B.protocol])j.pathname=B.pathname;else{for(var ne=(B.pathname||"").split("/");ne.length&&!(B.host=ne.shift()););B.host||(B.host=""),B.hostname||(B.hostname=""),ne[0]!==""&&ne.unshift(""),ne.length<2&&ne.unshift(""),j.pathname=ne.join("/")}if(j.search=B.search,j.query=B.query,j.host=B.host||"",j.auth=B.auth,j.hostname=B.hostname||B.host,j.port=B.port,j.pathname||j.search){var be=j.pathname||"",ie=j.search||"";j.path=be+ie}return j.slashes=j.slashes||B.slashes,j.href=j.format(),j}var de=j.pathname&&j.pathname.charAt(0)==="/",me=B.host||B.pathname&&B.pathname.charAt(0)==="/",Ae=me||de||j.host&&B.pathname,Oe=Ae,oe=j.pathname&&j.pathname.split("/")||[],ge=(ne=B.pathname&&B.pathname.split("/")||[],j.protocol&&!D[j.protocol]);if(ge&&(j.hostname="",j.port=null,j.host&&(oe[0]===""?oe[0]=j.host:oe.unshift(j.host)),j.host="",B.protocol&&(B.hostname=null,B.port=null,B.host&&(ne[0]===""?ne[0]=B.host:ne.unshift(B.host)),B.host=null),Ae=Ae&&(ne[0]===""||oe[0]==="")),me)j.host=B.host||B.host===""?B.host:j.host,j.hostname=B.hostname||B.hostname===""?B.hostname:j.hostname,j.search=B.search,j.query=B.query,oe=ne;else if(ne.length)oe||(oe=[]),oe.pop(),oe=oe.concat(ne),j.search=B.search,j.query=B.query;else if(!a.isNullOrUndefined(B.search))return ge&&(j.hostname=j.host=oe.shift(),(Ie=!!(j.host&&j.host.indexOf("@")>0)&&j.host.split("@"))&&(j.auth=Ie.shift(),j.host=j.hostname=Ie.shift())),j.search=B.search,j.query=B.query,a.isNull(j.pathname)&&a.isNull(j.search)||(j.path=(j.pathname?j.pathname:"")+(j.search?j.search:"")),j.href=j.format(),j;if(!oe.length)return j.pathname=null,j.search?j.path="/"+j.search:j.path=null,j.href=j.format(),j;for(var we=oe.slice(-1)[0],Le=(j.host||B.host||oe.length>1)&&(we==="."||we==="..")||we==="",Ce=0,Se=oe.length;Se>=0;Se--)(we=oe[Se])==="."?oe.splice(Se,1):we===".."?(oe.splice(Se,1),Ce++):Ce&&(oe.splice(Se,1),Ce--);if(!Ae&&!Oe)for(;Ce--;Ce)oe.unshift("..");!Ae||oe[0]===""||oe[0]&&oe[0].charAt(0)==="/"||oe.unshift(""),Le&&oe.join("/").substr(-1)!=="/"&&oe.push("");var Ie,et=oe[0]===""||oe[0]&&oe[0].charAt(0)==="/";return ge&&(j.hostname=j.host=et?"":oe.length?oe.shift():"",(Ie=!!(j.host&&j.host.indexOf("@")>0)&&j.host.split("@"))&&(j.auth=Ie.shift(),j.host=j.hostname=Ie.shift())),(Ae=Ae||j.host&&oe.length)&&!et&&oe.unshift(""),oe.length?j.pathname=oe.join("/"):(j.pathname=null,j.path=null),a.isNull(j.pathname)&&a.isNull(j.search)||(j.path=(j.pathname?j.pathname:"")+(j.search?j.search:"")),j.auth=B.auth||j.auth,j.slashes=j.slashes||B.slashes,j.href=j.format(),j},c.prototype.parseHost=function(){var B=this.host,z=f.exec(B);z&&((z=z[0])!==":"&&(this.port=z.substr(1)),B=B.substr(0,B.length-z.length)),B&&(this.hostname=B)}},function(t,n,o){(function(i,a){var c;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(u){n&&n.nodeType,i&&i.nodeType;var f=typeof a=="object"&&a;f.global!==f&&f.window!==f&&f.self;var p,m=2147483647,g=/^xn--/,b=/[^\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"},A=Math.floor,_=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 M(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 F(P){for(var U,V,Q=[],se=0,te=P.length;se<te;)(U=P.charCodeAt(se++))>=55296&&U<=56319&&se<te?(64512&(V=P.charCodeAt(se++)))==56320?Q.push(((1023&U)<<10)+(1023&V)+65536):(Q.push(U),se--):Q.push(U);return Q}function B(P){return D(P,function(U){var V="";return U>65535&&(V+=_((U-=65536)>>>10&1023|55296),U=56320|1023&U),V+=_(U)}).join("")}function z(P,U){return P+22+75*(P<26)-((U!=0)<<5)}function j(P,U,V){var Q=0;for(P=V?A(P/700):P>>1,P+=A(P/U);P>455;Q+=36)P=A(P/35);return A(Q+36*P/(P+38))}function G(P){var U,V,Q,se,te,re,ne,be,ie,de,me,Ae=[],Oe=P.length,oe=0,ge=128,we=72;for((V=P.lastIndexOf("-"))<0&&(V=0),Q=0;Q<V;++Q)P.charCodeAt(Q)>=128&&R("not-basic"),Ae.push(P.charCodeAt(Q));for(se=V>0?V+1:0;se<Oe;){for(te=oe,re=1,ne=36;se>=Oe&&R("invalid-input"),((be=(me=P.charCodeAt(se++))-48<10?me-22:me-65<26?me-65:me-97<26?me-97:36)>=36||be>A((m-oe)/re))&&R("overflow"),oe+=be*re,!(be<(ie=ne<=we?1:ne>=we+26?26:ne-we));ne+=36)re>A(m/(de=36-ie))&&R("overflow"),re*=de;we=j(oe-te,U=Ae.length+1,te==0),A(oe/U)>m-ge&&R("overflow"),ge+=A(oe/U),oe%=U,Ae.splice(oe++,0,ge)}return B(Ae)}function fe(P){var U,V,Q,se,te,re,ne,be,ie,de,me,Ae,Oe,oe,ge,we=[];for(Ae=(P=F(P)).length,U=128,V=0,te=72,re=0;re<Ae;++re)(me=P[re])<128&&we.push(_(me));for(Q=se=we.length,se&&we.push("-");Q<Ae;){for(ne=m,re=0;re<Ae;++re)(me=P[re])>=U&&me<ne&&(ne=me);for(ne-U>A((m-V)/(Oe=Q+1))&&R("overflow"),V+=(ne-U)*Oe,U=ne,re=0;re<Ae;++re)if((me=P[re])<U&&++V>m&&R("overflow"),me==U){for(be=V,ie=36;!(be<(de=ie<=te?1:ie>=te+26?26:ie-te));ie+=36)ge=be-de,oe=36-de,we.push(_(z(de+ge%oe,0))),be=A(ge/oe);we.push(_(z(be,0))),te=j(V,Oe,Q==se),V=0,++Q}++V,++U}return we.join("")}p={version:"1.4.1",ucs2:{decode:F,encode:B},decode:G,encode:fe,toASCII:function(P){return M(P,function(U){return b.test(U)?"xn--"+fe(U):U})},toUnicode:function(P){return M(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,u){return Object.prototype.hasOwnProperty.call(c,u)}t.exports=function(c,u,f,p){u=u||"&",f=f||"=";var m={};if(typeof c!="string"||c.length===0)return m;var g=/\+/g;c=c.split(u);var b=1e3;p&&typeof p.maxKeys=="number"&&(b=p.maxKeys);var w=c.length;b>0&&w>b&&(w=b);for(var T=0;T<w;++T){var A,_,R,D,M=c[T].replace(g,"%20"),F=M.indexOf(f);F>=0?(A=M.substr(0,F),_=M.substr(F+1)):(A=M,_=""),R=decodeURIComponent(A),D=decodeURIComponent(_),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(f){switch(typeof f){case"string":return f;case"boolean":return f?"true":"false";case"number":return isFinite(f)?f:"";default:return""}};t.exports=function(f,p,m,g){return p=p||"&",m=m||"=",f===null&&(f=void 0),typeof f=="object"?c(u(f),function(b){var w=encodeURIComponent(i(b))+m;return a(f[b])?c(f[b],function(T){return w+encodeURIComponent(i(T))}).join(p):w+encodeURIComponent(i(f[b]))}).join(p):g?encodeURIComponent(i(g))+m+encodeURIComponent(i(f)):""};var a=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function c(f,p){if(f.map)return f.map(p);for(var m=[],g=0;g<f.length;g++)m.push(p(f[g],g));return m}var u=Object.keys||function(f){var p=[];for(var m in f)Object.prototype.hasOwnProperty.call(f,m)&&p.push(m);return p}}])})}(Om)),Om.exports}var NP=OP();const PP=yf(NP),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"},Vn={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},sg={AFTER_TABLE_RESIZE:"after-table-resize"},Nm={moduleName:"table-up"},BP=[["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)"]],FP="table-up",jP=new Set([Me.tableCellInner]),zP=r=>jP.has(r.statics.blotName);function F2(r){return r&&r.parent?zP(r.parent)?!0:F2(r.parent):!1}function ti(r,e=FP){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 Wb(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 HP(r,e){let t=[],n=r.children.iterator(),o=null;for(;o=n();)o instanceof e&&t.push(o);return t}function $P(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 qP(r,e){let t=class extends r{constructor(...n){super(...n)}};for(let n of e)$P(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 Vb(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 UP(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 Gb(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,u=i,f=i-a,p=i===0?0:f/i;if(i===a)c=0;else{switch(i){case e:c=(t-n)/f+(t<n?6:0);break;case t:c=(n-e)/f+2;break;case n:c=(e-t)/f+4;break}c/=6}return{h:c*360,s:p*100,b:u*100,a:o}}function Vp(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),u=n*(1-a*t),f=n*(1-(1-a)*t),p=i%6,m=[n,u,c,c,f,n][p],g=[f,n,n,u,c,c][p],b=[c,c,f,n,n,u][p];return{r:Math.round(m*255),g:Math.round(g*255),b:Math.round(b*255),a:o}}function j2(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 Yb=r=>j2(Vp(r)),sv=r=>typeof r=="function",WP=Array.isArray,Uu=r=>typeof r=="string",VP=r=>typeof r=="number",Rp=r=>typeof r=="object"&&!!r,GP=r=>!Number.isNaN(r)&&Number(r)>0;function ag(r){let{type:e="default",content:t}=r||{},n=ti("button"),o=document.createElement("button");return o.classList.add(n.b(),e),t&&(Uu(t)?o.textContent=t:o.appendChild(t)),o}function YP(r={}){let e=230,t=150,n=10,o=Gb(UP(r.color||"#ff0000")),i=ti("color-picker"),a=document.createElement("div");a.classList.add(i.b());let c=document.createElement("div");c.classList.add(i.be("content"));let u=document.createElement("div");u.classList.add(i.be("selector"));let f=document.createElement("div");f.classList.add(i.be("background")),u.appendChild(f);let p=document.createElement("div");p.classList.add(i.be("background-handle")),f.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 b=document.createElement("div");b.classList.add(i.be("alpha-handle")),m.appendChild(g),m.appendChild(b);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 A=document.createElement("div");A.classList.add(i.be("action"));let[_,R,D,M]=["r","g","b","a"].map(ge=>{let we=document.createElement("div");we.classList.add(i.be("action-item"),ge);let Le=document.createElement("label");Le.textContent=ge.toUpperCase();let Ce=document.createElement("input");return Ce.classList.add(i.be("input")),Ce.addEventListener("input",()=>{Ce.value=Ce.value.replaceAll(/[^0-9]/g,"")}),Ce.addEventListener("change",()=>{let Se=Math.round(Number(Ce.value));ge==="a"&&(Se/=100);let Ie=Vb(Gb(Object.assign({},Vp(o),{[ge]:Se})));se(Ie),Q()}),we.appendChild(Le),we.appendChild(Ce),A.appendChild(we),Ce});c.appendChild(w),c.appendChild(u),c.appendChild(m),a.appendChild(c),a.appendChild(A);let F=!1,B=!1,z=!1;function j(){let ge=Yb(o);for(let[we,Le]of[_,R,D].entries())Le.value=String(Number.parseInt(ge[we*2]+ge[we*2+1],16));M.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 fe(){u.style.backgroundColor=`#${j2(Vp({h:o.h,s:100,b:100,a:1}))}`}function P(){T.style.top=`${Math.floor(t-t*o.h/360)}px`}function U(){b.style.left=`${o.a*100}%`}function V(){let{r:ge,g:we,b:Le}=Vp(o);g.style.background=`linear-gradient(to right, rgba(${ge}, ${we}, ${Le}, 0) 0%, rgba(${ge}, ${we}, ${Le}, 1) 100%)`}function Q(){G(),fe(),P(),U(),V(),j()}function se(ge){o=Vb(Object.assign({},o,ge)),j(),r.onChange&&r.onChange(`#${Yb(o)}`)}function te(ge){let we=u.getBoundingClientRect(),Le=we.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),Ce=we.left+document.body.scrollLeft,Se=Math.floor(100*Math.max(0,Math.min(e,ge.pageX-Ce))/e),Ie=Math.floor(100*(t-Math.max(0,Math.min(t,ge.pageY-Le)))/t);se({s:Se,b:Ie}),Q()}function re(ge){let we=w.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,ge.pageY-we)))/t)}),Q()}function ne(ge){let{pageX:we}=ge,Le=m.getBoundingClientRect(),Ce=we-Le.left;Ce=Math.max(n/2,Ce),Ce=Math.min(Ce,Le.width-n/2),se({a:Math.round((Ce-10/2)/(Le.width-10)*100)/100}),Q()}function be(ge){F&&(ge.preventDefault(),te(ge)),B&&(ge.preventDefault(),re(ge)),z&&(ge.preventDefault(),ne(ge))}function ie(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",ie),F=!1}function de(ge){document.addEventListener("mousemove",be),document.addEventListener("mouseup",ie),F=!0,te(ge)}u.addEventListener("mousedown",de);function me(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",me),B=!1}function Ae(ge){document.addEventListener("mousemove",be),document.addEventListener("mouseup",me),B=!0,re(ge)}w.addEventListener("mousedown",Ae);function Oe(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",Oe),z=!1}function oe(ge){document.addEventListener("mousemove",be),document.addEventListener("mouseup",Oe),z=!0,ne(ge)}return m.addEventListener("mousedown",oe),Q(),a}let Zb=8e3;function z2({child:r,target:e=document.body,beforeClose:t=()=>{}}={}){let n=ti("dialog"),o=e,i=document.createElement("div");i.classList.add(n.b()),i.style.zIndex=String(Zb);let a=document.createElement("div");if(a.classList.add(n.be("overlay")),i.appendChild(a),r){let f=document.createElement("div");f.classList.add(n.be("content")),f.appendChild(r),a.appendChild(f),f.addEventListener("click",p=>{p.stopPropagation()})}let c=getComputedStyle(o).overflow;o.style.overflow="hidden",o.appendChild(i);let u=()=>{t(),i.remove(),o.style.overflow=c};return i.addEventListener("click",u),Zb+=1,{dialog:i,close:u}}function Kb(r,e){let t=ti("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 u;return o.classList.contains("error")?u=o.querySelector(`.${t.be("error-tip")}`):(u=document.createElement("span"),u.classList.add(t.be("error-tip")),o.appendChild(u)),u.textContent=c,o.classList.add("error"),{removeError:()=>{o.classList.remove("error"),u.remove()}}}}}async function ZP(r={}){let e=ti("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}=Kb(r.rowText||"Row",{type:"number",value:String(r.row||""),max:99}),{item:c,input:u,errorTip:f}=Kb(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=ag({type:"confirm",content:r.confirmText||"Confirm"}),g=ag({type:"default",content:r.cancelText||"Cancel"});p.appendChild(m),p.appendChild(g),t.appendChild(p);let b=(T=Number(i.value),A=Number(u.value))=>{if(Number.isNaN(T)||T<=0){a(r.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(A)||A<=0){f(r.notPositiveNumberError||"Please enter a positive integer");return}return{row:T,col:A}},w=T=>{T.key==="Escape"&&(close(),document.removeEventListener("keydown",w))};return new Promise((T,A)=>{let{close:_}=z2({child:t,beforeClose:A});i.focus();for(let R of[i,u])R.addEventListener("keydown",D=>{if(D.key==="Enter"){let M=b();M&&(T(M),_())}});m.addEventListener("click",async()=>{let R=b();R&&(T(R),_())}),document.addEventListener("keydown",w),g.addEventListener("click",_)})}function KP(r={}){let e=ti("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 u of Array.from(n.querySelectorAll(".active")))u.classList.remove("active");if(!i||!a)return;let c=Array.from(n.children);for(let u=0;u<c.length;u++){let{row:f,col:p}=c[u].dataset;if(f>i&&p>a)return;f<=i&&p<=a?c[u].classList.add("active"):c[u].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 ZP(i);c&&r.onSelect&&r.onSelect(c.row,c.col)}),t.appendChild(a)}return t}const lg=Math.min,Wu=Math.max,cg=Math.round,kp=Math.floor,el=r=>({x:r,y:r}),XP={left:"right",right:"left",bottom:"top",top:"bottom"},JP={start:"end",end:"start"};function Xb(r,e,t){return Wu(r,lg(e,t))}function pf(r,e){return typeof r=="function"?r(e):r}function Zc(r){return r.split("-")[0]}function Dg(r){return r.split("-")[1]}function Kv(r){return r==="x"?"y":"x"}function H2(r){return r==="y"?"height":"width"}function jl(r){return["top","bottom"].includes(Zc(r))?"y":"x"}function $2(r){return Kv(jl(r))}function QP(r,e,t){t===void 0&&(t=!1);let n=Dg(r),o=$2(r),i=H2(o),a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=ug(a)),[a,ug(a)]}function eB(r){let e=ug(r);return[av(r),e,av(e)]}function av(r){return r.replace(/start|end/g,e=>JP[e])}function tB(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 rB(r,e,t,n){let o=Dg(r),i=tB(Zc(r),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(av)))),i}function ug(r){return r.replace(/left|right|bottom|top/g,e=>XP[e])}function nB(r){return{top:0,right:0,bottom:0,left:0,...r}}function oB(r){return typeof r=="number"?{top:r,right:r,bottom:r,left:r}:nB(r)}function dg(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 Jb(r,e,t){let{reference:n,floating:o}=r,i=jl(e),a=$2(e),c=H2(a),u=Zc(e),f=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,b;switch(u){case"top":b={x:p,y:n.y-o.height};break;case"bottom":b={x:p,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:m};break;case"left":b={x:n.x-o.width,y:m};break;default:b={x:n.x,y:n.y}}switch(Dg(e)){case"start":b[a]-=g*(t&&f?-1:1);break;case"end":b[a]+=g*(t&&f?-1:1);break}return b}const iB=async(r,e,t)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,c=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(e)),f=await a.getElementRects({reference:r,floating:e,strategy:o}),{x:p,y:m}=Jb(f,n,u),g=n,b={},w=0;for(let T=0;T<c.length;T++){let{name:A,fn:_}=c[T],{x:R,y:D,data:M,reset:F}=await _({x:p,y:m,initialPlacement:n,placement:g,strategy:o,middlewareData:b,rects:f,platform:a,elements:{reference:r,floating:e}});p=R??p,m=D??m,b={...b,[A]:{...b[A],...M}},F&&w<=50&&(w++,typeof F=="object"&&(F.placement&&(g=F.placement),F.rects&&(f=F.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:o}):F.rects),{x:p,y:m}=Jb(f,g,u)),T=-1)}return{x:p,y:m,placement:g,strategy:o,middlewareData:b}};async function q2(r,e){e===void 0&&(e={});let{x:t,y:n,platform:o,rects:i,elements:a,strategy:c}=r,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=pf(e,r),b=oB(g),w=p==="floating"?"reference":"floating",T=a[m?w:p],A=dg(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:u,rootBoundary:f,strategy:c})),_=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},M=dg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:R,strategy:c}):_);return{top:(A.top-M.top+b.top)/D.y,bottom:(M.bottom-A.bottom+b.bottom)/D.y,left:(A.left-M.left+b.left)/D.x,right:(M.right-A.right+b.right)/D.x}}const sB=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var fe,P,U,V;var t;let{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...T}=pf(r,e);if((t=o.arrow)!=null&&t.alignmentOffset)return{};let A=Zc(n),_=jl(a),R=Zc(a)===a,D=await(c.isRTL==null?void 0:c.isRTL(u.floating)),M=m||(R||!w?[ug(a)]:eB(a)),F=b!=="none";!m&&F&&M.push(...rB(a,w,b,D));let B=[a,...M],z=await q2(e,T),j=[],G=((fe=o.flip)==null?void 0:fe.overflows)||[];if(f&&j.push(z[A]),p){let Q=QP(n,i,D);j.push(z[Q[0]],z[Q[1]])}if(G=[...G,{placement:n,overflows:j}],!j.every(Q=>Q<=0)){let Q=(((P=o.flip)==null?void 0:P.index)||0)+1,se=B[Q];if(se&&(!(p==="alignment"?_!==jl(se):!1)||G.every(ne=>ne.overflows[0]>0&&jl(ne.placement)===_)))return{data:{index:Q,overflows:G},reset:{placement:se}};let te=(U=G.filter(re=>re.overflows[0]<=0).sort((re,ne)=>re.overflows[1]-ne.overflows[1])[0])==null?void 0:U.placement;if(!te)switch(g){case"bestFit":{let re=(V=G.filter(ne=>{if(F){let be=jl(ne.placement);return be===_||be==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(be=>be>0).reduce((be,ie)=>be+ie,0)]).sort((ne,be)=>ne[1]-be[1])[0])==null?void 0:V[0];re&&(te=re);break}case"initialPlacement":te=a;break}if(n!==te)return{reset:{placement:te}}}return{}}}};async function aB(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=Dg(t),u=jl(t)==="y",f=["left","top"].includes(a)?-1:1,p=i&&u?-1:1,m=pf(e,r),{mainAxis:g,crossAxis:b,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"&&(b=c==="end"?w*-1:w),u?{x:b*p,y:g*f}:{x:g*f,y:b*p}}const lB=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var u;var t;let{x:n,y:o,placement:i,middlewareData:a}=e,c=await aB(e,r);return i===((u=a.offset)==null?void 0:u.placement)&&(t=a.arrow)!=null&&t.alignmentOffset?{}:{x:n+c.x,y:o+c.y,data:{...c,placement:i}}}}},cB=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:A=>{let{x:_,y:R}=A;return{x:_,y:R}}},...u}=pf(r,e),f={x:t,y:n},p=await q2(e,u),m=jl(Zc(o)),g=Kv(m),b=f[g],w=f[m];if(i){let A=g==="y"?"top":"left",_=g==="y"?"bottom":"right",R=b+p[A],D=b-p[_];b=Xb(R,b,D)}if(a){let A=m==="y"?"top":"left",_=m==="y"?"bottom":"right",R=w+p[A],D=w-p[_];w=Xb(R,w,D)}let T=c.fn({...e,[g]:b,[m]:w});return{...T,data:{x:T.x-t,y:T.y-n,enabled:{[g]:i,[m]:a}}}}}},uB=function(r){return r===void 0&&(r={}),{options:r,fn(e){var _,R;let{x:t,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:c=0,mainAxis:u=!0,crossAxis:f=!0}=pf(r,e),p={x:t,y:n},m=jl(o),g=Kv(m),b=p[g],w=p[m],T=pf(c,e),A=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(u){let D=g==="y"?"height":"width",M=i.reference[g]-i.floating[D]+A.mainAxis,F=i.reference[g]+i.reference[D]-A.mainAxis;b<M?b=M:b>F&&(b=F)}if(f){let D=g==="y"?"width":"height",M=["top","left"].includes(Zc(o)),F=i.reference[m]-i.floating[D]+(M&&((_=a.offset)==null?void 0:_[m])||0)+(M?0:A.crossAxis),B=i.reference[m]+i.reference[D]+(M?0:((R=a.offset)==null?void 0:R[m])||0)-(M?A.crossAxis:0);w<F?w=F:w>B&&(w=B)}return{[g]:b,[m]:w}}}};function Og(){return typeof window<"u"}function wf(r){return U2(r)?(r.nodeName||"").toLowerCase():"#document"}function is(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function al(r){var e;return(e=(U2(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function U2(r){return Og()?r instanceof Node||r instanceof is(r).Node:!1}function ga(r){return Og()?r instanceof Element||r instanceof is(r).Element:!1}function ol(r){return Og()?r instanceof HTMLElement||r instanceof is(r).HTMLElement:!1}function Qb(r){return!Og()||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 dB(r){return["table","td","th"].includes(wf(r))}function Ng(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function Xv(r){let e=Jv(),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 fB(r){let e=Kc(r);for(;ol(e)&&!gf(e);){if(Xv(e))return e;if(Ng(e))return null;e=Kc(e)}return null}function Jv(){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 Pg(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||Qb(r)&&r.host||al(r);return Qb(e)?e.host:e}function W2(r){let e=Kc(r);return gf(e)?r.ownerDocument?r.ownerDocument.body:r.body:ol(e)&&$h(e)?e:W2(e)}function Mh(r,e,t){var a;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=W2(r),o=n===((a=r.ownerDocument)==null?void 0:a.body),i=is(n);if(o){let c=lv(i);return e.concat(i,i.visualViewport||[],$h(n)?n:[],c&&t?Mh(c):[])}return e.concat(n,Mh(n,[],t))}function lv(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function V2(r){let e=ma(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,o=ol(r),i=o?r.offsetWidth:t,a=o?r.offsetHeight:n,c=cg(t)!==i||cg(n)!==a;return c&&(t=i,n=a),{width:t,height:n,$:c}}function Qv(r){return ga(r)?r:r.contextElement}function nf(r){let e=Qv(r);if(!ol(e))return el(1);let t=e.getBoundingClientRect(),{width:n,height:o,$:i}=V2(e),a=(i?cg(t.width):t.width)/n,c=(i?cg(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const hB=el(0);function G2(r){let e=is(r);return!Jv()||!e.visualViewport?hB:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function pB(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==is(r)?!1:e}function Zu(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let o=r.getBoundingClientRect(),i=Qv(r),a=el(1);e&&(n?ga(n)&&(a=nf(n)):a=nf(r));let c=pB(i,t,n)?G2(i):el(0),u=(o.left+c.x)/a.x,f=(o.top+c.y)/a.y,p=o.width/a.x,m=o.height/a.y;if(i){let g=is(i),b=n&&ga(n)?is(n):n,w=g,T=lv(w);for(;T&&n&&b!==w;){let A=nf(T),_=T.getBoundingClientRect(),R=ma(T),D=_.left+(T.clientLeft+parseFloat(R.paddingLeft))*A.x,M=_.top+(T.clientTop+parseFloat(R.paddingTop))*A.y;u*=A.x,f*=A.y,p*=A.x,m*=A.y,u+=D,f+=M,w=is(T),T=lv(w)}}return dg({width:p,height:m,x:u,y:f})}function ey(r,e){let t=Pg(r).scrollLeft;return e?e.left+t:Zu(al(r)).left+t}function Y2(r,e,t){t===void 0&&(t=!1);let n=r.getBoundingClientRect(),o=n.left+e.scrollLeft-(t?0:ey(r,n)),i=n.top+e.scrollTop;return{x:o,y:i}}function gB(r){let{elements:e,rect:t,offsetParent:n,strategy:o}=r,i=o==="fixed",a=al(n),c=e?Ng(e.floating):!1;if(n===a||c&&i)return t;let u={scrollLeft:0,scrollTop:0},f=el(1),p=el(0),m=ol(n);if((m||!m&&!i)&&((wf(n)!=="body"||$h(a))&&(u=Pg(n)),ol(n))){let b=Zu(n);f=nf(n),p.x=b.x+n.clientLeft,p.y=b.y+n.clientTop}let g=a&&!m&&!i?Y2(a,u,!0):el(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+p.x+g.x,y:t.y*f.y-u.scrollTop*f.y+p.y+g.y}}function mB(r){return Array.from(r.getClientRects())}function vB(r){let e=al(r),t=Pg(r),n=r.ownerDocument.body,o=Wu(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Wu(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+ey(r),c=-t.scrollTop;return ma(n).direction==="rtl"&&(a+=Wu(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:c}}function yB(r,e){let t=is(r),n=al(r),o=t.visualViewport,i=n.clientWidth,a=n.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;let f=Jv();(!f||f&&e==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:c,y:u}}function bB(r,e){let t=Zu(r,!0,e==="fixed"),n=t.top+r.clientTop,o=t.left+r.clientLeft,i=ol(r)?nf(r):el(1),a=r.clientWidth*i.x,c=r.clientHeight*i.y,u=o*i.x,f=n*i.y;return{width:a,height:c,x:u,y:f}}function ex(r,e,t){let n;if(e==="viewport")n=yB(r,t);else if(e==="document")n=vB(al(r));else if(ga(e))n=bB(e,t);else{let o=G2(r);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return dg(n)}function Z2(r,e){let t=Kc(r);return t===e||!ga(t)||gf(t)?!1:ma(t).position==="fixed"||Z2(t,e)}function xB(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),u=Xv(a);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$h(a)&&!u&&Z2(r,a))?n=n.filter(p=>p!==a):o=c,a=Kc(a)}return e.set(r,n),n}function wB(r){let{element:e,boundary:t,rootBoundary:n,strategy:o}=r,i=t==="clippingAncestors"?Ng(e)?[]:xB(e,this._c):[].concat(t),a=[...i,n],c=a[0],u=a.reduce((f,p)=>{let m=ex(e,p,o);return f.top=Wu(m.top,f.top),f.right=lg(m.right,f.right),f.bottom=lg(m.bottom,f.bottom),f.left=Wu(m.left,f.left),f},ex(e,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function CB(r){let{width:e,height:t}=V2(r);return{width:e,height:t}}function SB(r,e,t){let n=ol(e),o=al(e),i=t==="fixed",a=Zu(r,!0,i,e),c={scrollLeft:0,scrollTop:0},u=el(0);function f(){u.x=ey(o)}if(n||!n&&!i)if((wf(e)!=="body"||$h(o))&&(c=Pg(e)),n){let b=Zu(e,!0,i,e);u.x=b.x+e.clientLeft,u.y=b.y+e.clientTop}else o&&f();i&&!n&&o&&f();let p=o&&!n&&!i?Y2(o,c):el(0),m=a.left+c.scrollLeft-u.x-p.x,g=a.top+c.scrollTop-u.y-p.y;return{x:m,y:g,width:a.width,height:a.height}}function Pm(r){return ma(r).position==="static"}function tx(r,e){if(!ol(r)||ma(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return al(r)===t&&(t=t.ownerDocument.body),t}function K2(r,e){let t=is(r);if(Ng(r))return t;if(!ol(r)){let o=Kc(r);for(;o&&!gf(o);){if(ga(o)&&!Pm(o))return o;o=Kc(o)}return t}let n=tx(r,e);for(;n&&dB(n)&&Pm(n);)n=tx(n,e);return n&&gf(n)&&Pm(n)&&!Xv(n)?t:n||fB(r)||t}const _B=async function(r){let e=this.getOffsetParent||K2,t=this.getDimensions,n=await t(r.floating);return{reference:SB(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AB(r){return ma(r).direction==="rtl"}const EB={convertOffsetParentRelativeRectToViewportRelativeRect:gB,getDocumentElement:al,getClippingRect:wB,getOffsetParent:K2,getElementRects:_B,getClientRects:mB,getDimensions:CB,getScale:nf,isElement:ga,isRTL:AB};function X2(r,e){return r.x===e.x&&r.y===e.y&&r.width===e.width&&r.height===e.height}function TB(r,e){let t=null,n,o=al(r);function i(){var c;clearTimeout(n),(c=t)==null||c.disconnect(),t=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();let f=r.getBoundingClientRect(),{left:p,top:m,width:g,height:b}=f;if(c||e(),!g||!b)return;let w=kp(m),T=kp(o.clientWidth-(p+g)),A=kp(o.clientHeight-(m+b)),_=kp(p),R=-w+"px "+-T+"px "+-A+"px "+-_+"px",D={rootMargin:R,threshold:Wu(0,lg(1,u))||1},M=!0;function F(B){let z=B[0].intersectionRatio;if(z!==u){if(!M)return a();z?a(!1,z):n=setTimeout(()=>{a(!1,1e-7)},1e3)}z===1&&!X2(f,r.getBoundingClientRect())&&a(),M=!1}try{t=new IntersectionObserver(F,{...D,root:o.ownerDocument})}catch{t=new IntersectionObserver(F,D)}t.observe(r)}return a(!0),i}function RB(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:u=!1}=n,f=Qv(r),p=o||i?[...f?Mh(f):[],...Mh(e)]:[];p.forEach(_=>{o&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});let m=f&&c?TB(f,t):null,g=-1,b=null;a&&(b=new ResizeObserver(_=>{let[R]=_;R&&R.target===f&&b&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(e)})),t()}),f&&!u&&b.observe(f),b.observe(e));let w,T=u?Zu(r):null;u&&A();function A(){let _=Zu(r);T&&!X2(T,_)&&t(),T=_,w=requestAnimationFrame(A)}return t(),()=>{var _;p.forEach(R=>{o&&R.removeEventListener("scroll",t),i&&R.removeEventListener("resize",t)}),m==null||m(),(_=b)==null||_.disconnect(),b=null,u&&cancelAnimationFrame(w)}}const J2=lB,Q2=cB,eS=sB,tS=uB,rS=(r,e,t)=>{let n=new Map,o={platform:EB,...t},i={...o.platform,_c:n};return iB(r,e,{...o,platform:i})};function kB(r,e,t,n,o){return r.addEventListener("transitionend",t,n),setTimeout(()=>{t()},e)}const IB=4;let Ip;function Bm(r,e={}){let{msg:t="",delay:n=150,content:o,direction:i="bottom",type:a="hover",container:c,onOpen:u,onClose:f,closed:p,onDestroy:m}=e,g=ti("tooltip");if(t||o){Ip||(Ip=document.createElement("div"),document.body.appendChild(Ip));let b=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=()=>{_&&_(),rS(r,w,{placement:i,middleware:[eS(),Q2({limiter:tS()}),J2(IB)]}).then(({x:Q,y:se})=>{Object.assign(w.style,{left:`${Q}px`,top:`${se}px`})})},D=()=>{w.classList.add("hidden"),b.contains(w)&&b.removeChild(w),_&&_(),p&&p()},M=(Q=!1)=>{A&&clearTimeout(A),T=setTimeout(()=>{if(u){let se=u(Q);if(!Q&&se)return}b.appendChild(w),w.removeEventListener("transitionend",D),w.classList.remove("hidden"),_=RB(r,w,R),w.classList.remove("transparent")},n)},F=(Q=!1)=>{T&&clearTimeout(T),A=setTimeout(()=>{if(f){let se=f(Q);if(!Q&&se)return}kB(w,150,D,{once:!0}),w.classList.add("transparent")},n)},B=()=>{let Q=[r,w],se=F.bind(void 0,!1),te=M.bind(void 0,!1);return{prepare:()=>{for(let ne of Q)ne.addEventListener("mouseenter",te),ne.addEventListener("mouseleave",se)},show:M,hide:F,destroy:()=>{for(let ne of Q)ne.removeEventListener("mouseenter",te),ne.removeEventListener("mouseleave",se)}}},z=()=>{let Q=te=>{te.stopPropagation(),F(!1)},se=te=>{te.stopPropagation(),M(),document.removeEventListener("click",Q),document.addEventListener("click",Q,{once:!0})};return{prepare:()=>{w.addEventListener("click",te=>te.stopPropagation()),r.addEventListener("click",se)},show:M,hide:(te=!1)=>{F(te),document.removeEventListener("click",Q)},destroy:()=>{r.removeEventListener("click",se),document.removeEventListener("click",Q)}}},j={hover:B,click:z},{prepare:G,show:fe,hide:P,destroy:U}=j[a]();return G(),{show:fe,hide:P,destroy:()=>{P(!0),m&&m(),U(),_&&_(),w.remove()}}}return null}function MB(r,e,t=0,n=!0){let{x:o,y:i,x1:a,y1:c}=r,{x:u,y:f,x1:p,y1:m}=e,g,b;return n?(g=a<u+t||o-t>p,b=c<f+t||i-t>m):(g=a<=u+t||o-t>=p,b=c<=f+t||i-t>=m),!(g||b)}function LB(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 DB(r){let{left:e,top:t,width:n,height:o}=r,{clientWidth:i,clientHeight:a}=document.documentElement,c=!1,u=!1;return e+n>i?(e=i-n-Mp,c=!0):e<0&&(e=Mp,c=!0),t+o>a?(t=a-o-Mp,u=!0):t<0&&(t=Mp,u=!0),{left:e,top:t,leftLimited:c,topLimited:u}}function OB(r,e={}){let t=Symbol("ignoreFirstBind"),n=new Set,o=new ResizeObserver(u=>{e.ignoreFirstBind&&u.some(f=>{let p=f.target,m=p[t];return p[t]=!0,!m})||r(u)}),i=o.observe;o.observe=(u,f)=>{n.add(u),i.call(o,u,f)};let a=o.unobserve;o.unobserve=u=>{n.has(u)&&(n.delete(u),u[t]=void 0),a.call(o,u)};let c=o.disconnect;return o.disconnect=()=>{for(let u of n.values())u[t]=void 0;c.call(o)},o}function fg(r,e){r.addEventListener("scroll",e),this.scrollHandler.push([r,e])}function Gp(){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 hg(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 cv(r){return Object.entries(r).map(([e,t])=>`${NB(e)}: ${t};`).join(" ")}function NB(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 Co=()=>Math.random().toString(36).slice(2);function nS(r,e){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{r.apply(this,n)},e)}}const Fm=Re.import("parchment"),rx=Re.import("blots/container"),PB=Re.import("blots/block"),BB=Re.import("blots/block/embed");var Ts,Qc=(Ts=class extends rx{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===Fm.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 Fm.ParentBlot?e.unwrap():e.remove())})}},ue(Ts,"tagName"),ue(Ts,"blotName",Me.container),ue(Ts,"scope",Fm.Scope.BLOCK_BLOT),ue(Ts,"allowedChildren",[PB,BB,rx]),ue(Ts,"requiredContainer"),ue(Ts,"defaultChild"),Ts);const Uc=r=>GP(r)?r:1,nx=Re.import("blots/block"),FB=Re.import("blots/block/embed");var Lc,Oi=(Lc=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,u=super.create();u.dataset.tableId=e,u.dataset.rowId=t,u.dataset.colId=n,u.dataset.rowspan=String(Uc(o)),u.dataset.colspan=String(Uc(i)),a&&(u.dataset.style=a);try{c&&(u.dataset.emptyRow=JSON.stringify(c))}catch{}return u}static formats(r){let{tableId:e,rowId:t,colId:n,rowspan:o,colspan:i,style:a,emptyRow:c}=r.dataset,u={tableId:String(e),rowId:String(t),colId:String(n),rowspan:Number(Uc(o)),colspan:Number(Uc(i))};a&&(u.style=a);try{c&&(u.emptyRow=JSON.parse(c))}catch{}return u}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(nx,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=hg(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 FB){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 u=e.offset(),f=this.length();if(u+1<f){let p=this.scroll.create(Me.tableCellInner,o);this.children.forEachAt(u+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 u=this.scroll.create(Me.tableRow,n),f=this.scroll.create(Me.tableCell,n);return f.appendChild(t),u.appendChild(f),a.parent.insertBefore(u,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)}},ue(Lc,"blotName",Me.tableCellInner),ue(Lc,"tagName","div"),ue(Lc,"className","ql-table-cell-inner"),ue(Lc,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),ue(Lc,"defaultChild",nx),ue(Lc,"allowStyle",new Set(["background-color","border","height"])),Lc),ih,Xa=(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),u=this.scroll.create("block");u.appendChild(this.scroll.create("break")),c.appendChild(u),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())}},ue(ih,"blotName",Me.tableRow),ue(ih,"tagName","tr"),ue(ih,"className","ql-table-row"),ih),Fp,zc=(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(Xa),o=new Set(t),i=0;for(let f of n){if(i===r)break;f.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=Co(),u=this.scroll.create(Me.tableRow,{tableId:a,rowId:c});for(let f of o){let p=this.scroll.create("break"),m=p.wrap("block"),g=m.wrap(Me.tableCellInner,{tableId:a,rowId:c,colId:f,rowspan:1,colspan:1}),b=g.wrap(Me.tableCell,{tableId:a,rowId:c,colId:f,rowspan:1,colspan:1});u.appendChild(b)}this.insertBefore(u,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)}},ue(Fp,"blotName",Me.tableBody),ue(Fp,"tagName","tbody"),Fp);const jB=Re.import("parchment"),zB=Re.import("blots/block"),HB=Re.import("blots/container");var uv=class extends zB{replaceWith(r,e){let t=Uu(r)?this.scroll.create(r,e):r;if(t instanceof jB.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 HB?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 $B=Re.import("blots/block/embed");var ox=class extends $B{delta(){let r=super.delta(),e=dv(this);return e[Me.tableCellInner]&&r.insert(`
|
|
220
220
|
`,{[Me.tableCellInner]:e[Me.tableCellInner]}),r}length(){return dv(this)[Me.tableCellInner]&&(!this.next||this.next.length()<=1)?super.length()+1:super.length()}};function dv(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:dv(r.parent,e,t)}const ix=Re.import("parchment"),qB=Re.import("blots/scroll");var UB=class extends qB{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,ix.Scope.BLOCK&ix.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}},WB=`<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 KF(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 XF(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 cx(r){return!!/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i.exec(r)}class JF{constructor(e,t,n,o){ue(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,u,f;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=>cx(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((u=e.dataTransfer)==null?void 0:u.items,e);return}const i=(f=e.dataTransfer)==null?void 0:f.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"&&cx(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 iS(t);this.logger.log(" pasteFilesIntoQuill",`pasting image (${n})`),this.onNewDataUrl(o)})),this.logger.log(" pasteFilesIntoQuill","done")}}class Dh{constructor(e,t){ue(this,"quill");ue(this,"range");ue(this,"options");ue(this,"imageDrop");ue(this,"fileHolder");ue(this,"Logger");this.quill=e,this.options=t||{};const n=!!t.debug,o=!!t.suppressErrorLogging;this.Logger=new qF(n,o),VF(t,this.Logger);const i=async c=>{this.Logger.log("onImageDrop",{dataUrl:c});const u=await this.downscaleImageFromUrl(c);this.insertToEditor(u,Dh.b64toBlob(u))};this.imageDrop=new JF(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 iS(n),i=await this.downscaleImageFromUrl(o);this.insertToEditor(i,Dh.b64toBlob(i))}async downscaleImageFromUrl(e){const t=await WF(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"},Mc={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}},QF={tl:Dp(!0,!0),tr:Dp(!0,!1),bl:Dp(!1,!0),br:Dp(!1,!1)},ej={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"}]},tj=Re.import("formats/image");class Zp extends tj{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)}}ue(Zp,"blotName","image"),ue(Zp,"tagName","img"),ue(Zp,"scope",or.INLINE);Re.register("formats/image",Zp,!0);class qh{constructor(e){ue(this,"resizer");ue(this,"quill");ue(this,"overlay");ue(this,"activeEle");ue(this,"blot");ue(this,"options");ue(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 rj extends qh{constructor(){super(...arguments);ue(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 nj extends qh{constructor(){super(...arguments);ue(this,"boxes",[]);ue(this,"dragBox",null);ue(this,"dragStartX",0);ue(this,"dragStartY",0);ue(this,"contentOption");ue(this,"preDragSize",{width:0,height:0});ue(this,"naturalSize",[0,0]);ue(this,"handleDragProxy",null);ue(this,"handleMouseupProxy",null);ue(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))});ue(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()});ue(this,"handleDrag",t=>{!this.activeEle||!this.blot||!this.contentOption||(Object.assign(this.activeEle.style,this.calcSize(t,{...this.contentOption.limit,unit:!0})),this.requestUpdate())});ue(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,QF[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 u;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(u=this.contentOption)!=null&&u.attribute?this.contentOption.attribute.forEach(f=>c[f]=this.preDragSize[f]):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 f=this.applyLimit(c,n.minHeight,n.maxHeight);f!==c&&(c=f,a=c/n.ratio)}else o&&(a=this.applyLimit(a,n.minWidth,n.maxWidth)),i&&(c=this.applyLimit(c,n.minHeight,n.maxHeight));const u={};return t.width!==void 0&&(u.width=n.unit?`${a}px`:a),t.height!==void 0&&(u.height=n.unit?`${c}px`:c),u}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 Bc=class Bc extends qh{constructor(){super(...arguments);ue(this,"keyboardProxy",null)}static injectInit(t){var o;const n=(o=t.keyboard)==null?void 0:o.bindings;n&&[Bc.keys.LEFT,Bc.keys.RIGHT].forEach(i=>(n[i]||[]).unshift(Bc.makeArrowHandler(i)))}static makeArrowHandler(t){const n=t===Bc.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===Bc.keys.RIGHT,[u]=i.getLine(a+(n?-1:0));if(!u)return!0;if(i.resizer.judgeShow(u))return!1;const f=i.getIndex(u);if(c&&f+u.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===or.BLOCK_BLOT;if(n&&(g&&a===m||a===0||a===f))return!0;let b=p;if(n&&m===0){const[w]=i.getLeaf(a-1);w&&(b=w)}return!b||!i.resizer.judgeShow(b)}}}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===Mc.BACKSPACE||n===Mc.DELETE?(this.handleDelete(),a=!0):n>=Mc.LEFT&&n<=Mc.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===Mc.RIGHT?n+=this.blot.length()||1:t===Mc.UP?(n=this.getOtherLineIndex(-1),o=this.quill.getLeaf(n)[0]):t===Mc.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)}};ue(Bc,"keys",Mc);let pg=Bc;const Kd=class Kd extends qh{constructor(t){super(t);ue(this,"toolbar");ue(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(S.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})}};ue(Kd,"Tools",{left:{icon:"AlignLeft"},center:{icon:"AlignCenter"},right:{icon:"AlignRight"},justify:{icon:"AlignJustify"}});let hv=Kd;class sS{constructor(e,t={}){ue(this,"quill");ue(this,"options");ue(this,"moduleClasses");ue(this,"modules",[]);ue(this,"blot");ue(this,"selectedBlots",[]);ue(this,"embedClassName","");ue(this,"activeEle");ue(this,"overlay");ue(this,"updateFromModule",!1);ue(this,"hideProxy",null);ue(this,"updateOverlayPositionProxy",null);var o;e.resizer=this,this.quill=e;const n=t.modules?[...t.modules]:null;this.options={...ej,...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)),pg.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}}ue(sS,"Modules",{Base:qh,DisplaySize:rj,Toolbar:hv,Resize:nj,Keyboard:pg});const Op=Re.import("delta"),oj=Re.import("modules/clipboard");function ij(r){let e=Number.parseFloat(r.getAttribute("width")||String(Vn.colDefaultWidth));if(Number.isNaN(e)){const t=r.style.width;e=t?Number.parseFloat(t):r.offsetWidth}return e}function sj(r,e){const t=new Array(e).fill(Vn.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 u=ij(c);t[a]=u||t[a]}else break}return t}class aj extends oj{constructor(t,n){super(t,n);ue(this,"tableId",Co());ue(this,"rowId",Co());ue(this,"colIds",[]);ue(this,"rowspanCount",[]);ue(this,"cellCount",0);ue(this,"colCount",0);ue(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 f=0;f<n.ops.length;f++){const{attributes:p,insert:m}=n.ops[f],{table:g,[Me.tableCell]:b,...w}=p||{},T=Hc.isObject(m)&&m[Me.tableCol];T?i.push({insert:m}):o.push({attributes:w,insert:m}),!(w!=null&&w[Me.tableCellInner])&&!T&&(a=f)}const u=sj(t,this.colIds.length).reduce((f,p,m)=>(i[m]?f.push(i[m]):f.push({insert:{[Me.tableCol]:{tableId:this.tableId,colId:this.colIds[m],width:p,full:!0}}}),f),[]);return o.splice(a+1,0,...u),this.tableId=Co(),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&&Hc.isObject(a.insert)&&a.insert[Me.tableCol]&&o.push(a)}return new Op(o)}matchCol(t){this.colIds[this.colCount]=Co();const n=new Op().insert({[Me.tableCol]:Object.assign(Hu.value(t),{tableId:this.tableId,colId:this.colIds[this.colCount]})});return this.colCount+=1,n}matchTr(t,n){this.rowId=Co(),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]=Co()),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 u=Object.assign(i,{tableId:this.tableId,rowId:this.rowId,colId:c});this.handleBorderNoneStyles(o,u);const f=[];for(const p of n.ops){const{attributes:m={},...g}=p,{[Me.tableCell]:b,...w}=m;f.push({...g,attributes:{...w,[Me.tableCellInner]:u}})}return(f.length<=0||!Hc.isString(f[f.length-1].insert)||!f[f.length-1].insert.endsWith(`
|
|
359
359
|
`))&&f.push({insert:`
|
|
360
|
-
`,attributes:{[Me.tableCellInner]:u}}),new Op(f)}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(Hc.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,u=0;for(let f=0;f<t.length;f++){const p=t[f];p===":"&&c?(i=t.substring(u,f).trim(),u=f+1,c=!1):p===";"&&(!c&&i&&(a=t.substring(u,f).trim(),(!n||n(i))&&(o[i]=a)),u=f+1,c=!0)}return!c&&i&&u<t.length&&(a=t.substring(u).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 u={},f=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 b=g[1],w=this.parseStyleWithFilter(b),T={};let A=!1;for(const _ in w)f(_)&&(T[_]=w[_],A=!0);A&&(u[p]=T)}}if(Object.keys(u).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))||[],b=m.getAttribute("style")||"",w=this.parseStyleWithFilter(b);let T=!1;for(const A of g){const _=u[A];if(_)for(const R in _)w[R]||(w[R]=_[R],T=!0)}if(T){let A="";for(const _ in w)A+=_+":"+w[_]+";";A&&m.setAttribute("style",A)}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,u=parseInt(a.getAttribute("rowspan")||"1")*24,f=a.getAttribute("style")||"",p=f+(f?"; ":"")+`height: ${u}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 u=n[a].querySelectorAll("td, th");if(u.length===0&&a<n.length-1){o.push(a);continue}for(const f of Array.from(u)){const p=parseInt(f.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(f)}}}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 u=parseInt(c.getAttribute("rowspan")||"1");u>1&&c.setAttribute("rowspan",(u-1).toString())}}for(const i of t.reverse())n[i].remove()}}class lj extends oS{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 b=g.parent.domNode;if(!b)return null;const w=o.findIndex(_=>_.rowId===g.rowId);if(w===-1)return null;const T=g.getColumnIndex();if(T===-1)return null;const A=b.getBoundingClientRect();return!A||A.width===0||A.height===0?null:{td:g,rowIndex:w,colIndex:T,rowspan:g.rowspan,colspan:g.colspan,visualLeft:A.left,visualRight:A.right,visualTop:A.top,visualBottom:A.bottom}}).filter(Boolean);if(i.length<=1)return;i.sort((g,b)=>g.visualTop-b.visualTop||g.visualLeft-b.visualLeft);const a=i[0],c=a.td,u=Math.max(...i.map(g=>g.rowIndex+g.rowspan-1)),f=Math.max(...i.map(g=>g.colIndex+g.colspan-1)),p=u-a.rowIndex+1,m=f-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":sS,"modules/tableUp":lj,"modules/magicUrl":PP,"formats/divider":fv,"modules/clipboard":aj,"modules/copy":zF,"modules/toggleFullscreen":B2},!0);const Zd={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},cj={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}},uj=r=>{const{type:e="Primary",editorRef:t,useValue:n,useError:o,placeholder:i,tabIndex:a,autoFocus:c,editorProps:u,style:f,minHeight:p,maxHeight:m,contentHeight:g,contentMaxHeight:b=1e3,toolbarSize:w="Med",toolbarType:T="Default",readOnly:A,limitPosition:_="Bottom",maxLength:R,size:D=100,editorClassName:M,editorStyle:F,noImageResize:B,...z}=r,[{wrapId:j,wrapProps:G,labelProps:fe,...P},U]=Ku(z),V=C.useMemo(()=>e==="ReadOnly"||A,[e,A]),Q=C.useMemo(()=>g?20:0,[g]),[se,te]=C.useState(w==="Med"?40:50),re=C.useMemo(()=>V?0:se,[V,se]),[ne,be]=C.useMemo(()=>!o||V||_==="Top"?[0,0]:[20,6],[o,V,_]),ie=C.useMemo(()=>ne+be,[ne,be]),[de,me]=C.useState(g),[Ae,De]=C.useState(!1),[oe,ge]=C.useState(!1),we=C.useRef(null),Le=C.useRef(0),Ce=C.useRef(0),Se=C.useMemo(()=>P.label?24:0,[P.label]),Ie=C.useMemo(()=>T==="Title",[T]),et=C.useMemo(()=>g||p||Ie,[g,p,Ie]),Je=C.useMemo(()=>et?"fit-content":m?m+Se:`calc(100% - ${Se}px)`,[et,m,Se]),Qe=C.useMemo(()=>{if(g){if(de)switch(e){case"ReadOnly":return de;case"Raw":return de+ie;default:return de+re+ie}}else return},[g,de,e,re,ie]),Ze=C.useMemo(()=>{if(!(!m||m<=re+ie))switch(e){case"ReadOnly":return m;case"Raw":return m-ie;default:return m-re-ie}},[e,re,ie,m]),Ke=C.useMemo(()=>{if(p&&g){const Ue=Math.min(p-re-ie,g);return V?Ue:Ue+re+ie}else return p||(g?void 0:`calc(100% - ${Se}px)`)},[p,g,Se,re,ie,V]),ht=C.useMemo(()=>(Array.isArray(P.errorMessage)?P.errorMessage.some(Boolean):!!P.errorMessage)?"Error":e,[P.errorMessage,e]),Pe=C.useCallback(Ue=>{let dt=Ue;dt=q9.sanitize(Ue);const yt=document.createElement("div");return yt.innerHTML=dt,new Re(yt,{readOnly:!0}).getContents()},[]),[Ne,Xe]=vn(n,""),[We,Ve]=C.useState(()=>Pe(Ne));C.useEffect(()=>{Xe===void 0&&Ve(Pe(Ne))},[Pe,Xe,Ne]);const at=C.useMemo(()=>S.jsx(dj,{htmlDelta:We,isReadonly:V,limit:D*Zd.KB,useError:o}),[We,V,D,o]),lt=C.useRef(null),Oe=C.useRef([]),[st,mt]=C.useState(!0);C.useEffect(()=>{const Ue=setTimeout(()=>mt(!1),0);return()=>{clearTimeout(Ue),Oe.current.forEach(dt=>dt()),Oe.current=[]}},[]);const ut=C.useCallback((Ue,dt)=>{if(!g)return dt;const yt=p?p-re-ie:g,Et=Math.max(yt,0),Nt=m?m-re-ie:b;return Math.min(Nt,Math.max(Et,dt+Ue))},[g,p,re,ie,m,b]),Lt=C.useCallback(Ue=>{if(!Ae||!g)return;const dt=Ue.clientY-Ce.current,yt=ut(dt,Le.current);de!==yt&&me(yt),Ue.preventDefault(),Ue.stopPropagation()},[Ae,g,ut,de]),Bt=C.useCallback(Ue=>{De(!1),ge(!1),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",Bt),Ue.preventDefault(),Ue.stopPropagation()},[Lt]),Pt=C.useCallback(Ue=>{if(!g)return;if(Ue.detail===2){me(g);return}de===void 0?(me(g),Le.current=g):Le.current=de,De(!0),ge(!0),Ce.current=Ue.clientY;const dt=Et=>{if(!g)return;const Nt=Et.clientY-Ce.current,rt=ut(Nt,Le.current);me(rt),Et.preventDefault(),Et.stopPropagation()},yt=Et=>{De(!1),ge(!1),document.removeEventListener("mousemove",dt),document.removeEventListener("mouseup",yt),Et.preventDefault(),Et.stopPropagation()};document.addEventListener("mousemove",dt),document.addEventListener("mouseup",yt),Ue.preventDefault(),Ue.stopPropagation()},[g,de,ut]),Xt=C.useCallback((Ue,dt,yt,Et)=>{if(yt!=="user"&&yt!=="api")return;const Nt=Et.getContents(),rt=Et.getLength()-1,St=R!==void 0&&rt>R,jt=pe=>pe.replace(/\s{2,}/g,pt=>" ".repeat(pt.length)),tr=Ue.replace(/<p><br><\/p>/gi,"").trim(),Ut=jt(tr);if(!St){Ve(Nt),Xe==null||Xe(Ut);return}const br=ar(Nt,R);Ve(br);const Nr=new Re(document.createElement("div"));Nr.setContents(br);const pr=jt(Nr.root.innerHTML.replace(/<p><br><\/p>/gi,"").trim());Xe==null||Xe(pr)},[R,Xe]),ar=(Ue,dt)=>{var Nt,rt,St;if(!Ue.ops)return Ue;const yt=new nr;let Et=0;for(const jt of Ue.ops){if(Et>=dt)break;if(jt.insert&&typeof jt.insert=="string"){const tr=jt.insert,Ut=dt-Et;if(tr.length<=Ut)(Nt=yt.ops)==null||Nt.push(jt),Et+=tr.length;else{const br={...jt,insert:tr.substring(0,Ut)};(rt=yt.ops)==null||rt.push(br),Et+=Ut;break}}else Et<dt&&((St=yt.ops)==null||St.push(jt),Et+=1)}return yt},Kt=C.useCallback(Ue=>{var Nt,rt;const dt=Ue.getEditor().container;if(!dt)return null;const yt=(Nt=dt.closest(".AEditorContainer"))==null?void 0:Nt.querySelector(".ql-toolbar");return yt||((rt=dt.parentElement)==null?void 0:rt.querySelector(".ql-toolbar"))||null},[]),cr=C.useCallback((Ue,dt,yt,Et)=>{if(!Ue)return;const Nt=yt;Ue.addEventListener(dt,Nt,Et),Oe.current.push(()=>Ue.removeEventListener(dt,Nt,Et))},[]),Te=C.useCallback((Ue,dt,yt)=>{const Et=dt.getFormat();Ue.forEach(Nt=>{if(Et[Nt]){const rt=Et[Nt],St=`.ql-${Nt}`,jt=yt.querySelector(`${St} .ql-picker-label`),tr=yt.querySelectorAll(`${St} .ql-picker-item`),Ut=Array.from(tr).find(br=>br.getAttribute("data-value")===rt);Ut&&(Ut.classList.add("ql-selected"),jt==null||jt.classList.add("ql-active"))}})},[]),ae=C.useCallback(Ue=>{if(!Ue.length)return;const Et=Ue[0].target.getBoundingClientRect(),Nt=Math.ceil(Et.height);te(rt=>Math.abs(rt-Nt)<.1?rt:Nt)},[]),it=C.useCallback((Ue,dt)=>{if(Ue.key!=="Backspace")return;const yt=dt.getSelection(!1);if(!yt||yt.length>0)return;const Et=yt.index;if(Et<=0)return;const[Nt]=dt.getLine(Et);if(Nt&&Et===dt.getIndex(Nt)||dt.getFormat(Et,1).link)return;const rt=dt.getFormat(Et-1,1);if(rt.link){Ue.preventDefault();let St=Et-1;for(;St>0&&dt.getFormat(St-1,1).link===rt.link;)St--;const[jt]=dt.scroll.descendant(tr=>{var Ut;return((Ut=tr==null?void 0:tr.statics)==null?void 0:Ut.blotName)==="link"},St);if(jt!=null&&jt.domNode){const tr=(jt.domNode.textContent||"").length;dt.removeFormat(St,tr)}}},[]),bt=C.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(Ue){const{blockquote:dt,list:yt,["code-block"]:Et}=Ue.getFormat();return dt||yt||Et?(Ue.format("blockquote",!1),Ue.format("list",!1),Ue.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),qt=C.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,toggleFullscreen:{type:ht,maximize:Gd.renderToString(S.jsx(en,{icon:"Maximize",size:w==="Med"?"sm":"md"})),minimize:Gd.renderToString(S.jsx(en,{icon:"Minimize",size:w==="Med"?"sm":"md"}))},imageCompress:{quality:Zd.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:Ue=>{var dt,yt;try{const Et=(dt=Ue.clipboardData)==null?void 0:dt.items;if(!Et)return!0;const Nt=Array.from(Et).some(jt=>{const tr=jt.type.toLowerCase();return tr.includes("Excel")||tr.includes("text/html")}),rt=(yt=Ue.clipboardData)==null?void 0:yt.getData("text/html"),St=rt&&(rt.includes("<table")||rt.includes("<tbody")||rt.includes("<td"));return!(Nt||St)}catch(Et){return console.warn("Error in handleOnPaste:",Et),!0}},insertIntoEditor:(Ue,dt,yt)=>{Zd.IMAGE_SIZES.has(Ue)||Zd.IMAGE_SIZES.set(Ue,dt.size);const Et=yt.getSelection();Et&&yt.insertEmbed(Et.index,"image",Ue,Re.sources.USER)}},...!V&&{...!B&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:Gd.renderToString(S.jsx(en,{icon:"Table",size:w==="Med"?"sm":"md",strokeWidth:2.5})),resize:xF,resizeScale:wF,customSelect:RF,selection:SF,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:yF,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",{[oS.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const Ue=this.quill,dt=Ue.getSelection(!0);if(!dt)return;const yt=Math.min(dt.index+1,Ue.getLength()-1);Ue.insertEmbed(yt,"divider",!0,Re.sources.USER),setTimeout(()=>Ue.setSelection(Math.min(yt+1,Ue.getLength()-1),0,Re.sources.SILENT),0)}}}}}),[V,B,w,ht]),Ft=C.useMemo(()=>Ie?bt():qt(),[Ie,bt,qt]),Dt=C.useCallback(Ue=>{if(!Ue)return;const dt=Ue.getEditor();if(!dt)return;const yt=dt.root,Et=Kt(Ue);yt&&M&&yt.classList.add(...M.split(" ")),yt&&F&&Object.entries(F).forEach(([rt,St])=>{const jt=rt.replace(/([A-Z])/g,tr=>`-${tr[0].toLowerCase()}`);yt.style[jt]=St}),cr(yt,"keydown",rt=>it(rt,dt));const Nt=new ResizeObserver(ae);if(Et){Nt.observe(Et),Oe.current.push(()=>Nt.disconnect());const rt=["header","color","background"];rt.forEach(St=>{const jt=Et.querySelector(`.ql-${St} .ql-picker-label`);jt&&cr(jt,"click",()=>Te(rt,dt,Et))})}},[Kt,M,F,cr,ae,it,Te]),Ht=C.useCallback(Ue=>{if(Oe.current.forEach(yt=>yt()),Oe.current=[],lt.current=Ue,!Ue){Hc.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const dt=Ue;dt.copyContent=yt=>{Ue.getEditor().getModule("copy").copyContent(yt)},Hc.isFunction(t)?t(dt):t&&(t.current=dt),Dt(Ue)},[t,Dt]);return S.jsx(Vc,{wrapId:j,...P,label:S.jsxs(kn,{style:{gap:4},children:[P.label,_==="Top"&&at]}),labelProps:{...fe,style:{minHeight:P.label?20:void 0,marginBottom:P.label?4:0,...fe==null?void 0:fe.style}},wrapProps:{...G,className:Ye.clsx(G==null?void 0:G.className,!et&&Li.AEditorWrapper),style:{...G==null?void 0:G.style,height:Je}},children:S.jsxs(Yr,{...U,className:Ye.clsx(U.className,Li.AEditorContainer,st&&"NoTransition"),style:{...f,height:Qe,minHeight:Ke},children:[S.jsx(Lg,{...u,ref:Ht,preserveWhitespace:!0,modules:Ft,placeholder:i,readOnly:V,theme:"snow",value:We,className:Ye.clsx(u==null?void 0:u.className,Li.AEditor,Li[ht],Ie&&"Title",st&&"NoTransition"),style:{...u==null?void 0:u.style,maxHeight:Ze?Ze+re:void 0,"--icon-size":`${w==="Med"?20:24}px`,"--editor-padding":Ie?"8px 12px":"12px","--toolbar-padding":`${w==="Med"?7.5:12.5}px`,"--content-height":Ie?"fit-content":de?`${de}px`:"100%","--content-max-height":Ze?`${Ze}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(S.jsx(en,{icon:"EditorArrow"})))}`,"--title-color-picker-row":Ie?1:4,"--title-header-font-size":`${w==="Med"?12:14}px`},onChange:Xt}),g&&S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:we,className:Ye.clsx(Li.Resizer,st&&"NoTransition"),style:{height:Q,bottom:o&&!V?ie:0},onMouseDown:Pt}),S.jsx("div",{children:`${Math.round(de)}px`,className:Ye.clsx(Li.Indicator,"NoSelect","Label1",st&&"NoTransition"),style:{height:Q,bottom:o&&!V?ie:0,display:oe?"flex":"none"}})]}),S.jsx("div",{children:at,className:Ye.clsx(Li.LimitContainer,"NoSelect",st&&"NoTransition"),style:{marginTop:be,minHeight:ne,display:_==="Bottom"?"flex":"none"}})]})})},dj=({htmlDelta:r,limit:e,useError:t,isReadonly:n})=>{const[o,i]=vn(t,!1),a=C.useMemo(()=>cj.calculateTextSize(r),[r]);return C.useEffect(()=>{i&&i(a>e)},[a,e,i]),!t||n?null:S.jsxs(tl,{className:Li.Limit,children:["(",S.jsx("span",{className:Ye.clsx(o&&Li.Error),children:qu(a)})," / ",qu(e),")"]})};function fj(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const Bg=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 ry(r){return"nodeType"in r}function Ni(r){var e,t;return r?Cf(r)?r:ry(r)&&(e=(t=r.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function ny(r){const{Document:e}=Ni(r);return r instanceof e}function Uh(r){return Cf(r)?!1:r instanceof Ni(r).HTMLElement}function aS(r){return r instanceof Ni(r).SVGElement}function Sf(r){return r?Cf(r)?r.document:ry(r)?ny(r)?r:Uh(r)||aS(r)?r.ownerDocument:document:document:document}const il=Bg?C.useLayoutEffect:C.useEffect;function oy(r){const e=C.useRef(r);return il(()=>{e.current=r}),C.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 hj(){const r=C.useRef(null),e=C.useCallback((n,o)=>{r.current=setInterval(n,o)},[]),t=C.useCallback(()=>{r.current!==null&&(clearInterval(r.current),r.current=null)},[]);return[e,t]}function Nh(r,e){e===void 0&&(e=[r]);const t=C.useRef(r);return il(()=>{t.current!==r&&(t.current=r)},e),t}function Wh(r,e){const t=C.useRef();return C.useMemo(()=>{const n=r(t.current);return t.current=n,n},[...e])}function gg(r){const e=oy(r),t=C.useRef(null),n=C.useCallback(o=>{o!==t.current&&(e==null||e(o,t.current)),t.current=o},[]);return[t,n]}function pv(r){const e=C.useRef();return C.useEffect(()=>{e.current=r},[r]),e.current}let jm={};function Vh(r,e){return C.useMemo(()=>{if(e)return e;const t=jm[r]==null?0:jm[r]+1;return jm[r]=t,r+"-"+t},[r,e])}function lS(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[u,f]of c){const p=i[u];p!=null&&(i[u]=p+r*f)}return i},{...e})}}const of=lS(1),mg=lS(-1);function pj(r){return"clientX"in r&&"clientY"in r}function iy(r){if(!r)return!1;const{KeyboardEvent:e}=Ni(r.target);return e&&r instanceof e}function gj(r){if(!r)return!1;const{TouchEvent:e}=Ni(r.target);return e&&r instanceof e}function gv(r){if(gj(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 pj(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}}}),ux="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function mj(r){return r.matches(ux)?r:r.querySelector(ux)}const vj={display:"none"};function yj(r){let{id:e,value:t}=r;return C.createElement("div",{id:e,style:vj},t)}function bj(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 C.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},t)}function xj(){const[r,e]=C.useState("");return{announce:C.useCallback(n=>{n!=null&&e(n)},[]),announcement:r}}const cS=C.createContext(null);function wj(r){const e=C.useContext(cS);C.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(r)},[r,e])}function Cj(){const[r]=C.useState(()=>new Set),e=C.useCallback(n=>(r.add(n),()=>r.delete(n)),[r]);return[C.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 Sj={draggable:`
|
|
360
|
+
`,attributes:{[Me.tableCellInner]:u}}),new Op(f)}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(Hc.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,u=0;for(let f=0;f<t.length;f++){const p=t[f];p===":"&&c?(i=t.substring(u,f).trim(),u=f+1,c=!1):p===";"&&(!c&&i&&(a=t.substring(u,f).trim(),(!n||n(i))&&(o[i]=a)),u=f+1,c=!0)}return!c&&i&&u<t.length&&(a=t.substring(u).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 u={},f=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 b=g[1],w=this.parseStyleWithFilter(b),T={};let A=!1;for(const _ in w)f(_)&&(T[_]=w[_],A=!0);A&&(u[p]=T)}}if(Object.keys(u).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))||[],b=m.getAttribute("style")||"",w=this.parseStyleWithFilter(b);let T=!1;for(const A of g){const _=u[A];if(_)for(const R in _)w[R]||(w[R]=_[R],T=!0)}if(T){let A="";for(const _ in w)A+=_+":"+w[_]+";";A&&m.setAttribute("style",A)}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,u=parseInt(a.getAttribute("rowspan")||"1")*24,f=a.getAttribute("style")||"",p=f+(f?"; ":"")+`height: ${u}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 u=n[a].querySelectorAll("td, th");if(u.length===0&&a<n.length-1){o.push(a);continue}for(const f of Array.from(u)){const p=parseInt(f.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(f)}}}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 u=parseInt(c.getAttribute("rowspan")||"1");u>1&&c.setAttribute("rowspan",(u-1).toString())}}for(const i of t.reverse())n[i].remove()}}class lj extends oS{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 b=g.parent.domNode;if(!b)return null;const w=o.findIndex(_=>_.rowId===g.rowId);if(w===-1)return null;const T=g.getColumnIndex();if(T===-1)return null;const A=b.getBoundingClientRect();return!A||A.width===0||A.height===0?null:{td:g,rowIndex:w,colIndex:T,rowspan:g.rowspan,colspan:g.colspan,visualLeft:A.left,visualRight:A.right,visualTop:A.top,visualBottom:A.bottom}}).filter(Boolean);if(i.length<=1)return;i.sort((g,b)=>g.visualTop-b.visualTop||g.visualLeft-b.visualLeft);const a=i[0],c=a.td,u=Math.max(...i.map(g=>g.rowIndex+g.rowspan-1)),f=Math.max(...i.map(g=>g.colIndex+g.colspan-1)),p=u-a.rowIndex+1,m=f-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":sS,"modules/tableUp":lj,"modules/magicUrl":PP,"formats/divider":fv,"modules/clipboard":aj,"modules/copy":zF,"modules/toggleFullscreen":B2},!0);const Zd={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},cj={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}},uj=r=>{const{type:e="Primary",editorRef:t,useValue:n,useError:o,placeholder:i,tabIndex:a,autoFocus:c,editorProps:u,style:f,minHeight:p,maxHeight:m,contentHeight:g,contentMaxHeight:b=1e3,toolbarSize:w="Med",toolbarType:T="Default",readOnly:A,limitPosition:_="Bottom",maxLength:R,size:D=100,editorClassName:M,editorStyle:F,noImageResize:B,...z}=r,[{wrapId:j,wrapProps:G,labelProps:fe,...P},U]=Ku(z),V=C.useMemo(()=>e==="ReadOnly"||A,[e,A]),Q=C.useMemo(()=>g?20:0,[g]),[se,te]=C.useState(w==="Med"?40:50),re=C.useMemo(()=>V?0:se,[V,se]),[ne,be]=C.useMemo(()=>!o||V||_==="Top"?[0,0]:[20,6],[o,V,_]),ie=C.useMemo(()=>ne+be,[ne,be]),[de,me]=C.useState(g),[Ae,Oe]=C.useState(!1),[oe,ge]=C.useState(!1),we=C.useRef(null),Le=C.useRef(0),Ce=C.useRef(0),Se=C.useMemo(()=>P.label?24:0,[P.label]),Ie=C.useMemo(()=>T==="Title",[T]),et=C.useMemo(()=>g||p||Ie,[g,p,Ie]),Je=C.useMemo(()=>et?"fit-content":m?m+Se:`calc(100% - ${Se}px)`,[et,m,Se]),Qe=C.useMemo(()=>{if(g){if(de)switch(e){case"ReadOnly":return de;case"Raw":return de+ie;default:return de+re+ie}}else return},[g,de,e,re,ie]),Ze=C.useMemo(()=>{if(!(!m||m<=re+ie))switch(e){case"ReadOnly":return m;case"Raw":return m-ie;default:return m-re-ie}},[e,re,ie,m]),Ke=C.useMemo(()=>{if(p&&g){const Ue=Math.min(p-re-ie,g);return V?Ue:Ue+re+ie}else return p||(g?void 0:`calc(100% - ${Se}px)`)},[p,g,Se,re,ie,V]),ht=C.useMemo(()=>(Array.isArray(P.errorMessage)?P.errorMessage.some(Boolean):!!P.errorMessage)?"Error":e,[P.errorMessage,e]),Pe=C.useCallback(Ue=>{let dt=Ue;dt=q9.sanitize(Ue);const yt=document.createElement("div");return yt.innerHTML=dt,new Re(yt,{readOnly:!0}).getContents()},[]),[Ne,Xe]=vn(n,""),[We,Ve]=C.useState(()=>Pe(Ne));C.useEffect(()=>{Xe===void 0&&Ve(Pe(Ne))},[Pe,Xe,Ne]);const lt=C.useMemo(()=>S.jsx(dj,{htmlDelta:We,isReadonly:V,limit:D*Zd.KB,useError:o}),[We,V,D,o]),st=C.useRef(null),De=C.useRef([]),[at,mt]=C.useState(!0);C.useEffect(()=>{const Ue=setTimeout(()=>mt(!1),0);return()=>{clearTimeout(Ue),De.current.forEach(dt=>dt()),De.current=[]}},[]);const ut=C.useCallback((Ue,dt)=>{if(!g)return dt;const yt=p?p-re-ie:g,Et=Math.max(yt,0),Nt=m?m-re-ie:b;return Math.min(Nt,Math.max(Et,dt+Ue))},[g,p,re,ie,m,b]),Dt=C.useCallback(Ue=>{if(!Ae||!g)return;const dt=Ue.clientY-Ce.current,yt=ut(dt,Le.current);de!==yt&&me(yt),Ue.preventDefault(),Ue.stopPropagation()},[Ae,g,ut,de]),Bt=C.useCallback(Ue=>{Oe(!1),ge(!1),document.removeEventListener("mousemove",Dt),document.removeEventListener("mouseup",Bt),Ue.preventDefault(),Ue.stopPropagation()},[Dt]),Pt=C.useCallback(Ue=>{if(!g)return;if(Ue.detail===2){me(g);return}de===void 0?(me(g),Le.current=g):Le.current=de,Oe(!0),ge(!0),Ce.current=Ue.clientY;const dt=Et=>{if(!g)return;const Nt=Et.clientY-Ce.current,rt=ut(Nt,Le.current);me(rt),Et.preventDefault(),Et.stopPropagation()},yt=Et=>{Oe(!1),ge(!1),document.removeEventListener("mousemove",dt),document.removeEventListener("mouseup",yt),Et.preventDefault(),Et.stopPropagation()};document.addEventListener("mousemove",dt),document.addEventListener("mouseup",yt),Ue.preventDefault(),Ue.stopPropagation()},[g,de,ut]),Xt=C.useCallback((Ue,dt,yt,Et)=>{if(yt!=="user"&&yt!=="api")return;const Nt=Et.getContents(),rt=Et.getLength()-1,St=R!==void 0&&rt>R,jt=pe=>pe.replace(/\s{2,}/g,pt=>" ".repeat(pt.length)),tr=Ue.replace(/<p><br><\/p>/gi,"").trim(),Ut=jt(tr);if(!St){Ve(Nt),Xe==null||Xe(Ut);return}const br=ar(Nt,R);Ve(br);const Nr=new Re(document.createElement("div"));Nr.setContents(br);const pr=jt(Nr.root.innerHTML.replace(/<p><br><\/p>/gi,"").trim());Xe==null||Xe(pr)},[R,Xe]),ar=(Ue,dt)=>{var Nt,rt,St;if(!Ue.ops)return Ue;const yt=new nr;let Et=0;for(const jt of Ue.ops){if(Et>=dt)break;if(jt.insert&&typeof jt.insert=="string"){const tr=jt.insert,Ut=dt-Et;if(tr.length<=Ut)(Nt=yt.ops)==null||Nt.push(jt),Et+=tr.length;else{const br={...jt,insert:tr.substring(0,Ut)};(rt=yt.ops)==null||rt.push(br),Et+=Ut;break}}else Et<dt&&((St=yt.ops)==null||St.push(jt),Et+=1)}return yt},Kt=C.useCallback(Ue=>{var Nt,rt;const dt=Ue.getEditor().container;if(!dt)return null;const yt=(Nt=dt.closest(".AEditorContainer"))==null?void 0:Nt.querySelector(".ql-toolbar");return yt||((rt=dt.parentElement)==null?void 0:rt.querySelector(".ql-toolbar"))||null},[]),cr=C.useCallback((Ue,dt,yt,Et)=>{if(!Ue)return;const Nt=yt;Ue.addEventListener(dt,Nt,Et),De.current.push(()=>Ue.removeEventListener(dt,Nt,Et))},[]),Te=C.useCallback((Ue,dt,yt)=>{const Et=dt.getFormat();Ue.forEach(Nt=>{if(Et[Nt]){const rt=Et[Nt],St=`.ql-${Nt}`,jt=yt.querySelector(`${St} .ql-picker-label`),tr=yt.querySelectorAll(`${St} .ql-picker-item`),Ut=Array.from(tr).find(br=>br.getAttribute("data-value")===rt);Ut&&(Ut.classList.add("ql-selected"),jt==null||jt.classList.add("ql-active"))}})},[]),ae=C.useCallback(Ue=>{if(!Ue.length)return;const Et=Ue[0].target.getBoundingClientRect(),Nt=Math.ceil(Et.height);te(rt=>Math.abs(rt-Nt)<.1?rt:Nt)},[]),it=C.useCallback((Ue,dt)=>{if(Ue.key!=="Backspace")return;const yt=dt.getSelection(!1);if(!yt||yt.length>0)return;const Et=yt.index;if(Et<=0)return;const[Nt]=dt.getLine(Et);if(Nt&&Et===dt.getIndex(Nt)||dt.getFormat(Et,1).link)return;const rt=dt.getFormat(Et-1,1);if(rt.link){Ue.preventDefault();let St=Et-1;for(;St>0&&dt.getFormat(St-1,1).link===rt.link;)St--;const[jt]=dt.scroll.descendant(tr=>{var Ut;return((Ut=tr==null?void 0:tr.statics)==null?void 0:Ut.blotName)==="link"},St);if(jt!=null&&jt.domNode){const tr=(jt.domNode.textContent||"").length;dt.removeFormat(St,tr)}}},[]),bt=C.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(Ue){const{blockquote:dt,list:yt,["code-block"]:Et}=Ue.getFormat();return dt||yt||Et?(Ue.format("blockquote",!1),Ue.format("list",!1),Ue.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),qt=C.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,toggleFullscreen:{type:ht,maximize:Gd.renderToString(S.jsx(en,{icon:"Maximize",size:w==="Med"?"sm":"md"})),minimize:Gd.renderToString(S.jsx(en,{icon:"Minimize",size:w==="Med"?"sm":"md"}))},imageCompress:{quality:Zd.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:Ue=>{var dt,yt;try{const Et=(dt=Ue.clipboardData)==null?void 0:dt.items;if(!Et)return!0;const Nt=Array.from(Et).some(jt=>{const tr=jt.type.toLowerCase();return tr.includes("Excel")||tr.includes("text/html")}),rt=(yt=Ue.clipboardData)==null?void 0:yt.getData("text/html"),St=rt&&(rt.includes("<table")||rt.includes("<tbody")||rt.includes("<td"));return!(Nt||St)}catch(Et){return console.warn("Error in handleOnPaste:",Et),!0}},insertIntoEditor:(Ue,dt,yt)=>{Zd.IMAGE_SIZES.has(Ue)||Zd.IMAGE_SIZES.set(Ue,dt.size);const Et=yt.getSelection();Et&&yt.insertEmbed(Et.index,"image",Ue,Re.sources.USER)}},...!V&&{...!B&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:Gd.renderToString(S.jsx(en,{icon:"Table",size:w==="Med"?"sm":"md",strokeWidth:2.5})),resize:xF,resizeScale:wF,customSelect:RF,selection:SF,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:yF,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",{[oS.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const Ue=this.quill,dt=Ue.getSelection(!0);if(!dt)return;const yt=Math.min(dt.index+1,Ue.getLength()-1);Ue.insertEmbed(yt,"divider",!0,Re.sources.USER),setTimeout(()=>Ue.setSelection(Math.min(yt+1,Ue.getLength()-1),0,Re.sources.SILENT),0)}}}}}),[V,B,w,ht]),Ft=C.useMemo(()=>Ie?bt():qt(),[Ie,bt,qt]),Lt=C.useCallback(Ue=>{if(!Ue)return;const dt=Ue.getEditor();if(!dt)return;const yt=dt.root,Et=Kt(Ue);yt&&M&&yt.classList.add(...M.split(" ")),yt&&F&&Object.entries(F).forEach(([rt,St])=>{const jt=rt.replace(/([A-Z])/g,tr=>`-${tr[0].toLowerCase()}`);yt.style[jt]=St}),cr(yt,"keydown",rt=>it(rt,dt));const Nt=new ResizeObserver(ae);if(Et){Nt.observe(Et),De.current.push(()=>Nt.disconnect());const rt=["header","color","background"];rt.forEach(St=>{const jt=Et.querySelector(`.ql-${St} .ql-picker-label`);jt&&cr(jt,"click",()=>Te(rt,dt,Et))})}},[Kt,M,F,cr,ae,it,Te]),Ht=C.useCallback(Ue=>{if(De.current.forEach(yt=>yt()),De.current=[],st.current=Ue,!Ue){Hc.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const dt=Ue;dt.copyContent=yt=>{Ue.getEditor().getModule("copy").copyContent(yt)},Hc.isFunction(t)?t(dt):t&&(t.current=dt),Lt(Ue)},[t,Lt]);return S.jsx(Vc,{wrapId:j,...P,label:S.jsxs(kn,{style:{gap:4},children:[P.label,_==="Top"&<]}),labelProps:{...fe,style:{minHeight:P.label?20:void 0,marginBottom:P.label?4:0,...fe==null?void 0:fe.style}},wrapProps:{...G,className:Ye.clsx(G==null?void 0:G.className,!et&&Li.AEditorWrapper),style:{...G==null?void 0:G.style,height:Je}},children:S.jsxs(Yr,{...U,className:Ye.clsx(U.className,Li.AEditorContainer,at&&"NoTransition"),style:{...f,height:Qe,minHeight:Ke},children:[S.jsx(Lg,{...u,ref:Ht,preserveWhitespace:!0,modules:Ft,placeholder:i,readOnly:V,theme:"snow",value:We,className:Ye.clsx(u==null?void 0:u.className,Li.AEditor,Li[ht],Ie&&"Title",at&&"NoTransition"),style:{...u==null?void 0:u.style,maxHeight:Ze?Ze+re:void 0,"--icon-size":`${w==="Med"?20:24}px`,"--editor-padding":Ie?"8px 12px":"12px","--toolbar-padding":`${w==="Med"?7.5:12.5}px`,"--content-height":Ie?"fit-content":de?`${de}px`:"100%","--content-max-height":Ze?`${Ze}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(S.jsx(en,{icon:"EditorArrow"})))}`,"--title-color-picker-row":Ie?1:4,"--title-header-font-size":`${w==="Med"?12:14}px`},onChange:Xt}),g&&S.jsxs(S.Fragment,{children:[S.jsx("div",{ref:we,className:Ye.clsx(Li.Resizer,at&&"NoTransition"),style:{height:Q,bottom:o&&!V?ie:0},onMouseDown:Pt}),S.jsx("div",{children:`${Math.round(de)}px`,className:Ye.clsx(Li.Indicator,"NoSelect","Label1",at&&"NoTransition"),style:{height:Q,bottom:o&&!V?ie:0,display:oe?"flex":"none"}})]}),S.jsx("div",{children:lt,className:Ye.clsx(Li.LimitContainer,"NoSelect",at&&"NoTransition"),style:{marginTop:be,minHeight:ne,display:_==="Bottom"?"flex":"none"}})]})})},dj=({htmlDelta:r,limit:e,useError:t,isReadonly:n})=>{const[o,i]=vn(t,!1),a=C.useMemo(()=>cj.calculateTextSize(r),[r]);return C.useEffect(()=>{i&&i(a>e)},[a,e,i]),!t||n?null:S.jsxs(tl,{className:Li.Limit,children:["(",S.jsx("span",{className:Ye.clsx(o&&Li.Error),children:qu(a)})," / ",qu(e),")"]})};function fj(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const Bg=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 ry(r){return"nodeType"in r}function Ni(r){var e,t;return r?Cf(r)?r:ry(r)&&(e=(t=r.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function ny(r){const{Document:e}=Ni(r);return r instanceof e}function Uh(r){return Cf(r)?!1:r instanceof Ni(r).HTMLElement}function aS(r){return r instanceof Ni(r).SVGElement}function Sf(r){return r?Cf(r)?r.document:ry(r)?ny(r)?r:Uh(r)||aS(r)?r.ownerDocument:document:document:document}const il=Bg?C.useLayoutEffect:C.useEffect;function oy(r){const e=C.useRef(r);return il(()=>{e.current=r}),C.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 hj(){const r=C.useRef(null),e=C.useCallback((n,o)=>{r.current=setInterval(n,o)},[]),t=C.useCallback(()=>{r.current!==null&&(clearInterval(r.current),r.current=null)},[]);return[e,t]}function Nh(r,e){e===void 0&&(e=[r]);const t=C.useRef(r);return il(()=>{t.current!==r&&(t.current=r)},e),t}function Wh(r,e){const t=C.useRef();return C.useMemo(()=>{const n=r(t.current);return t.current=n,n},[...e])}function gg(r){const e=oy(r),t=C.useRef(null),n=C.useCallback(o=>{o!==t.current&&(e==null||e(o,t.current)),t.current=o},[]);return[t,n]}function pv(r){const e=C.useRef();return C.useEffect(()=>{e.current=r},[r]),e.current}let jm={};function Vh(r,e){return C.useMemo(()=>{if(e)return e;const t=jm[r]==null?0:jm[r]+1;return jm[r]=t,r+"-"+t},[r,e])}function lS(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[u,f]of c){const p=i[u];p!=null&&(i[u]=p+r*f)}return i},{...e})}}const of=lS(1),mg=lS(-1);function pj(r){return"clientX"in r&&"clientY"in r}function iy(r){if(!r)return!1;const{KeyboardEvent:e}=Ni(r.target);return e&&r instanceof e}function gj(r){if(!r)return!1;const{TouchEvent:e}=Ni(r.target);return e&&r instanceof e}function gv(r){if(gj(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 pj(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}}}),ux="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function mj(r){return r.matches(ux)?r:r.querySelector(ux)}const vj={display:"none"};function yj(r){let{id:e,value:t}=r;return C.createElement("div",{id:e,style:vj},t)}function bj(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 C.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},t)}function xj(){const[r,e]=C.useState("");return{announce:C.useCallback(n=>{n!=null&&e(n)},[]),announcement:r}}const cS=C.createContext(null);function wj(r){const e=C.useContext(cS);C.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(r)},[r,e])}function Cj(){const[r]=C.useState(()=>new Set),e=C.useCallback(n=>(r.add(n),()=>r.delete(n)),[r]);return[C.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 Sj={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
|
-
`},_j={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 Aj(r){let{announcements:e=_j,container:t,hiddenTextDescribedById:n,screenReaderInstructions:o=Sj}=r;const{announce:i,announcement:a}=xj(),c=Vh("DndLiveRegion"),[u,f]=C.useState(!1);if(C.useEffect(()=>{f(!0)},[]),wj(C.useMemo(()=>({onDragStart(m){let{active:g}=m;i(e.onDragStart({active:g}))},onDragMove(m){let{active:g,over:b}=m;e.onDragMove&&i(e.onDragMove({active:g,over:b}))},onDragOver(m){let{active:g,over:b}=m;i(e.onDragOver({active:g,over:b}))},onDragEnd(m){let{active:g,over:b}=m;i(e.onDragEnd({active:g,over:b}))},onDragCancel(m){let{active:g,over:b}=m;i(e.onDragCancel({active:g,over:b}))}}),[i,e])),!u)return null;const p=C.createElement(C.Fragment,null,C.createElement(yj,{id:n,value:o.draggable}),C.createElement(bj,{id:c,announcement:a}));return t?Ls.createPortal(p,t):p}var So;(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"})(So||(So={}));function vg(){}function dx(r,e){return C.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function Ej(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>[...e].filter(n=>n!=null),[...e])}const va=Object.freeze({x:0,y:0});function Tj(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function Rj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return t-n}function kj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return n-t}function Ij(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function fx(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 Mj=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=fx(e,e.left,e.top),i=[];for(const a of n){const{id:c}=a,u=t.get(c);if(u){const f=Tj(fx(u),o);i.push({id:c,data:{droppableContainer:a,value:f}})}}return i.sort(Rj)};function Lj(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 u=e.width*e.height,f=r.width*r.height,p=a*c,m=p/(u+f-p);return Number(m.toFixed(4))}return 0}const Dj=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 u=Lj(c,e);u>0&&o.push({id:a,data:{droppableContainer:i,value:u}})}}return o.sort(kj)};function Oj(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function uS(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:va}function Nj(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 Pj=Nj(1);function Bj(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 Fj(r,e,t){const n=Bj(e);if(!n)return r;const{scaleX:o,scaleY:i,x:a,y:c}=n,u=r.left-a-(1-o)*parseFloat(t),f=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:f,right:u+p,bottom:f+m,left:u}}const jj={ignoreTransform:!1};function _f(r,e){e===void 0&&(e=jj);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:f,transformOrigin:p}=Ni(r).getComputedStyle(r);f&&(t=Fj(t,f,p))}const{top:n,left:o,width:i,height:a,bottom:c,right:u}=t;return{top:n,left:o,width:i,height:a,bottom:c,right:u}}function hx(r){return _f(r,{ignoreTransform:!0})}function zj(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Hj(r,e){return e===void 0&&(e=Ni(r).getComputedStyle(r)),e.position==="fixed"}function $j(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 sy(r,e){const t=[];function n(o){if(e!=null&&t.length>=e||!o)return t;if(ny(o)&&o.scrollingElement!=null&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!Uh(o)||aS(o)||t.includes(o))return t;const i=Ni(r).getComputedStyle(o);return o!==r&&$j(o,i)&&t.push(o),Hj(o,i)?t:n(o.parentNode)}return r?n(r):t}function dS(r){const[e]=sy(r,1);return e??null}function zm(r){return!Bg||!r?null:Cf(r)?r:ry(r)?ny(r)||r===Sf(r).scrollingElement?window:Uh(r)?r:null:null}function fS(r){return Cf(r)?r.scrollX:r.scrollLeft}function hS(r){return Cf(r)?r.scrollY:r.scrollTop}function mv(r){return{x:fS(r),y:hS(r)}}var Mo;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Mo||(Mo={}));function pS(r){return!Bg||!r?!1:r===document.scrollingElement}function gS(r){const e={x:0,y:0},t=pS(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 qj={x:.2,y:.2};function Uj(r,e,t,n,o){let{top:i,left:a,right:c,bottom:u}=t;n===void 0&&(n=10),o===void 0&&(o=qj);const{isTop:f,isBottom:p,isLeft:m,isRight:g}=gS(r),b={x:0,y:0},w={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!f&&i<=e.top+T.height?(b.y=Mo.Backward,w.y=n*Math.abs((e.top+T.height-i)/T.height)):!p&&u>=e.bottom-T.height&&(b.y=Mo.Forward,w.y=n*Math.abs((e.bottom-T.height-u)/T.height)),!g&&c>=e.right-T.width?(b.x=Mo.Forward,w.x=n*Math.abs((e.right-T.width-c)/T.width)):!m&&a<=e.left+T.width&&(b.x=Mo.Backward,w.x=n*Math.abs((e.left+T.width-a)/T.width)),{direction:b,speed:w}}function Wj(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 mS(r){return r.reduce((e,t)=>of(e,mv(t)),va)}function Vj(r){return r.reduce((e,t)=>e+fS(t),0)}function Gj(r){return r.reduce((e,t)=>e+hS(t),0)}function Yj(r,e){if(e===void 0&&(e=_f),!r)return;const{top:t,left:n,bottom:o,right:i}=e(r);dS(r)&&(o<=0||i<=0||t>=window.innerHeight||n>=window.innerWidth)&&r.scrollIntoView({block:"center",inline:"center"})}const Zj=[["x",["left","right"],Vj],["y",["top","bottom"],Gj]];class ay{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=sy(t),o=mS(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,a,c]of Zj)for(const u of a)Object.defineProperty(this,u,{get:()=>{const f=c(n),p=o[i]-f;return this.rect[u]+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 Kj(r){const{EventTarget:e}=Ni(r);return r instanceof e?r:Sf(r)}function Hm(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 px(r){r.preventDefault()}function Xj(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 vS={start:[un.Space,un.Enter],cancel:[un.Esc],end:[un.Space,un.Enter,un.Tab]},Jj=(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 ly{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&&Yj(n),t(va)}handleKeyDown(e){if(iy(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=vS,coordinateGetter:a=Jj,scrollBehavior:c="smooth"}=o,{code:u}=e;if(i.end.includes(u)){this.handleEnd(e);return}if(i.cancel.includes(u)){this.handleCancel(e);return}const{collisionRect:f}=n.current,p=f?{x:f.left,y:f.top}:va;this.referenceCoordinates||(this.referenceCoordinates=p);const m=a(e,{active:t,context:n.current,currentCoordinates:p});if(m){const g=mg(m,p),b={x:0,y:0},{scrollableAncestors:w}=n.current;for(const T of w){const A=e.code,{isTop:_,isRight:R,isLeft:D,isBottom:M,maxScroll:F,minScroll:B}=gS(T),z=Wj(T),j={x:Math.min(A===un.Right?z.right-z.width/2:z.right,Math.max(A===un.Right?z.left:z.left+z.width/2,m.x)),y:Math.min(A===un.Down?z.bottom-z.height/2:z.bottom,Math.max(A===un.Down?z.top:z.top+z.height/2,m.y))},G=A===un.Right&&!R||A===un.Left&&!D,fe=A===un.Down&&!M||A===un.Up&&!_;if(G&&j.x!==m.x){const P=T.scrollLeft+g.x,U=A===un.Right&&P<=F.x||A===un.Left&&P>=B.x;if(U&&!g.y){T.scrollTo({left:P,behavior:c});return}U?b.x=T.scrollLeft-P:b.x=A===un.Right?T.scrollLeft-F.x:T.scrollLeft-B.x,b.x&&T.scrollBy({left:-b.x,behavior:c});break}else if(fe&&j.y!==m.y){const P=T.scrollTop+g.y,U=A===un.Down&&P<=F.y||A===un.Up&&P>=B.y;if(U&&!g.x){T.scrollTo({top:P,behavior:c});return}U?b.y=T.scrollTop-P:b.y=A===un.Down?T.scrollTop-F.y:T.scrollTop-B.y,b.y&&T.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(e,of(mg(m,this.referenceCoordinates),b))}}}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()}}ly.activators=[{eventName:"onKeyDown",handler:(r,e,t)=>{let{keyboardCodes:n=vS,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 gx(r){return!!(r&&"distance"in r)}function mx(r){return!!(r&&"delay"in r)}class cy{constructor(e,t,n){var o;n===void 0&&(n=Kj(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=gv(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,px),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),this.windowListeners.add(Rs.ContextMenu,px),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(mx(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(gx(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,Xj,{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 u=(t=gv(e))!=null?t:va,f=mg(o,u);if(!n&&c){if(gx(c)){if(c.tolerance!=null&&Hm(f,c.tolerance))return this.handleCancel();if(Hm(f,c.distance))return this.handleStart()}if(mx(c)&&Hm(f,c.tolerance))return this.handleCancel();this.handlePending(c,f);return}e.cancelable&&e.preventDefault(),a(u)}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 Qj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class uy extends cy{constructor(e){const{event:t}=e,n=Sf(t.target);super(e,Qj,n)}}uy.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 ez={move:{name:"mousemove"},end:{name:"mouseup"}};var vv;(function(r){r[r.RightClick=2]="RightClick"})(vv||(vv={}));class tz extends cy{constructor(e){super(e,ez,Sf(e.event.target))}}tz.activators=[{eventName:"onMouseDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return t.button===vv.RightClick?!1:(n==null||n({event:t}),!0)}}];const $m={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class rz extends cy{constructor(e){super(e,$m)}static setup(){return window.addEventListener($m.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener($m.move.name,e)};function e(){}}}rz.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 yg;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(yg||(yg={}));function nz(r){let{acceleration:e,activator:t=vh.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:c=yg.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:p,delta:m,threshold:g}=r;const b=iz({delta:m,disabled:!i}),[w,T]=hj(),A=C.useRef({x:0,y:0}),_=C.useRef({x:0,y:0}),R=C.useMemo(()=>{switch(t){case vh.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case vh.DraggableRect:return o}},[t,o,u]),D=C.useRef(null),M=C.useCallback(()=>{const B=D.current;if(!B)return;const z=A.current.x*_.current.x,j=A.current.y*_.current.y;B.scrollBy(z,j)},[]),F=C.useMemo(()=>c===yg.TreeOrder?[...f].reverse():f,[c,f]);C.useEffect(()=>{if(!i||!f.length||!R){T();return}for(const B of F){if((n==null?void 0:n(B))===!1)continue;const z=f.indexOf(B),j=p[z];if(!j)continue;const{direction:G,speed:fe}=Uj(B,j,R,e,g);for(const P of["x","y"])b[P][G[P]]||(fe[P]=0,G[P]=0);if(fe.x>0||fe.y>0){T(),D.current=B,w(M,a),A.current=fe,_.current=G;return}}A.current={x:0,y:0},_.current={x:0,y:0},T()},[e,M,n,T,i,a,JSON.stringify(R),JSON.stringify(b),w,f,F,p,JSON.stringify(g)])}const oz={x:{[Mo.Backward]:!1,[Mo.Forward]:!1},y:{[Mo.Backward]:!1,[Mo.Forward]:!1}};function iz(r){let{delta:e,disabled:t}=r;const n=pv(e);return Wh(o=>{if(t||!n||!o)return oz;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 sz(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 az(r,e){return C.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 yv;(function(r){r.Optimized="optimized"})(yv||(yv={}));const vx=new Map;function lz(r,e){let{dragging:t,dependencies:n,config:o}=e;const[i,a]=C.useState(null),{frequency:c,measure:u,strategy:f}=o,p=C.useRef(r),m=A(),g=Nh(m),b=C.useCallback(function(_){_===void 0&&(_=[]),!g.current&&a(R=>R===null?_:R.concat(_.filter(D=>!R.includes(D))))},[g]),w=C.useRef(null),T=Wh(_=>{if(m&&!t)return vx;if(!_||_===vx||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 M=D.node.current,F=M?new ay(u(M),M):null;D.rect.current=F,F&&R.set(D.id,F)}return R}return _},[r,i,t,m,u]);return C.useEffect(()=>{p.current=r},[r]),C.useEffect(()=>{m||b()},[t,m]),C.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),C.useEffect(()=>{m||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{b(),w.current=null},c))},[c,m,b,...n]),{droppableRects:T,measureDroppableContainers:b,measuringScheduled:i!=null};function A(){switch(f){case vf.Always:return!1;case vf.BeforeDragging:return t;default:return!t}}}function yS(r,e){return Wh(t=>r?t||(typeof e=="function"?e(r):r):null,[e,r])}function cz(r,e){return yS(r,e)}function uz(r){let{callback:e,disabled:t}=r;const n=oy(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Fg(r){let{callback:e,disabled:t}=r;const n=oy(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function dz(r){return new ay(_f(r),r)}function yx(r,e,t){e===void 0&&(e=dz);const[n,o]=C.useState(null);function i(){o(u=>{if(!r)return null;if(r.isConnected===!1){var f;return(f=u??t)!=null?f:null}const p=e(r);return JSON.stringify(u)===JSON.stringify(p)?u:p})}const a=uz({callback(u){if(r)for(const f of u){const{type:p,target:m}=f;if(p==="childList"&&m instanceof HTMLElement&&m.contains(r)){i();break}}}}),c=Fg({callback:i});return il(()=>{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 fz(r){const e=yS(r);return uS(r,e)}const bx=[];function hz(r){const e=C.useRef(r),t=Wh(n=>r?n&&n!==bx&&r&&e.current&&r.parentNode===e.current.parentNode?n:sy(r):bx,[r]);return C.useEffect(()=>{e.current=r},[r]),t}function pz(r){const[e,t]=C.useState(null),n=C.useRef(r),o=C.useCallback(i=>{const a=zm(i.target);a&&t(c=>c?(c.set(a,mv(a)),new Map(c)):null)},[]);return C.useEffect(()=>{const i=n.current;if(r!==i){a(i);const c=r.map(u=>{const f=zm(u);return f?(f.addEventListener("scroll",o,{passive:!0}),[f,mv(f)]):null}).filter(u=>u!=null);t(c.length?new Map(c):null),n.current=r}return()=>{a(r),a(i)};function a(c){c.forEach(u=>{const f=zm(u);f==null||f.removeEventListener("scroll",o)})}},[o,r]),C.useMemo(()=>r.length?e?Array.from(e.values()).reduce((i,a)=>of(i,a),va):mS(r):va,[r,e])}function xx(r,e){e===void 0&&(e=[]);const t=C.useRef(null);return C.useEffect(()=>{t.current=null},e),C.useEffect(()=>{const n=r!==va;n&&!t.current&&(t.current=r),!n&&t.current&&(t.current=null)},[r]),t.current?mg(r,t.current):va}function gz(r){C.useEffect(()=>{if(!Bg)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 mz(r,e){return C.useMemo(()=>r.reduce((t,n)=>{let{eventName:o,handler:i}=n;return t[o]=a=>{i(a,e)},t},{}),[r,e])}function bS(r){return C.useMemo(()=>r?zj(r):null,[r])}const wx=[];function vz(r,e){e===void 0&&(e=_f);const[t]=r,n=bS(t?Ni(t):null),[o,i]=C.useState(wx);function a(){i(()=>r.length?r.map(u=>pS(u)?n:new ay(e(u),u)):wx)}const c=Fg({callback:a});return il(()=>{c==null||c.disconnect(),a(),r.forEach(u=>c==null?void 0:c.observe(u))},[r]),o}function yz(r){if(!r)return null;if(r.children.length>1)return r;const e=r.children[0];return Uh(e)?e:r}function bz(r){let{measure:e}=r;const[t,n]=C.useState(null),o=C.useCallback(f=>{for(const{target:p}of f)if(Uh(p)){n(m=>{const g=e(p);return m?{...m,width:g.width,height:g.height}:g});break}},[e]),i=Fg({callback:o}),a=C.useCallback(f=>{const p=yz(f);i==null||i.disconnect(),p&&(i==null||i.observe(p)),n(p?e(p):null)},[e,i]),[c,u]=gg(a);return C.useMemo(()=>({nodeRef:c,rect:t,setRef:u}),[t,c,u])}const xz=[{sensor:uy,options:{}},{sensor:ly,options:{}}],wz={current:{}},Kp={draggable:{measure:hx},droppable:{measure:hx,strategy:vf.WhileDragging,frequency:yv.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 Cz={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:vg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kp,measureDroppableContainers:vg,windowRect:null,measuringScheduled:!1},Sz={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vg,draggableNodes:new Map,over:null,measureDroppableContainers:vg},jg=C.createContext(Sz),xS=C.createContext(Cz);function _z(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yh}}}function Az(r,e){switch(e.type){case So.DragStart:return{...r,draggable:{...r.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case So.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 So.DragEnd:case So.DragCancel:return{...r,draggable:{...r.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case So.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 So.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 So.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 Ez(r){let{disabled:e}=r;const{active:t,activatorEvent:n,draggableNodes:o}=C.useContext(jg),i=pv(n),a=pv(t==null?void 0:t.id);return C.useEffect(()=>{if(!e&&!n&&i&&a!=null){if(!iy(i)||document.activeElement===i.target)return;const c=o.get(a);if(!c)return;const{activatorNode:u,node:f}=c;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const p of[u.current,f.current]){if(!p)continue;const m=mj(p);if(m){m.focus();break}}})}},[n,e,o,a,i]),null}function Tz(r,e){let{transform:t,...n}=e;return r!=null&&r.length?r.reduce((o,i)=>i({transform:o,...n}),t):t}function Rz(r){return C.useMemo(()=>({draggable:{...Kp.draggable,...r==null?void 0:r.draggable},droppable:{...Kp.droppable,...r==null?void 0:r.droppable},dragOverlay:{...Kp.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 kz(r){let{activeNode:e,measure:t,initialRect:n,config:o=!0}=r;const i=C.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;il(()=>{if(!a&&!c||!e){i.current=!1;return}if(i.current||!n)return;const f=e==null?void 0:e.node.current;if(!f||f.isConnected===!1)return;const p=t(f),m=uS(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=dS(f);g&&g.scrollBy({top:m.y,left:m.x})}},[e,a,c,n,t])}const wS=C.createContext({...va,scaleX:1,scaleY:1});var Nc;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Nc||(Nc={}));const Iz=C.memo(function(e){var t,n,o,i;let{id:a,accessibility:c,autoScroll:u=!0,children:f,sensors:p=xz,collisionDetection:m=Dj,measuring:g,modifiers:b,...w}=e;const T=C.useReducer(Az,void 0,_z),[A,_]=T,[R,D]=Cj(),[M,F]=C.useState(Nc.Uninitialized),B=M===Nc.Initialized,{draggable:{active:z,nodes:j,translate:G},droppable:{containers:fe}}=A,P=z!=null?j.get(z):null,U=C.useRef({initial:null,translated:null}),V=C.useMemo(()=>{var Dt;return z!=null?{id:z,data:(Dt=P==null?void 0:P.data)!=null?Dt:wz,rect:U}:null},[z,P]),Q=C.useRef(null),[se,te]=C.useState(null),[re,ne]=C.useState(null),be=Nh(w,Object.values(w)),ie=Vh("DndDescribedBy",a),de=C.useMemo(()=>fe.getEnabled(),[fe]),me=Rz(g),{droppableRects:Ae,measureDroppableContainers:De,measuringScheduled:oe}=lz(de,{dragging:B,dependencies:[G.x,G.y],config:me.droppable}),ge=sz(j,z),we=C.useMemo(()=>re?gv(re):null,[re]),Le=Ft(),Ce=cz(ge,me.draggable.measure);kz({activeNode:z!=null?j.get(z):null,config:Le.layoutShiftCompensation,initialRect:Ce,measure:me.draggable.measure});const Se=yx(ge,me.draggable.measure,Ce),Ie=yx(ge?ge.parentElement:null),et=C.useRef({activatorEvent:null,active:null,activeNode:ge,collisionRect:null,collisions:null,droppableRects:Ae,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:fe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Je=fe.getNodeFor((t=et.current.over)==null?void 0:t.id),Qe=bz({measure:me.dragOverlay.measure}),Ze=(n=Qe.nodeRef.current)!=null?n:ge,Ke=B?(o=Qe.rect)!=null?o:Se:null,ht=!!(Qe.nodeRef.current&&Qe.rect),Pe=fz(ht?null:Se),Ne=bS(Ze?Ni(Ze):null),Xe=hz(B?Je??ge:null),We=vz(Xe),Ve=Tz(b,{transform:{x:G.x-Pe.x,y:G.y-Pe.y,scaleX:1,scaleY:1},activatorEvent:re,active:V,activeNodeRect:Se,containerNodeRect:Ie,draggingNodeRect:Ke,over:et.current.over,overlayNodeRect:Qe.rect,scrollableAncestors:Xe,scrollableAncestorRects:We,windowRect:Ne}),at=we?of(we,G):null,lt=pz(Xe),Oe=xx(lt),st=xx(lt,[Se]),mt=of(Ve,Oe),ut=Ke?Pj(Ke,Ve):null,Lt=V&&ut?m({active:V,collisionRect:ut,droppableRects:Ae,droppableContainers:de,pointerCoordinates:at}):null,Bt=Ij(Lt,"id"),[Pt,Xt]=C.useState(null),ar=ht?Ve:of(Ve,st),Kt=Oj(ar,(i=Pt==null?void 0:Pt.rect)!=null?i:null,Se),cr=C.useRef(null),Te=C.useCallback((Dt,Ht)=>{let{sensor:Ue,options:dt}=Ht;if(Q.current==null)return;const yt=j.get(Q.current);if(!yt)return;const Et=Dt.nativeEvent,Nt=new Ue({active:Q.current,activeNode:yt,event:Et,options:dt,context:et,onAbort(St){if(!j.get(St))return;const{onDragAbort:tr}=be.current,Ut={id:St};tr==null||tr(Ut),R({type:"onDragAbort",event:Ut})},onPending(St,jt,tr,Ut){if(!j.get(St))return;const{onDragPending:Nr}=be.current,pr={id:St,constraint:jt,initialCoordinates:tr,offset:Ut};Nr==null||Nr(pr),R({type:"onDragPending",event:pr})},onStart(St){const jt=Q.current;if(jt==null)return;const tr=j.get(jt);if(!tr)return;const{onDragStart:Ut}=be.current,br={activatorEvent:Et,active:{id:jt,data:tr.data,rect:U}};Ls.unstable_batchedUpdates(()=>{Ut==null||Ut(br),F(Nc.Initializing),_({type:So.DragStart,initialCoordinates:St,active:jt}),R({type:"onDragStart",event:br}),te(cr.current),ne(Et)})},onMove(St){_({type:So.DragMove,coordinates:St})},onEnd:rt(So.DragEnd),onCancel:rt(So.DragCancel)});cr.current=Nt;function rt(St){return async function(){const{active:tr,collisions:Ut,over:br,scrollAdjustedTranslate:Nr}=et.current;let pr=null;if(tr&&Nr){const{cancelDrop:pe}=be.current;pr={activatorEvent:Et,active:tr,collisions:Ut,delta:Nr,over:br},St===So.DragEnd&&typeof pe=="function"&&await Promise.resolve(pe(pr))&&(St=So.DragCancel)}Q.current=null,Ls.unstable_batchedUpdates(()=>{_({type:St}),F(Nc.Uninitialized),Xt(null),te(null),ne(null),cr.current=null;const pe=St===So.DragEnd?"onDragEnd":"onDragCancel";if(pr){const pt=be.current[pe];pt==null||pt(pr),R({type:pe,event:pr})}})}}},[j]),ae=C.useCallback((Dt,Ht)=>(Ue,dt)=>{const yt=Ue.nativeEvent,Et=j.get(dt);if(Q.current!==null||!Et||yt.dndKit||yt.defaultPrevented)return;const Nt={active:Et};Dt(Ue,Ht.options,Nt)===!0&&(yt.dndKit={capturedBy:Ht.sensor},Q.current=dt,Te(Ue,Ht))},[j,Te]),it=az(p,ae);gz(p),il(()=>{Se&&M===Nc.Initializing&&F(Nc.Initialized)},[Se,M]),C.useEffect(()=>{const{onDragMove:Dt}=be.current,{active:Ht,activatorEvent:Ue,collisions:dt,over:yt}=et.current;if(!Ht||!Ue)return;const Et={active:Ht,activatorEvent:Ue,collisions:dt,delta:{x:mt.x,y:mt.y},over:yt};Ls.unstable_batchedUpdates(()=>{Dt==null||Dt(Et),R({type:"onDragMove",event:Et})})},[mt.x,mt.y]),C.useEffect(()=>{const{active:Dt,activatorEvent:Ht,collisions:Ue,droppableContainers:dt,scrollAdjustedTranslate:yt}=et.current;if(!Dt||Q.current==null||!Ht||!yt)return;const{onDragOver:Et}=be.current,Nt=dt.get(Bt),rt=Nt&&Nt.rect.current?{id:Nt.id,rect:Nt.rect.current,data:Nt.data,disabled:Nt.disabled}:null,St={active:Dt,activatorEvent:Ht,collisions:Ue,delta:{x:yt.x,y:yt.y},over:rt};Ls.unstable_batchedUpdates(()=>{Xt(rt),Et==null||Et(St),R({type:"onDragOver",event:St})})},[Bt]),il(()=>{et.current={activatorEvent:re,active:V,activeNode:ge,collisionRect:ut,collisions:Lt,droppableRects:Ae,draggableNodes:j,draggingNode:Ze,draggingNodeRect:Ke,droppableContainers:fe,over:Pt,scrollableAncestors:Xe,scrollAdjustedTranslate:mt},U.current={initial:Ke,translated:ut}},[V,ge,Lt,ut,j,Ze,Ke,Ae,fe,Pt,Xe,mt]),nz({...Le,delta:G,draggingRect:ut,pointerCoordinates:at,scrollableAncestors:Xe,scrollableAncestorRects:We});const bt=C.useMemo(()=>({active:V,activeNode:ge,activeNodeRect:Se,activatorEvent:re,collisions:Lt,containerNodeRect:Ie,dragOverlay:Qe,draggableNodes:j,droppableContainers:fe,droppableRects:Ae,over:Pt,measureDroppableContainers:De,scrollableAncestors:Xe,scrollableAncestorRects:We,measuringConfiguration:me,measuringScheduled:oe,windowRect:Ne}),[V,ge,Se,re,Lt,Ie,Qe,j,fe,Ae,Pt,De,Xe,We,me,oe,Ne]),qt=C.useMemo(()=>({activatorEvent:re,activators:it,active:V,activeNodeRect:Se,ariaDescribedById:{draggable:ie},dispatch:_,draggableNodes:j,over:Pt,measureDroppableContainers:De}),[re,it,V,Se,_,ie,j,Pt,De]);return C.createElement(cS.Provider,{value:D},C.createElement(jg.Provider,{value:qt},C.createElement(xS.Provider,{value:bt},C.createElement(wS.Provider,{value:Kt},f)),C.createElement(Ez,{disabled:(c==null?void 0:c.restoreFocus)===!1})),C.createElement(Aj,{...c,hiddenTextDescribedById:ie}));function Ft(){const Dt=(se==null?void 0:se.autoScrollEnabled)===!1,Ht=typeof u=="object"?u.enabled===!1:u===!1,Ue=B&&!Dt&&!Ht;return typeof u=="object"?{...u,enabled:Ue}:{enabled:Ue}}}),Mz=C.createContext(null),Cx="button",Lz="Draggable";function Dz(r){let{id:e,data:t,disabled:n=!1,attributes:o}=r;const i=Vh(Lz),{activators:a,activatorEvent:c,active:u,activeNodeRect:f,ariaDescribedById:p,draggableNodes:m,over:g}=C.useContext(jg),{role:b=Cx,roleDescription:w="draggable",tabIndex:T=0}=o??{},A=(u==null?void 0:u.id)===e,_=C.useContext(A?wS:Mz),[R,D]=gg(),[M,F]=gg(),B=mz(a,e),z=Nh(t);il(()=>(m.set(e,{id:e,key:i,node:R,activatorNode:M,data:z}),()=>{const G=m.get(e);G&&G.key===i&&m.delete(e)}),[m,e]);const j=C.useMemo(()=>({role:b,tabIndex:T,"aria-disabled":n,"aria-pressed":A&&b===Cx?!0:void 0,"aria-roledescription":w,"aria-describedby":p.draggable}),[n,b,T,A,w,p.draggable]);return{active:u,activatorEvent:c,activeNodeRect:f,attributes:j,isDragging:A,listeners:n?void 0:B,node:R,over:g,setNodeRef:D,setActivatorNodeRef:F,transform:_}}function Oz(){return C.useContext(xS)}const Nz="Droppable",Pz={timeout:25};function Bz(r){let{data:e,disabled:t=!1,id:n,resizeObserverConfig:o}=r;const i=Vh(Nz),{active:a,dispatch:c,over:u,measureDroppableContainers:f}=C.useContext(jg),p=C.useRef({disabled:t}),m=C.useRef(!1),g=C.useRef(null),b=C.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:A}={...Pz,...o},_=Nh(T??n),R=C.useCallback(()=>{if(!m.current){m.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{f(Array.isArray(_.current)?_.current:[_.current]),b.current=null},A)},[A]),D=Fg({callback:R,disabled:w||!a}),M=C.useCallback((j,G)=>{D&&(G&&(D.unobserve(G),m.current=!1),j&&D.observe(j))},[D]),[F,B]=gg(M),z=Nh(e);return C.useEffect(()=>{!D||!F.current||(D.disconnect(),m.current=!1,D.observe(F.current))},[F,D]),C.useEffect(()=>(c({type:So.RegisterDroppable,element:{id:n,key:i,disabled:t,node:F,rect:g,data:z}}),()=>c({type:So.UnregisterDroppable,key:i,id:n})),[n]),C.useEffect(()=>{t!==p.current.disabled&&(c({type:So.SetDroppableDisabled,id:n,key:i,disabled:t}),p.current.disabled=t)},[n,i,t,c]),{active:a,rect:g,isOver:(u==null?void 0:u.id)===n,node:F,over:u,setNodeRef:B}}function CS(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 Fz=r=>{let{containerNodeRect:e,draggingNodeRect:t,transform:n}=r;return!t||!e?n:CS(n,t,e)},jz=r=>{let{transform:e,draggingNodeRect:t,windowRect:n}=r;return!t||!n?e:CS(e,t,n)};function bg(r,e,t){const n=r.slice();return n.splice(t<0?n.length+t:t,0,n.splice(e,1)[0]),n}function zz(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 Hz(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 $z(r){return typeof r=="boolean"?{draggable:r,droppable:r}:r}const SS=r=>{let{rects:e,activeIndex:t,overIndex:n,index:o}=r;const i=bg(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},qz=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 f=i[a];return f?{x:0,y:t<a?f.top+f.height-(c.top+c.height):f.top-c.top,...Pp}:null}const u=Uz(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-u,...Pp}:o<t&&o>=a?{x:0,y:c.height+u,...Pp}:{x:0,y:0,...Pp}};function Uz(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 _S="Sortable",AS=C.createContext({activeIndex:-1,containerId:_S,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:SS,disabled:{draggable:!1,droppable:!1}});function Wz(r){let{children:e,id:t,items:n,strategy:o=SS,disabled:i=!1}=r;const{active:a,dragOverlay:c,droppableRects:u,over:f,measureDroppableContainers:p}=Oz(),m=Vh(_S,t),g=c.rect!==null,b=C.useMemo(()=>n.map(B=>typeof B=="object"&&"id"in B?B.id:B),[n]),w=a!=null,T=a?b.indexOf(a.id):-1,A=f?b.indexOf(f.id):-1,_=C.useRef(b),R=!Hz(b,_.current),D=A!==-1&&T===-1||R,M=$z(i);il(()=>{R&&w&&p(b)},[R,b,w,p]),C.useEffect(()=>{_.current=b},[b]);const F=C.useMemo(()=>({activeIndex:T,containerId:m,disabled:M,disableTransforms:D,items:b,overIndex:A,useDragOverlay:g,sortedRects:zz(b,u),strategy:o}),[T,m,M.draggable,M.droppable,D,b,A,u,g,o]);return C.createElement(AS.Provider,{value:F},e)}const Vz=r=>{let{id:e,items:t,activeIndex:n,overIndex:o}=r;return bg(t,n,o).indexOf(e)},Gz=r=>{let{containerId:e,isSorting:t,wasDragging:n,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:u,transition:f}=r;return!f||!n||c!==i&&o===a?!1:t?!0:a!==o&&e===u},Yz={duration:200,easing:"ease"},ES="transform",Zz=Ph.Transition.toString({property:ES,duration:0,easing:"linear"}),Kz={roleDescription:"sortable"};function Xz(r){let{disabled:e,index:t,node:n,rect:o}=r;const[i,a]=C.useState(null),c=C.useRef(t);return il(()=>{if(!e&&t!==c.current&&n.current){const u=o.current;if(u){const f=_f(n.current,{ignoreTransform:!0}),p={x:u.left-f.left,y:u.top-f.top,scaleX:u.width/f.width,scaleY:u.height/f.height};(p.x||p.y)&&a(p)}}t!==c.current&&(c.current=t)},[e,t,n,o]),C.useEffect(()=>{i&&a(null)},[i]),i}function Jz(r){let{animateLayoutChanges:e=Gz,attributes:t,disabled:n,data:o,getNewIndex:i=Vz,id:a,strategy:c,resizeObserverConfig:u,transition:f=Yz}=r;const{items:p,containerId:m,activeIndex:g,disabled:b,disableTransforms:w,sortedRects:T,overIndex:A,useDragOverlay:_,strategy:R}=C.useContext(AS),D=Qz(n,b),M=p.indexOf(a),F=C.useMemo(()=>({sortable:{containerId:m,index:M,items:p},...o}),[m,o,M,p]),B=C.useMemo(()=>p.slice(p.indexOf(a)),[p,a]),{rect:z,node:j,isOver:G,setNodeRef:fe}=Bz({id:a,data:F,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...u}}),{active:P,activatorEvent:U,activeNodeRect:V,attributes:Q,setNodeRef:se,listeners:te,isDragging:re,over:ne,setActivatorNodeRef:be,transform:ie}=Dz({id:a,data:F,attributes:{...Kz,...t},disabled:D.draggable}),de=fj(fe,se),me=!!P,Ae=me&&!w&&Np(g)&&Np(A),De=!_&&re,oe=De&&Ae?ie:null,we=Ae?oe??(c??R)({rects:T,activeNodeRect:V,activeIndex:g,overIndex:A,index:M}):null,Le=Np(g)&&Np(A)?i({id:a,items:p,activeIndex:g,overIndex:A}):M,Ce=P==null?void 0:P.id,Se=C.useRef({activeId:Ce,items:p,newIndex:Le,containerId:m}),Ie=p!==Se.current.items,et=e({active:P,containerId:m,isDragging:re,isSorting:me,id:a,index:M,items:p,newIndex:Se.current.newIndex,previousItems:Se.current.items,previousContainerId:Se.current.containerId,transition:f,wasDragging:Se.current.activeId!=null}),Je=Xz({disabled:!et,index:M,node:j,rect:z});return C.useEffect(()=>{me&&Se.current.newIndex!==Le&&(Se.current.newIndex=Le),m!==Se.current.containerId&&(Se.current.containerId=m),p!==Se.current.items&&(Se.current.items=p)},[me,Le,m,p]),C.useEffect(()=>{if(Ce===Se.current.activeId)return;if(Ce!=null&&Se.current.activeId==null){Se.current.activeId=Ce;return}const Ze=setTimeout(()=>{Se.current.activeId=Ce},50);return()=>clearTimeout(Ze)},[Ce]),{active:P,activeIndex:g,attributes:Q,data:F,rect:z,index:M,newIndex:Le,items:p,isOver:G,isSorting:me,isDragging:re,listeners:te,node:j,overIndex:A,over:ne,setNodeRef:de,setActivatorNodeRef:be,setDroppableNodeRef:fe,setDraggableNodeRef:se,transform:Je??we,transition:Qe()};function Qe(){if(Je||Ie&&Se.current.newIndex===M)return Zz;if(!(De&&!iy(U)||!f)&&(me||et))return Ph.Transition.toString({...f,property:ES})}}function Qz(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 xg(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=xg(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 TS(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>t.push(e(n,o))),t}function RS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!RS(t.children,e))return!1}return!0}function eH(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>{e(n,o)&&t.push(n)}),t}function tH(r){Array.isArray(r)||(r=[r]);let e=0;return Gh(r,()=>e++),e}function rH(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const o=xg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(u=>n(u,e))}),i=xg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(u=>n(u,t))});if(o===void 0&&i===void 0){const a=r.findIndex(u=>n(u,e)),c=r.findIndex(u=>n(u,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(u=>n(u,e)),c=o.children.findIndex(u=>n(u,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 nH(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 oH(r,e,t){Array.isArray(r)||(r=[r]);const n=TS(r,a=>a),o=[],i=[...e];for(;i.length>0;){const a=i.shift();if(!a||o.find(u=>t(u,a)))continue;o.push(a);const c=n.find(u=>{var f;return(f=u.children)==null?void 0:f.some(p=>t(p,a))});c&&i.push(c)}return o}const Pc={find:xg,forEach:Gh,map:TS,every:RS,filter:eH,length:tH,replace:rH,descendants:nH,ancestors:oH},iH="_AWrap_1mpkv_1",sH="_AContainer_1mpkv_10",aH="_ATree_1mpkv_18",lH="_ATreeBody_1mpkv_30",cH="_TreeTopAddon_1mpkv_36",uH="_CoverBorder_1mpkv_46",dH="_InsertBorder_1mpkv_55",fH="_ATreeHeader_1mpkv_86",hH="_ATreeBodyHeader_1mpkv_92",pH="_ATreeBodyHeaderResources_1mpkv_102",gH="_ATreeItem_1mpkv_108",mH="_IsSelectUsed_1mpkv_124",vH="_IsSelected_1mpkv_127",yH="_IsSearchSelected_1mpkv_132",bH="_IsHovered_1mpkv_143",xH="_CheckBox_1mpkv_147",wH="_Indents_1mpkv_159",CH="_ExpandIcon_1mpkv_166",SH="_Content_1mpkv_178",_H="_RightSticky_1mpkv_187",AH="_SearchInputWrap_1mpkv_196",EH="_SearchInput_1mpkv_196",TH="_RightAddon_1mpkv_208",RH="_RightAddonIcon_1mpkv_219",kH="_Loader_1mpkv_226",IH="_IsChildOfDragSource_1mpkv_231",mn={AWrap:iH,AContainer:sH,ATree:aH,ATreeBody:lH,TreeTopAddon:cH,CoverBorder:uH,InsertBorder:dH,ATreeHeader:fH,ATreeBodyHeader:hH,ATreeBodyHeaderResources:pH,ATreeItem:gH,IsSelectUsed:mH,IsSelected:vH,IsSearchSelected:yH,IsHovered:bH,CheckBox:xH,Indents:wH,ExpandIcon:CH,Content:SH,RightSticky:_H,SearchInputWrap:AH,SearchInput:EH,RightAddon:TH,RightAddonIcon:RH,Loader:kH,IsChildOfDragSource:IH},MH=r=>{const{isEqual:e,item:t,itemId:n,selectDisabled:o,selectUnused:i,isParentDisabled:a,indents:c,extIndents:u,useExpand:f,useSelect:p,useSearch:m,showCheckbox:g,icons:b,iconWidth:w,isSelectMulti:T,isDraggable:A,isParentCheckHovered:_,hoverdItem:R,onMouseOver:D,onMouseLeave:M,ContentRenderer:F,TreeItemRenderer:B,RightStickyAddon:z,resources:j,containerRef:G,TreeItemStyle:fe,TreeItemClassName:P,searchItemStyle:U,searchItemClassName:V,height:Q,isDragSrcItem:se,isChildOfDragItem:te,getItemId:re,treeItemTooltip:ne,treeItemTooltipDelay:be,treeItemTooltipDirection:ie,treeItemTooltipDistance:de}=r,{children:me}=C.useMemo(()=>t,[t]),[Ae,De]=C.useMemo(()=>f,[f]),[oe,ge]=C.useMemo(()=>p,[p]),[we,Le]=C.useMemo(()=>m,[m]),Ce=C.useMemo(()=>i?i(t):!1,[i,t]),Se=C.useMemo(()=>!o||a?a:o(t),[o,a,t]),Ie=C.useMemo(()=>Ae.some(rt=>e(rt,t)),[Ae,e,t]),et=C.useMemo(()=>!me||me.length<1?"noChild":Ie?"expanded":"collapsed",[me,Ie]),Je=C.useMemo(()=>Er.getContent(b,r),[b,r]),Qe=C.useMemo(()=>{const rt=Je==null?void 0:Je[et];return Cv.includes(rt)?S.jsx(en,{icon:rt,style:{width:w,height:w}}):rt},[Je,w,et]),Ze=C.useCallback(rt=>{!De||et==="noChild"||(De(Ie?Ae.filter(St=>!e(St,t)):[...Ae,t]),rt.stopPropagation())},[De,Ae,Ie,t,e,et]),Ke=C.useMemo(()=>oe.some(rt=>e(rt,t)),[oe,e,t]),ht=C.useCallback(()=>{!ge||Se||(ge(T?Ke?oe.filter(rt=>!e(rt,t)):[...oe,t]:[t]),we&&Le&&we.items.some(rt=>e(rt,t))&&Le({...we,item:t}))},[T,Se,Ke,we,Le,ge,e,oe,t]),Pe=C.useMemo(()=>we==null?void 0:we.items.some(rt=>e(rt,t)),[we,e,t]),Ne=C.useMemo(()=>Pe&&(we==null?void 0:we.item)&&e(we.item,t),[Pe,we,e,t]),Xe=C.useRef(null),We=C.useRef(null),{attributes:Ve,listeners:at,setNodeRef:lt,transform:Oe,transition:st,isDragging:mt}=Jz({id:n||`item-${JSON.stringify(t)}`,disabled:!A||!!a||!n}),ut=C.useMemo(()=>te?te(t):!1,[te,t]),Lt=C.useMemo(()=>{const rt=Oe?{transform:Ph.Transform.toString(Oe),transition:st,opacity:mt?.5:1,zIndex:mt?1:"auto"}:{};return se||ut?{...rt,opacity:.5,zIndex:10}:rt},[Oe,st,mt,se,ut]);C.useEffect(()=>{n&<&&We.current&<(We.current)},[n,lt]),C.useEffect(()=>{setTimeout(()=>{if(Ne&&Xe.current&&G.current){const{top:rt,bottom:St}=Xe.current.getBoundingClientRect(),{top:jt,bottom:tr}=G.current.getBoundingClientRect();(rt<jt||St>tr)&&Xe.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[G,Ne]);const[Bt,Pt]=C.useState(!1),Xt=C.useCallback(()=>!Se&&Pt(!0),[Se]),ar=C.useCallback(()=>!Se&&Pt(!1),[Se]),Kt=C.useMemo(()=>Pc.map(t,rt=>rt).filter(rt=>!(o!=null&&o(rt))&&!(i!=null&&i(rt))),[o,i,t]),cr=C.useMemo(()=>!g||!T?!1:Ke&&Kt.some(rt=>oe.some(St=>e(rt,St)))&&Kt.some(rt=>!oe.some(St=>e(rt,St))),[g,T,Ke,Kt,e,oe]),Te=C.useMemo(()=>g?T?Kt.every(rt=>oe.some(St=>e(rt,St))):oe.some(rt=>e(rt,t)):!1,[g,T,Kt,t,e,oe]),ae=C.useCallback(()=>{if(!(!ge||Se))if(T)if(Ke){const rt=oe.filter(St=>!(i!=null&&i(St))&&!(o!=null&&o(St))&&Kt.some(jt=>e(jt,St)));rt.length>0&&ge(oe.filter(St=>!rt.some(jt=>e(St,jt))))}else{const rt=Kt.filter(St=>!(i!=null&&i(St))&&!(o!=null&&o(St))&&!oe.some(jt=>e(jt,St)));rt.length>0&&ge([...oe,...rt])}else ge([t])},[Se,o,i,T,ge,e,Ke,oe,Kt,t]),it=C.useCallback(rt=>{Se||ae(),rt.stopPropagation()},[Se,ae]),bt=C.useMemo(()=>{if(!g||!T||Se)return"";if(Ke){const St=oe.filter(jt=>!(i!=null&&i(jt))&&!(o!=null&&o(jt))&&Kt.some(tr=>e(tr,jt)));if(St.length>0)return j["deselect n"](St.length)}const rt=Kt.filter(St=>!(i!=null&&i(St))&&!(o!=null&&o(St))&&!oe.some(jt=>e(jt,St)));return j["select n"](rt.length)},[o,i,j,Se,g,T,Ke,Kt,e,oe]),qt=C.useMemo(()=>Er.getContent(z,r),[z,r]),Ft=C.useMemo(()=>Er.getContent(fe,r),[r,fe]),Dt=C.useMemo(()=>Er.getContent(P,r),[r,P]),Ht=C.useMemo(()=>Er.getContent(V,r),[r,V]),Ue=C.useMemo(()=>Er.getContent(U,r),[r,U]),dt=C.useMemo(()=>Er.getContent(ne,r),[r,ne]),yt=C.useMemo(()=>Er.getContent(be,r),[r,be]),Et=C.useMemo(()=>Er.getContent(ie,r),[r,ie]),Nt=C.useMemo(()=>Er.getContent(de,r),[r,de]);return S.jsxs(C.Fragment,{children:[S.jsxs(Yr,{abaseRef:We,isDisabled:Se,className:Ye.clsx(mn.ATreeItem,Ke&&mn.IsSelected,!Se&&(Bt||_)&&mn.IsHovered,Pe&&mn.IsSearched,Ne&&(Ht||mn.IsSearchSelected),!Ce&&mn.IsSelectUsed,ut&&mn.IsChildOfDragSource,"NoSelect",Dt),style:{...Ft,...Ne&&Ue?Ue:{},"--ATreeItem_height":`${Q}px`,...Lt||{}},onClick:ht,onMouseLeave:rt=>M==null?void 0:M(rt,t),onMouseOver:rt=>D==null?void 0:D(rt,t),...A&&!Se&&Ve?Ve:{},...A&&!Se&&at?at:{},tooltip:dt,tooltipDelay:yt,tooltipDirection:Et,tooltipDistance:Nt,children:[g&&S.jsx(af,{className:mn.CheckBox,isDisabled:Se,isIndeterminate:cr,tooltip:bt,useCheck:[+Te,ae],style:{visibility:Se||Ce?"hidden":"visible",zIndex:Se||Ce?0:2},onClick:it,onMouseOut:ar,onMouseOver:Xt}),S.jsx("div",{className:mn.Indents,style:{paddingLeft:g?0:Je!=null&&Je.noChild?12:0},children:c.map((rt,St)=>{const jt=St===c.length-1;return S.jsx(hC,{value:rt,map:{Collapsed:u?u({iconWidth:w}).collapsed:S.jsx(DH,{iconWidth:w}),Expanded:u?u({iconWidth:w,isLast:jt}).expanded:S.jsx(LH,{iconWidth:w,isLast:jt}),IsLast:u?u({iconWidth:w}).isLast:S.jsx(OH,{iconWidth:w})}},St)})}),Qe&&S.jsx("div",{className:mn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:Ze,children:Qe}),S.jsx("div",{className:Ye.clsx(mn.Content,"NoSelect"),children:S.jsx(F,{containerRef:G,ContentRenderer:F,extIndents:u,height:Q,hoverdItem:R,icons:b,iconWidth:w,indents:c,isDraggable:A,isEqual:e,isParentCheckHovered:T&&(Bt||_),isSelectMulti:T,item:t,itemId:n,resources:j,RightStickyAddon:z,searchItemClassName:Ht,searchItemStyle:U,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:fe,treeItemTooltip:ne,treeItemTooltipDelay:be,treeItemTooltipDirection:ie,treeItemTooltipDistance:de,useExpand:f,useSearch:m,useSelect:p,onMouseLeave:M,onMouseOver:D})}),qt&&S.jsx("div",{className:mn.RightSticky,children:qt})]}),Ie&&(me==null?void 0:me.map((rt,St)=>S.jsx(B,{containerRef:G,ContentRenderer:F,extIndents:u,height:Q,hoverdItem:R,icons:b,iconWidth:w,isChildOfDragItem:te,isDraggable:A,isDragSrcItem:se,isEqual:e,isParentCheckHovered:T&&(Bt||_),isSelectMulti:T,item:rt,itemId:re?`${re(t)}-child-${St}`:n?`${n}-child-${St}`:void 0,resources:j,RightStickyAddon:z,searchItemClassName:Ht,searchItemStyle:U,selectDisabled:o,selectUnused:i,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:fe,treeItemTooltip:ne,treeItemTooltipDelay:be,treeItemTooltipDirection:ie,treeItemTooltipDistance:de,useExpand:f,useSearch:m,useSelect:p,indents:[...c.map(jt=>jt==="IsLast"?"Collapsed":jt),St===me.length-1?"IsLast":"Expanded"],onMouseLeave:M,onMouseOver:D},re?re(rt):St)))]})},LH=({iconWidth:r,isLast:e})=>S.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&&S.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),DH=({iconWidth:r})=>S.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),OH=({iconWidth:r})=>S.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)"}}),NH=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:o,searchDown:i,searchEnter:a,isDisabled:c,isLoading:u,resources:f,maxLength:p,autoFocus:m}=r,g=C.useCallback(T=>{T.key==="Enter"?a():T.key==="ArrowDown"?i():T.key==="ArrowUp"&&o(),T.preventDefault(),T.stopPropagation()},[i,a,o]),b=C.useCallback(T=>{n(T)},[n]),w=C.useMemo(()=>c||u?-1:void 0,[c,u]);return S.jsx(Gc,{autoFocus:m,className:mn.SearchInput,isDisabled:c,maxLength:p,placeholder:f["Search(Placeholder)"],tabIndex:w,useValue:[(t==null?void 0:t.keyword)??"",b],RightAddon:S.jsx(PH,{isEqual:e,resources:f,searchDown:i,searchEnter:a,searchResult:t,searchUp:o}),wrapProps:{className:mn.SearchInputWrap},onKeyDown:g})},PH=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:o,searchEnter:i,resources:a}=r,c=C.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(w=>t.item&&e(w,t.item))+1,[t,e]),u=C.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),f=C.useMemo(()=>c<2,[c]),p=C.useMemo(()=>c>=u,[c,u]),m=C.useCallback(w=>{w.stopPropagation(),!f&&n()},[n,f]),g=C.useCallback(w=>{w.stopPropagation(),!p&&o()},[o,p]),b=C.useCallback(w=>{w.stopPropagation(),i()},[i]);return S.jsx("div",{className:Ye.clsx(mn.RightAddon,"NoSelect"),children:t?S.jsxs(S.Fragment,{children:[c,"/",u,S.jsx(Yr,{isDisabled:f,onClick:m,children:S.jsx(en,{className:mn.RightAddonIcon,icon:"ArrowUp",mask:""})}),S.jsx(Yr,{isDisabled:p,onClick:g,children:S.jsx(en,{className:mn.RightAddonIcon,icon:"ArrowDown"})})]}):S.jsx(ho,{className:mn.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:b})})},BH=r=>{var It;const{pk:e,selectDisabled:t,selectUnused:n,useItems:o,useExpand:i,useSelect:a,useSearch:c,showCheckbox:u,iconWidth:f=24,icons:p={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:m,isSelectMulti:g=!1,noSearch:b=!1,isDraggable:w,noSyncSearchSelect:T=!1,actionRef:A,placeholder:_,searchPredicate:R=jH,isDisabled:D,isLoading:M,ContentRenderer:F=FH,TreeItemRenderer:B=MH,RightStickyAddon:z,TopRightAddon:j,TreeTopAddon:G,resources:fe,maxLength:P,autoFocus:U,TreeHeaderStyle:V,TreeHeaderClassName:Q,TreeItemStyle:se,TreeItemClassName:te,OverflowPadding:re,insertBorder:ne,width:be,searchItemClassName:ie,searchItemStyle:de,height:me=40,treeItemTooltip:Ae,treeItemTooltipDelay:De,treeItemTooltipDirection:oe,treeItemTooltipDistance:ge,...we}=r,Le=C.useMemo(()=>({...wr.ATree,...fe}),[fe]),Ce=C.useCallback((je,Ee)=>!je||!Ee?!1:e!==void 0?Array.isArray(e)?e.every(qe=>je&&Ee&&je[qe]!==void 0&&Ee[qe]!==void 0&&Za.isEqual(je[qe],Ee[qe])):je&&Ee&&je[e]!==void 0&&Ee[e]!==void 0&&Za.isEqual(je[e],Ee[e]):Za.isEqual(je,Ee),[e]),Se=C.useRef(null),[Ie,et]=vn(o,[]),Je=C.useMemo(()=>Pc.map(Ie,je=>je),[Ie]),[Qe,Ze]=vn(i,[]),[Ke,ht]=vn(a,[]),[Pe,Ne]=vn(c,void 0),Xe=C.useCallback(je=>{if(D||!Ze||Qe.some(Tt=>Ce(Tt,je)))return;const Ee=[];let qe=je;for(;qe;){const Tt=qe;Qe.find($t=>Ce($t,Tt))||Ee.push(Tt),qe=Je.find($t=>{var _t;return(_t=$t.children)==null?void 0:_t.some(he=>Ce(he,Tt))})}Ze([...Qe,...Ee])},[Qe,D,Ce,Ze,Je]),We=C.useCallback(()=>{!Ze||D||Ze([...Je])},[Je,D,Ze]),Ve=C.useCallback(()=>{!Ze||D||Ze([])},[Ze,D]),at=C.useCallback(je=>{!ht||D||n!=null&&n(je)||(ht([je]),Xe(je))},[ht,D,n,Xe]),lt=C.useCallback(je=>{if(!Ne||D)return;if(!je||b){Ne(void 0),T||ht==null||ht([]);return}const Ee=Pc.filter(Ie,Tt=>R(je,Tt));let qe;if(Ee.find(Tt=>(Pe==null?void 0:Pe.item)&&Ce(Tt,Pe.item))?qe=Pe==null?void 0:Pe.item:Ee.length>0&&(qe=Ee[0]),Ne({keyword:je,items:Ee,item:qe}),qe&&Xe(qe),ht&&!T)if(g)ht(Ee);else{const Tt=Ee.find($t=>qe&&Ce($t,qe));ht(Tt?[Tt]:[])}},[Ie,D,Ce,R,Ne,ht,Xe,T,b,g,Pe]),Oe=C.useRef(!1);C.useEffect(()=>{Oe.current=!0},[Ie]),C.useEffect(()=>{Pe&&Oe.current&&(lt(Pe.keyword),Oe.current=!1)},[lt,Pe]);const st=C.useCallback(()=>{if(!Pe||!Ne||D)return;let je=Pe.items.findIndex(Ee=>Pe.item&&Ce(Ee,Pe.item))-1;je<0||(Ne({...Pe,item:Pe.items[je]}),Xe(Pe.items[je]),T||at(Pe.items[je]))},[Pe,Xe,Ne,D,at,Ce,T]),mt=C.useCallback(()=>{if(!Pe||!Ne||D)return;let je=Pe.items.findIndex(Ee=>Pe.item&&Ce(Ee,Pe.item))+1;je>=Pe.items.length||(Ne({...Pe,item:Pe.items[je]}),Xe(Pe.items[je]),T||at(Pe.items[je]))},[Pe,Xe,D,Ne,at,Ce,T]),ut=C.useCallback(()=>{if(!Pe||!Ne||D)return;let je=Pe.items.findIndex(qe=>Pe.item&&Ce(qe,Pe.item));if(!T||n!=null&&n(Pe.items[je])){mt();return}if(Ke.some(qe=>Pe.item&&Ce(qe,Pe.item))){let qe=je+1;const Tt=Pe.items[qe];if(qe>=Pe.items.length)return;Ne({...Pe,item:Tt}),at(Tt)}else at(Pe.items[je])},[Pe,Ne,D,Ke,T,mt,Ce,at,n]),[Lt,Bt]=C.useState(!1),Pt=C.useCallback(()=>Bt(!0),[]),Xt=C.useCallback(()=>Bt(!1),[]),ar=C.useMemo(()=>n?Pc.map(Ie,je=>je).filter(je=>!n(je)):t?Pc.map(Ie,je=>je).filter(je=>!t(je)):Pc.map(Ie,je=>je),[n,t,Ie]),Kt=C.useMemo(()=>!u||!g?!1:Ke.length>0&&ar.length>Ke.length,[u,g,Ke,ar]),cr=C.useMemo(()=>!u||!g?!1:Ke.length>0&&ar.length===Ke.length,[u,g,Ke,ar]),Te=C.useCallback(()=>{if(!ht||!g||D)return;const je=Ke.filter(Ee=>!(n!=null&&n(Ee))&&!(t!=null&&t(Ee))&&ar.some(qe=>Ce(qe,Ee)));if(je.length>0)ht(Ke.filter(Ee=>!je.some(qe=>Ce(Ee,qe))));else{const Ee=ar.filter(qe=>!(n!=null&&n(qe))&&!(t!=null&&t(qe))&&!Ke.some(Tt=>Ce(Tt,qe)));Ee.length>0&&ht([...Ke,...Ee])}},[g,D,n,t,ht,Ke,ar,Ce]),ae=C.useMemo(()=>{if(!u||!g||D)return"";const je=Ke.filter(Ee=>!(n!=null&&n(Ee))&&!(t!=null&&t(Ee))&&ar.some(qe=>Ce(qe,Ee)));if(je.length>0)return Le["deselect n"](je.length);{const Ee=ar.filter(qe=>!(n!=null&&n(qe))&&!(t!=null&&t(qe))&&!Ke.some(Tt=>Ce(Tt,qe)));return Le["select n"](Ee.length)}},[n,t,D,Le,u,g,ar,Ke,Ce]),[it,bt]=C.useState(),qt=Ej(dx(uy,{activationConstraint:{distance:8}}),dx(ly)),Ft=C.useRef(new Map),Dt=C.useCallback(je=>{if(!Ft.current.has(je)){const Ee=`item_${Za.uniqueId()}`;Ft.current.set(je,Ee)}return Ft.current.get(je)},[]),Ht=C.useCallback(je=>Je.find(Ee=>Dt(Ee)===je),[Je,Dt]),Ue=C.useCallback(je=>!it||!it.children?!1:it.children.some(qe=>Ce(qe,je))?!0:it.children.some(qe=>qe.children?Pc.find(qe,Tt=>Ce(Tt,je))!==void 0:!1),[it,Ce]),dt=C.useCallback(je=>{if(!w||D)return;const Ee=Ht(je.active.id);Ee&&bt(Ee)},[w,D,Ht]),yt=C.useCallback((je,Ee,qe,Tt)=>{const $t=je.findIndex(he=>Tt(he,Ee)),_t=je.findIndex(he=>Tt(he,qe));return $t!==-1&&_t!==-1?bg(je,$t,_t):je.map(he=>{if(!he.children)return he;const ct=he.children.findIndex(fr=>Tt(fr,Ee)),wt=he.children.findIndex(fr=>Tt(fr,qe));return ct!==-1&&wt!==-1?{...he,children:bg(he.children,ct,wt)}:he.children?{...he,children:yt(he.children,Ee,qe,Tt)}:he})},[]),Et=C.useCallback(je=>{!w||D||!it||!je.over||Ht(je.over.id)},[w,D,it,Ht]),Nt=C.useCallback(je=>{if(!w||D||!et||!it||!je.over)return;const Ee=Ht(je.over.id);if(!Ee||Ce(it,Ee)){bt(void 0);return}const qe=yt(Ie,it,Ee,Ce);et(qe),bt(void 0)},[w,D,et,it,Ht,Ce,Ie,yt]),rt=C.useMemo(()=>Ie.map(je=>Dt(je)),[Ie,Dt]);C.useEffect(()=>{var je;u||(je=Se.current)==null||je.scrollTo(0,0)},[u,Se]),C.useEffect(()=>{!g&&Ke.length>1&&(ht==null||ht([Ke[Ke.length-1]]))},[g,ht,Ke]),C.useEffect(()=>{A&&(A.current={expandAll:We,collapseAll:Ve})},[A,We,Ve]),C.useEffect(()=>{if(!t||!ht)return;const je=Ke.filter(Ee=>!t(Ee));Ke.length!==je.length&&ht(je)},[t,Ke,ht]),C.useEffect(()=>{if(!n||!ht)return;const je=Ke.filter(Ee=>!n(Ee));Ke.length!==je.length&&ht(je)},[n,Ke,ht]),C.useEffect(()=>{Ne&&Ne(void 0)},[Ne]);const[St,jt]=C.useState(null),tr=C.useCallback((je,Ee)=>{D||(je.stopPropagation(),je.preventDefault(),jt(Ee))},[D]),Ut=C.useCallback((je,Ee)=>{St===null||D||Ce(Ee,St)&&(je.stopPropagation(),je.preventDefault(),jt(null))},[St,D,Ce]),br=C.useRef(null),[Nr,pr]=C.useState(!1),[pe,pt]=C.useState((It=br.current)==null?void 0:It.scrollHeight);return C.useEffect(()=>{if(Qe.length<0)return;const je=Se.current,Ee=br.current,qe=je.clientHeight<Ee.clientHeight;pt(qe?Ee.scrollHeight:je.clientHeight),pr(qe)},[Qe]),S.jsxs(Yr,{...we,className:Ye.clsx(we.className,mn.AWrap),isDisabled:D,children:[(!b||j)&&S.jsxs(kn,{className:Ye.clsx(mn.ATreeHeader,Q),style:V,children:[!b&&S.jsx(NH,{autoFocus:U,initSearch:lt,isDisabled:D,isEqual:Ce,isLoading:M,maxLength:P,resources:Le,searchDown:mt,searchEnter:ut,searchResult:Pe,searchUp:st}),!b&&j&&S.jsx(zn,{w:8}),j]}),(!b||j||u&&g||w)&&S.jsx(Mv,{isLoading:M&&Ie.length!==0}),(u&&g||w)&&S.jsxs("div",{className:Ye.clsx(mn.ATreeBodyHeader,"NoSelect"),children:[u&&S.jsx(af,{className:mn.CheckBox,isDisabled:D,isIndeterminate:Kt,tooltip:ae,useCheck:[+cr,()=>Te()],onMouseOut:Xt,onMouseOver:Pt}),Le.Items,S.jsx(Xu,{}),S.jsxs("div",{className:Ye.clsx(mn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Nr?8:0},children:[S.jsx("span",{children:u&&Le["*Click row for single select"]}),S.jsx("span",{children:w&&Le["*Change order to row drag"]})]})]}),G&&S.jsx("div",{className:mn.TreeTopAddon,children:G}),S.jsx("div",{ref:Se,className:Ye.clsx(we.className,mn.AContainer),children:S.jsxs("div",{className:mn.ATree,style:{minWidth:be||"fit-content",marginRight:re&&Nr?8:0},children:[S.jsxs("div",{ref:br,className:mn.ATreeBody,children:[Ie.length===0?M?S.jsx(zH,{text:Le["Loading Contents..."]}):_:null,S.jsx(Iz,{collisionDetection:Mj,modifiers:[Fz,jz],sensors:qt,measuring:{droppable:{strategy:vf.Always}},onDragEnd:Nt,onDragOver:Et,onDragStart:dt,children:S.jsx(Wz,{items:rt,strategy:qz,children:Ie.map(je=>S.jsx(B,{containerRef:Se,ContentRenderer:F,extIndents:m,getItemId:Dt,height:me,hoverdItem:St,icons:p,iconWidth:f,indents:[],isChildOfDragItem:Ue,isDraggable:w,isDragSrcItem:Ce(je,it),isEqual:Ce,isParentCheckHovered:g&&Lt,isParentDisabled:D,isSelectMulti:g,item:je,itemId:Dt(je),resources:Le,RightStickyAddon:z,searchItemClassName:ie,searchItemStyle:de,selectDisabled:t,selectUnused:n,showCheckbox:u,TreeItemClassName:te,TreeItemRenderer:B,TreeItemStyle:se,treeItemTooltip:Ae,treeItemTooltipDelay:De,treeItemTooltipDirection:oe,treeItemTooltipDistance:ge,useExpand:[Qe,Ze],useSearch:[Pe,Ne],useSelect:[Ke,ht],onMouseLeave:Ut,onMouseOver:tr},Dt(je)))})})]}),ne&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:mn.CoverBorder}),S.jsx("div",{className:mn.InsertBorder,style:{"--InsertBorder_height":`${me}px`,height:Nr?pe:"100%"}})]})]})})]})},FH=r=>{const{item:e}=r,t={};return lr.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function jH(r,e){return lr.some(e,(t,n)=>{var o;return(o=lr.stringify(n))==null?void 0:o.toLowerCase().includes(r.toLowerCase())})}const zH=r=>{const{text:e}=r;return S.jsxs(kn,{className:Ye.clsx(mn.Loader,"NoSelect"),children:[S.jsx(en,{height:40,icon:"Spinner",style:{height:40},width:40}),S.jsx(_C,{text:e})]})};var qm,Sx;function Af(){return Sx||(Sx=1,qm=TypeError),qm}const HH={},$H=Object.freeze(Object.defineProperty({__proto__:null,default:HH},Symbol.toStringTag,{value:"Module"})),qH=yT($H);var Um,_x;function zg(){if(_x)return Um;_x=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,u=typeof WeakMap=="function"&&WeakMap.prototype,f=u?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,b=g?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,T=Object.prototype.toString,A=Function.prototype.toString,_=String.prototype.match,R=String.prototype.slice,D=String.prototype.replace,M=String.prototype.toUpperCase,F=String.prototype.toLowerCase,B=RegExp.prototype.test,z=Array.prototype.concat,j=Array.prototype.join,G=Array.prototype.slice,fe=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,te=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Te){return Te.__proto__}:null);function ne(Te,ae){if(Te===1/0||Te===-1/0||Te!==Te||Te&&Te>-1e3&&Te<1e3||B.call(/e/,ae))return ae;var it=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Te=="number"){var bt=Te<0?-fe(-Te):fe(Te);if(bt!==Te){var qt=String(bt),Ft=R.call(ae,qt.length+1);return D.call(qt,it,"$&_")+"."+D.call(D.call(Ft,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(ae,it,"$&_")}var be=qH,ie=be.custom,de=Qe(ie)?ie:null,me={__proto__:null,double:'"',single:"'"},Ae={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Um=function Te(ae,it,bt,qt){var Ft=it||{};if(ht(Ft,"quoteStyle")&&!ht(me,Ft.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ht(Ft,"maxStringLength")&&(typeof Ft.maxStringLength=="number"?Ft.maxStringLength<0&&Ft.maxStringLength!==1/0:Ft.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Dt=ht(Ft,"customInspect")?Ft.customInspect:!0;if(typeof Dt!="boolean"&&Dt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ht(Ft,"indent")&&Ft.indent!==null&&Ft.indent!==" "&&!(parseInt(Ft.indent,10)===Ft.indent&&Ft.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ht(Ft,"numericSeparator")&&typeof Ft.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ht=Ft.numericSeparator;if(typeof ae>"u")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return mt(ae,Ft);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var Ue=String(ae);return Ht?ne(ae,Ue):Ue}if(typeof ae=="bigint"){var dt=String(ae)+"n";return Ht?ne(ae,dt):dt}var yt=typeof Ft.depth>"u"?5:Ft.depth;if(typeof bt>"u"&&(bt=0),bt>=yt&&yt>0&&typeof ae=="object")return we(ae)?"[Array]":"[Object]";var Et=ar(Ft,bt);if(typeof qt>"u")qt=[];else if(Xe(qt,ae)>=0)return"[Circular]";function Nt(_t,he,ct){if(he&&(qt=G.call(qt),qt.push(he)),ct){var wt={depth:Ft.depth};return ht(Ft,"quoteStyle")&&(wt.quoteStyle=Ft.quoteStyle),Te(_t,wt,bt+1,qt)}return Te(_t,Ft,bt+1,qt)}if(typeof ae=="function"&&!Ce(ae)){var rt=Ne(ae),St=cr(ae,Nt);return"[Function"+(rt?": "+rt:" (anonymous)")+"]"+(St.length>0?" { "+j.call(St,", ")+" }":"")}if(Qe(ae)){var jt=Q?D.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(ae);return typeof ae=="object"&&!Q?Lt(jt):jt}if(st(ae)){for(var tr="<"+F.call(String(ae.nodeName)),Ut=ae.attributes||[],br=0;br<Ut.length;br++)tr+=" "+Ut[br].name+"="+De(oe(Ut[br].value),"double",Ft);return tr+=">",ae.childNodes&&ae.childNodes.length&&(tr+="..."),tr+="</"+F.call(String(ae.nodeName))+">",tr}if(we(ae)){if(ae.length===0)return"[]";var Nr=cr(ae,Nt);return Et&&!Xt(Nr)?"["+Kt(Nr,Et)+"]":"[ "+j.call(Nr,", ")+" ]"}if(Se(ae)){var pr=cr(ae,Nt);return!("cause"in Error.prototype)&&"cause"in ae&&!te.call(ae,"cause")?"{ ["+String(ae)+"] "+j.call(z.call("[cause]: "+Nt(ae.cause),pr),", ")+" }":pr.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+j.call(pr,", ")+" }"}if(typeof ae=="object"&&Dt){if(de&&typeof ae[de]=="function"&&be)return be(ae,{depth:yt-bt});if(Dt!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(We(ae)){var pe=[];return n&&n.call(ae,function(_t,he){pe.push(Nt(he,ae,!0)+" => "+Nt(_t,ae))}),Pt("Map",t.call(ae),pe,Et)}if(lt(ae)){var pt=[];return c&&c.call(ae,function(_t){pt.push(Nt(_t,ae))}),Pt("Set",a.call(ae),pt,Et)}if(Ve(ae))return Bt("WeakMap");if(Oe(ae))return Bt("WeakSet");if(at(ae))return Bt("WeakRef");if(et(ae))return Lt(Nt(Number(ae)));if(Ze(ae))return Lt(Nt(P.call(ae)));if(Je(ae))return Lt(w.call(ae));if(Ie(ae))return Lt(Nt(String(ae)));if(typeof window<"u"&&ae===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ae===globalThis||typeof Di<"u"&&ae===Di)return"{ [object globalThis] }";if(!Le(ae)&&!Ce(ae)){var It=cr(ae,Nt),je=re?re(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,Ee=ae instanceof Object?"":"null prototype",qe=!je&&se&&Object(ae)===ae&&se in ae?R.call(Pe(ae),8,-1):Ee?"Object":"",Tt=je||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",$t=Tt+(qe||Ee?"["+j.call(z.call([],qe||[],Ee||[]),": ")+"] ":"");return It.length===0?$t+"{}":Et?$t+"{"+Kt(It,Et)+"}":$t+"{ "+j.call(It,", ")+" }"}return String(ae)};function De(Te,ae,it){var bt=it.quoteStyle||ae,qt=me[bt];return qt+Te+qt}function oe(Te){return D.call(String(Te),/"/g,""")}function ge(Te){return!se||!(typeof Te=="object"&&(se in Te||typeof Te[se]<"u"))}function we(Te){return Pe(Te)==="[object Array]"&&ge(Te)}function Le(Te){return Pe(Te)==="[object Date]"&&ge(Te)}function Ce(Te){return Pe(Te)==="[object RegExp]"&&ge(Te)}function Se(Te){return Pe(Te)==="[object Error]"&&ge(Te)}function Ie(Te){return Pe(Te)==="[object String]"&&ge(Te)}function et(Te){return Pe(Te)==="[object Number]"&&ge(Te)}function Je(Te){return Pe(Te)==="[object Boolean]"&&ge(Te)}function Qe(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 Ze(Te){if(!Te||typeof Te!="object"||!P)return!1;try{return P.call(Te),!0}catch{}return!1}var Ke=Object.prototype.hasOwnProperty||function(Te){return Te in this};function ht(Te,ae){return Ke.call(Te,ae)}function Pe(Te){return T.call(Te)}function Ne(Te){if(Te.name)return Te.name;var ae=_.call(A.call(Te),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Xe(Te,ae){if(Te.indexOf)return Te.indexOf(ae);for(var it=0,bt=Te.length;it<bt;it++)if(Te[it]===ae)return it;return-1}function We(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 Ve(Te){if(!f||!Te||typeof Te!="object")return!1;try{f.call(Te,f);try{m.call(Te,m)}catch{return!0}return Te instanceof WeakMap}catch{}return!1}function at(Te){if(!b||!Te||typeof Te!="object")return!1;try{return b.call(Te),!0}catch{}return!1}function lt(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 Oe(Te){if(!m||!Te||typeof Te!="object")return!1;try{m.call(Te,m);try{f.call(Te,f)}catch{return!0}return Te instanceof WeakSet}catch{}return!1}function st(Te){return!Te||typeof Te!="object"?!1:typeof HTMLElement<"u"&&Te instanceof HTMLElement?!0:typeof Te.nodeName=="string"&&typeof Te.getAttribute=="function"}function mt(Te,ae){if(Te.length>ae.maxStringLength){var it=Te.length-ae.maxStringLength,bt="... "+it+" more character"+(it>1?"s":"");return mt(R.call(Te,0,ae.maxStringLength),ae)+bt}var qt=Ae[ae.quoteStyle||"single"];qt.lastIndex=0;var Ft=D.call(D.call(Te,qt,"\\$1"),/[\x00-\x1f]/g,ut);return De(Ft,"single",ae)}function ut(Te){var ae=Te.charCodeAt(0),it={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return it?"\\"+it:"\\x"+(ae<16?"0":"")+M.call(ae.toString(16))}function Lt(Te){return"Object("+Te+")"}function Bt(Te){return Te+" { ? }"}function Pt(Te,ae,it,bt){var qt=bt?Kt(it,bt):j.call(it,", ");return Te+" ("+ae+") {"+qt+"}"}function Xt(Te){for(var ae=0;ae<Te.length;ae++)if(Xe(Te[ae],`
|
|
364
|
+
`},_j={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 Aj(r){let{announcements:e=_j,container:t,hiddenTextDescribedById:n,screenReaderInstructions:o=Sj}=r;const{announce:i,announcement:a}=xj(),c=Vh("DndLiveRegion"),[u,f]=C.useState(!1);if(C.useEffect(()=>{f(!0)},[]),wj(C.useMemo(()=>({onDragStart(m){let{active:g}=m;i(e.onDragStart({active:g}))},onDragMove(m){let{active:g,over:b}=m;e.onDragMove&&i(e.onDragMove({active:g,over:b}))},onDragOver(m){let{active:g,over:b}=m;i(e.onDragOver({active:g,over:b}))},onDragEnd(m){let{active:g,over:b}=m;i(e.onDragEnd({active:g,over:b}))},onDragCancel(m){let{active:g,over:b}=m;i(e.onDragCancel({active:g,over:b}))}}),[i,e])),!u)return null;const p=C.createElement(C.Fragment,null,C.createElement(yj,{id:n,value:o.draggable}),C.createElement(bj,{id:c,announcement:a}));return t?Ls.createPortal(p,t):p}var So;(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"})(So||(So={}));function vg(){}function dx(r,e){return C.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function Ej(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return C.useMemo(()=>[...e].filter(n=>n!=null),[...e])}const va=Object.freeze({x:0,y:0});function Tj(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function Rj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return t-n}function kj(r,e){let{data:{value:t}}=r,{data:{value:n}}=e;return n-t}function Ij(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function fx(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 Mj=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:n}=r;const o=fx(e,e.left,e.top),i=[];for(const a of n){const{id:c}=a,u=t.get(c);if(u){const f=Tj(fx(u),o);i.push({id:c,data:{droppableContainer:a,value:f}})}}return i.sort(Rj)};function Lj(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 u=e.width*e.height,f=r.width*r.height,p=a*c,m=p/(u+f-p);return Number(m.toFixed(4))}return 0}const Dj=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 u=Lj(c,e);u>0&&o.push({id:a,data:{droppableContainer:i,value:u}})}}return o.sort(kj)};function Oj(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function uS(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:va}function Nj(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 Pj=Nj(1);function Bj(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 Fj(r,e,t){const n=Bj(e);if(!n)return r;const{scaleX:o,scaleY:i,x:a,y:c}=n,u=r.left-a-(1-o)*parseFloat(t),f=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:f,right:u+p,bottom:f+m,left:u}}const jj={ignoreTransform:!1};function _f(r,e){e===void 0&&(e=jj);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:f,transformOrigin:p}=Ni(r).getComputedStyle(r);f&&(t=Fj(t,f,p))}const{top:n,left:o,width:i,height:a,bottom:c,right:u}=t;return{top:n,left:o,width:i,height:a,bottom:c,right:u}}function hx(r){return _f(r,{ignoreTransform:!0})}function zj(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Hj(r,e){return e===void 0&&(e=Ni(r).getComputedStyle(r)),e.position==="fixed"}function $j(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 sy(r,e){const t=[];function n(o){if(e!=null&&t.length>=e||!o)return t;if(ny(o)&&o.scrollingElement!=null&&!t.includes(o.scrollingElement))return t.push(o.scrollingElement),t;if(!Uh(o)||aS(o)||t.includes(o))return t;const i=Ni(r).getComputedStyle(o);return o!==r&&$j(o,i)&&t.push(o),Hj(o,i)?t:n(o.parentNode)}return r?n(r):t}function dS(r){const[e]=sy(r,1);return e??null}function zm(r){return!Bg||!r?null:Cf(r)?r:ry(r)?ny(r)||r===Sf(r).scrollingElement?window:Uh(r)?r:null:null}function fS(r){return Cf(r)?r.scrollX:r.scrollLeft}function hS(r){return Cf(r)?r.scrollY:r.scrollTop}function mv(r){return{x:fS(r),y:hS(r)}}var Mo;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Mo||(Mo={}));function pS(r){return!Bg||!r?!1:r===document.scrollingElement}function gS(r){const e={x:0,y:0},t=pS(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 qj={x:.2,y:.2};function Uj(r,e,t,n,o){let{top:i,left:a,right:c,bottom:u}=t;n===void 0&&(n=10),o===void 0&&(o=qj);const{isTop:f,isBottom:p,isLeft:m,isRight:g}=gS(r),b={x:0,y:0},w={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!f&&i<=e.top+T.height?(b.y=Mo.Backward,w.y=n*Math.abs((e.top+T.height-i)/T.height)):!p&&u>=e.bottom-T.height&&(b.y=Mo.Forward,w.y=n*Math.abs((e.bottom-T.height-u)/T.height)),!g&&c>=e.right-T.width?(b.x=Mo.Forward,w.x=n*Math.abs((e.right-T.width-c)/T.width)):!m&&a<=e.left+T.width&&(b.x=Mo.Backward,w.x=n*Math.abs((e.left+T.width-a)/T.width)),{direction:b,speed:w}}function Wj(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 mS(r){return r.reduce((e,t)=>of(e,mv(t)),va)}function Vj(r){return r.reduce((e,t)=>e+fS(t),0)}function Gj(r){return r.reduce((e,t)=>e+hS(t),0)}function Yj(r,e){if(e===void 0&&(e=_f),!r)return;const{top:t,left:n,bottom:o,right:i}=e(r);dS(r)&&(o<=0||i<=0||t>=window.innerHeight||n>=window.innerWidth)&&r.scrollIntoView({block:"center",inline:"center"})}const Zj=[["x",["left","right"],Vj],["y",["top","bottom"],Gj]];class ay{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=sy(t),o=mS(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,a,c]of Zj)for(const u of a)Object.defineProperty(this,u,{get:()=>{const f=c(n),p=o[i]-f;return this.rect[u]+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 Kj(r){const{EventTarget:e}=Ni(r);return r instanceof e?r:Sf(r)}function Hm(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 px(r){r.preventDefault()}function Xj(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 vS={start:[un.Space,un.Enter],cancel:[un.Esc],end:[un.Space,un.Enter,un.Tab]},Jj=(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 ly{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&&Yj(n),t(va)}handleKeyDown(e){if(iy(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:i=vS,coordinateGetter:a=Jj,scrollBehavior:c="smooth"}=o,{code:u}=e;if(i.end.includes(u)){this.handleEnd(e);return}if(i.cancel.includes(u)){this.handleCancel(e);return}const{collisionRect:f}=n.current,p=f?{x:f.left,y:f.top}:va;this.referenceCoordinates||(this.referenceCoordinates=p);const m=a(e,{active:t,context:n.current,currentCoordinates:p});if(m){const g=mg(m,p),b={x:0,y:0},{scrollableAncestors:w}=n.current;for(const T of w){const A=e.code,{isTop:_,isRight:R,isLeft:D,isBottom:M,maxScroll:F,minScroll:B}=gS(T),z=Wj(T),j={x:Math.min(A===un.Right?z.right-z.width/2:z.right,Math.max(A===un.Right?z.left:z.left+z.width/2,m.x)),y:Math.min(A===un.Down?z.bottom-z.height/2:z.bottom,Math.max(A===un.Down?z.top:z.top+z.height/2,m.y))},G=A===un.Right&&!R||A===un.Left&&!D,fe=A===un.Down&&!M||A===un.Up&&!_;if(G&&j.x!==m.x){const P=T.scrollLeft+g.x,U=A===un.Right&&P<=F.x||A===un.Left&&P>=B.x;if(U&&!g.y){T.scrollTo({left:P,behavior:c});return}U?b.x=T.scrollLeft-P:b.x=A===un.Right?T.scrollLeft-F.x:T.scrollLeft-B.x,b.x&&T.scrollBy({left:-b.x,behavior:c});break}else if(fe&&j.y!==m.y){const P=T.scrollTop+g.y,U=A===un.Down&&P<=F.y||A===un.Up&&P>=B.y;if(U&&!g.x){T.scrollTo({top:P,behavior:c});return}U?b.y=T.scrollTop-P:b.y=A===un.Down?T.scrollTop-F.y:T.scrollTop-B.y,b.y&&T.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(e,of(mg(m,this.referenceCoordinates),b))}}}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()}}ly.activators=[{eventName:"onKeyDown",handler:(r,e,t)=>{let{keyboardCodes:n=vS,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 gx(r){return!!(r&&"distance"in r)}function mx(r){return!!(r&&"delay"in r)}class cy{constructor(e,t,n){var o;n===void 0&&(n=Kj(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=gv(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,px),this.windowListeners.add(Rs.VisibilityChange,this.handleCancel),this.windowListeners.add(Rs.ContextMenu,px),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(mx(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(gx(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,Xj,{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 u=(t=gv(e))!=null?t:va,f=mg(o,u);if(!n&&c){if(gx(c)){if(c.tolerance!=null&&Hm(f,c.tolerance))return this.handleCancel();if(Hm(f,c.distance))return this.handleStart()}if(mx(c)&&Hm(f,c.tolerance))return this.handleCancel();this.handlePending(c,f);return}e.cancelable&&e.preventDefault(),a(u)}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 Qj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class uy extends cy{constructor(e){const{event:t}=e,n=Sf(t.target);super(e,Qj,n)}}uy.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 ez={move:{name:"mousemove"},end:{name:"mouseup"}};var vv;(function(r){r[r.RightClick=2]="RightClick"})(vv||(vv={}));class tz extends cy{constructor(e){super(e,ez,Sf(e.event.target))}}tz.activators=[{eventName:"onMouseDown",handler:(r,e)=>{let{nativeEvent:t}=r,{onActivation:n}=e;return t.button===vv.RightClick?!1:(n==null||n({event:t}),!0)}}];const $m={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class rz extends cy{constructor(e){super(e,$m)}static setup(){return window.addEventListener($m.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener($m.move.name,e)};function e(){}}}rz.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 yg;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(yg||(yg={}));function nz(r){let{acceleration:e,activator:t=vh.Pointer,canScroll:n,draggingRect:o,enabled:i,interval:a=5,order:c=yg.TreeOrder,pointerCoordinates:u,scrollableAncestors:f,scrollableAncestorRects:p,delta:m,threshold:g}=r;const b=iz({delta:m,disabled:!i}),[w,T]=hj(),A=C.useRef({x:0,y:0}),_=C.useRef({x:0,y:0}),R=C.useMemo(()=>{switch(t){case vh.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case vh.DraggableRect:return o}},[t,o,u]),D=C.useRef(null),M=C.useCallback(()=>{const B=D.current;if(!B)return;const z=A.current.x*_.current.x,j=A.current.y*_.current.y;B.scrollBy(z,j)},[]),F=C.useMemo(()=>c===yg.TreeOrder?[...f].reverse():f,[c,f]);C.useEffect(()=>{if(!i||!f.length||!R){T();return}for(const B of F){if((n==null?void 0:n(B))===!1)continue;const z=f.indexOf(B),j=p[z];if(!j)continue;const{direction:G,speed:fe}=Uj(B,j,R,e,g);for(const P of["x","y"])b[P][G[P]]||(fe[P]=0,G[P]=0);if(fe.x>0||fe.y>0){T(),D.current=B,w(M,a),A.current=fe,_.current=G;return}}A.current={x:0,y:0},_.current={x:0,y:0},T()},[e,M,n,T,i,a,JSON.stringify(R),JSON.stringify(b),w,f,F,p,JSON.stringify(g)])}const oz={x:{[Mo.Backward]:!1,[Mo.Forward]:!1},y:{[Mo.Backward]:!1,[Mo.Forward]:!1}};function iz(r){let{delta:e,disabled:t}=r;const n=pv(e);return Wh(o=>{if(t||!n||!o)return oz;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 sz(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 az(r,e){return C.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 yv;(function(r){r.Optimized="optimized"})(yv||(yv={}));const vx=new Map;function lz(r,e){let{dragging:t,dependencies:n,config:o}=e;const[i,a]=C.useState(null),{frequency:c,measure:u,strategy:f}=o,p=C.useRef(r),m=A(),g=Nh(m),b=C.useCallback(function(_){_===void 0&&(_=[]),!g.current&&a(R=>R===null?_:R.concat(_.filter(D=>!R.includes(D))))},[g]),w=C.useRef(null),T=Wh(_=>{if(m&&!t)return vx;if(!_||_===vx||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 M=D.node.current,F=M?new ay(u(M),M):null;D.rect.current=F,F&&R.set(D.id,F)}return R}return _},[r,i,t,m,u]);return C.useEffect(()=>{p.current=r},[r]),C.useEffect(()=>{m||b()},[t,m]),C.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),C.useEffect(()=>{m||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{b(),w.current=null},c))},[c,m,b,...n]),{droppableRects:T,measureDroppableContainers:b,measuringScheduled:i!=null};function A(){switch(f){case vf.Always:return!1;case vf.BeforeDragging:return t;default:return!t}}}function yS(r,e){return Wh(t=>r?t||(typeof e=="function"?e(r):r):null,[e,r])}function cz(r,e){return yS(r,e)}function uz(r){let{callback:e,disabled:t}=r;const n=oy(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(n)},[n,t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Fg(r){let{callback:e,disabled:t}=r;const n=oy(e),o=C.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(n)},[t]);return C.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function dz(r){return new ay(_f(r),r)}function yx(r,e,t){e===void 0&&(e=dz);const[n,o]=C.useState(null);function i(){o(u=>{if(!r)return null;if(r.isConnected===!1){var f;return(f=u??t)!=null?f:null}const p=e(r);return JSON.stringify(u)===JSON.stringify(p)?u:p})}const a=uz({callback(u){if(r)for(const f of u){const{type:p,target:m}=f;if(p==="childList"&&m instanceof HTMLElement&&m.contains(r)){i();break}}}}),c=Fg({callback:i});return il(()=>{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 fz(r){const e=yS(r);return uS(r,e)}const bx=[];function hz(r){const e=C.useRef(r),t=Wh(n=>r?n&&n!==bx&&r&&e.current&&r.parentNode===e.current.parentNode?n:sy(r):bx,[r]);return C.useEffect(()=>{e.current=r},[r]),t}function pz(r){const[e,t]=C.useState(null),n=C.useRef(r),o=C.useCallback(i=>{const a=zm(i.target);a&&t(c=>c?(c.set(a,mv(a)),new Map(c)):null)},[]);return C.useEffect(()=>{const i=n.current;if(r!==i){a(i);const c=r.map(u=>{const f=zm(u);return f?(f.addEventListener("scroll",o,{passive:!0}),[f,mv(f)]):null}).filter(u=>u!=null);t(c.length?new Map(c):null),n.current=r}return()=>{a(r),a(i)};function a(c){c.forEach(u=>{const f=zm(u);f==null||f.removeEventListener("scroll",o)})}},[o,r]),C.useMemo(()=>r.length?e?Array.from(e.values()).reduce((i,a)=>of(i,a),va):mS(r):va,[r,e])}function xx(r,e){e===void 0&&(e=[]);const t=C.useRef(null);return C.useEffect(()=>{t.current=null},e),C.useEffect(()=>{const n=r!==va;n&&!t.current&&(t.current=r),!n&&t.current&&(t.current=null)},[r]),t.current?mg(r,t.current):va}function gz(r){C.useEffect(()=>{if(!Bg)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 mz(r,e){return C.useMemo(()=>r.reduce((t,n)=>{let{eventName:o,handler:i}=n;return t[o]=a=>{i(a,e)},t},{}),[r,e])}function bS(r){return C.useMemo(()=>r?zj(r):null,[r])}const wx=[];function vz(r,e){e===void 0&&(e=_f);const[t]=r,n=bS(t?Ni(t):null),[o,i]=C.useState(wx);function a(){i(()=>r.length?r.map(u=>pS(u)?n:new ay(e(u),u)):wx)}const c=Fg({callback:a});return il(()=>{c==null||c.disconnect(),a(),r.forEach(u=>c==null?void 0:c.observe(u))},[r]),o}function yz(r){if(!r)return null;if(r.children.length>1)return r;const e=r.children[0];return Uh(e)?e:r}function bz(r){let{measure:e}=r;const[t,n]=C.useState(null),o=C.useCallback(f=>{for(const{target:p}of f)if(Uh(p)){n(m=>{const g=e(p);return m?{...m,width:g.width,height:g.height}:g});break}},[e]),i=Fg({callback:o}),a=C.useCallback(f=>{const p=yz(f);i==null||i.disconnect(),p&&(i==null||i.observe(p)),n(p?e(p):null)},[e,i]),[c,u]=gg(a);return C.useMemo(()=>({nodeRef:c,rect:t,setRef:u}),[t,c,u])}const xz=[{sensor:uy,options:{}},{sensor:ly,options:{}}],wz={current:{}},Kp={draggable:{measure:hx},droppable:{measure:hx,strategy:vf.WhileDragging,frequency:yv.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 Cz={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:vg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kp,measureDroppableContainers:vg,windowRect:null,measuringScheduled:!1},Sz={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vg,draggableNodes:new Map,over:null,measureDroppableContainers:vg},jg=C.createContext(Sz),xS=C.createContext(Cz);function _z(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yh}}}function Az(r,e){switch(e.type){case So.DragStart:return{...r,draggable:{...r.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case So.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 So.DragEnd:case So.DragCancel:return{...r,draggable:{...r.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case So.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 So.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 So.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 Ez(r){let{disabled:e}=r;const{active:t,activatorEvent:n,draggableNodes:o}=C.useContext(jg),i=pv(n),a=pv(t==null?void 0:t.id);return C.useEffect(()=>{if(!e&&!n&&i&&a!=null){if(!iy(i)||document.activeElement===i.target)return;const c=o.get(a);if(!c)return;const{activatorNode:u,node:f}=c;if(!u.current&&!f.current)return;requestAnimationFrame(()=>{for(const p of[u.current,f.current]){if(!p)continue;const m=mj(p);if(m){m.focus();break}}})}},[n,e,o,a,i]),null}function Tz(r,e){let{transform:t,...n}=e;return r!=null&&r.length?r.reduce((o,i)=>i({transform:o,...n}),t):t}function Rz(r){return C.useMemo(()=>({draggable:{...Kp.draggable,...r==null?void 0:r.draggable},droppable:{...Kp.droppable,...r==null?void 0:r.droppable},dragOverlay:{...Kp.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 kz(r){let{activeNode:e,measure:t,initialRect:n,config:o=!0}=r;const i=C.useRef(!1),{x:a,y:c}=typeof o=="boolean"?{x:o,y:o}:o;il(()=>{if(!a&&!c||!e){i.current=!1;return}if(i.current||!n)return;const f=e==null?void 0:e.node.current;if(!f||f.isConnected===!1)return;const p=t(f),m=uS(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=dS(f);g&&g.scrollBy({top:m.y,left:m.x})}},[e,a,c,n,t])}const wS=C.createContext({...va,scaleX:1,scaleY:1});var Nc;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(Nc||(Nc={}));const Iz=C.memo(function(e){var t,n,o,i;let{id:a,accessibility:c,autoScroll:u=!0,children:f,sensors:p=xz,collisionDetection:m=Dj,measuring:g,modifiers:b,...w}=e;const T=C.useReducer(Az,void 0,_z),[A,_]=T,[R,D]=Cj(),[M,F]=C.useState(Nc.Uninitialized),B=M===Nc.Initialized,{draggable:{active:z,nodes:j,translate:G},droppable:{containers:fe}}=A,P=z!=null?j.get(z):null,U=C.useRef({initial:null,translated:null}),V=C.useMemo(()=>{var Lt;return z!=null?{id:z,data:(Lt=P==null?void 0:P.data)!=null?Lt:wz,rect:U}:null},[z,P]),Q=C.useRef(null),[se,te]=C.useState(null),[re,ne]=C.useState(null),be=Nh(w,Object.values(w)),ie=Vh("DndDescribedBy",a),de=C.useMemo(()=>fe.getEnabled(),[fe]),me=Rz(g),{droppableRects:Ae,measureDroppableContainers:Oe,measuringScheduled:oe}=lz(de,{dragging:B,dependencies:[G.x,G.y],config:me.droppable}),ge=sz(j,z),we=C.useMemo(()=>re?gv(re):null,[re]),Le=Ft(),Ce=cz(ge,me.draggable.measure);kz({activeNode:z!=null?j.get(z):null,config:Le.layoutShiftCompensation,initialRect:Ce,measure:me.draggable.measure});const Se=yx(ge,me.draggable.measure,Ce),Ie=yx(ge?ge.parentElement:null),et=C.useRef({activatorEvent:null,active:null,activeNode:ge,collisionRect:null,collisions:null,droppableRects:Ae,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:fe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Je=fe.getNodeFor((t=et.current.over)==null?void 0:t.id),Qe=bz({measure:me.dragOverlay.measure}),Ze=(n=Qe.nodeRef.current)!=null?n:ge,Ke=B?(o=Qe.rect)!=null?o:Se:null,ht=!!(Qe.nodeRef.current&&Qe.rect),Pe=fz(ht?null:Se),Ne=bS(Ze?Ni(Ze):null),Xe=hz(B?Je??ge:null),We=vz(Xe),Ve=Tz(b,{transform:{x:G.x-Pe.x,y:G.y-Pe.y,scaleX:1,scaleY:1},activatorEvent:re,active:V,activeNodeRect:Se,containerNodeRect:Ie,draggingNodeRect:Ke,over:et.current.over,overlayNodeRect:Qe.rect,scrollableAncestors:Xe,scrollableAncestorRects:We,windowRect:Ne}),lt=we?of(we,G):null,st=pz(Xe),De=xx(st),at=xx(st,[Se]),mt=of(Ve,De),ut=Ke?Pj(Ke,Ve):null,Dt=V&&ut?m({active:V,collisionRect:ut,droppableRects:Ae,droppableContainers:de,pointerCoordinates:lt}):null,Bt=Ij(Dt,"id"),[Pt,Xt]=C.useState(null),ar=ht?Ve:of(Ve,at),Kt=Oj(ar,(i=Pt==null?void 0:Pt.rect)!=null?i:null,Se),cr=C.useRef(null),Te=C.useCallback((Lt,Ht)=>{let{sensor:Ue,options:dt}=Ht;if(Q.current==null)return;const yt=j.get(Q.current);if(!yt)return;const Et=Lt.nativeEvent,Nt=new Ue({active:Q.current,activeNode:yt,event:Et,options:dt,context:et,onAbort(St){if(!j.get(St))return;const{onDragAbort:tr}=be.current,Ut={id:St};tr==null||tr(Ut),R({type:"onDragAbort",event:Ut})},onPending(St,jt,tr,Ut){if(!j.get(St))return;const{onDragPending:Nr}=be.current,pr={id:St,constraint:jt,initialCoordinates:tr,offset:Ut};Nr==null||Nr(pr),R({type:"onDragPending",event:pr})},onStart(St){const jt=Q.current;if(jt==null)return;const tr=j.get(jt);if(!tr)return;const{onDragStart:Ut}=be.current,br={activatorEvent:Et,active:{id:jt,data:tr.data,rect:U}};Ls.unstable_batchedUpdates(()=>{Ut==null||Ut(br),F(Nc.Initializing),_({type:So.DragStart,initialCoordinates:St,active:jt}),R({type:"onDragStart",event:br}),te(cr.current),ne(Et)})},onMove(St){_({type:So.DragMove,coordinates:St})},onEnd:rt(So.DragEnd),onCancel:rt(So.DragCancel)});cr.current=Nt;function rt(St){return async function(){const{active:tr,collisions:Ut,over:br,scrollAdjustedTranslate:Nr}=et.current;let pr=null;if(tr&&Nr){const{cancelDrop:pe}=be.current;pr={activatorEvent:Et,active:tr,collisions:Ut,delta:Nr,over:br},St===So.DragEnd&&typeof pe=="function"&&await Promise.resolve(pe(pr))&&(St=So.DragCancel)}Q.current=null,Ls.unstable_batchedUpdates(()=>{_({type:St}),F(Nc.Uninitialized),Xt(null),te(null),ne(null),cr.current=null;const pe=St===So.DragEnd?"onDragEnd":"onDragCancel";if(pr){const pt=be.current[pe];pt==null||pt(pr),R({type:pe,event:pr})}})}}},[j]),ae=C.useCallback((Lt,Ht)=>(Ue,dt)=>{const yt=Ue.nativeEvent,Et=j.get(dt);if(Q.current!==null||!Et||yt.dndKit||yt.defaultPrevented)return;const Nt={active:Et};Lt(Ue,Ht.options,Nt)===!0&&(yt.dndKit={capturedBy:Ht.sensor},Q.current=dt,Te(Ue,Ht))},[j,Te]),it=az(p,ae);gz(p),il(()=>{Se&&M===Nc.Initializing&&F(Nc.Initialized)},[Se,M]),C.useEffect(()=>{const{onDragMove:Lt}=be.current,{active:Ht,activatorEvent:Ue,collisions:dt,over:yt}=et.current;if(!Ht||!Ue)return;const Et={active:Ht,activatorEvent:Ue,collisions:dt,delta:{x:mt.x,y:mt.y},over:yt};Ls.unstable_batchedUpdates(()=>{Lt==null||Lt(Et),R({type:"onDragMove",event:Et})})},[mt.x,mt.y]),C.useEffect(()=>{const{active:Lt,activatorEvent:Ht,collisions:Ue,droppableContainers:dt,scrollAdjustedTranslate:yt}=et.current;if(!Lt||Q.current==null||!Ht||!yt)return;const{onDragOver:Et}=be.current,Nt=dt.get(Bt),rt=Nt&&Nt.rect.current?{id:Nt.id,rect:Nt.rect.current,data:Nt.data,disabled:Nt.disabled}:null,St={active:Lt,activatorEvent:Ht,collisions:Ue,delta:{x:yt.x,y:yt.y},over:rt};Ls.unstable_batchedUpdates(()=>{Xt(rt),Et==null||Et(St),R({type:"onDragOver",event:St})})},[Bt]),il(()=>{et.current={activatorEvent:re,active:V,activeNode:ge,collisionRect:ut,collisions:Dt,droppableRects:Ae,draggableNodes:j,draggingNode:Ze,draggingNodeRect:Ke,droppableContainers:fe,over:Pt,scrollableAncestors:Xe,scrollAdjustedTranslate:mt},U.current={initial:Ke,translated:ut}},[V,ge,Dt,ut,j,Ze,Ke,Ae,fe,Pt,Xe,mt]),nz({...Le,delta:G,draggingRect:ut,pointerCoordinates:lt,scrollableAncestors:Xe,scrollableAncestorRects:We});const bt=C.useMemo(()=>({active:V,activeNode:ge,activeNodeRect:Se,activatorEvent:re,collisions:Dt,containerNodeRect:Ie,dragOverlay:Qe,draggableNodes:j,droppableContainers:fe,droppableRects:Ae,over:Pt,measureDroppableContainers:Oe,scrollableAncestors:Xe,scrollableAncestorRects:We,measuringConfiguration:me,measuringScheduled:oe,windowRect:Ne}),[V,ge,Se,re,Dt,Ie,Qe,j,fe,Ae,Pt,Oe,Xe,We,me,oe,Ne]),qt=C.useMemo(()=>({activatorEvent:re,activators:it,active:V,activeNodeRect:Se,ariaDescribedById:{draggable:ie},dispatch:_,draggableNodes:j,over:Pt,measureDroppableContainers:Oe}),[re,it,V,Se,_,ie,j,Pt,Oe]);return C.createElement(cS.Provider,{value:D},C.createElement(jg.Provider,{value:qt},C.createElement(xS.Provider,{value:bt},C.createElement(wS.Provider,{value:Kt},f)),C.createElement(Ez,{disabled:(c==null?void 0:c.restoreFocus)===!1})),C.createElement(Aj,{...c,hiddenTextDescribedById:ie}));function Ft(){const Lt=(se==null?void 0:se.autoScrollEnabled)===!1,Ht=typeof u=="object"?u.enabled===!1:u===!1,Ue=B&&!Lt&&!Ht;return typeof u=="object"?{...u,enabled:Ue}:{enabled:Ue}}}),Mz=C.createContext(null),Cx="button",Lz="Draggable";function Dz(r){let{id:e,data:t,disabled:n=!1,attributes:o}=r;const i=Vh(Lz),{activators:a,activatorEvent:c,active:u,activeNodeRect:f,ariaDescribedById:p,draggableNodes:m,over:g}=C.useContext(jg),{role:b=Cx,roleDescription:w="draggable",tabIndex:T=0}=o??{},A=(u==null?void 0:u.id)===e,_=C.useContext(A?wS:Mz),[R,D]=gg(),[M,F]=gg(),B=mz(a,e),z=Nh(t);il(()=>(m.set(e,{id:e,key:i,node:R,activatorNode:M,data:z}),()=>{const G=m.get(e);G&&G.key===i&&m.delete(e)}),[m,e]);const j=C.useMemo(()=>({role:b,tabIndex:T,"aria-disabled":n,"aria-pressed":A&&b===Cx?!0:void 0,"aria-roledescription":w,"aria-describedby":p.draggable}),[n,b,T,A,w,p.draggable]);return{active:u,activatorEvent:c,activeNodeRect:f,attributes:j,isDragging:A,listeners:n?void 0:B,node:R,over:g,setNodeRef:D,setActivatorNodeRef:F,transform:_}}function Oz(){return C.useContext(xS)}const Nz="Droppable",Pz={timeout:25};function Bz(r){let{data:e,disabled:t=!1,id:n,resizeObserverConfig:o}=r;const i=Vh(Nz),{active:a,dispatch:c,over:u,measureDroppableContainers:f}=C.useContext(jg),p=C.useRef({disabled:t}),m=C.useRef(!1),g=C.useRef(null),b=C.useRef(null),{disabled:w,updateMeasurementsFor:T,timeout:A}={...Pz,...o},_=Nh(T??n),R=C.useCallback(()=>{if(!m.current){m.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{f(Array.isArray(_.current)?_.current:[_.current]),b.current=null},A)},[A]),D=Fg({callback:R,disabled:w||!a}),M=C.useCallback((j,G)=>{D&&(G&&(D.unobserve(G),m.current=!1),j&&D.observe(j))},[D]),[F,B]=gg(M),z=Nh(e);return C.useEffect(()=>{!D||!F.current||(D.disconnect(),m.current=!1,D.observe(F.current))},[F,D]),C.useEffect(()=>(c({type:So.RegisterDroppable,element:{id:n,key:i,disabled:t,node:F,rect:g,data:z}}),()=>c({type:So.UnregisterDroppable,key:i,id:n})),[n]),C.useEffect(()=>{t!==p.current.disabled&&(c({type:So.SetDroppableDisabled,id:n,key:i,disabled:t}),p.current.disabled=t)},[n,i,t,c]),{active:a,rect:g,isOver:(u==null?void 0:u.id)===n,node:F,over:u,setNodeRef:B}}function CS(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 Fz=r=>{let{containerNodeRect:e,draggingNodeRect:t,transform:n}=r;return!t||!e?n:CS(n,t,e)},jz=r=>{let{transform:e,draggingNodeRect:t,windowRect:n}=r;return!t||!n?e:CS(e,t,n)};function bg(r,e,t){const n=r.slice();return n.splice(t<0?n.length+t:t,0,n.splice(e,1)[0]),n}function zz(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 Hz(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 $z(r){return typeof r=="boolean"?{draggable:r,droppable:r}:r}const SS=r=>{let{rects:e,activeIndex:t,overIndex:n,index:o}=r;const i=bg(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},qz=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 f=i[a];return f?{x:0,y:t<a?f.top+f.height-(c.top+c.height):f.top-c.top,...Pp}:null}const u=Uz(i,o,t);return o>t&&o<=a?{x:0,y:-c.height-u,...Pp}:o<t&&o>=a?{x:0,y:c.height+u,...Pp}:{x:0,y:0,...Pp}};function Uz(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 _S="Sortable",AS=C.createContext({activeIndex:-1,containerId:_S,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:SS,disabled:{draggable:!1,droppable:!1}});function Wz(r){let{children:e,id:t,items:n,strategy:o=SS,disabled:i=!1}=r;const{active:a,dragOverlay:c,droppableRects:u,over:f,measureDroppableContainers:p}=Oz(),m=Vh(_S,t),g=c.rect!==null,b=C.useMemo(()=>n.map(B=>typeof B=="object"&&"id"in B?B.id:B),[n]),w=a!=null,T=a?b.indexOf(a.id):-1,A=f?b.indexOf(f.id):-1,_=C.useRef(b),R=!Hz(b,_.current),D=A!==-1&&T===-1||R,M=$z(i);il(()=>{R&&w&&p(b)},[R,b,w,p]),C.useEffect(()=>{_.current=b},[b]);const F=C.useMemo(()=>({activeIndex:T,containerId:m,disabled:M,disableTransforms:D,items:b,overIndex:A,useDragOverlay:g,sortedRects:zz(b,u),strategy:o}),[T,m,M.draggable,M.droppable,D,b,A,u,g,o]);return C.createElement(AS.Provider,{value:F},e)}const Vz=r=>{let{id:e,items:t,activeIndex:n,overIndex:o}=r;return bg(t,n,o).indexOf(e)},Gz=r=>{let{containerId:e,isSorting:t,wasDragging:n,index:o,items:i,newIndex:a,previousItems:c,previousContainerId:u,transition:f}=r;return!f||!n||c!==i&&o===a?!1:t?!0:a!==o&&e===u},Yz={duration:200,easing:"ease"},ES="transform",Zz=Ph.Transition.toString({property:ES,duration:0,easing:"linear"}),Kz={roleDescription:"sortable"};function Xz(r){let{disabled:e,index:t,node:n,rect:o}=r;const[i,a]=C.useState(null),c=C.useRef(t);return il(()=>{if(!e&&t!==c.current&&n.current){const u=o.current;if(u){const f=_f(n.current,{ignoreTransform:!0}),p={x:u.left-f.left,y:u.top-f.top,scaleX:u.width/f.width,scaleY:u.height/f.height};(p.x||p.y)&&a(p)}}t!==c.current&&(c.current=t)},[e,t,n,o]),C.useEffect(()=>{i&&a(null)},[i]),i}function Jz(r){let{animateLayoutChanges:e=Gz,attributes:t,disabled:n,data:o,getNewIndex:i=Vz,id:a,strategy:c,resizeObserverConfig:u,transition:f=Yz}=r;const{items:p,containerId:m,activeIndex:g,disabled:b,disableTransforms:w,sortedRects:T,overIndex:A,useDragOverlay:_,strategy:R}=C.useContext(AS),D=Qz(n,b),M=p.indexOf(a),F=C.useMemo(()=>({sortable:{containerId:m,index:M,items:p},...o}),[m,o,M,p]),B=C.useMemo(()=>p.slice(p.indexOf(a)),[p,a]),{rect:z,node:j,isOver:G,setNodeRef:fe}=Bz({id:a,data:F,disabled:D.droppable,resizeObserverConfig:{updateMeasurementsFor:B,...u}}),{active:P,activatorEvent:U,activeNodeRect:V,attributes:Q,setNodeRef:se,listeners:te,isDragging:re,over:ne,setActivatorNodeRef:be,transform:ie}=Dz({id:a,data:F,attributes:{...Kz,...t},disabled:D.draggable}),de=fj(fe,se),me=!!P,Ae=me&&!w&&Np(g)&&Np(A),Oe=!_&&re,oe=Oe&&Ae?ie:null,we=Ae?oe??(c??R)({rects:T,activeNodeRect:V,activeIndex:g,overIndex:A,index:M}):null,Le=Np(g)&&Np(A)?i({id:a,items:p,activeIndex:g,overIndex:A}):M,Ce=P==null?void 0:P.id,Se=C.useRef({activeId:Ce,items:p,newIndex:Le,containerId:m}),Ie=p!==Se.current.items,et=e({active:P,containerId:m,isDragging:re,isSorting:me,id:a,index:M,items:p,newIndex:Se.current.newIndex,previousItems:Se.current.items,previousContainerId:Se.current.containerId,transition:f,wasDragging:Se.current.activeId!=null}),Je=Xz({disabled:!et,index:M,node:j,rect:z});return C.useEffect(()=>{me&&Se.current.newIndex!==Le&&(Se.current.newIndex=Le),m!==Se.current.containerId&&(Se.current.containerId=m),p!==Se.current.items&&(Se.current.items=p)},[me,Le,m,p]),C.useEffect(()=>{if(Ce===Se.current.activeId)return;if(Ce!=null&&Se.current.activeId==null){Se.current.activeId=Ce;return}const Ze=setTimeout(()=>{Se.current.activeId=Ce},50);return()=>clearTimeout(Ze)},[Ce]),{active:P,activeIndex:g,attributes:Q,data:F,rect:z,index:M,newIndex:Le,items:p,isOver:G,isSorting:me,isDragging:re,listeners:te,node:j,overIndex:A,over:ne,setNodeRef:de,setActivatorNodeRef:be,setDroppableNodeRef:fe,setDraggableNodeRef:se,transform:Je??we,transition:Qe()};function Qe(){if(Je||Ie&&Se.current.newIndex===M)return Zz;if(!(Oe&&!iy(U)||!f)&&(me||et))return Ph.Transition.toString({...f,property:ES})}}function Qz(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 xg(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=xg(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 TS(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>t.push(e(n,o))),t}function RS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!RS(t.children,e))return!1}return!0}function eH(r,e){Array.isArray(r)||(r=[r]);const t=[];return Gh(r,(n,o)=>{e(n,o)&&t.push(n)}),t}function tH(r){Array.isArray(r)||(r=[r]);let e=0;return Gh(r,()=>e++),e}function rH(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const o=xg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(u=>n(u,e))}),i=xg(r,a=>{var c;return(c=a.children)==null?void 0:c.some(u=>n(u,t))});if(o===void 0&&i===void 0){const a=r.findIndex(u=>n(u,e)),c=r.findIndex(u=>n(u,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(u=>n(u,e)),c=o.children.findIndex(u=>n(u,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 nH(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 oH(r,e,t){Array.isArray(r)||(r=[r]);const n=TS(r,a=>a),o=[],i=[...e];for(;i.length>0;){const a=i.shift();if(!a||o.find(u=>t(u,a)))continue;o.push(a);const c=n.find(u=>{var f;return(f=u.children)==null?void 0:f.some(p=>t(p,a))});c&&i.push(c)}return o}const Pc={find:xg,forEach:Gh,map:TS,every:RS,filter:eH,length:tH,replace:rH,descendants:nH,ancestors:oH},iH="_AWrap_1mpkv_1",sH="_AContainer_1mpkv_10",aH="_ATree_1mpkv_18",lH="_ATreeBody_1mpkv_30",cH="_TreeTopAddon_1mpkv_36",uH="_CoverBorder_1mpkv_46",dH="_InsertBorder_1mpkv_55",fH="_ATreeHeader_1mpkv_86",hH="_ATreeBodyHeader_1mpkv_92",pH="_ATreeBodyHeaderResources_1mpkv_102",gH="_ATreeItem_1mpkv_108",mH="_IsSelectUsed_1mpkv_124",vH="_IsSelected_1mpkv_127",yH="_IsSearchSelected_1mpkv_132",bH="_IsHovered_1mpkv_143",xH="_CheckBox_1mpkv_147",wH="_Indents_1mpkv_159",CH="_ExpandIcon_1mpkv_166",SH="_Content_1mpkv_178",_H="_RightSticky_1mpkv_187",AH="_SearchInputWrap_1mpkv_196",EH="_SearchInput_1mpkv_196",TH="_RightAddon_1mpkv_208",RH="_RightAddonIcon_1mpkv_219",kH="_Loader_1mpkv_226",IH="_IsChildOfDragSource_1mpkv_231",mn={AWrap:iH,AContainer:sH,ATree:aH,ATreeBody:lH,TreeTopAddon:cH,CoverBorder:uH,InsertBorder:dH,ATreeHeader:fH,ATreeBodyHeader:hH,ATreeBodyHeaderResources:pH,ATreeItem:gH,IsSelectUsed:mH,IsSelected:vH,IsSearchSelected:yH,IsHovered:bH,CheckBox:xH,Indents:wH,ExpandIcon:CH,Content:SH,RightSticky:_H,SearchInputWrap:AH,SearchInput:EH,RightAddon:TH,RightAddonIcon:RH,Loader:kH,IsChildOfDragSource:IH},MH=r=>{const{isEqual:e,item:t,itemId:n,selectDisabled:o,selectUnused:i,isParentDisabled:a,indents:c,extIndents:u,useExpand:f,useSelect:p,useSearch:m,showCheckbox:g,icons:b,iconWidth:w,isSelectMulti:T,isDraggable:A,isParentCheckHovered:_,hoverdItem:R,onMouseOver:D,onMouseLeave:M,ContentRenderer:F,TreeItemRenderer:B,RightStickyAddon:z,resources:j,containerRef:G,TreeItemStyle:fe,TreeItemClassName:P,searchItemStyle:U,searchItemClassName:V,height:Q,isDragSrcItem:se,isChildOfDragItem:te,getItemId:re,treeItemTooltip:ne,treeItemTooltipDelay:be,treeItemTooltipDirection:ie,treeItemTooltipDistance:de}=r,{children:me}=C.useMemo(()=>t,[t]),[Ae,Oe]=C.useMemo(()=>f,[f]),[oe,ge]=C.useMemo(()=>p,[p]),[we,Le]=C.useMemo(()=>m,[m]),Ce=C.useMemo(()=>i?i(t):!1,[i,t]),Se=C.useMemo(()=>!o||a?a:o(t),[o,a,t]),Ie=C.useMemo(()=>Ae.some(rt=>e(rt,t)),[Ae,e,t]),et=C.useMemo(()=>!me||me.length<1?"noChild":Ie?"expanded":"collapsed",[me,Ie]),Je=C.useMemo(()=>Er.getContent(b,r),[b,r]),Qe=C.useMemo(()=>{const rt=Je==null?void 0:Je[et];return Cv.includes(rt)?S.jsx(en,{icon:rt,style:{width:w,height:w}}):rt},[Je,w,et]),Ze=C.useCallback(rt=>{!Oe||et==="noChild"||(Oe(Ie?Ae.filter(St=>!e(St,t)):[...Ae,t]),rt.stopPropagation())},[Oe,Ae,Ie,t,e,et]),Ke=C.useMemo(()=>oe.some(rt=>e(rt,t)),[oe,e,t]),ht=C.useCallback(()=>{!ge||Se||(ge(T?Ke?oe.filter(rt=>!e(rt,t)):[...oe,t]:[t]),we&&Le&&we.items.some(rt=>e(rt,t))&&Le({...we,item:t}))},[T,Se,Ke,we,Le,ge,e,oe,t]),Pe=C.useMemo(()=>we==null?void 0:we.items.some(rt=>e(rt,t)),[we,e,t]),Ne=C.useMemo(()=>Pe&&(we==null?void 0:we.item)&&e(we.item,t),[Pe,we,e,t]),Xe=C.useRef(null),We=C.useRef(null),{attributes:Ve,listeners:lt,setNodeRef:st,transform:De,transition:at,isDragging:mt}=Jz({id:n||`item-${JSON.stringify(t)}`,disabled:!A||!!a||!n}),ut=C.useMemo(()=>te?te(t):!1,[te,t]),Dt=C.useMemo(()=>{const rt=De?{transform:Ph.Transform.toString(De),transition:at,opacity:mt?.5:1,zIndex:mt?1:"auto"}:{};return se||ut?{...rt,opacity:.5,zIndex:10}:rt},[De,at,mt,se,ut]);C.useEffect(()=>{n&&st&&We.current&&st(We.current)},[n,st]),C.useEffect(()=>{setTimeout(()=>{if(Ne&&Xe.current&&G.current){const{top:rt,bottom:St}=Xe.current.getBoundingClientRect(),{top:jt,bottom:tr}=G.current.getBoundingClientRect();(rt<jt||St>tr)&&Xe.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[G,Ne]);const[Bt,Pt]=C.useState(!1),Xt=C.useCallback(()=>!Se&&Pt(!0),[Se]),ar=C.useCallback(()=>!Se&&Pt(!1),[Se]),Kt=C.useMemo(()=>Pc.map(t,rt=>rt).filter(rt=>!(o!=null&&o(rt))&&!(i!=null&&i(rt))),[o,i,t]),cr=C.useMemo(()=>!g||!T?!1:Ke&&Kt.some(rt=>oe.some(St=>e(rt,St)))&&Kt.some(rt=>!oe.some(St=>e(rt,St))),[g,T,Ke,Kt,e,oe]),Te=C.useMemo(()=>g?T?Kt.every(rt=>oe.some(St=>e(rt,St))):oe.some(rt=>e(rt,t)):!1,[g,T,Kt,t,e,oe]),ae=C.useCallback(()=>{if(!(!ge||Se))if(T)if(Ke){const rt=oe.filter(St=>!(i!=null&&i(St))&&!(o!=null&&o(St))&&Kt.some(jt=>e(jt,St)));rt.length>0&&ge(oe.filter(St=>!rt.some(jt=>e(St,jt))))}else{const rt=Kt.filter(St=>!(i!=null&&i(St))&&!(o!=null&&o(St))&&!oe.some(jt=>e(jt,St)));rt.length>0&&ge([...oe,...rt])}else ge([t])},[Se,o,i,T,ge,e,Ke,oe,Kt,t]),it=C.useCallback(rt=>{Se||ae(),rt.stopPropagation()},[Se,ae]),bt=C.useMemo(()=>{if(!g||!T||Se)return"";if(Ke){const St=oe.filter(jt=>!(i!=null&&i(jt))&&!(o!=null&&o(jt))&&Kt.some(tr=>e(tr,jt)));if(St.length>0)return j["deselect n"](St.length)}const rt=Kt.filter(St=>!(i!=null&&i(St))&&!(o!=null&&o(St))&&!oe.some(jt=>e(jt,St)));return j["select n"](rt.length)},[o,i,j,Se,g,T,Ke,Kt,e,oe]),qt=C.useMemo(()=>Er.getContent(z,r),[z,r]),Ft=C.useMemo(()=>Er.getContent(fe,r),[r,fe]),Lt=C.useMemo(()=>Er.getContent(P,r),[r,P]),Ht=C.useMemo(()=>Er.getContent(V,r),[r,V]),Ue=C.useMemo(()=>Er.getContent(U,r),[r,U]),dt=C.useMemo(()=>Er.getContent(ne,r),[r,ne]),yt=C.useMemo(()=>Er.getContent(be,r),[r,be]),Et=C.useMemo(()=>Er.getContent(ie,r),[r,ie]),Nt=C.useMemo(()=>Er.getContent(de,r),[r,de]);return S.jsxs(C.Fragment,{children:[S.jsxs(Yr,{abaseRef:We,isDisabled:Se,className:Ye.clsx(mn.ATreeItem,Ke&&mn.IsSelected,!Se&&(Bt||_)&&mn.IsHovered,Pe&&mn.IsSearched,Ne&&(Ht||mn.IsSearchSelected),!Ce&&mn.IsSelectUsed,ut&&mn.IsChildOfDragSource,"NoSelect",Lt),style:{...Ft,...Ne&&Ue?Ue:{},"--ATreeItem_height":`${Q}px`,...Dt||{}},onClick:ht,onMouseLeave:rt=>M==null?void 0:M(rt,t),onMouseOver:rt=>D==null?void 0:D(rt,t),...A&&!Se&&Ve?Ve:{},...A&&!Se&<?lt:{},tooltip:dt,tooltipDelay:yt,tooltipDirection:Et,tooltipDistance:Nt,children:[g&&S.jsx(af,{className:mn.CheckBox,isDisabled:Se,isIndeterminate:cr,tooltip:bt,useCheck:[+Te,ae],style:{visibility:Se||Ce?"hidden":"visible",zIndex:Se||Ce?0:2},onClick:it,onMouseOut:ar,onMouseOver:Xt}),S.jsx("div",{className:mn.Indents,style:{paddingLeft:g?0:Je!=null&&Je.noChild?12:0},children:c.map((rt,St)=>{const jt=St===c.length-1;return S.jsx(hC,{value:rt,map:{Collapsed:u?u({iconWidth:w}).collapsed:S.jsx(DH,{iconWidth:w}),Expanded:u?u({iconWidth:w,isLast:jt}).expanded:S.jsx(LH,{iconWidth:w,isLast:jt}),IsLast:u?u({iconWidth:w}).isLast:S.jsx(OH,{iconWidth:w})}},St)})}),Qe&&S.jsx("div",{className:mn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:Ze,children:Qe}),S.jsx("div",{className:Ye.clsx(mn.Content,"NoSelect"),children:S.jsx(F,{containerRef:G,ContentRenderer:F,extIndents:u,height:Q,hoverdItem:R,icons:b,iconWidth:w,indents:c,isDraggable:A,isEqual:e,isParentCheckHovered:T&&(Bt||_),isSelectMulti:T,item:t,itemId:n,resources:j,RightStickyAddon:z,searchItemClassName:Ht,searchItemStyle:U,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:fe,treeItemTooltip:ne,treeItemTooltipDelay:be,treeItemTooltipDirection:ie,treeItemTooltipDistance:de,useExpand:f,useSearch:m,useSelect:p,onMouseLeave:M,onMouseOver:D})}),qt&&S.jsx("div",{className:mn.RightSticky,children:qt})]}),Ie&&(me==null?void 0:me.map((rt,St)=>S.jsx(B,{containerRef:G,ContentRenderer:F,extIndents:u,height:Q,hoverdItem:R,icons:b,iconWidth:w,isChildOfDragItem:te,isDraggable:A,isDragSrcItem:se,isEqual:e,isParentCheckHovered:T&&(Bt||_),isSelectMulti:T,item:rt,itemId:re?`${re(t)}-child-${St}`:n?`${n}-child-${St}`:void 0,resources:j,RightStickyAddon:z,searchItemClassName:Ht,searchItemStyle:U,selectDisabled:o,selectUnused:i,showCheckbox:g,TreeItemClassName:P,TreeItemRenderer:B,TreeItemStyle:fe,treeItemTooltip:ne,treeItemTooltipDelay:be,treeItemTooltipDirection:ie,treeItemTooltipDistance:de,useExpand:f,useSearch:m,useSelect:p,indents:[...c.map(jt=>jt==="IsLast"?"Collapsed":jt),St===me.length-1?"IsLast":"Expanded"],onMouseLeave:M,onMouseOver:D},re?re(rt):St)))]})},LH=({iconWidth:r,isLast:e})=>S.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&&S.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),DH=({iconWidth:r})=>S.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),OH=({iconWidth:r})=>S.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)"}}),NH=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:o,searchDown:i,searchEnter:a,isDisabled:c,isLoading:u,resources:f,maxLength:p,autoFocus:m}=r,g=C.useCallback(T=>{T.key==="Enter"?a():T.key==="ArrowDown"?i():T.key==="ArrowUp"&&o(),T.preventDefault(),T.stopPropagation()},[i,a,o]),b=C.useCallback(T=>{n(T)},[n]),w=C.useMemo(()=>c||u?-1:void 0,[c,u]);return S.jsx(Gc,{autoFocus:m,className:mn.SearchInput,isDisabled:c,maxLength:p,placeholder:f["Search(Placeholder)"],tabIndex:w,useValue:[(t==null?void 0:t.keyword)??"",b],RightAddon:S.jsx(PH,{isEqual:e,resources:f,searchDown:i,searchEnter:a,searchResult:t,searchUp:o}),wrapProps:{className:mn.SearchInputWrap},onKeyDown:g})},PH=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:o,searchEnter:i,resources:a}=r,c=C.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(w=>t.item&&e(w,t.item))+1,[t,e]),u=C.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),f=C.useMemo(()=>c<2,[c]),p=C.useMemo(()=>c>=u,[c,u]),m=C.useCallback(w=>{w.stopPropagation(),!f&&n()},[n,f]),g=C.useCallback(w=>{w.stopPropagation(),!p&&o()},[o,p]),b=C.useCallback(w=>{w.stopPropagation(),i()},[i]);return S.jsx("div",{className:Ye.clsx(mn.RightAddon,"NoSelect"),children:t?S.jsxs(S.Fragment,{children:[c,"/",u,S.jsx(Yr,{isDisabled:f,onClick:m,children:S.jsx(en,{className:mn.RightAddonIcon,icon:"ArrowUp",mask:""})}),S.jsx(Yr,{isDisabled:p,onClick:g,children:S.jsx(en,{className:mn.RightAddonIcon,icon:"ArrowDown"})})]}):S.jsx(ho,{className:mn.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:b})})},BH=r=>{var It;const{pk:e,selectDisabled:t,selectUnused:n,useItems:o,useExpand:i,useSelect:a,useSearch:c,showCheckbox:u,iconWidth:f=24,icons:p={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:m,isSelectMulti:g=!1,noSearch:b=!1,isDraggable:w,noSyncSearchSelect:T=!1,actionRef:A,placeholder:_,searchPredicate:R=jH,isDisabled:D,isLoading:M,ContentRenderer:F=FH,TreeItemRenderer:B=MH,RightStickyAddon:z,TopRightAddon:j,TreeTopAddon:G,resources:fe,maxLength:P,autoFocus:U,TreeHeaderStyle:V,TreeHeaderClassName:Q,TreeItemStyle:se,TreeItemClassName:te,OverflowPadding:re,insertBorder:ne,width:be,searchItemClassName:ie,searchItemStyle:de,height:me=40,treeItemTooltip:Ae,treeItemTooltipDelay:Oe,treeItemTooltipDirection:oe,treeItemTooltipDistance:ge,...we}=r,Le=C.useMemo(()=>({...wr.ATree,...fe}),[fe]),Ce=C.useCallback((je,Ee)=>!je||!Ee?!1:e!==void 0?Array.isArray(e)?e.every(qe=>je&&Ee&&je[qe]!==void 0&&Ee[qe]!==void 0&&Za.isEqual(je[qe],Ee[qe])):je&&Ee&&je[e]!==void 0&&Ee[e]!==void 0&&Za.isEqual(je[e],Ee[e]):Za.isEqual(je,Ee),[e]),Se=C.useRef(null),[Ie,et]=vn(o,[]),Je=C.useMemo(()=>Pc.map(Ie,je=>je),[Ie]),[Qe,Ze]=vn(i,[]),[Ke,ht]=vn(a,[]),[Pe,Ne]=vn(c,void 0),Xe=C.useCallback(je=>{if(D||!Ze||Qe.some(Tt=>Ce(Tt,je)))return;const Ee=[];let qe=je;for(;qe;){const Tt=qe;Qe.find($t=>Ce($t,Tt))||Ee.push(Tt),qe=Je.find($t=>{var _t;return(_t=$t.children)==null?void 0:_t.some(he=>Ce(he,Tt))})}Ze([...Qe,...Ee])},[Qe,D,Ce,Ze,Je]),We=C.useCallback(()=>{!Ze||D||Ze([...Je])},[Je,D,Ze]),Ve=C.useCallback(()=>{!Ze||D||Ze([])},[Ze,D]),lt=C.useCallback(je=>{!ht||D||n!=null&&n(je)||(ht([je]),Xe(je))},[ht,D,n,Xe]),st=C.useCallback(je=>{if(!Ne||D)return;if(!je||b){Ne(void 0),T||ht==null||ht([]);return}const Ee=Pc.filter(Ie,Tt=>R(je,Tt));let qe;if(Ee.find(Tt=>(Pe==null?void 0:Pe.item)&&Ce(Tt,Pe.item))?qe=Pe==null?void 0:Pe.item:Ee.length>0&&(qe=Ee[0]),Ne({keyword:je,items:Ee,item:qe}),qe&&Xe(qe),ht&&!T)if(g)ht(Ee);else{const Tt=Ee.find($t=>qe&&Ce($t,qe));ht(Tt?[Tt]:[])}},[Ie,D,Ce,R,Ne,ht,Xe,T,b,g,Pe]),De=C.useRef(!1);C.useEffect(()=>{De.current=!0},[Ie]),C.useEffect(()=>{Pe&&De.current&&(st(Pe.keyword),De.current=!1)},[st,Pe]);const at=C.useCallback(()=>{if(!Pe||!Ne||D)return;let je=Pe.items.findIndex(Ee=>Pe.item&&Ce(Ee,Pe.item))-1;je<0||(Ne({...Pe,item:Pe.items[je]}),Xe(Pe.items[je]),T||lt(Pe.items[je]))},[Pe,Xe,Ne,D,lt,Ce,T]),mt=C.useCallback(()=>{if(!Pe||!Ne||D)return;let je=Pe.items.findIndex(Ee=>Pe.item&&Ce(Ee,Pe.item))+1;je>=Pe.items.length||(Ne({...Pe,item:Pe.items[je]}),Xe(Pe.items[je]),T||lt(Pe.items[je]))},[Pe,Xe,D,Ne,lt,Ce,T]),ut=C.useCallback(()=>{if(!Pe||!Ne||D)return;let je=Pe.items.findIndex(qe=>Pe.item&&Ce(qe,Pe.item));if(!T||n!=null&&n(Pe.items[je])){mt();return}if(Ke.some(qe=>Pe.item&&Ce(qe,Pe.item))){let qe=je+1;const Tt=Pe.items[qe];if(qe>=Pe.items.length)return;Ne({...Pe,item:Tt}),lt(Tt)}else lt(Pe.items[je])},[Pe,Ne,D,Ke,T,mt,Ce,lt,n]),[Dt,Bt]=C.useState(!1),Pt=C.useCallback(()=>Bt(!0),[]),Xt=C.useCallback(()=>Bt(!1),[]),ar=C.useMemo(()=>n?Pc.map(Ie,je=>je).filter(je=>!n(je)):t?Pc.map(Ie,je=>je).filter(je=>!t(je)):Pc.map(Ie,je=>je),[n,t,Ie]),Kt=C.useMemo(()=>!u||!g?!1:Ke.length>0&&ar.length>Ke.length,[u,g,Ke,ar]),cr=C.useMemo(()=>!u||!g?!1:Ke.length>0&&ar.length===Ke.length,[u,g,Ke,ar]),Te=C.useCallback(()=>{if(!ht||!g||D)return;const je=Ke.filter(Ee=>!(n!=null&&n(Ee))&&!(t!=null&&t(Ee))&&ar.some(qe=>Ce(qe,Ee)));if(je.length>0)ht(Ke.filter(Ee=>!je.some(qe=>Ce(Ee,qe))));else{const Ee=ar.filter(qe=>!(n!=null&&n(qe))&&!(t!=null&&t(qe))&&!Ke.some(Tt=>Ce(Tt,qe)));Ee.length>0&&ht([...Ke,...Ee])}},[g,D,n,t,ht,Ke,ar,Ce]),ae=C.useMemo(()=>{if(!u||!g||D)return"";const je=Ke.filter(Ee=>!(n!=null&&n(Ee))&&!(t!=null&&t(Ee))&&ar.some(qe=>Ce(qe,Ee)));if(je.length>0)return Le["deselect n"](je.length);{const Ee=ar.filter(qe=>!(n!=null&&n(qe))&&!(t!=null&&t(qe))&&!Ke.some(Tt=>Ce(Tt,qe)));return Le["select n"](Ee.length)}},[n,t,D,Le,u,g,ar,Ke,Ce]),[it,bt]=C.useState(),qt=Ej(dx(uy,{activationConstraint:{distance:8}}),dx(ly)),Ft=C.useRef(new Map),Lt=C.useCallback(je=>{if(!Ft.current.has(je)){const Ee=`item_${Za.uniqueId()}`;Ft.current.set(je,Ee)}return Ft.current.get(je)},[]),Ht=C.useCallback(je=>Je.find(Ee=>Lt(Ee)===je),[Je,Lt]),Ue=C.useCallback(je=>!it||!it.children?!1:it.children.some(qe=>Ce(qe,je))?!0:it.children.some(qe=>qe.children?Pc.find(qe,Tt=>Ce(Tt,je))!==void 0:!1),[it,Ce]),dt=C.useCallback(je=>{if(!w||D)return;const Ee=Ht(je.active.id);Ee&&bt(Ee)},[w,D,Ht]),yt=C.useCallback((je,Ee,qe,Tt)=>{const $t=je.findIndex(he=>Tt(he,Ee)),_t=je.findIndex(he=>Tt(he,qe));return $t!==-1&&_t!==-1?bg(je,$t,_t):je.map(he=>{if(!he.children)return he;const ct=he.children.findIndex(fr=>Tt(fr,Ee)),wt=he.children.findIndex(fr=>Tt(fr,qe));return ct!==-1&&wt!==-1?{...he,children:bg(he.children,ct,wt)}:he.children?{...he,children:yt(he.children,Ee,qe,Tt)}:he})},[]),Et=C.useCallback(je=>{!w||D||!it||!je.over||Ht(je.over.id)},[w,D,it,Ht]),Nt=C.useCallback(je=>{if(!w||D||!et||!it||!je.over)return;const Ee=Ht(je.over.id);if(!Ee||Ce(it,Ee)){bt(void 0);return}const qe=yt(Ie,it,Ee,Ce);et(qe),bt(void 0)},[w,D,et,it,Ht,Ce,Ie,yt]),rt=C.useMemo(()=>Ie.map(je=>Lt(je)),[Ie,Lt]);C.useEffect(()=>{var je;u||(je=Se.current)==null||je.scrollTo(0,0)},[u,Se]),C.useEffect(()=>{!g&&Ke.length>1&&(ht==null||ht([Ke[Ke.length-1]]))},[g,ht,Ke]),C.useEffect(()=>{A&&(A.current={expandAll:We,collapseAll:Ve})},[A,We,Ve]),C.useEffect(()=>{if(!t||!ht)return;const je=Ke.filter(Ee=>!t(Ee));Ke.length!==je.length&&ht(je)},[t,Ke,ht]),C.useEffect(()=>{if(!n||!ht)return;const je=Ke.filter(Ee=>!n(Ee));Ke.length!==je.length&&ht(je)},[n,Ke,ht]),C.useEffect(()=>{Ne&&Ne(void 0)},[Ne]);const[St,jt]=C.useState(null),tr=C.useCallback((je,Ee)=>{D||(je.stopPropagation(),je.preventDefault(),jt(Ee))},[D]),Ut=C.useCallback((je,Ee)=>{St===null||D||Ce(Ee,St)&&(je.stopPropagation(),je.preventDefault(),jt(null))},[St,D,Ce]),br=C.useRef(null),[Nr,pr]=C.useState(!1),[pe,pt]=C.useState((It=br.current)==null?void 0:It.scrollHeight);return C.useEffect(()=>{if(Qe.length<0)return;const je=Se.current,Ee=br.current,qe=je.clientHeight<Ee.clientHeight;pt(qe?Ee.scrollHeight:je.clientHeight),pr(qe)},[Qe]),S.jsxs(Yr,{...we,className:Ye.clsx(we.className,mn.AWrap),isDisabled:D,children:[(!b||j)&&S.jsxs(kn,{className:Ye.clsx(mn.ATreeHeader,Q),style:V,children:[!b&&S.jsx(NH,{autoFocus:U,initSearch:st,isDisabled:D,isEqual:Ce,isLoading:M,maxLength:P,resources:Le,searchDown:mt,searchEnter:ut,searchResult:Pe,searchUp:at}),!b&&j&&S.jsx(zn,{w:8}),j]}),(!b||j||u&&g||w)&&S.jsx(Mv,{isLoading:M&&Ie.length!==0}),(u&&g||w)&&S.jsxs("div",{className:Ye.clsx(mn.ATreeBodyHeader,"NoSelect"),children:[u&&S.jsx(af,{className:mn.CheckBox,isDisabled:D,isIndeterminate:Kt,tooltip:ae,useCheck:[+cr,()=>Te()],onMouseOut:Xt,onMouseOver:Pt}),Le.Items,S.jsx(Xu,{}),S.jsxs("div",{className:Ye.clsx(mn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Nr?8:0},children:[S.jsx("span",{children:u&&Le["*Click row for single select"]}),S.jsx("span",{children:w&&Le["*Change order to row drag"]})]})]}),G&&S.jsx("div",{className:mn.TreeTopAddon,children:G}),S.jsx("div",{ref:Se,className:Ye.clsx(we.className,mn.AContainer),children:S.jsxs("div",{className:mn.ATree,style:{minWidth:be||"fit-content",marginRight:re&&Nr?8:0},children:[S.jsxs("div",{ref:br,className:mn.ATreeBody,children:[Ie.length===0?M?S.jsx(zH,{text:Le["Loading Contents..."]}):_:null,S.jsx(Iz,{collisionDetection:Mj,modifiers:[Fz,jz],sensors:qt,measuring:{droppable:{strategy:vf.Always}},onDragEnd:Nt,onDragOver:Et,onDragStart:dt,children:S.jsx(Wz,{items:rt,strategy:qz,children:Ie.map(je=>S.jsx(B,{containerRef:Se,ContentRenderer:F,extIndents:m,getItemId:Lt,height:me,hoverdItem:St,icons:p,iconWidth:f,indents:[],isChildOfDragItem:Ue,isDraggable:w,isDragSrcItem:Ce(je,it),isEqual:Ce,isParentCheckHovered:g&&Dt,isParentDisabled:D,isSelectMulti:g,item:je,itemId:Lt(je),resources:Le,RightStickyAddon:z,searchItemClassName:ie,searchItemStyle:de,selectDisabled:t,selectUnused:n,showCheckbox:u,TreeItemClassName:te,TreeItemRenderer:B,TreeItemStyle:se,treeItemTooltip:Ae,treeItemTooltipDelay:Oe,treeItemTooltipDirection:oe,treeItemTooltipDistance:ge,useExpand:[Qe,Ze],useSearch:[Pe,Ne],useSelect:[Ke,ht],onMouseLeave:Ut,onMouseOver:tr},Lt(je)))})})]}),ne&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:mn.CoverBorder}),S.jsx("div",{className:mn.InsertBorder,style:{"--InsertBorder_height":`${me}px`,height:Nr?pe:"100%"}})]})]})})]})},FH=r=>{const{item:e}=r,t={};return lr.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function jH(r,e){return lr.some(e,(t,n)=>{var o;return(o=lr.stringify(n))==null?void 0:o.toLowerCase().includes(r.toLowerCase())})}const zH=r=>{const{text:e}=r;return S.jsxs(kn,{className:Ye.clsx(mn.Loader,"NoSelect"),children:[S.jsx(en,{height:40,icon:"Spinner",style:{height:40},width:40}),S.jsx(_C,{text:e})]})};var qm,Sx;function Af(){return Sx||(Sx=1,qm=TypeError),qm}const HH={},$H=Object.freeze(Object.defineProperty({__proto__:null,default:HH},Symbol.toStringTag,{value:"Module"})),qH=yT($H);var Um,_x;function zg(){if(_x)return Um;_x=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,u=typeof WeakMap=="function"&&WeakMap.prototype,f=u?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,m=p?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,b=g?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,T=Object.prototype.toString,A=Function.prototype.toString,_=String.prototype.match,R=String.prototype.slice,D=String.prototype.replace,M=String.prototype.toUpperCase,F=String.prototype.toLowerCase,B=RegExp.prototype.test,z=Array.prototype.concat,j=Array.prototype.join,G=Array.prototype.slice,fe=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,te=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Te){return Te.__proto__}:null);function ne(Te,ae){if(Te===1/0||Te===-1/0||Te!==Te||Te&&Te>-1e3&&Te<1e3||B.call(/e/,ae))return ae;var it=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Te=="number"){var bt=Te<0?-fe(-Te):fe(Te);if(bt!==Te){var qt=String(bt),Ft=R.call(ae,qt.length+1);return D.call(qt,it,"$&_")+"."+D.call(D.call(Ft,/([0-9]{3})/g,"$&_"),/_$/,"")}}return D.call(ae,it,"$&_")}var be=qH,ie=be.custom,de=Qe(ie)?ie:null,me={__proto__:null,double:'"',single:"'"},Ae={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Um=function Te(ae,it,bt,qt){var Ft=it||{};if(ht(Ft,"quoteStyle")&&!ht(me,Ft.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ht(Ft,"maxStringLength")&&(typeof Ft.maxStringLength=="number"?Ft.maxStringLength<0&&Ft.maxStringLength!==1/0:Ft.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Lt=ht(Ft,"customInspect")?Ft.customInspect:!0;if(typeof Lt!="boolean"&&Lt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ht(Ft,"indent")&&Ft.indent!==null&&Ft.indent!==" "&&!(parseInt(Ft.indent,10)===Ft.indent&&Ft.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ht(Ft,"numericSeparator")&&typeof Ft.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ht=Ft.numericSeparator;if(typeof ae>"u")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return mt(ae,Ft);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var Ue=String(ae);return Ht?ne(ae,Ue):Ue}if(typeof ae=="bigint"){var dt=String(ae)+"n";return Ht?ne(ae,dt):dt}var yt=typeof Ft.depth>"u"?5:Ft.depth;if(typeof bt>"u"&&(bt=0),bt>=yt&&yt>0&&typeof ae=="object")return we(ae)?"[Array]":"[Object]";var Et=ar(Ft,bt);if(typeof qt>"u")qt=[];else if(Xe(qt,ae)>=0)return"[Circular]";function Nt(_t,he,ct){if(he&&(qt=G.call(qt),qt.push(he)),ct){var wt={depth:Ft.depth};return ht(Ft,"quoteStyle")&&(wt.quoteStyle=Ft.quoteStyle),Te(_t,wt,bt+1,qt)}return Te(_t,Ft,bt+1,qt)}if(typeof ae=="function"&&!Ce(ae)){var rt=Ne(ae),St=cr(ae,Nt);return"[Function"+(rt?": "+rt:" (anonymous)")+"]"+(St.length>0?" { "+j.call(St,", ")+" }":"")}if(Qe(ae)){var jt=Q?D.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(ae);return typeof ae=="object"&&!Q?Dt(jt):jt}if(at(ae)){for(var tr="<"+F.call(String(ae.nodeName)),Ut=ae.attributes||[],br=0;br<Ut.length;br++)tr+=" "+Ut[br].name+"="+Oe(oe(Ut[br].value),"double",Ft);return tr+=">",ae.childNodes&&ae.childNodes.length&&(tr+="..."),tr+="</"+F.call(String(ae.nodeName))+">",tr}if(we(ae)){if(ae.length===0)return"[]";var Nr=cr(ae,Nt);return Et&&!Xt(Nr)?"["+Kt(Nr,Et)+"]":"[ "+j.call(Nr,", ")+" ]"}if(Se(ae)){var pr=cr(ae,Nt);return!("cause"in Error.prototype)&&"cause"in ae&&!te.call(ae,"cause")?"{ ["+String(ae)+"] "+j.call(z.call("[cause]: "+Nt(ae.cause),pr),", ")+" }":pr.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+j.call(pr,", ")+" }"}if(typeof ae=="object"&&Lt){if(de&&typeof ae[de]=="function"&&be)return be(ae,{depth:yt-bt});if(Lt!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(We(ae)){var pe=[];return n&&n.call(ae,function(_t,he){pe.push(Nt(he,ae,!0)+" => "+Nt(_t,ae))}),Pt("Map",t.call(ae),pe,Et)}if(st(ae)){var pt=[];return c&&c.call(ae,function(_t){pt.push(Nt(_t,ae))}),Pt("Set",a.call(ae),pt,Et)}if(Ve(ae))return Bt("WeakMap");if(De(ae))return Bt("WeakSet");if(lt(ae))return Bt("WeakRef");if(et(ae))return Dt(Nt(Number(ae)));if(Ze(ae))return Dt(Nt(P.call(ae)));if(Je(ae))return Dt(w.call(ae));if(Ie(ae))return Dt(Nt(String(ae)));if(typeof window<"u"&&ae===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ae===globalThis||typeof Di<"u"&&ae===Di)return"{ [object globalThis] }";if(!Le(ae)&&!Ce(ae)){var It=cr(ae,Nt),je=re?re(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,Ee=ae instanceof Object?"":"null prototype",qe=!je&&se&&Object(ae)===ae&&se in ae?R.call(Pe(ae),8,-1):Ee?"Object":"",Tt=je||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",$t=Tt+(qe||Ee?"["+j.call(z.call([],qe||[],Ee||[]),": ")+"] ":"");return It.length===0?$t+"{}":Et?$t+"{"+Kt(It,Et)+"}":$t+"{ "+j.call(It,", ")+" }"}return String(ae)};function Oe(Te,ae,it){var bt=it.quoteStyle||ae,qt=me[bt];return qt+Te+qt}function oe(Te){return D.call(String(Te),/"/g,""")}function ge(Te){return!se||!(typeof Te=="object"&&(se in Te||typeof Te[se]<"u"))}function we(Te){return Pe(Te)==="[object Array]"&&ge(Te)}function Le(Te){return Pe(Te)==="[object Date]"&&ge(Te)}function Ce(Te){return Pe(Te)==="[object RegExp]"&&ge(Te)}function Se(Te){return Pe(Te)==="[object Error]"&&ge(Te)}function Ie(Te){return Pe(Te)==="[object String]"&&ge(Te)}function et(Te){return Pe(Te)==="[object Number]"&&ge(Te)}function Je(Te){return Pe(Te)==="[object Boolean]"&&ge(Te)}function Qe(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 Ze(Te){if(!Te||typeof Te!="object"||!P)return!1;try{return P.call(Te),!0}catch{}return!1}var Ke=Object.prototype.hasOwnProperty||function(Te){return Te in this};function ht(Te,ae){return Ke.call(Te,ae)}function Pe(Te){return T.call(Te)}function Ne(Te){if(Te.name)return Te.name;var ae=_.call(A.call(Te),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Xe(Te,ae){if(Te.indexOf)return Te.indexOf(ae);for(var it=0,bt=Te.length;it<bt;it++)if(Te[it]===ae)return it;return-1}function We(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 Ve(Te){if(!f||!Te||typeof Te!="object")return!1;try{f.call(Te,f);try{m.call(Te,m)}catch{return!0}return Te instanceof WeakMap}catch{}return!1}function lt(Te){if(!b||!Te||typeof Te!="object")return!1;try{return b.call(Te),!0}catch{}return!1}function st(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 De(Te){if(!m||!Te||typeof Te!="object")return!1;try{m.call(Te,m);try{f.call(Te,f)}catch{return!0}return Te instanceof WeakSet}catch{}return!1}function at(Te){return!Te||typeof Te!="object"?!1:typeof HTMLElement<"u"&&Te instanceof HTMLElement?!0:typeof Te.nodeName=="string"&&typeof Te.getAttribute=="function"}function mt(Te,ae){if(Te.length>ae.maxStringLength){var it=Te.length-ae.maxStringLength,bt="... "+it+" more character"+(it>1?"s":"");return mt(R.call(Te,0,ae.maxStringLength),ae)+bt}var qt=Ae[ae.quoteStyle||"single"];qt.lastIndex=0;var Ft=D.call(D.call(Te,qt,"\\$1"),/[\x00-\x1f]/g,ut);return Oe(Ft,"single",ae)}function ut(Te){var ae=Te.charCodeAt(0),it={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return it?"\\"+it:"\\x"+(ae<16?"0":"")+M.call(ae.toString(16))}function Dt(Te){return"Object("+Te+")"}function Bt(Te){return Te+" { ? }"}function Pt(Te,ae,it,bt){var qt=bt?Kt(it,bt):j.call(it,", ");return Te+" ("+ae+") {"+qt+"}"}function Xt(Te){for(var ae=0;ae<Te.length;ae++)if(Xe(Te[ae],`
|
|
365
365
|
`)>=0)return!1;return!0}function ar(Te,ae){var it;if(Te.indent===" ")it=" ";else if(typeof Te.indent=="number"&&Te.indent>0)it=j.call(Array(Te.indent+1)," ");else return null;return{base:it,prev:j.call(Array(ae+1),it)}}function Kt(Te,ae){if(Te.length===0)return"";var it=`
|
|
366
366
|
`+ae.prev+ae.base;return it+j.call(Te,","+it)+`
|
|
367
|
-
`+ae.prev}function cr(Te,ae){var it=we(Te),bt=[];if(it){bt.length=Te.length;for(var qt=0;qt<Te.length;qt++)bt[qt]=ht(Te,qt)?ae(Te[qt],Te):""}var Ft=typeof U=="function"?U(Te):[],Dt;if(Q){Dt={};for(var Ht=0;Ht<Ft.length;Ht++)Dt["$"+Ft[Ht]]=Ft[Ht]}for(var Ue in Te)ht(Te,Ue)&&(it&&String(Number(Ue))===Ue&&Ue<Te.length||Q&&Dt["$"+Ue]instanceof Symbol||(B.call(/[^\w$]/,Ue)?bt.push(ae(Ue,Te)+": "+ae(Te[Ue],Te)):bt.push(Ue+": "+ae(Te[Ue],Te))));if(typeof U=="function")for(var dt=0;dt<Ft.length;dt++)te.call(Te,Ft[dt])&&bt.push("["+ae(Ft[dt])+"]: "+ae(Te[Ft[dt]],Te));return bt}return Um}var Wm,Ax;function UH(){if(Ax)return Wm;Ax=1;var r=zg(),e=Af(),t=function(c,u,f){for(var p=c,m;(m=p.next)!=null;p=m)if(m.key===u)return p.next=m.next,f||(m.next=c.next,c.next=m),m},n=function(c,u){if(c){var f=t(c,u);return f&&f.value}},o=function(c,u,f){var p=t(c,u);p?p.value=f:c.next={key:u,next:c.next,value:f}},i=function(c,u){return c?!!t(c,u):!1},a=function(c,u){if(c)return t(c,u,!0)};return Wm=function(){var u,f={assert:function(p){if(!f.has(p))throw new e("Side channel does not contain "+r(p))},delete:function(p){var m=u&&u.next,g=a(u,p);return g&&m&&m===g&&(u=void 0),!!g},get:function(p){return n(u,p)},has:function(p){return i(u,p)},set:function(p,m){u||(u={next:void 0}),o(u,p,m)}};return f},Wm}var Vm,Ex;function kS(){return Ex||(Ex=1,Vm=Object),Vm}var Gm,Tx;function WH(){return Tx||(Tx=1,Gm=Error),Gm}var Ym,Rx;function VH(){return Rx||(Rx=1,Ym=EvalError),Ym}var Zm,kx;function GH(){return kx||(kx=1,Zm=RangeError),Zm}var Km,Ix;function YH(){return Ix||(Ix=1,Km=ReferenceError),Km}var Xm,Mx;function ZH(){return Mx||(Mx=1,Xm=SyntaxError),Xm}var Jm,Lx;function KH(){return Lx||(Lx=1,Jm=URIError),Jm}var Qm,Dx;function XH(){return Dx||(Dx=1,Qm=Math.abs),Qm}var e1,Ox;function JH(){return Ox||(Ox=1,e1=Math.floor),e1}var t1,Nx;function QH(){return Nx||(Nx=1,t1=Math.max),t1}var r1,Px;function e$(){return Px||(Px=1,r1=Math.min),r1}var n1,Bx;function t$(){return Bx||(Bx=1,n1=Math.pow),n1}var o1,Fx;function r$(){return Fx||(Fx=1,o1=Math.round),o1}var i1,jx;function n$(){return jx||(jx=1,i1=Number.isNaN||function(e){return e!==e}),i1}var s1,zx;function o$(){if(zx)return s1;zx=1;var r=n$();return s1=function(t){return r(t)||t===0?t:t<0?-1:1},s1}var a1,Hx;function i$(){return Hx||(Hx=1,a1=Object.getOwnPropertyDescriptor),a1}var l1,$x;function IS(){if($x)return l1;$x=1;var r=i$();if(r)try{r([],"length")}catch{r=null}return l1=r,l1}var c1,qx;function s$(){if(qx)return c1;qx=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return c1=r,c1}var u1,Ux;function a$(){return Ux||(Ux=1,u1=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}),u1}var d1,Wx;function l$(){if(Wx)return d1;Wx=1;var r=typeof Symbol<"u"&&Symbol,e=a$();return d1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},d1}var f1,Vx;function MS(){return Vx||(Vx=1,f1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),f1}var h1,Gx;function LS(){if(Gx)return h1;Gx=1;var r=kS();return h1=r.getPrototypeOf||null,h1}var p1,Yx;function c$(){if(Yx)return p1;Yx=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(u,f){for(var p=[],m=0;m<u.length;m+=1)p[m]=u[m];for(var g=0;g<f.length;g+=1)p[g+u.length]=f[g];return p},i=function(u,f){for(var p=[],m=f,g=0;m<u.length;m+=1,g+=1)p[g]=u[m];return p},a=function(c,u){for(var f="",p=0;p<c.length;p+=1)f+=c[p],p+1<c.length&&(f+=u);return f};return p1=function(u){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(r+f);for(var p=i(arguments,1),m,g=function(){if(this instanceof m){var _=f.apply(this,o(p,arguments));return Object(_)===_?_:this}return f.apply(u,o(p,arguments))},b=t(0,f.length-p.length),w=[],T=0;T<b;T++)w[T]="$"+T;if(m=Function("binder","return function ("+a(w,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var A=function(){};A.prototype=f.prototype,m.prototype=new A,A.prototype=null}return m},p1}var g1,Zx;function Hg(){if(Zx)return g1;Zx=1;var r=c$();return g1=Function.prototype.bind||r,g1}var m1,Kx;function dy(){return Kx||(Kx=1,m1=Function.prototype.call),m1}var v1,Xx;function DS(){return Xx||(Xx=1,v1=Function.prototype.apply),v1}var y1,Jx;function u$(){return Jx||(Jx=1,y1=typeof Reflect<"u"&&Reflect&&Reflect.apply),y1}var b1,Qx;function d$(){if(Qx)return b1;Qx=1;var r=Hg(),e=DS(),t=dy(),n=u$();return b1=n||r.call(t,e),b1}var x1,ew;function OS(){if(ew)return x1;ew=1;var r=Hg(),e=Af(),t=dy(),n=d$();return x1=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},x1}var w1,tw;function f$(){if(tw)return w1;tw=1;var r=OS(),e=IS(),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 w1=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,w1}var C1,rw;function h$(){if(rw)return C1;rw=1;var r=MS(),e=LS(),t=f$();return C1=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,C1}var S1,nw;function p$(){if(nw)return S1;nw=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Hg();return S1=t.call(r,e),S1}var _1,ow;function fy(){if(ow)return _1;ow=1;var r,e=kS(),t=WH(),n=VH(),o=GH(),i=YH(),a=ZH(),c=Af(),u=KH(),f=XH(),p=JH(),m=QH(),g=e$(),b=t$(),w=r$(),T=o$(),A=Function,_=function(Ce){try{return A('"use strict"; return ('+Ce+").constructor;")()}catch{}},R=IS(),D=s$(),M=function(){throw new c},F=R?function(){try{return arguments.callee,M}catch{try{return R(arguments,"callee").get}catch{return M}}}():M,B=l$()(),z=h$(),j=LS(),G=MS(),fe=DS(),P=dy(),U={},V=typeof Uint8Array>"u"||!z?r:z(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":B&&z?z([][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%":A,"%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%":B&&z?z(z([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!B||!z?r:z(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"||!B||!z?r:z(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B&&z?z(""[Symbol.iterator]()):r,"%Symbol%":B?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":F,"%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%":u,"%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%":fe,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":j,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":b,"%Math.round%":w,"%Math.sign%":T,"%Reflect.getPrototypeOf%":G};if(z)try{null.error}catch(Ce){var se=z(z(Ce));Q["%Error.prototype%"]=se}var te=function Ce(Se){var Ie;if(Se==="%AsyncFunction%")Ie=_("async function () {}");else if(Se==="%GeneratorFunction%")Ie=_("function* () {}");else if(Se==="%AsyncGeneratorFunction%")Ie=_("async function* () {}");else if(Se==="%AsyncGenerator%"){var et=Ce("%AsyncGeneratorFunction%");et&&(Ie=et.prototype)}else if(Se==="%AsyncIteratorPrototype%"){var Je=Ce("%AsyncGenerator%");Je&&z&&(Ie=z(Je.prototype))}return Q[Se]=Ie,Ie},re={__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"]},ne=Hg(),be=p$(),ie=ne.call(P,Array.prototype.concat),de=ne.call(fe,Array.prototype.splice),me=ne.call(P,String.prototype.replace),Ae=ne.call(P,String.prototype.slice),De=ne.call(P,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ge=/\\(\\)?/g,we=function(Se){var Ie=Ae(Se,0,1),et=Ae(Se,-1);if(Ie==="%"&&et!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(et==="%"&&Ie!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Je=[];return me(Se,oe,function(Qe,Ze,Ke,ht){Je[Je.length]=Ke?me(ht,ge,"$1"):Ze||Qe}),Je},Le=function(Se,Ie){var et=Se,Je;if(be(re,et)&&(Je=re[et],et="%"+Je[0]+"%"),be(Q,et)){var Qe=Q[et];if(Qe===U&&(Qe=te(et)),typeof Qe>"u"&&!Ie)throw new c("intrinsic "+Se+" exists, but is not available. Please file an issue!");return{alias:Je,name:et,value:Qe}}throw new a("intrinsic "+Se+" does not exist!")};return _1=function(Se,Ie){if(typeof Se!="string"||Se.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ie!="boolean")throw new c('"allowMissing" argument must be a boolean');if(De(/^%?[^%]*%?$/,Se)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var et=we(Se),Je=et.length>0?et[0]:"",Qe=Le("%"+Je+"%",Ie),Ze=Qe.name,Ke=Qe.value,ht=!1,Pe=Qe.alias;Pe&&(Je=Pe[0],de(et,ie([0,1],Pe)));for(var Ne=1,Xe=!0;Ne<et.length;Ne+=1){var We=et[Ne],Ve=Ae(We,0,1),at=Ae(We,-1);if((Ve==='"'||Ve==="'"||Ve==="`"||at==='"'||at==="'"||at==="`")&&Ve!==at)throw new a("property names with quotes must have matching quotes");if((We==="constructor"||!Xe)&&(ht=!0),Je+="."+We,Ze="%"+Je+"%",be(Q,Ze))Ke=Q[Ze];else if(Ke!=null){if(!(We in Ke)){if(!Ie)throw new c("base intrinsic for "+Se+" exists, but the property is not available.");return}if(R&&Ne+1>=et.length){var lt=R(Ke,We);Xe=!!lt,Xe&&"get"in lt&&!("originalValue"in lt.get)?Ke=lt.get:Ke=Ke[We]}else Xe=be(Ke,We),Ke=Ke[We];Xe&&!ht&&(Q[Ze]=Ke)}}return Ke},_1}var A1,iw;function NS(){if(iw)return A1;iw=1;var r=fy(),e=OS(),t=e([r("%String.prototype.indexOf%")]);return A1=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e([a]):a},A1}var E1,sw;function PS(){if(sw)return E1;sw=1;var r=fy(),e=NS(),t=zg(),n=Af(),o=r("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),f=e("Map.prototype.size",!0);return E1=!!o&&function(){var m,g={assert:function(b){if(!g.has(b))throw new n("Side channel does not contain "+t(b))},delete:function(b){if(m){var w=u(m,b);return f(m)===0&&(m=void 0),w}return!1},get:function(b){if(m)return i(m,b)},has:function(b){return m?c(m,b):!1},set:function(b,w){m||(m=new o),a(m,b,w)}};return g},E1}var T1,aw;function g$(){if(aw)return T1;aw=1;var r=fy(),e=NS(),t=zg(),n=PS(),o=Af(),i=r("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),f=e("WeakMap.prototype.delete",!0);return T1=i?function(){var m,g,b={assert:function(w){if(!b.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 f(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?u(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 b}:n,T1}var R1,lw;function m$(){if(lw)return R1;lw=1;var r=Af(),e=zg(),t=UH(),n=PS(),o=g$(),i=o||n||t;return R1=function(){var c,u={assert:function(f){if(!u.has(f))throw new r("Side channel does not contain "+e(f))},delete:function(f){return!!c&&c.delete(f)},get:function(f){return c&&c.get(f)},has:function(f){return!!c&&c.has(f)},set:function(f,p){c||(c=i()),c.set(f,p)}};return u},R1}var k1,cw;function hy(){if(cw)return k1;cw=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return k1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},k1}var I1,uw;function BS(){if(uw)return I1;uw=1;var r=hy(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var A=[],_=0;_<256;++_)A.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return A}(),o=function(_){for(;_.length>1;){var R=_.pop(),D=R.obj[R.prop];if(t(D)){for(var M=[],F=0;F<D.length;++F)typeof D[F]<"u"&&M.push(D[F]);R.obj[R.prop]=M}}},i=function(_,R){for(var D=R&&R.plainObjects?{__proto__:null}:{},M=0;M<_.length;++M)typeof _[M]<"u"&&(D[M]=_[M]);return D},a=function A(_,R,D){if(!R)return _;if(typeof R!="object"&&typeof R!="function"){if(t(_))_.push(R);else if(_&&typeof _=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,R))&&(_[R]=!0);else return[_,R];return _}if(!_||typeof _!="object")return[_].concat(R);var M=_;return t(_)&&!t(R)&&(M=i(_,D)),t(_)&&t(R)?(R.forEach(function(F,B){if(e.call(_,B)){var z=_[B];z&&typeof z=="object"&&F&&typeof F=="object"?_[B]=A(z,F,D):_.push(F)}else _[B]=F}),_):Object.keys(R).reduce(function(F,B){var z=R[B];return e.call(F,B)?F[B]=A(F[B],z,D):F[B]=z,F},M)},c=function(_,R){return Object.keys(R).reduce(function(D,M){return D[M]=R[M],D},_)},u=function(A,_,R){var D=A.replace(/\+/g," ");if(R==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},f=1024,p=function(_,R,D,M,F){if(_.length===0)return _;var B=_;if(typeof _=="symbol"?B=Symbol.prototype.toString.call(_):typeof _!="string"&&(B=String(_)),D==="iso-8859-1")return escape(B).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var z="",j=0;j<B.length;j+=f){for(var G=B.length>=f?B.slice(j,j+f):B,fe=[],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||F===r.RFC1738&&(U===40||U===41)){fe[fe.length]=G.charAt(P);continue}if(U<128){fe[fe.length]=n[U];continue}if(U<2048){fe[fe.length]=n[192|U>>6]+n[128|U&63];continue}if(U<55296||U>=57344){fe[fe.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),fe[fe.length]=n[240|U>>18]+n[128|U>>12&63]+n[128|U>>6&63]+n[128|U&63]}z+=fe.join("")}return z},m=function(_){for(var R=[{obj:{o:_},prop:"o"}],D=[],M=0;M<R.length;++M)for(var F=R[M],B=F.obj[F.prop],z=Object.keys(B),j=0;j<z.length;++j){var G=z[j],fe=B[G];typeof fe=="object"&&fe!==null&&D.indexOf(fe)===-1&&(R.push({obj:B,prop:G}),D.push(fe))}return o(R),_},g=function(_){return Object.prototype.toString.call(_)==="[object RegExp]"},b=function(_){return!_||typeof _!="object"?!1:!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},w=function(_,R){return[].concat(_,R)},T=function(_,R){if(t(_)){for(var D=[],M=0;M<_.length;M+=1)D.push(R(_[M]));return D}return R(_)};return I1={arrayToObject:i,assign:c,combine:w,compact:m,decode:u,encode:p,isBuffer:b,isRegExp:g,maybeMap:T,merge:a},I1}var M1,dw;function v$(){if(dw)return M1;dw=1;var r=m$(),e=BS(),t=hy(),n=Object.prototype.hasOwnProperty,o={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,_){return A+"["+_+"]"},repeat:function(A){return A}},i=Array.isArray,a=Array.prototype.push,c=function(T,A){a.apply(T,i(A)?A:[A])},u=Date.prototype.toISOString,f=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:f,formatter:t.formatters[f],indices:!1,serializeDate:function(A){return u.call(A)},skipNulls:!1,strictNullHandling:!1},m=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},g={},b=function T(A,_,R,D,M,F,B,z,j,G,fe,P,U,V,Q,se,te,re){for(var ne=A,be=re,ie=0,de=!1;(be=be.get(g))!==void 0&&!de;){var me=be.get(A);if(ie+=1,typeof me<"u"){if(me===ie)throw new RangeError("Cyclic object value");de=!0}typeof be.get(g)>"u"&&(ie=0)}if(typeof G=="function"?ne=G(_,ne):ne instanceof Date?ne=U(ne):R==="comma"&&i(ne)&&(ne=e.maybeMap(ne,function(Ze){return Ze instanceof Date?U(Ze):Ze})),ne===null){if(F)return j&&!se?j(_,p.encoder,te,"key",V):_;ne=""}if(m(ne)||e.isBuffer(ne)){if(j){var Ae=se?_:j(_,p.encoder,te,"key",V);return[Q(Ae)+"="+Q(j(ne,p.encoder,te,"value",V))]}return[Q(_)+"="+Q(String(ne))]}var De=[];if(typeof ne>"u")return De;var oe;if(R==="comma"&&i(ne))se&&j&&(ne=e.maybeMap(ne,j)),oe=[{value:ne.length>0?ne.join(",")||null:void 0}];else if(i(G))oe=G;else{var ge=Object.keys(ne);oe=fe?ge.sort(fe):ge}var we=z?String(_).replace(/\./g,"%2E"):String(_),Le=D&&i(ne)&&ne.length===1?we+"[]":we;if(M&&i(ne)&&ne.length===0)return Le+"[]";for(var Ce=0;Ce<oe.length;++Ce){var Se=oe[Ce],Ie=typeof Se=="object"&&Se&&typeof Se.value<"u"?Se.value:ne[Se];if(!(B&&Ie===null)){var et=P&&z?String(Se).replace(/\./g,"%2E"):String(Se),Je=i(ne)?typeof R=="function"?R(Le,et):Le:Le+(P?"."+et:"["+et+"]");re.set(A,ie);var Qe=r();Qe.set(g,re),c(De,T(Ie,Je,R,D,M,F,B,z,R==="comma"&&se&&i(ne)?null:j,G,fe,P,U,V,Q,se,te,Qe))}}return De},w=function(A){if(!A)return p;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var _=A.charset||p.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.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 A.format<"u"){if(!n.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");R=A.format}var D=t.formatters[R],M=p.filter;(typeof A.filter=="function"||i(A.filter))&&(M=A.filter);var F;if(A.arrayFormat in o?F=A.arrayFormat:"indices"in A?F=A.indices?"indices":"repeat":F=p.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:p.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:p.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:F,charset:_,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?p.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:p.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:p.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:p.encodeValuesOnly,filter:M,format:R,formatter:D,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:p.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:p.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:p.strictNullHandling}};return M1=function(T,A){var _=T,R=w(A),D,M;typeof R.filter=="function"?(M=R.filter,_=M("",_)):i(R.filter)&&(M=R.filter,D=M);var F=[];if(typeof _!="object"||_===null)return"";var B=o[R.arrayFormat],z=B==="comma"&&R.commaRoundTrip;D||(D=Object.keys(_)),R.sort&&D.sort(R.sort);for(var j=r(),G=0;G<D.length;++G){var fe=D[G],P=_[fe];R.skipNulls&&P===null||c(F,b(P,fe,B,z,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,j))}var U=F.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:""},M1}var L1,fw;function y$(){if(fw)return L1;fw=1;var r=BS(),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(b,w){return String.fromCharCode(parseInt(w,10))})},i=function(g,b,w){if(g&&typeof g=="string"&&b.comma&&g.indexOf(",")>-1)return g.split(",");if(b.throwOnLimitExceeded&&w>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return g},a="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",u=function(b,w){var T={__proto__:null},A=w.ignoreQueryPrefix?b.replace(/^\?/,""):b;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=w.parameterLimit===1/0?void 0:w.parameterLimit,R=A.split(w.delimiter,w.throwOnLimitExceeded?_+1:_);if(w.throwOnLimitExceeded&&R.length>_)throw new RangeError("Parameter limit exceeded. Only "+_+" parameter"+(_===1?"":"s")+" allowed.");var D=-1,M,F=w.charset;if(w.charsetSentinel)for(M=0;M<R.length;++M)R[M].indexOf("utf8=")===0&&(R[M]===c?F="utf-8":R[M]===a&&(F="iso-8859-1"),D=M,M=R.length);for(M=0;M<R.length;++M)if(M!==D){var B=R[M],z=B.indexOf("]="),j=z===-1?B.indexOf("="):z+1,G,fe;j===-1?(G=w.decoder(B,n.decoder,F,"key"),fe=w.strictNullHandling?null:""):(G=w.decoder(B.slice(0,j),n.decoder,F,"key"),fe=r.maybeMap(i(B.slice(j+1),w,t(T[G])?T[G].length:0),function(U){return w.decoder(U,n.decoder,F,"value")})),fe&&w.interpretNumericEntities&&F==="iso-8859-1"&&(fe=o(String(fe))),B.indexOf("[]=")>-1&&(fe=t(fe)?[fe]:fe);var P=e.call(T,G);P&&w.duplicates==="combine"?T[G]=r.combine(T[G],fe):(!P||w.duplicates==="last")&&(T[G]=fe)}return T},f=function(g,b,w,T){var A=0;if(g.length>0&&g[g.length-1]==="[]"){var _=g.slice(0,-1).join("");A=Array.isArray(b)&&b[_]?b[_].length:0}for(var R=T?b:i(b,w,A),D=g.length-1;D>=0;--D){var M,F=g[D];if(F==="[]"&&w.parseArrays)M=w.allowEmptyArrays&&(R===""||w.strictNullHandling&&R===null)?[]:r.combine([],R);else{M=w.plainObjects?{__proto__:null}:{};var B=F.charAt(0)==="["&&F.charAt(F.length-1)==="]"?F.slice(1,-1):F,z=w.decodeDotInKeys?B.replace(/%2E/g,"."):B,j=parseInt(z,10);!w.parseArrays&&z===""?M={0:R}:!isNaN(j)&&F!==z&&String(j)===z&&j>=0&&w.parseArrays&&j<=w.arrayLimit?(M=[],M[j]=R):z!=="__proto__"&&(M[z]=R)}R=M}return R},p=function(b,w,T,A){if(b){var _=T.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,R=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,M=T.depth>0&&R.exec(_),F=M?_.slice(0,M.index):_,B=[];if(F){if(!T.plainObjects&&e.call(Object.prototype,F)&&!T.allowPrototypes)return;B.push(F)}for(var z=0;T.depth>0&&(M=D.exec(_))!==null&&z<T.depth;){if(z+=1,!T.plainObjects&&e.call(Object.prototype,M[1].slice(1,-1))&&!T.allowPrototypes)return;B.push(M[1])}if(M){if(T.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+T.depth+" and strictDepth is true");B.push("["+_.slice(M.index)+"]")}return f(B,w,T,A)}},m=function(b){if(!b)return n;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.decodeDotInKeys<"u"&&typeof b.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(b.decoder!==null&&typeof b.decoder<"u"&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof b.throwOnLimitExceeded<"u"&&typeof b.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var w=typeof b.charset>"u"?n.charset:b.charset,T=typeof b.duplicates>"u"?n.duplicates:b.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:n.allowDots:!!b.allowDots;return{allowDots:A,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:n.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:n.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:n.arrayLimit,charset:w,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:n.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:n.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:n.decoder,delimiter:typeof b.delimiter=="string"||r.isRegExp(b.delimiter)?b.delimiter:n.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:n.depth,duplicates:T,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:n.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:n.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:n.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return L1=function(g,b){var w=m(b);if(g===""||g===null||typeof g>"u")return w.plainObjects?{__proto__:null}:{};for(var T=typeof g=="string"?u(g,w):g,A=w.plainObjects?{__proto__:null}:{},_=Object.keys(T),R=0;R<_.length;++R){var D=_[R],M=p(D,T[D],w,typeof g=="string");A=r.merge(A,M,w)}return w.allowSparse===!0?A:r.compact(A)},L1}var D1,hw;function b$(){if(hw)return D1;hw=1;var r=v$(),e=y$(),t=hy();return D1={formats:t,parse:e,stringify:r},D1}var x$=b$();const w$=yf(x$),bv={StoredContexts:{},defaultHandler:()=>{}},FS={Init:()=>{},Create:r=>{const e=r.method+r.url;return bv.StoredContexts[e]=r,C$(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{bv.defaultHandler=r}};function C$(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:o,method:i,stream:a,paramType:c}=r;const{po:u,onStream:f,onStreamEnd:p,noDefaultHandle:m=[]}=n??{};(c==="query"||i==="GET")&&u!==void 0&&(o+="?"+w$.stringify(u,{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(u!==void 0)for(const A in u){const _=u[A];T.append(A,_)}g.body=T}else(c==="body"||c===void 0&&r.method!=="GET")&&(g.body=JSON.stringify(u),g.headers["Content-Type"]="application/json;charset=UTF-8");let b={errorCode:0,message:""};const w=Date.now();o=FS.FetchBaseUrl()+o;try{let T=await fetch(o,g);if(T.ok===!1)return b.errorCode=T.status,b.message=T.statusText,b;{const A=new TextDecoder("utf-8");if(a){if(T.body){let _=T.body.getReader(),R="";for(;;){const D=await _.read();if(D.done)break;const M=A.decode(D.value).trim();R+=M;let F=null;try{const B=M.split("\0");let z=B[B.length-1];for(let j=B.length-2;j>=0;j--)if(B[j].trim().length!==0){z=B[j];break}F=await JSON.parse(z)}catch{try{const z=R.split("\0");let j=z[z.length-1];for(let G=z.length-2;G>=0;G--)if(z[G].trim().length!==0){j=z[G];break}F=await JSON.parse(j)}catch{}}if(F!=null&&(Object.keys(F).includes("err_code")?b.errorCode=F.err_code:(b.errorCode=0,b.data=F,R="",D.done?p==null||p(b.data):f==null||f(b.data))),D.done)break}}}else if(T.body){const R=await T.body.getReader().read(),D=A.decode(R.value);if(D==="null")return b;{let M=await JSON.parse(D.replaceAll("\0",""));Object.keys(M).includes("err_code")?(b.errorCode=M.err_code,b.message=M.err_msg):b.data=M}}}}catch(T){console.warn(T),b.errorCode=-1,b.message=T.message}return console.debug(`${e} ${Date.now()-w}ms`),m!==!0&&await bv.defaultHandler(b,m),b}}}exports.ABase=Yr;exports.ABaseStyleKeys=Pw;exports.AButton=Go;exports.AButtonStyleKeys=Fw;exports.AButtonTypes=Z4;exports.ACheckBox=af;exports.ACheckBoxStyleKeys=$w;exports.AChip=Av;exports.AChipKeys=lC;exports.AChips=l6;exports.AClock=C6;exports.AColFrame=fC;exports.ADatePicker=kv;exports.ADatePickerStyleKeys=Qw;exports.ADatePickerTypes=XR;exports.ADateRangePicker=Tv;exports.ADateRangePickerStyleKeys=eC;exports.ADialog=sk;exports.ADialogStyleKeys=qw;exports.ADialogTypes=ik;exports.ADivideFrame=pC;exports.AEditor=uj;exports.AEditorStyleKeys=Hw;exports.AFileBox=vk;exports.AFileBoxStyleKeys=Zw;exports.AFileUploader=qk;exports.AFileUploaderStyleKeys=Kw;exports.AFloatMenu=vC;exports.AFloatMenuKeys=oC;exports.AFrameStyleKeys=nC;exports.AGrow=Xu;exports.AIcon=en;exports.AIconButton=ho;exports.AIconButtonStyleKeys=tC;exports.AIconButtonTypes=K4;exports.AIconHOC=t4;exports.AIcons=Cv;exports.AInput=Gc;exports.AInputStyleKeys=jw;exports.AInputTypes=P6;exports.AListView=eI;exports.AListViewStyleKeys=Xw;exports.ALoadingBorder=Mv;exports.ALoadingBorderKeys=iC;exports.AMultiSelect=TI;exports.AMultiSelectStyleKeys=Ww;exports.ANumInput=Zk;exports.AOverflowFrame=tl;exports.AProgressBar=Sw;exports.ARadioSelect=fI;exports.ARadioSelectKeys=aC;exports.ARowFrame=kn;exports.ASelect=zl;exports.ASelectStyleKeys=Uw;exports.ASelectTypes=J6;exports.ASpace=zn;exports.AStepper=$I;exports.AStepperStyleKeys=Jw;exports.ASwitch=kw;exports.ASwitchFrame=hC;exports.ASwitchStyleKeys=Gw;exports.ATab=bC;exports.ATabStyleKeys=Yw;exports.ATabTypes=t8;exports.ATable=c9;exports.ATableStyleKeys=rC;exports.AText=_C;exports.ATextArea=x9;exports.ATextAreaStyleKeys=zw;exports.ATextAreaTypes=b9;exports.AThemeButton=C5;exports.AThemes=uh;exports.ATooltip=Rw;exports.ATooltipStyleKeys=Bw;exports.ATree=BH;exports.ATreeStyleKeys=Vw;exports.AWrap=Vc;exports.AWrapKeys=sC;exports.AWrapPropsExtract=Ku;exports.AWrapTypes=r5;exports.ApiContext=FS;exports.BodyStyleKeys=Nw;exports.CreateADC=fk;exports.DefaultOptionRenderer=yC;exports.EDir12=bf;exports.EDir4=Io;exports.FileSizeTrans=qu;exports.Icons=wg;exports.IsCursorPointer=bw;exports.IsFixedShape=yw;exports.IsInteractive=xw;exports.NoSelect=mw;exports.NoTransition=vw;exports.Resources=wr;exports.SetResources=m4;exports.alphanumericRegex=u6;exports.bound=ch;exports.cbF=Er;exports.changeSemanticMode=_v;exports.componentStyleKeys=p5;exports.createEvent=Bu;exports.dateF=rr;exports.dbF=sa;exports.defaultPredicate=wC;exports.dlgF=hk;exports.emailIdRegex=f6;exports.emailRegex=d6;exports.fileF=Fu;exports.getFileKey=mC;exports.getMonthsOptions=Sh;exports.getYearsOptions=Rv;exports.hangulRegex=p6;exports.hexRegex=h6;exports.key=gw;exports.noHanguljamoRegex=m6;exports.noSpaceRegex=g6;exports.numF=Hp;exports.objF=lr;exports.paletteKeys=Iw;exports.paletteModes=Cg;exports.passwordRegex=y6;exports.refinedDesignTokens=Lo;exports.sF=Ye;exports.semanticKeys=Dw;exports.semanticModes=sf;exports.setDir12Style=Sv;exports.setDir12StyleElem=Ew;exports.specialCharRegex=v6;exports.strF=Ev;exports.tableF=Bl;exports.textMeasurement=$u;exports.treeF=Pc;exports.useADialogCore=uk;exports.useADialogCores=ck;exports.useDB=uC;exports.useEvent=SC;exports.useInit=xC;exports.useLayoutDB=dC;exports.useOffset=Aw;exports.useValues=vn;exports.uuidRegex=b6;
|
|
367
|
+
`+ae.prev}function cr(Te,ae){var it=we(Te),bt=[];if(it){bt.length=Te.length;for(var qt=0;qt<Te.length;qt++)bt[qt]=ht(Te,qt)?ae(Te[qt],Te):""}var Ft=typeof U=="function"?U(Te):[],Lt;if(Q){Lt={};for(var Ht=0;Ht<Ft.length;Ht++)Lt["$"+Ft[Ht]]=Ft[Ht]}for(var Ue in Te)ht(Te,Ue)&&(it&&String(Number(Ue))===Ue&&Ue<Te.length||Q&&Lt["$"+Ue]instanceof Symbol||(B.call(/[^\w$]/,Ue)?bt.push(ae(Ue,Te)+": "+ae(Te[Ue],Te)):bt.push(Ue+": "+ae(Te[Ue],Te))));if(typeof U=="function")for(var dt=0;dt<Ft.length;dt++)te.call(Te,Ft[dt])&&bt.push("["+ae(Ft[dt])+"]: "+ae(Te[Ft[dt]],Te));return bt}return Um}var Wm,Ax;function UH(){if(Ax)return Wm;Ax=1;var r=zg(),e=Af(),t=function(c,u,f){for(var p=c,m;(m=p.next)!=null;p=m)if(m.key===u)return p.next=m.next,f||(m.next=c.next,c.next=m),m},n=function(c,u){if(c){var f=t(c,u);return f&&f.value}},o=function(c,u,f){var p=t(c,u);p?p.value=f:c.next={key:u,next:c.next,value:f}},i=function(c,u){return c?!!t(c,u):!1},a=function(c,u){if(c)return t(c,u,!0)};return Wm=function(){var u,f={assert:function(p){if(!f.has(p))throw new e("Side channel does not contain "+r(p))},delete:function(p){var m=u&&u.next,g=a(u,p);return g&&m&&m===g&&(u=void 0),!!g},get:function(p){return n(u,p)},has:function(p){return i(u,p)},set:function(p,m){u||(u={next:void 0}),o(u,p,m)}};return f},Wm}var Vm,Ex;function kS(){return Ex||(Ex=1,Vm=Object),Vm}var Gm,Tx;function WH(){return Tx||(Tx=1,Gm=Error),Gm}var Ym,Rx;function VH(){return Rx||(Rx=1,Ym=EvalError),Ym}var Zm,kx;function GH(){return kx||(kx=1,Zm=RangeError),Zm}var Km,Ix;function YH(){return Ix||(Ix=1,Km=ReferenceError),Km}var Xm,Mx;function ZH(){return Mx||(Mx=1,Xm=SyntaxError),Xm}var Jm,Lx;function KH(){return Lx||(Lx=1,Jm=URIError),Jm}var Qm,Dx;function XH(){return Dx||(Dx=1,Qm=Math.abs),Qm}var e1,Ox;function JH(){return Ox||(Ox=1,e1=Math.floor),e1}var t1,Nx;function QH(){return Nx||(Nx=1,t1=Math.max),t1}var r1,Px;function e$(){return Px||(Px=1,r1=Math.min),r1}var n1,Bx;function t$(){return Bx||(Bx=1,n1=Math.pow),n1}var o1,Fx;function r$(){return Fx||(Fx=1,o1=Math.round),o1}var i1,jx;function n$(){return jx||(jx=1,i1=Number.isNaN||function(e){return e!==e}),i1}var s1,zx;function o$(){if(zx)return s1;zx=1;var r=n$();return s1=function(t){return r(t)||t===0?t:t<0?-1:1},s1}var a1,Hx;function i$(){return Hx||(Hx=1,a1=Object.getOwnPropertyDescriptor),a1}var l1,$x;function IS(){if($x)return l1;$x=1;var r=i$();if(r)try{r([],"length")}catch{r=null}return l1=r,l1}var c1,qx;function s$(){if(qx)return c1;qx=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return c1=r,c1}var u1,Ux;function a$(){return Ux||(Ux=1,u1=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}),u1}var d1,Wx;function l$(){if(Wx)return d1;Wx=1;var r=typeof Symbol<"u"&&Symbol,e=a$();return d1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},d1}var f1,Vx;function MS(){return Vx||(Vx=1,f1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),f1}var h1,Gx;function LS(){if(Gx)return h1;Gx=1;var r=kS();return h1=r.getPrototypeOf||null,h1}var p1,Yx;function c$(){if(Yx)return p1;Yx=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(u,f){for(var p=[],m=0;m<u.length;m+=1)p[m]=u[m];for(var g=0;g<f.length;g+=1)p[g+u.length]=f[g];return p},i=function(u,f){for(var p=[],m=f,g=0;m<u.length;m+=1,g+=1)p[g]=u[m];return p},a=function(c,u){for(var f="",p=0;p<c.length;p+=1)f+=c[p],p+1<c.length&&(f+=u);return f};return p1=function(u){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(r+f);for(var p=i(arguments,1),m,g=function(){if(this instanceof m){var _=f.apply(this,o(p,arguments));return Object(_)===_?_:this}return f.apply(u,o(p,arguments))},b=t(0,f.length-p.length),w=[],T=0;T<b;T++)w[T]="$"+T;if(m=Function("binder","return function ("+a(w,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var A=function(){};A.prototype=f.prototype,m.prototype=new A,A.prototype=null}return m},p1}var g1,Zx;function Hg(){if(Zx)return g1;Zx=1;var r=c$();return g1=Function.prototype.bind||r,g1}var m1,Kx;function dy(){return Kx||(Kx=1,m1=Function.prototype.call),m1}var v1,Xx;function DS(){return Xx||(Xx=1,v1=Function.prototype.apply),v1}var y1,Jx;function u$(){return Jx||(Jx=1,y1=typeof Reflect<"u"&&Reflect&&Reflect.apply),y1}var b1,Qx;function d$(){if(Qx)return b1;Qx=1;var r=Hg(),e=DS(),t=dy(),n=u$();return b1=n||r.call(t,e),b1}var x1,ew;function OS(){if(ew)return x1;ew=1;var r=Hg(),e=Af(),t=dy(),n=d$();return x1=function(i){if(i.length<1||typeof i[0]!="function")throw new e("a function is required");return n(r,t,i)},x1}var w1,tw;function f$(){if(tw)return w1;tw=1;var r=OS(),e=IS(),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 w1=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(c){return i(c==null?c:o(c))}:!1,w1}var C1,rw;function h$(){if(rw)return C1;rw=1;var r=MS(),e=LS(),t=f$();return C1=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,C1}var S1,nw;function p$(){if(nw)return S1;nw=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Hg();return S1=t.call(r,e),S1}var _1,ow;function fy(){if(ow)return _1;ow=1;var r,e=kS(),t=WH(),n=VH(),o=GH(),i=YH(),a=ZH(),c=Af(),u=KH(),f=XH(),p=JH(),m=QH(),g=e$(),b=t$(),w=r$(),T=o$(),A=Function,_=function(Ce){try{return A('"use strict"; return ('+Ce+").constructor;")()}catch{}},R=IS(),D=s$(),M=function(){throw new c},F=R?function(){try{return arguments.callee,M}catch{try{return R(arguments,"callee").get}catch{return M}}}():M,B=l$()(),z=h$(),j=LS(),G=MS(),fe=DS(),P=dy(),U={},V=typeof Uint8Array>"u"||!z?r:z(Uint8Array),Q={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":B&&z?z([][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%":A,"%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%":B&&z?z(z([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!B||!z?r:z(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"||!B||!z?r:z(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B&&z?z(""[Symbol.iterator]()):r,"%Symbol%":B?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":F,"%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%":u,"%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%":fe,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":j,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":b,"%Math.round%":w,"%Math.sign%":T,"%Reflect.getPrototypeOf%":G};if(z)try{null.error}catch(Ce){var se=z(z(Ce));Q["%Error.prototype%"]=se}var te=function Ce(Se){var Ie;if(Se==="%AsyncFunction%")Ie=_("async function () {}");else if(Se==="%GeneratorFunction%")Ie=_("function* () {}");else if(Se==="%AsyncGeneratorFunction%")Ie=_("async function* () {}");else if(Se==="%AsyncGenerator%"){var et=Ce("%AsyncGeneratorFunction%");et&&(Ie=et.prototype)}else if(Se==="%AsyncIteratorPrototype%"){var Je=Ce("%AsyncGenerator%");Je&&z&&(Ie=z(Je.prototype))}return Q[Se]=Ie,Ie},re={__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"]},ne=Hg(),be=p$(),ie=ne.call(P,Array.prototype.concat),de=ne.call(fe,Array.prototype.splice),me=ne.call(P,String.prototype.replace),Ae=ne.call(P,String.prototype.slice),Oe=ne.call(P,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ge=/\\(\\)?/g,we=function(Se){var Ie=Ae(Se,0,1),et=Ae(Se,-1);if(Ie==="%"&&et!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(et==="%"&&Ie!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Je=[];return me(Se,oe,function(Qe,Ze,Ke,ht){Je[Je.length]=Ke?me(ht,ge,"$1"):Ze||Qe}),Je},Le=function(Se,Ie){var et=Se,Je;if(be(re,et)&&(Je=re[et],et="%"+Je[0]+"%"),be(Q,et)){var Qe=Q[et];if(Qe===U&&(Qe=te(et)),typeof Qe>"u"&&!Ie)throw new c("intrinsic "+Se+" exists, but is not available. Please file an issue!");return{alias:Je,name:et,value:Qe}}throw new a("intrinsic "+Se+" does not exist!")};return _1=function(Se,Ie){if(typeof Se!="string"||Se.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ie!="boolean")throw new c('"allowMissing" argument must be a boolean');if(Oe(/^%?[^%]*%?$/,Se)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var et=we(Se),Je=et.length>0?et[0]:"",Qe=Le("%"+Je+"%",Ie),Ze=Qe.name,Ke=Qe.value,ht=!1,Pe=Qe.alias;Pe&&(Je=Pe[0],de(et,ie([0,1],Pe)));for(var Ne=1,Xe=!0;Ne<et.length;Ne+=1){var We=et[Ne],Ve=Ae(We,0,1),lt=Ae(We,-1);if((Ve==='"'||Ve==="'"||Ve==="`"||lt==='"'||lt==="'"||lt==="`")&&Ve!==lt)throw new a("property names with quotes must have matching quotes");if((We==="constructor"||!Xe)&&(ht=!0),Je+="."+We,Ze="%"+Je+"%",be(Q,Ze))Ke=Q[Ze];else if(Ke!=null){if(!(We in Ke)){if(!Ie)throw new c("base intrinsic for "+Se+" exists, but the property is not available.");return}if(R&&Ne+1>=et.length){var st=R(Ke,We);Xe=!!st,Xe&&"get"in st&&!("originalValue"in st.get)?Ke=st.get:Ke=Ke[We]}else Xe=be(Ke,We),Ke=Ke[We];Xe&&!ht&&(Q[Ze]=Ke)}}return Ke},_1}var A1,iw;function NS(){if(iw)return A1;iw=1;var r=fy(),e=OS(),t=e([r("%String.prototype.indexOf%")]);return A1=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e([a]):a},A1}var E1,sw;function PS(){if(sw)return E1;sw=1;var r=fy(),e=NS(),t=zg(),n=Af(),o=r("%Map%",!0),i=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),c=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),f=e("Map.prototype.size",!0);return E1=!!o&&function(){var m,g={assert:function(b){if(!g.has(b))throw new n("Side channel does not contain "+t(b))},delete:function(b){if(m){var w=u(m,b);return f(m)===0&&(m=void 0),w}return!1},get:function(b){if(m)return i(m,b)},has:function(b){return m?c(m,b):!1},set:function(b,w){m||(m=new o),a(m,b,w)}};return g},E1}var T1,aw;function g$(){if(aw)return T1;aw=1;var r=fy(),e=NS(),t=zg(),n=PS(),o=Af(),i=r("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),c=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),f=e("WeakMap.prototype.delete",!0);return T1=i?function(){var m,g,b={assert:function(w){if(!b.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 f(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?u(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 b}:n,T1}var R1,lw;function m$(){if(lw)return R1;lw=1;var r=Af(),e=zg(),t=UH(),n=PS(),o=g$(),i=o||n||t;return R1=function(){var c,u={assert:function(f){if(!u.has(f))throw new r("Side channel does not contain "+e(f))},delete:function(f){return!!c&&c.delete(f)},get:function(f){return c&&c.get(f)},has:function(f){return!!c&&c.has(f)},set:function(f,p){c||(c=i()),c.set(f,p)}};return u},R1}var k1,cw;function hy(){if(cw)return k1;cw=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return k1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},k1}var I1,uw;function BS(){if(uw)return I1;uw=1;var r=hy(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var A=[],_=0;_<256;++_)A.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return A}(),o=function(_){for(;_.length>1;){var R=_.pop(),D=R.obj[R.prop];if(t(D)){for(var M=[],F=0;F<D.length;++F)typeof D[F]<"u"&&M.push(D[F]);R.obj[R.prop]=M}}},i=function(_,R){for(var D=R&&R.plainObjects?{__proto__:null}:{},M=0;M<_.length;++M)typeof _[M]<"u"&&(D[M]=_[M]);return D},a=function A(_,R,D){if(!R)return _;if(typeof R!="object"&&typeof R!="function"){if(t(_))_.push(R);else if(_&&typeof _=="object")(D&&(D.plainObjects||D.allowPrototypes)||!e.call(Object.prototype,R))&&(_[R]=!0);else return[_,R];return _}if(!_||typeof _!="object")return[_].concat(R);var M=_;return t(_)&&!t(R)&&(M=i(_,D)),t(_)&&t(R)?(R.forEach(function(F,B){if(e.call(_,B)){var z=_[B];z&&typeof z=="object"&&F&&typeof F=="object"?_[B]=A(z,F,D):_.push(F)}else _[B]=F}),_):Object.keys(R).reduce(function(F,B){var z=R[B];return e.call(F,B)?F[B]=A(F[B],z,D):F[B]=z,F},M)},c=function(_,R){return Object.keys(R).reduce(function(D,M){return D[M]=R[M],D},_)},u=function(A,_,R){var D=A.replace(/\+/g," ");if(R==="iso-8859-1")return D.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(D)}catch{return D}},f=1024,p=function(_,R,D,M,F){if(_.length===0)return _;var B=_;if(typeof _=="symbol"?B=Symbol.prototype.toString.call(_):typeof _!="string"&&(B=String(_)),D==="iso-8859-1")return escape(B).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var z="",j=0;j<B.length;j+=f){for(var G=B.length>=f?B.slice(j,j+f):B,fe=[],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||F===r.RFC1738&&(U===40||U===41)){fe[fe.length]=G.charAt(P);continue}if(U<128){fe[fe.length]=n[U];continue}if(U<2048){fe[fe.length]=n[192|U>>6]+n[128|U&63];continue}if(U<55296||U>=57344){fe[fe.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),fe[fe.length]=n[240|U>>18]+n[128|U>>12&63]+n[128|U>>6&63]+n[128|U&63]}z+=fe.join("")}return z},m=function(_){for(var R=[{obj:{o:_},prop:"o"}],D=[],M=0;M<R.length;++M)for(var F=R[M],B=F.obj[F.prop],z=Object.keys(B),j=0;j<z.length;++j){var G=z[j],fe=B[G];typeof fe=="object"&&fe!==null&&D.indexOf(fe)===-1&&(R.push({obj:B,prop:G}),D.push(fe))}return o(R),_},g=function(_){return Object.prototype.toString.call(_)==="[object RegExp]"},b=function(_){return!_||typeof _!="object"?!1:!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},w=function(_,R){return[].concat(_,R)},T=function(_,R){if(t(_)){for(var D=[],M=0;M<_.length;M+=1)D.push(R(_[M]));return D}return R(_)};return I1={arrayToObject:i,assign:c,combine:w,compact:m,decode:u,encode:p,isBuffer:b,isRegExp:g,maybeMap:T,merge:a},I1}var M1,dw;function v$(){if(dw)return M1;dw=1;var r=m$(),e=BS(),t=hy(),n=Object.prototype.hasOwnProperty,o={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,_){return A+"["+_+"]"},repeat:function(A){return A}},i=Array.isArray,a=Array.prototype.push,c=function(T,A){a.apply(T,i(A)?A:[A])},u=Date.prototype.toISOString,f=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:f,formatter:t.formatters[f],indices:!1,serializeDate:function(A){return u.call(A)},skipNulls:!1,strictNullHandling:!1},m=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},g={},b=function T(A,_,R,D,M,F,B,z,j,G,fe,P,U,V,Q,se,te,re){for(var ne=A,be=re,ie=0,de=!1;(be=be.get(g))!==void 0&&!de;){var me=be.get(A);if(ie+=1,typeof me<"u"){if(me===ie)throw new RangeError("Cyclic object value");de=!0}typeof be.get(g)>"u"&&(ie=0)}if(typeof G=="function"?ne=G(_,ne):ne instanceof Date?ne=U(ne):R==="comma"&&i(ne)&&(ne=e.maybeMap(ne,function(Ze){return Ze instanceof Date?U(Ze):Ze})),ne===null){if(F)return j&&!se?j(_,p.encoder,te,"key",V):_;ne=""}if(m(ne)||e.isBuffer(ne)){if(j){var Ae=se?_:j(_,p.encoder,te,"key",V);return[Q(Ae)+"="+Q(j(ne,p.encoder,te,"value",V))]}return[Q(_)+"="+Q(String(ne))]}var Oe=[];if(typeof ne>"u")return Oe;var oe;if(R==="comma"&&i(ne))se&&j&&(ne=e.maybeMap(ne,j)),oe=[{value:ne.length>0?ne.join(",")||null:void 0}];else if(i(G))oe=G;else{var ge=Object.keys(ne);oe=fe?ge.sort(fe):ge}var we=z?String(_).replace(/\./g,"%2E"):String(_),Le=D&&i(ne)&&ne.length===1?we+"[]":we;if(M&&i(ne)&&ne.length===0)return Le+"[]";for(var Ce=0;Ce<oe.length;++Ce){var Se=oe[Ce],Ie=typeof Se=="object"&&Se&&typeof Se.value<"u"?Se.value:ne[Se];if(!(B&&Ie===null)){var et=P&&z?String(Se).replace(/\./g,"%2E"):String(Se),Je=i(ne)?typeof R=="function"?R(Le,et):Le:Le+(P?"."+et:"["+et+"]");re.set(A,ie);var Qe=r();Qe.set(g,re),c(Oe,T(Ie,Je,R,D,M,F,B,z,R==="comma"&&se&&i(ne)?null:j,G,fe,P,U,V,Q,se,te,Qe))}}return Oe},w=function(A){if(!A)return p;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var _=A.charset||p.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.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 A.format<"u"){if(!n.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");R=A.format}var D=t.formatters[R],M=p.filter;(typeof A.filter=="function"||i(A.filter))&&(M=A.filter);var F;if(A.arrayFormat in o?F=A.arrayFormat:"indices"in A?F=A.indices?"indices":"repeat":F=p.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:p.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:p.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:F,charset:_,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?p.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:p.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:p.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:p.encodeValuesOnly,filter:M,format:R,formatter:D,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:p.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:p.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:p.strictNullHandling}};return M1=function(T,A){var _=T,R=w(A),D,M;typeof R.filter=="function"?(M=R.filter,_=M("",_)):i(R.filter)&&(M=R.filter,D=M);var F=[];if(typeof _!="object"||_===null)return"";var B=o[R.arrayFormat],z=B==="comma"&&R.commaRoundTrip;D||(D=Object.keys(_)),R.sort&&D.sort(R.sort);for(var j=r(),G=0;G<D.length;++G){var fe=D[G],P=_[fe];R.skipNulls&&P===null||c(F,b(P,fe,B,z,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,j))}var U=F.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:""},M1}var L1,fw;function y$(){if(fw)return L1;fw=1;var r=BS(),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(b,w){return String.fromCharCode(parseInt(w,10))})},i=function(g,b,w){if(g&&typeof g=="string"&&b.comma&&g.indexOf(",")>-1)return g.split(",");if(b.throwOnLimitExceeded&&w>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return g},a="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",u=function(b,w){var T={__proto__:null},A=w.ignoreQueryPrefix?b.replace(/^\?/,""):b;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=w.parameterLimit===1/0?void 0:w.parameterLimit,R=A.split(w.delimiter,w.throwOnLimitExceeded?_+1:_);if(w.throwOnLimitExceeded&&R.length>_)throw new RangeError("Parameter limit exceeded. Only "+_+" parameter"+(_===1?"":"s")+" allowed.");var D=-1,M,F=w.charset;if(w.charsetSentinel)for(M=0;M<R.length;++M)R[M].indexOf("utf8=")===0&&(R[M]===c?F="utf-8":R[M]===a&&(F="iso-8859-1"),D=M,M=R.length);for(M=0;M<R.length;++M)if(M!==D){var B=R[M],z=B.indexOf("]="),j=z===-1?B.indexOf("="):z+1,G,fe;j===-1?(G=w.decoder(B,n.decoder,F,"key"),fe=w.strictNullHandling?null:""):(G=w.decoder(B.slice(0,j),n.decoder,F,"key"),fe=r.maybeMap(i(B.slice(j+1),w,t(T[G])?T[G].length:0),function(U){return w.decoder(U,n.decoder,F,"value")})),fe&&w.interpretNumericEntities&&F==="iso-8859-1"&&(fe=o(String(fe))),B.indexOf("[]=")>-1&&(fe=t(fe)?[fe]:fe);var P=e.call(T,G);P&&w.duplicates==="combine"?T[G]=r.combine(T[G],fe):(!P||w.duplicates==="last")&&(T[G]=fe)}return T},f=function(g,b,w,T){var A=0;if(g.length>0&&g[g.length-1]==="[]"){var _=g.slice(0,-1).join("");A=Array.isArray(b)&&b[_]?b[_].length:0}for(var R=T?b:i(b,w,A),D=g.length-1;D>=0;--D){var M,F=g[D];if(F==="[]"&&w.parseArrays)M=w.allowEmptyArrays&&(R===""||w.strictNullHandling&&R===null)?[]:r.combine([],R);else{M=w.plainObjects?{__proto__:null}:{};var B=F.charAt(0)==="["&&F.charAt(F.length-1)==="]"?F.slice(1,-1):F,z=w.decodeDotInKeys?B.replace(/%2E/g,"."):B,j=parseInt(z,10);!w.parseArrays&&z===""?M={0:R}:!isNaN(j)&&F!==z&&String(j)===z&&j>=0&&w.parseArrays&&j<=w.arrayLimit?(M=[],M[j]=R):z!=="__proto__"&&(M[z]=R)}R=M}return R},p=function(b,w,T,A){if(b){var _=T.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,R=/(\[[^[\]]*])/,D=/(\[[^[\]]*])/g,M=T.depth>0&&R.exec(_),F=M?_.slice(0,M.index):_,B=[];if(F){if(!T.plainObjects&&e.call(Object.prototype,F)&&!T.allowPrototypes)return;B.push(F)}for(var z=0;T.depth>0&&(M=D.exec(_))!==null&&z<T.depth;){if(z+=1,!T.plainObjects&&e.call(Object.prototype,M[1].slice(1,-1))&&!T.allowPrototypes)return;B.push(M[1])}if(M){if(T.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+T.depth+" and strictDepth is true");B.push("["+_.slice(M.index)+"]")}return f(B,w,T,A)}},m=function(b){if(!b)return n;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.decodeDotInKeys<"u"&&typeof b.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(b.decoder!==null&&typeof b.decoder<"u"&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof b.throwOnLimitExceeded<"u"&&typeof b.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var w=typeof b.charset>"u"?n.charset:b.charset,T=typeof b.duplicates>"u"?n.duplicates:b.duplicates;if(T!=="combine"&&T!=="first"&&T!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:n.allowDots:!!b.allowDots;return{allowDots:A,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:n.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:n.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:n.arrayLimit,charset:w,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:n.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:n.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:n.decoder,delimiter:typeof b.delimiter=="string"||r.isRegExp(b.delimiter)?b.delimiter:n.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:n.depth,duplicates:T,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:n.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:n.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:n.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return L1=function(g,b){var w=m(b);if(g===""||g===null||typeof g>"u")return w.plainObjects?{__proto__:null}:{};for(var T=typeof g=="string"?u(g,w):g,A=w.plainObjects?{__proto__:null}:{},_=Object.keys(T),R=0;R<_.length;++R){var D=_[R],M=p(D,T[D],w,typeof g=="string");A=r.merge(A,M,w)}return w.allowSparse===!0?A:r.compact(A)},L1}var D1,hw;function b$(){if(hw)return D1;hw=1;var r=v$(),e=y$(),t=hy();return D1={formats:t,parse:e,stringify:r},D1}var x$=b$();const w$=yf(x$),bv={StoredContexts:{},defaultHandler:()=>{}},FS={Init:()=>{},Create:r=>{const e=r.method+r.url;return bv.StoredContexts[e]=r,C$(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{bv.defaultHandler=r}};function C$(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:o,method:i,stream:a,paramType:c}=r;const{po:u,onStream:f,onStreamEnd:p,noDefaultHandle:m=[]}=n??{};(c==="query"||i==="GET")&&u!==void 0&&(o+="?"+w$.stringify(u,{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(u!==void 0)for(const A in u){const _=u[A];T.append(A,_)}g.body=T}else(c==="body"||c===void 0&&r.method!=="GET")&&(g.body=JSON.stringify(u),g.headers["Content-Type"]="application/json;charset=UTF-8");let b={errorCode:0,message:""};const w=Date.now();o=FS.FetchBaseUrl()+o;try{let T=await fetch(o,g);if(T.ok===!1)return b.errorCode=T.status,b.message=T.statusText,b;{const A=new TextDecoder("utf-8");if(a){if(T.body){let _=T.body.getReader(),R="";for(;;){const D=await _.read();if(D.done)break;const M=A.decode(D.value).trim();R+=M;let F=null;try{const B=M.split("\0");let z=B[B.length-1];for(let j=B.length-2;j>=0;j--)if(B[j].trim().length!==0){z=B[j];break}F=await JSON.parse(z)}catch{try{const z=R.split("\0");let j=z[z.length-1];for(let G=z.length-2;G>=0;G--)if(z[G].trim().length!==0){j=z[G];break}F=await JSON.parse(j)}catch{}}if(F!=null&&(Object.keys(F).includes("err_code")?b.errorCode=F.err_code:(b.errorCode=0,b.data=F,R="",D.done?p==null||p(b.data):f==null||f(b.data))),D.done)break}}}else if(T.body){const R=await T.body.getReader().read(),D=A.decode(R.value);if(D==="null")return b;{let M=await JSON.parse(D.replaceAll("\0",""));Object.keys(M).includes("err_code")?(b.errorCode=M.err_code,b.message=M.err_msg):b.data=M}}}}catch(T){console.warn(T),b.errorCode=-1,b.message=T.message}return console.debug(`${e} ${Date.now()-w}ms`),m!==!0&&await bv.defaultHandler(b,m),b}}}exports.ABase=Yr;exports.ABaseStyleKeys=Pw;exports.AButton=Go;exports.AButtonStyleKeys=Fw;exports.AButtonTypes=Z4;exports.ACheckBox=af;exports.ACheckBoxStyleKeys=$w;exports.AChip=Av;exports.AChipKeys=lC;exports.AChips=l6;exports.AClock=C6;exports.AColFrame=fC;exports.ADatePicker=kv;exports.ADatePickerStyleKeys=Qw;exports.ADatePickerTypes=XR;exports.ADateRangePicker=Tv;exports.ADateRangePickerStyleKeys=eC;exports.ADialog=sk;exports.ADialogStyleKeys=qw;exports.ADialogTypes=ik;exports.ADivideFrame=pC;exports.AEditor=uj;exports.AEditorStyleKeys=Hw;exports.AFileBox=vk;exports.AFileBoxStyleKeys=Zw;exports.AFileUploader=qk;exports.AFileUploaderStyleKeys=Kw;exports.AFloatMenu=vC;exports.AFloatMenuKeys=oC;exports.AFrameStyleKeys=nC;exports.AGrow=Xu;exports.AIcon=en;exports.AIconButton=ho;exports.AIconButtonStyleKeys=tC;exports.AIconButtonTypes=K4;exports.AIconHOC=t4;exports.AIcons=Cv;exports.AInput=Gc;exports.AInputStyleKeys=jw;exports.AInputTypes=P6;exports.AListView=eI;exports.AListViewStyleKeys=Xw;exports.ALoadingBorder=Mv;exports.ALoadingBorderKeys=iC;exports.AMultiSelect=TI;exports.AMultiSelectStyleKeys=Ww;exports.ANumInput=Zk;exports.AOverflowFrame=tl;exports.AProgressBar=Sw;exports.ARadioSelect=fI;exports.ARadioSelectKeys=aC;exports.ARowFrame=kn;exports.ASelect=zl;exports.ASelectStyleKeys=Uw;exports.ASelectTypes=J6;exports.ASpace=zn;exports.AStepper=$I;exports.AStepperStyleKeys=Jw;exports.ASwitch=kw;exports.ASwitchFrame=hC;exports.ASwitchStyleKeys=Gw;exports.ATab=bC;exports.ATabStyleKeys=Yw;exports.ATabTypes=t8;exports.ATable=c9;exports.ATableStyleKeys=rC;exports.AText=_C;exports.ATextArea=x9;exports.ATextAreaStyleKeys=zw;exports.ATextAreaTypes=b9;exports.AThemeButton=C5;exports.AThemes=uh;exports.ATooltip=Rw;exports.ATooltipStyleKeys=Bw;exports.ATree=BH;exports.ATreeStyleKeys=Vw;exports.AWrap=Vc;exports.AWrapKeys=sC;exports.AWrapPropsExtract=Ku;exports.AWrapTypes=r5;exports.ApiContext=FS;exports.BodyStyleKeys=Nw;exports.CreateADC=fk;exports.DefaultOptionRenderer=yC;exports.EDir12=bf;exports.EDir4=Io;exports.FileSizeTrans=qu;exports.Icons=wg;exports.IsCursorPointer=bw;exports.IsFixedShape=yw;exports.IsInteractive=xw;exports.NoSelect=mw;exports.NoTransition=vw;exports.Resources=wr;exports.SetResources=m4;exports.alphanumericRegex=u6;exports.bound=ch;exports.cbF=Er;exports.changeSemanticMode=_v;exports.componentStyleKeys=p5;exports.createEvent=Bu;exports.dateF=rr;exports.dbF=sa;exports.defaultPredicate=wC;exports.dlgF=hk;exports.emailIdRegex=f6;exports.emailRegex=d6;exports.fileF=Fu;exports.getFileKey=mC;exports.getMonthsOptions=Sh;exports.getYearsOptions=Rv;exports.hangulRegex=p6;exports.hexRegex=h6;exports.key=gw;exports.noHanguljamoRegex=m6;exports.noSpaceRegex=g6;exports.numF=Hp;exports.objF=lr;exports.paletteKeys=Iw;exports.paletteModes=Cg;exports.passwordRegex=y6;exports.refinedDesignTokens=Lo;exports.sF=Ye;exports.semanticKeys=Dw;exports.semanticModes=sf;exports.setDir12Style=Sv;exports.setDir12StyleElem=Ew;exports.specialCharRegex=v6;exports.strF=Ev;exports.tableF=Bl;exports.textMeasurement=$u;exports.treeF=Pc;exports.useADialogCore=uk;exports.useADialogCores=ck;exports.useDB=uC;exports.useEvent=SC;exports.useInit=xC;exports.useLayoutDB=dC;exports.useOffset=Aw;exports.useValues=vn;exports.uuidRegex=b6;
|